/* ==========================================================================
   Le Café des Platanes — feuille de style
   Palette : Bordeaux #7A2E32 · Corail #D2542E · Moutarde #E8A93C
             Vert platane #6B7F4F · Crème rosée #FBF3EC · Encre #3B2620
   Typo : Fraunces (titres) · Playball (accroches) · Work Sans (corps/nav)
   ========================================================================== */

:root {
  --bordeaux: #7A2E32;
  --bordeaux-dark: #5E2226;
  --corail: #D2542E;
  --moutarde: #E8A93C;
  --vert: #6B7F4F;
  --creme: #FBF3EC;
  --creme-2: #F3E7DC;
  --creme-dark: #E8D6BE;
  --encre: #3B2620;

  --font-title: "Fraunces", Georgia, serif;
  --font-script: "Playball", cursive;
  --font-body: "Work Sans", Arial, sans-serif;

  --wrap: 1180px;
  --radius: 14px;
  --radius-pill: 999px;
}

* { box-sizing: border-box; }
/* overflow-x solo en html: ponerlo también en body rompe position:sticky en Chrome */
html { overflow-x: hidden; }
body { max-width: 100%; }
img, iframe { max-width: 100%; }
img { display: block; height: auto; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--encre);
  background: var(--creme);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--font-title); font-weight: 700; color: var(--bordeaux); margin: 0 0 .4em; line-height: 1.1; }
h1 { font-size: clamp(2.6rem, 5vw, 4rem); }
h2 { font-size: clamp(1.9rem, 3.2vw, 2.6rem); text-align: center; }
h3 { font-size: 1.2rem; color: var(--encre); }
p { margin: 0 0 1em; }
a { color: inherit; text-decoration: none; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

.eyebrow {
  text-align: center;
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: .78rem;
  font-weight: 600;
  color: var(--corail);
  margin-bottom: .5em;
}

.tagline { font-family: var(--font-script); font-size: 1.6rem; color: var(--vert); margin: 0 0 .6em; }
.tagline--script { font-size: 1.4rem; }

.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--bordeaux); color: #fff;
  padding: 12px 18px; z-index: 1000; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 30px; border-radius: var(--radius-pill);
  font-weight: 600; font-size: .92rem; letter-spacing: .04em;
  border: 1.5px solid transparent; cursor: pointer; transition: transform .15s ease, background .2s ease, color .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--bordeaux); color: #fff; }
