/* ============================================================================
   🇧🇫 STADE DU 4-AOÛT — Design System
   ============================================================================ */

/* --- Fonts (Google Fonts) --- */
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@300;400;500;600;700;800&family=Archivo+Black&family=Archivo:wght@400;500;600;700;900&display=swap');

/* --- Design tokens --- */
:root {
    /* Burkina Faso couleurs officielles */
    --bf-green:       #009E49;
    --bf-green-dark:  #007A38;
    --bf-green-light: #E6F5ED;
    --bf-red:         #EF2B2D;
    --bf-red-dark:    #C8181A;
    --bf-red-light:   #FDE8E8;
    --bf-yellow:      #FCD116;
    --bf-yellow-dark: #E5B900;
    --bf-yellow-light:#FFF9DB;

    /* Neutres — palette terre */
    --sand-50:  #FAF7F2;
    --sand-100: #F2EDE4;
    --sand-200: #E4DBC8;
    --sand-300: #C9BA9D;
    --sand-400: #A48F6A;

    --ink-900: #1A1611;   /* noir chaud */
    --ink-700: #3D342A;
    --ink-500: #6B5D4D;
    --ink-300: #A89C8A;

    --white: #FFFFFF;
    --success: #16A34A;
    --warning: #F59E0B;
    --danger:  #DC2626;

    /* Élévation */
    --shadow-sm: 0 1px 2px rgba(26, 22, 17, 0.06);
    --shadow-md: 0 4px 12px rgba(26, 22, 17, 0.08);
    --shadow-lg: 0 12px 32px rgba(26, 22, 17, 0.12);
    --shadow-xl: 0 24px 64px rgba(26, 22, 17, 0.18);

    /* Radius */
    --r-sm: 6px;
    --r-md: 10px;
    --r-lg: 16px;
    --r-xl: 24px;
    --r-full: 999px;

    /* Transitions */
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);

    /* Layout */
    --container: 1200px;
}

/* --- Reset --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Manrope', -apple-system, sans-serif;
    font-size: 16px;
    line-height: 1.55;
    color: var(--ink-900);
    background: var(--sand-50);
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Texture bogolan subtile en arrière-plan */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
        radial-gradient(circle at 10% 20%, rgba(0, 158, 73, 0.03) 0, transparent 35%),
        radial-gradient(circle at 90% 80%, rgba(239, 43, 45, 0.03) 0, transparent 35%),
        radial-gradient(circle at 50% 50%, rgba(252, 209, 22, 0.02) 0, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
a { color: inherit; text-decoration: none; }
input, select, textarea { font-family: inherit; font-size: inherit; }

/* --- Typo --- */
.display {
    font-family: 'Archivo Black', sans-serif;
    letter-spacing: -0.02em;
    line-height: 1;
    text-transform: uppercase;
}

h1 { font-size: clamp(2.5rem, 6vw, 5rem); font-family: 'Archivo Black', sans-serif; line-height: 0.95; letter-spacing: -0.03em; text-transform: uppercase; }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.75rem); font-family: 'Archivo', sans-serif; font-weight: 900; line-height: 1.1; letter-spacing: -0.02em; }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); font-family: 'Archivo', sans-serif; font-weight: 700; line-height: 1.2; }
h4 { font-size: 1.1rem; font-weight: 700; }

.eyebrow {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--bf-red);
}

/* --- Layout --- */
.container {
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: 1.5rem;
    position: relative;
    z-index: 1;
}

section { padding-block: clamp(3rem, 6vw, 5rem); }

/* --- Header --- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--white);
    border-bottom: 1px solid var(--sand-200);
    backdrop-filter: blur(12px);
    background: rgba(255, 255, 255, 0.92);
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-block: 1rem;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 800;
    font-size: 1.05rem;
    letter-spacing: -0.01em;
}

.brand__logo {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--bf-green) 0%, var(--bf-green) 50%, var(--bf-red) 50%, var(--bf-red) 100%);
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.brand__logo::after {
    content: '';
    position: absolute;
    inset: 6px;
    background: var(--bf-yellow);
    border-radius: 50%;
    clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

.brand__text { line-height: 1.1; }
.brand__text small {
    display: block;
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--ink-500);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.nav {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav a {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--ink-700);
    transition: color 0.2s var(--ease);
}

.nav a:hover { color: var(--bf-red); }

@media (max-width: 768px) {
    .nav { display: none; }
}

/* --- Bouton --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1.5rem;
    border-radius: var(--r-md);
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    transition: all 0.2s var(--ease);
    cursor: pointer;
    white-space: nowrap;
    text-transform: uppercase;
    font-size: 0.85rem;
}

.btn--primary {
    background: var(--bf-red);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(239, 43, 45, 0.25);
}

.btn--primary:hover:not(:disabled) {
    background: var(--bf-red-dark);
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(239, 43, 45, 0.35);
}

.btn--secondary {
    background: var(--bf-green);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(0, 158, 73, 0.25);
}

.btn--secondary:hover:not(:disabled) {
    background: var(--bf-green-dark);
    transform: translateY(-1px);
}

.btn--outline {
    background: transparent;
    color: var(--ink-900);
    border: 2px solid var(--ink-900);
}

.btn--outline:hover:not(:disabled) {
    background: var(--ink-900);
    color: var(--white);
}

.btn--large { padding: 1.1rem 2rem; font-size: 0.95rem; }

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* --- Cards --- */
.card {
    background: var(--white);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: all 0.3s var(--ease);
}

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

