:root {
  --navy: #0b2545;
  --navy-light: #123a63;
  --navy-dark: #071729;
  --turquoise: #2fb6c9;
  --turquoise-light: #7fd8e3;
  --sand: #f6f3ec;
  --white: #ffffff;
  --gold: #c9a24b;
  --ink: #1c2b3a;
  --ink-soft: #5a6b7d;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(11, 37, 69, 0.12);
  font-size: 16px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-family: Georgia, "Times New Roman", serif;
  color: var(--navy);
  line-height: 1.2;
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1em; color: var(--ink-soft); }

a { color: var(--turquoise); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Navbar ---------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 37, 69, 0.96);
  backdrop-filter: blur(6px);
  color: var(--white);
}

.navbar-top-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 78px;
  padding: 7px 0;
}

.navbar-top-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.navbar-menu {
  background: rgba(7, 23, 41, 0.55);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--white);
  font-family: Georgia, serif;
  font-weight: 700;
  letter-spacing: 0.02em;
  /* Nom sur 3 lignes fixes (voir navbar.html) plutôt que laissé au retour à la
     ligne naturel, pour un pavé de texte centré et régulier à côté du logo. */
  font-size: 1.2rem;
  line-height: 1.2;
  text-align: center;
}
.brand:hover { text-decoration: none; }
.brand .compass { width: 80px; height: 80px; flex-shrink: 0; }
.brand small {
  display: block;
  font-family: -apple-system, sans-serif;
  font-weight: 700;
  font-size: 0.92rem;
  text-align: center;
  color: var(--turquoise-light);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 30px;
  list-style: none;
  margin: 0;
  padding: 8px 0;
}
.nav-links a {
  display: inline-block;
  padding: 3px 0;
  color: rgba(255,255,255,0.85);
  font-size: 0.92rem;
  font-weight: 500;
}
.nav-links a:hover, .nav-links a.active { color: var(--white); text-decoration: none; }
.nav-links a.active { border-bottom: 2px solid var(--turquoise); }

/* Boutons "3D" : dégradé + ombre portée pour un effet de relief, motif tribal
   (le même que les fonds de section, décliné en petit et en couleur foncée)
   gravé en filigrane sur la surface — jamais en blanc ici puisque le fond est clair. */
.nav-cta {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--turquoise-light) 0%, var(--turquoise) 55%, #239aab 100%);
  color: var(--navy-dark) !important;
  padding: 9px 18px;
  border-radius: 100px;
  border: none;
  font-weight: 700 !important;
  white-space: nowrap;
  box-shadow: 0 3px 0 #1c8797, 0 6px 14px rgba(7,23,41,0.25);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.12s ease;
}
.nav-cta::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: url("/static/img/pattern-btn-navy.png");
  background-size: 90px 146px;
  opacity: 0.3;
  mix-blend-mode: multiply;
}
.nav-cta:hover {
  background: linear-gradient(180deg, var(--turquoise-light) 0%, var(--turquoise-light) 55%, var(--turquoise) 100%);
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 5px 0 #1c8797, 0 10px 18px rgba(7,23,41,0.3);
}
.nav-cta:active { transform: translateY(1px); box-shadow: 0 1px 0 #1c8797, 0 2px 6px rgba(7,23,41,0.2); }

.nav-lang {
  border: 1px solid rgba(255,255,255,0.4);
  color: var(--white) !important;
  padding: 8px 13px;
  border-radius: 100px;
  font-weight: 700;
  font-size: 0.82rem;
  white-space: nowrap;
}

.nav-social {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  color: var(--white);
  flex-shrink: 0;
  transition: background 0.15s ease, color 0.15s ease;
}
.nav-social:hover { background: var(--turquoise); color: var(--navy-dark); text-decoration: none; }
.nav-social svg { width: 19px; height: 19px; }
.nav-cart { position: relative; }
.nav-cart .cart-count {
  position: absolute; top: -5px; right: -5px; min-width: 18px; height: 18px; padding: 0 4px;
  border-radius: 9px; background: var(--turquoise); color: var(--navy-dark);
  font-size: 0.7rem; font-weight: 700; display: flex; align-items: center; justify-content: center;
}
.nav-lang:hover { background: rgba(255,255,255,0.1); text-decoration: none; }
/* Accès à l'espace association (membres) : tout à droite de la barre de menu, au bout de « Contact ».
   Sur téléphone, simple cadenas à côté du menu. */
.navbar-menu .container { position: relative; }
.nav-prive-bureau { position: absolute; right: 0; top: 50%; transform: translateY(-50%); }
.nav-prive {
  display: inline-flex; align-items: center; gap: 6px;
  color: rgba(255,255,255,0.8); font-size: 0.74rem; font-weight: 600; white-space: nowrap;
  padding: 3px 10px; border-radius: 100px; border: 1px solid rgba(255,255,255,0.28);
  transition: background 0.15s ease, color 0.15s ease;
}
.nav-prive svg { width: 13px; height: 13px; }
.nav-prive:hover { background: rgba(255,255,255,0.12); color: var(--white); text-decoration: none; }
.nav-prive-mobile { display: none; }
@media (min-width: 901px) and (max-width: 1150px) {
  .navbar-menu .nav-links { padding-right: 130px; gap: 8px 18px; }
  .brand { font-size: 1.02rem; }
  .brand small { font-size: 0.8rem; }
  .brand > span { white-space: nowrap; }
  .navbar-top-actions { gap: 10px; }
}
/* Même piège de spécificité que .nav-cta-mobile : doit battre ".nav-links a"
   et rester AVANT la media query pour que "display: inline-flex" gagne sur mobile. */
.nav-links .nav-lang-mobile { display: none; }

.nav-toggle { display: none; }

/* Doit avoir au moins la spécificité de ".nav-links a" (sinon "display: inline-block"
   l'emporte et les boutons dupliqués pour mobile réapparaissent aussi sur desktop) —
   et rester AVANT la media query ci-dessous pour que sa règle "display: inline-flex"
   gagne à spécificité égale sur petit écran. */
.nav-links .nav-cta-mobile { display: none; }

/* Tablette et téléphone : le menu se replie derrière le bouton ☰ (les boutons d'action y sont repris). */
@media (max-width: 900px) {
  .navbar-menu { display: none; }
  .nav-toggle {
    display: block;
    flex-shrink: 0;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.6rem;
    cursor: pointer;
    padding: 4px;
  }
  .navbar.open .navbar-menu {
    display: block;
  }
  .navbar.open .nav-links {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 0 20px;
    gap: 14px;
  }
  .navbar-top-actions .nav-cta { display: none; }
  .nav-prive-bureau { display: none; }
  .nav-prive-mobile { display: inline-flex; width: 34px; height: 34px; padding: 0; justify-content: center; align-items: center; }
  .nav-prive-mobile svg { width: 16px; height: 16px; }
  .navbar-top-actions .nav-lang { display: none; }
  .nav-links .nav-cta-mobile { display: inline-flex; }
  .nav-links .nav-lang-mobile { display: inline-flex; }
  .brand { font-size: 0.72rem; gap: 10px; }
  .brand .compass { width: 38px; height: 38px; }
  .brand small { font-size: 0.6rem; letter-spacing: 0.03em; }
}

@media (min-width: 601px) and (max-width: 900px) {
  .brand { font-size: 0.98rem; gap: 12px; }
  .brand .compass { width: 58px; height: 58px; }
  .brand small { font-size: 0.74rem; letter-spacing: 0.05em; }
}

/* Très petits téléphones : l'en-tête reste sur une ligne (le lien Facebook est dans le pied de page). */
@media (max-width: 400px) {
  .navbar-top-actions { gap: 8px; }
  .navbar-top-actions .nav-reseau, .navbar-top-actions .nav-social:not(.nav-cart) { display: none; }
  .brand { font-size: 0.66rem; gap: 8px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: var(--white);
  background: linear-gradient(160deg, var(--navy-dark) 0%, var(--navy) 55%, var(--navy-light) 100%);
  overflow: hidden;
  padding: 110px 0 90px;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto auto;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(47,182,201,0.25), transparent 65%);
}
.hero .container { position: relative; z-index: 1; }

/* Accueil : l'affiche est affichée EN ENTIER (jamais rognée) ; le texte est posé dessus, au milieu à gauche, sous un voile
   transparent. Sur petit écran, l'affiche passe au-dessus et le texte dessous (il ne tiendrait pas dessus). */
.affiche-accueil { display: none; background: var(--navy-dark); line-height: 0; padding: 0; }
.affiche-accueil img { display: block; width: 100%; height: auto; }
.hero-photo { padding: 70px 0 60px; }
@media (min-width: 900px) {
  /* L'affiche porte déjà son grand titre en haut à gauche : le texte d'accueil se place juste dessous, sur un voile
     transparent qui n'assombrit que cette zone (le titre de l'affiche reste net). */
  .hero-photo {
    aspect-ratio: 1672 / 941; display: flex; align-items: flex-start; padding: 26.5% 0 0;
    background-image:
      radial-gradient(ellipse 52% 50% at 24% 74%, rgba(7,23,41,0.84) 0%, rgba(7,23,41,0.7) 55%, rgba(7,23,41,0) 100%),
      url("/static/img/hero-cover-v4.jpg");
    background-size: 100% 100%;
  }
  .hero-photo .container { width: 100%; max-width: none; padding-left: 3.2%; padding-right: 3.2%; }   /* le texte s'aligne sous le titre de l'affiche */
  .hero-photo .hero-carte { max-width: 36%; }
  .hero-photo .hero-eyebrow { display: none; }
  .hero-photo h1 { font-size: clamp(1.3rem, 2.2vw, 2.2rem); max-width: none; margin-bottom: 8px; }
  .hero-photo p.lead { font-size: clamp(0.82rem, 0.98vw, 1rem); max-width: none; line-height: 1.45; margin-bottom: 0; }
  .hero-photo .hero-actions { margin-top: 12px; margin-bottom: 0; }
  .hero-photo .hero-actions .btn { padding: 10px 22px; font-size: 0.92rem; }
}
/* Écrans moyens : le paragraphe est masqué (le titre et le bouton suffisent) pour ne pas recouvrir les drapeaux de l'affiche. */
@media (min-width: 900px) and (max-width: 1199px) { .hero-photo p.lead { display: none; } }
@media (max-width: 899px) { .affiche-accueil { display: block; } }
.hero-photo::before { display: none; }

/* Tissage façon vannerie (tisser des liens), très subtil — uniquement sur fonds unis, jamais sur les photos */
.hero::after, .quote-banner::after, footer::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: url("/static/img/pattern-tribal-white.png");
  background-size: 300px 636px;
  background-repeat: repeat;
  mix-blend-mode: overlay;
}
/* Jamais de motif par-dessus une photo : le hero d'accueil garde sa couverture propre.
   Doit rester APRÈS la règle .hero::after ci-dessus pour gagner la cascade (même
   spécificité, donc l'ordre du fichier tranche) — sinon le motif overlay se mélange
   aux couleurs de la photo et produit des bandes de couleur imprévisibles. */
.hero-photo::after { display: none; }
.quote-banner, footer { position: relative; overflow: hidden; }
.quote-banner .container, footer .container { position: relative; z-index: 1; }

section.alt {
  position: relative;
}
section.alt::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: url("/static/img/pattern-tribal.png");
  background-size: 340px 720px;
  background-repeat: repeat;
  opacity: 0.7;
}
section.alt .container { position: relative; z-index: 1; }

/* Même tissage, encore plus discret, sur les sections à fond blanc (jamais
   sur .hero/.quote-banner/footer qui ont déjà leur propre variante, ni sur
   .alt qui a la sienne sur fond sable). */
section:not(.alt):not(.hero):not(.quote-banner) {
  position: relative;
}
section:not(.alt):not(.hero):not(.quote-banner)::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: url("/static/img/pattern-tribal.png");
  background-size: 340px 720px;
  background-repeat: repeat;
  opacity: 0.6;
}
section:not(.alt):not(.hero):not(.quote-banner) .container { position: relative; z-index: 1; }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--turquoise-light);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 18px;
}
.hero h1 { color: var(--white); max-width: 760px; }
.hero p.lead { color: rgba(255,255,255,0.82); max-width: 620px; font-size: 1.15rem; }
.hero-actions { display: flex; gap: 14px; margin-top: 30px; margin-bottom: 10px; flex-wrap: wrap; }
/* Sur la photo hero, les drapeaux/logos partenaires sont juste en dessous du
   bouton (dans l'image elle-même) — l'ombrage 3D standard des boutons le fait
   "sauter" en avant de façon trop marquée à cet endroit précis. */
.hero-photo .hero-actions .btn-primary {
  box-shadow: 0 2px 0 #1c8797, 0 4px 8px rgba(7,23,41,0.2);
}
.hero-photo .hero-actions .btn-primary:hover {
  box-shadow: 0 3px 0 #1c8797, 0 6px 12px rgba(7,23,41,0.25);
}

