/* =========================================================
   GOOGLE FONT
========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');


/* =========================================================
   VARIABLES
========================================================= */

:root {
  --purple: #b185c1;
  --purple-dark: #9b6eb0;
  --yellow: #ffde59;
  --white: #ffffff;
  --black: #1a1a1a;

  /* Couleur utilisée pour les blocs alternatifs */
  --alternate-bg: rgba(201, 126, 253, 0.35);
}


/* =========================================================
   RESET
========================================================= */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  font-size: 1.5rem;
  background: linear-gradient(
    135deg,
    var(--purple),
    var(--purple-dark)
  );
  color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}


/* =========================================================
   LIENS / IMAGES
========================================================= */

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
}


/* =========================================================
   CONTAINER
========================================================= */

.container {
  width: 95%;
  max-width: 1700px;
  margin: 0 auto;
}


/* =========================================================
   HEADER
========================================================= */

header {
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 20px 0;
  background: rgba(177, 133, 193, 0.40);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}


/* =========================================================
   NAVBAR
========================================================= */

.navbar {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}


/* =========================================================
   LOGO
========================================================= */

.logo img {
  height: 90px;
  width: auto;
  object-fit: contain;
  transition: 0.3s ease;
}

.logo img:hover {
  transform: scale(1.05);
}


/* =========================================================
   NAVIGATION
========================================================= */

.nav-links {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-left: auto;
  justify-content: flex-end;
}

.nav-links a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  gap: 10px;

  min-width: 110px;

  padding: 12px 16px;

  border-radius: 16px;

  color: white;

  font-size: 18px;
  font-weight: 800;

  text-align: center;

  transition: 0.3s ease;
}

.nav-links a span {
  display: block;
}

.nav-links a i {
  font-size: 34px;
  transition: 0.3s ease;
}


/* =========================================================
   NAVIGATION HOVER
========================================================= */

.nav-links a:hover {
  background: #ffffff;
  color: #a87cb4;

  padding: 12px 18px;

  border-radius: 14px;

  transform: translateY(-5px);
}

.nav-links a:hover i {
  color: var(--purple);
  transform: scale(1.08);
}


/* =========================================================
   HERO
========================================================= */

.hero {
  min-height: auto;

  display: flex;
  align-items: center;
  justify-content: center;

  text-align: center;
}

.hero-content {
  width: 100%;
  max-width: 2000px;

  animation: fadeUp 1s ease;
}

.hero h1 {
  font-size: clamp(3rem, 8vw, 6rem);

  font-weight: 900;

  line-height: 1.1;

  color: var(--yellow);

  margin-bottom: 20px;

  text-transform: uppercase;
}

.hero h2 {
  font-size: clamp(1.5rem, 4vw, 2.3rem);

  margin-bottom: 30px;

  font-weight: 500;
}

.hero p {
  font-size: 1.5rem;

  line-height: 1.9;

  margin: 0 60px 40px 60px;
}


/* =========================================================
   SLIDERS
========================================================= */

.slider,
.slider2,
.slider3,
.slider4 {
  position: relative;

  width: 100%;
  max-width: 900px;

  height: 500px;

  margin: 50px auto;

  overflow: hidden;

  border-radius: 25px;
}

.slider {
  background: #ad81be;
}

.slider2 {
  background: #c97efd;
}

.slider3 {
  background: #d63384;
}

.slider4 {
  background: #ac80bd;
}


/* =========================================================
   SLIDER OVERLAY
========================================================= */

.slider-overlay {
  position: absolute;

  top: 0;
  left: 0;

  width: 100%;
  height: 100%;

  z-index: 100;

  pointer-events: auto;

  background: transparent;

  cursor: pointer;
}


/* =========================================================
   SLIDES
========================================================= */

