/* =========================================================
   ACFL — Association Care for Life
   Feuille de style unique du site statique.
   Palette issue du logo officiel.
   ========================================================= */

:root {
  /* Couleurs du logo */
  --navy:        #003D80;
  --navy-deep:   #00265A;
  --green:       #4CA23A;
  --gold:        #E0B850;

  /* Fonds */
  --tint:        #EAF1F9;
  --bg-soft:     #F6F9FD;
  --bg-row:      #FAFCFE;
  --white:       #FFFFFF;

  /* Traits */
  --border:      #D3DFEE;
  --border-2:    #BFD3E8;
  --border-3:    #AFC6E0;
  --divider:     #E4EBF4;

  /* Textes */
  --text:        #00265A;
  --text-1:      #31486B;
  --text-2:      #445A78;
  --muted:       #63799A;

  /* Déclinaison verte (encarts diaspora) */
  --green-bg:     #EDF7EA;
  --green-border: #CFE8C8;
  --green-dark:   #215616;
  --green-mid:    #2F6B22;

  /* Sur fond bleu */
  --on-navy-1:   #BBD3EE;
  --on-navy-2:   #9CC0E4;
  --footer-mute: #8AA5C6;

  /* Formulaires */
  --field-border: #C6D4E4;
  --field-ph:     #96A9C0;
  --required:     #C0492B;

  --radius:      10px;
  --radius-sm:   6px;
  --wrap:        1200px;

  --font-title: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-body:  "Karla", "Helvetica Neue", Arial, sans-serif;
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-title);
  margin: 0;
  letter-spacing: -0.02em;
  color: var(--text);
}

.core__plus {
  font-size: 14px;
  font-weight: 700;
  margin-top: 10px;
  fill: currentColor;
}
p { margin: 0; text-wrap: pretty; }
ul { margin: 0; padding: 0; list-style: none; }
img { max-width: 100%; }

a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--navy-deep); text-decoration: underline; }

:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--navy); color: #fff; padding: 12px 18px; border-radius: 0 0 6px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Grille ---------- */

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

.section { padding: 80px 0; }
.section--soft { background: var(--bg-soft); }
.section--tint { background: var(--tint); }
.section--tight { padding-top: 0; }

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-gap-lg { gap: 40px; }

.split { display: grid; grid-template-columns: 5fr 7fr; gap: 56px; align-items: start; }
.split--center { align-items: center; }
.split--wide-left { grid-template-columns: 7fr 5fr; }

.split > *, .grid > * { min-width: 0; }

.stack { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }

/* ---------- Titrage ---------- */

.eyebrow {
  display: block;
  font-size: 13px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--navy);
}
.eyebrow--gold { color: var(--green); }

.h-xl  { font-size: clamp(2.25rem, 4.4vw, 3.25rem); line-height: 1.06; font-weight: 800; }
.h-lg  { font-size: clamp(2rem, 4vw, 3rem);       line-height: 1.08; font-weight: 800; }
.h-md  { font-size: clamp(1.75rem, 3vw, 2.5rem);  line-height: 1.12; font-weight: 700; }
.h-sm  { font-size: clamp(1.5rem, 2.4vw, 2.125rem); line-height: 1.14; font-weight: 700; }

.lead      { font-size: clamp(1.0625rem, 1.6vw, 1.25rem); line-height: 1.6; color: var(--text-1); }
.body      { font-size: 1rem; line-height: 1.65; color: var(--text-2); }
.body--sm  { font-size: 0.9375rem; line-height: 1.6; color: var(--text-2); }
.muted     { color: var(--muted); }
.measure   { max-width: 62ch; }
.mt-sm { margin-top: 10px; } .mt-md { margin-top: 18px; } .mt-lg { margin-top: 32px; } .mt-xl { margin-top: 44px; }

