/* Styles pour la page d'accueil temporaire */

/* Styles de base pour la mise en page de la page d'accueil */
.temp-home-container {
    width: 100%;
    height: 100svh;
    padding: 80px 40px 40px 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-sizing: border-box;
    overflow: hidden; /* Contient le débordement à l'intérieur du container */
}

/* Cercle de fond */
.background-circle {
    position: fixed;
    top: -20vw;
    right: -15vw;
    width: 50vw;
    height: 50vw;
    border-radius: 100%;
    background-color: var(--secondary);
    filter: blur(60px);
    z-index: -1;
}

/* Section haute avec les projets */
.top-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    max-height: 45vh;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    width: 75%;
    gap : 30px;
    padding: 0 0 0 40px;
    margin: 0;
}

/* Style commun pour toutes les images de projet */
.project-image {
    aspect-ratio: 1;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.caption-text {
    margin-top: 15px;
    text-align: right;
    color: var(--tertiary);
    width: 75%;
    padding: 0 0 0 40px;
    margin: 15px 0 0 0;
    font-size: 0.48vw;
}

/* Section basse avec les informations */
.bottom-section {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    width: 100%;
    padding: 0 20px;
    flex-shrink: 0;
    max-height: 40vh;
    position: relative;
}

/* Section gauche avec le nom */
.left-section {
    display: flex;
    flex-direction: column;
}

.name-top {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
}

.name-text {
    font-size: 6vw;
    font-weight: 700;
    color: var(--secondary);
    line-height: 0.8;
    margin: 0;
}

.profile-image {
    height: 4.5vw;
    width: auto;
    margin-left: 2vw;
}

/* Section droite avec les informations */
.right-section {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: flex-end;
}

.info-top {
    margin-bottom: 10px;
}

.construction-text {
    font-size: 1.6vw;
    font-weight: 400;
    color: var(--primary);
    text-align: right;
}

.info-middle {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.email-text {
    font-size: 1.5vw;
    font-weight: 400;
    color: var(--primary);
}

.dash {
    width: 2.5vw;
    min-width: 30px;
    max-width: 50px;
    height: 0.15vw;
    min-height: 2px;
    background-color: var(--primary);
    margin: 0 0.9vw;
    border-radius: 1px;
}

.location-text, .phone-number {
    font-size: 1.3vw;
    font-weight: 700;
    color: var(--primary);
    position: relative;
    display: inline-block;
}

/* Utilisation de l'héritage pour les liens */
.location-text a, .location-text a:hover, .phone-number a, .phone-number a:hover {
    color: inherit;
    text-decoration: none;
}

.location-text::before, .phone-number::before {
    content: '';
    position: absolute;
    top: 0.5em;
    left: -0.05em;
    right: -0.05em;
    bottom: 0.5em;
    background-color: var(--secondary);
    filter: blur(3px);
    z-index: -1;
}

/* Section centrale avec le tiret */
.center-section {
    position: absolute;
    left: 45%;
    bottom: 0;
    transform: translateX(-50%);
    display: flex;
    align-items: flex-end;
    height: 100%;
    z-index: 1;
}

.central-dash {
    height: 0.5vw;
    width: 15vw;
    min-width: 150px;
    max-width: 300px;
    background-color: var(--secondary);
    transform-origin: center;
    margin-bottom: 2.4vw;
    border-radius: 2px;
}

.info-bottom {
    display: flex;
    align-items: center;
}

.profession-text {
    font-size: 6vw;
    font-weight: 700;
    color: var(--secondary);
    line-height: 0.8;
    margin: 0;
}

/* Version Mobile */
@media (max-width: 768px) {
    /* Configuration du container pour mobile */
    .temp-home-container {
        padding: 0;
        min-height: 100svh;
        height: auto;
        overflow-y: auto; /* Permet le défilement sur mobile */
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
    }
    
    /* Section haute - une seule image principale */
    .top-section {
        height: 45vh;
        max-height: 45vh;
        flex: none;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        padding: 20px 20px 0 20px;
        margin: 0;
    }
    
    .projects-grid {
        display: block;
        width: 100%;
        height: 100%;
        padding: 0;
        margin: 0;
        gap: 0;
    }
    
    /* Masquer les images 2 et 3 sur mobile */
    .project-image:nth-child(2),
    .project-image:nth-child(3) {
        display: none;
    }
    
    /* Image principale prend toute la hauteur disponible */
    .project-image:first-child {
        height: 100%;
        aspect-ratio: unset;
    }
    
    /* Les propriétés width, height et object-fit sont déjà définies dans le sélecteur .project-image img */
    
    /* Masquer le texte de caption en haut */
    .caption-text {
        display: none;
    }
    
    /* Section basse - restructuration complète */
    .bottom-section {
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: space-evenly;
        padding: 0px 20px;
        max-height: none;
        height: auto;
        position: relative;
    }
    
    /* Masquer la section centrale (tiret) */
    .center-section {
        display: none;
    }
    
    /* Section milieu - nom et photo */
    .left-section {
        order: 1;
        margin-bottom: 0px;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        position: relative;
    }
    
    .name-top {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        margin-bottom: 0;
        width: 100%;
        position: relative;
    }
    
    .name-bottom {
        margin-top: 0px;
        width: 100%;
        text-align: left;
    }
    
    .profile-image {
        position: absolute;
        right: 0;
        top: 0;
        height: calc(10vw * 1 * 2 + 5px);
        width: auto;
        margin-left: 0;
        flex-shrink: 0;
    }
    
    .name-text {
        font-size: 10vw;
        font-weight: 700;
        color: var(--secondary);
        line-height: 1.1;
        margin: 0;
    }
    
    .name-bottom {
        margin-top: 5px;
    }
    
    /* ARCHITECTE en dessous */
    .profession-mobile {
        font-size: 14.1vw;
        font-weight: 700;
        color: var(--secondary);
        line-height: 0.8;
        margin: 10px 0 0 0;
    }
    
    /* Section droite - informations de contact */
    .right-section {
        order: 2;
        align-items: flex-end;
        text-align: right;
        margin-bottom: 50px;
    }
    
    .construction-text {
        font-size: 24px;
        font-weight: 400;
        color: var(--primary);
        margin-bottom: 0px;
    }
    
    .info-middle {
        flex-direction: column;
        align-items: flex-end;
        margin-bottom: 10px;
    }
    
    .email-text {
        font-size: 4vw;
        font-weight: 400;
        color: var(--primary);
        margin-bottom: 5px;
    }
    
    .dash {
        display: none;
    }
    
    .location-text, .phone-number {
        font-size: 20px;
        font-weight: 700;
        color: var(--primary);
    }
    
    .location-text a, .location-text a:hover, .phone-number a, .phone-number a:hover {
        color: inherit;
        text-decoration: none;
    }
    
    /* Masquer le texte ARCHITECTE de la section droite */
    .info-bottom {
        display: none;
    }
    
    /* Texte de référence en bas - visible uniquement au scroll */
    .reference-text-mobile {
        position: absolute;
        bottom: -60px;
        left: 20px;
        right: 20px;
        font-size: 10px;
        color: var(--tertiary);
        text-align: left;
        display: block;
        z-index: 10;
        background-color: var(--background);
        padding: 10px 0;
    }
    
    /* Masquer les éléments desktop sur mobile */
    .profession-mobile {
        display: block;
    }
    
    /* Masquer le texte de référence desktop sur mobile */
    .reference-text-mobile {
        display: block;
    }
}

/* Masquer les éléments mobile sur desktop */
@media (min-width: 769px) {
    .profession-mobile {
        display: none;
    }
    
    .reference-text-mobile {
        display: none;
    }
}
