/*
Theme Name: Manche Atlantique
Theme URI: http://manche-atlantique.local/
Author: MACOM DIGITALE
Description: Thème personnalisé pour Manche Atlantique Cyclisme
Version: 1.0
*/

/* Import de la police Watchtower */
@font-face {
  font-family: 'Watchtower';
  src: url('fonts/watchtower.woff2') format('woff2'),
       url('fonts/watchtower.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}

/* RESET global */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
}

#page, .site, .site-wrapper, .content-area {
  margin: 0 !important;
  padding: 0 !important;
}

body.admin-bar .sur-header {
  margin-top: 0 !important;
}

/* SUR-HEADER */
.sur-header {
  width: 100%;
  height: 112px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 40px;
  background-color: #05D9C4;
  font-family: 'Watchtower', sans-serif;
}

.sur-header .logo img {
  height: 80px;
  display: block;
}

.sur-header .menu-right ul {
  display: flex;
  gap: 30px;
  list-style: none;
}

.sur-header .menu-right a {
  text-decoration: none;
  color: #0B0A0A;
  font-size: 20px;
  font-weight: 500;
}

/* HEADER PRINCIPAL */
.main-header {
  width: 100%;
  height: 75px;
  background-color: #0B0A0A;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 40px;
  font-family: 'Watchtower', sans-serif;
  position: relative;
  z-index: 9999;      /* très élevé pour passer au-dessus du hero */
}


