:root {
    --brand: #9b51e0;
    --brand-light: rgba(155,81,224,0.08);
    --brand-dark: #7a39c9;
    --white: #ffffff;
    --accent-purple: #9b51e0;
}

/* hover / focus état */
.nav-link:hover::after,
.nav-link:focus::after {
    opacity: 1;
    visibility: visible;
}
/* état actif */
.nav-link.active {
    color: var(--brand);
    visibility: visible;
}
.nav-link.active::after {
    opacity: 1;
    background: var(--brand) !important;
}

.page-hero::before {
   content: '';
   position: absolute;
   top: 0;
   left: 0;
   right: 0;
   bottom: 0;
   background-image: url('/images/photo-hero-hygiene.jpeg');
   background-size: cover;
   background-position: center;
   opacity: 0.2;
   z-index: 0;
}

.session-box {
    border: 2px solid var(--brand-light);
    border-radius: 8px;
    padding: 16px;
    position: relative;
    transition: all 0.3s ease;
}

/* Formation 2 jours - Style Fondamental (Violet classique) */
.session-box:nth-child(1) {
    background: linear-gradient(135deg, rgba(155, 81, 224, 0.06) 0%, rgba(155, 81, 224, 0.1) 100%);
    border: 2px solid rgba(155, 81, 224, 0.25);
    border-radius: 12px;
}

.session-box:nth-child(1)::after {
    content: '📚';
    position: absolute;
    top: 16px;
    right: 16px;
    font-size: 32px;
    opacity: 0.15;
}

.session-box:hover::before {
    background: var(--brand);
}
.session-box::before {
    background: var(--brand);
}


.session-box:nth-child(1) .session-type {
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
    color: white;
    font-weight: 600;
    padding: 8px 20px;
    border-radius: 20px;
    display: inline-block;
}

.session-box:nth-child(1):hover {
    border-color: var(--brand);
    box-shadow: 0 8px 24px rgba(155, 81, 224, 0.2);
    transform: translateY(-4px);
    
}

.session-box:nth-child(1) .info-row svg {
    color: var(--brand);
}

/* Formation 3 jours - Style Premium (Plus grande avec bordure gradient) */
.session-box:nth-child(2) {
    background: white;
    border: 3px solid;
    border-image: linear-gradient(135deg, #8b5cf6 0%, #d946ef 50%, #f59e0b 100%) 1;
    border-radius: 0;
    position: relative;
    padding: 24px;
    transform: scale(1.05);
}

.session-box:nth-child(2)::before {
    content: '⭐';
    position: absolute;
    right: 20px;
    font-size: 28px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.session-box:nth-child(2) .session-type {
    background: linear-gradient(135deg, #8b5cf6 0%, #d946ef 50%, #f59e0b 100%);
    color: white;
    font-weight: 700;
    padding: 10px 24px;
    border-radius: 25px;
    display: inline-block;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
    letter-spacing: 0.5px;
}

.session-box:nth-child(2):hover {
    box-shadow: 0 12px 32px rgba(139, 92, 246, 0.25);
    transform: scale(1.05) translateY(-6px);
}

.session-box:nth-child(2) .info-row svg {
    color: #8b5cf6;
}

/* Formation Sur-mesure - Style Interactif (Bleu avec contrôle) */
.session-box:nth-child(3) {
    background: linear-gradient(135deg, #bfdbfe 0%, #60a5fa 100%);
    border: 3px solid #60a5fa;
    border-radius: 12px;
    padding: 24px;
    position: relative;
    overflow: hidden;
}

.session-box:nth-child(3)::before {
    content: '⚙️';
    position: absolute;
    bottom: 0px;
    right: 50px;
    left: auto;
    top: -20px;
    font-size: 80px;
    opacity: 0.3;
    transform: rotate(-30deg);
}

.session-box:nth-child(3) .session-type {
    background: white;
    color: #1e40af;
    font-weight: 700;
    padding: 8px 20px;
    border-radius: 20px;
    display: inline-block;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.session-box:nth-child(3) .session-info {
    color: white;
}

.session-box:nth-child(3) .info-row {
    color: white;
}

.session-box:nth-child(3) .info-row svg {
    color: white;
}

.session-box:nth-child(3) .btn {
    background: white !important;
    color: #1e40af !important;
    border: 2px solid white !important;
    font-weight: 600;
}

.session-box:nth-child(3) .btn:hover {
    background: rgba(255, 255, 255, 0.9) !important;
    transform: scale(1.05);
}

.session-box:nth-child(3):hover {
    box-shadow: 0 12px 32px rgba(59, 130, 246, 0.4);
    transform: translateY(-4px);
}

/* Boutons */
.btn.btn-primary {
    background-color: var(--brand) !important;
    border-color: var(--brand) !important;
    color: var(--white) !important;
}
.btn.btn-primary:hover,
.btn.btn-primary:focus {
    background-color: var(--brand-dark) !important;
    filter: brightness(0.95);
}

/* Icônes SVG */
.info-row svg,
.benefits-grid svg,
.session-box svg,
.floating-contact svg,
.drawer-close svg {
    color: var(--brand);
}

/* Petits éléments textuels marqués */
.session-type,
.logo-text,
.section-title,
.section-subtitle,
.footer-subtitle,
.footer-title {
    color: inherit;
}

.programme-day {
    border-top: 4px solid var(--brand);
}

.cta-box {
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
    border-radius: 8px;
    padding: 16px;
}

.cta-box::before{
    background-color: var(--brand);
}

.module-title {
    color: var(--brand);
}

.info-card-content h4 {
    color: var(--brand);
}

.info-card-content a {
    color: var(--brand);
}

.background-oenologie {
    /* violet beaucoup plus doux en dégradé + fallback */
    background: linear-gradient(135deg, rgba(247,243,255,0.85) 0%, rgba(225, 208, 255, 0.7) 50%, rgba(190, 158, 253, 0.6) 100%);
    background-color: #f7f3ff; /* fallback très pâle */
}

.hero-split {
    display: grid;
    grid-template-columns: 60% 40%;
    gap: calc(var(--spacing) * 4);
    align-items: center;
    min-height: 300px;
}

.hero-content-left {
    padding-right: calc(var(--spacing) * 4);
}

.hero-content-left .section-title {
    text-align: left;
    margin-bottom: calc(var(--spacing) * 2);
}

.hero-content-left .section-subtitle-prog {
    text-align: left;
    max-width: 100%;
}

.hero-image-right {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.hero-image-right img {
    width: 100%;
    height: auto;
    max-height: 300px;
    object-fit: cover;
    border-radius: var(--radius);
    box-shadow: 0 8px 24px rgba(155, 81, 224, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-image-right img:hover {
    transform: scale(1.02);
    box-shadow: 0 12px 32px rgba(155, 81, 224, 0.3);
}

@media (max-width: 968px) {
    .hero-split {
        grid-template-columns: 1fr;
        gap: calc(var(--spacing) * 3);
        min-height: auto;
    }

    .hero-content-left {
        padding-right: 0;
    }

    .hero-content-left .section-title,
    .hero-content-left .section-subtitle-prog {
        text-align: center;
    }

    .hero-image-right img {
        max-height: 350px;
    }
}

/* Sécurité : le titre et le sous-titre passent toujours au-dessus de l'image décorative */
.background-oenologie .section-title,
.background-oenologie .section-subtitle {
    position: relative;
    z-index: 1;
}

