/* HipHipYou — feuille de style unique. Les couleurs sont celles de src/site/brand.ts ; ne pas en inventer d'autres ici. */
/* Fraunces n'est publiée qu'en WOFF2 statiques : deux graisses, Regular et SemiBold. Source Sans 3 a un WOFF2 variable : un seul fichier. */
@font-face { font-family: "Fraunces"; src: url("/assets/polices/Fraunces-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("/assets/polices/Fraunces-SemiBold.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url("/assets/polices/SourceSans3.woff2") format("woff2"); font-weight: 200 900; font-style: normal; font-display: swap; }
/* Toutes les couleurs sont ici, et nulle part ailleurs dans cette feuille : un test refuse un hexadécimal hors de ce bloc. Les ombres et les
   voiles se dérivent de l'encre par color-mix : aucune teinte nouvelle. Les jetons --fond-* ne sont pas des couleurs de la marque : chacun
   est la couleur relevée au centre d'un fond de carte (src/domain/carte-fond.ts, FONDS ; un test les tient égales), qui remplit le milieu
   de la carte quand elle s'allonge. */
:root { --paper: #fbf7ef; --ink: #1f2430; --navy: #233a5e; --navyHover: #2c4a78; --amber: #d9a441; --amberText: #a57824; --beige: #efe3cf; --accent: #7d5a14; --muted: #5a6070;
  --card: #ffffff; --success: #2e6b4f; --danger: #9b2c2c;
  --fond-birthday--aquarelle: #f9f4ee; --fond-birthday--dore: #f5f4ef; --fond-birthday--illustre: #f7f3e7; --fond-birthday-enfant--aquarelle: #fcfbf6; --fond-birthday-enfant--dore: #f6f3ec; --fond-birthday-enfant--illustre: #faf7e8; --fond-farewell--aquarelle: #fbfaf5; --fond-farewell--dore: #f6f5f0; --fond-farewell--illustre: #fef8e6; --fond-moving_abroad--aquarelle: #fafaf5; --fond-moving_abroad--dore: #f5f5ed; --fond-moving_abroad--illustre: #faf3e0; --fond-other--aquarelle: #fcf9f0; --fond-other--dore: #faf9f4; --fond-other--illustre: #f4f1e0; --fond-retirement--aquarelle: #fafbf5; --fond-retirement--dore: #f2f2e8; --fond-retirement--illustre: #fcf9ea; --fond-spouse_surprise--aquarelle: #fbfaf5; --fond-spouse_surprise--dore: #faf9f4; --fond-spouse_surprise--illustre: #f8f4e8; --fond-thanks--aquarelle: #fcfdf7; --fond-thanks--dore: #f9f8f3; --fond-thanks--illustre: #fdfbee; --fond-wedding--aquarelle: #fbfaf5; --fond-wedding--dore: #f6f5f0; --fond-wedding--illustre: #faf8ec;
  --measure: 68ch; --radius: 14px; --radius-lg: 22px; --gutter: clamp(16px, 4vw, 40px);
  --shadow: 0 18px 40px -18px color-mix(in srgb, var(--ink) 38%, transparent), 0 2px 6px color-mix(in srgb, var(--ink) 8%, transparent);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1); }
* { box-sizing: border-box; }
/* `hidden` doit gagner contre nos propres `display`. Sans cette ligne, `.parcours label { display: block }` et `.cta { display: inline-block }`
   rendaient visibles le second prénom et le bouton « Ouvrir mon projet » : la feuille d'auteur bat la feuille du navigateur, et le parcours
   montrait des champs et un bouton mort. Le parcours cache tout par cet attribut, jamais par une classe. */
[hidden] { display: none !important; }
html { color-scheme: light; background: var(--paper); accent-color: var(--navy); caret-color: var(--navy); scrollbar-color: var(--muted) var(--beige); }
::selection { background: var(--amber); color: var(--ink); }
/* Les mots longs de l'allemand ne débordent pas : ils se coupent plutôt que d'élargir la page. */
body { margin: 0; font-family: "Source Sans 3", system-ui, sans-serif; font-size: 1.0625rem; line-height: 1.6; color: var(--ink); background: var(--paper); overflow-wrap: break-word; }
/* Deux graisses seulement pour le titrage : 400 et 600. Ne pas demander 500, le navigateur retomberait sur 400 sans le dire. */
h1, h2, h3 { font-family: "Fraunces", Georgia, serif; color: var(--navy); line-height: 1.12; text-wrap: balance; hyphens: auto; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 600; letter-spacing: -0.015em; margin: 0 0 1rem; }
h2 { font-size: clamp(1.55rem, 3.2vw, 2.25rem); font-weight: 400; letter-spacing: -0.01em; margin: 0 0 1rem; }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); font-weight: 600; }
/* Le mot d'accroche d'un titre (tour 8, 23/09), marqué `*mot*` dans le contenu : la couleur de la clé de sol, assombrie pour tenir 3 sur le
   beige du héros, le papier et le blanc. La couleur seule : ni gras, ni italique de plus. */
.accroche { color: var(--amberText); }
a { color: var(--accent); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
/* L'anneau de focus est en encre : elle tient 12,2 sur le beige de l'en-tête comme sur le papier. L'ambre autour reste décoratif. */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible, video:focus-visible, audio:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; box-shadow: 0 0 0 6px var(--amber); }
main { max-width: 74rem; margin: 0 auto; padding: 0 var(--gutter) 5rem; }
p, li { max-width: var(--measure); }

/* L'en-tête. La couleur des liens de navigation n'atteint pas le bouton : `.site-header nav a` (0,1,2) battait `.cta` (0,1,0), et
   « Créer mon cadeau » s'écrivait en marine sur marine (vu le 23/09). */
.site-header { display: flex; flex-wrap: wrap; gap: 0.75rem 2rem; align-items: center; justify-content: space-between; padding: 0.9rem var(--gutter); background: linear-gradient(180deg, var(--card) 0%, var(--beige) 100%); border-bottom: 1px solid var(--beige); }
.site-header nav { display: flex; flex-wrap: wrap; gap: 0.35rem 1.25rem; align-items: center; }
.site-header nav a:not(.cta) { color: var(--navy); text-decoration: none; }
.site-header nav a:not(.cta):hover { text-decoration: underline; }
.site-header nav a.cta { color: var(--paper); padding: 0.6rem 1.15rem; }
.brand { display: inline-flex; align-items: center; height: 40px; }
.brand > svg { height: 40px; width: auto; }

/* Le bouton de la marque : marine, texte papier (approuvé le 22/09). Un seul par écran fait l'action principale. */
.cta { display: inline-block; padding: 0.9rem 1.6rem; border: 0; border-radius: 999px; background: var(--navy); color: var(--paper); text-decoration: none; font: inherit; font-weight: 600; line-height: 1.2; cursor: pointer;
  transition: background-color 160ms var(--ease-out), transform 160ms var(--ease-out); }
.cta:hover { background: var(--navyHover); }
.cta:active { transform: translateY(1px); }
.cta:disabled, .cta[aria-disabled="true"] { background: var(--muted); cursor: not-allowed; transform: none; }
.secondary { margin-left: 1rem; }
.hero { padding: 3rem 0 1.5rem; }
.lead { font-size: clamp(1.15rem, 1.6vw, 1.3rem); line-height: 1.5; max-width: 58ch; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.25rem; margin: 1.75rem 0 0; }
.card { background: var(--card); border: 1px solid var(--beige); border-radius: var(--radius); padding: 1.25rem; }
.note { color: var(--muted); font-size: 0.95rem; }

/* Le héros de l'accueil : la page de garde du livre. Un bandeau beige de bord à bord (l'ombre étendue le prolonge sans élargir la page :
   aucun défilement horizontal), la promesse en haut, le carrousel des possibilités dessous (tour 6). Sur grand écran, le titre à gauche et le
   reste de la promesse à droite, alignés par le bas : le texte tient en une bande, et le carrousel a toute la largeur pour deux cartes.
   C'est le seul endroit où la page hausse la voix ; tout le reste se tient. */
.hero-home { display: grid; gap: 2rem; padding: 2.5rem 0 3rem; margin-bottom: 1rem;
  background: var(--beige); box-shadow: 0 0 0 100vmax var(--beige); clip-path: inset(0 -100vmax); }
.hero-home h1 { font-size: clamp(2.4rem, 7vw, 4.5rem); line-height: 1.02; letter-spacing: -0.025em; margin-bottom: 1.25rem; }
.hero-home .lead { color: var(--ink); }
.hero-price { font-family: "Fraunces", Georgia, serif; font-size: clamp(1.6rem, 3.4vw, 2.2rem); color: var(--navy); margin: 1.5rem 0 0; font-variant-numeric: lining-nums tabular-nums; white-space: nowrap; }
.hero-home .actions { margin-top: 1rem; }
.hero-home .actions .note { color: var(--ink); max-width: 22rem; }
.hero-home .demo { margin: 0; }
@media (min-width: 960px) {
  .hero-home { padding: 3.5rem 0 4rem; gap: 2.75rem; }
  .hero-text { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: 3.5rem; align-items: end; }
  .hero-text h1 { grid-column: 1; grid-row: 1 / span 3; margin: 0; }
  .hero-text > :not(h1) { grid-column: 2; }
  .hero-text > .lead { margin-top: 0; }
}

/* Le carrousel : une piste qui défile d'elle-même (scroll-snap), sans JavaScript, au doigt comme à la molette. Une carte sur téléphone, avec
   le bord de la suivante qui dépasse pour dire qu'il y en a d'autres ; deux sur ordinateur. Les cartes ont la même hauteur (elles occupent
   les mêmes rangées de la piste) et, avec subgrid, leurs titres, leurs prix et leurs boutons s'alignent d'une carte à l'autre. */
.carrousel { min-width: 0; }
.carrousel-piste { position: relative; list-style: none; margin: 0; padding: 0.25rem 0 1rem; display: grid; grid-auto-flow: column; grid-auto-columns: 86%;
  grid-template-rows: repeat(5, auto); column-gap: 1rem; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; }
.carrousel-carte { grid-row: span 5; display: flex; flex-direction: column; align-items: flex-start; gap: 0.6rem; max-width: none; min-width: 0;
  scroll-snap-align: start; padding: 0.75rem 0.75rem 1.25rem; border-radius: var(--radius-lg); background: var(--card);
  box-shadow: 0 2px 6px color-mix(in srgb, var(--ink) 8%, transparent); }
.carrousel-carte > .demo { width: 100%; max-width: none; margin: 0; }
.carrousel-carte > h3, .carrousel-texte, .carrousel-prix, .carrousel-carte > .cta, .carrousel-ferme { margin: 0 0.5rem; }
.carrousel-carte > h3 { margin-top: 0.5rem; }
.carrousel-prix { font-family: "Fraunces", Georgia, serif; font-size: 1.35rem; line-height: 1.2; color: var(--navy); white-space: nowrap; font-variant-numeric: lining-nums tabular-nums; }
.carrousel-carte > .cta { margin-top: auto; }
@supports (grid-template-rows: subgrid) {
  .carrousel-carte { display: grid; grid-template-rows: subgrid; row-gap: 0.6rem; align-items: start; justify-items: start; }
  /* Chaque enfant tient SA rangée : une carte sans ligne de prix (formule absente du marché) garde son bouton dans la rangée des boutons,
     au lieu qu'il glisse dans celle des prix. */
  .carrousel-carte > .demo { grid-row: 1; }
  .carrousel-carte > h3 { grid-row: 2; }
  .carrousel-texte { grid-row: 3; }
  .carrousel-prix { grid-row: 4; }
  .carrousel-carte > .cta { grid-row: 5; align-self: end; margin-top: 0.25rem; }
  /* Une formule fermée à la vente : la note tient la rangée du bouton. */
  .carrousel-ferme { grid-row: 5; align-self: end; }
}
.carrousel-carte:focus-visible { outline: 3px solid var(--ink); outline-offset: -3px; }
@media (min-width: 600px) { .carrousel-piste { grid-auto-columns: 72%; } }
@media (min-width: 960px) { .carrousel-piste { grid-auto-columns: calc((100% - 1.25rem) / 2); column-gap: 1.25rem; } }
/* Avec le script, les flèches et les points prennent le relais : la barre de défilement se retire. */
.carrousel[data-pret="1"] .carrousel-piste { scrollbar-width: none; }
.carrousel[data-pret="1"] .carrousel-piste::-webkit-scrollbar { display: none; }
.carrousel-commandes { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: 0.25rem; }
.carrousel-fleche { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; padding: 0; border: 0; border-radius: 50%; background: var(--navy); color: var(--paper); cursor: pointer;
  transition: background-color 160ms var(--ease-out), color 160ms var(--ease-out); }
