/* pictof.be — un seul système visuel (V1.8) : tokens uniques, accent vert sapin.
   Les 4 tokens marqués « thème » sont éditables via /admin/theme (surchargés par
   /api/theme.css, chargé en dernière feuille sur toutes les pages). */
:root {
  --fond: #ffffff;
  --fond-alt: #f5f5f7;        /* thème */
  --encre: #1d1d1f;
  --secondaire: #6e6e73;
  --filet: #d2d2d7;
  --accent: #2f5d50;          /* thème — vert sapin (CTA, liens, focus, eyebrows) */
  --accent-fonce: #254a40;    /* thème — hover/active du CTA */
  --accent-teinte: #e9f0ed;   /* thème — fonds légers teintés (alertes ok, sélections) */
  --danger: #a33c3c;
  --radius: 18px; --radius-s: 10px; --pilule: 980px;
  --ombre: 0 4px 24px rgba(0, 0, 0, .08);
  --verre: rgba(255, 255, 255, .72);
  /* neutres déclarées (avertissements, erreurs, étoiles d'avis) */
  --warn-bg: #fdf6e3; --warn-ink: #8a6d1a; --danger-bg: #f9e9e9; --etoile: #e0a800;
  /* alias héritage (landing V1 / admin V1.3) — même source, zéro divergence */
  --ink: var(--encre); --muted: var(--secondaire); --line: var(--filet);
  --bg-alt: var(--fond-alt); --accent-dark: var(--accent-fonce);
  --ok: var(--accent); --ok-bg: var(--accent-teinte);
  --shadow: var(--ombre);
  /* échelle z-index unique : nav/tunnel < bandeau collant < overlays < toasts */
  --z-nav: 100; --z-sticky: 110; --z-overlay: 200; --z-toast: 300;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
body {
  margin: 0; color: var(--ink); background: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6; font-size: 17px;
}
.container { max-width: 1040px; margin: 0 auto; padding: 0 20px; }
.container.narrow { max-width: 760px; }
.center { text-align: center; }
h1 { font-size: clamp(2.2rem, 6vw, 4rem); line-height: 1.05; letter-spacing: -.015em;
  font-weight: 700; margin: 0.3em 0; }
h2 { font-size: clamp(1.6rem, 4vw, 2.5rem); line-height: 1.1; letter-spacing: -.01em;
  font-weight: 700; }
.section { padding: clamp(72px, 10vw, 128px) 0; }
.section-alt { background: var(--bg-alt); }
.section-tete { max-width: 820px; margin: 0 auto clamp(32px, 5vw, 56px); text-align: center; }
.eyebrow { margin: 0 0 8px; font-size: 1rem; font-weight: 600; color: var(--accent); }
.section-tete h2 { margin: 0; }
.section-intro { color: var(--muted); max-width: 56ch; font-size: 1.05rem; }
.section-tete .section-intro { margin: 14px auto 0; }

/* Boutons */
.btn {
  display: inline-block; border: 0; cursor: pointer; font: inherit; font-weight: 600;
  border-radius: var(--pilule); padding: 14px 28px; transition: background .15s, transform .05s;
}
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-fonce); }
.btn-secondary { background: var(--accent-teinte); color: var(--accent); }
.btn-secondary:hover { background: var(--filet); }
.btn-xl { font-size: 1.1rem; padding: 16px 34px; width: 100%; max-width: 420px; }
.btn-petit { padding: 6px 14px; font-size: .85rem; } /* V1.10 : incitation coupon */

/* V1.10 — bannière de promotion globale (promo.js) + prix barrés */
.promo-bandeau { display: flex; align-items: center; justify-content: center; gap: 14px;
  flex-wrap: wrap; padding: 10px 48px 10px 16px; position: relative;
  background: var(--accent); color: var(--fond); text-align: center; }
.promo-bandeau > p { margin: 0; font-weight: 600; }
.promo-cta { border: 0; cursor: pointer; font: inherit; font-weight: 600;
  padding: 6px 16px; border-radius: var(--pilule);
  background: var(--fond); color: var(--accent); }
.promo-cta:hover { background: var(--accent-teinte); }
.promo-fermer { position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  border: 0; background: none; color: inherit; cursor: pointer; font-size: 1rem;
  padding: 6px 10px; opacity: .8; }
