/* glass.css — Classes glassmorphism */

.glass {
    position: relative;
    background: var(--color-bg-surface);
    backdrop-filter: blur(var(--blur-md));
    -webkit-backdrop-filter: blur(var(--blur-md));
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
    overflow: clip;
}

.glass-strong {
    position: relative;
    background: var(--color-bg-surface-strong);
    backdrop-filter: blur(var(--blur-lg));
    -webkit-backdrop-filter: blur(var(--blur-lg));
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
    overflow: clip;
}

.glass-subtle {
    position: relative;
    background: var(--color-bg-surface-subtle);
    backdrop-filter: blur(var(--blur-sm));
    -webkit-backdrop-filter: blur(var(--blur-sm));
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-md);
    overflow: clip;
}

/* Fond global de l'application */
.app-bg {
    background-color: var(--color-bg-base);
    background-image: var(--gradient-mesh);
    background-attachment: fixed;
    position: relative;
    overflow-x: hidden;
}

/* Blobs lumineux — rendus via ::after sur les éléments glass (voir app.blade.php) */

/* Pointillage quadrillé — overlay de points noirs rapprochés */
/* Activé via la classe .dot-grid sur le body (toggle Alpine) */
.dot-grid::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image: radial-gradient(circle, rgba(0, 0, 0, 0.18) 1.05px, transparent 1.05px);
    background-size: 5px 5px;
    mask-image: linear-gradient(to bottom, transparent 0%, black 5%, black 95%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 5%, black 95%, transparent 100%);
}

/* Custom checkbox — remplace l'apparence native */
.cb {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 6px;
    border: 2px solid rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.04);
    cursor: pointer;
    position: relative;
    transition: background 0.25s, border-color 0.25s, box-shadow 0.25s;
    flex-shrink: 0;
}
/* Ripple ring (::before) + checkmark (::after) */
.cb::before,
.cb::after {
    content: '';
    position: absolute;
}
.cb::before {
    inset: -2px;
    border-radius: 8px;
    border: 2px solid transparent;
    pointer-events: none;
}
.cb::after {
    left: 5.5px;
    top: 2px;
    width: 5.5px;
    height: 10px;
    border: solid transparent;
    border-width: 0 2.5px 2.5px 0;
    border-radius: 0 0 1px 0;
    transform: rotate(45deg) scale(0);
    opacity: 0;
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.2s ease;
}
.cb:hover {
    border-color: rgba(var(--accent-rgb), 0.6);
    background: rgba(var(--accent-rgb), 0.12);
    box-shadow: 0 0 12px rgba(var(--accent-rgb), 0.15);
}
.cb:checked {
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    border-color: transparent;
    box-shadow: 0 0 14px rgba(var(--accent-rgb), 0.35);
    animation: cb-squish 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.cb:checked::before {
    animation: cb-ripple 0.5s ease-out;
}
.cb:checked::after {
    border-color: white;
    transform: rotate(45deg) scale(1);
    opacity: 1;
    animation: cb-tick 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) 0.08s backwards;
}
.cb:indeterminate {
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    border-color: transparent;
    box-shadow: 0 0 14px rgba(var(--accent-rgb), 0.35);
}
.cb:indeterminate::after {
    left: 4px;
    top: 7.5px;
    width: 10px;
    height: 2.5px;
    border: none;
    background: white;
    border-radius: 2px;
    transform: none;
    opacity: 1;
}
.cb:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.35), 0 0 16px rgba(var(--accent-rgb), 0.2);
}
.cb:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    filter: grayscale(0.5);
}
/* Squish elastique du checkbox */
@keyframes cb-squish {
    0%   { transform: scale(1); }
    25%  { transform: scale(0.8); }
    55%  { transform: scale(1.15); }
    80%  { transform: scale(0.95); }
    100% { transform: scale(1); }
}
/* Checkmark spring (overshoot puis settle) */
@keyframes cb-tick {
    0%   { transform: rotate(45deg) scale(0); opacity: 0; }
    100% { transform: rotate(45deg) scale(1); opacity: 1; }
}
/* Anneau ripple qui s'expand et disparait */
@keyframes cb-ripple {
    0%   { inset: 0; border-color: rgba(var(--accent-rgb), 0.6); }
    100% { inset: -7px; border-color: transparent; border-radius: 12px; }
}

