/* ── Thème clair (beige) ─────────────────────────────────────────────
   Activé par <html data-theme="light">, via le bouton soleil / lune du menu.
   Le thème sombre reste celui par défaut, défini dans chaque page. */

html[data-theme="light"] {
  --dark: #F3EDE4;
  --mid: #EAE2D6;
  --light: #1C1814;
  --muted: rgba(28,24,20,0.62);
  --glass-bg: rgba(255,255,255,0.55);
  --glass-bg-strong: rgba(255,255,255,0.75);
  --glass-border: rgba(28,24,20,0.10);
  --glass-border-strong: rgba(28,24,20,0.18);
  --glass-hover: rgba(255,255,255,0.85);
  --glass-shine: linear-gradient(135deg, rgba(255,255,255,0.75) 0%, rgba(255,255,255,0.2) 50%, rgba(255,255,255,0) 100%);
  --glass-rim: rgba(255,255,255,0.9);
  color-scheme: light;
}

html[data-theme="light"] body { background: var(--dark); color: var(--light); }

/* Ombres plus douces sur fond clair */
html[data-theme="light"] .mm-card,
html[data-theme="light"] .type-card,
html[data-theme="light"] .avantage-item,
html[data-theme="light"] .service-item,
html[data-theme="light"] .zone-item,
html[data-theme="light"] .faq-item,
html[data-theme="light"] .client-card,
html[data-theme="light"] .legal-block {
  box-shadow: 0 10px 30px rgba(60,40,20,0.08), inset 0 1px 0 rgba(255,255,255,0.9);
}

/* Logo : version fond blanc, fondue dans le beige */
html[data-theme="light"] .nav-logo img,
html[data-theme="light"] footer img { mix-blend-mode: multiply; }

/* Décor « timeline de montage » de l'accueil */
html[data-theme="light"] .timeline-bg { filter: invert(1) hue-rotate(180deg); opacity: 0.08; }

/* Le serpentin du process */
html[data-theme="light"] .mm-svg .mm-track { stroke: rgba(28,24,20,0.15); }
html[data-theme="light"] .mm-root { background: var(--dark); }

/* Bouton soleil / lune */
.theme-toggle {
  flex-shrink: 0; width: 36px; height: 36px; margin-left: 8px; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer;
  background: var(--glass-bg-strong); border: 1px solid var(--glass-border-strong); color: var(--light);
  transition: transform .3s cubic-bezier(.34,1.56,.64,1), background .3s;
}
.theme-toggle:hover { transform: rotate(-20deg) scale(1.08); }
.theme-toggle svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle .ico-sun { display: none; }
html[data-theme="light"] .theme-toggle .ico-sun { display: block; }
html[data-theme="light"] .theme-toggle .ico-moon { display: none; }

/* Transition douce lors du changement de thème */
html.theme-anim, html.theme-anim * { transition: background-color .4s ease, color .4s ease, border-color .4s ease !important; }

/* Le grand visuel du haut garde son ambiance sombre (texte clair sur la photo) */
html[data-theme="light"] .hero {
  --dark: #060608; --mid: #0d0d12; --light: #f5f0eb; --muted: rgba(245,240,235,0.7);
  --glass-bg: rgba(255,255,255,0.08); --glass-bg-strong: rgba(255,255,255,0.12);
  --glass-border: rgba(255,255,255,0.18); --glass-border-strong: rgba(255,255,255,0.25);
  color: var(--light);
}

/* Fondu du visuel sombre vers le beige en bas du haut de page */
html[data-theme="light"] .hero::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 38%; z-index: 1; pointer-events: none;
  background: linear-gradient(to bottom, rgba(243,237,228,0) 0%, rgba(243,237,228,0.55) 55%, #F3EDE4 100%);
}

/* Logo seul dans le menu */
html[data-theme="light"] nav img.logo-icon { height: 30px !important; width: auto; mix-blend-mode: normal; }
@media (max-width: 768px) { html[data-theme="light"] nav img.logo-icon { height: 26px !important; } }

/* Pied de page : sur écran moyen ou petit, on empile au lieu de superposer */
@media (max-width: 1100px) {
  footer { flex-direction: column !important; text-align: center; justify-content: center !important; gap: 16px !important; }
  footer > div:nth-child(2) { position: static !important; transform: none !important; flex-wrap: wrap; justify-content: center; }
}
html[data-theme="light"] footer img.logo-icon { height: 26px !important; width: auto; mix-blend-mode: normal; }

