/* ======== POLICES ======== */
@font-face {
  font-family: 'cardust' ;
  src: url('police/Cardust-Regular.woff2') format('woff2'),
       url('police/Cardust-Regular.ttf') format(truetype);
  font-weight: normal;
  font-style: normal;
}
@font-face {
  font-family: 'URIAL';
  src: url('police/URIAL\ FONT\ Light.ttf') format('truetype'),
       url('police/URIAL\ FONT\ Regular.woff2') format('woff2') ;
  font-weight: normal;
  font-style: normal;
}

/* ======== STRUCTURE ======== */
body, html {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

.hero-programme {
  position: relative;
  z-index: 1;
  height: 100vh;
  color: #fff;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

/* ======== DÉCORS ======== */
.decor {
  position: absolute;
  z-index: 5;
}
.decor-left {
  left: 3%;
  bottom: 12%;
  width: 90px;
}
.decor-right {
  right: 0;
  bottom: 0;
  width: 130px;
}

/* ======== HEADER ======== */
.programme-header {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
}

.logos img {
  height: 60px;
  margin-right: 15px;
}

.navbar ul {
  display: flex;
  gap: 40px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.navbar a {
  font-family: "Cardust", sans-serif;
  color: #fff;
  font-size: 1rem;
  text-decoration: none;
  transition: color 0.3s;
}

.navbar a.active,
.navbar a:hover {
  color: #f5a300;
}

.social-icons {
  display: flex;
  gap: 15px;
}
.social-icons img {
  width: 26px;
  height: 26px;
}

/* ======== HAMBURGER ======== */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 32px;
  height: 24px;
  background: #0077b6;
  border: none;
  border-radius: 5px;
  padding: 5px;
  cursor: pointer;
  z-index: 1001;
  top: 10px;
}
.hamburger span {
  display: block;
  height: 3px;
  width: 100%;
  background: #fff;
  border-radius: 3px;
  transition: all 0.4s ease;
}
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}




/* ======== MENU MOBILE ======== */
.mobile-menu {
  position: fixed;
  top: 100px;
  bottom: 60px;
  right: -300px;
  width: 250px;
  background: #001485;
  border-radius: 10px;
  padding: 25px;
  display: flex;
  flex-direction: column;
  gap: 25px;
  transition: right 0.4s ease;
  z-index: 1000;
box-shadow:-2px 0 10px rgba(232, 194, 4, 0.2) ; 
}
.mobile-menu.show {
  right: 15px;
}
.mobile-menu a {
  color: #fff;
  font-weight: bold;
  font-family: "Cardust", sans-serif;
  text-decoration: none;
  font-size: 18px;
}
.mobile-menu a:hover{
  color: #F49717;
}

.mobile-menu .mobile-socials {
  display: flex;
  gap: 10px;
  margin-top: auto;
}
.mobile-menu .mobile-socials img {
  width: 26px;
}

/* ======== TEXTE CENTRAL ======== */
.hero-text {
  position: relative;
  z-index: 2;
  text-align: center;
  top: 58%;
  transform: translateY(-50%);
}

.subtitle {
  font-family: "Cardust", sans-serif;
  font-size: 1.8rem;
  letter-spacing: 2px;
  margin: 0 0 15px;
  color: #fff;
}
.title {
  font-family: "Urial", sans-serif;
  color: #F49717;
  font-size: 2.5rem;   /* + augmenté ici */
  margin: 0;
  line-height: 1.1;
  text-transform: uppercase;
}

.title span {
  display: block;
}

/* ======== RESPONSIVE ======== */

/* Taille du texte "Programme" uniquement sur ordinateur */
@media (min-width: 1025px) {
  .hero-text .title {
    font-size: 5rem; /* choisis la taille que tu veux (ex : 4.8rem, 5rem...) */


  }
   .hero-text .subtitle {
    font-size: 2.8rem; /* choisis la taille que tu veux (ex : 4.8rem, 5rem...) */
    font-weight: normal;
   margin-top: -170px;
  }
}

.active{
  color: #F49717;
}
@media (max-width: 1024px) {
  .programme-header {
    padding: 15px 30px;
  }

}

@media (max-width: 768px) {
  .navbar ul {
    display: none;
  }
  .hamburger {
    display: flex;
  }

  .hero-text .title {
    font-size: 2rem;   /* augmenté aussi ici */

    
  }
    .subtitle {
    font-size: 1.8rem;margin-top: -50px;
 
  }
  .decor-left {
  max-width: 150px;
  width: 45%;
}
  .decor-right {
  max-width: 150px;
  width: 50%;
}


}





/* --- Décoration gauche --- */
.decor-left {
  position: absolute;
  left: -20px;
  bottom: 90px;
  width: 170px;
  z-index: 1;
  transition: all 0.5s ease;
}

/* --- Décoration droite --- */
.decor-right {
  position: absolute;
  right: -40px;     /* dépasse un peu à droite */
  bottom: -30px;    /* légèrement plus bas */
  width: 200px;     /* taille augmentée */
  z-index: 1;
  transition: all 0.5s ease;
}

.decor-left:hover,
.decor-right:hover {
  transform: scale(1.05);
}

/* --- Responsive tablette --- */
@media (max-width: 1024px) {
  .decor-left {
    left: -15px;
    bottom: 25px;
    width: 100px;
  }

  .decor-right {
    right: -20px;
    bottom: 15px;
    width: 190px;
  }
}

/* --- Responsive mobile moyen --- */
@media (max-width: 768px) {
  .decor-left {
    left: -10px;
    bottom: 15px;
    width: 900px;
   
  }

  .decor-right {
    right: 0;
    bottom: -10px;
    width: 90px;
  }
}

/* --- Responsive petit mobile --- */
@media (max-width: 480px) {
  .decor-left {
    left: -5px;
    bottom: 5px;
    width: 70px;
  }

  .decor-right {
    right: 10px;
    bottom: 0;
    width: 100px;
  }
}
@font-face {
  font-family: 'URIAL';
  src: url('police/URIAL\ FONT\ Light.ttf') format('truetype'),
       url('police/URIAL\ FONT\ Regular.woff2') format('woff2') ;
  font-weight: normal;
  font-style: normal;
}
/* sama grille bi mongui niii*/

.grid-overlaye{
    position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-image: url("images/Grille-44-44.png");
  background-repeat: repeat;
  background-size: cover;    /*faire d'une sorte que ça s'arrete pas */
  opacity: 0.07;               /* ajuste la visibilité */
  z-index: 5;              /* au-dessus du header */
  pointer-events: none;        /* permet de cliquer à travers */
}
.grid-overlaye {
  background-image:
    linear-gradient(to bottom, rgba(0, 0, 0, 0.2), transparent 50%),
    url("images/Grille-44-44.png");
}
.navbar a.active {
  color: #F49717; /* orange vif */
  font-weight: bold;
}
/* page-transition.css */
#page-transition {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #fff; /* couleur de fondu, blanc ou autre */
  z-index: 9999;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease;
}
#page-transition.active {
  opacity: 1;
  pointer-events: all;
}


