/* ==========================================================================
   1. Design Tokens (Thématisation)
   ========================================================================== */
:root {
    --md-sys-color-primary: rgb(255 182 139);
    --md-sys-color-surface-tint: rgb(255 182 139);
    --md-sys-color-on-primary: rgb(82 35 0);
    --md-sys-color-primary-container: rgb(111 56 17);
    --md-sys-color-on-primary-container: rgb(255 219 201);
    --md-sys-color-secondary: rgb(229 191 170);
    --md-sys-color-on-secondary: rgb(67 43 28);
    --md-sys-color-secondary-container: rgb(92 65 49);
    --md-sys-color-on-secondary-container: rgb(255 219 201);
    --md-sys-color-tertiary: rgb(204 201 146);
    --md-sys-color-on-tertiary: rgb(51 50 9);
    --md-sys-color-tertiary-container: rgb(74 72 30);
    --md-sys-color-on-tertiary-container: rgb(232 229 172);
    --md-sys-color-error: rgb(255 180 171);
    --md-sys-color-on-error: rgb(105 0 5);
    --md-sys-color-error-container: rgb(147 0 10);
    --md-sys-color-on-error-container: rgb(255 218 214);
    --md-sys-color-background: rgb(26 18 13);
    --md-sys-color-on-background: rgb(240 223 215);
    --md-sys-color-surface: rgb(14 21 19);
    --md-sys-color-on-surface: rgb(221 228 225);
    --md-sys-color-surface-variant: rgb(63 73 70);
    --md-sys-color-on-surface-variant: rgb(190 201 197);
    --md-sys-color-outline: rgb(137 147 144);
    --md-sys-color-outline-variant: rgb(63 73 70);
    --md-sys-color-shadow: rgb(0 0 0);
    --md-sys-color-scrim: rgb(0 0 0);
    --md-sys-color-inverse-surface: rgb(221 228 225);
    --md-sys-color-inverse-on-surface: rgb(43 50 48);
    --md-sys-color-inverse-primary: rgb(140 79 39);
    --md-sys-color-primary-fixed: rgb(255 219 201);
    --md-sys-color-on-primary-fixed: rgb(50 18 0);
    --md-sys-color-primary-fixed-dim: rgb(255 182 139);
    --md-sys-color-on-primary-fixed-variant: rgb(111 56 17);
    --md-sys-color-secondary-fixed: rgb(255 219 201);
    --md-sys-color-on-secondary-fixed: rgb(43 22 9);
    --md-sys-color-secondary-fixed-dim: rgb(229 191 170);
    --md-sys-color-on-secondary-fixed-variant: rgb(92 65 49);
    --md-sys-color-tertiary-fixed: rgb(232 229 172);
    --md-sys-color-on-tertiary-fixed: rgb(29 29 0);
    --md-sys-color-tertiary-fixed-dim: rgb(204 201 146);
    --md-sys-color-on-tertiary-fixed-variant: rgb(74 72 30);
    --md-sys-color-surface-dim: rgb(14 21 19);
    --md-sys-color-surface-bright: rgb(52 59 57);
    --md-sys-color-surface-container-lowest: rgb(9 15 14);
    --md-sys-color-surface-container-low: rgb(22 29 27);
    --md-sys-color-surface-container: rgb(26 33 31);
    --md-sys-color-surface-container-high: rgb(37 43 42);
    --md-sys-color-surface-container-highest: rgb(48 54 52);
}

/* ==========================================================================
   2. Base & Reset
   ========================================================================== */
html,
body {
    background: var(--md-sys-color-surface);
    color: var(--md-sys-color-on-surface);
    font-family: 'Outfit', sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100svh;
    overflow: hidden;
    position: relative;
}

/* Animation d'arrière-plan */
.bg-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60vw;
    height: 60vw;
    max-width: 800px;
    max-height: 800px;
    background: radial-gradient(circle, rgba(255, 182, 139, 0.08) 0%, rgba(14, 21, 19, 0) 70%);
    border-radius: 50%;
    z-index: 0;
    animation: pulse-glow 8s infinite alternate ease-in-out;
}

@keyframes pulse-glow {
    0% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
    100% { transform: translate(-50%, -50%) scale(1.2); opacity: 1; }
}

/* ==========================================================================
   3. Layout Components (Container)
   ========================================================================== */
.container {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100svh;
    text-align: center;
    padding: 2rem;
    box-sizing: border-box;
}

.content-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: fade-in-up 1s ease-out forwards;
}

@keyframes fade-in-up {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   4. UI Components (Titres, Badges)
   ========================================================================== */
.title {
    color: var(--md-sys-color-primary);
    font-family: 'Birthstone', cursive;
    font-size: clamp(6rem, 18vw, 14rem);
    margin: 0;
    line-height: 1;
}

.subtitle {
    color: var(--md-sys-color-on-surface);
    font-size: clamp(1.2rem, 4vw, 1.8rem);
    font-weight: 300;
    margin-top: -1rem; /* Adjusted for better responsive behavior */
    margin-bottom: 3rem;
    letter-spacing: -0.02em;
    opacity: 0.9;
}

/* Teaser badge (remplace le simple texte) */
.teaser-badge {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 0.75rem 1.5rem;
    border-radius: 2rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, background 0.3s ease;
}

.teaser-badge:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.06);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: var(--md-sys-color-primary);
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(255, 182, 139, 0.7);
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 182, 139, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(255, 182, 139, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 182, 139, 0); }
}

.teaser {
    color: var(--md-sys-color-primary-fixed);
    font-size: 1.1rem;
    font-weight: 400;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ==========================================================================
   5. Buttons (préservé au cas où)
   ========================================================================== */
.button-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.md-button {
    background-color: var(--md-sys-color-primary);
    color: var(--md-sys-color-on-primary);
    padding: 0.75rem 1.5rem;
    border-radius: 2rem;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.md-button:hover {
    box-shadow: 0 4px 12px rgba(255, 182, 139, 0.3);
    transform: translateY(-2px);
    filter: brightness(1.1);
}