/* Barre de boutons flottante (accueil) : boutons sur une ligne, même hauteur */
@media (max-width: 900px) {
  .floating-cta { width: calc(100% - 24px) !important; max-width: 460px; padding: 6px !important; gap: 6px !important; align-items: stretch; }
  .floating-cta .btn-primary, .floating-cta .btn-outline {
    flex: 1 1 0 !important; min-width: 0; display: flex !important; align-items: center; justify-content: center;
    white-space: nowrap !important; text-align: center; padding: 12px 8px !important; line-height: 1 !important;
    font-size: clamp(11px, 3.2vw, 13px) !important; letter-spacing: -0.01em !important;
  }
  .floating-cta .btn-primary { flex-grow: 1.5 !important; font-weight: 600; }
}
.floating-cta .cta-short { display: none; }
@media (max-width: 480px) {
  .floating-cta .cta-long { display: none; }
  .floating-cta .cta-short { display: inline; }
}
/* Quelle que soit la largeur d'écran : jamais de retour à la ligne dans la barre flottante */
.floating-cta a { white-space: nowrap !important; }

/* Bloc « avantages » en mosaïque : des cartes de tailles différentes */
@media (min-width: 1100px) {
  .avantages-grid { grid-template-columns: repeat(4, 1fr) !important; grid-auto-flow: dense; grid-auto-rows: minmax(120px, auto); }
  .avantages-grid > .avantage-item:nth-child(1) { grid-column: span 2; }
  .avantages-grid > .avantage-item:nth-child(2) { grid-column: span 2; grid-row: span 2; }
  .avantages-grid > .avantage-item:nth-child(3),
  .avantages-grid > .avantage-item:nth-child(4) { grid-column: span 1; }
  .avantages-grid > .avantage-item:nth-child(5) { grid-column: span 3; }
  .avantages-grid > .avantage-item:nth-child(6) { grid-column: span 1; }
  /* La grande carte : texte plus gros, centrée verticalement */
  .avantages-grid > .avantage-item:nth-child(2) { align-items: center; padding: 40px 36px; }
  .avantages-grid > .avantage-item:nth-child(2) .avantage-text { font-size: 18px; }
  .avantages-grid > .avantage-item:nth-child(2) .avantage-text strong { font-size: 30px; font-weight: 700; letter-spacing: -0.04em; margin-bottom: 10px; }
  .avantages-grid > .avantage-item:nth-child(5) .avantage-text strong { font-size: 22px; font-weight: 700; letter-spacing: -0.03em; }
}

/* Zones de déplacement en mosaïque */
.zone-grid { grid-auto-flow: dense; }
@media (min-width: 900px) {
  .zone-grid { grid-template-columns: repeat(4, 1fr) !important; grid-auto-rows: minmax(140px, auto); }
  .zone-grid > .zone-item:nth-child(1) { grid-column: span 2; grid-row: span 2; display: flex; flex-direction: column; align-items: center; justify-content: center; }
  .zone-grid > .zone-item:nth-child(1) .zone-name { font-size: 64px; letter-spacing: -0.05em !important; }
  .zone-grid > .zone-item:nth-child(1) .zone-detail { font-size: 15px; }
  .zone-grid > .zone-item:nth-child(2) { grid-column: span 2; }
  .zone-grid > .zone-item:nth-child(4) .zone-name { font-size: 22px; }
}
@media (max-width: 899px) {
  .zone-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .zone-grid > .zone-item:nth-child(1) { grid-column: span 2; }
  .zone-grid > .zone-item:nth-child(1) .zone-name { font-size: 40px; }
  .zone-grid > .zone-item:nth-child(4) { grid-column: span 2; }
}
/* Téléphone et tablette : une carte par ligne, pleine largeur, texte confortable */
@media (min-width: 700px) and (max-width: 1099px) {
  .avantages-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .avantages-grid > .avantage-item { grid-column: auto !important; grid-row: auto !important; }
}
@media (max-width: 699px) {
  .avantages-grid { grid-template-columns: 1fr !important; gap: 12px !important; }
  .avantages-grid > .avantage-item { grid-column: auto !important; grid-row: auto !important; padding: 20px 22px !important; }
  .avantages-grid .avantage-text { font-size: 15px !important; line-height: 1.55 !important; }
}

