﻿/* MÃ‰NAGEZ-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;

    --breakpoint-sm: 640px;
    --breakpoint-md: 768px;
    --breakpoint-lg: 1024px;
    --breakpoint-xl: 1280px;

    /* 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: 1400px;
    --header-height: 100px;

    --radius-sm: 0.375rem;
    --radius-md: 0.75rem;
    --radius-lg: 1.5rem;
    --radius-full: 9999px;

    /* Typography - According to Brand Style Guide */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Outfit', sans-serif;
    --font-decorative: 'Yeseva One', cursive;

    /* Outfit Font Weights */
    --font-weight-extralight: 200;
    --font-weight-regular: 400;
    --font-weight-bold: 700;
    --font-weight-black: 900;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
}

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;
}

/* Titres principaux avec Yeseva One selon le guide de style */
h1 {
    font-family: var(--font-decorative);
    font-size: 3.5rem;
    font-weight: 400;
}

h2 {
    font-family: var(--font-decorative);
    font-size: 2.5rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
}

h3 {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: var(--font-weight-bold);
}

h4 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: var(--font-weight-bold);
}

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;
}

.bg-texture-light {
    background-color: var(--neutral-0);
    background-image: radial-gradient(var(--neutral-200) 1px, transparent 1px);
    background-size: 24px 24px;
}

.section {
    padding: 6rem 0;
    position: relative;
}

.section-grey {
    background-color: var(--neutral-100);
}

.section-primary-light {
    background-color: var(--primary-50);
}

.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(2, minmax(0, 1fr));
}

.grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-cols-4 {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

/* Tablet Optimizations */
@media (max-width: 1024px) {
    .container {
        width: 95%;
        padding: 0 1rem;
    }

    h1 {
        font-size: 2.75rem;
    }

    h2 {
        font-size: 2rem;
    }

    .section {
        padding: 4rem 0;
    }

    .grid-cols-3,
    .grid-cols-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem !important;
        /* Slightly smaller for better fit */
        word-break: break-word;
    }

    h2 {
        font-size: 1.5rem !important;
    }

    h3 {
        font-size: 1.25rem;
    }

    .section {
        padding: 3rem 0;
    }

    .grid-cols-2,
    .grid-cols-3,
    .grid-cols-4 {
        grid-template-columns: 1fr;
    }

    .flex-wrap {
        gap: 1.5rem;
    }

    .container {
        width: 100%;
        padding: 0 1.25rem;
        /* More breathing room on edges */
    }
}

.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.flex-wrap {
    flex-wrap: wrap;
}

.items-center {
    align-items: center;
}

.items-start {
    align-items: flex-start;
}

.self-center {
    align-self: 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);
}


/* Legal Banner - Service Ã  la personne */
.legal-banner {
    background: var(--primary-700);
    color: white;
    padding: 0.5rem 0;
    font-size: 0.85rem;
}

.legal-banner-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.legal-banner-logo {
    height: 24px;
    width: auto;
    border-radius: 2px;
}

.legal-banner-separator {
    opacity: 0.5;
}

.legal-banner-highlight {
    font-weight: 700;
    color: var(--accent-400);
}

@media (max-width: 600px) {
    .legal-banner {
        font-size: 0.75rem;
        padding: 0.4rem 0;
    }

    .legal-banner-logo {
        height: 20px;
    }

    .legal-banner-separator {
        display: none;
    }
}

/* Large Pictograms */
.picto-large {
    width: 100px !important;
    height: 100px !important;
}

.picto-large img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* 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 {
    display: flex;
    align-items: center;
}

header .logo-link {
    display: flex;
    align-items: center;
    gap: 10px;
}

header .main-logo {
    height: 125px;
    width: auto;
    display: block;
    position: relative;
    z-index: 10;
}

header .logo-text-fallback {
    display: none;
    font-family: 'Outfit';
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--primary-600);
}


.nav-links {
    display: flex;
    gap: 2.375rem;
    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: 17px;
    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);
}

.nav-links>li>a.btn::after {
    display: none;
}

