@charset "UTF-8";
/* CSS Document */

/* ==========================================================================
   FEUILLE DE STYLE ARCHITECTURALE ET TECHNIQUE MAJEURE
   SITE INTERNET : COUVREUR ÉPERNON TRAVAUX TOITURES
   CONFORME NORMES DE DÉVELOPPEMENT WEB EXTENSIBLE (PHP 8.x / BOOTSTRAP 5.3)
   ========================================================================== */

/* --------------------------------------------------------------------------
   0. DESIGN SYSTEM & DESIGN TOKENS (VARIABLES COMPLÈTES)
   -------------------------------------------------------------------------- */
:root {
    /* Nuancier Imposé Principal */
    --primary--color: #1e2e4f;
    --secondary--color: #ffffff;
    --accent--color: #f19e1f;
    --text--color: #616a7e;
    --black--color: #000000;
    --blue--color: #1d2e50;
    --blue--color2: #293a5b;
    --sky--color: #f4f8ff;
    --lemon--color: #fff4e3;
    --green--color: #3bad20;
    --danger-red: #d90429;

    /* Dérivés de Teintes & Alentours Lumineux (Pour Dégradés et États Hover) */
    --primary-dark-deep: #111a2e;
    --primary-light-slate: #344870;
    --accent-dark-gold: #d48611;
    --accent-light-sand: #fcecd2;
    --neutral-gray-light: #f8f9fa;
    --neutral-gray-medium: #e9ecef;
    --neutral-gray-border: #dee2e6;
    --bg-shadow-dark: rgba(0, 0, 0, 0.08);
    --bg-shadow-heavy: rgba(0, 0, 0, 0.16);
    
    /* Typographies & Paramètres Structurels */
    --font-primary: 'Work Sans', sans-serif;
    --font-secondary: 'Sora', sans-serif;
    --font-base-size: 16px;
    --border-radius-sm: 4px;
    --border-radius-md: 8px;
    --border-radius-lg: 16px;
    --border-radius-circle: 50%;
    
    /* Courbes de Transitions (Easing Fonctionnel) */
--transition-fast: transform 0.15s ease-in-out, opacity 0.15s ease-in-out;
--transition-smooth: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), opacity 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
--transition-slow: transform 0.6s cubic-bezier(0.77, 0, 0.175, 1), opacity 0.6s cubic-bezier(0.77, 0, 0.175, 1);
    --transition-elastic: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);

    /* Index de superpositions (Z-index Registry) */
    --z-sticky: 1000;
    --z-burger: 1050;
    --z-modal: 1100;
    --z-above: 2;
    --z-base: 1;
}

/* --------------------------------------------------------------------------
   1. RESET EXTENSIF & RECOMPOSITION NATIVE DU NAVIGATEUR
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html, 
body {
    width: 100%;
    height: 100%;
    overflow-x: hidden !important;
    font-family: var(--font-primary);
    font-size: var(--font-base-size);
    line-height: 1.65;
    font-weight: 400;
    color: var(--text--color);
    background-color: var(--secondary--color);
    scroll-behavior: smooth;
}

/* Lissage global de l'expérience utilisateur et sélection textuelle */
::selection {
    background-color: var(--primary--color);
    color: var(--secondary--color);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    user-select: none;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

a:hover, 
a:focus {
    text-decoration: none;
    outline: none;
}

button, 
input, 
select, 
textarea {
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
    outline: none;
}

/* Classes Typographiques Globales & Utilitaires de Rythme */
h1, h2, h3, h4, h5, h6 {
    color: var(--primary--color);
    font-family: var(--font-secondary);
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 0;
}

p {
    font-family: var(--font-secondary);
    font-weight: 300;
    color: var(--text--color);
    margin-bottom: 0;
}

.text-justify {
    text-align: justify;
    text-justify: inter-word;
}

.w-fit-content {
    width: fit-content !important;
}

.tracking-tight {
    letter-spacing: -1px;
}

.tracking-wider {
    letter-spacing: 1.5px;
}

/* --------------------------------------------------------------------------
   2. REGLAGES DES MATRICES DE FOND & ÉLÉMENTS DE STRUCTURE (UTILITIES)
   -------------------------------------------------------------------------- */
.bg-light-blue-space {
    background-color: var(--sky--color) !important;
}

.bg-dark-blue-deep {
    background-color: var(--primary--color) !important;
}

.bg-blue-dark2 {
    background-color: var(--blue-color2) !important;
}

.bg-blue-light {
    background-color: rgba(255, 255, 255, 0.06) !important;
}

.divider-line {
    width: 80px;
    height: 4px;
    border-radius: var(--border-radius-sm);
    background-color: var(--accent--color);
}

.divider-line.mx-auto {
    margin-left: auto !important;
    margin-right: auto !important;
}

.max-w-600 { max-width: 600px !important; }
.max-w-700 { max-width: 700px !important; }

.min-h-350 { min-height: 350px !important; }
.min-h-400 { min-height: 400px !important; }

/* Enjoliveur d'images de fond techniques */
.bg-img-cover {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    z-index: var(--z-base);
}

.bg-img-cover::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(30, 46, 79, 0.03);
    pointer-events: none;
}

