/* ========================================
   HUNTSTERPIECES - LANDING PAGE STYLES
   Urban Adventure Color Palette 🎨
   ======================================== */

/* Color Variables */
:root {
    --primary: #FF6B35;      /* Orange aventure */
    --secondary: #004E89;    /* Bleu marine */
    --accent: #F7B801;       /* Or */
    --dark: #1A1A2E;         /* Bleu-noir */
    --light: #F8F9FA;        /* Blanc cassé */
    --text: #2D3436;         /* Texte principal */
}

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

body {
    font-family: "Stack Sans Headline", -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    line-height: 1.6;
    color: var(--text);
    background-color: var(--light);
}

/* Typography - Momo Trust Display pour les titres */
h1, h2, h3, h4, h5, h6 {
    font-family: "Momo Trust Display", sans-serif;
    font-weight: 400;
    font-style: normal;
}

/* Hero Section with Interactive Map */
.hero {
    position: relative;
    color: white;
    padding: 0;
    text-align: center;
    height: 100vh; /* Hauteur fixe pour éviter le débordement */
    min-height: 100vh;
    display: flex;
    flex-direction: row; /* Horizontal sur desktop */
    justify-content: flex-start;
    align-items: stretch;
    overflow: hidden; /* Empêche le débordement */
}


/* Carte interactive - prend le reste de l'espace */
#demo-map {
    position: relative;
    flex: 1; /* Prend tout l'espace restant */
    height: 100vh;
    z-index: 1;
    opacity: 1;
    /* Pas de filtre sur la carte */
}

/* Style personnalisé pour les tiles de la carte avec les couleurs du site */
.custom-map-tiles {
    filter: none; /* Suppression du filtre pour une carte claire */
}

/* Overlay désactivé */
.hero-overlay {
    display: none; /* Pas d'overlay du tout */
}

