/* ============================================
   GNDM – Page d'accueil
   ============================================ */

/* --- Hero --- */
.hero {
    position: relative;
    background: var(--color-bg-primary);
    padding: var(--space-3xl) 0 var(--space-4xl);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(197, 153, 42, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--space-xl);
    position: relative;
    z-index: 1;
}

@media (min-width: 1024px) {
    .hero {
        padding: var(--space-4xl) 0 var(--space-5xl);
    }

    .hero__inner {
        flex-direction: row;
        text-align: left;
        gap: var(--space-3xl);
    }
}

.hero__content {
    flex: 1;
    max-width: 640px;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-xs) var(--space-md);
    background: var(--color-gold-muted);
    color: var(--color-gold);
    font-size: var(--fs-xs);
    font-weight: var(--fw-semibold);
    letter-spacing: var(--ls-wider);
    text-transform: uppercase;
    border-radius: var(--radius-full);
    margin-bottom: var(--space-lg);
}

.hero__badge svg {
    width: 16px;
    height: 16px;
}

.hero__title {
    font-family: var(--font-heading);
    font-size: var(--fs-2xl);
    font-weight: var(--fw-bold);
    color: var(--color-heading);
    line-height: var(--lh-tight);
    margin-bottom: var(--space-md);
}

@media (min-width: 768px) {
    .hero__title {
        font-size: var(--fs-3xl);
    }
}

@media (min-width: 1024px) {
    .hero__title {
        font-size: var(--fs-display);
    }
}

.hero__subtitle {
    font-family: var(--font-heading);
    font-size: var(--fs-md);
    color: var(--color-gold);
    font-style: italic;
    margin-bottom: var(--space-lg);
    letter-spacing: var(--ls-wide);
}

.hero__text {
    font-size: var(--fs-md);
    color: var(--color-text-secondary);
    line-height: var(--lh-relaxed);
    margin-bottom: var(--space-xl);
    max-width: 520px;
}

@media (min-width: 1024px) {
    .hero__text {
        font-size: var(--fs-md);
    }
}

.hero__actions {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

@media (min-width: 480px) {
    .hero__actions {
        flex-direction: row;
        gap: var(--space-md);
    }
}

/* Blason hero */
.hero__visual {
    flex-shrink: 0;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero__blason {
    width: 150px;
    height: auto;
    filter: drop-shadow(0 8px 32px rgba(0, 0, 0, 0.15));
    display: block;
}

@media (min-width: 768px) {
    .hero__blason {
        width: 180px;
    }
}

@media (min-width: 1024px) {
    .hero__blason {
        width: 200px;
    }
}

.hero__visual::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: calc(100% + 48px);
    height: calc(100% + 48px);
    border: 2px solid var(--color-gold-muted);
    border-radius: 50%;
    pointer-events: none;
}

/* --- Section Qui sommes-nous --- */
.about-preview {
    background: var(--color-bg-alt);
}

.about-preview__grid {
    display: grid;
    gap: var(--space-2xl);
    align-items: center;
}

@media (min-width: 768px) {
    .about-preview__grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-3xl);
    }
}

.about-preview__img-wrap {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 4/3;
    background: var(--color-border-light);
}

.about-preview__img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Cadre decoratif dore */
.about-preview__img-wrap::after {
    content: '';
    position: absolute;
    top: var(--space-md);
    left: var(--space-md);
    right: var(--space-md);
    bottom: var(--space-md);
    border: 2px solid rgba(197, 153, 42, 0.3);
    border-radius: var(--radius-md);
    pointer-events: none;
}

.about-preview__content h2 {
    margin-bottom: var(--space-md);
}

.about-preview__content h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--color-gold), var(--color-gold-light));
    margin-top: var(--space-md);
    border-radius: var(--radius-full);
}

.about-preview__content p {
    color: var(--color-text-secondary);
    line-height: var(--lh-relaxed);
    margin-bottom: var(--space-lg);
}

.about-preview__missions {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    margin-bottom: var(--space-xl);
}

.about-preview__mission {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: var(--fs-base);
    color: var(--color-text);
}

.about-preview__mission svg {
    width: 20px;
    height: 20px;
    color: var(--color-gold);
    flex-shrink: 0;
}

/* --- Section Chiffres cles --- */
.stats {
    background: var(--color-bg-primary);
    position: relative;
}

.stats__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
}

@media (min-width: 768px) {
    .stats__grid {
        grid-template-columns: repeat(4, 1fr);
        gap: var(--space-xl);
    }
}

.stat {
    text-align: center;
    padding: var(--space-xl) var(--space-md);
    background: var(--color-bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xs);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.stat:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.stat__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin: 0 auto var(--space-md);
    background: var(--color-gold-muted);
    border-radius: 50%;
    color: var(--color-gold);
}

.stat__icon svg {
    width: 24px;
    height: 24px;
}

.stat__number {
    font-family: var(--font-heading);
    font-size: var(--fs-2xl);
    font-weight: var(--fw-bold);
    color: var(--color-gold);
    line-height: 1;
    margin-bottom: var(--space-xs);
}

@media (min-width: 768px) {
    .stat__number {
        font-size: var(--fs-3xl);
    }
}

.stat__label {
    font-size: var(--fs-sm);
    color: var(--color-text-secondary);
    line-height: var(--lh-snug);
}

/* --- Section Evenements preview --- */
.events-preview {
    background: var(--color-bg-alt);
}

