/* ==========================================================================
   MUPECUD — Feuille de style unique
   Mutuelle du Personnel de la Communauté Urbaine de Douala

   Palette strictement dérivée du logo :
     corail  #F2776D  (lettres « MUPE » + arc supérieur de l'anneau)
     bleu    #1571B7  (lettres « CUD » + arc inférieur de l'anneau)
     crème   #FFECB3  (fond photographique de la vignette)
     encre   #2A2A2A  (baseline « MUTUELLE DU PERSONNEL… »)
   Les variantes claires/foncées sont des dérivées de ces quatre teintes,
   ajustées pour atteindre les seuils de contraste WCAG AA.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Jetons de design
   -------------------------------------------------------------------------- */
:root {
  /* Couleurs de marque */
  --coral-50:  #FFF3F1;
  --coral-100: #FFE2DE;
  --coral-300: #F9A79F;
  --coral:     #F2776D;
  --coral-600: #D9564B;
  --coral-700: #B8433A;   /* AA sur blanc : 5.4:1 */
  --coral-900: #7A2A24;

  --blue-50:   #EDF5FC;
  --blue-100:  #D5E7F7;
  --blue-300:  #79B0DF;
  --blue:      #1571B7;
  --blue-700:  #0F5288;   /* AA sur blanc : 7.4:1 */
  --blue-900:  #0B3A61;
  --blue-950:  #072741;

  --cream-50:  #FFFBF2;
  --cream-100: #FFF5DF;
  --cream:     #FFECB3;
  --cream-600: #E0C888;

  --ink:       #2A2A2A;
  --ink-70:    #58585A;
  --ink-50:    #7B7B7E;
  --ink-30:    #ADADB0;

  --white:     #FFFFFF;
  --paper:     #FCFCFD;
  --line:      #E9E7E4;
  --line-soft: #F3F1EE;

  /* Typographie */
  --font-title: Georgia, "Iowan Old Style", "Times New Roman", serif;
  --font-body:  "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-mono:  "SFMono-Regular", "Cascadia Mono", Consolas, "Liberation Mono", monospace;

  --step--1: clamp(0.8rem, 0.77rem + 0.15vw, 0.875rem);
  --step-0:  clamp(0.95rem, 0.92rem + 0.18vw, 1.05rem);
  --step-1:  clamp(1.1rem, 1.04rem + 0.3vw, 1.3rem);
  --step-2:  clamp(1.35rem, 1.22rem + 0.62vw, 1.75rem);
  --step-3:  clamp(1.7rem, 1.45rem + 1.2vw, 2.5rem);
  --step-4:  clamp(2.1rem, 1.6rem + 2.3vw, 3.6rem);

  /* Rythme */
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --wrap: 1180px;
  --wrap-narrow: 780px;
  --section-y: clamp(3.5rem, 8vw, 7rem);

  /* Formes */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-xl: 30px;
  --r-pill: 999px;

  --shadow-xs: 0 1px 2px rgba(42, 42, 42, .05);
  --shadow-sm: 0 2px 10px rgba(42, 42, 42, .05), 0 1px 2px rgba(42, 42, 42, .04);
  --shadow-md: 0 10px 30px -12px rgba(11, 58, 97, .18), 0 2px 8px rgba(42, 42, 42, .04);
  --shadow-lg: 0 26px 60px -22px rgba(11, 58, 97, .28), 0 4px 14px rgba(42, 42, 42, .05);

  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);

  --header-h: 76px;
}

/* --------------------------------------------------------------------------
   2. Réinitialisation
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 20px);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }

/* Plusieurs composants imposent un `display`, ce qui neutraliserait la feuille
   de style du navigateur pour [hidden]. On rétablit la priorité. */
[hidden] { display: none !important; }

h1, h2, h3, h4 {
  font-family: var(--font-title);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.015em;
  color: var(--blue-950);
  margin: 0 0 .6em;
  text-wrap: balance;
}
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); }
h4 { font-size: var(--step-1); }

p { margin: 0 0 1.1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

a { color: var(--blue-700); text-decoration: none; }
a:hover { color: var(--coral-700); }

ul, ol { margin: 0 0 1.1em; padding-left: 1.25em; }
li { margin-bottom: .45em; }

strong { font-weight: 700; color: var(--blue-950); }
hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }

button, input, select, textarea { font: inherit; color: inherit; }

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: var(--coral-100); color: var(--coral-900); }

