/* ==========================================================================
   ✨ FYDELIO — INDEX-MODERN.CSS
   Nouveau layer visuel par-dessus style.css.
   Gère : hero 2 colonnes, icônes 3D, photos Vaucluse,
          preuve sociale, step-highlight, CTA photo, footer location.
   Ne redéfinit jamais : header, .btn, .pricing-card, .site-footer de base.
   ========================================================================== */

/* ============================================================
   1. EYEBROW (petit label au-dessus des titres h2)
   ============================================================ */
.section-eyebrow {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--primary);
    margin-bottom: 14px;
}

/* ============================================================
   2. NAV — lien actif (même règle que services.css)
   ============================================================ */
.nav-link-active {
    color: var(--primary) !important;
    font-weight: 800 !important;
}

/* ============================================================
   3. HERO MODERNE — 2 colonnes (texte + photo stack)
   ============================================================ */
.hero-modern {
    padding-top: 130px;
    overflow: hidden;
}

.hero-content {
    display: flex;
    gap: 80px;
    align-items: center;
    padding-bottom: 80px;
}

/* Colonne texte */
.hero-text-col {
    flex: 1;
    max-width: 560px;
}

.hero-text-col .badge-hero {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 28px;
}

.hero-text-col h1 {
    font-size: 4rem;
    margin-bottom: 24px;
    line-height: 1.1;
}

.hero-text-col p {
    font-size: 1.18rem;
    color: var(--text-muted);
    max-width: 520px;
    line-height: 1.75;
    margin-bottom: 40px;
}

/* Lien ghost sous le CTA */
.btn-ghost-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
}
.btn-ghost-link:hover {
    color: var(--primary);
    gap: 12px;
}

/* Stats rapides sous le CTA */
.hero-stats {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
}
.hero-stat { text-align: left; }
.stat-number {
    display: block;
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.03em;
    line-height: 1;
    margin-bottom: 4px;
}
.stat-label {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 600;
    line-height: 1.4;
}
.hero-stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border);
    flex-shrink: 0;
}

/* Colonne photo */
.hero-visual-col {
    flex: 1;
    position: relative;
    min-height: 480px;
}

.hero-photo-stack {
    position: relative;
    width: 100%;
    height: 480px;
}

/* Photo principale */
.hero-photo-main {
    position: absolute;
    top: 0;
    left: 0;
    width: 82%;
    height: 100%;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}
.hero-photo-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 8s ease;
}
.hero-photo-main:hover img { transform: scale(1.04); }

/* Badge flottant sur la photo principale */
.hero-floating-badge {
    position: absolute;
    bottom: 24px;
    left: 24px;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: 100px;
    padding: 10px 18px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-main);
    box-shadow: var(--shadow-md);
}

/* Photo secondaire (Vaucluse / paysage) */
.hero-photo-secondary {
    position: absolute;
    bottom: -28px;
    right: 0;
    width: 48%;
    height: 52%;
    border-radius: 20px;
    overflow: hidden;
    border: 4px solid white;
    box-shadow: var(--shadow-lg);
}
.hero-photo-secondary img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ============================================================
   4. BANDE DE LOCALITÉ
   ============================================================ */
.locality-band {
    background: var(--surface);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 18px 0;
}
.locality-inner {
    display: flex;
    align-items: center;
    gap: 20px;
    overflow-x: auto;
    scrollbar-width: none;
}
.locality-inner::-webkit-scrollbar { display: none; }
.locality-label {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--primary);
    white-space: nowrap;
    flex-shrink: 0;
}
.locality-places {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: nowrap;
}
.locality-places span {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
    white-space: nowrap;
}
.loc-dot {
    width: 4px;
    height: 4px;
    background: var(--primary);
    border-radius: 50%;
    opacity: 0.4;
    flex-shrink: 0;
}

/* ============================================================
   5. ICÔNES 3D (Lucide + conteneur avec profondeur)
   ============================================================ */
.card-modern {
    /* Surcharge légère des cards existantes */
    border-radius: 28px !important;
    padding: 44px 36px !important;
}

.card-icon-3d {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 28px;
    position: relative;
    transition: var(--transition);
}
/* Effet de profondeur pseudo-3D */
.card-icon-3d::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 18px;
    opacity: 0.5;
    transform: translateY(6px) scale(0.88);
    filter: blur(8px);
    z-index: -1;
    transition: var(--transition);
}
.card:hover .card-icon-3d::before {
    transform: translateY(10px) scale(0.85);
    opacity: 0.7;
}
.card:hover .card-icon-3d { transform: translateY(-4px); }

