/* Cartolina — styles du site vitrine.
   Valeurs reprises de design/tokens.json : ne pas en ajouter ailleurs. */

@font-face { font-family: "Gloock"; src: url("../fonts/Gloock-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Courier Prime"; src: url("../fonts/CourierPrime-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible Next"; src: url("../fonts/AtkinsonHyperlegibleNext-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible Next"; src: url("../fonts/AtkinsonHyperlegibleNext-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible Next"; src: url("../fonts/AtkinsonHyperlegibleNext-ExtraBold.ttf") format("truetype"); font-weight: 800; font-display: swap; }

:root {
  --blanc: #FFFFFF;
  --noir: #000000;
  --gris: #666666;
  --gris-clair: #F4F4F4;
  --trait: #E3E3E3;
  --rouge: #E3000F;
  --erreur: #A3161F;
  /* Papier du petit mot (aperçu du site). Hors tokens.json pour l'instant :
     à valider puis à ajouter à la charte. La couleur est la teinte moyenne
     de la texture, affichée le temps qu'elle charge. */
  --papier: #FBF6EB;
  --papier-texture: url("../images/papier.jpg");

  --display: "Gloock", Georgia, serif;
  --machine: "Courier Prime", "Courier New", monospace;
  --sans: "Atkinson Hyperlegible Next", system-ui, sans-serif;

  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-6: 24px;
  --space-10: 40px;

  --radius-sm: 4px;
  --radius-md: 12px;
  --radius-lg: 28px;
  --radius-pill: 999px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 18px;
  line-height: 28px;
  color: var(--noir);
  background: var(--blanc);
}

h1, h2, h3 { font-family: var(--display); font-weight: 400; letter-spacing: -0.01em; margin: 0; text-wrap: balance; }
p { margin: 0; }
a { color: var(--noir); }
:focus-visible { outline: 2px solid var(--noir); outline-offset: 3px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Boutons : pilules. Rouge = le bouton principal du site, et lui seul. */
.bouton {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  min-height: 48px; padding: 0 var(--space-6);
  border-radius: var(--radius-pill); border: 2px solid var(--noir);
  font: 700 16px/20px var(--sans); text-decoration: none; cursor: pointer;
  background: var(--blanc); color: var(--noir);
}
.bouton--noir { background: var(--noir); color: var(--blanc); }
.bouton--principal { background: var(--rouge); border-color: var(--rouge); color: var(--blanc); }
.bouton--grand { min-height: 56px; font-size: 18px; }
.bouton svg { flex: none; }

/* En-tête posé sur la photo : logo et bouton sur étiquettes blanches */
.entete {
  position: absolute; z-index: 3; top: 0; left: 0; right: 0;
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-4);
  padding: var(--space-6) var(--space-10);
}
.logo {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px 6px 9px; border-radius: var(--radius-pill);
  color: var(--noir); text-decoration: none;
  font: 400 21px/24px var(--display); letter-spacing: -0.01em;
}
.logo svg { width: 20px; height: 23px; }

/* Verre dépoli : pour ce qui est posé sur la photo du salon (logo, panneau).
   Hors charte pour l'instant, à y ajouter si validé. */
.verre {
  background: rgba(255, 255, 255, 0.58);
  -webkit-backdrop-filter: blur(20px) saturate(1.3);
  backdrop-filter: blur(20px) saturate(1.3);
  border: 1px solid rgba(255, 255, 255, 0.7);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .verre { background: rgba(255, 255, 255, 0.92); }
}

/* ---------- Aperçu : le salon et la tablette ---------- */

.apercu { position: relative; }

.salon {
  position: relative; width: 100%;
  aspect-ratio: 1400 / 1116; /* recadrée : x 600 → 2000, la tablette au milieu */
  background: url("../images/salon-tablette.jpg") 100% 0 / 142.86% auto no-repeat;
  overflow: hidden;
}

/* L'écran de la tablette : dessiné à plat, puis déformé par apercu.js
   pour épouser les quatre coins de l'écran sur la photo. */
.ecran {
  position: absolute; left: 0; top: 0;
  width: 1000px; height: 670px;
  transform-origin: 0 0;
  overflow: hidden; border-radius: 12px;
  background: var(--gris-clair);
}
.ecran__photo {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0; transition: opacity 0.8s;
}
.ecran__photo.est-visible { opacity: 1; }
/* L'heure, la date et la météo posées directement sur la photo, comme dans l'app
   (_Horloge de lib/cadre/ecran_diaporama.dart) : Gloock, encre blanche, ou noire
   sur une photo claire (choisie par tablette.js). La météo est un exemple. */
.ecran__heure {
  position: absolute; z-index: 1; top: 36px; left: 44px;
  display: flex; flex-direction: column; gap: 4px;
  color: var(--blanc);
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.35);
  transition: color 0.8s, text-shadow 0.8s;
}
.ecran__heure strong {
  font: 400 112px/104px var(--display); letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.ecran__infos { display: flex; flex-direction: column; gap: 4px; padding-left: 6px; font: 700 26px/32px var(--sans); }
.ecran__meteo { display: flex; align-items: center; gap: 8px; }
.ecran__meteo svg {
  width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  filter: drop-shadow(0 1px 7px rgba(0, 0, 0, 0.35));
}
.ecran__heure.encre-noire { color: var(--noir); text-shadow: 0 1px 14px rgba(255, 255, 255, 0.45); }
.ecran__heure.encre-noire .ecran__meteo svg { filter: drop-shadow(0 1px 7px rgba(255, 255, 255, 0.45)); }

/* Le petit mot : un morceau de papier posé sur la photo, tapé à la machine */
.ecran__mot {
  position: absolute; z-index: 1; left: 36px; right: 36px; bottom: 36px;
  display: flex;
  transition: opacity 0.4s;
}
.ecran__mot.est-cache { opacity: 0; }
.papier {
  max-width: 68%;
  padding: 24px 32px 20px;
  transform: rotate(-1.2deg);
  background-color: var(--papier);
  background-image: var(--papier-texture);
  background-size: 700px;
  background-position: center;
  border-radius: 2px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.12), 0 10px 24px rgba(0, 0, 0, 0.18);
}
.papier__mot {
  font: 400 31px/42px var(--machine); color: var(--noir);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.papier__signature {
  margin-top: 10px; text-align: right;
  font: 400 26px/32px var(--machine); color: var(--gris);
}
.papier__signature::before { content: "— "; }

/* ---------- La tablette : barre de lecture, compteur, carte qui arrive ---------- */

[data-tablette] { position: relative; }
/* Cadrage serré (galerie carrée de l'accueil), comme sur téléphone */
.salon--carre { aspect-ratio: 1100 / 1116; background-size: 181.82% auto; background-position: 86.67% 0; }

.ecran__vide {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font: 700 30px/38px var(--sans); color: var(--gris); text-align: center; padding: 0 80px;
}
.ecran__compteur {
  position: absolute; z-index: 1; top: 40px; right: 44px;
  padding: 6px 16px; border-radius: var(--radius-pill);
  background: rgba(0, 0, 0, 0.45); color: var(--blanc); font: 700 22px/28px var(--sans);
}
.ecran__compteur.est-nouvelle { background: var(--blanc); color: var(--noir); }

/* Barre de lecture des photos, sous la tablette */
.barre-photos {
  position: absolute; z-index: 2; top: 70.5%; left: 65%; transform: translateX(-50%);
  display: flex; align-items: center; gap: 4px; padding: 4px; border-radius: var(--radius-pill); white-space: nowrap;
}
.barre-photos button {
  width: 40px; height: 40px; border: 0; border-radius: 50%; background: transparent; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; color: var(--noir);
}
.barre-photos button:hover { background: rgba(255, 255, 255, 0.7); }
.barre-photos span { min-width: 120px; text-align: center; font: 700 15px/20px var(--sans); }
.barre-photos svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
[data-carre] .barre-photos { left: 47%; }

/* Pendant qu'une carte arrive : ce qui se passe, en clair, au-dessus de la tablette */
.legende-arrivee {
  position: absolute; z-index: 3; top: 16px; left: 16px; right: 16px; margin: 0 auto; width: fit-content; max-width: calc(100% - 32px);
  display: flex; align-items: center; gap: var(--space-2);
  padding: 10px 16px; border-radius: var(--radius-pill); background: var(--blanc); border: 1px solid var(--trait);
  font: 700 15px/20px var(--sans); text-align: center;
}
.legende-arrivee::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--noir); }

/* « Vous avez une carte » : senior-02 à l'identique (1194 × 834), réduit par tablette.js.
   L'enveloppe kraft tombe sur la photo, puis s'ouvre toute seule (décidé le 28/11/2026). */
.ecran.arrivee-en-cours .ecran__heure, .ecran.arrivee-en-cours .ecran__mot, .ecran.arrivee-en-cours .ecran__compteur { visibility: hidden; }
.arrivee-app { position: absolute; inset: 0; z-index: 3; overflow: hidden; }
.arrivee-app__page {
  width: 1194px; height: 834px; padding: 32px 40px 48px;
  display: flex; flex-direction: column; align-items: center; transform-origin: 0 0; color: var(--noir);
}
.arrivee-app__titre { background: var(--blanc); border-radius: var(--radius-sm); padding: 12px 32px; font-size: 48px; line-height: 56px; font-weight: 800; }
.arrivee-app__scene { flex: 1; display: flex; align-items: center; justify-content: center; }
.arrivee-app__pose { transform: rotate(-3deg); }
.arrivee-app__enveloppe { position: relative; width: 640px; height: 400px; filter: drop-shadow(0 22px 22px rgba(0, 0, 0, .38)); }
.arrivee-app__fond, .arrivee-app__poche, .arrivee-app__rabat { position: absolute; inset: 0; width: 640px; height: 400px; display: block; }
.arrivee-app__fond { z-index: 1; }
.arrivee-app__carte { position: absolute; left: 22px; top: 18px; width: 596px; height: 364px; z-index: 2; background: var(--blanc); border-radius: var(--radius-sm); padding: 16px; }
.arrivee-app__carte img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 2px; }
.arrivee-app__poche { z-index: 3; }
.arrivee-app__poche svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.arrivee-app__poche p { position: absolute; left: 0; right: 0; top: 306px; margin: 0; text-align: center; font: 400 30px/40px var(--machine); }
.arrivee-app__rabat { z-index: 4; transform-origin: 50% 0; overflow: visible; }
.arrivee-app__sceau { transform-origin: 320px 228px; }
.arrivee-app__bouton { display: inline-flex; align-items: center; height: 88px; padding: 0 64px; background: var(--noir); color: var(--blanc); font-size: 32px; line-height: 40px; font-weight: 800; border-radius: var(--radius-lg); }

.arrivee-app:not([hidden]) .arrivee-app__pose { animation: arrivee-tombe .9s cubic-bezier(.2, 1.25, .4, 1) both; }
.arrivee-app:not([hidden]) .arrivee-app__enveloppe { animation: arrivee-frisson 1s ease-in-out 1.2s both; }
.arrivee-app:not([hidden]) .arrivee-app__titre { animation: arrivee-monte .5s ease-out .5s both; }
.arrivee-app:not([hidden]) .arrivee-app__bouton { animation: arrivee-monte .5s ease-out 1.1s both; }
.arrivee-app.est-ouverte .arrivee-app__sceau { animation: arrivee-decolle .3s ease-in both; }
.arrivee-app.est-ouverte .arrivee-app__rabat { animation: arrivee-rabat 1.9s cubic-bezier(.4, 0, .2, 1) .25s both; }
.arrivee-app.est-ouverte .arrivee-app__carte { animation: arrivee-sort 1.5s cubic-bezier(.4, 0, .2, 1) .7s both; }
.arrivee-app.est-ouverte .arrivee-app__fond, .arrivee-app.est-ouverte .arrivee-app__poche { animation: arrivee-descend .7s cubic-bezier(.5, 0, .75, 0) 1.45s both; }
.arrivee-app.est-ouverte .arrivee-app__titre, .arrivee-app.est-ouverte .arrivee-app__bouton { animation: arrivee-part .3s ease-in both; }
@keyframes arrivee-tombe { 0% { opacity: 0; transform: translateY(-560px) rotate(-14deg); } 60% { opacity: 1; } 100% { opacity: 1; transform: translateY(0) rotate(-3deg); } }
@keyframes arrivee-frisson { 0%, 100% { transform: rotate(0); } 20% { transform: rotate(-2deg); } 40% { transform: rotate(1.6deg); } 60% { transform: rotate(-1deg); } 80% { transform: rotate(.5deg); } }
@keyframes arrivee-monte { 0% { opacity: 0; transform: translateY(16px); } 100% { opacity: 1; transform: none; } }
@keyframes arrivee-part { to { opacity: 0; transform: translateY(12px); } }
@keyframes arrivee-decolle { to { opacity: 0; transform: scale(.4) rotate(20deg); } }
@keyframes arrivee-rabat {
  0% { transform: translateY(0) perspective(1100px) rotateX(0); z-index: 4; }
  16% { z-index: 4; }
  17% { z-index: 0; }
  32%, 63% { transform: translateY(0) perspective(1100px) rotateX(180deg); z-index: 0; animation-timing-function: cubic-bezier(.5, 0, .75, 0); }
  100% { transform: translateY(1100px) perspective(1100px) rotateX(180deg); z-index: 0; }
}
@keyframes arrivee-sort {
  0% { transform: translateY(0); z-index: 2; }
  45% { transform: translateY(-330px); z-index: 2; }
  46% { z-index: 5; }
  100% { transform: translateY(-10px) rotate(3deg) scale(1.22); z-index: 5; }
}
@keyframes arrivee-descend { to { transform: translateY(1100px); } }
@media (prefers-reduced-motion: reduce) {
  .arrivee-app * { animation: none !important; }
}

/* ---------- Champs : réglages de la personnalisation ---------- */

.champ { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.champ label, .vitesses legend { font-size: 15px; line-height: 20px; font-weight: 700; }
.champ input {
  width: 100%; min-height: 48px; padding: 0 14px; border: 2px solid var(--trait); border-radius: var(--radius-md);
  font: 400 17px/24px var(--sans); background: var(--blanc); color: var(--noir);
}
.champ input:focus-visible { outline: 2px solid var(--noir); outline-offset: 0; border-color: var(--noir); }
.vitesses { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-2); }
.vitesses legend { padding: 0; margin-bottom: var(--space-2); }
/* Contrôle segmenté, comme dans les réglages de l'app */
.vitesses__choix { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px; background: var(--gris-clair); border-radius: var(--radius-pill); }
.vitesses__choix label { position: relative; }
.vitesses__choix input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.vitesses__choix span {
  display: flex; align-items: center; justify-content: center; min-height: 40px;
  border-radius: var(--radius-pill); font: 700 15px/20px var(--sans); color: var(--noir);
}
.vitesses__choix input:checked + span { background: var(--noir); color: var(--blanc); }
.vitesses__choix input:focus-visible + span { outline: 2px solid var(--noir); outline-offset: 2px; }
.note { font-size: 14px; line-height: 20px; color: var(--gris); }

/* ---------- Barre du haut : logo, menu ou étapes, réglages ---------- */

.barre-haut {
  position: relative; z-index: 6; height: 72px; flex: none;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: var(--space-4);
  padding: 0 var(--space-6); background: var(--blanc); border-bottom: 1px solid var(--trait);
}
.barre-haut .logo { padding-left: 0; justify-self: start; }
.barre-haut__droite { justify-self: end; }
.nav-site { display: flex; gap: var(--space-6); font-size: 16px; }
.nav-site a { text-decoration: none; }
.nav-site a:hover { text-decoration: underline; }
.etapes-achat { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: var(--space-2); font-size: 15px; line-height: 20px; color: var(--gris); }
.etapes-achat li { display: flex; align-items: center; gap: var(--space-2); }
.etapes-achat li + li::before { content: ""; width: 32px; height: 1px; background: var(--trait); margin-right: var(--space-2); }
.etapes-achat b { display: inline-flex; width: 24px; height: 24px; border-radius: 50%; align-items: center; justify-content: center; border: 1px solid var(--trait); font-size: 13px; }
.etapes-achat [aria-current] { color: var(--noir); font-weight: 700; }
.etapes-achat [aria-current] b { background: var(--noir); border-color: var(--noir); color: var(--blanc); }
.etapes-achat .faite b { border-color: var(--noir); color: var(--noir); }

/* ---------- Accueil : page produit (galerie à gauche, fiche à droite) ---------- */

.produit {
  max-width: 1240px; margin: 0 auto; padding: var(--space-6) var(--space-10) 72px;
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 56px; align-items: start;
}
.galerie { position: sticky; top: var(--space-6); display: flex; flex-direction: column; gap: var(--space-3); }
.galerie__vue { position: relative; aspect-ratio: 1100 / 1116; border-radius: 16px; overflow: hidden; background: var(--gris-clair); }
.galerie__vue--carte { display: flex; align-items: center; justify-content: center; padding: 8%; }
.galerie__vue--carte .carte-postale { width: 100%; }
.galerie__vue--telephone { display: flex; align-items: center; justify-content: center; }
.telephone {
  width: 58%; aspect-ratio: 390 / 760; background: var(--blanc); border: 8px solid var(--noir); border-radius: 36px;
  padding: 28px 16px; display: flex; flex-direction: column; gap: var(--space-3);
}
.telephone__titre { font: 400 26px/32px var(--display); margin-bottom: 4px; }
.telephone__carte { display: grid; grid-template-columns: 64px 1fr; gap: var(--space-3); padding-bottom: var(--space-3); border-bottom: 1px solid var(--trait); }
.telephone__carte img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; }
.telephone__mot { font: 400 14px/18px var(--machine); }
.telephone__statut { display: flex; align-items: center; gap: var(--space-2); margin-top: 6px; }
.telephone__statut--attente { font-size: 14px; color: var(--gris); }
.telephone .cachet-vue { font-size: 13px; }
.telephone .coeur { width: 18px; height: 18px; }
.vignettes-galerie { display: flex; gap: var(--space-3); }
.vignettes-galerie button {
  flex: 1; display: flex; flex-direction: column; gap: 6px; padding: 0; border: 0; background: none; cursor: pointer;
  font: 400 14px/18px var(--sans); color: var(--gris); text-align: left;
}
.vignettes-galerie button[aria-selected="true"] { color: var(--noir); font-weight: 700; }
.vignette { display: block; width: 100%; aspect-ratio: 4 / 3; border-radius: 10px; border: 2px solid transparent; background: var(--gris-clair) center / cover no-repeat; }
.vignette--salon { background-image: url("../images/salon-tablette.jpg"); background-size: 182% auto; background-position: 86% 30%; }
.vignette--lea { background-image: url("../images/exemples/lea-plage.jpg"); }
.vignette--thomas { background-image: url("../images/exemples/thomas-tarte.jpg"); }
.vignettes-galerie button[aria-selected="true"] .vignette { border-color: var(--noir); }

