/* =======================================
   GLOBAL SITE VARIABLES
   This is the central control panel for your website's design.
======================================== */
:root {
  /* FONTS */
  --font-primary: "Inter", sans-serif;
  --font-secondary: "Space Grotesk", sans-serif;

  /* COLORS - BACKGROUND */
  --primary-color: #2f2f3c;
  --secondary-color: #2d3748;

  /* COLORS - ACCENT */
  --accent-color: #6ec8f2;
  --accent-color-light: #a9def9;

  /* COLORS - TEXT */
  --text-light: #e2e8f0;
  --text-muted: #a0aec0;
  --text-white: #ffffff;

  /* SIZING & LAYOUT */
  --navbar-height: 74px;
  --border-color: rgba(226, 232, 240, 0.1);
  --font-size-body: 1rem;
}


/* =======================================
   GLOBAL & BODY STYLES
======================================== */
body {
  font-family: var(--font-primary);
  overflow-x: hidden;
  background: var(--primary-color);
  color: var(--text-light);
  position: relative;
}

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

body::before {
  content: "";
  position: fixed;
  top: -20vh;
  left: -30vw;
  width: 120vw;
  height: 120vh;
  background: radial-gradient(
    ellipse at 70% 30%,
    rgba(159, 122, 234, 0.1),
    transparent 60%
  );
  z-index: -1;
  pointer-events: none;
  animation: aurora-glow 20s infinite alternate ease-in-out;
}

@keyframes aurora-glow {
  from { transform: rotate(0deg) scale(1); }
  to { transform: rotate(20deg) scale(1.2); }
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}


/* =======================================
   NAVIGATION BAR (ANIMATION REVUE)
======================================== */
.navbar-custom {
  background-color: var(--primary-color); 
  border-bottom: 1px solid var(--border-color);
  width: 100%;
  z-index: 1000;
  padding: 0.75rem 0;
  transition: background-color 0.3s ease;
}

.navbar-brand img {
  height: 40px;
  width: auto;
  transition: transform 0.3s ease;
}
.navbar-brand:hover img {
  transform: scale(1.05);
}

.nav-link {
  font-family: var(--font-secondary);
  color: var(--text-muted) !important;
  font-weight: 400;
  position: relative;
  margin: 0 0.2rem;
  font-size: var(--font-size-body);
  padding: 0.5rem 1rem; /* Padding ajusté pour l'effet pilule */
  border-radius: 50px; /* Coins très arrondis pour l'effet pilule */
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  background-color: transparent;
  display: flex; /* Permet d'aligner le texte et la future flèche */
  align-items: center;
  gap: 0.5rem; /* Espace entre le texte et la flèche */
}

/* <<< CHANGEMENT : Retour de l'effet "pilule" au survol */
.nav-link:hover, .dropdown.show > .nav-link {
  color: var(--text-white) !important;
  background-color: var(--secondary-color);
  transform: none;
}

/* <<< CHANGEMENT : On supprime complètement l'ancien soulignement */
.nav-link::after {
  content: none; 
}

/* <<< CHANGEMENT : Masquer la flèche par défaut de Bootstrap */
.nav-link.dropdown-toggle::after {
  display: none;
}

/* <<< CHANGEMENT : Création de notre nouvelle flèche personnalisée */
.nav-link.dropdown-toggle span::after {
  content: '\f107'; /* Icône flèche vers le bas de Font Awesome */
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 0.8em; /* Un peu plus petite que le texte */
  color: var(--accent-color);
  margin-left: 0.5rem; /* Espace à gauche de la flèche */
  display: inline-block;
  transition: transform 0.3s ease;
}

/* <<< CHANGEMENT : Rotation de la flèche quand le menu est ouvert */
.dropdown.show .nav-link.dropdown-toggle span::after {
  transform: rotate(180deg);
}


.navbar-toggler {
  border: none;
}
.navbar-toggler:focus {
  box-shadow: none;
}
.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(169, 222, 249, 0.9)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* --- STYLE DU MENU DÉROULANT MODERNISÉ --- */
.dropdown-menu {
  /* <<< CHANGEMENT : Fond identique à la navbar */
  background-color: var(--primary-color);
  backdrop-filter: none; /* On enlève le flou inutile */
  border: 1px solid var(--border-color);
  border-top: none; /* On enlève la bordure du haut pour un effet "fusion" */
  border-radius: 0 0 12px 12px; /* On arrondit que les coins du bas */
  padding: 0.5rem;
  margin-top: 0 !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  animation: fadeInDown 0.25s ease-out forwards;
}

