@charset "UTF-8";

/* =========================================
   1. VARIABLES & BASE
   ========================================= */
:root {
    --color-purple: #ae3acb;
    --color-blue: #2563eb;
    --color-dark: #0f172a;
    --color-light: #64748b;
    --font-main: 'Inter', sans-serif; /* Assure-toi d'importer la font */
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: #ffffff;
    color: var(--color-dark);
    overflow-x: hidden; /* Évite le scroll horizontal accidentel */
}

/* =========================================
   2. UTILITAIRES AEXIN (Dégradés & Textes)
   ========================================= */

/* Le dégradé principal Aexin (Utilisé pour les CTA et les sections colorées) */
.bg-gradient-main {
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 50%, #ae3acb 100%);
}

/* Texte avec effet dégradé (optionnel pour les titres) */
.text-gradient {
    background: linear-gradient(135deg, #2563eb 0%, #ae3acb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Petit surlignage violet pour les sous-titres */
.heading-highlight {
    color: var(--color-purple);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.75rem;
    margin-bottom: 0.5rem;
    display: inline-block;
}

/* =========================================
   3. GLASSMORPHISM (Effet Verre)
   ========================================= */

/* Panel en verre standard (Cartes Services, Identité) */
.glass-panel {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
}

/* Panel en verre au survol (plus net) */
.glass-panel:hover {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(174, 58, 203, 0.3); /* Bordure violette légère */
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    transform: translateY(-4px);
}

/* =========================================
   4. TIMELINE (Histoire & Méthodologie)
   ========================================= */

.timeline-item {
    position: relative;
    /* La transition gère l'apparition fluide via le JS */
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Le point (Dot) */
.timeline-item .dot {
    position: absolute;
    left: -41px; /* Doit correspondre exactement à l'alignement de la bordure verticale */
    top: 0;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: #fff;
    border: 4px solid #cbd5e1; /* Gris par défaut */
    z-index: 10;
    transition: all 0.5s ease-out;
}

/* État Actif (Géré par JS intersection observer) */
.timeline-item.is-visible {
    opacity: 1 !important;
    transform: translateX(0) !important;
}

.timeline-item.is-active .dot {
    border-color: var(--color-purple);
    transform: scale(1.25);
    box-shadow: 0 0 0 4px rgba(174, 58, 203, 0.2);
}

/* =========================================
   5. HEADER & NAVIGATION
   ========================================= */

/* Header par défaut (Haut de page) */
#main-header {
    /* Transitions fluides pour l'effet capsule */
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* État Capsule (Ajouté par le JS) */
#main-header.scrolled {
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 95%;
    max-width: 64rem; /* max-w-5xl */
    height: 4rem;
    border-radius: 9999px;
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.02);
}

/* Dropdown Menu */
.nav-dropdown {
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px) translateX(-50%);
    transition: all 0.3s ease;
}

.group:hover .nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) translateX(-50%);
}

/* =========================================
   6. ONGLETS PARTENAIRES (Tabs)
   ========================================= */

.tab-btn {
    position: relative;
    outline: none;
}

/* Ligne active sous l'onglet (optionnel si on utilise les bordures) */
.tab-btn::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: transparent;
    transition: background-color 0.3s;
}

.tab-btn.active::after {
    background-color: #fff; /* Masque la bordure du bas pour fusionner */
}

/* =========================================
   7. ANIMATIONS
   ========================================= */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

.delay-100 { animation-delay: 0.1s; opacity: 0; }
.delay-200 { animation-delay: 0.2s; opacity: 0; }
.delay-300 { animation-delay: 0.3s; opacity: 0; }

/* Blob Animation (Fonds colorés flous) */
@keyframes float {
    0% { transform: translate(0px, 0px) scale(1); }
    33% { transform: translate(30px, -50px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.9); }
    100% { transform: translate(0px, 0px) scale(1); }
}

.blob-anim {
    animation: float 10s infinite ease-in-out;
}