/* ==========================================================================
   1. POLICES & VARIABLES DESIGN SYSTEM (STYLE BILLETFACILE / SOLI+)
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
    /* Palette officielle */
    --primaire: #ff5500;
    --primaire-dark: #d94800;
    --primaire-gradient: linear-gradient(135deg, #ff5500 0%, #e03100 100%);
    --secondaire: #2563eb;

    /* Neutres & Arrière-plans */
    --fond-page: #f1f5f9;
    --fond-carte: #ffffff;
    --texte-principal: #0f172a;
    --texte-secondaire: #475569;
    --texte-muet: #94a3b8;
    --bordure: #e2e8f0;
    --bordure-focus: #ff5500;

    /* Status & Alerts */
    --succes-bg: #ecfdf5;
    --succes-texte: #047857;
    --erreur-bg: #fef2f2;
    --erreur-texte: #b91c1c;
    --info-bg: #eff6ff;
    --info-texte: #1d4ed8;

    /* Formes & Ombres */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-pill: 9999px;

    --ombre-subtile: 0 1px 3px 0 rgba(0, 0, 0, 0.05), 0 1px 2px -1px rgba(0, 0, 0, 0.05);
    --ombre-hover: 0 10px 25px -5px rgba(15, 23, 42, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
    --ombre-orange: 0 6px 16px -2px rgba(255, 85, 0, 0.3);
}

/* ==========================================================================
   2. RESET & LAYOUT GLOBAL (PLEINE PAGE)
   ========================================================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    width: 100%;
    min-height: 100vh;
    overflow-x: hidden;
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--fond-page);
    color: var(--texte-principal);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    display: flex;
    flex-direction: column;
}

img {
    max-width: 100%;
    height: auto;
}

/* Conteneur Pleine Largeur pour tout le site */
.conteneur {
    width: 100%;
    min-height: 100vh;
    align-self: center; 
    display: flex;
    flex-direction: column;
}

/* Zone de contenu dynamique */
.contenu {
    flex: 1;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    box-sizing: border-box;
}

.centre {
    text-align: center;
}

/* ==========================================================================
   3. EN-TÊTE PRINCIPAL (HEADER PUBLIC)
   ========================================================================== */
.entete {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.85rem 2rem;
    background: #ffffff;
    border-bottom: 1px solid var(--bordure);
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
}

.logo {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--texte-principal);
    text-decoration: none;
    letter-spacing: -0.6px;
}

.logo span {
    color: var(--primaire);
}

