/*
Theme Name: Twenty Twenty-Five Child
Theme URI: 
Author: Mickaël Teingnier
Author URI: 
Description: Thème enfant de Twenty Twenty-Five
Requires at least: 7.1
Tested up to: 7.1
Requires PHP: 5.7
Version: 
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Template: twentytwentyfive
Text Domain: twenty-twenty-five-child
Tags: 
*/
html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

header {
  width: 100%;
  position: fixed;
  z-index: 999;
}
.colonne-menu nav{
  width:180px;
}
.logo-header-mobile{
  display: none !important;
}
/* Parallaxe : uniquement sur ordinateur */
.parallax {
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
}

/* Mobile, tablette et appareils tactiles : image statique */
@media (hover: none), (pointer: coarse), (max-width: 1024px) {
  .parallax,
  .wp-block-cover.parallax {
    background-attachment: scroll !important;
    background-size: cover;
    background-position: center;
  }
}
.overflow-x-hidden{
overflow-x:hidden;
}

.menu-img-link {
  background-position: center;
  background-size: 100% !important;
  transition: background-size 0.4s ease-in-out !important;
}

.menu-img-link:hover {
  background-size: 120% !important;
}

a {
  outline: 0;
}

.ununderlined {
  text-decoration: none;
}

.ununderlined:hover {
  text-decoration: underline;
}

.header-le-moulin {
  width: 92%;
  max-width: 900px;
  margin: 0 auto;
}
#hero{
  position:relative
}
.min-width-100{
  min-width:100%
}
.max-width-325,
.home-info-pratique-img {
  max-width: 325px;
  height: auto;
}

.max-width-440 {
  max-width: 440px;
  height: auto;
}

.le-moulin-txt {
  position: absolute;
  bottom: -15px;
  width:100vw;
  max-width: 1370px;
  text-align: center;
}
.le-moulin-txt img{
  width:95%;
}
.le-moulin-txt-info-pratique {
  position: absolute;
  bottom: -15px;
  left: 0;
}

.le-moulin-txt-info-pratique-footer {
  width:100vw;
  max-width:100vw;
  position: absolute;
  bottom: -4px;
  left: 0;
}
.le-moulin-txt-info-pratique-footer img{
  width:100vw;
  max-width:100vw;
}

.logo-établissements-footer {
  height: 48px;
  width: auto;
  align-items: center;
  display: flex;
}

.back-to-top a {
  text-decoration: none;
}

.mega-menu-toggle[aria-expanded="true"] > span:nth-child(2) {
  display: block;
}

.max-width-340-desktop {
  max-width: 340px;
}

.max-width-440-desktop {
  max-width: 440px;
}

/* === BURGER BUTTON === */
.mega-menu-toggle {
  display: flex;
  flex-direction: row;
  gap: 8px;
  align-items: center;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 10000;
  position: relative;
  outline: 0;
}

.burger-icon {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 32px;
}

.burger-icon span {
  display: block;
  height: 1px;
  background: #595B45;
  transition: all 0.3s ease;
}

.mega-menu-toggle > span:nth-child(2) {
  color: #595B45;
  display: none;
  font-weight: 600;
  font-size: 12px;
  line-height: 150%;
  letter-spacing: 2%;
  text-transform: uppercase;
}

.mega-menu-toggle[aria-expanded="true"] .burger-icon span:nth-child(1) {
  transform: translateY(3px) rotate(45deg);
}

.mega-menu-toggle[aria-expanded="true"] .burger-icon span:nth-child(2) {
  transform: translateY(-2px) rotate(-45deg);
}

/* === OVERLAY === */
.mega-menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center !important;
  justify-content: flex-start;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  max-width: 92%;
  margin: 0 auto;
}

.mega-menu-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.mega-menu-overlay .wp-block-template-part {
  width: 100%;
  max-width: 900px;
}

.mega-menu-overlay > .mega-menu-inner {
  background: #f2ede4;
  border-radius: 24px;
  max-width: 1200px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 50px;
  position: relative;
  transform: scale(0.95);
  transition: transform 0.3s ease;
}

.mega-menu-overlay.is-open > .mega-menu-inner {
  transform: scale(1);
}

.mega-menu-close {
  position: absolute;
  top: 24px;
  right: 24px;
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  z-index: 10;
}