.carrousel-fleche svg { width: 1.25rem; height: 1.25rem; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.carrousel-fleche:hover { background: var(--amber); color: var(--ink); }
.carrousel-fleche[aria-disabled="true"], .carrousel-fleche[aria-disabled="true"]:hover { background: color-mix(in srgb, var(--navy) 22%, transparent); color: var(--navy); cursor: default; }
.carrousel-points { display: flex; gap: 0.15rem; }
.carrousel-point { display: grid; place-items: center; width: 1.75rem; height: 1.75rem; padding: 0; border: 0; border-radius: 50%; background: none; cursor: pointer; }
.carrousel-point::before { content: ""; width: 0.7rem; height: 0.7rem; border: 2px solid var(--navy); border-radius: 50%; background: transparent; transition: background-color 160ms var(--ease-out), transform 160ms var(--ease-out); }
.carrousel-point:hover::before { background: color-mix(in srgb, var(--navy) 35%, transparent); }
.carrousel-point[aria-current="true"]::before { background: var(--navy); transform: scale(1.2); }

/* L'essai du personnage (tâche 19) : la même piste, une carte par étape, l'écran capturé et sa légende. La carte ne suit pas la grille en
   rangées de l'accueil (une seule figure par carte) ; l'image prend la largeur de sa carte, jamais celle du fichier. */
.carrousel-personnage { margin: 2.5rem 0; }
.demo-personnage-titre { margin: 0 0 0.75rem; }
.carrousel-personnage .carrousel-piste { grid-template-rows: auto; }
.carrousel-personnage .carrousel-carte { grid-row: 1; display: block; }
.demo-personnage-etape { margin: 0; }
.demo-personnage-image { display: block; width: 100%; height: auto; border-radius: var(--radius); border: 1px solid var(--beige); background: var(--card); box-shadow: var(--shadow); }
.demo-personnage-etape figcaption { margin: 0.75rem 0.5rem 0; }
.demo-personnage-etape figcaption strong { display: block; color: var(--navy); }
.demo-personnage-choix { display: block; color: var(--muted); font-size: 0.95rem; }
.demo-ecran-4 { margin: 1.5rem 0; }
.demo-ecran-4[hidden] { display: none; }

/* La démonstration : image d'attente, bouton, lecteur. Sans JavaScript le lecteur est là et le bouton n'y est pas — l'inverse avec. La planche
   porte un filet d'ambre en retrait, comme les gravures des livres dorés : c'est le motif de la marque, tenu ici et nulle part ailleurs. */
.demo { margin: 2.5rem 0; padding: 0; max-width: 48rem; }
.demo-stage { position: relative; border-radius: var(--radius-lg); overflow: hidden; background: var(--ink); box-shadow: var(--shadow); aspect-ratio: 16 / 9; }
.demo-stage::after { content: ""; position: absolute; inset: 10px; border: 1px solid color-mix(in srgb, var(--amber) 85%, transparent); border-radius: calc(var(--radius-lg) - 8px); pointer-events: none; }
.demo-still, .demo-stage video { display: block; width: 100%; height: 100%; object-fit: cover; }
.demo-play { position: absolute; left: 1.25rem; bottom: 1.25rem; z-index: 1; display: none; align-items: center; gap: 0.6rem;
  font: inherit; font-weight: 600; padding: 0.85rem 1.4rem 0.85rem 1.1rem; border: 0; border-radius: 999px; background: var(--navy); color: var(--paper); cursor: pointer; box-shadow: var(--shadow);
  transition: background-color 160ms var(--ease-out), transform 200ms var(--ease-out); }
.demo-play:hover { background: var(--navyHover); transform: translateY(-1px); }
.demo-play-icon { width: 1.1rem; height: 1.1rem; fill: var(--amber); flex: none; }
.demo figcaption { margin-top: 0.9rem; display: flex; flex-wrap: wrap; gap: 0.2rem 0.6rem; align-items: baseline; }
.demo-caption { font-weight: 600; color: var(--navy); }
.demo-more { flex-basis: 100%; }
.demo-song { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem; margin: 1rem 0 0; font-weight: 600; color: var(--navy); max-width: none; }
.demo-song audio { flex: 1 1 16rem; min-width: 0; }
/* Avec JavaScript : l'image et le bouton d'abord ; le lecteur prend leur place au clic. */
html[data-js="1"] .demo-play { display: inline-flex; }
html[data-js="1"] .demo-stage .demo-media { display: none; }
html[data-js="1"] .demo[data-open="1"] .demo-stage .demo-media { display: block; }
html[data-js="1"] .demo[data-open="1"] .demo-play, html[data-js="1"] .demo[data-open="1"] .demo-still { display: none; }
/* Sans JavaScript, la vidéo porte elle-même son image d'attente (poster) : l'image en double se retire. */
html:not([data-js="1"]) .demo-video .demo-still { display: none; }
/* La seule mise en scène de la page : les planches du carrousel se dévoilent une fois, au chargement, de bas en haut. Rien pour qui a
   demandé moins de mouvement. */
@media (prefers-reduced-motion: no-preference) {
  .carrousel .demo-stage { animation: devoiler 1100ms var(--ease-out) both; }
  @keyframes devoiler { from { clip-path: inset(18% 0 0 0 round var(--radius-lg)); opacity: 0.35; transform: translateY(14px); } to { clip-path: inset(0 0 0 0 round var(--radius-lg)); opacity: 1; transform: none; } }
}

/* Les formules : comparables (même ordre de lecture — nom, prix, contenu), mais pas trois cartes identiques. Celle qu'on met en avant porte
   le fond beige et la bordure marine, et prend un peu plus de place. */
.offers-section { margin: 4rem 0 1rem; }
.offers { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); margin: 1.5rem 0 0; align-items: stretch; }
.offer { display: flex; flex-direction: column; align-items: flex-start; gap: 0.6rem; padding: 1.5rem; }
/* Calibrage (retour du 23/09) : sur une page de vente, les cartes partagent les mêmes rangées — nom, prix, contenu, action — grâce à subgrid.
   Les noms, les prix et les boutons s'alignent d'une carte à l'autre, quelle que soit la longueur du nom. */
@supports (grid-template-rows: subgrid) {
  .offers:not(.offers-choice) > .offer { display: grid; grid-row: span 4; grid-template-rows: subgrid; align-items: start; justify-items: start; row-gap: 0.6rem; }
  .offers:not(.offers-choice) > .offer > .cta, .offers:not(.offers-choice) > .offer > .unavailable { align-self: end; }
}
.offer-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.35rem 0.75rem; }
.offer-name { margin: 0; font-family: "Fraunces", Georgia, serif; font-size: 1.3rem; font-weight: 600; color: var(--navy); line-height: 1.2; }
.offer-includes { margin: 0; color: var(--ink); }
/* Les avantages du film de mariage (tour 9 du 23/09) : sous le contenu, dans la même rangée du subgrid. La carte s'allonge, les noms, prix et
   boutons des quatre cartes restent alignés. Une pastille ambre par puce, la couleur de la recommandation. */
.offer-body { display: flex; flex-direction: column; gap: 0.6rem; }
.offer-points { display: grid; gap: 0.3rem; margin: 0; padding: 0; list-style: none; font-size: 0.95rem; color: var(--ink); }
.offer-points > li, .offer-point { position: relative; display: block; padding-left: 1.1rem; }
.offer-points > li::before, .offer-point::before { content: ""; position: absolute; left: 0.1rem; top: 0.55em; width: 0.45rem; height: 0.45rem; border-radius: 50%; background: var(--amber); }
.offer .cta { margin-top: auto; }
.offer-featured { background: var(--beige); border: 2px solid var(--navy); box-shadow: var(--shadow); }
.offer-featured .price { font-size: 2.6rem; }
@media (min-width: 960px) { .offers:not(.offers-choice) { grid-template-columns: 1fr 1fr 1.25fr; } .offers:not(.offers-choice):has(> :nth-child(4)) { grid-template-columns: 1.25fr 1fr 1fr 1fr; } }
/* Intl sépare le montant du symbole par une espace : le prix ne se coupe jamais en fin de ligne. Chiffres alignés, à la manière d'un tarif. */
.price { display: block; font-family: "Fraunces", Georgia, serif; font-size: 2.1rem; line-height: 1.1; color: var(--navy); margin: 0; white-space: nowrap; font-variant-numeric: lining-nums tabular-nums; }
.badge { display: inline-block; padding: 0.15rem 0.65rem; border-radius: 999px; background: var(--navy); color: var(--paper); font-size: 0.85rem; font-weight: 600; }
.offers-section .note { display: block; margin-top: 1.25rem; }
.offers-aside { margin: 0.5rem 0 0; font-weight: 600; }
/* Ronde 26p (P1, maquette 9) : la page mariage, le film seul en tête (une colonne, la carte en entier), puis la phrase et les trois autres formules. */
.offers.offers-lead:not(.offers-choice) { grid-template-columns: minmax(0, 44rem); }
.offers-others { margin: 2rem 0 0; font-weight: 600; color: var(--navy); }
/* Correction 1 (m5) : les trois autres formules du mariage en colonnes égales : le cadeau complet n'y est pas mis en avant. */
@media (min-width: 960px) { .offers-lead + .offers-others + .offers:not(.offers-choice) { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* « Et après le paiement ? » (tour 6) : quatre étapes numérotées, chacune avec son pictogramme. Pleine sur l'accueil et « Comment ça marche »
   (quatre colonnes sur grand écran), compacte à l'écran 5 : pictogramme et titre, la phrase dans un <details>, deux colonnes sur téléphone. */
.apres-paiement { margin: 4rem 0 1rem; padding-top: 2.25rem; border-top: 1px solid var(--amber); }
.apres-etapes { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: 1.75rem 2rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); counter-reset: apres; }
.apres-etape { counter-increment: apres; max-width: none; }
.apres-etape .picto { display: block; width: 3.5rem; height: 3.5rem; }
.apres-etape h3 { margin: 0.9rem 0 0.4rem; }
.apres-etape h3::before { content: counter(apres) ".\00a0"; }
.apres-etape p { margin: 0; }
.apres-compact { margin: 1.5rem 0 0; padding: 1.1rem 1.1rem 1rem; border: 1px solid var(--beige); border-top: 1px solid var(--beige); border-radius: var(--radius); background: var(--card); }
.apres-compact h2 { font-size: 1.2rem; font-weight: 600; margin: 0 0 0.75rem; }
.apres-compact .apres-etapes { margin: 0; gap: 0.9rem 0.75rem; grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 559px) { .apres-compact .apres-etapes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.apres-compact summary { display: flex; flex-direction: column; align-items: flex-start; gap: 0.35rem; cursor: pointer; list-style: none; font-size: 0.95rem; font-weight: 600; line-height: 1.25; color: var(--navy); }
.apres-compact summary::-webkit-details-marker { display: none; }
/* Le chevron dit que la ligne s'ouvre ; il se retourne une fois ouverte. Dessiné par une bordure : aucun caractère lu par un lecteur d'écran. */
.apres-compact summary::after { content: ""; width: 0.45rem; height: 0.45rem; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); margin: 0 0 0.15rem 0.2rem; }
.apres-compact details[open] summary::after { transform: rotate(-135deg); margin-top: 0.2rem; }
/* Le numéro va au titre de l'étape, et à lui seul : le mot d'accroche du titre de la bande est aussi un <span> (« Et 0. après », vu le 30/09). */
.apres-compact .apres-etape summary > span::before { content: counter(apres) ".\00a0"; }
.apres-compact .picto { width: 2.25rem; height: 2.25rem; }
.apres-compact details p { margin: 0.4rem 0 0; font-size: 0.9rem; color: var(--ink); }

/* Le récit des pages : le titre à gauche, le texte à droite sur grand écran, séparés par un filet d'ambre. Un rythme de livre, pas des cartes. */
.story { display: grid; gap: 0.5rem 3rem; padding: 2.25rem 0; border-top: 1px solid var(--amber); }
.story h2 { margin: 0; }
.story p { margin: 0; font-size: 1.125rem; }
/* Ronde 26p (P1) : « Les formules, selon l'occasion » sur « Comment ça marche » : deux sous-titres et leur phrase, dans la colonne du texte. */
.formules-occasion { align-items: start; }
.formules-occasion-corps { display: grid; gap: 0.4rem; }
.formules-occasion-corps h3 { margin: 0.6rem 0 0; font-size: 1.125rem; }
.formules-occasion-corps h3:first-child { margin-top: 0; }
/* Ronde 26p (P2, maquette 10) : le plan des deux guides, une étape numérotée par ligne. */
.guide-plan { margin: 2.5rem 0 0; max-width: var(--measure); }
.guide-etapes { display: grid; gap: 0.9rem; margin: 1rem 0 0; padding-left: 1.4rem; }
.guide-etapes h3 { margin: 0; font-size: 1.05rem; }
.guide-etapes p { margin: 0.2rem 0 0; }
@media (min-width: 900px) { .story { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } }
.story + .faq, .offers-section + .story { margin-top: 1rem; }
.faq { margin-top: 3rem; }
/* Les textes légaux (tâche 10) : une colonne de lecture, des titres qui séparent sans crier. Un champ à fournir se voit : il ne doit jamais partir en ligne. */
.legal { max-width: 46rem; padding: 1rem 0 2rem; }
.legal h2 { margin: 2.25rem 0 0.5rem; font-size: 1.35rem; }
.legal h3 { margin: 1.5rem 0 0.4rem; font-size: 1.1rem; }
.legal ul { padding-left: 1.25rem; }
.legal li + li { margin-top: 0.35rem; }
mark.a-fournir { background: var(--amber); color: var(--navy); padding: 0 0.25rem; }
.faq details { border-top: 1px solid var(--beige); padding: 0.9rem 0; }
.faq details:last-child { border-bottom: 1px solid var(--beige); }
.faq summary { cursor: pointer; font-weight: 600; color: var(--navy); }
.faq details p { margin: 0.6rem 0 0; }

/* Le pied de page : la quatrième de couverture, en marine. Le logo y passe en papier (le `fill` du CSS l'emporte sur l'attribut du SVG) ;
   l'ambre de la note reste. Texte papier et beige : 10,9 et 9,1 sur le marine. */
.site-footer { display: grid; gap: 1.5rem 3rem; margin-top: 3rem; padding: 3rem var(--gutter) 2.5rem; background: var(--navy); color: var(--beige); font-size: 0.975rem; }
.site-footer a { color: var(--paper); }
/* Sur le marine, l'encre du logo passe en papier ; l'or de la clé et des éclats reste ambre (contraste mesuré dans brand.test.ts). */
.site-footer .brand svg .encre, .site-footer .brand svg text { fill: var(--paper); }
.footer-note { margin: 0.75rem 0 0; }
.footer-links, .site-footer nav { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; align-content: start; }
@media (min-width: 900px) { .site-footer { grid-template-columns: 1.2fr 1fr 1fr; } .footer-links, .site-footer nav { flex-direction: column; } }
@media (max-width: 640px) { .site-header { padding: 0.75rem var(--gutter); } .secondary { display: block; margin: 0.75rem 0 0; } }

/* Les écrans du parcours, la page merci et la page du projet. Un écran par <section> : `hidden` suffit à n'en montrer qu'un, sans JavaScript
   de mise en page. Les champs sont empilés, à la largeur de lecture : un formulaire se remplit mieux en une colonne. */
.parcours { margin: 2rem auto 0; max-width: 46rem; }
/* Le fil d'Ariane est une vraie suite : les numéros disent où l'on en est. */
.parcours .steps { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.5rem; padding: 0; margin: 0 0 2rem; counter-reset: etape; color: var(--muted); font-size: 0.95rem; }
.parcours .steps li { counter-increment: etape; border-top: 3px solid var(--beige); padding-top: 0.5rem; max-width: none; }
.parcours .steps li::before { content: counter(etape) "\00a0"; font-family: "Fraunces", Georgia, serif; font-variant-numeric: lining-nums; }
.parcours .steps li[aria-current="step"] { color: var(--navy); font-weight: 600; border-top-color: var(--navy); }
/* Le titre d'un écran prend le focus à chaque bascule, et le navigateur l'amène alors tout en haut de la fenêtre : un peu d'air au-dessus
   (« Votre commande », « Mon projet », vus collés au bord le 30/09). */
.parcours h1 { font-size: clamp(1.9rem, 4.5vw, 2.6rem); scroll-margin-top: 1.5rem; }
.parcours label { display: block; max-width: var(--measure); margin: 1.1rem 0; font-weight: 600; color: var(--navy); }
.parcours label.choice { display: flex; gap: 0.6rem; align-items: baseline; font-weight: 400; color: var(--ink); margin: 0.4rem 0; }
.parcours label.choice input { flex: none; width: 1.1rem; height: 1.1rem; }
/* Ronde 26l (C6, D14) : les options de la commande (occasion, langue chantée, style, ton, rythme, voix) se choisissent comme sur l'écran du
   personnage : l'option choisie en marine plein, avec sa coche et un liseré ambre ; le contour du clavier reste noir, distinct du liseré.
   La case radio native reste là pour le clavier et les lecteurs d'écran. Les cases à cocher (conditions, renonciation, Express, rappels)
   gardent leur forme : elles ne sont pas des options. */
.parcours label.option { position: relative; display: inline-flex; align-items: center; margin: 0.3rem 0.4rem 0.3rem 0; padding: 0.55rem 1rem; border: 1px solid var(--navy); border-radius: 999px; background: var(--card); cursor: pointer; }
.parcours label.option input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.parcours label.option.choisie { padding-left: 1.7rem; border-color: var(--navy); background: var(--navy); color: var(--paper); font-weight: 600; box-shadow: 0 0 0 3px var(--amber); }
.parcours label.option.choisie::before { content: ""; position: absolute; top: 50%; left: 0.7rem; width: 0.32rem; height: 0.62rem; margin-top: -0.4rem; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); }
.parcours label.option:has(:focus-visible) { outline: 3px solid var(--ink); outline-offset: 3px; }
@supports not selector(:has(*)) { .parcours label.option:focus-within { outline: 3px solid var(--ink); outline-offset: 3px; } }
/* Ronde 26l, correction 1 (m5) : une personne seule, le champ du prénom sans cadre, comme avant la ronde ; à deux, le groupe nommé. */
.parcours fieldset.prenoms-seul { border: 0; padding: 0; margin: 1.1rem 0; background: none; }
/* Ronde 26l (C1) : la majuscule proposée sous un champ de prénom, avec ses deux réponses. */
.parcours .proposition { max-width: var(--measure); margin: 0.3rem 0 0.8rem; color: var(--ink); }
.parcours .proposition button { margin-left: 0.4rem; }
.parcours input[type="text"], .parcours input:not([type]), .parcours input[type="email"], .parcours input[type="date"], .parcours select {
  display: block; width: 100%; max-width: 26rem; margin-top: 0.4rem; padding: 0.7rem 0.8rem; font: inherit; font-weight: 400;
  border: 1px solid var(--muted); border-radius: 10px; background: var(--card); color: var(--ink); }
