@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@200..700&family=Roboto+Condensed:ital,wght@0,100..900;1,100..900&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');
    

body{ 
    
    background-image: url("../pictures/multicolor.webp");
}
 body{ 
    background-repeat:no-repeat;
    padding: 0;
    margin: 0;

}
body{
    background-size: cover;
}


.header{
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color:white;
    padding: 10px;
    margin:0 ;

   
}

header.header img {

    width: 150px;
    height: auto; /* Pour maintenir le ratio de l'image */
    display: block; /* Élimine l'espace sous l'image */
    margin-right: auto;
    


    
}

    
.menu-nav {
    display: flex;
    align-items: center; /* Centre verticalement le contenu du menu */
    height: 100%; /* Prend toute la hauteur du header */
    flex: 1;
    justify-content:center
}
.menu-nav{
     font-family: "Roboto Condensed", sans-serif;
     font-weight: 90;  
    
   
}
.menu-nav > ul{
    
       display: flex;
       justify-content: space-between;
       margin: 0;
       padding: 0;
       list-style: none;
       gap: 10px;
       align-items: center
    

     }
    

.menu-nav ul li {

    color: rgb(186, 13, 13);
    font-weight: lighter;
    position: relative;
}

.menu-nav ul li a {
    color: rgb(54, 50, 50);
    text-decoration: none;
    padding:10px 15px;
    margin-left: 10px;
    transition: all 0.3s ease;
    display: inline-block;
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    text-align: left;
}



.menu-nav ul li a:hover {
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: 5px;

    
    
}

/* Styles drop nav */
.menu-nav ul ul {
    display: none; 
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    padding: 10px 0;
    min-width: 80px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    z-index: 1000;
    border-radius: 5px;
}



.h1{
    text-align: center;
    color: white;

}
/* word scroling */
.phrases-container {
    margin: 130px;
    position: relative;
    top: 50%;
    left: 38%;
    transform: translate(-50%, -50%);
    text-align: center;
    font-weight: bolder;
    color: white;
    font-size: 6rem;
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
}


.phrase {
    opacity: 0;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    animation: fadeInOut 7s infinite;
}

#phrase1 { animation-delay: 0s; }
#phrase2 { animation-delay: 7s; }
#phrase3 { animation-delay: 14s; }
#phrase4 { animation-delay: 21s; }

@keyframes fadeInOut {
    0% { opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { opacity: 0; }
}



@keyframes appearLetter {
    to { opacity: 1; }
}


.phrase{
 position: absolute;           
            width: 100%;
            text-align: center;
            opacity: 0;
            animation: apparition 8s infinite; /* Durée totale de l'animation */
     
}
.carousel {
    margin: 300px auto;
    width: 90%;
    border: px solid rgb(63, 16, 232);
    display: flex;
    overflow-x: auto;
    gap: 2rem;
    scroll-behavior: smooth;
    
}

.group{
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-right: 2;
    animation: spin 25s infinite linear;
    padding-right: 2rem;
    flex-shrink: 0;
}
    
.card {
    flex: 0 0 25rem;
    height: 20rem;
    gap: 2rem;
    padding: 1rem;
    background: #0b0b0b ;
    font-size: 3rem;
    border-radius: .2em;
    text-align: center;
    position: relative;
    overflow: hidden;
   
}
/* CORRECTION POUR LES IMAGES DANS LES CARTES */
.card img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Recadre l'image sans la déformer */
    object-position: center;
    display: block;
}
  

    .label {
            position: absolute;
            bottom: 10px;
            left: 50%;
            transform: translateX(-50%);
            color: #0000ff;
            font-size: 18px;
            font-weight: bold;
            background-color: rgba(255, 255, 255, 0.7);
            padding: 5px 10px;
            border-radius: 5px;
            z-index: 0;
            pointer-events: none;
        }
        .card {
            position: relative;
            display: inline-block;
            margin: 10px; 
        }
    .card a {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
 }

