/*
Theme Name: Chez Zary
Theme URI: https://www.chezary.fr
Author: Chez Zary Mayotte
Description: Thème bloc sur mesure du site Chez Zary Mayotte, construit à partir de la maquette validée. Toutes les pages se modifient dans l'éditeur de blocs.
Version: 1.4.0
Requires at least: 6.7
Requires PHP: 8.0
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: chez-zary
Tags: block-theme, full-site-editing, one-column
*/

/* Chez Zary Mayotte — feuille de style partagée de la maquette */

:root {
  --accent: #075B60;        /* boutons, bandeau, logo, liens, pictogrammes */
  --accent-fonce: #054348;  /* survol */
  --fond: #F7F7F3;          /* fond principal, blanc cassé */
  --fond-doux: #E6F0ED;     /* fonds secondaires discrets */
  --encre: #203238;         /* titres et textes */
  --gris: #5f6c70;          /* texte secondaire : l'encre, atténuée */
  --filet: #dfe3df;         /* filets : l'encre, très atténuée */

  --marge: 80px;
  --collant-haut: 78px;   /* hauteur de l'en-tête quand il reste collé en haut de l'écran */
  --rayon: 8px;
  --police: 'Lato', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --police-fine: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--fond);
  color: var(--encre);
  font: 400 14px/1.7 var(--police);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, p, figure, ul { margin: 0; padding: 0; }
ul { list-style: none; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }

.enveloppe {
  width: 100%;
  max-width: 1440px;
  margin-inline: auto;
  padding-inline: var(--marge);
}

/* ---------- Pictogrammes (masque CSS, couleur du texte) ---------- */

.ico::before {
  content: "";
  display: block;
  width: 20px;
  height: 20px;
  background: currentColor;
  -webkit-mask: var(--ico) center / contain no-repeat;
  mask: var(--ico) center / contain no-repeat;
}
.ico--maison { --ico: url(assets/icons/maison.svg); }
.ico--echange { --ico: url(assets/icons/echange.svg); }
.ico--cle { --ico: url(assets/icons/cle.svg); }
.ico--calendrier { --ico: url(assets/icons/calendrier.svg); }
.ico--regles { --ico: url(assets/icons/regles.svg); }
.ico--lit { --ico: url(assets/icons/lit.svg); }
.ico--douche { --ico: url(assets/icons/douche.svg); }
.ico--clim { --ico: url(assets/icons/clim.svg); }
.ico--wifi { --ico: url(assets/icons/wifi.svg); }
.ico--cuisine { --ico: url(assets/icons/cuisine.svg); }
.ico--lave-linge { --ico: url(assets/icons/lave-linge.svg); }
.ico--linge { --ico: url(assets/icons/linge.svg); }
.ico--tv { --ico: url(assets/icons/tv.svg); }
.ico--terrasse { --ico: url(assets/icons/terrasse.svg); }
.ico--parking { --ico: url(assets/icons/parking.svg); }
.ico--moustiquaire { --ico: url(assets/icons/moustiquaire.svg); }
.ico--arrivee { --ico: url(assets/icons/arrivee.svg); }
.ico--depart { --ico: url(assets/icons/depart.svg); }
.ico--epingle { --ico: url(assets/icons/epingle.svg); }
.ico--boussole { --ico: url(assets/icons/boussole.svg); }
.ico--telephone { --ico: url(assets/icons/telephone.svg); }
.ico--courriel { --ico: url(assets/icons/courriel.svg); }
.ico--whatsapp { --ico: url(assets/icons/whatsapp.svg); }
.ico--fleche { --ico: url(assets/icons/fleche.svg); }
.ico--chevron { --ico: url(assets/icons/chevron.svg); }
.ico--fleche-gauche { --ico: url(assets/icons/fleche-gauche.svg); }
.ico--croix { --ico: url(assets/icons/croix.svg); }

.pastille {
  display: grid;
  place-items: center;
  flex: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--fond-doux);
  color: var(--accent);
}
.pastille--moyenne { width: 44px; height: 44px; }
.pastille--petite { width: 32px; height: 32px; }
.pastille--petite::before { width: 16px; height: 16px; }

/* ---------- Composants ---------- */

.bouton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 50px;
  padding: 0 28px;
  border: 0;
  border-radius: 6px;
  background: var(--accent);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .2s;
}
.bouton:hover { background: var(--accent-fonce); }
.bouton--large { width: 100%; height: 75px; }

.bouton-contour {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 41px;
  padding: 0 30px;
  border: 1.5px solid var(--accent);
  border-radius: 4px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  transition: background-color .2s, color .2s;
}
.bouton-contour:hover { background: var(--accent); color: #fff; }

.lien {
  color: var(--accent);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: rgba(7, 91, 96, 0.35);
  text-underline-offset: 3px;
}
.lien:hover { text-decoration-color: currentColor; }
.lien--fort { font-size: 15px; }
.lien--petit { font-size: 12px; text-decoration: none; }

.texte { color: var(--gris); }

.titre-page {
  color: var(--encre);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.3;
  text-wrap: balance;
  hyphens: none;
}
.titre-bloc {
  color: var(--encre);
  font-size: 21px;
  font-weight: 700;
  line-height: 1.3;
}
.titre-grand {
  color: var(--encre);
  font-size: 34px;
  font-weight: 700;
  line-height: 1.25;
  text-wrap: balance;
}
.titre-court {
  color: var(--encre);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
}
.titre-accent {
  color: var(--accent);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.4;
}

/* ---------- Bandeau et en-tête ---------- */

.bandeau {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0 6px;
  min-height: 50px;
  padding: 10px 20px;
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
}
.bandeau a {
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.entete { border-bottom: 1px solid var(--filet); background: var(--fond); }
.entete-rang {
  display: flex;
  align-items: center;
  height: 77px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--encre);
  font-size: 17px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}
.logo img { width: auto; height: 36px; }
.menu {
  display: flex;
  gap: 40px;
  margin-left: 56px;
}
.menu-lien {
  color: var(--gris);
  font-size: 15px;
  line-height: 1;
  white-space: nowrap;
  transition: color .2s;
}
.menu-lien:hover, .menu-lien.actif { color: var(--encre); }
.entete-outils {
  display: flex;
  align-items: center;
  gap: 34px;
  margin-left: auto;
}
.outil { color: var(--encre); transition: color .2s; }
.outil:hover { color: var(--accent); }
.entete-contact {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding-left: 34px;
  border-left: 1px solid var(--filet);
  line-height: 1;
  white-space: nowrap;
}
.entete-contact strong { color: var(--encre); font-size: 13px; }
.entete-contact span { color: var(--accent); font-size: 11px; font-weight: 700; }

/* ---------- Ouverture : titre, galerie, onglets ---------- */

.ouverture-tete {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  padding-top: 32px;
}
.ouverture-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  color: var(--gris);
  font-size: 13px;
  line-height: 1.5;
}
.ouverture-meta .ico { color: var(--accent); }
.ouverture-meta .ico::before { width: 16px; height: 16px; }