.nav-desktop {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-liens {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.nav-desktop-item {
    padding: 0.5rem 0.85rem;
    border-radius: var(--radius-sm);
    color: var(--texte-secondaire);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 700;
    transition: all 0.15s ease;
}

.nav-desktop-item:hover {
    color: var(--texte-principal);
    background-color: #f8fafc;
}

.nav-desktop-item.actif {
    color: var(--primaire);
    font-weight: 700;
}

.nav-boutons {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-nav {
    padding: 0.5rem 1.1rem;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-pro {
    background: #ffffff;
    color: var(--texte-principal);
    border: 1px solid var(--bordure);
}

.btn-pro:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

.btn-compte {
    background: var(--primaire);
    color: #ffffff !important;
    box-shadow: var(--ombre-orange);
}

.btn-compte:hover {
    background: var(--primaire-dark);
    transform: translateY(-1px);
}

/* ==========================================================================
   4. COMPOSANTS DE TEXTE & BANDEAUX
   ========================================================================== */
.bandeau-message {
    padding: 0.85rem 1.1rem;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.bandeau-info {
    background-color: var(--info-bg);
    color: var(--info-texte);
    border: 1px solid rgba(29, 78, 216, 0.15);
}

.bandeau-erreur {
    background-color: var(--erreur-bg);
    color: var(--erreur-texte);
    border: 1px solid rgba(185, 28, 28, 0.15);
}

.bandeau-succes {
    background-color: var(--succes-bg);
    color: var(--succes-texte);
    border: 1px solid rgba(4, 120, 87, 0.15);
}

.lien-retour {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--texte-secondaire);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    transition: color 0.15s ease;
}

.lien-retour:hover {
    color: var(--primaire);
}

.carte-titre,
.page-titre {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--texte-principal);
    letter-spacing: -0.4px;
    margin-bottom: 0.35rem;
}

.page-sous-titre {
    color: var(--texte-secondaire);
    font-size: 1rem;
    margin-bottom: 1.75rem;
}

.accent-orange {
    color: var(--primaire);
}

/* ==========================================================================
   5. GRILLES PUBLIQUES & CARTES DU SITE (ÉVÉNEMENTS / CAGNOTTES)
   ========================================================================== */
.cagnottes-section {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
}

.liste-horizontale-cagnottes {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.carte-item-horizontale {
    background: var(--fond-carte);
    border: 1px solid var(--bordure);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all 0.2s ease-in-out;
    box-shadow: var(--ombre-subtile);
    display: flex;
    flex-direction: column;
}

.carte-item-horizontale:hover {
    transform: translateY(-4px);
    box-shadow: var(--ombre-hover);
    border-color: #cbd5e1;
}

.carte-inner-horizontale {
    text-decoration: none;
    color: inherit;
    display: flex !important;
    flex-direction: column !important;
    height: 100%;
}

.carte-media-hz {
    position: relative;
    width: 100% !important;
    height: 180px;
    background-color: #0f172a;
    overflow: hidden;
}

.carte-img-hz {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.carte-item-horizontale:hover .carte-img-hz {
    transform: scale(1.05);
}

.carte-img-placeholder-hz {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #ffffff;
    font-weight: 800;
    font-size: 1.1rem;
}

.carte-badges-hz {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    z-index: 2;
}

.badge-tag {
    font-size: 0.65rem;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: var(--radius-sm);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-verifie {
    background-color: var(--secondaire);
    color: #ffffff;
}

.badge-video {
    background-color: rgba(15, 23, 42, 0.85);
    color: #ffffff;
    backdrop-filter: blur(4px);
}

.carte-body-hz {
    padding: 1.1rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1;
}

.carte-titre-hz {
    font-size: 1rem;
    font-weight: 700;
    color: var(--texte-principal);
    line-height: 1.4;
    margin-bottom: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.8em;
}

.progression-bloc-hz {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 0.85rem;
}

.progression-barre {
    flex-grow: 1;
    height: 6px;
    background-color: #e2e8f0;
    border-radius: var(--radius-pill);
    overflow: hidden;
}

.progression-remplissage {
    height: 100%;
    background: var(--primaire);
    border-radius: var(--radius-pill);
}

.progression-valeur {
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--primaire);
}

.carte-footer-hz {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #f8fafc;
    padding: 8px 10px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--bordure);
    gap: 8px;
}

.stats-grille-hz {
    display: flex;
    gap: 1rem;
}

.stat-col {
    display: flex;
    flex-direction: column;
}

.stat-titre {
    font-size: 0.58rem;
    color: var(--texte-secondaire);
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 0.4px;
}

.stat-montant {
    font-size: 0.85rem;
    font-weight: 800;
}

.montant-recolte {
    color: var(--secondaire);
}

.montant-objectif {
    color: var(--texte-principal);
}

.btn-soutenir-hz {
    display: inline-block;
    padding: 6px 12px;
    background-color: var(--texte-principal);
    color: #ffffff;
    font-weight: 700;
    font-size: 0.75rem;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
    white-space: nowrap;
}

.carte-item-horizontale:hover .btn-soutenir-hz {
    background-color: var(--primaire);
}

.badge-categorie {
    display: inline-block;
    padding: 3px 10px;
    background-color: #ffedd5;
    color: var(--primaire-dark);
    font-size: 0.7rem;
    font-weight: 800;
    border-radius: var(--radius-sm);
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin-bottom: 0.5rem;
}

.badge-complet {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--erreur-texte);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: var(--radius-pill);
}

.evenement-lieu,
.evenement-date {
    font-size: 0.85rem;
    color: var(--texte-secondaire);
    margin-bottom: 0.3rem;
    font-weight: 500;
}

.evenement-prix {
    margin-top: 0.5rem;
    font-size: 1rem;
    font-weight: 800;
    color: var(--primaire);
}

/* ==========================================================================
   6. PAGES DÉTAILS, ACHATS & REÇUS
   ========================================================================== */
.carte-detail {
    background: var(--fond-carte);
    border-radius: var(--radius-md);
    border: 1px solid var(--bordure);
    box-shadow: var(--ombre-subtile);
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.carte-image {
    position: relative;
    width: 100%;
    max-height: 380px;
    background-color: #0f172a;
    overflow: hidden;
}

.carte-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lien-video-detail {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(8px);
    color: #ffffff;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 700;
}

.detail-corps {
    padding: 1.5rem;
}

.barre-progression {
    height: 8px;
    background-color: #e2e8f0;
    border-radius: var(--radius-pill);
    overflow: hidden;
    margin: 1rem 0 0.5rem 0;
}

.barre-progression-remplissage {
    height: 100%;
    background: var(--primaire);
    border-radius: var(--radius-pill);
}

.stats-cagnotte {
    display: flex;
    justify-content: space-between;
    font-weight: 800;
    font-size: 1rem;
    margin-bottom: 1.25rem;
}

.stats-cagnotte .collecte {
    color: var(--primaire);
}

.stats-cagnotte .objectif {
    color: var(--texte-secondaire);
    font-size: 0.9rem;
}

.detail-description {
    font-size: 1rem;
    color: #334155;
    line-height: 1.6;
    margin-bottom: 1.25rem;
}

.carte-categorie-billet {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    background: #ffffff;
    border: 1px solid var(--bordure);
    border-radius: var(--radius-md);
    box-shadow: var(--ombre-subtile);
    padding: 0.9rem 1rem;
    margin-bottom: 0.65rem;
}

.categorie-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.categorie-nom {
    font-weight: 700;
    font-size: 0.95rem;
}

.categorie-places {
    font-size: 0.8rem;
    color: var(--texte-secondaire);
}

.categorie-prix {
    font-weight: 800;
    color: var(--primaire);
    font-size: 1rem;
}

.bouton-achat {
    display: inline-block;
    background: var(--primaire);
    color: #fff !important;
    font-weight: 700;
    font-size: 0.8rem;
    padding: 0.5rem 0.9rem;
    border-radius: var(--radius-sm);
    text-decoration: none;
}

.bouton-achat:hover {
    background: var(--primaire-dark);
}

.bouton-achat-ferme {
    background: var(--bordure);
    color: var(--texte-secondaire) !important;
}

/* Section Reçu & Confirmation */
.icone-succes {
    width: 64px;
    height: 64px;
    background-color: var(--succes-bg);
    color: var(--succes-texte);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    font-weight: 900;
    margin: 1rem auto;
}

.centre-titre {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
}

.recu-ligne {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px dashed var(--bordure);
}

.recu-ligne:last-child {
    border-bottom: none;
}

.recu-ligne span {
    color: var(--texte-secondaire);
    font-weight: 600;
}

.recu-ligne strong {
    color: var(--texte-principal);
}

.qr-code-image {
    width: 160px;
    height: 160px;
    margin: 1rem auto;
    display: block;
}

/* ==========================================================================
   7. FORMULAIRES & CHAMPS DE SAISIE
   ========================================================================== */
.groupe-champ {
    margin-bottom: 1.25rem;
    display: flex;
    flex-direction: column;
}

.groupe-champ label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--texte-principal);
    margin-bottom: 0.4rem;
}

.champ,
.groupe-champ input[type="text"],
.groupe-champ input[type="number"],
.groupe-champ input[type="url"],
.groupe-champ input[type="file"],
.groupe-champ input[type="datetime-local"],
.groupe-champ textarea,
.groupe-champ select {
    width: 100%;
    padding: 0.75rem 0.85rem;
    border: 1px solid var(--bordure);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-family: inherit;
    background-color: #ffffff;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.champ:focus,
.groupe-champ input:focus,
.groupe-champ textarea:focus,
.groupe-champ select:focus {
    outline: none;
    border-color: var(--bordure-focus);
    box-shadow: 0 0 0 3px rgba(255, 85, 0, 0.12);
}

.groupe-champ textarea {
    min-height: 110px;
    resize: vertical;
}

.champ-fichier {
    padding: 0.5rem;
}

.groupe-case {
    flex-direction: row;
    align-items: center;
}

.groupe-case label {
    margin-bottom: 0;
    cursor: pointer;
}

.erreur-champ {
    color: var(--erreur-texte);
    font-size: 0.775rem;
    font-weight: 600;
    margin-top: 0.3rem;
}

.bouton {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0.85rem;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-weight: 800;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.bouton-principal {
    background: var(--primaire);
    color: #ffffff;
    box-shadow: var(--ombre-orange);
}

.bouton-principal:hover {
    background: var(--primaire-dark);
    transform: translateY(-1px);
}

.bouton-secondaire {
    display: block;
    width: 100%;
    text-align: center;
    background: #fff;
    color: var(--texte-principal);
    border: 1px solid var(--bordure);
    padding: 0.75rem;
    border-radius: var(--radius-sm);
    font-weight: 700;
    text-decoration: none;
}

.bouton-secondaire:hover {
    border-color: var(--primaire);
    color: var(--primaire);
}

/* ==========================================================================
   8. FOOTER GLOBAL DE L'APPLICATION
   ========================================================================== */
.app-footer {
    background-color: #1e293b;
    color: #f8fafc;
    padding: 3rem 1.5rem 1.5rem;
    margin-top: auto;
    width: 100%;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.footer-logo span {
    color: var(--primaire);
}

.footer-col h4 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: #e2e8f0;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    margin-bottom: 0.5rem;
}

.footer-col a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-col a:hover {
    color: #ffffff;
}

.footer-bottom {
    max-width: 1200px;
    margin: 2rem auto 0;
    padding-top: 1rem;
    border-top: 1px solid #334155;
    text-align: center;
    font-size: 0.875rem;
    color: #94a3b8;
}

/* ==========================================================================
   9. ESPACE PRO — LAYOUT, SIDEBAR & DASHBOARD
   ========================================================================== */
.pro-layout {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

.pro-sidebar {
    width: 270px;
    flex-shrink: 0;
    background-color: var(--fond-carte);
    border-right: 1px solid var(--bordure);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 24px 16px;
    box-shadow: var(--ombre-subtile);
}

.pro-sidebar-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    padding: 0 8px 20px 8px;
    border-bottom: 1px solid var(--bordure);
    margin-bottom: 16px;
}

.logo-icon-bg {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-md);
    background: var(--primaire-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    box-shadow: var(--ombre-orange);
}

.logo-text {
    font-size: 20px;
    font-weight: 800;
    color: var(--texte-principal);
    letter-spacing: -0.3px;
}

.logo-text .plus {
    color: var(--primaire);
}

.nav-section-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--texte-muet);
    margin: 16px 10px 8px 10px;
}

.pro-sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.pro-sidebar-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: var(--radius-md);
    color: var(--texte-secondaire);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s ease-in-out;
}

.pro-sidebar-item:hover {
    background-color: var(--fond-page);
    color: var(--texte-principal);
}

.pro-sidebar-item.actif {
    background-color: rgba(255, 85, 0, 0.08);
    color: var(--primaire);
    font-weight: 700;
}

.pro-sidebar-bas {
    padding-top: 16px;
    border-top: 1px solid var(--bordure);
}

.pro-sidebar-user-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background-color: var(--fond-page);
    border-radius: var(--radius-md);
    border: 1px solid var(--bordure);
}