body.mega-menu-active {
  overflow: hidden;
}

.texte-fixe-home {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
}

.images-alternees-1 > figure:first-child,
.images-alternees-2 > figure:nth-child(2),
.images-alternees-1 > figure:nth-child(2),
.images-alternees-2 > figure:first-child {
  z-index: 1;
}

.images-alternees-1 figure img,
.images-alternees-2 figure img {
  max-width: 440px;
  height: auto;
}
.hidden-link a {
  display: block;
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  opacity: 0;
}

.actu-card-img {
  overflow: hidden;
  border-radius: 10px;
}

.actu-card-img img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform 0.4s ease;
}


/*******************
*** BREADCRUMB ***
*******************/
.custom-breadcrumb {
  font-size: 12px;
  line-height: 16px;
}

.custom-breadcrumb ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
}

.custom-breadcrumb .separator {
  margin: 0 5px;
  color: #A7A99C;
  font-weight: 400;
  font-size: 12px;
  line-height: 16px;
}

.custom-breadcrumb li {
  display: flex;
  align-items: center;
}

.custom-breadcrumb a {
  color: #A7A99C;
  text-decoration: none;
  font-weight: 400;
}

.custom-breadcrumb a:hover {
  text-decoration: underline;
}

.custom-breadcrumb .current {
  color: #fff;
  font-weight: 700;
}

.custom-breadcrumb .breadcrumb-icon {
  margin-right: 5px;
  vertical-align: middle;
}

/*******************
*** FAQ ***
*******************/
.wp-block-accordion-heading__toggle {
  position: relative;
  padding-right: 2.5rem;
  width: 100%;
}

.wp-block-accordion-heading__toggle-icon {
  display: none !important;
}

.wp-block-accordion-heading__toggle::after {
  content: "";
  position: absolute;
  right: 0.5rem;
  top: 50%;
  width: 9px;
  height: 9px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.35s ease;
}

.wp-block-accordion-item.is-open .wp-block-accordion-heading__toggle::after {
  transform: translateY(-30%) rotate(225deg);
}

/* Carousel Posts */
.moulin-carousel-wrapper {
  max-width: 100vw;
  margin: 0 0 0 auto !important;
  padding: 0;
  overflow: hidden;
}

.moulin-swiper {
  overflow: visible;
}
.moulin-swiper .swiper-slide{
  max-width: 440px;
}
.moulin-card {
  display: block;
  text-decoration: none;
  color: inherit;
}

.moulin-card-img {
  width: 100%;
  aspect-ratio: 450 / 550;
  overflow: hidden;
  border-radius: 10px;
  margin-bottom: 32px;
}

.moulin-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.moulin-card-content h3 {
  font-weight: 400;
  font-size: 30px;
  line-height: 36px;
  letter-spacing: 0;
  color: #595B45;
}

.moulin-card-content p {
  font-weight: 400;
  font-size: 14px;
  line-height: 24px;
  color: #787A68;
}

.moulin-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  width: max-content;
  border: 1px solid rgba(120, 122, 104, 1);
  margin: 45px auto 0;
  padding: 8px;
  border-radius: 100px;
}

.moulin-nav-prev,
.moulin-nav-next,
.moulin-nav-prev:focus,
.moulin-nav-next:focus {
  width: 32px;
  height: 32px;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: rgba(89, 91, 69, 1);
  flex-shrink: 0;
  border: none;
  outline: 0;
}

.moulin-nav-prev.swiper-button-disabled,
.moulin-nav-next.swiper-button-disabled {
  opacity: 0.3;
  cursor: default;
}

.moulin-progress {
  width: 100px;
  height: 2px;
  position: relative;
  border-radius: 2px;
  overflow: hidden;
}

.moulin-progress::before {
  display: block;
  position: absolute;
  z-index: 1;
  content: '';
  width: 100%;
  height: 1px;
  left: 0;
  top: calc(50% - 1px / 2);
  background: rgba(120, 122, 104, 1);
  position: relative;
  border-radius: 2px;
  overflow: hidden;
}

.moulin-progress-bar {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  border-radius: 2px;
  z-index: 2;
  background: rgba(89, 91, 69, 1);
  width: 20%;
  transition: width 0.3s ease;
}

/* ==========================================================================
   Timeline "Les mille vies du Moulin" - Desktop
   ========================================================================== */