.slide {
  position: absolute;

  top: 0;
  left: 0;

  width: 100%;
  height: 100%;

  object-fit: contain;
  object-position: center;

  opacity: 0;

  transition: opacity 3s ease;

  z-index: 1;

  pointer-events: none;

  max-width: 100%;
}

.slide.active {
  opacity: 1;
  z-index: 2;
}


/* =========================================================
   TEXTE SOUS SLIDER
========================================================= */

.texte-slide {
  text-align: center;

  margin: 0 auto;

  max-width: 900px;

  font-style: italic;
}


/* =========================================================
   BOUTONS
========================================================= */

.btn {
  display: inline-flex;

  align-items: center;
  justify-content: center;

  padding: 16px 34px;

  background: var(--yellow);

  color: var(--black);

  border-radius: 50px;

  font-weight: 800;

  transition: 0.3s ease;

  box-shadow: 0 10px 30px rgba(255, 222, 89, 0.3);

  margin: 40px auto 0 auto;
}

.btn:hover {
  background: white;

  transform: translateY(-5px) scale(1.03);
}


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

section {
  padding: 120px 0;
}


/* =========================================================
   PAGE DOUBLE
========================================================= */

.main-content .page-double {
  width: 90%;
  max-width: 1200px;

  margin: 0 auto;

  display: flex;

  flex-direction: row;

  align-items: flex-start;

  justify-content: center;

  gap: 60px;
}


/* =========================================================
   COLONNE IMAGES
========================================================= */

.images-colonne {
  width: 45%;

  display: flex;

  flex-direction: column;

  gap: 30px;
}

.images-colonne img {
  display: block;

  border-radius: 25px;
}

.images-colonne h1 {
  font-size: 2rem;
}


/* =========================================================
   COLONNE TEXTE
========================================================= */

.texte-colonne {
  width: 55%;

  background: #d63384;

  padding: 40px;

  border-radius: 30px;

  color: white;

  text-align: center;

  min-width: 0;
}

.texte-colonne h2 {
  color: var(--yellow);

  margin-bottom: 25px;

  font-size: 3rem;

  line-height: 1.2;

  overflow-wrap: anywhere;
}

.texte-colonne p {
  font-size: 1.3rem;

  line-height: 1.8;

  margin-bottom: 25px;

  overflow-wrap: anywhere;
}


/* =========================================================
   TITRES DE SECTIONS
========================================================= */

.section-title {
  text-align: center;

  font-size: clamp(2rem, 5vw, 4rem);

  font-weight: 900;

  color: var(--yellow);

  margin-bottom: 60px;
}


/* =========================================================
   CONTENT CARDS
========================================================= */

.about-content,
.petition-content {
  max-width: 900px;

  margin: auto;

  padding: 50px;

  border-radius: 30px;

  background: #d63384;

  color: white;

  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);

  animation: fadeUp 1s ease;
}

.programme-box {
  text-align: center;

  display: flex;

  flex-direction: column;

  align-items: center;

  max-width: 900px;

  margin: auto;

  padding: 50px;

  border-radius: 30px;

  background: #c97efd;

  color: white;

  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);

  animation: fadeUp 1s ease;
}

.about-content h2 {
  color: yellow;
}


/* =========================================================
   ABOUT
========================================================= */

.about {
  background: #cc0000;

  color: white;

  font-size: 100px;
}


/* =========================================================
   PROGRAMMES
========================================================= */

/*
   IMPORTANT :
   La section programmes est maintenant un élément
   indépendant de .page-photos.
*/

.programmes {
  width: 100%;

  margin: 60px 0 0 0;

  padding: 60px 30px;

  background: #d63384;

  box-sizing: border-box;

  text-align: center;
}


/* =========================================================
   TITRE PROGRAMMES
========================================================= */

.programmes .titre-ateliers {
  width: 100%;

  max-width: 1400px;

  margin: 0 auto 50px auto;

  text-align: center;

  font-size: 4rem;

  line-height: 1.15;

  color: var(--yellow);
}