.skip-link {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translate(-50%, -120%);
  z-index: 200;
  background: var(--blue-900);
  color: #fff;
  padding: .7rem 1.4rem;
  border-radius: 0 0 var(--r-sm) var(--r-sm);
  font-size: var(--step--1);
  font-weight: 600;
  transition: transform .2s var(--ease);
}
.skip-link:focus { transform: translate(-50%, 0); color: #fff; }

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

/* --------------------------------------------------------------------------
   3. Mise en page
   -------------------------------------------------------------------------- */
.wrap {
  width: min(100% - (var(--gutter) * 2), var(--wrap));
  margin-inline: auto;
}
.wrap--narrow { max-width: var(--wrap-narrow); }

.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
.section--paper { background: var(--paper); }
.section--cream { background: linear-gradient(180deg, var(--cream-50), #fff); }
.section--line { border-top: 1px solid var(--line-soft); }

.grid { display: grid; gap: clamp(1.25rem, 2.5vw, 2rem); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); }

.stack > * + * { margin-top: 1.1em; }
.center { text-align: center; }
.mt-0 { margin-top: 0; }

/* Titre de section --------------------------------------------------------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--coral-700);
  margin-bottom: 1rem;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--coral);
  border-radius: 2px;
}
.eyebrow--blue { color: var(--blue-700); }
.eyebrow--blue::before { background: var(--blue); }
.eyebrow--light { color: var(--cream); }
.eyebrow--light::before { background: var(--cream); }
.center .eyebrow { justify-content: center; }

.section-head { max-width: 62ch; margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.center .section-head, .section-head.center { margin-inline: auto; }
.lead {
  font-size: var(--step-1);
  line-height: 1.6;
  color: var(--ink-70);
}

/* --------------------------------------------------------------------------
   4. Boutons
   -------------------------------------------------------------------------- */
.btn {
  --btn-bg: var(--blue-700);
  --btn-fg: #fff;
  --btn-bd: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  padding: .85rem 1.6rem;
  border: 1.5px solid var(--btn-bd);
  border-radius: var(--r-pill);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: var(--step--1);
  font-weight: 650;
  letter-spacing: .01em;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease),
              background-color .25s var(--ease), color .25s var(--ease),
              border-color .25s var(--ease);
}
.btn:hover { transform: translateY(-2px); color: var(--btn-fg); }
.btn:active { transform: translateY(0); }
.btn svg { width: 17px; height: 17px; flex: none; }
.btn .arrow { transition: transform .3s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

.btn--primary { --btn-bg: var(--coral-600); box-shadow: 0 10px 24px -12px rgba(217, 86, 75, .8); }
.btn--primary:hover { --btn-bg: var(--coral-700); box-shadow: 0 16px 30px -12px rgba(217, 86, 75, .85); }

.btn--blue { --btn-bg: var(--blue-700); box-shadow: 0 10px 24px -12px rgba(15, 82, 136, .75); }
.btn--blue:hover { --btn-bg: var(--blue-900); box-shadow: 0 16px 30px -12px rgba(15, 82, 136, .8); }

.btn--outline { --btn-bg: transparent; --btn-fg: var(--blue-900); --btn-bd: var(--line); }
.btn--outline:hover { --btn-bd: var(--blue-300); --btn-bg: var(--blue-50); }

.btn--ghost-light { --btn-bg: rgba(255,255,255,.12); --btn-fg: #fff; --btn-bd: rgba(255,255,255,.5); }
.btn--ghost-light:hover { --btn-bg: #fff; --btn-fg: var(--blue-950); --btn-bd: #fff; }

.btn--cream { --btn-bg: var(--cream); --btn-fg: var(--blue-950); }
.btn--cream:hover { --btn-bg: #fff; }

.btn--sm { padding: .6rem 1.15rem; font-size: .8rem; }
.btn--lg { padding: 1.05rem 2.1rem; font-size: var(--step-0); }
.btn--block { width: 100%; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: .85rem;
  align-items: center;
}
.center .btn-row, .btn-row.center { justify-content: center; }

/* Lien fléché -------------------------------------------------------------- */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-weight: 650;
  font-size: var(--step--1);
  color: var(--blue-700);
}
.link-arrow svg { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* --------------------------------------------------------------------------
   5. En-tête
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0);
  transition: background-color .35s var(--ease), box-shadow .35s var(--ease),
              border-color .35s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-solid {
  background: rgba(255, 255, 255, .93);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom-color: var(--line);
  box-shadow: 0 4px 24px -18px rgba(11, 58, 97, .5);
}
body:not(.has-hero) .site-header { background: rgba(255,255,255,.93); border-bottom-color: var(--line); }

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  width: min(100% - (var(--gutter) * 2), 1320px);
}

.brand { display: flex; align-items: center; gap: .7rem; color: inherit; }
.brand img { width: 42px; height: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name {
  font-family: var(--font-title);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: .01em;
  color: var(--blue-950);
}
.brand-tag {
  font-size: .58rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-50);
  font-weight: 600;
}
.site-header:not(.is-solid) .brand-name,
.site-header:not(.is-solid) .brand-tag { color: #fff; }
.site-header:not(.is-solid) .brand-tag { color: rgba(255,255,255,.78); }

.nav { display: flex; align-items: center; gap: .35rem; }
.nav a {
  position: relative;
  padding: .55rem .85rem;
  font-size: .9rem;
  font-weight: 550;
  color: var(--ink);
  border-radius: var(--r-sm);
  transition: color .2s var(--ease);
}
.nav a::after {
  content: "";
  position: absolute;
  left: .85rem; right: .85rem; bottom: .25rem;
  height: 2px;
  border-radius: 2px;
  background: var(--coral);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease);
}
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav a[aria-current="page"] { color: var(--blue-900); font-weight: 700; }
.site-header:not(.is-solid) .nav a { color: rgba(255,255,255,.9); }
.site-header:not(.is-solid) .nav a:hover,
.site-header:not(.is-solid) .nav a[aria-current="page"] { color: #fff; }

.header-cta { display: flex; align-items: center; gap: .6rem; }
.site-header:not(.is-solid) .header-cta .btn--outline {
  --btn-fg: #fff; --btn-bd: rgba(255,255,255,.45);
}
.site-header:not(.is-solid) .header-cta .btn--outline:hover {
  --btn-bg: #fff; --btn-fg: var(--blue-950); --btn-bd: #fff;
}

/* Bouton burger ------------------------------------------------------------ */
.burger {
  display: none;
  width: 44px; height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: #fff;
  cursor: pointer;
  position: relative;
}
.burger span {
  position: absolute;
  left: 12px;
  width: 20px; height: 2px;
  background: var(--blue-950);
  border-radius: 2px;
  transition: transform .3s var(--ease), opacity .2s var(--ease), top .3s var(--ease);
}
.burger span:nth-child(1) { top: 15px; }
.burger span:nth-child(2) { top: 21px; }
.burger span:nth-child(3) { top: 27px; }
.burger[aria-expanded="true"] span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

/* Tiroir mobile ------------------------------------------------------------ */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: rgba(11, 58, 97, .35);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s var(--ease), visibility .3s;
}
.drawer.is-open { opacity: 1; visibility: visible; }
.drawer-panel {
  position: absolute;
  top: 0; right: 0;
  width: min(88vw, 360px);
  height: 100%;
  background: #fff;
  padding: calc(var(--header-h) + 1.5rem) 1.75rem 2rem;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform .38s var(--ease-out);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.drawer.is-open .drawer-panel { transform: translateX(0); }
.drawer-nav { display: flex; flex-direction: column; }
.drawer-nav a {
  padding: .95rem .25rem;
  font-family: var(--font-title);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--blue-950);
  border-bottom: 1px solid var(--line-soft);
}
.drawer-nav a[aria-current="page"] { color: var(--coral-700); }
.drawer-foot { display: grid; gap: .7rem; }
.drawer-meta {
  font-size: var(--step--1);
  color: var(--ink-50);
  border-top: 1px solid var(--line-soft);
  padding-top: 1.25rem;
}

/* --------------------------------------------------------------------------
   6. Diaporama d'accueil
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: min(100svh, 880px);
  display: flex;
  align-items: flex-end;
  color: #fff;
  overflow: hidden;
  background: var(--blue-950);
}

.slides { position: absolute; inset: 0; }

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1.1s var(--ease), visibility 1.1s;
}
.slide.is-active { opacity: 1; visibility: visible; }

.slide-media { position: absolute; inset: 0; overflow: hidden; }
.slide-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.06);
}
.slide.is-active .slide-media img {
  animation: kenburns 9s var(--ease) forwards;
}
@keyframes kenburns {
  from { transform: scale(1.02) translate3d(0, 0, 0); }
  to   { transform: scale(1.14) translate3d(-1.2%, -1.6%, 0); }
}

.slide-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 39, 65, .62) 0%, rgba(7, 39, 65, .12) 32%, rgba(7, 39, 65, .78) 78%, rgba(7, 39, 65, .94) 100%),
    linear-gradient(100deg, rgba(11, 58, 97, .78) 0%, rgba(11, 58, 97, .22) 48%, rgba(184, 67, 58, .18) 100%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-block: calc(var(--header-h) + 3rem) clamp(3rem, 7vw, 5.5rem);
}

/* Largeur en rem, et non en ch : l'unité ch se calcule sur la police du
   conteneur (corps de texte) et donnerait une colonne bien trop étroite
   pour un titre de 3 rem. */
.slide-copy { max-width: min(46rem, 100%); }
.slide-copy .badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .4rem 1rem .4rem .55rem;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .13);
  border: 1px solid rgba(255, 255, 255, .28);
  backdrop-filter: blur(8px);
  font-size: .72rem;
  font-weight: 650;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 1.4rem;
}
.slide-copy .badge i {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--coral);
  box-shadow: 0 0 0 4px rgba(242, 119, 109, .28);
}
.slide-copy h1, .slide-copy h2 {
  color: #fff;
  font-size: clamp(2.05rem, 1.55rem + 2.1vw, 3.35rem);
  margin-bottom: .5em;
  text-shadow: 0 2px 30px rgba(7, 39, 65, .35);
}
.slide-copy h1 em, .slide-copy h2 em {
  font-style: normal;
  color: var(--cream);
}
.slide-copy p {
  font-size: var(--step-1);
  color: rgba(255, 255, 255, .88);
  margin-bottom: 2rem;
  max-width: 52ch;
}

