/* ═══════════════════════════════════════════════════════════════════════════
   LA CONFRÉRIE DES RÉGLETTES - BLEAU 2026
   "Rien n'est vrai dans le grès, tout est permis sur le rocher"
   Thème sombre mystérieux inspiré des confréries secrètes
   ═══════════════════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Cinzel:wght@400;500;600;700;800;900&family=Crimson+Pro:ital,wght@0,400;0,600;1,400&display=swap');

/* ─────────────────────────────────────────────────────────────────────────────
   Variables - Palette Confrérie Sombre
   ───────────────────────────────────────────────────────────────────────────── */
:root {
    /* Palette sombre mystérieuse */
    --bg-dark: #0D0D0F;
    --bg-darker: #080809;
    --surface: #151518;
    --surface-light: #1C1C21;
    --surface-hover: #252529;

    /* Accent Or Ancien / Bronze - couleur de la confrérie */
    --accent: #C9A227;
    --accent-dim: #A68523;
    --accent-glow: rgba(201, 162, 39, 0.15);

    /* Accent secondaire - Rouge Sang / Bordeaux */
    --accent-blood: #8B1538;
    --accent-blood-light: #A91D45;

    /* Texte clair sur fond sombre */
    --text: #E8E4DC;
    --text-dim: #A09A8C;
    --text-muted: #6B6558;

    /* Bordures sombres avec lueur */
    --border: rgba(201, 162, 39, 0.12);
    --border-light: rgba(201, 162, 39, 0.2);

    /* Grades - palette escalade avec teintes mystérieuses */
    --grade-3: #2D8B47;
    --grade-4: #6B9B1A;
    --grade-5: #B8940A;
    --grade-5plus: #C76B12;
    --grade-6a: #A62D2D;
    --grade-6b: #8B1F1F;
    --grade-7: #7B3BA8;
    --grade-8: #4B4DC9;

    /* Spacing */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-24: 6rem;

    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Cinzel', serif;
    --font-accent: 'Crimson Pro', serif;

    /* Effects */
    --radius-sm: 4px;
    --radius: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;

    --shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.6);
    --shadow-hover: 0 20px 60px rgba(0, 0, 0, 0.7);
    --shadow-glow: 0 0 30px rgba(201, 162, 39, 0.2);

    --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

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

body {
    font-family: var(--font-sans);
    background: var(--bg-dark);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

::selection {
    background: var(--accent);
    color: var(--bg-dark);
}

::-webkit-scrollbar {
    width: 8px;
}

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

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--accent) 0%, var(--accent-dim) 100%);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--accent-dim) 0%, var(--accent-blood) 100%);
}

/* Texture de fond globale */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.03;
    pointer-events: none;
    z-index: -1;
}

/* ─────────────────────────────────────────────────────────────────────────────
   Typography
   ───────────────────────────────────────────────────────────────────────────── */
h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

h1 { font-size: clamp(3rem, 12vw, 8rem); font-weight: 800; }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); }

p { color: var(--text-dim); }

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

a:hover { color: var(--text); }

/* ─────────────────────────────────────────────────────────────────────────────
   Layout
   ───────────────────────────────────────────────────────────────────────────── */
.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--space-6);
}

section {
    padding: var(--space-24) 0;
    position: relative;
}

.section-header {
    margin-bottom: var(--space-12);
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: var(--space-3);
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--accent);
    margin-bottom: var(--space-4);
    padding: var(--space-2) var(--space-4);
    background: transparent;
    border: 1px solid var(--border);
    position: relative;
}

.section-label::before {
    content: '//';
    color: var(--accent-blood);
    margin-right: var(--space-1);
}

.section-label svg {
    width: 16px;
    height: 16px;
    opacity: 0.7;
}

.section-title {
    font-family: var(--font-display);
    color: var(--text);
    position: relative;
    display: inline-block;
    letter-spacing: 0.05em;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--accent);
    box-shadow: 0 0 10px rgba(201, 162, 39, 0.5);
}

.section-desc {
    margin-top: var(--space-6);
    max-width: 600px;
    font-family: var(--font-accent);
    font-size: 1.1rem;
    font-style: italic;
    line-height: 1.7;
}

/* ─────────────────────────────────────────────────────────────────────────────
   Navigation - Style Confrérie
   ───────────────────────────────────────────────────────────────────────────── */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: var(--space-4) 0;
    background: rgba(13, 13, 15, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transform: translateY(-100%);
    transition: transform var(--transition-slow), box-shadow var(--transition);
    box-shadow: none;
}

.nav.visible {
    transform: translateY(0);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5), 0 0 1px var(--accent);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1rem;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: var(--space-2);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
}

.nav-logo-img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--accent);
}

.nav-logo span {
    color: var(--accent);
    font-weight: 700;
}

.nav-links {
    display: flex;
    gap: var(--space-1);
    list-style: none;
}

.nav-links a {
    display: block;
    padding: var(--space-2) var(--space-4);
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-dim);
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.nav-links a:hover {
    color: var(--accent);
    background: rgba(201, 162, 39, 0.1);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text);
    padding: var(--space-2);
    cursor: pointer;
}

.nav-toggle svg {
    width: 24px;
    height: 24px;
}

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

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-dark);
        border-bottom: 1px solid var(--border);
        flex-direction: column;
        padding: var(--space-4);
        display: none;
    }

    .nav-links.open { display: flex; }
}

/* ─────────────────────────────────────────────────────────────────────────────
   Hero - Sanctuaire de la Confrérie
   ───────────────────────────────────────────────────────────────────────────── */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, var(--bg-darker) 0%, var(--bg-dark) 50%, #0A0A0B 100%);
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-image: url('https://images.unsplash.com/photo-1522163182402-834f871fd851?w=1920&q=80');
    background-size: cover;
    background-position: center 40%;
    opacity: 0.45;
    filter: saturate(0.5) brightness(0.6) sepia(0.1);
    animation: heroParallax 30s ease-in-out infinite alternate;
}

@keyframes heroParallax {
    0% { transform: scale(1) translateY(0); }
    100% { transform: scale(1.05) translateY(-2%); }
}

/* Vignette sombre - réduite pour laisser voir l'image */
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, transparent 30%, rgba(8, 8, 9, 0.7) 100%);
    pointer-events: none;
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(201, 162, 39, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(201, 162, 39, 0.05) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
    animation: gridFloat 20s ease-in-out infinite;
}

@keyframes gridFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(0.5deg); }
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: var(--space-8);
}


.hero-confrerie {
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: var(--space-6);
    animation: fadeSlideUp 0.8s ease-out 0.1s both;
    text-shadow: 0 0 30px rgba(201, 162, 39, 0.5);
}

.hero-confrerie::before,
.hero-confrerie::after {
    content: '◆';
    margin: 0 var(--space-4);
    font-size: 0.6rem;
    vertical-align: middle;
    opacity: 0.6;
}

.hero-date {
    display: inline-block;
    padding: var(--space-3) var(--space-6);
    background: transparent;
    border: 1px solid var(--accent);
    border-radius: 0;
    font-family: var(--font-accent);
    font-size: 1rem;
    font-weight: 400;
    font-style: italic;
    color: var(--accent);
    margin-bottom: var(--space-8);
    box-shadow: 0 0 20px rgba(201, 162, 39, 0.2);
    animation: fadeSlideUp 0.8s ease-out 0.2s both;
    position: relative;
}

.hero-date::before,
.hero-date::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 1px solid var(--accent);
}

.hero-date::before {
    top: -5px;
    left: -5px;
    border-right: none;
    border-bottom: none;
}

.hero-date::after {
    bottom: -5px;
    right: -5px;
    border-left: none;
    border-top: none;
}