.parcours [aria-invalid="true"] { border-color: var(--danger); }
.parcours fieldset { border: 1px solid var(--beige); border-radius: var(--radius); padding: 0.75rem 1.1rem 1rem; margin: 1.25rem 0; max-width: var(--measure); background: var(--card); }
.parcours legend { font-weight: 600; color: var(--navy); padding: 0 0.35rem; }
.parcours fieldset .hint { margin: 0.25rem 0 0.5rem; }
/* Un seul groupe d'actions par écran : « Revenir » discret à gauche, l'action principale à droite ; sur téléphone, l'action principale
   passe au-dessus, sur toute la largeur, à portée de pouce. */
.form-actions { display: flex; flex-wrap: wrap-reverse; align-items: center; justify-content: space-between; gap: 1rem; margin: 2rem 0 0; padding-top: 1.25rem; border-top: 1px solid var(--beige); }
.form-actions .cta { margin-left: auto; }
.form-actions .back { font: inherit; font-weight: 600; padding: 0.6rem 0.2rem; border: 0; background: none; color: var(--navy); text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.form-actions .back:hover { color: var(--navyHover); text-decoration-thickness: 2px; }
@media (max-width: 520px) { .parcours .steps { font-size: 0.82rem; line-height: 1.3; } .site-header nav { font-size: 0.95rem; } }
@media (max-width: 520px) { .form-actions .cta { width: 100%; text-align: center; margin-left: 0; } }
.parcours button:not(.cta):not(.back):not(.edit):not(.personnage-pastille):not(.personnage-mini):not(.lien-sec) { font: inherit; padding: 0.8rem 1.4rem; border: 1px solid var(--navy); border-radius: 999px; background: var(--card); color: var(--navy); cursor: pointer; }
/* La formule, un vrai choix : la carte entière est l'étiquette de sa case radio ; la carte cochée prend le fond et la bordure de la marque. */
.offers-choice { grid-template-columns: 1fr; gap: 0.75rem; }
.parcours label.offer { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "radio head price" "radio text text"; gap: 0.35rem 1rem; align-items: center; margin: 0; padding: 1.1rem 1.25rem; font-weight: 400; color: var(--ink); cursor: pointer; max-width: none; transition: border-color 160ms var(--ease-out), background-color 160ms var(--ease-out); }
.parcours label.offer:hover { border-color: var(--navy); }
/* Deux états qui ne se ressemblent pas (retour du 23/09 : « tu recommandes 39 € mais tu pointes sur 29 € »).
   La recommandation : le badge et un filet d'ambre, sur fond blanc. Le choix : une coche marine pleine, un contour marine épais, le fond beige,
   et « Votre choix : … » sous les cartes. La case radio native reste là pour le clavier et les lecteurs d'écran ; la coche la dessine. */
.parcours label.offer.offer-featured { background: var(--card); border: 2px solid var(--amber); box-shadow: none; }
/* Le badge de la carte recommandée prend l'ambre de son filet : le marine reste au choix (coche, contour), pour que rien ne les confonde. */
.parcours label.offer-featured .badge { background: var(--amber); color: var(--ink); }
.offer-radio { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.offer-check { grid-area: radio; display: grid; place-items: center; width: 1.6rem; height: 1.6rem; border: 2px solid var(--muted); border-radius: 50%; background: var(--card); color: transparent; }
.offer-check svg { width: 1rem; height: 1rem; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.parcours label.offer:has(:checked) .offer-check, .parcours label.offer.selected .offer-check { background: var(--navy); border-color: var(--navy); color: var(--paper); }
.choice-summary { margin: 1rem 0 0; font-weight: 600; color: var(--navy); }
.offer-choice .offer-head, .parcours label.offer .offer-head { grid-area: head; }
.parcours label.offer .price { grid-area: price; font-size: 1.7rem; justify-self: end; }
/* La phrase, les puces, la note d'indisponibilité et la note express forment la description de la case (`desc-<formule>`) : un seul bloc
   dans la zone du texte, empilé avec le même écart que les rangées de la carte. */
.parcours label.offer .offer-desc { grid-area: text; display: grid; gap: 0.35rem 0; justify-items: start; min-width: 0; }
/* `.selected` (posée par le script) a la spécificité de `.offer-featured` et vient après elle : sans `:has`, la carte recommandée ET cochée
   prend bien l'état du choix. */
.parcours label.offer:has(:checked), .parcours label.offer.selected { background: var(--beige); border: 3px solid var(--navy); box-shadow: var(--shadow); }
/* Ronde 26l (C6) : la carte choisie prend aussi le liseré ambre du choix, comme les options. */
.parcours label.offer.selected { box-shadow: 0 0 0 3px var(--amber), var(--shadow); }
.parcours label.offer:has(:disabled) { cursor: not-allowed; opacity: 0.7; }
.parcours label.offer:has(:focus-visible) { outline: 3px solid var(--ink); outline-offset: 2px; }
/* Sans `:has`, le focus de la radio masquée se voit quand même : `:focus-within`, qui s'allume aussi au clic, faute de mieux. */
@supports not selector(:has(*)) { .parcours label.offer:focus-within { outline: 3px solid var(--ink); outline-offset: 2px; } }
@media (max-width: 520px) { .parcours label.offer { grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "radio head" "radio price" "radio text"; } .parcours label.offer .price { justify-self: start; } }
/* L'option Express (tour 7 du 23/09) : discrète sous la date tant que la date est tenable ; bordée d'ambre quand elle rend tenable une date
   trop juste. Sur les cartes de l'écran 3, sa note dit ce qu'elle change ; le film de mariage, qu'elle exclut, s'éteint. */
.express-option { max-width: var(--measure); margin: 0.5rem 0 1rem; padding: 0.5rem 0.9rem; border: 1px solid var(--beige); border-radius: var(--radius); background: var(--card); transition: border-color 160ms var(--ease-out); }
.express-option.express-highlight { border: 2px solid var(--amber); }
.express-option .choice { margin: 0; }
/* L'écran 4 (tâche 18) : la vérification de l'adresse, en encadré comme l'option Express, au-dessus du constructeur du personnage ; le
   widget Turnstile garde sa place sous elle, sans faire sauter la page quand il apparaît. */
.verification { max-width: var(--measure); margin: 1rem 0; padding: 0.75rem 1rem; border: 1px solid var(--beige); border-radius: var(--radius); background: var(--card); }
.verification h2 { margin-top: 0; font-size: 1.15rem; }
.verification input[name="verifyCode"] { max-width: 9rem; letter-spacing: 0.2em; font-variant-numeric: tabular-nums; }
.turnstile { min-height: 65px; margin: 0.5rem 0 1rem; }
.parcours label.offer.express-off .offer-includes, .parcours label.offer.express-off .offer-points, .parcours label.offer.express-off .price { opacity: 0.6; }
.parcours .hint, .hint { color: var(--muted); font-size: 0.95rem; }
.parcours [data-error] { color: var(--danger); font-weight: 600; }
/* Le récapitulatif de l'écran 5 : ce qu'on paie, quand ça arrive, ce que ça comprend. Un seul bloc, calme, avant les deux cases. */
.recap { background: var(--beige); border-radius: var(--radius-lg); padding: 1.5rem 1.5rem 1.25rem; margin: 1.5rem 0; }
.recap .price { font-size: clamp(2.2rem, 6vw, 3rem); margin: 0.5rem 0 0.75rem; }
.recap .hint { color: var(--ink); margin: 0.35rem 0; }
/* Un bloc par étape, chacun avec son « Modifier » (retour du 23/09) : on corrige là où c'est écrit, sans chercher « Revenir » en bas. */
.recap-block { padding: 0 0 0.9rem; margin: 0 0 0.9rem; border-bottom: 1px solid color-mix(in srgb, var(--navy) 18%, transparent); }
.recap-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.25rem 1rem; margin-bottom: 0.35rem; }
.recap-title { margin: 0; font-family: "Source Sans 3", system-ui, sans-serif; font-size: 0.95rem; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.edit { display: inline-flex; align-items: center; gap: 0.35rem; font: inherit; font-weight: 600; padding: 0.35rem 0.2rem; border: 0; background: none; color: var(--navy); text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.edit:hover { text-decoration-thickness: 2px; }
.edit-icon { width: 1rem; height: 1rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; flex: none; }
.summary { display: grid; grid-template-columns: auto 1fr; gap: 0.35rem 1.25rem; margin: 0; max-width: var(--measure); }
.summary dt { color: var(--muted); }
.summary dd { margin: 0; font-weight: 600; }
[data-project] { display: grid; grid-template-columns: auto 1fr; gap: 0.35rem 1.25rem; max-width: var(--measure); }
[data-project] dd { margin: 0; font-weight: 600; }
[data-upgrade-list] { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.25rem 0 0.5rem; }
/* La page du projet : le renvoi du lien est un recours, séparé de l'action principale par le même filet que les actions du parcours. */
[data-resend] { margin: 2rem 0 0; padding-top: 1.25rem; border-top: 1px solid var(--beige); }
/* Le maillage interne et la page contact. */
.related { margin-top: 3rem; }
.related ul, .contact-block ul, .markets ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
.related li, .markets li { max-width: 28rem; }
.markets ul { flex-direction: column; gap: 0.9rem; }
.markets a { font-size: 1.15rem; font-weight: 600; color: var(--navy); }
.markets .badge { margin-left: 0.6rem; }

/* Le bloc « Et maintenant ? » de la page projet et de la page merci (tour 11h) : un encadré calme, dans la mesure du texte. */
.maintenant { margin: 0 0 1.5rem; padding: 1.1rem 1.1rem 1rem; border: 1px solid var(--beige); border-radius: var(--radius); background: var(--card); max-width: var(--measure); }
.maintenant h2 { font-size: 1.2rem; font-weight: 600; margin: 0 0 0.75rem; }
.maintenant ol { margin: 0; padding-left: 1.25rem; }
.maintenant li + li { margin-top: 0.35rem; }
/* La ligne d'étapes de la page projet (tour 11i) : la bande compacte « Et après le paiement ? », sans ses tiroirs — titre et phrase à
   découvert. L'étape en cours (`aria-current="step"`) prend le marine et un filet, comme le fil d'Ariane de la commande ; les autres restent
   en retrait. Sous 560 px, les quatre étapes passent l'une sous l'autre : une phrase par ligne reste lisible à 390 px. */
.etapes-projet { margin: 0 0 1.5rem; max-width: var(--measure); }
.etapes-projet .apres-etape { border-top: 3px solid var(--beige); padding-top: 0.5rem; color: var(--muted); }
.etapes-projet .apres-etape h3 { margin: 0 0 0.3rem; font-size: 1rem; color: inherit; }
.etapes-projet .apres-etape p { font-size: 0.9rem; }
.etapes-projet .apres-etape[aria-current="step"] { border-top-color: var(--navy); color: var(--ink); }
.etapes-projet .apres-etape[aria-current="step"] h3 { color: var(--navy); }
@media (max-width: 559px) { .apres-compact.etapes-projet .apres-etapes { grid-template-columns: 1fr; } }

/* L'espace de l'organisateur (lot de la collecte, tâche 7s) : le tableau de bord et ses écrans gardent la colonne du parcours (`.parcours`,
   46rem), ses champs et ses boutons. Rien de neuf dans la palette : le marine pour ce qui se clique, l'ambre pour la place dans la chanson,
   le rouge d'alerte pour les refus. Une étape sans écran (la fabrication, le cadeau) reste un titre en retrait : ni soulignée ni pointeur. */
.etapes-projet .apres-etape h3 a { display: inline-flex; align-items: center; min-height: 44px; color: var(--navy); text-decoration: underline; text-underline-offset: 4px; }
.etapes-projet .apres-etape h3 a:hover { text-decoration-thickness: 2px; }
.etapes-projet .apres-etape h3 a:not([href]) { color: inherit; text-decoration: none; cursor: default; }
.etapes-projet .apres-etape h3:not(:has(a)) { min-height: 44px; display: flex; align-items: center; }
/* Les compteurs, sous les étapes : une ligne par nombre, le libellé à gauche et sa valeur à droite ; la valeur passe dessous quand la ligne
   est trop étroite (les chapitres du mariage, l'allemand). Chiffres alignés. */
.compteurs { display: grid; gap: 0.45rem; margin: 1rem 0 0; padding-top: 0.9rem; border-top: 1px solid var(--beige); max-width: none; }
.compteurs > div { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.1rem 1rem; }
.compteurs dt { color: var(--muted); font-size: 0.95rem; }
.compteurs dd { margin: 0; font-weight: 600; color: var(--navy); font-variant-numeric: lining-nums tabular-nums; }
/* Les écrans du projet : de vrais choix, une rangée chacun, toute la rangée cliquable, avec le chevron qui dit « on y va ». Une colonne sur
   téléphone, deux dès 560 px. */
.ecrans-projet { margin: 0 0 1.5rem; max-width: var(--measure); }
.ecrans-projet h2 { font-size: 1.2rem; font-weight: 600; margin: 0 0 0.75rem; }
.ecrans-projet ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.ecrans-projet li { max-width: none; }
.ecrans-projet a { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 3.25rem; height: 100%; padding: 0.75rem 1.1rem;
  border: 1px solid var(--beige); border-radius: var(--radius); background: var(--card); color: var(--navy); font-weight: 600; line-height: 1.3; text-decoration: none;
  transition: border-color 160ms var(--ease-out), background-color 160ms var(--ease-out); }
.ecrans-projet a::after { content: ""; flex: none; width: 0.5rem; height: 0.5rem; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); }
.ecrans-projet a:hover { border-color: var(--navy); background: var(--paper); }
@media (min-width: 560px) { .ecrans-projet ul { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* « Besoin d'aide ? » : un recours, en bas de chaque écran, séparé par le filet des actions du parcours. */
.besoin-aide { margin: 2.5rem 0 0; padding-top: 1.25rem; border-top: 1px solid var(--beige); max-width: var(--measure); }
.besoin-aide h2 { font-size: 1.2rem; font-weight: 600; margin: 0 0 0.4rem; }
.besoin-aide p { margin: 0; }
.besoin-aide p.besoin-aide-guide { margin-top: 0.5rem; }
.collecte [data-screen-body] { margin-top: 0.5rem; }
.collecte > p:has(> a:only-child) { margin: 2rem 0 0; }

/* « Mes souvenirs » : trois bandes l'une sous l'autre — la démo, les souvenirs, le brief —, séparées par le filet d'ambre des récits. */
.souvenirs-demo, .souvenirs-elements, .souvenirs-brief { margin: 2.25rem 0 0; padding-top: 1.75rem; border-top: 1px solid var(--amber); }
.souvenirs > section:first-of-type { margin-top: 0.5rem; }
.souvenirs h2 { font-size: clamp(1.4rem, 3vw, 1.85rem); margin: 0 0 0.6rem; }
.souvenirs-demo .demo { margin: 1.25rem 0 0; }
.souvenirs-elements [data-elements-count] { font-weight: 600; color: var(--navy); font-variant-numeric: lining-nums tabular-nums; }
/* La place d'un bloc dans la chanson : une étiquette beige, à côté du libellé, jamais à sa place. En ligne, et non en bloc : une place
   longue (« Couplet : un trait de caractère et la scène qui le prouve ») passe à la ligne avec son fond, sans élargir la page à 360 px. */
.collecte .place { display: inline; padding: 0.1rem 0.55rem; border-radius: 999px; background: var(--beige); color: var(--ink); font-size: 0.85rem; font-weight: 600; line-height: 1.9;
  -webkit-box-decoration-break: clone; box-decoration-break: clone; }
/* Un souvenir enregistré : une fiche, ses deux actions dessous. */
.souvenirs-liste { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: 0.75rem; max-width: var(--measure); }
.souvenir { max-width: none; padding: 1rem 1.1rem; border: 1px solid var(--beige); border-radius: var(--radius); background: var(--card); }
.souvenir p { margin: 0.3rem 0 0; }
.souvenir p:empty { display: none; }
.souvenir p:first-child { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 0.5rem; color: var(--navy); }
.souvenir p:last-child { display: flex; flex-wrap: wrap; gap: 0.5rem 0.75rem; margin-top: 0.85rem; }
/* Les formulaires : le libellé, sa place, puis le champ ; le refus juste dessous, en rouge d'alerte, et le champ refusé bordé de ce rouge. */
.souvenir-form { margin: 2rem 0 0; padding-top: 1.5rem; border-top: 1px solid var(--beige); max-width: var(--measure); }
.souvenir-form h3 { margin: 0 0 0.5rem; }
.brief-form .champ:first-child { margin-top: 0.5rem; }
.parcours .champ { margin: 1.25rem 0 0; max-width: var(--measure); }
.parcours .champ label { display: inline; margin: 0 0.5rem 0 0; }
.parcours textarea { display: block; width: 100%; margin-top: 0.4rem; padding: 0.7rem 0.8rem; font: inherit; font-weight: 400; line-height: 1.5; min-height: 5.25rem; resize: vertical;
  border: 1px solid var(--muted); border-radius: 10px; background: var(--card); color: var(--ink); }
.parcours .champ input[type="text"] { max-width: none; }
/* Une case par rangée de 44 px au moins ; la case reste à gauche, le libellé et sa place s'alignent après elle, même sur deux lignes. */
.parcours label.choix { position: relative; display: block; min-height: 44px; margin: 0; padding: 0.55rem 0 0.55rem 1.9rem; font-weight: 400; line-height: 1.5; color: var(--ink); cursor: pointer; }
.parcours label.choix input { position: absolute; left: 0; top: 0.75rem; width: 1.15rem; height: 1.15rem; margin: 0; }
.parcours label.choix .place { margin-left: 0.2rem; }
.erreur-champ { margin: 0.35rem 0 0; max-width: var(--measure); color: var(--danger); font-size: 0.95rem; font-weight: 600; }
.parcours fieldset + .erreur-champ { margin-top: -0.75rem; margin-bottom: 1rem; }
.erreur-champ:empty, .parcours .erreur:empty { display: none; }
.champ:has(+ .erreur-champ:not([hidden]):not(:empty)) :is(textarea, input) { border-color: var(--danger); }
.parcours fieldset:has(+ .erreur-champ:not([hidden]):not(:empty)) { border-color: var(--danger); }
.parcours .erreur { margin: 1.25rem 0 0; padding: 0.75rem 1rem; border: 1px solid var(--danger); border-radius: var(--radius); background: var(--card); color: var(--danger); font-weight: 600; }
/* Le message de résultat du haut de l'écran (ronde 22p, D1) : juste sous le titre, il se lit sans défiler une fois la page remontée. Un
   refus y prend le cadre des erreurs (`.parcours .erreur`, ci-dessus). */
.resultat { margin: 0.75rem 0 0; max-width: var(--measure); color: var(--success); font-weight: 600; }
/* La confirmation d'un geste réussi (correction B du 20/11 ; tous les écrans de l'organisateur depuis la passe d'avant ouverture, tâche 1) :
   une coche, un fond vert pâle tiré de --success (le même que `.indic.pret`), le texte en --success : 5,2 contre 1 sur ce fond, au-dessus du
   seuil AA. Le lien qui suit le message prend la même couleur, souligné. La confirmation d'une étape (haut.js, `confirmer`) : la phrase de ce
   qui est fait, puis l'étape suivante avec son bouton (le même que celui du tableau de bord, `.cta`, avec « Étape suivante » au-dessus), puis
   « Retour à mon tableau de bord », chacun sur sa ligne. Bornée aux pages du client : l'écran de confirmation de l'espace de l'équipe
   (`[data-op-confirmation]`, plus bas) garde sa propre règle. */
.confirmation:not([data-op-confirmation]) { position: relative; padding: 0.75rem 1rem 0.75rem 2.6rem; border-radius: var(--radius); background: color-mix(in srgb, var(--success) 13%, var(--card)); color: var(--success); font-weight: 600; }
.confirmation:not([data-op-confirmation])::before { content: "✓"; position: absolute; left: 1rem; top: 0.75rem; font-weight: 700; }
.confirmation:not([data-op-confirmation]) a:not(.cta) { color: var(--success); text-decoration: underline; text-underline-offset: 3px; }
.confirmation .confirmation-fait, .confirmation .confirmation-suite, .confirmation .confirmation-retour { display: block; }
.confirmation .confirmation-suite { margin-top: 0.75rem; }
.confirmation .confirmation-suite .surbouton { color: var(--success); }
.confirmation .confirmation-retour { margin-top: 0.6rem; font-weight: 400; }
@media (max-width: 520px) { .confirmation .confirmation-suite .cta { display: block; text-align: center; } }
.souvenir-form [data-form-status], .brief-form [data-form-status] { margin: 0.75rem 0 0; color: var(--success); font-weight: 600; }
.souvenir-form [data-form-status]:empty, .brief-form [data-form-status]:empty { margin: 0; }
.souvenir-form p:has(> .cta), .brief-form p:has(> .cta) { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1rem; margin: 1.5rem 0 0; }
.souvenirs button:not(.cta):not(.demo-play) { min-height: 44px; }
.souvenirs button:not(.cta):not(.demo-play):not(:disabled):hover { background: var(--beige); }
.parcours button:not(.cta):disabled { border-color: var(--muted); background: var(--paper); color: var(--muted); cursor: not-allowed; }
@media (max-width: 520px) { .souvenir-form p:has(> .cta) .cta, .brief-form p:has(> .cta) .cta { width: 100%; text-align: center; } }

/* « Partager » (tâche 9) : quatre bandes séparées par le filet d'ambre des souvenirs — le lien, l'invitation, la relance, le prénom — puis
   « Changer de lien », en recours, sous le filet beige des actions. Téléphone d'abord : le champ du lien et les textes prennent toute la
   largeur (le lien défile dans son champ, jamais la page), chaque commande a 44 px au moins, et sous 520 px l'action principale passe sur
   toute la largeur. Rien de neuf dans la palette ; `hidden` décide seul (règle globale en tête de feuille). */
.partager-lien, .partager-invitation, .partager-photos, .partager-relance, .partager-prenom { margin: 2.25rem 0 0; padding-top: 1.75rem; border-top: 1px solid var(--amber); }
/* Les idées de photo (tâche 20) : une liste à lire, pas un formulaire ; le film de mariage la range sous le nom de chaque chanson. */
.partager-photos p, .partager-photos ul { max-width: var(--measure); }
.partager-photos ul { margin: 0.6rem 0 0; padding-left: 1.25rem; }
.partager-photos li + li { margin-top: 0.3rem; }
.partager-photos h3 { font-size: 1.1rem; font-weight: 600; margin: 1.25rem 0 0; }
.partager > section:first-of-type { margin-top: 0.5rem; }
.partager h2 { font-size: clamp(1.4rem, 3vw, 1.85rem); margin: 0 0 0.6rem; }
.partager-express { max-width: var(--measure); margin: 0.5rem 0 0; padding: 0.75rem 1rem; border-left: 3px solid var(--amber); background: var(--card); color: var(--ink); }
.partager input[type="text"] { display: block; width: 100%; max-width: none; min-width: 0; min-height: 44px; margin-top: 0.4rem; font-variant-numeric: tabular-nums; }
.partager input[readonly] { background: var(--paper); }
.partager textarea { width: 100%; min-height: 12rem; }
.partager textarea[readonly] { background: var(--paper); resize: vertical; }
.partager-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1rem; margin: 1rem 0 0; max-width: var(--measure); }
.partager-actions .cta { min-height: 44px; }
.partager button:not(.cta) { min-height: 44px; }
.partager button:not(.cta):not(:disabled):hover { background: var(--beige); }
/* Le courriel : un lien qui se tient comme un bouton secondaire (bordure marine, fond blanc), pour la même cible de 44 px. */
.partager-courriel { display: inline-flex; align-items: center; min-height: 44px; padding: 0.6rem 1.2rem; border: 1px solid var(--navy); border-radius: 999px; background: var(--card); color: var(--navy); font-weight: 600; text-decoration: none; }
.partager-courriel:hover { background: var(--beige); }
.partager-statut { min-height: 1.6em; margin: 0.75rem 0 0; color: var(--success); font-weight: 600; }
.partager-prenom [data-form-status], .partager-changer [data-rotate-status] { margin: 0.75rem 0 0; color: var(--success); font-weight: 600; }
.partager-prenom [data-form-status]:empty, .partager-changer [data-rotate-status]:empty { margin: 0; }
.prenom-form { max-width: var(--measure); }
.prenom-form p:has(> button) { margin: 1.25rem 0 0; }
.partager-changer { margin: 2.5rem 0 0; padding-top: 1.25rem; border-top: 1px solid var(--beige); max-width: var(--measure); }
.partager-changer h2 { font-size: 1.2rem; font-weight: 600; }
.partager-confirmer { margin: 1rem 0 0; padding: 0.9rem 1rem; border: 2px solid var(--amber); border-radius: var(--radius); background: var(--card); }
.partager-confirmer p { margin: 0; }
.partager-confirmer .partager-actions { margin-top: 0.75rem; }
/* Le bouton « Ouvrir mon projet » d'un écran, avant la session : son paragraphe ne laisse pas de vide tant qu'il est caché. */
.collecte p:has(> [data-collecte-open][hidden]) { display: none; }
@media (max-width: 520px) { .partager-actions .cta, .partager-courriel { width: 100%; justify-content: center; text-align: center; } }

/* La page de l'invité (tâche 10) : la même langue que les écrans de l'organisateur. Le sélecteur de langue en tête, discret ; puis l'en-tête
   (qui prépare, pour qui, qui lira, jusqu'à quand) ; puis le formulaire, ses trois niveaux en cartes blanches, et les bandes qui suivent
   l'envoi (le lien de modification, le retrait, l'effacement), séparées par le filet d'ambre des récits. Téléphone d'abord : chaque commande a
   44 px au moins, le lien de modification prend toute la largeur (il défile dans son champ, jamais la page), et sous 520 px l'action
   principale passe sur toute la largeur. Rien de neuf dans la palette ; `hidden` décide seul (règle globale en tête de feuille). */
.participer button { min-height: 44px; }
.participer button:not(.cta):not(:disabled):hover { background: var(--beige); }
.participer select { min-height: 44px; }
.participer h2 { font-size: clamp(1.4rem, 3vw, 1.85rem); margin: 0 0 0.6rem; }
.participer h3 { margin: 1.25rem 0 0.4rem; }
.participer-langues ul { list-style: none; display: flex; flex-wrap: wrap; gap: 0.25rem 0.5rem; margin: 1rem 0 0; padding: 0; }
.participer-langues li { max-width: none; }
.participer-langues a { display: inline-flex; align-items: center; min-height: 44px; padding: 0.4rem 0.85rem; border-radius: 999px; color: var(--navy); font-size: 0.95rem; }
.participer-langues a[aria-current="page"] { background: var(--beige); font-weight: 600; text-decoration: none; }
.participer-intro { margin: 1.5rem 0 0; }
.participer-compte { font-weight: 600; color: var(--navy); font-variant-numeric: lining-nums tabular-nums; }
.participer-etat { max-width: var(--measure); margin: 1.25rem 0 0; padding: 0.75rem 1rem; border-left: 3px solid var(--amber); background: var(--card); color: var(--ink); font-weight: 600; }
.participer-form, .participer-deja, .participer-merci, .participer-retrait, .participer-tard { max-width: var(--measure); margin: 2.25rem 0 0; padding-top: 1.75rem; border-top: 1px solid var(--amber); }
.participer-niveau { background: var(--card); }
.participer-niveau fieldset { margin: 0.75rem 0; background: var(--paper); }
.participer-niveau .champ:first-of-type { margin-top: 0.5rem; }
.participer-merci input { display: block; width: 100%; max-width: none; min-width: 0; min-height: 44px; margin-top: 0.4rem; background: var(--paper); font-variant-numeric: tabular-nums; }
.participer-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1rem; max-width: var(--measure); margin: 1.25rem 0 0; }
.participer-actions .cta { min-height: 44px; }
.participer-confirmer { margin: 1rem 0 0; padding: 0.9rem 1rem; border: 2px solid var(--amber); border-radius: var(--radius); background: var(--card); }
.participer-confirmer p { margin: 0; }
.participer-confirmer .participer-actions { margin-top: 0.75rem; }
.participer [data-form-status], .participer [data-own-status], .participer [data-copy-status], .participer [data-late-status] { margin: 0.75rem 0 0; color: var(--success); font-weight: 600; }
.participer [data-form-status]:empty, .participer [data-own-status]:empty, .participer [data-copy-status]:empty, .participer [data-late-status]:empty { margin: 0; }
.participer-offrir { display: inline-flex; align-items: center; min-height: 44px; margin-top: 2rem; font-weight: 600; }
/* Ronde 26p (P2) : le lien du guide des participants, une cible de 44 px comme les autres commandes de la page. */
/* Ronde 26q (Q1, maquette 7) : le salut, ce qui est déjà donné, la seule action attendue dans un cadre marine, « Rien d'autre… ». */
.participer-bonjour { margin: 0 0 0.35rem; font-weight: 600; color: var(--accent); letter-spacing: 0.02em; }
.participer-donne { max-width: var(--measure); margin: 1.75rem 0 0; padding: 1rem 1.25rem; border-radius: var(--radius); background: var(--card); }
.participer-donne ul { list-style: none; margin: 0; padding: 0; }
.participer-donne li { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 0.6rem; margin: 0.45rem 0 0; }
.participer-rien { max-width: var(--measure); margin: 1.25rem 0 0; font-weight: 600; color: var(--navy); }
.participer .attendu { padding: 1.25rem; border: 2px solid var(--navy); border-radius: var(--radius); }
.participer-attendu-titre { margin: 0 0 0.5rem; font-size: 0.85rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--navy); }
.participer-guide { margin: 1rem 0 0; }
.participer-guide a { display: inline-flex; align-items: center; min-height: 44px; }
@media (max-width: 520px) { .participer-actions .cta { width: 100%; justify-content: center; text-align: center; } }

/* « Les mots reçus » (tâche 11) : la langue des souvenirs. Chaque mot est une fiche blanche ; le masqué reste dans la liste, sur le fond du
   papier, son texte barré et sa trace (la date, le motif) en dessous. Le souvenir d'un mot prend le filet d'ambre des récits ; l'état de
   la chanson et le chapitre du mariage se lisent sous un filet beige. Téléphone d'abord : chaque commande a 44 px au moins, un long mot
   sans espace se coupe dans sa fiche (jamais la page ne défile de côté), et sous 520 px l'action principale passe sur toute la largeur.
   Rien de neuf dans la palette ; `hidden` décide seul (règle globale en tête de feuille). */
.mot { max-width: none; min-width: 0; padding: 1rem 1.1rem; border: 1px solid var(--beige); border-radius: var(--radius); background: var(--card); }
.mot p { margin: 0.3rem 0 0; }
.mot .mot-tete { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.25rem 0.75rem; margin: 0; color: var(--navy); }
.mot-auteur { padding: 0.1rem 0.6rem; border-radius: 999px; background: var(--beige); color: var(--ink); font-size: 0.85rem; font-weight: 600; }
.mot-corps { overflow-wrap: anywhere; }
.mot-souvenir { margin: 0.6rem 0 0; padding: 0.4rem 0 0.4rem 0.9rem; border-left: 3px solid var(--amber); }
.mot-masque { border-style: dashed; background: var(--paper); }
.mot-masque .mot-corps { text-decoration: line-through; color: var(--muted); }
.mot .mot-trace { color: var(--danger); font-size: 0.95rem; font-weight: 600; }
.mot-chanson { margin: 0.75rem 0 0; padding-top: 0.6rem; border-top: 1px solid var(--beige); }
.mot-chanson [data-slot="selected"] { color: var(--navy); font-weight: 600; }
.mot .mot-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.75rem; margin: 0.85rem 0 0; }
.mot-masquer { margin: 0.75rem 0 0; }
.mot-masquer fieldset { margin: 0; }
.mots button { min-height: 44px; }
.mots button:not(.cta):not(:disabled):hover { background: var(--beige); }
.mots select { min-height: 44px; }
/* Ronde 22q, B.3 : le message d'une action sur un mot se lit sur le mot lui-même, qui reste à sa place. */
.mot .mot-statut { margin: 0.5rem 0 0; color: var(--success); font-weight: 600; }
.mot .mot-statut:empty { display: none; }
.mots-liste { list-style: none; display: grid; gap: 0.75rem; max-width: var(--measure); margin: 1rem 0 0; padding: 0; }
.mots-ecrire { max-width: var(--measure); margin: 2.25rem 0 0; padding-top: 1.75rem; border-top: 1px solid var(--amber); }
.mots-ecrire h2 { font-size: clamp(1.4rem, 3vw, 1.85rem); margin: 0 0 0.6rem; }
.mot-form [data-form-status] { margin: 0.75rem 0 0; color: var(--success); font-weight: 600; }
.mot-form [data-form-status]:empty { margin: 0; }
.mot-form p:has(> .cta) { margin: 1.5rem 0 0; }
@media (max-width: 520px) { .mot-form p:has(> .cta) .cta { width: 100%; text-align: center; } }

/* « Clôturer » (tâche 12) : les bandes des autres écrans. La sélection en fiches blanches, comme les souvenirs ; l'état de la collecte sous le
   filet d'ambre de la note Express ; chaque geste dans sa bande, sous le filet d'ambre ; la confirmation de la réouverture dans le cadre de
   « Changer de lien ». Téléphone d'abord : chaque commande a 44 px au moins, le jour et l'heure prennent la largeur de leur champ, et sous
   520 px l'action principale passe sur toute la largeur. Rien de neuf dans la palette ; `hidden` décide seul (règle globale en tête de feuille). */
.cloturer h2 { font-size: clamp(1.4rem, 3vw, 1.85rem); margin: 0 0 0.6rem; }
.cloturer button { min-height: 44px; }
.cloturer button:not(.cta):not(:disabled):hover { background: var(--beige); }
.cloturer-etat { max-width: var(--measure); margin: 0.5rem 0 0; padding: 0.75rem 1rem; border-left: 3px solid var(--amber); background: var(--card); color: var(--ink); font-weight: 600; }
.cloturer-selection, .cloturer-manque, .cloturer-action { max-width: var(--measure); margin: 2.25rem 0 0; padding-top: 1.75rem; border-top: 1px solid var(--amber); }
.cloturer-compte { font-weight: 600; color: var(--navy); font-variant-numeric: lining-nums tabular-nums; }
.cloturer-liste { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: 0.75rem; }
.cloturer-element { max-width: none; min-width: 0; padding: 1rem 1.1rem; border: 1px solid var(--beige); border-radius: var(--radius); background: var(--card); overflow-wrap: anywhere; }
.cloturer-element p { margin: 0.3rem 0 0; }
.cloturer-element p:first-child { margin: 0; color: var(--navy); }
.cloturer-manque ul { margin: 0.5rem 0 0; }
.cloturer-programmer .champ:first-child { margin-top: 0.5rem; }
.cloturer input[type="time"] { display: block; width: 100%; max-width: 26rem; margin-top: 0.4rem; padding: 0.7rem 0.8rem; font: inherit; font-weight: 400;
  border: 1px solid var(--muted); border-radius: 10px; background: var(--card); color: var(--ink); }
.cloturer input[type="date"], .cloturer input[type="time"] { min-height: 44px; }
.cloturer-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1rem; margin: 1rem 0 0; }
.cloturer-confirmer { margin: 1rem 0 0; padding: 0.9rem 1rem; border: 2px solid var(--amber); border-radius: var(--radius); background: var(--card); }
.cloturer-confirmer p { margin: 0; }
.cloturer-confirmer .cloturer-actions { margin-top: 0.75rem; }
.cloturer-statut { min-height: 1.6em; margin: 1rem 0 0; color: var(--success); font-weight: 600; }
@media (max-width: 520px) { .cloturer-actions .cta { width: 100%; text-align: center; } }