.hero.compact { padding: 70px 0 60px; }
.hero.compact h1 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 100px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.12s ease, border-color 0.12s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn:active { transform: translateY(1px); }
/* Motif tribal en filigrane sur la surface, même recette que .nav-cta : marine
   sur fond clair (turquoise/blanc), blanc sur fond marine — jamais l'inverse. */
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-size: 90px 146px;
}
.btn-primary {
  background: linear-gradient(180deg, var(--turquoise-light) 0%, var(--turquoise) 55%, #239aab 100%);
  color: var(--navy-dark);
  box-shadow: 0 3px 0 #1c8797, 0 6px 14px rgba(7,23,41,0.25);
}
.btn-primary::after { background-image: url("/static/img/pattern-btn-navy.png"); opacity: 0.3; mix-blend-mode: multiply; }
.btn-primary:hover { background: linear-gradient(180deg, var(--turquoise-light) 0%, var(--turquoise-light) 55%, var(--turquoise) 100%); box-shadow: 0 5px 0 #1c8797, 0 10px 18px rgba(7,23,41,0.3); }
.btn-primary:active { box-shadow: 0 1px 0 #1c8797, 0 2px 6px rgba(7,23,41,0.2); }

.btn-outline {
  border-color: rgba(255,255,255,0.5);
  color: var(--white);
  background: linear-gradient(180deg, rgba(255,255,255,0.14) 0%, rgba(255,255,255,0.05) 100%);
  box-shadow: 0 3px 0 rgba(0,0,0,0.15), 0 6px 12px rgba(7,23,41,0.18);
}
.btn-outline::after { background-image: url("/static/img/pattern-btn-white.png"); opacity: 0.35; mix-blend-mode: overlay; }
.btn-outline:hover { background: linear-gradient(180deg, rgba(255,255,255,0.22) 0%, rgba(255,255,255,0.1) 100%); border-color: var(--white); box-shadow: 0 5px 0 rgba(0,0,0,0.15), 0 10px 16px rgba(7,23,41,0.22); }
.btn-outline:active { box-shadow: 0 1px 0 rgba(0,0,0,0.15), 0 2px 6px rgba(7,23,41,0.15); }

.btn-dark {
  background: linear-gradient(180deg, var(--navy-light) 0%, var(--navy) 55%, var(--navy-dark) 100%);
  color: var(--white);
  box-shadow: 0 3px 0 #04101d, 0 6px 14px rgba(7,23,41,0.3);
}
.btn-dark::after { background-image: url("/static/img/pattern-btn-white.png"); opacity: 0.22; mix-blend-mode: overlay; }
.btn-dark:hover { background: linear-gradient(180deg, var(--navy-light) 0%, var(--navy-light) 55%, var(--navy) 100%); box-shadow: 0 5px 0 #04101d, 0 10px 18px rgba(7,23,41,0.35); }
.btn-dark:active { box-shadow: 0 1px 0 #04101d, 0 2px 6px rgba(7,23,41,0.25); }

.btn-sm { padding: 8px 16px; font-size: 0.85rem; }
.btn-danger { background: #b3352c; color: var(--white); }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }

/* ---------- Sections ---------- */
section { padding: 76px 0; }
section.alt { background: var(--sand); }
.section-head { max-width: 680px; margin: 0 auto 48px; text-align: center; }
.section-head .kicker {
  color: var(--turquoise);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 700;
  font-size: 0.78rem;
}

.grid { display: grid; gap: 28px; }
.grid > * { min-width: 0; }   /* un contenu large ne doit jamais élargir la colonne au-delà de l'écran */
.grid-2 { grid-template-columns: repeat(2, 1fr); }
/* Pacific Passport : l'image est large (passeports + carnet ouvert), on lui donne plus de place que le texte. */
.grid-passport { grid-template-columns: 1.55fr 1fr; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(11,37,69,0.06);
}
.card h3 { margin-bottom: 10px; }
.card .icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--turquoise), var(--navy-light));
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  font-size: 1.3rem;
  margin-bottom: 16px;
}
.card .icon-photo {
  width: 46px; height: 46px;
  border-radius: 12px;
  margin-bottom: 16px;
  object-fit: cover;
  display: block;
}

.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 760px) { .pillars { grid-template-columns: repeat(2, 1fr); } }
.pillars > * { min-width: 0; }
@media (max-width: 400px) { .pillars { grid-template-columns: 1fr; } }
.pillar {
  display: block;
  text-align: center;
  padding: 30px 18px;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
  border: 1px solid rgba(11,37,69,0.06);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.pillar:hover {
  text-decoration: none;
  transform: translateY(-4px);
  box-shadow: 0 16px 34px rgba(11,37,69,0.16);
}
.pillar .emoji { font-size: 2rem; margin-bottom: 10px; }
.pillar-icon { width: 92px; height: 92px; margin: 0 auto 16px; display: block; }
.pillar .pillar-link {
  display: inline-block;
  margin-top: 10px;
  color: var(--turquoise);
  font-weight: 700;
  font-size: 0.85rem;
}

.timeline { position: relative; margin-top: 40px; }
.timeline-step {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 22px;
  padding-bottom: 34px;
  position: relative;
}
.timeline-step::before {
  content: "";
  position: absolute;
  left: 49px;
  top: 30px;
  bottom: -4px;
  width: 2px;
  background: rgba(11,37,69,0.12);
}
.timeline-step:last-child::before { display: none; }
.timeline-step > * { min-width: 0; }
@media (max-width: 400px) { .timeline-step { grid-template-columns: 74px minmax(0, 1fr); gap: 12px; } .timeline-day { width: 74px; font-size: 0.8rem; } .timeline-step::before { left: 36px; } }
.timeline-day {
  width: 100px;
  height: 40px;
  border-radius: 100px;
  background: var(--navy);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: 0.8rem;
  text-align: center;
}

.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 0.76rem;
  font-weight: 700;
  background: rgba(47,182,201,0.14);
  color: var(--navy);
}
.badge.status-nouvelle { background: rgba(47,182,201,0.18); color: var(--navy); }
.badge.status-en_discussion { background: rgba(201,162,75,0.2); color: #7a5a13; }
.badge.status-acceptee { background: rgba(63,158,94,0.18); color: #1f6b3a; }
.badge.status-refusee { background: rgba(179,53,44,0.15); color: #b3352c; }
.badge.status-en_cours { background: rgba(201,162,75,0.2); color: #7a5a13; }
.badge.status-fait { background: rgba(63,158,94,0.18); color: #1f6b3a; }
.badge.status-blocage { background: rgba(179,53,44,0.15); color: #b3352c; }
.badge.status-confirmee { background: rgba(63,158,94,0.18); color: #1f6b3a; }
.badge.status-prete { background: rgba(201,162,75,0.2); color: #7a5a13; }
.badge.status-livree { background: rgba(63,158,94,0.18); color: #1f6b3a; }
.badge.status-annulee { background: rgba(179,53,44,0.15); color: #b3352c; }

/* ---------- Boutique (vitrine) ---------- */
.product-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.product-card a.product-link { color: inherit; text-decoration: none; display: flex; flex-direction: column; flex: 1; }
.product-card a.product-link:hover { text-decoration: none; }
/* La photo (souvent une affiche) s'affiche EN ENTIER, sans rognage : cadre 4/3, fond blanc autour si le format est différent. */
.product-card .product-img { width: 100%; aspect-ratio: 4 / 3; height: auto; object-fit: contain; background: #fff; display: block; }
.product-card .product-body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.product-card h3 { margin: 6px 0 0; }
.product-card p { margin: 0; font-size: 0.92rem; }
.price { font-family: Georgia, serif; font-weight: 700; color: var(--navy); font-size: 1.25rem; }
.product-card .price { margin-top: auto; padding-top: 10px; }
.stock-out { color: #b3352c; font-weight: 700; font-size: 0.85rem; }

.product-detail { display: grid; grid-template-columns: 1.1fr 1fr; gap: 44px; align-items: start; }
@media (max-width: 800px) { .product-detail { grid-template-columns: 1fr; gap: 26px; } }
.product-gallery .main-img { width: 100%; max-height: 560px; object-fit: contain; background: var(--sand); border-radius: var(--radius); display: block; }
.product-gallery .thumbs { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.product-gallery .thumbs button { border: 2px solid transparent; padding: 0; background: none; border-radius: 10px; cursor: pointer; overflow: hidden; }
.product-gallery .thumbs button.on { border-color: var(--turquoise); }
.product-gallery .thumbs img { width: 76px; height: 76px; object-fit: contain; background: #fff; display: block; }
.product-info .price { font-size: 1.7rem; margin: 6px 0 18px; display: block; }
.buy-row { display: flex; gap: 14px; flex-wrap: wrap; align-items: flex-end; margin-top: 22px; }
.buy-row .field { margin: 0; }
.buy-row input[type=number] { width: 90px; }

.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th, .cart-table td { padding: 14px 10px; border-bottom: 1px solid rgba(11,37,69,0.1); text-align: left; vertical-align: middle; }
.cart-table .cart-thumb { width: 64px; height: 64px; object-fit: cover; border-radius: 10px; }
.cart-table input[type=number] { width: 76px; }
.cart-total { text-align: right; font-size: 1.2rem; margin: 18px 0 0; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Partners ---------- */
.partner-logo-top {
  height: 120px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
/* Tous les logos d'un niveau ont exactement le même cadre : chacun s'y inscrit en entier (sans déformation ni rognage). */
.partner-logo-top img { width: 100%; height: 100%; object-fit: contain; }

.partner-logo {
  height: 140px;
  display: flex; align-items: center; justify-content: center;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
}
.partner-logo img { width: 100%; height: 84px; object-fit: contain; display: block; }
.partner-logo .placeholder {
  color: var(--ink-soft);
  font-weight: 700;
  font-size: 0.95rem;
  text-align: center;
}

/* ---------- Forms ---------- */
form .field { margin-bottom: 20px; }
form label { display: block; font-weight: 700; margin-bottom: 6px; color: var(--navy); font-size: 0.92rem; }
form .hint { font-size: 0.82rem; color: var(--ink-soft); margin-top: 4px; }
input, select, textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1.5px solid rgba(11,37,69,0.18);
  font-size: 0.98rem;
  font-family: inherit;
  background: var(--white);
  color: var(--ink);
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--turquoise);
  box-shadow: 0 0 0 3px rgba(47,182,201,0.18);
}
textarea { resize: vertical; min-height: 110px; }
.form-errors { color: #b3352c; font-size: 0.85rem; margin-top: 6px; }
.form-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 36px;
  max-width: 720px;
  margin: 0 auto;
}
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 620px) { .form-row-2 { grid-template-columns: 1fr; } }

.flash {
  padding: 14px 20px;
  border-radius: 10px;
  margin-bottom: 20px;
  font-weight: 600;
}
.flash-success { background: rgba(63,158,94,0.14); color: #1f6b3a; }
.flash-error { background: rgba(179,53,44,0.12); color: #b3352c; }
.flash-info { background: rgba(47,182,201,0.14); color: var(--navy); }

/* Espace association : les messages restent affichés en haut de l'écran, même si la page a défilé. */
.admin-main > .toasts,
.toasts {
  position: fixed; top: 14px; left: 50%; transform: translateX(-50%); z-index: 1000;
  width: min(680px, calc(100% - 28px)); display: flex; flex-direction: column; gap: 8px;
}
.toasts .flash {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 14px;
  margin: 0; background-color: var(--white); border-left: 6px solid currentColor;
  box-shadow: 0 8px 24px rgba(7,23,41,0.25); animation: toast-entree 0.25s ease-out;
}
.toasts .flash-success { background-image: linear-gradient(rgba(63,158,94,0.14), rgba(63,158,94,0.14)); }
.toasts .flash-error { background-image: linear-gradient(rgba(179,53,44,0.12), rgba(179,53,44,0.12)); }
.toasts .flash-info { background-image: linear-gradient(rgba(47,182,201,0.14), rgba(47,182,201,0.14)); }
.flash-fermer { background: none; border: none; color: inherit; font-size: 1.4rem; line-height: 1; cursor: pointer; padding: 0 2px; }
@keyframes toast-entree { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: none; } }

/* Ligne du membre qui vient d'être modifié : surlignée un instant. */
.ligne-membre { scroll-margin-top: 120px; }
.ligne-membre:target td { animation: surbrillance 2.5s ease-out; }
@keyframes surbrillance { from { background: rgba(47,182,201,0.35); } to { background: transparent; } }

/* ---------- Tables (admin) ---------- */
table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--radius); overflow: hidden; }
table th, table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid rgba(11,37,69,0.08); font-size: 0.92rem; }
table th { background: var(--sand); color: var(--navy); font-weight: 700; }
table tr:last-child td { border-bottom: none; }
.table-wrap { overflow-x: auto; box-shadow: var(--shadow); border-radius: var(--radius); }

.admin-shell { display: flex; min-height: 100vh; }
.admin-sidebar {
  position: relative;
  overflow: hidden;
  width: 240px;
  background: var(--navy-dark);
  color: var(--white);
  padding: 24px 18px;
  flex-shrink: 0;
}
.admin-sidebar::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: url("/static/img/pattern-tribal-white.png");
  background-size: 300px 636px;
  background-repeat: repeat;
  mix-blend-mode: overlay;
}
.admin-sidebar > * { position: relative; z-index: 1; }
.admin-sidebar a {
  display: block;
  color: rgba(255,255,255,0.78);
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 0.92rem;
  margin-bottom: 4px;
}
.admin-sidebar a:hover, .admin-sidebar a.active { background: rgba(255,255,255,0.08); color: var(--white); text-decoration: none; }
.admin-sidebar a.has-submenu { display: flex; align-items: center; justify-content: space-between; }
.submenu-caret { font-size: 1rem; opacity: 0.55; transition: transform 0.15s ease; }
.has-submenu.active .submenu-caret { transform: rotate(90deg); opacity: 0.9; }
.admin-submenu { margin: -2px 0 6px 14px; padding-left: 10px; border-left: 1px solid rgba(255,255,255,0.15); }
.admin-submenu a { font-size: 0.82rem; padding: 7px 10px; color: rgba(255,255,255,0.6); }
.admin-submenu a:hover, .admin-submenu a.active { color: var(--white); }
.admin-submenu a.active { background: rgba(255,255,255,0.1); }
.admin-main { position: relative; flex: 1; padding: 34px; background: var(--sand); overflow: hidden; }
.admin-main::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: url("/static/img/pattern-tribal.png");
  background-size: 340px 720px;
  background-repeat: repeat;
  opacity: 0.7;
}
.admin-main > * { position: relative; z-index: 1; }
.admin-topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 28px; }
.stat-card { background: var(--white); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.stat-card .num { font-size: 2.2rem; font-weight: 700; color: var(--navy); font-family: Georgia, serif; }
.stat-card .label { color: var(--ink-soft); font-size: 0.88rem; }

/* Barre du haut + tiroir : masqués sur grand écran, utilisés sous 1025 px (tablette, téléphone) */
.admin-barre, .admin-voile { display: none; }
@media (max-width: 1024px) {
  .admin-shell { flex-direction: column; }
  .admin-barre { display: flex; align-items: center; gap: 12px; position: sticky; top: 0; z-index: 900; height: 56px; padding: 0 14px; background: var(--navy-dark); color: #fff; box-shadow: 0 2px 10px rgba(7,23,41,0.3); }
  .admin-barre-titre { font-weight: 700; font-size: 0.95rem; letter-spacing: 0.02em; }
  .admin-burger { display: inline-flex; flex-direction: column; justify-content: center; gap: 5px; width: 44px; height: 44px; padding: 0 10px; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.2); border-radius: 10px; cursor: pointer; }
  .admin-burger span { display: block; height: 2px; background: #fff; border-radius: 2px; transition: transform 0.2s, opacity 0.2s; }
  .admin-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .admin-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .admin-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .admin-sidebar { position: fixed; top: 0; left: 0; bottom: 0; z-index: 1000; width: min(300px, 86vw); overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
    transform: translateX(-102%); transition: transform 0.25s ease; box-shadow: none; padding: 20px 14px 28px; }
  .admin-sidebar.ouvert { transform: none; box-shadow: 8px 0 30px rgba(0,0,0,0.4); }
  .admin-sidebar a { padding: 13px 14px; font-size: 1rem; }
  .admin-submenu a { padding: 11px 12px; font-size: 0.92rem; }
  .admin-voile { display: block; position: fixed; inset: 0; z-index: 999; background: rgba(7,23,41,0.55); opacity: 0; pointer-events: none; transition: opacity 0.25s ease; }
  body.menu-ouvert .admin-voile { opacity: 1; pointer-events: auto; }
  body.menu-ouvert { overflow: hidden; }
  .admin-main { padding: 24px 22px; }
}
@media (max-width: 640px) {
  .admin-main { padding: 18px 14px; }
}
@media (prefers-reduced-motion: reduce) { .admin-sidebar, .admin-voile, .admin-burger span { transition: none; } }

/* ---------- Footer ---------- */
footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.65);
  padding: 56px 0 28px;
}
footer h4 { color: var(--white); font-size: 0.95rem; }
footer a { color: rgba(255,255,255,0.65); }
footer a:hover { color: var(--white); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 36px; }
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-social { display: flex; gap: 12px; margin-top: 18px; }
.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: var(--white);
  transition: background 0.15s ease, color 0.15s ease;
}
.footer-social a:hover { background: var(--turquoise); color: var(--navy-dark); }
.footer-social svg { width: 18px; height: 18px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  font-size: 0.82rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
footer ul { list-style: none; padding: 0; margin: 0; }
footer li { margin-bottom: 8px; font-size: 0.9rem; }

.quote-banner {
  background: var(--navy);
  color: var(--white);
  text-align: center;
  padding: 60px 0;
}
.quote-banner p {
  color: var(--white);
  font-family: Georgia, serif;
  font-size: 1.4rem;
  font-style: italic;
  max-width: 780px;
  margin: 0 auto;
}

/* ---------- Fenêtre de confirmation (ex. message de contact envoyé) ---------- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 2000;
  display: flex; align-items: center; justify-content: center; padding: 16px;
  background: rgba(7, 23, 41, 0.62);
}
.modal-box {
  background: var(--white); color: var(--ink, #1c2b3a); text-align: center;
  width: 100%; max-width: 440px; padding: 30px 28px 26px; border-radius: 16px;
  box-shadow: 0 20px 50px rgba(7, 23, 41, 0.45);
}
.modal-icon {
  width: 56px; height: 56px; margin: 0 auto 14px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--turquoise), var(--navy-light)); color: var(--white); font-size: 1.6rem;
}
.modal-icon-erreur { background: linear-gradient(135deg, #d65a4a, #b3352c); font-weight: 700; }
.modal-box h3 { margin: 0 0 8px; }
.modal-box p { margin: 0 0 20px; }

/* ---------- Vidéos : toujours visibles en entier, quel que soit l'écran ----------
   La taille suit la HAUTEUR disponible (écran moins en-tête fixe), pas seulement la largeur : une vidéo
   verticale filmée au téléphone ne déborde plus d'un ordinateur portable. --navbar-h est calculée par la page. */
.video-cap { max-height: calc(100vh - var(--navbar-h, 0px) - 32px); }
.video-actu {
  display: block; width: auto; height: auto; max-width: 100%; margin: 0 auto 30px;
  background: #000; border-radius: var(--radius); box-shadow: var(--shadow);
  scroll-margin-top: calc(var(--navbar-h, 0px) + 12px);
}
/* Écrans peu hauts (portables, tablettes à l'horizontale) : l'en-tête ne reste plus collé en haut,
   ce qui rend ~230 px à la page. */
@media (max-height: 820px) and (min-width: 761px) {
  .navbar { position: relative; }      /* (et non static : son z-index doit rester actif pour que le menu déroulant passe au-dessus du contenu) */
}

/* Bouton « Activer le son » posé sur la vidéo de présentation quand elle démarre sans le son. */
.video-son-btn {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border: none; border-radius: 100px; cursor: pointer;
  background: rgba(7, 23, 41, 0.82); color: var(--white); font: inherit; font-weight: 700; font-size: 0.9rem;
  box-shadow: 0 4px 14px rgba(7, 23, 41, 0.35);
}
.video-son-btn[hidden] { display: none; }
.video-son-btn svg { width: 18px; height: 18px; }
.video-son-btn:hover { background: var(--turquoise); color: var(--navy-dark); }

/* ---------- Réseaux sociaux ---------- */
.bloc-reseaux { margin-top: 44px; padding: 28px 24px; text-align: center; background: var(--sand); border-radius: var(--radius); }
.bloc-reseaux h2 { margin: 0 0 6px; }
.bloc-reseaux p { margin: 0 0 18px; }
.reseaux-grands { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.btn-reseau {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 58px; padding: 14px 26px; border-radius: 100px;
  color: #fff; font-weight: 700; font-size: 1.15rem; text-decoration: none;
  box-shadow: 0 4px 0 rgba(7, 23, 41, 0.25), 0 8px 16px rgba(7, 23, 41, 0.15);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn-reseau:hover { transform: translateY(-2px); text-decoration: none; color: #fff; }
.btn-reseau svg { width: 30px; height: 30px; flex-shrink: 0; }
.btn-reseau-facebook { background: #1877f2; }
.btn-reseau-instagram { background: linear-gradient(45deg, #f09433, #dc2743 55%, #bc1888); }
.btn-reseau-messenger { background: linear-gradient(45deg, #0099ff, #a033ff 60%, #ff5280); }
.btn-reseau-youtube { background: #e00000; }
.btn-reseau-tiktok { background: #111; }
.btn-reseau-linkedin { background: #0a66c2; }
.btn-reseau-x { background: #000; }
@media (max-width: 760px) {
  .btn-reseau { width: 100%; font-size: 1.05rem; }
}
/* Page Contact : boutons Messenger et réseaux. */
.contact-reseaux { text-align: center; }
.contact-reseaux h2 { margin: 0 0 8px; }
.contact-reseaux p { margin: 0 0 18px; }

/* ---------- Mascotte : arrivée en douceur et flottement léger (animation en transform : l'image reste toujours visible) ---------- */
.mascotte-scene { position: relative; }
.mascotte-img {
  display: block; width: 100%;
  animation: mascotte-entree 1.1s cubic-bezier(0.34, 1.56, 0.64, 1) both,
             mascotte-flotte 6s ease-in-out 1.2s infinite;
}
@keyframes mascotte-entree {
  from { transform: translateY(26px) scale(0.88) rotate(-2deg); }
  to   { transform: none; }
}
@keyframes mascotte-flotte {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-9px); }
}
/* Visiteurs qui ont demandé moins d'animations (réglage du système) : l'image reste fixe. */
@media (prefers-reduced-motion: reduce) {
  .mascotte-img { animation: none; }
}

/* ---------- Actualité : « Suivez-nous » dans l'en-tête sombre, en verre dépoli qui se fond dans le fond ---------- */
.hero-actu { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px 40px; flex-wrap: wrap; }
.hero-actu-texte { flex: 1 1 520px; min-width: 0; }
.hero-reseaux {
  flex: 0 1 330px; padding: 16px 18px 18px; text-align: center;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.04));
  border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 22px;
  box-shadow: 0 10px 30px rgba(3, 14, 28, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.hero-reseaux-titre {
  margin-bottom: 12px; color: var(--turquoise-light); font-size: 0.8rem; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
}
.hero-reseaux .reseaux-grands { flex-direction: column; gap: 10px; }
.hero-reseaux .btn-reseau {
  width: 100%; min-height: 54px; padding: 11px 20px; font-size: 1.08rem; gap: 12px;
  box-shadow: 0 6px 18px rgba(3, 14, 28, 0.35);
}
.hero-reseaux .btn-reseau svg { width: 28px; height: 28px; }
.hero-reseaux .btn-reseau:hover { box-shadow: 0 10px 24px rgba(3, 14, 28, 0.45); }
@media (max-width: 760px) {
  .hero-reseaux { flex-basis: 100%; padding: 14px 14px 16px; }
  .hero-reseaux .btn-reseau { font-size: 1rem; padding: 10px 12px; gap: 10px; }
  .hero-reseaux .btn-reseau svg { width: 24px; height: 24px; }
}

/* ---------- Actualités : « à la une » en grand ---------- */
.une-grille { display: grid; gap: 26px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.une-carte { display: flex; flex-direction: column; background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.une-media { display: flex; align-items: center; justify-content: center; aspect-ratio: 16 / 9; overflow: hidden;
  background: linear-gradient(135deg, var(--navy), var(--navy-light, #1f4f86)); }
.une-media { position: relative; }
/* L'image ou la vidéo remplit le cadre sans jamais en dicter la hauteur (une vidéo verticale ferait une carte immense). */
.une-media img, .une-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; display: block; }
.une-etoile { color: var(--turquoise-light); font-size: 4rem; }
.une-texte { padding: 22px 24px 26px; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.une-texte h3 { font-size: 1.45rem; margin: 2px 0 8px; }
.une-texte p { margin: 0 0 12px; }
.une-seule .une-carte { flex-direction: row; }
.une-seule .une-media { flex: 1 1 52%; aspect-ratio: auto; min-height: 320px; }
.une-seule .une-texte { flex: 1 1 48%; justify-content: center; padding: 32px 36px; }
.une-seule .une-texte h3 { font-size: 1.8rem; }
@media (max-width: 760px) {
  .une-seule .une-carte { flex-direction: column; }
  .une-seule .une-media { aspect-ratio: 16 / 9; min-height: 0; }
  .une-seule .une-texte { padding: 22px 24px 26px; }
}
.une-badge { background: var(--turquoise); color: var(--navy-dark); font-weight: 700; margin-bottom: 8px; display: inline-block; }

/* ---------- Devenir bénévole : conditions, documents demandés, cases à cocher ---------- */
.bloc-documents {
  margin-top: 28px; padding: 26px 28px; background: var(--sand); border-left: 6px solid var(--turquoise);
  border-radius: var(--radius);
}
.bloc-documents h3 { margin: 0 0 10px; }
.bloc-documents p { margin: 0 0 12px; }
.bloc-documents ul { margin: 0; padding-left: 22px; }
.bloc-documents li { margin-bottom: 6px; }
.cases { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px 18px; margin-top: 6px; }
.case { display: flex; align-items: flex-start; gap: 10px; font-weight: 400; line-height: 1.4; cursor: pointer; }
.case input[type=checkbox] { width: auto; margin-top: 4px; flex-shrink: 0; }
.field .requis { color: #b3352c; }
.engagements { display: flex; flex-direction: column; gap: 12px; padding: 16px 18px; background: rgba(47, 182, 201, 0.08); border-radius: 12px; }


/* ---------- Boutique : prix en euros, états de disponibilité, informations pratiques ---------- */
.price-eur { display: block; color: var(--ink-soft); font-size: 0.88rem; font-weight: 400; margin-top: 2px; }
.product-card .price-eur { padding-bottom: 6px; }
.product-tailles { margin: 6px 0 0; font-size: 0.88rem; color: var(--ink-soft); }
.taille-epuisee { text-decoration: line-through; opacity: 0.55; }
.stock-etat { display: inline-block; margin-top: 4px; padding: 3px 10px; border-radius: 100px; font-size: 0.8rem; font-weight: 700; }
.stock-dispo { background: rgba(63, 158, 94, 0.14); color: #1f6b3a; }
.stock-dernieres { background: rgba(240, 148, 51, 0.18); color: #9a5200; }
.stock-epuise { background: rgba(179, 53, 44, 0.12); color: #b3352c; }
.stock-bientot { background: rgba(47, 182, 201, 0.18); color: var(--navy); }
.boutique-infos-bandeau { padding: 22px 0 6px; }
.bandeau-stand { margin: 0 0 12px; padding: 14px 18px; background: var(--sand); border-left: 6px solid var(--turquoise); border-radius: 10px; font-weight: 600; }
.bandeau-etoile { color: var(--turquoise); }
.bandeau-liens { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin: 0; font-size: 0.92rem; }
.infos-sommaire { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-bottom: 30px; padding: 16px 18px; background: var(--sand); border-radius: var(--radius); }
.info-bloc { margin-bottom: 30px; scroll-margin-top: 120px; }
.info-bloc h2 { margin-bottom: 8px; }

/* Partenaires : toute la carte est cliquable quand une adresse de site est renseignée (avec ou sans logo). */
.partner-lien { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; color: inherit; text-decoration: none; }
.partner-lien .placeholder { color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }
.partner-logo:has(.partner-lien) { transition: transform 0.15s ease, box-shadow 0.15s ease; }
.partner-logo:has(.partner-lien):hover { transform: translateY(-3px); box-shadow: 0 10px 22px rgba(7, 23, 41, 0.18); }

/* Partenaires institutionnels : le logo et le nom mènent au site du partenaire. */
.fondateur-lien { display: block; color: inherit; text-decoration: none; }
.fondateur-lien:hover h3 { text-decoration: underline; text-underline-offset: 4px; }
.fondateur-site { margin: 14px 0 0; font-weight: 700; }

/* Partenaires : pages de réseaux sociaux en petites icônes sous la carte. */
.partner-principal { flex: 1; width: 100%; display: flex; align-items: center; justify-content: center; min-height: 0; }
.partner-logo.avec-reseaux { height: auto; min-height: 140px; flex-direction: column; justify-content: space-between; gap: 10px; }
.partner-logo.avec-reseaux .partner-principal { min-height: 90px; }
.pp-reseaux { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.pp-reseaux a { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: rgba(11, 37, 69, 0.08); color: var(--navy); transition: background 0.15s ease, color 0.15s ease; }
.pp-reseaux a:hover { background: var(--turquoise); color: var(--navy-dark); }
.pp-reseaux svg { width: 16px; height: 16px; }

/* Mascotte flottante en bas à droite : saute et tourne sur elle-même, un clic mène à la page de contact. */
.mascotte-bouton { position: fixed; right: 18px; bottom: 16px; z-index: 900; display: block; width: 92px; text-decoration: none;
  opacity: 0; transform: translateY(30px); pointer-events: none; transition: opacity 0.4s ease, transform 0.4s ease; }
.mascotte-bouton.visible { opacity: 1; transform: none; pointer-events: auto; }
.mascotte-saut { display: block; position: relative; transform-origin: 50% 100%; filter: drop-shadow(0 6px 8px rgba(7, 23, 41, 0.35)); }
.mascotte-corps { display: block; position: relative; transform-origin: 50% 100%; }
.mascotte-saut img { display: block; width: 100%; height: auto; }
/* La jambe gauche est une image à part, superposée au corps, qui pivote autour de la hanche pour le coup de pied. */
.mascotte-saut img.jambe { position: absolute; left: 0; top: 0; transform-origin: 25.4% 80.6%; }
.mascotte-saut.saute { animation: mascotte-saute 1.6s cubic-bezier(0.3, 0.7, 0.4, 1) both; }
/* Clin d'œil : l'œil droit se ferme à la fin de la pirouette, une fois la mascotte retombée. */
.mascotte-clin { position: absolute; left: 52.9%; top: 29%; width: 15%; height: auto; aspect-ratio: 36 / 38; opacity: 0; pointer-events: none; }
.mascotte-saut.saute .mascotte-clin { animation: mascotte-clin 0.85s linear 1.25s both; }
@keyframes mascotte-clin {
  0% { opacity: 0; } 12%, 78% { opacity: 1; } 100% { opacity: 0; }
}
@keyframes mascotte-saute {
  0%   { transform: translateY(0) scale(1.08, 0.9) rotate(0deg); }
  14%  { transform: translateY(0) scale(0.94, 1.08) rotate(0deg); }
  55%  { transform: translateY(-88px) scale(1) rotate(360deg); }
  80%  { transform: translateY(0) scale(1.1, 0.88) rotate(720deg); }
  90%  { transform: translateY(-9px) scale(0.98, 1.03) rotate(720deg); }
  100% { transform: translateY(0) scale(1) rotate(720deg); }
}
/* Bandeau texte : au survol, Feti'a donne un coup de pied dans un ballon ; le ballon file en roulant vers la gauche
   et déroule le bandeau derrière lui. */
.mascotte-bulle { position: absolute; right: 74px; bottom: 30px; display: flex; align-items: center; padding: 6px;
  border-radius: 999px; background: #fff; color: var(--navy); font-size: 0.88rem; font-weight: 700;
  box-shadow: 0 6px 18px rgba(7, 23, 41, 0.25); opacity: 0; pointer-events: none; transition: opacity 0.15s ease; }
.bulle-reserve { flex: none; display: block; width: 30px; height: 30px; }  /* place où le ballon viendra se poser */
.bulle-texte { display: block; max-width: 0; overflow: hidden; white-space: nowrap; margin-left: 0;
  transition: max-width 0.7s cubic-bezier(0.25, 0.6, 0.3, 1), margin 0.7s cubic-bezier(0.25, 0.6, 0.3, 1); }
.mascotte-bouton:hover .mascotte-bulle, .mascotte-bouton:focus-visible .mascotte-bulle { opacity: 1; transition: opacity 0.1s ease 0.4s; }
/* le bandeau fait partie du lien : on peut aussi cliquer dessus pour ouvrir la page Contact */
.mascotte-bouton:hover .mascotte-bulle, .mascotte-bouton:focus-visible .mascotte-bulle { pointer-events: auto; cursor: pointer; }
.mascotte-bouton:hover .bulle-texte, .mascotte-bouton:focus-visible .bulle-texte {
  max-width: 16em; margin: 0 10px 0 8px; transition-delay: 0.4s; }
.mascotte-bouton:hover .mascotte-corps, .mascotte-bouton:focus-visible .mascotte-corps { animation: mascotte-coup 0.9s ease-out both; }
.mascotte-bouton:hover .mascotte-saut img.jambe, .mascotte-bouton:focus-visible .mascotte-saut img.jambe { animation: mascotte-jambe 0.9s ease-out both; }
/* Le coup de pied : le corps se penche en arrière pour l'élan, puis en avant ; la jambe gauche se replie puis frappe. */
@keyframes mascotte-coup {
  0%   { transform: rotate(0deg); }
  28%  { transform: rotate(6deg) translateX(3px); }
  42%  { transform: rotate(-7deg) translateX(-4px); }
  100% { transform: rotate(0deg); }
}
@keyframes mascotte-jambe {
  0%   { transform: rotate(0deg); }
  28%  { transform: rotate(-22deg); }
  42%  { transform: rotate(40deg); }
  62%  { transform: rotate(32deg); }
  100% { transform: rotate(0deg); }
}
/* Le ballon : posé devant le pied dès le survol, il part au moment de la frappe, décrit une courbe en roulant vers la gauche
   et se pose au bout du bandeau (--portee = largeur du bandeau, mesurée par le script). */
.tir { position: absolute; left: -26px; bottom: 0; width: 30px; height: 30px; opacity: 0; pointer-events: none; z-index: 2; transition: opacity 0.08s ease; }
.tir-y, .ballon-svg { display: block; width: 30px; height: 30px; }
.mascotte-bouton:hover .tir, .mascotte-bouton:focus-visible .tir { opacity: 1; animation: tir-x 0.75s cubic-bezier(0.25, 0.6, 0.3, 1) 0.4s both; }
.mascotte-bouton:hover .tir-y, .mascotte-bouton:focus-visible .tir-y { animation: tir-y 0.75s linear 0.4s both; }
.mascotte-bouton:hover .ballon-svg, .mascotte-bouton:focus-visible .ballon-svg { animation: tir-rotation 0.75s cubic-bezier(0.25, 0.6, 0.3, 1) 0.4s both; }
@keyframes tir-x { from { transform: translateX(0); } to { transform: translateX(calc(-1 * var(--portee, 200px))); } }
@keyframes tir-y {
  0%   { transform: translateY(0); animation-timing-function: cubic-bezier(0.2, 0.7, 0.4, 1); }
  38%  { transform: translateY(-64px); animation-timing-function: cubic-bezier(0.5, 0, 0.8, 0.6); }
  100% { transform: translateY(-36px); }
}
@keyframes tir-rotation { from { transform: rotate(0deg); } to { transform: rotate(-900deg); } }
.mascotte-bouton:focus-visible { outline: 3px solid var(--turquoise); outline-offset: 4px; border-radius: 12px; }
@media (max-width: 760px) { .mascotte-bouton { width: 72px; right: 10px; bottom: 12px; } .mascotte-bulle { display: none; } }
@media print { .mascotte-bouton { display: none; } }

/* ---------- Mascotte animée devant le logo (voir partials/mascotte_anim.html) ---------- */
.mascotte-anim { position: relative; width: 100%; aspect-ratio: 16 / 9; cursor: pointer; outline-offset: 6px; }
.ma-fond { display: block; width: 100%; height: 100%; border-radius: var(--radius); box-shadow: var(--shadow); }
/* l'étoile occupe le cadre (385 x 440) où elle se trouve dans l'image d'origine (1280 x 720) */
.ma-etoile { position: absolute; left: 66.797%; top: 34.722%; width: 30.078%; aspect-ratio: 385 / 440; pointer-events: none; z-index: 2; }
.ma-corps { position: absolute; inset: 0; transform-origin: 50% 56%; will-change: transform; }  /* centre du corps : elle tourne sur elle-même */
.ma-corps img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; display: block; }
.ma-clin { opacity: 0; }
.ma-bras { transform-origin: 20.78% 30.68%; }
.ma-bras2 { transform-origin: 76.62% 45.91%; }
.ma-ombre { position: absolute; left: 67%; top: 92.6%; width: 30%; height: 4%; border-radius: 50%; pointer-events: none; z-index: 1;
  background: radial-gradient(ellipse at center, rgba(40, 28, 18, 0.34) 0%, rgba(40, 28, 18, 0) 72%); }

.mascotte-anim.joue .ma-corps { animation: ma-saut 3.2s linear both; }
.mascotte-anim.joue .ma-ombre { animation: ma-ombre 3.2s linear both; }
.mascotte-anim.joue .ma-bras { animation: ma-coucou 2.4s ease-in-out 2.2s both; }
.mascotte-anim.joue .ma-bras2 { animation: ma-coucou2 2.4s ease-in-out 2.35s both; }
.mascotte-anim.joue .ma-clin { animation: ma-clin 1s linear 4.7s both; }
/* Elle s'écrase, bondit vers l'avant en tournoyant (elle sort de l'image), retombe en rebondissant. */
@keyframes ma-saut {   /* même liste de fonctions dans chaque étape : sinon les tours complets ne s'interpolent pas */
  0%   { transform: translate(0, 0) scale(1, 1) rotate(0deg); animation-timing-function: ease-out; }
  7%   { transform: translate(0, 4.4%) scale(1.07, 0.9) rotate(0deg); animation-timing-function: cubic-bezier(0.25, 0.7, 0.4, 1); }
  26%  { transform: translate(-14%, -62%) scale(1.45, 1.45) rotate(450deg); animation-timing-function: ease-in-out; }
  40%  { transform: translate(-6%, -38%) scale(1.38, 1.38) rotate(720deg); animation-timing-function: cubic-bezier(0.5, 0, 0.8, 0.6); }
  52%  { transform: translate(0, 5.3%) scale(1.1, 0.88) rotate(720deg); animation-timing-function: ease-out; }
  60%  { transform: translate(0, -5%) scale(0.98, 1.03) rotate(720deg); animation-timing-function: ease-in; }
  68%, 100% { transform: translate(0, 0) scale(1, 1) rotate(720deg); }
}
@keyframes ma-ombre {
  0%, 7% { transform: scale(1); opacity: 1; }
  26%    { transform: scale(0.55); opacity: 0.4; }
  40%    { transform: scale(0.7); opacity: 0.55; }
  52%    { transform: scale(1.12); opacity: 1; }
  68%, 100% { transform: scale(1); opacity: 1; }
}
@keyframes ma-coucou {
  0%, 100% { transform: rotate(0deg); }
  12% { transform: rotate(-13deg); } 28% { transform: rotate(16deg); } 44% { transform: rotate(-13deg); }
  60% { transform: rotate(16deg); } 76% { transform: rotate(-13deg); } 90% { transform: rotate(8deg); }
}
@keyframes ma-coucou2 {   /* l'autre bras : il se lève (rotation négative) puis redescend */
  0%, 100% { transform: rotate(0deg); }
  12% { transform: rotate(-24deg); } 28% { transform: rotate(-3deg); } 44% { transform: rotate(-24deg); }
  60% { transform: rotate(-3deg); } 76% { transform: rotate(-24deg); } 90% { transform: rotate(-6deg); }
}
@keyframes ma-clin { 0% { opacity: 0; } 14%, 78% { opacity: 1; } 100% { opacity: 0; } }
@media print { .ma-etoile, .ma-ombre { display: none; } }

/* Partenaires fondateurs : autant de cartes que de partenaires, centrées, qui passent à la ligne. */
.fondateurs-grille { display: flex; flex-wrap: wrap; justify-content: center; gap: 44px 40px; max-width: 1040px; margin: 0 auto; }
.fondateurs-grille > .card { flex: 1 1 280px; max-width: 320px; min-width: 0; }

/* ---------- Programme et scores en direct ---------- */
.onglets-tournoi { background: var(--navy-dark); border-top: 1px solid rgba(255,255,255,0.1); }
.onglets-tournoi .container { display: flex; gap: 6px; flex-wrap: wrap; }
.onglets-tournoi a { color: rgba(255,255,255,0.75); padding: 13px 20px; font-weight: 700; font-size: 0.95rem; border-bottom: 3px solid transparent; text-decoration: none; }
.onglets-tournoi a:hover { color: #fff; text-decoration: none; }
.onglets-tournoi a.actif { color: #fff; border-bottom-color: var(--turquoise); }
.sc-pastille { margin-left: 6px; padding: 2px 8px; border-radius: 99px; background: #d92d20; color: #fff; font-size: 0.68rem; letter-spacing: 0.06em; animation: sc-clignote 1.6s ease-in-out infinite; }
.sc-point { display: inline-block; width: 11px; height: 11px; border-radius: 50%; background: #d92d20; box-shadow: 0 0 0 0 rgba(217,45,32,0.6); animation: sc-pulse 1.6s infinite; vertical-align: middle; }
@keyframes sc-pulse { 70% { box-shadow: 0 0 0 10px rgba(217,45,32,0); } 100% { box-shadow: 0 0 0 0 rgba(217,45,32,0); } }
@keyframes sc-clignote { 50% { opacity: 0.55; } }
.bandeau-direct { background: linear-gradient(90deg, #7a1410, #b3352c); color: #fff; padding: 12px 0; }
.bandeau-direct .container { display: flex; align-items: center; gap: 12px 16px; flex-wrap: wrap; }
.bandeau-direct-matchs { display: flex; gap: 8px 22px; flex-wrap: wrap; flex: 1; font-size: 0.95rem; }
.bandeau-direct-matchs b { padding: 1px 8px; background: rgba(255,255,255,0.18); border-radius: 6px; }
.sc-filtre, .tournoi-filtre { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 22px; }
.sc-filtre a, .tournoi-filtre a { padding: 7px 16px; border-radius: 99px; border: 1px solid rgba(11,37,69,0.25); color: var(--navy); font-weight: 700; font-size: 0.88rem; text-decoration: none; }
.sc-filtre a.actif, .tournoi-filtre a.actif { background: var(--navy); color: #fff; border-color: var(--navy); }
.sc-titre { margin: 34px 0 14px; display: flex; align-items: center; gap: 10px; }
.sc-jour { margin: 22px 0 8px; font-size: 1.05rem; color: var(--navy); }
.sc-grille { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.sc-match { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px 20px; }
.sc-direct { border-left: 6px solid #d92d20; }
.sc-meta { display: flex; gap: 10px; align-items: center; font-size: 0.82rem; color: var(--ink-soft); margin-bottom: 10px; flex-wrap: wrap; }
.sc-ligne { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: center; }
.sc-eq { font-weight: 700; font-size: 1.05rem; line-height: 1.25; }
.sc-eq-b { text-align: right; }
.sc-pays { display: block; font-weight: 400; font-size: 0.78rem; color: var(--ink-soft); }
.sc-score { font-family: Georgia, serif; font-size: 2.1rem; font-weight: 700; letter-spacing: 0.04em; white-space: nowrap; color: var(--navy); }
.sc-score span { opacity: 0.45; }
.sc-etat { text-align: center; margin-top: 10px; font-weight: 700; color: #b3352c; font-size: 0.9rem; }
.sc-liste { display: flex; flex-direction: column; gap: 10px; }
.sc-ligne-simple { display: grid; grid-template-columns: 90px 1fr auto 1fr; gap: 6px 14px; align-items: center; padding: 12px 18px; }
.sc-ligne-simple .sc-meta2 { grid-column: 2 / -1; font-size: 0.8rem; color: var(--ink-soft); }
.sc-heure { font-weight: 700; color: var(--navy); font-size: 0.95rem; }
.sc-vs { font-size: 0.8rem; color: var(--ink-soft); text-transform: uppercase; }
.sc-score-fin { font-size: 1.5rem; }
.sc-gagne { color: var(--navy-dark); }
.sc-classements { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 24px; }
.sc-classement h3 { margin: 0 0 10px; font-size: 1.05rem; }
.sc-classement table { width: 100%; }
.sc-classement td, .sc-classement th { text-align: center; padding: 8px 6px; }
.sc-classement td:nth-child(2), .sc-classement th:nth-child(2) { text-align: left; }
.sc-vide { text-align: center; padding: 50px 10px; color: var(--ink-soft); }
@media (max-width: 620px) {
  .sc-ligne-simple { grid-template-columns: 60px 1fr auto; }
  .sc-ligne-simple .sc-eq-b { grid-column: 2 / 4; text-align: left; }
  .sc-ligne-simple .sc-vs { display: none; }
  .sc-ligne-simple .sc-meta2 { grid-column: 1 / -1; }
  .sc-score { font-size: 1.7rem; }
  .sc-eq { font-size: 0.95rem; }
}
/* espace association : filtre, onglets et panneau « match en direct » */
.tournoi-onglets { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 20px; }
.tournoi-onglets > a { padding: 8px 18px; border-radius: 99px; border: 1px solid rgba(11,37,69,0.25); font-weight: 700; color: var(--navy); text-decoration: none; }
.tournoi-onglets > a.actif { background: var(--navy); color: #fff; border-color: var(--navy); }
.tournoi-visibilite { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.direct-bandeau { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; background: rgba(217,45,32,0.08); border: 1px solid rgba(217,45,32,0.3); padding: 10px 14px; border-radius: 12px; margin-bottom: 18px; }
.direct-carte { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px 24px; max-width: 760px; }
.direct-meta { color: var(--ink-soft); font-size: 0.9rem; margin-bottom: 14px; }
.direct-score { display: grid; grid-template-columns: 1fr auto 1fr; gap: 14px; align-items: start; text-align: center; }
.direct-nom { font-weight: 700; font-size: 1.1rem; min-height: 2.6em; }
.direct-chiffre { font-family: Georgia, serif; font-size: 4.6rem; font-weight: 700; line-height: 1; color: var(--navy); margin: 6px 0 12px; }
.direct-tiret { font-size: 3rem; opacity: 0.35; padding-top: 2.4rem; }
.direct-boutons { display: flex; gap: 8px; justify-content: center; }
.direct-boutons button { cursor: pointer; border: none; border-radius: 12px; font-weight: 800; font-size: 1.05rem; }
.direct-plus { background: var(--turquoise); color: var(--navy-dark); padding: 16px 26px; min-width: 150px; }
.direct-moins { background: #eef1f5; color: var(--navy); padding: 16px 18px; }
.direct-etat { text-align: center; margin: 18px 0 6px; }
.direct-etapes { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 12px; }
.direct-etapes .btn { padding: 14px 22px; font-size: 1rem; }
.direct-minute { display: flex; gap: 10px; align-items: center; justify-content: center; margin-top: 18px; flex-wrap: wrap; }
@media (max-width: 560px) { .direct-chiffre { font-size: 3.4rem; } .direct-plus { min-width: 0; padding: 16px 14px; } }

.sc-score-cache { font-size: 1.1rem; opacity: 0.6; text-transform: uppercase; }
.sc-note { text-align: center; font-size: 0.82rem; color: var(--ink-soft); margin-top: 4px; }
.tournoi-reglages { margin-bottom: 20px; }
.tournoi-reglages summary { cursor: pointer; font-weight: 700; color: var(--navy); }
.tournoi-reglages .choix { display: flex; gap: 8px; align-items: flex-start; font-weight: 400; margin: 6px 0; }
.tournoi-reglages .choix input { width: auto; margin-top: 4px; }
.tournoi-resume { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 14px; }
.terrain-grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; margin-bottom: 26px; }
.terrain-carte { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px 16px; }
.terrain-direct { border-left: 6px solid #d92d20; }
.terrain-meta { font-size: 0.82rem; color: var(--ink-soft); margin-bottom: 8px; }
.terrain-score { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: center; }
.terrain-eq { font-weight: 700; }
.terrain-eq-b { text-align: right; }
.terrain-chiffres { font-family: Georgia, serif; font-size: 2rem; font-weight: 700; color: var(--navy); }
.terrain-boutons { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; align-items: center; }
.terrain-boutons .direct-plus { padding: 12px 12px; min-width: 0; font-size: 0.9rem; }
.terrain-boutons .direct-moins { padding: 12px 10px; font-size: 0.85rem; }
.terrain-boutons button { cursor: pointer; border: none; border-radius: 10px; font-weight: 800; }
.terrain-plus { margin-left: auto; font-size: 0.85rem; }

/* ---- chrono et buts du live score */
.sc-chrono { font-variant-numeric: tabular-nums; font-weight: 800; }
.sc-buts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 10px; font-size: 0.85rem; color: var(--ink-soft); }
.sc-buts > div { display: flex; flex-direction: column; gap: 2px; }
.sc-buts-b { text-align: right; }
.sc-buts b { color: var(--navy); font-variant-numeric: tabular-nums; }
.sc-ligne-simple .sc-buts-ligne { grid-column: 2 / -1; margin-top: 0; }
@media (max-width: 700px) { .sc-ligne-simple .sc-buts-ligne { grid-column: 1 / -1; } }
.direct-chrono-zone { text-align: center; margin: 6px 0 4px; }
.direct-chrono { font-family: Georgia, serif; font-variant-numeric: tabular-nums; font-size: 3rem; font-weight: 700; color: #b3352c; line-height: 1.1; }
.direct-boutons { flex-wrap: wrap; }
.direct-prec { flex: 1 0 100%; margin-top: 4px; text-align: left; }
.direct-prec summary { cursor: pointer; font-size: 0.82rem; color: var(--ink-soft); }
.direct-prec input { display: block; width: 100%; margin-top: 6px; padding: 8px 10px; border: 1px solid rgba(11,37,69,0.25); border-radius: 8px; font-size: 0.9rem; }
.direct-buts { margin-top: 22px; border-top: 1px solid rgba(11,37,69,0.12); padding-top: 14px; }
.direct-buts h3 { margin: 0 0 8px; font-size: 1rem; }
.direct-but { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 8px; }
.direct-but input { padding: 7px 9px; border: 1px solid rgba(11,37,69,0.25); border-radius: 8px; }
.direct-but-eq { font-weight: 700; min-width: 100px; }
.direct-but input[type=text] { width: 120px !important; }
.terrain-chrono { font-variant-numeric: tabular-nums; font-weight: 800; color: #b3352c; margin-left: 4px; }

/* ---- carte flottante « Match en direct » (bas gauche, Feti'a reste à droite) */
.direct-flottant { position: fixed; left: 18px; bottom: 16px; z-index: 899; width: 400px; max-width: calc(100vw - 112px);
  opacity: 0; transform: translateY(28px) scale(0.95); transform-origin: left bottom; pointer-events: none;
  transition: opacity 0.4s ease, transform 0.5s cubic-bezier(0.2, 1.3, 0.4, 1); }
.direct-flottant.ouvert { opacity: 1; transform: none; pointer-events: auto; }
.df-carte { display: flex; gap: 8px; align-items: flex-end; background: linear-gradient(135deg, #7a1410, #b3352c); color: #fff;
  border-radius: 16px; padding: 10px 10px 10px 14px; box-shadow: 0 10px 30px rgba(0,0,0,0.35); border: 1px solid rgba(255,255,255,0.18); }
@keyframes df-saut { 0%, 55%, 100% { transform: translateY(0) rotate(0); } 65% { transform: translateY(-9px) rotate(-8deg); } 75% { transform: translateY(0) rotate(0); } 85% { transform: translateY(-5px) rotate(6deg); } }
.df-texte { flex: 1; min-width: 0; }
.df-tete { display: flex; align-items: center; gap: 8px; font-size: 0.78rem; letter-spacing: 0.06em; margin-bottom: 4px; }
.df-fermer { margin-left: auto; background: rgba(255,255,255,0.18); color: #fff; border: 0; width: 24px; height: 24px; border-radius: 50%; font-size: 1.1rem; line-height: 1; cursor: pointer; }
.df-fermer:hover { background: rgba(255,255,255,0.32); }
.df-corps { display: block; color: #fff; text-decoration: none; }
.df-liste { display: block; max-height: 40vh; overflow-y: auto; padding-right: 2px; }
.df-match { display: grid; grid-template-columns: 1fr auto 1fr auto; gap: 6px; align-items: center; font-size: 0.84rem; padding: 3px 0; border-top: 1px solid rgba(255,255,255,0.14); }
.df-match:first-child { border-top: 0; }
.df-match b { padding: 1px 8px; background: rgba(255,255,255,0.2); border-radius: 6px; white-space: nowrap; }
.df-eq { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; }
.df-eq + b + .df-eq { text-align: right; }
.df-temps { min-width: 38px; text-align: right; font-size: 0.74rem; opacity: 0.9; font-variant-numeric: tabular-nums; }
.df-suite { display: block; font-size: 0.74rem; opacity: 0.85; }
.df-lien { display: block; margin-top: 4px; font-size: 0.8rem; font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 760px) { .direct-flottant { left: 10px; bottom: 12px; width: 300px; }  }
@media print { .direct-flottant { display: none; } }

.direct-resultat { margin-top: 18px; padding-top: 14px; border-top: 1px solid rgba(11,37,69,0.12); text-align: center; }
.direct-resultat strong { display: block; margin-bottom: 8px; font-size: 0.92rem; }
.direct-resultat-champs { display: inline-flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: center; }
.direct-resultat input { padding: 7px 9px; border: 1px solid rgba(11,37,69,0.25); border-radius: 8px; text-align: center; }

/* ---- deux tournois (U11, U13) sur la page des scores */
.sc-tournoi { padding: 0; margin-bottom: 40px; }      /* le style global des <section> (76 px de marge) créait un grand vide au-dessus du tournoi */
.sc-tournoi-titre { display: flex; align-items: center; gap: 12px; margin: 6px 0 6px; padding: 12px 16px; border-left: 6px solid var(--turquoise); background: rgba(11,37,69,0.05); border-radius: 0 12px 12px 0; font-size: 1.7rem; }
.sc-tournoi-titre .badge { font-size: 0.9rem; }
.sc-tournoi .sc-titre { font-size: 1.3rem; }
.sc-vide-petit { color: var(--ink-soft); padding: 10px 4px; }
.df-cat, .bandeau-cat { font-style: normal; font-size: 0.66rem; font-weight: 800; padding: 1px 6px; border-radius: 6px; background: rgba(255,255,255,0.25); margin-right: 5px; vertical-align: middle; }
.terrain-tournoi { margin: 14px 0 8px; font-size: 1rem; color: var(--navy); }

/* ---- équipes : un bloc par tournoi (espace association) */
.admin-tournoi { scroll-margin-top: 20px; padding: 0; }
.admin-tournoi-titre { display: flex; align-items: center; gap: 10px; margin: 26px 0 12px; padding: 8px 14px; border-left: 5px solid var(--turquoise); background: rgba(11,37,69,0.05); border-radius: 0 10px 10px 0; }
.admin-tournoi-titre small { font-weight: 400; color: var(--ink-soft); font-size: 0.85rem; }

/* ---- poules par tournoi, joueurs et buteurs */
.poules-bandeau { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 6px 0 12px; padding: 12px 14px; background: rgba(11,37,69,0.04); border-radius: 12px; }
.poule-puce { display: inline-flex; align-items: center; gap: 4px; background: #fff; border: 1px solid rgba(11,37,69,0.15); border-radius: 999px; padding: 3px 10px; }
.poule-renommer { display: inline-flex; align-items: center; gap: 6px; margin: 0; }
.poule-renommer input { width: 52px; border: 0; border-bottom: 1px dashed rgba(11,37,69,0.35); background: transparent; font: inherit; font-weight: 700; text-align: center; padding: 0; }
.poule-nom { font-size: 0.85rem; color: var(--ink-soft); }
.poule-x { border: 0; background: none; color: #b3352c; font-size: 1.2rem; line-height: 1; cursor: pointer; padding: 0 2px; }
.poule-nouvelle { display: inline-flex; gap: 6px; align-items: center; margin: 0 0 0 auto; }
.poule-nouvelle input { width: 200px; }
.joueur-ligne { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0; padding: 4px 0; }
.sc-num { display: inline-block; min-width: 1.7em; text-align: center; font-weight: 800; font-size: 0.8rem; color: #fff; background: var(--navy); border-radius: 6px; padding: 0 5px; }
.terrain-buteur { width: 96px; padding: 10px 8px; border: 1px solid rgba(11,37,69,0.25); border-radius: 10px; font: inherit; font-size: 0.85rem; }
/* ---- programme officiel et tirs au but */
.sc-tab { display: block; font-size: 0.7rem; font-weight: 700; color: var(--ink-soft); text-align: center; }
.sc-note { color: var(--ink-soft); font-size: 0.9rem; margin: -4px 0 10px; }
.programme-etape summary { cursor: pointer; padding: 8px 0; }

/* ---- vidéo de présentation d'un partenaire */
.fondateur-video { width: 100%; max-height: 320px; border-radius: 12px; background: #000; margin-top: 12px; }
.pp-video-btn { border: 1px solid rgba(11,37,69,0.25); background: #fff; color: var(--navy); font: inherit; font-size: 0.82rem; font-weight: 700; padding: 6px 12px; border-radius: 999px; cursor: pointer; }
.pp-video-btn:hover { background: var(--navy); color: #fff; }
.pp-video-dialog { border: 0; border-radius: 16px; padding: 18px; width: min(900px, 94vw); background: #0b2545; color: #fff; }
.pp-video-dialog::backdrop { background: rgba(0,0,0,0.72); }
.pp-video-dialog video { width: 100%; max-height: 72vh; border-radius: 10px; background: #000; display: block; }
.pp-video-titre { margin: 0 40px 10px 0; font-weight: 700; }
.pp-video-fermer { position: absolute; top: 8px; right: 12px; border: 0; background: none; color: #fff; font-size: 2rem; line-height: 1; cursor: pointer; }

/* ---- ligue à 20 équipes : zones du classement et classement final */
.sc-classement tr.zone-top td:first-child { box-shadow: inset 4px 0 0 #1f9d55; }
.sc-classement tr.zone-huitieme td:first-child { box-shadow: inset 4px 0 0 #e0a21b; }
.sc-classement tr.zone-consolante td:first-child { box-shadow: inset 4px 0 0 #9aa5b4; }
.sc-legende { font-size: 0.82rem; color: var(--ink-soft); margin: 8px 0 0; }
.sc-zone-pt { display: inline-block; width: 10px; height: 10px; border-radius: 50%; vertical-align: middle; margin-right: 2px; }
.sc-zone-pt.zone-top { background: #1f9d55; }
.sc-zone-pt.zone-huitieme { background: #e0a21b; }
.sc-zone-pt.zone-consolante { background: #9aa5b4; }
.sc-classement tr.sc-podium td { font-weight: 700; background: rgba(224, 162, 27, 0.12); }
.sc-attente { color: var(--ink-soft); }
.sc-jour-det > summary.sc-jour { cursor: pointer; list-style: none; font-weight: 700; }
.sc-jour-det > summary.sc-jour::-webkit-details-marker { display: none; }
.sc-jour-det > summary.sc-jour::before { content: "▸"; display: inline-block; width: 1.1em; transition: transform .15s; }
.sc-jour-det[open] > summary.sc-jour::before { transform: rotate(90deg); }
.sc-nb { font-weight: 400; font-size: 0.8em; color: var(--ink-soft); }
.sc-lien { float: right; font-size: 0.85rem; font-weight: 700; color: var(--navy); text-decoration: none; padding-top: 6px; }
.sc-lien:hover { text-decoration: underline; }

/* ---- champion d'un tournoi */
.sc-champion { display: flex; align-items: center; gap: 18px; margin: 0 0 22px; padding: 18px 22px; border-radius: 16px;
  background: linear-gradient(135deg, #fff4c9, #f4c84a 55%, #e0a21b); box-shadow: 0 6px 22px rgba(224, 162, 27, 0.35); color: #3a2a00; }
.sc-champion-coupe { font-size: 3rem; line-height: 1; }
.sc-champion-titre { text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.78rem; font-weight: 700; opacity: 0.85; }
.sc-champion-nom { font-size: 1.7rem; font-weight: 800; font-family: var(--font-display, inherit); line-height: 1.15; }
.sc-champion-podium { margin-top: 4px; font-size: 0.92rem; display: flex; gap: 16px; flex-wrap: wrap; }
@media (max-width: 560px) { .sc-champion { padding: 14px; gap: 12px; } .sc-champion-coupe { font-size: 2.2rem; } .sc-champion-nom { font-size: 1.3rem; } }

/* ---- Fetia sur les cartes « En direct » */
.sc-direct { position: relative; padding-left: 132px; min-height: 120px; }
.sc-fetia { position: absolute; left: 14px; bottom: 8px; width: 100px; height: auto; mix-blend-mode: multiply; transform-origin: 50% 100%; animation: sc-fetia-saut 3s ease-in-out infinite; pointer-events: none; }
.sc-direct.sc-but { border-left-color: #1f9d55; background: linear-gradient(90deg, rgba(31, 157, 85, 0.10), transparent 60%); }
.sc-direct.sc-but .sc-fetia { animation: sc-fetia-fete 0.7s ease-in-out infinite; }
@keyframes sc-fetia-saut { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-5px) rotate(2deg); } }
@keyframes sc-fetia-fete { 0%, 100% { transform: translateY(0) rotate(-8deg) scale(1); } 50% { transform: translateY(-16px) rotate(8deg) scale(1.08); } }
@keyframes sc-but-pouls { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.12); } }
@media (max-width: 560px) { .sc-direct { padding-left: 84px; min-height: 96px; } .sc-fetia { width: 58px; left: 12px; } }
@media (prefers-reduced-motion: reduce) { .sc-fetia, .sc-direct.sc-but .sc-fetia, .sc-eq-but, .df-eq-but { animation: none; } }
.sc-eq.sc-attente { color: var(--ink-soft); font-style: italic; font-weight: 400; }
.sc-champion-fetia { width: 96px; height: auto; mix-blend-mode: multiply; flex: none; }
.sc-outils { display: flex; justify-content: flex-end; margin: -6px 0 10px; }
.sc-son { border: 1px solid rgba(11, 37, 69, 0.25); background: #fff; color: var(--navy); font: inherit; font-size: 0.82rem; font-weight: 700; padding: 6px 14px; border-radius: 999px; cursor: pointer; }
.sc-son[aria-pressed="true"] { background: var(--navy); color: #fff; }
.sc-son.sc-son-attente { background: #1f9d55; color: #fff; border-color: #1f9d55; animation: sc-son-pulse 1.6s ease-in-out infinite; }
@keyframes sc-son-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(31, 157, 85, 0.45); } 50% { box-shadow: 0 0 0 8px rgba(31, 157, 85, 0); } }
@media (prefers-reduced-motion: reduce) { .sc-son.sc-son-attente { animation: none; } }
.sc-autre-direct { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; padding: 10px 16px; border-radius: 12px; background: rgba(217, 45, 32, 0.08);
  border: 1px solid rgba(217, 45, 32, 0.3); color: #b42318; font-weight: 700; font-size: 0.92rem; text-decoration: none; }
.sc-autre-direct:hover { background: rgba(217, 45, 32, 0.14); }
/* équipe qui vient de marquer : nom en surbrillance pendant quelques secondes */
.sc-eq.sc-eq-but { background: #fde68a; color: #7a4b00; border-radius: 8px; padding: 2px 10px; box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.35); animation: sc-eq-pouls 0.8s ease-in-out infinite; }
@keyframes sc-eq-pouls { 0%, 100% { box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.35); } 50% { box-shadow: 0 0 0 7px rgba(245, 158, 11, 0.1); } }
.df-eq.df-eq-but { background: #fde68a; color: #7a4b00; border-radius: 6px; padding: 0 6px; animation: sc-eq-pouls 0.8s ease-in-out infinite; }
.df-son { background: rgba(255,255,255,0.18); color: #fff; border: 0; width: 24px; height: 24px; border-radius: 50%; font-size: 0.8rem; line-height: 1; cursor: pointer; margin-left: auto; }
.df-son + .df-fermer { margin-left: 0; }
.df-son:hover { background: rgba(255,255,255,0.32); }
.df-son.df-son-attente { background: #fff; animation: sc-son-pulse 1.6s ease-in-out infinite; }
/* Fetia (peluche) à droite de la carte : il présente le score vers la gauche */
.df-fetia { flex: none; align-self: flex-end; width: 76px; height: auto; margin: 0 -2px -4px 0; transform-origin: 50% 100%; animation: df-saut 2.6s ease-in-out infinite; pointer-events: none; }
@media (max-width: 760px) { .df-fetia { width: 60px; } }
@media (prefers-reduced-motion: reduce) { .df-fetia { animation: none; } }
/* étapes du tournoi (espace association) : 1 -> 6 */
.tournoi-etapes { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 22px; }
.tournoi-etapes > a:not(.tournoi-etat) { display: inline-flex; align-items: center; gap: 8px; padding: 7px 16px 7px 8px; border-radius: 99px; border: 1px solid rgba(11,37,69,0.25);
  font-weight: 700; color: var(--navy); text-decoration: none; }
.tournoi-etapes > a:not(.tournoi-etat):hover { border-color: var(--navy); }
.tournoi-etapes > a.actif { background: var(--navy); color: #fff; border-color: var(--navy); }
.tn-num { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; background: rgba(11,37,69,0.1); font-size: 0.82rem; }
.tournoi-etapes > a.actif .tn-num { background: #fff; color: var(--navy); }
.tournoi-etat { margin-left: auto; font-size: 0.82rem; font-weight: 700; text-decoration: none; padding: 4px 12px; border-radius: 99px; }
.tournoi-etat.tn-visible { color: #1f7a3d; background: rgba(31,157,85,0.12); }
.tournoi-etat.tn-masque { color: #6b7280; background: rgba(107,114,128,0.14); }
.tournoi-suite { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 34px 0 10px; padding-top: 18px; border-top: 1px solid rgba(11,37,69,0.12); }
@media (max-width: 640px) { .tournoi-etapes > a:not(.tournoi-etat) { padding-right: 12px; } }
.phase-test { margin: 10px 0 4px; padding: 8px 12px; border: 1px dashed rgba(192, 57, 43, 0.45); border-radius: 10px; background: rgba(192, 57, 43, 0.04); }
.phase-test form { display: inline; }

/* ---- Écran tablette d'un terrain (comptes scoreur) : gros boutons, lisible en plein soleil ---- */
.tb-page { margin: 0; background: #eef2f7; color: #0b2545; font-size: 18px; -webkit-text-size-adjust: 100%; }
.tb-entete { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 10px 18px; background: #0b2545; color: #fff; }
.tb-titre { font-size: 1.5rem; font-weight: 800; }
.tb-etat { font-size: 0.85rem; font-weight: 700; padding: 4px 12px; border-radius: 99px; background: rgba(255,255,255,0.14); }
.tb-etat.tb-ok { background: rgba(31,157,85,0.28); }
.tb-droite { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.tb-lien { color: #fff; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.tb-choix select { font: inherit; padding: 8px 10px; border-radius: 10px; border: 0; }
.tb-hors-ligne { background: #b42318; color: #fff; font-weight: 800; text-align: center; padding: 10px 14px; }
.tb-hors-ligne[hidden] { display: none; }
.tb-messages { padding: 10px 18px 0; }
.tb-msg { padding: 10px 14px; border-radius: 10px; margin-bottom: 8px; font-weight: 700; background: #fff; border-left: 6px solid #2563eb; }
.tb-msg-success { border-left-color: #1f9d55; } .tb-msg-error { border-left-color: #b42318; background: #fef3f2; }
.tb-main { max-width: 980px; margin: 0 auto; padding: 14px 18px 60px; }
.tb-vide { padding: 26px 10px; text-align: center; color: #5b6b85; font-weight: 700; }
.tb-h2 { font-size: 1.15rem; margin: 26px 0 10px; }
.tb-match { background: #fff; border-radius: 18px; padding: 16px 18px 18px; margin-bottom: 18px; box-shadow: 0 2px 10px rgba(11,37,69,0.12); border-top: 8px solid #d92d20; }
.tb-meta { font-size: 0.95rem; color: #5b6b85; }
.tb-badge { display: inline-block; font-size: 0.78rem; font-weight: 800; padding: 2px 9px; border-radius: 8px; background: #e0f2f6; color: #0b2545; }
.tb-badge-gris { background: #eef0f3; }
.tb-etat-match { display: flex; align-items: center; justify-content: space-between; margin: 6px 0 10px; }
.tb-statut { font-weight: 800; color: #b42318; }
.tb-chrono { font-size: 2.4rem; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: 0.03em; }
.tb-equipes { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.tb-equipe { text-align: center; background: #f6f8fb; border-radius: 14px; padding: 12px 10px 14px; }
.tb-nom { font-size: 1.3rem; font-weight: 800; min-height: 2.6em; display: flex; align-items: center; justify-content: center; line-height: 1.15; }
.tb-score { font-size: 5rem; font-weight: 800; line-height: 1; margin: 4px 0 12px; font-variant-numeric: tabular-nums; }
.tb-boutons-but { display: flex; gap: 10px; align-items: stretch; }
.tb-but { flex: 1; min-height: 88px; font: inherit; font-size: 1.7rem; font-weight: 800; border: 0; border-radius: 16px; background: #1f9d55; color: #fff; cursor: pointer; touch-action: manipulation; }
.tb-but:active { background: #17703d; transform: scale(0.98); }
.tb-moins-form { display: flex; }
.tb-moins { min-width: 64px; font: inherit; font-size: 1.15rem; font-weight: 800; border: 2px solid #c9d1de; border-radius: 16px; background: #fff; color: #5b6b85; cursor: pointer; touch-action: manipulation; }
.tb-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
.tb-actions form { display: flex; flex-wrap: wrap; gap: 10px; }
.tb-bouton { min-height: 62px; padding: 10px 22px; font: inherit; font-size: 1.1rem; font-weight: 800; border-radius: 14px; border: 2px solid #0b2545; background: #fff; color: #0b2545; cursor: pointer; touch-action: manipulation; }
.tb-bouton.tb-primaire { background: #0b2545; color: #fff; }
.tb-bouton.tb-fin { background: #1c2430; color: #fff; border-color: #1c2430; }
.tb-bouton.tb-petit { min-height: 52px; padding: 8px 16px; font-size: 1rem; }
.tb-bouton:disabled, .tb-but:disabled, .tb-moins:disabled { opacity: 0.5; }
.tb-tab { margin-top: 16px; padding: 14px; border-radius: 14px; background: #fff7e6; display: flex; flex-direction: column; gap: 10px; }
.tb-tab input { width: 80px; font: inherit; font-size: 1.4rem; text-align: center; padding: 8px; border-radius: 10px; border: 2px solid #c9d1de; }
.tb-buts { margin-top: 16px; border-top: 1px solid #e3e8ef; padding-top: 10px; }
.tb-buts-titre { font-weight: 800; margin-bottom: 6px; }
.tb-buts form { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 0; }
.tb-croix { font: inherit; font-weight: 700; color: #b42318; background: #fff; border: 2px solid #f1c0bb; border-radius: 10px; padding: 8px 12px; cursor: pointer; }
.tb-feuille { position: fixed; inset: 0; z-index: 50; background: rgba(11,37,69,0.72); display: flex; align-items: flex-end; justify-content: center; }
.tb-feuille[hidden] { display: none; }
.tb-feuille-corps { background: #fff; width: min(900px, 100%); max-height: 92vh; overflow-y: auto; border-radius: 22px 22px 0 0; padding: 18px 18px 22px; }
.tb-feuille-titre { font-size: 1.35rem; font-weight: 800; margin-bottom: 12px; }
.tb-grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.tb-joueur { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 84px; padding: 8px; font: inherit; border: 2px solid #0b2545; border-radius: 14px; background: #fff; color: #0b2545; cursor: pointer; touch-action: manipulation; }
.tb-joueur b { font-size: 2rem; line-height: 1; }
.tb-joueur span { font-size: 0.82rem; line-height: 1.15; text-align: center; }
.tb-joueur:active { background: #0b2545; color: #fff; }
.tb-feuille-bas { display: flex; gap: 12px; margin-top: 14px; }
.tb-sans { flex: 1; min-height: 64px; font: inherit; font-size: 1.15rem; font-weight: 800; border: 0; border-radius: 14px; background: #1f9d55; color: #fff; cursor: pointer; }
.tb-annuler { min-height: 64px; padding: 0 26px; font: inherit; font-size: 1.1rem; font-weight: 700; border: 2px solid #c9d1de; border-radius: 14px; background: #fff; color: #5b6b85; cursor: pointer; }
.tb-liste { display: flex; flex-direction: column; gap: 10px; }
.tb-ligne { display: flex; align-items: center; gap: 14px; background: #fff; border-radius: 14px; padding: 10px 14px; box-shadow: 0 1px 5px rgba(11,37,69,0.1); }
.tb-heure { font-size: 1.3rem; font-weight: 800; min-width: 64px; font-variant-numeric: tabular-nums; }
.tb-ligne-match { flex: 1; min-width: 0; }
.tb-ligne-sous { font-size: 0.85rem; color: #5b6b85; }
.tb-ligne-fin { opacity: 0.85; }
@media (max-width: 640px) { .tb-score { font-size: 3.8rem; } .tb-nom { font-size: 1.05rem; } .tb-but { font-size: 1.3rem; min-height: 76px; } .tb-chrono { font-size: 2rem; } }
/* mode scoreur sur PC portable : grand écran, raccourcis clavier */
.tb-directs { display: grid; grid-template-columns: 1fr; gap: 18px; }
@media (min-width: 1100px) { .tb-main { max-width: 1240px; } .tb-directs:has(> .tb-direct + .tb-direct) { grid-template-columns: 1fr 1fr; } .tb-directs > .tb-match { margin-bottom: 0; } }
.tb-aide-clavier { display: none; margin: 0 0 12px; font-size: 0.88rem; color: #5b6b85; }
.tb-page kbd { display: none; font: inherit; font-size: 0.72em; font-weight: 800; padding: 1px 7px; border-radius: 6px; border: 1px solid currentColor; opacity: 0.75; margin-left: 6px; vertical-align: middle; }
@media (pointer: fine) { .tb-aide-clavier { display: block; } .tb-bouton kbd, .tb-but kbd { display: inline-block; } }
.tb-aide-clavier kbd, .tb-num-aide kbd { display: inline-block; margin: 0 2px; }
.tb-clavier { display: none; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
@media (pointer: fine) { .tb-clavier { display: flex; } }
.tb-num { width: 110px; font: inherit; font-size: 1.8rem; font-weight: 800; text-align: center; padding: 6px 10px; border-radius: 12px; border: 3px solid #0b2545; }
.tb-num.tb-num-faux { border-color: #b42318; background: #fef3f2; }
.tb-num-aide { font-size: 0.88rem; color: #5b6b85; }
.admin-sidebar .admin-lien-scoreur { font-size: 0.86rem; opacity: 0.92; padding-left: 28px; }
.tournoi-scoreur { font-size: 0.82rem; font-weight: 700; text-decoration: none; padding: 4px 12px; border-radius: 99px; color: var(--navy); background: rgba(11,37,69,0.08); margin-left: auto; }
/* bandeau « simulation » vu par les membres connectés sur les pages publiques du tournoi */
.bandeau-simulation { background: #fff4d6; color: #6b4b00; border-bottom: 1px solid #f0d58a; font-size: 0.88rem; padding: 9px 0; text-align: center; }
.bandeau-simulation a { color: inherit; text-decoration: underline; margin-left: 8px; white-space: nowrap; }
.bandeau-simulation form { display: inline; margin-left: 8px; }
.bandeau-simu-stop { font: inherit; font-weight: 700; cursor: pointer; background: #c0392b; color: #fff; border: 0; border-radius: 99px; padding: 3px 12px; white-space: nowrap; }
.bandeau-simu-stop:hover { background: #a22f23; }
.df-simu { font-style: normal; font-size: 0.72rem; font-weight: 700; background: #fff4d6; color: #6b4b00; border-radius: 99px; padding: 1px 8px; margin-left: 4px; }
/* barre du Tournoi : 1) le mode, 2) ce que voit le public, 3) les étapes */
.tournoi-controle { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 14px; margin: 0 0 16px; }
@media (max-width: 860px) { .tournoi-controle { grid-template-columns: 1fr; } }
.tc-bloc { background: #fff; border: 1px solid rgba(11,37,69,0.14); border-radius: 14px; padding: 12px 14px; margin: 0; }
.tc-titre { font-size: 0.74rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #5b6b85; margin-bottom: 8px; }
.tc-cartes { display: flex; gap: 10px; flex-wrap: wrap; }
.tc-confirmer { margin-top: 12px; padding: 12px 14px; border-radius: 12px; background: #fff4e5; border: 1px solid #f0b663; }
.tc-confirmer p { margin: 0 0 10px; font-size: 0.92rem; color: #5a3b00; }
.tc-confirmer-ligne { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.tc-confirmer-ligne input[type="text"] { flex: 1 1 160px; min-width: 0; padding: 9px 12px; border-radius: 8px; border: 1px solid rgba(11,37,69,0.35); font: inherit; text-transform: uppercase; }
.tc-carte { flex: 1 1 180px; display: flex; flex-direction: column; gap: 2px; text-align: left; font-family: inherit; cursor: pointer; padding: 10px 14px; border-radius: 12px;
  border: 2px solid rgba(11,37,69,0.18); background: rgba(11,37,69,0.03); color: var(--navy); }
.tc-carte strong { font-size: 1.02rem; }
.tc-carte span { font-size: 0.78rem; color: #5b6b85; font-weight: 400; }
.tc-carte:not(:disabled):hover { border-color: var(--navy); }
.tc-carte.actif { cursor: default; opacity: 1; color: #fff; }
.tc-carte.actif span { color: rgba(255,255,255,0.85); }
.tc-carte.tc-sim.actif { background: #c0392b; border-color: #c0392b; }
.tc-carte.tc-reel.actif { background: var(--navy); border-color: var(--navy); }
.tc-etat { font-weight: 700; font-size: 0.95rem; margin-bottom: 8px; }
.tc-etat.tc-visible { color: #1f7a3d; }
.tc-etat.tc-masque { color: #6b7280; }
.tc-etat.tc-verrou { color: #6b7280; margin-bottom: 4px; }
.tc-aide { margin: 0; font-size: 0.82rem; color: #5b6b85; }
.tc-bouton { font-family: inherit; font-weight: 700; font-size: 0.95rem; cursor: pointer; padding: 10px 16px; border-radius: 10px; border: 2px solid var(--navy); background: var(--navy); color: #fff; }
.tc-bouton.tc-afficher { background: #1f7a3d; border-color: #1f7a3d; }
.tc-bouton.tc-masquer { background: #fff; color: var(--navy); }
.tc-bouton:hover { filter: brightness(0.93); }
.tn-groupe { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #5b6b85; margin: 0 2px 0 8px; }
.tn-groupe:first-child { margin-left: 0; }
.sim-ligne { display: flex; gap: 12px 18px; flex-wrap: wrap; align-items: center; }
.sim-ligne form { margin: 0; display: flex; gap: 8px; align-items: center; }
.sim-vue { margin-top: 6px; }
.sim-acces { display: flex; gap: 10px; flex-wrap: wrap; margin: 0 0 16px; }
.sim-live select { min-width: 280px; max-width: 100%; padding: 8px 10px; border-radius: 8px; border: 1px solid rgba(11,37,69,0.3); font: inherit; }
.sim-barre { height: 8px; border-radius: 99px; background: rgba(11,37,69,0.1); overflow: hidden; margin: 12px 0 8px; }
.sim-barre span { display: block; height: 100%; width: 0; background: #c0392b; transition: width 0.5s linear; }
.sim-score { font-weight: 700; font-size: 1.1rem; color: var(--navy); min-height: 1.4em; }
.sim-journal { list-style: none; margin: 8px 0 0; padding: 0; font-size: 0.9rem; color: #3b4a60; max-height: 180px; overflow: auto; }
.sim-journal li { padding: 2px 0; border-bottom: 1px dashed rgba(11,37,69,0.1); }
.cat-test { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 4px 0 14px; }
.cat-test form { display: inline-flex; gap: 8px; align-items: center; }
.sc-reste { margin: 8px 0 4px; }
.sc-reste > summary { cursor: pointer; font-weight: 700; color: var(--navy); padding: 10px 14px; border-radius: 12px; background: rgba(11,37,69,0.06); list-style: none; }
.sc-reste > summary::-webkit-details-marker { display: none; }
.sc-reste > summary::before { content: "▸"; display: inline-block; width: 1.1em; transition: transform .15s; }
.sc-reste[open] > summary::before { transform: rotate(90deg); }
.sc-reste[open] > summary { margin-bottom: 10px; }
/* écran de saisie : onglets par tournoi, phases */
.tb-onglets { display: flex; gap: 10px; padding: 12px 18px 0; max-width: 1240px; margin: 0 auto; }
.tb-onglets a { padding: 12px 22px; border-radius: 99px; border: 2px solid #0b2545; font-weight: 800; font-size: 1.1rem; color: #0b2545; text-decoration: none; background: #fff; }
.tb-onglets a.actif { background: #0b2545; color: #fff; }
.tb-pastille { font-size: 0.78rem; font-weight: 800; color: #d92d20; margin-left: 6px; }
.tb-onglets a.actif .tb-pastille { color: #ffb4ac; }
.tb-groupe { margin-bottom: 12px; }
.tb-groupe > summary { cursor: pointer; font-weight: 800; font-size: 1.1rem; padding: 12px 14px; background: #fff; border-radius: 14px; list-style: none; box-shadow: 0 1px 5px rgba(11,37,69,0.1); margin-bottom: 10px; }
.tb-groupe > summary::-webkit-details-marker { display: none; }
.tb-groupe > summary::before { content: "▸"; display: inline-block; width: 1.1em; transition: transform .15s; }
.tb-groupe[open] > summary::before { transform: rotate(90deg); }
.tb-nb { font-weight: 600; color: #5b6b85; font-size: 0.9rem; }
.tb-reste { margin: 10px 0 4px; }
.tb-reste > summary { cursor: pointer; font-weight: 700; padding: 12px 14px; border-radius: 12px; background: rgba(11,37,69,0.08); }
.tb-reste[open] > summary { margin-bottom: 10px; }


/* Page Qui sommes-nous ? */
.qsn-membres { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; margin-top: 8px; }
.qsn-personne { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px 16px; }
.qsn-personne strong { display: block; color: var(--navy); }
.qsn-personne span { font-size: 0.9rem; opacity: 0.8; }
.qsn-liste { columns: 2 320px; column-gap: 32px; padding-left: 20px; }
.qsn-liste li { margin-bottom: 6px; break-inside: avoid; }

/* classements : pénalités de cartons, cartons dans les buts du match */
.sc-pen { color: #b3352c; font-weight: 400; }
.sc-note-points { opacity: 0.85; }

/* direct : forfait et cartons */
.direct-forfait-note { background: rgba(179,53,44,0.08); border-left: 4px solid #b3352c; padding: 10px 14px; border-radius: 8px; margin: 10px 0; }
.direct-forfait { align-items: center; flex-wrap: wrap; }
.direct-cartons { margin: 14px 0 6px; padding-top: 10px; border-top: 1px solid rgba(0,0,0,0.08); }
.direct-cartons h3 { margin: 0 0 8px; font-size: 1rem; }
.direct-cartons-equipes { display: flex; flex-direction: column; gap: 8px; margin-bottom: 8px; }
.direct-carton-form { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.direct-carton-form strong { min-width: 120px; }
.tb-cartons { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 10px 0; }
.tb-carton-form { display: flex; align-items: center; gap: 6px; }
.tb-carton-eq { font-weight: 600; max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tb-carton-form .tb-num { width: 64px; font-size: 1rem; padding: 6px 4px; text-align: center; }
.tb-forfait { margin: 8px 0; }
.tb-forfait summary { cursor: pointer; font-size: 0.95rem; opacity: 0.85; padding: 6px 0; }
.tb-forfait form { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.tb-forfait-ligne { margin: 0 0 0 6px; }

/* invitation à activer le son des buts (le navigateur le bloque tant qu'on n'a pas touché la page) */
.son-invite { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 9999; background: var(--navy, #0b2545); color: #fff; border: 2px solid var(--turquoise, #2cc3c8);
  border-radius: 999px; padding: 14px 22px; font-size: 1rem; font-weight: 700; cursor: pointer; box-shadow: 0 8px 24px rgba(0,0,0,0.35); animation: son-pulse 1.2s ease-in-out infinite; }
@keyframes son-pulse { 0%, 100% { transform: translateX(-50%) scale(1); } 50% { transform: translateX(-50%) scale(1.05); } }
.sim-son { display: flex; align-items: center; gap: 8px; margin: 8px 0 0; }

/* Menu « Le Tournoi » : liste déroulante (survol sur ordinateur ; toujours dépliée dans le menu du téléphone) */
.nav-links .has-sub { position: relative; }
.nav-links .nav-caret { font-size: 0.7em; opacity: 0.8; }
.nav-links .sub-nav { display: none; position: absolute; top: 100%; left: -14px; min-width: 230px; margin: 0; padding: 8px 0; list-style: none; z-index: 60;
  background: var(--navy-dark, #071729); border: 1px solid rgba(255,255,255,0.14); border-radius: 12px; box-shadow: 0 10px 28px rgba(0,0,0,0.35); }
.nav-links .has-sub:hover > .sub-nav, .nav-links .has-sub:focus-within > .sub-nav { display: block; }
.nav-links .sub-nav li { margin: 0; }
.nav-links .sub-nav a { display: block; padding: 9px 18px; white-space: nowrap; border-bottom: none !important; }
.nav-links .sub-nav a:hover { background: rgba(255,255,255,0.08); }
.nav-links .sub-nav a.active { color: var(--turquoise-light, #7fe0e6); }
@media (max-width: 900px) {
  .nav-links .nav-caret { display: none; }
  .nav-links .sub-nav { display: block; position: static; background: none; border: none; box-shadow: none; padding: 4px 0 0 14px; min-width: 0; }
  .nav-links .sub-nav a { padding: 6px 0; font-size: 0.88rem; opacity: 0.9; }
}

/* Pages légales : le texte vient de l'espace association */
.encadre-legal p { margin: 0; }

/* ---- Espace association › Statistiques ---- */
.st-onglets { display: flex; gap: 6px; margin-bottom: 22px; border-bottom: 2px solid rgba(11,37,69,0.1); flex-wrap: wrap; }
.st-onglets a { padding: 10px 18px; font-weight: 700; color: var(--ink-soft); border-bottom: 3px solid transparent; margin-bottom: -2px; text-decoration: none; }
.st-onglets a:hover { color: var(--navy); }
.st-onglets a.actif { color: var(--navy); border-bottom-color: var(--turquoise); }
.st-filtres { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: flex-end; background: var(--white); padding: 16px 18px; border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 18px; }
.st-filtres label { display: flex; flex-direction: column; gap: 4px; font-size: 0.82rem; font-weight: 700; color: var(--ink-soft); }
.st-filtres select, .st-filtres input { padding: 8px 10px; min-width: 140px; font-size: 0.92rem; }
.st-boutons { display: flex; align-items: center; gap: 14px; }
.st-reinit { font-size: 0.88rem; }
.st-resume { margin: 0 0 16px; color: var(--navy); }
.st-cartes { margin-bottom: 34px; }
.st-cartes .stat-card .num { font-size: 2rem; }
.st-sous { font-size: 0.8rem; color: var(--ink-soft); margin-top: 6px; min-height: 1.2em; }
.st-delta { font-weight: 700; margin-right: 4px; color: var(--ink-soft); }
.st-delta.haut { color: #1b8a4b; }
.st-delta.bas { color: #c0392b; }
.st-delta-txt { color: var(--ink-soft); }
.st-graphique { display: flex; align-items: stretch; gap: 3px; height: 230px; background: var(--white); padding: 22px 14px 8px; border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 34px; overflow-x: auto; }
.st-barre { flex: 1 1 0; min-width: 8px; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; position: relative; height: 100%; }
.st-barre i { display: block; width: 100%; max-width: 38px; background: linear-gradient(180deg, var(--turquoise), #1b7f90); border-radius: 4px 4px 0 0; min-height: 0; }
.st-barre:hover i { background: var(--navy); }
.st-barre b { font-size: 0.68rem; font-weight: 400; color: var(--ink-soft); height: 16px; line-height: 16px; white-space: nowrap; margin-top: 4px; }
.st-val { font-size: 0.68rem; color: var(--navy); font-weight: 700; margin-bottom: 2px; min-height: 12px; }
.st-colonnes { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-bottom: 34px; align-items: start; }
@media (max-width: 980px) { .st-colonnes { grid-template-columns: 1fr; } }
table.st-tri th { user-select: none; }
table.st-tri th[data-sens="asc"]::after { content: " ▲"; font-size: 0.7em; }
table.st-tri th[data-sens="desc"]::after { content: " ▼"; font-size: 0.7em; }
.st-num { text-align: right; white-space: nowrap; }
.st-detail { max-height: 460px; overflow-y: auto; margin-bottom: 14px; }
.sc-fuseau { text-align: center; font-size: 0.9rem; font-weight: 700; color: var(--navy); margin: 0 0 18px; }

/* ---- Mode maintenance ---- */
.bandeau-maintenance { background: #f5b301; color: #1c1400; text-align: center; font-size: 0.88rem; font-weight: 700; padding: 8px 14px; }
.bandeau-maintenance a { color: #1c1400; text-decoration: underline; margin-left: 8px; }
.st-diag { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px 18px; margin: 0 0 34px; }
.st-diag summary { cursor: pointer; font-weight: 700; color: var(--navy); }
.st-diag table { margin: 10px 0; width: 100%; }
.st-diag th { text-align: left; font-weight: 700; padding: 6px 12px 6px 0; width: 46%; vertical-align: top; }
.st-diag td { padding: 6px 0; word-break: break-all; }
.st-cartes { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }

/* ---- Menu latéral de l'espace association : groupes par thème ---- */
.admin-sidebar .badge-menu { background: var(--turquoise); color: var(--navy-dark); margin-left: 6px; }
.admin-sidebar a { display: flex; align-items: center; justify-content: space-between; }
.admin-sidebar a.admin-lien-accueil { font-weight: 700; margin-bottom: 10px; }
.admin-groupe { margin: 0 0 6px; }
.admin-groupe > summary { list-style: none; cursor: pointer; user-select: none; display: flex; align-items: center; gap: 4px; padding: 8px 12px 6px;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.5); border-radius: 8px; }
.admin-groupe > summary::-webkit-details-marker { display: none; }
.admin-groupe > summary:hover { color: rgba(255,255,255,0.85); }
.admin-groupe > summary .submenu-caret { margin-left: auto; transform: rotate(90deg); transition: transform 0.15s ease; }
.admin-groupe:not([open]) > summary .submenu-caret { transform: rotate(0deg); }
.admin-groupe[open] > summary .badge-total { display: none; }
.admin-groupe > a { padding-left: 16px; }
.admin-groupe > .admin-submenu { margin-left: 24px; }
.admin-sidebar .admin-lien-scoreur { padding-left: 16px; }
.admin-sidebar a.admin-lien-scoreur-seul { font-size: 1.05rem; padding: 16px 14px; background: rgba(47,182,201,0.18); }
@media (max-width: 1024px) { .admin-groupe > summary { padding: 12px 12px 8px; font-size: 0.78rem; } }
.st-reset-form { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; margin: 10px 0; }
.st-radio { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-weight: 400; }
.st-radio input[type="radio"] { width: auto; }
.st-alerte { background: rgba(179,53,44,0.08); border-left: 4px solid #b3352c; border-radius: 8px; padding: 12px 14px; margin: 10px 0 4px; color: #6b1f19; }
.st-radio input[type="date"] { width: auto; min-width: 150px; }
