/* =====================================================================
   SE SPORT EVENTS — Feuille de style principale
   Fond clair, header & footer sombres, accent cyan
   ===================================================================== */

/* ----------------------------- VARIABLES ----------------------------- */
:root {
  /* Fonds */
  --se-black:        #05070a;
  --se-white:        #ffffff;
  --se-bg:           #ffffff;
  --se-bg-alt:       #f6f8fb;
  --se-surface:      #ffffff;
  --se-surface-2:    #f1f4f8;

  /* Bordures */
  --se-border:       rgba(10, 13, 18, .08);
  --se-border-2:     rgba(10, 13, 18, .14);
  --se-border-dark:  rgba(255, 255, 255, .1);

  /* Cyan */
  --se-cyan:         #22b8e6;
  --se-cyan-2:       #4fd2f5;
  --se-cyan-dark:    #0b93bd;
  --se-cyan-glow:    rgba(34, 184, 230, .3);
  --se-cyan-soft:    rgba(34, 184, 230, .1);

  /* Texte */
  --se-text:         #0a0d12;
  --se-text-muted:   #5a6472;
  --se-text-soft:    #8a95a5;
  --se-text-inv:     #e7ecf2;
  --se-text-inv-mut: #8a95a5;

  /* Divers */
  --se-radius:       14px;
  --se-radius-lg:    20px;
  --se-transition:   .35s cubic-bezier(.25, .8, .25, 1);
  --se-font-display: 'Archivo', system-ui, sans-serif;
  --se-font-body:    'Inter', system-ui, sans-serif;
}

/* ----------------------------- RESET / BASE ----------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--se-bg);
  color: var(--se-text);
  font-family: var(--se-font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  padding-top: 34px;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; transition: color var(--se-transition); }
button { font-family: inherit; }

::selection { background: var(--se-cyan); color: #001018; }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #eef1f5; }
::-webkit-scrollbar-thumb { background: #c8d0da; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: #aeb8c4; }

/* ----------------------------- UTILITAIRES ----------------------------- */
.text-cyan { color: var(--se-cyan); }

.brand__logo {
  height: 90px;
  width: auto;
  display: block;
}
.eyebrow {
  font-family: var(--se-font-display);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--se-cyan-dark);
  margin: 0 0 .85rem;
  display: inline-flex;
  align-items: center;
  gap: .7rem;
}
.eyebrow::before {
  content: "";
  width: 34px;
  height: 2px;
  background: var(--se-cyan);
  border-radius: 2px;
}

.section { padding: 100px 0; position: relative; }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 3.5rem;
  flex-wrap: wrap;
}
.section-head--stacked { flex-direction: column; align-items: flex-start; }

.section-title {
  font-family: var(--se-font-display);
  font-weight: 800;
  font-size: clamp(1.75rem, 3.2vw, 2.6rem);
  line-height: 1.15;
  margin: 0;
  color: var(--se-text);
  letter-spacing: -.02em;
}

.link-cyan {
  color: var(--se-cyan-dark);
  font-weight: 600;
  font-size: .95rem;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  white-space: nowrap;
}
.link-cyan i { transition: transform var(--se-transition); }
.link-cyan:hover { color: var(--se-cyan); }
.link-cyan:hover i { transform: translateX(5px); }

/* ----------------------------- BOUTONS ----------------------------- */
.btn-se-primary,
.btn-se-outline,
.btn-se-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  font-family: var(--se-font-display);
  font-weight: 700;
  font-size: .92rem;
  letter-spacing: .02em;
  padding: .8rem 1.6rem;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all var(--se-transition);
  white-space: nowrap;
}

.btn-se-primary {
  background: var(--se-cyan);
  color: white ;
  box-shadow: 0 8px 24px -10px var(--se-cyan-glow);
}
.btn-se-primary:hover {
  background: var(--se-cyan-2);
  color: #00151f;
  transform: translateY(-2px);
  box-shadow: 0 14px 32px -12px var(--se-cyan-glow);
}

.btn-se-outline {
  background: transparent;
  color: var(--se-cyan-dark);
  border-color: rgba(34, 184, 230, .4);
}
.btn-se-outline:hover {
  background: var(--se-cyan);
  border-color: var(--se-cyan);
  color: #00151f;
}
.btn-se-outline i { transition: transform var(--se-transition); }
.btn-se-outline:hover i { transform: translateX(4px); }

.btn-se-ghost {
  background: transparent;
  color: var(--se-text-inv);
  border-color: rgba(255, 255, 255, .2);
}
.btn-se-ghost:hover {
  color: var(--se-cyan-2);
  border-color: var(--se-cyan);
}

.btn-se-primary--sm { padding: .65rem 1.35rem; font-size: .85rem; }
.btn-block { width: 100%; }

.icon-btn {
  background: transparent;
  border: none;
  color: var(--se-text-inv);
  font-size: 1.15rem;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  transition: all var(--se-transition);
}
.icon-btn:hover { color: var(--se-cyan); background: rgba(34, 184, 230, .15); }

/* =====================================================================
   HEADER — fond noir (seul élément sombre en haut)
   ===================================================================== */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1031;  
  background: rgba(5, 7, 10, .85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: background var(--se-transition), border-color var(--se-transition), padding var(--se-transition);
  padding: 1.1rem 0;
  top: 34px;
}

.site-header.is-scrolled {
  background: rgba(5, 7, 10, .98);
  border-bottom-color: rgba(255, 255, 255, .08);
  padding: .7rem 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

/* Desktop : grille 3 colonnes → nav réellement centré */
@media (min-width: 992px) {
  .header-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 2rem;
  }

  .header-inner > .brand          { justify-self: start; }
  .header-inner > .main-nav       { justify-self: center; margin-left: 0; }
  .header-inner > .header-actions { justify-self: end; }
}