.dropdown-item {
  font-family: var(--font-secondary);
  color: var(--text-muted);
  padding: 0.6rem 1rem;
  font-size: 0.9rem;
  border-radius: 8px;
  transition: all 0.2s ease-in-out;
}

.dropdown-item:hover,
.dropdown-item:focus {
  color: var(--text-white);
  background-color: rgba(110, 200, 242, 0.15);
  transform: none;
}
/* --- FIN DU STYLE MODERNISÉ --- */

.dropdown.show .dropdown-toggle::after {
    transform: rotate(180deg);
}


/* =======================================
   HERO SECTIONS (SLIDER & VIDEO)
======================================== */

.hero-section,
.hero-video-section {
  height: 70vh;
  position: relative;
  overflow: hidden;
  background-color: var(--primary-color);
}

.hero-slider, .hero-video {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
}

.slide {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
  background-size: cover;
  background-position: center;
}
.slide.active { opacity: 1; }

.hero-video {
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  min-width: 100%; min-height: 100%;
  width: auto; height: auto;
  z-index: 1;
}

.slide-content, .hero-video-content {
  position: absolute;
  z-index: 2;
  color: var(--text-white);
  width: 90%;
  max-width: 800px;
}

.slide-content {
  visibility: hidden;
}
.slide-content.active {
  visibility: visible;
}

.slide-title, .hero-video-content h1 {
  font-family: var(--font-secondary);
  font-size: clamp(2.0rem, 4vw, 3.2rem); 
  font-weight: 700;
  margin-bottom: 1rem;
  text-shadow: 0 0 30px rgba(0, 0, 0, 0.5); 
  line-height: 1.1;
  color: var(--text-white);
}

.slide-subtitle, .hero-video-content p {
  font-family: var(--font-primary);
  font-size: clamp(0.9rem, 1.5vw, 1.1rem);
  font-weight: 400;
  margin-bottom: 2rem;
  color: var(--text-light);
  max-width: 550px;
  margin-left: auto;
  margin-right: auto;
}
.hero-video-content p { margin: 1rem auto 0; }

.slider-nav {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 15px;
  z-index: 3;
}
.nav-dot {
  width: 12px; height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: all 0.4s ease;
}
.nav-dot.active {
  background: var(--accent-color);
  transform: scale(1.3);
  box-shadow: 0 0 10px var(--accent-color);
}
.progress-bar-container {
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 4px;
  background-color: rgba(255, 255, 255, 0.1);
  z-index: 3;
}
.progress-bar-fill {
  height: 100%;
  background: var(--accent-color);
  width: 0%;
  transition: width 0.1s linear;
}

.slide-content.center, .hero-video-content.center { text-align: center; top: 50%; left: 50%; transform: translate(-50%, -50%); }
.slide-content.top-left, .hero-video-content.top-left { text-align: left; top: 15%; left: 8%; transform: translate(0, 0); max-width: 550px; }
.slide-content.top-right, .hero-video-content.top-right { text-align: right; top: 15%; right: 8%; left:auto; transform: translate(0, 0); max-width: 550px; }
.slide-content.bottom-left, .hero-video-content.bottom-left { text-align: left; bottom: 15%; left: 8%; top: auto; transform: translate(0, 0); max-width: 550px; }
.slide-content.bottom-right, .hero-video-content.bottom-right { text-align: right; bottom: 15%; right: 8%; top: auto; left:auto; transform: translate(0, 0); max-width: 550px; }

.top-left .slide-subtitle, .top-left .slide-btn { margin-left: 0; margin-right: auto; }
.top-right .slide-subtitle, .top-right .slide-btn { margin-left: auto; margin-right: 0; }
.bottom-left .slide-subtitle, .bottom-left .slide-btn { margin-left: 0; margin-right: auto; }
.bottom-right .slide-subtitle, .bottom-right .slide-btn { margin-left: auto; margin-right: 0; }


