/* ============================================
   by John - One-page Parallax PWA
   Variables & Reset
   ============================================ */
:root {
  --bg-dark: #0a0a12;
  --bg-card: rgba(20, 22, 35, 0.85);
  --accent: #c9a962;
  --accent-dim: rgba(201, 169, 98, 0.4);
  --text: #e8e6e3;
  --text-muted: #9a968f;
  --font-sans: 'Outfit', sans-serif;
  --font-display: 'Playfair Display', serif;
  --font-intruder: 'Barriecito', system-ui;
  --nav-width: 180px;
  --section-min-height: 100vh; /* fallback navigateurs anciens */
  --transition-smooth: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --scratch-y: 0px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background: var(--bg-dark);
  color: var(--text);
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
}

/* Fix Safari : 100vh inclut la barre d'adresse → dvh corrige ça */
@supports (min-height: 100dvh) {
  :root {
    --section-min-height: 100dvh;
  }
}

/* ============================================
   Bars.png dispersés de ci de là au scroll (parallax)
   ============================================ */
.floating-bars {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 15;
  overflow: hidden;
}

.floating-bar {
  position: absolute;
  will-change: transform;
  transition: transform 0.08s linear;
  opacity: 0.85;
  mix-blend-mode: screen;
  filter: drop-shadow(0 2px 12px rgba(0, 0, 0, 0.5));
}

.floating-bar img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.floating-bar {
  aspect-ratio: 1;
  min-height: 80px;
}

.floating-bar.bar-1 { width: 140px; top: 12%; left: 8%; }
.floating-bar.bar-2 { width: 100px; top: 55%; right: 15%; }
.floating-bar.bar-3 { width: 180px; bottom: 25%; left: 5%; }
.floating-bar.bar-4 { width: 90px; top: 30%; right: 10%; }
.floating-bar.bar-5 { width: 120px; top: 75%; left: 45%; }
.floating-bar.bar-6 { width: 160px; top: 18%; right: 30%; }
.floating-bar.bar-7 { width: 110px; bottom: 40%; right: 8%; }
.floating-bar.bar-8 { width: 130px; top: 62%; left: 25%; }

/* Flash.png = bande 3536×1px — au-dessus des scratch, sous bars/filmstrip (z-index 5), pleine largeur, 1px */
.floating-flashes {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 5;
  overflow: visible;
}

.floating-flash {
  position: absolute;
  left: 0;
  width: 100%;
  height: 1px;
  will-change: transform;
  transition: transform 0.08s linear;
  opacity: 1;
  line-height: 0;
  filter: brightness(1.2) contrast(1.2) drop-shadow(0 0 8px rgba(201, 169, 98, 0.35));
}

.floating-flash img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: fill;
  object-position: center;
}

/* Une bande par zone de scroll (vh = hauteur de page), réparties sur tout le défilement */
.floating-flash.flash-1 { top: 25vh; }
.floating-flash.flash-2 { top: 95vh; }
.floating-flash.flash-3 { top: 165vh; }
.floating-flash.flash-4 { top: 235vh; }
.floating-flash.flash-5 { top: 305vh; }
.floating-flash.flash-6 { top: 375vh; }

/* Section overlay (vide, conservé pour cohérence) */
.section-overlay {
  position: absolute;
  inset: 0;
  z-index: 0.5;
  pointer-events: none;
  overflow: hidden;
}

/* Filmstrip en continu : bords gauche et droit uniquement */
.filmstrip-edges {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 10;
  overflow: hidden;
}

.filmstrip-edge {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 48px;
  background-image: url("../images/filmstrip.png");
  background-repeat: repeat-y;
  background-size: 48px auto;
  background-position: 0 0;
  will-change: background-position;
  opacity: 0.6;
  mix-blend-mode: overlay;
}

.filmstrip-left {
  left: 0;
  transform: scaleX(-1);
}

.filmstrip-right {
  right: 0;
}

@media (max-width: 768px) {
  .filmstrip-edge {
    width: 32px;
    background-size: 32px auto;
    opacity: 0.5;
  }
}

/* ============================================
   Menu principal (droite, centré)
   ============================================ */
.main-nav {
  position: fixed;
  top: 50%;
  right: 2rem;
  transform: translateY(-50%);
  z-index: 100;
  transition: var(--transition-smooth);
}

.nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: flex-end;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
  transition: var(--transition-smooth);
  position: relative;
}

.nav-link:hover {
  color: var(--accent);
}

.nav-link.active {
  color: var(--accent);
}

.nav-link.active::before {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 60%;
  background: var(--accent);
  border-radius: 2px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: 1px solid var(--accent-dim);
  padding: 0.75rem;        /* ~44px touch target */
  min-width: 44px;
  min-height: 44px;
  border-radius: 6px;
  cursor: pointer;
  color: var(--accent);
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
}

/* Overlay Teaser : vidéo plein écran */
.teaser-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  pointer-events: none;
}

.teaser-overlay.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.teaser-overlay-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 18, 0.92);
  cursor: pointer;
}

.teaser-overlay-inner {
  position: relative;
  width: 100%;
  max-width: 900px;
  max-height: 90vh;
  aspect-ratio: 16 / 9;
  z-index: 1;
}

.teaser-close {
  position: absolute;
  top: -2.5rem;
  right: 0;
  width: 2.5rem;
  height: 2.5rem;
  background: transparent;
  border: 1px solid var(--accent-dim);
  border-radius: 6px;
  color: var(--accent);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
  z-index: 2;
}

.teaser-close:hover {
  background: var(--accent-dim);
  color: var(--text);
}

.teaser-video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #000;
  border-radius: 8px;
  border: 1px solid var(--accent-dim);
}

/* Teaser : pleine page sur mobile (iPhone) */
@media (max-width: 768px) {
  .teaser-overlay {
    padding: 0;
    padding-bottom: env(safe-area-inset-bottom);
  }

  .teaser-overlay-inner {
    position: absolute;
    inset: 0;
    max-width: none;
    max-height: none;
    aspect-ratio: auto;
    width: 100%;
    height: 100%;
  }

  .teaser-video {
    border-radius: 0;
    border: none;
    object-fit: contain;
  }

  .teaser-close {
    top: calc(0.5rem + env(safe-area-inset-top));
    right: calc(0.5rem + env(safe-area-inset-right));
  }
}

/* Calque scratch global (z-index 0) — sous flash et sous les bg */
.page-scratch {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  background-image: url("../images/scratch.png");
  background-size: 100% auto;
  background-repeat: repeat-y;
  background-position: 0 var(--scratch-y);
  background-color: var(--bg-dark);
  pointer-events: none;
}

/* ============================================
   Sections & contenu (z-index 10 = au-dessus des flash)
   ============================================ */
main {
  position: relative;
  z-index: 10;
}

/* En-tête : visage + texte by John, pleine largeur, sous le filmstrip (z-index 10) */
.page-header-wrapper {
  position: relative;
  z-index: 8;
}

.page-header {
  width: 100%;
  display: flex;
  flex-direction: column;
}

/* Barriecito pour by John (toutes occurrences) */
.barriecito-regular {
  font-family: var(--font-intruder);
  font-weight: 400;
  font-style: normal;
}

.page-header .header-visage,
.page-header .header-texte {
  width: 100%;
  height: auto;
  display: block;
  vertical-align: top;
}

.page-header .header-texte {
  object-fit: cover;
  object-position: center;
}

.section {
  min-height: var(--section-min-height);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem 4rem calc(2rem + var(--nav-width));
  transition: transform 0.1s linear;
  position: relative;
  background-color: transparent;
  background-repeat: no-repeat;
  background-position: center;
}


.section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 10, 18, 0.75) 0%, rgba(10, 10, 18, 0.6) 50%, rgba(10, 10, 18, 0.75) 100%);
  z-index: 0;
  pointer-events: none;
}

.section-inner {
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* Vidéo de fond dans les sections (sous l’overlay, sous le contenu) */
.section-video {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.section-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Sections : uniquement les bg (scratch = calque global .page-scratch) — ordre scratch → flash → bg */
.section-hero {
  background-image: none;
  background-color: transparent;
}

.section-hero::before {
  display: none;
}

/* Section 2 : Présentation — vidéo (même taille que teaser) + titre + description */
.section-presentation {
  background-image: url("../images/bg-2.jpg");
  background-size: 55%;
  background-position: center;
  background-repeat: no-repeat;
}

.presentation-video-wrap {
  width: 100%;
  max-width: 900px;
  aspect-ratio: 16 / 9;
  margin: 0 auto 1.5rem;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--accent-dim);
}

.presentation-video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #000;
}

