/* EventSika — Surfaces en relief, violet / bleu nuit.
   Charger après les CSS de pages. Activé uniquement par body.es-relief. */
:root {
    --es-surface: #172039;
    --es-surface-glass: #222c49;
    --es-page: #141b30;
    --es-surface-bottom: #182139;
    --es-soft: #111a30;
    --es-edge: rgba(196, 181, 253, .18);
    --es-highlight: rgba(184, 196, 255, .16);
    --es-ink: #f1f5ff;
    --es-muted: #afbdd6;
    --es-focus: #c4b5fd;
    --es-shadow: 12px 14px 25px #070c1d, -7px -7px 18px #35426466, inset 0 1px 1px #aabfff30;
    --es-shadow-small: 6px 7px 12px #060b1b, -3px -3px 10px #35426466, inset 0 1px 0 var(--es-highlight);
    --es-inset: inset 3px 4px 9px rgba(3, 7, 20, .36), inset -2px -2px 7px rgba(62, 76, 118, .12);
    --es-float: 0 20px 48px rgba(2, 6, 23, .48), inset 0 1px 0 var(--es-highlight);
}

html[data-theme="light"] {
    --es-surface: #f7f7ff;
    --es-surface-glass: #f8f7ff;
    --es-page: #e8e9f5;
    --es-surface-bottom: #eeeafa;
    --es-soft: #edf0fa;
    --es-edge: rgba(104, 85, 160, .16);
    --es-highlight: rgba(255, 255, 255, .95);
    --es-ink: #172033;
    --es-muted: #52617c;
    --es-focus: #6d28d9;
    --es-shadow: 12px 14px 25px #afb5d080, -7px -7px 18px #fff, inset 0 1px 1px #fff;
    --es-shadow-small: 6px 7px 12px #afb5d080, -3px -3px 10px #fff, inset 0 1px 0 var(--es-highlight);
    --es-inset: inset 3px 4px 9px rgba(91, 103, 141, .16), inset -2px -2px 7px rgba(255, 255, 255, .9);
    --es-float: 0 20px 48px rgba(63, 66, 109, .2), inset 0 1px 0 var(--es-highlight);
}

/* Panneaux neutres. Les cartes à photo/dégradé et les lignes de tableau ne sont pas aplaties. */
html body.es-relief .event-card,
html body.es-relief .popular-event-card,
html body.es-relief .category-card,
html body.es-relief .home-info-card,
html body.es-relief .audience-card,
html body.es-relief .role-card,
html body.es-relief .value-card,
html body.es-relief .user-card,
html body.es-relief .faq-card,
html body.es-relief .organizer-benefit-card,
html body.es-relief .type-card,
html body.es-relief .contact-form-card,
html body.es-relief .event-detail-card,
html body.es-relief .event-ticket-card,
html body.es-relief .reservation-card,
html body.es-relief .notifications-page .notification-item:not(.notification-unread),
html body.es-relief .notifications-page .notifications-empty,
html body.es-relief .features-page .feature-card:not(.featured),
html body.es-relief .features-page .security-content,
html body.es-relief .features-page .dashboard-card,
html body.es-relief .dashboard-stat-card,
html body.es-relief .dashboard-panel,
html body.es-relief .event-form-panel,
html body.es-relief .event-delete-card,
html body.es-relief .ticket-delete-card,
html body.es-relief .organizer-summary-card,
html body.es-relief .reservation-stat-card,
html body.es-relief .reservation-table-panel,
html body.es-relief .ao-page .ao-panel,
html body.es-relief .ao-page .ao-stats>div,
html body.es-relief .or-page .or-card,
html body.es-relief .sb-page .sb-card,
html body.es-relief .es-comments .es-comment,
html body.es-relief .es-comments .es-comment-form,
html body.es-relief .es-comments .es-comment-notice,
html body.es-relief .scan-card,
html body.es-relief .payment-container,
html body.es-relief .validation-card,
html body.es-relief .relief-panel {
    background: linear-gradient(145deg, var(--es-surface-glass), var(--es-surface-bottom)) !important;
    border: 1px solid var(--es-edge);
    border-radius: 28px;
    box-shadow: var(--es-shadow) !important;
}

/* Surfaces colorées : couleur conservée, ombre seulement. */
html body.es-relief .features-page .feature-card.featured,
html body.es-relief .cta-card,
html body.es-relief .visual-card,
html body.es-relief .hero-card,
html body.es-relief .notifications-page .notification-unread,
html body.es-relief .sb-page .sb-card.featured,
html body.es-relief .relief-colored {
    box-shadow: var(--es-shadow) !important;
}

/* Les textes neutres suivent le thème ; les liens, badges et statuts restent colorés. */
html body.es-relief .home-info-card h3,
html body.es-relief .category-card h3,
html body.es-relief .value-card h3,
html body.es-relief .role-card h3,
html body.es-relief .audience-card h3,
html body.es-relief .organizer-benefit-card h3,
html body.es-relief .type-card h3,
html body.es-relief .features-page .feature-card:not(.featured) h3,
html body.es-relief .dashboard-stat-label,
html body.es-relief .dashboard-stat-value,
html body.es-relief .dashboard-stat-number {
    color: var(--es-ink);
}

/* Icônes, puces et contrôles secondaires. */
html body.es-relief .how-section .step-icon,
html body.es-relief .features-page .feature-icon,
html body.es-relief .dashboard-stat-icon,
html body.es-relief .stat-icon,
html body.es-relief .category,
html body.es-relief .page-number,
html body.es-relief .page-arrow,
html body.es-relief .relief-small {
    box-shadow: var(--es-shadow-small) !important;
}

