/* ============================================================================
   GMI AUDIT - DESIGN SYSTEM PREMIUM
   Site Web Corporate Professionnel
   ============================================================================ */

/* === ROOT VARIABLES - SYSTÈME DE DESIGN === */
:root {
    /* === PALETTE DE COULEURS PRINCIPALES === */
    /* Basé sur le bleu du logo GMI #0099FF */
    --gmi-blue-primary: #0099FF;
    --gmi-blue-dark: #0077CC;
    --gmi-blue-darker: #0055AA;
    --gmi-blue-light: #33AAFF;
    --gmi-blue-lighter: #66BBFF;
    --gmi-blue-pale: #E6F4FF;

    /* Couleurs d'accent */
    --accent-gold: #FFB800;
    --accent-emerald: #10B981;
    --accent-coral: #FF6B6B;
    --accent-purple: #7C3AED;

    /* Neutres sophistiqués */
    --gray-950: #0A0F1C;
    --gray-900: #1A1F2E;
    --gray-800: #2D3748;
    --gray-700: #4A5568;
    --gray-600: #5A6C7D;
    --gray-500: #718096;
    --gray-400: #A0AEC0;
    --gray-300: #CBD5E0;
    --gray-200: #E2E8F0;
    --gray-100: #F7FAFC;
    --white: #FFFFFF;

    /* Gradients sophistiqués */
    --gradient-hero: linear-gradient(135deg, #0099FF 0%, #0077CC 25%, #33AAFF 100%);
    --gradient-premium: linear-gradient(120deg, #0099FF 0%, #7C3AED 100%);
    --gradient-subtle: linear-gradient(180deg, #FFFFFF 0%, #E6F4FF 100%);
    --gradient-glass: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);

    /* === TYPOGRAPHIE === */
    --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;

    /* Échelle modulaire (ratio 1.25) */
    --text-xs: 0.75rem;        /* 12px */
    --text-sm: 0.875rem;       /* 14px */
    --text-base: 1rem;         /* 16px */
    --text-lg: 1.125rem;       /* 18px */
    --text-xl: 1.25rem;        /* 20px */
    --text-2xl: 1.5rem;        /* 24px */
    --text-3xl: 1.875rem;      /* 30px */
    --text-4xl: 2.25rem;       /* 36px */
    --text-5xl: 3rem;          /* 48px */
    --text-6xl: 4rem;          /* 64px */

    /* Line heights optimisés pour lecture */
    --line-height-tight: 1.25;
    --line-height-snug: 1.375;
    --line-height-normal: 1.6;
    --line-height-relaxed: 1.75;
    --line-height-loose: 2;

    /* Letter spacing */
    --letter-spacing-tight: -0.02em;
    --letter-spacing-normal: 0;
    --letter-spacing-wide: 0.025em;
    --letter-spacing-wider: 0.05em;

    /* Max widths pour lecture optimale */
    --max-width-prose: 65ch;
    --max-width-content: 80ch;
    --max-width-wide: 100ch;

    /* === ESPACEMENT (Base 8px) === */
    --space-1: 0.25rem;    /* 4px */
    --space-2: 0.5rem;     /* 8px */
    --space-3: 0.75rem;    /* 12px */
    --space-4: 1rem;       /* 16px */
    --space-5: 1.25rem;    /* 20px */
    --space-6: 1.5rem;     /* 24px */
    --space-8: 2rem;       /* 32px */
    --space-10: 2.5rem;    /* 40px */
    --space-12: 3rem;      /* 48px */
    --space-16: 4rem;      /* 64px */
    --space-20: 5rem;      /* 80px */
    --space-24: 6rem;      /* 96px */
    --space-32: 8rem;      /* 128px */

    /* Section paddings */
    --section-padding-mobile: var(--space-12);
    --section-padding-tablet: var(--space-16);
    --section-padding-desktop: var(--space-24);

    /* === EFFETS ET OMBRES === */
    --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);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);

    /* Ombres colorées */
    --shadow-blue: 0 10px 25px -5px rgba(0, 153, 255, 0.3);
    --shadow-purple: 0 10px 25px -5px rgba(124, 58, 237, 0.3);

    /* === BORDER RADIUS === */
    --radius-sm: 0.375rem;   /* 6px */
    --radius-md: 0.5rem;     /* 8px */
    --radius-lg: 0.75rem;    /* 12px */
    --radius-xl: 1rem;       /* 16px */
    --radius-2xl: 1.5rem;    /* 24px */
    --radius-full: 9999px;

    /* === TRANSITIONS === */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);

    /* === Z-INDEX === */
    --z-behind: -1;
    --z-base: 0;
    --z-dropdown: 1000;
    --z-sticky: 1100;
    --z-fixed: 1200;
    --z-modal: 1300;
    --z-popover: 1400;
    --z-tooltip: 1500;
}