/* 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: linear-gradient(rgba(255, 255, 255, 0.7), rgba(240, 253, 255, 0.8)), url('../images/bg-hero.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-home {
    background: linear-gradient(rgba(255, 255, 255, 0.2), rgba(240, 253, 255, 0.3)), url('../images/hero-final-1920x1080.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

/* Service Page Hero/Banner */
.hero-service {
    background-color: var(--primary-50);
    background-image: url('../images/pattern-services.svg');
    background-size: 200px 200px;
    background-repeat: repeat;
    background-repeat: repeat;
    background-attachment: scroll;
}

.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-service .hero-shape {
    display: none;
}

.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;
}

.hero h1 img {
    display: none;
    /* Hide any misplaced images in H1 */
}


/* Hero Styling */
.hero-logos {
    margin-bottom: 2rem;
}

.partner-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.partner-logo {
    height: auto;
    object-fit: contain;
}

.sap-logo {
    height: 94px;
}

.picto-logo {
    height: 125px;
}

.hero-title {
    max-width: 800px;
    margin-bottom: 1.5rem;
}

.hero-text {
    font-size: 1.125rem;
    max-width: 700px;
    margin-bottom: 2.5rem;
    line-height: 1.8;
}

@media (max-width: 768px) {
    .sap-logo {
        height: 60px;
    }

    .picto-logo {
        height: 80px;
    }

    .hero-text {
        font-size: 1rem;
    }
}

.hero-picto {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
    margin-bottom: 2rem;
    flex-direction: row !important;
    /* Force horizontal on mobile */
    align-items: center;
    /* Ensure vertical alignment is centered */
}

.service-hero-picto {
    height: auto;
    width: 120px;
    object-fit: contain;
    display: block;
    border-radius: 0;
}

/* Credit Impot Section */
.credit-impot-img {
    width: 180px;
    height: auto;
    margin: 0 auto;
    filter: brightness(1.1);
}

.credit-impot-text {
    margin-top: 1rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .credit-impot-img {
        width: 140px;
    }
}



/* 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: 80px;
    height: 80px;
    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: 48px;
    height: 48px;
}

/* Team Cards */
.team-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    /* Ombre colorÃ©e douce avec la couleur primaire */
    box-shadow: 0 10px 25px -5px rgba(0, 188, 212, 0.15), 0 8px 10px -6px rgba(0, 188, 212, 0.1);
    transition: all 0.3s ease;
    max-width: 260px;
    border: 1px solid var(--primary-50);
}

.team-card:hover {
    transform: translateY(-5px);
    /* Ombre plus prononcÃ©e au survol */
    box-shadow: 0 20px 25px -5px rgba(0, 188, 212, 0.25), 0 10px 10px -5px rgba(0, 188, 212, 0.15);
    border-color: var(--primary-200);
}

.team-img {
    height: 350px;
    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;
}

/* Custom Checkbox Styling */
input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 1.25rem;
    height: 1.25rem;
    border: 2px solid var(--neutral-300);
    border-radius: 50%;
    margin-right: 0.5rem;
    position: relative;
    cursor: pointer;
    vertical-align: middle;
    transition: all 0.2s ease;
    background-color: var(--neutral-50);
}

input[type="checkbox"]:checked {
    background-color: var(--primary-600);
    border-color: var(--primary-600);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
    background-size: 65%;
    background-position: center;
    background-repeat: no-repeat;
}

input[type="checkbox"]:hover {
    border-color: var(--primary-400);
    background-color: white;
}

input[type="checkbox"]:checked:hover {
    background-color: var(--primary-700);
    border-color: var(--primary-700);
}

input[type="checkbox"]:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 151, 167, 0.2);
    border-color: var(--primary-500);
}

/* 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;
    /* Changed to 3 columns */
    gap: 3rem;
    margin-bottom: 3rem;
    border-bottom: 1px solid var(--neutral-800);
    padding-bottom: 3rem;
}

.footer-brand h3 {
    font-family: 'Outfit';
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: white;
}

.footer-brand p {
    color: var(--neutral-400);
    line-height: 1.6;
    max-width: 300px;
}

