@charset "utf-8";

/* Variables héritées du fichier principal */
:root {
    --primary-color: #000;
    --secondary-color: #c52f28;
    --accent-color: #3498DB;
    --text-dark: #000;
    --text-light: #7F8C8D;
    --bg-light: #F8F9FA;
    --bg-white: #FFFFFF;
    --shadow: 0 4px 20px rgba(44, 62, 80, 0.1);
    --shadow-hover: 0 8px 30px rgba(44, 62, 80, 0.15);
    --border-radius: 12px;
    --transition: all 0.3s ease;
}

/* Base Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
    text-align: justify;
    hyphens: auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Boutons */
.btn-primary, .btn-secondary {
    padding: 1rem 2rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, #c52f28, #8B1538);
    color: white;
    box-shadow: var(--shadow);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
}

/* Breadcrumb */
.breadcrumb {
    background: var(--bg-light);
    padding: 1rem 0;
}

.breadcrumb ol {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0.5rem;
}

.breadcrumb ol li {
    color: var(--text-light);
}

.breadcrumb ol li:not(:last-child)::after {
    content: ">";
    margin-left: 0.5rem;
    color: var(--text-light);
}

.breadcrumb a {
    color: var(--secondary-color);
    text-decoration: none;
}

.breadcrumb a:hover {
    color: var(--primary-color);
}

/* Hero Prestation - Base */
.hero-prestation {
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 4rem 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 70vh;
    text-align: center;
}

