/* Site public d'Advent Doors. Deux apparences (data-theme sur <html>) : « creme » (pages crème, titres Fraunces)
   et « nuit » (tout en bleu nuit, titres Lora). Texte en police système : lisible, rapide, rien chez un tiers.
   Mobile d'abord ; aucune ressource externe ; aucun style en ligne (CSP style-src 'self'). */

@font-face { font-family: 'Fraunces'; src: url(/a/fonts/fraunces-600.3a1de7711d.woff2) format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Lora'; src: url(/a/fonts/lora.f39fdc342c.woff) format('woff'); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Lora'; src: url(/a/fonts/lora-italic.b39335c66b.woff) format('woff'); font-weight: 400 700; font-style: italic; font-display: swap; }

:root {
  /* Couleurs du calendrier */
  --nuit: #161A3A;
  --nuit-2: #20245A;
  --violet: #4A3B7E;
  --glace: #FFF8EE;
  --kraft-clair: #F3E4C8;
  --kraft-fonce: #CFAE7C;
  --encre: #3B2416;
  --encre-douce: #6B4A33;
  --groseille: #B3263A;
  --groseille-vive: #C93246;
  --sapin: #2F6B57;
  --bougie: #FFC765;
  /* Mise en page */
  --texte: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif;
  --gouttiere: max(16px, env(safe-area-inset-left));
  --rayon: 20px;
  --rayon-petit: 14px;
}

/* Crème : pages claires et chaleureuses, cartes blanches. */
[data-theme="creme"] {
  --titres: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  --fond: #FFFAF3;
  --fond-2: #F6EEE2;
  --fg: #22254A;
  --doux: #555872;
  --pale: #6E7189;
  --carte: #FFFFFF;
  --bord: #EADFCD;
  --icone-fond: #FBECEE;
  --icone-fg: var(--groseille);
  --accent-texte: var(--groseille);
  --champ: #FFFFFF;
  --ombre: 0 1px 2px rgba(34, 37, 74, 0.05), 0 10px 30px rgba(34, 37, 74, 0.07);
}

/* Nuit : le ciel du calendrier partout. */
[data-theme="nuit"] {
  --titres: 'Lora', 'Iowan Old Style', Georgia, serif;
  --fond: var(--nuit);
  --fond-2: #1B1F49;
  --fg: var(--glace);
  --doux: rgba(255, 248, 238, 0.82);
  --pale: rgba(255, 248, 238, 0.64);
  --carte: rgba(255, 255, 255, 0.05);
  --bord: rgba(255, 248, 238, 0.13);
  --icone-fond: rgba(255, 199, 101, 0.14);
  --icone-fg: var(--bougie);
  --accent-texte: var(--bougie);
  --champ: var(--glace);
  --ombre: 0 12px 34px rgba(4, 5, 20, 0.35);
}

/* Bandes sombres (en-tête, vidéo, appel final, pied) : identiques dans les deux thèmes. */
.sombre, .barre, .pied {
  --fond: var(--nuit);
  --fg: var(--glace);
  --doux: rgba(255, 248, 238, 0.82);
  --pale: rgba(255, 248, 238, 0.64);
  --carte: rgba(255, 255, 255, 0.06);
  --bord: rgba(255, 248, 238, 0.14);
  --icone-fond: rgba(255, 199, 101, 0.14);
  --icone-fg: var(--bougie);
  --accent-texte: var(--bougie);
  color: var(--fg);
}
.sombre {
  background:
    radial-gradient(1.5px 1.5px at 12% 18%, rgba(255, 248, 238, 0.9), transparent 60%),
    radial-gradient(1px 1px at 28% 72%, rgba(255, 248, 238, 0.7), transparent 60%),
    radial-gradient(1.5px 1.5px at 47% 33%, rgba(255, 248, 238, 0.8), transparent 60%),
    radial-gradient(1px 1px at 63% 12%, rgba(255, 248, 238, 0.7), transparent 60%),
    radial-gradient(2px 2px at 78% 54%, rgba(255, 199, 101, 0.8), transparent 60%),
    radial-gradient(1px 1px at 88% 26%, rgba(255, 248, 238, 0.8), transparent 60%),
    radial-gradient(120% 90% at 50% 115%, #57408A 0%, #2E2C68 40%, var(--nuit) 80%);
  background-size: 420px 420px, 380px 380px, 460px 460px, 340px 340px, 520px 520px, 300px 300px, 100% 100%;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--fond);
  color: var(--fg);
  font-family: var(--texte);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, video, svg { display: block; max-width: 100%; }
picture { display: contents; }
a { color: var(--accent-texte); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--bougie); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }
button { font: inherit; color: inherit; }