.hero-title {
    font-family: var(--font-display);
    background: linear-gradient(135deg, var(--accent) 0%, #F4E4BA 30%, var(--accent) 60%, var(--accent-dim) 100%);
    background-size: 300% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 6s ease-in-out infinite, fadeSlideUp 0.8s ease-out 0.4s both;
    margin-bottom: var(--space-6);
    text-shadow: none;
    filter: drop-shadow(0 4px 20px rgba(201, 162, 39, 0.3));
    letter-spacing: 0.1em;
}

@keyframes shimmer {
    0%, 100% { background-position: 0% center; }
    50% { background-position: 100% center; }
}

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

.hero-subtitle {
    font-family: var(--font-accent);
    font-size: 1.4rem;
    font-style: italic;
    color: var(--text-dim);
    margin-bottom: var(--space-12);
    animation: fadeSlideUp 0.8s ease-out 0.6s both;
    letter-spacing: 0.05em;
}

/* Countdown - Compte à rebours sacré */
.countdown {
    display: flex;
    gap: var(--space-6);
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: var(--space-12);
    animation: fadeSlideUp 0.8s ease-out 0.8s both;
}

.countdown-item {
    min-width: 100px;
    padding: var(--space-6) var(--space-4);
    background: rgba(21, 21, 24, 0.8);
    border: 1px solid var(--border);
    text-align: center;
    transition: all var(--transition-bounce);
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.countdown-item::before,
.countdown-item::after {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    border: 1px solid var(--accent);
    opacity: 0.4;
}

.countdown-item::before {
    top: 5px;
    left: 5px;
    border-right: none;
    border-bottom: none;
}

.countdown-item::after {
    bottom: 5px;
    right: 5px;
    border-left: none;
    border-top: none;
}

.countdown-item:hover {
    border-color: var(--accent);
    transform: translateY(-8px);
    box-shadow: var(--shadow-glow);
}

.countdown-value {
    display: block;
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent) 0%, #F4E4BA 50%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    text-shadow: 0 0 30px rgba(201, 162, 39, 0.3);
}

.countdown-label {
    font-family: var(--font-accent);
    font-size: 0.8rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-muted);
    margin-top: var(--space-3);
}

/* Crew - Les Membres de la Confrérie */
.crew-list {
    display: flex;
    justify-content: center;
    gap: var(--space-6);
    flex-wrap: wrap;
    animation: fadeSlideUp 0.8s ease-out 1s both;
}

.crew-member {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-4);
    background: transparent;
    border: 1px solid transparent;
    transition: all var(--transition-bounce);
    cursor: default;
}

.crew-member:hover {
    transform: translateY(-6px);
}

.crew-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--bg-dark);
    box-shadow: 0 0 0 2px var(--bg-dark), 0 0 0 4px var(--accent), 0 0 20px rgba(201, 162, 39, 0.3);
    transition: all var(--transition);
}

.crew-member:hover .crew-avatar {
    transform: scale(1.1);
    box-shadow: 0 0 0 2px var(--bg-dark), 0 0 0 4px var(--accent), 0 0 40px rgba(201, 162, 39, 0.5);
}

.crew-name {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 0.8rem;
    color: var(--text);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: var(--space-8);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-2);
    color: var(--accent);
    font-family: var(--font-accent);
    font-size: 0.85rem;
    font-style: italic;
    animation: float 2.5s ease-in-out infinite, fadeSlideUp 0.8s ease-out 1.2s both;
}

.scroll-indicator svg {
    width: 24px;
    height: 24px;
    stroke: var(--accent);
    filter: drop-shadow(0 0 10px rgba(201, 162, 39, 0.5));
}

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

/* ─────────────────────────────────────────────────────────────────────────────
   Map Section - La Route Sacrée
   ───────────────────────────────────────────────────────────────────────────── */
.map-section {
    background: var(--bg-dark);
    padding: var(--space-16) 0;
    position: relative;
}

.map-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0.5;
}

.map-wrapper {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: var(--space-6);
    height: 600px;
}

@media (max-width: 1024px) {
    .map-wrapper {
        grid-template-columns: 1fr;
        height: auto;
    }
}

.map-container {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    transition: all var(--transition);
}

.map-container:hover {
    box-shadow: var(--shadow-glow);
    border-color: var(--accent);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    min-height: 400px;
    border: none;
    filter: saturate(0.3) brightness(0.8) sepia(0.3);
    transition: filter var(--transition);
}

.map-container:hover iframe {
    filter: saturate(0.4) brightness(0.9) sepia(0.2);
}

.map-overlay {
    position: absolute;
    top: var(--space-4);
    left: var(--space-4);
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.map-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-3);
    background: var(--bg-dark);
    border: 1px solid var(--border);
    font-family: var(--font-display);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    box-shadow: var(--shadow);
    color: var(--text);
}

.map-badge svg {
    width: 14px;
    height: 14px;
}

.map-badge.live {
    color: var(--accent);
    border-color: var(--accent);
    background: var(--bg-dark);
}

.map-badge.live::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    animation: pulse-dot 1.5s ease-in-out infinite;
    box-shadow: 0 0 10px var(--accent);
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(0.8); }
}

/* Trip info sidebar */
.trip-info {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.trip-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: var(--space-6);
    box-shadow: var(--shadow);
    transition: all var(--transition);
}

.trip-card:hover {
    box-shadow: var(--shadow-glow);
    border-color: var(--accent);
}

.trip-card-header {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-bottom: var(--space-4);
}

.trip-card-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid var(--accent);
    box-shadow: 0 0 15px rgba(201, 162, 39, 0.2);
}

.trip-card-icon svg {
    width: 20px;
    height: 20px;
    stroke: var(--accent);
}

.trip-card-title {
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.trip-stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-3) 0;
    border-bottom: 1px solid var(--border);
}

.trip-stat:last-child {
    border-bottom: none;
}

.trip-stat-label {
    font-size: 0.85rem;
    color: var(--text-dim);
}

.trip-stat-value {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 0.85rem;
    color: var(--accent);
}

.trip-stops {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.trip-stop {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3);
    background: var(--surface-light);
    border-left: 2px solid var(--border);
    font-size: 0.85rem;
    transition: all var(--transition);
}

.trip-stop:hover {
    border-left-color: var(--accent);
    background: var(--surface-hover);
}

.trip-stop-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 8px currentColor;
}

.trip-stop-dot.start { background: var(--accent); box-shadow: 0 0 8px var(--accent); }
.trip-stop-dot.end { background: var(--accent-blood); box-shadow: 0 0 8px var(--accent-blood); }
.trip-stop-dot.pause { background: var(--text-muted); box-shadow: none; }

/* ─────────────────────────────────────────────────────────────────────────────
   Weather Section
   ───────────────────────────────────────────────────────────────────────────── */
.weather-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-4);
}

@media (max-width: 768px) {
    .weather-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.weather-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: var(--space-6);
    text-align: center;
    transition: all var(--transition-bounce);
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.weather-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent);
    opacity: 0;
    transition: opacity var(--transition);
}

.weather-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-glow);
    border-color: var(--accent);
}

.weather-card:hover::before {
    opacity: 1;
}

.weather-date {
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--space-4);
}

.weather-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto var(--space-4);
}

.weather-icon svg {
    width: 100%;
    height: 100%;
}

.weather-temp {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent) 0%, #F4E4BA 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.weather-desc {
    font-family: var(--font-accent);
    font-size: 0.9rem;
    font-style: italic;
    color: var(--text-dim);
    margin-top: var(--space-2);
}

.weather-icon svg {
    stroke: var(--accent);
    filter: drop-shadow(0 0 10px rgba(201, 162, 39, 0.4));
    transition: transform var(--transition);
}

.weather-card:hover .weather-icon svg {
    transform: scale(1.1);
}

.weather-status {
    margin-top: var(--space-8);
    padding: var(--space-4) var(--space-6);
    background: transparent;
    border: 1px solid rgba(45, 139, 71, 0.4);
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.weather-status svg {
    width: 24px;
    height: 24px;
    stroke: #2D8B47;
    flex-shrink: 0;
}

.weather-status p {
    color: #4ADE80;
    font-family: var(--font-accent);
    font-style: italic;
}

/* ─────────────────────────────────────────────────────────────────────────────
   QG Section
   ───────────────────────────────────────────────────────────────────────────── */
.qg-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: var(--space-6);
}

@media (max-width: 900px) {
    .qg-grid {
        grid-template-columns: 1fr;
    }
}

.qg-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 140px);
    gap: var(--space-3);
}

.qg-photo {
    background: var(--surface-light);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
    transition: all var(--transition);
    background-size: cover;
    background-position: center;
    cursor: pointer;
    filter: brightness(0.9) saturate(0.8);
}

