/* ===========================
   VARIABLES (si tu veux SCSS plus tard)
=========================== */
:root {
  --main-green: #006b4f;
  --light-green: #7cac9d;
  --dark: #333;
  --light: #f8f9fa;
}

/* ===========================
   GLOBAL
=========================== */
body {
  font-family: 'Inter', sans-serif;
  color: var(--dark);
  background-color: #fff;
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-weight: 700;
  color: var(--main-green);
}

p {
  color: #555;
}

/* ===========================
   NAVBAR
=========================== */
.navbar {
  padding: 1rem 0;
  background: #fff;
  border-bottom: 2px solid var(--light);
}

.navbar .nav-link {
  font-weight: 500;
  margin-right: 1rem;
  color: var(--main-green) !important;
  transition: color 0.3s ease;
}

.navbar .nav-link:hover {
  color: var(--light-green) !important;
}

.navbar .dropdown-menu a.dropdown-item:hover {
  background-color: #7cac9d;
  color: #fff;
}

.navbar-brand img {
  height: 100px;       /* ajuste à la taille souhaitée */
  width: auto;        /* conserve les proportions */
}

/* ===========================
   HERO
=========================== */
header {
  background: var(--light);
  padding: 3rem 0;
}

header h1 {
  color: var(--main-green);
}

header .btn {
  background: var(--main-green);
  border: none;
  border-radius: 30px;
  padding: 0.8rem 1.8rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

header .btn:hover {
  background: var(--light-green);
  color: #fff;
}

header::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgba(0, 0, 0, 0.4); /* sombre semi-transparent */
  z-index: 1;
}
header .container {
  position: relative;
  z-index: 2; /* texte au-dessus de l'overlay */
}

/* CSS pour le Hero responsive */
.hero-video {
  width: 100%;
  max-height: 300px; /* Desktop */
  object-fit: contain;
  border-radius: 0.5rem;
  transition: transform 0.5s ease, filter 0.5s ease;
}

/* Légère mise en avant au hover */
.hero-video:hover {
  transform: scale(1.03);
  filter: brightness(1.05);
}

