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

/* ==========================================================================
   THEME.CSS - REPARATION TOITURE ROSTRENEN
   Couleurs et Variables :
   --font: "DM Sans", sans-serif;
   --gray: #3c3c3c;
   --gray-rgb: 60, 60, 60;
   --base: #f95e11;
   --base-rgb: 249, 94, 17;
   --black: #111;
   --black-rgb: 17, 17, 17;
   --white: #fff;
   ========================================================================== */

:root {
    --font: "DM Sans", sans-serif;
    --gray: #3c3c3c;
    --gray-rgb: 60, 60, 60;
    --base: #f95e11;
    --base-rgb: 249, 94, 17;
    --black: #111;
    --black-rgb: 17, 17, 17;
    --white: #fff;
    --light-bg: #f5f6f8;
    --border-color: #e2e8f0;
    --red-alert: #d9534f;
}

/* RESET ET STRUCTURE SANS DÉCALAGE HORIZONTAL (NO SCROLLBAR) */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: var(--font);
    color: var(--black);
    background-color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    -webkit-font-smoothing: antialiased;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

/* ==========================================================================
   HEADER / EN-TÊTE EN CODAGE FLEX EXCLUSIF
   ========================================================================== */
.site-header {
    width: 100%;
    background-color: var(--white);
    border-bottom: 3px solid var(--base);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.header-top-flex {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    max-width: 1300px;
    margin: 0 auto;
    width: 100%;
}

/* Partie Gauche : Titre + Accroche + Bouton Téléphone sous H1 */
.header-brand-flex {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    max-width: 65%;
}

.site-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--black);
    line-height: 1.2;
}

.site-title a {
    color: var(--black);
}

.site-title a:hover {
    color: var(--base);
}

.site-tagline {
    font-size: 0.95rem;
    color: var(--gray);
    margin-top: 4px;
    margin-bottom: 10px;
    font-weight: 500;
}

/* BOUTON TÉLÉPHONE ROUGE ET POLICE BLANCHE SOUS LE H1 */
.phone-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: var(--red-alert);
    color: var(--white) !important;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 1.05rem;
    box-shadow: 0 3px 8px rgba(217, 83, 79, 0.3);
}

.phone-btn:hover {
    background-color: #c9302c;
    transform: translateY(-2px);
    box-shadow: 0 5px 12px rgba(217, 83, 79, 0.4);
}

/* Partie Droite : Bouton Demande Devis Mail */
.header-action-flex {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.devis-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: var(--base);
    color: var(--white) !important;
    padding: 14px 24px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(249, 94, 17, 0.3);
}

.devis-btn:hover {
    background-color: #e04e05;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(249, 94, 17, 0.4);
}

/* ==========================================================================
   NAVIGATION FLEX & BURGER RESPONSIVE
   ========================================================================== */
.site-nav {
    background-color: var(--black);
    width: 100%;
}

.burger-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--white);
    font-size: 1.3rem;
    padding: 12px 20px;
    cursor: pointer;
    width: 100%;
    text-align: left;
    align-items: center;
    gap: 10px;
    font-family: var(--font);
    font-weight: 700;
}

.nav-list {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0;
}

.nav-item {
    display: flex;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 18px;
    color: var(--white);
    font-size: 0.95rem;
    font-weight: 600;
    border-bottom: 3px solid transparent;
}

.nav-link i {
    color: var(--base);
}

.nav-link:hover {
    background-color: rgba(255, 255, 255, 0.05);
    border-bottom-color: var(--base);
    color: var(--base);
}

/* ==========================================================================
   HERO BANNER
   ========================================================================== */
