/*
Theme Name: Caux TT Theme
Theme URI: https://caux-tt.local
Author: Caux TT
Description: Thème WordPress personnalisé pour le club de tennis de table de Caux.
Version: 1.0
Text Domain: caux-tt
*/

/* ========================================= */
/*               VARIABLES                    */
/* ========================================= */

:root {
  --accent: #4fd8ff;
  --accent-light: #7eebff;
  --accent-strong: #1ba7d4;

  --bg-dark: #05070b;
  --bg-soft: #0b1118;

  --text-main: #e5f2ff;
  --text-soft: #a9b5c7;

  --card-radius: 16px;
}

/* ========================================= */
/*               RESET + GLOBAL              */
/* ========================================= */

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;

  /* Fond type affiche PICaux : très sombre + halo néon central */
  background:
    /* halo principal au centre (bleu / cyan) */
    radial-gradient(circle at 50% 45%, rgba(0, 150, 255, 0.35), transparent 60%),
    /* petite lueur en haut à gauche pour rappeler l’affiche */
    radial-gradient(circle at 12% 0%, rgba(79, 216, 255, 0.22), transparent 55%),
    /* base très sombre bleu nuit */
    linear-gradient(180deg, #02040a 0%, #050b16 40%, #010208 100%);
  
  background-attachment: fixed; /* effet “mur” qui ne bouge pas au scroll */
  color: var(--text-main);
}

/* Liens globaux */
a {
  color: var(--accent-light);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

/* Typo globale */
body,
button,
input,
select,
textarea {
  font-family: 'Barlow Condensed', sans-serif !important;
  font-weight: 400;
  letter-spacing: 0.02em;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Barlow Condensed', sans-serif !important;
  font-weight: 600;
  letter-spacing: 0.03em;
}

h1,
h2 {
  text-transform: uppercase;
  font-weight: 700;
}

/* ========================================= */
/*               HEADER                      */
/* ========================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 2000;
  background: linear-gradient(120deg, #05070b, #0a1826 45%, #05070b);
  border-bottom: 1px solid rgba(79,216,255,0.4);
  box-shadow: 0 6px 20px rgba(0,0,0,0.8);
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 10px 16px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Bloc texte à côté du logo : on laisse la hauteur libre
   (le panneau fait 60px, le slogan peut aller dessous) */
.header-left > div {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  height: auto;
}

/* Logo */
.site-logo {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;

  /* Fond sombre + léger glow interne */
  background: radial-gradient(circle at top, rgba(79,216,255,0.12), rgba(3,8,15,0.98));

  /* Bordure moins forte */
  border: 1px solid rgba(79,216,255,0.7);

  /* Effet néon adouci */
  box-shadow:
    0 0 4px  rgba(79,216,255,0.7),
    0 0 10px rgba(79,216,255,0.45),
    0 0 18px rgba(79,216,255,0.35);
}

.site-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 12px;
}

/* ========================================= */
/*  TITRE "TABLEAU DE SCORE" LED ROUGE       */
/* ========================================= */

/* Titre façon tableau de score – néon rouge, texte LED */
/* Titre façon tableau de score – néon rouge, texte LED, fond plus sombre */
/* Titre : panneau sombre, LED rouge, contour simple */
.site-title {
  margin: 0;
  font-size: 2.3rem;
  line-height: 1;
  text-transform: none;
  letter-spacing: -0.05em;
  color: #ffeaea;
  padding: 0 16px 0 18px;
  border-radius: 12px;
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  height: 60px;

  /* Fond sombre simple, sans glow */
  background:
    radial-gradient(circle at top left,
      rgba(255, 120, 120, 0.10),
      transparent 55%
    ),
    #02030a;

  border: none; /* pas de bordure ici, juste le contour dans ::before */
  box-shadow: none; /* suppression glow */
}


/* Contour LED rouge : simple trait lumineux (un seul encadré) */
.site-title::before {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 10px;
  pointer-events: none;

  /* simple contour rouge lumineux, sans points ni quadrillage */
  border: 1px solid rgba(255, 140, 140, 0.65);
  box-shadow:
    0 0 6px rgba(255, 120, 120, 0.6);

  background: none;   /* important pour qu’il n’y ait aucun motif */
  opacity: 0.9;
}


/* LED rouge à gauche (mode ON AIR clignotant) */
.site-title::after {
  content: "";
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%) scale(1);
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #ff4b4b;
  box-shadow:
    0 0 10px rgba(255, 75, 75, 1),
    0 0 20px rgba(255, 75, 75, 0.95);
  animation: redLedBlink 1.6s ease-in-out infinite;
}

/* Texte du titre en points type LED (effet appliqué uniquement au texte) */
/* Texte du titre en points type LED (points plus petits) */
.site-title span {
  position: relative;
  padding-left: 14px;  /* espace pour la LED */

  /* Remplissage en points rouges plus fins */
  background-image: radial-gradient(circle, #fff4f4 0, #fff4f4 40%, transparent 55%);
  background-size: 2px 2px;  /* ↓ avant: 4px 4px */
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;

  /* Glow autour des “points” */
  text-shadow:
    0 0 3px rgba(255, 130, 130, 0.9),
    0 0 7px rgba(255, 80, 80, 0.8);
}




/* Animation de clignotement de la LED rouge */
@keyframes redLedBlink {
  0%, 50%, 100% {
    opacity: 1;
    transform: translateY(-50%) scale(1);
    box-shadow:
      0 0 10px rgba(255, 75, 75, 1),
      0 0 20px rgba(255, 75, 75, 0.95);
  }
  60%, 80% {
    opacity: 0.25;
    transform: translateY(-50%) scale(0.8);
    box-shadow:
      0 0 4px rgba(255, 75, 75, 0.4),
      0 0 8px rgba(255, 75, 75, 0.3);
  }
}

/* Slogan sous le panneau */
.site-description {
  margin: 4px 0 0;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 210, 210, 0.9);
}

