@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600;700&display=swap');

/* ===== SYSTÈME DE GRILLE RIGIDE - STYLE PERRONET FRÈRES ===== */

:root {
    /* Palette monochrome sophistiquée */
    --noir: #000000;
    --blanc: #ffffff;
    --gris-clair: #f5f5f5;
    --gris-moyen: #666666;
    
    /* Typographie système */
    --font-primary: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    
    /* Grille de référence RIGIDE - PROPORTIONS AJUSTÉES */
    --margin-lateral: 5vw;         /* Marges encore plus petites - logo plus proche du bord */
    --photo-width: 54vw;           /* Photo légèrement réduite pour laisser plus de place au texte */
    --photo-height: 65vh;          /* Hauteur photo = 65% de la hauteur viewport */
    --gap-photo-text: 2vw;         /* Gap réduit = 2% de la largeur viewport */
    --text-width: 28vw;            /* Zone de texte beaucoup plus large */
    
    --transition-speed: 0.3s;
}

/* ===== RESET STRICT ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    font-size: 14px;
    line-height: 1.4;
    color: var(--noir);
    background: var(--blanc);
    font-weight: 400;
    margin-bottom: 0; /* Pas besoin de marge body */
}

/* ===== HEADER NAVIGATION SIMPLE ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--blanc);
    border-bottom: 1px solid transparent;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 16px; /* Padding réduit : 5px vertical, 16px horizontal */
    max-width: none;
}

.logo {
    font-size: 52px;
    font-weight: 700;
    text-decoration: none;
    color: #0066cc; /* Logo en bleu */
    letter-spacing: 4px;
}

.nav-right {
    display: flex;
    gap: 30px;
}

.nav-link {
    text-decoration: none;
    color: var(--noir);
    font-size: 14px;
    font-weight: 400;
    transition: opacity var(--transition-speed);
}

.nav-link:hover {
    opacity: 0.6;
}

/* ===== CONTAINER PRINCIPAL - SCROLLING INFINI ===== */
.main-container {
    margin-top: 180px; /* ESPACE réduit - photo remonte */
    /* Pas de hauteur fixe - permet le scroll naturel */
}

.project-container {
    /* SCROLLING INFINI - tous les projets empilés verticalement */
    max-width: none;
    /* Chaque projet aura 100vh de hauteur */
}

/* ===== PAGE PROJET INDIVIDUELLE - PLEINE HAUTEUR ===== */
.project-page {
    height: calc(100vh - 70px); /* Moins la hauteur du footer */
    border-bottom: 1px solid transparent;
    position: relative;
    display: flex;
    align-items: flex-start;
}

.project-content {
    width: 100%;
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    margin-left: 12vw; /* DÉCALAGE HORIZONTAL réduit - plus de place pour le texte */
    margin-right: 5vw;
    gap: var(--gap-photo-text);
    padding-top: 20px !important; /* Photo remonte encore plus */
}

/* Structure flexbox simplifiée - plus de grille complexe */

/* ===== ZONE PHOTO CENTRALE FIXE ===== */
.project-photo-zone {
    position: relative;
    width: 900px;
    height: 600px;
    overflow: hidden;
    background: linear-gradient(135deg, #f8f8f8 0%, #e8e8e8 100%); /* Dégradé subtle pendant chargement */
    flex-shrink: 0;
    align-self: flex-start;
    margin-left: auto;
}

/* Indicateur de chargement subtil */
.project-photo-zone::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    transform: translate(-50%, -50%);
    border: 2px solid var(--gris-moyen);
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: loading-spin 1s linear infinite;
    opacity: 0.3;
    z-index: 0;
}

/* Animation du loader */
@keyframes loading-spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Masquer le loader quand une image est chargée - Compatible tous navigateurs */
.project-photo-zone.loaded::before {
    opacity: 0;
}

.project-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity var(--transition-speed);
}

.project-image.active {
    opacity: 1;
}

/* Contrôles de navigation invisibles jusqu'au hover */
.photo-controls {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    pointer-events: none;
    z-index: 10; /* Au-dessus des images */
}

.control-zone {
    flex: 1;
    position: relative;
    cursor: pointer;
    pointer-events: all;
    display: flex;
    align-items: center;
}

.control-zone.prev {
    justify-content: flex-start;
    padding-left: 20px;
}

.control-zone.next {
    justify-content: flex-end;
    padding-right: 20px;
}

.control-zone button {
    opacity: 0;
    transition: opacity var(--transition-speed);
    background: rgba(0, 0, 0, 0.7);
    color: var(--blanc);
    border: none;
    padding: 15px 20px;
    font-size: 20px;
    cursor: pointer;
    pointer-events: all;
    border-radius: 3px;
}

.control-zone:hover button {
    opacity: 1;
}

/* ===== ZONE TEXTE STRUCTURÉE ===== */
.project-text {
    width: var(--text-width);
    flex-shrink: 0;
}

