
.m-car { display: contents; }
.m-nav, .m-voir, .m-seul, .m-clone, .menu__deplier { display: none; }
.m-defile { display: contents; }

#vivre-ensemble { overflow-x: clip; }

html, body { touch-action: pan-x pan-y; }
.m-car, .m-piste, .m-defile { touch-action: pan-x pan-y; }

@media (max-width: 1100px) {
  .entete__envelop { gap: 0; }
  .bascule-langue { margin-left: auto; margin-right: 8px; }
  .entete__burger { margin-left: 0; flex: none; }

    .entete.menu-ouvert, .entete.menu-ouvert.est-defile, .entete.menu-ouvert.est-plein {
    backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--aubergine-nuit); color: #fff; box-shadow: none;
  }
  .entete.menu-ouvert .logo-fonce { opacity: 0; }
  .entete.menu-ouvert .logo-clair { opacity: 1; }
  .entete.menu-ouvert .bascule-langue { color: #fff; }
  .entete.menu-ouvert .bascule-langue:hover, .entete.menu-ouvert .bascule-langue:focus-visible { background: rgba(255,255,255,.12); }
  .entete.menu-ouvert .menu {
    height: calc(100dvh - var(--entete)); overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
  }
  .entete.menu-ouvert .menu > li { width: 100%; }

    .entete.menu-ouvert .menu__gites { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; }
  .entete.menu-ouvert .menu__gites > a { flex: 1 1 auto; padding: 8px 0; cursor: pointer; }
  .entete.menu-ouvert .menu__gites > a::after { display: none; }
  .entete.menu-ouvert .menu__deplier {
    display: grid; place-items: center; flex: none; width: 48px; height: 48px; margin-right: -6px;
    border: 0; border-radius: 50%; background: transparent; color: #fff; cursor: pointer; pointer-events: none;
  }
  .entete.menu-ouvert .menu__deplier svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s; }
  .entete.menu-ouvert .menu__gites.m-deplie .menu__deplier svg { transform: rotate(180deg); }
    .entete.menu-ouvert .menu__gites .sous-menu {
    display: none; flex: 1 0 100%; position: static !important; left: auto !important; top: auto !important; transform: none !important;
    min-width: 0 !important; width: 100%; opacity: 1 !important; visibility: visible !important; background: transparent !important; box-shadow: none !important; padding: 2px 0 10px 4px;
  }
  .entete.menu-ouvert .menu__gites.m-deplie .sous-menu { display: block; }
  .entete.menu-ouvert .sous-menu a { min-height: 44px; display: flex; align-items: center; }
}