/* ---------- En-tête ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; padding: 14px 0;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand:hover { text-decoration: none; }
.brand__logo { width: 54px; height: 54px; display: block; }
.brand__name { font-family: var(--font-title); font-weight: 800; font-size: 1.0625rem; color: var(--navy-deep); display: block; }
.brand__tag  { font-size: 0.75rem; color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase; display: block; margin-top: 1px; }

.nav { display: flex; align-items: center; gap: 26px; }
.nav a { font-size: 0.9375rem; color: var(--text-1); }
.nav a:hover { color: var(--navy); text-decoration: none; }
.nav a[aria-current="page"] {
  font-weight: 700; color: var(--navy);
  border-bottom: 2px solid var(--navy); padding-bottom: 3px;
}
/* Le bouton de la barre de navigation garde ses propres couleurs. */
.nav a.btn--primary,
.nav a.btn--primary:hover { color: var(--white); border-bottom: 0; padding-bottom: 0; }

.nav-toggle {
  display: none; align-items: center; justify-content: center;
  width: 46px; height: 46px; border: 1px solid var(--border);
  border-radius: var(--radius-sm); background: var(--white);
  color: var(--navy-deep); cursor: pointer;
}

/* ---------- Boutons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 26px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body); font-weight: 700; font-size: 1rem;
  border: 1px solid transparent; cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn:hover { text-decoration: none; }
.btn--sm { min-height: 46px; font-size: 0.9375rem; padding: 0 20px; }
.btn--lg { min-height: 54px; padding: 0 30px; }

.btn--primary { background: var(--navy); color: var(--white); }
.btn--primary:hover { background: var(--navy-deep); color: var(--white); }

.btn--ghost { background: var(--white); color: var(--navy-deep); border-color: var(--border-3); }
.btn--ghost:hover { border-color: var(--navy); color: var(--navy); }

.btn--light { background: var(--white); color: var(--navy); }
.btn--light:hover { background: var(--tint); color: var(--navy-deep); }

.btn--outline-light { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.45); }
.btn--outline-light:hover { background: rgba(255,255,255,0.12); color: var(--white); }

/* ---------- Fragments ---------- */

.badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px; background: var(--white);
  border: 1px solid var(--border-2); border-radius: 999px;
  font-size: 0.8125rem; font-weight: 700; color: var(--navy);
}
.badge__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); }

.pill {
  display: inline-block; padding: 5px 12px;
  background: var(--tint); border-radius: 999px;
  font-size: 0.8125rem; font-weight: 700; color: var(--navy);
}
.pill--green { background: var(--white); color: var(--green); }

.breadcrumb { font-size: 0.8125rem; color: var(--muted); }
.breadcrumb strong { color: var(--navy); }

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
}
.card--tint  { background: var(--tint); border-color: transparent; }
.card--green { background: var(--green-bg); border-color: var(--green-border); }
.card--flush { height: 100%; }
.card__icon { display: block; color: var(--navy); }
.card h3 { font-size: 1.3125rem; font-weight: 700; margin-top: 16px; }

.page-head { background: var(--tint); padding: 56px 0; }
.page-head h1 { margin-top: 14px; }
.page-head .lead { margin-top: 18px; max-width: 62ch; }

/* ---------- Hero ---------- */

.hero { background: var(--tint); padding: 72px 0; }
.hero__logo { width: 132px; height: 132px; display: block; margin-bottom: 26px; }
.hero__grid { display: grid; grid-template-columns: 7fr 5fr; gap: 48px; align-items: center; }
.hero h1 { margin-top: 24px; }
.hero .lead { margin-top: 22px; max-width: 56ch; }

