/* =========================================================
   Cabinet — tunnel de demande de rappel, complémentaire santé 60+
   Implémentation de la maquette Claude Design
   « Landing Rappel Mutuelle ».
   Couleurs, typographie, échelles et libellés repris tels quels.
   ========================================================= */

:root{
  --fond:        #f6f7f9;
  --blanc:       #ffffff;
  --texte:       #1e2530;
  --titre:       #141b3a;
  --primaire:    #1d3a8f;
  --primaire-h:  #16307a;
  --bandeau:     #152a68;
  --gris:        #454f5c;
  --gris-clair:  #57616e;
  --bord:        #d5d9e0;
  --bord-fort:   #aab2c0;
  --sel:         #e8edf8;
  --badge:       #e2e8f6;
  --info:        #e7eaf1;
  --err-fond:    #f9e7e2;
  --err-bord:    #b8503a;
  --err-txte:    #84301d;
  --consent-brd: #c3cbdd;

  --titrage: "Libre Franklin", Georgia, serif;
  --courant: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*,*::before,*::after{ box-sizing:border-box; }
[hidden]{ display:none !important; }

html{ -webkit-text-size-adjust:100%; }
html,body{ margin:0; padding:0; background:var(--fond); }

body{
  display:flex; flex-direction:column; min-height:100vh;
  font-family:var(--courant); font-size:19px; line-height:1.55;
  color:var(--texte); -webkit-font-smoothing:antialiased;
}

a{ color:var(--primaire); text-decoration:underline; text-underline-offset:2px; }
a:hover{ color:var(--primaire-h); }

:focus-visible{ outline:3px solid var(--primaire); outline-offset:2px; }
legend:focus, legend:focus-visible,
h1:focus, h1:focus-visible{ outline:none; }

@keyframes fadeUp{ from{ opacity:0; transform:translateY(10px); } to{ opacity:1; transform:none; } }
.ecran--anim{ animation:fadeUp .4s ease both; }

@media (prefers-reduced-motion:reduce){
  *{ animation-duration:.01ms !important; transition-duration:.01ms !important; }
}

/* ---------- bandeau ORIAS ---------- */
.bandeau{
  background:var(--bandeau); color:#eef1f8;
  padding:12px 20px; text-align:center;
  font-size:16px; font-weight:600; letter-spacing:.02em; line-height:1.45;
}

/* ---------- colonne ---------- */
main{
  flex:1; width:100%; max-width:680px;
  margin:0 auto; padding:28px 20px 56px;
}

/* ---------- titres ---------- */
h1{
  font-family:var(--titrage); font-weight:800;
  font-size:clamp(26px, 7.2vw, 33px); line-height:1.2;
  margin:0 0 16px; color:var(--titre); text-wrap:pretty;
}
legend{
  font-family:var(--titrage); font-weight:800;
  font-size:clamp(22px, 5.8vw, 25px); line-height:1.25;
  margin:0 0 18px; padding:0; color:var(--titre); text-wrap:pretty;
}
.sous-titre{
  font-family:var(--titrage); font-weight:800;
  font-size:clamp(19px, 5vw, 21px);
  margin:0 0 14px; color:var(--titre);
}
.chapo{ margin:0 0 24px; font-size:20px; color:var(--gris); text-wrap:pretty; }
.chapo--suite{ margin:-14px 0 26px; font-size:17px; color:var(--gris-clair); }
.nowrap{ white-space:nowrap; }

/* ---------- accroche ---------- */
.hero__media{
  width:100%; height:clamp(170px, 40vw, 230px);
  margin-bottom:24px; border-radius:16px; overflow:hidden;
  box-shadow:0 10px 30px rgba(20,27,58,.10);
  background:var(--blanc);
}
/* Le bandeau est très panoramique : un recadrage centré couperait le haut
   des visages. On remonte le point d'ancrage. */
.hero__media img{
  width:100%; height:100%; display:block;
  object-fit:cover; object-position:center 12%;
}
/* Repli si la photo n’est pas encore déposée : aplat de marque, pas une zone cassée. */
.hero__media.est-vide{
  background:linear-gradient(135deg, #1d3a8f 0%, #152a68 55%, #101f4e 100%);
}
.hero__media.est-vide img{ display:none; }

.atouts{ list-style:none; margin:0 0 28px; padding:0; display:flex; flex-direction:column; gap:12px; }
.atouts li{ display:flex; gap:12px; align-items:flex-start; font-weight:600; }
.pastille{
  flex:none; width:28px; height:28px; border-radius:50%;
  background:var(--badge); color:var(--primaire);
  display:flex; align-items:center; justify-content:center;
  font-weight:700; font-size:16px;
}

/* ---------- boutons ---------- */
.btn-principal{
  width:100%; min-height:64px; padding:16px;
  background:var(--primaire); color:var(--blanc);
  border:none; border-radius:14px;
  font-family:inherit; font-size:21px; font-weight:700;
  cursor:pointer; transition:background-color .18s ease;
}
.btn-principal:hover{ background:var(--primaire-h); }

.btn-retour{
  width:100%; margin-top:12px; min-height:52px;
  background:none; border:none; color:var(--primaire);
  font-family:inherit; font-size:18px; font-weight:700;
  cursor:pointer; text-decoration:underline; text-underline-offset:3px;
}
.btn-retour:hover{ color:var(--primaire-h); }

.sous-bouton{ margin:14px 0 0; text-align:center; font-size:16px; color:var(--gris-clair); }
form .sous-bouton{ margin-top:16px; font-size:15px; }

/* ---------- progression ---------- */
.progression{ margin-bottom:26px; }
.progression__tete{
  display:flex; justify-content:space-between; align-items:baseline;
  gap:12px; margin-bottom:8px;
}
.progression__num{ font-weight:700; font-size:17px; color:var(--titre); }
.progression__titre{ font-size:15px; color:var(--gris-clair); text-align:right; }
.progression__piste{
  height:10px; border-radius:99px; background:#e0e3ea; overflow:hidden;
}
.progression__barre{
  height:100%; width:100%; background:var(--primaire);
  transform-origin:left center;
  transition:transform .35s ease;
}

/* ---------- étapes ---------- */
.etape{ border:0; margin:0; padding:0; min-width:0; }

/* ---------- options ---------- */
.options{ display:flex; flex-direction:column; gap:12px; margin-bottom:26px; }

.opt{
  position:relative; display:flex; align-items:center; gap:14px;
  width:100%; min-height:60px; padding:16px 18px;
  background:var(--blanc); border:2px solid var(--bord); border-radius:14px;
  cursor:pointer; font-size:19px; line-height:1.45; color:var(--texte);
  transition:border-color .16s ease, background-color .16s ease;
}
.opt:hover{ border-color:var(--primaire); }
.opt input{ position:absolute; opacity:0; width:1px; height:1px; margin:0; }
.opt:has(input:focus-visible){ outline:3px solid var(--primaire); outline-offset:2px; }
.opt:has(input:checked){ border-color:var(--primaire); background:var(--sel); }

.opt__marque{
  flex:none; width:28px; height:28px; border-radius:50%;
  border:2px solid var(--bord-fort); background:var(--blanc);
  color:var(--blanc); display:flex; align-items:center; justify-content:center;
  font-weight:700; font-size:16px; line-height:1;
  transition:background-color .16s ease, border-color .16s ease;
}
.opt--case .opt__marque{ border-radius:8px; }
.opt:has(input:checked) .opt__marque{
  border-color:var(--primaire); background:var(--primaire);
}
.opt:has(input:checked) .opt__marque::before{ content:"✓"; }

.opt__txt{ text-align:left; }
.opt__txt b{ display:block; font-weight:700; }
.opt__txt small{
  display:block; margin-top:2px;
  font-weight:400; font-size:16px; color:var(--gris-clair); line-height:1.4;
}

/* ---------- champs ---------- */
.etiquette{
  display:block; font-weight:700; font-size:19px;
  margin-bottom:8px; color:var(--titre);
}
.aide{ margin:-4px 0 10px; font-size:16px; color:var(--gris-clair); }
.aide--legende{ margin:-8px 0 18px; font-size:17px; }

.saisie{
  width:100%; padding:16px 18px;
  font-family:inherit; font-size:20px; color:var(--texte);
  background:var(--blanc); border:2px solid var(--bord); border-radius:12px;
  margin-bottom:20px;
  transition:border-color .16s ease, box-shadow .16s ease;
}
.saisie::placeholder{ color:#78818e; }
.saisie:hover{ border-color:var(--bord-fort); }
.saisie:focus{
  outline:3px solid var(--primaire); outline-offset:2px; border-color:var(--primaire);
}
.saisie[aria-invalid="true"]{ border-color:var(--err-bord); background:#fdf7f5; }

/* la dernière saisie avant un sous-titre respire un peu plus */
.saisie + .sous-titre{ margin-top:4px; }

/* ---------- encart d’information ---------- */
.encart{
  background:var(--info); border-radius:12px;
  padding:14px 16px; margin:0 0 20px;
  font-size:16px; color:var(--gris); line-height:1.55;
}

/* ---------- consentement ---------- */
.consentement{
  background:var(--blanc); border:2px solid var(--consent-brd);
  border-radius:14px; padding:18px; margin-bottom:20px;
}
.consentement__case{ display:flex; gap:14px; align-items:flex-start; cursor:pointer; }
.consentement__case input{ position:absolute; opacity:0; width:1px; height:1px; margin:0; }
.consentement__marque{
  flex:none; width:30px; height:30px; margin-top:2px;
  border-radius:8px; border:2px solid #8f99a8; background:var(--blanc);
  color:var(--blanc); display:flex; align-items:center; justify-content:center;
  font-weight:700; font-size:17px; line-height:1;
  transition:background-color .16s ease, border-color .16s ease;
}
.consentement__case:has(input:focus-visible) .consentement__marque{
  outline:3px solid var(--primaire); outline-offset:2px;
}
.consentement__case:has(input:checked) .consentement__marque{
  border-color:var(--primaire); background:var(--primaire);
}
.consentement__case:has(input:checked) .consentement__marque::before{ content:"✓"; }
.consentement__case:has(input[aria-invalid="true"]) .consentement__marque{ border-color:var(--err-bord); }

.consentement__txt{ font-size:18px; line-height:1.5; color:var(--texte); font-weight:600; }
.consentement__detail{
  margin:14px 0 0 44px; font-size:15px; line-height:1.5; color:var(--gris-clair);
}

/* ---------- erreur ---------- */
.erreur{
  background:var(--err-fond); border:2px solid var(--err-bord); border-radius:12px;
  padding:14px 16px; margin:0 0 20px;
  font-size:17px; font-weight:600; color:var(--err-txte); line-height:1.5;
}

/* ---------- confirmation ---------- */
.coche{
  width:72px; height:72px; border-radius:50%;
  background:var(--primaire); color:var(--blanc);
  display:flex; align-items:center; justify-content:center;
  font-size:34px; font-weight:700; margin:8px 0 20px;
}
.preuve{
  background:var(--blanc); border:2px solid var(--bord); border-radius:14px;
  padding:20px; margin-bottom:20px;
}
.preuve h2{
  font-family:var(--titrage); font-size:19px; font-weight:800;
  margin:0 0 12px; color:var(--titre);
}
.preuve ul{
  margin:0; padding:0 0 0 22px;
  display:flex; flex-direction:column; gap:8px;
  font-size:17px; color:var(--gris); line-height:1.5;
  overflow-wrap:anywhere;   /* une URL longue ne doit pas déborder de la carte */
}
.preuve em{ font-style:italic; }

/* ---------- pied ---------- */
.pied{ background:var(--titre); color:#c3c9d8; padding:32px 20px 44px; }
.pied__in{
  max-width:680px; margin:0 auto;
  display:flex; flex-direction:column; gap:14px;
  font-size:15px; line-height:1.65;
}
.pied p{ margin:0; }
.pied a{ color:#e6eaf5; }
.pied a:hover{ color:#ffffff; }
.pied nav{ display:flex; flex-wrap:wrap; gap:2px 22px; margin-top:6px; }
.pied nav a{ padding-block:11px; }   /* cible tactile ≥ 44 px */

/* =========================================================
   PETITS ÉCRANS
   ========================================================= */
@media (max-width:620px){
  .bandeau{ font-size:15px; padding:11px 16px; }
  main{ padding:24px 16px 48px; }
  .chapo{ font-size:19px; }
  .opt{ padding:15px 16px; }
  .consentement{ padding:16px; }
  .consentement__detail{ margin-left:0; }
  .progression__titre{ font-size:14px; }
  .preuve{ padding:18px 16px; }
  .pied{ padding:28px 16px 40px; }
}

@media (max-width:380px){
  body{ font-size:18px; }
  .btn-principal{ font-size:19px; }
  .opt__txt small{ font-size:15px; }
}
