/* ============================================================
   BASE.CSS - Reset & styles de base
   ============================================================ */

/* ---------- RESET MINIMAL ---------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

* {
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-family-base);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-normal);
    line-height: 1.6;
    color: var(--color-text-primary);
    background-color: var(--color-bg-primary);
    overflow-x: hidden;
    min-height: 100vh;
}

/* ---------- TYPOGRAPHIE ---------- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family-heading);
    font-weight: var(--font-weight-extrabold);
    line-height: 1.2;
    color: var(--color-text-primary);
    margin-bottom: var(--spacing-md);
}

h1 { font-size: var(--font-size-5xl); }
h2 { font-size: var(--font-size-4xl); }
h3 { font-size: var(--font-size-3xl); }
h4 { font-size: var(--font-size-2xl); }
h5 { font-size: var(--font-size-xl); }
h6 { font-size: var(--font-size-lg); }

p {
    color: var(--color-text-secondary);
    line-height: 1.7;
    margin-bottom: var(--spacing-md);
}

/* Texte mis en évidence en rouge (style "EXPERT EN ÉLECTRONIQUE AUTO") */
.text-accent {
    color: var(--color-accent);
}

.text-eco {
    color: var(--color-eco);
}

.text-muted {
    color: var(--color-text-muted);
}

/* ---------- LIENS ---------- */
a {
    color: var(--color-accent);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-accent-hover);
}

/* ---------- LISTES ---------- */
ul, ol {
    list-style: none;
}

/* ---------- IMAGES ---------- */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ---------- BOUTONS RESET ---------- */
button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
    color: inherit;
}

/* ---------- INPUTS RESET ---------- */
input, textarea, select {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
}

input:focus, textarea:focus, select:focus {
    outline: none;
}

/* ---------- SÉLECTION DE TEXTE ---------- */
::selection {
    background: var(--color-accent);
    color: var(--color-text-primary);
}

/* ---------- SCROLLBAR PERSONNALISÉE ---------- */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--color-bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--color-border);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-accent);
}

/* ---------- CONTAINER ---------- */
.container-custom {
    width: 100%;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

/* ---------- UTILITAIRES ---------- */
.text-center { text-align: center; }
.text-left   { text-align: left; }
.text-right  { text-align: right; }

.section-padding {
    padding: var(--spacing-4xl) 0;
}

.section-padding-sm {
    padding: var(--spacing-2xl) 0;
}

/* Bordure rouge décorative en haut (style "icône dans cadre rouge" des maquettes) */
.accent-bar {
    width: 60px;
    height: 4px;
    background: var(--color-accent);
    margin: 0 auto var(--spacing-lg);
    border-radius: var(--radius-full);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 768px) {
    h1 { font-size: var(--font-size-4xl); }
    h2 { font-size: var(--font-size-3xl); }
    h3 { font-size: var(--font-size-2xl); }
    h4 { font-size: var(--font-size-xl); }

    .section-padding { padding: var(--spacing-3xl) 0; }
}