.fiche { display: flex; flex-direction: column; gap: var(--space-4); padding-top: var(--space-2); }
.fiche__type { font-size: 15px; line-height: 20px; color: var(--gris); }
.fiche h1 { font-size: 46px; line-height: 52px; }
.fiche__prix { display: flex; align-items: baseline; gap: var(--space-3); flex-wrap: wrap; }
.fiche__prix strong { font: 400 36px/42px var(--display); }
.fiche__prix span { font-size: 16px; color: var(--gris); }
.fiche__prix-detail { font-size: 15px; line-height: 20px; color: var(--gris); margin-top: -8px; }
.coches { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-2); font-size: 17px; line-height: 24px; }
.coches li { display: flex; gap: var(--space-2); align-items: flex-start; }
.coches svg, .rassurance svg { width: 20px; height: 20px; flex: none; margin-top: 2px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.fiche__cta { width: 100%; min-height: 60px; }
.rassurance { list-style: none; margin: 0; padding: 0; display: flex; gap: var(--space-2) var(--space-6); flex-wrap: wrap; font-size: 15px; line-height: 20px; }
.rassurance li { display: flex; gap: var(--space-2); align-items: center; }
.rassurance svg { margin-top: 0; stroke-width: 2; }
.fiche .rassurance { justify-content: center; }
.fiche .faq { margin-top: var(--space-2); }
.fiche .faq summary { font-size: 17px; }
.fiche .faq details p { font-size: 16px; line-height: 24px; }
.barre-cta-mobile { display: none; }

/* Points forts et arguments : 4 blocs */
.arguments { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-6); margin-top: 48px; }
.argument { display: flex; flex-direction: column; gap: var(--space-2); }
.argument svg { width: 32px; height: 32px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.argument h3 { font-size: 24px; line-height: 30px; }
.argument p { font-size: 17px; line-height: 26px; color: var(--gris); }

/* ---------- Personnalisation : la tablette à gauche, la colonne à droite ---------- */

.page-creer[hidden], .etape-creer[hidden] { display: none; }
.creation { height: 100vh; height: 100dvh; display: flex; flex-direction: column; }
.atelier { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) 440px; }
.atelier__vue {
  min-height: 0; display: flex; flex-direction: column; justify-content: center; gap: var(--space-4);
  padding: var(--space-6); background: var(--gris-clair);
}
.atelier__vue [data-tablette] {
  border-radius: 16px; overflow: hidden;
  width: min(100%, calc((100dvh - 200px) * 1400 / 1116)); margin-inline: auto;
}
.prenoms { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); }
.prenoms .champ--large { grid-column: 1 / -1; }
.champ__erreur { font-size: 15px; line-height: 20px; font-weight: 700; }
.champ__erreur[hidden] { display: none; }
.champ input[aria-invalid="true"] { border: 2px solid var(--noir); }
.atelier__legende { text-align: center; font-size: 15px; line-height: 20px; color: var(--gris); }
.reglages-bouton {
  height: 44px; padding: 0 var(--space-4) 0 var(--space-3); border-radius: var(--radius-pill); cursor: pointer;
  display: inline-flex; align-items: center; gap: var(--space-2); color: var(--noir);
  background: var(--blanc); border: 1px solid var(--trait); font: 700 15px/20px var(--sans);
}
.reglages-bouton[aria-expanded="true"] { border-color: var(--noir); }
.reglages-bouton svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; }
.reglages {
  position: absolute; z-index: 20; top: 80px; right: var(--space-6);
  width: 340px; padding: var(--space-6); border-radius: 20px; background: var(--blanc); border: 1px solid var(--trait);
  display: flex; flex-direction: column; gap: var(--space-4);
}
.reglages h2 { font-size: 24px; line-height: 30px; }