.galerie {
  display: grid;
  grid-template-columns: 56.64% minmax(0, 1fr) minmax(0, 1fr);
  grid-template-rows: 357fr 170fr;
  gap: 16px;
  aspect-ratio: 1280 / 543;
  margin-top: 30px;
}
.galerie-photo {
  overflow: hidden;
  min-height: 0;
  border-radius: var(--rayon);
  background: var(--fond-doux);
}
.galerie-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.galerie-photo--grande { grid-row: 1 / 3; }
.galerie-photo--large { grid-column: 2 / 4; }

.onglets {
  display: flex;
  border-bottom: 1px solid var(--filet);
}
.onglet {
  padding: 0 30px 31px;
  margin-bottom: -1px;
  border-bottom: 3px solid transparent;
  color: var(--gris);
  font-size: 15px;
  line-height: 1.4;
  white-space: nowrap;
  transition: color .2s;
}
.onglet:hover { color: var(--encre); }
.onglet.actif {
  border-bottom-color: var(--accent);
  color: var(--encre);
  font-weight: 700;
}

/* ---------- Fiche : contenu à gauche, carte de demande à droite ---------- */

.fiche {
  display: grid;
  grid-template-columns: minmax(0, 811fr) minmax(0, 430fr);
  gap: 39px;
  align-items: start;
  padding-top: 40px;
}

.bloc {
  padding-block: 54px 48px;
  border-top: 1px solid var(--filet);
  scroll-margin-top: 20px;
}
.bloc--premier { padding-top: 0; border-top: 0; }
.bloc > .titre-bloc { margin-bottom: 30px; }

.bloc--premier > .titre-bloc { margin-bottom: 0; }
.fiche-resume {
  margin-top: 8px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--filet);
  color: var(--gris);
  font-size: 12px;
  line-height: 1.5;
}

.atouts {
  display: flex;
  flex-direction: column;
  gap: 44px;
  margin-top: 40px;
}
.atout {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.atout-titre {
  color: var(--encre);
  font-size: 20px;
  font-weight: 400;
  line-height: 1.25;
}
.atout-texte {
  margin-top: 4px;
  color: var(--gris);
  font-size: 13px;
  line-height: 1.5;
}

.recit { padding-top: 38px; }
.recit p { max-width: 770px; color: var(--gris); }
.recit .titre-court { margin: 26px 0 18px; }

.couchages {
  display: grid;
  grid-template-columns: repeat(3, 207px);
  gap: 26px;
}
.couchage {
  min-height: 157px;
  padding: 22px;
  border: 1px solid var(--filet);
  border-radius: var(--rayon);
}
.couchage-titre {
  margin-top: 22px;
  color: var(--encre);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
}
.couchage-texte {
  margin-top: 6px;
  color: var(--gris);
  font-size: 11px;
  line-height: 1.4;
}

.equipements {
  display: grid;
  grid-template-columns: repeat(3, 233px);
  gap: 28px 0;
}
.equipement {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--encre);
  font-size: 14px;
  line-height: 1.3;
}
.bloc .bouton-contour { margin-top: 36px; }

.conditions-duo {
  display: grid;
  grid-template-columns: 416px minmax(0, 1fr);
  margin-top: 18px;
  color: var(--gris);
}
.conditions-duo > div { display: flex; flex-direction: column; justify-content: space-between; gap: 18px; }
.conditions-duo > div:last-child { max-width: 330px; }
.conditions-duo > div:first-child { padding-top: 24px; }
.bloc .titre-accent + .conditions-duo { margin-bottom: 56px; }
.bloc .titre-court + .texte { margin-top: 20px; }
.bloc .texte + .titre-court { margin-top: 44px; }
.horaires {
  display: grid;
  grid-template-columns: 416px minmax(0, 1fr);
  margin-top: 24px;
}
.regles {
  display: grid;
  grid-template-columns: 211px 203px minmax(0, 1fr);
  gap: 22px 0;
  margin-top: 34px;
  color: var(--gris);
  font-size: 13px;
  line-height: 1.4;
}
.regles li {
  display: flex;
  align-items: center;
  gap: 18px;
  padding-left: 3px;
}
.regles li::before {
  content: "";
  flex: none;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

.bloc--carte { padding-bottom: 0; }
.bloc--carte .titre-grand { margin-bottom: 24px; }
.plan {
  position: relative;
  overflow: hidden;
  max-width: 800px;
  aspect-ratio: 800 / 336;
  border-radius: var(--rayon);
  background: var(--fond-doux);
}
.plan img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.plan-credit {
  position: absolute;
  right: 0;
  bottom: 0;
  padding: 2px 8px;
  border-top-left-radius: 6px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--encre);
  font-size: 10px;
  line-height: 1.6;
}
.plan-legende { max-width: 640px; margin-top: 18px; font-size: 13px; }

