/* DX Alert Theme */

:root {
    --dx-dark: #061426;
    --dx-dark-alt: #0b2340;
    --dx-blue: #0d6efd;
    --dx-blue-light: #1da1ff;
    --dx-orange: #ff8500;
    --dx-orange-dark: #e66f00;
    --dx-white: #ffffff;
    --dx-light: #f4f8fc;
}

/* Global */
body {
    background:
        radial-gradient(circle at top, rgba(29, 161, 255, 0.18), transparent 32rem),
        linear-gradient(180deg, #eaf2fb 0%, #f4f8fc 45%, #ffffff 100%);
    color: var(--dx-dark);
}

/* Header / navbar */
.navbar,
.dx-header {
    background: linear-gradient(135deg, var(--dx-dark), var(--dx-dark-alt));
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.navbar-brand,
.navbar .nav-link {
    color: var(--dx-white) !important;
}

.navbar .nav-link:hover {
    color: var(--dx-orange) !important;
}

/* Logo */
.dx-logo {
    height: 42px;
    width: auto;
}

/* Hero / cards */
.bg-light,
.card {
    border: none;
    border-radius: 18px;
    box-shadow: 0 8px 24px rgba(6, 20, 38, 0.12);
}

/* Titres */
h1, h2, h3, h4 {
    color: var(--dx-dark);
    font-weight: 700;
}

/* Boutons Bootstrap adaptés */
.btn-primary {
    background: var(--dx-blue);
    border-color: var(--dx-blue);
}

.btn-primary:hover {
    background: var(--dx-blue-light);
    border-color: var(--dx-blue-light);
}

.btn-success {
    background: var(--dx-orange);
    border-color: var(--dx-orange);
    color: var(--dx-white);
}

.btn-success:hover {
    background: var(--dx-orange-dark);
    border-color: var(--dx-orange-dark);
    color: var(--dx-white);
}

.btn-outline-primary {
    color: var(--dx-blue);
    border-color: var(--dx-blue);
}

.btn-outline-primary:hover {
    background: var(--dx-blue);
    border-color: var(--dx-blue);
    color: var(--dx-white);
}

/* Formulaires */
.form-control:focus,
.form-select:focus {
    border-color: var(--dx-blue-light);
    box-shadow: 0 0 0 0.2rem rgba(29, 161, 255, 0.25);
}

/* Alertes */
.alert-success {
    background: rgba(13, 110, 253, 0.12);
    border-color: var(--dx-blue);
    color: var(--dx-dark);
}

.alert-warning {
    background: rgba(255, 133, 0, 0.12);
    border-color: var(--dx-orange);
    color: var(--dx-dark);
}

/* Bouton notifications */
#push-subscription-button {
    font-weight: 600;
    border-radius: 999px;
    padding: 0.7rem 1.4rem;
}

/* Footer */
footer,
.dx-footer {
    background: var(--dx-dark);
    color: var(--dx-white);
}
/* DX Alert V2 */
.card a,
a.card {
    color: var(--dx-dark);
}

.card a:hover,
a.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(6, 20, 38, 0.16);
}

.badge.text-bg-primary,
.progress-bar {
    background-color: var(--dx-blue) !important;
}

.table-hover tbody tr:hover {
    background-color: rgba(29, 161, 255, 0.08);
}

#spots-map {
    background: var(--dx-dark-alt);
}

.feature-list i {
    width: 24px;
    color: var(--dx-orange);
}

.dx-home-hero {
    background:
        linear-gradient(135deg, rgba(6, 20, 38, 0.96), rgba(11, 35, 64, 0.94)),
        radial-gradient(circle at top right, rgba(29, 161, 255, 0.35), transparent 28rem);
    color: var(--dx-white);
    box-shadow: 0 12px 34px rgba(6, 20, 38, 0.22);
}

.dx-home-hero h1,
.dx-home-hero .lead,
.dx-home-hero p {
    color: var(--dx-white);
}

.dx-home-hero .btn-outline-primary {
    color: var(--dx-white);
    border-color: var(--dx-blue-light);
}

.dx-home-hero .btn-outline-primary:hover {
    background: var(--dx-blue-light);
    color: var(--dx-white);
}
/* Pages auth : login, register, forgot-password, reset-password */
html,
body {
    min-height: 100%;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.auth-page {
    flex: 1 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 0;
    box-sizing: border-box;
}

footer,
.dx-footer {
    flex-shrink: 0;
    margin-top: auto;
}

.auth-card {
    width: 100%;
    max-width: 520px;
}

.auth-card .card {
    border-radius: 18px;
}

.auth-card h1 {
    text-align: center;
    margin-bottom: 1.5rem;
}

.auth-card .btn {
    width: 100%;
}

.contact-hp {
    position: absolute;
    left: -9999px;
    opacity: 0;
    height: 0;
    width: 0;
    pointer-events: none;
}

.dx-footer a:hover {
    color: var(--dx-orange) !important;
}

.faq-image-container {
    overflow: hidden;
    max-height: 85vh;
    border-radius: 15px;
    touch-action: none;
    user-select: none;
}

.faq-image {
    cursor: zoom-in;
    transition: transform .15s ease;
    transform-origin: center center;
    max-width: 100%;
    user-select: none;
    -webkit-user-drag: none;
}

.faq-image.dragging {
    cursor: grabbing;
    transition: none;
}