.promo-fermer:hover { opacity: 1; }
.price-avant { display: block; text-decoration: line-through; color: var(--secondaire);
  font-size: .45em; font-weight: 400; line-height: 1.2; white-space: nowrap; }

/* Hero — typographique aéré ; .hero--photo si le portfolio (uploads/site) est en place */
.hero { position: relative; padding: clamp(88px, 14vw, 160px) 0 clamp(72px, 10vw, 120px);
  text-align: center; background: var(--fond); overflow: hidden; }
.hero-kicker { font-size: 1.05rem; color: var(--accent); font-weight: 600; margin: 0; }
.hero-sub { font-size: clamp(1.05rem, 3vw, 1.35rem); max-width: 620px; margin: 0 auto 28px;
  color: var(--secondaire); }
.hero-note { color: var(--muted); font-size: .9rem; margin-top: 10px; }
.hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-voile { position: absolute; inset: 0; display: none;
  background: linear-gradient(180deg, rgba(0,0,0,.25) 0%, rgba(0,0,0,.55) 100%); }
.hero--photo { min-height: 88svh; display: flex; align-items: center; }
.hero--photo .hero-voile { display: block; }
.hero--photo .container { position: relative; }
.hero--photo h1, .hero--photo .hero-sub, .hero--photo .hero-note { color: #fff; }
.hero--photo .hero-sub { color: rgba(255, 255, 255, .85); }
.hero--photo .hero-note { color: rgba(255, 255, 255, .7); }
.hero--photo .hero-kicker { color: rgba(255, 255, 255, .9); }

/* Avant/après slider */
.ba-slider {
  position: relative; max-width: 720px; aspect-ratio: 16/9; margin: 0 auto 32px;
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--ombre);
}
.ba-before, .ba-after { position: absolute; inset: 0; display: flex; align-items: flex-end; font-weight: 700; color: #fff; padding: 16px 20px; }
.ba-before { justify-content: flex-start; }
.ba-after { justify-content: flex-end; }
.ba-before { background: linear-gradient(120deg, var(--secondaire), var(--encre)); }
.ba-after { background: linear-gradient(120deg, var(--accent), var(--accent-fonce)); clip-path: inset(0 0 0 50%); }
.ba-slider input[type=range] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.ba-handle { position: absolute; top: 0; bottom: 0; left: 50%; width: 3px; background: #fff; pointer-events: none; box-shadow: 0 0 8px rgba(0,0,0,.4); }
.ba-handle::after { content: "⇔"; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); background: #fff; color: var(--ink); width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; }

/* Placeholders photo (à remplacer par les vrais reportages) */
.ph { display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 600; border-radius: var(--radius); aspect-ratio: 4/3; font-size: .9rem; }
.ph-bad { background: linear-gradient(135deg, var(--secondaire), var(--encre)); }
.ph-good { background: linear-gradient(135deg, var(--accent), var(--accent-fonce)); }
.ph-portrait { aspect-ratio: 3/4; max-width: 220px;
  background: linear-gradient(135deg, var(--accent), var(--accent-fonce)); }

/* Grilles */
.grid-3 { display: grid; gap: 24px; grid-template-columns: 1fr; }
.grid-5 { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-5 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 980px) { .grid-5 { grid-template-columns: repeat(5, 1fr); } }
.compare { margin: 0; }
.compare .ph { margin-bottom: 8px; }
.compare figcaption { font-size: .9rem; color: var(--muted); }

/* Checklist prestation */
.checklist { list-style: none; padding: 0; max-width: 640px; }
.checklist li { padding: 10px 0 10px 36px; position: relative; border-bottom: 1px solid var(--line); }
.checklist li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 700; font-size: 1.2rem; }

/* Tarifs */
.pricing { display: grid; gap: 20px; grid-template-columns: 1fr; margin-top: 32px; }
/* V1.9 : 4 cartes possibles (S, M, bundle, exception) — la grille s'adapte */
@media (min-width: 760px) { .pricing { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); } }
.price-card[hidden] { display: none; }
.price-badge { margin: 0 0 6px; font-size: .8rem; font-weight: 600; color: var(--accent);
  text-transform: uppercase; letter-spacing: .06em; }
