/*
Theme Name: Kinetic Space
Theme URI: https://kineticspace.fr
Author: Kinetic Space
Description: Thème bloc sur mesure de Kinetic Space — photo, drone, retouche et Kinetic Motion pour l'immobilier de prestige.
Version: 1.17.1
Requires at least: 6.6
Requires PHP: 8.0
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: kinetic-space
Tags: block-theme, full-site-editing, dark
*/

:root figure:where(.wp-block-image, .wp-block-video) { margin: 0; }
:root :where(.wp-block-group.has-background) { padding: 0; }
/* =========================================================
   Kinetic Space — maquette, design 2
   Registre relevé sur la référence : tout sombre, serif + script,
   un seul accent bronze, angles droits et coins coupés en biais.
   ========================================================= */
:root {
  --bg: #0D1518;
  --bg-deep: #0B0F12;
  --band: #26282B;
  --panel: #313236;
  --line: #262E33;
  --line-soft: rgba(var(--ligne-rgb, 230, 225, 216),.14);
  --text: #E6E1D8;
  --muted: #8E9194;
  --bronze: #A07A56;
  --bronze-2: #8A6E56;
  --logo: #F1C600;
  --f-display: var(--wp--preset--font-family--titres);
  --f-script: var(--wp--preset--font-family--accent);  /* accents : italique */
  --f-logo: var(--wp--preset--font-family--logo);              /* réservé au logo */
  --f-body: var(--wp--preset--font-family--texte);
  --wrap: 1180px;
  --cut: 90px;
}

:root *, :root *::before, :root *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-size: 15px; line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
:root img { display: block; max-width: 100%; }
:root figure { margin: 0; }
:root a { color: inherit; text-decoration: none; }
:root ul, :root ol { list-style: none; margin: 0; padding: 0; }
:root p { margin: 0 0 1em; }
:root h1, :root h2, :root h3 { font-weight: 400; line-height: 1.08; margin: 0; hyphens: none; text-wrap: balance; }
:root h2 { font-size: clamp(34px, 3.6vw, 50px); letter-spacing: .01em; }
:root h3 { font-size: 20px; font-weight: 500; }

:root .wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 32px; }
:root .script { font-family: var(--f-script); font-style: italic; font-weight: 400; color: var(--bronze); letter-spacing: 0; text-transform: none; }
:root h1 :is(.script, em), :root h2 :is(.script, em) { font-size: .8em; line-height: 1; }
:root .kicker { font: italic 400 15px/1.2 var(--f-script); color: var(--bronze); margin-bottom: 16px; }

/* Coins coupés en biais (géométrie de la référence) */
:root .cut-br, :root .is-style-coin-bas-droite { clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%); }
:root .cut-bl, :root .is-style-coin-bas-gauche { clip-path: polygon(0 0, 100% 0, 100% 100%, var(--cut) 100%, 0 calc(100% - var(--cut))); }
:root .cut-r  { clip-path: polygon(0 0, 100% 0, 100% 40%, 82% 100%, 0 100%); }

/* ---------- Boutons ---------- */
:root .wp-block-button.is-style-bronze .wp-block-button__link {
  display: inline-flex; justify-content: center; align-items: center;
  padding: 13px 28px;
  background: linear-gradient(90deg, var(--bronze-2), var(--bronze));
  color: #fff; font: 600 13px/1 var(--f-body); letter-spacing: .02em;
  border: 0; border-radius: 2px; cursor: pointer;
  transition: filter .25s;
}
:root .wp-block-button.is-style-bronze .wp-block-button__link:hover { filter: brightness(1.12); }
:root .btn-block { width: 100%; }

/* ---------- En-tête ---------- */
:root .site-header { position: relative; z-index: 30; background: var(--bg-deep); }
:root .header-inner {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  height: 92px; padding: 0 36px;
}
:root .burger { justify-self: start; background: none; border: 0; padding: 8px 0; cursor: pointer; z-index: 2; }
:root .burger span { display: block; width: 30px; height: 2px; background: var(--text); margin: 6px 0; transition: transform .3s, opacity .3s; }
:root .logo { display: flex; flex-direction: column; align-items: center; line-height: 1; }
:root .logo-main { font: 500 22px/1 var(--f-display); text-transform: uppercase; letter-spacing: .12em; }
:root .logo-script { font: 400 15px/1 var(--f-body); color: var(--logo); margin-top: 7px; letter-spacing: .06em; }
:root .header-tel { justify-self: end; font-size: 14px; letter-spacing: .04em; }
:root .header-tel:hover { color: var(--bronze); }

:root .menu {
  position: fixed; inset: 0; z-index: 1;
  background: var(--bg-deep);
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  opacity: 0; visibility: hidden; transition: opacity .35s, visibility .35s;
}
:root .menu ul { text-align: center; }
:root .menu li a { display: inline-flex; align-items: baseline; gap: 16px; font: 400 clamp(38px, 5vw, 62px)/1.25 var(--f-display); transition: color .2s; }
:root .menu li a small { font: 400 13px var(--f-body); color: var(--muted); }
:root .menu li a:hover, :root .menu li a.is-current { color: var(--bronze); }
:root .menu-foot { margin-top: 48px; font-size: 13px; color: var(--muted); }
:root .menu-open { overflow: hidden; }
:root .menu-open .menu { opacity: 1; visibility: visible; }
:root .menu-open .site-header { position: fixed; inset: 0 0 auto 0; }
:root .menu-open .header-inner { position: relative; z-index: 2; }
:root .menu-open .burger span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
:root .menu-open .burger span:nth-child(2) { opacity: 0; }
:root .menu-open .burger span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero ---------- */
:root .hero {
  position: relative;
  min-height: min(82vh, 760px);
  display: flex; align-items: flex-end;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 110px), calc(100% - 110px) 100%, 0 100%);
  overflow: hidden;
}
:root .hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
:root .hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(11,15,18,.78) 0, rgba(11,15,18,.35) 55%, rgba(11,15,18,.25)); }
:root .hero-content {
  position: relative; z-index: 1;
  width: 100%; max-width: 1340px; margin: 0 auto;
  /* marges plafonnées : sur grand écran, 9 % de la largeur rognerait la place du texte (max-width fixe) */
  padding: 0 min(9%, 130px) 96px;
  display: grid; grid-template-columns: 1fr minmax(180px, auto); align-items: end; column-gap: 40px;
}
:root .hero h1 {
  grid-column: 1; grid-row: 1;
  font-size: clamp(46px, 5.4vw, 82px); font-weight: 400; white-space: nowrap;
  text-transform: uppercase; letter-spacing: .005em; line-height: 1.02;
  color: #fff;
}
:root .hero h1 :is(.script, em) { color: #fff; font-size: .78em; }
:root .hero-aside { grid-column: 2; grid-row: 1; font-size: 18px; line-height: 1.5; color: #fff; margin: 0 0 16px; }
:root .wp-block-button.is-style-anneau .wp-block-button__link {
  grid-column: 1; grid-row: 2; justify-self: start;
  position: relative; margin-top: 34px;
  display: inline-flex; align-items: center; height: 64px; padding-left: 2px;
  font: 500 15px var(--f-body); color: #fff;
}
:root .wp-block-button.is-style-anneau .wp-block-button__link::after {
  content: ""; position: absolute; left: 44px; top: 0; width: 64px; height: 64px; border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,.9); border-left-color: transparent;
  transform: rotate(-30deg); transition: transform .5s;
}
:root .wp-block-button.is-style-anneau .wp-block-button__link:hover::after { transform: rotate(150deg); }

/* ---------- À propos + galerie ---------- */
:root .spotlight { padding: 130px 0 120px; }
:root .sec-head { text-align: center; margin-bottom: 56px; }
:root .sec-sub { color: var(--muted); font-size: 14.5px; margin: 22px 0 0; }
:root .gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; max-width: 1000px; margin: 0 auto; }
:root .gallery figure { aspect-ratio: 1 / 1; overflow: hidden; }
:root .gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s; }
:root .gallery figure:hover img { transform: scale(1.05); }
:root .gallery .g-big { grid-column: span 2; aspect-ratio: 1.3 / 1; }

