/* ==========================================================================
   CONFIGURATEUR — assistant de personnalisation
   Réutilise les tokens (couleurs, ombres, polices) et les palettes
   animal / environnement déjà définies dans style.css. Aucune valeur de
   couleur n'est redéfinie ici : seulement des tailles et une mise en page
   adaptées à un contexte "carte" plutôt que "plein écran".
   ========================================================================== */

#configurator{
  position:relative;
  min-height:100dvh;
  width:100%;
  padding: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) 0 max(16px, env(safe-area-inset-left));
  display:flex;
  flex-direction:column;
  align-items:center;
  isolation:isolate;
}

/* PASSE 3J — filet de sécurité : tant que cette classe est présente sur
   <html> (locale initiale non-FR, posée par i18n-preboot.js AVANT le
   premier paint), le contenu réel du configurateur reste invisible.
   visibility (jamais display:none) : la mise en page reste calculée
   normalement, aucune reconstruction au reveal — et surtout, un élément
   visibility:hidden (et tous ses descendants, dont #input-sender) est
   automatiquement retiré de l'ordre de tabulation par le navigateur :
   aucun champ ne peut recevoir le focus pendant l'attente (voir audit
   PASSE 3J, aucun .focus()/autofocus programmatique n'existe par
   ailleurs dans ce fichier). Retirée par configurator.js (init()) une
   fois i18n.initAsync() résolu ET les grilles dynamiques (animaux/
   objets/environnements) construites dans la bonne langue — jamais
   avant. */
html.i18n-prepaint-pending #configurator{
  visibility:hidden;
}

.config-topbar{
  position:relative;
  z-index:10;
  width:100%;
  max-width:520px;
  text-align:center;
  padding-top:6px;
}

.config-topbar-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
}

/* Sélecteur de langue — bouton globe + popover (6 langues), même recette
   que home.css, dupliquée volontairement plutôt que partagée. */
.lang-picker{
  position:relative;
}
.lang-toggle{
  display:inline-flex;
  align-items:center;
  gap:5px;
  min-height:36px;
  padding:6px 12px;
  border-radius:999px;
  background:var(--white);
  box-shadow:var(--shadow-soft);
  font-family:var(--font-heading);
  font-weight:700;
  font-size:0.78rem;
  /* #836d8a plutôt que var(--ink-soft) (#8a7391) : contraste WCAG AA
     insuffisant sur fond blanc (4.25:1, audit Lighthouse) — assombrissement
     minimal (~5%), même teinte, uniquement sur ce composant. */
  color:#836d8a;
  transition:color 0.15s ease, box-shadow 0.15s ease;
}
.lang-toggle:hover,
.lang-toggle[aria-expanded="true"]{
  color:var(--pink-600);
  box-shadow:var(--shadow-pink);
}
.lang-menu{
  position:absolute;
  top:calc(100% + 8px);
  right:0;
  z-index:50;
  min-width:168px;
  max-width:calc(100vw - 32px);
  margin:0;
  padding:6px;
  list-style:none;
  background:var(--white);
  border-radius:var(--radius-md);
  box-shadow:var(--panel-shadow);
}
.lang-menu.hidden{ display:none; }
/* RTL (Phase C1) — le menu déroulant s'ancre sur le côté opposé, le
   bouton toggle restant lui-même positionné par le flex du topbar. */
[dir="rtl"] .lang-menu{ right:auto; left:0; }
.lang-option{
  display:flex;
  align-items:center;
  min-height:40px;
  padding:8px 12px;
  border-radius:var(--radius-sm);
  font-family:var(--font-body);
  font-weight:600;
  font-size:0.92rem;
  color:var(--ink);
  cursor:pointer;
  transition:background 0.12s ease, color 0.12s ease;
}
.lang-option:hover,
.lang-option:focus{
  background:var(--pink-50);
  outline:none;
}
.lang-option.active{
  background:linear-gradient(135deg, var(--pink-400), var(--pink-500));
  color:var(--white);
}
.config-home-link{
  display:inline-flex;
  align-items:center;
  min-height:44px;
  padding:0 10px;
  margin:-4px 0 -6px -10px;
  font-family:var(--font-heading);
  font-weight:600;
  font-size:0.85rem;
  color:var(--ink-soft);
  text-decoration:none;
  border-radius:var(--radius-sm);
  transition:color 0.15s ease, transform 0.15s ease;
}
.config-home-link:hover{ color:var(--pink-600); }
.config-home-link:active{ transform:scale(0.97); }
/* RTL (Phase C1) — seule cette flèche isolée (span dédié, hors texte
   traduit) est retournée visuellement ; ne couvre pas les flèches encore
   intégrées aux chaînes traduites (◀/▶ des boutons nav, voir rapport). */
[dir="rtl"] .dir-arrow{ display:inline-block; transform:scaleX(-1); }

/* Wordmark "KomouKy" — même recette que sur home.html (deux K en accent),
   dupliquée volontairement plutôt que partagée entre les deux pages. */
.config-home-link .wordmark{
  font-family:var(--font-heading);
  font-weight:800;
  color:inherit;
}
.config-home-link .wordmark-k{ color:var(--pink-500); }
.config-home-link:hover .wordmark-k{ color:var(--pink-600); }

/* PASSE JUR-03.3 — mention discrète des moyens de paiement, sous le kicker (toutes étapes). */
.config-payment-note{
  font-size:0.78rem;
  line-height:1.35;
  font-weight:600;
  color:var(--ink-soft);
  margin:-6px 0 8px;
}

.config-kicker{
  font-family:var(--font-heading);
  font-weight:700;
  color:var(--pink-600);
  font-size:1.05rem;
  margin:0 0 10px;
}

/* CORRECTION 2 (ÉTAPE 6X UX, + ajustement post-livraison) — chaque bulle
   affiche son numéro directement (plus seulement via aria-label) ; à partir
   de ~480px (voir media query plus bas — desktop/tablette, le conteneur
   restant de toute façon plafonné à 520px, voir #config-stage/
   .config-topbar), le libellé complet "Étape N" redevient visible à côté du
   numéro, pas seulement au survol/lecteur d'écran. En dessous, seul le
   numéro compact reste visible (voir .progress-dot-text ci-dessous) — le
   texte global #config-progress-label ("Étape N sur TOTAL") reste lui
   affiché à toutes les largeurs. L'étape active se distingue par la forme/
   la taille/un anneau sur SA bulle, jamais par la seule couleur (voir
   .progress-dot.active .progress-dot-badge). overflow-x:auto est un filet
   de sécurité : les numéros seuls tiennent sans défiler à toutes les
   largeurs testées, les libellés complets peuvent nécessiter un léger
   défilement horizontal DE CETTE BARRE UNIQUEMENT (jamais de la page) sur
   les largeurs les plus étroites où ils sont affichés — l'étape active
   reste toujours amenée dans la zone visible (voir
   configurator.js/renderProgress, activeDot.scrollIntoView). */
.config-progress{
  display:flex;
  justify-content:center;
  align-items:center;
  gap:8px;
  margin-bottom:4px;
  overflow-x:auto;
  overflow-y:hidden;
  scroll-behavior:smooth;
  -webkit-overflow-scrolling:touch;
  padding:3px 2px 7px; /* laisse respirer l'anneau/le scale de la bulle active */
}
.config-progress::-webkit-scrollbar{ display:none; }

