
/* #region HERO */
.hero {
    text-align: center;
    padding: 50px 30px;
    position: relative;
    overflow: hidden;
}

.hero p {
    margin-bottom: 20px;
    color: var(--texte-secondaire);
}

#nom {
    color: var(--texte);
    letter-spacing: -1px;
    margin-bottom: 12px;
}

#presentation {
    font-size: 22px;
    line-height: 1.5;
    min-height: 3em;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 2px;
    text-transform: uppercase;
    text-shadow: 0 0 40px var(--ombre-texte),
    0 0 25px var(--ombre-texte);
}



.bouton {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--accent);
    color: #FFFFFF;
    border-radius: 4px;
    margin: 0 5px;
}

.bouton:hover {
    background-color: var(--accent-hover);
}


.bouton-secondaire {
    background-color: var(--fond);
    color: var(--accent);
    border: 1px solid var(--accent);
}

.bouton-secondaire:hover {
    background-color: var(--fond);
    color: var(--accent-hover);
    border-color: var(--accent-hover);
}

.hero-boutons {
    opacity: 1;
}
/* #endregion */


/* #region ZONE 3D */
.zone {
    width: 100%;
    height: 500px;
}

canvas {
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
}
/* #endregion */


/* #region TECHNOLOGIES */
.technos {
    margin-top: 70px;
    margin-bottom: 70px;
    opacity: 0;
}

.technos ul {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.technos li {
    background-color: var(--technologie);
    padding: 5px 12px;
}
/* #endregion */


/* #region APERÇU DES PROJETS */

.projects-title {
    opacity: 0;
    transform: translateY(50px);
}

.projects-title.visible {
    opacity: 1;
    transform: translateY(0);
}

.apercu-projets {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    width: 95vw;
    max-width: none;
    margin: 0 auto;
    padding: 16px 24px;
}


/* #region CARROUSEL 3D */
.carousel-conteneur {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    perspective: 1000px;
}

.carousel-3d {
    position: relative;
    width: 450px;
    height: 360px;
    margin: 60px auto;
    transform-style: preserve-3d;
}

.carte-3d {
    position: absolute;
    top: 0;
    left: 0;

    width: 450px;
    height: 360px;

    display: grid;
    grid-template-rows: 20% 80%;

    background-color: var(--carte);
    border: 1px solid var(--accent);
    border-radius: 8px;

    overflow: hidden;
    text-align: center;
    cursor: pointer;

    transition: transform 0.2s ease, opacity 0.5s ease;
}

.carte-3d h3 {
    display: flex;
    align-items: center;
    justify-content: center;

    margin: 0;
    padding: 8px;
    font-size: 18px;
}

.image-carte {
    width: 100%;
    height: 100%;
    min-height: 0;
    overflow: hidden;
}

.image-carte img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
/* #endregion */
/* #endregion */

/* #region APERÇU DES AVIS */
.appercu-avis {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.avis-boutons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}
/* #endregion */



/* #region RESPONSIVE */

/* Tablettes et petits ordinateurs */
@media (max-width: 1024px) {
    .hero { padding: 40px 24px; }
    #presentation { font-size: 20px; }
    .zone { height: 420px; }
    .carousel-3d, .carte-3d { width: 380px; height: 300px; }
    .carousel-3d { margin: 50px auto; }
}

/* Mobiles */
@media (max-width: 600px) {
    .hero { padding: 35px 0; }
    #presentation { font-size: 16px; letter-spacing: 1px; }
    .hero-boutons { display: flex; flex-direction: column; align-items: center; gap: 10px; width: 100%; }
    .bouton { width: 100%; max-width: 240px; margin: 0; text-align: center; }
    .zone { height: 350px; }
    .technos { margin-top: 40px; margin-bottom: 40px; }
    .technos ul { justify-content: center; gap: 8px; }
    .technos li { padding: 5px 10px; }
    .apercu-projets { padding: 16px 8px; }
    .projects-title { text-align: center; width: 100%; }
    .carousel-3d, .carte-3d { width: 280px; height: 220px; }
    .carousel-3d { margin: 35px auto; }
    .carte-3d h3 { font-size: 16px; }
    .carte-3d p { font-size: 14px; line-height: 1.5; }
    .carousel-astuce { width: 100%; padding: 0 15px; text-align: center; font-size: 12px; line-height: 1.4; }
}

/* #endregion */