/* === RESET ET BASE === */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    font-size: var(--text-base);
    line-height: var(--line-height-normal);
    color: var(--gray-900);
    background-color: var(--white);
    overflow-x: hidden;
}

@media (min-width: 768px) {
    body {
        font-size: var(--text-lg);
        line-height: var(--line-height-relaxed);
    }
}

/* === TYPOGRAPHIE === */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: var(--line-height-tight);
    letter-spacing: var(--letter-spacing-tight);
    color: var(--gray-900);
    margin-bottom: var(--space-4);
}

h1 {
    font-size: clamp(var(--text-4xl), 5vw, var(--text-6xl));
    margin-bottom: var(--space-6);
}

h2 {
    font-size: clamp(var(--text-3xl), 4vw, var(--text-5xl));
    margin-bottom: var(--space-5);
}

h3 {
    font-size: clamp(var(--text-2xl), 3vw, var(--text-4xl));
}

h4 {
    font-size: clamp(var(--text-xl), 2.5vw, var(--text-3xl));
}

h5 {
    font-size: var(--text-xl);
}

h6 {
    font-size: var(--text-lg);
}

p {
    margin-bottom: var(--space-6);
    max-width: var(--max-width-prose);
}

p.lead {
    font-size: var(--text-xl);
    line-height: var(--line-height-relaxed);
    color: var(--gray-700);
}

strong, b {
    font-weight: 600;
    color: var(--gray-900);
}

em, i {
    font-style: italic;
}

a {
    color: var(--gmi-blue-primary);
    text-decoration: none;
    transition: color var(--transition-base);
}

a:hover {
    color: var(--gmi-blue-dark);
}

/* === CONTENEURS === */
.container {
    width: 100%;
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--space-4);
    padding-right: var(--space-4);
}

@media (min-width: 640px) {
    .container {
        padding-left: var(--space-6);
        padding-right: var(--space-6);
    }
}

@media (min-width: 1024px) {
    .container {
        padding-left: var(--space-8);
        padding-right: var(--space-8);
    }
}

.container-narrow {
    max-width: 800px;
}

.container-wide {
    max-width: 1440px;
}

/* === SECTIONS === */
.section {
    padding-top: var(--section-padding-mobile);
    padding-bottom: var(--section-padding-mobile);
}

@media (min-width: 768px) {
    .section {
        padding-top: var(--section-padding-tablet);
        padding-bottom: var(--section-padding-tablet);
    }
}

@media (min-width: 1024px) {
    .section {
        padding-top: var(--section-padding-desktop);
        padding-bottom: var(--section-padding-desktop);
    }
}

.section--alt {
    background-color: var(--gray-100);
}

.section--blue {
    background: var(--gradient-subtle);
}

.section--dark {
    background-color: var(--gray-900);
    color: var(--white);
}

.section--dark h1,
.section--dark h2,
.section--dark h3 {
    color: var(--white);
}

/* === HEADER & NAVIGATION === */
.header {
    position: sticky;
    top: 0;
    z-index: var(--z-sticky);
    background-color: var(--white);
    transition: all var(--transition-base);
}

.header--scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-md);
}

.header__container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: var(--space-4);
    padding-bottom: var(--space-4);
}

.header__actions {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

.header__logo {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.header__logo-img {
    height: 50px;
    width: auto;
}

.header__logo-text h1 {
    font-size: var(--text-xl);
    margin: 0;
    color: var(--gray-900);
}

.header__logo-text p {
    font-size: var(--text-sm);
    color: var(--gray-600);
    margin: 0;
}

/* Navigation principale */
.nav {
    display: none;
}

@media (min-width: 1024px) {
    .nav {
        display: flex;
        gap: var(--space-8);
    }
}

.nav__link {
    font-weight: 500;
    color: var(--gray-700);
    padding: var(--space-2) 0;
    border-bottom: 2px solid transparent;
    transition: all var(--transition-base);
    position: relative;
}

.nav__link:hover,
.nav__link--active {
    color: var(--gmi-blue-primary);
    border-bottom-color: var(--gmi-blue-primary);
}

/* Menu hamburger */
.menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-2);
}

@media (min-width: 1024px) {
    .menu-toggle {
        display: none;
    }
}

.menu-toggle__bar {
    width: 25px;
    height: 3px;
    background-color: var(--gray-900);
    border-radius: 2px;
    transition: all var(--transition-base);
}

