/*
Theme Name: Altuspro
Theme URI: https://www.Altuspro.com
Author: altus outdoor concept
Author URI: https://www.altuspro.com
Description: Thème pour le site Altus
Version: 1.0
Tags: outdoor, accrobranche
Text Domain: altuspro
*/

html {
	scroll-behavior: smooth;
}

a {
	color: #000000;
}

.espacegauche {
  padding-left: clamp(4vw, calc(22.14vw - 137.1px), 14vw) !important;
}

.petite-ligne {
  height : 0.1px;
}

/* Bouton accueilmob : texte seul, noir, hover vert */
.accueilmob,
.accueilmob .wp-block-button__link {
  background: transparent !important;
  color: #000 !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 0px 5% !important;
  white-space: nowrap;
  text-decoration: none !important;
  cursor: pointer;
  transition: color .25s ease;
}

.accueilmob:hover,
.accueilmob,
.accueilmob .wp-block-button__link:focus {
  color: #8CBE22 !important;
  background: transparent !important;
}

.ligne-sep {
	border-top: 3px solid
}







/* Voile sombre sur la page */
.wp-block-navigation__responsive-container.is-menu-open {
  background: rgba(0, 0, 0, .45) !important;
  padding: 0;
}

/* Panneau à droite */
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(320px, 85vw);
  background: #222;
  padding: 90px 15px 30px;
  overflow-y: auto;
  align-items: stretch;
}

/* Listes : pleine largeur, sans fond, avec un espace entre les boutons */
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container,
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container {
  width: 100% !important;
  min-width: 0 !important;
  align-items: stretch !important;
  gap: 12px !important;            /* ESPACE ENTRE LES BOUTONS */
  background: transparent !important;
  border: 0 !important;
  padding: 0 !important;
}

/* Sous-menus : décalage + air au-dessus et en dessous */
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container {
  margin: 12px 0 20px 15px !important;   /* 15px = décalage vers la droite */
  width: calc(100% - 15px) !important;
}

/* Éléments du menu */
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item {
  width: 100% !important;
  min-width: 0 !important;
  align-items: stretch !important;
  position: static !important;
}

/* Boutons noirs, même largeur, padding vertical */
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
  display: block !important;
  width: 100% !important;
  box-sizing: border-box !important;
  background: #000 !important;
  color: #fff;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 400;
  padding: 10px 20px !important;   /* 14px = PADDING VERTICAL */
  border: 0 !important;
  text-decoration: none !important;
  box-shadow: none !important;
}

/* Croix de fermeture : dans la zone assombrie, à gauche du panneau */
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-close {
  position: fixed;
  top: 50px;
  right: calc(min(320px, 85vw) + 12px);
  left: auto;
  z-index: 100001;
  color: #8CBE22;
}

.wp-block-navigation__responsive-container-close svg {
  width: 28px;
  height: 28px;
}




.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container > .wp-block-navigation-item:first-child {
  margin-bottom: 20px !important;
}

/* Bouton de la section en cours : fond vert */
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content.anim-nav-active {
  background: #8CBE22 !important;
  color: #fff !important;
  border: 0 !important;
}








/* Conteneur : sert de repère pour la zone qui s'ouvre */
.lang-switch {
  position: relative;
  display: inline-block;
}

/* Bouton Accueil */
.lang-switch .lang-btn,
.lang-switch .lang-btn .wp-block-button__link {
  background: transparent !important;
  color: #8CBE22 !important;          /* couleur du texte, mets #fff si ton header est sombre */
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 10px 0 !important;
  margin: 0;
  font-size: .8rem;
  text-transform: uppercase;
  text-decoration: none !important;
  cursor: pointer;
}

/* Petit effet au survol */
.lang-switch:hover .lang-btn .wp-block-button__link {
  color: #8CBE22 !important;
}

/* Zone des drapeaux : cachée au départ */
.lang-switch .lang-flags {
  position: absolute;
  top: 100%;          /* juste sous le bouton, sans trou */
  left: -80%;
  z-index: 1000;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 40px;
  width: max-content;   /* AJOUT : la zone prend la largeur de son contenu */
  padding: 60px 90px;
  background: #fafafb;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .18);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s;
}

/* Ouverture au survol (et au clavier) */
.lang-switch:hover .lang-flags,
.lang-switch:focus-within .lang-flags {
  opacity: 1;
  visibility: visible;
  transform: none;
}

/* AJOUT : les blocs Image ne doivent pas rétrécir */
.lang-switch .lang-flags .wp-block-image,
.lang-switch .lang-flags figure {
  margin: 0 !important;
  width: auto !important;
  flex: 0 0 auto;
}

/* Drapeaux */
.lang-switch .lang-flags img {
  display: block;
  width: 20px !important;
  height: auto !important;
  max-width: none;      /* AJOUT : évite que le thème les réduise */
  transition: transform .2s ease;
}

.lang-switch .lang-flags a:hover img {
  transform: scale(1.15);
}

/* Drapeaux de langue du menu hamburger, mobile / tablette seulement (ajoutés par functions.php) */
.lang-mobile {
  display: flex;
  align-items: flex-end;   /* le drapeau anglais est moins haut que les autres */
  gap: 14px;
  margin-bottom: 24px;
}

.lang-mobile a {
  display: block;
  padding: 8px 5px;
  line-height: 0;
  border-bottom: 2px solid transparent;
}

.lang-mobile a[aria-current] {
  border-bottom-color: #8CBE22;
}

.lang-mobile img {
  width: 28px;
  height: auto;
  max-width: none;
}

