  /* ========================================================
     0. TYPOGRAPHIE
     Les @font-face sont declares dans Apparence > Personnaliser
     > CSS additionnel (charges sur tout le site).
     Ici on ne fait qu'APPLIQUER les polices.
     --font-titre : Canon Grotesque (titres)
     --font-texte : GT Alpina (textes courants)
     ======================================================== */
  .spec-v8-container {
      --font-titre: "Canon Grotesque", sans-serif;
      --font-texte: "GT Alpina", serif;
  }

  /* Police de base du conteneur = textes courants */
  .spec-v8-container,
  .spec-v8-container p,
  .spec-v8-container span,
  .spec-v8-container div,
  .spec-v8-container li {
      font-family: var(--font-texte);
  }

  /* --- TITRES : Canon Grotesque --- */
  .spec-title,
  .spec-sous-titre,
  .spec-subtitle,
  .imp-acc-title-text,
  .spec-prep-text h3,
  .distribution-grid strong,
  .distribution-grid h4,
  .date-time,
  .spec-v8-container a.date-btn,
  .spec-v8-container a.btn-download,
  .archives-toggle,
  .spec-quote-author {
      font-family: var(--font-titre) !important;
  }

  /* ========================================================
     1. VARIABLES CSS (MODE CLAIR PAR DÉFAUT)
     ======================================================== */
  :root { 

      --text-primary: #1a1a1a;
      --text-secondary: #333333;
      --text-tertiary: #666666;
      --bg-card: #ffffff;
      --bg-placeholder: #eeeeee;
      --border-color: #e6e6e6;
  }