/* Contenu hero - SIDEBAR sur desktop */
.hero-content {
    position: relative;
    z-index: 10;
    width: 450px; /* Largeur fixe pour le sidebar */
    flex-shrink: 0;
    pointer-events: auto;
    
    /* Glassmorphism moderne */
    backdrop-filter: blur(20px) saturate(180%);
    background: linear-gradient(135deg, rgba(0, 78, 137, 0.95) 0%, rgba(26, 31, 58, 0.92) 100%);
    padding: 60px 40px;
    box-shadow: 
        4px 0 40px rgba(0, 0, 0, 0.3),
        inset -1px 0 0 rgba(255, 255, 255, 0.1);
    
    /* Alignement */
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center; /* Centré sur desktop */
    align-items: center; /* Centre les éléments horizontalement */
    
    /* Animation d'entrée */
    animation: slideInLeft 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideInLeft {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Tous les éléments sont cliquables */
.hero-content * {
    pointer-events: auto;
}

/* Contrôles Leaflet visibles et fonctionnels */
.leaflet-control-container {
    z-index: 15;
    filter: none !important;
}

/* Positionne les contrôles loin du sidebar */
.hero .leaflet-control-container .leaflet-right {
    right: 20px;
}

.hero .leaflet-control-container .leaflet-left {
    left: 20px;
}

/* Personnalisation des boutons de zoom avec les couleurs du site */
.leaflet-control-zoom a {
    background: #004E89 !important; /* Utiliser background au lieu de background-color pour être sûr */
    background-color: #004E89 !important; /* Bleu principal du site */
    background-image: none !important; /* Supprime les dégradés par défaut de Leaflet */
    color: #FFFFFF !important;
    border: none !important; /* Pas de bordure */
    border-radius: 8px !important;
    font-weight: bold !important;
    font-size: 18px !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
    padding: 0 !important;
    width: 30px !important;
    height: 30px !important;
    text-decoration: none !important;
    filter: saturate(1.5) !important; /* Augmente la saturation pour un bleu plus vif */
    opacity: 1 !important;
}

.leaflet-control-zoom a:hover {
    background-color: #FF6B35 !important; /* Orange au survol */
    background-image: none !important;
    color: #FFFFFF !important;
    border: none !important;
    transform: scale(1.05) !important;
    box-shadow: 0 6px 15px rgba(255, 107, 53, 0.4) !important;
}

.leaflet-control-zoom a:active {
    background-color: #E55A2B !important; /* Orange plus foncé au clic */
    background-image: none !important;
}

/* Annuler le filtre sur les contrôles Leaflet */
.leaflet-control-zoom {
    border: none !important;
    box-shadow: none !important;
    filter: none !important; /* Pas de filtre sur les contrôles */
}

/* Espacement entre les boutons + et - */
.leaflet-control-zoom-in {
    margin-bottom: 5px !important;
}

/* Notification discrète pour le chargement */
.map-notification {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-100px);
    z-index: 1000;
    opacity: 0;
    transition: all 0.3s ease-out;
}

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

.notification-content {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    padding: 12px 20px;
    border-radius: 50px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: #333;
    font-weight: 500;
}

.notification-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Popups modernes et élégants dans le thème du site */
.custom-popup .leaflet-popup-content-wrapper {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 20px;
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(0, 78, 137, 0.1);
    padding: 0 !important;
    overflow: hidden;
    border: 3px solid transparent;
    background-image: 
        linear-gradient(white, white),
        linear-gradient(135deg, var(--primary), var(--accent));
    background-origin: border-box;
    background-clip: padding-box, border-box;
}

.custom-popup .leaflet-popup-content {
    margin: 0 !important;
    font-family: "Stack Sans Headline", -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.custom-popup .leaflet-popup-tip {
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.custom-popup .leaflet-popup-close-button {
    background: rgba(255, 107, 53, 0.1);
    color: var(--primary) !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    width: 32px !important;
    height: 32px !important;
    padding: 0 !important;
    top: 12px !important;
    right: 12px !important;
    border-radius: 50%;
    opacity: 1;
    transition: all 0.3s ease;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.custom-popup .leaflet-popup-close-button:hover {
    background: var(--primary);
    color: white !important;
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.4);
}

/* Contenu popup centré */
.popup-clean {
    padding: 28px 24px 24px 24px;
    min-width: 280px;
    text-align: center;
    position: relative;
}

/* Badge type d'épreuve - redesigné */
.popup-type {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    margin: 0 auto 18px auto;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.popup-type::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.popup-type:hover::before {
    left: 100%;
}

.popup-icon {
    font-size: 1.2rem;
    line-height: 1;
}

.popup-label {
    line-height: 1;
}

/* Couleurs vives et modernes par type */
.popup-type.enigma {
    background: linear-gradient(135deg, var(--primary), #ff8354);
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.popup-type.photo {
    background: linear-gradient(135deg, #f5576c, #ff7a8a);
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.popup-type.validation {
    background: linear-gradient(135deg, var(--secondary), #0066b3);
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.popup-type.object {
    background: linear-gradient(135deg, #38d389, #4ade80);
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.popup-type.info {
    background: linear-gradient(135deg, var(--accent), #ffc933);
    color: var(--dark);
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.3);
}

/* Nom du lieu */
.popup-location {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 14px;
    line-height: 1.3;
    font-family: "Momo Trust Display", sans-serif;
}

/* Description du challenge */
.popup-challenge {
    font-size: 0.95rem;
    color: #2d3436;
    line-height: 1.7;
    margin-bottom: 16px;
    padding: 0 8px;
}

/* Explication du fonctionnement */
.popup-explanation {
    font-size: 0.85rem;
    color: #636e72;
    line-height: 1.5;
    font-style: italic;
    padding: 14px 12px 4px 12px;
    border-top: 2px solid rgba(255, 107, 53, 0.1);
    background: rgba(255, 107, 53, 0.03);
    border-radius: 8px;
    margin: 0 -4px -4px -4px;
}

/* Popup "Vous êtes ici !" - Style ultra moderne */
.user-popup .leaflet-popup-content-wrapper {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--dark) 100%);
    border: 0;
    box-shadow: 
        0 15px 50px rgba(0, 78, 137, 0.5),
        0 0 0 3px rgba(247, 184, 1, 0.5),
        0 0 20px rgba(247, 184, 1, 0.3);
    position: relative;
    overflow: visible;
}

/* Effet de pulse autour du popup */
.user-popup .leaflet-popup-content-wrapper::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: linear-gradient(135deg, var(--accent), var(--primary));
    border-radius: 20px;
    z-index: -1;
    animation: pulse-glow 2s ease-in-out infinite;
}

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

.user-popup .leaflet-popup-tip {
    background: var(--secondary);
    box-shadow: 0 2px 10px rgba(0, 78, 137, 0.3);
}

.user-popup .leaflet-popup-close-button {
    background: rgba(247, 184, 1, 0.2);
    color: var(--accent) !important;
    border: 2px solid rgba(247, 184, 1, 0.3);
}

.user-popup .leaflet-popup-close-button:hover {
    background: var(--accent);
    color: var(--dark) !important;
    transform: rotate(90deg) scale(1.1);
    border-color: var(--accent);
}

.popup-user-location {
    padding: 24px 28px;
    text-align: center;
    min-width: 220px;
    position: relative;
}

/* Effet d'étoiles scintillantes en arrière-plan */
.popup-user-location::before {
    content: '✨';
    position: absolute;
    top: 10px;
    left: 15px;
    font-size: 1.2rem;
    animation: twinkle 2s ease-in-out infinite;
    opacity: 0.7;
}

.popup-user-location::after {
    content: '✨';
    position: absolute;
    bottom: 10px;
    right: 15px;
    font-size: 1rem;
    animation: twinkle 2s ease-in-out infinite 0.5s;
    opacity: 0.7;
}

@keyframes twinkle {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

.user-location-icon {
    font-size: 3rem;
    margin-bottom: 12px;
    animation: bounce-rotate 2s ease-in-out infinite;
    display: inline-block;
    filter: drop-shadow(0 4px 8px rgba(247, 184, 1, 0.5));
}

@keyframes bounce-rotate {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-10px) rotate(-5deg);
    }
    75% {
        transform: translateY(-10px) rotate(5deg);
    }
}

.user-location-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: white;
    margin-bottom: 8px;
    font-family: "Momo Trust Display", sans-serif;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, white, var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.user-location-subtitle {
    font-size: 0.85rem;
    color: rgba(247, 184, 1, 0.95);
    font-weight: 600;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero h1 {
    font-size: 3.2rem;
    margin-bottom: 20px;
    font-weight: 400;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.4);
    letter-spacing: -0.02em;
    line-height: 1.1;
    text-align: center;
}

.hero p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0.95;
    text-align: center;
}

/* Hero Label - Above H1 */
.hero-label {
    display: inline-block;
    background: rgba(247, 184, 1, 0.25);
    color: var(--accent);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 20px;
    border: 2px solid var(--accent);
    text-shadow: none;
}

/* Hero Description - More specific than p */
.hero-description {
    font-size: 1.1rem;
    margin-bottom: 25px;
    opacity: 0.95;
    line-height: 1.6;
    text-align: center;
}

/* Hero Stats - Quick Info Pills */
.hero-stats {
    display: flex;
    justify-content: center; /* Centré */
    gap: 12px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.hero-stats span {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    padding: 10px 18px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    white-space: nowrap;
}

.hero-stats span:hover {
    background: rgba(255, 255, 255, 0.22);
    transform: translateY(-2px);
    border-color: var(--accent);
}

/* Hero Buttons Container */
.hero-buttons {
    margin-top: 10px;
    display: flex;
    gap: 15px;
    flex-direction: column;
    width: 100%; /* Prend toute la largeur disponible */
}

/* CTA Buttons */
.cta-button {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 16px 40px;
    font-size: 1.05rem;
    font-weight: 600;
    font-family: "Stack Sans Headline", sans-serif;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.4);
    margin: 0;
    letter-spacing: 0.01em;
    border: 2px solid transparent;
    text-align: center;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(255, 107, 53, 0.6);
    background: #FF8354;
}

.cta-button.secondary {
    background: transparent;
    color: white;
    border: 2px solid var(--accent);
}

.cta-button.secondary:hover {
    background: var(--accent);
    color: var(--dark);
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(247, 184, 1, 0.5);
}

/* Features Section */
.features {
    padding: 80px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.features h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
    color: var(--secondary);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

.feature-card {
    text-align: center;
    padding: 30px;
    border-radius: 15px;
    background: #f8f9fa;
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.feature-icon {
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #333;
}

.feature-card p {
    color: #666;
    line-height: 1.8;
}

/* Stats Section */
.stats {
    background: #f8f9fa;
    padding: 60px 20px;
    text-align: center;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.stat-item h3 {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 10px;
}

.stat-item p {
    color: #666;
    font-size: 1.1rem;
}

/* Demo Section - Phone Mockup */
.demo {
    padding: 80px 20px;
    margin: 0;
    background: linear-gradient(180deg, var(--light) 0%, #ffffff 100%);
}

.demo h2 {
    font-size: 2.5rem;
    color: var(--secondary);
    text-align: center;
    margin-bottom: 30px;
}

/* Toggle Buttons iOS Style */
.view-toggle {
    display: flex;
    justify-content: center;
    gap: 0;
    margin: 0 auto 60px auto;
    background: rgba(0, 0, 0, 0.05);
    padding: 4px;
    border-radius: 50px;
    width: fit-content;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.toggle-btn {
    padding: 12px 30px;
    border: none;
    background: transparent;
    color: #666;
    font-size: 1rem;
    font-weight: 600;
    font-family: "Stack Sans Headline", sans-serif;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.toggle-icon {
    font-size: 1.2rem;
}

.toggle-btn.active {
    background: white;
    color: var(--primary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.toggle-btn:hover:not(.active) {
    color: var(--primary);
}

/* Demo Views */
.demo-view {
    display: none;
    animation: fadeIn 0.5s ease;
}

.demo-view.active {
    display: block;
}

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

/* Phone Demo Container */
.phone-demo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 80px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
    position: relative;
}

/* Phone Mockup */
.phone-mockup {
    flex-shrink: 0;
    position: relative;
    z-index: 2; /* En dessous des lignes */
}

.phone-frame {
    width: 300px;
    height: 600px;
    background: #1a1a1a;
    border-radius: 40px;
    padding: 12px;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    position: relative;
}

.phone-notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 28px;
    background: #1a1a1a;
    border-radius: 0 0 20px 20px;
    z-index: 3;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: white;
    border-radius: 32px;
    overflow: visible; /* Important pour que les points puissent déborder */
    position: relative;
}

.phone-screen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 32px;
}

/* Points sur l'écran - Positionnés avec % pour rester responsive */
.screen-dot {
    position: absolute;
    width: 16px;
    height: 16px;
    background: var(--primary);
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 2px 12px rgba(255, 107, 53, 0.6);
    z-index: 15; /* Au-dessus des lignes */
    transform: translate(-50%, -50%); /* Centre le point sur la position */
    animation: pulse 2s ease-in-out infinite;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0; /* Caché par défaut sur desktop */
    font-weight: 700;
    color: white;
}

.screen-dot:hover,
.screen-dot.highlight {
    transform: translate(-50%, -50%) scale(1.3);
    box-shadow: 0 4px 20px rgba(255, 107, 53, 0.9);
    animation: none; /* Stop pulse on hover */
}

/* Ajoute le numéro via data-id */
.screen-dot::before {
    content: attr(data-id);
    font-size: 0; /* Caché par défaut */
}

.screen-dot:hover {
    transform: translate(-50%, -50%) scale(1.3);
    box-shadow: 0 4px 20px rgba(255, 107, 53, 0.8);
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 2px 12px rgba(255, 107, 53, 0.6), 0 0 0 0 rgba(255, 107, 53, 0.4);
    }
    50% {
        box-shadow: 0 4px 20px rgba(255, 107, 53, 0.8), 0 0 0 8px rgba(255, 107, 53, 0);
    }
}

/* SVG Lines Container - couvre toute la zone demo */
.annotation-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10; /* Au-dessus de tout pour être visible */
    overflow: visible;
}

.line-svg {
    stroke: var(--primary);
    stroke-width: 2.5;
    stroke-dasharray: 6, 4;
    opacity: 0.8;
    transition: all 0.3s ease;
}

/* Annotations Container */
.annotations-left,
.annotations-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 60px;
    justify-content: center;
    z-index: 20; /* Au-dessus des lignes et du téléphone */
    position: relative;
}

.annotations-left {
    align-items: flex-end;
}

.annotations-right {
    align-items: flex-start;
}

/* Dark Mode pour toute la section Demo */
.demo.dark-mode {
    background: linear-gradient(135deg, #0f0f1e 0%, #1a1a2e 100%);
    transition: background 0.5s ease;
}

.demo.dark-mode h2 {
    color: white;
}

.demo.dark-mode .view-toggle {
    background: rgba(255, 255, 255, 0.1);
}

.demo.dark-mode .toggle-btn {
    color: rgba(255, 255, 255, 0.7);
}

.demo.dark-mode .toggle-btn.active {
    background: rgba(255, 255, 255, 0.15);
    color: var(--accent);
}

.demo.dark-mode .toggle-btn:hover:not(.active) {
    color: var(--accent);
}

/* Bouton GitHub en mode sombre */
.demo.dark-mode .cta-button {
    background: var(--accent);
    color: var(--dark);
    box-shadow: 0 10px 30px rgba(247, 184, 1, 0.4);
}

.demo.dark-mode .cta-button:hover {
    background: #ffc933;
    box-shadow: 0 15px 40px rgba(247, 184, 1, 0.5);
}

/* Admin View */
#admin-view {
    padding: 0;
    margin: 0;
}

/* Desktop Demo Container (same structure as phone) */
.desktop-demo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 80px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
    position: relative;
}

/* Desktop Mockup */
.desktop-mockup {
    flex-shrink: 0;
    position: relative;
    z-index: 2;
}

.desktop-frame {
    width: 700px;
    background: #1a1a1a;
    border-radius: 12px 12px 0 0;
    padding: 0;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    position: relative;
    overflow: hidden;
}

.desktop-topbar {
    height: 35px;
    background: #2a2a2a;
    border-radius: 12px 12px 0 0;
    display: flex;
    align-items: center;
    padding: 0 15px;
}

.desktop-dots {
    display: flex;
    gap: 8px;
}

.desktop-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #444;
}

.desktop-dots span:nth-child(1) {
    background: #ff5f57;
}

.desktop-dots span:nth-child(2) {
    background: #ffbd2e;
}

.desktop-dots span:nth-child(3) {
    background: #28ca42;
}

.desktop-screen {
    width: 100%;
    height: 450px;
    background: white;
    overflow: visible;
    position: relative;
}

.desktop-screen img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: top;
}

/* Annotation Cards */
.annotation-card {
    background: white;
    padding: 20px 25px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border: 2px solid var(--light);
    transition: all 0.3s ease;
    max-width: 280px;
    opacity: 0;
    animation: fadeInAnnotation 0.6s ease forwards;
    cursor: pointer;
}

.annotation-card[data-id="1"] { animation-delay: 0.2s; }
.annotation-card[data-id="2"] { animation-delay: 0.3s; }
.annotation-card[data-id="3"] { animation-delay: 0.4s; }
.annotation-card[data-id="4"] { animation-delay: 0.5s; }
.annotation-card[data-id="5"] { animation-delay: 0.6s; }
.annotation-card[data-id="6"] { animation-delay: 0.7s; }
.annotation-card[data-id="7"] { animation-delay: 0.2s; }
.annotation-card[data-id="8"] { animation-delay: 0.3s; }
.annotation-card[data-id="9"] { animation-delay: 0.4s; }
.annotation-card[data-id="10"] { animation-delay: 0.5s; }
.annotation-card[data-id="11"] { animation-delay: 0.6s; }
.annotation-card[data-id="12"] { animation-delay: 0.7s; }

/* Admin cards - Dark theme */
#admin-view .annotation-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

#admin-view .annotation-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--accent);
    box-shadow: 0 12px 40px rgba(247, 184, 1, 0.3);
}

#admin-view .annotation-card h4 {
    color: white;
}

#admin-view .annotation-card p {
    color: rgba(255, 255, 255, 0.8);
}

/* Points admin - couleur différente */
#admin-view .screen-dot {
    background: var(--accent);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 2px 12px rgba(247, 184, 1, 0.6);
}

#admin-view .screen-dot:hover,
#admin-view .screen-dot.highlight {
    transform: translate(-50%, -50%) scale(1.3);
    box-shadow: 0 4px 20px rgba(247, 184, 1, 0.9);
    animation: none; /* Stop pulse on hover */
}

@keyframes pulseAdmin {
    0%, 100% {
        box-shadow: 0 2px 12px rgba(247, 184, 1, 0.6), 0 0 0 0 rgba(247, 184, 1, 0.4);
    }
    50% {
        box-shadow: 0 4px 20px rgba(247, 184, 1, 0.8), 0 0 0 8px rgba(247, 184, 1, 0);
    }
}

#admin-view .screen-dot {
    animation: pulseAdmin 2s ease-in-out infinite;
}