/* =========================================================
   TEXTE PROGRAMMES
========================================================= */

.programmes > p {
  width: 100%;

  max-width: 1200px;

  margin: 0 auto 40px auto;

  text-align: center;

  font-size: 1.5rem;

  line-height: 1.8;
}


/* =========================================================
   CARTE PROGRAMMES
========================================================= */

.programmes .atelier-card {
  width: 100%;

  max-width: 1200px;

  margin: 0 auto;

  display: flex;

  justify-content: center;

  align-items: center;

  padding: 25px;

  border-radius: 30px;

  background: #d63384;

  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);

  box-sizing: border-box;
}


/* =========================================================
   TEXTE GENERAL
========================================================= */

.about-content p,
.programme-box p,
.petition-content p {
  font-size: 1.5rem;

  line-height: 1.9;
}

.programmes p {
  text-align: center;
}


/* =========================================================
   SOCIAL LINKS
========================================================= */

.social-links {
  display: flex;

  flex-wrap: wrap;

  justify-content: center;

  gap: 25px;

  margin-top: 40px;
}


/* =========================================================
   SOCIAL BUTTONS
========================================================= */

.btn-social {
  display: flex;

  flex-direction: column;

  align-items: center;

  justify-content: center;

  gap: 12px;

  width: 130px;

  min-height: 120px;

  padding: 20px;

  border-radius: 22px;

  background: rgba(255, 255, 255, 0.1);

  border: 1px solid rgba(255, 255, 255, 0.1);

  color: white;

  font-weight: 700;

  transition: 0.3s ease;

  backdrop-filter: blur(10px);
}

.btn-social i {
  font-size: 34px;
}

.btn-social:hover {
  background: var(--yellow);

  color: var(--purple);

  transform: translateY(-5px) scale(1.03);
}


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

/*
   IMPORTANT :
   flex-direction: column force page-photos puis
   programmes l'un sous l'autre.
*/

.main-content {
  width: 100%;

  padding: 80px 20px;

  display: flex;

  flex-direction: column;

  align-items: center;

  justify-content: flex-start;

  gap: 0;

  box-sizing: border-box;
}

.main-ateliers {
  flex: 1;

  text-align: center;

  padding: 80px 20px;

  background: #d63384;
}


/* =========================================================
   PAGE PHOTOS
========================================================= */

.page-photos {
  width: 100%;

  max-width: 1800px;

  margin: 0 auto;

  padding: 60px 30px 0 30px;

  display: flex;

  flex-direction: column;

  gap: 60px;

  align-self: center;

  box-sizing: border-box;
}


/* =========================================================
   BLOCS IMAGES - VERSION ORDINATEUR
========================================================= */

.page-photos .images-colonne2 {
  width: 100%;

  display: flex;

  flex-direction: row;

  flex-wrap: wrap;

  justify-content: center;

  align-items: center;

  gap: 20px;

  box-sizing: border-box;
}


/* =========================================================
   FOND ALTERNATIF
========================================================= */

/*
   Cette classe ne modifie PAS la disposition.
   Elle change uniquement le fond du bloc.
*/

.page-photos .images-colonne2.fond-alternatif {
  background: #257D4C;

  border-radius: 30px;
}



/* =========================================================
   TITRES DES BLOCS
========================================================= */

.page-photos .images-colonne2 h1 {
  flex: 0 0 100%;

  width: 100%;

  text-align: center;

  color: var(--yellow);

  font-size: 2rem;

  line-height: 1.2;

  margin: 0 0 20px 0;
}


/* =========================================================
   IMAGES DES BLOCS
   VERSION ORDINATEUR
========================================================= */

.page-photos .images-colonne2 img {
  display: block;

  width: 0;

  min-width: 0;

  flex: 1 1 0;

  height: auto;

  max-width: 100%;

  max-height: 750px;

  object-fit: contain;

  border-radius: 20px;

  cursor: pointer;
}


