:root {
    --bg-gradient: linear-gradient(135deg, #0f172a 0%, #143214 100%);
    --card-bg: rgba(255, 255, 255, 0.98);
    --primary-color: #16a34a;
    --secondary-color: #15803d;
    --accent-color: #0284c7;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    --radius: 12px;
    --success: #16a34a;
    --warning: #eab308;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: var(--bg-gradient);
    color: var(--text-main);
    min-height: 100vh;
    padding: 1.5rem 0.75rem;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    flex: 1;
}

/* --- Menu de Navigation --- */
.main-navbar { background: #0f172a; border-bottom: 2px solid var(--primary-color); padding: 1rem 0; width: 100%; position: sticky; top: 0; z-index: 1000; }
.nav-container { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; padding: 0 1rem; }
.nav-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.nav-title { color: #ffffff; font-size: 1.1rem; font-weight: 800; letter-spacing: 0.5px; text-transform: uppercase; white-space: nowrap; }
.nav-links { display: flex; list-style: none; gap: 20px; }
.nav-links a { color: #fff; text-decoration: none; font-weight: 600; font-size: 0.9rem; transition: color 0.3s; }
.nav-links a:hover { color: var(--primary-color); }
.menu-toggle { display: none; color: white; font-size: 1.8rem; cursor: pointer; }

@media (max-width: 768px) {
    .menu-toggle { display: block; }
    .nav-links { display: none; width: 100%; position: absolute; top: 100%; left: 0; background: #1e293b; flex-direction: column; padding: 1rem; border-top: 1px solid #334155; }
    .nav-links.active { display: flex; }
    .nav-links li { text-align: center; padding: 10px 0; }
    .nav-logo img { height: 35px !important; }
}
@media (max-width: 480px) { .nav-title { display: none; } }

/* --- Design Original --- */
.language-bar { display: flex; justify-content: flex-end; max-width: 950px; margin: 0 auto 1rem auto; gap: 10px; width: 100%; }
.lang-btn { background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.2); color: white; padding: 6px 14px; border-radius: 20px; cursor: pointer; font-size: 0.85rem; font-weight: 600; transition: all 0.2s ease; }
.lang-btn:hover { background: rgba(255, 255, 255, 0.2); }
.lang-btn.active { background: var(--primary-color); border-color: #86efac; box-shadow: 0 0 10px rgba(22, 163, 74, 0.5); }

header { text-align: center; margin-bottom: 2.5rem; color: #ffffff; }
.brand-container { display: flex; align-items: center; justify-content: center; gap: 15px; margin-bottom: 1rem; flex-wrap: wrap; }
.brand-logo { height: 50px; width: auto; border-radius: 8px; box-shadow: 0 4px 8px rgba(0,0,0,0.2); transition: transform 0.3s ease; }
.brand-container h1 { font-size: 1.8rem; font-weight: 800; letter-spacing: -0.03em; color: #ffffff; text-transform: uppercase; line-height: 1.2; }
@media (min-width: 768px) { .brand-container h1 { font-size: 2.5rem; } .brand-logo { height: 150px; } }

header p { font-size: 1rem; color: #cbd5e1; margin-bottom: 2rem; padding: 0 0.5rem; line-height: 1.4; }
@media (min-width: 768px) { header p { font-size: 1.15rem; } }

.fedibio-nav-hub { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; max-width: 950px; margin: 0 auto 2.5rem auto; width: 100%; }
@media (max-width: 950px) { .fedibio-nav-hub { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .fedibio-nav-hub { grid-template-columns: 1fr; } }

.fedibio-nav-btn { display: flex; flex-direction: column; align-items: center; justify-content: center; background: linear-gradient(135deg, #16a34a 0%, #15803d 100%); border: 1px solid #4ade80; border-radius: 8px; color: #ffffff; text-decoration: none; padding: 1rem 0.75rem; font-weight: 700; font-size: 0.88rem; text-align: center; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1); word-break: break-word; }
.fedibio-nav-btn span.btn-subtitle { font-size: 0.72rem; font-weight: 400; color: #bbf7d0; margin-top: 4px; display: block; text-transform: none; }
.fedibio-nav-btn:hover { transform: translateY(-3px); background: linear-gradient(135deg, #15803d 0%, #166534 100%); border-color: #86efac; box-shadow: 0 6px 20px rgba(22, 163, 74, 0.4); }

.intro-box { background: rgba(255, 255, 255, 0.07); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,0.15); padding: 1.5rem; border-radius: var(--radius); max-width: 950px; margin: 0 auto 2.5rem auto; text-align: left; color: #f8fafc; font-size: 0.98rem; line-height: 1.6; box-shadow: var(--shadow); }
@media (min-width: 768px) { .intro-box { padding: 2.2rem; font-size: 1.05rem; } }
.intro-box p { margin-bottom: 1.2rem; color: #f1f5f9; }

.language-note { background: rgba(2, 132, 199, 0.15); border: 1px solid rgba(56, 189, 248, 0.3); padding: 1rem; border-radius: 8px; margin-bottom: 1.2rem; font-size: 0.9rem; display: flex; align-items: flex-start; gap: 10px; }

.philosophy-collapse { margin: 1rem 0; border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 8px; background: rgba(255, 255, 255, 0.04); overflow: hidden; }
.collapse-trigger { width: 100%; background: none; border: none; padding: 1rem; text-align: left; color: #4ade80; font-size: 0.95rem; font-weight: 700; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 10px; transition: background 0.3s ease; outline: none; }
@media (min-width: 768px) { .collapse-trigger { font-size: 1.1rem; padding: 1rem 1.2rem; } }
.eco-trigger { color: #38bdf8 !important; }
.collapse-trigger:hover { background: rgba(255, 255, 255, 0.05); }
.collapse-trigger::after { content: "▼"; font-size: 0.7rem; transition: transform 0.3s ease; color: #4ade80; flex-shrink: 0; }
.eco-trigger::after { color: #38bdf8 !important; }
.philosophy-collapse.active .collapse-trigger::after { transform: rotate(180deg); }
.collapse-content { max-height: 0; overflow: hidden; transition: max-height 0.3s ease-out; background: rgba(0, 0, 0, 0.15); }
.collapse-content-inner { padding: 1rem; font-size: 0.95rem; line-height: 1.5; color: #e2e8f0; border-top: 1px solid rgba(255, 255, 255, 0.1); }
@media (min-width: 768px) { .collapse-content-inner { padding: 1.2rem; font-size: 1.05rem; } }

.anonymat-highlight { border-left: 4px solid #38bdf8; padding-left: 1rem; font-style: italic; background: rgba(56, 189, 248, 0.05); padding-top: 0.75rem; padding-bottom: 0.75rem; margin-bottom: 1.2rem; display: flex; flex-direction: column; gap: 12px; }
.anonymat-highlight .fedibio-nav-btn { align-self: flex-start; padding: 0.6rem 1.2rem; width: auto; }
@media (max-width: 480px) { .anonymat-highlight .fedibio-nav-btn { width: 100%; } }

.contact-banner { margin-top: 1.8rem; text-align: center; font-weight: bold; background: var(--secondary-color); padding: 1rem; border-radius: 8px; color: white; font-size: 1rem; box-shadow: 0 4px 12px rgba(22, 163, 74, 0.2); border: 1px solid #4ade80; line-height: 1.4; }

.selector-container { margin-bottom: 2.5rem; }
.selector-title { color: #ffffff; font-weight: 700; font-size: 1.1rem; margin-bottom: 1.25rem; text-align: center; text-transform: uppercase; letter-spacing: 0.05em; line-height: 1.3; }
@media (min-width: 768px) { .selector-title { font-size: 1.25rem; } }

.formation-grid-selector { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 0.6rem; }
@media (max-width: 480px) { .formation-grid-selector { grid-template-columns: 1fr; } }

.selector-card { background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 6px; padding: 0.75rem 2.2rem 0.75rem 1rem; color: #e2e8f0; font-weight: 700; font-size: 0.9rem; cursor: pointer; transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1); display: flex; align-items: center; text-align: left; position: relative; min-height: 50px; backdrop-filter: blur(5px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 2px 4px rgba(0,0,0,0.2); }
.selector-card::after { content: ""; position: absolute; top: 50%; right: 14px; transform: translateY(-50%); width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.selector-card[data-type="Conseil"]::after { background-color: #38bdf8; box-shadow: 0 0 6px #38bdf8; }
.selector-card[data-type="Formation"]::after { background-color: var(--warning); box-shadow: 0 0 6px var(--warning); }
.selector-card:hover { background: rgba(255, 255, 255, 0.15); border-color: rgba(255, 255, 255, 0.4); color: #ffffff; transform: translateY(-2px); }
.selector-card.selected { background: linear-gradient(135deg, #16a34a 0%, #15803d 100%); border-color: #86efac; color: #ffffff; box-shadow: 0 0 25px rgba(22, 163, 74, 0.65); }
.selector-card.selected::after { background-color: #ffffff !important; box-shadow: 0 0 8px #ffffff !important; }

.formation-card { background: var(--card-bg); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; border: 1px solid rgba(226, 232, 240, 0.8); }
.card-header { padding: 1.5rem; background: #f8fafc; border-bottom: 2px solid #f1f5f9; }
@media (min-width: 768px) { .card-header { padding: 2.5rem; } }

.badge { display: inline-block; background: var(--primary-color); color: #ffffff; padding: 0.35rem 0.85rem; font-size: 0.8rem; font-weight: 700; border-radius: 50px; text-transform: uppercase; margin-bottom: 1rem; }
.badge.conseil-badge { background: var(--accent-color); }
.badge.formation-badge { background: var(--warning); color: #0f172a; }

.thematique-title { font-size: 1.4rem; color: #0f172a; font-weight: 800; margin-bottom: 0.5rem; line-height: 1.2; }
.titre-long { font-size: 1.05rem; color: var(--text-muted); margin-bottom: 1.5rem; line-height: 1.4; }
@media (min-width: 768px) { .thematique-title { font-size: 2rem; } .titre-long { font-size: 1.25rem; } }

.btn-gpt { display: inline-flex; align-items: center; justify-content: center; background: #16a34a; color: white; text-decoration: none; padding: 0.85rem 1.5rem; border-radius: 8px; font-weight: 600; font-size: 0.95rem; box-shadow: 0 4px 12px rgba(22, 163, 74, 0.2); width: 100%; text-align: center; }
@media (min-width: 480px) { .btn-gpt { width: auto; } }
.btn-gpt:hover { background: #15803d; }

.card-body { padding: 1.5rem; display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 950px) { .card-body { grid-template-columns: 2fr 1fr; padding: 2.5rem; gap: 2.5rem; } }

.section-block { margin-bottom: 1.75rem; }
.section-block h3 { font-size: 1.1rem; color: #0f172a; margin-bottom: 0.75rem; border-left: 4px solid var(--primary-color); padding-left: 0.75rem; font-weight: 700; }
.section-block p { font-size: 1rem; line-height: 1.6; color: #334155; text-align: justify; }

.styled-list { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; margin-top: 0.5rem; }
.styled-list li { position: relative; padding-left: 1.6rem; font-size: 1rem; color: #334155; line-height: 1.5; text-align: justify; }
.styled-list li::before { content: "✓"; position: absolute; left: 0; color: #16a34a; font-weight: bold; }

.promise-box { background: #f0fdf4; border-left: 4px solid var(--primary-color); padding: 1.2rem; border-radius: 0 8px 8px 0; font-style: italic; line-height: 1.5; font-size: 1rem; }
.sidebar-content { display: flex; flex-direction: column; gap: 1.75rem; background: #f8fafc; padding: 1.25rem; border-radius: 8px; border: 1px solid #e2e8f0; height: fit-content; }
.meta-group h4 { font-size: 0.85rem; text-transform: uppercase; color: #64748b; margin-bottom: 0.6rem; font-weight: 700; letter-spacing: 0.05em; }
.tag-container { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tag { background: #e2e8f0; color: #334155; padding: 0.3rem 0.8rem; border-radius: 4px; font-size: 0.88rem; font-weight: 600; }

.empty-state { background: rgba(255, 255, 255, 0.05); border: 2px dashed rgba(255, 255, 255, 0.2); padding: 4rem 1rem; text-align: center; border-radius: var(--radius); color: #cbd5e1; font-size: 1.1rem; line-height: 1.4; }
footer { text-align: center; padding: 2rem 1rem; margin-top: 3.5rem; color: #cbd5e1; border-top: 1px solid rgba(255, 255, 255, 0.1); font-size: 0.9rem; line-height: 1.4; }

.buttons-row { display: flex; gap: 12px; margin-top: 15px; width: 100%; }
.buttons-row .fedibio-nav-btn { flex: 1; margin: 0; }
@media (max-width: 600px) { .buttons-row { flex-direction: column; } }
 