/* ===========================
   DMA KUSTOM ART — CSS
   Garage / Kustom / Aérographe
   Charte monochrome (gris/noir/blanc), fidèle au wrap véhicule
   =========================== */

*,*::before,*::after { box-sizing:border-box; margin:0; padding:0; }

@font-face{
  font-family:'SD ProStreet';
  src:url('../fonts/sd-prostreet.ttf') format('truetype');
  font-weight:normal; font-style:normal; font-display:swap;
  /* Cette police n'a pas de glyphes propres pour les accents (é, è, à...) —
     on limite son usage à l'ASCII de base pour que le navigateur bascule
     automatiquement sur la police de secours (Bebas Neue) pour les lettres accentuées. */
  unicode-range: U+0020-007E, U+2013-2014, U+2018-2019, U+201C-201D;
}

:root{
  --bg:       #6e7175; /* gris Nardo */
  --bg2:      #5a5d61;
  --bg3:      #ffffff;
  --border:   rgba(0,0,0,.2);
  --text:     #161616;
  --muted:    rgba(20,20,20,.72);
  --accent:   #1c1c1c;
  --accent2:  #e2e3e4;
  --accent-h: #000000;
  --font-h:   'SD ProStreet', 'Bebas Neue', sans-serif;
  --font-b:   'Oswald', sans-serif;
  --font-tag: 'SD ProStreet', 'Bebas Neue', sans-serif;
  --ease:     cubic-bezier(.25,.46,.45,.94);
}

html{ scroll-behavior:smooth; overflow-x:hidden; overflow-y:auto; }
body{ overflow-x:hidden; overflow-y:auto; }
body, a, button, .btn, .gallery-item, .card{
  cursor:url('../img/cursor-airbrush.png') 8 22, auto;
}
body{
  background:
    linear-gradient(rgba(110,113,117,.90), rgba(110,113,117,.90)),
    url('../img/bg-atelier.jpg') center 20% / cover no-repeat fixed;
  color:var(--text);
  font-family:var(--font-b); font-weight:400;
}
h1,h2,h3,h4{ font-family:var(--font-h); font-weight:400; letter-spacing:.02em; line-height:1; }
a{ color:var(--accent); text-decoration:none; }
img{ max-width:100%; display:block; }
.container{ max-width:1160px; margin:0 auto; padding:0 1.5rem; }