@media (max-width: 767px) {
    .heros .boutons { flex-wrap: nowrap; gap: 10px; }
  .heros .boutons .bouton { flex: 1 1 0; min-width: 0; padding: 13px 8px; font-size: clamp(12px, 3.5vw, 14px); white-space: nowrap; justify-content: center; text-align: center; }
  .heros--centre .boutons { width: 100%; }

    .heros__sous, .demande__intro .chapeau { font-size: 15px; line-height: 1.5; }
  .demande__intro .chapeau { margin-bottom: 0; }
    .heros__sous, .heros--centre .heros__sous { min-height: 0; margin-top: 0; margin-bottom: 54px; }
  .heros .note-heros, .heros .badges-avis { margin-bottom: 18px; }
    .heros.m-h1-une h1 { min-height: 0; }
  .heros.m-h1-une .heros__contenu { padding-top: calc(var(--entete) + 56px + var(--m-ecart, 0px)); }
  .heros.m-h1-une .heros__sous { margin-bottom: calc(54px + var(--m-ecart, 0px)); }
  .heros h1 { margin-top: 0; margin-bottom: 22px; }
    .heros__contenu--avec-bande { padding-bottom: 124px; }
  .bande-mots__carte.apparait, .bande-mots .apparait { opacity: 1 !important; transition: none !important; }
    .chapeau, .bandeau__contenu p { font-size: 15px; line-height: 1.5; }

      .bande-mots { height: 68px; margin-top: -92px; margin-bottom: 24px; overflow: hidden; width: var(--large); margin-inline: auto; background: var(--blanc); border-radius: var(--rayon); box-shadow: var(--ombre); }
  .bande-mots__carte {
    display: flex; flex-wrap: nowrap; width: max-content; margin: 0; padding: 0; background: none; box-shadow: none; border-radius: 0;
    animation: m-defile var(--m-duree, 24s) linear infinite; will-change: transform;
  }
  .bande-mots__carte li, .bande-mots__carte li.m-clone {
    display: flex; flex-direction: row; text-align: left; align-items: center; gap: 12px; padding: 14px 24px; white-space: nowrap; flex: none;
    border: 0 !important; border-radius: 0 !important;
  }
  .bande-mots__carte li + li::before, .bande-mots__carte li:nth-child(3)::before { display: block; top: 18px; bottom: 18px; }
  .bande-mots__icone { width: 40px; height: 40px; }
  .bande-mots__icone svg { width: 22px; height: 22px; }
  .bande-mots__carte strong { font-size: 18px; }
  .bande-mots__carte li span:last-child { font-size: 13px; }
  @keyframes m-defile { to { transform: translateX(-50%); } }

    .m-defile { display: block; overflow: hidden; margin-inline: calc(50% - 50vw); width: 100vw; margin-top: 22px; mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
  .m-defile .pastilles { flex-wrap: nowrap; width: max-content; gap: 0; margin: 0; justify-content: flex-start; animation: m-defile var(--m-duree, 24s) linear infinite; }
  .m-defile .pastilles li, .m-defile .pastilles li.m-clone { display: block; flex: none; margin-right: 10px; white-space: nowrap; }

    .m-car { display: block; position: relative; margin-inline: calc(50% - 50vw); width: 100vw; max-width: 100vw; --m-w: min(78vw, 380px); }
  .m-car--petit { --m-w: min(58vw, 260px); }
  .m-car { --m-w: min(78vw, 380px); }
  .m-piste {
    display: flex !important; grid-template-columns: none !important; flex-wrap: nowrap !important; gap: 14px !important;
    overflow-x: auto !important; overflow-y: hidden; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
    padding: 6px calc(50% - var(--m-w) / 2) 8px !important; scrollbar-width: none; overscroll-behavior-x: contain;
    margin: 0 !important; max-width: none !important; width: auto !important; height: auto !important;
  }
  .m-piste::-webkit-scrollbar { display: none; }
  .m-piste > * { flex: 0 0 var(--m-w) !important; width: var(--m-w) !important; min-width: 0; max-width: none !important; scroll-snap-align: center; scroll-snap-stop: always; margin: 0 !important; }
  .m-piste .apparait { opacity: 1 !important; transform: none !important; }
  .m-piste > img, .m-piste > figure img { aspect-ratio: 4 / 3; height: auto; object-fit: cover; }
  .m-piste > img { height: auto !important; }
  .m-piste .case { min-height: 380px; }
  .m-piste .carte-avis { width: var(--m-w) !important; height: auto; }
  .m-piste .services li, .m-piste > li { height: 100%; }
    .m-nav { display: flex; align-items: center; justify-content: center; margin-top: 10px; }
  .m-points { display: flex; justify-content: center; gap: 9px; min-height: 28px; align-items: center; flex-wrap: wrap; max-width: 80vw; }
  .m-points span { width: 9px; height: 9px; border-radius: 50%; background: rgba(74,42,69,.26); transition: background .2s, transform .2s; -webkit-tap-highlight-color: transparent; cursor: pointer; }
  .m-points span.est-actif { background: var(--aubergine); transform: scale(1.45); }
    #services .m-points span, #temoignages .m-points span { background: var(--mauve-clair); }
  #services .m-points span.est-actif, #temoignages .m-points span.est-actif { background: var(--abricot); }
  .section--nuit .m-points span { background: rgba(255,255,255,.35); }
  .section--nuit .m-points span.est-actif { background: #fff; }

    .histoire-photos { display: none; }
  .m-histoire.m-car { margin-top: 10px; }
  .m-histoire .m-piste > * { aspect-ratio: 4 / 5; border-radius: var(--rayon); overflow: hidden; box-shadow: var(--ombre-douce); position: static; border: 0 !important; width: var(--m-w) !important; height: auto !important; }
  .m-histoire .m-piste img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: auto; }

    .plan--blocs .point { cursor: pointer; pointer-events: auto; }
  .plan--blocs .point::after { content: ""; position: absolute; inset: -9px; border-radius: 50%; }
  .bloc.m-pointe { animation: m-pointe 1.4s ease-out; }
  @keyframes m-pointe { 0%, 100% { box-shadow: var(--ombre-douce); } 25%, 75% { box-shadow: 0 0 0 4px var(--abricot), var(--ombre); } }

    .hotes--video .video-verticale { display: none; }

    .m-voir {
    display: flex; align-items: center; justify-content: center; gap: 8px; margin: 22px auto 0; padding: 13px 26px; border-radius: 999px;
    border: 1.5px solid var(--aubergine); background: transparent; color: var(--aubergine); font: 600 15px/1 var(--f-texte); cursor: pointer;
  }
  .m-voir svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s; }
  .m-voir[aria-expanded="true"] svg { transform: rotate(180deg); }
  .m-voir:active { background: var(--aubergine); color: #fff; }
  .m-replie.m-garde-5 > :nth-child(n+6), .m-replie.m-garde-4 > :nth-child(n+5), .m-replie.m-garde-3 > :nth-child(n+4), .m-replie.m-garde-2 > :nth-child(n+3) { display: none; }

    .fiche__texte > .bouton { display: flex; width: fit-content; max-width: 100%; margin-inline: auto; }
  .encart__texte .sur-titre { display: none; }
  .m-seul.sur-titre { display: flex; justify-content: flex-start; text-align: left; margin: 0 0 14px; }
  .encart__photo, .encart__photo--une { grid-template-columns: 1fr !important; grid-template-rows: none !important; }
  .encart__photo img { aspect-ratio: 4 / 3 !important; width: 100%; height: auto; }
  .encart__photo:not(.encart__photo--une) img:nth-child(2) { display: none; }
  .m-citations-bas { display: block; margin-top: 26px; }
  .split > .apparait .citations { display: none; }
  .m-citations-bas.m-seul { display: block; }
  .section .envelop.split > .apparait + .eventail { margin-bottom: 0; }

    .ronds-bloc { display: flex; align-items: center; width: 100%; }
  .ronds { width: 100%; justify-content: center; gap: 0; }
  .ronds .rond { flex: 1 1 0; min-width: 0; }
  .contact-avis, .demande__intro .badge-avis { align-self: center; margin-inline: auto; }
  .demande__intro .contact-carte { display: none; }
  .contact-carte.m-seul { display: block; width: 100%; max-width: 460px; margin: 26px auto 0; }
  .bulles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .bulles label { display: flex; align-items: center; justify-content: center; text-align: center; padding: 11px 8px; font-size: 14px; line-height: 1.25; min-height: 48px; }
  .bulles label[for="p-gite"] { order: 1; } .bulles label[for="p-chambre"] { order: 2; }
  .bulles label[for="p-mariage"] { order: 3; } .bulles label[for="p-fete"] { order: 4; }
  .bulles label[for="p-concert"] { order: 5; } .bulles label[for="p-organiser"] { order: 6; }
  .bulles label[for="p-stage"] { order: 7; grid-column: 1 / -1; }
  .formulaire, .formulaire form, .champs, .champ { min-width: 0; max-width: 100%; }
  .champs { grid-template-columns: minmax(0, 1fr); }
  .champ input, .champ select, .champ textarea { display: block; width: 100%; max-width: 100%; min-width: 0; box-sizing: border-box; min-height: 52px; -webkit-appearance: none; appearance: none; }
  .champ input[type="date"] { text-align: left; }
  .champ input[type="date"]::-webkit-date-and-time-value { text-align: left; min-height: 1.3em; }
  .champ textarea { min-height: 130px; }
  .formulaire__envoi { justify-content: center; text-align: center; flex-direction: column; }
  .formulaire__envoi .bouton { margin-inline: auto; }
  .formulaire__envoi p { flex: none; text-align: center; }
  .m-cache { display: none !important; }

    .defile { mask-image: none; -webkit-mask-image: none; opacity: 1 !important; transform: none !important; }
  .defile__piste { gap: 0; will-change: transform; animation-duration: 90s; }
  .defile__piste .carte-avis { margin-right: 22px; }
  .defile:hover .defile__piste { animation-play-state: running; }

    #vivre-ensemble .eventail { height: 300px; }
  .m-citations-bas { margin-top: 6px; }

    .carrousel__points { gap: 9px; }
  .carrousel__points button { transition: background .2s; outline: none; -webkit-tap-highlight-color: transparent; }
}

@media (max-width: 767px) and (prefers-reduced-motion: reduce) {
  .defile, .bande-mots, .m-defile { overflow-x: auto; scrollbar-width: none; }
  .defile::-webkit-scrollbar, .bande-mots::-webkit-scrollbar, .m-defile::-webkit-scrollbar { display: none; }
  .defile__piste, .bande-mots__carte, .m-defile .pastilles { animation: none !important; }
}
