/* =========================================================
   CO COUTOUVRE — feuille de style commune
   Inspirée de la structure d'asse.fr, couleurs du club (vert/noir)
   ========================================================= */

:root {
  --green: #178a43;
  --green-dark: #0b3d22;
  --green-darker: #072716;
  --green-light: #e8f5ec;
  --black: #111111;
  --white: #ffffff;
  --gray-light: #f3f3f1;
  --gray-border: #e3e3e0;
  --gray: #6b6b6b;
  --gray-dark: #333333;
  --font-head: 'Oswald', 'Arial Narrow', Arial, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, Segoe UI, Arial, sans-serif;
  --header-h: 80px;
  --topbar-h: 38px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--gray-dark);
  background: var(--white);
  line-height: 1.5;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin: 0 0 .5em;
  color: var(--black);
}
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}
.btn {
  display: inline-block;
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: .03em;
  font-weight: 600;
  font-size: .85rem;
  padding: 12px 26px;
  border-radius: 2px;
  border: 2px solid var(--green);
  background: var(--green);
  color: var(--white);
  cursor: pointer;
  transition: .15s ease;
}
.btn:hover { background: var(--green-dark); border-color: var(--green-dark); }
.btn.btn-outline { background: transparent; color: var(--white); }
.btn.btn-outline:hover { background: var(--white); color: var(--green-dark); }
.btn.btn-dark { background: var(--black); border-color: var(--black); }
.btn.btn-dark:hover { background: #000; }

.tag {
  display: inline-block;
  background: var(--green);
  color: var(--white);
  font-family: var(--font-head);
  font-size: .72rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 2px;
}
.tag.tag-todo {
  background: #b8860b;
}

/* ---------- placeholder / à-compléter helper ---------- */
.todo {
  position: relative;
  border: 2px dashed #c9a227;
  background: #fffbea;
  padding: 14px 16px;
  border-radius: 6px;
  font-size: .88rem;
  color: #6b5b12;
}
.todo strong { color: #8a6d00; }

/* ---------- topbar ---------- */
.topbar {
  background: var(--black);
  color: #cfd2cf;
  font-size: .78rem;
  height: var(--topbar-h);
}
.topbar .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.topbar-links {
  display: flex;
  gap: 18px;
  align-items: center;
  overflow-x: auto;
}
.topbar-links a {
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: .04em;
  opacity: .85;
}
.topbar-links a:hover { opacity: 1; color: var(--white); }
.topbar-social { display: flex; gap: 10px; }
.topbar-social a {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--green);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  opacity: 1;
}
.topbar-social a svg { width: 14px; height: 14px; }
.topbar-social a:hover { background: #1fa855; }

/* ---------- main header ---------- */
.site-header {
  height: var(--header-h);
  background: var(--white);
  border-bottom: 1px solid var(--gray-border);
  position: sticky;
  top: 0;
  z-index: 200;
}
.site-header .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand img { height: 56px; width: auto; }
.brand-text {
  font-family: var(--font-head);
  line-height: 1.05;
}
.brand-text .club { font-size: 1.05rem; font-weight: 700; letter-spacing: .03em; }
.brand-text .baseline { font-size: .68rem; color: var(--gray); text-transform: uppercase; letter-spacing: .06em; }

.main-nav { display: flex; align-items: center; gap: 2px; }
.main-nav > ul { display: flex; align-items: stretch; }
.main-nav > ul > li { position: relative; }
.main-nav > ul > li > a {
  display: flex;
  align-items: center;
  height: var(--header-h);
  padding: 0 16px;
  font-family: var(--font-head);
  font-size: .86rem;
  text-transform: uppercase;
  letter-spacing: .03em;
  font-weight: 600;
  color: var(--black);
  border-bottom: 3px solid transparent;
}
.main-nav > ul > li > a:hover,
.main-nav > ul > li.active > a {
  color: var(--green);
  border-bottom-color: var(--green);
}
.main-nav .dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: var(--white);
  border: 1px solid var(--gray-border);
  border-top: 3px solid var(--green);
  box-shadow: 0 12px 24px rgba(0,0,0,.08);
  padding: 8px 0;
  display: none;
  z-index: 50;
}
.main-nav > ul > li:hover .dropdown { display: block; }
.main-nav .dropdown a {
  display: block;
  padding: 10px 18px;
  font-size: .86rem;
  color: var(--gray-dark);
}
.main-nav .dropdown a:hover { background: var(--green-light); color: var(--green-dark); }
.nav-shop-link { color: var(--green) !important; }

.burger {
  display: none;
  width: 30px;
  height: 22px;
  position: relative;
  border: none;
  background: none;
  cursor: pointer;
}
.burger span, .burger::before, .burger::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  height: 2px;
  background: var(--black);
}
.burger span { top: 10px; }
.burger::before { top: 0; }
.burger::after { top: 20px; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 460px;
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: center;
  color: var(--white);
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(7,20,12,.92) 0%, rgba(7,20,12,.35) 55%, rgba(7,20,12,.15) 100%);
}
.hero-inner {
  position: relative;
  z-index: 2;
  padding: 40px 0 44px;
}
.hero h1 {
  color: var(--white);
  font-size: clamp(1.6rem, 4vw, 2.7rem);
  max-width: 760px;
  margin: 14px 0 20px;
}
.page-hero {
  min-height: 260px;
}
.page-hero h1 { font-size: clamp(1.5rem, 3.4vw, 2.2rem); margin-bottom: 8px; }
.breadcrumb { font-size: .8rem; opacity: .85; text-transform: uppercase; letter-spacing: .05em; }

/* ---------- section titles ---------- */
.section-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  row-gap: 6px;
  border-bottom: 3px solid var(--black);
  padding-bottom: 10px;
  margin-bottom: 24px;
}
.section-title h2 { white-space: nowrap; }
.section-title .see-all { white-space: nowrap; }
.section-title h2 { margin: 0; font-size: 1.4rem; }
.section-title .see-all { font-family: var(--font-head); font-size: .78rem; text-transform: uppercase; color: var(--green); font-weight: 600; }

section.block { padding: 48px 0; }
section.block.alt { background: var(--gray-light); }
section.block.dark { background: var(--green-darker); color: #dfe8e1; }
section.block.dark h2 { color: var(--white); }
section.block.dark .section-title { border-color: rgba(255,255,255,.25); }

/* ---------- news cards ---------- */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.news-card {
  background: var(--white);
  border: 1px solid var(--gray-border);
  overflow: hidden;
  transition: .15s ease;
  display: flex;
  flex-direction: column;
}
.news-card:hover { box-shadow: 0 14px 28px rgba(0,0,0,.1); transform: translateY(-2px); }
.news-card .thumb { aspect-ratio: 16/10; overflow: hidden; background: var(--green-dark); }
.news-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.news-card .body { padding: 16px 18px 20px; flex: 1; display: flex; flex-direction: column; }
.news-card .cat { font-family: var(--font-head); font-size: .7rem; color: var(--green); font-weight: 700; letter-spacing: .06em; }
.news-card h3 { font-size: 1.02rem; margin: 8px 0; text-transform: none; letter-spacing: 0; }
.news-card .date { margin-top: auto; font-size: .76rem; color: var(--gray); }

/* ---------- calendar strip ---------- */
.carousel { position: relative; }
.carousel-track {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding-bottom: 6px;
  scrollbar-width: none;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.3);
  background: rgba(255,255,255,.06);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  z-index: 5;
  font-size: 1.1rem;
  line-height: 1;
}
.carousel-arrow:hover { background: var(--green); border-color: var(--green); }
.carousel-arrow.prev { left: -6px; }
.carousel-arrow.next { right: -6px; }
.carousel-arrow.on-light {
  border-color: var(--gray-border);
  background: var(--white);
  color: var(--black);
  box-shadow: 0 4px 12px rgba(0,0,0,.12);
}
.carousel-arrow.on-light:hover { background: var(--green); color: var(--white); border-color: var(--green); }
@media (max-width: 560px) { .carousel-arrow { display: none; } }

.match-scroll { display: flex; gap: 18px; overflow-x: auto; padding-bottom: 10px; scrollbar-width: none; }
.match-scroll::-webkit-scrollbar { display: none; }
.match-card {
  color: var(--gray-dark);
  min-width: 250px;
  background: var(--white);
  flex-shrink: 0;
  box-shadow: 0 10px 26px rgba(0,0,0,.14);
  display: flex;
  flex-direction: column;
}
.match-card .date-line {
  font-family: var(--font-head);
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .03em;
  color: var(--white);
  background: var(--green);
  display: flex;
  justify-content: space-between;
  padding: 8px 14px;
}
.match-card .mc-body { padding: 16px 18px; flex: 1; }
.match-card .teams { display: flex; flex-direction: column; gap: 10px; margin-bottom: 10px; }
.match-card .team { display: flex; justify-content: space-between; align-items: center; font-weight: 600; font-size: .9rem; gap: 10px; }
.match-card .team.us { color: var(--green-dark); }
.match-card .team .crest { display: flex; align-items: center; gap: 8px; min-width: 0; }
.match-card .team .crest img { width: 26px; height: 26px; object-fit: contain; flex-shrink: 0; }
.match-card .team .crest span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.match-card .score { font-family: var(--font-head); font-size: 1.05rem; flex-shrink: 0; }
.match-card .comp { font-size: .7rem; color: var(--gray); text-transform: uppercase; letter-spacing: .04em; }
.match-card.placeholder { opacity: .6; }
.match-card.placeholder .date-line { background: var(--gray); }
.match-card .mc-foot {
  display: block;
  background: var(--black);
  color: var(--white);
  text-align: center;
  font-family: var(--font-head);
  font-size: .7rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: 10px;
}
.match-card .mc-foot:hover { background: var(--green-dark); }

/* ---------- fil infos ---------- */
.fil-infos li {
  display: flex;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--gray-border);
  align-items: baseline;
}
.fil-infos .fi-date { font-size: .76rem; color: var(--gray); min-width: 150px; font-family: var(--font-head); text-transform: uppercase; }
.fil-infos .fi-cat { color: var(--green); font-weight: 700; font-size: .76rem; text-transform: uppercase; margin-right: 8px; }
.fil-infos a.fi-link { color: inherit; }
.fil-infos a.fi-link:hover { color: var(--green); }

.fil-infos.on-dark li { border-bottom-color: rgba(255,255,255,.14); align-items: flex-start; flex-direction: column; gap: 4px; }
.fil-infos.on-dark .fi-date { color: #93a696; min-width: 0; }
.fil-infos.on-dark .fi-cat {
  display: inline-block;
  background: var(--green);
  color: var(--white);
  padding: 3px 9px;
  border-radius: 2px;
  margin: 2px 0;
}
.fil-infos.on-dark a.fi-link { color: var(--white); font-weight: 600; }
.fil-infos.on-dark a.fi-link:hover { color: #7CFCA0; }

/* ---------- dark split section (calendrier + fil infos) ---------- */
.split-cols {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 50px;
  align-items: start;
}
.split-cols > div { min-width: 0; }
.carousel { min-width: 0; }
.carousel-track { min-width: 0; }
@media (max-width: 900px) { .split-cols { grid-template-columns: 1fr; } }

/* ---------- teams teaser ---------- */
.teams-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.team-card {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
  color: var(--white);
  display: flex;
  align-items: flex-end;
  background: var(--green-dark) center/cover;
}
.team-card::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,.85), rgba(0,0,0,.05) 60%);
}
.team-card .tc-body { position: relative; z-index: 2; padding: 20px; }
.team-card h3 { color: var(--white); margin-bottom: 4px; }
.team-card p { font-size: .8rem; opacity: .85; margin: 0 0 10px; }

