/* ═══════════════════════════════════════════════════════════════════
   VerifyMyMatch — les pages de texte : conditions générales de vente, mentions
   légales, et « Choisir un nouveau mot de passe ». Chargée APRÈS /style.css
   (ancienne mise en page, fenêtre « Mon compte ») et /theme.css (couleurs, titres,
   boutons, barre du haut, pied de page). Voir l'en-tête de theme.css.

   Deux allures, une seule famille que l'accueil :
     — LA LECTURE (CGV, mentions) : une colonne d'environ 44 rem, des intertitres
       Jakarta serrés séparés par des filets fins, un sommaire à gauche sur grand
       écran, repliable au téléphone. Rien ne bouge dans le texte lui-même : on lit
       un contrat, on ne regarde pas une vitrine.
     — LA CARTE (mot de passe) : un panneau de verre centré, comme ceux de l'accueil.

   TOUT EST RANGÉ SOUS .texte-legal OU .acces-carte. La fenêtre « Mon compte »,
   présente sur ces trois pages, emploie aussi .champ, .boite, .primaire et .erreur :
   une règle écrite sur ces classes nues la déformerait.
   ═══════════════════════════════════════════════════════════════════ */

/* ═══════════════ LA LUEUR DU HAUT DE PAGE ═══════════════
   La même nappe bleue que l'ouverture de l'accueil, posée en haut à droite.
   effets.js la fait glisser un peu moins vite que la page (--para).
   `overflow-x: clip` sur <main> et pas `hidden` : la lueur déborde vers le haut,
   derrière la barre encore transparente, sans jamais élargir la page ; et `clip` ne
   crée pas de conteneur de défilement, donc le sommaire collant reste collant. */
main#contenu { position: relative; overflow-x: clip; }
.lueur-fond {
  position: absolute; z-index: 0; pointer-events: none;
  right: -520px; top: -420px; width: 1000px; height: 1000px;
  background: radial-gradient(closest-side, rgba(60,120,255,.17), rgba(60,120,255,.05) 55%, transparent 72%);
  transform: translate3d(0, var(--para, 0px), 0);
}
@media (min-width: 760px) { .lueur-fond { right: -360px; top: -380px; } }

/* ═══════════════ LA LECTURE : CGV ET MENTIONS LÉGALES ═══════════════ */
.texte-legal { position: relative; z-index: 1; max-width: 1240px; padding-block: 0; }

/* ── la tête : sur-titre, titre, filet ── */
.legal-tete {
  padding: clamp(36px, 6vw, 92px) 0 clamp(34px, 4.6vw, 60px);
  border-bottom: 1px solid var(--ligne);
}
.legal-tete .etiquette { margin-bottom: 20px; }
/* `.texte-legal p` (/style.css) l'emporterait sur `.etiquette` : la couleur est reposée. */
.texte-legal .etiquette { color: var(--accent); line-height: 1.4; }
/* /style.css écrivait `.texte-legal h1` en 800 et en petit, et donnait à tous les h1
   une parallaxe au défilement et une largeur de 18 caractères : tout est repris ici. */
.texte-legal h1 {
  margin: 0; max-width: 20ch; animation: none;
  font: 700 clamp(2.55rem, 1.25rem + 4.3vw, 4.9rem)/.98 var(--sans);
  letter-spacing: -.047em; color: var(--texte); text-wrap: balance;
}

/* ── la grille : sommaire à gauche, texte à droite ── */
.legal-grille { padding: clamp(26px, 4vw, 56px) 0 clamp(84px, 10vw, 140px); }
.legal-corps { min-width: 0; max-width: 44rem; }
@media (min-width: 1080px) {
  .legal-grille {
    display: grid; align-items: start;
    grid-template-columns: 14.5rem minmax(0, 44rem); column-gap: clamp(64px, 7vw, 116px);
  }
}

/* ── le sommaire, grand écran : collant, un trait fin à gauche ── */
.sommaire { display: none; }
@media (min-width: 1080px) {
  .sommaire { display: block; position: sticky; top: 112px; padding-top: 10px; }
  .sommaire-mobile { display: none; }
}
.texte-legal .sommaire-titre {
  margin: 0 0 14px; line-height: 1.4; font-size: .8rem; font-weight: 600; letter-spacing: .09em;
  text-transform: uppercase; color: var(--texte-3);
}
.sommaire ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--ligne); }
.sommaire a {
  display: flex; align-items: baseline; gap: 10px; min-height: 44px;
  margin-left: -1px; padding: 11px 0 11px 18px; border-left: 1.5px solid transparent;
  font-size: .95rem; line-height: 1.35; color: var(--texte-2); text-decoration: none;
  transition: color .3s, border-color .3s;
}
.sommaire a:hover { color: var(--texte); border-left-color: var(--accent); }
.sommaire .num, .sommaire-mobile .num {
  flex: none; min-width: 1.45em; font-family: var(--serif); font-style: italic;
  font-variant-numeric: tabular-nums; color: var(--accent);
}