/* Le header doit être au-dessus de la grille */
.header {
  position: relative;
  z-index: 10; /* plus haut que la grille */
}

/*===  le header que j'ai changé */

header {
  position: fixed !important;
  top: 0;
  left: 0;
  width: 100%;
  height: 150px; /* même hauteur que ton design */
  background: #001171;
  z-index: 1000 !important; /* reste au-dessus de tout */
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 5%;
  box-sizing: border-box;
}

/* === Empêche le contenu d'être caché sous le header === */
body {
  padding-top: 50px; /* même hauteur que ton header */
}





/* Logo */
header .logo {
  font-size: 24px;
  color: #fff;
  font-family: "urial";
}

/* Menu PC */
.navbar ul {
  display: flex;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.navbar ul li a {
  color: #fff;
  text-decoration: none;
  font-family: "urial";
  font-size: 20px;
}
.navbar ul li a:hover {
  font-family: "cardust";
}

/* Réseaux sociaux PC */
header .social-icons {
  display: flex;
  gap: 15px;
}

header .social-icons a img {
  width: 24px;
  height: 24px;
  max-width: 100%; /* empêche dépassement */
}

/* Hamburger bouton */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 22px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;
}

.hamburger span {
  display: block;
  height: 3px;
  width: 130%;
  background: #ffffff;
  border-radius: 3px;
  transition: all 0.4s ease;
 

}

