.elementor-1558 .elementor-element.elementor-element-c2ae297{margin-top:100px;margin-bottom:100px;padding:0px 0px 0px 0px;}.elementor-widget-heading .elementor-heading-title{font-family:var( --e-global-typography-primary-font-family ), Sans-serif;font-size:var( --e-global-typography-primary-font-size );font-weight:var( --e-global-typography-primary-font-weight );text-transform:var( --e-global-typography-primary-text-transform );color:var( --e-global-color-primary );}.elementor-1558 .elementor-element.elementor-element-2db7f62 > .elementor-widget-container{padding:0px 0px 0px 20px;border-style:solid;border-width:0px 0px 0px 6px;border-color:var( --e-global-color-accent );border-radius:0px 0px 0px 0px;}.elementor-1558 .elementor-element.elementor-element-2db7f62 .elementor-heading-title{font-family:"Oswald", Sans-serif;font-size:50px;font-weight:600;text-transform:uppercase;}.elementor-1558 .elementor-element.elementor-element-e3bf4b7 > .elementor-widget-container{margin:0px 0px 0px 0px;padding:0px 0px 0px 0px;}.elementor-widget-button .elementor-button{background-color:var( --e-global-color-accent );font-family:var( --e-global-typography-accent-font-family ), Sans-serif;font-weight:var( --e-global-typography-accent-font-weight );}.elementor-1558 .elementor-element.elementor-element-a0d5097 .elementor-button:hover, .elementor-1558 .elementor-element.elementor-element-a0d5097 .elementor-button:focus{background-color:var( --e-global-color-secondary );color:var( --e-global-color-accent );border-color:var( --e-global-color-accent );}.elementor-1558 .elementor-element.elementor-element-a0d5097 .elementor-button{fill:var( --e-global-color-secondary );color:var( --e-global-color-secondary );border-style:solid;border-width:2px 2px 2px 2px;border-color:var( --e-global-color-accent );}.elementor-1558 .elementor-element.elementor-element-a0d5097 .elementor-button:hover svg, .elementor-1558 .elementor-element.elementor-element-a0d5097 .elementor-button:focus svg{fill:var( --e-global-color-accent );}:root{--page-title-display:none;}@media(max-width:1024px){.elementor-widget-heading .elementor-heading-title{font-size:var( --e-global-typography-primary-font-size );}.elementor-1558 .elementor-element.elementor-element-2db7f62 .elementor-heading-title{font-size:38px;letter-spacing:0px;}}@media(max-width:767px){.elementor-widget-heading .elementor-heading-title{font-size:var( --e-global-typography-primary-font-size );}.elementor-1558 .elementor-element.elementor-element-2db7f62 .elementor-heading-title{font-size:30px;}}/* Start custom CSS for html, class: .elementor-element-e3bf4b7 *//* =========================================
   1. VARIABLES & REGLAGES GLOBAUX
   ========================================= */
:root {
    /* Couleurs */
    --brand-orange: #e86d2a; /* Orange caractéristique de Robin Frot */
    --brand-orange-hover: #e86d2a;
    --brand-blue: #0255a1; /* Bleu marine élégant pour contraster */
    --text-main-color: #2c2c2c;
    
    /* Typographie */
    --font-title: 'Oswald', sans-serif;
    --font-text: 'Open Sans', sans-serif;
    
    /* Espacements Spécifiques à la Grille */
    --gallery-gap: 10px; /* Espace fin entre les photos comme sur la maquette */
    --section-padding-y: 60px;
    --title-margin-bottom: 40px;
    
    /* Container */
    --container-width: 1300px;
    
    /* Transitions */
    --hover-transition: 0.3s ease;
}
/* =========================================
   2. RESET & BASE (SCOPED TO COMPONENT)
   ========================================= */
/* On s'assure que le CSS de la section n'impacte pas le reste de WordPress */
.gallery-section, .gallery-section * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
.gallery-section {
    font-family: var(--font-text);
    color: var(--text-main-color);
    max-width: var(--container-width);
    margin: 0 auto;
    padding: var(--section-padding-y) 0px;
    background: transparent;
}
.gallery-section img {
    max-width: 100%;
    height: auto;
    display: block;
}
/* =========================================
   3. EN-TÊTE DE SECTION
   ========================================= */
