/* NumericScoreboard.com — feuille de style unique (même présentation que l'ancien site) */
@font-face { font-family: "Open Sans"; font-weight: 300; font-display: swap; src: url("../fonts/open-sans-300.woff2") format("woff2"); }
@font-face { font-family: "Open Sans"; font-weight: 400; font-display: swap; src: url("../fonts/open-sans-400.woff2") format("woff2"); }
@font-face { font-family: "Open Sans"; font-weight: 700; font-display: swap; src: url("../fonts/open-sans-700.woff2") format("woff2"); }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 102px; }
body { margin: 0; font-family: Arial, Helvetica, sans-serif; font-size: 14px; line-height: 1.6; color: #333; background: #fff; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
.conteneur { width: min(1170px, 100% - 60px); margin-inline: auto; }

/* Une seule page, deux langues */
html[lang="en"] [lang="fr"], html[lang="fr"] [lang="en"] { display: none !important; }

/* ---------- En-tête ---------- */
.entete { position: sticky; top: 0; z-index: 30; background: #000; border-bottom: 1px solid #e5e5e5; }
.entete .conteneur { display: flex; align-items: center; height: 101px; }
.entete .logo img { width: 386px; }
.menu { display: flex; align-items: center; gap: 39px; margin-left: auto; }
.menu a { color: #fff; text-decoration: none; font-weight: 700; font-size: 15px; white-space: nowrap; }
.menu a:hover, .menu a.actif { color: #ee0000; }
.menu a.commander {
  display: flex; align-items: stretch; background: #ee0000; color: #fff; height: 38px; margin-left: 0;
  font-family: Georgia, "Times New Roman", serif; font-size: 13px; letter-spacing: .02em; text-transform: uppercase;
}
.menu a.commander:hover { background: #c80000; color: #fff; }
.menu a.commander .panier { display: flex; align-items: center; padding: 0 13px; border-right: 1px solid #fff; }
.menu a.commander .panier svg { width: 14px; height: 14px; fill: #fff; }
.menu a.commander .texte { display: flex; align-items: center; padding: 0 22px 0 11px; }
.burger { display: none; margin-left: auto; background: none; border: 1px solid #555; color: #fff; padding: 6px 12px; font-size: 20px; cursor: pointer; }

/* ---------- Accueil ---------- */
.accueil { position: relative; background: #07255b url("../img/bg-hero.jpg") center / cover no-repeat; overflow: hidden; }
.accueil .cadre { position: relative; width: 100%; max-width: 1280px; margin: 0 auto; aspect-ratio: 1280 / 700; }
.accueil h1 {
  position: absolute; left: 3%; top: 16%; margin: 0; color: #fff;
  font-family: "Open Sans", Arial, sans-serif; font-weight: 700; font-size: clamp(34px, 6.4vw, 82px); line-height: .92;
}
.accueil .slogan {
  position: absolute; left: 3%; top: 52%; margin: 0; color: #fff;
  font-family: "Open Sans", Arial, sans-serif; font-weight: 300; font-size: clamp(16px, 2.8vw, 36px); line-height: 1.1;
}
.accueil .compteur { position: absolute; right: 2%; top: 9%; width: 58%; }
.accueil .tel-rouge { position: absolute; left: 14%; top: 62%; width: 22%; }
.accueil .tel-vert { position: absolute; left: 21%; top: 76%; width: 24%; }

/* ---------- En bref ---------- */
.faits { background: #efefef; padding: 30px 0 100px; }
.faits .conteneur { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.faits h3 { font-size: 19px; font-weight: 700; margin: 0 0 14px; color: #333; }
.faits p { margin: 0 0 22px; font-size: 14px; }

/* ---------- Sports (carrousel) ---------- */
.sports { position: relative; overflow: hidden; background: #000; }
.diapo { display: none; position: relative; background-size: cover; background-position: center; min-height: 725px; }
.diapo.active { display: block; }
.diapo .carte { position: relative; margin-left: max(30px, calc((100% - 1170px) / 2 + 67px)); padding-top: 72px; padding-bottom: 60px; width: 516px; max-width: calc(100% - 60px); }
.fleche {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 5; width: 36px; height: 36px; border-radius: 50%;
  border: 0; background: rgba(0, 0, 0, .6); color: #fff; font-size: 20px; line-height: 36px; cursor: pointer; padding: 0;
}
.fleche:hover { background: #000; }
.fleche.prec { left: 30px; } .fleche.suiv { right: 30px; }

/* carte de sport dessinée en HTML, dans le style des cartes d'origine */
.fiche { background: #000; color: #fff; padding: 12px 16px 10px; font-family: "Open Sans", Arial, sans-serif; }
.fiche .sur { font-size: 24px; font-weight: 400; line-height: 1.1; margin: 0; }
.fiche h3 { font-size: 44px; font-weight: 700; line-height: 1.05; margin: 0 0 12px; text-transform: uppercase; }
.fiche .rang { border-top: 1px solid #8a8a8a; padding: 13px 0 12px; text-align: center; }
.fiche .rang p { margin: 0 0 8px; font-size: 16px; line-height: 1.2; }
.fiche .afficheur { width: 160px; margin: 0 auto; }
.fiche .afficheur.large { width: 250px; }
.fiche .afficheur svg { display: block; width: 100%; height: auto; }
.fiche .serie { display: flex; justify-content: center; gap: 30px; flex-wrap: wrap; }
.fiche .serie .afficheur { width: 88px; margin: 0; }
.fiche.volleyball .sur, .fiche.volleyball h3 { color: #5bb5e0; }
.fiche.plage .sur, .fiche.plage h3 { color: #b5a79b; }
.fiche.pickleball .sur, .fiche.pickleball h3 { color: #d6e04a; }
.fiche.tennis .sur, .fiche.tennis h3 { color: #7c9b78; }
.fiche.hockey .sur, .fiche.hockey h3 { color: #fff; }
.diapo.pickleball { background: #2d6fb5; }
.diapo.pickleball .terrain { position: absolute; inset: 0; width: 100%; height: 100%; }

/* ---------- Vue d'ensemble ---------- */
.ensemble { padding: 95px 0 40px; text-align: center; }
.ensemble h2 { font-size: 46px; font-weight: 400; line-height: 1.2; margin: 0; color: #333; }
.ensemble .sous { font-size: 28px; margin: 4px 0 26px; color: #333; }
.ensemble .ballon { display: inline-block; border-top: 1px solid #ddd; border-bottom: 1px solid #ddd; padding: 14px 36px; margin: 0 0 20px; font-size: 14px; }
.vue { border-bottom: 1px solid #ccc; padding: 46px 0 60px; }
.vue:last-child { border-bottom: 0; }
.etiquettes { display: flex; justify-content: space-around; max-width: 620px; margin: 0 auto 26px; }
.etiquette { display: inline-block; border: 1px solid #ccc; padding: 9px 26px; color: #888; font-family: "Open Sans", Arial, sans-serif; font-weight: 700; font-size: 15px; background: #fff; }
.vue img { margin: 0 auto; }

/* ---------- Commande ---------- */
.commande { background: #efefef; padding: 70px 0 80px; text-align: center; }
.commande h2 { font-size: 36px; font-weight: 400; margin: 0 0 18px; color: #333; }
.commande p { max-width: 640px; margin: 0 auto 14px; font-size: 16px; }
.commande .bouton { display: inline-block; margin-top: 14px; background: #ee0000; color: #fff; text-decoration: none; padding: 13px 30px; font-weight: 700; text-transform: uppercase; font-size: 14px; }
.commande .bouton:hover { background: #c80000; }

/* ---------- Pied ---------- */
.pied { background: #000; color: #fff; text-align: center; font-size: 12px; padding: 22px 0 24px; }
.pied a { color: #ee0000; text-decoration: none; }
.pied .langue { background: none; border: 0; color: #ee0000; font: inherit; cursor: pointer; padding: 0; }
.haut { position: fixed; right: 75px; bottom: 0; z-index: 20; width: 48px; height: 35px; background: #333; color: #fff; border: 0; cursor: pointer; font-size: 16px; opacity: 0; pointer-events: none; transition: opacity .2s; }
.haut.visible { opacity: .9; pointer-events: auto; }

/* ---------- Petits écrans ---------- */
@media (max-width: 1000px) {
  .entete .conteneur { height: 70px; }
  .entete .logo img { width: 240px; }
  .burger { display: block; }
  .menu { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; background: #000; padding: 6px 30px 18px; }
  .menu.ouvert { display: flex; }
  .menu a { padding: 12px 0; }
  .menu a.commander { align-self: flex-start; padding: 0; margin-top: 8px; }
  html { scroll-padding-top: 70px; }
  .faits .conteneur { grid-template-columns: 1fr; }
  .diapo { min-height: 0; }
  .diapo .carte { margin: 0 auto; padding: 40px 0; }
  .fiche h3 { font-size: 34px; }
  .ensemble h2 { font-size: 32px; } .ensemble .sous { font-size: 20px; }
  .haut { right: 20px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