/* Animation croix */
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Menu desktop */
.navbar ul {
  display: flex;
  gap: 20px;
  list-style: none;
  transition: transform 0.5s ease;
}

/* Mobile */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .navbar ul {
    position: fixed;
    top: 0;
    right: -300px;        /* hors écran au départ */
    height: 100vh;
    width: 250px;
    flex-direction: column;
    background: #ffffff;
    padding-top: 80px;
    gap: 30px;
    transform: translateX(0);
    transition: right 0.5s ease; /* animation du menu */
    box-shadow: -2px 0 10px rgba(0,0,0,0.2);
  }

  .navbar ul.show {
    right: 0;              /* glisse de la droite vers la gauche */
  }
}



/*le footer ========================================================================================*/
.footer {
  padding: 30px 5%;
  background: #011169;
  color: #fff;
  text-align: center;
}
.footer img {
  margin-left: 600px;
}

/* ======== GALERIE ÉDITIONS ======== */
.edition-gallery {
  background-color: #001171;
  padding: 60px 5%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  justify-content: center;
  align-items: center;
  z-index: 10000 !important;
}


/* Élément photo */
.edition-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
}

.edition-item img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
  transition: transform 0.4s ease;
}

.edition-item:hover img {
  transform: scale(1.03);
}

/* Ruban (bouton sur image) */
.ribbon {
  position: absolute;
  bottom: 15px;
  left: 15px;
  background-color: #F49717;
  color: #fff;
  font-family: "Urial", sans-serif;
  font-size: 1.3rem;
  padding: 6px 15px;
  border-radius: 3px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.ribbon:hover {
  background-color: #ffb13e;
  transform: scale(1.05);
}

/* === Position spéciale (version PC seulement) === */
@media (min-width: 1025px) {
  .edition-item:nth-child(1) {
    grid-column: 1 / 2;
    grid-row: 1 / 3;
    
  }
  .edition-item:nth-child(2) { grid-column: 2 / 3; grid-row: 1 / 2; }
  .edition-item:nth-child(3) { grid-column: 3 / 4; grid-row: 1 / 2; }
  .edition-item:nth-child(4) { grid-column: 2 / 3; grid-row: 2 / 3; }
  .edition-item:nth-child(5) { grid-column: 3 / 4; grid-row: 2 / 3; }
}

/* === TABLETTE (2 colonnes) === */
@media (max-width: 1024px) {
  .edition-gallery {
    grid-template-columns: repeat(2, 1fr);
    
  }
  .edition-item {
    grid-column: auto;
    grid-row: auto;
  }
}

/* === MOBILE (1 colonne) === */
@media (max-width: 600px) {
  .edition-gallery {
    grid-template-columns: 1fr;
  }
  .ribbon {
    font-size: 1rem;
    bottom: 10px;
    left: 10px;
    padding: 5px 10px;
  }
}
/* ======== ANIMATIONS FLUIDES ======== */

/* --- Apparition progressive du header --- */
header {
  animation: fadeDown 1s ease-out forwards;
  opacity: 0;
}

@keyframes fadeDown {
  from {
    transform: translateY(-40px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* --- Apparition du texte central --- */
.hero-text {
  animation: fadeUp 1.2s ease-out forwards;
  opacity: 0;
  animation-delay: 0.6s;
}

@keyframes fadeUp {
  from {
    transform: translateY(40px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* --- Animation des décorations --- */
.decor-left {
  opacity: 0;
  animation: slideInLeft 1.5s ease-out forwards;
  animation-delay: 1s;
}
.decor-right {
  opacity: 0;
  animation: slideInRight 1.5s ease-out forwards;
  animation-delay: 1s;
}

@keyframes slideInLeft {
  from {
    transform: translateX(-60px) scale(0.9);
    opacity: 0;
  }
  to {
    transform: translateX(0) scale(1);
    opacity: 1;
  }
}

@keyframes slideInRight {
  from {
    transform: translateX(60px) scale(0.9);
    opacity: 0;
  }
  to {
    transform: translateX(0) scale(1);
    opacity: 1;
  }
}

/* --- Animation douce du fond (zoom subtil) --- */
.hero-bg {
  animation: slowZoom 15s ease-in-out infinite alternate;
}

@keyframes slowZoom {
  from { transform: scale(1); }
  to { transform: scale(1.05); }
}

/* --- Apparition fluide des images au scroll --- */
.edition-item {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease-out;
}

/* Quand elles deviennent visibles */
.edition-item.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Effet flottant léger sur les décorations --- */
.decor-left,
.decor-right {
  animation: float 4s ease-in-out infinite alternate;
}

@keyframes float {
  from { transform: translateY(0px); }
  to { transform: translateY(-8px); }
}
.edition-item {
  opacity: 1 !important;
  transform: none !important;
}
/* ==== DÉCORATIONS ANIMÉES FLUIDES ==== */
.decor-left,
.decor-right {
  position: absolute;
  opacity: 0; /* elles apparaissent en fondu */
  z-index: 50;
  will-change: transform, opacity; /* optimise les perfs */
}

/* Apparition et mouvement continu */
@keyframes slideInLeft {
  0% {
    transform: translateX(-80px) scale(0.9);
    opacity: 0;
  }
  100% {
    transform: translateX(0) scale(1);
    opacity: 1;
  }
}

@keyframes slideInRight {
  0% {
    transform: translateX(80px) scale(0.9);
    opacity: 0;
  }
  100% {
    transform: translateX(0) scale(1);
    opacity: 1;
  }
}

/* Flottement vertical */
@keyframes float {
  0% { transform: translateY(0); }
  100% { transform: translateY(-10px); }
}

/* Application concrète */
.decor-left {
 
  bottom: 12%;
  width: 190px;
  animation: slideInLeft 1.5s ease-out forwards, float 4s ease-in-out 1.5s infinite alternate;
}

.decor-right {
  right: 2%;
  bottom: 8%;
  width: 200px;
  animation: slideInRight 1.5s ease-out forwards, float 4s ease-in-out 1.5s infinite alternate;
}

/* ==== AJUSTEMENT ESPACE ENTRE HEADER ET TEXTE ==== */

/* Si ton texte est dans une section hero */
.hero {
  margin-top: -100px;          /* supprime marge inutile */
  padding-top: 80px;      /* espace confortable sous le header */
  min-height: auto;       /* retire la hauteur fixe si elle existe */
}

/* Si le header avait trop de padding */
header {
  padding-bottom: 10px;   /* réduit la hauteur du header */
  margin-bottom: 0;       /* empêche l’écart sous le header */
}

/* Si le premier titre avait trop d’espace */
.hero h1,
.hero p {
  margin-top: -50px;
  padding-top: 0;
}
@media (max-width: 768px) {
  .hero {
    padding-top: 60px; /* réduit encore sur mobile */
  }
}
body {
  padding-top: 80px; /* réduit la marge au-dessus du texte */
  padding-bottom: 50px;
}
@media (max-width: 768px) {
  .hero-text {
    top: 40%;
  }
}
@media (max-width: 992px) {
  .edition-gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px; /* espace plus petit sur tablette */
  }

  /* Ajuste la première image pour qu’elle prenne deux lignes */
  .edition-item:nth-child(1) {
    grid-column: 1 / 3; /* occupe les 2 colonnes */
    grid-row: 1 / 3;    /* occupe 2 rangées */
  }
  .edition-item:nth-child(1) img {
  width: 100%;         
  height: auto;        
  object-fit: cover;   
  aspect-ratio: 16/9;  
}


  /* Les autres images s’adaptent automatiquement */
  .edition-item:nth-child(2) { grid-column: auto; grid-row: auto; }
  .edition-item:nth-child(3) { grid-column: auto; grid-row: auto; }
  .edition-item:nth-child(4) { grid-column: auto; grid-row: auto; }
  .edition-item:nth-child(5) { grid-column: auto; grid-row: auto; }
}
@media (max-width: 600px) {
  .edition-gallery {
    grid-template-columns: 1fr; /* 1 colonne = 1 image par ligne */
  }
  .edition-item:nth-child(1) {
    grid-column: auto;
    grid-row: auto;
  }
}




.inscription {
  background-image: url('images/fondins.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 80px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* WRAPPER */
.inscription-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1300px;
  width: 100%;
  gap: 10px;
  background-color: #001171;
  padding: 40px 30px 60px 30px;
  border-radius: 20px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

/* LOGO */
.inscription-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 40px;
  gap: 15px;
}

.inscription-logo img {
  display: block !important;
  margin: 0 !important;
  align-self: center !important;
  max-width: 150px;
  height: auto;
}

/* LIENS */
.logo-links {
  display: flex;
  flex-direction: column;
  align-items: center; /* CENTRE les liens */
  gap: 15px;
}

.logo-links a {
  color: #ffffff;
  text-decoration: none;
  font-size: 30px;
  transition: all 0.3s ease;
  font-weight: 900;
  line-height: 1.4;
  text-align: center;
  font-family: "urial";
  margin-top: 10px;
}

.logo-links a:hover {
  color: #F49717;
  font-family: "cardust";
}

/* BOUTON FIGMA FORM */
.btn-figma-form {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
}

.btn-figma-form img {
  width: 150px;
  height: auto;
  max-width: 100%;
  transition: transform 0.3s ease;
}

.btn-figma-form:hover img {
  transform: scale(1.05);
}

/* TITRE */
.inscription-title h2 {
  font-family: 'cardust', sans-serif;
  color: #ffffff;
  font-size: 4.5rem;
  text-align: center;
  font-weight: normal;
  -webkit-text-stroke: 0px;
  text-shadow: none;
  margin-top: 45px;
}

/* FORMULAIRE */
.inscription-form form {
  display: flex;
  flex-direction: column;
  gap: 30px;
  width: 100%;
  margin-right: 100px;
  margin-top: 100px;
}

.inscription-form input {
  width: 100%;
  padding: 15px 10px;
  border-radius: 12px;
  border: none;
  background: rgba(255,255,255,0.25);
  color: #fff;
  font-size: 18px;
  outline: none;
  margin-bottom: 10px;
}

.inscription-form input::placeholder {
  color: #e0e0e0b6;
}

.inscription-form .btn {
  padding: 12px;
  border-radius: 10px;
  border: none;
  background: linear-gradient(90deg, #ff6f61, #ff8a5c);
  color: #fff;
  font-weight: bold;
  cursor: pointer;
}

/* BOUTONS */
.inscription-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

.inscription-buttons {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.btn-figma {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.btn-figma img {
  width: 150px;
  height: auto;
  transition: transform 0.3s ease;
}

.btn-figma:hover img {
  transform: scale(1.05);
}

.inscription-buttons .btn-figma:first-child img {
  width: 200px;
}

.inscription-buttons .btn-figma:last-child img {
  width: 200px;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .inscription-wrapper {
    flex-direction: column;
    align-items: flex-start;
    gap: 40px;
  }
  .inscription-form {
    width: 100%;
    min-width: unset;
  }
}

.inscription {
  background-image: url('images/fondins.png'); /* ton image de fond */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 80px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.inscription-wrapper {
  display: flex;
  align-items: flex-start; /* aligne les éléments en haut pour laisser de la place */
  justify-content: space-between;
  max-width: 1300px; /* plus large pour allonger horizontalement */
  width: 100%;
  gap: 10px;
  background: rgba(0,0,0,0.4); /* semi-transparent pour lisibilité */
  padding: 40px 30px 60px 30px; /* padding plus grand en bas */
  border-radius: 20px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

/* Logo et liens */
.inscription-logo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

.inscription-logo img {
  max-height: 100px;
  width: auto;
 
  margin-top: 50px;
}

.logo-links {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.logo-links a {
  color: #ffffff;
  text-decoration: none;
  font-size: 30px;
  transition: all 0.3s ease;
  font-weight: 900;
  line-height: 1.4;
  
  font-family: "urial";
  margin-top: 10px;
  
}

.logo-links a:hover {
  color: #F49717;
  font-family: "cardust";
}
.btn-figma-form {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
}

.btn-figma-form img {
  width: 150px;       /* conserve la taille de ton bouton Figma */
  height: auto;
  max-width: 100%;   /* s’adapte sur mobile */
  transition: transform 0.3s ease;
}

.btn-figma-form:hover img {
  transform: scale(1.05); /* léger effet au survol */
}

