/* ============================================================
   SPI L.A. Préventif - styles propres à la page d'accueil.
   Le commun (en-tête, pied de page, boutons) est dans base.css
   ============================================================ */

/* --- HERO SECTION --- */
.hero {
    position: relative;
    overflow: hidden;
    height: 86vh;
    min-height: 550px;
    background-color: var(--primary);
    display: flex; align-items: center; text-align: center; padding-top: var(--total-header-height);
}
/* Image de fond sur un calque dédié pour l'animation de zoom (Ken Burns) */
.hero::before {
    content: '';
    position: absolute; inset: 0; z-index: 0;
    background: url('/images/photo-porte-de-garage.jpg') center/cover no-repeat;
    transform: scale(1.02);
    animation: heroZoom 22s ease-in-out infinite alternate;
    will-change: transform;
}
/* Overlay dégradé : léger en haut (on voit le produit), plus dense en bas pour lire le texte */
.hero::after {
    content: '';
    position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(to bottom, rgba(1, 66, 150, 0.30) 0%, rgba(1, 66, 150, 0.40) 45%, rgba(1, 66, 150, 0.78) 100%);
}
.hero .container { position: relative; z-index: 3; }
@keyframes heroZoom { from { transform: scale(1.02); } to { transform: scale(1.08); } }

/* Vague décorative en bas du hero (signature "eau" + transition de section) */
.hero-wave { position: absolute; left: 0; bottom: -1px; width: 100%; z-index: 2; line-height: 0; pointer-events: none; }
.hero-wave svg { display: block; width: 100%; height: 90px; }
.hero-wave .wave-fill { fill: var(--bg-light); }
.hero-wave .wave-drift { animation: waveDrift 14s ease-in-out infinite alternate; }
@keyframes waveDrift { from { transform: translateX(0); } to { transform: translateX(-40px); } }
.hero-content { max-width: 900px; margin: 0 auto; color: var(--white); }
.hero h1 { color: var(--white); font-size: 3.8rem; font-weight: 800; margin-bottom: 25px; text-shadow: 0 2px 6px rgba(0,0,0,0.45), 0 6px 24px rgba(0,0,0,0.35); }
.hero h1 span { color: var(--secondary); }
.hero p { font-size: 1.20rem; margin-bottom: 40px; font-weight: 400; text-shadow: 0 1px 4px rgba(0,0,0,0.5), 0 2px 12px rgba(0,0,0,0.35); max-width: 800px; margin-left: auto; margin-right: auto; }
.hero-buttons { display: flex; gap: 20px; justify-content: center; }

/* --- MEDIA BANNER (Social Proof) --- */
.media-banner { background-color: var(--bg-light); padding: 30px 0; border-bottom: 1px solid #eaeaea; }
.media-label { text-align: center; font-family: 'Montserrat', sans-serif; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; font-size: 0.8rem; color: var(--text); margin-bottom: 20px; }
.media-logos { display: flex; justify-content: center; align-items: center; gap: 40px; flex-wrap: wrap; }
.media-logos img {
    height: 40px;
    width: auto;
    object-fit: contain;
    filter: brightness(0) saturate(100%) invert(46%) sepia(99%) saturate(3015%) hue-rotate(185deg) brightness(101%) contrast(99%);
    opacity: 0.9;
    transition: var(--transition);
    cursor: pointer;
}
.media-logos img:hover {
    /* Recoloration vers #014296 (bleu primaire) au survol */
    filter: brightness(0) saturate(100%) invert(11%) sepia(77%) saturate(4370%) hue-rotate(206deg) brightness(102%) contrast(99%);
    opacity: 1;
    transform: scale(1.05);
}

/* --- BANDEAU STATISTIQUES (réassurance chiffrée) --- */
.stats-band { background-color: var(--secondary); padding: 60px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 30px; text-align: center; }
.stat-item { padding: 10px; }
.stat-item .stat-value { font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: 2.8rem; color: var(--white); line-height: 1; margin-bottom: 10px; }
.stat-item .stat-label { font-family: 'Montserrat', sans-serif; font-weight: 700; text-transform: uppercase; font-size: 0.85rem; letter-spacing: 0.5px; color: var(--white); }
.stat-item .stat-desc { font-size: 0.9rem; color: rgba(255,255,255,0.9); margin-top: 6px; }

/* --- FEATURES SECTION --- */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px; margin-top: 50px; }
.feature-card { background: var(--white); padding: 40px 30px; border-radius: 12px; text-align: center; box-shadow: var(--shadow); transition: var(--transition); height: 100%; border: 1px solid #f0f0f0; border-bottom: 4px solid transparent; }
.feature-card:hover { transform: translateY(-10px); border-bottom: 4px solid var(--secondary); box-shadow: 0 15px 40px rgba(0,0,0,0.12); }
.feature-icon { width: 80px; height: 80px; background-color: rgba(1, 146, 239, 0.1); color: var(--secondary); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 2.2rem; margin: 0 auto 25px auto; transition: var(--transition); }
.feature-card:hover .feature-icon { background-color: var(--secondary); color: var(--white); }
.feature-card h3 { font-size: 1.4rem; margin-bottom: 15px; }

/* --- POLLUTION & PLUI --- */
.multi-usage-section { background-color: var(--primary); color: var(--white); padding: 90px 0; }
.multi-usage-section .section-title { color: var(--white); }
.multi-usage-section .section-subtitle { color: rgba(255,255,255,0.85); }
.multi-usage-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; margin-top: 30px; }
.multi-usage-text h3 { color: var(--secondary); font-size: 2rem; margin-bottom: 20px; }
.multi-usage-list { margin-top: 20px; }
.multi-usage-list li { margin-bottom: 15px; display: flex; align-items: flex-start; gap: 15px; font-size: 1.05rem; }
.multi-usage-list i { color: var(--secondary); font-size: 1.3rem; margin-top: 3px; }
.multi-usage-img img { border-radius: 12px; box-shadow: 0 20px 40px rgba(0,0,0,0.3); border: 3px solid var(--white); }