/* Logo */
.brand {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  color: var(--se-cyan);
  flex-shrink: 0;
}
.brand__mark { display: inline-block; width: 46px; color: var(--se-cyan); }
.brand__mark svg { width: 100%; height: auto; display: block; }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name {
  font-family: var(--se-font-display);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: .04em;
  color: #ffffff;
}
.brand__sub {
  font-family: var(--se-font-display);
  font-weight: 500;
  font-size: .62rem;
  letter-spacing: .5em;
  color: var(--se-cyan);
  margin-top: .2rem;
}

/* Nav */
.main-nav {
  display: flex;
  align-items: center;
  gap: 2.2rem;
}
.nav-link {
  position: relative;
  font-size: .93rem;
  font-weight: 500;
  color: var(--se-text-inv);
  padding: .35rem 0;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: var(--se-cyan);
  border-radius: 2px;
  transition: width var(--se-transition);
}
.nav-link:hover { color: #ffffff; }
.nav-link:hover::after,
.nav-link.is-active::after { width: 100%; }
.nav-link.is-active { color: #ffffff; }

.header-actions { display: flex; align-items: center; gap: .9rem; }

/* Toggle mobile */
.nav-toggle {
  background: transparent;
  border: none;
  width: 42px;
  height: 42px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #ffffff;
  border-radius: 2px;
  transition: all var(--se-transition);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Menu mobile */
.mobile-menu {
  border-top: 1px solid rgba(255, 255, 255, .08);
  margin-top: 1rem;
  background: rgba(5, 7, 10, .98);
}
.mobile-nav { display: flex; flex-direction: column; padding: 1rem 0; }
.mobile-link {
  padding: .9rem .25rem;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--se-text-inv);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.mobile-link:hover { color: var(--se-cyan); padding-left: .6rem; }
.mobile-actions { display: grid; gap: .75rem; padding: 1.2rem 0 1.6rem; }

/* =====================================================================
   HERO — overlay allégé
   ===================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 160px 0 120px;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
 background-image: url('/images/hero.png');
  background-size: cover;
  background-position: center 35%;
  transform: scale(1.05);
  animation: heroZoom 20s ease-in-out infinite alternate;
}
@keyframes heroZoom {
  from { transform: scale(1.05); }
  to   { transform: scale(1.14); }
}

/* Overlay BEAUCOUP plus léger */
.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg,
      rgba(5, 7, 10, .45) 0%,
      rgba(5, 7, 10, .10) 30%,
      rgba(5, 7, 10, .35) 70%,
      rgba(5, 7, 10, .80) 100%),
    linear-gradient(90deg,
      rgba(5, 7, 10, .55) 0%,
      rgba(5, 7, 10, .05) 55%,
      rgba(5, 7, 10, 0) 100%);
}

.hero__inner { z-index: 2; }
.hero__content { max-width: 720px; }

.hero__eyebrow {
  font-family: var(--se-font-display);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--se-cyan-2);
  margin-bottom: 1.4rem;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .6);
}

.hero__title {
  font-family: var(--se-font-display);
  font-weight: 900;
  font-size: 38px;
  line-height: 1.05;
  letter-spacing: -.03em;
  color: #ffffff;
  margin: 0 0 1.5rem;
  text-shadow: 0 4px 30px rgba(0, 0, 0, .55);
}
.hero__title .text-cyan { position: relative; display: inline-block; }

.hero__subtitle {
  font-size: 14px;
  color: rgba(255, 255, 255, .92);
  max-width: 560px;
  margin: 0;
  line-height: 1.7;
  text-shadow: 0 2px 16px rgba(0, 0, 0, .6);
}
/* Sous-titre : version desktop affichée par défaut */
.hero__subtitle--mobile { display: none; }

/* Recherche */
.hero__search-wrap { position: relative; z-index: 3; margin-top: 3.5rem; }