/* Animation d'entrée du texte */
.slide.is-active .slide-copy > * {
  animation: slideUp .85s var(--ease-out) both;
}
.slide.is-active .slide-copy > *:nth-child(1) { animation-delay: .18s; }
.slide.is-active .slide-copy > *:nth-child(2) { animation-delay: .3s; }
.slide.is-active .slide-copy > *:nth-child(3) { animation-delay: .42s; }
.slide.is-active .slide-copy > *:nth-child(4) { animation-delay: .54s; }
@keyframes slideUp {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Commandes du diaporama --------------------------------------------------- */
.hero-controls {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  padding-top: 1.75rem;
  border-top: 1px solid rgba(255, 255, 255, .18);
}

.dots { display: flex; gap: .55rem; }
.dot {
  position: relative;
  width: 46px; height: 4px;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: rgba(255, 255, 255, .28);
  cursor: pointer;
  overflow: hidden;
  transition: background-color .3s var(--ease);
}
.dot::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--cream);
  transform: scaleX(0);
  transform-origin: left;
}
.dot[aria-selected="true"]::after { animation: dotFill var(--slide-duration, 6500ms) linear forwards; }
.hero.is-paused .dot[aria-selected="true"]::after { animation-play-state: paused; }
@keyframes dotFill { to { transform: scaleX(1); } }
.dot:hover { background: rgba(255, 255, 255, .5); }