.pro-sidebar-user-avatar {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-pill);
    background: var(--primaire-gradient);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    position: relative;
    flex-shrink: 0;
}

.pro-contenu {
    flex: 1;
    padding: 32px 40px;
    background-color: var(--fond-page);
}

.db-wrap {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.db-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.db-stat-card {
    background: var(--fond-carte);
    border: 1px solid var(--bordure);
    border-radius: var(--radius-lg);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: var(--ombre-subtile);
}

.db-stat-value {
    font-size: 24px;
    font-weight: 800;
    color: var(--texte-principal);
    margin-top: 2px;
}

.db-section {
    background: var(--fond-carte);
    border: 1px solid var(--bordure);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--ombre-subtile);
}

.db-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}

.db-item-card {
    background-color: var(--fond-carte);
    border: 1px solid var(--bordure);
    border-radius: var(--radius-md);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-shadow: var(--ombre-subtile);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.db-item-card:hover {
    box-shadow: var(--ombre-hover);
}

/* ==========================================================================
   10. PAGE DÉTAILS ÉVÉNEMENT & UTILISATEUR
   ========================================================================== */
.sp-event-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    color: var(--texte-principal);
}

.sp-hero-split-card {
    background: var(--fond-carte);
    border-radius: var(--radius-lg);
    border: 1px solid var(--bordure);
    box-shadow: var(--ombre-subtile);
    margin-bottom: 2rem;
    padding: 1.5rem;
}