.events-preview .section-header {
    text-align: left;
    margin-inline: 0;
    max-width: none;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

@media (min-width: 768px) {
    .events-preview .section-header {
        flex-direction: row;
        align-items: flex-end;
        justify-content: space-between;
    }
    .events-preview .section-header h2::after {
        margin-left: 0;
    }
}

.event-card {
    display: flex;
    flex-direction: column;
    background: var(--color-bg-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition-base), transform var(--transition-base);
}

.event-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.event-card--featured {
    border: 2px solid var(--color-gold);
}

.event-card__date-strip {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-lg);
    background: var(--color-bg-dark);
    color: var(--color-text-on-dark);
}

.event-card--featured .event-card__date-strip {
    background: linear-gradient(135deg, var(--color-gold), var(--color-gold-hover));
    color: var(--color-text-on-gold);
}

.event-card__day {
    font-family: var(--font-heading);
    font-size: var(--fs-2xl);
    font-weight: var(--fw-bold);
    line-height: 1;
}

.event-card__month-year {
    display: flex;
    flex-direction: column;
    font-size: var(--fs-sm);
    line-height: var(--lh-snug);
    text-transform: uppercase;
    letter-spacing: var(--ls-wide);
}

.event-card__body {
    padding: var(--space-lg);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.event-card__type {
    display: inline-block;
    padding: var(--space-2xs) var(--space-sm);
    background: var(--color-gold-muted);
    color: var(--color-gold);
    font-size: var(--fs-xs);
    font-weight: var(--fw-semibold);
    letter-spacing: var(--ls-wide);
    text-transform: uppercase;
    border-radius: var(--radius-sm);
    margin-bottom: var(--space-sm);
    align-self: flex-start;
}

.event-card__title {
    font-family: var(--font-heading);
    font-size: var(--fs-lg);
    font-weight: var(--fw-semibold);
    color: var(--color-heading);
    margin-bottom: var(--space-xs);
}

.event-card__location {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    color: var(--color-text-secondary);
    font-size: var(--fs-sm);
    margin-bottom: var(--space-sm);
}

.event-card__location svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: var(--color-gold);
}

.event-card__desc {
    color: var(--color-text-secondary);
    font-size: var(--fs-sm);
    line-height: var(--lh-normal);
}

/* --- Section Facebook --- */
.facebook-section {
    background: var(--color-bg-primary);
}

.facebook-section__grid {
    display: grid;
    gap: var(--space-xl);
    align-items: start;
}

@media (min-width: 768px) {
    .facebook-section__grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-2xl);
        align-items: stretch;
    }
}

@media (min-width: 1024px) {
    .facebook-section__grid {
        grid-template-columns: 1.2fr 0.8fr;
    }
}

.facebook-embed {
    background: var(--color-bg-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border-light);
    min-height: 300px;
    position: relative;
    /* Contenir l'iframe Facebook dans son conteneur */
    max-width: 100%;
}

/* Forcer l'iframe Facebook a respecter la largeur du conteneur */
.facebook-embed .fb-page,
.facebook-embed .fb-page > span,
.facebook-embed .fb-page > span > iframe {
    width: 100% !important;
    max-width: 100% !important;
}

/* Fallback visible tant que le SDK n'a pas charge */
.facebook-embed__fallback {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
    padding: var(--space-2xl);
    text-align: center;
    min-height: 300px;
}

.facebook-embed__fallback svg {
    width: 48px;
    height: 48px;
    color: var(--color-gold);
}

.facebook-embed__fallback p {
    color: var(--color-text-secondary);
    font-size: var(--fs-sm);
}

.facebook-cta {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
    background: var(--color-bg-white);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border-light);
}

.facebook-cta h3 {
    font-size: var(--fs-lg);
}

.facebook-cta__text {
    color: var(--color-text-secondary);
    line-height: var(--lh-relaxed);
}

.facebook-cta__stats {
    display: flex;
    gap: var(--space-xl);
    padding: var(--space-md);
    background: var(--color-bg-alt);
    border-radius: var(--radius-md);
    justify-content: center;
}

.facebook-cta__stat {
    text-align: center;
}

.facebook-cta__stat strong {
    display: block;
    font-family: var(--font-heading);
    font-size: var(--fs-xl);
    color: var(--color-gold);
    font-weight: var(--fw-bold);
}

.facebook-cta__stat span {
    font-size: var(--fs-sm);
    color: var(--color-text-secondary);
}

/* --- Section Sponsors preview --- */
.sponsors-preview {
    background: var(--color-bg-alt);
}

.sponsors-track {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--space-2xl);
    padding: var(--space-xl) 0;
}

.sponsors-track__logo {
    height: 48px;
    width: auto;
    opacity: 0.5;
    filter: grayscale(100%);
    transition: opacity var(--transition-base), filter var(--transition-base);
}

.sponsors-track__logo:hover {
    opacity: 1;
    filter: grayscale(0%);
}

@media (min-width: 768px) {
    .sponsors-track__logo {
        height: 56px;
    }
}

/* --- Section CTA final --- */
.cta-section {
    background: var(--color-bg-primary);
    text-align: center;
}

.cta-box {
    background: var(--color-bg-white);
    border: 2px solid var(--color-border-light);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl) var(--space-lg);
    max-width: 700px;
    margin-inline: auto;
    box-shadow: var(--shadow-sm);
}

@media (min-width: 768px) {
    .cta-box {
        padding: var(--space-3xl) var(--space-3xl);
    }
}

.cta-box h2 {
    margin-bottom: var(--space-md);
}

.cta-box p {
    color: var(--color-text-secondary);
    margin-bottom: var(--space-xl);
    line-height: var(--lh-relaxed);
}

.cta-box__actions {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    justify-content: center;
}

@media (min-width: 480px) {
    .cta-box__actions {
        flex-direction: row;
    }
}
