/* Guest & House : feuille de style de la maquette MCD Builder.
   Écrite à partir des mesures du site actuel (getComputedStyle à 1440 / 1024 / 390 px), un bloc par composant.
   Points de rupture : tablette ≤ 1024 px, mobile ≤ 767 px. */

/* ---------------------------------------------------------------- charte */
:root {
  --color-primary: #59283b;      /* bordeaux : bandeaux, titres, boutons, pied de page */
  --color-secondary: #9d5b74;    /* vieux rose : formulaire de contact, fonds d'image */
  --color-text: #000;
  --color-blanc: #fff;
  --color-gris: #1f2124;
  --font-titre: Georgia, "Times New Roman", serif;
  --font-texte: "Inter", Arial, sans-serif;

  --gouttiere: 4vw;              /* marge gauche / droite des sections */
  --espace: 7vw;                 /* entre deux sections */
  --t-hero: 64px;                /* grand titre (hero, bandeau) */
  --t-titre: 48px;               /* titre de section */
  --t-carte: 32px;               /* titre de carte */
  --t-menu: 24px;                /* noms des catégories, titres du pied de page */
  --t-texte: 16px;
  --lh-texte: 24px;
  --t-bouton: 12px;
  --t-question: 24px;
  --hero-court: 70vh;            /* hero des pages intérieures et des fiches */
  --hero-archive: 70vh;
}
@media (max-width: 1024px) {
  :root { --t-hero: 52px; --t-titre: 40px; --t-carte: 28px; --t-menu: 22px; --t-texte: 15px; --lh-texte: 22.5px; --hero-archive: 50vh; --t-question: 22px; }
}
@media (max-width: 767px) {
  :root { --espace: 15vw; --t-hero: 40px; --t-titre: 32px; --t-carte: 24px; --t-menu: 20px; --t-texte: 14px; --lh-texte: 21px; --t-question: 20px; }
}

/* ---------------------------------------------------------------- polices (Inter 400, jeu latin ; titres en Georgia, police système) */
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../../mcd-builder/assets/436c85ca99fa2ae080f07f4a957898a30b8be863.woff2") format("woff2");
}
/* police de secours aux mêmes dimensions qu'Inter (aucun décalage au chargement) : size-adjust = largeur Inter / Arial
   mesurée dans Chrome sur une phrase du site ; ascent / descent = métriques hhea d'Inter (1984 / 494 sur 2048) / size-adjust */
@font-face {
  font-family: "Inter Secours"; src: local("Arial");
  size-adjust: 105.27%; ascent-override: 92.03%; descent-override: 22.91%; line-gap-override: 0%;
}
:root { --font-texte: "Inter", "Inter Secours", Arial, sans-serif; }

/* ---------------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font-texte); font-size: var(--t-texte); line-height: var(--lh-texte); color: var(--color-text); background: var(--color-blanc); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
p, ul, ol, figure, h1, h2, h3, h4 { margin: 0; }
ul { padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
.wrap { padding-inline: var(--gouttiere); }
main > section, main > article, main > nav { position: relative; }
main > * + section { margin-top: var(--espace); }
main > .bandeau, main > .bandeau + section, main > .hero + section, main > .filtres,
main > .hero + .bandeau { margin-top: 0; }
main > .hero + section:not(.bandeau):not(.filtres) { margin-top: var(--espace); }

.titre { font-family: var(--font-titre); font-weight: 400; font-size: var(--t-titre); line-height: 1; color: var(--color-primary); }
.titre--centre { text-align: center; }
.titre--noir { color: var(--color-text); }
.titre--clair { color: var(--color-blanc); }
.titre .accent, .accent { font-style: italic; }

/* textes courants : marges de paragraphe du site (14 px) */
.duo__corps p, .intro__corps p, .entete__corps p, .texte__corps p, .avantage__corps p, .faq__reponse p { margin-bottom: 14px; }
.duo__corps p:last-child, .intro__corps p:last-child, .entete__corps p:last-child, .avantage__corps p:last-child, .faq__reponse p:last-child { margin-bottom: 0; }

/* boutons : Inter 12 px capitales, 12 px de marge intérieure */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px; font-family: var(--font-texte); font-size: var(--t-bouton); line-height: 1;
  text-transform: uppercase; text-align: center; background: var(--color-primary); color: var(--color-blanc); border: 1px solid var(--color-primary);
  transition: transform .3s, background-color .3s, color .3s; }