/* --- PRODUCTS SECTION --- */
.products-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px; }
.product-card { background: var(--white); border: 1px solid #eaeaea; border-radius: 12px; overflow: hidden; transition: var(--transition); display: flex; flex-direction: column; height: 100%; }
.product-card:hover { box-shadow: var(--shadow); border-color: var(--secondary); }
.product-img { height: 220px; background-color: var(--bg-light); display: flex; align-items: center; justify-content: center; color: var(--primary); font-size: 4rem; border-bottom: 1px solid #eaeaea; overflow: hidden; }
.product-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.product-card:hover .product-img img { transform: scale(1.05); }
.product-content { padding: 35px 30px; text-align: center; display: flex; flex-direction: column; flex-grow: 1; }
.product-content h3 { margin-bottom: 15px; font-size: 1.5rem; }
.product-content p { margin-bottom: 25px; font-size: 1rem; flex-grow: 1; }
.product-content .btn { margin-top: auto; width: 100%; }

/* --- PROOF & CONTEXT SECTION --- */
.proof-section { background: linear-gradient(rgba(1, 66, 150, 0.92), rgba(1, 66, 150, 0.92)), url('/images/photo-batardeaux-etanches.jpg') center/cover no-repeat; color: var(--white); padding: 100px 0; }
/* background-attachment: fixed retiré ici aussi */
.proof-section h2 { color: var(--white); }
.proof-content { display: flex; flex-wrap: wrap; gap: 40px; align-items: stretch; margin-top: 50px; }
.proof-text { flex: 1; min-width: 300px; background: rgba(255, 255, 255, 0.05); padding: 40px; border-radius: 12px; backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, 0.2); box-shadow: 0 15px 35px rgba(0,0,0,0.2); }
.proof-text h3 { color: var(--white) !important; font-size: 1.6rem; margin-bottom: 20px; }
.proof-text p { color: #f0f0f0 !important; font-size: 1.05rem; }
.proof-text i { font-size: 3rem; color: var(--secondary) !important; margin-bottom: 25px; display: block; }

/* --- TÉMOIGNAGES --- */
.testimonials-section { background-color: var(--bg-light); }
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px; margin-top: 50px; }
.testimonial-card { background: var(--white); border-radius: 12px; padding: 35px 30px; box-shadow: var(--shadow); border: 1px solid #f0f0f0; display: flex; flex-direction: column; }
.testimonial-stars { color: #ffb400; font-size: 1rem; margin-bottom: 18px; }
.testimonial-card blockquote { font-size: 1.05rem; font-style: italic; color: var(--text); margin-bottom: 25px; flex-grow: 1; }
.testimonial-author { display: flex; align-items: center; gap: 15px; }
.testimonial-avatar { width: 50px; height: 50px; border-radius: 50%; background-color: var(--primary); color: var(--white); display: flex; align-items: center; justify-content: center; font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: 1.2rem; flex-shrink: 0; }
.testimonial-author strong { display: block; color: var(--primary); font-family: 'Montserrat', sans-serif; }
.testimonial-author span { font-size: 0.9rem; color: var(--text); }

/* --- INSTALLATION & LOGISTICS --- */
.logistics-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; margin-top: 50px; }
.logistic-item { text-align: center; padding: 30px; background: var(--white); border-radius: 12px; box-shadow: var(--shadow); height: 100%; border: 1px solid #f0f0f0; }
.logistic-item i { font-size: 3rem; color: var(--primary); margin-bottom: 20px; }
.logistic-item h4 { font-size: 1.3rem; margin-bottom: 15px; }
.logistic-item.highlight { border: 2px solid var(--secondary); background-color: var(--bg-light); }
.logistic-item.highlight i { color: var(--secondary); }

/* --- SUBVENTIONS BANNER --- */
.subventions-section { background-color: var(--bg-light); border-radius: 20px; margin: 40px 20px; padding: 60px 20px; box-shadow: var(--shadow); }
.subventions-section .section-title { color: var(--primary); }
.subventions-section .subventions-text { max-width: 800px; margin: 0 auto 30px auto; font-size: 1.1rem; color: var(--text); }

/* --- CTA BANNER --- */
.cta-banner { background-color: var(--secondary); padding: 70px 0; text-align: center; color: var(--white); }
.cta-banner h2 { color: var(--white); margin-bottom: 25px; font-size: 2.8rem; }
.cta-banner p { font-size: 1.15rem; margin-bottom: 40px; max-width: 800px; margin-left: auto; margin-right: auto; font-weight: 600; }

@media (max-width: 1024px) {
    .multi-usage-grid { grid-template-columns: 1fr; }
}

@media (max-width: 1120px) {
    .hero { height: auto; min-height: 0; padding-top: calc(var(--header-height) + 60px); padding-bottom: 130px; }
    .hero-wave svg { height: 55px; }
    .hero h1 { font-size: 2.5rem; }
    .hero p { font-size: 1rem; }
    .hero-buttons { flex-direction: column; }
    .proof-text { min-width: 100%; }
    .media-logos img { height: 30px; }
}

    
/* --- Teaser realisations --- */
.real-teaser-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin: 42px 0 36px; }
.real-teaser-grid figure { margin: 0; border-radius: 14px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--bg-light); box-shadow: 0 4px 14px rgba(1, 66, 150, 0.10); }
.real-teaser-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.45s ease; }
.real-teaser-grid figure:hover img { transform: scale(1.06); }
@media (max-width: 820px) { .real-teaser-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; } }
    
