/* =========================================
   1. HERO SECTION
   ========================================= */
section.page-hero {
    min-height: auto !important; 
    height: auto !important;
    display: block !important;
    padding-top: 120px;
    padding-bottom: 0px;
    text-align: center;
    position: relative; 
    z-index: 2;
    background: transparent !important;
}

section.page-hero .hero-badge {
    display: inline-block !important;
    width: auto !important;
    padding: 8px 20px;
    margin: 0 auto 25px auto;
    background: rgba(255, 255, 255, 0.05); 
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50px; 
    font-size: 0.75rem; 
    letter-spacing: 3px; 
    text-transform: uppercase;
    font-weight: 700;
    color: #aaa;
    box-shadow: none !important;
}

section.page-hero .page-title {
    font-size: 4rem;
    font-weight: 800; 
    line-height: 1.1; 
    margin-bottom: 15px;
    margin-top: 0;
    color: #fff;
    text-transform: none;
}

section.page-hero .text-gradient {
    background: linear-gradient(135deg, #fff 20%, #9b30ff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

section.page-hero .page-subtitle {
    font-size: 1.1rem; 
    color: #ccc; 
    max-width: 600px; 
    margin: 0 auto; 
    line-height: 1.6;
    font-weight: 400;
}

/* =========================================
   2. GRID LAYOUT (Les Robots)
   ========================================= */
.agents-container {
    max-width: 1200px; 
    margin: 40px auto 0 auto; 
    padding: 0 5% 100px;
    display: flex; 
    flex-direction: column; 
    gap: 120px; /* Plus d'espace entre les robots */
    position: relative; 
    z-index: 2;
}

.agent-row {
    display: flex; 
    align-items: flex-start; /* Important pour l'alignement haut */
    justify-content: space-between; 
    gap: 60px;
}
.agent-row.reverse { flex-direction: row-reverse; }

/* 3D Model Wrapper */
.model-stage {
    width: 45%; 
    height: 500px; 
    position: sticky; /* L'image reste un peu fixe au scroll */
    top: 100px;
    background: radial-gradient(circle at center, rgba(155,48,255,0.05) 0%, transparent 60%);
    border-radius: 30px; 
    border: 1px solid rgba(255,255,255,0.05);
}
model-viewer { width: 100%; height: 100%; }

/* Info Text */
.agent-info { width: 50%; text-align: left; }

.agent-header { 
    display: flex; align-items: center; gap: 20px; margin-bottom: 25px;
    border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 25px;
}



.agent-name h2 { font-size: 2.5rem; font-weight: 800; text-transform: uppercase; line-height: 1; margin: 0 0 5px 0; color: #fff; }
.agent-role { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 2px; font-weight: 700; opacity: 0.8; }

.agent-desc { font-size: 1.05rem; color: #ccc; line-height: 1.7; margin-bottom: 30px; }

/* =========================================
   3. ACCORDÉON (C'est ce qui manquait !)
   ========================================= */
.features-accordion {
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.accordion-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.accordion-header {
    width: 100%;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
    outline: none;
}

.feat-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.feat-icon {
    font-size: 1.2rem;
    font-weight: 300;
    transition: transform 0.3s ease;
    color: #888;
}

.accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0, 1, 0, 1);
    background: rgba(0, 0, 0, 0.2);
}

.accordion-body p {
    padding: 0 20px 20px 20px;
    margin: 0;
    font-size: 0.9rem;
    color: #aaa;
    line-height: 1.6;
}

/* État Actif */
.accordion-item.active { background: rgba(255, 255, 255, 0.08); }
.accordion-item.active .feat-icon { transform: rotate(45deg); }


/* =========================================
   4. BOUTONS
   ========================================= */
.btn-agent {
    display: inline-block; 
    padding: 14px 35px; 
    border-radius: 50px;
    text-decoration: none; 
    font-weight: 700; 
    text-transform: uppercase; 
    font-size: 0.8rem; 
    letter-spacing: 1px;
    transition: all 0.3s ease; 
    border: 1px solid transparent; 
    cursor: pointer;
    margin-top: 10px;
}
.btn-agent:hover { transform: translateY(-3px); }


/* =========================================
   5. GESTION DES THÈMES COULEURS
   ========================================= */

/* --- CHARLY : BLEU (theme-blue) --- */
.theme-blue .agent-role, .theme-blue .active .feat-title, .theme-blue .active .feat-icon { color: #2962ff; }
.theme-blue .accordion-item.active { border-color: rgba(41, 98, 255, 0.3); }
.theme-blue .btn-agent { background: transparent; border-color: #2962ff; color: #2962ff; }
.theme-blue .btn-agent:hover { background: #2962ff; color: #fff; box-shadow: 0 0 20px rgba(41, 98, 255, 0.4); }

/* --- ATLAS : JAUNE (theme-gold) --- */
.theme-gold .agent-role, .theme-gold .active .feat-title, .theme-gold .active .feat-icon { color: #ffd700; }
.theme-gold .accordion-item.active { border-color: rgba(255, 215, 0, 0.3); }
.theme-gold .btn-agent { background: transparent; border-color: #ffd700; color: #ffd700; }
.theme-gold .btn-agent:hover { background: #ffd700; color: #000; box-shadow: 0 0 20px rgba(255, 215, 0, 0.4); }

/* --- NOVA : ROSE (theme-pink) --- */
.theme-pink .agent-role, .theme-pink .active .feat-title, .theme-pink .active .feat-icon { color: #ff00cc; }
.theme-pink .accordion-item.active { border-color: rgba(255, 0, 204, 0.3); }
.theme-pink .btn-agent { background: transparent; border-color: #ff00cc; color: #ff00cc; }
.theme-pink .btn-agent:hover { background: #ff00cc; color: #fff; box-shadow: 0 0 20px rgba(255, 0, 204, 0.4); }

/* --- VOLTA : ORANGE (theme-orange) --- */
.theme-orange .agent-role, .theme-orange .active .feat-title, .theme-orange .active .feat-icon { color: #ff6b00; }
.theme-orange .accordion-item.active { border-color: rgba(255, 107, 0, 0.3); }
.theme-orange .btn-agent { background: transparent; border-color: #ff6b00; color: #ff6b00; }
.theme-orange .btn-agent:hover { background: #ff6b00; color: #fff; box-shadow: 0 0 20px rgba(255, 107, 0, 0.4); }

/* --- ORION : ROUGE (theme-red) --- */
.theme-red .agent-role, .theme-red .active .feat-title, .theme-red .active .feat-icon { color: #ff0055; }
.theme-red .accordion-item.active { border-color: rgba(255, 0, 85, 0.3); }
.theme-red .btn-agent { background: transparent; border-color: #ff0055; color: #ff0055; }
.theme-red .btn-agent:hover { background: #ff0055; color: #fff; box-shadow: 0 0 20px rgba(255, 0, 85, 0.4); }
/* =========================================
   6. RESPONSIVE
   ========================================= */
@media (max-width: 900px) {
    .agent-row, .agent-row.reverse { flex-direction: column; gap: 40px; }
    .model-stage, .agent-info { width: 100%; text-align: center; }
    .model-stage { position: relative; top: 0; height: 350px; }
    .agent-header { justify-content: center; flex-direction: column; text-align: center; }
    section.page-hero .page-title { font-size: 2.5rem; }
}