/* Body */
body {
    font-family: "Poppins", sans-serif;
    margin: 0;
    padding: 0;
    background-color: #eae7dc;
    scroll-behavior: smooth;
    /*cursor: url('images/icones/curseur.png') 16 16, auto; */
}


/* Effet de couverture à l'ouverture */
#cover-bricolage {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #eca766f8; 
    z-index: 9999;
    transform: scaleX(1); /* L'effet commence complètement rempli */
}

/* Animation d'apparition des éléments */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease-out forwards;
}

.fade-in.delay-1 { animation-delay: 0.2s; }
.fade-in.delay-2 { animation-delay: 0.4s; }
.fade-in.delay-3 { animation-delay: 0.6s; }
.fade-in.delay-4 { animation-delay: 0.8s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animation pour les boutons CTA */
.cta-button {
    transition: all 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}


/* Animation de fermeture */
@keyframes closeEffect {
    0% {
        transform: scaleX(1);
    }
    100% {
        transform: scaleX(0);
    }
}



/* En tête */
header {
    background-color: #eca766;
    color: #4e342e;
    padding: 20px;
    text-align: center;
    
}

header h1{
    font-family: "Passion One", sans-serif;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 10px; /* Add padding to give some space on the sides */
}




.header-text {
    flex: 1; /* Allow the text to take up remaining space */
    /*flex-basis: 70%;  Ajuste la largeur de la div de gauche à 70% */
    text-align:start; /* Center the text */
    margin-right: 20px; /* Add margin to the right to keep it away from the photo */
    display: flex;
    flex-direction: row;
    justify-content: space-around;
}

.header-photo {
    flex-shrink: 0; /* Prevent the photo from shrinking */
    flex-grow: 0;/* La div de droite ne grandit pas */
    flex-basis: auto;
    flex-basis: 20%; /* Ajuste la largeur de la div de droite à 30% */
    padding-left: 30px;
}

.header-photo img {
    width: 170px; /* Assurez-vous que la largeur et la hauteur sont égales */
    height: 170px; /* Assurez-vous que la largeur et la hauteur sont égales */
    border-radius: 50%; /* Make the image circular */
    border: 5px solid #EED7C5; /* Add a border with the same color as the header text */
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2); /* Add some shadow for effect */
    object-fit: cover; /* Ensure the image covers the box without distortion */
}

.header-title {
    font-size: 5rem;
    margin-bottom: 10px; /* Ajoute un peu d'espace en bas du titre */
    font-family: Caveat Brush, cursive; /* Utilise une police manuscrite */
    display: flex;
    flex-direction: column;
}

.texte-incline {
    display: inline-block; /* Permet de faire pivoter le texte */
    transform: rotate(-10deg)!important; /* Rotate the text */
    font-size: 1.5rem; /* Adjust the font size as needed */
    color: #4e342e; /* Text color */
    font-family: "Caveat Brush", cursive; /* Font style */
    z-index: 1; /* Ensure it appears above other elements */
}


.head {
   margin-left: 20px;
   padding-left: 20px;
}


.header-text p i {
    margin-right: 10px;
    font-size: 2em; /* Agrandit l'icône à 2 fois la taille par défaut */
}

.header-photo img.logo {

    width: 50px; /* Assurez-vous que la largeur et la hauteur sont égales */
    height: 50px; /* Assurez-vous que la largeur et la hauteur sont égales */
    
}


.header-photo img.logo2 {
    border-radius: 0%;
    border : 0px;
    position: absolute;
    top: 10px;
    left: 10px;
    height: 150px;
    width: auto;
}

.header-photo span {
    font-size: 80%; /* Ajustez la taille de la police selon vos besoins */
   
    text-align: center;
}


.header-insta img {
    width: 20px;
    height: 20px;
}

.head_1 {
    font-size:x-small;
    text-align: right;
}