@keyframes spin {
    from {translate: 0;}
    to{translate: -100%;}

}
/*page LeCFC */
*{
    margin: 0px;
    padding: 0px;
    box-sizing: border-box;
    font-family: sans-serif;
} 
    .conteneur-cadres {
            display: flex;
            gap: 10%;
            max-width: 1200px;
            margin: 50px;
            padding: 0 10px;
        }
        
        .cadre-blanc {
            flex: 1;
            background-color: white;
            border-radius: 15px;
            padding: 30px;
            margin-left: 5%;
            margin-right: 5%;
        
    
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
            transition: transform 0.3s ease, box-shadow 0.3s ease;
        }
        
        .cadre-blanc:hover {
            transform: translateY(-5px);
            box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
        }
        
        .cadre-blanc h2 {
            color: #333;
            font-size: 24px;
            margin-bottom: 20px;
            border-left: 4px solid hsl(243, 97%, 50%);
            padding-left: 15px;
        }
        
        
        .btn-cadre:hover {
            background-color:hsl(243, 97%, 50%);
        }
        
           .conteneur-cadres {
            display: flex;
            gap: 5%;
            max-width: 1200px;
            margin: 60px auto;
            padding: 0 20px;
        }
        
        .cadre-blanc {
            flex: 1;
            background-color: white;
            border-radius: 15px;
            padding: 15px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
            transition: transform 0.3s ease, box-shadow 0.3s ease;
        }
        
        .cadre-blanc:hover {
            transform: translateY(-5px);
            box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
        }
        
    
        
        .cadre-blanc p {
            color: #666;
            line-height: 1.8;
            margin-bottom: 25px;
            text-align: justify;
        }
        
        .btn-cadre {
            display: inline-block;
            background-color: hsl(243, 97%, 50%);
            color: white;
            padding: 10px 25px;
            text-decoration: none;
            border-radius: 25px;
            transition: background-color 0.3s ease;
            font-weight: 500;
        }
        
        @media (max-width: 768px) {
            .conteneur-cadres {
                flex-direction: column;
                gap: 30px;
            }
        }
.sous-menu{
    display: block;
    position: absolute;
    background-color:  rgba(0, 0, 0, 0.1);
    list-style-type: none;

}
.sous-menu ul li{
    width: 150px;

}

.menu-nav ul ul li{
   
    width: 100%;
    margin: 0;
    padding: 0;
}
.menu-nav ul ul li a {
    display: block;
    padding: 8px 15px;
    margin: 0;
    color: #333;
    white-space: nowrap;
    font-size: smaller;
    
    }
    .menu-nav ul ul li a:hover {
    background-color: rgba(0, 0, 0, 0.0.7);
}

/* sous-menu au survol */
.menu-nav ul li:hover > ul {
    display: block;
}
  /* act */
.paragraph-act h3{
    text-align: center;
    margin-bottom: 20px;
    margin-top: 20px;
}
  
.paragraph-act{
    margin-left: 20%;
    margin-right: 20%;
    line-height: 1.3rem;


}
     /*colorex*/

.paragraph-explo{
     margin-left: 25%;
    margin-right: 25%;
    line-height: 1.3rem;
}
.paragraph-explo h3{
    text-align: center;
    margin-bottom: 20px;
     margin-top: 20px;

}


         /*all<p>in whitecadra*/
    
 .border-contenu{
   margin-left: 20%;
   margin-right: 20%;
   margin-top: 20px;
   margin-bottom: 20px;
   display: block;
   line-height: 1.2rem;

   background-color:white;
  
}
 .border-contenu{
     text-align:left;
     line-height 10px;
     border-radius: 1rem;
     padding: 25px;
 }
h2{
    margin-top: 4%;
    text-align: center;
    color: black
}
      /* btn join us */
.menu-nav .btn-nous-joindre a {
    background-color: #0011ff;
    color: white; 
    border-radius: 50px;
    padding: 10px 20px; 
    text-decoration: none; 
    font-weight: bold; 
    transition: background-color 0.3s ease;
}