/* Animation au scroll */
.hero-video {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.hero-video.visible {
  opacity: 1;
  transform: translateY(0);
}


/* ===========================
   CHIFFRES CLÉS (corrigé contraste)
=========================== */
section.bg-primary {
  background: var(--main-green) !important;
  color: #fff;
  padding: 2rem 0;
}

section.bg-primary h2 {
  font-size: 2.5rem;
  font-weight: 800;
  color: #fff; /* Chiffres bien visibles */
}

section.bg-primary p {
  color: var(--light-green); /* Texte explicatif en vert clair */
  font-size: 1.1rem;
}


/* ===========================
   3 BLOCS
=========================== */
.card, .p-4.shadow {
  border-radius: 16px;
  background: #fff;
  transition: all 0.3s ease;
}

.card:hover, .p-4.shadow:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.btn-outline-primary {
  border: 2px solid var(--main-green);
  color: var(--main-green);
  border-radius: 30px;
  transition: all 0.3s ease;
}

.btn-outline-primary:hover {
  background: var(--light-green);
  border-color: var(--light-green);
  color: #fff;
}

/* ===========================
   ACTUALITES
=========================== */
.card img {
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
}

.card-title {
  color: var(--main-green);
}

.custom-footer {
  background-color: #006b4f; /* vert foncé */
  color: #fff !important;
  padding: 2rem 0;
  margin-top: 2rem;
}

.custom-footer h5 {
  font-weight: 600;
  margin-bottom: 1rem;
  color: #fff;
}

.custom-footer p,
.custom-footer a {
  color: #fff !important;
  text-decoration: none;
  transition: color 0.3s ease;
}

/* Icônes réseaux sociaux */
.custom-footer a i {
  background-color: #7cac9d; /* vert clair */
  color: #006b4f;            /* icône vert foncé */
  border-radius: 50%;        /* cercle */
  padding: 10px;
  margin-right: 8px;
  transition: all 0.3s ease;
}

.custom-footer a i:hover {
  background-color: #fff;   /* cercle blanc au hover */
  color: #006b4f;           /* icône vert foncé */
}


/* ===========================
   BOUTONS PERSONNALISÉS
=========================== */
.btn-primary {
  background-color: #006b4f !important; /* vert foncé */
  border-color: #006b4f !important;
  color: #fff !important;
  font-weight: 600;
  transition: all 0.3s ease;
  border-radius: 50px; /* arrondi moderne */
  padding: 0.6rem 1.5rem;
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: #7cac9d !important; /* vert clair */
  border-color: #7cac9d !important;
  color: #fff !important;
}

.text-justified {
  text-align: justify;
}

.same-size {
  width: 100%;      /* Remplit la colonne */
  height: auto;
  max-height: 700px;     /* Conserve le ratio d'origine */ 
  object-fit: contain; /* Evite que l'image soit rognée */
}

.tableau-wrapper {
  display: flex;
  justify-content: center;
}

.tableau-consortium img {
  max-width: 200px;
  height: auto;
}

.case {
  width: 80%;
  height: 80%;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #ffffff;
  border-radius: 5px;
  transition: box-shadow 0.3s ease-in-out, transform 0.3s ease-in-out;
}

.case:hover {
  background-color: #ffffffa3;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  transform: scale(1.05);
}

.case:active { 
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  transform: scale(0.95);
}

.gallery-peri {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
}

.case-peri1 {
  max-width: 800px;
  background: #f9f9f9;
  padding: 20px 30px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.case-peri1 h2 {
  color: #7cac9d;
  font-size: 1.5rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.case-peri1 p {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.case-peri1 ul {
  padding-left: 20px;
}

.case-peri1 li {
  margin-bottom: 0.5rem;
}

.gallery-peri {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin-bottom: 2rem;
}

.case-peri {
  flex: 1 1 400px;
  max-width: 600px;
  background: #f9f9f9;
  padding: 20px 30px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.case-peri h2 {
  color: #7cac9d;
  font-size: 1.5rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.case-peri p {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.case-peri ul {
  padding-left: 20px;
  margin-bottom: 1rem;
}

.case-peri li {
  margin-bottom: 0.5rem;
}

.video-container {
  position: relative;
  width: 100%;
  max-width: 800px; /* largeur max de la vidéo */
  margin: 40px auto; /* centrage */
  padding-bottom: 56.25%; /* ratio 16:9 */
  height: 0;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 12px;
}

/* Container en grille avec marges */
.contents {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    padding: 20px;
    max-width: 900px;  /* largeur max du tableau */
    margin: 0 auto;    /* centrer horizontalement */
}

/* Images avec taille uniforme */
.contents img {
    width: 100%;
    height: 150px;          /* même hauteur pour toutes */
    object-fit: contain;      /* découpe pour garder le ratio et remplir */
    cursor: pointer;
    transition: transform 0.5s ease, opacity 0.5s ease;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Effet zoom/fondu au clic */
.contents img.zoomed {
    transform: scale(6);
    z-index: 10;
    position: relative;
}

/* Overlay pour mobile */
#overlay {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.6);
    justify-content: center;
    align-items: center;
    z-index: 100;
}

#overlay img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.3);
    transition: transform 0.5s ease, opacity 0.5s ease;
    transform: scale(1);
}

/* Titres */
.titreform {
    text-align: center;
    margin-bottom: 10px;
    font-size: 1.2em;
}
.Cliquef h1 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.5em;
}

/* Grille des formations */
.grilleformation {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

/* Liens / blocs images */
.grilleformation a {
    text-align: center;
    text-decoration: none;
    color: inherit;
}

/* Images */
.grilleformation img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.5s ease, opacity 0.5s ease;
    cursor: pointer;
}

/* Style pour l'image du footer */
.footer-logo {
	background-color: #ffffff;
    text-align: center; /* centre horizontalement */
    margin-top: 20px;   /* espace au-dessus */
}

.footer-logo img {
    width: 100%;         /* ou un pourcentage si tu veux responsive */
    height: auto;       /* garde le ratio */
}

.carousel-inner img {
    max-width: 80%;
    height: auto;
    margin: 0 auto;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.broch {
    text-align: center;
    margin-top: 20px;
}

.bouton-telechargement2 {
    max-width: 150px;
    width: 30%;
    height: auto;
    cursor: pointer;
}

.carousel-inner .carousel-item {
    transition: transform 1s ease, opacity 1s ease;
}

.carousel-inner .carousel-item.active .carousel-img {
    transform: scale(1.05);
    opacity: 1;
}

.carousel-inner .carousel-img {
    max-width: 80%;
    height: auto;
    margin: 0 auto;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transform: scale(0.95);
    opacity: 0.8;
    transition: transform 1s ease, opacity 1s ease;
}

/* Bouton téléchargement */
.broch {
    text-align: center;
    margin-top: 20px;
}

.bouton-telechargement2 {
    max-width: 150px;
    width: 30%;
    height: auto;
    cursor: pointer;
}

.logo-uniforme {
  max-height: 100px;      /* même hauteur pour tous les logos */
  width: auto;            /* largeur automatique pour garder les proportions */
  object-fit: contain;    /* ajuste l’image sans la déformer */
  display: block;         /* pour éliminer les espaces bas */
  margin: 0 auto;         /* centre horizontalement */
}


img.img-fluid {
  max-height: 100px;
  object-fit: contain;
}

















/* Media queries pour mobile */
@media (max-width: 600px) {
  .hero-video {
    max-height: 250px; /* réduit la hauteur sur mobile */
  }

  h1.display-4 {
    font-size: 1.8rem; /* texte plus petit */
  }

  .lead {
    font-size: 1rem; /* texte plus lisible sur petit écran */
  }

  .btn-lg {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
  }
 .contents img.zoomed {
        transform: scale(1.5);
        opacity: 0.8;
        z-index: 10;
        position: relative;
    }
  .grilleformation {
        grid-template-columns: 1fr;
    }
.carousel-inner img {
        max-width: 95%;
    }
}