/* Carte de demande */
.fiche-cote {
  position: sticky;
  top: calc(var(--wp-admin--admin-bar--height, 0px) + var(--collant-haut) + 24px);
  scroll-margin-top: 24px;
}
.resa {
  padding: 37px 16px 26px;
  border: 1px solid var(--filet);
  border-radius: var(--rayon);
  background: #fff;
  box-shadow: 0 14px 30px -18px rgba(32, 50, 56, 0.2);
}
.resa-tete {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.resa-prix { color: var(--gris); font-size: 11px; line-height: 1; }
.resa-prix strong {
  margin-right: 4px;
  color: var(--encre);
  font-size: 26px;
  font-weight: 700;
}
.resa-type {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--gris);
  font-size: 11px;
  line-height: 1;
}
.resa-type .ico { color: var(--accent); }
.resa-type .ico::before { width: 15px; height: 15px; }
.resa-cadre {
  margin-top: 16px;
  border: 1px solid var(--filet);
  border-radius: 6px;
}
.resa-tete + .resa-cadre { margin-top: 39px; }
.resa-cadre--duo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.resa-cadre--duo .resa-champ + .resa-champ::before {
  content: "";
  position: absolute;
  left: 0;
  top: 20px;
  bottom: 20px;
  border-left: 1px solid var(--filet);
}
.resa-champ {
  position: relative;
  display: block;
  padding: 18px 14px 16px;
}
.resa-libelle {
  display: block;
  color: var(--encre);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
}
.resa-saisie {
  display: block;
  width: 100%;
  min-width: 0;
  height: 30px;
  margin-top: 8px;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--gris);
  font-size: 15px;
  line-height: 30px;
  -webkit-appearance: none;
  appearance: none;
}
.resa-champ:focus-within .resa-libelle { color: var(--accent); }
.resa-champ--liste::after {
  content: "";
  position: absolute;
  right: 16px;
  bottom: 23px;
  width: 16px;
  height: 16px;
  background: var(--accent);
  -webkit-mask: url(assets/icons/chevron.svg) center / contain no-repeat;
  mask: url(assets/icons/chevron.svg) center / contain no-repeat;
  pointer-events: none;
}
.resa-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 43px 0 42px;
  line-height: 1.2;
}
.resa-total span { color: var(--encre); font-size: 11px; font-weight: 700; }
.resa-total strong { color: var(--encre); font-size: 19px; }
.resa-pied {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-top: 36px;
  padding-top: 41px;
  border-top: 1px solid var(--filet);
  text-align: center;
  line-height: 1.2;
}
.resa-pied strong { color: var(--encre); font-size: 12px; }

/* ---------- À découvrir ---------- */

.autour { padding-block: 122px 130px; }
.autour-chapo {
  margin-top: 10px;
  color: var(--gris);
  font-size: 13px;
  line-height: 1.5;
}
.cartes {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin-top: 46px;
}
.carte { font-family: var(--police-fine); }
.carte-photo {
  width: 100%;
  aspect-ratio: 303 / 199;
  object-fit: cover;
  border-radius: var(--rayon);
  background: var(--fond-doux);
}
.carte-titre {
  margin-top: 20px;
  margin-bottom: 12px;
  color: var(--encre);
  font-size: 20px;
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -0.02em;
}
.carte-ligne {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 8px;
  color: var(--gris);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.4;
  letter-spacing: -0.01em;
}
.carte-ligne .ico::before { width: 17px; height: 17px; }

/* ---------- Pied de page ---------- */

.pied {
  background: var(--encre);
  color: #fff;
  font-family: var(--police-fine);
  font-weight: 300;
}
.pied-haut {
  display: flex;
  justify-content: space-between;
  gap: 48px;
  padding-top: 106px;
  padding-bottom: 74px;
}
.pied-titre {
  font-size: 42px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.03em;
}
.pied-ecrire {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 512px;
  max-width: 100%;
  margin-top: 80px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.24);
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  line-height: 1.4;
  transition: color .2s, border-color .2s;
}
.pied-ecrire:hover { border-color: #fff; color: #fff; }
.pied-fleche {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 50%;
  color: #fff;
}
.pied-fleche::before { width: 16px; height: 16px; }
.pied-texte {
  max-width: 520px;
  margin-top: 36px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 18px;
  line-height: 1.65;
  letter-spacing: -0.02em;
}
.pied-droite {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  padding-top: 124px;
}
.pied-menu {
  display: grid;
  grid-template-columns: auto auto;
  justify-items: end;
  gap: 52px 84px;
  font-size: 18px;
  line-height: 1.3;
  letter-spacing: -0.02em;
}
.pied-menu a:hover { text-decoration: underline; text-underline-offset: 5px; }
.pied-ronds {
  display: flex;
  gap: 22px;
  margin-top: 40px;
}
.pied-rond {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transition: background-color .2s, border-color .2s;
}
.pied-rond:hover { background: var(--accent); border-color: var(--accent); }
.pied-bas {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 40px 0 42px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.88);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
}
.pied-liens { display: flex; flex-wrap: wrap; gap: 8px 44px; }
.pied-bas a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Écrans intermédiaires ---------- */