.main-menu {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.main-menu ul {
  display: flex;
  gap: 40px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-menu ul li a {
  text-decoration: none;
  color: #FFFFFF;
  font-size: 24px;
  font-weight: 500;
  transition: color 0.3s;
}

.main-menu ul li a:hover {
  color: #05D9C4;
}

.dropdown-arrow {
  font-size: 12px;
  margin-left: 5px;
}

.main-menu ul li .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #0B0A0A;
  list-style: none;
  padding: 10px 0;
  min-width: 180px;
  z-index: 1000;
}

.main-menu ul li .sub-menu li a {
  color: #FFFFFF;
  padding: 8px 20px;
  display: block;
  text-decoration: none;
  font-size: 22px; /* légèrement plus grand pour les sous-items */
  transition: background-color 0.3s, color 0.3s;
}

.main-menu ul li .sub-menu li a:hover {
  background-color: #05D9C4;
  color: #0B0A0A;
}

.main-menu ul li.menu-item-has-children:hover > .sub-menu {
  display: block;
}

/* Icônes à droite */
.header-icons {
  display: flex;
  gap: 20px;
  margin-left: auto;
}

.header-icons a[aria-label="YouTube"] img {
  width: 24px;
  height: 24px;
}

.header-icons a img {
  width: 20px;
  height: 20px;
  display: block;
  transition: opacity 0.3s;
}

.header-icons a:hover img {
  opacity: 0.7;
}

/* HERO */
.hero-block {
  width: 100%;
  height: 618px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* BANDEAU PARTENAIRES */
.partenaires-bandeau {
  width: 100%;
  height: 115px;               /* Hauteur du bloc */
  background: #fff;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.partenaires-marquee {
  width: 100%;
  overflow: hidden;
  position: relative;
}

.partenaires-track {
  display: flex;
  gap: 40px;                   /* espace entre les logos */
  width: max-content;
  animation: defilement-infini 50s linear infinite; /* vitesse plus rapide */
}

.partenaire-item img {
  height: 80px;                 /* tous les logos même taille */
  width: auto;
  object-fit: contain;
  display: block;
}


/* Animation infinie */
@keyframes defilement-infini {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .sur-header {
    height: 80px;
    padding: 0 20px;
    flex-direction: column;
    justify-content: center;
  }

  .sur-header .logo img {
    height: 60px;
    margin-bottom: 10px;
  }

  .sur-header .menu-right ul {
    flex-direction: column;
    gap: 15px;
  }

  .main-header {
    flex-direction: column;
    height: auto;
    padding: 10px 20px;
  }

  .main-menu {
    position: static;
    transform: none;
  }

  .main-menu ul {
    flex-direction: column;
    gap: 15px;
    align-items: center;
  }

  .main-menu ul li .sub-menu {
    position: static;
    min-width: auto;
    padding: 0;
  }

  .main-menu ul li .sub-menu li a {
    padding: 8px 0;
    text-align: center;
  }

  .header-icons {
    margin-top: 10px;
  }
}

/* Premier bandeau - titre en noir */
.edition-banner-top {
  height: 133px;
  background-color: #05D9C4;   /* même couleur que le sur-header */
  display: flex;
  align-items: center;
  justify-content: center;
}

.edition-banner-top h2 {
  font-family: 'Watchtower', sans-serif;
  color: #0B0A0A;              /* texte noir */
  font-size: 75px;
  margin: 0;
}

/* Second bandeau - sous-titre avec fond noir et surlignage vert */
.edition-banner-sub {
  height: 57px;
  background-color: #0B0A0A;
  display: flex;
  align-items: center;
  justify-content: center;
}

.edition-banner-sub p {
  font-family: 'Watchtower', sans-serif !important;
  color: #ffffff !important;
  font-size: 40px !important;
  text-align: center !important;
  margin: 0 !important;
}

.edition-banner-sub .highlight {
  background-color: #05D9C4 !important; /* vert */
  display: inline-block;
  width: 38px !important;
  height: 44px !important;
  line-height: 44px !important; /* centre verticalement le texte */
  text-align: center;
  color: #0B0A0A !important; /* texte noir sur fond vert */
}




/* Section principale - image de fond avec overlay noir */
.edition-bg {
  position: relative;
  width: 100%;
  height: 504px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.edition-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.7); /* filtre noir opacité 70% */
}

/* Cartes */
.edition-cards {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  gap: 40px;
  z-index: 10;
}

.edition-card {
  text-decoration: none; /* supprime le soulignement si c'est un lien */
  color: inherit;        /* conserve la couleur du texte existante */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 329px;
  height: 329px;
  border-radius: 10%;
  background-color: #0B0A0A;
  padding: 20px;
  text-align: center;
}

.edition-card:hover {
  cursor: pointer;       /* indique qu'on peut cliquer */
}


.edition-card img {
  width: 90px;
  height: 90px;
  object-fit: contain;
  margin-bottom: 20px;
}

.edition-card h3 {
  font-family: 'Watchtower', sans-serif;
  font-size: 40px;
  color: #FFFF;
  margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
  .edition-cards {
    flex-direction: column;
    gap: 20px;
    transform: translate(-50%, -40%);
  }

  .edition-card {
    width: 80%;
    height: auto;
    padding: 15px;
  }

  .edition-card img {
    width: 50px;
    height: 50px;
  }

  .edition-card h3 {
    font-size: 20px;
  }
}

.palmares-section {
  position: relative;        /* nécessaire pour le positionnement absolu */
  height: auto;              /* s’adapte au contenu */
  overflow: visible;         /* pour ne pas couper le bandeau */
  padding: 0;                /* plus d’espace en haut ou en bas */
  
  background-position: center center; /* centre l'image */
  background-repeat: no-repeat;       /* pas de répétition */
  background-size: cover;             /* couvre tout le conteneur */
}


/* Overlay (reste derrière le contenu) */
.palmares-section::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1; /* l’overlay reste derrière */
}

/* Bandeau vert collé en haut */
.palmares-banner {
  position: absolute;
  top: 0;
  left: 0;
  width: 1440px;
  height: 133px;
  background-color: #05D9C4;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 5;
}

.palmares-banner h2 {
  font-size: 75px;
  font-weight: 500;
  color: #0B0A0A;
  margin: 0;
}

/* Contenu global */
.palmares-content {
  position: relative;
  z-index: 2; /* contenu au-dessus de l’overlay */
  display: flex;
  justify-content: space-between;
  align-items: flex-start;  /* aligne en haut */
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 80px; /* décalage à droite/gauche comme avant */
  top: 100px; /* remonte le contenu (ajuste la valeur) */
}

/* Partie gauche : photo + texte */
.palmares-left {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px; /* espace entre image et texte */
}

.palmares-left .palmares-photo-card {
  position: relative;
  width: 337px;
  height: 397px;
}

.palmares-photo-card {
  width: 337px;
  height: 397px;       /* fixe pour alignement avec le reste */
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}
.palmares-photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;  /* recadre l’image correctement */
  display: block;
}