/* Tooltip — div flottant positionné par JS (échappe aux overflow) */
#tooltip {
    position: fixed;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.3;
    white-space: nowrap;
    color: #fff;
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: var(--z-tooltip);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.15s ease, transform 0.15s ease;
    transform: translateY(4px);
}
#tooltip.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Surface interactive (hover lift + glow) */
.glass-interactive {
    background: var(--color-bg-surface);
    backdrop-filter: blur(var(--blur-md));
    -webkit-backdrop-filter: blur(var(--blur-md));
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
    transition: all var(--transition-base);
    cursor: pointer;
}

.glass-interactive:hover {
    background: var(--color-bg-surface-hover);
    border-color: var(--color-border-hover);
    transform: translateY(-2px);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        var(--shadow-glow-brand);
}

/* ============================================================================
   Filtres avancés — Chips & panneau de filtre (datatable)
   ============================================================================ */

/* Chip de filtre actif */
.chip-filter {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    border-radius: 8px;
    background: rgba(var(--accent-rgb), 0.12);
    border: 1px solid rgba(var(--accent-rgb), 0.25);
    font-size: 12px;
    line-height: 1.3;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}
.chip-filter:hover {
    background: rgba(var(--accent-rgb), 0.22);
    border-color: rgba(var(--accent-rgb), 0.40);
}
.chip-field {
    color: rgba(255, 255, 255, 0.45);
}
.chip-op {
    color: rgba(var(--accent-light-rgb), 0.85);
    font-weight: 600;
}
.chip-value {
    color: #fff;
    font-weight: 500;
}
.chip-remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border-radius: 4px;
    font-size: 14px;
    line-height: 1;
    color: rgba(255, 255, 255, 0.30);
    transition: color 0.15s, background 0.15s;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
}
.chip-remove:hover {
    color: rgba(255, 255, 255, 0.80);
    background: rgba(255, 255, 255, 0.10);
}

/* Bouton de sélection du panneau filtre */
.dt-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    border-radius: 8px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.50);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.15s;
    max-width: 180px;
    white-space: nowrap;
}
.dt-filter-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.70);
}
.dt-filter-btn-active {
    color: rgba(255, 255, 255, 0.80);
    border-color: rgba(var(--accent-rgb), 0.30);
    background: rgba(var(--accent-rgb), 0.08);
}

/* Input du panneau filtre */
.dt-filter-input {
    padding: 7px 12px;
    border-radius: 8px;
    font-size: 13px;
    color: #fff;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    outline: none;
    transition: all 0.15s;
    min-width: 120px;
}
.dt-filter-input:focus {
    border-color: rgba(var(--accent-rgb), 0.50);
    box-shadow: 0 0 0 2px rgba(var(--accent-rgb), 0.15);
}
/* Fix date input colors for dark theme */
.dt-filter-input::-webkit-calendar-picker-indicator {
    filter: invert(1);
}

/* Dropdown du panneau filtre */
.dt-filter-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 4px;
    min-width: 100%;
    max-height: 200px;
    overflow-y: auto;
    border-radius: 10px;
    padding: 4px 0;
    background: rgba(10, 10, 18, 0.95);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.10);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    z-index: var(--z-dropdown);
}
.dt-filter-dropdown-item {
    display: block;
    width: 100%;
    text-align: left;
    padding: 7px 14px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.60);
    transition: all 0.1s;
    border: none;
    background: none;
    white-space: nowrap;
}
.dt-filter-dropdown-item:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
}

/* ============================================================================
   Saved Queries — Requêtes sauvegardées par l'utilisateur
   ============================================================================ */

.saved-query-card {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 11px;
    border-radius: 9px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: all 0.15s;
}
.saved-query-card:hover {
    border-color: rgba(255, 255, 255, 0.12);
    filter: brightness(1.2);
}
.saved-query-card.sq-active {
    transform: scale(1.02);
}
.saved-query-card.sq-dragging {
    opacity: 0.4;
    transform: scale(0.95);
}

/* Ringing animation for alert bell icon (alarm clock style) */
@keyframes sq-bell-ring {
    0%   { transform: rotate(0deg); }
    5%   { transform: rotate(16deg); }
    10%  { transform: rotate(-16deg); }
    15%  { transform: rotate(14deg); }
    20%  { transform: rotate(-14deg); }
    25%  { transform: rotate(10deg); }
    30%  { transform: rotate(-10deg); }
    35%  { transform: rotate(6deg); }
    40%  { transform: rotate(-4deg); }
    45%  { transform: rotate(0deg); }
    100% { transform: rotate(0deg); }
}
.sq-alert-bell {
    animation: sq-bell-ring 1.5s ease-in-out infinite;
    transform-origin: top center;
}

