:root {
  --main-color: #1c1c1f;
  --primary-color: #bee2d7;
  --primary-color-fonce: #6b988a;
  --primary-color-claire: #eafbf6;
  --secondary-color: #e3cdbf;
  --accent-color: #d0a39b;
  --text-light: #55555a;
  --nav-height: 100px;
}

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

html {
  scroll-behavior: smooth;
  overflow-y: scroll; /* Évite le décalage de la page entre le haut et le bas */
}

body {
  font-family: "Spline Sans", sans-serif;
  color: var(--main-color);
  background: #ffffff;
  padding-top: var(--nav-height);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1, h2, h3, h4 {
  font-family: "Quicksand", sans-serif;
}

a {
  color: var(--main-color);
  text-decoration: none;
}
a:hover {
  color: var(--accent-color);
}

/* ---------- NAVIGATION ---------- */
.navigation {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: #ffffff;
}

.nav-inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 15px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--primary-color);
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.logo {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
}

.nom h1 {
  font-size: 1.6rem;
  font-weight: 700;
}

.nom p {
  font-size: 0.9rem;
  color: var(--text-light);
  font-weight: 300;
}

.menu {
  display: flex;
  gap: 32px;
}

.menu a {
  font-weight: 500;
}

.menu a.active {
  font-weight: 700;
  color: var(--primary-color-fonce);
}

/* Sous-menu interne */
.navigation .sub-menu {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  background-color: #ffffff;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0.8rem 1rem;
  border-bottom: 1px solid var(--primary-color);
}

.navigation .sub-menu a {
  font-size: 0.95rem;
  color: var(--text-light);
  font-weight: 500;
  transition: color 0.2s ease;
}

.navigation .sub-menu a:hover {
  color: var(--primary-color-fonce);
}

/* ---------- STRUCTURE COMMUNE ---------- */
.page-contenu {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 50px 20px;
  flex: 1;
}

.contenu-bloc {
  scroll-margin-top: calc(var(--nav-height) + 40px);
  margin-bottom: 40px;
}

.titre {
  background: var(--primary-color);
  padding: 12px 20px;
  border-radius: 12px;
  margin-bottom: 20px;
}

.titre h2 {
  font-size: 1.2rem;
  letter-spacing: 1px;
}

.texte-bloc {
  padding: 0 10px;
  font-weight: 300;
  line-height: 1.6;
  color: var(--text-light);
}

/* ---------- PAGE ACCUEIL ---------- */
.accueil-texte {
  display: flex;
  flex-direction: column;
  gap: 22px;
  line-height: 1.75;
  color: var(--text-light);
  font-weight: 300;
  font-size: 1.05rem;
}

.accueil-texte h2 {
  font-size: 1.8rem;
  color: var(--main-color);
  line-height: 1.3;
}

.accueil-texte strong {
  color: var(--main-color);
  font-weight: 600;
}

.signature {
  color: var(--main-color);
  font-weight: 400;
}

/* ---------- PAGE CARRIÈRE (CV) ---------- */
.intro {
  display: flex;
  gap: 24px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.intro img {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;;
}

.intro-texte {
  border: 1px solid var(--primary-color);
  border-radius: 16px;
  padding: 20px;
  font-weight: 300;
  line-height: 1.6;
  color: var(--text-light);
  flex: 1;
  min-width: 240px;
}

.groupes {
  display: grid;
  gap: 24px;
}

.groupes-2 {
  grid-template-columns: 1fr 1fr;
}

.groupes-3 {
  grid-template-columns: repeat(3, 1fr);
}

/* Style des encadrés "pilules" géré ici à 100% dans le CSS */
.sous-titre-cv {
  border: 1px solid #cfd8d3;
  border-radius: 30px;
  padding: 10px 20px;
  text-align: center;
  font-family: "Quicksand", sans-serif;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--main-color);
}

.liste-cv {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.liste-cv li {
  position: relative;
  padding-left: 18px;
}

.liste-cv li::before {
  content: "○";
  position: absolute;
  left: 0;
  top: 3px;
  font-size: 0.7rem;
  color: var(--accent-color);
}

.liste-cv strong {
  display: block;
  font-family: "Quicksand", sans-serif;
  font-weight: 600;
  color: var(--main-color);
  margin-bottom: 2px;
}

.liste-cv span {
  display: block;
  font-size: 0.92rem;
}

.lien-diplome {
  display: inline-block;
  margin-top: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--primary-color-fonce);
  text-decoration: underline;
}

/* ---------- GRILLE D'AFFICHES (CANVA) ---------- */
.affiches-grid {
  display: grid;
  /* On ajuste minmax à une taille plus petite (ex: 180px) pour qu'elles prennent moins de place */
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  margin-top: 25px;
  max-width: 900px;
}

.affiche-card {
  background: transparent;
  text-align: left;
  /* Optionnel : vous pouvez aussi limiter directement la largeur maximale de chaque carte ici */
  max-width: 220px; 
  margin: 0 auto; /* Centre les cartes si elles rétrécissent */
}

.affiche-card img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
}

.affiche-card h4 {
  margin-top: 12px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--main-color);
}