/* =========================================================
   BOUTON DES BLOCS
========================================================= */

.page-photos .images-colonne2 .btn {
  flex: 0 0 100%;

  width: 100%;

  max-width: 100%;

  text-align: center;

  margin: 20px 0 0 0;
}


/* =========================================================
   ATELIERS / GRID
========================================================= */

.ateliers-grid {
  max-width: 2000px;

  grid-template-columns: repeat(
    2,
    minmax(300px, 900px)
  );

  display: grid;

  gap: 40px;

  justify-content: center;
}

.atelier-card {
  display: flex;

  justify-content: center;

  align-items: center;

  padding: 25px;

  border-radius: 30px;

  background: #d63384;

  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);

  width: 100%;
}

.btn-atelier {
  display: flex;

  gap: 15px;

  align-items: center;

  justify-content: center;

  text-align: center;

  width: 100%;

  min-height: 100px;

  max-width: none;

  margin: auto;

  padding: 20px;

  background: var(--yellow);

  color: var(--black);

  border-radius: 25px;

  font-weight: 800;

  font-size: 20px;

  line-height: 1.4;

  transition: 0.3s ease;

  box-shadow: 0 10px 30px rgba(255, 222, 89, 0.3);

  white-space: normal;
}

.btn-atelier:hover {
  background: white;

  transform: translateY(-5px) scale(1.03);
}


/* =========================================================
   PAGE TRANSPORT
========================================================= */

.page-transport {
  flex: 1;

  text-align: center;

  padding: 80px 20px;
}

.page-transport .transport-box {
  max-width: 1100px;

  margin: auto;

  animation: fadeUp 1s ease;
}

.page-transport h1 {
  font-size: 4rem;

  color: var(--yellow);

  margin-bottom: 35px;

  line-height: 1.1;
}

.page-transport p {
  font-size: 1.3rem;

  line-height: 1.8;

  margin-bottom: 35px;
}


/* =========================================================
   PAGE VIDEOS
========================================================= */

.video-page {
  flex: 1;

  width: 100%;

  display: flex;

  flex-direction: column;

  align-items: center;

  background-color: #d63384;

  padding: 80px 20px;
}

.video-entry {
  width: 100%;

  max-width: 900px;

  margin-top: 50px;

  margin-bottom: 60px;

  background: rgba(0, 0, 0, 0.15);

  padding: 30px;

  border-radius: 30px;

  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);

  animation: fadeUp 1s ease;

  text-align: center;

  display: flex;

  flex-direction: column;

  align-items: center;
}

.video-title {
  color: var(--yellow);

  font-size: 1.8rem;

  font-weight: 700;

  margin-bottom: 25px;

  line-height: 1.3;

  overflow-wrap: anywhere;
}

.video-card {
  display: block;

  position: relative;

  width: 100%;

  border-radius: 20px;

  overflow: hidden;

  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);

  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;

  background: #000;

  aspect-ratio: 16 / 9;
}

.video-card:hover {
  transform: scale(1.02);

  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}

.video-card img {
  width: 100%;

  height: 100%;

  object-fit: cover;

  display: block;

  opacity: 0.9;

  transition: opacity 0.3s ease;
}

.video-card:hover img {
  opacity: 0.6;
}

.play-overlay {
  position: absolute;

  top: 0;
  left: 0;

  width: 100%;
  height: 100%;

  display: flex;

  justify-content: center;

  align-items: center;

  pointer-events: none;
}

.play-overlay i {
  font-size: 4rem;

  color: var(--yellow);

  background: rgba(0, 0, 0, 0.6);

  width: 90px;
  height: 90px;

  border-radius: 50%;

  display: flex;

  justify-content: center;

  align-items: center;

  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);

  transition:
    transform 0.3s ease,
    background 0.3s ease;
}