.search-bar {
  display: flex;
  align-items: stretch;
  gap: .5rem;
  padding: .65rem;
  background: rgba(15, 19, 25, .82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(34, 184, 230, .35);
  border-radius: var(--se-radius-lg);
  box-shadow: 0 24px 60px -24px rgba(0, 0, 0, .7), inset 0 1px 0 rgba(255,255,255,.04);
}

.search-field {
  position: relative;
  display: flex;
  align-items: center;
  flex: 0 0 200px;
  background: rgba(5, 7, 10, .55);
  border: 1px solid transparent;
  border-radius: var(--se-radius);
  padding: 0 .9rem;
  transition: all var(--se-transition);
}
.search-field--grow { flex: 1 1 auto; }
.search-field:hover { border-color: rgba(34, 184, 230, .3); }
.search-field:focus-within {
  border-color: var(--se-cyan);
  background: rgba(5, 7, 10, .85);
  box-shadow: 0 0 0 3px rgba(34, 184, 230, .15);
}

.search-icon { color: var(--se-cyan); font-size: 1.05rem; margin-right: .6rem; flex-shrink: 0; }
.search-caret { color: #8a95a5; font-size: .75rem; margin-left: auto; padding-left: .5rem; pointer-events: none; }

.search-input {
  flex: 1;
  width: 100%;
  min-width: 0;
  background: transparent;
  border: none;
  outline: none;
  color: #ffffff;
  font-size: .95rem;
  font-family: inherit;
  padding: .95rem 0;
}
.search-input::placeholder { color: #8a95a5; }
.search-select { appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 0; }
.search-select option { background: #161b23; color: #ffffff; }

.search-submit {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: 0 2rem;
  background: var(--se-cyan);
  color: #00151f;
  border: none;
  border-radius: var(--se-radius);
  font-family: var(--se-font-display);
  font-weight: 700;
  font-size: .95rem;
  cursor: pointer;
  transition: all var(--se-transition);
  flex-shrink: 0;
}
.search-submit:hover { background: var(--se-cyan-2); box-shadow: 0 12px 30px -10px var(--se-cyan-glow); }
.search-submit i { transition: transform var(--se-transition); }
.search-submit:hover i { transform: translateX(4px); }

.search-submit__spinner {
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(0, 21, 31, .35);
  border-top-color: #00151f;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
.search-submit.is-loading .search-submit__label,
.search-submit.is-loading i { display: none; }
.search-submit.is-loading .search-submit__spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

.search-feedback {
  margin: .9rem 0 0;
  font-size: .88rem;
  color: var(--se-cyan-2);
  min-height: 1.2rem;
  opacity: 0;
  transform: translateY(-4px);
  transition: all var(--se-transition);
  text-shadow: 0 2px 10px rgba(0, 0, 0, .6);
}
.search-feedback.is-visible { opacity: 1; transform: translateY(0); }

/* =====================================================================
   AVANTAGES — fond blanc
   ===================================================================== */
.features { background: var(--se-bg); }

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--se-border);
  border-bottom: 1px solid var(--se-border);
}

.feature {
  padding: 3rem 2rem;
  border-right: 1px solid var(--se-border);
  transition: background var(--se-transition);
}
.feature:last-child { border-right: none; }
.feature:hover { background: var(--se-bg-alt); }

.feature__icon {
  display: inline-grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: var(--se-cyan-soft);
  border: 1px solid rgba(34, 184, 230, .25);
  color: var(--se-cyan-dark);
  font-size: 1.5rem;
  margin-bottom: 1.4rem;
  transition: all var(--se-transition);
}
.feature:hover .feature__icon {
  background: var(--se-cyan);
  color: #ffffff;
  border-color: var(--se-cyan);
  transform: translateY(-4px);
  box-shadow: 0 12px 26px -12px var(--se-cyan-glow);
}

.feature__title {
  font-family: var(--se-font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--se-text);
  margin: 0 0 .6rem;
}
.feature__text { font-size: .9rem; color: var(--se-text-muted); margin: 0; line-height: 1.6; }

/* =====================================================================
   ÉVÉNEMENTS — fond gris clair, cartes blanches
   ===================================================================== */
.events { background: var(--se-bg-alt); }

.event-card {
  background: var(--se-surface);
  border: 1px solid var(--se-border);
  border-radius: var(--se-radius-lg);
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: all var(--se-transition);
  box-shadow: 0 1px 2px rgba(10, 13, 18, .04);
}
.event-card:hover {
  transform: translateY(-8px);
  border-color: rgba(34, 184, 230, .4);
  box-shadow:
    0 26px 50px -22px rgba(10, 13, 18, .18),
    0 0 0 1px rgba(34, 184, 230, .15);
}

.event-card__media { position: relative; aspect-ratio: 16 / 11; overflow: hidden; }
.event-card__media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .7s cubic-bezier(.25, .8, .25, 1);
}
.event-card:hover .event-card__media img { transform: scale(1.08); }
.event-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5,7,10,.05) 0%, rgba(5,7,10,.5) 100%);
}

.event-card__date {
  position: absolute;
  top: 14px; left: 14px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  padding: .5rem .65rem;
  background: rgba(5, 7, 10, .85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(34, 184, 230, .45);
  border-radius: 12px;
  line-height: 1;
}
.event-card__date strong {
  font-family: var(--se-font-display);
  font-size: 1.3rem; font-weight: 800;
  color: #ffffff;
}
.event-card__date span {
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--se-cyan);
  margin-top: .25rem;
}

.event-card__body { padding: 1.4rem 1.4rem 1.5rem; display: flex; flex-direction: column; flex: 1; }

.event-card__city {
  font-size: .8rem;
  color: var(--se-cyan-dark);
  margin: 0 0 .5rem;
  display: flex;
  align-items: center;
  gap: .35rem;
  font-weight: 600;
}

.event-card__title {
  font-family: var(--se-font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--se-text);
  margin: 0 0 1rem;
  line-height: 1.3;
}

.event-card__tags {
  list-style: none;
  padding: 0;
  margin: 0 0 1.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
}
.event-card__tags li {
  font-size: .72rem;
  font-weight: 500;
  padding: .28rem .7rem;
  border-radius: 999px;
  background: var(--se-surface-2);
  border: 1px solid var(--se-border);
  color: var(--se-text-muted);
  white-space: nowrap;
}

.event-card__body .btn-se-outline { margin-top: auto; }

/* =====================================================================
   ÉVÉNEMENTS — carrousel
   ===================================================================== */
.events { background: var(--se-bg-alt); overflow: hidden; }

.events-carousel-wrap {
  position: relative;
  padding: 0 60px; /* place pour les flèches */
}

/* Piste scrollable */
.events-carousel {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: .5rem .25rem 1rem;
  align-items: stretch;
}
.events-carousel::-webkit-scrollbar { display: none; }

/* Item — largeur imposée (pas de col-*) */
.events-carousel .event-card {
  flex: 0 0 calc((100% - 3 * 1.25rem) / 4); /* 4 visibles sur desktop */
  scroll-snap-align: start;
}

/* Flèches */
.events-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--se-border-2);
  background: var(--se-bg);
  color: var(--se-text);
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 2;
  transition: all var(--se-transition);
  box-shadow: 0 8px 20px -12px rgba(10, 13, 18, .25);
}
.events-arrow:hover {
  background: var(--se-cyan);
  border-color: var(--se-cyan);
  color: #00151f;
}
.events-arrow--prev { left: 0; }
.events-arrow--next { right: 0; }

.events-arrow:disabled {
  opacity: .35;
  cursor: not-allowed;
}
.events-arrow:disabled:hover {
  background: var(--se-bg);
  border-color: var(--se-border-2);
  color: var(--se-text);
}

