/**
 * Quali Toiture — CSS des sections du builder (HTML blocks)
 * Extrait automatiquement des blocs <style> inline le 2026-06-01.
 * Enqueue: blocksy-child/functions.php (handle 'qt-sections', dep 'child-style').
 * Ne plus coller de <style> dans les blocs HTML : ajouter ici.
 */

/* ===== bloc b3a8863e — pages [2193] ===== */
/* CSS spécifique pour la gestion responsive des boutons de cette section */
.action-v2-buttons {
    display: flex;
    gap: 15px;
    /* Comportement PC par défaut : côte à côte */
    flex-direction: row; 
    max-width: 500px; /* Assez large pour contenir les deux boutons sur PC */
}

.action-v2-buttons .btn-v2 {
    flex: 1; /* Les deux boutons prennent la même largeur sur PC */
    text-align: center;
    /* Taille réduite de ~10% par rapport à l'étape précédente */
    padding: 10px 12px; 
    font-size: 1.05rem; 
}

/* Comportement Mobile : l'un sous l'autre */
@media (max-width: 768px) {
    .action-v2-buttons {
        flex-direction: column; /* Empile les boutons */
        max-width: 280px; /* Réduit la largeur max sur mobile */
    }
}

/* ===== bloc b25c6eb1 — pages [2696, 3274] ===== */
/* --- AJOUTS MOBILE : TAILLE TITRE & MARGE --- */
@media (max-width: 768px) {
    .mobile-pad-20 {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }
    .mobile-resize-h2 {
        font-size: 1.6em !important;
    }
}

/* ===== bloc 9553a21a — pages [2733, 2797, 3057] ===== */
.tooltip-container:hover .tooltip-content {
    opacity: 1 !important;
    visibility: visible !important;
    bottom: 150% !important;
}

/* --- AJOUTS MOBILE : TAILLE TITRE & MARGE --- */
@media (max-width: 768px) {
    .mobile-pad-20 {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }
    .mobile-resize-h2 {
        font-size: 1.6em !important;
    }
}

/* ===== bloc 4a270d1b — pages [2, 2308, 2566, 2636, 2696, 2733, 2797, 3057, 3092, 3159, 3274] ===== */
/* CSS spécifique pour la gestion responsive des boutons de cette section */
.action-v2-buttons {
    display: flex;
    gap: 15px;
    /* Comportement PC par défaut : côte à côte */
    flex-direction: row; 
    max-width: 500px; /* Assez large pour contenir les deux boutons sur PC */
}

.action-v2-buttons .btn-v2 {
    flex: 1; /* Les deux boutons prennent la même largeur sur PC */
    text-align: center;
    /* Taille réduite de ~10% par rapport à l'étape précédente */
    padding: 10px 12px; 
    font-size: 1.05rem; 
}

/* Comportement Mobile : l'un sous l'autre et centré */
@media (max-width: 768px) {
    .action-v2-buttons {
        flex-direction: column; /* Empile les boutons */
        max-width: 280px; /* Réduit la largeur max sur mobile */
        margin: 0 auto; /* Centre le bloc de boutons horizontalement */
    }
}

/* ===== bloc ec317feb — pages [2, 2308, 2566, 2636, 2696, 2733, 2797, 3057, 3092, 3159, 3274] ===== */
/* On force le CSS ici pour être sûr qu'il se charge */
.cta-force-wrapper {
    width: 100%;
    padding: 60px 20px;
    box-sizing: border-box;
    display: block;
    position: relative;
    z-index: 10;
}