/* --------------------------------------------------------------------------
   3. ENTÊTE ARCHITECTURAL COMPLET (STICKY HEADER & COMPOSANTS NAV)
   -------------------------------------------------------------------------- */
header {
    width: 100%;
    background-color: var(--primary--color);
    border-bottom: 3px solid var(--accent--color);
    position: sticky;
    top: 0;
    z-index: var(--z-sticky);
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.18);
    transition: var(--transition-smooth);
}

.header-main {
    min-height: 80px;
}

/* Effet typographique sur le Logo local */
.logo-text {
    font-family: var(--font-secondary);
    letter-spacing: -0.5px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

/* Boutons et Ancres de Navigation principale Bureau */
.ancre-btn {
    color: var(--secondary--color);
    text-decoration: none;
    font-family: var(--font-primary);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 10px 18px;
    border-radius: var(--border-radius-sm);
    position: relative;
    transition: var(--transition-smooth);
}

.ancre-btn::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--accent--color);
    transition: var(--transition-smooth);
    transform: translateX(-50%);
}

.ancre-btn:hover {
    color: var(--accent--color);
    background-color: rgba(255, 255, 255, 0.06);
}

.ancre-btn:hover::after,
.ancre-btn.active::after {
    width: 60%;
}

.ancre-btn.active {
    color: var(--accent--color);
    background-color: rgba(255, 255, 255, 0.08);
    font-weight: 600;
}

/* Bloc Urgence intégré au Header */
.header-link-1 {
    padding: 6px 12px;
    border-radius: var(--border-radius-md);
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.icon-circle {
    width: 44px;
    height: 44px;
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: var(--border-radius-circle);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.15);
    flex-shrink: 0;
}

/* Bouton Action Primaire Haut de Gamme */
.primary-btn-1 {
    background: linear-gradient(135deg, var(--accent--color) 0%, var(--accent-dark-gold) 100%);
    color: var(--secondary--color) !important;
    padding: 14px 28px;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    border-radius: var(--border-radius-sm);
    box-shadow: 0 4px 14px rgba(241, 158, 31, 0.35);
    display: inline-flex;
    align-items: center;
    border: none;
    cursor: pointer;
}

.primary-btn-1:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 20px rgba(241, 158, 31, 0.55);
    filter: brightness(1.08);
}

.primary-btn-1:active {
    transform: translateY(0) scale(1);
}

/* Hamburger mobile de secours */
.header__hamburger {
    display: inline-block;
}

.bar-icon-btn {
    background: none;
    border: none;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 32px;
    height: 22px;
    cursor: pointer;
    padding: 0;
}

.bar-line {
    width: 100%;
    height: 3px;
    background-color: var(--secondary--color);
    border-radius: var(--border-radius-sm);
    transition: var(--transition-smooth);
}

