/* Variables & Global */
:root {
    --primary-color: #00373e;
    --primary-light: #afedf9;
    --secondary-color: #ba0032;
    --tertiary-color: #c1f365;
    --bg-light: #f8fafa;
    --manrope: 'Manrope', sans-serif;
}

body {
    font-family: var(--manrope);
    background-color: var(--bg-light);
    color: #191c1d;
    overflow-x: hidden;
}

/* Global Theme Overrides */
a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}
a:hover {
    color: var(--primary-color);
}

.text-primary { color: var(--primary-color) !important; }
.bg-primary { background-color: var(--primary-color) !important; }
.btn-primary {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: white !important;
}
.btn-primary:hover {
    background-color: #002227 !important;
    border-color: #002227 !important;
}
.btn-outline-primary {
    color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}
.btn-outline-primary:hover {
    background-color: var(--primary-color) !important;
    color: white !important;
}

.text-secondary { color: var(--secondary-color) !important; }
.bg-secondary { background-color: var(--secondary-color) !important; }
.btn-secondary {
    background-color: var(--secondary-color) !important;
    border-color: var(--secondary-color) !important;
    color: white !important;
}
.btn-secondary:hover {
    background-color: #920025 !important;
    border-color: #920025 !important;
}
.btn-outline-secondary {
    color: var(--secondary-color) !important;
    border-color: var(--secondary-color) !important;
}
.btn-outline-secondary:hover {
    background-color: var(--secondary-color) !important;
    color: white !important;
}

/* Navbar */
.bg-blur {
    background-color: rgba(255, 255, 255, 0.8) !important;
    backdrop-filter: blur(10px);
}

.navbar-brand {
    color: var(--primary-color) !important;
    letter-spacing: -1px;
}

.nav-link {
    color: #40484a !important;
    font-weight: 600;
    margin: 0 10px;
    transition: all 0.3s;
}

.nav-link:hover, .nav-link.active {
    color: var(--secondary-color) !important;
}
/* Hero Section */
.hero-section {
    position: relative;
    min-height: 80vh;
    background-color: var(--primary-color);
    background-image: url('https://lh3.googleusercontent.com/aida-public/AB6AXuBULvJR1jycu9xAJgfyA-RGhI8L-SrR1shm8Omv-A3SAApEkO-r7EZIdL9gB2X9nBxKgPJK5S0d9cq44x0YGFoVFRFh1MDXAaB6DQin0yKJ5rlC2spYH5lNPxU9VIQQHuj_Wai3i0isNaKGI5DURYMU_0faQuRJ77qChc21lq3die8Cn2AI1hWwv1S18udCqreGKDE7fcL2_0ThQKbZU6H2jggJmRgt1EJfq2srx05gm2TdfI8K_tyrm6kgZpNUtPVqXP4y-Q1iSq_2');
    background-size: cover;
    background-position: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, var(--primary-color), rgba(0, 55, 62, 0.7));
    z-index: 0;
}

.text-accent {
    color: var(--primary-light);
}

.btn-secondary {
    background-color: var(--secondary-color);
    border: none;
}

.backdrop-blur {
    backdrop-filter: blur(8px);
    background: rgba(255, 255, 255, 0.1);
}

/* Bento Cards */
.bento-card {
    min-height: 400px;
    position: relative;
}

.card-img-overlay {
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
}

.bg-primary-container {
    background-color: #004f59;
}

/* Utilities */
.tracking-widest { letter-spacing: 0.15em; }
.tracking-tighter { letter-spacing: -0.05em; }

.hover-white:hover {
    color: white !important;
    text-decoration: underline !important;
}

/* Material Symbols Adjustments */
.material-symbols-outlined {
    vertical-align: middle;
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

.card .material-symbols-outlined {
    font-variation-settings: 'FILL' 1;
}

/* Layout & Hero */
.about-overlap-card {
    margin-right: -100px;
}

@media (max-width: 991.98px) {
    .about-overlap-card {
        margin-right: 0;
        margin-top: 0;
    }
}

.about-hero-img-container {
    height: 500px;
}

.about-img-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 55, 62, 0.4), transparent);
}

/* Bento Grid Effects */
.bento-item {
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.bento-item:hover {
    transform: translateY(-8px);
}

.icon-circle {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.mission-blob {
    position: absolute;
    top: -20%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: rgba(175, 237, 249, 0.1);
    border-radius: 50%;
    filter: blur(50px);
}

/* Differentiation Styles */
.about-diff {
    background-color: #f1f3f3;
    position: relative;
    overflow: hidden;
}

.about-diff::after {
    content: "";
    position: absolute;
    top: 0;
    right: -10%;
    width: 40%;
    height: 100%;
    background: #e6e8e9;
    transform: skewX(-12deg);
    z-index: 0;
    opacity: 0.5;
}

.icon-square {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bg-tertiary-container {
    background-color: #364f00 !important;
}

/* Utils */
.fw-extrabold { font-weight: 800; }
.tracking-widest { letter-spacing: 0.15em; }
.leading-relaxed { line-height: 1.7; }

/* Timeline Cards with Image Background */
.timeline-card {
    position: relative;
}

.timeline-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 30, 40, 0.90) 0%, rgba(0, 0, 0, 0.35) 55%, transparent 100%);
    border-radius: inherit;
    z-index: 0;
}

.timeline-card .card-body {
    height: 100%;
}

.timeline-card:hover {
    transform: translateY(-4px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25) !important;
}

.text-white-75 {
    color: rgba(255, 255, 255, 0.75) !important;
}

/* ─── Organigramme ─── */
.org-node-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.org-connector {
    width: 2px;
    height: 36px;
    background: linear-gradient(to bottom, var(--primary-color), var(--primary-light));
    border-radius: 2px;
}

.org-branch-line {
    width: 100%;
    height: 2px;
    background: linear-gradient(to right, transparent 5%, var(--primary-color) 20%, var(--primary-color) 80%, transparent 95%);
    margin-bottom: 16px;
    position: relative;
}

.org-branch-line::before,
.org-branch-line::after {
    content: '';
    position: absolute;
    top: 0;
    width: 2px;
    height: 20px;
    background: var(--primary-color);
}

.org-branch-line::before { left: 16.66%; }
.org-branch-line::after  { right: 16.66%; }

.org-node-top {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.org-node-top:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0, 55, 62, 0.25) !important;
}

.org-node {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.org-node:hover {
    transform: translateX(6px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1) !important;
}

.org-side-node {
    background: #fff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 3px solid var(--primary-color) !important;
}
.org-side-node:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 28px rgba(0, 55, 62, 0.15) !important;
}

.hover-bg-light:hover {
    background-color: var(--surface-container-low) !important;
}

.hover-secondary:hover {
    color: var(--secondary-color) !important;
}

.hover-scale {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-scale:hover {
    transform: scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 55, 62, 0.2) !important;
}

.text-truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ─── Dropdown Hover ─── */
@media all and (min-width: 992px) {
    .hover-dropdown:hover .dropdown-menu {
        display: block;
        visibility: visible;
        opacity: 1;
        margin-top: 0;
    }
    .hover-dropdown .dropdown-menu {
        display: block;
        visibility: hidden;
        opacity: 0;
        transition: all 0.3s ease;
        transform: translateY(10px);
    }
    .hover-dropdown:hover .dropdown-menu {
        transform: translateY(0);
    }
}
.dropdown-item:hover {
    background-color: var(--primary-light);
    color: var(--primary-color) !important;
}