/* Lignes admin - couleur accent */
#admin-view .line-svg {
    stroke: var(--accent);
}

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

.annotation-card:hover {
    border-color: var(--primary);
    box-shadow: 0 8px 30px rgba(255, 107, 53, 0.2);
    transform: translateY(-5px);
}

.annotation-card h4 {
    font-size: 1.1rem;
    color: var(--secondary);
    margin: 0 0 8px 0;
    font-weight: 600;
}

.annotation-card p {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
    line-height: 1.5;
}


/* Use Cases Section */
.use-cases {
    background: #ffffff; /* Fond blanc */
    color: var(--text); /* Texte foncé pour le contraste */
    padding: 80px 20px;
    position: relative;
    overflow: hidden;
}

/* Effet de fond subtil */
.use-cases::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 107, 53, 0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.use-cases h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
    position: relative;
    z-index: 1;
    color: var(--secondary); /* Titre en bleu */
}

.use-case-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.use-case-card {
    background: rgba(0, 78, 137, 0.8); /* Fond bleu semi-transparent */
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

/* Image de fond floue pour chaque carte */
.use-case-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: blur(2px);
    opacity: 0.3; /* Plus visible pour mieux voir l'image */
    z-index: 0;
    transition: all 0.4s ease;
}

.use-case-card[data-bg="corporate-events"]::after {
    background-image: url('./images/corporate-events.png');
}

