/* Communauté épif : styles des écrans.
   Charte : /workspace/epif-brandbook (nuancier du board, Albert Sans seule, pilules, verre, jamais d'angle vif).
   Bases 21st portées en CSS natif : Sign Up Form (28332), pilule avatars + libellé (7334),
   Sidebar avec carte en pied (28489), Styled Radio Group (28307). */

@font-face {
  font-family: "Albert Sans"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(fonts/albert-sans.woff2) format("woff2");
}

:root {
  /* nuancier du board */
  --lime: #A1E04D; --foret: #152C12; --blanc: #FFFFFF; --rosee: #F2FEE2; --ambre: #F7D576;
  --sousbois: #284018; --mousse: #385030; --pousse: #E6F68A;
  --doux: #C3D3B6;            /* texte secondaire sur fond sombre */
  --alerte: #FFB4A6;
  --whatsapp: #25D366;

  --grad-lime: linear-gradient(100deg, #A1E04D 0%, #C2EA62 55%, #E6F68A 100%);
  --grad-titre: linear-gradient(100deg, #A1E04D 0%, #D5EE78 48%, #F7D576 100%); /* lime vers ambre : le dégradé du funnel, aux couleurs du board */
  --grad-sousbois: linear-gradient(160deg, #2E4A1C 0%, #233E17 55%, #152C12 100%);
  --verre: linear-gradient(160deg, rgba(242, 254, 226, .15), rgba(242, 254, 226, .06));
  --trait: rgba(242, 254, 226, .16);

  /* rayons : planche > verre > champ > pilule */
  --r-board: 28px; --r-glass: 22px; --r-champ: 16px; --r-pill: 999px;

  --font: "Albert Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --ressort: cubic-bezier(.3, 1.3, .45, 1);
  --haut: 68px;
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; min-height: 100svh;
  background: var(--foret); color: var(--rosee);
  font: 400 1.0625rem/1.55 var(--font); font-kerning: normal;
  -webkit-font-smoothing: antialiased;
}
/* le fond « sous-bois » du board, fixe derrière la page */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -2;
  background: radial-gradient(80% 70% at 92% 0%, rgba(125, 170, 70, .34), transparent 62%), var(--grad-sousbois);
}
img, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }
h1, h2, h3, p, ul, figure { margin: 0; }
h1, h2, h3 { font-size: inherit; font-weight: inherit; }
ul { padding: 0; list-style: none; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 1px; }
:focus-visible { outline: 3px solid var(--rosee); outline-offset: 3px; }
::selection { background: var(--lime); color: var(--foret); }
[tabindex="-1"]:focus { outline: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.i { flex: none; width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Le grand logo en filigrane, comme sur les planches sombres du board */
.filigrane {
  position: fixed; z-index: -1; left: -12vw; bottom: -30vh;
  width: min(1040px, 120vw); aspect-ratio: 1671 / 1014;
  background: rgba(242, 254, 226, .035);
  -webkit-mask: url(img/epif-logo.svg) center / contain no-repeat; mask: url(img/epif-logo.svg) center / contain no-repeat;
  pointer-events: none;
}

/* Boutons : des pilules. L'action principale est pleine, en dégradé lime, une seule par écran. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 52px; padding: 0 1.5em; border: 0; border-radius: var(--r-pill);
  font-size: 1rem; font-weight: 600; line-height: 1; text-decoration: none; white-space: nowrap;
  cursor: pointer; transition: transform .15s ease, background-color .2s, filter .2s;
}
.btn:active { transform: scale(.97); }
.btn--lime {
  background: var(--grad-lime); color: var(--foret);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 10px 22px -12px rgba(98, 150, 30, .9);
}
.btn--lime:hover { filter: brightness(1.05) saturate(1.08); }
.btn--verre {
  background: rgba(242, 254, 226, .12); color: var(--rosee);
  box-shadow: inset 0 0 0 1px rgba(242, 254, 226, .2);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.btn--verre:hover { background: rgba(242, 254, 226, .2); }
.btn--bloc { width: 100%; }
.btn--petit { min-height: 44px; padding: 0 1.15em; font-size: .9375rem; }
.btn[aria-busy="true"] { pointer-events: none; filter: saturate(.7); opacity: .85; }
.btn .i-wa { width: 1.25em; height: 1.25em; }
.btn--verre .i-wa { color: var(--whatsapp); }
.lien {
  padding: 0; border: 0; background: none; color: var(--doux);
  font-size: .875rem; font-weight: 600; text-decoration: underline; text-underline-offset: .2em;
}
.lien:hover { color: var(--rosee); }

/* Verre sombre du board */
.verre {
  border: 1px solid var(--trait); border-radius: var(--r-glass);
  background: var(--verre);
  box-shadow: inset 0 1px 0 rgba(242, 254, 226, .14), 0 28px 50px -30px rgba(0, 0, 0, .6);
  -webkit-backdrop-filter: blur(16px) saturate(1.2); backdrop-filter: blur(16px) saturate(1.2);
}

/* Contour en dégradé lime vers ambre (le « brandé » des widgets) */
.contour { position: relative; }
.contour::before {
  content: ""; position: absolute; inset: 0; padding: 1.5px; border-radius: inherit;
  background: linear-gradient(110deg, rgba(161, 224, 77, .95), rgba(247, 213, 118, .5) 55%, rgba(242, 254, 226, .22));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  pointer-events: none;
}

/* Bulles : visages qui se chevauchent, cerclés de lime */
.bulles { display: flex; flex: none; }
.bulles img {
  width: var(--t, 38px); height: var(--t, 38px); border-radius: 50%; object-fit: cover;
  border: 2px solid #1D3516; background: var(--mousse);
  box-shadow: 0 0 0 1.5px rgba(161, 224, 77, .9);
}
.bulles img + img { margin-left: calc(var(--t, 38px) * -.27); }

/* Widget de preuve : celui du funnel, retravaillé */
.preuve {
  display: inline-flex; align-items: center; gap: 12px; max-width: 100%;
  font-size: .9375rem; font-weight: 600; line-height: 1.2; text-align: left;
}
.preuve strong { color: var(--lime); font-weight: 800; }
.preuve > span:last-child { white-space: nowrap; }
@media (max-width: 420px) { .preuve { --t: 30px; gap: 9px; font-size: .8125rem; } }
@media (max-width: 371px) { .preuve > span:last-child { max-width: 10.8em; white-space: normal; } }

/* ───────── Écran 1 : connexion ou création de compte ───────── */
.auth {
  display: grid; justify-items: center; align-content: start;
  width: min(100% - 32px, 660px); margin-inline: auto;
  padding: clamp(26px, 6vh, 60px) 0 48px; text-align: center;
}
.auth__logo { width: 96px; }
.auth__logo svg { width: 100%; height: auto; overflow: visible; }
/* La feuille se pose une fois au chargement : le seul mouvement gratuit de l'écran */
.feuille { transform-box: fill-box; transform-origin: 8% 90%; animation: feuille-pose 1.5s cubic-bezier(.2, .75, .25, 1) .2s both; }
@keyframes feuille-pose {
  0% { opacity: 0; transform: translate(-180px, -700px) rotate(-46deg); }
  25% { opacity: 1; }
  58% { transform: translate(16px, 14px) rotate(9deg); }
  78% { transform: translate(-5px, -4px) rotate(-3deg); }
  100% { opacity: 1; transform: none; }
}
.auth .preuve { margin-top: clamp(22px, 4.2vh, 36px); }
.titre {
  margin-top: 20px;
  font-size: clamp(1.75rem, 7.7vw, 3.75rem); font-weight: 800; line-height: 1; letter-spacing: -.04em;
  text-wrap: balance;
}
.titre__grad {
  padding-block: .1em;
  background: var(--grad-titre); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.nowrap { white-space: nowrap; }
.drapeau {
  display: inline-block; width: .7em; height: .47em; margin-left: .2em; vertical-align: .1em;
  border-radius: .1em; overflow: hidden; transform: rotate(-4deg);
  box-shadow: 0 0 0 1.5px rgba(242, 254, 226, .28), 0 8px 16px -8px rgba(0, 0, 0, .7);
}
.chapo {
  margin-top: 16px; max-width: 31ch; color: var(--doux);
  font-size: clamp(1.0625rem, 1rem + .5vw, 1.25rem); line-height: 1.4; text-wrap: balance;
}
.auth__carte {
  width: min(100%, 440px); margin-top: clamp(24px, 4.4vh, 38px); padding: 18px;
  border-radius: var(--r-board); text-align: left;
}

/* Deux onglets, une pastille en verre qui glisse (le lime reste au bouton d'action) */
.seg {
  position: relative; display: grid; grid-template-columns: 1fr 1fr; padding: 5px;
  border-radius: var(--r-pill); background: rgba(12, 27, 10, .5);
  box-shadow: inset 0 0 0 1px rgba(242, 254, 226, .1);
}
.seg__pastille {
  position: absolute; top: 5px; bottom: 5px; left: 5px; width: calc(50% - 5px);
  border-radius: var(--r-pill); background: rgba(242, 254, 226, .14);
  box-shadow: inset 0 0 0 1px rgba(242, 254, 226, .22), 0 8px 18px -12px rgba(0, 0, 0, .8);
  transition: transform .38s var(--ressort);
}
.seg[data-actif="creation"] .seg__pastille { transform: translateX(100%); }
.seg__onglet {
  position: relative; z-index: 1; min-height: 46px; padding: 0 8px; border: 0;
  border-radius: var(--r-pill); background: none; color: var(--doux);
  font-size: .9375rem; font-weight: 600; transition: color .2s;
}
.seg__onglet:hover, .seg__onglet[aria-selected="true"] { color: var(--rosee); }

.form { display: grid; gap: 14px; margin-top: 18px; }
.form__titre { font-size: 1.25rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
.form__texte { margin-top: -6px; color: var(--doux); font-size: .9375rem; line-height: 1.45; }
.champ { display: grid; gap: 7px; }
.champ label { color: var(--doux); font-size: .875rem; font-weight: 600; }
.champ__zone { position: relative; }
.champ input:not(.iti-search) {
  width: 100%; height: 54px; padding: 0 16px;
  border: 1px solid rgba(242, 254, 226, .18); border-radius: var(--r-champ);
  background: rgba(12, 27, 10, .5); color: var(--rosee); font-size: 1rem;
  transition: border-color .2s, box-shadow .2s;
}
.champ input:not(.iti-search)::placeholder { color: rgba(195, 211, 182, .5); }
.champ input:not(.iti-search):hover { border-color: rgba(242, 254, 226, .32); }
.champ input:not(.iti-search):focus-visible { outline: 0; border-color: var(--lime); box-shadow: 0 0 0 4px rgba(161, 224, 77, .22); }
.champ input:not(.iti-search):-webkit-autofill { -webkit-text-fill-color: var(--rosee); box-shadow: 0 0 0 100px #17300F inset; caret-color: var(--rosee); }
.champ--mdp input { padding-right: 58px; }
.champ__oeil {
  position: absolute; right: 5px; top: 5px; display: grid; place-items: center;
  width: 44px; height: 44px; border: 0; border-radius: 12px; background: none; color: var(--doux);
}
.champ__oeil:hover { background: rgba(242, 254, 226, .08); color: var(--rosee); }
.champ__oeil .i { width: 20px; height: 20px; }
.champ__aide { color: var(--doux); font-size: .8125rem; }
.champ__erreur, .form__erreur { color: var(--alerte); font-size: .8125rem; font-weight: 600; }
.champ[data-invalide] input:not(.iti-search) { border-color: var(--alerte); }
.champ[data-invalide] .champ__aide { display: none; }
/* Téléphone : drapeau + indicatif (intl-tel-input 18.2.1, mêmes réglages que le formulaire pro.owan.fr), version sombre */
.iti:not(.iti--container) { display: block; width: 100%; } /* sur téléphone, la liste plein écran (.iti--container) garde ses marges */
.iti__selected-flag { padding: 0 10px 0 16px; border-right: 1px solid rgba(242, 254, 226, .14); border-radius: var(--r-champ) 0 0 var(--r-champ); background: transparent !important; }
.iti__selected-flag:hover, .iti__selected-flag:focus { background: rgba(242, 254, 226, .05) !important; }
.iti--separate-dial-code .iti__selected-dial-code { color: var(--rosee); font-size: 1rem; font-weight: 500; }
.iti__arrow { border-top-color: var(--doux); }
.iti__arrow--up { border-top: none; border-bottom-color: var(--doux); }
.iti__country-list {
  z-index: 1000; max-height: 260px; overflow-y: auto; overscroll-behavior: contain; padding: 0 6px 6px;
  border: 1px solid var(--trait); border-radius: 14px; background: #1E3718; color: var(--rosee);
  box-shadow: 0 24px 44px -18px rgba(0, 0, 0, .8); font-family: var(--font); font-size: .9375rem; text-align: left;
}
.iti-mobile .iti--container { border-radius: 14px; box-shadow: 0 0 0 100vmax rgba(0, 0, 0, .55); } /* voile derrière la liste plein écran */
.iti__country { padding: 8px; border-radius: 9px; }
.iti__country.iti__highlight { background: rgba(242, 254, 226, .09); }
.iti__dial-code { color: var(--doux); }
.iti__divider { border-bottom-color: var(--trait); }
.iti-search-wrap { position: sticky; top: 0; z-index: 3; padding: 6px 0 8px; background: #1E3718; list-style: none; }
.iti-search {
  display: block; width: 100%; height: 42px; padding: 0 12px !important; /* la bibliothèque pose son propre retrait à gauche */
  border: 1px solid rgba(242, 254, 226, .2); border-radius: 10px; background: rgba(12, 27, 10, .5);
  color: var(--rosee); font: 400 1rem var(--font); outline: none;
}
.iti-search:focus { border-color: var(--lime); }
.iti-search::placeholder { color: rgba(195, 211, 182, .6); }
.iti-sans-resultat { padding: 12px; color: var(--doux); font-size: .875rem; text-align: center; list-style: none; }
.form__oubli { justify-self: end; margin-top: -4px; }
.form .btn { margin-top: 4px; }
.form__retour { justify-self: center; min-height: 44px; }
.legal { color: var(--doux); font-size: .8125rem; line-height: 1.45; text-align: center; text-wrap: balance; }
.form__ok {
  display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--r-champ);
  background: rgba(161, 224, 77, .12); box-shadow: inset 0 0 0 1px rgba(161, 224, 77, .35);
  font-size: .9375rem; line-height: 1.4;
}
.form__ok .i { margin-top: .15em; color: var(--lime); stroke-width: 3; }
.panneau:not([hidden]) { animation: monte .3s ease both; }
@media (max-width: 520px) {
  .auth { padding-top: 22px; }
  .auth__logo { width: 78px; }
  .auth .preuve { margin-top: 18px; }
  .titre { margin-top: 16px; }
  .chapo { margin-top: 12px; }
  .auth__carte { margin-top: 22px; padding: 16px; }
  .form { gap: 12px; margin-top: 16px; }
  .champ input:not(.iti-search) { height: 52px; }
}
@keyframes monte { from { opacity: 0; transform: translateY(6px); } }

/* ───────── Écran 2 : onboarding ───────── */
.flow { width: min(100% - 32px, 780px); margin-inline: auto; padding: 12px 0 56px; }
.flow__haut { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 64px; }
.flow__retour {
  justify-self: start; display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  padding: 0 16px 0 12px; border: 0; border-radius: var(--r-pill); background: none;
  color: var(--doux); font-size: .9375rem; font-weight: 600;
}
.flow__retour:hover { background: rgba(242, 254, 226, .08); color: var(--rosee); }
.flow__logo { width: 70px; }
.etapes { display: grid; justify-items: center; gap: 10px; margin-top: clamp(10px, 2.6vh, 26px); }
.etapes__barres { display: flex; gap: 6px; }
.etapes__barres i { width: 36px; height: 5px; border-radius: 99px; background: rgba(242, 254, 226, .18); transition: background-color .3s; }
.etapes__barres i.fait { background: var(--lime); }
.etapes p { color: var(--doux); font-size: .875rem; font-weight: 600; }
.flow h1 {
  margin-top: clamp(14px, 2.6vh, 24px); text-align: center; text-wrap: balance;
  font-size: clamp(1.75rem, 1.1rem + 3.2vw, 2.875rem); font-weight: 800; line-height: 1.04; letter-spacing: -.035em;
}
.flow h1 span { color: var(--doux); }
.etape:not([hidden]) { animation: monte .35s ease both; }

.choix { display: grid; gap: 14px; margin-top: clamp(22px, 4vh, 42px); }
/* Carte de choix : toute la carte est le bouton, toucher = étape suivante */
.carte-choix {
  position: relative; display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; align-items: center; gap: 14px;
  width: 100%; padding: 12px 14px 12px 12px; text-align: left; color: inherit;
  border: 1px solid var(--trait); border-radius: var(--r-board); background: var(--verre);
  box-shadow: inset 0 1px 0 rgba(242, 254, 226, .14), 0 28px 50px -30px rgba(0, 0, 0, .6);
  -webkit-backdrop-filter: blur(16px) saturate(1.2); backdrop-filter: blur(16px) saturate(1.2);
  transition: transform .2s ease, border-color .2s, background .2s;
}
/* la photo est découpée en feuille, comme le veut la charte */
.carte-choix__photo { aspect-ratio: 1; overflow: hidden; border-radius: 14px 56% 14px 56% / 14px 62% 14px 62%; }
.carte-choix:nth-child(2) .carte-choix__photo { border-radius: 56% 14px 56% 14px / 62% 14px 62% 14px; }
.carte-choix__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.carte-choix__titre { display: block; font-size: 1.1875rem; font-weight: 800; line-height: 1.1; letter-spacing: -.02em; }
.carte-choix__texte { display: block; margin-top: 6px; color: var(--doux); font-size: .9375rem; line-height: 1.35; }
.carte-choix__fleche {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  background: rgba(242, 254, 226, .12); box-shadow: inset 0 0 0 1px rgba(242, 254, 226, .2);
  transition: background .2s, color .2s, transform .2s;
}
.carte-choix__fleche .i { width: 20px; height: 20px; }
.carte-choix:hover, .carte-choix:focus-visible { border-color: rgba(161, 224, 77, .6); }
.carte-choix:hover { transform: translateY(-2px); }
.carte-choix:hover img { transform: scale(1.05); }
.carte-choix:hover .carte-choix__fleche, .carte-choix:focus-visible .carte-choix__fleche,
.carte-choix.est-choisi .carte-choix__fleche { background: var(--grad-lime); color: var(--foret); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5); }
.carte-choix:hover .carte-choix__fleche { transform: translateX(3px); }
.carte-choix.est-choisi { border-color: var(--lime); background: linear-gradient(160deg, rgba(161, 224, 77, .22), rgba(161, 224, 77, .06)); }
@media (min-width: 700px) {
  .choix { grid-template-columns: 1fr 1fr; gap: 18px; }
  .carte-choix { grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 18px 12px; padding: 14px 18px 20px 14px; }
  .carte-choix__photo { grid-column: 1 / -1; aspect-ratio: 5 / 4; margin-right: -4px; border-radius: 18px 44% 18px 44% / 18px 56% 18px 56%; }
  .carte-choix:nth-child(2) .carte-choix__photo { border-radius: 44% 18px 44% 18px / 56% 18px 56% 18px; }
  .carte-choix__corps { padding-left: 8px; }
  .carte-choix__titre { font-size: 1.5rem; }
  .carte-choix__fleche { width: 50px; height: 50px; }
}

/* Étape 2 : texte, faux téléphone, actions. Téléphone : la seule mise en scène de l'écran. */
.rejoindre { display: grid; justify-items: center; gap: 24px; margin-top: clamp(14px, 2.6vh, 28px); text-align: center; }
.rejoindre__texte { display: grid; justify-items: center; }
.rejoindre h1 { margin-top: 0; text-align: inherit; }
.rejoindre__texte p { margin-top: 12px; max-width: 30ch; color: var(--doux); font-size: clamp(1.0625rem, 1rem + .4vw, 1.1875rem); line-height: 1.45; text-wrap: balance; }
/* sur téléphone, le bouton reste collé en bas pendant qu'on regarde l'aperçu */
.rejoindre__actions {
  position: sticky; bottom: 0; z-index: 2; display: grid; justify-items: center; width: 100%;
  padding: 18px 0 max(10px, env(safe-area-inset-bottom));
  background: linear-gradient(180deg, rgba(21, 44, 18, 0), #152C12 32%);
}
.rejoindre__actions .btn { width: min(100%, 420px); min-height: 56px; }
.rejoindre__membres { margin-top: 4px; color: var(--doux); font-size: .875rem; font-weight: 500; line-height: 1.2; }

.tel {
  position: relative; width: 320px; height: 690px; padding: 10px; flex: none;
  border-radius: 50px; background: #0A100B;
  box-shadow: 0 0 0 1px rgba(242, 254, 226, .2), inset 0 0 0 1px rgba(242, 254, 226, .07), 0 50px 90px -40px rgba(0, 0, 0, .9);
}
.tel::before { /* lueur lime derrière le téléphone */
  content: ""; position: absolute; z-index: -1; inset: -12% -34%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(161, 224, 77, .2), transparent);
}
.tel::after { /* l'îlot de la caméra */
  content: ""; position: absolute; top: 21px; left: 50%; width: 88px; height: 26px; translate: -50% 0;
  border-radius: 20px; background: #000;
}
.tel__ecran {
  display: flex; flex-direction: column; height: 100%; overflow: hidden; border-radius: 40px;
  background: #0B141A; color: #E9EDEF; text-align: left;
  font: 400 13px/1.38 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
.tel__statut { display: flex; align-items: center; justify-content: space-between; height: 42px; padding: 6px 24px 0 34px; background: #1F2C34; font-size: 14.5px; font-weight: 600; }
.wa-haut { display: flex; align-items: center; gap: 8px; padding: 2px 12px 8px 6px; background: #1F2C34; }
.wa-haut__retour { width: 24px; height: 24px; fill: none; stroke: #E9EDEF; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.wa-haut img { width: 36px; height: 36px; border-radius: 50%; }
.wa-haut strong { display: block; font-size: 15.5px; font-weight: 600; line-height: 1.2; }
.wa-haut span { display: block; color: #8696A0; font-size: 12.5px; }
.wa-fil {
  flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 3px; min-height: 0; overflow: hidden;
  padding: 8px 10px 12px;
  background: radial-gradient(rgba(233, 237, 239, .04) 1px, transparent 1.3px) 0 0 / 15px 15px, #0B141A;
}
.wa-jour { align-self: center; margin: 2px 0 4px; padding: 4px 10px; border-radius: 8px; background: #182229; color: #8696A0; font-size: 11.5px; font-weight: 500; }
.wa-msg { display: flex; align-items: flex-start; gap: 6px; }
.wa-msg__photo { flex: none; width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.wa-msg--suite { padding-left: 34px; }
.wa-bulle { position: relative; max-width: 232px; padding: 5px 9px 17px; border-radius: 3px 10px 10px 10px; background: #202C33; box-shadow: 0 1px .5px rgba(0, 0, 0, .3); }
.wa-msg--suite .wa-bulle { border-radius: 10px; }
.wa-nom { display: block; margin-bottom: 1px; color: #06CF9C; font-size: 12.5px; font-weight: 600; }
.wa-heure { position: absolute; right: 8px; bottom: 3px; color: #8696A0; font-size: 10.5px; }
.wa-lien { color: #53BDEB; text-decoration: underline; text-underline-offset: 2px; }
.wa-reac {
  position: relative; z-index: 1; align-self: flex-start; margin: -7px 0 3px 44px; padding: 1px 7px 2px;
  border-radius: 12px; background: #202C33; box-shadow: 0 0 0 2px #0B141A; font-size: 11.5px;
}
.wa-sondage { padding-bottom: 0; }
.wa-q { font-weight: 600; }
.wa-sondage ul { display: grid; gap: 9px; margin: 9px 0 4px; }
.wa-sondage li { display: grid; grid-template-columns: 16px minmax(0, 1fr) auto; align-items: center; gap: 4px 8px; font-size: 12.5px; }
.wa-sondage li b { color: #8696A0; font-weight: 500; }
.wa-sondage li::after { /* la barre des votes */
  content: ""; grid-column: 2 / 4; height: 5px; border-radius: 3px;
  background: linear-gradient(90deg, #00A884 var(--p), #374248 var(--p));
}
.wa-coche { width: 16px; height: 16px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px #8696A0; }
.choisi .wa-coche { box-shadow: none; background: #00A884 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B141A' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 10px no-repeat; }
.wa-sondage .wa-heure { position: static; display: block; text-align: right; }
.wa-votes { margin: 4px -9px 0; padding: 6px 0 7px; border-top: 1px solid rgba(134, 150, 160, .18); color: #00A884; font-size: 12.5px; font-weight: 500; text-align: center; }
.wa-bas { padding: 11px 16px 20px; background: #1F2C34; color: #8696A0; font-size: 12px; text-align: center; }
/* les messages arrivent un par un, comme dans le groupe */
.wa-pop { animation: wa-pop .5s var(--ressort) both; animation-delay: var(--d, 0s); }
@keyframes wa-pop { from { opacity: 0; transform: translateY(12px) scale(.96); } }

@media (max-width: 759px) {
  .tel { zoom: .8; }
  .tel::before { inset: -8% -12%; }
  .rejoindre__actions { width: calc(100% + 32px); margin-inline: -16px; padding-inline: 16px; padding-bottom: max(18px, env(safe-area-inset-bottom)); } /* la bande du bouton prend toute la largeur */
  .flow:has(#etape-whatsapp:not([hidden])) { padding-bottom: 0; } /* la bande descend jusqu'en bas de la page */
}
@media (max-width: 370px) {
  .tel { zoom: .7; }
}
@media (min-width: 760px) {
  .rejoindre {
    grid-template-columns: auto minmax(0, 380px); grid-template-rows: 1fr 1fr; justify-content: center;
    column-gap: clamp(44px, 6vw, 80px); row-gap: 0; text-align: left;
  }
  .tel { grid-column: 1; grid-row: 1 / 3; }
  .rejoindre__texte { grid-column: 2; grid-row: 1; align-self: end; justify-items: start; }
  .rejoindre__texte p { text-wrap: pretty; }
  /* le bloc prend la largeur du bouton : la phrase des membres se centre dessous */
  .rejoindre__actions { grid-column: 2; grid-row: 2; align-self: start; justify-self: start; justify-items: center; width: auto; position: static; padding: 26px 0 0; background: none; }
  .rejoindre__actions .btn { width: auto; min-width: 300px; }
}

/* ───────── Écran 3 : l'espace (accueil, replays, témoignages) ───────── */
.haut {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  height: var(--haut); padding: 0 clamp(14px, 2.2vw, 26px);
  background: rgba(21, 44, 18, .72); border-bottom: 1px solid rgba(242, 254, 226, .1);
  -webkit-backdrop-filter: blur(18px) saturate(1.3); backdrop-filter: blur(18px) saturate(1.3);
}
.haut__logo img { width: auto; height: 36px; }
.haut__actions { display: flex; align-items: center; gap: 6px; }
.btn--wa .court { display: none; }
/* Le compte : en bas de la colonne, sous la carte d'appel. « Se déconnecter » apparaît au survol,
   au toucher (classe .ouvert posée par le script) ou au clavier (:focus-within). */
.compte { position: relative; margin-top: 10px; padding-top: 10px; border-top: 1px solid rgba(242, 254, 226, .1); }
.compte__bouton {
  display: flex; align-items: center; gap: 10px; width: 100%; min-height: 48px; padding: 6px 10px 6px 6px;
  border: 0; border-radius: 14px; background: none; color: var(--rosee); text-align: left;
  transition: background-color .2s;
}
.compte__bouton:hover, .compte.ouvert .compte__bouton { background: rgba(242, 254, 226, .08); }
.compte__rond {
  display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 50%;
  background: rgba(161, 224, 77, .16); box-shadow: inset 0 0 0 1px rgba(161, 224, 77, .45); color: var(--lime);
}
.compte__rond .i { width: 18px; height: 18px; }
.compte__nom { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .9375rem; font-weight: 700; }
.compte__chevron { width: 16px; height: 16px; color: var(--doux); transform: rotate(180deg); transition: transform .2s; }
.compte:hover .compte__chevron, .compte:focus-within .compte__chevron, .compte.ouvert .compte__chevron { transform: none; }
/* le menu s'ouvre au-dessus ; sa marge basse fait partie du compte, le survol ne se perd pas en route */
.compte__menu {
  position: absolute; z-index: 5; left: 0; right: 0; bottom: calc(100% - 10px); padding-bottom: 6px;
  opacity: 0; visibility: hidden; transform: translateY(4px);
  transition: opacity .15s, transform .15s, visibility 0s .15s;
}
.compte:hover .compte__menu, .compte:focus-within .compte__menu, .compte.ouvert .compte__menu {
  opacity: 1; visibility: visible; transform: none; transition: opacity .15s, transform .15s;
}
.compte__sortie {
  display: flex; align-items: center; gap: 10px; width: 100%; min-height: 46px; padding: 0 14px;
  border: 1px solid var(--trait); border-radius: 14px; background: #1E3718; color: var(--rosee);
  box-shadow: 0 18px 34px -16px rgba(0, 0, 0, .75); font-size: .9375rem; font-weight: 600; text-align: left;
}
.compte__sortie:hover { background: #26431E; }
.compte__sortie .i { color: var(--doux); }
.compte--pied { display: none; }
.flottant {
  position: absolute; z-index: 30; min-width: 220px; padding: 6px;
  border: 1px solid var(--trait); border-radius: 18px; background: #1E3718;
  box-shadow: 0 24px 44px -18px rgba(0, 0, 0, .75);
  animation: monte .18s ease both;
}
.flottant button, .flottant a {
  display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; padding: 0 12px;
  border: 0; border-radius: 12px; background: none; color: var(--rosee);
  font-size: .9375rem; font-weight: 600; text-align: left; text-decoration: none;
}
.flottant button:hover, .flottant a:hover { background: rgba(242, 254, 226, .09); }
.flottant .i { color: var(--doux); }

.coque { display: grid; grid-template-columns: 296px minmax(0, 1fr); align-items: start; }
.cote {
  position: sticky; top: var(--haut); display: flex; flex-direction: column;
  height: calc(100vh - var(--haut)); height: calc(100svh - var(--haut));
  padding: 26px 16px 16px; border-right: 1px solid rgba(242, 254, 226, .08); overflow-y: auto;
}
.communaute { padding: 0 12px; }
.communaute span { display: block; color: var(--doux); font-size: .875rem; font-weight: 600; }
.communaute strong { display: block; margin-top: 1px; font-size: 1.875rem; font-weight: 800; line-height: 1.05; letter-spacing: -.04em; }
.menu { position: relative; display: grid; gap: 4px; margin-top: 22px; }
.menu a {
  position: relative; z-index: 1; display: flex; align-items: center; gap: 12px; min-height: 46px; padding: 0 12px;
  border-radius: 14px; color: var(--doux); font-size: .9375rem; font-weight: 600; text-decoration: none;
  transition: color .2s;
}
.menu a .i { width: 20px; height: 20px; transition: color .2s; }
.menu a:hover, .menu a[aria-current="page"] { color: var(--rosee); }
.menu a[aria-current="page"] .i { color: var(--lime); }
/* la pastille active glisse d'une ligne à l'autre */
.menu__pastille {
  position: absolute; left: 0; right: 0; top: 0; height: 46px; border-radius: 14px;
  background: rgba(242, 254, 226, .11); box-shadow: inset 0 0 0 1px rgba(242, 254, 226, .18);
  transition: transform .34s var(--ressort);
}

/* La carte d'appel fait partie de la colonne : en bas à gauche, toujours visible */
.appel {
  margin-top: auto; padding: 16px; border-radius: var(--r-glass);
  background: linear-gradient(150deg, rgba(161, 224, 77, .2), rgba(161, 224, 77, .06) 55%, rgba(247, 213, 118, .1));
  box-shadow: inset 0 1px 0 rgba(242, 254, 226, .12), 0 24px 44px -28px rgba(0, 0, 0, .7);
}
.appel .bulles { --t: 42px; }
.appel h2 { margin-top: 14px; font-size: 1.0625rem; font-weight: 700; line-height: 1.25; letter-spacing: -.01em; text-wrap: balance; }
.appel p { margin-top: 6px; color: var(--doux); font-size: .875rem; line-height: 1.4; }
.appel .btn { margin-top: 14px; }
.cote__espace { flex: 1 0 18px; }

.contenu { min-width: 0; max-width: 1060px; padding: clamp(22px, 3vw, 38px) clamp(16px, 3.2vw, 46px) 72px; }
.vue:not([hidden]) { animation: monte .3s ease both; }
.vue > h1 { margin-bottom: clamp(18px, 2.4vw, 26px); font-size: clamp(1.75rem, 1.2rem + 2vw, 2.5rem); font-weight: 800; line-height: 1.05; letter-spacing: -.035em; }
.vue__texte { max-width: 52ch; margin: -10px 0 clamp(18px, 2.4vw, 26px); color: var(--doux); }
.bloc + .bloc { margin-top: clamp(30px, 4.4vw, 48px); }
.bloc__tete { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.bloc__tete h2 { font-size: 1.375rem; font-weight: 800; letter-spacing: -.025em; }

.live { display: grid; grid-template-columns: minmax(0, 280px) minmax(0, 1fr); align-items: center; gap: clamp(16px, 2.6vw, 28px); padding: 12px; border-radius: var(--r-board); }
.live__corps { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 20px; padding: 4px 10px 4px 0; }
.agenda { position: relative; flex: none; }
.live__date { font-size: clamp(1.375rem, 1.05rem + 1.3vw, 2rem); font-weight: 800; line-height: 1.08; letter-spacing: -.03em; text-wrap: balance; }
.agenda .flottant { right: 0; top: calc(100% + 8px); }
@media (max-width: 620px) {
  .live { grid-template-columns: 1fr; gap: 14px; padding: 10px 10px 16px; }
  .live__corps { padding: 0 8px; }
  .agenda .flottant { right: auto; left: 0; }
}

/* Miniature dessinée en CSS, sur le modèle « slide d'ouverture » de la charte */
.mini {
  position: relative; container-type: inline-size; aspect-ratio: 16 / 9; overflow: hidden; isolation: isolate;
  display: grid; align-content: end; min-width: 0; padding: 7%; border-radius: 18px; color: var(--rosee);
  background: radial-gradient(80% 70% at 92% 0%, rgba(125, 170, 70, .5), transparent 62%), var(--grad-sousbois);
}
.mini::after {
  content: ""; position: absolute; z-index: -1; right: -10%; bottom: -40%; width: 64%; aspect-ratio: 1671 / 1014;
  background: currentColor; opacity: .08;
  -webkit-mask: url(img/epif-logo.svg) center / contain no-repeat; mask: url(img/epif-logo.svg) center / contain no-repeat;
}
.mini__sur { color: var(--lime); font-size: 4.6cqi; font-weight: 700; line-height: 1; }
.mini__titre { max-width: 12.5em; margin-top: 1.8cqi; font-size: 8.6cqi; font-weight: 800; line-height: .98; letter-spacing: -.04em; text-wrap: balance; }
.mini--rosee { background: radial-gradient(60% 55% at 74% 26%, rgba(255, 255, 255, .7), transparent 70%), linear-gradient(180deg, #F2FEE2 0%, #E5F8CD 55%, #C8ED96 100%); color: var(--foret); }
.mini--rosee .mini__sur { color: #3F6C16; }
.mini--ambre { background: linear-gradient(45deg, #F7D474 0%, #F8DC88 45%, #FBF1C6 100%); color: var(--foret); }
.mini--ambre .mini__sur { color: #6A5310; }
.mini--photo { background-size: cover; background-position: center; }
.mini--image { padding: 0; }
.mini--image::after { content: none; }
.mini--image img { width: 100%; height: 100%; object-fit: cover; }
.mini__lecture {
  position: absolute; right: 5cqi; top: 5cqi; display: grid; place-items: center; width: 15cqi; height: 15cqi;
  border-radius: 50%; background: rgba(21, 44, 18, .55); box-shadow: inset 0 0 0 1px rgba(242, 254, 226, .3);
  color: var(--rosee); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transition: background .2s, color .2s;
}
.mini__lecture .i { width: 6cqi; height: 6cqi; margin-left: .6cqi; }

.grille { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 760px) { .grille { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } .grille--derniers > :nth-child(n+4) { display: none; } }
.grille--large { grid-template-columns: 1fr; }
@media (min-width: 700px) { .grille--large { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; } }
.video {
  display: grid; align-content: start; gap: 10px; padding: 9px 9px 13px; color: inherit; text-decoration: none;
  transition: transform .2s ease, border-color .2s;
}
.video:hover { transform: translateY(-2px); border-color: rgba(161, 224, 77, .55); }
.video:hover .mini__lecture { background: var(--lime); color: var(--foret); }
.video__bas { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 5px; }
.video__date { font-size: .9375rem; font-weight: 600; line-height: 1.25; }
.video__voir { flex: none; padding: 7px 13px; border-radius: var(--r-pill); background: rgba(242, 254, 226, .12); box-shadow: inset 0 0 0 1px rgba(242, 254, 226, .2); font-size: .8125rem; font-weight: 600; line-height: 1; }
.video__titre { padding: 0 5px; font-size: 1.0625rem; font-weight: 700; line-height: 1.25; letter-spacing: -.01em; text-wrap: balance; }
@media (max-width: 480px) { .grille:not(.grille--large) .video__voir { display: none; } .video__date { font-size: .875rem; } }

.vide { grid-column: 1 / -1; padding: 22px; color: var(--doux); text-align: center; }

/* Barre d'appel collée en bas : la carte d'appel sur téléphone */
.barre-appel { display: none; }

.message {
  position: fixed; left: 50%; bottom: 24px; z-index: 40; translate: -50% 0; max-width: min(92vw, 460px);
  padding: 13px 20px; border-radius: var(--r-pill); background: #1E3718; border: 1px solid rgba(161, 224, 77, .4);
  box-shadow: 0 24px 44px -18px rgba(0, 0, 0, .75); font-size: .9375rem; font-weight: 600; line-height: 1.3; text-align: center;
  animation: monte .25s ease both;
}

@media (max-width: 899px) {
  .coque { grid-template-columns: minmax(0, 1fr); }
  .cote { position: static; height: auto; padding: 20px 16px 0; border-right: 0; overflow: visible; }
  .communaute { padding: 0 2px; }
  .communaute strong { font-size: 1.75rem; }
  .menu { display: flex; gap: 2px; margin: 14px -16px 0; padding: 2px 16px; overflow-x: auto; scrollbar-width: none; }
  .menu::-webkit-scrollbar { display: none; }
  .menu a { flex: none; gap: 8px; min-height: 44px; padding: 0 14px 0 11px; border-radius: var(--r-pill); }
  .menu a .i { width: 18px; height: 18px; }
  .menu a[aria-current="page"] { background: rgba(242, 254, 226, .12); box-shadow: inset 0 0 0 1px rgba(242, 254, 226, .2); }
  .menu__pastille, .appel, .cote__espace, .cote .compte { display: none; }
  .compte--pied { display: block; margin-top: 40px; }
  .contenu { padding-top: 22px; padding-bottom: 116px; }
  .barre-appel {
    position: fixed; left: 10px; right: 10px; bottom: max(10px, env(safe-area-inset-bottom)); z-index: 15;
    display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 7px 7px 7px 10px;
    border-radius: var(--r-pill); background: rgba(30, 55, 24, .88);
    box-shadow: 0 18px 40px -14px rgba(0, 0, 0, .8);
    -webkit-backdrop-filter: blur(16px) saturate(1.3); backdrop-filter: blur(16px) saturate(1.3);
  }
  .barre-appel .bulles { --t: 36px; }
  .barre-appel .btn { flex: 1; min-height: 46px; }
  .message { bottom: 84px; }
}
@media (max-width: 640px) {
  .btn--wa .long { display: none; }
  .btn--wa .court { display: inline; }
  .btn--wa { padding: 0 1em; }
  .haut__logo img { height: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
}
