/* =========================================
   STYLES DE BASE ET STRUCTURE GLOBALE
========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    color: #333;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* --- En-tête et Navigation --- */
.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 5%;
    background-color: #fff;
    border-bottom: 1px solid #eee;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 12px; /* L'espace entre l'icône et ton nom */
    font-size: 1.5rem;
    font-weight: bold;
    text-decoration: none;
    color: #111;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* Le style de ta nouvelle icône SVG */
.logo-icon {
    width: 28px;
    height: 28px;
    stroke: #111; /* La couleur des traits de l'appareil photo */
    transition: transform 0.3s ease;
}

/* Un petit effet chic au survol de la souris */
.logo a:hover .logo-icon {
    transform: scale(1.1);
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.main-nav a {
    text-decoration: none;
    color: #555;
    font-size: 0.9rem;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.main-nav a:hover, .main-nav a.active {
    color: #111;
    font-weight: bold;
}

/* --- Boutons globaux --- */
.btn {
    display: inline-block;
    margin-top: 2rem;
    padding: 10px 25px;
    background-color: #111;
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background 0.3s ease;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.btn:hover {
    background-color: #555;
}

/* --- Pied de page --- */
.site-footer {
    text-align: center;
    padding: 2rem;
    background-color: #f9f9f9;
    font-size: 0.8rem;
    color: #777;
    margin-top: auto; /* Pousse le pied de page tout en bas */
}

.social-links {
    margin-top: 1rem;
}

.social-links a {
    color: #555;
    text-decoration: none;
    margin: 0 10px;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: #111;
}

/* =========================================
   PAGE 1 : ACCUEIL
========================================= */
.hero-banner {
    height: 85vh;
    background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('images/photo-accueil.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 300;
    margin-bottom: 1rem;
    letter-spacing: 2px;
    padding: 0 20px;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    font-weight: 300;
    letter-spacing: 1px;
}

.btn-light {
    background-color: #fff;
    color: #111;
}

.btn-light:hover {
    background-color: #e0e0e0;
}

.home-intro {
    padding: 6rem 5%;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.home-intro h2 {
    font-size: 2rem;
    font-weight: normal;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
}

.home-intro p {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.8;
    margin-bottom: 2.5rem;
}

.link-underline {
    color: #111;
    text-decoration: none;
    border-bottom: 1px solid #111;
    padding-bottom: 4px;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    transition: color 0.3s ease, border-color 0.3s ease;
}

.link-underline:hover {
    color: #777;
    border-color: #777;
}

@media (max-width: 600px) {
    .hero-content h1 { font-size: 2.2rem; }
}

/* =========================================
   PAGE 2 : PORTFOLIO ET GALERIE
========================================= */
.portfolio-section {
    padding: 4rem 5%;
    flex: 1;
}

.page-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 3rem;
    font-weight: normal;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* --- Filtres --- */
.portfolio-filters {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.portfolio-filters li {
    cursor: pointer;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #999;
    padding-bottom: 5px;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.portfolio-filters li:hover,
.portfolio-filters li.active-filter {
    color: #111;
    border-bottom: 1px solid #111;
}

.gallery-item.hide {
    display: none;
}

/* --- GRILLE PORTFOLIO : Effet Maçonnerie (Encastré) --- */
.gallery-grid {
    column-count: 1; /* Sur téléphone : 1 seule colonne */
    column-gap: 1.5rem; /* Espace horizontal entre les photos */
}

/* Dès qu'on passe sur une tablette */
@media (min-width: 600px) {
    .gallery-grid {
        column-count: 2; /* 2 colonnes */
    }
}

/* Dès qu'on passe sur un écran d'ordinateur classique */
@media (min-width: 900px) {
    .gallery-grid {
        column-count: 3; /* 3 colonnes */
    }
}

/* Sur les très grands écrans (optionnel pour réduire un peu la taille des verticales) */
@media (min-width: 1200px) {
    .gallery-grid {
        column-count: 4; /* 4 colonnes */
    }
}

.gallery-item {
    break-inside: avoid; /* Empêche l'image d'être coupée entre deux colonnes */
    margin-bottom: 1.5rem; /* Espace vertical entre les photos */
    background-color: transparent;
}

.gallery-item img {
    width: 100%;
    height: auto; /* Conserve 100% de ton cadrage original, aucun rognage */
    display: block;
    transition: transform 0.4s ease;
    cursor: pointer;
}

.gallery-item:hover img {
    transform: scale(1.03); /* Petit zoom élégant au survol */
}/* --- Lightbox (Vue agrandie) --- */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    border: none;
    box-shadow: 0 0 40px rgba(0,0,0,0.9);
    transform: scale(0.9);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    /* ... tes autres styles (max-width, etc.) ... */
    transition: opacity 0.3s ease, transform 0.3s ease; /* Ajoute bien ceci */

}

.modal.active .modal-content {
    transform: scale(1);
    opacity: 1;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: 300;
    cursor: pointer;
    z-index: 1001;
    transition: color 0.3s ease;
}

.close-modal:hover {
    color: #bbb;
}

/* --- Navigation Lightbox (Flèches) --- */
.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.6);
    font-size: 50px;
    font-weight: 300;
    cursor: pointer;
    z-index: 1001;
    padding: 15px 20px;
    user-select: none;
    transition: color 0.3s ease, background-color 0.3s ease;
    border-radius: 5px;
}

.nav-btn:hover {
    color: #fff;
    background-color: rgba(0, 0, 0, 0.5);
}

.prev-btn { left: 20px; }
.next-btn { right: 20px; }

@media (max-width: 600px) {
    .nav-btn { font-size: 35px; padding: 10px; }
    .prev-btn { left: 5px; }
    .next-btn { right: 5px; }
}

/* =========================================
   PAGE 3 : PRESTATIONS
========================================= */
.services-section {
    padding: 4rem 5%;
    flex: 1;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.intro-text {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem auto;
    font-size: 1.1rem;
    color: #555;
    line-height: 1.8;
}

.pricing-grid {
    display: grid;
    gap: 2rem;
    margin-bottom: 4rem;
    grid-template-columns: 1fr;
}

@media (min-width: 900px) {
    .pricing-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.pricing-card {
    background-color: #fff;
    border: 1px solid #eaeaea;
    padding: 3rem 2rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.pricing-card.featured {
    border: 1px solid #111;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.pricing-card h3 {
    font-size: 1.5rem;
    font-weight: normal;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.pricing-card .price {
    font-size: 1.2rem;
    font-weight: bold;
    color: #111;
    margin-bottom: 2rem;
}

.features {
    list-style: none;
    margin-bottom: 2rem;
    flex: 1;
}

.features li {
    font-size: 0.9rem;
    color: #555;
    padding: 0.8rem 0;
    border-bottom: 1px solid #f4f4f4;
}

.features li:last-child {
    border-bottom: none;
}

.btn.outline-btn {
    background-color: transparent;
    color: #111;
    border: 1px solid #111;
}

.btn.outline-btn:hover {
    background-color: #111;
    color: #fff;
}

.a-la-carte {
    text-align: center;
    padding-top: 3rem;
    border-top: 1px solid #eaeaea;
}

.a-la-carte h3 {
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
}

.a-la-carte p {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 0.5rem;
}

/* =========================================
   PAGE 4 : À PROPOS
========================================= */
.about-section {
    padding: 4rem 5%;
    flex: 1;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.about-grid {
    display: flex;
    flex-direction: column;
    gap: 4rem;
    align-items: center;
}

.about-image {
    width: 100%;
    max-width: 500px;
}

.about-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.about-text {
    max-width: 600px;
}

.about-text h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    font-weight: normal;
}

.about-text p {
    margin-bottom: 1.5rem;
    color: #555;
    font-size: 1.05rem;
    line-height: 1.8;
}

@media (min-width: 900px) {
    .about-grid {
        flex-direction: row;
        align-items: flex-start;
    }
    .about-image {
        flex: 1;
    }
    .about-text {
        flex: 1;
        padding-left: 2rem;
    }
}

/* =========================================
   PAGE 5 : CONTACT
========================================= */
.contact-section {
    padding: 4rem 5%;
    flex: 1;
    max-width: 1000px;
    margin: 0 auto;
    width: 100%;
}

.contact-grid {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.contact-info {
    flex: 1;
}

.contact-info h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: normal;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-info p {
    color: #555;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.contact-form-container {
    flex: 1;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #777;
    margin-bottom: 0.5rem;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 10px 0;
    font-size: 1rem;
    color: #333;
    border: none;
    border-bottom: 1px solid #ccc;
    background-color: transparent;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-bottom: 1px solid #111;
}

@media (min-width: 800px) {
    .contact-grid {
        flex-direction: row;
        justify-content: space-between;
    }
    .contact-info {
        padding-right: 3rem;
    }
}

/* =========================================
   RAFFINEMENTS & ANIMATIONS MODERNES
========================================= */

/* 1. Défilement doux et sélection de texte chic */
html {
    scroll-behavior: smooth;
}

::selection {
    background-color: #e0e0e0; /* Gris perle élégant */
    color: #111;
}

/* 2. Apparition en douceur des pages au chargement */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

main {
    animation: fadeUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

/* 3. Boutons plus dynamiques (effet de soulèvement subtil) */
.btn {
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* 4. Animation du menu de navigation (soulignement fluide) */
.main-nav a {
    position: relative;
    padding-bottom: 5px;
}

.main-nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: 0;
    left: 50%;
    background-color: #111;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.main-nav a:hover::after, 
.main-nav a.active::after {
    width: 100%;
}

/* 5. Effet "Focus" sur la grille du portfolio */
.gallery-grid {
    /* Prépare le terrain pour l'effet de survol global */
}

.gallery-grid:hover .gallery-item {
    opacity: 0.5; /* Assombrit doucement toutes les photos */
}

.gallery-grid .gallery-item {
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.gallery-grid .gallery-item:hover {
    opacity: 1; /* Garde la photo survolée parfaitement lumineuse */
    z-index: 1;
}

/* 6. Adoucir les champs du formulaire de contact au focus */
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    border-bottom: 1px solid #111;
    box-shadow: 0 10px 10px -10px rgba(0,0,0,0.1); /* Petite ombre douce sous le trait */
    transform: translateY(-1px);
}
/* 7. Apparition progressive au défilement (Scroll Reveal) */
.fade-in-on-scroll {
    opacity: 0;
    transform: translateY(40px); /* L'élément commence 40px plus bas */
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: opacity, transform; /* Optimisation pour que l'animation soit ultra fluide */
}

/* La classe qui sera ajoutée par le JavaScript quand l'élément apparaîtra à l'écran */
.fade-in-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0); /* L'élément remonte à sa place naturelle */
}