/* Interexco — Pôle Digital — page formulaire (complète css/style.css)
   Même charte : bleu #294973, accent vert pastel #BFE2CC / #DDEFE3 / #8CC3A4, Raleway. */

.page-form {
  --field-border: #7D8EA6;   /* contraste 3,3:1 sur blanc pour les bords de champs */
  --soft: #F6F8FB;
  --error: #B3261E;          /* contraste 6,5:1 sur blanc */
}

/* Un élément masqué (attribut hidden) reste masqué, quel que soit son style d'affichage */
.page-form [hidden] { display: none !important; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 16px; top: -80px; z-index: 100;
  background: var(--mint); color: var(--navy); font-weight: 800; text-decoration: none;
  padding: 12px 20px; border-radius: 999px; transition: top .2s;
}
.skip:focus { top: 16px; color: var(--navy); }

.topbar__nav > a[aria-current="page"] { color: var(--mint); text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }

/* ---------- Introduction ---------- */
.fp { padding: 150px 24px 120px; position: relative; overflow-x: clip; }

/* Décor : halo et anneaux de l'accueil, en plus discret */
.fp__backdrop {
  position: absolute; left: 0; right: 0; top: 0; height: min(1000px, 100%);
  overflow: hidden; pointer-events: none;
  -webkit-mask-image: linear-gradient(#000 55%, transparent); mask-image: linear-gradient(#000 55%, transparent);
}
.fp__glow, .fp__ring { position: absolute; left: 50%; top: 370px; border-radius: 50%; }
.fp__glow {
  width: 780px; height: 780px; margin: -390px 0 0 -390px;
  background: radial-gradient(circle, rgba(191, 226, 204, .34) 0%, rgba(191, 226, 204, .08) 42%, rgba(191, 226, 204, 0) 68%);
  animation: glow 9s ease-in-out infinite; will-change: transform;
}
.fp__ring { width: 600px; height: 600px; margin: -300px 0 0 -300px; border: 1px solid rgba(191, 226, 204, .2); animation: spin 90s linear infinite; }
.fp__ring span {
  position: absolute; left: -5px; top: 50%; width: 10px; height: 10px; margin-top: -5px; border-radius: 50%;
  background: var(--mint); box-shadow: 0 0 16px var(--mint); opacity: .85;
}
.fp__ring--outer { width: 940px; height: 940px; margin: -470px 0 0 -470px; border: 1px dashed rgba(145, 161, 183, .22); animation: spin 160s linear infinite reverse; }
.fp__intro { position: relative; max-width: 920px; margin: 0 auto 56px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.fp__title {
  margin-top: 26px; color: var(--white); font-weight: 900;
  font-size: clamp(44px, 7vw, 96px); line-height: .95; letter-spacing: -3px;
}
.fp__title em { color: var(--mint); }
.fp__lead { margin: 28px 0 0; max-width: 620px; font-size: 19px; line-height: 1.6; color: var(--ice); }

/* ---------- Carte du formulaire ---------- */
.fp__card {
  position: relative; max-width: 920px; margin: 0 auto;
  background: var(--white); color: var(--ink); border-radius: 26px;
  padding: 44px 52px 48px;
  box-shadow: 0 50px 100px rgba(0, 0, 0, .3), 0 0 0 1px rgba(191, 226, 204, .18), 0 0 80px rgba(191, 226, 204, .1);
}
.fp__card:focus { outline: none; }
.fp__card :focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; }
.fp__card a:not(.btn) { color: var(--navy); font-weight: 700; }
.fp__card a:not(.btn):hover { color: var(--blue); }

/* Brouillon */
.draft-banner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 20px;
  margin: 0 0 28px; padding: 14px 20px; border-radius: 14px; background: var(--mint-light);
  color: var(--navy); font-size: 15px; font-weight: 600;
  animation: subIn .5s var(--ease);
}
.draft-banner p { margin: 0; }
.linkbtn {
  font: 700 15px Raleway, Arial, sans-serif; color: var(--navy); background: none; border: 0; padding: 6px 2px; min-height: 44px;
  text-decoration: underline; text-underline-offset: 4px; cursor: pointer; border-radius: 4px;
}
.linkbtn:hover { color: var(--blue); }
.linkbtn.is-confirm { color: var(--error); }