/* ========================================= */
/*                NAVIGATION                 */
/* ========================================= */

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 4px; /* menu serré */
}

.main-nav li {
  position: relative;
}

.main-nav a {
  padding: 4px 9px;             /* compact mais cliquable */
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.83rem;
  color: var(--accent-light);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Hover + page active (état générique) */
.main-nav li a:hover,
.main-nav li.current-menu-item > a,
.main-nav li.current_page_item > a,
.main-nav li.current_page_parent > a,
.main-nav li.current-menu-ancestor > a {
  border-color: rgba(79,216,255,0.9);
  background: rgba(10,20,32,0.95);
  box-shadow: 0 0 8px rgba(79,216,255,0.5);
  text-decoration: none;
}

/* Page active bien visible (sauf LIVE qui a son style propre) */
.main-nav li.current-menu-item:not(.menu-live) > a,
.main-nav li.current_page_item:not(.menu-live) > a,
.main-nav li.current_page_parent:not(.menu-live) > a,
.main-nav li.current-menu-ancestor:not(.menu-live) > a {
  color: #021018;
  background: linear-gradient(135deg, var(--accent-light), var(--accent-strong));
  border-color: rgba(79,216,255,0.95);
  box-shadow:
    0 0 4px rgba(79,216,255,0.7),
    0 0 10px rgba(79,216,255,0.4);
}

/* ========================================= */
/*        MENU LIVE & VIDEOS : ROUGE         */
/* ========================================= */

/* Style normal (rouge discret) */
.main-nav li.menu-live > a,
.main-nav li a.menu-live {
  color: #ff6b6b !important;
  border-color: rgba(255,107,107,0.6) !important;
  background: radial-gradient(circle at top, rgba(255,107,107,0.12), rgba(5,10,15,0.98)) !important;
  box-shadow:
    0 0 3px rgba(255,107,107,0.5),
    0 0 8px rgba(255,107,107,0.35);
  font-weight: 900;
}

/* Hover LIVE : reste bien rouge */
.main-nav li.menu-live > a:hover,
.main-nav li a.menu-live:hover {
  color: #ff6b6b !important; /* même rouge que l’état normal */
  border-color: rgba(255,140,140,0.9) !important;
  background: radial-gradient(circle at top, rgba(255,107,107,0.22), rgba(5,10,15,1)) !important;
  box-shadow:
    0 0 5px rgba(255,107,107,0.8),
    0 0 12px rgba(255,80,80,0.6);
}

/* LIVE actif : un cran au-dessus mais toujours soft */
.main-nav li.menu-live.current-menu-item > a,
.main-nav li.menu-live.current_page_item > a {
  color: #fffafa !important;
  border-color: rgba(255,150,150,0.9) !important;
  background: radial-gradient(circle at top, rgba(255,120,120,0.3), rgba(8,8,16,1)) !important;
  box-shadow:
    0 0 5px rgba(255,140,140,0.7),
    0 0 12px rgba(255,120,120,0.55);
}

/* ========================================= */
/*             SUBMENU DESKTOP               */
/* ========================================= */

.main-nav .submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: rgba(5,10,15,0.98);
  border: 1px solid rgba(79,216,255,0.4);
  border-radius: 12px;
  padding: 6px 0;
  min-width: 180px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.7);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 3000;
}

.main-nav .submenu li {
  width: 100%;
}

.main-nav .submenu a {
  display: block;
  padding: 8px 14px;
  font-size: 0.9rem;
  color: var(--accent-light);
  border-radius: 0;
}

.main-nav .submenu a:hover {
  background: rgba(79,216,255,0.20);
}

/* Affichage au survol (desktop) */
.main-nav .menu-parent:hover > .submenu {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* ========================================= */
/*                BURGER MOBILE              */
/* ========================================= */

.burger {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
}

.burger span {
  width: 26px;
  height: 3px;
  background: var(--accent-light);
  border-radius: 4px;
  transition: 0.3s;
}

/* Burger → X */
.burger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.burger.active span:nth-child(2) {
  opacity: 0;
}
.burger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ========================================= */
/*             MOBILE NAVIGATION             */
/* ========================================= */

@media (max-width: 768px) {

  .burger {
    display: flex;
  }

  /* Menu plein écran en slide, sur toute la largeur */
  .main-nav {
    position: fixed;
    top: 68px;
    left: 0;
    right: -100%;                 /* caché à droite au départ */
    width: 100%;                  /* pleine largeur d'écran */
    height: calc(100vh - 70px);
    padding: 20px 15px;
    background: rgba(5,10,15,0.98);
    border-left: none;
    border-top: 1px solid rgba(79,216,255,0.3);
    box-shadow: 0 10px 30px rgba(0,0,0,0.8);
    transition: 0.35s ease;
    z-index: 5000;
  }

  .main-nav.open {
    right: 0;                     /* slide pour venir occuper tout l'écran */
  }

  /* Colonne, chaque item prend toute la largeur */
  .main-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }

  .main-nav ul li {
    width: 100%;
  }

  .main-nav ul li a {
    display: block;
    width: 100%;
    text-align: center;           /* texte centré */
  }

  /* Sous-menu en accordéon sur mobile */
  .main-nav .submenu {
    position: static;
    margin-top: 5px;
    border-radius: 10px;
    background: rgba(10,20,30,0.95);
    border: 1px solid rgba(79,216,255,0.3);
    box-shadow: none;
    opacity: 1 !important;
    transform: none !important;
    display: none;
    padding: 6px 10px;
  }

  .menu-parent.open > .submenu {
    display: block;
  }
}

/* ========================================= */
/*          CONTENU : LAYOUT + CARD          */
/* ========================================= */

.site-main {
  max-width: 1100px;
  margin: 20px auto 32px;
  padding: 0 16px;
}

.card {
  background:
    radial-gradient(circle at top left, rgba(79,216,255,0.16), transparent 60%),
    rgba(7,12,20,0.96);
  border-radius: var(--card-radius);
  padding: 18px 20px;
  border: 1px solid rgba(79,216,255,0.3);
  box-shadow: 0 14px 40px rgba(0,0,0,0.85);
  margin-bottom: 18px;
}

