/* ==========================================================================
   STRICT PALETTE (COULEURS EXCLUSIVES DE LA PHOTO PROPOSÉE) :
   #24132C : Black List (Fond sombre nocturne)
   #3F1C26 : Enchantress (Prune / Bordeaux très sombre pour cartes)
   #723D51 : Bewitching (Prune moyen pour bordures & accents)
   #AF7D86 : Celine (Vieux rose pour textes secondaires & lignes)
   #EEDCEF : Faded Fuchsia (Rose clair / lavande pour textes & étoiles)
   #59438D : Harvest Night (Violet profond pour badges & effets)
   ========================================================================== */

:root {
  --bg-dark: #24132C;
  --bg-card: #3F1C26;
  --accent-plum: #723D51;
  --accent-rose: #AF7D86;
  --text-light: #EEDCEF;
  --accent-indigo: #59438D;
  --accent-gold: #c0a671;

  --font-title: 'Pretty', serif;
  --font-subtitle: 'Nemo', serif;
  --font-body: 'IM Fell English', Georgia, serif;
}

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

/* ------------------------------------------------------------------------
   CURSEUR PERSONNALISÉ ACCENT-ROSE (#AF7D86)
   ------------------------------------------------------------------------ */

/* Curseur principal par défaut */
body, html {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='%23AF7D86'%3E%3Cpath d='M4.5 3.5L18 12l-6.5 2-2 6.5z' stroke='%2324132C' stroke-width='1'/%3E%3C/svg%3E") 0 0, auto;
}

/* Main de pointeur rose au survol */
a, button, input, select, .btn, .filter-btn, .modal-close, .eq-card {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='%23AF7D86'%3E%3Cpath d='M9 11.24V7.5a1.5 1.5 0 0 1 3 0v3.74c.22-.15.48-.24.76-.24 1.11 0 1.5.89 1.5 2v.26c.22-.15.48-.26.76-.26 1.11 0 1.5.89 1.5 2V16.5c0 3.04-2.46 5.5-5.52 5.5H10.5C7.46 22 5 19.54 5 16.5v-3.8c0-.6.4-1.1 1-1.2.65-.11 1.25.26 1.45.87l1.55 4.63V11.24z' stroke='%2324132C' stroke-width='0.8'/%3E%3C/svg%3E") 6 0, pointer !important;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-dark);
  background-image: 
    radial-gradient(circle at 50% 20%, rgba(114, 61, 81, 0.3) 30%, rgba(36, 19, 44, 0.3) 60%),
    url('images/velvet.jpg');
  background-repeat: repeat;
  background-size: 1600px 800px; /* Évite un grain trop gros */
  background-attachment: fixed;
  background-blend-mode: soft-light;
  color: var(--text-light);
  font-family: var(--font-body);
  font-size: 1.1rem;
  line-height: 1.6;
  position: relative;
  overflow-x: hidden;
}