/* « Les paroles » (tâche 14) : la promesse en tête, sous le filet d'ambre de la note Express ; chaque chanson dans une fiche blanche, comme
   les souvenirs, son texte en serif à la mesure du site, les retours à la ligne et les espaces gardés (pre-wrap : le texte même de l'empreinte) ; les
   prénoms surlignés d'ambre pâle, lisibles sans la couleur (gras). Les confirmations dans le cadre de « Changer de lien ». Téléphone
   d'abord : 44 px par commande, et sous 520 px l'action principale prend toute la largeur. `hidden` décide seul (règle en tête de feuille). */
.paroles h2 { font-size: clamp(1.4rem, 3vw, 1.85rem); margin: 0 0 0.6rem; }
.paroles h3 { font-size: 1.1rem; margin: 1rem 0 0.4rem; }
.paroles button { min-height: 44px; }
.paroles button:not(.cta):not(:disabled):hover { background: var(--beige); }
.paroles-accord { max-width: var(--measure); margin: 0.5rem 0 0; padding: 0.75rem 1rem; border-left: 3px solid var(--amber); background: var(--card); color: var(--navy); font-weight: 700; }
.paroles-statut { min-height: 1.6em; margin: 1rem 0 0; color: var(--success); font-weight: 600; }
.paroles-chapitres { list-style: none; display: grid; gap: 1rem; max-width: var(--measure); margin: 1rem 0 0; padding: 0; }
.paroles-chapitre { max-width: none; min-width: 0; padding: 1.1rem 1.2rem; border: 1px solid var(--beige); border-radius: var(--radius); background: var(--card); overflow-wrap: anywhere; }
.paroles-tete { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.25rem 0.75rem; margin: 0; color: var(--navy); }
.paroles-etat { padding: 0.1rem 0.6rem; border-radius: 999px; background: var(--beige); color: var(--success); font-size: 0.85rem; font-weight: 700; }
.paroles-texte { margin: 0.75rem 0 0; font-family: "Fraunces", Georgia, serif; font-size: 1.1rem; line-height: 1.7; white-space: pre-wrap; }
.paroles-nom { padding: 0 0.15em; border-radius: 4px; background: var(--beige); color: var(--ink); font-weight: 700; }
.paroles-sources { margin: 1rem 0 0; padding-top: 0.6rem; border-top: 1px solid var(--beige); }
.paroles-sources ul { margin: 0.25rem 0 0; }
.paroles-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1rem; margin: 1rem 0 0; }
.paroles-confirmer { margin: 1rem 0 0; padding: 0.9rem 1rem; border: 2px solid var(--amber); border-radius: var(--radius); background: var(--card); }
.paroles-confirmer p { margin: 0; }
.paroles-confirmer .paroles-actions { margin-top: 0.75rem; }
.paroles-retouche { margin: 1rem 0 0; }
.paroles-retouche label { display: block; font-weight: 600; }
.paroles-rouvrir { max-width: var(--measure); margin: 2.25rem 0 0; padding-top: 1.75rem; border-top: 1px solid var(--amber); }
@media (max-width: 520px) { .paroles-actions .cta { width: 100%; text-align: center; } }

