:root {
    --primary: #1e3a8a;
    --primary-light: #3b82f6;
    --accent: #c5a059;
    --text-dark: #1f2937;
    --text-gray: #4b5563;
    --white: #ffffff;
    --bg-light: #f9fafb;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
}

/* Header & Nav */
header {
    background: var(--white);
    padding: 1rem 2rem;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary-light);
}

.btn-cta {
    background: var(--primary);
    color: var(--white);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    transition: transform 0.3s, background 0.3s;
}

.btn-cta:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
    color: var(--white);
    padding: 6rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 30px 30px;
}

.hero-content {
    max-width: 1150px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 3rem;
    align-items: flex-start;
    text-align: left;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero h1 span {
    color: #93c5fd;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: #d1d5db;
}

.hero-form {
    background: var(--white);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    color: var(--text-dark);
    width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

.hero-form h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
    font-weight: 700;
}

/* Search Container for Home */
.search-container {
    position: relative;
    margin-top: 2rem;
    max-width: 100%;
}

.search-input {
    width: 100%;
    padding: 1.2rem 1.5rem;
    font-size: 1.1rem;
    border: none;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    outline: none;
    transition: box-shadow 0.3s;
    color: var(--text-dark);
}

.search-input:focus {
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.4);
}

#search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    margin-top: 0.5rem;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.25);
    z-index: 50;
    display: none;
    max-height: 350px;
    overflow-y: auto;
    text-align: left;
}

.search-item a {
    display: block;
    padding: 1rem 1.5rem;
    color: var(--text-dark);
    text-decoration: none;
    transition: background 0.2s;
    border-bottom: 1px solid #f3f4f6;
}

.search-item:last-child a {
    border-bottom: none;
}

.search-item a:hover {
    background: #f0fdf4;
    color: var(--primary);
}

/* Content Sections */
.section {
    padding: 5rem 2rem;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: -4rem;
    position: relative;
    z-index: 20;
}

.feature-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    text-align: center;
    border-bottom: 4px solid var(--accent);
}

.dept-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.dept-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
    border: 1px solid #e5e7eb;
}

.dept-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-light);
}

/* Footer */
footer {
    background: #111827;
    color: #9ca3af;
    padding: 4rem 2rem;
    margin-top: 4rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 4rem;
}

.footer-col h4 {
    color: var(--white);
    margin-bottom: 1.5rem;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 0.75rem;
}

.footer-col a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-col a:hover {
    color: var(--white);
}

/* Glassmorphism */
.glass {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.hero-form {
    background: rgba(255, 255, 255, 0.95);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    color: var(--text-dark);
    border: 1px solid rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content>div:first-child {
    animation: fadeInUp 0.8s ease-out forwards;
}

.hero-form {
    animation: fadeInUp 1s ease-out forwards;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

/* Calculator Styles */
#calc-app button {
    border: 2px solid #e5e7eb;
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Outfit', sans-serif;
    color: var(--text-dark);
}

#calc-app button:hover {
    border-color: var(--primary-light);
    background: #eff6ff;
    transform: scale(1.02);
}

.step h3 {
    color: var(--primary);
    margin-bottom: 2rem;
}

#result {
    animation: fadeInUp 0.5s ease-out;
}


.feature-card {
    transition: all 0.3s ease;
}

/* Responsive */
@media (max-width: 968px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    nav {
        flex-direction: column;
        gap: 1.5rem;
    }

    .nav-links {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 1.5rem;
        margin-bottom: 0.5rem;
    }

    .hero-form {
        padding: 1.5rem;
        margin-top: 2rem;
    }

    .section {
        padding: 3rem 1rem;
    }

    .footer-grid {
        gap: 2rem;
        text-align: center;
    }
    
    .footer-col {
        text-align: center !important;
    }

    .features {
        margin-top: 2rem;
        padding: 0 1rem;
    }
}

/* Tarteaucitron Fix - Panel Clickable */
#tarteaucitronRoot, 
#tarteaucitronAlertBig, 
#tarteaucitron {
    z-index: 2147483647 !important;
}