/* === Variables CSS === */
:root {
    /* Couleurs principales - thème Go/Bois */
    --color-wood-light: #e8d4a8;
    --color-wood: #d4a656;
    --color-wood-dark: #b8860b;
    --color-stone-black: #1a1a1a;
    --color-stone-white: #f5f5f5;

    /* Couleurs d'accent */
    --color-primary: #4a6741;
    --color-primary-light: #6b8e5a;
    --color-primary-dark: #3d5635;
    --color-accent: #8b4513;

    /* Couleurs neutres */
    --color-bg: #faf8f5;
    --color-bg-card: #ffffff;
    --color-text: #2d2d2d;
    --color-text-muted: #6b6b6b;
    --color-border: #e0d5c7;

    /* Ombres */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.16);

    /* Rayons */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 999px;

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.25s ease;
    --transition-slow: 0.4s ease;
}

/* === Reset & Base === */
*, *::before, *::after {
    box-sizing: border-box;
}

body {
    padding: 0;
    margin: 0;
    overflow-x: hidden;
    overflow-y: scroll;
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Roboto', 'Oxygen', 'Ubuntu', sans-serif;
    background: var(--color-bg);
    background-image:
        radial-gradient(circle at 20% 80%, rgba(212, 166, 86, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(74, 103, 65, 0.08) 0%, transparent 50%);
    color: var(--color-text);
    line-height: 1.6;
    min-height: 100vh;
}

/* === Typographie === */
h1, h2, h3, h4, h5, h6 {
    margin: 0 0 1rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-stone-black);
}

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

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

p {
    margin: 0 0 1rem;
}

/* === Bouton responsive === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;

    padding: clamp(0.6rem, 2vw, 0.9rem) clamp(1.2rem, 4vw, 1.8rem);
    font-size: clamp(0.9rem, 2.5vw, 1rem);
    font-weight: 600;

    color: #fff;
    background: linear-gradient(135deg, var(--color-primary-light), var(--color-primary));
    border: none;
    border-radius: var(--radius-full);

    cursor: pointer;
    text-decoration: none;
    box-shadow: var(--shadow-sm);
    transition:
        transform var(--transition-fast),
        box-shadow var(--transition-fast),
        background var(--transition-fast);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md), 0 6px 20px rgba(74, 103, 65, 0.3);
}

.btn:active, .btn.active {
    transform: translateY(-1px);
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    box-shadow: var(--shadow-sm), 0 4px 12px rgba(74, 103, 65, 0.4);
}

.btn:focus-visible {
    outline: 3px solid rgba(74, 103, 65, 0.5);
    outline-offset: 3px;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

/* Variante secondaire */
.btn--secondary {
    background: var(--color-bg-card);
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}

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

/* Variante wood */
.btn--wood {
    background: linear-gradient(135deg, var(--color-wood), var(--color-wood-dark));
    color: var(--color-stone-black);
}

.btn--wood:hover {
    box-shadow: var(--shadow-md), 0 6px 20px rgba(184, 134, 11, 0.35);
}

.btn--wood:active, .btn--wood.active {
    background: linear-gradient(135deg, var(--color-wood-dark), #9a7209);
}

/* === Cards === */
.card {
    background: var(--color-bg-card);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
    transition:
        transform var(--transition-normal),
        box-shadow var(--transition-normal);
    overflow: hidden;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.card--interactive {
    cursor: pointer;
}

.card--interactive:active {
    transform: translateY(-2px) scale(0.98);
}

/* === Badges === */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: var(--radius-full);
    background: var(--color-wood-light);
    color: var(--color-accent);
}

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

/* === Animations === */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

.animate-fade-in {
    animation: fadeIn 0.4s ease-out forwards;
}

.animate-slide-in {
    animation: slideIn 0.4s ease-out forwards;
}

/* === Utilitaires === */
.text-center { text-align: center; }
.text-muted { color: var(--color-text-muted); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }

/* === Réduction des animations si l'utilisateur le demande === */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* === Scrollbar personnalisée === */
::-webkit-scrollbar {
    width: 10px;
}

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

::-webkit-scrollbar-thumb {
    background: var(--color-wood);
    border-radius: var(--radius-full);
    border: 2px solid var(--color-bg);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-wood-dark);
}