.cta-force-box {
    max-width: 1100px;
    margin: 0 auto;
    background: linear-gradient(135deg, #2F3336 0%, #000000 100%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 28px;
    padding: 40px 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

.cta-force-text {
    flex: 1;
    min-width: 300px;
}

.cta-force-title {
    font-size: 2rem !important;
    font-weight: 800 !important;
    color: #ffffff !important;
    line-height: 1.2 !important;
    margin: 0 0 10px 0 !important;
}

.cta-force-desc {
    font-size: 1.15rem !important;
    color: #d1d5db !important;
    margin: 0 !important;
    line-height: 1.5;
}

.cta-force-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: 350px;
    flex-shrink: 0;
}

/* Boutons */
a.btn-force-orange {
    display: flex !important;
    align-items: center;
    justify-content: center;
    background-color: #F9943B !important;
    color: #ffffff !important;
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    padding: 16px 30px !important;
    border-radius: 12px !important;
    text-decoration: none !important;
    transition: transform 0.2s;
    box-shadow: 0 4px 15px rgba(249, 148, 59, 0.3);
    text-align: center;
}

a.btn-force-orange:hover {
    transform: translateY(-3px);
    background-color: #ffaa5b !important;
}

a.btn-force-ghost {
    display: flex !important;
    flex-direction: column !important;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: #ffffff !important;
    padding: 12px 24px !important;
    border-radius: 12px !important;
    text-decoration: none !important;
    transition: background 0.2s;
    text-align: center;
}

a.btn-force-ghost:hover {
    background-color: rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
}

/* Mobile */
@media (max-width: 900px) {
    .cta-force-box {
        flex-direction: column;
        text-align: center;
        padding: 40px 24px;
        gap: 30px;
    }
    .cta-force-title { font-size: 1.6rem !important; }
    .cta-force-actions { max-width: 100%; }
}

/* ===== bloc ace087a5 — pages [2] ===== */
/* --- CONTENEUR GLOBAL AVEC HALOS --- */
.craft-section {
    position: relative;
    background-color: #000;
    
    /* Padding avec 0px en bas pour couper proprement */
    padding: 100px 24px 0 24px; 
    
    overflow: hidden; 
    display: flex;
    align-items: center;
    justify-content: center;
    
    /* Hauteur fixe pour couper le vide noir en bas */
    height: 780px; 
    min-height: auto; 
}

/* HALO 1 : ORANGE (En haut à gauche, derrière le texte) */
.craft-section::before {
    content: '';
    position: absolute;
    top: -20%;
    left: -10%;
    width: 800px;
    height: 800px;
    /* Orange Quali Toiture, diffus */
    background: radial-gradient(circle, rgba(249, 148, 59, 0.12) 0%, transparent 60%);
    filter: blur(80px);
    z-index: 1; 
    pointer-events: none;
}

/* HALO 2 : BLEU PROFOND (En bas à droite, derrière la galerie) */
.craft-section::after {
    content: '';
    position: absolute;
    bottom: -20%;
    right: -10%;
    width: 900px;
    height: 900px;
    /* Bleu nuit profond */
    background: radial-gradient(circle, rgba(59, 88, 249, 0.08) 0%, transparent 60%);
    filter: blur(100px);
    z-index: 1;
    pointer-events: none;
}

.craft-container {
    max-width: 1300px;
    width: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2; /* IMPORTANT : Le contenu passe devant les halos */
    transform: translateY(-20px); 
}

/* --- COLONNE TEXTE (GAUCHE) --- */
.craft-text-col {
    position: relative;
    z-index: 10;
    text-align: left;
    transform: translateY(-50px); 
}

.craft-label {
    display: inline-block;
    color: #F9943B;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    margin-bottom: 20px;
    border: 1px solid rgba(249, 148, 59, 0.3);
    padding: 8px 16px;
    border-radius: 50px;
}

.craft-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    line-height: 1.1;
    font-weight: 800;
    color: #fff;
    margin-bottom: 30px;
}

.craft-desc {
    font-size: 1.1rem;
    color: #9ca3af;
    line-height: 1.6;
    margin-bottom: 40px;
}

