/* ==========================================================================
   Chez Fleurette — Café Céramique · Pau
   Design system (charte graphique janvier 2026 — Margaux Tuszynski)
   Palette : rouge #EC1C25 · vert #0DA152 · bleu #3462AE · rose #EBA6CA · crème #FDEDD5
   Typos (charte slides 5 & 6) : titres « Bryndan Write » (la vraie police de
           la charte, auto-hébergée ; repli « Patrick Hand ») · sous-titres
           ARIAL MAJUSCULE + ITALIQUE · corps de texte Arial
   ========================================================================== */

/* Police de titres = « Bryndan Write » — LA police de la charte de Margaux,
   auto-hébergée (compatible CSP font-src 'self'). « Patrick Hand » reste en
   repli pour les rares glyphes absents (… et l'apostrophe courbe). */
@font-face {
  font-family: "Bryndan Write";
  font-style: normal; font-weight: 400; font-display: swap;
  src: url("bryndanwrite.woff2") format("woff2");
}

/* « Patrick Hand » (OFL) — repli des titres + couverture des glyphes manquants. */
@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:        #EC1C25;
  --red-dark:   #c8141c;
  --red-soft:   #fde3e4;
  --green:      #0DA152;
  --green-dark: #0a7e40;
  --green-soft: #d8f1e2;
  --blue:       #3462AE;
  --blue-dark:  #284f8d;
  --blue-soft:  #dde6f5;
  --pink:       #EBA6CA;
  --pink-soft:  #f8e1ee;
  --cream:      #FDEDD5;
  --cream-deep: #f7e1bf;
  --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 — conforme à la charte (slides 5 & 6) :
     · Titres = « Bryndan Write » (manuscrit marqueur) → substitut libre le plus
       proche : "Patrick Hand" (couverture FR complète, même esprit rond/marqueur).
     · Sous-titres = ARIAL MAJUSCULE + ITALIQUE.   · Corps = Arial. */
  --font-head: "Bryndan Write", "Patrick Hand", "Comic Sans MS", cursive;
  --font-hand: "Bryndan Write", "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;
  background: rgba(253, 237, 213, .92);
  backdrop-filter: saturate(140%) blur(8px);
  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; }

/* Burger mobile (checkbox hack — zéro JS requis, conforme CSP) */
.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-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; }
.hero__mascotte { width: min(360px, 80%); 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(236,28,37,.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(13,161,82,.22); }
.hero__badge--2 { bottom: 10%; right: 0; transform: rotate(3deg); color: var(--blue); border-color: rgba(52,98,174,.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 » */
.steps { counter-reset: step; }
.step { position: relative; padding-left: 0; text-align: center; }
.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 (Margaux 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(236,28,37,.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; }
.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 ────────────────────────────────────────────────────── */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; text-align: center; }
.fact .fact__num { font-family: var(--font-head); font-weight: 600; font-size: 2.4rem; color: var(--red); line-height: 1; }
.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 ─────────────────────────────────────────────────────── */
.info-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.info-card { display: flex; gap: 16px; align-items: flex-start; }
.info-card .card__icon { flex: 0 0 auto; margin: 0; }
.info-card h3 { font-size: 1.2rem; margin-bottom: 2px; }
.info-card p { margin: 0; color: var(--ink-soft); }
.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; }

/* ── Encadré note / placeholder éditorial ────────────────────────────────── */
.note {
  background: var(--blue-soft); border: 1px solid rgba(52,98,174,.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-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 : pétales flottants ───────────────────────────────────────────── */
.petal { position: absolute; opacity: .5; pointer-events: none; z-index: 0; }
.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; }
.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); }
  .facts { grid-template-columns: repeat(2, 1fr); gap: 26px; }
}
@media (max-width: 820px) {
  .hero__grid { grid-template-columns: 1fr; text-align: center; }
  .hero__art { order: -1; }
  .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; }
  .info-grid { grid-template-columns: 1fr; }
  .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; }
  .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(235,166,202,.30), transparent 60%),
    radial-gradient(900px 480px at 92% 8%, rgba(13,161,82,.12), transparent 55%),
    radial-gradient(900px 520px at 78% 100%, rgba(52,98,174,.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 mn-bob     { 0%,100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-14px) rotate(1.5deg); } }
@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) {

  /* Pétales flottants du hero */
  .petal { animation: mn-float 7s ease-in-out infinite; }
  .hero .petal:nth-of-type(1) { --rot: -4deg; animation-duration: 8s; }
  .hero .petal:nth-of-type(2) { --rot: 5deg;  animation-duration: 6.5s; animation-delay: -2s; }

  /* Mascotte qui flotte doucement */
  .hero__mascotte { animation: mn-bob 5.5s ease-in-out infinite; transform-origin: 50% 70%; }

  /* 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(52,98,174,.5); outline-offset: 3px; border-radius: 4px;
  cursor: text; transition: background .15s ease;
}
.cf-editing #main [contenteditable]:hover { background: rgba(52,98,174,.06); }
.cf-editing #main [contenteditable]:focus { outline: 2px solid var(--blue); background: rgba(52,98,174,.09); }

.cf-editing .photo { cursor: pointer; outline: 2px dashed rgba(13,161,82,.6); outline-offset: 3px; }
.cf-editing .photo::after {
  content: "Cliquez ou glissez une photo"; position: absolute; left: 0; right: 0; bottom: 0;
  background: rgba(13,161,82,.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; }

/* 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(235,166,202,.30), transparent 60%), radial-gradient(800px 420px at 88% 100%, rgba(13,161,82,.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 { 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 { 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--fleurette i:nth-child(1) { flex: 0 0 24%; background: var(--cream); border-bottom: 2px solid var(--red); }
.cf-thumb--fleurette i:nth-child(2) { background: var(--pink-soft); }
.cf-thumb--fleurette 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); }

/* ── 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; }
}