/* ── le sommaire, téléphone : replié, une carte de verre qui s'ouvre ── */
.sommaire-mobile { margin: 0 0 6px; }
.sommaire-mobile details {
  border: 1px solid var(--ligne); border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,.042), rgba(255,255,255,.012));
}
.sommaire-mobile summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 56px; padding: 0 12px 0 20px;
  font-size: 1rem; font-weight: 600; letter-spacing: -.01em; color: var(--texte);
}
.sommaire-mobile summary::-webkit-details-marker { display: none; }
.sommaire-mobile summary:focus-visible { border-radius: 17px; outline-offset: -2px; }
.plus {
  position: relative; flex: none; width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--ligne-2); transition: transform .5s var(--ease), background-color .3s, border-color .3s;
}
.plus::before, .plus::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.8px;
  border-radius: 2px; background: currentColor; transform: translate(-50%, -50%);
}
.plus::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .5s var(--ease); }
.sommaire-mobile details[open] .plus { transform: rotate(180deg); background: rgba(110,195,255,.1); border-color: rgba(110,195,255,.4); }
.sommaire-mobile details[open] .plus::after { transform: translate(-50%, -50%) rotate(0deg); }
.sommaire-mobile details::details-content {
  block-size: 0; overflow: hidden;
  transition: block-size .5s var(--ease), content-visibility .5s allow-discrete;
}
.sommaire-mobile details[open]::details-content { block-size: auto; }
.sommaire-mobile ol { list-style: none; margin: 0 20px; padding: 4px 0 10px; border-top: 1px solid var(--ligne); }
.sommaire-mobile li + li { border-top: 1px solid rgba(200,215,255,.06); }
.sommaire-mobile a {
  display: flex; align-items: baseline; gap: 10px; min-height: 44px; padding: 11px 0;
  font-size: .98rem; line-height: 1.35; color: var(--texte-2); text-decoration: none;
}
.sommaire-mobile a:hover { color: var(--texte); }

/* ── les clauses : un filet fin entre chacune, beaucoup d'air ── */
.clause { padding: clamp(34px, 4vw, 46px) 0; border-top: 1px solid var(--ligne); }
.clause:first-child { border-top: 0; }
@media (min-width: 1080px) { .clause:first-child { padding-top: 4px; } }
.clause:last-child { padding-bottom: 0; }
.clause > :last-child { margin-bottom: 0; }

.texte-legal h2 {
  margin: 0 0 18px; color: var(--texte);
  font: 700 clamp(1.42rem, 1.14rem + .9vw, 1.82rem)/1.16 var(--sans);
  letter-spacing: -.032em; text-wrap: balance;
  transition: color .4s, text-shadow .4s;
}
/* Le numéro de l'article, dans le serif italique des mots mis en valeur de l'accueil. */
.texte-legal h2 .num {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  letter-spacing: -.01em; color: var(--accent-2);
}
/* Arrivé par le sommaire ou par un lien (« /mentions-legales#donnees ») : le titre
   visé s'éclaire, pour qu'on sache où l'œil doit se poser. */
