/* ======== 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;
  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: 1;
}
.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;
}
.intervenant img {
  transition: 0.3s ease;
}

.intervenant a:hover img {
  transform: scale(1.05);
}



.intervenant img {

  cursor: pointer;
}

.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: 48%;
  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: 5.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: 7rem; /* 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;
    
  }
}


@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: 3.5rem;   /* augmenté aussi ici */
  }
}

  .subtitle {
    font-size: 1.4rem;
  }


@media (max-width: 480px) {
  .programme-header {
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
  }
 @media (max-width: 480px) {
  .hero-text .title {
    font-size: 3.3rem; /* un peu plus grand mais toujours fluide */

  }
  .decor-left{
    margin-top: -100px;
  }
}

}
/* --- Décoration gauche --- */
.decor-left {
  position: absolute;
  left: -20px;
  bottom: 90px;
  width: 190px;
  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: 220px;     /* 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;
  }
}
/*ma responsive version pc --------*/

@media (max-width: 1025px) {

}

/* --- Responsive mobile moyen --- */
@media (max-width: 768px) {
  .decor-left {
    left: -10px;
    bottom: 15px;
    width: 110px;
   
  }

  .decor-right {
    right: 0;
    bottom: -10px;
    width: 130px;
  }
}

/* --- 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-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-image: url("images/Grille-44-44.png");
  background-repeat: repeat;
  background-size: cover;
  opacity: 0.11;               /* ajuste la visibilité */
  z-index: 10000;              /* au-dessus du header */
  pointer-events: none;        /* permet de cliquer à travers */
}
.grid-overlay {
  background-image:
    linear-gradient(to bottom, rgba(0, 0, 0, 0.5), 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 */
}

.title {

  font-family: 'URIAL';
  color: #F49717;
  font-size: 3.8rem;
  margin: 0;
  line-height: 1.1;
  text-transform: uppercase;
}
/*===  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: 100000; /* 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: 150px; /* 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 */
  }
}

/* ===== Section Programme ===== */
.programme {
  display: flex;
  justify-content: center;
  padding: 50px 20px;

  /* Fond avec image */
  background-image: url('images/bg_pro.png'); /* remplace par ton image */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative; /* pour overlay si nécessaire */
}



/* ===== Section Programme ===== */
.programme {
  display: flex;
  justify-content: center;
  padding: 50px 20px;
  background-image: url('images/bg_pro.png'); /* image de fond principale */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}





/* ===== Losange incliné derrière le texte ===== */
.jour-bg {
  position: relative;
  padding: 40px;
}


.text-wrapper {
  position: relative;
  z-index:1;
  text-align: justify;
  color: white;
}


/* Chaque jour */
.jour {
  margin-bottom: 25px;
}

.jour-title {
  display: block;
  color: #f9a825; /* jaune/orange */
  font-weight: bold;
  margin-bottom: 5px;
  font-size: 18px;
}

.jour p {
  font-size: 16px;
  line-height: 1.5;
  margin: 0;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .programme-container {
    width: 100%;
  }

  .jour-bg {
    padding: 25px 20px;
    transform: rotate(-2deg);
    font-family: "urial";
    font-weight: 600;
  }

  .text-wrapper {
    transform: rotate(2deg);
  }

  .jour-title {
    font-size: 16px;
    font-family: "urial";
    font-weight: 900;
  }

  .jour p {
    font-size: 14px;
    font-family: "urial";
  }
}
.jour p {
  font-size: 16px;
  line-height: 1.5;
  margin: 0;
  color: white;        /* force la couleur blanche */
  word-wrap: break-word; /* évite que le texte dépasse */
}

.jour-bg {
  position: relative;       /* conteneur relatif pour l'image */
  text-align: center;       /* centre le texte */
  padding: 40px 30px;       /* espace autour du texte */
  color: white;             /* texte lisible */
}

/* L'image comme arrière-plan décoratif */
.jour-bg .image-sous-texte {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-4deg);
  width: 100%;       /* occupe toute la largeur du conteneur */
  max-width: 1000px;  /* largeur maximale souhaitée */
  height: auto;
  z-index: 0;
  opacity: 0.4;
}


.text-wrapper {
  position: relative;
  z-index: 1;               /* texte au-dessus du losange */
}

/* Version PC : écrans ≥ 1025px */
@media (min-width: 1025px) {
  .jour-bg .image-sous-texte {
    width: 130%;          /* largeur double */
    max-width: none;
    height: auto;         /* garde les proportions naturelles */
    max-height: 1350px;    /* limite la hauteur pour ne pas être trop grand */
  }

  .text-wrapper {
    font-size: 2em;       /* double taille texte */
  }
}