.sp-hero-split-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    align-items: center;
}

@media (min-width: 768px) {
    .sp-hero-split-grid {
        grid-template-columns: 380px 1fr;
        gap: 2rem;
    }
}

.sp-hero-image-container {
    position: relative;
    width: 100%;
    height: 280px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background-color: #f3f4f6;
}

.sp-hero-split-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

.sp-hero-image-container:hover .sp-hero-split-img {
    transform: scale(1.02);
}

.sp-hero-split-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--texte-muet);
}

.sp-badge-category {
    position: absolute;
    top: 14px;
    left: 14px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
    color: var(--primaire-dark);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.sp-hero-info-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.sp-hero-title {
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1.25;
    color: var(--texte-principal);
    margin-bottom: 1.25rem;
}

.sp-hero-details-list {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.sp-hero-detail-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sp-icon-wrapper {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: #fff4ed;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sp-icon {
    width: 20px;
    height: 20px;
    color: var(--primaire);
}

.sp-detail-text {
    display: flex;
    flex-direction: column;
}

.sp-detail-label {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--texte-secondaire);
    font-weight: 600;
}

.sp-detail-value {
    font-size: 0.95rem;
    color: var(--texte-principal);
    font-weight: 600;
}

.sp-grid-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 992px) {
    .sp-grid-layout {
        grid-template-columns: 1fr 360px;
    }
}