/* Dots */
.events-dots {
  display: flex;
  justify-content: center;
  gap: .5rem;
  margin-top: 1.2rem;
}
.events-dots button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: var(--se-border-2);
  cursor: pointer;
  padding: 0;
  transition: all var(--se-transition);
}
.events-dots button.is-active {
  background: var(--se-cyan);
  width: 26px;
  border-radius: 999px;
}

/* ---------- Responsive ---------- */
@media (max-width: 1199.98px) {
  /* Tablette : 3 visibles */
  .events-carousel .event-card { flex: 0 0 calc((100% - 2 * 1.25rem) / 3); }
  .events-carousel-wrap { padding: 0 52px; }
}

@media (max-width: 991.98px) {
  /* Petite tablette : 2 visibles */
  .events-carousel .event-card { flex: 0 0 calc((100% - 1 * 1.25rem) / 2); }
}

@media (max-width: 767.98px) {
  /* Mobile : 1.15 visible → incite au scroll */
  .events-carousel-wrap { padding: 0; }
  .events-carousel { gap: 1rem; padding: .5rem .25rem 1rem; }
  .events-carousel .event-card { flex: 0 0 82%; }

  /* Flèches masquées : on swipe */
  .events-arrow { display: none; }

  .events-dots { margin-top: 1rem; }
}

@media (max-width: 400px) {
  .events-carousel .event-card { flex: 0 0 90%; }
}

/* =====================================================================
   ORGANISATEUR — image conservée, texte sur fond sombre (contraste)
   ===================================================================== */
.organizer {
  position: relative;
  padding: 120px 0;
  overflow: hidden;
  isolation: isolate;
}
.organizer__bg {
  position: absolute;
  inset: 0;
  background-image: url('http://localhost/sportsevent/images/pic_l.png');
  background-size: cover;
  background-position: center;
  z-index: -2;
}
.organizer__overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(5,7,10,.92) 0%, rgba(5,7,10,.7) 50%, rgba(5,7,10,.35) 100%),
    linear-gradient(180deg, rgba(5,7,10,.4), rgba(5,7,10,.4));
}

.organizer__grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 4rem;
  align-items: center;
}

.organizer__title {
  font-family: var(--se-font-display);
  font-weight: 800;
  font-size: clamp(1.8rem, 3.6vw, 2.8rem);
  line-height: 1.15;
  letter-spacing: -.02em;
  color: #ffffff;
  margin: 0 0 1.4rem;
}
.organizer__text { color: rgba(255, 255, 255, .88); max-width: 520px; margin: 0 0 2.2rem; line-height: 1.7; }

.organizer .eyebrow { color: var(--se-cyan-2); }

.organizer-list {
  list-style: none;
  padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 1rem;
}
.organizer-list li {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.05rem 1.3rem;
  background: rgba(255, 255, 255, .06);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--se-radius);
  font-size: .95rem;
  font-weight: 500;
  color: #ffffff;
  transition: all var(--se-transition);
}
.organizer-list li:hover {
  border-color: rgba(34, 184, 230, .55);
  background: rgba(255, 255, 255, .1);
  transform: translateX(6px);
}
.organizer-list i { color: var(--se-cyan-2); font-size: 1.15rem; flex-shrink: 0; }

/* =====================================================================
   PARTENAIRES — carrousel
   ===================================================================== */
.partners { background: var(--se-bg); overflow: hidden; }

.partners-carousel-wrap {
  position: relative;
  padding: 0 60px; /* place pour les flèches sur desktop */
}

/* Piste scrollable */
.partners-carousel {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: .25rem 0;
  /* Léger fade sur les bords */
  mask-image: linear-gradient(90deg,
    transparent 0,
    #000 4%,
    #000 96%,
    transparent 100%);
  -webkit-mask-image: linear-gradient(90deg,
    transparent 0,
    #000 4%,
    #000 96%,
    transparent 100%);
}
.partners-carousel::-webkit-scrollbar { display: none; }

/* Item */
.partner {
  flex: 0 0 calc((100% - 5 * 1rem) / 6); /* 6 visibles sur desktop */
  scroll-snap-align: start;
  min-height: 130px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .8rem;
  padding: 1.5rem 1rem;
  background: var(--se-bg);
  border: 1px solid var(--se-border);
  border-radius: var(--se-radius);
  color: #9aa4b2;
  transition: all var(--se-transition);
}
.partner i {
  font-size: 1.9rem;
  transition: all var(--se-transition);
}
.partner span {
  font-family: var(--se-font-display);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-align: center;
}
.partner:hover {
  border-color: rgba(34, 184, 230, .4);
  color: var(--se-cyan-dark);
  transform: translateY(-4px);
  box-shadow: 0 14px 30px -18px rgba(10, 13, 18, .25);
}
.partner:hover i { transform: scale(1.12); }

/* Flèches */
.partners-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--se-border-2);
  background: var(--se-bg);
  color: var(--se-text);
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 2;
  transition: all var(--se-transition);
  box-shadow: 0 8px 20px -12px rgba(10, 13, 18, .25);
}
.partners-arrow:hover {
  background: var(--se-cyan);
  border-color: var(--se-cyan);
  color: #00151f;
}
.partners-arrow--prev { left: 0; }
.partners-arrow--next { right: 0; }

.partners-arrow:disabled {
  opacity: .35;
  cursor: not-allowed;
}
.partners-arrow:disabled:hover {
  background: var(--se-bg);
  border-color: var(--se-border-2);
  color: var(--se-text);
}

/* Dots */
.partners-dots {
  display: flex;
  justify-content: center;
  gap: .5rem;
  margin-top: 1.6rem;
}
.partners-dots button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: var(--se-border-2);
  cursor: pointer;
  padding: 0;
  transition: all var(--se-transition);
}
.partners-dots button.is-active {
  background: var(--se-cyan);
  width: 26px;
  border-radius: 999px;
}