h1, h2 { font-family: var(--titres); font-weight: 600; margin: 0 0 0.45em; text-wrap: balance; }
h1 { font-size: clamp(2.35rem, 8.4vw, 4.3rem); line-height: 1.05; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.9rem, 6vw, 2.9rem); line-height: 1.1; letter-spacing: -0.015em; }
h3 { font-size: 1.12rem; font-weight: 650; line-height: 1.3; margin: 0 0 0.4em; }
h1 em, h2 em { font-style: normal; color: var(--accent-texte); }
[data-theme="nuit"] h1 em, [data-theme="nuit"] h2 em { font-style: italic; }
p { margin: 0 0 1em; }
.chapeau { font-size: 1.12rem; line-height: 1.6; color: var(--doux); max-width: 40em; }
.note { color: var(--pale); font-size: 0.96rem; }
.icone { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.conteneur { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 var(--gouttiere); }
.conteneur-etroit { max-width: 820px; }
.section { padding: 72px 0; }
@media (min-width: 800px) { .section { padding: 112px 0; } }
#comment, #cases, #decors, #prix { background: var(--fond-2); }
/* Titres de section centrés ; ceux des blocs en deux colonnes restent alignés à gauche. */
.section .conteneur > h2, .section .conteneur > h2 + .chapeau { text-align: center; margin-left: auto; margin-right: auto; }
.section .conteneur > h2 + .chapeau { margin-bottom: 0; }

.evitement { position: absolute; left: 12px; top: -60px; z-index: 30; padding: 10px 16px; border-radius: 999px; background: var(--bougie); color: var(--nuit); font-weight: 650; }
.evitement:focus { top: 12px; }
main:focus { outline: none; }

/* ---------------------------------------------------------------- boutons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 13px 26px;
  border: 0; border-radius: 999px;
  background: var(--groseille); color: #fff;
  font-family: var(--texte); font-weight: 650; font-size: 1.02rem; line-height: 1.2; text-align: center;
  text-decoration: none; cursor: pointer;
  box-shadow: 0 8px 22px rgba(179, 38, 58, 0.28);
  transition: transform 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { background: var(--groseille-vive); color: #fff; transform: translateY(-1px); box-shadow: 0 12px 28px rgba(179, 38, 58, 0.34); }
.btn:active { transform: translateY(1px); }
.btn .icone { width: 18px; height: 18px; }
.btn-grand { min-height: 56px; padding: 15px 32px; font-size: 1.08rem; }
.btn-petit { min-height: 42px; padding: 9px 18px; font-size: 0.95rem; box-shadow: none; }
.btn-second { background: transparent; color: var(--fg); box-shadow: inset 0 0 0 1.5px var(--bord); }
.btn-second:hover { background: var(--carte); color: var(--fg); box-shadow: inset 0 0 0 1.5px var(--fg); }
.btn-verre { background: rgba(255, 248, 238, 0.1); color: var(--glace); box-shadow: inset 0 0 0 1.5px rgba(255, 248, 238, 0.22); }
.btn-verre:hover { background: rgba(255, 248, 238, 0.18); color: var(--glace); box-shadow: inset 0 0 0 1.5px rgba(255, 248, 238, 0.4); }
.btn[disabled] { opacity: 0.7; cursor: progress; transform: none; }
@media (prefers-reduced-motion: reduce) { .btn, .btn:hover, .btn:active { transition: none; transform: none; } }

/* ---------------------------------------------------------------- barre du haut */
.barre {
  position: sticky; top: 0; z-index: 20;
  background: rgba(22, 26, 58, 0.92);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 248, 238, 0.08);
  padding-top: env(safe-area-inset-top);
}
.barre-dedans { display: flex; align-items: center; gap: 12px; max-width: 1160px; margin: 0 auto; padding: 10px var(--gouttiere); }
.logo { display: flex; align-items: center; gap: 10px; color: var(--glace); text-decoration: none; font-family: var(--titres); font-weight: 600; font-size: 1.28rem; letter-spacing: -0.01em; white-space: nowrap; }
.logo img { border-radius: 9px; flex: none; }
.logo span { display: none; }
.nav { display: none; }
.langues { display: flex; margin-left: auto; border-radius: 999px; background: rgba(255, 248, 238, 0.08); padding: 3px; }
.langues a { display: grid; place-items: center; min-width: 36px; min-height: 32px; padding: 0 6px; border-radius: 999px; color: rgba(255, 248, 238, 0.75); text-decoration: none; font-size: 0.8rem; font-weight: 650; letter-spacing: 0.04em; }
.langues a[aria-current] { background: var(--glace); color: var(--nuit); }
.barre .btn-petit { white-space: nowrap; }
@media (min-width: 340px) { .logo span { display: inline; } }
@media (max-width: 480px) { .barre .btn-petit { display: none; } }
@media (min-width: 1080px) {
  .nav { display: flex; gap: 26px; margin-left: auto; }
  .nav a { color: rgba(255, 248, 238, 0.82); text-decoration: none; font-size: 0.95rem; font-weight: 550; white-space: nowrap; }
  .nav a:hover { color: var(--glace); }
  .langues { margin-left: 8px; }
}