/* Section 3 : Services — image bg */
.section-services {
  background-image: url("../images/bg-3.jpg");
  background-size: 55%;
  background-position: center;
  background-repeat: no-repeat;
}

.section-realisations {
  background-image: url("../images/bg-1.jpg");
  background-size: 55%;
  background-position: center;
  background-repeat: no-repeat;
}

/* Section Films — tags de noms de films */
.section-films {
  background-image: url("../images/bg-2.jpg");
  background-size: 55%;
  background-position: center;
  background-repeat: no-repeat;
}

/* Alternance bg par section : une image unique par section */
#presentation {
  background-image: url("../images/bg-1.jpg");
}
#projets {
  background-image: url("../images/bg-2.jpg");
}
#films {
  background-image: url("../images/bg-3.jpg");
}
#offres {
  background-image: url("../images/bg-4.jpg");
  background-size: 55%;
  background-position: center;
  background-repeat: no-repeat;
}
#realisations {
  background-image: url("../images/bg-5.jpg");
}
#apropos {
  background-image: url("../images/bg-6.jpg");
}

.film-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  max-width: 720px;
}

.film-tag {
  display: inline-block;
  padding: 0.5rem 1rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--accent);
  background: var(--bg-card);
  border: 1px solid var(--accent-dim);
  border-radius: 999px;
  transition: var(--transition-smooth);
}

.film-tag:hover {
  background: var(--accent-dim);
  color: var(--text);
  border-color: var(--accent);
}

.film-tag {
  text-decoration: none;
}

/* Pages film dédiées (même style que legal-page : pas de scroll vide) */
body.film-page {
  min-height: auto;
}

.film-page .floating-flashes {
  height: 100vh;
  overflow: hidden;
}

.film-page .page-header .header-visage {
  max-height: 28vh;
  object-fit: cover;
  object-position: center;
}

.film-page .page-header .header-texte {
  max-height: 12vh;
  object-fit: contain;
  object-position: center;
}

.film-main {
  position: relative;
  z-index: 10;
}

.film-main .film-section {
  min-height: 0;
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.film-main .film-section:first-child {
  padding-top: 1.5rem;
}

.film-main .film-section#video.film-section {
  padding-top: 1rem;
  padding-bottom: 2rem;
}

.film-main .section-inner .video-placeholder {
  color: var(--text-muted);
  font-style: italic;
}

.film-info {
  margin: 1rem 0 1.25rem;
  max-width: 640px;
}

.film-meta {
  font-size: 0.95rem;
  color: var(--accent);
  font-weight: 500;
  margin: 0 0 0.75rem;
}

.film-description {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

@media (max-width: 768px) {
  .film-page .page-header .header-visage {
    max-height: 22vh;
  }
  .film-page .page-header .header-texte {
    max-height: 10vh;
  }

  /* Vidéo pages film : format 16:9 respecté, pleine largeur */
  .film-main section#video .presentation-video-wrap {
    max-width: none;
    width: 100%;
    aspect-ratio: 16 / 9;
    margin: 1rem 0;
    border-radius: 0;
    border-left: none;
    border-right: none;
  }
  .film-main section#video .presentation-video {
    object-fit: contain;
  }
}

.section-contact {
  background-image: none;
  background-color: transparent;
  min-height: auto;
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.section-contact::before {
  display: none;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 600;
  line-height: 1.15;
  margin-bottom: 1rem;
}

.hero-title .line {
  display: block;
}

.hero-title .accent {
  color: var(--accent);
  font-style: italic;
}

.hero-title .accent .barriecito-regular {
  font-style: normal;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  font-weight: 300;
}

.hero-tagline {
  font-size: 1.15rem;
  color: var(--accent);
  margin-bottom: 2rem;
  font-weight: 400;
  font-style: italic;
}

.cta-scroll {
  display: inline-block;
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  letter-spacing: 0.08em;
  padding: 0.75rem 1.5rem;
  border: 1px solid var(--accent-dim);
  border-radius: 6px;
  transition: var(--transition-smooth);
}

.cta-scroll:hover {
  background: var(--accent-dim);
  color: var(--text);
}

/* Titres de section */
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: var(--text);
}

