/* Page d'accueil publique (SEPQ-32) : en-tête, titres de section, citation… Classes préfixées hm-.
   Chargé uniquement par templates/main/index.html.twig (styleMain.css reste inchangé pour les autres pages). */

body {
  background: var(--fond-page, #f4f7fb);
}

/* --- En-tête : photo du terrain sous un voile bleu, logo blanc, nom du club, vague --- */
.hm-entete {
  background:
    linear-gradient(100deg, rgba(11, 42, 85, .95) 0%, rgba(30, 95, 168, .78) 38%, rgba(11, 42, 85, .25) 75%, rgba(11, 42, 85, .1) 100%),
    #0b2a55 url(../images/header/terrainHome.webp) center / cover no-repeat;
  color: #fff;
  min-height: 0;
  overflow: hidden;
  padding: 90px 0 70px;
  position: relative;
}
.hm-entete-contenu {
  align-items: center;
  display: flex;
  gap: 28px;
  margin: 0 auto;
  max-width: 1100px;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}
.hm-entete-logo {
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, .35));
  flex: 0 0 auto;
  height: 190px;
  width: auto;
}
.hm-entete-textes {
  min-width: 0;
}
header.hm-entete h1.hm-entete-titre {
  color: #fff;
  font-size: 54px;
  font-weight: 700;
  letter-spacing: .01em;
  line-height: 1.05;
  margin: 0 0 10px;
  text-shadow: 0 3px 12px rgba(0, 0, 0, .4);
  text-transform: uppercase;
}
header.hm-entete p.hm-entete-devise {
  color: #fff;
  font-size: 22px;
  font-style: italic;
  font-weight: 300;
  margin: 0;
  text-shadow: 0 2px 8px rgba(0, 0, 0, .4);
}
.hm-entete-devise strong {
  font-weight: 800;
}
.hm-entete-vague {
  bottom: -1px;
  z-index: 1;
  display: block;
  height: 60px;
  left: 0;
  position: absolute;
  width: 100%;
}

/* Cloche des notifications (push.js) : pastille discrète en haut à droite */
#notifBellContainer.hm-cloche {
  align-items: center;
  background: rgba(11, 42, 85, .55);
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 18px;
  cursor: pointer;
  display: inline-flex;
  gap: 6px;
  margin: 0;
  padding: 5px 12px;
  position: absolute;
  right: 16px;
  top: 70px;
  z-index: 2;
}
.hm-cloche #notifBellIcon {
  font-size: 18px;
}
.hm-cloche #notifBellLabel {
  font-size: 13px !important;
  font-weight: 600;
}

.hm-alerte {
  margin: 12px auto 0;
  max-width: 720px;
}

