/* ---------- polices de la charte ---------- */
  @font-face {
    font-family: "Nexa";
    src: url("assets/nexa-light.otf") format("opentype");
    font-weight: 300; font-style: normal; font-display: swap;
  }
  @font-face {
    font-family: "Nexa";
    src: url("assets/nexa-bold.otf") format("opentype");
    font-weight: 700; font-style: normal; font-display: swap;
  }

  :root {
    --vert:        #023223;
    --vert-clair:  #0a5138;
    --vert-fonce:  #011b13;
    --rose:        #e73358;
    --rose-clair:  #f2506f;
    --rose-fonce:  #c11f42;
    --blanc:       #ffffff;
    --blanc-doux:  #c4d4cd;
    --champ-bord:  rgba(255,255,255,0.28);
    --champ-fond:  rgba(255,255,255,0.06);
    --carte-bord:  rgba(255,255,255,0.10);

    --sans: "Nexa", "Century Gothic", "Futura", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

    --ombre: 0 24px 60px -22px rgba(0,0,0,0.6);
  }

  * { box-sizing: border-box; }
  html { -webkit-text-size-adjust: 100%; }

  /* Le fond couvre tout l'écran même quand la page est plus courte que le
     viewport : ainsi pas de bande vide, et le pied reste juste sous la carte
     (jamais collé au bord bas, où la barre d'outils iOS le masquerait). */
  html {
    background: var(--vert-fonce);
  }

  body {
    margin: 0;
    color: var(--blanc);
    font-family: var(--sans);
    font-weight: 300;
    font-size: 17px;
    line-height: 1.62;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;

    background:
      radial-gradient(140% 62% at 50% -8%, var(--vert-clair) 0%, var(--vert) 42%, var(--vert-fonce) 100%),
      var(--vert-fonce);
    background-repeat: no-repeat;

    /* Page standard : header, carte, pied sont de simples blocs qui se suivent
       en flux normal (pas de flexbox ni de hauteur forcée sur le body). Chaque
       bloc à largeur limitée se centre lui-même avec margin auto. */
  }

  /* ---------- bandeau de marque ---------- */
  .marque {
    width: 100%;
    background: var(--blanc);
    border-bottom: 3px solid var(--rose);
    box-shadow: 0 2px 14px -6px rgba(0,0,0,0.45);
  }
  .marque .dedans {
    max-width: 40rem;
    margin: 0 auto;
    padding: 0.9rem 1.6rem;
  }
  .marque img { height: 2.9rem; width: auto; display: block; }

  /* ---------- ossature ---------- */
  .site {
    width: 100%;
    max-width: 40rem;
    margin: 0 auto;
    padding: 2.25rem 1.4rem 1.5rem;
  }

  .carte {
    background: linear-gradient(180deg, rgba(255,255,255,0.045) 0%, rgba(255,255,255,0.015) 100%);
    border: 1px solid var(--carte-bord);
    border-radius: 18px;
    box-shadow: var(--ombre);
    overflow: hidden;
    width: 100%;
  }

  /* Ruban rose : la signature des affiches, exécutée proprement. */
  .ruban {
    background: linear-gradient(100deg, var(--rose) 0%, var(--rose-clair) 100%);
    padding: 1.15rem 1.6rem 1.2rem;
    position: relative;
  }
  .ruban::after {
    content: "";
    position: absolute; left: 0; right: 0; bottom: -14px; height: 14px;
    background: linear-gradient(180deg, rgba(231,51,88,0.35), transparent);
    pointer-events: none;
  }
  .ruban .kicker {
    display: block;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    /* Blanc, comme sur les affiches. Contraste ≈ 4,2:1 sur le rose : léger écart
       au seuil AA (4,5) pour ce petit texte décoratif — choix esthétique assumé,
       le titre H1 juste en dessous, lui, passe (grand texte). */
    color: #ffffff;
    margin-bottom: 0.35rem;
  }
  .ruban h1,
  .ruban h2 {
    margin: 0;
    font-weight: 700;
    font-size: clamp(1.35rem, 5.6vw, 1.8rem);
    line-height: 1.12;
    letter-spacing: -0.005em;
    text-wrap: balance;
    color: var(--blanc);
  }

  .corps { padding: 1.7rem 1.6rem 1.9rem; display: grid; gap: 1.15rem; }

  .crest {
    width: 6rem; height: auto; display: block;
    margin: 0.2rem auto 0.1rem;
    filter: drop-shadow(0 6px 14px rgba(0,0,0,0.35));
  }

  p { margin: 0; }
  .chapo { color: var(--blanc); }
  .doux  { color: var(--blanc-doux); font-size: 0.95rem; }

  .titre {
    font-weight: 700;
    font-size: clamp(1.3rem, 5.4vw, 1.6rem);
    line-height: 1.16;
    letter-spacing: -0.01em;
    margin: 0.4rem 0 0.2rem;
    text-wrap: balance;
  }

  /* ---------- réflexes ---------- */
  .reflexes { margin: 0.2rem 0 0; padding: 0; list-style: none; display: grid; gap: 0.95rem; }
  .reflexes li {
    position: relative;
    padding-left: 1.9rem;
    color: var(--blanc);
  }
  .reflexes li::before {
    content: "";
    position: absolute; left: 0; top: 0.5em;
    width: 0.75rem; height: 0.75rem;
    background: var(--rose);
    clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
  }

  /* ---------- boutons ---------- */
  .bouton {
    display: inline-flex;
    align-items: center; justify-content: center;
    gap: 0.55rem;
    width: 100%;
    border: 0;
    border-radius: 11px;
    background: linear-gradient(100deg, var(--rose) 0%, var(--rose-clair) 100%);
    color: var(--blanc);
    font-family: var(--sans);
    font-weight: 700;      /* 1.15rem gras = grand texte WCAG : seuil 3:1, atteint */
    font-size: 1.15rem;
    line-height: 1.2;
    padding: 1.05rem 1.35rem;
    cursor: pointer;
    box-shadow: 0 12px 24px -12px rgba(231,51,88,0.7);
    transition: filter 0.15s ease, transform 0.08s ease, box-shadow 0.15s ease;
  }
  .bouton:hover { filter: brightness(1.06); box-shadow: 0 16px 30px -12px rgba(231,51,88,0.8); }
  .bouton:active { transform: translateY(1px); }
  .bouton:focus-visible { outline: 3px solid var(--blanc); outline-offset: 3px; }
  .bouton .fleche { font-size: 1.05em; line-height: 1; }

  /* ---------- formulaire ---------- */
  .champs { display: grid; gap: 1.1rem; }
  .champ { display: grid; gap: 0.4rem; }
  .champ label {
    font-size: 0.78rem; font-weight: 700;
    letter-spacing: 0.06em; text-transform: uppercase;
    color: var(--blanc-doux);
  }
  .champ input {
    font-family: var(--sans); font-weight: 300;
    font-size: 1.05rem; color: var(--blanc);
    background: var(--champ-fond);
    border: 1px solid var(--champ-bord);
    border-radius: 9px;
    padding: 0.8rem 0.9rem;
    width: 100%;
    transition: border-color 0.15s ease, background-color 0.15s ease;
  }
  .champ input::placeholder { color: rgba(196,212,205,0.5); }
  .champ input:hover { border-color: rgba(255,255,255,0.45); }
  .champ input:focus {
    outline: none;
    border-color: var(--rose-clair);
    background: rgba(255,255,255,0.10);
    box-shadow: 0 0 0 3px rgba(231,51,88,0.25);
  }
  .obligatoire { font-size: 0.82rem; color: var(--blanc-doux); margin-top: -0.15rem; }

  /* ---------- pied ---------- */
  .pied {
    width: 100%;
    max-width: 40rem;
    margin: 0 auto;
    padding: 1.4rem 1.6rem 2.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .pied img { height: 2.7rem; width: auto; display: block; opacity: 0.96; }

  /* ---------- transition d'étape ---------- */
  .etape[hidden] { display: none !important; }
  .etape { animation: entree 0.4s cubic-bezier(0.22, 0.61, 0.36, 1) both; }
  @keyframes entree {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: none; }
  }
  @media (prefers-reduced-motion: reduce) {
    .etape { animation: none; }
    .bouton { transition: none; }
    body { background-attachment: scroll; }
  }

  @media (max-width: 30rem) {
    .site { padding-top: 1.6rem; }
  }