.qg-photo:first-child {
    grid-column: span 2;
    grid-row: span 2;
}

.qg-photo:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-glow);
    z-index: 1;
    filter: brightness(1) saturate(1);
    border-color: var(--accent);
}

.qg-photo svg {
    display: none;
}

.qg-details {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.qg-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: var(--space-6);
    box-shadow: var(--shadow);
    transition: all var(--transition);
}

.qg-card:hover {
    box-shadow: var(--shadow-glow);
    border-color: var(--accent);
}

.qg-card h3 {
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--space-4);
    display: flex;
    align-items: center;
    gap: var(--space-3);
    color: var(--text);
}

.qg-card h3 svg {
    width: 18px;
    height: 18px;
    stroke: var(--accent);
}

.qg-info-row {
    display: flex;
    justify-content: space-between;
    padding: var(--space-3) 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.85rem;
}

.qg-info-row:last-child {
    border-bottom: none;
}

.qg-info-label {
    color: var(--text-dim);
}

.qg-info-value {
    font-weight: 500;
    color: var(--accent);
}

.qg-rooms {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3);
}

.qg-room {
    padding: var(--space-4);
    background: var(--surface-light);
    border-radius: var(--radius-sm);
    text-align: center;
}

.qg-room-title {
    font-size: 0.8rem;
    color: var(--text-dim);
    margin-bottom: var(--space-2);
}

.qg-room-occupants {
    font-weight: 600;
    font-size: 0.9rem;
}

/* Airbnb Card Styles - Style Confrérie */
.qg-card-title {
    background: linear-gradient(135deg, var(--accent-blood) 0%, #5C0F25 100%);
    color: var(--text);
    border: 1px solid var(--accent-blood);
}

.qg-card-title:hover {
    background: linear-gradient(135deg, var(--accent-blood-light) 0%, var(--accent-blood) 100%);
    box-shadow: 0 0 30px rgba(139, 21, 56, 0.3);
}

.qg-airbnb-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.3);
    padding: 0.4rem 0.8rem;
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-3);
}

.qg-airbnb-badge svg {
    fill: var(--accent);
}

.qg-title-name {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: var(--space-3);
    line-height: 1.4;
    letter-spacing: 0.02em;
}

.qg-title-desc {
    font-family: var(--font-accent);
    font-size: 0.9rem;
    font-style: italic;
    opacity: 0.85;
    line-height: 1.6;
    margin-bottom: var(--space-4);
}

.qg-airbnb-link {
    display: inline-flex;
    align-items: center;
    background: var(--accent);
    color: var(--bg-dark);
    padding: 0.6rem 1.2rem;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-decoration: none;
    transition: all var(--transition);
}

.qg-airbnb-link:hover {
    background: #F4E4BA;
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(201, 162, 39, 0.4);
}

/* ─────────────────────────────────────────────────────────────────────────────
   Repas Section
   ───────────────────────────────────────────────────────────────────────────── */
.repas-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-4);
}

@media (max-width: 900px) {
    .repas-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

.repas-day {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all var(--transition);
}

.repas-day:hover {
    box-shadow: var(--shadow-glow);
    border-color: var(--accent);
}

.repas-day-header {
    padding: var(--space-4);
    background: linear-gradient(135deg, var(--accent-blood) 0%, #5C0F25 100%);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text);
}

.repas-day-content {
    padding: var(--space-4);
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.repas-meal {
    padding: var(--space-4);
    background: var(--surface-light);
    border-left: 2px solid var(--accent);
    transition: all var(--transition);
}

.repas-meal:hover {
    background: var(--surface-hover);
    border-left-color: var(--accent);
    box-shadow: inset 0 0 20px rgba(201, 162, 39, 0.05);
}

.repas-meal-type {
    font-family: var(--font-display);
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent);
    margin-bottom: var(--space-1);
}

.repas-meal-name {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: var(--space-1);
    color: var(--text);
}

.repas-meal-chef {
    font-family: var(--font-accent);
    font-size: 0.8rem;
    font-style: italic;
    color: var(--text-dim);
}

.repas-snacks {
    border-left-color: var(--accent);
    background: rgba(201, 162, 39, 0.05);
}

.repas-snacks .repas-meal-type {
    color: var(--accent);
}

.repas-snacks .repas-meal-name {
    font-size: 0.85rem;
}

/* Courses */
.courses-container {
    margin-top: var(--space-12);
}

.courses-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-6);
}

.courses-progress {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.courses-progress-bar {
    width: 200px;
    height: 8px;
    background: var(--surface-light);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
}

.courses-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent) 0%, var(--accent-dim) 100%);
    border-radius: 4px;
    transition: width var(--transition-slow);
    box-shadow: 0 0 10px rgba(217, 119, 6, 0.4);
}

.courses-progress-text {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--accent);
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: var(--space-3);
}

.course-item {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3) var(--space-4);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition);
    box-shadow: var(--shadow);
}

.course-item:hover {
    border-color: var(--accent);
    transform: translateX(4px);
    box-shadow: var(--shadow-glow);
}

.course-item.checked {
    opacity: 0.5;
    background: var(--surface-light);
}

.course-item.checked .course-text {
    text-decoration: line-through;
    color: var(--text-muted);
}

.course-checkbox {
    width: 20px;
    height: 20px;
    border: 2px solid var(--text-muted);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all var(--transition-bounce);
}

.course-item:hover .course-checkbox {
    border-color: var(--accent);
}

.course-item.checked .course-checkbox {
    background: var(--accent);
    border-color: var(--accent);
    transform: scale(1.1);
    box-shadow: 0 0 10px rgba(201, 162, 39, 0.3);
}

.course-checkbox svg {
    width: 14px;
    height: 14px;
    stroke: white;
    stroke-width: 3;
    opacity: 0;
    transition: opacity var(--transition);
}

.course-item.checked .course-checkbox svg {
    opacity: 1;
}

.course-text {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text);
}

/* ─────────────────────────────────────────────────────────────────────────────
   Blocs Section - L'Arène Sacrée
   ───────────────────────────────────────────────────────────────────────────── */
.blocs-section {
    background: var(--bg-darker);
    position: relative;
}

.blocs-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('https://images.unsplash.com/photo-1522163182402-834f871fd851?w=1920&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    opacity: 0.02;
    filter: saturate(0);
    pointer-events: none;
}

.blocs-progress {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: var(--space-8);
    margin-bottom: var(--space-8);
    display: flex;
    align-items: center;
    gap: var(--space-8);
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.blocs-progress::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--accent) 0%, var(--accent-blood) 100%);
}

@media (max-width: 768px) {
    .blocs-progress {
        flex-direction: column;
        text-align: center;
    }
}

.blocs-progress-ring {
    position: relative;
    width: 120px;
    height: 120px;
    flex-shrink: 0;
}

.blocs-progress-ring svg {
    transform: rotate(-90deg);
}

.blocs-progress-ring circle {
    fill: none;
    stroke-width: 8;
}

.blocs-progress-ring .bg {
    stroke: var(--surface-light);
}

.blocs-progress-ring .progress {
    stroke: url(#progressGradient);
    stroke-linecap: round;
    transition: stroke-dashoffset 0.8s ease-out;
    filter: drop-shadow(0 0 6px rgba(217, 119, 6, 0.4));
}

.blocs-progress-value {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 700;
}

.blocs-progress-info h3 {
    margin-bottom: var(--space-2);
}

.blocs-progress-info p {
    margin-bottom: var(--space-4);
}

.blocs-stats {
    display: flex;
    gap: var(--space-6);
}

.bloc-stat {
    text-align: center;
}

.bloc-stat-value {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
}

.bloc-stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Circuit Card - Épreuve Sacrée */
.circuit-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: var(--space-6);
    box-shadow: var(--shadow);
}