/* ✅ Badge identique à la front page */
.palmares-badge {
  position: absolute;
  top: 0;
  left: 0px;
  width: 74px;
  height: 32px;
  background: #0B0A0A;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
  font-size: 16px;
  z-index: 10;
  font-family: 'Roboto', sans-serif;
}

/* Rectangle noir sous la photo, intégré au flux */
.palmares-text-below {
  width: 337px;
  height: 42px;
  background-color: #0B0A0A;
  color: #fff;
  font-family: 'Roboto', sans-serif;
  font-weight: 500;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin-top: -5px; /* petit espace sous l'image */
}
/* Partie droite */
.palmares-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-left: 80px;
}

/* 4 petits rectangles */
.palmares-small-rects {
  display: flex;
  justify-content: space-between;
  width: 776px;
  margin-bottom: 20px;
}

.small-rect {
  width: 142px;
  height: 32px;
  background: #05D9C4;
  color: #0B0A0A;             /* texte noir */
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Roboto', sans-serif;  /* ✅ Roboto */
  font-weight: bold;                  /* ✅ Bold */
}

/* Container global pour les lignes */
.palmares-big-rects {
  display: flex;
  flex-direction: column;
  gap: 10px; /* petit espace entre les lignes */
  width: 776px;  /* largeur totale imposée */
}

/* Chaque ligne de rectangles noirs */
.palmares-black-rects {
  display: flex;
  width: 776px; /* largeur fixe */
  height: 41px; /* hauteur fixe */
}

.black-rect {
  width: 194px;
  height: 41px;
  background: #0B0A0A;
  display: flex;
  align-items: center;
  justify-content: center; /* centre horizontalement par défaut */
  color: #FFFFFF;
  font-family: 'Roboto', sans-serif;
  font-weight: 500;
  font-size: 16px;
  text-align: center;
  box-sizing: border-box;

  /* Décalage très léger vers la droite */
  padding-left: 4px; 
}

/* Premier rectangle : texte plus à gauche */
.palmares-black-rects .black-rect:first-child {
  justify-content: flex-start;
  padding-left: 40px; /* pousse le texte à gauche */
  text-align: left;
  font-size: 20px;      /* taille du texte uniquement pour le premier */
}

/* Dernier rectangle : texte plus à droite */
.palmares-black-rects .black-rect:last-child {
  justify-content: flex-end;
  padding-right: 30px; /* pousse le texte à droite */
  text-align: right;
  
}

/* Responsive : pour que ça tienne sur mobile */
@media(max-width: 1024px){
  .palmares-black-rects {
    flex-direction: column; 
  }

  .black-rect {
    width: 100%;
    height: 40px;
    margin-bottom: 5px;
  }
}
.palmares-buttons {
    display: flex;
    justify-content: flex-end; /* aligner à droite */
    gap: 16px; /* espace entre les boutons */
    margin-top: 20px;
    margin-right: 40px; /* décale légèrement vers la gauche depuis le bord droit */
}


.palmares-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 239px;
    height: 56px;
    border: 2px solid #05D9C4; /* contour vert */
    background-color: transparent;
    color: #ffffff; /* texte blanc */
    text-decoration: none;
    font-family: 'Roboto', sans-serif;
    font-weight: 500; /* Medium */
    font-size: 18px;
    transition: all 0.3s ease;
}


.palmares-btn:hover {
    background-color: #05D9C4; /* fond vert */
    color: #000000; /* texte noir */
}



/* Responsive */
@media(max-width: 1024px){
  .palmares-content {
    flex-direction: column;
    align-items: center;
  }

  .palmares-left, .palmares-right {
    margin-left: 0;
  }

  .palmares-right .big-rect, 
  .palmares-right .small-rect {
    width: 100%;
  }
}
.palmares-bottom-bar {
  position: absolute; /* permet de le coller en bas de la section */
  bottom: 0;          /* bas de la section */
  left: 0;
  width: 100%;
  height: 18px;
  background-color: #05D9C4;
  z-index: 4;         /* au-dessus de l’overlay */
   margin-top: 40px; /* <-- descend le bandeau depuis le haut de la section */

}

/* Bloc partenaires */
.partners-block {
  background-color: #fff;
  padding: 40px 20px;
}