.gallery-header {
    margin-bottom: var(--title-margin-bottom);
}
.gallery-title-wrapper {
    display: flex;
    align-items: center;
}
/* Ligne orange décorative avant le titre */
.gallery-title-decorator {
    width: 6px;
    height: clamp(30px, 4vw, 40px);
    background-color: var(--brand-orange);
    margin-right: 15px;
    border-radius: 4px;
}
.gallery-title {
    font-family: var(--font-title);
    font-size: clamp(2.2rem, 4vw, 3.5rem);
    font-weight: 700;
    color: var(--text-main-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1;
    margin: 0 !important; /* Force la marge sur WordPress */
}
/* =========================================
   4. GRILLE MASONRY (RÉALISATIONS)
   ========================================= */
.gallery-masonry-grid {
    display: flex;
    gap: var(--gallery-gap);
    margin-bottom: var(--section-padding-y);
    align-items: flex-start;
}
.gallery-column {
    display: flex;
    flex-direction: column;
    gap: var(--gallery-gap);
    flex: 1;
}
.gallery-item {
    display: grid !important;
    position: relative; /* Sécurise le contexte d'empilement */
    z-index: 1; /* Empêche de passer au-dessus de la barre de navigation WP */
    overflow: hidden;
    background-color: #f0f0f0; 
    cursor: pointer;
    text-decoration: none; 
}
/* Superposition CSS Grid (Remplace l'utilisation de position: absolute) */
.gallery-item > * {
    grid-area: 1 / 1;
    min-height: 0 !important;
    min-width: 0 !important;
}
/* Effet de survol UX */
.gallery-item::after {
    content: '';
    grid-area: 1 / 1; 
    background-color: rgba(0, 0, 0, 0);
    transition: background-color var(--hover-transition);
    z-index: 1;
}
.gallery-item:hover::after {
    background-color: rgba(0, 0, 0, 0.65); 
}
/* OVERLAY TEXTUEL */
.gallery-overlay {
    grid-area: 1 / 1;
    place-self: center; 
    width: 90%;
    text-align: center;
    opacity: 0;
    z-index: 2;
    transition: all 0.4s ease;
    transform: translateY(20px);
}
.gallery-item:hover .gallery-overlay {
    opacity: 1;
    transform: translateY(0);
}
.gallery-project-title {
    font-family: var(--font-title);
    color: #ffffff;
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 0 8px 0 !important;
    text-shadow: 0 2px 8px rgba(0,0,0,0.6);
}
.gallery-project-link {
    display: inline-block;
    color: var(--brand-orange);
    font-family: var(--font-text);
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid var(--brand-orange);
    padding-bottom: 2px;
}
/* --- COLORATION DYNAMIQUE DES LIENS --- */
.gallery-column:nth-child(3) .gallery-project-link {
    color: var(--brand-blue);
    border-bottom-color: var(--brand-blue);
}
.gallery-column:nth-child(2) .gallery-item:nth-child(n+3) .gallery-project-link {
    color: var(--brand-blue);
    border-bottom-color: var(--brand-blue);
}
.gallery-image {
    width: 100% !important;
    display: block;
    height: auto !important; 
    object-fit: cover;
    transition: transform var(--hover-transition);
}
/* =========================================
   UX ARRONDIS (LES 2 LIGNES VERTICALES)
   ========================================= */
.gallery-column:nth-child(1) .gallery-item {
    border-radius: 0 32px 32px 0;
}
.gallery-column:nth-child(2) .gallery-item {
    border-radius: 32px;
}
.gallery-column:nth-child(3) .gallery-item {
    border-radius: 32px 0 0 32px;
}
/* =========================================
   5. BOUTON (FOOTER)
   ========================================= */
.gallery-footer {
    text-align: center;
    margin-top: var(--title-margin-bottom);
}
.btn-quote {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-text);
    font-size: 1.1rem;
    font-weight: 600;
    padding: 16px 45px;
    text-decoration: none;
    border-radius: 50px;
    transition: all var(--hover-transition);
    cursor: pointer;
    background: linear-gradient(135deg, var(--brand-orange) 0%, var(--brand-orange-hover) 100%);
    color: #ffffff;
    box-shadow: 0 6px 20px rgba(216, 92, 39, 0.3);
}
.btn-quote:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(216, 92, 39, 0.5);
    color: #ffffff; 
}
/* =========================================
   6. RESPONSIVE DESIGN & TACTILE
   ========================================= */
