/* ============================================================ */
/* CORRECTIONS GLOBALES - TOUTES LES PAGES                      */
/* ============================================================ */
/* Fichier indépendant de Nicepage.                             */
/* Ne sera PAS écrasé en cas de réexportation du site.          */
/* À charger EN DERNIER dans le <head> de chaque page HTML.     */
/* ============================================================ */

@media (max-width: 767px) {
  
  /* ============================================== */
  /* HEADER : MENU HAMBURGER (toutes les pages)     */
  /* ============================================== */
  
  /* Marge intérieure du header : espace entre le bord et le menu */
  header .u-sheet-1 {
    padding-left: 25px !important;
    padding-right: 25px !important;
  }

  /* On s'assure que le hamburger reste aligné à droite */
  .menu-collapse {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
  }

  /* On limite la taille du logo pour ne pas pousser le hamburger */
  .u-logo {
    max-width: 60px !important;
  }

   /* ============================================== */
  /* SÉCURITÉ : PAS DE DÉBORDEMENT HORIZONTAL       */
  /* ============================================== */
  /* Note : on ne met PAS overflow-x: hidden sur    */
  /* body, car cela casserait le header sticky.     */
  /* On le met uniquement sur html.                 */
  
 
	 html, body {
	  overflow-x: hidden !important;
	  width: 100% !important;
	  max-width: 100% !important;
	  position: relative !important;
	}
 
}




/* ============================================== */
/* PAGE ACCUEIL : CARTES DE LA SECTION 1          */
/* ============================================== */

@media (max-width: 767px) {
  
  /* Conteneur des 4 cartes : largeur relative */
  .u-section-1 .u-list-2 {
    width: 90% !important;
    max-width: 400px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  /* Grille des cartes : hauteur auto */
  .u-section-1 .u-repeater-2 {
    min-height: auto !important;
    height: auto !important;
  }

  /* Chaque carte : hauteur auto */
  .u-section-1 .u-list-item-2,
  .u-section-1 .u-list-item-3,
  .u-section-1 .u-list-item-4,
  .u-section-1 .u-list-item-5 {
    height: auto !important;
    min-height: auto !important;
  }
}

@media (max-width: 575px) {
  .u-section-1 .u-list-2 {
    width: 92% !important;
    max-width: 340px !important;
  }
}


/* ============================================== */
/* CORRECTION : FLÈCHE "RETOUR EN HAUT"           */
/* ============================================== */

.u-back-to-top {
  right: 15px !important;
  left: auto !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  max-width: 64px !important;
}