/* =======================================
   NOUVELLE SECTION "INTRO" (MODIFIÉE)
======================================== */
.intro-section {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 70vh - var(--navbar-height)); 
  padding: 2rem 1rem;
}

.intro-title {
  font-family: var(--font-secondary);
  font-size: clamp(1.3rem, 2vw, 1.7rem);
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 0.7rem; 
}

.intro-text {
  font-family: var(--font-primary);
  font-size: var(--font-size-body);
  color: var(--text-muted);
  line-height: 1.6;
}


/* =======================================
   FEATURE SECTIONS & BUTTONS
======================================== */
.feature-section {
  padding: 120px 0;
  overflow: hidden;
}

.slide-btn,
.btn-modern {
  display: inline-block;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 700;
  transition: all 0.3s ease;
  letter-spacing: 1px;
}

.slide-btn {
  padding: 14px 35px;
  background: var(--accent-color);
  border: none;
  color: var(--secondary-color) !important; 
  text-transform: uppercase;
  font-family: var(--font-secondary);
  font-size: 0.85rem;
  box-shadow: 0 0 20px rgba(110, 200, 242, 0.4);
}
.slide-btn:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 0 35px rgba(110, 200, 242, 0.6);
  color: var(--secondary-color) !important;
}

.btn-modern {
  align-self: flex-start;
  padding: 14px 35px;
  border: 1px solid var(--accent-color);
  color: var(--accent-color);
  background: transparent;
  font-weight: 500;
}
.btn-modern:hover {
  background-image: linear-gradient(45deg, var(--accent-color), var(--accent-color-light));
  color: var(--text-white);
  border-color: transparent;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(159, 122, 234, 0.2);
}


/* =======================================
   FOOTER (INCHANGÉ)
======================================== */
.footer-modern {
  background-color: var(--secondary-color);
  color: var(--text-muted);
  padding: 100px 0 0;
  border-top: 1px solid var(--border-color);
  margin-top: 80px;
  position: relative;
  overflow: hidden;
}
.footer-modern::before {
  content: "";
  position: absolute;
  bottom: -50%;
  left: 50%;
  width: 150%;
  height: 100%;
  background: radial-gradient(ellipse at center, rgba(110, 200, 242, 0.05), transparent 60%);
  transform: translateX(-50%);
  z-index: 0;
  pointer-events: none;
}
.footer-top, .footer-bottom { position: relative; z-index: 1; }
.footer-logo img { max-height: 50px; margin-bottom: 1.5rem; }
.footer-slogan { font-size: 1rem; line-height: 1.6; max-width: 350px; }
.footer-modern h5 { font-family: var(--font-secondary); color: var(--text-light); font-weight: 600; font-size: 1rem; margin-bottom: 1.5rem; text-transform: uppercase; letter-spacing: 1px; }
.footer-modern ul { list-style: none; padding: 0; margin: 0; }
.footer-modern ul li { margin-bottom: 0.8rem; }
.footer-modern ul li a { color: var(--text-muted); text-decoration: none; transition: all 0.3s ease; display: inline-block; }
.footer-modern ul li a:hover { color: var(--accent-color); transform: translateX(5px); }
.footer-contact li { display: flex; align-items: center; }
.footer-contact li i { color: var(--accent-color); margin-right: 10px; width: 20px; text-align: center; }
.social-links { margin-top: 2rem; display: flex; gap: 1rem; }
.social-links a { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border-color); color: var(--text-muted); font-size: 0.9rem; transition: all 0.3s ease; }
.social-links a:hover { background-color: var(--accent-color); color: var(--primary-color); border-color: var(--accent-color); transform: translateY(-3px); box-shadow: 0 5px 15px rgba(110, 200, 242, 0.2); }
.footer-bottom { padding: 1.5rem 0; margin-top: 60px; border-top: 1px solid var(--border-color); text-align: center; }
.footer-bottom p { margin: 0; font-size: 0.9rem; }
.slide-text-link { text-decoration: none; color: inherit; display: block; }
.slide-text-link:hover { color: inherit; }

