/* ==========================================================================
   HERO SECTIONS - Toutes les variantes de sections hero
   ========================================================================== */

/* ==========================================================================
   BASE HERO - Structure commune
   ========================================================================== */

.hero,
.energy-hero,
.astro-hero,
.product-hero,
.methodology-hero,
.hero-section,
.vintage-hero,
.matrix-hero,
.domotique-hero,
.esphome-hero,
.rpi-hero,
.ha-hero,
.megohm-hero,
.blog-hero,
.resources-hero,
.contact-hero,
.about-hero,
.products-hero,
.multimetre-hero,
.gallery-hero {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    padding: 40px 20px;
    position: relative;
    overflow: hidden;
    min-height: 270px;
}

/* Contenu au-dessus des effets de fond */
.hero > *,
.energy-hero > *,
.astro-hero > *,
.product-hero > *,
.methodology-hero > *,
.hero-section > *,
.vintage-hero > *,
.matrix-hero > *,
.domotique-hero > *,
.esphome-hero > *,
.rpi-hero > *,
.ha-hero > *,
.megohm-hero > *,
.blog-hero > *,
.resources-hero > *,
.contact-hero > *,
.about-hero > *,
.products-hero > *,
.multimetre-hero > *,
.gallery-hero > * {
    position: relative;
    z-index: 2;
}

/* ==========================================================================
   IMAGE DE FOND COMMUNE - horloge_vintage.jpg floutée (toutes les pages)
   ========================================================================== */

.hero::before,
.energy-hero::before,
.astro-hero::before,
.product-hero::before,
.methodology-hero::before,
.hero-section::before,
.vintage-hero::before,
.matrix-hero::before,
.domotique-hero::before,
.esphome-hero::before,
.rpi-hero::before,
.ha-hero::before,
.megohm-hero::before,
.blog-hero::before,
.resources-hero::before,
.contact-hero::before,
.about-hero::before,
.products-hero::before,
.multimetre-hero::before,
.gallery-hero::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    width: calc(100% + 20px);
    height: calc(100% + 20px);
    background: url('/images/presentation/horloge_vintage.jpg') no-repeat center center/cover;
    filter: blur(8px);
    z-index: 0;
}

.hero::after,
.energy-hero::after,
.astro-hero::after,
.product-hero::after,
.methodology-hero::after,
.hero-section::after,
.vintage-hero::after,
.matrix-hero::after,
.domotique-hero::after,
.esphome-hero::after,
.rpi-hero::after,
.ha-hero::after,
.megohm-hero::after,
.blog-hero::after,
.resources-hero::after,
.contact-hero::after,
.about-hero::after,
.products-hero::after,
.multimetre-hero::after,
.gallery-hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        linear-gradient(rgba(0,0,0,0.65), rgba(0,0,0,0.75)),
        radial-gradient(circle at 20% 30%, rgba(255, 152, 0, 0.25) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(197, 30, 58, 0.15) 0%, transparent 50%),
        linear-gradient(45deg, rgba(26, 115, 232, 0.08) 0%, rgba(52, 168, 83, 0.08) 100%);
    z-index: 1;
}

/* Titres H1 - CORRIGÉ */
.hero h1,
.energy-hero h1 {
    font-size: 2.8rem;
    margin-bottom: 20px;
    color: #ffffff;  /* ← AJOUT OBLIGATOIRE */
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
    font-weight: 700;
}

/* Paragraphes - CORRIGÉ */
.hero p,
.energy-hero p {
    font-size: 1.3rem;
    max-width: 700px;
    margin-bottom: 30px;
    color: #ffffff;  /* ← AJOUT OBLIGATOIRE */
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
}
/* ==========================================================================
   CORRECTION HERO.CSS - LIGNES 81-96
   Remplacer ces sections dans votre fichier hero.css existant
   ========================================================================== */

/* Titres H1 - CORRIGÉ */
.hero h1,
.energy-hero h1 {
    font-size: 2.8rem;
    margin-bottom: 20px;
    color: #ffffff;  /* ← AJOUT OBLIGATOIRE */
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
    font-weight: 700;
}

/* Paragraphes - CORRIGÉ */
.hero p,
.energy-hero p {
    font-size: 1.3rem;
    max-width: 700px;
    margin-bottom: 30px;
    color: #ffffff;  /* ← AJOUT OBLIGATOIRE */
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
}

/* ==========================================================================
   CORRECTIONS ADDITIONNELLES RECOMMANDÉES
   Pour tous les autres types de hero qui n'ont pas de couleur définie
   ========================================================================== */

