    :root {
        --brand: #218838;
        --brand-light: rgba(33,136,56,0.08);
        --brand-dark: #19692d;
        --white: #ffffff;
        --accent-purple: #9b51e0;
    }

    .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-dietetique.jpeg');
        background-size: cover;
        background-position: center 80%;    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 1 jour - Style Diététique (Vert) */
    .session-box:nth-child(1) {
        background: linear-gradient(135deg, rgba(33, 136, 56, 0.08) 0%, rgba(85, 243, 133, 0.12) 100%);
        border: 2px solid rgba(33, 136, 56, 0.3);
        border-radius: 12px;
        box-shadow: 0 2px 8px rgba(33, 136, 56, 0.1);
    }


    .session-box:nth-child(1) .session-type {
        background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
        color: white;
        font-weight: 600;
        padding: 10px 24px;
        border-radius: 20px;
        display: inline-block;
        box-shadow: 0 3px 10px rgba(33, 136, 56, 0.25);
    }

    .session-box:nth-child(1):hover {
        border-color: var(--brand);
        box-shadow: 0 8px 24px rgba(33, 136, 56, 0.25);
        transform: translateY(-4px);
    }

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

    /* Formation Sur-mesure - Style Interactif (Bleu avec contrôle) */
    .session-box:nth-child(2) {
        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(2)::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(2) .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(2) .session-info {
        color: white;
    }

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

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

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

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

    .session-box:nth-child(2):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: #fff !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);
     }

     .day-header{
        background-color: var(--brand-light);
     }

    .background-dietetique{
        background: linear-gradient(135deg, rgba(233, 254, 241, 0.85) 0%, rgba(152, 231, 185, 0.7) 50%, rgba(85, 243, 133, 0.754) 100%);
        background-color: #f4fff7; /* fallback très pâle */
    }

    .training-sessions{
        display: grid;
        grid-template-columns: repeat(2, minmax(280px, 340px));
        justify-content: center;
        gap: 100px;
        margin-top: calc(var(--spacing) * 4);
    }

    @media (max-width: 700px) {
        .training-sessions{
            grid-template-columns: 1fr;
            justify-items: stretch;
            gap: calc(var(--spacing) * 2);
        }
    }

    .background-dietetique {
        position: relative;
        overflow: hidden;
    }

    .background-dietetique .container {
        position: relative;
        z-index: 2;
    }

    .background-dietetique .bg-image {
        position: absolute;
        width: clamp(200px, 40vw, 700px);
        opacity: 0.4;
        pointer-events: none;
        user-select: none;
        z-index: 0;
        transform-origin: center;
        will-change: transform;
    }

    .background-dietetique .bg-image--top {
        top: 0;
        right: -10%;
        transform: translate(18%, -18%) scale(1.05);
        max-width: 60%;
    }

    .background-dietetique .bg-image--bottom {
        bottom: 0;
        left: -12%;
        transform: translate(-12%, 14%) scale(1.25);
        width: clamp(260px, 50vw, 900px);
        max-width: none;
        opacity: 0.4;
    }

    @media (max-width: 1024px) {
        .background-dietetique .bg-image {
            width: clamp(160px, 36vw, 600px);
            opacity: 0.4;
        }
        .background-dietetique .bg-image--top {
            right: -6%;
            transform: translate(10%, -16%) scale(1);
        }
        .background-dietetique .bg-image--bottom {
            left: -8%;
            transform: translate(-8%, 10%) scale(1.1);
            width: clamp(220px, 42vw, 700px);
        }
    }

    @media (max-width: 640px) {
        .background-dietetique .bg-image {
            display: none;
        }
    }

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


.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(33,136,56,0.2); /* using --brand as rgba */
    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(33,136,56,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;
    }
}