.card h1,
.card h2,
.card h3 {
  margin-top: 0;
  color: var(--accent-light);
}

/* listes d'articles éventuelles */
.post-list article {
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(79,216,255,0.23);
}

.post-meta {
  font-size: 0.8rem;
  color: var(--text-soft);
}

/* ========================================= */
/*            ACCORDÉONS ONEPAGE             */
/* ========================================= */

.acc-section {
  padding: 0;
}

.acc-section .acc-header {
  width: 100%;
  padding: 14px 18px;
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--accent-light);
  font-size: 1rem;
  font-weight: 600;
}

.acc-section .acc-title {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.acc-section .acc-chevron {
  font-size: 0.9rem;
  opacity: 0.8;
}

.acc-section .acc-body {
  padding: 0 16px 14px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
  border-top: 1px solid rgba(79,216,255,0.25);
}

.acc-section.is-open .acc-body {
  padding-top: 14px;
}

.acc-section.is-open .acc-header {
  background: radial-gradient(circle at top left, rgba(79,216,255,0.18), transparent 70%);
}

/* === INSCRIPTION : STYLE TYPE HELLOASSO, VERSION BLEUE === */

.site-header .main-nav li.menu-inscription > a,
.site-header .main-nav a.menu-inscription {
  color: #d6f4ff !important;
  border-color: rgba(150, 235, 255, 0.9) !important;
  background: radial-gradient(
    circle at top,
    rgba(150, 235, 255, 0.25),
    rgba(5,10,18,0.98)
  ) !important;
  box-shadow:
    0 0 3px rgba(150, 235, 255, 0.7),
    0 0 8px rgba(79, 216, 255, 0.5);
  font-weight: 600;
  position: relative;
  text-shadow: 0 0 4px rgba(0,0,0,0.85);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Hover : un peu plus lumineux */
.site-header .main-nav li.menu-inscription > a:hover,
.site-header .main-nav a.menu-inscription:hover {
  color: #ecfbff !important;
  border-color: rgba(190, 245, 255, 1) !important;
  background: radial-gradient(
    circle at top,
    rgba(190, 245, 255, 0.32),
    rgba(5,10,20,1)
  ) !important;
  box-shadow:
    0 0 4px rgba(190, 245, 255, 0.9),
    0 0 10px rgba(79, 216, 255, 0.65);
  text-decoration: none;
  transform: translateY(-1px);
}

/* Actif */
.site-header .main-nav li.menu-inscription.current-menu-item > a,
.site-header .main-nav li.menu-inscription.current_page_item > a {
  color: #ffffff !important;
  border-color: rgba(200, 250, 255, 1) !important;
  background: radial-gradient(
    circle at top,
    rgba(200, 250, 255, 0.38),
    rgba(8,10,20,1)
  ) !important;
  box-shadow:
    0 0 5px rgba(200, 250, 255, 0.95),
    0 0 12px rgba(79, 216, 255, 0.7);
}

/* ========================================= */
/*              HELLOASSO BTN                */
/* ========================================= */

.helloasso-cta-wrapper {
  margin-top: 12px;
}

.helloasso-btn {
  display: inline-block;
  padding: 9px 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  color: #021018;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(0, 220, 255, 0.6);
  transition: 0.2s ease;
}

.helloasso-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(0, 220, 255, 0.85);
  text-decoration: none;
}

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

.site-footer {
  background: linear-gradient(180deg, #02070e, #000);
  padding: 30px 0;
  text-align: center;
  margin-top: 40px;
  border-top: 1px solid rgba(79,216,255,0.25);
  font-size: 0.85rem;
  color: var(--text-soft);
}

.site-footer .heart {
  color: #ff6b9c;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.footer-social {
  display: flex;
  gap: 18px;
  align-items: center;
}

.footer-social img {
  width: 52px;
  height: 52px;
  filter: drop-shadow(0 0 12px rgba(79, 216, 255, 0.9));
  transition: transform 0.15s ease, filter 0.15s ease;
}

.footer-social img:hover {
  transform: translateY(-4px) scale(1.08);
  filter: drop-shadow(0 0 20px rgba(79, 216, 255, 1));
}

.footer-copy {
  font-size: 0.85rem;
  color: var(--text-soft);
}

/* ========================================= */
/*             RESPONSIVE FIXES              */
/* ========================================= */

@media (max-width: 768px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-main {
    padding: 0 12px;
  }
}

/* Contact actif même si WordPress ne met pas current-menu-item */
body.page-id-25 .main-nav a[href*="live-youtube"] {
  color: #021018;
  background: linear-gradient(135deg, var(--accent-light), var(--accent-strong));
  border-color: rgba(79,216,255,0.95);
  box-shadow:
    0 0 4px rgba(79,216,255,0.7),
    0 0 10px rgba(79,216,255,0.4);
}

/* Contact actif même si WordPress ne met pas current-menu-item */
body.page-id-22 .main-nav a[href*="onepage"] {
  color: #021018;
  background: linear-gradient(135deg, var(--accent-light), var(--accent-strong));
  border-color: rgba(79,216,255,0.95);
  box-shadow:
    0 0 4px rgba(79,216,255,0.7),
    0 0 10px rgba(79,216,255,0.4);
}

/* Sous-menu : même taille de texte que le menu principal */
.main-nav .submenu a {
  font-size: 0.83rem !important; /* même valeur que .main-nav a */
}

/* === HELLOASSO : STYLE TYPE LIVE, VERSION ORANGE === */

/* Style normal HelloAsso (bouton orange néon doux) */
.site-header .main-nav li.menu-helloasso > a,
.site-header .main-nav a.menu-helloasso,
.site-header .main-nav a[href*="helloasso"] {
  color: #ffb45a !important; /* texte orange, même ton que le néon */
  border-color: rgba(255, 180, 90, 0.7) !important;
  background: radial-gradient(circle at top, rgba(255, 180, 90, 0.18), rgba(5,10,15,0.98)) !important;
  box-shadow:
    0 0 3px rgba(255, 190, 120, 0.6),
    0 0 8px rgba(255, 160, 80, 0.4);
  font-weight: 600;
  position: relative;
  text-shadow: 0 0 4px rgba(0,0,0,0.85); /* contraste pour que l’orange reste lisible */
}

/* Icône lien externe ↗ pour bien montrer que ça sort du site */
.site-header .main-nav li.menu-helloasso > a::after,
.site-header .main-nav a.menu-helloasso::after,
.site-header .main-nav a[href*="helloasso"]::after {
  content: "↗";
  margin-left: 0.35em;
  font-size: 0.8em;
  position: relative;
  top: -1px;
  opacity: 0.9;
}

/* Hover HelloAsso : un peu plus lumineux, comme LIVE rouge mais en orange */
.site-header .main-nav li.menu-helloasso > a:hover,
.site-header .main-nav a.menu-helloasso:hover,
.site-header .main-nav a[href*="helloasso"]:hover {
  color: #ffc879 !important; /* orange un peu plus clair au hover */
  border-color: rgba(255, 205, 130, 0.95) !important;
  background: radial-gradient(circle at top, rgba(255, 205, 130, 0.28), rgba(5,10,15,1)) !important;
  box-shadow:
    0 0 4px rgba(255, 210, 140, 0.8),
    0 0 10px rgba(255, 170, 90, 0.5);
  text-decoration: none;
}

/* Si WP le marque comme élément courant, on garde le look orange actif */
.site-header .main-nav li.menu-helloasso.current-menu-item > a,
.site-header .main-nav li.menu-helloasso.current_page_item > a {
  color: #ffd897 !important; /* encore un poil plus clair en actif */
  border-color: rgba(255, 215, 150, 1) !important;
  background: radial-gradient(circle at top, rgba(255, 210, 140, 0.35), rgba(8,8,16,1)) !important;
  box-shadow:
    0 0 5px rgba(255, 215, 150, 0.9),
    0 0 12px rgba(255, 180, 90, 0.6);
}

/* ========================================= */
/*        FRONT-PAGE ONEPAGE : HERO + UI     */
/* ========================================= */

/* --- HERO / ACCUEIL --- */

.hero-section {
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  gap: 2.5rem;
  align-items: stretch;
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  }
}

.hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: linear-gradient(90deg, rgba(0,255,180,0.12), rgba(0,140,255,0.12));
  border: 1px solid rgba(0,180,255,0.35);
  color: var(--text-soft);
  margin-bottom: 0.75rem;
}