/* ============================================================================
   Animated Border — bordure dégradée rotative (arc-en-ciel)
   Usage : ajouter la classe .animated-border sur n'importe quel élément.
   Variables CSS optionnelles :
     --ab-bg:     couleur de fond interne (défaut: transparent → hérite du parent)
     --ab-width:  épaisseur de la bordure (défaut: 2px)
     --ab-radius: arrondi (défaut: 1rem)
     --ab-speed:  durée d'un tour (défaut: 4s)
     --ab-colors: couleurs du dégradé (défaut: arc-en-ciel)
   ============================================================================ */

@property --ab-angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

@keyframes ab-rotate {
    to { --ab-angle: 360deg; }
}

.animated-border {
    --_bg: var(--ab-bg, rgba(255, 255, 255, 0.02));
    --_width: var(--ab-width, 2px);
    --_radius: var(--ab-radius, 1rem);
    --_speed: var(--ab-speed, 4s);
    --_gradient: var(--ab-gradient, conic-gradient(
        from var(--ab-angle),
        #ef4444, #f97316, #eab308, #22c55e,
        #3b82f6, #8b5cf6, #ec4899, #ef4444
    ));
    background:
        linear-gradient(var(--_bg), var(--_bg)) padding-box,
        var(--_gradient) border-box;
    border: var(--_width) solid transparent;
    border-radius: var(--_radius);
    animation: ab-rotate var(--_speed) linear infinite;
}

/* Variante focus — pseudo-element sur le wrapper, ne touche pas le background de l'input.
   Ajouter .ab-focus-wrap sur le <div> parent (doit etre position:relative).
   Le mask CSS decoupe l'interieur : seul l'anneau de bordure est visible.
   Variables CSS optionnelles : --ab-width, --ab-radius, --ab-speed, --ab-gradient */