/* --------------------------------------------------------------------------
   4. SYSTEME NAVIGATION MOBILE BURGER OVERLAY (TENSION AVANCÉE)
   -------------------------------------------------------------------------- */
.mobile-sidebar-overlay {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background-color: rgba(17, 26, 46, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: var(--z-burger);
    transition: var(--transition-slow);
}

.mobile-sidebar-overlay.active {
    left: 0;
}

.mobile-sidebar-box {
    width: 340px;
    max-width: 85%;
    height: 100%;
    background-color: var(--blue-color2);
    box-shadow: 6px 0 35px rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: var(--z-modal);
}

.sidebar-header {
    background-color: var(--primary--color);
    border-bottom: 2px solid var(--accent--color);
}

.btn-close-sidebar {
    background: none;
    border: none;
    color: var(--secondary--color);
    font-size: 2.8rem;
    line-height: 1;
    cursor: pointer;
    transition: var(--transition-fast);
}

.btn-close-sidebar:hover {
    color: var(--accent--color);
    transform: rotate(90deg);
}

.mobile-link {
    color: var(--secondary--color);
    text-decoration: none;
    display: block;
    padding: 14px 0;
    font-family: var(--font-secondary);
    font-weight: 500;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transition: var(--transition-smooth);
}

.mobile-link:hover {
    color: var(--accent--color);
    padding-left: 15px;
    background-color: rgba(255, 255, 255, 0.02);
}

/* --------------------------------------------------------------------------
   5. SECTION 0 : HERO ZONE D'OPTIMISATION LOCALISÉE DE CONFIANCE
   -------------------------------------------------------------------------- */
.hero-section {
    min-height: 80vh;
    background: url('../images/hero-bg-roofing.jpg') center/cover no-repeat;
    background-color: var(--primary--color);
    position: relative;
}

.hero-overlay-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(30, 46, 79, 0.96) 0%, rgba(17, 26, 46, 0.75) 100%);
    z-index: var(--z-base);
}

.hero-section .container {
    position: relative;
    z-index: var(--z-above);
}

.badge-seo {
    background-color: rgba(241, 158, 31, 0.16);
    color: var(--accent--color);
    border: 1px solid rgba(241, 158, 31, 0.35);
    border-radius: var(--border-radius-sm);
    letter-spacing: 1.2px;
    font-size: 0.85rem;
    font-family: var(--font-primary);
}

/* Boutons d'appel d'urgence obligatoires demandés */
.phone-hero-btn {
    background-color: var(--danger-red) !important;
    border: 2px solid var(--danger-red) !important;
    box-shadow: 0 4px 18px rgba(217, 4, 41, 0.45);
    letter-spacing: 0.5px;
    transition: var(--transition-smooth);
}

.phone-hero-btn:hover {
    background-color: #b80322 !important;
    border-color: #b80322 !important;
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(217, 4, 41, 0.65);
}

.phone-bandeau-mobile {
    background-color: var(--danger-red);
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.btn-outline-light {
    border: 2px solid var(--secondary--color);
    background-color: transparent;
    color: var(--secondary--color);
    transition: var(--transition-smooth);
}

.btn-outline-light:hover {
    background-color: var(--secondary--color);
    color: var(--primary--color);
    transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   6. SECTIONS 1 À 7 : MATRICES DES PRESTATIONS STRETCH & ALTERNANCE ALTERNÉE
   -------------------------------------------------------------------------- */
.services-wrapper-sections {
    background-color: var(--neutral-gray-light);
}

.border-card-stretch {
    border: 1px solid rgba(30, 46, 79, 0.05);
    background-color: var(--secondary--color);
    transition: var(--transition-smooth);
}

.border-card-stretch:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 40px rgba(30, 46, 79, 0.1) !important;
}

.border-card-stretch:hover .bg-img-cover {
    transform: scale(1.05);
}

.card-text-side {
    background-color: var(--secondary--color);
    position: relative;
}

/* Signalétique d'urgence locale sur carte numéro 3 */
.banner-alert-light {
    background-color: var(--lemon--color) !important;
    border-left: 5px solid var(--danger-red);
}

.cta-link-arrow {
    color: var(--blue-color);
    font-family: var(--font-secondary);
    font-size: 0.98rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition-smooth);
}