/* 1. Déclaration de votre police locale .ttf */
@font-face {
  font-family: 'Nemo';
  src: url('./fonts/Nemo.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Angelica';
  src: url('./fonts/angelica.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Pretty';
  src: url('./fonts/poti.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

/* Taille logo dans bordure en-tête */
.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.8rem;
}

.logo-img {
  height: 38px; /* Ajustez cette valeur si vous souhaitez un logo plus grand ou plus petit */
  width: auto;
  object-fit: contain;
  vertical-align: middle;
}

.logo-title {
  font-family: var(--font-body); /* ou 'Cinzel Decorative', 'Grenze Gotisch', sans-serif, etc. */
  color: var(--accent-gold);      /* ou #AF7D86, #EEDCEF, #FFC0CB, etc. */
  font-size: 1.5rem;   /* Taille du texte */
  letter-spacing: 1px; /* Espacement des lettres */
}

/* Canvas Arrière-plan */
#star-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
}

/* Typographie Gothique */
h1, h2 {
  font-family: var(--font-title);
  color: var(--text-light);
  letter-spacing: 1px;
  font-weight: 700;
}

h3, h4 {
  font-family: var(--font-subtitle);
  color: var(--text-light);
  letter-spacing: 2px;
  font-weight: 700;
}

h1 { font-size: 3.8rem; line-height: 1.1; }
h2 { font-size: 2.8rem; margin-bottom: 0.5rem; text-align: center; }
h3 { font-size: 1.8rem; }

a {
  color: var(--text-light);
  text-decoration: none;
  transition: all 0.3s ease;
}
/* ==========================================================================
   MENU BURGER & RESPONSIVE MOBILE
   ========================================================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 3rem;
  background-color: rgba(36, 19, 44, 0.94);
  border-bottom: 1px solid var(--accent-plum);
  z-index: 1000;
}

/* Bouton burger masqué par défaut sur ordinateur */
.burger-menu {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
  z-index: 1001;
}

.burger-menu .bar {
  width: 26px;
  height: 2px;
  background-color: var(--accent-rose);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Animation des barres en croix (X) lors de l'ouverture */
.burger-menu.active .bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.burger-menu.active .bar:nth-child(2) {
  opacity: 0;
}

.burger-menu.active .bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Styles appliqués uniquement sur écrans téléphones et tablettes */
@media (max-width: 850px) {
  .navbar {
    padding: 0.8rem 1.5rem;
  }

  .burger-menu {
    display: flex; /* Affiche le bouton burger uniquement sur petit écran */
  }

  /* Panneau latéral coulissant */
  .nav-container {
    position: fixed;
    top: 0;
    right: -100%; /* Masqué hors écran à droite par défaut */
    width: 75%;
    max-width: 280px;
    height: 100vh;
    background-color: rgba(36, 19, 44, 0.98);
    border-left: 1px solid var(--accent-plum);
    box-shadow: -10px 0 25px rgba(0, 0, 0, 0.8);
    padding: 6rem 2rem 2rem 2rem;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
  }

  /* Classe ajoutée par JS pour faire glisser le menu sur l'écran */
  .nav-container.open {
    right: 0;
  }

  .nav-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.6rem;
  }

  .nav-links a {
    font-size: 1.2rem;
    display: block;
    width: 100%;
    padding: 0.4rem 0;
  }
}

.logo {
  font-family: var(--font-title);
  font-size: 2rem;
  color: var(--text-light);
}

.logo span {
  color: var(--accent-rose);
}

.cross-icon {
  font-size: 1.5rem;
  margin-right: 0.3rem;
  color: var(--accent-rose);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-links a {
  font-family: var(--font-title);
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 0.3rem 0;
  border-bottom: 2px solid transparent;
}

.nav-links a:hover,
.nav-links a.active {
  border-bottom: 2px solid var(--accent-rose);
  color: var(--text-light);
}

.kinepolics-link {
  color: var(--accent-rose) !important;
  font-weight: bold;
}

/* Sections Globales */
main {
  position: relative;
  z-index: 1;
  padding-top: 5rem;
}

section {
  padding: 5rem 10%;
}

/* Remplacez h2 par votre balise (h1, p, span, etc.) */
section h2 {
  display: inline-block; /* ou width: fit-content; */
  border-bottom: 2px solid rgba(114, 61, 81, 1);
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-header p {
  color: var(--accent-rose);
  font-style: italic;
}

.gothic-divider {
  color: var(--accent-plum);
  font-size: 1.4rem;
  margin-top: 0.5rem;
}

.gothic-badge {
  display: inline-block;
  background-color: var(--accent-indigo);
  color: var(--text-light);
  font-family: var(--font-title);
  font-size: 0.9rem;
  padding: 0.3rem 1rem;
  border: 1px solid var(--accent-rose);
  letter-spacing: 2px;
  margin-bottom: 1rem;
}

/* Buttons */
.btn {
  display: inline-block;
  font-family: var(--font-title);
  font-size: 1.2rem;
  padding: 0.8rem 1.8rem;
  border: 1px solid var(--accent-rose);
  background-color: var(--bg-card);
  color: var(--text-light);
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
}

.btn-primary {
  background-color: var(--accent-plum);
  border-color: var(--accent-rose);
}

.btn-primary:hover {
  background-color: var(--accent-indigo);
  border-color: var(--text-light);
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: transparent;
}

.btn-secondary:hover {
  background-color: var(--accent-plum);
}

.btn-sm {
  padding: 0.4rem 1rem;
  font-size: 1rem;
}

.full-width {
  width: 100%;
}

/* ------------------------------------------------------------------------
   SECTION GUIRLANDE PHOTO
   ------------------------------------------------------------------------ */
.photo-garland-section {
  width: 100%;
  padding: 0 0 0.5rem 0;
  margin-top: -1.2rem;
  overflow: hidden;
}

/* Conteneur à défilement horizontal */
.garland-container {
  display: flex;
  align-items: flex-start;
  gap: 2.5rem;
  padding: 0 3rem 1.5rem 3rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--accent-rose) transparent;
}

.garland-container::-webkit-scrollbar {
  height: 6px;
}

.garland-container::-webkit-scrollbar-thumb {
  background-color: var(--accent-rose);
  border-radius: 10px;
}

/* Éléments de la guirlande */
.garland-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  position: relative;
}

/* Tiret vertical doré */
.garland-line {
  width: 2px;
  border-left: 1px dashed var(--accent-gold);
}

/* Variances de longueurs de tirets */
.height-sm .garland-line { height: 35px; }
.height-md .garland-line { height: 65px; }
.height-lg .garland-line { height: 95px; }
.height-xl .garland-line { height: 125px; }

/* Étoile d'accroche */
.garland-star {
  width: 22px;
  height: 22px;
  object-fit: contain;
  margin-top: -5px;
  margin-bottom: -18px;
  z-index: 2;
}

/* Cadre photo album accroché */
.album-item {
  cursor: pointer;
  transition: transform 0.3s ease;
}

.album-item:hover {
  transform: translateY(4px) rotate(-1deg);
}

.photo-frame {
  background-color: transparent;
  padding: 8px 8px 12px 8px;
  border-radius: 4px;
  text-align: center;
  width: 140px;
}

.photo-frame img {
  width: 100%;
  height: 110px;
  border: 2px solid var(--accent-plum);
  object-fit: cover;
  border-radius: 2px;
  display: block;
}

/* Titre flottant sous la photo */
.album-title {
  font-family: var(--font-title);
  font-size: 2rem;
  color: var(--accent-plum);
  margin-top: 8px;
  white-space: normal;
  line-height: 1.2;
}

/* ------------------------------------------------------------------------
   POPUP MODALE DE L'ALBUM PHOTO
   ------------------------------------------------------------------------ */
.gallery-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(20, 10, 25, 0.92);
  backdrop-filter: blur(6px);
  z-index: 10000;
  justify-content: center;
  align-items: center;
}
/* ------------------------------------------------------------------------
   VISIONNEUSE LIGHTBOX (AJUSTEMENT DES PHOTOS & FLÈCHES)
   ------------------------------------------------------------------------ */

/* Conteneur principal de la popup */
.gallery-modal-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 900px;
  width: 90%;
  max-height: 90vh;
  padding: 1.5rem 2rem;
  overflow: hidden;
}