.use-case-card[data-bg="educational-tours"]::after {
    background-image: url('./images/educational-tours.png');
}

.use-case-card[data-bg="private-events"]::after {
    background-image: url('./images/private-events.png');
}

.use-case-card[data-bg="cultural-discovery"]::after {
    background-image: url('./images/cultural-discovery.png');
}

/* Au hover, l'image devient un peu plus visible */
.use-case-card:hover::after {
    filter: blur(6px);
    opacity: 0.4; /* Plus visible au hover */
}

/* Effet de brillance au hover */
.use-case-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 107, 53, 0.2) 50%, transparent 70%);
    transform: translateX(-100%) translateY(-100%) rotate(45deg);
    transition: transform 0.6s ease;
    z-index: 1;
}

.use-case-card:hover::before {
    transform: translateX(100%) translateY(100%) rotate(45deg);
}

.use-case-card:hover {
    transform: translateY(-10px) scale(1.02);
    background: rgba(0, 78, 137, 0.95); /* Bleu plus opaque au hover */
    border-color: var(--accent);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.25),
        0 0 30px rgba(247, 184, 1, 0.3);
}

.use-case-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    position: relative;
    z-index: 2;
    transition: color 0.3s ease;
    min-height: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: 1.3;
    color: #ffffff; /* Titre en blanc */
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.use-case-card:hover h3 {
    color: var(--primary); /* Orange au hover */
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.use-case-card p {
    position: relative;
    z-index: 2;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.95); /* Texte blanc */
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

/* Tech Stack Section */
.tech-stack {
    padding: 60px 20px;
    text-align: center;
}

.tech-stack h3 {
    font-size: 1.5rem;
    margin-bottom: 30px;
    color: #666;
}

.tech-badges {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}

.tech-badge {
    background: var(--primary);
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 600;
}

/* Contact Section */
.contact {
    padding: 80px 20px;
    text-align: center;
    background: #f8f9fa;
}

.contact h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--secondary);
}