.colonne { min-height: 0; display: flex; flex-direction: column; background: var(--blanc); border-left: 1px solid var(--trait); }
.colonne__defile { flex: 1; min-height: 0; overflow-y: auto; padding: var(--space-6); display: flex; flex-direction: column; gap: var(--space-4); }
.colonne h1 { font-size: 32px; line-height: 38px; }
.colonne__intro { font-size: 16px; line-height: 24px; color: var(--gris); }
.colonne__titre { display: flex; justify-content: space-between; align-items: baseline; margin-top: var(--space-2); }
.colonne__titre h2 { font: 700 17px/24px var(--sans); letter-spacing: 0; }
.colonne__titre span { font-size: 15px; color: var(--gris); }
.depot {
  display: flex; flex-direction: column; align-items: center; gap: var(--space-3); text-align: center;
  padding: 40px var(--space-6); border: 2px dashed var(--trait); border-radius: 16px;
}
.depot > svg { width: 40px; height: 40px; fill: none; stroke: var(--gris); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.depot p { font-size: 15px; line-height: 22px; color: var(--gris); }
.depot strong { font-size: 18px; line-height: 24px; }
.lien-discret { background: none; border: 0; padding: 0; font: inherit; font-size: 15px; text-decoration: underline; cursor: pointer; color: var(--noir); align-self: flex-start; }
.depot .lien-discret { align-self: center; }
.photos-cadre { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-3); }
.photo-carte {
  display: grid; grid-template-columns: 96px 1fr; gap: var(--space-3);
  padding: var(--space-3); border: 1px solid var(--trait); border-radius: 14px; cursor: pointer;
}
.photo-carte.est-active { border: 2px solid var(--noir); padding: 11px; }
.photo-carte img { width: 96px; height: 72px; object-fit: cover; border-radius: 8px; }
.photo-carte__haut { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.photo-carte__haut span { font: 700 15px/20px var(--sans); }
.photo-carte__retirer { border: 0; background: none; font: inherit; font-size: 14px; color: var(--gris); text-decoration: underline; cursor: pointer; padding: 0; }
.photo-carte textarea {
  grid-column: 1 / -1; width: 100%; min-height: 64px; resize: none; padding: 10px 12px;
  border: 1px solid var(--trait); border-radius: 10px; background: var(--papier); color: var(--noir);
  font: 400 16px/22px var(--machine);
}
.photo-carte textarea:focus { border-color: var(--noir); outline: none; }
.photo-carte__compte { grid-column: 1 / -1; text-align: right; font-size: 13px; line-height: 16px; color: var(--gris); margin-top: -6px; }
.encart { padding: var(--space-4); border-radius: 14px; background: var(--gris-clair); display: flex; flex-direction: column; gap: 6px; font-size: 15px; line-height: 22px; }
.encart__titre { font-weight: 700; font-size: 16px; }
.colonne__pied { flex: none; padding: var(--space-4) var(--space-6) var(--space-6); border-top: 1px solid var(--trait); display: flex; flex-direction: column; gap: var(--space-2); }
.colonne__pied p { font-size: 15px; line-height: 20px; color: var(--gris); }
.colonne__pied .bouton { width: 100%; }
.bouton:disabled { background: var(--trait); border-color: var(--trait); color: var(--gris); cursor: not-allowed; }

/* ---------- Chargement : on prépare le cadre ---------- */

.chargement {
  min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: var(--space-6);
  background-color: var(--papier); background-image: var(--papier-texture); background-size: 700px;
}
.chargement__boite { width: min(460px, 100%); display: flex; flex-direction: column; gap: var(--space-6); }
.chargement__boite > svg { width: 56px; height: 64px; }
.chargement h1 { font-size: 40px; line-height: 46px; }
.progression { height: 6px; border-radius: 3px; background: var(--trait); overflow: hidden; }
.progression div { height: 100%; width: 0; background: var(--noir); transition: width 0.3s linear; }
.etapes-prep { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-3); }
.etapes-prep li { display: flex; gap: var(--space-3); align-items: center; color: var(--gris); }
.etapes-prep li.est-faite { color: var(--noir); }
.etapes-prep svg { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.etapes-prep li:not(.est-faite) .coche { display: none; }
.etapes-prep li.est-faite .rond { display: none; }


@media (max-width: 1099px) {
  .arguments { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 768px) and (max-width: 1099px) {
  .atelier { grid-template-columns: minmax(0, 1fr) 380px; }
}
@media (max-width: 899px) {
  .produit { grid-template-columns: 1fr; gap: var(--space-6); padding: var(--space-4) var(--space-4) 96px; }
  .galerie { position: static; }
  .fiche h1 { font-size: 34px; line-height: 40px; }
  .nav-site { display: none; }
  .barre-haut--site { grid-template-columns: 1fr; }
  .barre-cta-mobile {
    position: fixed; z-index: 10; left: 0; right: 0; bottom: 0;
    display: flex; align-items: center; justify-content: space-between; gap: var(--space-4);
    padding: var(--space-3) var(--space-4); background: var(--blanc); border-top: 1px solid var(--trait);
  }
  .barre-cta-mobile strong { font: 400 24px/28px var(--display); }
  .barre-cta-mobile span { color: var(--gris); font-size: 15px; }
}

/* ---------- Téléphone ---------- */

@media (max-width: 767px) {
  .logo { font-size: 19px; line-height: 22px; padding: 5px 12px 5px 8px; }
  .logo svg { width: 18px; height: 21px; }

  /* Recadrage sur la tablette : x 780 → 1880 de la photo d'origine */
  .salon { aspect-ratio: 1100 / 1116; background-size: 181.82% auto; background-position: 86.67% 0; }

  /* Écran dessiné plus petit pour que le texte reste lisible une fois réduit */
  .ecran { width: 520px; height: 348px; border-radius: 8px; }
  .ecran__heure { top: 16px; left: 22px; gap: 2px; }
  .ecran__heure strong { font-size: 64px; line-height: 62px; }
  .ecran__infos { font-size: 17px; line-height: 22px; gap: 2px; padding-left: 4px; }
  .ecran__meteo svg { width: 20px; height: 20px; }
  .ecran__mot { left: 18px; right: 18px; bottom: 18px; }
  .papier { max-width: 88%; padding: 14px 18px 12px; }
  .papier__mot { font-size: 22px; line-height: 29px; -webkit-line-clamp: 2; }
  .papier__signature { margin-top: 4px; font-size: 19px; line-height: 24px; }
  .ecran__compteur { top: 16px; right: 22px; font-size: 13px; line-height: 18px; padding: 3px 10px; }
  .ecran__vide { font-size: 18px; line-height: 24px; padding: 0 40px; }
  .barre-photos { left: 47%; top: auto; bottom: 12px; }

  .barre-haut { grid-template-columns: 1fr auto; height: 60px; padding: 0 var(--space-4); }
  .etapes-achat { display: none; }
  .reglages-bouton span { display: none; }
  .reglages-bouton { padding: 0 11px; }
  .reglages { top: 68px; right: var(--space-4); left: var(--space-4); width: auto; }
  /* Une seule colonne : la tablette en haut, toujours visible, la liste dessous */
  .atelier { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); }
  .atelier__vue { padding: 0; gap: 0; }
  .atelier__vue [data-tablette] { border-radius: 0; width: min(100%, 48dvh); margin: 0 auto; }
  .atelier__legende { display: none; }
  .colonne { border-left: 0; }
  .colonne__defile { padding: var(--space-4); }
  .colonne h1 { font-size: 26px; line-height: 32px; }
  .colonne__pied { padding: var(--space-3) var(--space-4) var(--space-4); }

  .arguments { grid-template-columns: 1fr; }
}

/* =====================================================================
   Sections sous l'aperçu
   ===================================================================== */

.section { padding: 112px 0; }
.section--douce { background: var(--gris-clair); }
.conteneur { max-width: 1160px; margin: 0 auto; padding: 0 var(--space-10); }
.conteneur--etroit { max-width: 820px; }

.surtitre {
  display: flex; align-items: center; gap: var(--space-3);
  margin-bottom: var(--space-3);
  font-size: 16px; line-height: 22px; font-weight: 700; color: var(--gris);
}
.section h2 { font-size: 46px; line-height: 52px; max-width: 18ch; }
.section__intro { margin-top: var(--space-4); max-width: 54ch; font-size: 19px; line-height: 30px; }
.section h3 { font-size: 24px; line-height: 30px; }

/* ---- Ce que c'est ---- */
.deux-colonnes {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 72px; align-items: center;
}
.avantages {
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-6) var(--space-10);
  margin-top: var(--space-10);
}
.liste-icones { list-style: none; margin: var(--space-4) 0 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-4); }
.liste-icones li { display: grid; grid-template-columns: 24px 1fr; gap: var(--space-3); font-size: 17px; line-height: 25px; }
.liste-icones svg {
  width: 24px; height: 24px; margin-top: 1px;
  fill: none; stroke: var(--noir); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}