/* Menu (SUPPRIME)
nav {
    position: fixed;
    bottom: -1%; /* Adjusted position
    left: 0;
    transform: translateY(-50%);
    background-color: #B36A5E;
    padding: 5px;
    border-radius: 0 10px 10px 0;
    z-index: 1000;
}
nav a {
    display: block;
    margin: 5px 0;
    text-decoration: none;
    color: #EED7C5;
    font-weight: bold;
    padding: 8px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}
nav a:hover {
    background-color: #7a6e63;
}
*/

/* Section contact */
#contact-info {
    position: fixed; /* Fixe le bouton en bas de l'écran */
    bottom: 0; /* Le positionne en bas */
    left: 0; /* Le positionne à gauche */
    background-color: #eca766;
    padding: 1px;
    text-align: center; /* Centrer le texte */
    border-radius: 0; /* Retire les coins arrondis */
    width: 100%; /* Largeur complète */
    box-shadow: none; /* Supprime l'ombre */
    cursor: pointer;
    z-index: 1000; /* Assure que le bouton est au-dessus des sections */
    display: flex;
    justify-content: space-between; /* Répartir l'espace entre les éléments */
    align-items: center;
}


/* Supprimer complètement l'affichage du formulaire de contact */
#contact-form {
    display: none; /* Ne plus afficher le formulaire */
}

#contact-info h2 {
    color: #4e342e;
    margin: 1px;
    font-size: 1.4rem; /* Taille du texte pour le bouton */
    font-weight: bold;
    padding-left: 20px;
    padding-right: 0px;
}

#contact-info p {
    color: #4e342e;
    margin: 1px;
    font-size: 1.1rem; /* Taille du texte pour le bouton */
    font-weight: bold;
    padding-left: 0px;
    padding-right: 40px;
}



/* Formulaire de contact (as été supprimé)
#contact-form {
    display: none;
    position: fixed;
    bottom: 0%; /* Adjusted position 
    right: 0;
    background-color: #CA7C5C;
    padding: 10px;
    border-radius: 10px 0 0 10px;
    z-index: 1000;
    width: 300px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
#contact-form h2, #contact-form p, #contact-form label, #contact-form input, #contact-form textarea, #contact-form button {
    width: 100%;
    margin-bottom: 10px;
    color: #ffffff;
}
#contact-form p {
    color: #fff;
    font-weight: bold;
    text-align: center;
}
#contact-form label {
    color: #f2ead9;
}
#contact-form input, #contact-form textarea {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}
#contact-form button {
    background-color: #CA7C5C;
    color: #fff;
    padding: 10px 0;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-family: "Poppins", sans-serif;
}
#contact-form button:hover {
    background-color: #7a6e63;
} */

/* Overview Section Styles */
.overview {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin: 20px 0;
    gap: 20px;
    margin-top: 20px;
    margin-bottom: 20px;
    font-size: 90%;
    
}


.overview .overview-card {
    background-color: #f2ead9;
    width: 200px;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    cursor: pointer;
    margin-bottom: 20px; /* Ajout pour assurer une distance uniforme */
}
.overview .overview-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}
.overview .overview-card:hover img {
    transform: scale(1.1);
}
.overview .overview-card img {
    width: 100%;
    max-height: 100px;
    object-fit: cover;
    border-radius: 5px;
    transition: transform 0.3s ease;
}
.overview .overview-card h3 {
    margin-bottom: 10px;
}
.overview .overview-card ul {
    list-style: none;
    padding: 0;
}
.overview .overview-card ul li {
    background-color: #e0d8c3;
    margin: 5px 0;
    padding: 10px;
    border-radius: 5px;
}

/* Curseur spécifique pour le menu Overview */
.overview-card {
    cursor: auto;
    position: relative;
    display: inline-block; /* Pour que l'élément soit de taille adaptée au texte */
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    }
    
.overview-card::after {
        content: 'Cliquez pour avoir plus de détails';
        position: absolute;
        left: 50%; /* Centrer horizontalement */
        transform: translateX(-50%);
        top: -30px; /* Ajustez cette valeur pour la distance sous le curseur */
        background-color: #333;
        font-size: 1.7rem;
        color: #fff;
        padding: 5px 10px;
        border-radius: 5px;
        white-space: nowrap; /* Empêche le texte de se casser sur plusieurs lignes */
        opacity: 0;
        transition: opacity 0.3s;
        pointer-events: none; /* Empêche les interactions avec le texte affiché */
    }
    
