/* Style général de la page */
body {
    margin: 0;
    display: flex;
    height: 100vh;
    font-family: 'Caveat Brush', cursive;
    overflow: hidden;
    text-align: center;
    background-color: #F8E1C3 !important;
}

/* Sections à droite et à gauche */
.section {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 5s ease;
    color: white;
    position: relative;
    overflow: hidden; /* Évite que l'image déborde */
}

.section::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0; /* Caché par défaut */
    transition: opacity 1.5s ease; /* Apparition fluide */
}

.lien {
    text-decoration: none;
    color: #333;
    font-size: 1.2rem;
}
/* Section bricolage */
.bricolage {
    background-color: #eca766; 
    clip-path: polygon(0 0, 80% 0, 100% 100%, 0 100%);
}

.bricolage::after {
    background-image: url('../img/aurelienbricolage/enduit_chaux_5.jpg');
}


/* Sections numériques */
.numerique {
    /* background-color: #e59e82; */
    background-color:rgb(32, 32, 32);
    clip-path: polygon(20% 0, 100% 0, 100% 100%, 0 100%);
}

.numerique::after {
    background-image: url("../img/aureliencode/portrait_pc-6tHgepI.jpg");
}


/* Effet hover simple */
.section:hover {
    flex: 3; /* s'agrandit légèrement au survol */
}

.section:hover::after {
    opacity: 0.3; /* Ajuste l'opacité selon ton goût */
}


/* Espace central pour ton profil */
.profil {
    flex: 0.5;
    background-color: #F8E1C3; /* couleur centrale claire, comme carte */
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.profil img {
    border-radius: 50%;
    width: 120px;
    height: 120px;
    object-fit: cover;
    border: none;
}

h1 {
    margin: 10px 0;
    font-size: 2.5rem;
    color: #4e342e;
}

p {
    font-size: 1.2rem;
    color: #333;
}

/* Icônes des sections */
.section .icon {
    font-size: 4rem;
    color: white;
    position: absolute;
    top: 30%;
    width: 100%;
}

.section h2 {
    position: absolute;
    top: 50%;
    width: 100%;
    color: white;
    font-size: 2rem;
}


footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    text-align: center;
    padding: 1px 0;
    
}

footer p {
    font-size: 0.9rem;
    color: white;
    font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
}

footer a {
    color: white;
    text-decoration: underline;
}

footer a:visited {
    color: white;
}

/* ✅ Amélioration responsive mobile */
@media (max-width: 768px) {
    /* Organisation en colonne pour éviter la compression */
    body {
        flex-direction: column;
        height: auto;
        overflow: auto; /* Permet le scroll si besoin */
    }

    /* Sections ajustées pour l'affichage vertical */
    .section {
        flex: none;
        width: 100%;
        height: 45vh; /* Hauteur ajustée */
        clip-path: none; /* Enlever les découpes polygonales */
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Suppression de l'effet au survol (inutile sur mobile) */
    .section:hover {
        flex: none;
    }

    /* Ajustement des icônes */
    .section .icon {
        font-size: 3rem; /* Réduction de la taille des icônes */
        top: 20%; /* Ajustement de l'emplacement */
    }

    /* Ajustement des titres */
    .section h2 {
        font-size: 1.8rem;
        top: 50%;
    }

    /* Profil centré avec un meilleur espacement */
    .profil {
        flex: none;
        width: 100%;
        padding: 15px;
        text-align: center;
    }

    .profil img {
        width: 100px;
        height: 100px;
    }

    h1 {
        font-size: 2rem;
    }

    p {
        font-size: 1rem;
    }

    /* Footer fixé en bas sans gêner la navigation */
    footer {
        position: relative;
        padding: 5px 0;
        font-size: 0.8rem;
    }
}