/* Zone centrale avec les flèches sur les côtés */
.lightbox-viewer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 1rem;
  margin: 1rem 0;
  position: relative;
}

/* Conteneur de l'image principale */
.lightbox-image-container {
  flex-grow: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  max-height: 55vh; /* Empêche l'image de sortir de l'écran */
  width: 100%;
  overflow: hidden;
}

.lightbox-image-container img {
  max-width: 100%;
  max-height: 55vh;
  object-fit: contain; /* Redimensionne proprement la photo sans la déformer */
  border-radius: 8px;
  border: 1px solid var(--accent-gold);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
  transition: opacity 0.2s ease;
}

/* Boutons Flèches Suivant / Précédent (sans fond ni cercles) */
.lightbox-btn {
  background: transparent;
  border: none;
  color: var(--accent-gold);
  font-size: 2.4rem; /* Flèche plus grande et bien visible */
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  user-select: none;
  box-shadow: none;
  padding: 0 0.5rem;
}

.lightbox-btn:hover {
  background: transparent;
  color: var(--text-light); /* Change de couleur au survol */
  transform: scale(1.25);   /* Effet d'agrandissement fluide */
  box-shadow: none;
}

/* Bouton Croix de fermeture */
.gallery-modal-close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  font-size: 2.2rem;
  color: var(--accent-rose);
  cursor: pointer;
  transition: color 0.3s ease;
}