.section-text {
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 600px;
}

/* Présentation - cartes */
.presentation-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
}

.card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(201, 169, 98, 0.15);
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  font-weight: 500;
  color: var(--accent);
  transition: var(--transition-smooth);
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-dim);
}

/* Services — article de presse */
.services-article {
  max-width: 640px;
}

.services-article p {
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 1.25rem;
}

.services-article p:last-child {
  margin-bottom: 0;
}

.article-lead {
  font-size: 1.15rem;
  color: var(--text);
  font-weight: 500;
  border-left: 3px solid var(--accent);
  padding-left: 1rem;
  margin-bottom: 1.5rem;
}

/* Réalisations — article de presse */
.realisations-article {
  max-width: 640px;
}

.realisations-article p {
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 1.25rem;
}

.realisations-article p:last-child {
  margin-bottom: 0;
}

.realisations-article .article-lead {
  font-size: 1.15rem;
  color: var(--text);
  font-weight: 500;
  border-left: 3px solid var(--accent);
  padding-left: 1rem;
  margin-bottom: 1.5rem;
}

/* Contact - formulaire */
.contact-form {
  max-width: 480px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form input,
.contact-form textarea {
  font-family: var(--font-sans);
  font-size: 1rem;
  padding: 0.9rem 1rem;
  background: var(--bg-card);
  border: 1px solid rgba(201, 169, 98, 0.2);
  border-radius: 8px;
  color: var(--text);
  transition: var(--transition-smooth);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--text-muted);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent-dim);
  box-shadow: 0 0 0 3px rgba(201, 169, 98, 0.1);
}

.btn-submit {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  padding: 0.9rem 1.5rem;
  background: var(--accent);
  color: var(--bg-dark);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-submit:hover {
  background: #d4b872;
  transform: translateY(-2px);
}

.btn-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.contact-feedback {
  min-height: 1.2rem;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.contact-feedback.is-success {
  color: #90d7a8;
}

.contact-feedback.is-error {
  color: #f0a0a0;
}

.contact-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

/* ============================================
   Footer — copyright, mentions, cookies
   ============================================ */
.site-footer {
  position: relative;
  z-index: 10;
  background: var(--bg-dark);
  border-top: 1px solid var(--accent-dim);
  padding: 2.5rem 2rem 2.5rem calc(2rem + var(--nav-width));
  font-family: var(--font-sans);
}

.footer-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.footer-copyright {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 400;
  margin: 0;
}

.footer-admin-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.78rem;
  margin-left: 0.5rem;
  opacity: 0.4;
  transition: opacity 0.2s;
}
.footer-admin-link:hover { opacity: 1; }

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 1rem;
}

.footer-nav a {
  font-size: 0.75rem;
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: var(--transition-smooth);
  white-space: nowrap;
}

.footer-nav a:hover {
  color: var(--text);
  text-decoration: underline;
}

.footer-nav a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ============================================
   Pages légales (mentions, confidentialité, cookies)
   ============================================ */
.page-header .header-link {
  display: block;
  width: 100%;
  text-decoration: none;
  color: inherit;
}

/* Pages légales : hauteur = contenu uniquement, pas de scroll vide */
body.legal-page {
  min-height: auto;
}

/* Contenir les calques parallax pour qu'ils n'étendent pas la page (flash à 375vh créait le scroll vide) */
.legal-page .floating-flashes {
  height: 100vh;
  overflow: hidden;
}

.legal-page .page-header .header-visage {
  max-height: 28vh;
  object-fit: cover;
  object-position: center;
}

.legal-page .page-header .header-texte {
  max-height: 12vh;
  object-fit: contain;
  object-position: center;
}

/* Même structure que .section + .section-inner de l'index */
.legal-main {
  position: relative;
  z-index: 10;
  display: flex;
  justify-content: center;
  padding: 4rem 2rem 3rem calc(2rem + var(--nav-width));
}