.texte-legal h2:target { color: #fff; text-shadow: 0 0 26px rgba(110,195,255,.5); }

/* ── le texte courant ── */
.legal-corps p {
  margin: 0 0 1.05em; max-width: none;
  font-size: 1.0625rem; line-height: 1.78; color: var(--texte-2);
  text-wrap: pretty; overflow-wrap: break-word;
}
.legal-corps strong { color: var(--texte); font-weight: 650; }

/* Soulignés, toujours : sur un texte juridique, un lien doit se voir sans survol. */
.legal-corps a {
  color: var(--accent-2);
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .24em;
  text-decoration-color: rgba(110,195,255,.42);
  transition: color .25s, text-decoration-color .25s;
}
.legal-corps a:hover { color: #fff; text-decoration-color: var(--accent); }
/* Les liens qui ouvrent un autre site (Légifrance, CNIL…) le disent d'une flèche.
   Le « word joiner » la soude au dernier mot : elle ne part jamais seule à la ligne.
   La seconde déclaration la rend muette pour les lecteurs d'écran là où c'est géré. */
.legal-corps a[target="_blank"]::after {
  content: "\2060\2009\2197"; content: "\2060\2009\2197" / "";
  font-size: .82em; opacity: .7;
}

.legal-corps code {
  padding: .16em .45em; border-radius: 6px;
  font: 500 .86em/1 ui-monospace, "SF Mono", Menlo, monospace;
  color: var(--accent-2); background: rgba(110,195,255,.08); border: 1px solid rgba(110,195,255,.2);
}

/* ── les listes : un trait bleu, un filet par ligne ── */
.legal-corps ul.propre { margin: 6px 0 1.6em; padding: 0; border-top: 1px solid var(--ligne); }
.legal-corps ul.propre li {
  margin: 0; padding: 16px 0 16px 32px; border-bottom: 1px solid var(--ligne);
  font-size: 1.0625rem; line-height: 1.72; color: var(--texte-2);
}
.legal-corps ul.propre li::before {
  left: 2px; top: calc(16px + .86em); width: 14px; height: 1.5px; border-radius: 0;
  background: var(--accent);
}

/* ── les fiches d'identité (éditeur, hébergeur) : des cartes de verre ──
   /style.css porte DEUX règles `.fiche` : celle des mentions, et une autre, écrite
   pour l'ancien accueil, qui forçait une première colonne de 3,2 rem — les
   intitulés s'y écrasaient sur trois lignes. Tout est redéfini ici. */
.texte-legal dl.fiche {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; grid-template-columns: 1fr; gap: 0;
  margin: 8px 0 0; padding: 4px 22px;
  border: 1px solid var(--ligne); border-radius: var(--r);
  background: linear-gradient(180deg, rgba(255,255,255,.042), rgba(255,255,255,.012));
  transition: border-color .5s var(--ease), box-shadow .5s var(--ease);
}
.texte-legal dl.fiche::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(520px circle at 88% -40%, rgba(110,195,255,.15), transparent 60%);
  opacity: 0; transition: opacity .5s var(--ease);
}
.texte-legal dl.fiche:hover {
  border-color: rgba(140,200,255,.26);
  box-shadow: 0 30px 60px -34px rgba(0,0,0,.85), 0 0 50px -26px rgba(110,195,255,.4);
}
.texte-legal dl.fiche:hover::before { opacity: 1; }
.texte-legal .fiche dt {
  padding: 16px 0 3px; border-top: 1px solid var(--ligne);
  font-size: .9rem; line-height: 1.4; color: var(--texte-3);
}
.texte-legal .fiche dd {
  margin: 0; padding: 0 0 16px; overflow-wrap: anywhere;
  font-size: 1.03rem; line-height: 1.55; color: var(--texte);
}
.texte-legal .fiche dt:first-of-type { border-top: 0; }
@media (min-width: 640px) {
  .texte-legal dl.fiche { grid-template-columns: 13rem minmax(0, 1fr); padding: 4px 28px; }
  .texte-legal .fiche dt, .texte-legal .fiche dd { padding: 17px 0; border-top: 1px solid var(--ligne); }
  .texte-legal .fiche dt { padding-right: 20px; line-height: 1.55; }
  .texte-legal .fiche dt:first-of-type, .texte-legal .fiche dd:first-of-type { border-top: 0; }
}
.texte-legal .fiche a {
  color: var(--accent-2); text-decoration: underline; text-decoration-thickness: 1px;
  text-underline-offset: .24em; text-decoration-color: rgba(110,195,255,.42);
}
.texte-legal .fiche a:hover { color: #fff; text-decoration-color: var(--accent); }
.texte-legal .fiche + p { margin-top: 1.4em; }

/* ═══════════════ LA CARTE : « CHOISIR UN NOUVEAU MOT DE PASSE » ═══════════════
   <main> y est déjà centré verticalement par /style.css (body.page-courte). */
.acces-compte { width: 100%; max-width: 35rem; padding: 40px 18px 88px; }
@media (min-width: 560px) { .acces-compte { padding: 64px 24px 110px; } }

.acces-carte {
  position: relative; isolation: isolate; overflow: hidden;
  padding: 36px 24px 30px; border-radius: 28px;
  background: linear-gradient(160deg, rgba(110,195,255,.08), rgba(255,255,255,.015) 50%, rgba(255,255,255,.01)), var(--nuit-3);
  border: 1px solid var(--ligne-2);
  box-shadow: 0 60px 120px -60px rgba(0,0,0,.95), 0 0 90px -46px rgba(110,195,255,.45), inset 0 1px 0 rgba(255,255,255,.06);
}
.acces-carte::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(440px circle at 100% -8%, rgba(110,195,255,.2), transparent 60%);
}
@media (min-width: 560px) { .acces-carte { padding: 50px 48px 44px; } }

/* app.js montre UN état à la fois en jouant sur `hidden` : aucune règle d'ici ne
   doit pouvoir le faire réapparaître. */
.acces-carte [hidden] { display: none !important; }

.acces-picto {
  display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 26px;
  border-radius: 14px; background: rgba(110,195,255,.08); border: 1px solid rgba(110,195,255,.24);
  box-shadow: 0 0 26px -8px rgba(110,195,255,.6);
}
.acces-picto svg {
  width: 22px; height: 22px; fill: none; stroke: var(--accent-2);
  stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
}
.acces-carte .etiquette { display: flex; margin-bottom: 14px; }
.acces-carte h1 {
  margin: 0 0 18px; max-width: none; animation: none;
  font-size: clamp(2rem, 1.35rem + 2.2vw, 2.75rem); line-height: 1.04; letter-spacing: -.042em;
}
.acces-carte .chapo {
  margin: 0 0 26px; max-width: none; animation: none;
  font-size: 1.06rem; line-height: 1.65; color: var(--texte-2);
}

/* ── le champ ── */
.acces-carte .champ { display: block; margin: 0 0 20px; font-weight: 400; font-size: 1rem; }
.acces-carte .champ > span {
  display: block; margin-bottom: 10px;
  font-size: .95rem; font-weight: 600; letter-spacing: -.005em; color: var(--texte);
}
.acces-carte .boite {
  background: rgba(3,5,10,.55); border: 1px solid var(--ligne-2); border-radius: 14px;
  box-shadow: inset 0 1px 2px rgba(0,0,0,.45);
  transition: border-color .3s, box-shadow .3s;
}
.acces-carte .boite:hover { border-color: rgba(200,215,255,.32); box-shadow: inset 0 1px 2px rgba(0,0,0,.45); }
.acces-carte .boite:focus-within {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(110,195,255,.32), inset 0 1px 2px rgba(0,0,0,.45);
}
/* 1,05 rem : sous 1 rem, Safari iOS zoome de force sur le champ. */
.acces-carte input[type=password] {
  min-height: 56px; padding: 0 18px; border-radius: 13px;
  font-size: 1.05rem; letter-spacing: .02em;
}

/* ── le message d'erreur : le corail, réservé aux alertes ── */
.acces-carte .erreur {
  margin: 0 0 18px; padding: 12px 16px; border-radius: 12px;
  font-size: .96rem; line-height: 1.5; color: #ffb4a1;
  background: rgba(255,122,89,.08); border: 1px solid rgba(255,122,89,.34);
}

/* ── le bouton : le bouton clair de l'accueil, sur toute la largeur de la carte ──
   /style.css y faisait passer un reflet en boucle toutes les cinq secondes ; ici,
   comme partout ailleurs sur le site, il ne passe qu'au survol. */
.acces-carte .actions { display: flex; flex-direction: column; align-items: stretch; gap: 12px; }
.acces-carte .primaire {
  isolation: isolate; width: 100%; justify-content: center; text-align: center;
  min-height: 56px; padding: 14px 24px; border-radius: 14px;
  font: 600 1.03rem/1.2 var(--sans); letter-spacing: -.01em; white-space: normal;
  background: var(--texte); color: var(--noir);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7), 0 12px 32px -12px rgba(110,195,255,.5);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), background-color .3s;
}
.acces-carte .primaire::after {
  z-index: -1; animation: none; transform: translateX(-130%);
  background: linear-gradient(105deg, transparent 32%, rgba(255,255,255,.95) 50%, transparent 68%);
  transition: transform .9s var(--ease);
}
.acces-carte .primaire:hover:not(:disabled) {
  background: #fff; transform: translateY(-2px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7), 0 20px 44px -14px rgba(110,195,255,.7);
}
.acces-carte .primaire:hover:not(:disabled)::after { transform: translateX(130%); }
.acces-carte .primaire:active:not(:disabled) { transform: translateY(0) scale(.98); }

