/* ==========================================
   STYLES SPÉCIFIQUES À LA PAGE À PROPOS
   ========================================== */

.mobile-menu ul {
    counter-reset: menu-counter;
}

/* Logo noir dans la navbar pour la page à propos */
.page-about .nav-logo-img {
    filter: none;
    height: 80px;
}

.page-about.navbar.scrolled .nav-logo-img {
    height: 50px;
}

/* Animation navbar reveal pour la page à propos */
@keyframes navbarContentReveal {
    0% {
        clip-path: inset(0 100% 0 0);
        opacity: 0;
    }
    100% {
        clip-path: inset(0 0 0 0);
        opacity: 1;
    }
}

@keyframes navbarTraitReveal {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

.page-about .navbar.reveal .nav-links {
    animation: navbarContentReveal 0.8s ease-in-out forwards;
}


.page-about .navbar.reveal .nav-logo::after {
    animation: navbarTraitReveal 0.8s ease-in-out forwards;
}

/* Header noir pour la page à propos */
.page-about .navbar .nav-links a {
    color: #000;
}

.page-about .nav-logo::after {
    background: #000;
}

.page-about .nav-links li::before {
    background: #000;
}

/* Hover et état actif pour la page à propos */
.page-about .nav-links a:hover {
    color: #8A4A3F !important;
}

.page-about .nav-links a.active {
    color: #8A4A3F !important;
}

.about-content-section {
    padding: 140px 0 100px;
    background: #fff;
    position: relative;
}

.social-sidebar {
    display: none;
}

.about-intro {
    max-width: 1200px;
    margin: 0 auto 60px;
    padding: 0 80px;
    text-align: left;
}

.about-subtitle {
    font-family: "din-2014", sans-serif;
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 2.5px;
    color: #a95d4f;
    text-transform: uppercase;
    margin-bottom: 30px;
}

.about-intro-title {
    font-family: "orpheuspro", serif;
    font-size: 42px;
    font-weight: 300;
    color: #333;
    margin-bottom: 0;
    line-height: 1.4;
    letter-spacing: 0px;
    text-align: left;
}

.about-description {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 80px;
    text-align: left;
}

.about-description p {
    font-size: 15px;
    font-style: normal;
    font-weight: 400;
    color: #666;
    font-family: "din-2014", sans-serif;
    line-height: 1.8;
    margin-bottom: 25px;
    text-align: left;
}

@media (max-width: 1024px) {
    .about-intro {
        padding: 0 50px;
    }

    .about-description {
        padding: 0 50px;
    }
}

@media (max-width: 768px) {
    .about-content-section {
        padding: 100px 0 60px;
    }

    .about-intro {
        margin-bottom: 40px;
        padding: 0 30px;
    }

    .about-subtitle {
        font-size: 10px;
        letter-spacing: 2px;
        margin-bottom: 20px;
    }

    .about-intro-title {
        font-size: 28px;
        line-height: 1.3;
        margin-bottom: 0;
    }

    .about-description {
        padding: 0 30px;
    }

    .about-description p {
        font-size: 14px;
        line-height: 1.7;
        margin-bottom: 20px;
    }
}

/* Personal Gallery Section - Mosaïque + Texte */
.personal-gallery-section {
    width: 100%;
    background: #fff;
    padding: 80px 0;
}

.personal-gallery-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 80px;
    display: flex;
    gap: 60px;
    background: #f2f2f0;
    align-items: center;
}

.gallery-mosaic {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    position: relative; /* pour le loader overlay */
    min-height: 200px;
}

/* Loader overlay sur la mosaïque */
.gallery-mosaic-loader {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f2f2f0;
    z-index: 2;
    transition: opacity 0.4s ease;
}

.gallery-mosaic-loader.hidden {
    opacity: 0;
    pointer-events: none;
}

.gallery-mosaic-ring {
    width: 32px;
    height: 32px;
    border: 1.5px solid rgba(0, 0, 0, 0.1);
    border-top-color: #a95d4f;
    border-radius: 50%;
    animation: mosaic-spin 0.85s linear infinite;
}

@keyframes mosaic-spin {
    to { transform: rotate(360deg); }
}

.mosaic-item {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1;
}

.mosaic-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: transform 0.4s ease, opacity 0.5s ease;
}

.mosaic-item img.ap-loaded {
    opacity: 1;
}

.mosaic-item:hover img {
    transform: scale(1.05);
}

.signature-under-photo {
    display: none;
}

.signature-photo {
    width: 120px;
    height: auto;
    opacity: 0.8;
}

.gallery-text-content {
    flex: 1;
    padding-left: 20px;
}

.gallery-text-content h2 {
    font-family: "orpheuspro", serif;
    font-size: 36px;
    font-weight: 300;
    color: #333;
    margin-bottom: 25px;
    line-height: 1.3;
}

.gallery-text-content p {
    font-family: "din-2014", sans-serif;
    font-size: 15px;
    font-weight: 400;
    color: #666;
    line-height: 1.8;
    margin-bottom: 20px;
}

/* Tablette : layout côte-à-côte conservé, proportions rééquilibrées */
@media (max-width: 1024px) {
    .personal-gallery-container {
        padding: 0 30px;
        gap: 30px;
        align-items: center;
    }

    /* Mosaïque et texte se partagent l'espace équitablement */
    .gallery-mosaic {
        flex: 1 1 0;
        gap: 10px;
    }

    .gallery-text-content {
        flex: 1 1 0;
        padding-left: 0;
    }

    .gallery-text-content h2 {
        font-size: 26px;
        margin-bottom: 18px;
    }

    .gallery-text-content p {
        font-size: 14px;
        line-height: 1.7;
    }
}

@media (max-width: 768px) {
    .personal-gallery-section {
        padding: 60px 0;
    }

    .personal-gallery-container {
        flex-direction: column;
        align-items: stretch; /* pleine largeur pour chaque enfant */
        padding: 0 30px;
        gap: 40px;
    }

    .gallery-mosaic {
        flex: none;
        width: 100%;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .mosaic-item {
        aspect-ratio: 1;
    }

    .gallery-text-content {
        flex: none;
        width: 100%;
        padding-left: 0;
    }

    .gallery-text-content h2 {
        font-size: 28px;
        margin-bottom: 20px;
    }

    .gallery-text-content p {
        font-size: 14px;
        line-height: 1.7;
    }
}