@media (min-width: 783px) {
  .lang-mobile {
    display: none;
  }
}

/* Trois colonnes de même taille */
.cartes-egales {
  align-items: stretch !important;
}

.cartes-egales > .wp-block-column {
  flex: 1 1 0 !important;          /* même largeur */
  align-self: stretch !important;  /* même hauteur */
  display: flex;
  flex-direction: column;
}

/* Si le cadre noir est sur un Groupe à l'intérieur de la colonne */
.cartes-egales > .wp-block-column > .wp-block-group {
  flex: 1;
}


.section-pile {
  position: sticky;
  margin-top: 0 !important;
}

/* Toutes les sections après la première passent par-dessus, avec un fond opaque */
.section-pile ~ * {
  position: relative;
  z-index: 2;
  background-color: #fff;
}

/* Ombre sur le bord haut de la deuxième section */
.section-pile + * {
  box-shadow: 0 -12px 30px rgba(0, 0, 0, .15);
}

/* Pas de changement de couleur au survol ni au focus, sauf pour la zone active */
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content:is(:hover, :focus):not(.anim-nav-active) {
  background: #000 !important;
  color: #fff !important;
}

/* Bloc contact */
.bloc-contact-fixe {
  position: fixed;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 900;
  align-items: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .15);
  padding-top : 24px ;
  padding-bottom : 8px ;
  padding-right : 24px ;
  padding-left : 24px ;
  border-radius : 0 15px 15px 0;
}

@media (max-width: 781px) {
  .bloc-contact-fixe {
    /* collé en bas, sur toute la largeur */
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    transform: none;
    width: 100%;
    box-sizing: border-box;

    /* éléments sur une ligne, répartis également */
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    justify-content: space-around !important;
    align-items: center !important;
    gap: 50px;

    /* barre plus fine, coins arrondis en haut */
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
    border-radius: 15px 15px 0 0;
    box-shadow: 0 -4px 14px rgba(0, 0, 0, .15);
  }

  /* les images n'ont plus de marge entre elles */
  .bloc-contact-fixe figure,
  .bloc-contact-fixe p {
    margin: 0 !important;
  }

  /* évite que la barre cache le bas de la page */
  body {
    padding-bottom: 68px;
  }
}

/* ---------- Fiche contact fermée : un rond avec le logo ---------- */
.bloc-contact-fixe {
  cursor: pointer;
}

.bloc-contact-fixe:not(.ouvert) {
  left: 16px;
  width: 64px;
  height: 64px;
  padding: 0 !important;
  border-radius: 50% !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 6px 12px rgba(0, 0, 0, .25);
  transition: transform .2s ease, box-shadow .2s ease;
}

.bloc-contact-fixe:not(.ouvert):hover {
  box-shadow: 0 8px 18px rgba(0, 0, 0, .35);
}

/* tout est caché sauf le logo */
.bloc-contact-fixe:not(.ouvert) > *:not(.contact-logo) {
  display: none !important;
}

/* Taille du logo */
.bloc-contact-fixe .contact-logo,
.bloc-contact-fixe .contact-logo img {
  margin: 0 !important;
  width: 40px !important;     /* taille du logo dans le rond */
  height: auto !important;
  display: block;
}

/* ---------- Fiche ouverte : le rectangle ---------- */
.bloc-contact-fixe.ouvert {
  animation: contactOuverture .3s ease;
}

.bloc-contact-fixe.ouvert .contact-logo {
  margin-bottom: 12px !important;
  cursor: pointer;            /* un clic sur le logo referme la fiche */
}

@keyframes contactOuverture {
  from { opacity: 0; transform: translateY(-50%) scale(.85); }
  to   { opacity: 1; transform: translateY(-50%) scale(1); }
}

/* ---------- Mobile ---------- */
@media (max-width: 781px) {
  /* fermée : le rond reste en bas à gauche */
  .bloc-contact-fixe:not(.ouvert) {
    top: auto !important;
    bottom: 16px !important;
    left: 16px !important;
    right: auto !important;
    width: 60px !important;
    height: 60px !important;
    transform: none !important;
  }

  .bloc-contact-fixe.ouvert {
    animation: none;
  }
}



.mail {
  height: auto;   /* hauteur des images : à modifier */
  width: 35px;    /* la largeur suit pour garder les proportions */
  max-width: none;
  display: block;
}

.pin {
  height: auto;   /* hauteur des images : à modifier */
  width: 35px;    /* la largeur suit pour garder les proportions */
  max-width: none;
  display: block;
}

.phone {
  height: auto;   /* hauteur des images : à modifier */
  width: 35px;    /* la largeur suit pour garder les proportions */
  max-width: none;
  display: block;
}

.bloc-contact-fixe figure {
  margin: 0 0 16px;          /* espace entre les images */
}

.bloc-contact-fixe img:hover {
  transform: scale(1.15);
}

/* mettre les liens brut en vert */
p a {
  color: #8CBE22;
}

/* body {
  background: red;
} */

/* Les lignes vont jusqu'aux bords de l'écran, le reste du site reste limité */
.wp-site-blocks .ligne-sep {
  position: relative;
  left: 50%;
  width: 100vw !important;
  max-width: 100vw !important;
  margin-left: -50vw !important;
  margin-right: 0 !important;
}

/* Évite une barre de défilement horizontale */
body {
  overflow-x: clip;
}

.bordure-large {
  position: relative;
}

.bordure-large::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 100vw;
  margin-left: -50vw;
  border-bottom: 3px solid #dcdcdc;
}