.gallery-modal-close:hover {
  color: var(--accent-gold);
}

/* Pied de page : Compteur & Miniatures */
.lightbox-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  width: 100%;
}

.lightbox-counter {
  font-family: var(--font-title);
  color: var(--accent-rose);
  font-size: 1.1rem;
  letter-spacing: 1px;
}

/* Bandeau horizontal de miniatures défilables */
.lightbox-thumbnails {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  max-width: 100%;
  padding: 0.4rem 0.2rem;
  scrollbar-width: thin;
  scrollbar-color: var(--accent-rose) transparent;
}

.lightbox-thumbnails img {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: 4px;
  opacity: 0.4;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s ease;
}

.lightbox-thumbnails img.active,
.lightbox-thumbnails img:hover {
  opacity: 1;
  border-color: var(--accent-gold);
  transform: scale(1.08);
}

/* Hero Section */
.hero-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  min-height: 85vh;
}

.hero-content .subtitle {
  margin: 1.5rem 0 2rem 0;
  font-size: 1.3rem;
  color: var(--accent-rose);
}

.hero-actions {
  display: flex;
  gap: 1.5rem;
}

.hero-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.gallery-card {
  position: relative;
  border: 1px solid var(--accent-plum);
  background: var(--bg-card);
  overflow: hidden;
}

.gallery-card.featured {
  grid-column: span 2;
}

.gallery-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  opacity: 0.75;
  filter: grayscale(40%) contrast(110%);
  transition: all 0.5s ease;
}

.gallery-card:hover img {
  opacity: 0.95;
  filter: grayscale(0%);
  transform: scale(1.03);
}

.card-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 0.5rem 1rem;
  background: rgba(36, 19, 44, 0.85);
  font-family: var(--font-title);
  border-top: 1px solid var(--accent-plum);
}

/* About Section */
/* Organisation en 2 colonnes : Galerie à gauche, Texte à droite */
.about-section {
  padding: 2rem 10%;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr; /* Deux colonnes d'égale largeur */
  gap: 3rem;
  align-items: center;
}

/* Style de la partie texte (à droite) */
.about-text h2 {
  text-align: left; /* Alignement du titre à gauche dans sa colonne */
  font-family: var(--font-title);
  font-size: 2.4rem;
  color: var(--text-light);
  margin-bottom: 1.5rem;
}

.about-text p {
  margin-bottom: 1.2rem;
  font-size: 1.1rem;
  line-height: 1.6;
}


/* Services Grid */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
}

.contact-card {
  background-color: var(--bg-card);
  border: 1px solid var(--accent-plum);
  padding: 2rem;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.contact-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-rose);
}

.card-icon {
  font-size: 2rem;
  color: var(--accent-rose);
  margin-bottom: 1rem;
}

/* Style par défaut du lien */
.contact-card a {
  color: var(--accent-rose); /* Nuance de rose (remplaçable par votre variable, ex: var(--rose)) */
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

/* Surlignage (souligné) au survol */
.contact-card a:hover {
  text-decoration: underline;
  text-underline-offset: 4px; /* Décolle légèrement la ligne du texte */
}

/* Events Section */
.events-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.event-item {
  display: flex;
  align-items: center;
  background-color: var(--bg-card);
  border: 1px solid var(--accent-plum);
  padding: 1.5rem;
  gap: 2rem;
}

.event-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: var(--accent-plum);
  border: 1px solid var(--accent-rose);
  width: fit-content ;
  padding-inline: 5px;
  height: 70px;
  flex-shrink: 0;
}

