/* MENAGEZ-VOUS - PREMIUM DESIGN SYSTEM v3.0 */

/* 1. RESET & VARIABLES */
@import 'utilities.css';

:root {
    /* Brand Colors - Sophisticated Teal Palette */
    --primary-50: #e0f7fa;
    --primary-100: #b2ebf2;
    --primary-200: #80deea;
    --primary-300: #4dd0e1;
    --primary-400: #26c6da;
    --primary-500: #00bcd4;
    --primary-600: #0097a7;
    --primary-700: #00838f;
    --primary-800: #006064;
    --primary-900: #00363a;

    /* Accent - Warm Amber/Gold for call-to-actions */
    --accent-300: #ffd54f;
    --accent-400: #ffca28;
    --accent-500: #ffc107;
    --accent-600: #ffb300;
    --accent-700: #ffa000;

    /* Modern Neutrals - Clean and Professional */
    --neutral-0: #ffffff;
    --neutral-50: #f8fafc;
    --neutral-100: #f1f5f9;
    --neutral-200: #e2e8f0;
    --neutral-300: #cbd5e1;
    --neutral-400: #94a3b8;
    --neutral-500: #64748b;
    --neutral-600: #475569;
    --neutral-700: #334155;
    --neutral-800: #1e293b;
    --neutral-900: #0f172a;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--primary-600) 0%, var(--primary-400) 100%);
    --gradient-accent: linear-gradient(135deg, var(--accent-500) 0%, var(--accent-600) 100%);
    --gradient-hero: linear-gradient(120deg, var(--neutral-50) 0%, #e0f7fa 100%);
    --gradient-soft: linear-gradient(to bottom right, #ffffff, #f0f9ff);

    /* Shadows - Layered & Smooth */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

    /* Spacing & Layout */
    --container-max: 1200px;
    --header-height: 100px;

    --radius-sm: 0.375rem;
    --radius-md: 0.75rem;
    --radius-lg: 1.5rem;
    --radius-full: 9999px;

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--neutral-50);
    color: var(--neutral-800);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--neutral-900);
    line-height: 1.2;
    margin-bottom: 1rem;
    letter-spacing: -0.025em;
}

h1 {
    font-size: 3.5rem;
    font-weight: 800;
}

h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

h3 {
    font-size: 1.75rem;
    font-weight: 600;
}

h4 {
    font-size: 1.25rem;
    font-weight: 600;
}

p {
    margin-bottom: 1rem;
    color: var(--neutral-600);
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius-md);
}

ul {
    list-style: none;
}

/* 2. LAYOUT UTILITIES */
.container {
    width: 90%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1rem;
}

.section {
    padding: 6rem 0;
    position: relative;
}

.section-grey {
    background-color: var(--neutral-100);
}

.section-title {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem auto;
}

.section-title span {
    color: var(--primary-600);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.1em;
    font-size: 0.875rem;
    display: block;
    margin-bottom: 0.5rem;
}

.grid {
    display: grid;
    gap: 2rem;
}

.grid-cols-2 {
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
}

.grid-cols-3 {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.grid-cols-4 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.flex-wrap {
    flex-wrap: wrap;
}

.items-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.justify-center {
    justify-content: center;
}

.gap-4 {
    gap: 1rem;
}

.gap-8 {
    gap: 2rem;
}

.text-center {
    text-align: center;
}

.text-primary {
    color: var(--primary-600);
}

.font-bold {
    font-weight: 700;
}

/* 3. COMPONENTS */

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    gap: 0.5rem;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 6px rgba(0, 151, 167, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(0, 151, 167, 0.3);
}

.btn-secondary {
    background: var(--neutral-0);
    color: var(--primary-700);
    border: 2px solid var(--primary-100);
}

.btn-secondary:hover {
    border-color: var(--primary-600);
    background: var(--primary-50);
}

.btn-accent {
    background: var(--gradient-accent);
    color: var(--neutral-900);
    box-shadow: 0 4px 6px rgba(255, 193, 7, 0.25);
}

.btn-accent:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(255, 193, 7, 0.3);
}


/* Header & Navigation */
header {
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--neutral-200);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

header .container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

header .logo img {
    height: 95px;
    /* Enlarge logo to reduce vertical margins */
    width: auto;
    display: block;
    /* Removes potential inline-block spacing */
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links li {
    position: relative;
    padding: 1rem 0;
    /* Increase touch target/hover area */
}

.nav-links>li>a {
    font-weight: 500;
    color: var(--neutral-600);
    font-size: 0.95rem;
    position: relative;
    padding: 0.5rem 0;
}

.nav-links>li>a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-500);
    transition: width 0.3s ease;
}

.nav-links>li>a:hover::after,
.nav-links>li>a.active::after {
    width: 100%;
}

.nav-links>li>a:hover,
.nav-links>li>a.active {
    color: var(--primary-700);
}

/* Dropdown Menu */
.dropdown-trigger {
    cursor: pointer;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: white;
    min-width: 220px;
    padding: 0.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--neutral-100);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 100;
}

.dropdown-trigger:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-menu li {
    padding: 0;
    width: 100%;
}