.moulin-timeline-wrapper {
  position: relative;
  overflow: hidden;
}
/* =========================================================
   Galerie "En images"
   ========================================================= */
.moulin-galerie {
  --galerie-offset-haut: 70px;
  display: flex;
  gap: 40px;
  box-sizing: border-box;
}

/* ---------- Colonne des filtres (desktop) ---------- */
.moulin-galerie__filtres {
  position: sticky;
  bottom: 2rem;
  width: calc(35% - 20px);
  align-self: flex-end;
  z-index: 5;
}

h1.moulin-galerie__surtitre {
  font-family: Inter;
  font-weight: 700;
  font-size: 14px;
  line-height: 1.05;
  letter-spacing: 0;
  text-transform: uppercase;
  margin-bottom: 16px;
  margin-top: 0;
  color: rgba(245, 241, 234, 1);
}

.moulin-galerie__titre p {
  font-family: "Editors Note";
  font-weight: 200;
  font-size: 70px;
  line-height: 1.05;
  letter-spacing: 0;
  margin-bottom: 32px;
  margin-top: 0;
  color: rgba(245, 241, 234, 1);
}

.moulin-galerie__liste-filtres {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 8px;
  margin-bottom: 32px;
}

.moulin-galerie__filtre {
  padding: 6px 12px;
  border-radius: 20px;
  border: 1px solid rgba(245, 241, 234, 1);
  background-color: rgba(89, 91, 69, 1);
  color: rgba(245, 241, 234, 1);
  font-weight: 600;
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: 2%;
  text-transform: uppercase;
  cursor: pointer;
  outline: 0;
  transition: all 200ms ease;
}

.moulin-galerie__filtre:hover,
.moulin-galerie__filtre:focus-visible,
.moulin-galerie__filtre.is-active,
.moulin-galerie__filtre[aria-pressed="true"] {
  background-color: rgba(245, 241, 234, 1);
  color: rgba(89, 91, 69, 1);
}

/* ---------- Contenu : masonry calculé en JS ---------- */
.moulin-galerie__contenu {
  width: calc(65% - 20px);
  min-width: 0;
}

.moulin-galerie__grille {
  position: relative;
  width: 100%;
  min-height: 200px;
  --titre-taille: 54px; /* variable avec le JS selon longueur des mots */
}

.moulin-galerie__tuile {
  position: absolute;
  top: 0;
  left: 0;
  box-sizing: border-box;
  margin: 0;
  transition: transform 0.3s ease;
}

.moulin-galerie__tuile[hidden] {
  display: none !important;
}

.moulin-galerie__tuile--image {
  display: block;
  overflow: hidden;
  border-radius: 10px;
}

.moulin-galerie__tuile--image img {
  display: block;
  width: 100%;
  height: auto;
}

.moulin-galerie__tuile--texte {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 16px 24px;
  border-radius: 10px;
  background-color: rgba(89, 91, 69, 1);
  color: rgba(245, 241, 234, 1);
}

h2.moulin-galerie__tuile-titre {
  font-weight: 300;
  font-size: var(--titre-taille);
  line-height: 1.15;
  margin-top: 0;
  margin-bottom: 0;
  color: rgba(245, 241, 234, 1);
  overflow-wrap: anywhere; /* filet de sécurité */
  hyphens: auto;           /* penser à lang="xx" sur <html> */
}

.moulin-galerie__tuile-texte {
  margin-top: 12px;
}

.moulin-galerie__tuile-texte > :first-child {
  margin-top: 0;
}

.moulin-galerie__tuile-texte > :last-child {
  margin-bottom: 0;
}

.moulin-galerie__cta {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: 2%;
  text-transform: uppercase;
  text-decoration: none;
  color: rgba(89, 91, 69, 1);
  background-color: rgba(245, 241, 234, 1);
  outline: 0;
  transition: all 200ms ease;
}