/* Pictogramme de la France (encart « Lyon ») : blanc à l'origine, passé en noir sur le beige */
html[data-theme="light"] img[src*="logo-contour-france-blanc"] { filter: brightness(0); opacity: 0.85; }

/* « Ce qui nous différencie » (Montage) : 4 cartes en mosaïque équilibrée
   ┌──────────── vision ───────────┬──────────────┐
   ├──── prix ─────┬─ corrections ─┤   caméra     │
   └───────────────┴───────────────┴──────────────┘ */
@media (min-width: 900px) {
  .avantages-grid.avantages-grid--3 { grid-template-columns: repeat(4, 1fr) !important; grid-auto-rows: minmax(150px, auto); gap: 20px; }
  .avantages-grid--3 > .avantage-item { padding: 30px 28px !important; }
  .avantages-grid--3 > .avantage-item:nth-child(4) { grid-column: 1 / 3 !important; grid-row: 1 !important; }
  .avantages-grid--3 > .avantage-item:nth-child(1) { grid-column: 1 / 2 !important; grid-row: 2 !important; }
  .avantages-grid--3 > .avantage-item:nth-child(3) { grid-column: 2 / 3 !important; grid-row: 2 !important; }
  .avantages-grid--3 > .avantage-item:nth-child(2) { grid-column: 3 / 5 !important; grid-row: 1 / 3 !important; align-items: center; padding: 44px 40px !important; }
  .avantages-grid--3 .avantage-text strong { font-size: 18px; font-weight: 700; letter-spacing: -0.03em; margin-bottom: 6px; }
  .avantages-grid--3 > .avantage-item:nth-child(4) .avantage-text strong { font-size: 24px; }
  .avantages-grid--3 > .avantage-item:nth-child(2) .avantage-text strong { font-size: 34px; letter-spacing: -0.045em; margin-bottom: 12px; }
  .avantages-grid--3 > .avantage-item:nth-child(2) .avantage-text { font-size: 18px; }
}
@media (min-width: 700px) and (max-width: 899px) {
  .avantages-grid.avantages-grid--3 { grid-template-columns: 1fr 1fr !important; }
  .avantages-grid--3 > .avantage-item:nth-child(4),
  .avantages-grid--3 > .avantage-item:nth-child(2) { grid-column: 1 / -1 !important; }
}
/* 5e carte éventuelle : toute la largeur, en bas */
@media (min-width: 700px) {
  .avantages-grid--3 > .avantage-item:nth-child(5) { grid-column: 1 / -1 !important; grid-row: 3 !important; }
  .avantages-grid--3 > .avantage-item:nth-child(5) .avantage-text strong { font-size: 24px; }
}

/* Page Tournage : même cartes que Montage, mais disposition inversée (grande carte à gauche) */
@media (min-width: 900px) {
  .avantages-grid--mirror > .avantage-item:nth-child(2) { grid-column: 1 / 3 !important; grid-row: 1 / 3 !important; }
  .avantages-grid--mirror > .avantage-item:nth-child(4) { grid-column: 3 / 5 !important; grid-row: 2 !important; }
  .avantages-grid--mirror > .avantage-item:nth-child(1) { grid-column: 3 / 4 !important; grid-row: 1 !important; }
  .avantages-grid--mirror > .avantage-item:nth-child(3) { grid-column: 4 / 5 !important; grid-row: 1 !important; }
}

/* Badge au-dessus des titres : style « enregistrement » (point REC qui pulse + texte italique),
   au lieu de la pastille arrondie générique */
.hero-tag, .page-tag {
  background: none !important; border: none !important; box-shadow: none !important;
  backdrop-filter: none !important; -webkit-backdrop-filter: none !important;
  padding: 0 !important; border-radius: 0 !important;
  display: inline-flex !important; align-items: center; gap: 12px;
  font-family: 'Playfair Display', Georgia, serif !important; font-style: italic;
  font-size: 18px !important; font-weight: 400 !important;
  letter-spacing: 0 !important; text-transform: lowercase !important;
  color: var(--orange) !important;
}
.hero-tag::before, .page-tag::before {
  content: ''; width: 9px; height: 9px; border-radius: 50%; background: var(--orange); flex-shrink: 0;
  box-shadow: 0 0 0 0 rgba(255,107,0,0.55); animation: rec-pulse 1.6s ease-out infinite;
}
@keyframes rec-pulse {
  0% { box-shadow: 0 0 0 0 rgba(255,107,0,0.55); }
  70% { box-shadow: 0 0 0 9px rgba(255,107,0,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,107,0,0); }
}
@media (max-width: 600px) { .hero-tag, .page-tag { font-size: 15px !important; gap: 9px; } }

