/* ===================================
   TicketAcces Portal - Premium Design 2026
   =================================== */

:root {
    --primary: #1a1a2e;
    --primary-dark: #0f0f0f;
    --secondary: #0f0f0f;
    --accent: #ac1f28;
    --accent-light: #d63946;
    --accent-dark: #7a1620;
    --text-light: #ffffff;
    --text-muted: #aaaaaa;
    --border-color: #2a2a3e;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    background-color: var(--primary-dark);
    color: var(--text-light);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    line-height: 1.6;
}

body {
    overflow-x: hidden;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--accent-light);
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    letter-spacing: -0.01em;
}

/* ===== HERO & EVENTS WRAPPER ===== */
.hero-events-wrapper {
    position: relative;
    width: 100%;
    overflow: visible;
    background-color: var(--primary-dark);
    background-image: url('/images/design/portail-fond-desktop.jpg');
    background-repeat: no-repeat;
    background-position: center top;
    background-attachment: fixed;
    background-size: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1200px;
    pointer-events: none;
    z-index: 2;
}

.main-content-wrapper {
    position: relative;
    z-index: 10;
    background-color: transparent;
    padding: 0;
}

.main-content-wrapper .events-premium {
    padding: 4rem 0;
    margin-bottom: 0;
}

/* ===== HERO SECTION ===== */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    z-index: 10;
}

.hero-content {
    position: relative;
    z-index: 20;
    width: 100%;
    text-align: center;
}

.hero-title {
    font-size: clamp(2.5rem, 8vw, 4rem);
    font-weight: 700;
    margin-bottom: 5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    line-height: 1.1;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.5rem);
    color: var(--text-muted);
    margin-bottom: 3rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Hero Search Form */
.hero-search-form {
    background: rgba(26, 26, 46, 0.85);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 900px;
    margin: 0 auto;
}

.search-field {
    display: flex;
    flex-direction: column;
}

.search-field label {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.search-field input,
.search-field select {
    padding: 12px 16px;
    background-color: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    font-size: 0.95rem;
    color: #000;
    font-family: inherit;
    transition: var(--transition);
}

.search-field input:focus,
.search-field select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(255, 71, 87, 0.1);
    background-color: #fff;
}

.btn-search {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    color: white;
    border: none;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    height: 48px;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(255, 71, 87, 0.3);
}

.btn-search:hover {
    background: linear-gradient(135deg, var(--accent-light) 0%, var(--accent) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 71, 87, 0.4);
}

/* ===== MAIN CONTENT ===== */
.main-content {
    padding: 3rem 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== SECTIONS ===== */
.section {
    padding: 2rem 0;
    border-bottom: 1px solid var(--border-color);
}

.section:last-of-type {
    border-bottom: none;
    padding-bottom: 3rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.section-header h2 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0;
    flex: 1;
    min-width: 250px;
}

.see-all {
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.95rem;
    letter-spacing: 0.05em;
    color: var(--accent);
    white-space: nowrap;
}

.see-all:hover {
    color: var(--accent-light);
}

/* ===== EVENTS PREMIUM (À NE PAS MANQUER) ===== */
.events-carousel {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.event-card-premium {
    display: flex;
    flex-direction: column;
    background: var(--secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
    height: 100%;
}

.event-card-premium:hover {
    border-color: var(--accent);
    box-shadow: 0 20px 50px rgba(255, 71, 87, 0.2);
    transform: translateY(-8px);
}

.event-image {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: linear-gradient(135deg, var(--border-color) 0%, var(--secondary) 100%);
}

.event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.event-card-premium:hover .event-image img {
    transform: scale(1.1);
}

.placeholder-image {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--border-color) 0%, var(--secondary) 100%);
}

.badge-soon {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--accent);
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.event-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    flex: 1;
}

.event-body h3 {
    font-size: 1.1rem;
    margin: 0;
    line-height: 1.3;
    color: var(--text-light);
}

.event-org {
    font-size: 0.85rem;
    color: var(--accent);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0;
}

.event-location,
.event-date {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    color: white;
    border: none;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.85rem;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
    margin-top: auto;
    box-shadow: 0 4px 15px rgba(255, 71, 87, 0.2);
    text-align: center;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--accent-light) 0%, var(--accent) 100%);
    box-shadow: 0 6px 20px rgba(255, 71, 87, 0.3);
    transform: translateY(-2px);
    color: white;
}

.btn-buy {
    width: 100%;
}

/* ===== SUGGESTIONS ===== */
.suggestions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
}