.btn:hover, .btn:focus-visible { transform: translateY(-8px); }
.btn--clair { background: var(--color-blanc); color: var(--color-primary); }
.btn--blanc { background: var(--color-blanc); color: var(--color-gris); border-color: var(--color-blanc); padding: 12px 24px; }
.btn--icone svg { width: 16px; height: 17px; flex: none; }
.btn .btn__icone { width: 14px; height: auto; max-height: 14px; }

/* flèches des carrousels : rond bordeaux, flèche blanche */
.fleche { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--color-primary); color: var(--color-blanc); }
.fleche svg { width: 16px; height: 16px; }

/* apparition au défilement (« fadeInUp ») : état caché seulement avec JS */
.js .is-reveal { opacity: 0; transform: translateY(40px); transition: opacity 1.25s ease, transform 1.25s ease; }
.js .is-reveal.is-visible { opacity: 1; transform: none; }

/* ---------------------------------------------------------------- en-tête */
.entete-site { position: fixed; inset: 0 0 auto; z-index: 50; padding-inline: var(--gouttiere); color: var(--color-blanc); transition: background-color .3s, color .3s; }
.entete-site.is-solid, .entete-site.is-open { background: var(--color-blanc); color: var(--color-text); }
.entete-site__haut { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 12px 0; border-bottom: 1px solid currentColor; min-height: 98px; transition: min-height .3s; }
.entete-site.is-solid .entete-site__haut, .entete-site.is-open .entete-site__haut { border-bottom-color: transparent; }
.entete-site.is-scrolled .entete-site__haut { min-height: 66px; }
.reseaux { display: flex; gap: 24px; }
.reseaux__lien { display: block; width: 24px; height: 24px; }
.reseaux__lien svg { width: 24px; height: 24px; fill: currentColor; }
.logo { display: block; color: inherit; }
.logo__svg { display: block; width: 100px; height: 60px; }
.entete-site__droite { display: flex; align-items: center; justify-content: flex-end; gap: 24px; }
.lang-switcher { display: flex; }
.lang-switcher a { display: block; padding: 5px 10px 6px; font-size: 16px; line-height: 16px; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif; }
.lang-switcher a[aria-current] { font-weight: 700; }
.entete-site__actions { display: flex; gap: 20px; }
.entete-site__actions .btn { padding: 12px; min-height: 48px; white-space: nowrap; }
/* entre 1025 et 1200 px : boutons resserrés (sans icône) pour tenir sur une ligne sans décentrer le logo */
@media (min-width: 1025px) and (max-width: 1200px) {
  .entete-site__droite, .entete-site__actions { gap: 12px; }
  .entete-site__actions .btn--icone svg { display: none; }
}
@media (min-width: 1025px) and (max-width: 1120px) {
  .entete-site__droite, .entete-site__actions { gap: 8px; }
}

/* menu : trois entrées centrées, panneaux pleine largeur au clic ; replié après défilement, il revient au survol de l'en-tête */
.menu { display: flex; justify-content: center; max-height: 60px; transition: max-height .3s, opacity .3s; }
@media (hover: hover) and (pointer: fine) {
  .entete-site.is-scrolled:not(:hover):not(:focus-within):not(.is-open) .menu { max-height: 0; opacity: 0; overflow: hidden; }
}
.menu__liste { display: flex; }
.menu__item { position: static; }
.menu__details > summary { list-style: none; }
.menu__details > summary::-webkit-details-marker { display: none; }
.menu__bouton { display: flex; align-items: center; gap: 6px; padding: 8px 16px; font-size: 12px; line-height: 18px; text-transform: uppercase; cursor: pointer; white-space: nowrap; }
.menu__chevron { width: 12px; height: 12px; transition: transform .3s; }
.menu__details[open] .menu__chevron { transform: rotate(180deg); }
.panneau { position: absolute; left: 0; right: 0; top: 100%; padding: 1vw var(--gouttiere); background: var(--color-blanc); color: var(--color-text);
  display: grid; gap: 1vw; animation: ouvre .3s ease; box-shadow: 0 20px 30px rgba(0, 0, 0, .08); }