/* Sommaire vertical à droite (ordinateur, voir assets/sommaire.js) :
   une ligne verticale qui se remplit en orange, un point par partie, le nom à gauche du point */
.sommaire {
  position: fixed; right: 34px; top: 50%; transform: translate(16px, -50%); z-index: 90;
  display: flex; flex-direction: column; align-items: flex-end; gap: 26px;
  opacity: 0; pointer-events: none; transition: opacity .4s ease, transform .4s ease;
}
.sommaire.visible { opacity: 1; pointer-events: auto; transform: translate(0, -50%); }
.sommaire-line { position: absolute; right: 4px; top: 8px; bottom: 8px; width: 2px; border-radius: 2px; background: rgba(28,24,20,0.12); z-index: -1; }
.sommaire-progress { position: absolute; left: 0; right: 0; top: 0; height: calc(var(--progress, 0) * 100%); background: var(--orange); border-radius: 2px; transition: height .4s ease; }
.sommaire a { position: relative; display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--muted); line-height: 1; }
.sommaire-label { font-size: 12px; font-weight: 500; letter-spacing: 0.02em; white-space: nowrap; transition: color .25s, font-size .25s; }
.sommaire-mark { width: 10px; height: 10px; border-radius: 50%; background: var(--dark); border: 2px solid rgba(28,24,20,0.25); transition: transform .3s, background .3s, border-color .3s; }
.sommaire a:hover { color: var(--light); }
.sommaire a.passed .sommaire-mark { background: var(--orange); border-color: var(--orange); }
.sommaire a.active .sommaire-mark { background: var(--orange); border-color: var(--orange); transform: scale(1.35); box-shadow: 0 0 0 5px rgba(255,107,0,0.15); }
.sommaire a.active .sommaire-label { color: var(--orange); font-family: 'Playfair Display', Georgia, serif; font-style: italic; font-size: 16px; font-weight: 400; letter-spacing: 0; }
/* Téléphone et tablette : même rail, plus compact (points seuls, nom de la partie en cours dans une petite pastille) */
@media (max-width: 899px) {
  .sommaire { right: 8px; gap: 16px; }
  .sommaire-line { right: 13px; }
  .sommaire a { padding: 2px 9px 2px 0; }
  .sommaire-mark { width: 8px; height: 8px; border-width: 1.5px; }
  .sommaire-label { display: none; }
  .sommaire a.active .sommaire-label {
    display: block; font-size: 13px !important; padding: 5px 10px; border-radius: 100px;
    background: var(--glass-bg-strong); border: 1px solid var(--glass-border);
    backdrop-filter: var(--glass-blur-light); -webkit-backdrop-filter: var(--glass-blur-light);
    box-shadow: 0 6px 18px rgba(60,40,20,0.12);
  }
}

/* Fond flouté derrière le rail, pour qu'il se détache de ce qui défile dessous */
.sommaire {
  padding: 18px 16px 18px 18px; border-radius: 24px;
  background: rgba(243,237,228,0.72); border: 1px solid var(--glass-border);
  backdrop-filter: blur(14px) saturate(160%); -webkit-backdrop-filter: blur(14px) saturate(160%);
  box-shadow: 0 10px 30px rgba(60,40,20,0.10);
}
.sommaire-line { right: 20px; top: 26px; bottom: 26px; }
@media (max-width: 899px) {
  .sommaire { right: 6px; padding: 12px 8px; border-radius: 18px; }
  .sommaire-line { right: 20px; top: 18px; bottom: 18px; }
}
/* Téléphone : la pastille du nom sort du rail, à gauche, pour garder le rail étroit */
@media (max-width: 899px) {
  .sommaire a.active .sommaire-label { position: absolute; right: calc(100% + 14px); top: 50%; transform: translateY(-50%); }
}

