/* style-pages.css - Styles spécifiques aux pages FO */

/* ================================================
   LAYOUT — FOOTER
   ================================================ */

.main-footer {
    background: var(--primary);
    color: white;
    padding: 2rem 0 0.75rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.footer-section h3 {
    color: white;
    margin-bottom: 0.5rem;
    font-size: 1.15rem;
}

.footer-section h4 {
    color: white;
    margin-bottom: 0.5rem;
    font-size: 1.05rem;
}

.footer-section p {
    font-size: 0.9rem;
    margin: 0;
    opacity: 0.9;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.3rem;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
}

.footer-bottom a {
    color: white;
    transition: opacity 0.3s;
}

.footer-bottom a:hover {
    opacity: 0.8;
}

/* ================================================
   COMPOSANTS — ALBUM PHOTO
   ================================================ */

.album-access {
    max-width: 500px;
    margin: 0 auto;
}

.access-form-wrapper {
    background: white;
    padding: 3rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}

.help-text {
    margin-top: 2rem;
    text-align: center;
    color: var(--text-light);
}

.album-header {
    text-align: center;
    margin-bottom: 3rem;
}

.album-description {
    font-size: 1.1rem;
    margin: 1rem auto;
    max-width: 800px;
    line-height: 1.6;
    color: var(--text-light);
}

.photo-count {
    color: var(--text-light);
    font-size: 1.1rem;
}

.album-actions {
    text-align: center;
    margin-bottom: 2rem;
}

.album-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

.album-photo {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.album-photo img {
    width: 100%;
    cursor: pointer;
    transition: var(--transition);
}

.album-photo:hover img {
    transform: scale(1.05);
}

.download-btn {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    opacity: 0;
    transition: var(--transition);
}

.album-photo:hover .download-btn {
    opacity: 1;
}

/* ================================================
   COMPOSANTS — LIGHTBOX GALERIE
   ================================================ */

.lightbox {
    display: none;
    position: fixed;
    z-index: 10000;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    align-items: center;
    justify-content: center;
}

.lightbox-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    cursor: pointer;
    z-index: 1;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 1001;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    font-size: 1.8rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s;
}

.lightbox-close:hover {
    background: rgba(0, 0, 0, 0.9);
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1001;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.3);
    color: white;
    border: none;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(0, 0, 0, 0.6);
}

.lightbox-prev {
    left: 0.5rem;
}

.lightbox-next {
    right: 0.5rem;
}

#lightbox-caption {
    position: absolute;
    bottom: calc(2rem + 50px);
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 1.1rem;
    font-family: var(--font-body);
    text-align: center;
    max-width: 90%;
    line-height: 1.6;
    text-shadow: 0 2px 8px rgba(0,0,0,0.9), 0 0 20px rgba(0,0,0,0.5);
    font-weight: 400;
}

/* Titre en gras dans le caption lightbox (si présent) */
#lightbox-caption strong {
    font-weight: 700;
}

/* ================================================
   COMPOSANTS — ABOUT PAGE
   ================================================ */

.about-wrapper {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 3rem;
    align-items: center;
}

.about-image {
    width: 100%;
    border-radius: var(--radius-md);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.about-text {
    line-height: 1.8;
}

/* ================================================
   COMPOSANTS — INSTAGRAM TILE
   ================================================ */

.instagram-tile {
    background: linear-gradient(135deg, #833ab4 0%, #fd1d1d 50%, #fcb045 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 250px;
    color: white;
    text-decoration: none;
    transition: var(--transition);
}

.instagram-tile:hover {
    opacity: 0.9;
    transform: translateY(-4px);
}

.instagram-content {
    text-align: center;
    padding: 2rem;
}

.instagram-content p {
    margin-top: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
}

/* ================================================
   COMPOSANTS — CTA SECTION
   ================================================ */

.cta-section {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    text-align: center;
    padding: 5rem 0;
}

.cta-section h2 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-section p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* ================================================
   COMPOSANTS — ICÔNE STATS
   ================================================ */

/* Style icône stats */
.stat-icon {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    filter: grayscale(30%);
    opacity: 0.85;
}

/* ================================================
   UTILITAIRES
   ================================================ */

.text-center {
    text-align: center;
}

.no-photos,
.no-data {
    text-align: center;
    padding: 3rem;
    color: var(--text-light);
    font-size: 1.1rem;
}

/* ================================================
   RESPONSIVE
   ================================================ */

@media (max-width: 992px) {
    .masonry-grid {
        column-count: 2;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 818px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }

    .hero-title {
        font-size: 2.8rem;
    }

    .nav-menu {
        position: fixed;
        top: 84px;
        left: -100%;
        width: 100%;
        flex-direction: column;
        background: white;
        padding: 2rem;
        box-shadow: var(--shadow-lg);
        transition: var(--transition);
    }

    .nav-menu.active {
        left: 0;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .masonry-grid {
        column-count: 1;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .service-item {
        flex-direction: column;
    }

    .service-number {
        min-width: auto;
    }
}

@media (max-width: 768px) {
    .about-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}