/* LISTE GARANTIES */
.craft-guarantees {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.guarantee-item {
    display: flex;
    align-items: center;
    gap: 16px;
}

.g-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.g-icon svg {
    width: 24px;
    height: 24px;
    stroke: #F9943B;
}

.g-text strong {
    display: block;
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.g-text span {
    color: #6b7280;
    font-size: 0.95rem;
}

/* --- GALERIE DIAGONALE (DROITE) --- */
.craft-gallery-wrapper {
    position: relative;
    height: 900px; 
    width: 120%;        
    right: 0%;          
    padding-right: 60px; 
    transform: rotate(12deg) translateY(-120px); 
    display: flex;
    gap: 30px; 
    mask-image: linear-gradient(to bottom, transparent 0%, black 15%, black 85%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 15%, black 85%, transparent 100%);
}

.scroll-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 40px; 
}

.bw-img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    border-radius: 16px;
    filter: grayscale(100%) contrast(1.2) brightness(0.9);
    transition: filter 0.4s ease, transform 0.4s ease;
    box-shadow: 0 15px 40px rgba(0,0,0,0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.bw-img:hover {
    filter: grayscale(0%) contrast(1) brightness(1);
    transform: scale(1.05);
    z-index: 10;
    border-color: rgba(249, 148, 59, 0.5);
}

/* ANIMATIONS */
.col-up { animation: scrollUp 70s linear infinite; }
.col-down { animation: scrollDown 75s linear infinite; }

@keyframes scrollUp {
    0% { transform: translateY(0); }
    100% { transform: translateY(-50%); } 
}

@keyframes scrollDown {
    0% { transform: translateY(-50%); }
    100% { transform: translateY(0); }
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .craft-section { 
        padding: 60px 24px; 
        height: auto; 
        min-height: auto;
    }
    .craft-section::before, .craft-section::after { display: none; } /* On enlève les halos sur mobile pour la perf */
    
    .craft-container { 
        grid-template-columns: 1fr; 
        gap: 50px; 
        transform: translateY(0);
    }
    
    .craft-text-col { 
        text-align: center; 
        max-width: 800px; 
        margin: 0 auto; 
        transform: translateY(0); 
    }
    
    .craft-guarantees { display: inline-flex; text-align: left; }
    
    .craft-gallery-wrapper {
        width: 100%;
        right: 0;
        padding-right: 0;
        transform: rotate(0deg); 
        height: 500px;
        margin-top: 20px;
        mask-image: none;
        -webkit-mask-image: none;
        overflow: hidden;
    }
    .scroll-column:nth-child(3) { display: none; }
    .bw-img { height: 180px; }
    .scroll-column { gap: 20px; }
}

/* ===== bloc d88e7794 — pages [1279] ===== */
.simu-auto-wrapper {
        position: relative;
        width: 100%;
        max-width: 100%; /* Largeur max ajustée pour le full largeur */
        margin: 0 auto;
        border-radius: none;
        box-shadow: 0 20px 50px rgba(0,0,0,0.1);
        background: #FFFFFF;
        
        /* C'est ici que le crop s'applique */
        overflow: hidden !important; 
        transition: height 0.3s ease;
    }

    #simu-frame {
        display: block;
        /* Remonte légèrement l'iframe pour cacher le bas si besoin */
        margin-bottom: -40px; 
    }

    /* Ajustement mobile */
    @media (max-width: 768px) {
        .simu-auto-wrapper {
            border-radius: 0;
            box-shadow: none;
        }
    }

/* ===== bloc 63ec1ba4 — pages [2308, 2566, 2636, 2696] ===== */
.tooltip-container:hover .tooltip-content {
    opacity: 1 !important;
    visibility: visible !important;
    bottom: 150% !important;
}

/* --- AJOUTS MOBILE : TAILLE TITRE & MARGE --- */
@media (max-width: 768px) {
    .trust-container {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }
    .mobile-resize-h2 {
        font-size: 1.6em !important;
    }
}

/* ===== bloc 4bedb6e4 — pages [2696] ===== */
/* --- AJOUTS MOBILE : MARGE UNIQUEMENT --- */
@media (max-width: 768px) {
    .qt-container {
        padding-left: 20px !important;
        padding-right: 20px !important;
        box-sizing: border-box !important;
        width: 100% !important;
    }
}

/* ===== bloc 0224c611 — pages [2984] ===== */
/* CSS spécifique pour l'indication de scroll mobile */
.scroll-hint {
    display: none; /* Caché par défaut sur PC */
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 10px;
    font-weight: 600;
}
.scroll-hint svg {
    width: 16px;
    height: 16px;
    animation: slideRight 1.5s infinite;
}

@keyframes slideRight {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(5px); }
}