/* ═══════════════ À L'IMPRESSION ═══════════════
   Des CGV s'impriment. /style.css passe la page sur fond blanc : le gris clair du
   texte y deviendrait invisible, et les blocs pas encore apparus au défilement
   sortiraient vides. */
@media print {
  .lueur-fond, .sommaire, .sommaire-mobile { display: none !important; }
  .js [data-reveal] { opacity: 1 !important; transform: none !important; }
  .legal-grille { display: block; padding: 0; }
  .legal-tete { padding: 0 0 12px; border-color: #bbb; }
  .clause { padding: 18px 0; border-color: #ddd; }
  .texte-legal h1, .texte-legal h1 em, .texte-legal h2, .texte-legal h2 .num, .legal-tete .etiquette,
  .legal-corps p, .legal-corps li, .legal-corps strong, .legal-corps a, .legal-corps code,
  .texte-legal .fiche dt, .texte-legal .fiche dd, .texte-legal .fiche a {
    color: #000 !important; text-shadow: none !important;
  }
  .texte-legal h1 { font-size: 26pt; }
  .texte-legal h2 { font-size: 14pt; break-after: avoid; }
  .legal-corps p, .legal-corps li { font-size: 10.5pt; line-height: 1.55; }
  .texte-legal dl.fiche, .legal-corps code { background: none !important; box-shadow: none !important; border-color: #bbb !important; }
  .legal-corps a[target="_blank"]::after { content: none; }
}
