/**
 * ============================================================================
 * MAISONS CTL - Style de la page "Plans & Permis de Construire"
 * ============================================================================
 * 
 * Fichier : assets/css/plans.css
 * Version : 1.0.0
 * Date : 29 octobre 2025
 * 
 * DESCRIPTION :
 * Styles pour la page Plans avec 3 sections : Hero + Expertise + Galerie
 * 
 * ARCHITECTURE :
 * 1. Hero avec image de fond + 4 statistiques
 * 2. Section expertise avec 4 badges de confiance
 * 3. Galerie de plans types avec cards interactives
 * 
 * PARTICULARITÉS :
 * - Design responsive mobile-first
 * - Badges de type de plan (Plain-pied, Étage, Combles)
 * - Détails techniques avec icônes SVG
 * - Overlay interactif sur les images
 * - CTA final avec 2 boutons
 * 
 * BREAKPOINTS :
 * - Desktop : > 1024px
 * - Tablette : 768px - 1024px
 * - Mobile : < 768px
 * - Petit mobile : < 480px
 * 
 * ============================================================================
 */

/* ============================================================================
   SECTION 1 : HERO "DES PLANS SUR-MESURE"
   Image de fond + 4 statistiques
   ============================================================================ */

.hero-plans {
    position: relative;
    min-height: 1100px;
    background-image: linear-gradient(rgba(0, 0, 0, 0.40), rgba(0, 0, 0, 0.50)), 
                      url('../images/hero-plans-architecte.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    color: white;
}

/* Fallback si l'image hero n'existe pas encore */
.hero-plans::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    z-index: -1;
}

.hero-plans-content {
    max-width: 1200px;
    text-align: center;
    width: 100%;
    position: relative;
    z-index: 1;
}

.hero-plans-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
    color: #ffffff;
    line-height: 1.2;
}

.hero-plans-subtitle {
    font-size: 1.3rem;
    margin-bottom: 50px;
    opacity: 0.95;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    font-weight: 500;
    line-height: 1.6;
}

/* Statistiques */
.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 40px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.hero-stat-card {
    background: rgba(255, 255, 255, 0.95);
    padding: 30px 20px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    backdrop-filter: blur(10px);
}

.hero-stat-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.hero-stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: #1e3a8a;
    margin-bottom: 10px;
    line-height: 1;
}

.hero-stat-label {
    font-size: 1rem;
    color: #555;
    font-weight: 500;
}

/* Bouton CTA */
.hero-cta-button {
    display: inline-block;
    padding: 18px 50px;
    background: #3b82f6;
    color: white;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(59, 130, 246, 0.4);
}

.hero-cta-button:hover {
    background: #2563eb;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.6);
}

/* ============================================================================
   SECTION 2 : NOTRE EXPERTISE
   Badges de confiance
   ============================================================================ */

.section-expertise {
    padding: 80px 20px;
    background: #f8fafc;
}

.section-expertise-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1e3a8a;
    text-align: center;
    margin-bottom: 30px;
}

.section-expertise-intro {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    max-width: 900px;
    margin: 0 auto 20px;
    text-align: center;
}

.section-expertise-cta-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    max-width: 900px;
    margin: 0 auto 50px;
    text-align: center;
}

