/* ===================================================
   VEILLIANCE — Design System v1.0
   Palette : cream / marine / or (cohérence pitch XEFI)
   Typo : Fraunces (display) + Manrope (body)
   =================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300..900;1,9..144,300..900&family=Manrope:wght@300;400;500;600;700;800&display=swap');

:root {
  /* Couleurs */
  --cream: #F7F1E4;
  --cream-deep: #EFE6D2;
  --cream-light: #FAF6EC;
  --paper: #FBF7EE;
  --navy: #0E2440;
  --navy-soft: #1B3358;
  --navy-light: #4A6280;
  --gold: #B5934A;
  --gold-bright: #C9A45C;
  --gold-deep: #8E6F33;
  --ink: #15243D;
  --border: rgba(14, 36, 64, 0.12);
  --border-strong: rgba(14, 36, 64, 0.25);
  --success: #4A7A3E;
  --success-bg: #E8F0E2;
  --danger: #A04030;
  --danger-bg: #F5E2DC;
  --warn: #B5934A;
  --warn-bg: #FFF8E8;

  /* Espacements */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-12: 3rem;
  --space-16: 4rem;

  /* Typographie */
  --font-display: 'Fraunces', serif;
  --font-body: 'Manrope', sans-serif;

  /* Composants */
  --radius-sm: 4px;
  --radius: 8px;
  --radius-lg: 16px;
  --shadow-sm: 0 2px 8px rgba(14, 36, 64, 0.04);
  --shadow: 0 8px 24px rgba(14, 36, 64, 0.08);
  --shadow-lg: 0 20px 60px rgba(14, 36, 64, 0.15);
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ===== TYPO ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--navy);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); font-weight: 300; }
h2 { font-size: clamp(2rem, 3.5vw, 3rem); }
h3 { font-size: clamp(1.4rem, 2.2vw, 2rem); font-weight: 500; }
h4 { font-size: 1.15rem; font-weight: 600; }

em { font-style: italic; color: var(--gold); }

p { max-width: 65ch; margin-bottom: 1rem; }
p.lead { font-size: 1.2rem; color: var(--navy-soft); font-weight: 400; }
p.small { font-size: 0.88rem; color: var(--navy-light); }

a { color: var(--gold-deep); text-decoration: underline; transition: color 0.2s; }
a:hover { color: var(--gold); }

/* ===== BOUTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--navy);
  color: var(--cream);
}
.btn-primary:hover { background: var(--gold-deep); color: var(--cream); }
.btn-primary:disabled { opacity: 0.4; cursor: not-allowed; }

.btn-gold {
  background: var(--gold);
  color: var(--navy);
}
.btn-gold:hover { background: var(--gold-deep); color: var(--cream); }

.btn-ghost {
  background: transparent;
  color: var(--navy);
  border: 1px solid var(--border-strong);
}
.btn-ghost:hover { background: var(--paper); border-color: var(--navy); }

.btn-lg { padding: 1.1rem 2.25rem; font-size: 1.05rem; }
.btn-sm { padding: 0.55rem 1.2rem; font-size: 0.85rem; }

/* ===== LAYOUT ===== */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 6vw;
}

.container-narrow {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 6vw;
}

.section {
  padding: 8vh 0;
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-block;
  margin-bottom: 1.5rem;
}

.section-num {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  color: var(--gold);
  font-size: 0.95rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.section-num::before {
  content: "";
  width: 60px;
  height: 1px;
  background: var(--gold);
}

/* ===== FORMULAIRES ===== */
.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--navy);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color 0.2s, background 0.2s;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: var(--cream-light);
}

.form-input::placeholder { color: var(--navy-light); }

.form-help {
  font-size: 0.82rem;
  color: var(--navy-light);
  margin-top: 0.4rem;
}

.form-error {
  font-size: 0.85rem;
  color: var(--danger);
  margin-top: 0.4rem;
}

/* ===== ALERTES ===== */
.alert {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  border-left: 3px solid;
  margin-bottom: 1rem;
  font-size: 0.95rem;
  line-height: 1.5;
}

.alert-success {
  background: var(--success-bg);
  border-color: var(--success);
  color: var(--success);
}

.alert-danger {
  background: var(--danger-bg);
  border-color: var(--danger);
  color: var(--danger);
}

.alert-warn {
  background: var(--warn-bg);
  border-color: var(--warn);
  color: var(--gold-deep);
}

/* ===== CARDS ===== */
.card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: box-shadow 0.3s, transform 0.3s;
}

.card:hover { box-shadow: var(--shadow); }

/* ===== HEADER PUBLIC ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 241, 228, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 1rem 6vw;
}

.site-header-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.brand {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--navy);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.brand em {
  font-style: italic;
  color: var(--gold);
  font-weight: 300;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  list-style: none;
}

.nav-links a {
  color: var(--navy-soft);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 0.4rem 0;
}

.nav-links a:hover { color: var(--gold-deep); }

/* ===== FOOTER ===== */
.site-footer {
  background: var(--paper);
  border-top: 1px solid var(--border);
  padding: 6vh 6vw 4vh;
  margin-top: 8vh;
}

.site-footer-inner {
  max-width: 1280px;
  margin: 0 auto;
}

.site-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--border);
}

.footer-col h5 {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  color: var(--gold);
  font-size: 0.9rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 0.5rem;
}

.footer-col a {
  color: var(--navy-soft);
  font-size: 0.9rem;
  text-decoration: none;
}

.footer-col a:hover { color: var(--gold-deep); }

.footer-col p {
  font-size: 0.9rem;
  color: var(--navy-soft);
  margin-bottom: 0.5rem;
}

.site-footer-bottom {
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--navy-light);
  flex-wrap: wrap;
  gap: 1rem;
}

.site-footer-bottom em {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--gold);
  font-size: 1.1rem;
}

/* ===== BANDEAU AI ACT (compliance) ===== */
.ai-banner {
  background: linear-gradient(90deg, #FDFAF1 0%, #FAF3DE 100%);
  border-left: 3px solid var(--gold);
  padding: 0.7rem 6vw;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: #5C4A1A;
  border-bottom: 1px solid rgba(232, 215, 168, 0.5);
}

.ai-banner-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  animation: ai-pulse 2s infinite;
  flex-shrink: 0;
}

.ai-banner strong { color: var(--navy); font-weight: 600; }
.ai-banner a { color: var(--gold-deep); text-decoration: underline; margin-left: 0.5rem; }

@keyframes ai-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .container, .container-narrow { padding: 0 5vw; }
  .site-footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .nav-links { gap: 1rem; }
}

@media (max-width: 480px) {
  .site-footer-grid { grid-template-columns: 1fr; }
  .site-footer-bottom { flex-direction: column; align-items: flex-start; }
}