.dropdown-menu a {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--neutral-700);
    font-weight: 500;
    font-size: 0.9rem;
    border-radius: var(--radius-sm);
    white-space: nowrap;
}

.dropdown-menu a:hover {
    background: var(--primary-50);
    color: var(--primary-700);
}

/* Hero Section */
.hero {
    min-height: 80vh;
    background: var(--gradient-hero);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-shape {
    position: absolute;
    top: -20%;
    right: -10%;
    width: 60%;
    height: 120%;
    background: var(--gradient-soft);
    border-radius: 50% 0 0 50%;
    z-index: 0;
    opacity: 0.6;
    filter: blur(80px);
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 600px;
}

.hero-content h1 span {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Feature Cards */
.card {
    background: white;
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--neutral-100);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-200);
}

.card-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-50);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--primary-600);
}

.card-icon svg,
.card-icon img {
    width: 32px;
    height: 32px;
}

/* Team Cards */
.team-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.team-img {
    height: 250px;
    width: 100%;
    object-fit: cover;
    background: var(--neutral-200);
}

.team-info {
    padding: 1.5rem;
}

.team-role {
    color: var(--primary-600);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.team-name {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.team-quote {
    font-style: italic;
    color: var(--neutral-500);
    font-size: 0.9rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--neutral-100);
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--neutral-700);
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid var(--neutral-300);
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.2s;
    background: var(--neutral-50);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: var(--primary-500);
    box-shadow: 0 0 0 3px rgba(0, 188, 212, 0.15);
    background: white;
}

/* Footer */
footer {
    background: var(--neutral-900);
    color: white;
    padding: 5rem 0 2rem;
    margin-top: auto;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
    border-bottom: 1px solid var(--neutral-800);
    padding-bottom: 3rem;
}

.footer-brand p {
    color: var(--neutral-400);
    margin-top: 1rem;
    max-width: 300px;
}

.footer-col h4 {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.footer-col ul li {
    margin-bottom: 0.75rem;
}

.footer-col a {
    color: var(--neutral-400);
    transition: color 0.2s;
}

.footer-col a:hover {
    color: var(--primary-400);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--neutral-500);
    font-size: 0.875rem;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.6s ease-out forwards;
}

/* Responsive */
.mobile-menu-btn {
    display: none;
}

@media (max-width: 900px) {
    header {
        height: 70px;
    }

    header .logo img {
        height: 60px;
        /* Adjust for smaller mobile header */
    }

    .mobile-menu-btn {
        display: block;
        background: none;
        border: none;
        cursor: pointer;
        z-index: 1002;
    }

    .mobile-menu-btn span {
        display: block;
        width: 25px;
        height: 2px;
        background: var(--neutral-800);
        margin: 5px 0;
        transition: 0.3s;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        width: 80%;
        max-width: 300px;
        background: white;
        flex-direction: column;
        align-items: flex-start;
        padding: 5rem 2rem;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
        transform: translateX(100%);
        transition: transform 0.3s ease;
        z-index: 1001;
    }

    .nav-links.active {
        transform: translateX(0);
    }

    .nav-links>li {
        width: 100%;
        padding: 0;
        border-bottom: 1px solid var(--neutral-100);
    }

    .nav-links>li:last-child {
        border-bottom: none;
        margin-top: 1rem;
    }

    .nav-links>li>a {
        display: block;
        padding: 1rem 0;
        font-size: 1.1rem;
    }

    .dropdown-menu {
        position: static;
        transform: none;
        box-shadow: none;
        border: none;
        background: var(--neutral-50);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        padding: 0;
        opacity: 1;
        visibility: visible;
        margin-left: -1rem;
        margin-right: -1rem;
        width: calc(100% + 2rem);
    }

    .dropdown-trigger:hover .dropdown-menu,
    .dropdown-trigger.active .dropdown-menu {
        max-height: 500px;
        padding: 0.5rem 0;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero {
        text-align: center;
        padding-top: 2rem;
    }

    .hero-content {
        margin: 0 auto;
    }

    .grid-cols-2 {
        grid-template-columns: 1fr;
    }
}

/* Actualites Layout Fix */
.actualites-layout {
    flex-direction: column-reverse;
}

@media (min-width: 1024px) {
    .actualites-layout {
        flex-direction: row !important;
    }
}

/* Mobile Sticky CTA */
.mobile-cta-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    left: 20px;
    background: var(--gradient-accent);
    color: var(--neutral-900);
    padding: 1rem;
    text-align: center;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-family: var(--font-heading);
    box-shadow: var(--shadow-xl);
    z-index: 999;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: none;
    /* Hidden by default on desktop */
    animation: fadeIn 0.5s ease-out 1s backwards;
}

@media (max-width: 900px) {
    .mobile-cta-btn {
        display: block;
    }

    /* Avoid content being hidden behind sticky button */
    body {
        padding-bottom: 80px;
    }

    /* Improve Checkbox touch targets */
    input[type="checkbox"],
    input[type="radio"] {
        transform: scale(1.2);
        margin-right: 0.5rem;
    }

    label {
        display: inline-block;
        vertical-align: middle;
        margin-bottom: 0.5rem;
    }
}