@charset "UTF-8";
/**
 * Feuille de Style Avancée, Structurée & Détaillée - Toiture Yffiniac
 * Intègre des variables avancées, des animations complexes (@keyframes), des transformations 3D,
 * et une conception responsive rigoureuse empêchant tout décalage horizontal (No Horizontal Scrollbar).
 */

/* ==========================================================================
   1. VARIABLES DE COULEURS ET POLICES EXIGÉES ET HARMONISÉES
   ========================================================================== */
:root {
    --thm-font: 'Poppins', sans-serif;
    --thm-font-2: 'Montserrat', sans-serif;
    --thm-gray: #808080;
    --thm-black: #252628;
    --thm-base: #ed202b;
    --thm-base-rgb: 237, 32, 43;
    --thm-primary: #e7bd1a;
    --thm-primary-rgb: 231, 189, 26;
    
    /* Nuances additionnelles pour l'harmonie technique */
    --thm-darker: #121314;
    --thm-light-bg: #f4f6f8;
    --base-light-rgb: 237, 32, 43, 0.1;
    --primary-light-rgb: 231, 189, 26, 0.15;
    
    /* Transitions fluides type Essential Blocks */
    --transition-smooth: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Reset de base et prévention absolue du décalage horizontal */
*, *::before, *::after {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden !important;
    font-family: var(--thm-font);
    background-color: #ffffff;
    color: var(--thm-black);
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

/* Utilitaires Typographiques */
.fs-7 { font-size: 0.875rem; }
.fs-8 { font-size: 0.75rem; }
.text-base { color: var(--thm-base); }
.text-primary { color: var(--thm-primary); }
.text-gray { color: var(--thm-gray); }
.bg-darker { background-color: var(--thm-darker) !important; }
.bg-base { background-color: var(--thm-base) !important; }
.bg-black { background-color: #000000 !important; }
.max-w-3xl { max-width: 750px; }
.leading-relaxed { line-height: 1.7; }
.tracking-wider { letter-spacing: 1px; }

/* ==========================================================================
   2. KEYFRAMES & ANIMATIONS DYNAMIQUES (Contrainte Transitions/Animations)
   ========================================================================== */
@keyframes pulseGlow {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(var(--thm-base-rgb), 0.5); }
    70% { transform: scale(1.03); box-shadow: 0 0 0 15px rgba(var(--thm-base-rgb), 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(var(--thm-base-rgb), 0); }
}

@keyframes pulseGlowWhite {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4); }
    70% { transform: scale(1.02); box-shadow: 0 0 0 10px rgba(255, 255, 255, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}

@keyframes floatAnimation {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

@keyframes slideInUp {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.animate-pulse {
    animation: pulseGlowWhite 2.5s infinite ease-in-out;
}

/* ==========================================================================
   3. DESIGN DU HEADER & STRUCTURE MENU BURGER MOBILE
   ========================================================================== */
.top-bar {
    background-color: var(--thm-darker);
    color: #ffffff;
    font-size: 13px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.top-bar a {
    color: #ffffff;
    text-decoration: none;
    transition: var(--transition-smooth);
}
.top-bar a:hover {
    color: var(--thm-primary);
}

.main-header {
    font-family: var(--thm-font-2);
}
.brand-title {
    font-size: 19px;
    letter-spacing: 0.5px;
}

.nav-link-item {
    color: var(--thm-black);
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    text-decoration: none;
    transition: var(--transition-smooth);
    padding: 6px 0;
    position: relative;
}
.nav-link-item:hover, .nav-link-item.active {
    color: var(--thm-base);
}
.nav-link-item::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--thm-base);
    transition: var(--transition-smooth);
}
.nav-link-item:hover::after, .nav-link-item.active::after {
    width: 100%;
}

/* Boutons de navigation personnalisés */
.btn-primary-custom {
    background-color: var(--thm-primary);
    color: var(--thm-black);
    font-weight: 600;
    border: none;
    padding: 10px 22px;
    border-radius: 4px;
    text-decoration: none;
    transition: var(--transition-smooth);
    display: inline-block;
}
.btn-primary-custom:hover {
    background-color: var(--thm-black);
    color: #ffffff;
    transform: translateY(-2px);
}

.btn-base-custom {
    background-color: var(--thm-base);
    color: #ffffff !important;
    font-weight: 600;
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    text-decoration: none;
    transition: var(--transition-smooth);
    display: inline-block;
}
.btn-base-custom:hover {
    background-color: var(--thm-darker);
    transform: translateY(-2px);
}

/* Burger Menu Trigger Mobile */
.burger-menu-btn {
    background: none;
    border: none;
    width: 30px;
    height: 24px;
    position: relative;
    cursor: pointer;
    z-index: 1050;
}
.burger-bar {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--thm-black);
    position: absolute;
    transition: var(--transition-smooth);
    border-radius: 2px;
}
.burger-bar:nth-child(1) { top: 0; }
.burger-bar:nth-child(2) { top: 10px; }
.burger-bar:nth-child(3) { top: 20px; }

.burger-menu-btn.active .burger-bar:nth-child(1) { transform: translateY(10px) rotate(45deg); background-color: #ffffff; }
.burger-menu-btn.active .burger-bar:nth-child(2) { opacity: 0; }
.burger-menu-btn.active .burger-bar:nth-child(3) { transform: translateY(-10px) rotate(-45deg); background-color: #ffffff; }

/* Overlay Menu Mobile */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background-color: rgba(37, 38, 40, 0.98);
    z-index: 1000;
    transition: cubic-bezier(0.77, 0, 0.175, 1) 0.5s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.mobile-menu-overlay.open {
    right: 0;
}
.mobile-nav-links {
    width: 100%;
}
.mobile-link {
    display: block;
    color: #ffffff;
    font-size: 20px;
    font-weight: 600;
    text-decoration: none;
    padding: 12px 0;
    text-transform: uppercase;
    font-family: var(--thm-font-2);
    transition: var(--transition-smooth);
}
.mobile-link:hover {
    color: var(--thm-primary);
    transform: scale(1.05);
}

/* ==========================================================================
   4. CTAS ET BOUTONS AVANCÉS (Contrainte Bouton sous H1 et Bandeau Mobile)
   ========================================================================== */
.phone-cta-btn-h1 {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background-color: var(--thm-base);
    color: #ffffff !important;
    font-family: var(--thm-font-2);
    font-weight: 700;
    font-size: 1.15rem;
    padding: 16px 32px;
    border-radius: 5px;
    text-decoration: none;
    transition: var(--transition-smooth);
    border: 2px solid transparent;
    animation: pulseGlow 3s infinite ease-in-out;
}
.phone-cta-btn-h1:hover {
    background-color: #ffffff;
    color: var(--thm-base) !important;
    border-color: var(--thm-base);
    transform: translateY(-3px) scale(1.02);
}
.phone-cta-btn-h1 .material-symbols-outlined {
    font-size: 24px;
}

.mobile-phone-banner {
    z-index: 900;
    position: relative;
    font-family: var(--thm-font-2);
    letter-spacing: 0.5px;
    font-size: 14px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

/* ==========================================================================
   5. DECORATION DU HERO & FORMULAIRE D'ESTIMATION SEO
   ========================================================================== */
.hero-section {
    background-image: url('assets/imgs/sections/renovation-toiture-principale.jpg');
    background-size: cover;
    background-position: center;
    min-height: 85vh;
}
.hero-overlay-dark {
    position: absolute;
    top:0; left:0; width:100%; height:100%;
    background: linear-gradient(135deg, rgba(18, 19, 20, 0.92) 0%, rgba(37, 38, 40, 0.75) 100%);
    z-index: 1;
}
.badge-seo {
    background-color: rgba(var(--thm-base-rgb), 0.15);
    color: var(--thm-primary);
    border: 1px solid rgba(var(--thm-primary-rgb), 0.3);
    padding: 6px 14px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.5px;
}
.text-shadow {
    text-shadow: 2px 2px 4px rgba(0,0,0,0.6);
}
.seo-hero-text {
    font-size: 0.95rem;
    line-height: 1.65;
}
.btn-outline-white {
    background: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
    font-weight: 600;
    padding: 10px 22px;
    border-radius: 4px;
    text-decoration: none;
    transition: var(--transition-smooth);
}
.btn-outline-white:hover {
    background-color: #ffffff;
    color: var(--thm-black);
}

/* Container du Formulaire Card */
.form-container-card {
    z-index: 5;
    border-top: 5px solid var(--thm-base);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    animation: slideInUp 0.8s ease-out;
}
.form-container-card .form-control, .form-container-card .form-select {
    border: 1px solid #e1e5eb;
    background-color: #f9fafb;
    font-size: 14px;
    color: var(--thm-black);
}
.form-container-card .form-control:focus, .form-container-card .form-select:focus {
    border-color: var(--thm-base);
    box-shadow: 0 0 0 3px rgba(var(--thm-base-rgb), 0.15);
    background-color: #ffffff;
}

/* ==========================================================================
   6. SECTIONS METIERS ALTERNÉES & PLUGIN AVANT/APRÈS INTERACTIF
   ========================================================================== */
.alternating-section {
    position: relative;
    z-index: 2;
}
.section-subtitle-accent {
    letter-spacing: 1.5px;
    font-family: var(--thm-font-2);
}
.h2-seo-title {
    font-size: 1.85rem;
    letter-spacing: -0.5px;
    line-height: 1.3;
}
.seo-rich-paragraph {
    font-size: 0.925rem;
    line-height: 1.7;
    margin-bottom: 16px;
    text-align: justify;
}

.feature-checklist span.material-symbols-outlined {
    font-size: 18px;
}

/* Éléments Médias */
.img-wrapper-hover {
    overflow: hidden;
}
.transition-transform-hover {
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.img-wrapper-hover:hover .transition-transform-hover {
    transform: scale(1.04) rotate(0.5deg);
}

/* PLUGIN AVANT/APRÈS ESSENTIAL BLOCKS (CSS PUR ET POSITIONNEMENT HAUTE FIABILITÉ) */
.slider-comparison-container {
    position: relative;
    width: 100%;
    height: 380px;
    user-select: none;
    -webkit-user-select: none;
    background-color: #e1e5eb;
}
.slider-comparison-container .image-box {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
}
.slider-comparison-container .image-box img {
    width: 100%; height: 100%; object-fit: cover; display: block;
}
.slider-comparison-container .img-after {
    width: 50%; /* Position initiale à mi-chemin */
    overflow: hidden;
    z-index: 2;
    border-right: 3px solid #ffffff;
}

/* Poignée Mobile-Responsive */
.slider-handle {
    position: absolute;
    top: 0; left: 50%; width: 40px; height: 40px;
    background-color: var(--thm-base);
    border: 3px solid #ffffff;
    border-radius: 50%;
    margin-left: -20px; top: calc(50% - 20px);
    z-index: 3;
    cursor: ew-resize;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    transition: background-color 0.2s;
}
.slider-comparison-container:hover .slider-handle {
    background-color: var(--thm-primary);
}

/* Badges indicateurs textuels */
.slider-label {
    position: absolute;
    bottom: 15px;
    padding: 4px 10px;
    background-color: rgba(0,0,0,0.7);
    color: #ffffff;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 3px;
    z-index: 4;
    letter-spacing: 0.5px;
}
.label-before { left: 15px; }
.label-after { right: 15px; }

/* Décoration Effets Section Sombre */
.bg-black-opacity {
    background-color: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(5px);
}
.decor-blur-glow {
    position: absolute;
    width: 300px; height: 300px;
    background: radial-gradient(circle, rgba(var(--thm-base-rgb), 0.15) 0%, transparent 70%);
    top: -50px; right: -50px; z-index: 1;
}

/* Cartes Services Complémentaires */
.service-block-card {
    border-bottom: 4px solid #e1e5eb;
}
.service-block-card:hover {
    border-bottom-color: var(--thm-base);
    transform: translateY(-5px);
}
.bg-base-light { background-color: rgba(var(--thm-base-rgb), 0.08); }
.bg-primary-light { background-color: rgba(var(--thm-primary-rgb), 0.12); }
.hover-shadow {
    transition: var(--transition-smooth);
}
.hover-shadow:hover {
    box-shadow: 0 10px 25px rgba(0,0,0,0.08) !important;
}

/* ==========================================================================
   7. ACCORDION TECHNIQUE QUESTIONS/RÉPONSES (Contrainte Accordion)
   ========================================================================== */
.accordion-item-custom {
    background-color: #ffffff;
    overflow: hidden;
    border-color: #e1e5eb !important;
}
.accordion-trigger-btn {
    background: transparent;
    border: none;
    font-family: var(--thm-font-2);
    transition: var(--transition-smooth);
}
.accordion-trigger-btn:not(.collapsed) {
    color: var(--thm-base) !important;
    background-color: rgba(var(--thm-base-rgb), 0.02);
}
.accordion-trigger-btn .icon-state {
    transition: transform 0.3s ease;
}
.accordion-trigger-btn:not(.collapsed) .icon-state {
    transform: rotate(180deg);
    color: var(--thm-base);
}

/* ==========================================================================
   8. FOOTER PROFILE & REPRODUCTION DE CODE EXIGÉ
   ========================================================================== */
.main-footer-area {
    font-family: var(--thm-font);
    border-top: 4px solid var(--thm-base);
}
.footer-title {
    font-size: 18px;
    letter-spacing: 0.5px;
}
.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; width: 45px; height: 3px;
    background-color: var(--thm-base); /* Reproduction exacte thm-base */
}
.border-bottom-dark {
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.service-list li a {
    transition: var(--transition-smooth);
    display: inline-block;
}
.service-list li a.hover-base:hover {
    color: var(--thm-base) !important;
    transform: translateX(5px); /* Effet exigé de décalage au survol */
}

/* Galerie Footer Zoom Effect */
.img-zoom-wrapper img {
    transition: var(--transition-smooth);
}
.img-zoom-wrapper:hover img {
    transform: scale(1.15) rotate(1deg);
}

/* Iconographie Universelle FILL */
.material-symbols-outlined.icon-fill {
    font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* ==========================================================================
   9. ADAPTATION RESPONSIVE ET MÉDIA QUERIES STRICTES
   ========================================================================== */
@media (max-width: 991.98px) {
    .hero-section { min-height: auto; }
    .h2-seo-title { font-size: 1.55rem; }
    .slider-comparison-container { height: 280px; }
    .pl-50 { padding-left: 0 !important; }
}

@media (max-width: 575.98px) {
    .phone-cta-btn-h1 {
        font-size: 0.95rem;
        padding: 12px 20px;
        width: 100%;
        justify-content: center;
    }
    .h2-seo-title { font-size: 1.35rem; }
    .form-container-card { padding: 20px !important; }
    .slider-comparison-container { height: 220px; }
}
iframe {
	display: block
}
.no-link {
    color: inherit !important;
    text-decoration: none !important;
    pointer-events: none;
}
/* --- Optimisation de l'alignement des listes de widgets --- */
@media (min-width: 992px) {
    /* Évite que les widgets centrés ou alignés à droite ne perdent leur largeur naturelle */
    .footer-widget-2 {
        min-width: 240px; 
    }
}

/* --- Bordure subtile pour la séparation des horaires (si non définie) --- */
.border-bottom-dark {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

/* --- Style élégant de la barre sous le titre de colonne --- */
.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 45px;
    height: 3px;
    background-color: #ed202b; /* --thm-base */
    border-radius: 2px;
}