/**
 * ==================================================================================
 * STYLES PAGE D'ACCUEIL - VERSION OPTIMISÉE badge-best
 * ==================================================================================
 * 
 * Contient UNIQUEMENT les styles spécifiques à la page d'accueil
 * Les composants globaux sont dans styles.css
 * Les service cards sont dans service-card.css
 * 
 * SECTIONS :
 * 1. Hero Subtitle
 * 2. Section Comparatif Tarifaire USP
 * 3. Section Expertise Nantes (Layout image + texte)
 * 4. Avantages Nantes
 * 5. Corrections layout
 * 
 * Date : Janvier 2025 - Version 3.0 Optimisée
 * ==================================================================================
 */

/* ==================================================================================
   1. HERO SUBTITLE
   ================================================================================== */

.hero-subtitle-inline {
    font-size: 24px;
    display: block;
    margin-top: 15px;
    opacity: 0.95;
}

/* ==================================================================================
   2. SECTION COMPARATIF TARIFAIRE USP
   ================================================================================== */

.section-tarif-usp {
    padding: 80px 20px;
    background: #f8f9fa;
    overflow-x: hidden;
}

.badge-section {
    background: #667eea;
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 20px;
}

.section-tarif-usp h2 {
    font-size: 38px;
    margin-bottom: 20px;
    color: #2c3e50;
}

/* Grid Comparatif */
.comparison-grid-home {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    margin: 40px auto;
    max-width: 100%;
    box-sizing: border-box;
}

.comparison-card-home {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    position: relative;
    overflow: visible;
    flex: 1 1 350px;
    max-width: 600px;
    box-sizing: border-box;
}

/* Card Concurrent (rouge) */
.competitor-card {
    border: 2px solid #dc3545;
    opacity: 0.85;
}

/* Card Notre Offre (vert) */
.our-card {
    border: 3px solid #28a745;
}

.badge-best {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: #28a745;
    color: white;
    padding: 8px 20px;
    border-radius: 25px;
    font-weight: 700;
    font-size: 13px;
    z-index: 5;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

/* Prix */
.price-tag-home {
    font-size: 56px;
    font-weight: 900;
    text-align: center;
    margin: 20px 0;
}

.competitor-card .price-tag-home {
    color: #dc3545;
}

.our-card .price-tag-home.highlight {
    color: #28a745;
}

.price-subtitle-home {
    text-align: center;
    color: #6c757d;
    margin-bottom: 20px;
}

/* Dual Offers (0% ou 8%) */
.dual-offers {
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin: 30px 0;
}

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

.offer-separator {
    font-size: 24px;
    font-weight: 600;
    color: #6c757d;
}

/* Liste Comparaison */
.comparison-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.comparison-list li {
    padding: 12px 0;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    border-bottom: 1px solid #f8f9fa;
}

.comparison-list li i {
    margin-top: 3px;
    font-size: 16px;
}

.competitor-card .comparison-list li i {
    color: #dc3545;
}

.comparison-list.positive li i {
    color: #28a745;
}

/* Encadré Économies */
.economy-highlight {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    margin: 30px 0;
}

.economy-highlight i {
    font-size: 24px;
    margin-right: 10px;
}

/* Note Explicative */
.comparison-note {
    background: #fff3cd;
    border-left: 5px solid #ffc107;
    padding: 20px;
    border-radius: 8px;
    margin-top: 40px;
}

.comparison-note i {
    color: #ffc107;
    font-size: 24px;
    margin-right: 10px;
}

/* ==================================================================================
   3. SECTION EXPERTISE NANTES - Layout côte à côte
   ================================================================================== */

.section-nantes-expertise {
    padding: 80px 0;
    background: linear-gradient(135deg, rgba(29, 78, 216, 0.02) 0%, rgba(14, 165, 233, 0.02) 100%);
    position: relative;
}

.section-nantes-expertise h2 {
    font-size: clamp(2rem, 4vw, 2.5rem);
    margin-bottom: 3rem;
    text-align: center;
    color: var(--heading-color);
}

.section-nantes-expertise h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-top: 4rem;
    margin-bottom: 2rem;
    text-align: center;
    color: var(--heading-color);
}

/* Layout image + texte côte à côte */
.expertise-content-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
    margin-bottom: 4rem;
}

@media (min-width: 992px) {
    .expertise-content-wrapper {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
    }
}