/* « Annuler ma commande » (tâche 15) : le droit qui s'applique sous le filet d'ambre de la promesse des paroles, à la mesure du site ; la
   confirmation dans le cadre de « Changer de lien » ; l'accusé de réception dans une fiche blanche, comme une chanson, pour qu'il se lise
   et se garde d'un coup d'œil. Téléphone d'abord : 44 px par commande, et sous 520 px l'action principale prend toute la largeur. */
.annuler h2 { font-size: clamp(1.4rem, 3vw, 1.85rem); margin: 0 0 0.6rem; }
.annuler button { min-height: 44px; }
.annuler button:not(.cta):not(:disabled):hover { background: var(--beige); }
.annuler-droit { max-width: var(--measure); margin: 0.5rem 0 0; padding: 0.75rem 1rem; border-left: 3px solid var(--amber); background: var(--card); }
.annuler-droit p { margin: 0.4rem 0 0; }
.annuler-demande { max-width: var(--measure); margin: 2rem 0 0; }
.annuler-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1rem; margin: 1rem 0 0; }
.annuler-confirmer { margin: 1rem 0 0; padding: 0.9rem 1rem; border: 2px solid var(--amber); border-radius: var(--radius); background: var(--card); }
.annuler-confirmer p { margin: 0; }
.annuler-confirmer .annuler-actions { margin-top: 0.75rem; }
.annuler-accuse { max-width: var(--measure); margin: 2rem 0 0; padding: 1.1rem 1.2rem; border: 1px solid var(--beige); border-radius: var(--radius); background: var(--card); overflow-wrap: anywhere; }
.annuler-accuse p { margin: 0.4rem 0 0; }
.annuler-historique { max-width: var(--measure); margin: 2rem 0 0; color: var(--navy); }
.annuler-historique ul { margin: 0.25rem 0 0; }
@media (max-width: 520px) { .annuler-actions .cta { width: 100%; text-align: center; } }

/* « Le personnage » (tâche 16) : le portrait-robot sur son papier, à gauche dès 900 px et collé en haut pendant qu'on choisit ; les choix à
   droite, un groupe par bande. Les mêmes classes servent l'écran de l'organisateur et le bloc du vote de la page de l'invité. Le choix retenu
   est bordé de marine (aria-pressed), la voix de l'équipe en pastille. Téléphone d'abord : 44 px par commande, les vignettes passent à la ligne. */
.avatar-filtres { position: absolute; width: 0; height: 0; overflow: hidden; }
.personnage-filtres { position: absolute; width: 0; height: 0; overflow: hidden; }
.personnage { max-width: none; }
.personnage button, .participer-personnage button { min-height: 44px; }
.personnage h2, .participer-personnage h2 { font-size: clamp(1.4rem, 3vw, 1.85rem); margin: 0 0 0.6rem; }
.personnage-onglets [role="tablist"] { display: inline-flex; flex-wrap: wrap; gap: 0.35rem; padding: 0.3rem; border: 1px solid var(--beige); border-radius: 999px; background: var(--card); }
.personnage-onglets button { border: 0; border-radius: 999px; padding: 0 1.1rem; background: transparent; color: var(--navy); font-weight: 600; }
.personnage-onglets button[aria-selected="true"] { background: var(--navy); color: var(--paper); box-shadow: 0 0 0 3px var(--amber); }
/* Tâche 26, bloc D (D16, maquette 5) : le résumé côte à côte des deux personnes d'un couple (la carte de l'onglet ouvert, bordée de
   marine), puis le titre « Vous décrivez : … » et la phrase du dessin. */
.personnage-resume { display: grid; gap: 0.8rem; max-width: 46rem; margin: 0 0 0.8rem; }
@media (min-width: 640px) { .personnage-resume { grid-template-columns: 1fr 1fr; } }
.personnage-resume .fiche { margin: 0; }
.personnage-resume .fiche[aria-current="true"] { border: 2px solid var(--navy); }
.personnage-resume .note { margin: 0; }
.personnage-entete { margin: 1rem 0 0; max-width: 46rem; }
.personnage-entete h2 { margin: 0 0 0.3rem; font-weight: 600; }
.personnage-entete .note { margin: 0; }
/* L'avertissement avant la validation (D12) et les avis nominatifs (maquette 5.1). */
.personnage-avertissement p { margin: 0.4rem 0 0; }
.personnage-avertissement ul, .planche-avis-liste { margin: 0.4rem 0 0; padding-left: 1.1rem; }
.planche-avis-liste { color: var(--ink); }
.personnage-atelier { display: grid; gap: 1.5rem; margin: 1rem 0 0; }
@media (min-width: 900px) { .personnage-atelier { grid-template-columns: minmax(260px, 340px) minmax(0, 1fr); gap: 2.5rem; align-items: start; } .personnage-chevalet { position: sticky; top: 1rem; } }
.personnage-chevalet { max-width: none; }
.personnage-portrait { position: relative; max-width: 340px; margin: 0 auto; border-radius: var(--radius-lg); overflow: hidden; background: var(--beige); box-shadow: var(--shadow); }
.personnage-portrait svg { display: block; width: 100%; height: auto; }
.personnage-etiquette { position: absolute; left: 0.75rem; top: 0.75rem; padding: 0.2rem 0.7rem; border-radius: 999px; background: var(--navy); color: var(--paper); font-size: 0.8rem; font-weight: 600; }
.personnage-vues { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; margin: 0.9rem 0 0; }
.personnage-vues button[aria-pressed="true"] { border-color: var(--navy); background: var(--navy); color: var(--paper); }
.personnage-panneau { max-width: none; min-width: 0; }
.personnage-groupe { margin: 1.75rem 0 0; padding-top: 1.25rem; border-top: 1px solid var(--amber); max-width: none; }
.personnage-groupe:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.personnage-groupe > p { max-width: var(--measure); }
.personnage-trait { margin: 1rem 0 0; }
.personnage-trait h3, .personnage-trait h4 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.2rem 0.6rem; margin: 0 0 0.5rem; font-size: 1rem; font-weight: 600; }
.personnage-trait em { font-style: normal; font-weight: 400; color: var(--muted); }
.personnage-choix { display: flex; flex-wrap: wrap; gap: 0.5rem; max-width: none; }
.personnage-choix button { position: relative; border: 1px solid var(--beige); border-radius: var(--radius); background: var(--card); color: var(--ink); }
/* Tâche 26, bloc D (D14, D16) : l'option choisie se remplit de marine, avec une coche et un liseré ambre ; le contour de focus au clavier
   reste noir, à distance, pour ne jamais se confondre avec le choix. Une pastille de couleur garde sa couleur : la coche se pose dessus.
   Un personnage validé se lit : ses choix restent marqués, les autres s'effacent un peu, aucun ne répond plus. */
