/* =========================
   RESET & BASE
========================= */
@font-face {
    font-family: 'Nightydemo';
    src: url('typo/Nightydemo.otf') format('opentype'); /* corrige le format */
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'estrella';
    src: url('typo/estrella-early.otf') format('opentype'); /* corrige le format */
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'PestoFresco';
    src: url('typo/fonnts.com-PestoFresco_Regular.otf') format('opentype'); /* corrige le format */
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'PestoFresco2';
    src: url('typo/fonnts.com-PestoFresco_Thin_Rough.otf') format('opentype'); /* corrige le format */
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'LeagueSpartan-Black';
    src: url('typo/LeagueSpartan-SemiBold.ttf') format('truetype'); /* TTF ok */
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}


* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

html {
  overflow-y: scroll;
}

body, html {
  margin: 0;
  padding: 0;
  height: 100%;
  background-color: #1a1a1a; /* fond sombre */
  font-family: Arial, sans-serif;
  color: white;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.5' numOctaves='3' stitchTiles='stitch' /%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' /%3E%3C/svg%3E");
  background-size: 200px 200px;
  opacity: 0.1;           /* intensité du grain */
  z-index: 0;             /* derrière tout le contenu */
}

/* Contenu principal devant le grain */
.main, .hero, .content {
  position: relative;
  z-index: 1;
}

.main {
  position: relative;
  overflow: hidden;
  margin-left: 250px; /* si sidebar */
  width: calc(100% - 250px);
  min-height: 100vh;
  z-index: 1; /* s'assurer que le contenu est au-dessus du cercle */
}

/* =========================
   SIDEBAR
========================= */

.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 250px;
  height: 100vh;
  background: #000;
  padding: 20px;
  z-index: 2;

  display: flex;
  flex-direction: column;
  align-items: center; /* centre horizontalement */
}

/* Brand */
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 30px;
  padding: 10px 18px 10px 12px;
}

.brand img {
  display: block;
  width: 80px;
  height: 80px;
  object-fit: contain;
  transition: transform 0.5s ease; /* transition fluide pour la rotation */
}

.brand img:hover {
  transform: rotate(20deg); /* tourne de 20 degrés au hover */
}


/* Menu */

.menu-group {
  margin-bottom: 20px;
}

.menu-title,
.acceuil {
  font-family: 'LeagueSpartan-Black', Arial, sans-serif;

  background: none;
  border: none;
  color: white;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 1px;
  cursor: pointer;
  padding: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.menu-content {
    font-family: 'LeagueSpartan-Black', Arial, sans-serif;
  max-height: 0;
  overflow: hidden;
  padding-left: 10px;
  transition: max-height 0.35s ease;
}
.menu-title a {
    font-family: 'LeagueSpartan-Black', Arial, sans-serif;

  color: white;
  text-decoration: none;
  width: 100%;
}
.menu-title {
  text-decoration: none;
  color: white;
}
#hero-title {
  color: #bd5151;
  display: inline-block;
  will-change: transform;
  cursor: default;
}
.hero h1 {
    font-family: 'estrella', Arial, sans-serif;
    font-size: 8.2rem;      
    font-weight: 300;
    color: #bd5151;
    margin: 0; /* supprime toutes les marges */
}


.hero h2 {
    font-family: 'PestoFresco', Arial, sans-serif;
    font-size: 2.5rem;
    font-weight: 400;
    color: #bdbdbd;
    margin: 10px 0; /* réduit l’écart avec h1 et p */
}

.hero p {
    font-family: 'PestoFresco', Arial, sans-serif;
    font-size: 1.5rem;
    line-height: 1.7;
    color: #e0e0e0;
    max-width: 700px;
    margin: 0; /* marge minimale */
}
.hero span {
  font-family: 'PestoFresco', Arial, sans-serif;
  color: #bd5151;
  font-weight: 500;
}
.hero strong {
  font-family: 'PestoFresco', Arial, sans-serif;
  color: #bd5151;
  font-weight: 500;
}


.menu-content a {
  font-family: 'LeagueSpartan-Black', Arial, sans-serif;

  display: block;
  color: #b3b3b3;
  text-decoration: none;
  margin: 10px 0;
  font-size: 18px;
}

.menu-content a:hover {
  color: white;
}

.chevron {
  font-size: 25px;
  color: #b3b3b3;
  transition: transform 0.3s ease;
}

.menu-group:hover .menu-content {
  max-height: 500px;
}

.menu-group:hover .chevron {
  transform: rotate(90deg);
}

/* =========================
   MAIN CONTENT
========================= */

.main {
  margin-left: 250px;
  width: calc(100% - 250px);
  min-height: 100vh;
}

/* =========================
   HERO (UNE SEULE VERSION)
========================= */

.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 1000px;
    margin: 0 auto;
    margin-top: 20px; /* contrôle l’espace depuis le haut */
    margin-bottom: 20px;
    justify-content: flex-start; /* <-- important pour remonter le h1 */
}




.content {
padding-left: 2%;
margin-bottom: 5%;
}


/* =========================
   SECTIONS
========================= */

.section {
  padding: 40px 30px;
}

.section-title {
    font-family: 'PestoFresco', Arial, sans-serif;
 text-transform: uppercase;
  font-size: 28px;
  margin-bottom: 20px;
}

/* =========================
   SCROLL HORIZONTAL
========================= */

.horizontal-scroll {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 10px;
  scroll-behavior: smooth;
    scrollbar-width: none;

}
.horizontal-scroll.programmes {
  margin-left: 20px; /* décale légèrement vers la gauche */
}

.horizontal-scroll::-webkit-scrollbar {
  display: none;
}


/* =========================
   PROJECT CARDS
========================= */
.project-card {
  flex-shrink: 0;
  width: 180px;
  background: #181818;
  border-radius: 20px;
  padding: 15px;
  margin-bottom: 2%;
  cursor: pointer;
  text-align: center;
  transition: background 0.3s, transform 0.3s;

  display: flex;
  flex-direction: column;
  align-items: center;

  /* Supprime le souligné si la carte est un lien */
  text-decoration: none;
  color: inherit;
}

.project-card:hover {
  background: #282828;
  transform: translateY(-4px);
}

.project-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 16px;
  margin-bottom: 10px;
}


.project-card h3 {
  font-family: 'PestoFresco2', Arial, sans-serif;
  font-size: 28px;
  margin-bottom: 4px;

  /* Supprime le souligné et prend la couleur héritée */
  text-decoration: none;
  color: #bd5151;
}

.project-card p {
  font-family: 'LeagueSpartan-Black', Arial, sans-serif;
  font-size: 16px;
  color: #b3b3b3;

  /* Supprime le souligné et prend la couleur héritée */
  text-decoration: none;
  color: inherit; /* ici tu peux remplacer #b3b3b3 si tu veux garder gris */
}


/* =========================
   PROGRAMS (IMAGES RONDES)
========================= */

