/* Importation d'une police de style médiévale / élégante pour les titres */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@500;700;900&family=Poppins:wght@300;400;600&display=swap');

:root {
    --gold-primary: #d4af37;
    --gold-gradient: linear-gradient(135deg, #f3e7be 0%, #d4af37 50%, #aa7c11 100%);
    --bg-dark: #0d0f12;
    --card-bg: rgba(18, 22, 28, 0.75);
    --text-light: #e0e6ed;
}

/* Container Principal plein écran */
.homepage-container {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(13, 15, 18, 0.95)), 
                url('/dist/assets/img/background.png') no-repeat center center;
    background-size: cover;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    color: var(--text-light);
    font-family: 'Poppins', sans-serif;
    padding: 20px;
    box-sizing: border-box;
}

/* Bouton Paramètres en haut */
.top-actions {
    width: 100%;
    display: flex;
    justify-content: flex-end;
}
.settings-btn {
    background: transparent;
    border: none;
    color: var(--gold-primary);
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0.8;
}

/* Zone Hero / Contenu */
.hero {
    width: 100%;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex-grow: 1;
    justify-content: center;
    margin-bottom: 70px; /* Espace pour la navbar basse */
}

/* Style des Titres (Type "Les Secrets de Laon") */
.main-title {
    font-family: 'Cinzel', serif;
    display: flex;
    flex-direction: column;
    line-height: 1.1;
    margin-bottom: 15px;
    letter-spacing: 2px;
}
.title-small {
    font-size: 1rem;
    color: var(--text-light);
    font-weight: 500;
}
.title-sub {
    font-size: 0.75rem;
    color: var(--gold-primary);
    margin: 2px 0;
}
.title-large {
    font-size: 3rem;
    font-weight: 900;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0px 4px 10px rgba(0,0,0,0.7);
}

/* Sous-titre descriptif */
.typewriter-text {
    font-size: 0.9rem;
    color: #b0bac5;
    max-width: 85%;
    margin-bottom: 25px;
    line-height: 1.4;
}

/* Groupe de Boutons */
.cta-group {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}
.btn-link {
    width: 100%;
    text-decoration: none;
}
.btn {
    width: 100%;
    padding: 14px;
    font-family: 'Cinzel', serif;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Bouton Jaune / Or (Commencer l'aventure) */
.btn-primary {
    background: var(--gold-gradient);
    color: #111;
    border: 1px solid #ffebad;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

/* Bouton Sombre (Comment jouer) */
.btn-secondary {
    background: rgba(20, 24, 33, 0.8);
    color: var(--text-light);
    border: 1px solid rgba(214, 175, 55, 0.4);
}

/* Menu déroulant Langues */
.lang-selector-wrapper {
    margin-bottom: 25px;
    width: 60%;
}
.lang-select {
    width: 100%;
    background: rgba(15, 18, 25, 0.9);
    color: #b0bac5;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 8px 12px;
    border-radius: 6px;
    text-align: center;
    font-size: 0.85rem;
    outline: none;
}

/* Barre de Navigation Basse */
.mobile-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 65px;
    background: rgba(13, 15, 18, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid rgba(212, 175, 55, 0.25);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding-bottom: env(safe-area-inset-bottom);
    box-sizing: border-box;
    z-index: 999;
    box-shadow: 0 -5px 25px rgba(0, 0, 0, 0.6);
}

/* Style de chaque onglet (répartis équitablement à 25% chacun) */
.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 25%;
    height: 100%;
    text-decoration: none;
    color: #6a7685; 
    transition: all 0.25s ease-in-out;
    position: relative;
}

/* Style des icônes */
.nav-item i {
    font-size: 1.2rem;
    margin-bottom: 4px;
}

/* Style des textes (adapté pour les intitulés plus longs) */
.nav-item span {
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.2px;
    font-family: 'Poppins', sans-serif;
    white-space: nowrap; /* Évite que le texte saute à la ligne */
}

/* --- ÉTAT ACTIF (OR) --- */
.nav-item.active {
    color: #d4af37;
    text-shadow: 0 0 8px rgba(212, 175, 55, 0.3);
}

/* Petite ligne dorée discrète au-dessus de l'onglet actif */
.nav-item.active::before {
    content: '';
    position: absolute;
    top: 0;
    width: 30px;
    height: 2px;
    background: #d4af37;
    border-radius: 2px;
    box-shadow: 0 0 6px #d4af37;
}


@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@600;800&family=Poppins:wght@300;400;500;600&display=swap');

/* Reset & variables globales adaptées au thème */
.episodes-container {
    background-color: #080a0e;
    min-height: 100vh;
    padding: 30px 15px 100px 15px; /* Éviter les conflits avec la navbar basse */
    font-family: 'Poppins', sans-serif;
    color: #e0e6ed;
    box-sizing: border-box;
}

/* Titre principal style médiéval */
.page-title {
    font-family: 'Cinzel', serif;
    text-align: center;
    font-size: 1.4rem;
    letter-spacing: 2px;
    line-height: 1.4;
    margin-bottom: 30px;
    color: #ffffff;
}
.gold-text {
    background: linear-gradient(135deg, #f3e7be 0%, #d4af37 50%, #aa7c11 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

/* Container de la liste d'épisodes */
.episodes-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
    max-width: 420px;
    margin: 0 auto;
}

/* Structure globale des cartes */
.episode-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: #0f131a;
    border: 1px solid rgba(212, 175, 55, 0.25);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    min-height: 200px;
    transition: transform 0.3s ease;
}

/* Image de fond teintée */
.card-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0.35;
    z-index: 1;
    pointer-events: none;
}

/* Dégradé sombre par-dessus l'image pour garantir la lisibilité du texte */
.episode-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, #0f131a 40%, rgba(15, 19, 26, 0.7) 100%);
    z-index: 2;
}