/* De vrais <button>, cliquables sur les étapes déjà franchies (voir
   configurator.js/renderProgress) — enveloppe transparente autour du numéro
   (.progress-dot-badge) et, à partir de 480px, du libellé
   (.progress-dot-text). */
.progress-dot{
  flex:none;
  display:inline-flex;
  align-items:center;
  gap:0;
  margin:0;
  padding:0;
  border:none;
  background:none;
  border-radius:999px;
  -webkit-tap-highlight-color:transparent;
}
.progress-dot:focus-visible{ outline:2px solid var(--pink-500); outline-offset:2px; }
.progress-dot:disabled{ cursor:default; }
.progress-dot.done{ cursor:pointer; }

/* Numéro — cible tactile réelle de 28px (>24px, minimum d'accessibilité)
   en dessous de 480px ; devient un simple repère visuel à côté du libellé
   au-dessus (voir media query). */
.progress-dot-badge{
  flex:none;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:28px;
  height:28px;
  border:2px solid var(--pink-200);
  border-radius:50%;
  background-color:transparent;
  color:var(--ink-soft);
  font-family:var(--font-heading);
  font-weight:700;
  font-size:0.78rem;
  line-height:1;
  transition:background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease, transform 0.25s ease, box-shadow 0.15s ease;
}
/* Étape déjà franchie (cliquable) — remplie, jamais un simple changement de
   teinte : le remplissage plein (vs. contour ci-dessus) est le signal,
   perceptible même sans distinguer les couleurs. */
.progress-dot.done .progress-dot-badge{ background-color:var(--pink-400); border-color:var(--pink-400); color:var(--white); }
.progress-dot.done:hover .progress-dot-badge,
.progress-dot.done:focus-visible .progress-dot-badge{ background-color:var(--pink-500); border-color:var(--pink-500); }
/* Étape active — remplissage + anneau extérieur + agrandissement DU NUMÉRO
   uniquement (jamais du libellé, pour rester lisible à toutes les tailles) :
   trois signaux non liés à la couleur, en plus d'aria-current="step" (voir
   configurator.js). */
.progress-dot.active .progress-dot-badge{
  background-color:var(--pink-500);
  border-color:var(--pink-600);
  color:var(--white);
  transform:scale(1.18);
  box-shadow:0 0 0 3px var(--pink-100);
}

/* Libellé "Étape N" — masqué par défaut (numéro seul, mobile étroit),
   révélé à partir de 480px (desktop/tablette : le conteneur atteint déjà
   son plafond de 520px vers ~552px de viewport, voir commentaire plus
   haut). aria-hidden côté HTML : la bulle porte déjà l'aria-label complet
   (configurator.js), ce texte est purement visuel. */
.progress-dot-text{ display:none; }
@media (min-width:480px){
  /* justify-content:center (par défaut ci-dessus, correct tant que les
     numéros seuls ne débordent jamais, voir plus haut) devient un piège dès
     que le contenu déborde une fois les libellés affichés : le débordement
     du CÔTÉ GAUCHE d'un flex centré n'est alors PAS atteignable par
     scrollLeft (0 reste le minimum, quirk connu de justify-content:center +
     overflow) — l'étape 1 serait rognée en permanence, jamais scrollable.
     flex-start ancre le contenu au début, toujours entièrement parcourable
     de l'étape 1 à l'étape 7. */
  .config-progress{ justify-content:flex-start; }
  .progress-dot{ padding:2px 12px 2px 4px; }
  .progress-dot-text{
    display:inline-block;
    margin-inline-start:6px;
    font-family:var(--font-heading);
    font-weight:700;
    font-size:0.78rem;
    color:var(--ink-soft);
    white-space:nowrap;
  }
  .progress-dot.active .progress-dot-text{ color:var(--pink-600); font-weight:800; }
}

.config-progress-label{
  font-family:var(--font-heading);
  font-weight:700;
  font-size:0.8rem;
  color:var(--ink-soft);
  text-align:center;
  margin:0 0 4px;
}

.config-live-preview{
  font-family:var(--font-heading);
  font-weight:600;
  font-size:0.9rem;
  color:var(--ink-soft);
  min-height:1.3em;
  margin:2px 0 10px;
}
.config-live-preview:empty{ visibility:hidden; }

#config-stage{
  position:relative;
  z-index:10;
  width:100%;
  max-width:520px;
  flex:1;
  padding-bottom:110px; /* place pour la barre de navigation collante */
}

.config-step{
  display:none;
  flex-direction:column;
  align-items:center;
  gap:14px;
  text-align:center;
  animation:step-in 0.35s ease;
}
.config-step.active{ display:flex; }

@keyframes step-in{
  from{ opacity:0; transform:translateY(10px); }
  to{ opacity:1; transform:translateY(0); }
}

.config-question{
  font-family:var(--font-heading);
  font-size:clamp(1.3rem, 5.5vw, 1.7rem);
  font-weight:700;
  color:var(--ink);
  margin:6px 0 0;
}
.config-hint{
  font-size:0.95rem;
  color:var(--ink-soft);
  font-weight:600;
  margin:-6px 0 4px;
}

.config-input,
.config-textarea{
  width:100%;
  max-width:360px;
  font-family:var(--font-body);
  font-size:1.05rem;
  font-weight:600;
  color:var(--ink);
  background:var(--white);
  border:2px solid transparent;
  border-radius:var(--radius-md);
  padding:14px 18px;
  box-shadow:var(--shadow-soft);
  transition:box-shadow 0.2s ease, border-color 0.2s ease;
}
.config-input:focus,
.config-textarea:focus{
  outline:none;
  border-color:var(--pink-400);
  box-shadow:var(--shadow-pink);
}
.config-textarea{ resize:vertical; min-height:84px; text-align:left; }

.gender-row{
  display:flex;
  gap:10px;
  justify-content:center;
  flex-wrap:wrap;
}
.gender-pill{
  background:var(--white);
  color:var(--ink-soft);
  font-family:var(--font-heading);
  font-weight:600;
  font-size:0.92rem;
  padding:9px 18px;
  border-radius:999px;
  box-shadow:var(--shadow-soft);
  min-height:40px;
  transition:transform 0.15s ease, box-shadow 0.15s ease, color 0.15s ease, background 0.15s ease;
}
.gender-pill.selected{
  background:linear-gradient(135deg, var(--pink-400), var(--pink-500));
  color:var(--white);
  box-shadow:var(--shadow-pink);
}
.gender-pill:active{ transform:scale(0.96); }

/* Grilles de cartes (animaux / environnements) */
.card-grid{
  display:grid;
  grid-template-columns:repeat(2, minmax(0,1fr));
  gap:12px;
  width:100%;
}
@media (min-width:420px){
  .card-grid{ grid-template-columns:repeat(3, minmax(0,1fr)); }
}