.hero-chip span.dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 8px rgba(0,255,200,0.7);
}

#hero h1 {
  font-size: clamp(1.8rem, 3vw, 2.3rem);
  margin-bottom: 0.5rem;
}

.hero-lead {
  font-size: 0.98rem;
  line-height: 1.6;
  color: var(--text-soft);
  max-width: 36rem;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 1.1rem 0 1.6rem;
}

.hero-tag {
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(15, 35, 55, 0.9);
  border: 1px solid rgba(80, 190, 255, 0.4);
  color: var(--text-soft);
  white-space: nowrap;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.btn-primary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.6rem 1.2rem;
  border-radius: 999px;
  font-size: 0.9rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}

.btn-primary {
  background: radial-gradient(circle at 0 0, rgba(79, 216, 255, 0.25), rgba(0, 0, 0, 0.96));
  border-color: rgba(79, 216, 255, 0.7);
  box-shadow:
    0 0 12px rgba(79, 216, 255, 0.5),
    0 10px 25px rgba(0, 0, 0, 0.7);
  color: #e9fbff;
  font-weight: 600;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow:
    0 0 16px rgba(79, 216, 255, 0.7),
    0 18px 40px rgba(0, 0, 0, 0.8);
  text-decoration: none;
}

.btn-ghost {
  background: rgba(10, 20, 30, 0.9);
  border-color: rgba(140, 160, 180, 0.5);
  color: var(--text-soft);
}

.btn-ghost:hover {
  border-color: rgba(79, 216, 255, 0.7);
  background: rgba(15, 30, 45, 0.96);
  text-decoration: none;
}

.hero-note {
  margin-top: 1rem;
  font-size: 0.78rem;
  color: var(--text-soft);
  opacity: 0.9;
}

/* --- Dernière actu (sidebar du hero) --- */

.last-news-box {
  border-radius: 18px;
  background: radial-gradient(circle at top, rgba(79, 216, 255, 0.08), rgba(5, 10, 20, 0.98));
  border: 1px solid rgba(79, 216, 255, 0.4);
  padding: 1.2rem 1.3rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.85);
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.last-news-title {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  opacity: 0.9;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.last-news-title::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #4fd8ff;
  box-shadow: 0 0 10px rgba(79, 216, 255, 0.9);
}

.last-news-article {
  font-size: 0.88rem;
}

.last-news-post-title a {
  color: #f8fdff;
  text-decoration: none;
}

.last-news-post-title a:hover {
  text-decoration: underline;
}

.last-news-meta {
  font-size: 0.75rem;
  color: var(--text-soft);
  margin: 0.25rem 0 0.4rem;
}

.last-news-excerpt {
  font-size: 0.82rem;
  color: var(--text-soft);
}

.last-news-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.3rem;
  font-size: 0.8rem;
  text-decoration: none;
  color: #4fd8ff;
}

.last-news-link:hover {
  text-decoration: underline;
}

.all-news-wrapper {
  margin-top: 0.5rem;
}

.all-news-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  font-size: 0.8rem;
  text-decoration: none;
  border: 1px solid rgba(79, 216, 255, 0.5);
  color: #dbf8ff;
  background: rgba(5, 15, 25, 0.9);
  margin-top: 0.2rem;
}

.all-news-btn:hover {
  background: rgba(15, 30, 45, 0.98);
}

/* --- Accordéons : sous-titres & chevron --- */