/* Blog, Resources, Gallery hero */
.blog-hero h1,
.resources-hero h1,
.gallery-hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: #ffffff;  /* ← Ajout si manquant */
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.blog-hero p,
.resources-hero p,
.gallery-hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 30px;
    color: #ffffff;  /* ← Ajout si manquant */
    opacity: 0.9;
}

/* About hero */
.about-hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: #ffffff;  /* ← Ajout si manquant */
    font-weight: 700;
}

.about-hero p {
    font-size: 1.3rem;
    max-width: 800px;
    margin: 0 auto;
    color: #ffffff;  /* ← Ajout si manquant */
    opacity: 0.9;
}

/* Contact hero */
.contact-hero h1 {
    color: #ffffff;  /* ← Ajout si manquant */
}

.contact-hero p {
    color: #ffffff;  /* ← Ajout si manquant */
}

/* Products hero */
.products-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: #ffffff;  /* ← Ajout si manquant */
    font-weight: 700;
}

.products-hero p {
    font-size: 1.2rem;
    color: #ffffff;  /* ← Ajout si manquant */
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* ==========================================================================
   VÉRIFICATION : Tous les hero avec fond sombre doivent avoir color: #ffffff
   ========================================================================== */



/* Règle globale de sécurité (à ajouter à la fin du fichier) */
[class*="hero"] h1,
[class*="hero"] h2,
[class*="hero"] h3,
[class*="hero"] p {
    color: #ffffff;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
}

/* ==========================================================================
   HERO ÉNERGIE - Gradient
   ========================================================================== */

.energy-hero {
    background: none;
}

/* ==========================================================================
   HERO ASTRO ET PRODUITS - Fonds clairs
   ========================================================================== */

.astro-hero {
    background: none;
}

.astro-hero .product-title {
    color: var(--astro-blue);
}

.product-hero {
    background: none;
    color: white;
    margin-bottom: 0;
    text-align: center;
}


.product-hero .product-title {
    font-size: 2.2rem;
    margin-bottom: 15px;
    font-weight: 700;
    line-height: 1.2;
}

.product-hero .product-ref {
    background: rgba(255,255,255,0.2);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
}

.product-hero .hero-description {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
    opacity: 1; /* ← Changez de 0.95 à 1 */
    line-height: 1.6;
    color: white; /* ← Ajoutez explicitement la couleur */
}

.products-hero {
    background: none;
}

.products-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.products-hero p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* ==========================================================================
   HERO MÉTHODOLOGIE
   ========================================================================== */

.methodology-hero {
    background: none;
    height: 25vh;
    padding: 30px 0;
}

/* ==========================================================================
   HERO PAGES DE DEVIS
   ========================================================================== */

.hero-section {
    background: none;
    color: white;
}

.hero-title {
    font-size: 2.5em;
    margin-bottom: 20px;
    font-weight: bold;
}

.hero-subtitle {
    font-size: 1.2em;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* ==========================================================================
   HERO THÉMATIQUES SPÉCIALISÉES
   ========================================================================== */

/* VINTAGE HERO */
.vintage-hero {
    background: none;
    height: 25vh;
    min-height: 200px;
}

/* MATRIX HERO */
.matrix-hero {
    background: none;
    height: 30vh;
    min-height: 270px;
}


/* ==========================================================================
   HERO TECHNOLOGIQUES
   ========================================================================== */

/* DOMOTIQUE HERO */
.domotique-hero {
    background: none;
}

/* ESPHOME HERO */
.esphome-hero {
    background: none;
}

/* RASPBERRY PI HERO */
.rpi-hero {
    background: none;
}

/* HOME ASSISTANT HERO */
.ha-hero {
    background: none;
}

/* MEGOHM-X HERO */
.megohm-hero {
    background: none;
}

/* MULTIMÈTRE HERO */
.multimetre-hero {
    background: none;
}

/* ==========================================================================
   HERO ASTRONOMIQUE - Effets d'étoiles
   ========================================================================== */

.astro-hero.astronomical {
    background: none;
}


/* ==========================================================================
   HERO BLOG ET RESSOURCES
   ========================================================================== */

.blog-hero,
.resources-hero,
.gallery-hero {
    background: none;
}

.blog-hero h1,
.resources-hero h1,
.gallery-hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.blog-hero p,
.resources-hero p,
.gallery-hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 30px;
    opacity: 0.9;
}

/* CONTACT HERO */
.contact-hero {
    background: none;
}

/* ABOUT HERO */
.about-hero {
    background: none;
}

.about-hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.about-hero p {
    font-size: 1.3rem;
    max-width: 800px;
    margin: 0 auto;
    opacity: 0.9;
}

/* ==========================================================================
   ICÔNES ANIMÉES DANS LES HERO
   ========================================================================== */

.esp32-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    color: #fbbc05;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    animation: chipPulse 3s ease-in-out infinite alternate;
    display: block;
    text-align: center;
}