/* ---------- sponsors ---------- */
.sponsor-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 40px;
  padding: 30px 0;
}
.sponsor-strip .sponsor-slot {
  width: 140px;
  height: 70px;
  border: 1px dashed var(--gray-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .7rem;
  color: var(--gray);
  text-align: center;
  padding: 6px;
  font-family: var(--font-head);
  text-transform: uppercase;
}

/* ---------- footer ---------- */
.site-footer {
  background: var(--black);
  color: #b9bdb9;
  padding: 56px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(5, 1fr);
  gap: 28px;
  padding-bottom: 36px;
  border-bottom: 1px solid #2a2a2a;
}
.footer-grid h4 {
  color: var(--white);
  font-size: .82rem;
  letter-spacing: .06em;
  margin-bottom: 14px;
}
.footer-grid li { margin-bottom: 8px; font-size: .84rem; }
.footer-grid a:hover { color: var(--white); }
.footer-brand img { height: 64px; margin-bottom: 14px; }
.footer-brand p { font-size: .82rem; line-height: 1.6; max-width: 280px; }
.footer-social { display: flex; gap: 14px; margin-top: 16px; }
.footer-social a {
  width: 34px; height: 34px;
  background: var(--green);
  color: var(--white);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .85rem;
}
.footer-social a svg { width: 18px; height: 18px; }
.footer-social a:hover { background: #1fa855; }
.footer-bottom {
  padding: 18px 0 26px;
  font-size: .74rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
.footer-bottom a:hover { color: var(--white); }

/* ---------- tabs (used on club/seniors/feminines/formation pages) ---------- */
.tabs-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  border-bottom: 2px solid var(--black);
  margin-bottom: 30px;
}
.tabs-nav button {
  font-family: var(--font-head);
  text-transform: uppercase;
  font-size: .82rem;
  letter-spacing: .03em;
  font-weight: 600;
  background: var(--gray-light);
  border: none;
  padding: 12px 20px;
  cursor: pointer;
  color: var(--gray-dark);
}
.tabs-nav button.active { background: var(--black); color: var(--white); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ---------- roster / staff grid ---------- */
.roster-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 18px;
}
.player-card { text-align: center; }
.player-card .avatar {
  aspect-ratio: 3/4;
  background: var(--gray-light);
  border: 1px solid var(--gray-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray);
  font-family: var(--font-head);
  font-size: 2.4rem;
  margin-bottom: 8px;
  overflow: hidden;
}
.player-card .avatar img { width: 100%; height: 100%; object-fit: cover; }
.player-card .name { font-weight: 700; font-size: .86rem; }
.player-card .role { font-size: .74rem; color: var(--gray); }
.player-card .num {
  font-family: var(--font-head);
  color: var(--green);
  font-size: .8rem;
}

/* ---------- simple table (classement) ---------- */
table.classement { width: 100%; border-collapse: collapse; font-size: .9rem; }
table.classement th, table.classement td { padding: 10px 12px; border-bottom: 1px solid var(--gray-border); text-align: left; }
table.classement th { font-family: var(--font-head); text-transform: uppercase; font-size: .74rem; letter-spacing: .04em; color: var(--gray); }
table.classement td.pos { color: var(--green); font-weight: 700; }

/* ---------- palmares ---------- */
.palmares-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  text-align: center;
}
.palmares-grid .item { border: 1px solid var(--gray-border); padding: 24px 10px; }
.palmares-grid .num { font-family: var(--font-head); font-size: 2.4rem; color: var(--green); line-height: 1; }
.palmares-grid .lbl { font-size: .78rem; text-transform: uppercase; letter-spacing: .03em; margin-top: 8px; color: var(--gray-dark); }

/* ---------- generic content blocks ---------- */
.content-cols { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: start; }
.info-box { background: var(--gray-light); border-left: 4px solid var(--green); padding: 20px 22px; }
.info-box h4 { margin-bottom: 10px; }
.contact-card { display: flex; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--gray-border); }
.contact-card .initials {
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--green-dark); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); flex-shrink: 0;
}

/* ---------- shop ---------- */
.shop-banner {
  background: var(--green-dark);
  color: var(--white);
  padding: 60px 0;
  text-align: center;
}
.shop-banner h2 { color: var(--white); }
.shop-banner p { max-width: 560px; margin: 0 auto 26px; opacity: .9; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.gallery-grid a { overflow: hidden; aspect-ratio: 1/1; }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: .2s; }
.gallery-grid a:hover img { transform: scale(1.06); }

/* ---------- news carousel (home actus) ---------- */
.news-track { display: flex; gap: 22px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
.news-track::-webkit-scrollbar { display: none; }
.news-track .news-card { min-width: 300px; max-width: 300px; flex-shrink: 0; }

/* ---------- article page ---------- */
.article-meta { font-size: .82rem; color: var(--gray); margin-bottom: 22px; display: flex; gap: 14px; flex-wrap: wrap; }
.article-body { max-width: 760px; font-size: 1.02rem; line-height: 1.7; }
.article-body p { margin-bottom: 1.2em; }
.article-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  max-width: 760px;
  margin-top: 10px;
}
.article-gallery img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.article-back { display: inline-block; margin-bottom: 20px; font-family: var(--font-head); font-size: .82rem; text-transform: uppercase; color: var(--green); font-weight: 600; }

/* ---------- photo gallery by year + lightbox ---------- */
.gallery-year { margin-bottom: 40px; }
.gallery-year h3 { border-bottom: 2px solid var(--gray-border); padding-bottom: 8px; margin-bottom: 16px; }
.gallery-year-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}
.gallery-year-grid button.frame {
  padding: 0; border: 2px solid transparent; cursor: pointer; background: none;
  aspect-ratio: 1/1; overflow: hidden;
}
.gallery-year-grid button.frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-year-grid button.frame.active { border-color: var(--green); }

.lightbox-overlay {
  position: fixed; inset: 0; background: rgba(5,15,9,.94);
  z-index: 1000; display: none;
  align-items: center; justify-content: center;
  padding: 30px 16px;
}
.lightbox-overlay.open { display: flex; }
.lightbox-box { max-width: 900px; width: 100%; color: var(--white); text-align: center; }
.lightbox-box .lb-image-wrap { position: relative; }
.lightbox-box img.lb-main { max-width: 100%; max-height: 62vh; object-fit: contain; background: #000; }
.lightbox-box .lb-caption { margin-top: 14px; font-size: .95rem; }
.lightbox-box .lb-date { font-family: var(--font-head); text-transform: uppercase; font-size: .78rem; color: #7CFCA0; margin-bottom: 6px; }
.lightbox-close {
  position: absolute; top: -44px; right: 0;
  color: var(--white); font-size: 1.6rem; background: none; border: none; cursor: pointer;
}
.lb-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.3);
  color: var(--white); width: 42px; height: 42px; border-radius: 50%;
  cursor: pointer; font-size: 1.3rem;
}
.lb-nav:hover { background: var(--green); border-color: var(--green); }
.lb-nav.lb-prev { left: -10px; }
.lb-nav.lb-next { right: -10px; }
.lb-thumbs { display: flex; gap: 8px; overflow-x: auto; margin-top: 18px; padding-bottom: 4px; justify-content: center; }
.lb-thumbs img { width: 60px; height: 60px; object-fit: cover; opacity: .5; cursor: pointer; border: 2px solid transparent; }
.lb-thumbs img.active { opacity: 1; border-color: var(--green); }

/* ---------- jerseys (maillots) ---------- */
.jersey-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.jersey-card { background: var(--gray-light); border: 1px solid var(--gray-border); text-align: center; padding: 18px 12px; }
.jersey-card .thumb { aspect-ratio: 3/4; overflow: hidden; margin-bottom: 10px; background: var(--white); display:flex; align-items:center; justify-content:center; }
.jersey-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.jersey-card .season { font-family: var(--font-head); font-weight: 600; font-size: .85rem; }
.jersey-card .tag-team { font-size: .74rem; color: var(--gray); }