/* Forçage Pleine Largeur Mobile */
@media (max-width: 768px) {
    .scroll-hint {
        display: flex; /* S'affiche uniquement sur mobile */
    }
    
    #qt-urgence-tarifs {
        padding-left: 0 !important;
        padding-right: 0 !important;
        padding-top: 40px !important;
        padding-bottom: 40px !important;
    }
    
    /* On s'assure que le contenu intérieur respire bien */
    #qt-urgence-tarifs .glb-box {
        padding: 30px 15px !important;
    }
}

/* ===== bloc 5091da8c — pages [3057] ===== */
/* --- AJOUTS MOBILE : MARGE ET CORRECTION DÉBORDEMENT TEXTE GRILLE --- */
@media (max-width: 768px) {
    .mobile-pad-15 {
        padding-left: 10px !important;
        padding-right: 10px !important;
        box-sizing: border-box !important;
        width: 100% !important;
    }
    
    .intro-text-col {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .problem-list-grid {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important; 
        gap: 10px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .problem-item {
        padding: 12px 10px !important;
        font-size: 0.85rem !important; 
        min-width: 0 !important; 
        box-sizing: border-box !important;
        /* Les deux lignes suivantes sont cruciales pour que la case s'agrandisse */
        height: auto !important; 
        min-height: 100% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
    }

    .problem-item strong {
        white-space: normal !important; /* Autorise le texte à passer à la ligne */
        word-break: break-word !important; /* Coupe le mot si vraiment trop long */
        line-height: 1.3 !important; /* Espace un peu les lignes pour la lisibilité */
        display: block !important;
        width: 100% !important;
    }

    .intro-cta-row {
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .intro-cta-row a {
        white-space: normal !important;
        max-width: 100% !important;
        display: inline-block;
        line-height: 1.4;
    }
}

/* ===== bloc f374c562 — pages [3092, 3159] ===== */
.tooltip-container:hover .tooltip-content {
    opacity: 1 !important;
    visibility: visible !important;
    bottom: 150% !important;
}

/* ===== bloc 1d22c910 — pages [2696] ===== */
/* --- AJOUTS MOBILE : TAILLE TITRE & MARGE --- */
@media (max-width: 768px) {
    .mobile-pad-20 {
        padding-left: 20px !important;
        padding-right: 20px !important;
        box-sizing: border-box !important;
        width: 100% !important;
    }
    .mobile-resize-h2 {
        font-size: 1.6em !important;
    }
}

/* ===== bloc 364bf00f — pages [2696] ===== */
/* --- AJOUTS MOBILE : MARGE ET CORRECTION DÉBORDEMENT TEXTE GRILLE --- */
@media (max-width: 768px) {
    .mobile-pad-20 {
        padding-left: 20px !important;
        padding-right: 20px !important;
        box-sizing: border-box !important;
        width: 100% !important;
    }
    
    .intro-text-col {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .problem-list-grid {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important; 
        gap: 10px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .problem-item {
        padding: 12px 10px !important;
        font-size: 0.85rem !important; 
        min-width: 0 !important; 
        box-sizing: border-box !important;
        height: auto !important; 
        min-height: 100% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
    }

    .problem-item strong {
        white-space: normal !important; 
        word-break: break-word !important; 
        line-height: 1.3 !important; 
        display: block !important;
        width: 100% !important;
    }

    .intro-cta-row {
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .intro-cta-row a {
        white-space: normal !important;
        max-width: 100% !important;
        display: inline-block;
        line-height: 1.4;
    }
}