.facts { background: var(--white); border: 1px solid #CCDCEE; border-radius: var(--radius); padding: 30px; }
.facts h2 { font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.facts__list { margin-top: 18px; }
.facts__item {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding: 15px 0; border-bottom: 1px solid var(--divider);
}
.facts__item:last-child { border-bottom: 0; }
.facts__label { font-size: 0.9375rem; color: var(--text-1); }
.facts__value { font-family: var(--font-title); font-size: 1.5rem; font-weight: 700; color: var(--navy); }

/* ---------- Étapes ---------- */

.steps { counter-reset: step; }
.step__num {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 44px; width: 44px; height: 44px; border-radius: 50%;
  background: var(--tint); color: var(--navy);
  font-family: var(--font-title); font-weight: 800; font-size: 1.125rem;
}
.step__num--sm { min-width: 34px; width: 34px; height: 34px; font-size: 0.9375rem; }
.step__num--solid { background: var(--navy); color: var(--white); }
.step__num--green { background: var(--green); color: var(--white); }
.step h3 { font-size: 1.3125rem; font-weight: 700; margin-top: 18px; }

.step-line { border-top: 3px solid var(--navy); padding-top: 22px; }
.step-line--green { border-top-color: var(--green); }
.step-line span { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.step-line h3 { font-size: 1.25rem; font-weight: 700; margin-top: 8px; }

.step-card { display: flex; gap: 20px; align-items: flex-start; padding: 22px 24px; }
.step-card h3 { font-size: 1.125rem; font-weight: 700; margin-top: 0; }

/* ---------- Bandeau chiffré ---------- */

.panel { background: var(--navy-deep); border-radius: 12px; padding: 52px 56px; color: var(--white); }
.panel h2 { color: var(--white); }
.panel p { color: var(--on-navy-1); }
.panel__box { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.16); border-radius: var(--radius); padding: 28px; }
.panel__note { font-size: 0.875rem; line-height: 1.55; color: #93B0D0; margin-top: 22px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.14); }

.calc { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.calc__cell { text-align: center; }
.calc__num { font-family: var(--font-title); font-size: 1.875rem; font-weight: 800; }
.calc__label { font-size: 0.8125rem; margin-top: 4px; }
.calc__op { font-family: var(--font-title); font-size: 1.625rem; color: var(--green); }
.calc__total { text-align: center; flex-grow: 1; }
.calc__total .calc__num { font-size: 2.375rem; color: var(--green); }

.kpi { background: var(--navy); border-radius: var(--radius); padding: 32px; }
.kpi--plain { background: var(--white); border: 1px solid var(--border); }
.kpi__label { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--on-navy-2); }
.kpi--plain .kpi__label { color: var(--muted); }
.kpi__value { font-family: var(--font-title); font-size: 3.375rem; font-weight: 800; color: var(--white); margin-top: 10px; line-height: 1; }
.kpi--plain .kpi__value { color: var(--navy-deep); }
.kpi p { color: var(--on-navy-1); margin-top: 12px; font-size: 0.9375rem; line-height: 1.6; }
.kpi--plain p { color: var(--text-2); }

/* ---------- Tableaux ---------- */

.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table {
  width: 100%; min-width: 640px; border-collapse: collapse;
  border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
}
.table th {
  background: var(--navy-deep); color: var(--white);
  font-family: var(--font-title); font-size: 0.8125rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  text-align: left; padding: 15px 24px;
}
.table td { padding: 20px 24px; font-size: 1rem; line-height: 1.55; color: var(--text-2); border-bottom: 1px solid var(--divider); vertical-align: top; }
.table tbody tr:nth-child(even) { background: var(--bg-row); }
.table tbody tr:last-child td { border-bottom: 0; }
.table .t-key { font-weight: 700; color: var(--navy-deep); }
.table .t-amount { font-family: var(--font-title); font-size: 1.5rem; font-weight: 800; color: var(--navy-deep); }
.table .t-amount--hi { color: var(--navy); }

/* ---------- Encarts ---------- */

.callout {
  background: var(--green-bg);
  border-left: 4px solid var(--green);
  border-radius: 8px; padding: 30px 34px;
}
.callout h3 { color: var(--green-dark); font-size: 1.375rem; font-weight: 700; }
.callout p { color: var(--green-mid); margin-top: 12px; line-height: 1.65; }

.note { font-size: 0.875rem; line-height: 1.6; color: var(--muted); margin-top: 16px; }
.note--todo { color: var(--required); font-weight: 700; }

.quote { padding-left: 16px; border-left: 3px solid var(--border); }
.marker { padding-left: 16px; border-left: 3px solid var(--navy); }
.marker--green { border-left-color: var(--green); }
.marker h4 { font-size: 1.0625rem; font-weight: 700; }

.age { display: flex; gap: 22px; align-items: flex-start; background: var(--tint); border-radius: var(--radius); padding: 24px 26px; }
.age--green { background: var(--green-bg); }
.age__key { min-width: 104px; }
.age__num { font-family: var(--font-title); font-size: 1.5rem; font-weight: 800; color: var(--navy); }
.age__unit { font-size: 0.8125rem; color: var(--muted); margin-top: 2px; }

.check-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 0.9375rem; line-height: 1.55; color: var(--text-2); }
.check-list li + li { margin-top: 10px; }
.check-list svg { flex-shrink: 0; margin-top: 2px; color: var(--navy); }
.card--green .check-list li { color: var(--green-mid); }
.card--green .check-list svg { color: var(--green); }

/* ---------- FAQ ---------- */

.faq-nav { display: flex; flex-direction: column; gap: 6px; position: sticky; top: 100px; }
.faq-nav a { padding: 12px 16px; border-radius: var(--radius-sm); font-size: 0.9375rem; color: var(--text-2); }
.faq-nav a:hover { background: var(--bg-soft); text-decoration: none; color: var(--navy); }
.faq-nav a.is-active { background: var(--tint); color: var(--navy); font-weight: 700; }

.faq-group + .faq-group { margin-top: 40px; }
.faq-group > h2 { font-size: 1.5rem; font-weight: 700; padding-bottom: 14px; border-bottom: 2px solid var(--navy); }

.faq-item { border-bottom: 1px solid var(--divider); }
.faq-item:last-child { border-bottom: 0; }
.faq-item > summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: flex-start; gap: 20px;
  padding: 22px 0; font-family: var(--font-title); font-size: 1.125rem; font-weight: 700; color: var(--navy-deep);
}
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-item > summary:hover { color: var(--navy); }
.faq-item__sign { flex-shrink: 0; color: var(--navy); transition: transform .18s ease; }
.faq-item[open] .faq-item__sign { transform: rotate(45deg); }
.faq-item__answer { padding: 0 0 22px; font-size: 1rem; line-height: 1.65; color: var(--text-2); max-width: 68ch; }

/* ---------- Formulaires ---------- */

.form { border: 1px solid var(--border); border-radius: 12px; padding: 36px; }
.form h2 { font-size: clamp(1.5rem, 2.4vw, 1.875rem); font-weight: 700; }

.field { display: block; }
.field + .field, .field-grid + .field, .field + .field-grid { margin-top: 20px; }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
/* Dans la grille à deux colonnes, c'est le `gap` qui espace : pas de marge sur les
   champs voisins, sinon le second champ de chaque ligne descend de 20 px. */
.field-grid > .field, .field-grid > .field + .field { margin-top: 0; }
.field-grid > .field { align-self: start; }
.field__label { display: block; font-size: 0.875rem; font-weight: 700; color: var(--navy-deep); margin-bottom: 8px; }
.field__label .req { color: var(--required); }

.input, .select, .textarea {
  width: 100%; font-family: var(--font-body); font-size: 0.9375rem; color: var(--navy-deep);
  background: var(--white); border: 1px solid var(--field-border); border-radius: var(--radius-sm);
  padding: 0 14px; min-height: 50px;
}
.textarea { padding: 14px; min-height: 140px; line-height: 1.6; resize: vertical; }
.input::placeholder, .textarea::placeholder { color: var(--field-ph); }
.input:focus, .select:focus, .textarea:focus { border-color: var(--navy); outline: none; box-shadow: 0 0 0 3px rgba(0,61,128,0.12); }
.select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2363799A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
  padding-right: 40px;
}