.event-card-suggestion {
    display: flex;
    flex-direction: column;
    background: var(--secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition);
    height: 100%;
}

.event-card-suggestion:hover {
    border-color: var(--accent);
    box-shadow: 0 10px 30px rgba(255, 71, 87, 0.15);
    transform: translateY(-4px);
}

.event-card-suggestion .event-image {
    aspect-ratio: 1 / 1;
}

.event-card-suggestion .event-image img {
    transition: transform 0.3s ease;
}

.event-card-suggestion:hover .event-image img {
    transform: scale(1.05);
}

.event-card-suggestion .event-body {
    padding: 1.25rem;
    gap: 0.5rem;
}

.event-card-suggestion h4 {
    font-size: 1rem;
    margin: 0;
    line-height: 1.3;
}

.event-card-suggestion .btn {
    width: 100%;
}

/* ===== CATÉGORIES ===== */
.row.g-4 > .col-lg-3 {
    display: flex;
    flex-direction: column;
}

.category-card {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1 / 1;
    background: var(--secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
    text-decoration: none;
    background-size: cover;
    background-position: center;
    min-height: 220px;
    opacity:0.85;
}

.category-card:hover {
    border-color: var(--accent);
    box-shadow: 0 15px 40px rgba(255, 71, 87, 0.2);
    transform: translateY(-6px);
}

.category-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.category-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.6) 100%);
    transition: var(--transition);
    z-index: 1;
}

.category-card:hover .category-overlay {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.8) 100%);
}

.category-title {
    font-size: 1.4rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-align: center;
    margin: 0;
    color: var(--text-light);
}

.category-card h3 {
    position: relative;
    z-index: 2;
    font-size: 1.4rem;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    letter-spacing: 0.05em;
}


/* ===== UTILITIES ===== */
.text-center {
    text-align: center;
}

.text-muted {
    color: var(--text-muted);
}

