/*
Theme Name: Couvreur 77 Theme
Theme URI: https://votre-site.fr
Author: Votre Nom
Author URI: https://votre-site.fr
Description: Thème sur mesure pour artisan couvreur, optimisé SEO et conversion.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: custom-theme, construction, business
Text Domain: couvreur-theme
*/

/* =========================================
   1. RESET & BASES (Indispensable)
   ========================================= */
* {
    box-sizing: border-box; /* Gère mieux les largeurs */
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
}

body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background-color: #ffffff;
    color: #333333;
    line-height: 1.6;
    font-size: 16px;
}

img {
    max-width: 100%;
    height: auto;
    display: block; /* Évite les petits espaces sous les images */
}

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

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* =========================================
   2. VARIABLES (Couleurs)
   ========================================= */
:root {
    --primary-color: #2c3e50;  /* Bleu Nuit (Header/Footer) */
    --accent-color: #e67e22;   /* Orange (Boutons d'action) */
    --text-color: #333333;
    --light-bg: #f4f6f7;
    --white: #ffffff;
}

/* =========================================
   3. STRUCTURE (Layout)
   ========================================= */
.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}

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

.grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.flex-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.flex-end {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 20px;
}

.section-padding {
    padding: 80px 0;
}

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

/* =========================================
   4. HEADER & NAVIGATION
   ========================================= */
.top-bar {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 10px 0;
    font-size: 0.9rem;
}

.site-header {
    background: var(--white);
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky; /* Le menu reste en haut quand on scroll */
    top: 0;
    z-index: 1000;
}

.logo img {
    max-height: 60px; /* Ajustez selon votre logo */
}

.site-header nav ul {
    display: flex;
    gap: 25px;
    align-items: center;
}

.site-header nav a {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    color: var(--primary-color);
}

.site-header nav a:hover {
    color: var(--accent-color);
}

/* =========================================
   5. BOUTONS
   ========================================= */
.btn-devis, .btn-primary {
    background-color: var(--accent-color);
    color: var(--white) !important;
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: bold;
    display: inline-block;
    text-align: center;
}

.btn-devis:hover, .btn-primary:hover {
    background-color: #d35400; /* Orange plus foncé */
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--white);
    color: var(--text-color);
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: bold;
    display: inline-block;
}

/* =========================================
   6. HERO SECTION (Bannière)
   ========================================= */
.hero {
    position: relative;
    padding: 150px 0;
    background-size: cover;
    background-position: center;
    color: var(--white);
    text-align: center;
}

.hero .overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.6); /* Voile noir pour lire le texte */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-list {
    font-size: 1.2rem;
    margin-bottom: 40px;
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.cta-group {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* =========================================
   7. SECTIONS CONTENU
   ========================================= */
.trust-bar {
    background-color: var(--light-bg);
    padding: 40px 0;
    text-align: center;
    border-bottom: 1px solid #e1e1e1;
}

.trust-box {
    padding: 10px;
}
.trust-box strong {
    font-size: 1.2rem;
    color: var(--primary-color);
    display: block;
    margin-bottom: 5px;
}

.section-title {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}
/* Petite ligne sous le titre */
.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--accent-color);
    margin: 10px auto 0;
}

.service-card {
    background: var(--white);
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

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

.service-card h3 {
    padding: 20px 20px 10px;
    color: var(--primary-color);
    margin: 0;
}

.service-card p {
    padding: 0 20px 20px;
    color: #666;
    font-size: 0.95rem;
}

.bg-light { background-color: var(--light-bg); }

/* =========================================
   8. FOOTER
   ========================================= */
.site-footer {
    background-color: var(--primary-color);
    color: #bdc3c7;
    padding: 60px 0 20px;
}

.site-footer h3 {
    color: var(--white);
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 10px;
    display: inline-block;
    margin-bottom: 20px;
}

/* =========================================
   9. RESPONSIVE (Mobile)
   ========================================= */
@media (max-width: 768px) {
    .site-header .flex-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .site-header nav ul {
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }
    
    .hero h1 { font-size: 1.8rem; }
    
    .hero-list {
        flex-direction: column;
        gap: 10px;
    }
    
    .flex-end {
        justify-content: center;
        flex-direction: column;
        gap: 5px;
    }
}