/* ========== RESET & BASE ========== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
html {
    overflow-x: hidden;
    scroll-behavior: smooth;
}
body {
    font-size: 16px;
    line-height: 1.6;
    font-weight: 400;
    background-color: #fff;
    color: #222;
    -webkit-text-size-adjust: 100%;
}
:root {
    --color-brand: #ea580c;
    --color-brand-dark: #c2410c;
    --color-brand-light: #fff7ed;
    --color-cta: #00e5ff;
    --color-cta-dark: #00b8d4;
    --text-muted: #777;
    --text-dark: #222;
    --border: #ddd;
    --bg-light: #f8f8f8;
    --bg-card: #fff;
    --font-main: 'Trebuchet MS', Helvetica, sans-serif;
}
* {
    font-family: var(--font-main);
}
a {
    color: var(--color-brand);
    text-decoration: none;
    transition: color 0.2s;
}
a:hover {
    color: var(--color-brand-dark);
}
img, video, iframe, embed, object {
    max-width: 100%;
    height: auto;
    display: block;
}
table {
    max-width: 100%;
    border-collapse: collapse;
}
.table-responsive, .table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
ul, ol {
    list-style: none;
}
button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}
/* ========== TYPOGRAPHY ========== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-dark);
    margin-bottom: 0.8em;
}
h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
p {
    margin-bottom: 1em;
    font-weight: 400;
}
strong, b {
    font-weight: 700;
}
small {
    font-size: 0.875rem;
}
/* ========== UTILITIES ========== */
.container {
    width: 90%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}
.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;
}
/* ========== BUTTONS ========== */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 1rem;
    text-align: center;
    transition: background-color 0.2s, transform 0.1s;
    cursor: pointer;
    border: none;
    text-decoration: none;
}
.btn-cta {
    background-color: var(--color-cta);
    color: #111;
}
.btn-cta:hover {
    background-color: var(--color-cta-dark);
    color: #111;
    transform: translateY(-1px);
}
.btn-brand {
    background-color: var(--color-brand);
    color: #fff;
}
.btn-brand:hover {
    background-color: var(--color-brand-dark);
    color: #fff;
    transform: translateY(-1px);
}
.btn-outline {
    background-color: transparent;
    border: 2px solid var(--color-brand);
    color: var(--color-brand);
}
.btn-outline:hover {
    background-color: var(--color-brand);
    color: #fff;
}
/* ========== FORMS ========== */
input, textarea, select {
    font-family: inherit;
    font-size: 1rem;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: 6px;
    width: 100%;
    max-width: 100%;
    transition: border-color 0.2s;
}
input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--color-brand);
}
label {
    display: block;
    margin-bottom: 6px;
    font-weight: 700;
    font-size: 0.9rem;
}
/* ========== GRID ========== */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

/* ===== RESPONSIVE (auto-repair) ===== */
/* ========== MEDIA QUERIES ========== */

/* ---------- TABLET (max-width: 1024px) ---------- */
@media (max-width: 1024px) {
    h1 {
        font-size: 2rem;
    }
    h2 {
        font-size: 1.75rem;
    }
    h3 {
        font-size: 1.35rem;
    }
    h4 {
        font-size: 1.15rem;
    }

    .container {
        width: 92%;
        padding: 0 16px;
    }

    .grid-2 {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .btn {
        padding: 11px 24px;
        font-size: 0.95rem;
    }
}

/* ---------- MOBILE (max-width: 768px) ---------- */
@media (max-width: 768px) {
    body {
        font-size: 15px;
    }

    h1 {
        font-size: 1.75rem;
    }
    h2 {
        font-size: 1.5rem;
    }
    h3 {
        font-size: 1.25rem;
    }
    h4 {
        font-size: 1.1rem;
    }

    .container {
        width: 94%;
        padding: 0 14px;
    }

    .grid-2 {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .grid-3 {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .grid-4 {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }

    .btn {
        padding: 10px 22px;
        font-size: 0.925rem;
        width: 100%;
    }

    input, textarea, select {
        font-size: 0.95rem;
        padding: 10px 12px;
    }

    label {
        font-size: 0.85rem;
    }

    p {
        margin-bottom: 0.85em;
    }

    small {
        font-size: 0.825rem;
    }
}

/* ---------- PETIT MOBILE (max-width: 480px) ---------- */
@media (max-width: 480px) {
    body {
        font-size: 14px;
    }

    h1 {
        font-size: 1.5rem;
    }
    h2 {
        font-size: 1.35rem;
    }
    h3 {
        font-size: 1.15rem;
    }
    h4 {
        font-size: 1.05rem;
    }

    .container {
        width: 96%;
        padding: 0 10px;
    }

    .grid-2 {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .grid-3 {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .grid-4 {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .btn {
        padding: 10px 18px;
        font-size: 0.9rem;
    }

    input, textarea, select {
        font-size: 0.9rem;
        padding: 8px 10px;
    }

    label {
        font-size: 0.8rem;
    }

    p {
        margin-bottom: 0.75em;
    }

    small {
        font-size: 0.8rem;
    }
}