/* --- HERO --- */
.hero {
    position: relative;
    padding-block: clamp(3rem, 6vw, 6rem);
    background: linear-gradient(135deg, var(--ink-900) 0%, #2A1F15 100%);
    color: var(--white);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 60%;
    height: 140%;
    background:
        radial-gradient(circle at center, var(--bf-red) 0%, transparent 60%);
    opacity: 0.18;
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 50%;
    height: 120%;
    background:
        radial-gradient(circle at center, var(--bf-green) 0%, transparent 60%);
    opacity: 0.15;
    pointer-events: none;
}

.hero__inner {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.9rem;
    background: rgba(252, 209, 22, 0.15);
    border: 1px solid var(--bf-yellow);
    color: var(--bf-yellow);
    border-radius: var(--r-full);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.6s var(--ease) 0.1s both;
}

.hero__eyebrow::before {
    content: '';
    width: 8px; height: 8px;
    background: var(--bf-yellow);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.hero h1 {
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s var(--ease) 0.2s both;
}

.hero h1 .accent-green { color: var(--bf-green); }
.hero h1 .accent-red   { color: var(--bf-red); }

.hero__lead {
    font-size: clamp(1.05rem, 1.5vw, 1.2rem);
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
    max-width: 600px;
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s var(--ease) 0.35s both;
}

.hero__cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s var(--ease) 0.5s both;
}

/* --- Match cards --- */
.matches {
    background: var(--sand-50);
}

.matches__header {
    text-align: center;
    margin-bottom: 3rem;
}

.matches__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 1.5rem;
}

.match-card {
    background: var(--white);
    border-radius: var(--r-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--sand-200);
    transition: all 0.3s var(--ease);
    position: relative;
    overflow: hidden;
}

.match-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--bf-green) 33%, var(--bf-yellow) 33%, var(--bf-yellow) 66%, var(--bf-red) 66%);
}

.match-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--sand-300);
}

.match-card__competition {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--bf-red);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.match-card__teams {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem 0;
}

.match-card__team {
    flex: 1;
    text-align: center;
}

.match-card__team-name {
    font-weight: 700;
    font-size: 1rem;
    margin-top: 0.5rem;
}

.match-card__flag {
    width: 48px;
    height: 34px;
    margin: 0 auto;
    border-radius: 4px;
    display: block;
    box-shadow: var(--shadow-sm);
}

.match-card__vs {
    font-family: 'Archivo Black', sans-serif;
    font-size: 1.25rem;
    color: var(--ink-300);
    padding: 0 0.75rem;
}

.match-card__meta {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--sand-200);
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--ink-700);
}

.match-card__meta-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.match-card__meta-row svg {
    width: 16px; height: 16px;
    color: var(--bf-red);
    flex-shrink: 0;
}

.match-card__status {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.7rem;
    background: var(--bf-green-light);
    color: var(--bf-green-dark);
    border-radius: var(--r-full);
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.match-card__status::before {
    content: '';
    width: 6px; height: 6px;
    background: var(--bf-green);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.match-card .btn { width: 100%; margin-top: 0.5rem; }

/* --- Modal --- */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(26, 22, 17, 0.65);
    backdrop-filter: blur(4px);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    animation: fadeIn 0.2s var(--ease);
}

.modal-backdrop.active { display: flex; }

.modal {
    background: var(--white);
    border-radius: var(--r-lg);
    max-width: 960px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-xl);
    animation: slideUp 0.3s var(--ease);
}

.modal__header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--sand-200);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-shrink: 0;
}

.modal__title { font-size: 1.2rem; font-weight: 800; }