/* ---------- Promesse ---------- */
:root .promise { padding-bottom: 120px; }
:root .promise-band { background: var(--band); text-align: center; padding: 28px 24px 34px; }
:root .promise-band .kicker { font-size: 14px; margin-bottom: 8px; }
:root .promise-band h2 { font-size: clamp(24px, 2.5vw, 34px); line-height: 1.3; }
:root .slider { position: relative; max-width: 820px; margin-top: 64px; text-align: center; display: grid; grid-template-columns: 60px 1fr 60px; align-items: start; }
:root .slides { display: grid; }
:root .slide { grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity .6s, visibility .6s; }
:root .slide.is-active { opacity: 1; visibility: visible; }
:root .slide blockquote { margin: 0; font-size: 15px; line-height: 1.8; color: var(--soft, #B9B6B0); }
:root .quote-mark { display: block; font: 600 80px/.9 var(--f-display); color: var(--deco, #6D5A48); margin-top: 26px; height: 40px; }
:root .slide figcaption { font-size: 14px; margin-top: 12px; }
:root .slider-arrow { background: none; border: 0; padding: 8px 0; cursor: pointer; margin-top: 18px; }
:root .slider-arrow svg { width: 40px; height: 12px; fill: none; stroke: var(--muted); stroke-width: 1.2; transition: stroke .2s; }
:root .slider-arrow:hover svg { stroke: var(--bronze); }
:root .slider-arrow.next { justify-self: end; }

/* ---------- Méthode ---------- */
:root .method {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 80px; align-items: center;
  padding: 0 0 130px calc(max(32px, (100vw - var(--wrap)) / 2 + 32px));
}
:root .method h2 { font-size: clamp(44px, 4.6vw, 66px); line-height: 1; margin-bottom: 44px; }
:root .method h2 :is(.script, em) { font-size: .78em; line-height: 1.2; }
:root .flow li { display: grid; grid-template-columns: 36px 1fr; gap: 18px; margin-bottom: 30px; }
:root .flow-ico { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--deco, #5D4C3D); display: grid; place-items: center; }
:root .flow-ico svg { width: 16px; height: 16px; fill: none; stroke: var(--bronze); stroke-width: 1.4; stroke-linejoin: round; }
:root .flow h3 { font: 500 15px/1.3 var(--f-body); margin: 6px 0 6px; }
:root .flow p { font-size: 13px; color: var(--muted); margin: 0; max-width: 300px; }
:root .method-img { aspect-ratio: 1.3 / 1; overflow: hidden; }
:root .method-img img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Services ---------- */
:root .summary { padding-bottom: 120px; }
:root .summary-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 56px; align-items: start; }
:root .summary-tall { aspect-ratio: 0.63 / 1; overflow: hidden; }
:root .summary-tall img { width: 100%; height: 100%; object-fit: cover; }
:root .summary-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; margin-bottom: 30px; }
:root .summary-head h2 { margin-bottom: 14px; }
:root .price { font-size: 15px; margin: 0; }
:root .price span { font: 400 26px var(--f-display); color: var(--bronze); margin-left: 4px; }
:root .summary-thumb { width: 150px; aspect-ratio: 1; overflow: hidden; flex: 0 0 auto; }
:root .summary-thumb img { width: 100%; height: 100%; object-fit: cover; }
:root .panel { background: var(--panel); padding: 30px 30px 26px; }
:root .svc-lines { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; margin-bottom: 28px; }
:root .svc-lines li { border-bottom: 1px solid rgba(var(--ligne-rgb, 230, 225, 216),.22); padding: 16px 0 12px; }
:root .svc-lines strong { display: block; font-weight: 500; font-size: 14px; }
:root .svc-lines span { font-size: 12.5px; color: var(--muted); }
:root .panel .wp-block-button.is-style-bronze .wp-block-button__link { width: 100%; }
:root .panel-note { text-align: center; font-size: 12px; color: var(--muted); margin: 14px 0 0; }

/* ---------- Demande de devis ---------- */
:root .inquiry { padding-bottom: 110px; }
:root .inquiry-box { max-width: 1000px; margin: 0 auto; border: 1px solid var(--line); background: rgba(var(--voile-rgb, 6, 10, 11),.35); padding: 64px 80px 66px; text-align: center; }
:root .inquiry-box h2 { margin-bottom: 40px; }
:root .line-form { text-align: left; }
:root .row { display: grid; gap: 22px; margin-bottom: 26px; }
:root .row-3 { grid-template-columns: repeat(3, 1fr); }
:root .row-2 { grid-template-columns: 1fr 1fr; }
:root .line-form label { display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; color: var(--muted); }
:root .line-form input, :root .line-form select, :root .line-form textarea {
  background: transparent; border: 0; border-bottom: 1px solid rgba(var(--ligne-rgb, 230, 225, 216),.3); border-radius: 0;
  color: var(--text); font: 14px var(--f-body); padding: 10px 0; width: 100%;
}
:root .line-form select { appearance: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%238E9194' stroke-width='1.3'/%3E%3C/svg%3E") no-repeat right 4px center / 11px; }
:root .line-form select option { background: var(--bg); }
:root .line-form input:focus, :root .line-form select:focus, :root .line-form textarea:focus { outline: none; border-bottom-color: var(--bronze); }
:root .line-form .wp-block-button.is-style-bronze .wp-block-button__link { margin-top: 10px; }
:root .closing-img { width: 300px; aspect-ratio: 3 / 1; overflow: hidden; margin: 80px auto 0; }
:root .closing-img img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Pied de page ---------- */
:root .site-footer { padding: 30px 0 34px; }
:root .footer-top { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-bottom: 48px; border-bottom: 1px solid var(--line-soft); }
:root .footer-logo { font: 400 34px/1 var(--f-display); text-transform: uppercase; letter-spacing: .06em; }
:root .footer-nav { display: flex; flex-wrap: wrap; gap: 32px; font-size: 13px; }
:root .footer-nav a:hover, :root .footer-bottom a:hover { color: var(--bronze); }
:root .footer-bottom { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; padding-top: 22px; font-size: 12px; color: var(--muted); }
:root .footer-bottom > a { justify-self: end; }
:root .socials { display: flex; gap: 14px; }
:root .socials svg { width: 17px; height: 17px; fill: none; stroke: var(--text); stroke-width: 1.5; stroke-linejoin: round; }
:root .socials a:hover svg { stroke: var(--bronze); }

/* ---------- Boutons secondaires ---------- */
:root .wp-block-button.is-style-contour .wp-block-button__link {
  display: inline-flex; justify-content: center; align-items: center;
  padding: 12px 28px; border: 1px solid var(--bronze); border-radius: 2px;
  font: 600 13px/1 var(--f-body); color: var(--text);
  transition: background .25s, color .25s;
}
:root .wp-block-button.is-style-contour .wp-block-button__link:hover { background: var(--bronze); color: #fff; }
:root .sec-sub.left { text-align: left; }
:root .soft { color: var(--soft, #B9B6B0); }

/* ---------- Avant / après ---------- */
:root .before-after { padding-bottom: 130px; }
:root .ba-stage { max-width: 1040px; margin: 0 auto; }
:root .ba {
  display: none; position: relative; aspect-ratio: 16 / 10; overflow: hidden;
  user-select: none; -webkit-user-select: none; touch-action: pan-y;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%);
}
:root .ba.is-active { display: block; }
:root .ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
/* L'« avant » est la vraie prise de vue brute du client : aucun filtre, aucune déformation */
:root .ba-after { clip-path: inset(0 0 0 var(--pos)); }
:root .ba::after { content: ""; position: absolute; top: 0; bottom: 0; left: var(--pos); width: 1px; background: rgba(255,255,255,.85); pointer-events: none; }
:root .ba-handle {
  position: absolute; top: 50%; left: var(--pos); translate: -50% -50%; z-index: 2;
  width: 58px; height: 58px; border-radius: 50%;
  background: rgba(11,15,18,.72); border: 1px solid var(--bronze);
  display: grid; place-items: center; pointer-events: none;
}
:root .ba-handle svg { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 1.5; }
:root .ba-range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; z-index: 3; }
:root .ba-label { position: absolute; bottom: 18px; z-index: 1; font: italic 400 15px/1 var(--f-script); color: #fff; background: rgba(11,15,18,.6); padding: 8px 14px 6px; }
:root .ba-label-before { left: 18px; }
:root .ba-label-after { right: calc(var(--cut) + 8px); }
:root .ba-thumbs { display: flex; justify-content: center; gap: 12px; margin-top: 20px; }
:root .ba-thumb { width: 112px; height: 70px; padding: 0; border: 1px solid transparent; background: none; cursor: pointer; opacity: .45; transition: opacity .25s, border-color .25s; }
:root .ba-thumb img { width: 100%; height: 100%; object-fit: cover; }
:root .ba-thumb.is-active, :root .ba-thumb:hover { opacity: 1; border-color: var(--bronze); }

/* ---------- Kinetic Motion ---------- */
:root .motion { padding-bottom: 130px; }
:root .motion-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 64px; align-items: center; }
:root .motion-text h2 { margin-bottom: 22px; }
:root .motion-text > p { font-size: 14.5px; color: var(--soft, #B9B6B0); }
:root .motion-strong { font: 400 21px/1.4 var(--f-display) !important; color: var(--text) !important; border-left: 2px solid var(--bronze); padding-left: 18px; margin: 24px 0; }
:root .motion-points { margin: 0 0 32px; }
:root .motion-points li { position: relative; padding-left: 26px; margin-bottom: 8px; font-size: 14px; }
:root .motion-points li::before { content: ""; position: absolute; left: 0; top: 12px; width: 14px; height: 1px; background: var(--bronze); }
:root .motion-demo { display: grid; grid-template-columns: 1fr 44px 1fr; align-items: center; gap: 14px; }
:root .motion-card { position: relative; aspect-ratio: 4 / 5; overflow: hidden; }
:root .motion-card img { width: 100%; height: 100%; object-fit: cover; }
:root .motion-card figcaption {
  position: absolute; left: 12px; bottom: 12px; z-index: 2;
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(11,15,18,.72); padding: 7px 12px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
}
:root .rec { width: 7px; height: 7px; border-radius: 50%; background: var(--bronze); animation: blink 1.4s infinite; }
:root .motion-arrow svg { width: 44px; height: 12px; fill: none; stroke: var(--bronze); stroke-width: 1.2; }
:root .is-live { position: relative; overflow: hidden; }
:root .is-live img { animation: kinetic 9s ease-in-out infinite alternate; }
:root .motion-sheen {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(105deg, transparent 38%, rgba(255,236,210,.20) 50%, transparent 62%);
  background-size: 260% 100%; animation: sheen 7s ease-in-out infinite; mix-blend-mode: screen;
}
@keyframes kinetic { from { transform: scale(1) translate(0, 0); } to { transform: scale(1.14) translate(-3%, -2%); } }
@keyframes sheen { 0% { background-position: 120% 0; } 100% { background-position: -40% 0; } }
@keyframes blink { 50% { opacity: .25; } }
:root .motion-pairs { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }

/* Kinetic Motion : plusieurs photos du shooting → une vidéo verticale */
:root .km-show { display: grid; grid-template-columns: minmax(0, 1fr) 44px minmax(0, 300px); align-items: center; gap: 18px; }
:root .km-label { font: italic 400 15px/1.2 var(--f-script); color: var(--bronze); margin-bottom: 14px; }
:root .km-src-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
:root .km-src-grid figure { aspect-ratio: 9 / 16; overflow: hidden; }
:root .km-src-grid img { width: 100%; height: 100%; object-fit: cover; }
:root .km-video { position: relative; aspect-ratio: 9 / 16; border: 6px solid #1A2126; overflow: hidden; background: #000; }
:root .km-video video { width: 100%; height: 100%; object-fit: cover; display: block; }
:root .km-video figcaption {
  position: absolute; left: 12px; bottom: 12px; z-index: 2;
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(11,15,18,.72); padding: 7px 12px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
}
:root .case-block .km-show { max-width: 760px; margin: 0 auto; }
:root .offer-item video { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- Aperçu des packs (accueil) ---------- */
:root .pack-lines { margin-bottom: 26px; }
:root .pack-lines li { display: grid; grid-template-columns: 1fr auto; column-gap: 20px; border-bottom: 1px solid rgba(var(--ligne-rgb, 230, 225, 216),.22); padding: 16px 0 13px; }
:root .pack-lines strong { font: 500 22px/1.1 var(--f-display); grid-column: 1; }
:root .pack-lines span { grid-column: 1; font-size: 12.5px; color: var(--muted); }
:root .pack-lines em { grid-column: 2; grid-row: 1 / span 2; align-self: center; font: 400 24px var(--f-display); font-style: normal; color: var(--bronze); white-space: nowrap; }
:root .pack-lines .is-feature strong { color: var(--bronze); }

/* ---------- En-tête des pages internes ---------- */
:root .page-hero { padding: 96px 0 0; text-align: center; }
:root .page-hero h1 { font-size: clamp(42px, 5vw, 72px); margin-bottom: 4px; }
:root .page-hero-img { width: calc(100% - 64px); max-width: 1240px; aspect-ratio: 16 / 6.4; overflow: hidden; margin: 64px auto 0; }
:root .page-hero-img img { width: 100%; height: 100%; object-fit: cover; }
:root .page-hero-noimg { padding-bottom: 72px; }

/* ---------- Services ---------- */
:root .offer { padding: 130px 0; }
:root .offer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
:root .offer-item figure { aspect-ratio: 3 / 4; overflow: hidden; margin-bottom: 20px; }
:root .offer-item img { width: 100%; height: 100%; object-fit: cover; }
:root .offer-num { display: block; font: 400 15px/18px var(--f-display); color: var(--bronze); letter-spacing: .1em; margin: 0; }
:root .offer-item h3 { font-size: 26px; font-weight: 400; margin: 4px 0 10px; }
:root .offer-item p { font-size: 13.5px; color: var(--muted); margin: 0; }

:root .packs-section { padding-bottom: 120px; }
:root .packs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 72px; align-items: stretch; }
:root .pack { position: relative; display: flex; flex-direction: column; border: 1px solid var(--line-soft); background: rgba(var(--voile-rgb, 6, 10, 11),.35); padding: 44px 34px 38px; }
:root .pack h3 { font-size: 36px; font-weight: 400; }
:root .pack-for { font-size: 13px; color: var(--muted); margin: 6px 0 0; }
:root .pack-price { font: 400 48px/1 var(--f-display); margin: 26px 0 26px; }
:root .pack-price small { font: 400 13px var(--f-body); color: var(--muted); margin-right: 4px; }
:root .pack-list { margin-bottom: 34px; }
:root .pack-list li { border-bottom: 1px solid rgba(var(--ligne-rgb, 230, 225, 216),.12); padding: 11px 0; font-size: 13.5px; color: var(--soft, #B9B6B0); }
:root .pack-list strong { color: var(--text); font-weight: 500; }
:root .pack > a { margin-top: auto; }
:root .pack.is-feature { background: var(--panel); border-color: transparent; transform: translateY(-18px); padding-bottom: 56px; }
:root .pack-flag { position: absolute; top: 24px; right: 28px; font-size: 14px; }
:root .packs-note { text-align: center; font-size: 12.5px; color: var(--muted); margin: 40px 0 0; line-height: 1.9; }

:root .options { padding-bottom: 130px; }
:root .options-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 64px; align-items: start; }
:root .option-lines li { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; border-bottom: 1px solid rgba(var(--ligne-rgb, 230, 225, 216),.18); padding: 18px 0; font-size: 15px; }
:root .option-lines li:first-child { border-top: 1px solid rgba(var(--ligne-rgb, 230, 225, 216),.18); }
:root .option-lines small { color: var(--muted); font-size: 12.5px; }
:root .option-lines em { font: 400 26px var(--f-display); font-style: normal; color: var(--bronze); white-space: nowrap; }
:root .option-lines em small { font-family: var(--f-body); }

:root .relaunch { padding-bottom: 130px; }
:root .relaunch-box { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; background: var(--panel); padding-right: 64px; }
:root .relaunch-img { aspect-ratio: 1.1 / 1; }
:root .relaunch-img img { width: 100%; height: 100%; object-fit: cover; }
:root .relaunch-text h2 { margin-bottom: 20px; }
:root .relaunch-text > p { font-size: 14.5px; color: var(--soft, #C9C5BE); }
:root .relaunch-text .price { margin: 18px 0 26px; }

:root .hotel { position: relative; padding: 130px 0; margin-bottom: 120px; overflow: hidden; }
:root .hotel-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
:root .hotel::before { content: ""; position: absolute; inset: 0; z-index: 1; background: rgba(11,15,18,.86); }
:root .hotel-inner { position: relative; z-index: 2; }
:root .hotel-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
:root .hotel-card { border: 1px solid var(--line-soft); background: rgba(13,21,24,.6); padding: 38px 32px; }
:root .hotel-card h3 { font-size: 28px; font-weight: 400; margin: 6px 0 12px; }
:root .hotel-card p { font-size: 13.5px; color: var(--soft, #B9B6B0); margin: 0; }
:root .hotel-card.is-feature { border-color: var(--bronze); }
:root .hotel-cta { text-align: center; margin-top: 52px; }
:root .hotel-cta p { color: var(--muted); font-size: 14px; margin-bottom: 22px; }

:root .faq-section { padding-bottom: 120px; }
:root .faq { max-width: 860px; margin: 0 auto; }
:root .faq details { border-bottom: 1px solid var(--line-soft); }
:root .faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 22px 0; font: 400 23px/1.25 var(--f-display); }
:root .faq summary::-webkit-details-marker { display: none; }
:root .faq summary::after { content: "+"; font: 300 28px/1 var(--f-body); color: var(--bronze); transition: transform .3s; }
:root .faq details[open] summary::after { transform: rotate(45deg); }
:root .faq details p { font-size: 14px; color: var(--soft, #B9B6B0); padding: 0 48px 22px 0; margin: 0; }

:root .cta-strip { padding-bottom: 120px; }
:root .cta-strip-inner { display: flex; justify-content: space-between; align-items: center; gap: 32px; border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); padding: 56px 0; }
:root .cta-strip h2 { font-size: clamp(34px, 3.8vw, 52px); }
:root .cta-btns { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Projets ---------- */
:root .projects { padding: 20px 0 110px; }
:root .filters { display: flex; justify-content: center; gap: 34px; margin-bottom: 52px; }
:root .filter { background: none; border: 0; border-bottom: 1px solid transparent; color: var(--muted); font: 400 15px var(--f-body); padding: 6px 0; cursor: pointer; transition: color .2s, border-color .2s; }
:root .filter:hover { color: var(--text); }
:root .filter.is-active { color: var(--text); border-bottom-color: var(--bronze); }
:root .project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 52px 22px; grid-auto-flow: dense; }
:root .project { display: block; }
:root .project.is-wide { grid-column: span 2; }
:root .project figure { height: 320px; overflow: hidden; margin-bottom: 18px; }
:root .project img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s; }
:root .project:hover img { transform: scale(1.05); }
:root .project h3 { font-size: 26px; font-weight: 400; transition: color .2s; }
:root .project:hover h3 { color: var(--bronze); }
:root .project-place { font: italic 400 14px/1.3 var(--f-script); color: var(--bronze); margin: 4px 0 0; }
:root .deliverables { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
:root .deliverables li { font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; border: 1px solid var(--line-soft); color: var(--soft, #B9B6B0); padding: 4px 10px; }
:root .project.is-hidden { display: none; }

/* ---------- Page projet ---------- */
:root .case-hero {
  position: relative; min-height: min(74vh, 680px); display: flex; align-items: flex-end; overflow: hidden;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 110px), calc(100% - 110px) 100%, 0 100%);
}
:root .case-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(11,15,18,.8), rgba(11,15,18,.15) 60%); }
:root .case-hero-content { position: relative; z-index: 1; width: 100%; max-width: 1340px; margin: 0 auto; padding: 0 9% 84px; }
:root .case-hero h1 { font-size: clamp(50px, 6.4vw, 96px); color: #fff; }
:root .case-hero h1 :is(.script, em) { color: #fff; }
:root .back-link { display: inline-block; font-size: 13px; color: #D8D3CA; margin-bottom: 18px; }
:root .back-link:hover { color: var(--bronze); }
:root .case-facts { padding: 72px 0 110px; }
:root .facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin: 0; padding: 26px 0; border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
:root .facts dt { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
:root .facts dd { margin: 6px 0 0; font: 400 22px/1.25 var(--f-display); }
:root .case-intro { max-width: 720px; margin: 44px auto 0; text-align: center; font-size: 15.5px; color: var(--soft, #B9B6B0); }
:root .case-block { padding-bottom: 120px; }
:root .case-head { margin-bottom: 36px; }
:root .case-gallery { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 270px; gap: 14px; }
:root .case-gallery figure, :root .aerial figure { overflow: hidden; cursor: zoom-in; }
:root .case-gallery .cg-wide { grid-column: span 2; }
:root .case-gallery img, :root .aerial img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s; }
:root .case-gallery figure:hover img, :root .aerial figure:hover img { transform: scale(1.04); }
:root .aerial { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 250px 250px; gap: 14px; }
:root .aerial figure:first-child { grid-row: span 2; }
:root .video-frame { position: relative; aspect-ratio: 16 / 9; overflow: hidden; cursor: pointer; }
:root .video-frame img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.66); transition: filter .4s; }
:root .video-frame:hover img { filter: brightness(.8); }
:root .play-circle { position: absolute; left: 50%; top: 50%; translate: -50% -50%; width: 100px; height: 100px; border-radius: 50%; border: 1px solid rgba(255,255,255,.8); display: grid; place-items: center; transition: background .3s, border-color .3s; }
:root .play-circle svg { width: 28px; height: 28px; fill: #fff; margin-left: 5px; }
:root .video-frame:hover .play-circle { background: var(--bronze); border-color: var(--bronze); }
:root .formats-show { display: flex; justify-content: center; align-items: flex-end; gap: 36px; }
:root .formats-show figure { text-align: center; }
:root .fmt-169 { width: 48%; } :root .fmt-916 { width: 17%; } :root .fmt-11 { width: 25%; }
:root .fmt-screen { border: 6px solid #1A2126; }
:root .fmt-169 .fmt-screen { aspect-ratio: 16 / 9; }
:root .fmt-916 .fmt-screen { aspect-ratio: 9 / 16; }
:root .fmt-11 .fmt-screen { aspect-ratio: 1; }
:root .fmt-screen img { width: 100%; height: 100%; object-fit: cover; }
:root .formats-show figcaption { font-size: 12px; color: var(--muted); margin-top: 14px; }
:root .lightbox { position: fixed; inset: 0; z-index: 60; background: rgba(var(--voile-rgb, 6, 10, 11),.95); display: grid; place-items: center; }
:root .lightbox[hidden] { display: none; }
:root .lightbox img { max-width: 90vw; max-height: 86vh; object-fit: contain; }
:root .lightbox-close { position: absolute; top: 18px; right: 28px; background: none; border: 0; color: var(--text); font: 300 44px/1 var(--f-body); cursor: pointer; }

/* ---------- À propos ---------- */
:root .story { padding: 130px 0; }
:root .story-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 80px; align-items: center; }
:root .story-img { aspect-ratio: .8; overflow: hidden; }
:root .story-img img { width: 100%; height: 100%; object-fit: cover; }
:root .story-text h2 { margin-bottom: 24px; }
:root .story-text p { font-size: 14.5px; color: var(--soft, #B9B6B0); }
:root .story-text strong { color: var(--text); font-weight: 500; }
:root .story-text .wp-block-button.is-style-bronze .wp-block-button__link { margin-top: 12px; }
:root .pillars { padding-bottom: 130px; }
:root .pillar-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 64px; }
:root .pillar { border: 1px solid var(--line-soft); padding: 40px 32px 36px; text-align: center; }
:root .pillar .flow-ico { width: 46px; height: 46px; margin: 0 auto 20px; }
:root .pillar .flow-ico svg { width: 20px; height: 20px; }
:root .pillar h3 { font-size: 28px; font-weight: 400; margin-bottom: 10px; }
:root .pillar p { font-size: 13.5px; color: var(--muted); margin: 0; }
:root .audience { padding-bottom: 130px; }
:root .audience-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
:root .aud { position: relative; min-height: 460px; display: flex; align-items: flex-end; overflow: hidden; }
:root .aud figure { position: absolute; inset: 0; }
:root .aud img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s; }
:root .aud:hover img { transform: scale(1.05); }
:root .aud::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(11,15,18,.92), rgba(11,15,18,.1) 60%); }
:root .aud-text { position: relative; z-index: 1; padding: 30px; }
:root .aud h3 { font-size: 28px; font-weight: 400; color: #fff; margin-bottom: 6px; }
:root .aud p { font-size: 13px; color: #CFCBC4; margin: 0; }

/* ---------- Contact ---------- */
:root .contact { padding-bottom: 130px; }
:root .contact-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 48px; align-items: start; }
:root .contact-photo { aspect-ratio: 4 / 3.4; overflow: hidden; margin-bottom: 28px; }
:root .contact-photo img { width: 100%; height: 100%; object-fit: cover; }
:root .contact-lines li { display: grid; grid-template-columns: 110px 1fr; gap: 16px; align-items: baseline; border-bottom: 1px solid var(--line-soft); padding: 16px 0; }
:root .contact-lines span { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
:root .contact-lines a, :root .contact-lines em { font-size: 15px; font-style: normal; word-break: break-word; }
:root .contact-lines a:hover { color: var(--bronze); }
:root .contact-box { max-width: none; padding: 52px 56px; }
:root .opt-checks { border: 0; padding: 0; margin: 0 0 26px; display: flex; flex-wrap: wrap; gap: 12px 26px; }
:root .opt-checks legend { font-size: 12.5px; color: var(--muted); padding: 0; margin-bottom: 12px; }
:root .opt-checks label { flex-direction: row !important; align-items: center; gap: 8px !important; font-size: 13.5px !important; color: var(--text) !important; }
:root .opt-checks input { accent-color: var(--bronze); width: auto; }
:root .line-form textarea { resize: vertical; }
:root .form-note { text-align: center; font-size: 12px; color: var(--muted); margin: 14px 0 0; }

/* ---------- Retouche ---------- */
:root .manifesto { padding: 110px 0 10px; text-align: center; }
:root .manifesto-text { font: 400 clamp(28px, 3vw, 42px)/1.3 var(--f-display); max-width: 920px; margin: 0 auto; text-wrap: balance; }
:root .manifesto-text em { font-family: var(--f-script); font-style: italic; color: var(--bronze); font-size: .82em; }

:root .levels { padding: 110px 0 20px; }
:root .level-row { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 64px; align-items: center; margin-bottom: 110px; }
:root .level-row.is-reverse > .ba-stage { order: 2; }
:root .level-row .ba-stage { max-width: none; margin: 0; }
:root .level-row .ba { aspect-ratio: 4 / 3.1; }
:root .level-text h3 { font-size: 34px; font-weight: 400; margin: 4px 0 14px; }
:root .level-text > p { font-size: 14.5px; color: var(--soft, #B9B6B0); }
:root .level-text .motion-points { margin-bottom: 24px; }
:root .level-text p.level-badge { display: inline-block; margin: 0; padding: 8px 14px 7px; border: 1px solid var(--bronze); color: var(--bronze); font: italic 400 14px/1.2 var(--f-script); }

:root .hdr { padding-bottom: 130px; }
:root .hdr-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: center; margin-top: 80px; }
:root .hdr-text h2 { margin-bottom: 22px; }
:root .hdr-text > p { font-size: 14.5px; color: var(--soft, #B9B6B0); }
:root .hdr-text p.hdr-hint { font: italic 400 14px/1.4 var(--f-script); color: var(--bronze); margin: 22px 0 0; }
:root .expo-stage {
  position: relative; aspect-ratio: 3 / 2; overflow: hidden;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%);
}
:root .expo-shot { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity .5s; }
:root .expo-shot.is-active { opacity: 1; }
:root .expo-shot img { width: 100%; height: 100%; object-fit: cover; }
:root .expo-shot figcaption { position: absolute; left: 18px; bottom: 18px; margin: 0; background: rgba(11,15,18,.72); padding: 8px 14px 6px; font: italic 400 15px/1 var(--f-script); color: #fff; text-align: left; }
:root .expo-track { --fill: 0; position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 26px; padding-top: 24px; cursor: pointer; user-select: none; -webkit-user-select: none; touch-action: pan-y; }
:root .expo-track::before, :root .expo-track::after { content: ""; position: absolute; top: 6px; left: 12.5%; height: 1px; }
:root .expo-track::before { right: 12.5%; background: rgba(var(--ligne-rgb, 230, 225, 216),.3); }
:root .expo-track::after { width: calc(var(--fill) * 75%); height: 2px; top: 5.5px; background: var(--bronze); transition: width .4s; }
:root .expo-step { position: relative; margin: 0; padding: 0 6px; text-align: center; font-size: 12.5px; line-height: 1.4; color: var(--muted); transition: color .3s; }
:root .expo-step::before { content: ""; position: absolute; top: -24px; left: 50%; translate: -50% 0; z-index: 1; width: 13px; height: 13px; border-radius: 50%; background: var(--bg); border: 1px solid var(--bronze); transition: background .3s, box-shadow .3s; }
:root .expo-step strong { display: block; font: 400 20px/1.2 var(--f-display); color: var(--text); margin-bottom: 4px; }
:root .expo-step.is-active { color: var(--text); }
:root .expo-step.is-active::before { background: var(--bronze); box-shadow: 0 0 0 5px rgba(160,122,86,.25); }

:root .chain-section { padding-bottom: 130px; }
/* Autant d'étapes que d'images, toujours sur une ligne : la largeur et l'espacement suivent leur nombre */
:root .chain { --gap: 56px; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: var(--gap); max-width: 900px; margin: 0 auto; }
:root .chain:has(> :nth-child(4)) { --gap: 48px; max-width: 1040px; }
:root .chain:has(> :nth-child(5)) { --gap: 40px; max-width: 1180px; }
:root .chain:has(> :nth-child(7)) { --gap: 28px; }
:root .chain-step { position: relative; margin: 0; }
:root .chain-step img, :root .chain-step video { display: block; width: 100%; aspect-ratio: 9 / 16; object-fit: cover; }   /* sans cadre (retiré à la demande du client, 2026-10-19) */
:root .chain-step figcaption { margin: 14px 0 0; text-align: center; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
:root .chain-step.chain-video figcaption { color: var(--bronze); }
:root .chain-step:not(:last-child)::after {
  content: ""; position: absolute; right: calc(var(--gap) / -2 - 12px); top: 45%; width: 24px; height: 12px; background: var(--bronze);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 12' fill='none' stroke='%23000' stroke-width='1.2'%3E%3Cpath d='M0 6h38M33 1l5 5-5 5'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 12' fill='none' stroke='%23000' stroke-width='1.2'%3E%3Cpath d='M0 6h38M33 1l5 5-5 5'/%3E%3C/svg%3E") center / contain no-repeat;
}
:root .chain-strong { text-align: center; font: 400 26px/1.3 var(--f-display); max-width: 700px; margin: 56px auto 0; }

:root .charter { padding-bottom: 120px; }
:root .charter-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; max-width: 980px; margin: 0 auto; }
:root .charter-col { border: 1px solid var(--line-soft); padding: 40px 36px 30px; }
:root .charter-col h3 { font-size: 26px; font-weight: 400; margin-bottom: 20px; }
:root .charter-col.is-never { border-color: rgba(160,122,86,.5); }
:root .charter-col.is-never .motion-points li::before { background: var(--muted); }

/* =================== Responsive =================== */
@media (max-width: 900px) {
  :root { --cut: 60px; }
  :root .level-row, :root .hdr-grid, :root .charter-grid { grid-template-columns: 1fr; gap: 32px; }
  :root .level-row { margin-bottom: 80px; }
  :root .level-row.is-reverse > .ba-stage { order: 0; }
  :root .hdr-grid { margin-top: 56px; }
  :root .chain { --gap: 36px; }
  :root .hero-content { grid-template-columns: 1fr; padding: 0 28px 80px; }
  :root .hero h1 { white-space: normal; }
  :root .hero-aside { grid-column: 1; grid-row: 2; font-size: 17px; margin: 18px 0 0; }
  :root .wp-block-button.is-style-anneau .wp-block-button__link { grid-row: 3; }
  :root .gallery { grid-template-columns: 1fr 1fr; }
  :root .method { grid-template-columns: 1fr; gap: 48px; padding: 0 0 100px 32px; }
  :root .method-text { padding-right: 32px; }
  :root .summary-grid { grid-template-columns: 1fr; }
  :root .summary-tall { aspect-ratio: 4 / 3; }
  :root .inquiry-box { padding: 48px 32px; }
  :root .row-3 { grid-template-columns: 1fr 1fr; }
  :root .motion-grid, :root .options-grid, :root .story-grid, :root .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  :root .offer-grid { grid-template-columns: 1fr 1fr; }
  :root .packs, :root .hotel-grid, :root .pillar-grid, :root .audience-grid { grid-template-columns: 1fr; }
  :root .pack.is-feature { transform: none; }
  :root .relaunch-box { grid-template-columns: 1fr; gap: 32px; padding: 0 0 40px; }
  :root .relaunch-text { padding: 0 32px; }
  :root .project-grid { grid-template-columns: 1fr 1fr; }
  :root .facts { grid-template-columns: 1fr 1fr; }
  :root .motion-pairs { grid-template-columns: 1fr; }
  :root .case-hero-content { padding: 0 28px 70px; }
  :root .story-img { max-width: 480px; }
}
@media (max-width: 640px) {
  :root .manifesto { padding-top: 80px; }
  :root .levels { padding-top: 80px; }
  :root .level-text h3 { font-size: 28px; }
  :root .expo-step { font-size: 11px; padding: 0 2px; }
  :root .expo-step strong { font-size: 16px; }
  :root .chain, :root .chain:has(> :nth-child(4)), :root .chain:has(> :nth-child(5)), :root .chain:has(> :nth-child(7)) { --gap: 14px; grid-auto-flow: row; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  :root .chain-step figcaption { font-size: 9.5px; letter-spacing: .04em; }
  :root .chain-step:not(:last-child)::after { display: none; }
  :root .chain-strong { font-size: 21px; margin-top: 36px; }
  :root .charter-col { padding: 30px 22px 22px; }
  :root .wrap { padding: 0 16px; }
  :root .header-inner { padding: 0 16px; height: 80px; grid-template-columns: 40px 1fr 40px; }
  :root .header-tel { font-size: 0; }
  :root .header-tel::before { content: ""; display: block; width: 22px; height: 22px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 4h4l2 5-2.5 1.5a11 11 0 0 0 5 5L15 13l5 2v4a1 1 0 0 1-1 1A16 16 0 0 1 4 5a1 1 0 0 1 1-1z' fill='none' stroke='black' stroke-width='1.6'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 4h4l2 5-2.5 1.5a11 11 0 0 0 5 5L15 13l5 2v4a1 1 0 0 1-1 1A16 16 0 0 1 4 5a1 1 0 0 1 1-1z' fill='none' stroke='black' stroke-width='1.6'/%3E%3C/svg%3E") center / contain no-repeat; }
  :root .logo-main { font-size: 18px; }
  :root .logo-script { font-size: 13px; }
  :root .hero { min-height: 78vh; clip-path: polygon(0 0, 100% 0, 100% calc(100% - 60px), calc(100% - 60px) 100%, 0 100%); }
  :root .hero-content { padding: 0 20px 64px; }
  :root .hero h1 { font-size: 37px; }
  :root .hero-aside { font-size: 16px; }
  :root .spotlight { padding: 90px 0 80px; }
  :root .gallery { gap: 10px; }
  :root .gallery .g-big { aspect-ratio: 1 / 1; grid-column: span 1; }
  :root .slider { grid-template-columns: 36px 1fr 36px; margin-top: 44px; }
  :root .slider-arrow svg { width: 28px; }
  :root .method { padding: 0 0 90px 16px; }
  :root .method-text { padding-right: 16px; }
  :root .svc-lines { grid-template-columns: 1fr; }
  :root .summary-head { flex-direction: column; }
  :root .summary-thumb { display: none; }
  :root .panel { padding: 22px 18px; }
  :root .inquiry-box { padding: 40px 18px; }
  :root .row-3, :root .row-2 { grid-template-columns: 1fr; }
  :root .footer-top { flex-direction: column; align-items: flex-start; }
  :root .footer-nav { gap: 18px; }
  :root .footer-bottom { grid-template-columns: 1fr; }
  :root .footer-bottom > a { justify-self: start; }
  :root .ba { aspect-ratio: 4 / 3.4; }
  :root .ba-label { font-size: 13px; bottom: 12px; }
  :root .ba-label-before { left: 12px; }
  :root .ba-thumb { width: 84px; height: 56px; }
  :root .motion-demo { grid-template-columns: 1fr 24px 1fr; gap: 8px; }
  :root .motion-arrow svg { width: 24px; }
  :root .motion-card figcaption { left: 6px; bottom: 6px; font-size: 9.5px; padding: 5px 8px; }
  :root .km-show { grid-template-columns: minmax(0, 1fr) 20px minmax(0, 1fr); gap: 8px; }
  :root .km-src-grid { gap: 6px; }
  :root .km-label { font-size: 13px; }
  :root .km-video { border-width: 3px; }
  :root .km-video figcaption { left: 6px; bottom: 6px; font-size: 9.5px; padding: 5px 8px; }
  :root .page-hero { padding-top: 64px; }
  :root .page-hero-img { width: calc(100% - 32px); aspect-ratio: 4 / 3; margin-top: 44px; }
  :root .offer { padding: 90px 0; }
  :root .offer-grid { grid-template-columns: 1fr; }
  :root .offer-item figure { aspect-ratio: 4 / 3; }
  :root .pack { padding: 36px 24px 30px; }
  :root .pack-lines strong { font-size: 20px; }
  :root .pack-lines em { font-size: 20px; }
  :root .option-lines li { flex-direction: column; gap: 4px; }
  :root .relaunch-text { padding: 0 18px; }
  :root .hotel { padding: 90px 0; }
  :root .faq summary { font-size: 20px; }
  :root .faq details p { padding-right: 0; }
  :root .cta-strip-inner { flex-direction: column; align-items: flex-start; }
  :root .filters { gap: 22px; }
  :root .project-grid { grid-template-columns: 1fr; }
  :root .project.is-wide { grid-column: auto; }
  :root .project figure { height: 250px; }
  :root .facts { grid-template-columns: 1fr; gap: 16px; }
  :root .case-hero { clip-path: polygon(0 0, 100% 0, 100% calc(100% - 60px), calc(100% - 60px) 100%, 0 100%); }
  :root .case-hero-content { padding: 0 20px 64px; }
  :root .case-gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 150px; gap: 8px; }
  :root .aerial { grid-template-columns: 1fr 1fr; grid-template-rows: 200px 130px; gap: 8px; }
  :root .aerial figure:first-child { grid-row: auto; grid-column: span 2; }
  :root .formats-show { gap: 12px; }
  :root .fmt-screen { border-width: 3px; }
  :root .contact-box { padding: 36px 18px; }
  :root .contact-lines li { grid-template-columns: 1fr; gap: 4px; }
}

/* ============ Calculateur de frais de déplacement ============ */
:root .travel { padding-bottom: 130px; }
:root .travel-base { margin-top: 22px; font-size: 14px; color: var(--muted); }
:root .travel-base strong { color: var(--text); font-weight: 400; }
:root .travel-calc { margin-bottom: 34px; }
:root .travel-label { display: block; font: italic 14px var(--f-script); color: var(--bronze); margin-bottom: 10px; }
:root .travel-field { position: relative; }
:root .travel-field input { width: 100%; background: transparent; border: 0; border-bottom: 1px solid rgba(var(--ligne-rgb, 230, 225, 216),.35); color: var(--text); font: 400 22px var(--f-display); padding: 10px 0; border-radius: 0; }
:root .travel-field input::placeholder { color: var(--muted); opacity: .7; }
:root .travel-field input:focus { outline: none; border-bottom-color: var(--bronze); }
:root .travel-list { position: absolute; z-index: 5; left: 0; right: 0; top: 100%; margin: 0; padding: 6px 0; list-style: none; background: var(--panel); box-shadow: 0 18px 40px rgba(0,0,0,.45); }
:root .travel-list li { padding: 10px 16px; cursor: pointer; font-size: 15px; display: flex; flex-direction: column; gap: 2px; }
:root .travel-list li small { color: var(--muted); font-size: 12px; }
:root .travel-list li[aria-selected="true"] { background: rgba(160,122,86,.22); }
:root .travel-result { min-height: 64px; padding-top: 18px; }
:root .travel-result p { margin: 0; }
:root .travel-where { font-size: 14px; color: var(--muted); }
:root .travel-price { font: 400 30px var(--f-display); color: var(--bronze); margin-top: 4px !important; }
:root .travel-result.is-error p { font-size: 14px; color: var(--muted); }
:root .travel-note { font-size: 12.5px; color: var(--muted); margin: 0; }
:root .travel-zones li { transition: background .3s, padding .3s; }
:root .travel-zones li.is-match { background: rgba(160,122,86,.14); padding-left: 14px; padding-right: 14px; }

/* ============ Packs v3 : règle, options guidées, guide « Trois questions » ============ */
:root .rule { padding-bottom: 120px; }
:root .charter-col.is-option { border-color: rgba(160,122,86,.6); background: rgba(160,122,86,.06); }
:root .rule-tip { text-align: center; font-size: 13px; color: var(--muted); margin: 34px auto 0; max-width: 640px; }
:root .option-lines.is-guided span small { display: block; margin-top: 4px; }
:root .guide { padding-bottom: 130px; }
:root .guide-grid { display: grid; grid-template-columns: 7fr 5fr; gap: 56px; align-items: start; }
:root .guide-q { border-top: 1px solid var(--line-soft); padding: 30px 0 32px; }
:root .guide-num { font: italic 400 14px var(--f-script); color: var(--bronze); margin: 0 0 6px; }
:root .guide-q h3 { font-size: 30px; font-weight: 400; margin: 0 0 20px; }
:root .guide-choices { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
:root .guide-choices li { border: 1px solid rgba(var(--ligne-rgb, 230, 225, 216),.3); padding: 11px 20px; font-size: 14px; cursor: pointer; user-select: none; transition: border-color .2s, background .2s, color .2s; }
:root .guide-choices li:hover, :root .guide-choices li:focus-visible { border-color: var(--bronze); outline: none; }
:root .guide-choices li.is-on { background: var(--bronze); border-color: var(--bronze); color: #fff; }
:root .guide-summary { position: sticky; top: 110px; background: var(--panel); padding: 38px 34px 36px; }
:root .guide-summary > a { display: block; text-align: center; margin-top: 4px; }
:root .guide-summary > [hidden], :root .guide-empty[hidden] { display: none !important; }
:root .guide-summary .wp-block-buttons { display: block; }
:root .guide-summary .wp-block-button, :root .guide-summary .wp-block-button__link { display: block; width: 100%; text-align: center; }
:root .guide-empty { color: var(--muted); font-size: 14px; margin: 0 0 6px; }
:root .guide-row, :root .guide-opt { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 13px 0; border-bottom: 1px solid rgba(var(--ligne-rgb, 230, 225, 216),.12); font-size: 14px; }
:root .guide-row em, :root .guide-opt em { font: 400 22px var(--f-display); font-style: normal; color: var(--bronze); white-space: nowrap; }
:root .guide-row.is-pack span { font: 400 26px var(--f-display); }
:root .guide-row.is-route a { color: var(--muted); font-size: 13px; text-decoration: underline; text-underline-offset: 3px; }
:root .guide-opt { width: 100%; background: none; border: 0; border-bottom: 1px solid rgba(var(--ligne-rgb, 230, 225, 216),.12); color: var(--muted); font-family: inherit; text-align: left; cursor: pointer; }
:root .guide-opt span { position: relative; padding-left: 26px; }
:root .guide-opt span::before { content: ""; position: absolute; left: 0; top: 3px; width: 13px; height: 13px; border: 1px solid var(--bronze); }
:root .guide-opt.is-on { color: var(--text); }
:root .guide-opt.is-on span::before { background: var(--bronze); }
:root .guide-opt:not(.is-on) em { color: var(--muted); font-size: 18px; }
:root .guide-opt small { display: inline-block; margin-left: 8px; font: italic 12px var(--f-script); color: var(--bronze); }
:root .guide-total { display: flex; justify-content: space-between; align-items: baseline; margin: 24px 0 26px; }
:root .guide-total span { font-size: 13px; color: var(--muted); }
:root .guide-total strong { font: 400 44px/1 var(--f-display); color: var(--text); }
:root .options-sub { font: italic 400 14px var(--f-script); color: var(--bronze); margin: 40px 0 6px; }
:root .option-lines li.is-formula { background: rgba(160,122,86,.12); border: 1px solid rgba(160,122,86,.55); padding: 20px 18px; margin-bottom: 10px; }
:root .option-lines li.is-formula + li { border-top: 1px solid rgba(var(--ligne-rgb, 230, 225, 216),.18); }
:root .guide-opt.is-formula span { font-weight: 500; }
:root .guide-inclus { font-size: 12.5px; color: var(--muted); margin: 8px 0 0; }
:root .guide-devis { font: 400 24px/1.3 var(--f-display); margin: 6px 0 24px; }
@media (max-width: 900px) {
  :root .guide-grid { grid-template-columns: 1fr; gap: 24px; }
  :root .guide-summary { position: static; padding: 30px 22px; }
  :root .guide-q h3 { font-size: 25px; }
}

/* ============ Devis en quatre questions (v5) ============ */
:root .guide-intro { margin: 56px auto 40px; text-align: center; }
:root .guide-hint { font-size: 13px; color: var(--muted); margin: -10px 0 18px; }
:root .guide-q .travel-calc { margin-bottom: 0; }
:root .guide-row span small { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }
:root .guide-row.is-wait { color: var(--muted); }
:root .guide-row.is-wait em { color: var(--muted); font-size: 18px; }
:root .price-section { padding-bottom: 120px; }
:root .price-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 48px 64px; }
:root .price-col h3 { font-size: 26px; font-weight: 400; margin: 0 0 14px; }
:root .price-col .travel-base { margin: -4px 0 12px; }
:root .price-col .option-lines span small { display: block; margin-top: 3px; }
@media (max-width: 900px) { :root .price-grid { grid-template-columns: 1fr; gap: 40px; } }
:root .travel-deal { margin: 16px 0 0; font: italic 400 15px var(--f-script); color: var(--bronze); }
:root .travel-deal-msg, :root .guide-deal { margin: 14px 0 0; padding: 12px 14px; border: 1px solid rgba(160,122,86,.55); background: rgba(160,122,86,.1); font-size: 13px; line-height: 1.55; color: var(--text); }
:root .guide-deal { margin: 14px 0 0; }
:root .guide-row.is-deal em s { color: var(--muted); font-size: 16px; margin-right: 4px; }

/* ============ Zones de déplacement en rayons : carte et « 2e bien » ============ */
:root .travel-map { margin: 22px 0 0; border: 1px solid var(--line-soft); }
:root .travel-map-note { margin: 0; padding: 120px 16px; text-align: center; font-size: 13px; color: var(--muted); }
:root .travel-map-canvas { height: 340px; background: #0B0F12; }
:root .travel-map .travel-map-tiles { filter: grayscale(1) invert(1) brightness(.78) contrast(1.05); }
:root .travel-map .leaflet-control-attribution { background: rgba(13,21,24,.75); color: var(--muted); font-size: 10px; }
:root .travel-map .leaflet-control-attribution a { color: var(--muted); }
:root .travel-map .leaflet-bar a { background: var(--panel); color: var(--text); border-color: var(--line); }
:root .travel-map-label { background: var(--panel); color: var(--text); border: 1px solid var(--bronze); border-radius: 0; box-shadow: none; font: 13px var(--f-body); }
:root .travel-map-label::before { display: none; }
:root .guide-row.is-duo span { color: var(--bronze); }
:root .travel-intro { margin: -4px 0 12px; font-size: 13px; color: var(--muted); }
@media (max-width: 640px) { :root .travel-map-canvas { height: 280px; } }
:root .guide-q [hidden], :root .guide-summary [hidden] { display: none !important; }
:root .guide-duo-detail { margin-top: 24px; padding: 20px 0 0 22px; border-left: 1px solid rgba(160,122,86,.55); }
:root .guide-sub + .guide-sub { margin-top: 20px; }
:root .guide-sub-title { margin: 0 0 12px; font: italic 400 15px var(--f-script); color: var(--bronze); }
:root .guide-row.is-head { border-bottom: 0; padding: 18px 0 2px; }
:root .guide-row.is-head span { font: italic 400 14px var(--f-script); color: var(--bronze); }
:root .guide-row.is-head span small { display: inline; margin-left: 6px; }
:root .guide-row.is-head em { display: none; }

/* Réglages du calcul (zones de déplacement) : masqués sur le site, visibles dans l'éditeur */
:root .price-settings { display: none; }

/* ============ Estimation : traitement inclus, lien hôtellerie ============ */
:root .guide-lines .guide-inclus { margin: -6px 0 0; padding: 0 0 12px; border-bottom: 1px solid rgba(var(--ligne-rgb, 230, 225, 216),.12); font-size: 12px; line-height: 1.55; color: var(--muted); }
:root .guide-row.is-pack:has(+ .guide-inclus) { border-bottom: 0; }
:root .guide-pro { margin: 22px 0 0; font-size: 13px; line-height: 1.5; color: var(--muted); }
:root .guide-pro a { color: var(--bronze); text-decoration: underline; text-underline-offset: 3px; }

/* ============ Estimation détaillée : listes « inclus », biens supplémentaires ============ */
:root .guide-inclus-list { list-style: none; margin: -6px 0 0; padding: 0 0 12px; border-bottom: 1px solid rgba(var(--ligne-rgb, 230, 225, 216),.12); }
:root .guide-inclus-list li { position: relative; padding-left: 16px; font-size: 12px; line-height: 1.7; color: var(--muted); }
:root .guide-inclus-list li::before { content: ""; position: absolute; left: 0; top: .85em; width: 8px; height: 1px; background: var(--bronze); }
:root .guide-row:has(+ .guide-inclus-list) { border-bottom: 0; }
:root .guide-bien + .guide-bien { margin-top: 16px; }
:root .guide-bien .guide-choices li { padding: 9px 14px; font-size: 13px; }
:root .guide-toggle { position: relative; padding-left: 36px !important; }
:root .guide-toggle::before { content: ""; position: absolute; left: 13px; top: 50%; width: 12px; height: 12px; margin-top: -6px; border: 1px solid var(--bronze); }
:root .guide-toggle.is-on::before { background: #fff; border-color: #fff; }
:root .guide-summary > .guide-inclus { display: none; }

/* ============ Accueil allégé : lien sous section, derniers projets, aperçu des tarifs ============ */
:root .ba-more { display: flex; justify-content: center; margin-top: 40px; }
:root .recent { padding-bottom: 120px; }
:root .recent .project-grid { margin-top: 0; }
:root .panel-lead { font: 400 26px/1.25 var(--f-display); margin: 0 0 16px; }
:root .panel .panel-steps { margin-bottom: 26px; }

/* ============ Pages projet allégées ============ */
:root .facts { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
:root .facts > * { text-align: center; }   /* chaque case centrée : la fiche s'équilibre sur toute la ligne */
:root .case-block .km-show:not(:has(.km-sources)), :root .km-show:not(:has(.km-sources)) { display: flex; flex-wrap: nowrap; justify-content: center; gap: 22px; max-width: none; }   /* vidéos seules : 1 à 3 côte à côte, centrées */
:root .km-show:not(:has(.km-sources)) > .km-video { flex: 0 1 280px; margin: 0; }
@media (max-width: 640px) { :root .case-block .km-show:not(:has(.km-sources)), :root .km-show:not(:has(.km-sources)) { gap: 10px; flex-wrap: wrap; } :root .km-show:not(:has(.km-sources)) > .km-video { flex-basis: calc(50% - 5px); } }

/* ============ Galerie de projet = bloc Galerie WordPress, en mosaïque (masonry) ============ */
/* chaque photo garde son format : les verticales restent verticales, rien n'est recadré */
:root .case-gallery.wp-block-gallery { display: block !important; columns: 3; column-gap: 14px; margin: 0; }
:root .case-gallery.wp-block-gallery > figure.wp-block-image { display: block !important; width: 100% !important; height: auto !important; margin: 0 0 14px !important; break-inside: avoid; flex: none !important; }
:root .case-gallery.wp-block-gallery > figure.wp-block-image img { width: 100% !important; height: auto !important; object-fit: initial !important; flex: none !important; }
:root .case-gallery.wp-block-gallery > figure.cg-wide { grid-column: auto; }
/* nombre de colonnes = réglage « Colonnes » du bloc Galerie (3 par défaut, 1 à 4 sur ordinateur) */
:root .case-gallery.wp-block-gallery.columns-1 { columns: 1; }
:root .case-gallery.wp-block-gallery.columns-2 { columns: 2; }
:root .case-gallery.wp-block-gallery:is(.columns-4, .columns-5, .columns-6, .columns-7, .columns-8) { columns: 4; }
@media (max-width: 900px) { :root .case-gallery.wp-block-gallery:not(.columns-1) { columns: 2; } }
@media (max-width: 640px) { :root .case-gallery.wp-block-gallery.columns-2 { columns: 1; } }   /* 2 colonnes sur ordinateur → 1 sur téléphone */
@media (max-width: 640px) { :root .case-gallery.wp-block-gallery { column-gap: 8px; } :root .case-gallery.wp-block-gallery > figure.wp-block-image { margin-bottom: 8px !important; } }

/* ============ Vidéos Kinetic Motion : plus grandes sur téléphone, plein écran au toucher ============ */
:root .is-zoomable { position: relative; }
:root .is-zoomable video { cursor: zoom-in; }
:root .is-zoomable::after { content: ""; position: absolute; top: 10px; right: 10px; width: 30px; height: 30px; border-radius: 50%; pointer-events: none;
  background: rgba(13,21,24,.7) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23E6E1D8' stroke-width='1.8'%3E%3Cpath d='M9 3H3v6M15 3h6v6M9 21H3v-6M15 21h6v-6'/%3E%3C/svg%3E") center / 15px no-repeat; }
@media (max-width: 640px) {
  /* accueil et Services : les 4 photos, puis la vidéo en grand dessous */
  :root .km-show:has(.km-sources) { grid-template-columns: 1fr !important; gap: 18px; }
  :root .km-show:has(.km-sources) > .km-video { width: min(78vw, 320px); justify-self: center; margin: 0 auto; }
  /* Retouche : les 3 photos côte à côte, la vidéo seule sur sa ligne, en grand */
  :root .chain > .chain-video { grid-column: 1 / -1; width: min(70vw, 300px); justify-self: center; margin-top: 8px; }
}

/* =========================================================
   Adaptations WordPress (ajoutées après le CSS de la maquette)
   Rappel : le CSS des blocs est imprimé APRÈS cette feuille ;
   toute surcharge d'un style de bloc doit être plus spécifique.
   ========================================================= */

/* Espacement automatique de Gutenberg : coupé dans theme.json (blockGap 0) ; la remise à zéro des figures est en tête de feuille */
body .wp-site-blocks { padding: 0; }
:root .wp-block-post-content, :root main.wp-block-group { margin: 0; }
:root img { height: auto; }

/* ---------- Titres : le mot en accent est un <em> nu ---------- */
:root h1 em, :root h2 em, :root h3 em { font-family: var(--f-script); font-style: italic; font-weight: 400; color: var(--bronze); text-transform: none; letter-spacing: 0; }
:root .hero h1 em, :root .case-hero h1 em { color: #fff; }

/* ---------- Boutons : la classe est sur le conteneur, le style sur le lien ---------- */
:root .wp-block-buttons.btn-wrap { display: block; gap: 0; }
:root .wp-block-button.is-style-bronze, :root .wp-block-button.is-style-contour, :root .wp-block-button.is-style-anneau { display: inline-block; background: none; border: 0; padding: 0; border-radius: 0; width: auto; }
:root .wp-block-button.is-style-bronze::after, :root .wp-block-button.is-style-contour::after, :root .wp-block-button.is-style-anneau::after { content: none; }
/* WordPress donne un fond à tous les boutons (theme.json) : le contour doit rester transparent */
:root .wp-block-button.is-style-contour .wp-block-button__link { background: none; }
:root .wp-block-button.is-style-contour .wp-block-button__link:hover { background: var(--bronze); color: #fff; }
:root .hero-content > .btn-wrap { grid-column: 1; grid-row: 2; justify-self: start; }
:root .wp-block-button.is-style-anneau .wp-block-button__link { background: none; padding: 0 0 0 2px; border-radius: 0; }
:root .panel .btn-wrap, :root .panel .wp-block-button, :root .panel .wp-block-button__link { width: 100%; }
:root .pack > .btn-wrap { margin-top: auto; }
:root .pack > .btn-wrap .wp-block-button, :root .pack > .btn-wrap .wp-block-button__link { width: 100%; }
:root .cta-btns { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- En-tête ---------- */
:root .site-header { margin: 0; }
:root .site-header .header-inner > * { margin: 0; }
:root .logo { margin: 0; text-align: center; }
:root .logo a { display: flex; flex-direction: column; align-items: center; line-height: 1; }
:root .logo br { display: none; }
:root .logo strong { font: 500 22px/1 var(--f-display); text-transform: uppercase; letter-spacing: .12em; }
:root .logo em { font: 400 15px/1 var(--f-body); color: var(--logo); margin-top: 7px; font-style: normal; letter-spacing: .06em; }
@media (max-width: 640px) { :root .logo em { font-size: 13px; } }
:root .header-tel { justify-self: end; margin: 0; }
:root .header-tel a:hover { color: var(--bronze); }
:root .main-nav { justify-self: start; }
:root .main-nav .wp-block-navigation__responsive-container-open { color: var(--text); padding: 6px 0; }
:root .main-nav .wp-block-navigation__responsive-container-open svg { width: 32px; height: 32px; }
:root .wp-block-navigation.main-nav .wp-block-navigation__responsive-container.is-menu-open {
  background-color: var(--bg-deep) !important; color: var(--text) !important; padding: 36px !important;
}
:root .main-nav .wp-block-navigation__responsive-container-close { color: var(--text); }
:root .main-nav .wp-block-navigation__responsive-container-close svg { width: 32px; height: 32px; }
:root .main-nav .is-menu-open .wp-block-navigation__responsive-container-content { height: 100%; justify-content: center; align-items: center !important; padding-top: 0 !important; }
:root .main-nav .is-menu-open .wp-block-navigation__container { align-items: center !important; gap: 4px !important; counter-reset: menu; }
:root .main-nav .is-menu-open .wp-block-navigation-item { counter-increment: menu; }
:root .main-nav .is-menu-open .wp-block-navigation-item__content { font: 400 clamp(38px, 5vw, 62px)/1.25 var(--f-display); padding: 0 !important; display: inline-flex; align-items: baseline; gap: 16px; }
:root .main-nav .is-menu-open .wp-block-navigation-item__content::before { content: "0" counter(menu); font: 400 13px var(--f-body); color: var(--muted); }
:root .main-nav .is-menu-open .wp-block-navigation-item__content:hover, :root .main-nav .is-menu-open .current-menu-item > .wp-block-navigation-item__content { color: var(--bronze); }

/* ---------- Pied de page ---------- */
:root .site-footer > .wrap > *, :root .footer-top > *, :root .footer-bottom > * { margin: 0; }
:root .footer-logo a { font: 400 34px/1 var(--f-display); text-transform: uppercase; letter-spacing: .06em; }
:root .footer-nav .wp-block-navigation__container { gap: 32px; font-size: 13px; }
:root .footer-nav .wp-block-navigation-item__content:hover, :root .footer-bottom a:hover { color: var(--bronze); }
:root .footer-bottom .legal { justify-self: end; }
:root .socials { display: flex; gap: 14px; }
:root .socials a { display: inline-block; width: 17px; height: 17px; font-size: 0; background: var(--text); -webkit-mask: center / contain no-repeat; mask: center / contain no-repeat; transition: background .2s; }
:root .socials a:hover { background: var(--bronze); }
:root .socials a:nth-child(1) { -webkit-mask-image: var(--ico-insta); mask-image: var(--ico-insta); }
:root .socials a:nth-child(2) { -webkit-mask-image: var(--ico-mail); mask-image: var(--ico-mail); }
:root .socials a:nth-child(3) { -webkit-mask-image: var(--ico-tel); mask-image: var(--ico-tel); }

/* ---------- Icônes (masques CSS, substitution n° 1) ---------- */
:root {
  --ico-insta: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6'%3E%3Crect x='4' y='4' width='16' height='16' rx='5'/%3E%3Ccircle cx='12' cy='12' r='3.5'/%3E%3C/svg%3E");
  --ico-mail: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6'%3E%3Cpath d='M3 6h18v12H3z'/%3E%3Cpath d='m3 7 9 6 9-6'/%3E%3C/svg%3E");
  --ico-tel: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6'%3E%3Cpath d='M5 4h4l2 5-2.5 1.5a11 11 0 0 0 5 5L15 13l5 2v4a1 1 0 0 1-1 1A16 16 0 0 1 4 5a1 1 0 0 1 1-1z'/%3E%3C/svg%3E");
  --ico-cal: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6'%3E%3Crect x='4' y='5' width='16' height='15'/%3E%3Cpath d='M4 10h16M9 3v4M15 3v4'/%3E%3C/svg%3E");
  --ico-cam: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6'%3E%3Cpath d='M4 8h3l2-3h6l2 3h3v11H4z'/%3E%3Ccircle cx='12' cy='13' r='3.5'/%3E%3C/svg%3E");
  --ico-sun: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6'%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Cpath d='M12 3v2M12 19v2M3 12h2M19 12h2M5.6 5.6 7 7M17 17l1.4 1.4M5.6 18.4 7 17M17 7l1.4-1.4'/%3E%3C/svg%3E");
  --ico-shield: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6'%3E%3Cpath d='M12 3 4 7v5c0 5 3.5 8 8 9 4.5-1 8-4 8-9V7z'/%3E%3Cpath d='m9 12 2 2 4-4'/%3E%3C/svg%3E");
  --ico-spark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6'%3E%3Cpath d='M12 3v4M12 17v4M3 12h4M17 12h4'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E");
  --ico-fleche: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 12' fill='none' stroke='%23000' stroke-width='1.2'%3E%3Cpath d='M0 6h38M33 1l5 5-5 5'/%3E%3C/svg%3E");
  --ico-fleche-g: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 12' fill='none' stroke='%23000' stroke-width='1.2'%3E%3Cpath d='M40 6H2M7 1 2 6l5 5'/%3E%3C/svg%3E");
}

/* Étapes « Comment ça marche » : titre en <strong>, pastille-icône en ::before */
:root .flow li { position: relative; display: block; padding: 6px 0 0 54px; min-height: 34px; font-size: 13px; color: var(--muted); max-width: 360px; }
:root .flow li strong { display: block; font: 500 15px/1.3 var(--f-body); color: var(--text); margin: 0 0 6px; }
:root .flow li::before, :root .flow li::after { content: ""; position: absolute; left: 0; top: 0; width: 34px; height: 34px; }
:root .flow li::before { border-radius: 50%; border: 1px solid var(--deco, #5D4C3D); }
:root .flow li::after { background: var(--bronze); -webkit-mask: center / 16px no-repeat; mask: center / 16px no-repeat; }
:root .flow li:nth-child(1)::after { -webkit-mask-image: var(--ico-tel); mask-image: var(--ico-tel); }
:root .flow li:nth-child(2)::after { -webkit-mask-image: var(--ico-cal); mask-image: var(--ico-cal); }
:root .flow li:nth-child(3)::after { -webkit-mask-image: var(--ico-cam); mask-image: var(--ico-cam); }

/* Engagements (À propos) */
:root .pillar::before { content: ""; display: block; width: 46px; height: 46px; margin: 0 auto 20px; border-radius: 50%; border: 1px solid var(--deco, #5D4C3D); background: radial-gradient(circle, transparent 60%, transparent 61%); }
:root .pillar { position: relative; }
:root .pillar::after { content: ""; position: absolute; top: 40px; left: 50%; translate: -50% 0; width: 46px; height: 46px; background: var(--bronze); -webkit-mask: center / 20px no-repeat; mask: center / 20px no-repeat; }
:root .pillar:nth-child(1)::after { -webkit-mask-image: var(--ico-sun); mask-image: var(--ico-sun); }
:root .pillar:nth-child(2)::after { -webkit-mask-image: var(--ico-shield); mask-image: var(--ico-shield); }
:root .pillar:nth-child(3)::after { -webkit-mask-image: var(--ico-spark); mask-image: var(--ico-spark); }

/* ---------- Carrousel : diapositives en blocs ---------- */
:root .slide > * { margin: 0; }
:root .slide .slide-text { font-size: 15px; line-height: 1.8; color: var(--soft, #B9B6B0); }
:root .slide .slide-cap { font-size: 14px; margin-top: 26px; }
:root .slide .slide-cap::before { content: "\201D"; display: block; font: 600 80px/.9 var(--f-display); color: var(--deco, #6D5A48); margin: 0 0 12px; height: 40px; }
:root p.slider-arrow { font-size: 0; width: 40px; height: 12px; margin: 22px 0 0; cursor: pointer; background: var(--muted); -webkit-mask: center / contain no-repeat; mask: center / contain no-repeat; transition: background .2s; }
:root p.slider-arrow.prev { -webkit-mask-image: var(--ico-fleche-g); mask-image: var(--ico-fleche-g); }
:root p.slider-arrow.next { -webkit-mask-image: var(--ico-fleche); mask-image: var(--ico-fleche); justify-self: end; }
:root p.slider-arrow:hover { background: var(--bronze); }

/* ---------- Avant / après : glisser sur l'image ---------- */
:root .ba { --pos: 50%; cursor: ew-resize; }
/* Filet de sécurité sans JavaScript : si aucun exemple n'est marqué « affiché », le premier l'est */
:root .ba-stage:not(:has(.ba.is-active)) > .ba:first-child { display: block; }
:root figure.ba-before, :root figure.ba-after { position: absolute; inset: 0; margin: 0; }
body .ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
:root .ba::before {
  content: "\2039\2003\203A"; position: absolute; top: 50%; left: var(--pos); translate: -50% -50%; z-index: 3;
  width: 58px; height: 58px; border-radius: 50%; background: rgba(11,15,18,.72); border: 1px solid var(--bronze);
  display: grid; place-items: center; color: #fff; font: 400 22px/1 var(--f-body); pointer-events: none;
}
:root .ba p.ba-label { margin: 0; }
:root .ba-thumbs figure.ba-thumb { cursor: pointer; margin: 0; }
body .ba-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Kinetic Motion : grille photos → vidéo ---------- */
:root .km-show { grid-template-columns: minmax(0, 1fr) minmax(0, 300px); column-gap: 80px; }
:root .km-sources { position: relative; }
:root .km-sources::after { content: ""; position: absolute; right: -62px; top: 50%; width: 44px; height: 12px; background: var(--bronze); -webkit-mask: var(--ico-fleche) center / contain no-repeat; mask: var(--ico-fleche) center / contain no-repeat; }
body .km-video video { width: 100%; height: 100%; object-fit: cover; display: block; }
body .km-video figcaption { margin: 0; text-align: left; color: var(--text); }
:root .km-video figcaption::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--bronze); animation: blink 1.4s infinite; }
body .offer-item video { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Photos « vivantes » : le reflet devient un pseudo-élément */
:root .is-live::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(105deg, transparent 38%, rgba(255,236,210,.20) 50%, transparent 62%);
  background-size: 260% 100%; animation: sheen 7s ease-in-out infinite; mix-blend-mode: screen;
}

/* ---------- Visuels de fond ---------- */
:root figure.hero-bg, :root figure.hotel-bg { position: absolute; inset: 0; margin: 0; }
body figure.hero-bg img, body figure.hotel-bg img { width: 100%; height: 100%; object-fit: cover; }
:root figure.hotel-bg { z-index: 0; }

/* ---------- Projets : grille automatique (boucle de requête) ---------- */
:root .projects .wp-block-query { margin: 0; }
:root ul.project-grid { list-style: none; margin: 0; padding: 0; }
:root .project-grid > li { margin: 0; min-width: 0; }
/* Alternance de grandes cartes, comme la maquette : 1re et 6e carte de chaque série de 8 */
:root .project-grid > li:nth-child(8n+1), :root .project-grid > li:nth-child(8n+6) { grid-column: span 2; }
:root .project-grid > li:nth-child(8n+1) .wp-block-post-featured-image, :root .project-grid > li:nth-child(8n+6) .wp-block-post-featured-image { clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%); }
:root .project-grid > li.is-hidden { display: none; }
:root .project > * { margin: 0; }
:root .project .wp-block-post-featured-image { height: 320px; overflow: hidden; margin: 0 0 18px; }
:root .project .wp-block-post-featured-image a { display: block; height: 100%; }
:root .project .wp-block-post-featured-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s; }
:root .project:hover .wp-block-post-featured-image img { transform: scale(1.05); }
:root .project .wp-block-post-title { font-size: 26px; font-weight: 400; margin: 0; }
:root .project .wp-block-post-title a { color: inherit; transition: color .2s; }
:root .project:hover .wp-block-post-title a { color: var(--bronze); }
:root .project-place { font: italic 400 14px/1.3 var(--f-script); color: var(--bronze); margin: 4px 0 0; }
:root .project-place a, :root .deliverables a { pointer-events: none; color: inherit; }
:root .deliverables { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
:root .deliverables a { font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; border: 1px solid var(--line-soft); color: var(--soft, #B9B6B0); padding: 4px 10px; }
:root .deliverables .wp-block-post-terms__separator { display: none; }
:root .projects-empty { text-align: center; color: var(--muted); font: italic 400 18px var(--f-script); padding: 40px 0; }

/* ---------- Ouverture d'un projet : la photo mise en avant sert de fond ---------- */
:root .case-hero .wp-block-post-featured-image { position: absolute; inset: 0; margin: 0; height: 100%; }
:root .case-hero .wp-block-post-featured-image img { width: 100%; height: 100%; object-fit: cover; }
:root .case-hero .back-link { margin: 0 0 18px; }
:root .case-hero .wp-block-post-title { font-size: clamp(50px, 6.4vw, 96px); color: #fff; margin: 0; }

/* ---------- Page projet ---------- */
:root .facts > .wp-block-group > * { margin: 0; }
:root .facts .fact-label { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
:root .facts .fact-value { margin-top: 6px; font: 400 22px/1.25 var(--f-display); }
:root .video-frame { position: relative; }
:root .video-frame::after { content: ""; position: absolute; left: 50%; top: 50%; translate: -50% -50%; width: 100px; height: 100px; border-radius: 50%; border: 1px solid rgba(255,255,255,.8); background: conic-gradient(from 0deg, transparent 0 0) ; pointer-events: none; }
:root .video-frame::before { content: ""; position: absolute; left: 50%; top: 50%; translate: -38% -50%; z-index: 1; border-style: solid; border-width: 14px 0 14px 24px; border-color: transparent transparent transparent #fff; pointer-events: none; }
:root .formats-show figure { margin: 0; }
body .formats-show img { width: 100%; object-fit: cover; border: 6px solid #1A2126; }
body .fmt-169 img { aspect-ratio: 16 / 9; }
body .fmt-916 img { aspect-ratio: 9 / 16; }
body .fmt-11 img { aspect-ratio: 1; }
body .formats-show figcaption { font-size: 12px; color: var(--muted); margin: 14px 0 0; text-align: center; }
:root .case-gallery figure, :root .aerial figure { height: 100%; }
body .case-gallery img, body .aerial img { height: 100%; }

/* ---------- Contact Form 7 ---------- */
:root .line-form .wpcf7-form-control-wrap { display: block; }
:root .line-form p { margin: 0; }
:root .line-form p.form-note { margin-top: 14px; }
:root .line-form input:not([type="checkbox"]):not([type="submit"]), :root .line-form select, :root .line-form textarea { display: block; }
:root .line-form .wpcf7-list-item { display: inline-flex; font-size: 13.5px; line-height: 1.7; }
:root .line-form .wpcf7-submit {
  width: 100%; margin-top: 10px; padding: 13px 28px; cursor: pointer;
  background: linear-gradient(90deg, var(--bronze-2), var(--bronze)); color: #fff;
  font: 600 13px/1 var(--f-body); letter-spacing: .02em; border: 0; border-radius: 2px; transition: filter .25s;
}
:root .line-form .wpcf7-submit:hover { filter: brightness(1.12); }
:root .line-form .wpcf7-list-item { margin: 0; }
:root .line-form .wpcf7-checkbox { display: flex; flex-wrap: wrap; gap: 12px 26px; }
:root .line-form .wpcf7-list-item label { display: inline-flex; flex-direction: row; align-items: center; gap: 8px; font-size: 13.5px; color: var(--text); }
:root .line-form .wpcf7-list-item input { width: auto; accent-color: var(--bronze); }
:root .wpcf7-not-valid-tip { color: #D9A27A; font-size: 12px; margin-top: 4px; }
:root .wpcf7 form .wpcf7-response-output { border: 1px solid var(--line-soft); margin: 18px 0 0; padding: 12px 16px; font-size: 13px; color: var(--text); }
:root .wpcf7-spinner { background-color: var(--bronze); }
:root .line-form .wpcf7-spinner { position: absolute; margin: 0; }
:root .filter { white-space: nowrap; margin: 0; }
:root .offer-num { line-height: 18px; margin: 0; }
:root .socials { min-height: 23px; }

/* ---------- Style de section « Fond clair (textes foncés) » ----------
   À choisir dans Styles sur une section. Fond crème par défaut, ou la couleur claire choisie
   dans Couleur → Arrière-plan. Les couleurs du thème sont des variables : on les inverse ici,
   et tout ce qui est à l'intérieur suit. */
:root .is-style-clair {
  --text: #14191C; --muted: #5B6064; --soft: #3F4549; --deco: #B59A7E;
  --bronze: #7E5E3F; --bronze-2: #6B4F34;
  --ligne-rgb: 13, 21, 24; --voile-rgb: 255, 255, 255;
  --line-soft: rgba(13, 21, 24, .16);
  color: var(--text);
}
:root .is-style-clair:not(.has-background) { background-color: #EFEAE2; }
/* Les éléments qui gardent leur propre fond sombre gardent aussi leurs textes clairs */
:root .is-style-clair :is(.panel, .promise-band, .pack.is-feature, .ba-label, .km-video figcaption, .aud, .case-hero, .hotel) {
  --text: #E6E1D8; --muted: #8E9194; --soft: rgb(185 182 176); --deco: rgb(109 90 72);
  --bronze: #A07A56; --bronze-2: #8A6E56;
  --ligne-rgb: 230, 225, 216; --voile-rgb: 6, 10, 11;
  --line-soft: rgb(230 225 216 / .14);
  color: var(--text);
}
:root .is-style-clair .wp-block-button.is-style-contour .wp-block-button__link:hover { color: #fff; }
:root .is-style-clair .line-form select option { background: #fff; color: #14191C; }

/* ---------- Pages simples (mentions légales, 404, articles) ---------- */
:root .page-simple { max-width: 860px; padding: 110px 32px 120px; }
:root .page-simple > * + * { margin-top: 16px; }
:root .page-simple h1 { font-size: clamp(40px, 5vw, 64px); margin-bottom: 28px; }
:root .page-simple h2 { font-size: 28px; margin-top: 44px; }
:root .page-simple p, :root .page-simple li { color: var(--soft, #B9B6B0); }
:root .page-simple a:not(.wp-block-button__link) { color: var(--bronze); }

@media (max-width: 900px) {
  :root .hero-content > .btn-wrap { grid-row: 3; }
}
@media (max-width: 900px) {
  :root .project-grid > li:nth-child(8n+1), :root .project-grid > li:nth-child(8n+6) { grid-column: span 2; }
}
@media (max-width: 640px) {
  :root .project-grid > li:nth-child(8n+1), :root .project-grid > li:nth-child(8n+6) { grid-column: auto; }
  :root .project .wp-block-post-featured-image { height: 250px; }
  :root .km-show { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 36px; }
  :root .km-sources::after { right: -28px; width: 20px; }
  :root .footer-nav .wp-block-navigation__container { gap: 18px; }
  :root .main-nav .wp-block-navigation__responsive-container-open svg { width: 28px; height: 28px; }
}
@media (prefers-reduced-motion: reduce) { :root *, :root *::before, :root *::after { animation: none !important; transition: none !important; } }

/* téléphone : la vidéo passe sous les photos, la flèche pointe donc vers le bas (et ne sort plus de l'écran) */
@media (max-width: 640px) {
  :root .km-show:has(.km-sources) .km-sources { margin-bottom: 26px; }
  :root .km-show:has(.km-sources) .km-sources::after { right: auto; left: 50%; top: auto; bottom: -24px; width: 24px; transform: translateX(-50%) rotate(90deg); }
}

/* Visionneuse photo (agrandissement au clic) : la taille suit l'écran en permanence.
   WordPress la calcule une seule fois à l'ouverture : en tournant le téléphone, la photo restait petite. */
:root .wp-lightbox-overlay .lightbox-image-container {
  top: 0 !important; left: 0 !important; width: 100vw !important; height: 100vh !important; height: 100dvh !important;
  transform: none !important; display: flex !important; align-items: center; justify-content: center; overflow: visible !important;
}
:root .wp-lightbox-overlay .lightbox-image-container figure { width: auto !important; height: auto !important; max-width: 100%; max-height: 100%; margin: 0 !important; display: flex; }
:root .wp-lightbox-overlay .lightbox-image-container img {
  width: 96vw !important; height: 90vh !important; height: 90dvh !important; max-width: none !important; max-height: none !important;
  object-fit: contain !important; aspect-ratio: auto !important;   /* la photo occupe toute la surface et s'y ajuste, sans recadrage */
}
/* ============ Avant / après : chaque exemple garde le format de ses photos (--ba-r posé par app.js) ============ */
/* horizontal ou vertical, sans recadrage ; un vertical ne dépasse jamais la hauteur de l écran et se centre */
:root .ba[style*="--ba-r"] { aspect-ratio: var(--ba-r) !important; max-width: min(100%, calc(80vh * var(--ba-r))); margin-inline: auto; }
:root .ba-thumb[style*="--ba-r"] { width: calc(70px * var(--ba-r)) !important; height: 70px !important; }

/* ============ Page Projets : boutons « Voir plus de projets » / « Projets plus récents » (bloc Pagination de requête) ============ */
:root .projets-pagination { gap: 16px; margin-top: 56px; }
:root .projets-pagination a {
  display: inline-flex; justify-content: center; align-items: center; gap: 10px;
  padding: 14px 30px; border: 1px solid var(--bronze); border-radius: 2px;
  font: 600 13px/1 var(--f-body); color: var(--text); text-decoration: none;
  transition: background .25s, color .25s;
}
:root .projets-pagination a:hover { background: var(--bronze); color: #fff; }
:root .projets-pagination .wp-block-query-pagination-next-arrow, :root .projets-pagination .wp-block-query-pagination-previous-arrow { margin: 0; }
