/* ==========================================
   ACCUEIL : illustration « atelier de nuit » derrière le haut de page.
   Le titre, les boutons et les chiffres restent du vrai texte, au-dessus d'un voile
   qui garde le centre sombre et lisible. Chargé uniquement par index.php.
   ========================================== */

.hero {
    background: #0f0f1e;
}

.hero-photo {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.hero-photo img {
    width: 100%;
    height: 100% !important; /* style.css impose img { height: auto !important } */
    object-fit: cover;
    object-position: 50% 45%;
    transform-origin: 50% 45%;
    animation: hero-atelier-zoom 24s ease-in-out infinite alternate;
}

@keyframes hero-atelier-zoom {
    from { transform: scale(1); }
    to { transform: scale(1.05); }
}

/* Voile : centre sombre pour le texte, haut sous l'en-tête, bas fondu vers la section suivante */
.hero-photo-veil {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 46% 58% at 50% 50%, rgba(12, 11, 26, 0.86) 0%, rgba(12, 11, 26, 0.6) 55%, rgba(12, 11, 26, 0) 100%),
        linear-gradient(180deg, rgba(15, 15, 30, 0.7) 0%, rgba(15, 15, 30, 0) 22%, rgba(15, 15, 30, 0) 70%, #1a1a2e 100%);
}

/* Les halos animés d'origine restent, très atténués, pour la continuité avec le reste du site */
.hero-photo ~ .gradient-orb {
    opacity: 0.08;
}

/* Le texte du haut de page est toujours sur fond sombre, quel que soit le thème choisi */
.hero .hero-title {
    color: #f0f4f8;
}

.hero .hero-subtitle {
    color: #d6dbe6;
    text-shadow: 0 1px 12px rgba(0, 0, 0, 0.6);
}

.hero .stat-card {
    background: rgba(18, 17, 36, 0.72);
    border-color: rgba(255, 255, 255, 0.12);
}

.hero .stat-label {
    color: #c2cad8;
}

html:not(.dark-theme) .hero .btn-secondary {
    background: rgba(18, 17, 36, 0.6);
    color: #f0f4f8;
    border-color: rgba(255, 255, 255, 0.28);
}

/* Téléphone : image verticale dédiée (imprimante 3D et laser côte à côte) */
@media (max-width: 768px) {
    .hero-photo img {
        object-position: 50% 40%;
        transform-origin: 50% 40%;
    }

    .hero-photo-veil {
        background:
            linear-gradient(180deg, rgba(12, 11, 26, 0.6) 0%, rgba(12, 11, 26, 0.46) 45%, rgba(12, 11, 26, 0.68) 82%, #1a1a2e 100%);
    }

    .hero .hero-title {
        text-shadow: 0 2px 18px rgba(0, 0, 0, 0.65);
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-photo img {
        animation: none;
    }
}
