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

:root {
    --color1: #fff;
    --color10: #bee3ff;
    --color2: #0a2a43;
    --color3: #292a2b;

    --font1: 'Abril Fatface', cursive;
    --font2: 'Roboto', sans-serif
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font2);
}

.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding-left: 3rem;
    padding-right: 3rem;
}   

h1, h2, h3, h4, h5, h6 {
    font-weight: 400;
}

/* Accueil */
.accueil {
    background-image: url('img/web/hero.png');
    background-repeat: no-repeat;
    background-size: cover;
    height: 100vh;
    background-position: center;
}

.accueil .toggle {
    display: none;
}

.overlay {
    background-image: url('img/web/overlay.png');
    background-repeat: no-repeat;
    background-size: cover;
    height: 100vh;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--color10);
}


.logo {

    position: absolute;
    top: 1rem;
    left: 1rem;
}

.logo img {
    max-width: 160px;
}

.logo_cfi {
    max-width: 180px;
}

.logo_cfi img {
    width: 100%;
    height: auto;
    display: block;
}

canvas {
    border: none;
    box-shadow: none;
    background: #1e90ff;
}


.menu {
    position: absolute;
    top: 2.75rem;
    left: 50%;
    transform: translateX(-50%);
    list-style: none;
    display: flex;
    width: 550px;
    justify-content: space-between;
    
}

.menu li a {
    color: var(--color10);
    text-decoration: none;
    text-transform: uppercase;
    font-weight: 300;
    letter-spacing: 2px;
    
}



.accueil__text {
    width: 80%;
}

.accueil__text__top {
    display: flex;
    align-items: center;
}

.accueil__text__top .sep {
    width: 120px;
    height: 2px;
    background: var(--color1);
}

