/* Correctif d'urgence — animations & fix menu mobile
   Ajouts ponctuels avant la refonte complète prévue après le 18/09. */

/* --- Menu mobile : le JS bascule .nav-active, il manquait la règle CSS --- */
@media (max-width: 1023px) {
    nav.nav-active {
        display: flex !important;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        padding: 1.25rem 1.5rem 1.75rem;
        background: var(--navy-deep, #0b132b);
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }
}

/* --- Hero : léger zoom continu sur l'image de fond --- */
.hero-bg-zoom {
    animation: hero-kenburns 18s ease-in-out infinite alternate;
    will-change: transform;
}

@keyframes hero-kenburns {
    from { transform: scale(1); }
    to { transform: scale(1.08); }
}

/* --- Hero : apparition progressive du texte à l'ouverture --- */
.hero-fade {
    opacity: 0;
    transform: translateY(18px);
    animation: hero-fade-up 0.9s ease forwards;
}
.hero-fade-1 { animation-delay: .05s; }
.hero-fade-2 { animation-delay: .2s; }
.hero-fade-3 { animation-delay: .35s; }
.hero-fade-4 { animation-delay: .5s; }
.hero-fade-5 { animation-delay: .65s; }
.hero-fade-6 { animation-delay: .8s; }

@keyframes hero-fade-up {
    to { opacity: 1; transform: translateY(0); }
}

/* --- Emplacement "membre d'honneur" en attente de contenu --- */
.honor-placeholder {
    border: 1px dashed var(--gold, #c9a86a);
    background: rgba(201, 168, 106, 0.06);
}
.honor-placeholder .honor-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- Formulaire de contact : message d'erreur --- */
.cf-error {
    color: #e07a6a;
}

@media (prefers-reduced-motion: reduce) {
    .hero-bg-zoom { animation: none; }
    .hero-fade { animation: none; opacity: 1; transform: none; }
}

/* --- Boutique : image d'illustration réduite + cartes plus compactes --- */
.boutique-hero-img {
    height: 12rem;
    object-fit: cover;
}
@media (min-width: 640px) {
    .boutique-hero-img { height: 16rem; }
}

.boutique-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr;
}
@media (min-width: 640px) {
    .boutique-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
    .boutique-grid { grid-template-columns: repeat(4, 1fr); }
}

.boutique-card-img {
    height: 8rem;
    object-fit: cover;
}

.boutique-desc-clamp {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* --- Contact : texte d'intro puis formulaire en dessous --- */
.contact-split-wrap {
    max-width: 48rem;
    margin-left: auto;
    margin-right: auto;
}

.contact-split {
    display: grid;
    gap: 2.5rem;
}

/* --- Hero : pseudo-carrousel, fondu enchaîné automatique entre 4 photos ---
   Chaque diapo reste visible plus longtemps que son propre "créneau" (8s),
   pour chevaucher la suivante : une photo apparaît pendant que l'autre
   disparaît encore, au lieu de passer par un flash noir entre les deux. */
.hero-slide {
    opacity: 0;
    animation: hero-carousel-fade 32s infinite;
}
.hero-slide:nth-child(1) { animation-delay: 0s; }
.hero-slide:nth-child(2) { animation-delay: 8s; }
.hero-slide:nth-child(3) { animation-delay: 16s; }
.hero-slide:nth-child(4) { animation-delay: 24s; }

@keyframes hero-carousel-fade {
    0%   { opacity: 0; }
    9%   { opacity: 1; }
    22%  { opacity: 1; }
    31%  { opacity: 0; }
    100% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .hero-slide { animation: none; opacity: 0; }
    .hero-slide:first-child { opacity: 1; }
}

/* --- Page équipe : portraits en cadrage portrait uniforme --- */
.team-card-img {
    height: 16rem;
    object-fit: cover;
    object-position: top;
}
