/* Pages « Résilier mon abonnement » et « Me rétracter ». Tout le reste vient de style.css (« Pages à formulaire »).
   Mêmes règles que le site : angles droits, filets de 2 px, rouge pour l'action et l'alerte, zones à toucher de 44 px au moins. */

/* Les trois étapes de la résiliation (D215-3 : récapitulatif modifiable avant la notification) */
.etapes-fin { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 0 0 32px; padding: 0; list-style: none; font-size: 0.875rem; font-weight: 600; color: var(--gris); }
.etapes-fin li { display: inline-flex; align-items: center; gap: 10px; min-height: 32px; }
.etapes-fin__numero { display: grid; place-items: center; width: 28px; height: 28px; border: var(--filet) solid currentColor; font-family: var(--titre); font-weight: 700; }
.etapes-fin li[aria-current="step"] { color: var(--noir); }
.etapes-fin li[aria-current="step"] .etapes-fin__numero { background: var(--rouge); border-color: var(--rouge); color: var(--blanc); }

/* Choix de la date d'effet : cases rondes interdites (angles droits), le choix unique se marque d'un carré plein, la case à cocher d'une coche */
.choix-groupe { display: grid; gap: 12px; }
.choix-groupe__titre { display: block; font-family: var(--titre); font-weight: 700; margin-bottom: 4px; padding: 0; }
.choix { display: grid; grid-template-columns: 28px 1fr; gap: 14px; align-items: start; min-height: 44px; cursor: pointer; line-height: 1.45; }
.choix input { width: 28px; height: 28px; margin: 0; appearance: none; background: var(--blanc); border: var(--filet) solid var(--noir); border-radius: 0; cursor: pointer; display: grid; place-items: center; }
.choix input:checked { border-color: var(--rouge); }
.choix input:checked::after { content: ""; width: 14px; height: 14px; background: var(--rouge); }
.choix input:focus-visible { outline: 3px solid var(--rouge); outline-offset: 3px; }
.choix__precision { display: block; font-size: 0.875rem; color: var(--gris); }
.champ--date { margin-left: 42px; max-width: 280px; }
@media (max-width: 420px) { .champ--date { margin-left: 0; } }
.champ input[type="date"] { min-width: 0; }

/* Récapitulatif et déclaration : le texte exact, tel qu'il est gardé */
.titre-etape { font-family: var(--titre); font-weight: 700; font-size: clamp(1.75rem, 1.2rem + 2.4vw, 3rem); line-height: 1.02; letter-spacing: -0.035em; margin: 0 0 16px; }
.titre-etape:focus { outline: 0; }
.texte-etape { max-width: 60ch; margin: 16px 0 0; overflow-wrap: anywhere; }
.declaration { max-width: 640px; margin-top: 24px; border: var(--filet) solid var(--noir); border-left-width: 8px; padding: clamp(16px, 2.4vw, 28px); display: grid; gap: 10px; overflow-wrap: anywhere; }
.declaration p:first-child { font-family: var(--titre); font-weight: 700; font-size: 1.125rem; letter-spacing: -0.015em; }
.actions-fin { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 32px; }
.sous-titre-fin { font-family: var(--titre); font-weight: 700; font-size: 1.25rem; letter-spacing: -0.02em; margin: 40px 0 0; }
.numero-fin { margin-top: 16px; font-size: 0.875rem; color: var(--gris); overflow-wrap: anywhere; }

/* Blocs d'état (reçoivent le focus par le script pour être lus tout de suite ; ce ne sont pas des arrêts de la touche Tab) */
.avis-fin { max-width: 640px; border: var(--filet) solid var(--noir); padding: clamp(18px, 2.4vw, 32px); display: grid; gap: 12px; overflow-wrap: anywhere; }
.avis-fin:focus { outline: 0; }
.avis-fin--alerte { border-color: var(--rouge); border-left-width: 8px; }
.avis-fin__titre { font-family: var(--titre); font-weight: 700; font-size: clamp(1.375rem, 1.1rem + 1.1vw, 2rem); line-height: 1.1; letter-spacing: -0.03em; text-wrap: balance; }

/* Montant remboursé */
.montant-fin { max-width: 640px; margin-top: var(--gouttiere); background: var(--rouge); color: var(--blanc); padding: clamp(18px, 2.4vw, 32px); display: grid; gap: 10px; }
.montant-fin__titre { font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.montant-fin__chiffre { font-family: var(--titre); font-weight: 700; font-size: clamp(3rem, 2rem + 5vw, 5.5rem); line-height: 0.9; letter-spacing: -0.05em; }

/* Règles de la rétractation, sous le formulaire */
.regles-fin { margin-top: clamp(40px, 5vw, 72px); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gouttiere); max-width: 960px; }
.regle-fin { border-top: var(--filet) solid var(--noir); padding-top: 16px; display: grid; gap: 10px; align-content: start; }
.regle-fin h2 { font-family: var(--titre); font-weight: 700; font-size: clamp(1.125rem, 1rem + 0.5vw, 1.375rem); letter-spacing: -0.02em; line-height: 1.15; }
.regle-fin p { font-size: 1rem; }
@media (max-width: 700px) { .regles-fin { grid-template-columns: 1fr; } }
.note-fin { max-width: 640px; margin-top: 40px; padding-top: 16px; border-top: var(--filet) solid var(--noir); display: grid; gap: 10px; font-size: 1rem; }

/* Liens et bouton-lien : 44 px de haut pour le doigt */
.note-fin a, .regle-fin a, .texte-etape a, .sans-js a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }
.lien-fleche { gap: 8px; }
.lien-fin { display: inline-flex; align-items: center; min-height: 44px; padding: 0; font-weight: 600; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.18em; text-align: left; }
.lien-fin:hover { color: var(--rouge); }

/* Pied : deux liens de plus que sur les autres pages */
.pied__liens a[aria-current="page"] { text-decoration-color: var(--rouge); }