.circuit-header-bar {
    padding: var(--space-4) var(--space-6);
    display: flex;
    align-items: center;
    gap: var(--space-4);
    background: linear-gradient(135deg, var(--accent-blood) 0%, #5C0F25 100%);
    color: var(--text);
    border-radius: var(--radius) var(--radius) 0 0;
}

.circuit-badge {
    padding: var(--space-2) var(--space-4);
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
    background: var(--bg-dark);
    border: 1px solid var(--accent);
    white-space: nowrap;
}

.circuit-title {
    flex: 1;
}

.circuit-title h3 {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.2rem;
    color: var(--text);
    letter-spacing: 0.05em;
}

.circuit-title span {
    font-family: var(--font-accent);
    font-size: 0.85rem;
    font-style: italic;
    opacity: 0.8;
}

.circuit-title a {
    color: var(--accent);
    text-decoration: none;
}

.circuit-title a:hover {
    text-decoration: underline;
}

.circuit-controls {
    display: flex;
    gap: var(--space-2);
}

.btn-circuit {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(201, 162, 39, 0.3);
    cursor: pointer;
    transition: all var(--transition);
    color: var(--text);
}

.btn-circuit:hover {
    background: rgba(0,0,0,0.5);
    border-color: var(--accent);
}

.btn-circuit svg {
    stroke: var(--accent);
}

.btn-circuit .chevron {
    transition: transform var(--transition);
}

.circuit-card.collapsed .btn-circuit .chevron {
    transform: rotate(-90deg);
}

.circuit-body {
    padding: var(--space-4);
    transition: all 0.3s ease;
    border-radius: 0 0 var(--radius) var(--radius);
}

.circuit-card.collapsed .circuit-body {
    display: none;
}

.circuit-card .blocs-progress {
    margin-bottom: var(--space-4);
}

@media (max-width: 600px) {
    .circuit-header-bar {
        flex-wrap: wrap;
        gap: var(--space-3);
    }
    .circuit-title {
        order: 3;
        width: 100%;
    }
    .circuit-controls {
        margin-left: auto;
    }
}

/* Secteurs filter (hidden for single circuit) */
.secteurs-filter {
    display: flex;
    gap: var(--space-2);
    flex-wrap: wrap;
    margin-bottom: var(--space-6);
}

.secteur-btn {
    padding: var(--space-2) var(--space-5);
    background: white;
    border: 2px solid var(--border);
    border-radius: 100px;
    color: var(--text-dim);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-bounce);
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.secteur-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.secteur-btn.active {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dim) 100%);
    border-color: var(--accent);
    color: white;
    box-shadow: 0 4px 15px rgba(217, 119, 6, 0.35);
    transform: translateY(-2px);
}

/* Blocs grid */
.blocs-grid {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.bloc-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all var(--transition);
    box-shadow: var(--shadow);
    position: relative;
}

.bloc-card:hover {
    box-shadow: var(--shadow-glow);
    border-color: var(--accent);
}

.bloc-card.bonus {
    background: linear-gradient(135deg, rgba(201, 162, 39, 0.1) 0%, rgba(201, 162, 39, 0.05) 100%);
    border-color: rgba(201, 162, 39, 0.3);
}

.bloc-card.completed {
    border-color: #2D8B47;
    background: linear-gradient(135deg, rgba(45, 139, 71, 0.1) 0%, rgba(45, 139, 71, 0.05) 100%);
}

.bloc-card.completed .bloc-valid-count {
    background: #2D8B47;
    color: var(--text);
}

.bloc-header {
    padding: var(--space-3) var(--space-4);
    display: flex;
    align-items: center;
    gap: var(--space-3);
    background: var(--surface-light);
    cursor: pointer;
    transition: background var(--transition);
    user-select: none;
}

.bloc-header:hover {
    background: var(--surface-hover);
}

.bloc-name-preview {
    flex: 1;
    font-weight: 500;
    font-size: 0.85rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bloc-valid-count {
    font-family: var(--font-display);
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.2rem 0.5rem;
    background: var(--border);
    color: var(--text-dim);
}

.bloc-toggle-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    transition: transform var(--transition);
}

.bloc-toggle-icon svg {
    width: 16px;
    height: 16px;
    stroke: var(--text-muted);
    transform: rotate(90deg);
}

.bloc-card.expanded .bloc-toggle-icon svg {
    transform: rotate(-90deg);
}

.bloc-num {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-blood);
    color: var(--text);
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 700;
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 0 10px rgba(139, 21, 56, 0.4);
}

.bloc-grade {
    padding: var(--space-1) var(--space-4);
    border-radius: var(--radius-sm);
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 700;
    color: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    transition: transform var(--transition);
}

.bloc-card:hover .bloc-grade {
    transform: scale(1.05);
}

.bloc-body {
    padding: 0 var(--space-4);
    position: relative;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.bloc-card.expanded .bloc-body {
    padding: var(--space-4);
    max-height: 500px;
    border-top: 1px solid var(--border);
}

.bloc-name {
    font-size: 1.1rem;
    margin-bottom: var(--space-1);
}

.bloc-style {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: var(--space-3);
    font-style: italic;
}

.bloc-rating {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    margin-bottom: var(--space-4);
    padding: var(--space-2) 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.bloc-rating-label {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.bloc-stars {
    display: flex;
    gap: 2px;
}

.bloc-star {
    cursor: pointer;
    transition: transform var(--transition);
}

.bloc-star:hover {
    transform: scale(1.2);
}

.bloc-star svg {
    width: 18px;
    height: 18px;
    fill: var(--border);
    transition: fill var(--transition);
}

.bloc-star:hover svg,
.bloc-star.filled svg {
    fill: #fbbf24;
}

.bloc-stars:hover .bloc-star svg {
    fill: #fbbf24;
}

.bloc-stars:hover .bloc-star:hover ~ .bloc-star svg {
    fill: var(--border);
}

.bloc-validations {
    display: flex;
    gap: var(--space-2);
    flex-wrap: wrap;
}

.validation-btn {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-3);
    background: transparent;
    border: 1px solid;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition);
}

.validation-btn:hover {
    transform: scale(1.02);
}

.validation-btn.validated {
    color: white !important;
}

.validation-btn svg {
    width: 14px;
    height: 14px;
}

/* ─────────────────────────────────────────────────────────────────────────────
   Échauffement Section
   ───────────────────────────────────────────────────────────────────────────── */
.echauffement-container {
    max-width: 800px;
    margin: 0 auto;
}

.timer-container {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: var(--space-12);
    text-align: center;
    margin-bottom: var(--space-6);
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.timer-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.timer-display {
    font-family: var(--font-display);
    font-size: clamp(4rem, 15vw, 6rem);
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent) 0%, #F4E4BA 50%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: var(--space-4);
    filter: drop-shadow(0 0 30px rgba(201, 162, 39, 0.3));
}

.timer-exercise {
    font-size: 1.25rem;
    color: var(--text);
    margin-bottom: var(--space-8);
}

.timer-controls {
    display: flex;
    gap: var(--space-3);
    justify-content: center;
    flex-wrap: wrap;
}

.timer-btn {
    padding: var(--space-3) var(--space-6);
    border: none;
    border-radius: var(--radius);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.timer-btn svg {
    width: 18px;
    height: 18px;
}

.timer-btn.primary {
    background: var(--accent);
    color: var(--bg-dark);
    box-shadow: 0 0 20px rgba(201, 162, 39, 0.3);
}

.timer-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(201, 162, 39, 0.5);
    background: #F4E4BA;
}

.timer-btn.secondary {
    background: var(--surface-light);
    color: var(--text);
    border: 1px solid var(--border);
}

.timer-btn.secondary:hover {
    background: var(--surface-hover);
    transform: translateY(-2px);
    border-color: var(--accent);
}

.exercices-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.exercice-item {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    padding: var(--space-4);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all var(--transition);
    box-shadow: var(--shadow);
}

.exercice-item:hover {
    border-color: var(--accent);
    transform: translateX(8px);
    box-shadow: var(--shadow-glow);
}

.exercice-item.active {
    border-color: var(--accent);
    background: linear-gradient(90deg, rgba(201, 162, 39, 0.1) 0%, var(--surface) 100%);
    border-left: 2px solid var(--accent);
}

.exercice-item.done {
    opacity: 0.6;
    background: var(--surface-light);
}

.exercice-number {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface-light);
    border-radius: 50%;
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 600;
    flex-shrink: 0;
    transition: all var(--transition);
}

