/* landing.css - Styles de la page d'accueil (Landing Page EventHub) */

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

body {
    font-family: 'Urbanist', sans-serif;
    background-color: #ffffff;
    color: #334155;
    font-size: 1.0rem;
    line-height: 1.6;
    font-weight: 500;
    -webkit-font-smoothing: antialiased;
}

/* BARRE DE NAVIGATION TRANSPARENTE EN HAUT, ALPHA 85% AU DÉFILEMENT */
.landing-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: transparent;
    border-bottom: 1px solid transparent;
    transition: background 0.3s cubic-bezier(0.16, 1, 0.3, 1), backdrop-filter 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.landing-header.scrolled {
    position: sticky;
    background: rgba(251, 247, 255, 0.85); /* Alpha 85% exact */
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(233, 213, 255, 0.5);
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.25rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand-link {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    text-decoration: none;
    color: #0f172a;
    font-weight: 800;
    font-size: 1.35rem;
    letter-spacing: -0.02em;
}

.brand-logo-grid {
    display: grid;
    grid-template-columns: repeat(2, 11px);
    grid-gap: 3px;
    width: 25px;
    height: 25px;
}

.brand-logo-grid .tile {
    width: 11px;
    height: 11px;
    border-radius: 3px;
    display: block;
}

.brand-logo-grid .tile-purple { background-color: #5b50d6; }
.brand-logo-grid .tile-dark { background-color: #0f172a; }

.nav-links {
    display: flex;
    align-items: center;
    gap: 2.25rem;
}

.nav-links a {
    color: #0f172a;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: #5b50d6;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.link-login {
    color: #0f172a;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 0.4rem 0.6rem;
    transition: color 0.2s ease;
}

.link-login:hover {
    color: #5b50d6;
}

.btn-register-nav {
    background-color: #5b50d6;
    color: #ffffff;
    text-decoration: none;
    font-weight: 800;
    font-size: 0.9rem;
    padding: 0.65rem 1.35rem;
    border-radius: 9999px;
    transition: all 0.2s ease;
}

.btn-register-nav:hover {
    background-color: #4338ca;
    color: #ffffff;
}

.btn-dashboard-nav {
    background-color: #18181b;
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 0.65rem 1.35rem;
    border-radius: 9999px !important;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-dashboard-nav:hover {
    background-color: #27272a;
    color: #ffffff;
}

/* SECTION HERO OCCUPANT EXACTEMENT 70% DE LA HAUTEUR DE L'ÉCRAN (70VH) */
.hero-section {
    position: relative;
    width: 100%;
    height: 70vh;
    min-height: 600px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-top: 6rem;
    padding-bottom: 3rem;
    overflow: hidden;
    background-color: #0f172a;
}

.hero-bg-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    z-index: 1;
}

.hero-overlay-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(251, 247, 255, 0.9) 0%, rgba(251, 247, 255, 0.62) 50%, rgba(15, 23, 42, 0.25) 100%);
    z-index: 2;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 840px;
    margin: 0 auto;
    text-align: center;
    padding: 0 1.5rem;
}

.hero-headline {
    font-size: 3.25rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.035em;
    line-height: 1.15;
    margin-bottom: 1.1rem;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.6);
}

.hero-subheadline {
    font-size: 1.15rem;
    font-weight: 700;
    color: #334155;
    max-width: 640px;
    margin: 0 auto 2.25rem;
    line-height: 1.45;
    letter-spacing: -0.01em;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.6);
}

.btn-hero-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #5b50d6;
    color: #ffffff;
    text-decoration: none;
    font-size: 1.05rem;
    font-weight: 800;
    padding: 0.95rem 2.25rem;
    border-radius: 9999px;
    box-shadow: 0 10px 28px rgba(91, 80, 214, 0.38);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    letter-spacing: -0.01em;
}

.btn-hero-cta:hover {
    background-color: #4c42c7;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 14px 34px rgba(91, 80, 214, 0.48);
}

/* SECTION ÉVÉNEMENTS PUBLICS AVEC CARTES FANTAISISTES DE LA CAPTURE */
.public-events-section {
    position: relative;
    z-index: 5;
    max-width: 1200px;
    margin: 0 auto;
    padding: 5rem 1.5rem 6rem;
    background-color: #ffffff;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 2.75rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.section-tag {
    color: #5b50d6;
    font-weight: 800;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.35rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.section-title {
    font-size: 2.25rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.025em;
    line-height: 1.25;
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2.25rem;
}

/* CARTES D'ÉVÉNEMENT CLASSIQUES — CONFORMITÉ CHARTE DESIGN.MD */
.event-card {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    text-decoration: none;
    color: inherit;
}

.event-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.1);
    border-color: #cbd5e1;
}

.event-card-cover {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
    background-color: #0f172a;
}

