/* La Métairie Castelculier — feuille de style unique */

@font-face {
  font-family: "Rethink Sans";
  src: url(/fonts/rethink-sans.woff2) format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Rethink Sans";
  src: url(/fonts/rethink-sans-italic.woff2) format("woff2");
  font-weight: 400 800;
  font-style: italic;
  font-display: swap;
}

:root {
  --ocre: #b5401f;
  --ocre-fonce: #933217;
  --olive: #3a3d2f;
  --olive-clair: #686e53;
  --sable: #f6f2eb;
  --texte: #1f1f1c;
  --gris: #5b5b55;
  --blanc: #fff;
  --largeur: 1320px;
  --gouttiere: clamp(16px, 4vw, 48px);
  --entete: 84px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--entete) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Rethink Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--texte);
  background: var(--blanc);
  overflow-x: hidden;
}
img, video, iframe { max-width: 100%; display: block; }
img { height: auto; }
a { color: var(--ocre); text-underline-offset: 3px; }
a:hover { color: var(--ocre-fonce); }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .5em; font-weight: 600; color: var(--olive); }
h1 { font-size: clamp(2rem, 4.2vw, 3rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
h3 { font-size: clamp(1.3rem, 2.4vw, 1.75rem); }
h4 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
ul { padding-left: 1.2em; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--olive); color: #fff; padding: 8px 14px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--ocre); outline-offset: 3px; }

.wrap { width: 100%; max-width: var(--largeur); margin: 0 auto; padding: 0 var(--gouttiere); }
.section { padding: clamp(48px, 8vw, 110px) 0; }
.section.serre { padding: clamp(32px, 5vw, 64px) 0; }
.centre { text-align: center; }
.fond-sable { background: var(--sable); }
.fond-olive { background: var(--olive); color: #fff; }
.fond-olive h1, .fond-olive h2, .fond-olive h3 { color: #fff; }

/* Accroches */
.accroche { font-style: italic; font-size: 1.2rem; margin-bottom: 1.2em; }
.accroche.vert { color: var(--olive-clair); }
.accroche.ocre { color: var(--ocre); }
.fond-olive .accroche.vert { color: #c9cdb5; }

/* Boutons */
.boutons { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; margin-top: 1.6em; }
.bouton {
  display: inline-flex; align-items: center; gap: 12px;
  color: inherit; text-decoration: none; font-weight: 500;
}
.bouton::before {
  content: ""; flex: 0 0 auto; width: 30px; height: 18px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 18'%3E%3Cpath d='M0 8h24.6l-5.3-5.3L20.7 1.3 28.4 9l-7.7 7.7-1.4-1.4 5.3-5.3H0z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 18'%3E%3Cpath d='M0 8h24.6l-5.3-5.3L20.7 1.3 28.4 9l-7.7 7.7-1.4-1.4 5.3-5.3H0z'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform .2s;
}
.bouton:hover { color: inherit; }
.bouton:hover::before { transform: translateX(4px); }
.bouton.plein {
  background: var(--ocre); color: #fff; padding: 12px 22px; border-radius: 2px;
}
.bouton.plein:hover { background: var(--ocre-fonce); color: #fff; }

/* En-tête */
.entete {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  height: var(--entete);
  padding: 0 var(--gouttiere);
  background: rgba(255,255,255,.97);
  box-shadow: 0 1px 0 rgba(0,0,0,.06);
  transition: height .2s;
}
.entete.compact { height: 68px; box-shadow: 0 4px 18px rgba(0,0,0,.08); }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo-maison { width: 40px; height: auto; transition: width .2s; }
.entete.compact .logo-maison { width: 32px; }
.logo-texte { width: 172px; height: auto; }
.menu ul { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 34px); list-style: none; margin: 0; padding: 0; }
.menu a { color: var(--texte); text-decoration: none; text-transform: uppercase; font-size: .95rem; letter-spacing: .03em; padding: 6px 0; border-bottom: 2px solid transparent; }
.menu a:hover, .menu a[aria-current] { color: var(--ocre); border-bottom-color: var(--ocre); }
.menu a.menu-resa { background: var(--ocre); color: #fff; padding: 10px 18px; border: 0; }
.menu a.menu-resa:hover { background: var(--ocre-fonce); color: #fff; }
.burger { display: none; }

@media (max-width: 900px) {
  :root { --entete: 68px; }
  .logo-maison { width: 32px; }
  .logo-texte { width: 140px; }
  .burger {
    display: flex; flex-direction: column; justify-content: center; gap: 6px;
    width: 44px; height: 44px; padding: 10px; border: 0; background: none; cursor: pointer;
  }
  .burger span:not(.sr) { display: block; height: 2px; background: var(--olive); transition: transform .2s, opacity .2s; }
  .menu-ouvert .burger span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .menu-ouvert .burger span:nth-child(2) { opacity: 0; }
  .menu-ouvert .burger span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  .menu {
    position: fixed; inset: var(--entete) 0 auto 0;
    background: #fff; box-shadow: 0 12px 24px rgba(0,0,0,.1);
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity .2s, transform .2s, visibility .2s;
  }
  .menu-ouvert .menu { visibility: visible; opacity: 1; transform: none; }
  .menu ul { flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gouttiere) 20px; }
  .menu li a { display: block; padding: 14px 0; border-bottom: 1px solid #eee; }
  .menu a.menu-resa { margin-top: 14px; text-align: center; }
}

/* Fil d'Ariane */
.ariane ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0 auto; padding: 14px var(--gouttiere) 0; max-width: var(--largeur); font-size: .85rem; color: var(--gris); }
.ariane li + li::before { content: "›"; margin-right: 6px; }
.ariane a { color: var(--gris); }

/* Bandeau d'accueil */
.hero { position: relative; height: min(88vh, 900px); min-height: 420px; overflow: hidden; background: var(--olive); }
.hero img { width: 100%; height: 100%; object-fit: cover; }
.accueil .ariane { display: none; }
@media (max-width: 700px) { .hero { height: 62vh; min-height: 320px; } }

/* Présentation : photos + texte */
.presentation { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.presentation .photos { position: relative; padding-bottom: 18%; }
.presentation .photos img:first-child { width: 82%; }
.presentation .photos img:nth-child(2) { position: absolute; right: 0; bottom: 0; width: 52%; border: 8px solid #fff; }
.fond-olive .presentation .photos img:nth-child(2) { border-color: var(--olive); }
.presentation .photos.seule { padding-bottom: 0; }
.presentation .photos.seule img { width: 100%; }
.presentation .texte > :last-child { margin-bottom: 0; }

@media (max-width: 800px) {
  .presentation { grid-template-columns: 1fr; }
}

/* Expérience slow life */
.experience { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center; }
.experience .texte { border-left: 2px solid var(--ocre); padding-left: clamp(20px, 3vw, 40px); }
.mots { font-size: clamp(1.8rem, 4vw, 2.8rem); line-height: 1.25; color: var(--ocre); font-style: italic; margin: 0; }
@media (max-width: 800px) { .experience { grid-template-columns: 1fr; } }

/* Carrousel */
.carrousel { position: relative; }
.carrousel .piste {
  display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; padding-bottom: 4px;
}
.carrousel .piste::-webkit-scrollbar { display: none; }
.carrousel .piste > * { flex: 0 0 auto; scroll-snap-align: start; margin: 0; }
.carrousel .piste img { height: clamp(260px, 42vw, 480px); width: auto; object-fit: cover; }
.carrousel .fleches { display: flex; justify-content: center; gap: 12px; margin-top: 18px; }
.carrousel .fleches button {
  width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--olive); background: #fff; color: var(--olive);
  font-size: 1.3rem; cursor: pointer; transition: background .2s, color .2s;
}
.carrousel .fleches button:hover { background: var(--olive); color: #fff; }

/* Partenaires */
.partenaires { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: clamp(20px, 4vw, 48px); margin-top: 24px; }
.partenaires a { display: block; }
.partenaires img { height: 64px; width: auto; filter: grayscale(.2); transition: filter .2s, transform .2s; }
.partenaires a:hover img { filter: none; transform: scale(1.05); }

/* Vidéo */
.video { background: var(--olive); }
.video video { width: 100%; height: auto; aspect-ratio: 16 / 9; max-height: 90vh; object-fit: cover; }

/* Itinéraire nature */
.itineraire { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.itineraire .photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; position: relative; }
.itineraire .photos::before { content: ""; position: absolute; inset: 15% -100vw 15% 30%; background: var(--olive); z-index: -1; }
.itineraire .photos img { aspect-ratio: 3 / 4; object-fit: cover; width: 100%; }
.itineraire-bloc { position: relative; isolation: isolate; overflow: hidden; }
@media (max-width: 800px) { .itineraire { grid-template-columns: 1fr; } }

/* Atouts (icônes) */
.atouts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 36px 28px; margin-top: 40px; }
.atouts > div { text-align: center; }
.atouts img { width: auto; height: 64px; margin: 0 auto 14px; }
.atouts strong, .atouts .titre { display: block; text-transform: uppercase; color: var(--olive); font-weight: 600; letter-spacing: .02em; margin-bottom: 6px; }
.atouts p { font-size: .95rem; color: var(--gris); }
@media (max-width: 900px) { .atouts { grid-template-columns: repeat(2, 1fr); } }

/* Accès : carte + formulaire */
.acces { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.carte iframe { width: 100%; height: 450px; border: 0; }
.carte small { display: inline-block; margin-top: 8px; }
@media (max-width: 900px) { .acces { grid-template-columns: 1fr; } }

/* Formulaire */
.formulaire { display: grid; gap: 14px; }
.formulaire h3 { margin-bottom: 4px; }
.formulaire .deux { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.formulaire label { display: block; font-size: .9rem; color: var(--gris); }
.formulaire input[type=text], .formulaire input[type=email], .formulaire input[type=tel], .formulaire textarea {
  width: 100%; margin-top: 4px; padding: 12px 14px; font: inherit; color: inherit;
  border: 1px solid #cfcbc3; border-radius: 2px; background: #fff;
}
.formulaire textarea { min-height: 150px; resize: vertical; }
.formulaire input:focus, .formulaire textarea:focus { border-color: var(--olive); outline: none; box-shadow: 0 0 0 3px rgba(58,61,47,.15); }
.formulaire .accord { display: flex; gap: 10px; align-items: flex-start; }
.formulaire .accord input { margin-top: 5px; }
.formulaire .civilite { display: flex; gap: 20px; }
.formulaire .civilite label { display: flex; gap: 6px; align-items: center; color: var(--texte); font-size: 1rem; }
.formulaire button { justify-self: start; border: 0; cursor: pointer; font: inherit; }
.formulaire .piege { display: none; }
.formulaire .note { font-size: .85rem; color: var(--gris); }
@media (max-width: 560px) { .formulaire .deux { grid-template-columns: 1fr; } }

/* Trois photos pleine largeur */
.trois-photos { display: grid; grid-template-columns: repeat(3, 1fr); }
.trois-photos img { width: 100%; height: clamp(220px, 30vw, 460px); object-fit: cover; }
@media (max-width: 600px) { .trois-photos { grid-template-columns: 1fr; } }

/* Chambres */
.cartes { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 3vw, 40px); }
.cartes.deux-col { grid-template-columns: repeat(2, 1fr); max-width: 980px; }
.cartes.quatre { grid-template-columns: repeat(4, 1fr); }
.cartes article img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; margin-bottom: 16px; }
.cartes h2, .cartes h3, .cartes h4 { margin-bottom: .2em; font-size: 1.35rem; }
.cartes h2 a, .cartes h3 a, .cartes h4 a { color: var(--olive); text-decoration: none; }
.cartes h2 a:hover, .cartes h3 a:hover, .cartes h4 a:hover { color: var(--ocre); }
.cartes .accroche { font-size: 1rem; margin-bottom: .6em; }
.cartes .lits { font-style: italic; color: var(--gris); font-size: .95rem; }
@media (max-width: 900px) { .cartes, .cartes.quatre { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .cartes, .cartes.deux-col, .cartes.quatre { grid-template-columns: 1fr; } }

/* Espaces de la maison */
.espaces { display: grid; grid-template-columns: 1fr 1fr; gap: 24px clamp(32px, 5vw, 72px); }
.espaces h3 { font-size: 1.05rem; text-transform: uppercase; letter-spacing: .03em; margin-bottom: .3em; }
@media (max-width: 800px) { .espaces { grid-template-columns: 1fr; } }

/* FAQ */
.faq { max-width: 900px; }
.faq details { border-bottom: 1px solid #ddd8ce; }
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 40px 18px 0; position: relative;
  font-weight: 600; color: var(--olive); font-size: 1.1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 12px; font-size: 1.6rem; color: var(--ocre); font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding-bottom: 8px; }

/* Réservation */
.reservation { min-height: 300px; }

/* Fiches du guide */
.fiche { max-width: 900px; }
.lieu { background: var(--sable); padding: 20px 24px; margin: 0 0 1.4em; border-left: 3px solid var(--ocre); }
.lieu p { margin: 0 0 .3em; }
.fiche h2 { margin-top: 1.6em; }
.galerie { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 12px; }
.galerie a { display: block; }
.galerie img { height: 220px; width: auto; object-fit: cover; }

/* Pages de texte */
.texte-long { max-width: 900px; }
.texte-long h2 { font-size: 1.5rem; margin-top: 1.8em; }
.texte-long h3 { font-size: 1.2rem; margin-top: 1.4em; }
.texte-long h4 { font-size: 1.05rem; margin-top: 1.2em; }
.plan ul { list-style: none; padding: 0; }
.plan ul ul { padding: 8px 0 0 20px; }
.plan li { margin-bottom: 10px; }

/* Apparition douce */
.cache { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.cache.vu { opacity: 1; transform: none; }

/* Agrandissement photo */
.zoom { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 96vh; }
.zoom::backdrop { background: rgba(20,20,18,.88); }
.zoom img { max-width: 96vw; max-height: 92vh; width: auto; }
.zoom .fermer { position: fixed; top: 12px; right: 16px; background: none; border: 0; color: #fff; font-size: 2.4rem; cursor: pointer; }

/* Pied de page */
.pied {
  background: var(--ocre); color: #fff;
  display: grid; grid-template-columns: auto 1fr; gap: clamp(32px, 6vw, 96px); align-items: center;
  padding: clamp(40px, 6vw, 72px) var(--gouttiere);
}
.pied a { color: #fff; }
.pied-logo { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.pied-logo img:first-child { width: 70px; }
.pied-logo img:last-child { width: 200px; }
.pied-infos p { margin: 0; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.35); }
.pied-infos p a { text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.pied-infos ul { display: flex; flex-wrap: wrap; gap: 8px 24px; list-style: none; padding: 0; margin: 16px 0 0; font-size: .92rem; }
.pied .lien { background: none; border: 0; padding: 0; color: #fff; font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
@media (max-width: 700px) { .pied { grid-template-columns: 1fr; } .pied-logo { align-items: flex-start; } }

/* Bandeau cookies */
.cookies {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 80;
  max-width: 640px; margin: 0 auto; padding: 18px 20px;
  background: #fff; box-shadow: 0 10px 40px rgba(0,0,0,.2); border-top: 3px solid var(--ocre);
  display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; font-size: .92rem;
}
.cookies[hidden] { display: none; }
.cookies p { margin: 0; flex: 1 1 300px; }
.cookies div { display: flex; gap: 10px; }
.cookies button { font: inherit; padding: 9px 18px; cursor: pointer; border: 1px solid var(--olive); background: #fff; color: var(--olive); }
.cookies button[data-consent=oui] { background: var(--olive); color: #fff; }

/* Variantes ajoutées pour l'admin : photos à droite, H2 dans la présentation */
.presentation.inverse .photos { order: 2; }
.presentation .texte h1, .presentation .texte h2 { margin-bottom: .4em; }
@media (max-width: 800px) { .presentation.inverse .photos { order: 0; } }
.cartes h3 { font-size: 1.35rem; }