.exercice-item.active .exercice-number {
    background: var(--accent);
    color: var(--bg-dark);
    box-shadow: 0 0 15px rgba(201, 162, 39, 0.4);
}

.exercice-item.done .exercice-number {
    background: #2D8B47;
    color: var(--text);
}

.exercice-item.done .exercice-number::after {
    content: '✓';
}

.exercice-info {
    flex: 1;
}

.exercice-name {
    font-weight: 600;
    font-size: 0.95rem;
}

.exercice-desc {
    font-size: 0.85rem;
    color: var(--text-dim);
}

.exercice-duration {
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--text-dim);
}

/* ─────────────────────────────────────────────────────────────────────────────
   Dépenses Section
   ───────────────────────────────────────────────────────────────────────────── */
.depenses-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-6);
}

@media (max-width: 768px) {
    .depenses-grid {
        grid-template-columns: 1fr;
    }
}

.depense-form {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: var(--space-6);
    box-shadow: var(--shadow);
}

.depense-form h3 {
    font-family: var(--font-display);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--space-6);
}

.form-group {
    margin-bottom: var(--space-4);
}

.form-group label {
    display: block;
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-dim);
    margin-bottom: var(--space-2);
}

.form-group input,
.form-group select {
    width: 100%;
    padding: var(--space-3) var(--space-4);
    background: var(--surface-light);
    border: 1px solid var(--border);
    color: var(--text);
    font-size: 0.9rem;
    transition: all var(--transition);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 15px rgba(201, 162, 39, 0.15);
    background: var(--surface);
}

.form-group input::placeholder {
    color: var(--text-muted);
}

.form-group select {
    cursor: pointer;
}

.form-group select option {
    background: var(--surface);
    color: var(--text);
}

.btn-submit {
    width: 100%;
    padding: var(--space-4);
    background: var(--accent);
    border: none;
    color: var(--bg-dark);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    cursor: pointer;
    transition: all var(--transition);
    box-shadow: 0 0 20px rgba(201, 162, 39, 0.3);
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(201, 162, 39, 0.5);
    background: #F4E4BA;
}

.participants-checkboxes {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
}

.participant-label {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-3);
    background: var(--surface-light);
    border: 1px solid var(--border);
    cursor: pointer;
    transition: all var(--transition);
    font-size: 0.8rem;
    font-weight: 500;
}

.participant-label:hover {
    border-color: var(--accent);
}

.participant-label:has(input:checked) {
    background: var(--accent-glow);
    border-color: var(--accent);
    box-shadow: 0 0 10px rgba(201, 162, 39, 0.2);
}

.participant-checkbox {
    width: 14px;
    height: 14px;
    accent-color: var(--accent);
}

.depenses-list-container {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: var(--space-6);
    box-shadow: var(--shadow);
}

.depenses-list-container h3 {
    font-family: var(--font-display);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--space-4);
}

.depenses-list {
    max-height: 300px;
    overflow-y: auto;
}

.depense-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-4);
    background: var(--surface-light);
    margin-bottom: var(--space-2);
    border-left: 2px solid var(--accent);
    transition: all var(--transition);
}

.depense-item:hover {
    background: var(--surface-hover);
    transform: translateX(4px);
    border-left-color: var(--accent);
}

.depense-info {
    flex: 1;
}

.depense-desc {
    font-weight: 500;
    font-size: 0.9rem;
}

.depense-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.depense-amount {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.1rem;
}

.depense-delete {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: var(--space-2);
    margin-left: var(--space-2);
    opacity: 0.5;
    transition: opacity var(--transition);
}

.depense-delete:hover {
    opacity: 1;
    color: #ef4444;
}

.depense-delete svg {
    width: 16px;
    height: 16px;
}

/* Dettes */
.dettes-container {
    margin-top: var(--space-8);
}

.dettes-container h3 {
    margin-bottom: var(--space-4);
}

.dette-item {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-4);
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    margin-bottom: var(--space-2);
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    transition: all var(--transition);
}

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

.dette-from,
.dette-to {
    font-weight: 600;
}

.dette-arrow {
    color: var(--accent);
}

.dette-arrow svg {
    width: 20px;
    height: 20px;
}

.dette-amount {
    margin-left: auto;
    font-family: var(--font-display);
    font-weight: 700;
    color: #ef4444;
}

.dettes-empty {
    padding: var(--space-6);
    text-align: center;
    color: var(--text-dim);
}

.dettes-empty svg {
    width: 48px;
    height: 48px;
    stroke: var(--accent);
    margin-bottom: var(--space-3);
}

/* ─────────────────────────────────────────────────────────────────────────────
   Galerie Section
   ───────────────────────────────────────────────────────────────────────────── */
.galerie-section {
    background: linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-darker) 100%);
}

.galerie-placeholder {
    padding: var(--space-16);
    text-align: center;
    border: 1px dashed var(--border);
    border-radius: var(--radius);
    background: transparent;
    transition: all var(--transition);
}

.galerie-placeholder:hover {
    border-color: var(--accent);
    background: rgba(201, 162, 39, 0.02);
}

.galerie-placeholder svg {
    width: 64px;
    height: 64px;
    stroke: var(--accent);
    margin-bottom: var(--space-4);
    opacity: 0.4;
}

.galerie-placeholder h3 {
    font-family: var(--font-accent);
    font-style: italic;
    color: var(--text-dim);
    font-weight: 400;
}

.galerie-hint {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: var(--space-2);
}

.galerie-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    margin-top: var(--space-6);
    padding: var(--space-3) var(--space-6);
    background: var(--accent);
    color: var(--bg-dark);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-decoration: none;
    transition: all var(--transition);
}

.galerie-link:hover {
    background: #F4E4BA;
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(201, 162, 39, 0.4);
}

.galerie-link svg {
    stroke: var(--bg-dark);
}

/* Container pour l'embed Google Photos */
.galerie-embed {
    width: 100%;
    height: 450px;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--surface);
}

.galerie-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-4);
}

@media (max-width: 768px) {
    .galerie-embed {
        height: 300px;
    }
}

/* ─────────────────────────────────────────────────────────────────────────────
   Checklist Section
   ───────────────────────────────────────────────────────────────────────────── */
.checklist-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-8);
    flex-wrap: wrap;
    gap: var(--space-4);
}

.checklist-progress {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

.checklist-progress-ring {
    position: relative;
    width: 60px;
    height: 60px;
}

.checklist-progress-ring svg {
    transform: rotate(-90deg);
}

.checklist-progress-ring circle {
    fill: none;
    stroke-width: 6;
}

.checklist-progress-ring .bg {
    stroke: var(--surface);
}

.checklist-progress-ring .progress {
    stroke: var(--accent);
    stroke-linecap: round;
}

.checklist-progress-value {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
}

.checklist-categories {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--space-6);
}

.checklist-category {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all var(--transition);
}

.checklist-category:hover {
    box-shadow: var(--shadow-glow);
    border-color: var(--accent);
}

.checklist-category-header {
    padding: var(--space-4);
    background: var(--surface-light);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: flex;
    align-items: center;
    gap: var(--space-3);
    border-bottom: 1px solid var(--border);
}

.checklist-category-header svg {
    width: 18px;
    height: 18px;
    stroke: var(--accent);
}

.checklist-items {
    padding: var(--space-4);
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.checklist-item {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition);
}

.checklist-item:hover {
    background: var(--surface-light);
    transform: translateX(4px);
}

.checklist-item.checked {
    opacity: 0.6;
}

.checklist-item.checked .checklist-text {
    text-decoration: line-through;
    color: var(--text-muted);
}

.checklist-checkbox {
    width: 22px;
    height: 22px;
    border: 2px solid var(--text-muted);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all var(--transition-bounce);
}

.checklist-item:hover .checklist-checkbox {
    border-color: var(--accent);
}

.checklist-item.checked .checklist-checkbox {
    background: var(--accent);
    border-color: var(--accent);
    transform: scale(1.1);
    box-shadow: 0 0 10px rgba(201, 162, 39, 0.3);
}

.checklist-checkbox svg {
    width: 14px;
    height: 14px;
    stroke: white;
    stroke-width: 3;
    opacity: 0;
}