/* ---------- Responsive ---------- */
@media (max-width: 1199.98px) {
  /* Tablette : 4 visibles */
  .partner { flex: 0 0 calc((100% - 3 * 1rem) / 4); }
  .partners-carousel-wrap { padding: 0 52px; }
}

@media (max-width: 991.98px) {
  /* Petite tablette : 3 visibles */
  .partner { flex: 0 0 calc((100% - 2 * 1rem) / 3); }
}

@media (max-width: 767.98px) {
  /* Mobile : 1.2 visible → incite au scroll */
  .partners-carousel-wrap { padding: 0; }
  .partners-carousel { gap: .8rem; padding: .25rem .25rem; }
  .partner {
    flex: 0 0 78%;          /* ~1 partenaire + aperçu du suivant */
    min-height: 110px;
    padding: 1.2rem .9rem;
  }
  .partner i { font-size: 1.6rem; }
  .partner span { font-size: .72rem; }

  /* Flèches masquées sur mobile : on utilise le scroll tactile */
  .partners-arrow { display: none; }

  .partners-dots { margin-top: 1.2rem; }
}

@media (max-width: 400px) {
  /* Très petit mobile : 1 visible */
  .partner { flex: 0 0 88%; }
}

/* =====================================================================
   FOOTER
   ===================================================================== */

.site-footer {
    position: relative;
    background:
        radial-gradient(ellipse 80% 60% at 50% 0%, rgba(34, 184, 230, .08), transparent 70%),
        linear-gradient(180deg, #05070a 0%, #070a10 100%);
    color: #e7ecf2;
    padding: 5rem 0 0;
    overflow: hidden;
}

.site-footer::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(34, 184, 230, .55), transparent);
}

.footer-glow {
    position: absolute;
    top: -180px;
    left: 50%;
    transform: translateX(-50%);
    width: 720px;
    height: 380px;
    background: radial-gradient(closest-side, rgba(34, 184, 230, .14), transparent 70%);
    pointer-events: none;
    filter: blur(8px);
}

.site-footer .container { position: relative; z-index: 1; }

/* --- Ligne principale --- */
.footer-main {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;   /* ← 4 colonnes */
    gap: 3rem;
    align-items: start;
    padding-bottom: 3.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, .07);
}

/* --- Marque --- */
.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.footer-brand .brand__logo {
    height: 64px;
    filter: drop-shadow(0 4px 16px rgba(34, 184, 230, .25));
}

.footer-brand::after {
    content: "";
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, var(--se-cyan), transparent);
    border-radius: 2px;
    margin-top: .35rem;
}

/* Tagline plus aérée */
.footer-tagline {
    margin: .25rem 0 0;
    font-size: .92rem;
    line-height: 1.7;
    color: #9aa4b2;
    max-width: 320px;
}

/* Titres de colonnes : petit rond cyan devant */
.footer-nav__label,
.footer-social__label {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
}

.footer-nav__label::before,
.footer-social__label::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--se-cyan);
    box-shadow: 0 0 8px var(--se-cyan-glow);
}
.footer-tagline {
    margin: 0;
    font-size: .92rem;
    line-height: 1.7;
    color: #9aa4b2;
    max-width: 320px;
}

/* --- Navigation --- */
.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 1.15rem;
}

.footer-nav__label,
.footer-actions__label,
.footer-social__label {
    font-family: var(--se-font-display);
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .24em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .42);
    margin-bottom: .25rem;
}

.footer-nav__links {
    display: flex;
    flex-direction: column;
    gap: .7rem;
}

.footer-nav__links a {
    position: relative;
    color: #c8d0da;
    font-size: .92rem;
    font-weight: 500;
    width: fit-content;
    padding: .15rem 0;
    transition: color .25s ease, transform .25s ease;
}

.footer-nav__links a::before {
    content: "";
    position: absolute;
    left: -14px;
    top: 50%;
    width: 6px;
    height: 1px;
    background: var(--se-cyan);
    transform: translateY(-50%) scaleX(0);
    transform-origin: left;
    transition: transform .25s ease;
}

.footer-nav__links a:hover {
    color: var(--se-cyan);
    transform: translateX(6px);
}
.footer-nav__links a:hover::before { transform: translateY(-50%) scaleX(1); }

/* --- Actions --- */
.footer-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
}

.footer-actions .btn-se-primary--sm {
    padding: .75rem 1.4rem;
    font-size: .86rem;
    white-space: nowrap;
    box-shadow: 0 10px 24px -12px var(--se-cyan-glow);
}