.btn-primary:hover { background: var(--bordeaux-dark); }
.btn-outline { background: transparent; color: var(--bordeaux); border-color: var(--bordeaux); }
.btn-outline:hover { background: var(--bordeaux); color: #fff; }
.btn-moutarde { background: var(--moutarde); color: var(--encre); }
.btn-moutarde:hover { background: #d99a2b; }

/* ---------- Placeholders photo (en attendant les vraies photos) ---------- */
.ph-placeholder {
  position: relative;
  background:
    repeating-linear-gradient(135deg, rgba(107,127,79,.10) 0 12px, rgba(107,127,79,.04) 12px 24px),
    var(--creme-2);
  border: 1.5px dashed rgba(122,46,50,.35);
  display: flex; align-items: center; justify-content: center;
  min-height: 160px;
  border-radius: var(--radius);
  overflow: hidden;
}
.ph-placeholder .ph-label {
  font-size: .78rem; font-weight: 600; color: var(--bordeaux);
  background: rgba(251,243,236,.9); padding: 8px 14px; border-radius: var(--radius-pill);
  text-align: center; max-width: 80%;
}
/* Une fois qu'une vraie photo est envoyée depuis /admin, le style inline
   (background-image) prend le relais : on efface juste le pointillé et le label. */
.ph-placeholder.has-photo { border-style: solid; border-color: transparent; }
.ph-placeholder.has-photo .ph-label { display: none; }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(251,243,236,.94); backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(122,46,50,.12);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 24px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 8px; }

/* ---------- Wordmark texte (remplace le logo image) ---------- */
.brand-wordmark {
  display: inline-flex; align-items: center; flex-wrap: nowrap; white-space: nowrap;
  font-family: var(--font-script); color: var(--bordeaux); line-height: 1; font-size: 1.55rem;
}
.brand-wordmark .bw-le,
.brand-wordmark .bw-des { font-size: .52em; margin: 0 .1em; align-self: center; }
.brand-wordmark .bw-cafe { margin-right: .08em; }
.brand-wordmark .bw-platanes { margin-left: .06em; }
.brand-wordmark .bw-cup { width: .62em; height: .68em; flex-shrink: 0; align-self: center; color: inherit; margin: 0 .04em; }
.brand-name { font-family: var(--font-title); font-weight: 700; font-size: 1.25rem; color: var(--bordeaux); }
.brand-name em { font-style: normal; }

.site-nav { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.site-nav > a:not(.btn) { font-size: .92rem; font-weight: 600; color: var(--encre); position: relative; padding: 4px 0; }
.site-nav > a:not(.btn):hover { color: var(--bordeaux); }
.site-nav .nav-reserve.btn { padding: 13px 30px; }

.lang-switch { display: flex; gap: 4px; border: 1px solid rgba(122,46,50,.25); border-radius: var(--radius-pill); padding: 3px; }
.lang-btn {
  border: none; background: transparent; font-family: var(--font-body); font-weight: 600;
  font-size: .74rem; letter-spacing: .04em; padding: 5px 10px; border-radius: var(--radius-pill);
  cursor: pointer; color: var(--encre); opacity: .6;
}
.lang-btn.is-active { background: var(--bordeaux); color: #fff; opacity: 1; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--bordeaux); border-radius: 2px; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero { padding: 56px 0 40px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.hero-copy { position: relative; }
.hero-sun { position: absolute; top: -46px; right: 60px; width: 54px; height: 54px; color: var(--moutarde); }
.hero-copy h1 { color: var(--bordeaux); margin-bottom: .18em; }
.hero-text { max-width: 46ch; color: rgba(59,38,32,.85); }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin: 22px 0 18px; }
.hero-location { display: flex; align-items: center; gap: 6px; font-weight: 600; font-size: .88rem; color: var(--bordeaux); }
.hero-location svg { width: 16px; height: 16px; }

.hero-media { position: relative; }
.hero-photo {
  width: 100%; aspect-ratio: 4 / 3.1; border-radius: 22px; object-fit: cover; display: block;
  clip-path: url(#brushClip);
  filter: drop-shadow(0 18px 30px rgba(59,38,32,.16));
}
.hero-badge {
  position: absolute; left: -26px; bottom: -26px; width: 128px; height: 128px; border-radius: 50%;
  background: var(--creme); border: 1.4px solid rgba(122,46,50,.3); color: var(--vert);
  display: flex; align-items: center; justify-content: center; text-align: center;
  font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; padding: 14px;
  box-shadow: 0 10px 26px rgba(59,38,32,.14);
}
.hero-badge svg { position: absolute; inset: 0; width: 100%; height: 100%; }

/* ==========================================================================
   Catégories
   ========================================================================== */
.categories { padding: 44px 0; border-top: 1px solid rgba(122,46,50,.1); border-bottom: 1px solid rgba(122,46,50,.1); }
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; text-align: center; }
.cat-card { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.cat-icon { width: 42px; height: 42px; margin-bottom: 6px; }
.cat-icon--bordeaux { color: var(--bordeaux); }
.cat-icon--vert { color: var(--vert); }
.cat-icon--moutarde { color: var(--moutarde); }
.cat-icon--corail { color: var(--corail); }
.cat-card h3 { font-family: var(--font-title); color: var(--bordeaux); margin-bottom: 2px; }
.cat-card p { font-size: .85rem; color: rgba(59,38,32,.7); margin-bottom: 10px; }
.cat-discover { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; text-decoration: underline; text-underline-offset: 4px; }
.cat-discover--bordeaux { color: var(--bordeaux); }
.cat-discover--vert { color: var(--vert); }
.cat-discover--moutarde { color: var(--moutarde); }
.cat-discover--corail { color: var(--corail); }

/* ==========================================================================
   Menu interactif
   ========================================================================== */
.menu-section { padding: 64px 0; }
.menu-tabs-main { display: flex; justify-content: center; gap: 10px; margin: 24px 0 12px; flex-wrap: wrap; }
.tab-main {
  font-family: var(--font-title); font-weight: 700; font-size: 1.15rem; padding: 8px 22px;
  border-radius: var(--radius-pill); border: 1.5px solid var(--bordeaux); background: transparent;
  color: var(--bordeaux); cursor: pointer;
}
.tab-main.is-active { background: var(--bordeaux); color: #fff; }

.menu-tabs-sub { display: flex; justify-content: center; gap: 8px; margin-bottom: 36px; flex-wrap: wrap; }
.tab-sub {
  font-size: .82rem; font-weight: 600; padding: 8px 16px; border-radius: var(--radius-pill);
  border: 1.5px solid rgba(122,46,50,.3); background: var(--creme-2); color: var(--encre); cursor: pointer;
}
.tab-sub.is-active { background: var(--moutarde); border-color: var(--moutarde); color: var(--encre); }

.menu-body { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px 56px; }
.menu-group { break-inside: avoid; }
.menu-group h3 {
  font-family: var(--font-title); color: var(--corail); border-bottom: 2px solid var(--moutarde);
  padding-bottom: 8px; margin-bottom: 14px;
}
.menu-group-note { font-size: .82rem; font-style: italic; color: rgba(59,38,32,.65); margin-top: -8px; margin-bottom: 12px; }

.item-list { list-style: none; margin: 0; padding: 0; }
.item-list li { padding: 10px 0; border-bottom: 1px dashed rgba(122,46,50,.18); }
.item-list li:last-child { border-bottom: none; }
.item-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-weight: 600; }
.item-name { flex: 1; }
.item-price { color: var(--bordeaux); font-family: var(--font-title); white-space: nowrap; }
.item-desc { margin: 4px 0 0; font-size: .84rem; color: rgba(59,38,32,.68); font-weight: 400; }

.menu-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.menu-table th, .menu-table td { padding: 8px 10px; text-align: right; border-bottom: 1px dashed rgba(122,46,50,.18); }
.menu-table th:first-child, .menu-table td:first-child { text-align: left; font-weight: 600; }
.menu-table thead th { color: var(--bordeaux); font-family: var(--font-title); border-bottom: 2px solid var(--moutarde); }

.flavor-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.flavor-tag {
  font-size: .8rem; padding: 6px 14px; border-radius: var(--radius-pill);
  background: var(--creme-2); border: 1px solid rgba(107,127,79,.3); color: var(--vert); font-weight: 600;
}

.tier-list { list-style: none; margin: 0; padding: 0; }
.tier-list li { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px dashed rgba(122,46,50,.18); font-weight: 600; }
.tier-list .price { color: var(--bordeaux); font-family: var(--font-title); }

/* ==========================================================================
   Le Resto (terrasse + carrousel photos)
   ========================================================================== */
.terrace { padding: 64px 0; background: var(--creme-dark); }
.terrace-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; margin-bottom: 44px; }
.terrace-photo { width: 100%; aspect-ratio: 4 / 3; border-radius: var(--radius); object-fit: cover; display: block; }
.terrace-copy h2 { text-align: left; }

.carousel { position: relative; display: flex; align-items: center; gap: 10px; overflow: hidden; }
.carousel-track {
  display: flex; gap: 14px; overflow-x: auto; scroll-behavior: smooth;
  padding: 4px 2px 14px; -webkit-overflow-scrolling: touch;
}
.carousel-track::-webkit-scrollbar { height: 6px; }
.carousel-track::-webkit-scrollbar-thumb { background: rgba(122,46,50,.25); border-radius: var(--radius-pill); }
.carousel-item {
  flex: 0 0 auto; width: 220px; aspect-ratio: 4 / 3;
  padding: 0; cursor: pointer; font: inherit; border: none; border-radius: var(--radius);
  overflow: hidden; transition: transform .15s ease;
}
.carousel-item:hover { transform: translateY(-3px); }
.carousel-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.carousel-arrow {
  flex: 0 0 auto; width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--bordeaux);
  background: var(--creme); color: var(--bordeaux); font-size: 1.4rem; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center; z-index: 2;
}
.carousel-arrow:hover { background: var(--bordeaux); color: #fff; }

/* Lightbox */
.lightbox-card { position: relative; background: transparent; box-shadow: none; padding: 0; max-width: 720px; width: 100%; }
.lightbox-photo { width: 100%; max-height: 78vh; border-radius: var(--radius); object-fit: contain; display: block; background: rgba(0,0,0,.15); }
.lightbox-caption { text-align: center; color: var(--creme); margin-top: 14px; font-weight: 600; }
.lightbox .popup-close { top: -6px; right: -6px; background: var(--creme); border-radius: 50%; width: 34px; height: 34px; }

/* ==========================================================================
   Bande infos pratiques
   ========================================================================== */
.info-strip { padding: 40px 0; background: var(--bordeaux); color: var(--creme); }
.info-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.info-item { display: flex; gap: 12px; align-items: flex-start; }
.info-item svg { width: 22px; height: 22px; flex-shrink: 0; color: var(--moutarde); margin-top: 3px; }
.info-item strong { display: block; font-family: var(--font-title); font-size: 1rem; margin-bottom: 2px; }
.info-item p { font-size: .84rem; color: rgba(251,243,236,.8); margin-bottom: 6px; }
.info-item a { font-size: .78rem; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; color: var(--moutarde); }

/* ==========================================================================
   Localisation / carte
   ========================================================================== */
.location { padding: 64px 0; }
.location-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.location-copy h2 { text-align: left; }
.location-hours { margin-top: 10px; }
.location-map { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: 0 14px 40px rgba(59,38,32,.16); }
.map-link { position: relative; display: block; aspect-ratio: 4 / 3.4; }
.map-link iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; pointer-events: none; }
.map-overlay-tag {
  position: absolute; right: 14px; bottom: 14px; background: var(--bordeaux); color: #fff;
  font-size: .78rem; font-weight: 700; padding: 10px 18px; border-radius: var(--radius-pill);
  box-shadow: 0 8px 20px rgba(59,38,32,.25);
}

/* ==========================================================================
   Avis Google
   ========================================================================== */
.reviews { padding: 60px 0; background: var(--creme-2); text-align: center; }
.reviews h2 { margin-bottom: 28px; }
.reviews-widget { min-height: 120px; display: flex; align-items: center; justify-content: center; }
.reviews-fallback {
  font-size: .88rem; color: rgba(59,38,32,.55); border: 1.5px dashed rgba(122,46,50,.3);
  border-radius: var(--radius); padding: 22px 26px; max-width: 46ch;
}

/* ==========================================================================
   Bande CTA jaune
   ========================================================================== */
.cta-band { background: var(--moutarde); padding: 40px 0; }
.cta-band-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-band-title { font-family: var(--font-title); font-weight: 700; font-size: 1.3rem; color: var(--bordeaux); margin: 0; }
.cta-band-sub { margin: 2px 0 0; }
.cta-band-actions { display: flex; align-items: center; gap: 16px; }
.social-icons { display: flex; gap: 10px; }
.social-icon {
  width: 38px; height: 38px; border-radius: 50%; background: var(--bordeaux); color: #fff;
  display: flex; align-items: center; justify-content: center;
}
.social-icon svg { width: 18px; height: 18px; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--encre); color: rgba(251,243,236,.85); padding: 48px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 28px; padding-bottom: 32px; border-bottom: 1px solid rgba(251,243,236,.14); }
.brand-wordmark--footer { font-size: 2.15rem; color: var(--creme); }
.brand-wordmark--footer .bw-cup { color: var(--moutarde); }
.footer-brand .brand-tagline {
  font-family: var(--font-body); font-size: .74rem; font-weight: 600; letter-spacing: .18em;
  text-transform: uppercase; color: rgba(251,243,236,.55); margin-top: 10px;
}
.footer-col { display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; }
.footer-col svg { width: 18px; height: 18px; color: var(--moutarde); flex-shrink: 0; margin-top: 2px; }
.footer-col a { text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding: 18px 0; font-size: .78rem; flex-wrap: wrap; gap: 10px; color: rgba(251,243,236,.6); }
.footer-legal { display: flex; gap: 16px; flex-wrap: wrap; }
.footer-legal a:hover { color: var(--moutarde); }