.moulin-galerie__cta:hover {
  background-color: rgba(89, 91, 69, 1);
  color: rgba(245, 241, 234, 1);
}
.le-bar-visite{
  position:relative;
  overflow:hidden;
  background: rgb(255 255 255 / 0.15);
  -webkit-backdrop-filter: blur(12px) saturate(120%);
  backdrop-filter: blur(12px) saturate(120%);
  border: 1px solid rgb(255 255 255 / 0.3);
  border-radius: 24px;
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.4),
    0 8px 24px rgb(0 0 0 / 0.12);
  transition:all ease 500ms;
}
.le-bar-visite:hover{
  background: rgb(255 255 255 / 0.5);
  -webkit-backdrop-filter: blur(12px) saturate(120%);
  border: 1px solid rgb(255 255 255 / 1);
}
.boutons-le-bar-visite,
.boutons-le-bar-visite-single{
  position:absolute;
  opacity: 0;
  width:100%;
  height:100%;
  top:0;
  left:0;
}
/********************************
*** CSS LANDING PAGE GROUPE
********************************/
.bouton-icone-lien-externe .wp-block-button__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.bouton-icone-lien-externe .wp-block-button__link::after {
    content: '';
    display: block;
    width: 10px;
    height: 10px;
    background: url('/wp-content/uploads/2026/10/Lien-exterieur.png') no-repeat center / contain;
}
.bouton-icone-lien-externe:hover .wp-block-button__link{
    text-decoration:underline
}
.wp-block-columns.bloc-site-rgpd{
    margin-top:-165px;
    z-index:2
}
.image-max-height-680-desktop img{
  max-height:47vw;
  width:100%
}
/*********************************
*** WPML
*********************************/
.lang-switcher :focus{
  outline:0
}
.lang-switcher.wpml-language-switcher-block ul.wp-block-navigation__submenu-container .wp-block-navigation-item{
  padding:7px 12px !important;
}
.lang-switcher.wpml-language-switcher-block ul.wp-block-navigation__submenu-container .wp-block-navigation-item:first-child{
  border-radius: 8px 8px 0 0 !important;
  margin-top:16px !important;
}
.lang-switcher.wp-block-navigation .wp-block-navigation-submenu .wp-block-navigation-item:not(:last-child){
  margin-bottom:0 !important
}
.lang-switcher.wpml-language-switcher-block ul.wp-block-navigation__submenu-container .wp-block-navigation-item:last-child{
  border-radius: 0 0 8px 8px !important;
}
.lang-switcher.wpml-language-switcher-block .hasHoverBackgroundColor:hover{
  background-color:#F5F1EA !important;
}
.lang-switcher.wpml-language-switcher-block .wpml-ls-dropdown ul li.wp-block-navigation-submenu ul.isHorizontal{
  width: auto;
}
.lang-switcher.wpml-language-switcher-block .wpml-ls-dropdown ul li.wp-block-navigation-submenu ul.isHorizontal li a,
.lang-switcher.wpml-language-switcher-block .hasHoverColor:hover{
  color:#595B45 !important;
  text-decoration:none !important;
}
.lang-switcher.wpml-language-switcher-block ul.wp-block-navigation__submenu-container .wp-block-navigation-item:hover{
  background-color:#595B45 !important;
}
.lang-switcher.wpml-language-switcher-block ul.wp-block-navigation__submenu-container .wp-block-navigation-item:hover a,
.lang-switcher.wpml-language-switcher-block ul.wp-block-navigation__submenu-container .wp-block-navigation-item:hover a span{
  color:#F5F1EA !important;
}
/*********************************
*** RESPONSIVE
*********************************/
/* ---------- Desktop (> 768px) ---------- */
@media (min-width: 769px) {
  .moulin-galerie__liste-filtres {
    position: relative;
  }

  /* Cacher le bloc sticky en desktop */
  .moulin-galerie__filtres-sticky-mobile {
    display: none !important;
  }
  .moulin-timeline-wrapper {
    height: 100vh;
  }

  .moulin-timeline {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    height: 100vh;
    width: max-content;
    will-change: transform;
  }

  .timeline-item {
    flex: 0 0 auto;
    height: 100vh;
    display: flex;
    align-items: center;
    box-sizing: border-box;
  }

  .timeline-item--intro {
    max-width: 595px;
  }

  .timeline-item--text {
    max-width: 720px;
  }

  .timeline-item--image {
    height: 100vh;
  }

  .timeline-item--image img {
    height: 100vh;
    width: auto;
    max-width: none;
    object-fit: cover;
    display: block;
  }
}