.img-fluid {
    max-width: 100%;
    height: auto;
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ===== FONT AWESOME ICONS ===== */
.fa {
    display: inline-block;
    font-style: normal;
    font-weight: normal;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===== HEADER STYLES ===== */
.header-top {
    background: linear-gradient(135deg, #06060a 0%, #0b0b13 100%);
    padding: 1rem 0;
    border-bottom: 1px solid #ac1f28;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: white;
}

.logo-accent {
    color: #ac1f28;
}

.nav-menu {
    display: flex;
    gap: 2rem;
    align-items: center;
    list-style: none;
    margin: 0 1rem;
    padding: 0;
}

.nav-menu a {
    color: #aaa;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
    padding-bottom: 0.25rem;
}

.nav-menu a:hover {
    color: #ac1f28;
    border-bottom-color: #ac1f28;
}

.nav-cta {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.btn-login {
    background: linear-gradient(135deg, #ac1f28 0%, #d63946 100%);
    color: white;
    border: none;
    padding: 8px 24px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 71, 87, 0.3);
    color: var(--primary-dark);
}

.nav-language,
.nav-social-link {
    color: #aaa;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: color 0.3s ease;
}

.nav-language:hover,
.nav-social-link:hover {
    color: #ac1f28;
}

.nav-social-link {
    font-size: 1.1rem;
}

.btn-signup {
    background: linear-gradient(135deg, #444444 0%, #505050 100%);
    color: white;
    border: none;
    padding: 8px 24px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.btn-signup:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(22, 22, 22, 0.3);
    color: var(--accent-light);
}

.btn-login-alternate {
    background: linear-gradient(135deg, #ac1f28 0%, #d63946 100%);
    color: white;
    border: none;
    padding: 8px 24px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.btn-login-alternate:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 71, 87, 0.3);
    color: var(--primary-dark);
}

/* ===== FOOTER STYLES ===== */
.footer-section {
    background-color: var(--primary-dark);
    padding: 2rem 0 1rem;
    position: relative;
    z-index: 1001;
}

.footer-grid {
    padding: 2rem 0;
    --bs-gutter-y: 0;
    border-top: 2px solid rgba(255, 255, 255, 0.15);
    border-bottom: 2px solid rgba(255, 255, 255, 0.15);
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 0 1.5rem;
}

.footer-column:first-child {
    padding-left: 0;
    border-left: none;
}

.footer-column:not(:first-child) {
    border-left: 1px solid rgba(255, 255, 255, 0.15);
    padding-left: 1.5rem;
}

.footer-column:last-child {
    padding-right: 0;
}

.footer-challenge {
    margin: 0 auto;
    text-align: left;
}

.footer-challenge p.label {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin: 0 0 0.5rem 0;
}

.footer-challenge h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0;
}

.footer-solution {
    margin: 0 auto;
    text-align: left;
}

.footer-solution p.label {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin: 0 0 0.5rem 0;
}

.footer-solution img {
    max-width: 150px;
    height: auto;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.footer-feature {
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    text-align: center;
    padding-top: 1.5rem;
}

.footer-feature .feature-icon {
    font-size: 3.5rem;
    color: var(--accent);
    min-width: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-feature .feature-icon img {
    height: 56px;
}

.footer-feature h6 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-light);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-feature p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.9rem;
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent);
}

.footer-copyright {
    padding-top: 1.5rem;
    padding-bottom: 1rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    text-align: center;
}

.footer-copyright ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 0;
}

.footer-copyright ul li {
    position: relative;
    display: flex;
    align-items: center;
}

.footer-copyright ul li:not(:last-child)::after {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin: 0 1.5rem;
    background: #c62828;
    display: inline-block;
}

.footer-copyright ul li a {
    color: #bdbdbd;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 400;
    transition: color 0.2s ease;
}

.footer-copyright ul li a:hover {
    color: #ffffff;
}

/* ===== EVENT AND CATEGORY COLORS ===== */
.event-1 { background-image: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }
.event-2 { background-image: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); }
.event-3 { background-image: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%); }
.event-4 { background-image: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%); }
.event-5 { background-image: linear-gradient(135deg, #fa709a 0%, #fee140 100%); }
.event-6 { background-image: linear-gradient(135deg, #30cfd0 0%, #330867 100%); }
.event-7 { background-image: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%); }
.event-8 { background-image: linear-gradient(135deg, #ff9a56 0%, #ff6a88 100%); }
.event-9 { background-image: linear-gradient(135deg, #2e2e78 0%, #662d91 100%); }
.event-10 { background-image: linear-gradient(135deg, #eb3b5a 0%, #fc5c65 100%); }
.event-11 { background-image: linear-gradient(135deg, #48c774 0%, #34c759 100%); }
.event-12 { background-image: linear-gradient(135deg, #ff3b30 0%, #ff2d55 100%); }

.card-variant-1 { background-image: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }
.card-variant-2 { background-image: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); }
.card-variant-3 { background-image: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%); }
.card-variant-4 { background-image: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%); }
.card-variant-5 { background-image: linear-gradient(135deg, #fa709a 0%, #fee140 100%); }

/* ===== ORGANISATIONS SECTION ===== */
.organisations-section {
    padding: 4rem 0;
    border-bottom: 1px solid var(--border-color);
}

/* ===== FAVORIS SECTION ===== */
.favoris-section {
    background-color: rgba(15, 15, 15, 0.2);
    padding: 2.5rem;
    border-radius: 12px;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
}

.favoris-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.favoris-icon {
    color: var(--text-light);
    font-size: 1.5rem;
}

.favoris-title {
    color: var(--text-light);
    font-size: 1.3rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0;
}

.region-section {
    margin-bottom: 4rem;
}

.region-section:last-child {
    margin-bottom: 0;
}

.region-title {
    font-size: 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 2rem;
    color: var(--text-light);
}

.row.g-3 > .col-lg-2-4 {
    display: flex;
    flex-direction: column;
}

.col-lg-2-4 {
    flex: 0 0 20%;
    max-width: 20%;
}

@media (max-width: 991px) {
    .col-lg-2-4 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (max-width: 768px) and (orientation: landscape) {
    .col-lg-2-4 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (max-width: 768px) and (orientation: portrait) {
    .col-lg-2-4 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

.org-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: rgba(15, 15, 15, 0.7);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    transition: var(--transition);
    cursor: pointer;
    height: 100%;
}

.org-card:hover {
    border-color: var(--accent);
    box-shadow: 0 20px 50px rgba(255, 71, 87, 0.2);
    transform: translateY(-8px);
    opacity:0.9;
}

.org-logo {
    width: 100%;
    height: 120px;
    object-fit: contain;
    object-position: center;
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}

.org-card:hover .org-logo {
    transform: scale(1.05);
}

.org-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
    width: 100%;
}

.org-info strong {
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-light);
}

.org-info span {
    font-size: 1rem;
    color: var(--text-muted);
}

/* ===== ORGANISATIONS RESPONSIVE ===== */
@media (max-width: 768px) {
    .region-title {
        font-size: 1.375rem;
        margin-bottom: 1.5rem;
    }

    .org-logo {
        height: 90px;
        margin-bottom: 0.5rem;
    }

    .org-info strong {
        font-size: 1.125rem;
    }

    .org-info span {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .region-title {
        font-size: 1.25rem;
        margin-bottom: 1rem;
    }

    .org-logo {
        height: 80px;
        margin-bottom: 0.5rem;
    }

    .org-info strong {
        font-size: 1rem;
    }

    .org-info span {
        font-size: 0.7rem;
    }
}

/* ===== MOBILE PORTRAIT MODE ===== */
@media (max-width: 768px) and (orientation: portrait) {
    .organisations-row {
        grid-template-columns: 1fr;
        gap: 0.75rem;
        row-gap: 1rem;
    }
}

/* ===== MOBILE LANDSCAPE MODE ===== */
@media (max-width: 1024px) and (orientation: landscape) {
    .nav-menu,
    .nav-cta,
    .d-none.d-md-block {
        display: none !important;
    }

    .burger-menu,
    .d-md-none {
        display: flex !important;
    }

    .category-card {
        min-height: 150px;
    }

    .section {
        padding: 2rem 0;
    }

    .section-header h2 {
        font-size: 1.5rem;
    }

    .hero-events-wrapper {
        background-image: url('/images/design/portail-fond-tablet.jpg');
    }
}

/* ===== BURGER MENU STYLES ===== */
.burger-menu {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    gap: 6px;
}

.burger-menu span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #aaa;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.burger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(10px, 10px);
    background-color: #ac1f28;
}

.burger-menu.active span:nth-child(2) {
    opacity: 0;
}

.burger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
    background-color: #ac1f28;
}

.mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #06060a 0%, #0b0b13 100%);
    border-top: 1px solid #ac1f28;
    padding: 1.5rem 0;
    z-index: 999;
}

.mobile-menu.active {
    display: block;
}

.nav-menu-mobile {
    list-style: none;
    padding: 0 20px;
    margin: 0 0 1.5rem 0;
}

.nav-menu-mobile li {
    margin-bottom: 1rem;
}

.nav-menu-mobile a {
    color: #aaa;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s ease;
    display: block;
}

.nav-menu-mobile a:hover {
    color: #ac1f28;
}

.nav-cta-mobile {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 0 20px;
    border-top: 1px solid #2a2a3e;
    padding-top: 1.5rem;
}

.nav-cta-mobile .btn-login {
    background: linear-gradient(135deg, #ac1f28 0%, #d63946 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    text-align: center;
}

.nav-cta-mobile .btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(172, 31, 40, 0.3);
}

.nav-cta-mobile .btn-signup {
    background: linear-gradient(135deg, #444444 0%, #505050 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    text-align: center;
}

.nav-cta-mobile .btn-signup:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(22, 22, 22, 0.3);
    color: var(--accent-light);
}

.nav-cta-mobile .nav-language {
    color: #aaa;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: color 0.3s ease;
}

.nav-cta-mobile .nav-language:hover {
    color: #ac1f28;
}

/* ===== iOS FALLBACK POUR BACKGROUND-ATTACHMENT: FIXED ===== */
@supports (-webkit-touch-callout: none) {
    /* Safari iOS uniquement */
    .hero-events-wrapper {
        background-attachment: scroll;
        background-image: none !important;
    }

    .hero-events-wrapper::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
        height: 100vh;
        background-image: url('/images/design/portail-fond-desktop.jpg');
        background-repeat: no-repeat;
        background-position: center top;
        background-size: cover;
        pointer-events: none;
        z-index: 0;
    }

    .main-content {
        position: relative;
        z-index: 10;
    }
}

/* ===== iOS MEDIA QUERIES POUR LE PSEUDO-ÉLÉMENT ===== */
@supports (-webkit-touch-callout: none) {
    /* Tablet landscape iOS */
    @media (max-width: 1024px) and (orientation: landscape) {
        .hero-events-wrapper::before {
            background-image: url('/images/design/portail-fond-tablet.jpg');
        }
    }

    /* Mobile iOS */
    @media (max-width: 768px) {
        .hero-events-wrapper::before {
            background-image: url('/images/design/portail-fond-mobile.jpg');
        }
    }
}

/* ===== RESPONSIVE HEADER AND FOOTER ===== */
@media (max-width: 768px) {
    .burger-menu {
        display: flex;
    }

    .header-top {
        padding: 0.75rem 0;
    }

    .logo img {
        max-width: 120px;
        height: auto;
    }

    .hero-events-wrapper {
        background-image: url('/images/design/portail-fond-mobile.jpg');
    }

    .footer-column {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .footer-column:not(:last-child)::after {
        display: none;
    }

    .footer-about-links {
        font-size: 0.85rem;
    }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .main-content {
        padding: 0;
    }

    .hero-title {
        font-size: clamp(2rem, 6vw, 3rem);
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .events-carousel {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1.5rem;
    }

    .suggestions-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 1rem;
    }

    .category-title {
        margin-bottom:2rem;
    }

    .footer-column:first-child {
        padding-left: 1.5rem;
    }

    .footer-column:not(:first-child) {
        border-left: inherit;
    }

    .footer-column:last-child {
        padding-right: 1.5rem;
    }
}

@media (max-width: 768px) {
    .hero {
        height: 80vh;
        min-height: 500px;
        margin-bottom: 2rem;
    }

    .hero-title {
        font-size: clamp(1.5rem, 5vw, 2.2rem);
        margin-bottom: 0.75rem;
    }

    .hero-subtitle {
        margin-bottom: 2rem;
    }

    .hero-search-form {
        padding: 1.5rem 1rem;
    }

    .search-field label {
        font-size: 0.8rem;
    }

    .search-field input,
    .search-field select {
        padding: 10px 12px;
        font-size: 0.9rem;
    }

    .btn-search {
        height: 44px;
        font-size: 0.8rem;
    }

    .section {
        padding: 3rem 0;
    }

    .events-carousel {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1rem;
    }

    .event-body {
        padding: 1rem;
        gap: 0.5rem;
    }

    .event-body h3 {
        font-size: 1rem;
    }

    .btn-primary {
        padding: 10px 20px;
        font-size: 0.8rem;
    }

    .suggestions-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .hero {
        height: 70vh;
        min-height: 380px;
        margin-bottom: 1rem;
    }

    .hero-title {
        font-size: clamp(1.2rem, 4vw, 1.8rem);
        margin-bottom: 0.5rem;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .hero-search-form {
        padding: 1rem;
        gap: 1rem;
    }

    .row.g-2 {
        --bs-gutter-x: 0.5rem;
        --bs-gutter-y: 0.5rem;
    }

    .search-field label {
        font-size: 0.75rem;
    }

    .search-field input,
    .search-field select {
        padding: 8px 10px;
        font-size: 0.85rem;
    }

    .btn-search {
        height: 40px;
        font-size: 0.75rem;
    }

    .section {
        padding: 2rem 0;
    }

    .section-header h2 {
        font-size: 1.2rem;
    }

    .events-carousel {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .event-image {
        aspect-ratio: 16 / 9;
    }

    .suggestions-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .event-card-suggestion .event-image {
        aspect-ratio: 1 / 1;
    }

    .categories-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .category-card {
        aspect-ratio: 16 / 9;
        min-height: auto;
    }

    .category-card h3 {
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }

    .container {
        padding: 0 15px;
    }
}

/* ===== RECHERCHE ORGANISATIONS ===== */
.portail-org-search {
    max-width: 600px;
    margin: 0 auto 2.5rem;
}

.portail-org-search-inner {
    position: relative;
    display: flex;
    align-items: center;
}

.portail-org-search-inner .fa-search {
    position: absolute;
    left: 1.1rem;
    color: var(--text-muted);
    pointer-events: none;
    font-size: 0.95rem;
}

.portail-org-search-input {
    width: 100%;
    padding: 0.85rem 3rem;
    border-radius: 50px;
    border: 1px solid var(--border-color);
    background: rgba(15, 15, 15, 0.7);
    color: var(--text-light);
    font-size: 1rem;
    transition: var(--transition);
}

.portail-org-search-input::placeholder {
    color: var(--text-muted);
}

.portail-org-search-input:hover {
    border-color: rgba(255, 255, 255, 0.2);
}

.portail-org-search-input:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(15, 15, 15, 0.9);
    box-shadow: 0 0 0 3px rgba(172, 31, 40, 0.2);
}

.portail-org-search-clear {
    position: absolute;
    right: 1rem;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.3rem;
    line-height: 1;
    transition: var(--transition);
}

.portail-org-search-clear:hover {
    color: var(--text-light);
}

.portail-org-search-no-results {
    text-align: center;
    margin-top: 1rem;
    color: var(--text-light);
    font-size: 0.95rem;
}
