/* ========== STYLES EXCLUSIFS SMARTPHONE (<=768px) ========== */
@media (max-width: 768px) {
  .masquer-mobile {
    display: none;
  }

.site-header {
  background-color: var(--bleu-fonce);
  padding: 10px 10px 0 10px;
  border-top: none;
  position: sticky;
  top: 0;
  z-index: 999;
}

  .site-header-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 10px 0 10px;

  }

  .logo {
    order: 1;
    margin-bottom: 10px;
  }

  .logo img {
    height: 40px;
    width: auto;
  }

  .site-header-inner2 {
    order: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    position: relative;
    text-align: center;
  }

  .site-branding h1 {
    font-size: 1.4em;
    margin: 0;
  }

  .site-branding p {
    font-size: 0.9em;
    margin: 0;
  }

  .conteneur-blanc {
    padding-left: 20px;
    padding-right: 20px;
    z-index: 10;
  }

  .site-header.shrink .site-header-inner {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 0 10px;
    flex-wrap: nowrap;
    position: relative;
  }

  .site-header.shrink .site-header-inner2 {
    order: 1;
    margin-right: auto;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    width: auto;
  }

  .site-header.shrink .site-branding {
  opacity: 0;
  height: 0;
  overflow: hidden;
  pointer-events: none;
  transition: all 0.3s ease;
  position: absolute;
  width: 0;
}

  .site-header.shrink .logo {
    order: 2;
    margin-left: auto;
    flex: 0 0 auto;
  }

  .site-header .main-nav {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
  }


  .menu-toggle {
    order: 3;
    display: block;
    color: var(--orange);
    font-weight: 700;    
    text-align: left;
    font-size: 1.2em;
    padding: 0.3em 0.6em;
    background: none;
    border: none;
    cursor: pointer;
    margin-bottom: 0.5em;
  }
 

  /* 1) Bouton burger + libellé — aucun changement de placement 
  .menu-toggle{
    color: var(--orange);
    font-weight: 700;    
    border-radius: .75rem;
    background: transparent;
    border: 1px solid transparent; 
    box-shadow: none;
    transition: box-shadow .25s ease, transform .15s ease, border-color .25s ease;
  }
  */

  .main-nav {
    display: none;
  }

  .main-nav .menu,
  .main-nav .menu li {
    list-style: none;
    display: block;
    margin: 0;
    padding: 0;
    text-align: center;
  }

  .main-nav .menu li::marker {
    content: none;
    display: none;
  }

  .main-nav .menu li {
  display: block;
  list-style: none;
  text-align: center;
  }

  .main-nav .menu li a {
    display: inline-block;
    width: 100%;
    text-align: center;
  }

.main-nav.open {
  display: block;
  position: absolute;
  top: 100%; /* juste en dessous du header */
  left: 50%;
  transform: translateX(-50%);
  background-color: white;
  border-radius: 0.5em;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  width: max-content;
  padding: 0.5em 1em;
}


  .main-nav .menu {
    display: none;
    flex-direction: column;
    gap: 10px;
  }

    /* Onglet actif (WordPress/ARIA) */
  .main-nav .menu li.current-menu-item > a,
  .main-nav .menu li.current_page_item > a,
  .main-nav .menu li.current-menu-ancestor > a,
  .main-nav .menu li > a[aria-current="page"]{
    color: var(--bleu-menu, var(--couleur-bleu-fonce));
  }

  .main-nav.open .menu {
    display: flex !important;
  }

  .main-nav.open .menu li {
    border-bottom: 1px solid #ccc;
    margin: 0;
  }

  .main-nav.open .menu li:last-child {
    border-bottom: none;
  }

  .main-nav.open .menu li a {
    padding: 0;
    line-height: 1.2;
    text-align: center;
  }

  .footer-infos {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.25rem;
    min-height: 1px;
  }

  .footer-liens {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    flex: 0 0 auto;
    border-bottom: 1px solid var(--gris-tech);
    padding-bottom: 0.5rem;
    margin-bottom: 0.5rem;
    width: 90%;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
  }

  /* Footer (mobile) — retirer les puces + aligner en grid */
.footer-liens ul.footer-menu-liens{
  list-style: none !important;
  margin: 0;
  padding-left: 0;
  display: grid;   /* pas de flex */
  gap: .25rem;
}
.footer-liens ul.footer-menu-liens > li{
  list-style: none !important;
  margin: 0;
  padding: 0;
}
.footer-liens ul.footer-menu-liens > li::marker{ content: ""; }
.footer-liens ul.footer-menu-liens > li::before{ content: none !important; } /* au cas où un thème ajoute un dot */


  .footer-contact {
    border-left: none;
    padding-left: 0;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    width: 90%;
    max-width: 300px;
    display: block;
  }


  .footer-lien-contact {
    margin-top: 0;
  }

  .footer-contact .bloc-contact {
    margin-bottom: 0.5rem;
  }

    img {
    max-width: 350px;
    height: auto; /* conserve les proportions */
    display: block; /* évite les surprises */
    margin-left: auto;
    margin-right: auto; /* centre si besoin */
  }

}
