/* =========================
   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, body {
  margin: 0;
  padding: 0;
  background-color: #1a1a1a;
  font-family: Arial, sans-serif;
  color: white;
  overflow-x: hidden; /* supprime scroll horizontal */
  /* on enlève height: 100% pour que la page s'adapte au contenu */
}

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 */
}




/* =========================
   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;
}
.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);
  display: flex;
  flex-direction: column;
  align-items: stretch;
}


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

.content h1 {
  font-family: 'PestoFresco', Arial, sans-serif;
  color: #bd5151;
  font-size: 3em;
  margin-bottom: 0.5em;
}

/* Style pour tous les strong dans le contenu */
.content strong {
  font-family: 'PestoFresco', Arial, sans-serif;
  color: #bd5151;
    font-size: 1.4em;

}

/* Style pour le texte en italique (em) */
.content em {
  font-style: italic;
}

/* Paragraphes */
.content p {
  margin-bottom: 1em;
}
.horizontal-scroll {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 10px;
  scroll-behavior: smooth;
}

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

.horizontal-scroll {
  scrollbar-width: none;
}

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

.horizontal-scroll.programs .project-card img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
}
/* =========================
   GALERIE HAUT DE PAGE
========================= */

.image-link {
  position: relative;
  display: block;
  width: 96%;
  max-width: 1400px; 
  overflow: hidden;
  border-radius: 20px;
  text-decoration: none;
  line-height: 0;  /* supprime espace sous image */
  margin: 0 auto;  /* centre le lien si < max-width */
  margin-left: 2%;
  margin-right: 2%;
  padding: 0;      /* supprime tout padding */
}

.image-link img {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;      /* supprime l'espace inline */
  vertical-align: top; /* supprime l'espace sous l'image */
  object-fit: cover;
}

.image-link:hover img {
  filter: brightness(70%);
  transform: scale(1.02);
}

.image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(0,0,0,0.0);
  transition: background 0.3s ease;
}

.image-overlay span {
  color: white;
  font-size: 2rem;
  font-weight: bold;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.image-link:hover .image-overlay {
  background: rgba(0,0,0,0.3);
}

.image-link:hover .image-overlay span {
  opacity: 1;
}.project-intro {
  display: flex;
  gap: 40px; /* espace entre texte et image */
  align-items: flex-start; /* aligne le texte et l'image en haut */
  flex-wrap: wrap; /* responsive sur petits écrans */
}

.text-column {
  flex: 1 1 500px; /* prend la largeur disponible, min 500px */
  padding-left: 1%;
  padding-top: 1%;
}

.image-column {
  flex: 0 0 300px; /* largeur fixe pour l'image */
  padding-top: 8%;
}

.image-column img {
  width: 70%;
  height: auto;
  border-radius: 20px;
  object-fit: cover;
}