/* ---------- fiche joueur (carte retournable) ---------- */
.flip-card { width: 100%; max-width: 340px; margin: 0 auto; perspective: 1400px; }
.flip-card-inner {
  position: relative;
  width: 100%;
  min-height: 460px;
  transition: transform .6s;
  transform-style: preserve-3d;
}
.flip-card.flipped .flip-card-inner { transform: rotateY(180deg); }
.flip-face {
  position: absolute; inset: 0;
  backface-visibility: hidden;
  border-radius: 10px;
  padding: 26px 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: 0 16px 40px rgba(0,0,0,.25);
}
.flip-front {
  background: linear-gradient(160deg, var(--green) 0%, var(--green-dark) 60%, var(--green-darker) 100%);
  color: var(--white);
}
.flip-back {
  background: var(--white);
  color: var(--gray-dark);
  transform: rotateY(180deg);
  justify-content: flex-start;
}
.flip-photo {
  width: 130px; height: 130px;
  border-radius: 50%;
  background: rgba(255,255,255,.15);
  border: 3px solid rgba(255,255,255,.6);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  margin-bottom: 14px;
}
.flip-photo img { width: 100%; height: 100%; object-fit: cover; }
.flip-photo .ph-number { font-family: var(--font-head); font-size: 2.6rem; color: var(--white); }
.flip-number { font-family: var(--font-head); font-size: 1.6rem; color: #bdf5cf; }
.flip-front h2 { color: var(--white); margin: 6px 0 2px; }
.flip-position { font-family: var(--font-head); text-transform: uppercase; font-size: .8rem; letter-spacing: .04em; opacity: .9; }
.flip-since { font-size: .82rem; opacity: .8; margin-top: 6px; }
.flip-btn { margin-top: auto; }
.flip-back h3 { margin-bottom: 12px; }
.season-select {
  font-family: var(--font-body);
  padding: 8px 12px;
  border: 1px solid var(--gray-border);
  margin-bottom: 16px;
  width: 100%;
}
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; width: 100%; margin-bottom: 16px; }
.stat-box { background: var(--gray-light); border: 1px solid var(--gray-border); padding: 12px 8px; }
.stat-val { font-family: var(--font-head); font-size: 1.3rem; color: var(--green-dark); }
.stat-lbl { font-size: .7rem; text-transform: uppercase; color: var(--gray); letter-spacing: .03em; }
.player-bio { max-width: 340px; margin: 20px auto 0; text-align: center; font-size: .9rem; color: var(--gray); }
.player-card { display: block; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .news-grid, .teams-grid { grid-template-columns: 1fr 1fr; }
  .palmares-grid { grid-template-columns: repeat(2, 1fr); }
  .content-cols { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .gallery-year-grid { grid-template-columns: repeat(4, 1fr); }
  .jersey-grid { grid-template-columns: repeat(2, 1fr); }
  .article-gallery { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .topbar-links { display: none; }
  .burger { display: block; }
  .main-nav {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    bottom: 0;
    background: var(--white);
    display: none;
    overflow-y: auto;
    padding: 10px 0;
  }
  .main-nav.open { display: block; }
  .main-nav > ul { flex-direction: column; }
  .main-nav > ul > li > a { height: auto; padding: 14px 20px; border-bottom: 1px solid var(--gray-border); }
  .main-nav .dropdown { position: static; border: none; box-shadow: none; padding-left: 14px; display: none; }
  .main-nav > ul > li.open .dropdown { display: block; }
  .brand-text .baseline { display: none; }
  .news-grid, .teams-grid { grid-template-columns: 1fr; }
  .palmares-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-year-grid { grid-template-columns: repeat(3, 1fr); }
  .jersey-grid { grid-template-columns: 1fr 1fr; }
  .article-gallery { grid-template-columns: 1fr; }
}

/* ---------- MAQUETTE admin (démonstration) ---------- */
.demo-bar {
  position: sticky; top: 0; z-index: 900;
  background: #7a1f1f; color: #fff;
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px;
  padding: 8px 20px; font-size: .78rem;
}
.demo-tag { background: #ffd54a; color: #4a3600; font-family: var(--font-head); font-weight: 700; padding: 2px 8px; letter-spacing: .05em; }
.demo-note { opacity: .8; }
.demo-actions { margin-left: auto; display: flex; gap: 8px; }
.demo-actions button { background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.35); color: #fff; padding: 5px 10px; cursor: pointer; font-size: .74rem; }
.demo-actions button:hover { background: rgba(255,255,255,.28); }
body.demo-admin-on .site-header { top: 38px; }
.news-card, .player-card, .match-card { position: relative; }
.admin-tools {
  position: absolute; left: 8px; right: 8px; top: 8px; z-index: 10;
  display: flex; flex-wrap: wrap; gap: 4px;
}
.admin-tools button {
  background: rgba(17,17,17,.88); color: #fff; border: none; padding: 5px 8px;
  font-size: .68rem; cursor: pointer; font-family: var(--font-head); text-transform: uppercase; letter-spacing: .03em;
}
.admin-tools button:hover { background: var(--green); }
.admin-tools button.danger:hover { background: #b3261e; }
.is-hidden { opacity: .55; outline: 2px dashed #c9a227; }
.status-badge {
  position: absolute; right: 8px; bottom: 8px; z-index: 10;
  font-size: .64rem; font-family: var(--font-head); text-transform: uppercase; padding: 3px 8px; color: #fff;
}
.status-badge.pending { background: #b8860b; }
.status-badge.hidden { background: #555; }
.admin-add, .admin-edit-here { margin-top: 18px; background: #7a1f1f; border-color: #7a1f1f; }
.admin-add:hover, .admin-edit-here:hover { background: #5b1515; border-color: #5b1515; }
.demo-toast {
  position: fixed; bottom: 24px; left: 50%; transform: translate(-50%, 20px); opacity: 0;
  background: #111; color: #fff; padding: 12px 20px; z-index: 1300; transition: .25s; font-size: .85rem; max-width: 90vw;
}
.demo-toast.show { opacity: 1; transform: translate(-50%, 0); }
.demo-modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.6); z-index: 1200; display: flex; align-items: flex-start; justify-content: center; overflow-y: auto; padding: 30px 12px; }
.demo-modal { background: #fff; width: 100%; max-width: 620px; }
.demo-modal-head { display: flex; justify-content: space-between; align-items: center; background: #7a1f1f; color: #fff; padding: 12px 18px; }
.demo-modal-head h3 { color: #fff; margin: 0; font-size: 1.05rem; }
.dm-close { background: none; border: none; color: #fff; font-size: 1.5rem; cursor: pointer; }
.demo-modal-body { padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.demo-modal-body label { display: flex; flex-direction: column; gap: 4px; font-size: .78rem; font-weight: 600; flex: 1; }
.demo-modal-body input:not([type=checkbox]):not([type=file]), .demo-modal-body select, .demo-modal-body textarea {
  font-family: var(--font-body); font-size: .9rem; padding: 8px 10px; border: 1px solid var(--gray-border); width: 100%;
}
.demo-modal-body small, .dm-help { font-weight: 400; color: var(--gray); font-size: .74rem; }
.dm-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; }
.dm-checks label, .dm-checks-block label { flex-direction: row; align-items: center; gap: 6px; font-weight: 500; }
.dm-checks-block { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .78rem; }
.dm-checks-block > span { width: 100%; font-weight: 600; }
.dm-foot { display: flex; justify-content: flex-end; gap: 10px; margin-top: 6px; }
.dm-users { width: 100%; border-collapse: collapse; font-size: .82rem; }
.dm-users th, .dm-users td { text-align: left; padding: 8px; border-bottom: 1px solid var(--gray-border); }
.dm-link { background: none; border: none; color: #b3261e; cursor: pointer; text-decoration: underline; }
.demo-login { max-width: 520px; margin: 50px auto; text-align: center; }
.demo-login .btn { display: block; width: 100%; margin: 10px 0; padding: 16px; }

/* ---------- effectifs : sections par poste + filtres ---------- */
.roster-filters { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 8px; }
.roster-filters input, .roster-filters select {
  font-family: var(--font-body); font-size: .88rem; padding: 10px 12px; border: 1px solid var(--gray-border); background: var(--white); min-width: 160px;
}
.roster-filters input { flex: 1; min-width: 200px; }
.roster-filters button, .chip-bar button {
  font-family: var(--font-head); text-transform: uppercase; font-size: .76rem; letter-spacing: .03em;
  padding: 10px 14px; border: 1px solid var(--gray-border); background: var(--gray-light); cursor: pointer;
}
.chip-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.chip-bar button.active { background: var(--black); color: var(--white); border-color: var(--black); }
.roster-group { margin-top: 30px; }
.roster-group h3 { border-bottom: 3px solid var(--black); padding-bottom: 8px; margin-bottom: 16px; }
.roster-group h3 span { color: var(--gray); font-size: .8em; font-weight: 400; }
.player-card .name .pn { color: var(--green); font-family: var(--font-head); margin-right: 4px; }

/* ---------- classements individuels ---------- */
.lb-filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.lb-filters select { font-family: var(--font-body); padding: 10px 12px; border: 1px solid var(--gray-border); min-width: 180px; }
.classement a { color: var(--green-dark); font-weight: 600; }
.classement a:hover { text-decoration: underline; }

/* ---------- fiche joueur façon ASSE ---------- */
.pp-nav { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; font-family: var(--font-head); text-transform: uppercase; font-size: .8rem; }
.pp-nav a { color: var(--green); font-weight: 600; margin-right: 16px; }
.pp-head { display: grid; grid-template-columns: 340px 1fr; gap: 40px; align-items: start; margin-bottom: 40px; }
.pp-title { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.pp-num { font-family: var(--font-head); font-size: 3.4rem; line-height: 1; color: var(--green); }
.pp-title h2 { font-size: 2.2rem; margin: 0; line-height: 1; }
.pp-title h2 small { display: block; font-size: .5em; font-weight: 500; color: var(--gray); }
.pp-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.pp-table th { text-align: left; font-family: var(--font-head); text-transform: uppercase; font-size: .74rem; letter-spacing: .04em; color: var(--gray); padding: 10px 12px 10px 0; border-bottom: 1px solid var(--gray-border); width: 40%; }
.pp-table td { padding: 10px 0; border-bottom: 1px solid var(--gray-border); font-weight: 600; }
.flip-back .pp-table { margin-bottom: 14px; }
.flip-back .pp-table th { width: 45%; }
.pp-grid { display: grid; grid-template-columns: 1fr 340px; gap: 40px; align-items: start; }
.pp-main h3, .pp-stats h3 { border-bottom: 3px solid var(--black); padding-bottom: 8px; margin: 28px 0 14px; }
.pp-main h3:first-child, .pp-stats h3:first-child { margin-top: 0; }
.pp-stats { background: var(--gray-light); padding: 22px; }
.pp-stats h4 { margin: 20px 0 10px; }
.pp-stats .stats-grid { margin-bottom: 12px; }
.pp-list { padding-left: 18px; list-style: disc; }
.fifa-note { font-size: .78rem; color: var(--gray); }
.fifa-top { display: flex; align-items: center; justify-content: center; gap: 18px; width: 100%; }
.fifa-ovr { text-align: center; line-height: 1; }
.fifa-ovr b { display: block; font-family: var(--font-head); font-size: 2.6rem; color: #bdf5cf; }
.fifa-ovr span { font-family: var(--font-head); font-size: .8rem; letter-spacing: .06em; opacity: .9; }
.flip-front .flip-photo { margin-bottom: 8px; width: 110px; height: 110px; }
.fifa-attrs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px 14px; width: 100%; margin: 12px 0; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.3); }
.fifa-attr b { display: block; font-family: var(--font-head); font-size: 1.3rem; }
.fifa-attr span { font-size: .68rem; letter-spacing: .05em; opacity: .85; }
@media (max-width: 900px) {
  .pp-head, .pp-grid { grid-template-columns: 1fr; }
  .flip-card { margin: 0 auto; }
}

/* ---------- MAQUETTE : mode édition de page ---------- */
.demo-toolbar {
  position: fixed; bottom: 14px; left: 50%; transform: translateX(-50%); z-index: 1250;
  background: #111; color: #fff; padding: 10px 14px; display: none; flex-wrap: wrap; gap: 8px; align-items: center;
  box-shadow: 0 10px 30px rgba(0,0,0,.4); max-width: 96vw; font-size: .76rem;
}
.demo-toolbar.on { display: flex; }
.demo-toolbar select, .demo-toolbar input[type=number] { background: #222; color: #fff; border: 1px solid #555; padding: 5px; font-size: .78rem; }
.demo-toolbar input[type=color] { width: 30px; height: 26px; border: none; padding: 0; background: none; }
.demo-toolbar button { background: #333; color: #fff; border: 1px solid #555; padding: 6px 10px; cursor: pointer; font-size: .76rem; }
.demo-toolbar button:hover { background: var(--green); }
.demo-toolbar .tb-save { background: var(--green); }
.demo-toolbar .tb-hint { opacity: .7; }
body.demo-editing [data-eid] { outline: 1px dashed rgba(201,162,39,.7); outline-offset: 2px; cursor: text; }
body.demo-editing [data-eid]:focus { outline: 2px solid #c9a227; background: rgba(255,251,234,.15); }
body.demo-editing img[data-eid], body.demo-editing [data-bgid] { cursor: pointer; }
body.demo-editing img[data-eid]:hover { outline: 3px solid #c9a227; }
.bg-edit-btn { position: absolute; top: 12px; right: 12px; z-index: 30; background: #7a1f1f; color: #fff; border: none; padding: 8px 12px; cursor: pointer; font-size: .75rem; }
.photo-manager { border: 1px solid var(--gray-border); padding: 10px; }
.photo-manager h5 { margin: 8px 0 6px; font-family: var(--font-head); text-transform: uppercase; font-size: .74rem; }
.pm-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.pm-item { position: relative; width: 84px; height: 66px; border: 2px solid transparent; cursor: pointer; }
.pm-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pm-item.sel { border-color: var(--green); }
.pm-item.main::after { content: "★ Principale"; position: absolute; left: 0; bottom: 0; right: 0; background: var(--green); color: #fff; font-size: .58rem; text-align: center; }
.pm-item button { position: absolute; top: 2px; right: 2px; background: rgba(0,0,0,.75); color: #fff; border: none; font-size: .7rem; cursor: pointer; width: 20px; height: 20px; padding: 0; }
.pm-item .pm-star { right: auto; left: 2px; }

/* ---------- cadres standardisés (photos recadrables) ---------- */
.frame { position: relative; overflow: hidden; background: #e4e9e5; }
.frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.frame-team { aspect-ratio: 16 / 9; }
.frame-photo { aspect-ratio: 4 / 3; display: block; }
.frame-empty { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--gray); font-family: var(--font-head); font-size: .85rem; text-align: center; padding: 10px; }
.player-card .avatar.frame { aspect-ratio: 3 / 4; }
.player-card .avatar.frame img { width: 100%; height: 100%; }
.flip-photo img { object-fit: cover; }
.hero .hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ---------- saison + photos d'équipe ---------- */
.season-bar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.season-pick { font-family: var(--font-head); text-transform: uppercase; font-size: .82rem; letter-spacing: .04em; display: flex; align-items: center; gap: 10px; }
.season-pick select { font-family: var(--font-body); font-size: .95rem; padding: 10px 14px; border: 2px solid var(--black); background: var(--white); }
.team-frames { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; margin-bottom: 26px; }
.team-frame { margin: 0; }
.team-frame figcaption { padding-top: 10px; display: flex; flex-direction: column; gap: 3px; }
.team-frame figcaption strong { font-family: var(--font-head); text-transform: uppercase; font-size: 1.05rem; }
.team-frame figcaption span { font-size: .84rem; color: var(--green-dark); display: flex; align-items: center; gap: 6px; font-weight: 600; }
.team-frame figcaption em { font-size: .8rem; color: var(--gray); }

/* ---------- icônes + méta d'article ---------- */
.ico { width: 1.15em; height: 1.15em; flex-shrink: 0; vertical-align: -0.2em; color: var(--green); }
.article-meta { gap: 10px 22px; }
.article-meta .meta-item { display: inline-flex; align-items: center; gap: 8px; font-size: .9rem; color: var(--gray-dark); }
.gallery-hint { font-size: .82rem; color: var(--gray); margin: -4px 0 12px; }
.article-gallery .frame-photo img { transition: transform .25s; }
.article-gallery .frame-photo:hover img { transform: scale(1.05); }
.article-gallery .frame-photo { cursor: zoom-in; }
.lb-main { cursor: zoom-in; touch-action: none; user-select: none; -webkit-user-drag: none; transition: transform .12s ease-out; }
.lb-zoom { position: absolute; left: 10px; bottom: 10px; display: flex; gap: 6px; align-items: center; z-index: 3; }
.lb-zoom button { width: 34px; height: 34px; background: rgba(0,0,0,.65); color: #fff; border: 1px solid rgba(255,255,255,.35); font-size: 1.1rem; cursor: pointer; }
.lb-zoom button:hover { background: var(--green); }
.lb-zoom-level { color: #fff; font-size: .72rem; background: rgba(0,0,0,.55); padding: 4px 8px; }
.lightbox-box .lb-image-wrap { overflow: hidden; }

/* ---------- rencontres ---------- */
.match-team-title { margin: 26px 0 12px; }
.match-card .comp { display: flex; align-items: center; gap: 6px; }
.match-card .comp .ico { width: 1em; height: 1em; }
.match-card.is-cup .date-line { background: #1d1d1d; }
.crest-fb { width: 26px; height: 26px; border-radius: 50%; background: #5a605c; color: #fff; font-size: .62rem; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.match-card .team .crest img { border-radius: 0; }
.lb-allbox { display: flex; align-items: center; gap: 6px; font-size: .84rem; }
.lb-season { font-size: .8rem; color: var(--gray); align-self: center; }

/* ---------- MAQUETTE : cadrage photo ---------- */
.fit-editor { display: flex; flex-direction: column; gap: 6px; }
.fit-editor .frame { cursor: grab; touch-action: none; border: 1px solid var(--gray-border); }
.fit-editor .frame:active { cursor: grabbing; }
.fit-editor .frame img { pointer-events: none; user-select: none; }
.fit-editor label { flex-direction: row; align-items: center; gap: 8px; }
.fit-editor input[type=range] { flex: 1; }
.fit-help { font-size: .72rem; color: var(--gray); }
.match-add-slot { margin: 10px 0 4px; }
.match-card > .admin-tools.on-match { position: static; left: auto; right: auto; top: auto; bottom: auto; padding: 8px; background: #fff; border-top: 1px solid var(--gray-light, #e4e4e4); }
.season-admin { display: flex; gap: 8px; flex-wrap: wrap; margin-left: auto; }
.admin-add.sm { margin-top: 0; padding: 8px 12px; font-size: .74rem; }
.admin-edit-here { display: block; width: fit-content; margin: 0 0 16px; }

/* ---------- bureau / encadrement ---------- */
.bureau-section { margin-bottom: 36px; }
.bureau-section.is-empty { display: none; }
.bureau-section h3 { margin: 28px 0 16px; padding-bottom: 8px; border-bottom: 2px solid var(--gray-border); }
.bureau-card .years { font-size: .72rem; color: var(--gray); margin-top: 2px; }
.bureau-card .avatar { font-family: var(--font-head); }
.bureau-card.is-hidden { opacity: .55; }

/* ---------- partenaires (données) ---------- */
.sponsor-strip .sponsor-item { display: flex; align-items: center; justify-content: center; }
.sponsor-strip .sp-logo { width: 160px; height: 90px; display: flex; align-items: center; justify-content: center; filter: grayscale(1); opacity: .8; transition: .2s; }
.sponsor-strip .sponsor-item:hover .sp-logo { filter: none; opacity: 1; }
.sp-logo img { width: 100%; height: 100%; object-fit: contain; display: block; }
.sp-logo.dark { background: #111; }
.sponsor-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.sponsor-grid .sponsor-item { position: relative; background: var(--white); border: 1px solid var(--gray-border); padding: 18px 14px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px; color: inherit; transition: .2s; }
.sponsor-grid a.sponsor-item:hover { border-color: var(--green); transform: translateY(-2px); }
.sponsor-grid .sp-logo { width: 100%; height: auto; aspect-ratio: 16 / 9; }
.sponsor-grid .sp-name { font-family: var(--font-head); font-weight: 600; text-transform: uppercase; font-size: .92rem; }
.sponsor-grid .sp-sector { font-size: .74rem; color: var(--gray); }
.sponsor-item.is-hidden { opacity: .5; }
.product-card .price { font-weight: 700; color: var(--green); margin: 4px 0 0; }
@media (max-width: 960px) { .sponsor-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .sponsor-grid { grid-template-columns: repeat(2, 1fr); } .sponsor-strip { gap: 20px; } .sponsor-strip .sp-logo { width: 112px; height: 63px; } }

/* ---------- classements ---------- */
.table-wrap { overflow-x: auto; }
.classement .tmwrap { display: inline-flex; align-items: center; gap: 10px; }
.classement .mini-crest { width: 26px; height: 26px; object-fit: contain; flex: none; }
.classement tr.us { background: var(--green-light); }
.classement tr.us td { font-weight: 700; }
.standing-title { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 28px 0 12px; }
.standing-block:first-child .standing-title { margin-top: 0; }
.standing-season { font-family: var(--font-body); font-size: .8rem; font-weight: 500; color: var(--gray); }
.empty-note { color: var(--gray); font-size: .9rem; }
@media (max-width: 640px) { .classement .hide-sm { display: none; } }

.gallery-year h3 .count { float: right; font-family: var(--font-body); font-size: .78rem; font-weight: 500; color: var(--gray); }
.gallery-year-grid button.frame { aspect-ratio: 4 / 3; padding: 0; border: 2px solid transparent; cursor: zoom-in; background: var(--gray-light); }
.gallery-year-grid button.frame img { transition: transform .25s; }
.gallery-year-grid button.frame:hover img { transform: scale(1.05); }

/* ---------- en-tête : largeurs intermédiaires ---------- */
@media (max-width: 1240px) { .main-nav > ul > li > a { padding: 0 10px; font-size: .8rem; } }
@media (max-width: 1080px) { .brand-text { display: none; } }

/* ---------- connexion / maintenance ---------- */
body.auth-page { background: linear-gradient(160deg, #0d3b1f 0%, #14532d 55%, #0b2a17 100%); min-height: 100vh; }
.auth-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px 16px; }
.auth-card { background: #fff; width: 100%; max-width: 420px; padding: 36px 32px 28px; text-align: center; box-shadow: 0 30px 60px rgba(0,0,0,.35); }
.auth-logo { display: inline-flex; background: #14532d; padding: 14px 20px; margin-bottom: 18px; }
.auth-logo img { height: 64px; width: auto; }
.auth-logo-img { display: block; margin-left: auto; margin-right: auto; height: 84px; width: auto; background: #14532d; padding: 14px 22px; margin-bottom: 20px; }
.auth-card h1 { font-size: 1.7rem; margin-bottom: 6px; }
.auth-sub { color: var(--gray); font-size: .9rem; margin: 0 0 22px; }
.auth-card form { display: flex; flex-direction: column; gap: 14px; text-align: left; }
.auth-card label { display: flex; flex-direction: column; gap: 5px; font-size: .78rem; font-weight: 600; }
.auth-card input { font-family: var(--font-body); font-size: .95rem; padding: 11px 12px; border: 1px solid var(--gray-border); }
.auth-card input:focus { outline: 2px solid var(--green); border-color: var(--green); }
.auth-card .btn { width: 100%; padding: 14px; margin-top: 4px; }
.auth-error { color: #b3261e; font-size: .84rem; margin: 0; }
.auth-back { display: inline-block; margin-top: 20px; font-size: .82rem; color: var(--gray); }
.auth-back:hover { color: var(--green); }
.maint-card { max-width: 520px; }
.maint-msg { font-size: 1rem; margin: 6px 0 10px; }
.maint-back { font-weight: 700; color: var(--green); }
.maint-actions { margin-top: 18px; }

/* ---------- tableau de bord admin ---------- */
.demo-modal.wide { max-width: 860px; }
.dash-tabs { display: flex; gap: 4px; border-bottom: 2px solid var(--gray-border); margin-bottom: 14px; }
.dash-tabs button { background: none; border: none; padding: 10px 16px; cursor: pointer; font-family: var(--font-head); text-transform: uppercase; font-size: .82rem; color: var(--gray); border-bottom: 3px solid transparent; margin-bottom: -2px; }
.dash-tabs button.active { color: var(--black); border-bottom-color: #7a1f1f; }
.dash-body { display: flex; flex-direction: column; gap: 12px; min-height: 240px; }
.dash-result { font-size: .85rem; margin-top: 8px; }
.switch-row { flex-direction: row !important; align-items: center; gap: 10px !important; font-size: .95rem !important; }
.demo-maint { background: #ffd54a; color: #4a3600; font-family: var(--font-head); font-weight: 700; padding: 2px 8px; text-transform: uppercase; letter-spacing: .04em; }

.gcell { position: relative; }
.gcell button.frame { width: 100%; display: block; }
.sponsor-item { position: relative; }
.article-match { display: flex; align-items: center; gap: 14px; background: var(--gray-light); border-left: 4px solid var(--green); padding: 12px 16px; margin: 0 0 22px; color: inherit; }
.article-match img { width: 38px; height: 38px; object-fit: contain; }
.article-match span { display: flex; flex-direction: column; flex: 1; }
.article-match small { font-size: .72rem; color: var(--gray); text-transform: uppercase; letter-spacing: .04em; }
.article-match strong { font-family: var(--font-head); font-size: 1.05rem; }
.article-match em { font-style: normal; font-size: .78rem; color: var(--green); }
.article-match:hover { background: var(--green-light); }
.admin-tools.on-gallery { left: 4px; right: 4px; top: 4px; }
.admin-tools.on-gallery button { padding: 3px 6px; font-size: .6rem; }
.admin-add.sm { margin-top: 8px; padding: 8px 14px; font-size: .74rem; }

/* ---------- albums photo ---------- */
.album-tile button.frame { position: relative; }
.album-tile button.frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.78) 0%, rgba(0,0,0,.05) 55%); pointer-events: none; }
.album-label { position: absolute; left: 12px; right: 12px; bottom: 10px; z-index: 2; color: #fff; text-align: left; display: flex; flex-direction: column; gap: 2px; }
.album-label strong { font-family: var(--font-head); font-size: .98rem; line-height: 1.15; text-transform: uppercase; }
.album-label small { font-size: .72rem; opacity: .85; }
.album-count { position: absolute; top: 10px; right: 10px; z-index: 2; background: var(--green); color: #fff; font-family: var(--font-head); font-size: .7rem; padding: 3px 9px; text-transform: uppercase; letter-spacing: .04em; }
.album-head h3 { border-bottom: 2px solid var(--gray-border); padding-bottom: 8px; margin: 0 0 16px; }
.album-head h3 .count { float: right; font-family: var(--font-body); font-size: .8rem; font-weight: 500; color: var(--gray); }
.album-back { background: none; border: none; cursor: pointer; font-family: var(--font-head); text-transform: uppercase; font-size: .82rem; color: var(--green); padding: 0; margin-bottom: 12px; }
.album-back:hover { text-decoration: underline; }

/* ---------- catégories ---------- */
.cat-sub { margin: 30px 0 12px; font-size: 1.05rem; }
.cat-admin { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; background: #f6efe0; border: 1px solid #e3d3a8; padding: 8px 12px; margin-bottom: 20px; font-size: .8rem; }
.cat-admin span { flex: 1; min-width: 200px; }
.cat-admin button { background: #111; color: #fff; border: none; padding: 5px 10px; font-family: var(--font-head); text-transform: uppercase; font-size: .68rem; cursor: pointer; }
.cat-admin button:hover { background: var(--green); }
.cat-admin button.danger:hover { background: #b3261e; }

.main-nav .is-page-hidden, .site-footer .is-page-hidden, .tabs-nav .is-page-hidden { opacity: .5; outline: 1px dashed #c9a227; }

.pg-table tr.off td { color: var(--gray); }
.pg-badge { font-size: .68rem; font-family: var(--font-head); text-transform: uppercase; padding: 2px 8px; color: #fff; }
.pg-badge.on { background: var(--green); }
.pg-badge.off { background: #777; }

/* ---------- formulaires admin larges ---------- */
.demo-modal.wide { max-width: 980px; }
.dm-section { margin: 14px 0 4px; padding-bottom: 5px; border-bottom: 1px solid var(--gray-border); font-family: var(--font-head); text-transform: uppercase; font-size: .82rem; letter-spacing: .05em; color: #7a1f1f; }
.dm-section:first-child { margin-top: 0; }
.dm-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; align-items: end; }
.dm-grid.six { grid-template-columns: repeat(6, 1fr); }
.dm-grid .span2 { grid-column: span 2; }
.sr-scroll { overflow-x: auto; }
.sr-table th { font-size: .68rem; white-space: nowrap; }
.sr-table input { width: 64px; padding: 5px 6px !important; }
.sr-table input.sr-season { width: 92px; }
.sr-table select { width: auto !important; min-width: 100px; padding: 5px 6px !important; }
.sr-foot { display: flex; align-items: center; gap: 16px; margin-top: 8px; flex-wrap: wrap; }
.sr-years { font-size: .85rem; }
@media (max-width: 700px) { .dm-grid.six { grid-template-columns: repeat(3, 1fr); } .dm-grid .span2 { grid-column: span 1; } }

/* ---------- histoire, maillots, palmarès ---------- */
.hist-block { margin-bottom: 44px; }
.jersey-card .jc-desc { font-size: .8rem; color: var(--gray); margin: 6px 0 0; }
.timeline { position: relative; margin-left: 8px; padding-left: 26px; border-left: 3px solid var(--green); }
.tl-item { position: relative; display: grid; grid-template-columns: 90px 1fr; gap: 16px; padding: 0 0 30px; }
.tl-item::before { content: ""; position: absolute; left: -35px; top: 8px; width: 15px; height: 15px; border-radius: 50%; background: var(--white); border: 3px solid var(--green); }
.tl-year { font-family: var(--font-head); font-size: 1.7rem; font-weight: 700; color: var(--green); line-height: 1.1; }
.tl-body h4 { margin: 0 0 6px; font-size: 1.05rem; }
.tl-body p { margin: 0 0 12px; max-width: 640px; }
.tl-photo { display: block; max-width: 420px; aspect-ratio: 16 / 10; cursor: zoom-in; overflow: hidden; }
.tl-photo img { width: 100%; height: 100%; object-fit: cover; }
.trophy-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 20px; margin-bottom: 40px; }
.trophy-card { position: relative; background: var(--gray-light); border: 1px solid var(--gray-border); text-align: center; padding: 24px 16px 20px; }
.trophy-card .tc-icon { height: 110px; width: auto; max-width: 100%; object-fit: contain; margin-bottom: 8px; }
.trophy-card .tc-count { font-family: var(--font-head); font-size: 2.6rem; font-weight: 700; color: var(--green); line-height: 1; }
.trophy-card h4 { margin: 6px 0 10px; text-transform: uppercase; }
.trophy-card.none { opacity: .6; }
.tc-wins { list-style: none; padding: 0; margin: 0; font-size: .82rem; }
.tc-wins li { padding: 3px 0; border-top: 1px solid var(--gray-border); }
.tc-wins em { color: var(--gray); font-style: normal; }
.pal-sub { margin-top: 10px; }
@media (max-width: 640px) { .tl-item { grid-template-columns: 1fr; gap: 4px; } }

.dm-grid .full { grid-column: 1 / -1; }
.jersey-card, .tl-item { position: relative; }
.tl-item .admin-tools { left: auto; right: 0; top: 0; }
.trophy-card .admin-tools { top: 6px; }

/* ---------- rubriques de la galerie (administration) ---------- */
.sec-tools { margin-left: 14px; display: inline-flex; gap: 4px; vertical-align: middle; }
.sec-tools button { background: #111; color: #fff; border: none; padding: 3px 8px; font-family: var(--font-head); text-transform: uppercase; font-size: .62rem; cursor: pointer; }
.sec-tools button:hover { background: var(--green); }
.sec-tools button.danger:hover { background: #b3261e; }
.sec-bar { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; flex-wrap: wrap; font-size: .8rem; color: var(--gray); }
.gallery-year.drop-target { outline: 3px dashed var(--green); outline-offset: 6px; background: var(--green-light); }
.gcell.dragging { opacity: .35; }
.gcell[draggable=true] { cursor: grab; }
.gallery-year-grid:empty { min-height: 60px; border: 1px dashed var(--gray-border); }

.nc-row { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.nc-row input { flex: 1; }
.nc-n { font-size: .74rem; color: var(--gray); min-width: 80px; }

.logo-fit { display: flex; flex-direction: column; gap: 8px; }
.lf-frame { width: 240px; height: 120px; border: 1px solid var(--gray-border); overflow: hidden; cursor: grab; touch-action: none; position: relative; }
.lf-frame img { max-width: 100%; max-height: 100%; object-fit: contain; pointer-events: none; user-select: none; }
.sponsor-strip .sp-logo, .sponsor-grid .sp-logo { overflow: hidden; }

.contact-groups { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.contact-group h2 { margin-bottom: 14px; }
.contact-card { position: relative; }
.contact-card .initials { display: flex; align-items: center; justify-content: center; }
.contact-card .initials .ico { width: 20px; height: 20px; }
.cc-label { font-weight: 700; }
.cc-text { font-size: .9rem; }
.cc-text a { color: var(--green-dark); }
.cg-admin { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.contact-card .admin-tools { left: auto; right: 0; top: 6px; }
@media (max-width: 800px) { .contact-groups { grid-template-columns: 1fr; } }

/* ---------- logo Facebook ---------- */
.topbar-social a:first-child, .footer-social a { background: none !important; width: auto; height: auto; border-radius: 0; }
.topbar-social a .fb-logo { width: 26px; height: 26px; }
.footer-social a .fb-logo { width: 38px; height: 38px; }
.topbar-social a:first-child:hover .fb-logo, .footer-social a:hover .fb-logo { filter: brightness(1.15); }

/* ---------- visionneuse de l'accueil ---------- */
.home-slides { margin-top: 30px; }
.slideshow { position: relative; }
.ss-frame { position: relative; overflow: hidden; aspect-ratio: 16 / 9; background: #06140b; }
.ss-track { display: flex; height: 100%; transition: transform .6s ease; }
.ss-slide { position: relative; flex: 0 0 100%; height: 100%; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.ss-bg { position: absolute; inset: -30px; background-size: cover; background-position: center; filter: blur(26px) brightness(.55); }
.ss-slide img { position: relative; max-width: 100%; max-height: 100%; object-fit: contain; z-index: 1; }
.ss-cap { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 26px 18px 12px; color: #fff; font-family: var(--font-head); text-transform: uppercase; font-size: .95rem; background: linear-gradient(to top, rgba(0,0,0,.8), transparent); }
.ss-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 38px; height: 38px; border: none; border-radius: 50%; background: rgba(0,0,0,.55); color: #fff; font-size: 1.4rem; cursor: pointer; }
.ss-arrow:hover { background: var(--green); }
.ss-arrow.prev { left: 10px; } .ss-arrow.next { right: 10px; }
.ss-dots { display: flex; justify-content: center; gap: 8px; margin-top: 12px; }
.ss-dots button { width: 9px; height: 9px; border-radius: 50%; border: none; background: rgba(255,255,255,.35); cursor: pointer; padding: 0; }
.ss-dots button.active { background: #7CFCA0; }

.hs-row { display: grid; grid-template-columns: 110px 1fr auto; gap: 12px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--gray-border); }
.hs-row img { width: 110px; height: 70px; object-fit: cover; }
.hs-fields { display: flex; flex-direction: column; gap: 5px; }
.hs-btns { display: flex; flex-direction: column; gap: 3px; align-items: flex-end; }
.demo-modal-body .sr-table input { width: 66px !important; }
.demo-modal-body .sr-table input.sr-season { width: 104px !important; }
.demo-modal-body .sr-table select { width: auto !important; }

/* ---------- logo Facebook ---------- */
.topbar-social a .fb-logo { width: 22px; height: 22px; display: block; }
.footer-social a .fb-logo { width: 32px; height: 32px; display: block; }

/* ---------- pied de page : colonnes souples (une colonne masquée ne laisse pas de vide) ---------- */
.footer-grid { display: flex !important; flex-wrap: wrap; gap: 28px 44px; }
.footer-grid > .footer-brand { flex: 1 1 260px; max-width: 320px; grid-column: auto; }
.footer-grid > div:not(.footer-brand) { flex: 1 1 120px; }

/* ---------- résultats en couleur et forme récente ---------- */
.match-card .score.res-win { color: #1a9c4b; }
.match-card .score.res-draw { color: #e08a00; }
.match-card .score.res-loss { color: #d0342c; }
.match-card.res-win { border-bottom: 3px solid #1a9c4b; }
.match-card.res-draw { border-bottom: 3px solid #e08a00; }
.match-card.res-loss { border-bottom: 3px solid #d0342c; }
.form-strip { display: flex; align-items: center; gap: 6px; margin: -4px 0 12px; }
.fs-label { font-family: var(--font-head); text-transform: uppercase; font-size: .72rem; letter-spacing: .05em; color: var(--gray); margin-right: 4px; }
.fs-dot { width: 24px; height: 24px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-style: normal; font-family: var(--font-head); font-weight: 700; font-size: .72rem; color: #fff; cursor: default; }
.fs-dot.win { background: #1a9c4b; } .fs-dot.draw { background: #e08a00; } .fs-dot.loss { background: #d0342c; }

.standing-team + .standing-team { margin-top: 10px; }
.standing-block + .standing-block { margin-top: 30px; }
.st-badge { font-style: normal; font-family: var(--font-head); font-size: .66rem; text-transform: uppercase; background: #c9a227; color: #fff; padding: 2px 8px; margin-left: 8px; vertical-align: middle; letter-spacing: .05em; }
.standing-upd { display: block; font-size: .72rem; color: var(--gray); text-align: right; }
.standing-team .cg-admin, .standing-team > .admin-add { margin-top: 10px; margin-right: 8px; }

.match-card.is-event .event-title { display: flex; align-items: center; gap: 10px; font-family: var(--font-head); font-size: 1.05rem; padding: 6px 0 4px; }
.match-card.is-event .event-title .ico { color: #c9a227; width: 22px; height: 22px; flex: none; }
.match-card.is-friendly .comp { color: var(--gray); }

/* ---------- contacts : pastilles d'icônes ---------- */
.contact-card { padding: 16px 0; gap: 16px; }
.contact-card .initials { width: 48px; height: 48px; background: var(--green-light); color: var(--green-dark); border: 1px solid rgba(20,83,45,.15); transition: .2s; overflow: hidden; }
.contact-card .initials .ico { width: 22px; height: 22px; stroke-width: 1.75; }
.contact-card:hover .initials { background: var(--green-dark); color: #fff; border-color: var(--green-dark); }
.contact-card .initials.custom { background: #fff; }
.contact-card .initials.custom img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }

/* ---------- palmarès : illustration dans un cadre fixe ---------- */
.trophy-card .tc-iconbox { width: 100%; max-width: 160px; height: 120px; margin: 0 auto 8px; overflow: hidden; }
.trophy-card .tc-icon { width: 100%; height: 100%; max-width: none; object-fit: contain; margin: 0; display: block; }
.tl-year small { display: block; font-family: var(--font-body); font-size: .8rem; font-weight: 500; color: var(--gray); margin-top: 2px; }

.lf-frame { position: relative; max-width: 100%; }
.lf-axis { position: absolute; pointer-events: none; z-index: 3; }
.lf-axis.h { left: 0; right: 0; top: 50%; border-top: 1px dashed rgba(200,0,0,.55); }
.lf-axis.v { top: 0; bottom: 0; left: 50%; border-left: 1px dashed rgba(200,0,0,.55); }
.lf-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-size: .8rem; }
.lf-controls label { flex-direction: row !important; align-items: center; gap: 8px !important; }
.tr-choices { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0; }
.tr-ico { width: 74px; height: 74px; padding: 6px; background: #fff; border: 2px solid var(--gray-border); cursor: pointer; }
.tr-ico.on { border-color: var(--green); }
.tr-ico img { width: 100%; height: 100%; object-fit: contain; }
.ip-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; margin: 8px 0; }
.ip-btn { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 4px; background: #fff; border: 2px solid var(--gray-border); cursor: pointer; color: var(--green-dark); }
.ip-btn span .ico { width: 24px; height: 24px; stroke-width: 1.75; }
.ip-btn em { font-style: normal; font-size: .68rem; color: #333; }
.ip-btn.on { border-color: var(--green); background: var(--green-light); }
.ip-cur { display: flex; align-items: center; gap: 10px; margin-top: 4px; }

.pp-results { display: flex; flex-direction: column; gap: 2px; margin: 4px 0 8px; }
.pp-results button { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 12px; background: #f6f6f6; border: 1px solid var(--gray-border); cursor: pointer; text-align: left; font-family: var(--font-body); font-size: .86rem; }
.pp-results button:hover { background: var(--green-light); border-color: var(--green); }
.pp-results em { font-style: normal; font-size: .72rem; color: var(--gray); }
.pp-none { font-size: .8rem; color: var(--gray); padding: 4px 2px; }
.tag-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.tag-chip { display: inline-flex; align-items: center; gap: 6px; background: var(--green-light); border: 1px solid var(--green); padding: 4px 4px 4px 10px; font-size: .82rem; }
.tag-chip button { background: none; border: none; cursor: pointer; font-size: 1.1rem; line-height: 1; color: #555; padding: 0 6px; }
.tag-chip button:hover { color: #b3261e; }

/* ---------- carte FIFA : poste, drapeau, club ---------- */
.fifa-top { gap: 22px; }
.fifa-ovr { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 52px; }
.fifa-ovr .fifa-pos { font-size: 1rem; letter-spacing: .08em; font-weight: 700; }
.fifa-sep { display: block; width: 34px; height: 1px; background: rgba(255,255,255,.45); margin: 6px 0 4px; }
.fifa-flag { width: 34px; height: auto; border: 1px solid rgba(255,255,255,.6); margin-bottom: 8px; display: block; }
.fifa-club { width: 34px; height: 34px; object-fit: contain; display: block; }
.flip-back { padding: 0 !important; overflow: hidden; background: var(--green-dark); }
.flip-back > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.flip-back .fb-crest { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: linear-gradient(160deg, var(--green) 0%, var(--green-darker) 100%); }
.flip-back .fb-crest img { width: 62%; opacity: .9; }
.flip-back .flip-btn { position: absolute; left: 22px; right: 22px; bottom: 20px; z-index: 2; }

/* ---------- fiche joueur à droite (façon FIFA) ---------- */
.fp { background: #e9edf0; }
.fp-head { background: #3b4657; color: #fff; font-family: var(--font-head); text-transform: uppercase; letter-spacing: .05em; font-size: 1.1rem; padding: 14px 20px; }
.fp-tabs { display: flex; background: #2c3543; }
.fp-tabs button { flex: 1; background: none; border: none; color: #b8c0cc; padding: 11px 6px; cursor: pointer; font-family: var(--font-head); text-transform: uppercase; font-size: .78rem; letter-spacing: .05em; border-bottom: 3px solid transparent; }
.fp-tabs button.active { color: #fff; border-bottom-color: #f2c94c; }
.fp-panel { display: none; }
.fp-panel.active { display: block; }
.fp-row { display: flex; flex-direction: column; gap: 2px; padding: 11px 20px; }
.fp-row:nth-child(odd) { background: #e3e7ea; }
.fp-row:nth-child(even) { background: #d5dbe0; }
.fp-row span { font-size: .8rem; color: #667180; }
.fp-row strong { font-size: 1.02rem; color: #111; }
.fp-abbr { font-style: normal; background: #3b4657; color: #fff; padding: 1px 7px; font-size: .74rem; margin-left: 6px; }
.fp .flag.inl { width: 24px; height: auto; vertical-align: -4px; margin-right: 4px; border: 1px solid #b6bdc6; }
.fp .flag.inl.club { height: 22px; width: 22px; object-fit: contain; border: none; }
.stars { color: #f2b705; letter-spacing: 2px; font-size: 1.05rem; }
.stars i { color: #a9b0b8; font-style: normal; }
.fp-bar { display: grid; grid-template-columns: 110px 1fr 34px; align-items: center; gap: 10px; padding: 10px 20px; }
.fp-bar:nth-child(odd) { background: #e3e7ea; } .fp-bar:nth-child(even) { background: #d5dbe0; }
.fp-bar span { font-size: .85rem; color: #333; }
.fp-bar div { background: #b9c0c8; height: 10px; }
.fp-bar i { display: block; height: 100%; background: linear-gradient(90deg, #1a9c4b, #7cd992); }
.fp-bar b { text-align: right; font-family: var(--font-head); }
.pp-stats .mention-list { list-style: none; padding: 0; margin: 0; }
.pp-stats .mention-list li { border-bottom: 1px solid var(--gray-border); }
.pp-stats .mention-list a { display: flex; flex-direction: column; padding: 8px 0; color: inherit; }
.pp-stats .mention-list a:hover span { color: var(--green); }
.pp-stats .mention-list small { color: var(--gray); }

/* ---------- fiche joueur : couleurs du club (vert, noir, blanc) ---------- */
.fp { background: var(--white); border: 1px solid var(--gray-border); }
.fp-head { background: var(--black); color: var(--white); border-bottom: 3px solid var(--green); }
.fp-tabs { background: var(--gray-light); border-bottom: 1px solid var(--gray-border); }
.fp-tabs button { color: var(--gray); }
.fp-tabs button.active { color: var(--black); border-bottom-color: var(--green); background: var(--white); }
.fp-row:nth-child(odd), .fp-bar:nth-child(odd) { background: var(--white); }
.fp-row:nth-child(even), .fp-bar:nth-child(even) { background: var(--gray-light); }
.fp-row span, .fp-bar span { color: var(--gray); }
.fp-row strong { color: var(--black); }
.fp-abbr { background: var(--green); }
.fp .flag.inl { border-color: var(--gray-border); }
.stars { color: var(--green); }
.stars i { color: #cfd6d1; }
.fp-bar div { background: #e3e8e4; }
.fp-bar i { background: var(--green); }

/* ---------- fiche joueur : refonte (bandeau + fiche + statistiques) ---------- */
.pp-hero { position: relative; overflow: hidden; color: var(--white); min-height: 200px;
  background: radial-gradient(120% 140% at 85% 0%, #1b6b3c 0%, #0f3d22 45%, #08210f 100%); }
.pp-hero::before { content: ""; position: absolute; inset: 0; opacity: .07;
  background: repeating-linear-gradient(115deg, #fff 0 2px, transparent 2px 26px); pointer-events: none; }
.pp-hero-in { position: relative; padding-top: 22px; padding-bottom: 48px; }
.pp-crumb { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; font-family: var(--font-head); text-transform: uppercase; font-size: .78rem; letter-spacing: .04em; }
.pp-crumb a { color: #a8f0c1; margin-right: 18px; }
.pp-crumb a:hover { color: #fff; }
.pp-hero-grid { display: grid; grid-template-columns: 330px 1fr; gap: 56px; align-items: center; }
.pp-hero .flip-card { max-width: 330px; }
.pp-id { position: relative; min-width: 0; }
.pp-numbg { position: absolute; right: 0; top: -30px; font-family: var(--font-head); font-weight: 700; font-size: clamp(9rem, 20vw, 17rem); line-height: 1; color: transparent; -webkit-text-stroke: 2px rgba(255,255,255,.14); pointer-events: none; user-select: none; }
.pp-idtext { position: relative; }
.pp-first { display: block; font-family: var(--font-head); font-size: 1.6rem; text-transform: uppercase; letter-spacing: .06em; color: #a8f0c1; }
.pp-last { color: var(--white); font-size: clamp(2.6rem, 6.5vw, 5rem); line-height: .95; margin: 2px 0 10px; word-break: break-word; }
.pp-nick { display: block; font-size: 1.05rem; opacity: .8; margin-bottom: 12px; font-style: italic; }
.pp-badges { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 26px; }
.pb { display: inline-flex; align-items: center; gap: 7px; padding: 6px 14px; border: 1px solid rgba(255,255,255,.35); border-radius: 30px; font-size: .82rem; letter-spacing: .02em; background: rgba(0,0,0,.18); }
.pb.pos { background: var(--green); border-color: var(--green); font-weight: 600; }
.pb .flag { width: 20px; height: auto; border: 1px solid rgba(255,255,255,.5); }
.pp-quick { display: flex; flex-wrap: wrap; gap: 0; border-top: 1px solid rgba(255,255,255,.22); max-width: 640px; }
.pp-quick > div { flex: 1 1 130px; padding: 14px 18px 0 0; }
.pp-quick span { display: block; font-size: .7rem; text-transform: uppercase; letter-spacing: .09em; opacity: .7; }
.pp-quick strong { display: block; font-family: var(--font-head); font-size: 1.25rem; margin-top: 3px; font-weight: 600; }

/* fiche : profil / détails / attributs */
.fp { background: var(--white); border: 1px solid var(--gray-border); margin-bottom: 34px; }
.fp-head { display: none; }
.fp-tabs { background: var(--white); border-bottom: 2px solid var(--gray-border); display: flex; }
.fp-tabs button { flex: 0 0 auto; padding: 14px 26px; font-size: .84rem; color: var(--gray); border-bottom: 3px solid transparent; margin-bottom: -2px; }
.fp-tabs button.active { color: var(--black); border-bottom-color: var(--green); background: none; }
.fp-panel { padding: 6px 0; }
.fp-row { display: grid; grid-template-columns: 210px 1fr; gap: 14px; align-items: center; padding: 13px 24px; border-bottom: 1px solid var(--gray-border); background: none !important; }
.fp-row:last-child { border-bottom: none; }
.fp-row span { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--gray); }
.fp-row strong { font-size: 1.02rem; font-weight: 600; }
.fp-bar { padding: 12px 24px; background: none !important; border-bottom: 1px solid var(--gray-border); }
.pp-main h3 { border-bottom: 3px solid var(--black); padding-bottom: 8px; margin: 32px 0 14px; }
.pp-stats { border-top: 4px solid var(--green); }
@media (max-width: 900px) {
  .pp-hero-grid { grid-template-columns: 1fr; gap: 30px; }
  .pp-hero .flip-card { margin: 0 auto; }
  .pp-numbg { display: none; }
  .fp-row { grid-template-columns: 1fr; gap: 2px; }
}
.pp-quick > div:last-child:not(:first-child) { flex: 2 1 240px; }
.pp-quick strong { font-size: 1.15rem; line-height: 1.25; }

.fifa-alts { font-family: var(--font-head); font-size: .74rem; letter-spacing: .06em; opacity: .85; text-align: center; line-height: 1.25; }
.pb.alt { background: rgba(255,255,255,.1); }
.fp-pos { display: inline-block; margin: 0 14px 4px 0; }
.alt-checks > span { display: block; font-size: .78rem; font-weight: 600; margin-bottom: 6px; }
.alt-checks > div { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 4px 12px; }
.alt-checks label { flex-direction: row !important; align-items: center; gap: 6px !important; font-weight: 500 !important; }
.alt-checks em { font-style: normal; font-size: .7rem; background: var(--green); color: #fff; padding: 0 5px; }

.fifa-alts { white-space: nowrap; font-size: .7rem; }
.fifa-top { align-items: center; }

/* ---------- composition d'équipe (feuille de match) ---------- */
.match-card button.mc-foot { border: none; width: 100%; cursor: pointer; line-height: 1.2; }
.match-card .mc-foot.mc-lineup { background: var(--green-dark); }
.match-card .mc-foot.mc-lineup:hover { background: var(--green); }
.match-card.has-lineup { cursor: pointer; }
body.lineup-open { overflow: hidden; }
.lineup-overlay { position: fixed; inset: 0; z-index: 1300; background: rgba(0,0,0,.72); display: flex; align-items: flex-start; justify-content: center; overflow-y: auto; padding: 24px 10px; }
.lineup-sheet { position: relative; width: 100%; max-width: 940px; background: #fff; color: var(--gray-dark); box-shadow: 0 20px 60px rgba(0,0,0,.45); }
.lineup-close { position: absolute; top: 8px; right: 10px; z-index: 5; width: 34px; height: 34px; border: none; border-radius: 50%; background: #111; color: #fff; font-size: 1.4rem; line-height: 1; cursor: pointer; }
.lineup-close:hover { background: var(--green); }
.lp-head { background: #fff; color: var(--gray-dark); padding: 16px 52px 14px 18px; text-align: center; border-bottom: 3px solid var(--green); }
.lp-when { font-family: var(--font-head); text-transform: uppercase; letter-spacing: .05em; font-size: .74rem; color: var(--gray); }
.lp-score { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 8px 0 4px; flex-wrap: wrap; }
.lp-t { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-head); font-size: 1rem; text-transform: uppercase; }
.lp-t img { width: 28px; height: 28px; object-fit: contain; }
.lp-res { font-family: var(--font-head); font-size: 1.7rem; padding: 0 10px; }
.lp-res.res-win { color: #1a9c4b; } .lp-res.res-draw { color: #e08a00; } .lp-res.res-loss { color: #d0342c; }
.lp-comp { font-size: .74rem; color: var(--gray); text-transform: uppercase; letter-spacing: .04em; }
.lp-pitch-wrap { position: relative; padding: 12px 12px 6px; background: #14532d; }
.lp-formation { position: absolute; top: 18px; left: 20px; z-index: 3; font-family: var(--font-head); color: rgba(255,255,255,.85); font-size: .8rem; letter-spacing: .08em; background: rgba(0,0,0,.35); padding: 2px 8px; }
.lp-pitch { position: relative; width: 100%; aspect-ratio: 68 / 90; background: repeating-linear-gradient(180deg, #1f7a3f 0, #1f7a3f 11.11%, #23883f 11.11%, #23883f 22.22%); overflow: hidden; }
.lp-lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.lp-pl { position: absolute; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; width: 19%; color: #fff; text-decoration: none; z-index: 2; }
a.lp-pl:hover .lp-name { background: var(--green); }
.lp-fw { position: relative; display: block; }
.lp-face { display: block; width: clamp(34px, 9.5vw, 54px); height: clamp(34px, 9.5vw, 54px); border-radius: 50%; overflow: hidden; border: 2px solid #fff; background: #0b3d22; box-shadow: 0 2px 6px rgba(0,0,0,.4); }
.lp-face img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lp-ini { display: flex; width: 100%; height: 100%; align-items: center; justify-content: center; font-family: var(--font-head); font-size: .9rem; color: #fff; }
.lp-num { position: absolute; left: -8px; top: -4px; min-width: 20px; height: 20px; padding: 0 4px; border-radius: 10px; background: #111; color: #fff; border: 1.5px solid #fff; font-family: var(--font-head); font-size: .68rem; display: flex; align-items: center; justify-content: center; }
.lp-evs { position: absolute; right: -14px; top: -6px; display: flex; flex-direction: column; gap: 2px; align-items: flex-start; }
.lp-evs.inline { position: static; flex-direction: row; align-items: center; margin-left: auto; gap: 4px; }
.lp-b { position: relative; display: inline-flex; align-items: center; gap: 1px; line-height: 1; font-style: normal; filter: drop-shadow(0 1px 1px rgba(0,0,0,.45)); }
.lp-b svg, .lp-b img { width: 17px; height: 17px; display: block; object-fit: contain; }
.lp-b b { font-family: var(--font-head); font-size: .62rem; font-weight: 600; color: #fff; text-shadow: 0 1px 2px #000; margin-left: 1px; }
.lp-evs.inline .lp-b b, .lp-timeline .lp-b b { color: var(--gray-dark); text-shadow: none; }
.lp-name { margin-top: 3px; max-width: 100%; padding: 1px 6px; background: rgba(0,0,0,.72); color: #fff; font-family: var(--font-head); font-size: clamp(.5rem, 1.9vw, .68rem); letter-spacing: .03em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lp-body { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(260px, .85fr); }
.lp-side { border-left: 1px solid #e4e4e4; }
.lp-side > div { padding: 14px 16px 6px; }
.lp-side h4 { margin: 0 0 8px; font-family: var(--font-head); text-transform: uppercase; letter-spacing: .05em; font-size: .86rem; color: var(--green-dark); }
.lp-side ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.lp-side li { display: flex; align-items: center; gap: 8px; font-size: .84rem; }
.lp-bench .lp-face { width: 30px; height: 30px; border-width: 1.5px; flex: none; }
.lp-bench .lp-ini { font-size: .68rem; }
.lp-bnum { min-width: 22px; text-align: center; font-family: var(--font-head); color: var(--gray); }
.lp-bname a { color: inherit; text-decoration: none; font-weight: 600; } .lp-bname a:hover { color: var(--green); }
.lp-bname { font-weight: 600; } .lp-bname small, .lp-timeline small { font-weight: 400; color: var(--gray); }
.lp-min { min-width: 30px; font-family: var(--font-head); color: var(--green-dark); }
.lp-timeline .lp-b svg, .lp-timeline .lp-b img { width: 18px; height: 18px; }
@media (max-width: 760px) { .lp-body { grid-template-columns: 1fr; } .lp-side { border-left: none; border-top: 3px solid var(--green); } }
@media (max-width: 560px) { .lp-t { font-size: .88rem; } .lp-res { font-size: 1.4rem; } .lp-evs { right: -12px; } .lp-b svg, .lp-b img { width: 14px; height: 14px; } }

/* ---------- composition : formulaire d'administration ---------- */
.lu-h { margin: 6px 0 0; font-family: var(--font-head); text-transform: uppercase; letter-spacing: .04em; font-size: .9rem; color: var(--green-dark); }
.lu-row { display: grid; grid-template-columns: 46px minmax(0, 1fr) 76px; gap: 8px; align-items: center; }
.lu-row.sub { grid-template-columns: minmax(0, 1fr) 76px 28px; }
.lu-role { font-family: var(--font-head); font-size: .8rem; background: var(--green-light); color: var(--green-dark); text-align: center; padding: 6px 0; }
.lu-free { grid-column: 2 / -1; }
.lu-ev { display: grid; grid-template-columns: 140px 62px minmax(0, 1fr) minmax(0, 1fr) 28px; gap: 6px; align-items: center; }
.lu-ev .lu-x, .lu-row .lu-x { border: none; background: #b3261e; color: #fff; height: 28px; cursor: pointer; }
.lu-tools { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
@media (max-width: 680px) { .lu-ev { grid-template-columns: 1fr 1fr; } }
.lu-row.sub .lu-free { grid-column: 1 / -1; }

.lp-coach-row { display: flex; align-items: center; gap: 10px; }
.lp-coach-row .lp-face { width: 40px; height: 40px; flex: none; border-width: 1.5px; }
.lp-coach-row strong { display: block; font-size: .9rem; }
.lp-coach-row small { display: block; color: var(--gray); font-size: .76rem; }
.lp-bench li.came .lp-bname { color: var(--green-dark); }
.coach-rec { margin-top: 8px; font-size: .74rem; color: var(--gray); display: flex; flex-direction: column; gap: 2px; }
.coach-rec b { color: var(--green-dark); font-family: var(--font-head); font-weight: 500; letter-spacing: .02em; }

/* ---------- éditeur de composition (terrain interactif) ---------- */
.demo-modal.xwide { max-width: 1180px; }
.lu-ed { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(290px, .9fr); gap: 18px; align-items: start; }
.lu-topbar { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.lu-left .lp-pitch-wrap { max-width: 560px; }
.lu-pitch .lp-face { width: clamp(30px, 4.4vw, 46px); height: clamp(30px, 4.4vw, 46px); }
.lu-pitch .lp-pl { width: 21%; }
.lu-slot { cursor: grab; }
.lu-empty { cursor: pointer; }
.lu-empty .lp-face { border-style: dashed; background: rgba(255,255,255,.14); box-shadow: none; }
.lu-slot.over .lp-face, .lu-slot.sel .lp-face { outline: 3px solid #f5c400; outline-offset: 1px; }
.lu-slot.over .lp-face { background: rgba(255,255,255,.4); }
.lu-selbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; min-height: 46px; margin-top: 8px; padding: 6px 10px; background: var(--green-light); font-size: .82rem; }
.lu-selbar .lp-face { width: 30px; height: 30px; border-width: 1.5px; flex: none; }
.lu-selbar label { flex-direction: row; align-items: center; gap: 6px; flex: none; }
.lu-selbar .lu-num { width: 64px; }
.lu-hint { color: var(--gray); font-size: .78rem; font-weight: 400; margin: 0; }
.lu-drop { min-height: 64px; border: 2px dashed #cfd8d2; padding: 6px; display: flex; flex-direction: column; gap: 4px; }
.lu-pool { max-height: 360px; overflow-y: auto; }
.lu-chip { display: flex; align-items: center; gap: 8px; padding: 4px 8px; border: 1px solid #dcdcdc; background: #fff; cursor: grab; user-select: none; font-size: .82rem; font-weight: 500; }
.lu-chip:hover { border-color: var(--green); }
.lu-chip.sel { outline: 3px solid #f5c400; outline-offset: -1px; }
.lu-chip .lp-face { width: 30px; height: 30px; border-width: 1.5px; flex: none; }
.lu-chip .lp-ini { font-size: .68rem; }
.lu-chip em { margin-left: auto; font-style: normal; font-family: var(--font-head); color: var(--gray); font-size: .72rem; }
.lu-cn { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lu-right .lu-h { margin-top: 0; }
.lu-right .lu-h + .lu-h, .lu-right .lu-drop + .lu-h { margin-top: 12px; }
.lu-under { display: flex; flex-direction: column; gap: 10px; }
.lu-check { flex-direction: row !important; align-items: center; gap: 6px !important; font-weight: 500 !important; }
.lu-ev { display: grid; grid-template-columns: 170px 62px minmax(0, 1fr) minmax(0, 1fr) auto 28px; gap: 6px; align-items: center; }
.lp-side > div:last-child { padding-bottom: 18px; }
@media (max-width: 900px) { .lu-ed { grid-template-columns: 1fr; } .lu-ev { grid-template-columns: 1fr 1fr; } }

/* ---------- fiche entraîneur ---------- */
.coach-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.coach-table th, .coach-table td { padding: 9px 10px; text-align: center; border-bottom: 1px solid var(--gray-border, #e4e4e4); }
.coach-table th { font-family: var(--font-head); text-transform: uppercase; font-size: .72rem; letter-spacing: .05em; color: var(--gray); }
.coach-table td:first-child, .coach-table th:first-child { text-align: left; font-weight: 600; }
.coach-matches { list-style: none; margin: 0; padding: 0; }
.coach-matches li { display: flex; align-items: center; gap: 14px; padding: 9px 0; border-bottom: 1px solid var(--gray-border, #e4e4e4); flex-wrap: wrap; font-size: .9rem; }
.cm-date { min-width: 110px; color: var(--gray); }
.cm-teams { flex: 1; min-width: 160px; font-weight: 600; }
.cm-score { font-family: var(--font-head); font-size: 1.05rem; }
.cm-score.res-win { color: #1a9c4b; } .cm-score.res-draw { color: #e08a00; } .cm-score.res-loss { color: #d0342c; }
.coach-link { color: var(--green-dark); font-family: var(--font-head); text-transform: uppercase; font-size: .72rem; letter-spacing: .04em; margin-top: 2px; }
.coach-link:hover { color: var(--green); }
.bureau-card .name a { color: inherit; text-decoration: none; } .bureau-card .name a:hover { color: var(--green); }

.lu-ftools { margin: 6px 0; }
.lu-free.active { background: var(--green); }
.lu-pitch.free .lu-slot { cursor: move; touch-action: none; }
.lu-pitch.free { outline: 2px dashed #f5c400; outline-offset: -4px; }

.bureau-card .avatar .av-link { display: block; width: 100%; height: 100%; color: inherit; text-decoration: none; }

/* ---------- bouton bascule entraîneur / joueur ---------- */
.role-switch { display: inline-flex; padding: 3px; border-radius: 30px; background: rgba(0,0,0,.28); border: 1px solid rgba(255,255,255,.3); margin: 0 0 16px; align-self: flex-start; }
.role-switch .rs { padding: 7px 20px; border-radius: 30px; font-family: var(--font-head); text-transform: uppercase; letter-spacing: .05em; font-size: .78rem; color: #fff; text-decoration: none; }
.role-switch a.rs:hover { background: rgba(255,255,255,.18); }
.role-switch .rs.on { background: #fff; color: var(--green-dark); }

/* ---------- classements : mode de remplissage ---------- */
.st-mode { display: flex; align-items: center; gap: 12px 16px; flex-wrap: wrap; padding: 12px 14px; margin-bottom: 20px; background: var(--green-light); border-left: 4px solid var(--green); }
.st-mode strong { font-family: var(--font-head); text-transform: uppercase; letter-spacing: .04em; font-size: .86rem; }
.st-mode small { flex-basis: 100%; color: var(--gray); font-size: .78rem; }
.st-switch { display: inline-flex; padding: 3px; border-radius: 30px; background: #fff; border: 1px solid #cfd8d2; }
.st-switch button { border: none; background: none; padding: 7px 18px; border-radius: 30px; font-family: var(--font-head); text-transform: uppercase; letter-spacing: .05em; font-size: .76rem; color: var(--gray-dark); cursor: pointer; }
.st-switch button.on { background: var(--green); color: #fff; }
.st-switch button:not(.on):hover { background: var(--green-light); }

/* ---------- classement : tableau de saisie ---------- */
.st-edit input { width: 100%; min-width: 0; padding: 6px 8px; }
.st-edit input[type=number] { width: 50px; text-align: center; padding: 6px 2px; }
.st-edit th, .st-edit td { padding: 4px 3px; vertical-align: middle; text-align: center; }
.st-edit th:nth-child(2) { text-align: left; }
.st-edit .st-team { min-width: 130px; }
.st-edit .st-pos { width: 24px; text-align: center; font-family: var(--font-head); color: var(--gray); }
.st-edit .st-diff { text-align: center; font-weight: 600; color: var(--gray-dark); min-width: 30px; }
.st-edit tr.us { background: var(--green-light); }
.st-ctl { white-space: nowrap; }
.st-ctl button { border: none; background: #111; color: #fff; width: 24px; height: 26px; cursor: pointer; margin-right: 1px; padding: 0; }
.st-ctl .st-rm { background: #b3261e; color: #fff; text-decoration: none; }
.st-paste { margin-top: 6px; } .st-paste summary { cursor: pointer; font-size: .8rem; color: var(--gray); }
.st-paste textarea { margin: 8px 0; }
.st-edit { table-layout: fixed; width: 100%; }
.st-edit th:nth-child(1) { width: 26px; } .st-edit th:nth-child(n+3):nth-child(-n+9) { width: 54px; }
.st-edit th:nth-child(10) { width: 36px; } .st-edit th:nth-child(11) { width: 82px; }
.st-edit .st-team { min-width: 0; }
.demo-modal-body .st-edit .st-team { width: 100%; box-sizing: border-box; text-align: left; }
.demo-modal-body .st-edit input[type=number] { width: 50px; box-sizing: border-box; }
.st-edit { min-width: 0 !important; }
.demo-modal-body .st-edit .st-team { width: 100% !important; }
.demo-modal-body .st-edit input[type=number] { width: 50px !important; }

/* ---------- classement : logos des clubs dans le tableau de saisie ---------- */
.st-edit th:nth-child(3) { width: 44px; }
.st-edit th:nth-child(n+4):nth-child(-n+10) { width: 54px; }
.st-edit th:nth-child(11) { width: 36px; } .st-edit th:nth-child(12) { width: 82px; }
.st-logobtn { width: 32px; height: 32px; border: 1px dashed #b9c4bd; background: #fff; cursor: pointer; padding: 2px; display: inline-flex; align-items: center; justify-content: center; color: var(--gray); font-size: 1rem; }
.st-logobtn:hover { border-color: var(--green); }
.st-logobtn img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }
.lg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; max-height: 340px; overflow-y: auto; padding: 4px; }
.lg-item { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 4px; border: 1px solid #dcdcdc; background: #fff; cursor: pointer; font-size: .68rem; text-align: center; }
.lg-item:hover { border-color: var(--green); background: var(--green-light); }
.lg-item img { width: 44px; height: 44px; object-fit: contain; }
.lg-item span { line-height: 1.15; overflow: hidden; }

.ss-manual { display: flex; flex-direction: column; gap: 8px; padding: 10px 12px; background: var(--green-light); border-left: 4px solid var(--green); }
.ss-manual-team { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ss-manual-team strong { min-width: 80px; font-family: var(--font-head); text-transform: uppercase; font-size: .8rem; }