.sp-card-block {
    background: var(--fond-carte);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--bordure);
    box-shadow: var(--ombre-subtile);
}

.sp-block-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    border-bottom: 2px solid #f3f4f6;
    padding-bottom: 0.5rem;
}

.sp-description-content {
    line-height: 1.7;
    color: #374151;
    font-size: 1rem;
}

.sp-schedule-box {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: #f9fafb;
    padding: 1rem;
    border-radius: var(--radius-sm);
}

.sp-schedule-icon {
    background: #eff6ff;
    color: var(--secondaire);
    padding: 12px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sp-sidebar {
    position: sticky;
    top: 90px;
    height: fit-content;
}

.sp-booking-card {
    background: var(--fond-carte);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    border: 1px solid var(--bordure);
    box-shadow: var(--ombre-hover);
}

.sp-booking-header {
    margin-bottom: 1.5rem;
}

.sp-booking-header h4 {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0;
}

.sp-subtitle {
    font-size: 0.85rem;
    color: var(--texte-secondaire);
}

.sp-ticket-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px dashed var(--bordure);
}

.sp-ticket-info {
    display: flex;
    flex-direction: column;
}

.sp-ticket-name {
    font-weight: 600;
    font-size: 0.95rem;
}

.sp-ticket-price {
    color: var(--primaire);
    font-weight: 700;
    font-size: 0.95rem;
}