.hero-arrows { display: flex; gap: .5rem; margin-left: auto; }
.hero-arrow {
  width: 46px; height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .38);
  background: rgba(255, 255, 255, .08);
  color: #fff;
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: background-color .25s var(--ease), transform .25s var(--ease),
              border-color .25s var(--ease);
}
.hero-arrow svg { width: 18px; height: 18px; }
.hero-arrow:hover { background: #fff; color: var(--blue-950); border-color: #fff; transform: scale(1.06); }

.hero-count {
  font-family: var(--font-mono);
  font-size: .8rem;
  letter-spacing: .1em;
  color: rgba(255, 255, 255, .72);
}
.hero-count b { color: #fff; font-size: 1.05rem; }

/* Bandeau de réassurance sous le héros ------------------------------------- */
.hero-strip {
  position: relative;
  z-index: 4;
  margin-top: -1px;
  background: var(--blue-950);
  color: rgba(255, 255, 255, .9);
}
.hero-strip .wrap {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1px;
  background: rgba(255, 255, 255, .12);
}
.hero-strip-item {
  background: var(--blue-950);
  padding: 1.6rem 1.5rem;
  display: flex;
  gap: .9rem;
  align-items: flex-start;
}
.hero-strip-item svg { width: 22px; height: 22px; color: var(--coral-300); flex: none; margin-top: 3px; }
.hero-strip-item b { display: block; color: #fff; font-size: .95rem; font-weight: 650; }
.hero-strip-item span { font-size: var(--step--1); color: rgba(255, 255, 255, .62); line-height: 1.5; }

/* --------------------------------------------------------------------------
   7. En-tête des pages intérieures
   -------------------------------------------------------------------------- */
.page-head {
  position: relative;
  padding-block: calc(var(--header-h) + clamp(3rem, 6vw, 5rem)) clamp(2.75rem, 5vw, 4.5rem);
  background: linear-gradient(160deg, var(--blue-950) 0%, var(--blue-900) 55%, #123f66 100%);
  color: #fff;
  overflow: hidden;
}
.page-head::before,
.page-head::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.page-head::before {
  width: 520px; height: 520px;
  right: -180px; top: -240px;
  background: radial-gradient(circle, rgba(242, 119, 109, .3), transparent 68%);
}
.page-head::after {
  width: 460px; height: 460px;
  left: -200px; bottom: -260px;
  background: radial-gradient(circle, rgba(255, 236, 179, .16), transparent 70%);
}
.page-head .wrap { position: relative; z-index: 1; }
.page-head h1 { color: #fff; max-width: 20ch; }
.page-head p { color: rgba(255, 255, 255, .82); max-width: 62ch; font-size: var(--step-1); }

.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
  font-size: var(--step--1);
  color: rgba(255, 255, 255, .6);
  margin-bottom: 1.5rem;
}
.crumbs a { color: rgba(255, 255, 255, .82); }
.crumbs a:hover { color: var(--cream); }
.crumbs span[aria-current] { color: var(--cream); }
.crumbs .sep { opacity: .45; }

/* --------------------------------------------------------------------------
   8. Cartes
   -------------------------------------------------------------------------- */
.card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(1.5rem, 2.5vw, 2rem);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease),
              border-color .35s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--blue-100); }
.card h3 { font-size: var(--step-1); margin-bottom: .5em; }
.card p { color: var(--ink-70); font-size: var(--step--1); line-height: 1.68; }

.card-icon {
  width: 52px; height: 52px;
  display: grid;
  place-items: center;
  border-radius: var(--r-md);
  background: var(--blue-50);
  color: var(--blue-700);
  margin-bottom: 1.25rem;
}
.card-icon svg { width: 24px; height: 24px; }
.card-icon--coral { background: var(--coral-50); color: var(--coral-700); }
.card-icon--cream { background: var(--cream-100); color: var(--coral-900); }

/* Carte prestation --------------------------------------------------------- */
.prestation {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 1.75rem;
  overflow: hidden;
  position: relative;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.prestation::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, var(--coral), var(--blue));
  transform: scaleY(0);
  transform-origin: top;
  transition: transform .4s var(--ease);
}
.prestation:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--blue-100); }
.prestation:hover::before { transform: scaleY(1); }
.prestation h3 { font-size: var(--step-1); margin-bottom: .15em; }
.prestation .montant {
  font-family: var(--font-mono);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--coral-700);
  letter-spacing: -.02em;
}
.prestation .montant small {
  display: block;
  font-family: var(--font-body);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-50);
  margin-top: .2rem;
}
.prestation p { color: var(--ink-70); font-size: var(--step--1); margin-top: .75rem; }

/* Chiffres clés ------------------------------------------------------------ */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.stat { background: #fff; padding: clamp(1.5rem, 3vw, 2.25rem); text-align: center; }
.stat .num {
  font-family: var(--font-title);
  font-size: clamp(2rem, 4vw, 2.9rem);
  font-weight: 700;
  line-height: 1;
  color: var(--blue-900);
  letter-spacing: -.03em;
}
.stat .num sup { font-size: .45em; color: var(--coral-600); top: -.7em; }
.stat .label {
  display: block;
  margin-top: .6rem;
  font-size: var(--step--1);
  color: var(--ink-70);
  line-height: 1.45;
}

/* --------------------------------------------------------------------------
   9. Blocs à deux colonnes
   -------------------------------------------------------------------------- */
.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.split--top { align-items: start; }

.figure {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.figure img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.figure--tall img { aspect-ratio: 3 / 4; }
.figure figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 2.5rem 1.5rem 1.25rem;
  background: linear-gradient(180deg, transparent, rgba(7, 39, 65, .85));
  color: #fff;
  font-size: var(--step--1);
}

.figure-duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  align-items: start;
}
.figure-duo .figure:nth-child(2) { margin-top: clamp(1.5rem, 5vw, 3.5rem); }
/* Format portrait : en 4/3 sur une demi-colonne, les vignettes seraient
   trop basses face à la colonne de texte voisine. */
.figure-duo .figure img { aspect-ratio: 3 / 4; }

/* Badge flottant sur image ------------------------------------------------- */
.figure-badge {
  position: absolute;
  left: 1.25rem; top: 1.25rem;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .5rem 1rem;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(8px);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--blue-900);
}

/* Liste à puces cochées ---------------------------------------------------- */
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .85rem; }

/* La puce est positionnée en absolu, et non en élément flex : un conteneur
   flex scinderait chaque fragment de texte (autour d'un <strong>) en élément
   distinct, ce qui délierait les mots de la phrase. */
.check-list li {
  position: relative;
  padding-left: 2.3rem;
  margin: 0;
  color: var(--ink-70);
  font-size: var(--step-0);
  line-height: 1.6;
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .18em;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--coral-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23B8433A' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.check-list--blue li::before {
  background-color: var(--blue-50);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230F5288' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
}