.acc-title-main {
  font-weight: 600;
}

.acc-subtitle {
  font-size: 0.75rem;
  color: var(--text-soft);
  display: block;
}

.acc-section .acc-title {
  flex-direction: column;
  align-items: flex-start;
}

/* --- Grille de liens / cartes --- */

.link-grid {
  display: grid;
  gap: 0.7rem;
  margin-top: 1rem;
}

@media (min-width: 640px) {
  .link-grid--two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.link-card {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  padding: 0.65rem 0.75rem;
  border-radius: 12px;
  background: rgba(10, 20, 30, 0.9);
  border: 1px solid rgba(80, 150, 200, 0.45);
  text-decoration: none;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease, background 0.16s ease;
  color: var(--text-main);
}

.link-card:hover {
  transform: translateY(-1px);
  background: rgba(15, 30, 45, 0.98);
  border-color: rgba(79, 216, 255, 0.7);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.7);
  text-decoration: none;
}

.link-card-label {
  font-size: 0.85rem;
  font-weight: 600;
}

.link-card-desc {
  font-size: 0.78rem;
  color: var(--text-soft);
}

/* --- CONTACT GRID --- */

.contact-grid {
  display: grid;
  gap: 0.9rem;
  margin-top: 0.8rem;
}

@media (min-width: 640px) {
  .contact-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.contact-block-title {
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.contact-block p,
.contact-block li {
  font-size: 0.8rem;
}

/* ========================================= */
/*           MINI BARRE STATS CLUB           */
/* ========================================= */

.stats-section {
  margin-top: 10px;
  margin-bottom: 18px;
  padding: 10px 16px;
  border-radius: var(--card-radius);
  background:
    radial-gradient(circle at top left, rgba(79,216,255,0.18), transparent 60%),
    rgba(5, 9, 16, 0.96);
  border: 1px solid rgba(79,216,255,0.35);
  box-shadow: 0 10px 30px rgba(0,0,0,0.85);
}

.stats-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-soft);
  opacity: 0.9;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.stats-label::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 8px rgba(79,216,255,0.8);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

@media (max-width: 640px) {
  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.stat-item {
  padding: 6px 8px;
  border-radius: 10px;
  background: rgba(7, 14, 24, 0.96);
  border: 1px solid rgba(79,216,255,0.32);
  text-align: center;
}

.stat-value {
  display: block;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--accent-light);
  line-height: 1.2;
}

.stat-label {
  display: block;
  font-size: 0.7rem;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 1px;
}

/* ========================================= */
/*     PROCHAINE JOURNÉE & JOUEURS EN FORME  */
/* ========================================= */

/* Prochaine journée de championnat */

.next-match-section {
  margin-bottom: 18px;
}

.next-match-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.next-match-title {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-light);
}

.next-match-badge {
  font-size: 0.75rem;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid rgba(79,216,255,0.4);
  color: var(--text-soft);
}

.next-match-grid {
  display: grid;
  gap: 10px;
}

@media (min-width: 640px) {
  .next-match-grid {
    grid-template-columns: 2fr 1.1fr;
  }
}

.next-match-main {
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(9,16,26,0.96);
  border: 1px solid rgba(79,216,255,0.3);
}

.next-match-line-teams {
  font-size: 0.96rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.next-match-line-meta {
  font-size: 0.8rem;
  color: var(--text-soft);
}

.next-match-meta-item + .next-match-meta-item::before {
  content: "•";
  margin: 0 6px;
  opacity: 0.6;
}

.next-match-side {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-start;
  justify-content: center;
}

.next-match-note {
  font-size: 0.74rem;
  color: var(--text-soft);
}

.next-match-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.78rem;
  border-radius: 999px;
  padding: 4px 10px;
  border: 1px solid rgba(79,216,255,0.5);
  background: rgba(6,12,22,0.98);
  color: var(--accent-light);
  text-decoration: none;
}
.next-match-link:hover {
  background: rgba(14,26,40,1);
  text-decoration: none;
}

/* Joueurs en forme */

.hot-players-section {
  margin-bottom: 18px;
}

.hot-players-intro {
  font-size: 0.84rem;
  color: var(--text-soft);
  margin-bottom: 10px;
}

.hot-players-grid {
  display: grid;
  gap: 10px;
}

@media (min-width: 640px) {
  .hot-players-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.hot-player-card {
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(8,15,26,0.96);
  border: 1px solid rgba(79,216,255,0.3);
}

.hot-player-name {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 3px;
}

.hot-player-info {
  font-size: 0.8rem;
  color: var(--text-soft);
}

.hot-player-tag {
  display: inline-block;
  margin-top: 4px;
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid rgba(79,216,255,0.35);
  color: var(--text-soft);
}

/* ========================================= */
/*     TOURNOI INTRACAUX – FEUILLE 4J/14P    */
/* ========================================= */

#intracaux-hero h1 {
  margin-top: 0.2rem;
}

.intracaux-players-grid {
  display: grid;
  gap: 10px;
}