.sp-qty-picker {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f3f4f6;
    border-radius: 20px;
    padding: 4px;
}

.sp-btn-qty {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    background: #ffffff;
    color: var(--texte-principal);
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.2s;
}

.sp-btn-qty:hover {
    background: var(--primaire);
    color: #ffffff;
}

.sp-qty-input {
    width: 30px;
    text-align: center;
    border: none;
    background: transparent;
    font-weight: 700;
}

.sp-summary-box {
    margin: 1.5rem 0;
    padding: 1rem;
    background: #f9fafb;
    border-radius: var(--radius-sm);
}

.sp-summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--texte-secondaire);
}

.sp-summary-total {
    margin-bottom: 0;
    padding-top: 0.5rem;
    border-top: 1px solid var(--bordure);
    font-size: 1.05rem;
    color: var(--texte-principal);
}

.sp-summary-total strong {
    color: var(--primaire);
    font-size: 1.15rem;
}

.sp-btn-primary {
    width: 100%;
    padding: 0.9rem;
    background: var(--primaire-gradient);
    color: #ffffff;
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: var(--ombre-orange);
    transition: all 0.25s ease;
}

.sp-btn-primary:hover {
    background: var(--primaire-dark);
    transform: translateY(-1px);
}

.sp-btn-secondary {
    width: 100%;
    margin-top: 0.75rem;
    padding: 0.75rem;
    background: transparent;
    color: var(--secondaire);
    border: 1px solid rgba(37, 99, 235, 0.3);
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.sp-btn-secondary:hover {
    background: #eff6ff;
    border-color: var(--secondaire);
}

/* ==========================================================================
   11. MODULE CHECKOUT BILLETTERIE - SOLID+
   ========================================================================== */
.sp-checkout-container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 2rem 1rem;
    font-family: inherit;
    color: var(--texte-principal);
    box-sizing: border-box;
}

.sp-checkout-container *,
.sp-checkout-container *::before,
.sp-checkout-container *::after {
    box-sizing: border-box;
}

.sp-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.sp-title {
    font-size: 1.75rem;
    font-weight: 800;
    margin: 0;
    color: var(--texte-principal);
    line-height: 1.25;
}

.sp-subtitle {
    font-size: 0.875rem;
    color: var(--texte-secondaire);
    margin-top: 0.25rem;
    margin-bottom: 0;
}

.sp-badge-status {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: #fffbeb;
    border: 1px solid #fef3c7;
    color: #92400e;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-pill);
    font-size: 0.875rem;
    font-weight: 600;
}

.sp-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 1024px) {
    .sp-layout {
        grid-template-columns: 7fr 5fr;
    }
}

.sp-card {
    background: #ffffff;
    border: 1px solid var(--bordure);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--ombre-subtile);
}

.sp-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
}

.sp-card-title {
    font-size: 1.125rem;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--texte-principal);
}

.sp-step-num {
    width: 1.75rem;
    height: 1.75rem;
    background-color: #ffedd5;
    color: #ea580c;
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sp-back-link {
    font-size: 0.875rem;
    color: var(--texte-secondaire);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.sp-back-link:hover {
    color: var(--texte-principal);
}

.sp-grid-2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 640px) {
    .sp-grid-2 {
        grid-template-columns: 1fr 1fr;
    }
}

.sp-field {
    margin-bottom: 1.25rem;
}

.sp-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--texte-secondaire);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.375rem;
}

.sp-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--bordure);
    background-color: #f9fafb;
    color: var(--texte-principal);
    font-size: 0.875rem;
    outline: none;
    transition: border-color 0.2s ease;
}

.sp-input:focus {
    border-color: var(--primaire);
    background-color: #ffffff;
}