.project-title {
    font-size: 16px;
    font-weight: 400;
    color: var(--noir);
    margin-bottom: 5px;
}

.project-subtitle {
    font-size: 16px;
    font-weight: 400;
    color: var(--noir);
    margin-bottom: 10px;
}

.project-year {
    font-size: 16px;
    font-weight: 400;
    color: var(--noir);
    margin-bottom: 20px;
}

.project-description {
    font-size: 11px;
    line-height: 1.6;
    color: var(--noir);
    margin-bottom: 20px;
}

.project-credits {
    font-size: 12px;
    line-height: 1.4;
    color: var(--gris-moyen);
    margin-top: 10px;
}

/* ===== FOOTER FIXE  ===== */
.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--blanc);
    border-top: 1px solid transparent;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding: 5px 16px; /* Harmonisé avec le header */
    height: 70px; /* Hauteur fixe augmentée (+10px seulement) */
    font-size: 12px;
    line-height: 1.4; /* Amélioration lisibilité */
}

.footer-left {
    display: flex;
    flex-direction: column;
    gap: 6px; /* +1px gap */
}

.brand {
    font-weight: 700;
    letter-spacing: 1px;
    font-size: 11px; /* +1pt */
}

.tagline {
    color: var(--gris-moyen);
    font-size: 11px;
}

.memory {
    color: var(--gris-moyen);
    font-size: 11px;
}

.instagram-link {
    color: var(--noir);
    text-decoration: none;
    font-size: 12px;
    transition: opacity var(--transition-speed);
    margin-top: 2px;
}

.instagram-link:hover {
    opacity: 0.6;
}

.footer-right {
    display: flex;
    flex-direction: column;
    gap: 6px; /* +1px gap */
    text-align: right;
}

.index-link {
    color: var(--noir);
    text-decoration: underline;
    cursor: pointer;
    font-size: 11px; /* +2pt TEXTE DROITE */
    font-weight: 500;
    transition: opacity var(--transition-speed);
}

.index-link:hover {
    opacity: 0.6;
}

.contact-info {
    color: var(--gris-moyen);
    font-size: 11px; /* +1pt TEXTE DROITE */
}

.contact-info div {
    margin-bottom: 3px;
}

.status-info {
    color: var(--noir);
    font-size: 11px; /* +1pt TEXTE DROITE */
    font-weight: 500;
    margin-top: 4px;
}

.location-separator {
    color: var(--gris-moyen);
    margin: 0 4px;
}

/* ===== ANIMATIONS ET INTERACTIONS ===== */
.project-page {
    opacity: 1; /* Tous visibles immédiatement */
}

/* Fix pour transition des images */
.project-image {
    transition: opacity 0.3s ease-in-out !important;
}

/* ===== RESPONSIVE - ADAPTATION MOBILE ===== */
@media (max-width: 1200px) {
    :root {
        --margin-lateral: 6vw;         /* Marges plus petites sur écrans moyens */
        --photo-width: 54vw;           /* Photo ajustée pour écrans moyens */
        --photo-height: 62vh;          /* Hauteur ajustée */
        --text-width: 20vw;            /* Texte élargi comme sur desktop */
        --gap-photo-text: 10vw;         /* Gap réduit */
    }
}

@media (max-width: 900px) {
    .project-content {
        flex-direction: column;
        gap: 20px;
        padding-top: 120px !important;
        margin: 0 4vw; /* Marges réduites sur mobile */
    }
    
    .project-photo-zone {
        width: 100%;
        height: 40vh; /* Hauteur réduite sur mobile */
        max-width: none;
    }
    
    .project-text {
        width: 100%;
        max-width: none;
    }
}

/* ===== PAGE À PROPOS - STYLE ÉDITORIAL ===== */
.about-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 var(--margin-lateral);
    padding-bottom: 90px;
}

.content-block {
    margin-bottom: 40px;
}

.content-block h1 {
    font-size: 32px;
    font-weight: 400;
    margin-bottom: 40px;
    color: var(--noir);
}

.content-block h2 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--noir);
    letter-spacing: 1px;
}

.content-block h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--noir);
}

.info-block p {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 8px;
    color: var(--noir);
}

.contact-details {
    margin-bottom: 20px;
}

.philosophy-text {
    margin-top: 20px;
}

.philosophy-text p {
    margin-bottom: 12px;
}

.architect-profile {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.architect-profile:last-child {
    border-bottom: none;
}

.projects-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.project-item {
    font-size: 14px;
    line-height: 1.4;
}

.project-item strong {
    font-weight: 700;
}

.project-item span {
    color: var(--gris-moyen);
}

.view-all-link {
    color: var(--noir);
    text-decoration: none;
    font-weight: 700;
    transition: opacity var(--transition-speed);
}

.view-all-link:hover {
    opacity: 0.6;
}

.nav-link.active {
    opacity: 0.6;
}

/* ===== FIN DES STYLES ===== */