/* --- Citation d'Aimé Jacquet --- */
.hm-citation {
  background: var(--fond-carte, #fff);
  border-left: 4px solid #1e5fa8;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(11, 42, 85, .08);
  color: var(--texte, #0b2a55);
  margin: 26px auto 10px;
  max-width: 700px; /* même largeur que le bandeau « Filtres » (filtres.css) */
  padding: 16px 20px 14px 54px;
  position: relative;
}
.hm-citation .fa-quote-left {
  color: #8fb3e0;
  font-size: 22px;
  left: 18px;
  position: absolute;
  top: 16px;
}
.hm-citation blockquote {
  border: 0;
  font-size: 15px;
  font-style: italic;
  line-height: 1.55;
  margin: 0;
  padding: 0;
}
.hm-citation figcaption {
  color: var(--texte-doux, #64748b);
  font-size: 13px;
  font-weight: 600;
  margin-top: 6px;
  text-align: right;
}
.hm-citation figcaption::before {
  content: "— ";
}

/* --- Titres de section (_titre_section.html.twig) --- */
.hm-titre {
  margin: 34px auto 16px;
  max-width: 1140px;
  padding: 0 16px;
}
.hm-titre-ligne {
  align-items: center;
  display: flex;
  gap: 14px;
}
.hm-titre-icone {
  color: var(--accent, #1e5fa8);
  font-size: 26px;
}
.hm-titre .hm-titre-texte {
  color: var(--texte, #0b2a55);
  font-size: 28px;
  font-weight: 700;
  margin: 0;
  white-space: nowrap;
}
.hm-titre-filet {
  background: linear-gradient(90deg, #1e5fa8, rgba(30, 95, 168, .15));
  flex: 1;
  height: 2px;
}
.hm-titre p.hm-titre-sous-titre {
  color: #475569;
  font-size: 15px;
  margin: 8px 0 0;
}
/* Grand titre centré souligné (ex. ENGAGEMENTS) */
.hm-titre--centre {
  text-align: center;
}
.hm-titre--centre .hm-titre-texte {
  display: inline-block;
  font-size: 34px;
  font-weight: 800;
  letter-spacing: .12em;
  padding-bottom: 8px;
  position: relative;
  text-transform: uppercase;
}
.hm-titre--centre .hm-titre-texte::after {
  background: #1e5fa8;
  border-radius: 2px;
  bottom: 0;
  content: "";
  height: 4px;
  left: 0;
  position: absolute;
  right: 0;
}

/* --- Mobile --- */
@media (max-width: 769px) {
  .hm-entete {
    background:
      linear-gradient(100deg, rgba(11, 42, 85, .95) 0%, rgba(30, 95, 168, .75) 45%, rgba(11, 42, 85, .3) 100%),
      #0b2a55 url(../images/header/terrainHomeMobileMin.webp) center / cover no-repeat;
    padding: 104px 0 66px; /* plus haut qu'avant (80/52) : en-tête moins tassé sur mobile */
  }
  .hm-entete-contenu {
    gap: 14px;
    padding: 0 14px;
  }
  .hm-entete-logo {
    height: 110px;
  }
  header.hm-entete h1.hm-entete-titre {
    font-size: 32px;
    margin-bottom: 6px;
  }
  header.hm-entete p.hm-entete-devise {
    font-size: 16px;
  }
  .hm-entete-vague {
    height: 40px;
  }
  #notifBellContainer.hm-cloche {
    padding: 4px 10px;
    right: 10px;
    top: 66px;
  }
  .hm-citation {
    margin: 18px 14px 6px;
    padding: 14px 14px 12px 46px;
  }
  .hm-citation .fa-quote-left {
    font-size: 18px;
    left: 14px;
  }
  .hm-citation blockquote {
    font-size: 14px;
  }
  .hm-titre {
    margin: 32px auto 12px;
  }
  .hm-titre-icone {
    font-size: 22px;
  }
  .hm-titre .hm-titre-texte {
    font-size: 24px;
  }
  .hm-titre--centre .hm-titre-texte {
    font-size: 26px;
  }
}

/* --- Agenda : une seule carte, une ligne par équipe (forme du moment), lien calendrier en pied --- */
.hm-agenda {
  background: var(--fond-carte, #fff);
  border: 1px solid var(--bordure, #edf1f6);
  border-radius: 18px;
  box-shadow: 0 3px 12px var(--ombre-carte, rgba(11, 42, 85, .07));
  display: flex;
  flex-direction: column;
  margin: 0 auto;
  max-width: 1108px; /* même largeur que les titres et les statistiques (1140 - 2 x 16) */
  overflow: hidden;
  width: calc(100% - 32px);
}
.hm-equipe {
  align-items: center;
  border-bottom: 1px solid var(--bordure, #edf1f6);
  display: flex;
  gap: 16px;
  padding: 14px 18px;
  position: relative;
  transition: background-color .15s;
}
.hm-equipe:hover {
  background: var(--fond-carte-2, #f6f9fd);
}
.hm-equipe-logo {
  border-radius: 12px;
  flex: 0 0 64px;
  height: 64px;
  width: 64px;
}
.hm-equipe-corps {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
/* Le nom porte le lien vers les résultats ; son ::after couvre toute la carte (les pastilles restent cliquables au-dessus) */
.hm-equipe a.hm-equipe-lien,
.hm-equipe a.hm-equipe-lien:hover,
.hm-equipe a.hm-equipe-lien:focus {
  color: var(--texte, #0b2a55);
  font-size: 19px;
  font-weight: 700;
  overflow: hidden;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}
/* Nom + niveau (R3, D2…) en petite pastille discrète, alignée en colonne d'une équipe à l'autre :
   le nom occupe une largeur fixe (celle du plus long, « SEP Quédillac Féminine », en em pour suivre la taille du texte) */
.hm-equipe-titre {
  align-items: center;
  display: flex;
  gap: 8px;
  min-width: 0;
}
.hm-equipe .hm-equipe-titre a.hm-equipe-lien {
  flex: 0 1 12.2em;
}
/* Niveau complet (« Régional 3 ») sur ordinateur, abrégé (« R3 ») sur mobile */
.hm-equipe-niveau-court {
  display: none;
}
@media (max-width: 769px) {
  .hm-equipe-niveau-court {
    display: inline;
  }
  .hm-equipe-niveau-complet {
    display: none;
  }
}
.hm-equipe-niveau {
  background: var(--fond-accent, #e8eef7);
  border-radius: 6px;
  color: var(--accent, #1e5fa8);
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  padding: 4px 8px;
  white-space: nowrap;
  margin-top: auto;
}
.hm-equipe-lien::after {
  content: "";
  inset: 0;
  position: absolute;
}
.hm-equipe-forme {
  display: flex;
  gap: 10px;
  position: relative;
  z-index: 1;
}
.hm-equipe a.hm-forme,
.hm-equipe a.hm-forme:hover,
.hm-equipe a.hm-forme:focus {
  border-radius: 6px;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  height: 28px;
  line-height: 28px;
  text-align: center;
  text-decoration: none;
  width: 30px;
}
.hm-equipe a.hm-forme:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}
.hm-forme--V { background: #00a83f; }
.hm-forme--N { background: #f3a000; }
.hm-forme--D { background: #dc0000; }
.hm-forme--attente { background: #8f8686; }
.hm-equipe-chevron {
  align-items: center;
  background: var(--fond-accent, #eef3fa);
  border-radius: 50%;
  color: var(--texte, #0b2a55);
  display: flex;
  flex: 0 0 38px;
  font-size: 14px;
  height: 38px;
  justify-content: center;
  width: 38px;
}
.hm-equipe:hover .hm-equipe-chevron {
  background: var(--fond-accent-2, #dce7f5);
  color: var(--accent, #1e5fa8);
}

/* Boutons (calendrier complet, classement complet…) */
.hm-agenda-calendrier {
  padding: 8px;
  text-align: center;
  margin-top: 4px;
}
a.hm-bouton,
a.hm-bouton:hover,
a.hm-bouton:focus {
  align-items: center;
  background: #1e5fa8;
  border-radius: 10px; /* même arrondi que « Classement complet » et « Envoyer » */
  box-shadow: 0 3px 10px rgba(11, 42, 85, .18);
  color: #fff;
  display: inline-flex;
  font-size: 15px;
  font-weight: 600;
  gap: 9px;
  padding: 10px 22px;
  text-decoration: none;
  transition: background-color .15s, transform .15s;
}
a.hm-bouton:hover {
  background: #0b2a55;
  transform: translateY(-1px);
}
/* Lien discret (calendrier de l'agenda) : texte bleu sans fond, léger fond au survol */
a.hm-bouton.hm-bouton--lien,
a.hm-bouton.hm-bouton--lien:focus {
  background: none;
  box-shadow: none;
  color: var(--texte, #0b2a55);
  font-size: 16px;
}
a.hm-bouton.hm-bouton--lien:hover {
  background: var(--fond-accent, #e8eef7);
  color: var(--texte, #0b2a55);
  transform: none;
}

@media (max-width: 769px) {
  .hm-agenda {
    width: calc(100% - 24px);
  }
  .hm-equipe {
    gap: 12px;
    padding: 10px 12px;
  }
  .hm-equipe-logo {
    flex-basis: 52px;
    height: 52px;
    width: 52px;
  }
  .hm-equipe a.hm-equipe-lien {
    font-size: 16px;
  }
  .hm-equipe-forme {
    gap: 5px;
  }
  .hm-equipe a.hm-forme {
    font-size: 13px;
    height: 26px;
    line-height: 26px;
    width: 26px;
  }
  .hm-equipe-chevron {
    flex-basis: 32px;
    height: 32px;
    width: 32px;
  }
}

/* --- Statistiques : une carte par catégorie (graphique Top 5 + carte Leader) --- */
.hm-stats {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 0 auto;
  max-width: 1140px;
  padding: 0 16px;
}
.hm-stat {
  background: var(--fond-carte, #fff);
  border: 1px solid var(--bordure, #edf1f6);
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(11, 42, 85, .08);
  padding: 18px 20px 16px;
}
.hm-stat-entete {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 14px;
}
.hm-stat h3.hm-stat-titre {
  align-items: center;
  color: var(--texte, #0b2a55);
  display: flex;
  font-size: 21px;
  font-weight: 700;
  gap: 10px;
  margin: 0;
}
.hm-stat-titre i,
.hm-stat-titre .icone-svg {
  color: var(--accent, #1e5fa8);
  height: 1em;
  width: 1.25em;
}
.hm-stat-saison {
  background: var(--fond-accent, #e8eef7);
  border-radius: 14px;
  color: var(--accent, #1e5fa8);
  font-size: 13px;
  font-weight: 700;
  padding: 3px 12px;
  white-space: nowrap;
}
.hm-stat p.hm-stat-vide {
  color: var(--texte-doux, #64748b);
  font-style: italic;
  margin: 10px 0;
  text-align: center;
}
.hm-stat-corps {
  align-items: center;
  display: grid;
  gap: 20px 28px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
}

/* Places 2 à 5 : avatar (photo ou initiales), nom, barre proportionnelle au leader, valeur */
ol.hm-top-liste {
  display: flex;
  flex-direction: column;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}
a.hm-top-joueur,
a.hm-top-joueur:hover,
a.hm-top-joueur:focus {
  align-items: center;
  background: var(--fond-carte, #fff);
  border: 1px solid var(--bordure, #edf1f6);
  border-radius: 12px;
  color: var(--texte, #0b2a55);
  display: flex;
  gap: 14px;
  padding: 10px 14px;
  text-decoration: none;
  transition: box-shadow .15s, transform .15s;
}
a.hm-top-joueur:hover {
  box-shadow: 0 4px 14px rgba(11, 42, 85, .12);
  transform: translateY(-1px);
}
.hm-top-rang {
  align-items: center;
  background: var(--fond-accent, #e8eef7);
  border-radius: 50%;
  color: var(--accent, #1e5fa8);
  display: flex;
  flex: 0 0 38px;
  font-size: 17px;
  font-weight: 800;
  height: 38px;
  justify-content: center;
  width: 38px;
}

/* Médailles discrètes : anneau argent (2e) et bronze (3e) */
.hm-top-rang--argent {
  box-shadow: 0 0 0 2px #c3cad4;
}

.hm-top-rang--bronze {
  box-shadow: 0 0 0 2px #d9ab80cf;
}
.hm-top-infos {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.hm-top-nom {
  align-items: center;
  display: flex;
  font-size: 15px;
  font-weight: 700;
  gap: 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.hm-top-fem {
  background: #fbe4ee;
  border-radius: 6px;
  color: #a90050;
  font-size: 11px;
  font-weight: 700;
  padding: 1px 6px;
}
.hm-top-barre {
  background: var(--fond-accent, #e8eef7);
  border-radius: 4px;
  display: block;
  height: 6px;
  overflow: hidden;
}
.hm-top-barre > span {
  background: linear-gradient(90deg, #1e5fa8, #0b2a55);
  border-radius: 4px;
  display: block;
  height: 100%;
}
.hm-top-barre--fem > span {
  background: linear-gradient(90deg, #d0397a, #a90050);
}
.hm-top-valeur {
  font-size: 20px;
  font-weight: 800;
  min-width: 28px;
  text-align: right;
}
.hm-stat-pied {
  margin-top: 14px;
  text-align: center;
}
/* Bouton « Classement complet » : pleine largeur, coins légèrement arrondis, fond gris-bleu (maquette) */
a.hm-bouton.hm-bouton--classement,
a.hm-bouton.hm-bouton--classement:hover,
a.hm-bouton.hm-bouton--classement:focus {
  background: var(--fond-accent, #e8eef7);
  border-radius: 10px;
  box-shadow: none;
  color: var(--texte, #0b2a55);
  display: flex;
  justify-content: center;
  padding: 12px 18px;
}
a.hm-bouton.hm-bouton--classement:hover {
  background: var(--fond-accent-2, #d9e3f1);
}
.hm-bouton-saison {
  font-size: 13px;
  font-style: italic;
  font-weight: 400;
}

/* Carte Leader : fond bleu SEPQ, logo du club en filigrane, photo, bandeau défilant du poste, nom et chiffre clé */
a.hm-leader,
a.hm-leader:hover,
a.hm-leader:focus {
  background: var(--fond-carte, #fff);
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(11, 42, 85, .2);
  color: var(--texte, #0b2a55);
  display: block;
  overflow: hidden;
  text-decoration: none;
  transition: box-shadow .15s, transform .15s;
}
a.hm-leader:hover {
  box-shadow: 0 10px 24px rgba(11, 42, 85, .28);
  transform: translateY(-2px);
}
.hm-leader-visuel {
  align-items: flex-end;
  background: radial-gradient(circle at 70% 30%, #1e5fa8 0%, #0b3a75 55%, #0b2a55 100%);
  display: flex;
  height: 230px;
  justify-content: center;
  overflow: hidden;
  position: relative;
}
.hm-leader-filigrane {
  height: 125%;
  opacity: .13;
  position: absolute;
  right: -22%;
  top: -10%;
  width: auto;
}
/* Textes sur la photo (à gauche) : couronne + Leader, NOM, compteur */
.hm-leader-surtitre {
  bottom: 16px;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center; /* bloc groupé, centré verticalement comme sur la maquette */
  left: 16px;
  max-width: 50%;
  position: absolute;
  text-shadow: 0 1px 4px rgba(0, 0, 0, .35);
  top: 14px;
  z-index: 2;
}
.hm-leader-rang {
  align-items: center;
  display: flex;
  font-size: 12px;
  font-weight: 500;
  gap: 7px;
  letter-spacing: .12em;
  margin-bottom: 4px;
  text-transform: uppercase;
}
.hm-leader-rang i {
  color: #ffd257;
  font-size: 13px;
  margin-bottom: inherit;
}
.hm-leader-surtitre-nom {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: .02em;
  line-height: 1.1;
  overflow-wrap: anywhere;
}
.hm-leader-compteur {
  align-items: center;
  align-self: flex-start;
  background: rgba(30, 95, 168, .85);
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 20px;
  display: flex;
  font-size: 13px;
  font-weight: 700;
  gap: 7px;
  margin-top: 16px;
  padding: 5px 12px;
  text-shadow: none;
  white-space: nowrap;
  letter-spacing: 0.15px;
}
.hm-leader-compteur .icone-svg {
  height: 1em;
  width: 1.25em;
}
.hm-leader-photo {
  border-radius: 10px 10px 0 0;
  box-shadow: 0 -4px 18px rgba(0, 0, 0, .25);
  height: 88%;
  object-fit: cover;
  margin-left: 8%; /* légèrement à droite pour laisser de la place au nom */
  object-position: 50% 15%;
  position: relative;
  width: 62%;
}
/* Photo détourée : le joueur seul, posé en bas sur le fond bleu (pas de cadre), légère ombre portée */
.hm-leader-photo.hm-leader-photo--detouree {
  border-radius: 0;
  box-shadow: none;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .35));
  height: 94%;
  object-fit: contain;
  object-position: 58% 100%; /* légèrement à droite pour laisser de la place au nom */
  width: 80%;
}
.hm-leader-photo--logo {
  background: var(--fond-carte, #fff);
  object-fit: contain;
  padding: 18px;
}
/* Bandeau défilant du poste */
.hm-leader-bandeau {
  background: var(--fond-carte, #fff);
  border-bottom: 1px solid var(--bordure, #e6ecf3);
  border-top: 1px solid var(--bordure, #e6ecf3);
  display: block;
  overflow: hidden;
  white-space: nowrap;
}
.hm-leader-bandeau-texte {
  animation: hm-defilement 18s linear infinite;
  display: inline-flex;
}
.hm-leader-bandeau-texte span {
  color: var(--texte, #0b2a55);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  padding: 4px 10px;
}
.hm-leader-bandeau-texte span + span::before {
  color: #8fb3e0;
  content: "•";
  margin-right: 10px;
}
@keyframes hm-defilement {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .hm-leader-bandeau-texte {
    animation: none;
  }
}
.hm-leader-identite {
  align-items: center;
  display: flex;
  gap: 10px;
  padding: 10px 14px 4px;
}
.hm-leader-club {
  border-radius: 8px;
  flex: 0 0 34px;
  height: 34px;
  width: 34px;
}
.hm-leader-nom {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  line-height: 1.1;
  min-width: 0;
}
.hm-leader-prenom {
  color: #475569;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}
.hm-leader-nom strong {
  font-size: 22px;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.hm-leader-valeur {
  align-items: center;
  background: #0b2a55;
  border-radius: 10px;
  color: #fff;
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.1;
  padding: 5px 10px;
}
.hm-leader-valeur strong {
  font-size: 22px;
  font-weight: 800;
}
.hm-leader-detail {
  color: var(--texte-doux, #64748b);
  display: block;
  font-size: 13px;
  padding: 2px 14px 12px;
  margin-top: 1px;
}

@media (max-width: 769px) {
  .hm-stats {
    gap: 16px;
    padding: 0 12px;
  }
  .hm-stat {
    padding: 14px 12px 12px;
  }
  .hm-stat h3.hm-stat-titre {
    font-size: 18px;
  }
  .hm-stat-corps {
    grid-template-columns: 1fr;
  }
  .hm-leader-visuel {
    height: 210px;
  }
  .hm-leader-surtitre-nom {
    font-size: 22px;
  }
  .hm-leader-nom strong {
    font-size: 19px;
  }
}

/* --- Nos valeurs : 3 cartes photo, voile bleu en bas, icône + titre centrés --- */
ul.hm-valeurs {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, 1fr);
  list-style: none;
  margin: 0 auto;
  max-width: 1140px;
  padding: 0 16px;
}
.hm-valeur {
  align-items: center;
  background-color: #1e5fa8;
  background-position: center;
  background-size: cover;
  border-radius: 16px;
  box-shadow: 0 4px 14px rgba(11, 42, 85, .15);
  display: flex;
  flex-direction: column;
  height: 240px;
  justify-content: flex-end;
  overflow: hidden;
  padding-bottom: 18px;
  position: relative;
}
.hm-valeur::before {
  background: linear-gradient(180deg, rgba(11, 42, 85, 0) 30%, rgba(11, 42, 85, .55) 65%, rgba(11, 42, 85, .9) 100%);
  content: "";
  inset: 0;
  position: absolute;
}
.hm-valeur-icone,
.hm-valeur h4.hm-valeur-titre {
  color: #fff;
  position: relative;
  text-shadow: 0 2px 8px rgba(0, 0, 0, .45);
}
.hm-valeur-icone {
  font-size: 40px;
  margin-bottom: 6px;
}
.hm-valeur h4.hm-valeur-titre {
  font-size: 30px;
  font-weight: 700;
  margin: 0;
}

/* --- Nos partenaires : bande de cartes qui défile (glisser au doigt, défilement automatique en JS) --- */
.hm-partenaires {
  margin: 0 auto 40px;
  max-width: 1140px;
  padding: 0 16px;
}
ul.hm-partenaires-bande {
  column-gap: 16px;
  display: flex;
  list-style: none;
  margin: 0;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  padding: 4px 2px 14px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}
.hm-partenaire {
  flex: 0 0 calc((100% - 32px) / 3);
  scroll-snap-align: start;
}
.hm-partenaire > a,
.hm-partenaire > div {
  background: var(--fond-carte, #fff);
  border: 1px solid #e3e9f2;
  border-radius: 14px;
  box-shadow: 0 3px 12px var(--ombre-carte, rgba(11, 42, 85, .07));
  color: var(--texte, #0b2a55);
  display: flex;
  flex-direction: column;
  gap: 8px;
  height: 100%;
  padding: 10px 10px 8px;
  text-decoration: none;
  transition: box-shadow .15s, transform .15s;
}
.hm-partenaire > a:hover,
.hm-partenaire > a:focus-visible {
  box-shadow: 0 6px 18px rgba(11, 42, 85, .14);
  color: var(--texte, #0b2a55);
  text-decoration: none;
  transform: translateY(-2px);
}
.hm-partenaire img {
  aspect-ratio: 2.7 / 1;
  border-radius: 8px;
  height: auto;
  object-fit: contain;
  width: 100%;
}
.hm-partenaire-nom {
  font-size: 14px;
  font-weight: 600;
  overflow: hidden;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 769px) {
  ul.hm-valeurs {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .hm-valeur {
    height: 190px;
  }
  .hm-partenaire {
    flex-basis: 60%;
  }
}

/* --- Recrutement + formulaire de contact (_footer_formulaire.html.twig) --- */
footer.hm-pied {
  background: none;
  color: inherit;
  margin-top: 50px;
  padding: 0;
  text-align: left;
}
.hm-recrutement {
  overflow: hidden;
  padding: 56px 16px 0;
  position: relative;
}
/* Photo du terrain (posée par custom.js) sous un voile bleu, sur la moitié haute ; fond clair dessous */
.hm-recrutement-fond {
  background: #0b2a55 center / cover no-repeat;
  height: 470px;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
}
.hm-recrutement-fond::after {
  background: linear-gradient(180deg, rgba(11, 42, 85, .9) 0%, rgba(30, 95, 168, .82) 70%, rgba(30, 95, 168, .55) 100%);
  content: "";
  inset: 0;
  position: absolute;
}
.hm-recrutement-filigrane {
  opacity: .12;
  pointer-events: none;
  position: absolute;
  right: -60px;
  top: 10px;
  width: 340px;
}
.hm-recrutement-entete {
  color: #fff;
  margin: 0 auto;
  max-width: 760px;
  position: relative;
  text-align: center;
}
.hm-recrutement h2#contact.hm-recrutement-titre {
  color: #fff;
  font-size: 42px;
  font-weight: 700;
  line-height: 1.15;
  margin: 0;
}
.hm-recrutement-titre span {
  color: rgba(111, 182, 255, .7);
  display: block;
}
.hm-recrutement-separateur {
  align-items: center;
  display: flex;
  gap: 14px;
  justify-content: center;
  margin: 14px auto;
  max-width: 420px;
}
.hm-recrutement-separateur::before,
.hm-recrutement-separateur::after {
  background: rgba(111, 182, 255, .7);
  content: "";
  flex: 1;
  height: 2px;
}
.hm-recrutement-separateur i {
  color: #fff;
  font-size: 24px;
}
.hm-recrutement p.hm-recrutement-texte {
  color: #fff;
  font-size: 17px;
  line-height: 1.55;
  margin: 0 0 34px;
}

/* Carte blanche */
.hm-recrutement-carte {
  background: var(--fond-carte, #fff);
  border-radius: 22px;
  box-shadow: 0 10px 30px rgba(11, 42, 85, .16);
  margin: 0 auto;
  max-width: 760px;
  padding: 26px 30px 30px;
  position: relative;
}
.hm-recrutement-carte-entete {
  align-items: center;
  display: flex;
  gap: 16px;
}
.hm-recrutement-pastille {
  align-items: center;
  background: #1e5fa8;
  border-radius: 50%;
  color: #fff;
  display: flex;
  flex: 0 0 64px;
  font-size: 26px;
  height: 64px;
  justify-content: center;
}
.hm-recrutement-carte-entete h3 {
  color: var(--texte, #0b2a55);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: .5px;
  margin: 0;
  text-transform: uppercase;
  white-space: nowrap;
}
.hm-recrutement-trait {
  background: #6fb6ff;
  flex: 1;
  height: 2px;
}
ul.hm-recrutement-contacts {
  border-bottom: 1px solid var(--bordure, #e2e8f0);
  color: var(--texte, #0b2a55);
  display: flex;
  flex-wrap: wrap;
  font-size: 18px;
  gap: 10px 0;
  list-style: none;
  margin: 10px 0 0;
  padding: 0 0 16px 80px;
}
.hm-recrutement-contacts li {
  align-items: center;
  display: flex;
  gap: 12px;
}
.hm-recrutement-contacts li:first-child {
  border-right: 1px solid var(--bordure-2, #cbd5e1);
  margin-right: 20px;
  padding-right: 20px;
}
.hm-recrutement-contacts li.hm-recrutement-email {
  flex-basis: 100%;
}
.hm-recrutement-contacts i {
  color: var(--accent, #1e5fa8);
  width: 20px;
}
.hm-recrutement-contacts a,
.hm-recrutement-contacts a:visited {
  color: var(--texte, #0b2a55);
  text-decoration: none;
}
.hm-recrutement-contacts a:hover {
  color: var(--accent, #1e5fa8);
}
.hm-recrutement p.hm-recrutement-info {
  color: var(--texte, #0b2a55);
  font-size: 12.5px;
  line-height: 1.5;
  margin: 14px 0 18px;
  text-align: center;
}
/* Icône dans la ligne de texte (et non à côté) : reste collée au début de la phrase quand elle passe sur 2 lignes */
.hm-recrutement-info i {
  color: var(--accent, #1e5fa8);
  font-size: 14px;
  margin-right: 6px;
  vertical-align: -1px;
}
.hm-recrutement-alerte {
  border-radius: 12px;
  margin-bottom: 14px;
  text-align: center;
}

/* Formulaire : champs arrondis avec icône (surcharge des styles globaux input/textarea/button de styleMain.css) */
.hm-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.hm-champ {
  align-items: center;
  background: var(--fond-carte-2, #f8fafd);
  border: 1px solid #d5deea;
  border-radius: 16px;
  display: flex;
  font-weight: normal;
  gap: 4px;
  margin: 0;
  padding: 0 0 0 22px;
  transition: border-color .2s, box-shadow .2s;
}
.hm-champ:focus-within {
  border-color: #1e5fa8;
  box-shadow: 0 0 0 3px rgba(30, 95, 168, .15);
}
.hm-champ i {
  color: var(--accent, #1e5fa8);
  font-size: 20px;
  width: 26px;
}
.hm-champ--message {
  align-items: flex-start;
}
.hm-champ--message i {
  margin-top: 17px;
}
.hm-form .hm-champ input,
.hm-form .hm-champ textarea {
  background: transparent;
  border: none;
  border-radius: 0 16px 16px 0;
  box-shadow: none;
  color: var(--texte, #0b2a55);
  flex: 1;
  font-family: inherit;
  font-size: 17px;
  margin: 0;
  min-width: 0;
  outline: none;
  padding: 16px 16px 16px 10px;
  width: 100%;
}
.hm-form .hm-champ textarea {
  height: 130px;
  resize: vertical;
}
.hm-champ input::placeholder,
.hm-champ textarea::placeholder {
  color: #7a8aa3;
}
.hm-form button.hm-form-envoyer {
  align-items: center;
  background: #0b3f80;
  border: none;
  border-radius: 10px;
  color: #fff;
  display: flex;
  font-family: inherit;
  font-size: 18px;
  font-weight: 700;
  gap: 12px;
  justify-content: center;
  margin-top: 4px;
  padding: 10px;
  transition: background .2s;
  width: 100%;
}
.hm-form button.hm-form-envoyer:hover {
  background: #1e5fa8;
  color: #fff;
}

/* Vague bleue vers le bas de page */
.hm-recrutement-vague {
  display: block;
  height: 70px;
  margin: 30px -16px 0;
  width: calc(100% + 32px);
}

@media (max-width: 769px) {
  .hm-recrutement {
    padding-top: 40px;
  }
  .hm-recrutement-fond {
    height: 560px;
  }
  .hm-recrutement-filigrane {
    right: -90px;
    width: 260px;
  }
  .hm-recrutement h2#contact.hm-recrutement-titre {
    font-size: 32px;
  }
  .hm-recrutement p.hm-recrutement-texte {
    font-size: 15px;
  }
  .hm-recrutement-carte {
    padding: 20px 16px 22px;
  }
  .hm-recrutement-pastille {
    flex-basis: 50px;
    font-size: 21px;
    height: 50px;
  }
  .hm-recrutement-carte-entete h3 {
    font-size: 19px;
  }
  ul.hm-recrutement-contacts {
    font-size: 15px;
    padding-left: 17px;
  }
  .hm-recrutement-contacts li:first-child {
    margin-right: 14px;
    padding-right: 14px;
  }
  .hm-recrutement-contacts li.hm-recrutement-email a {
    overflow-wrap: anywhere;
  }
}

/* Téléphones étroits (≤ 405 px : iPhone 12 à 16 = 390-393 px, petits Android 360 px) : textes un peu réduits pour
   garder le même rendu que sur un téléphone de 412 px (Pixel 9) : titre « SEP QUÉDILLAC » et titres des cartes
   (« Entraînements Hommes »…) sur une seule ligne. */
@media (max-width: 405px) {
  .hm-entete-logo {
    height: 96px;
  }
  .hm-entete-contenu {
    gap: 10px;
  }
  header.hm-entete h1.hm-entete-titre {
    font-size: 29px;
  }
  header.hm-entete p.hm-entete-devise {
    font-size: 15px;
  }
  .hm-stat h3.hm-stat-titre {
    font-size: 16.5px;
    gap: 8px;
  }
  .hm-stat-saison {
    font-size: 12px;
    padding: 3px 10px;
  }
}
@media (max-width: 360px) {
  header.hm-entete h1.hm-entete-titre {
    font-size: 26px;
  }
  .hm-entete-logo {
    height: 84px;
  }
  .hm-stat h3.hm-stat-titre {
    font-size: 15px;
  }
}

/* ===== Thème sombre (SEPQ-36) ===== */
/* Vague sous l'en-tête : même couleur que le fond de la page (bleu nuit en sombre au lieu du blanc cassé) */
.hm-entete-vague path:first-child {
  fill: var(--fond-page, #f4f7fb);
}