.footer-logos {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.footer-logo {
    height: auto;
    object-fit: contain;
    opacity: 0.9;
    transition: opacity 0.3s;
}

.footer-logo:hover {
    opacity: 1;
}

.footer-logo.sap {
    height: 90px;
}

.footer-logo.tax {
    height: 112px;
}


.footer-col h4 {
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.footer-col ul {
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-col a,
.footer-col li {
    color: var(--neutral-400);
    /* rgba(255,255,255,0.8) approx */
    text-decoration: none;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-col a:hover {
    color: var(--primary-400);
}

.footer-bottom {
    padding-top: 2rem;
    text-align: center;
    color: var(--neutral-500);
    font-size: 0.9rem;
    display: block;
    /* Reset flex if it was flex before to match simple flow */
}

@media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}


/* 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: 1024px) {
    header {
        height: 70px;
    }

    header .logo img {
        height: 90px;
        /* Logo overflows header like on desktop for a bigger visual presence */
    }

    .mobile-menu-btn {
        display: block;
        background: none;
        border: none;
        cursor: pointer;
        z-index: 1100;
        margin-left: auto;
        /* Ensure to right */
    }

    .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: 4rem 2rem 2rem;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
        transform: translateX(100%);
        transition: transform 0.3s ease;
        z-index: 1001;
        overflow-y: auto;
        max-height: 100vh;
    }

    .nav-links.active {
        transform: translateX(0);
    }

    .nav-links>li {
        width: 100%;
        padding: 0;
        border-bottom: 1px solid var(--neutral-100);
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }

    .nav-links>li:last-child {
        border-bottom: none;
        margin-top: 0.5rem;
    }

    .nav-links>li>a {
        display: block;
        padding: 0.5rem 0;
        font-size: 1.1rem;
        width: 100%;
    }

    /* Mobile Menu Button & Phone Fix */
    .nav-links>li>.btn {
        width: 100%;
        margin-top: 0.25rem;
        display: flex;
        justify-content: center;
    }

    .nav-links>li .protected-phone {
        display: flex;
        width: 100%;
        padding: 0.25rem 0;
        justify-content: flex-start;
    }

    .dropdown-menu {
        position: static !important;
        transform: none !important;
        box-shadow: none !important;
        border: none !important;
        background: var(--neutral-50);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        padding: 0;
        opacity: 1 !important;
        visibility: visible !important;
        margin-left: 0.5rem;
        margin-top: 0;
        width: auto !important;
        min-width: 0 !important;
        left: auto !important;
        right: auto !important;
        border-radius: var(--radius-sm);
        border-left: 3px solid var(--primary-300);
    }

    .dropdown-menu li {
        width: auto;
    }

    .dropdown-menu a {
        color: var(--neutral-800) !important;
        padding: 0.6rem 1rem;
        font-size: 1rem;
        white-space: normal !important;
        display: block;
    }

    .dropdown-trigger:hover .dropdown-menu,
    .dropdown-trigger.active .dropdown-menu {
        max-height: 500px;
        padding: 0.5rem 0;
        margin-bottom: 0.5rem;
    }

    .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;
    }

    .legal-banner-content {
        flex-direction: column;
        gap: 0.25rem;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2rem;
    }

    .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }

    .flex.gap-4 {
        flex-direction: column;
        width: 100%;
    }
}

/* Actualites Layout Fix */
.actualites-layout {
    flex-direction: column-reverse;
}

@media (min-width: 1025px) {
    .actualites-layout {
        flex-direction: row !important;
    }
}




/* 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;
}

/* Awards Section */
.award-item {
    transition: transform 0.3s ease;
}

.award-item:hover {
    transform: translateY(-5px);
}

