/* Je te connais — feuille de style unique. Téléphone d'abord. */
:root {
  --nuit: #05081a;
  --nuit-2: #0d1530;
  --facade: #0f1830;
  --trait: #22305e;
  --creme: #f5efe4;
  --or: #ffd27a;
  --ambre: #f2b24f;
  --brume: #9aa7cc;
  --encre-bouton: #1d1405;
  --rouge: #ff8f7a;
  --serif: Georgia, "Iowan Old Style", "Palatino Linotype", "Book Antiqua", "Noto Serif", "DejaVu Serif", serif;
  --respire: 10s; /* 6 cycles par minute : 5 s plus clair, 5 s plus sombre */
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--nuit);
  color: var(--creme);
  font-family: var(--serif);
  font-size: 1.1875rem;
  line-height: 1.6;
  overflow-x: hidden;
}
a { color: var(--or); text-underline-offset: 3px; }
a:hover { color: #ffe3a6; }
:focus-visible { outline: 2px solid var(--or); outline-offset: 3px; border-radius: 2px; }
h1, h2 { font-weight: normal; line-height: 1.15; margin: 0 0 .6em; }
h1 { font-size: 2.6rem; }
h2 { font-size: 2rem; color: var(--or); }
p { margin: 0 0 1em; }
strong { color: #fff6e6; }

.colonne { width: 100%; max-width: 34rem; margin: 0 auto; padding: 0 1.25rem; }

/* ---------- la façade et la respiration ---------- */
.fen.allumee .vitre { animation: respire var(--respire) ease-in-out infinite; }
@keyframes respire {
  0%, 100% { opacity: .62; }
  50% { opacity: 1; }
}

.ciel { position: fixed; inset: 0; z-index: -1; background: var(--nuit); }
.ciel .facade { position: absolute; inset: 0; width: 100%; height: 100%; }
@media (min-width: 900px) {
  .ciel .facade { left: auto; right: 0; width: 60vh; min-width: 46%; }
}

/* ---------- page de vente ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 0 2.5rem;
  background: linear-gradient(to bottom, rgba(5,8,26,0) 0%, rgba(5,8,26,.1) 16%, rgba(5,8,26,.86) 36%, rgba(5,8,26,.95) 100%);
}
@media (min-width: 900px) {
  .hero { justify-content: center; background: linear-gradient(to right, rgba(5,8,26,.96) 0%, rgba(5,8,26,.88) 45%, rgba(5,8,26,0) 75%); }
  .hero .colonne { margin-left: max(1.25rem, 8vw); }
}
.je-te-connais { font-size: 2.7rem; margin-bottom: .45em; text-shadow: 0 2px 24px rgba(0,0,0,.8); }
.portrait p { margin: 0 0 .3em; font-size: 1.12rem; text-shadow: 0 1px 12px rgba(5,8,26,.9); }
/* « both » : invisible pendant le délai, mais visible si le navigateur n'anime pas */
.portrait p, .hero-question, .fleche {
  animation: apparait 1.4s ease both;
  animation-delay: calc(var(--i) * .75s + .3s);
}
.portrait .pause { color: var(--brume); }
.hero-question { font-size: 1.4rem; color: var(--or); margin: .9em 0 .6em; }
.fleche { display: inline-block; font-size: 1.8rem; text-decoration: none; padding: .2em .4em; margin-left: -.4em; }
@keyframes apparait { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.respire {
  position: absolute; top: .9rem; left: 1.25rem; right: 1.25rem; margin: 0;
  font-size: .85rem; letter-spacing: .04em; color: var(--brume); opacity: .8;
}
@media (min-width: 900px) { .respire { left: auto; right: 2rem; text-align: right; } }

.panneau { background: rgba(5,8,26,.93); padding: 3.2rem 0 2.6rem; border-top: 1px solid rgba(34,48,94,.6); }
.chapeau { font-size: 1.3rem; color: #fff6e6; }

.contenu { margin: 1.6rem 0 2.2rem; }
.contenu > div { padding: .9rem 0 .9rem 1.2rem; border-left: 2px solid var(--ambre); margin-bottom: .6rem; }
.contenu dt { color: var(--or); font-size: 1.25rem; }
.contenu dd { margin: .15rem 0 0; color: #e6dfd2; }

.prix { text-align: center; padding: 1.8rem 1.2rem 1.4rem; border: 1px solid var(--trait); border-radius: 10px; background: rgba(13,21,48,.7); }
.prix-montant { font-size: 3.4rem; color: var(--or); margin: 0; line-height: 1.1; }
.prix-detail { color: var(--brume); font-size: 1rem; }
.prix-sous { color: var(--brume); font-size: .95rem; margin: .8em 0 0; }

.bouton {
  display: block; width: 100%;
  padding: 1.05rem 1.4rem;
  font: inherit; font-size: 1.2rem; text-align: center; text-decoration: none;
  color: var(--encre-bouton);
  background: linear-gradient(180deg, #ffe09a 0%, var(--ambre) 100%);
  border: 0; border-radius: 999px;
  box-shadow: 0 0 0 1px rgba(255,210,122,.4), 0 8px 30px rgba(242,178,79,.22);
  cursor: pointer;
}
.bouton:hover { color: var(--encre-bouton); filter: brightness(1.06); }
.bouton[disabled] { opacity: .65; cursor: wait; }
.bouton-calme { background: transparent; color: var(--or); box-shadow: inset 0 0 0 1px var(--or); }
.bouton-calme:hover { color: #ffe3a6; background: rgba(255,210,122,.08); }
@media (min-width: 600px) { .bouton { display: inline-block; width: auto; min-width: 18rem; } .prix .bouton { min-width: 16rem; } }

.etapes { padding-left: 1.4rem; margin: 0; }
.etapes li { margin-bottom: 1rem; padding-left: .3rem; }
.etapes li::marker { color: var(--or); }

.lignes { list-style: none; padding: 0; margin: 0 0 1.8rem; }
.lignes li { padding: .55rem 0; border-bottom: 1px solid rgba(34,48,94,.6); }
.lignes .lumiere { color: var(--or); border-bottom: 0; font-size: 1.25rem; }

.avertissement {
  font-size: .98rem; line-height: 1.55; color: #ddd5c6;
  border: 1px solid var(--trait); border-left: 3px solid var(--rouge);
  border-radius: 6px; padding: 1rem 1.1rem .2rem; margin: 2rem 0;
  background: rgba(13,21,48,.6);
}

.faq details { border-bottom: 1px solid rgba(34,48,94,.8); }
.faq summary { cursor: pointer; padding: .95rem 2rem .95rem 0; list-style: none; position: relative; color: #fff6e6; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: .2rem; top: .8rem; color: var(--or); font-size: 1.3rem; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: #e6dfd2; }

.panneau-fin { text-align: center; padding: 4rem 0 3rem; }
.fin-1 { font-size: 1.5rem; color: var(--brume); margin: 0; }
.fin-2 { font-size: 1.9rem; color: var(--or); margin: 0 0 1.4rem; }
.signature { margin-top: 2.4rem; color: #fff6e6; font-style: italic; line-height: 1.8; }

/* ---------- pied ---------- */
.pied { background: var(--nuit); border-top: 1px solid rgba(34,48,94,.6); padding: 2rem 1.25rem 2.6rem; text-align: center; font-size: .95rem; color: var(--brume); }
.pied a { color: var(--brume); }
.pied a:hover { color: var(--or); }
.pied nav { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem 1.2rem; margin: .4rem 0 1rem; }
.pied-marque a { color: var(--creme); text-decoration: none; }
.pied-petit { font-size: .85rem; max-width: 32rem; margin: 0 auto; }

/* ---------- commande ---------- */
.page-commande main, .page-merci main, .page-texte main { padding-top: 1.2rem; padding-bottom: 2rem; }
.retour { font-size: .95rem; margin-bottom: 1rem; }
.retour a { color: var(--brume); text-decoration: none; }
.bandeau { margin: 0 -1.25rem 1.6rem; }
.bandeau svg { display: block; width: 100%; height: auto; }
.facade-bandeau .fen .vitre { opacity: 0; transition: opacity 1.6s ease; }
.facade-bandeau .fen.allumee .vitre { opacity: 1; }

.formulaire { margin-top: 1.4rem; }
.champ { margin: 0 0 1.8rem; padding: 0; border: 0; min-width: 0; }
.champ > label, legend { display: block; font-size: 1.25rem; color: var(--or); margin-bottom: .45rem; padding: 0; }
label.petit { font-size: .95rem; color: var(--brume); margin: .8rem 0 .35rem; display: block; }
label.petit span, .aide { color: var(--brume); }
.aide { font-size: .98rem; margin: -.2rem 0 .5rem; }
input[type=text], input[type=email], textarea {
  width: 100%; font: inherit; font-size: 1.1rem; color: var(--creme);
  background: var(--nuit-2); border: 1px solid var(--trait); border-radius: 8px;
  padding: .8rem .9rem;
  -webkit-appearance: none; appearance: none;
}
textarea { resize: vertical; min-height: 6rem; line-height: 1.5; }
input:focus, textarea:focus { outline: none; border-color: var(--or); box-shadow: 0 0 0 3px rgba(255,210,122,.18); }
input::placeholder, textarea::placeholder { color: #66729a; }
.champ.invalide input, .champ.invalide textarea, .champ.invalide .choix label { border-color: var(--rouge); }

.choix { display: grid; gap: .6rem; }
.choix-3 { grid-template-columns: repeat(3, 1fr); }
.choix label {
  display: flex; gap: .7rem; align-items: flex-start; cursor: pointer;
  border: 1px solid var(--trait); border-radius: 8px; padding: .85rem .9rem;
  background: var(--nuit-2); font-size: 1.02rem; line-height: 1.45;
}
.choix-3 label { justify-content: center; text-align: center; padding: .8rem .3rem; font-size: .98rem; }
.choix-3 input { position: absolute; opacity: 0; pointer-events: none; }
.choix label:has(input:checked) { border-color: var(--or); background: rgba(255,210,122,.09); }
.choix input[type=radio] { accent-color: var(--ambre); margin-top: .3rem; flex: none; }

.consentements { margin: 2rem 0 1.4rem; }
.case { display: flex; gap: .8rem; align-items: flex-start; font-size: .98rem; line-height: 1.5; color: #e6dfd2; margin-bottom: 1.1rem; cursor: pointer; }
.case input { width: 1.35rem; height: 1.35rem; margin-top: .15rem; flex: none; accent-color: var(--ambre); }
.case.invalide span { color: var(--rouge); }

.piege { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.erreur { color: var(--rouge); border: 1px solid var(--rouge); border-radius: 6px; padding: .8rem 1rem; font-size: 1rem; }
.sous-bouton { font-size: .9rem; color: var(--brume); margin-top: .8rem; text-align: center; }

/* ---------- merci, 404, livraison ---------- */
.illustration { margin: 0 -1.25rem 1.6rem; }
.illustration svg { display: block; width: 100%; height: auto; max-height: 52vh; }
.page-merci .bouton { margin: .4rem 0 1rem; }
.reference strong { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; letter-spacing: .06em; color: var(--or); }

.livraison .prenom { font-size: 3rem; color: var(--or); margin: 0; line-height: 1.1; }
.livraison h1 { font-size: 2rem; }
.lecteur { margin: 1.6rem 0 1rem; padding: 1.2rem; border: 1px solid var(--trait); border-radius: 10px; background: rgba(13,21,48,.8); }
.lecteur audio { width: 100%; display: block; margin-bottom: 1rem; }
.lecteur .bouton { font-size: 1.05rem; }
.livraison h2 { font-size: 1.5rem; margin-top: 1.6em; }
.petit-texte { font-size: .92rem; color: var(--brume); }

/* ---------- pages de texte ---------- */
.texte-legal h1 { font-size: 2.2rem; }
.texte-legal h2 { font-size: 1.35rem; margin-top: 1.8em; }
.texte-legal p, .texte-legal td { font-size: 1.02rem; color: #e6dfd2; }
.maj { color: var(--brume); font-size: .95rem; }
.tableau { width: 100%; border-collapse: collapse; margin: 1rem 0 1.4rem; font-size: .95rem; }
.tableau th { text-align: left; color: var(--or); font-weight: normal; border-bottom: 1px solid var(--trait); padding: .5rem .4rem; }
.tableau td { border-bottom: 1px solid rgba(34,48,94,.6); padding: .6rem .4rem; vertical-align: top; }
@media (max-width: 640px) {
  .tableau thead { display: none; }
  .tableau tr { display: block; border: 1px solid var(--trait); border-radius: 8px; padding: .5rem .8rem; margin-bottom: .9rem; }
  .tableau td { display: block; border: 0; padding: .25rem 0; }
  .tableau td:nth-child(1) { color: #fff6e6; }
  .tableau td:nth-child(2)::before { content: "Pourquoi : "; color: var(--brume); }
  .tableau td:nth-child(3)::before { content: "Base : "; color: var(--brume); }
  .tableau td:nth-child(4)::before { content: "Durée : "; color: var(--brume); }
}
mark.manque { background: #5a1a12; color: #ffd7cf; padding: 0 .3em; border-radius: 3px; font-size: .9em; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .portrait p, .hero-question, .fleche { animation: none; opacity: 1; }
  @keyframes respire { 0%, 100% { opacity: .8; } 50% { opacity: 1; } }
}
@media (min-width: 600px) {
  h1 { font-size: 3rem; }
  .je-te-connais { font-size: 3.8rem; }
}