.partners-block-title {
  font-family: 'Watchtower', sans-serif;
  color: #0B0A0A;
  font-size: 60px;
  text-align: center;
  margin-bottom: 40px;
}

/* Flex container pour texte + image */
.partners-block-main {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
  gap: 30px;
}

/* Texte + boutons */
.partners-block-left {
  flex: 1 1 400px;
  margin-top: 60px
}

.partners-block-text {
  font-family: 'Roboto', sans-serif;
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 20px;
}

.partners-block-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.partners-block-buttons a {
  font-family: 'Roboto', sans-serif;
  font-weight: 500;
  font-size: 18px;
  padding: 12px 35px;
  border: 2px solid #05D9C4;
  background: #0B0A0A;
  color: #fff;
  text-decoration: none;
  transition: all 0.3s;
}

.partners-block-buttons a:hover {
  background: #fff;
  color: #0B0A0A;
  border-color: #0B0A0A;
}

/* Image */
.partners-block-right {
  flex: 1 1 400px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.partners-block-right img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  border: 2px solid #05D9C4;
}

/* Responsive */
@media (max-width: 1024px) {
  .partners-block-title {
    font-size: 48px;
  }
}

@media (max-width: 768px) {
  .partners-block-main {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .partners-block-title {
    font-size: 36px;
  }

  .partners-block-text {
    text-align: center;
  }

  .partners-block-buttons {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .partners-block-title {
    font-size: 28px;
  }

  .partners-block-buttons a {
    font-size: 16px;
    padding: 10px 25px;
  }
}

/* Sur-bandeau vert */
.footer-top-bar {
  width: 100%;
  height: 18px;
  background-color: #05D9C4;
  position: absolute;
  top: 0;
  left: 0;
}
/* Footer principal */
.site-footer {
  width: 100%;          /* prend toute la largeur de l'écran */
  max-width: 1440px;    /* limite la largeur sur grand écran */
  height: 420px;
  background-color: #0B0A0A;
  color: #fff;
  font-family: 'Roboto', sans-serif;
  margin: 0 auto;       /* marge par défaut à 0 pour toutes les pages */
  position: relative;
  padding-top: 18px;    /* pour que le sur-bandeau soit collé */
  box-sizing: border-box;
  overflow-x: hidden;   /* empêche tout dépassement horizontal */
}

/* === ESPACE AU-DESSUS DU FOOTER POUR LA FRONT PAGE ET LA PAGE ORGANISATION === */
body.page-template-front-page .site-footer,
body.front-page .site-footer,
body.page-template-page-organisation .site-footer {
  margin-top: 40px; /* espace au-dessus du footer */
}


/* Conteneur principal */
.footer-container {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 0;
}

.footer-logo {
  position: absolute;
  top: 50px;  /* descendu pour que le logo ne soit pas coupé */
  left: 60px;
  z-index: 10;
}

.footer-logo a {
  display: block;
  width: 119px;
  height: 131px;
  background-image: url('https://exemple.com/mon-logo.png'); /* lien de l'image */
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

/* Logo du footer réduit */
.footer-logo img {
  width: 80px;
  height: 95px;
  object-fit: contain;
}

.footer-links {
  display: flex;
  gap: 140px;
  font-size: 18px;
  position: absolute;
  top: 120px;
  left: 50%;
  transform: translateX(-50%);
  align-items: flex-start;
}

.footer-links > a,
.footer-course > a {
  color: #fff;
  text-decoration: none;
  font-family: 'Roboto', sans-serif;
  font-weight: 700;
  display: block;
  margin-bottom: 5px;
}

.footer-links a:hover {
  color: #05D9C4;
}

/* Conteneur de Course et ses sous-items */
.footer-course {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 150px;
}

/* Sous-items */
.footer-course-subitems {
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: center;
  white-space: nowrap;
}

.footer-course-subitems a {
  font-weight: 500;
  font-size: 16px;
  color: #fff;
  text-decoration: none;
}

.footer-course-subitems a:hover {
  color: #05D9C4;
}

/* Affichage au survol */
.footer-dropdown:hover .footer-dropdown-content {
  display: flex;
}

.footer-bottom {
  position: absolute;
  bottom: 20px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #aaa;
  font-family: 'Roboto', sans-serif;
}

/* Menu légal à gauche */
.footer-legal {
  position: absolute;
  left: 60px;
  bottom: 0;
  display: flex;
  gap: 20px;
}

.footer-legal a {
  color: #aaa;
  text-decoration: none;
  font-weight: 500;
}

.footer-legal a:hover {
  color: #05D9C4;
}

/* Texte centré */
.footer-center {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  text-align: center;
}

.footer-center .footer-credit a {
  color: #05D9C4;
  text-decoration: none;
  font-weight: 500;
}

.footer-center .footer-credit a:hover {
  text-decoration: underline;
}

.footer-center .footer-copyright {
  color: #aaa;
  margin: 0;
  font-weight: 400;
}

.footer-center .footer-copyright .company-name {
  color: #05D9C4;
  font-weight: 500;
}

/* Logos réseaux sociaux */
.footer-socials {
  position: absolute;
  right: 60px;
  bottom: 0;
  display: flex;
  gap: 15px;
}

.footer-socials img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

/* Agrandir légèrement le logo YouTube */
.footer-socials a:first-child img {
  width: 28px;
  height: 28px;
}

/* =========================
   MEDIA QUERIES GLOBALES
========================= */

/* Tablettes / petits écrans */
@media (max-width: 1024px) {


  /* HERO */
  .hero-block {
    height: 400px;
  }

  /* SECTION ÉDITION */
  .edition-banner-top h2 {
    font-size: 50px;
  }
  .edition-banner-sub p {
    font-size: 28px !important;
  }
  .edition-cards {
    flex-direction: column;
    top: 45%;
    transform: translate(-50%, -50%);
    gap: 20px;
  }
  .edition-card {
    width: 80%;
    height: auto;
    padding: 15px;
  }
  .edition-card img {
    width: 50px;
    height: 50px;
  }
  .edition-card h3 {
    font-size: 20px;
  }

  /* PALMARÈS */
  .palmares-section {
    height: auto;
    padding-bottom: 40px;
  }
  .palmares-banner {
    width: 100%;
    height: 100px;
  }
  .palmares-banner h2 {
    font-size: 45px;
  }
  .palmares-content {
    flex-direction: column;
    align-items: center;
    padding: 0 20px;
    top: 80px;
  }
  .palmares-left {
    display: none;
  }
  .palmares-right .big-rect,
  .palmares-right .small-rect {
    width: 100%;
  }
  .palmares-black-rects {
    flex-direction: column;
  }
  .black-rect {
    width: 100%;
    margin-bottom: 5px;
  }
  .palmares-buttons {
    position: static;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
  }
@media (max-width: 1024px) {
  /* Container général */
  .partners-block {
    padding: 15px 10px;
    text-align: center;
    background-color: #fff; /* optionnel */
  }

  /* Titre */
  .partners-block-title {
    font-size: 34px; /* plus grand pour mobile */
    line-height: 1.2;
    margin-bottom: 10px; /* réduire l’espace sous le titre */
  }

  /* Contenu principal */
  .partners-block-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px; /* réduire l’espace global */
  }

  /* Image */
  .partners-block-right img {
    width: 100%;
    max-width: 280px; /* taille optimale mobile */
    height: auto;
    margin: -10px auto 10px; /* remonter légèrement l'image */
    display: block;
  }

  /* Texte */
  .partners-block-left {
    width: 100%;
  }

  .partners-block-text {
    margin: 0 auto;
    font-size: 16px;
    line-height: 1.5;
    max-width: 95%;
  }

  /* Boutons */
  .partners-block-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    justify-content: center;
    align-items: center;
    margin: 5px 0 15px; /* réduire l’espace autour des boutons */
  }

  .partners-block-buttons a {
    display: inline-block;
    padding: 10px 20px;
    font-size: 16px;
    border-radius: 8px;
    text-decoration: none;
    background-color: #05D9C4;
    color: #0B0A0A;
    font-weight: bold;
    transition: all 0.3s ease;
  }

  .partners-block-buttons a:hover {
    background-color: #04b6a0;
  }
}



  /* FOOTER */
  .site-footer {
    height: auto;
    padding: 60px 20px 20px 20px;
    max-width: 100%;
  }
  .footer-logo {
    position: static;
    margin-bottom: 20px;
    text-align: center;
  }
  .footer-links {
    flex-direction: column;
    gap: 30px;
    position: static;
    transform: none;
    align-items: center;
    margin-bottom: 20px;
  }
  .footer-course {
    align-items: center;
  }
  .footer-course-subitems {
    align-items: center;
    gap: 10px;
  }
  .footer-bottom {
    position: static;
    margin-top: 20px;
    text-align: center;
  }
  .footer-legal {
    position: static;
    margin-bottom: 10px;
    justify-content: center;
    gap: 15px;
  }
  .footer-center {
    position: static;
    transform: none;
    margin-bottom: 10px;
  }
  .footer-socials {
    position: static;
    justify-content: center;
    margin-bottom: 10px;
  }
}

/* PETITS ÉCRANS MOBILES */
@media(max-width: 768px) {

  /* Sur-header et header déjà ajustés par 1024px */
  .hero-block {
    height: 300px;
  }
  .edition-banner-top h2 {
    font-size: 36px;
  }
  .edition-banner-sub p {
    font-size: 20px !important;
  }
  .palmares-banner h2 {
    font-size: 32px;
  }
  .partners-block-title {
    font-size: 28px;
  }
  .footer-links {
    gap: 20px;
  }
}

/* SUPER PETITS ÉCRANS (Smartphone très petit) */
@media(max-width: 480px) {
  .edition-card h3 {
    font-size: 18px;
  }
  .palmares-banner h2,
  .edition-banner-top h2 {
    font-size: 28px;
  }
  .edition-banner-sub p {
    font-size: 16px !important;
  }
  .partners-block-title {
    font-size: 24px;
  }
}



@media (max-width: 768px) {
  /* Premier bandeau - titre en noir */
  .edition-banner-top {
    height: 80px; /* réduit pour mobile */
    padding: 0 10px; /* un peu d'espace sur les côtés */
  }

  .edition-banner-top h2 {
    font-size: 35px; /* texte plus petit */
    line-height: 1.2;
  }

  /* Second bandeau - sous-titre avec fond noir et surlignage vert */
  .edition-banner-sub {
    height: 40px; /* réduit pour mobile */
    padding: 0 10px;
  }

  .edition-banner-sub p {
    font-size: 18px !important; /* texte plus petit */
  }

  .edition-banner-sub .highlight {
    width: 20px !important; /* réduit largeur surlignage */
    height: 20px !important; /* réduit hauteur surlignage */
    line-height: 20px !important; /* centre verticalement */
    font-size: 14px; /* texte plus petit dans le surlignage */
  }
}
/* Par défaut, le menu mobile est visible sur mobile */
.mobile-menu-container {
  display: block;
}

/* À partir de 1024px (écrans desktop), on le masque */
@media screen and (min-width: 1024px) {
  .mobile-menu-container {
    display: none;
  }
}
/* ===== HEADER MOBILE : logo gauche, burger droite ===== */
@media (max-width: 1024px) {
  
  /* Masquer header desktop */
  .sur-header,
  .main-header {
    display: none !important;
  }

  /* Conteneur menu mobile */
  .mobile-menu-container {
    display: flex;
    justify-content: space-between; /* logo gauche, burger droite */
    align-items: center;
    width: 100%;
    padding: 10px 20px;
    background-color: #ffffff;
    position: relative;
    z-index: 10000;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  }

  .mobile-logo img {
    height: 55px;
    width: auto;
  }

  /* Bouton burger */
  .burger-btn {
    font-size: 30px;
    background: none;
    border: none;
    color: #0B0A0A;
    cursor: pointer;
    flex-shrink: 0;
  }

  /* Menu coulissant depuis la droite */
  .mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 250px;
    height: 100%;
    background-color: #05D9C4;
    padding-top: 80px;
    transition: right 0.3s ease;
    font-family: 'Watchtower', sans-serif!important;
    overflow-y: auto;
    z-index: 10000;
  }

  .mobile-menu.active {
    right: 0;
  }

  .mobile-menu ul {
    list-style: none;
    padding: 0 20px;
    margin: 0;
  }

  .mobile-menu ul li {
    margin-bottom: 20px;
  }

  .mobile-menu ul li a {
    color: #0B0A0A;
    font-size: 22px;
    text-decoration: none;
    display: block;
  }

  .mobile-menu ul li a:hover {
    color: #ffffff;
  }

  /* Sous-menus */
  .mobile-menu ul li .sub-menu {
    display: none;
    padding-left: 15px;
  }

  .mobile-menu ul li.menu-item-has-children.active > .sub-menu {
    display: block;
  }

  /* Overlay */
  .mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.3);
    display: none;
    z-index: 9999;
  }

  .mobile-menu-overlay.active {
    display: block;
  }
}