/* La carte postale, recto et verso qui se chevauchent */
.carte-postale { position: relative; aspect-ratio: 1 / 1.07; }
.cp-recto, .cp-verso {
  position: absolute; width: 78%; aspect-ratio: 3 / 2;
  border-radius: var(--radius-sm); overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.10), 0 18px 40px rgba(0, 0, 0, 0.16);
}
.cp-recto { top: 1%; left: 0; transform: rotate(-4deg); background: var(--blanc); padding: 3%; }
.cp-recto img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 2px; }
.cp-lettrage {
  position: absolute; left: 7%; bottom: 9%;
  padding: 6px 12px; border-radius: var(--radius-sm); background: var(--blanc);
  font: 400 clamp(17px, 2vw, 24px)/1.1 var(--display); letter-spacing: -0.01em;
}
.cp-verso {
  right: 0; bottom: 1%; transform: rotate(3deg);
  display: grid; grid-template-columns: 1fr 1px 0.82fr; gap: 5%;
  padding: 6% 5%;
  background: var(--papier) var(--papier-texture) center / 700px;
}
.cp-verso::before { /* le trait vertical du verso */
  content: ""; grid-column: 2; grid-row: 1; background: var(--trait);
}
.cp-mot { grid-column: 1; grid-row: 1; display: flex; flex-direction: column; justify-content: center; }
.cp-mot p { font: 400 clamp(14px, 1.35vw, 17px)/1.45 var(--machine); }
.cp-signature { margin-top: 8px; color: var(--gris); }
.cp-signature::before { content: "— "; }
.cp-droite { grid-column: 3; grid-row: 1; position: relative; display: flex; flex-direction: column; justify-content: space-between; }
.cp-timbre { align-self: flex-end; width: 26%; height: auto; }
.cp-tampon { position: absolute; top: 4%; right: 18%; width: 62%; height: auto; transform: rotate(-12deg); opacity: 0.9; }
.cp-adresse p { font: 400 clamp(14px, 1.3vw, 17px)/1.3 var(--machine); padding-bottom: 6px; border-bottom: 1px solid var(--trait); }
.cp-adresse span { display: block; height: 22px; border-bottom: 1px solid var(--trait); }