@media (max-width: 1180px) {
  :root { --marge: 32px; }
  .menu { gap: 26px; margin-left: 36px; }
  .entete-outils { gap: 22px; }
  .entete-contact { padding-left: 22px; }
  .fiche { grid-template-columns: minmax(0, 1fr) 360px; gap: 32px; }
  .couchages, .equipements { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .couchages { gap: 16px; }
  .conditions-duo, .horaires { grid-template-columns: 1fr 1fr; gap: 0 24px; }
  .regles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 940px) {
  .entete-rang { height: auto; flex-wrap: wrap; padding-block: 18px 0; }
  .menu { order: 3; width: 100%; margin: 16px 0 0; padding-bottom: 16px; overflow-x: auto; }
  .fiche { grid-template-columns: minmax(0, 1fr); }
  .fiche-cote { position: static; order: -1; max-width: 520px; }
  .fiche-contenu { margin-top: 20px; }
  .cartes { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 20px; }
  .pied-haut { flex-direction: column; padding-top: 72px; padding-bottom: 64px; }
  .pied-droite { align-items: flex-start; padding-top: 0; }
  .pied-menu { justify-items: start; gap: 22px 56px; }
}

/* ---------- Téléphone ---------- */

@media (max-width: 640px) {
  :root { --marge: 20px; }

  .bandeau { font-size: 12px; }
  .outil { display: none; }
  .entete-contact { padding-left: 0; border-left: 0; text-align: right; }
  .menu { gap: 22px; }
  .menu-lien { font-size: 14px; }

  .ouverture-tete { flex-direction: column; align-items: stretch; gap: 20px; padding-top: 24px; }
  .titre-page { font-size: 24px; }
  .ouverture-meta { align-items: flex-start; }
  .galerie {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: auto auto;
    gap: 8px;
    aspect-ratio: auto;
    margin-top: 22px;
  }
  .galerie-photo { aspect-ratio: 1; }
  .galerie-photo--grande { grid-row: auto; grid-column: 1 / 4; aspect-ratio: 4 / 3; }
  .galerie-photo--large { grid-column: auto; }

  .onglets { overflow-x: auto; scrollbar-width: none; }
  .onglets::-webkit-scrollbar { display: none; }
  .onglet { padding: 0 16px 16px; font-size: 14px; }
  .fiche { padding-top: 28px; }

  .bloc { padding-block: 40px 36px; }
  .bloc--premier { padding-top: 0; }
  .atouts { gap: 30px; margin-top: 30px; }
  .atout-titre { font-size: 18px; }
  .couchages { grid-template-columns: 1fr 1fr; gap: 12px; }
  .couchage { min-height: 0; padding: 18px; }
  .equipements { grid-template-columns: 1fr 1fr; gap: 20px 12px; }
  .conditions-duo { grid-template-columns: 1fr; gap: 22px; }
  .conditions-duo > div:first-child { padding-top: 0; }
  .horaires { grid-template-columns: 1fr; gap: 16px; }
  .regles { grid-template-columns: 1fr 1fr; gap: 16px 12px; }
  .regles li { gap: 12px; }
  .titre-grand { font-size: 26px; }

  .autour { padding-block: 64px 72px; }
  .cartes { gap: 32px 12px; margin-top: 32px; }
  .carte-titre { margin-top: 14px; margin-bottom: 8px; font-size: 16px; }
  .carte-ligne { font-size: 13px; margin-top: 5px; }
  .carte-ligne .ico::before { width: 14px; height: 14px; }

  .pied-haut { padding-top: 56px; padding-bottom: 48px; gap: 44px; }
  .pied-titre { font-size: 32px; }
  .pied-ecrire { margin-top: 44px; }
  .pied-texte { font-size: 16px; }
  .pied-bas { flex-direction: column; gap: 14px; padding: 28px 0 32px; }
  .pied-liens { gap: 8px 24px; }
}

/* ==========================================================================
   Pages internes (La Maison, Tarifs & réservation, Contact, pages légales)
   Mêmes composants que l'accueil ; seules les pièces nouvelles sont ici.
   ========================================================================== */

.ouverture--sans-onglets .ouverture-tete {
  padding-bottom: 34px;
  border-bottom: 1px solid var(--filet);
}
.bouton--icone { gap: 10px; }
.bouton--icone .ico::before { width: 18px; height: 18px; }

.bloc--dernier { padding-bottom: 0; }
.fiche--formulaire, .fiche--texte { padding-bottom: 120px; }
.texte--large { max-width: 770px; }
.atouts--serres { margin-top: 0; }
.titre-court--liste { margin: 40px 0 24px; }
.titre-bloc + .titre-court--liste { margin-top: 0; }

.recit--suite { margin-top: 30px; padding-top: 0; }
.recit--suite p + p { margin-top: 14px; }

/* La Maison : les pièces */
.pieces {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px 26px;
}
.piece-photo {
  width: 100%;
  aspect-ratio: 392 / 250;
  object-fit: cover;
  border-radius: var(--rayon);
  background: var(--fond-doux);
}
.piece-titre {
  margin-top: 18px;
  color: var(--encre);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
}
.piece-texte {
  margin-top: 8px;
  color: var(--gris);
  font-size: 13px;
  line-height: 1.65;
}
.duo-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 28px;
}
.duo-photos img {
  width: 100%;
  aspect-ratio: 397 / 264;
  object-fit: cover;
  border-radius: var(--rayon);
  background: var(--fond-doux);
}

/* Tarifs : lignes de prix */
.tarif {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--filet);
}
.tarif-nom {
  color: var(--encre);
  font-size: 20px;
  font-weight: 400;
  line-height: 1.25;
}
.tarif-detail {
  margin-top: 4px;
  color: var(--gris);
  font-size: 13px;
  line-height: 1.5;
}
.tarif-prix {
  color: var(--encre);
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}
.tarifs + .titre-court--liste { margin-top: 44px; margin-bottom: 20px; }
.titre-court--liste + .tarifs { border-top: 1px solid var(--filet); }

/* Questions fréquentes */
.faq { border-top: 1px solid var(--filet); }
.faq-item { border-bottom: 1px solid var(--filet); }
.faq-item > summary {
  position: relative;
  display: block;
  padding: 22px 48px 22px 0;
  color: var(--encre);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  cursor: pointer;
  list-style: none;
}
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-item > summary::after {
  content: "";
  position: absolute;
  right: 4px;
  top: 50%;
  width: 18px;
  height: 18px;
  margin-top: -9px;
  background: var(--accent);
  -webkit-mask: url(assets/icons/chevron.svg) center / contain no-repeat;
  mask: url(assets/icons/chevron.svg) center / contain no-repeat;
}
.faq-item[open] > summary::after {
  -webkit-mask-image: url(assets/icons/chevron-haut.svg);
  mask-image: url(assets/icons/chevron-haut.svg);
}
.faq-reponse {
  max-width: 680px;
  margin-top: -6px;
  padding: 0 48px 24px 0;
  color: var(--gris);
}

