/* ==========================================================================
   1. VARIABLES ET CONFIGURATION GLOBALE
   ========================================================================== */
:root {
    /* Couleurs principales */
    --primary-blue: #9400d3;
    --accent-red: #97271B;
    --accent-yellow: #f9b233;
    --bg-light: #f4f7f6;
    --text-dark: #333;

    /* Couleurs spécifiques aux catégories */
    --color-formation : #97271B;
    --color-coaching: #006633;
    --color-team: #f9b233;
    --color-bien-etre: #2d2e83;
    --color-basic: #333;
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden; /* Empêche le défilement horizontal parasite */
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
}

/* ==========================================================================
   2. HEADER PANORAMIQUE (HAUT DE PAGE)
   ========================================================================== */
.header-panoramique {
    width: 100%;
    background: #fff;
    position: relative;
    z-index: 100;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* Conteneur de l'image pour éviter les espaces vides */
.banner-crop {
    width: 100%;
    height: auto;
    line-height: 0;
}

.svg-fluid {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

/* Zones de clic invisibles sur le bandeau graphique */
.overlay-clic {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 101;
}

.zone {
    position: absolute;
    display: block;
    cursor: pointer;
}

/* Positions précises des zones de clic */
.area-formation     { top: 15%; left: 3%;  width: 11%; height: 25%; }
.area-coaching      { top: 2%;  left: 23%; width: 10%; height: 25%; }
.area-team-building { top: 20%; left: 50%; width: 18%; height: 30%; }
.area-logo          { top: 0%;  right: 0%; width: 22%; height: 25%; }
.area-contact       { top: 29%; right: 4%; width: 7%;  height: 10%; }
.area-bien-etre     { top: 60%; right: 5%; width: 15%; height: 30%; }

/* État caché quand on scrolle */
.header-panoramique.hidden {
    opacity: 0;
    visibility: hidden;
    height: 0;
    overflow: hidden;
}

/* ==========================================================================
   3. STICKY NAV (HEADER COMPACT AU SCROLL)
   ========================================================================== */
.sticky-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 2000;
    display: flex;
    align-items: center;
    transform: translateY(-100%); /* Caché par défaut au-dessus */
    transition: transform 0.3s ease;
}

.sticky-nav.visible {
    transform: translateY(0); /* Apparaît via JS */
}

.sticky-container {
    width: 90%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo dans la barre compacte */
.nav-logo-img {
    height: 45px;
    width: auto;
    display: block;
    margin: 5px 0;
}

/* Liens du menu compact */
.sticky-links {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
}

.sticky-links a {
    position: relative;
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.9rem;
    padding-bottom: 5px;
    transition: color 0.3s ease;
}

/* Effet de soulignement dynamique (Couleur du trait = Couleur du texte) */
.sticky-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: 0;
    left: 0;
    background-color: currentColor; 
    transition: width 0.3s ease;
}

.sticky-links a:hover::after {
    width: 100%;
}

/* Couleurs spécifiques au survol pour le menu sticky */
.link-coaching:hover  { color: var(--color-coaching) !important; }
.link-team:hover      { color: var(--color-team) !important; }
.link-bien-etre:hover { color: var(--color-bien-etre) !important; }
.link-formation:hover { color: var(--color-formation) !important;}
.link-basic:hover {color: var(--color-basic) !important;}

/* Couleur par défaut au survol (Rouge Arlovic) */
.sticky-links a:not(.link-coaching):not(.link-team):not(.link-bien-etre):hover { 
    color: var(--accent-red); 
}

/* ==========================================================================
   4. SECTIONS ET GRILLES
   ========================================================================== */
section { 
    padding: 80px 10%; 
}

.section-title { 
    text-align: center; 
    margin-bottom: 50px; 
}

.section-title h2 { 
    font-size: 2.5rem; 
    color: var(--primary-blue); 
}

/* Grille de cartes */
.grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 30px; 
}

.card {
    background: white; 
    padding: 40px; 
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05); 
    border: 1px solid #eee; 
    position: relative; 
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Effet ressort */
}

.card:hover { 
    transform: translateY(-12px) scale(1.02); 
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    border-color: var(--accent-red); 
}

.card h3 { 
    color: var(--primary-blue); 
    margin-bottom: 15px; 
}

.card .tag { 
    background: var(--bg-light); 
    padding: 4px 12px; 
    border-radius: 15px; 
    font-size: 0.8rem; 
}

/* ==========================================================================
   5. BOUTONS ET ÉLÉMENTS D'ACTION
   ========================================================================== */
.nav-cta, .cta-yellow {
    display: inline-block;
    background: var(--accent-red); 
    color: white !important; 
    padding: 8px 20px; 
    border-radius: 25px;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.nav-cta:hover, .cta-yellow:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(178, 31, 31, 0.4);
    filter: brightness(1.1);
}

/* ==========================================================================
   6. ANIMATIONS
   ========================================================================== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Application de l'animation d'entrée */
.section-title, .card, .hero h1, .hero p {
    animation: fadeInUp 0.8s ease-out forwards;
}

/* ==========================================================================
   7. RESPONSIVE (MOBILE ET TABLETTE)
   ========================================================================== */
@media (max-width: 768px) {
    section { padding: 40px 5%; }
    
    .hero h1 { font-size: 2.2rem; }

    /* Ajustement de la navigation mobile si nécessaire */
    .sticky-links { gap: 10px; }
    .sticky-links a { font-size: 0.8rem; }
}

/* ==========================================================================
   8. FOOTER
   ========================================================================== */
footer { 
    background: #222; 
    color: white; 
    padding: 60px 10% 20px; 
    text-align: center; 
}