/* ========================================================
     2. OVERRIDE POUR LE MODE SOMBRE
     ======================================================== */
  @media (prefers-color-scheme: dark) {
      :root {
          --text-primary: #f5f5f5;
          --text-secondary: #dddddd;
          --text-tertiary: #aaaaaa;
          --bg-card: #1e1e1e;
          --bg-placeholder: #2a2a2a;
          --border-color: #333333;
      }

      .logo-item img {
          background-color: #ffffff !important;
          padding: 15px !important;
          border-radius: 8px !important;
      }
  }

  /* SÉLECTION TEXTE — neutre */
  ::selection { background: var(--text-primary); color: var(--bg-card); }
  html { scroll-behavior: smooth; }

  .spec-v8-container { 
      max-width: 1200px !important; 
      margin-left: auto !important;
      margin-right: auto !important;
      width: 100% !important;
      padding: 0 40px !important; 
      box-sizing: border-box !important;
      margin-top: 20px !important; 
      color: var(--text-primary); 
      line-height: 1.6;
  }
  .spec-header { 
      margin-bottom: 30px; 
      text-align: center; /* centre tout l'en-tete (titre, sous-titre, etc.) */
  }
  /* SOUS-TITRE "La Compagnie de l'Impolie" — neutre */
  .spec-subtitle { font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: 2px; color: var(--text-tertiary); margin-bottom: 10px; }
  .spec-title { 
      font-size: clamp(50px, 18vw, 210px); /* titre agrandi */
      font-weight: 900; 
      text-transform: uppercase; 
      line-height: 0.9; 
      margin: 0; 
      letter-spacing: 0px; 
      color: var(--text-primary) !important; 
  }
  .spec-sous-titre { font-size: clamp(22px, 3.5vw, 38px); font-weight: 800; text-transform: uppercase; line-height: 1.1; margin: 15px 0 0 0; letter-spacing: 0px; color: var(--text-secondary); }
  .spec-infos { font-size: 16px; font-style: italic; color: var(--text-tertiary); margin-top: 15px; font-weight: 500; }

  /* BANDEAU "EN PRÉPARATION" — ombre neutre */
  .spec-prep-banner { background: var(--bg-card); border: 2px solid var(--text-primary); padding: 30px; margin-bottom: 60px; display: flex; align-items: center; gap: 25px; box-shadow: 10px 10px 0px var(--border-color); }
  .spec-prep-icon { font-size: 40px; }
  .spec-prep-text h3 { margin: 0; text-transform: uppercase; font-weight: 900; font-size: 18px; letter-spacing: 1px; color: var(--text-primary); }
  .spec-prep-text p { margin: 5px 0 0 0; font-size: 16px; color: var(--text-tertiary); font-style: italic; }

  .hero-floating-container { position: relative; width: 100%; margin-bottom: 10px; cursor: zoom-in; overflow: visible; }
  .hero-image-layer { position: relative; width: 100%; z-index: 2; transition: transform 0.25s cubic-bezier(0.25, 1, 0.5, 1); background: var(--bg-placeholder); }
  .hero-image-layer img { width: 100%; max-height: 75vh; object-fit: cover; display: block; opacity: 1; }
  /* DÉCALAGE COLORÉ DERRIÈRE L'IMAGE HERO — neutre */
  .hero-color-offset { position: absolute; top: 6px; left: 6px; width: 100%; height: 100%; z-index: 1; background-color: var(--border-color); border-radius: 4px; transition: transform 0.25s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.4s ease; opacity: 0.8; pointer-events: none; }
  .hero-floating-container:hover .hero-image-layer { transform: translate(-6px, -6px); }
  .hero-floating-container:hover .hero-color-offset { transform: translate(6px, 6px); opacity: 1; }
  .hero-credits { font-size: 12px; color: var(--text-tertiary); font-style: italic; text-align: right; margin-bottom: 50px; }

  .spec-quote-wrapper { max-width: 1100px; margin: 0 auto 60px auto; text-align: center; display: flex; flex-direction: column; align-items: center; }
  .spec-quote { font-size: clamp(22px, 4vw, 32px); font-style: italic; font-weight: 300; line-height: 1.4; color: var(--text-secondary); margin: 0; }
  /* AUTEUR CITATION — neutre */
  .spec-quote-author { font-size: 12px; font-weight: 900; text-transform: uppercase; color: var(--text-tertiary); letter-spacing: 1px; display: block; margin-top: 15px; }

  .quote-content-clamp { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; transition: max-height 0.6s cubic-bezier(0.25, 1, 0.5, 1); }
  .quote-content-clamp.is-expanded { -webkit-line-clamp: unset; }
  .imp-dots-toggle { display: flex !important; gap: 6px; justify-content: center; align-items: center; margin-top: 20px !important; padding: 10px !important; background: transparent !important; border: none !important; cursor: pointer !important; outline: none !important; }
  .imp-dots-toggle .dot { display: block; width: 6px; height: 6px; background-color: var(--text-primary); border-radius: 50%; transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1); }
  /* HOVER DES POINTS — neutre */
  .imp-dots-toggle:hover .dot { background-color: var(--text-tertiary); transform: translateY(-3px); }
  .imp-dots-toggle.is-open { gap: 2px; }
  .imp-dots-toggle.is-open .dot { border-radius: 0; height: 2px; width: 10px; background-color: var(--text-primary); opacity: 0.5; transform: none !important; }
  .imp-dots-toggle.hidden { display: none !important; }

  .imp-accordions-wrapper { width: 100%; margin: 0 auto 80px auto; display: flex; flex-direction: column; }
  /* BORDURES DES ACCORDÉONS — neutres */
  .imp-acc-item { border-top: 2px solid var(--text-primary) !important; transition: all 0.4s ease; }
  .imp-acc-item:last-child { border-bottom: 2px solid var(--text-primary) !important; }

  .imp-acc-header { width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 35px 0; background: transparent !important; border: none; cursor: pointer; color: var(--text-primary); outline: none; box-shadow: none !important; }
  .imp-acc-title-text { font-size: 26px; font-weight: 900; text-transform: uppercase; letter-spacing: 1px; transition: padding-left 0.4s cubic-bezier(0.25, 1, 0.5, 1), color 0.3s ease; display: inline-block; color: var(--text-primary); }
  /* HOVER / OPEN ACCORDÉON — neutre */
  .imp-acc-header:hover .imp-acc-title-text { padding-left: 15px; color: var(--text-tertiary); }
  .imp-acc-icon { font-size: 50px; font-weight: 300; color: var(--text-primary); transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1), color 0.3s; display: inline-block; line-height: 1; margin-right: 20px; }
  .imp-acc-header:hover .imp-acc-icon { color: var(--text-tertiary); transform: rotate(90deg); }
  .imp-acc-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.5s cubic-bezier(0.4, 0, 0.2, 1); }
  .imp-acc-content-inner { overflow: hidden; padding: 0; }
  .imp-acc-content-padder { padding-bottom: 50px; padding-top: 15px; max-width: 1100px; padding-left: 15px; }
  .imp-acc-item.is-open .imp-acc-body { grid-template-rows: 1fr; }
  .imp-acc-item.is-open .imp-acc-title-text { color: var(--text-tertiary); padding-left: 15px; }
  .imp-acc-item.is-open .imp-acc-icon { transform: rotate(135deg); color: var(--text-tertiary); }

  .synopsis-text p { margin-bottom: 20px; font-size: 20px; line-height: 1.7; color: var(--text-secondary); }
  /* BORDURE INSPIRATION — neutre */
  .synopsis-inspiration { font-style: italic; color: var(--text-tertiary); font-size: 18px; margin-bottom: 30px; border-left: 2px solid var(--border-color); padding-left: 15px; }

  /* LIENS DANS LE CONTENU — neutres */
  .imp-acc-content-padder a { color: var(--text-primary); text-decoration: underline; text-underline-offset: 4px; transition: opacity 0.3s; font-weight: bold; }
  .imp-acc-content-padder a:hover { opacity: 0.7; }

  .video-wrapper { width: 100%; aspect-ratio: 16/9; background: #000; margin-bottom: 0; }
  .video-wrapper iframe, .video-wrapper video { width: 100%; height: 100%; border: none; }

  /* ---- LECTEUR AUDIO + DESCRIPTION ---- */
  .audio-block { display: flex; gap: 30px; align-items: center; flex-wrap: wrap; margin-bottom: 30px; padding: 25px; background: var(--bg-card); border: 1px solid var(--border-color); }
  .audio-block audio { flex: 0 0 320px; max-width: 100%; }
  .audio-desc { flex: 1; min-width: 220px; font-size: 16px; line-height: 1.6; color: var(--text-secondary); font-style: italic; }
  .audio-desc p { margin: 0 0 10px 0; }
  @media (max-width: 600px) { .audio-block { flex-direction: column; align-items: stretch; } .audio-block audio { flex: none; width: 100%; } }

  /* LEGENDES DES MEDIAS (galerie / video) */
  .media-legend { font-size: 12px; color: var(--text-tertiary); font-style: italic; margin-top: 10px; margin-bottom: 25px; line-height: 1.5; }
  .media-legend p { margin: 0 0 6px 0; }

  .galerie-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 15px; }
  .gal-item { aspect-ratio: 1; overflow: hidden; cursor: pointer; background: var(--bg-placeholder); }
  .gal-item img { width: 100%; height: 100%; object-fit: cover; transition: opacity 0.4s ease; opacity: 0.85; }
  .gal-item:hover img { opacity: 1; }

  .distribution-grid { column-count: 2; column-gap: 60px; }
  .distribution-grid p { break-inside: avoid; margin-bottom: 20px; font-size: 18px; line-height: 1.6; color: var(--text-secondary); }
  /* TITRES DISTRIBUTION — neutres */
  .distribution-grid strong, .distribution-grid h4 { display: block; font-size: 15px; font-weight: 900; text-transform: uppercase; color: var(--text-primary); margin-bottom: 5px; letter-spacing: 0.5px; }
  .sous-distribution { margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--border-color); font-size: 17px; color: var(--text-tertiary); font-style: italic; }

  .spec-v8-container a.btn-download { display: inline-block; margin-top: 40px; padding: 14px 28px; border: 1px solid var(--text-primary) !important; color: var(--text-primary) !important; background: transparent !important; text-decoration: none !important; font-size: 14px; font-weight: 900; text-transform: uppercase; letter-spacing: 1px; transition: all 0.3s ease; }
  .spec-v8-container a.btn-download:hover { background: var(--text-primary) !important; color: var(--bg-card) !important; }

  .logos-grid { display: flex; flex-wrap: wrap; gap: 40px; align-items: center; margin-top: 15px; }
  .logo-item { display: inline-block; transition: transform 0.4s ease; }
  .logo-item img { max-width: 220px; max-height: 120px; object-fit: contain; display: block; transition: transform 0.4s ease; }
  a.logo-item:hover { transform: scale(1.05); } 
  span.logo-item:hover img { transform: scale(1.05); }

  .date-list-item { display: flex; justify-content: space-between; align-items: center; padding: 25px 0; border-bottom: 1px solid var(--border-color); transition: border-color 0.4s ease; }
  .date-list-item:first-child { padding-top: 0; }
  .date-list-item:last-child { border-bottom: none; }
  /* HOVER LIGNE DE DATE — neutre */
  .date-list-item:hover { border-bottom-color: var(--text-primary); }
  .date-list-item:hover .date-lieu { color: var(--text-tertiary); }
  .date-info { display: flex; gap: 40px; align-items: baseline; flex: 1; }
  /* DATE — neutre */
  .date-time { width: 160px; font-size: 16px; font-weight: 900; color: var(--text-primary); }

  .date-lieu { font-size: 19px; font-weight: 600; color: var(--text-primary); transition: color 0.4s ease; text-decoration: none; }
  a.date-lieu { text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 4px; }
  a.date-lieu:hover { text-decoration-color: var(--text-primary); }

  .spec-v8-container a.date-btn { padding: 12px 24px; border: 1px solid var(--text-primary) !important; background: transparent !important; color: var(--text-primary) !important; text-decoration: none !important; font-size: 13px; font-weight: 900; text-transform: uppercase; letter-spacing: 1px; transition: all 0.3s ease; white-space: nowrap; }
  /* BOUTON RÉSERVER HOVER — neutre */
  .spec-v8-container a.date-btn:hover { background: var(--text-primary) !important; border-color: var(--text-primary) !important; color: var(--bg-card) !important; }

  .archives-toggle { margin-top: 30px; cursor: pointer; font-size: 14px; font-weight: 900; text-transform: uppercase; color: var(--text-tertiary) !important; text-decoration: underline !important; text-underline-offset: 4px; display: inline-block; transition: color 0.3s ease; }
  .archives-toggle:hover { color: var(--text-primary) !important; }
  .archives-container { display: none; margin-top: 20px; opacity: 0.6; }

  @media (max-width: 850px) {
      .spec-v8-container { padding: 0 15px !important; }
      .spec-prep-banner { flex-direction: column; text-align: center; }
      .distribution-grid { column-count: 1; }
      .date-info { flex-direction: column; gap: 5px; }
      .date-time { width: auto; }
      .imp-acc-title-text { font-size: 20px; }
      .imp-acc-icon { margin-right: 5px; }
  }
  @media (max-width: 600px) {
      .date-list-item { flex-direction: column; align-items: flex-start; gap: 15px; }
  }

  #imp-lightbox { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.95); z-index: 1000000; justify-content: center; align-items: center; }