/* Formulaires (même carte que la demande de l'accueil) */
.fiche--formulaire .fiche-cote { position: static; }
.resa-titre {
  color: var(--encre);
  font-size: 21px;
  font-weight: 700;
  line-height: 1.3;
}
.resa-intro {
  margin-top: 8px;
  color: var(--gris);
  font-size: 13px;
  line-height: 1.55;
}
.formulaire, .resa--contact { padding-top: 30px; }
.formulaire .resa-cadre { margin-top: 12px; }
.formulaire .resa-intro + .resa-cadre { margin-top: 24px; }
.formulaire .resa-champ { padding: 13px 14px 10px; }
.formulaire .resa-saisie { height: 28px; margin-top: 5px; line-height: 28px; }
.formulaire .resa-saisie--longue {
  height: auto;
  min-height: 78px;
  padding-top: 3px;
  line-height: 1.5;
  resize: vertical;
}
.resa-saisie::placeholder { color: #9aa5a7; opacity: 1; }
.formulaire .resa-champ--liste::after { bottom: 16px; }
.formulaire .bouton--large { margin-top: 26px; }
.formulaire .resa-pied { margin-top: 30px; padding-top: 32px; }
.resa-note {
  display: none;
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 6px;
  background: var(--fond-doux);
  color: var(--encre);
  font-size: 13px;
  line-height: 1.5;
}
.formulaire.envoye .resa-note { display: block; }

.resa-liens {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 26px 0 30px;
}
.resa-liens a:hover { color: var(--accent); }

/* Pages de texte */
.prose p, .prose .liste { max-width: 720px; color: var(--gris); }
.prose p + p, .prose .liste + p, .prose p + .liste { margin-top: 14px; }
.prose .bloc { padding-block: 44px 40px; }
.prose .bloc--premier { padding-top: 0; }
.prose .bloc--dernier { padding-bottom: 0; }
.prose .bloc > .titre-bloc { margin-bottom: 20px; }
.liste {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.liste li { position: relative; padding-left: 22px; }
.liste li::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 0.72em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}
.a-completer { color: var(--accent); font-weight: 700; }

@media (max-width: 940px) {
  .fiche--formulaire, .fiche--texte { padding-bottom: 72px; }

  /* les onglets défilent sur leur ligne au lieu d'élargir la page */
  .onglets { overflow-x: auto; scrollbar-width: none; }
  .onglets::-webkit-scrollbar { display: none; }

  /* le formulaire se glisse entre les blocs, au lieu de passer en tête */
  .fiche--formulaire { gap: 0; }
  .fiche--formulaire .fiche-contenu { display: contents; }
  .fiche--formulaire .bloc--avant { order: 1; }
  .fiche--formulaire .fiche-cote { order: 2; margin: 4px 0 44px; }
  .fiche--formulaire .bloc--apres { order: 3; }

  .fiche--texte .fiche-cote { order: 0; }
  .fiche--texte .fiche-contenu { margin-top: 0; }
}

@media (max-width: 640px) {
  .ouverture--sans-onglets .ouverture-tete { padding-bottom: 24px; }
  .pieces { grid-template-columns: 1fr; gap: 30px; }
  .duo-photos { gap: 8px; }
  .tarif { padding: 18px 0; }
  .tarif-nom { font-size: 17px; }
  .tarif-prix { font-size: 20px; }
  .faq-item > summary { padding-right: 40px; font-size: 15px; }
  .faq-reponse { padding-right: 0; }
}

/* Très petits écrans : le logo et le téléphone restent sur une ligne */
@media (max-width: 380px) {
  .logo { gap: 8px; font-size: 15px; }
  .logo img { height: 28px; }
  .entete-contact strong { font-size: 12px; }
  .entete-contact span { font-size: 10px; }

  /* les deux dates passent l'une sous l'autre */
  .resa-cadre--duo { grid-template-columns: minmax(0, 1fr); }
  .resa-cadre--duo .resa-champ + .resa-champ::before {
    left: 14px;
    right: 14px;
    top: 0;
    bottom: auto;
    border-left: 0;
    border-top: 1px solid var(--filet);
  }
}


/* ==========================================================================
   En-tête et mini-menu collants, rubriques en onglets
   ========================================================================== */

/* Le bandeau défile, la barre de l'en-tête reste : le conteneur se colle
   « plus haut » que l'écran, de la hauteur du bandeau (mesurée par le script). */
.haut {
  position: sticky;
  top: calc(var(--wp-admin--admin-bar--height, 0px) - var(--bandeau-h, 50px));
  z-index: 40;
}

.rubriques { padding-top: 52px; }
.rubriques--serrees { padding-top: 28px; }
.onglets-barre {
  position: sticky;
  top: calc(var(--wp-admin--admin-bar--height, 0px) + var(--collant-haut));
  z-index: 30;
  padding-top: 18px;
  background: var(--fond);
}
.onglet { cursor: pointer; }
.rubriques .fiche-cote { top: calc(var(--wp-admin--admin-bar--height, 0px) + var(--collant-haut) + 73px + 24px); }

/* Quand le script est actif, une seule rubrique est affichée à la fois.
   Sans script (ou dans l'éditeur), toutes restent visibles l'une sous l'autre. */
.rubriques--onglets .fiche-contenu { overflow-x: clip; }
.rubriques--onglets .fiche-contenu > .est-masquee { display: none; }
.rubriques--onglets .fiche-contenu > .rubrique-debut { padding-top: 0; border-top: 0; }
.rubriques--onglets .fiche-contenu > .rubrique-fin { padding-bottom: 0; }
.rubriques--onglets .fiche-contenu > .rubrique-debut { scroll-margin-top: calc(var(--collant-haut) + 73px + 24px); }

@keyframes glisse-depuis-droite { from { opacity: 0; transform: translateX(32px); } to { opacity: 1; transform: none; } }
@keyframes glisse-depuis-gauche { from { opacity: 0; transform: translateX(-32px); } to { opacity: 1; transform: none; } }
.rubriques--onglets .glisse-avant { animation: glisse-depuis-droite .3s ease both; }
.rubriques--onglets .glisse-arriere { animation: glisse-depuis-gauche .3s ease both; }

.charges .texte, .tarifs-site .texte { max-width: 640px; }
.tarifs-site { margin-top: 26px; }

/* Écran peu haut : la carte de réservation ne tiendrait pas sous l'en-tête et le mini-menu collés. */
@media (max-height: 820px) {
  .fiche-cote { position: static; }
}

/* ==========================================================================
   Visionneuse de photos
   ========================================================================== */

.photo-agrandissable { cursor: zoom-in; }
.visionneuse {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 76px 84px 22px;
  background: rgba(32, 50, 56, 0.97);
  color: #fff;
  touch-action: pan-y;
}
.visionneuse[hidden] { display: none; }
.visionneuse-scene {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
}
.visionneuse-image {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--rayon);
}
.visionneuse-legende {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
}
.visionneuse-compteur {
  font-family: var(--police-fine);
  font-size: 14px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.04em;
}
.visionneuse-bouton {
  position: absolute;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: var(--accent);
  cursor: pointer;
  transition: background-color .2s, color .2s;
}
.visionneuse-bouton:hover { background: var(--fond-doux); color: var(--accent-fonce); }
.visionneuse-fermer { top: 16px; right: 16px; }
.visionneuse-prec { left: 16px; top: 50%; margin-top: -24px; }
.visionneuse-suiv { right: 16px; top: 50%; margin-top: -24px; }
.visionneuse-ouverte { overflow: hidden; }