.accueil__text__top p {
    margin-left: 1rem;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.accueil__text__mid h1 {
    font-weight: 400;
    font-family: var(--font1);
    font-size: 10rem;
    line-height: 11rem;
    margin-top: 1rem;
    margin-bottom: 2rem;
}


/* About */

.about {
    padding-top: 3rem;
    padding-bottom: 3rem;
    color: var(--color3);
}

.entete {
    display: flex;
    padding-top: 2rem;
}

.entete__slogan {
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 2px;
    width: 30%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-bottom: 1rem;
}

.entete__titre {
    width: 100%;
    padding-top: 1rem;
    padding-left: 1rem;
}

.entete__titre h2 {
    font-family: var(--font1);
    font-size: 3rem;
}

.entete__titre .barre {
    width: 120px;
    height: 5px;
    background: var(--color2);
    margin-top: 1rem;
    margin-bottom: 1.5rem;
}

.entete__titre .barre2 {
    width: 120px;
    height: 5px;
    background: var(--color1);
    margin-top: 1rem;
    margin-bottom: 1.5rem;
}

.entete__titre p {
    line-height: 1.4rem;
}

.about__corps {
    margin-top: 1rem;
    display: flex;
    justify-content: center; /* ✅ centrer les blocs */
    gap: 4rem;
    flex-wrap: wrap; /* facultatif pour le responsive */
}


/* AVOIR TITRE + LOGO  */

 .bloc-titre-logo {
    display: flex;
    align-items: center; /* aligne verticalement */
    gap: 40rem; /* espace entre logo et titre */
}


.about__corps__block {
    width: 31%;
}

.about__corps__block img {
    width: 100%;
}

.about__corps__block h3 {
    font-family: var(--font1);
    font-size: 2rem;
    margin-bottom: 1rem;
    margin-top: 0.5rem;
}

.about__corps__block p {
    line-height: 1.4rem;
}

/* Work */
.work {
    background: var(--color2);
    padding-top: 3rem;
    padding-bottom: 3rem;
    color: var(--color1);
}

.work .barre {
    background: var(--color1);
}

.work__corps {
    margin-top: 3rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.work__corps__block {
    position: relative;
}

.work__corps__block h3 {
    position: absolute;
    left: 1rem;
    bottom: 2rem;
    font-family: var(--font1);
    font-size: 2rem;
}

.work__corps__block h4 {
    position: absolute;
    left: 1rem;
    bottom: 2rem;
    font-family: var(--font1);
    font-size: 2rem;
    color: var(--color1);
}


.work__corps__block .barre {
    position: absolute;
    left: 1rem;
    bottom: 1.5rem;
    height: 5px;
    width: 120px;
    background: var(--color2);
}

/* Contact */
.contact {
    margin-top: 2rem;
    padding-top: 1rem;
    padding-bottom: 3rem;
    background: var(--color2);
    color: var(--color1);
}

.btn {
    border: 0;
    padding: 0.5rem 1rem;
    margin-top: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Responsive */
/* Medium Screens */
@media all and (max-width: 1327px) {
    .accueil__text__mid h1 {
        font-size: 5rem;
        line-height: 6rem;
    }
}

/* Tablettes */
@media all and (max-width: 991px) {

    .open .logo img {
        max-width: 80px;
        transition: all 0.3s ease;
    }

    .logo img {
        transition: all 0.3s ease;
    }

    .accueil .toggle {
        display: block;
        position: absolute;
        top: 2.75rem;
        right: 1rem;
        font-size: 1.75rem;
        cursor: pointer;
    }

    .ouvrir {
        display: block;
    }

    .fermer {
        display: none;
    }

    .open .ouvrir {
        display: none;
    }

    .open .fermer {
        display: block;
    }

    .logo {
        z-index: 1020;
    }

    .menu {
        background: var(--color3);
        width: 100%;
        height: 85vh; /* taille menu  */
        top: 0;
        left: 0;
        transform: translateX(-100%);
        transition: transform .5s;
        flex-direction: column;
        align-items: center;
        justify-content: space-around;
    }

    .menu li a {
        font-size: 2rem;
    }

    .open .menu {
        transform: translateX(0);
    }
}

/* _________________RESPONSIVE_______________ */
@media all and (max-width: 767px) {

    .open .logo img {
        max-width: 80px;
        transition: all 0.3s ease;
    }

    .logo img {
        transition: all 0.3s ease;
    }


    .accueil__text__mid h1 {
        font-size: 3rem;
        line-height: 4rem;
    }

    .entete__slogan {
        display: none;
    }

    .entete__titre {
        width: 100%;
    }
    
    .about__corps {
        flex-direction: column;
    }

    .about__corps__block {
        width: 100%;
        margin-bottom: 0.5rem;
    }

    .about__corps__block:last-child {
        margin-bottom: 1rem;
    }

    .work__corps {
        grid-template-columns: repeat(1, 1fr);
    }
}


@keyframes bounce {
    0% {
        top: 0;
    }

    50% {
        top: 10px;
    }

    100% {
        top: 0;
    }
}


/* ____________________FOOTER___________________________ */

.footer-bottom {
    margin-top: 2rem;
    border-top: 2px solid #ccc;
    padding-top: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: left;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  .footer-bottom p {
    margin: 0;
    font-size: 0.9rem;
    color: #555;
  }
  
  .footer-bottom img {
    width: 28px;
    height: 28px;
    transition: transform 0.2s ease;
  }
  
  .footer-bottom img:hover {
    transform: scale(1.1);
  }

  .contact a {
    text-decoration: none;  
    color: var(--color10);
    
  }


  .footer {
    margin-top: 0rem;
    padding-top: 0rem;
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
  }





  /* ______________________ALBUM____________________ */


  .album {
    padding: 3rem 1rem;
    max-width: 1200px;
    margin: auto;
  }
  
  .album__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
  }
  
  .album__item {
    width: 100%;
    height: 200px; 
    cursor: pointer;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
   }
  
  .album__item:hover {
    transform: scale(1.03);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
  }
  
  .lightbox {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.9);
    justify-content: center;
    align-items: center;
    z-index: 999;
    flex-direction: column;
  }
  
  .lightbox.active {
    display: flex;
  }
  
  .lightbox__img {
    max-width: 90%;
    max-height: 80vh;
    margin-bottom: 1rem;
  }
  
  .lightbox .close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    font-size: 2rem;
    color: #fff;
    cursor: pointer;
  }
  
  .lightbox__nav span {
    font-size: 2.5rem;
    color: white;
    cursor: pointer;
    margin: 0 2rem;
    user-select: none;
  }
  


/* ____________________CALENDRIER____________________________ */



.calendrier {
    background: #fff;
    padding-top: 1rem;
    padding-bottom: 4rem;
  }

  .calendrier__iframe iframe {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    height: 600px;
  }




/* ____________________inscriptions____________________________ */


  .btn-inscription {
    background-color: #0a2a43;
    color: #fff;
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 0.5rem;
    text-decoration: none;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s ease;
  }
  
  .btn-inscription:hover {
    background-color: #bee3ff;
  }



  
/* ____________________ IMAGES ET responsive ____________________________ */


.img-formation,
.img-cfi,
.img-missions {
  width: 100%;
  height: 300px;
  object-fit: cover;
  display: block;
}

@media (max-width: 768px) {
  .img-formation,
  .img-cfi,
  .img-missions {
    height: 100%;
  }
}

@media (max-width: 480px) {
  .img-formation,
  .img-cfi,
  .img-missions {
    height: 100%;
  }
}


.section-contact {
  padding: 4rem 2rem;
  background-color: #fff;
}

.contact-container {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
  max-width: 1200px;
  margin: auto;
}

.contact-info,
.contact-form {
  flex: 1 1 45%;
  background-color: #fff;
  padding: 2rem;
  border-radius: 1rem;
  /* box-shadow optionnel */
  /* box-shadow: 0 0 15px rgba(0, 0, 0, 0.05); */
}

.contact-form form .form-group {
  margin-bottom: 1.5rem;
}

.contact-form label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: bold;
}

