/* =====================================================================
   Town-Event — design system (refonte UX/UI, octobre 2026)
   Chargé APRÈS style.css : il en corrige les couleurs et la lisibilité.
   Couleurs de la marque reprises du logo : rouge ticket + noir + blanc.
   ===================================================================== */

:root {
  --te-rouge: #e11d26;          /* actions principales (contraste 4,6:1 sur blanc) */
  --te-rouge-fonce: #b9121b;    /* survol */
  --te-rouge-pale: #fdecec;
  --te-encre: #14161f;          /* titres, textes forts */
  --te-texte: #3b3f4c;          /* texte courant (11:1) */
  --te-doux: #5b6070;           /* texte secondaire (6,3:1) */
  --te-ligne: #e6e4e0;
  --te-fond: #f6f5f3;           /* sections alternées, chaud et neutre */
  --te-blanc: #ffffff;
  --te-vert: #15803d;           /* succès, paiement confirmé */
  --te-vert-pale: #e8f5ec;
  --te-or: #f5b400;             /* votes */
  --te-ambre-pale: #fff6e0;
  --te-rayon: 14px;
  --te-rayon-petit: 10px;
  --te-ombre: 0 1px 2px rgba(20, 22, 31, .06), 0 4px 16px rgba(20, 22, 31, .06);
  --te-ombre-forte: 0 10px 30px rgba(20, 22, 31, .14);
  --te-nav-h: 64px;
}