/* ===== Desktop : masquer le menu mobile ===== */
@media (min-width: 1025px) {
  .mobile-menu-container,
  .mobile-menu,
  .mobile-menu-overlay {
    display: none !important;
  }
}

@media (max-width: 1024px) {
  /* Tout le palmarès + titre */
  .palmares-section,
  .palmares-banner,
  .palmares-banner h2,
  .palmares-title { /* parfois le titre a cette classe */
    display: none !important;
  }
}
@media (max-width: 1024px) {
    /* Cacher toute la section Palmarès en mobile */
    .palmares-section,
    .palmares-banner-top {
        display: none !important;
    }
}
/* Mobile / Tablette */
@media (max-width: 768px) {
  .partners-block-main {
    flex-direction: column;
    align-items: center;
    gap: 15px; /* réduit l'espace vertical global */
    padding-bottom: -20px; /* réduit l'espace sous la section */
  }

  /* Texte au-dessus */
  .partners-block-left {
    order: 1;
    margin-top: 0;
    text-align: center;
  }

  /* Image juste en dessous du texte */
  .partners-block-right {
    order: 2;
    margin-top: -70px; /* réduit l'espace au-dessus de l'image */
    display: flex;
    justify-content: center;
  }

  /* Boutons en dessous de l'image */
  .partners-block-buttons {
    order: 3;
    justify-content: center;
    margin-top: 50px;
    display: flex;       /* conserver le style desktop */
    gap: 15px;           /* conserver le style desktop */
    flex-wrap: wrap;     /* conserver le style desktop */
  }

  .partners-block-title {
    font-size: 36px;
    margin-bottom: 25px;
  }
}