/* Hero Prestation - Images spécifiques par page */
/* Version paysage (par défaut) */
.page-couverture .hero-prestation {
    background: linear-gradient(rgba(44, 62, 80, 0.7), rgba(44, 62, 80, 0.7)), url('../images/couverture-toiture-tuiles-ruffec-16700.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.page-demoussage .hero-prestation {
    background: linear-gradient(rgba(44, 62, 80, 0.7), rgba(44, 62, 80, 0.7)), url('../images/demoussage-nettoyage-toiture-ruffec.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.page-maconnerie .hero-prestation {
    background: linear-gradient(rgba(44, 62, 80, 0.7), rgba(44, 62, 80, 0.7)), url('../images/maconnerie-toiture-cheminee-ruffec.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.page-charpente .hero-prestation {
    background: linear-gradient(rgba(44, 62, 80, 0.7), rgba(44, 62, 80, 0.7)), url('../images/charpente-bois-traditionnelle-ruffec-16700.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.page-zinguerie .hero-prestation {
    background: linear-gradient(rgba(44, 62, 80, 0.7), rgba(44, 62, 80, 0.7)), url('../images/zinguerie-gouttiere-evacuation-ruffec.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

/* Version portrait pour mobile */
@media (max-width: 768px) and (orientation: portrait) {
    .page-couverture .hero-prestation {
        background: linear-gradient(rgba(44, 62, 80, 0.7), rgba(44, 62, 80, 0.7)), url('../images/couverture-toiture-tuiles-ruffec-16700-portrait.jpg');
        background-size: cover;
        background-position: center;
    }

    .page-demoussage .hero-prestation {
        background: linear-gradient(rgba(44, 62, 80, 0.7), rgba(44, 62, 80, 0.7)), url('../images/demoussage-nettoyage-toiture-ruffec-portrait.jpg');
        background-size: cover;
        background-position: center;
    }

    .page-maconnerie .hero-prestation {
        background: linear-gradient(rgba(44, 62, 80, 0.7), rgba(44, 62, 80, 0.7)), url('../images/maconnerie-toiture-cheminee-ruffec-portrait.jpg');
        background-size: cover;
        background-position: center;
    }

    .page-charpente .hero-prestation {
        background: linear-gradient(rgba(44, 62, 80, 0.7), rgba(44, 62, 80, 0.7)), url('../images/charpente-bois-traditionnelle-ruffec-16700-portrait.jpg');
        background-size: cover;
        background-position: center;
    }

    .page-zinguerie .hero-prestation {
        background: linear-gradient(rgba(44, 62, 80, 0.7), rgba(44, 62, 80, 0.7)), url('../images/zinguerie-gouttiere-evacuation-ruffec-portrait.jpg');
        background-size: cover;
        background-position: center;
    }
}

.hero-prestation-content {
    max-width: 800px;
    color: white;
}

.hero-text h1 {
    font-size: 2.5rem;
    color: white;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    text-align: justify;
    hyphens: auto;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: var(--primary-color);
}

/* Description */
.description {
    padding: 5rem 0;
    background: var(--bg-white);
}

.description h2 {
    text-align: center;
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 3rem;
}

.description-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: center;
}

.description-text p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.7;
    text-align: justify;
    hyphens: auto;
    word-spacing: normal;
    letter-spacing: normal;
}

.description-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

/* Avantages */
.avantages {
    padding: 5rem 0;
    background: var(--bg-light);
}

.avantages h2 {
    text-align: center;
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 3rem;
}

.avantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    align-items: start;
}

.avantage-card {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.avantage-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.avantage-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
    min-height: 3.2rem;
    display: flex;
    align-items: flex-start;
    line-height: 1.2;
    justify-content: center;
}

.avantage-card p {
    color: var(--text-light);
    flex-grow: 1;
    margin: 0;
    text-align: justify;
    hyphens: auto;
    text-align-last: left;
    word-spacing: normal;
    letter-spacing: normal;
}

/* Processus Timeline */
.processus-prestation {
    padding: 5rem 0;
    background: var(--bg-white);
}

.processus-prestation h2 {
    text-align: center;
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 3rem;
}

.processus-timeline {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.timeline-step {
    text-align: center;
    padding: 2rem;
    background: var(--bg-light);
    border-radius: var(--border-radius);
    position: relative;
    transition: var(--transition);
}

.timeline-step:hover {
    transform: translateY(-5px);
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #c52f28, #8B1538);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1.5rem;
}

.timeline-step h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.timeline-step p {
    color: var(--text-light);
    margin: 0;
    text-align: justify;
    hyphens: auto;
    text-align-last: left;
    word-spacing: normal;
    letter-spacing: normal;
}

/* Zone d'intervention */
.zone {
    padding: 5rem 0;
    background: var(--bg-light);
}

.zone h2 {
    text-align: center;
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
}

.zone > .container > p {
    text-align: justify;
    hyphens: auto;
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.zone-map {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.zone-info, .zone-contact {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.zone-info h3, .zone-contact h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.zone-info ul {
    list-style: none;
    padding: 0;
    margin-bottom: 1rem;
}

.zone-info li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
}

.zone-info li:last-child {
    border-bottom: none;
}

.zone-contact {
    text-align: center;
}

.contact-btn {
    display: inline-block;
    background: linear-gradient(135deg, #c52f28, #8B1538);
    color: white;
    padding: 1rem 2rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.2rem;
    margin: 1rem 0;
    transition: var(--transition);
}

.contact-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

/* Autres prestations */
.autres-prestations {
    padding: 5rem 0;
    background: var(--bg-white);
}

.autres-prestations h2 {
    text-align: center;
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 3rem;
}

.prestations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.prestation-card {
    background: var(--bg-white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-decoration: none;
    color: inherit;
}

.prestation-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.prestation-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.prestation-card h3 {
    color: var(--primary-color);
    padding: 1rem;
    margin: 0;
    font-size: 1.3rem;
}

.prestation-card p {
    color: var(--text-light);
    padding: 0 1rem 1.5rem;
    margin: 0;
    text-align: justify;
    hyphens: auto;
    text-align-last: left;
    word-spacing: normal;
    letter-spacing: normal;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-prestation {
        background-attachment: scroll;
        padding: 2rem 1rem;
    }
    
    .hero-text h1 {
        font-size: 2rem;
    }
    
    .description h2,
    .avantages h2,
    .processus-prestation h2,
    .zone h2,
    .autres-prestations h2 {
        font-size: 1.8rem;
    }
    
    .description-content {
        grid-template-columns: 1fr;
    }
    
    .zone-map {
        grid-template-columns: 1fr;
    }
    
    .prestations-grid {
        grid-template-columns: 1fr;
    }
    
    .processus-timeline {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 1.8rem;
    }
    
    .hero-cta {
        flex-direction: column;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
    }
    
    .avantages-grid {
        grid-template-columns: 1fr;
    }
    
    /* Sur très petits écrans, on revient à gauche pour éviter les problèmes */
    .avantage-card p,
    .timeline-step p,
    .prestation-card p {
        text-align: left;
    }
}