@keyframes ouvre { from { opacity: 0; } to { opacity: 1; } }
.panneau__cartes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1vw; }
.panneau__lien { display: flex; gap: 1vw; align-items: stretch; background: var(--color-primary); color: var(--color-blanc); }
.panneau__image { width: 150px; aspect-ratio: 3 / 4; object-fit: cover; flex: none; }
.panneau__nom { font-family: var(--font-titre); font-size: var(--t-menu); line-height: 1; text-transform: uppercase; padding-top: 1vw; }
.panneau__lien { position: relative; }
.panneau__lire { position: absolute; left: calc(150px + 1vw); bottom: 1vw; font-size: 12px; line-height: 1; text-transform: uppercase; }
.panneau__defile { position: relative; min-width: 0; }
.panneau__defile .fleches { display: none; }
.panneau__plus { text-align: center; }
.panneau__plus .btn { background: var(--color-blanc); color: var(--color-primary); }

@media (max-width: 1024px) {
  .entete-site__haut { min-height: 91px; }
  .entete-site__actions { position: fixed; inset: auto 0 0; z-index: 40; justify-content: center; gap: 8px; padding: 12px var(--gouttiere); }
  .entete-site__actions .btn { max-width: none; min-height: 0; padding: 12px; }
  .entete-site__actions .btn--icone svg { display: none; }
  .panneau__cartes { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 767px) {
  .entete-site__haut { grid-template-columns: auto 1fr auto; }
  .lang-switcher { flex-direction: column; }
  .reseaux { gap: 6px; }
  .logo { justify-self: center; }
  .menu { justify-content: flex-start; overflow-x: auto; scrollbar-width: none; margin-inline: calc(-1 * var(--gouttiere)); padding-inline: var(--gouttiere) 44px; }
  .entete-site:not(.is-open) .menu:not(.is-fin) { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 72px), transparent calc(100% - 20px)); mask-image: linear-gradient(to right, #000 calc(100% - 72px), transparent calc(100% - 20px)); }
  /* indice de défilement du menu : rond bordeaux + chevron à droite, masqué une fois au bout ou quand un panneau est ouvert */
  .entete-site::before, .entete-site::after { content: ""; position: absolute; right: 8px; bottom: 6px; width: 22px; height: 22px; pointer-events: none;
    animation: indice 1.6s ease-in-out infinite; transition: opacity .3s; }
  .entete-site::before { border-radius: 50%; background: var(--color-primary); }
  /* chevron dessiné par deux bordures (pas d'image) */
  .entete-site::after { width: 7px; height: 7px; right: 16px; bottom: 13.5px; border: solid var(--color-blanc); border-width: 2px 2px 0 0; rotate: 45deg; }
  .entete-site.is-menu-fin::before, .entete-site.is-menu-fin::after, .entete-site.is-open::before, .entete-site.is-open::after { opacity: 0; animation: none; }
  @keyframes indice { 50% { transform: translateX(3px); } }
  .menu::-webkit-scrollbar { display: none; }
  .menu__bouton { padding: 8px 12px; font-size: 12px; }
  .panneau { top: 100%; padding: 4px var(--gouttiere); }
  .panneau__cartes { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 4px; scrollbar-width: none; }
  .panneau__cartes::-webkit-scrollbar { display: none; }
  .panneau__carte { flex: 0 0 85%; scroll-snap-align: start; }
  .panneau__lien { gap: 16px; }
  .panneau__image { width: 100px; }
  .panneau__nom { padding: 16px 16px 0 0; }
  .panneau__lire { left: calc(100px + 16px); bottom: 16px; padding-bottom: 2px; border-bottom: 1px solid currentColor; }
  .panneau__defile .fleches { display: flex; inset: 50% 8px auto; }
  .panneau__defile .fleche { width: 36px; height: 36px; background: var(--color-blanc); color: var(--color-primary); box-shadow: 0 2px 8px rgba(0, 0, 0, .2); }
}

/* ---------------------------------------------------------------- hero */
.hero { position: relative; display: grid; place-items: center; min-height: var(--hero-court); padding-inline: var(--gouttiere); overflow: hidden;
  background: var(--color-secondary); color: var(--color-blanc); text-align: center; isolation: isolate; }
.hero--accueil, .hero--apropos { min-height: 100vh; }
.hero--archive, .hero--blog { min-height: var(--hero-archive); }
.hero__media { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(0, 0, 0, .3); }
[data-diaporama] .hero__media { opacity: 0; transition: opacity .5s ease; }
[data-diaporama] .hero__media.is-active { opacity: 1; }
.hero__contenu { padding: 0; width: 100%; }
.hero__titre { font-family: var(--font-titre); font-weight: 400; font-size: var(--t-hero); line-height: 1; }
.hero__sous-titre { margin-top: 24px; font-size: var(--t-texte); line-height: 1; text-transform: uppercase; }

/* ---------------------------------------------------------------- bandeau : grande phrase sur fond bordeaux */
.bandeau { background: var(--color-primary); color: var(--color-blanc); padding-block: var(--espace); }
.bandeau__texte { font-family: var(--font-titre); font-size: var(--t-hero); line-height: 1; }
/* remplissage au défilement (GSAP) : chaque mot passe de transparent à blanc */
.bandeau__mot { opacity: .2; }
@media (max-width: 767px) { .bandeau { padding-block: 15vw; } }

/* ---------------------------------------------------------------- duo : texte + média jusqu'au bord de l'écran */
.duo { display: grid; grid-template-columns: 30fr 70fr; gap: var(--gouttiere); padding-left: var(--gouttiere); align-items: center; min-height: var(--hero-court); }
.duo--inverse { grid-template-columns: 70fr 30fr; padding-left: 0; padding-right: var(--gouttiere); }
.duo--inverse .duo__media { order: -1; }
.duo--video { grid-template-columns: 60fr 40fr; min-height: 0; }
.duo__texte { display: grid; gap: 20px; align-content: center; padding-block: 20px; }
.duo__media { align-self: stretch; position: relative; min-height: 100%; background: var(--color-secondary); }
.duo--video .duo__media { background: none; }
.duo__image, .duo__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.duo__video { position: static; aspect-ratio: 9 / 16; height: auto; background: #000; }
.duo__cta .btn { margin-top: 4px; }
.duo__carrousel { position: relative; height: 100%; min-height: 446px; }
.duo__piste { position: absolute; inset: 0; display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.duo__piste::-webkit-scrollbar { display: none; }
.duo__diapo { flex: 0 0 calc((100% - 24px) / 3); scroll-snap-align: start; }
.duo__photo { width: 100%; height: 100%; object-fit: cover; }
.duo__carrousel .fleches { inset: 50% 12px auto; }
.duo__media:has(.duo__carrousel) { background: none; }
@media (max-width: 1024px) {
  .duo--video { grid-template-columns: 45fr 55fr; }
  .duo__carrousel { min-height: 593px; }
  .duo__diapo { flex-basis: calc((100% - 12px) / 2); }
}
@media (max-width: 767px) {
  .duo, .duo--inverse, .duo--video { grid-template-columns: 1fr; padding-inline: var(--gouttiere); gap: var(--gouttiere); min-height: 0; }
  .duo--inverse .duo__media { order: 0; }
  .duo--inverse .duo__texte { order: 1; }
  .duo__media { min-height: 40vh; }
  .duo__image { position: absolute; }
  .duo__carrousel { min-height: 545px; }
  .duo__diapo { flex-basis: 100%; }
}

/* ---------------------------------------------------------------- large : grande photo dans la largeur utile */
.large { padding-inline: var(--gouttiere); }
.large__image { width: 100%; height: 720px; object-fit: cover; }
@media (max-width: 1024px) { .large__image { height: 1093px; } }
@media (max-width: 767px) { .large__image { height: 675px; } }

/* ---------------------------------------------------------------- intro : titre + texte centrés (60 % de la largeur) */
.intro { display: grid; justify-items: center; gap: 20px; text-align: center; }
.intro > * { width: min(100%, 60%); }
.intro__corps { display: grid; }
@media (max-width: 767px) { .intro > * { width: 100%; } }

/* ---------------------------------------------------------------- entete : titre à gauche, texte à droite */
.entete { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 1024px) { .entete { gap: 48px; } }
@media (max-width: 767px) { .entete { grid-template-columns: 1fr; gap: 24px; } }

/* ---------------------------------------------------------------- texte long (pages légales) */
.texte__corps { display: grid; gap: 0; }
.texte__corps h2 { font-family: var(--font-titre); font-weight: 400; font-size: var(--t-carte); line-height: 1.1; color: var(--color-primary); margin: 24px 0 14px; }
.texte__corps h3 { font-family: var(--font-titre); font-weight: 400; font-size: var(--t-menu); line-height: 1.1; color: var(--color-primary); margin: 20px 0 10px; }
.texte__corps ul { list-style: disc; padding-left: 20px; margin-bottom: 14px; }
.texte__titre { font-weight: 700; margin-bottom: 14px; }
.texte__corps a { text-decoration: underline; }

/* ---------------------------------------------------------------- categories : carrousel des destinations */
.categories__piste { position: relative; }
.categories__liste { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-inline: var(--gouttiere); }
.categories__liste::-webkit-scrollbar { display: none; }
.categorie { flex: 0 0 420px; scroll-snap-align: center; }
.categorie__lien { position: relative; display: block; aspect-ratio: 2 / 3; padding: 48px; color: var(--color-blanc); background: var(--color-secondary); overflow: hidden; }
.categorie__image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.categorie__lien:hover .categorie__image { transform: scale(1.04); }
.categorie__nom { position: relative; font-family: var(--font-titre); font-weight: 400; font-size: var(--t-carte); line-height: 1; }
.fleches { position: absolute; inset: 50% var(--gouttiere) auto; display: flex; justify-content: space-between; pointer-events: none; transform: translateY(-50%); }
.fleches .fleche { pointer-events: auto; }
@media (max-width: 1024px) { .categorie { flex-basis: 300px; } }
@media (max-width: 767px) { .categorie { flex-basis: 310px; } .categorie__lien { padding: 24px; aspect-ratio: auto; height: 422px; } }

/* ---------------------------------------------------------------- envies : quatre cartes (1 haute, 1 large, 2) */
.envies__liste { display: grid; grid-template-columns: 426fr 426fr 426fr; grid-template-rows: 348px 348px; gap: 24px; }
.envie--1 { grid-row: 1 / 3; }
.envie--2 { grid-column: 2 / 4; }
.envie__lien { position: relative; display: flex; flex-direction: column; justify-content: space-between; height: 100%; padding: 48px; color: var(--color-blanc);
  background: var(--color-secondary); overflow: hidden; isolation: isolate; }
.envie__image { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.envie__lien::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0, 0, 0, .15), rgba(0, 0, 0, .35)); }
.envie__lien:hover .envie__image { transform: scale(1.04); }
.envie__titre { font-family: var(--font-titre); font-weight: 400; font-size: var(--t-carte); line-height: 1; max-width: 330px; }
.envie__texte { display: block; max-width: 429px; }
.envie--1 .envie__texte, .envie--3 .envie__texte, .envie--4 .envie__texte { max-width: 330px; }
@media (max-width: 1024px) {
  .envies__liste { grid-template-rows: 534px 534px; }
  .envie__lien { padding: 32px; }
}
@media (max-width: 767px) {
  .envies__liste { grid-template-columns: 1fr; grid-template-rows: none; gap: 24px; }
  .envie--1, .envie--2 { grid-row: auto; grid-column: auto; }
  .envie { position: sticky; top: 100px; height: 338px; }   /* cartes empilées au défilement, comme le site */
  .envie__lien { padding: 24px; }
}

/* ---------------------------------------------------------------- faq : photo + deux colonnes de questions */
.faq__grille { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gouttiere); align-items: start; }
.faq__image { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.faq__colonne { display: grid; gap: 20px; }
.faq__titre { font-family: var(--font-titre); font-weight: 400; font-size: var(--t-carte); line-height: 1; color: var(--color-primary); }
.faq__question { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px; cursor: pointer; list-style: none; color: var(--color-gris); }
.faq__question::-webkit-details-marker { display: none; }
.faq__q { font-family: var(--font-texte); font-weight: 400; font-size: var(--t-question); line-height: 1.5; }
.faq__plus { width: 15px; height: 15px; flex: none; transition: transform .4s; }
.faq__item[open] .faq__plus { transform: rotate(45deg); }
.faq__reponse { padding: 0 10px 14px; }
@media (max-width: 1024px) { .faq__grille { gap: 48px; } }
@media (max-width: 767px) { .faq__grille { grid-template-columns: 1fr; gap: 24px; } .faq__image { aspect-ratio: 3 / 2; } }

/* ---------------------------------------------------------------- atouts (fiche) : 6 cartes photo + liste « effet Whaou » collante */
.atouts { display: grid; grid-template-columns: 883fr 475fr; gap: 24px; padding-right: var(--gouttiere); align-items: start; }
.atouts__cartes { display: grid; grid-template-columns: 1fr 1fr; }
.atout { position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: 12px; min-height: 353px; padding: 48px; color: var(--color-blanc);
  background: var(--color-secondary); overflow: hidden; isolation: isolate; }
.atout__image { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.atout::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, .55)); }
.atout__titre { font-family: var(--font-titre); font-weight: 400; font-size: var(--t-menu); line-height: 1; text-transform: uppercase; }
.atouts__liste { align-self: stretch; }
.atouts__collant { position: sticky; top: 100px; display: grid; gap: 20px; padding-top: 131px; }
.atouts__points { display: grid; gap: 24px; }
.atouts__point { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: center; }
.atouts__icone { width: 24px; height: 24px; color: var(--color-text); }
@media (max-width: 1024px) {
  .atouts { grid-template-columns: 608fr 327fr; gap: 48px; }
  .atout { min-height: 243px; padding: 32px; }
  .atouts__collant { padding-top: 0; }
}
@media (max-width: 767px) {
  .atouts__collant { position: static; }
  .atouts { grid-template-columns: 1fr; padding-right: 0; }
  .atouts__cartes { grid-template-columns: 1fr; }
  .atout { position: sticky; top: 120px; min-height: 312px; padding: 24px; }
  .atouts__liste { padding-inline: var(--gouttiere); }
}

