/* ==========================================================================
   SOLI+ — THÈME PUBLIC (en-tête, pied de page, pages découverte, compte)
   Chargé APRÈS style.css : ne modifie que des classes préfixées .sp- et
   affine l'en-tête existant. Les couleurs reprennent la palette officielle.
   ========================================================================== */
:root {
    --sp-orange: #ff5500;
    --sp-orange-fonce: #d94800;
    --sp-orange-doux: #fff3ec;
    --sp-encre: #0f172a;
    --sp-ardoise: #475569;
    --sp-muet: #64748b;
    --sp-brume: #f1f5f9;
    --sp-ligne: #e2e8f0;
    --sp-blanc: #ffffff;
    --sp-vert: #047857;
    --sp-rayon: 18px;
    --sp-rayon-petit: 10px;
}

/* --------------------------------------------------------------------------
   En-tête : plus léger, légèrement translucide
   -------------------------------------------------------------------------- */
.entete {
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: saturate(160%) blur(14px);
    -webkit-backdrop-filter: saturate(160%) blur(14px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}
.entete .nav-desktop-item { font-size: .95rem; font-weight: 600; }
.entete .nav-desktop-item.actif { color: var(--sp-encre); box-shadow: inset 0 -2px 0 var(--sp-orange); border-radius: 0; }
.entete .btn-nav { border-radius: 999px; padding: .55rem 1.15rem; }
.entete a:focus-visible,
.sp-footer a:focus-visible,
.sp-page a:focus-visible,
.sp-page button:focus-visible,
.sp-page input:focus-visible,
.sp-page select:focus-visible,
.sp-page textarea:focus-visible {
    outline: 3px solid rgba(255, 85, 0, .45);
    outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   Pied de page
   -------------------------------------------------------------------------- */
.sp-footer {
    margin-top: auto;
    width: 100%;
    background: var(--sp-encre);
    color: #cbd5e1;
    position: relative;
    overflow: hidden;
}
.sp-footer::before {
    /* fine bande orange : rappel de la marque */
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 4px;
    background: linear-gradient(90deg, var(--sp-orange), #ff8a3d 60%, var(--sp-orange));
}
.sp-footer-haut,
.sp-footer-inner,
.sp-footer-bas { max-width: 1240px; margin: 0 auto; box-sizing: border-box; }

.sp-footer-haut {
    padding: 56px 24px 40px;
    display: flex; align-items: center; justify-content: space-between;
    gap: 32px; flex-wrap: wrap;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.sp-footer-logo { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; }
.sp-footer-logo img { width: 56px; height: 56px; border-radius: 14px; display: block; }
.sp-footer-logo span { font-size: 2.4rem; font-weight: 800; letter-spacing: -.05em; color: #fff; line-height: 1; }
.sp-footer-logo b { color: var(--sp-orange); font-weight: 800; }
.sp-footer-slogan { margin: 14px 0 0; max-width: 38ch; color: #94a3b8; font-size: .98rem; line-height: 1.6; }
.sp-footer-appel { display: flex; flex-direction: column; gap: 12px; align-items: flex-end; }
.sp-footer-appel p { margin: 0; color: #cbd5e1; font-weight: 600; }
.sp-footer-numeros { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.sp-numero {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 12px 20px; border-radius: 999px;
    background: var(--sp-orange); color: #fff; text-decoration: none;
    font-weight: 700; font-size: 1rem; letter-spacing: .01em;
    transition: background .2s ease;
}
.sp-numero:hover { background: var(--sp-orange-fonce); color: #fff; }
.sp-numero + .sp-numero { background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); }
.sp-numero + .sp-numero:hover { background: rgba(255, 255, 255, .16); }
.sp-numero svg, .sp-numero i { width: 18px; height: 18px; }

.sp-footer-inner {
    padding: 40px 24px 36px;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 28px;
}
.sp-footer-legal a { color: inherit; text-decoration: none; }
.sp-footer-legal a:hover { color: #ff8a3d; text-decoration: underline; }
.sp-reseaux { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0; padding: 0; }
.sp-reseaux a {
    width: 42px; height: 42px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 50%;
    color: #e2e8f0;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .1);
    transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.sp-reseaux a:hover { background: var(--sp-orange); border-color: var(--sp-orange); color: #fff; }
/* Logo officiel dans l'en-tête (remplace l'icône dessinée) */
.entete .pro-sidebar-logo { padding: 0; margin: 0; border-bottom: 0; gap: 10px; }
.entete .pro-sidebar-logo .logo-text { font-size: 1.35rem; letter-spacing: -.04em; }
.logo-icon-bg.logo-image { background: none !important; box-shadow: none !important; padding: 0; overflow: hidden; }
.logo-icon-bg.logo-image img { width: 100%; height: 100%; display: block; object-fit: cover; }
.sp-reseaux-liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.sp-reseaux-liste a {
    display: inline-flex; align-items: center; gap: 10px;
    color: #cbd5e1; text-decoration: none; font-weight: 600;
}
.sp-reseau-icone {
    width: 38px; height: 38px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1);
    transition: background .2s ease, border-color .2s ease;
}
.sp-reseaux-liste a:hover { color: #fff; }
.sp-reseaux-liste a:hover .sp-reseau-icone { background: var(--sp-orange); border-color: var(--sp-orange); }
.sp-footer h2 {
    font-size: .95rem; font-weight: 700; color: #fff;
    margin: 0 0 16px; letter-spacing: -.01em;
}
.sp-footer ul.sp-liens { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.sp-footer ul.sp-liens a,
.sp-contact a { color: #94a3b8; text-decoration: none; transition: color .15s ease; }
.sp-footer ul.sp-liens a:hover,
.sp-contact a:hover { color: #fff; }
.sp-contact { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; font-size: .94rem; color: #cbd5e1; }
.sp-contact li { display: flex; gap: 10px; align-items: flex-start; min-width: 0; }
.sp-contact svg, .sp-contact i { flex: 0 0 auto; width: 18px; height: 18px; color: var(--sp-orange); margin-top: 2px; }
.sp-contact span, .sp-contact a { overflow-wrap: anywhere; }
.sp-footer-bas {
    padding: 20px 24px 28px;
    border-top: 1px solid rgba(255, 255, 255, .08);
    display: flex; flex-wrap: wrap; gap: 10px 24px;
    justify-content: space-between;
    font-size: .85rem;
    color: #64748b;
}
@media (max-width: 960px) {
    .sp-footer-inner { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .sp-footer-appel { align-items: flex-start; }
    .sp-footer-numeros { justify-content: flex-start; }
}
@media (max-width: 560px) {
    .sp-footer-haut { padding: 44px 20px 30px; }
    .sp-footer-logo span { font-size: 2rem; }
    .sp-footer-logo img { width: 48px; height: 48px; }
    .sp-footer-numeros { width: 100%; }
    .sp-numero { flex: 1 1 100%; justify-content: center; }
    .sp-footer-inner { grid-template-columns: 1fr 1fr; gap: 30px 20px; padding: 32px 20px 28px; }
    .sp-footer-inner > div { grid-column: 1 / -1; }
    .sp-footer-bas { padding: 18px 20px 24px; flex-direction: column; }
}

/* --------------------------------------------------------------------------
   Pages de découverte (événements / collectes)
   -------------------------------------------------------------------------- */
.sp-page { color: var(--sp-encre); }
.sp-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: 48px;
    align-items: center;
    padding: 24px 0 40px;
}
.sp-hero h1 {
    font-size: clamp(2.2rem, 5.2vw, 3.9rem);
    line-height: 1.02;
    letter-spacing: -.045em;
    font-weight: 800;
    margin: 0 0 18px;
    max-width: 14ch;
}
.sp-hero p.sp-chapo {
    font-size: 1.08rem;
    line-height: 1.65;
    color: var(--sp-ardoise);
    max-width: 46ch;
    margin: 0 0 28px;
}
.sp-recherche {
    display: flex;
    gap: 8px;
    padding: 8px;
    background: #fff;
    border: 1px solid var(--sp-ligne);
    border-radius: 999px;
    box-shadow: 0 18px 40px -22px rgba(15, 23, 42, .35);
    max-width: 520px;
}
.sp-recherche label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.sp-recherche input {
    flex: 1; min-width: 0;
    border: 0; outline: 0; background: transparent;
    padding: 10px 16px;
    font: inherit; font-size: 1rem; color: var(--sp-encre);
}
.sp-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    border: 0; border-radius: 999px;
    padding: 12px 22px;
    font: inherit; font-weight: 700; font-size: .95rem;
    text-decoration: none; cursor: pointer;
    transition: background .2s ease, color .2s ease, transform .2s ease;
    white-space: nowrap;
}
.sp-btn-orange { background: var(--sp-orange); color: #fff; }
.sp-btn-orange:hover { background: var(--sp-orange-fonce); color: #fff; }
.sp-btn-encre { background: var(--sp-encre); color: #fff; }
.sp-btn-encre:hover { background: #1e293b; color: #fff; }
.sp-btn-clair { background: #fff; color: var(--sp-encre); border: 1px solid var(--sp-ligne); }
.sp-btn-clair:hover { border-color: #cbd5e1; background: #f8fafc; }
.sp-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; align-items: center; }
.sp-hero-actions .sp-lien { color: var(--sp-ardoise); font-weight: 600; text-decoration: none; padding: 10px 4px; }
.sp-hero-actions .sp-lien:hover { color: var(--sp-orange); }
.sp-hero-visuel {
    position: relative;
    border-radius: 28px;
    overflow: hidden;
    aspect-ratio: 5 / 4;
    background: #e2e8f0;
}
.sp-hero-visuel img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sp-hero-visuel .sp-hero-note {
    position: absolute; left: 18px; bottom: 18px; right: 18px;
    display: flex; align-items: center; gap: 12px;
    padding: 14px 16px;
    background: rgba(255, 255, 255, .94);
    border-radius: 16px;
    font-size: .92rem; color: var(--sp-ardoise);
    max-width: 340px;
}
.sp-hero-note strong { display: block; color: var(--sp-encre); font-size: 1.15rem; line-height: 1.1; }
.sp-hero-note .sp-pastille-icone {
    flex: 0 0 auto; width: 42px; height: 42px; border-radius: 12px;
    background: var(--sp-orange-doux); color: var(--sp-orange);
    display: inline-flex; align-items: center; justify-content: center;
}

.sp-filtres { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 10px; scrollbar-width: none; }
.sp-filtres::-webkit-scrollbar { display: none; }
.sp-filtre {
    flex: 0 0 auto;
    padding: 9px 16px;
    border-radius: 999px;
    border: 1px solid var(--sp-ligne);
    background: #fff;
    color: var(--sp-ardoise);
    font-weight: 600; font-size: .9rem;
    text-decoration: none;
    transition: border-color .15s ease, color .15s ease, background .15s ease;
}
.sp-filtre:hover { border-color: var(--sp-orange); color: var(--sp-orange); }
.sp-filtre.actif { background: var(--sp-encre); border-color: var(--sp-encre); color: #fff; }

.sp-section { padding: 28px 0 8px; scroll-margin-top: 90px; }
.sp-section-tete {
    display: flex; align-items: flex-end; justify-content: space-between;
    gap: 16px; flex-wrap: wrap;
    margin-bottom: 22px;
}
.sp-section-tete h2 { font-size: clamp(1.5rem, 3vw, 2.05rem); font-weight: 800; letter-spacing: -.035em; margin: 0; }
.sp-section-tete p { margin: 6px 0 0; color: var(--sp-muet); }
.sp-section-tete a { color: var(--sp-encre); font-weight: 700; text-decoration: none; border-bottom: 2px solid var(--sp-orange); padding-bottom: 2px; }

.sp-grille { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; }
@media (max-width: 1024px) { .sp-grille { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
    .sp-grille { grid-template-columns: 1fr; gap: 18px; }
    .sp-hero { grid-template-columns: minmax(0, 1fr); gap: 26px; padding-top: 4px; }
    .sp-hero > * { min-width: 0; }
    .sp-hero-visuel { aspect-ratio: 16 / 11; border-radius: 22px; order: -1; }
    .sp-recherche { border-radius: 16px; }
    .sp-recherche .sp-btn { padding: 10px 16px; }
}

/* Carte générique */
.sp-carte {
    display: flex; flex-direction: column;
    min-width: 0;
    background: #fff;
    border-radius: var(--sp-rayon);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    border: 1px solid #edf1f5;
    transition: box-shadow .25s ease, transform .25s ease;
}
.sp-carte:hover { box-shadow: 0 24px 48px -28px rgba(15, 23, 42, .45); transform: translateY(-3px); }
.sp-carte-media { position: relative; aspect-ratio: 16 / 10; background: #e2e8f0; overflow: hidden; }
.sp-carte-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s ease; }
.sp-carte:hover .sp-carte-media img { transform: scale(1.04); }
.sp-carte-vide {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #fff3ec, #ffe1cf);
    color: var(--sp-orange);
}
.sp-date {
    position: absolute; left: 14px; top: 14px;
    width: 58px; padding: 8px 0 7px;
    background: #fff; border-radius: 14px;
    text-align: center; line-height: 1;
    box-shadow: 0 8px 20px -10px rgba(15, 23, 42, .5);
}
.sp-date strong { display: block; font-size: 1.45rem; font-weight: 800; letter-spacing: -.04em; color: var(--sp-encre); }
.sp-date span { display: block; margin-top: 4px; font-size: .74rem; font-weight: 700; color: var(--sp-orange); text-transform: capitalize; }
.sp-etiquette {
    position: absolute; right: 14px; top: 14px;
    padding: 6px 11px; border-radius: 999px;
    background: rgba(15, 23, 42, .78); color: #fff;
    font-size: .76rem; font-weight: 600;
    backdrop-filter: blur(6px);
}
.sp-carte-corps { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; min-width: 0; }
.sp-carte-corps h3 {
    margin: 0; font-size: 1.12rem; font-weight: 700; letter-spacing: -.02em; line-height: 1.3;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.sp-meta { display: flex; align-items: center; gap: 7px; color: var(--sp-muet); font-size: .9rem; min-width: 0; }
.sp-meta svg, .sp-meta i { width: 16px; height: 16px; flex: 0 0 auto; }
.sp-meta span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sp-carte-pied {
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid #f1f5f9;
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.sp-prix { font-size: .82rem; color: var(--sp-muet); line-height: 1.25; }
.sp-prix strong { display: block; font-size: 1.02rem; color: var(--sp-encre); font-weight: 800; }
.sp-cta {
    padding: 9px 16px; border-radius: 999px;
    background: var(--sp-orange-doux); color: var(--sp-orange-fonce);
    font-weight: 700; font-size: .88rem;
    transition: background .2s ease, color .2s ease;
}
.sp-carte:hover .sp-cta { background: var(--sp-orange); color: #fff; }

/* Progression des collectes */
.sp-progression { height: 8px; border-radius: 999px; background: #f1f5f9; overflow: hidden; }
.sp-progression span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--sp-orange), #ff8a3d); }
.sp-montants { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: .88rem; color: var(--sp-muet); }
.sp-montants strong { color: var(--sp-encre); font-size: 1.05rem; font-weight: 800; }
.sp-pourcent { font-weight: 800; color: var(--sp-orange-fonce); }

/* État vide */
.sp-vide {
    grid-column: 1 / -1;
    text-align: center;
    padding: 56px 20px;
    border: 1.5px dashed #cbd5e1;
    border-radius: var(--sp-rayon);
    background: #fff;
}
.sp-vide h3 { margin: 10px 0 6px; font-size: 1.2rem; }
.sp-vide p { margin: 0 auto 18px; color: var(--sp-muet); max-width: 44ch; }

/* Pagination */
.sp-pagination { display: flex; justify-content: center; align-items: center; gap: 6px; margin: 34px 0 10px; flex-wrap: wrap; }
.sp-pagination a,
.sp-pagination span {
    min-width: 42px; height: 42px;
    padding: 0 12px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 999px;
    font-weight: 700; font-size: .92rem;
    text-decoration: none;
    color: var(--sp-ardoise);
    background: #fff;
    border: 1px solid var(--sp-ligne);
}
.sp-pagination a:hover { border-color: var(--sp-orange); color: var(--sp-orange); }
.sp-pagination .actif { background: var(--sp-encre); color: #fff; border-color: var(--sp-encre); }
.sp-pagination .inactif { opacity: .4; }
.sp-pagination .sp-points { border: 0; background: transparent; min-width: 20px; padding: 0; }
.sp-pagination-info { text-align: center; color: var(--sp-muet); font-size: .86rem; margin: 0 0 8px; }

/* --------------------------------------------------------------------------
   Pages « Mon compte » / page entreprise publique
   -------------------------------------------------------------------------- */
.sp-compte { max-width: 920px; margin: 0 auto; }
.sp-compte-tete { display: flex; align-items: center; gap: 18px; margin: 8px 0 26px; flex-wrap: wrap; }
.sp-avatar {
    width: 76px; height: 76px; border-radius: 50%;
    flex: 0 0 auto;
    object-fit: cover;
    background: var(--sp-orange-doux); color: var(--sp-orange-fonce);
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 1.8rem; font-weight: 800;
    border: 3px solid #fff;
    box-shadow: 0 10px 24px -14px rgba(15, 23, 42, .55);
}
.sp-compte-tete h1 { margin: 0; font-size: clamp(1.5rem, 3vw, 2rem); letter-spacing: -.035em; }
.sp-compte-tete p { margin: 4px 0 0; color: var(--sp-muet); }
.sp-onglets { display: flex; gap: 6px; border-bottom: 1px solid var(--sp-ligne); margin-bottom: 22px; overflow-x: auto; }
.sp-onglets a {
    padding: 12px 14px; color: var(--sp-muet); font-weight: 600; text-decoration: none;
    border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap;
}
.sp-onglets a.actif { color: var(--sp-encre); border-bottom-color: var(--sp-orange); }
.sp-panneau {
    background: #fff; border: 1px solid #edf1f5; border-radius: var(--sp-rayon);
    padding: 26px; margin-bottom: 20px;
}
.sp-panneau h2 { margin: 0 0 4px; font-size: 1.15rem; letter-spacing: -.02em; }
.sp-panneau > p.sp-aide { margin: 0 0 20px; color: var(--sp-muet); font-size: .92rem; }
.sp-form-grille { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 18px; }
.sp-champ { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.sp-champ.plein { grid-column: 1 / -1; }
.sp-champ label { font-size: .86rem; font-weight: 700; color: #334155; }
.sp-champ input:not([type=checkbox]):not([type=radio]):not([type=file]),
.sp-champ select,
.sp-champ textarea {
    width: 100%; box-sizing: border-box;
    min-height: 46px;
    padding: 11px 14px;
    border: 1px solid #dbe3ee; border-radius: 12px;
    background: #fff; color: var(--sp-encre);
    font: inherit; font-size: .97rem;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.sp-champ textarea { min-height: 120px; resize: vertical; }
.sp-champ input:focus, .sp-champ select:focus, .sp-champ textarea:focus {
    outline: none; border-color: #ff8a55; box-shadow: 0 0 0 4px rgba(255, 85, 0, .12);
}
.sp-champ input[type=file] { font-size: .9rem; color: var(--sp-ardoise); }
.sp-champ .sp-aide-champ { font-size: .8rem; color: var(--sp-muet); }
.sp-champ .errorlist, .sp-erreur { list-style: none; margin: 0; padding: 0; color: #b42318; font-size: .82rem; }
.sp-alerte { padding: 12px 14px; border-radius: 12px; background: #fff1f2; border: 1px solid #fecaca; color: #b42318; margin-bottom: 16px; font-size: .9rem; }
.sp-form-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 22px; flex-wrap: wrap; }
.sp-photo-ligne { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.sp-photo-ligne .sp-avatar { width: 88px; height: 88px; }
.sp-logo-apercu { width: 88px; height: 88px; border-radius: 20px; object-fit: cover; background: var(--sp-brume); border: 1px solid var(--sp-ligne); }
@media (max-width: 640px) {
    .sp-form-grille { grid-template-columns: 1fr; }
    .sp-champ.plein { grid-column: auto; }
    .sp-panneau { padding: 20px 16px; }
    .sp-form-actions .sp-btn { flex: 1; }
}

/* Page entreprise publique */
.sp-org-banniere {
    height: clamp(160px, 26vw, 280px);
    border-radius: 28px;
    background: linear-gradient(120deg, var(--sp-encre), #1e293b 55%, #3b1a0b);
    overflow: hidden;
}
.sp-org-banniere img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sp-org-identite {
    display: flex; gap: 8px 22px; align-items: flex-start; flex-wrap: wrap;
    margin: -56px 28px 26px; position: relative;
}
/* Le logo chevauche la bannière ; le texte et le bouton restent dessous. */
.sp-org-identite > :not(.sp-org-logo) { margin-top: 68px; }
.sp-org-logo {
    width: 116px; height: 116px; border-radius: 26px;
    background: #fff; border: 4px solid #fff;
    box-shadow: 0 18px 36px -20px rgba(15, 23, 42, .6);
    object-fit: cover;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 2.4rem; font-weight: 800; color: var(--sp-orange);
}
.sp-org-identite h1 { margin: 0; font-size: clamp(1.6rem, 3.6vw, 2.4rem); letter-spacing: -.04em; }
.sp-org-identite p { margin: 4px 0 0; color: var(--sp-muet); }
.sp-org-corps { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 26px; }
.sp-org-corps .sp-description { white-space: pre-line; line-height: 1.7; color: var(--sp-ardoise); }
@media (max-width: 860px) {
    .sp-org-corps { grid-template-columns: 1fr; }
    .sp-org-identite { margin: -48px 16px 22px; }
    .sp-org-identite > :not(.sp-org-logo) { margin-top: 0; }
    .sp-org-identite > div:not(.sp-org-logo) { flex-basis: 100%; }
    .sp-org-logo { width: 96px; height: 96px; }
}

@media (prefers-reduced-motion: reduce) {
    .sp-carte, .sp-carte-media img, .sp-btn, .sp-cta { transition: none !important; }
    .sp-carte:hover { transform: none; }
    .sp-carte:hover .sp-carte-media img { transform: none; }
}

/* ---------- QR code en direct (anti capture d'écran) ---------- */
.qrd { display: flex; flex-direction: column; align-items: center; gap: 10px; width: 100%; max-width: 250px; margin: 0 auto; box-sizing: border-box; }
.qrd *, .qrd *::before, .qrd *::after { box-sizing: border-box; }
.qrd-cadre { width: 100%; padding: 10px 10px 12px; border-radius: 20px; background: #fff; border: 3px solid #ff5500; box-shadow: 0 8px 24px rgba(255, 85, 0, .16); }
.qrd-qr { width: 100%; aspect-ratio: 1; }
.qrd-qr svg { display: block; width: 100%; height: 100%; }
.qrd-temps { height: 6px; margin-top: 8px; border-radius: 999px; background: #ffe4d4; overflow: hidden; }
.qrd-jauge { display: block; height: 100%; background: linear-gradient(90deg, #ff5500, #ff8a3d, #ff5500); background-size: 200% 100%; transform-origin: left center; animation: qrd-reflet 1.4s linear infinite; }
.qrd-heure { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 0; font-variant-numeric: tabular-nums; color: #0f172a; font-size: 1.1rem; line-height: 1; }
.qrd-point { width: 10px; height: 10px; flex: none; border-radius: 50%; background: #16a34a; animation: qrd-clignote 1s steps(2, start) infinite; }
.qrd-direct { font-size: .62rem; font-weight: 800; letter-spacing: .1em; color: #16a34a; background: #dcfce7; border-radius: 999px; padding: 4px 7px; }
.qrd-aide { margin: 0; text-align: center; font-size: .78rem; color: #475569; line-height: 1.45; }
.qrd-erreur { margin: 0; color: #b91c1c; font-weight: 700; text-align: center; font-size: .85rem; }
@keyframes qrd-reflet { from { background-position: 0 0; } to { background-position: -200% 0; } }
@keyframes qrd-clignote { to { visibility: hidden; } }

/* ---- Garder le billet / l'envoyer sur WhatsApp ---- */
.bga { display: flex; flex-direction: column; gap: 10px; width: 100%; }
.bga-boutons { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.bga-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 11px 14px; border-radius: 14px; border: 0; font: inherit; font-weight: 800; font-size: .92rem; line-height: 1.2; text-align: center; text-decoration: none; cursor: pointer; transition: transform .12s ease, background .15s ease; }
.bga-btn:active { transform: scale(.98); }
.bga-btn svg { flex: none; }
.bga-garder { background: #0f172a; color: #fff; }
.bga-garder:hover { background: #1e293b; }
.bga-garder.fait { background: #dcfce7; color: #166534; }
.bga-garder[disabled] { opacity: .7; cursor: progress; }
.bga-whatsapp { background: #25d366; color: #fff; }
.bga-whatsapp:hover { background: #1ebe5b; color: #fff; }
.bga-info { padding: 12px 14px; border-radius: 14px; font-size: .86rem; line-height: 1.5; color: #334155; background: #f1f5f9; }
.bga-info.ok { background: #f0fdf4; border: 1px solid #bbf7d0; color: #14532d; }
.bga-info.erreur { background: #fef2f2; border: 1px solid #fecaca; color: #7f1d1d; }
.bga-info a { color: inherit; font-weight: 700; }
.bga-installer { display: block; width: 100%; margin-top: 10px; padding: 12px; border: 0; border-radius: 12px; background: #ff5500; color: #fff; font: inherit; font-weight: 800; cursor: pointer; }
.bga-note { margin: 0; font-size: .74rem; color: #64748b; text-align: center; }
@media (max-width: 380px) { .bga-boutons { grid-template-columns: 1fr; } }

/* ---- Rappel : tranche à payer (clients connectés) ---- */
.rappel-tranche { display: flex; align-items: center; gap: 12px; max-width: 980px; margin: 0 auto 18px; padding: 12px 14px; border-radius: 18px; background: #fff7ed; border: 1px solid #fed7aa; color: #7c2d12; text-decoration: none; box-shadow: 0 10px 24px -20px rgba(194, 65, 12, .7); }
.rappel-tranche:hover { background: #ffedd5; color: #7c2d12; }
.rappel-tranche.urgent { background: #fef2f2; border-color: #fecaca; color: #7f1d1d; }
.rappel-tranche-icone { flex: none; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: #fff; font-size: 1.2rem; }
.rappel-tranche-texte { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; line-height: 1.3; }
.rappel-tranche-texte strong { font-size: .95rem; }
.rappel-tranche-texte span { font-size: .82rem; opacity: .85; }
.rappel-tranche-btn { flex: none; padding: 10px 16px; border-radius: 999px; background: #ff5500; color: #fff; font-weight: 800; font-size: .88rem; }
.rappel-tranche.urgent .rappel-tranche-btn { background: #dc2626; }

/* ---- Visuel des cartes : affiche entière + fond flouté aux couleurs de l'affiche ---- */
.vis { position: absolute; inset: 0; overflow: hidden; background: #0f172a; isolation: isolate; }
.vis > .vis-fond { position: absolute; inset: -14%; width: 128%; height: 128%; max-width: none; object-fit: cover; filter: blur(26px) saturate(1.5) brightness(.92); transform: scale(1.08); z-index: 0; }
.vis::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: radial-gradient(ellipse at center, transparent 55%, rgba(15, 23, 42, .28) 100%); }
.vis > .vis-img { position: relative; z-index: 2; display: block; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 10px 22px rgba(0, 0, 0, .35)); transition: transform .6s ease; }
.sp-carte:hover .vis > .vis-img, .catalogue-card:hover .vis > .vis-img, .sp-hero-image-container:hover .vis > .vis-img { transform: scale(1.035); }
.sp-carte:hover .vis > .vis-fond, .catalogue-card:hover .vis > .vis-fond { transform: scale(1.08); }
/* les étiquettes restent au-dessus du visuel */
.sp-carte-media .sp-date, .sp-carte-media .sp-etiquette, .catalogue-card-image .catalogue-tag, .sp-hero-image-container .sp-badge-category, .media-card .btn-video-overlay { z-index: 3; }

/* Affiche générée quand il n'y a pas de photo */
.vis--genere { --c1: #ff5500; --c2: #8b5cf6; --c3: #0f172a; background: var(--c3); color: #fff; display: grid; place-items: center; }
.vis--genere::before { content: ""; position: absolute; inset: -20%; z-index: 0; background:
    radial-gradient(42% 48% at 18% 22%, var(--c1) 0%, transparent 70%),
    radial-gradient(45% 50% at 85% 80%, var(--c2) 0%, transparent 72%),
    radial-gradient(30% 35% at 80% 15%, rgba(255, 255, 255, .28) 0%, transparent 70%);
    filter: blur(8px); opacity: .95; }
.vis-motif { position: absolute; inset: 0; z-index: 1; opacity: .18; background-image: radial-gradient(rgba(255,255,255,.9) 1px, transparent 1.4px); background-size: 14px 14px; -webkit-mask-image: linear-gradient(160deg, #000 10%, transparent 75%); mask-image: linear-gradient(160deg, #000 10%, transparent 75%); }
.vis-anneau { position: absolute; z-index: 1; width: 78%; aspect-ratio: 1; right: -26%; bottom: -46%; border-radius: 50%; border: 2px solid rgba(255,255,255,.22); box-shadow: 0 0 0 26px rgba(255,255,255,.05), 0 0 0 58px rgba(255,255,255,.035); }
.vis-contenu { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 18px 22px; text-align: center; max-width: 100%; box-sizing: border-box; }
.vis-icone { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 18px; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.28); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); box-shadow: 0 10px 24px -10px rgba(0,0,0,.45); }
.vis-icone svg, .vis-icone i { width: 26px; height: 26px; }
.vis-libelle { font-size: .7rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; opacity: .9; }
.vis-titre { font-size: clamp(1.05rem, 4.2vw, 1.35rem); font-weight: 800; line-height: 1.15; letter-spacing: -.02em; text-wrap: balance; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; text-shadow: 0 2px 14px rgba(0,0,0,.25); }
.vis-marque { position: absolute; z-index: 2; right: 12px; bottom: 10px; font-size: .72rem; font-weight: 800; letter-spacing: -.01em; opacity: .75; }
.vis-marque b { color: #ffd2b8; }
.vis--detail .vis-icone { width: 72px; height: 72px; border-radius: 22px; }
.vis--detail .vis-icone svg, .vis--detail .vis-icone i { width: 34px; height: 34px; }
.vis--detail .vis-titre { font-size: clamp(1.4rem, 5vw, 2rem); -webkit-line-clamp: 3; }
.vis--detail .vis-libelle { font-size: .8rem; }
/* une couleur par catégorie */
.vis--concert    { --c1: #ff5500; --c2: #8b5cf6; --c3: #1e1035; }
.vis--soiree     { --c1: #ec4899; --c2: #7c3aed; --c3: #1a0b2e; }
.vis--conference { --c1: #0ea5e9; --c2: #4f46e5; --c3: #0b1736; }
.vis--mariage    { --c1: #f9a8d4; --c2: #f59e0b; --c3: #4a1d2f; }
.vis--sport      { --c1: #22c55e; --c2: #0ea5e9; --c3: #052e2b; }
.vis--formation  { --c1: #3b82f6; --c2: #14b8a6; --c3: #0c1a3a; }
.vis--autre      { --c1: #ff5500; --c2: #f59e0b; --c3: #2a1406; }
.vis--collecte   { --c1: #ff5500; --c2: #e11d48; --c3: #2b0a12; }
@media (prefers-reduced-motion: reduce) { .vis > .vis-img { transition: none; } .sp-carte:hover .vis > .vis-img, .catalogue-card:hover .vis > .vis-img { transform: none; } }

/* Pages de détail : affiche entière, plus haute sur téléphone (les affiches sont souvent en portrait) */
@media (max-width: 991px) { .sp-event-wrapper .sp-hero-image-container { height: min(460px, 115vw) !important; } }
.media-card--visuel { aspect-ratio: 16 / 11; max-height: 480px; }

/* ---- Billet en ligne au design de l'organisateur (QR en direct incrusté) ---- */
.qrd.qrd--design { max-width: 100%; gap: 12px; }
.qrd-design { position: relative; width: 100%; container-type: inline-size; border-radius: 14px; overflow: hidden; background: #e2e8f0; box-shadow: 0 14px 32px -20px rgba(15, 23, 42, .6); }
.qrd-design-img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: fill; }
.qrd-zone { position: absolute; aspect-ratio: 1; background: #fff; cursor: zoom-in; box-shadow: 0 0 0 2px rgba(255, 255, 255, .9); }
.qrd-zone .qrd-qr { width: 100%; height: 100%; aspect-ratio: auto; }
.qrd-num { position: absolute; transform: translate(-50%, -50%); font-weight: 900; white-space: nowrap; line-height: 1; letter-spacing: .01em; }
.qrd-temps--large { width: 100%; margin-top: 0; }
.qrd-agrandir { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; max-width: 320px; min-height: 46px; padding: 10px 16px; border: 0; border-radius: 14px; background: #0f172a; color: #fff; font: inherit; font-weight: 800; font-size: .9rem; cursor: pointer; }
.qrd-agrandir:active { transform: scale(.98); }
.qrd-plein { position: fixed; inset: 0; z-index: 2147483600; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 24px 18px; background: #fff; color: #0f172a; text-align: center; }
.qrd-plein[hidden] { display: none; }
.qrd-plein-titre { margin: 0; font-weight: 800; font-size: 1.05rem; }
.qrd-plein-qr { width: min(86vw, 62vh); aspect-ratio: 1; }
.qrd-plein-qr svg { display: block; width: 100%; height: 100%; }
.qrd-plein-num { margin: 0; font-weight: 800; color: #475569; }
.qrd-fermer { margin-top: 4px; padding: 12px 28px; border: 1.5px solid #cbd5e1; border-radius: 999px; background: #fff; font: inherit; font-weight: 800; cursor: pointer; }
html.qrd-plein-ouvert, html.qrd-plein-ouvert body { overflow: hidden; }