.footer-actions__auth {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.footer-actions__link {
    color: #c8d0da;
    font-size: .86rem;
    font-weight: 500;
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: color .2s ease;
    text-decoration: none;
}
.footer-actions__link:hover { color: var(--se-cyan); }
.footer-actions__link--logout { color: #ff7a7a; }
.footer-actions__link--logout:hover { color: #ff9999; }

/* --- Réseaux sociaux --- */
.footer-social {
    display: flex;
    flex-direction: column;
    gap: 1.15rem;
}

.social-links { display: flex; gap: .6rem; flex-wrap: wrap; }

.social-links a {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, .1);
    background: rgba(255, 255, 255, .03);
    color: #c8d0da;
    font-size: 1rem;
    transition: all .25s cubic-bezier(.25, .8, .25, 1);
}

.social-links a:hover {
    background: var(--se-cyan);
    border-color: var(--se-cyan);
    color: #00151f;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px -8px var(--se-cyan-glow);
}

/* --- Barre inférieure --- */
.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.75rem 0;
    flex-wrap: wrap;
}

.footer-copy {
    margin: 0;
    font-size: .82rem;
    color: #8a95a5;
    letter-spacing: .01em;
}

.footer-legal {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 1.6rem;
    margin: 0;
    padding: 0;
}

.footer-legal a {
    font-size: .82rem;
    color: #8a95a5;
    transition: color .2s ease;
}
.footer-legal a:hover { color: var(--se-cyan); }

.footer-legal li { position: relative; }
.footer-legal li + li::before {
    content: "";
    position: absolute;
    left: -.85rem;
    top: 50%;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: #3a424d;
    transform: translateY(-50%);
}

/* --- Responsive --- */
@media (max-width: 991.98px) {
    .footer-main {
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem;
    }
    .footer-brand {
        grid-column: 1 / -1;
        align-items: center;
        text-align: center;
    }
    .footer-tagline { max-width: 100%; text-align: center; }
    .footer-brand .brand__logo { margin: 0 auto; }
}

@media (max-width: 767.98px) {
    .site-footer {
        padding: 3.5rem 0 0;
        text-align: center;
    }

    .footer-main {
        grid-template-columns: 1fr;
        gap: 2.25rem;
        padding-bottom: 2.25rem;
        text-align: center;
    }

    /* Toutes les colonnes centrées */
    .footer-brand,
    .footer-nav,
    .footer-actions,
    .footer-social {
        align-items: center;
        text-align: center;
    }

    /* Logo centré + filet cyan sous le logo */
    .footer-brand .brand__logo {
        margin: 0 auto;
        height: 56px;
    }
    .footer-brand::after {
        margin: .5rem auto 0;
    }

    .footer-tagline {
        max-width: 100%;
        text-align: center;
        margin: .25rem auto 0;
    }

    /* Navigation en ligne, centrée */
    .footer-nav__links {
        flex-direction: column;
        align-items: center;
        gap: .65rem;
    }
    .footer-nav__links a::before { display: none; }
    .footer-nav__links a:hover { transform: none; }

    /* Actions centrées */
    .footer-actions .btn-se-primary--sm {
        margin: 0 auto;
    }
    .footer-actions__auth {
        justify-content: center;
        gap: 1rem;
    }

    /* Réseaux sociaux centrés */
    .social-links {
        justify-content: center;
    }

    /* Barre inférieure centrée */
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
        padding: 1.5rem 0;
    }
    .footer-legal {
        justify-content: center;
        flex-wrap: wrap;
        gap: 1rem;
    }
    .footer-legal li + li::before { display: none; }
}

.footer-newsletter {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
    padding: 2rem 2.25rem;
    margin-bottom: 1.5rem;
    background: rgba(255, 255, 255, .03);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 16px;
}
.footer-newsletter__text {
    margin: .35rem 0 0;
    font-size: .85rem;
    color: #8a95a5;
}
.footer-newsletter__form {
    display: flex;
    gap: .5rem;
    background: rgba(5, 7, 10, .6);
    border: 1px solid rgba(34, 184, 230, .25);
    border-radius: 999px;
    padding: .35rem .35rem .35rem 1.1rem;
    min-width: 320px;
}
.footer-newsletter__form input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #fff;
    font-size: .9rem;
}
.footer-newsletter__form input::placeholder { color: #6b7480; }
.footer-newsletter__form button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: var(--se-cyan);
    color: #00151f;
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: all .2s ease;
}
.footer-newsletter__form button:hover {
    background: var(--se-cyan-2);
    transform: translateX(2px);
}
@media (max-width: 767.98px) {
    .footer-newsletter {
        flex-direction: column;
        align-items: stretch;
        padding: 1.5rem;
    }
    .footer-newsletter__form { min-width: 0; }
}
/* =====================================================================
   BACK TO TOP
   ===================================================================== */
.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 48px; height: 48px;
  border-radius: 50%;
  border: none;
  background: var(--se-cyan);
  color: #00151f;
  font-size: 1.15rem;
  display: grid;
  place-items: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: all var(--se-transition);
  z-index: 1040;
  box-shadow: 0 12px 30px -10px var(--se-cyan-glow);
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--se-cyan-2); transform: translateY(-3px); }

/* =====================================================================
   ANIMATIONS AU SCROLL
   ===================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s cubic-bezier(.25, .8, .25, 1),
              transform .7s cubic-bezier(.25, .8, .25, 1);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 1199.98px) {
  .partners-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 991.98px) {
  .section { padding: 80px 0; }
  .hero { padding: 130px 0 90px; min-height: auto; }
  .hero__search-wrap { margin-top: 2.5rem; }

  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .feature { border-bottom: 1px solid var(--se-border); }
  .feature:nth-child(2) { border-right: none; }
  .feature:nth-child(3),
  .feature:nth-child(4) { border-bottom: none; }

  .organizer { padding: 90px 0; }
  .organizer__grid { grid-template-columns: 1fr; gap: 2.5rem; }

  /* Footer : on empile logo / menu / réseaux */
  .footer-main {
    flex-direction: column;
    justify-content: center;
    text-align: center;
    gap: 1.5rem;
  }
  .footer-nav { justify-content: center; gap: 1.5rem 1.8rem; }
}

