/* Voix Lactée — la nuit bleue et l'or, une touche de crépuscule.
   Pensé d'abord pour le téléphone et pour un public de 45 ans et plus : grands caractères, gros boutons, contrastes forts. */

@font-face { font-family: 'Marcellus'; src: url('../fonts/marcellus-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Atkinson Hyperlegible'; src: url('../fonts/atkinson-hyperlegible-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Atkinson Hyperlegible'; src: url('../fonts/atkinson-hyperlegible-latin-700-normal.woff2') format('woff2'); font-weight: 700; font-display: swap; }

:root {
  --nuit: #0e1634;
  --nuit-2: #162250;
  --nuit-3: #1c2a5c;
  --trait: #2c3a72;
  --trait-fort: #46558f;
  --or: #e6c27a;
  --creme: #f4ecdb;
  --brume: #d3d7ea;
  --brume-2: #aab2d3;
  --rose: #f0b2a8;
  --f-titre: 'Marcellus', Georgia, 'Times New Roman', serif;
  --f-texte: 'Atkinson Hyperlegible', 'Segoe UI', system-ui, sans-serif;
  --f-glyphes: 'Segoe UI Symbol', 'Noto Sans Symbols 2', 'Apple Symbols', 'DejaVu Sans', sans-serif;
  --onglets: 72px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
/* La barre de défilement aux couleurs du site (owner 14/11 : « pas organique, cohérente avec les couleurs ») : la nuit, et le
   trait du site pour le curseur. scrollbar-color pour Chrome, Edge, Brave et Firefox ; les règles -webkit pour Safari. */
html { scrollbar-color: var(--trait-fort) var(--nuit); }
::-webkit-scrollbar { width: 12px; height: 12px; background: var(--nuit); }
::-webkit-scrollbar-thumb { background: var(--trait-fort); border-radius: 999px; border: 3px solid var(--nuit); }
::-webkit-scrollbar-thumb:hover { background: var(--or); }
::-webkit-scrollbar-corner { background: var(--nuit); }
body { margin: 0; background: var(--nuit); color: var(--creme); font-family: var(--f-texte); font-size: 21px; line-height: 1.6; }
img { max-width: 100%; display: block; }
a { color: var(--or); }
a:hover { color: var(--creme); }
:focus-visible { outline: 3px solid var(--or); outline-offset: 3px; }
h1:focus, h1:focus-visible { outline: none; }
h1, h2, h3 { font-family: var(--f-titre); font-weight: 400; margin: 0; text-wrap: balance; line-height: 1.15; }
h1 { font-size: clamp(2.4rem, 7vw, 3.8rem); }
p { margin: 0; }

.conteneur { position: relative; z-index: 1; max-width: 1180px; margin: 0 auto; padding-inline: 20px; }
main { position: relative; z-index: 1; }
body { padding-bottom: calc(var(--onglets) + env(safe-area-inset-bottom, 0px)); }
@media (min-width: 900px) { body { padding-bottom: 0; } .conteneur { padding-inline: 32px; } }

.surtitre { font-size: 15px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--or); }
.titre-section { font-size: clamp(1.9rem, 5vw, 2.6rem); }
.chapo { color: var(--brume); max-width: 36em; }
.note { font-size: 16px; color: var(--brume-2); }
.or { color: var(--or); }
.rose { color: var(--rose); }

.bouton { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 56px; padding: 0 28px; border-radius: 999px; font-weight: 700; text-decoration: none; background: var(--or); color: var(--nuit); }
.bouton:hover { background: #efd193; color: var(--nuit); }
.bouton.discret { background: none; color: var(--creme); border: 2px solid var(--trait-fort); font-weight: 400; }
.bouton.discret:hover { border-color: var(--or); color: var(--or); }
.badge { display: inline-block; align-self: start; justify-self: start; padding: 4px 12px; border-radius: 999px; background: rgba(230, 194, 122, .16); border: 1px solid var(--or); color: var(--or); font-size: 14px; font-weight: 700; letter-spacing: .04em; }

/* Ciel étoilé */
.etoiles { position: fixed; inset: 0; pointer-events: none; z-index: 0; }
.etoiles span { position: absolute; border-radius: 50%; background: var(--creme); animation: scintille 4s ease-in-out infinite; }
@keyframes scintille { 0%, 100% { opacity: .2; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .etoiles span { animation: none; } }

/* En-tête */
.entete { position: relative; z-index: 2; }
.entete-ligne { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: calc(18px + env(safe-area-inset-top, 0px)) 18px; }
.marque { display: inline-flex; align-items: center; gap: 10px; color: var(--or); text-decoration: none; font-family: var(--f-titre); font-size: 28px; }
/* Dans le sens où les bras traînent, comme une galaxie. Durée et angle de départ sont posés par le serveur
   (DureeTour dans MainLayout) : l'angle suit l'heure, sans saut d'une page à l'autre. */
.marque-spirale { flex: none; animation: spirale 80s linear infinite; }
@keyframes spirale { to { transform: rotate(-360deg); } }
@media (prefers-reduced-motion: reduce) { .marque-spirale { animation: none; } }
.nav-haut { display: none; gap: 30px; font-size: 20px; }
.nav-haut a { display: inline-flex; align-items: center; gap: 8px; color: var(--creme); text-decoration: none; padding-block: 8px; border-bottom: 2px solid transparent; }
.nav-haut svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; opacity: .85; }
.nav-haut a.active, .nav-haut a:hover { color: var(--or); border-bottom-color: var(--or); }

/* Onglets en bas (téléphone) */
.onglets { position: fixed; z-index: 10; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(4, 1fr); padding-bottom: env(safe-area-inset-bottom, 0px); background: rgba(14, 22, 52, .96); border-top: 1px solid var(--trait); backdrop-filter: blur(8px); }
.onglets a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: var(--onglets); color: var(--brume-2); text-decoration: none; font-size: 14px; }
.onglets svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; }
.onglets a.active { color: var(--or); }
.onglets a.active svg { fill: rgba(230, 194, 122, .18); }
@media (min-width: 900px) { .nav-haut { display: flex; } .onglets { display: none; } }

/* Pied de page */
.pied { position: relative; z-index: 1; margin-top: 48px; border-top: 1px solid var(--trait); background: linear-gradient(180deg, rgba(22, 34, 80, .55), rgba(14, 22, 52, 0) 60%); }
.pied-haut { display: grid; gap: 32px; padding-block: 40px 28px; }
@media (min-width: 900px) { .pied-haut { grid-template-columns: minmax(0, 1.3fr) minmax(0, .8fr) minmax(0, 1.1fr); gap: 48px; } }
.pied-marque { display: grid; gap: 14px; align-content: start; }
.pied-devise { font-family: var(--f-titre); font-size: 24px; color: var(--or); }
.pied-reseaux { display: flex; flex-wrap: wrap; gap: 10px; }
.pied-reseaux a { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--trait-fort); color: var(--creme); }
.pied-reseaux a:hover { border-color: var(--or); color: var(--or); }
.pied-reseaux svg { width: 22px; height: 22px; fill: currentColor; }
.pied-reseaux svg .trait { fill: none; stroke: currentColor; stroke-width: 1.6; }
.pied-colonne { display: grid; gap: 10px; align-content: start; }
.pied-colonne h2 { font-size: 15px; font-family: var(--f-texte); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brume-2); }
.pied-colonne a { color: var(--creme); text-decoration: none; font-size: 19px; padding-block: 4px; }
.pied-colonne a:hover { color: var(--or); }
.pied-facons { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; color: var(--brume); font-size: 17px; line-height: 1.45; }
.pied-facons li { display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: 8px; }
.pied-facons li::before { content: '✦'; color: var(--or); font-size: 12px; line-height: 2; }
.pied-alerte { display: flex; align-items: center; gap: 14px; margin: 0; padding: 16px 20px; border-radius: 18px; border: 1px solid rgba(230, 194, 122, .45); background: rgba(230, 194, 122, .06); color: var(--creme); font-size: 18px; }
.pied-alerte svg { flex: none; width: 30px; height: 30px; fill: none; stroke: var(--or); stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.pied-bas { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 22px; padding-block: 22px 32px; font-size: 15px; color: var(--brume-2); }
.pied-bas a { color: var(--brume); padding-block: 6px; }
.pied-avis { flex-basis: 100%; }
@media (min-width: 900px) { .pied-avis { flex-basis: auto; margin-left: auto; } }

/* Blocs */
.bloc { display: grid; gap: 24px; padding-block: 40px; }
.bloc.premier { padding-top: 12px; }
.entete-section { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 20px; }
.lien-suite { font-weight: 700; padding-block: 8px; }

/* Tête du jour */
.tete-jour { display: grid; gap: 20px; padding-block: 12px 8px; }
.tete-jour-texte { display: grid; gap: 14px; }
.ciel-intro { display: grid; gap: 8px; color: var(--brume); font-size: 21px; max-width: 38em; }
.ciel-intro .nombre { color: var(--brume-2); font-size: 18px; }
.puce-lune { justify-self: start; display: inline-flex; align-items: center; gap: 14px; padding: 10px 22px 10px 10px; border-radius: 999px; background: var(--nuit-2); border: 1px solid var(--trait-fort); color: var(--creme); text-decoration: none; font-size: 17px; line-height: 1.3; }
.puce-lune em { font-style: normal; color: var(--or); }
@media (min-width: 900px) { .tete-jour { grid-template-columns: 1fr auto; align-items: end; } }

/* Vedettes */
.vedettes { display: grid; gap: 18px; }
@media (min-width: 760px) { .vedettes { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.vedette { position: relative; display: flex; align-items: flex-end; min-height: 440px; border-radius: 24px; overflow: hidden; color: var(--creme); text-decoration: none; border: 1.5px solid var(--or); }
.vedette img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vedette::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14, 22, 52, 0) 30%, rgba(14, 22, 52, .95) 75%); }
.vedette-texte { position: relative; z-index: 1; display: grid; gap: 8px; padding: 24px; }
.vedette-texte strong { font-family: var(--f-titre); font-weight: 400; font-size: 36px; }
.vedette-texte > span:not(.badge) { color: var(--brume); }
.lire { color: var(--or) !important; font-weight: 700; }