.affiche-card p {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-top: 4px;
}

/* ---------- PORTFOLIO & VIDÉOS ---------- */
.portfolio-intro {
  margin-bottom: 30px;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text-light);
}

.item-realisation {
  margin-bottom: 30px;
}

.item-realisation h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.item-realisation .desc-courte {
  font-weight: 500;
  color: var(--main-color);
  margin-bottom: 6px;
}

.item-realisation .details {
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.5;
  margin-bottom: 10px;
}

.lien-action {
  display: inline-block;
  font-weight: 500;
  color: var(--primary-color-fonce);
  text-decoration: underline;
  margin-top: 5px;
}

.video-box {
  width: 100%;
  max-width: 700px;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
  margin-top: 15px;
}

.video-box video {
  width: 100%;
  display: block;
}

.videos-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 25px;
  max-width: 1000px;
  align-items: start;
}

.video-card {
  width: 100%;
}

.video-card video {
  width: 100%;
  border-radius: 8px;
  display: block;
  background: #000;
}

.video-card h4 {
  margin-top: 10px;
  font-size: 1rem;
  font-weight: 600;
}

.video-card p {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-top: 4px;
}

.banniere-video {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin: 20px 0;
  text-align: center;
}

.banniere-video video {
  width: 100%;
  max-width: 450px;
  height: auto;
  display: block;
  margin: 0 auto; /* Force le centrage horizontal strict */
  
  /* Neutralise l'overlay matériel direct de Chromium */
  -webkit-transform: translate3d(0, 0, 0);
  transform: translate3d(0, 0, 0);
  filter: contrast(100.01%);
  will-change: transform;
}

/* ---------- PAGE CONTACT & FORMULAIRE ---------- */
.contact-section {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-section h2 {
  font-size: 1.8rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: #ffffff;
  border: 1px solid #cfd8d3;
  padding: 35px;
  border-radius: 16px;
  margin-top: 10px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-family: "Quicksand", sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #cfd8d3;
  border-radius: 10px;
  font-family: "Spline Sans", sans-serif;
  font-size: 1rem;
  background: #ffffff;
}

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

.btn-submit {
  align-self: flex-start;
  background-color: var(--main-color);
  color: #ffffff;
  font-family: "Quicksand", sans-serif;
  font-weight: 600;
  padding: 12px 28px;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

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

.form-success-box {
  background: #ffffff;
  border: 1px solid #cfd8d3;
  padding: 35px;
  border-radius: 16px;
  margin-top: 10px;
  text-align: center;
}

/* ---------- FOOTER ---------- */
.site-footer {
  width: 100%;
  max-width: 1000px;
  margin: auto auto 0;
  padding: 24px 20px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #d8e6e1;
  color: var(--text-light);
  font-size: 0.9rem;
}

.footer-liens {
  display: flex;
  align-items: center;
  gap: 20px;
}

.footer-liens a {
  color: var(--text-light);
  font-weight: 500;
}

.footer-liens a:hover {
  color: var(--accent-color);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 850px) {
  .videos-grid-3 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  :root {
    --nav-height: 140px;
  }

  .nav-inner {
    flex-direction: column;
    gap: 10px;
    padding: 12px 16px;
  }

  .sub-menu {
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
  }

  .intro {
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-top: 100px;
  }

  .groupes-2,
  .groupes-3 {
    grid-template-columns: 1fr;
  }

  .site-footer {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .footer-liens {
    justify-content: center;
  }
}


/* ---------- AJOUTS SPÉCIFIQUES POUR LA PAGE MESS ---------- */
.texte-vacances {
  color: var(--accent-color);
}

.groupes-marge {
  margin-top: 24px;
}

/* Alignement et dimensionnement identique pour les cartes d'évènements */
#evenements .groupes-2 {
  align-items: stretch;
}

.carte-evenement {
  max-width: 100% !important;
  width: 100%;
  border: 1px solid var(--primary-color);
  border-radius: 16px;
  padding: 24px;
  background-color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: flex-start; 
}

.carte-evenement.principale {
  border-color: var(--primary-color);
  background-color: #ffffff;
}

/* Date de l'évènement */
.carte-titre {
  font-family: "Quicksand", sans-serif;
  font-size: 1.05rem; 
  font-weight: 700;
  color: var(--main-color);
  border-bottom: 1px solid var(--primary-color);
  padding-bottom: 6px;
  margin-bottom: 6px;
}

.carte-titre.primaire {
  color: var(--primary-color-fonce);
  border-bottom-color: var(--primary-color);
}

.bloc-festival-info {
  margin-top: 0;
  margin-bottom: 12px;
}

/* Titre du festival */
.titre-festival {
  font-family: "Quicksand", sans-serif;
  font-size: 1.15rem; 
  font-weight: 700;
  color: var(--main-color);
  line-height: 1.2;
}

/* Ligne chorégraphie */
.texte-choreo {
  font-family: "Spline Sans", sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--primary-color-fonce);
  margin-top: 4px;
}

/* On pousse uniquement le lien tout en bas de la carte */
.conteneur-lien {
  margin-top: auto; 
  padding-top: 14px;
}