/* ── Optimisations mobile (retours captures iPhone) ── */
/* Bouton du haut de l'accueil : la version courte « Rendez-vous » ne sert que dans la barre flottante */
.cta-short { display: none; }
@media (max-width: 768px) {
  /* Menu : tout doit tenir sans défiler. « Accueil » est retiré (le logo y ramène déjà) */
  nav .nav-links li:first-child { display: none; }
  nav .nav-links a { font-size: 10px !important; padding: 5px 7px !important; letter-spacing: 0.04em !important; }
  nav { gap: 4px !important; }

  /* Grands titres : plus petits et plus aérés, sans mot isolé, et jamais cachés sous le menu */
  .page-header { padding-top: 130px !important; }
  .page-title { font-size: clamp(32px, 9vw, 44px) !important; letter-spacing: -0.035em !important; }
  .page-sub { font-size: 15px !important; }
  .hero h1 span { letter-spacing: -0.025em !important; }

  /* Boutons d'appel : une seule ligne */
  .page-header .btn-primary, .cta-section .btn-primary, .btn-primary { white-space: nowrap; font-size: 12.5px !important; letter-spacing: 0.01em !important; padding-left: 18px !important; padding-right: 18px !important; }

  /* Avis : la note passe sous le titre, sans chevauchement */
  .reviews-score { margin: 0 0 32px !important; gap: 10px; }
  .reviews-note { font-size: 40px !important; }
  .reviews-stars { font-size: 18px; }
  .reviews-btns .btn-primary, .reviews-btns .btn-outline { flex: 1 1 auto; justify-content: center; }

  /* Zones de déplacement : les noms tiennent dans leur carte */
  .zone-grid .zone-item { padding-left: 14px !important; padding-right: 14px !important; }
  .zone-grid .zone-name { font-size: 22px !important; overflow-wrap: anywhere; }
  .zone-grid > .zone-item:nth-child(1) .zone-name { font-size: 40px !important; }
}

/* ── Mobile, 2e passe ── */
@media (max-width: 768px) {
  /* Titres de section : espace sous le titre pour que les cartes ne le recouvrent pas */
  .section-header { margin-bottom: 40px !important; }
  .section-header .section-title { padding-bottom: 6px; }

  /* « Ce qu'on monte / ce qu'on tourne » : défilement au doigt, sans animation automatique */
  .types-scroll-wrap { overflow-x: auto !important; -webkit-overflow-scrolling: touch; scroll-snap-type: x mandatory;
    scrollbar-width: none; -webkit-mask-image: none; mask-image: none; }
  .types-scroll-wrap::-webkit-scrollbar { display: none; }
  .types-track.marquee { animation: none !important; transform: none !important; padding: 0 20px 24px !important; }
  .types-track.marquee > [aria-hidden="true"] { display: none !important; }
  .types-track.marquee > * { scroll-snap-align: center; width: 82vw !important; min-width: 82vw !important; max-width: 82vw !important; }

  /* Débordements de texte : les mots longs passent à la ligne au lieu de sortir des cartes */
  .zone-name, .type-name, .service-name, .mm-title, .avantage-text strong, .portfolio-title, .client-name { overflow-wrap: anywhere; hyphens: auto; }
  .zone-grid .zone-name { font-size: 20px !important; }
}

/* iPhone : empêche Safari d'agrandir le texte tout seul, pour un rendu identique à une fenêtre Chrome étroite */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

/* Points sous les cartes défilantes (téléphone uniquement) */
.carousel-dots { display: none; }
@media (max-width: 768px) {
  .carousel-dots { display: flex; justify-content: center; gap: 8px; margin-top: 6px; }
  .carousel-dots button { width: 7px; height: 7px; padding: 0; border: none; border-radius: 100px; background: rgba(28,24,20,0.2); cursor: pointer; transition: width .3s ease, background .3s ease; }
  .carousel-dots button.active { width: 22px; background: var(--orange); }
}
/* Correctif : la 1re et la dernière carte peuvent elles aussi se centrer (marges latérales = (100 - 82) / 2) */
@media (max-width: 768px) {
  .types-track.marquee { padding-left: 9vw !important; padding-right: 9vw !important; gap: 14px !important; }
  .types-scroll-wrap { scroll-padding: 0 9vw; overscroll-behavior-x: contain; }
}
/* Pastille du nom de partie (téléphone) : fond plein pour rester lisible par-dessus le texte */
@media (max-width: 899px) {
  .sommaire a.active .sommaire-label {
    background: #FFFDF9 !important; border: 1px solid rgba(255,107,0,0.35) !important;
    box-shadow: 0 6px 20px rgba(60,40,20,0.18), 0 0 0 4px rgba(243,237,228,0.9) !important;
    font-weight: 500 !important;
  }
}
/* Barre flottante : glisse en douceur, et respecte la zone du bas de l'iPhone */
.floating-cta { transition: opacity .3s ease, transform .3s ease !important; bottom: calc(14px + env(safe-area-inset-bottom)) !important; }
.floating-cta:not(.visible) { transform: translate(-50%, 20px) !important; }
.floating-cta.visible { transform: translate(-50%, 0) !important; }