/* Variantes couleur */
.card-icon-3d--red {
    background: linear-gradient(145deg, #FEE2E2, #FECACA);
}
.card-icon-3d--red i { color: #DC2626; width: 28px; height: 28px; }
.card-icon-3d--red::before { background: #FECACA; }

.card-icon-3d--amber {
    background: linear-gradient(145deg, #FEF3C7, #FDE68A);
}
.card-icon-3d--amber i { color: #D97706; width: 28px; height: 28px; }
.card-icon-3d--amber::before { background: #FDE68A; }

.card-icon-3d--green {
    background: linear-gradient(145deg, #DCFCE7, #BBF7D0);
}
.card-icon-3d--green i { color: #0F766E; width: 28px; height: 28px; }
.card-icon-3d--green::before { background: #BBF7D0; }

/* ============================================================
   6. PHOTO VAUCLUSE FULL-WIDTH
   ============================================================ */
.vaucluse-photo-section {
    margin: 40px 0;
}
.vaucluse-photo-wrapper {
    position: relative;
    height: 420px;
    overflow: hidden;
}
.vaucluse-photo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 60%;
    transform: scale(1.05);
    transition: transform 0.6s ease;
}
.vaucluse-photo-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(8,13,26,0.75) 0%, rgba(8,13,26,0.3) 60%, transparent 100%);
    display: flex;
    align-items: flex-end;
}
.vaucluse-quote {
    padding: 48px 0;
    max-width: 560px;
}
.vaucluse-quote p {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    line-height: 1.5;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}
.vaucluse-quote span {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.6);
    font-weight: 600;
}

/* ============================================================
   7. STEP HIGHLIGHT (info RGPD / anti-fraude)
   ============================================================ */
.step-highlight {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--primary-light);
    border: 1px solid rgba(15,118,110,0.12);
    border-radius: 12px;
    padding: 12px 16px;
    margin-top: 20px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--primary);
    line-height: 1.4;
}

/* ============================================================
   8. PRICING — icône en haut de carte
   ============================================================ */
.pricing-icon {
    width: 52px;
    height: 52px;
    background: var(--primary-light);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}
.pricing-icon--white {
    background: rgba(255,255,255,0.2);
}

/* Checkmarks Lucide dans la liste de prix */
.pricing-list li {
    display: flex !important;
    align-items: center;
    gap: 12px !important;
}
.pricing-list li i {
    flex-shrink: 0;
    color: var(--primary);
}
.highlight .pricing-list li i { color: white; }
/* Supprime le ::before des li car on utilise l'icône Lucide maintenant */
.pricing-list li::before { display: none !important; }

/* ============================================================
   9. PREUVE SOCIALE
   ============================================================ */
.social-proof-section {
    padding: 120px 0;
    background: var(--bg-gray);
}
.social-proof-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

/* Colonne photo */
.sp-photo-col { position: relative; }
.sp-photo-frame {
    border-radius: 28px;
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-xl);
    aspect-ratio: 4 / 5;
}
.sp-photo-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}
.sp-photo-tag {
    position: absolute;
    bottom: 24px;
    left: 24px;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: 100px;
    padding: 10px 18px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-main);
    box-shadow: var(--shadow-sm);
}

/* Colonne texte */
.sp-text-col h2 {
    font-size: 2.6rem;
    margin: 8px 0 20px;
    line-height: 1.2;
}
.sp-text-col > p {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 40px;
}

/* KPIs inline */
.kpi-inline-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}
.kpi-inline {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.kpi-inline-top {
    display: flex;
    align-items: baseline;
    gap: 2px;
}
.kpi-inline-val {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.04em;
    line-height: 1;
}
.kpi-inline-unit {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}
.kpi-inline-label {
    font-size: 0.82rem;
    color: var(--text-muted);
    font-weight: 600;
    line-height: 1.4;
}

/* ============================================================
   10. CTA FINAL AVEC PHOTO EN FOND
   ============================================================ */
.cta-photo-section {
    position: relative;
    overflow: hidden;
    padding: 0;
    margin-top: 80px;
}
.cta-photo-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.cta-photo-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
.cta-photo-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(8,13,26,0.88) 0%, rgba(15,118,110,0.6) 100%);
    z-index: 1;
}
.cta-photo-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 120px 24px;
}
.cta-photo-content h2 {
    font-size: 3rem;
    color: white;
    margin: 20px 0;
    letter-spacing: -0.03em;
    line-height: 1.15;
}
.cta-photo-content p {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.8);
    max-width: 560px;
    margin: 0 auto 40px;
    line-height: 1.7;
}
.cta-photo-btn {
    background: white !important;
    color: var(--primary) !important;
    box-shadow: 0 16px 40px rgba(0,0,0,0.25) !important;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}
.cta-photo-btn:hover {
    transform: translateY(-5px) scale(1.02) !important;
    box-shadow: 0 24px 48px rgba(0,0,0,0.3) !important;
}

/* ============================================================
   11. FOOTER — location line
   ============================================================ */
.footer-location {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    font-size: 0.88rem;
    color: var(--text-light);
    font-weight: 600;
}
.footer-contact li {
    display: flex;
    align-items: center;
    gap: 10px;
}
.footer-contact li i { flex-shrink: 0; }

/* ============================================================
   12. RESPONSIVE
   ============================================================ */
@media (max-width: 992px) {
    .hero-content {
        flex-direction: column;
        gap: 60px;
        padding-bottom: 60px;
    }
    .hero-text-col { max-width: 100%; }
    .hero-text-col h1 { font-size: 3rem; }
    .hero-visual-col { width: 100%; min-height: 360px; }
    .hero-photo-stack { height: 360px; }

    .social-proof-grid { grid-template-columns: 1fr; gap: 48px; }
    .sp-photo-frame { aspect-ratio: 16 / 9; }
    .sp-text-col h2 { font-size: 2rem; }
    .kpi-inline-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
    .hero-modern { padding-top: 110px; }
    .hero-text-col h1 { font-size: 2.4rem; }
    .hero-stats { flex-wrap: wrap; gap: 16px; }
    .hero-stat-divider { display: none; }

    .vaucluse-photo-wrapper { height: 280px; }
    .vaucluse-quote p { font-size: 1.1rem; }

    .cta-photo-content h2 { font-size: 2rem; }
    .cta-photo-content { padding: 80px 24px; }

    .kpi-inline-grid { grid-template-columns: 1fr; gap: 16px; }
    .kpi-inline-val { font-size: 2.2rem; }

    .locality-band { display: none; }
}