.contact p {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 40px;
}

.contact-info {
    font-size: 1.3rem;
    color: var(--primary);
    font-weight: 600;
}

/* Footer */
footer {
    background: #2d3748;
    color: white;
    text-align: center;
    padding: 30px 20px;
}

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

footer a:hover {
    text-decoration: underline;
    color: var(--primary);
}

/* Responsive Design */

/* Tablet responsive (769px - 1024px) */
@media (max-width: 1024px) and (min-width: 769px) {
    .demo {
        padding-left: 30px;
        padding-right: 30px;
    }

    .phone-demo-container,
    .desktop-demo-container {
        gap: 30px;
        padding: 40px 10px;
    }

    .phone-frame {
        width: 280px;
        height: 560px;
    }

    .desktop-frame {
        width: 450px;
    }

    .desktop-screen {
        height: 300px;
    }
    
    .desktop-screen img {
        object-fit: contain; /* Affiche l'image entière sans la couper */
        object-position: top; /* Aligne en haut pour voir le header */
    }

    .annotation-card {
        max-width: 180px;
        padding: 15px 18px;
    }

    .annotation-card h4 {
        font-size: 0.95rem;
    }

    .annotation-card p {
        font-size: 0.8rem;
        line-height: 1.4;
    }

    .screen-dot {
        width: 14px;
        height: 14px;
    }
}