/* ==========================================================================
   Popup réservation
   ========================================================================== */
.popup { position: fixed; inset: 0; background: rgba(59,38,32,.55); z-index: 300; display: none; align-items: center; justify-content: center; padding: 20px; }
.popup:not([hidden]) { display: flex; }
.popup-card {
  background: var(--creme); border-radius: 18px; padding: 40px 34px; text-align: center; max-width: 340px; width: 100%;
  position: relative; box-shadow: 0 24px 60px rgba(0,0,0,.3);
}
.popup-close { position: absolute; top: 10px; right: 14px; background: none; border: none; font-size: 1.6rem; cursor: pointer; color: var(--bordeaux); line-height: 1; }
.brand-wordmark--popup { font-size: 2.3rem; justify-content: center; margin-bottom: 10px; }
.popup-eyebrow { text-transform: uppercase; letter-spacing: .1em; font-size: .78rem; font-weight: 700; color: var(--corail); margin-bottom: 6px; }
.popup-phone { display: block; font-family: var(--font-title); font-size: 1.7rem; color: var(--bordeaux); margin-bottom: 18px; }
body.popup-open { overflow: hidden; }

/* ==========================================================================
   Pages légales
   ========================================================================== */
.legal-page { padding: 48px 24px 80px; max-width: 760px; }
.legal-page h1 { text-align: left; margin-bottom: .6em; }
.legal-page h2 { text-align: left; font-size: 1.2rem; margin-top: 1.8em; color: var(--corail); }
.legal-page p, .legal-page li { color: rgba(59,38,32,.85); }
.legal-page ul { padding-left: 20px; margin: 0 0 1em; }
.legal-page li { margin-bottom: 6px; }
.legal-page .legal-updated { font-size: .82rem; color: rgba(59,38,32,.55); margin-top: -.6em; margin-bottom: 1.6em; }
.legal-page a { color: var(--bordeaux); text-decoration: underline; text-underline-offset: 2px; }
.legal-page table { width: 100%; border-collapse: collapse; margin: 1em 0; }
.legal-page th, .legal-page td { border: 1px solid rgba(122,46,50,.2); padding: 8px 10px; text-align: left; font-size: .88rem; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 980px) {
  .hero-grid, .terrace-grid, .location-grid { grid-template-columns: 1fr; }
  .terrace-photo { order: -1; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); row-gap: 34px; }
  .info-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .menu-body { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .nav-toggle { display: flex; }
  .site-nav {
    position: absolute; top: 100%; left: 0; right: 0; background: var(--creme);
    flex-direction: column; align-items: stretch; gap: 0; max-height: 0; overflow: hidden;
    border-bottom: 1px solid rgba(122,46,50,.12); transition: max-height .3s ease;
  }
  .site-nav.is-open { max-height: 520px; }
  .site-nav > a:not(.btn) { padding: 14px 24px; border-bottom: 1px solid rgba(122,46,50,.08); }
  .lang-switch { margin: 14px 24px; align-self: flex-start; }
  .site-nav .nav-reserve.btn { margin: 6px 24px 18px; }
  .hero-badge { width: 96px; height: 96px; font-size: .58rem; left: 10px; bottom: -18px; }
}