/* V1.9 G2 : option comprise dans le bundle — cochée, non interactive */
.opt-incluse { cursor: default; border-color: var(--accent); }
.opt-incluse .opt-prix { color: var(--accent); font-weight: 600; }
.price-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 24px; text-align: center; background: #fff; }
.price-card-featured { border-color: var(--accent); box-shadow: var(--ombre); }
.price-card h3 { margin: 0 0 6px; }
.price-crit { color: var(--muted); font-size: .92rem; min-height: 3em; }
.price { font-size: 2.6rem; font-weight: 800; margin: 8px 0 0; color: var(--accent); }
.price-custom { font-size: 1.8rem; }
.price-vat { color: var(--muted); font-size: .85rem; margin: 2px 0 18px; }

/* Cartes options (landing + tunnel) */
.opt-card {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; background: #fff;
  display: flex; flex-direction: column; gap: 4px;
}
.opt-card .opt-nom { font-weight: 700; }
.opt-card .opt-prix { color: var(--accent); font-weight: 700; }
.opt-card .opt-benef { color: var(--muted); font-size: .88rem; }

/* Bio */
.bio { display: flex; gap: 24px; flex-wrap: wrap; align-items: flex-start; }
.bio > div:last-child { flex: 1; min-width: 260px; }

/* FAQ */
details { border-bottom: 1px solid var(--line); padding: 14px 0; }
summary { cursor: pointer; font-weight: 700; font-size: 1.05rem; }
details p { color: var(--muted); }

.section-cta { background: var(--bg-alt); text-align: center; }

/* Bandeau agences + footer — clairs, hairlines (V1.8) */
.bandeau-agence { background: var(--accent-teinte); color: var(--encre); text-align: center;
  padding: 12px 20px; font-size: .92rem; }
.bandeau-agence a { color: var(--accent); }
.footer { background: var(--fond-alt); color: var(--secondaire); padding: 48px 0;
  font-size: .9rem; border-top: 1px solid var(--filet); }
.footer a { color: var(--accent); }

/* ===================== Tunnel ===================== */
.tunnel { position: fixed; inset: 0; background: #fff; z-index: var(--z-nav); display: flex; flex-direction: column; }
.tunnel[hidden], .sticky-total[hidden], .stepper[hidden] { display: none; }
.tunnel-head { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.tunnel-back, .tunnel-close { background: none; border: 0; font: inherit; cursor: pointer; color: var(--accent); font-weight: 700; padding: 6px; }
.tunnel-close { color: var(--muted); font-size: 1.1rem; }
.progress { flex: 1; height: 8px; background: var(--line); border-radius: 4px; overflow: hidden; }
.progress-bar { height: 100%; width: 0; background: var(--accent); transition: width .3s; }
.tunnel-body { flex: 1; overflow-y: auto; padding: 28px 20px 120px; max-width: 640px; margin: 0 auto; width: 100%; }
.tunnel-body h2 { margin-top: 0; }
.microcopy { color: var(--muted); font-size: .92rem; }

.choices { display: grid; gap: 12px; margin: 20px 0; }
.choice-btn {
  display: block; width: 100%; text-align: left; background: #fff; cursor: pointer;
  border: 1px solid var(--filet); border-radius: var(--radius); padding: 18px 20px;
  font: inherit; font-size: 1.08rem; font-weight: 600;
  transition: border-color .15s, background .15s, box-shadow .15s;
}
.choice-btn:hover { border-color: var(--accent); box-shadow: var(--ombre); }
.choice-btn.selected { border-color: var(--accent); background: var(--accent-teinte); }
.choice-btn small { display: block; font-weight: 400; color: var(--muted); }

/* Options cochables */
.opt-select { border: 1px solid var(--filet); border-radius: var(--radius); padding: 14px 16px; cursor: pointer; display: flex; gap: 12px; align-items: flex-start; margin-bottom: 12px; background: #fff; }
.opt-select.selected { border-color: var(--accent); background: var(--accent-teinte); }
.opt-select input[type=checkbox] { width: 22px; height: 22px; margin-top: 3px; accent-color: var(--accent); }
.stepper { display: inline-flex; align-items: center; gap: 10px; margin-top: 8px; }
.stepper button { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--accent); background: #fff; color: var(--accent); font-size: 1.2rem; font-weight: 700; cursor: pointer; }

/* Formulaires */
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; }
.field input, .field textarea {
  width: 100%; padding: 13px 16px; font: inherit; border: 1px solid var(--filet);
  border-radius: 12px; background: var(--fond);
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); }
.field .hint { color: var(--muted); font-size: .85rem; }
.checkbox-row { display: flex; gap: 10px; align-items: flex-start; margin: 14px 0; }
.checkbox-row input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--accent); }
.checkbox-row label { font-size: .95rem; }
.form-error { color: var(--danger); font-weight: 600; }
.km-result { padding: 12px 16px; border-radius: var(--radius); background: var(--accent-teinte); color: var(--ok); font-weight: 700; margin: 12px 0; }
.km-result.warn { background: var(--warn-bg); color: var(--warn-ink); }
/* Honeypot : hors écran, invisible pour les humains */
.hp-field { position: absolute; left: -9999px; top: -9999px; height: 0; overflow: hidden; }