@media (max-width: 767.98px) {

  /* ---------- HERO optimisé mobile ---------- */
  .hero {
    min-height: auto;
    padding: 100px 0 60px;
  }

  .hero__overlay {
    background:
      linear-gradient(180deg,
        rgba(5, 7, 10, .55) 0%,
        rgba(5, 7, 10, .2) 30%,
        rgba(5, 7, 10, .6) 75%,
        rgba(5, 7, 10, .9) 100%);
  }

  .hero__content {
    max-width: 100%;
    text-align: left;
    margin-top: 61px;
  }

  .hero__eyebrow {
    font-size: .62rem;
    letter-spacing: .16em;
    margin-bottom: .9rem;
  }

  .hero__title {
    font-size: clamp(1.75rem, 7.5vw, 2.3rem);
    line-height: 1.1;
    margin-bottom: 1rem;
    letter-spacing: -.025em;
  }

  /* Afficher uniquement la version mobile du sous-titre */
  .hero__subtitle--desktop { display: none; }
  .hero__subtitle--mobile  { display: block; }

  .hero__subtitle {
    font-size: 14px;
    line-height: 1.55;
    color: rgba(255, 255, 255, .88);
    margin: 0;
  }

  /* Recherche plus compacte */
  .hero__search-wrap { margin-top: 2rem; }

  .search-bar {
    flex-direction: column;
    gap: .5rem;
    padding: .6rem;
    border-radius: var(--se-radius);
  }

  .search-field {
    flex: 1 1 auto;
    width: 100%;
    padding: 0 .8rem;
    border-radius: 10px;
  }

  .search-input {
    padding: .8rem 0;
    font-size: .9rem;
  }

  .search-submit {
    width: 100%;
    padding: .9rem 1.4rem;
    border-radius: 10px;
    font-size: .9rem;
  }

  /* ---------- AVANTAGES : contenu centré ---------- */
  .features-grid { grid-template-columns: 1fr; }

  .feature {
    text-align: center;
    border-right: none;
    border-bottom: 1px solid var(--se-border);
    padding: 2.2rem 1.5rem;
  }
  .feature:last-child { border-bottom: none; }

  .feature__icon { margin-left: auto; margin-right: auto; }
}

@media (max-width: 400px) {
  .brand__sub { letter-spacing: .32em; }
  .partners-grid { grid-template-columns: 1fr; }
}
/* ---------- Features : contenu centré sur tous les écrans ---------- */
.feature {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.feature__icon {
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 1.4rem;
}

.feature__title { text-align: center; }
.feature__text  { text-align: center; max-width: 28ch; }

/* =====================================================================
   AUTOCOMPLETE — Suggestions de recherche
   ===================================================================== */
.search-suggestions {
    position: absolute;
    top: calc(100% + .5rem);
    left: 1rem;
    right: 1rem;
    background: rgba(15, 19, 25, .97);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(34, 184, 230, .3);
    border-radius: 14px;
    box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .7);
    overflow: hidden;
    z-index: 20;
    animation: suggestFade .2s ease;
}