/* 🧩 Style unifié pour tous les champs */
.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 0.8rem 1rem;
  font-size: 1rem;
  font-family: 'Roboto', sans-serif;
  color: #333;
  background-color: #fff;
  border: 1px solid #ccc;
  border-radius: 0.5rem;
  box-sizing: border-box;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  resize: none;
}

/*  Spécificité visuelle du <select> */
.contact-form select {
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6 8L0.803848 0.5L11.1962 0.5L6 8Z' fill='%23333'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 12px;
}

/* Bouton d’envoi */
.contact-form button {
  background-color: #0a2a43;
  color: #fff;
  padding: 0.8rem 1.5rem;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.contact-form button:hover {
  background-color: #bee3ff;
}

/* --- Sous-menu --- */
.has-submenu {
    position: relative;
}
/* --- Sous-menu par défaut (desktop) --- */
.submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--color3);
    padding: 1rem 0;
    width: 250px;
    z-index: 1000;
    text-align: center;
}

.submenu li a {
    padding: 0.5rem 1rem;
    color: var(--color10);
    text-decoration: none;
    display: block;
}

.submenu li a:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Desktop : hover = affiche le sous-menu */
@media (min-width: 992px) {
    .has-submenu:hover .submenu {
        display: block;
    }
}

/* Mobile : le sous-menu est TOUJOURS visible dans le menu burger */
@media (max-width: 991px) {
    /* On remet "Formation" aligné comme les autres */
    .menu .has-submenu > a {
        padding-left: 4rem;  /* Même padding que les autres */
    }

    /* Le sous-menu est indenté pour montrer la hiérarchie */
    .menu .has-submenu .submenu {
        display: block;
        position: static;
        background: none;
        padding-left: 1rem;
        padding-right: 1rem;
        width: 100%;
    }

    .menu .has-submenu .submenu a {
        font-size: 1rem;
        padding: 0.5rem 0rem;       
    }
}

/* Supprimer les puces (petits ronds) des listes */
.menu,
.menu ul,
.submenu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.google-map iframe {
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}



.lien-special {
    color: #0a2a43;       /* Couleur du texte */
    font-weight: bold;    /* Met le texte en gras */
    text-decoration: none; /* Supprime le soulignement */
    font-size: 0.9rem;    /* Taille du texte */
    padding: 1px 5px;   /* Espace intérieur */
    border: 2px solid #0a2a43; /* Bordure */
    border-radius: 5px;   /* Coins arrondis */
    transition: all 0.3s ease; /* Animation fluide */
    white-space: nowrap;
}

.lien-special:hover {
    background-color: #0a2a43; /* Couleur de fond au survol */
    color: #ccc;             /* Couleur du texte au survol */
}