.modal__close {
    width: 36px; height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s var(--ease);
    color: var(--ink-500);
}

.modal__close:hover {
    background: var(--sand-100);
    color: var(--ink-900);
}

.modal__body {
    padding: 1.5rem;
    overflow-y: auto;
    flex: 1;
}

.modal__footer {
    padding: 1.25rem 1.5rem;
    border-top: 1px solid var(--sand-200);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-shrink: 0;
    background: var(--sand-50);
}

/* --- Plan stade --- */
.stadium-plan {
    position: relative;
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
    aspect-ratio: 16 / 10;
}

.stadium-plan svg {
    width: 100%;
    height: 100%;
    display: block;
}

.stadium-gate {
    cursor: pointer;
    transition: all 0.2s var(--ease);
}

.stadium-gate__bg {
    fill: var(--sand-100);
    stroke: var(--sand-300);
    stroke-width: 1;
    transition: all 0.2s var(--ease);
}

.stadium-gate:hover .stadium-gate__bg {
    fill: var(--bf-yellow-light);
    stroke: var(--bf-yellow-dark);
    stroke-width: 2;
}

.stadium-gate--standard .stadium-gate__bg { fill: #E6F5ED; stroke: var(--bf-green); }
.stadium-gate--vip .stadium-gate__bg      { fill: var(--bf-yellow-light); stroke: var(--bf-yellow-dark); }
.stadium-gate--vvip .stadium-gate__bg     { fill: #FDE8E8; stroke: var(--bf-red); }

.stadium-gate--full .stadium-gate__bg {
    fill: var(--sand-200) !important;
    stroke: var(--sand-300) !important;
    cursor: not-allowed;
    opacity: 0.5;
}

.stadium-gate__label {
    fill: var(--ink-900);
    font-family: 'Archivo Black', sans-serif;
    font-size: 12px;
    pointer-events: none;
    text-anchor: middle;
    dominant-baseline: central;
}

.stadium-field {
    fill: #4A8F3E;
    stroke: var(--white);
    stroke-width: 2;
}

.stadium-legend {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1.5rem;
    padding: 1rem;
    background: var(--sand-50);
    border-radius: var(--r-md);
    font-size: 0.85rem;
}

.stadium-legend__item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.stadium-legend__swatch {
    width: 18px; height: 18px;
    border-radius: 4px;
    border: 2px solid;
}

.swatch-standard { background: #E6F5ED; border-color: var(--bf-green); }
.swatch-vip      { background: var(--bf-yellow-light); border-color: var(--bf-yellow-dark); }
.swatch-vvip     { background: #FDE8E8; border-color: var(--bf-red); }

/* --- Grille de sièges --- */
.seat-picker__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--sand-200);
}

.seat-picker__title h3 { margin: 0; }
.seat-picker__title small { color: var(--ink-500); font-size: 0.85rem; }

.seat-grid {
    display: grid;
    gap: 4px;
    max-height: 50vh;
    overflow-y: auto;
    padding: 0.5rem;
    background: var(--sand-50);
    border-radius: var(--r-md);
}

.seat-row {
    display: grid;
    grid-template-columns: 28px 1fr;
    gap: 6px;
    align-items: center;
}

.seat-row__label {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--ink-500);
    text-align: right;
    padding-right: 4px;
}

.seat-row__seats {
    display: flex;
    gap: 3px;
    flex-wrap: wrap;
}

.seat {
    width: 26px;
    height: 26px;
    border-radius: 5px 5px 2px 2px;
    border: 1px solid transparent;
    background: var(--sand-200);
    color: transparent;
    font-size: 0.6rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s var(--ease);
    flex-shrink: 0;
}

.seat--available {
    background: #D9EFE0;
    border-color: var(--bf-green);
    color: var(--bf-green-dark);
}

.seat--available:hover {
    background: var(--bf-green);
    color: var(--white);
    transform: scale(1.1);
}

.seat--selected {
    background: var(--bf-yellow);
    border-color: var(--bf-yellow-dark);
    color: var(--ink-900);
    transform: scale(1.05);
}

.seat--unavailable {
    background: var(--sand-200);
    border-color: var(--sand-300);
    cursor: not-allowed;
    opacity: 0.5;
}

.seat-legend {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 0.75rem;
    font-size: 0.75rem;
    flex-wrap: wrap;
}

.seat-legend__item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.seat-legend__box {
    width: 14px; height: 14px;
    border-radius: 3px;
    border: 1px solid;
}

.box-avail     { background: #D9EFE0; border-color: var(--bf-green); }
.box-selected  { background: var(--bf-yellow); border-color: var(--bf-yellow-dark); }
.box-unavail   { background: var(--sand-200); border-color: var(--sand-300); }

/* --- Sélection récap --- */
.selection-summary {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.selection-summary__count {
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--ink-900);
}

.selection-summary__price {
    font-family: 'Archivo Black', sans-serif;
    font-size: 1.4rem;
    color: var(--bf-red);
}

/* --- Formulaire de paiement --- */
.form-group {
    margin-bottom: 1rem;
}

.form-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--ink-700);
    margin-bottom: 0.4rem;
}