/* =======================================
   RESPONSIVE DESIGN (MEDIA QUERIES)
======================================== */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background: rgba(26, 32, 44, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 10px;
    padding: 1rem;
    margin-top: 1rem;
    border: 1px solid var(--border-color);
  }
  .navbar-nav { width: 100%; text-align: center; }
  .nav-link { margin: 0.5rem 0; padding: 0.5rem; justify-content: center; }
  .dropdown-menu { background: transparent; border: none; box-shadow: none; padding: 0.25rem 0 0.25rem 1rem; margin-top: 0 !important; animation: none; }
  .dropdown-item { padding: 0.5rem 1rem; }
  .dropdown-item:hover, .dropdown-item:focus { transform: translateX(0); }
}

@media (max-width: 768px) {
  .hero-section {
    height: 65vh;
  }
  .intro-section {
    min-height: calc(100vh - 65vh - var(--navbar-height));
  }
  .intro-title {
    font-size: 1.3rem;
  }
  .intro-text {
    font-size: 0.9rem;
  }
}

/* ===================================================================
   STYLES SPÉCIFIQUES: PAGE THEATRE A DOMICILE ("WOW" FACTOR)
====================================================================== */

.scroll-down-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.5rem;
  animation: bounce 2s infinite;
  z-index: 5;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translate(-50%, 0);
  }
  40% {
    transform: translate(-50%, -20px);
  }
  60% {
    transform: translate(-50%, -10px);
  }
}

.page-section {
  padding: 100px 0;
  overflow: hidden;
}

.page-section h2 {
  font-family: var(--font-secondary);
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.page-section .feature-content p {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.page-poetry-presentation {
  background: var(--primary-color);
}
.page-poetry-synopsis {
  background: var(--secondary-color);
}

.page-poetry-programme {
  background: var(--primary-color);
}
.programme-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}
.programme-card {
  background-color: var(--secondary-color);
  padding: 2.5rem 2rem;
  border-radius: 15px;
  text-align: center;
  border: 1px solid var(--border-color);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.programme-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}
.programme-card i {
  font-size: 2.5rem;
  color: var(--accent-color);
  margin-bottom: 1.5rem;
}
.programme-card h3 {
  font-family: var(--font-secondary);
  color: var(--text-light);
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}
.programme-card p {
  color: var(--text-muted);
  font-size: 1rem;
  margin: 0;
}

.page-poetry-info {
  background-color: var(--secondary-color);
}
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  max-width: 900px;
  margin: 3rem auto 0;
}
.info-card {
  background-color: var(--primary-color);
  padding: 2rem;
  border-radius: 15px;
  text-align: center;
}
.info-card i {
  font-size: 2rem;
  color: var(--accent-color);
  margin-bottom: 1rem;
  display: block;
}
.info-card p {
  color: var(--text-muted);
  margin-bottom: 0.25rem;
  font-size: 0.9rem;
}
.info-card span {
  font-family: var(--font-secondary);
  font-size: 1.5rem;
  color: var(--text-white);
  font-weight: 700;
}

.page-poetry-testimonials {
  background: var(--primary-color);
}
.testimonial-card {
  background: var(--secondary-color);
  padding: 2.5rem;
  border-radius: 15px;
  border-left: 5px solid var(--accent-color);
  position: relative;
}
.testimonial-card::before {
  content: '\f10d'; /* Icône guillemet de Font Awesome */
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-size: 3rem;
  color: rgba(226, 232, 240, 0.05);
  z-index: 0;
}
.testimonial-card blockquote {
  font-size: 1.15rem;
  font-style: italic;
  color: var(--text-light);
  margin: 0 0 1.5rem 0;
  position: relative;
  z-index: 1;
}
.testimonial-card cite {
  font-family: var(--font-secondary);
  color: var(--text-muted);
  font-style: normal;
  font-weight: 600;
}


/* ===================================================================
   STYLES SPÉCIFIQUES : PAGE "THÉÂTRE À DOMICILE"
   Ce bloc de code redéfinit l'apparence de la page pour une
   expérience plus immersive et moderne.
====================================================================== */

/* 1. HERO EN PLEIN ÉCRAN
------------------------------------------------------------------- */
.page-theatre-domicile .hero-video-section {
  height: 100vh; /* La section prend 100% de la hauteur de l'écran */
  display: flex; /* Permet un centrage facile si nécessaire */
  align-items: center;
  justify-content: center;
}

/* On s'assure que la vidéo couvre bien toute la zone sans être déformée */
.page-theatre-domicile .hero-video {
  object-fit: cover; /* Important pour que la vidéo remplisse l'espace */
}