/* === HERO SECTION === */
.hero {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero--gradient {
    background: var(--gradient-hero);
    color: var(--white);
}

.hero--image {
    background-size: cover;
    background-position: center;
}

.hero--image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 119, 204, 0.9) 0%, rgba(0, 153, 255, 0.8) 100%);
}

.hero__content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero__title {
    color: inherit;
    margin-bottom: var(--space-6);
    animation: fadeInUp 0.8s ease-out;
}

.hero__subtitle {
    font-size: var(--text-xl);
    line-height: var(--line-height-relaxed);
    margin-bottom: var(--space-8);
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero__cta {
    display: flex;
    gap: var(--space-4);
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

/* === BOUTONS === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-4) var(--space-8);
    font-size: var(--text-base);
    font-weight: 600;
    font-family: var(--font-heading);
    text-align: center;
    border-radius: var(--radius-lg);
    cursor: pointer;
    border: none;
    transition: all var(--transition-base);
    white-space: nowrap;
}

.btn--primary {
    background-color: var(--gmi-blue-primary);
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.btn--primary:hover {
    background-color: var(--gmi-blue-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-blue);
}

.btn--secondary {
    background-color: var(--white);
    color: var(--gmi-blue-primary);
    border: 2px solid var(--gmi-blue-primary);
}

.btn--secondary:hover {
    background-color: var(--gmi-blue-primary);
    color: var(--white);
}

.btn--ghost {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn--ghost:hover {
    background-color: var(--white);
    color: var(--gmi-blue-primary);
}

.btn--large {
    padding: var(--space-5) var(--space-10);
    font-size: var(--text-lg);
}

/* === CARDS === */
.card {
    background-color: var(--white);
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
    border: 1px solid var(--gray-200);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.card__icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-subtle);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-3xl);
    margin-bottom: var(--space-5);
}

.card__title {
    margin-bottom: var(--space-3);
}

.card__description {
    color: var(--gray-600);
    margin-bottom: var(--space-5);
}

.card__link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-weight: 600;
    color: var(--gmi-blue-primary);
}

.card__link:hover {
    gap: var(--space-3);
}

/* Card glass effect */
.card--glass {
    background: var(--gradient-glass);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* === GRID SYSTEM === */
.grid {
    display: grid;
    gap: var(--space-6);
}

@media (min-width: 768px) {
    .grid {
        gap: var(--space-8);
    }
}

.grid--2 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

@media (min-width: 768px) {
    .grid--2 {
        grid-template-columns: repeat(2, 1fr);
    }
}

.grid--3 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

@media (min-width: 1024px) {
    .grid--3 {
        grid-template-columns: repeat(3, 1fr);
    }
}

.grid--4 {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

@media (min-width: 1024px) {
    .grid--4 {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* === FOOTER === */
.footer {
    background-color: var(--gray-900);
    color: var(--white);
    padding-top: var(--space-16);
    padding-bottom: var(--space-8);
}

.footer__grid {
    display: grid;
    gap: var(--space-12);
    margin-bottom: var(--space-12);
}

@media (min-width: 768px) {
    .footer__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .footer__grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.footer__section h3 {
    color: var(--white);
    margin-bottom: var(--space-4);
}

.footer__links {
    list-style: none;
}

.footer__link {
    color: var(--gray-400);
    margin-bottom: var(--space-3);
    transition: color var(--transition-base);
}

.footer__link:hover {
    color: var(--gmi-blue-light);
}

.footer__bottom {
    border-top: 1px solid var(--gray-800);
    padding-top: var(--space-8);
    text-align: center;
    color: var(--gray-500);
    font-size: var(--text-sm);
}

/* === ANIMATIONS === */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* === UTILITIES === */
.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.mt-1 { margin-top: var(--space-1); }
.mt-2 { margin-top: var(--space-2); }
.mt-3 { margin-top: var(--space-3); }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }
.mt-12 { margin-top: var(--space-12); }

.mb-1 { margin-bottom: var(--space-1); }
.mb-2 { margin-bottom: var(--space-2); }
.mb-3 { margin-bottom: var(--space-3); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }
.mb-12 { margin-bottom: var(--space-12); }

.text-blue { color: var(--gmi-blue-primary); }
.text-gray { color: var(--gray-600); }
.text-white { color: var(--white); }

.bg-blue { background-color: var(--gmi-blue-primary); }
.bg-gray { background-color: var(--gray-100); }
.bg-white { background-color: var(--white); }

/* === RESPONSIVE === */
@media (max-width: 1023px) {
    .hide-mobile {
        display: none !important;
    }
}

@media (min-width: 1024px) {
    .hide-desktop {
        display: none !important;
    }
}