.event-card-body {
    padding: 1.25rem 1.35rem 1.25rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.event-card-badges {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.badge-date-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background-color: #ecfdf5;
    color: #047857;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 0.3rem 0.75rem;
    border-radius: 9999px;
}

.badge-price-text {
    font-size: 0.78rem;
    font-weight: 700;
    color: #047857;
}

.event-card-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.3;
    margin-bottom: 0.4rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.event-card-location {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 500;
    margin-bottom: 1.25rem;
}

.event-card-footer {
    margin-top: auto;
    padding-top: 0.85rem;
    border-top: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.event-card-host {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.event-card-host-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
}

.event-card-host-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: #334155;
}

/* BOUTON D'INSCRIPTION FORMAT PILULE ÉPURÉ */
.btn-register-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 9999px;
    padding: 0.45rem 1.15rem;
    color: #0f172a;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    text-decoration: none;
}

.event-card:hover .btn-register-pill {
    background-color: #f8fafc;
    border-color: #cbd5e1;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08);
    transform: translateY(-1px);
}

.register-pill-text {
    font-weight: 800;
    color: #0f172a;
    font-size: 0.85rem;
    line-height: 1;
}

/* BADGE CATÉGORIE SUR CHAQUE CARTE */
.badge-category-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.65rem;
    border-radius: 9999px;
}

/* SECTION DÉDIÉE CATÉGORIES SUR FOND BLANC PUR (PROPOSÉE ET CONFORME) */
.categories-landing-section {
    padding: 4.5rem 1.5rem;
    background-color: #ffffff;
    border-top: 1px solid #f1f5f9;
}

.categories-landing-container {
    max-width: 1200px;
    margin: 0 auto;
}

.categories-landing-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 2.25rem;
    flex-wrap: wrap;
}

.categories-landing-subtitle {
    color: #64748b;
    font-size: 1.05rem;
    font-weight: 500;
    margin-top: 0.35rem;
}

.btn-show-all-cats {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background-color: #f8fafc;
    color: #0f172a;
    border: 1px solid #e2e8f0;
    border-radius: 9999px;
    padding: 0.55rem 1.35rem;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-show-all-cats:hover {
    background-color: #0f172a;
    color: #ffffff;
    border-color: #0f172a;
}

.categories-clean-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}

@media (max-width: 1024px) {
    .categories-clean-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
    .categories-clean-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
    .categories-clean-grid { grid-template-columns: 1fr; }
}

.category-clean-card {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 1.25rem 1.35rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    user-select: none;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.02);
}

.category-clean-card:hover {
    transform: translateY(-2px);
    border-color: #cbd5e1;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
    background-color: #f8fafc;
}

.category-clean-card.active {
    border-color: #5b50d6;
    background-color: #f5f3ff;
    box-shadow: 0 0 0 2px #5b50d6;
}

.category-clean-icon-box {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}

.category-clean-info {
    flex: 1;
}

.category-clean-title {
    font-size: 1.02rem;
    font-weight: 800;
    color: #0f172a;
    display: block;
    line-height: 1.2;
}

.category-clean-arrow {
    font-size: 0.85rem;
    color: #cbd5e1;
    transition: transform 0.2s ease, color 0.2s ease;
}

.category-clean-card:hover .category-clean-arrow {
    color: #5b50d6;
    transform: translateX(3px);
}

/* BANNIÈRE CTA BAS DE PAGE */
.cta-bottom-wrapper {
    position: relative;
    z-index: 5;
    padding: 1rem 1.5rem 5rem;
    background-color: #ffffff;
}

.cta-bottom-card {
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 60%, #4338ca 100%);
    color: #ffffff;
    padding: 4.5rem 2rem;
    text-align: center;
    border-radius: 24px;
    max-width: 1100px;
    margin: 0 auto;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.15);
}

.cta-bottom-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.85rem;
    letter-spacing: -0.025em;
}

.cta-bottom-desc {
    font-size: 1.15rem;
    color: #cbd5e1;
    max-width: 580px;
    margin: 0 auto 2.25rem;
    line-height: 1.5;
    font-weight: 500;
}

.btn-cta-bottom {
    background-color: #ffffff;
    color: #0f172a;
    text-decoration: none;
    font-size: 1.05rem;
    font-weight: 800;
    padding: 0.95rem 2.25rem;
    border-radius: 9999px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-cta-bottom:hover {
    background-color: #f8fafc;
    color: #5b50d6;
    transform: translateY(-2px);
}

/* PIED DE PAGE */
.landing-footer {
    position: relative;
    z-index: 5;
    background-color: #0f172a;
    color: #94a3b8;
    padding: 3.5rem 1.5rem;
    font-size: 0.9rem;
    border-top: 1px solid #1e293b;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.25rem;
}

@media (max-width: 768px) {
    .hero-headline { font-size: 2.3rem; }
    .hero-section { height: auto; min-height: 520px; padding-top: 7rem; padding-bottom: 3rem; }
    .nav-links { display: none; }
    .events-grid { grid-template-columns: 1fr; }
    .cta-bottom-title { font-size: 1.9rem; }
}

.footer-brand-group {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.footer-brand-title {
    font-weight: 800;
    color: #ffffff;
    font-size: 1rem;
}

.footer-architecture-text {
    font-size: 0.85rem;
    color: #64748b;
}

