/* Feuille de styles du site aic-group.be — charte « Bleu nuit » (README §4) */

/* ---------- Jetons de couleur (README §4.2) ---------- */
:root {
  --navy: #0b1233;
  --navy-elevated: #18214d;
  --navy-bar: #2c3670;
  --cobalt: #494fdf;
  --cobalt-deep: #3a40c4;
  --cobalt-light: #8f94ff;
  --cobalt-pale: #c9cbf7;
  --white: #ffffff;
  --mist: #f3f4fa;
  --ink: #191c1f;
  --mute: #505a63;
  --on-dark-mute: rgba(255, 255, 255, 0.72);
  --hairline-light: #e2e2e7;
  --hairline-dark: rgba(255, 255, 255, 0.12);
  --success: #006400;
  --pending: #8a5a00;
}

/* ---------- Base ---------- */
body {
  margin: 0;
  background: var(--navy);
  color: var(--white);
  font-family: 'Nunito', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--white); }

/* ---------- Mise en page ---------- */
.container { max-width: 1200px; margin: 0 auto; }

.section { padding: 112px 24px; }
.section-dark { background: var(--navy); }
.section-light { background: var(--white); color: var(--ink); }
.section-mist { background: var(--mist); color: var(--ink); }

.section-inner { display: flex; flex-direction: column; gap: 56px; }
.section-head { display: flex; flex-direction: column; gap: 16px; max-width: 760px; }

.section-title {
  margin: 0;
  font-size: clamp(36px, 4.6vw, 64px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.025em;
}

.section-lead { margin: 0; font-size: 18px; line-height: 1.56; color: var(--mute); }
.section-dark .section-lead { color: var(--on-dark-mute); }

/* ---------- Boutons (README §6) ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  border-radius: 9999px;
  text-decoration: none;
  font-weight: 600;
}
.btn-sm { height: 44px; padding: 0 22px; font-size: 15px; }
.btn-lg { height: 52px; padding: 0 30px; font-size: 17px; }
.btn-light { background: var(--white); color: var(--navy); }
.btn-dark { background: var(--navy); color: var(--white); }
.btn-outline { border: 1px solid var(--white); color: var(--white); }
.btn-lg.btn-outline { padding: 0 29px; }

/* Petits écrans : grands boutons sur toute la largeur, texte centré et retour à la ligne propre */
@media (max-width: 480px) {
  .actions .btn,
  .approche-cta,
  .section-cta .btn,
  .mpw-cta {
    box-sizing: border-box;
    width: 100%;
    height: auto;
    min-height: 52px;
    padding: 12px 20px;
    justify-content: center;
    text-align: center;
    line-height: 1.3;
  }
}

/* Bouton d'envoi du formulaire : bouton natif, texte centré */
.btn-submit {
  height: 52px;
  border: 0;
  border-radius: 9999px;
  font: inherit;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
}

/* ---------- Badges ---------- */
.badge { align-self: flex-start; padding: 6px 14px; border-radius: 9999px; font-size: 13px; }
.badge-dark { background: var(--navy-elevated); font-weight: 500; color: var(--on-dark-mute); }
.badge-navy { background: var(--navy); font-weight: 600; color: var(--white); }

/* ---------- En-tête ---------- */
.site-header { background: var(--navy); border-bottom: 1px solid var(--hairline-dark); }

.header-bar {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--white); }
/* Logotype en Quicksand (seule exception à Nunito, README §4.1) */
.logo-text { display: flex; flex-direction: column; gap: 4px; font-family: 'Quicksand', 'Nunito', system-ui, sans-serif; }
.logo-name { font-size: 24px; font-weight: 700; letter-spacing: -0.3px; line-height: 1; }
.logo-tagline {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--on-dark-mute);
  white-space: nowrap;
}

/* Liens de navigation : masqués jusqu'à 900 px inclus */
.nav-links { display: none; gap: 32px; align-items: center; font-size: 15px; font-weight: 500; }
.nav-link { text-decoration: none; color: var(--on-dark-mute); }

/* Menu mobile (jusqu'à 900 px) : bouton « Menu » et panneau déroulant */
.header-cta { display: none; }