@media (max-width: 560px) {
  h1 { font-size: 2.3rem; }
  .cat-grid, .info-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-band-inner { flex-direction: column; align-items: stretch; text-align: center; }
  .cta-band-actions { justify-content: center; flex-wrap: wrap; }
  .carousel-item { width: 160px; }
  .hero-sun { right: 10px; top: -36px; width: 40px; height: 40px; }
}

/* ==========================================================================
   Badge d'édition (visible seulement pour un admin connecté via /admin)
   ========================================================================== */
.admin-edit-badge {
  position: fixed; left: 18px; bottom: 18px; z-index: 250;
  background: var(--encre); color: var(--creme); font-size: .78rem; font-weight: 700;
  padding: 11px 18px; border-radius: var(--radius-pill); box-shadow: 0 8px 24px rgba(0,0,0,.25);
  display: inline-flex; align-items: center; gap: 6px;
  border: none; font-family: var(--font-body); cursor: pointer;
}
.admin-edit-badge:hover { background: var(--bordeaux); }

/* ==========================================================================
   Éditeur visuel in-page (mode édition activé)
   ========================================================================== */
.editor-toolbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 260;
  background: var(--encre); color: var(--creme);
  padding: 14px 24px; display: flex; align-items: center; justify-content: space-between;
  gap: 20px; flex-wrap: wrap; box-shadow: 0 -8px 24px rgba(0,0,0,.2);
}
.editor-toolbar[hidden] { display: none; }
.editor-toolbar-info { font-size: .78rem; color: rgba(251,243,236,.75); max-width: 60ch; }
.editor-toolbar-actions { display: flex; gap: 10px; flex-shrink: 0; }
.editor-toolbar .btn { padding: 10px 20px; font-size: .82rem; }
.editor-toolbar .btn-outline { color: var(--creme); border-color: rgba(251,243,236,.4); }
.editor-toolbar .btn-outline:hover { background: rgba(251,243,236,.12); color: var(--creme); }
body.editor-active { padding-bottom: 64px; }