.menu-nav .btn-nous-joindre a:hover {
    background-color: hsl(26, 94%, 49%); 
    border-radius 50px; ;
}
    
           /* =============== MEDIA QUERIES =============== */

/* Tab (768px - 1024px) */
@media (max-width: 1024px) {
    .header {
        flex-direction: column;
        padding: 10px;
    }

    header.header img {
        margin: 0 auto 15px;
    }

    .menu-nav > ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 5px;
    }

    .menu-nav ul li a {
        padding: 8px 10px;
        font-size: 14px;
    }

    .phrases-container {
        margin: 100px 20px;
        left: 50%;
        font-size: 4rem;
    }

    .carousel {
        margin: 300px auto;
    }

    .card {
        flex: 0 0 20rem;
        height: 15rem;
    }
}

/* Smartphones (jusqu'à 767px) */
@media (max-width: 767px) {
    body {
        background-size: cover;
        overflow-x: hidden;

    }

    .menu-nav > ul {
        flex-direction: column;
        align-items: center;
        gap: 5px;
    }

    .menu-nav ul li {
        width: 100%;
        text-align: center;
    }

    .menu-nav ul li a {
        display: block;
        margin: 0;
    }

    .menu-nav ul ul {
        position: static;
        width: 100%;
        box-shadow: none;
        background-color:#f5f5f5.
    }

    .phrases-container {
        margin: 60px 10px;
        font-size: 2.5rem;
        left: 50%;
    }

    .phrase {
        white-space: normal;
        width: 90%;
        font-size: 1.8rem;
    }

    .carousel {
        margin: 150px auto;
        flex-direction: column;
        overflow-x:scroll;
        width: 95%;
        gap: 1;
    }

    .group {
        flex-direction:column;/* or row */
        animation: none;
        padding-right: 0;
        gap: 1rem;
    }

    .card {
        flex: 0 0 auto;
        width: 90%;
        height: 200px;
        margin-bottom: 1rem;
    }

    /* Correct drop-menu */
    .menu-nav ul li:hover > ul {
        position: relative;
        display: block;
    }

    .btn-nous-joindre {
        margin-top: 10px;
    }
}

/* Petits smartphones (jusqu'à 480px) */
@media (max-width: 480px) {
    .phrases-container {
        margin: 40PX 10px;
        font-size: 1.5rem;
    }
    .phrase{
        font-size: 1.4rem;
    }
    .carousel{
        margin: 120px auto;
    }

    .card {
        flex: 0 0 260px;
        height: 180px;
    }
}
      /*footer  */
  
footer .container{
    padding: 30px;
    margin: 0;
    box-sizing: border-box;
    background-color: black;
}
.row{
    display: flex;
    justify-content: space-between;
    position: 40px 100px ;
 }

.footer-col ul{
    list-style: none;
}
.footer-col h4{
    color: white;
    margin-bottom: 25px;
    font-size: 22px;
    position: relative;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;

}
.footer-col h4::before{
 content: '';
 width: 70px;
 height: 2px;
 position: absolute;
 background-color: #0011ff;
 bottom: -9px;

}
.footer-col ul li a{
    padding: 0px;
    line-height: 30px;
}
.footer-col ul li a{
    color: white;
    text-decoration: none;
    font-size: 16px;
    opacity: 0.7;
    transition: 0.5s;   
 }
 .footer-col ul li a:hover{
    opacity: 1;
 }
 .footer-col input{
  border: none;
  width: 250px;
  height: 45px;
  display: block;
  padding-left: 20px;
  margin: 14px 0;
 }
 .footer-col .inputSubmit{
    padding: 0 20px;
    background-color: red;
    border: none;
    color: white;
 }
 .col p{
    color: white;
 }
 .row hr{
    opacity: 8;
    
 }
 .row .socialIcons i{
    display: inline-block;
    color: white;
    font-size: 30px;
    margin: 0 10px;
    padding: 1px;
    transition: 0.5s;
 }
 .row .socialIcons i:hover{
    color: rgb(15, 193, 15);
 }