.personnage-choix button[aria-pressed="true"] { border-color: var(--navy); background: var(--navy); color: var(--paper); font-weight: 600; box-shadow: 0 0 0 3px var(--amber); }
.personnage-choix button[aria-pressed="true"]::before { content: ""; position: absolute; top: 0.4rem; left: 0.55rem; width: 0.32rem; height: 0.62rem; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); }
.personnage-choix .personnage-mot[aria-pressed="true"] { padding-left: 1.6rem; }
.personnage-pastille[aria-pressed="true"]::before { top: 50%; left: 50%; margin: -0.42rem 0 0 -0.18rem; filter: drop-shadow(0 0 1px var(--ink)); }
.personnage-choix button:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.personnage-choix button[aria-pressed="true"]:focus-visible { box-shadow: 0 0 0 3px var(--amber); }
.personnage-choix button:disabled { cursor: default; }
.personnage-choix button:disabled:not([aria-pressed="true"]) { opacity: 0.55; }
.personnage-choix .enregistre { align-self: center; }
.personnage-mot { padding: 0.45rem 1rem; border-radius: 999px; }
/* Tâche 19, tour de correction 2 : la règle générale des boutons du parcours épargne les vignettes et les pastilles (son rembourrage
   écrasait leur dessin et coupait leurs mots). La vignette s'élargit pour ses mots, sans largeur fixe ; ses mots ne se coupent jamais. */
.personnage-mini { min-width: 5rem; max-width: 8.5rem; padding: 0.3rem 0.3rem 0.4rem; font: inherit; font-size: 0.75rem; line-height: 1.2; cursor: pointer; }
.personnage-mini span { display: block; overflow-wrap: normal; word-break: normal; hyphens: manual; }
.personnage-mini-large { min-width: 7.25rem; }
.personnage-mini svg { display: block; width: 4.4rem; height: auto; margin: 0 auto 0.25rem; border-radius: 8px; }
.personnage-mini-large svg { width: 6.65rem; }
.personnage-pastille { width: 44px; height: 44px; padding: 0; border-radius: 50%; cursor: pointer; }
.personnage-pastille svg { display: block; width: 100%; height: 100%; }
.personnage-voix { position: absolute; top: -0.45rem; right: -0.45rem; min-width: 1.4rem; padding: 0 0.35rem; border-radius: 999px; background: var(--navy); color: var(--paper); font-size: 0.75rem; font-weight: 600; line-height: 1.4rem; text-align: center; font-variant-numeric: tabular-nums; }
.personnage-avis { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 0.9rem; margin: 0.5rem 0 0; color: var(--muted); font-size: 0.9rem; }
.personnage-garder { border: 0; padding: 0; background: none; color: var(--navy); text-decoration: underline; text-underline-offset: 3px; font-size: 0.9rem; }
.personnage-decor { gap: 0.6rem; }
.personnage-vignette { display: grid; justify-items: center; gap: 0.25rem; width: 8rem; padding: 0.7rem 0.5rem; font-size: 0.82rem; line-height: 1.25; text-align: center; color: var(--navy); }
.personnage-vignette svg { width: 3.25rem; height: 3.25rem; color: var(--muted); }
.personnage-vignette[aria-pressed="true"] svg { color: var(--paper); }
.personnage-compte { font-weight: 600; color: var(--navy); font-variant-numeric: lining-nums tabular-nums; }
.personnage-statut { margin: 1rem 0 0; color: var(--success); font-weight: 600; }
.personnage-statut:empty { margin: 0; }
.personnage .erreur ul { margin: 0.4rem 0 0; }
.participer-personnage { max-width: var(--measure); margin: 2.25rem 0 0; padding-top: 1.75rem; border-top: 1px solid var(--amber); }
.personnage-personnes { display: grid; gap: 2rem; }
.personnage-personne { max-width: none; }
.personnage-personne .personnage-portrait { max-width: 260px; margin: 0.5rem 0 0; }
.participer-personnage [data-ballot-status] { margin: 0.75rem 0 0; color: var(--success); font-weight: 600; }
.participer-personnage [data-ballot-status]:empty { margin: 0; }
@media (prefers-reduced-motion: no-preference) { .personnage-choix button { transition: border-color 160ms var(--ease-out), box-shadow 160ms var(--ease-out); } }
/* Correction 1 : les versions reçues, en galerie de vignettes légendées ; les objets proposés par l'équipe, en mots cliquables. */
.personnage-suggestions { margin: 1rem 0 0; }
.personnage-suggestions h3 { margin: 0 0 0.5rem; font-size: 1rem; }
.personnage-galerie { display: flex; flex-wrap: wrap; gap: 0.9rem; }
.personnage-version { width: 7.5rem; margin: 0; text-align: center; font-size: 0.8rem; color: var(--muted); }
.personnage-version svg { display: block; width: 100%; height: auto; margin-bottom: 0.3rem; border-radius: var(--radius); }
/* Tâche 17 : la planche dessinée. Les essais en liste (l'échec reste visible, en retrait), chaque planche sur son papier, au format 16:9
   du dessin ; le résumé des avis ; la question de l'invité devant la planche partagée. */
.planche-essais { display: grid; gap: 1rem; margin: 1rem 0 0; padding: 0; list-style: none; max-width: none; }
@media (min-width: 640px) { .planche-essais { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); } }
.planche-essai { display: grid; gap: 0.5rem; align-content: start; margin: 0; padding: 0.75rem; border: 1px solid var(--beige); border-radius: var(--radius-lg); background: var(--card); }
.planche-essai > p { margin: 0; }
.planche-ratee { background: transparent; border-style: dashed; }
.planche-image { margin: 0; max-width: none; }
.planche-cadre { display: block; }
.planche-image img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: contain; border-radius: var(--radius); background: var(--beige); }
.planche-image figcaption { margin: 0.4rem 0 0; font-size: 0.85rem; color: var(--muted); }
.planche-avis { display: grid; gap: 0.25rem; margin: 0.5rem 0 0; font-weight: 600; color: var(--navy); }
.planche-avis span { font-weight: 400; color: var(--muted); }
.planche-validee { margin: 0.5rem 0 0; color: var(--success); font-weight: 600; }
.planche-question .planche-image { max-width: 520px; margin: 0.75rem 0; }
.planche-points { margin: 1rem 0 0; }
.planche-points h3 { margin: 0 0 0.5rem; font-size: 1rem; }
.participer-personnage [data-reaction-status] { margin: 0.75rem 0 0; color: var(--success); font-weight: 600; }
.participer-personnage [data-reaction-status]:empty { margin: 0; }