/* ---------------------------------------------------------------- galerie : maçonnerie 4 / 2 / 1 colonnes sur fond bordeaux */
.galerie { background: var(--color-primary); padding-block: var(--espace); }
.galerie .wrap { display: grid; gap: var(--gouttiere); }
.galerie__grille { columns: 4; column-gap: 0; }
.galerie__item { break-inside: avoid; }
.galerie__lien { display: block; position: relative; }
.galerie__lien::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .3); opacity: 0; transition: opacity .3s; }
.galerie__lien:hover::after { opacity: 1; }
.galerie__image { width: 100%; }
/* tablette : 4 colonnes, comme le site (son réglage « 2 colonnes » n'est pas appliqué en maçonnerie) */
@media (max-width: 767px) { .galerie__grille { columns: 1; } .galerie__item { margin-bottom: 0; } }
.loupe { max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; margin: 0; padding: 0; border: 0; background: rgba(0, 0, 0, .9); }
.loupe[open] { display: grid; place-items: center; }
.loupe__image { max-width: 90vw; max-height: 90vh; object-fit: contain; }
.loupe__fermer { position: absolute; top: 16px; right: 16px; width: 40px; height: 40px; color: var(--color-blanc); font-size: 0; }
.loupe__fermer::before, .loupe__fermer::after { content: ""; position: absolute; left: 8px; right: 8px; top: 19px; height: 2px; background: currentColor; transform: rotate(45deg); }
.loupe__fermer::after { transform: rotate(-45deg); }
.loupe__prec, .loupe__suiv { position: absolute; top: 50%; }
.loupe__prec { left: 16px; }
.loupe__suiv { right: 16px; }
.loupe__prec::before, .loupe__suiv::before { content: ""; width: 10px; height: 10px; border: solid currentColor; border-width: 0 0 2px 2px; transform: rotate(45deg); margin-left: 4px; }
.loupe__suiv::before { transform: rotate(-135deg); margin: 0 4px 0 0; }