.hero-section {
    background: linear-gradient(rgba(17, 17, 17, 0.85), rgba(17, 17, 17, 0.85)), url('renovation-complete-toiture-rostrenen.jpg') center/cover no-repeat;
    color: var(--white);
    padding: 80px 5%;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-content {
    max-width: 900px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.badge-hero {
    background-color: var(--base);
    color: var(--white);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.hero-content h2 {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.15rem;
    color: #ddd;
    max-width: 750px;
}

.hero-buttons {
    display: flex;
    flex-direction: row;
    gap: 15px;
    margin-top: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.btn-hero-call {
    background-color: var(--red-alert);
    color: var(--white);
    padding: 12px 26px;
    border-radius: 6px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-hero-email {
    background-color: var(--base);
    color: var(--white);
    padding: 12px 26px;
    border-radius: 6px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-hero-call:hover { background-color: #c9302c; }
.btn-hero-email:hover { background-color: #e04e05; }

/* ==========================================================================
   SECTIONS FLEXIBLES ALTERNÉES (AUCUN GRID)
   ========================================================================== */
.main-content {
    width: 100%;
}

.section-block {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 70px 5%;
    max-width: 1300px;
    margin: 0 auto;
    gap: 50px;
}

.flex-row {
    flex-direction: row;
}

.flex-row-reverse {
    flex-direction: row-reverse;
}

.section-block:nth-child(even) {
    background-color: var(--light-bg);
    max-width: 100%;
    padding-left: calc((100% - 1300px) / 2 + 5%);
    padding-right: calc((100% - 1300px) / 2 + 5%);
}

.emergency-bg {
    background-color: #fff5f5 !important;
    border-left: 6px solid var(--red-alert);
}

.flex-media {
    flex: 1 1 45%;
    width: 100%;
}

.section-img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
    border: 1px solid var(--border-color);
}

.flex-text {
    flex: 1 1 55%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: rgba(249, 94, 17, 0.1);
    color: var(--base);
    padding: 6px 14px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
}

.badge-alert {
    background-color: rgba(217, 83, 79, 0.1);
    color: var(--red-alert);
}

.flex-text h2 {
    font-size: 2rem;
    color: var(--black);
    font-weight: 800;
    line-height: 1.3;
}

.flex-text p {
    color: var(--gray);
    font-size: 1.05rem;
    text-align: justify;
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
    width: 100%;
}

.feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.98rem;
    font-weight: 600;
    color: var(--black);
}

.feature-list li i {
    color: var(--base);
    font-size: 1.1rem;
    margin-top: 3px;
}

.callout-box {
    background-color: var(--white);
    border: 2px dashed var(--red-alert);
    padding: 15px 20px;
    border-radius: 8px;
    width: 100%;
    margin-top: 10px;
}

.callout-box a {
    color: var(--red-alert);
    font-weight: 800;
    text-decoration: underline;
}

/* BANNIÈRE CTA FINAL */
.cta-banner {
    background-color: var(--black);
    color: var(--white);
    padding: 60px 5%;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

.cta-content {
    max-width: 900px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.cta-content h2 {
    font-size: 2.2rem;
    font-weight: 800;
}

.cta-actions {
    display: flex;
    flex-direction: row;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 10px;
}

.cta-btn-phone {
    background-color: var(--red-alert);
    color: var(--white);
    padding: 14px 28px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 1.1rem;
}

.cta-btn-mail {
    background-color: var(--base);
    color: var(--white);
    padding: 14px 28px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 1.1rem;
}

/* ==========================================================================
   FOOTER EN CODAGE FLEX
   ========================================================================== */
.site-footer {
    background-color: #0d0d0d;
    color: #aaa;
    padding-top: 60px;
    border-top: 4px solid var(--base);
}

.footer-flex-container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 5% 40px 5%;
}

.footer-col {
    flex: 1 1 300px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-col h3 {
    color: var(--white);
    font-size: 1.3rem;
    font-weight: 700;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: var(--base);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    color: #aaa;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-links a:hover {
    color: var(--base);
    padding-left: 5px;
}

.footer-col a {
    color: var(--white);
}

.footer-bottom {
    background-color: #050505;
    text-align: center;
    padding: 20px 5%;
    font-size: 0.9rem;
    border-top: 1px solid #222;
}

/* ==========================================================================
   RESPONSIVE DESIGN (TELEPHONE & TABLETTE)
   ========================================================================== */
@media (max-width: 992px) {
    .header-top-flex {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .header-brand-flex {
        max-width: 100%;
    }

    .header-action-flex {
        width: 100%;
        justify-content: flex-start;
    }

    .devis-btn {
        width: 100%;
        justify-content: center;
    }

    .section-block {
        flex-direction: column !important;
        gap: 30px;
        padding: 50px 5%;
    }

    .section-img {
        height: 280px;
    }

    .hero-content h2 {
        font-size: 1.8rem;
    }
}

@media (max-width: 768px) {
    .burger-toggle {
        display: flex;
    }

    .nav-list {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: var(--black);
        border-top: 1px solid #333;
    }

    .nav-list.active {
        display: flex;
    }

    .nav-item {
        width: 100%;
    }

    .nav-link {
        width: 100%;
        padding: 12px 20px;
        border-bottom: 1px solid #222;
    }

    .phone-btn {
        width: 100%;
        justify-content: center;
    }

    .hero-buttons, .cta-actions {
        flex-direction: column;
        width: 100%;
    }

    .btn-hero-call, .btn-hero-email, .cta-btn-phone, .cta-btn-mail {
        width: 100%;
        justify-content: center;
    }
}