/* ---------- Mobile (≤ 768px) ---------- */
@media (max-width: 768px) {
  .logo-header-mobile{
    display: block !important;
  }
  .logo-header-desktop{
    display: none;
  }
  .moulin-galerie {
    flex-direction: column;
    align-items: stretch;
    gap:64px;
  }

  .moulin-galerie__filtres {
    position: static;
    width: 100%;
    align-self: stretch;
    z-index: auto;
    padding: 0;
    margin: 0;
  }

  .moulin-galerie__filtres-inner {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }

  .moulin-galerie__liste-filtres {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    gap: 12px 8px;
    background-color: rgba(70, 71, 61, 1);
    margin-bottom: 0;
  }

  /* Bloc sticky mobile : invisible par défaut */
  .moulin-galerie__filtres-sticky-mobile {
    position: fixed;
    top: var(--galerie-offset-haut);
    left: 0;
    right: 0;
    z-index: 99;
    background-color: rgba(70, 71, 61, 1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    padding: 8px 16px;
  }

  /* Classe active : fade + slide down */
  .moulin-galerie__filtres-sticky-mobile.is-active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .moulin-galerie__liste-filtres--sticky {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 8px;
    margin: 0 !important;
    padding: 0 !important;
    background-color: transparent !important;
  }

  h1.moulin-galerie__surtitre{
    margin-bottom:24px
  }
  .moulin-galerie__titre p{
    font-size: 48px;
    margin-bottom: 0;
  }
  .moulin-galerie__tuile--texte{
    padding:16px 20px;
    min-height: 46px;
  }
  .moulin-galerie__contenu {
    width: 100%;
  }

  h2.moulin-galerie__tuile-titre {
    font-size: 40px;
    line-height: 46px;
  }
  .le-moulin-txt img{
    width:91%;
  }
  .header-le-moulin,
  .mega-menu-overlay .menu-column-container {
      width: calc(100% - 32px);
      max-width: 900px;
      margin: 0 auto;
  }
  .max-width-325,
  .max-width-171-on-mobile {
    max-width: 171px;
  }

  .max-width-440 {
    max-width: 264px;
  }

  .home-info-pratique-img {
    max-width: 264px;
  }

  .reverse-on-mobile {
    flex-direction: column-reverse !important;
  }

  .full-width-on-mobile,
  .max-width-325.full-width-on-mobile {
    max-width: 100%;
    width: 100%;
  }

  .mega-menu-toggle[aria-expanded="true"] > span:nth-child(2) {
    display: none;
  }

  .max-width-264-on-mobile {
    max-width: 264px;
  }

  .le-moulin-txt-info-pratique-footer {
    display: none;
  }

  p.fixed-left-mobile {
    margin-left: 0;
    margin-right: auto;
  }

  .max-width-340-desktop,
  .max-width-440-desktop {
    max-width: 100%;
  }

  .column-on-mobile {
    flex-direction: column;
  }

  .order-1 {
    order: 1;
  }

  .order-2 {
    order: 2;
  }

  .order-3 {
    order: 3;
  }
  .images-alternees-1 figure img,
  .images-alternees-2 figure img {
    max-width: 264px;
  }

  .images-alternees-1 > figure:nth-child(2),
  .images-alternees-2 > figure:nth-child(2) {
    margin-left: calc(100% - 264px);
  }
  .moulin-card-content h3 {
    font-size: 30px;
    line-height: 36px;
  }

  .moulin-card-content p {
    font-size: 14px;
    line-height: 24px;
  }
  .moulin-timeline-wrapper {
    height: auto;
    overflow: visible;
  }

  .moulin-timeline {
    display: flex;
    flex-direction: column;
    width: 100% !important;
    transform: none !important;
    height: auto;
  }

  .timeline-item {
    width: 100% !important;
    height: auto;
    max-height: fit-content;
  }

  .timeline-item--image img {
    width: 100%;
    height: auto;
    display: block;
  }
  .colonne-menu nav{
    width:50%;
    padding:0 12px
  }
  .image-max-height-480-mobile img{
    max-height:480px
  }
  .max-width-265-mobile img{
    max-width:265px
  }
  .le-moulin-txt{
    bottom:-1px
  }
  .infos-pratiques{
    max-width: 100vw;
  }
  .infos-pratiques > .wp-block-group{
    display: flex;
    flex-direction: column;
    gap: 40px;
    align-items: flex-start;
    justify-content: flex-start;
    flex-basis: 0;
  }
}