.legal-content {
  max-width: 900px;
  width: 100%;
  min-width: 0;
  margin: 0 auto;
  position: relative;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.legal-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.legal-updated {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.legal-article {
  font-family: var(--font-sans);
}

.legal-article h2 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--accent);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.legal-article h2:first-of-type {
  margin-top: 0;
}

.legal-article p {
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 1rem;
}

.legal-article ul {
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

.legal-article li {
  margin-bottom: 0.5rem;
}

.legal-article a {
  color: var(--accent);
  text-decoration: none;
  transition: var(--transition-smooth);
}

.legal-article a:hover {
  text-decoration: underline;
}

/* ============================================
   Responsive : tablette (iPad)
   ============================================ */
@media (max-width: 1024px) {
  :root {
    --nav-width: 140px;
  }

  .section {
    padding-left: 1.5rem;
    padding-right: calc(1.5rem + var(--nav-width));
  }

  .site-footer {
    padding: 2rem 1.5rem 2rem calc(1.5rem + var(--nav-width));
  }

  .legal-main {
    padding: 1.5rem calc(1.5rem + var(--nav-width)) 2.5rem 1.5rem;
  }

  .main-nav {
    right: 1rem;
  }

  .overlay-layer {
    opacity: 0.4;
  }

  .floating-bar {
    opacity: 0.35;
  }

  .floating-flash {
    opacity: 0.8;
  }
}

/* ============================================
   Responsive : mobile (menu identique au desktop, à droite centré)
   ============================================ */
@media (max-width: 768px) {
  :root {
    --nav-width: 120px;
  }

  .main-nav {
    right: 0;
  }

  .nav-toggle {
    display: none;
  }

  .section {
    padding: 3rem 1rem 3rem calc(1rem + var(--nav-width));
  }

  .site-footer {
    padding: 2rem 1rem;
  }

  .footer-inner {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    max-width: 100%;
  }

  .footer-copyright {
    font-size: 0.8rem;
    line-height: 1.5;
  }

  .footer-nav {
    flex-direction: row;
    gap: 0 0.75rem;
  }

  .footer-nav a {
    font-size: 0.7rem;
  }

  .legal-main {
    padding: 3rem 1rem 3rem calc(1rem + var(--nav-width));
  }

  .legal-page .page-header .header-visage {
    max-height: 22vh;
  }

  .legal-page .page-header .header-texte {
    max-height: 10vh;
  }

  .presentation-cards {
    grid-template-columns: 1fr;
  }


  .overlay-layer {
    opacity: 0.35;
  }

  .floating-bar {
    opacity: 0.3;
  }

  .floating-bar.bar-1, .floating-bar.bar-3, .floating-bar.bar-6 { width: 100px; }
  .floating-bar.bar-2, .floating-bar.bar-4, .floating-bar.bar-7 { width: 70px; }
  .floating-bar.bar-5, .floating-bar.bar-8 { width: 90px; }

  .floating-flash { opacity: 0.9; }
}

/* Smart media (petits mobiles) */
@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }

  .section {
    padding: 2.5rem 1rem;
  }

  .legal-main {
    padding: 2.5rem 1rem;
  }

  .site-footer {
    padding: 1.5rem 1rem;
  }

  .footer-inner {
    gap: 0.5rem;
  }

  .footer-nav a {
    font-size: 0.7rem;
  }
}

/* ============================================
   PWA : safe area (encoche / barre d’état)
   ============================================ */
@supports (padding: env(safe-area-inset-right)) {
  .main-nav {
    right: calc(2rem + env(safe-area-inset-right));
  }

  .section {
    padding-left: calc(1rem + env(safe-area-inset-left));
    padding-right: calc(1rem + env(safe-area-inset-right) + var(--nav-width));
  }

  .legal-main {
    padding-left: calc(1rem + env(safe-area-inset-left));
    padding-right: calc(1rem + env(safe-area-inset-right) + var(--nav-width));
  }

  @media (max-width: 768px) {
    .main-nav {
      right: env(safe-area-inset-right);
    }

    .nav-list {
      padding-right: env(safe-area-inset-right);
    }

    .site-footer {
      padding-left: calc(1rem + env(safe-area-inset-left));
      padding-right: calc(1rem + env(safe-area-inset-right));
      padding-bottom: calc(1.5rem + env(safe-area-inset-bottom));
    }
  }
}

