html, body {
    margin: 0;
    padding: 0;
    font-family: montserrat;
    background-color: #ffffff;
    overflow-x: hidden;
}

/* html {
    scroll-behavior: smooth;
} */



h1, h2 {
    font-family: lobster;
    font-weight: 300;
    font-size: 3em;
}

a {
    text-decoration: none;
    color: black;
}

img {
    width: 280px;
}

header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    background-color: white;
}

.header_href {
    text-decoration: none;
    font-size: 1em;
}

header:hover {
    background-color: whitesmoke;
}

.card_intro {
    align-items: center;
    justify-content: center;
    display: flex;
    padding: 80px;
    width: 50%;
    margin: auto;
    background-color: #093637;
    color: #44a08d;
    border-radius: 20px;
}

#img_zayan_max {
    width: 280px; 
    border-radius: 10px;
}

.card_images {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
    align-items: center;
    padding: 50px;
}

.card_images img {
    width: 280px;
    border-radius: 3px;
}

.card_images img:hover {
    opacity: 70%;
    /* filter: brightness(50%);  */
}

.card_images h2 {
    color: black;
    text-align: center;
    padding-bottom: 50px;
}

#text_images {
    text-align: center;
}

#a_action:hover {
    color: rgb(255, 0, 174);
    border-bottom: 5px rgb(255, 0, 174) solid;
}

/* chat gpt */

/* Grid container for all images */
.image-gallery {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 50px;
    flex-wrap: wrap;
}

/* Individual image containers */
.image-container {
    position: relative; /* Définit le conteneur comme point de référence pour positionner ses éléments enfants (comme le texte). */
    overflow: hidden; /* Ensures child elements stay within the container */
    /* box-shadow: inset; */
    /* box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); */
}

/* Images */
.image-container img {
    display: inline;
    /* object-fit: cover; Ajuste l'image pour qu'elle remplisse le conteneur sans distorsion. Les bords en excès sont rognés si nécessaire. */
    /* transition: all 0.3s ease-in-out; */
}

/* Text over the image */
.image-container .image-text {
    opacity: 0; /* Hidden by default */
    transition: opacity 0.3s ease-in-out; /* Smooth fade-in */
    position: absolute; /* Positionne le texte par rapport au conteneur parent */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); 
    /* Ajuste pour centrer parfaitement en utilisant l'origine du texte */
    color: white;
    font-size: 1.2rem;
    font-weight: bold;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.8);
    /* opacity: 0; Cache le texte par défaut (apparaît au survol) */
    /* transition: opacity 0.3s ease; Ajoute une transition douce pour l'apparition/disparition */
}

/* Hover effect */
.image-container:hover img {
    filter: brightness(50%);
}

.image-container:hover .image-text {
    opacity: 1; /* Displays the text */
}

/* chat gpt */


.card_form {
    padding: 80px;
    display: grid;
    grid-template-columns: 100px 100px 100px 100px 100px 100px 100px 100px 100px;
    grid-template-rows: 80px 100px 100px 100px 100px 100px;
    justify-content: center;
    align-items: center;
    background-color: #093637;
    color: #44a08d;
    accent-color: #44a08d;
    caret-color: #44a08d;
}

.card_form input {
    background-color: white;
    border-radius: 3px;
    border: none;
    width: 200px;
    padding: 10px;
}

.form_one {
    grid-column: 3 / 5;
    grid-row: 2 / 3;
}

.form_two {
    grid-column: 3 / 5;
    grid-row: 3 / 4;
}

.form_three {
    grid-column: 6 / 8;
    grid-row: 3 / 4;
}

.form_four {
    grid-column: 6 / 8;
    grid-row: 2 / 3;
}

.form_five {
    grid-column: 3 / 5;
    grid-row: 4 / 6;
}

.form_five input {
    width: 500px;
    height: 120px;
}

.form_six {
    grid-column: 3/5;
    grid-row: 6/7;
}

.h2_form {
    grid-column: 4 / 7;
    grid-row: 1 / 2;
}

#text {
    padding: 30px;
}

footer {
    background-color: white;
    display: flex;
    align-items: center;
    padding: 20px;
    justify-content: space-between;
    border-bottom: solid #093637;
}

.footer_href {
    text-decoration: none;
    font-size: 1em;
}

.insta_logo {
    width: 24px;
}

.youtube_logo {
    width: 30px;
}

/* Tablet Styles */
@media (max-width: 768px) {
    /* Add your tablet-specific styles here */
}

/* Mobile Styles */
@media (max-width: 480px) {
    .card_intro {
      display: grid;
      grid-column: repeat (1, 100px);
      align-items: center;
      justify-content: center;
      border-radius: 3%;
      height: auto;
    }

    /* .card_intro h1 h2 p {
        color: white;
        font-size: 0,6em;
    } */

    h1 {
        font-size: 30px;
    }

    h2 {
        font-size: 25px;
    }

    p {
        font-size: 15px;
    }
    .image-gallery {
        justify-content: center;
    }

    .image-container img {
        max-width: 150px;
    }

    #img_zayan_max {
        border-radius: 3%;
    }

    .card_form {
        display: grid;
        grid-template-columns: repeat(2, 130px);
        grid-template-rows: repeat(4, 80px);
        background-color: #093637;
        color: #44a08d;
        gap: 60px;
        max-width: 300px;
        justify-content: center;
        align-items: center;
    }

    .card_form input {
        background-color: white;
        border-radius: 3px;
        border: none;
        width: 110px;
    }

    .h2_form {
        grid-column: 1 / 3;
        grid-row: 1 / 2;
        text-align: center;
        font-size: 2em;
    }
    
    .form_one {
        grid-column: 1 / 2;
        grid-row: 2 / 3;
    }
    
    .form_two {
        grid-column: 2 / 3;
        grid-row: 2 / 3;
    }
    
    .form_three {
        grid-column: 1 / 2;
        grid-row: 3 / 4;
    }
    
    .form_four {
        grid-column: 2 / 3;
        grid-row: 3 / 4;
    }
    
    .form_five {
        grid-column: 1 / 2;
        grid-row: 4 / 5;
    }
    
    .form_five input {
        width: 100px;
        height: auto;
    }
    
    .form_six {
        grid-column: 2 / 3;
        grid-row: 4 / 5;
    }

    /* Add your mobile-specific styles here */
}
@media (max-width: 390px) {
    .image-container img {
        max-width: 120px;
    }
}