/* Style de l'indicateur de scroll (la flèche vers le bas) */
.page-theatre-domicile .scroll-down-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.8rem;
  z-index: 5;
  cursor: pointer;
  animation: bounce-subtle 2.5s infinite ease-in-out;
  text-decoration: none;
  padding: 10px;
}
.page-theatre-domicile .scroll-down-indicator:hover {
    color: white;
}

/* Animation de rebond pour la flèche */
@keyframes bounce-subtle {
  0%, 20%, 50%, 80%, 100% {
    transform: translate(-50%, 0);
  }
  40% {
    transform: translate(-50%, -15px);
  }
  60% {
    transform: translate(-50%, -7px);
  }
}

/* 2. STYLE DES SECTIONS DE CONTENU
------------------------------------------------------------------- */

/* Espacement et layout général */
.page-theatre-domicile .feature-section {
  padding: 100px 0; /* Un peu moins de padding vertical que l'ancien style */
}

/* Titres plus impactants */
.page-theatre-domicile .feature-content h2 {
  font-family: var(--font-secondary);
  font-size: clamp(2rem, 5vw, 3rem); /* Taille de police responsive */
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-white);
  margin-bottom: 1.5rem;
}

/* Paragraphes plus lisibles */
.page-theatre-domicile .feature-content p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-muted);
  max-width: 550px; /* Limite la largeur des lignes pour une meilleure lecture */
  margin-bottom: 2rem;
}

/* Style pour le texte surligné (ex: <span class="highlight">) */
.page-theatre-domicile .highlight {
  color: var(--accent-color-light);
  font-weight: 700;
}

/* Liste à puces stylisée */
.page-theatre-domicile .feature-list {
  list-style: none;
  padding-left: 0;
}
.page-theatre-domicile .feature-list li {
  font-size: 1.05rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
}
.page-theatre-domicile .feature-list i {
  color: var(--accent-color);
  margin-right: 15px;
  font-size: 1.2rem;
  width: 25px; /* Pour un alignement parfait */
  text-align: center;
}

/* Modernisation des images */
.page-theatre-domicile .feature-image {
  border-radius: 12px; /* Coins arrondis */
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35); /* Ombre douce */
  width: 100%;
  height: auto;
  object-fit: cover;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.page-theatre-domicile .feature-image:hover {
  transform: scale(1.03) translateY(-5px); /* Effet de survol subtil */
  box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.4);
}

/* ===================================================================
   STYLE SPÉCIFIQUE : BLOC D'APPEL À L'ACTION (CTA)
   Ce code transforme la dernière section en un bloc visuel fort
   pour inciter au contact.
====================================================================== */

/* 1. Style de la section globale
------------------------------------------------------------------- */
#contact-cta.feature-section {
  background-color: transparent; /* On rend le fond de la section transparent... */
  padding: 80px 0; /* On réduit un peu le padding pour resserrer le design */
}

/* 2. Style du "conteneur" ou de la "carte" CTA
------------------------------------------------------------------- */
#contact-cta .feature-content {
  background-color: var(--secondary-color); /* ...pour mettre la couleur sur la carte */
  padding: clamp(2.5rem, 5vw, 4rem); /* Espacement intérieur généreux et responsive */
  border-radius: 16px; /* Coins arrondis pour un look moderne */
  border: 1px solid var(--border-color);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#contact-cta .feature-content:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.4);
}

/* 3. Style de la typographie à l'intérieur du CTA
------------------------------------------------------------------- */
#contact-cta h2 {
  font-size: clamp(2rem, 5vw, 2.8rem); /* Un titre plus grand et impactant */
  margin-bottom: 1rem;
}

#contact-cta p {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 600px; /* On limite la largeur pour une meilleure lisibilité */
  margin: 1.5rem auto; /* Centrage et espacement vertical */
  line-height: 1.7;
}

/* 4. Style du bouton principal du CTA
------------------------------------------------------------------- */
#contact-cta .btn-modern {
  margin-top: 1.5rem; /* Espace au-dessus du bouton */
  padding: 16px 40px; /* On le rend plus grand et plus cliquable */
  font-size: 1rem;
  font-weight: 700;
}