/**
 * ============================================================================
 * MAISONS CTL - Style de la page "Plans & Permis de Construire"
 * ============================================================================
 *
 * Fichier : assets/css/plans.css
 * Version : 2.0.0
 * Date : 24 février 2026
 *
 * 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 modernes + filtres
 *
 * PARTICULARITÉS :
 * - Design responsive mobile-first
 * - Cards modernes avec chips statistiques sur image
 * - Badges rouges (#c41e3a) cohérents charte graphique
 * - Barre de filtres par type et style
 * - Hover : translateY(-8px), scale(1.08) sur images
 * - Typographie DM Serif Display pour titres de cards
 *
 * BREAKPOINTS :
 * - Desktop : > 1024px
 * - Tablette : 768px - 1024px
 * - Mobile : < 768px
 * - Petit mobile : < 480px
 *
 * CHANGELOG :
 * v2.0.0 (24/02/2026) — Refonte design galerie : cards modernes, filtres, chips
 * v1.0.0 (29/10/2025) — Création initiale
 *
 * ============================================================================
 */

/* ============================================================================
   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 — CARDS MODERNES
   ============================================================================ */

.galerie-section {
    padding: 80px 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* En-tete de la galerie */
.galerie-header {
    text-align: center;
    margin-bottom: 40px;
}

.galerie-header h2 {
    font-family: 'DM Serif Display', serif;
    font-size: 2.5rem;
    font-weight: 400;
    color: #2c3e50;
    margin-bottom: 15px;
}

.galerie-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #666;
    max-width: 800px;
    margin: 0 auto 15px;
}

.galerie-note {
    font-size: 1rem;
    color: #c41e3a;
    font-weight: 500;
}

/* ============================================================================
   BARRE DE FILTRES
   ============================================================================ */

.filter-bar {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}

.filter-btn {
    padding: 10px 24px;
    border: 2px solid #e0e0e0;
    background: #fff;
    color: #555;
    border-radius: 30px;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    border-color: #c41e3a;
    color: #c41e3a;
}

.filter-btn.active {
    background: #c41e3a;
    color: #fff;
    border-color: #c41e3a;
}

/* Compteur de resultats */
.filter-count {
    text-align: center;
    margin-bottom: 30px;
    font-size: 0.95rem;
    color: #888;
    font-weight: 500;
    transition: opacity 0.3s ease;
}

.filter-count strong {
    color: #c41e3a;
}

/* ============================================================================
   GRILLE DE CARDS MODERNES
   ============================================================================ */

.models-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 60px;
}

.model-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.model-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.model-card.hidden {
    display: none;
}

/* ============================================================================
   IMAGE DE LA CARD
   ============================================================================ */

.model-card-image {
    position: relative;
    height: 260px;
    overflow: hidden;
}

.model-card-image a {
    display: block;
    width: 100%;
    height: 100%;
}

.model-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.model-card:hover .model-card-image img {
    transform: scale(1.08);
}

/* Badge type (en haut a gauche) */
.model-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #c41e3a;
    color: #fff;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

a.model-badge:hover {
    background: #a01830;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Chips statistiques sur l'image (en bas) */
.model-card-chips {
    position: absolute;
    bottom: 12px;
    left: 12px;
    right: 12px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    z-index: 2;
}

.model-chip {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #2c3e50;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* ============================================================================
   CORPS DE LA CARD
   ============================================================================ */

.model-card-body {
    padding: 24px;
}

.model-card-title {
    font-family: 'DM Serif Display', serif;
    font-size: 1.35rem;
    color: #2c3e50;
    margin: 0 0 10px;
    font-weight: 400;
}

.model-card-desc {
    font-size: 0.92rem;
    color: #666;
    line-height: 1.6;
    margin: 0 0 20px;
    min-height: 48px;
}

.model-card-footer {
    display: flex;
    align-items: center;
    gap: 12px;
}

.model-card-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 22px;
    background: #c41e3a;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-family: 'DM Sans', sans-serif;
    font-weight: 600;
    font-size: 0.88rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.model-card-cta:hover {
    background: #a01830;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(196, 30, 58, 0.3);
    color: #fff;
}

.model-card-cta svg {
    width: 16px;
    height: 16px;
}

.model-card-contact {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    background: transparent;
    color: #c41e3a;
    text-decoration: none;
    border-radius: 8px;
    font-family: 'DM Sans', sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    border: 2px solid #c41e3a;
}

.model-card-contact:hover {
    background: #c41e3a;
    color: #fff;
}

/* ============================================================================
   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-family: 'DM Serif Display', serif;
    font-size: 2rem;
    font-weight: 400;
    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;
    }

    .models-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;
    }

    .models-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .model-card-image {
        height: 220px;
    }

    .filter-bar {
        gap: 8px;
    }

    .filter-btn {
        padding: 8px 18px;
        font-size: 0.85rem;
    }

    .cta-title {
        font-size: 1.5rem;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .btn-cta {
        width: 100%;
    }

    .model-card-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .model-card-cta,
    .model-card-contact {
        text-align: center;
        justify-content: center;
    }
}

/* Tres 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;
    }

    .model-card-title {
        font-size: 1.2rem;
    }

    .model-card-chips {
        gap: 6px;
    }

    .model-chip {
        font-size: 0.75rem;
        padding: 4px 10px;
    }

    .galerie-cta {
        padding: 40px 25px;
    }
}

/* ============================================================================
   ANIMATIONS
   ============================================================================ */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-stats,
.badges-confiance {
    animation: fadeInUp 0.8s ease;
}

.model-card {
    animation: fadeInUp 0.6s ease;
}

/* ============================================================================
   FIN DU FICHIER CSS
   ============================================================================ */