/* ───────── Tâche 26, bloc B : le tableau de bord (maquette 26, section 2) ───────── */
/* Un texte pour les lecteurs d'écran seulement (l'état « Fait » d'une étape, que la couleur dit à l'œil). */
.hors-ecran { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.parcours .sous-titre { margin: 0 0 0.3rem; }
.ref-ligne { color: var(--muted); font-size: 0.95rem; margin: 0 0 1rem; }
/* Les notifications, sous le titre (D9) : le nombre de gestes attendus, calculé à l'ouverture. */
.notifs { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 0.4rem 1rem; margin: 0 0 1rem; padding: 0.7rem 1rem; border: 2px solid var(--amber); border-radius: var(--radius); background: var(--card); max-width: none; }
.notifs.vide { border-color: var(--beige); }
.notifs h2 { font-family: "Source Sans 3", system-ui, sans-serif; font-size: 1rem; font-weight: 700; color: var(--navy); margin: 0; white-space: nowrap; }
.notifs .compte { display: inline-grid; place-items: center; min-width: 1.6rem; height: 1.6rem; margin-left: 0.35rem; border-radius: 999px; background: var(--amber); color: var(--ink); font-size: 0.9rem; }
.notifs ul { list-style: none; margin: 0; padding: 0; flex: 1 1 20rem; }
.notifs li { margin: 0.1rem 0; max-width: none; }
.notifs li::before { content: "•"; color: var(--amberText); margin-right: 0.45rem; font-weight: 700; }
/* La ligne des étapes (D35, D41) : faite en vert, en cours en marine, les suivantes « Pas encore » ; une seule phrase dessous. */
.etapes-projet .etapes { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.5rem; margin: 0 0 0.5rem; padding: 0; counter-reset: etape; }
.etapes-projet .etapes li { counter-increment: etape; border-top: 4px solid var(--beige); padding-top: 0.4rem; color: var(--muted); font-size: 0.92rem; line-height: 1.3; max-width: none; }
.etapes-projet .etapes li::before { content: counter(etape) "\00a0"; font-family: "Fraunces", Georgia, serif; }
.etapes-projet .etapes li.fait { border-top-color: var(--success); color: var(--success); }
.etapes-projet .etapes li.encours { border-top-color: var(--navy); color: var(--navy); font-weight: 700; }
.etapes-projet .etape-pas-encore { display: block; font-size: 0.82rem; }
.attendu { margin: 0.2rem 0 1.2rem; font-size: 1.12rem; font-weight: 600; color: var(--navy); }
/* Deux colonnes : les parties à gauche, l'encadré « Ce que vous pouvez faire » à droite, fixe à l'écran pendant le défilement (D28). */
.tdb { display: grid; grid-template-columns: minmax(0, 1fr) 21rem; gap: 1.5rem; align-items: start; }
/* L'encadré vient avant les parties dans le document (l'ordre du clavier et du lecteur d'écran suit celui du téléphone, où il est en tête) ;
   sur ordinateur, la grille le place à droite. */
.tdb-gauche { min-width: 0; grid-column: 1; grid-row: 1; }
.tdb-droite { grid-column: 2; grid-row: 1; position: sticky; top: 1rem; display: grid; gap: 0.8rem; max-height: calc(100vh - 2rem); overflow: auto; }
.boite { background: var(--card); border: 2px solid var(--navy); border-radius: var(--radius-lg); padding: 1rem 1rem 1.1rem; box-shadow: var(--shadow); }
.boite > h2 { font-size: 1.15rem; font-weight: 600; margin: 0 0 0.5rem; }
.boite .apres { font-size: 0.97rem; margin: 0 0 0.6rem; }
.indic { margin: 0 0 0.8rem; padding: 0.6rem 0.75rem; border-radius: 10px; background: var(--beige); font-weight: 600; color: var(--ink); max-width: none; }
.indic.pret { background: color-mix(in srgb, var(--success) 13%, var(--card)); color: var(--success); }
.indic ul { margin: 0.3rem 0 0; padding-left: 1.1rem; font-weight: 400; }
.indic a { color: var(--navy); font-weight: 600; }
.indic a::after { content: " →"; }
.indic-avant { margin: 0.6rem 0 0; padding: 0.5rem 0.6rem; border-radius: 8px; background: var(--beige); color: var(--ink); }
.surbouton { display: block; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin: 0 0 0.25rem; }
.cta.large { display: block; width: 100%; text-align: center; padding: 1rem 1.2rem; font-size: 1.08rem; }
.boite .cta.large + .note { margin: 0.5rem 0 0; }
.toutes-actions > summary { font-weight: 700; color: var(--navy); cursor: pointer; min-height: 44px; display: flex; align-items: center; }
.actions-liste { list-style: none; margin: 0.9rem 0 0; padding: 0.8rem 0 0; border-top: 1px solid var(--beige); display: grid; gap: 0.45rem; }
.actions-liste li { max-width: none; display: grid; grid-template-columns: 1fr auto; gap: 0.1rem 0.6rem; align-items: center; padding: 0.45rem 0.6rem; border-radius: 10px; border: 1px solid var(--beige); font-size: 0.97rem; }
.actions-liste li a { color: var(--navy); font-weight: 600; text-decoration: none; min-height: 32px; display: inline-flex; align-items: center; }
.actions-liste li a:hover { text-decoration: underline; }
.actions-liste li.fait { border-color: color-mix(in srgb, var(--success) 35%, var(--card)); }
.actions-liste li.fait a { color: var(--success); }
.actions-liste li.maintenant { border: 2px solid var(--navy); }
.actions-liste li.pasencore { background: var(--paper); }
.actions-liste li.pasencore .titre { color: var(--muted); font-weight: 600; }
.actions-liste li.lecture a { color: var(--ink); }
.actions-liste li.dispo { border-color: color-mix(in srgb, var(--muted) 35%, var(--card)); }
.actions-liste li .raison { grid-column: 1 / -1; font-size: 0.86rem; color: var(--muted); }
.actions-liste li.petit { border: 0; padding: 0.1rem 0.6rem; font-size: 0.92rem; }
.actions-liste li.petit a { font-weight: 400; text-decoration: underline; color: var(--muted); }
/* Les pastilles d'état : vert fait, marine maintenant, gris pas encore, beige en lecture. */
.puce { display: inline-block; font-family: "Source Sans 3", system-ui, sans-serif; font-size: 0.78rem; font-weight: 700; padding: 0.1rem 0.55rem; border-radius: 999px; letter-spacing: 0.02em; white-space: nowrap; }
.puce.fait { background: color-mix(in srgb, var(--success) 13%, var(--card)); color: var(--success); }
.puce.maintenant { background: var(--navy); color: var(--paper); }
.puce.pasencore { background: color-mix(in srgb, var(--muted) 14%, var(--card)); color: var(--muted); }
.puce.lecture { background: var(--beige); color: var(--ink); }
/* Les parties de gauche : une carte chacune, sa pastille d'état et son lien « Ouvrir … » (encadré 2). */
.carte { background: var(--card); border: 1px solid var(--beige); border-radius: var(--radius); padding: 1rem 1.1rem; margin: 0 0 1rem; }
.section-tdb { scroll-margin-top: 1rem; }
.section-tdb > h2 { font-size: 1.2rem; font-weight: 600; display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem 0.7rem; margin: 0 0 0.5rem; }
.section-tdb > h2 .puce { margin-left: auto; }
/* « Votre cadeau » (lot de la remise du cadeau) : les paroles gardent leurs vers et leurs strophes. */
.cadeau-paroles { white-space: pre-wrap; }
/* La carte en ligne (lot de la carte) : l'occasion, le prénom fêté, l'ouverture, chaque petit mot signé, la signature commune. Un mot ne se
   coupe pas d'une colonne ou d'une page à l'autre ; la signature, en italique, le suit. */
.carte-cadeau { margin: 1.5rem 0; padding: 1.25rem 1.1rem; background: var(--paper); border: 1px solid var(--beige); border-radius: var(--radius); }
.carte-occasion { margin: 0 0 0.25rem; color: var(--muted); }
.carte-nom { font-family: "Fraunces", Georgia, serif; font-size: clamp(1.8rem, 4.5vw, 2.6rem); line-height: 1.05; color: var(--navy); margin: 0 0 1rem; }
.carte-ouverture { font-size: 1.1rem; margin: 0 0 1.25rem; white-space: pre-line; }
.carte-mots { display: grid; gap: 1.1rem; margin: 0 0 1.25rem; }
.carte-mot { break-inside: avoid; page-break-inside: avoid; padding-top: 0.9rem; border-top: 2px solid var(--amber); max-width: var(--measure); }
.carte-mot p { margin: 0 0 0.4rem; }
.carte-mots-cles { color: var(--accent); font-weight: 600; }
/* Passe d'avant ouverture, tâche 3 : le souvenir, droit et d'une couleur plus douce ; seule la signature reste en italique. */
.carte-souvenir { font-style: normal; color: var(--muted); }
.carte-signature { font-style: italic; color: var(--accent); }
.carte-commune { font-style: italic; color: var(--navy); margin: 0 0 1rem; }
/* Le fond de la carte (19/11) : le papier porte le fond en service ; la moitié haute de l'image ancrée en haut, la moitié basse en bas (deux
   calques, sans déformer l'image) ; le texte entre les deux, dans la zone libre du fond (une règle par fond, ci-dessous, tirée de la
   bibliothèque de src/domain/carte-fond.ts), sur la couleur du centre du fond. Le papier a au moins la hauteur de l'image entière
   (aspect-ratio) et grandit avec le texte : le milieu s'allonge. Le texte est centré, comme sur la maquette approuvée. Sur une carte
   étroite (téléphone), le texte passe entre les deux moitiés du décor, sur toute la largeur. Un fond absent : le papier uni. */
.carte-papier { position: relative; overflow: clip; max-width: 40rem; margin: 0 auto 1rem; background: var(--card); border: 1px solid var(--beige); border-radius: 6px; box-shadow: var(--shadow); container-type: inline-size; }
.carte-papier[data-fond] { aspect-ratio: 896 / 1200; }
/* Passe d'avant ouverture, tâche 3 : chaque moitié couvre 700 des 1200 points de l'image ; elles se recouvrent au milieu et chacune s'estompe
   sur ses 200 derniers points. Carte à sa hauteur : les deux moitiés montrent les mêmes points là où elles se recouvrent. Carte allongée : le
   motif qui coupe le milieu s'efface en douceur dans la couleur du fond, au lieu de s'arrêter net. */
.carte-decor { position: absolute; left: 0; width: 100%; height: auto; aspect-ratio: 896 / 700; object-fit: cover; pointer-events: none; user-select: none; }
.carte-decor-haut { top: 0; object-position: top; -webkit-mask-image: linear-gradient(to bottom, black 71%, transparent); mask-image: linear-gradient(to bottom, black 71%, transparent); }
.carte-decor-bas { bottom: 0; object-position: bottom; -webkit-mask-image: linear-gradient(to top, black 71%, transparent); mask-image: linear-gradient(to top, black 71%, transparent); }
.carte-texte { position: relative; padding: 1.5rem 1.25rem; text-align: center; overflow-wrap: anywhere; }
.carte-texte .carte-occasion { margin: 0; font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.carte-texte .carte-nom { margin: 0.1em 0 0; font-size: clamp(2rem, 9cqw, 3.2rem); line-height: 1; color: var(--ink); }
.carte-age { margin: 0.3em 0 0; font-family: "Fraunces", Georgia, serif; font-size: 1.45rem; color: var(--accent); }
.carte-texte .carte-ouverture { margin: 0.9em 0 0; font-size: 1.05rem; }
.carte-texte .carte-mots { gap: 0.95em; margin: 1em 0 0; }
.carte-texte .carte-mot { padding-top: 0; border-top: 0; max-width: none; }
.carte-texte .carte-mot p { margin: 0 0 0.15em; }
.carte-texte .carte-mots-cles { color: var(--muted); font-weight: 400; font-size: 0.92rem; letter-spacing: 0.03em; }
.carte-texte .carte-signature { font-family: "Fraunces", Georgia, serif; font-style: normal; font-size: 1.08rem; }
.carte-texte .carte-commune { margin: 1.1em 0 0; font-family: "Fraunces", Georgia, serif; font-style: normal; font-weight: 600; font-size: 1.3rem; color: var(--ink); }
.carte-papier[data-fond="birthday--aquarelle"] { background-color: var(--fond-birthday--aquarelle); }
.carte-papier[data-fond="birthday--aquarelle"] .carte-texte { padding: 47% 25% 31%; }
.carte-papier[data-fond="birthday--dore"] { background-color: var(--fond-birthday--dore); }
.carte-papier[data-fond="birthday--dore"] .carte-texte { padding: 28% 22% 26%; }
.carte-papier[data-fond="birthday--illustre"] { background-color: var(--fond-birthday--illustre); }
.carte-papier[data-fond="birthday--illustre"] .carte-texte { padding: 34% 21% 27%; }
.carte-papier[data-fond="birthday-enfant--aquarelle"] { background-color: var(--fond-birthday-enfant--aquarelle); }
.carte-papier[data-fond="birthday-enfant--aquarelle"] .carte-texte { padding: 17% 27% 38%; }
.carte-papier[data-fond="birthday-enfant--dore"] { background-color: var(--fond-birthday-enfant--dore); }
.carte-papier[data-fond="birthday-enfant--dore"] .carte-texte { padding: 33% 24% 32%; }
.carte-papier[data-fond="birthday-enfant--illustre"] { background-color: var(--fond-birthday-enfant--illustre); }
.carte-papier[data-fond="birthday-enfant--illustre"] .carte-texte { padding: 24% 28% 30%; }
.carte-papier[data-fond="farewell--aquarelle"] { background-color: var(--fond-farewell--aquarelle); }
.carte-papier[data-fond="farewell--aquarelle"] .carte-texte { padding: 33% 23% 33%; }
.carte-papier[data-fond="farewell--dore"] { background-color: var(--fond-farewell--dore); }
.carte-papier[data-fond="farewell--dore"] .carte-texte { padding: 29% 28% 33%; }
.carte-papier[data-fond="farewell--illustre"] { background-color: var(--fond-farewell--illustre); }
.carte-papier[data-fond="farewell--illustre"] .carte-texte { padding: 27% 21% 38%; }
.carte-papier[data-fond="moving_abroad--aquarelle"] { background-color: var(--fond-moving_abroad--aquarelle); }
.carte-papier[data-fond="moving_abroad--aquarelle"] .carte-texte { padding: 26% 25% 35%; }
.carte-papier[data-fond="moving_abroad--dore"] { background-color: var(--fond-moving_abroad--dore); }
.carte-papier[data-fond="moving_abroad--dore"] .carte-texte { padding: 22% 19% 36%; }
.carte-papier[data-fond="moving_abroad--illustre"] { background-color: var(--fond-moving_abroad--illustre); }
.carte-papier[data-fond="moving_abroad--illustre"] .carte-texte { padding: 21% 25% 41%; }
.carte-papier[data-fond="other--aquarelle"] { background-color: var(--fond-other--aquarelle); }
.carte-papier[data-fond="other--aquarelle"] .carte-texte { padding: 28% 21% 22%; }
.carte-papier[data-fond="other--dore"] { background-color: var(--fond-other--dore); }
.carte-papier[data-fond="other--dore"] .carte-texte { padding: 18% 18% 19%; }
.carte-papier[data-fond="other--illustre"] { background-color: var(--fond-other--illustre); }
.carte-papier[data-fond="other--illustre"] .carte-texte { padding: 28% 25% 17%; }
.carte-papier[data-fond="retirement--aquarelle"] { background-color: var(--fond-retirement--aquarelle); }
.carte-papier[data-fond="retirement--aquarelle"] .carte-texte { padding: 32% 17% 42%; }
.carte-papier[data-fond="retirement--dore"] { background-color: var(--fond-retirement--dore); }
.carte-papier[data-fond="retirement--dore"] .carte-texte { padding: 29% 21% 39%; }
.carte-papier[data-fond="retirement--illustre"] { background-color: var(--fond-retirement--illustre); }
.carte-papier[data-fond="retirement--illustre"] .carte-texte { padding: 16% 25% 49%; }
.carte-papier[data-fond="spouse_surprise--aquarelle"] { background-color: var(--fond-spouse_surprise--aquarelle); }
.carte-papier[data-fond="spouse_surprise--aquarelle"] .carte-texte { padding: 25% 25% 42%; }
.carte-papier[data-fond="spouse_surprise--dore"] { background-color: var(--fond-spouse_surprise--dore); }
.carte-papier[data-fond="spouse_surprise--dore"] .carte-texte { padding: 35% 24% 46%; }
.carte-papier[data-fond="spouse_surprise--illustre"] { background-color: var(--fond-spouse_surprise--illustre); }
.carte-papier[data-fond="spouse_surprise--illustre"] .carte-texte { padding: 36% 25% 33%; }
.carte-papier[data-fond="thanks--aquarelle"] { background-color: var(--fond-thanks--aquarelle); }
.carte-papier[data-fond="thanks--aquarelle"] .carte-texte { padding: 28% 27% 56%; }
.carte-papier[data-fond="thanks--dore"] { background-color: var(--fond-thanks--dore); }
.carte-papier[data-fond="thanks--dore"] .carte-texte { padding: 32% 25% 26%; }
.carte-papier[data-fond="thanks--illustre"] { background-color: var(--fond-thanks--illustre); }
.carte-papier[data-fond="thanks--illustre"] .carte-texte { padding: 34% 20% 40%; }
.carte-papier[data-fond="wedding--aquarelle"] { background-color: var(--fond-wedding--aquarelle); }
.carte-papier[data-fond="wedding--aquarelle"] .carte-texte { padding: 31% 21% 34%; }
.carte-papier[data-fond="wedding--dore"] { background-color: var(--fond-wedding--dore); }
.carte-papier[data-fond="wedding--dore"] .carte-texte { padding: 34% 26% 36%; }
.carte-papier[data-fond="wedding--illustre"] { background-color: var(--fond-wedding--illustre); }
.carte-papier[data-fond="wedding--illustre"] .carte-texte { padding: 27% 25% 28%; }
/* Une carte étroite : la zone libre d'un fond y serait trop étroite pour lire ; le texte passe entre la moitié haute et la moitié basse du
   décor, là où il n'y a que la couleur du fond. Chaque moitié y garde la moitié de l'image et s'estompe sur son dernier septième. */
@container (max-width: 34rem) {
  .carte-papier[data-fond] .carte-texte { padding: 68% 7% 68%; }
  .carte-papier[data-fond] .carte-decor { aspect-ratio: 896 / 600; }
  .carte-papier[data-fond] .carte-decor-haut { -webkit-mask-image: linear-gradient(to bottom, black 85%, transparent); mask-image: linear-gradient(to bottom, black 85%, transparent); }
  .carte-papier[data-fond] .carte-decor-bas { -webkit-mask-image: linear-gradient(to top, black 85%, transparent); mask-image: linear-gradient(to top, black 85%, transparent); }
}
/* Le choix du fond, sur « Votre cadeau » : trois vignettes, celle en service cerclée ; la case « Carte pour un enfant » ; l'âge fêté. */
.carte-fond-choix { margin: 1.5rem 0 0; }
.carte-fond-styles { margin: 0; padding: 0; border: 0; min-width: 0; }
.carte-fond-styles legend { padding: 0; margin: 0 0 0.6rem; font-weight: 600; }
.carte-fond-vignettes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.75rem; max-width: 30rem; }
.carte-fond-vignette { position: relative; display: grid; gap: 0.35rem; justify-items: center; text-align: center; font-size: 0.95rem; cursor: pointer; }
.carte-fond-vignette input { position: absolute; top: 0.5rem; left: 0.5rem; margin: 0; accent-color: var(--navy); }
.carte-fond-vignette img { display: block; width: 100%; height: auto; border: 2px solid var(--beige); border-radius: 6px; }
.carte-fond-vignette input:checked + img { border-color: var(--navy); box-shadow: 0 0 0 2px var(--navy); }
.carte-fond-vignette input:focus-visible + img { outline: 3px solid var(--ink); outline-offset: 2px; }
.carte-fond-enfant { display: inline-flex; align-items: center; gap: 0.45rem; margin: 0.9rem 0 0; cursor: pointer; }
.carte-fond-age { margin: 0.9rem 0 0; }
.carte-fond-age input { width: 5rem; }
/* « Les dessins » sur « Votre cadeau » (lot des dessins) : une grille de vignettes, deux par ligne sur un téléphone de 360 de large, plus
   au-delà ; sous chaque dessin, son bouton ou la phrase « se prépare ». */
.dessins-cadeau { margin: 1.5rem 0 0; }
.dessins-vignettes { list-style: none; margin: 0.6rem 0 1rem; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr)); gap: 0.9rem; }
.dessins-vignette { display: grid; gap: 0.4rem; align-content: start; min-width: 0; }
.dessins-vignette img { display: block; width: 100%; height: auto; border: 2px solid var(--beige); border-radius: 6px; }
.dessins-vignette .note, .dessins-legende { margin: 0; }
.dessins-legende { font-weight: 600; }
/* Passe d'avant ouverture, tâche 2 : à 360 de large, deux colonnes de 9rem et leur écart dépassent la colonne du texte, et la grille tombait
   à une vignette par ligne ; sur téléphone, deux colonnes souples. */
@media (max-width: 520px) { .dessins-vignettes { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem; } }
/* « Le film » (lot du film, tâche 6), sur « Votre cadeau » et, pour le lecteur seul, sur la page de la personne fêtée : la vidéo et l'aperçu
   à la largeur de la colonne, en 16:9 ; les plans en vignettes, comme les dessins ; un plan sorti du film (« Compléter » décoché, sans
   photo) pâli ; un plan qui porte une photo du client cerclé ; les barres de fabrication et d'envoi sur toute la largeur. */
.film-cadeau { margin: 1.5rem 0 0; }
#film-creer { scroll-margin-top: 1rem; }
.film-depose { margin: 0.6rem 0 1.2rem; }
.film-video, .film-apercu { display: block; width: 100%; max-width: 40rem; height: auto; aspect-ratio: 16 / 9; background: var(--navy); border-radius: 6px; }
.film-etat:empty { display: none; }
.film-plans { list-style: none; margin: 0.6rem 0 1rem; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr)); gap: 0.9rem; }
.film-chapitre { grid-column: 1 / -1; }
.film-plan { display: grid; gap: 0.4rem; align-content: start; min-width: 0; cursor: pointer; }
.film-plan img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: contain; border: 2px solid var(--beige); border-radius: 6px; }
.film-plan[data-a-moi] img { border-color: var(--navy); }
.film-plan[data-hors-film] { opacity: 0.45; }
.film-plan p, .film-plan-numero { margin: 0; }
.film-plan-numero { font-weight: 600; }
.film-fabrication progress, .film-depot progress { display: block; width: 100%; max-width: 40rem; margin: 0.6rem 0; }
/* La correction des fautes proposée à l'organisateur (19/11), au-dessus de la carte : la phrase d'état, la liste avant → après (l'auteur,
   le texte d'origine barré, le texte corrigé), les boutons. Un texte long garde ses lignes et se coupe où il faut. */