.radio-row { display: flex; gap: 12px; flex-wrap: wrap; }
.radio {
  flex: 1 1 220px; display: flex; align-items: center; gap: 12px;
  min-height: 54px; padding: 0 18px; cursor: pointer;
  border: 1px solid var(--field-border); border-radius: var(--radius-sm);
  font-size: 0.9375rem; color: var(--text-2);
}
.radio input { accent-color: var(--navy); width: 18px; height: 18px; }
.radio:has(input:checked) { border: 2px solid var(--navy); background: var(--tint); color: var(--navy-deep); font-weight: 700; }

.dropzone {
  border: 1.5px dashed var(--field-border); border-radius: 8px; background: var(--bg-row);
  padding: 26px; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center;
}
.dropzone svg { color: var(--navy); }
.dropzone strong { font-size: 0.9375rem; color: var(--navy-deep); }
.dropzone span { font-size: 0.8125rem; color: var(--muted); }
.dropzone input[type="file"] { margin-top: 6px; font-size: 0.8125rem; max-width: 100%; }
input, select, textarea, button { min-width: 0; max-width: 100%; }

.consent { display: flex; gap: 12px; align-items: flex-start; margin-top: 24px; font-size: 0.9375rem; line-height: 1.55; color: var(--text-2); cursor: pointer; }
.consent input { width: 20px; height: 20px; flex-shrink: 0; margin-top: 2px; accent-color: var(--navy); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chip { padding: 7px 14px; background: var(--bg-soft); border: 1px solid var(--border); border-radius: 999px; font-size: 0.8125rem; color: var(--text-2); }
.chip--on { background: var(--tint); border-color: transparent; color: var(--navy); font-weight: 700; }

/* ---------- Bandes d'appel ---------- */

.cta { background: var(--navy); padding: 60px 0; }
.cta__inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.cta h2 { color: var(--white); font-size: clamp(1.75rem, 3vw, 2.125rem); line-height: 1.15; font-weight: 700; }
.cta p { color: var(--on-navy-1); margin-top: 10px; font-size: 1.0625rem; line-height: 1.6; max-width: 60ch; }
.cta .row { flex-shrink: 0; }

/* ---------- Pied de page ---------- */

.site-footer { background: var(--navy-deep); padding: 56px 0 30px; color: var(--on-navy-1); }
.site-footer h4 { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--footer-mute); }
.site-footer a { color: #DCE9F4; }
.site-footer a:hover { color: var(--white); }
.site-footer__grid { display: grid; grid-template-columns: 5fr 3fr 4fr; gap: 48px; }
.site-footer__brand { display: flex; align-items: center; gap: 12px; }
.site-footer__logo {
  display: inline-flex; align-items: center; justify-content: center;
  width: 58px; height: 58px; background: var(--white); border-radius: var(--radius); flex-shrink: 0;
}
.site-footer__logo img { width: 48px; height: 48px; display: block; }
.site-footer__name { font-family: var(--font-title); font-weight: 800; font-size: 1rem; color: var(--white); }
.site-footer__about { font-size: 1rem; line-height: 1.6; margin-top: 16px; max-width: 42ch; }
.site-footer__legal { font-size: 0.8125rem; color: var(--footer-mute); margin-top: 18px; }
.site-footer ul { margin-top: 16px; }
.site-footer li + li { margin-top: 11px; }
.site-footer li { font-size: 0.9375rem; }
.site-footer__bottom {
  display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap;
  margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,0.13);
  font-size: 0.8125rem; color: var(--footer-mute);
}

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 1080px) {
  .hero__grid { grid-template-columns: 1fr; gap: 36px; }
  .split, .split--wide-left { grid-template-columns: 1fr; gap: 32px; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .faq-nav { position: static; flex-direction: row; flex-wrap: wrap; }
}

@media (max-width: 900px) {
  .nav {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white); border-bottom: 1px solid var(--border);
    padding: 8px 24px 20px;
    box-shadow: 0 14px 24px rgba(0, 38, 90, 0.08);
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--divider); }
  .nav a[aria-current="page"] { border-bottom: 1px solid var(--divider); padding-bottom: 14px; }
  .nav .btn { margin-top: 16px; }
  .nav-toggle { display: inline-flex; }
  .site-header__inner { position: relative; }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .panel { padding: 36px 28px; }
}

