/* Sinocam · Bourse Étude Chine — style Prisme */

:root {
  --perle: #ebe6e1;
  --cadre: #f8f6f3;
  --blanc: #ffffff;
  --gris-clair: #f3eeea;
  --trait: #e8e1da;
  --trait-fort: #94888a;
  --encre: #1f0a0e;
  --encre-2: #3a1a20;
  --texte: #4a3b3e;
  --gris: #6e6265;
  --gris-titre: #a08d90;
  --bleu: #680b1d;
  --bordeaux: #680b1d;
  --bordeaux-2: #84162d;
  --bordeaux-nuit: #3d0611;
  --or: #be9843;
  --or-clair: #e2c98f;
  --vert: #1e9e62;

  --irise: radial-gradient(60% 90% at 12% 110%, #f1d39a 0%, rgba(241, 211, 154, 0) 60%),
    radial-gradient(50% 80% at 88% 0%, #d98a97 0%, rgba(217, 138, 151, 0) 62%),
    radial-gradient(40% 60% at 58% 55%, #f0c6c6 0%, rgba(240, 198, 198, 0) 70%),
    linear-gradient(120deg, #f7e7cb 0%, #f1d0cf 45%, #f6dcc0 70%, #e4a4ad 100%);
  --relief: linear-gradient(180deg, #8f1d34 0%, #4a0716 100%);
  --relief-ombre: inset 0 1px 0 rgba(255, 255, 255, .22), inset 0 -2px 0 rgba(0, 0, 0, .45);
  --raye: repeating-linear-gradient(115deg, rgba(255, 255, 255, 0) 0 18px, rgba(255, 255, 255, .08) 18px 20px), #680b1d;

  --titre: "Instrument Sans", "DM Sans", system-ui, sans-serif;
  --font: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --largeur: 1280px;
  --gouttiere: clamp(16px, 4vw, 48px);
  --section: clamp(80px, 10vw, 128px);
  --rayon: 30px;
  --rayon-s: 22px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  padding: clamp(8px, 1.4vw, 20px);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--encre);
  background: var(--perle);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--bleu); }
a:hover { color: #4a0716; }
button { font: inherit; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--titre); }
:focus-visible { outline: 2px solid var(--bleu); outline-offset: 3px; }
[id] { scroll-margin-top: 120px; }

.cadre { background: var(--cadre); border-radius: clamp(24px, 3vw, 44px); padding-bottom: 1px; }
.container {
  max-width: var(--largeur);
  margin: 0 auto;
  padding-left: max(var(--gouttiere), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gouttiere), env(safe-area-inset-right, 0px));
}
.section { padding-top: var(--section); }
.espace-haut { padding-top: 64px; }
.espace-bas { margin-bottom: 20px; }

/* Typographie */
.eyebrow { font-size: 14px; color: var(--gris); }
.accent { color: var(--gris-titre); }
.h-display {
  font-weight: 400;
  font-size: clamp(42px, 6vw, 84px);
  line-height: 1.02;
  letter-spacing: -0.045em;
  text-wrap: balance;
}
.h-geant { font-weight: 400; font-size: clamp(52px, 8.4vw, 120px); line-height: .95; letter-spacing: -0.055em; }
.h-section {
  font-weight: 400;
  font-size: clamp(32px, 4.4vw, 60px);
  line-height: 1.04;
  letter-spacing: -0.045em;
  text-wrap: balance;
}
.h-card { font-size: clamp(22px, 2vw, 27px); font-weight: 600; letter-spacing: -0.025em; line-height: 1.15; }
.lead { font-size: 17px; line-height: 1.65; color: var(--texte); }
.muted { color: var(--gris); }
.medaillon {
  display: inline-block;
  width: 1.42em;
  height: .74em;
  margin: 0 .08em;
  vertical-align: -.02em;
  border-radius: 999px;
  background: var(--irise);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), inset 0 -2px 6px rgba(104, 11, 29, .22);
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px 48px;
  margin-bottom: 48px;
}
.section-head__titre { display: flex; flex-direction: column; gap: 16px; max-width: 700px; }
.section-head .lead { max-width: 420px; font-size: 16px; }
.section-head--centre { flex-direction: column; align-items: center; text-align: center; }
.section-head--centre .lead { max-width: 560px; }

/* Boutons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  height: 56px;
  padding: 0 28px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.btn--icone { padding-right: 6px; }
.btn__rond { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; transition: transform .25s ease; }
.btn__rond svg { width: 19px; height: 19px; }
.btn:hover .btn__rond { transform: translateX(3px); }
.btn--primaire, .btn--sombre { background: var(--bordeaux); color: #fff; }
.btn--primaire .btn__rond, .btn--sombre .btn__rond { background: var(--bordeaux-2); }
.btn--primaire:hover, .btn--sombre:hover { background: var(--bordeaux-nuit); color: #fff; }
.btn--raye { height: 72px; padding: 0 56px; background: var(--raye); color: #fff; font-family: var(--titre); font-size: 19px; }
.btn--raye:hover { color: #fff; background: repeating-linear-gradient(115deg, rgba(255, 255, 255, 0) 0 18px, rgba(255, 255, 255, .12) 18px 20px), var(--bordeaux-nuit); }
.btn--blanc { background: #fff; color: var(--encre); }
.btn--blanc .btn__rond { background: var(--bordeaux); color: #fff; }
.btn--blanc:hover { background: var(--gris-clair); color: var(--encre); }
.btn--contour { border-color: var(--trait-fort); color: var(--encre); }
.btn--contour:hover { border-color: var(--encre); color: var(--encre); }
.btn--contour-blanc { border-color: rgba(255, 255, 255, .55); color: #fff; }
.btn--contour-blanc:hover { border-color: #fff; color: #fff; }
.btn--petit { height: 48px; font-size: 15px; gap: 14px; padding-left: 20px; }
.btn--petit .btn__rond { width: 38px; height: 38px; }
.btn--plein { width: 100%; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }

.rond-fleche {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--relief);
  box-shadow: var(--relief-ombre);
  color: #fff;
  display: grid;
  place-items: center;
}
.rond-fleche svg { width: 18px; height: 18px; }

.note { align-self: flex-start; padding: 8px 18px; border: 1px solid var(--encre); border-radius: 999px; font-size: 15px; }
.note b { font-weight: 600; }
.coches { display: flex; flex-wrap: wrap; gap: 10px 28px; margin: 0; padding: 0; list-style: none; font-size: 16px; }
.coches li { display: flex; align-items: center; gap: 8px; }
.coches li::before { content: ""; width: 18px; height: 18px; background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231e9e62' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7'/%3E%3C/svg%3E"); }

/* En-tête */
.site-header { position: sticky; top: clamp(8px, 1.4vw, 20px); z-index: 50; padding: 16px var(--gouttiere) 0; }
.site-header__barre {
  max-width: calc(var(--largeur) - 2 * var(--gouttiere) + 24px);
  margin: 0 auto;
  height: 72px;
  padding: 0 10px 0 24px;
  display: flex;
  align-items: center;
  gap: 24px;
  background: rgba(255, 255, 255, .9);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid var(--trait);
  border-radius: 22px;
}
.site-header .container { padding: 0 10px 0 24px; }
.logo img { height: 28px; width: auto; }
.nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.nav > a, .nav__declencheur {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  border: 0;
  border-radius: 12px;
  background: none;
  color: var(--encre);
  font-size: 15px;
  text-decoration: none;
  cursor: pointer;
}
.nav > a:hover, .nav__declencheur:hover { color: var(--gris); }
.nav [aria-current="page"] { background: var(--gris-clair); }
.nav__declencheur svg { width: 14px; height: 14px; transition: transform .2s ease; }
.nav__menu { position: relative; }
.mega {
  position: absolute;
  top: calc(100% + 22px);
  left: 50%;
  width: min(900px, 92vw);
  transform: translate(-50%, 8px);
  padding: 28px;
  border-radius: 26px;
  border: 1px solid var(--trait);
  background: #fff;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) 1.1fr;
  gap: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
.nav__menu:hover .mega, .nav__menu:focus-within .mega, .nav__menu.ouvert .mega { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.nav__menu:hover .nav__declencheur svg { transform: rotate(180deg); }
.mega__colonne { display: flex; flex-direction: column; gap: 4px; }
.mega__titre { font-size: 13px; color: var(--gris); margin-bottom: 8px; }
.mega__colonne a { display: flex; flex-direction: column; padding: 8px 10px; margin: 0 -10px; border-radius: 12px; color: var(--encre); text-decoration: none; }
.mega__colonne a:hover { background: var(--gris-clair); }
.mega__colonne a span { font-weight: 500; font-size: 15px; }
.mega__colonne a small { font-size: 13px; color: var(--gris); }
.mega__appel { border-radius: 20px; padding: 22px; background: var(--irise); color: var(--encre); display: flex; flex-direction: column; gap: 12px; }
.mega__appel strong { font-family: var(--titre); font-size: 21px; font-weight: 500; letter-spacing: -0.02em; }
.mega__appel p { font-size: 14px; line-height: 1.5; color: #4a2a30; }
.mega__appel ul { margin: 0; padding: 0; list-style: none; font-size: 13px; color: #4a2a30; display: grid; gap: 4px; }
.mega__appel .btn--blanc { align-self: flex-start; }
.langues { font-size: 13px; color: var(--gris); }
.langues a { color: var(--gris); text-decoration: none; }
.langues a[aria-current="true"] { color: var(--encre); font-weight: 600; }
.nav-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  border: 0;
  background: var(--relief);
  box-shadow: var(--relief-ombre);
  color: #fff;
  place-items: center;
  cursor: pointer;
}
.nav-toggle svg { width: 20px; height: 20px; }

@media (max-width: 1080px) {
  .nav-toggle { display: grid; margin-left: auto; }
  .site-header__barre .langues, .site-header__barre > .btn { display: none; }
  .nav {
    position: fixed;
    inset: 104px 12px 12px;
    margin: 0;
    padding: 24px;
    border-radius: 24px;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    overflow-y: auto;
    display: none;
  }
  .nav.ouvert { display: flex; }
  .nav > a, .nav__declencheur { font-family: var(--titre); font-size: 22px; padding: 14px 0; border-radius: 0; border-bottom: 1px solid var(--trait); width: 100%; justify-content: space-between; }
  .nav [aria-current="page"] { background: none; color: var(--gris); }
  .mega { position: static; width: auto; transform: none; opacity: 1; visibility: visible; display: none; grid-template-columns: 1fr; padding: 16px 0; border: 0; }
  .nav__menu.ouvert .mega { display: grid; transform: none; }
  .nav__mobile-cta { display: flex !important; margin-top: 24px; }
}
.nav__mobile-cta { display: none !important; }

/* Héros */
.hero { padding-top: clamp(48px, 7vw, 88px); }
.hero__grille { display: flex; flex-wrap: wrap; gap: 32px 72px; align-items: flex-end; }
.hero__grille--etire { align-items: stretch; }
.hero__grille--centre { align-items: center; }
.hero__grille--bas { align-items: flex-end; }
.hero__titre { flex: 999 1 560px; min-width: 0; }
.hero__titre--colonne { flex-basis: 520px; display: flex; flex-direction: column; justify-content: center; gap: 24px; }
.hero__aside { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 24px; padding-bottom: 8px; }
.hero--service { padding-top: 32px; }
.hero__chiffres { display: flex; flex-wrap: wrap; gap: 36px; padding-top: 8px; }
.chiffre-court { display: flex; flex-direction: column; gap: 2px; }
.chiffre-court strong { font-family: var(--titre); font-size: 38px; font-weight: 400; letter-spacing: -0.045em; line-height: 1.15; }
.chiffre-court span { font-size: 14px; color: var(--gris); }

/* Bandeau irisé à encoche */
.bandeau { position: relative; overflow: hidden; height: clamp(380px, 38vw, 480px); margin-top: 56px; border-radius: 36px; background: var(--irise); }
.bandeau > svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.bandeau__carte {
  position: absolute;
  top: 24px;
  right: 24px;
  bottom: 24px;
  width: min(340px, calc(100% - 48px));
  padding: 30px;
  border-radius: 28px;
  background: rgba(255, 255, 255, .55);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
  border: 1px solid rgba(255, 255, 255, .85);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
}
.bandeau__chiffre { display: flex; align-items: flex-start; gap: 10px; font-family: var(--titre); font-size: clamp(64px, 6vw, 88px); line-height: 1; letter-spacing: -0.05em; }
.bandeau__chiffre::before { content: ""; flex: none; width: 12px; height: 12px; margin-top: .18em; border-radius: 50%; background: var(--bordeaux); }
.bandeau__carte p { font-size: 21px; }
.bandeau__carte small { font-size: 14px; line-height: 1.55; color: #4a2a30; }
.encoche {
  position: absolute;
  left: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 26px 0 0;
  background: var(--cadre);
  border-top-right-radius: 30px;
}
.encoche::before, .encoche::after {
  content: "";
  position: absolute;
  width: 30px;
  height: 30px;
  background: radial-gradient(circle at 100% 0, rgba(247, 248, 250, 0) 29.5px, var(--cadre) 30px);
}
.encoche::before { left: 0; bottom: 100%; }
.encoche::after { left: 100%; bottom: 0; }
.encoche__logos { display: flex; }
.encoche__logos img { width: 46px; height: 46px; border-radius: 50%; border: 2px solid var(--cadre); object-fit: contain; background: #fff; }
.encoche__logos img + img { margin-left: -12px; }
.encoche p { font-size: 18px; }
@media (max-width: 720px) {
  .bandeau { height: auto; min-height: 520px; }
  .bandeau__carte { top: auto; height: auto; }
  .bandeau__carte { bottom: 96px; }
  .encoche p { font-size: 15px; }
}

/* Fil d'Ariane */
.ariane { padding-top: 32px; font-size: 14px; color: var(--gris); }
.ariane a { color: var(--gris); text-decoration: none; }
.ariane a:hover { color: var(--encre); }
.ariane [aria-current="page"] { color: var(--encre); }

/* Logos clients */
.clients { display: flex; flex-direction: column; gap: 28px; padding: 64px 0 0; }
.clients__tete { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; }
.clients__tete h2 { font-weight: 400; font-size: 30px; letter-spacing: -0.03em; }
.clients__tete p { max-width: 520px; font-size: 15px; color: var(--gris); }
.clients__grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.clients__logo { height: 80px; background: #fff; border-radius: 20px; display: grid; place-items: center; padding: 14px 18px; }
.clients__logo img { max-height: 42px; width: auto; object-fit: contain; }
.clients--ligne { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 20px 44px; padding: 40px 0 0; }
.clients--ligne > span { font-size: 15px; color: var(--gris); }
.clients--ligne .clients__rang { display: flex; flex-wrap: wrap; align-items: center; gap: 24px 40px; }
.clients--ligne img { height: 30px; width: auto; }

/* Bande de chiffres */
.bande-chiffres { border-radius: var(--rayon); padding: 12px; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; background: #fff; }
.bande-chiffres > svg { display: none; }
.bande-chiffres__case { padding: 26px; border-radius: 20px; display: flex; flex-direction: column; gap: 20px; }
.bande-chiffres__case strong { font-family: var(--titre); font-size: clamp(46px, 4.6vw, 60px); font-weight: 400; letter-spacing: -0.05em; line-height: 1; }
.bande-chiffres__case span { font-size: 15px; line-height: 1.45; color: var(--gris); }
.bande-chiffres__case--nuit { background: var(--relief); box-shadow: var(--relief-ombre); color: #fff; }
.bande-chiffres__case--nuit span { color: #e8d3d6; }

/* Agence */
.intro { display: flex; flex-wrap: wrap; gap: 32px 80px; align-items: flex-end; margin-bottom: 56px; }
.intro__titre { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.intro__texte { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 22px; align-items: flex-start; }
.piliers { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.pilier { display: flex; flex-direction: column; gap: 12px; padding: 30px; background: #fff; border-radius: var(--rayon); }
.pilier__num { width: 44px; height: 44px; margin-bottom: 8px; border-radius: 14px; background: var(--relief); box-shadow: var(--relief-ombre); color: #fff; display: grid; place-items: center; font-size: 14px; font-weight: 600; }
.pilier h3 { font-size: 24px; font-weight: 600; letter-spacing: -0.025em; }
.pilier p { font-size: 15px; line-height: 1.6; color: var(--gris); }

/* Pôles */
.poles { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.pole { background: #fff; border-radius: var(--rayon); padding: 32px; display: flex; flex-direction: column; gap: 22px; }
.pole__tete { display: flex; justify-content: space-between; align-items: center; }
.pole__icone { width: 52px; height: 52px; border-radius: 16px; background: var(--gris-clair); color: var(--bleu); display: grid; place-items: center; }
.pole__icone svg { width: 24px; height: 24px; }
.pole__compte { font-size: 13px; color: var(--gris); }
.pole__liste { display: flex; flex-direction: column; }
.pole__liste a { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 0; border-top: 1px solid var(--trait); color: var(--encre); text-decoration: none; }
.pole__liste a span { display: flex; flex-direction: column; gap: 2px; }
.pole__liste a b { font-weight: 600; }
.pole__liste a small { font-size: 14px; color: var(--gris); }
.pole__liste a svg { flex: none; width: 18px; height: 18px; color: var(--gris); transition: transform .2s ease, color .2s ease; }
.pole__liste a:hover svg { transform: translate(2px, -2px); color: var(--encre); }
.pole--bleu { background: var(--bordeaux); color: #fff; }
.pole--bleu .pole__icone { background: rgba(255, 255, 255, .1); color: #fff; }
.pole--bleu .pole__compte, .pole--bleu .pole__liste a small { color: #d9bfc3; }
.pole--bleu .pole__liste a { color: #fff; border-top-color: rgba(255, 255, 255, .14); }
.pole--bleu .pole__liste a svg { color: #d9bfc3; }

/* Rangées de services */
.rangee { display: flex; flex-wrap: wrap; gap: 24px 40px; padding-top: 32px; margin-top: 32px; border-top: 1px solid var(--trait); }
.rangee:first-of-type { margin-top: 0; }
.rangee__tete { flex: 1 1 220px; display: flex; flex-direction: column; gap: 10px; }
.rangee__tete h3 { font-size: 32px; font-weight: 400; letter-spacing: -0.04em; }
.rangee__services { flex: 4 1 640px; min-width: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.tuile { display: flex; flex-direction: column; justify-content: space-between; gap: 28px; min-height: 200px; padding: 22px; border-radius: 24px; background: #fff; color: var(--encre); text-decoration: none; transition: background-color .2s ease; }
.tuile:hover { color: var(--encre); background: var(--irise); }
.tuile__haut { display: flex; justify-content: space-between; align-items: flex-start; color: var(--encre); }
.tuile__haut > span { width: 46px; height: 46px; border-radius: 14px; background: var(--relief); box-shadow: var(--relief-ombre); color: #fff; display: grid; place-items: center; }
.tuile__haut svg { width: 22px; height: 22px; }
.tuile__haut > svg { width: 20px; height: 20px; color: var(--gris); }
.tuile b { display: block; font-family: var(--titre); font-size: 19px; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 6px; }
.tuile small { font-size: 14px; line-height: 1.45; color: var(--gris); }
.tuile:hover small { color: #4a2a30; }

/* Filtres en relief */
.filtres { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 5px; margin-bottom: 40px; background: #fff; border: 1px solid var(--trait); border-radius: 20px; }
.filtres--colle { position: sticky; top: 112px; z-index: 5; margin-bottom: 0; }
.filtre {
  height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 15px;
  background: none;
  color: var(--gris);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: color .2s ease;
}
.filtre span { margin-left: 4px; font-weight: 400; }
.filtre:hover { color: var(--encre); }
.filtre[aria-pressed="true"] { background: var(--relief); box-shadow: var(--relief-ombre); color: #fff; }
.filtre[aria-pressed="true"] span { color: #e8d3d6; }

/* Projets */
.projets { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr)); gap: 16px; }
.projets--page { padding-top: 32px; }
.projet { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 18px; padding: 14px 14px 20px; background: #fff; border-radius: 32px; color: var(--encre); text-decoration: none; }
.projet[hidden] { display: none; }
.projet__image { position: relative; overflow: hidden; border-radius: 22px; aspect-ratio: 16 / 10; background: var(--gris-clair); }
.projet__image img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.projet:hover .projet__image img { transform: scale(1.04); }
.projet__cat { position: absolute; left: 12px; top: 12px; padding: 7px 13px; border-radius: 12px; background: var(--relief); box-shadow: var(--relief-ombre); font-size: 12px; font-weight: 500; color: #fff; }
.projet__bas { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 6px 8px 0; }
.projet__bas h3 { font-size: 20px; line-height: 1.28; font-weight: 500; letter-spacing: -0.02em; margin-bottom: 6px; }
.projet__bas p { font-size: 14px; color: var(--gris); }
.centre { display: flex; justify-content: center; margin-top: 48px; }

/* Raisons */
.raisons { display: flex; flex-wrap: wrap; gap: 48px 80px; }
.raisons__tete { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.raisons__liste { flex: 1.6 1 560px; min-width: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px; }
.raisons__liste.faq { display: block; }
.raison { display: flex; gap: 18px; padding: 24px; background: #fff; border-radius: 24px; }
.raison__num { flex: none; width: 44px; height: 44px; border-radius: 14px; background: var(--relief); box-shadow: var(--relief-ombre); display: grid; place-items: center; font-size: 13px; font-weight: 600; color: #fff; }
.raison h3 { font-size: 19px; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 8px; }
.raison p { font-size: 14px; line-height: 1.6; color: var(--gris); }

.raisons-nuit { border-radius: 36px; padding: clamp(32px, 5vw, 64px); background: var(--bordeaux); color: #fff; }
.raisons-nuit .eyebrow, .raisons-nuit .lead { color: #d9bfc3; }
.raisons-nuit .accent { color: #c49aa2; }
.raisons-nuit__grille { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px; }
.raisons-nuit__grille > div { background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .08); border-radius: 24px; padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.raisons-nuit__grille span { width: 40px; height: 40px; border-radius: 12px; background: var(--irise); color: var(--encre); display: grid; place-items: center; font-size: 13px; font-weight: 600; }
.raisons-nuit__grille h3 { font-size: 20px; font-weight: 600; letter-spacing: -0.02em; }
.raisons-nuit__grille p { font-size: 14px; line-height: 1.6; color: #d9bfc3; }

/* Avis */
.avis { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); gap: 16px; }
.avis figure { margin: 0; background: #fff; border-radius: 28px; padding: 30px; display: flex; flex-direction: column; justify-content: space-between; gap: 28px; }
.avis blockquote { margin: 0; font-family: var(--titre); font-size: 19px; line-height: 1.5; letter-spacing: -0.01em; }
.avis figcaption { display: flex; align-items: center; gap: 14px; font-size: 14px; }
.avis figcaption > span:first-child { flex: none; width: 48px; height: 48px; border-radius: 50%; background: var(--gris-clair); display: grid; place-items: center; overflow: hidden; }
.avis figcaption img { max-width: 36px; max-height: 36px; object-fit: contain; }
.avis figcaption b { display: block; font-weight: 600; }
.avis figcaption small { font-size: 14px; color: var(--gris); }
.avis .initiales { font-size: 14px; font-weight: 600; color: var(--encre); }

/* Étapes */
.etapes, .etapes-cartes { margin: 0; padding: 0; list-style: none; }
.etapes { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.etape { display: flex; flex-direction: column; gap: 14px; padding: 28px; background: #fff; border-radius: 26px; }
.etape__ligne { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.etape__ligne b { width: 48px; height: 48px; border-radius: 15px; background: var(--relief); box-shadow: var(--relief-ombre); color: #fff; display: grid; place-items: center; font-size: 14px; font-weight: 600; }
.etape__ligne i { flex: 1; height: 1px; background: var(--trait); }
.etape h3 { font-size: 21px; font-weight: 600; letter-spacing: -0.02em; }
.etape p { font-size: 15px; line-height: 1.6; color: var(--gris); }

.etapes-cartes { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.etape-carte { background: #fff; border-radius: 26px; padding: 26px; display: flex; flex-direction: column; gap: 14px; }
.etape-carte__haut { display: flex; justify-content: space-between; align-items: center; }
.etape-carte__haut b { width: 44px; height: 44px; border-radius: 14px; background: var(--relief); box-shadow: var(--relief-ombre); color: #fff; display: grid; place-items: center; font-size: 14px; font-weight: 600; }
.etape-carte__haut > span { padding: 6px 11px; border-radius: 12px; background: var(--gris-clair); font-size: 12px; color: var(--texte); }
.etape-carte h3 { font-size: 20px; font-weight: 600; }
.etape-carte p { font-size: 14px; line-height: 1.6; color: var(--gris); }
.etape-carte--nuit { background: var(--irise); }
.etape-carte--nuit p { color: #4a2a30; }

/* Offres */
.offres { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.offre { background: #fff; border-radius: var(--rayon); padding: 34px; display: flex; flex-direction: column; gap: 22px; }
.offre__tete { display: flex; flex-direction: column; gap: 10px; }
.offre__tete h3 { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 27px; font-weight: 600; letter-spacing: -0.025em; }
.offre__tete h3 small { font-family: var(--font); font-size: 13px; font-weight: 500; padding: 6px 12px; border-radius: 12px; background: var(--irise); color: var(--encre); letter-spacing: 0; }
.offre__tete p { font-size: 15px; line-height: 1.55; color: var(--gris); }
.offre hr { width: 100%; margin: 0; border: 0; border-top: 1px solid var(--trait); }
.offre__prix { font-family: var(--titre); font-size: 44px; font-weight: 600; letter-spacing: -0.04em; line-height: 1.1; }
.offre ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; font-size: 15px; color: var(--texte); }
.offre li { display: flex; gap: 10px; }
.offre li::before { content: "✓"; color: var(--vert); }
.offre--bleu { background: var(--bordeaux); color: #fff; }
.offre--bleu .offre__tete p { color: #d9bfc3; }
.offre--bleu hr { border-top-color: rgba(255, 255, 255, .14); }
.offre--bleu ul { color: #f3e4e6; }
.offre--bleu li::before { color: #e2c98f; }

.sur-mesure { display: flex; flex-wrap: wrap; gap: 28px 48px; align-items: center; margin-top: 16px; padding: 34px; border-radius: var(--rayon); background: var(--irise); color: var(--encre); }
.sur-mesure__texte { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.sur-mesure .eyebrow { color: #4a2a30; }
.sur-mesure h3 { font-size: 30px; font-weight: 400; letter-spacing: -0.035em; }
.sur-mesure p { font-size: 15px; line-height: 1.6; color: #4a2a30; }
.puces { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 6px 0 0; list-style: none; }
.puces li { padding: 7px 14px; border-radius: 12px; background: rgba(255, 255, 255, .6); font-size: 13px; }
.sur-mesure__action { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.sur-mesure__action span { font-size: 14px; color: #4a2a30; }
.sur-mesure .btn--blanc .btn__rond { background: var(--bordeaux); }

/* Blocs de texte */
.duo { display: flex; flex-wrap: wrap; gap: 32px 80px; }
.duo > :first-child { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.duo > :last-child { flex: 1.2 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.duo .lead { font-size: 17px; line-height: 1.7; }

.cartes-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; margin-top: 48px; }
.carte { border-radius: 28px; padding: 30px; background: #fff; display: flex; flex-direction: column; gap: 14px; }
.carte > svg { width: 28px; height: 28px; color: var(--bleu); }
.carte h3 { font-size: 21px; font-weight: 600; letter-spacing: -0.02em; }
.carte p { font-size: 15px; line-height: 1.6; color: var(--gris); }
.carte--contour { background: #fff; }
.carte--bleue { background: var(--irise); }
.carte--bleue p { color: #4a2a30; }
.carte__icone { width: 52px; height: 52px; border-radius: 16px; background: var(--relief); box-shadow: var(--relief-ombre); color: #fff; display: grid; place-items: center; }
.carte__icone svg { width: 24px; height: 24px; }

.inclus { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 12px; }
.inclus > div { display: flex; flex-direction: column; gap: 12px; padding: 28px; background: #fff; border-radius: 26px; }
.inclus span { font-size: 14px; color: var(--gris); }
.inclus h3 { font-size: 20px; font-weight: 600; letter-spacing: -0.02em; }
.inclus p { font-size: 15px; line-height: 1.6; color: var(--gris); }

/* Panneau visuel irisé */
.panneau { position: relative; overflow: hidden; border-radius: 34px; background: var(--irise); color: var(--encre); }
.panneau > svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.panneau--hero { flex: 1 1 420px; min-width: 0; min-height: 460px; }
.panneau__lieu { position: absolute; left: 28px; top: 26px; color: #4a2a30; }
.panneau__phrase {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;
  padding: 22px 24px;
  border-radius: 24px;
  background: rgba(255, 255, 255, .55);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, .85);
  font-family: var(--titre);
  font-size: 24px;
  line-height: 1.25;
  letter-spacing: -0.03em;
}
.navigateur { position: relative; margin: 40px 28px 0; background: #fff; border-radius: 18px 18px 0 0; overflow: hidden; }
.navigateur__barre { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-bottom: 1px solid var(--trait); }
.navigateur__barre i { width: 10px; height: 10px; border-radius: 50%; background: #e6dcd6; }
.navigateur__barre span { margin-left: 12px; flex: 1; height: 26px; border-radius: 9px; background: var(--gris-clair); font-size: 12px; color: var(--gris); display: flex; align-items: center; padding: 0 12px; }
.navigateur img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }

.bande-trois { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-top: 56px; }
.bande-trois > div { padding: 26px; background: #fff; border-radius: 24px; display: flex; flex-direction: column; gap: 6px; }
.bande-trois > div:first-child { background: var(--relief); box-shadow: var(--relief-ombre); color: #fff; }
.bande-trois > div:first-child span { color: #e8d3d6; }
.bande-trois strong { font-family: var(--titre); font-size: 48px; font-weight: 400; letter-spacing: -0.05em; line-height: 1.1; }
.bande-trois span { font-size: 15px; color: var(--gris); }

/* FAQ */
.faq { display: flex; flex-direction: column; gap: 10px; }
.faq details { background: #fff; border-radius: 22px; padding: 0 24px; }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 0; font-family: var(--titre); font-size: 18px; font-weight: 500; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 36px; height: 36px; border-radius: 12px; background: var(--gris-clair); display: grid; place-items: center; font-size: 20px; }
.faq details[open] summary::after { content: "−"; background: var(--relief); box-shadow: var(--relief-ombre); color: #fff; }
.faq details p { padding: 0 48px 24px 0; font-size: 15px; line-height: 1.7; color: var(--texte); }

/* Blog */
.a-la-une { display: flex; flex-wrap: wrap; gap: 14px; padding: 14px; background: #fff; border-radius: 36px; color: var(--encre); text-decoration: none; }
.a-la-une:hover { color: var(--encre); }
.a-la-une__image { flex: 1.2 1 460px; min-height: 320px; border-radius: 26px; overflow: hidden; background: var(--gris-clair); }
.a-la-une__image img { width: 100%; height: 100%; object-fit: cover; }
.a-la-une__texte { flex: 1 1 380px; padding: clamp(20px, 3vw, 36px); display: flex; flex-direction: column; gap: 18px; justify-content: center; }
.a-la-une__texte h2 { font-size: clamp(26px, 2.6vw, 34px); line-height: 1.15; font-weight: 400; letter-spacing: -0.035em; }
.a-la-une__texte .btn { align-self: flex-start; }
.meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; color: var(--gris); }
.meta span:first-child { padding: 3px 10px; border-radius: 10px; background: var(--relief); color: #fff; }
.articles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); gap: 16px; }
.article { display: flex; flex-direction: column; gap: 14px; padding: 12px 12px 22px; background: #fff; border-radius: 28px; color: var(--encre); text-decoration: none; }
.article > :not(.article__image) { margin: 0 8px; }
.article[hidden] { display: none; }
.article__image { aspect-ratio: 16 / 10; border-radius: 20px; overflow: hidden; background: var(--gris-clair); }
.article__image img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.article:hover .article__image img { transform: scale(1.04); }
.article h3 { font-size: 19px; line-height: 1.3; font-weight: 500; letter-spacing: -0.02em; }
.article p { font-size: 15px; line-height: 1.6; color: var(--gris); }
.article__lien { font-size: 15px; font-weight: 600; color: var(--encre); text-decoration: underline; text-underline-offset: 4px; }

/* Contact */
.contact { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-start; }
.contact__infos { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.contact__formulaire { flex: 1.5 1 520px; min-width: 0; background: #fff; border-radius: 34px; padding: clamp(24px, 4vw, 44px); display: flex; flex-direction: column; gap: 24px; }
.info { border-radius: 26px; padding: 24px; background: #fff; display: flex; gap: 18px; align-items: flex-start; }
.info__icone { flex: none; width: 48px; height: 48px; border-radius: 15px; background: var(--relief); box-shadow: var(--relief-ombre); color: #fff; display: grid; place-items: center; }
.info__icone svg { width: 22px; height: 22px; }
.info h3 { font-family: var(--font); font-size: 13px; font-weight: 400; color: var(--gris); margin-bottom: 8px; }
.info p { font-family: var(--titre); font-size: 19px; line-height: 1.45; }
.info a { color: inherit; text-decoration: none; }
.info a:hover { text-decoration: underline; }
.info small { display: block; font-size: 14px; color: var(--gris); margin-bottom: 6px; }
.info--bleu { background: var(--irise); }
.info--bleu h3, .info--bleu small { color: #4a2a30; }
.champs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.champ { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.champ--large { grid-column: 1 / -1; }
.champ label { font-size: 14px; font-weight: 500; }
.champ label span { color: var(--gris); }
.champ input, .champ select, .champ textarea {
  width: 100%;
  font: inherit;
  font-size: 16px;
  color: var(--encre);
  background: var(--cadre);
  border: 1px solid #b7aaa9;
  border-radius: 16px;
  padding: 14px 16px;
  transition: border-color .2s ease, background-color .2s ease;
}
.champ textarea { min-height: 140px; resize: vertical; }
.champ input:focus, .champ select:focus, .champ textarea:focus { outline: none; border-color: var(--encre); background: #fff; }
.formulaire__pied { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; }
.formulaire__pied small { font-size: 13px; color: var(--gris); }
.formulaire__merci { padding: 18px 20px; border-radius: 16px; background: var(--irise); font-size: 15px; }
@media (max-width: 640px) { .champs { grid-template-columns: 1fr; } }

.reseaux { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.reseau { background: #fff; border-radius: 28px; padding: 26px; display: flex; flex-direction: column; gap: 24px; color: var(--encre); text-decoration: none; }
.reseau:hover { color: var(--encre); }
.reseau__haut { display: flex; justify-content: space-between; align-items: center; }
.reseau__haut > span { width: 48px; height: 48px; border-radius: 15px; background: var(--relief); box-shadow: var(--relief-ombre); color: #fff; display: grid; place-items: center; }
.reseau__haut svg { width: 22px; height: 22px; }
.reseau__haut > svg { width: 20px; height: 20px; color: var(--gris); }
.reseau h3 { font-size: 21px; font-weight: 600; margin-bottom: 6px; }
.reseau p { font-size: 14px; color: var(--gris); }
.reseau--bleu { background: var(--irise); }
.reseau--bleu p, .reseau--bleu .eyebrow { color: #4a2a30; }
.reseau--bleu .eyebrow { margin-bottom: 6px; }

/* Appel final */
.appel { padding: var(--section) 0 0; }
.appel__bloc { display: flex; flex-wrap: wrap; gap: 32px 72px; align-items: center; padding: clamp(32px, 5vw, 64px); background: #fff; border-radius: 36px; }
.appel__titre { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.appel__titre h2 { font-weight: 400; font-size: clamp(36px, 5vw, 72px); line-height: 1.02; letter-spacing: -0.05em; text-wrap: balance; }
.appel__titre h2 span { color: var(--gris-titre); }
.appel__texte { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.appel__texte p { font-size: 17px; line-height: 1.65; color: var(--texte); }
.appel__texte small { font-size: 14px; color: var(--gris); }

/* Pied de page */
.site-footer { padding: 16px var(--gouttiere) clamp(16px, 3vw, 32px); }
.site-footer__bloc { max-width: var(--largeur); margin: 0 auto; padding: clamp(32px, 5vw, 64px) clamp(24px, 4vw, 56px) 28px; border-radius: 36px; background: var(--bordeaux-nuit); color: #fff; display: flex; flex-direction: column; gap: 48px; overflow: hidden; }
.site-footer__haut { display: flex; flex-wrap: wrap; gap: 40px 64px; }
.site-footer__marque { flex: 2 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.site-footer__marque img { align-self: flex-start; height: 40px; width: auto; }
.site-footer__marque p { max-width: 460px; font-family: var(--titre); font-size: 23px; line-height: 1.35; letter-spacing: -0.02em; }
.site-footer__col { flex: 1 1 150px; display: flex; flex-direction: column; gap: 12px; font-size: 15px; }
.site-footer__col--large { flex-basis: 220px; }
.site-footer__col h2 { font-family: var(--font); font-size: 13px; font-weight: 400; color: #c49aa2; margin-bottom: 4px; }
.site-footer__col a { color: #fff; text-decoration: none; }
.site-footer__col a:hover { color: #e8d3d6; }
.site-footer__col small { color: #c49aa2; font-size: 15px; }
.sociaux { display: flex; gap: 10px; }
.sociaux a { width: 44px; height: 44px; border-radius: 14px; background: rgba(255, 255, 255, .08); display: grid; place-items: center; transition: background-color .2s ease; }
.sociaux a:hover { background: rgba(255, 255, 255, .16); }
.sociaux svg { width: 18px; height: 18px; }
.site-footer__nom {
  font-family: var(--titre);
  font-weight: 500;
  font-size: clamp(72px, 16vw, 236px);
  line-height: .8;
  letter-spacing: -0.06em;
  white-space: nowrap;
  margin-bottom: -10px;
  background: var(--irise);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  user-select: none;
}
.site-footer__bas { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 14px; color: #c49aa2; }
.site-footer__bas a { color: #c49aa2; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}


/* Flou de la barre sur un calque, pour que le menu mobile occupe tout l écran */
.site-header__barre { position: relative; isolation: isolate; background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
.site-header__barre::before { content: ""; position: absolute; inset: -1px; z-index: -1; border-radius: 22px; background: rgba(255, 255, 255, .9); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }

@media (max-width: 1080px) { .nav .nav__mobile-cta { display: inline-flex !important; } }

[hidden] { display: none !important; }

/* ==========================================================================
   Sinocam : composants propres au site, dans le langage Prisme
   ========================================================================== */
.logo img { height: 40px; }
.site-footer__marque img { height: 44px; }

.lien-wa { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-size: 15px; font-weight: 500; color: var(--encre); text-decoration: none; }
.lien-wa svg { width: 18px; height: 18px; color: var(--vert); flex: none; }
.lien-wa:hover { color: var(--bordeaux); }

/* Bandeau avec la photo détourée */
.bandeau--photo { height: clamp(460px, 44vw, 580px); }
.bandeau__photo { position: absolute; bottom: 0; left: 20%; height: 100%; width: auto; max-width: none; pointer-events: none; user-select: none; }
.encoche__icones { display: flex; }
.encoche__icones span { width: 46px; height: 46px; border-radius: 50%; border: 2px solid var(--cadre); background: #fff; color: var(--bordeaux); display: grid; place-items: center; }
.encoche__icones span + span { margin-left: -12px; }
.encoche__icones svg { width: 20px; height: 20px; }

.coches--colonne { flex-direction: column; }

/* Test d'éligibilité */
.quiz { flex: 1.6 1 560px; min-width: 0; align-self: flex-start; background: #fff; border-radius: var(--rayon); padding: clamp(24px, 3.4vw, 40px); }
.quiz__haut { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 32px; }
.quiz__compte { font-size: 14px; color: var(--gris); }
.quiz__retour { display: inline-flex; align-items: center; gap: 6px; padding: 4px 0; border: 0; background: none; color: var(--encre); font-size: 14px; font-weight: 500; cursor: pointer; }
.quiz__retour svg { width: 16px; height: 16px; }
.quiz__retour:hover { color: var(--bordeaux); }
.quiz__barre { height: 6px; margin-top: 14px; border-radius: 999px; background: var(--gris-clair); overflow: hidden; }
.quiz__barre i { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--or), var(--bordeaux)); transition: width .45s ease; }
.quiz__q { min-width: 0; margin: 28px 0 0; padding: 0; border: 0; }
.quiz__q legend { padding: 0; margin-bottom: 20px; font-family: var(--titre); font-size: clamp(24px, 2.4vw, 32px); font-weight: 400; line-height: 1.15; letter-spacing: -0.035em; text-wrap: balance; }
.quiz--pas .quiz__q:not(.actif), .quiz--pas .verdict:not(.actif) { display: none; }
.quiz--pas .actif { animation: apparition .35s ease; }
@keyframes apparition { from { opacity: 0; transform: translateX(12px); } to { opacity: 1; transform: none; } }

.choix { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.choix--3 { grid-template-columns: 1fr; }
.choix input { position: absolute; opacity: 0; pointer-events: none; }
.choix label { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; padding: 12px 16px 12px 22px; border-radius: 20px; border: 1px solid var(--trait); background: var(--cadre); font-size: 17px; font-weight: 500; cursor: pointer; transition: border-color .2s ease, background-color .2s ease, color .2s ease; }
.choix label::after { content: ""; flex: none; width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid var(--trait-fort); background: #fff; }
.choix label:hover { border-color: var(--encre); }
.choix input:checked + label { border-color: transparent; background: var(--relief); box-shadow: var(--relief-ombre); color: #fff; }
.choix input:checked + label::after { border-color: #fff; background: #fff no-repeat center / 14px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23680b1d' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7'/%3E%3C/svg%3E"); }
.choix input:focus-visible + label { outline: 2px solid var(--bordeaux); outline-offset: 3px; }

.verdict { margin-top: 28px; }
.verdict__titre { display: flex; align-items: flex-start; gap: 12px; font-size: clamp(26px, 2.6vw, 34px); font-weight: 400; line-height: 1.15; letter-spacing: -0.035em; }
.verdict__titre i { flex: none; width: 12px; height: 12px; margin-top: .45em; border-radius: 50%; background: var(--gris); }
.verdict[data-state="ok"] .verdict__titre i { background: var(--vert); }
.verdict[data-state="warn"] .verdict__titre i { background: #c98a1a; }
.verdict[data-state="ko"] .verdict__titre i { background: #b3261e; }
.verdict ul { margin: 18px 0 0; padding: 20px 22px; list-style: none; display: grid; gap: 10px; border-radius: 20px; background: var(--gris-clair); }
.verdict li { display: flex; gap: 10px; font-size: 15px; line-height: 1.55; color: var(--texte); }
.verdict li::before { content: ""; flex: none; width: 18px; height: 18px; margin-top: 3px; background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231e9e62' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7'/%3E%3C/svg%3E"); }
.verdict .btn { margin-top: 20px; }
.quiz__refaire { display: block; margin: 14px auto 0; padding: 4px; border: 0; background: none; color: var(--gris); font-size: 14px; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.quiz__refaire:hover { color: var(--encre); }

/* Conseillers (masqués tant qu'ils ne sont pas remplis) */
.conseillers { margin-bottom: 16px; }
.conseillers .lien-wa { justify-content: flex-start; margin-top: 4px; }

/* Parents */
.parents { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 16px; }
.parents__photo { position: relative; overflow: hidden; border-radius: var(--rayon); min-height: 420px; background: var(--gris-clair); }
.parents__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.parents__cartes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }

/* Tarif */
.offre .btn { align-self: flex-start; }
.note-bas { margin-top: 18px; font-size: 14px; color: var(--gris); }

/* FAQ et appel final */
.faq__btn { align-self: flex-start; }
.raisons__liste.faq details + details { margin-top: 10px; }
.qr-rang { display: flex; gap: 12px; margin-top: 16px; }
.qr { flex: 1 1 0; max-width: 132px; padding: 12px 12px 14px; border-radius: 20px; background: var(--cadre); color: var(--encre); text-align: center; text-decoration: none; }
.qr:hover { color: var(--encre); background: var(--gris-clair); }
.qr img { width: 100%; height: auto; border-radius: 10px; }
.qr b { display: block; margin-top: 8px; font-size: 14px; font-weight: 600; }
.qr small { display: block; font-size: 12px; color: var(--gris); }

/* Contact */
.info__qr { width: 132px; height: auto; margin-top: 12px; border-radius: 14px; }
.champ__label { font-size: 14px; font-weight: 500; }
.filtres--radio { margin-bottom: 0; align-self: flex-start; }
.filtres--radio input { position: absolute; opacity: 0; pointer-events: none; }
.filtres--radio .filtre { display: inline-flex; align-items: center; }
.filtres--radio input:checked + .filtre { background: var(--relief); box-shadow: var(--relief-ombre); color: #fff; }
.filtres--radio input:focus-visible + .filtre { outline: 2px solid var(--bordeaux); outline-offset: 2px; }
.champ input[aria-invalid="true"] { border-color: #b3261e; }
.formulaire__statut { font-size: 14px; color: var(--vert); }
.formulaire__statut:empty { display: none; }
.formulaire__statut[data-state="erreur"] { color: #b3261e; }

/* Mentions légales */
.legal { max-width: 820px; padding: clamp(24px, 4vw, 48px); border-radius: var(--rayon); background: #fff; }
.legal h2 { margin-top: 36px; font-size: 24px; font-weight: 600; letter-spacing: -0.025em; }
.legal h2:first-child { margin-top: 0; }
.legal p { margin-top: 12px; color: var(--texte); }

@media (max-width: 960px) {
  .parents { grid-template-columns: 1fr; }
  .parents__photo { min-height: 0; aspect-ratio: 4 / 3; }
}
@media (max-width: 720px) {
  .bandeau--photo { display: flex; flex-direction: column; height: auto; min-height: 0; padding-top: 28px; }
  .bandeau--photo .bandeau__photo { position: relative; left: auto; bottom: auto; height: 340px; margin: 0 auto; }
  .bandeau--photo .bandeau__carte { position: relative; inset: auto; width: auto; margin: -72px 14px 92px; padding: 24px; gap: 14px; }
  .bandeau--photo .bandeau__chiffre { font-size: 60px; }
  .bandeau--photo .bandeau__carte p { font-size: 18px; }
  .quiz { padding: 22px 18px 24px; }
  .choix { grid-template-columns: 1fr; }
  .choix label { min-height: 58px; }
  .parents__cartes { grid-template-columns: 1fr; }
  .qr-rang { gap: 8px; }
  .qr { padding: 8px 8px 10px; }
  .qr small { font-size: 11px; }
}

.insecable { white-space: nowrap; }
.appel .btn--petit { padding-right: 20px; }
@media (max-width: 720px) {
  .bande-chiffres { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 8px; }
  .bande-chiffres__case { padding: 18px 16px; gap: 10px; }
  .bande-chiffres__case strong { font-size: 40px; }
  .bande-chiffres__case span { font-size: 13.5px; }
  .encoche__icones span { width: 38px; height: 38px; }
  .encoche__icones svg { width: 17px; height: 17px; }
  .offre { padding: 26px 22px; }
  .offre__tete h3 { flex-wrap: wrap; justify-content: flex-start; font-size: 24px; }
  .offre__tete h3 small { white-space: nowrap; }
  .offre__prix { font-size: 36px; white-space: nowrap; }
  .qr small { display: none; }
  .etapes, .etapes-cartes { gap: 10px; }
  .etape { padding: 22px; gap: 10px; }
  .etape__ligne { margin-bottom: 0; }
}

.info p, .info a { overflow-wrap: anywhere; }
@media (max-width: 720px) {
  .contact__formulaire { order: -1; }
  .bande-trois { gap: 8px; margin-top: 40px; }
  .bande-trois > div { padding: 18px 20px; }
  .bande-trois strong { font-size: 36px; }
}

/* ==========================================================================
   Retouches : relief à plat, alignements en haut, rythme des sections, boutons
   ========================================================================== */
:root {
  --relief: var(--bordeaux);
  --relief-ombre: none;
  --section: clamp(72px, 8vw, 112px);
  --tete: clamp(32px, 4vw, 48px);
  --doux: cubic-bezier(.2, .7, .1, 1);
}

/* Rythme : même écart entre toutes les sections, même écart titre / contenu */
.espace-haut { padding-top: 16px; }
.section-head, .intro { margin-bottom: var(--tete); }
.bandeau { margin-top: 48px; }
.appel { padding-top: var(--section); }

/* Boutons : légère élévation, flèche qui pivote, rayures qui défilent */
.btn {
  transition: transform .35s var(--doux), box-shadow .35s var(--doux), background-color .25s ease, color .25s ease, border-color .25s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -18px rgba(61, 6, 17, .6); }
.btn--contour:hover, .btn--blanc:hover { box-shadow: 0 12px 26px -18px rgba(31, 10, 14, .4); }
.btn:active { transform: translateY(0) scale(.98); box-shadow: none; transition-duration: .12s; }
.btn__rond { transition: transform .45s var(--doux), background-color .25s ease; }
.btn:hover .btn__rond { transform: rotate(45deg); }
.btn:hover .btn__rond:has(use[href="#i-wa"]) { transform: scale(1.08); }
.btn--raye:hover { animation: raye-defile 1.4s linear infinite; }
@keyframes raye-defile { to { background-position: 44.14px 0; } }
@media (prefers-reduced-motion: reduce) {
  .btn, .btn:hover, .btn:active { transform: none; }
  .btn--raye:hover { animation: none; }
}

/* Bandeau : carte J-12 utile sur toute sa hauteur */
.bandeau__bas { display: flex; flex-direction: column; gap: 16px; }
.bandeau__carte .btn { color: #fff; }

/* Alignements : le texte de droite démarre à la hauteur du titre */
@media (min-width: 961px) {
  .hero__grille { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 400px); gap: 24px 72px; align-items: start; }
  .hero__titre { display: contents; }
  .hero__titre > * { grid-column: 1; justify-self: start; }
  .hero__aside { grid-column: 2; grid-row: 2; padding: 10px 0 0; }

  .section-head, .intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: 16px 80px; align-items: start; }
  .section-head__titre, .intro__titre { display: contents; }
  .section-head__titre > *, .intro__titre > * { grid-column: 1; }
  .section-head > :not(.section-head__titre), .intro__texte { grid-column: 2; grid-row: 2; padding-top: 10px; }

  .raisons { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px 80px; align-items: start; }
  .raisons > :last-child { margin-top: 44px; }
  .raisons > .quiz { align-self: stretch; }

  .appel__bloc { align-items: flex-start; }
  .appel__texte { padding-top: 46px; }
}

/* Le test occupe toute la hauteur de sa colonne, la question au centre */
.quiz { display: flex; flex-direction: column; }
.quiz--pas .quiz__q.actif, .quiz--pas .verdict.actif { margin-block: auto; padding-block: 12px; }

@media (max-width: 960px) {
  .section-head, .intro { gap: 16px; }
  .raisons { gap: 32px; }
}
@media (max-width: 720px) {
}

/* Carte J-12 compacte, calée en haut */
.bandeau__carte { bottom: auto; gap: 28px; }
/* Tarif : boutons alignés en bas des deux cartes */
.offre .btn { margin-top: auto; }
@media (min-width: 961px) {
  .raisons { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); }
}
.bandeau--photo .bandeau__photo { height: 94%; }
@media (max-width: 720px) { .bandeau--photo .bandeau__photo { height: 340px; } }

/* Mobile : carte J-12 sans flou parasite, cartes compactes */
@media (max-width: 720px) {
  .bandeau--photo .bandeau__carte { background: rgba(255, 255, 255, .88); -webkit-backdrop-filter: none; backdrop-filter: none; }

  .etape { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 4px 16px; padding: 20px; }
  .etape__ligne { grid-row: span 2; align-self: start; }
  .etape__ligne b { width: 44px; height: 44px; }
  .etape__ligne i { display: none; }
  .etape h3 { font-size: 19px; align-self: center; }

  .parents__cartes { gap: 10px; }
  .parents__cartes .carte { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 4px 16px; padding: 20px; border-radius: 24px; }
  .parents__cartes .carte__icone { width: 44px; height: 44px; border-radius: 14px; grid-row: span 2; }
  .parents__cartes .carte__icone svg { width: 20px; height: 20px; }
  .parents__cartes .carte h3 { font-size: 18px; align-self: center; }
  .parents__cartes .carte p { font-size: 14.5px; }
}
@media (max-width: 720px) {
  .bandeau--photo .bandeau__photo { -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent 100%); mask-image: linear-gradient(180deg, #000 70%, transparent 100%); }
  .bandeau--photo .bandeau__carte { position: relative; z-index: 1; background: rgba(255, 255, 255, .96); }
}

/* Pied de page plein écran : d'un bord à l'autre, contenu aligné sur la grille */
.site-footer { margin: clamp(8px, 1.4vw, 20px) calc(-1 * clamp(8px, 1.4vw, 20px)) calc(-1 * clamp(8px, 1.4vw, 20px)); padding: 0; }
.site-footer__bloc {
  max-width: none; border-radius: clamp(24px, 3vw, 44px) clamp(24px, 3vw, 44px) 0 0;
  padding: clamp(56px, 7vw, 96px) max(var(--gouttiere), calc((100% - var(--largeur)) / 2 + var(--gouttiere))) 28px;
}
.site-footer__nom { font-size: min(calc((100vw - 2 * var(--gouttiere)) / 3.62), calc((var(--largeur) - 2 * var(--gouttiere)) / 3.62)); margin-bottom: -.06em; }

/* Puces chinoises : le « fangsheng » (方胜), deux losanges entrelacés */
:root {
  --puce: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 5l7 7-7 7-7-7z' fill='%23680b1d'/%3E%3Cpath d='M15 5.6l6.4 6.4-6.4 6.4-6.4-6.4z' fill='none' stroke='%23be9843' stroke-width='1.8'/%3E%3C/svg%3E");
  --puce-claire: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 5l7 7-7 7-7-7z' fill='%23e2c98f'/%3E%3Cpath d='M15 5.6l6.4 6.4-6.4 6.4-6.4-6.4z' fill='none' stroke='%23ffffff' stroke-opacity='.85' stroke-width='1.8'/%3E%3C/svg%3E");
}
.coches li::before, .verdict li::before, .offre li::before {
  content: ""; flex: none; width: 20px; height: 20px; background: no-repeat center / contain var(--puce);
}
.offre li { align-items: flex-start; }
.offre li::before, .verdict li::before { margin-top: 2px; }
.offre--bleu li::before { background-image: var(--puce-claire); }
.puces li { display: inline-flex; align-items: center; gap: 7px; }
.puces li::before { content: ""; width: 13px; height: 13px; background: no-repeat center / contain var(--puce); }

/* FAQ en deux colonnes indépendantes */
.faq--2col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 16px; align-items: start; }
.faq__col { display: flex; flex-direction: column; gap: 10px; }
.faq__aside { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
@media (max-width: 860px) { .faq--2col { grid-template-columns: 1fr; } }

/* Bandeau : forme d'origine avec l'encoche, photo décalée pour ne pas la toucher */
.bandeau--photo .bandeau__photo { left: 39%; }
@media (max-width: 720px) {
  .bandeau--photo .bandeau__photo { left: auto; }
  .bandeau--photo .bandeau__carte { margin-bottom: 92px; }
}

/* ==========================================================================
   Pied de page « carte d'embarquement »
   ========================================================================== */
.pied-tete { display: flex; flex-direction: column; gap: 14px; }
.pied-tete .eyebrow { color: #c49aa2; }
.pied-tete h2 { font-weight: 400; font-size: clamp(32px, 4.4vw, 60px); line-height: 1.04; letter-spacing: -0.045em; text-wrap: balance; }
.pied-tete h2 span { color: #c49aa2; }

.billet { --papier: #fbf4ea; --perfo: 28px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 340px); color: var(--encre); filter: drop-shadow(0 30px 50px rgba(0, 0, 0, .35)); }
.billet__principal, .billet__talon { background: var(--papier); }
.billet__principal {
  display: flex; flex-direction: column; gap: 28px; padding: clamp(24px, 3vw, 40px);
  border-radius: 28px 0 0 28px;
  -webkit-mask: radial-gradient(circle at 100% 0, transparent 14px, #000 14.5px) top / 100% 51% no-repeat, radial-gradient(circle at 100% 100%, transparent 14px, #000 14.5px) bottom / 100% 51% no-repeat;
  mask: radial-gradient(circle at 100% 0, transparent 14px, #000 14.5px) top / 100% 51% no-repeat, radial-gradient(circle at 100% 100%, transparent 14px, #000 14.5px) bottom / 100% 51% no-repeat;
}
.billet__talon {
  position: relative; display: flex; flex-direction: column; gap: 16px; padding: clamp(24px, 3vw, 36px);
  border-radius: 0 28px 28px 0; background: var(--irise);
  -webkit-mask: radial-gradient(circle at 0 0, transparent 14px, #000 14.5px) top / 100% 51% no-repeat, radial-gradient(circle at 0 100%, transparent 14px, #000 14.5px) bottom / 100% 51% no-repeat;
  mask: radial-gradient(circle at 0 0, transparent 14px, #000 14.5px) top / 100% 51% no-repeat, radial-gradient(circle at 0 100%, transparent 14px, #000 14.5px) bottom / 100% 51% no-repeat;
}
.billet__talon::before { content: ""; position: absolute; left: 0; top: 22px; bottom: 22px; border-left: 2px dashed rgba(61, 6, 17, .28); }
.billet__talon small { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: #6b4048; }
.billet__talon strong { font-family: var(--titre); font-size: 22px; font-weight: 500; line-height: 1.25; letter-spacing: -0.02em; }
.billet__talon .btn { color: #fff; margin-top: auto; }
.billet__code { width: 100%; height: 48px; fill: var(--bordeaux-nuit); opacity: .85; }

.billet__entete { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-bottom: 20px; border-bottom: 1px solid rgba(61, 6, 17, .12); }
.billet__entete img { height: 34px; width: auto; }
.billet__entete span { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: #6b4048; display: flex; align-items: center; gap: 10px; }
.billet__entete b { font-size: 14px; letter-spacing: .2em; font-weight: 600; color: var(--bordeaux); }

.billet__trajet { display: grid; grid-template-columns: auto minmax(60px, 1fr) auto; align-items: center; gap: 20px; }
.billet__ville { display: flex; flex-direction: column; gap: 2px; }
.billet__ville--arrivee { text-align: right; }
.billet__ville small { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: #6b4048; }
.billet__ville strong { font-family: var(--titre); font-size: clamp(36px, 4.6vw, 62px); font-weight: 500; line-height: 1.05; letter-spacing: -0.04em; color: var(--bordeaux); }
.billet__ville span { font-size: 14px; color: var(--gris); }
.billet__vol { display: flex; align-items: center; gap: 12px; color: var(--or); }
.billet__vol i { flex: 1; border-top: 2px dotted rgba(190, 152, 67, .7); }
.billet__vol svg { width: 30px; height: 30px; flex: none; transform: rotate(45deg); }

.billet__infos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 24px; margin: 0; padding-top: 22px; border-top: 1px solid rgba(61, 6, 17, .12); }
.billet__infos dt { font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: #6b4048; }
.billet__infos dd { margin: 4px 0 0; font-family: var(--titre); font-size: 18px; font-weight: 500; letter-spacing: -0.01em; }

@media (max-width: 860px) {
  .billet { grid-template-columns: 1fr; }
  .billet__principal {
    border-radius: 28px 28px 0 0;
    -webkit-mask: radial-gradient(circle at 0 100%, transparent 14px, #000 14.5px) left / 51% 100% no-repeat, radial-gradient(circle at 100% 100%, transparent 14px, #000 14.5px) right / 51% 100% no-repeat;
    mask: radial-gradient(circle at 0 100%, transparent 14px, #000 14.5px) left / 51% 100% no-repeat, radial-gradient(circle at 100% 100%, transparent 14px, #000 14.5px) right / 51% 100% no-repeat;
  }
  .billet__talon {
    border-radius: 0 0 28px 28px;
    -webkit-mask: radial-gradient(circle at 0 0, transparent 14px, #000 14.5px) left / 51% 100% no-repeat, radial-gradient(circle at 100% 0, transparent 14px, #000 14.5px) right / 51% 100% no-repeat;
    mask: radial-gradient(circle at 0 0, transparent 14px, #000 14.5px) left / 51% 100% no-repeat, radial-gradient(circle at 100% 0, transparent 14px, #000 14.5px) right / 51% 100% no-repeat;
  }
  .billet__talon::before { left: 22px; right: 22px; top: 0; bottom: auto; border-left: 0; border-top: 2px dashed rgba(61, 6, 17, .28); }
  .billet__infos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
  .billet__entete { flex-direction: column; align-items: flex-start; }
  .billet__trajet { gap: 10px; }
  .billet__ville strong { font-size: 30px; }
  .billet__vol svg { width: 22px; height: 22px; }
}

/* ==========================================================================
   Sections synchronisées : même en-tête, même grille, mêmes cartes
   ========================================================================== */
:root { --rayon: 28px; --carte-pad: 28px; --carte-gap: 16px; }

/* Une seule famille de cartes : même rayon, même marge intérieure, même écart */
.pilier, .pole, .raison, .etape, .etape-carte, .carte, .offre, .quiz, .sur-mesure, .bande-chiffres, .parents__photo, .avis figure, .faq details { border-radius: var(--rayon); }
.raison, .etape, .etape-carte, .carte, .pilier { padding: var(--carte-pad); }
.offre, .sur-mesure { padding: clamp(28px, 3vw, 36px); }
.etapes, .etapes-cartes, .offres, .parents, .parents__cartes, .piliers, .avis { gap: var(--carte-gap); }
.sur-mesure { margin-top: 0; }
.faq details { padding: 0 var(--carte-pad); }

/* Test d'éligibilité : le test et sa carte d'appui côte à côte */
.elig-grille { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--carte-gap); align-items: stretch; }
.elig-grille .quiz { flex: none; align-self: stretch; }
.elig-aside { gap: 18px; }
.elig-aside h3 { font-size: 24px; }
.elig-aside .coches li { align-items: flex-start; font-size: 15px; line-height: 1.5; color: #4a2a30; }
.elig-aside .coches li::before { margin-top: 1px; }
.elig-aside .lien-wa { margin-top: auto; justify-content: flex-start; }

/* Engagements : grille de 3 */
.grille-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--carte-gap); }

@media (max-width: 960px) {
  .elig-grille { grid-template-columns: 1fr; }
  .grille-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  :root { --carte-pad: 20px; --carte-gap: 10px; }
  .grille-3 { grid-template-columns: 1fr; }
}

/* Bandeau : la photo ne touche ni l'encoche ni la carte */
.bandeau--photo .bandeau__photo { left: 41.5%; height: 92%; }
@media (max-width: 720px) { .bandeau--photo .bandeau__photo { left: auto; height: 340px; } }
/* Pied de page : même marge latérale que le reste de la page sur mobile */
.site-footer__bloc { padding-left: max(calc(var(--gouttiere) + clamp(8px, 1.4vw, 20px)), calc((100% - var(--largeur)) / 2 + var(--gouttiere))); padding-right: max(calc(var(--gouttiere) + clamp(8px, 1.4vw, 20px)), calc((100% - var(--largeur)) / 2 + var(--gouttiere))); }
.elig-aside h3 { line-height: 1.2; }

/* ==========================================================================
   Mobile : un seul bord gauche pour tout, et 3 cartes = 2 + 1 pleine largeur
   ========================================================================== */
@media (max-width: 720px) {
  /* Même marge intérieure pour toutes les cartes et blocs */
  .offre, .sur-mesure, .appel__bloc, .quiz, .elig-aside, .billet__principal, .billet__talon { padding: var(--carte-pad); }
  .appel .container { padding-left: max(var(--gouttiere), env(safe-area-inset-left, 0px)); padding-right: max(var(--gouttiere), env(safe-area-inset-right, 0px)); }

  /* Héros : tout aligné à gauche */
  .hero__aside { gap: 20px; }
  .hero__aside .lien-wa { justify-content: flex-start; }
  .encoche { padding: 12px 18px 0 0; gap: 10px; }
  .encoche p { font-size: 13.5px; white-space: nowrap; }
  .encoche__icones span { width: 32px; height: 32px; }
  .encoche__icones svg { width: 15px; height: 15px; }

  /* Appel vidéo : titre à l'échelle, étiquettes sur une ligne */
  .sur-mesure { gap: 20px; }
  .sur-mesure h3 { font-size: 26px; line-height: 1.15; }
  .puces { gap: 6px; }
  .puces li { padding: 6px 10px; font-size: 12.5px; }
  .sur-mesure__action, .sur-mesure__action .btn { width: 100%; }

  /* Tarif : badge sur la ligne du titre quand il tient */
  .offre { gap: 18px; }
  .offre .btn { align-self: stretch; }

  /* Appel final : boutons secondaires côte à côte, même largeur */
  .appel__bloc { gap: 28px; }
  .appel__texte .actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .appel__texte .actions .btn { width: 100%; padding: 0 12px; font-size: 14px; }

  /* Sections à 3 cartes : deux côte à côte, la dernière sur toute la largeur */
  .etapes-cartes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .etapes-cartes > :last-child:nth-child(odd) { grid-column: 1 / -1; }
  .etape-carte { padding: 18px; gap: 10px; }
  .etape-carte__haut { flex-direction: column; align-items: flex-start; gap: 10px; }
  .etape-carte__haut b { width: 40px; height: 40px; }
  .etape-carte h3 { font-size: 17px; line-height: 1.25; }
  .etape-carte p { font-size: 13.5px; }
  .etapes-cartes > :last-child:nth-child(odd) .etape-carte__haut { flex-direction: row; justify-content: space-between; align-items: center; }
}
/* Tablette : même règle pour les grilles de 3 passées à 2 colonnes */
@media (min-width: 721px) and (max-width: 960px) {
  .etapes-cartes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .etapes-cartes > :last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .appel__texte .actions { grid-template-columns: 1fr; }
  .appel__texte .actions .btn { font-size: 15px; }
  .site-footer__haut { display: grid; grid-template-columns: 1fr 1fr; gap: 32px 20px; }
  .site-footer__marque { grid-column: 1 / -1; }
  .site-footer__col { font-size: 14px; }
  .site-footer__nom { font-size: calc((100vw - 2 * (var(--gouttiere) + clamp(8px, 1.4vw, 20px))) / 3.7); }
  .site-footer__bas { flex-direction: column; gap: 6px; }
}

/* ==========================================================================
   Héros repris de la version vitrine : bloc bordeaux, photo détourée à droite
   ========================================================================== */
.btn--or { background: var(--or); color: var(--bordeaux-nuit); }
.btn--or .btn__rond { background: var(--bordeaux-nuit); color: var(--or); }
.btn--or:hover { background: #cca95a; color: var(--bordeaux-nuit); }
.btn--wa { gap: 10px; background: #1f7a4a; color: #fff; }
.btn--wa svg { width: 19px; height: 19px; }
.btn--wa:hover { background: #18663d; color: #fff; }

.hero--plein { padding-top: 24px; }
.hero-b {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column; min-height: min(760px, calc(100svh - 140px));
  padding: clamp(40px, 6vw, 88px) clamp(24px, 5vw, 64px) clamp(20px, 2.4vw, 28px);
  border-radius: 36px; background: var(--bordeaux); color: #fff;
}
.hero-b::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(circle at 76% 44%, rgba(190, 152, 67, .18) 0, rgba(190, 152, 67, 0) 36%),
    linear-gradient(0deg, rgba(40, 4, 11, .35) 0%, rgba(40, 4, 11, 0) 30%);
}
.hero-b__photo {
  position: absolute; z-index: -1; right: clamp(24px, 5vw, 64px); bottom: 0;
  height: 100%; width: auto; max-width: 54%; object-fit: contain; object-position: right bottom; pointer-events: none;
}
.hero-b__contenu { max-width: 600px; display: flex; flex-direction: column; align-items: flex-start; }
.hero-b__sur { font-size: 13px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--or); }
.hero-b h1 { margin-top: 20px; color: #fff; }
.hero-b h1 span { display: block; color: var(--or); }
.hero-b__lead { margin-top: 22px; max-width: 50ch; font-size: 17px; line-height: 1.65; color: rgba(255, 255, 255, .84); }
.hero-b__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-b__urgence { display: inline-flex; align-items: center; gap: 10px; margin-top: 22px; padding: 8px 16px 8px 12px; border-radius: 999px; background: rgba(255, 255, 255, .1); font-size: 14px; font-weight: 500; }
.hero-b__urgence i { flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--or); animation: pouls-or 2s infinite; }
@keyframes pouls-or { 0% { box-shadow: 0 0 0 0 rgba(190, 152, 67, .6); } 70% { box-shadow: 0 0 0 9px rgba(190, 152, 67, 0); } 100% { box-shadow: 0 0 0 0 rgba(190, 152, 67, 0); } }
@media (prefers-reduced-motion: reduce) { .hero-b__urgence i { animation: none; } }

.hero-b__barre {
  margin: auto 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  border-radius: 22px; border: 1px solid rgba(190, 152, 67, .28); background: rgba(61, 6, 17, .82);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
}
.hero-b__contenu + .hero-b__barre { margin-top: 56px; }
.hero-b__barre li { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 14px; align-items: center; padding: 20px 22px; }
.hero-b__barre li + li { border-left: 1px solid rgba(255, 255, 255, .12); }
.hero-b__barre li > span { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--or); color: var(--bordeaux-nuit); }
.hero-b__barre svg { width: 19px; height: 19px; }
.hero-b__barre b { display: block; font-family: var(--titre); font-size: 15.5px; font-weight: 600; }
.hero-b__barre small { display: block; font-size: 13px; line-height: 1.4; color: rgba(255, 255, 255, .72); }

@media (max-width: 1060px) {
  .hero-b__barre { grid-template-columns: 1fr 1fr; }
  .hero-b__barre li:nth-child(3) { border-left: 0; }
  .hero-b__barre li:nth-child(n+3) { border-top: 1px solid rgba(255, 255, 255, .12); }
}
@media (max-width: 960px) {
  .hero-b { min-height: 0; padding-top: 0; }
  .hero-b__photo {
    position: relative; z-index: 0; right: auto; align-self: center; height: auto; width: min(72%, 300px); max-width: none; margin: 28px auto -56px;
    -webkit-mask-image: linear-gradient(180deg, #000 62%, transparent 95%); mask-image: linear-gradient(180deg, #000 62%, transparent 95%);
  }
  .hero-b::after {
    content: ""; position: absolute; z-index: -1; left: 50%; top: 40px; width: 280px; height: 280px; transform: translateX(-50%); border-radius: 50%;
    border: 1px solid rgba(190, 152, 67, .5); box-shadow: 0 0 0 14px rgba(190, 152, 67, .07), 0 0 0 15px rgba(190, 152, 67, .2);
  }
  .hero-b__contenu { position: relative; z-index: 1; max-width: none; }
}
@media (max-width: 720px) {
  .hero--plein { padding-top: 16px; }
  .hero-b { padding-left: var(--carte-pad); padding-right: var(--carte-pad); padding-bottom: var(--carte-pad); border-radius: var(--rayon); }
  .hero-b__photo { width: min(74%, 270px); }
  .hero-b::after { width: 250px; height: 250px; top: 36px; }
  .hero-b__sur { font-size: 11px; letter-spacing: .12em; }
  .hero-b h1 { margin-top: 12px; font-size: clamp(36px, 10.5vw, 44px); }
  .hero-b__lead { margin-top: 14px; font-size: 15.5px; }
  .hero-b__actions { width: 100%; margin-top: 24px; gap: 10px; }
  .hero-b__actions .btn { width: 100%; }
  .hero-b__urgence { font-size: 13px; }
  .hero-b__contenu + .hero-b__barre { margin-top: 28px; }
  .hero-b__barre li { grid-template-columns: 1fr; gap: 10px; padding: 16px 14px; }
  .hero-b__barre li > span { width: 34px; height: 34px; }
  .hero-b__barre svg { width: 16px; height: 16px; }
  .hero-b__barre b { font-size: 13.5px; line-height: 1.3; }
  .hero-b__barre small { display: none; }
}
@media (min-width: 961px) {
  .hero-b__contenu { max-width: 620px; }
  .hero-b h1 { font-size: clamp(52px, 5.4vw, 76px); }
  .hero-b h1 > :first-child, .hero-b h1 { white-space: normal; }
  .hero-b__lead { max-width: 44ch; }
}
.nav > a { white-space: nowrap; }
@media (min-width: 1081px) and (max-width: 1240px) {
  .nav > a { padding: 9px 10px; font-size: 14.5px; }
  .site-header__barre { gap: 12px; }
}
@media (min-width: 961px) and (max-width: 1180px) {
  .hero-b__barre { grid-template-columns: 1fr 1fr; }
  .hero-b__barre li:nth-child(3) { border-left: 0; }
  .hero-b__barre li:nth-child(n+3) { border-top: 1px solid rgba(255, 255, 255, .12); }
}

/* ==========================================================================
   Héros plein écran : d'un bord à l'autre, sur toute la hauteur, menu par-dessus
   ========================================================================== */
:root { --bord: clamp(8px, 1.4vw, 20px); --entete: 88px; --colonne: max(calc(var(--gouttiere) + var(--bord)), calc((100% - var(--largeur)) / 2 + var(--gouttiere))); }
.hero--plein { max-width: none; padding: 0; margin: calc(-1 * var(--bord)) calc(-1 * var(--bord)) 0; }
.hero-b {
  min-height: 100svh; border-radius: 0 0 clamp(28px, 3vw, 44px) clamp(28px, 3vw, 44px);
  padding: calc(var(--entete) + var(--bord) + clamp(40px, 7vh, 88px)) var(--colonne) clamp(24px, 3vw, 40px);
  justify-content: center;
}
.hero-b__contenu { margin-top: auto; }
.hero-b__photo { right: var(--colonne); height: calc(100% - var(--entete) - var(--bord) - 16px); max-width: 52%; }
@media (max-width: 960px) {
  .hero-b { min-height: 0; padding: calc(var(--entete) + var(--bord)) var(--colonne) var(--colonne); }
  .hero-b__contenu { margin-top: 0; }
  .hero-b__photo { height: auto; max-width: none; }
  .hero-b::after { top: calc(var(--entete) + var(--bord) + 12px); }
}
@media (max-width: 720px) {
  .hero--plein { padding: 0; }
  .hero-b { padding: calc(var(--entete) + var(--bord)) calc(var(--gouttiere) + var(--bord)) calc(var(--gouttiere) + var(--bord)); border-radius: 0 0 var(--rayon) var(--rayon); }
  .hero-b::after { top: calc(var(--entete) + var(--bord) + 8px); }
}
@media (min-width: 961px) {
  .hero-b__contenu { margin-block: auto; padding-bottom: clamp(32px, 5vh, 56px); }
  .hero-b__contenu + .hero-b__barre { margin-top: 0; }
  .hero-b__photo { height: min(calc(100% - var(--entete) - var(--bord) - 16px), 980px); }
}
@media (max-width: 960px) { .hero-b__photo { margin-top: 20px; } .hero-b::after { top: calc(var(--entete) + var(--bord) + 4px); } }

/* ==========================================================================
   Grille d'alignement unique
   - bords extérieurs : la colonne du site (menu compris)
   - marge intérieure : une seule valeur pour toutes les cartes et blocs
   ========================================================================== */
:root { --carte-pad: 32px; }
@media (max-width: 640px) { :root { --carte-pad: 20px; } }

.site-header__barre { max-width: calc(var(--largeur) - 2 * var(--gouttiere)); }

.quiz, .elig-aside, .sur-mesure, .etape, .raison, .etape-carte, .carte, .offre, .appel__bloc,
.billet__principal, .billet__talon, .bande-chiffres__case { padding: var(--carte-pad); }
.faq details { padding: 0 var(--carte-pad); }
.faq summary { padding-block: 22px; }
.bande-chiffres { padding: 8px; gap: 8px; }
.bande-chiffres__case { padding: calc(var(--carte-pad) - 8px); }
.hero-b__barre li { padding: 20px calc(var(--carte-pad) - 8px); }

/* Têtes de cartes : numéro / icône et titre sur la même ligne de départ */
.raison { gap: 16px; }
.raison h3 { margin-top: 10px; }
.etape-carte h3, .etape h3, .carte h3 { margin-top: 4px; }

/* Tarif : titres, prix et listes à la même hauteur dans les deux cartes */
.offres { align-items: stretch; }
.offre__tete { min-height: 92px; }

@media (max-width: 720px) {
  .etape-carte { padding: var(--carte-pad); }
  .offre__tete { min-height: 0; }
  .raison h3 { margin-top: 8px; }
}
@media (min-width: 961px) { .hero-b { min-height: min(100svh, 940px); } }

/* Bande de chiffres : quatre cases aux couleurs mêlées */
.bande-chiffres__case:nth-child(1) { background: var(--bordeaux); color: #fff; }
.bande-chiffres__case:nth-child(1) span { color: #e8d3d6; }
.bande-chiffres__case:nth-child(2) { background: var(--or); color: var(--bordeaux-nuit); }
.bande-chiffres__case:nth-child(2) span { color: rgba(61, 6, 17, .78); }
.bande-chiffres__case:nth-child(3) { background: var(--irise); color: var(--encre); }
.bande-chiffres__case:nth-child(3) span { color: #4a2a30; }
.bande-chiffres__case:nth-child(4) { background: var(--bordeaux-nuit); color: #fff; }
.bande-chiffres__case:nth-child(4) strong { color: var(--or); }
.bande-chiffres__case:nth-child(4) span { color: #d9bfc3; }

/* ==========================================================================
   Héros mobile v2 : texte + boutons d'abord, puis carte photo + rentrée
   ========================================================================== */
@media (max-width: 720px) {
  .hero-b { padding-top: calc(var(--entete) + var(--bord) + 28px); }
  .hero-b::after { display: none; }
  .hero-b__contenu { display: contents; }
  .hero-b__sur { order: 1; }
  .hero-b h1 { order: 2; }
  .hero-b__lead { order: 3; }
  .hero-b__actions { order: 4; }
  .hero-b__photo {
    order: 5; position: relative; z-index: 0; align-self: stretch;
    width: 100%; height: 300px; max-width: none; margin: 28px 0 0;
    object-fit: contain; object-position: center bottom;
    border-radius: 22px 22px 0 0;
    background: radial-gradient(circle at 50% 38%, rgba(190, 152, 67, .38) 0, rgba(190, 152, 67, .1) 38%, rgba(190, 152, 67, 0) 62%), rgba(255, 255, 255, .06);
    border: 1px solid rgba(190, 152, 67, .55); border-bottom: 0;
    -webkit-mask-image: none; mask-image: none;
  }
  .hero-b__barre { display: none; }
}
@media (max-width: 960px) { .hero-b__photo { right: auto; left: auto; } }

/* ==========================================================================
   Menu mobile
   ========================================================================== */
.nav__pied { display: none; }
.nav-toggle__fermer { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__ouvrir { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__fermer { display: block; }

@media (max-width: 1080px) {
  .nav {
    inset: calc(var(--entete) + var(--bord)) calc(var(--gouttiere) + var(--bord)) auto;
    max-height: calc(100svh - var(--entete) - var(--bord) - 16px);
    padding: 8px var(--carte-pad) var(--carte-pad); gap: 0; border-radius: 24px;
    background: #fff; counter-reset: menu;
    box-shadow: 0 0 0 100vmax rgba(20, 2, 6, .55), 0 30px 60px -20px rgba(0, 0, 0, .5);
  }
  .nav > a {
    counter-increment: menu; display: flex; align-items: center; justify-content: flex-start; gap: 16px;
    padding: 16px 0; font-size: 21px; font-weight: 400; letter-spacing: -0.02em;
  }
  .nav > a::before { content: counter(menu, decimal-leading-zero); min-width: 22px; font-family: var(--font); font-size: 12px; font-weight: 600; color: var(--or); letter-spacing: .04em; }
  .nav > a::after { content: ""; margin-left: auto; width: 16px; height: 16px; background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a08d90' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17L17 7M8 7h9v9'/%3E%3C/svg%3E"); }
  .nav > a:active { color: var(--bordeaux); }
  .nav [aria-current="page"] { color: var(--bordeaux); }
  .nav__pied { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }
  .nav__pied .btn { height: 54px; font-size: 15.5px; }
  .nav__pied .btn--wa { justify-content: center; }
  .nav__rentree { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; font-size: 13.5px; color: var(--texte); }
  .nav__rentree i { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--bordeaux); animation: pouls-bx 2s infinite; }
  .nav__rentree b { color: var(--bordeaux); }
  .nav.ouvert { animation: menu-in .3s var(--doux); }
  .nav.ouvert > a { animation: menu-lien .4s var(--doux) both; }
  .nav.ouvert > a:nth-child(2) { animation-delay: .03s; } .nav.ouvert > a:nth-child(3) { animation-delay: .06s; }
  .nav.ouvert > a:nth-child(4) { animation-delay: .09s; } .nav.ouvert > a:nth-child(5) { animation-delay: .12s; }
  .nav.ouvert > a:nth-child(6) { animation-delay: .15s; }
  .nav-toggle { background: var(--bordeaux); }
}
@keyframes menu-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@keyframes menu-lien { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .nav.ouvert, .nav.ouvert > a { animation: none; } }
@media (max-width: 1080px) {
  .nav { top: calc(var(--entete) + var(--bord) + 8px); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .5); }
  body::after { content: ""; position: fixed; inset: 0; z-index: 45; background: rgba(20, 2, 6, .6); opacity: 0; pointer-events: none; transition: opacity .25s ease; }
  body.menu-ouvert::after { opacity: 1; pointer-events: auto; }
}

/* Menu mobile, sobre : liens simples et deux boutons */
@media (max-width: 1080px) {
  .nav > a { gap: 0; font-size: 22px; }
  .nav > a::before, .nav > a::after { content: none; display: none; }
  .nav.ouvert > a { animation: none; }
}

/* ==========================================================================
   Feuille de calendrier : date limite des dossiers, posée à côté de la diplômée
   ========================================================================== */
.rentree {
  position: absolute; z-index: 2; right: var(--colonne); bottom: clamp(150px, 20vh, 200px);
  width: 196px; padding: 0 0 18px; overflow: hidden; text-align: center;
  background: #fbf7f0; color: var(--encre); border-radius: 14px;
  box-shadow: 0 2px 0 #e6dccd, 0 4px 0 #f3ece1, 0 30px 50px -22px rgba(15, 2, 5, .7);
  transform: rotate(2.5deg);
}
.rentree__haut {
  position: relative; padding: 16px 12px 12px; background: var(--bordeaux); color: #fff;
  font-size: 13px; font-weight: 500; letter-spacing: .01em;
}
.rentree__haut::before, .rentree__haut::after {
  content: ""; position: absolute; top: 7px; width: 9px; height: 9px; border-radius: 50%;
  background: #fbf7f0; box-shadow: inset 0 1px 2px rgba(0, 0, 0, .35);
}
.rentree__haut::before { left: 34%; }
.rentree__haut::after { right: 34%; }
.rentree__jour { margin-top: 10px; font-family: var(--titre); font-size: 92px; font-weight: 500; line-height: 1; letter-spacing: -0.05em; color: var(--bordeaux); }
.rentree__mois { margin-top: 2px; font-family: var(--titre); font-size: 19px; letter-spacing: -0.01em; }
.rentree__pied { margin: 14px 16px 0; padding-top: 12px; border-top: 1px dashed #d9cdbb; font-size: 13px; line-height: 1.45; color: var(--texte); }
.rentree__pied b { color: var(--bordeaux); font-weight: 600; }

@media (min-width: 961px) and (max-width: 1180px) { .rentree { bottom: 220px; width: 180px; } .rentree__jour { font-size: 80px; } }
@media (max-width: 960px) {
  .rentree { position: relative; right: auto; bottom: auto; order: 6; align-self: flex-end; margin: -150px 14px 0 0; width: 150px; padding-bottom: 14px; }
  .rentree__haut { padding: 14px 8px 9px; font-size: 11.5px; }
  .rentree__haut::before, .rentree__haut::after { top: 5px; width: 7px; height: 7px; }
  .rentree__jour { margin-top: 6px; font-size: 64px; }
  .rentree__mois { font-size: 15px; }
  .rentree__pied { margin: 10px 10px 0; padding-top: 9px; font-size: 11.5px; }
  .hero-b__photo { border-radius: 22px; border-bottom: 1px solid rgba(190, 152, 67, .55); }
}

/* Pied de page : grand logo centré */
.site-footer__logo { display: flex; justify-content: center; padding: clamp(24px, 4vw, 48px) 0 clamp(8px, 2vw, 20px); border-top: 1px solid rgba(255, 255, 255, .12); }
.site-footer__logo img { width: min(560px, 72%); height: auto; }
.site-footer__bas { border-top: 0; padding-top: 8px; justify-content: center; text-align: center; gap: 8px 24px; }
@media (max-width: 720px) { .site-footer__logo img { width: 84%; } }

/* Retour en haut */
.haut {
  position: fixed; z-index: 40; right: max(20px, env(safe-area-inset-right, 0px)); bottom: max(20px, env(safe-area-inset-bottom, 0px));
  width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center;
  background: var(--bordeaux); color: #fff; box-shadow: 0 14px 30px -12px rgba(61, 6, 17, .6);
  opacity: 0; transform: translateY(12px); pointer-events: none;
  transition: opacity .3s ease, transform .3s var(--doux), background-color .2s ease;
}
.haut svg { width: 20px; height: 20px; }
.haut.visible { opacity: 1; transform: none; pointer-events: auto; }
.haut:hover { background: var(--bordeaux-nuit); color: #fff; }
.haut:hover svg { transform: translateY(-2px); transition: transform .25s var(--doux); }
body.menu-ouvert .haut { opacity: 0; pointer-events: none; }
@media (max-width: 720px) { .haut { width: 46px; height: 46px; right: 16px; bottom: 16px; } }

/* ==========================================================================
   En-tête de l'accueil, comme la version vitrine :
   transparent sur le héros, puis barre claire flottante au défilement
   ========================================================================== */
.logo { position: relative; display: block; }
.logo__clair { display: none; }

.site-header[data-page="index"] { position: absolute; top: var(--bord); left: var(--bord); right: var(--bord); }
.site-header[data-page="index"]:not(.fixe) .site-header__barre::before { background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
.site-header[data-page="index"]:not(.fixe) .site-header__barre { border-color: transparent; }
.site-header[data-page="index"]:not(.fixe) .logo__sombre { display: none; }
.site-header[data-page="index"]:not(.fixe) .logo__clair { display: block; }
.site-header[data-page="index"]:not(.fixe) .site-header__barre > .btn { background: var(--or); color: var(--bordeaux-nuit); }
.site-header[data-page="index"]:not(.fixe) .site-header__barre > .btn .btn__rond { background: var(--bordeaux-nuit); color: var(--or); }
.site-header[data-page="index"]:not(.fixe) .nav-toggle { background: rgba(255, 255, 255, .16); }
@media (min-width: 1081px) {
  .site-header[data-page="index"]:not(.fixe) .nav > a { color: #fff; opacity: .88; }
  .site-header[data-page="index"]:not(.fixe) .nav > a:hover { opacity: 1; color: #fff; }
}

.site-header[data-page="index"].fixe { position: fixed; top: 10px; animation: entete-descend .45s var(--doux); }
.site-header[data-page="index"].fixe .site-header__barre { height: 64px; }
.site-header[data-page="index"].fixe .site-header__barre::before { box-shadow: 0 0 0 1px var(--trait), 0 18px 40px -24px rgba(31, 10, 14, .45); }
.site-header[data-page="index"].fixe .logo img { height: 34px; }
@keyframes entete-descend { from { transform: translateY(-120%); } to { transform: none; } }

/* Liens du menu : trait qui se dessine au survol */
@media (min-width: 1081px) and (hover: hover) {
  .nav > a { position: relative; }
  .nav > a::after { content: ""; position: absolute; left: 16px; right: 16px; bottom: 5px; height: 1.5px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .35s var(--doux); }
  .nav > a:hover::after { transform: scaleX(1); }
  .nav > a:hover { color: inherit; }
}
@media (prefers-reduced-motion: reduce) { .site-header.fixe { animation: none; } }
.site-header[data-page="index"]:not(.fixe) .site-header__barre { padding-left: 0; padding-right: 0; }
@media (min-width: 1081px) { .site-header[data-page="index"]:not(.fixe) .nav { margin-right: -16px; } }

/* Logo de l'en-tête un peu plus grand */
.logo img { height: 50px; }
.site-header[data-page="index"].fixe .logo img { height: 42px; }
@media (max-width: 720px) {
  .logo img { height: 44px; }
  .site-header[data-page="index"].fixe .logo img { height: 38px; }
}

/* En-tête de section sans surtitre : le texte de droite s'aligne sur le titre */
@media (min-width: 961px) { .section-head:not(:has(.eyebrow)) > :not(.section-head__titre) { grid-row: 1; } }
/* Mentions légales : interligne des titres */
.legal h2 { line-height: 1.2; }

/* Test d'éligibilité : toutes les questions occupent la même case, le bloc garde la hauteur
   de la plus longue et la page ne saute plus d'une réponse à l'autre */
.quiz--pas { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto 1fr; }
.quiz--pas .quiz__q, .quiz--pas .verdict { grid-area: 3 / 1; }
.quiz--pas .quiz__q:not(.actif) { display: block; visibility: hidden; }
.quiz--pas .quiz__q, .quiz--pas .quiz__q.actif, .quiz--pas .verdict.actif { align-self: center; margin: 24px 0 0; padding: 0 0 12px; }
@media (max-width: 960px) {
  .quiz--pas .quiz__q, .quiz--pas .quiz__q.actif, .quiz--pas .verdict.actif { align-self: start; padding: 0; }
}
