/* ==========================================
   VARIABLES & REINITIALISATION
   ========================================== */
:root {
    --primary-color: #E6007E; /* Magenta repris de l'affiche */
    --primary-hover: #C4006B;
    --dark-color: #111111;
    --text-color: #333333;
    --bg-light: #F9FAFB;
    --bg-card: #FFFFFF;
    --border-color: #E5E7EB;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.15);
    --font-stack: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-stack);
    color: var(--text-color);
    background-color: #FFFFFF;
    line-height: 1.6;
    padding-bottom: 70px; /* Espace pour le CTA mobile flottant */
}

@media (min-width: 768px) {
    body { padding-bottom: 0; }
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================
   BOUTONS & COMPOSANTS
   ========================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    font-weight: 700;
    border-radius: 8px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #FFFFFF;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1.15rem;
}

.btn-block {
    width: 100%;
}

.btn-facebook {
    background-color: #1877F2;
    color: #FFFFFF;
}

.btn-facebook:hover {
    background-color: #115cbe;
}

/* ==========================================
   HEADER
   ========================================== */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border-color);
    padding: 12px 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    text-decoration: none;
    display: flex;
    flex-direction: column;
}

.brand-sub {
    font-size: 0.75rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.brand-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--dark-color);
}

.nav {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-link {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
}

.nav-link:hover {
    color: var(--primary-color);
}

/* ==========================================
   HERO SECTION
   ========================================== */
.hero {
    padding: 40px 0;
    background-color: var(--bg-light);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    align-items: center;
}

@media (min-width: 850px) {
    .hero-grid {
        grid-template-columns: 400px 1fr;
        gap: 50px;
    }
}

.hero-poster img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
}

.badge-cause {
    display: inline-block;
    background: #FFF3F8;
    color: var(--primary-color);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    margin-bottom: 15px;
    border: 1px solid rgba(230,0,126,0.2);
}

.hero-title {
    font-size: 2.2rem;
    line-height: 1.2;
    color: var(--dark-color);
    margin-bottom: 10px;
}

@media (min-width: 768px) {
    .hero-title { font-size: 3rem; }
}

.hero-subtitle {
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 25px;
}

.hero-details {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
    background: #FFFFFF;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

.detail-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.detail-item .icon {
    font-size: 1.5rem;
}

.detail-item strong {
    display: block;
    color: var(--dark-color);
}

.detail-item small {
    color: #666;
}

.hero-note {
    font-size: 0.85rem;
    color: #666;
    margin-top: 10px;
}

/* ==========================================
   SECTIONS GENERALES
   ========================================== */
.section {
    padding: 60px 0;
}

.section-alt {
    background-color: var(--bg-light);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 40px auto;
}

.section-header h2 {
    font-size: 2rem;
    color: var(--dark-color);
    margin-bottom: 10px;
}

.section-lead {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--primary-color);
}

/* SYNOPSIS */
.synopsis-card {
    background: #FFFFFF;
    padding: 30px;
    border-radius: 12px;
    border-left: 5px solid var(--primary-color);
    box-shadow: var(--shadow-sm);
    margin-bottom: 40px;
    font-size: 1.1rem;
}

.synopsis-card p {
    margin-bottom: 15px;
}

.highlight-text {
    font-weight: 700;
    color: var(--dark-color);
}

.cast-wrapper {
    text-align: center;
}

.cast-grid {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.cast-card {
    background: #FFFFFF;
    border: 1px solid var(--border-color);
    padding: 15px 30px;
    border-radius: 8px;
    min-width: 200px;
}

.cast-role {
    font-size: 0.85rem;
    color: #666;
    text-transform: uppercase;
}

.cast-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark-color);
}

/* INFOS PRATIQUES */
.infos-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (min-width: 768px) {
    .infos-grid { grid-template-columns: repeat(2, 1fr); }
}

.info-card {
    background: #FFFFFF;
    border: 1px solid var(--border-color);
    padding: 25px;
    border-radius: 10px;
}

.info-card.highlight-card {
    border-color: var(--primary-color);
    background: #FFF3F8;
}

.info-icon {
    font-size: 2rem;
    margin-bottom: 10px;
}

.info-card h3 {
    margin-bottom: 15px;
    color: var(--dark-color);
}

.info-card ul {
    list-style: none;
}

.info-card li {
    margin-bottom: 8px;
}

.info-tip {
    margin-top: 15px;
    font-size: 0.9rem;
    color: #555;
    background: rgba(0,0,0,0.03);
    padding: 10px;
    border-radius: 6px;
}

/* FACEBOOK */
.section-facebook {
    background: #EBF5FF;
}

.facebook-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
}

@media (min-width: 768px) {
    .facebook-card {
        flex-direction: row;
        text-align: left;
        justify-content: space-between;
    }
}

/* ==========================================
   MODALE GOOGLE FORMS
   ========================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-container {
    background: #FFFFFF;
    width: 95%;
    max-width: 700px;
    max-height: 90vh;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.modal-header {
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-close-btn {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
}

.modal-body {
    position: relative;
    overflow-y: auto;
    flex: 1;
}

.iframe-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
    color: #666;
}

/* MOBILE CTA STICKY */
.mobile-sticky-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px 20px;
    background: #FFFFFF;
    border-top: 1px solid var(--border-color);
    z-index: 90;
}

@media (min-width: 768px) {
    .mobile-sticky-cta { display: none; }
}

