/* =====================================================================
   correctifs-mobile.css — JS Energie
   À charger dans base.html.twig APRÈS bootstrap :
   <link rel="stylesheet" href="{{ asset('assets/css/correctifs-mobile.css') }}">
   Corrige le défilement horizontal et le menu invisible sur téléphone.
   ===================================================================== */

/* 1. Plus jamais de défilement horizontal */
html, body { overflow-x: hidden; }
img { max-width: 100%; height: auto; }

/* 2. Icône du bouton menu visible sur le fond vert foncé
      (en complément : ajouter data-bs-theme="dark" sur la balise <nav>) */
.navbar .navbar-toggler { border-color: rgba(255,255,255,.5); }
.navbar .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255,255,255,1)' stroke-linecap='round' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* 3. Logo : plus de marges négatives qui débordent */
.navbar-brand img { margin: 0 !important; width: 64px; height: auto; }

@media (max-width: 768px) {
  /* Les largeurs et marges écrites en dur dans les templates cassent le mobile */
  .imgCarousel, .img-top { width: auto !important; max-width: 80% !important; margin-left: auto !important; margin-right: auto !important; margin-top: 0 !important; }
  .custom-label { margin-left: 0 !important; display: block; text-align: left !important; }
  input[type="radio"] { margin-left: 8px !important; margin-bottom: 0 !important; }
  h1 { font-size: 2.2rem !important; overflow-wrap: anywhere; }
  /* Titre "JS ENERGIE" de l'accueil : positionné avec margin-left:95% puis -750px */
  .contain-deb { margin-left: 0 !important; width: 100% !important; }
  .contain-main-deb { margin-left: 0 !important; width: 100% !important; padding: 0 16px; }
  .dropdown-menu { border: 0; }
}