.checklist-item.checked .checklist-checkbox svg {
    opacity: 1;
}

.checklist-text {
    font-size: 0.9rem;
    font-weight: 500;
}

/* ─────────────────────────────────────────────────────────────────────────────
   Footer - Le Sanctuaire
   ───────────────────────────────────────────────────────────────────────────── */
footer {
    padding: var(--space-16) 0;
    background: var(--bg-darker);
    border-top: 1px solid var(--border);
    text-align: center;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.footer-logo {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: var(--space-6);
    border: 3px solid var(--accent);
    box-shadow: 0 0 40px rgba(201, 162, 39, 0.3);
}

.footer-crew {
    display: flex;
    justify-content: center;
    gap: var(--space-6);
    margin-bottom: var(--space-8);
}

.footer-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1rem;
    color: var(--bg-dark);
    box-shadow: 0 0 0 2px var(--bg-dark), 0 0 0 3px var(--accent), 0 0 15px rgba(201, 162, 39, 0.3);
    transition: all var(--transition-bounce);
}

.footer-avatar:hover {
    transform: translateY(-6px) scale(1.1);
    box-shadow: 0 0 0 2px var(--bg-dark), 0 0 0 3px var(--accent), 0 0 30px rgba(201, 162, 39, 0.5);
}

.footer-text {
    font-family: var(--font-display);
    color: var(--text-dim);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.footer-text span {
    background: linear-gradient(135deg, var(--accent) 0%, #F4E4BA 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

/* ─────────────────────────────────────────────────────────────────────────────
   Animations
   ───────────────────────────────────────────────────────────────────────────── */
.animate-in {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.animate-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger */
.stagger > * {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.stagger.visible > *:nth-child(1) { transition-delay: 0.05s; }
.stagger.visible > *:nth-child(2) { transition-delay: 0.1s; }
.stagger.visible > *:nth-child(3) { transition-delay: 0.15s; }
.stagger.visible > *:nth-child(4) { transition-delay: 0.2s; }
.stagger.visible > *:nth-child(5) { transition-delay: 0.25s; }
.stagger.visible > *:nth-child(6) { transition-delay: 0.3s; }
.stagger.visible > *:nth-child(7) { transition-delay: 0.35s; }
.stagger.visible > *:nth-child(8) { transition-delay: 0.4s; }

.stagger.visible > * {
    opacity: 1;
    transform: translateY(0);
}

/* Scale Animation */
@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Slide from left */
@keyframes slideFromLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Pulse glow for accent elements */
@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(217, 119, 6, 0.3);
    }
    50% {
        box-shadow: 0 0 40px rgba(217, 119, 6, 0.5);
    }
}

/* Section label animation */
.section-label {
    animation: slideFromLeft 0.6s ease-out;
}

/* ─────────────────────────────────────────────────────────────────────────────
   Gamification - Leaderboard, Chutes, Achievements
   ───────────────────────────────────────────────────────────────────────────── */
.gamification-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4);
    margin-bottom: var(--space-6);
}

@media (max-width: 768px) {
    .gamification-container {
        grid-template-columns: 1fr;
    }
}

.gamification-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: var(--space-4);
    box-shadow: var(--shadow);
}

.gamification-title {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: var(--space-4);
    color: var(--accent);
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
}

.gamification-title .title-icon {
    width: 20px;
    height: 20px;
}

/* Leaderboard */
.leaderboard-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.leaderboard-item {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3);
    background: var(--surface-light);
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}

.leaderboard-item.leader {
    background: linear-gradient(135deg, rgba(201, 162, 39, 0.2) 0%, rgba(201, 162, 39, 0.1) 100%);
    border: 1px solid var(--accent);
}

.leaderboard-item:hover {
    transform: translateX(4px);
}

.leaderboard-rank {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.2rem;
    width: 30px;
    text-align: center;
}

.leaderboard-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--bg-dark);
    font-size: 0.9rem;
}

.leaderboard-info {
    flex: 1;
    min-width: 0;
}

.leaderboard-name {
    font-weight: 600;
    font-size: 0.9rem;
}

.leaderboard-titre {
    font-size: 0.7rem;
    color: var(--text-dim);
    font-style: italic;
    display: flex;
    align-items: center;
    gap: 4px;
}

.titre-icon svg {
    width: 12px;
    height: 12px;
    stroke: var(--accent);
}

.rank-crown svg {
    width: 24px;
    height: 24px;
    fill: var(--accent);
}

.stat-icon svg {
    width: 12px;
    height: 12px;
    vertical-align: middle;
}

.leaderboard-validations .stat-icon svg {
    stroke: #2D8B47;
}

.leaderboard-chutes .stat-icon svg {
    stroke: var(--text-muted);
}

.badge-icon svg {
    width: 16px;
    height: 16px;
    stroke: var(--accent);
}

.chute-icon svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    vertical-align: middle;
}

.leaderboard-stats {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    font-size: 0.8rem;
}

.leaderboard-validations {
    color: #2D8B47;
    font-weight: 600;
}

.leaderboard-chutes {
    color: var(--text-muted);
    font-size: 0.7rem;
}

.leaderboard-badges {
    display: flex;
    gap: 2px;
    font-size: 0.9rem;
}

.more-badges {
    font-size: 0.65rem;
    color: var(--text-muted);
    background: var(--surface);
    padding: 2px 4px;
    border-radius: 4px;
}

/* Chutes */
.chutes-desc {
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-dim);
    margin-bottom: var(--space-4);
}

.chutes-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-2);
}

.chute-btn {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3);
    background: var(--surface-light);
    border: 2px solid;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all var(--transition);
    font-family: inherit;
}

.chute-btn:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow);
}

.chute-btn:active {
    transform: scale(0.98);
}

.chute-btn.chute-animation {
    animation: chuteShake 0.3s ease;
}

@keyframes chuteShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px) rotate(-2deg); }
    75% { transform: translateX(5px) rotate(2deg); }
}

.chute-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--bg-dark);
    font-size: 0.8rem;
}

.chute-name {
    flex: 1;
    font-weight: 500;
    font-size: 0.85rem;
    color: var(--text);
    text-align: left;
}

.chute-count {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-dim);
}

.chutes-reset-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    width: 100%;
    margin-top: var(--space-4);
    padding: var(--space-2) var(--space-4);
    background: transparent;
    border: 1px dashed var(--text-muted);
    border-radius: var(--radius);
    color: var(--text-muted);
    font-family: inherit;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all var(--transition);
}

.chutes-reset-btn svg {
    width: 14px;
    height: 14px;
}

.chutes-reset-btn:hover {
    border-color: var(--danger);
    color: var(--danger);
    background: rgba(231, 76, 60, 0.1);
}

/* Mode Duel */
.duel-card {
    grid-column: 1 / -1;
}

.duel-desc {
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-dim);
    margin-bottom: var(--space-3);
}

.duel-selectors {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-3);
    margin-bottom: var(--space-4);
}

.duel-select {
    padding: var(--space-2) var(--space-3);
    background: var(--surface-light);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-family: inherit;
    font-size: 0.85rem;
    cursor: pointer;
    min-width: 120px;
}

.duel-select:focus {
    outline: none;
    border-color: var(--accent);
}

.duel-vs {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--accent);
    text-shadow: 0 0 10px rgba(201, 162, 39, 0.5);
}

.duel-result {
    min-height: 100px;
}

.duel-hint {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.8rem;
    padding: var(--space-4);
}

.duel-battle {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: var(--space-3);
    align-items: center;
}

.duel-fighter {
    position: relative;
    text-align: center;
    padding: var(--space-3);
    background: var(--surface-light);
    border-radius: var(--radius);
    border: 2px solid var(--border);
    transition: all var(--transition);
}

.duel-fighter.winner {
    border-color: var(--accent);
    background: rgba(201, 162, 39, 0.1);
}

.duel-fighter.loser {
    opacity: 0.6;
}

.fighter-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--bg-dark);
    margin: 0 auto var(--space-2);
}

.fighter-name {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: var(--space-2);
}

.fighter-stats {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
}

.stat-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    padding: var(--space-1) var(--space-2);
    background: var(--surface);
    border-radius: 4px;
}