/* --------------------------------------------------------------------------
   10. Valeurs / organes
   -------------------------------------------------------------------------- */
.value {
  padding: 1.75rem 0;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 3.5rem 1fr;
  gap: 1.25rem;
  align-items: start;
}
.value:last-child { border-bottom: 1px solid var(--line); }
.value .idx {
  font-family: var(--font-mono);
  font-size: .8rem;
  font-weight: 700;
  color: var(--coral-600);
  letter-spacing: .05em;
  padding-top: .3rem;
}
.value h3 { font-size: var(--step-1); margin-bottom: .3em; }
.value p { color: var(--ink-70); font-size: var(--step--1); margin: 0; }

/* Organes : bloc numéroté ------------------------------------------------ */
.organe {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(1.5rem, 2.5vw, 2rem);
  display: flex;
  flex-direction: column;
  gap: .75rem;
  transition: box-shadow .35s var(--ease), border-color .35s var(--ease), transform .35s var(--ease);
}
.organe:hover { box-shadow: var(--shadow-md); border-color: var(--blue-100); transform: translateY(-3px); }
.organe .sigle {
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  padding: .35rem .75rem;
  border-radius: var(--r-sm);
  background: var(--blue-50);
  color: var(--blue-700);
}
.organe h3 { font-size: var(--step-1); margin: 0; }
.organe p { color: var(--ink-70); font-size: var(--step--1); margin: 0; }
.organe ul {
  margin: .35rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: .4rem;
  border-top: 1px dashed var(--line);
  padding-top: .9rem;
}
.organe ul li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin: 0;
  font-size: var(--step--1);
  color: var(--ink-70);
}
.organe ul li b {
  font-family: var(--font-mono);
  color: var(--coral-700);
  font-size: .85rem;
}

/* --------------------------------------------------------------------------
   11. Actualités
   -------------------------------------------------------------------------- */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
}
.filter {
  padding: .55rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: #fff;
  font-size: .82rem;
  font-weight: 600;
  color: var(--ink-70);
  cursor: pointer;
  transition: all .25s var(--ease);
}
.filter:hover { border-color: var(--blue-300); color: var(--blue-700); }
.filter[aria-pressed="true"] {
  background: var(--blue-900);
  border-color: var(--blue-900);
  color: #fff;
}

.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: clamp(1.25rem, 2.5vw, 2rem); }

.news-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.news-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--blue-100); }
.news-card.is-hidden { display: none; }

.news-thumb { position: relative; overflow: hidden; background: var(--blue-50); }
.news-thumb img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform .7s var(--ease);
}
.news-card:hover .news-thumb img { transform: scale(1.05); }

.tag {
  display: inline-block;
  padding: .32rem .75rem;
  border-radius: var(--r-pill);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.news-thumb .tag {
  position: absolute;
  left: .9rem; top: .9rem;
  background: rgba(255, 255, 255, .94);
  color: var(--blue-900);
  backdrop-filter: blur(6px);
}
.tag--coral { background: var(--coral-50); color: var(--coral-700); }
.tag--blue { background: var(--blue-50); color: var(--blue-700); }

.news-body { padding: 1.5rem; display: flex; flex-direction: column; gap: .6rem; flex: 1; }
.news-date {
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-50);
}
.news-body h3 { font-size: var(--step-1); margin: 0; }
.news-body p { font-size: var(--step--1); color: var(--ink-70); margin: 0; }
.news-body .link-arrow { margin-top: auto; padding-top: .75rem; }

/* Actualité à la une ------------------------------------------------------- */
.feature {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  overflow: hidden;
  background: #fff;
  margin-bottom: clamp(2rem, 4vw, 3.25rem);
  box-shadow: var(--shadow-sm);
}
.feature-media { position: relative; min-height: 320px; }
.feature-media img { width: 100%; height: 100%; object-fit: cover; }
.feature-body {
  padding: clamp(1.75rem, 3.5vw, 3rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: .85rem;
}
/* Sans cela, l'étiquette s'étirerait sur toute la largeur de la colonne
   flex au lieu de rester ajustée à son texte. */
.feature-body > .tag { align-self: flex-start; }
.feature-body h2 { font-size: var(--step-2); margin: 0; }
.feature-body p { color: var(--ink-70); margin: 0; }

/* --------------------------------------------------------------------------
   12. Formulaires
   -------------------------------------------------------------------------- */
.field { display: flex; flex-direction: column; gap: .45rem; margin-bottom: 1.15rem; }
.field label {
  font-size: .82rem;
  font-weight: 650;
  color: var(--blue-950);
  display: flex;
  align-items: center;
  gap: .35rem;
}
.field label .req { color: var(--coral-600); }
.field .hint { font-size: .76rem; color: var(--ink-50); }

.input, .select, .textarea {
  width: 100%;
  padding: .85rem 1rem;
  border: 1.5px solid var(--line);
  border-radius: var(--r-md);
  background: #fff;
  font-size: var(--step-0);
  color: var(--ink);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), background-color .2s var(--ease);
}
.input::placeholder, .textarea::placeholder { color: var(--ink-30); }
.input:hover, .select:hover, .textarea:hover { border-color: var(--blue-300); }
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 4px var(--blue-50);
}
.textarea { min-height: 148px; resize: vertical; line-height: 1.6; }
.select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B3A61' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 17px;
  padding-right: 2.75rem;
  cursor: pointer;
}

.field.has-error .input,
.field.has-error .select,
.field.has-error .textarea { border-color: var(--coral-600); background: var(--coral-50); }
.error-msg {
  display: none;
  font-size: .78rem;
  font-weight: 600;
  color: var(--coral-700);
}
.field.has-error .error-msg { display: flex; align-items: center; gap: .3rem; }

.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); gap: 0 1.15rem; }

