/**
 * ═══════════════════════════════════════════════════════════════
 * MAISONS CTL - Styles Constructeur Loir-et-Cher
 * ═══════════════════════════════════════════════════════════════
 * 
 * Fichier: assets/css/constructeur.css
 * Version: 1.0.0
 * Date: 23/10/2025
 * 
 * ═══════════════════════════════════════════════════════════════
 * STRUCTURE CSS IDENTIQUE À SERVICES.CSS
 * ═══════════════════════════════════════════════════════════════
 * 
 * Sections:
 * 1. Variables & Reset
 * 2. Carrousel Mobile Hero
 * 3. Hero Section
 * 4. Services Principaux (Grid 2×2)
 * 5. Section Chiffres (Stats)
 * 6. Réalisations
 * 7. Pourquoi Nous Choisir
 * 8. FAQ
 * 9. CTA Final
 * 10. Responsive Mobile
 */

/* ============================================
   VARIABLES & RESET
============================================ */
.services-page {
    background: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    font-size: 2.3em;
    color: #2C3E50;
    text-align: center;
    margin-bottom: 15px;
    font-weight: 700;
    line-height: 1.4;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.section-subtitle {
    font-size: 1.2em;
    color: #666;
    text-align: center;
    margin-bottom: 50px;
}

/* ============================================
   CARROUSEL MOBILE HERO (IDENTIQUE SERVICES)
============================================ */
.hero-services-mobile-image {
    display: none;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.hero-services-mobile-carousel {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.hero-services-mobile-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    will-change: opacity;
    transform: translateZ(0);
}

.hero-services-mobile-slide.active {
    opacity: 1;
    z-index: 1;
}

.hero-services-mobile-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 3;
}

.hero-services-mobile-dots .dot-services-mobile {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.hero-services-mobile-dots .dot-services-mobile:active {
    transform: scale(0.9);
}

.hero-services-mobile-dots .dot-services-mobile.active {
    background: #fff;
    border-color: #E74C3C;
    transform: scale(1.2);
}

@media (max-width: 1024px) {
    .hero-services-mobile-image {
        display: block;
    }
}

@media (max-width: 480px) {
    .hero-services-mobile-dots {
        bottom: 15px;
    }
    
    .hero-services-mobile-dots .dot-services-mobile {
        width: 8px;
        height: 8px;
    }
}

/* ============================================
   HERO SECTION (IDENTIQUE SERVICES)
============================================ */
.services-hero {
    background: linear-gradient(135deg, rgba(44, 62, 80, 0.5) 0%, rgba(52, 73, 94, 0.65) 100%),
                url('../images/hero-maison.jpg') center/cover;
    color: white;
    padding: 80px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Sur mobile : pas de background-image, juste contenu */
@media (max-width: 1024px) {
    .services-hero {
        background: #f8f9fa;
        color: #2C3E50;
        padding: 60px 20px 80px;
    }
}

.services-hero .container {
    position: relative;
    z-index: 2;
}

.services-hero h1 {
    font-size: 2.8em;
    margin-bottom: 20px;
    font-weight: 700;
    color: white !important;
    line-height: 1.3;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

/* Titre mobile en noir */
@media (max-width: 1024px) {
    .services-hero h1 {
        color: #2C3E50 !important;
        font-size: 2em;
    }
}

.services-hero h1 .subtitle-inline {
    display: block;
    font-size: 0.85em;
    margin-top: 10px;
    font-weight: 600;
    opacity: 0.95;
}

.hero-subtitle {
    font-size: 1.2em;
    margin-bottom: 40px;
    opacity: 0.95;
    line-height: 1.6;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* Sous-titre mobile */
@media (max-width: 1024px) {
    .hero-subtitle {
        color: #666;
        font-size: 1.1em;
    }
}

.btn-hero {
    display: inline-block;
    padding: 18px 45px;
    background: #3498db;
    color: white !important;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1em;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(52, 152, 219, 0.4);
}

.btn-hero:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(52, 152, 219, 0.6);
    text-decoration: none;
}

/* ============================================
   SERVICES PRINCIPAUX (GRID 2×2)
============================================ */
.services-main {
    padding: 80px 20px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-top: 50px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.service-card {
    background: white;
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    position: relative;
    border: 2px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
    border-color: #3498db;
}

.service-card.featured {
    border-color: #3498db;
    box-shadow: 0 15px 50px rgba(52, 152, 219, 0.2);
}

.badge-popular {
    position: absolute;
    top: -15px;
    right: 20px;
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.4);
}

.badge-zone {
    position: absolute;
    top: -10px;
    right: 15px;
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    color: white;
    padding: 6px 15px;
    border-radius: 15px;
    font-size: 0.8em;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(243, 156, 18, 0.4);
    z-index: 10;
}

.service-icon {
    font-size: 3.5em;
    margin-bottom: 20px;
    text-align: center;
}

.service-card h3 {
    font-size: 1.8em;
    color: #2C3E50;
    margin-bottom: 15px;
    text-align: center;
    font-weight: 700;
}

.service-card p {
    color: #666;
    line-height: 1.7;
    margin-bottom: 25px;
    text-align: center;
}

.service-features {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
}

.service-features li {
    padding: 10px 0;
    color: #555;
    font-size: 1.05em;
    border-bottom: 1px solid #f0f0f0;
}

.service-features li:last-child {
    border-bottom: none;
}

.btn-service {
    display: block;
    text-align: center;
    padding: 15px 30px;
    background: linear-gradient(135deg, #2C3E50 0%, #34495E 100%);
    color: white !important;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-service:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(44, 62, 80, 0.3);
    text-decoration: none;
}

/* ============================================
   SECTION CHIFFRES (STATS)
============================================ */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.stat-card {
    background: white;
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.stat-number {
    font-size: 3.5em;
    font-weight: 800;
    color: #3498db;
    line-height: 1;
    margin-bottom: 15px;
}

.stat-small {
    font-size: 0.6em;
}

.stat-label {
    font-size: 1em;
    color: #666;
    font-weight: 500;
}

/* ============================================
   RÉALISATIONS
============================================ */
.realisations-preview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.realisation-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.realisation-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.realisation-image {
    width: 100%;
    overflow: hidden;
}

.realisation-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.realisation-location {
    font-weight: 600;
    color: #3498db;
    font-size: 1.05em;
}

.realisation-details {
    color: #666;
    font-size: 0.95em;
}

/* ============================================
   POURQUOI NOUS CHOISIR
============================================ */
.why-choose-section {
    padding: 80px 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.why-item {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.why-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.why-item h3 {
    color: #2C3E50;
    font-size: 1.4em;
    margin-bottom: 15px;
    font-weight: 600;
}

.why-item p {
    color: #666;
    line-height: 1.7;
    margin: 0;
}

/* ============================================
   FAQ
============================================ */
.faq-section {
    padding: 80px 20px;
    background: white;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.faq-item {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 15px;
    border-left: 4px solid #3498db;
    transition: all 0.3s ease;
}

.faq-item:hover {
    background: white;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.faq-item h3 {
    color: #2C3E50;
    font-size: 1.3em;
    margin-bottom: 15px;
    font-weight: 600;
}

.faq-item p {
    color: #555;
    line-height: 1.8;
    margin: 0;
}

/* ============================================
   CTA FINAL
============================================ */
.cta-section {
    padding: 80px 20px;
    background: linear-gradient(135deg, #2C3E50 0%, #34495E 100%);
    color: white;
    text-align: center;
}

.cta-section h2 {
    font-size: 2.5em;
    margin-bottom: 20px;
    font-weight: 700;
    color: white !important;
}

.cta-section > .container > p {
    font-size: 1.2em;
    margin-bottom: 40px;
    opacity: 0.95;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.btn-cta {
    display: inline-block;
    padding: 18px 45px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1em;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-cta.primary {
    background: #27ae60;
    color: white !important;
    box-shadow: 0 5px 20px rgba(39, 174, 96, 0.4);
}

.btn-cta.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(39, 174, 96, 0.6);
    text-decoration: none;
}

.btn-cta.secondary {
    background: white;
    color: #2C3E50 !important;
    box-shadow: 0 5px 20px rgba(255,255,255,0.2);
}

.btn-cta.secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(255,255,255,0.3);
    text-decoration: none;
}

.cta-info {
    color: rgba(255,255,255,0.85);
    font-size: 1em;
    margin: 0;
}

/* ============================================
   RESPONSIVE - OPTIMISATION LARGEUR MOBILE
============================================ */
@media (max-width: 768px) {
    .container {
        padding: 0 10px; /* Réduit de 15px à 10px */
    }
    
    .services-main {
        padding: 60px 10px; /* Réduit de 80px 20px */
    }

    .services-hero h1 {
        font-size: 1.8em;
        line-height: 1.3;
        padding: 0 5px; /* Réduit de 10px à 5px */
    }

    .hero-subtitle {
        font-size: 1em;
        line-height: 1.5;
        padding: 0 5px; /* Réduit de 10px à 5px */
    }

    .section-title {
        font-size: 1.6em;
        line-height: 1.3;
        padding: 0 5px; /* Réduit de 10px à 5px */
    }
    
    .section-subtitle {
        font-size: 1.05em;
        margin-bottom: 30px;
        padding: 0 5px;
    }

    /* Grid 2×2 devient 1 colonne sur mobile */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px; /* Réduit de 30px à 20px */
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 15px; /* Réduit pour plus de compacité */
    }
    
    .why-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .faq-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }

    .btn-cta {
        width: 100%;
    }
    
    /* Padding cartes ULTRA RÉDUIT pour maximiser largeur */
    .service-card {
        padding: 20px 12px; /* Réduit de 25px 15px */
        border-radius: 15px; /* Coins moins arrondis */
    }
    
    .stat-card {
        padding: 25px 15px; /* Réduit de 40px 30px */
    }
    
    .why-item {
        padding: 20px 12px; /* Réduit de 20px 15px */
    }
    
    .faq-item {
        padding: 20px 12px; /* Réduit de 20px 15px */
    }
    
    .realisation-info {
        padding: 15px 12px; /* Réduit de 20px */
    }
    
    /* Optimisation des listes dans les cards */
    .service-features li {
        padding: 8px 0; /* Réduit de 10px */
        font-size: 0.95em;
    }
    
    /* Boutons plus compacts */
    .btn-service,
    .btn-hero {
        padding: 14px 25px; /* Réduit de 18px 45px */
        font-size: 1em;
    }
    
    .btn-cta {
        padding: 15px 30px; /* Légèrement réduit */
    }
}

/* Petit mobile - Marges MINIMALES */
@media (max-width: 480px) {
    .container {
        padding: 0 8px; /* Réduit de 10px à 8px */
    }
    
    .services-main {
        padding: 50px 8px; /* Ultra compact */
    }
    
    .service-card,
    .why-item,
    .faq-item {
        padding: 18px 10px; /* Padding MINIMAL */
        border-radius: 12px;
    }
    
    .stat-card {
        padding: 20px 12px;
    }
    
    .service-card h3 {
        font-size: 1.5em; /* Légèrement réduit */
    }
    
    .stat-number {
        font-size: 3em; /* Réduit de 3.5em */
    }
}

/* Affichage conditionnel Desktop/Mobile */
.text-mobile {
    display: none;
}

.text-desktop {
    display: inline;
}

@media (max-width: 768px) {
    .text-mobile {
        display: inline;
    }
    
    .text-desktop {
        display: none;
    }
}