/* ---------------------------------------------------------------- avantages (association) : diapositive active, texte à gauche */
.avantages { position: relative; padding-left: var(--gouttiere); }
.avantage { display: grid; grid-template-columns: 397fr 927fr; column-gap: var(--gouttiere); align-items: center; }
.js .avantage:not(.is-active) { display: none; }
.no-js .avantage + .avantage { margin-top: 24px; }
.avantage__texte { order: -1; display: grid; gap: 20px; }
.avantage__texte .titre { font-size: var(--t-carte); }
.avantage__image { width: 100%; height: 517px; object-fit: cover; }
.avantage.is-active .avantage__image { animation: ouvre .4s ease; }
.avantages .fleches { left: calc(var(--gouttiere) + (100% - 2 * var(--gouttiere)) * .3 + var(--gouttiere) - 15px); right: -15px; padding-right: var(--gouttiere); }
@media (max-width: 1024px) {
  .avantages { padding-left: 0; }
  .avantage { grid-template-columns: 1fr; row-gap: 20px; }
  .avantage__texte { order: 1; padding-inline: var(--gouttiere); }
  .avantage__image { height: 539px; }
  .avantages .fleches { top: 270px; left: var(--gouttiere); right: var(--gouttiere); padding: 0; }
}
@media (max-width: 767px) { .avantage__image { height: 205px; } .avantages .fleches { top: 102px; } }