.stat-row.score {
    background: var(--accent);
    color: var(--bg-dark);
    font-weight: 600;
}

.stat-label {
    color: var(--text-muted);
}

.stat-value {
    font-weight: 600;
}

.stat-value.better {
    color: #2ecc71;
}

.winner-crown {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    animation: crownBounce 0.5s ease infinite alternate;
}

.winner-crown svg {
    width: 30px;
    height: 30px;
    fill: var(--accent);
    filter: drop-shadow(0 2px 4px rgba(201, 162, 39, 0.5));
}

@keyframes crownBounce {
    from { transform: translateX(-50%) translateY(0); }
    to { transform: translateX(-50%) translateY(-5px); }
}

.duel-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-2);
}

.duel-lightning {
    font-size: 2rem;
    animation: lightningPulse 0.5s ease infinite alternate;
}

@keyframes lightningPulse {
    from { transform: scale(1); opacity: 1; }
    to { transform: scale(1.2); opacity: 0.8; }
}

.duel-winner-text {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.8rem;
    color: var(--accent);
    text-align: center;
    white-space: nowrap;
}

.duel-draw {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.8rem;
    color: var(--text-muted);
}

@media (max-width: 600px) {
    .duel-battle {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto;
    }

    .duel-center {
        grid-column: 1 / -1;
        grid-row: 1;
        flex-direction: row;
        margin-bottom: var(--space-2);
    }

    .duel-selectors {
        flex-direction: column;
        gap: var(--space-2);
    }

    .duel-select {
        width: 100%;
    }
}

/* Achievement Notification */
.achievement-notification {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-100px);
    background: linear-gradient(135deg, var(--accent) 0%, #D4AF37 100%);
    color: var(--bg-dark);
    padding: var(--space-4) var(--space-6);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    gap: var(--space-4);
    box-shadow: 0 10px 40px rgba(201, 162, 39, 0.4);
    z-index: 9999;
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.achievement-notification.show {
    transform: translateX(-50%) translateY(0);
}

.achievement-icon-big {
    animation: achievementBounce 0.5s ease infinite alternate;
}

.achievement-icon-big svg {
    width: 48px;
    height: 48px;
    stroke: var(--bg-dark);
    stroke-width: 1.5;
}

@keyframes achievementBounce {
    from { transform: scale(1); }
    to { transform: scale(1.1); }
}

.achievement-text {
    text-align: left;
}

.achievement-title {
    font-family: var(--font-display);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.8;
}

.achievement-name {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
}

.achievement-desc {
    font-size: 0.8rem;
    opacity: 0.9;
}

@media (max-width: 768px) {
    .achievement-notification {
        left: var(--space-4);
        right: var(--space-4);
        transform: translateX(0) translateY(-100px);
    }

    .achievement-notification.show {
        transform: translateX(0) translateY(0);
    }

    .chutes-buttons {
        grid-template-columns: 1fr;
    }

    .leaderboard-badges {
        display: none;
    }
}

/* ─────────────────────────────────────────────────────────────────────────────
   Sections Collapsibles
   ───────────────────────────────────────────────────────────────────────────── */
.section-header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-4);
}

.section-toggle {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 50%;
    cursor: pointer;
    transition: all var(--transition);
    flex-shrink: 0;
}

.section-toggle svg {
    width: 20px;
    height: 20px;
    stroke: var(--accent);
    transition: transform var(--transition);
}

.section-toggle:hover {
    background: var(--accent);
    border-color: var(--accent);
}

.section-toggle:hover svg {
    stroke: var(--bg-dark);
}

.collapsible-section.collapsed .section-toggle svg {
    transform: rotate(-90deg);
}

.section-content {
    transition: all 0.4s ease;
    overflow: hidden;
}

.collapsible-section.collapsed .section-content {
    max-height: 0 !important;
    opacity: 0;
    padding-top: 0;
    padding-bottom: 0;
    margin-top: 0;
}

.collapsible-section .section-content {
    max-height: 5000px;
    opacity: 1;
}

.section-header {
    cursor: pointer;
    user-select: none;
}

.section-header:active {
    transform: scale(0.99);
}

/* ─────────────────────────────────────────────────────────────────────────────
   Mobile Optimizations - 90% utilisé sur mobile
   ───────────────────────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
    /* Réduction des espacements */
    :root {
        --space-24: 3rem;
        --space-16: 2rem;
        --space-12: 1.5rem;
    }

    .container {
        padding: 0 var(--space-4);
    }

    section {
        padding: var(--space-12) 0;
    }

    /* Hero compact */
    .hero {
        min-height: 85vh;
    }

    .hero-content {
        padding: var(--space-4);
    }

    .hero-title {
        font-size: clamp(2.5rem, 14vw, 5rem);
    }

    .hero-confrerie {
        font-size: 0.7rem;
        letter-spacing: 0.15em;
    }

    .hero-confrerie::before,
    .hero-confrerie::after {
        display: none;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: var(--space-6);
    }

    .hero-date {
        font-size: 0.85rem;
        padding: var(--space-2) var(--space-4);
    }

    /* Countdown compact */
    .countdown {
        gap: var(--space-3);
        margin-bottom: var(--space-8);
    }

    .countdown-item {
        min-width: 70px;
        padding: var(--space-4) var(--space-3);
    }

    .countdown-value {
        font-size: 1.8rem;
    }

    .countdown-label {
        font-size: 0.65rem;
    }

    /* Crew list horizontal scroll */
    .crew-list {
        gap: var(--space-3);
        justify-content: center;
        flex-wrap: wrap;
    }

    .crew-member {
        padding: var(--space-2);
    }

    .crew-avatar {
        width: 44px;
        height: 44px;
        font-size: 0.9rem;
    }

    .crew-name {
        font-size: 0.7rem;
    }

    /* Section headers */
    .section-header {
        margin-bottom: var(--space-6);
    }

    .section-title {
        font-size: clamp(1.5rem, 6vw, 2rem);
    }

    .section-desc {
        font-size: 0.95rem;
        margin-top: var(--space-4);
    }

    .section-label {
        font-size: 0.65rem;
        padding: var(--space-2) var(--space-3);
    }

    /* Grilles en une colonne */
    .weather-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-3);
    }

    .weather-card {
        padding: var(--space-4);
    }

    .weather-icon {
        width: 40px;
        height: 40px;
    }

    .weather-temp {
        font-size: 1.5rem;
    }

    .qg-grid {
        grid-template-columns: 1fr;
    }

    .qg-gallery {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: 120px 80px 80px;
    }

    .qg-photo:first-child {
        grid-column: span 2;
        grid-row: span 1;
    }

    .repas-grid {
        grid-template-columns: 1fr;
        gap: var(--space-3);
    }

    .repas-day-header {
        padding: var(--space-3);
        font-size: 0.8rem;
    }

    .repas-meal {
        padding: var(--space-3);
    }

    .repas-meal-name {
        font-size: 0.85rem;
    }

    /* Courses grid */
    .courses-grid {
        grid-template-columns: 1fr;
    }

    .course-item {
        padding: var(--space-3);
    }

    .courses-header {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-3);
    }

    .courses-progress-bar {
        width: 100%;
    }

    /* Map section */
    .map-wrapper {
        grid-template-columns: 1fr;
        height: auto;
    }

    .map-container {
        height: 250px;
    }

    .trip-info {
        gap: var(--space-3);
    }

    .trip-card {
        padding: var(--space-4);
    }

    /* Blocs section */
    .blocs-progress {
        flex-direction: column;
        padding: var(--space-4);
        gap: var(--space-4);
    }

    .blocs-progress-ring {
        width: 80px;
        height: 80px;
    }

    .blocs-progress-ring svg {
        width: 80px;
        height: 80px;
    }

    .blocs-progress-ring circle {
        stroke-width: 6;
    }

    .blocs-progress-value {
        font-size: 1.25rem;
    }

    .blocs-stats {
        gap: var(--space-4);
    }

    .bloc-stat-value {
        font-size: 1.2rem;
    }

    .circuit-header-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-3);
    }

    .circuit-controls {
        position: absolute;
        top: var(--space-3);
        right: var(--space-3);
    }

    .circuit-header-bar {
        position: relative;
        padding-right: 80px;
    }

    .bloc-header {
        padding: var(--space-3);
    }

    .bloc-num {
        width: 28px;
        height: 28px;
        font-size: 0.8rem;
    }

    .bloc-grade {
        font-size: 0.9rem;
        padding: var(--space-1) var(--space-3);
    }

    .bloc-body {
        padding: var(--space-3);
    }

    .bloc-validations {
        flex-direction: column;
    }

    .validation-btn {
        width: 100%;
        justify-content: center;
        padding: var(--space-3);
    }

    /* Échauffement */
    .timer-container {
        padding: var(--space-6);
    }

    .timer-display {
        font-size: 3rem;
    }

    .timer-exercise {
        font-size: 1rem;
    }

    .timer-controls {
        flex-direction: column;
    }

    .timer-btn {
        width: 100%;
        justify-content: center;
    }

    .exercice-item {
        padding: var(--space-3);
        gap: var(--space-3);
    }

    .exercice-number {
        width: 28px;
        height: 28px;
        font-size: 0.75rem;
    }

    .exercice-name {
        font-size: 0.85rem;
    }

    .exercice-desc {
        font-size: 0.75rem;
    }

    /* Dépenses */
    .depenses-grid {
        grid-template-columns: 1fr;
    }

    .depense-form,
    .depenses-list-container {
        padding: var(--space-4);
    }

    .form-group input,
    .form-group select {
        padding: var(--space-3);
        font-size: 16px; /* Empêche le zoom sur iOS */
    }

    .participants-checkboxes {
        gap: var(--space-2);
    }

    .participant-label {
        flex: 1;
        min-width: 45%;
        justify-content: center;
        padding: var(--space-3);
    }

    .depense-item {
        flex-wrap: wrap;
        gap: var(--space-2);
    }

    .depense-amount {
        font-size: 1rem;
    }

    .dette-item {
        flex-wrap: wrap;
        padding: var(--space-3);
    }

    /* Checklist */
    .checklist-header {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-4);
    }

    .checklist-categories {
        grid-template-columns: 1fr;
    }

    .checklist-item {
        padding: var(--space-3);
    }

    .checklist-checkbox {
        width: 24px;
        height: 24px;
    }

    .checklist-text {
        font-size: 0.85rem;
    }

    /* Navigation mobile améliorée */
    .nav {
        padding: var(--space-3) 0;
    }

    .nav-logo {
        font-size: 0.85rem;
    }

    .nav-toggle {
        width: 44px;
        height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .nav-links {
        padding: var(--space-4);
        gap: var(--space-2);
    }

    .nav-links a {
        padding: var(--space-3) var(--space-4);
        font-size: 0.9rem;
        text-align: center;
        background: var(--surface);
        border-radius: var(--radius);
    }

    /* Footer */
    .footer-logo {
        width: 150px;
        height: 150px;
    }

    .footer-crew {
        gap: var(--space-3);
    }

    .footer-avatar {
        width: 36px;
        height: 36px;
        font-size: 0.85rem;
    }

    .footer-text {
        font-size: 0.75rem;
    }

    /* Scroll indicator caché sur mobile */
    .scroll-indicator {
        bottom: var(--space-4);
        font-size: 0.75rem;
    }

    /* Section toggle plus grand pour le touch */
    .section-toggle {
        width: 48px;
        height: 48px;
    }
}