.overview-card:hover::after {
        opacity: 1; /* Rendre le texte visible au survol */
    }

 
#overview-entretien {
    cursor: url('images/icones/marteau.png') 16 16, auto;
}
#overview-renovation {
    cursor: url('images/icones/marteau.png') 16 16, auto;
}
#overview-installation {
    cursor: url('images/icones/marteau.png') 16 16, auto;
}

#overview-depannage {
    cursor: url('images/icones/hache.png') 16 16, auto;
}

/* Sections */
section {
    min-height: 100vh;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    transition: background-color 0.5s ease;
}
.container {
    max-width: 800px;
    width: 100%;
    padding: 20px;
}
section:nth-child(4n+1) {
    background-color: #f2ead9; /* couleur pastel 1 */
}
section:nth-child(4n+2) {
    background-color: #e0d8c3; /* couleur pastel 2 */
}
section:nth-child(4n+3) {
    background-color: #d1c4b2; /* couleur pastel 3 */
}
section:nth-child(4n+4) {
    background-color: #c3b39e; /* couleur pastel 4 */
}

/* Titres */
h1, h2, h3 {
    font-family: "Poppins", sans-serif;
    margin-top: 0;
}
h1 {
    font-size: 42px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}
p {
    line-height: 1.6;
}



/* Service Styles */
.service {
    margin: 20px 0;
    padding: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
section:nth-child(4n+1) .service {
    background-color: #f2ead9; /* couleur pastel 1 */
}
section:nth-child(4n+2) .service {
    background-color: #e0d8c3; /* couleur pastel 2 */
}
section:nth-child(4n+3) .service {
    background-color: #d1c4b2; /* couleur pastel 3 */
}
section:nth-child(4n+4) .service {
    background-color: #c3b39e; /* couleur pastel 4 */
}
.service:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}
.service img {
    width: 100%;
    max-height: 150px;
    object-fit: cover;
    border-radius: 10px;
    transition: transform 0.3s ease;
}
.service img:hover {
    transform: scale(1.1);
}