.form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: clamp(1.75rem, 3.5vw, 2.75rem);
  box-shadow: var(--shadow-sm);
}

.consent {
  display: flex;
  gap: .75rem;
  align-items: flex-start;
  font-size: .82rem;
  color: var(--ink-70);
  line-height: 1.55;
  margin-bottom: 1.5rem;
}
.consent input {
  flex: none;
  width: 19px; height: 19px;
  margin-top: 2px;
  accent-color: var(--blue-700);
  cursor: pointer;
}

/* Bloc coordonnées --------------------------------------------------------- */
.contact-item {
  display: flex;
  gap: 1rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--line-soft);
}
.contact-item:last-of-type { border-bottom: 0; }
.contact-item .ico {
  flex: none;
  width: 44px; height: 44px;
  display: grid;
  place-items: center;
  border-radius: var(--r-md);
  background: var(--blue-50);
  color: var(--blue-700);
}
.contact-item .ico svg { width: 20px; height: 20px; }
.contact-item h4 { font-size: .92rem; margin: 0 0 .15em; font-family: var(--font-body); font-weight: 700; }
.contact-item p, .contact-item a { font-size: var(--step--1); color: var(--ink-70); margin: 0; }
.contact-item a:hover { color: var(--coral-700); }

/* Panneau WhatsApp --------------------------------------------------------- */
.wa-panel {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--cream-50);
  padding: 1.5rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.wa-panel svg { width: 26px; height: 26px; color: var(--coral-700); flex: none; margin-top: 2px; }
.wa-panel h4 { margin: 0 0 .3em; font-family: var(--font-body); font-size: .95rem; font-weight: 700; }
.wa-panel p { margin: 0; font-size: var(--step--1); color: var(--ink-70); }

/* --------------------------------------------------------------------------
   13. Simulateurs
   -------------------------------------------------------------------------- */
.tabs {
  display: inline-flex;
  gap: .3rem;
  padding: .35rem;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--paper);
  margin-bottom: clamp(2rem, 4vw, 3rem);
}
.tab {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .7rem 1.4rem;
  border: 0;
  border-radius: var(--r-pill);
  background: transparent;
  font-size: var(--step--1);
  font-weight: 650;
  color: var(--ink-70);
  cursor: pointer;
  transition: background-color .28s var(--ease), color .28s var(--ease), box-shadow .28s var(--ease);
}
.tab svg { width: 17px; height: 17px; }
.tab:hover { color: var(--blue-900); }
.tab[aria-selected="true"] {
  background: #fff;
  color: var(--blue-950);
  box-shadow: var(--shadow-sm);
}

.tabpanel[hidden] { display: none; }

.sim {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: start;
}

.sim-form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  box-shadow: var(--shadow-sm);
}
.sim-form h3 { font-size: var(--step-1); margin-bottom: 1.5rem; }

/* Champ avec curseur ------------------------------------------------------- */
.range-field { margin-bottom: 1.75rem; }
.range-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: .6rem;
}
.range-top label { font-size: .82rem; font-weight: 650; color: var(--blue-950); }
.range-val {
  display: inline-flex;
  align-items: baseline;
  gap: .3rem;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--blue-900);
}
/* Les flèches natives de <input type="number"> rognent la valeur : le
   curseur adjacent remplit déjà ce rôle, on les supprime. */
.range-val input::-webkit-outer-spin-button,
.range-val input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.range-val input {
  /* Doit contenir 8 chiffres (20 000 000) sans rogner la valeur. */
  width: 10ch;
  -moz-appearance: textfield;
  appearance: textfield;
  padding: .25rem .5rem;
  border: 1.5px solid var(--line);
  border-radius: var(--r-sm);
  text-align: right;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1rem;
  color: var(--blue-900);
  background: var(--paper);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.range-val input:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 4px var(--blue-50);
  background: #fff;
}
.range-val .unit { font-family: var(--font-body); font-size: .78rem; font-weight: 600; color: var(--ink-50); }

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--coral) 0%, var(--blue) var(--pct, 40%), var(--line) var(--pct, 40%));
  cursor: pointer;
  margin: .35rem 0 .5rem;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--blue-700);
  box-shadow: 0 2px 8px rgba(11, 58, 97, .3);
  cursor: grab;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease);
}
input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.14); }
input[type="range"]:active::-webkit-slider-thumb { cursor: grabbing; transform: scale(1.05); }
input[type="range"]::-moz-range-thumb {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--blue-700);
  box-shadow: 0 2px 8px rgba(11, 58, 97, .3);
  cursor: grab;
}
input[type="range"]::-moz-range-track { height: 6px; border-radius: 6px; background: transparent; }

.range-scale {
  display: flex;
  justify-content: space-between;
  font-size: .7rem;
  color: var(--ink-30);
  font-family: var(--font-mono);
}

/* Boutons de préréglage ---------------------------------------------------- */
.presets { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .65rem; }
.preset {
  padding: .35rem .8rem;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: #fff;
  font-size: .74rem;
  font-weight: 650;
  color: var(--ink-70);
  cursor: pointer;
  transition: all .2s var(--ease);
}
.preset:hover { border-color: var(--blue-300); color: var(--blue-700); background: var(--blue-50); }