@media (min-width: 640px) {
  .intracaux-players-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.intracaux-player-slot {
  display:flex;
  flex-direction:column;
  gap:4px;
}

.intracaux-player-slot label {
  font-size:0.8rem;
  color:var(--text-soft);
}

.intracaux-player-slot select {
  padding:4px 6px;
  border-radius:8px;
  border:1px solid rgba(79,216,255,0.35);
  background:rgba(6,12,20,0.96);
  color:var(--text-main);
  font-size:0.85rem;
}

.intracaux-help {
  margin-top:0.7rem;
  font-size:0.8rem;
  color:var(--text-soft);
}

.intracaux-matches-wrapper {
  width:100%;
  overflow-x:auto;
}

.intracaux-table {
  width:100%;
  border-collapse:collapse;
  font-size:0.82rem;
}

.intracaux-table thead th {
  text-align:left;
  padding:6px 8px;
  border-bottom:1px solid rgba(79,216,255,0.5);
  color:var(--accent-light);
  background:rgba(5,10,18,0.9);
}

.intracaux-table tbody td {
  padding:4px 6px;
  border-bottom:1px solid rgba(79,216,255,0.18);
}

.intracaux-table-matches .intracaux-match-number {
  font-weight:600;
  color:var(--accent-light);
}

.intracaux-match-player {
  width:100%;
  padding:3px 5px;
  border-radius:8px;
  border:1px solid rgba(79,216,255,0.35);
  background:rgba(6,12,20,0.96);
  color:var(--text-main);
  font-size:0.8rem;
}

.intracaux-score-input {
  width:100%;
  max-width:60px;
  padding:3px 5px;
  border-radius:8px;
  border:1px solid rgba(79,216,255,0.35);
  background:rgba(6,12,20,0.96);
  color:var(--text-main);
  font-size:0.8rem;
}

.intracaux-score-input:focus,
.intracaux-match-player:focus {
  outline:none;
  border-color:rgba(79,216,255,0.85);
  box-shadow:0 0 0 1px rgba(79,216,255,0.5);
}

/* Tableau des stats */
.intracaux-table-stats tbody tr:nth-child(odd) {
  background:rgba(4,8,14,0.9);
}

.intracaux-table-stats tbody tr:nth-child(even) {
  background:rgba(7,13,22,0.95);
}

.intracaux-table-stats td:first-child {
  font-weight:600;
  color:var(--accent-light);
}

/* ========================================= */
/*   BLOC ACTUS : PLEINE HAUTEUR + SCROLL    */
/* ========================================= */

/* La colonne de droite du hero contient une carte qui prend toute la hauteur */
.hero-side {
  display: flex;
}

.hero-side .last-news-box {
  flex: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* La zone scrollable occupe tout l'espace disponible dans la carte */
.last-news-scroller {
  flex: 1;
  min-height: 0;               /* indispensable pour que le flex-basis respecte le parent */
  margin-top: 0.4rem;

  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 4px;
  scroll-behavior: smooth;

  /* Firefox : barre fine + couleur */
  scrollbar-width: thin;
  scrollbar-color: rgba(79, 216, 255, 0.9) transparent;
}

/* Espacement entre les articles dans la liste d'actus */
.last-news-article {
  padding-bottom: 10px;
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.last-news-article:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

/* Scrollbar néon bleu (Chrome / Edge / Safari) */
.last-news-scroller::-webkit-scrollbar {
  width: 6px; /* un peu plus large, mais reste discret */
}

.last-news-scroller::-webkit-scrollbar-track {
  background: transparent;
}

.last-news-scroller::-webkit-scrollbar-thumb {
  background: linear-gradient(
    180deg,
    rgba(150, 235, 255, 0.98),
    rgba(79, 216, 255, 0.98)
  );
  border-radius: 999px;
  box-shadow:
    0 0 4px rgba(79, 216, 255, 0.9),
    0 0 10px rgba(79, 216, 255, 0.7);
}

/* Glow un peu plus fort au survol de la zone */
.last-news-scroller:hover::-webkit-scrollbar-thumb {
  box-shadow:
    0 0 6px rgba(160, 240, 255, 1),
    0 0 14px rgba(79, 216, 255, 0.95);
}

/* ===================================================== */
/*   HOMEPAGE ONEPAGE CAUXTT – OPTIMISATIONS MOBILES     */
/* ===================================================== */

/* Grilles de base (OK pour desktop + mobile) */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
}

.hot-players-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.link-grid,
.link-grid--two,
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 12px;
}

/* ====== Vu mobiles / tablettes ====== */
@media (max-width: 900px) {

  /* Cartes globales un peu plus compactes sur mobile */
  .card {
    padding: 14px 12px;
    margin-left: 10px;
    margin-right: 10px;
  }

  /* HERO : passer en colonne + text plus lisible */
  .hero-section {
    padding-top: 14px;
    padding-bottom: 16px;
  }

  .hero-grid {
    display: flex;
    flex-direction: column;
    gap: 18px;
  }

  .hero-main h1 {
    font-size: 1.6rem;
    line-height: 1.15;
    margin-bottom: 10px;
  }

  .hero-lead {
    font-size: 0.93rem;
    line-height: 1.55;
    max-width: 100%;
  }

  .hero-lead br {
    display: none; /* évite les gros trous verticaux sur mobile */
  }

  .hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
  }

  .hero-tag {
    font-size: 0.8rem;
    padding: 4px 8px;
  }

  .hero-cta-row {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .hero-cta-row .btn-primary,
  .hero-cta-row .btn-ghost {
    width: 100%;
    text-align: center;
  }

  .hero-note {
    font-size: 0.78rem;
    margin-top: 10px;
  }

  /* Accès rapide sous forme de bandeau fluide */
  .hero-quick-links {
    margin-top: 12px;
    padding: 8px 10px;
    border-radius: 999px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
  }

  .hero-quick-label {
    flex-basis: 100%;
    font-size: 0.78rem;
    opacity: 0.85;
  }

  .hero-quick-link {
    font-size: 0.78rem;
    padding: 4px 8px;
    border-radius: 999px;
    white-space: nowrap;
  }

  /* Bloc ACTUS : passer sous le hero, plein écran, scroll raisonnable */
  .hero-side {
    order: 2;
  }

  .last-news-box {
    margin-top: 4px;
  }

  .last-news-title {
    font-size: 1.05rem;
    margin-bottom: 8px;
  }

  .last-news-scroller {
    max-height: 280px;     /* hauteur raisonnable pour mobile */
    padding-right: 6px;    /* petite marge pour la scrollbar */
    overflow-y: auto;
  }

  .last-news-article {
    padding-bottom: 10px;
    margin-bottom: 12px;
    border-bottom: 1px solid rgba(79, 216, 255, 0.14);
  }

  .last-news-post-title {
    font-size: 0.95rem;
  }

  .last-news-meta {
    font-size: 0.78rem;
  }

  .last-news-excerpt p {
    font-size: 0.82rem;
    line-height: 1.5;
  }

  .last-news-link {
    font-size: 0.82rem;
  }

  .all-news-wrapper .all-news-btn {
    width: 100%;
    text-align: center;
    display: block;
  }

  /* Mini barre de stats club */
  .stats-section {
    margin: 14px 10px 0;
    padding: 10px 12px;
    border-radius: 14px;
  }

  .stats-label {
    font-size: 0.8rem;
    margin-bottom: 6px;
  }

  .stat-item {
    padding: 8px 6px;
  }

  .stat-value {
    font-size: 1.1rem;
  }

  .stat-label {
    font-size: 0.8rem;
  }

  /* Prochaine journée – mise en colonne */
  .next-match-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .next-match-line-teams {
    font-size: 1rem;
  }

  .next-match-line-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 0.8rem;
  }

  .next-match-side {
    border-top: 1px solid rgba(79, 216, 255, 0.16);
    padding-top: 8px;
    margin-top: 2px;
  }

  .next-match-link {
    display: inline-block;
    width: 100%;
    text-align: center;
    margin-bottom: 6px;
  }

  .next-match-note {
    font-size: 0.8rem;
  }

  /* Joueurs en forme */
  .hot-players-section h2 {
    font-size: 1.05rem;
  }

  .hot-players-intro {
    font-size: 0.85rem;
  }

  .hot-players-grid {
    grid-template-columns: 1fr;
  }

  .hot-player-card {
    padding: 10px 10px;
  }

  .hot-player-name {
    font-size: 0.95rem;
  }

  .hot-player-info {
    font-size: 0.82rem;
  }

  /* Accordeons : meilleure lisibilité / tap */
  .acc-section {
    margin: 12px 10px 0;
  }

  .acc-header {
    padding: 10px 12px;
  }

  .acc-title-main {
    font-size: 1rem;
  }

  .acc-subtitle {
    font-size: 0.78rem;
  }

  .acc-chevron {
    font-size: 0.9rem;
    margin-left: 8px;
  }

  .acc-body {
    padding: 0 12px 12px;
    font-size: 0.88rem;
  }

  .link-grid,
  .link-grid--two,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .link-card {
    padding: 10px 10px;
  }

  .link-card-label {
    font-size: 0.9rem;
  }

  .link-card-desc {
    font-size: 0.8rem;
  }

  /* Contact */
  .contact-block {
    padding: 10px 10px;
  }

  .contact-block-title {
    font-size: 0.95rem;
  }

  .contact-block p {
    font-size: 0.83rem;
    line-height: 1.5;
  }
}