/* Récap devis */
.recap { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin: 18px 0; }
.recap-line { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px dashed var(--line); }
.recap-line.negative { color: var(--ok); }
.recap-total { display: flex; justify-content: space-between; padding-top: 14px; font-size: 1.5rem; font-weight: 800; }
.recap-total .vat { display: block; font-size: .8rem; font-weight: 400; color: var(--muted); }
.coupon-row { display: flex; gap: 8px; margin: 14px 0; }
.coupon-row input { flex: 1; padding: 10px 14px; font: inherit; border: 1px solid var(--filet); border-radius: 12px; }

/* Bandeau total collant */
.sticky-total {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-sticky);
  display: flex; justify-content: space-between; align-items: center;
  background: var(--verre); color: var(--encre);
  -webkit-backdrop-filter: blur(20px) saturate(1.8);
  backdrop-filter: blur(20px) saturate(1.8);
  border-top: 1px solid var(--filet);
  padding: 14px 22px; font-size: 1.1rem;
}
@supports not (backdrop-filter: blur(20px)) {
  .sticky-total { background: rgba(255, 255, 255, .96); }
}
.sticky-total strong { font-size: 1.35rem; }

.tunnel-next { margin-top: 20px; width: 100%; }
.confirm-icon { font-size: 3rem; }
.tel-big { display: inline-block; font-size: 1.3rem; font-weight: 800; color: var(--accent); margin: 12px 0; }

/* ========== V1.4 — contenu éditable & témoignages (landing) ========== */
.ph { position: relative; overflow: hidden; }
.ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.temoignage { margin: 0; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 26px; background: #fff; box-shadow: var(--ombre); }
.temoignage-note { color: var(--etoile); letter-spacing: 2px; margin: 0 0 8px; }
.temoignage blockquote { margin: 0 0 10px; font-style: italic; }
.temoignage figcaption { color: var(--muted); font-weight: 700; }
.ec-avis { font-weight: 700; }

/* ========== V1.6 — Cônes de visée (plan interactif) ========== */
.ec-plan-cones { position: absolute; inset: 0; width: 100%; height: 100%;
  pointer-events: none; }
.ec-cone { opacity: 0; transition: opacity .15s; }
.ec-cone.visible { opacity: 1; }

/* ============================================================================
   V1.7 — Espace client : « la photo est le produit ».
   Fond clair quasi monochrome, typographie système énorme, modules très aérés,
   verre dépoli, pilules, ombres diffuses. Tokens scopés body.ec — la landing
   garde les siens. Accent réservé aux CTA et liens.
   ========================================================================== */
body.ec {
  /* V1.8 : alias purs des tokens :root — zéro divergence possible */
  --ec-fond: var(--fond);       --ec-fond-alt: var(--fond-alt);
  --ec-encre: var(--encre);     --ec-secondaire: var(--secondaire);
  --ec-filet: var(--filet);     --ec-accent: var(--accent);
  --ec-radius: var(--radius);   --ec-pilule: var(--pilule);
  --ec-ombre: var(--ombre);     --ec-verre: var(--verre);
  background: var(--ec-fond); color: var(--ec-encre); line-height: 1.5;
}

/* ---------- Pilules & liens (un seul primaire par écran) ---------- */
.ec-pilule { display: inline-block; background: var(--ec-accent); color: #fff; border: 0;
  font: inherit; font-weight: 600; font-size: .95rem; padding: 10px 22px;
  border-radius: var(--ec-pilule); text-decoration: none; cursor: pointer;
  white-space: nowrap; transition: background .15s; }
.ec-pilule:hover { background: var(--accent-dark); }
.ec-lien { background: none; border: 0; padding: 0; font: inherit; font-weight: 400;
  color: var(--ec-accent); cursor: pointer; text-decoration: none; }
.ec-lien:hover { text-decoration: underline; }

/* ---------- Hero : la couverture plein viewport ---------- */
.ec-hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end;
  overflow: hidden; }