/* Panneau de résultat ------------------------------------------------------ */
.sim-result {
  position: relative;
  border-radius: var(--r-xl);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  background: linear-gradient(155deg, var(--blue-950) 0%, var(--blue-900) 60%, #14456f 100%);
  color: #fff;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.sim-result::after {
  content: "";
  position: absolute;
  width: 340px; height: 340px;
  right: -140px; top: -160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(242, 119, 109, .32), transparent 68%);
  pointer-events: none;
}
.sim-result > * { position: relative; z-index: 1; }
.sim-result h3 { color: #fff; font-size: var(--step-1); margin-bottom: 1.35rem; }

.result-hero {
  padding: 1.35rem 1.5rem;
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .16);
  margin-bottom: 1rem;
}
.result-hero .k {
  font-size: .74rem;
  font-weight: 650;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .62);
}
.result-hero .v {
  font-family: var(--font-mono);
  font-size: clamp(1.7rem, 4.5vw, 2.5rem);
  font-weight: 700;
  color: var(--cream);
  line-height: 1.15;
  letter-spacing: -.02em;
  margin-top: .3rem;
}
.result-hero .v small { font-size: .42em; color: rgba(255, 255, 255, .68); font-family: var(--font-body); font-weight: 600; }

/* Deux colonnes fixes : en auto-fit, les quatre cellules passent à trois
   colonnes sur tablette et la quatrième reste orpheline sur sa ligne. */
.result-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
.result-cell {
  padding: 1rem 1.15rem;
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .1);
}
.result-cell .k {
  font-size: .7rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .58);
  display: block;
  margin-bottom: .3rem;
}
.result-cell .v {
  font-family: var(--font-mono);
  /* Se resserre plutôt que de renvoyer « 1 074 542 FCFA » à la ligne. */
  font-size: clamp(.88rem, 2.2vw, 1.02rem);
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
}
.result-cell .v.accent { color: var(--coral-300); }

/* Barre de répartition ----------------------------------------------------- */
.split-bar {
  margin-top: 1.35rem;
  padding-top: 1.35rem;
  border-top: 1px solid rgba(255, 255, 255, .16);
}
.split-bar .track {
  display: flex;
  height: 10px;
  border-radius: 10px;
  overflow: hidden;
  background: rgba(255, 255, 255, .12);
}
.split-bar .seg { height: 100%; transition: width .6s var(--ease); }
.split-bar .seg--a { background: var(--cream); }
.split-bar .seg--b { background: var(--coral); }
.split-bar .legend {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-top: .8rem;
  font-size: .76rem;
  color: rgba(255, 255, 255, .72);
}
.split-bar .legend span { display: inline-flex; align-items: center; gap: .45rem; }
.split-bar .legend i { width: 10px; height: 10px; border-radius: 3px; }

/* Graphe de projection ----------------------------------------------------- */
.chart-wrap {
  margin-top: 1.35rem;
  padding-top: 1.35rem;
  border-top: 1px solid rgba(255, 255, 255, .16);
}
.chart-wrap .chart-title {
  font-size: .74rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .6);
  margin-bottom: .9rem;
}
.chart-wrap canvas { width: 100%; height: 170px; display: block; }
.chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 1.15rem;
  margin-top: .75rem;
  font-size: .74rem;
  color: rgba(255, 255, 255, .72);
}
.chart-legend span { display: inline-flex; align-items: center; gap: .45rem; }
.chart-legend i { width: 12px; height: 3px; border-radius: 2px; }

/* Tableau d'amortissement -------------------------------------------------- */
.table-wrap {
  margin-top: clamp(1.5rem, 3vw, 2.25rem);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: #fff;
  overflow: hidden;
}
.table-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.5rem;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.table-head h4 { margin: 0; font-family: var(--font-body); font-size: .92rem; font-weight: 700; }
.table-head p { margin: .15rem 0 0; font-size: .78rem; color: var(--ink-50); }
.table-scroll { overflow-x: auto; max-height: 380px; overflow-y: auto; }

table.data { width: 100%; border-collapse: collapse; font-size: .84rem; min-width: 560px; }
table.data th {
  position: sticky;
  top: 0;
  background: #fff;
  text-align: right;
  padding: .8rem 1.25rem;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-50);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
table.data th:first-child, table.data td:first-child { text-align: left; }
table.data td {
  padding: .72rem 1.25rem;
  text-align: right;
  border-bottom: 1px solid var(--line-soft);
  font-family: var(--font-mono);
  font-size: .82rem;
  color: var(--ink-70);
  white-space: nowrap;
}
table.data td:first-child { font-family: var(--font-body); font-weight: 600; color: var(--blue-950); }
table.data tbody tr:hover td { background: var(--blue-50); }
table.data tbody tr:last-child td { border-bottom: 0; }
table.data .solde { color: var(--blue-900); font-weight: 700; }

/* Avertissement ------------------------------------------------------------ */
.notice {
  display: flex;
  gap: .85rem;
  align-items: flex-start;
  padding: 1.15rem 1.35rem;
  border-radius: var(--r-md);
  background: var(--cream-50);
  border: 1px solid var(--cream-600);
  font-size: .82rem;
  line-height: 1.6;
  color: var(--ink-70);
}
.notice svg { width: 19px; height: 19px; color: var(--coral-700); flex: none; margin-top: 2px; }
.notice strong { color: var(--coral-900); }
.notice--light { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.2); color: rgba(255,255,255,.78); }
.notice--light svg { color: var(--cream); }
.notice--light strong { color: var(--cream); }

/* --------------------------------------------------------------------------
   14. Bandeau d'appel à l'action
   -------------------------------------------------------------------------- */
.cta-band {
  position: relative;
  overflow: hidden;
  background: linear-gradient(120deg, var(--blue-950) 0%, var(--blue-900) 48%, #7A2A24 128%);
  color: #fff;
  padding-block: clamp(3rem, 6vw, 5rem);
}
.cta-band::before {
  content: "";
  position: absolute;
  width: 620px; height: 620px;
  right: -220px; top: -280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(242, 119, 109, .28), transparent 66%);
}
.cta-band .wrap { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; max-width: 22ch; }
.cta-band p { color: rgba(255, 255, 255, .8); max-width: 56ch; font-size: var(--step-1); }