/* ==========================================================================
   Parcours de réservation
   ========================================================================== */

.parcours { max-width: 640px; }
.etapes {
  /* WordPress ne remet pas les listes à zéro : pas de numérotation native, ni retrait, ni marge haute */
  list-style: none;
  margin-top: 0;
  padding: 0;
  display: flex;
  margin-bottom: 38px;
  border-bottom: 1px solid var(--filet);
  counter-reset: etape;
  overflow-x: auto;
  scrollbar-width: none;
}
.etapes::-webkit-scrollbar { display: none; }
.etape {
  counter-increment: etape;
  padding: 0 26px 18px 0;
  margin-bottom: -1px;
  border-bottom: 3px solid transparent;
  color: var(--gris);
  font-size: 14px;
  line-height: 1.4;
  white-space: nowrap;
}
.etape::before { content: counter(etape) ". "; }
.etape.est-faite { color: var(--accent); }
.etape.est-active {
  border-bottom-color: var(--accent);
  color: var(--encre);
  font-weight: 700;
}
.parcours-etape { display: none; }
.parcours-etape.est-active { display: block; }
.parcours-etape > .titre-bloc { margin-bottom: 10px; }
.parcours-intro, .parcours-rappel { margin-bottom: 20px; }
.parcours-rappel:empty { display: none; }
.parcours .resa-cadre { margin-top: 12px; background: #fff; }
.parcours .resa-champ { padding: 13px 14px 10px; }
.parcours .resa-saisie { height: 28px; margin-top: 5px; line-height: 28px; }
.parcours .resa-saisie--longue {
  height: auto;
  min-height: 78px;
  padding-top: 3px;
  line-height: 1.5;
  resize: vertical;
}
.resa-saisie[type="number"] { -moz-appearance: textfield; }
.resa-saisie[type="number"]::-webkit-outer-spin-button,
.resa-saisie[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.parcours-accord {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 18px;
  color: var(--gris);
  font-size: 13px;
  line-height: 1.5;
  cursor: pointer;
}
.parcours-accord input { flex: none; width: 16px; height: 16px; margin: 2px 0 0; accent-color: var(--accent); }
.parcours-accord a {
  color: var(--accent);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: rgba(7, 91, 96, 0.35);
  text-underline-offset: 3px;
}
.parcours-piege { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.parcours-message {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 6px;
  background: var(--fond-doux);
  color: var(--encre);
  font-size: 13px;
  line-height: 1.5;
}
.parcours-message[hidden], .parcours-actions [hidden] { display: none; }
.parcours-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}
.parcours-actions .bouton-contour {
  height: 50px;
  background: transparent;
  font-size: 13px;
  cursor: pointer;
}
.parcours-actions .bouton[disabled] { opacity: 0.6; cursor: progress; }
.recap { margin: 0; border-top: 1px solid var(--filet); }
.recap-ligne {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 0;
  border-bottom: 1px solid var(--filet);
}
.recap dt { color: var(--gris); font-size: 13px; }
.recap dd { margin: 0; color: var(--encre); text-align: right; }
.recap-prix { border-top: 1px solid var(--filet); }
.recap-prix .tarif { padding: 14px 0; }
.recap-prix .tarif-nom { font-size: 15px; }
.recap-prix .tarif-prix { font-size: 16px; }
.recap-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  padding-top: 16px;
  color: var(--encre);
  line-height: 1.3;
}
.recap-total strong { font-size: 20px; }
.recap-apayer strong { color: var(--accent); font-size: 24px; }
.recap-solde { margin-top: 10px; font-size: 13px; }
.parcours-note { margin-top: 16px; font-size: 12px; }
.parcours-fin-recap { margin-top: 22px; }
/* réservation en ligne pas encore ouverte : le formulaire de demande occupe la carte, sans en-tête au-dessus */
/* dans le parcours, un élément masqué l’est toujours, quel que soit son affichage (flex, grille…) */
.parcours [hidden] { display: none !important; }
.parcours--ferme .resa { margin-top: 26px; padding-top: 22px; }
.parcours--ferme .wpcf7 { margin-top: 0; }
.parcours--ferme .formulaire .wpcf7-form > .resa-cadre:not(.resa-cadre ~ .resa-cadre) { margin-top: 0; }

@media (max-width: 940px) {
  :root { --collant-haut: 0px; }
  .haut { position: static; }
  /* une seule colonne : la rubrique choisie s'affiche directement sous le mini-menu,
     la carte de réservation vient ensuite */
  .rubriques--onglets .fiche-cote { order: 0; margin-top: 36px; }
}

@media (max-width: 640px) {
  .rubriques { padding-top: 14px; }
  .rubriques--serrees { padding-top: 6px; }
  .onglets-barre { padding-top: 14px; }
  .visionneuse { padding: 70px 10px 18px; }
  .visionneuse-prec, .visionneuse-suiv { top: auto; bottom: 14px; margin-top: 0; }
  .visionneuse-compteur { line-height: 48px; }
  .etape { padding-right: 18px; font-size: 13px; }
  .parcours-actions .bouton, .parcours-actions .bouton-contour { flex: 1 1 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .rubriques--onglets .glisse-avant, .rubriques--onglets .glisse-arriere { animation: none; }
}


/* ==========================================================================
   Adaptations WordPress
   Uniquement ce que le passage en blocs natifs change à la structure de la page.
   Tout ce qui précède est le CSS de la maquette, inchangé.
   ========================================================================== */

/* ---------- Espacement automatique de Gutenberg ----------
   Coupé à la source dans theme.json (blockGap : 0). Ce filet de sécurité est
   écrit à spécificité nulle pour ne jamais écraser les marges des composants. */
:where(.wp-block-group) > :where(*),
:where(.wp-block-buttons) { margin-block: 0; }
figure.wp-block-image { margin: 0; }

/* ---------- Images : le bloc pose la classe sur la figure, pas sur l'image ---------- */
.wp-block-image.galerie-photo img,
.wp-block-image.carte-photo img,
.wp-block-image.piece-photo img,
.wp-block-image.plan img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.wp-block-image.carte-photo,
.wp-block-image.piece-photo { overflow: hidden; }
.wp-block-image.plan .wp-element-caption {
  position: absolute;
  right: 0;
  bottom: 0;
  margin: 0;
  padding: 2px 8px;
  border-top-left-radius: 6px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--encre);
  font-size: 10px;
  line-height: 1.6;
  text-align: left;
}

/* ---------- Boutons : la classe du bloc est sur le conteneur, le style va sur le lien ---------- */
.wp-block-button.bouton,
.wp-block-button.bouton:hover,
.wp-block-button.bouton-contour,
.wp-block-button.bouton-contour:hover {
  display: block;
  height: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
}
.wp-block-button.bouton .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 50px;
  padding: 0 28px;
  border: 0;
  border-radius: 6px;
  background: var(--accent);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  transition: background-color .2s;
}
.wp-block-button.bouton .wp-block-button__link:hover { background: var(--accent-fonce); color: #fff; }
.wp-block-button.bouton--large { width: 100%; }
.wp-block-button.bouton--large .wp-block-button__link { width: 100%; height: 75px; }
.wp-block-button.bouton--icone .wp-block-button__link { gap: 10px; }
.wp-block-button.bouton--icone .wp-block-button__link::before {
  content: "";
  flex: none;
  width: 18px;
  height: 18px;
  background: currentColor;
  -webkit-mask: var(--ico) center / contain no-repeat;
  mask: var(--ico) center / contain no-repeat;
}
.wp-block-button.bouton-contour .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 41px;
  padding: 0 30px;
  border: 1.5px solid var(--accent);
  border-radius: 4px;
  background: transparent;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  transition: background-color .2s, color .2s;
}
.wp-block-button.bouton-contour .wp-block-button__link:hover { background: var(--accent); color: #fff; }

/* ---------- Liens dans le texte : stylés par leur contexte ----------
   Une classe posée sur un lien ne se modifie pas dans l'éditeur ; ainsi, tout
   lien ajouté dans ces textes prend le bon style tout seul. */
.atout-texte a,
.recit a,
.texte a,
.piece-texte a,
.faq-reponse a,
.conditions-duo a,
.prose p a,
.prose li a {
  color: var(--accent);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: rgba(7, 91, 96, 0.35);
  text-underline-offset: 3px;
}
.atout-texte a:hover,
.recit a:hover,
.texte a:hover,
.piece-texte a:hover,
.faq-reponse a:hover,
.conditions-duo a:hover,
.prose p a:hover,
.prose li a:hover { text-decoration-color: currentColor; }
.conditions-duo a { font-size: 15px; }
.resa-pied a { color: var(--accent); font-size: 12px; font-weight: 700; }
.onglet a, .bandeau a, .pied a, .outil a, .entete-numero a, .resa-liens a { color: inherit; }

/* Mentions « à compléter » des pages légales : simple texte en gras. */
.prose strong { color: var(--accent); }

/* ---------- Pictogrammes : dessinés par le bloc lui-même ----------
   Un élément vide n'est pas un bloc. La classe ico--… est posée sur le bloc,
   qui trace sa pastille (::before) et son pictogramme (::after). */
.atout[class*="ico--"],
.couchage[class*="ico--"],
.equipement[class*="ico--"] { position: relative; }

.atout[class*="ico--"]::before,
.couchage[class*="ico--"]::before,
.equipement[class*="ico--"]::before {
  content: "";
  flex: none;
  border-radius: 50%;
  background: var(--fond-doux);
}
.atout[class*="ico--"]::after,
.couchage[class*="ico--"]::after,
.equipement[class*="ico--"]::after {
  content: "";
  position: absolute;
  background: var(--accent);
  -webkit-mask: var(--ico) center / contain no-repeat;
  mask: var(--ico) center / contain no-repeat;
}
.atout[class*="ico--"]::before { width: 50px; height: 50px; }
.atout[class*="ico--"]::after { left: 15px; top: 15px; width: 20px; height: 20px; }

.couchage { --marge-carte: 22px; }
/* Le titre est le premier enfant réel de la carte (la pastille est un pseudo-élément) :
   sans cette règle plus spécifique, Gutenberg annule sa marge haute. */
.couchages .couchage .couchage-titre { margin-top: 22px; }
.couchage[class*="ico--"]::before { display: block; width: 44px; height: 44px; }
.couchage[class*="ico--"]::after {
  left: calc(var(--marge-carte) + 12px);
  top: calc(var(--marge-carte) + 12px);
  width: 20px;
  height: 20px;
}

.equipement[class*="ico--"]::before { width: 32px; height: 32px; }
.equipement[class*="ico--"]::after { left: 8px; top: 50%; width: 16px; height: 16px; margin-top: -8px; }

/* Pictogramme simple devant un texte, sans pastille. */
.ouverture-meta[class*="ico--"]::before,
.carte-ligne[class*="ico--"]::before,
.resa-type[class*="ico--"]::before {
  content: "";
  flex: none;
  background: currentColor;
  -webkit-mask: var(--ico) center / contain no-repeat;
  mask: var(--ico) center / contain no-repeat;
}
.ouverture-meta[class*="ico--"]::before { width: 16px; height: 16px; background: var(--accent); }
.carte-ligne[class*="ico--"]::before { width: 17px; height: 17px; }
.resa-type[class*="ico--"]::before { width: 15px; height: 15px; background: var(--accent); }

/* ---------- En-tête collant ----------
   Dans WordPress, le bandeau et la barre sont réunis dans <header class="wp-block-template-part"> :
   c'est lui qui se colle, comme .haut dans la maquette. */
header.wp-block-template-part {
  position: sticky;
  top: calc(var(--wp-admin--admin-bar--height, 0px) - var(--bandeau-h, 50px));
  z-index: 40;
}

/* ---------- En-tête : blocs Logo du site, Titre du site et Navigation ---------- */
.logo .wp-block-site-logo { margin: 0; line-height: 0; }
.logo .wp-block-site-logo a { display: block; }
.logo .wp-block-site-logo img { width: auto; height: 36px; }
.logo .wp-block-site-title {
  margin: 0;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
}
.logo .wp-block-site-title a { color: inherit; text-decoration: none; }

/* Le bloc Navigation pose sa classe sur <nav> et sur sa liste : marges et
   largeur ne visent que <nav>, sinon elles s'appliquent deux fois. */
.wp-block-navigation.menu-principal {
  flex-wrap: nowrap;
  gap: 40px;
  font-size: 15px;
  line-height: 1;
}
nav.menu-principal { margin-left: 56px; }
.wp-block-navigation.menu-principal .wp-block-navigation__container { flex-wrap: nowrap; gap: 40px; }
.wp-block-navigation.menu-principal .wp-block-navigation-item__content {
  padding: 0;
  color: var(--gris);
  white-space: nowrap;
  transition: color .2s;
}
.wp-block-navigation.menu-principal .wp-block-navigation-item__content:hover,
.wp-block-navigation.menu-principal .current-menu-item > .wp-block-navigation-item__content { color: var(--encre); }

/* Liens réduits à un pictogramme : le libellé reste dans la page pour les lecteurs d'écran. */
.outil,
.pied-rond { font-size: 0; line-height: 0; }
.outil a { display: block; }
.outil a::before,
.pied-rond a::before {
  content: "";
  display: block;
  width: 20px;
  height: 20px;
  background: currentColor;
  -webkit-mask: var(--ico) center / contain no-repeat;
  mask: var(--ico) center / contain no-repeat;
}
.entete-contact .entete-numero { color: var(--encre); font-size: 13px; font-weight: 700; }
.entete-contact .entete-mention { color: var(--accent); font-size: 11px; font-weight: 700; }

/* ---------- Pied de page ---------- */
.pied-ecrire a {
  display: flex;
  flex: 1;
  justify-content: space-between;
  align-items: center;
}
.pied-ecrire a::after {
  content: "";
  flex: none;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 50%;
  background: url(assets/icons/fleche-blanche.svg) center / 16px no-repeat;
}
.pied-rond a {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  color: #fff;
}

/* ---------- Carte de demande et formulaires ---------- */

/* Contact Form 7 : les champs gardent le dessin de la maquette. */
.formulaire .wpcf7-form > .resa-cadre:not(.resa-cadre ~ .resa-cadre) { margin-top: 24px; }
.wpcf7-form-control-wrap { display: block; }
.formulaire .wpcf7-spinner { display: none; }
.formulaire .wpcf7-not-valid-tip {
  margin-top: 4px;
  color: var(--encre);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
}
.formulaire .wpcf7 form .wpcf7-response-output {
  margin: 16px 0 0;
  padding: 12px 14px;
  border: 0;
  border-radius: 6px;
  background: var(--fond-doux);
  color: var(--encre);
  font-size: 13px;
  line-height: 1.5;
}

/* ---------- Écrans intermédiaires et téléphone ---------- */
@media (max-width: 1180px) {
  .wp-block-navigation.menu-principal { gap: 26px; }
  nav.menu-principal { margin-left: 36px; }
  .wp-block-navigation.menu-principal .wp-block-navigation__container { gap: 26px; }
}

@media (max-width: 940px) {
  header.wp-block-template-part { position: static; }

  /* La colonne de contenu est le premier enfant du groupe : Gutenberg annule sa
     marge haute (:root … > :first-child), il faut une règle plus spécifique. */
  .enveloppe.fiche > .fiche-contenu { margin-top: 20px; }
  .enveloppe.fiche--texte > .fiche-contenu { margin-top: 0; }

  nav.menu-principal {
    order: 3;
    width: 100%;
    margin: 16px 0 0;
    padding-bottom: 16px;
    overflow-x: auto;
  }
}

@media (max-width: 640px) {
  .wp-block-navigation.menu-principal { gap: 22px; font-size: 14px; }
  .wp-block-navigation.menu-principal .wp-block-navigation__container { gap: 22px; }
  .ouverture-tete .wp-block-button,
  .ouverture-tete .wp-block-button__link { width: 100%; }
  .couchage { --marge-carte: 18px; }
  .carte-ligne[class*="ico--"]::before { width: 14px; height: 14px; }
}

@media (max-width: 380px) {
  .logo .wp-block-site-logo img { height: 28px; }
  .entete-contact .entete-numero { font-size: 12px; }
  .entete-contact .entete-mention { font-size: 10px; }
}