.award-img {
    height: 450px;
    width: auto;
    object-fit: contain;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.award-item:hover .award-img {
    box-shadow: var(--shadow-xl);
}

@media (max-width: 768px) {
    .award-img {
        max-width: 100%;
        height: auto;
    }
}

@media (max-width: 768px) {
    .award-img {
        max-width: 100%;
        height: auto;
    }
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    padding: 1.5rem 0;
    border-top: 1px solid var(--primary-100);
    animation: slideUp 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.cookie-content {
    max-width: var(--container-max);
    width: 90%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.cookie-text h3 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
    color: var(--primary-800);
}

.cookie-text p {
    margin-bottom: 0;
    font-size: 0.9rem;
    color: var(--neutral-600);
    max-width: 800px;
}

.cookie-link {
    color: var(--primary-600);
    text-decoration: underline;
    font-weight: 500;
}

.cookie-actions {
    display: flex;
    gap: 1rem;
    flex-shrink: 0;
}

.btn-sm {
    padding: 0.5rem 1.25rem;
    font-size: 0.9rem;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@media (max-width: 900px) {
    .cookie-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        width: 90%;
        margin: 0 auto;
    }

    .cookie-text {
        width: 100%;
        text-align: center;
    }

    .cookie-text p {
        max-width: 100%;
    }

    .cookie-actions {
        width: 100%;
        flex-direction: column;
        gap: 0.75rem;
    }

    .cookie-actions .btn-sm {
        width: 100%;
        justify-content: center;
        margin: 0;
    }

    .mobile-padding {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
}


/* Header Phone Styles (Refactored from inline) */
.header-phone {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-700);
    font-weight: 700;
}

.phone-icon {
    font-size: 1.2rem;
}


/* 
   --------------------------------------------------------------------------------------
   OPTIMISATION ECRANS ORDINATEURS PORTABLES (1025px - 1500px) - V4 (Final Phone Fix)
   Cible : MacBook Air 13", PC Portables 13-15", RÃ©solutions ~1280px - ~1470px
   --------------------------------------------------------------------------------------
*/
@media (min-width: 1025px) and (max-width: 1500px) {

    /* 1. Global Scale Reduction */
    :root {
        --header-height: 75px;
        --container-max: 1150px;
    }

    body {
        font-size: 15px;
    }

    /* 2. Typography Adjustments */
    h1 {
        font-size: 2.6rem;
    }

    h2 {
        font-size: 1.9rem;
        margin-bottom: 0.8rem;
    }

    h3 {
        font-size: 1.4rem;
    }

    /* 3. Spacing & Layout */
    .section {
        padding: 3.5rem 0;
    }

    .section-title {
        margin-bottom: 2rem;
        max-width: 650px;
    }

    .container {
        width: 94%;
        padding: 0 2rem;
    }

    /* 4. Header & Navigation (OPTIMIZED) */
    header .main-logo {
        height: 80px;
    }

    .nav-links {
        gap: 1.25rem;
    }

    .nav-links>li {
        padding: 0.5rem 0;
    }

    .nav-links>li>a {
        font-size: 14px;
        font-weight: 500;
    }

    /* Phone Number Override */
    /* Target the class we added to header.ejs */
    .header-phone {
        font-size: 14px;
        gap: 0.25rem;
    }

    .phone-icon {
        font-size: 1.1em;
    }

    .btn {
        padding: 0.6rem 1.25rem;
        font-size: 0.95rem;
    }

    /* 5. Hero Section */
    .hero {
        min-height: 65vh;
        padding-top: var(--header-height);
    }

    .hero-title {
        margin-bottom: 0.75rem;
    }

    .hero-text {
        font-size: 1rem;
        margin-bottom: 1.25rem;
        line-height: 1.6;
    }

    .partner-logo {
        height: 60px;
    }

    .sap-logo {
        height: 60px;
    }

    .picto-logo {
        height: 80px;
    }

    .hero-logos {
        margin-bottom: 0.5rem;
    }

    /* 6. Cards & Grids */
    .card {
        padding: 1.5rem;
    }

    .card-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 0.75rem;
    }

    .card-icon svg,
    .card-icon img {
        width: 32px;
        height: 32px;
    }

    .team-img {
        height: 250px;
    }

    /* Footer */
    footer {
        padding: 2.5rem 0 1rem;
    }

    .footer-col h4 {
        margin-bottom: 1rem;
        font-size: 1rem;
    }

    .footer-col li,
    .footer-col a {
        font-size: 0.9rem;
    }

    .footer-logo.sap {
        height: 60px;
    }

    .footer-logo.tax {
        height: 80px;
    }
}