/* Version PC (écrans ≥ 1025px) */
@media (min-width: 1025px) {
  .jour-title {
    font-size: 40px;  /* augmente le titre du jour */
    font-family: "urial";
    max-width: 600px;
    font-weight: 800;
  }

  .jour p {
    font-size: 30px;  /* augmente le texte du jour */
    line-height: 1.8;
    font-family: "urial";
    max-width: 700px;
  font-weight: bolder;
  }
}
/*media dimunition */
/*les intervenants fiii la commencé */
/* Fond de section identique à la précédente */


@media (max-width: 768px) {
  .programme-grid {
    display: grid;
    grid-template-columns: 1fr; /* 1 image par ligne */
    gap: 15px;                  /* espace entre les colonnes (ici inutile car 1 par ligne) */
    padding: 0 10px;
  }

  .programme-grid .jour img {
    width: 110%;          /* légèrement plus grand si nécessaire */
    height: auto;
    object-fit: cover;    /* garde le cadrage */
    margin-bottom: 15px;  /* marge en bas pour espacer les images */
    border-radius: 12px;  /* coins arrondis */
  }
}


.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-color: #001171;
  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;

}

.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;
 
  
}


.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 */
}



/* Titre au centre */
.inscription-title h2 {
  font-family: 'cardust', sans-serif;
  color: #ffffff;
  font-size: 4.5rem;
  text-align: center;
 font-weight: normal; /* évite que la graisse soit accentuée */
  -webkit-text-stroke: 0px; /* supprime tout éventuel contour ajouté par le navigateur */
  text-shadow: none; 
}

.inscription-form form {
  display: flex;           /* active flexbox */
  flex-direction: column;  /* empile verticalement les champs */
  gap: 30px;               /* espace entre chaque champ */
  width: 100%;
  margin-right: 50px;
}

.inscription-form input {
  width: 100%;             /* prend toute la largeur disponible */
  padding: 12px 15px;
  border-radius: 10px;
  border: none;
  background: rgba(255,255,255,0.2);
  color: #fff;
  font-size: 16px;
  outline: none;
  margin-right: 40px;
}

.inscription-form input::placeholder {
  color: #e0e0e0;
}