/* Contenu textuel poussé au premier plan */
.card-content {
    position: relative;
    z-index: 3;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

/* Textes intérieurs */
.episode-number {
    font-size: 0.75rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.episode-title {
    font-family: 'Cinzel', serif;
    font-size: 1.35rem;
    color: #f3e7be;
    margin: 0 0 12px 0;
    font-weight: 600;
}

/* Badges de Statuts (Disponible / Bientôt disponible) */
.status-badge {
    align-self: flex-start;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 20px;
}
.available-badge {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}
.available-badge .dot {
    width: 6px;
    height: 6px;
    background-color: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 8px #10b981;
}
.locked-badge {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.25);
}

/* Métriques rapides (Icons horizontaux) */
.quick-meta {
    display: flex;
    gap: 20px;
    font-size: 0.85rem;
    color: #cbd5e1;
    margin-bottom: 15px;
}
.quick-meta i {
    color: #d4af37;
    margin-right: 4px;
}

/* Ligne de séparation fine */
.card-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.3), transparent);
    margin: 10px 0 15px 0;
}

/* Grille technique du bas */
.details-grid {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    background: rgba(0, 0, 0, 0.25);
    padding: 10px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.03);
}
.detail-item {
    display: flex;
    flex-direction: column;
    width: 33.33%;
    text-align: left;
    padding-left: 10px;
}
.detail-item:not(:last-child) {
    border-right: 1px solid rgba(255, 255, 255, 0.08);
}
.detail-label {
    font-size: 0.65rem;
    color: #64748b;
    text-transform: uppercase;
}
.detail-value {
    font-size: 0.85rem;
    font-weight: 600;
    color: #f8fafc;
    margin-top: 2px;
}

/* Actions Internes (GPS & Boutons) */
.action-zone {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    width: 100%;
}
.subtitle-text {
    font-size: 0.8rem;
    color: #94a3b8;
    text-align: center;
    margin-bottom: 5px;
}
.w-100 { width: 100%; text-decoration: none; }

