/* ============================================
   BASE STYLES - ÉLECTRICIEN PRO
   Reset et styles de base
   ============================================ */

/* ------------------------------------------
   RESET CSS MODERNE
   ------------------------------------------ */
*,
*::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;
    text-rendering: optimizeLegibility;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

body {
    font-family: var(--font-body);
    font-size: var(--text-base);
    line-height: var(--leading-normal);
    color: var(--text-primary);
    background-color: var(--bg-primary);
    min-height: 100vh;
    overflow-x: hidden;
}

/* ------------------------------------------
   TYPOGRAPHIE DE BASE
   ------------------------------------------ */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-display);
    font-weight: var(--font-bold);
    line-height: var(--leading-tight);
    color: var(--text-primary);
    margin-bottom: var(--space-4);
}

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

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

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

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

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

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

@media (max-width: 768px) {
    h1 {
        font-size: var(--text-4xl);
    }

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

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

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

p {
    margin-bottom: var(--space-4);
    color: var(--text-secondary);
}

a {
    color: var(--color-electric-blue);
    text-decoration: none;
    transition: var(--transition-colors);
}

a:hover {
    color: var(--color-electric-blue-light);
}

a:focus-visible {
    outline: 2px solid var(--color-electric-blue);
    outline-offset: 2px;
}

/* ------------------------------------------
   LISTES
   ------------------------------------------ */
ul,
ol {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* ------------------------------------------
   IMAGES ET MÉDIAS
   ------------------------------------------ */
img,
video,
svg {
    display: block;
    max-width: 100%;
    height: auto;
}

svg {
    fill: currentColor;
}

/* ------------------------------------------
   FORMULAIRES
   ------------------------------------------ */
input,
textarea,
select,
button {
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
    color: inherit;
    background: transparent;
    border: none;
    outline: none;
}

button {
    cursor: pointer;
}

button:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

input::placeholder,
textarea::placeholder {
    color: var(--text-muted);
}

/* ------------------------------------------
   SÉLECTION
   ------------------------------------------ */
::selection {
    background-color: var(--color-electric-blue);
    color: var(--color-deep-black);
}

/* ------------------------------------------
   SCROLLBAR PERSONNALISÉE
   ------------------------------------------ */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--color-gray-600);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-gray-500);
}

/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--color-gray-600) var(--bg-secondary);
}

/* ------------------------------------------
   UTILITAIRES DE BASE
   ------------------------------------------ */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.container {
    width: 100%;
    max-width: var(--container-max);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--container-padding);
    padding-right: var(--container-padding);
}

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

/* ------------------------------------------
   ANIMATIONS DE BASE
   ------------------------------------------ */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

@keyframes glow {

    0%,
    100% {
        box-shadow: 0 0 5px var(--color-electric-blue-glow),
            0 0 10px var(--color-electric-blue-glow);
    }

    50% {
        box-shadow: 0 0 20px var(--color-electric-blue-glow),
            0 0 30px var(--color-electric-blue-glow),
            0 0 40px var(--color-electric-blue-glow);
    }
}

@keyframes electric-spark {

    0%,
    100% {
        opacity: 0;
    }

    10%,
    90% {
        opacity: 1;
    }
}

.animate-fadeIn {
    animation: fadeIn var(--transition-base) forwards;
}

.animate-fadeInUp {
    animation: fadeInUp var(--transition-slow) forwards;
}

.animate-fadeInDown {
    animation: fadeInDown var(--transition-slow) forwards;
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.animate-glow {
    animation: glow 2s ease-in-out infinite;
}