.event-date .frequency {
  font-family: var(--font-title);
  font-size: 1.8rem;
  line-height: 1;
}


.event-details {
  flex-grow: 1;
}

.event-tag {
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--accent-rose);
  letter-spacing: 1px;
}

/* Kinepolics Banner */
.kinepolics-banner {
  background-color: var(--bg-card);
  text-align: center;
  padding: 4rem 10%;
}

.banner-border {
  border: 2px dashed var(--accent-rose);
  padding: 3rem;
}

.banner-border p {
  max-width: 650px;
  margin: 1.5rem auto;
  color: var(--accent-rose);
}



.equipment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
}

.eq-card {
  background-color: var(--bg-card);
  border: 1px solid var(--accent-plum);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.eq-status {
  font-size: 0.8rem;
  text-transform: uppercase;
  margin-bottom: 0.8rem;
  font-weight: bold;
}

.status-available { color: var(--text-light); }
.status-busy { color: var(--accent-rose); }

.eq-card p {
  font-size: 0.95rem;
  margin: 0.8rem 0 1.5rem 0;
}

/* Footer */
.footer {
  background-color: var(--bg-dark);
  border-top: 1px solid var(--accent-plum);
  padding: 3rem 10% 1.5rem 10%;
  position: relative;
  z-index: 1;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.footer-brand {
  font-family: var(--font-title);
  font-size: 1.5rem;
}

.footer-brand p {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--accent-rose);
}

/* Alignement en colonne pour créer le saut de ligne */
.footer-links {
  display: flex;
  flex-direction: column; /* Force le saut de ligne */
  align-items: flex-end;   /* Aligne à droite (changez en flex-start si vous préférez à gauche) */
  gap: 0.01rem;
}

.footer-links span {
  color: var(--text-light);
  opacity: 0.85;
  font-size: 0.95rem;
}

/* Style de l'adresse email et préparation de l'animation */
.footer-links a.email {
  color: var(--accent-rose);
  text-decoration: none; /* Désactive le soulignement HTML natif */
  position: relative;
  padding-bottom: 2px;
  transition: color 0.3s ease;
}

/* Ligne de souslignage animée (cachée par défaut) */
.footer-links a.email::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--accent-rose);
  transform: scaleX(0);
  transform-origin: bottom right;
  transition: transform 0.3s ease-in-out, background-color 0.3s ease;
}

/* Animation au survol */
.footer-links a.email:hover {
  color: var(--text-light);
}

.footer-links a.email:hover::after {
  transform: scaleX(1);
  transform-origin: bottom left;
  background-color: var(--text-light);
}

.footer-bottom {
  text-align: center;
  font-size: 0.85rem;
  color: var(--accent-rose);
  border-top: 1px solid rgba(114, 61, 81, 0.3);
  padding-top: 1rem;
}

/* Modale */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(36, 19, 44, 0.9);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

.modal-content {
  background-color: var(--bg-card);
  border: 1px solid var(--accent-rose);
  padding: 2.5rem;
  width: 90%;
  max-width: 480px;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  font-size: 2rem;
  color: var(--accent-rose);
  cursor: pointer;
}

.form-group {
  margin-bottom: 1.2rem;
  margin-top: 1rem;
}

.form-group label {
  display: block;
  font-family: var(--font-title);
  margin-bottom: 0.3rem;
}

.form-group input {
  width: 100%;
  padding: 0.8rem;
  background-color: var(--bg-dark);
  border: 1px solid var(--accent-plum);
  color: var(--text-light);
  font-family: var(--font-body);
}

.form-group input:focus {
  outline: none;
  border-color: var(--accent-rose);
}

/* Responsive */
@media (max-width: 850px) {
  .hero-section {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-actions {
    justify-content: center;
  }
  .about-grid {
    grid-template-columns: 1fr;
  }
  .navbar {
    padding: 1rem;
  }
  .nav-links {
    gap: 0.8rem;
  }
}