/*partie des skills*/
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.skill-item {
    background-color: #f9f9f9;
    border-radius: 10px;
    padding: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.skill-item h4 {
    margin-bottom: 10px;
}

/* Thumbnails styles */

.thumbnails {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.thumbnails img {
    width: 70px; /* Ajustez la taille selon vos besoins */
    height: 70px;
    border-radius: 5px;
    transition: transform 0.3s ease;
}

.thumbnail-full {
    object-fit: contain !important; /* Affiche toute l'image sans rogner */
    width: 100px; /* Largeur de la miniature */
    height: 100px; /* Hauteur de la miniature */
    border-radius: 5px; /* Garde le style uniforme */
    background-color: #f9f9f9; /* Ajoute un fond neutre si l'image est plus petite que le cadre */
}


.thumbnails img:hover {
    transform: scale(8); /* Agrandir l'image au survol */
    z-index: 1000; /* Mettre l'image au-dessus des autres éléments */
    position: relative;
}


/*Logo ecolo*/

.competence-ecolo {
    position: relative; /* Position relative pour le conteneur des compétences */
}

.eco-logo {
    position: absolute; /* Positionnement absolu par rapport au conteneur parent */
    top: -10px; /* Ajustez selon vos besoins */
    left: -10px; /* Positionnement en dehors du bord gauche */
    width: 50px; /* Largeur du logo */
    height: 50px; /* Hauteur du logo */
    z-index: 1000; /* Assurez-vous que le logo est au-dessus des autres éléments */
}

.eco-logo img {
    width: 100%; /* S'assure que l'image prend toute la largeur du conteneur */
    height: auto; /* Ajuste la hauteur automatiquement en fonction de la largeur */
}


/*INFOS BULLES*/

/* Positionner l'icône de point d'interrogation */
.info-icon {
    position: absolute;
    top: -15px;
    right: -15px;
    width: 45px; /* Taille de l'icône */
    height: 45px;
    cursor: pointer;
}

/* Masquer l'info-bulle par défaut */
.info-icon::after {
    content: attr(data-tooltip);
    position: absolute;
    top: 30px; /* Ajustez la position verticale de l'info-bulle */
    right: 0;
    background-color: #333;
    color: #fff;
    padding: 5px 10px;
    border-radius: 5px;
    white-space: normal; /* Permettre les retours à la ligne */
    display: none;
    font-size: 14px;
    z-index: 10;
    width: 200px;
    max-width: none; /* Limite la largeur de l'info-bulle */
    text-align: left;
}

/* Afficher l'info-bulle au survol */
.info-icon:hover::after {
    display: block;
}



/*Liste compétences*/
.liste_competence {
    text-align: left;
}


/* Pied de page */

footer {
    background-color: #eca766; /* Utilise la même couleur que l'en-tête */
    color: #4e342e; /* Texte clair, similaire à celui de l'en-tête */
    text-align: center; /* Centre le texte */
    padding: 20px; /* Ajoute de l'espace autour du contenu */
    background-color: rgba(0, 0, 0, 0.7);
    font-size: 90%;
    position: sticky;
    text-align: center;
    padding: 1px 0; 
    margin-bottom: 2%;   
}

footer p {
    font-size: 0.9rem;
    color: white;
    margin: 0;
    padding: 10px 0; /* Un peu d'espace autour du texte */
    /*font-family: "Poppins", sans-serif;  Même police que le reste du site */
    font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
}

footer a {
    color: white;
    text-decoration: underline;
    margin-left: 10px; /* Ajoute un espace entre le texte et l'icône */
}

footer a:visited {
    color: white;
}

/*footer img {
    width: 25px;  Ajuste la taille de l'icône Instagram 
    height: 25px;
    margin-left: 10px; /* Espacement entre l'icône et le texte 
}
*/

.head_1 {
    font-size: 0.8rem; /* Réduit un peu la taille du texte de remerciement */
    color: #EED7C5; /* Même couleur que le texte du footer */
    display: block;
}



/* Police des crédits */

.credits {
    font-size: 0.4rem;
    margin-bottom: 20px;
}

footer .credits {
    display: flex; /* Utiliser flexbox pour aligner les éléments */
    flex-wrap: wrap; /* Permet aux éléments de passer à la ligne si nécessaire */
    justify-content: space-between; /* Répartir les éléments horizontalement */
    gap: 5px; /* Ajouter un espacement entre chaque élément */
    padding: 10px; /* Ajouter un peu de padding autour */
}

footer .credits p {
    flex: 1 1 200px; /* Chaque paragraphe prend de l'espace de manière flexible */
    text-align: left; /* Aligner les paragraphes à gauche */
    margin: 0; /* Supprimer les marges par défaut */
    padding: 2px 0; /* Ajouter de l'espace autour du texte */
}



/* Adaptation téléphone */
@media only screen and (max-width: 1200px) {
    .header-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .header-photo {
        margin-top: 10px;
    }

    nav {
        display: none;
    }

    nav a {
        margin: 0;
        padding: 10px 15px;
    }

    #contact-info, #contact-form {
        width: 100%;
        border-radius: 0;
    }

    .overview {
        flex-direction: column;
        align-items: center;
    }

    .overview .overview-card {
        width: 80%;
    }

    .thumbnails {
        flex-direction: column;
        align-items: center;
    }

    .thumbnails img {
        margin-bottom: 10px;
    }
}

@media only screen and (max-width: 768px) {
    header {
        padding: 10px;
    }

    .header-content {
        padding: 0 10px;
    }

    .overview .overview-card {
        width: 100%;
    }

    .container {
        padding: 10px;
    }
}

@media only screen and (max-width: 480px) {
    header h1 {
        font-size: 28px;
    }

    .overview .overview-card h3 {
        font-size: 18px;
    }

    .overview .overview-card ul li {
        font-size: 14px;
    }

    nav a {
        font-size: 14px;
        padding: 5px 10px;
    }
}