.form-input {
    width: 100%;
    padding: 0.75rem 0.9rem;
    border: 2px solid var(--sand-200);
    border-radius: var(--r-md);
    background: var(--white);
    font-size: 0.95rem;
    transition: all 0.2s var(--ease);
}

.form-input:focus {
    outline: none;
    border-color: var(--bf-green);
    box-shadow: 0 0 0 3px rgba(0, 158, 73, 0.12);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 500px) {
    .form-row { grid-template-columns: 1fr; }
}

.payment-methods {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.payment-method {
    padding: 0.75rem;
    border: 2px solid var(--sand-200);
    border-radius: var(--r-md);
    text-align: center;
    cursor: pointer;
    transition: all 0.2s var(--ease);
    font-weight: 700;
    font-size: 0.82rem;
}

.payment-method:hover { border-color: var(--bf-green); background: var(--bf-green-light); }

.payment-method__logo {
    width: 40px; height: 40px;
    margin: 0 auto 0.4rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Archivo Black', sans-serif;
    color: var(--white);
}

.pm-wave   { background: #1DC0E8; }
.pm-orange { background: #FF7900; }
.pm-mtn    { background: #FFCC00; color: var(--ink-900); }
.pm-moov   { background: #00A9E0; }

/* --- Toast --- */
.toast {
    position: fixed;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%) translateY(200%);
    background: var(--ink-900);
    color: var(--white);
    padding: 0.9rem 1.5rem;
    border-radius: var(--r-md);
    box-shadow: var(--shadow-lg);
    font-size: 0.9rem;
    font-weight: 600;
    z-index: 2000;
    transition: transform 0.3s var(--ease-bounce);
    max-width: 90%;
    text-align: center;
}

.toast.show { transform: translateX(-50%) translateY(0); }
.toast--success { background: var(--bf-green); }
.toast--error { background: var(--bf-red); }

/* --- Loader --- */
.loader {
    border: 3px solid var(--sand-200);
    border-top-color: var(--bf-red);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 0.8s linear infinite;
    margin: 2rem auto;
}

.skeleton {
    background: linear-gradient(90deg, var(--sand-100) 25%, var(--sand-200) 50%, var(--sand-100) 75%);
    background-size: 200% 100%;
    animation: skeleton 1.4s ease-in-out infinite;
    border-radius: var(--r-md);
}

/* --- Footer --- */
.site-footer {
    background: var(--ink-900);
    color: var(--sand-300);
    padding: 3rem 0 1.5rem;
    margin-top: 4rem;
    position: relative;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--bf-green) 33%, var(--bf-yellow) 33%, var(--bf-yellow) 66%, var(--bf-red) 66%);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

@media (max-width: 768px) {
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
}

.footer-grid h4 {
    color: var(--white);
    font-size: 0.85rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: 0.4rem; font-size: 0.88rem; }
.footer-grid a:hover { color: var(--bf-yellow); }

.site-footer__bottom {
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    font-size: 0.8rem;
    color: var(--ink-500);
}

/* --- Page confirmation --- */
.confirmation {
    text-align: center;
    padding: 3rem 1rem;
    max-width: 600px;
    margin: 0 auto;
}

.confirmation__icon {
    width: 88px;
    height: 88px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    background: var(--bf-green-light);
    color: var(--bf-green-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: bounceIn 0.6s var(--ease-bounce);
}

.confirmation__icon svg { width: 44px; height: 44px; }

.confirmation__ref {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--sand-100);
    border: 2px dashed var(--sand-300);
    border-radius: var(--r-md);
    font-family: 'Archivo Black', monospace;
    font-size: 1.1rem;
    letter-spacing: 0.05em;
    margin: 1rem 0;
    color: var(--ink-900);
}

/* --- Animations --- */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(40px) scale(0.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes skeleton {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

@keyframes bounceIn {
    0% { opacity: 0; transform: scale(0.3); }
    50% { opacity: 1; transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* --- Accessibility --- */
:focus-visible {
    outline: 2px solid var(--bf-green);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}