.cta-link-arrow:hover {
    color: var(--accent--color);
    gap: 12px;
}

/* --------------------------------------------------------------------------
   7. INTERACTION NATIF AVANT / APRÈS (COMPOSANT SANS LIBRAIRIE EXTERNE)
   -------------------------------------------------------------------------- */
.comparison-slider-wrapper {
    width: 100%;
    height: 100%;
    min-height: 380px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
    position: relative;
    background-color: #222;
}

.img-after, 
.img-before {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.slider-control-bar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    appearance: none;
    -webkit-appearance: none;
    outline: none;
    background: transparent;
}

.slider-control-bar::-webkit-slider-thumb {
    appearance: none;
    -webkit-appearance: none;
    width: 40px;
    height: 100%;
    cursor: ew-resize;
    background: transparent;
}

.slider-handle-line {
    z-index: 5;
}

.slider-handle-button {
    user-select: none;
    border: 2px solid var(--primary--color);
    font-size: 1.2rem;
}

/* --------------------------------------------------------------------------
   8. SECTION 8 : PROJETS RÉCENTS / PORTFOLIO COMPLEXE (D'APRÈS INSPIRATION)
   -------------------------------------------------------------------------- */
.portfolio-con {
    background-color: var(--sky--color);
}

.portfolio-box {
    background-color: var(--secondary--color);
    padding: 15px;
    border-radius: var(--border-radius-md);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    transition: var(--transition-smooth);
}

.portfolio-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(30, 46, 79, 0.08);
}

.portfolio-box figure {
    margin: 0;
    overflow: hidden;
    height: 260px;
}

.portfolio-box figure img {
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.key-tags {
    background-color: var(--sky--color);
    color: var(--primary--color);
    font-weight: 600;
    font-size: 0.75rem;
    border: 1px solid rgba(30, 46, 79, 0.08);
    font-family: var(--font-primary);
}

.portfolio-arrow-btn {
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    border: 1px solid var(--neutral-gray-border);
    transition: var(--transition-elastic);
}

.portfolio-box:hover .portfolio-arrow-btn {
    background-color: var(--accent--color) !important;
    color: var(--secondary--color) !important;
    border-color: var(--accent--color);
    transform: rotate(45deg);
}

/* --------------------------------------------------------------------------
   9. SECTION 9 : ACCORDION FAQ DE CONFIGURATION MAJEURE (ESSENTIAL BLOCKS)
   -------------------------------------------------------------------------- */
.custom-eb-accordion .accordion-item {
    border: 1px solid rgba(29, 46, 80, 0.08) !important;
    margin-bottom: 16px;
    background-color: var(--secondary--color);
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
    transition: var(--transition-smooth);
}

.custom-eb-accordion .accordion-item:hover {
    box-shadow: 0 6px 16px rgba(30, 46, 79, 0.06);
}

.custom-eb-accordion .accordion-button {
    background-color: var(--secondary--color);
    color: var(--primary--color);
    padding: 22px 26px;
    font-family: var(--font-secondary);
    font-weight: 600;
    font-size: 1.05rem;
    border: none;
    box-shadow: none !important;
    display: flex;
    align-items: center;
    text-align: left;
    transition: var(--transition-fast);
}

.custom-eb-accordion .accordion-button::after {
    background-size: 1.25rem;
    transition: var(--transition-smooth);
}

.custom-eb-accordion .accordion-button:not(.collapsed) {
    background-color: var(--primary--color);
    color: var(--secondary--color);
    border-bottom: 2px solid var(--accent--color);
}

.custom-eb-accordion .accordion-button:not(.collapsed) .icon-eb {
    color: var(--accent--color);
    transform: scale(1.15);
}

.custom-eb-accordion .accordion-button:not(.collapsed)::after {
    filter: brightness(0) invert(1);
}

.icon-eb {
    color: var(--text--color);
    font-size: 1.4rem;
    transition: var(--transition-smooth);
}

.custom-eb-accordion .accordion-body {
    padding: 24px 26px;
    background-color: var(--secondary--color);
    color: var(--text--color);
    font-family: var(--font-primary);
    line-height: 1.75;
}

/* --------------------------------------------------------------------------
   10. SECTION 10 : MODULE DE CONTACT SÉCURISÉ RECAPTCHA V2 DE CONFIANCE
   -------------------------------------------------------------------------- */
.form-container-custom {
    border-top: 5px solid var(--accent--color);
    background-color: var(--blue-color2);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
    transition: var(--transition-smooth);
}

.form-container-custom:hover {
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.35);
}

