/* ==========================================================================
   Terre & Tasse — Café céramique · Montbrume (site de DÉMONSTRATION)
   Marque et contenu 100 % fictifs — d'après l'architecture d'une réalisation
   réellement livrée par Azur Tech (la charte du client n'est pas réutilisée).
   Palette : terracotta #C05A2E · sauge #4E8D5B · bleu pétrole #38708F ·
             argile rosée #D99A7E · ivoire #F7EFE2
   Typos : titres « Patrick Hand » (OFL, auto-hébergée) · corps Arial
   ========================================================================== */

/* « Patrick Hand » (OFL) — police manuscrite des titres, auto-hébergée
   (compatible CSP font-src 'self'). */
@font-face {
  font-family: "Patrick Hand";
  font-style: normal; font-weight: 400; font-display: swap;
  src: url("patrickhand-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191,
    U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Patrick Hand";
  font-style: normal; font-weight: 400; font-display: swap;
  src: url("patrickhand-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF,
    U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* Couleurs de marque */
  --red:        #C05A2E;
  --red-dark:   #9C451F;
  --red-soft:   #F7E3D6;
  --green:      #4E8D5B;
  --green-dark: #3B6F47;
  --green-soft: #DDEEDE;
  --blue:       #38708F;
  --blue-dark:  #2A5871;
  --blue-soft:  #DCEBF1;
  --pink:       #D99A7E;
  --pink-soft:  #F6E3D8;
  --cream:      #F7EFE2;
  --cream-deep: #ECDFC8;
  --paper:      #fffaf2;

  /* Encre / texte (brun chaud plutôt que noir pur, plus doux sur le crème) */
  --ink:        #3a2724;
  --ink-soft:   #6a5650;
  --white:      #ffffff;

  /* Typographie : titres manuscrits « Patrick Hand », corps Arial. */
  --font-head: "Patrick Hand", "Comic Sans MS", cursive;
  --font-hand: "Patrick Hand", "Comic Sans MS", cursive;
  --font-ui:   Arial, "Helvetica Neue", Helvetica, system-ui, sans-serif;
  --font-body: Arial, "Helvetica Neue", Helvetica, system-ui, sans-serif;

  /* Rayons & ombres (esprit autocollant / rondeur cartoon) */
  --r-sm: 12px;
  --r-md: 20px;
  --r-lg: 28px;
  --r-xl: 40px;
  --r-pill: 999px;
  --shadow-sm: 0 6px 20px rgba(58, 39, 36, .07);
  --shadow-md: 0 18px 44px rgba(58, 39, 36, .11);
  --shadow-pop: 0 10px 30px rgba(58, 39, 36, .09);
  --hair: rgba(58, 39, 36, .12);

  --maxw: 1140px;
}

/* ── Reset léger ─────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  font-size: 17px;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--red-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.1; margin: 0 0 .4em; font-weight: 600; }
p { margin: 0 0 1em; }
ul { margin: 0 0 1em; padding-left: 1.2em; }

/* Accessibilité : lien d'évitement + focus visible */
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 1000;
  background: var(--red-dark); color: #fff; padding: 10px 16px; border-radius: 0 0 var(--r-sm) 0;
  font-family: var(--font-head);
}
.skip-link:focus { left: 0; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 4px; }

/* ── Conteneurs & sections ───────────────────────────────────────────────── */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.section { padding: 92px 0; position: relative; }
.section--tight { padding: 48px 0; }
.section--cream { background: var(--cream); }
.section--paper { background: var(--paper); }
.section--pink  { background: var(--pink-soft); }
.section--green { background: var(--green-soft); }
.section--blue  { background: var(--blue-soft); }
.section--red   { background: var(--red-dark); color: #fff; }
.section--green-solid { background: var(--green-dark); color: #fff; }
.section--red h2, .section--red h3,
.section--green-solid h2, .section--green-solid h3 { color: #fff; }
.section--green-solid .lead { color: rgba(255,255,255,.92); }

.section-head { text-align: center; max-width: 720px; margin: 0 auto 44px; }
/* Sous-titre = ARIAL MAJUSCULE + ITALIQUE (charte slides 5 & 6) */
.kicker {
  font-family: var(--font-ui);
  font-size: .9rem;
  font-weight: 700;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--green-dark);
  display: inline-block;
  margin-bottom: .55em;
  position: relative;
}
.kicker::after {
  content: ""; display: block; height: 3px; width: 38px; margin-top: 6px;
  border-radius: 3px; background: currentColor; opacity: .55;
}
.section-head .kicker::after { margin-left: auto; margin-right: auto; }
.section--red .kicker, .section--green-solid .kicker { color: #fff; }
.section--green .kicker, .section--blue .kicker, .section--pink .kicker { color: var(--red-dark); }
.title { font-size: clamp(1.9rem, 4.4vw, 3rem); color: var(--red); }
.section--red .title, .section--green-solid .title { color: #fff; }
.lead { font-size: 1.12rem; color: var(--ink-soft); }
.section--red .lead { color: rgba(255,255,255,.92); }

/* ── Boutons ─────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  font-family: var(--font-ui); font-weight: 700; font-size: 1rem;
  padding: 13px 28px; border-radius: var(--r-pill);
  border: 1.5px solid transparent;
  cursor: pointer; text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  box-shadow: var(--shadow-sm);
  line-height: 1;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0); box-shadow: var(--shadow-sm); }
/* Boutons à texte blanc : teintes profondes (contraste AA ≥ 4.5:1 sur le texte
   tout en restant la couleur de marque — rouge/vert de la charte). */
.btn--primary { background: var(--red-dark); color: #fff; }
.btn--green   { background: var(--green-dark); color: #fff; }
.btn--blue    { background: var(--blue); color: #fff; }
.btn--white   { background: #fff; color: var(--red-dark); }
.btn--outline { background: transparent; color: var(--ink); border-color: var(--hair); box-shadow: none; }
.btn--outline:hover { background: rgba(58,39,36,.04); border-color: rgba(58,39,36,.28); box-shadow: none; transform: translateY(-2px); }
.btn--lg { font-size: 1.12rem; padding: 16px 32px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.btn-row--center { justify-content: center; }

/* ── En-tête / navigation ────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  /* Fond PLEIN : semi-transparent, le contenu (mascotte, badges) restait
     visible en fantôme à travers le bandeau pendant le défilement. */
  background: var(--cream);
  border-bottom: 3px solid var(--red);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 12px 0; position: relative;
}
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand__mark { width: 42px; height: 42px; flex: 0 0 auto; }
.brand__text { display: flex; flex-direction: column; line-height: .95; }
.brand__name {
  font-family: var(--font-head); font-weight: 600; font-size: 1.45rem;
  color: var(--red-dark); letter-spacing: .2px;
}
.brand__sub {
  font-family: var(--font-hand); font-weight: 700; font-size: 1.05rem;
  color: var(--red-dark); margin-top: 2px;
}

.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  font-family: var(--font-ui); font-weight: 700; color: var(--ink);
  padding: 8px 12px; border-radius: var(--r-pill); font-size: .98rem;
  transition: background .15s ease, color .15s ease;
}
.nav-links a:not(.nav-cta):hover { background: var(--red-soft); color: var(--red-dark); text-decoration: none; }
.nav-links a[aria-current="page"]:not(.nav-cta) { color: var(--red-dark); background: var(--red-soft); }
/* CTA « Réserver » : bouton plein → texte blanc garanti (la règle .nav-links a
   le passait en --ink, illisible sur le rouge). */
.nav-links a.nav-cta { color: #fff; }
.nav-links a.nav-cta:hover { color: #fff; background: var(--red-dark); }
.nav-cta { margin-left: 6px; }

/* Petits pictos inline : SVG monolignes qui remplacent les emojis décoratifs */
.tt-emo { width: 1em; height: 1em; vertical-align: -.12em; }

/* Burger mobile (checkbox hack : zéro JS requis, conforme CSP). Sans JS, la
   checkbox reste focalisable au clavier sous 900 px (masquée visuellement,
   jamais display:none) et l'anneau de focus se pose sur le burger voisin.
   Avec JS, main.js remplace le label par un vrai <button> et pose hidden sur
   la checkbox, d'où la règle [hidden] explicite (piège : une règle display
   d'auteur bat le display:none de l'attribut). */
.nav-toggle { display: none; }
.nav-burger {
  display: none; cursor: pointer; width: 46px; height: 46px;
  border: 1.5px solid var(--hair); border-radius: var(--r-sm);
  background: #fff; align-items: center; justify-content: center; color: var(--red);
}
.nav-burger svg { width: 24px; height: 24px; }

@media (max-width: 900px) {
  .nav-burger { display: inline-flex; }
  .nav-toggle {
    display: block; position: absolute; width: 1px; height: 1px;
    margin: 0; padding: 0; border: 0; opacity: 0; pointer-events: none;
  }
  .nav-toggle[hidden] { display: none; }
  .nav-toggle:focus-visible + .nav-burger { outline: 3px solid var(--blue); outline-offset: 2px; }
  .nav-links {
    position: absolute; top: calc(100% + 10px); right: 0; left: 0;
    flex-direction: column; align-items: stretch; gap: 4px;
    background: var(--paper); border: 3px solid var(--red); border-radius: var(--r-md);
    padding: 12px; box-shadow: var(--shadow-md);
    display: none;
  }
  .nav-links a { padding: 12px 14px; }
  .nav-toggle:checked ~ .nav-links { display: flex; }
  .nav-cta { margin: 6px 0 0; }
}

/* ── Hero ────────────────────────────────────────────────────────────────── */
.hero { position: relative; background: var(--cream); overflow: hidden; padding: 70px 0 90px; }
.hero__grid {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center;
}
.hero__eyebrow {
  font-family: var(--font-ui); font-size: 1rem; font-weight: 700; font-style: italic;
  text-transform: uppercase; letter-spacing: .14em;
  color: var(--blue); display: inline-block; margin-bottom: .5em;
}
.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.1rem); color: var(--red); margin: .1em 0 .25em;
}
.hero h1 .accent { color: var(--green-dark); }
.hero__lead { font-size: 1.22rem; color: var(--ink); max-width: 30ch; margin-bottom: 1.4em; }
.hero__art { position: relative; display: flex; justify-content: center; align-items: flex-end; }

/* ── Bloc d'accueil : mascotte (défaut) · photo · jeu ─────────────────────────
   Un seul des trois est affiché. L'attribut data-hero est posé sur <html> :
   par theme-boot.js dès le <head> (cache anti-flash) puis par main.js avec la
   valeur publiée. Absent = mascotte, donc sans JS le hero est celui d'avant. */
.hero__slot { width: 100%; display: flex; justify-content: center; align-items: flex-end; }
.hero__slot--photo, .hero__slot--jeu { display: none; }
html[data-hero="photo"] .hero__slot--mascotte,
html[data-hero="jeu"]   .hero__slot--mascotte { display: none; }
html[data-hero="photo"] .hero__slot--photo { display: flex; }
html[data-hero="jeu"]   .hero__slot--jeu   { display: block; }
/* « Photo » choisie mais cadre encore vide : le visiteur retrouve la mascotte
   plutôt qu'un grand rectangle vide. En mode édition, Camille voit le cadre —
   sans quoi elle n'aurait nulle part où déposer sa photo. */
html[data-hero="photo"][data-hero-vide] body:not(.cf-editing) .hero__slot--photo { display: none; }
html[data-hero="photo"][data-hero-vide] body:not(.cf-editing) .hero__slot--mascotte { display: flex; }
/* Le jeu porte ses propres étiquettes : les pastilles du hero feraient doublon
   et passeraient par-dessus la carte. */
html[data-hero="jeu"] .hero__badge { display: none; }

/* Photo au choix : même esprit que les cadres .photo du site (pointillé rouge,
   ratio stable) mais clé et classe distinctes — cf. le commentaire du HTML. */
.hero-photo {
  width: min(420px, 100%); aspect-ratio: 4 / 3;
  border-radius: var(--r-lg); background: var(--paper) center / cover no-repeat;
  border: 2px dashed rgba(192, 90, 46, .38);
  display: grid; place-items: center; text-align: center;
  box-shadow: var(--shadow-md);
}
.hero-photo.cf-has-photo { border-style: solid; border-color: #fff; }
.hero-photo.cf-has-photo .hero-photo__hint { display: none; }
.hero-photo__hint {
  font-family: var(--font-hand); font-size: 1.15rem; color: var(--ink-soft);
  padding: 0 20px;
}
/* Visiteur (hors édition) : un cadre vide ne doit pas afficher sa consigne. */
body:not(.cf-editing) .hero-photo:not(.cf-has-photo) .hero-photo__hint { display: none; }
.cf-editing .hero-photo { cursor: pointer; outline: 2px dashed rgba(78, 141, 91, .6); outline-offset: 3px; }
.cf-editing .hero-photo.cf-drop { outline-color: var(--green-dark); background-color: var(--green-soft); }
@supports not (aspect-ratio: 1) { .hero-photo { min-height: 300px; } }
/* Trois calques imbriqués, pour que les mouvements ne se marchent pas dessus :
     .mascotte-live → le balancement permanent (rotation, pivot vers les bottines)
     .mascotte-flot → le flottement vertical permanent (durée première avec le
                      balancement : à l'œil, le cycle ne se répète jamais)
     .mascotte-lean → l'inclinaison vers le curseur, posée par mascotte.js
   Plus rien ne dépend du survol : la mascotte vit toute seule, doucement. */
/* Pivot du balancement : les bottines (≈ 53 % / 95 % du dessin) — elle se
   balance sur ses pieds, elle ne tourne pas autour de son ventre. */
.mascotte-live { position: relative; width: min(390px, 86%); transform-origin: 53% 95%; }
.mascotte-flot { display: block; }
.mascotte-lean {
  position: relative; display: block; transform-origin: 50% 88%;
  transform: rotate(var(--cf-lean-r, 0deg)) translate3d(var(--cf-lean-x, 0px), var(--cf-lean-y, 0px), 0);
  will-change: transform;
}

/* Calque des yeux : masqué par défaut (display:none inline), révélé par
   mascotte.js seulement si CE fichier CSS est chargé (marqueur --cf-css).
   Il sort du MÊME tableau de pixels que l'illustration et se pose aux mêmes
   coordonnées : au repos, sa révélation est rigoureusement invisible. */
.mascotte-eyes { --cf-css: 1; position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: 0; transition: opacity .16s ease; }
.mascotte-eyes.cf-ready { opacity: 1; }
.mascotte-eyes .cf-pupil { transform: translate(var(--cf-eye-x, 0px), var(--cf-eye-y, 0px)); }
.mascotte-eyes .cf-blink { opacity: 0; transition: opacity .07s ease; }
.mascotte-eyes .cf-lash  { fill: none; stroke: #5f2d4b; stroke-width: 7; stroke-linecap: round; }
.mascotte-eyes.is-blinking .cf-blink { opacity: 1; }
.hero__mascotte { display: block; width: 100%; height: auto; filter: drop-shadow(0 18px 24px rgba(58,39,36,.18)); }

.hero__badge {
  position: absolute; font-family: var(--font-hand); font-weight: 700;
  background: rgba(255,255,255,.92); color: var(--red-dark); border: 1.5px solid rgba(192,90,46,.22);
  padding: 7px 16px; border-radius: var(--r-pill); box-shadow: var(--shadow-sm);
  font-size: 1.1rem; backdrop-filter: blur(4px);
}
.hero__badge--1 { top: 4%; left: 0; transform: rotate(-3deg); color: var(--green-dark); border-color: rgba(78,141,91,.22); }
.hero__badge--2 { bottom: 10%; right: 0; transform: rotate(3deg); color: var(--blue); border-color: rgba(56,112,143,.22); }

/* Bandeau « valeurs » statique, sobre */
.valuestrip { background: var(--paper); border-top: var(--hair); border-bottom: var(--hair); padding: 18px 0; }
.valuestrip__row {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: 12px 18px; list-style: none; margin: 0; padding: 0;
}
.valuestrip__row li {
  font-family: var(--font-ui); font-weight: 700; font-size: .82rem; text-transform: uppercase;
  letter-spacing: .1em; color: var(--ink-soft); display: inline-flex; align-items: center;
}
.valuestrip__row li:not(:last-child)::after {
  content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--red);
  margin-left: 18px; opacity: .8;
}

/* ── Cartes & grilles ────────────────────────────────────────────────────── */
.grid { display: grid; gap: 26px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff; border: 1px solid var(--hair); border-radius: var(--r-lg);
  padding: 28px; box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}
.card--lift:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.card__icon {
  width: 60px; height: 60px; border-radius: var(--r-md); display: grid; place-items: center;
  margin-bottom: 14px;
}
.card__icon svg { width: 34px; height: 34px; }
.bg-red   { background: var(--red-soft); }
.bg-green { background: var(--green-soft); }
.bg-blue  { background: var(--blue-soft); }
.bg-pink  { background: var(--pink-soft); }
.card h3 { font-size: 1.4rem; color: var(--ink); }
.card--red   { background: var(--red-dark); color: #fff; border-color: var(--ink); }
.card--red h3 { color: #fff; }

/* Étapes numérotées « comment ça marche »
   Les cartes d'une rangée sont étirées à la hauteur de la plus haute (grille) ;
   les textes, eux, ne font pas le même nombre de lignes et ça change à chaque
   largeur d'écran. À hauteurs de cartes égales, on ne peut pas à la fois aligner
   les débuts de texte ET centrer chaque bloc : centrer fait descendre le texte
   le plus court d'une demi-ligne, et ça se voit tout de suite dans une rangée.
   On aligne donc les trois rangées — pastille, titre, première ligne de texte —
   d'une carte à l'autre ; ce qui diffère, c'est le blanc du bas, où il n'y a
   rien à aligner. La marge morte du dernier paragraphe est supprimée, sinon
   elle rajoutait un vide inutile sous chaque texte.
   Le padding de .card reste symétrique : le neutraliser d'un seul côté
   décalerait tout le contenu centré (pastille, titre, texte) de la moitié de
   ce padding vers ce côté-là. */
.steps { counter-reset: step; }
.step {
  position: relative; text-align: center;
  display: grid; grid-template-rows: auto auto 1fr;
}
.step p { align-self: start; margin: 0; }
.step__num {
  width: 58px; height: 58px; border-radius: var(--r-pill);
  background: var(--red-dark); color: #fff; font-family: var(--font-head); font-weight: 600;
  font-size: 1.6rem; display: grid; place-items: center; margin: 0 auto 14px;
  box-shadow: var(--shadow-sm);
}
.step:nth-child(2) .step__num { background: var(--green-dark); }
.step:nth-child(3) .step__num { background: var(--blue); }
.step:nth-child(4) .step__num { background: var(--pink); color: var(--ink); }
.step h3 { font-size: 1.25rem; }

/* ── Bloc emplacement photo (Camille pointe via le widget) ───────────────── */
.photo {
  position: relative; border-radius: var(--r-lg); overflow: hidden;
  background: var(--cream); background-size: cover; background-position: center;
  border: 1.5px dashed rgba(192,90,46,.35);
  display: grid; place-items: center; text-align: center; padding: 28px; min-height: 250px;
  color: var(--red-dark);
}
.photo__inner { font-family: var(--font-head); font-weight: 500; }
.photo__inner svg { width: 46px; height: 46px; margin: 0 auto 8px; }
.photo__inner small { display: block; font-family: var(--font-body); color: var(--ink-soft); font-weight: normal; }
.photo--tall { min-height: 340px; }
.photo--green { border-color: var(--green); color: var(--green-dark); }
.photo--blue  { border-color: var(--blue); color: var(--blue-dark); }

/* ── Split (texte + visuel) ──────────────────────────────────────────────── */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }
/* Variante alignée en haut : les deux colonnes démarrent sur la même ligne
   (utile quand l'une est un bloc d'infos et l'autre un visuel). */
.split--top { align-items: start; }
.split--reverse .split__media { order: -1; }
.split__media { position: relative; }

/* ── Menu / liste prix ───────────────────────────────────────────────────── */
.menu-list { list-style: none; padding: 0; margin: 0; }
.menu-item {
  display: flex; align-items: baseline; gap: 12px; padding: 12px 0;
  border-bottom: 2px dotted var(--cream-deep);
}
.menu-item:last-child { border-bottom: 0; }
.menu-item__name { font-family: var(--font-head); font-weight: 500; color: var(--ink); min-width: 0; overflow-wrap: anywhere; }
.menu-item__desc { color: var(--ink-soft); font-size: .95rem; }
.menu-item__dots { flex: 1 1 auto; min-width: 18px; border-bottom: 2px dotted var(--cream-deep); transform: translateY(-4px); }
.menu-item__price { font-family: var(--font-head); font-weight: 600; color: var(--red-dark); white-space: nowrap; }

/* ── Tarifs (cartes prix) ────────────────────────────────────────────────── */
.price-card { text-align: center; }
.price-card .price {
  font-family: var(--font-head); font-weight: 600; font-size: 2.6rem; color: var(--red);
  line-height: 1;
}
.price-card .price small { font-size: 1rem; color: var(--ink-soft); font-weight: normal; }
.price-card--feature { background: var(--red-dark); color: #fff; }
.price-card--feature .price, .price-card--feature h3 { color: #fff; }

/* ── Produits boutique ───────────────────────────────────────────────────── */
.product { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.product__media {
  min-height: 200px; display: grid; place-items: center; position: relative;
}
.product__media svg { width: 92px; height: 92px; }
.product__body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1 1 auto; }
.product__body h3 { font-size: 1.25rem; margin-bottom: 4px; }
.product__price { font-family: var(--font-head); font-weight: 600; color: var(--red); font-size: 1.3rem; margin: 4px 0 14px; }
.product__body p { color: var(--ink-soft); font-size: .96rem; flex: 1 1 auto; }
.tag {
  display: inline-block; font-family: var(--font-ui); font-weight: 700; font-size: .8rem;
  text-transform: uppercase; letter-spacing: .04em;
  padding: 3px 12px; border-radius: var(--r-pill); margin-bottom: 8px;
}
.tag--green { background: var(--green-dark); color: #fff; }
.tag--blue  { background: var(--blue); color: #fff; }
.tag--pink  { background: var(--pink); color: var(--ink); }

/* ── Faits / chiffres ────────────────────────────────────────────────────── */
/* Flex plutôt qu'une grille à nombre de colonnes figé : le bandeau se répartit
   sur toute la largeur quel que soit le NOMBRE de chiffres affichés. Un encart
   masqué (.cf-retire) ne laisse donc pas de colonne vide à droite, en ajouter
   un se répartit tout seul, et une ligne incomplète reste centrée. */
.facts { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; text-align: center; }
.facts .fact { flex: 1 1 140px; min-width: 0; }
/* Le chiffre est libre (Camille l'écrit) : « 40+ », « 25 », « 2 semaines »…
   La taille s'adapte donc à la largeur, et une valeur longue passe à la ligne
   au lieu de déborder de sa colonne. */
.fact .fact__num {
  font-family: var(--font-head); font-weight: 600; color: var(--red);
  font-size: clamp(1.5rem, 1rem + 1.9vw, 2.4rem); line-height: 1.05;
  overflow-wrap: break-word; text-wrap: balance;
}
.fact .fact__lbl { font-size: .98rem; color: var(--ink-soft); }
.section--red .fact .fact__num, .section--red .fact .fact__lbl { color: #fff; }

/* ── FAQ (details/summary, sans JS) ──────────────────────────────────────── */
.faq { max-width: 760px; margin: 0 auto; }
.faq details {
  background: #fff; border: 1px solid var(--hair); border-radius: var(--r-md);
  padding: 4px 24px; margin-bottom: 14px; box-shadow: var(--shadow-sm);
}
.faq summary {
  font-family: var(--font-head); font-weight: 500; font-size: 1.12rem; color: var(--ink);
  cursor: pointer; padding: 14px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--red); font-weight: 700; font-size: 1.5rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details[open] summary { color: var(--red); }
.faq p { color: var(--ink-soft); padding-bottom: 6px; margin: 0; }

/* ── Bloc CTA pleine largeur ─────────────────────────────────────────────── */
.cta-band { text-align: center; }
.cta-band h2 { font-size: clamp(2rem, 5vw, 3rem); }
.cta-band .lead { max-width: 600px; margin: 0 auto 1.6em; }

/* ── Infos pratiques ─────────────────────────────────────────────────────── */
/* Les cartes infos occupent toute la largeur : 4 de front sur grand écran,
   puis 2 × 2 et 1 colonne — jamais de carte orpheline en bout de ligne. */
.info-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.info-card { display: flex; gap: 14px; align-items: flex-start; padding: 22px; }
.info-card .card__icon { flex: 0 0 auto; margin: 0; width: 52px; height: 52px; }
.info-card .card__icon svg { width: 28px; height: 28px; }
/* Sans min-width: 0, l'e-mail et les liens longs débordaient de la carte. */
.info-card__body { min-width: 0; }
.info-card h3 { font-size: 1.2rem; margin-bottom: 2px; }
.info-card p { margin: 0; color: var(--ink-soft); font-size: .95rem; overflow-wrap: break-word; }
.hours { list-style: none; padding: 0; margin: 0; }
.hours li { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 2px dotted var(--cream-deep); }
.hours li:last-child { border-bottom: 0; }
.hours .day { font-family: var(--font-head); font-weight: 500; }

/* Tarif unique : une seule carte, centrée et lisible, suivie d'une phrase pour
   l'option « pièce plus grande » (elle tenait une carte entière auparavant). */
.tarif-solo { display: flex; justify-content: center; }
.tarif-solo .card { width: 100%; max-width: 420px; text-align: center; }
.tarif-plus { max-width: 620px; margin: 22px auto 0; text-align: center; }

/* ── Encadré note / placeholder éditorial ────────────────────────────────── */
.note {
  background: var(--blue-soft); border: 1px solid rgba(56,112,143,.22); border-left: 3px solid var(--blue);
  border-radius: var(--r-sm); padding: 16px 20px; color: var(--blue-dark); font-size: .96rem;
}
.note strong { color: var(--blue-dark); }

/* ── Pied de page ────────────────────────────────────────────────────────── */
.site-footer { background: var(--ink); color: #f3e6df; padding: 56px 0 26px; margin-top: 0; }
.site-footer a { color: var(--pink); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 30px; margin-bottom: 34px; }
.footer-grid h4 { font-family: var(--font-head); color: #fff; font-size: 1.1rem; margin-bottom: .6em; }
.footer-brand .brand__name { color: #fff; }
.footer-brand p { color: #d8c6bd; font-size: .96rem; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: #e9d8d0; }
.footer-links a:hover { color: #fff; }
.footer-admin { opacity: .6; }
.footer-admin:hover { opacity: 1; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.16); padding-top: 18px;
  display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: space-between;
  font-size: .86rem; color: #c5b2a9;
}
.footer-bottom a { color: #e9d8d0; }
.social { display: flex; gap: 10px; }
.social a {
  width: 40px; height: 40px; border-radius: var(--r-pill); background: rgba(255,255,255,.1);
  display: grid; place-items: center; color: #fff;
}
.social a:hover { background: var(--red-dark); }
.social svg { width: 20px; height: 20px; }

/* ── Décor : fleurs flottantes ───────────────────────────────────────────────
   Même tracé que le logo (symbole #cf-fleur défini dans la page), coloré par
   `color`. Opaques : à 50 % elles paraissaient délavées / « transparentes ». */
.petal { position: absolute; pointer-events: none; z-index: 0; }
.petal--1 { color: var(--pink); }
.petal--2 { color: var(--green); }
.petal-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.section > .container, .hero > .container { position: relative; z-index: 1; }

/* ── Reveal on scroll (progressive enhancement via main.js) ──────────────────
   Le contenu est visible PAR DÉFAUT : on ne masque (.reveal) que si JS est actif
   (classe .js posée par main.js). Sans JS, tout reste affiché — rien ne disparaît. */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ── Utilitaires ─────────────────────────────────────────────────────────── */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.mt-2 { margin-top: 1.4rem; } .mb-2 { margin-bottom: 1.4rem; }
.mt-3 { margin-top: 2.4rem; } .mb-3 { margin-bottom: 2.4rem; }
.muted { color: var(--ink-soft); }
.pill-tag {
  display: inline-block; font-family: var(--font-ui); font-weight: 700;
  text-transform: uppercase; letter-spacing: .05em;
  background: var(--pink-soft); color: var(--red-dark); padding: 4px 14px; border-radius: var(--r-pill);
  font-size: .9rem; margin-bottom: 10px;
}

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 980px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .info-grid { grid-template-columns: repeat(2, 1fr); }
  .facts { gap: 26px; }
}
@media (max-width: 820px) {
  .hero__grid { grid-template-columns: 1fr; text-align: center; }
  .hero__art { order: -1; }
  /* En une colonne, les deux pastilles n'ont plus de marge de chaque côté de la
     mascotte : elles passaient derrière elle, texte tronqué. On resserre la
     fleur et on plaque les pastilles aux bords, au-dessus d'elle. */
  .mascotte-live { width: min(320px, 66%); }
  .hero__badge { font-size: .98rem; padding: 6px 13px; z-index: 2; }
  .hero__badge--1 { top: 2%; }
  .hero__badge--2 { bottom: 16%; }
  .hero__lead { margin-left: auto; margin-right: auto; }
  .hero .btn-row { justify-content: center; }
  .split, .grid--3, .grid--2 { grid-template-columns: 1fr; }
  .split--reverse .split__media { order: 0; }
  /* Hero en une colonne : les boutons prennent toute la largeur et la fleur du
     bas se retrouvait cachée derrière, un simple liseré vert qui dépasse. */
  .hero .petal--2 { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .section { padding: 54px 0; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .grid--4 { grid-template-columns: 1fr; }
  .info-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .btn { width: 100%; justify-content: center; }
  .btn-row { width: 100%; }
  .nav-cta.btn { width: auto; }
}

/* ══════════════════════════════════════════════════════════════════════════
   MODERNISATION — animations & motifs dynamiques (respect de la charte)
   Tout est CSS (compatible CSP) et désactivé si prefers-reduced-motion.
   ══════════════════════════════════════════════════════════════════════════ */

/* Hero : dégradé doux + très léger motif fleuri (sobre) */
.hero {
  background-color: var(--cream);
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='72' viewBox='0 0 64 64'%3E%3Cg fill='%23EC1C25' opacity='0.035'%3E%3Cellipse cx='32' cy='18' rx='5' ry='8'/%3E%3Cellipse cx='32' cy='46' rx='5' ry='8'/%3E%3Cellipse cx='18' cy='32' rx='8' ry='5'/%3E%3Cellipse cx='46' cy='32' rx='8' ry='5'/%3E%3Ccircle cx='32' cy='32' r='3.4' fill='%230DA152'/%3E%3C/g%3E%3C/svg%3E"),
    radial-gradient(1200px 520px at 12% 0%, rgba(217,154,126,.30), transparent 60%),
    radial-gradient(900px 480px at 92% 8%, rgba(78,141,91,.12), transparent 55%),
    radial-gradient(900px 520px at 78% 100%, rgba(56,112,143,.10), transparent 60%);
  background-size: 132px 132px, cover, cover, cover;
}

/* Keyframes */
@keyframes mn-float   { 0%,100% { transform: translateY(0) rotate(var(--rot,0deg)); } 50% { transform: translateY(-16px) rotate(calc(var(--rot,0deg) + 6deg)); } }
@keyframes cf-balance { from { transform: rotate(-1.6deg); } to { transform: rotate(1.6deg); } }
@keyframes cf-flotte  { from { transform: translateY(4px); }  to { transform: translateY(-8px); } }
@keyframes mn-spin    { to { transform: rotate(360deg); } }
@keyframes mn-heroIn  { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes mn-pop     { 0% { transform: scale(.7); opacity: 0; } 60% { transform: scale(1.04); } 100% { transform: scale(1); opacity: 1; } }

/* Le gros des effets : uniquement si l'utilisateur accepte le mouvement */
@media (prefers-reduced-motion: no-preference) {

  /* Fleurs flottantes du hero */
  .petal { animation: mn-float 7s ease-in-out infinite; }
  .hero .petal--1 { --rot: -4deg; animation-duration: 8s; }
  .hero .petal--2 { --rot: 5deg;  animation-duration: 6.5s; animation-delay: -2s; }

  /* La mascotte vit en permanence : elle se balance ET flotte, sur deux
     calques distincts et à des durées premières entre elles — le cycle ne
     se laisse donc pas repérer à l'œil. Les yeux suivent, ils sont dedans. */
  .mascotte-live { animation: cf-balance 6.1s ease-in-out infinite alternate; }
  .mascotte-flot { animation: cf-flotte 4.3s ease-in-out infinite alternate; }

  /* Entrée du hero au chargement (sans JS) */
  .hero__copy > *, .hero__art { animation: mn-heroIn .75s both; }
  .hero__copy > *:nth-child(1) { animation-delay: .02s; }
  .hero__copy > *:nth-child(2) { animation-delay: .10s; }
  .hero__copy > *:nth-child(3) { animation-delay: .18s; }
  .hero__copy > *:nth-child(4) { animation-delay: .26s; }
  .hero__art { animation-delay: .12s; }

  /* Badges qui « pop » */
  .hero__badge { animation: mn-pop .5s both; }
  .hero__badge--1 { animation-delay: .5s; }
  .hero__badge--2 { animation-delay: .68s; }

  /* Réapparition échelonnée dans les grilles */
  .grid > .reveal:nth-child(2) { transition-delay: .07s; }
  .grid > .reveal:nth-child(3) { transition-delay: .14s; }
  .grid > .reveal:nth-child(4) { transition-delay: .21s; }
  .grid > .reveal:nth-child(5) { transition-delay: .28s; }
  .grid > .reveal:nth-child(6) { transition-delay: .35s; }

  /* Reveal latéral pour les sections « split » */
  .js .split > .reveal:nth-child(1) { transform: translateX(-26px); }
  .js .split > .reveal:nth-child(2) { transform: translateX(26px); }
  .js .split > .reveal.is-in { transform: none; }
}

/* Boutons : reflet qui balaie au survol */
.btn { position: relative; overflow: hidden; isolation: isolate; }
.btn::after {
  content: ""; position: absolute; top: 0; left: -120%; width: 60%; height: 100%; z-index: -1;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.45), transparent);
  transform: skewX(-18deg); transition: left .55s ease;
}
.btn:hover::after { left: 130%; }

/* Cartes : l'icône s'anime discrètement au survol */
.card--lift .card__icon { transition: transform .25s ease; }
.card--lift:hover .card__icon { transform: rotate(-4deg) scale(1.05); }
.product:hover .product__media svg { transform: scale(1.06) rotate(-3deg); transition: transform .3s ease; }
.product__media svg { transition: transform .3s ease; }

/* Liens de nav : soulignage animé */
.nav-links a { position: relative; }
.nav-links a:not(.btn)::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2.5px;
  background: var(--red); border-radius: 2px; transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
.nav-links a:not(.btn):hover::after, .nav-links a[aria-current="page"]:not(.btn)::after { transform: scaleX(1); }
.nav-links a:hover { background: transparent; }

/* Numéro d'étape : léger zoom au survol */
.step__num { position: relative; transition: transform .25s ease; }
.step:hover .step__num { transform: scale(1.06); }

/* Liens de pied de page : petit décalage au survol */
.footer-links a { transition: padding-left .2s ease, color .2s ease; }
.footer-links a:hover { padding-left: 5px; }

/* ── Mode édition (barre + états) ────────────────────────────────────────── */
.cf-bar {
  position: fixed; left: 18px; bottom: 18px; z-index: 2147483646;
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  background: #fff; border: 1px solid var(--hair); box-shadow: var(--shadow-md);
  border-radius: var(--r-pill); padding: 8px 10px; max-width: calc(100vw - 36px);
}
.cf-btn {
  font-family: var(--font-ui); font-weight: 700; font-size: .9rem; border: none;
  border-radius: var(--r-pill); padding: 9px 16px; cursor: pointer;
  background: #efe7dc; color: var(--ink); transition: filter .15s ease;
}
.cf-btn:hover { filter: brightness(.96); }
.cf-btn:disabled { opacity: .45; cursor: default; }
.cf-btn:disabled:hover { filter: none; }
.cf-btn--main { background: var(--red-dark); color: #fff; }
.cf-btn--save { background: var(--green-dark); color: #fff; display: none; }
.cf-btn--cancel, .cf-btn--ghost { display: none; }
/* Libellés longs (desktop) / courts (mobile) */
.cf-lab-s { display: none; }
/* « Annuler / Réinitialiser » : rangés dans une boîte transparente sur desktop,
   repliés derrière « ⋯ » sur mobile (voir media query éditeur) */
.cf-more-box { display: contents; }
.cf-more-toggle { display: none; }
.cf-note { font-size: .82rem; color: var(--ink-soft); max-width: 250px; }
.cf-editing .cf-btn--main { display: none; }
.cf-editing .cf-btn--save,
.cf-editing .cf-btn--cancel,
.cf-editing .cf-btn--ghost { display: inline-block; }
.cf-style-toggle.cf-on, .cf-vers-toggle.cf-on { background: var(--blue); color: #fff; }

.cf-editing #main [contenteditable] {
  outline: 2px dashed rgba(56,112,143,.5); outline-offset: 3px; border-radius: 4px;
  cursor: text; transition: background .15s ease;
}
.cf-editing #main [contenteditable]:hover { background: rgba(56,112,143,.06); }
.cf-editing #main [contenteditable]:focus { outline: 2px solid var(--blue); background: rgba(56,112,143,.09); }

.cf-editing .photo { cursor: pointer; outline: 2px dashed rgba(78,141,91,.6); outline-offset: 3px; }
.cf-editing .photo::after {
  content: "Cliquez ou glissez une photo"; position: absolute; left: 0; right: 0; bottom: 0;
  background: rgba(78,141,91,.92); color: #fff; font-family: var(--font-ui); font-weight: 700;
  font-size: .76rem; letter-spacing: .02em; padding: 7px; text-align: center; z-index: 3;
}
.photo.cf-drop { outline: 3px solid var(--green); }
.photo.cf-has-photo { border-style: solid; border-color: transparent; color: transparent; }
.photo.cf-has-photo .photo__inner { display: none; }

/* ── Blocs ajoutés par Camille (texte, photo, carte de menu, question FAQ) ─
   Rendu public : ils doivent passer pour du contenu d'origine. Les outils
   d'ajout et de réglage n'existent visuellement qu'en mode édition. */
.cf-blocks { display: block; }
.cf-block { position: relative; }
.cf-block--text {
  max-width: 760px; margin: 26px auto 0; text-align: center;
}
.cf-block--text .cf-block__title {
  font-family: var(--font-head); font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  color: var(--red-dark); margin: 0 0 .35em; line-height: 1.1;
}
.cf-block--text .cf-block__body { color: var(--ink-soft); line-height: 1.75; }
.cf-block--photo { max-width: 760px; margin: 26px auto 0; }
.cf-block--photo .cf-block__photo { min-height: 260px; }
.cf-block__cap {
  font-family: var(--font-ui); font-size: .85rem; color: var(--ink-soft);
  text-align: center; margin-top: 10px;
}
.faq .cf-blocks .cf-block--faq { margin-top: 0; }

/* Cartes de menu ajoutées : même rendu que les cartes du HTML d'origine.
   Celles qui se suivent forment une rangée (3 par ligne au large, comme
   .grid--3), les lignes non renseignées n'existent que pour Camille. */
/* auto-FILL (et non auto-fit) : une carte seule garde la largeur d'une carte
   de la rangée d'origine au lieu de s'étirer sur toute la page. */
.cf-mgrid {
  display: grid; gap: 26px; margin-top: 26px; align-items: start;
  grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr));
}
.cf-block--menu .cf-block__title { margin: 0 0 .2em; }
.cf-block--menu .cf-block__note { margin: 0 0 .4em; }
body:not(.cf-editing) .cf-block--menu .cf-mrow--fin { border-bottom: 0; }
.cf-block--menu .cf-mrow--libre { display: none; }
.cf-editing .cf-block--menu .cf-mrow--libre { display: flex; }
/* Un champ vide n'a rien à cliquer : on lui laisse une amorce, qui disparaît
   d'elle-même dès le premier caractère tapé. */
.cf-editing .cf-block--menu .menu-item__name:empty::before { content: "Nom du plat"; opacity: .5; }
.cf-editing .cf-block--menu .menu-item__price:empty::before { content: "Prix"; opacity: .5; }

/* ── Contenus pas encore renseignés (cf. main.js § « contenus non renseignés »)
   Même principe que .cf-mrow--libre juste au-dessus, mais pour les blocs du
   HTML d'origine : une ligne de carte sans nom ni prix, une carte entière
   vide, une section de menus à compléter, une question de FAQ sans réponse.
   La classe est posée DANS le HTML — le visiteur sans JavaScript ne voit donc
   jamais un « À compléter » — et main.js la retire dès que le contenu publié
   remplit le bloc, ou dès que Camille passe en mode édition (elle doit voir
   les emplacements pour les remplir).
   `!important` assumé : c'est un interrupteur de visibilité, il doit gagner
   contre les display: des trois ambiances et des variantes data-cv. */
.cf-vide { display: none !important; }

/* Bloc retiré du site public à la demande de Camille, mais CONSERVÉ dans le
   HTML : le retirer pour de bon décalerait la numérotation data-ek de tous les
   contenus publiés qui le suivent (cf. CONTENT-NOTES.md). Pour le remettre :
   enlever la classe cf-retire. */
.cf-retire { display: none !important; }

/* Barre « Ajouter ici » — visible seulement en mode édition (jamais publique) */
.cf-zadd { display: none; }
.cf-editing .cf-zadd {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  flex-wrap: wrap; margin: 26px auto 0; padding: 12px;
  border: 2px dashed rgba(78,141,91,.45); border-radius: var(--r-md);
  max-width: 760px;
}
.cf-zadd-lbl { font-family: var(--font-ui); font-size: .8rem; color: var(--ink-soft); }
.cf-zbtn {
  font-family: var(--font-ui); font-weight: 700; font-size: .85rem; cursor: pointer;
  border: none; border-radius: var(--r-pill); padding: 8px 15px;
  background: var(--green-dark); color: #fff;
}
.cf-zbtn:hover { filter: brightness(1.08); }

/* Boutons ↑ ↓ 🗑 d'un bloc ajouté */
.cf-bctl { display: none; }
.cf-editing .cf-bctl {
  display: flex; gap: 4px; position: absolute; top: -14px; right: 0; z-index: 4;
  background: #fff; border: 1px solid rgba(58,39,36,.18); border-radius: var(--r-pill);
  padding: 3px 5px; box-shadow: var(--shadow-sm);
}
/* Couleurs fixes : la pastille reste blanche même en ambiance sombre. */
.cf-bico {
  border: none; background: transparent; cursor: pointer; font-size: .95rem;
  line-height: 1; padding: 4px 6px; border-radius: 50%; color: #3a2724;
}
.cf-bico:hover { background: #f1e9de; }
.cf-editing .cf-block { outline: 1px dashed rgba(78,141,91,.35); outline-offset: 10px; }
/* En mode « 🎨 Changer le style », on ne montre que les styles : pas d'ajout. */
.cf-style .cf-zadd, .cf-style .cf-bctl { display: none; }
.cf-style .cf-block { outline: none; }

/* Mobile : révélation verticale pour les « split » (évite tout débord horizontal) */
@media (max-width: 820px) {
  .js .split > .reveal:nth-child(1),
  .js .split > .reveal:nth-child(2) { transform: translateY(22px); }
  .js .split > .reveal.is-in { transform: none; }
}

/* ── Tuto interactif (onboarding guidé) ──────────────────────────────────── */
.cf-tour-ov   { position: fixed; inset: 0; z-index: 2147483640; background: transparent; }
.cf-tour-spot {
  position: fixed; border-radius: 14px; pointer-events: none; z-index: 2147483642;
  box-shadow: 0 0 0 9999px rgba(43,28,25,.62), 0 0 0 3px rgba(255,255,255,.9);
  transition: left .3s ease, top .3s ease, width .3s ease, height .3s ease;
}
.cf-tour-tip {
  position: fixed; z-index: 2147483644; width: min(360px, calc(100vw - 32px));
  background: #fff; border-radius: 18px; box-shadow: 0 24px 60px rgba(0,0,0,.32);
  padding: 20px 20px 16px; font-family: var(--font-body); color: var(--ink);
  transition: left .25s ease, top .25s ease;
}
.cf-tour-tip h4 { font-family: var(--font-head); color: var(--red); font-size: 1.55rem; margin: 2px 0 .35em; line-height: 1.05; }
.cf-tour-tip p  { margin: 0 0 14px; font-size: .97rem; line-height: 1.55; color: var(--ink); }
.cf-tour-tip p b { color: var(--ink); }
.cf-tour-step { font-family: var(--font-ui); font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); }
.cf-tour-x { position: absolute; top: 10px; right: 12px; border: none; background: transparent; font-size: 1.4rem; line-height: 1; cursor: pointer; color: var(--ink-soft); }
.cf-tour-x:hover { color: var(--red); }
.cf-tour-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.cf-tour-actions { display: flex; gap: 8px; }
.cf-tour-btn { font-family: var(--font-ui); font-weight: 700; font-size: .9rem; border: none; border-radius: 999px; padding: 9px 17px; cursor: pointer; background: #efe7dc; color: var(--ink); }
.cf-tour-btn:hover { filter: brightness(.96); }
.cf-tour-btn--next { background: var(--red-dark); color: #fff; }
.cf-tour-never { font-family: var(--font-ui); font-size: .8rem; color: var(--ink-soft); background: none; border: none; cursor: pointer; text-decoration: underline; padding: 0; }
.cf-tour-never:hover { color: var(--red); }
/* pendant le tuto, la barre d'édition et le bouton de feedback repassent sous le voile */
.cf-touring .cf-bar { z-index: 5 !important; }
.cf-touring .ec-fbw-fab { z-index: 5 !important; }
/* petit bouton « ? » pour relancer le tuto (ajouté dans la barre d'édition) */
.cf-help { background: var(--blue) !important; color: #fff !important; width: 34px; padding: 9px 0 !important; text-align: center; }
@media (prefers-reduced-motion: reduce) { .cf-tour-spot, .cf-tour-tip { transition: none; } }

/* ══════════════════════════════════════════════════════════════════════════
   VARIANTES DE STYLE PAR ÉLÉMENT (data-cv = 0..4)
   5 styles propres et fidèles à la charte par catégorie ; cv=0 = défaut.
   Choisis en mode « 🎨 Changer le style » (sélection au clic + panneau),
   figés pour tous les visiteurs. Chaque variante a un nom FR dans main.js.
   ══════════════════════════════════════════════════════════════════════════ */

/* ── Titres ── */
.title[data-cv="1"] { color: var(--green); }
.title[data-cv="2"] { color: var(--blue); }
.title[data-cv="3"] {
  display: inline-block; background: var(--pink-soft);
  padding: .04em .3em; border-radius: 12px; color: var(--red);
}
.title[data-cv="4"] { color: var(--red); }
.title[data-cv="4"]::after {
  content: ""; display: block; width: 56px; height: 5px; border-radius: 5px;
  background: var(--green); margin-top: .25em;
}
.section-head .title[data-cv="4"]::after { margin-left: auto; margin-right: auto; }

/* ── Sous-titres (kicker) ── */
.kicker[data-cv="1"] { color: var(--red); }
.kicker[data-cv="2"] { color: var(--blue); }
.kicker[data-cv="3"] {
  background: var(--red-dark); color: #fff; padding: 3px 12px; border-radius: var(--r-pill);
}
.kicker[data-cv="3"]::after { display: none; }
.kicker[data-cv="4"] { font-style: normal; letter-spacing: .26em; }

/* ── Boutons (forme/effet, indépendant de la couleur) ── */
.btn[data-cv="1"] { border-radius: 12px; }
.btn[data-cv="2"]::before { content: ""; }
.btn[data-cv="2"]::after { content: "→"; font-weight: 700; margin-left: .1em; }
.btn[data-cv="3"] { text-transform: uppercase; letter-spacing: .08em; font-size: .92rem; }
.btn[data-cv="4"] { box-shadow: 0 5px 0 rgba(0,0,0,.16); }
.btn[data-cv="4"]:hover { transform: translateY(-2px); box-shadow: 0 8px 0 rgba(0,0,0,.16); }

/* ── Cartes ── */
.card[data-cv="1"] { border-color: transparent; box-shadow: var(--shadow-md); }
.card[data-cv="2"] { background: var(--cream); }
.card[data-cv="3"] { border-top: 4px solid var(--red); }
.card[data-cv="4"] { border: 2px solid var(--red); border-radius: var(--r-xl); box-shadow: none; }

/* ── Emplacements / cadres photo ── */
.photo[data-cv="1"] { border-style: solid; border-color: var(--hair); }
.photo[data-cv="2"] {
  border: 10px solid #fff; box-shadow: var(--shadow-md); border-radius: 8px;
}
.photo[data-cv="3"] { border-radius: 36px; }
.photo[data-cv="4"] { border: 3px solid var(--green); border-style: solid; }

/* ── Sections (fond/déco, contrastes sûrs) ── */
.section[data-cv="1"] {
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='72' viewBox='0 0 64 64'%3E%3Cg fill='%23EC1C25' opacity='0.05'%3E%3Cellipse cx='32' cy='18' rx='5' ry='8'/%3E%3Cellipse cx='32' cy='46' rx='5' ry='8'/%3E%3Cellipse cx='18' cy='32' rx='8' ry='5'/%3E%3Cellipse cx='46' cy='32' rx='8' ry='5'/%3E%3Ccircle cx='32' cy='32' r='3.4' fill='%230DA152'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 132px 132px;
}
.section[data-cv="2"] { background-image: radial-gradient(900px 420px at 15% 0%, rgba(217,154,126,.30), transparent 60%), radial-gradient(800px 420px at 88% 100%, rgba(78,141,91,.12), transparent 60%); }
.section[data-cv="3"] { background-color: var(--cream); background-image: none; }
.section[data-cv="4"] { background-color: var(--paper); box-shadow: inset 0 6px 0 var(--red); }

/* ══════════════════════════════════════════════════════════════════════════
   MODE « 🎨 CHANGER LE STYLE » — sélection au clic + panneau latéral
   (le contrôle flottant au survol ‹ N/5 › est supprimé)
   ══════════════════════════════════════════════════════════════════════════ */

/* En mode Style, l'habillage « photo » du mode textes est neutralisé */
body.cf-style.cf-editing #main .photo { outline: none; cursor: pointer; }
body.cf-style.cf-editing #main .photo::after { display: none; }

/* Repérage au survol (liseré pointillé) et sélection au clic (liseré plein
   + halo crème). La sélection survit au scroll et au mouvement de souris. */
.cf-style #main [data-vk] {
  cursor: pointer;
  scroll-margin: 90px 340px 90px 20px; /* garde l'élément visible à côté du panneau */
}
.cf-style #main [data-vk].cf-hover,
.cf-style #main [data-vk]:focus-visible {
  outline: 2px dashed var(--blue); outline-offset: 3px;
}
.cf-style #main [data-vk].cf-sel {
  outline: 3px solid var(--blue); outline-offset: 3px;
  box-shadow: 0 0 0 7px rgba(253, 237, 213, .85);
}
.cf-style #main [data-vk].cf-sel-out { /* fondu de sortie du liseré (~150 ms) */
  outline: 3px solid transparent; outline-offset: 3px;
  box-shadow: 0 0 0 7px transparent;
  transition: outline-color .15s ease, box-shadow .15s ease;
}

/* Pastille « style personnalisé » : point rose (cœur brun), coin haut-droit,
   visible en permanence en mode Style sur tout élément retouché. */
.cf-style #main .cf-custom { position: relative; }
.cf-style #main .cf-custom::before {
  content: ""; position: absolute; top: 6px; right: 6px; z-index: 5;
  width: 14px; height: 14px; border-radius: 50%;
  background: radial-gradient(circle, var(--ink) 0 3px, var(--pink) 3px 100%);
  box-shadow: 0 0 0 2px #fff;
  pointer-events: none;
}

/* Étiquette « nom humain » (Titre, Bouton…) posée au coin de l'élément */
.cf-eltag {
  position: fixed; z-index: 2147483638; display: none;
  background: var(--blue); color: #fff;
  font: 700 12px/1 var(--font-ui);
  padding: 5px 9px; border-radius: 7px 7px 7px 0;
  box-shadow: var(--shadow-sm); pointer-events: none;
  max-width: 60vw; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cf-eltag.cf-show { display: block; }
.cf-eltag--sel { background: var(--blue-dark); }

/* ── Panneau de style (aside fixe à droite, 320 px) ──────────────────────── */
.cf-panel, .cf-vpanel {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 2147483632;
  width: 320px; display: none; flex-direction: column;
  background: var(--paper); color: var(--ink); font-family: var(--font-body);
  border-left: 1px solid var(--hair); border-top: 4px solid var(--pink);
  border-radius: 16px 0 0 16px; box-shadow: -18px 0 44px rgba(58, 39, 36, .14);
}
.cf-vpanel { width: 340px; z-index: 2147483634; }
.cf-panel.cf-open, .cf-vpanel.cf-open { display: flex; }
@media (prefers-reduced-motion: no-preference) {
  .cf-panel.cf-open, .cf-vpanel.cf-open { animation: cf-slide-in .2s ease; }
}
@keyframes cf-slide-in { from { transform: translateX(48px); opacity: 0; } }

/* La page se décale : le panneau ne recouvre jamais l'élément sélectionné */
body.cf-style-open { padding-right: 320px; }
body.cf-vers-open, body.cf-hero-open { padding-right: 340px; }
/* … et le bouton « Demander une modification » n'est pas recouvert non plus */
body.cf-style-open .ec-fbw-fab { right: 338px !important; }
body.cf-vers-open .ec-fbw-fab, body.cf-hero-open .ec-fbw-fab { right: 358px !important; }

.cf-grip { display: none; }
.cf-p-head {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 14px 16px 10px; border-bottom: 1px solid var(--hair);
}
.cf-p-titles { min-width: 0; }
.cf-p-title { font-family: var(--font-head); font-size: 1.35rem; line-height: 1.15; color: var(--ink); overflow-wrap: anywhere; }
.cf-p-sub { display: block; font-size: .85rem; font-style: italic; color: var(--ink-soft); margin-top: 2px; overflow-wrap: anywhere; }
.cf-p-close {
  margin-left: auto; flex: 0 0 auto; width: 36px; height: 36px;
  border: none; border-radius: 50%; background: #efe7dc; color: var(--ink);
  font-size: 1rem; font-weight: 700; cursor: pointer;
}
.cf-p-close:hover { filter: brightness(.95); }
.cf-p-body { flex: 1 1 auto; overflow-y: auto; padding: 14px 16px 22px; }
.cf-p-help { font-size: .95rem; color: var(--ink-soft); margin: 0 0 14px; }

/* Fil d'Ariane des éléments imbriqués (Section › Carte › Bouton) */
.cf-crumb {
  display: flex; flex-wrap: wrap; align-items: center; gap: 2px;
  margin: 0 0 10px; font-family: var(--font-ui); font-size: .82rem; font-weight: 700;
  color: var(--ink-soft);
}
.cf-crumb button {
  border: none; background: none; color: var(--blue); font: inherit;
  text-decoration: underline; cursor: pointer; padding: 8px 4px; min-height: 36px;
}
.cf-crumb .cf-crumb-sep { opacity: .6; padding: 0 2px; }
.cf-crumb .cf-crumb-cur { color: var(--ink); padding: 0 4px; }

/* Ligne d'état + badges */
.cf-state { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; font-size: .9rem; }
.cf-badge {
  font: 700 .72rem/1 var(--font-ui); text-transform: uppercase; letter-spacing: .06em;
  padding: 5px 10px; border-radius: var(--r-pill); background: #efe7dc; color: var(--ink-soft);
}
.cf-badge--custom { background: var(--pink); color: var(--ink); }
.cf-badge--auto { text-transform: none; letter-spacing: 0; margin-left: 8px; }

/* Chips verticales des styles nommés */
.cf-chips { display: flex; flex-direction: column; gap: 8px; margin: 0 0 12px; }
.cf-chip {
  display: flex; align-items: center; gap: 10px; width: 100%; min-height: 52px;
  padding: 8px 12px; border: 1.5px solid var(--cream-deep); border-radius: 14px;
  background: #fff; color: var(--ink); font-family: var(--font-body); font-size: 1rem;
  text-align: left; cursor: pointer;
}
.cf-chip:hover { border-color: var(--pink); }
.cf-chip--on { background: var(--cream); border-color: var(--green-dark); }
.cf-chip-name { flex: 1 1 auto; min-width: 0; }
.cf-chip-check { color: var(--green-dark); font-weight: 700; font-size: 1.15rem; }
.cf-chip-org { font-size: .78rem; color: var(--ink-soft); white-space: nowrap; }

/* Pastille-aperçu : mini-réplique 100 % CSS qui réutilise les vraies classes
   (.title/.btn/.card/… + data-cv), donc hérite du rendu de l'ambiance active. */
.cf-mini {
  flex: 0 0 auto; width: 40px; height: 40px; border-radius: 8px;
  background: var(--cream); border: 1px solid var(--hair);
  display: grid; place-items: center; overflow: hidden;
}
.cf-mini, .cf-mini * { pointer-events: none; }
.cf-mini .title { font-size: 15px; line-height: 1.2; margin: 0; padding: 0 3px; }
.cf-mini .title[data-cv="4"]::after { width: 14px; height: 3px; margin-top: 2px; }
.cf-mini .kicker { font-size: 10px; letter-spacing: .06em; margin: 0; padding: 1px 5px; }
.cf-mini .kicker[data-cv="4"] { letter-spacing: .18em; }
.cf-mini .kicker::after { display: none; }
.cf-mini .btn { width: 26px; height: 14px; min-height: 0; padding: 0; font-size: 6px; }
.cf-mini .btn::before, .cf-mini .btn::after { display: none; }
.cf-mini .card { width: 28px; height: 20px; padding: 0; border-radius: 6px; }
.cf-mini .photo {
  width: 28px; height: 20px; min-height: 0; padding: 0; border-radius: 6px;
  outline: none !important;
}
.cf-mini .photo::after { display: none !important; }
.cf-mini .photo[data-cv="2"] { border-width: 3px; border-radius: 3px; }
.cf-mini .photo[data-cv="3"] { border-radius: 10px; }
.cf-mini .section {
  width: 30px; height: 22px; padding: 0; border-radius: 4px;
  background-color: var(--paper); border: 1px solid var(--hair);
  background-size: 30px 30px !important;
}
.cf-mini .section[data-cv="4"] { box-shadow: inset 0 3px 0 var(--red); }

/* « Remettre le style d'origine » + « ↩ Annuler » (mobile) */
.cf-reset {
  display: block; border: none; background: none; color: var(--blue-dark);
  text-decoration: underline; cursor: pointer; font-size: .92rem;
  padding: 10px 0; min-height: 44px; text-align: left;
}
.cf-undo {
  display: block; width: 100%; min-height: 48px; margin: 0 0 10px;
  border: none; border-radius: 12px; background: var(--ink); color: #fff;
  font: 700 1rem var(--font-ui); cursor: pointer;
}

/* Astuce (versions) */
.cf-tip {
  font-size: .85rem; color: var(--ink-soft); background: var(--pink-soft);
  border-radius: 10px; padding: 10px 12px; margin: 4px 0 14px;
}

/* ── Cartes « Ambiance du site » ─────────────────────────────────────────── */
.cf-amb {
  display: flex; flex-direction: column; align-items: stretch; gap: 6px;
  width: 100%; padding: 12px; margin: 0 0 10px;
  border: 1.5px solid var(--cream-deep); border-radius: 14px; background: #fff;
  color: var(--ink); font-family: var(--font-body); text-align: left; cursor: pointer;
}
.cf-amb:hover { border-color: var(--pink); }
.cf-amb--cur { background: var(--cream); border-color: var(--green-dark); }
.cf-amb-name { font-family: var(--font-head); font-size: 1.25rem; }
.cf-amb-desc { font-size: .9rem; color: var(--ink-soft); }
.cf-amb-badge {
  align-self: flex-start; font: 700 .72rem/1 var(--font-ui); text-transform: uppercase;
  letter-spacing: .05em; padding: 5px 10px; border-radius: var(--r-pill);
  background: var(--green-dark); color: #fff;
}

/* Vignettes 100 % CSS : mini-page abstraite aux couleurs de chaque ambiance */
.cf-thumb {
  display: flex; flex-direction: column; width: 100%; height: 64px;
  border-radius: 10px; overflow: hidden; border: 1px solid var(--hair);
}
.cf-thumb i { display: block; flex: 1 1 auto; }
.cf-thumb--sm { width: 46px; height: 36px; flex: 0 0 auto; border-radius: 7px; }
.cf-thumb--douceur i:nth-child(1) { flex: 0 0 24%; background: var(--cream); border-bottom: 2px solid var(--red); }
.cf-thumb--douceur i:nth-child(2) { background: var(--pink-soft); }
.cf-thumb--douceur i:nth-child(3) { background: var(--paper); }
.cf-thumb--veillee i:nth-child(1) { flex: 0 0 24%; background: #2b1c19; border-bottom: 2px solid var(--pink); }
.cf-thumb--veillee i:nth-child(2) { background: #4a332e; }
.cf-thumb--veillee i:nth-child(3) { background: var(--ink); }
.cf-thumb--affiche i:nth-child(1) { flex: 0 0 28%; background: var(--red); }
.cf-thumb--affiche i:nth-child(2) { background: repeating-linear-gradient(45deg, #fff 0 6px, var(--cream) 6px 12px); }
.cf-thumb--affiche i:nth-child(3) { flex: 0 0 28%; background: var(--green-dark); }

/* Vignettes du « ☕ Bloc d'accueil » : mêmes cartes .cf-amb, mais l'aperçu est
   un petit dessin (les trois <i> deviennent des formes posées) plutôt que des
   bandes de couleur — on doit reconnaître d'un coup d'œil lequel est lequel. */
.cf-thumb--hero { position: relative; background: var(--cream); display: block; }
.cf-thumb--hero i { position: absolute; }
.cf-thumb--hero-mascotte i:nth-child(1) {
  left: 50%; bottom: 8px; width: 4px; height: 22px; margin-left: -2px;
  border-radius: 2px; background: var(--green-dark);
}
.cf-thumb--hero-mascotte i:nth-child(2) {
  left: 50%; top: 10px; width: 28px; height: 28px; margin-left: -14px; border-radius: 50%;
  background: radial-gradient(circle, var(--cream) 0 6px, var(--pink) 6px 100%);
}
/* petite feuille sur la tige */
.cf-thumb--hero-mascotte i:nth-child(1)::after {
  content: ""; position: absolute; left: 3px; top: 6px; width: 11px; height: 7px;
  background: var(--green-dark); border-radius: 60% 10% 60% 10%;
}
.cf-thumb--hero-mascotte i:nth-child(3) { left: 0; right: 0; bottom: 0; height: 8px; background: var(--cream-deep); }
.cf-thumb--hero-photo i:nth-child(1) {
  inset: 6px; border: 2px solid #fff; border-radius: 6px;
  background: linear-gradient(var(--blue-soft), var(--pink-soft));
}
.cf-thumb--hero-photo i:nth-child(2) {
  left: 8px; right: 8px; bottom: 8px; height: 20px;
  background: var(--green); border-radius: 44% 56% 4px 4px;
}
.cf-thumb--hero-photo i:nth-child(3) { right: 16px; top: 13px; width: 12px; height: 12px; border-radius: 50%; background: var(--red); }
.cf-thumb--hero-jeu i:nth-child(1) {
  left: 50%; bottom: 10px; width: 32px; height: 34px; margin-left: -16px;
  background: #fff; border: 2px solid var(--ink); border-radius: 4px 4px 13px 13px;
}
/* l'anse de la tasse */
.cf-thumb--hero-jeu i:nth-child(1)::after {
  content: ""; position: absolute; right: -13px; top: 5px; width: 13px; height: 15px;
  border: 2px solid var(--ink); border-left: none; border-radius: 0 9px 9px 0;
}
.cf-thumb--hero-jeu i:nth-child(2) {
  left: 50%; bottom: 13px; width: 26px; height: 13px; margin-left: -13px;
  border-radius: 7px; background: var(--red);
}
.cf-thumb--hero-jeu i:nth-child(3) {
  right: 12px; top: 8px; width: 6px; height: 26px; border-radius: 3px;
  background: var(--blue); transform: rotate(22deg);
}

/* Panneau « Bloc d'accueil » : même gabarit que « Mes versions » */
.cf-hpanel .cf-hero-acts { display: flex; flex-wrap: wrap; gap: 8px; margin: 2px 0 14px; }
.cf-hero-acts button {
  border: 1.5px solid var(--cream-deep); border-radius: var(--r-pill); background: #fff;
  color: var(--ink); font: 700 .88rem var(--font-ui); padding: 9px 14px; min-height: 40px; cursor: pointer;
}
.cf-hero-acts button:hover { border-color: var(--pink); }
.cf-hero-acts button.cf-hero-del { color: var(--red-dark); }

/* ── Bandeaux hauts : essayage d'ambiance (bleu) & aperçu de version (orangé) */
.cf-tryband, .cf-pvband {
  position: fixed; top: 0; left: 0; right: 0; z-index: 2147483636;
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap;
  gap: 8px 14px; padding: 9px 14px;
  font: 700 .95rem var(--font-ui);
}
.cf-tryband { background: var(--blue); color: #fff; display: none; }
.cf-tryband.cf-show { display: flex; }
.cf-pvband { background: #a44a10; color: #fff; }
.cf-band-lbl { max-width: 100%; overflow-wrap: anywhere; }
.cf-bandbtn {
  border: 1.5px solid rgba(255, 255, 255, .65); border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .16); color: #fff;
  font: 700 .9rem var(--font-ui); padding: 8px 16px; min-height: 38px; cursor: pointer;
}
.cf-bandbtn:hover { background: rgba(255, 255, 255, .28); }
.cf-bandbtn--ok { background: #fff; border-color: #fff; color: var(--blue-dark); }
.cf-pvband .cf-bandbtn--ok { color: #8a3c05; }
/* la page (et son en-tête collant) descendent sous le bandeau */
body.cf-try, body.cf-apercu { padding-top: 54px; }
body.cf-try .site-header, body.cf-apercu .site-header { top: 54px; }

/* Bascule « Comparer » */
.cf-cmp-lbl { font-weight: 700; }
.cf-cmpswitch {
  border: none; border-radius: var(--r-pill); background: #fff; color: #8a3c05;
  font: 800 1rem var(--font-ui); padding: 10px 20px; min-height: 44px; cursor: pointer;
  box-shadow: var(--shadow-sm);
}
.cf-cmpsel {
  border: none; border-radius: 9px; padding: 9px 10px; min-height: 38px;
  font: 600 .85rem var(--font-ui); color: var(--ink); background: #fff; max-width: 220px;
}

/* ── <dialog> de confirmation ────────────────────────────────────────────── */
dialog.cf-dlg {
  border: none; border-top: 4px solid var(--pink); border-radius: 18px;
  background: var(--paper); color: var(--ink); font-family: var(--font-body);
  padding: 22px; max-width: min(440px, 92vw);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .32);
}
dialog.cf-dlg::backdrop { background: rgba(43, 28, 25, .55); }
.cf-dlg p { margin: 0 0 18px; line-height: 1.55; font-size: 1rem; }
.cf-dlg-row { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 10px; }
.cf-dlg-btn {
  border: none; border-radius: var(--r-pill); padding: 11px 20px; min-height: 44px;
  font: 700 .95rem var(--font-ui); background: #efe7dc; color: var(--ink); cursor: pointer;
}
.cf-dlg-btn:hover { filter: brightness(.96); }
.cf-dlg-btn--ok { background: var(--green-dark); color: #fff; }
.cf-dlg-btn--danger { background: var(--red-dark); color: #fff; }

/* ── Toast (confirmations, « Annuler » après une reprise) ────────────────── */
.cf-toast {
  position: fixed; left: 50%; bottom: 84px; transform: translateX(-50%);
  z-index: 2147483639; display: flex; align-items: center; gap: 12px;
  max-width: min(560px, calc(100vw - 24px));
  background: var(--ink); color: #fff; padding: 12px 16px; border-radius: 14px;
  box-shadow: var(--shadow-md); font: 600 .95rem var(--font-ui);
}
.cf-toast button {
  border: none; border-radius: var(--r-pill); background: #fff; color: var(--ink);
  font: 700 .85rem var(--font-ui); padding: 9px 15px; min-height: 38px; cursor: pointer;
  flex: 0 0 auto;
}

/* ── Panneau « 📔 Mes versions » ─────────────────────────────────────────── */
.cf-vkeep {
  display: block; width: 100%; min-height: 48px; margin: 0 0 10px;
  border: none; border-radius: 12px; background: var(--green-dark); color: #fff;
  font: 700 1rem var(--font-ui); cursor: pointer;
}
.cf-vkeep:hover { filter: brightness(.96); }
.cf-vkeep:disabled { opacity: .45; cursor: default; }
.cf-vform { display: flex; gap: 8px; margin: 0 0 10px; }
.cf-vform input {
  flex: 1 1 auto; min-width: 0; font: 400 16px/1.3 var(--font-body); color: var(--ink);
  padding: 10px 12px; border: 1.5px solid var(--cream-deep); border-radius: 10px; background: #fff;
}
.cf-vgo {
  border: none; border-radius: 10px; background: var(--red-dark); color: #fff;
  font: 700 .9rem var(--font-ui); padding: 10px 16px; min-height: 44px; cursor: pointer;
}
.cf-verr { color: var(--red-dark); font-size: .88rem; margin: 0 0 10px; min-height: 0; }
.cf-verr:empty { display: none; }
.cf-vcur {
  display: flex; align-items: center; gap: 10px; padding: 10px;
  border: 1.5px solid var(--green-dark); border-radius: 12px; background: var(--cream);
  font-weight: 700; margin: 2px 0 12px;
}
.cf-vcard {
  display: flex; align-items: flex-start; flex-wrap: wrap; gap: 10px;
  padding: 10px; margin: 0 0 10px;
  border: 1.5px solid var(--cream-deep); border-radius: 12px; background: #fff;
}
.cf-vinfo { flex: 1 1 auto; min-width: 0; }
.cf-vname { font-family: var(--font-head); font-size: 1.12rem; line-height: 1.2; overflow-wrap: anywhere; }
.cf-vmeta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: .82rem; color: var(--ink-soft); margin-top: 2px; }
.cf-vtheme {
  font: 700 .7rem/1 var(--font-ui); text-transform: uppercase; letter-spacing: .05em;
  background: var(--blue-soft); color: var(--blue-dark); padding: 4px 8px; border-radius: var(--r-pill);
}
.cf-vacts { display: flex; align-items: center; gap: 6px; width: 100%; }
.cf-vbtn {
  border: none; border-radius: var(--r-pill); background: var(--red-dark); color: #fff;
  font: 700 .88rem var(--font-ui); padding: 9px 16px; min-height: 44px; cursor: pointer;
  flex: 1 1 auto;
}
.cf-vico {
  border: 1.5px solid var(--cream-deep); border-radius: 10px; background: #fff; color: var(--ink);
  width: 44px; min-height: 44px; font-size: 1rem; cursor: pointer; flex: 0 0 auto;
}
.cf-vico:hover { border-color: var(--pink); }
.cf-vrename {
  width: 100%; font: 400 16px/1.3 var(--font-body); color: var(--ink);
  padding: 8px 10px; border: 1.5px solid var(--blue); border-radius: 8px; background: #fff;
}

/* ── Éditeur en mode « aperçu de version » : édition désactivée ──────────── */
body.cf-apercu #main [contenteditable] { outline: none; }

/* ── Éditeur : mobile (≤ 720 px) — barre basse + feuille basse ───────────── */
@media (max-width: 720px) {
  /* Barre : en bas, pleine largeur, gros boutons icône + libellé court */
  .cf-bar {
    left: 0; right: 0; bottom: 0; max-width: none;
    border-radius: 0; border-left: none; border-right: none; border-bottom: none;
    padding: 8px 8px calc(8px + env(safe-area-inset-bottom, 0px));
    gap: 6px; flex-wrap: nowrap; justify-content: space-around;
  }
  .cf-btn { min-height: 48px; padding: 8px 10px; font-size: .84rem; flex: 1 1 0; white-space: nowrap; }
  .cf-help { flex: 0 0 40px; }
  .cf-note { display: none; }
  .cf-lab-l { display: none; }
  .cf-lab-s { display: inline; }
  /* « Annuler / Réinitialiser » repliés derrière « ⋯ » */
  .cf-editing .cf-btn--cancel, .cf-editing .cf-btn--ghost { display: none; }
  .cf-editing .cf-more-toggle { display: inline-block; flex: 0 0 48px; }
  .cf-more-box { display: none; }
  .cf-bar.cf-more-open .cf-more-box {
    display: flex; flex-direction: column; gap: 8px;
    position: fixed; right: 10px; bottom: calc(72px + env(safe-area-inset-bottom, 0px));
    background: #fff; border: 1px solid var(--hair); border-radius: 14px;
    padding: 10px; box-shadow: var(--shadow-md);
  }
  .cf-bar.cf-more-open .cf-more-box .cf-btn { display: inline-block; flex: none; min-width: 150px; }

  /* Le widget « Demander une modification » remonte au-dessus de la barre */
  .ec-fbw-fab { bottom: calc(84px + env(safe-area-inset-bottom, 0px)) !important; }
  body.cf-style-open .ec-fbw-fab, body.cf-vers-open .ec-fbw-fab { display: none !important; }

  /* Panneau de style → feuille basse (bottom sheet) avec poignée */
  .cf-panel {
    top: auto; left: 0; right: 0; bottom: calc(64px + env(safe-area-inset-bottom, 0px));
    width: 100%; height: 48vh;
    border-radius: 18px 18px 0 0; border-left: none; border-right: none;
    box-shadow: 0 -18px 44px rgba(58, 39, 36, .18);
  }
  .cf-panel.cf-sh-min { height: 56px; overflow: hidden; }
  .cf-panel.cf-sh-mid { height: 48vh; }
  .cf-panel.cf-sh-full { height: 85vh; }
  .cf-panel.cf-sh-min .cf-p-body { display: none; }
  .cf-panel.cf-sh-min .cf-p-head { border-bottom: none; padding-top: 2px; }
  .cf-grip { display: block; flex: 0 0 auto; padding: 9px 0 3px; cursor: grab; touch-action: none; }
  .cf-grip::before {
    content: ""; display: block; width: 44px; height: 5px; border-radius: 3px;
    background: var(--cream-deep); margin: 0 auto;
  }
  body.cf-style-open { padding-right: 0; padding-bottom: 54vh; }
  body.cf-style-open.cf-sheet-min { padding-bottom: 140px; }
  /* l'élément sélectionné est auto-remonté AU-DESSUS de la feuille */
  .cf-style #main [data-vk] { scroll-margin: 80px 12px 56vh 12px; }
  .cf-chip { min-height: 56px; }

  /* Versions : écran plein (le « ✕ » devient « ← ») */
  .cf-vpanel { top: 0; left: 0; right: 0; bottom: 0; width: 100%; border-radius: 0; border-left: none; }
  body.cf-vers-open { padding-right: 0; }

  /* Bandeaux : boutons pleine largeur, bascule Comparer sous le pouce */
  body.cf-try, body.cf-apercu { padding-top: 96px; }
  body.cf-try .site-header, body.cf-apercu .site-header { top: 96px; }
  .cf-pvband .cf-bandbtn, .cf-tryband .cf-bandbtn { flex: 1 1 40%; }
  .cf-cmpswitch {
    position: fixed; left: 50%; bottom: calc(88px + env(safe-area-inset-bottom, 0px));
    transform: translateX(-50%); z-index: 2147483639; min-height: 52px;
    box-shadow: var(--shadow-md);
  }
  .cf-cmpsel { max-width: 46vw; }

  .cf-toast { bottom: calc(130px + env(safe-area-inset-bottom, 0px)); }
  dialog.cf-dlg { max-width: 92vw; }
}

@media (prefers-reduced-motion: reduce) {
  .cf-panel.cf-open, .cf-vpanel.cf-open { animation: none; }
  .cf-style #main [data-vk].cf-sel-out { transition: none; }
}