/* ── Fond : plus de bandes de couleur ni de lignes entre les sections, un seul dégradé doux ── */
html[data-theme="light"] body {
  background:
    radial-gradient(1200px 900px at 12% 8%, rgba(255,250,242,0.9), transparent 60%),
    radial-gradient(1000px 800px at 90% 35%, rgba(234,222,206,0.75), transparent 60%),
    radial-gradient(1100px 900px at 15% 70%, rgba(250,240,228,0.85), transparent 60%),
    radial-gradient(900px 700px at 85% 95%, rgba(236,224,208,0.7), transparent 60%),
    linear-gradient(180deg, #F3EDE4 0%, #EFE7DC 35%, #F3ECE3 65%, #EEE5D9 100%) !important;
  background-attachment: scroll !important;
}
html[data-theme="light"] section:not(.hero),
html[data-theme="light"] section.alt,
html[data-theme="light"] .portfolio, html[data-theme="light"] .contact, html[data-theme="light"] .booking,
html[data-theme="light"] .services, html[data-theme="light"] .story, html[data-theme="light"] .reviews,
html[data-theme="light"] .cta-section, html[data-theme="light"] .page-header, html[data-theme="light"] .stats {
  background: transparent !important; border-top: none !important; border-bottom: none !important;
}
html[data-theme="light"] .timeline-bg { display: none !important; }
html[data-theme="light"] footer { background: transparent !important; border-top: none !important; }
/* Le haut de page photo de l'accueil se fond dans le dégradé */
html[data-theme="light"] .hero::after { background: linear-gradient(to bottom, rgba(243,237,228,0) 0%, rgba(243,237,228,0.6) 55%, #F3EDE4 100%) !important; }

/* Titres posés sur les vignettes vidéo/photo : toujours en blanc, avec une ombre, sur fond assombri */
.portfolio-overlay, .popup-media-overlay { background: linear-gradient(to top, rgba(0,0,0,0.78) 0%, rgba(0,0,0,0.35) 45%, rgba(0,0,0,0) 75%) !important; }
.portfolio-overlay .portfolio-title, .popup-media-overlay .popup-media-title {
  color: #fff !important; text-shadow: 0 1px 10px rgba(0,0,0,0.55);
}

/* Accueil, téléphone : boutons du haut plus petits (orange au-dessus, les deux autres côte à côte) */
@media (max-width: 768px) {
  .hero-btns { display: grid !important; grid-template-columns: 1fr 1fr !important; gap: 8px !important; width: 100%; max-width: 300px; margin: 0 auto; }
  .hero-btns .btn-primary, .hero-btns .btn-outline {
    width: auto !important; padding: 11px 12px !important; justify-content: center !important; text-align: center;
    font-size: 13px !important; font-weight: 500 !important; letter-spacing: 0.01em !important; white-space: nowrap;
  }
  .hero-btns .btn-primary { grid-column: 1 / -1 !important; }
  .hero-btns .btn-outline { background: rgba(255,255,255,0.12) !important; }
}

/* Portfolio : fenêtre de projet en clair (beige), comme le reste du site */
html[data-theme="light"] .popup-overlay { background: rgba(243,237,228,0.72) !important; }
html[data-theme="light"] .popup {
  background: #FAF6F0 !important; border: 1px solid rgba(28,24,20,0.10) !important;
  box-shadow: 0 30px 80px rgba(60,40,20,0.22), inset 0 1px 0 rgba(255,255,255,0.9) !important;
}
html[data-theme="light"] .popup-name, html[data-theme="light"] .popup-media-label { color: #1C1814 !important; }
html[data-theme="light"] .popup-desc { color: rgba(28,24,20,0.68) !important; }
html[data-theme="light"] .popup-tag { background: rgba(255,107,0,0.08) !important; }
html[data-theme="light"] .popup-close { background: rgba(255,255,255,0.85) !important; border: 1px solid rgba(28,24,20,0.12) !important; color: #1C1814 !important; }
html[data-theme="light"] .popup-close svg { stroke: #1C1814 !important; }
html[data-theme="light"] .popup-media-item { background: #E9E1D5 !important; box-shadow: 0 6px 18px rgba(60,40,20,0.12); }
/* Visionneuse photo/vidéo : voile clair autour, la vidéo reste sur fond sombre */
html[data-theme="light"] .lightbox { background: rgba(243,237,228,0.9) !important; }
html[data-theme="light"] .lightbox-close, html[data-theme="light"] .lightbox-nav { background: rgba(255,255,255,0.85) !important; color: #1C1814 !important; border: 1px solid rgba(28,24,20,0.12) !important; }

/* Portfolio : finitions de la fenêtre de projet */
html[data-theme="light"] .popup-name { line-height: 1.05 !important; margin-bottom: 4px; }
html[data-theme="light"] .popup-header { margin-bottom: 14px !important; }
html[data-theme="light"] .popup-tags { gap: 6px !important; margin-bottom: 22px !important; }
html[data-theme="light"] .popup-tag { font-size: 10.5px !important; padding: 5px 11px !important; }
html[data-theme="light"] .popup-tag.photo { color: #1C1814 !important; border-color: rgba(28,24,20,0.18) !important; background: rgba(255,255,255,0.7) !important; }
html[data-theme="light"] .popup-desc { line-height: 1.65 !important; }
html[data-theme="light"] .popup-media-label { font-size: 20px !important; letter-spacing: -0.03em !important; }
html[data-theme="light"] .popup-media-item { border-radius: 16px !important; }
html[data-theme="light"] .popup-media-title { font-size: 13.5px !important; letter-spacing: -0.02em !important; line-height: 1.2 !important; }
html[data-theme="light"] .popup-media-type { font-size: 9.5px !important; letter-spacing: 0.08em !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 768px) {
  html[data-theme="light"] .popup { border-radius: 24px !important; }
  html[data-theme="light"] .popup-hero { border-radius: 24px 24px 0 0 !important; }
  html[data-theme="light"] .popup-body { padding: 22px 18px 28px !important; }
  html[data-theme="light"] .popup-name { font-size: 28px !important; }
  html[data-theme="light"] .popup-desc { font-size: 14px !important; margin-bottom: 24px !important; }
  html[data-theme="light"] .popup-media-grid { gap: 10px !important; }
  html[data-theme="light"] .popup-media-overlay { padding: 10px !important; }
  html[data-theme="light"] .popup-media-title { font-size: 12.5px !important; }
  html[data-theme="light"] .popup-cta { width: 100%; justify-content: center; font-size: 13px !important; padding: 14px 20px !important; }
}

/* Accueil, téléphone : la vidéo de fond joue aussi (l'image reste dessous le temps qu'elle charge) */
@media (max-width: 768px) {
  .hero .hero-video { display: block !important; opacity: 0.4; z-index: 0; }
  .hero .hero-mobile-bg { display: block !important; z-index: -1; }
}

/* Fond de tout le site : motif « timeline de montage » très discret, posé sur toute la hauteur de la page.
   Il défile nativement avec le contenu (aucun calcul en JavaScript), donc parfaitement fluide. */
html[data-theme="light"] body { position: relative; isolation: isolate; }
html[data-theme="light"] body::before {
  content: ''; position: absolute; left: 0; right: 0; top: 0; bottom: 0; z-index: -1; pointer-events: none;
  background-image: url('/assets/timeline-bg.svg');
  background-size: 2400px 1200px; background-repeat: repeat; background-position: center top;
  opacity: 0.0175; filter: blur(1.4px);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 12%, #000 88%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0%, #000 12%, #000 88%, transparent 100%);
}
@media (max-width: 768px) {
  html[data-theme="light"] body::before { background-size: 1440px 720px; opacity: 0.0163; filter: blur(1px); }
}