.video-card:hover .play-overlay i {
  transform: scale(1.15);

  background: var(--yellow);

  color: var(--black);
}

.video-note {
  margin-top: 15px;

  font-size: 0.9rem;

  opacity: 0.8;

  font-style: italic;
}


/* =========================================================
   FOOTER
========================================================= */

footer {
  margin-top: 80px;

  padding: 40px 20px;

  text-align: center;

  background: rgba(0, 0, 0, 0.15);

  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

footer p {
  margin-bottom: 10px;

  opacity: 0.9;
}

footer a {
  transition: 0.3s ease;
}

footer a:hover {
  color: var(--yellow);
}


/* =========================================================
   ANIMATION
========================================================= */

@keyframes fadeUp {

  from {
    opacity: 0;

    transform: translateY(40px);
  }

  to {
    opacity: 1;

    transform: translateY(0);
  }

}


/* =========================================================
   TABLETTE : 1000px
========================================================= */

@media (max-width: 1000px) {

  .ateliers-grid {
    grid-template-columns: 1fr;
  }

  .images-colonne,
  .texte-colonne {
    width: 100%;
  }

}


/* =========================================================
   TABLETTE : 900px
========================================================= */

@media (max-width: 900px) {

  .main-content .page-double {
    width: 100%;

    max-width: 100%;

    margin: 0 auto;

    gap: 30px;

    flex-direction: column;

    align-items: center;
  }

  .images-colonne {
    width: 100%;

    max-width: 100%;

    min-width: 0;
  }

  .texte-colonne {
    width: 100%;

    max-width: 100%;

    min-width: 0;

    padding: 25px 20px;

    box-sizing: border-box;
  }

  .texte-colonne h2 {
    width: 100%;

    max-width: 100%;

    min-width: 0;

    font-size: 2rem;

    line-height: 1.2;

    overflow-wrap: normal;

    word-break: normal;
  }

  .texte-colonne p {
    width: 100%;

    max-width: 100%;

    min-width: 0;

    overflow-wrap: anywhere;

    word-break: normal;
  }

  .hero h1 {
    font-size: 2.8rem;
  }

  .hero h2 {
    font-size: 1.5rem;
  }

  .hero p {
    margin: 0 40px 40px 40px;

    font-size: 1.3rem;
  }

  .section-title {
    font-size: 2.2rem;
  }

  .video-title {
    font-size: 1.4rem;
  }

  .play-overlay i {
    font-size: 3rem;

    width: 70px;
    height: 70px;
  }


  /* PAGE PHOTOS */

  .page-photos {
    padding: 40px 15px 0 15px;

    gap: 40px;
  }

  .page-photos .images-colonne2 {
    gap: 20px;
  }

  .page-photos .images-colonne2 h1 {
    width: 100%;

    flex: 0 0 100%;

    font-size: 1.8rem;

    margin-bottom: 15px;
  }


  /* PROGRAMMES */

  .programmes {
    width: 100%;

    margin-top: 40px;

    padding: 50px 15px;
  }

  .programmes .titre-ateliers {
    font-size: clamp(2rem, 6vw, 3.5rem);
  }

  .programmes > p {
    font-size: 1.2rem;
  }

}


/* =========================================================
   MOBILE : 650px
========================================================= */

@media (max-width: 650px) {

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

  .main-content {
    width: 100%;

    padding: 30px 0;

    display: flex;

    flex-direction: column;

    align-items: stretch;
  }


  /* =======================================================
     HEADER
  ======================================================= */

  .logo img {
    height: 70px;
  }

  .nav-links {
    flex-wrap: wrap;

    gap: 15px;
  }


  /* =======================================================
     HERO
  ======================================================= */

  .hero p {
    margin: 0 20px 40px 20px;

    font-size: 1rem;
  }


  /* =======================================================
     AUTRES BLOCS
  ======================================================= */

  .about-content,
  .programme-box,
  .petition-content {
    padding: 30px;
  }

  .btn {
    width: 100%;
  }

  .btn-social {
    width: 110px;

    min-height: 100px;
  }

  .texte-colonne {
    padding: 20px 15px;
  }

  .texte-colonne h2 {
    font-size: 1.6rem;

    line-height: 1.2;

    overflow-wrap: normal;

    word-break: normal;
  }


  /* =======================================================
     SLIDERS MOBILE
  ======================================================= */

  .slider,
  .slider2,
  .slider3,
  .slider4 {
    width: 100%;

    max-width: 100%;

    height: auto;

    aspect-ratio: 16 / 10;

    margin: 15px auto;

    border-radius: 15px;
  }


  /* =======================================================
     PAGE PHOTOS MOBILE
  ======================================================= */

  .page-photos {
    width: 100%;

    max-width: none;

    margin: 0;

    padding: 30px 0 0 0;

    gap: 35px;
  }


  /* =======================================================
     BLOCS IMAGES MOBILE
  ======================================================= */

  .page-photos .images-colonne2 {
    width: 100%;

    display: flex;

    flex-direction: column;

    align-items: stretch;

    justify-content: flex-start;

    gap: 15px;

    margin: 0;

    padding: 0;
  }


  /* =======================================================
     FOND ALTERNATIF MOBILE
     
     IMPORTANT :
     la classe ne modifie pas le fonctionnement
     du flex des images.
  ======================================================= */

  .page-photos .images-colonne2.fond-alternatif {
    background: var(--alternate-bg);

    border-radius: 20px;

    padding: 20px 0;
  }


  /* =======================================================
     TITRES MOBILE
  ======================================================= */

  .page-photos .images-colonne2 h1 {
    width: 100%;

    flex: none;

    margin: 0 0 15px 0;

    padding: 0 15px;

    box-sizing: border-box;

    text-align: center;

    font-size: clamp(1.8rem, 7vw, 2.5rem);

    line-height: 1.2;
  }


  /* =======================================================
     IMAGES MOBILE
  ======================================================= */

  .page-photos .images-colonne2 img {
    display: block;

    width: 100%;

    min-width: 0;

    max-width: none;

    height: auto;

    max-height: none;

    flex: none;

    margin: 0;

    border-radius: 0;

    object-fit: contain;
  }


  /* =======================================================
     BOUTONS PAGE PHOTOS
  ======================================================= */

  .page-photos .images-colonne2 .btn {
    width: calc(100% - 30px);

    max-width: none;

    flex: none;

    margin: 10px 15px 0 15px;

    box-sizing: border-box;
  }


  /* =======================================================
     PROGRAMMES MOBILE
  ======================================================= */

  .programmes {
    width: 100%;

    max-width: none;

    margin: 35px 0 0 0;

    padding: 40px 15px;

    box-sizing: border-box;
  }

  .programmes .titre-ateliers {
    width: 100%;

    max-width: none;

    margin: 0 auto 30px auto;

    padding: 0;

    text-align: center;

    font-size: clamp(1.9rem, 7vw, 2.8rem);

    line-height: 1.15;
  }

  .programmes > p {
    width: 100%;

    max-width: none;

    margin: 0 auto 30px auto;

    text-align: center;

    font-size: 1.1rem;

    line-height: 1.7;
  }

  .programmes .atelier-card {
    width: 100%;

    max-width: none;

    padding: 15px;

    margin: 0;

    box-sizing: border-box;
  }

  .programmes .btn-atelier {
    width: 100%;

    min-height: 80px;

    max-width: none;

    margin: 0;

    padding: 15px;

    box-sizing: border-box;

    font-size: 18px;

    line-height: 1.4;

    white-space: normal;
  }


  /* =======================================================
     TRANSPORT
  ======================================================= */

  .page-transport h1 {
    font-size: 2.8rem;
  }

  .page-transport p {
    font-size: 1.1rem;
  }

}