.ab-focus-wrap:has(:focus)::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--ab-radius, 8px);
    border: var(--ab-width, 2px) solid transparent;
    background: var(--ab-gradient, conic-gradient(
        from var(--ab-angle),
        #ef4444, #f97316, #eab308, #22c55e,
        #3b82f6, #8b5cf6, #ec4899, #ef4444
    )) border-box;
    -webkit-mask:
        linear-gradient(#fff 0 0) padding-box,
        linear-gradient(#fff 0 0) border-box;
    -webkit-mask-composite: xor;
    mask:
        linear-gradient(#fff 0 0) padding-box,
        linear-gradient(#fff 0 0) border-box;
    mask-composite: exclude;
    animation: ab-rotate var(--ab-speed, 4s) linear infinite;
    pointer-events: none;
}

/* Presets de trainee — une couleur avec degrade vers transparent
   Usage : ajouter .ab-trail-{color} sur le meme element que .animated-border, .ab-focus-wrap ou .ab-hover-wrap
   Couleurs : white, indigo, emerald, amber, rose, purple, cyan */
.ab-trail-white.animated-border {
    --_gradient: conic-gradient(from var(--ab-angle),
        transparent 0deg, transparent 240deg, rgba(255,255,255,0.6) 330deg, rgba(255,255,255,0.9) 360deg);
}
.ab-trail-indigo.animated-border {
    --_gradient: conic-gradient(from var(--ab-angle),
        transparent 0deg, transparent 240deg, #818cf8 330deg, #6366f1 360deg);
}
.ab-trail-emerald.animated-border {
    --_gradient: conic-gradient(from var(--ab-angle),
        transparent 0deg, transparent 240deg, #6ee7b7 330deg, #10b981 360deg);
}
.ab-trail-amber.animated-border {
    --_gradient: conic-gradient(from var(--ab-angle),
        transparent 0deg, transparent 240deg, #fcd34d 330deg, #f59e0b 360deg);
}
.ab-trail-rose.animated-border {
    --_gradient: conic-gradient(from var(--ab-angle),
        transparent 0deg, transparent 240deg, #fda4af 330deg, #f43f5e 360deg);
}
.ab-trail-purple.animated-border {
    --_gradient: conic-gradient(from var(--ab-angle),
        transparent 0deg, transparent 240deg, #c4b5fd 330deg, #8b5cf6 360deg);
}
.ab-trail-cyan.animated-border {
    --_gradient: conic-gradient(from var(--ab-angle),
        transparent 0deg, transparent 240deg, #67e8f9 330deg, #06b6d4 360deg);
}

/* Trail focus — utilise offset-path pour une vitesse uniforme le long du perimetre.
   Remplace le conic-gradient ::before par un element ::after qui voyage sur le bord. */
.ab-trail-indigo.ab-focus-wrap:has(:focus) {
    overflow: hidden;
    border-radius: 8px;
}
.ab-trail-indigo.ab-focus-wrap:has(:focus)::before {
    display: none;
}

@keyframes ab-travel {
    to { offset-distance: 100%; }
}

.ab-trail-indigo.ab-focus-wrap:has(:focus)::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, transparent, #818cf8 60%, #6366f1);
    border-radius: 2px;
    box-shadow: 0 0 8px 2px rgba(99, 102, 241, 0.4);
    offset-path: inset(0 round 8px);
    offset-distance: 0%;
    offset-rotate: auto;
    offset-anchor: 100% 50%;
    animation: ab-travel var(--ab-speed, 3s) linear infinite;
    pointer-events: none;
}

/* Hover variant — trainee coloree au survol (pour cards, boutons)
   Utilise conic-gradient + mask CSS : la trainee epouse la bordure sans probleme de coins.
   Ajouter .ab-trail-{color} .ab-hover-wrap sur l'element (doit etre position:relative).
   --_ab-h-light / --_ab-h-strong : couleurs de la trainee (definies par chaque preset) */
.ab-hover-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    border: 2px solid transparent;
    background: conic-gradient(
        from var(--ab-angle),
        transparent 0deg, transparent 300deg, var(--_ab-h-light) 345deg, var(--_ab-h-strong) 360deg
    ) border-box;
    -webkit-mask:
        linear-gradient(#fff 0 0) padding-box,
        linear-gradient(#fff 0 0) border-box;
    -webkit-mask-composite: xor;
    mask:
        linear-gradient(#fff 0 0) padding-box,
        linear-gradient(#fff 0 0) border-box;
    mask-composite: exclude;
    animation: ab-rotate var(--ab-speed, 6s) linear infinite;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.ab-hover-wrap:hover::after,
.ab-hover-wrap.ab-active:hover::after { opacity: 1; }
.ab-hover-wrap.ab-active::after { opacity: 0.5; }
.ab-hover-wrap.ab-active-strong::after { opacity: 0.85; }

/* Hover color presets */
.ab-trail-white.ab-hover-wrap   { --_ab-h-light: rgba(255,255,255,0.2);  --_ab-h-strong: rgba(255,255,255,0.4); }
.ab-trail-indigo.ab-hover-wrap  { --_ab-h-light: rgba(129,140,248,0.25); --_ab-h-strong: rgba(99,102,241,0.4); }
.ab-trail-emerald.ab-hover-wrap { --_ab-h-light: rgba(110,231,183,0.25); --_ab-h-strong: rgba(16,185,129,0.4); }
.ab-trail-amber.ab-hover-wrap   { --_ab-h-light: rgba(252,211,77,0.45);  --_ab-h-strong: rgba(245,158,11,0.7); }

.ab-trail-rose.ab-hover-wrap    { --_ab-h-light: rgba(253,164,175,0.25); --_ab-h-strong: rgba(244,63,94,0.4); }
.ab-trail-purple.ab-hover-wrap  { --_ab-h-light: rgba(196,181,253,0.25); --_ab-h-strong: rgba(139,92,246,0.4); }
.ab-trail-cyan.ab-hover-wrap    { --_ab-h-light: rgba(103,232,249,0.25); --_ab-h-strong: rgba(6,182,212,0.4); }

/* ============================================================================
   Input — glow focus + validation
   ============================================================================ */
.input-glow {
    transition: border-color 0.2s, box-shadow 0.2s;
}
.input-glow:focus {
    box-shadow: 0 0 0 1px rgba(var(--accent-rgb),0.5), 0 0 12px 2px rgba(var(--accent-rgb),0.3);
}
.input-glow.input-invalid {
    border-color: rgba(248, 113, 113, 0.5) !important;
}
.input-glow.input-invalid:focus {
    box-shadow: 0 0 0 1px rgba(248,113,113,0.5), 0 0 12px 2px rgba(248,113,113,0.3) !important;
}
.input-error {
    display: none;
    font-size: 12px;
    color: #f87171;
    margin-top: 4px;
}
.input-error.visible { display: block; }

/* Custom select dropdown */
.select-dropdown {
    background: rgba(10, 10, 18, 0.95);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.10);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}
.select-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 7px 14px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.60);
    transition: background 0.1s, color 0.1s;
    border: none;
    background: none;
    text-align: start;
    cursor: pointer;
}
.select-option:hover,
.select-option-hl {
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
}
.select-option-active {
    color: rgba(var(--accent-light-rgb), 0.85);
    background: rgba(var(--accent-rgb), 0.12);
}
.select-option-active:hover {
    background: rgba(var(--accent-rgb), 0.18);
}

/* Select chips (multi-select mode chips) */
.select-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 6px 2px 8px;
    border-radius: 4px;
    background: rgba(var(--accent-rgb), 0.20);
    color: var(--accent-light);
    font-size: 12px;
    white-space: nowrap;
    line-height: 1.4;
}
.select-chip-remove {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 14px;
    border-radius: 2px;
    cursor: pointer;
    transition: background 0.1s, color 0.1s;
}
.select-chip-remove:hover {
    background: rgba(255, 255, 255, 0.10);
    color: #fff;
}

/* Email domain hint — indicateur non bloquant (vert = connu, jaune = inconnu) */
.email-domain-hint {
    display: none;
    font-size: 12px;
    margin-top: 4px;
    gap: 4px;
    align-items: center;
}
.email-domain-hint.visible { display: inline-flex; }
.email-domain-hint.valid { color: #4ade80; }
.email-domain-hint.unknown { color: #fbbf24; }

/* Bouton toggle filtres : caché sur desktop, visible sur mobile via mobile.css */
.dt-qf-mob-toggle { display: none; }

/* ═══════════════════════════════════════════════════
   Modal panel — background + blur (déplacé depuis inline styles)
   La variable --modal-rgb est définie via style="" sur chaque composant.
   ═══════════════════════════════════════════════════ */
.modal-panel {
    background: linear-gradient(135deg, rgba(var(--modal-rgb, 99, 102, 241), 0.08), rgba(0, 0, 0, 0.70));
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
}

/* ============================================================================
   Mobile performance — désactive backdrop-filter (trop lourd pour GPU mobile)
   Le rendu reste quasi identique car les fonds sont déjà opaques à 90-95%.
   ============================================================================ */
@media (max-width: 768px) {
    .glass,
    .glass-strong,
    .glass-subtle,
    .glass-interactive,
    .dt-filter-dropdown,
    .dt-filter-title,
    .dt-filter-panel,
    #tooltip,
    [style*="backdrop-filter"]:not(.topbar-blur):not(.sidebar):not(.keep-blur) {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }

    /* Blobs glass : désactiver sur mobile (performance GPU) */
    .glass::after,
    .glass-strong::after,
    .glass-subtle::after,
    .section-glow::after,
    .sidebar::after,
    .topbar-blur::after {
        display: none !important;
    }
}

/* ═══════════════════════════════════════════════════
   Google Places Autocomplete — thème glassmorphism
   ═══════════════════════════════════════════════════ */

.pac-container {
    background: rgba(15, 15, 35, 0.97) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 0.5rem !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.04) !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 0.875rem !important;
    margin-top: 4px !important;
    z-index: 10000 !important;
    padding: 4px 0 !important;
}

.pac-item {
    border-top: 1px solid rgba(255, 255, 255, 0.04) !important;
    padding: 10px 14px !important;
    cursor: pointer !important;
    color: rgba(255, 255, 255, 0.6) !important;
    background: transparent !important;
    line-height: 1.5 !important;
}

.pac-item:first-child {
    border-top: none !important;
}

.pac-item:hover,
.pac-item-selected {
    background: rgba(var(--accent-rgb), 0.12) !important;
}

.pac-item-query {
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 0.875rem !important;
}

.pac-matched {
    color: var(--accent-light) !important;
    font-weight: 500 !important;
}

.pac-icon {
    background-image: none !important;
    width: 0 !important;
    margin: 0 !important;
}

.pac-icon-marker {
    display: none !important;
}

/* Powered by Google — discret */
.pac-container::after {
    background-image: none !important;
    content: '' !important;
    height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
}
