/* web/public/css/style.css */
/* Custom styles complétant Tailwind */

/* Scrollbar sombre */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}
::-webkit-scrollbar-track {
    background: #0a0a0a;
}
::-webkit-scrollbar-thumb {
    background: #2a2a2a;
    border: 2px solid #0a0a0a;
}
::-webkit-scrollbar-thumb:hover {
    background: #3a3a3a;
}

/* Selection */
::selection {
    background: rgba(201, 169, 97, 0.3);
    color: #ffffff;
}

/* Anti-flash blanc lors du chargement Tailwind */
html {
    background: #0a0a0a;
}

/* Drapeaux ronds via flagcdn.com */
.gv-flag {
    display: inline-block;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #2a2a2a; /* fallback gris si l'image ne charge pas */
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.gv-flag-lg {
    width: 24px;
    height: 24px;
}

/* ─────────────────────────────────────────────────────────
   PANEL COULISSANT (éditeurs latéraux réutilisables)
   ─────────────────────────────────────────────────────────
   État "ouvert"      → visible (translateX(0), opacity 1)
   État "fermé"       → glissé à droite (translateX(100%), opacity 0)
   Ouverture          : 300ms
   Fermeture          : 250ms (un peu plus rapide, principe UX standard)
   Courbe             : cubic-bezier "ease-out" pour ouverture, "ease-in" pour fermeture
*/
.gv-slide-panel {
    transform: translateX(100%);
    opacity: 0;
    pointer-events: none;
    transition:
        transform 250ms cubic-bezier(0.4, 0, 1, 1),
        opacity 200ms cubic-bezier(0.4, 0, 1, 1);
    will-change: transform, opacity;
}
.gv-slide-panel.gv-slide-panel--open {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
    transition:
        transform 300ms cubic-bezier(0, 0, 0.2, 1),
        opacity 250ms cubic-bezier(0, 0, 0.2, 1);
}