/* ---------------------------------------------------------------- en-tête de l'accueil */
.hero { padding: 28px 0 60px; }
.hero-grille { display: grid; align-items: start; }
.surtitre { display: inline-block; justify-self: start; margin-bottom: 16px; padding: 6px 14px; border-radius: 999px; background: rgba(255, 199, 101, 0.14); color: var(--bougie); font-size: 0.9rem; font-weight: 600; letter-spacing: 0.01em; }
.hero .chapeau { font-size: 1.12rem; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 6px 0 22px; }
.actions .btn { flex: 1 1 220px; }
.atouts { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 0; padding: 0; list-style: none; color: var(--doux); font-size: 0.95rem; }
.atouts li { display: flex; align-items: center; gap: 7px; }
.atouts .icone { width: 18px; height: 18px; color: var(--bougie); stroke-width: 2.5; }

/* La grande vidéo (9:16, comme les clips des réseaux) : cadre vertical centré sous le titre sur téléphone (plein écran au
   clic) ; sur ordinateur, colonne de droite : .hero-video est étiré du haut du cadre « accès anticipé » au bas de la
   colonne de gauche, et son cadre 9:16 (.hero-cadre) prend cette hauteur, donc mêmes bords que les blocs voisins. */
.hero-video { margin: 4px 0 24px; }
.hero-cadre {
  position: relative; width: min(64vw, 250px); margin: 0 auto; aspect-ratio: 9 / 16; border-radius: 22px; overflow: hidden; background: #0B0D22;
  box-shadow: 0 0 0 1px rgba(255, 248, 238, 0.12), 0 24px 60px rgba(4, 5, 20, 0.55), 0 0 120px rgba(255, 199, 101, 0.16);
}
.hero-cadre video { display: block; width: 100%; height: 100%; object-fit: cover; }
.hero-video.lance video { object-fit: contain; background: #000; }
.video-lancer {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 8px; padding: 0 8px 4.5%;
  border: 0; cursor: pointer; color: var(--glace); font-weight: 650; font-size: 0.95rem; line-height: 1.2; text-align: center; text-shadow: 0 1px 6px rgba(0, 0, 0, 0.7);
  /* Bouton et texte dans la bande vide sous le socle de l'affiche (vers 80 % de la hauteur) : la maison reste visible. */
  background: linear-gradient(180deg, transparent 62%, rgba(10, 12, 30, 0.6));
}
.video-lancer-rond { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--groseille); box-shadow: 0 10px 30px rgba(179, 38, 58, 0.55), 0 0 0 6px rgba(255, 248, 238, 0.18); transition: transform 0.15s ease; }
.video-lancer:hover .video-lancer-rond { transform: scale(1.06); }
.video-lancer-rond .icone { width: 24px; height: 24px; margin-left: 3px; fill: currentColor; stroke: none; }
@media (prefers-reduced-motion: reduce) { .video-lancer-rond { transition: none; } .video-lancer:hover .video-lancer-rond { transform: none; } }
@media (min-width: 900px) {
  .hero { padding: 64px 0 96px; }
  .hero-grille { grid-template-columns: 1fr 1fr; column-gap: 56px; }
  .hero-grille > * { grid-column: 1; }
  .hero-grille > .surtitre, .hero-grille > h1 { grid-column: 1 / -1; }
  /* container-type: size : le cadre ne pèse pas sur la hauteur des lignes, il prend celle du bloc de gauche, sans dépasser 16/9 de la largeur de la colonne (177,78cqw) : le 9:16 reste exact. */
  .hero-video { grid-column: 2; grid-row: 3 / span 6; align-self: stretch; min-width: 0; container-type: size; min-height: 500px; margin: 6px 0 0; }
  .hero-cadre { width: auto; height: min(100%, 177.78cqw); border-radius: 26px; box-shadow: 0 0 0 8px #0B0D22, 0 0 0 10px rgba(255, 248, 238, 0.12), 0 30px 80px rgba(4, 5, 20, 0.6), 0 0 140px rgba(255, 199, 101, 0.18); }
  .actions .btn { flex: 0 0 auto; }
}

.telephone {
  position: relative; width: min(72vw, 320px); margin: 0 auto;
  border-radius: 36px; padding: 8px; background: #0B0D22;
  box-shadow: 0 0 0 2px rgba(255, 248, 238, 0.12), 0 30px 80px rgba(4, 5, 20, 0.6), 0 0 140px rgba(255, 199, 101, 0.18);
}
.telephone video { display: block; width: 100%; aspect-ratio: 9 / 16; height: auto; object-fit: cover; border-radius: 29px; background: var(--nuit-2); }
.boucle-bouton {
  position: absolute; right: 18px; bottom: 18px; width: 44px; height: 44px; border: 0; border-radius: 50%;
  background: rgba(16, 19, 44, 0.7); cursor: pointer; display: grid; place-items: center;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.boucle-bouton span { width: 14px; height: 16px; border-left: 4px solid var(--glace); border-right: 4px solid var(--glace); }
.boucle-bouton[data-etat="pause"] span { width: 0; height: 0; border-right: 0; border-left: 14px solid var(--glace); border-top: 9px solid transparent; border-bottom: 9px solid transparent; margin-left: 4px; }
@media (min-width: 900px) { .telephone { width: 340px; } }

/* ---------------------------------------------------------------- accès anticipé (avant l'ouverture) */
.inscription { margin: 6px 0 26px; padding: 20px 18px; border-radius: var(--rayon); background: rgba(255, 248, 238, 0.07); border: 1px solid rgba(255, 199, 101, 0.35); box-shadow: 0 0 60px rgba(255, 199, 101, 0.1); }
.inscription-titre { margin: 0 0 6px; font-size: 1.32rem; line-height: 1.2; color: var(--bougie); }
.inscription-accroche { margin: 0 0 14px; color: var(--doux); font-size: 1rem; }
.inscription-accroche em { font-style: normal; font-weight: 650; color: var(--glace); }
.formulaire-attente label[for] { display: block; margin-bottom: 6px; font-weight: 650; font-size: 0.95rem; }
.champ-ligne { display: flex; flex-wrap: wrap; gap: 10px; }
.champ-ligne input {
  flex: 1 1 220px; min-height: 52px; padding: 12px 18px; border: 2px solid transparent; border-radius: 999px;
  background: var(--glace); color: var(--encre); font: inherit; font-size: 1.02rem;
}
.champ-ligne input[aria-invalid="true"] { border-color: #FF8A8A; }
.champ-ligne .btn { flex: 1 1 150px; min-height: 52px; }
.inscription .coche { margin: 14px 0 4px; font-size: 0.93rem; color: var(--doux); }
.inscription .coche input { accent-color: var(--bougie); }
.inscription .erreur { color: #FFB4B4; }
.petit { margin: 10px 0 0; font-size: 0.82rem; line-height: 1.5; color: var(--pale); }
.petit a, .lien-bouton { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.lien-bouton { display: inline; padding: 0; border: 0; background: none; font: inherit; cursor: pointer; }
.lien-bouton[aria-expanded="true"] { text-decoration-thickness: 2px; }
.petit.conditions { margin-top: 6px; }
.pot-de-miel { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.attente-ok h3 { font-family: var(--titres); font-weight: 600; font-size: 1.35rem; color: var(--bougie); }
.attente-ok p { margin: 0; color: var(--doux); }
.attente-ok:focus, .lien-resultat:focus { outline: none; }
.lien-resultat { min-height: 1.5em; font-weight: 650; color: var(--accent-texte); }
@media (min-width: 900px) { .inscription { padding: 24px 24px 20px; } }

/* ---------------------------------------------------------------- confiance */
.confiance { background: var(--carte); border-bottom: 1px solid var(--bord); }
[data-theme="nuit"] .confiance { background: var(--fond-2); }
.confiance-liste { display: grid; gap: 14px; margin: 0 auto; padding-top: 22px; padding-bottom: 22px; list-style: none; }
.confiance-liste li { display: flex; gap: 12px; align-items: flex-start; }
.confiance-liste .icone { width: 40px; height: 40px; padding: 9px; border-radius: 12px; background: var(--icone-fond); color: var(--icone-fg); }
.confiance-liste strong { display: block; font-size: 0.97rem; line-height: 1.3; }
.confiance-liste span { display: block; font-size: 0.86rem; line-height: 1.4; color: var(--pale); }
@media (min-width: 700px) { .confiance-liste { grid-template-columns: repeat(3, 1fr); gap: 24px; padding-top: 26px; padding-bottom: 26px; } }

/* ---------------------------------------------------------------- pour qui ? */
.publics {
  display: grid; grid-auto-flow: column; grid-auto-columns: 78%; gap: 14px;
  margin: 40px calc(-1 * var(--gouttiere)) 0; padding: 4px var(--gouttiere) 18px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 var(--gouttiere); list-style: none;
  scrollbar-width: thin;
}
.publics li { scroll-snap-align: start; display: flex; flex-direction: column; border-radius: var(--rayon); background: var(--carte); border: 1px solid var(--bord); box-shadow: var(--ombre); overflow: hidden; }
.publics img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.publics li > div { padding: 18px 18px 20px; }
.publics h3 { font-family: var(--titres); font-weight: 600; font-size: 1.25rem; }
.publics p { margin: 0; color: var(--doux); font-size: 0.97rem; line-height: 1.55; }
.publics .public-lien { margin-top: 10px; font-weight: 650; }
@media (min-width: 640px) { .publics { grid-auto-columns: 42%; } }
@media (min-width: 1000px) {
  .publics { grid-auto-flow: row; grid-template-columns: repeat(5, 1fr); grid-auto-columns: auto; margin: 48px 0 0; padding: 0; overflow: visible; gap: 18px; }
}

/* ---------------------------------------------------------------- comment ça marche */
.etapes { display: grid; gap: 16px; margin: 40px 0 0; padding: 0; list-style: none; }
.etapes li { padding: 26px 24px 22px; border-radius: var(--rayon); background: var(--carte); border: 1px solid var(--bord); box-shadow: var(--ombre); }
.etapes p { margin: 0; color: var(--doux); }
.etape-num { display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 16px; border-radius: 50%; background: var(--groseille); color: #fff; font-family: var(--titres); font-weight: 600; font-size: 1.2rem; }
@media (min-width: 640px) { .etapes { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1040px) { .etapes { grid-template-columns: repeat(4, 1fr); gap: 20px; } }

/* ---------------------------------------------------------------- vidéo */
.video-grille { display: grid; gap: 36px; align-items: center; }
video::cue { font-family: var(--texte); font-size: 0.95rem; color: var(--encre); background: rgba(255, 248, 238, 0.94); }
@media (min-width: 900px) { .video-grille { grid-template-columns: 1fr 1fr; gap: 72px; } }

/* ---------------------------------------------------------------- types de cases : « Essaie » */
/* Les cartes sont celles du produit (src/cartes/cartes.css, enfermé sous .cartes-produit, chargé à la demande).
   Ici, seulement leur place : le lecteur les fixe en bas de l'écran, le site les pose sur une scène de nuit. */
.essai { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; margin-bottom: 40px; }
.essai h2, .essai .chapeau { text-align: center; margin-left: auto; margin-right: auto; }
.essai-onglets {
  display: flex; gap: 8px; margin: 24px calc(-1 * var(--gouttiere)) 0; padding: 4px var(--gouttiere) 10px;
  overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; scroll-padding-inline: var(--gouttiere);
}
.essai-onglets::-webkit-scrollbar { display: none; }
.essai-onglet {
  display: inline-flex; align-items: center; gap: 8px; flex: none;
  min-height: 44px; padding: 9px 16px 9px 13px; border: 0; border-radius: 999px;
  background: var(--carte); color: var(--fg); box-shadow: inset 0 0 0 1px var(--bord);
  font-weight: 600; font-size: 0.95rem; white-space: nowrap; cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}
.essai-onglet .icone { width: 18px; height: 18px; color: var(--icone-fg); }
.essai-onglet:hover { box-shadow: inset 0 0 0 1.5px var(--fg); }
.essai-onglet[aria-selected="true"] { background: var(--groseille); color: #fff; box-shadow: 0 6px 16px rgba(179, 38, 58, 0.28); }
.essai-onglet[aria-selected="true"] .icone { color: #fff; }
.essai-voix { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 14px 0 0; font-size: 0.9rem; color: var(--doux); }
.essai-voix-bouton {
  display: inline-flex; align-items: center; gap: 4px; flex: none; min-height: 40px; padding: 7px 15px 7px 10px;
  border: 0; border-radius: 999px; background: transparent; color: var(--fg); box-shadow: inset 0 0 0 1.5px var(--bord);
  font-weight: 650; font-size: 0.93rem; cursor: pointer; transition: background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}
.essai-voix-bouton .icone { width: 17px; height: 17px; color: var(--icone-fg); }
.essai-voix-bouton:hover { box-shadow: inset 0 0 0 1.5px var(--fg); }
.essai-voix-bouton[aria-pressed="true"] { background: var(--nuit); color: var(--glace); box-shadow: none; }
.essai-voix-bouton[aria-pressed="true"] .icone { color: var(--bougie); }
.essai-voix-bouton[aria-pressed="true"] .icone:first-child { display: none; }
.essai-voix span { flex: 1 1 200px; }
@media (max-width: 899px) { .essai-voix { justify-content: center; text-align: center; } }
.essai-scene {
  display: flex; flex-direction: column; justify-content: center; gap: 20px;
  min-height: 600px; padding: 40px 14px 24px; border-radius: var(--rayon);
  background:
    radial-gradient(1.5px 1.5px at 10% 14%, rgba(255, 255, 255, 0.8), transparent 60%), radial-gradient(1px 1px at 82% 9%, #fff, transparent 60%),
    radial-gradient(2px 2px at 90% 58%, rgba(255, 199, 101, 0.9), transparent 60%), radial-gradient(1px 1px at 18% 86%, #fff, transparent 60%),
    radial-gradient(1.5px 1.5px at 6% 52%, rgba(255, 255, 255, 0.7), transparent 60%),
    radial-gradient(120% 80% at 50% 108%, #57408A 0%, #2E2C68 38%, #161A3A 78%);
  box-shadow: var(--ombre);
}
.essai-legende { margin: 0; text-align: center; color: rgba(255, 248, 238, 0.85); font-size: 0.95rem; text-wrap: balance; }
.essai-attente { margin: 0; text-align: center; color: rgba(255, 248, 238, 0.7); }
@media (min-width: 900px) {
  .essai { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 56px; align-items: center; }
  .essai h2, .essai .chapeau { text-align: left; margin-left: 0; }
  .essai-onglets { flex-wrap: wrap; margin: 28px 0 0; padding: 0; overflow: visible; }
  .essai-scene { min-height: 660px; padding: 56px 40px 28px; }
}
.type-icone { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 13px; background: var(--icone-fond); color: var(--icone-fg); }
/* La carte du produit, posée dans la page au lieu d'être fixée en bas de l'écran ; le reste vient de cartes.css. */
.cartes-produit .carte.carte-en-page { position: relative; inset: auto; width: 100%; max-width: 410px; max-height: none; margin: 0 auto; translate: none; }
.cartes-produit .carte h2 { letter-spacing: normal; }
.cartes-produit .btn:hover { transform: none; }

.puzzle-bloc { display: grid; gap: 24px; align-items: center; padding: 26px; border-radius: var(--rayon); background: var(--carte); border: 1px solid var(--bord); box-shadow: var(--ombre); }
.puzzle-bloc h3 { font-family: var(--titres); font-weight: 600; font-size: 1.5rem; }
.puzzle-bloc p { margin: 0; color: var(--doux); }
.puzzle {
  display: grid; grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat(6, 1fr); gap: 3px;
  width: min(100%, 220px); aspect-ratio: 4 / 6; margin: 0 auto; padding: 3px; border-radius: 14px;
  background: url(/a/img/decors/coeur.a3456c5985.webp) center / cover, var(--nuit-2);
}
.puzzle span { display: grid; place-items: center; border-radius: 4px; background: rgba(22, 26, 58, 0.93); color: rgba(255, 248, 238, 0.55); font-size: 0.72rem; font-weight: 600; }
.puzzle span.vue { background: transparent; color: transparent; box-shadow: inset 0 0 0 1px rgba(255, 248, 238, 0.35); }
@media (min-width: 700px) { .puzzle-bloc { grid-template-columns: 220px 1fr; gap: 44px; padding: 36px; } }

/* ---------------------------------------------------------------- décors */
.decors { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 12px; margin: 40px 0 0; padding: 0; list-style: none; }
.decors li { display: grid; gap: 10px; }
.decors img { width: 100%; height: auto; aspect-ratio: 1; border-radius: var(--rayon); box-shadow: var(--ombre); }
.decors span { font-size: 0.95rem; font-weight: 600; line-height: 1.3; text-align: center; }
@media (min-width: 760px) { .decors { grid-template-columns: repeat(4, 1fr); gap: 28px 22px; } }

/* ---------------------------------------------------------------- offrir et carte cadeau */
.offrir-grille { display: grid; gap: 44px; align-items: center; }
.facons { display: grid; gap: 22px; margin: 28px 0; padding: 0; list-style: none; }
.facons li { display: flex; gap: 16px; align-items: flex-start; }
.facons h3 { margin-bottom: 4px; }
.facons p { margin: 0; color: var(--doux); }
.carte-cadeau { margin: 0; }
.cc {
  position: relative; overflow: hidden; width: min(calc(100% - 16px), 360px); margin: 0 auto; aspect-ratio: 105 / 148; padding: 26px 24px;
  border-radius: 10px; background: var(--kraft-clair); color: var(--encre);
  display: flex; flex-direction: column; justify-content: space-between;
  box-shadow: 0 24px 60px rgba(34, 37, 74, 0.28); transform: rotate(1.5deg);
}
.cc::before { content: ''; position: absolute; inset: 10px; border: 2px dashed var(--kraft-fonce); border-radius: 6px; pointer-events: none; }
.cc-image { position: absolute; right: 22px; top: 22px; width: 30%; height: auto; border-radius: 50%; box-shadow: 0 0 0 4px #fff, 0 6px 16px rgba(59, 36, 22, 0.3); }
.cc-haut, .cc-bas { position: relative; }
.cc-pour { margin: 0; font-family: var(--titres); font-weight: 600; font-size: 1.9rem; line-height: 1.1; color: var(--groseille); }
.cc-pour, .cc-titre { max-width: 64%; }
.cc-titre { margin: 4px 0 12px; font-family: var(--titres); font-weight: 600; font-size: 1.08rem; line-height: 1.25; }
.cc-mot { margin: 0; max-width: 64%; font-style: italic; font-size: 0.95rem; color: var(--encre-douce); }
.cc-signature { margin: 4px 0 0; font-style: italic; color: var(--encre-douce); }
.cc-signature::before { content: '— '; }
.cc-bas { display: flex; gap: 12px; align-items: flex-end; }
.cc-bas .qr { width: 92px; height: 92px; flex: none; border-radius: 6px; }
.cc-bas > div { min-width: 0; }
.cc-scan { margin: 0 0 6px; font-weight: 700; font-size: 0.92rem; color: var(--groseille); }
.cc-code-lib { margin: 0; font-size: 0.8rem; color: var(--encre-douce); }
.cc-code { margin: 0; font-family: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace; font-size: 0.8rem; white-space: nowrap; }
.carte-cadeau figcaption { margin-top: 20px; text-align: center; color: var(--pale); font-size: 0.92rem; }
@media (min-width: 900px) { .offrir-grille { grid-template-columns: 1.1fr 0.9fr; gap: 72px; } }

/* ---------------------------------------------------------------- prix */
.tarifs { display: grid; gap: 18px; max-width: 860px; margin: 40px auto 36px; }
.tarif { display: flex; flex-direction: column; gap: 6px; padding: 30px 28px; border-radius: var(--rayon); background: var(--carte); border: 1px solid var(--bord); box-shadow: var(--ombre); }
.tarif-vedette { border: 2px solid var(--groseille); }
[data-theme="nuit"] .tarif-vedette { border-color: var(--bougie); }
.tarif h3 { margin: 0; font-size: 1.05rem; color: var(--doux); }
.tarif-prix { margin: 4px 0; font-family: var(--titres); font-weight: 600; font-size: 3.1rem; line-height: 1.05; letter-spacing: -0.02em; }
.tarif-note { color: var(--doux); margin-bottom: 6px; }
.tarif-jour { margin: 0 0 18px; font-weight: 650; color: var(--accent-texte); }
.tarif .btn { margin-top: auto; }
.inclus-titre { max-width: 860px; margin: 8px auto 0; }
.inclus { display: grid; gap: 10px; max-width: 860px; margin: 14px auto 28px; padding: 0; list-style: none; }
.inclus li { display: flex; gap: 10px; align-items: flex-start; color: var(--doux); }
.inclus .icone { width: 20px; height: 20px; margin-top: 3px; color: var(--accent-texte); stroke-width: 2.5; }
#prix .note, .mentions { max-width: 860px; margin-left: auto; margin-right: auto; }
.mentions { color: var(--pale); font-size: 0.86rem; }
@media (min-width: 720px) { .tarifs { grid-template-columns: 1fr 1fr; } .inclus { grid-template-columns: 1fr 1fr; column-gap: 32px; } }

/* ---------------------------------------------------------------- FAQ */
.faq { display: grid; gap: 10px; margin: 40px 0 24px; }
.faq details { border-radius: var(--rayon-petit); background: var(--carte); border: 1px solid var(--bord); }
.faq summary { position: relative; padding: 18px 56px 18px 20px; cursor: pointer; list-style: none; font-weight: 650; line-height: 1.4; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 18px; top: 50%; translate: 0 -50%; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: var(--icone-fond); color: var(--icone-fg); font-size: 1.3rem; font-weight: 400; transition: rotate 0.2s ease; }
.faq details[open] summary::after { rotate: 45deg; }
.faq details p { margin: 0; padding: 0 20px 20px; color: var(--doux); }
@media (prefers-reduced-motion: reduce) { .faq summary::after { transition: none; } }

/* ---------------------------------------------------------------- appel final */
.final { padding: 80px 0; text-align: center; }
.final .chapeau { margin: 0 auto 28px; }
.final p:last-child { margin: 0; }
.reseaux { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.reseaux .btn { min-width: 140px; }

/* ---------------------------------------------------------------- panneaux (404, fin de la page d'idées) */
.panneau { padding: 34px 24px; border-radius: 26px; background: var(--carte); border: 1px solid var(--bord); box-shadow: var(--ombre); }
[data-theme="nuit"] .panneau { background: linear-gradient(160deg, rgba(74, 59, 126, 0.9), rgba(38, 42, 94, 0.95)); }
@media (min-width: 700px) { .panneau { padding: 44px 48px; } }
.page-lien { min-height: 60vh; }

/* ---------------------------------------------------------------- formulaires (signalement, rétractation) */
.formulaire { margin-top: 32px; }
.formulaire .champ { display: grid; gap: 6px; margin: 0 0 18px; }
.formulaire label { font-weight: 650; }
.formulaire .requis { font-weight: 400; font-size: 0.85rem; color: var(--pale); }
.formulaire input[type="text"], .formulaire input[type="email"], .formulaire select, .formulaire textarea {
  width: 100%; min-height: 50px; padding: 11px 14px; border: 1.5px solid var(--bord); border-radius: 12px;
  background: var(--champ); color: var(--encre); font: inherit; font-size: 1rem;
}
.formulaire input:focus-visible, .formulaire select:focus-visible, .formulaire textarea:focus-visible { outline: 3px solid var(--bougie); outline-offset: 1px; }
.formulaire textarea { resize: vertical; }
.formulaire [aria-invalid="true"] { border-color: var(--groseille); }
.formulaire small { color: var(--pale); font-size: 0.88rem; line-height: 1.45; }
.coche { display: flex; gap: 12px; align-items: flex-start; margin: 18px 0 8px; font-size: 0.96rem; line-height: 1.5; color: var(--doux); cursor: pointer; }
.coche input { flex: none; width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--groseille); cursor: pointer; }
.erreur { min-height: 1.5em; margin: 6px 0; color: var(--groseille); font-weight: 650; }
[data-theme="nuit"] .erreur { color: #FFB4B4; }
.erreur:empty { min-height: 0; margin: 0; }
.formulaire-ok { font-weight: 650; color: var(--fg); }
.formulaire-ok:focus { outline: none; }

/* ---------------------------------------------------------------- page d'idées */
.idees h1 { font-size: clamp(2.1rem, 7vw, 3.2rem); }
.idees .surtitre { background: var(--icone-fond); color: var(--accent-texte); }
.idees-liste { display: grid; gap: 12px; margin: 36px 0 24px; padding: 0; list-style: none; }
.idees-liste li { display: flex; gap: 16px; align-items: flex-start; padding: 20px; border-radius: var(--rayon-petit); background: var(--carte); border: 1px solid var(--bord); }
.idees-liste h2 { margin: 2px 0 4px; font-size: 1.2rem; letter-spacing: 0; }
.idees-liste p { margin: 0; color: var(--doux); }
.idee-num { display: grid; place-items: center; flex: none; width: 42px; height: 42px; border-radius: 12px; background: var(--kraft-clair); color: var(--groseille); font-family: var(--titres); font-weight: 600; font-size: 1.1rem; }
.idees-liste li:last-child .idee-num { background: var(--groseille); color: #fff; }
.idees-fin { margin-top: 36px; }
.idees-section { margin: 36px 0 8px; font-size: 1.6rem; }
.idees-voir { margin: 32px 0; padding: 22px 24px; border-radius: var(--rayon); background: var(--icone-fond); }
.idees-voir h2 { margin: 0 0 4px; font-size: 1.4rem; }
.idees-voir p { margin: 0 0 10px; color: var(--doux); }
.idees-voir ul { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 0; padding: 0; list-style: none; font-weight: 650; }
.idees-autres { margin-top: 40px; }
.idees-autres h2 { font-size: 1.4rem; }
.idees-autres ul { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.idees-autres a { display: inline-block; padding: 9px 16px; border-radius: 999px; background: var(--carte); border: 1px solid var(--bord); color: var(--fg); text-decoration: none; font-weight: 600; font-size: 0.95rem; }
.idees-autres a:hover { border-color: var(--fg); }
.lien-idees { margin: 14px 0 0; text-align: center; font-weight: 650; }
.essai-idees { margin: 0 0 40px; }
.essai-demo3d { margin: -16px 0 40px; text-align: center; }
.pied-idees { margin-bottom: 10px; }
.pied-idees strong { flex-basis: 100%; color: var(--glace); font-weight: 650; }
.idees-fin .actions { margin-bottom: 0; }

/* ---------------------------------------------------------------- pages juridiques */
.texte-juridique h2 { margin-top: 1.6em; font-size: 1.6rem; }
.texte-juridique h3 { margin-top: 1.2em; }
.texte-juridique p, .texte-juridique li { color: var(--doux); }
.texte-juridique .bientot { display: inline-block; padding: 6px 14px; border-radius: 999px; background: var(--icone-fond); color: var(--accent-texte); font-weight: 650; }
.tableau { overflow-x: auto; margin: 0 0 1em; }
.texte-juridique table { border-collapse: collapse; min-width: 100%; font-size: 0.95rem; }
.texte-juridique th, .texte-juridique td { padding: 8px 10px; border: 1px solid var(--bord); text-align: left; vertical-align: top; }
.texte-juridique blockquote { margin: 0 0 1em; padding: 4px 16px; border-left: 4px solid var(--bougie); background: var(--carte); }
.texte-juridique hr { border: 0; border-top: 1px solid var(--bord); margin: 2em 0; }
.texte-juridique mark.a-remplir { padding: 0 4px; border-radius: 4px; background: var(--bougie); color: var(--nuit); }

/* ---------------------------------------------------------------- pied de page */
.pied { padding: 48px 0 calc(44px + env(safe-area-inset-bottom)); background: #0F1230; font-size: 0.94rem; }
.pied-marque { display: flex; align-items: center; gap: 10px; font-family: var(--titres); font-weight: 600; font-size: 1.2rem; }
.pied-marque img { border-radius: 8px; }
.pied-liens { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 0 0 18px; }
.pied-liens a { color: var(--doux); text-decoration: none; }
.pied-liens a:hover { color: var(--glace); text-decoration: underline; }
.pied-langues { color: var(--pale); }
.pied-langues a { color: var(--doux); }
.pied-note { margin: 0; color: var(--pale); font-size: 0.86rem; }