.editor-active [data-i18n][contenteditable="true"],
.editor-active [data-menu-path][contenteditable="true"] {
  outline: 1.5px dashed rgba(122,46,50,.45); outline-offset: 3px; cursor: text; border-radius: 3px;
}
.editor-active [data-i18n][contenteditable="true"]:focus,
.editor-active [data-menu-path][contenteditable="true"]:focus {
  outline-color: var(--corail); outline-style: solid; background: rgba(210,84,46,.06);
}

.img-edit-wrap { position: relative; display: block; line-height: 0; }
/* Dans le carrousel, l'image se dimensionne en 100%/100% de son parent : le
   conteneur d'édition doit donc, ici seulement, remplir l'espace lui aussi. */
.carousel-item .img-edit-wrap { width: 100%; height: 100%; }
.img-edit-overlay {
  position: absolute; inset: 0; background: rgba(59,38,32,.55);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  opacity: 0; transition: opacity .2s; z-index: 20;
}
.img-edit-wrap:hover .img-edit-overlay { opacity: 1; }
.img-edit-btn {
  background: var(--creme); color: var(--encre); border: none; padding: 9px 18px;
  font-family: var(--font-body); font-size: .74rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .08em; cursor: pointer; border-radius: var(--radius-pill);
}
.img-edit-btn:hover { background: #fff; }
.img-edit-label { font-size: .68rem; color: rgba(251,243,236,.85); text-transform: uppercase; letter-spacing: .06em; }
.img-edit-spinner {
  width: 22px; height: 22px; border: 2px solid rgba(251,243,236,.3); border-top-color: var(--creme);
  border-radius: 50%; animation: img-edit-spin .7s linear infinite;
}
@keyframes img-edit-spin { to { transform: rotate(360deg); } }

.editor-toast {
  position: fixed; bottom: 84px; left: 50%; transform: translateX(-50%);
  background: var(--vert); color: #fff; padding: 12px 26px; border-radius: var(--radius-pill);
  font-size: .82rem; font-weight: 600; z-index: 300; opacity: 0; transition: opacity .25s;
  box-shadow: 0 8px 24px rgba(0,0,0,.2);
}
.editor-toast.show { opacity: 1; }
.editor-toast--err { background: var(--corail); }
