/**
 * Base CSS - Le Ballon Publicitaire
 *
 * Reset léger + styles de base appliqués à tout le site.
 *
 * @version 0.3.2
 */


/* ============================================
   RESET LÉGER
   ============================================ */

*, *::before, *::after {
    box-sizing: border-box;
}

* {
    margin: 0;
    padding: 0;
}

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

body {
    font-family: var(--font-body);
    font-size: var(--fs-base);
    font-weight: var(--fw-regular);
    line-height: var(--lh-normal);
    color: var(--color-text);
    background: var(--color-page-bg);
    min-height: 100vh;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
}

/* Sticky footer : .site/#page prend tout l'espace dispo, footer reste en bas */
body > .site,
body > #page {
    flex: 1 0 auto;
}

body > .site-footer,
body > .footer-bottom {
    flex-shrink: 0;
}

img, picture, video, canvas, svg {
    display: block;
    max-width: 100%;
    height: auto;
}

input, button, textarea, select {
    font: inherit;
    color: inherit;
}

button {
    background: none;
    border: none;
    cursor: pointer;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

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

ul, ol {
    list-style: none;
}


/* ============================================
   TYPOGRAPHIE - Titres
   ============================================ */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: var(--fw-bold);
    line-height: var(--lh-tight);
    color: var(--color-primary);
    margin-bottom: var(--space-4);
}

h1 {
    font-size: var(--fs-4xl);
    font-weight: var(--fw-bold);
}

h2 {
    font-size: var(--fs-3xl);
    font-weight: var(--fw-bold);
}

h3 {
    font-size: var(--fs-2xl);
    font-weight: var(--fw-semibold);
}

h4 {
    font-size: var(--fs-xl);
    font-weight: var(--fw-semibold);
}

h5 {
    font-size: var(--fs-lg);
    font-weight: var(--fw-medium);
}

h6 {
    font-size: var(--fs-base);
    font-weight: var(--fw-medium);
}


/* ============================================
   TYPOGRAPHIE - Texte courant
   ============================================ */

p {
    margin-bottom: var(--space-4);
    line-height: var(--lh-normal);
}

p:last-child {
    margin-bottom: 0;
}

strong, b {
    font-weight: var(--fw-bold);
    color: var(--color-text);
}


/* ============================================
   CONTAINER (largeur max + centrage)
   ============================================ */

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


/* ============================================
   BOUTONS - styles de base réutilisables
   ============================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-6);
    font-family: var(--font-body);
    font-size: var(--fs-base);
    font-weight: var(--fw-semibold);
    line-height: 1;
    text-align: center;
    text-decoration: none;
    border: 2px solid transparent;
    border-radius: var(--radius-pill);
    cursor: pointer;
    transition: all var(--transition-base);
    white-space: nowrap;
}

.btn-primary {
    background: var(--color-primary);
    color: var(--color-white);
}

.btn-primary:hover {
    background: var(--color-primary-dark);
    color: var(--color-white);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background: transparent;
    color: var(--color-primary);
    border-color: var(--color-primary);
}

.btn-outline:hover {
    background: var(--color-primary);
    color: var(--color-white);
}

.btn-accent {
    background: var(--color-accent);
    color: var(--color-white);
}

.btn-accent:hover {
    background: #d97f00;
    color: var(--color-white);
}


/* ============================================
   ACCESSIBILITÉ
   ============================================ */

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

.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--color-primary);
    color: var(--color-white);
    padding: var(--space-2) var(--space-4);
    z-index: var(--z-tooltip);
}

.skip-link:focus {
    top: 0;
}


/* ============================================
   ZONE TEMPORAIRE - démo
   ============================================ */

.demo-zone {
    padding: var(--space-9) 0;
}

.demo-section {
    margin-bottom: var(--space-9);
    padding-bottom: var(--space-6);
    border-bottom: 1px solid var(--color-border);
}

.demo-title {
    font-family: var(--font-display);
    font-size: var(--fs-5xl);
    color: var(--color-primary-dark);
    margin-bottom: var(--space-2);
    letter-spacing: 0.02em;
    word-break: break-word;     /* évite débordement sur petit écran */
}

.demo-subtitle {
    font-size: var(--fs-md);
    color: var(--color-text-light);
    margin-bottom: var(--space-6);
}

.demo-row {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-4);
    align-items: center;
    margin-bottom: var(--space-4);
}

.color-swatch {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: flex-end;
    padding: var(--space-2);
}

.color-swatch span {
    background: rgba(255, 255, 255, 0.9);
    padding: 2px 6px;
    border-radius: var(--radius-sm);
    font-size: var(--fs-xs);
    font-family: monospace;
    color: var(--color-text);
}

/* Sur mobile, on réduit fortement le titre démo */
@media (max-width: 768px) {

    .demo-zone {
        padding: var(--space-6) 0;
    }

    .demo-title {
        font-size: var(--fs-3xl);
    }
}