/* Progression */
.progress { margin-bottom: 36px; }
.progress__top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 16px; }
.progress__label { margin: 0; font-size: 15px; color: var(--slate); font-weight: 600; }
.progress__label strong { color: var(--navy); font-weight: 800; }
.progress__bar { position: relative; margin-top: 12px; height: 8px; border-radius: 999px; background: #E6EBF1; overflow: hidden; }
.progress__bar span {
  position: relative; display: block; height: 100%; width: 12.5%; border-radius: 999px; overflow: hidden;
  background: linear-gradient(90deg, var(--navy), var(--blue) 55%, var(--mint-deep));
  transition: width .9s var(--ease);
}
/* Reflet qui parcourt la partie remplie */
.progress__bar span::after {
  content: ""; position: absolute; inset: 0; transform: translateX(-100%);
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .55), rgba(255, 255, 255, 0));
  animation: sheen 4s ease-in-out 1.2s infinite;
}
/* Huit segments : de fines coupures blanches marquent les étapes */
.progress__bar::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: 0; right: -3px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0) calc(100% - 3px), var(--white) 0) 0 0 / 12.5% 100% repeat-x;
}
.draft-status {
  margin: 0; display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 600; color: var(--slate);
  opacity: 0; transform: translateY(4px); transition: opacity .5s, transform .5s var(--ease);
}
.draft-status.is-on { opacity: 1; transform: none; }
.draft-status svg path { fill: none; stroke: #3F7A5A; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 16; stroke-dashoffset: 0; }
.draft-status.is-on svg path { animation: drawIn16 .6s .15s var(--ease) backwards; }

/* ---------- Champs ---------- */
.pf__note { margin: 0 0 8px; font-size: 14px; color: var(--slate); }
.req { color: var(--navy); font-weight: 800; }
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* Changement d'étape : les blocs arrivent l'un après l'autre */
.step > * { animation: stepIn .6s var(--ease) backwards; }
.step > :nth-child(2) { animation-delay: .05s; }
.step > :nth-child(3) { animation-delay: .1s; }
.step > :nth-child(4) { animation-delay: .15s; }
.step > :nth-child(5) { animation-delay: .2s; }
.step > :nth-child(6) { animation-delay: .25s; }
.step > :nth-child(n+7) { animation-delay: .3s; }
.step[hidden] { display: none; }
.step__num { display: flex; align-items: center; gap: 10px; }
.step__num::before { content: ""; flex: none; width: 22px; height: 2px; border-radius: 2px; background: var(--mint-deep); }
.step__num { margin: 20px 0 0; font-size: 12px; letter-spacing: 4px; text-transform: uppercase; font-weight: 800; color: #3F7A5A; } /* vert foncé lisible sur blanc (5:1) */
.step__title { margin: 6px 0 8px; font-size: clamp(30px, 3.6vw, 42px); line-height: 1.1; letter-spacing: -1px; font-weight: 900; color: var(--navy); }
.step__title:focus { outline: none; }

.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
.field, .group, .q-block, .q-files, .consent { margin: 26px 0 0; }
fieldset { border: 0; padding: 0; min-width: 0; }
.pf label, .pf legend, .pf .label {
  display: block; margin: 0 0 8px; padding: 0;
  font-size: 16px; font-weight: 700; color: var(--navy); line-height: 1.4;
}
.pf legend .hint, .pf .label .hint { display: block; margin-top: 2px; }
.hint { margin: 6px 0 0; font-size: 14px; font-weight: 500; color: var(--slate); line-height: 1.5; }

.pf input[type="text"], .pf input[type="email"], .pf input[type="tel"], .pf input[type="date"], .pf textarea {
  width: 100%; font: 500 16px/1.5 Raleway, Arial, sans-serif; color: var(--navy);
  background: var(--soft); border: 1.5px solid var(--field-border); border-radius: 12px;
  padding: 13px 16px; min-height: 52px;
  transition: border-color .25s, background-color .25s, box-shadow .25s;
}
.pf textarea { resize: vertical; min-height: 110px; }
@media (hover: hover) {
  .pf input:hover, .pf textarea:hover { border-color: var(--navy); }
}
.pf input:focus, .pf textarea:focus { background: var(--white); border-color: var(--navy); box-shadow: 0 0 0 4px var(--mint-light); }
.pf input:focus-visible, .pf textarea:focus-visible { outline: 2px solid var(--navy); outline-offset: 1px; }

/* Cases et boutons radio en « pastilles » */
.choices { display: flex; flex-wrap: wrap; gap: 10px; }
.choices--grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.pf .choice {
  display: inline-flex; align-items: center; gap: 12px; margin: 0;
  min-height: 50px; padding: 12px 18px 12px 14px; border-radius: 14px;
  border: 1.5px solid var(--line); background: var(--soft); cursor: pointer;
  font-weight: 600; font-size: 15px; color: var(--navy); line-height: 1.35;
  transition: border-color .25s, background-color .25s, box-shadow .3s, transform .3s var(--ease);
}
@media (hover: hover) {
  .pf .choice:hover { border-color: var(--mint-deep); transform: translateY(-1px); box-shadow: 0 8px 18px rgba(41, 73, 115, .08); }
}
.pf .choice:active { transform: scale(.985); }
.pf .choice:has(input:checked) { background: var(--mint-light); border-color: var(--mint-deep); animation: ripple .6s var(--ease); }
/* Petit « pop » de la case au moment où on la coche */
.pf .choice input:checked, .card-choice input:checked, .consent__label input:checked { animation: pop .4s var(--ease); }
.pf .choice:has(input:focus-visible) { outline: 3px solid var(--navy); outline-offset: 2px; }
.pf .choice input { flex: none; width: 20px; height: 20px; margin: 0; accent-color: var(--navy); cursor: pointer; }
.pf .choice input:focus-visible { outline: none; }
.choice--small { min-height: 44px; padding: 8px 14px 8px 12px; }

/* Champ de précision qui s'ouvre */
.sub {
  margin-top: 12px; padding: 16px 18px; border-radius: 14px;
  background: #F2F8F4; border-left: 3px solid var(--mint-deep);
  animation: subIn .45s var(--ease);
}
.sub .field, .sub .group { margin-top: 0; }
.sub .field + .group { margin-top: 16px; }
.group > .sub { max-width: 560px; }
.sub label, .sub legend { font-size: 15px; }

/* Fonctions (étape 4) */
.features { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: start; }
.feature .choice { display: flex; width: 100%; }
.feature .sub { margin-top: 8px; }

/* Sites aimés (étape 5) */
.liked { display: grid; gap: 4px; }
.liked__row { display: grid; grid-template-columns: 1fr 1.3fr; gap: 0 16px; padding: 4px 0 0; }
.liked__row .field { margin-top: 10px; }
.liked__row label { font-size: 14px; font-weight: 600; color: var(--slate); }
.q-block > legend { margin-bottom: 2px; }

/* Cartes cliquables (ambiance, animations) */
.cards { display: grid; gap: 12px; }
.cards--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pf .card-choice {
  position: relative; display: flex; flex-direction: column; gap: 4px; margin: 0;
  padding: 12px 12px 16px; border-radius: 16px; cursor: pointer;
  border: 1.5px solid var(--line); background: var(--white);
  transition: border-color .25s, box-shadow .3s, transform .4s var(--ease), background-color .25s;
}
@media (hover: hover) {
  .pf .card-choice:hover { transform: translateY(-3px); border-color: var(--mint-deep); box-shadow: 0 14px 30px rgba(41, 73, 115, .12); }
  .pf .card-choice:hover .card-choice__art, .pf .card-choice:hover .card-choice__stage { transform: scale(1.03); }
}
.pf .card-choice:active { transform: scale(.985); }
.pf .card-choice:has(input:checked) { border-color: var(--navy); background: #F2F8F4; box-shadow: 0 0 0 2px var(--navy); animation: pick .6s var(--ease); }
.pf .card-choice:has(input:focus-visible) { outline: 3px solid var(--navy); outline-offset: 4px; }
/* Anneau blanc : la case reste visible sur les aperçus foncés */
.card-choice input {
  position: absolute; top: 20px; right: 20px; z-index: 2; width: 20px; height: 20px; margin: 0;
  accent-color: var(--navy); cursor: pointer; border-radius: 50%; background: var(--white); box-shadow: 0 0 0 3px var(--white);
}
.card-choice input:focus-visible { outline: none; }
.card-choice strong { margin-top: 8px; font-size: 16px; font-weight: 800; color: var(--navy); }
.card-choice small { font-size: 13.5px; line-height: 1.45; font-weight: 500; color: var(--slate); }

.card-choice__art, .card-choice__stage { position: relative; display: block; height: 76px; border-radius: 10px; overflow: hidden; transition: transform .5s var(--ease); }
.card-choice__art i { position: absolute; display: block; border-radius: 4px; }
.card-choice__art i:nth-child(1) { left: 12px; top: 16px; width: 52%; height: 9px; }
.card-choice__art i:nth-child(2) { left: 12px; top: 32px; width: 32%; height: 6px; }
.card-choice__art i:nth-child(3) { right: 12px; bottom: 12px; width: 28px; height: 28px; border-radius: 50%; }
.art--sobre { background: #FAFBFC; box-shadow: inset 0 0 0 1px #E3E8EE; }
.art--sobre i:nth-child(1) { background: #3C4A59; }
.art--sobre i:nth-child(2) { background: #C9D1DB; }
.art--sobre i:nth-child(3) { background: #E8ECF1; border-radius: 6px; }
.art--moderne { background: #16233A; }
.art--moderne i:nth-child(1) { background: #FFFFFF; }
.art--moderne i:nth-child(2) { background: #4F8CFF; }
.art--moderne i:nth-child(3) { background: #4F8CFF; border-radius: 4px; transform: rotate(45deg); width: 22px; height: 22px; }
.art--chaleureuse { background: #F5E6D6; }
.art--chaleureuse i:nth-child(1) { background: #8A4B2F; border-radius: 6px; }
.art--chaleureuse i:nth-child(2) { background: #D9A07B; border-radius: 6px; }
.art--chaleureuse i:nth-child(3) { background: #C9774F; }
.art--luxe { background: #161616; }
.art--luxe i:nth-child(1) { background: #C8A96A; height: 2px; top: 20px; }
.art--luxe i:nth-child(2) { background: #6E6E6E; height: 2px; top: 30px; }
.art--luxe i:nth-child(3) { background: transparent; border: 1px solid #C8A96A; }
.art--dynamique { background: linear-gradient(120deg, #FF5F45, #FFB627); }
.art--dynamique i:nth-child(1) { background: #FFFFFF; transform: skewX(-12deg); }
.art--dynamique i:nth-child(2) { background: #1D1D3A; transform: skewX(-12deg); }
.art--dynamique i:nth-child(3) { background: #1D1D3A; border-radius: 6px; transform: rotate(-14deg); }

.card-choice__stage { background: var(--navy); }
.card-choice__stage i { position: absolute; left: 50%; top: 50%; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; background: var(--mint); }
.stage--none i { background: var(--mist); }
.stage--soft i { animation: soft 3.2s var(--ease) infinite; }
.stage--rich i { animation: rich 1.8s cubic-bezier(.5, 0, .5, 1) infinite; box-shadow: 0 0 14px var(--mint); }

/* ---------- Dépôt de fichiers ---------- */
.dropzone {
  position: relative; border: 2px dashed var(--field-border); border-radius: 18px; background: var(--soft);
  transition: border-color .25s, background-color .25s;
}
.dropzone:hover, .dropzone.is-over { border-color: var(--mint-deep); background: var(--mint-light); }
.dropzone:has(input:focus-visible) { outline: 3px solid var(--navy); outline-offset: 3px; }
.dropzone__input { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.pf .dropzone__label {
  display: flex; flex-direction: column; align-items: center; gap: 6px; margin: 0;
  padding: 34px 24px; text-align: center; cursor: pointer; font-weight: 500;
}
.dropzone__icon path { fill: none; stroke: var(--navy); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.dropzone.is-over .dropzone__icon { transform: translateY(-4px); }
@media (hover: hover) { .dropzone:hover .dropzone__icon { transform: translateY(-4px); } }
.dropzone__icon { transition: transform .4s var(--ease); }
.dropzone__main { font-size: 17px; color: var(--navy); }
.dropzone__main strong { font-weight: 800; }
.dropzone__link { text-decoration: underline; text-underline-offset: 4px; font-weight: 700; }
.dropzone__rules { font-size: 14px; color: var(--slate); }

.files-msg { margin: 10px 0 0; font-size: 14px; font-weight: 600; color: var(--error); animation: subIn .35s var(--ease); }
.files-msg:not(.is-ok) { display: flex; align-items: flex-start; gap: 8px; line-height: 1.45; font-weight: 700; }
.files-msg:not(.is-ok)::before {
  content: "!"; flex: none; width: 18px; height: 18px; margin-top: 1px; border-radius: 50%;
  background: var(--error); color: var(--white); font-size: 12px; font-weight: 900;
  display: flex; align-items: center; justify-content: center;
}
.files-msg:empty { display: none; }
.files-msg.is-ok { color: #2F6B4B; }
.files { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 10px; }
.files:empty { display: none; }
.file {
  display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; align-items: center; gap: 14px;
  padding: 10px 12px 10px 10px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--white);
  animation: subIn .4s var(--ease);
}
.file__thumb {
  width: 52px; height: 52px; border-radius: 10px; overflow: hidden; display: flex; align-items: center; justify-content: center;
  background: var(--ice); color: var(--navy); font-size: 12px; font-weight: 900; letter-spacing: .5px;
}
.file__thumb img { width: 100%; height: 100%; object-fit: cover; }
.file__thumb--pdf { background: #FBE3E1; color: #9E2A22; }
.file__thumb--doc { background: #E1EBFB; color: #24508F; }
.file__name { display: block; font-weight: 700; color: var(--navy); font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file__size { display: block; font-size: 13px; color: var(--slate); }
.file__remove {
  display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
  font: 700 14px Raleway, Arial, sans-serif; color: var(--navy);
  background: var(--white); border: 1.5px solid var(--field-border); border-radius: 999px;
  padding: 8px 14px; min-height: 44px; transition: border-color .25s, color .25s, background-color .25s;
}
.file__remove:hover { border-color: var(--error); color: var(--error); }
.file__remove svg path { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.files-total { margin: 10px 0 0; font-size: 14px; font-weight: 600; color: var(--navy); }

/* ---------- Erreurs ---------- */
.field__error {
  display: flex; align-items: flex-start; gap: 8px; margin: 8px 0 0;
  color: var(--error); font-size: 14px; font-weight: 700; line-height: 1.45;
  animation: subIn .35s var(--ease);
}
.field__error::before {
  content: "!"; flex: none; width: 18px; height: 18px; margin-top: 1px; border-radius: 50%;
  background: var(--error); color: var(--white); font-size: 12px; font-weight: 900;
  display: flex; align-items: center; justify-content: center;
}
.q.has-error > input, .q.has-error > textarea { border-color: var(--error); background: #FFF7F6; }
.group.has-error > .choices .choice { border-color: #E3A39E; }
.submit-error { margin: 20px 0 0; padding: 14px 18px; border-radius: 12px; background: #FFF1F0; color: var(--error); font-weight: 700; animation: subIn .4s var(--ease); }

/* ---------- Récapitulatif ---------- */
.recap { margin-top: 44px; padding-top: 36px; border-top: 1px solid var(--line); }
.recap__title { font-size: 26px; line-height: 1.15; font-weight: 900; color: var(--navy); letter-spacing: -.5px; }
.recap__lead { margin: 6px 0 20px; color: var(--slate); font-size: 15px; }
.recap__step { padding: 18px 22px 20px; border-radius: 16px; background: var(--soft); }
.recap__step + .recap__step { margin-top: 12px; }
.recap__head { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.recap__head h4 { margin: 0; font-size: 17px; line-height: 1.3; font-weight: 800; color: var(--navy); }
.recap__head h4 span { color: #3F7A5A; margin-right: 6px; }
.recap__edit {
  flex: none; cursor: pointer; font: 700 14px Raleway, Arial, sans-serif; color: var(--navy);
  background: var(--white); border: 1.5px solid var(--field-border); border-radius: 999px;
  padding: 7px 16px; min-height: 44px; transition: background-color .25s, border-color .25s;
}
.recap__edit:hover { background: var(--mint-light); border-color: var(--mint-deep); }
.recap dl { margin: 12px 0 0; display: grid; grid-template-columns: minmax(150px, 34%) 1fr; gap: 8px 20px; font-size: 15px; line-height: 1.5; }
.recap dt { color: var(--slate); font-weight: 600; }
.recap dd { margin: 0; color: var(--navy); font-weight: 600; white-space: pre-line; overflow-wrap: anywhere; }
.recap__empty { margin: 10px 0 0; font-size: 15px; color: var(--slate); font-style: italic; }

/* Consentement */
.consent { margin-top: 32px; padding: 18px 20px; border-radius: 16px; background: var(--mint-light); }
.pf .consent__label { display: flex; align-items: flex-start; gap: 14px; margin: 0; cursor: pointer; font-weight: 700; font-size: 16px; }
.consent__label input { flex: none; width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--navy); cursor: pointer; }
.consent__more { margin: 8px 0 0 36px; font-size: 14px; }
.consent.has-error { box-shadow: inset 0 0 0 2px var(--error); }
.consent .field__error { margin-left: 36px; }

/* ---------- Navigation des étapes ---------- */
.pf__nav { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--line); }
.pf__nav #btnNext, .pf__nav #btnSend { margin-left: auto; }
.pf__nav .btn, .thanks .btn {
  border: 0; cursor: pointer; font-family: Raleway, Arial, sans-serif; padding: 17px 30px;
  transition: transform .4s var(--ease), background-color .3s, color .3s, box-shadow .3s;
}
.pf__nav .btn svg, .thanks .btn svg { transition: transform .4s var(--ease); }
@media (hover: hover) {
  .pf__nav .btn--navy:hover, .thanks .btn--navy:hover { box-shadow: 0 14px 28px rgba(41, 73, 115, .28); }
  .pf__nav .btn--navy:hover svg { transform: translateX(4px); }
  .pf__nav .btn--outline:hover svg { transform: translateX(-4px); }
}
.pf__nav .btn--large { padding: 20px 36px; }
.pf__nav .btn[hidden] { display: none; }
.btn--outline { background: var(--white); color: var(--navy); box-shadow: inset 0 0 0 1.5px var(--field-border); }
.btn--outline:hover { box-shadow: inset 0 0 0 1.5px var(--navy); color: var(--navy); }
.btn[disabled] { opacity: .65; cursor: progress; transform: none; }

/* ---------- Confirmation ---------- */
.thanks {
  text-align: center; padding: 20px 0 8px;
}
.thanks[hidden] { display: none; }
/* Arrivée en cascade : coche, titre, texte, étapes, bouton */
.thanks > :not(.thanks__check), .next li { animation: stepIn .7s var(--ease) backwards; }
.thanks > .thanks__title { animation-delay: .35s; }
.thanks > .thanks__lead { animation-delay: .45s; }
.thanks > .thanks__sub { animation-delay: .6s; }
.thanks > .next { animation: none; }
.next li:nth-child(1) { animation-delay: .7s; }
.next li:nth-child(2) { animation-delay: .82s; }
.next li:nth-child(3) { animation-delay: .94s; }
.thanks > .btn { animation-delay: 1.05s; }
.thanks__check {
  position: relative; display: inline-flex; align-items: center; justify-content: center; width: 92px; height: 92px; border-radius: 50%;
  background: var(--mint); box-shadow: 0 0 0 10px #F2F8F4, 0 0 70px 34px rgba(191, 226, 204, .45);
  animation: checkIn .7s cubic-bezier(.34, 1.56, .64, 1) backwards;
}
/* Deux ondes qui s'éloignent de la coche (invisibles sans animation) */
.thanks__check::before, .thanks__check::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--mint-deep);
  opacity: 0; pointer-events: none; animation: halo 1.6s .45s ease-out backwards;
}
.thanks__check::after { animation-delay: .8s; }
.thanks__check path { fill: none; stroke: var(--navy); stroke-width: 3.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 0; animation: drawIn40 .7s .4s var(--ease) backwards; }
.thanks__title { margin-top: 24px; font-size: clamp(44px, 6vw, 72px); font-weight: 900; letter-spacing: -2px; line-height: 1; color: var(--navy); }
.thanks__title:focus { outline: none; }
.thanks__lead { max-width: 560px; margin: 20px auto 0; font-size: 19px; line-height: 1.6; color: var(--ink); }
.thanks__sub { margin: 44px 0 0; font-size: 13px; letter-spacing: 4px; text-transform: uppercase; font-weight: 800; color: #3F7A5A; }
.next { list-style: none; margin: 22px auto 40px; padding: 0; max-width: 620px; display: grid; gap: 14px; text-align: left; }
.next li { display: grid; grid-template-columns: 52px 1fr; gap: 18px; align-items: center; padding: 16px 20px; border-radius: 16px; background: var(--soft); }
.next__dot {
  width: 52px; height: 52px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: var(--navy); color: var(--white); font-weight: 900; font-size: 17px;
}
.next--key .next__dot { background: var(--mint); color: var(--navy); animation: pulse 2.2s ease-out infinite; }
.next strong { font-size: 17px; font-weight: 800; color: var(--navy); }
.next p { margin: 2px 0 0; font-size: 15px; line-height: 1.5; color: var(--slate); }

/* ---------- Animations ---------- */
@keyframes stepIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes subIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@keyframes soft { 0% { opacity: 0; transform: translateY(14px); } 45%, 80% { opacity: 1; transform: none; } 100% { opacity: 0; transform: none; } }
@keyframes rich {
  0% { transform: translate(-46px, 10px) scale(.7); }
  25% { transform: translate(-16px, -20px) scale(1.3); }
  50% { transform: translate(18px, 10px) scale(.8); }
  75% { transform: translate(44px, -14px) scale(1.25); }
  100% { transform: translate(-46px, 10px) scale(.7); }
}
@keyframes drawIn40 { from { stroke-dashoffset: 40; } }
@keyframes drawIn16 { from { stroke-dashoffset: 16; } }
@keyframes sheen { 0% { transform: translateX(-100%); } 45%, 100% { transform: translateX(100%); } }
@keyframes pop { 0% { transform: scale(1); } 45% { transform: scale(1.28); } 100% { transform: scale(1); } }
@keyframes ripple { from { box-shadow: 0 0 0 0 rgba(140, 195, 164, .55); } to { box-shadow: 0 0 0 10px rgba(140, 195, 164, 0); } }
@keyframes pick { from { box-shadow: 0 0 0 2px var(--navy), 0 0 0 2px rgba(140, 195, 164, .6); } to { box-shadow: 0 0 0 2px var(--navy), 0 0 0 14px rgba(140, 195, 164, 0); } }
@keyframes checkIn { from { opacity: 0; transform: scale(.4); } to { opacity: 1; transform: none; } }
@keyframes halo { 0% { opacity: 0; transform: scale(1); } 10% { opacity: .8; } 100% { opacity: 0; transform: scale(1.9); } }

/* ---------- Tablette et téléphone ---------- */
@media (max-width: 900px) {
  .cards--5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .fp { padding: 118px 12px 80px; }
  .fp__glow, .fp__ring { top: 300px; }
  .fp__glow { width: 520px; height: 520px; margin: -260px 0 0 -260px; }
  .fp__ring { width: 420px; height: 420px; margin: -210px 0 0 -210px; }
  .fp__ring--outer { width: 660px; height: 660px; margin: -330px 0 0 -330px; }
  .fp__intro { margin-bottom: 36px; padding: 0 10px; }
  .draft-status { flex-basis: 100%; }
  .fp__title { letter-spacing: -2px; }
  .fp__lead { font-size: 17px; }
  .fp__card { padding: 26px 20px 28px; border-radius: 20px; }
  .grid2, .features, .liked__row { grid-template-columns: 1fr; }
  .liked__row { padding: 10px 0 14px; border-bottom: 1px dashed var(--line); }
  .liked__row:last-child { border-bottom: 0; }
  .choices { flex-direction: column; }
  .choices--grid { display: flex; }
  .pf .choice { display: flex; width: 100%; }
  .cards--5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cards--3 { grid-template-columns: 1fr; }
  .cards--3 .card-choice { display: grid; grid-template-columns: 96px 1fr; column-gap: 14px; align-items: center; padding: 10px 48px 10px 10px; }
  .cards--3 .card-choice__stage { grid-row: span 2; height: 72px; }
  .cards--3 .card-choice strong { margin-top: 0; }
  .cards--3 .card-choice input { top: 50%; margin-top: -10px; right: 16px; }
  .card-choice input { top: 18px; right: 18px; }
  .pf .dropzone__label { padding: 26px 16px; }
  .file { grid-template-columns: 44px minmax(0, 1fr); }
  .file__thumb { width: 44px; height: 44px; }
  .file__remove { grid-column: 1 / -1; justify-self: start; }
  .recap__step { padding: 16px; }
  .recap dl { grid-template-columns: 1fr; gap: 0; }
  .recap dd { margin-bottom: 10px; }
  .pf__nav { gap: 10px; }
  .pf__nav .btn { flex: 1 1 auto; justify-content: center; padding: 16px 18px; }
  .pf__nav #btnRecap { order: 3; flex-basis: 100%; }
  .pf__nav #btnSend { flex-basis: 100%; }
  .thanks__lead { font-size: 17px; }
  .next li { grid-template-columns: 44px 1fr; gap: 14px; padding: 14px; }
  .next__dot { width: 44px; height: 44px; font-size: 15px; }
}

/* ---------- Pages légales (confidentialité, mentions légales) ---------- */
.page-legal { min-height: 100vh; display: flex; flex-direction: column; }
.legal { position: relative; flex: 1 0 auto; overflow-x: clip; padding: 170px 24px 120px; }
.legal__glow {
  position: absolute; left: 50%; top: -220px; width: 760px; height: 760px; margin-left: -380px; border-radius: 50%;
  pointer-events: none; animation: glow 9s ease-in-out infinite;
  background: radial-gradient(circle, rgba(191, 226, 204, .26) 0%, rgba(191, 226, 204, .06) 42%, rgba(191, 226, 204, 0) 68%);
}
.legal__inner { position: relative; max-width: 820px; margin: 0 auto; }
.legal__title { color: var(--white); font-weight: 900; font-size: clamp(38px, 5.4vw, 64px); line-height: 1.02; letter-spacing: -2px; }
.legal__card {
  margin-top: 40px; background: var(--white); color: var(--ink); border-radius: 24px;
  padding: 44px 52px 40px; font-size: 17px; line-height: 1.75;
  box-shadow: 0 50px 100px rgba(0, 0, 0, .3), 0 0 0 1px rgba(191, 226, 204, .18);
}
.legal__card > :first-child { margin-top: 0; }
.legal__card p { margin: 0 0 1em; max-width: 68ch; }
.legal__card h2 { margin: 1.6em 0 .5em; font-size: 22px; line-height: 1.25; font-weight: 800; color: var(--navy); }
.legal__card a:not(.btn) { color: var(--navy); font-weight: 700; }
.legal__card a:not(.btn):hover { color: var(--blue); }
.legal__card :focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; }
.legal__card ul { margin: 0 0 1em; padding-left: 1.2em; max-width: 68ch; }
.legal__card li { margin: .35em 0; }
.legal__card li::marker { color: #3F7A5A; }
.legal__updated { font-size: 14px; color: var(--slate); }
.legal__card .todo { background: #FFF1B8; color: #5C4400; font-weight: 700; padding: 1px 6px; border-radius: 4px; }
.legal__back { margin: 32px 0 0; padding-top: 28px; border-top: 1px solid var(--line); }
.legal__back .btn { min-height: 44px; }
@media (max-width: 760px) {
  .legal { padding: 130px 16px 80px; }
  .legal__glow { width: 480px; height: 480px; margin-left: -240px; top: -140px; }
  .legal__card { margin-top: 28px; padding: 28px 22px; border-radius: 20px; font-size: 16px; }
}

/* ---------- Mouvement réduit ----------
   La règle globale de style.css coupe déjà animations et transitions (!important).
   Ici, on garantit l'état final visible de tout ce qui part masqué ou décalé. */
@media (prefers-reduced-motion: reduce) {
  .thanks__check path, .draft-status svg path { stroke-dashoffset: 0; }
  .thanks__check::before, .thanks__check::after { opacity: 0; }
  .progress__bar span::after { transform: translateX(-100%); }
  .pf .choice:hover, .pf .card-choice:hover, .pf .choice:active, .pf .card-choice:active,
  .pf .card-choice:hover .card-choice__art, .pf .card-choice:hover .card-choice__stage { transform: none; }
}