/* ---- Comment l'installer ---- */
.etapes {
  list-style: none; margin: 56px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6);
}
.etape {
  padding: 32px 28px; border-radius: 20px; background: var(--blanc);
  display: flex; flex-direction: column; gap: var(--space-3);
}
.etape__numero { font: 400 64px/1 var(--display); margin-bottom: var(--space-2); }
.etape p { font-size: 17px; line-height: 26px; }
.etapes__besoin { margin-top: var(--space-6); font-size: 17px; line-height: 26px; }

/* ---- Exemple : une famille, un an ---- */
.etiquette-exemple {
  padding: 2px 10px; border: 2px solid var(--noir); border-radius: var(--radius-pill);
  color: var(--noir); font-size: 14px; line-height: 18px;
}
.chiffres {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-4);
  margin: 48px 0 0;
}
.chiffres div { padding: 20px 24px; border: 1px solid var(--trait); border-radius: 20px; display: flex; flex-direction: column-reverse; gap: 4px; }
.chiffres dt { font-size: 15px; line-height: 20px; color: var(--gris); }
.chiffres dd { margin: 0; font: 400 48px/52px var(--display); }

.fil-annee {
  list-style: none; margin: 56px 0 0; padding: 8px 0 24px;
  display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--space-6); align-items: start;
}
.carte-annee { display: flex; flex-direction: column; gap: var(--space-3); }
.carte-annee:nth-child(odd) { transform: rotate(-1.5deg); }
.carte-annee:nth-child(even) { transform: rotate(1.5deg) translateY(28px); }
.carte-annee__mois { font-weight: 700; font-size: 15px; color: var(--gris); }
.carte-annee img {
  display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover;
  border: 6px solid var(--blanc); border-radius: var(--radius-sm);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.10), 0 10px 24px rgba(0, 0, 0, 0.14);
}
.carte-annee__papier {
  padding: 16px 18px; border-radius: 2px;
  background: var(--papier) var(--papier-texture) center / 700px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08), 0 8px 18px rgba(0, 0, 0, 0.10);
}
.carte-annee__papier p { font: 400 16px/23px var(--machine); }
.carte-annee__signature { margin-top: 6px; text-align: right; color: var(--gris); }
.carte-annee__signature::before { content: "— "; }
.carte-annee__statut { display: flex; align-items: center; gap: var(--space-2); }
.cachet-vue {
  display: inline-block; padding: 3px 12px; transform: rotate(-3deg);
  border: 2px solid var(--noir); border-radius: var(--radius-pill);
  font-size: 14px; line-height: 18px; font-weight: 700; white-space: nowrap;
}
.coeur { width: 22px; height: 22px; fill: var(--rouge); }
.exemple__note { margin-top: var(--space-6); font-size: 14px; line-height: 20px; color: var(--gris); }