/* Petit écran (1024px - 1280px) */
@media (max-width: 1280px) and (min-width: 1025px) {
    .demo {
        padding-left: 40px;
        padding-right: 40px;
    }

    .desktop-demo-container {
        gap: 50px;
    }

    .desktop-frame {
        width: 550px;
    }

    .desktop-screen {
        height: 350px;
    }
    
    .desktop-screen img {
        object-fit: contain; /* Affiche l'image entière sans la couper */
        object-position: top; /* Aligne en haut pour voir le header */
    }

    .annotation-card {
        max-width: 240px;
    }
}

/* Mobile responsive */
@media (max-width: 768px) {
    /* Hero Section mobile - BOTTOM SHEET DESIGN */
    .hero {
        min-height: 100vh;
        padding: 0; /* Pas de padding pour que la carte prenne tout l'espace */
        display: flex;
        flex-direction: column;
        justify-content: flex-end; /* Pousse le contenu en bas */
    }

    .hero-content {
        padding: 20px 18px 25px 18px;
        background: rgba(0, 78, 137, 0.95);
        margin: 0;
        margin-top: -10vh; /* Chevauche la carte de 10% de la hauteur de l'écran */
        border-radius: 25px 25px 0 0;
        box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.3);
        position: relative;
        width: 100%;
        max-width: 100%;
        overflow: hidden;
        /* Animation d'entrée douce */
        animation: slideUpBottom 0.6s cubic-bezier(0.4, 0, 0.2, 1);
        /* Force le bon rendu des coins arrondis */
        -webkit-mask-image: -webkit-radial-gradient(white, black);
        mask-image: radial-gradient(white, black);
        transform: translateZ(0);
        will-change: transform;
    }
    
    /* Indicateur de swipe en haut de la carte */
    .hero-content::before {
        content: '';
        position: absolute;
        top: 10px;
        left: 50%;
        transform: translateX(-50%);
        width: 40px;
        height: 4px;
        background: rgba(255, 255, 255, 0.4);
        border-radius: 2px;
    }
    
    @keyframes slideUpBottom {
        from {
            transform: translateY(100%);
            opacity: 0;
        }
        to {
            transform: translateY(0);
            opacity: 1;
        }
    }

    .hero h1 {
        font-size: 1.8rem; /* Plus gros maintenant qu'on a de la place */
        line-height: 1.1;
        margin-bottom: 8px;
        margin-top: 5px; /* Espace après le swipe indicator */
    }
    
    .hero-label {
        padding: 6px 14px !important;
        font-size: 0.7rem !important;
        margin-bottom: 10px !important;
    }
    
    .hero-description {
        font-size: 0.9rem !important; /* Plus lisible */
        margin-bottom: 12px !important;
        opacity: 0.95 !important;
    }

    /* Stats hero - en ligne horizontale */
    .hero-stats {
        gap: 6px !important;
        margin-bottom: 15px !important;
        justify-content: center;
        flex-wrap: nowrap;
        overflow-x: auto;
    }
    
    .hero-stats span {
        padding: 7px 10px !important;
        font-size: 0.7rem !important;
        white-space: nowrap;
        flex-shrink: 0;
    }
    
    /* Boutons CTA en ligne (côte à côte) */
    .hero-buttons {
        display: flex;
        flex-direction: row !important; /* Côte à côte */
        gap: 10px !important;
        align-items: stretch;
        max-width: 100%;
        margin: 0 auto;
    }

    .hero-buttons .cta-button {
        padding: 12px 16px !important;
        font-size: 0.85rem !important;
        flex: 1;
        margin: 0 !important;
        white-space: nowrap;
    }
    
    .hero-buttons .cta-button.secondary {
        flex: 0.9; /* Légèrement plus petit */
    }


    /* Carte démonstration mobile - PLEINE VISIBILITÉ */
    #demo-map {
        opacity: 1 !important;
        filter: none !important; /* Aucun filtre */
    }
    
    /* Overlay hero transparent pour laisser voir la carte */
    .hero-overlay {
        background: transparent !important;
        display: none; /* Complètement désactivé sur mobile */
    }
    
    /* Contrôles Leaflet positionnés pour ne pas être cachés par la bottom sheet */
    .hero .leaflet-control-container .leaflet-top {
        top: 20px !important;
    }
    
    .hero .leaflet-control-container .leaflet-right {
        right: 15px !important;
    }

    /* Notification map loader mobile */
    .map-notification {
        top: 10px;
        font-size: 0.85rem;
    }

    /* Sections headers mobile */
    .features h2,
    .demo h2,
    .use-cases h2,
    .contact h2 {
        font-size: 1.8rem;
        margin-bottom: 40px;
    }

    /* Demo section mobile */
    .demo {
        padding: 60px 15px;
    }

    .feature-grid,
    .use-case-grid {
        grid-template-columns: 1fr;
    }

    .stat-item h3 {
        font-size: 2rem;
    }

    /* Toggle buttons responsive */
    .view-toggle {
        width: 95%;
        max-width: 350px;
        margin-bottom: 40px;
        padding: 4px;
        border-radius: 50px;
    }

    .toggle-btn {
        padding: 12px 16px;
        font-size: 0.85rem;
        gap: 0;
        flex: 1;
        white-space: nowrap;
        justify-content: center;
    }

    .toggle-icon {
        display: none; /* Cache les icônes sur mobile pour gagner de l'espace */
    }

    /* Mode sombre mobile */
    .demo.dark-mode h2 {
        color: white;
    }

    .demo.dark-mode .view-toggle {
        background: rgba(255, 255, 255, 0.1);
    }

    .demo.dark-mode .toggle-btn {
        color: rgba(255, 255, 255, 0.7);
    }

    .demo.dark-mode .toggle-btn.active {
        background: rgba(255, 255, 255, 0.15);
        color: var(--accent);
    }

    /* Phone Demo responsive */
    .phone-demo-container,
    .desktop-demo-container {
        flex-direction: column;
        gap: 30px;
        padding: 20px 15px;
    }

    .phone-mockup,
    .desktop-mockup {
        order: 1; /* Téléphone/Desktop en premier */
    }

    .phone-frame {
        width: 280px;
        height: 560px;
        margin: 0 auto;
    }

    .desktop-frame {
        width: 95%;
        max-width: 500px;
        margin: 0 auto;
    }

    .desktop-screen {
        height: 300px;
    }
    
    .desktop-screen img {
        object-fit: contain; /* Affiche l'image entière sans la couper */
        object-position: top; /* Aligne en haut pour voir le header */
    }

    /* Cache les lignes sur mobile */
    .annotation-lines {
        display: none;
    }

    /* Affiche les numéros dans les points - PLUS GROS */
    .screen-dot {
        width: 28px;
        height: 28px;
        border-width: 2px;
        animation: none; /* Pas de pulse sur mobile */
    }

    .screen-dot:hover,
    .screen-dot.highlight {
        transform: translate(-50%, -50%) scale(1.15);
        box-shadow: 0 4px 20px rgba(255, 107, 53, 0.9);
    }

    .screen-dot::before {
        font-size: 13px; /* Affiche le numéro */
        font-weight: 700;
    }

    /* Points admin mobile - couleur accent */
    #admin-view .screen-dot {
        background: var(--accent);
        border-color: rgba(255, 255, 255, 0.5);
    }

    #admin-view .screen-dot:hover,
    #admin-view .screen-dot.highlight {
        transform: translate(-50%, -50%) scale(1.15);
        box-shadow: 0 4px 20px rgba(247, 184, 1, 0.9);
    }

    #admin-view .screen-dot::before {
        color: var(--dark);
    }

    /* Colonnes gauche/droite fusionnées en une seule liste */
    .annotations-left,
    .annotations-right {
        display: contents; /* Rend les enfants directs du container parent */
    }

    /* Tri des cartes pour avoir l'ordre 1,2,3,4,5,6 */
    .annotation-card {
        width: 95%;
        max-width: 95%;
        text-align: left;
        padding: 15px 20px;
        position: relative;
        padding-left: 58px; /* Espace pour le numéro */
        margin: 0 auto 10px auto; /* Centré avec gap réduit */
    }
    
    .annotation-card[data-id="1"] { order: 11; }
    .annotation-card[data-id="2"] { order: 12; }
    .annotation-card[data-id="3"] { order: 13; }
    .annotation-card[data-id="4"] { order: 14; }
    .annotation-card[data-id="5"] { order: 15; }
    .annotation-card[data-id="6"] { order: 16; }
    .annotation-card[data-id="7"] { order: 17; }
    .annotation-card[data-id="8"] { order: 18; }
    .annotation-card[data-id="9"] { order: 19; }
    .annotation-card[data-id="10"] { order: 20; }
    .annotation-card[data-id="11"] { order: 21; }
    .annotation-card[data-id="12"] { order: 22; }

    /* Ajoute le numéro devant chaque carte */
    .annotation-card::before {
        content: attr(data-id);
        position: absolute;
        left: 20px;
        top: 15px;
        width: 28px;
        height: 28px;
        background: var(--primary);
        color: white;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: 700;
        font-size: 13px;
    }

    /* Admin cards mobile - numéro accent color */
    #admin-view .annotation-card::before {
        background: var(--accent);
        color: var(--dark);
    }

    /* Admin view mobile */
    #admin-view {
        margin: 0;
        padding: 0;
    }

    .demo.dark-mode #admin-view .annotation-card {
        background: rgba(255, 255, 255, 0.08);
        backdrop-filter: blur(10px);
        border-color: rgba(255, 255, 255, 0.15);
    }

    .demo.dark-mode #admin-view .annotation-card h4 {
        color: white;
    }

    .demo.dark-mode #admin-view .annotation-card p {
        color: rgba(255, 255, 255, 0.85);
    }

    .annotation-card h4 {
        font-size: 1rem;
        margin: 0 0 5px 0;
    }

    .annotation-card p {
        font-size: 0.85rem;
        margin: 0;
    }

    /* Bouton CTA dans la section demo */
    .demo .cta-button {
        width: 50%;
        max-width: 50%;
        padding: 14px 20px;
        font-size: 1rem;
        display: block;
        margin: 0 auto;
    }

    /* Bouton GitHub en mode sombre mobile */
    .demo.dark-mode .cta-button {
        background: var(--accent);
        color: var(--dark);
    }
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}


