/* ===========================================================================
   PIED DE PAGE DE L ACCUEIL
   Le logo etait pose sur un cartouche blanc au milieu du bleu nuit, les trois
   reseaux sociaux occupaient de grandes cases inertes et le lien « retour en
   haut » se perdait dans la ligne de bas de page.
   =========================================================================== */

/* ------------------------------------------------------------------ logo */
.m-footer-logo {
  /* la maquette posait le logo sur un cartouche blanc et le recadrait :
     la version claire du logo se suffit a elle-meme sur le fond nuit */
  display: inline-block;
  width: auto;
  padding: 0;
  margin-bottom: 16px;
  border-radius: 0;
  background: none;
}
.m-footer-logo img {
  position: static;
  top: auto;
  left: auto;
  width: auto;
  max-width: none;
  height: 62px;
  display: block;
}

.m-footer-company > p {
  max-width: 32ch;
  font-size: 0.88rem;
  line-height: 1.7;
}

/* ------------------------------------------------------------------ réseaux sociaux */
.m-footer-social { margin-top: 22px; }
.m-footer-social h3 {
  margin-bottom: 11px;
  font-size: 0.7rem;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: #8fb0cc;
}
.m-social-links { display: flex; gap: 10px; }
.m-social-link {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid #23415f;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  color: #c6d9eb;
  transition: background 200ms, border-color 200ms, color 200ms, transform 200ms;
}
.m-social-link:hover {
  background: #2f882c;
  border-color: #2f882c;
  color: #fff;
  transform: translateY(-2px);
}
.m-social-link svg { width: 18px; height: 18px; }
/* le libelle sous l icone alourdissait le bloc : il reste pour les lecteurs d ecran */
.m-social-link > span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.m-social-link[aria-disabled='true'] { opacity: 0.4; cursor: default; }
.m-social-link[aria-disabled='true']:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: #23415f;
  color: #c6d9eb;
  transform: none;
}
.m-social-status { margin-top: 10px; font-size: 0.78rem; color: #7f9cb8; }

/* ------------------------------------------------------------------ colonnes */
.m-footer-columns { align-items: start; }
.m-footer-links h3,
.m-footer-contact h3 {
  margin-bottom: 13px;
  font-size: 0.7rem;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: #8fb0cc;
}
.m-footer-links a,
.m-footer-links button { padding: 5px 0; font-size: 0.88rem; }

.m-footer-availability {
  margin-top: 18px;
  padding: 13px 15px;
  border: 1px solid #23415f;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
}

/* ------------------------------------------------------------------ départements */
.m-footer-regions { gap: 9px; }
.m-footer-regions a { transition: background 200ms, border-color 200ms, color 200ms; }
.m-footer-regions a:hover { background: #0659a7; border-color: #0659a7; color: #fff; }

/* ------------------------------------------------------------------ retour en haut */
.cps-remonter {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 60;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #0659a7;
  color: #fff;
  box-shadow: 0 10px 28px rgba(6, 89, 167, 0.38);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  translate: 0 14px;
  transition: opacity 260ms, translate 260ms, visibility 260ms, background 200ms;
}
.cps-remonter[data-visible='oui'] { opacity: 1; visibility: visible; translate: 0 0; }
.cps-remonter:hover { background: #2f882c; }
.cps-remonter svg { width: 21px; height: 21px; color: #fff; }

@media (max-width: 700px) {
  /* la barre d appel occupe le bas de l ecran : le bouton remonte au-dessus */
  .cps-remonter { right: 14px; bottom: 84px; width: 44px; height: 44px; }
  .m-footer-logo img { height: 50px; }
  .m-social-link { width: 40px; height: 40px; }
}

/* ===========================================================================
   PIED DE PAGE SUR TÉLÉPHONE
   Les grandes pastilles de réseaux sociaux, la mention « bientôt disponibles »
   et les colonnes trop larges rendaient le bas de page confus. Tout est
   resserré : icônes rondes en ligne, deux colonnes lisibles, et le bouton
   « retour en haut » dégagé de la barre d’appel.
   =========================================================================== */
@media (max-width: 700px) {
  .m-footer-social { margin-top: 18px; }
  .m-footer-social h3 { margin-bottom: 10px; font-size: 0.68rem; letter-spacing: 1.6px; }

  .m-social-links { gap: 10px; }
  .m-social-link {
    flex: 0 0 auto;
    /* la maquette impose un min-width de 87 px sur telephone : sans le
       neutraliser, la largeur demandee ici n a aucun effet */
    width: 42px;
    min-width: 42px;
    max-width: none;
    height: 42px;
    min-height: 42px;
    padding: 0;
    border-radius: 50%;
    justify-content: center;
    font-size: 0;
  }
  .m-social-link svg { width: 18px; height: 18px; }
  /* le libellé sous l’icône faisait trois lignes sur un écran étroit */
  .m-social-link > span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
  /* Facebook est branché : la mention « bientôt » ne vaut plus */
  .m-social-status { display: none; }

  .m-footer-columns {
    grid-template-columns: 1fr 1fr;
    gap: 24px 18px;
    padding-top: 26px;
    padding-bottom: 22px;
  }
  .m-footer-company { grid-column: 1 / -1; }
  .m-footer-links h3,
  .m-footer-contact h3 { margin-bottom: 10px; font-size: 0.68rem; }
  .m-footer-links a,
  .m-footer-links button {
    padding: 6px 0;
    font-size: 0.82rem;
    line-height: 1.35;
    text-align: left;
  }
  .m-footer-contact { grid-column: 1 / -1; }
  .m-footer-availability { margin-top: 14px; }

  .m-footer-regions { gap: 7px; padding-top: 18px; }
  .m-footer-regions a { padding: 6px 11px; font-size: 0.76rem; }

  .m-footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 9px;
    /* la barre d’appel occupe le bas de l’écran : on lui laisse la place */
    padding-bottom: 92px;
    font-size: 0.76rem;
  }

  /* le bouton remonte au-dessus de la barre d’appel, sans la chevaucher */
  .cps-remonter { right: 14px; bottom: 92px; width: 42px; height: 42px; }
  .cps-remonter svg { width: 18px; height: 18px; }
}

@media (max-width: 380px) {
  .m-footer-columns { grid-template-columns: 1fr; gap: 20px; }
  .m-footer-regions a { padding: 5px 9px; font-size: 0.72rem; }
}

/* ===========================================================================
   RÉSEAUX SOCIAUX — REPRISE
   Les trois pastilles n allaient pas ensemble : Facebook virait au bleu vif au
   survol pendant que les deux autres restaient a 40 % d opacite, comme des
   boutons casses. Meme gabarit pour les trois, chacune prend la couleur de son
   reseau au survol, et les deux comptes a venir sont marques d un point plutot
   qu estompes.
   =========================================================================== */
.m-footer-social { margin: 24px 0 0; }
.m-footer-columns .m-footer-social h3 {
  margin: 0 0 12px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: #8fb0cc;
}

.m-social-links { display: flex; gap: 10px; align-items: center; }

.m-social-link {
  position: relative;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 46px;
  min-width: 46px;
  max-width: none;
  height: 46px;
  min-height: 46px;
  padding: 0;
  border: 1px solid #2a4b6a;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.045);
  color: #cfe0f0;
  font-size: 0;
  transition: background 220ms, border-color 220ms, color 220ms, transform 220ms;
}
.m-social-link svg { width: 20px; height: 20px; fill: currentColor; stroke: none; }
.m-social-link .m-instagram-icon { fill: none; stroke: currentColor; stroke-width: 1.8; }
.m-social-link .m-instagram-dot { fill: currentColor; stroke: none; }

/* chaque reseau reprend sa propre couleur — le bleu maison pour tout donnait
   un aplat sans identite */
.m-social-link[data-social='facebook'][href]:hover {
  background: #1877f2;
  border-color: #1877f2;
  color: #fff;
  transform: translateY(-3px);
}

/* comptes a venir : lisibles, avec un point d attente en haut a droite */
.m-social-link[aria-disabled='true'] {
  opacity: 1;
  color: #7c96ad;
  border-color: #23415f;
  background: rgba(255, 255, 255, 0.02);
  cursor: default;
}
.m-social-link[aria-disabled='true']::after {
  content: '';
  position: absolute;
  top: 7px;
  right: 7px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #4a6a86;
}
.m-social-link[aria-disabled='true']:hover { transform: none; }

.m-social-status {
  margin: 12px 0 0;
  font-size: 0.76rem;
  line-height: 1.6;
  color: #7f9cb8;
}