.animal-card,
.env-card,
.object-card{
  position:relative;
  background:var(--white);
  border-radius:var(--radius-md);
  box-shadow:var(--shadow-soft);
  border:3px solid transparent;
  padding:10px 8px 12px;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:6px;
  min-height:44px;
  transition:transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.animal-card:hover,
.env-card:hover,
.object-card:hover{ transform:translateY(-3px); box-shadow:var(--shadow-pink); }
.animal-card:active,
.env-card:active,
.object-card:active{ transform:translateY(0) scale(0.98); }
.animal-card.selected,
.env-card.selected,
.object-card.selected{
  border-color:var(--pink-500);
  box-shadow:var(--shadow-pink);
}
.animal-card.selected::after,
.env-card.selected::after,
.object-card.selected::after{
  content:"✓";
  position:absolute;
  top:-8px;
  right:-8px;
  width:24px;
  height:24px;
  background:var(--pink-500);
  color:var(--white);
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:0.8rem;
  box-shadow:var(--shadow-soft);
}
.object-card.shake{ animation:shake-wrong 0.4s ease; }

/* Enveloppe carte objet (voir configurator.js/renderObjectsGrid) — remplace
   le bouton comme enfant direct de .objects-grid (.card-grid), qui garde
   ses colonnes/gap inchangés. Ne contient plus que le bouton de sélection :
   la rédaction du souvenir vit désormais hors de la grille, dans
   .object-memories-section ci-dessous, pour ne pas être bridée par la
   largeur d'une colonne de grille (cause principale de l'ancienne UX
   "étiquette courte", voir audit Chantier 7). */
.object-card-wrap{
  display:flex;
  flex-direction:column;
  gap:6px;
}

/* Zone de rédaction des souvenirs — sous la grille, pleine largeur (mêmes
   tokens que .config-textarea) ; visible uniquement une fois les 3 objets
   choisis (voir updateObjectMemoriesVisibility, configurator.js). */
.object-memories-section{
  width:100%;
  max-width:380px;
  margin:20px auto 0;
  text-align:left;
}
[dir="rtl"] .object-memories-section{ text-align:right; }
.object-memories-section.hidden{ display:none; }

.object-memories-title{
  font-family:var(--font-heading);
  font-size:1.05rem;
  font-weight:700;
  color:var(--ink);
  margin:0 0 4px;
}
.object-memories-hint{
  font-size:0.85rem;
  font-weight:600;
  color:var(--ink-soft);
  margin:0 0 4px;
}
.object-memories-example{
  font-size:0.82rem;
  font-style:italic;
  color:var(--ink-soft);
  margin:0 0 14px;
}

.object-memories-list{
  display:flex;
  flex-direction:column;
  gap:14px;
}

.object-memory-editor{ width:100%; }

.object-memory-header{
  display:flex;
  align-items:center;
  gap:8px;
  margin-bottom:4px;
}
.object-memory-glyph{ font-size:1.3rem; line-height:1; }
.object-memory-name{
  font-family:var(--font-heading);
  font-weight:700;
  font-size:0.95rem;
  color:var(--ink);
}

.object-memory-label{
  display:block;
  font-family:var(--font-heading);
  font-weight:600;
  font-size:0.72rem;
  color:var(--ink-soft);
  margin-bottom:4px;
}

.object-memory-textarea{ min-height:72px; }

.object-memory-counter{
  display:block;
  text-align:right;
  font-size:0.68rem;
  color:var(--ink-soft);
  margin-top:2px;
}
[dir="rtl"] .object-memory-counter{ text-align:left; }

.object-card-glyph{
  font-size:2rem;
  line-height:1;
  height:44px;
  display:flex;
  align-items:center;
  justify-content:center;
}

.card-name{
  font-family:var(--font-heading);
  font-weight:700;
  font-size:0.95rem;
  color:var(--pink-600);
  margin-top:2px;
}
.card-label{
  font-family:var(--font-heading);
  font-weight:600;
  font-size:0.78rem;
  color:var(--ink-soft);
}

.animal-card-visual{
  position:relative;
  width:100%;
  height:88px;
  display:flex;
  align-items:flex-end;
  justify-content:center;
  overflow:visible;
}
.animal-card-visual svg{
  width:74%;
  height:auto;
  overflow:visible;
  filter:drop-shadow(0 6px 6px rgba(74,52,82,0.14));
}

.env-card{ padding:0 0 10px; }
.env-card-scene{
  position:relative;
  display:block;
  width:100%;
  height:82px;
  border-radius:calc(var(--radius-md) - 3px);
  overflow:hidden;
  margin-bottom:8px;
  background:
    radial-gradient(120% 100% at 20% 0%, var(--env-grad-1, var(--lavender-100)) 0%, transparent 60%),
    radial-gradient(120% 100% at 90% 15%, var(--env-grad-2, var(--pink-100)) 0%, transparent 60%),
    var(--env-base, var(--cream));
}
.env-card-scene .blob{
  position:absolute;
  border-radius:50%;
  filter:blur(9px);
  opacity:0.6;
}
.env-card-scene .blob-1{ width:64px; height:64px; top:-22px; left:-14px; background:var(--env-blob-1, var(--pink-200)); }
.env-card-scene .blob-2{ width:52px; height:52px; bottom:-20px; right:-12px; background:var(--env-blob-2, var(--lavender-300)); }
.env-card-scene .blob-3{ width:42px; height:42px; bottom:4px; left:-10px; background:var(--env-blob-3, var(--gold-300)); opacity:0.4; }
.env-card-scene .env-sun{
  position:absolute;
  top:8px;
  left:var(--env-sun-left, auto);
  right:var(--env-sun-right, 8%);
  width:calc(var(--env-sun-size, 200px) * 0.18);
  height:calc(var(--env-sun-size, 200px) * 0.18);
  min-width:20px;
  min-height:20px;
  border-radius:50%;
  background:radial-gradient(circle, var(--env-sun-color-1, #ffd9a8) 0%, var(--env-sun-color-2, transparent) 70%);
  opacity:var(--env-sun-opacity, 0.55);
  display:var(--env-sun-display, block);
}
.env-card-scene .env-horizon{
  position:absolute;
  left:0; right:0; bottom:0;
  height:28px;
  background:var(--env-horizon-color, var(--pink-300));
  opacity:var(--env-horizon-opacity, 0.3);
  clip-path:var(--env-horizon-clip, polygon(0% 55%, 10% 42%, 22% 50%, 35% 38%, 50% 48%, 65% 36%, 80% 46%, 100% 34%, 100% 100%, 0% 100%));
}

.animal-name-field{
  width:100%;
  max-width:360px;
  display:flex;
  flex-direction:column;
  gap:6px;
  margin-top:4px;
}
.animal-name-field label{
  font-family:var(--font-heading);
  font-weight:600;
  color:var(--ink-soft);
  font-size:0.92rem;
}

.char-counter{
  align-self:flex-end;
  width:100%;
  max-width:360px;
  text-align:right;
  font-size:0.8rem;
  color:var(--ink-soft);
  margin-top:-6px;
}

/* Photo souvenir optionnelle (Chantier 9C) — mêmes tokens que .recap-card/
   .consent-checks (max-width:380px, --radius-md, --shadow-soft). Input file
   masqué visuellement via clip (jamais display:none) : ne modifie ni le
   focus ni la lecture par un lecteur d'écran, toujours déclenché par un
   vrai <button> (#btn-photo-add, voir configurator.js). */
.photo-block{
  width:100%;
  max-width:380px;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:8px;
  margin-top:6px;
  text-align:center;
}
.photo-title{
  font-family:var(--font-heading);
  font-weight:700;
  font-size:1.05rem;
  color:var(--ink);
  margin:0;
}
.photo-optional{
  font-size:0.75rem;
  font-weight:700;
  color:var(--pink-500);
  text-transform:uppercase;
  letter-spacing:0.04em;
  margin:0;
}
.photo-help{
  font-size:0.85rem;
  color:var(--ink-soft);
  margin:0;
}
.photo-input-hidden{
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0;
}
.photo-add-row{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:6px;
}
.photo-btn{
  font-family:var(--font-heading);
  font-weight:700;
  font-size:0.92rem;
  padding:11px 20px;
  border-radius:999px;
  min-height:44px;
  box-shadow:var(--shadow-soft);
  background:var(--white);
  color:var(--pink-600);
  transition:transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}
.photo-btn:active{ transform:scale(0.97); }
.photo-btn:disabled{ opacity:0.5; box-shadow:none; }
.photo-btn-add{
  background:linear-gradient(135deg, var(--pink-400), var(--pink-500));
  color:var(--white);
  box-shadow:var(--shadow-pink);
}
.photo-formats{
  font-size:0.78rem;
  color:var(--ink-soft);
  margin:0;
}
.photo-current-row{
  width:100%;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:10px;
}
/* object-fit:contain (jamais cover) — même raisonnement que .final-card-photo
   dans style.css : ne jamais rogner un visage/couple dans l'aperçu. */
.photo-preview-img{
  display:block;
  width:auto;
  max-width:100%;
  max-height:22vh;
  object-fit:contain;
  border-radius:var(--radius-md);
  box-shadow:var(--shadow-soft);
}
.photo-existing-text{
  font-size:0.88rem;
  color:var(--ink-soft);
  margin:0;
}
.photo-current-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  justify-content:center;
}
.photo-btn-secondary{
  background:var(--white);
  color:var(--ink-soft);
}
.photo-status{
  font-size:0.85rem;
  color:var(--ink-soft);
  margin:0;
}
.photo-status.success{ color:var(--pink-600); font-weight:700; }
.photo-status.error{ color:#b3392b; }
/* PASSE 4Y — photo non conservée pendant l'aperçu : même registre que les erreurs,
   mais encadré pour rester visible aussi à l'étape 7. */
.photo-lost-notice{
  font-size:0.88rem;
  line-height:1.4;
  color:#7a4b00;
  background:#fff4dc;
  border:1px solid #f0cf8a;
  border-radius:var(--radius-md);
  padding:10px 12px;
  margin:10px 0 0;
  text-align:start;
}
.photo-lost-notice.hidden{ display:none; }

.recap-card{
  width:100%;
  max-width:380px;
  background:var(--white);
  border-radius:var(--radius-md);
  box-shadow:var(--shadow-soft);
  padding:16px 18px;
  margin-top:6px;
  display:flex;
  flex-direction:column;
  gap:4px;
}
.recap-line{
  font-size:0.95rem;
  color:var(--ink);
  margin:0;
}
.recap-line strong{ color:var(--pink-600); }
.recap-line.recap-memory{ margin-top:4px; }

/* PASSE JUR-03.3B — informations factuelles avant paiement (étape 7), compactées : simple bloc texte de
   deux lignes, sans carte/fond/bordure/ombre. Ligne principale 13 px (prix, paiement unique, absence
   d'abonnement, durée d'accès) ; ligne secondaire 12 px. Séparateurs "·" en CSS (jamais en début de ligne). */
.precheckout-info{
  width:100%;
  max-width:380px;
  margin:10px 0 0;
  padding:0 2px;
  text-align:center;
}
.precheckout-key{
  margin:0;
  font-size:0.8125rem;
  line-height:1.35;
  font-weight:700;
  color:var(--ink);
}
.precheckout-note{
  margin:3px 0 0;
  font-size:0.75rem;
  line-height:1.35;
  font-weight:500;
  color:#6d5876;
}
.pc-item:not(:last-child)::after{
  content:"\00a0\00b7";
}

/* Consentements obligatoires avant paiement (CGV + exécution immédiate) —
   intégrés au design existant (mêmes tokens que .recap-card) sans refonte
   graphique. Jamais précochés : l'état "coché" ne dépend que de l'action
   explicite de l'utilisateur. */
.consent-checks{
  width:100%;
  max-width:380px;
  display:flex;
  flex-direction:column;
  gap:10px;
  margin-top:14px;
}
.consent-check{
  display:flex;
  align-items:flex-start;
  gap:10px;
  background:var(--white);
  border-radius:var(--radius-md);
  box-shadow:var(--shadow-soft);
  padding:12px 14px;
  cursor:pointer;
}
.consent-check-input{
  flex-shrink:0;
  width:20px;
  height:20px;
  margin-top:1px;
  accent-color:var(--pink-500);
  cursor:pointer;
}
.consent-check-input:focus-visible{
  outline:2px solid var(--pink-500);
  outline-offset:2px;
}
.consent-check-text{
  font-size:0.88rem;
  line-height:1.45;
  color:var(--ink);
}
.consent-check-text a{ color:var(--pink-600); text-decoration:underline; }
.consent-check-text a:hover{ color:var(--pink-500); }

.consent-withdrawal-link{
  width:100%;
  max-width:380px;
  margin:0;
  text-align:center;
}
.consent-withdrawal-link a{
  font-size:0.8rem;
  color:var(--ink-soft);
  text-decoration:underline;
}
.consent-withdrawal-link a:hover{ color:var(--pink-600); }

/* Défi Nox — participation FACULTATIVE (Lot B2), volontairement distincte
   visuellement des consentements obligatoires ci-dessus (teinte lavande vs
   fond blanc/rose) pour qu'aucun visiteur ne les confonde avec une
   obligation d'achat. Jamais précochées — même garantie que .consent-check. */
.nox-participation{
  width:100%;
  max-width:380px;
  display:flex;
  flex-direction:column;
  gap:8px;
  margin-top:14px;
  background:var(--lavender-100);
  border:1px solid var(--lavender-300);
  border-radius:var(--radius-md);
  padding:12px 14px;
}
.nox-participation-title{
  font-size:0.9rem;
  font-weight:700;
  color:var(--ink);
  margin:0;
}
.nox-participation-hint{
  font-size:0.8rem;
  color:var(--ink-soft);
  margin:0 0 4px;
}
.nox-participation-check{
  display:flex;
  align-items:flex-start;
  gap:10px;
  background:var(--white);
  border-radius:var(--radius-md);
  box-shadow:var(--shadow-soft);
  padding:10px 12px;
  cursor:pointer;
}
.nox-participation-input{
  flex-shrink:0;
  width:20px;
  height:20px;
  margin-top:1px;
  accent-color:var(--lavender-500);
  cursor:pointer;
}
.nox-participation-input:focus-visible{
  outline:2px solid var(--lavender-500);
  outline-offset:2px;
}
.nox-participation-text{
  font-size:0.88rem;
  line-height:1.45;
  color:var(--ink);
}

/* Création d'un vrai cadeau (Supabase) — bloc secondaire, distinct de
   l'aperçu instantané pour ne jamais laisser croire qu'un lien créé
   équivaut à un achat confirmé (le cadeau reste 'pending' tant qu'aucun
   paiement n'existe). */
.gift-create-block{
  width:100%;
  max-width:380px;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:8px;
  margin-top:14px;
}
.nav-create-gift{ width:100%; }
.gift-create-status{
  font-size:0.9rem;
  color:var(--ink-soft);
  text-align:center;
  line-height:1.4;
}
.gift-create-status.success{ color:var(--pink-600); font-weight:700; }
.gift-create-status.error{ color:#b3392b; }
.gift-create-status a{ color:inherit; text-decoration:underline; word-break:break-all; }

/* Barre de navigation basse, collante */
.config-nav{
  position:sticky;
  bottom:0;
  left:0;
  right:0;
  z-index:20;
  width:100%;
  display:flex;
  gap:10px;
  justify-content:center;
  padding: 14px max(16px, env(safe-area-inset-right)) max(14px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  background:linear-gradient(0deg, var(--env-base, var(--cream)) 55%, rgba(255,250,243,0));
}
/* RTL (Phase C1) — inverse l'ordre visuel des boutons (Précédent se
   retrouve à droite, Suivant/Voir mon aventure à gauche), cohérent avec le
   sens de lecture RTL. Ne modifie pas le sens métier des boutons (les id/
   gestionnaires de clic restent inchangés) ni la flèche ◀/▶ elle-même,
   toujours intégrée au texte traduit (voir rapport de cette passe). */
[dir="rtl"] .config-nav{ flex-direction:row-reverse; }
.nav-btn{
  font-family:var(--font-heading);
  font-weight:700;
  font-size:1rem;
  padding:14px 22px;
  border-radius:999px;
  min-height:48px;
  min-width:120px;
  box-shadow:var(--shadow-soft);
  background:var(--white);
  color:var(--pink-600);
  transition:transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}
.nav-btn.primary{
  background:linear-gradient(135deg, var(--pink-400), var(--pink-500));
  color:var(--white);
  box-shadow:var(--shadow-pink);
  flex:1;
  max-width:280px;
}
.nav-btn:active{ transform:scale(0.97); }
.nav-btn:disabled{ opacity:0.5; box-shadow:none; }

@media (min-width:600px){
  .config-question{ font-size:1.9rem; }
}

/* ==========================================================================
   PASS 22B — BOUTONS PREMIUM + HIÉRARCHIE DE L'ÉTAPE 7 (CSS seul, aucune modification HTML/JS)
   Recette de la Home V4B : rose d'origine, texte foncé #2a1e30 (6,1–7,5:1), ombres en couches, appui rapide, anneau de focus visible.
   Ne change NI les libellés, NI le prix, NI l'ordre DOM, NI les événements, NI les conditions d'activation.
   ========================================================================== */
#configurator{
  --cb-ink:#2a1e30;            /* texte sur rose (Home V4B) */
  --cb-pink-deep:#b8306f;      /* texte secondaire / anneau de focus : 5,7:1 sur blanc */
  --cb-preview-ink:#a8336d;    /* texte du bouton d'aperçu : ≥ 5,2:1 sur son fond */
  --cb-disabled-ink:#6f5a78;   /* texte désactivé : 5,2:1 sur son fond */
  --cb-out:cubic-bezier(0.23,1,0.32,1);
  --cb-shadow-primary:inset 0 1px 0 rgba(255,255,255,.38), 0 1px 2px rgba(198,66,126,.30), 0 10px 22px rgba(241,80,154,.28);
  --cb-shadow-primary-hover:inset 0 1px 0 rgba(255,255,255,.44), 0 2px 4px rgba(198,66,126,.30), 0 16px 28px rgba(241,80,154,.34);
  --cb-shadow-secondary:inset 0 0 0 1.5px rgba(198,66,126,.30), 0 2px 4px rgba(74,52,82,.06), 0 8px 18px rgba(74,52,82,.08);
}

/* Boutons de la barre basse et du paiement : même gabarit */
.nav-btn{
  min-width:0;
  min-height:54px;
  padding:13px 20px;
  font-size:1rem;
  line-height:1.2;
  border:1.5px solid transparent;
  -webkit-tap-highlight-color:transparent;
  touch-action:manipulation;
  transition:transform 160ms var(--cb-out), box-shadow 220ms var(--cb-out), background-color 120ms ease-out, color 120ms ease-out, border-color 120ms ease-out;
}
.nav-btn:active:not(:disabled){ transform:scale(.97); transition-duration:80ms; }
.nav-btn:focus-visible{ outline:3px solid var(--cb-pink-deep); outline-offset:3px; }

/* Principal (Suivant) : rose d'origine + texte foncé */
.nav-btn.primary{
  background:linear-gradient(135deg, var(--pink-400), var(--pink-500));
  color:var(--cb-ink);
  box-shadow:var(--cb-shadow-primary);
}
/* Secondaire (Précédent) : fond blanc, texte rose profond */
.nav-back{
  background:var(--white);
  color:var(--cb-pink-deep);
  box-shadow:var(--cb-shadow-secondary);
  flex:0 0 auto;
  padding-inline:20px;
}
/* Désactivé : reconnaissable (aucun rose, pointillés, pas d'ombre) ET lisible (5,2:1) — plus d'opacité 50 % sur le rose */
.nav-btn:disabled{
  opacity:1;
  cursor:not-allowed;
  background:#f3eaf4;
  color:var(--cb-disabled-ink);
  border:1.5px dashed rgba(111,90,120,.5);
  box-shadow:none;
}
@media (hover:hover) and (pointer:fine){
  .nav-btn.primary:hover:not(:disabled){ transform:translateY(-1px); box-shadow:var(--cb-shadow-primary-hover); }
  .nav-back:hover:not(:disabled){ transform:translateY(-1px); box-shadow:inset 0 0 0 1.5px rgba(198,66,126,.5), 0 3px 6px rgba(74,52,82,.08), 0 12px 22px rgba(74,52,82,.12); }
}

/* ÉTAPE 7 — hiérarchie : le PAIEMENT est l'action finale (rose plein, pleine largeur, dans la page) ;
   l'APERÇU « Voir mon aventure » (barre basse) devient une action secondaire teintée, sans prix, jamais en rose plein. */
.nav-launch.primary{
  background:linear-gradient(180deg, #ffffff 0%, #ffeef6 100%);
  color:var(--cb-preview-ink);
  border:1.5px solid rgba(198,66,126,.55);
  box-shadow:0 2px 4px rgba(74,52,82,.06), 0 8px 18px rgba(74,52,82,.08);
  max-width:300px;   /* garde la même largeur maximale qu'avant sur grand écran (la barre reste centrée) */
  min-width:0;
  text-wrap:balance;
}
@media (hover:hover) and (pointer:fine){
  .nav-launch.primary:hover:not(:disabled){ transform:translateY(-1px); box-shadow:0 3px 6px rgba(74,52,82,.08), 0 12px 22px rgba(74,52,82,.12); }
}
.nav-create-gift{
  width:100%;
  min-height:58px;
  font-size:1.06rem;
  font-weight:800;
  background:linear-gradient(135deg, var(--pink-400), var(--pink-500));
  color:var(--cb-ink);
  box-shadow:var(--cb-shadow-primary);
  text-wrap:balance;
}
@media (hover:hover) and (pointer:fine){
  .nav-create-gift:hover:not(:disabled){ transform:translateY(-1px); box-shadow:var(--cb-shadow-primary-hover); }
}
.gift-create-block{ margin-top:18px; }

/* Barre basse : Précédent compact, bouton d'action qui prend la place restante — aucun retour à la ligne forcé, hauteur stable */
.config-nav{
  gap:8px;
  align-items:stretch;
  /* pleine largeur d'écran (annule le retrait de 16 px de #configurator) : +32 px utiles pour les libellés longs (IT/PT/DE) */
  width:calc(100% + 32px);
  margin-inline:-16px;
  padding-inline:max(12px, env(safe-area-inset-left)) max(12px, env(safe-area-inset-right));
}
/* Taille et marges adaptées à la largeur : « ✨ Voir mon aventure » tient sur UNE ligne en 7 langues dès 360 px (italien = cas le plus long), hauteur de barre stable (82 px) */
.config-nav .nav-btn{
  white-space:normal;               /* repli sans troncature si une langue plus longue apparaissait */
  font-size:clamp(14.7px, calc(4.27vw - 0.65px), 16px);
  padding-inline:clamp(12px, 3.6vw, 18px);
}
.config-nav .nav-back{ white-space:nowrap; }

/* Boutons secondaires de l'étape 6 (photo) et pilule « Elle / Il / Neutre » choisie : mêmes contrastes */
.photo-btn-add{ color:var(--cb-ink); box-shadow:var(--cb-shadow-primary); }
.photo-btn{ color:var(--cb-pink-deep); }
.photo-btn-secondary{ color:var(--cb-disabled-ink); }
.photo-btn-add:focus-visible,
.photo-btn:focus-visible,
.gender-pill:focus-visible{ outline:3px solid var(--cb-pink-deep); outline-offset:3px; }
.gender-pill.selected{ color:var(--cb-ink); box-shadow:var(--cb-shadow-primary); }
/* Pastilles de progression (boutons) : chiffres foncés sur rose */
.progress-dot.done .progress-dot-badge,
.progress-dot.active .progress-dot-badge{ color:var(--cb-ink); }

/* ==========================================================================
   PASS 22C — SÉLECTIONS FLUIDES ET NATURELLES AU TOUCHER (CSS seul, aucune modification HTML/JS)
   Diagnostic : la règle « .animal-card:hover, .env-card:hover, .object-card:hover { translateY(-3px) + ombre rose } » (configurator.css)
   n'était limitée à aucun type d'appareil : sur écran tactile le navigateur garde l'état :hover après l'appui, la carte reste soulevée de 3 px
   (y compris une carte DÉSÉLECTIONNÉE, qui garde alors l'ombre rose d'une carte choisie).
   Ne change NI les choix, NI les valeurs stockées, NI aria-pressed, NI la navigation, NI les animations de changement d'étape, NI les boutons 22B.
   ========================================================================== */
.animal-card,
.env-card,
.object-card{
  -webkit-tap-highlight-color:transparent;
  touch-action:manipulation;
  transition:transform 220ms var(--cb-out), box-shadow 220ms var(--cb-out), border-color 160ms ease-out;
}
/* SURVOL : uniquement les appareils à vraie souris, plus discret (−2 px au lieu de −3 px) */
@media (hover:hover) and (pointer:fine){
  .animal-card:hover,
  .env-card:hover,
  .object-card:hover{ transform:translateY(-2px); box-shadow:var(--shadow-pink); }
}
/* TACTILE : l'état :hover résiduel d'un appui n'a AUCUN effet (une carte choisie garde son ombre rose via .selected) */
@media (hover:none), (pointer:coarse){
  .animal-card:hover:not(.selected),
  .env-card:hover:not(.selected),
  .object-card:hover:not(.selected){ transform:none; box-shadow:var(--shadow-soft); }
  .animal-card.selected:hover,
  .env-card.selected:hover,
  .object-card.selected:hover{ transform:none; }
  .progress-dot.done:hover .progress-dot-badge{ background-color:var(--pink-400); border-color:var(--pink-400); }
  .lang-toggle:hover:not([aria-expanded="true"]){ color:#836d8a; box-shadow:var(--shadow-soft); }
  .config-home-link:hover{ color:var(--ink-soft); }
  .config-home-link:hover .wordmark-k{ color:var(--pink-500); }
}
/* APPUI : retour immédiat (70 ms) et légère pression ; relâchement doux (220 ms, courbe de la Home) */
.animal-card:active,
.env-card:active,
.object-card:active{ transform:scale(.97); transition-duration:70ms; }
.gender-pill{ transition:transform 220ms var(--cb-out), box-shadow 220ms var(--cb-out), color 120ms ease-out; -webkit-tap-highlight-color:transparent; touch-action:manipulation; }
.gender-pill:active{ transform:scale(.97); transition-duration:70ms; }
/* SÉLECTION : la coche apparaît en s'agrandissant (transform + opacité, 220 ms, une seule fois) et reste lisible (texte foncé sur rose : 6,1:1) */
.animal-card.selected::after,
.env-card.selected::after,
.object-card.selected::after{
  color:var(--cb-ink);
  animation:cb-badge-in 220ms var(--cb-out) backwards;
}
@keyframes cb-badge-in{ from{ opacity:0; transform:scale(.5); } }
/* FOCUS CLAVIER : même anneau que les boutons 22B ; la règle globale « button:focus-visible » de style.css arrondissait à --radius-sm
   le coin des boutons ronds et des cartes dès qu'ils recevaient le focus : on garde leur forme */
.animal-card:focus-visible,
.env-card:focus-visible,
.object-card:focus-visible{ outline:3px solid var(--cb-pink-deep); outline-offset:3px; border-radius:var(--radius-md); }
.nav-btn:focus-visible,
.gender-pill:focus-visible,
.photo-btn:focus-visible,
.photo-btn-add:focus-visible,
.lang-toggle:focus-visible{ border-radius:999px; }

/* ==========================================================================
   PASS 22C-BIS — MENU DES LANGUES AU PREMIER PLAN (CSS seul, une règle)
   Cause : .config-topbar (position:relative; z-index:10) forme un contexte d'empilement qui ENFERME le menu (z-index:50 n'agit qu'à l'intérieur) ;
   #config-stage (position:relative; z-index:10) est son frère SUIVANT au même niveau (10) : il se peint donc PAR-DESSUS tout le volet
   (titres, champs, cartes — et capte aussi les appuis). Correction : l'en-tête passe au-dessus du contenu (10) ET de la barre basse (20).
   Aucun autre changement (ni positions, ni débordements, ni JS, ni z-index du menu).
   ========================================================================== */
.config-topbar{ z-index:25; }

/* ==========================================================================
   PASS 22D — TRANSITIONS ENTRE ÉTAPES ET PROGRESSION CONTINUE (copie isolée)
   Avant : l'étape quittée disparaissait instantanément et la nouvelle apparaissait en `step-in 0,35 s ease` (courbe lente au départ : contenu
   quasi invisible pendant ≈ 150 ms), pastilles recréées à chaque étape (transitions jamais jouées).
   Maintenant : l'étape quittée s'efface en 100 ms (surcouche inerte, voir configurator.js), la nouvelle entre en 240 ms avec un très léger
   déplacement vertical (14 px vers le haut en avançant, 10 px vers le bas en reculant) — opacité + transform uniquement, aucun recalcul de mise en page.
   ========================================================================== */
@keyframes cb-step-in-next{ from{ opacity:0; transform:translateY(14px); } to{ opacity:1; transform:none; } }
@keyframes cb-step-in-back{ from{ opacity:0; transform:translateY(-10px); } to{ opacity:1; transform:none; } }
@keyframes cb-step-out-next{ to{ opacity:0; transform:translateY(-6px); } }
@keyframes cb-step-out-back{ to{ opacity:0; transform:translateY(6px); } }
.config-step.active{ animation:cb-step-in-next 240ms var(--cb-out) 40ms both; }
#config-stage[data-dir="back"] .config-step.active{ animation-name:cb-step-in-back; }
.config-step.is-leaving{
  display:flex;
  position:absolute;
  top:0;
  inset-inline:0;
  pointer-events:none;
  animation:cb-step-out-next 100ms ease-in both;
}
#config-stage[data-dir="back"] .config-step.is-leaving{ animation-name:cb-step-out-back; }
/* le titre ne reçoit le focus que par programme (continuité clavier / lecteurs d'écran) : aucun contour parasite */
.config-question:focus{ outline:none; }
/* pastilles de progression : transitions réellement jouées maintenant que les éléments persistent */
.progress-dot-badge{ transition:background-color 220ms var(--cb-out), border-color 220ms var(--cb-out), color 220ms var(--cb-out), transform 260ms var(--cb-out), box-shadow 220ms var(--cb-out); }
@media (prefers-reduced-motion:reduce){
  .config-step.active,
  .config-step.is-leaving{ animation:none; }
}

/* ==========================================================================
   PASS 22E — EN-TÊTE COMPACT, ANIMAUX SANS CHEVAUCHEMENT, PROGRESSION COMPLÈTE (CSS seul ; aucune modification du JS, du HTML ni des animations 22D)
   Causes mesurées dans la 22D :
   1) en-tête : marges cumulées (≈ 37 px de trop) → le titre de l'étape démarrait à 26–30 % de la hauteur d'un téléphone ;
   2) étape 3 : le dessin de l'animal (74 % de la largeur de la carte, ex. 112×121 px à 390 px) est plus haut que sa zone fixe de 88 px et déborde
      volontairement au-dessus de la carte (overflow:visible) : jusqu'à 29 px (lapin) → les oreilles passaient sur le titre ;
   3) barre de progression : à partir de 480 px les libellés « Étape N » portent le contenu à 691 px dans une barre de 448–520 px →
      pastilles coupées (1, 2, 7 selon l'étape) avec défilement horizontal interne.
   ========================================================================== */
/* 3) progression : numéros seuls à toutes les largeurs (le texte « Étape N sur 7 » juste dessous et l'aria-label de chaque pastille restent) → 7 pastilles visibles, centrées ;
      les transitions 22D (couleur, échelle, ombre) et l'état actif ne sont pas touchés */
@media (min-width:480px){
  .config-progress{ justify-content:center; gap:10px; }
  .progress-dot{ padding:2px; }
  .progress-dot-text,
  .progress-dot.active .progress-dot-text{ display:none; }
  .progress-dot-badge{ width:32px; height:32px; font-size:0.85rem; }
}
/* 2) étape 3 : on laisse au-dessus de la grille la place exacte que le dessin dépasse (pourcentage de la largeur de la grille ; calcul : hauteur du dessin −
      88 px de zone fixe, +5 px de marge) ; aucune taille d'animal ni animation modifiée ; rangées un peu plus espacées pour les oreilles de la rangée suivante */
.animal-grid{ padding-top:max(0px, calc(40.08% - 109.6px)); row-gap:16px; }
@media (min-width:420px){
  .animal-grid{ padding-top:max(0px, calc(26.72% - 111.2px)); }
}
/* 1) en-tête compact sur téléphone : mêmes éléments, mêmes tailles de texte, marges resserrées ; titre de l'étape ≈ 37 px plus haut */
@media (max-width:599px){
  #configurator{ padding-top:max(10px, env(safe-area-inset-top)); }
  .config-topbar{ padding-top:2px; }
  .config-kicker{ margin:0 0 4px; }
  .config-payment-note{ margin:-2px 0 6px; text-wrap:balance; }   /* la marge haute d'origine (−6 px) chevauchait la boîte du titre une fois la marge basse de celui-ci réduite */
  .config-progress{ margin-bottom:0; padding:2px 2px 4px; }
  .config-progress-label{ margin:0 0 2px; }
  .config-live-preview{ min-height:1.2em; margin:0 0 6px; }
}

/* ==========================================================================
   PASS 22F — FINITIONS DE LISIBILITÉ, D'ACCESSIBILITÉ ET DE CONFORT TACTILE (CSS seul ; aucun texte, prix, choix, consentement ni comportement modifié)
   Mesures de la 22E sur les pixels réels de la page (mobile 390 px, 413 textes, 6 environnements) : texte secondaire #8a7391 à 3,3–4,3:1 ; texte rose #f1509a à 2,6–3,3:1 ;
   « Ajouter une photo » 2,3:1 (la règle .photo-btn, plus bas, écrasait le texte foncé de la 22B) ; option de langue active blanc sur rose 2,2:1 ; fond « nuit » : le dégradé
   #3d3a6b et la tache #736bbf passent sous l'en-tête (1,0–1,4:1, texte illisible) ; focus : champs bordure rose clair 2,1:1, options de langue sans indicateur, globe lavande
   2,05:1, pastilles rose clair 2,15:1 et anneau rogné de 2 px, cases à cocher 2,5:1 ; cibles : globe 36 px, pastilles 28 px, pilules 42 px, lien de rétractation 19 px.
   ========================================================================== */
#configurator{
  --ink-soft:#6a5574;          /* texte secondaire : ≥ 4,5:1 sur le fond réel (dégradés et taches d'ambiance compris) des 6 environnements (avant #8a7391 : 2,3–3,5:1 mesuré) */
  --cb-pink-text:#a02f66;      /* texte rose (titres d'accent, liens, noms) : ≥ 4,5:1 sur le fond réel des 6 environnements (avant #f1509a : 2,4–3,3:1 mesuré) */
  --cb-error:#a8322a;          /* message d'erreur : ≥ 4,9:1 */
  --cb-lav-deep:#7c52bd;       /* cases lavande du défi Nox : ≥ 5:1 sur blanc */
}
/* 1) Textes : rose d'accent plus profond, toujours dans la teinte KomouKy */
.config-kicker,
.card-name,
.recap-line strong,
.consent-check-text a,
.photo-optional,
.photo-status.success,
.gift-create-status.success,
.lang-toggle:hover,
.lang-toggle[aria-expanded="true"],
.config-home-link:hover,
.progress-dot.active .progress-dot-text{ color:var(--cb-pink-text); }
.consent-check-text a:hover,
.consent-withdrawal-link a:hover{ color:var(--cb-ink); }
.photo-status.error,
.gift-create-status.error{ color:var(--cb-error); }
/* « Ajouter une photo » : la règle .photo-btn (texte rose, plus bas dans le fichier) écrasait le texte foncé prévu en 22B sur le rose plein */
.photo-btn.photo-btn-add{ color:var(--cb-ink); }
/* option de langue active : texte foncé sur le rose, comme les boutons 22B */
.lang-option.active{ color:var(--cb-ink); }
/* texte d'exemple des champs : lisible aussi sur Safari iOS (placeholder très pâle par défaut) */
.config-input::placeholder,
.config-textarea::placeholder{ color:var(--ink-soft); opacity:1; }
/* petits textes : jamais sous 12 px, informations avant paiement un cran plus lisibles */
.object-memory-label,
.object-memory-counter{ font-size:0.75rem; }
.precheckout-key{ font-size:0.875rem; }
.precheckout-note{ font-size:0.8125rem; }
/* champ de message : alignement naturel dans la langue (à droite en arabe) */
.config-textarea{ text-align:start; }

/* 2) Fond « nuit » : l'en-tête et les textes d'aide reposent directement sur le dégradé et les taches de la page ; le bleu nuit (#3d3a6b / #736bbf) y
      descendait à 1,0–1,4:1 mesuré (texte illisible). Même teinte indigo, beaucoup plus pâle (tous les autres environnements sont déjà clairs). */
html.env-theme.env-night{ --env-grad-1:#e2def6; --env-grad-2:#e8daf3; --env-blob-1:#dcd7f4; --env-blob-2:#c9c3ee; }

/* 3) Focus clavier : anneau rose profond (≥ 5:1) de 3 px, sans décalage de mise en page (outline + bordure déjà de 2 px) */
.config-input:focus,
.config-textarea:focus{ border-color:var(--cb-pink-deep); }
.lang-toggle:focus-visible,
.config-home-link:focus-visible,
.consent-check-text a:focus-visible,
.consent-withdrawal-link a:focus-visible{ outline:3px solid var(--cb-pink-deep); outline-offset:3px; }
.config-home-link:focus-visible,
.consent-check-text a:focus-visible,
.consent-withdrawal-link a:focus-visible{ border-radius:6px; outline-offset:2px; }
.lang-option:focus-visible{ background:var(--pink-100); outline:3px solid var(--cb-pink-deep); outline-offset:-3px; }
.lang-option.active:focus-visible{ outline-color:var(--cb-ink); }
.progress-dot:focus-visible{ outline:3px solid var(--cb-pink-deep); outline-offset:1px; }
.consent-check-input:focus-visible,
.nox-participation-input:focus-visible{ outline:3px solid var(--cb-pink-deep); outline-offset:2px; }
.nox-participation-input:focus-visible{ outline-color:var(--cb-lav-deep); }
/* la barre de pastilles rogne (overflow) : on lui donne la place de l'anneau, sans bouger les pastilles (marges négatives de même valeur) */
.config-progress{ padding:6px 6px 10px; margin:-3px -6px 1px; }
@media (max-width:599px){
  .config-progress{ padding:5px 6px 4px; margin:-3px -6px 0; }
}
/* la barre basse collante ne masque jamais l'élément qui reçoit le focus */
html{ scroll-padding-bottom:104px; }

/* 4) Consentements de l'étape 7 : mêmes textes, même ordre, jamais précochés ; lecture et toucher plus confortables */
.consent-checks{ gap:12px; }
.consent-check,
.nox-participation-check{ gap:12px; min-height:48px; padding-inline:14px; }
.nox-participation-check{ min-height:44px; padding-block:10px; }
.consent-check-input,
.nox-participation-input{ width:24px; height:24px; margin-top:-1px; }
.consent-check-input{ accent-color:var(--cb-pink-deep); }
.nox-participation-input{ accent-color:var(--cb-lav-deep); }
.consent-check-text,
.nox-participation-text{ font-size:0.92rem; line-height:1.5; text-align:start; }
/* case obligatoire manquante : après un clic sur « Finaliser » avec un consentement oublié, le message existant s'affiche (inchangé) ; on entoure en plus la ou
   les cases non cochées (plus aucune marque dès qu'elles sont cochées). Aucune logique de validation touchée. */
.config-step[data-step="7"]:has(.gift-create-status.error:not(.hidden)) .consent-check:has(.consent-check-input:not(:checked)){
  box-shadow:0 0 0 2px var(--cb-error), var(--shadow-soft);
}

/* 5) Zones tactiles : on agrandit la zone cliquable (pseudo-élément transparent), pas l'apparence ; aucune zone ne chevauche sa voisine */
.lang-toggle,
.gender-pill,
.progress-dot{ position:relative; }
.lang-toggle::before,
.gender-pill::before,
.progress-dot::before{ content:""; position:absolute; }
.lang-toggle::before{ inset:-5px -2px; }
.gender-pill::before{ inset:-1px 0; }
.progress-dot::before{ inset:-6px -4px; }
.consent-withdrawal-link a{ display:inline-block; padding:11px 12px; margin:-11px -12px; }
@media (min-height:520px){
  .lang-option{ min-height:44px; }
}
/* PASS MOLLIE-05 — adresse e-mail de l'acheteur (étape 7). Même gabarit que les blocs voisins
   (largeur 380 px, champ .config-input existant). */
.buyer-email{
  width:100%;
  max-width:380px;
  display:flex;
  flex-direction:column;
  gap:6px;
  margin-top:14px;
  text-align:start;
}
.buyer-email-label{ font-size:0.9rem; font-weight:700; color:var(--ink); padding-inline:4px; }
.buyer-email .config-input{ max-width:none; text-align:start; }
[dir="rtl"] .buyer-email .config-input{ text-align:right; }
.buyer-email-hint{ font-size:0.8125rem; line-height:1.4; color:var(--ink-soft); margin:0; padding-inline:4px; }
.buyer-email.invalid .config-input{ border-color:var(--cb-error); }
.buyer-email.hidden{ display:none; }

/* PASS MOLLIE-05 — bouton d'achat : le libellé ne rétrécit plus (il descendait à 12,5 px en
   portugais sur 360 px). Le bouton garde ses dimensions (58 px de haut, même largeur) :
   - français, anglais, arabe : une ligne « libellé — prix », comme avant ;
   - espagnol, allemand, italien, portugais (libellés longs) et tout écran de moins de 350 px :
     le prix TTC passe sur une seconde ligne, à l'intérieur du même bouton.
   Tailles : libellé 17 px ; prix 15 px au minimum. */
.nav-create-gift{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:0 0.35em;
  height:58px;
  padding-block:0;
  white-space:nowrap;
  line-height:1.15;
  font-size:min(1.06rem, calc((min(100vw - 32px, 380px) - 42px) / var(--cta-fit, 17.5)));
}
.nav-create-gift .cta-label,
.nav-create-gift .cta-price{ white-space:nowrap; }
.nav-create-gift .cta-price::before{ content:"— "; }
html[lang="es"] .nav-create-gift,
html[lang="de"] .nav-create-gift,
html[lang="it"] .nav-create-gift,
html[lang="pt"] .nav-create-gift{
  flex-direction:column;
  gap:2px;
  font-size:1.06rem;
}
html[lang="es"] .nav-create-gift .cta-price,
html[lang="de"] .nav-create-gift .cta-price,
html[lang="it"] .nav-create-gift .cta-price,
html[lang="pt"] .nav-create-gift .cta-price{ font-size:0.9375rem; font-weight:700; }
html[lang="es"] .nav-create-gift .cta-price::before,
html[lang="de"] .nav-create-gift .cta-price::before,
html[lang="it"] .nav-create-gift .cta-price::before,
html[lang="pt"] .nav-create-gift .cta-price::before{ content:none; }
@media (max-width:349px){
  .nav-create-gift{ flex-direction:column; gap:2px; font-size:1rem; }
  .nav-create-gift .cta-price{ font-size:0.9375rem; font-weight:700; }
  .nav-create-gift .cta-price::before{ content:none; }
}

/* GAME-24 (option accueil) — visage joyeux des compagnons sur les cartes de
   choix, comme dans le jeu et sur l'accueil (configurator.js pose déjà
   data-face="happy", mais style.css n'affiche les visages que dans le jeu).
   Yeux clairs sur pelage sombre (chat noir, panda). */
.animal-card-visual svg.character[data-face="happy"] .face-happy{ display:block; }
.animal-card-visual svg.character:is([data-animal="blackCat"], [data-animal="panda"]) .happy-eye{ stroke:#fff3e6; }