@media (max-width: 680px) {
  .section { padding: 56px 0; }
  .page-head { padding: 40px 0; }
  .hero { padding: 48px 0; }
  .hero__logo { width: 104px; height: 104px; }
  .grid-2, .grid-3, .grid-4, .field-grid { grid-template-columns: 1fr; }
  .site-footer__grid { grid-template-columns: 1fr; gap: 36px; }
  .card, .form { padding: 24px; }
  .calc { justify-content: center; }
  .cta__inner { flex-direction: column; align-items: flex-start; }
  .brand__tag { display: none; }
  .age { flex-direction: column; gap: 12px; }
}

/* ---------- Impression ---------- */

@media print {
  .site-header, .nav-toggle, .cta, .skip-link { display: none; }
  body { color: #000; }
  .section { padding: 20px 0; }
}

/* =========================================================
   Bannière animée de l'accueil — « le cercle de solidarité »
   Tout est en CSS/SVG : aucun fichier vidéo, aucune image.
   ========================================================= */

.hero--banner { position: relative; overflow: hidden; padding: 64px 0 72px; }

.hero__bg {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(880px 520px at 78% 46%, rgba(76, 162, 58, 0.13), transparent 62%),
    radial-gradient(700px 460px at 10% 6%,  rgba(0, 61, 128, 0.12), transparent 64%);
}
.hero--banner .hero__grid { position: relative; }
.hero--banner .hero__logo { width: 112px; height: 112px; margin-bottom: 22px; }

.hero__figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.hero__figure figcaption {
  font-size: 0.875rem; line-height: 1.55; color: var(--text-2);
  text-align: center; max-width: 44ch;
}
.hero__figure figcaption strong { color: var(--navy-deep); }

.solidarity { width: 100%; max-width: 440px; height: auto; display: block; overflow: visible; }

/* Anneaux */
.ring { fill: none; }
.ring--outer { stroke: rgba(0, 61, 128, 0.10); stroke-width: 1.5; }
.ring--inner { stroke: rgba(0, 61, 128, 0.16); stroke-width: 1.5; }
.ring--dash {
  stroke: var(--green); stroke-width: 3; stroke-linecap: round;
  stroke-dasharray: 74 1258; opacity: 0.8;
  transform-origin: 240px 240px;
  animation: ring-spin 9s linear infinite;
}
@keyframes ring-spin { to { transform: rotate(360deg); } }

/* Traits de liaison membre → centre */
.ray {
  stroke: var(--navy); stroke-width: 1; opacity: 0;
  animation: ray-flash 3.6s ease-out infinite;
  animation-delay: calc(var(--i) * 0.12s);
}
@keyframes ray-flash {
  0%   { opacity: 0; }
  8%   { opacity: 0.18; }
  46%  { opacity: 0; }
  100% { opacity: 0; }
}

/* Les membres du cercle */
.member__dot,
.member__halo,
.coin__disc,
.core__heart,
.pulse { transform-box: fill-box; transform-origin: center; }

.member__dot {
  fill: var(--navy); opacity: 0.28;
  animation: member-wake 3.6s ease-out infinite;
  animation-delay: calc(var(--i) * 0.12s);
}
@keyframes member-wake {
  0%   { opacity: 0.28; transform: scale(1); }
  8%   { opacity: 1;    transform: scale(1.35); }
  42%  { opacity: 0.55; transform: scale(1); }
  100% { opacity: 0.28; transform: scale(1); }
}

.member__halo {
  fill: var(--green); opacity: 0;
  animation: member-halo 3.6s ease-out infinite;
  animation-delay: calc(var(--i) * 0.12s);
}
@keyframes member-halo {
  0%       { opacity: 0;    transform: scale(0.5); }
  8%       { opacity: 0.30; transform: scale(1); }
  38%,100% { opacity: 0;    transform: scale(1.55); }
}

/* Les 500 F qui convergent vers le membre malade */
.coin__disc {
  fill: var(--green); opacity: 0;
  animation: coin-travel 3.6s cubic-bezier(0.45, 0.05, 0.3, 1) infinite;
  animation-delay: calc(var(--i) * 0.12s);
}
@keyframes coin-travel {
  0%       { transform: translate(0, 0) scale(0.4); opacity: 0; }
  8%       { transform: translate(0, 0) scale(1);   opacity: 1; }
  52%      { transform: translate(calc(var(--tx) * -1px), calc(var(--ty) * -1px)) scale(0.7); opacity: 1; }
  60%,100% { transform: translate(calc(var(--tx) * -1px), calc(var(--ty) * -1px)) scale(0.2); opacity: 0; }
}

/* Ondes de réception au centre */
.pulse {
  fill: none; stroke: var(--navy); stroke-width: 2; opacity: 0;
  animation: pulse-out 3.6s ease-out infinite; animation-delay: 2.1s;
}
.pulse--late { animation-delay: 2.45s; }
@keyframes pulse-out {
  0%       { transform: scale(1);   opacity: 0.45; }
  55%,100% { transform: scale(1.85); opacity: 0; }
}

/* Le membre assisté, au centre */
.core__disc { fill: var(--white); stroke: var(--navy); stroke-width: 2; }
.core__heart { fill: var(--green); animation: heart-beat 3.6s ease-in-out infinite; }
@keyframes heart-beat {
  0%, 52%  { transform: scale(1); }
  60%      { transform: scale(1.18); }
  68%      { transform: scale(0.97); }
  76%      { transform: scale(1.09); }
  86%,100% { transform: scale(1); }
}
.core__amount {
  font-family: var(--font-title); font-size: 26px; font-weight: 800;
  fill: var(--navy-deep); letter-spacing: -0.01em;
}

/* Bandeau de chiffres sous la bannière */
.statbar { background: var(--white); border-bottom: 1px solid var(--border); padding: 30px 0 32px; }
.statbar__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.statbar__item { display: flex; flex-direction: column; gap: 4px; padding-left: 18px; border-left: 3px solid var(--tint); }
.statbar__value { font-family: var(--font-title); font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 800; color: var(--navy); }
.statbar__label { font-size: 0.875rem; color: var(--muted); }
.statbar__note {
  margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--divider);
  font-size: 0.9375rem; color: var(--text-2);
}
.statbar__note strong { color: var(--navy-deep); }