/* ==========================================
   FOOTER
   ========================================== */
.footer {
    background: var(--dark-color);
    color: #FFFFFF;
    padding: 40px 0 20px 0;
}

.partners-title {
    text-align: center;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #999;
    margin-bottom: 20px;
}

.partners-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.partners-grid img {
    max-height: 50px;
    width: auto;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.partners-grid img:hover {
    opacity: 1;
}

.footer-bottom {
    text-align: center;
    font-size: 0.85rem;
    color: #777;
    border-top: 1px solid #222;
    padding-top: 20px;
}

.text-center { text-align: center; }
.mt-4 { margin-top: 1.5rem; }



/* ==========================================
   BO�TE DE R�SERVATION DYNAMIQUE (HERO)
   ========================================== */
.booking-box {
    background: #FFFFFF;
    padding: 20px;
    border-radius: 12px;
    border: 2px solid var(--primary-color);
    box-shadow: var(--shadow-sm);
}

.booking-label {
    display: block;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--dark-color);
}

.booking-picker-wrapper {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: center;
}

.qty-picker {
    display: flex;
    align-items: center;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 4px;
}

.qty-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: #FFFFFF;
    color: var(--dark-color);
    font-size: 1.4rem;
    font-weight: bold;
    border-radius: 6px;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: background 0.2s;
}

.qty-btn:hover {
    background: var(--primary-color);
    color: #FFFFFF;
}

.qty-input {
    width: 50px;
    text-align: center;
    font-size: 1.2rem;
    font-weight: 800;
    border: none;
    background: transparent;
    color: var(--dark-color);
}

/* ==========================================
   MODALE SUR-MESURE & FORMULAIRE
   ========================================== */
.modal-subtitle {
    font-size: 0.85rem;
    color: #666;
}

.modal-summary-badge {
    background: #FFF3F8;
    border: 1px solid rgba(230,0,126,0.3);
    border-radius: 8px;
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-size: 1rem;
    color: var(--dark-color);
}

.summary-total strong {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

@media (min-width: 550px) {
    .form-grid { grid-template-columns: 1fr 1fr; }
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 6px;
    color: var(--dark-color);
}

.form-group input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(230,0,126,0.15);
}

.form-footer {
    margin-top: 25px;
}

.secure-notice {
    font-size: 0.8rem;
    color: #777;
    text-align: center;
    margin-top: 10px;
}

/* �CRAN DE SUCC�S */
.booking-success-state {
    text-align: center;
    padding: 30px 10px;
}

.success-icon {
    font-size: 3.5rem;
    margin-bottom: 10px;
}

.booking-success-state h3 {
    font-size: 1.8rem;
    color: var(--dark-color);
    margin-bottom: 10px;
}

.success-email-notice {
    font-size: 0.95rem;
    color: #555;
    margin-top: 15px;
    background: var(--bg-light);
    padding: 12px;
    border-radius: 8px;
}

/* Alignement et marges de la modale */
.modal-body {
    padding: 1.5rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.925rem;
    color: #1e293b;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 600px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
}

/* Compteur de billets (- / +) */
.qty-stepper {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    padding: 0.4rem 0.75rem;
    width: fit-content;
}

.btn-qty {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #0f172a;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease-in-out;
}

.btn-qty:hover {
    background: #e2e8f0;
    border-color: #94a3b8;
}

.btn-qty:active {
    transform: scale(0.95);
}

.qty-value {
    font-size: 1.2rem;
    font-weight: 800;
    min-width: 28px;
    text-align: center;
    color: #0f172a;
}

.qty-unit-info {
    font-size: 0.85rem;
    color: #64748b;
    margin-left: 0.25rem;
}

.form-footer {
    margin-top: 1.5rem;
}

.secure-notice {
    font-size: 0.8rem;
    color: #64748b;
    text-align: center;
    margin-top: 0.75rem;
}

/* Cache le texte aux yeux des utilisateurs tout en le conservant pour les moteurs de recherche */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Dimensions du logo */
.brand-logo {
    height: 48px;
    width: auto;
    display: block;
}

/* Masquage du bloc logo uniquement sur version mobile */
@media (max-width: 768px) {
    .brand {
        display: none !important;
    }
}

/* --- Alerte succès & Badges --- */
.hero-alert {
    background-color: #fff0f5;
    border-left: 4px solid #e6007e;
    color: #222222;
    padding: 10px 14px;
    border-radius: 4px;
    font-size: 0.95rem;
    margin-bottom: 15px;
}

.badge-status {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 3px;
    margin-left: 6px;
    vertical-align: middle;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.badge-status.soldout {
    background-color: #d32f2f;
    color: #ffffff;
}

.badge-status.new {
    background-color: #2e7d32;
    color: #ffffff;
}

/* Modificateurs d'éléments de détail */
.detail-item.detail-soldout {
    opacity: 0.6;
}

.detail-item.detail-highlight {
    background-color: rgba(46, 125, 50, 0.05);
    border-left: 3px solid #2e7d32;
    padding-left: 8px;
    border-radius: 0 4px 4px 0;
}

.venue-img {
    width: 100%;
    height: auto;
    max-height: 180px;
    object-fit: cover;
    border-radius: 6px;
    margin-top: 12px;
    border: 1px solid #e0e0e0;
}

/* Page retour HelloAsso : masquer l'affiche sur mobile */
@media screen and (max-width: 768px) {
    .hero-poster-retour {
        display: none !important;
    }
}