.ec-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ec-hero-voile { position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 45%, rgba(0,0,0,.45) 100%); }
.ec-hero-texte { position: relative; padding: clamp(24px, 5vw, 64px);
  padding-bottom: calc(clamp(24px, 5vw, 64px) + env(safe-area-inset-bottom));
  padding-left: calc(clamp(24px, 5vw, 64px) + env(safe-area-inset-left));
  max-width: 980px; color: #fff; }
.ec-eyebrow-hero { margin: 0 0 6px; font-size: 1.05rem; font-weight: 600;
  color: rgba(255, 255, 255, .9); }
.ec-hero h1 { margin: 0; font-size: clamp(2.2rem, 6vw, 4rem); font-weight: 700;
  line-height: 1.05; letter-spacing: -.015em; color: #fff; }
.ec-hero-meta { margin: 10px 0 0; font-size: 1rem; color: rgba(255, 255, 255, .75); }
.ec-chevron { position: absolute; left: 50%; bottom: calc(16px + env(safe-area-inset-bottom));
  transform: translateX(-50%); animation: ec-chevron 2s ease-in-out infinite; }
@keyframes ec-chevron {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}
.ec-hero--sans { min-height: 50vh; background: var(--ec-fond-alt); }
.ec-hero--sans .ec-hero-texte, .ec-hero--sans .ec-hero h1,
.ec-hero--sans h1 { color: var(--ec-encre); }
.ec-hero--sans .ec-eyebrow-hero { color: var(--ec-accent); }
.ec-hero--sans .ec-hero-meta { color: var(--ec-secondaire); }

/* ---------- Barre locale en verre dépoli ---------- */
.ec-barre { position: fixed; top: 0; left: 0; right: 0; z-index: var(--z-sticky);
  display: flex; align-items: center; gap: 20px;
  padding: 10px clamp(16px, 3vw, 28px);
  padding-top: calc(10px + env(safe-area-inset-top));
  background: var(--ec-verre);
  -webkit-backdrop-filter: blur(20px) saturate(1.8);
  backdrop-filter: blur(20px) saturate(1.8);
  border-bottom: 1px solid var(--ec-filet);
  transform: translateY(-100%); visibility: hidden;
  transition: transform .3s ease, visibility .3s; }
.ec-barre.visible { transform: none; visibility: visible; }
@supports not (backdrop-filter: blur(20px)) {
  .ec-barre { background: rgba(255, 255, 255, .96); }
}
.ec-barre-titre { font-weight: 600; font-size: .95rem; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; max-width: 30ch; }
.ec-barre-ancres { display: flex; gap: 22px; margin: 0 auto; }
.ec-barre-ancres a { color: var(--ec-secondaire); text-decoration: none; font-size: .95rem;
  transition: color .15s; }
.ec-barre-ancres a:hover, .ec-barre-ancres a.actif { color: var(--ec-encre); }
@media (max-width: 700px) {
  .ec-barre-titre { display: none; }
  .ec-barre-ancres { margin: 0 auto 0 0; gap: 16px; }
  .ec-barre .ec-pilule { padding: 8px 16px; font-size: .9rem; }
}

/* ---------- Gabarit de module ---------- */
.ec-module { padding: clamp(72px, 10vw, 128px) clamp(16px, 4vw, 40px); }
main > .ec-module:nth-of-type(even) { background: var(--ec-fond-alt); }
.ec-module-tete { max-width: 820px; margin: 0 auto clamp(32px, 5vw, 56px);
  text-align: center; }
.ec-eyebrow { margin: 0 0 8px; font-size: 1rem; font-weight: 600; color: var(--ec-accent); }
.ec-module-tete h2 { margin: 0; font-size: clamp(1.6rem, 4vw, 2.5rem); font-weight: 700;
  line-height: 1.1; letter-spacing: -.01em; color: var(--ec-encre); }
.ec-module-phrase { margin: 14px auto 0; max-width: 56ch; font-size: 1.05rem;
  color: var(--ec-secondaire); }
.ec-objet { max-width: 1200px; margin: 0 auto; }
.ec-objet--large { max-width: 1400px; }
/* Apparition douce (une fois, IntersectionObserver) — jamais sans JS ni en reduced-motion */
.js .ec-module { opacity: 0; transform: translateY(16px);
  transition: opacity .45s ease-out, transform .45s ease-out; }
.js .ec-module.apparu { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .ec-module { opacity: 1; transform: none; }
  .ec-chevron { animation: none; }
}

/* ---------- Module visite ---------- */
button.ec-visite-apercu { position: relative; display: block; width: 100%; border: 0;
  padding: 0; background: none; cursor: pointer; border-radius: var(--ec-radius);
  overflow: hidden; box-shadow: var(--ec-ombre); }
.ec-visite-apercu img { display: block; width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.ec-play { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 72px; height: 72px; border-radius: 50%; background: var(--ec-verre);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  display: flex; align-items: center; justify-content: center; color: var(--ec-encre);
  box-shadow: var(--ec-ombre); transition: transform .2s; }
.ec-play svg { margin-left: 3px; }
.ec-visite-apercu:hover .ec-play { transform: translate(-50%, -50%) scale(1.04); }
#viewer-360 { width: 100%; aspect-ratio: 16/9; min-height: 280px;
  border-radius: var(--ec-radius); overflow: hidden; box-shadow: var(--ec-ombre); }
.ec-module-liens { display: flex; gap: 28px; justify-content: center; margin: 22px 0 0; }
.ec-visite-erreur { color: var(--danger); font-weight: 600; text-align: center; }
.ec-spinner { position: absolute; top: 50%; left: 50%; width: 40px; height: 40px;
  margin: -20px 0 0 -20px; border: 4px solid rgba(255, 255, 255, .35);
  border-top-color: #fff; border-radius: 50%; animation: ec-rotation .8s linear infinite; }
@keyframes ec-rotation { to { transform: rotate(360deg); } }

/* ---------- Module plan ---------- */
.ec-plan-carte { background: #fff; border: 1px solid rgba(0, 0, 0, .04);
  border-radius: var(--ec-radius); box-shadow: var(--ec-ombre);
  padding: clamp(16px, 4vw, 40px); }
.ec-plan-etage { margin: 0 0 14px; font-weight: 600; font-size: .95rem;
  color: var(--ec-secondaire); }
.ec-plan-onglets { display: flex; gap: 24px; margin: 0 0 18px;
  border-bottom: 1px solid var(--ec-filet); }
.ec-onglet { background: none; border: 0; padding: 0 0 10px; font: inherit;
  font-weight: 600; font-size: .95rem; color: var(--ec-secondaire); cursor: pointer;
  border-bottom: 2px solid transparent; margin-bottom: -1px; }
.ec-onglet.actif { color: var(--ec-encre); border-bottom-color: var(--ec-accent); }
.ec-plan-feuille { position: relative; display: block; max-width: 100%; }
.ec-plan-feuille img { width: 100%; display: block; }
.ec-marqueur { position: absolute; transform: translate(-50%, -50%); width: 36px;
  height: 36px; border-radius: 50%; background: #fff; color: var(--ec-encre);
  font: inherit; font-weight: 600; font-size: .9rem; border: 0; cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .18); padding: 0;
  display: flex; align-items: center; justify-content: center;
  transition: transform .15s, background .15s, color .15s; }
.ec-marqueur--scene { box-shadow: 0 2px 10px rgba(0, 0, 0, .18),
  inset 0 0 0 2px var(--ec-accent); }
.ec-marqueur:hover, .ec-marqueur:focus-visible {
  transform: translate(-50%, -50%) scale(1.1); background: var(--ec-accent); color: #fff; }
@media (max-width: 600px) { .ec-marqueur { width: 38px; height: 38px; } }

/* ---------- Galerie éditoriale ---------- */
.ec-grille { display: grid; gap: 16px; grid-auto-flow: dense;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); }
@media (max-width: 700px) { .ec-grille { grid-template-columns: 1fr; } }
@media (min-width: 700px) {
  .ec-photo--couverture { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
}
.ec-photo { margin: 0; aspect-ratio: 3/2; border-radius: var(--ec-radius);
  overflow: hidden; transition: box-shadow .25s ease; }
.ec-photo:hover { box-shadow: var(--ec-ombre); }
.ec-zoom { display: block; height: 100%; }
.ec-zoom:focus-visible { outline: 3px solid var(--ec-accent); outline-offset: 2px;
  border-radius: var(--ec-radius); }
.ec-photo img { width: 100%; height: 100%; object-fit: cover;
  display: block; transition: transform .25s ease; }
.ec-photo:hover img { transform: scale(1.015); }

/* ---------- Lightbox noire, chrome auto-masqué ---------- */
.ec-lightbox { position: fixed; inset: 0; background: #000; z-index: var(--z-overlay);
  display: flex; align-items: center; justify-content: center; }
.ec-lightbox[hidden] { display: none; }
.ec-lightbox img { max-width: 96vw; max-height: 92svh; transition: opacity .25s; }
.ec-lb-compteur, .ec-lb-fermer, .ec-lb-prec, .ec-lb-suiv, .ec-lb-dl {
  transition: opacity .3s; }
.ec-lightbox.chrome-cache .ec-lb-compteur, .ec-lightbox.chrome-cache .ec-lb-fermer,
.ec-lightbox.chrome-cache .ec-lb-prec, .ec-lightbox.chrome-cache .ec-lb-suiv,
.ec-lightbox.chrome-cache .ec-lb-dl { opacity: 0; pointer-events: none; }
.ec-lb-compteur { position: absolute; top: calc(18px + env(safe-area-inset-top));
  left: 22px; color: rgba(255, 255, 255, .6); font-size: .9rem; }
.ec-lightbox button { border: 0; cursor: pointer; color: #fff;
  background: rgba(255, 255, 255, .12);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  width: 48px; height: 48px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; }
.ec-lightbox button:hover { background: rgba(255, 255, 255, .22); }
.ec-lb-fermer { position: absolute; top: calc(14px + env(safe-area-inset-top)); right: 16px; }
.ec-lb-prec { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); }
.ec-lb-suiv { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); }
.ec-lb-dl { position: absolute; bottom: calc(22px + env(safe-area-inset-bottom));
  left: 50%; transform: translateX(-50%); background: #fff; color: #000;
  border-radius: var(--ec-pilule); padding: 12px 26px; font-weight: 600;
  text-decoration: none; font-size: .95rem; }
.ec-lb-dl:hover { background: var(--fond-alt); }
.ec-lightbox :focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.ec-lb-indice { position: absolute; bottom: calc(84px + env(safe-area-inset-bottom));
  left: 50%; transform: translateX(-50%); color: rgba(255, 255, 255, .8);
  background: rgba(255, 255, 255, .12); padding: 6px 16px;
  border-radius: var(--ec-pilule); font-size: .9rem;
  animation: ec-pulse 1.6s ease-in-out infinite; }
@keyframes ec-pulse { 50% { opacity: .5; } }
@media (max-width: 600px) { .ec-lb-prec, .ec-lb-suiv { display: none; } }

/* ---------- Pied de page ---------- */
.ec-pied { border-top: 1px solid var(--ec-filet); background: var(--ec-fond-alt);
  text-align: center;
  padding: 48px 20px calc(40px + env(safe-area-inset-bottom)); }
.ec-pied-marque { margin: 0 0 6px; font-weight: 600; }
.ec-pied-contact { margin: 0 0 18px; }
.ec-pied-contact a { color: var(--ec-secondaire); text-decoration: none; }
.ec-pied-contact a:hover { color: var(--ec-encre); }
.ec-pied-mention { margin: 4px 0; font-size: 13px; color: var(--ec-secondaire); }
.ec-pied-mention a { color: var(--ec-accent); text-decoration: none; }
.ec-pied-mention a:hover { text-decoration: underline; }

/* ---------- Pages sobres : /connexion, /mes-livraisons ---------- */
body.ec.ec-page-sobre { background: var(--ec-fond-alt); min-height: 100svh;
  display: flex; flex-direction: column; }
.ec-page-sobre .ec-module { flex: 1; }
.cl-carte-connexion { max-width: 440px; margin: 0 auto; background: #fff;
  border-radius: var(--ec-radius); box-shadow: var(--ec-ombre); padding: 32px;
  text-align: left; }
.cl-carte-connexion .ec-module-phrase { margin: 0 0 20px; }
.cl-form label { display: block; font-weight: 600; margin-bottom: 8px; }
.cl-form input[type=email] { width: 100%; padding: 13px 16px; font: inherit;
  border: 1px solid var(--ec-filet); border-radius: 12px; margin-bottom: 14px;
  background: var(--ec-fond); }
.cl-form input[type=email]:focus { outline: none; border-color: var(--ec-accent); }
.cl-form .ec-pilule { width: 100%; padding: 14px 28px; text-align: center; }
#cl-message { margin-top: 14px; color: var(--ec-secondaire); text-align: center; }
.cl-grille { display: grid; gap: 28px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .cl-grille { grid-template-columns: repeat(2, 1fr); } }
.cl-carte { display: block; text-decoration: none; color: var(--ec-encre); }
.cl-carte img { width: 100%; aspect-ratio: 3/2; object-fit: cover; display: block;
  border-radius: var(--ec-radius); box-shadow: var(--ec-ombre);
  transition: transform .25s ease; }
.cl-carte:hover img { transform: scale(1.015); }
.cl-carte-infos { display: block; padding: 14px 4px 0; }
.cl-carte-infos strong { font-weight: 600; }
.cl-carte-infos small { display: block; color: var(--ec-secondaire); margin-top: 2px;
  font-size: .9rem; }
.cl-deconnexion { text-align: center; margin-top: 40px; }

/* ---------- /visite publique : barre de verre sombre ---------- */
.visite-publique { margin: 0; height: 100vh; background: #000; }
#viewer { position: fixed; inset: 0; }
.vp-bandeau { position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-sticky);
  display: flex; align-items: center; gap: 16px;
  padding: 10px clamp(14px, 3vw, 24px);
  padding-bottom: calc(10px + env(safe-area-inset-bottom));
  background: rgba(29, 29, 31, .72);
  -webkit-backdrop-filter: blur(20px) saturate(1.8);
  backdrop-filter: blur(20px) saturate(1.8);
  font-size: .9rem; }
@supports not (backdrop-filter: blur(20px)) {
  .vp-bandeau { background: rgba(29, 29, 31, .96); }
}
.vp-bandeau a { color: rgba(255, 255, 255, .85); text-decoration: none;
  white-space: nowrap; }
.vp-bandeau strong { color: #fff; font-weight: 600; }
.vp-titre { color: #fff; font-weight: 600; margin: 0 auto; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap; }
.vp-partager { font: inherit; font-weight: 600; color: #fff;
  background: rgba(255, 255, 255, .14); border: 0;
  border-radius: var(--ec-pilule); padding: 7px 18px; cursor: pointer; }
.vp-partager:hover { background: rgba(255, 255, 255, .26); }
.vp-spinner { position: absolute; top: 50%; left: 50%; width: 40px; height: 40px;
  margin: -20px 0 0 -20px; border: 4px solid rgba(255, 255, 255, .35);
  border-top-color: #fff; border-radius: 50%; animation: ec-rotation .8s linear infinite; }
.vp-erreur { position: fixed; top: 45%; left: 0; right: 0; text-align: center;
  color: #fff; font-weight: 600; }

/* hidden doit gagner sur les display: des classes */
.ec-pleinecran[hidden], .ec-plan-feuille[hidden], .ec-visite-apercu[hidden],
.ec-barre[hidden] { display: none !important; }

/* Pages légales & conseils (V1.8) — largeur de lecture, mêmes tokens */
main.section .container.narrow { max-width: 720px; }
main.section .container.narrow h1 { font-size: clamp(1.8rem, 5vw, 2.6rem); }
main.section .container.narrow a { color: var(--accent); }

/* ===== V1.9 lot V — vidéo YouTube dans l'espace client (click-to-load) ===== */
.ec-video-cadre { position: relative; margin: 0; aspect-ratio: 16/9; overflow: hidden;
  border-radius: var(--ec-radius); background: var(--ec-encre); }
.ec-video-cadre img { width: 100%; height: 100%; object-fit: cover; display: block;
  opacity: .85; }
.ec-video-cadre iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.ec-video-lire { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 64px; height: 64px; border: 0; border-radius: 50%; cursor: pointer;
  background: var(--ec-verre); color: var(--ec-encre); display: flex; align-items: center;
  justify-content: center; box-shadow: var(--ec-ombre); }
@supports (backdrop-filter: blur(1px)) {
  .ec-video-lire { backdrop-filter: blur(20px) saturate(1.8); }
}
.ec-video-lire:hover { transform: translate(-50%, -50%) scale(1.06); }
.ec-video-lire svg { margin-left: 3px; }
.ec-video-titre { margin: 10px 0 0; font-weight: 600; }