/* Colonne texte */
.expertise-text {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.expertise-text .lead {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.expertise-text p {
    color: var(--text-color);
    line-height: 1.8;
    font-size: 1.05rem;
}

/* Colonne image avec effet moderne */
.expertise-image-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.expertise-image-wrapper::before {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    opacity: 0.1;
    z-index: 0;
}

.expertise-image-wrapper:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.2);
}

.expertise-image-wrapper img {
    width: 100%;
    height: auto;
    max-height: 450px;
    object-fit: cover;
    display: block;
    border-radius: 20px;
}

/* ==================================================================================
   4. AVANTAGES NANTES - Grid moderne avec icônes
   ================================================================================== */

.nantes-advantages {
    margin-top: 0;
}

.nantes-advantages h3 {
    font-size: clamp(1.75rem, 3vw, 2rem);
    text-align: center;
    margin-bottom: 3rem;
    color: var(--heading-color);
    margin-top: 5rem;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
    gap: 2rem;
}

/* Item avantage avec animation */
.advantage-item {
    background: var(--white-color);
    padding: 2.5rem 1.5rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.advantage-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
    pointer-events: none;
}

.advantage-item:hover::before {
    opacity: 0.05;
}

.advantage-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
    border-color: var(--primary-light);
}

/* Icône avec effet d'animation */
.advantage-item i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    display: inline-block;
    transition: transform 0.3s ease;
    position: relative;
    z-index: 2;
}

.advantage-item:hover i {
    transform: scale(1.1) rotate(5deg);
}

.advantage-item h4 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--heading-color);
    position: relative;
    z-index: 2;
    line-height: 1.3;
}

.advantage-item p {
    color: var(--text-color);
    line-height: 1.6;
    margin: 0;
    position: relative;
    z-index: 2;
    font-size: 0.95rem;
}

/* ==================================================================================
   5. CORRECTIONS LAYOUT
   ================================================================================== */

/* Supprimer les marges des <br> dans la section expertise */
.section-nantes-expertise br {
    display: none;
}

/* S'assurer que la skyline ne crée pas d'espace */
.hero-small .nantes-skyline {
    margin: 0;
    padding: 0;
    display: block;
    overflow: hidden;
}

.hero-small .nantes-skyline img {
    margin: 0;
    padding: 0;
    display: block;
}

/* S'assurer qu'il n'y a pas d'espaces entre les sections */
main section {
    margin-top: 0;
    margin-bottom: 0;
}

/* ==================================================================================
   6. RESPONSIVE
   ================================================================================== */

@media (max-width: 768px) {
    .section-tarif-usp {
        padding: 60px 10px;
    }

    .comparison-grid-home {
        gap: 25px;
        margin: 30px 0;
    }

    .comparison-card-home {
        flex: 1 1 100%;
        max-width: 100%;
        padding: 25px 15px;
        border-radius: 12px;
    }

    .price-tag-home {
        font-size: 40px;
    }

    .section-tarif-usp h2 {
        font-size: 28px;
    }

    .dual-offers {
        flex-direction: column;
        gap: 20px;
    }

    .offer-separator {
        transform: rotate(90deg);
    }

    .section-nantes-expertise {
        padding: 60px 0;
    }

    .expertise-image-wrapper img {
        max-height: 300px;
    }

    .advantages-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
    }

    .advantage-item {
        padding: 2rem 1.5rem;
        min-height: auto;
    }

    .advantage-item i {
        font-size: 2.5rem;
    }

    .advantage-item h4 {
        font-size: 1.15rem;
    }

    .advantage-item p {
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .advantage-item {
        padding: 1.75rem 1.25rem;
    }

    .advantage-item i {
        font-size: 2.25rem;
        margin-bottom: 1rem;
    }

    .advantage-item h4 {
        font-size: 1.1rem;
        margin-bottom: 0.75rem;
    }
}

/* Animation des advantage items */
.advantage-item {
    animation: fadeInUp 0.6s ease-out backwards;
}

.advantage-item:nth-child(1) { animation-delay: 0.1s; }
.advantage-item:nth-child(2) { animation-delay: 0.2s; }
.advantage-item:nth-child(3) { animation-delay: 0.3s; }
.advantage-item:nth-child(4) { animation-delay: 0.4s; }

/* Désactiver les animations si l'utilisateur préfère */
@media (prefers-reduced-motion: reduce) {
    .advantage-item {
        animation: none;
    }
}