.sp-country-select-wrapper {
    position: relative;
    margin-bottom: 1.25rem;
}

.sp-country-select {
    width: 100%;
    padding: 0.75rem 2.5rem 0.75rem 3rem;
    border: 1px solid var(--bordure);
    border-radius: var(--radius-md);
    background-color: #ffffff;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--texte-principal);
    appearance: none;
    cursor: pointer;
    outline: none;
    transition: border-color 0.2s ease;
}

.sp-country-select:focus {
    border-color: var(--primaire);
}

.sp-country-flag {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    pointer-events: none;
}

.sp-country-arrow {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: var(--texte-secondaire);
    font-size: 0.75rem;
}

.sp-amount-box {
    background-color: #fff7ed;
    border: 1px solid #ffedd5;
    border-radius: var(--radius-md);
    padding: 1rem 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.sp-amount-label {
    font-size: 0.9rem;
    color: #4b5563;
    font-weight: 500;
}

.sp-amount-value {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--primaire);
    font-family: monospace;
}

.sp-payment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.sp-pay-card-option {
    position: relative;
    cursor: pointer;
    display: block;
}

.sp-pay-card-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.sp-pay-card-box {
    border: 1px solid var(--bordure);
    border-radius: var(--radius-md);
    overflow: hidden;
    background: #ffffff;
    transition: all 0.2s ease;
}

.sp-pay-card-top {
    padding: 1.25rem 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80px;
    position: relative;
    background-color: #ffffff;
}

.sp-pay-radio-indicator {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    border: 1.5px solid var(--bordure);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.2s ease;
}

.sp-pay-radio-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: transparent;
    transition: background-color 0.2s ease;
}

.sp-pay-card-bottom {
    padding: 0.6rem;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 600;
    color: #374151;
    border-top: 1px solid #f3f4f6;
    background-color: #fafafa;
}

.sp-pay-logo {
    max-height: 42px;
    width: auto;
    max-width: 120px;
    object-fit: contain;
    display: block;
}

.sp-card-brand-logos {
    display: flex;
    align-items: center;
    gap: 8px;
}

.sp-pay-card-option input[type="radio"]:checked + .sp-pay-card-box {
    border-color: var(--primaire);
    box-shadow: 0 0 0 1px var(--primaire);
}

.sp-pay-card-option input[type="radio"]:checked + .sp-pay-card-box .sp-pay-radio-indicator {
    border-color: var(--primaire);
}

.sp-pay-card-option input[type="radio"]:checked + .sp-pay-card-box .sp-pay-radio-dot {
    background-color: var(--primaire);
}

.sp-phone-group {
    display: flex;
    border: 1px solid var(--bordure);
    border-radius: var(--radius-md);
    overflow: hidden;
    background: #ffffff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.sp-phone-group:focus-within {
    border-color: var(--primaire);
    box-shadow: 0 0 0 3px rgba(255, 85, 0, 0.15);
}

.sp-phone-prefix {
    background: #f9fafb;
    padding: 0.75rem 1rem;
    border-right: 1px solid var(--bordure);
    font-weight: 700;
    font-size: 0.875rem;
    color: #374151;
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.sp-phone-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: none;
    outline: none;
    font-size: 0.875rem;
    font-family: monospace;
}

.sp-terms {
    padding-top: 1rem;
    margin-bottom: 1.5rem;
    border-top: 1px solid #f3f4f6;
}

.sp-checkbox-label {
    display: flex;
    gap: 0.5rem;
    align-items: flex-start;
    cursor: pointer;
    font-size: 0.75rem;
    color: var(--texte-secondaire);
}

.sp-btn-pay-main {
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
    display: block;
    background: var(--primaire-gradient);
    color: #ffffff;
    font-weight: 700;
    padding: 0.9rem 1.5rem;
    border-radius: var(--radius-md);
    border: none;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: var(--ombre-orange);
    transition: background-color 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease;
}

