:root {
    --bg-color: #0d0d0d;
    --text-color: #f4f4f4;
    --accent-color: #ffb100; /* Jaune ambre chaleureux */
    --secondary-font: 'Playfair Display', serif;
}

body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Navigation */
nav {
    display: flex;
    justify-content: space-between;
    padding: 2rem 5%;
    align-items: center;
}

.logo {
    font-family: var(--secondary-font);
    font-size: 1.5rem;
    font-weight: bold;
}

nav ul { display: flex; list-style: none; gap: 2rem; }
nav a { text-decoration: none; color: white; font-size: 0.9rem; transition: 0.3s; }
nav a:hover { color: var(--accent-color); }

/* Hero Section */
header {
    height: 80vh;
    display: flex;
    align-items: center;
    padding: 0 10%;
}

.hero-content h1 {
    font-family: var(--secondary-font);
    font-size: 3.5rem;
    line-height: 1.2;
}

.hero-content span {
    color: var(--accent-color);
    font-style: italic;
}

.btn-main {
    display: inline-block;
    margin-top: 2rem;
    padding: 1rem 2rem;
    background: var(--accent-color);
    color: black;
    text-decoration: none;
    font-weight: bold;
    border-radius: 50px;
    transition: transform 0.3s;
}

.btn-main:hover { transform: scale(1.05); }

/* Animation de la lampe (Glow) */
.hero-image {
    position: relative;
    flex-grow: 1;
    display: flex;
    justify-content: center;
}

.glow-circle {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255,177,0,0.4) 0%, rgba(255,177,0,0) 70%);
    border-radius: 50%;
    filter: blur(20px);
    animation: pulse 4s infinite alternate;
}

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

/* Sections */
section { padding: 5rem 10%; text-align: center; }

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-top: 4rem;
}

.feature-card {
    padding: 2rem;
    border: 1px solid #333;
    border-radius: 15px;
    transition: 0.3s;
}

.feature-card:hover { border-color: var(--accent-color); }

/* Section Scanner */
#scanner-section {
    background: radial-gradient(circle, #1a1a1a 0%, #0d0d0d 100%);
    padding: 100px 5%;
}

.scanner-container {
    max-width: 600px;
    margin: 0 auto;
}

#camera-frame {
    width: 280px;
    height: 280px;
    margin: 40px auto;
    border: 2px solid var(--accent-color);
    border-radius: 40px;
    position: relative;
    overflow: hidden;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 30px rgba(255, 177, 0, 0.2);
}

/* Ligne de scan animée */
.scan-line {
    position: absolute;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, transparent, var(--accent-color), transparent);
    top: 0;
    z-index: 2;
    animation: scanMove 2.5s infinite linear;
}

@keyframes scanMove {
    0% { top: 0; }
    100% { top: 100%; }
}

/* Message de succès */
#scan-result {
    position: absolute;
    inset: 0;
    background: var(--accent-color);
    color: black;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    text-align: center;
    z-index: 5;
    transition: opacity 0.5s ease;
}

.hidden { opacity: 0; pointer-events: none; }

#scan-result .icon { font-size: 3rem; margin-bottom: 10px; }
#interactive-map {
    background: #050505;
    padding: 80px 5%;
    text-align: center;
}

.map-wrapper {
    position: relative;
    width: 100%;
    max-width: 900px;
    height: 500px;
    margin: 40px auto;
    background: url('https://www.transparenttextures.com/patterns/dark-matter.png'); /* Texture subtile */
    border: 1px solid #222;
    border-radius: 20px;
    overflow: hidden;
}

/* Les points lumineux */
.point {
    position: absolute;
    width: 12px;
    height: 12px;
    background: var(--accent-color);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 15px var(--accent-color);
    z-index: 10;
    transition: transform 0.3s ease;
}

.point:hover {
    transform: scale(1.8);
    background: #fff;
}

/* Animation de pulsation autour du point */
.point::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border: 1px solid var(--accent-color);
    border-radius: 50%;
    animation: pulseMap 2s infinite;
}

@keyframes pulseMap {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(4); opacity: 0; }
}

/* Lignes de connexion SVG */
.map-connections {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.connection-path {
    fill: none;
    stroke: rgba(255, 177, 0, 0.2);
    stroke-width: 1.5;
    stroke-dasharray: 5;
    animation: dash 20s linear infinite;
}

@keyframes dash {
    to { stroke-dashoffset: -100; }
}

/* Tooltip (fenêtre d'info) */
#map-tooltip {
    position: absolute;
    background: rgba(255, 255, 255, 0.95);
    color: #000;
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 0.85rem;
    pointer-events: none;
    z-index: 20;
    max-width: 200px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
}

.card-story {
    background: #fff;
    color: #1a1a1a;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(255,177,0,0.3);
    font-family: 'Courier New', Courier, monospace; /* Style "reçu" ou "machine à écrire" */
    line-height: 1.4;
    text-align: left;
    max-width: 90%;
    margin: 20px auto;
    border-left: 5px solid var(--accent-color);
    white-space: pre-wrap; /* Pour garder les sauts de ligne du QR Code */
}

.sparkle {
    display: block;
    text-align: center;
    font-size: 2rem;
    margin-bottom: 10px;
}