.rpi-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    color: #fbbc05;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    animation: rpiPulse 4s ease-in-out infinite alternate;
    display: block;
    text-align: center;
}

.ha-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    color: #00d4ff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    animation: haPulse 3s ease-in-out infinite alternate;
    display: block;
    text-align: center;
}

.esphome-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    color: #1abc9c;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    animation: espPulse 4s ease-in-out infinite alternate;
    display: block;
}

.megohm-icon {
    font-size: 4.5rem;
    margin-bottom: 25px;
    color: #00ffff;
    text-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
    animation: megPulse 3s ease-in-out infinite alternate;
    display: block;
    text-align: center;
}

.astro-icon {
    font-size: 4rem;
    margin-bottom: 25px;
    color: #ffd700;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.6);
    animation: telescopePulse 4s ease-in-out infinite alternate;
    display: block;
}

/* Animations des icônes */
@keyframes chipPulse {
    0% { 
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
    100% { 
        transform: scale(1.1) rotate(3deg);
        opacity: 0.8;
    }
}

@keyframes rpiPulse {
    0% { 
        transform: scale(1) rotateY(0deg);
        opacity: 1;
    }
    100% { 
        transform: scale(1.08) rotateY(10deg);
        opacity: 0.9;
    }
}

@keyframes haPulse {
    0% { 
        transform: scale(1);
        filter: drop-shadow(0 0 10px rgba(0, 212, 255, 0.5));
    }
    100% { 
        transform: scale(1.06);
        filter: drop-shadow(0 0 20px rgba(0, 212, 255, 0.8));
    }
}

@keyframes espPulse {
    0% { 
        transform: scale(1);
        filter: brightness(1);
    }
    100% { 
        transform: scale(1.05);
        filter: brightness(1.2);
    }
}

@keyframes megPulse {
    0% { 
        transform: scale(1);
        filter: drop-shadow(0 0 10px rgba(0, 255, 255, 0.5));
    }
    100% { 
        transform: scale(1.05);
        filter: drop-shadow(0 0 30px rgba(0, 255, 255, 0.8));
    }
}

@keyframes telescopePulse {
    0% { 
        transform: scale(1);
        filter: brightness(1);
    }
    100% { 
        transform: scale(1.05);
        filter: brightness(1.2);
    }
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

/* Desktop */
@media (min-width: 992px) {
    .astro-hero.astronomical .astro-features-highlight {
        justify-content: center;
        gap: 40px;
    }
}

/* Tablettes */
@media (max-width: 992px) {
    .hero,
    .energy-hero {
        height: 40vh;
        min-height: 350px;
    }
    
    .hero h1,
    .energy-hero h1 {
        font-size: 2.4rem;
    }
    
    .hero p,
    .energy-hero p {
        font-size: 1.2rem;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .hero,
    .energy-hero,
    .vintage-hero,
    .matrix-hero {
        height: 50vh;
        min-height: 400px;
        padding: 20px 15px;
    }
    
    .hero h1,
    .energy-hero h1,
    .vintage-hero h1,
    .blog-hero h1,
    .about-hero h1 {
        font-size: 1.9rem;
        line-height: 1.2;
        margin-bottom: 15px;
    }
    
    .hero p,
    .energy-hero p,
    .vintage-hero p,
    .blog-hero p,
    .about-hero p {
        font-size: 1.1rem;
        max-width: 90%;
        margin-bottom: 25px;
        line-height: 1.4;
    }
    
    .matrix-hero h1 {
        font-size: 2.2rem;
    }
    
    .esphome-hero {
        padding: 60px 0;
        min-height: 400px;
    }
    
    .esphome-icon,
    .esp32-icon,
    .rpi-icon {
        font-size: 3rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .contact-hero h1,
    .products-hero h1 {
        font-size: 2.2rem;
    }
    
    .contact-hero p,
    .products-hero p {
        font-size: 1.1rem;
    }
    
    .product-hero .product-title {
        font-size: 1.8rem;
    }
    
    .product-hero .hero-description {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .hero,
    .energy-hero,
    .vintage-hero {
        height: 45vh;
        min-height: 350px;
    }
    
    .hero h1,
    .energy-hero h1,
    .vintage-hero h1 {
        font-size: 1.6rem;
        margin-bottom: 12px;
    }
    
    .hero p,
    .energy-hero p,
    .vintage-hero p {
        font-size: 1rem;
        margin-bottom: 20px;
    }
    
    .matrix-hero h1 {
        font-size: 1.8rem;
    }
    
    .matrix-hero p {
        font-size: 1rem;
    }
    
    .product-hero {
        padding: 40px 0;
    }
    
    .product-hero .product-title {
        font-size: 1.5rem;
    }
}
/* Hero section produit */
.product-section {
    padding: 40px 0;
}

/* =============================================================================
   CORRECTIONS CSS POUR LA LISIBILITÉ DES BANDEAUX PRODUITS
   Ciblage spécifique des classes .product-info
   ============================================================================= */

/* Amélioration du titre produit */
.product-info .product-title {
    /* Remplacer le bleu par du blanc pour plus de contraste */
    color: #ffffff !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    font-weight: 700;
    font-size: 2.2rem;
    line-height: 1.2;
    margin-bottom: 0.5rem;
}

/* Amélioration de la référence produit */
.product-info .product-ref {
    color: #e0e0e0 !important; /* Gris très clair */
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.6);
    font-weight: 500;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    display: inline-block;
}

/* Amélioration de la description produit */
.product-info .hero-description {
    /* Remplacer le gris par du blanc cassé pour plus de lisibilité */
    color: #f5f5f5 !important;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
    font-size: 1.1rem;
    line-height: 1.6;
    font-weight: 400;
    margin-bottom: 2rem;
    max-width: 600px; /* Limiter la largeur pour une meilleure lecture */
}

/* Amélioration globale du conteneur product-info */
.product-info {
    /* Ajouter un fond semi-transparent pour améliorer la lisibilité */
    background: rgba(0, 0, 0, 0.3);
    padding: 2rem;
    border-radius: 10px;
    backdrop-filter: blur(2px);
    margin: 2rem 0;
}

/* Alternative sans fond (si vous préférez garder la transparence) */
.product-info.no-background {
    background: none;
    backdrop-filter: none;
}

.product-info.no-background .product-title {
    color: #ffffff !important;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.9);
}

.product-info.no-background .hero-description {
    color: #ffffff !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.9);
}

/* Styles pour les boutons CTA pour maintenir la cohérence */
.product-info .cta-buttons {
    margin-top: 2rem;
}

.product-info .cta-buttons .btn {
    text-shadow: none; /* Pas d'ombre sur les boutons */
    font-weight: 600;
}

/* Styles responsives pour mobile */
@media (max-width: 768px) {
    .product-info {
        padding: 1.5rem;
        margin: 1rem 0;
    }
    
    .product-info .product-title {
        font-size: 1.8rem;
        text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.9);
    }
    
    .product-info .hero-description {
        font-size: 1rem;
        text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.9);
    }
}

@media (max-width: 480px) {
    .product-info .product-title {
        font-size: 1.6rem;
    }
    
    .product-info .hero-description {
        font-size: 0.95rem;
        line-height: 1.5;
    }
}

/* Classes utilitaires pour application sélective */
.product-info.high-contrast .product-title {
    color: #ffffff !important;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 1);
    font-weight: 800;
}

.product-info.high-contrast .hero-description {
    color: #ffffff !important;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 1);
    font-weight: 500;
}

/* Version avec fond coloré si nécessaire */
.product-info.colored-background {
    background: linear-gradient(135deg, rgba(0, 51, 102, 0.8) 0%, rgba(0, 77, 153, 0.6) 100%);
    border-left: 4px solid #ffffff;
}

/* Version minimaliste avec juste une amélioration du contraste */
.product-info.minimal-fix .product-title {
    color: #ffffff !important;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.product-info.minimal-fix .hero-description {
    color: #f0f0f0 !important;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

/* ----------------------------------------------------------------------------
   2. HERO COMPONENTS - 10 fichiers
   Fichier cible: 04-components/hero.css
   ---------------------------------------------------------------------------- */

.hero-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    color: #3498db;
    display: block;
    stroke-width: 2;
}

.hero-icon svg {
    width: 100%;
    height: 100%;
}

.hero-category {
    display: inline-block;
    padding: 0.3rem 1rem;
    background: #3498db;
    color: white;
    border-radius: 20px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.hero-category:hover {
    background: #2980b9;
    transform: scale(1.05);
}

.hero-content {
    text-align: center;
    padding: 3rem 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.hero-content h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.2rem;
    color: #7f8c8d;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .hero-icon {
        width: 48px;
        height: 48px;
    }
    
    .hero-content {
        padding: 2rem 1rem;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
}
/* Hero Components */
.hero-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 1rem;
    color: #3498db;
}

.hero-category {
    display: inline-block;
    padding: 0.3rem 1rem;
    background: #3498db;
    color: white;
    border-radius: 20px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
}

.hero-content {
    text-align: center;
    padding: 2rem;
}