.form-container-custom .form-label {
    color: var(--secondary--color);
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    font-family: var(--font-primary);
}

.form-container-custom .form-control, 
.form-container-custom .form-select {
    background-color: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: var(--secondary--color);
    padding: 14px 16px;
    border-radius: var(--border-radius-sm);
    font-family: var(--font-secondary);
    transition: var(--transition-smooth);
}

.form-container-custom .form-control:focus, 
.form-container-custom .form-select:focus {
    background-color: rgba(255, 255, 255, 0.14);
    border-color: var(--accent--color);
    box-shadow: 0 0 0 4px rgba(241, 158, 31, 0.15);
    color: var(--secondary--color);
}

.form-container-custom .form-control::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.form-container-custom select option {
    background-color: var(--blue-color2);
    color: var(--secondary--color);
    padding: 10px;
}

/* Bouton Soumettre bloqué/débloqué par script reCAPTCHA */
.form-container-custom button[type="submit"] {
    transition: var(--transition-smooth);
}

.form-container-custom button[type="submit"]:disabled {
    background-color: #4a576e !important;
    border-color: #4a576e !important;
    color: rgba(255, 255, 255, 0.3) !important;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

/* --------------------------------------------------------------------------
   11. PIED DE PAGE EXTENSIF STRUCTURÉ (FOOTER INDUSTRIAL MATRIX)
   -------------------------------------------------------------------------- */
footer {
    background-color: var(--primary-dark-deep) !important;
    border-top: 4px solid var(--primary--color);
}

.footer-title {
    padding-bottom: 12px;
    margin-bottom: 24px;
    letter-spacing: 0.5px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: var(--accent--color);
    border-radius: var(--border-radius-sm);
}

.footer-hover-link {
    display: inline-block;
    padding: 2px 0;
    transition: var(--transition-smooth);
}

.footer-hover-link:hover {
    color: var(--accent--color) !important;
    transform: translateX(6px);
}

/* Grille de Miniature d'images d'Architecture du Bâtiment */
.footer-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.footer-gallery-thumb {
    height: 85px;
    width: 100%;
    object-fit: cover;
    border-radius: var(--border-radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: var(--transition-smooth);
}

.footer-gallery-thumb:hover {
    transform: scale(1.06);
    filter: brightness(1.1);
    border-color: var(--accent--color);
}

/* --------------------------------------------------------------------------
   12. SÉCURISATION ET SYSTEME ANIMATION INTERNE (KEYFRAMES ENGiNE)
   -------------------------------------------------------------------------- */
@keyframes pulseAnimation {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.5);
        transform: scale(1);
    }
    70% {
        box-shadow: 0 0 0 12px rgba(255, 255, 255, 0);
        transform: scale(1.04);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
        transform: scale(1);
    }
}