/* Petits smartphones */
@media (max-width: 480px) {
  .partners-block-left {
    margin-top: 0;
  }

  .partners-block-title {
    font-size: 40px;
    margin-bottom: 20px;
  }

  .partners-block-buttons a {
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    font-size: 18px;     /* garder la même taille que desktop */
    padding: 12px 35px;  /* garder la même taille que desktop */
    border: 2px solid #05D9C4;
    background: #0B0A0A;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s;
  }

  .partners-block-buttons a:hover {
    background: #fff;
    color: #0B0A0A;
    border-color: #0B0A0A;
  }

  .partners-block-right img {
    width: 120%;  /* image un peu plus large pour occuper l’espace */
    height: auto;
  }
}
@media (max-width: 768px) {
  .partners-block-right {
    display: none;
  }
}
/* ==== FORCE POLICE WATCHTOWER EN MOBILE ET TABLETTE ==== */
@media (max-width: 1024px) {
  /* Tous les titres */
  h1, h2, h3, h4, h5, h6,
  .edition-banner-top h2,
  .edition-banner-sub p,
  .partners-block-title,
  .palmares-banner h2 {
    font-family: 'Watchtower', sans-serif !important;
  }

  /* Menus desktop cachés et menu mobile */
  .main-menu ul li a,
  .mobile-menu ul li a {
    font-family: 'Watchtower', sans-serif !important;
  }

  /* Boutons principaux */
  .partners-block-buttons a,
  .palmares-btn,
  .edition-card h3 {
    font-family: 'Watchtower', sans-serif !important;
  }
}

/* Pour petits écrans <768px */
@media (max-width: 768px) {
  h1, h2, h3, h4, h5, h6,
  .edition-banner-top h2,
  .edition-banner-sub p,
  .partners-block-title,
  .palmares-banner h2,
  .main-menu ul li a,
  .mobile-menu ul li a,
  .partners-block-buttons a,
  .palmares-btn,
  .edition-card h3 {
    font-family: 'Watchtower', sans-serif !important;
  }
}