/* ---------------------------------------------------------------- maisons : cartes d'articles (archives), 3 colonnes */
.maisons__grille { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.maison[hidden] { display: none; }
.maison__lien { position: relative; display: flex; flex-direction: column; height: 100%; min-height: 527px; padding: 48px; color: var(--color-blanc);
  background: var(--color-secondary); overflow: hidden; isolation: isolate; }
.maison__image { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.maison__lien::after { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(0, 0, 0, .3); }
.maison__lien:hover .maison__image { transform: scale(1.04); }
.maison__titre { font-family: var(--font-titre); font-weight: 400; font-size: var(--t-carte); line-height: 1; }
.maison__extrait { margin-top: auto; text-align: justify; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.maison__lire { margin-top: 24px; font-size: 12px; line-height: 1; text-transform: uppercase; }
@media (max-width: 1024px) { .maisons__grille { grid-template-columns: repeat(2, 1fr); } .maison__lien { padding: 32px; min-height: 640px; } }
@media (max-width: 767px) { .maisons__grille { grid-template-columns: 1fr; gap: 30px; } .maison__lien { padding: 24px; min-height: 449px; } }

/* ---------------------------------------------------------------- filtres (archives parentes) : bande bordeaux */
.filtres { background: var(--color-primary); color: var(--color-blanc); padding-block: 2vw; }
.filtres__liste { display: flex; justify-content: safe center; gap: 4vw; overflow-x: auto; scrollbar-width: none; }
.filtre { flex: none; padding: 8px 0; font-size: 12px; line-height: 15px; text-transform: uppercase; white-space: nowrap; }
.filtre[aria-pressed="true"] { opacity: .5; }
/* filtres plus larges que l'écran : flèches dans les marges et fondu sur les bords (défilement à la souris) */
.filtres .fleches { display: none; inset: 50% calc(var(--gouttiere) / 2 - 15px) auto; }
.filtres.is-deborde .fleches { display: flex; }
.filtres .fleche { background: var(--color-blanc); color: var(--color-primary); }
.filtres.is-deborde .filtres__liste { -webkit-mask-image: linear-gradient(to right, transparent, #000 48px, #000 calc(100% - 48px), transparent);
  mask-image: linear-gradient(to right, transparent, #000 48px, #000 calc(100% - 48px), transparent); }
@media (max-width: 767px) { .filtres { padding-block: 15vw; } .filtres__liste { justify-content: flex-start; padding-inline: 40px; } .filtres .fleches { inset: 50% 4px auto; } }

/* ---------------------------------------------------------------- annonce (blog sans article) */
.annonce__liste { display: grid; grid-template-columns: 729fr 596fr; gap: 24px; }
.annonce__texte { font-family: var(--font-titre); font-size: var(--t-hero); line-height: 1.5; color: var(--color-primary); text-align: center; }
@media (max-width: 1024px) { .annonce__liste { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- fiche maison (article) */
.fiche { position: relative; }
.fiche .hero--fiche { min-height: var(--hero-court); align-content: center; }
.fiche .hero--fiche .hero__contenu { transform: translateY(-36px); }
.fiche__actions { position: absolute; top: calc(var(--hero-court) / 2 + 16px); left: 0; right: 0; z-index: 2; display: flex; justify-content: center; gap: 20px; padding-inline: var(--gouttiere); }
.fiche__actions .btn { padding: 12px 24px; }
.fiche__corps > section + section { margin-top: var(--espace); }
.fiche__corps > .bandeau + section, .fiche__corps > .atouts + .galerie { margin-top: 0; }
.fiche__corps > .atouts + .galerie { margin-top: var(--espace); }
.fiche__aside { display: none; }   /* sommaire exigé par MCD Builder ; masqué : la fiche n'en affiche pas */
.fiche + section { margin-top: var(--espace); }
@media (max-width: 767px) {
  .fiche__actions { flex-direction: column; align-items: center; gap: 12px; top: calc(var(--hero-court) / 2 - 8px); }
  .fiche__actions .btn { padding: 12px; }
  .duo__media { min-height: 45vh; }
}

/* ---------------------------------------------------------------- pied de page */
.pied { margin-top: var(--espace); }
.photos { overflow: hidden; }
.photos__liste { display: flex; gap: 24px; width: max-content; }
.photos__liste.is-defilant { animation: defile 120s linear infinite; }
.photos:hover .photos__liste { animation-play-state: paused; }
@keyframes defile { to { transform: translateX(-50%); } }
.photos__item { flex: none; width: 342px; }
.photos__image { width: 100%; height: 256px; object-fit: cover; }
.contact { margin-top: var(--espace); background: var(--color-secondary); color: var(--color-blanc); padding-block: var(--espace); }
.contact__titre { font-family: var(--font-titre); font-size: var(--t-titre); line-height: 1; margin-bottom: 40px; }
.contact__form { display: grid; gap: 12px; }
.contact__ligne { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.champ { display: block; }
.champ__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.champ__input { width: 100%; padding: 12px 16px; font: inherit; font-size: 14px; color: var(--color-blanc); background: transparent; border: 0; border-bottom: 1px solid var(--color-blanc); border-radius: 0; }
.champ__input::placeholder { color: rgba(255, 255, 255, .7); }
.champ__select { appearance: none; /* flèche du menu déroulant en CSS (pas d'image) */
  background-image: linear-gradient(45deg, transparent 50%, #fff 50%), linear-gradient(135deg, #fff 50%, transparent 50%);
  background-repeat: no-repeat; background-position: right 18px center, right 13px center; background-size: 5px 5px; }
.champ__select option { color: var(--color-text); }
textarea.champ__input { min-height: 100px; resize: vertical; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.4; margin-top: 8px; }
.consent a { text-decoration: underline; }
.contact__envoi { margin-top: 12px; }
.pied__principal { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; padding-block: var(--espace); background: var(--color-primary); color: var(--color-blanc); }
.pied__logo .logo__svg { width: 138px; height: 83px; }
.pied__titre { font-family: var(--font-titre); font-size: var(--t-menu); line-height: 1; text-transform: uppercase; margin-bottom: 16px; }
.pied__liens { display: grid; gap: 8px; }
.pied__liens a { display: block; line-height: 24px; }
.pied__liens a[aria-current] { opacity: .5; }
.pied__bas { display: flex; justify-content: space-between; gap: 20px; padding-block: 0 24px; background: var(--color-primary); color: var(--color-blanc); }
@media (max-width: 1024px) { .pied__principal { grid-template-columns: repeat(3, 1fr); } .pied__bas { padding-bottom: 96px; } }
@media (max-width: 767px) {
  .pied__principal { grid-template-columns: 1fr; gap: 24px; }
  .contact__ligne { grid-template-columns: 1fr; }
  .photos__item { width: 290px; }
  .photos__image { height: 218px; }
}

/* ---------------------------------------------------------------- formulaires Contact Form 7 (états) */
.wpcf7-form-control-wrap { display: block; }
.wpcf7-not-valid { border-color: #ffd7dc; }
.wpcf7-not-valid-tip { color: #ffd7dc; font-size: .85em; margin-top: .25em; display: block; }
.wpcf7-response-output { margin: 1em 0 0; padding: .75em 1em; border-radius: 0; }
.wpcf7-form.sent .wpcf7-response-output { background: #e8f5e9; color: #1b5e20; }
.wpcf7-form.invalid .wpcf7-response-output, .wpcf7-form.failed .wpcf7-response-output { background: #fdecea; color: #8a1c13; }
.wpcf7-spinner { margin-left: .5em; }
.wpcf7-acceptance .wpcf7-list-item { margin: 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