.animate-pulse {
    animation: pulseAnimation 2.2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes bounceSmall {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

.animate-bounce {
    animation: bounceSmall 2.5s ease-in-out infinite;
}

@keyframes shimmerEffect {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

.shimmer-bg {
    background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0) 100%);
    background-size: 200% 100%;
    animation: shimmerEffect 3s infinite;
}

/* --------------------------------------------------------------------------
   13. GRILLE COMPLÈTE DE CHARGE RESPONSIVE (MEDIA QUERIES ULTRA-DÉTAILLÉES)
   -------------------------------------------------------------------------- */

/* == ORDINATEURS ÉCRANS LARGE (MIN-WIDTH: 1200px) == */
@media (min-width: 1200px) {
    .large-container {
        padding-left: 60px !important;
        padding-right: 60px !important;
    }
}

/* == ADAPTATION POUR TABLETTES MODE PAYSAGE (MAX-WIDTH: 1199.98px) == */
@media (max-width: 1199.98px) {
    .ancre-btn {
        padding: 8px 12px;
        font-size: 0.9rem;
    }
    .primary-btn-1 {
        padding: 12px 20px;
    }
    .portfolio-box figure {
        height: 220px;
    }
}

/* == SÉCURISATION DES TABLETTES ET GRANDS SMARTPHONES (MAX-WIDTH: 991.98px) == */
@media (max-width: 991.98px) {
    header {
        position: fixed;
        top: 0;
        left: 0;
    }
    body {
        padding-top: 83px; /* Empêche le chevauchement du contenu par le menu fixe */
    }
    .main-menu {
        display: none !important;
    }
    .hero-section {
        min-height: auto;
        padding: 80px 0 !important;
    }
    .border-card-stretch {
        margin-bottom: 30px !important;
    }
    .min-h-350, .min-h-400 {
        min-height: 300px !important;
    }
    .custom-eb-accordion .accordion-button {
        padding: 18px 20px;
        font-size: 1rem;
    }
}

/* == FORMAT SMARTPHONES EN LARGEUR INTERMÉDIAIRE (MAX-WIDTH: 767.98px) == */
@media (max-width: 767.98px) {
    h1 {
        font-size: 2.5rem !important;
        line-height: 1.3;
    }
    .display-5 {
        font-size: 2rem !important;
    }
    .portfolio-box figure {
        height: 250px;
    }
    .form-container-custom {
        padding: 30px 20px !important;
    }
    .footer-gallery {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* == FORMAT PETITS SMARTPHONES CYLINDRIQUES (MAX-WIDTH: 575.98px) == */
@media (max-width: 575.98px) {
    html {
        font-size: 15px; /* Réduction fine de l'échelle globale */
    }
    body {
        padding-top: 79px;
    }
    h1, .display-4 {
        font-size: 2rem !important;
    }
    .display-5, .display-6 {
        font-size: 1.6rem !important;
    }
    .card-text-side {
        padding: 30px 15px !important;
    }
    .comparison-slider-wrapper {
        min-height: 280px;
    }
    .footer-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
    .btn {
        width: 100% !important;
        text-align: center;
        justify-content: center;
        margin-bottom: 10px;
    }
    .d-flex {
        flex-direction: column !important;
        align-items: stretch !important;
    }
    .header-main, 
    .footer-top .row,
    .accordion-item,
    .form-container-custom .row {
        flex-direction: row !important; /* Maintient la direction horizontale sur les composants natifs obligatoires */
    }
    .header-right {
        flex-direction: row !important;
        justify-content: flex-end !important;
        gap: 10px !important;
    }
}

/* == SÉCURITÉ SUPPLÉMENTAIRE CONTRE LES ÉCRANS ULTRA-ÉTRAITS (MAX-WIDTH: 360px) == */
@media (max-width: 360px) {
    h1 {
        font-size: 1.75rem !important;
    }
    .logo-text {
        font-size: 1.1rem !important;
    }
}
iframe {
	display: block
}
.no-link {
    color: inherit !important;
    text-decoration: none !important;
    pointer-events: none;
}
/* Styles pour la Lightbox Footer */
.popup-image {
    cursor: pointer;
}
#lightboxModal .modal-backdrop.show {
    opacity: 0.85; /* Fond bien sombre pour faire ressortir tes photos de toiture */
}
#lightboxImage {
    transition: transform 0.2s ease-in-out;
}