.sp-btn-pay-main:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(234, 88, 12, 0.35);
}

.sp-summary-card {
    background: #ffffff;
    border: 1px solid var(--bordure);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    position: sticky;
    top: 90px;
    box-shadow: var(--ombre-subtile);
}

.sp-summary-title {
    font-size: 1.125rem;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 1rem;
}

.sp-event-preview {
    display: flex;
    gap: 1rem;
    padding: 0.75rem;
    background: #f9fafb;
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
    border: 1px solid #f3f4f6;
}

.sp-event-img {
    width: 5rem;
    height: 5rem;
    object-fit: cover;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}

.sp-event-tag {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primaire);
    text-transform: uppercase;
}

.sp-event-name {
    font-size: 0.875rem;
    font-weight: 800;
    margin: 0.25rem 0 0 0;
    color: var(--texte-principal);
}

.sp-event-date {
    font-size: 0.75rem;
    color: var(--texte-secondaire);
    margin-top: 0.25rem;
    margin-bottom: 0;
}

.sp-summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
    color: #374151;
}

.sp-summary-price {
    font-weight: 700;
    font-family: monospace;
}

.sp-summary-total {
    border-top: 2px dashed var(--bordure);
    padding-top: 1rem;
    margin-top: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 800;
    font-size: 1.125rem;
    color: var(--texte-principal);
}

.sp-total-price {
    color: var(--primaire);
    font-family: monospace;
    font-size: 1.25rem;
}

.sp-security-notice {
    margin-top: 1.5rem;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #065f46;
    font-size: 0.75rem;
    padding: 0.75rem;
    border-radius: var(--radius-md);
    text-align: center;
    font-weight: 600;
}

/* ==========================================================================
   12. NAVIGATION MOBILE (BARRE INFÉRIEURE)
   ========================================================================== */
.nav-basse {
    display: none;
    position: fixed;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 24px);
    max-width: 500px;
    height: 58px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: var(--radius-pill);
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
    border: 1px solid var(--bordure);
    z-index: 1000;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--texte-secondaire);
    font-size: 0.675rem;
    font-weight: 700;
    flex: 1;
}

.nav-item .nav-icone {
    font-size: 1.15rem;
}

.nav-item:hover,
.nav-item.actif {
    color: var(--primaire);
}

/* ==========================================================================
   13. MEDIA QUERIES (BREAKPOINTS RESPONSIVE GLOBAL)
   ========================================================================== */

/* Écrans Moyens & Tablettes (Max 992px) */
@media (max-width: 992px) {
    .pro-layout {
        flex-direction: column;
    }

    .pro-sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--bordure);
    }

    .sp-sidebar,
    .sp-summary-card {
        position: static;
    }
}

/* Smartablettes & Mobiles Larges (Max 768px) */
@media (max-width: 768px) {
    .sp-hero-split-grid {
        grid-template-columns: 1fr;
    }

    .sp-hero-image-container {
        height: 220px;
    }

    .sp-hero-title {
        font-size: 1.5rem;
    }

    .carte-footer-hz {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .btn-soutenir-hz {
        width: 100%;
        text-align: center;
    }
}

/* Petits Écrans Mobiles (Max 640px) */
@media (max-width: 640px) {
    .nav-desktop {
        display: none;
    }

    .nav-basse {
        display: flex;
    }

    .contenu {
        padding: 1rem 0.85rem 90px 0.85rem;
    }

    .entete {
        padding: 0.85rem 1rem;
    }

    .carte-titre,
    .page-titre {
        font-size: 1.35rem;
    }

    .pro-contenu {
        padding: 16px;
    }

    .sp-payment-grid {
        grid-template-columns: 1fr;
    }

    .sp-btn-pay-main {
        max-width: 100%;
    }

    .sp-card {
        padding: 1rem;
    }

    .sp-event-preview {
        flex-direction: column;
        align-items: flex-start;
    }

    .sp-event-img {
        width: 100%;
        height: 120px;
    }
}