@keyframes suggestFade {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* État vide */
.search-suggestions__empty {
    padding: 1.5rem 1.2rem;
    text-align: center;
    color: #8a95a5;
    font-size: .9rem;
}
.search-suggestions__empty i {
    font-size: 1.5rem;
    display: block;
    margin-bottom: .5rem;
    color: #5a6472;
}

/* Item résultat */
.search-suggestion {
    display: flex;
    align-items: center;
    gap: .9rem;
    padding: .85rem 1.1rem;
    border-bottom: 1px solid rgba(255, 255, 255, .05);
    cursor: pointer;
    transition: background .2s ease;
    text-decoration: none;
    color: inherit;
}
.search-suggestion:last-of-type { border-bottom: none; }

.search-suggestion:hover,
.search-suggestion.is-active {
    background: rgba(34, 184, 230, .12);
}

.search-suggestion__thumb {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    background: #0a0d12;
}
.search-suggestion__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.search-suggestion__body { flex: 1; min-width: 0; }

.search-suggestion__title {
    font-family: var(--se-font-display);
    font-weight: 700;
    font-size: .92rem;
    color: #ffffff;
    margin: 0 0 .2rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-suggestion__meta {
    display: flex;
    align-items: center;
    gap: .6rem;
    font-size: .78rem;
    color: #8a95a5;
    flex-wrap: wrap;
}
.search-suggestion__meta i {
    color: var(--se-cyan);
    font-size: .78rem;
}

.search-suggestion__arrow {
    color: #8a95a5;
    font-size: .9rem;
    flex-shrink: 0;
    transition: transform .2s ease;
}
.search-suggestion:hover .search-suggestion__arrow {
    color: var(--se-cyan);
    transform: translateX(3px);
}

/* Footer "Voir tous les résultats" */
.search-suggestions__all {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: .9rem 1.1rem;
    background: rgba(34, 184, 230, .06);
    border-top: 1px solid rgba(34, 184, 230, .2);
    color: var(--se-cyan);
    font-family: var(--se-font-display);
    font-weight: 600;
    font-size: .85rem;
    text-decoration: none;
    transition: background .2s ease;
}
.search-suggestions__all:hover {
    background: rgba(34, 184, 230, .15);
    color: var(--se-cyan-2);
}
.search-suggestions__all i {
    transition: transform .2s ease;
}
.search-suggestions__all:hover i {
    transform: translateX(3px);
}

/* Loading */
.search-suggestions__loading {
    padding: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .6rem;
    color: #8a95a5;
    font-size: .85rem;
}
.search-suggestions__loading::before {
    content: "";
    width: 14px;
    height: 14px;
    border: 2px solid rgba(34, 184, 230, .3);
    border-top-color: var(--se-cyan);
    border-radius: 50%;
    animation: spin .7s linear infinite;
}

/* Responsive */
@media (max-width: 767.98px) {
    .search-suggestions {
        left: 0;
        right: 0;
        top: 100%;
        margin-top: .4rem;
    }
    .search-suggestion__thumb {
        width: 40px;
        height: 40px;
    }
    .search-suggestion__title {
        font-size: .85rem;
    }
    .search-suggestion__meta {
        font-size: .72rem;
    }
}
/* =====================================================================
   USER MENU — Connecté (header public)
   ===================================================================== */
.user-menu {
    position: relative;
}

.user-menu__trigger {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    padding: .35rem .75rem .35rem .35rem;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 999px;
    color: #ffffff;
    cursor: pointer;
    transition: all var(--se-transition);
    font-family: inherit;
}
.user-menu__trigger:hover,
.user-menu__trigger[aria-expanded="true"] {
    background: rgba(255, 255, 255, .1);
    border-color: rgba(34, 184, 230, .5);
}

.user-menu__avatar {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    background: var(--se-cyan);
    color: #00151f;
    border-radius: 50%;
    font-family: var(--se-font-display);
    font-weight: 800;
    font-size: .78rem;
    letter-spacing: .02em;
    flex-shrink: 0;
}
.user-menu__avatar--admin {
    background: linear-gradient(135deg, #a855f7 0%, #7c3aed 100%);
    color: #ffffff;
}

.user-menu__name {
    font-size: .88rem;
    font-weight: 500;
    color: #ffffff;
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-menu__trigger > i {
    font-size: .7rem;
    color: rgba(255, 255, 255, .6);
    transition: transform var(--se-transition);
}
.user-menu__trigger[aria-expanded="true"] > i {
    transform: rotate(180deg);
}

/* Dropdown */
.user-menu__dropdown {
    position: absolute;
    top: calc(100% + .6rem);
    right: 0;
    min-width: 260px;
    background: #0a0d12;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 14px;
    padding: .5rem;
    box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .7);
    z-index: 1100;
    display: flex;
    flex-direction: column;
    animation: userMenuFade .2s ease;
}
@keyframes userMenuFade {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.user-menu__head {
    padding: .7rem .8rem .6rem;
    display: flex;
    flex-direction: column;
    gap: .15rem;
}
.user-menu__head strong {
    font-family: var(--se-font-display);
    font-weight: 700;
    font-size: .9rem;
    color: #ffffff;
}
.user-menu__head > span {
    font-size: .78rem;
    color: rgba(255, 255, 255, .55);
    word-break: break-all;
}
.user-menu__role {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    margin-top: .4rem;
    padding: .2rem .55rem;
    background: rgba(34, 184, 230, .15);
    border: 1px solid rgba(34, 184, 230, .3);
    border-radius: 999px;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--se-cyan);
    width: fit-content;
}
.user-menu__role i {
    font-size: .65rem;
}

.user-menu__dropdown a {
    display: flex;
    align-items: center;
    gap: .7rem;
    padding: .65rem .8rem;
    border-radius: 8px;
    color: rgba(255, 255, 255, .85);
    font-size: .88rem;
    transition: all var(--se-transition);
    text-decoration: none;
}
.user-menu__dropdown a:hover {
    background: rgba(34, 184, 230, .12);
    color: var(--se-cyan-2);
}
.user-menu__dropdown a i {
    font-size: 1rem;
    color: rgba(255, 255, 255, .5);
    width: 18px;
    text-align: center;
    flex-shrink: 0;
}
.user-menu__dropdown a:hover i {
    color: var(--se-cyan-2);
}

.user-menu__dropdown hr {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, .08);
    margin: .4rem .2rem;
}

/* Logout button */
.user-menu__logout {
    display: flex;
    align-items: center;
    gap: .7rem;
    width: 100%;
    padding: .65rem .8rem;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: #ff6b6b;
    font-family: inherit;
    font-size: .88rem;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
    transition: all var(--se-transition);
}
.user-menu__logout:hover {
    background: rgba(255, 107, 107, .1);
    color: #ff8080;
}
.user-menu__logout i {
    font-size: 1rem;
    color: inherit;
    width: 18px;
    text-align: center;
}

/* Bouton ghost small (pour "Mon espace" / "Administration") */
.btn-se-ghost--sm {
    padding: .55rem 1rem !important;
    font-size: .84rem !important;
    gap: .4rem;
}

/* Head mobile */
.mobile-user-head {
    display: flex;
    align-items: center;
    gap: .8rem;
    padding: 1rem;
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 12px;
    margin-bottom: .8rem;
}
.mobile-user-head > div {
    display: flex;
    flex-direction: column;
    gap: .1rem;
    min-width: 0;
}
.mobile-user-head strong {
    font-family: var(--se-font-display);
    font-weight: 700;
    font-size: .95rem;
    color: #ffffff;
}
.mobile-user-head span {
    font-size: .78rem;
    color: rgba(255, 255, 255, .55);
    word-break: break-all;
}

/* Responsive */
@media (max-width: 991.98px) {
    .user-menu__name { display: none; }
}
/* =====================================================================
   RUBAN DÉFILANT
   ===================================================================== */
.ribbon {
    background: #05070a;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    height: 34px;
    overflow: hidden;
    display: flex;
    align-items: center;
    position: fixed;        /* ← CHANGÉ */
    top: 0;                 /* ← AJOUTÉ */
    left: 0;                /* ← AJOUTÉ */
    right: 0;               /* ← AJOUTÉ */
    z-index: 1032;          /* ← au-dessus du header */
}

.ribbon-track {
    display: flex;
    width: max-content; 
    white-space: nowrap;
    animation: ribbon-scroll 36s linear infinite;
    will-change: transform;
}

.ribbon:hover .ribbon-track {
    animation-play-state: paused;
}

@keyframes ribbon-scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.ribbon-group {
    display: inline-flex;
    align-items: center;
    gap: 1.5rem;
    padding-right: 1.5rem;
    flex-shrink: 0;
}

.ribbon-item {
    font-family: var(--se-font-display);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .75);
    transition: color .2s ease;
}

.ribbon-item:nth-child(4n+1) { color: var(--se-cyan); }

.ribbon-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(34, 184, 230, .5);
    flex-shrink: 0;
}

@media (max-width: 767.98px) {
    .ribbon { height: 30px; }
    .ribbon-item { font-size: .64rem; letter-spacing: .16em; }
    .ribbon-group { gap: 1rem; padding-right: 1rem; }
}