/* Extra small devices */
@media (max-width: 380px) {
    .hero-title {
        font-size: 2.2rem;
    }

    .countdown-item {
        min-width: 60px;
        padding: var(--space-3) var(--space-2);
    }

    .countdown-value {
        font-size: 1.5rem;
    }

    .weather-grid {
        grid-template-columns: 1fr;
    }

    .qg-gallery {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(3, 100px);
    }

    .qg-photo:first-child {
        grid-column: span 1;
    }
}

/* ─────────────────────────────────────────────────────────────────────────────
   Indicateur de Synchronisation
   ───────────────────────────────────────────────────────────────────────────── */
.sync-indicator {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--surface);
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    z-index: 9999;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.sync-indicator.loading,
.sync-indicator.saving {
    border-color: var(--accent);
    animation: pulse-sync 1s infinite;
}

.sync-indicator.success {
    border-color: #2ecc71;
}

.sync-indicator.offline {
    border-color: #e74c3c;
}

.sync-indicator.hidden {
    opacity: 0;
    transform: scale(0.8);
    pointer-events: none;
}

@keyframes pulse-sync {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   Carnet de Croix
   ═══════════════════════════════════════════════════════════════════════════ */

.carnet-form {
    display: flex;
    gap: var(--space-2);
    flex-wrap: wrap;
    align-items: center;
    padding: var(--space-4);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: var(--space-4);
}

.carnet-form select,
.carnet-form input {
    flex: 1;
    min-width: 120px;
    padding: 0.65rem 0.85rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: calc(var(--radius) * 0.7);
    color: var(--text);
    font-size: 0.9rem;
    transition: border-color var(--transition);
}

.carnet-form select:focus,
.carnet-form input:focus {
    outline: none;
    border-color: var(--accent);
}

.btn-croix-add {
    padding: 0.65rem 1.2rem;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dim) 100%);
    color: white;
    border: none;
    border-radius: calc(var(--radius) * 0.7);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
}

.btn-croix-add:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(217, 119, 6, 0.35);
}

/* Stats grid */
.croix-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--space-3);
    margin-bottom: var(--space-4);
}

.croix-stat-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: var(--space-3);
    transition: all var(--transition);
}

.croix-stat-card:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-glow);
}

.croix-stat-header {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    margin-bottom: var(--space-2);
}

.croix-stat-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.croix-stat-info {
    flex: 1;
    min-width: 0;
}

.croix-stat-name {
    font-weight: 600;
    color: var(--text);
    font-size: 0.95rem;
}

.croix-stat-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.croix-stat-total {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--accent);
    font-family: var(--font-display, var(--font-mono));
}

.croix-grade-bars {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    min-height: 28px;
}

.croix-grade-item {
    display: flex;
    align-items: center;
    gap: 3px;
}

.croix-grade-label {
    padding: 2px 8px;
    border-radius: 10px;
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
}

.croix-grade-count {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-weight: 600;
}

.croix-empty {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-style: italic;
}

/* History */
.croix-history-container {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: var(--space-3);
}

.croix-history-container h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: var(--space-2);
    color: var(--text);
}

.croix-history {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 400px;
    overflow-y: auto;
}

.croix-no-history {
    text-align: center;
    color: var(--text-muted);
    padding: var(--space-4);
    font-size: 0.9rem;
}

.croix-entry {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: 8px 12px;
    background: var(--bg);
    border-radius: calc(var(--radius) * 0.7);
    transition: all var(--transition);
}

.croix-entry:hover {
    background: var(--surface-hover, rgba(255,255,255,0.05));
}

.croix-entry-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 0.75rem;
    flex-shrink: 0;
}

.croix-entry-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.croix-entry-name {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.croix-entry-meta {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.croix-entry-grade {
    padding: 3px 10px;
    border-radius: 10px;
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    flex-shrink: 0;
}

.croix-entry-delete {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    opacity: 0;
    transition: all var(--transition);
    flex-shrink: 0;
}

.croix-entry-delete svg {
    width: 16px;
    height: 16px;
}

.croix-entry:hover .croix-entry-delete {
    opacity: 0.6;
}

.croix-entry-delete:hover {
    opacity: 1 !important;
    color: #e74c3c;
}

/* ═══════════════════════════════════════════════════════════════════════════
   Chutes - Améliorations
   ═══════════════════════════════════════════════════════════════════════════ */

.chute-wrapper {
    position: relative;
    display: inline-flex;
}

.chute-undo {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.7rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
    z-index: 2;
    line-height: 1;
}

.chute-undo:hover {
    background: #e74c3c;
    border-color: #e74c3c;
    color: white;
    transform: scale(1.1);
}

@media (max-width: 640px) {
    .carnet-form {
        flex-direction: column;
    }
    .carnet-form select,
    .carnet-form input,
    .btn-croix-add {
        width: 100%;
        min-width: unset;
    }
    .croix-stats-grid {
        grid-template-columns: 1fr;
    }
}