/* Champs creusés, avec contours de focus visibles. */
html body.es-relief .search-input,
html body.es-relief .search-box,
html body.es-relief .input-wrapper,
html body.es-relief .textarea-wrapper,
html body.es-relief .dashboard-form-control,
html body.es-relief .event-form-group input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
html body.es-relief .event-form-group textarea,
html body.es-relief .event-form-group select,
html body.es-relief .es-comments textarea,
html body.es-relief .es-comments select,
html body.es-relief .ao-page .ao-filters input,
html body.es-relief .ao-page .ao-filters select,
html body.es-relief .sb-page .sb-form input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
html body.es-relief .sb-page .sb-form select,
html body.es-relief .or-page textarea,
html body.es-relief .relief-input {
    box-shadow: var(--es-inset) !important;
    border-radius: 13px;
}

html body.es-relief .search-input:focus-within,
html body.es-relief .input-wrapper:focus-within,
html body.es-relief .textarea-wrapper:focus-within,
html body.es-relief .dashboard-form-control:focus-visible,
html body.es-relief .relief-input:focus-within {
    outline: 2px solid var(--es-focus);
    outline-offset: 3px;
}

/* Boutons : dégradés et couleurs d’action existants conservés. */
html body.es-relief .btn,
html body.es-relief .details-button,
html body.es-relief .features-btn,
html body.es-relief .organizer-btn,
html body.es-relief .about-btn,
html body.es-relief .reservations-explore-btn,
html body.es-relief .notifications-read-all,
html body.es-relief .ao-page .ao-button,
html body.es-relief .or-page .or-button,
html body.es-relief .sb-page .sb-btn,
html body.es-relief .scan-btn,
html body.es-relief .event-action-button,
html body.es-relief .event-form-back,
html body.es-relief .event-form-cancel,
html body.es-relief .dashboard-empty-button,
html body.es-relief .participant-view-button,
html body.es-relief .es-comments button,
html body.es-relief .relief-button {
    border-radius: 14px;
    box-shadow: var(--es-shadow-small) !important;
}

html body.es-relief .btn:active,
html body.es-relief .details-button:active,
html body.es-relief .features-btn:active,
html body.es-relief .relief-button:active {
    box-shadow: var(--es-inset) !important;
}

/* Header et menus : effets discrets sans modification des dimensions. */
html body.es-relief #esHeader .es-icon-button,
html body.es-relief #esHeader .es-login,
html body.es-relief #esHeader .es-register,
html body.es-relief #esHeader .es-account>summary,
html body.es-relief .dashboard-header-action,
html body.es-relief .dashboard-user {
    box-shadow: var(--es-shadow-small);
}

html body.es-relief #esHeader .es-dropdown,
html body.es-relief #esHeader .notification-dropdown,
html body.es-relief .dashboard-profile-menu,
html body.es-relief .dashboard-notification-menu {
    box-shadow: var(--es-float) !important;
    border-color: var(--es-edge);
}

html body.es-relief #esHeader.es-header {
    box-shadow: 0 6px 20px rgba(2, 6, 23, .12), inset 0 -1px 0 var(--es-edge);
}

html body.es-relief .dashboard-sidebar {
    box-shadow: 8px 0 26px rgba(2, 6, 23, .1);
}

/* Anneau d'étapes, image de fond et perspective du carrousel préservés. */
html body.es-relief #heroCarousel .hero-slide[data-position="0"] {
    box-shadow: 0 24px 60px rgba(2, 6, 23, .45), inset 0 1px 0 rgba(255, 255, 255, .25);
}

html body.es-relief :is(.relief-button, .relief-interactive):focus-visible {
    outline: 3px solid var(--es-focus);
    outline-offset: 4px;
}

@media (hover: hover) and (pointer: fine) {
    html body.es-relief :is(.event-card, .category-card, .home-info-card, .features-page .feature-card, .dashboard-stat-card, .relief-interactive):hover {
        box-shadow: var(--es-shadow), 0 0 0 1px var(--es-edge) !important;
    }
}

@media (max-width: 1060px) {
    html body.es-relief #esHeader .es-dropdown {
        box-shadow: none !important;
    }
}

@media (max-width: 700px) {
    html body.es-relief :is(.event-card, .dashboard-stat-card, .reservation-card, .relief-panel) {
        border-radius: 18px;
        box-shadow: var(--es-shadow-small) !important;
    }
}

@media (forced-colors: active) {
    html body.es-relief :is(.event-card, .dashboard-stat-card, .relief-panel, .relief-button) {
        border: 1px solid CanvasText;
    }
}

/* V3 : fond des pages abaissé visuellement, surfaces plus lumineuses au-dessus.
   Aucune règle ne touche aux photos, au hero ou à la connexion autonome. */
html body.es-relief,
html body.es-relief .dashboard-main,
html body.es-relief .events-page,
html body.es-relief .notifications-page,
html body.es-relief .my-reservations-page,
html body.es-relief .about-page,
html body.es-relief .features-page {
    background: var(--es-page) !important;
}

html body.es-relief :is(.how-section, .home-info-section, .popular-events, .features-page .main-features, .features-page .organizer-feature, .features-page .security-section, .features-page .features-cta) {
    background: var(--es-page) !important;
}

html body.es-relief :is(.search-input, .input-wrapper, .textarea-wrapper, .dashboard-form-control, .relief-input) {
    background: var(--es-soft) !important;
}

html body.es-relief .dashboard-content {
    padding-top: 30px;
}