/* Badges de confiance */
.badges-confiance {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.badge-confiance {
    background: white;
    padding: 40px 30px;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.badge-confiance:hover {
    border-color: #3b82f6;
    transform: translateY(-10px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.badge-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #3b82f6 0%, #1e3a8a 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.badge-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1e3a8a;
    margin-bottom: 10px;
}

.badge-description {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
}

/* ============================================================================
   SECTION 3 : GALERIE DE PLANS
   ============================================================================ */

.galerie-section {
    padding: 80px 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* En-tête de la galerie */
.galerie-header {
    text-align: center;
    margin-bottom: 50px;
}

.galerie-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1e3a8a;
    margin-bottom: 15px;
}

.galerie-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    max-width: 800px;
    margin: 0 auto 15px;
}

.galerie-note {
    font-size: 1rem;
    color: #3b82f6;
    font-weight: 500;
}

/* ============================================================================
   GRILLE DE PLANS
   ============================================================================ */

.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.plan-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.plan-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.plan-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* ============================================================================
   IMAGE ET OVERLAY
   ============================================================================ */

.plan-image-wrapper {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.plan-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.plan-card:hover .plan-image {
    transform: scale(1.1);
}

.plan-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(30, 58, 138, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.plan-card:hover .plan-overlay {
    opacity: 1;
}

.zoom-icon {
    font-size: 3rem;
    color: white;
}

/* Badge du type de plan (en haut à droite) */
.plan-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.plan-badge-plain-pied {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.plan-badge-étage {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

.plan-badge-combles {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

/* ============================================================================
   INFORMATIONS DU PLAN
   ============================================================================ */

.plan-infos {
    padding: 25px;
}

.plan-nom {
    font-size: 1.4rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 15px 0;
}

.plan-details {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #ecf0f1;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    color: #555;
}

.detail-item svg {
    color: #3b82f6;
}

.detail-item strong {
    color: #2c3e50;
    font-weight: 600;
}

.plan-description {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* ============================================================================
   CTA FINAL
   ============================================================================ */

.galerie-cta {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    border-radius: 20px;
    padding: 50px 40px;
    text-align: center;
    color: white;
    box-shadow: 0 10px 40px rgba(30, 58, 138, 0.3);
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.cta-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.cta-text {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 30px;
    opacity: 0.95;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.btn-cta {
    display: inline-block;
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn-cta-primary {
    background: white;
    color: #1e3a8a;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.btn-cta-primary:hover {
    background: #f1f5f9;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.btn-cta-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-cta-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
}

/* ============================================================================
   RESPONSIVE DESIGN
   ============================================================================ */

/* Tablette (768px - 1024px) */
@media (max-width: 1024px) {
    .hero-plans-title {
        font-size: 2.5rem;
    }
    
    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .badges-confiance {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .plans-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile (< 768px) */
@media (max-width: 768px) {
    .hero-plans {
        min-height: 900px;
        padding: 60px 20px;
    }
    
    .hero-plans-title {
        font-size: 2rem;
    }
    
    .hero-plans-subtitle {
        font-size: 1rem;
        margin-bottom: 30px;
    }
    
    .hero-stats {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .hero-stat-number {
        font-size: 2.5rem;
    }
    
    .hero-cta-button {
        padding: 15px 40px;
        font-size: 1rem;
    }
    
    .section-expertise {
        padding: 60px 20px;
    }
    
    .section-expertise-title {
        font-size: 1.8rem;
    }
    
    .badges-confiance {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .galerie-header h2 {
        font-size: 1.8rem;
    }
    
    .galerie-description {
        font-size: 1rem;
    }
    
    .plans-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .plan-image-wrapper {
        height: 220px;
    }
    
    .cta-title {
        font-size: 1.5rem;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .btn-cta {
        width: 100%;
    }
}

/* Très petit mobile (< 480px) */
@media (max-width: 480px) {
    .hero-plans-title {
        font-size: 1.5rem;
    }
    
    .hero-stat-card {
        padding: 20px 15px;
    }
    
    .hero-stat-number {
        font-size: 2rem;
    }
    
    .badge-confiance {
        padding: 30px 20px;
    }
    
    .badge-icon {
        width: 60px;
        height: 60px;
    }
    
    .galerie-header h2 {
        font-size: 1.5rem;
    }
    
    .plan-nom {
        font-size: 1.2rem;
    }
    
    .plan-details {
        flex-direction: column;
        gap: 8px;
    }
    
    .galerie-cta {
        padding: 40px 25px;
    }
}

/* ============================================================================
   ANIMATIONS (optionnel - effet d'apparition)
   ============================================================================ */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-stats,
.badges-confiance {
    animation: fadeInUp 0.8s ease;
}

.plan-card {
    animation: fadeInUp 0.6s ease;
}

/* ============================================================================
   FIN DU FICHIER CSS
   ============================================================================ */