/* ====== Très petits écrans (vieux smartphones) ====== */
@media (max-width: 480px) {

  .hero-main h1 {
    font-size: 1.45rem;
  }

  .hero-section,
  .stats-section,
  .acc-section,
  .next-match-section,
  .hot-players-section {
    margin-left: 6px;
    margin-right: 6px;
  }

  .card {
    margin-left: 6px;
    margin-right: 6px;
    padding: 12px 10px;
  }

  .hero-quick-links {
    border-radius: 14px;
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-quick-link {
    width: 100%;
    text-align: left;
  }
}

/* ========================================= */
/*      SURBRILLANCE NÉON DES BLOCS (SOFT)   */
/* ========================================= */

/* Blocs principaux avec glow discret */
.card,
.stats-section,
.last-news-box,
.next-match-main,
.hot-player-card,
.link-card {
  position: relative;
  background:
    radial-gradient(circle at top left, rgba(79,216,255,0.12), transparent 60%),
    radial-gradient(circle at bottom right, rgba(79,216,255,0.08), transparent 55%),
    rgba(7, 12, 20, 0.97);
  border: 1px solid rgba(150, 235, 255, 0.45);
  box-shadow:
    0 0 6px rgba(79, 216, 255, 0.35),
    0 10px 26px rgba(0, 0, 0, 0.9);
}

/* Liseré externe très léger */
.card::before,
.stats-section::before,
.last-news-box::before,
.next-match-main::before,
.hot-player-card::before,
.link-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  border: 1px solid rgba(150, 235, 255, 0.25);
  box-shadow:
    0 0 10px rgba(79, 216, 255, 0.35);
  opacity: 0.55;
  pointer-events: none;
}

/* Survol : petit boost mais pas agressif */
.card:hover,
.last-news-box:hover,
.link-card:hover,
.hot-player-card:hover {
  box-shadow:
    0 0 10px rgba(160, 240, 255, 0.6),
    0 18px 38px rgba(0, 0, 0, 1);
}

/* ========================================= */
/*   ADAPT TITRE + LED SUR MOBILE            */
/* ========================================= */

@media (max-width: 600px) {
  .site-title {
    font-size: 1.9rem;
    line-height: 1.1;
    text-transform: none;
    letter-spacing: 0.015em;
    padding: 6px 22px 6px 26px;
    border-radius: 12px;
    height: auto;
    display: inline-flex;
    align-items: center;
  }

  .site-title::before {
    inset: 4px;
  }

  .site-title::after {
    left: 16px;
    width: 9px;
    height: 9px;
  }

  .site-title span {
    padding-left: 16px;
  }

  .site-description {
    font-size: 0.78rem;
  }
}
/* Ajuste l'espacement entre la LED rouge et le texte du titre */
.site-title::after {
  left: 12px;      /* LED un peu plus à gauche */
}

/* Ajuste le panneau du titre pour qu'il ne soit plus coupé */
.site-title {
  padding: 0 20px;      /* un peu plus d'espace à gauche et à droite */
  overflow: visible;    /* évite de couper ce qui dépasse légèrement */
}

/* Repositionne la LED rouge et le texte en conséquence */
.site-title::after {
  left: 10px;           /* LED un peu plus vers l'intérieur */
}

