* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* === VARIABLES CSS === */
:root {
    /* Couleurs principales */
    --noir: #000000;
    --blanc: #ffffff;
    --violet: #8b5cf6;
    --violet-dark: #7c3aed;
    --gris: #6b7280;
    --gris-clair: #f3f4f6;
    --gris-dark: #1f2937;

    /* Transitions */
    --transition: all 0.3s ease;
    --transition-slow: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* === DARK MODE VARIABLES === */
[data-theme="dark"] {
    --noir: #ffffff;
    --blanc: #0a0a0a;
    --gris-clair: #1f2937;
    --gris: #9ca3af;
}

/* === BODY === */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--noir);
    background: var(--blanc);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background 0.3s ease, color 0.3s ease;
}

/* === SCROLLBAR === */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--gris-clair);
}

::-webkit-scrollbar-thumb {
    background: var(--violet);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--violet-dark);
}

/* === TYPOGRAPHY === */
h1, h2, h3, h4, h5, h6 {
    font-weight: 800;
    line-height: 1.2;
    color: var(--noir);
}

p {
    line-height: 1.7;
    color: var(--gris);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

/* === UTILITIES === */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 3rem;
}

/* === IMAGES === */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* === SELECTION === */
::selection {
    background: var(--violet);
    color: var(--blanc);
}

/* === FOCUS === */
*:focus-visible {
    outline: 2px solid var(--violet);
    outline-offset: 2px;
}

/* === ANIMATIONS === */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* === RESPONSIVE === */
@media (max-width: 1200px) {
    .container {
        padding: 0 2rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    h3 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
}

/* === BUTTONS GÉNÉRIQUES === */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%);
}

.btn-primary {
    background: var(--violet);
    color: var(--blanc);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.3);
}

.btn-secondary {
    background: var(--gris-clair);
    color: var(--noir);
}

.btn-secondary:hover {
    background: var(--noir);
    color: var(--blanc);
}

[data-theme="dark"] .btn-secondary:hover {
    background: var(--violet);
}

/* === SECTIONS === */
section {
    padding: 6rem 0;
}

@media (max-width: 768px) {
    section {
        padding: 4rem 0;
    }
}

/* Voilà ! CSS propre et léger.
   Les styles spécifiques du header, footer, pages sont déjà dans leurs fichiers PHP respectifs.
   Ce fichier contient uniquement les bases communes. */