@media (hover: none), (max-width: 992px) {
    .gallery-masonry-grid {
        display: block;
        column-count: 2; /* 2 colonnes sur Tablette */
        column-gap: var(--gallery-gap);
    }
    
    .gallery-column {
        display: contents;
    }
    
    .gallery-item {
        break-inside: avoid;
        -webkit-column-break-inside: avoid;
        margin-bottom: var(--gallery-gap);
        border-radius: 16px !important; 
        position: relative;
        z-index: 1;
    }
    
    .gallery-item::after,
    .gallery-item:hover::after {
        background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0) 60%);
    }
    .gallery-overlay {
        opacity: 1;
        transform: translateY(0);
        place-self: end center;
        padding: 0 15px 25px 15px;
        width: 100%;
    }
}
@media (max-width: 768px) {
    .gallery-masonry-grid {
        column-count: 1; /* 1 seule colonne sur Téléphone */
    }
    .btn-quote {
        width: 100%;
        padding: 16px 20px;
    }
}
/* =========================================
   7. MODALES POPUP (PURE CSS GRID)
   ========================================= */
.gallery-modal {
    position: fixed;
    inset: 0;
    z-index: 9999; /* Remonté pour passer au-dessus de tout */
    display: grid !important;
    place-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.gallery-modal:target {
    opacity: 1;
    visibility: visible;
}
.gallery-modal > * {
    grid-area: 1 / 1;
}
.gallery-modal-backdrop {
    background-color: rgba(0, 0, 0, 0.85);
    width: 100%;
    height: 100%;
    display: block;
}
.gallery-modal-content {
    background: #fff;
    width: 90%;
    max-width: 1000px;
    max-height: 90vh;
    border-radius: 16px;
    display: flex;
    overflow: hidden;
    transform: translateY(30px);
    transition: transform 0.3s ease;
    z-index: 2;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}
.gallery-modal:target .gallery-modal-content {
    transform: translateY(0);
}
.gallery-modal-image {
    flex: 1;
    min-width: 40%;
}
.gallery-modal-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 0 !important;
}
.gallery-modal-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    color: var(--text-main-color);
}
.gallery-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 40px 10px 40px;
    border-bottom: 1px solid #eee;
}
.gallery-modal-header h3 {
    font-family: var(--font-title);
    color: var(--brand-orange);
    font-size: clamp(1.5rem, 3vw, 2rem);
    text-transform: uppercase;
    margin: 0 !important;
}
.gallery-modal-close {
    font-size: 2rem;
    color: #333;
    text-decoration: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    transition: background 0.3s ease;
    flex-shrink: 0;
}
.gallery-modal-close:hover { background: #e0e0e0; }
.gallery-modal-text {
    padding: 30px 40px 40px 40px;
}
.gallery-modal-text p {
    margin: 0 0 15px 0 !important;
    font-size: 1rem;
    line-height: 1.6;
}
.gallery-modal-text strong {
    color: var(--brand-blue);
    font-weight: 600;
}
@media (max-width: 992px) {
    .gallery-modal-content {
        flex-direction: column;
        width: 90%;
        max-height: 90vh;
    }
    .gallery-modal-image {
        flex: none;
        height: 35vh;
        min-height: 200px;
    }
    .gallery-modal-body { flex: 1; }
    .gallery-modal-header { padding: 20px 25px 15px 25px; }
    .gallery-modal-text { padding: 20px 25px 30px 25px; }
}/* End custom CSS */