/* EchoPass — App CSS (styles personnalisés, tailwind.css chargé séparément) */
@import url('/assets/css/inter.css');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body { font-family: 'Inter', system-ui, sans-serif; }


input.iti__tel-input { padding-right: 0 !important; }

.nav-link        { color: #6b7280; transition: color .15s; }
.nav-link:hover  { color: #111827; }
.nav-link.active { color: #111827; font-weight: 500; }

.mobile-nav-link        { display: block; padding: .625rem 0; font-size: .875rem; color: #4b5563; transition: color .15s; }
.mobile-nav-link:hover  { color: #111827; }
.mobile-nav-link.active { color: #111827; font-weight: 500; }
.iti:has(.iti__tel-input) { width: 100%; }

@media (max-width: 640px) {
    form .grid.grid-cols-2 { grid-template-columns: 1fr !important; }
}

/* ── Toggle switch ──────────────────────────────────────────────────────────── */
.toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .875rem 1rem;
    border-radius: .75rem;
    border: 1px solid #e5e7eb;
    transition: background .15s;
}
.toggle-row:not(.toggle-row--locked):hover { background: #f9fafb; }
.toggle-switch { display: inline-flex; flex-shrink: 0; cursor: pointer; }
.toggle-switch input { position: absolute; opacity: 0; width: 0; height: 0; }

.toggle-track {
    position: relative;
    width: 44px;
    height: 24px;
    border-radius: 9999px;
    background: #d1d5db;
    box-shadow: inset 0 1px 3px rgba(0,0,0,.12);
    transition: background .2s ease;
}
.toggle-switch input:checked ~ .toggle-track { background: #2563eb; }
.toggle-switch input:focus-visible ~ .toggle-track { outline: 2px solid #93c5fd; outline-offset: 2px; }

.toggle-thumb {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,.22);
    transition: transform .2s ease;
}
.toggle-switch input:checked ~ .toggle-track .toggle-thumb { transform: translateX(20px); }

/* Toggle always-on (obligatoire) */
.toggle-track--forced {
    background: #2563eb;
    opacity: .5;
    cursor: not-allowed;
}
.toggle-track--forced .toggle-thumb { transform: translateX(20px); }