/* Grille des 12 signes */
.signes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (min-width: 640px) { .signes { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .signes { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.signe { display: flex; flex-direction: column; border-radius: 20px; overflow: hidden; background: var(--nuit-2); border: 1px solid var(--trait); color: var(--creme); text-decoration: none; }
.signe:hover { border-color: var(--or); color: var(--creme); }
.signe img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 60%; }
.signe-texte { display: grid; gap: 4px; padding: 14px 16px 16px; }
.signe-texte strong { font-family: var(--f-titre); font-weight: 400; font-size: 26px; }
.periode { font-size: 15px; color: var(--brume-2); }
.signes.mini { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (min-width: 760px) { .signes.mini { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.signes.mini .signe-texte strong { font-size: 19px; }

/* Geste du jour */
.geste { display: grid; gap: 10px; padding: 26px 24px; border-radius: 24px; background: var(--nuit-2); border: 1px solid var(--trait-fort); font-size: 22px; }
.geste .envoi { font-family: var(--f-titre); color: var(--or); font-size: 21px; }

/* Fiche d'un signe */
.fiche { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
.fiche h1 { font-size: clamp(3.2rem, 11vw, 5rem); }
.fiche-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.fiche-suite { display: grid; gap: 28px; max-width: 820px; padding-block: 8px 24px; }
.fiche-date { color: var(--brume-2); font-size: 18px; }
.fiche-message { display: grid; gap: 14px; font-size: 24px; line-height: 1.55; }
.fiche-ciel { display: grid; gap: 10px; padding-top: 18px; border-top: 1px solid var(--trait); color: var(--brume); }
.fiche-ciel h2 { font-size: 28px; color: var(--creme); }
.fiche-voisins { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; padding-top: 8px; }

/* Le ciel */
.ciel { display: grid; gap: 28px; }
@media (min-width: 980px) { .ciel { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: start; } }
.ciel-3d { position: relative; aspect-ratio: 1 / 0.92; display: grid; place-items: center; border-radius: 26px; background: radial-gradient(ellipse at center, #1b2a5e 0%, var(--nuit) 72%); overflow: hidden; }
.ciel-3d .roue { width: min(360px, 88%); height: auto; }
.ciel-3d canvas { display: block; width: 100%; height: 100%; cursor: grab; }
.ciel-infos { display: grid; gap: 18px; }
.carte-lune { display: flex; align-items: center; gap: 18px; padding: 18px 20px; border-radius: 20px; background: var(--nuit-2); border: 1px solid var(--trait); }
.carte-lune svg { flex: none; }
.carte-lune-texte { display: grid; gap: 2px; min-width: 0; color: var(--brume); font-size: 18px; }
.carte-lune-texte strong { font-family: var(--f-titre); font-weight: 400; font-size: 26px; color: var(--creme); }
.astres { list-style: none; margin: 0; padding: 0; font-variant-numeric: tabular-nums; }
.astres li { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; column-gap: 12px; align-items: baseline; padding: 12px 2px; border-bottom: 1px solid var(--trait); }
.astres-glyphe { font-family: var(--f-glyphes); font-size: 24px; }
.astres-pos { color: var(--brume); text-align: right; }
.astres-retro { grid-column: 2 / -1; color: var(--rose); font-size: 16px; }
@media (min-width: 640px) { .astres li { grid-template-columns: 34px minmax(0, 1fr) minmax(0, 1.2fr) auto; } .astres-pos { text-align: left; } .astres-retro { grid-column: auto; text-align: right; } }

/* Rendez-vous */
.rdv-grille { display: grid; gap: 18px; }
@media (min-width: 760px) { .rdv-grille { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.rdv { display: grid; grid-template-columns: 110px minmax(0, 1fr); border-radius: 20px; overflow: hidden; background: var(--nuit-2); border: 1px solid var(--trait); }
.rdv img { width: 100%; height: 100%; object-fit: cover; object-position: center 55%; }
.rdv-texte { display: grid; gap: 4px; align-content: center; padding: 16px 18px; }
.rdv-quand { font-size: 14px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--or); }
.rdv h3 { font-size: 24px; }
.rdv p { color: var(--brume); font-size: 17px; }
@media (min-width: 760px) { .rdv { grid-template-columns: 1fr; } .rdv img { height: 220px; } }

/* Calendrier */
.mois { display: grid; gap: 8px; }
.mois h2 { font-size: 30px; color: var(--or); padding-top: 12px; }
.calendrier { list-style: none; margin: 0; padding: 0; }
.calendrier li { display: grid; grid-template-columns: 38px minmax(0, 1fr); column-gap: 14px; align-items: center; padding: 12px 2px; border-bottom: 1px solid var(--trait); }
.cal-icone { grid-row: span 2; display: grid; place-items: center; }
.cal-glyphe { font-family: var(--f-glyphes); font-size: 24px; color: var(--or); }
.cal-date { font-size: 16px; color: var(--brume-2); }
.cal-titre { font-size: 20px; }


/* Menu : le thème en or */
.nav-haut a.nav-theme { color: var(--or); }

/* Pied : les réseaux */
.pied-reseaux { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 20px; }
.pied-reseaux a { color: var(--creme); padding-block: 8px; }

/* Invitation vers le thème */
.appel-theme { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 18px; align-items: center; padding: 14px; border-radius: 24px; background: linear-gradient(135deg, #1d2b62, var(--nuit-2)); border: 1.5px solid var(--or); color: var(--creme); text-decoration: none; }
.appel-theme:hover { color: var(--creme); box-shadow: 0 0 28px rgba(230, 194, 122, .18); }
.appel-theme img { width: 110px; height: 150px; object-fit: cover; border-radius: 55px 55px 12px 12px; }
.appel-texte { display: grid; gap: 6px; }
.appel-texte strong { font-family: var(--f-titre); font-weight: 400; font-size: 24px; line-height: 1.2; }
.appel-texte > span:not(.surtitre) { color: var(--brume); font-size: 18px; }
@media (min-width: 760px) { .appel-theme { grid-template-columns: 150px minmax(0, 1fr); padding: 18px 28px 18px 18px; } .appel-theme img { width: 150px; height: 200px; border-radius: 75px 75px 14px 14px; } .appel-texte strong { font-size: 30px; } }

/* Page du thème */
.formules { display: grid; gap: 18px; }
@media (min-width: 900px) { .formules { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.formule { display: flex; flex-direction: column; border-radius: 22px; overflow: hidden; background: var(--nuit-2); border: 1px solid var(--trait-fort); color: var(--creme); text-decoration: none; }
a.formule:hover { border-color: var(--or); color: var(--creme); }
.formule.vedette-formule { border: 2px solid var(--or); }
.formule img { width: 100%; height: 200px; object-fit: cover; object-position: center 55%; }
.formule-texte { display: grid; gap: 8px; padding: 20px 22px 24px; }
.formule-nom { font-family: var(--f-titre); font-weight: 400; font-size: 30px; }
.formule-type { color: var(--or); font-weight: 700; font-size: 17px; }
.formule-liste { display: grid; gap: 6px; margin-top: 4px; color: var(--brume); font-size: 18px; }
.formule-liste span::before { content: '✦ '; color: var(--or); font-size: 13px; }
.exemple { display: grid; gap: 24px; align-items: center; }
@media (min-width: 900px) { .exemple { grid-template-columns: 360px minmax(0, 1fr); } .exemple-lune { grid-column: 2; } }
.exemple-roue .roue { width: min(340px, 100%); margin-inline: auto; display: block; }
.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.trio-astre { display: grid; gap: 8px; text-align: center; font-size: 17px; line-height: 1.3; }
.trio-astre img { width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; object-position: center 60%; border-radius: 999px 999px 14px 14px; border: 1px solid var(--trait-fort); }
.exemple-lune { display: flex; align-items: center; gap: 14px; color: var(--brume); font-size: 18px; }
.exemple-lune svg { flex: none; }
.etapes { margin: 0; padding-left: 1.4em; display: grid; gap: 14px; color: var(--brume); max-width: 46em; }
.etapes strong { color: var(--creme); }
.etapes li::marker { color: var(--or); font-family: var(--f-titre); }
.engagements, .ouverture { display: grid; gap: 14px; padding: 26px 24px; border-radius: 24px; background: var(--nuit-2); border: 1px solid var(--trait-fort); }
.engagements h2, .ouverture h2 { font-size: 30px; }
.engagements ul { margin: 0; padding-left: 1.1em; display: grid; gap: 8px; color: var(--brume); }
.ouverture { border-color: var(--or); text-align: center; justify-items: center; }
.ouverture p { color: var(--brume); }

/* Illustration fondue dans la nuit, derrière le haut de page (comme les écrans de commande) */
[hidden] { display: none !important; }
.incruste { position: relative; isolation: isolate; }
.incruste::before { content: ''; position: absolute; z-index: -1; inset: 0 0 auto 0; height: 560px; background: var(--fond) center 35% / cover no-repeat; opacity: .42;
  -webkit-mask-image: linear-gradient(180deg, #000 10%, rgba(0, 0, 0, .55) 50%, transparent 100%); mask-image: linear-gradient(180deg, #000 10%, rgba(0, 0, 0, .55) 50%, transparent 100%); }
@media (min-width: 900px) {
  .incruste::before { left: auto; right: 0; width: 58%; height: 640px; opacity: .5;
    -webkit-mask-image: radial-gradient(ellipse 75% 70% at 70% 35%, #000 25%, transparent 75%); mask-image: radial-gradient(ellipse 75% 70% at 70% 35%, #000 25%, transparent 75%); }
}
.tete-incrustee { display: grid; gap: 16px; padding-block: 120px 28px; max-width: 900px; margin-inline: 0; }
@media (min-width: 900px) { .tete-incrustee { padding-top: 56px; margin-inline: auto; max-width: 1180px; } .tete-incrustee > * { max-width: 760px; } }
.tete-incrustee .bloc, .tete-incrustee.bloc { padding-top: 120px; }
@media (min-width: 900px) { .tete-incrustee.bloc { padding-top: 56px; } }

/* Titres : pas de surtitre, une phrase qui dit quelque chose */
.date-ligne { display: inline-flex; align-items: center; gap: 10px; color: var(--brume); font-size: 18px; text-decoration: none; }
a.date-ligne:hover { color: var(--or); }
.une-titre { font-size: clamp(2rem, 5.6vw, 3.1rem); line-height: 1.18; max-width: 22em; }
.tete-page { display: grid; gap: 10px; }
.tete-page h1 { font-size: clamp(2.2rem, 6vw, 3.4rem); }
.geste-titre { font-size: 26px; color: var(--or); }

/* Votre signe, retenu sur l'appareil */
.mon-signe { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 18px; align-items: start; padding: 18px; border-radius: 24px; background: var(--nuit-2); border: 1.5px solid var(--or); color: var(--creme); text-decoration: none; }
.mon-signe img { width: 96px; height: 130px; object-fit: cover; border-radius: 48px 48px 12px 12px; }
.mon-signe-texte { display: grid; gap: 8px; font-size: 21px; }
.mon-signe-texte strong { font-family: var(--f-titre); font-weight: 400; font-size: 26px; color: var(--or); }
.lien-bouton, .garder-signe { justify-self: start; min-height: 48px; padding: 0 20px; border-radius: 999px; border: 1.5px solid var(--trait-fort); background: none; color: var(--brume); font: inherit; font-size: 17px; cursor: pointer; }
.lien-bouton:hover, .garder-signe:hover { border-color: var(--or); color: var(--or); }
.garder-signe.garde { border-color: var(--or); color: var(--nuit); background: var(--or); font-weight: 700; }

/* Les douze signes en constellation */
/* Ordinateur : grande, sans défilement. Téléphone : taille lisible, la bande glisse au doigt (centrée sur le signe par site.js). */
.constellation { min-width: 0; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; margin-inline: -20px; padding-inline: 20px; -webkit-overflow-scrolling: touch; }
.constellation::-webkit-scrollbar { display: none; }
.constellation svg { width: 640px; max-width: none; height: auto; display: block; overflow: visible; }
@media (min-width: 760px) { .constellation { overflow: visible; margin-inline: 0; padding-inline: 0; } .constellation svg { width: min(820px, 100%); } }
.constellation .nom-signe { font-family: var(--f-texte); }
.constellation a:hover .nom-signe, .constellation a:focus-visible .nom-signe { fill: #e6c27a; }
.constellation a .point { transition: fill .2s, r .2s; }
.constellation a:hover .point, .constellation a:focus-visible .point { fill: #e6c27a; r: 7.5; }
.constellation .glyphe { font-family: var(--f-glyphes); }
.constellation .pulse { animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { r: 9; } 50% { r: 11.5; } }
@media (prefers-reduced-motion: reduce) { .constellation .pulse { animation: none; } }

/* Calendrier en fil d'étoiles */
.calendrier { position: relative; }
.calendrier::before { content: ''; position: absolute; left: 19px; top: 8px; bottom: 8px; border-left: 1px dashed rgba(230, 194, 122, .45); }
.cal-icone { position: relative; z-index: 1; background: var(--nuit); border-radius: 50%; padding: 4px; }

/* Titre réservé aux lecteurs d'écran et aux moteurs de recherche */
.visuellement-cache { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Le ciel du jour, en grand */
.ciel-hero { position: relative; z-index: 1; }
.ciel-vivant { position: relative; height: min(72vh, 760px); min-height: 420px; overflow: hidden;
  background: radial-gradient(ellipse 70% 60% at 50% 55%, #1b2a5e 0%, var(--nuit) 75%); }
.ciel-scene { position: absolute; top: 58px; left: 0; right: 0; bottom: 118px; display: grid; place-items: center; }
/* le ciel se cadre entre la pastille de la date et les textes du bas : plus rien ne passe dessous */
.ciel-vivant.compact .ciel-scene { bottom: 44px; }
@media (max-width: 520px) { .ciel-scene { bottom: 128px; } .ciel-vivant.compact .ciel-scene { bottom: 44px; } }
.ciel-scene .roue { width: min(420px, 82%); height: auto; }
.ciel-scene canvas { display: block; width: 100%; height: 100%; }
.ciel-date { position: absolute; z-index: 2; top: 14px; left: 50%; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 10px; width: max-content; max-width: calc(100% - 32px); padding: 8px 18px 8px 10px; border-radius: 999px; background: rgba(14, 22, 52, .78); border: 1px solid var(--trait); color: var(--creme); font-size: 17px; line-height: 1.3; text-decoration: none; }
.ciel-date svg { flex: none; }
@media (max-width: 520px) { .ciel-date { font-size: 15px; border-radius: 18px; } }
.ciel-date:hover { color: var(--or); }
.ciel-bas { position: absolute; z-index: 2; left: 16px; right: 16px; bottom: 18px; display: grid; gap: 6px; text-align: center; pointer-events: none; }
.ciel-indice { color: var(--brume-2); font-size: 15px; }
.signature { font-family: var(--f-titre); font-size: clamp(1.15rem, 2.6vw, 1.6rem); color: var(--or); text-wrap: balance; }
.ciel-bulle { position: absolute; z-index: 3; top: 0; left: 0; display: grid; gap: 4px; max-width: min(300px, calc(100% - 16px)); padding: 14px 18px; border-radius: 18px; background: rgba(14, 22, 52, .92); border: 1px solid var(--or); box-shadow: 0 12px 30px rgba(0, 0, 0, .35); font-size: 18px; line-height: 1.4; pointer-events: none; }
.ciel-bulle strong { font-family: var(--f-titre); font-weight: 400; font-size: 26px; }
.bulle-pos { color: var(--creme); font-weight: 700; }
.bulle-sens { color: var(--brume); }
.bulle-retro { color: var(--rose); font-size: 16px; }

@media (max-width: 520px) { .ciel-vivant { height: min(66vh, 560px); } }

/* Les planètes du jour, en puces : on les touche comme dans le ciel */
.puces-astres { list-style: none; margin: 0 auto; padding: 14px 20px 6px; display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; max-width: 1180px; position: relative; z-index: 1; }
.puces-astres::-webkit-scrollbar { display: none; }
@media (min-width: 900px) { .puces-astres { flex-wrap: wrap; justify-content: center; overflow: visible; } }
.puce-astre { display: inline-flex; align-items: baseline; gap: 8px; min-height: 48px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--trait-fort); background: var(--nuit-2); color: var(--creme); font: inherit; font-size: 17px; white-space: nowrap; cursor: pointer; align-items: center; }
.puce-astre:hover, .puce-astre[aria-pressed="true"] { border-color: var(--or); background: #1f2d63; }
.puce-glyphe { font-family: var(--f-glyphes); font-size: 20px; }
.puce-signe { color: var(--brume); }
.puce-retro { color: var(--rose); }

/* Deux cartes côte à côte : le ciel du jour et le geste */
.deux-colonnes { display: grid; gap: 18px; }
@media (min-width: 900px) { .deux-colonnes { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; } }
.carte-jour { display: grid; gap: 10px; padding: 26px 24px; border-radius: 24px; background: var(--nuit-2); border: 1px solid var(--trait); color: var(--brume); }
.carte-jour .nombre { color: var(--brume-2); font-size: 18px; }

/* L'horoscope de la semaine : l'accroche, les « mouvements » du ciel et les gestes, puis chaque jour */
.semaine-dates { color: var(--or); font-size: 20px; }
.semaine-accroche { display: grid; gap: 12px; max-width: 40em; color: var(--brume); }
.semaine-accroche p:first-child { font-family: var(--f-titre); font-size: clamp(1.4rem, 4vw, 1.8rem); line-height: 1.3; color: var(--creme); }
.semaine-accroche .bouton { justify-self: start; margin-top: 6px; }
.semaine-suite { display: grid; gap: 12px; max-width: 40em; color: var(--brume); }
.semaine-suite p:last-child { font-family: var(--f-titre); font-size: clamp(1.3rem, 3.6vw, 1.6rem); line-height: 1.3; color: var(--or); }
.rdv-semaine { margin: 0 0 4px; padding: 14px 16px 14px 34px; border-radius: 16px; background: var(--nuit-3); border: 1px solid var(--trait-fort); color: var(--creme); display: grid; gap: 6px; font-size: 19px; }
.rdv-semaine li::marker { color: var(--or); }
.carte-jour .mouvement, .geste .mouvement { margin-top: 8px; color: var(--creme); font-weight: 700; }
.carte-jour .mouvement:first-of-type { margin-top: 0; }
.geste .question { font-family: var(--f-titre); color: var(--creme); }
.gestes-semaine { font-size: 21px; }
.jours { display: grid; gap: 16px; }
@media (min-width: 700px) { .jours { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1050px) { .jours { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.jour { display: grid; gap: 8px; align-content: start; padding: 22px 22px; border-radius: 22px; background: var(--nuit-2); border: 1px solid var(--trait); color: var(--brume); }
.jour h3 { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; color: var(--or); font-size: 24px; }
.jour.aujourdhui { border-color: var(--or); box-shadow: 0 0 0 1px var(--or); }
.signature-fin { text-align: center; font-family: var(--f-titre); font-size: clamp(1.5rem, 4vw, 2.2rem); color: var(--or); padding-block: 12px 24px; }

/* Les constellations qui se dessinent : les étoiles apparaissent, puis se relient et restent liées */
.constellation-deco { display: flex; justify-content: center; padding-block: 8px; position: relative; z-index: 1; }
.constellation-deco svg { width: min(260px, 70%); height: auto; overflow: visible; }
.trace-pret .trait { stroke-dasharray: 1; stroke-dashoffset: 1; }
.trace-pret .astre-pt { opacity: 0; }
.trace-on .astre-pt { animation: apparaitre .45s ease forwards; animation-delay: calc(var(--i, 0) * 110ms); }
.trace-on .trait { animation: tracer 1.6s ease-in-out forwards .5s; }
@keyframes tracer { to { stroke-dashoffset: 0; } }
@keyframes apparaitre { from { opacity: 0; } to { opacity: 1; } }

/* Accueil : l'offre et le ciel du jour côte à côte */
.accueil-hero { display: grid; gap: 22px; padding-block: 12px 24px; align-items: center; }
@media (min-width: 980px) { .accueil-hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 40px; padding-top: 28px; } }
.accueil-texte { display: grid; gap: 18px; }
.accueil-texte h1 { font-size: clamp(2.3rem, 6vw, 3.6rem); line-height: 1.1; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.accueil-ciel .ciel-vivant { border-radius: 28px; border: 1px solid var(--trait); }
.ciel-vivant.compact { height: 520px; min-height: 0; }
@media (max-width: 520px) { .ciel-vivant.compact { height: 400px; } }
.engagements-bande { list-style: none; display: grid; gap: 14px; padding-block: 16px 8px; margin: 0 auto; }
@media (min-width: 760px) { .engagements-bande { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.engagements-bande li { display: flex; align-items: center; gap: 14px; color: var(--brume); font-size: 17px; line-height: 1.35; }
.engagements-bande strong { display: block; color: var(--creme); font-size: 19px; }
.engagements-bande svg { flex: none; width: 34px; height: 34px; fill: none; stroke: var(--or); stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; }
.tete-simple { display: grid; gap: 10px; padding-block: 16px 4px; }
.tete-simple h1 { font-size: clamp(2.2rem, 6vw, 3.2rem); }

/* À offrir */
.offrir { display: grid; gap: 20px; padding: 18px; border-radius: 26px; background: linear-gradient(135deg, #1d2b62, var(--nuit-2)); border: 1.5px solid var(--or); scroll-margin-top: 24px; }
.offrir img { width: 100%; height: 220px; object-fit: cover; object-position: center 30%; border-radius: 18px; }
.offrir-texte { display: grid; gap: 12px; align-content: center; }
.offrir-texte h2 { font-size: clamp(2rem, 5vw, 2.6rem); color: var(--or); }
.offrir-texte p { color: var(--creme); }
.offrir-texte ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; color: var(--brume); font-size: 18px; }
.offrir-texte li::before { content: '✦ '; color: var(--or); font-size: 13px; }
.offrir-texte .bouton { justify-self: start; margin-top: 6px; }
@media (min-width: 900px) { .offrir { grid-template-columns: 320px minmax(0, 1fr); gap: 36px; padding: 22px 36px 22px 22px; } .offrir img { height: 100%; min-height: 300px; } }

/* Être prévenu(e) de l'ouverture */
.attente { display: grid; gap: 14px; padding: 26px 24px; border-radius: 24px; background: var(--nuit-2); border: 1px solid var(--trait-fort); scroll-margin-top: 24px; }
.attente-titre { font-size: clamp(1.7rem, 4.5vw, 2.3rem); }
.attente-texte { margin: 0; color: var(--brume); max-width: 46em; }
.attente-form { display: grid; gap: 12px; }
.attente-form label { color: var(--brume); font-size: 17px; }
.attente-ligne { display: flex; flex-wrap: wrap; gap: 10px; }
.attente-ligne input { flex: 1 1 260px; min-width: 0; height: 56px; padding: 0 18px; border-radius: 14px; border: 1.5px solid var(--trait-fort); background: var(--nuit); color: var(--creme); font: inherit; font-size: 19px; }
.attente-ligne input:focus { border-color: var(--or); outline: none; }
.attente-accord { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 10px; align-items: start; cursor: pointer; }
.attente-accord input { width: 22px; height: 22px; margin: 3px 0 0; accent-color: var(--or); }
.attente-ok { padding: 14px 18px; border-radius: 14px; border: 1px solid var(--or); color: var(--creme); }
.attente-erreur { margin: 0; padding-left: 1.2em; color: var(--rose); font-size: 17px; }
.miel { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* La commande de la carte du ciel : l'aperçu (carte et fond d'écran côte à côte), le formulaire en champs larges */
.carte-prix { color: var(--creme); font-size: 22px; }
.carte-prix strong { color: var(--or); font-family: var(--f-titre); font-weight: 400; font-size: 30px; }
/* Les colonnes suivent la forme des images (720×900 = 0,8 ; fond d'écran et version animée 540×960 = 0,5625) : toutes à
   la même hauteur. Sur téléphone, deux par deux : la roue et la carte, puis le fond d'écran et la version animée. */
.carte-apercu { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-items: start; max-width: 760px; }
@media (min-width: 900px) { .carte-apercu { grid-template-columns: minmax(0, .8fr) minmax(0, .8fr) minmax(0, .5625fr) minmax(0, .5625fr); gap: 14px; max-width: 1180px; } }
.carte-apercu img { width: 100%; height: auto; border-radius: 18px; border: 1px solid var(--trait-fort); }
/* La version animée : la peinture du signe qui respire, une lueur qui passe, des étoiles qui scintillent (aperçu en CSS) */
.carte-animee { position: relative; overflow: hidden; aspect-ratio: 540 / 960; border-radius: 18px; border: 1px solid var(--trait-fort); background: var(--nuit-2); }
.carte-apercu .carte-animee img { display: block; height: 100%; object-fit: cover; border: 0; border-radius: 0; transform-origin: 50% 40%; animation: carte-respire 10s ease-in-out infinite alternate; }
@keyframes carte-respire { from { transform: scale(1); } to { transform: scale(1.07); } }
.carte-animee-lueur { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(115deg, transparent 40%, rgba(255, 236, 190, .22) 50%, transparent 60%); background-size: 300% 100%; animation: carte-lueur 7s linear infinite; }
@keyframes carte-lueur { from { background-position: 100% 0; } to { background-position: 0% 0; } }
.carte-animee-etoile { position: absolute; width: 5px; height: 5px; border-radius: 50%; background: #fff6dc; box-shadow: 0 0 8px 3px rgba(255, 236, 190, .75); pointer-events: none; animation: carte-scintille 2.6s ease-in-out infinite; }
.carte-animee-etoile.e2 { animation-delay: .9s; }
.carte-animee-etoile.e3 { animation-delay: 1.7s; }
@keyframes carte-scintille { 0%, 100% { opacity: .15; transform: scale(.6); } 50% { opacity: 1; transform: scale(1.2); } }
@media (prefers-reduced-motion: reduce) { .carte-apercu .carte-animee img, .carte-animee-lueur, .carte-animee-etoile { animation: none; } }
/* L'exemple à côté du formulaire, puis la roue qui devient la sienne (site.js) */
.carte-vente { align-items: start; }
@media (min-width: 900px) { .carte-vente { grid-template-columns: minmax(0, 440px) minmax(0, 1fr); gap: 40px; } }
.ciel-direct { display: grid; justify-items: center; }
.ciel-exemple { margin: 0; display: grid; gap: 8px; justify-items: center; text-align: center; }
.ciel-exemple img { width: min(260px, 70vw); height: auto; border-radius: 22px; border: 1px solid var(--trait-fort); }
@media (min-width: 900px) { .ciel-exemple img { width: 100%; } }
.ciel-vous { width: 100%; display: grid; gap: 12px; justify-items: center; padding: 20px 16px; border-radius: 24px; background: #0b1230; border: 1px solid var(--or); text-align: center; }
.ciel-exemple[hidden], .ciel-vous[hidden], .ciel-vous [hidden] { display: none; }
.ciel-vous-titre { margin: 0; font-family: var(--f-titre); font-size: 28px; }
.ciel-vous-roue { width: min(340px, 100%); }
.ciel-vous-roue .roue { display: block; width: 100%; height: auto; }
.ciel-trio { margin: 0; width: 100%; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 14px; text-align: left; }
.ciel-trio dt { color: var(--brume-2); font-size: 16px; padding-top: 3px; }
.ciel-trio dd { margin: 0; text-align: right; }
.ciel-resume { margin: 0; padding: 10px 14px; border-left: 3px solid var(--or); border-radius: 12px; background: var(--nuit); color: var(--brume); font-size: 17px; }
@media (min-width: 900px) { .ciel-resume { display: none; } }
/* « Comment ça se passe » : trois étapes numérotées, et le cas sans heure de naissance */
.deroule { display: grid; gap: 20px; }
.deroule-etapes { margin: 0; padding: 0; list-style: none; counter-reset: deroule; display: grid; gap: 16px; }
.deroule-etapes li { counter-increment: deroule; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; align-items: start; color: var(--brume); }
.deroule-etapes li::before { content: counter(deroule); display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--or); color: var(--or); font-family: var(--f-titre); font-size: 22px; }
.deroule-sans-heure { display: grid; gap: 4px; padding: 16px 18px; border-radius: 18px; border: 1px dashed var(--trait-fort); }
.deroule-sans-heure span { color: var(--brume); font-size: 18px; }
@media (min-width: 900px) {
  .deroule { grid-template-columns: minmax(0, 3fr) minmax(0, 1fr); align-items: start; }
  .deroule-etapes { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
  .deroule-etapes li { grid-template-columns: 1fr; gap: 10px; }
}
.commande-form { display: grid; gap: 16px; }
.champ { display: grid; gap: 6px; min-width: 0; }
.champ label { color: var(--brume); font-size: 17px; }
.champ input { width: 100%; min-width: 0; height: 56px; padding: 0 16px; border-radius: 14px; border: 1.5px solid var(--trait-fort); background: var(--nuit); color: var(--creme); font: inherit; font-size: 19px; }
.champ input:focus { border-color: var(--or); outline: none; }
.champ input.invalid { border-color: var(--rose); }
.champ-duo { display: grid; gap: 16px; }
@media (min-width: 640px) { .champ-duo { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.commande .bouton { justify-self: start; border: 0; font: inherit; font-weight: 700; cursor: pointer; }
.carte-delai { color: var(--brume); }
.commande-form [hidden] { display: none !important; }
.etape { display: grid; gap: 16px; margin: 0; padding: 0; border: 0; min-width: 0; }
.etape legend { display: grid; gap: 2px; padding: 0; margin-bottom: 4px; font-family: var(--f-titre); font-size: 26px; color: var(--creme); }
.etape-num { font-family: var(--f-texte); font-size: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--or); }
.etape-rappel { color: var(--brume); font-size: 17px; }
.etape-rappel .pied-lien { margin-left: 6px; }
.recap { display: grid; gap: 10px; padding: 18px 20px; border-radius: 18px; border: 1px solid var(--or); background: rgba(230, 194, 122, .06); }
.recap-titre { font-family: var(--f-titre); font-size: 24px; color: var(--creme); }
.recap ul { margin: 0; padding-left: 1.1em; display: grid; gap: 6px; color: var(--brume); font-size: 18px; }
.recap li::marker { content: '✦  '; color: var(--or); font-size: 13px; }
.recap-prix { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-top: 10px; border-top: 1px solid var(--trait-fort); color: var(--brume); }
.recap-prix strong { font-family: var(--f-titre); font-weight: 400; font-size: 32px; color: var(--or); }
.formule-prix { justify-self: start; margin-top: 6px; padding: 2px 12px; border-radius: 999px; border: 1px solid var(--trait-fort); color: var(--creme); font-size: 16px; }
@media (min-width: 760px) { .formules.quatre { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .formules.quatre { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
img[src$="/carte-exemple.webp"], img[src$="/carte-exemple-roue.webp"] { object-fit: contain; background: var(--nuit); }
.note.suivre a { margin-left: 10px; }
.note a { color: var(--or); }

/* Mention légale manquante : elle doit se voir */

/* Pages de texte */
.page-texte { display: grid; gap: 16px; max-width: 780px; padding-block: 20px 48px; }
.page-texte h2 { font-size: 28px; color: var(--or); margin-top: 14px; }
.page-texte p { color: var(--brume); }

/* Erreur Blazor */
#blazor-error-ui { display: none; position: fixed; z-index: 20; left: 0; right: 0; bottom: 0; padding: 16px 20px; background: #5c1f2a; color: var(--creme); }
#blazor-error-ui .dismiss { float: right; cursor: pointer; }

/* ── Mesure d'audience : le bandeau Google Analytics (fine barre en bas, au-dessus des onglets sur téléphone) ── */
.bandeau-mesure { position: fixed; z-index: 20; left: 0; right: 0; bottom: calc(var(--onglets) + env(safe-area-inset-bottom, 0px)); display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 24px; padding: 14px 16px; background: rgba(14, 22, 52, .97); border-top: 1px solid var(--or); box-shadow: 0 -10px 30px rgba(0, 0, 0, .35); font-size: 17px; line-height: 1.45; }
.bandeau-mesure[hidden] { display: none; }
.bandeau-mesure p { margin: 0; max-width: 62ch; }
.bandeau-mesure a { color: var(--or); }
.bandeau-choix { display: flex; gap: 12px; }
/* Refuser et Accepter : le même bouton, le même poids */
.bouton-choix { min-height: 48px; min-width: 120px; padding: 0 22px; border-radius: 999px; border: 2px solid var(--or); background: none; color: var(--creme); font: inherit; font-weight: 700; cursor: pointer; }
.bouton-choix:hover, .bouton-choix:focus-visible { background: var(--or); color: var(--nuit); }
@media (min-width: 900px) { .bandeau-mesure { bottom: 0; } }
.pied-lien { padding: 6px 0; border: 0; background: none; color: var(--brume); font: inherit; text-decoration: underline; cursor: pointer; }

/* ── Le tableau de bord (/tableau) ── */
.tableau { display: grid; gap: 34px; padding-block: 24px 48px; }
.tableau h1 { margin: 0; }
.tableau-periodes { display: flex; flex-wrap: wrap; gap: 10px; }
.tableau-periodes a { padding: 8px 18px; border-radius: 999px; border: 1px solid var(--trait-fort); color: var(--creme); text-decoration: none; font-size: 17px; }
.tableau-periodes a.actif { background: var(--or); border-color: var(--or); color: var(--nuit); font-weight: 700; }
.tableau-chiffres { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }
.tableau-chiffre { padding: 18px 20px; border-radius: 18px; background: var(--nuit-2); border: 1px solid var(--trait); }
.tableau-chiffre strong { display: block; font-family: var(--f-titre); font-size: 40px; font-weight: 400; color: var(--or); line-height: 1.1; }
.tableau-chiffre span { font-size: 16px; color: var(--brume); }
.tableau-bloc { display: grid; gap: 12px; }
.tableau-bloc h2 { margin: 0; font-size: 24px; }
.tableau-note { margin: 0; font-size: 16px; color: var(--brume); }
.tableau-grille { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 34px; }
.barres { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; font-size: 17px; }
.barres li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; align-items: baseline; }
.barres .barre { grid-column: 1 / -1; height: 8px; border-radius: 4px; background: var(--nuit-3); overflow: hidden; }
.barres .barre span { display: block; height: 100%; border-radius: 4px; background: var(--or); }
.barres .detail { color: var(--brume); font-size: 15px; }
.barres .nombre { font-variant-numeric: tabular-nums; }
.tableau-table { width: 100%; border-collapse: collapse; font-size: 17px; font-variant-numeric: tabular-nums; }
.tableau-table th, .tableau-table td { padding: 8px 10px; border-bottom: 1px solid var(--trait); text-align: right; }
.tableau-table th:first-child, .tableau-table td:first-child { text-align: left; }
.tableau-vide { padding: 24px; border-radius: 18px; background: var(--nuit-2); border: 1px dashed var(--trait-fort); color: var(--brume); }
.tableau-retour { justify-self: start; color: var(--brume); text-decoration: none; font-size: 16px; }
.tableau-lien { justify-self: start; display: inline-flex; gap: 8px; padding: 10px 18px; border-radius: 999px; border: 1px solid var(--or); color: var(--or); text-decoration: none; font-size: 17px; }
.tableau-lien strong { color: var(--creme); }
/* Le back office des commandes (/tableau/commandes) */
.commandes-chiffres { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.commandes-chiffres .tableau-chiffre { padding: 14px; }
.commandes-chiffres .tableau-chiffre strong { font-size: clamp(28px, 8vw, 40px); white-space: nowrap; }
.commandes { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.commande-ligne { display: grid; gap: 4px; padding: 16px 20px; border-radius: 18px; background: var(--nuit-2); border: 1px solid var(--trait); color: var(--creme); text-decoration: none; font-size: 17px; }
.commande-qui strong { font-size: 20px; }
.commande-ref, .commande-stripe { color: var(--brume); font-size: 15px; font-variant-numeric: tabular-nums; letter-spacing: .02em; word-break: break-all; }
.commande-echeance { margin: 0; color: var(--or); font-size: 17px; }
.commande-echeance.retard { color: #f0a0a0; font-weight: 700; }
.commande-statut { justify-self: start; margin: 0; padding: 4px 14px; border-radius: 999px; font-size: 15px; font-weight: 700; background: var(--or); color: var(--nuit); }
.commande-statut.statut-envoyee { background: none; border: 1px solid var(--trait-fort); color: var(--creme); font-weight: 400; }
.commande-statut.statut-attente_paiement { background: none; border: 1px dashed var(--trait-fort); color: var(--brume); font-weight: 400; }
.commande-fiche { display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; margin: 0; font-size: 17px; }
.commande-fiche dt { color: var(--brume); }
.commande-fiche dd { margin: 0; overflow-wrap: anywhere; }
.commande-fiche .detail { color: var(--brume); font-size: 15px; }
.commande-fiche-outil { width: 100%; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--trait-fort); background: var(--nuit); color: var(--creme); font: 15px/1.5 ui-monospace, Consolas, monospace; resize: vertical; }
.tableau-bloc h3 { margin: 10px 0 0; font-size: 19px; }
.tableau-bloc .bouton.discret { justify-self: start; min-height: 48px; }
.tableau-bloc form, form.tableau-bloc { justify-items: start; }
.commande-historique, .commande-accords { margin: 0; padding-left: 22px; display: grid; gap: 6px; font-size: 17px; }
.commande-accords { color: var(--brume); }
.commande-manques { margin: 6px 0 0; padding-left: 22px; }
.commandes-table a { color: var(--creme); }
.commandes-table td:nth-child(2) { color: var(--brume); font-size: 15px; }
.commandes-abandons summary { cursor: pointer; list-style-position: inside; }
.commandes-abandons summary h2 { display: inline; margin: 0; font-size: 24px; }
.commandes-abandons > :not(summary) { margin-top: 12px; }

/* ── Le calendrier du ciel (/lunes) : un mois par carte, centré sur toute la largeur ; chaque rendez-vous s'ajoute à l'agenda ── */
.agenda-tete { display: grid; gap: 14px; max-width: 820px; }
.mois-grille { display: grid; gap: 20px; align-items: start; }
@media (min-width: 760px) { .mois-grille { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .mois-grille { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.mois { display: grid; gap: 4px; padding: 18px 20px 10px; border-radius: 22px; background: var(--nuit-2); border: 1px solid var(--trait); }
.mois h3 { font-size: 26px; color: var(--or); }
.mois-suite { grid-column: 1 / -1; display: grid; gap: 20px; }
.mois-suite > summary { justify-self: center; display: inline-flex; align-items: center; min-height: 52px; padding: 0 26px; border-radius: 999px; border: 2px solid var(--trait-fort); color: var(--creme); cursor: pointer; list-style: none; }
.mois-suite > summary::-webkit-details-marker { display: none; }
.mois-suite > summary:hover { border-color: var(--or); color: var(--or); }
.mois-suite[open] > summary { display: none; }
.calendrier li { grid-template-rows: auto auto auto; }
.calendrier .cal-icone { grid-row: 1 / span 2; }
.cal-ajout { grid-column: 2; font-size: 15px; }
.cal-ajout > summary { display: inline-block; padding: 4px 0; color: var(--or); cursor: pointer; list-style: none; }
.cal-ajout > summary::-webkit-details-marker { display: none; }
.cal-ajout[open] > summary { color: var(--brume-2); }
.cal-ajout a { display: inline-flex; margin: 4px 8px 4px 0; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--trait-fort); color: var(--creme); text-decoration: none; }
.cal-ajout a:hover { border-color: var(--or); color: var(--or); }
.calendrier li:target { background: rgba(230, 194, 122, .08); border-radius: 12px; }

/* ── Installer l'appli (PWA) : caché par défaut, montré par site.js là où c'est possible ── */
.installer { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 14px 18px; margin-block: 8px; padding: 18px 20px; border-radius: 22px; background: linear-gradient(135deg, #1d2b62, var(--nuit-2)); border: 1px solid var(--trait-fort); }
.installer[hidden] { display: none; }
.installer > svg { width: 40px; height: 40px; fill: none; stroke: var(--or); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.installer-texte { display: grid; gap: 2px; color: var(--brume); font-size: 17px; }
.installer-texte strong { font-family: var(--f-titre); font-weight: 400; font-size: 24px; color: var(--creme); }
.installer-partage { display: inline-block; width: 20px; height: 20px; vertical-align: -4px; fill: none; stroke: var(--or); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.installer .bouton { grid-column: 1 / -1; justify-self: start; }
@media (min-width: 700px) { .installer { grid-template-columns: auto minmax(0, 1fr) auto; } .installer .bouton { grid-column: auto; } }
.pied-lien[hidden] { display: none; }
.pied-reseaux svg .trait { stroke-linecap: round; }

/* ── Les illustrations des signes : un format fixe (4:5), qui ne dépend plus de la largeur de la fenêtre, et un
   cadrage propre à chaque image — où se trouve le sujet, en hauteur (repéré à l'œil sur la planche des 12, le 09/10).
   Une règle par fichier : elle vaut partout où l'image est recadrée (cartes, formules, vedettes, encarts). ── */
.formule img { height: auto; aspect-ratio: 1 / 1; }
@media (min-width: 760px) { .rdv img, .formule img { height: auto; aspect-ratio: 4 / 5; } }
img[src$="/belier.webp"] { object-position: center 80%; }
img[src$="/taureau.webp"] { object-position: center 90%; }
img[src$="/gemeaux.webp"] { object-position: center 0%; }
img[src$="/cancer.webp"] { object-position: center 60%; }
img[src$="/lion.webp"] { object-position: center 70%; }
img[src$="/vierge.webp"] { object-position: center 80%; }
img[src$="/balance.webp"] { object-position: center 85%; }
img[src$="/scorpion.webp"] { object-position: center 85%; }
img[src$="/sagittaire.webp"] { object-position: center 55%; }
img[src$="/capricorne.webp"] { object-position: center 70%; }
img[src$="/verseau.webp"] { object-position: center 50%; }
img[src$="/poissons.webp"] { object-position: center 50%; }

/* ── Pages d'erreur (404, 500) : une image du ciel, une phrase, deux chemins ── */
.erreur { display: grid; justify-items: center; gap: 14px; padding-block: 48px 72px; text-align: center; }
.erreur svg { width: min(320px, 80vw); height: auto; }
.erreur-code { margin: 0; font-size: 15px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--or); }
.erreur h1 { font-size: clamp(2rem, 6vw, 3rem); max-width: 18em; }
.erreur .chapo { max-width: 34em; }
.erreur .actions { justify-content: center; margin-top: 8px; }

/* ── Alignement : la suite d'une page de signe et les pages de texte restaient centrées dans une boîte étroite, alors
   que leur titre suit le bord gauche du site. On limite la longueur des lignes, pas la boîte. ── */
.fiche-suite, .page-texte { max-width: 1180px; }
.fiche-suite > *, .page-texte > * { max-width: 820px; }

/* ——— La grille d'offres (14/11) : « Votre ciel », le téléphone de démonstration, les trois formules, le choix au paiement ——— */

/* Trois téléphones en éventail (owner 14/11 : « un vide, un normal, un animé ») : l'animé devant, au centre */
.trio-telephones { --tel: clamp(98px, 24vw, 210px); display: flex; justify-content: center; align-items: flex-end; padding-top: 12px; }
.trio-telephones figure { margin: 0; display: grid; justify-items: center; gap: 14px; position: relative; }
.trio-telephones figcaption { color: var(--brume); font-size: 16px; text-align: center; }
.tel-centre { z-index: 2; }
.tel-centre figcaption { color: var(--or); font-weight: 700; }
.tel-cote { z-index: 1; padding-bottom: 6px; }
.tel-gauche { margin-right: calc(var(--tel) * -.27); }
.tel-droite { margin-left: calc(var(--tel) * -.27); }
.tel-gauche .telephone { transform: rotate(-7deg); transform-origin: 100% 100%; }
.tel-droite .telephone { transform: rotate(7deg); transform-origin: 0% 100%; }
.trio-telephones .telephone { width: var(--tel); }
.trio-telephones .tel-centre .telephone { width: calc(var(--tel) * 1.14); }

/* Un téléphone : les tailles suivent sa largeur (unités de conteneur), qu'il soit grand ou petit */
.telephone { position: relative; width: min(260px, 68vw); aspect-ratio: 9 / 19.5; border-radius: 16%/7.4%; background: #05070f; padding: 4%; justify-self: center;
  box-shadow: 0 30px 60px rgba(0, 0, 0, .45), 0 0 0 1px var(--trait-fort); }
.telephone::before, .telephone::after { content: ""; position: absolute; right: -3px; width: 3px; border-radius: 0 2px 2px 0; background: var(--trait-fort); }
.telephone::before { top: 22%; height: 9%; }
.telephone::after { top: 34%; height: 14%; }
.telephone-bouton { position: absolute; left: -3px; top: 26%; width: 3px; height: 7%; border-radius: 2px 0 0 2px; background: var(--trait-fort); }
.telephone-ecran { position: relative; width: 100%; height: 100%; border-radius: 13%/6%; overflow: hidden; background: var(--nuit); container-type: inline-size; }
.telephone-ecran > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform-origin: 50% 70%; }
.telephone-trace { position: absolute; left: 3%; top: 23%; width: 94%; filter: drop-shadow(0 0 1.5px rgba(8, 12, 34, 1)) drop-shadow(0 0 7px rgba(255, 226, 160, .85)); }
.telephone .telephone-trace path { stroke: #ffe2a0; stroke-width: 1.7; opacity: 1; }
.telephone .telephone-trace circle { r: 2; fill: #fff8e6; }
.telephone-glyphe { position: absolute; left: 50%; top: 44%; transform: translate(-50%, -50%); font-family: var(--f-glyphes); font-size: 30cqw; color: #ffe2a0;
  text-shadow: 0 0 2px rgba(8, 12, 34, .9), 0 0 16px rgba(255, 226, 160, .9); opacity: 0; }
.telephone-filante { position: absolute; top: 14%; left: 68%; width: 30cqw; height: 2px; border-radius: 2px; opacity: 0;
  background: linear-gradient(90deg, rgba(244, 236, 219, 0), var(--creme)); transform: rotate(-24deg); }
.telephone-verrou { position: absolute; inset: 0; display: grid; align-content: start; justify-items: center; padding-top: 14%; color: #fff;
  text-shadow: 0 1px 8px rgba(0, 0, 0, .55); font-family: 'Segoe UI', system-ui, sans-serif; pointer-events: none; }
.telephone-date { font-size: 5.4cqw; }
.telephone-heure { font-size: 23cqw; font-weight: 300; line-height: 1; margin-top: 1cqw; font-variant-numeric: tabular-nums; }
.telephone-camera { position: absolute; top: 2.4%; left: 50%; transform: translateX(-50%); width: 27cqw; height: 7.5cqw; border-radius: 999px; background: #05070f; }
.telephone-barre { position: absolute; bottom: 1.6%; left: 50%; transform: translateX(-50%); width: 34%; height: 1.6cqw; min-height: 3px; border-radius: 999px; background: rgba(255, 255, 255, .75); }

.trace-constellation { display: block; height: auto; overflow: visible; }
.trace-constellation path { fill: none; stroke: var(--or); stroke-width: .6; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; opacity: .9; }
.trace-constellation circle { fill: var(--creme); }
.carte-animee-trace { position: absolute; left: 6%; top: 20%; width: 88%; filter: drop-shadow(0 0 1.5px rgba(8, 12, 34, 1)) drop-shadow(0 0 6px rgba(255, 226, 160, .8)); }
.carte-animee .carte-animee-trace path { stroke: #ffe2a0; stroke-width: 1.5; }

/* Seul l'animé bouge (et l'aperçu de « Ce que vous recevez ») : le nu et l'écrit restent fixes, comme les images livrées */
@media (prefers-reduced-motion: no-preference) {
  .telephone-anime .telephone-ecran > img { animation: tel-respire 14s ease-in-out infinite alternate; }
  .trace-constellation path { animation: tel-trace 10s ease-in-out infinite; animation-delay: calc(var(--i) * .18s); }
  .trace-constellation circle { animation: carte-scintille 3.2s ease-in-out infinite; }
  .telephone-glyphe { animation: tel-glyphe 10s ease-in-out infinite; }
  .telephone-filante { animation: tel-filante 7s ease-in infinite; }
}
@media (prefers-reduced-motion: reduce) { .telephone-glyphe { opacity: 1; } }
@keyframes tel-respire { from { transform: scale(1); } to { transform: scale(1.06) translateY(-1%); } }
@keyframes tel-trace { 0% { stroke-dashoffset: 1; opacity: 0; } 8% { opacity: .9; } 45%, 85% { stroke-dashoffset: 0; opacity: .9; } 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes tel-glyphe { 0%, 40% { opacity: 0; transform: translate(-50%, -50%) scale(.8); } 55%, 85% { opacity: 1; transform: translate(-50%, -50%) scale(1); } 100% { opacity: 0; transform: translate(-50%, -50%) scale(1); } }
@keyframes tel-filante { 0%, 78% { opacity: 0; translate: 0 0; } 82% { opacity: 1; } 100% { opacity: 0; translate: -46cqw 20cqw; } }

/* Les trois formules, sur « Votre ciel » */
.offres { display: grid; gap: 18px; align-items: start; }
@media (min-width: 900px) { .offres { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.offre { position: relative; display: flex; flex-direction: column; min-width: 0; border-radius: 22px; overflow: hidden; background: var(--nuit-2); border: 1px solid var(--trait-fort); }
.offre.vedette-offre { border: 2px solid var(--or); }
.offre-pastille { position: absolute; top: 12px; left: 12px; z-index: 1; padding: 4px 10px; border-radius: 999px; background: var(--or); color: var(--nuit);
  font-size: 13px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.offre-visuel { aspect-ratio: 16 / 10; background: var(--nuit); overflow: hidden; }
.offre-visuel img { width: 100%; height: 100%; object-fit: cover; object-position: center 55%; }
.offre-roue img { object-position: center 40%; }
.offre-mosaique { display: grid; grid-template-columns: repeat(4, 1fr); }
.offre-corps { display: grid; gap: 10px; padding: 18px 20px 22px; }
.offre-nom { font-size: 28px; }
.offre-accroche { margin-top: -4px; font-family: var(--f-titre); color: var(--or); font-size: 20px; }
.offre-prix { display: flex; align-items: baseline; gap: 8px; }
.offre-prix strong { font-family: var(--f-titre); font-weight: 400; font-size: 42px; line-height: 1; color: var(--or); font-variant-numeric: tabular-nums; }
.offre-prix span { color: var(--brume-2); font-size: 16px; }
.offre-contenu { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; color: var(--brume); font-size: 18px; }
.offre-contenu li::before { content: '✦ '; color: var(--or); font-size: 13px; }
.offre-contenu li.plus { color: var(--creme); font-weight: 700; }
.offre-choisir { margin-top: 6px; }
.rassure { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 18px 0 0; padding: 0; list-style: none; color: var(--brume); font-size: 17px; }
.rassure li::before { content: '✦ '; color: var(--or); font-size: 12px; }

/* Les trois formules, sur l'accueil : sans prix, un seul bouton */
.offres-mini { display: grid; gap: 12px; margin-bottom: 18px; }
@media (min-width: 760px) { .offres-mini { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.offre-mini { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 14px; align-items: center; padding: 10px; border-radius: 18px;
  background: var(--nuit-2); border: 1px solid var(--trait-fort); color: var(--creme); text-decoration: none; }
.offre-mini.vedette-offre { border: 2px solid var(--or); }
.offre-mini img { width: 96px; height: 96px; object-fit: cover; border-radius: 12px; }
.offre-mini strong { display: block; font-family: var(--f-titre); font-weight: 400; font-size: 23px; line-height: 1.15; }
.offre-mini span span { display: block; color: var(--brume-2); font-size: 16px; }
.offre-mini:hover { border-color: var(--or); color: var(--creme); }

/* Le choix de la formule au paiement. Rien n'est coché d'avance ; la ligne du livret ou du livre et le prix suivent le choix
   (:has, sans script). Sans choix, le bouton dit seulement « Payer ». */
.choix-formule { display: grid; gap: 10px; }
.choix-ligne { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 14px;
  border: 1px solid var(--trait-fort); cursor: pointer; }
.choix-ligne input { width: 22px; height: 22px; margin: 0; accent-color: var(--or); }
.choix-ligne:has(input:checked) { border-color: var(--or); background: rgba(230, 194, 122, .08); }
.choix-texte { display: grid; min-width: 0; }
.choix-texte span { color: var(--brume-2); font-size: 16px; }
.choix-prix { font-family: var(--f-titre); color: var(--or); font-size: 24px; font-variant-numeric: tabular-nums; }
[data-recap], [data-prix] { display: none; }
.commande-form:has(input[value="carte-du-ciel"]:checked) [data-prix="carte-du-ciel"],
.commande-form:has(input[value="votre-signe"]:checked) [data-prix="votre-signe"],
.commande-form:has(input[value="les-12-signes"]:checked) [data-prix="les-12-signes"] { display: inline; }
.commande-form:has(input[value="votre-signe"]:checked) [data-recap="votre-signe"],
.commande-form:has(input[value="les-12-signes"]:checked) [data-recap="les-12-signes"] { display: list-item; }
.formule-rappel { display: none; color: var(--brume); font-size: 18px; }
.commande-form:has(.choix-formule input:checked) .formule-rappel { display: block; }
.formule-rappel [data-prix] { color: var(--or); font-weight: 700; }

.bientot { display: grid; gap: 10px; margin: 0 0 18px; padding: 0; list-style: none; color: var(--brume); }
.bientot strong { display: block; font-family: var(--f-titre); font-weight: 400; font-size: 23px; color: var(--creme); }

/* Back office : la formule, le signe à choisir, ce qui part par lien */
.commande-formule { color: var(--or); }
.commande-signe { display: grid; gap: 8px; justify-items: start; margin: 12px 0; }
.commande-signe select { min-height: 48px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--trait-fort); background: var(--nuit); color: var(--creme); font: inherit; }
.commande-fichiers { margin: 6px 0 12px; padding-left: 1.1em; display: grid; gap: 4px; }
.commande-fichiers .retard { color: var(--rose); }

/* La page du lien de téléchargement */
.telechargement-liste { display: grid; gap: 12px; margin: 18px 0; padding: 0; list-style: none; }
.telechargement-fichier { display: grid; gap: 4px; padding: 16px 20px; border-radius: 18px; background: var(--nuit-2); border: 1px solid var(--or); color: var(--creme); text-decoration: none; }
.telechargement-fichier strong { font-family: var(--f-titre); font-weight: 400; font-size: 24px; color: var(--or); }
.telechargement-fichier span { color: var(--brume); font-size: 17px; }
.telechargement-fichier:hover { color: var(--creme); background: var(--nuit-3); }

/* La liste d'attente du thème astral (14/11) : un encart en pointillés or sous la grille ; le bouton ouvre le champ (details) */
.prevenir-theme { display: grid; gap: 12px; margin-top: 26px; padding: 22px 24px; border-radius: 22px; border: 2px dashed var(--or); background: rgba(230, 194, 122, .05); scroll-margin-top: 24px; }
.prevenir-theme h3 { font-size: 26px; color: var(--creme); }
.prevenir-theme > p { color: var(--brume); max-width: 70ch; }
.prevenir-ouvrir { display: grid; gap: 14px; }
.prevenir-ouvrir > summary { justify-self: start; list-style: none; cursor: pointer; }
.prevenir-ouvrir > summary::-webkit-details-marker { display: none; }
.prevenir-ouvrir[open] > summary { display: none; }
.champ-retirer { min-height: 48px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--trait-fort); background: var(--nuit); color: var(--creme); font: inherit; min-width: min(320px, 100%); }

/* Les vraies petites vidéos des signes (boucle aller-retour), dans le téléphone animé et « Ce que vous recevez » */
.telephone-ecran > video, .carte-animee > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }

/* Les couvertures du livret et du livre : posées comme des livres, sur la nuit */
.offre-couverture { position: relative; background: radial-gradient(ellipse 70% 80% at 50% 45%, #22306a 0%, var(--nuit) 75%); }
.livres-apercu { display: grid; gap: 22px; margin-top: 26px; }
@media (min-width: 760px) { .livres-apercu { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.livres-apercu figure { margin: 0; display: grid; grid-template-columns: minmax(0, 150px) minmax(0, 1fr); gap: 18px; align-items: center; }
.livres-apercu figcaption { color: var(--brume); font-size: 18px; }
.livres-apercu figcaption strong { display: block; font-family: var(--f-titre); font-weight: 400; font-size: 22px; color: var(--or); margin-bottom: 4px; }

/* ——— La gestion (14/11, maquette « Gestion · tablette ») : un menu à gauche, sans le haut ni le pied du site ——— */
.gestion { display: grid; min-height: 100vh; min-height: 100dvh; }
body:has(.gestion) { padding-bottom: 0; }
.gestion-menu { display: flex; align-items: center; gap: 14px; padding: 12px 16px; background: var(--nuit-2); border-bottom: 1px solid var(--trait); overflow-x: auto; position: sticky; top: 0; z-index: 5; }
.gestion-marque { font-family: var(--f-titre); color: var(--or); font-size: 24px; text-decoration: none; white-space: nowrap; display: grid; line-height: 1.1; }
.gestion-marque span { font-family: var(--f-texte); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--brume-2); }
.gestion-menu nav { display: flex; gap: 6px; }
.gestion-menu nav a, .gestion-bientot { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 14px; color: var(--creme); text-decoration: none; font-size: 18px; white-space: nowrap; }
.gestion-menu nav a.actif { background: var(--nuit-3); font-weight: 700; box-shadow: inset 0 0 0 1px var(--trait-fort); }
.gestion-menu nav a:hover { color: var(--or); }
.gestion-pastille { min-width: 26px; height: 26px; padding: 0 7px; border-radius: 999px; background: var(--or); color: var(--nuit); font-size: 14px; font-weight: 700; display: inline-grid; place-items: center; }
.gestion-bientot { color: var(--brume-2); cursor: default; }
.gestion-bientot em { font-style: normal; font-size: 12px; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--trait-fort); }
.gestion-site { color: var(--brume); font-size: 16px; white-space: nowrap; margin-left: auto; }
.gestion-contenu { display: grid; gap: 26px; align-content: start; padding: 24px 20px 48px; min-width: 0; max-width: 1240px; width: 100%; }
/* Sur téléphone (owner 17/11 : « la version mobile est pas folle, le menu de nav ») : plus de bande qui défile de côté ;
   la marque et « Voir le site » en haut, puis les entrées en boutons sur deux ou trois lignes, l'entrée ouverte en or.
   Les « bientôt » restent pour l'écran large. */
@media (max-width: 899.98px) {
  .gestion-menu { flex-wrap: wrap; overflow-x: visible; position: static; gap: 12px 14px; padding: 14px 16px 16px; }
  .gestion-site { order: 2; }
  .gestion-menu nav { order: 3; width: 100%; display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; }
  .gestion-menu nav a { justify-content: center; gap: 8px; padding: 10px 8px; font-size: 16px; border: 1px solid var(--trait-fort); border-radius: 12px; }
  .gestion-menu nav a.actif { background: var(--or); color: var(--nuit); border-color: var(--or); box-shadow: none; }
  .gestion-menu nav a.actif .gestion-pastille { background: var(--nuit); color: var(--or); }
  .gestion-menu .gestion-bientot { display: none; }
}
@media (min-width: 900px) {
  .gestion { grid-template-columns: 230px minmax(0, 1fr); }
  .gestion-menu { flex-direction: column; align-items: stretch; gap: 26px; padding: 28px 16px; border-bottom: 0; border-right: 1px solid var(--trait); height: 100vh; height: 100dvh; overflow-y: auto; }
  .gestion-menu nav { flex-direction: column; }
  .gestion-site { margin: auto 0 0; padding: 0 14px; }
  .gestion-contenu { padding: 32px 36px 56px; }
}
.gestion-entete { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 20px; }
.gestion-entete h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.gestion-resume { color: var(--brume); font-size: 17px; }
.gestion-alerte { padding: 12px 16px; border-radius: 14px; border: 1px dashed var(--rose); color: var(--rose); font-size: 16px; }
.gestion-alerte summary { cursor: pointer; }
.gestion-vues { display: flex; flex-wrap: wrap; gap: 6px; padding: 5px; border-radius: 999px; background: var(--nuit-2); border: 1px solid var(--trait-fort); justify-self: start; }
.gestion-vues a { padding: 8px 16px; border-radius: 999px; color: var(--creme); text-decoration: none; font-size: 17px; }
.gestion-vues a span { color: var(--brume-2); margin-left: 4px; }
.gestion-vues a.actif { background: var(--or); color: var(--nuit); font-weight: 700; }
.gestion-vues a.actif span { color: var(--nuit); }
.gestion-maitre { display: grid; gap: 22px; align-items: start; }
@media (min-width: 1100px) { .gestion-maitre { grid-template-columns: minmax(260px, 340px) minmax(0, 1fr); } }
.gestion-liste { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.gestion-carte { display: grid; gap: 4px; padding: 14px 16px; border-radius: 16px; background: var(--nuit-2); border: 1px solid var(--trait-fort); color: var(--creme); text-decoration: none; font-size: 16px; }
.gestion-carte.choisie { border: 2px solid var(--or); }
.gestion-carte:hover { color: var(--creme); border-color: var(--or); }
.gestion-carte-haut { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.gestion-carte-haut strong { font-size: 20px; }
.gestion-badge { justify-self: start; padding: 3px 12px; border-radius: 999px; background: var(--or); color: var(--nuit); font-size: 14px; font-weight: 700; }
.gestion-badge.retard { background: var(--rose); }
.gestion-badge.statut-envoyee, .gestion-badge.statut-attente_paiement { background: var(--nuit-3); color: var(--brume); border: 1px solid var(--trait-fort); }
/* Le suivi des téléchargements (17/11) : le repère des envoyées, et la ligne de la commande */
.gestion-badge.suivi-telecharge, .gestion-badge.suivi-ouverte { background: var(--nuit-3); color: var(--creme); border: 1px solid var(--trait-fort); font-weight: 400; }
.gestion-badge.suivi-attente { background: none; color: var(--or); border: 1px solid var(--or); font-weight: 400; }
.gestion-suivi-ligne { margin: 0; font-size: 17px; }
.gestion-suivi-ligne > span { display: inline-block; margin-right: .3em; } /* un morceau ne se coupe qu'en dernier recours */
.gestion-suivi-ligne > span + span::before { content: "· "; color: var(--brume-2); }
.gestion-suivi-ligne .pas-encore { color: var(--brume-2); }
.gestion-fiche { display: grid; gap: 18px; padding: 22px; border-radius: 22px; background: var(--nuit-2); border: 1px solid var(--trait-fort); min-width: 0; }
.gestion-fiche-tete { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; flex-wrap: wrap; }
.gestion-fiche-tete h2 { font-size: 34px; }
.gestion-etiquette { font-size: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--or); }
.gestion-apercu { display: grid; gap: 18px; padding: 16px; border-radius: 18px; border: 1px solid var(--trait-fort); background: var(--nuit); align-items: center; }
@media (min-width: 640px) { .gestion-apercu { grid-template-columns: minmax(0, 220px) minmax(0, 1fr); } }
.gestion-apercu-roue svg { width: 100%; height: auto; display: block; }
.gestion-trio { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 14px; margin: 8px 0; font-size: 17px; }
.gestion-trio dt { color: var(--brume-2); }
.gestion-trio dd { margin: 0; }
.gestion-etapes { display: grid; gap: 14px; }
@media (min-width: 760px) { .gestion-etapes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.gestion-etape, .gestion-bloc { display: grid; gap: 10px; align-content: start; justify-items: start; padding: 16px; border-radius: 18px; border: 1px solid var(--trait-fort); }
.gestion-etape .commande-fiche-outil, .gestion-bloc .commande-fiche-outil { width: 100%; }
.gestion-colonnes { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); font-size: 16px; }
.gestion-colonnes p:not(.gestion-etiquette) { margin-top: 6px; overflow-wrap: anywhere; }
.gestion-historique summary { cursor: pointer; color: var(--brume); }
.gestion-reglages { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 18px; margin: 0; font-size: 17px; }
.gestion-reglages dt { color: var(--brume-2); }
.gestion-reglages dd { margin: 0; }
.gestion-reglages code, .gestion-contenu code { font-size: 14px; color: var(--brume-2); }
.gestion-fichiers td.retard { color: var(--rose); }
/* gestion, la carte importée puis envoyée d'un clic (owner 16/11) */
.gestion-carte-etat { margin: 0 0 12px; }
.carte-import { display: grid; gap: 8px; margin: 0 0 12px; }
.carte-import input[type=file] { max-width: 100%; color: inherit; }
.carte-pieces a { margin-left: 6px; }
/* L'aperçu réel de la carte qui partira (owner 17/11) : carte et roue côte à côte, puis les deux fonds d'écran */
.carte-apercu { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 4px 0 14px; }
@media (min-width: 1000px) { .carte-apercu { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.carte-apercu figure { margin: 0; display: grid; gap: 6px; align-content: start; }
.carte-apercu img, .carte-apercu video { display: block; width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--trait-fort); background: var(--nuit); }
.carte-apercu figcaption { font-size: .85rem; color: var(--brume); line-height: 1.3; }
.carte-fabrique { margin: 0 0 12px; }
.carte-alertes { margin: 8px 0 12px; }
.carte-alertes p { margin: 0 0 4px; }
.carte-alertes ul { margin: 0; padding-left: 20px; }
.gestion-autrement { margin-top: 14px; }
/* Gestion › E-mails (17/11) : chaque e-mail dans son cadre, à la largeur d'un téléphone ou d'une messagerie */
.gestion-email-liens { margin: 4px 0 12px; font-size: 16px; overflow-wrap: anywhere; }
.gestion-email-cadre { display: block; width: 100%; max-width: 640px; height: 78vh; min-height: 520px; border: 1px solid var(--trait-fort); border-radius: 12px; background: var(--nuit); }

.gestion-autrement summary { cursor: pointer; }
/* gestion, l'envoi automatique de la carte (owner 17/11) : l'heure de départ, « Envoyer maintenant » et « Retenir » côte à côte */
.carte-auto { margin: 0 0 4px; }
.carte-envoi { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; }
.carte-envoi form { margin: 0; }
.gestion-depart { font-size: 14px; color: var(--brume); }
.gestion-depart.retard { color: var(--rose); }
.gestion-delai-choix { display: flex; flex-wrap: wrap; gap: 8px; }
.gestion-delai-choix .bouton-choix { min-width: 72px; }
.gestion-delai-choix .bouton-choix.actif { background: var(--or); color: var(--nuit); }
/* gestion, l'interrupteur de la vente (owner 16/11) */
.gestion-interrupteur { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin: 14px 0 18px; }
.gestion-interrupteur p { margin: 0; }
/* gestion, fichiers : « voir » et ⤓ (télécharger), une cible assez large au doigt (owner 15/11) */
.gestion-fichiers td { white-space: nowrap; }
.gestion-fichiers td a { display: inline-block; padding: 6px 2px; }
.gestion-fichiers .gestion-telecharger { margin-left: 6px; font-size: 1.15em; text-decoration: none; }
.gestion-fichiers td.gestion-livre { text-align: left; }

/* Le choix de la formule : ce qu'elle comprend s'ouvre sous elle, et la barre du paiement reste en bas de l'écran (14/11) */
.choix-ligne { grid-template-areas: 'radio texte prix' '. detail detail'; }
.choix-ligne > input { grid-area: radio; }
.choix-ligne > .choix-texte { grid-area: texte; }
.choix-ligne > .choix-prix { grid-area: prix; }
.choix-detail { grid-area: detail; display: none; gap: 5px; padding-top: 8px; margin-top: 2px; border-top: 1px solid var(--trait-fort); color: var(--brume); font-size: 16px; }
.choix-detail span::before { content: '✦ '; color: var(--or); font-size: 12px; }
.choix-ligne:has(input:checked) .choix-detail { display: grid; }
.paiement-barre { position: sticky; bottom: calc(var(--onglets) + env(safe-area-inset-bottom, 0px) + 10px); z-index: 3; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px;
  padding: 12px 14px 12px 18px; border-radius: 18px; border: 1px solid var(--or); background: rgba(22, 34, 80, .97); box-shadow: 0 10px 30px rgba(0, 0, 0, .45); backdrop-filter: blur(8px); }
@media (min-width: 900px) { .paiement-barre { bottom: 14px; } }
.paiement-choix { margin: 0; color: var(--creme); font-size: 18px; }
.paiement-choix strong { font-family: var(--f-titre); font-weight: 400; font-size: 24px; color: var(--or); }
.paiement-vide { color: var(--brume-2); }
.commande-form:has(.choix-formule input:checked) .paiement-vide { display: none; }
.paiement-barre .bouton-payer { min-height: 50px; }

/* Les suggestions de villes sous le champ (14/11) : une liste qu'on touche, pas de survol */
.champ-ville { position: relative; }
.villes-suggestions { position: absolute; z-index: 6; left: 0; right: 0; top: 100%; margin: 4px 0 0; padding: 6px; list-style: none; border-radius: 14px;
  background: var(--nuit-2); border: 1px solid var(--or); box-shadow: 0 14px 30px rgba(0, 0, 0, .5); max-height: 320px; overflow-y: auto; }
.villes-suggestions li { padding: 10px 12px; border-radius: 10px; cursor: pointer; font-size: 17px; color: var(--creme); }
.villes-suggestions li[aria-selected='true'] { background: rgba(230, 194, 122, .14); color: var(--or); }



/* Le livre en relief (14/11) : la couverture sur un volume tourné, la tranche des pages, l'épaisseur, le reflet, l'ombre */
.livre-3d { display: inline-block; width: var(--l); perspective: 1100px; flex: 0 0 auto; }
.livre-corps { position: relative; display: block; width: var(--l); aspect-ratio: 560 / 795; transform-style: preserve-3d; transform: rotateY(-26deg) rotateX(3deg); }
.livre-couv { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 1px 3px 3px 1px; transform: translateZ(calc(var(--e) / 2)); }
/* le reflet de la lumière et le pli du dos, posés sur la couverture */
.livre-lumiere { position: absolute; inset: 0; border-radius: 1px 3px 3px 1px; transform: translateZ(calc(var(--e) / 2 + .5px)); pointer-events: none;
  background: linear-gradient(90deg, rgba(0, 0, 0, .38) 0, rgba(255, 255, 255, .16) 2.5%, rgba(0, 0, 0, .12) 5%, transparent 9%),
              linear-gradient(115deg, rgba(255, 255, 255, .22) 0%, rgba(255, 255, 255, 0) 38%, rgba(0, 0, 0, .12) 100%); }
/* la tranche des pages, à droite */
.livre-corps::before { content: ''; position: absolute; top: 1.2%; bottom: 1.2%; left: calc(var(--l) - var(--e) / 2 - 1px); width: var(--e); transform: rotateY(90deg);
  background: repeating-linear-gradient(90deg, #f6efe0 0 1px, #d8ceb8 1px 2px), #efe6d2; box-shadow: inset 0 0 6px rgba(0, 0, 0, .25); }
/* le dos du livre, et l'ombre portée sur la nuit */
.livre-corps::after { content: ''; position: absolute; inset: 0; border-radius: 1px 3px 3px 1px; background: #0b1129; transform: translateZ(calc(var(--e) / -2));
  box-shadow: 14px 18px 26px rgba(0, 0, 0, .6), 4px 4px 0 rgba(0, 0, 0, .25); }
/* Les couvertures déjà posées : les livres en relief prennent leur place */
.offre-couverture { display: grid; place-items: center; }
.offre-couverture .livre-3d { margin-left: calc(var(--e) * -1); }
.livres-apercu figure { grid-template-columns: auto minmax(0, 1fr); }


/* Téléphones encore resserrés, celui du centre mis en valeur (owner 14/11) : plus grand, devant, les deux autres glissés
   derrière lui, plus petits et un peu dans l'ombre */
.trio-telephones { --tel: clamp(92px, 22vw, 186px); }
.trio-telephones .tel-centre .telephone { width: calc(var(--tel) * 1.3); box-shadow: 0 34px 70px rgba(0, 0, 0, .6), 0 0 0 1px var(--or), 0 0 40px rgba(230, 194, 122, .18); }
.tel-gauche { margin-right: calc(var(--tel) * -.48); }
.tel-droite { margin-left: calc(var(--tel) * -.48); }
.tel-cote .telephone { filter: brightness(.72) saturate(.9); }
.tel-cote figcaption { position: relative; z-index: 3; }
.tel-gauche figcaption { transform: translateX(-18%); }
.tel-droite figcaption { transform: translateX(18%); }

/* L'écran verrouillé avec la police du téléphone de la personne (owner 14/11 : « une police de smartphone ») : SF Pro sur
   iPhone, Roboto sur Android, celle du système ailleurs ; l'heure épaisse et serrée, comme sur un vrai écran verrouillé */
.telephone-verrou { font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', Roboto, 'Google Sans', 'Helvetica Neue', 'Segoe UI Variable Display', 'Segoe UI', system-ui, sans-serif; }
.telephone-date { font-weight: 600; letter-spacing: .01em; }
.telephone-heure { font-weight: 600; letter-spacing: -.03em; font-size: 24cqw; }

/* Trois livrets en éventail, celui du milieu devant (owner 14/11 : « 3 signes pour les livrets ») */
.livrets-eventail { display: inline-flex; align-items: flex-end; padding-inline: 6px; }
.livrets-eventail .livre-3d { margin-left: calc(var(--l) * -.56); }
.livrets-eventail .livre-3d:first-child { margin-left: 0; transform: rotate(-9deg) translateY(5%); }
.livrets-eventail .livre-3d:nth-child(2) { position: relative; z-index: 2; }
.livrets-eventail .livre-3d:nth-child(3) { transform: rotate(8deg) translateY(5%); }
.offre-couverture .livrets-eventail .livre-3d { margin-left: calc(var(--l) * -.56); }
.offre-couverture .livrets-eventail .livre-3d:first-child { margin-left: 0; }

/* L'heure de l'écran verrouillé, légère et « liquid glass » (owner 14/11) : fine, translucide, un reflet de verre */
.telephone-heure { font-weight: 200; letter-spacing: -.02em; color: transparent;
  background: linear-gradient(180deg, rgba(255, 255, 255, .96) 0%, rgba(255, 255, 255, .7) 48%, rgba(220, 232, 255, .55) 100%);
  -webkit-background-clip: text; background-clip: text; filter: drop-shadow(0 1px 1px rgba(255, 255, 255, .35)) drop-shadow(0 4px 10px rgba(0, 0, 0, .35)); text-shadow: none; }
.telephone-date { font-weight: 400; color: rgba(255, 255, 255, .85); }
.carte-animee > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.carte-apercu .carte-animee img { animation: none; } /* une image fixe : plus de « respiration » */

/* Lisible sur les fonds clairs (les nuages de la Balance) : le verre un peu plus dense, l'ombre plus marquée ; l'éventail des
   livrets plus ouvert, pour voir les trois signes */
.telephone-heure { font-weight: 250; background: linear-gradient(180deg, #fff 0%, rgba(255, 255, 255, .88) 50%, rgba(226, 236, 255, .78) 100%);
  -webkit-background-clip: text; background-clip: text;
  filter: drop-shadow(0 0 1px rgba(10, 16, 40, .55)) drop-shadow(0 2px 8px rgba(10, 16, 40, .55)) drop-shadow(0 0 1px rgba(255, 255, 255, .5)); }
.telephone-date { text-shadow: 0 1px 4px rgba(10, 16, 40, .7); }
.livrets-eventail .livre-3d { margin-left: calc(var(--l) * -.36); }
.offre-couverture .livrets-eventail .livre-3d { margin-left: calc(var(--l) * -.36); }
.livrets-eventail .livre-3d:first-child, .offre-couverture .livrets-eventail .livre-3d:first-child { margin-left: 0; transform: rotate(-11deg) translateY(6%); }
.livrets-eventail .livre-3d:nth-child(3) { transform: rotate(10deg) translateY(6%); }

/* Un voile léger en haut de l'écran, comme sur un vrai écran verrouillé : l'heure reste lisible sur un fond clair */
.telephone-verrou::before { content: ''; position: absolute; inset: 0 0 auto; height: 38%; z-index: -1;
  background: linear-gradient(180deg, rgba(8, 12, 34, .42) 0%, rgba(8, 12, 34, .2) 55%, rgba(8, 12, 34, 0) 100%); }
.telephone-verrou { isolation: isolate; }

/* Livres et livrets plus grands (owner 14/11 : « on peut les agrandir un peu ») : le visuel des cartes gagne en hauteur */
.offres .offre-visuel { aspect-ratio: 4 / 3; }
.livres-apercu figure { gap: 26px; }

/* 14/11, suite : cartes à visuel carré (livres plus grands), la carte du ciel en trois tirages, des « + » pour ce qui s'ajoute */
.offres .offre-visuel { aspect-ratio: 1 / 1; }
.offre-tirages { position: relative; overflow: hidden; background: radial-gradient(ellipse 70% 80% at 50% 45%, #22306a 0%, var(--nuit) 75%); }
.tirage { position: absolute; display: block; height: auto; border-radius: 10px; box-shadow: 0 14px 30px rgba(0, 0, 0, .55), 0 0 0 1px rgba(230, 194, 122, .3); }
.offres .offre-tirages img { object-fit: contain; height: auto; }
.offre-visuel.offre-tirages .tirage-fond { width: 34%; left: 8%; top: 16%; transform: rotate(-9deg); }
.offre-visuel.offre-tirages .tirage-carte { width: 46%; left: 27%; top: 9%; transform: rotate(-2deg); z-index: 1; }
.offre-visuel.offre-tirages .tirage-roue { width: 46%; right: 6%; top: 22%; transform: rotate(7deg); z-index: 2; }
.offre-contenu li.plus::before { content: '+ '; color: var(--or); font-weight: 700; font-size: 1.05em; }
/* Téléphones encore resserrés, les deux de côté un peu plus derrière ; l'heure un peu plus épaisse (owner 14/11) */
.tel-gauche { margin-right: calc(var(--tel) * -.6); }
.tel-droite { margin-left: calc(var(--tel) * -.6); }
.tel-gauche .telephone { transform: rotate(-6deg) scale(.94); }
.tel-droite .telephone { transform: rotate(6deg) scale(.94); }
.telephone-heure { font-weight: 400; }
.telephone-date { font-weight: 600; }

/* Livres encore plus grands (owner 14/11 : « toujours trop petit ») : dans les cartes, ils suivent la largeur de l'écran */
.offre-couverture .livrets-eventail .livre-3d { --l: clamp(108px, 28vw, 134px) !important; }
.offre-couverture > .livre-3d { --l: clamp(170px, 46vw, 212px) !important; --e: 21px !important; }

/* Les livrets à la même taille que le livre (owner 14/11) : l'éventail se resserre, les deux de côté passent plus derrière */
.livrets-eventail .livre-3d, .offre-couverture .livrets-eventail .livre-3d { margin-left: calc(var(--l) * -.64); }
.livrets-eventail .livre-3d:first-child, .offre-couverture .livrets-eventail .livre-3d:first-child { margin-left: 0; transform: rotate(-8deg) translateY(4%); }
.livrets-eventail .livre-3d:nth-child(3) { transform: rotate(8deg) translateY(4%); }
.offre-couverture .livrets-eventail .livre-3d { --l: clamp(160px, 44vw, 200px) !important; --e: 8px !important; }
.offre-couverture > .livre-3d { --l: clamp(160px, 44vw, 200px) !important; }

/* « Votre ciel » : sans texte, centré (owner 14/11 : « je ne vois pas trop l'utilité du texte au-dessus », « un poil plus
   centré et cohérent, les deux sections sont un peu collées »). Les trois téléphones au milieu, le livret à gauche, le livre à
   droite, posés sur la même ligne ; sur téléphone, les téléphones d'abord, puis le livret et le livre. */
.demo { --tel-demo: clamp(96px, 25vw, 176px); --livre-demo: clamp(150px, 44vw, 200px);
  display: grid; grid-template-columns: minmax(0, 1fr); grid-template-areas: "tel" "livret" "livre"; justify-items: center; align-items: end;
  gap: 44px 16px; margin-top: clamp(28px, 5vw, 64px); }
.demo-fonds { grid-area: tel; }
.demo .trio-telephones { --tel: var(--tel-demo); padding-inline: 0; }
.demo > figure { margin: 0; display: grid; justify-items: center; gap: 18px; }
.demo-livret { grid-area: livret; }
.demo-livre { grid-area: livre; }
.demo > figure > figcaption { display: grid; justify-items: center; gap: 2px; text-align: center; }
.demo > figure > figcaption strong { color: var(--or); font-family: var(--f-titre); font-weight: 400; font-size: 21px; }
.demo > figure > figcaption span { color: var(--brume); font-size: 15px; }
.demo-livret > figcaption strong::before, .demo-livre > figcaption strong::before { content: '+ '; font-weight: 700; }
.demo .livrets-eventail .livre-3d, .demo-livre > .livre-3d { --l: var(--livre-demo) !important; }
.demo-livre > .livre-3d { margin-left: calc(var(--e) * -1); }
@media (min-width: 600px) {
  .demo { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-areas: "tel tel" "livret livre"; --livre-demo: clamp(130px, 24vw, 200px); }
}
@media (min-width: 900px) {
  .demo { grid-template-columns: repeat(3, auto); grid-template-areas: "livret tel livre"; justify-content: center; column-gap: clamp(22px, 2.4vw, 40px);
    --tel-demo: clamp(100px, 9vw, 150px); --livre-demo: clamp(116px, 9.4vw, 180px); }
  .demo > figure > figcaption { white-space: nowrap; }
}
/* les livrets penchés descendent un peu : leur légende garde sa place ; tout tient dans la largeur du site */
.demo-livret { gap: 40px; }
.demo { max-width: 1180px; }

/* Le haut de « Votre ciel » : le titre seul, centré, au-dessus de la vitrine ; la peinture en halo derrière les téléphones
   (owner 14/11 : « j'aime pas cette présentation »). On voit téléphones et livres sans défiler. */
.vitrine-ciel { position: relative; isolation: isolate; }
.vitrine-ciel::before { content: ''; position: absolute; z-index: -1; inset: 0 0 auto 0; height: min(980px, 100%); background: url('/img/hero.webp') center 30% / cover no-repeat; opacity: .3;
  -webkit-mask-image: radial-gradient(ellipse 52% 48% at 50% 46%, #000 12%, transparent 72%); mask-image: radial-gradient(ellipse 52% 48% at 50% 46%, #000 12%, transparent 72%); }
.tete-ciel { display: grid; justify-items: center; gap: 12px; text-align: center; padding-top: clamp(28px, 4vw, 52px); }
.tete-ciel h1 { font-size: clamp(2rem, 4.6vw, 3.1rem); }
.tete-ciel .badge { justify-self: center; }
.vitrine-ciel .demo { margin-top: 0; padding-top: clamp(18px, 3vw, 40px); }
.demo-fonds > figcaption { margin-top: 6px; }

/* Qu'on voie un livre et des livrets (owner 14/11) : le livre épais, sa tranche de pages bien visible ; les livrets fins */
.demo-livre > .livre-3d, .offre-couverture > .livre-3d { --e: calc(var(--l) * .17) !important; }
.demo .livrets-eventail .livre-3d, .offre-couverture .livrets-eventail .livre-3d { --e: 3px !important; }
/* Les deux téléphones de côté légèrement derrière celui du centre (owner 14/11). Les marges négatives d'avant ne
   s'appliquaient pas (« .trio-telephones figure { margin: 0 } » l'emportait) : elles passent ici, à un tiers de téléphone */
.demo .tel-gauche { margin-right: calc(var(--tel) * -.32); }
.demo .tel-droite { margin-left: calc(var(--tel) * -.32); }
.demo .tel-gauche figcaption { transform: translateX(-14%); }
.demo .tel-droite figcaption { transform: translateX(14%); }
.vitrine-ciel::before { opacity: .22; }
/* Cartes de même hauteur, « Choisir » aligné en bas : la carte la plus complète a plus de lignes (owner 14/11) */
.offres { align-items: stretch; }
.offres .offre-corps { display: flex; flex-direction: column; gap: 10px; flex: 1; }
.offres .offre-choisir { margin-top: auto; }
.offres .offre-contenu { margin-bottom: 8px; }
/* Une seule ligne de légendes, les trois éléments posés sur la même ligne, des écarts égaux entre eux (owner 14/11 :
   « l'espacement est bizarre ») : l'éventail penché débordait vers les téléphones, il garde ses distances */
.demo .livrets-eventail .livre-3d:first-child { transform: rotate(-8deg); }
.demo .livrets-eventail .livre-3d:nth-child(3) { transform: rotate(8deg); }
.demo-livret { gap: 46px; }
@media (min-width: 900px) {
  .demo > .demo-livret { margin-right: calc(var(--livre-demo) * .18); }
  .demo > .demo-livre { margin-left: calc(var(--livre-demo) * .05); }
}
/* « ciel » et « étoiles » dans l'or de la DA (owner 14/11 : « avec la couleur jaune de notre DA sur étoile et ciel ») */
.mot-or { font-style: normal; color: var(--or); }
/* Le téléphone du centre pile au milieu de la page, sous le titre (owner 14/11 : « cette section n'est pas centrée ») :
   trois colonnes, celles de côté de même largeur ; le livret et le livre centrés chacun dans la sienne */
@media (min-width: 900px) {
  .demo { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); justify-content: stretch; }
  .demo > .demo-livret, .demo > .demo-livre { margin: 0; justify-self: center; }
}
@media (min-width: 900px) {
  /* l'éventail se resserre et le livre grandit un peu : les deux côtés pèsent pareil, le livre se lit comme un vrai livre */
  .demo .livrets-eventail .livre-3d { margin-left: calc(var(--l) * -.78); }
  .demo .livrets-eventail .livre-3d:first-child { transform: rotate(-6deg); }
  .demo .livrets-eventail .livre-3d:nth-child(3) { transform: rotate(6deg); }
  .demo .livrets-eventail .livre-3d:first-child { margin-left: 0; }
  .demo-livre > .livre-3d { --l: calc(var(--livre-demo) * 1.15) !important; }
}
/* Même marge à gauche et à droite de la vitrine (owner 14/11 : « la section devrait être centrée, donc avoir de la marge à
   gauche et à droite »), le téléphone du centre restant au milieu : le livret calé à gauche, le livre à droite, à la même
   distance du bord ; l'éventail plus serré et le livre un peu plus grand, moins tourné, pour que les deux côtés aient la
   même largeur et que les écarts avec les téléphones restent proches */
@media (min-width: 900px) {
  .demo { --marge-vitrine: calc(var(--livre-demo) * .14); }
  .demo > .demo-livret { justify-self: start; margin-left: var(--marge-vitrine); }
  .demo > .demo-livre { justify-self: end; margin-right: calc(var(--livre-demo) * .12); }
  .demo .livrets-eventail .livre-3d { --l: calc(var(--livre-demo) * .92) !important; margin-left: calc(var(--l) * -.8); }
  .demo .livrets-eventail .livre-3d:nth-child(1) { transform: rotate(-7deg); }
  .demo .livrets-eventail .livre-3d:nth-child(3) { transform: rotate(7deg); }
  .demo .livrets-eventail .livre-3d:first-child { margin-left: 0; }
  .demo-livre > .livre-3d { --l: calc(var(--livre-demo) * 1.33) !important; }
  .demo-livre .livre-corps { transform: rotateY(-20deg) rotateX(3deg); }
}
/* Les sous-textes de la vitrine plus grands (owner 14/11) ; un peu moins entre 900 et 1200 px, où les colonnes sont étroites */
.demo > figure > figcaption span { font-size: 17.5px; }
@media (min-width: 900px) and (max-width: 1199px) { .demo > figure > figcaption span { font-size: 15.5px; } }
/* Livrets et livre d'une taille proche (owner 14/11 : « réajuster pour avoir une taille similaire ») : les livrets grandissent,
   empilés plus serrés pour garder la même largeur de chaque côté ; le livre un peu plus de face */
@media (min-width: 900px) {
  .demo .livrets-eventail .livre-3d { --l: calc(var(--livre-demo) * 1.2) !important; margin-left: calc(var(--l) * -.9); }
  .demo .livrets-eventail .livre-3d:first-child { margin-left: 0; transform: rotate(-4deg); }
  .demo .livrets-eventail .livre-3d:nth-child(3) { transform: rotate(4deg); }
  .demo-livre > .livre-3d { --l: calc(var(--livre-demo) * 1.32) !important; }
  .demo-livre .livre-corps { transform: rotateY(-14deg) rotateX(2deg); }
}
@media (min-width: 900px) {
  /* même marge visible à gauche et à droite avec ces tailles (mesuré à 1920 : 47 px de chaque côté) */
  .demo > .demo-livret { margin-left: calc(var(--livre-demo) * .18); }
  .demo > .demo-livre { margin-right: calc(var(--livre-demo) * .065); }
}
/* Le haut des livrets aligné sur celui du livre (owner 15/11 : « ce n'est pas aligné, il faudrait l'agrandir ») : même taille,
   la pile un peu plus serrée pour garder les marges */
@media (min-width: 900px) {
  .demo .livrets-eventail .livre-3d { --l: calc(var(--livre-demo) * 1.32) !important; margin-left: calc(var(--l) * -.93); }
  .demo .livrets-eventail .livre-3d:first-child { margin-left: 0; }
}
@media (min-width: 900px) {
  /* livrets à peine penchés : la pile garde sa place à côté des téléphones */
  .demo .livrets-eventail .livre-3d:first-child { transform: rotate(-2deg); }
  .demo .livrets-eventail .livre-3d:nth-child(3) { transform: rotate(2deg); }
}
@media (min-width: 900px) { .demo > .demo-livret { margin-left: calc(var(--livre-demo) * .14); } }
/* La ville choisie sur une vraie carte (owner 14/11 : « vraie carte OpenStreetMap ») : les tuiles passées en nuit pour
   rester dans la DA, une épingle dorée au milieu, « + » et « − », le crédit d'OpenStreetMap */
.carte-lieu { position: relative; height: 200px; margin-top: 10px; border-radius: 14px; overflow: hidden; border: 1px solid var(--trait-fort); background: #0b1129; isolation: isolate; }
.carte-lieu[hidden] { display: none; }
.carte-fond { position: absolute; inset: 0; filter: grayscale(1) invert(1) brightness(.7) contrast(1.2) sepia(1) hue-rotate(190deg) saturate(1.8); }
.carte-fond img { position: absolute; width: 256px; height: 256px; max-width: none; }
.carte-epingle { position: absolute; left: 50%; top: 50%; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; background: var(--or);
  box-shadow: 0 0 0 4px rgba(230, 194, 122, .28), 0 0 22px rgba(230, 194, 122, .85); }
.carte-zoom { position: absolute; right: 8px; top: 8px; display: grid; gap: 6px; }
.carte-zoom button { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--or); background: rgba(8, 12, 34, .78); color: var(--or); font-size: 20px; line-height: 1; cursor: pointer; }
.carte-credit { position: absolute; right: 6px; bottom: 5px; font-size: 11px; color: var(--brume); background: rgba(8, 12, 34, .7); padding: 1px 7px; border-radius: 6px; text-decoration: none; }

/* Le ciel des planètes en plein écran (owner 14/11) : un bouton rond en haut à droite ; le ciel prend tout l'écran, on y
   zoome ; sur iPhone, le ciel posé sur toute la fenêtre */
.ciel-plein { position: absolute; z-index: 4; top: 12px; right: 12px; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%;
  border: 1px solid var(--or); background: rgba(14, 22, 52, .78); color: var(--or); cursor: pointer; }
.ciel-plein[hidden] { display: none; }
.ciel-plein .fermer { display: none; }
.ciel-vivant.en-plein .ciel-plein .ouvrir { display: none; }
.ciel-vivant.en-plein .ciel-plein .fermer { display: inline; }
.ciel-vivant:fullscreen { width: 100vw; height: 100vh; max-height: none; border-radius: 0; border: 0; }
.ciel-vivant.plein-ecran { position: fixed; inset: 0; z-index: 1000; width: 100vw; height: 100dvh; min-height: 0; max-height: none; border-radius: 0; border: 0; }
.ciel-vivant.en-plein .ciel-scene { top: 64px; bottom: 64px; }
.ciel-vivant.en-plein .ciel-bas { bottom: 14px; }
html.ciel-plein-ouvert, html.ciel-plein-ouvert body { overflow: hidden; }
/* Sur iPhone (owner 15/11 « un bug en plein écran ») : le ciel posé sur la fenêtre restait sous les sections suivantes,
   l'en-tête et les onglets, parce que chaque section (z-index 1) fait sa propre pile ; on hisse toute sa lignée */
html.ciel-plein-ouvert main,
html.ciel-plein-ouvert main :has(.ciel-vivant.plein-ecran) { z-index: 1000; }
/* Le bouton du plein écran ne passe plus sur la pastille de la date (owner 15/11 « le bouton est par-dessus ») : la pastille
   lui laisse sa place (12 px du bord + 44 px de bouton + un écart) ; sur téléphone, elle se cale à gauche, le bouton à droite */
.ciel-date { max-width: calc(100% - 2 * 68px); }
@media (max-width: 640px) { .ciel-date { left: 12px; transform: none; max-width: calc(100% - 12px - 68px); } }
/* La Voie lactée en fond du ciel (owner 14/11) : une bande en biais, peinte une fois (img/voie-lactee.webp), derrière la roue */
.ciel-vivant { background: linear-gradient(var(--nuit), transparent 14%, transparent 84%, var(--nuit)), url('../img/voie-lactee.webp') center / cover no-repeat, radial-gradient(ellipse 70% 60% at 50% 55%, #1b2a5e 0%, var(--nuit) 75%); }
/* en plein écran, pas de fondu : tout l'écran est du ciel */
.ciel-vivant.en-plein { background: url('../img/voie-lactee.webp') center / cover no-repeat, radial-gradient(ellipse 70% 60% at 50% 55%, #1b2a5e 0%, var(--nuit) 75%); }

/* Gestion · Semaines (owner 14/11) : défiler les semaines écrites, voir les douze messages, et jusqu'où les gens lisent */
.semaines-nav { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; }
.semaines-pastilles { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0; padding: 0; list-style: none; }
.semaine-pastille { display: inline-block; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--trait-fort); color: var(--creme); text-decoration: none; font-size: 16px; }
.semaine-pastille.en-ligne { border-color: var(--or); }
.semaine-pastille.a-venir { border-style: dashed; color: var(--brume); }
.semaine-pastille.ici { background: rgba(230, 194, 122, .16); color: var(--or); border-color: var(--or); }
.semaine-statut { display: inline-block; margin-left: 10px; padding: 2px 12px; border-radius: 999px; font-family: var(--f-texte); font-size: 14px; font-weight: 700; vertical-align: middle; }
.semaine-statut.en-ligne { background: rgba(230, 194, 122, .18); color: var(--or); }
.semaine-statut.a-venir { border: 1px dashed var(--or); color: var(--or); }
.semaine-statut.passee { border: 1px solid var(--trait-fort); color: var(--brume); }
.semaine-signes { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 14px; }
.semaine-signe { padding: 14px 16px; border-radius: 16px; background: var(--nuit-2); border: 1px solid var(--trait); font-size: 17px; }
.semaine-signe h3 { margin: 0 0 6px; font-size: 21px; color: var(--or); }
.semaine-signe p { margin: 0 0 6px; }
.semaine-reste details { border-top: 1px solid var(--trait); padding: 10px 0; }
.semaine-reste summary { cursor: pointer; color: var(--or); font-size: 18px; min-height: 32px; }
.semaine-reste p { margin: 6px 0; font-size: 17px; }
@media (max-width: 640px) { .semaines-nav { grid-template-columns: 1fr 1fr; } .semaines-pastilles { grid-column: 1 / -1; order: 3; } }
/* Le rappel du médiateur à prendre (owner 15/11) : en haut de chaque page de la gestion */
.gestion-rappel { margin: 0 0 18px; font-weight: 700; border-style: solid; }