/* ===== HEADER / NAV ===== */
.header-swoosh{
  position:absolute; left:0; bottom:-3px; width:100%; height:34px; z-index:1; pointer-events:none;
}
.livery-shape{ fill:#141414; }
.livery-highlight{ fill:none; stroke:#e8e9ea; stroke-width:2; stroke-linejoin:miter; }
.site-header{
  position:sticky; top:0; z-index:500;
  display:flex; align-items:center; justify-content:space-between;
  padding:.85rem 2rem;
  background:rgba(214,215,217,.92); backdrop-filter:blur(8px);
  border-bottom:1px solid var(--border);
  transition:padding .3s var(--ease), box-shadow .3s var(--ease);
}
.site-header.scrolled{ padding:.5rem 2rem; box-shadow:0 10px 30px rgba(0,0,0,.15); }
.logo{ position:relative; z-index:2; }
.logo img{
  position:relative;
  height:104px; transition:height .3s var(--ease), transform .6s cubic-bezier(.34,1.56,.64,1);
  transform-origin:center;
}
.site-header.scrolled .logo img{ height:76px; }
.logo:hover img{ animation:logoSpin .6s cubic-bezier(.34,1.56,.64,1) forwards; filter:drop-shadow(0 6px 14px rgba(0,0,0,.35)); }
@keyframes logoSpin{
  from { transform:scale(1) rotate(0deg); }
  to   { transform:scale(1.22) rotate(360deg); }
}
@keyframes logoPulse{
  0%, 100% { filter:drop-shadow(0 0 0 rgba(0,0,0,0)); transform:scale(1); }
  50%      { filter:drop-shadow(0 0 10px rgba(0,0,0,.25)); transform:scale(1.035); }
}
.main-nav{ display:flex; align-items:center; gap:1.75rem; }
.main-nav a{
  font-family:var(--font-tag); font-weight:normal; font-size:1.2rem;
  letter-spacing:.02em; text-transform:uppercase; color:var(--text);
  position:relative; padding:.25rem 0;
}
.main-nav a::after{
  content:''; position:absolute; left:0; right:100%; bottom:-2px; height:2px;
  background:var(--accent); transition:right .25s var(--ease);
}
.main-nav a:hover::after, .main-nav a.active::after{ right:0; }
.main-nav a.active{ color:var(--accent); font-weight:700; }
.main-nav a.nav-cta{
  border:1px solid var(--accent); padding:.5rem 1.1rem; border-radius:4px;
}
.main-nav a.nav-cta::after{ display:none; }
.main-nav a.nav-cta:hover{ background:var(--accent); color:#fff; }

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

/* ===== HERO ===== */
.hero{
  min-height:42vh; display:flex; flex-direction:column; align-items:center; justify-content:center;
  text-align:center; padding:3rem 1.5rem; position:relative; overflow:hidden;
}
.hero__bg{
  position:absolute; inset:0; z-index:-1; background-size:cover; background-position:center;
  filter:grayscale(100%) brightness(.72) contrast(1.05);
}
.hero__bg--video{ width:100%; height:100%; object-fit:cover; }
.hero__bg::after{
  content:''; position:absolute; inset:0;
  background:linear-gradient(180deg, rgba(0,0,0,.15) 0%, rgba(0,0,0,.4) 45%, rgba(0,0,0,.15) 100%);
}
.hero__label{
  font-family:var(--font-b); font-size:.8rem; letter-spacing:.3em; color:#ffffff !important;
  text-transform:uppercase; margin-bottom:1rem;
}
.hero__title{
  position:relative; display:inline-block; max-width:100%;
  font-family:var(--font-tag);
  font-size:clamp(2.3rem,11vw,8rem); color:#fff;
  letter-spacing:.01em;
  text-shadow:0 0 34px rgba(0,0,0,.55);
  transform:translate(0,0) rotate(0deg) skew(0deg) scale(1);
}
@media(max-width:960px){
  .hero__label{ font-size:.68rem; letter-spacing:.15em; padding:0 .5rem; }
}
@media(max-width:520px){
  .hero{ padding:2rem 1rem !important; }
  .hero__title{
    display:block !important; font-size:9vw !important; letter-spacing:0; word-spacing:-0.19em;
    width:100%; text-align:center; line-height:0.9; white-space:nowrap;
    max-width:none !important; -webkit-text-size-adjust:100% !important; text-size-adjust:100% !important;
    color:#fff !important; overflow:visible !important;
  }
  .hero__letter{ display:inline-block !important; -webkit-text-size-adjust:100% !important; margin:0 -0.08rem !important; }
  .hero__label{ font-size:.58rem; letter-spacing:.1em; }
}
@media(min-width:521px) and (max-width:960px){
  .hero__title{ font-size:clamp(2rem,7.5vw,5.5rem); letter-spacing:0; }
}
.hero__title span{ color:inherit; font-size:inherit; -webkit-text-size-adjust:100%; text-size-adjust:100%; }
.hero__letter{ display:inline-block; }
.hero__letter.is-glitching{
  animation:letterGlitch 140ms steps(3) 1;
}
@keyframes letterGlitch{
  0%   { transform:translate(0,0) skew(0deg) scaleY(1); }
  20%  { transform:translate(var(--gx,3px),var(--gy,-2px)) skew(var(--gsk,6deg)) scaleY(1.08); }
  45%  { transform:translate(calc(var(--gx,3px) * -0.7), calc(var(--gy,-2px) * 0.5)) skew(calc(var(--gsk,6deg) * -1)) scaleY(.94); }
  70%  { transform:translate(var(--gx2,-2px), var(--gy2,2px)) skew(0deg) scaleY(1.04); }
  100% { transform:translate(0,0) skew(0deg) scaleY(1); }
}
.hero__title-canvas{
  position:absolute; inset:0; z-index:1; pointer-events:none;
  width:100%; height:100%;
}
@media (prefers-reduced-motion: reduce){
  .hero__title-canvas{ display:none; }
}
.hero__sub{ font-size:1.1rem; color:#ffffff !important; margin-top:1rem; max-width:560px; }
.hero__cta{ margin-top:2.2rem; display:flex; gap:1rem; flex-wrap:wrap; justify-content:center; }
.hero__fb-block{ margin-top:1.6rem; display:flex; align-items:center; gap:1rem; flex-wrap:wrap; justify-content:center; }
.hero__fb-fans{
  display:inline-flex; align-items:center; gap:.6rem;
  font-family:var(--font-b); font-size:1.3rem; color:#e8e9ea; text-decoration:none;
}
.hero__fb-fans i{ color:#1877f2; font-size:1.6rem; }
.hero__fb-fans strong{ font-size:1.5rem; }
.hero__fb-fans strong{ color:#fff; }
.hero__fb-fans:hover{ color:#fff; }
.hero__cta .btn-outline{ color:#fff; border-color:rgba(255,255,255,.4); }
.hero__cta .btn-outline:hover{ border-color:#fff; color:#fff; background:rgba(255,255,255,.1); }

/* ===== BUTTONS ===== */
.btn{
  display:inline-flex; align-items:center; gap:.6rem;
  font-family:var(--font-tag); font-weight:normal; font-size:1.15rem; letter-spacing:.02em; text-transform:uppercase;
  padding:.85rem 1.9rem; border-radius:4px; border:1px solid var(--accent);
  transition:.25s var(--ease);
}
.btn-primary{ background:var(--accent); color:#fff; }
.btn-primary:hover{ background:var(--accent-h); border-color:var(--accent-h); }
.btn-outline{ color:var(--text); border-color:var(--border); }
.btn-outline:hover{ border-color:var(--accent); color:var(--accent); }

/* ===== SECTIONS ===== */
.section{ padding:5.5rem 0; position:relative; }
.section::before, .section::after{
  content:''; position:absolute; top:0; width:46px; height:14px; background:#141414; opacity:.85; pointer-events:none;
}
.section::before{ left:0; clip-path:polygon(0 0, 100% 0, 65% 100%, 0 100%); }
.section::after{ right:0; clip-path:polygon(35% 100%, 100% 100%, 100% 0, 0 0); }
.section-label{
  font-family:var(--font-tag); font-size:.85rem; letter-spacing:.2em; color:var(--accent2);
  text-transform:uppercase; margin-bottom:.75rem; text-align:center;
}
.section-title{ font-size:clamp(2.2rem,5vw,3.6rem); text-align:center; margin-bottom:1rem; color:var(--text); }
.section-sub{ text-align:center; color:var(--muted); max-width:640px; margin:0 auto 3rem; }

/* ===== CARDS (services, produits, tarifs) ===== */
.grid{ display:grid; gap:1.5rem; }
.grid-3{ grid-template-columns:repeat(3,1fr); }
.grid-4{ grid-template-columns:repeat(4,1fr); }

.card{
  position:relative; overflow:hidden;
  background:var(--bg3); border:1px solid var(--border); border-radius:10px;
  padding:2rem 1.6rem; transition:.25s var(--ease);
  box-shadow:0 1px 3px rgba(0,0,0,.06);
}
.paint-canvas{ position:absolute; inset:0; z-index:-1; pointer-events:none; border-radius:inherit; }
.card:hover{ transform:translateY(-4px); border-color:rgba(0,0,0,.25); box-shadow:0 14px 30px rgba(0,0,0,.14); }
.card__icon{ font-size:1.8rem; color:var(--accent); margin-bottom:1rem; }
.card__title{ font-size:1.5rem; color:var(--text); margin-bottom:.6rem; }
.card__text{ color:var(--muted); font-size:.92rem; line-height:1.6; }

/* ===== ABOUT ===== */
.about-grid{ display:grid; grid-template-columns:1fr 1.3fr; gap:3.5rem; align-items:center; }
.about-photo{ border-radius:10px; overflow:hidden; border:1px solid var(--border); position:relative; container-type:inline-size; }
.about-photo img{ filter:grayscale(60%); }

/* Badge "compteur Facebook en direct" — incrusté par-dessus le compteur physique à
   palettes visible dans le décor de la photo. Position/taille/rotation réglées depuis
   admin/fb_badge.php (includes/functions.php::fbBadgeStyle()), appliquées en style inline ;
   ce bloc ne définit que l'apparence "compteur à palettes" (tuiles individuelles, cadre bois). */
.fb-live-badge{
  position:absolute;
  transform-origin:center;
  background:linear-gradient(180deg,#e4c98f,#c9a768);
  border:.5cqw solid #8a6f3f;
  border-radius:.6cqw;
  display:flex; align-items:center; justify-content:center; gap:.6cqw;
  padding:.6cqw 1cqw;
  box-shadow:0 .3cqw .9cqw rgba(0,0,0,.55), inset 0 0 2px rgba(0,0,0,.4);
  filter:none; /* n'hérite pas du grayscale de la photo */
}
.fb-live-badge{ --fb-digit-scale:1; }
.fb-live-badge__icon{ color:#1b2258; font-size:calc(3.4cqw * var(--fb-digit-scale)); flex-shrink:0; margin-right:.3cqw; }
.fb-live-badge__tiles{ display:flex; gap:.4cqw; }
.fb-live-badge__tile{
  position:relative;
  background:linear-gradient(180deg,#3a49b0,#1b2258);
  border-radius:.25cqw;
  width:calc(5.6cqw * var(--fb-digit-scale)); height:calc(7.2cqw * var(--fb-digit-scale));
  display:flex; align-items:center; justify-content:center;
  box-shadow:inset 0 0 2px rgba(0,0,0,.6), 0 1px 0 rgba(255,255,255,.15);
  overflow:hidden;
  flex-shrink:0;
}
.fb-live-badge__tile::after{
  /* fine ligne médiane pour évoquer la charnière du volet mécanique */
  content:''; position:absolute; left:0; right:0; top:50%; height:1px;
  background:rgba(0,0,0,.5); transform:translateY(-.5px);
}
.fb-live-badge__tile span{
  font-family:'Courier New',monospace; font-weight:800;
  font-size:calc(4.6cqw * var(--fb-digit-scale)); line-height:1; color:#fff;
  text-shadow:0 1px 2px rgba(0,0,0,.6);
}
@media(max-width:720px){
  .fb-live-badge{ border-width:.9cqw; border-radius:1cqw; padding:.9cqw 1.4cqw; }
  .fb-live-badge__icon{ font-size:calc(4.4cqw * var(--fb-digit-scale)); }
  .fb-live-badge__tile{ width:calc(6.6cqw * var(--fb-digit-scale)); height:calc(8.6cqw * var(--fb-digit-scale)); border-radius:.4cqw; }
  .fb-live-badge__tile span{ font-size:calc(5.4cqw * var(--fb-digit-scale)); }
}

/* ===== Éditeur de position du badge (admin/fb_badge.php) ===== */
.fb-badge-editor{ position:relative; display:block; width:100%; max-width:520px; user-select:none; container-type:inline-size; }
.fb-badge-editor img{ display:block; width:100%; height:auto; border-radius:6px; }
.fb-badge-editor__box{
  position:absolute; cursor:move; box-sizing:border-box;
  outline:2px dashed rgba(255,85,85,.8); outline-offset:2px;
}
.fb-badge-editor__box .handle{
  position:absolute; width:14px; height:14px; background:#ff5555; border:2px solid #fff;
  border-radius:50%; right:-8px; bottom:-8px; cursor:nwse-resize;
}
.fb-badge-editor__box .handle-rotate{
  position:absolute; width:14px; height:14px; background:#4a90ff; border:2px solid #fff;
  border-radius:50%; left:50%; top:-28px; margin-left:-7px; cursor:grab;
}
.about-text p{ color:var(--muted); line-height:1.85; margin-bottom:1.2rem; font-size:1.02rem; }
.about-stats{ display:flex; gap:2.5rem; margin-top:2rem; padding-top:2rem; border-top:1px solid var(--border); }
.about-stats .stat-num{ font-family:var(--font-h); font-size:2.6rem; color:var(--accent); display:block; }
.about-stats .stat-label{ font-size:.75rem; letter-spacing:.1em; text-transform:uppercase; color:var(--muted); }

/* ===== GALLERY ===== */
.gallery-filters{
  display:flex; flex-wrap:wrap; gap:1rem; justify-content:center;
  margin:2.5rem auto 0; padding:1.1rem 1rem; max-width:100%;
  background:var(--bg3); border:1px solid var(--border); border-radius:12px;
  box-shadow:0 4px 18px rgba(0,0,0,.08);
}
.gallery-filters a{
  display:flex; flex-direction:column; align-items:center; gap:.5rem;
  flex:0 0 auto; min-width:70px; max-width:90px; padding:.3rem .2rem; border:none; border-radius:0;
  color:var(--muted); background:none; transition:.2s var(--ease);
  box-shadow:none;
}
.gallery-filters a span{ white-space:normal; word-break:break-word; }
.gallery-filters a i{
  width:42px; height:42px; border-radius:50%; background:var(--bg2); color:#fff;
  display:flex; align-items:center; justify-content:center; font-size:1.15rem; transition:.2s;
  box-shadow:0 1px 4px rgba(0,0,0,.15);
}
.gallery-filters a span{
  font-size:.68rem; letter-spacing:.04em; text-transform:uppercase; font-weight:600; text-align:center; line-height:1.3;
}
.gallery-filters a:hover{ transform:translateY(-3px); color:var(--text); }
.gallery-filters a:hover i{ background:var(--accent); color:#fff; }
.gallery-filters a.active{ color:var(--text); }
.gallery-filters a.active i{ background:var(--accent); color:#fff; box-shadow:0 0 0 3px rgba(255,77,28,.2); }
.gallery-filters a.active span{ font-weight:800; }
.gallery-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:1rem; }
.gallery-item{ position:relative; aspect-ratio:1; border-radius:8px; overflow:hidden; background:var(--bg3); border:1px solid var(--border); }
.gallery-item img{ width:100%; height:100%; object-fit:cover; transition:transform .5s var(--ease), filter .3s; filter:grayscale(55%); }
.gallery-item:hover img{ transform:scale(1.08); filter:grayscale(0%); }
.gallery-item__label{
  position:absolute; left:0; right:0; bottom:0; z-index:1;
  padding:1.6rem .7rem .5rem; text-align:center;
  background:linear-gradient(transparent, rgba(0,0,0,.7));
  color:#fff; font-family:var(--font-tag); font-size:.9rem; letter-spacing:.03em; text-transform:uppercase;
  pointer-events:none;
}
.gallery-empty{ text-align:center; color:var(--muted); padding:3rem; grid-column:1/-1; }

/* ===== BANNIÈRE GALERIE — grande photo pleine largeur en tête de page, façon portfolio ===== */
.gallery-banner{
  position:relative; height:38vh; min-height:240px; max-height:380px;
  background-size:cover; background-position:center 30%;
  display:flex; align-items:flex-end; overflow:hidden;
}
.gallery-banner::before{
  content:''; position:absolute; inset:0;
  background:linear-gradient(180deg, rgba(0,0,0,.15) 0%, rgba(0,0,0,.1) 40%, rgba(0,0,0,.75) 100%);
}
.gallery-banner__overlay{ position:relative; z-index:1; padding:0 6vw 3.2rem; color:#fff; }
.gallery-banner__title{
  font-family:var(--font-tag); font-size:clamp(2.4rem,6vw,4.5rem); color:#fff; margin:.2rem 0 .3rem;
  letter-spacing:.01em; line-height:1.02; text-shadow:0 2px 20px rgba(0,0,0,.4); text-transform:uppercase;
}
.gallery-banner__count{ font-size:.95rem; color:rgba(255,255,255,.8); letter-spacing:.02em; }
.gallery-banner__scroll{
  position:absolute; left:50%; bottom:1.1rem; transform:translateX(-50%); z-index:1;
  color:rgba(255,255,255,.85); font-size:1.3rem; animation:galleryBannerBounce 2s ease-in-out infinite;
}
@keyframes galleryBannerBounce{ 0%,100%{ transform:translate(-50%,0); } 50%{ transform:translate(-50%,6px); } }
@media(prefers-reduced-motion: reduce){ .gallery-banner__scroll{ animation:none; } }

/* ===== GALERIE MASONRY (page Galerie) — miniatures en colonnes, tailles naturelles, grille serrée ===== */
.gallery-masonry{ column-count:2; column-gap:6px; margin-top:.5rem; }
@media(min-width:640px){ .gallery-masonry{ column-count:3; } }
@media(min-width:1000px){ .gallery-masonry{ column-count:4; } }
.gallery-masonry .gallery-item{
  aspect-ratio:auto; display:block; break-inside:avoid; margin-bottom:6px;
  border:none; border-radius:0; background:none;
}
.gallery-masonry .gallery-item img{ height:auto; width:100%; object-fit:unset; display:block; filter:none; transition:transform .4s var(--ease), filter .3s; }
.gallery-masonry .gallery-item:hover img{ filter:grayscale(0%); }
.gallery-masonry .gallery-item__label{
  opacity:0; transition:opacity .2s; padding:1.4rem .6rem .5rem; font-size:.72rem;
}
.gallery-masonry .gallery-item:hover .gallery-item__label{ opacity:1; }
.gallery-item__share{
  position:absolute; top:.6rem; right:.6rem; z-index:2;
  width:34px; height:34px; border-radius:50%; background:rgba(12,11,13,.65); backdrop-filter:blur(3px);
  color:#fff; display:flex; align-items:center; justify-content:center; font-size:.9rem;
  opacity:0; transform:translateY(-4px); transition:opacity .2s, transform .2s, background .2s;
}
.gallery-item:hover .gallery-item__share,
.gallery-item__share:focus-visible{ opacity:1; transform:translateY(0); }
.gallery-item__share:hover{ background:var(--accent); }
@media(hover:none){ .gallery-item__share{ opacity:1; transform:none; } .gallery-masonry .gallery-item__label{ opacity:1; } } /* toujours visible au tactile (pas de hover) */

/* Popover de partage (Facebook / Instagram / copier le lien) */
.share-popover{
  position:fixed; z-index:3000; background:#1c1c1e; border:1px solid rgba(255,255,255,.12);
  border-radius:10px; padding:.5rem; box-shadow:0 12px 32px rgba(0,0,0,.4);
  display:flex; flex-direction:column; gap:.15rem; min-width:200px;
  opacity:0; transform:scale(.96); pointer-events:none; transition:opacity .15s, transform .15s;
}
.share-popover.open{ opacity:1; transform:scale(1); pointer-events:auto; }
.share-popover button{
  display:flex; align-items:center; gap:.7rem; background:none; border:none; color:#fff;
  font-family:var(--font-b); font-size:.85rem; padding:.6rem .7rem; border-radius:6px; cursor:pointer;
  text-align:left; width:100%;
}
.share-popover button:hover{ background:rgba(255,255,255,.08); }
.share-popover button i{ width:1.2rem; text-align:center; }
.share-popover button.share-fb i{ color:#1877f2; }
.share-popover button.share-ig i{ color:#e1306c; }
.share-popover .share-toast{ font-size:.72rem; color:var(--accent); padding:.2rem .7rem; display:none; }
.share-popover .share-toast.show{ display:block; }

/* ===== CARROUSEL GALERIE (ancienne version — encore utilisée en aperçu accueil) ===== */
.gallery-carousel-wrap{ position:relative; }
.gallery-carousel{
  display:flex; gap:1.2rem; overflow-x:auto; scroll-snap-type:x mandatory;
  padding:.3rem .3rem 1.5rem; scrollbar-width:none; -ms-overflow-style:none;
}
.gallery-carousel::-webkit-scrollbar{ display:none; }
.gallery-carousel .gallery-item{
  flex:0 0 auto; width:min(340px,76vw); aspect-ratio:4/5; scroll-snap-align:start;
}
.gallery-carousel-arrow{
  position:absolute; top:calc(50% - 1.5rem); z-index:2;
  width:48px; height:48px; border-radius:50%; border:1px solid var(--border);
  background:var(--bg3); color:var(--text); font-size:1.1rem;
  display:flex; align-items:center; justify-content:center; cursor:pointer;
  box-shadow:0 4px 14px rgba(0,0,0,.18); transition:.2s;
}
.gallery-carousel-arrow:hover{ background:var(--accent); color:#fff; border-color:var(--accent); }
.gallery-carousel-arrow--prev{ left:-.5rem; }
.gallery-carousel-arrow--next{ right:-.5rem; }
@media(max-width:720px){
  .gallery-carousel-arrow{ display:none; }
}

/* ===== VIDÉOS (Reels FB / TikTok) ===== */
.category-tabs-scroll{
  display:none; gap:.8rem; overflow-x:auto; padding:.8rem 0; margin-bottom:1.5rem;
  scroll-behavior:smooth; scrollbar-width:none; -ms-overflow-style:none;
}
.category-tabs-scroll::-webkit-scrollbar{ display:none; }
.category-tab{
  display:flex; align-items:center; gap:.5rem; padding:.6rem 1.2rem;
  background:var(--bg2); border:2px solid transparent; border-radius:24px; color:var(--muted);
  font-weight:600; font-size:.85rem; white-space:nowrap; cursor:pointer; transition:all .3s;
  text-decoration:none; flex-shrink:0;
}
.category-tab:hover{
  border-color:var(--accent); background:rgba(255,77,28,.05);
}
.category-tab.active{
  background:var(--accent); color:#fff; border-color:var(--accent);
  box-shadow:0 4px 12px rgba(255,77,28,.3);
}
.category-tab i{ font-size:1rem; }
.category-tab__count{
  display:inline-flex; align-items:center; justify-content:center;
  background:rgba(0,0,0,.2); border-radius:12px; padding:.2rem .5rem;
  font-size:.75rem; font-weight:700;
}

.gallery-filters--desktop{ display:flex; }

@media(max-width:600px){
  .category-tabs-scroll{ display:flex; }
  .gallery-filters--desktop{ display:none; }
}

.video-lightbox{
  display:none; position:fixed; inset:0; z-index:5000; background:rgba(0,0,0,.95);
  align-items:center; justify-content:center; padding:1rem;
}
.video-lightbox.open{ display:flex; }
.video-lightbox-container{ position:relative; width:100%; height:100%; display:flex; align-items:center; justify-content:center; }
.video-lightbox-container .video-embed{
  width:90%; height:90vh; border-radius:0; border:none; position:relative;
  max-height:none; max-width:none;
}
.video-lightbox-close{
  position:absolute; top:1rem; right:1rem; width:44px; height:44px;
  border-radius:50%; background:rgba(255,255,255,.2); border:none;
  color:#fff; font-size:1.5rem; cursor:pointer; z-index:5001;
}
.video-lightbox-close:hover{ background:rgba(255,255,255,.3); }
.video-lightbox-prev, .video-lightbox-next{
  position:absolute; top:50%; transform:translateY(-50%);
  width:44px; height:44px; border-radius:50%;
  background:rgba(255,255,255,.2); border:none; color:#fff;
  font-size:1.5rem; cursor:pointer; z-index:5001;
  transition:background .2s;
}
.video-lightbox-prev:hover, .video-lightbox-next:hover{ background:rgba(255,255,255,.3); }
.video-lightbox-prev{ left:1rem; }
.video-lightbox-next{ right:1rem; }

.video-grid{ display:grid; grid-template-columns:repeat(auto-fill, minmax(260px, 1fr)); gap:1.5rem; }
.video-card{ position:relative; background:var(--bg3); border:1px solid var(--border); border-radius:10px; overflow:hidden; padding:.6rem; }
.video-embed{ aspect-ratio:9/16; max-height:560px; background:var(--bg2); border-radius:6px; overflow:hidden; display:flex; contain:layout; will-change:transform; }
.video-embed.fullscreen{ position:fixed; inset:0; max-height:none; aspect-ratio:auto; border-radius:0; z-index:5000; }
.video-lazy{ opacity:0; transition:opacity .3s ease-in; }
.video-lazy.loaded{ opacity:1; }

@media(max-width:600px){
  .video-grid{ grid-template-columns:repeat(auto-fill, minmax(160px, 1fr)); gap:1rem; }
  .video-card{ padding:.4rem; }
  .video-embed{ max-height:380px; cursor:pointer; }
  .video-embed.fullscreen{ position:fixed; inset:0; }
}
.video-embed iframe{ width:100%; height:100%; }
/* Le plugin XFBML fb-video s'insère en largeur fixe (data-width) par défaut — on force le 100%
   pour qu'il reste responsive dans la grille, comme l'était l'iframe brut remplacé. */
.video-embed .fb-video{ width:100%; height:100%; }
.video-embed .fb-video span{ width:100% !important; }
.video-embed--fallback{ display:flex; align-items:center; justify-content:center; color:var(--muted); text-align:center; }
.video-embed--fallback a{ color:var(--muted); }
.video-embed--fallback a:hover{ color:var(--accent); }
.video-caption{ padding:.7rem .5rem .3rem; font-size:.82rem; color:var(--muted); text-align:center; }

/* ===== SHOP — filtres catégorie en vignettes ===== */
.shop-cat-grid{ display:flex; flex-wrap:wrap; justify-content:center; gap:1.4rem; margin-bottom:2.2rem; }
.shop-cat-item{ display:flex; flex-direction:column; align-items:center; gap:.5rem; width:96px; text-decoration:none; }
.shop-cat-item__img{
  width:88px; height:88px; border-radius:50%; object-fit:cover; display:flex; align-items:center; justify-content:center;
  background:var(--bg2); border:3px solid transparent; transition:border-color .2s, transform .2s;
}
.shop-cat-item__img--fallback{ color:var(--muted); font-size:1.5rem; }
.shop-cat-item:hover .shop-cat-item__img{ transform:scale(1.06); border-color:rgba(0,0,0,.15); }
.shop-cat-item.active .shop-cat-item__img{ border-color:var(--accent); }
.shop-cat-item__label{ font-size:.8rem; color:var(--text); text-align:center; font-weight:600; line-height:1.3; }
.shop-cat-item.active .shop-cat-item__label{ color:var(--accent); }
.shop-cat-item__count{ font-weight:400; color:var(--muted); }

/* ===== SHOP ===== */
.product-card{ position:relative; background:var(--bg3); border:1px solid var(--border); border-radius:10px; overflow:hidden; transition:.25s; display:flex; flex-direction:column; height:100%; }
.product-card:hover{ transform:translateY(-4px); border-color:rgba(0,0,0,.25); box-shadow:0 14px 30px rgba(0,0,0,.12); }
.product-card__img{ aspect-ratio:1; background:#000000; overflow:hidden; display:flex; align-items:center; justify-content:center; }
.product-card__img img{ width:100%; height:100%; object-fit:contain; }
.product-card__body{ padding:1.2rem 1.3rem; display:flex; flex-direction:column; flex:1; gap:0; }
.product-card__name{ font-size:1.25rem; color:var(--text); line-height:1.3; min-height:3.25rem; }
.product-card__price{ font-size:1.8rem; color:var(--accent); font-weight:800; margin:.8rem 0 1.2rem; font-family:var(--font-tag); letter-spacing:.02em; }
.product-card__price::after{ content:' TVAC'; font-weight:400; font-size:.9rem; }
.product-card__desc{ font-size:.85rem; color:var(--muted); line-height:1.5; margin-bottom:.5rem; min-height:3.83rem; }
.product-card__body .btn{ margin:0 !important; }
.product-card__body .btn:first-of-type{ margin-top:auto; margin-bottom:.6rem !important; }

/* ===== PRICING ===== */
.pricing-list{ max-width:760px; margin:0 auto; }
.pricing-row{
  display:flex; justify-content:space-between; align-items:center; gap:2.5rem;
  padding:1.4rem 0; border-bottom:1px solid var(--border);
}
.pricing-row__label{ font-size:1.3rem; color:#000; font-family:var(--font-h); letter-spacing:.02em; font-weight:600; }
.pricing-row__desc{ font-size:.85rem; color:#333; margin-top:.2rem; }
.pricing-row__price{ font-family:var(--font-h); font-size:1.4rem; color:#000; white-space:nowrap; font-weight:700; }
.pricing-note{ text-align:center; color:var(--muted); margin-top:2.5rem; font-size:.9rem; }

/* ===== TESTIMONIALS (style Facebook) ===== */
.fb-cta{
  display:flex; align-items:center; justify-content:center; gap:.7rem; flex-wrap:wrap;
  margin-bottom:3rem;
}
.fb-cta .btn-fb{
  display:inline-flex; align-items:center; gap:.6rem;
  background:#1877f2; color:#fff; border:none; border-radius:6px;
  font-family:var(--font-b); font-weight:600; font-size:.85rem; letter-spacing:.03em;
  padding:.8rem 1.6rem; transition:.2s;
}
.fb-cta .btn-fb:hover{ background:#0f60d1; }
.fb-cta .btn-fb i{ font-size:1.1rem; }

.testimonial-card{
  background:var(--bg3); border:1px solid var(--border); border-radius:10px; padding:1.6rem;
  position:relative; overflow:hidden; box-shadow:0 1px 3px rgba(0,0,0,.06);
}
.testimonial-card::before{
  content:'\f39e'; font-family:'Font Awesome 6 Brands'; position:absolute; top:1rem; right:1.1rem;
  font-size:1.3rem; color:#1877f2; opacity:.85;
}
.testimonial-photo{ margin:-1.6rem -1.6rem 1.1rem; aspect-ratio:16/10; overflow:hidden; }
.testimonial-photo img{ width:100%; height:100%; object-fit:cover; display:block; }
.testimonial-head{ display:flex; align-items:center; gap:.8rem; margin-bottom:1rem; }
.testimonial-avatar{
  width:44px; height:44px; border-radius:50%; background:linear-gradient(135deg,var(--accent),var(--accent2));
  display:flex; align-items:center; justify-content:center; font-family:var(--font-h); font-size:1.2rem; color:#fff;
  flex-shrink:0;
}
.testimonial-author{ font-family:var(--font-b); font-weight:600; color:var(--text); font-size:.95rem; display:flex; align-items:center; gap:.35rem; }
.testimonial-author .fb-verified{ color:#1877f2; font-size:.8rem; }
.testimonial-meta{ font-size:.72rem; color:var(--muted); display:flex; align-items:center; gap:.4rem; }
.testimonial-stars{ color:var(--accent); margin-bottom:.7rem; font-size:.8rem; }
.testimonial-text{ color:var(--text); line-height:1.7; margin-bottom:0; font-size:.92rem; }
.testimonial-card--embed{ padding:.6rem; overflow:hidden; }
.testimonial-card--embed::before{ display:none; }

/* ===== CONTACT ===== */
.contact-grid{ display:grid; grid-template-columns:1fr 1fr; gap:3rem; }
.contact-info-item{ display:flex; gap:.9rem; align-items:flex-start; margin-bottom:1.6rem; }
.contact-info-item i{ color:var(--accent); font-size:1.1rem; margin-top:.2rem; }
.form-group{ margin-bottom:1.2rem; }
.form-group label{ display:block; font-size:.75rem; letter-spacing:.1em; text-transform:uppercase; color:var(--muted); margin-bottom:.4rem; }
.form-group input, .form-group textarea{
  width:100%; background:var(--bg3); border:1px solid var(--border); border-radius:6px;
  color:var(--text); font-family:var(--font-b); padding:.8rem 1rem; font-size:.95rem;
}
.form-group input:focus, .form-group textarea:focus{ outline:none; border-color:var(--accent); }
.form-group textarea{ resize:vertical; min-height:120px; }
/* ===== CONFIGURATEUR DE DEVIS (devis.php) ===== */
.cfg-steps{ display:flex; justify-content:center; gap:0; margin:2rem 0 2.5rem; flex-wrap:wrap; }
.cfg-step{
  display:flex; align-items:center; gap:.6rem; padding:0 1.4rem; position:relative;
  color:var(--muted); font-size:.82rem; letter-spacing:.03em; text-transform:uppercase;
}
.cfg-step:not(:last-child)::after{
  content:''; position:absolute; right:-2px; top:50%; width:1.8rem; height:1px; background:var(--border); transform:translateY(-50%);
}
.cfg-step span{
  width:28px; height:28px; border-radius:50%; border:1px solid var(--border); background:var(--bg2);
  display:flex; align-items:center; justify-content:center; font-family:var(--font-h); font-size:1rem; color:var(--muted);
  transition:.2s;
}
.cfg-step.active{ color:var(--text); }
.cfg-step.active span{ background:var(--accent); border-color:var(--accent); color:#fff; }
.cfg-step.done span{ background:var(--accent2); border-color:var(--accent2); color:#fff; }
.cfg-step.done:hover{ opacity:.8; }
.cfg-step.done:hover span{ transform:scale(1.1); }

.cfg-wrap{ display:flex; justify-content:center; }
.cfg-main{ width:100%; max-width:1000px; }
.cfg-panel{ display:none; }
.cfg-panel.active{ display:block; }
.cfg-panel__title{ font-family:var(--font-h); font-size:1.3rem; color:var(--text); margin-bottom:1.2rem; }
.cfg-back{
  display:inline-flex; align-items:center; gap:.5rem; background:none; border:none; color:var(--muted);
  font-family:var(--font-b); font-size:.85rem; cursor:pointer; margin-bottom:1.2rem; padding:0;
}
.cfg-back:hover{ color:var(--accent); }

.cfg-product-grid{ display:grid; grid-template-columns:repeat(auto-fill,minmax(200px,1fr)); gap:1.2rem; }
.cfg-model-grid{ display:grid; grid-template-columns:repeat(auto-fill,minmax(220px,1fr)); gap:1.2rem; }
.cfg-card{
  display:flex; flex-direction:column; align-items:stretch; gap:0; text-align:center;
  background:var(--bg3); border:2px solid var(--border); border-radius:12px; overflow:hidden;
  cursor:pointer; transition:border-color .2s, transform .2s, box-shadow .2s; font-family:var(--font-b); color:var(--text);
}
.cfg-card:hover{ border-color:var(--accent); transform:translateY(-3px); box-shadow:0 8px 24px rgba(255,77,28,.15); }
.cfg-card--product{ }
.cfg-card__img{ width:100%; aspect-ratio:16/9; object-fit:contain; display:block; }
.cfg-card__icon{ width:100%; aspect-ratio:16/9; background:rgba(255,77,28,.1); display:flex; align-items:center; justify-content:center; }
.cfg-card__icon i{ font-size:2rem; color:var(--accent); }
.cfg-card__body{ padding:1.4rem 1.2rem; display:flex; flex-direction:column; gap:.4rem; }
.cfg-card__label{ font-weight:700; font-size:1rem; }
.cfg-card small{ color:var(--muted); font-size:.78rem; }

.cfg-card--model{ padding:0; overflow:hidden; text-align:left; align-items:stretch; }
.cfg-card--model img{ width:100%; aspect-ratio:4/3; object-fit:contain; transition:filter .2s; }
.cfg-card--model:hover img{ filter:brightness(1.1); }
.cfg-card--model .cfg-card__body{ padding:1rem 1.2rem; }
.cfg-card--model .cfg-card__label{ font-size:.95rem; }
.cfg-card--model .cfg-card__icon{ aspect-ratio:4/3; width:100%; border-radius:0; background:var(--bg2); }

/* ── Image interactive avec hotspots ── */
/* ── Étape 3 : disposition 2 colonnes (accordéon + récap) ── */
.cfg-step3-wrapper{ display:grid; grid-template-columns:1fr; gap:1.2rem; align-items:start; margin-bottom:1rem; }

.cfg-step3-groups{
  display:flex; flex-direction:column; gap:.4rem;
  background:var(--bg3); border:1px solid var(--border); border-radius:12px;
  padding:1rem; height:fit-content;
}
.cfg-step3-groups__title{ font-size:.75rem; letter-spacing:.1em; text-transform:uppercase; color:var(--muted); margin:0 0 .8rem; font-weight:600; }

#cfgGroupTabs{ display:flex; flex-direction:column; gap:.4rem; }

.cfg-accordion-group{ border:1px solid var(--border); border-radius:8px; overflow:hidden; }
.cfg-accordion-header{
  width:100%; padding:.8rem; background:var(--bg2); border:none; cursor:pointer;
  font-family:var(--font-b); font-size:1.4rem; color:#fff; font-weight:600;
  display:flex; align-items:center; gap:.6rem; transition:all .2s;
}
.cfg-accordion-header:hover{ background:rgba(255,77,28,.15); }
.cfg-accordion-header.open{ background:rgba(255,77,28,.25); color:var(--accent); }
.cfg-accordion-icon{
  display:inline-flex; align-items:center; justify-content:center; font-size:.75rem;
  transition:transform .2s; flex-shrink:0;
}
.cfg-accordion-header.open .cfg-accordion-icon{ transform:rotate(180deg); }
.cfg-accordion-label{ flex:1; }
.cfg-accordion-check{
  color:var(--accent); font-weight:700; font-size:.9rem; flex-shrink:0;
}
.cfg-accordion-body{ padding:.8rem; background:var(--bg3); border-top:1px solid var(--border); display:flex; flex-direction:column; gap:.5rem; animation:slideDown .2s ease-out; }
.cfg-accordion-body > p{ font-size:.8rem; }
@keyframes slideDown{ from{ opacity:0; max-height:0; } to{ opacity:1; max-height:500px; } }

#cfgGroupOptions{ display:flex; flex-direction:column; gap:.5rem; }
.cfg-group-opt{
  display:flex; align-items:center; gap:.6rem;
  padding:.6rem; background:var(--bg2); border:2px solid var(--border); border-radius:8px;
  cursor:pointer; transition:all .2s;
}
.cfg-group-opt:hover{ border-color:var(--accent); background:rgba(255,77,28,.05); }
.cfg-group-opt:hover .cfg-group-opt__name,
.cfg-group-opt:hover .cfg-group-opt__price{
  color:#1a1a1a;
}
.cfg-group-opt.selected{
  border-color:#1e40af; background:rgba(30,64,175,.5);
  box-shadow:0 2px 6px rgba(30,64,175,.5);
}
.cfg-group-opt.selected .cfg-group-opt__name,
.cfg-group-opt.selected .cfg-group-opt__price{
  color:#fff;
}
.cfg-group-opt input[type="checkbox"], .cfg-group-opt input[type="radio"]{ flex-shrink:0; width:18px; height:18px; }
.cfg-group-opt-img{ width:48px; height:48px; border-radius:6px; overflow:hidden; flex-shrink:0; background:var(--bg3); display:flex; align-items:center; justify-content:center; cursor:pointer; transition:transform .2s; margin-left:auto; }
.cfg-group-opt-img:hover{ transform:scale(1.05); }
.cfg-group-opt-img img{ width:100%; height:100%; object-fit:contain; }
.cfg-group-opt__info{ flex:1; min-width:0; display:flex; flex-direction:column; justify-content:center; }
.cfg-group-opt__name{ font-weight:600; font-size:1.2rem; color:var(--text); margin-bottom:.15rem; }
.cfg-group-opt__price{ display:none; }

.cfg-interactive__placeholder p{ margin-top:.8rem; font-size:.85rem; }

@keyframes slideIn{
  from{ transform:translateX(400px); opacity:0; }
  to{ transform:translateX(0); opacity:1; }
}
@keyframes slideOut{
  from{ transform:translateX(0); opacity:1; }
  to{ transform:translateX(400px); opacity:0; }
}

.cfg-btn-next{ margin-top:1.2rem; width:100%; }

/* ── Récapitulatif ── */
.cfg-summary{
  background:var(--bg3); border:1px solid var(--border); border-radius:12px;
  padding:1.4rem; width:100%;
}
.cfg-summary h3{ font-family:var(--font-h); font-size:1.7rem; color:var(--text); margin-bottom:.9rem; letter-spacing:.01em; }
.cfg-summary__img{ border-radius:8px; overflow:hidden; margin-bottom:.9rem; background:#ffffff; }
.cfg-summary__img img{ width:100%; aspect-ratio:4/3; object-fit:contain; display:block; background:#ffffff; padding:.5rem; }
.cfg-summary__product{ font-weight:700; font-size:1.35rem; color:var(--text); margin-bottom:.9rem; }
.cfg-summary__list{ list-style:none; margin:0 0 1rem; padding:0; border-top:1px solid var(--border); }
.cfg-summary__list li{ display:flex; justify-content:space-between; gap:.6rem; font-size:1.25rem; padding:.55rem 0; border-bottom:1px solid var(--border); color:var(--muted); }
.cfg-summary__list li span:last-child{ color:var(--text); font-weight:600; white-space:nowrap; }
.cfg-summary__empty{ font-style:italic; }

.cfg-summary__totals{ border-top:2px solid var(--border); padding-top:.8rem; margin-top:.4rem; }
.cfg-summary__row{ display:flex; justify-content:space-between; align-items:center; font-size:1.25rem; color:var(--muted); padding:.3rem 0; }
.cfg-summary__row strong{ font-family:var(--font-h); font-size:1.7rem; color:var(--text); font-weight:normal; }
.cfg-summary__row--tvac{ border-top:1px solid var(--border); padding-top:.6rem; margin-top:.3rem; }
.cfg-summary__row--tvac strong{ font-size:2.3rem; color:var(--accent); font-weight:normal; }

.cfg-form label{ display:block; font-size:.82rem; color:var(--muted); margin-bottom:.3rem; margin-top:.9rem; text-transform:uppercase; letter-spacing:.03em; }
.cfg-form input, .cfg-form textarea{ width:100%; padding:.7rem .9rem; background:var(--bg2); border:1px solid var(--border); border-radius:6px; color:var(--text); font-family:var(--font-b); font-size:.9rem; }
.cfg-form textarea{ resize:vertical; min-height:80px; }

.cfg-success{ text-align:center; padding:4rem 1.5rem; color:var(--text); }
.cfg-success i{ color:var(--accent); margin-bottom:1rem; }
.cfg-success h3{ font-family:var(--font-h); font-size:1.8rem; margin-bottom:.6rem; }
.cfg-success p{ color:var(--muted); max-width:44ch; margin:0 auto 1.6rem; }

@media(max-width:960px){
  .cfg-main{ max-width:100%; }
}
@media(max-width:600px){
  body{ font-size:1.05rem; line-height:1.6; }
  h1, h2, h3, h4, h5, h6{ font-size:clamp(1.3rem, 5vw, 2rem); }
  p, span, li{ font-size:1.05rem; }
  .section-title{ font-size:1.8rem; }

  .cfg-product-grid, .cfg-model-grid{ grid-template-columns:1fr 1fr; gap:.8rem; }
  .cfg-card{ padding:1.2rem .8rem; }
  .cfg-card__icon{ width:48px; height:48px; }
  .cfg-step3-wrapper{ grid-template-columns:1fr; }
  .cfg-step3-image{ min-height:350px; }
  #cfgGroupTabs{ gap:.3rem; }
  .cfg-accordion-header{ font-size:1.25rem; padding:.8rem; overflow-wrap:break-word; }
  .cfg-accordion-body{ padding:.8rem; gap:.5rem; }
  .cfg-group-opt{ padding:.7rem; gap:.5rem; }
  .cfg-group-opt-img{ width:50px; height:50px; }
  .cfg-group-opt__name{ font-size:.95rem; }
  .cfg-group-opt__price{ font-size:.9rem; }
}

.alert{ padding:1rem 1.3rem; border-radius:6px; margin-bottom:1.5rem; font-size:.9rem; }
.alert-success{ background:rgba(34,140,60,.12); border:1px solid rgba(34,140,60,.3); color:#1c6b32; }
.alert-error{ background:rgba(190,30,45,.1); border:1px solid rgba(190,30,45,.28); color:#9c1c28; }

/* ===== FOOTER ===== */
.site-footer{ background:var(--bg2); border-top:1px solid var(--border); margin-top:5rem; }
.footer-inner{ max-width:1160px; margin:0 auto; padding:3.5rem 1.5rem 2rem; display:grid; grid-template-columns:1.3fr 1fr 1fr; gap:2.5rem; }
.footer-logo{ height:38px; margin-bottom:.8rem; }
.footer-col p{ color:var(--muted); font-size:.88rem; line-height:1.6; margin-bottom:.5rem; }
.footer-col h4{ font-size:.85rem; letter-spacing:.1em; text-transform:uppercase; color:var(--text); margin-bottom:1rem; font-family:var(--font-b); font-weight:600; }
.footer-col a{ color:var(--muted); }
.footer-col a:hover{ color:var(--accent); }
.social-icons{ display:flex; gap:1rem; font-size:1.3rem; }
.social-icons a{ color:var(--text); }
.social-icons a:hover{ color:var(--accent); }
.footer-bottom{ text-align:center; padding:1.2rem; border-top:1px solid var(--border); font-size:.75rem; color:var(--muted); }
.footer-admin-link{ color:inherit; font-size:inherit; transition:opacity .3s; }
.footer-admin-link:hover{ opacity:.55; }

/* ===== REVEAL ON SCROLL ===== */
.reveal-up{ opacity:0; transform:translateY(28px); transition:opacity .7s var(--ease), transform .7s var(--ease); }
.reveal-up.visible{ opacity:1; transform:translateY(0); }
@media (prefers-reduced-motion: reduce){
  .reveal-up{ opacity:1; transform:none; transition:none; }
}

/* ===== LIGHTBOX (reste sombre — visionneuse plein écran, indépendante du thème du site) ===== */
.lightbox{
  position:fixed; inset:0; z-index:2000; display:none; align-items:center; justify-content:center;
  background:rgba(6,5,6,.94); backdrop-filter:blur(4px); padding:2rem;
  opacity:0; transition:opacity .25s var(--ease);
}
.lightbox.open{ display:flex; opacity:1; }
.lightbox img{ max-width:min(92vw,1100px); max-height:88vh; border-radius:8px; box-shadow:0 20px 60px rgba(0,0,0,.6); }
.lightbox-close{
  position:absolute; top:1.2rem; right:1.5rem; background:none; border:none; color:#fff;
  font-size:2.4rem; line-height:1; cursor:pointer; transition:transform .2s, color .2s;
}
.lightbox-close:hover{ color:#bbb; transform:rotate(90deg); }

/* ===== DIAPORAMA GALERIE (reste noir — mode kiosque plein écran) ===== */
.slideshow-trigger{ display:flex; justify-content:center; margin:-1.5rem 0 3rem; }
.slideshow-overlay{
  position:fixed; inset:0; z-index:6000; background:#000;
  display:none; align-items:center; justify-content:center; overflow:hidden;
  cursor:none;
}
.slideshow-overlay.active{ display:flex; }
.slideshow-overlay.show-cursor{ cursor:default; }
.slideshow-slide{
  position:absolute; inset:0; background-size:contain; background-position:center; background-repeat:no-repeat;
  opacity:0; transform:scale(1.04);
  transition:opacity 1.4s ease, transform 6s ease-out;
}
.slideshow-slide.is-active{ opacity:1; transform:scale(1); }
.slideshow-vignette{
  position:absolute; inset:0; pointer-events:none;
  box-shadow:inset 0 0 18vw rgba(0,0,0,.55);
}
.slideshow-exit{
  position:absolute; top:1.5rem; right:1.5rem; z-index:2;
  width:46px; height:46px; border-radius:50%; border:1px solid rgba(255,255,255,.25);
  background:rgba(0,0,0,.35); color:#fff; font-size:1.3rem; display:flex; align-items:center; justify-content:center;
  opacity:0; transition:opacity .3s;
}
.slideshow-overlay.show-cursor .slideshow-exit{ opacity:1; }
.slideshow-caption{
  position:absolute; left:0; right:0; bottom:3.2rem; text-align:center; z-index:2;
  pointer-events:none;
}
.slideshow-caption span{
  display:inline-block;
  font-family:var(--font-tag); color:#fff; font-size:clamp(1.8rem,5vw,3.6rem);
  letter-spacing:.03em; text-transform:uppercase;
  text-shadow:0 4px 24px rgba(0,0,0,.7);
  opacity:0;
}
.slideshow-caption span.anim{ animation:slideshowCaptionIn .8s cubic-bezier(.22,1,.36,1) both; }
@keyframes slideshowCaptionIn{
  0%   { opacity:0; transform:translateY(28px) scale(.94); }
  60%  { opacity:1; }
  100% { opacity:1; transform:translateY(0) scale(1); }
}
.slideshow-progress{ position:absolute; left:0; right:0; bottom:0; height:3px; background:rgba(255,255,255,.15); z-index:2; }
.slideshow-progress__bar{ height:100%; width:0%; background:#fff; }

/* ===== TRAIT GRAPHIQUE (accent fin façon coup de pinceau, comme sur le véhicule) ===== */
.swoosh{ display:block; pointer-events:none; }
.swoosh path{ fill:none; stroke:currentColor; stroke-width:3; stroke-linecap:round; }
.swoosh--dark{ color:#1c1c1c; }
.swoosh--light{ color:#fff; }

.stripe-corner{
  position:absolute; top:0; right:0; width:220px; height:120px;
  pointer-events:none; z-index:1; opacity:.85;
}
.stripe-underline{ display:block; width:90px; height:20px; margin:0 auto 1.2rem; }

/* ===== BOUTON MUSIQUE FLOTTANT ===== */
.music-widget{
  position:fixed; right:1.5rem; bottom:1.5rem; z-index:2500;
  display:flex; flex-direction:column; align-items:center; gap:.7rem;
}
.music-toggle{
  width:52px; height:52px; border-radius:50%; border:1px solid var(--border);
  background:var(--accent); color:#fff; font-size:1.15rem;
  display:flex; align-items:center; justify-content:center; cursor:pointer;
  box-shadow:0 6px 18px rgba(0,0,0,.3); transition:transform .2s, background .2s;
}
.music-toggle:hover{ transform:scale(1.08); background:var(--accent-h); }
.music-toggle.is-playing i{ animation:musicSpin 3s linear infinite; }
@keyframes musicSpin{ from{ transform:rotate(0deg); } to{ transform:rotate(360deg); } }

/* Réglage de volume : slider horizontal pivoté à la verticale, au-dessus du bouton */
.music-volume-wrap{
  width:36px; height:78px; border-radius:18px;
  background:rgba(20,20,22,.55); backdrop-filter:blur(6px);
  border:1px solid var(--border);
  display:flex; align-items:center; justify-content:center;
  box-shadow:0 4px 14px rgba(0,0,0,.25);
}
.music-volume{
  -webkit-appearance:none; appearance:none;
  width:60px; height:4px; margin:0; background:rgba(255,255,255,.25); border-radius:2px;
  transform:rotate(-90deg); cursor:pointer; outline:none;
}
.music-volume::-webkit-slider-thumb{
  -webkit-appearance:none; width:14px; height:14px; border-radius:50%;
  background:var(--accent); cursor:pointer; box-shadow:0 1px 3px rgba(0,0,0,.4);
}
.music-volume::-moz-range-thumb{
  width:14px; height:14px; border-radius:50%; border:none;
  background:var(--accent); cursor:pointer; box-shadow:0 1px 3px rgba(0,0,0,.4);
}
.music-volume::-moz-range-track{ background:rgba(255,255,255,.25); height:4px; border-radius:2px; }
@media(max-width:720px){
  .music-widget{ right:1rem; bottom:1rem; }
}

/* ===== RESPONSIVE ===== */
@media(max-width:1000px){
  .grid-4{ grid-template-columns:repeat(2,1fr); }
  .grid-3{ grid-template-columns:repeat(2,1fr); }
  .gallery-grid{ grid-template-columns:repeat(3,1fr); }
  .about-grid, .contact-grid{ grid-template-columns:1fr; }
  .footer-inner{ grid-template-columns:1fr; }
}
@media(max-width:960px){
  .burger{ display:flex; }
  .main-nav{
    position:fixed; inset:0 0 0 auto; width:75%; max-width:300px; height:100vh;
    background:var(--bg2); flex-direction:column; align-items:flex-start; gap:1.5rem;
    padding:6rem 2rem; transform:translateX(100%); transition:transform .35s var(--ease); z-index:600;
    box-shadow:-10px 0 30px rgba(0,0,0,.15);
  }
  .main-nav.open{ transform:translateX(0); }
  .gallery-grid{ grid-template-columns:repeat(2,1fr); }
  .grid-4, .grid-3{ grid-template-columns:1fr; }
  .pricing-row{ flex-direction:column; align-items:flex-start; gap:.3rem; }
}

/* Animations de swipe style Tinder */
@keyframes swipeOutLeft {
  0% { transform: translateX(0) rotateZ(0deg); opacity: 1; }
  100% { transform: translateX(-120vw) rotateZ(-15deg); opacity: 0; }
}

@keyframes swipeOutRight {
  0% { transform: translateX(0) rotateZ(0deg); opacity: 1; }
  100% { transform: translateX(120vw) rotateZ(15deg); opacity: 0; }
}

body.swipe-left {
  animation: swipeOutLeft 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

body.swipe-right {
  animation: swipeOutRight 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}