/* ========== Captcha ========== */
.captcha-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.captcha-question {
  font-family: var(--font-body, 'Outfit', sans-serif);
  font-size: 1rem;
  color: var(--accent, #f5c518);
  letter-spacing: 0.05em;
  white-space: nowrap;
  min-width: 6rem;
}

.captcha-input {
  width: 5rem;
  text-align: center;
  -moz-appearance: textfield;
}

.captcha-input::-webkit-outer-spin-button,
.captcha-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* ========== Utilitaires globaux ========== */

/* Classe accent pour remplacer style="color:var(--accent)" inline */
.text-accent {
  color: var(--accent, #f5c518);
}

/* Screen-reader only — masqué visuellement, accessible aux lecteurs d'écran */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ========== Accessibilité : réduction des mouvements ========== */
@media (prefers-reduced-motion: reduce) {
  /* Coupe toutes les animations CSS */
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  /* Désactive les effets parallax visuels */
  .floating-bar,
  .floating-flash,
  .filmstrip-edge,
  .page-scratch {
    opacity: 0 !important;
    transform: none !important;
  }

  /* background-position géré en JS avec vérification matchMedia */
}

/* ========== Print styles (pages légales et offres) ========== */
@media print {
  .page-scratch,
  .floating-bars,
  .floating-flashes,
  .filmstrip-edges,
  .page-header-wrapper,
  .main-nav,
  .offre-cta-wrap,
  .offre-nav-back,
  .site-footer {
    display: none !important;
  }

  body, .legal-page {
    background: #fff !important;
    color: #000 !important;
  }

  .legal-main {
    padding: 2rem !important;
    max-width: 100% !important;
  }

  .legal-title, .legal-article h2, .legal-article h3 {
    color: #000 !important;
  }

  a[href]::after {
    content: " (" attr(href) ")";
    font-size: 0.75em;
    color: #555;
  }

  .offre-price-badge {
    border: 1px solid #000 !important;
    color: #000 !important;
    -webkit-print-color-adjust: exact;
  }
}

/* ========== Offres — ligne prix + lien inline ========== */
.offre-prix-ligne {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ========== Offres — lien "Voir le détail" dans index ========== */
.offre-detail-link {
  display: inline-block;
  font-family: var(--font-body, 'Outfit', sans-serif);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent, #f5c518);
  /* iOS Safari ignore color: sur les <a> — -webkit-text-fill-color prend la priorité */
  -webkit-text-fill-color: var(--accent, #f5c518);
  text-decoration: none;
  -webkit-text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, opacity 0.2s ease;
  opacity: 0.75;
  margin-top: 0.25rem;
}
.offre-detail-link:hover {
  border-color: var(--accent, #f5c518);
  opacity: 1;
}

/* ========== Pages détail offres ========== */
.offre-nav-back {
  margin-bottom: 1.5rem;
}
.offre-nav-back a {
  font-family: var(--font-body, 'Outfit', sans-serif);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent, #f5c518);
  -webkit-text-fill-color: var(--accent, #f5c518);
  text-decoration: none;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}
.offre-nav-back a:hover {
  opacity: 1;
}

.offre-tagline {
  font-family: var(--font-body, 'Outfit', sans-serif);
  font-size: 1.1rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.offre-price-badge {
  display: inline-block;
  font-family: var(--font-body, 'Outfit', sans-serif);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent, #f5c518);
  border: 1px solid var(--accent, #f5c518);
  border-radius: 2px;
  padding: 0.4em 0.9em;
  margin-bottom: 2.5rem;
}
.offre-price-badge strong {
  font-weight: 600;
}

.legal-article h3 {
  font-family: var(--font-body, 'Outfit', sans-serif);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin: 1.75rem 0 0.6rem;
}

.offre-excluded li::before {
  content: "—";
  margin-right: 0.45em;
  color: rgba(255, 255, 255, 0.3);
  font-weight: 300;
}
.offre-excluded li {
  color: rgba(255, 255, 255, 0.45);
}

.offre-clauses-note {
  margin-top: 2.5rem;
  padding: 1rem 1.25rem;
  border-left: 2px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 0 2px 2px 0;
}
.offre-clauses-note p {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.4);
  line-height: 1.6;
  margin: 0;
}

.offre-cta-wrap {
  margin-top: 2.5rem;
  text-align: center;
}