@media (max-width: 600px){
    footer .row{
        flex-direction: column;
        padding: 20px 30px;
   
    }
    footer .footer-col ul{
        margin-left: 20px;
        margin-bottom: 20px;
    }
    .footer-col input{
        width: 100%;
    }
}

      /*six cards color explor*/


        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

 

        /* Conteneur principal de la grille */
        .gallery-container {
            max-width: 1400px;  /* Élargi pour accueillir 3 colonnes confortablement */
            width: 100%;
            margin: 0 auto;
            background-color: transparent;
        }

        /* Grille CSS : 3 colonnes égales, espacement blanc uniforme */
        .grid-3cols {
            display: grid;
            grid-template-columns: repeat(3, 1fr);  /* 3 colonnes de largeur égale */
            gap: 30px;                              /* Intervalle égale (blanc) entre les cadres */
            row-gap: 30px;                          /* Même écart vertical */
        }

        /* Style de chaque carte/cadre */
        .card {
            background-color: black;
            border-radius: 12px;
            box-shadow: 0 8px 20px rgba(0,0,0,0.08);
            overflow: hidden;
            transition: transform 0.2s ease, box-shadow 0.2s ease;
            display: flex;
            flex-direction: column;
        }
       
        .card:hover {
            transform: translateY(-5px);
            box-shadow: 0 15px 30px rgba(0,0,0,0.12);
        }

        /* Zone d'image avec dimensions exactes 350x240 px */
        .image-area {
            width: 100%;
            height: 240px;
            background-color: black;
            display: flex;
            align-items: center;
            justify-content: center;
            overflow: hidden;
            position: relative;
        }

        /* Style pour l'image à l'intérieur */
        .image-area img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
        }

        /* Placeholder au cas où */
        .placeholder-text {
            color: black;
            font-size: 0.9rem;
            text-align: center;
            font-weight: 500;
            background-color: #dee2e6;
            width: 100%;
            height: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-direction: column;
        
        }

        /* Zone de contenu sous l'image pour le bouton */
        .card-footer {
            padding: 10px 16px 20px 16px;
            text-align: center;
            margin-bottom: 15px;
           
        }

        /* Bouton "Voir plus" - fond bleu */
        .btn-voir-plus {
            display: inline-block;
            background-color:#0011ff;
            color: white;
            font-size: 1rem;
            font-weight: 600;
            padding: 10px 24px;
            border-radius: 40px;
            text-decoration: none;
            cursor: pointer;
            border: none;
            transition: background-color 0.2s ease, transform 0.1s ease;
            font-family: inherit;
            box-shadow: 0 2px 5px rgba(0,123,255,0.3);
            letter-spacing: 0.3px;
        }

        .btn-voir-plus:hover {
            background-color: #0056b3;
            transform: scale(1.02);
        }

        .btn-voir-plus:active {
            transform: scale(0.98);
        }

        /* Responsive : adaptation selon la taille d'écran */
        @media (max-width: 1024px) {
            .grid-3cols {
                grid-template-columns: repeat(2, 1fr);  /* Passe à 2 colonnes sur tablette */
                gap: 25px;
            }
        }

        @media (max-width: 700px) {
            .grid-3cols {
                grid-template-columns: 1fr;   /* 1 seule colonne sur mobile */
                gap: 25px;
            }
            body {
                padding: 20px 15px;
            }
            .card {
                max-width: 100%;
            }
        }

        /* Garantir la hauteur des images sur tous les écrans */
        .image-area {
            height: 240px;
        }
        
        .image-area img {
            height: 240px;
            width: 100%;
        }

        /* Style pour le titre */
        .page-title {
            text-align: center;
            margin-bottom: 40px;
            color: #333;
            font-weight: 600;
        }

        .page-title h2 {
            font-size: 2rem;
            margin-bottom: 10px;
        }

        .page-title p {
            color: black;
            font-size: 1rem;
        }

        /* Note indicative */
        .demo-note {
            text-align: center;
            margin-top: 40px;
            font-size: 0.8rem;
            color: #888;
        }