.site-title span {
  padding-left: 30px;   /* espace confortable entre la LED et le texte */
}
/* Petit badge "visiteurs en ligne" discret en orange */
.online-users-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  background: radial-gradient(circle at left,
    rgba(255,159,64,0.25),
    rgba(40,20,0,0.96)
  );
  border: 1px solid rgba(255,159,64,0.9);
  color: #ffb366;
  box-shadow: 0 0 8px rgba(255,159,64,0.35);
  opacity: 0.9;
}

.online-users-indicator .online-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ffb366;
  box-shadow: 0 0 8px rgba(255,159,64,0.8);
}

/* Variante si tu veux un conteneur pour l’aligner dans un coin */
.online-users-wrapper {
  display: flex;
  justify-content: flex-end;
  margin-top: 6px;
}
@media (max-width: 600px) {
  .online-users-wrapper {
    justify-content: flex-start;
  }
  .online-users-indicator {
    font-size: 0.75rem;
    padding: 3px 8px;
  }
}
.hero-photo-card {
  margin: 1.5rem 0 0;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.4rem;
}

@media (min-width: 768px) {
  .hero-photo-card {
    align-items: flex-end; /* la carte se cale à droite du texte sur desktop */
  }
}

.hero-photo-frame {
  border-radius: 14px;
  padding: 3px;
  background: linear-gradient(135deg, var(--accent-light), var(--accent-strong));
  box-shadow:
    0 0 10px rgba(79,216,255,0.5),
    0 10px 25px rgba(0,0,0,0.55);
  max-width: 260px;
}

.hero-photo-frame img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
}

.hero-photo-caption {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-soft);
  text-align: right;
}

.hero-photo-caption span {
  color: var(--accent-light);
  font-weight: 600;
}
.hero-inline-photo {
  float: right;
  max-width: 170px;
  width: 40%;
  margin: 0 0 0.9rem 1.1rem;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent-light), var(--accent-strong));
  padding: 3px;
  box-shadow:
    0 0 8px rgba(79,216,255,0.4),
    0 10px 22px rgba(0,0,0,0.55);
}

/* Adaptation sur mobile : la photo passe au-dessus du texte */
@media (max-width: 640px) {
  .hero-inline-photo {
    float: none;
    display: block;
    margin: 0 0 1rem 0;
    max-width: 260px;
    width: 100%;
  }
}
/* Carte d'administration + accordéon */
.card--admin {
  margin-top: 18px;
}

/* En-tête cliquable */
.admin-accordion-header {
  cursor: pointer;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(79,216,255,0.25);
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Partie droite : pill + flèche */
.admin-header-right {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

/* Petite flèche */
.admin-accordion-icon {
  font-size: 0.8rem;
  opacity: 0.7;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

/* Rotation de la flèche quand c'est ouvert */
.admin-accordion-header[aria-expanded="true"] .admin-accordion-icon {
  transform: rotate(180deg);
  opacity: 1;
}

/* Contenu repliable */
.admin-accordion-panel {
  margin-top: 10px;
}
/* === Intracaux : champ de score façon néon + flèches === */

.intracaux-score-input {
  position: relative;
  max-width: 70px;
  padding-right: 22px; /* un peu d'espace pour la zone des flèches */
  border-radius: 10px;
  border: 1px solid rgba(150, 235, 255, 0.55);
  background:
    radial-gradient(circle at top left, rgba(79,216,255,0.12), transparent 60%),
    radial-gradient(circle at bottom right, rgba(79,216,255,0.08), transparent 55%),
    rgba(6,12,20,0.96);
  box-shadow:
    0 0 6px rgba(79, 216, 255, 0.35),
    0 10px 18px rgba(0, 0, 0, 0.85);
  text-align: center;
}

.intracaux-score-input:focus {
  outline: none;
  border-color: rgba(160, 240, 255, 0.95);
  box-shadow:
    0 0 10px rgba(160, 240, 255, 0.7),
    0 14px 28px rgba(0, 0, 0, 1);
}
/* Chrome / Edge / Safari : zone flèches néon */
.intracaux-score-input::-webkit-inner-spin-button,
.intracaux-score-input::-webkit-outer-spin-button {
  margin: 0;
  padding: 0;
  border-left: 1px solid rgba(150, 235, 255, 0.65);
  background:
    radial-gradient(circle at 50% 20%, rgba(150,235,255,0.95), rgba(79,216,255,0.08) 60%, transparent 75%),
    radial-gradient(circle at 50% 80%, rgba(150,235,255,0.95), rgba(79,216,255,0.08) 60%, transparent 75%);
  box-shadow:
    0 0 4px rgba(79,216,255,0.8),
    0 0 10px rgba(79,216,255,0.6);
}

/* Survol de la zone de flèches : glow un peu plus fort */
.intracaux-score-input:hover::-webkit-inner-spin-button,
.intracaux-score-input:hover::-webkit-outer-spin-button {
  box-shadow:
    0 0 6px rgba(160,240,255,1),
    0 0 14px rgba(79,216,255,0.95);
}

/* Firefox : pas de flèches natives : on garde juste le look néon propre */
.intracaux-score-input[type=number] {
  -moz-appearance: textfield; /* évite les styles bizarres */
}

.cauxtt-share-bar {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 0.8rem;
}

.cauxtt-share-label {
  color: var(--text-soft);
  opacity: 0.8;
}

.cauxtt-share-btn {
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.78rem;
  font-weight: 500;
  border: 1px solid rgba(255, 255, 255, 0.13);
  background: transparent;
  color: var(--text-soft);
  text-decoration: none;
  cursor: pointer;
  line-height: 1.2;
  opacity: 0.9;
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    opacity 0.15s ease;
}

.cauxtt-share-btn:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.04);
}

/* Touches couleurs discrètes */
.cauxtt-share-btn--wa {
  border-color: rgba(37, 211, 102, 0.6);
}

.cauxtt-share-btn--fb {
  border-color: rgba(59, 89, 152, 0.6);
}

.cauxtt-share-btn--ig {
  border-color: rgba(225, 48, 108, 0.6);
}

.cauxtt-share-feedback {
  font-size: 0.75rem;
  color: var(--accent-light);
  opacity: 0.9;
}