.inscription-form .btn {
  padding: 12px;
  border-radius: 10px;
  border: none;
  background: linear-gradient(90deg, #ff6f61, #ff8a5c);
  color: #fff;
  font-weight: bold;
  cursor: pointer;
}
.inscription-center {
  display: flex;
  flex-direction: column; /* empile titre + boutons */
  align-items: center;
  gap: 30px; /* espace entre le titre et les boutons */
}

.inscription-buttons {
  display: flex;
  flex-direction: column; /* boutons empilés verticalement */
  gap: 15px; /* espace entre les deux boutons */
}
.inscription-buttons .btn-figma:first-child img {
  width: 200px; /* bouton 1 */
}

.inscription-form input {
  width: 100%;
  padding: 18px 20px;
  border-radius: 12px;
  border: none;
  background: rgba(255,255,255,0.25);
  color: #fff;
  font-size: 18px;
  outline: none;
  margin-bottom: 10px; /* espace entre les champs */
}

.inscription-form input::placeholder {
  color: #e0e0e0;
}

.inscription-buttons .btn-figma:last-child img {
  width: 200px; /* bouton 2 plus large */
}

.btn-figma {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.btn-figma img {
  width: 150px; /* ajuste la taille des boutons */
  height: auto;
  transition: transform 0.3s ease;
}

.btn-figma:hover img {
  transform: scale(1.05);
}

/* Responsive============================================================================ */
@media (max-width: 900px) {
  .inscription-wrapper {
    flex-direction: column;
    align-items: center;
    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 */
}



/* Titre au centre============================================================================== */
.inscription-title h2 {
  font-family: 'cardust', sans-serif;
  color: #ffffff;
  font-size: 4.5rem;
  text-align: center;
 font-weight: normal; /* évite que la graisse soit accentuée */
  -webkit-text-stroke: 0px; /* supprime tout éventuel contour ajouté par le navigateur */
  text-shadow: none;margin-right: 9px;
}

.inscription-form form {
  display: flex;           /* active flexbox */
  flex-direction: column;  /* empile verticalement les champs */
  gap: 30px;               /* espace entre chaque champ */
  width: 100%;
  margin-right: 100px;
  margin-top: 100px;
}

.inscription-form input {
  width: 100%;             /* prend toute la largeur disponible */
  padding: 12px 15px;
  border-radius: 10px;
  border: none;
  background: rgba(255,255,255,0.2);
  color: #fff;
  font-size: 16px;
  outline: none;
  margin-right: 50px;
}

.inscription-form input::placeholder {
  color: #e0e0e0;
}

.inscription-form .btn {
  padding: 12px;
  border-radius: 10px;
  border: none;
  background: linear-gradient(90deg, #ff6f61, #ff8a5c);
  color: #fff;
  font-weight: bold;
  cursor: pointer;
}
.inscription-center {
  display: flex;
  flex-direction: column; /* empile titre + boutons */
  align-items: center;
  gap: 30px; /* espace entre le titre et les boutons */
}

.inscription-buttons {
  display: flex;
  flex-direction: column; /* boutons empilés verticalement */
  gap: 15px; /* espace entre les deux boutons */
}
.inscription-buttons .btn-figma:first-child img {
  width: 200px; /* bouton 1 */
}

.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; /* espace entre les champs */
}

.inscription-form input::placeholder {
  color: #e0e0e0;
}

.inscription-buttons .btn-figma:last-child img {
  width: 200px; /* bouton 2 plus large */
}

.btn-figma {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.btn-figma img {
  width: 150px; /* ajuste la taille des boutons */
  height: auto;
  transition: transform 0.3s ease;
}

.btn-figma:hover img {
  transform: scale(1.05);
}

/* Responsive ========================================================================*/
@media (max-width: 900px) {
  .inscription-wrapper {
    flex-direction: column;
    align-items: flex-start;
    gap: 40px;
  }
  .inscription-form {
    width: 100%;
    min-width: unset;
  }
}
/*le footer ========================================================================================*/
.footer {
  padding: 30px 5%;
  background: #001485;
  color: #fff;
  text-align: center;
}

.programme {
  padding: 60px 5%;
  background-color: #f5f5f5;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.programme-title {
  font-size: 2.5em;
  margin-bottom: 40px;
  color: #222;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.programme-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  justify-content: center;
  position: relative;
  z-index: 1;
  padding-top: 0; /* ajusté pour PC */
}

.jour {
  position: relative;
  cursor: pointer;
  border-radius: 20px;
  opacity: 0;
  transform: translateY(40px);
  transition: transform 0.3s ease, opacity 0.3s ease;
  aspect-ratio: 10 / 9;
  overflow: visible; /* permet à l’image de dépasser du cadre */
  margin: 0;
}

.jour img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
  transition: transform 0.6s ease, box-shadow 0.6s ease, z-index 0.3s;
  transform-origin: center;
  will-change: transform;
  image-rendering: -webkit-optimize-contrast; /* Safari/Chrome */
  image-rendering: crisp-edges; /* Firefox */
  backface-visibility: hidden;
  transform: translateZ(0); /* améliore le rendu GPU */
}

/* Zoom visible au hover sur PC */
@media (min-width: 1024px) {
  .jour:hover {
    z-index: 10; /* l’image passe au-dessus des autres */
  }
  .jour:hover img {
    transform: scale(1.4);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
    border-radius: 10px;
  }

  .programme-grid:hover .jour:not(:hover) img {
    filter: brightness(65%) blur(2px);
    transform: scale(0.95);
  }
}

/* Apparition au scroll */
.jour.show {
  opacity: 1;
  transform: translateY(0);
  transition: transform 0.8s ease-out, opacity 0.8s ease-out;
}

/* Version mobile */
@media (max-width: 768px) {
  .jour {
    width: 100%;        /* prend toute la largeur */
    aspect-ratio: auto; /* laisse la hauteur s’adapter à l’image */
    margin: 0;          /* supprime tout espace supplémentaire */
    margin-bottom: -300px;
  }

  .jour img {
    width: 100%;
    height: auto;       /* conserve les proportions naturelles */
    transform: none;
    border-radius: 15px;
  }

  .programme-grid {
    row-gap: 10px;      /* espace réduit entre les images */
    grid-template-columns: 1fr;
  }
}
/* Corrige le centrage du hero sur téléphone */
@media (max-width: 480px) {
  .hero-text {
    text-align: center !important;
    width: 100%;
  }

  .hero-text .title {
    margin: 0 auto;
  }

  .hero-text .subtitle {
    margin: 0 auto;
  }
}
@media (max-width: 480px) {
  /* Centrer le logo et les liens */
  .inscription-logo {
    align-items: center;
    text-align: center;
    width: 100%;
  }

  .inscription-logo img {
    margin-left: 0;   /* supprime la marge fixe */
    margin-top: 20px; /* petit espace au-dessus */
  }

  .logo-links {
    align-items: center;
    text-align: center;
    width: 100%;
    gap: 10px; /* un peu d’espace entre les liens */
  }

  .logo-links a {
    margin-left: 0; /* supprime la marge fixe */
    display: inline-block;
  }

  /* Déplacement subtil des derniers liens */
  .logo-links a:last-child {
    transform: translateX(-10px);
  }
  .logo-links a:nth-last-child(2) {
    transform: translateX(-5px);
  }
}