/* Boutons */
.btn-start-adventure {
    width: 100%;
    padding: 12px;
    font-family: 'Cinzel', serif;
    background: linear-gradient(135deg, #f3e7be 0%, #d4af37 50%, #aa7c11 100%);
    color: #0a0c10;
    font-weight: 700;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}
.btn-gps {
    width: 100%;
    padding: 12px;
    background: rgba(212, 175, 55, 0.1);
    color: #d4af37;
    border: 1px solid rgba(212, 175, 55, 0.4);
    border-radius: 6px;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s ease;
}
.btn-gps:hover {
    background: rgba(212, 175, 55, 0.2);
}
.help-link {
    font-size: 0.75rem;
    color: #64748b;
    text-decoration: underline;
}

/* Status des retours GPS JS */
#gpsStatus {
    font-size: 0.8rem;
    margin-top: -4px;
    font-weight: 500;
}
.status-success { color: #10b981; }
.status-error { color: #ef4444; }

/* --- SYSTÈME DE VÉROUILLAGE (ÉPISODE LOCKED) --- */
.episode-card.locked {
    border-color: rgba(255, 255, 255, 0.08);
}
.episode-card.locked .episode-title {
    color: #64748b;
}
.card-overlay-lock {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 4;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding-right: 25px;
    box-sizing: border-box;
    pointer-events: none;
}
.lock-icon {
    width: 50px;
    height: 50px;
    background: rgba(15, 19, 26, 0.8);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #d4af37;
    font-size: 1.2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@600;700&family=Poppins:wght@300;400;500;600&display=swap');

.orientation-container {
    background-color: #090b0e;
    min-height: 100vh;
    padding: 20px 15px 40px 15px;
    font-family: 'Poppins', sans-serif;
    color: #e0e6ed;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-sizing: border-box;
}

/* En-tête de l'objectif */
.orientation-header {
    text-align: center;
    position: relative;
    margin-bottom: 15px;
}
.top-nav-icons {
    display: flex;
    justify-content: space-between;
    position: absolute;
    width: 100%;
    top: 0;
}
.icon-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(212, 175, 55, 0.2);
    color: #d4af37;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}
.header-subtitle {
    font-size: 0.7rem;
    color: #64748b;
    letter-spacing: 2px;
    display: block;
    margin-top: 5px;
}
.objective-title {
    font-family: 'Cinzel', serif;
    font-size: 1.2rem;
    color: #ffffff;
    margin: 5px 0;
}
.distance-text {
    font-size: 0.85rem;
    color: #d4af37;
    font-weight: 500;
    margin: 0;
}
.distance-text i {
    font-size: 0.75rem;
}

/* Zone centrale Navigation */
.navigation-zone {
    position: relative;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Design de la Boussole ancienne */
.compass-wrapper {
    position: absolute;
    top: 10px;
    z-index: 10;
    pointer-events: none; /* Laisse passer le clic sur la carte en dessous */
}
.compass-rose {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: radial-gradient(circle, #141923 60%, #0d1017 100%);
    border: 4px solid #1a1e26;
    box-shadow: 0 0 0 2px #d4af37, 0 8px 25px rgba(0,0,0,0.8);
    position: relative;
    /* transition pour la rotation JS via transform: rotate(Xdeg) */
    transition: transform 0.2s ease-out; 
}
/* Tu peux utiliser un background image d'une rose des vents ou la créer en CSS */
.compass-rose::before {
    content: 'N';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    color: #d4af37;
    font-family: 'Cinzel', serif;
    font-size: 0.8rem;
    font-weight: bold;
}
.compass-pointer-north {
    position: absolute;
    top: 15px;
    left: 50%;
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 60px solid #d4af37;
    transform: translateX(-50%);
}
.compass-center {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 12px;
    height: 12px;
    background: #38bdf8;
    border: 2px solid #ffffff;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 8px #38bdf8;
}

/* Carte en arrière-plan */
.medieval-map {
    width: 100%;
    height: 280px;
    border-radius: 16px;
    border: 1px solid rgba(212, 175, 55, 0.15);
    box-shadow: inset 0 0 20px rgba(0,0,0,0.8);
}

/* Boîtier de progression */
.progression-box {
    background: rgba(15, 19, 26, 0.75);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 10px;
    padding: 12px 15px;
    margin: 20px 0;
}
.box-label {
    font-size: 0.65rem;
    color: #64748b;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 5px;
}
.progression-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.enigmes-count {
    font-size: 0.85rem;
    color: #cbd5e1;
}
.progress-bar-container {
    width: 100%;
    height: 6px;
    background: #1e293b;
    border-radius: 3px;
    overflow: hidden;
}
.progress-bar-fill {
    height: 100%;
    background: #38bdf8; /* Couleur bleue de la jauge */
    border-radius: 3px;
    box-shadow: 0 0 8px #38bdf8;
}

/* Grille d'actions basse */
.action-grid {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}
.action-card {
    background: rgba(15, 19, 26, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 12px 0;
    cursor: pointer;
    transition: all 0.2s ease;
}
.action-card i {
    font-size: 1.2rem;
    color: #64748b;
    margin-bottom: 5px;
}
.action-card span {
    font-size: 0.7rem;
    color: #94a3b8;
}
/* État actif d'un bouton de la grille */
.action-card.active {
    border-color: rgba(212, 175, 55, 0.3);
    background: rgba(212, 175, 55, 0.03);
}
.action-card.active i {
    color: #d4af37;
}
.action-card.active span {
    color: #d4af37;
}

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

/* Arrière-plan global sombre pour faire ressortir le parchemin */
.parchment-wrapper {
    background-color: #0c0f12;
    min-height: 100vh;
    padding: 20px 15px 40px 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
}

/* Le Parchemin ancien */
.parchment-container {
    background-color: #d9c3a5; /* Teinte papier ancien */
    background-image: radial-gradient(circle, rgba(244,233,215,0.3) 0%, rgba(200,175,140,0.4) 100%);
    border-radius: 12px;
    padding: 30px 20px;
    width: 100%;
    max-width: 400px;
    box-shadow: 
        inset 0 0 40px rgba(105, 80, 50, 0.4), /* Brûlure des bords interne */
        0 10px 30px rgba(0, 0, 0, 0.6);        /* Ombre portée externe */
    border: 1px solid #bba380;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* En-tête */
.story-header {
    text-align: center;
    margin-bottom: 20px;
    width: 100%;
}
.story-main-title {
    font-family: 'Cinzel', serif;
    font-size: 1.4rem;
    color: #2c251e; /* Marron très foncé presque noir */
    font-weight: 900;
    letter-spacing: 1px;
    margin: 0 0 4px 0;
    text-transform: uppercase;
}
.chapter-number {
    font-family: 'Cinzel', serif;
    font-size: 0.8rem;
    color: #615243;
    letter-spacing: 3px;
    font-weight: 700;
}

/* Zone de l'illustration centrale */
.story-illustration {
    width: 100%;
    max-width: 280px;
    margin-bottom: 25px;
    display: flex;
    justify-content: center;
}
.sketch-img {
    width: 100%;
    height: auto;
    filter: sepia(0.4) contrast(1.1) multiply(1.2); /* Donne un effet gravure / encre */
    mix-blend-mode: multiply; /* Fusionne parfaitement l'image avec le grain du parchemin */
}

/* Corps du texte historique */
.story-body {
    width: 100%;
    margin-bottom: 30px;
}
.story-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.05rem;
    line-height: 1.6;
    color: #3a3128;
    text-align: left;
    margin: 0;
}

/* Zone d'action basse */
.story-footer {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}
.btn-link {
    width: 100%;
    max-width: 280px;
    text-decoration: none;
}

/* Bouton CONTINUER doré et sculpté */
.btn-continue {
    width: 100%;
    padding: 12px;
    font-family: 'Cinzel', serif;
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #2c2115;
    background: linear-gradient(135deg, #ebd2a9 0%, #c19b6c 50%, #967041 100%);
    border-radius: 6px;
    border: 1px solid #dac29c;
    box-shadow: 
        0 4px 10px rgba(78, 55, 30, 0.4),
        inset 0 1px 0 rgba(255,255,255,0.3);
    cursor: pointer;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: transform 0.1s ease;
}
.btn-continue:active {
    transform: scale(0.98);
}

/* Indicateur de pages / étapes en bas */
.steps-indicator {
    display: flex;
    gap: 8px;
    align-items: center;
}
.dot {
    width: 6px;
    height: 6px;
    background-color: #bba380;
    border-radius: 50%;
}
.dot.active {
    background-color: #0284c7; /* Le point bleu de ta maquette */
    box-shadow: 0 0 6px #0284c7;
}

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@700;900&family=Playfair+Display:wght@600&family=Poppins:wght@400;500;600&display=swap');

.game-riddle-page {
    background-color: #0b0d11;
    min-height: 100vh;
    padding: 15px 15px 30px 15px;
    font-family: 'Poppins', sans-serif;
    color: #e0e6ed;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

/* Header de l'énigme */
.riddle-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}
.back-arrow-btn, .map-shortcut-btn {
    background: transparent;
    border: none;
    color: #64748b;
    font-size: 1.1rem;
    cursor: pointer;
}
.riddle-number {
    font-family: 'Cinzel', serif;
    font-size: 0.85rem;
    letter-spacing: 1.5px;
    color: #94a3b8;
}

/* Carte Parchemin */
.parchment-card {
    background-color: #ded0ba;
    background-image: radial-gradient(circle, rgba(244,233,215,0.2) 0%, rgba(193,166,129,0.35) 100%);
    border-radius: 8px;
    padding: 20px 15px;
    box-shadow: inset 0 0 30px rgba(139, 115, 85, 0.35), 0 10px 25px rgba(0,0,0,0.5);
    border: 1px solid #c9b69c;
    color: #2d241e;
}

.riddle-title {
    font-family: 'Cinzel', serif;
    font-size: 1.15rem;
    text-transform: uppercase;
    text-align: center;
    letter-spacing: 0.5px;
    margin: 0 0 15px 0;
    font-weight: 900;
}

.riddle-text {
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    line-height: 1.5;
    text-align: center;
    font-weight: 500;
    margin: 0 0 15px 0;
}

/* Image gravure intégrée au parchemin */
.riddle-illustration {
    width: 100%;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}
.riddle-img {
    width: 100%;
    height: auto;
    display: block;
    mix-blend-mode: multiply;
    filter: sepia(0.2) contrast(1.1);
}

/* Liste des choix QCM */
.choices-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.choice-item {
    background: rgba(45, 36, 30, 0.06);
    border: 1px solid rgba(45, 36, 30, 0.15);
    border-radius: 20px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

.choice-letter {
    width: 26px;
    height: 26px;
    background: rgba(45, 36, 30, 0.12);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 600;
    font-size: 0.85rem;
    color: #2d241e;
}

.choice-label {
    font-size: 0.9rem;
    font-weight: 500;
}

/* --- LOGIQUE DE SÉLECTION STYLE LUMIÈRE BLEUE --- */
.choice-item.selected {
    background: linear-gradient(90deg, #132a42 0%, #173754 100%);
    border-color: #38bdf8;
    color: #f8fafc;
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.4);
}
.choice-item.selected .choice-letter {
    background: #0284c7;
    color: #ffffff;
    box-shadow: 0 0 6px rgba(2, 132, 199, 0.6);
}

/* Cadre Explication Basse */
.explanation-box {
    background: rgba(15, 19, 26, 0.8);
    border: 1px solid rgba(212, 175, 55, 0.15);
    border-radius: 6px;
    padding: 15px;
    margin: 20px 0;
}
.explanation-title {
    font-family: 'Cinzel', serif;
    font-size: 0.75rem;
    color: #d4af37;
    letter-spacing: 1px;
    margin: 0 0 8px 0;
}
.explanation-text {
    font-size: 0.85rem;
    line-height: 1.5;
    color: #94a3b8;
    margin: 0;
}

/* Bouton bleu brillant de validation */
.riddle-actions {
    margin-top: auto; /* Pousse le bouton tout en bas de l'écran mobile */
}
.btn-validate {
    width: 100%;
    padding: 14px;
    font-family: 'Cinzel', serif;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #ffffff;
    background: linear-gradient(180deg, #0284c7 0%, #0369a1 100%);
    border: 1px solid #38bdf8;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(2, 132, 199, 0.4);
    transition: all 0.2s ease;
}
.btn-validate:active {
    transform: scale(0.98);
    box-shadow: 0 2px 8px rgba(2, 132, 199, 0.4);
}

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@700;900&family=Poppins:wght@300;400;500;600&display=swap');

.end-page-container {
    background-color: #090b0e;
    min-height: 100vh;
    padding: 30px 20px 40px 20px;
    font-family: 'Poppins', sans-serif;
    color: #e0e6ed;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
}

/* En-tête de fin */
.end-header {
    text-align: center;
    margin-bottom: 30px;
}
.end-subtitle {
    font-size: 0.75rem;
    color: #38bdf8;
    letter-spacing: 3px;
    font-weight: 600;
    text-transform: uppercase;
    display: block;
    margin-bottom: 5px;
}
.end-title {
    font-family: 'Cinzel', serif;
    font-size: 1.6rem;
    color: #ffffff;
    margin: 0;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Zone du Badge de Score Circulaire */
.score-zone {
    margin-bottom: 35px;
}
.score-circle {
    width: 170px;
    height: 170px;
    border-radius: 50%;
    background: radial-gradient(circle, #0f131a 50%, #090b0e 100%);
    border: 3px solid #d4af37;
    box-shadow: 0 0 25px rgba(212, 175, 55, 0.25), inset 0 0 15px rgba(0,0,0,0.6);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}
.score-label {
    font-size: 0.7rem;
    color: #64748b;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-weight: 500;
}
.score-values {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin: 5px 0;
}
.score-current {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1;
}
.score-divider {
    font-size: 1.2rem;
    color: #475569;
}
.score-total {
    font-size: 1.3rem;
    font-weight: 500;
    color: #94a3b8;
}
.score-percentage {
    font-size: 0.9rem;
    color: #d4af37;
    font-weight: 600;
}

/* Description textuelle */
.end-description-box {
    max-width: 450px;
    text-align: center;
    margin-bottom: 35px;
}
.end-text {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #94a3b8;
    margin: 0;
}

/* Boîte / Carte de soutien (Cagnotte) */
.support-card {
    background: linear-gradient(180deg, #0e121a 0%, #0b0d12 100%);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-top: 3px solid #38bdf8; /* Ligne de surbrillance bleue supérieure */
    border-radius: 12px;
    padding: 24px 20px;
    width: 100%;
    max-width: 450px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    text-align: center;
    margin-bottom: 40px;
    box-sizing: border-box;
}
.support-title {
    font-family: 'Cinzel', serif;
    font-size: 1.1rem;
    color: #ffffff;
    margin: 0 0 15px 0;
    font-weight: 700;
    letter-spacing: 0.5px;
}
.support-title i {
    color: #38bdf8;
    font-size: 0.95rem;
    margin-right: 4px;
}
.support-body {
    font-size: 0.88rem;
    line-height: 1.5;
    color: #94a3b8;
    margin-bottom: 20px;
}
.support-body p {
    margin: 0 0 10px 0;
}
.support-body p:last-child {
    margin-bottom: 0;
}
.support-subtext {
    color: #64748b;
    font-size: 0.82rem;
}

/* Bouton Faire un don */
.btn-donate {
    display: inline-block;
    width: 100%;
    padding: 12px;
    background: linear-gradient(180deg, #38bdf8 0%, #0284c7 100%);
    border: 1px solid #7dd3fc;
    border-radius: 8px;
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(2, 132, 199, 0.3);
    transition: all 0.2s ease;
    box-sizing: border-box;
}
.btn-donate:active {
    transform: scale(0.98);
}

/* Bouton Rejouer / Retour au menu */
.end-actions {
    width: 100%;
    max-width: 450px;
    margin-top: auto; /* Aligne le bouton tout en bas si l'écran est grand */
}
.btn-replay {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 14px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 8px;
    color: #d4af37;
    font-family: 'Cinzel', serif;
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: all 0.2s ease;
    box-sizing: border-box;
}
.btn-replay i {
    font-size: 0.85rem;
}
.btn-replay:active {
    background: rgba(212, 175, 55, 0.05);
    transform: scale(0.99);
}

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@700;900&family=Poppins:wght@300;400;500&display=swap');

.not-started-container {
    background-color: #0c0a08; /* Fond très sombre texturé ou terreux */
    background-image: radial-gradient(circle, #1a140f 0%, #0c0a08 100%);
    min-height: 100vh;
    padding: 40px 20px;
    font-family: 'Poppins', sans-serif;
    color: #c5b39a; /* Couleur de texte sable/doré atténué */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    text-align: center;
}

/* Titre principal style médiéval */
.not-started-header {
    margin-bottom: 25px;
    max-width: 90%;
}
.not-started-title {
    font-family: 'Cinzel', serif;
    font-size: 1.8rem;
    color: #dfc49f; /* Doré lumineux */
    margin: 0;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    line-height: 1.3;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

/* Conteneur pour l'image centrale */
.illustration-container {
    margin: 20px 0 30px 0;
    display: flex;
    justify-content: center;
    align-items: center;
}
.center-illustration {
    width: 180px;
    height: auto;
    filter: drop-shadow(0 4px 15px rgba(0, 0, 0, 0.6));
}

/* Texte descriptif */
.not-started-content {
    max-width: 400px;
    margin-bottom: 40px;
    padding: 0 15px;
}
.not-started-message {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #a4927d;
    margin: 0;
    white-space: pre-line; /* Permet de gérer les retours à la ligne de la traduction */
}

/* Bouton style Parchemin / Plaque dorée ancienne */
.not-started-actions {
    width: 100%;
    max-width: 320px;
}
.start-btn {
    display: block;
    width: 100%;
    padding: 14px 20px;
    box-sizing: border-box;
    
    /* Style visuel inspiré de la plaque en bas de notstarted.jpg */
    background: linear-gradient(180deg, #e4cb9f 0%, #b89968 100%);
    border: 1px solid #8c6f43;
    border-radius: 4px;
    
    /* Effet de découpe/bordure ancienne discret */
    box-shadow: 
        0 4px 10px rgba(0, 0, 0, 0.5), 
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
        
    color: #2b1f11; /* Texte sombre pour contraster sur le beige/doré */
    font-family: 'Cinzel', serif;
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: transform 0.1s ease, filter 0.2s ease;
    
    /* Centrage du texte */
    display: flex;
    justify-content: center;
    align-items: center;
}

.start-btn:active {
    transform: scale(0.98);
    filter: brightness(0.9);
}

.not-started-container {
    min-height: 100vh;
    padding: 40px 20px;
    font-family: 'Poppins', sans-serif;
    color: #c5b39a;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    text-align: center;
    
    /* Positionnement relatif requis pour le pseudo-élément de fond */
    position: relative;
    overflow: hidden;
}

/* Pseudo-élément pour le fond étirable et le voile sombre */
.not-started-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    
    /* Intégration de l'image générée */
    background-image: url('/dist/assets/img/not_started.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    
    /* Voile sombre pour garantir la lisibilité du texte (Overlay) */
    background-color: rgba(12, 10, 8, 0.65); 
    background-blend-mode: multiply;
    
    /* Place le fond derrière le contenu textuel */
    z-index: 1; 
}

/* S'assure que tout le contenu de la page passe au-dessus du fond */
.not-started-header,
.illustration-container,
.not-started-content,
.not-started-actions {
    position: relative;
    z-index: 2;
}

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@700;900&family=Poppins:wght@300;400;500;600&display=swap');

.rules-page-container {
    font-family: 'Poppins', sans-serif;
    color: #e0e6ed;
    display: flex;
    justify-content: center;
}

/* La carte principale qui englobe les règles */
.requirements-card {
    background: linear-gradient(180deg, #12161f 0%, #0b0d12 100%);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 40px 30px;
    max-width: 600px;
    width: 100%;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
}

/* En-tête */
.rules-title {
    font-family: 'Cinzel', serif;
    color: #dfc49f; /* Doré */
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 2rem;
}
.rules-lead {
    color: #94a3b8;
    font-size: 1rem;
    line-height: 1.5;
}

/* Liste des éléments / règles */
.rules-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 30px;
}
.rule-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 16px;
    transition: background 0.2s ease;
}
.rule-item:hover {
    background: rgba(255, 255, 255, 0.04);
}

/* Icônes à gauche du texte */
.rule-icon {
    color: #38bdf8; /* Bleu azur */
    font-size: 1.1rem;
    margin-top: 2px;
}
.rule-text {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #cbd5e1;
}

/* Style spécifique pour la dernière règle (Avertissement / Attention) */
.alert-item {
    border-left: 4px solid #ef4444; /* Bordure rouge */
    background: rgba(239, 68, 68, 0.02);
}
.alert-item .rule-icon {
    color: #ef4444;
}

/* Zone des boutons en bas */
.actions-zone {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

/* Bouton principal (Activer la position) */
.start-btn {
    width: 100%;
    max-width: 340px;
    padding: 14px 20px;
    background: linear-gradient(180deg, #38bdf8 0%, #0284c7 100%);
    border: 1px solid #7dd3fc;
    border-radius: 8px;
    color: #ffffff;
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(2, 132, 199, 0.3);
    transition: transform 0.1s ease, filter 0.2s ease;
}
.start-btn:active {
    transform: scale(0.98);
    filter: brightness(0.9);
}

/* Bouton secondaire (Aide géoloc) */
.secondary-btn {
    font-size: 0.85rem;
    color: #64748b;
    text-decoration: none;
    transition: color 0.2s ease;
    font-weight: 500;
}
.secondary-btn:hover {
    color: #94a3b8;
    text-decoration: underline;
}

/* Message de statut GPS */
.status-message {
    font-size: 0.85rem;
    color: #94a3b8;
    min-height: 20px;
}

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@600;800;900&family=Poppins:wght@300;400;500;600&display=swap');

.contact-page-container {
    background-color: #0b0d12;
    min-height: 100vh;
    max-width: 450px;
    margin: 0 auto;
    font-family: 'Poppins', sans-serif;
    color: #cbd5e1;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    border: 1px solid rgba(255, 255, 255, 0.03);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}



.hero-title {
    font-family: 'Cinzel', serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: #dfc49f;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin: 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
}

/* Corps de la carte */
.contact-card-body {
    padding: 30px 24px;
    text-align: center;
    flex-grow: 1;
}

.contact-subtitle {
    font-family: 'Cinzel', serif;
    font-size: 1.35rem;
    color: #ffffff;
    margin-bottom: 8px;
    font-weight: 600;
}

.contact-lead {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #94a3b8;
    margin-bottom: 30px;
}

/* Liens / Inputs de contact */
.contact-links-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 35px;
}

.contact-item-btn {
    display: flex;
    align-items: center;
    gap: 16px;
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid rgba(212, 175, 55, 0.25);
    border-radius: 25px; /* Forme très arrondie comme sur l'image */
    padding: 10px 18px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.contact-item-btn:hover {
    background: rgba(212, 175, 55, 0.04);
    border-color: rgba(212, 175, 55, 0.5);
}

.icon-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid #b89968;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #dfc49f;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.contact-value {
    font-size: 0.92rem;
    color: #e2e8f0;
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* Réseaux sociaux */
.social-section {
    margin-top: 20px;
}

.social-title {
    font-family: 'Cinzel', serif;
    font-size: 1.05rem;
    color: #dfc49f;
    margin-bottom: 16px;
    letter-spacing: 1px;
}

.social-icons-row {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.social-icon-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid rgba(212, 175, 55, 0.3);
    background: transparent;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #dfc49f;
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.social-icon-btn:hover {
    color: #ffffff;
    border-color: #dfc49f;
    background: rgba(212, 175, 55, 0.1);
    transform: translateY(-2px);
}

/* Pied de page et Bouton parcheminé */
.contact-footer-actions {
    padding: 0 24px 30px 24px;
}

.btn-parchment-support {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 14px;
    box-sizing: border-box;
    background: linear-gradient(180deg, #e4cb9f 0%, #b89968 100%);
    border: 1px solid #8c6f43;
    border-radius: 4px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    color: #23190c;
    font-family: 'Cinzel', serif;
    font-size: 0.95rem;
    font-weight: 900;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: transform 0.1s ease, filter 0.2s ease;
}

.btn-parchment-support:active {
    transform: scale(0.98);
    filter: brightness(0.9);
}

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@700;900&family=Poppins:wght@300;400;500;600&display=swap');

.credits-page-container {
    background-color: #0b0d12;
    background-image: radial-gradient(circle, #121721 0%, #0b0d12 100%);
    min-height: 100vh;
    max-width: 450px;
    margin: 0 auto;
    padding: 40px 24px;
    font-family: 'Poppins', sans-serif;
    color: #cbd5e1;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

/* En-tête */
.credits-header {
    text-align: center;
    margin-bottom: 35px;
}
.credits-title {
    font-family: 'Cinzel', serif;
    font-size: 1.3rem;
    font-weight: 900;
    color: #dfc49f; /* Doré médiéval */
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}
.title-heart {
    color: #ef4444; /* Rouge vif pour le cœur */
    font-size: 1.4rem;
    filter: drop-shadow(0 0 8px rgba(239, 68, 68, 0.4));
}

/* Liste des éléments */
.credits-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex-grow: 1;
}

/* Cartes individuelles */
.credit-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid rgba(212, 175, 55, 0.15);
    border-radius: 12px;
    padding: 16px;
    transition: border-color 0.2s ease, background 0.2s ease;
}
.credit-card:hover {
    background: rgba(212, 175, 55, 0.03);
    border-color: rgba(212, 175, 55, 0.3);
}

/* Icônes à gauche */
.credit-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: rgba(56, 189, 248, 0.05);
    border: 1px solid rgba(56, 189, 248, 0.2);
    color: #38bdf8; /* Bleu azur */
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

/* Contenu textuel */
.credit-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.credit-label {
    font-size: 0.75rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}
.credit-value {
    font-size: 0.95rem;
    color: #e2e8f0;
    font-weight: 500;
    line-height: 1.4;
}

/* Pied de page et Bouton de retour */
.credits-footer {
    margin-top: 40px;
}
.btn-back-menu {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 14px;
    box-sizing: border-box;
    background: transparent;
    border: 1px solid rgba(212, 175, 55, 0.4);
    border-radius: 6px;
    color: #dfc49f;
    font-family: 'Cinzel', serif;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: background 0.2s ease, transform 0.1s ease;
}
.btn-back-menu:active {
    background: rgba(212, 175, 55, 0.05);
    transform: scale(0.99);
}

/* Style global de la page d'aide */
.help-page-container {
    max-width: 550px; /* Légèrement plus large pour le confort de lecture des listes */
}

.help-intro-text {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #94a3b8;
    max-width: 480px;
    margin: 0 auto;
}

/* Bloc de section d'aide */
.help-card {
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 24px;
    text-align: left;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

/* Variations de bordures de cartes pour repérage rapide */
.ios-card { border-left: 3px solid #38bdf8; }            /* Thème Bleu iOS */
.android-card { border-left: 3px solid #4ade80; }        /* Thème Vert Android */
.troubleshooting-card { border-left: 3px solid #f97316; } /* Thème Orange Dépannage */

/* Titres de sections */
.help-section-title {
    font-family: 'Cinzel', serif;
    font-size: 1.1rem;
    color: #ffffff;
    margin: 0 0 20px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
}
.ios-card .help-section-title i { color: #38bdf8; }
.android-card .help-section-title i { color: #4ade80; }
.troubleshooting-card .help-section-title i { color: #f97316; }

/* Listes d'étapes personnalisées (<ol>) */
.help-steps-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.help-steps-list li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

/* Bulles numérotées */
.step-number {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    font-size: 0.8rem;
    font-weight: 600;
    color: #ffffff;
    flex-shrink: 0;
    margin-top: 2px;
}
.ios-card .step-number { background-color: rgba(56, 189, 248, 0.2); border: 1px solid #38bdf8; }
.android-card .step-number { background-color: rgba(74, 222, 128, 0.2); border: 1px solid #4ade80; }

.step-content {
    font-size: 0.92rem;
    line-height: 1.5;
    color: #cbd5e1;
}

/* Contenu du dépannage */
.troubleshooting-content {
    font-size: 0.92rem;
    line-height: 1.6;
    color: #cbd5e1;
}
.troubleshooting-content p {
    margin: 0;
}
.btn-orientation {
    margin-top:20px;
    width:100%;
    padding:14px 18px;
    border:none;
    border-radius:14px;
    background:linear-gradient(135deg,#f59e0b,#fbbf24);
    color:#111827;
    font-size:16px;
    font-weight:700;
    cursor:pointer;
    transition:.25s;
}

.btn-orientation:hover{
    transform:translateY(-2px);
    box-shadow:0 8px 20px rgba(251,191,36,.35);
}

.discovery-overlay{

    position:fixed;
    inset:0;

    display:flex;
    justify-content:center;
    align-items:center;
    flex-direction:column;

    background:radial-gradient(circle,#f5deb3 0%,#4d2b12 70%,#120b06 100%);

    z-index:999999;

    opacity:0;
    visibility:hidden;

    transition:.4s;
}

.discovery-overlay.show{

    opacity:1;
    visibility:visible;

}

.flash{

    position:absolute;
    inset:0;

    background:white;

    opacity:0;

    animation:flash .8s ease;
}

.discovery-content{

    position:relative;

    z-index:2;

    text-align:center;

    animation:zoom 1s ease;

}

.success-icon{

    font-size:95px;

    animation:pulse 1.2s infinite;

    filter:drop-shadow(0 0 20px gold);

}

.discovery-content h1{

    color:#fff6d5;

    font-size:42px;

    margin-top:25px;

    text-transform:uppercase;

    letter-spacing:4px;

    text-shadow:
    0 0 20px gold,
    0 0 50px orange;

}

.discovery-content p{

    color:white;

    margin-top:15px;

    font-size:15px;

    opacity:.9;

}

@keyframes flash{

0%{opacity:1;}

100%{opacity:0;}

}

@keyframes zoom{

0%{

transform:scale(.3);
opacity:0;

}

70%{

transform:scale(1.15);

}

100%{

transform:scale(1);

opacity:1;

}

}

@keyframes pulse{

0%{

transform:scale(1);

}

50%{

transform:scale(1.15);

}

100%{

transform:scale(1);

}

}

.btn-facebook{

display:flex;
justify-content:center;
align-items:center;
gap:12px;

width:100%;

padding:16px 20px;

margin:20px auto;

background:#1877F2;

color:#fff;

border-radius:14px;

font-weight:700;

font-size:18px;

text-decoration:none;

transition:.25s;

box-shadow:0 8px 20px rgba(24,119,242,.35);

}

.btn-facebook:hover{

background:#1666d1;

color:#fff;

transform:translateY(-2px);

}
body::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: 0.04;
    z-index: 99999;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
}

/* ==========================================================
   RESPONSIVE OPTIMISATION LAYER
   Les Secrets de Laon
========================================================== */


/* ------------------------------
   Très petits smartphones
   320px - 360px
------------------------------ */

@media (max-width:360px){

    .homepage-container,
    .episodes-container,
    .game-riddle-page,
    .orientation-container{
        padding-left:12px;
        padding-right:12px;
    }


    .title-large{
        font-size:2.4rem;
    }


    .main-title{
        letter-spacing:1px;
    }


    .episode-title{
        font-size:1.15rem;
    }


    .card-content{
        padding:16px;
    }


    .btn,
    .btn-start-adventure,
    .btn-validate{
        font-size:.85rem;
        padding:12px;
    }


    .compass-rose{
        width:120px;
        height:120px;
    }


    .medieval-map{
        height:220px;
    }


    .score-circle{
        width:140px;
        height:140px;
    }


    .score-current{
        font-size:2rem;
    }

}



/* ------------------------------
   Smartphones standards
   361px - 480px
------------------------------ */

@media (min-width:361px) and (max-width:480px){


    .hero{
        max-width:420px;
    }


    .episode-card{
        min-height:220px;
    }


    .parchment-container,
    .parchment-card{
        padding:25px 18px;
    }


    .navigation-zone{
        padding-top:20px;
    }


    .compass-rose{
        width:140px;
        height:140px;
    }


}



/* ------------------------------
   Tablettes portrait
   481px - 768px
------------------------------ */

@media (min-width:481px){


    .homepage-container,
    .episodes-container,
    .orientation-container,
    .game-riddle-page,
    .end-page-container{

        padding-left:30px;
        padding-right:30px;

    }


    .hero{
        max-width:520px;
    }


    .episodes-list{
        max-width:600px;
    }


    .episode-card{

        min-height:250px;

    }


    .parchment-container,
    .parchment-card{

        max-width:600px;

    }


    .riddle-text{

        font-size:1.05rem;

    }


    .medieval-map{

        height:350px;

    }


}



/* ------------------------------
   Tablettes paysage / petits PC
   769px+
------------------------------ */

@media (min-width:769px){


    .mobile-nav{

        max-width:600px;
        left:50%;
        transform:translateX(-50%);
        border-radius:20px 20px 0 0;

    }


    .episodes-container,
    .contact-page-container,
    .credits-page-container{

        max-width:700px;
        margin:auto;

    }


    .episode-card:hover{

        transform:translateY(-4px);

    }


    .btn:hover,
    .btn-start-adventure:hover,
    .btn-validate:hover{

        filter:brightness(1.1);

    }


}



/* ------------------------------
   Grands écrans
------------------------------ */

@media (min-width:1200px){


    .homepage-container{

        background-position:center 35%;

    }


    .hero{

        max-width:600px;

    }


    .title-large{

        font-size:4rem;

    }


    .episodes-list{

        max-width:800px;

    }


    .episode-card{

        border-radius:18px;

    }


}



/* ------------------------------
   Hauteurs faibles
   Téléphones en paysage
------------------------------ */

@media (max-height:650px){


    .hero{

        justify-content:flex-start;
        padding-top:30px;

    }


    .main-title{

        margin-bottom:8px;

    }


    .typewriter-text{

        margin-bottom:15px;

    }


    .compass-rose{

        width:110px;
        height:110px;

    }


    .medieval-map{

        height:180px;

    }


}



/* ------------------------------
   Gestion encoche téléphone
   iOS / Android modernes
------------------------------ */

@supports(padding:max(0px)){


    .mobile-nav{

        padding-bottom:max(
            env(safe-area-inset-bottom),
            10px
        );

        height:calc(
            65px + env(safe-area-inset-bottom)
        );

    }


    .homepage-container,
    .game-riddle-page{

        padding-bottom:
        calc(
            30px + env(safe-area-inset-bottom)
        );

    }

}



/* ------------------------------
   Accessibilité tactile
------------------------------ */

@media (pointer:coarse){


    button,
    .btn,
    a.btn,
    .nav-item,
    .choice-item{

        min-height:44px;

    }


}



/* ------------------------------
   Réduction animations
   utilisateurs sensibles
------------------------------ */

@media(prefers-reduced-motion:reduce){


    *,
    *::before,
    *::after{

        animation-duration:.01ms!important;
        animation-iteration-count:1!important;
        transition-duration:.01ms!important;

    }

}