.menu-toggle {
  justify-content: center;
  min-width: 96px;
  padding: 0 20px;
  background: none;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

.mobile-menu {
  display: flex;
  flex-direction: column;
  padding: 0 24px 24px;
  border-top: 1px solid var(--hairline-dark);
  background: var(--navy);
}
.mobile-menu[hidden] { display: none; }

.mobile-menu-link {
  display: flex;
  align-items: center;
  min-height: 52px;
  border-bottom: 1px solid var(--hairline-dark);
  color: var(--on-dark-mute);
  text-decoration: none;
  font-size: 17px;
  font-weight: 500;
}
.mobile-menu-link:hover { color: var(--white); }
.mobile-menu-cta { justify-content: center; margin-top: 24px; }

/* Au-delà de 900 px : navigation complète, menu mobile masqué */
@media (min-width: 901px) {
  .nav-links { display: flex; }
  .header-cta { display: inline-flex; }
  .menu-toggle,
  .mobile-menu { display: none; }
}

/* ---------- Hero ---------- */
.hero { padding-bottom: 96px; }
.hero-grid { display: flex; flex-wrap: wrap; gap: 64px; align-items: center; }
.hero-content {
  flex: 999 1 560px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.hero-title {
  margin: 0;
  font-size: clamp(42px, 6.4vw, 88px);
  font-weight: 500;
  line-height: 1.0;
  letter-spacing: -0.03em;
}
/* Une ligne par segment : « Votre patrimoine. » puis chaque mot de la promesse */
.hero-title span { display: block; }
.hero-lead { margin: 0; max-width: 580px; font-size: 19px; line-height: 1.56; color: var(--on-dark-mute); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Preuves sous les boutons du hero (faits réels uniquement) */
.hero-proofs { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 14px; color: var(--on-dark-mute); }
.hero-proofs li { display: flex; align-items: center; gap: 8px; }
.hero-proofs svg { flex: none; }

/* Aperçu « Dossier client » (illustratif) */
.dossier {
  flex: 1 1 380px;
  min-width: 0;
  background: var(--navy-elevated);
  border-radius: 28px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.dossier-head { display: flex; justify-content: space-between; align-items: center; }
.dossier-label { font-size: 14px; color: var(--on-dark-mute); }
.dossier-status {
  padding: 4px 12px;
  border-radius: 9999px;
  background: var(--cobalt);
  font-size: 12px;
  font-weight: 600;
}
.dossier-name { font-size: 26px; font-weight: 500; letter-spacing: -0.3px; }
.dossier-list { display: flex; flex-direction: column; gap: 10px; }
.dossier-item {
  background: var(--white);
  color: var(--ink);
  border-radius: 16px;
  padding: 16px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.dossier-item-text { display: flex; flex-direction: column; gap: 2px; }
.dossier-item-title { font-size: 15px; font-weight: 600; }
.dossier-item-meta { font-size: 13px; color: var(--mute); }
.statut { font-size: 13px; font-weight: 600; white-space: nowrap; }
.statut-ok { color: var(--success); }
.statut-pending { color: var(--pending); }
.dossier-foot { font-size: 13px; color: var(--on-dark-mute); }

/* ---------- Cartes (services, méthode, MyPensionWallet) ---------- */
.grid-services { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 20px; }
/* Neuf services : trois lignes de trois sur grand écran */
@media (min-width: 900px) {
  .grid-services { grid-template-columns: repeat(3, 1fr); }
}
.grid-steps { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 768px) {
  .grid-steps { grid-template-columns: repeat(3, 1fr); }
}

.card { border-radius: 20px; padding: 32px; display: flex; flex-direction: column; }
.card-title { margin: 0; font-size: 24px; font-weight: 500; }
.card-text { margin: 0; font-size: 16px; line-height: 1.5; color: var(--mute); }
.card-label { font-size: 14px; font-weight: 600; color: var(--mute); }

.card-service { background: var(--mist); gap: 14px; }
.card-service .card-title { letter-spacing: -0.2px; }

.card-step { background: var(--navy-elevated); gap: 12px; }
.card-step .card-text { color: var(--on-dark-mute); }
.step-number { font-size: 15px; font-weight: 600; color: var(--cobalt-light); }
.step-result { margin: auto 0 0; padding-top: 12px; border-top: 1px solid var(--hairline-dark); font-size: 14px; line-height: 1.5; font-weight: 600; color: var(--white); }

/* Étape mise en avant : la surface cobalt de la section */
.card-step-highlight { background: var(--cobalt); }
.card-step-highlight .step-number,
.card-step-highlight .card-text { color: var(--white); }

.card-bordered { background: var(--white); border: 1px solid var(--hairline-light); gap: 10px; }
.card-cobalt { background: var(--cobalt); color: var(--white); gap: 10px; }
.card-cobalt .card-label,
.card-cobalt .card-text { color: inherit; }

.methode-head { max-width: 820px; }

/* Suivi : la bande cobalt sur toute la largeur, cœur de la méthode */
.card-suivi { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr; gap: 24px 48px; }
.suivi-intro { display: flex; flex-direction: column; gap: 12px; }
.suivi-titre { font-size: clamp(24px, 2.4vw, 32px); letter-spacing: -0.02em; }
.step-number-cycle { display: inline-flex; align-items: center; gap: 8px; }
@media (min-width: 900px) {
  .card-suivi { grid-template-columns: 1fr 1fr; align-items: start; padding: 40px; }
  .card-suivi .step-result { grid-column: 1 / -1; }
}

/* ---------- Situations : le visiteur se reconnaît ---------- */
.grid-situations { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 20px; }
.card-situation { background: var(--mist); gap: 14px; }
.situation-profil { font-size: 14px; font-weight: 600; color: var(--cobalt); }
.situation-question { margin: 0; font-size: 20px; font-weight: 500; line-height: 1.35; letter-spacing: -0.2px; color: var(--ink); }
.situation-resultat { margin: 0; font-size: 16px; line-height: 1.5; color: var(--mute); }
.situation-resultat strong { color: var(--ink); font-weight: 600; }
.situation-cta {
  margin-top: auto;
  align-self: flex-start;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  font-size: 15px;
  font-weight: 600;
  color: var(--cobalt);
  text-decoration: none;
}
.situation-cta:hover { color: var(--cobalt-deep); }

/* Bouton d'action placé après une grille */
.section-cta { display: flex; }

/* ---------- Approche : aujourd'hui (ambre, cloisonné) face à AIC (cobalt) ---------- */
.approche-grid { display: grid; grid-template-columns: 1fr; gap: 24px; align-items: center; }

.approche-avant { display: flex; flex-direction: column; gap: 16px; }
.approche-tag { align-self: flex-start; padding: 6px 14px; border-radius: 9999px; font-size: 13px; font-weight: 600; }
.approche-tag-avant { border: 1px dashed var(--pending); background: var(--white); color: var(--pending); }
.approche-tag-apres { background: var(--cobalt-pale); color: var(--navy); }

.silos { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 12px; }
/* Silos : cartes blanches à bordure ambre en pointillés (--pending, couleur du problème face au cobalt) */
.silo {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px;
  border: 1.5px dashed color-mix(in srgb, var(--pending) 75%, transparent);
  border-radius: 20px;
  background: var(--white);
}
.silo-icone {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 9999px;
  background: color-mix(in srgb, var(--pending) 12%, transparent);
}
.silo-title { margin: 0; font-size: 20px; font-weight: 500; letter-spacing: -0.2px; color: var(--ink); }
.silo-text { margin: 0; font-size: 15px; line-height: 1.5; color: var(--mute); }
.silos-result { display: flex; align-items: flex-start; gap: 10px; margin: 0; font-size: 16px; line-height: 1.5; font-weight: 600; color: var(--ink); }
.silos-result svg { flex: none; margin-top: 1px; }

/* Flèche de transformation : vers le bas sur mobile, vers la droite sur grand écran */
.approche-fleche {
  justify-self: center;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 9999px;
  background: var(--cobalt);
  transform: rotate(90deg);
}

/* Avec Audit Insurance Consulting : la surface cobalt de l'écran */
.approche-apres {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 32px;
  border-radius: 28px;
  background: var(--cobalt);
  color: var(--white);
}
.approche-titre { margin: 0; font-size: clamp(26px, 2.6vw, 34px); font-weight: 500; line-height: 1.15; letter-spacing: -0.02em; }
.approche-cta { align-self: flex-start; margin-top: 4px; }

@media (min-width: 1000px) {
  .approche-grid { grid-template-columns: 1fr auto 1fr; gap: 32px; }
  .approche-fleche { transform: none; }
  .approche-apres { padding: 40px; }
}

/* Liste cochée (approche, premier rendez-vous) */
.check-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.check-list li { display: flex; align-items: flex-start; gap: 12px; font-size: 16px; line-height: 1.5; color: var(--on-dark-mute); }
.check-list svg { flex: none; }
.check-list strong { color: var(--white); font-weight: 600; }
.check-list-clair li { color: var(--white); }

/* ---------- MyPensionWallet ---------- */
.mpw-grid { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.mpw-content { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.mpw-cta { align-self: flex-start; }
.mpw-cards {
  flex: 1 1 440px;
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

/* ---------- Contact ---------- */
.contact { padding-top: 120px; padding-bottom: 120px; }
.contact-grid { display: flex; flex-wrap: wrap; gap: 64px; align-items: flex-start; }
.contact-content { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.contact-title {
  margin: 0;
  font-size: clamp(40px, 5.6vw, 80px);
  font-weight: 500;
  line-height: 1.0;
  letter-spacing: -0.03em;
}
.rdv { display: flex; flex-direction: column; gap: 16px; padding: 24px; border-radius: 20px; background: var(--navy-elevated); }
.rdv-title { margin: 0; font-size: 20px; font-weight: 500; letter-spacing: -0.2px; }
.contact-details { display: flex; flex-direction: column; gap: 8px; font-size: 16px; color: var(--on-dark-mute); }

.contact-form {
  flex: 1 1 440px;
  min-width: 0;
  background: var(--navy-elevated);
  border-radius: 28px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--on-dark-mute);
}
.field-input {
  height: 56px;
  box-sizing: border-box;
  padding: 0 16px;
  border-radius: 12px;
  border: 1px solid var(--hairline-light);
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-size: 16px;
}
.field-textarea { height: auto; padding: 14px 16px; resize: vertical; }

/* ---------- Pied de page ---------- */
.site-footer {
  background: var(--navy);
  padding: 64px 24px 48px;
  border-top: 1px solid var(--hairline-dark);
}
.footer-inner { display: flex; flex-direction: column; gap: 40px; }
.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 32px;
  align-items: center;
}
.footer-links { display: flex; flex-wrap: wrap; gap: 24px; font-size: 14px; }
.footer-link { text-decoration: none; color: var(--on-dark-mute); }

/* Filet plus discret que --hairline-dark (0.12) : valeur d'origine conservée, hors jeton */
.footer-legal {
  margin: 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 13px;
  line-height: 1.6;
  color: var(--on-dark-mute);
}

/* ---------- Pages de contenu (mentions légales) ---------- */
.legal { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 40px; }
.legal-head { display: flex; flex-direction: column; gap: 16px; }
.legal-section { display: flex; flex-direction: column; gap: 12px; }
.legal-heading { margin: 0; font-size: 24px; font-weight: 500; letter-spacing: -0.2px; }
.legal-section p,
.legal-section ul { margin: 0; font-size: 16px; line-height: 1.6; color: var(--mute); }
.legal-section ul { padding-left: 20px; display: flex; flex-direction: column; gap: 4px; }
.legal-section strong { color: var(--ink); font-weight: 600; }
.legal a { color: var(--cobalt); text-underline-offset: 2px; overflow-wrap: anywhere; }
.legal a:hover { color: var(--cobalt-deep); }
.legal-update { margin: 0; font-size: 14px; color: var(--mute); }

/* Avertissement en quatre langues, en tête des mentions légales */
.legal-alert { gap: 32px; padding: 32px; border-radius: 20px; background: var(--mist); }
.legal-alert-block { display: flex; flex-direction: column; gap: 12px; }
.legal-subheading { margin: 0; font-size: 20px; font-weight: 500; letter-spacing: -0.2px; }
.legal-section .legal-alert-langs { font-size: 14px; }

/* ---------- Bandeau de consentement aux cookies (js/consentement.js) ---------- */
.consent {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 1000;
  box-sizing: border-box;
  max-width: 560px;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  margin: 0 auto;
  padding: 24px;
  border: 1px solid var(--hairline-light);
  border-radius: 20px;
  background: var(--white);
  color: var(--ink);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.consent[hidden],
.consent-choices[hidden] { display: none; }
.consent-title { margin: 0; font-size: 20px; font-weight: 500; letter-spacing: -0.2px; }
.consent-text { margin: 0; font-size: 14px; line-height: 1.5; color: var(--mute); }
.consent a { color: var(--cobalt); text-underline-offset: 2px; }
.consent-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.consent .btn { justify-content: center; border: 0; font-family: inherit; cursor: pointer; }
.consent-more {
  min-height: 44px;
  padding: 0 4px;
  border: 0;
  background: none;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--cobalt);
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}
.consent-choices { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.consent-option { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; line-height: 1.5; color: var(--mute); }
.consent-option input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--cobalt); }
.consent-option strong { color: var(--ink); font-weight: 600; }

@media (max-width: 480px) {
  .consent { left: 8px; right: 8px; bottom: 8px; padding: 20px; }
  .consent-actions .btn { flex: 1 1 140px; }
}

/* Lien « Gérer les cookies » du pied de page : un bouton qui ressemble aux liens voisins */
.footer-button { padding: 0; border: 0; background: none; font: inherit; cursor: pointer; }

/* ---------- Bandeau d'avertissement (usurpation d'identité) ---------- */
.alert-bar { background: var(--navy-elevated); border-bottom: 1px solid var(--hairline-dark); }
.alert-bar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  line-height: 1.5;
}
.alert-bar-inner svg { flex: none; }
.alert-bar p { margin: 0; }
.alert-bar a { color: var(--white); text-underline-offset: 2px; }
.alert-bar-langs { color: var(--on-dark-mute); white-space: nowrap; }

/* ---------- Survol et focus clavier (README §6 et §8) ---------- */
.nav-link:hover { color: var(--white); }

/* Cobalt clair sur fond sombre, cobalt sur fond clair : contraste ≥ 3:1 dans les deux cas */
:focus-visible { outline: 2px solid var(--cobalt-light); outline-offset: 3px; }
.section-light :focus-visible,
.section-mist :focus-visible { outline-color: var(--cobalt); }