/* ---------- Base ------------------------------------------------------ */
html { scroll-padding-top: calc(var(--te-nav-h) + 12px); }
body {
  font-family: "Work Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--te-texte);
  background: var(--te-blanc);
  font-weight: 400;
  line-height: 1.6;
  padding-top: var(--te-nav-h);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
  color: var(--te-encre);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -.01em;
}
a { color: var(--te-rouge); }
a:hover, a:focus { color: var(--te-rouge-fonce); }
.text-muted { color: var(--te-doux) !important; }
.text-primary { color: var(--te-rouge) !important; }
.text-danger { color: var(--te-rouge) !important; }
.text-success { color: var(--te-vert) !important; }
.bg-light { background-color: var(--te-fond) !important; }
:focus-visible { outline: 3px solid rgba(225, 29, 38, .45); outline-offset: 2px; }
::selection { background: var(--te-encre); color: #fff; }
img { max-width: 100%; }
.ftco-section { padding: 2.5rem 0 3.5rem; }
@media (max-width: 767.98px) { .ftco-section { padding: 1.5rem 0 2.5rem; } }

/* Les animations d'apparition du gabarit cachaient le contenu tant que le
   JavaScript n'avait pas tourné : le contenu reste désormais visible. */
.ftco-animate { opacity: 1; visibility: visible; }
#ftco-loader { display: none !important; }

/* ---------- Boutons --------------------------------------------------- */
.btn {
  border-radius: var(--te-rayon-petit);
  font-weight: 600;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  white-space: normal;
  line-height: 1.2;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.btn-sm { min-height: 36px; font-size: .875rem; }
.btn-lg { min-height: 54px; font-size: 1.05rem; padding: .75rem 1.5rem; }
.btn-block { display: flex; width: 100%; }
.btn.btn-primary, .btn-primary {
  background: var(--te-rouge);
  border: 2px solid var(--te-rouge);
  color: #fff;
}
.btn.btn-primary:hover, .btn.btn-primary:focus, .btn-primary:not(:disabled):not(.disabled):active {
  background: var(--te-rouge-fonce);
  border-color: var(--te-rouge-fonce);
  color: #fff;
  box-shadow: none;
}
.btn-outline-primary {
  color: var(--te-rouge);
  border: 2px solid var(--te-rouge);
  background: transparent;
}
.btn-outline-primary:hover, .btn-outline-primary:focus, .btn-outline-primary:not(:disabled):not(.disabled):active {
  background: var(--te-rouge);
  border-color: var(--te-rouge);
  color: #fff;
}
.btn-dark { background: var(--te-encre); border-color: var(--te-encre); }
.btn-success { background: var(--te-vert); border-color: var(--te-vert); }
.btn-link { min-height: 0; font-weight: 600; color: var(--te-rouge); }
.btn-te-blanc { background: #fff; color: var(--te-encre); border: 2px solid #fff; }
.btn-te-blanc:hover { background: transparent; color: #fff; }
.btn-te-fantome { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.55); }
.btn-te-fantome:hover { background: rgba(255,255,255,.12); color: #fff; border-color: #fff; }

/* ---------- Formulaires ---------------------------------------------- */
.form-control, .custom-select {
  min-height: 48px;
  border-radius: var(--te-rayon-petit);
  border: 1.5px solid #cfd2da;
  color: var(--te-encre);
  font-size: 1rem;           /* 16 px : évite le zoom automatique sur iPhone */
  background-color: #fff;
}
.form-control:focus, .custom-select:focus {
  border-color: var(--te-encre);
  box-shadow: 0 0 0 3px rgba(20, 22, 31, .12);
}
.form-control::placeholder { color: #8a8fa0; }
.input-group > .form-control { border-radius: 0 var(--te-rayon-petit) var(--te-rayon-petit) 0; }
.input-group-text { border-radius: var(--te-rayon-petit) 0 0 var(--te-rayon-petit); border: 1.5px solid #cfd2da; }
label { color: var(--te-encre); font-weight: 600; }
.te-aide { display: block; font-size: .875rem; color: var(--te-doux); margin-top: .35rem; }
.te-erreur-champ { display: block; font-size: .875rem; color: var(--te-rouge); font-weight: 600; margin-top: .35rem; }
.is-invalid, .form-control.is-invalid { border-color: var(--te-rouge) !important; }
.is-valid, .form-control.is-valid { border-color: var(--te-vert) !important; }

/* ---------- Alertes -------------------------------------------------- */
.alert { border-radius: var(--te-rayon-petit); border: 0; font-weight: 500; }
.alert-danger { background: var(--te-rouge-pale); color: #8a1016; }
.alert-warning { background: var(--te-ambre-pale); color: #6b4a00; }
.alert-success { background: var(--te-vert-pale); color: #0f5a2b; }

/* ---------- Barre de navigation -------------------------------------- */
.te-nav {
  height: var(--te-nav-h);
  background: rgba(255, 255, 255, .97);
  border-bottom: 1px solid var(--te-ligne);
  padding: 0 1rem;
  z-index: 1040;
  -webkit-backdrop-filter: saturate(1.4) blur(8px);
  backdrop-filter: saturate(1.4) blur(8px);
}
.te-nav .navbar-brand { padding: 0; margin-right: 1.25rem; display: flex; align-items: center; }
.te-nav .navbar-brand img { height: 46px; width: auto; display: block; }
.te-nav .nav-link {
  color: var(--te-texte) !important;
  font-weight: 600;
  padding: .5rem .85rem !important;
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: .45rem;
  min-height: 44px;
}
.te-nav .nav-link:hover { color: var(--te-encre) !important; background: var(--te-fond); }
.te-nav .nav-link.active, .te-nav .nav-item.active > .nav-link { color: var(--te-rouge) !important; background: var(--te-rouge-pale); }
.te-nav .navbar-toggler { border: 0; min-height: 44px; min-width: 44px; padding: .25rem .5rem; }
.te-nav .te-nav-recherche { position: relative; flex: 0 1 300px; }
.te-nav .te-nav-recherche .form-control {
  border-radius: 999px;
  padding-left: 2.6rem;
  min-height: 42px;
  background: var(--te-fond);
  border-color: transparent;
}
.te-nav .te-nav-recherche .form-control:focus { background: #fff; border-color: var(--te-encre); }
.te-nav .te-nav-recherche .fa-search { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: var(--te-doux); pointer-events: none; }
.te-nav .te-btn-compte { border-radius: 999px; padding: .45rem 1.1rem; }
.te-nav .dropdown-menu { border: 0; border-radius: var(--te-rayon); box-shadow: var(--te-ombre-forte); padding: .5rem; }
.te-nav .dropdown-item { border-radius: var(--te-rayon-petit); padding: .65rem .9rem; font-weight: 500; display: flex; align-items: center; gap: .6rem; }
.te-nav .dropdown-item:hover { background: var(--te-fond); }
.te-avatar {
  width: 28px; height: 28px; border-radius: 50%; flex: 0 0 28px;
  background: var(--te-encre); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: .8rem; line-height: 1; text-transform: uppercase;
  margin-right: .45rem; vertical-align: middle;
}
.te-nav .nav-link.dropdown-toggle { display: inline-flex; align-items: center; }
@media (max-width: 991.98px) {
  .te-nav { height: auto; min-height: var(--te-nav-h); }
  .te-nav .navbar-collapse {
    background: #fff;
    margin: 0 -1rem;
    padding: .5rem 1rem 1rem;
    border-top: 1px solid var(--te-ligne);
    max-height: calc(100vh - var(--te-nav-h));
    overflow-y: auto;
  }
  .te-nav .te-nav-recherche { flex: 1 1 auto; margin: .5rem 0; }
  .te-nav .nav-link { padding: .75rem .5rem !important; }
}

/* Auto-suggestion (positionnement géré en JS) */
.suggestions-dropdown {
  display: none; position: absolute; top: 100%; left: 0; z-index: 1080;
  max-height: 340px; overflow-y: auto; padding: 6px;
  background: #fff; border: 1px solid var(--te-ligne); border-radius: var(--te-rayon);
  box-shadow: var(--te-ombre-forte); text-align: left;
}
.suggestions-dropdown .suggestion-item { display: flex; align-items: center; padding: 8px 10px; color: var(--te-encre); border-radius: var(--te-rayon-petit); text-decoration: none; }
.suggestions-dropdown .suggestion-item:hover, .suggestions-dropdown .suggestion-item:focus { background: var(--te-fond); color: var(--te-encre); }
.suggestions-dropdown .suggestion-vignette { flex: 0 0 44px; width: 44px; height: 44px; margin-right: 10px; border-radius: 8px; object-fit: cover; background: var(--te-fond); }
.suggestions-dropdown .suggestion-texte { min-width: 0; }
.suggestions-dropdown .suggestion-nom, .suggestions-dropdown .suggestion-meta { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.suggestions-dropdown .suggestion-nom { font-weight: 700; font-size: .92rem; line-height: 1.3; }
.suggestions-dropdown .suggestion-meta { font-size: .78rem; color: var(--te-doux); }
.suggestions-dropdown .suggestion-vide { padding: 14px 12px; text-align: center; font-size: .9rem; color: var(--te-doux); }

/* ---------- Bouton WhatsApp ----------------------------------------- */
.town-whatsapp-button {
  position: fixed; right: 16px; bottom: 16px; z-index: 1030;
  width: 52px; height: 52px; border-radius: 50%;
  background: #25d366; color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .2);
  transition: transform .15s ease, bottom .2s ease;
}
.town-whatsapp-button:hover { color: #fff; transform: scale(1.06); }
.town-whatsapp-button .fa { font-size: 28px; }
body.te-a-barre-achat .town-whatsapp-button { bottom: 92px; }
@media (max-width: 575.98px) { .town-whatsapp-button { width: 46px; height: 46px; } .town-whatsapp-button .fa { font-size: 24px; } }

/* ---------- Titres de section --------------------------------------- */
.te-section { padding: 3rem 0; }
.te-section-fond { background: var(--te-fond); }
.te-section-tete { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.te-surtitre { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--te-rouge); margin-bottom: .35rem; }
.te-titre-section { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem); font-weight: 800; margin: 0; }
.te-lien-fleche { font-weight: 700; color: var(--te-encre); white-space: nowrap; display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; }
.te-lien-fleche:hover { color: var(--te-rouge); }
@media (max-width: 767.98px) { .te-section { padding: 2rem 0; } }

/* ---------- Hero accueil -------------------------------------------- */
.te-hero {
  position: relative;
  background: var(--te-encre);
  color: #fff;
  padding: 3.5rem 0 3rem;
  overflow: hidden;
}
.te-hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(60% 80% at 100% 0%, rgba(225, 29, 38, .45) 0%, rgba(225, 29, 38, 0) 60%),
    radial-gradient(50% 60% at 0% 100%, rgba(225, 29, 38, .18) 0%, rgba(225, 29, 38, 0) 70%);
  pointer-events: none;
}
.te-hero .container { position: relative; }
.te-hero h1 {
  color: #fff;
  font-size: clamp(1.85rem, 1.2rem + 3vw, 3.25rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: .9rem;
  max-width: 17ch;
}
.te-hero h1 em { font-style: normal; color: #ff5a60; }
.te-hero-texte { font-size: 1.1rem; color: rgba(255, 255, 255, .82); max-width: 46ch; margin-bottom: 1.5rem; }
.te-hero-recherche { position: relative; max-width: 620px; }
.te-hero-recherche .input-group { background: #fff; border-radius: 999px; padding: 6px; box-shadow: 0 10px 30px rgba(0,0,0,.25); flex-wrap: nowrap; }
.te-hero-recherche .form-control { border: 0; border-radius: 999px !important; min-height: 48px; padding-left: 1.1rem; box-shadow: none; }
.te-hero-recherche .btn { border-radius: 999px !important; padding: 0 1.4rem; white-space: nowrap; }
.te-hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.25rem; }
.te-hero-confiance { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; margin-top: 1.75rem; color: rgba(255,255,255,.75); font-size: .9rem; }
.te-hero-confiance .te-operateurs .te-op { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.18); }
.te-btn-orga { min-height: 48px; }
@media (min-width: 576px) { .te-btn-orga { min-height: 54px; font-size: 1.05rem; padding: .75rem 1.5rem; } }
@media (max-width: 575.98px) {
  .te-hero { padding: 1.5rem 0 1.75rem; }
  .te-hero h1 { font-size: 1.75rem; margin-bottom: .6rem; }
  .te-hero-texte { font-size: .98rem; margin-bottom: 1.1rem; }
  .te-hero-actions { margin-top: 1rem; }
  .te-btn-orga { width: 100%; font-size: .92rem; }
  .te-hero-confiance { margin-top: 1.1rem; gap: .4rem .75rem; font-size: .82rem; }
  .te-section-tete { margin-bottom: 1rem; }
  .te-hero-recherche .btn .te-btn-libelle { display: none; }
  .te-hero-recherche .btn { padding: 0 1rem; }
}

.te-hero-affiches { position: relative; height: 400px; }
.te-hero-affiche { position: absolute; width: 230px; aspect-ratio: 4 / 5; border-radius: 16px; overflow: hidden; box-shadow: 0 20px 50px rgba(0,0,0,.45); transition: transform .3s ease; background: #222; }
.te-hero-affiche img { width: 100%; height: 100%; object-fit: cover; }
.te-hero-affiche-1 { left: 50%; top: 20px; transform: translateX(-50%) rotate(-2deg); z-index: 3; }
.te-hero-affiche-2 { left: 0; top: 70px; transform: rotate(-9deg) scale(.86); z-index: 2; opacity: .85; }
.te-hero-affiche-3 { right: 0; top: 70px; transform: rotate(9deg) scale(.86); z-index: 1; opacity: .85; }
.te-hero-affiche-1:hover { transform: translateX(-50%) rotate(0) scale(1.03); }

/* Moyens de paiement */
.te-operateurs { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; padding: 0; margin: 0; }
.te-op {
  font-size: .78rem; font-weight: 700; line-height: 1;
  padding: .45rem .65rem; border-radius: 999px;
  border: 1px solid var(--te-ligne); background: #fff; color: var(--te-encre);
  display: inline-flex; align-items: center; gap: .35rem;
}
.te-op::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.te-op-mpesa::before { background: #e60000; }
.te-op-orange::before { background: #ff7900; }
.te-op-airtel::before { background: #ed1c24; }
.te-op-africell::before { background: #7b2a8f; }

/* ---------- Puces de filtre ------------------------------------------ */
.te-puces {
  display: flex; gap: .5rem; overflow-x: auto; padding: 2px 2px 10px;
  scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; scrollbar-width: thin;
}
.te-puce {
  flex: 0 0 auto; scroll-snap-align: start;
  display: inline-flex; align-items: center; gap: .4rem;
  min-height: 40px; padding: .4rem 1rem; border-radius: 999px;
  border: 1.5px solid var(--te-ligne); background: #fff;
  color: var(--te-encre); font-weight: 600; font-size: .92rem; white-space: nowrap;
  text-decoration: none;
}
.te-puce:hover { border-color: var(--te-encre); color: var(--te-encre); text-decoration: none; }
.te-puce.active { background: var(--te-encre); border-color: var(--te-encre); color: #fff; }
.te-puce .te-compte { font-size: .75rem; opacity: .7; }

/* ---------- Grille + cartes d'évènement ------------------------------ */
.te-grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.25rem; }
@media (max-width: 575.98px) { .te-grille { grid-template-columns: 1fr 1fr; gap: .75rem; } }
@media (max-width: 359.98px) { .te-grille { grid-template-columns: 1fr; } }
.te-carte { height: 100%; }
.te-carte-lien {
  display: flex; flex-direction: column; height: 100%;
  background: #fff; border-radius: var(--te-rayon); overflow: hidden;
  box-shadow: var(--te-ombre); color: inherit; text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
}
.te-carte-lien:hover, .te-carte-lien:focus { transform: translateY(-3px); box-shadow: var(--te-ombre-forte); color: inherit; text-decoration: none; }
.te-carte-media { position: relative; aspect-ratio: 4 / 5; background: var(--te-fond); overflow: hidden; }
.te-carte-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.te-carte-date {
  position: absolute; top: 10px; left: 10px;
  background: #fff; color: var(--te-encre); border-radius: 10px;
  padding: .3rem .55rem; text-align: center; line-height: 1.05;
  font-size: .72rem; font-weight: 700; text-transform: uppercase;
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
}
.te-carte-date strong { display: block; font-size: 1.25rem; font-weight: 800; }
.te-statut {
  position: absolute; left: 10px; bottom: 10px;
  font-size: .72rem; font-weight: 700; padding: .3rem .6rem; border-radius: 999px;
  background: rgba(20,22,31,.82); color: #fff;
}
.te-statut-ouvert { background: var(--te-vert); }
.te-statut-votes { background: var(--te-or); color: var(--te-encre); }
.te-statut-bientot { background: #fff; color: var(--te-encre); }
.te-statut-passe, .te-statut-complet { background: rgba(20,22,31,.82); }
.te-carte-corps { padding: .9rem 1rem 1rem; display: flex; flex-direction: column; flex: 1; }
.te-carte-cat { font-size: .75rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--te-doux); margin: 0 0 .3rem; }
.te-carte-votes { color: #9a6a00; }
.te-carte-titre {
  font-size: 1.02rem; font-weight: 700; color: var(--te-encre); margin: 0 0 .5rem;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.te-carte-infos { list-style: none; padding: 0; margin: 0 0 .75rem; font-size: .87rem; color: var(--te-doux); }
.te-carte-infos li { display: flex; gap: .45rem; align-items: baseline; }
.te-carte-infos .fa { width: 14px; text-align: center; color: var(--te-encre); }
.te-carte-pied { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: .5rem; border-top: 1px solid var(--te-ligne); padding-top: .7rem; }
.te-carte-prix { font-weight: 800; color: var(--te-encre); font-size: 1rem; }
.te-carte-prix small { font-weight: 600; color: var(--te-doux); font-size: .75rem; }
.te-carte-orga { font-size: .85rem; color: var(--te-doux); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.te-carte-cta { font-size: .85rem; font-weight: 700; color: var(--te-rouge); white-space: nowrap; }
@media (max-width: 575.98px) {
  .te-carte-corps { padding: .7rem .75rem .8rem; }
  .te-carte-titre { font-size: .92rem; }
  .te-carte-infos { font-size: .8rem; }
  .te-carte-cta { display: none; }
  .te-carte-prix { font-size: .92rem; }
}

/* État vide */
.te-vide { text-align: center; padding: 3rem 1.5rem; background: var(--te-fond); border-radius: var(--te-rayon); }
.te-vide .fa { font-size: 2.5rem; color: var(--te-doux); margin-bottom: 1rem; }
.te-vide h3 { font-size: 1.25rem; margin-bottom: .5rem; }

/* ---------- Comment ça marche --------------------------------------- */
.te-etapes-accueil { counter-reset: etape; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); list-style: none; padding: 0; margin: 0; }
.te-etapes-accueil li { background: #fff; border-radius: var(--te-rayon); padding: 1.25rem; box-shadow: var(--te-ombre); position: relative; }
.te-etapes-accueil li::before {
  counter-increment: etape; content: counter(etape);
  width: 36px; height: 36px; border-radius: 50%; background: var(--te-rouge); color: #fff;
  display: inline-flex; align-items: center; justify-content: center; font-weight: 800; margin-bottom: .75rem;
}
.te-etapes-accueil h3 { font-size: 1.05rem; margin-bottom: .35rem; }
.te-etapes-accueil p { margin: 0; color: var(--te-doux); font-size: .95rem; }

/* Vidéo chargée au clic */
.te-video {
  position: relative; display: block; width: 100%; aspect-ratio: 16 / 9;
  border-radius: var(--te-rayon); overflow: hidden; background: #000; border: 0; padding: 0; cursor: pointer;
}
.te-video img { width: 100%; height: 100%; object-fit: cover; opacity: .85; transition: opacity .2s ease; }
.te-video:hover img { opacity: 1; }
.te-video-lecture {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 72px; height: 72px; border-radius: 50%; background: var(--te-rouge); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 1.6rem; padding-left: 5px;
  box-shadow: 0 8px 24px rgba(0,0,0,.35);
}
.te-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Bandeau organisateurs */
.te-bandeau-orga {
  background: var(--te-encre); color: #fff; border-radius: calc(var(--te-rayon) + 6px);
  padding: 2rem; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap;
  position: relative; overflow: hidden;
}
.te-bandeau-orga::after { content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; background: rgba(225, 29, 38, .35); }
.te-bandeau-orga h2 { color: #fff; font-size: clamp(1.3rem, 1rem + 1vw, 1.75rem); margin-bottom: .35rem; }
.te-bandeau-orga p { color: rgba(255,255,255,.8); margin: 0; max-width: 52ch; }
.te-bandeau-orga > * { position: relative; z-index: 1; }

/* FAQ */
.te-faq .card { border: 0; border-bottom: 1px solid var(--te-ligne); border-radius: 0; background: transparent; }
.te-faq .card-header { background: transparent; border: 0; padding: 0; }
.te-faq .btn-link {
  width: 100%; text-align: left; color: var(--te-encre); font-weight: 700; font-size: 1.02rem;
  padding: 1.05rem 0; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  text-decoration: none; min-height: 56px;
}
.te-faq .btn-link:hover, .te-faq .btn-link:focus { text-decoration: none; color: var(--te-rouge); }
.te-faq .btn-link .fa { transition: transform .2s ease; color: var(--te-rouge); }
.te-faq .btn-link.collapsed .fa { transform: rotate(-90deg); }
.te-faq .card-body { padding: 0 0 1.2rem; color: var(--te-texte); }

/* ---------- Liste des évènements ------------------------------------- */
.te-liste-tete { padding: 2rem 0 1rem; background: var(--te-fond); border-bottom: 1px solid var(--te-ligne); }
.te-liste-tete h1 { font-size: clamp(1.6rem, 1.2rem + 1.5vw, 2.2rem); font-weight: 800; margin-bottom: .25rem; }
.te-filtres { margin-top: 1rem; }
.te-filtre-groupe { margin-bottom: .35rem; }
.te-filtre-libelle { font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--te-doux); margin-bottom: .35rem; display: block; }
.te-resultats-info { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin: 1.5rem 0 1rem; color: var(--te-doux); }
.te-resultats-info strong { color: var(--te-encre); }
.te-filtres-actifs { display: flex; flex-wrap: wrap; gap: .4rem; }
.te-filtre-actif { display: inline-flex; align-items: center; gap: .35rem; background: var(--te-encre); color: #fff; border-radius: 999px; padding: .3rem .4rem .3rem .8rem; font-size: .85rem; font-weight: 600; }
.te-filtre-actif a { color: #fff; width: 24px; height: 24px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: rgba(255,255,255,.15); }
.te-filtre-actif a:hover { background: var(--te-rouge); color: #fff; }

.pagination .page-link { border-radius: 10px !important; margin: 0 3px; min-width: 44px; min-height: 44px; display: flex; align-items: center; justify-content: center; color: var(--te-encre); border-color: var(--te-ligne); font-weight: 600; }
.pagination .page-item.active .page-link { background: var(--te-encre); border-color: var(--te-encre); color: #fff !important; }
.pagination .page-link:hover { background: var(--te-fond); color: var(--te-encre); }
.pagination-danger .page-link, .pagination-orange .page-link { color: var(--te-encre) !important; }
.pagination-danger .page-item.active .page-link, .pagination-orange .page-item.active .page-link { color: #fff !important; }

/* ---------- Page évènement ------------------------------------------- */
.te-fil { font-size: .9rem; margin-bottom: 1rem; }
.te-fil a { color: var(--te-doux); font-weight: 600; display: inline-flex; align-items: center; gap: .35rem; min-height: 44px; }
.te-fil a:hover { color: var(--te-encre); }
.te-event-affiche {
  position: relative; display: block; width: 100%; padding: 0; border: 0;
  border-radius: var(--te-rayon); overflow: hidden; background: var(--te-fond);
  box-shadow: var(--te-ombre-forte); cursor: zoom-in;
}
.te-event-affiche img { width: 100%; height: auto; display: block; }
.te-event-affiche .te-zoom { position: absolute; right: 12px; bottom: 12px; background: rgba(20,22,31,.75); color: #fff; border-radius: 999px; padding: .35rem .7rem; font-size: .8rem; font-weight: 600; }
@media (min-width: 992px) { .te-event-colonne-affiche { position: sticky; top: calc(var(--te-nav-h) + 16px); align-self: flex-start; } }
@media (max-width: 991.98px) { .te-event-affiche { max-width: 420px; margin: 0 auto; } }
@media (max-width: 575.98px) { .te-event-affiche { max-width: 78%; } .te-event-titre { font-size: 1.55rem; } }
.te-event-titre { font-size: clamp(1.6rem, 1.1rem + 2vw, 2.5rem); font-weight: 800; margin: .4rem 0 .35rem; }
.te-event-orga { color: var(--te-doux); margin-bottom: 1.25rem; }
.te-event-orga strong { color: var(--te-encre); }
.te-badge-statut { display: inline-flex; align-items: center; gap: .4rem; font-size: .82rem; font-weight: 700; padding: .35rem .75rem; border-radius: 999px; }
.te-badge-ouvert { background: var(--te-vert-pale); color: var(--te-vert); }
.te-badge-bientot, .te-badge-votes { background: var(--te-ambre-pale); color: #6b4a00; }
.te-badge-passe, .te-badge-complet, .te-badge-masque { background: #eceef2; color: var(--te-texte); }
.te-faits { list-style: none; padding: 0; margin: 0 0 1.25rem; display: grid; gap: .75rem; }
.te-fait { display: flex; gap: .85rem; align-items: flex-start; }
.te-fait-icone { flex: 0 0 44px; height: 44px; border-radius: 12px; background: var(--te-fond); color: var(--te-encre); display: flex; align-items: center; justify-content: center; font-size: 1.1rem; }
.te-fait-libelle { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; font-weight: 700; color: var(--te-doux); }
.te-fait-valeur { display: block; color: var(--te-encre); font-weight: 600; }
.te-fait-valeur a { color: var(--te-rouge); }
.te-boite-achat { background: #fff; border: 1.5px solid var(--te-ligne); border-radius: var(--te-rayon); padding: 1.25rem; box-shadow: var(--te-ombre); margin-bottom: 1.5rem; }
.te-tarifs-liste { list-style: none; padding: 0; margin: 0 0 1rem; }
.te-tarifs-liste li { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: .55rem 0; border-bottom: 1px dashed var(--te-ligne); }
.te-tarifs-liste li:last-child { border-bottom: 0; }
.te-tarifs-liste .te-tarif-nom { font-weight: 600; color: var(--te-encre); }
.te-tarifs-liste .te-tarif-prix { font-weight: 800; color: var(--te-encre); white-space: nowrap; }
.te-boite-achat .te-operateurs { margin-top: .85rem; }
.te-partage { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.te-partage-libelle { font-weight: 700; color: var(--te-encre); margin-right: .25rem; font-size: .92rem; }
.te-partage .btn { min-height: 40px; border-radius: 999px; padding: .35rem .9rem; font-size: .88rem; }
.te-btn-wa { background: #25d366; color: #fff; border: 0; }
.te-btn-wa:hover { background: #1da851; color: #fff; }
.te-btn-fb { background: #1877f2; color: #fff; border: 0; }
.te-btn-fb:hover { background: #0e5fcc; color: #fff; }
.te-btn-neutre { background: var(--te-fond); color: var(--te-encre); border: 0; }
.te-btn-neutre:hover { background: #eceae6; color: var(--te-encre); }
.te-onglets { border-bottom: 1px solid var(--te-ligne); margin: 2rem 0 1.25rem; gap: .25rem; flex-wrap: nowrap; overflow-x: auto; }
.te-onglets .nav-link {
  border: 0; border-bottom: 3px solid transparent; border-radius: 0; color: var(--te-doux);
  font-weight: 700; padding: .8rem 1rem; min-height: 48px; white-space: nowrap; background: none !important;
}
.te-onglets .nav-link.active { color: var(--te-encre) !important; border-bottom-color: var(--te-rouge); }
.te-description { font-size: 1.02rem; line-height: 1.75; color: var(--te-texte); white-space: normal; word-wrap: break-word; }
.te-autres { margin-top: 2.5rem; }

/* Barre d'achat fixe en bas (mobile) */
.te-barre-achat {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 1035;
  background: #fff; border-top: 1px solid var(--te-ligne);
  box-shadow: 0 -6px 20px rgba(20,22,31,.08);
  padding: .65rem 1rem calc(.65rem + env(safe-area-inset-bottom));
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  transform: translateY(110%); transition: transform .25s ease;
}
.te-barre-achat.visible { transform: translateY(0); }
.te-barre-achat .te-barre-prix { line-height: 1.15; }
.te-barre-achat .te-barre-prix small { display: block; color: var(--te-doux); font-size: .75rem; font-weight: 600; }
.te-barre-achat .te-barre-prix strong { color: var(--te-encre); font-size: 1.1rem; }
.te-barre-achat .btn { flex: 0 0 auto; padding: 0 1.5rem; }
@media (min-width: 992px) { .te-barre-achat { display: none; } body.te-a-barre-achat .town-whatsapp-button { bottom: 16px; } }

/* Zoom de l'affiche */
.te-modal-affiche .modal-content { background: transparent; border: 0; }
.te-modal-affiche img { max-height: 88vh; width: auto; max-width: 100%; border-radius: var(--te-rayon); }
.te-modal-affiche .close { position: absolute; top: -44px; right: 0; color: #fff; opacity: 1; font-size: 2.2rem; text-shadow: none; min-width: 44px; min-height: 44px; }

/* ---------- Page d'achat --------------------------------------------- */
.te-achat { background: var(--te-fond); min-height: 70vh; padding: 1.5rem 0 4rem; }
.te-achat-entete { display: flex; gap: 1rem; align-items: center; background: #fff; border-radius: var(--te-rayon); padding: .9rem; box-shadow: var(--te-ombre); margin-bottom: 1.25rem; }
.te-achat-entete img { width: 64px; height: 80px; object-fit: cover; border-radius: 10px; flex: 0 0 64px; background: var(--te-fond); }
.te-achat-entete h1 { font-size: 1.15rem; font-weight: 800; margin: 0 0 .2rem; }
.te-achat-entete p { margin: 0; color: var(--te-doux); font-size: .9rem; }
.te-achat-entete .te-achat-aide { margin-left: auto; flex: 0 0 auto; }
@media (max-width: 575.98px) { .te-achat-entete .te-achat-aide .te-libelle-long { display: none; } }
.te-carte-form { background: #fff; border-radius: var(--te-rayon); box-shadow: var(--te-ombre); padding: 1.25rem; margin-bottom: 1rem; }
@media (min-width: 768px) { .te-carte-form { padding: 1.75rem; } }
.te-etape-titre { display: flex; align-items: center; gap: .65rem; font-size: 1.08rem; font-weight: 800; margin: 0 0 1rem; color: var(--te-encre); }
.te-etape-num { width: 30px; height: 30px; border-radius: 50%; background: var(--te-encre); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: .9rem; flex: 0 0 30px; }
.te-etape-sous { font-size: .9rem; color: var(--te-doux); margin: -.6rem 0 1rem 2.6rem; }

/* Choix du tarif (boutons radio en cartes) */
.te-tarifs { display: grid; gap: .6rem; border: 0; padding: 0; margin: 0; }
.te-tarif { position: relative; margin: 0; cursor: pointer; font-weight: 400; display: block; }
.te-tarif input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.te-tarif-boite {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  border: 2px solid var(--te-ligne); border-radius: 12px; padding: .85rem 1rem; min-height: 60px;
  transition: border-color .15s ease, background-color .15s ease;
}
.te-tarif-boite::before {
  content: ""; flex: 0 0 22px; height: 22px; border-radius: 50%; border: 2px solid #b8bcc8; background: #fff;
  transition: border .15s ease;
}
.te-tarif-boite .te-tarif-nom { flex: 1; font-weight: 700; color: var(--te-encre); }
.te-tarif-boite .te-tarif-prix { font-weight: 800; color: var(--te-encre); white-space: nowrap; }
.te-tarif:hover .te-tarif-boite { border-color: #b8bcc8; }
.te-tarif input:checked + .te-tarif-boite { border-color: var(--te-rouge); background: var(--te-rouge-pale); }
.te-tarif input:checked + .te-tarif-boite::before { border: 7px solid var(--te-rouge); }
.te-tarif input:focus-visible + .te-tarif-boite { outline: 3px solid rgba(225, 29, 38, .45); outline-offset: 2px; }

/* Quantité */
.te-qte { display: inline-flex; align-items: center; border: 2px solid var(--te-ligne); border-radius: 12px; overflow: hidden; }
.te-qte button { width: 52px; height: 52px; border: 0; background: #fff; font-size: 1.4rem; font-weight: 700; color: var(--te-encre); }
.te-qte button:hover { background: var(--te-fond); }
.te-qte button:disabled { color: #c3c6cf; background: #fff; }
.te-qte input {
  width: 64px; height: 52px; border: 0; border-left: 2px solid var(--te-ligne); border-right: 2px solid var(--te-ligne);
  text-align: center; font-size: 1.2rem; font-weight: 800; color: var(--te-encre); -moz-appearance: textfield; border-radius: 0; min-height: 0;
}
.te-qte input::-webkit-outer-spin-button, .te-qte input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* Champ téléphone */
.te-tel { position: relative; }
.te-tel .form-control { font-size: 1.15rem; font-weight: 600; letter-spacing: .04em; min-height: 54px; padding-left: 3rem; }
.te-tel > .fa { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); font-size: 1.35rem; color: var(--te-doux); pointer-events: none; }
.te-tel .form-control.is-valid, .te-tel .form-control.is-invalid { background-image: none; padding-right: 2.75rem; }
.te-champ-statut .fa { font-size: 1.2rem; }
.te-champ-statut { position: absolute; right: 1rem; top: 50%; transform: translateY(-50%); font-size: 1.1rem; }

.te-encart-compte { background: var(--te-fond); border-radius: 12px; padding: .85rem 1rem; display: flex; gap: .75rem; align-items: flex-start; font-size: .92rem; margin-bottom: 1rem; }
.te-encart-compte .fa { color: var(--te-encre); font-size: 1.15rem; margin-top: .15rem; }
.te-mdp { position: relative; }
.te-mdp .form-control, .te-mdp .form-control.is-valid, .te-mdp .form-control.is-invalid { padding-right: 3.25rem; letter-spacing: .25em; font-weight: 700; background-image: none; }
.te-mdp-voir { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border: 0; background: transparent; color: var(--te-doux); border-radius: 10px; }
.te-mdp-voir:hover { color: var(--te-encre); background: var(--te-fond); }

/* Récapitulatif */
.te-recap { background: #fff; border-radius: var(--te-rayon); box-shadow: var(--te-ombre); padding: 1.25rem; }
@media (min-width: 992px) { .te-recap { position: sticky; top: calc(var(--te-nav-h) + 16px); padding: 1.5rem; } }
.te-recap h2 { font-size: 1.05rem; font-weight: 800; margin-bottom: 1rem; }
.te-recap-ligne { display: flex; justify-content: space-between; gap: 1rem; padding: .4rem 0; color: var(--te-texte); }
.te-recap-ligne span:last-child { font-weight: 700; color: var(--te-encre); text-align: right; }
.te-recap-total { display: flex; justify-content: space-between; align-items: baseline; border-top: 2px solid var(--te-encre); margin-top: .75rem; padding-top: .9rem; }
.te-recap-total span:first-child { font-weight: 800; color: var(--te-encre); text-transform: uppercase; font-size: .9rem; letter-spacing: .04em; }
.te-recap-total strong { font-size: 1.6rem; font-weight: 800; color: var(--te-encre); }
.te-recap-note { font-size: .88rem; background: var(--te-fond); border-radius: 10px; padding: .75rem .85rem; margin: 1rem 0; color: var(--te-texte); }
.te-recap-note strong { color: var(--te-encre); }
.te-securite { display: flex; align-items: center; justify-content: center; gap: .4rem; font-size: .82rem; color: var(--te-doux); margin-top: .75rem; text-align: center; }
.te-btn-payer { font-size: 1.1rem; min-height: 58px; text-transform: none; letter-spacing: 0; }
.te-btn-payer .te-montant { font-weight: 800; }

/* Attente de paiement */
.te-attente { background: #fff; border-radius: var(--te-rayon); box-shadow: var(--te-ombre-forte); padding: 2rem 1.25rem; text-align: center; margin-top: 1.25rem; border-top: 5px solid var(--te-rouge); }
.te-attente h2 { font-size: 1.3rem; font-weight: 800; }
.te-telephone-anim { width: 76px; height: 76px; border-radius: 22px; background: var(--te-rouge-pale); color: var(--te-rouge); display: inline-flex; align-items: center; justify-content: center; font-size: 2.2rem; margin-bottom: 1rem; animation: te-vibre 1.6s ease-in-out infinite; }
@keyframes te-vibre { 0%, 70%, 100% { transform: rotate(0); } 75% { transform: rotate(-8deg); } 80% { transform: rotate(8deg); } 85% { transform: rotate(-6deg); } 90% { transform: rotate(6deg); } }
.te-compte-rebours { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; width: 112px; height: 112px; border-radius: 50%; border: 6px solid var(--te-rouge-pale); border-top-color: var(--te-rouge); margin: 1rem 0; }
.te-compte-rebours #seconds { font-size: 2rem; font-weight: 800; color: var(--te-encre); font-family: inherit; letter-spacing: 0; line-height: 1; }
.te-compte-rebours small { font-size: .7rem; font-weight: 700; text-transform: uppercase; color: var(--te-doux); }
.te-liste-etapes { text-align: left; max-width: 420px; margin: 1rem auto; padding: 0; list-style: none; counter-reset: e; }
.te-liste-etapes li { position: relative; padding: .4rem 0 .4rem 2.4rem; }
.te-liste-etapes li::before { counter-increment: e; content: counter(e); position: absolute; left: 0; top: .35rem; width: 26px; height: 26px; border-radius: 50%; background: var(--te-encre); color: #fff; font-size: .8rem; font-weight: 800; display: flex; align-items: center; justify-content: center; }

/* Billet obtenu */
.te-billet { background: #fff; border-radius: calc(var(--te-rayon) + 4px); box-shadow: var(--te-ombre-forte); overflow: hidden; max-width: 460px; margin: 1.5rem auto 0; text-align: center; }
.te-billet-tete { background: var(--te-vert); color: #fff; padding: 1.25rem; }
.te-billet-tete h2 { color: #fff; font-size: 1.3rem; font-weight: 800; margin: .35rem 0 0; }
.te-billet-tete .fa { font-size: 2rem; }
.te-billet-corps { padding: 1.5rem 1.25rem; position: relative; }
.te-billet-corps::before, .te-billet-corps::after { content: ""; position: absolute; top: -14px; width: 28px; height: 28px; border-radius: 50%; background: var(--te-fond); }
.te-billet-corps::before { left: -14px; }
.te-billet-corps::after { right: -14px; }
.te-billet-qr { width: 220px; height: 220px; margin: 0 auto 1rem; padding: 10px; border: 1.5px dashed var(--te-ligne); border-radius: 12px; }
.te-billet-qr img { width: 100%; height: 100%; }
.te-billet-infos { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; text-align: left; background: var(--te-fond); border-radius: 12px; padding: .9rem 1rem; margin-bottom: 1.25rem; }
.te-billet-infos small { display: block; font-size: .72rem; font-weight: 700; text-transform: uppercase; color: var(--te-doux); }
.te-billet-infos span { font-weight: 700; color: var(--te-encre); word-break: break-word; }
.te-billet-actions { display: grid; gap: .6rem; }
.te-billet-actions form { margin: 0; }

/* Erreur de paiement */
.te-echec { background: #fff; border-radius: var(--te-rayon); box-shadow: var(--te-ombre-forte); padding: 2rem 1.25rem; text-align: center; margin-top: 1.25rem; border-top: 5px solid var(--te-or); }
.te-echec.te-echec-refus { border-top-color: var(--te-rouge); }
.te-echec .te-echec-icone { font-size: 2.6rem; margin-bottom: .75rem; color: #b07d00; }
.te-echec.te-echec-refus .te-echec-icone { color: var(--te-rouge); }
.te-echec p { max-width: 48ch; margin-left: auto; margin-right: auto; }

/* Modale d'aide */
.modal-content { border-radius: var(--te-rayon); border: 0; }
.modal-header { border-bottom: 1px solid var(--te-ligne); }
.modal-title { font-weight: 800; color: var(--te-encre); }

/* ---------- Pied de page --------------------------------------------- */
.te-pied { background: var(--te-encre); color: rgba(255,255,255,.72); padding: 3rem 0 1.5rem; font-size: .95rem; }
.te-pied h2 { color: #fff; font-size: .82rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 1rem; }
.te-pied a { color: rgba(255,255,255,.85); }
.te-pied a:hover { color: #fff; }
.te-pied ul { list-style: none; padding: 0; margin: 0; }
.te-pied ul li a { display: inline-flex; align-items: center; gap: .5rem; min-height: 40px; }
.te-pied-logo { height: 44px; width: auto; margin-bottom: 1rem; }
.te-reseaux { display: flex; gap: .5rem; margin-top: 1rem; }
.te-reseaux a { width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,.08); display: inline-flex; align-items: center; justify-content: center; font-size: 1.15rem; }
.te-reseaux a:hover { background: var(--te-rouge); }
.te-pied-bas { border-top: 1px solid rgba(255,255,255,.1); margin-top: 2rem; padding-top: 1.25rem; display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; justify-content: space-between; font-size: .85rem; }
.te-pied-bas nav { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; }
.te-pied .te-operateurs .te-op { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.15); }

/* ---------- Connexion ------------------------------------------------ */
.te-auth { background: var(--te-fond); padding: 2.5rem 0 4rem; min-height: 70vh; }
.te-auth .card { border: 0; border-radius: calc(var(--te-rayon) + 4px); box-shadow: var(--te-ombre-forte); }
.te-auth-contexte { background: var(--te-ambre-pale); color: #6b4a00; border-radius: 10px; padding: .75rem 1rem; font-size: .92rem; font-weight: 600; margin-bottom: 1.25rem; display: flex; gap: .6rem; align-items: flex-start; }

/* ---------- Divers --------------------------------------------------- */
.te-page-simple { padding: 3rem 0; }
.te-introuvable { text-align: center; padding: 4rem 1rem; }
.te-introuvable .te-code { font-size: 4.5rem; font-weight: 800; color: var(--te-rouge); line-height: 1; }
.card { border-radius: var(--te-rayon); }
.badge { font-weight: 700; }
.nav-pills .nav-link.active, .nav-pills .show > .nav-link { background-color: var(--te-encre); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ---------- Classes historiques (vote.php, profil, dons…) -------------
   Auparavant dans un bloc <style> de header.php ; harmonisées ici. */
.voting-header { border-top: 5px solid var(--te-rouge); border-radius: var(--te-rayon); }
.short-hr { width: 50px; border-top: 3px solid var(--te-rouge); margin: 20px auto; }
.instruction-step { border-left: 3px solid var(--te-vert); padding-left: 15px; position: relative; }
.payment-process-box { animation: te-apparition .4s ease-out; border-bottom: 4px solid var(--te-rouge); }
@keyframes te-apparition { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.countdown-wrapper { position: relative; }
#seconds { font-variant-numeric: tabular-nums; }
.btn-outline-info:hover { transform: translateY(-2px); }
.event-card { transition: transform .2s ease, box-shadow .2s ease; border-radius: var(--te-rayon); border: none; overflow: hidden; }
.event-card:hover { transform: translateY(-4px); box-shadow: var(--te-ombre-forte) !important; }
.event-img-container { width: 100%; height: 180px; background-size: cover; background-position: center; background-repeat: no-repeat; }
.event-title { font-size: 1.1rem; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-img-custom { width: 100%; height: 185px; object-fit: cover; object-position: center; background-color: var(--te-fond); }
.badge-success { background: var(--te-vert); font-size: .9rem; font-weight: 600; }
.fluid { display: flex; gap: .25rem; }

/* =====================================================================
   VOTES — onglet de classement (votecc.php) et page candidat (vote.php)
   ===================================================================== */
:root { --te-or-fonce: #9a6a00; --te-argent: #9aa3b2; --te-bronze: #b8743a; }
.te-votes-tete { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; flex-wrap: wrap; }
.te-direct { display: inline-flex; align-items: center; gap: .45rem; font-size: .8rem; font-weight: 700; color: var(--te-vert); background: var(--te-vert-pale); border-radius: 999px; padding: .35rem .75rem; white-space: nowrap; }
.te-direct-point { width: 8px; height: 8px; border-radius: 50%; background: currentColor; animation: te-pulse 1.8s ease-in-out infinite; }
.te-direct.te-direct-hors { color: var(--te-doux); background: #eceef2; }
.te-direct.te-direct-hors .te-direct-point { animation: none; }
@keyframes te-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }

/* Podium */
.te-podium { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; align-items: end; }
.te-podium-place a { display: flex; flex-direction: column; align-items: center; text-align: center; gap: .25rem; padding: 1rem .5rem .9rem; border-radius: var(--te-rayon); background: var(--te-fond); color: var(--te-encre); text-decoration: none; height: 100%; transition: transform .2s ease; }
.te-podium-place a:hover { transform: translateY(-3px); color: var(--te-encre); text-decoration: none; }
.te-podium-1 { order: 2; }
.te-podium-2 { order: 1; }
.te-podium-3 { order: 3; }
.te-podium-1 a { background: linear-gradient(180deg, #fff6d9 0%, #fff 100%); box-shadow: 0 8px 24px rgba(245, 180, 0, .25); padding-top: 1.4rem; }
.te-podium-photo { position: relative; width: 64px; height: 64px; }
.te-podium-1 .te-podium-photo { width: 84px; height: 84px; }
.te-podium-photo img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; object-position: top; border: 3px solid var(--te-argent); background: #fff; }
.te-podium-1 .te-podium-photo img { border-color: var(--te-or); }
.te-podium-3 .te-podium-photo img { border-color: var(--te-bronze); }
.te-podium-rang { position: absolute; right: -4px; bottom: -4px; width: 26px; height: 26px; border-radius: 50%; background: var(--te-argent); color: #fff; font-weight: 800; font-size: .8rem; display: flex; align-items: center; justify-content: center; border: 2px solid #fff; }
.te-podium-1 .te-podium-rang { background: var(--te-or); color: var(--te-encre); }
.te-podium-3 .te-podium-rang { background: var(--te-bronze); }
.te-podium-nom { font-weight: 700; font-size: .85rem; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: .35rem; }
.te-podium-voix { font-size: .78rem; font-weight: 700; color: var(--te-doux); }
.te-podium-1 .te-podium-voix { color: var(--te-or-fonce); }

/* Outils : recherche + tri */
.te-votes-outils { display: flex; gap: .75rem; align-items: center; flex-wrap: wrap; margin-bottom: 1.25rem; }
.te-votes-recherche { position: relative; flex: 1 1 260px; }
.te-votes-recherche .fa { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: var(--te-doux); pointer-events: none; }
.te-votes-recherche .form-control { border-radius: 999px; padding-left: 2.6rem; }
.te-tri { display: flex; gap: .4rem; }
.te-tri .te-puce { cursor: pointer; }

/* Cartes candidats */
.te-grille-cand { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
@media (max-width: 575.98px) { .te-grille-cand { grid-template-columns: 1fr 1fr; } }
.te-cand { background: #fff; border-radius: var(--te-rayon); box-shadow: var(--te-ombre); overflow: hidden; display: flex; flex-direction: column; border: 2px solid transparent; }
.te-cand[hidden] { display: none; }
.te-cand.podium-1 { border-color: var(--te-or); box-shadow: 0 8px 24px rgba(245, 180, 0, .22); }
.te-cand.podium-2 { border-color: #d4d9e2; }
.te-cand.podium-3 { border-color: #e2bf9e; }
.te-cand-photo { position: relative; display: block; width: 100%; padding: 0; border: 0; background: var(--te-fond); aspect-ratio: 4 / 5; overflow: hidden; cursor: zoom-in; }
.te-cand-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .3s ease; }
.te-cand-photo:hover img { transform: scale(1.03); }
.te-cand-badge { position: absolute; top: 10px; left: 10px; font-size: .78rem; font-weight: 800; padding: .3rem .65rem; border-radius: 999px; background: rgba(20,22,31,.82); color: #fff; }
.te-cand-badge.te-rang-1 { background: var(--te-or); color: var(--te-encre); }
.te-cand-badge.te-rang-2 { background: #e7eaf0; color: var(--te-encre); }
.te-cand-badge.te-rang-3 { background: var(--te-bronze); color: #fff; }
.te-cand-badge-elimine { background: var(--te-rouge); }
.te-cand-corps { padding: .85rem 1rem 1rem; display: flex; flex-direction: column; flex: 1; }
.te-cand-nom { font-size: 1rem; font-weight: 800; margin: 0 0 .25rem; color: var(--te-encre); }
.te-cand-desc { font-size: .85rem; color: var(--te-doux); margin: 0 0 .5rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.te-cand-voix { margin-top: auto; margin-bottom: .4rem; }
.te-voix { font-size: .9rem; color: var(--te-doux); }
.te-voix strong { font-size: 1.35rem; font-weight: 800; color: var(--te-encre); font-variant-numeric: tabular-nums; }
.te-voix-zero { font-size: .85rem; font-style: italic; }
.te-jauge { height: 6px; border-radius: 999px; background: #eceef2; overflow: hidden; margin-bottom: .85rem; }
.te-jauge span { display: block; height: 100%; border-radius: inherit; background: var(--te-rouge); transition: width .6s ease; }
.te-cand.podium-1 .te-jauge span { background: var(--te-or); }
.te-cand-actions { display: flex; gap: .5rem; }
.te-cand-actions .btn-primary, .te-cand-actions .disabled { flex: 1; }
.te-cand-dl { flex: 0 0 44px; padding: 0; display: inline-flex; align-items: center; justify-content: center; }
.candidat-elimine .te-cand-photo img { filter: grayscale(100%); opacity: .7; }
.candidat-elimine .te-jauge span { background: #b8bcc8; }
.voix-count.animate-update { animation: te-vote-flash 1.2s ease-in-out; display: inline-block; }
@keyframes te-vote-flash { 0% { transform: scale(1); } 40% { transform: scale(1.18); color: var(--te-vert); } 100% { transform: scale(1); } }
@media (max-width: 575.98px) {
  .te-cand-corps { padding: .7rem .75rem .8rem; }
  .te-cand-nom { font-size: .92rem; }
  .te-cand-desc { display: none; }
  .te-voix strong { font-size: 1.1rem; }
  .te-cand-dl { flex-basis: 40px; min-height: 40px; }
  .te-podium { gap: .5rem; }
  .te-podium-photo { width: 52px; height: 52px; }
  .te-podium-1 .te-podium-photo { width: 68px; height: 68px; }
}

/* ---------- Page candidat (vote.php) ---------- */
.te-candidat-entete { display: flex; gap: 1rem; align-items: center; background: #fff; border-radius: var(--te-rayon); padding: 1rem; box-shadow: var(--te-ombre); margin-bottom: 1.25rem; }
.te-candidat-entete .te-candidat-photo { flex: 0 0 96px; width: 96px; height: 120px; border-radius: 12px; overflow: hidden; background: var(--te-fond); padding: 0; border: 0; cursor: zoom-in; }
.te-candidat-entete .te-candidat-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.te-candidat-entete h1 { font-size: clamp(1.3rem, 1rem + 1.2vw, 1.8rem); font-weight: 800; margin: .15rem 0 .25rem; }
.te-candidat-event { display: inline-flex; align-items: center; gap: .35rem; font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--te-rouge); text-decoration: none; }
.te-candidat-stats { display: flex; flex-wrap: wrap; gap: .5rem 1rem; margin-top: .4rem; font-size: .92rem; color: var(--te-doux); }
.te-candidat-stats strong { color: var(--te-encre); font-size: 1.05rem; }
.te-candidat-stats .te-rang-pastille { background: var(--te-ambre-pale); color: #6b4a00; border-radius: 999px; padding: .15rem .6rem; font-weight: 700; }

/* Choix de la devise */
.te-devises { display: inline-flex; background: var(--te-fond); border-radius: 999px; padding: 4px; margin-bottom: 1rem; }
.te-devises button { border: 0; background: transparent; border-radius: 999px; padding: .45rem 1.1rem; font-weight: 700; color: var(--te-doux); min-height: 40px; }
.te-devises button.active { background: #fff; color: var(--te-encre); box-shadow: 0 1px 4px rgba(20,22,31,.12); }

/* Packs de voix */
.te-packs { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: .6rem; border: 0; padding: 0; margin: 0; }
.te-pack { position: relative; margin: 0; cursor: pointer; display: block; font-weight: 400; }
.te-pack[hidden] { display: none; }
.te-pack input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.te-pack-boite { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: .1rem; min-height: 92px; padding: .75rem .5rem; border: 2px solid var(--te-ligne); border-radius: 12px; background: #fff; transition: border-color .15s ease, background-color .15s ease, transform .15s ease; }
.te-pack-voix { font-size: 1.35rem; font-weight: 800; color: var(--te-encre); line-height: 1.1; }
.te-pack-voix small { font-size: .78rem; font-weight: 700; color: var(--te-doux); }
.te-pack-prix { font-weight: 700; color: var(--te-rouge); font-size: .95rem; }
.te-pack:hover .te-pack-boite { border-color: #b8bcc8; }
.te-pack input:checked + .te-pack-boite { border-color: var(--te-rouge); background: var(--te-rouge-pale); transform: translateY(-2px); }
.te-pack input:checked + .te-pack-boite::after { content: "\f00c"; font-family: FontAwesome; position: absolute; top: 6px; right: 8px; width: 22px; height: 22px; border-radius: 50%; background: var(--te-rouge); color: #fff; font-size: .7rem; display: flex; align-items: center; justify-content: center; }
.te-pack input:focus-visible + .te-pack-boite { outline: 3px solid rgba(225, 29, 38, .45); outline-offset: 2px; }
@media (max-width: 575.98px) { .te-packs { grid-template-columns: repeat(2, 1fr); } }

/* Aperçu de l'effet du vote */
.te-apercu { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; margin-top: 1rem; padding: .9rem 1rem; border-radius: 12px; background: var(--te-ambre-pale); }
.te-apercu small { display: block; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: #6b4a00; }
.te-apercu strong { font-size: 1.05rem; color: var(--te-encre); }
.te-apercu .te-apercu-gain { color: var(--te-vert); font-weight: 700; font-size: .85rem; }

/* Séparateur "ou" + bouton carte */
.te-ou { display: flex; align-items: center; gap: .75rem; color: var(--te-doux); font-size: .85rem; margin: 1rem 0; }
.te-ou::before, .te-ou::after { content: ""; flex: 1; height: 1px; background: var(--te-ligne); }
.te-btn-carte { background: #fff; border: 2px solid var(--te-encre); color: var(--te-encre); }
.te-btn-carte:hover, .te-btn-carte:focus { background: var(--te-encre); color: #fff; }
.te-btn-carte .fa { font-size: 1.25rem; }

/* Partage du candidat */
.te-partage-cand { background: #fff; border-radius: var(--te-rayon); box-shadow: var(--te-ombre); padding: 1.1rem 1.25rem; margin-top: 1rem; }
.te-partage-cand h2 { font-size: 1rem; font-weight: 800; margin-bottom: .25rem; }
.te-partage-cand p { font-size: .9rem; color: var(--te-doux); margin-bottom: .75rem; }

/* Reçu de vote */
.te-recu { background: #fff; border-radius: calc(var(--te-rayon) + 4px); box-shadow: var(--te-ombre-forte); overflow: hidden; max-width: 480px; margin: 0 auto; }
.te-recu-tete { background: var(--te-vert); color: #fff; text-align: center; padding: 1.4rem 1rem; }
.te-recu-tete .fa { font-size: 2.2rem; }
.te-recu-tete h2 { color: #fff; font-size: 1.35rem; font-weight: 800; margin: .4rem 0 0; }
.te-recu-corps { padding: 1.5rem 1.25rem; position: relative; }
.te-recu-corps::before, .te-recu-corps::after { content: ""; position: absolute; top: -14px; width: 28px; height: 28px; border-radius: 50%; background: var(--te-fond); }
.te-recu-corps::before { left: -14px; }
.te-recu-corps::after { right: -14px; }
.te-recu-voix { text-align: center; background: var(--te-vert-pale); color: var(--te-vert); border-radius: 12px; padding: .9rem; margin-bottom: 1.1rem; }
.te-recu-voix strong { display: block; font-size: 2rem; font-weight: 800; line-height: 1.1; }
.te-recu dl { display: grid; grid-template-columns: auto 1fr; gap: .45rem 1rem; margin: 0 0 1rem; font-size: .92rem; }
.te-recu dt { color: var(--te-doux); font-weight: 500; }
.te-recu dd { margin: 0; text-align: right; font-weight: 700; color: var(--te-encre); word-break: break-word; }
.te-recu-pied { text-align: center; border-top: 1px dashed var(--te-ligne); padding-top: .75rem; font-size: .8rem; font-weight: 700; color: var(--te-doux); }
.te-apercu[hidden], .te-vide[hidden] { display: none !important; }

/* =====================================================================
   Espace personnel (profil) — octobre 2026
   ===================================================================== */
.te-espace { background: var(--te-fond); padding: 1.5rem 0 4rem; min-height: 70vh; }
.te-espace-tete { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.25rem; margin-bottom: 1.25rem; }
.te-espace-tete .te-avatar {
  width: 64px; height: 64px; border-radius: 50%; flex: 0 0 64px;
  background: var(--te-encre); color: #fff; font-size: 1.7rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  box-shadow: inset 0 0 0 3px var(--te-rouge);
}
.te-espace-qui { flex: 1 1 200px; min-width: 0; }
.te-espace-titre { font-size: clamp(1.4rem, 1.15rem + 1vw, 1.9rem); font-weight: 800; margin: 0 0 .3rem; word-break: break-word; }
.te-role { display: inline-block; font-size: .75rem; font-weight: 700; padding: .2rem .65rem; border-radius: 999px; background: #fff; color: var(--te-encre); border: 1px solid var(--te-ligne); }
.te-role-organisateur { background: var(--te-rouge-pale); color: var(--te-rouge-fonce); border-color: transparent; }
.te-role-revendeur { background: var(--te-ambre-pale); color: #8a5a00; border-color: transparent; }
.te-espace-actions { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.te-espace-actions .btn, .te-fiche-actions .btn { min-height: 44px; display: inline-flex; align-items: center; border-radius: 999px; font-weight: 700; padding-left: 1.1rem; padding-right: 1.1rem; }
.te-btn-lien { background: transparent; color: var(--te-doux); border: 0; font-weight: 600 !important; }
.te-btn-lien:hover, .te-btn-lien:focus { color: var(--te-rouge); text-decoration: underline; }
.te-espace .te-btn-neutre { background: #fff; box-shadow: inset 0 0 0 1px var(--te-ligne); }
.te-espace .te-btn-neutre:hover { background: #fff; box-shadow: inset 0 0 0 1px var(--te-encre); }

/* Tuiles chiffres clés */
.te-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .75rem; margin-bottom: 1.5rem; }
.te-kpi {
  display: flex; align-items: center; gap: .8rem; background: #fff; border-radius: var(--te-rayon);
  box-shadow: var(--te-ombre); padding: .9rem 1rem; color: var(--te-encre) !important; text-decoration: none !important;
  transition: transform .15s ease, box-shadow .15s ease;
}
.te-kpi:hover { transform: translateY(-2px); box-shadow: var(--te-ombre-forte); }
.te-kpi strong { display: block; font-size: 1.5rem; font-weight: 800; line-height: 1.1; }
.te-kpi small { display: block; color: var(--te-doux); font-size: .8rem; font-weight: 600; line-height: 1.25; }
.te-kpi-icone { width: 42px; height: 42px; flex: 0 0 42px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; }
.te-kpi-rouge { background: var(--te-rouge-pale); color: var(--te-rouge); }
.te-kpi-ambre { background: var(--te-ambre-pale); color: #a16900; }
.te-kpi-vert { background: var(--te-vert-pale); color: var(--te-vert); }
.te-kpi-gris { background: #eeedf0; color: var(--te-doux); }

/* Pastilles de statut (en ligne) */
.te-pastille { display: inline-flex; align-items: center; font-size: .72rem; font-weight: 700; padding: .22rem .6rem; border-radius: 999px; line-height: 1.3; white-space: nowrap; background: #eeedf0; color: var(--te-texte); }
.te-pastille-ouvert { background: var(--te-vert-pale); color: var(--te-vert); }
.te-pastille-bientot { background: var(--te-ambre-pale); color: #8a5a00; }
.te-pastille-votes { background: var(--te-ambre-pale); color: #8a5a00; }
.te-pastille-passe { background: #eeedf0; color: var(--te-doux); }
.te-pastille-complet, .te-pastille-echec { background: var(--te-rouge-pale); color: var(--te-rouge-fonce); }
.te-pastille-masque { background: var(--te-encre); color: #fff; }
.te-pastille-nouveau { background: var(--te-rouge); color: #fff; }
.te-compteur { display: inline-block; min-width: 1.5em; font-size: .72rem; font-weight: 700; padding: .05rem .4rem; margin-left: .3rem; border-radius: 999px; background: var(--te-fond); color: var(--te-doux); text-align: center; }
.nav-link.active .te-compteur { background: var(--te-rouge); color: #fff; }

/* Panneau listes */
.te-panneau { background: #fff; border-radius: var(--te-rayon); box-shadow: var(--te-ombre); padding: .25rem 1.25rem 1.25rem; position: relative; }
.te-ancre { position: absolute; top: 0; }
.te-onglets-espace, .te-onglets-fiche { margin: 0 0 1rem; }
.te-liste { display: flex; flex-direction: column; gap: .5rem; }
.te-ligne-event {
  display: flex; align-items: center; gap: .9rem; padding: .6rem .75rem .6rem .6rem; border-radius: 12px;
  border: 1px solid var(--te-ligne); color: var(--te-texte) !important; text-decoration: none !important; background: #fff;
  transition: border-color .15s ease, background .15s ease;
}
.te-ligne-event[hidden] { display: none; }
.te-ligne-event:hover { border-color: var(--te-encre); }
.te-ligne-event.est-actif { border-color: var(--te-rouge); background: var(--te-rouge-pale); }
.te-ligne-img { width: 56px; height: 70px; flex: 0 0 56px; object-fit: cover; border-radius: 8px; background: var(--te-fond); }
.te-ligne-corps { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .2rem; }
.te-ligne-titre { color: var(--te-encre); font-weight: 700; font-size: 1rem; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.te-ligne-meta { display: flex; flex-wrap: wrap; gap: .1rem .9rem; font-size: .82rem; color: var(--te-doux); }
.te-ligne-meta .fa { width: 1em; text-align: center; margin-right: .15rem; }
.te-ligne-badges { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .15rem; }
.te-ligne-fleche { color: var(--te-doux); flex: 0 0 auto; }
.te-voir-plus { display: block; width: 100%; margin-top: .75rem; min-height: 44px; border: 1px dashed var(--te-ligne); border-radius: 12px; background: var(--te-fond); color: var(--te-encre); font-weight: 700; }
.te-voir-plus:hover { border-color: var(--te-encre); }
.te-vide-compact { padding: 2rem 1.25rem; }
.te-vide-compact p { max-width: 420px; margin: 0 auto 1rem; color: var(--te-doux); }
.te-vide-compact .btn { border-radius: 999px; font-weight: 700; padding: .5rem 1.1rem; }

/* Fiche évènement / billets */
.te-fiche { background: #fff; border-radius: var(--te-rayon); box-shadow: var(--te-ombre); padding: 1.1rem 1.25rem 1.5rem; margin-bottom: 1.5rem; scroll-margin-top: calc(var(--te-nav-h) + 12px); }
.te-fiche-retour { display: inline-flex; align-items: center; min-height: 40px; font-size: .88rem; font-weight: 700; color: var(--te-doux) !important; margin-bottom: .5rem; }
.te-fiche-retour:hover { color: var(--te-rouge) !important; }
.te-fiche-tete { display: flex; gap: 1.25rem; align-items: flex-start; }
.te-fiche-affiche { position: relative; flex: 0 0 168px; width: 168px; padding: 0; border: 0; background: var(--te-fond); border-radius: 12px; overflow: hidden; cursor: zoom-in; aspect-ratio: 4 / 5; }
div.te-fiche-affiche { cursor: default; }
.te-fiche-affiche img { width: 100%; height: 100%; object-fit: cover; display: block; }
.te-fiche-zoom { position: absolute; right: 8px; bottom: 8px; width: 32px; height: 32px; border-radius: 50%; background: rgba(20,22,31,.75); color: #fff; display: flex; align-items: center; justify-content: center; font-size: .85rem; }
.te-fiche-infos { flex: 1; min-width: 0; }
.te-fiche-titre { font-size: clamp(1.3rem, 1.1rem + .9vw, 1.75rem); font-weight: 800; margin: .5rem 0 .6rem; word-break: break-word; }
.te-fiche-meta { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: .3rem; font-size: .92rem; }
.te-fiche-meta .fa { width: 1.1em; text-align: center; color: var(--te-rouge); margin-right: .35rem; }
.te-fiche-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.te-mini-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; margin: 1.25rem 0 .5rem; }
.te-mini-kpi { background: var(--te-fond); border-radius: 12px; padding: .7rem .8rem; }
.te-mini-kpi strong { display: block; font-size: 1.35rem; font-weight: 800; color: var(--te-encre); line-height: 1.15; }
.te-mini-kpi strong span { font-size: .9rem; color: var(--te-doux); font-weight: 600; }
.te-mini-kpi small { color: var(--te-doux); font-size: .78rem; font-weight: 600; }
.te-mini-kpi.est-alerte { background: var(--te-rouge-pale); }
.te-mini-kpi.est-alerte strong, .te-mini-kpi.est-alerte small { color: var(--te-rouge-fonce); }
.te-onglets-fiche { margin-top: 1rem; }
.te-bloc-titre { font-size: .78rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--te-doux); margin: 1.25rem 0 .6rem; padding: 0; border: 0; width: auto; }
.te-tab-entete { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: 1rem; color: var(--te-doux); font-size: .9rem; }
.te-tab-entete .btn { border-radius: 999px; font-weight: 700; }
.te-avertir { color: var(--te-rouge-fonce); font-weight: 600; }

/* Tarifs en puces */
.te-tarifs-chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.te-tarifs-chips li { display: inline-flex; align-items: center; gap: .6rem; border: 1px solid var(--te-ligne); border-radius: 12px; padding: .5rem .8rem; }
.te-tarifs-chips span { color: var(--te-texte); font-weight: 600; }
.te-tarifs-chips strong { color: var(--te-rouge); font-weight: 800; }

/* Description repliable */
.te-desc-pliable { position: relative; max-height: 9.5em; overflow: hidden; }
.te-desc-pliable.est-ouvert { max-height: none; }
.te-desc-pliable.est-coupe::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3em; background: linear-gradient(rgba(255,255,255,0), #fff); }
.te-lire-suite { border: 0; background: none; color: var(--te-rouge); font-weight: 700; padding: .4rem 0; min-height: 40px; }
.te-lire-suite[hidden] { display: none; }

/* État de la billetterie : cartes radio */
.te-etat-form { margin-top: .5rem; }
.te-etat-form fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.te-etats { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; margin-bottom: 1rem; }
.te-etat { margin: 0; cursor: pointer; display: block; }
.te-etat input { position: absolute; opacity: 0; pointer-events: none; }
.te-etat-carte { display: flex; flex-direction: column; gap: .15rem; height: 100%; border: 2px solid var(--te-ligne); border-radius: 12px; padding: .75rem .85rem; transition: border-color .15s ease, background .15s ease; }
.te-etat-carte .fa { font-size: 1.15rem; margin-bottom: .2rem; }
.te-etat-carte strong { color: var(--te-encre); }
.te-etat-carte small { color: var(--te-doux); line-height: 1.35; }
.te-etat:hover .te-etat-carte { border-color: #c9c6c0; }
.te-etat input:checked + .te-etat-carte { border-color: var(--te-rouge); background: var(--te-rouge-pale); }
.te-etat input:focus-visible + .te-etat-carte { outline: 3px solid rgba(225,29,38,.35); outline-offset: 2px; }
.te-etat-icone-vert { color: var(--te-vert); }
.te-etat-icone-ambre { color: #b77900; }
.te-etat-icone-gris { color: var(--te-doux); }
.te-etat-form .btn { border-radius: 999px; font-weight: 700; min-height: 44px; padding: 0 1.4rem; }

/* Notifications */
.te-notif-zone { margin: 1rem 0 0; }
.te-notif { display: flex; gap: .6rem; align-items: flex-start; padding: .8rem 1rem; border-radius: 12px; font-weight: 600; transition: opacity .4s ease; }
.te-notif .fa { margin-top: .2rem; }
.te-notif-erreur { background: var(--te-rouge-pale); color: var(--te-rouge-fonce); }
.te-notif-succes { background: var(--te-vert-pale); color: var(--te-vert); }
.te-notif.est-masque { opacity: 0; pointer-events: none; }

/* Tableaux (clients, transactions) */
.te-table-zone { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.te-table { font-size: .9rem; color: var(--te-texte); }
.te-table thead th { border: 0 !important; background: var(--te-fond); color: var(--te-doux); font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; font-weight: 700; white-space: nowrap; }
.te-table td { border-top: 1px solid var(--te-ligne) !important; vertical-align: middle; }
.te-table code { color: var(--te-encre); background: var(--te-fond); padding: .1rem .35rem; border-radius: 6px; }
.dataTables_wrapper .dataTables_filter input, .dataTables_wrapper .dataTables_length select { border: 1px solid var(--te-ligne); border-radius: 8px; padding: .3rem .5rem; min-height: 38px; }
.dataTables_wrapper .dataTables_paginate .paginate_button.current, .dataTables_wrapper .dataTables_paginate .paginate_button.current:hover { background: var(--te-encre) !important; color: #fff !important; border-color: var(--te-encre) !important; border-radius: 8px; }

/* Billets du client */
.te-confidentiel { display: flex; gap: .75rem; align-items: flex-start; background: var(--te-ambre-pale); border-radius: 12px; padding: .85rem 1rem; margin: 1.25rem 0 .25rem; }
.te-confidentiel .fa { color: #a16900; font-size: 1.2rem; margin-top: .15rem; }
.te-confidentiel p { margin: 0; font-size: .92rem; color: #5c4300; }
.te-pass-grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1rem; }
.te-pass { border: 1px solid var(--te-ligne); border-radius: var(--te-rayon); overflow: hidden; display: flex; flex-direction: column; background: #fff; }
.te-pass-tete { display: flex; justify-content: space-between; align-items: center; background: var(--te-encre); color: #fff; padding: .65rem 1rem; font-size: .85rem; }
.te-pass-tete strong { color: #fff; }
.te-pass.est-passe .te-pass-tete { background: var(--te-doux); }
.te-pass-qr { padding: 1rem; text-align: center; border-bottom: 2px dashed var(--te-ligne); position: relative; }
.te-pass-qr img { width: 168px; height: 168px; max-width: 100%; image-rendering: pixelated; }
.te-pass-infos { display: grid; grid-template-columns: auto 1fr; gap: .3rem .8rem; margin: 0; padding: .85rem 1rem .5rem; font-size: .85rem; }
.te-pass-infos dt { color: var(--te-doux); font-weight: 500; }
.te-pass-infos dd { margin: 0; text-align: right; font-weight: 700; color: var(--te-encre); word-break: break-all; }
.te-pass form { padding: .5rem 1rem 1rem; margin-top: auto; }
.te-pass .btn { border-radius: 999px; font-weight: 700; min-height: 44px; }

@media (max-width: 767.98px) {
  .te-espace { padding-top: 1rem; }
  .te-espace-tete .te-avatar { width: 52px; height: 52px; flex-basis: 52px; font-size: 1.4rem; }
  .te-espace-actions { width: 100%; }
  .te-espace-actions .btn-primary { flex: 1 1 100%; justify-content: center; }
  .te-kpis { grid-template-columns: repeat(2, 1fr); gap: .5rem; }
  .te-kpi { padding: .75rem; gap: .6rem; }
  .te-kpi-icone { width: 36px; height: 36px; flex-basis: 36px; font-size: 1rem; }
  .te-kpi strong { font-size: 1.25rem; }
  .te-panneau, .te-fiche { padding-left: .9rem; padding-right: .9rem; border-radius: 12px; }
  .te-fiche-affiche { flex-basis: 104px; width: 104px; }
  .te-fiche-tete { gap: .9rem; }
  .te-fiche-meta { font-size: .85rem; }
  .te-fiche-actions { margin: 0 -.1rem; }
  .te-fiche-actions .btn { flex: 1 1 auto; justify-content: center; }
  .te-mini-kpis { grid-template-columns: repeat(2, 1fr); }
  .te-etats { grid-template-columns: 1fr; }
  .te-etat-carte { flex-direction: row; flex-wrap: wrap; align-items: center; column-gap: .5rem; }
  .te-etat-carte small { flex-basis: 100%; }
  .te-etat-form .btn { width: 100%; }
  /* Tableaux en cartes */
  .te-table-cartes thead { display: none; }
  .te-table-cartes, .te-table-cartes tbody, .te-table-cartes tfoot, .te-table-cartes tr, .te-table-cartes td { display: block; width: 100% !important; }
  .te-table-cartes tfoot tr { background: var(--te-fond); }
  .te-table-cartes tfoot td { background: transparent; border-top: 0 !important; }
  .te-table-cartes .te-total-libelle { text-align: left !important; }
  .te-table-cartes tr { border: 1px solid var(--te-ligne); border-radius: 12px; margin-bottom: .6rem; padding: .35rem .8rem; background: #fff; }
  .te-table-cartes td { text-align: right; border: 0 !important; padding: .35rem 0; overflow: hidden; word-break: break-word; }
  .te-table-cartes td::before { content: attr(data-label); float: left; margin-right: 1rem; color: var(--te-doux); font-size: .78rem; font-weight: 700; text-transform: uppercase; text-align: left; line-height: 1.9; }
  .te-onglets-espace .nav-link, .te-onglets-fiche .nav-link { padding-left: .5rem; padding-right: .5rem; font-size: .86rem; }
  .te-onglets-espace .te-compteur, .te-onglets-fiche .te-compteur { margin-left: .2rem; }
  .te-fiche-actions .btn-primary { flex-basis: 100%; }
  .te-fiche-actions .btn:not(.btn-primary) { flex: 1 1 40%; }
  .dataTables_wrapper .dataTables_length, .dataTables_wrapper .dataTables_filter { text-align: left; float: none; }
}
@media (max-width: 400px) {
  .te-fiche-tete { flex-direction: column; }
  .te-fiche-affiche { width: 120px; flex-basis: auto; }
}

/* Menu « Gérer l'évènement » (modal.php) */
.te-menu-gestion { padding: 0 0 .75rem; border-radius: 18px !important; }
.te-menu-tete { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; padding: 1.1rem 1.25rem .5rem; position: sticky; top: 0; background: #fff; z-index: 1; }
.te-menu-titre { font-size: 1.15rem; font-weight: 800; margin: 0; word-break: break-word; }
.te-menu-fermer { border: 0; background: var(--te-fond); width: 40px; height: 40px; flex: 0 0 40px; border-radius: 50%; font-size: 1.5rem; line-height: 1; color: var(--te-encre); }
.te-menu-fermer:hover { background: #eceae6; }
.te-menu-groupe { font-size: .72rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--te-doux); margin: .9rem 1.25rem .35rem; }
.te-menu-liste { display: flex; flex-direction: column; padding: 0 .6rem; }
.te-menu-item { display: flex; align-items: center; gap: .85rem; width: 100%; text-align: left; border: 0; background: none; border-radius: 12px; padding: .6rem .65rem; color: var(--te-encre) !important; text-decoration: none !important; min-height: 52px; }
.te-menu-item:hover, .te-menu-item:focus-visible { background: var(--te-fond); }
.te-menu-item strong { display: block; font-weight: 700; font-size: .95rem; }
.te-menu-item small { display: block; color: var(--te-doux); font-size: .8rem; }
.te-menu-icone { width: 38px; height: 38px; flex: 0 0 38px; border-radius: 10px; background: var(--te-fond); color: var(--te-encre); display: flex; align-items: center; justify-content: center; }
.te-menu-danger strong, .te-menu-danger .te-menu-icone { color: var(--te-rouge-fonce); }
.te-menu-danger .te-menu-icone { background: var(--te-rouge-pale); }
@media (max-width: 575.98px) {
  .town-menu-gestion.is-open { align-items: flex-end !important; padding: 0 !important; }
  .te-menu-gestion { max-width: none !important; border-radius: 20px 20px 0 0 !important; max-height: 88vh !important; padding-bottom: calc(.75rem + env(safe-area-inset-bottom)); }
}

/* Fenêtres de gestion (tarifs, billets, date…) */
body > .modal .modal-content { border-radius: 18px !important; border: 0; }
body > .modal .modal-header { padding: 1.1rem 1.25rem .5rem; }
body > .modal .modal-title { font-size: 1.1rem; font-weight: 800; }
body > .modal .modal-header .close { width: 40px; height: 40px; border-radius: 50%; background: var(--te-fond); opacity: 1; margin: -.25rem -.25rem 0 auto; padding: 0; }
body > .modal .form-control, body > .modal .custom-select { border-radius: 10px !important; min-height: 46px; border-color: var(--te-ligne); }
body > .modal .form-control:focus { border-color: var(--te-encre); box-shadow: 0 0 0 3px rgba(20,22,31,.08); }
body > .modal label { color: var(--te-encre); }
body > .modal .btn { min-height: 44px; font-weight: 700; }
@media (max-width: 575.98px) {
  body > .modal .modal-dialog-centered { align-items: flex-end; min-height: 100%; margin: 0; }
  body > .modal .modal-dialog { max-width: none; }
  body > .modal .modal-content { border-radius: 20px 20px 0 0 !important; }
  body > .te-modal-affiche .modal-dialog-centered { align-items: center; margin: .5rem; }
  body > .te-modal-affiche .modal-content { border-radius: 0 !important; }
}

/* =====================================================================
   Statistiques d'un évènement — octobre 2026
   ===================================================================== */
.te-stats-tete { margin-bottom: 1rem; }
.te-stats-titre-ligne { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.te-stats-affiche { width: 56px; height: 70px; object-fit: cover; border-radius: 10px; flex: 0 0 56px; box-shadow: var(--te-ombre); }
.te-stats-titres { flex: 1 1 220px; min-width: 0; }
.te-periode-badge { display: inline-flex; align-items: center; font-size: .78rem; font-weight: 700; padding: .25rem .7rem; border-radius: 999px; background: #fff; border: 1px solid var(--te-ligne); color: var(--te-encre); }
.te-stats-exports { display: flex; gap: .5rem; }
.te-stats-exports .btn { border-radius: 999px; font-weight: 700; min-height: 40px; display: inline-flex; align-items: center; padding: 0 1rem; }

/* Filtre de période */
.te-filtre { background: #fff; border-radius: var(--te-rayon); box-shadow: var(--te-ombre); padding: .75rem; margin-bottom: 1rem; }
.te-filtre-chips { display: flex; gap: .4rem; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.te-filtre-chips::-webkit-scrollbar { display: none; }
.te-chip { flex: 0 0 auto; display: inline-flex; align-items: center; min-height: 40px; padding: 0 1rem; border-radius: 999px; border: 1px solid var(--te-ligne); background: #fff; color: var(--te-encre) !important; font-weight: 700; font-size: .88rem; text-decoration: none !important; white-space: nowrap; }
.te-chip:hover { border-color: var(--te-encre); }
.te-chip.est-actif { background: var(--te-encre); border-color: var(--te-encre); color: #fff !important; }
.te-filtre-form { margin-top: .75rem; }
.te-filtre-champs { display: flex; flex-wrap: wrap; gap: .75rem; align-items: flex-end; }
.te-filtre-champs > div { flex: 1 1 150px; }
.te-filtre-champs label { display: block; font-size: .78rem; font-weight: 700; color: var(--te-doux); margin-bottom: .25rem; }
.te-filtre-champs .form-control { border-radius: 10px; min-height: 44px; border-color: var(--te-ligne); }
.te-filtre-boutons { display: flex; gap: .25rem; flex: 0 0 auto !important; }
.te-filtre-boutons .btn { border-radius: 999px; font-weight: 700; min-height: 44px; padding: 0 1.2rem; }

/* KPI des statistiques */
.te-kpi-statique:hover { transform: none; box-shadow: var(--te-ombre); }
.te-kpis-stats .te-kpi { align-items: flex-start; }
.te-kpis-stats .te-kpi > span:last-child { min-width: 0; }
.te-kpis-stats .te-kpi small { order: -1; text-transform: uppercase; letter-spacing: .04em; font-size: .72rem; }
.te-kpis-stats .te-kpi strong { font-size: clamp(1.15rem, 1rem + .8vw, 1.6rem); margin: .1rem 0; word-break: break-word; }
.te-kpis-stats .te-kpi em { display: block; font-style: normal; font-size: .78rem; color: var(--te-doux); }
.te-kpis-stats .te-kpi { min-height: 92px; }
.aide { cursor: help; border-bottom: 1px dotted #a7a39c; }

/* Taux de réussite */
.te-conversion { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; background: #fff; border-radius: var(--te-rayon); box-shadow: var(--te-ombre); padding: .8rem 1rem; margin-bottom: 1rem; }
.te-conversion-texte { display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem .6rem; flex: 1 1 260px; font-size: .9rem; }
.te-conversion-texte strong { color: var(--te-vert); font-size: 1.15rem; }
.te-conversion-texte small { color: var(--te-doux); }
.te-conv-jauge { flex: 1 1 200px; height: 10px; background: var(--te-fond); border-radius: 999px; overflow: hidden; }
.te-conv-jauge span { display: block; height: 100%; background: var(--te-vert); border-radius: 999px; }

/* Panneau à onglets */
.te-stats-panneau { padding-bottom: 1.5rem; }
.te-onglets-stats { margin: 0 0 1.1rem; }
.te-onglets-stats .nav-link .fa { margin-right: .3rem; opacity: .8; }
.te-aide-texte { color: var(--te-doux); font-size: .9rem; margin-bottom: 1rem; }

/* Brut − frais = net */
.te-finance { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: .5rem; align-items: stretch; margin-bottom: 1rem; }
.te-finance-bloc { background: var(--te-fond); border-radius: 12px; padding: .85rem 1rem; min-width: 0; }
.te-finance-bloc strong { display: block; font-size: 1.25rem; font-weight: 800; color: var(--te-encre); margin: .15rem 0; word-break: break-word; }
.te-finance-bloc small { color: var(--te-doux); font-size: .78rem; line-height: 1.4; display: block; }
.te-finance-libelle { font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--te-doux); }
.te-finance-frais strong { color: var(--te-rouge-fonce); }
.te-finance-net { background: var(--te-vert-pale); }
.te-finance-net strong { color: var(--te-vert); }
.te-finance-op { align-self: center; font-size: 1.3rem; font-weight: 800; color: var(--te-doux); }
.te-note { display: flex; gap: .7rem; align-items: flex-start; background: var(--te-fond); border-radius: 12px; padding: .8rem 1rem; margin-top: 1rem; font-size: .88rem; }
.te-note p { margin: 0; }
.te-note .fa { margin-top: .2rem; color: var(--te-doux); }
.te-note-alerte { background: var(--te-ambre-pale); color: #5c4300; }
.te-note-alerte .fa { color: #a16900; }
.te-note-ok { background: var(--te-vert-pale); color: #14532d; }
.te-note-ok .fa { color: var(--te-vert); }

/* Graphiques */
.te-stats-duo { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 1.25rem; align-items: start; }
.te-graphe { margin: 0; background: #fff; border: 1px solid var(--te-ligne); border-radius: 12px; padding: .9rem 1rem 1rem; }
.te-graphe figcaption { font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--te-doux); margin-bottom: .5rem; }
.te-graphe-zone { position: relative; height: 260px; }
.te-graphe-anneau .te-graphe-zone { height: 280px; }
.te-graphe-haut { height: 320px; }
.te-total-libelle { text-align: right; font-weight: 800; text-transform: uppercase; font-size: .75rem; letter-spacing: .05em; color: var(--te-doux); vertical-align: middle !important; }
.te-table tfoot td { background: var(--te-fond); border-top: 2px solid var(--te-ligne) !important; }

/* Classement des candidats */
.te-cand-outils { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-bottom: .5rem; }
.te-recherche-champ { position: relative; flex: 1 1 240px; }
.te-recherche-champ .fa { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--te-doux); }
.te-recherche-champ .form-control { padding-left: 2.4rem; border-radius: 999px; min-height: 44px; border-color: var(--te-ligne); }
.te-tri-mobile { display: none; }
.te-btn-ajout { border-radius: 999px; font-weight: 700; min-height: 44px; }
.te-table-cand th[data-tri] { cursor: pointer; user-select: none; }
.te-table-cand th[data-tri]:hover { color: var(--te-encre); }
.te-table-cand th .fleche { opacity: .4; margin-left: .25rem; }
.te-table-cand th[aria-sort] .fleche { opacity: 1; color: var(--te-rouge); }
.te-rang { font-weight: 800; color: var(--te-doux); }
.te-table-cand .te-rang-1, .te-table-cand .te-rang-2, .te-table-cand .te-rang-3 { color: var(--te-encre); }
.te-table-cand .te-rang-1::after, .te-table-cand .te-rang-2::after, .te-table-cand .te-rang-3::after { content: "\f091"; font-family: FontAwesome; margin-left: .3rem; }
.te-table-cand .te-rang-1::after { color: #d4a000; }
.te-table-cand .te-rang-2::after { color: #9ca3af; }
.te-table-cand .te-rang-3::after { color: #b45309; }
.te-cand-nom strong { color: var(--te-encre); }
.te-barre-voix { display: block; height: 4px; background: var(--te-fond); border-radius: 999px; margin-top: .4rem; max-width: 220px; overflow: hidden; }
.te-barre-voix span { display: block; height: 100%; background: var(--te-rouge); border-radius: 999px; }
.ligne-eliminee .te-barre-voix span { background: var(--te-doux); }
.te-voix-badge { display: inline-block; min-width: 2.6em; padding: .2rem .6rem; border-radius: 999px; background: var(--te-ambre-pale); color: #6b4700; font-weight: 800; }
.te-voix-total { background: var(--te-encre); color: #fff; }
.ligne-eliminee td { opacity: .6; }
.ligne-eliminee .te-cand-actions-cell { opacity: 1; }
.te-cand-boutons { display: flex; gap: .35rem; justify-content: flex-end; flex-wrap: wrap; }
.te-cand-boutons .btn { border-radius: 999px; font-weight: 700; min-height: 36px; white-space: nowrap; }
.te-btn-eliminer { background: #fff; color: var(--te-rouge-fonce); border: 1px solid #f3c2c4; }
.te-btn-eliminer:hover { background: var(--te-rouge-pale); color: var(--te-rouge-fonce); }
.te-btn-reintegrer { background: var(--te-vert-pale); color: var(--te-vert); border: 0; }
.te-btn-reintegrer:hover { background: #d3eedd; color: var(--te-vert); }

/* Zone sensible (nouvelle phase) */
.te-zone-sensible { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1.5rem; margin-top: 2rem; padding: 1rem 1.1rem; border: 1px dashed #f0b5b8; border-radius: 12px; background: #fffafa; }
.te-zone-sensible h3 { font-size: .95rem; font-weight: 800; margin: 0 0 .2rem; color: var(--te-rouge-fonce); }
.te-zone-sensible p { margin: 0; font-size: .85rem; color: var(--te-doux); max-width: 520px; }
.te-btn-danger-contour { background: #fff; color: var(--te-rouge-fonce); border: 1px solid var(--te-rouge); border-radius: 999px; font-weight: 700; min-height: 44px; }
.te-btn-danger-contour:hover { background: var(--te-rouge); color: #fff; }

@media (max-width: 991.98px) {
  .te-stats-duo { grid-template-columns: 1fr; }
}
@media (max-width: 767.98px) {
  .te-stats-exports { width: 100%; }
  .te-stats-exports .btn { flex: 1; justify-content: center; }
  .te-kpis-stats { grid-template-columns: 1fr 1fr; }
  .te-kpis-stats .te-kpi { flex-direction: column; gap: .4rem; min-height: 0; }
  .te-kpis-stats .te-kpi-icone { width: 32px; height: 32px; flex-basis: 32px; font-size: .9rem; }
  .te-finance { grid-template-columns: 1fr; gap: 0; border-radius: 12px; overflow: hidden; border: 1px solid var(--te-ligne); }
  .te-finance-op { display: none; }
  .te-finance-bloc { border-radius: 0; display: grid; grid-template-columns: 1fr auto; align-items: center; column-gap: .75rem; padding: .7rem .9rem; background: #fff; }
  .te-finance-bloc + .te-finance-op + .te-finance-bloc { border-top: 1px solid var(--te-ligne); }
  .te-finance-bloc strong { font-size: 1.05rem; margin: 0; text-align: right; }
  .te-finance-bloc small { grid-column: 1 / -1; }
  .te-finance-net { background: var(--te-vert-pale); }
  .te-graphe-haut { height: 260px; }
  .te-onglets-stats .nav-link .fa { display: none; }
  .te-tri-mobile { display: block; flex: 1 1 150px; border-radius: 999px; min-height: 44px; border-color: var(--te-ligne); }
  .te-btn-ajout { flex: 1 1 100%; }
  /* Classement en cartes */
  .te-table-cand thead { display: none; }
  .te-table-cand, .te-table-cand tbody, .te-table-cand tfoot, .te-table-cand tr { display: block; width: 100% !important; }
  .te-table-cand tr { position: relative; border: 1px solid var(--te-ligne); border-radius: 12px; margin-bottom: .6rem; padding: .7rem .85rem .7rem 3.1rem; background: #fff; display: grid; grid-template-columns: 1fr 1fr 1fr; column-gap: .5rem; }
  .te-table-cand td { display: block; border: 0 !important; padding: .2rem 0 !important; text-align: left !important; }
  .te-table-cand td.rang { position: absolute; left: .7rem; top: .75rem; width: 2rem; text-align: center !important; font-size: 1.05rem; }
  .te-table-cand td.rang::after { display: block; margin: 0; font-size: .85rem; }
  .te-table-cand td.te-cand-nom { grid-column: 1 / -1; padding-bottom: .4rem !important; }
  .te-table-cand td[data-label]::before { content: attr(data-label); display: block; font-size: .68rem; font-weight: 700; text-transform: uppercase; color: var(--te-doux); letter-spacing: .03em; }
  .te-table-cand td.te-cand-actions-cell { grid-column: 1 / -1; padding-top: .5rem !important; }
  .te-cand-boutons { justify-content: stretch; }
  .te-cand-boutons > .btn, .te-cand-boutons > form { flex: 1; }
  .te-cand-boutons form .btn { width: 100%; }
  .te-table-cand tfoot tr { padding-left: .85rem; background: var(--te-fond); }
  .te-table-cand tfoot td { background: transparent; border-top: 0 !important; }
  .te-table-cand tfoot .te-total-libelle { grid-column: 1 / -1; text-align: left !important; }
  .te-table-cand tfoot .te-vide-cell { display: none; }
  .te-table-cand .te-voix-badge { margin-top: .1rem; }
  .te-zone-sensible .btn { width: 100%; }
}

/* =====================================================================
   Pause des votes — octobre 2026
   ===================================================================== */
.te-etat-votes { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1rem; background: #fff; border-radius: var(--te-rayon); box-shadow: var(--te-ombre); border-left: 4px solid var(--te-vert); padding: .85rem 1rem; margin-bottom: 1rem; }
.te-etat-votes.est-pause { border-left-color: var(--te-or); background: var(--te-ambre-pale); }
.te-etat-votes-icone { width: 40px; height: 40px; flex: 0 0 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--te-vert-pale); color: var(--te-vert); }
.te-etat-votes.est-pause .te-etat-votes-icone { background: #fff; color: #a16900; }
.te-etat-votes-texte { flex: 1 1 220px; min-width: 0; }
.te-etat-votes-texte strong { display: block; color: var(--te-encre); font-weight: 800; }
.te-etat-votes-texte span { display: block; font-size: .85rem; color: var(--te-doux); }
.te-etat-votes.est-pause .te-etat-votes-texte span { color: #5c4300; }
.te-btn-pause, .te-btn-reprendre { border-radius: 999px; font-weight: 700; min-height: 44px; padding: 0 1.2rem; display: inline-flex; align-items: center; }
.te-btn-pause { background: #fff; color: var(--te-encre); border: 1px solid var(--te-ligne); }
.te-btn-pause:hover { border-color: var(--te-encre); }
.te-btn-reprendre { background: var(--te-vert); color: #fff; border: 0; }
.te-btn-reprendre:hover, .te-btn-reprendre:focus { background: #116a32; color: #fff; }
.te-liste-points { margin: 0; padding-left: 1.1rem; }
.te-liste-points li { margin-bottom: .4rem; }

/* Côté public */
.te-votes-pause { display: flex; gap: .85rem; align-items: flex-start; background: var(--te-ambre-pale); border-radius: var(--te-rayon); padding: .9rem 1rem; margin-bottom: 1.25rem; color: #5c4300; }
.te-votes-pause strong { display: block; color: var(--te-encre); }
.te-votes-pause p { margin: .15rem 0 0; font-size: .9rem; }
.te-pause-icone { width: 40px; height: 40px; flex: 0 0 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: #fff; color: #a16900; }
.te-votes-pause-carte .te-pause-icone { width: 64px; height: 64px; font-size: 1.5rem; background: var(--te-ambre-pale); }
@media (max-width: 575.98px) {
  .te-etat-votes form, .te-etat-votes > .btn { width: 100%; }
  .te-btn-pause, .te-btn-reprendre { width: 100%; justify-content: center; }
}
.te-cand-actions .disabled { white-space: nowrap; }
@media (max-width: 575.98px) {
  .te-cand-actions .disabled { font-size: .82rem; padding-left: .4rem; padding-right: .4rem; }
}
.te-brut-duo { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; margin-bottom: 1rem; }
@media (max-width: 575.98px) { .te-brut-duo { grid-template-columns: 1fr; } }