@media (max-width: 900px) {
  .statbar__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
}
@media (max-width: 680px) {
  .hero--banner { padding: 40px 0 48px; }
  .hero--banner .hero__logo { width: 92px; height: 92px; }
  .solidarity { max-width: 320px; }
  .core__amount { font-size: 30px; }
  .statbar__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
}

/* Respect du réglage système « réduire les animations » */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ring--dash, .ray, .member__dot, .member__halo,
  .coin__disc, .core__heart, .pulse, .btn { animation: none !important; transition: none !important; }
  .member__dot { opacity: 1; }
  .member__halo { opacity: 0.16; }
  .coin__disc { opacity: 0.85; }
  .ray { opacity: 0.12; }
}

/* Sur mobile, la bannière passe en premier : le logo de l'en-tête suffit à la marque. */
@media (max-width: 900px) {
  .hero--banner .hero__logo { display: none; }
  .hero--banner .hero__figure { order: -1; margin-bottom: 8px; }
  .hero--banner .solidarity { max-width: 340px; }
}

/* ---------- Contacts du bureau et groupe WhatsApp ---------- */

.btn--green { background: var(--green); color: var(--white); }
.btn--green:hover { background: #3E8A2E; color: var(--white); }

.joinbox {
  display: flex; align-items: center; justify-content: space-between;
  gap: 36px; flex-wrap: wrap;
  background: var(--green-bg); border: 1px solid var(--green-border);
  border-radius: 12px; padding: 32px 36px;
}
.joinbox__text { flex: 1 1 420px; }
.joinbox__icon { color: var(--green); display: block; margin-bottom: 12px; }
.joinbox__text h2 { color: var(--green-dark); }
.joinbox__text p { color: var(--green-mid); }
.joinbox__actions { flex-shrink: 0; }

.person { display: flex; flex-direction: column; align-items: flex-start; }
.person > * { max-width: 100%; }
.person h3 { font-size: 1.25rem; margin-top: 14px; }
.person__num { margin-top: 8px; font-family: var(--font-title); font-size: 1.1875rem; font-weight: 700; }
.person__num a { color: var(--navy); }
.person__actions { margin-top: auto; padding-top: 20px; gap: 10px; }

@media (max-width: 680px) {
  .joinbox { padding: 26px 24px; }
  .joinbox__actions { width: 100%; }
  .joinbox__actions .btn { flex: 1 1 100%; }
}

/* =========================================================
   Effets de défilement
   — apparition progressive des blocs
   — en-tête qui s'efface en descendant, revient en remontant
   — jauge de progression et bouton « revenir en haut »
   Tout est désactivé si le visiteur a demandé de réduire les animations,
   et si JavaScript est absent le contenu s'affiche normalement.
   ========================================================= */

.js .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s ease, transform 0.55s cubic-bezier(0.22, 0.7, 0.28, 1);
  will-change: opacity, transform;
}
.js .reveal.is-in { opacity: 1; transform: none; }

