/* ============================================================
   Depass Info — styles custom complémentaires à Tailwind
   ============================================================ */

/* Smooth scrolling pour les ancres */
html {
    scroll-behavior: smooth;
}

/* Focus visible : assure une bordure de focus visible partout */
*:focus-visible {
    outline: 2px solid #E07A3E;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Boutons d'action — variante par défaut */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.15s ease;
    cursor: pointer;
    text-decoration: none;
    border: 1px solid transparent;
}
.btn-primary {
    background-color: #1E3A5F;
    color: #fff;
}
.btn-primary:hover {
    background-color: #172c47;
}
.btn-secondary {
    background-color: #fff;
    color: #1E3A5F;
    border-color: #1E3A5F;
}
.btn-secondary:hover {
    background-color: #f3f6fb;
}
.btn-accent {
    background-color: #E07A3E;
    color: #fff;
}
.btn-accent:hover {
    background-color: #c66428;
}

/* Inputs formulaire */
.form-input,
.form-select,
.form-textarea {
    display: block;
    width: 100%;
    padding: 0.625rem 0.875rem;
    border: 1px solid #cbd5e1;
    border-radius: 0.375rem;
    background-color: #fff;
    font-size: 0.95rem;
    line-height: 1.4;
    color: #1f2937;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    border-color: #1E3A5F;
    box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.12);
    outline: none;
}
.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #334155;
    margin-bottom: 0.375rem;
}
.form-error {
    color: #b91c1c;
    font-size: 0.825rem;
    margin-top: 0.25rem;
}

/* Carte pack tarifaire */
.pack-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}
.pack-card:hover {
    border-color: #1E3A5F;
    box-shadow: 0 10px 30px -10px rgba(30, 58, 95, 0.15);
}
.pack-card.featured {
    border-color: #E07A3E;
    box-shadow: 0 10px 30px -10px rgba(224, 122, 62, 0.2);
}

/* Hero pattern subtil */
.hero-pattern {
    background-image:
        radial-gradient(circle at 20% 20%, rgba(30,58,95,0.04) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(224,122,62,0.04) 0%, transparent 50%);
}

/* Animations légères au scroll (utiliser .fade-in puis JS add .visible) */
.fade-in {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Bandeau d'alerte */
.alert {
    padding: 0.875rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.925rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
}
.alert-success { background: #ecfdf5; color: #065f46; border-color: #a7f3d0; }
.alert-error   { background: #fef2f2; color: #991b1b; border-color: #fecaca; }
.alert-info    { background: #eff6ff; color: #1e40af; border-color: #bfdbfe; }
.alert-warning { background: #fffbeb; color: #92400e; border-color: #fde68a; }

/* Tableaux */
.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}
.table th,
.table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}
.table th {
    background: #f8fafc;
    font-weight: 600;
    color: #475569;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.table tbody tr:hover {
    background: #f8fafc;
}

/* Print : factures */
@media print {
    .no-print { display: none !important; }
}

/* Ticketing : kbd visuel */
kbd {
    font-family: ui-monospace, SFMono-Regular, monospace;
    font-size: 0.8em;
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-bottom-width: 2px;
    border-radius: 3px;
    padding: 1px 5px;
}