.cta-split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(1.25rem, 3vw, 2rem);
  margin-top: clamp(2rem, 4vw, 3rem);
}
.cta-tile {
  display: flex;
  flex-direction: column;
  gap: .6rem;
  padding: clamp(1.5rem, 3vw, 2rem);
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .16);
  transition: background-color .3s var(--ease), transform .3s var(--ease), border-color .3s var(--ease);
}
.cta-tile:hover { background: rgba(255, 255, 255, .12); transform: translateY(-3px); border-color: rgba(255,255,255,.3); }
.cta-tile .ico {
  width: 46px; height: 46px;
  display: grid;
  place-items: center;
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, .12);
  color: var(--cream);
  margin-bottom: .35rem;
}
.cta-tile .ico svg { width: 22px; height: 22px; }
.cta-tile h3 { color: #fff; font-size: var(--step-1); margin: 0; }
.cta-tile p { color: rgba(255, 255, 255, .74); font-size: var(--step--1); margin: 0 0 .5rem; }
.cta-tile .btn { align-self: flex-start; margin-top: auto; }

/* --------------------------------------------------------------------------
   15. Pied de page
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--blue-950);
  color: rgba(255, 255, 255, .68);
  font-size: var(--step--1);
  padding-block: clamp(3rem, 6vw, 4.5rem) 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: clamp(2rem, 4vw, 3rem);
  padding-bottom: clamp(2.5rem, 5vw, 3.5rem);
}
.footer-brand { display: flex; align-items: center; gap: .8rem; margin-bottom: 1.15rem; }
.footer-brand img { width: 52px; }
.footer-brand b {
  display: block;
  font-family: var(--font-title);
  font-size: 1.25rem;
  color: #fff;
  line-height: 1.1;
}
.footer-brand span { font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.5); }
.site-footer h4 {
  color: #fff;
  font-family: var(--font-body);
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  margin-bottom: 1.15rem;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .65rem; }
.site-footer li { margin: 0; }
.site-footer a { color: rgba(255, 255, 255, .68); }
.site-footer a:hover { color: var(--cream); }
.site-footer p { color: rgba(255, 255, 255, .6); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  padding-block: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, .12);
  font-size: .78rem;
  color: rgba(255, 255, 255, .45);
}
.footer-bottom .rule { display: flex; gap: 1.25rem; flex-wrap: wrap; }

/* --------------------------------------------------------------------------
   16. Bouton WhatsApp flottant
   -------------------------------------------------------------------------- */
.wa-float {
  position: fixed;
  right: clamp(1rem, 3vw, 1.75rem);
  bottom: clamp(1rem, 3vw, 1.75rem);
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .8rem 1.25rem;
  border-radius: var(--r-pill);
  background: var(--coral-600);
  color: #fff;
  font-size: .84rem;
  font-weight: 650;
  box-shadow: 0 14px 34px -12px rgba(184, 67, 58, .85);
  transform: translateY(24px);
  opacity: 0;
  pointer-events: none;
  transition: transform .4s var(--ease-out), opacity .4s var(--ease), background-color .25s var(--ease);
}
.wa-float.is-in { transform: translateY(0); opacity: 1; pointer-events: auto; }
.wa-float:hover { background: var(--coral-700); color: #fff; }
.wa-float svg { width: 20px; height: 20px; }
.wa-float .txt { display: inline; }

/* --------------------------------------------------------------------------
   17. Apparition au défilement
   -------------------------------------------------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s var(--ease-out), transform .8s var(--ease-out);
}
[data-reveal].is-in { opacity: 1; transform: none; }
[data-reveal][data-delay="1"] { transition-delay: .08s; }
[data-reveal][data-delay="2"] { transition-delay: .16s; }
[data-reveal][data-delay="3"] { transition-delay: .24s; }
[data-reveal][data-delay="4"] { transition-delay: .32s; }
[data-reveal][data-delay="5"] { transition-delay: .4s; }

/* --------------------------------------------------------------------------
   18. Adaptatif
   -------------------------------------------------------------------------- */
@media (max-width: 1080px) {
  .nav, .header-cta .btn--outline { display: none; }
  .burger { display: block; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .sim { grid-template-columns: 1fr; }
  .feature { grid-template-columns: 1fr; }
  .feature-media { min-height: 260px; }
}

@media (max-width: 720px) {
  :root { --header-h: 66px; }
  .header-cta .btn { display: none; }
  .brand img { width: 36px; }
  .brand-name { font-size: 1rem; }
  .brand-tag { display: none; }

  .hero { min-height: 100svh; }
  .hero-controls { flex-wrap: wrap; gap: .9rem; padding-top: 1.35rem; }
  .hero-arrows { margin-left: 0; }
  .hero-count { order: -1; width: 100%; }
  .dot { width: 34px; }

  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }

  .figure-duo { grid-template-columns: 1fr; }
  .figure-duo .figure:nth-child(2) { margin-top: 0; }

  .value { grid-template-columns: 1fr; gap: .4rem; }

  .wa-float { padding: .85rem; }
  .wa-float .txt { display: none; }

  .tabs { display: flex; width: 100%; }
  .tab { flex: 1; justify-content: center; padding: .7rem .5rem; }
  .tab svg { display: none; }
}

@media (max-width: 480px) {
  /* Sous cette largeur, deux colonnes ne suffisent plus à contenir un
     montant à sept chiffres suivi de « FCFA ». */
  .result-grid { grid-template-columns: 1fr; }
  .result-cell { padding: .85rem 1rem; }
}

/* --------------------------------------------------------------------------
   19. Préférences d'accessibilité
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .slide.is-active .slide-media img { animation: none; transform: scale(1.02); }
}

@media print {
  .site-header, .drawer, .wa-float, .hero-controls, .cta-band, .site-footer { display: none !important; }
  body { color: #000; }
  .sim-result { background: #fff !important; color: #000 !important; border: 1px solid #999; }
}