.carte-fautes { margin: 1.5rem 0 0; padding: 1rem 1.1rem; border: 1px solid var(--beige); border-radius: var(--radius); }
.carte-fautes-liste { list-style: none; margin: 0.5rem 0 0.9rem; padding: 0; display: grid; gap: 0.6rem; }
.carte-fautes-liste li { max-width: var(--measure); white-space: pre-line; overflow-wrap: anywhere; }
.carte-fautes-liste del { color: var(--muted); }
.carte-fautes-liste ins { text-decoration: none; font-weight: 600; }
.carte-fautes-auteur { display: block; font-style: italic; color: var(--accent); }
.carte-fautes-liste label { display: block; cursor: pointer; }
.carte-fautes-liste input[type="checkbox"] { margin-right: 0.4rem; }
.carte-fautes-revoir { margin: 0.5rem 0 0; }
.carte-fautes-revoir summary { cursor: pointer; color: var(--accent); }
.resume { list-style: none; margin: 0.3rem 0 0; padding: 0; }
.resume li { margin: 0.15rem 0; }
.ouvrir { margin: 0.6rem 0 0; }
.lien-sec { color: var(--navy); font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }
/* Un bouton qui se lit comme un lien (ronde 26l : « Voir tous les fuseaux », « Garder « camille » ») : sans fond ni bordure. */
.parcours button.lien-sec { font: inherit; font-weight: 600; padding: 0; border: 0; background: none; cursor: pointer; }
.refs { display: grid; grid-template-columns: auto 1fr; gap: 0.3rem 1.1rem; margin: 0; }
.refs dt { color: var(--muted); }
.refs dd { margin: 0; font-weight: 600; }
.refs dd .note { font-weight: 400; }
/* Le retour au tableau de bord, en haut de chaque écran du projet (D29) : bouton marine plein ; le lien du bas reste. */
.retour { margin: 0 0 1rem; }
.retour-haut { display: inline-flex; align-items: center; gap: 0.45rem; min-height: 44px; padding: 0.55rem 1.1rem; border-radius: 999px; background: var(--navy); color: var(--paper); font-weight: 600; text-decoration: none; }
.retour-haut::before { content: ""; width: 0.5rem; height: 0.5rem; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); }
.retour-haut:hover { background: var(--navyHover); }
.compteurs-ecran { margin: 0 0 1.5rem; max-width: var(--measure); }
/* L'arrivée sur un champ depuis un manque du tableau de bord : le contour ambre (28/10, points 10 et 11). */
.cible { outline: 3px dashed var(--amber); outline-offset: 4px; }
/* La barre de session courte sur téléphone (section 2.2), la longue sur ordinateur. */
.session-court { display: none; }
/* La barre d'action du téléphone : cachée sur ordinateur. */
.barre-tel { display: none; }
@media (max-width: 860px) {
  /* Une colonne ; l'encadré passe en haut, sous la ligne des étapes, sa liste repliable ; la barre d'action fixe en bas. */
  .tdb { grid-template-columns: minmax(0, 1fr); }
  .tdb-gauche, .tdb-droite { grid-column: 1; grid-row: auto; }
  .tdb-droite { position: static; max-height: none; overflow: visible; }
  /* Le retour au tableau de bord, pleine largeur sous le titre (maquette 2.2). */
  .retour-haut { display: flex; justify-content: center; width: 100%; }
  .barre-tel { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; padding: 0.7rem 16px 0.9rem; background: var(--card); border-top: 2px solid var(--navy); box-shadow: 0 -8px 20px -10px color-mix(in srgb, var(--ink) 35%, transparent); }
  .barre-tel .indic { margin: 0 0 0.5rem; padding: 0.35rem 0.6rem; font-size: 0.9rem; }
  .barre-tel .lien-sec { display: block; text-align: center; margin-top: 0.45rem; font-size: 0.92rem; }
  /* La barre ne masque pas le contenu : la page garde sous elle la place de la barre. */
  .parcours:has(.barre-tel) { padding-bottom: 11rem; }
}
@media (min-width: 861px) {
  /* Sur ordinateur, la liste des actions est toujours ouverte : son titre repliable ne sert qu'au téléphone. */
  .toutes-actions > summary { display: none; }
}
@media (max-width: 520px) {
  .etapes-projet .etapes { font-size: 0.8rem; }
  .session-long { display: none; }
  .session-court { display: inline; }
}

/* ───────── Tâche 26, bloc C : les écrans de l'organisateur (maquette 26, sections 3 et 4) ───────── */
/* Mes souvenirs, en étapes numérotées : l'étape faite en vert, l'étape ouverte entourée, les autres repliées. */
.etapes-guidees { list-style: none; margin: 1rem 0; padding: 0; }
.etape-guidee { position: relative; margin: 0 0 0.8rem; padding: 0.8rem 1rem 0.8rem 3rem; border: 1px solid color-mix(in srgb, var(--ink) 14%, var(--card)); border-radius: var(--radius); background: var(--card); }
.etape-guidee.fait { border-color: color-mix(in srgb, var(--success) 40%, var(--card)); }
.etape-guidee.attente h3 { color: var(--muted); }
.etape-guidee .num { position: absolute; left: 0.9rem; top: 0.8rem; width: 1.5rem; height: 1.5rem; border-radius: 50%; background: var(--navy); color: var(--paper); font-weight: 700; text-align: center; line-height: 1.5rem; font-size: 0.85rem; }
.etape-guidee.fait .num { background: var(--success); }
.etape-guidee h3 { margin: 0 0 0.4rem; font-size: 1.05rem; }
.etape-fait, .message-essentiel { margin: 0.2rem 0; padding-left: 0.8rem; border-left: 3px solid var(--beige); font-style: italic; }
.essentiel-form, .souvenir-form { margin-top: 0.5rem; }
/* Ronde 26i (I11, D64) : un exemple à plusieurs éléments (les points à éviter) se lit un élément par ligne, à l'écran et copié. */
.exemple { margin: 0.1rem 0 0.6rem; font-size: 0.9rem; color: var(--muted); font-style: italic; white-space: pre-line; }
.modifier { font-weight: 600; }
.enregistre { margin-left: 0.5rem; color: var(--success); font-weight: 600; }
.enregistre:empty { display: none; }
.options { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.options .choix { padding: 0.3rem 0.7rem; border: 1px solid color-mix(in srgb, var(--ink) 20%, var(--card)); border-radius: 999px; }
.options .choix:has(input:checked) { background: var(--navy); border-color: var(--navy); color: var(--paper); }
.quand, .choix-chanson, .autre-nature { border: 0; padding: 0; margin: 0.6rem 0; }
.souvenir-form.grisee, .fiche.grisee { opacity: 0.55; }
.souvenirs-compte { margin: 0.6rem 0 1rem; }
.compteur { display: inline-block; padding: 0.3rem 0.7rem; border-radius: 10px; background: var(--beige); font-weight: 600; }
.zone-close, .zone-choix { margin: 1rem 0; padding: 0.8rem 1rem; border-radius: var(--radius); background: var(--beige); }
.zone-choix { background: var(--card); border: 2px solid var(--amber); }
.zone-close h2, .zone-close h3, .zone-choix h3 { margin: 0 0 0.4rem; font-size: 1.05rem; }
.souvenirs-choix { margin: 0; }
.choix-liste { list-style: none; margin: 0.5rem 0; padding: 0; }
.fiche { margin: 0 0 0.6rem; padding: 0.6rem 0.8rem; border: 1px solid color-mix(in srgb, var(--ink) 12%, var(--card)); border-radius: 10px; background: var(--card); list-style: none; }
.tete { margin: 0 0 0.3rem; font-weight: 600; }
.case { font-weight: 600; }
.ok { color: var(--success); font-weight: 600; }
.bloc { margin: 1.5rem 0; }
.btn { display: inline-block; padding: 0.4rem 0.9rem; border: 1px solid var(--navy); border-radius: 999px; color: var(--navy); font-weight: 600; text-decoration: none; }
.avancement { font-weight: 600; }
.cloturer-ecriture, .paroles-suite { margin: 1rem 0; }
.paroles-retard { color: var(--ink); border-left: 3px solid var(--amber); padding-left: 0.8rem; }
.partager-textes, .partager-liste, .partager-texte { margin: 0.6rem 0; }

/* L'espace opérateur, tâche 27 (maquette du 28/10, section 2) : l'accueil en groupes d'urgence. Rouge pour la seule échéance dépassée ;
   ambre sous 48 h ; marine sous 7 jours ; tirets gris plus tard ; neutre sans échéance. Les e-mails non partis et les essais se déplient. */
.compteurs-tete { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.4rem 0 0.3rem; padding: 0; list-style: none; }
.compteurs-tete li { display: inline-flex; align-items: baseline; gap: 0.4rem; padding: 0.35rem 0.8rem; border: 1px solid var(--beige); border-radius: 999px; background: var(--card); font-size: 0.95rem; }
.compteurs-tete li b { font-variant-numeric: tabular-nums; }
.compteurs-tete li.g-depassee { border-color: var(--danger); color: var(--danger); font-weight: 600; }
.compteurs-tete li.g-48 { border-color: var(--amber); }
.compteurs-tete li.g-7 { border-color: var(--navy); color: var(--navy); }
.compteurs-tete li.zero { opacity: 0.6; }
.natures { display: flex; flex-wrap: wrap; gap: 0.25rem 1.1rem; margin: 0.2rem 0 1rem; padding: 0; list-style: none; color: var(--muted); font-size: 0.93rem; }
.groupe { margin: 1.4rem 0 0.4rem; padding-left: 0.7rem; border-left: 5px solid var(--beige); }
.groupe > h2 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.2rem 0.6rem; margin: 0 0 0.3rem; font-size: 1.3rem; }
.groupe > h2 .n { font-size: 0.95rem; color: var(--muted); }
.groupe.depassee { border-left-color: var(--danger); }
.groupe.depassee > h2 { color: var(--danger); }
.groupe.g48 { border-left-color: var(--amber); }
.groupe.g7 { border-left-color: var(--navy); }
.groupe.plustard { border-left-style: dashed; border-left-color: var(--muted); }
.groupe.sans { border-left-color: var(--beige); }
.mot.alerte-depassee { border-color: var(--danger); box-shadow: inset 4px 0 0 var(--danger); }
.echeance { font-variant-numeric: tabular-nums; }
.depasse { color: var(--danger); font-weight: 700; }
.bientot { color: var(--amberText); font-weight: 700; }
.relatif { color: var(--navy); font-weight: 600; }
.afaire::before { content: "À faire : "; font-weight: 700; color: var(--navy); }
.puce-op { display: inline-block; padding: 0.08rem 0.55rem; border-radius: 999px; background: var(--beige); color: var(--ink); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.02em; }
.puce-op.urgent { background: var(--danger); color: var(--card); }
details.pli { padding: 0.75rem 1.05rem; border: 1px solid var(--beige); border-radius: var(--radius); background: var(--card); }
details.pli > summary { cursor: pointer; color: var(--navy); font-weight: 600; }
details.pli > summary .note { font-weight: 400; }
details.pli ul { display: grid; gap: 0.4rem; margin: 0.5rem 0 0; padding: 0; list-style: none; }
details.pli li { padding: 0.45rem 0 0; border-top: 1px solid var(--beige); }
.bandeau { margin: 0.6rem 0 1rem; padding: 0.8rem 1.05rem; border: 2px solid var(--danger); border-radius: var(--radius); background: var(--card); }
.bandeau strong { color: var(--danger); }
.bandeau p { margin: 0.25rem 0 0; max-width: none; }
.bandeau.avertissement { border-color: var(--amber); }
.bandeau.avertissement strong { color: var(--amberText); }
.vide-calme { padding: 1rem 1.1rem; border: 1px solid var(--beige); border-radius: var(--radius); background: var(--card); }
/* La fiche d'un projet (tâche 27, ronde 27b ; maquette, section 4) : l'en-tête d'état au-dessus des compteurs, la ligne d'un choix de la
   commande non enregistré (D56). */
.entete-etat { margin: 0.4rem 0 1rem; padding: 0.85rem 1.05rem; border: 2px solid var(--amber); border-radius: var(--radius); background: var(--card); }
.entete-etat p { margin: 0.2rem 0 0; max-width: none; }
.entete-etat .etat { font-size: 1.12rem; font-weight: 700; color: var(--navy); }
/* L'aperçu d'une relance (tâche 27, B3) : l'e-mail tel qu'il partira, dans un cadre en tirets, comme une boîte de réception. */
.apercu { margin: 0.6rem 0; padding: 0.9rem 1.1rem; border: 1px dashed var(--muted); border-radius: 10px; background: var(--card); font-family: Georgia, serif; }
.apercu .objet { margin: 0 0 0.4rem; color: var(--muted); font-size: 0.92rem; }
.apercu h3 { font-family: Georgia, serif; font-weight: 400; font-size: 1.2rem; }
.apercu .bouton-mail { display: inline-block; padding: 0.55rem 1.1rem; border-radius: 6px; background: var(--ink); color: var(--card); font-size: 0.95rem; }
.apercu .pied { color: var(--muted); font-size: 0.85rem; }
.suivi li { color: var(--muted); font-size: 0.95rem; }
.entete-etat .alerte-fiche { color: var(--danger); font-weight: 600; }
.essai-note { padding: 0.6rem 0.9rem; border-left: 3px solid var(--amber); background: var(--card); }
/* « Rembourser et annuler » et les gestes qui ne se défont pas (tâche 27, ronde 27c) : l'écran de confirmation dans la page, avec ce qui
   part (une liste de définitions) et ce qui se passe dans l'ordre ; le bouton d'un geste destructeur se dit en rouge. */
/* Bornée à la zone de l'espace de l'équipe (`[data-op-confirmation]`, passe d'avant ouverture, tâche 1) : la règle du client, plus haut, ne
   l'atteint pas, et celle-ci n'atteint plus les confirmations du client. */
.confirmation[data-op-confirmation] { margin: 0.6rem 0 1rem; padding: 0.95rem 1.15rem; border: 2px solid var(--navy); border-radius: var(--radius); background: var(--card); }
.confirmation[data-op-confirmation] h2 { margin-top: 0; }
.refs { display: grid; grid-template-columns: max-content 1fr; gap: 0.25rem 1rem; margin: 0.6rem 0; }
.refs dt { color: var(--muted); }
.refs dd { margin: 0; }
.suite { margin: 0.4rem 0 0.6rem; padding-left: 1.4rem; }
.cta.danger, .cta.danger:hover { background: var(--danger); }
@media (max-width: 520px) { .refs { grid-template-columns: 1fr; } .refs dd { margin-bottom: 0.35rem; } }
