/* HAYY - MODERN APP STYLE v2.0 */
:root {
    /* Mode Clair - Palette épurée */
    --primary: #6366f1;    /* Violet HAYY */
    --secondary: #4f46e5;  /* Violet Foncé */
    --bg: #f3f4f6;         /* Gris très clair */
    --card-bg: #ffffff;
    --text: #111827;       /* Noir profond */
    --text-muted: #6b7280;
    --border: #e5e7eb;
    --shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

@media (prefers-color-scheme: dark) {
    :root {
        /* Mode Nuit - Visibilité parfaite */
        --bg: #111827;          /* Noir bleuté profond */
        --card-bg: #1f2937;      /* Gris très sombre */
        --text: #f9fafb;         /* Blanc cassé */
        --text-muted: #9ca3af;
        --border: #374151;
        --shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
    }
}

/* Base & Typography */
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.5;
    -webkit-tap-highlight-color: transparent;
    transition: background 0.3s ease, color 0.3s ease;
}

/* Container "Mobile-First" */
main {
    max-width: 480px;
    margin: 0 auto;
    padding: 20px;
    padding-bottom: 80px; /* Espace pour le footer */
}

/* Header & Menu */
nav {
    background-color: var(--card-bg);
    border-bottom: 1px solid var(--border);
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}
.logo { font-size: 1.2rem; font-weight: 800; color: var(--primary); }

/* Cartes Modernes */
.card {
    background-color: var(--card-bg);
    border-radius: 16px;
    padding: 20px;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}
h2 { font-size: 1.4rem; font-weight: 700; margin-bottom: 10px; }
p { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 15px; }

/* Formulaires Stylisés */
label { display: block; font-weight: 600; margin-bottom: 8px; font-size: 0.9rem; }
input, select {
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    border: 2px solid var(--border);
    background-color: var(--card-bg);
    color: var(--text);
    font-size: 1rem;
    transition: border-color 0.2s;
}
input:focus { border-color: var(--primary); outline: none; }

/* Boutons Modernes avec Animation */
.btn-primary {
    display: block;
    width: 100%;
    background-color: var(--primary);
    color: white;
    text-align: center;
    padding: 14px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.2s, transform 0.1s;
}
.btn-primary:hover { background-color: var(--secondary); }
.btn-primary:active { transform: scale(0.98); }

/* Footer & Mentions */
footer {
    text-align: center;
    padding: 20px;
    font-size: 0.85rem;
    color: var(--text-muted);
}
footer a { color: var(--primary); text-decoration: none; font-weight: 600; }

/* Styles spécifiques Caméra (pour Inscription) */
#video, #preview { width: 100%; border-radius: 12px; border: 2px solid var(--border); background: #000; }

/* Style pour le mini-logo HEYY! */
.mini-logo-container {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.mini-logo-icon {
    position: relative;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1e293b 0%, #4f46e5 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.3);
}

.mini-symbol {
    width: 18px;
    height: 18px;
    background: linear-gradient(135deg, #22d3ee 0%, #10b981 100%);
    -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z"/></svg>') no-repeat center;
    mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z"/></svg>') no-repeat center;
    mask-size: contain;
    -webkit-mask-size: contain;
    transform: rotate(180deg);
}

.mini-logo-text {
    color: var(--text);
    font-size: 1.2rem;
    font-weight: 900;
    letter-spacing: -1px;
    margin: 0;
}

.mini-exclamation {
    color: #10b981;
}
/* 1. On active l'effet radar sur le petit cercle */
.mini-logo-icon::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #22d3ee;
    opacity: 0.5;
    z-index: -1;
    /* On lance l'animation */
    animation: pulseRadarMini 2.5s infinite;
}

/* 2. On définit l'animation spécifique pour la barre de navigation */
@keyframes pulseRadarMini {
    0% { transform: scale(1); opacity: 0.5; }
    70% { transform: scale(1.6); opacity: 0; }
    100% { transform: scale(1.6); opacity: 0; }
}

/* 3. Optionnel : faire rebondir le point d'exclamation */
.mini-exclamation {
    display: inline-block;
    animation: bounceExclamationMini 1s infinite alternate;
}

@keyframes bounceExclamationMini {
    from { transform: translateY(0); }
    to { transform: translateY(-2px); }
}