/* ---- FAQ ---- */
.faq { margin-top: 40px; border-top: 1px solid var(--trait); }
.faq details { border-bottom: 1px solid var(--trait); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: var(--space-4);
  padding: 22px 0; font-size: 20px; line-height: 28px; font-weight: 700;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 14px; height: 14px;
  border-right: 2px solid var(--noir); border-bottom: 2px solid var(--noir);
  transform: translateY(-4px) rotate(45deg); transition: transform 0.2s;
}
.faq details[open] summary::after { transform: translateY(3px) rotate(-135deg); }
.faq details p { padding: 0 40px 24px 0; font-size: 18px; line-height: 28px; }

/* ---- Fin et pied de page ---- */
.fin__contenu { text-align: center; display: flex; flex-direction: column; align-items: center; }
.fin h2 { max-width: none; }
.fin .bouton { margin-top: var(--space-6); }
.pied { border-top: 1px solid var(--trait); }
.pied__contenu { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--space-4); padding-top: 32px; padding-bottom: 32px; }
.pied__logo { font: 400 22px/26px var(--display); }
.pied nav { display: flex; flex-wrap: wrap; gap: var(--space-6); font-size: 15px; }

/* ---- Sections : petits écrans ---- */
@media (max-width: 1099px) {
  .deux-colonnes { grid-template-columns: 1fr; gap: 56px; }
  .carte-postale { max-width: 560px; width: 100%; margin: 0 auto; }
  .fil-annee { grid-template-columns: repeat(3, 1fr); }
  .chiffres { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 767px) {
  .section { padding: 72px 0; }
  .conteneur { padding: 0 var(--space-6); }
  .section h2 { font-size: 34px; line-height: 40px; }
  .section__intro { font-size: 18px; line-height: 28px; }
  .avantages { grid-template-columns: 1fr; gap: var(--space-10); }
  .etapes { grid-template-columns: 1fr; margin-top: 40px; }
  .chiffres dd { font-size: 40px; line-height: 44px; }
  /* le fil de l'année défile de côté */
  .fil-annee {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
    margin: 40px calc(-1 * var(--space-6)) 0; padding: 8px var(--space-6) 36px;
  }
  .carte-annee { flex: 0 0 72%; scroll-snap-align: center; }
  .cp-mot p, .cp-adresse p { font-size: 12px; }
  .cp-adresse span { height: 14px; }
  .faq summary { font-size: 18px; line-height: 26px; }
}

/* ---------- Pages légales ---------- */

.entete--page { position: static; border-bottom: 1px solid var(--trait); }
.legal { padding: 64px 0 112px; }
.legal h1 { font-size: 46px; line-height: 52px; }
.legal h2 { margin-top: 48px; font-size: 28px; line-height: 34px; }
.legal h3 { margin-top: var(--space-6); font: 700 18px/26px var(--sans); }
.legal p, .legal li { max-width: 70ch; font-size: 17px; line-height: 28px; }
.legal p { margin-top: var(--space-3); }
.legal ul { margin: var(--space-3) 0 0; padding-left: 22px; }
.legal li + li { margin-top: var(--space-2); }
.legal__maj { color: var(--gris); }
.legal__modele {
  margin-top: var(--space-4); padding: 20px 24px;
  border: 1px solid var(--trait); border-radius: var(--radius-md); background: var(--gris-clair);
}
.legal__modele p:first-child { margin-top: 0; }
@media (max-width: 767px) {
  .entete--page { padding: var(--space-3) var(--space-6); }
  .legal { padding: 40px 0 72px; }
  .legal h1 { font-size: 34px; line-height: 40px; }
  .legal h2 { margin-top: 40px; font-size: 24px; line-height: 30px; }
}

/* ---------- Abonnement (hors maquette, à valider) ---------- */

.abonnement { padding: 64px 0 112px; }
.abonnement h1 { font-size: 46px; line-height: 52px; }
.abonnement__intro { margin-top: var(--space-3); font-size: 19px; line-height: 30px; }
.offres {
  margin-top: var(--space-10); /* de la place pour la pastille « 4 mois offerts » */
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4);
}
.offre {
  position: relative; cursor: pointer;
  display: flex; flex-direction: column; gap: 4px;
  padding: var(--space-6); border: 2px solid var(--trait); border-radius: 20px;
}
.offre input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.offre:has(input:checked) { border-color: var(--noir); }
.offre:has(input:focus-visible) { outline: 2px solid var(--noir); outline-offset: 3px; }
.offre__nom { font-size: 16px; line-height: 22px; font-weight: 700; }
.offre__prix { font: 400 40px/48px var(--display); }
.offre__prix small { font: 400 17px/24px var(--sans); }
.offre__detail { font-size: 15px; line-height: 20px; color: var(--gris); }
/* L'annuel, mis en avant : bordure plus épaisse, pastille et économie (en noir : le rouge est réservé) */
.offre--conseillee { border-width: 3px; padding-top: calc(var(--space-6) + 6px); }
.offre--conseillee:has(input:checked) { background: var(--gris-clair); }
.offre__badge {
  position: absolute; top: -14px; left: var(--space-6);
  padding: 3px 12px; border-radius: 999px;
  background: var(--noir); color: var(--blanc);
  font-size: 14px; line-height: 20px; font-weight: 700;
}
.offre__economie { margin-top: var(--space-2); font-size: 16px; line-height: 22px; font-weight: 700; }
.offres .bouton { grid-column: 1 / -1; }
.abonnement__note { grid-column: 1 / -1; font-size: 15px; line-height: 22px; color: var(--gris); }
.abonnement__note a { color: var(--gris); }
.abonnement__gerer {
  margin-top: 64px; padding-top: var(--space-10); border-top: 1px solid var(--trait);
  display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-3);
}
.abonnement__gerer h2 { font-size: 28px; line-height: 34px; }
.abonnement__gerer p { max-width: 54ch; font-size: 17px; line-height: 26px; }
.abonnement__gerer .bouton { margin-top: var(--space-2); }
.abonnement__suite { margin-top: var(--space-10); }
.abonnement__etapes { margin-bottom: var(--space-8); }
/* Checkout : tout ce que l'abonnement comprend */
.inclus { margin-top: var(--space-10); padding: var(--space-6); border-radius: 20px; background: var(--gris-clair); }
.inclus h2 { font-size: 26px; line-height: 32px; }
.inclus__liste {
  list-style: none; margin: var(--space-4) 0 0; padding: 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3) var(--space-6);
}
.inclus__liste li { display: flex; gap: 10px; font-size: 15px; line-height: 22px; color: var(--gris); }
.inclus__liste strong { display: block; font-size: 17px; line-height: 24px; color: var(--noir); }
.inclus__liste svg { flex: none; width: 20px; height: 20px; margin-top: 2px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 767px) {
  .inclus { padding: var(--space-4); }
  .inclus h2 { font-size: 22px; line-height: 28px; }
  .inclus__liste { grid-template-columns: 1fr; }
}
.abonnement__etapes[hidden], .commande[hidden] { display: none; }
/* Checkout : ce qui a été préparé, en tout petit sur une ligne */
.commande { margin-top: var(--space-6); display: flex; align-items: center; gap: var(--space-4); flex-wrap: wrap; }
.commande__vignettes { display: flex; gap: 6px; }
.commande__vignettes img { width: 48px; height: 36px; object-fit: cover; border-radius: 6px; display: block; }
.commande__texte { font-size: 16px; line-height: 24px; }
@media (max-width: 767px) {
  .abonnement { padding: 40px 0 72px; }
  .abonnement h1 { font-size: 34px; line-height: 40px; }
  .offres { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .ecran__photo { transition: none; }
}

/* ---------- Offrir pour Noël, garantie et aide (hors maquette, 28/11/2026, à valider) ---------- */

.section--trait { border-top: 1px solid var(--trait); }
.noel__points { margin-top: var(--space-6); }
.noel .bouton { margin-top: var(--space-6); }
.fiche__cadeau { font-size: 16px; line-height: 22px; }
.pied__aide { font-size: 15px; line-height: 20px; }
.abonnement__garantie { grid-column: 1 / -1; font-size: 16px; line-height: 24px; }

.offrir h1 { font-size: 56px; line-height: 62px; max-width: 16ch; }
.offrir__prix { margin: var(--space-6) 0 var(--space-4); display: flex; align-items: baseline; gap: var(--space-3); flex-wrap: wrap; }
.offrir__prix strong { font: 400 40px/48px var(--display); }
.offrir__prix span { font-size: 17px; color: var(--gris); }
.offrir__cta { margin-top: var(--space-6); }

.cadeau { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 56px; align-items: center; }
.cadeau__champs { margin-top: var(--space-6); display: flex; flex-direction: column; gap: var(--space-4); align-items: stretch; }
/* La carte cadeau : un verso de carte postale, à plat (pas d'ombre : elle s'imprime) */
.carte-cadeau {
  aspect-ratio: 3 / 2; border: 1px solid var(--trait); border-radius: var(--radius-sm);
  display: grid; grid-template-columns: 1fr 1px 0.8fr; gap: 5%; padding: 6% 5%;
  background: var(--papier) var(--papier-texture) center / 700px;
}
.carte-cadeau::before { content: ""; grid-column: 2; grid-row: 1; background: var(--trait); }
.carte-cadeau__mot { grid-column: 1; grid-row: 1; display: flex; flex-direction: column; justify-content: center; gap: var(--space-2); }
.carte-cadeau__mot p { font: 400 clamp(14px, 1.35vw, 17px)/1.45 var(--machine); }
.carte-cadeau__droite { grid-column: 3; grid-row: 1; position: relative; display: flex; flex-direction: column; justify-content: space-between; }
.carte-cadeau__timbre { align-self: flex-end; width: 26%; height: auto; }
.carte-cadeau__tampon { position: absolute; top: 4%; right: 18%; width: 62%; height: auto; transform: rotate(-12deg); opacity: 0.9; }
.carte-cadeau .est-exemple { color: var(--gris); }

@media (max-width: 899px) {
  .cadeau { grid-template-columns: 1fr; gap: var(--space-10); }
}
@media (max-width: 767px) {
  .offrir h1 { font-size: 38px; line-height: 44px; }
  .carte-cadeau__mot p, .carte-cadeau .cp-adresse p { font-size: 12px; }
  .carte-cadeau .cp-adresse span { height: 14px; }
}

/* Impression : seule la carte cadeau sort, au format d'une carte postale */
@media print {
  @page { size: A4 landscape; margin: 0; }
  body * { visibility: hidden; }
  .carte-cadeau, .carte-cadeau * { visibility: visible; }
  .carte-cadeau {
    position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%);
    width: 15cm; border: 1px dashed var(--gris);
    -webkit-print-color-adjust: exact; print-color-adjust: exact;
  }
  .carte-cadeau__mot p, .carte-cadeau .cp-adresse p { font-size: 11pt; }
  .carte-cadeau .est-exemple { visibility: hidden; }
}