/* En-tête */
.site-header { transition: transform 0.32s ease, box-shadow 0.32s ease; }
.site-header.is-stuck { box-shadow: 0 8px 24px rgba(0, 38, 90, 0.09); }
.site-header.is-hidden { transform: translateY(-100%); }

/* Jauge de progression, collée sous l'en-tête */
.scroll-progress {
  position: absolute; left: 0; right: 0; bottom: -1px; height: 3px;
  background: transparent; pointer-events: none; overflow: hidden;
}
.scroll-progress span {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--navy), var(--green));
  transform-origin: left center;
}

/* Bouton « revenir en haut » */
.to-top {
  position: fixed; right: 24px; bottom: 24px; z-index: 60;
  width: 52px; height: 52px; padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--navy); color: var(--white);
  border: 0; border-radius: 50%; cursor: pointer;
  /* Le liseré blanc détache le bouton aussi bien du fond clair que du pied de page bleu. */
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.92), 0 10px 24px rgba(0, 38, 90, 0.3);
  opacity: 0; transform: translateY(14px) scale(0.9);
  transition: opacity 0.25s ease, transform 0.25s ease, background-color 0.15s ease;
}
.to-top.is-visible { opacity: 1; transform: none; }
.to-top:hover { background: var(--navy-deep); }
.to-top:focus-visible { outline-offset: 4px; }

@media (max-width: 680px) {
  .to-top { right: 16px; bottom: 16px; width: 48px; height: 48px; }
}

@media print { .to-top, .scroll-progress { display: none; } }

@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .site-header { transition: none; }
  .site-header.is-hidden { transform: none; }
  .to-top { transition: none; }
}
