/* Fattoria delle Lodoline — feuille de style
   Reprend l'ancien site : fond papier doré (motif d'origine), titre calligraphié,
   colonne de boutons rectangulaires à droite, encadrés serrés. */

:root {
  --fond: #cfb48a;
  --encre: #3a2212;
  --encre-douce: #5e4430;
  --sienne: #9a2f12;
  --panneau: rgba(250, 244, 230, .6);
  --verre: blur(3px) saturate(1.1);
  --panneau-gris: rgba(214, 204, 186, .6);
  --panneau-fonce: rgba(62, 40, 22, .86);
  --bord: rgba(105, 72, 38, .45);
  --ombre: 0 1px 3px rgba(40, 22, 8, .35);
  /* Optima (macOS, iOS) ; repli sur des polices humanistes proches sous Windows et Android */
  --serif: Optima, "Optima nova", Candara, "Segoe UI", "Noto Sans", sans-serif;
  /* Titres : Snell Roundhand Bold, comme l'ancien site (macOS, iOS) ; ailleurs Petit Formal Script, mise en gras par le navigateur */
  --script: "Snell Roundhand", "Petit Formal Script", cursive;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--fond) url(../img/motif-clair.jpg) repeat;
  color: var(--encre);
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.3;
}
/* Image en fond de page : paysage du domaine, très estompé et viré au sépia, posé sur le papier */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: url(../img/fond.jpg) center bottom / cover no-repeat;
  filter: grayscale(1) sepia(.55);
  opacity: .22;
  mix-blend-mode: multiply;
  pointer-events: none;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--sienne); }
a:hover { color: var(--encre); }
p { margin: 0 0 .45em; }
p:last-child { margin-bottom: 0; }
h1, h2, h3 { font-weight: normal; margin: 0; line-height: 1.2; }
h2 { font-size: .95rem; text-transform: uppercase; letter-spacing: .06em; color: var(--encre); margin: .2em 0 .4em; font-weight: bold; }
h3 { font-size: .92rem; color: var(--encre); margin: .6em 0 .15em; font-weight: bold; }
strong { color: var(--sienne); }
sup { line-height: 0; }
.visuellement-cache { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sauter { position: absolute; left: -9999px; }
.sauter:focus { left: 8px; top: 8px; z-index: 100; background: var(--panneau); padding: .4em .8em; }
:focus-visible { outline: 2px solid var(--sienne); outline-offset: 2px; }

/* ---------------------------------------------------------------- Feuille */
.feuille {
  max-width: 1100px;
  margin: 0 auto;
  padding: 10px 12px 20px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "entete" "contenu" "cote" "pied";
  gap: 10px;
}
/* Pied de page : l'adresse e-mail dans un cadre qui réagit au survol */
.pied { grid-area: pied; display: flex; justify-content: center; padding-top: 6px; border-top: 1px solid rgba(70, 40, 20, .45); }
.pied__mail { display: inline-block; padding: 5px 14px; font-size: 14px; color: var(--encre); text-decoration: none; border: 1px solid #4a2610; border-radius: 2px; transition: background-color .15s, color .15s; overflow-wrap: anywhere; }
.pied__mail::before { content: "✉ "; }
.pied__mail:hover, .pied__mail:focus-visible { background: #4a2610; color: #f4e9d2; }
.entete { grid-area: entete; display: flex; align-items: center; flex-wrap: wrap; gap: 6px 14px; padding-bottom: 6px; border-bottom: 1px solid rgba(70, 40, 20, .45); }
.contenu { grid-area: contenu; min-width: 0; }
.cote { grid-area: cote; }

.titre { font-family: var(--script); font-weight: bold; font-size: clamp(1.8rem, 5.2vw, 2.9rem); line-height: 1.15; color: #4a2610; text-shadow: 1px 1px 1px rgba(255, 245, 225, .5), 2px 2px 3px rgba(60, 30, 10, .25); margin-right: auto; }
.titre a { color: inherit; text-decoration: none; }

/* Nombre de personnes : une information, pas un bouton — simple filet clair, toujours la même taille */
.badge { display: inline-flex; align-items: center; justify-content: center; gap: 4px; margin: 0; width: 4.6rem; height: 2.6rem; border: 1px solid #4a2610; border-radius: 2px; color: #5a3016; font-size: 1.55rem; font-weight: bold; line-height: 1; white-space: nowrap; }
.badge svg { width: 11px; height: 22px; fill: currentColor; }


/* ---------------------------------------------------------------- Boutons (rectangulaires, en relief) */
.bt {
  display: block;
  padding: 4px 10px;
  text-align: right;
  font-size: 14px;
  line-height: 1.3;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--encre);
  text-decoration: none;
  background: linear-gradient(#f1e6cf, #d6c29b);
  border: 1px solid #7a5a36;
  border-radius: 2px;
  box-shadow: inset 1px 1px 0 rgba(255, 255, 255, .65), inset -1px -1px 0 rgba(90, 60, 30, .18), 1px 1px 2px rgba(40, 22, 8, .35);
}
.bt:hover, .bt[aria-current] { color: var(--sienne); background: linear-gradient(#f7efdd, #e0cfac); }
.bt[aria-current] { font-weight: bold; }
/* Tarifs, Accès, Le domaine, Accueil : fond plus pâle que les boutons des maisons */
.bt--sombre { text-transform: uppercase; letter-spacing: .03em; font-size: 11.5px; font-weight: bold; text-align: left; padding-top: 5px; padding-bottom: 5px;
  background: none; border-color: #5a3a20;
  box-shadow: none; }
.bt--sombre:hover, .bt--sombre[aria-current] { background: rgba(255, 250, 238, .35); border-color: var(--sienne); }
/* Bouton Photos (pages des maisons) : même forme, teinte terre cuite pour le distinguer */
.bt.bt--photos { text-align: center; background: linear-gradient(#e7c3a0, #c98f62); border-color: #7a4a2a; color: #3e1f0c; box-shadow: inset 1px 1px 0 rgba(255, 235, 215, .55), 1px 1px 2px rgba(40, 22, 8, .35); }
.bt.bt--photos:hover { background: linear-gradient(#efd0b0, #d39d70); color: #3e1f0c; border-color: #6a3a1c; }
/* Tarifs : en relief, un ton plus foncé que les maisons */
.bt.bt--tarifs { background: linear-gradient(#dcc396, #b8925c); border-color: #6e4e2c; box-shadow: inset 1px 1px 0 rgba(255, 245, 220, .55), inset -1px -1px 0 rgba(90, 60, 30, .2), 1px 1px 2px rgba(40, 22, 8, .35); }
.bt.bt--tarifs:hover, .bt.bt--tarifs[aria-current] { background: linear-gradient(#e6d0a8, #c4a06c); border-color: var(--sienne); }
/* Page affichée : bouton enfoncé, brun foncé et texte clair, pour bien le distinguer */
.colonne .bt[aria-current], .colonne .bt[aria-current]:hover {
  color: #f8eed8;
  background: linear-gradient(#5e3a1e, #7e5530);
  border-color: #3e2410;
  box-shadow: inset 2px 2px 4px rgba(20, 10, 2, .6), inset -1px -1px 0 rgba(255, 230, 190, .15);
  text-shadow: 0 1px 1px rgba(0, 0, 0, .5);
}
.colonne__maisons .bt--photos { margin-top: 4px; }
.bt--photos span { font-weight: normal; opacity: .75; margin-left: .3em; }
.bt--sombre::before { content: ""; display: inline-block; width: 7px; height: 7px; background: currentColor; margin-right: 6px; vertical-align: 1px; }
.bt--action { display: inline-block; text-align: center; text-transform: uppercase; letter-spacing: .05em; font-size: 13px; font-weight: bold; }

/* Colonne de boutons : sa largeur se cale sur le bouton le plus long (Torre Guerrini) */
.colonne { display: grid; gap: 5px; width: max-content; }
.colonne__maisons, .colonne__autres { display: grid; gap: 5px; }
.colonne__autres { margin-top: 8px; }

/* Menu replié (petits écrans) */
.menu { position: relative; margin-left: auto; }
.menu summary { list-style: none; cursor: pointer; }
.menu summary::-webkit-details-marker { display: none; }
.menu summary { padding: 3px 10px; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--encre); background: none; border: 1px solid rgba(70, 40, 20, .55); border-radius: 2px; }
.menu summary:hover, .menu[open] summary { color: var(--sienne); border-color: var(--sienne); }
.menu summary::after { content: " ▾"; }
.menu[open] summary::after { content: " ▴"; }
.menu .colonne { position: absolute; right: 0; top: calc(100% + 4px); z-index: 30; padding: 8px; background: var(--fond) url(../img/motif-clair.jpg); border: 1px solid #7a5a36; box-shadow: 0 6px 18px rgba(30, 15, 5, .45); }

/* Téléphone : boutons en bas de page, à droite, en 3 colonnes de même largeur */
.cote { justify-self: stretch; min-width: 0; }
.cote .colonne { grid-template-columns: repeat(3, minmax(0, 1fr)); width: auto; }
.cote .colonne__maisons, .cote .colonne__autres { display: contents; }
.cote .bt { font-size: 11.5px; letter-spacing: .02em; padding: 5px 6px; overflow: hidden; text-overflow: ellipsis; }
.cote .bt--sombre { font-size: 10.5px; }
@media (max-width: 359px) { .cote .colonne { grid-template-columns: repeat(2, 1fr); } }

/* Tablette et ordinateur : colonne verticale à droite, comme l'ancien site */
@media (min-width: 600px) {
  .feuille { grid-template-columns: minmax(0, 1fr) max-content; grid-template-areas: "entete entete" "contenu cote" "pied pied"; gap: 12px 16px; padding: 12px 18px 24px; }
  .menu { display: none; }
  .cote { justify-self: stretch; }
  .cote .colonne { display: flex; flex-direction: column; gap: 5px; width: max-content; height: 100%; }
  .cote .colonne__maisons, .cote .colonne__autres { display: grid; }
  .cote .colonne__autres { margin-top: auto; padding-top: 24px; }
  .cote .bt { font-size: 14px; padding: 4px 10px; }
  .cote .bt--sombre { font-size: 11.5px; }
}


/* ---------------------------------------------------------------- Encadrés */
.encadre {
  -webkit-backdrop-filter: var(--verre); backdrop-filter: var(--verre);
  background: var(--panneau);
  border: 1px solid var(--bord);
  border-radius: 2px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35), var(--ombre);
  padding: 10px 14px;
  font-size: 15px;
}
.texte { text-align: justify; hyphens: auto; -webkit-hyphens: auto; }
.encadre--italique { background: var(--panneau-gris); font-style: italic; }
.encadre--italique h2 { font-style: normal; }
.encadre--fonce { background: var(--panneau-fonce); color: #f4e9d2; }
.encadre--fonce h2, .encadre--fonce strong, .encadre--fonce dt { color: #fff; }
.encadre--fonce a { color: #f0d9a8; }
.extras { font-style: italic; }
.actions { margin-top: .7em; }

.distances { margin: 0 0 .5em; }
.distances div { display: flex; flex-wrap: wrap; gap: 0 .5em; padding: 1px 0; }
.distances dt { font-weight: bold; }
.distances dt::after { content: " :"; }
.distances dd { margin: 0; }

/* Photos : sans liseré, simple ombre portée */
.photo-principale { margin: 0; justify-self: center; }
.photo-principale img, .galerie__item img, .gravure img, .photo-domaine img, .vignette-maison img, .carte img {
  box-shadow: 1px 2px 4px rgba(40, 22, 8, .45);
}
.galerie { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 6px; }
.galerie__item { display: block; aspect-ratio: 4 / 3; }
.galerie__item img { width: 100%; height: 100%; object-fit: cover; }
.galerie__item:hover img { filter: brightness(1.08); }

/* ---------------------------------------------------------------- Page maison */
.grille-maison { display: grid; gap: 10px; }
.grille-maison__gauche, .grille-maison__droite { display: grid; gap: 10px; align-content: start; min-width: 0; }
/* Photo principale : jamais plus haute que 360 px, pour laisser le texte visible */
.photo-principale img { width: auto; max-height: 360px; }
.photo-principale.galerie { display: grid; grid-template-columns: minmax(0, auto); justify-content: center; justify-items: center; gap: 6px; }
.photo-principale figcaption { line-height: 1; }
/* Aménagements : corps plus petit, cadre discret (fond léger, filet fin, sans ombre) */
.encadre.amenagements { background: rgba(250, 244, 230, .38); border-color: rgba(105, 72, 38, .3); box-shadow: none; font-size: 13.5px; line-height: 1.32; padding: 8px 12px; }
.amenagements h2 { font-size: .85rem; padding-bottom: 3px; margin-bottom: 5px; border-bottom: 1px solid rgba(105, 72, 38, .3); }
.amenagements h3 { font-size: 13.5px; margin-top: .45em; }
.amenagements ul { margin: 0; padding: 0; list-style: none; }
.amenagements li { display: inline; }
.amenagements li::before { content: "• "; color: var(--sienne); }
.amenagements li::after { content: " "; }
@media (min-width: 760px) {
  .grille-maison { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); align-items: start; gap: 12px; }
  .grille-maison__gauche, .grille-maison__droite { gap: 12px; }
}

/* ---------------------------------------------------------------- Page domaine */
.grille-domaine { display: grid; gap: 10px; }
.gravure { margin: 0; }
.gravure img { width: 100%; }
.gravure figcaption { font-size: 11.5px; text-align: center; font-style: italic; margin-top: 3px; color: var(--encre-douce); }
.photo-domaine img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.maisons h2 { margin-top: 0; }
/* Vignettes des maisons : petites, 4 par ligne (les boutons de droite donnent déjà accès aux maisons) */
.vignettes-maisons { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.vignette-maison { display: grid; text-decoration: none; color: var(--encre); background: var(--panneau); padding: 0 0 4px; box-shadow: var(--ombre); overflow: hidden; }
.vignette-maison img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-width: 0; box-shadow: none; }
.vignette-maison span { font-size: 13px; margin: 2px 6px 0; line-height: 1.2; }
.vignette-maison small { margin: 0 6px; font-size: 11px; color: var(--sienne); }
.vignette-maison:hover span { color: var(--sienne); }
.produits { display: grid; grid-template-columns: 90px 1fr; gap: 12px; align-items: start; }
.produits img { width: 90px; }
/* Téléphone : texte plus petit pour que les noms tiennent sous les vignettes */
@media (max-width: 599px) { .vignette-maison span { font-size: 11px; margin: 2px 4px 0; } .vignette-maison small { font-size: 10px; margin: 0 4px; } .vignettes-maisons { gap: 4px; } }
@media (min-width: 760px) {
  .grille-domaine { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: start; gap: 12px;
    grid-template-areas: "gravure village" "histoire photo" "histoire commodites" "maisons maisons" "produits produits"; }
  .gravure { grid-area: gravure; }
  .village { grid-area: village; }
  .histoire { grid-area: histoire; }
  .photo-domaine { grid-area: photo; }
  .commodites { grid-area: commodites; }
  .maisons { grid-area: maisons; }
  .grille-domaine .produits { grid-area: produits; }
}

/* ---------------------------------------------------------------- Tarifs */
.grille-tarifs { display: grid; gap: 10px; }
.tarifs-tete { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 16px; }
.annee { font-size: 3.4rem; line-height: 1; font-weight: bold; margin: 0; color: #5a3a20; letter-spacing: -.02em; text-shadow: 1px 1px 0 rgba(255, 245, 225, .6); }
.tarifs-intro { font-style: italic; margin: 0; }
.encadre.tableau { padding: 0; }
.tarifs { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.tarifs th, .tarifs td { padding: 7px 10px; border-bottom: 1px solid rgba(105, 72, 38, .3); text-align: right; white-space: nowrap; }
.tarifs th:first-child { text-align: left; white-space: normal; }
.tarifs thead th { font-size: 13px; text-transform: uppercase; letter-spacing: .03em; background: rgba(105, 72, 38, .15); }
.tarifs tbody th a { color: var(--encre); text-decoration: none; font-size: 16px; font-weight: bold; }
.tarifs tbody th a:hover { color: var(--sienne); }
.tarifs small { font-weight: normal; color: var(--encre-douce); font-style: italic; }
.tarifs td { font-size: 17px; font-weight: bold; }
.tarifs tfoot td { text-align: left; font-size: 14px; font-weight: normal; font-style: italic; white-space: normal; border-bottom: 0; background: rgba(105, 72, 38, .08); }
.tarifs tfoot p { margin: 0; }
@media (max-width: 420px) {
  .tarifs th, .tarifs td { padding: 6px 6px; }
  .tarifs thead th { font-size: 11px; }
  .tarifs td { font-size: 15px; }
}
@media (min-width: 760px) {
  .grille-tarifs { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: start; gap: 12px; }
  .tarifs-tete { grid-column: 1 / -1; }
}

/* ---------------------------------------------------------------- Accès */
.grille-acces { display: grid; gap: 10px; }
.carte { margin: 0; }
.carte img { width: 100%; }
.carte figcaption { font-size: 13px; font-style: italic; margin-top: 3px; }
@media (min-width: 760px) { .grille-acces { grid-template-columns: 1fr 1fr; align-items: start; gap: 12px; } }

/* ---------------------------------------------------------------- Accueil (choix de la langue) */
.feuille--accueil { display: block; max-width: 980px; }
.accueil__tete { display: flex; align-items: center; gap: 16px; border-bottom: 1px solid rgba(70, 40, 20, .45); padding-bottom: 6px; margin-bottom: 8px; }
.accueil__tete .titre { font-size: clamp(2.6rem, 9vw, 5rem); }
.accueil__tete img { width: clamp(90px, 22vw, 200px); box-shadow: 1px 2px 4px rgba(40, 22, 8, .45); }
.accueil__langue { display: grid; gap: 8px; align-items: end; padding: 14px 0; border-bottom: 3px solid rgba(110, 80, 50, .45); text-align: justify; hyphens: auto; -webkit-hyphens: auto; }
.accueil__langue p { margin: 0; font-size: clamp(16px, 1.15vw + 11px, 19px); line-height: 1.35; background: var(--panneau); -webkit-backdrop-filter: var(--verre); backdrop-filter: var(--verre); padding: 10px 16px; border: 1px solid var(--bord); box-shadow: var(--ombre); }
/* Boutons de langue : fond pâle en relief, comme les boutons des maisons */
.bt-langue {
  justify-self: end; min-width: 8.5em; text-align: center; padding: 7px 16px;
  font-family: var(--serif); font-size: 16px; font-weight: bold; letter-spacing: .12em;
  color: var(--encre); text-decoration: none; white-space: nowrap;
  background: linear-gradient(#e6cf9f, #c9a56c); border: 1px solid #6e4e2c; border-radius: 2px;
  box-shadow: inset 1px 1px 0 rgba(255, 245, 220, .6), inset -1px -1px 0 rgba(90, 60, 30, .18), 1px 2px 3px rgba(40, 22, 8, .4);
  transition: transform .12s, box-shadow .12s, background .12s;
}
.bt-langue:hover { color: var(--sienne); background: linear-gradient(#efdcb3, #d4b37d); transform: translateY(-1px); box-shadow: inset 1px 1px 0 rgba(255, 255, 255, .8), inset -1px -1px 0 rgba(90, 60, 30, .18), 2px 4px 6px rgba(40, 22, 8, .4); }
.bt-langue:active { transform: translateY(1px); box-shadow: inset 1px 1px 3px rgba(90, 60, 30, .35); }
/* Dès la tablette : cadre réduit, bouton à droite aligné sur le bas du cadre */
@media (min-width: 600px) {
  .accueil__langue { grid-template-columns: minmax(0, 1fr) auto; gap: 16px; }
}
.accueil__pied { margin-top: 10px; }

/* ---------------------------------------------------------------- Visionneuse de photos (sans cadre, commandes sur l'image) */
.visionneuse { padding: 0; border: 0; background: none; max-width: 100vw; max-height: 100vh; overflow: visible; }
.visionneuse::backdrop { background: rgba(16, 10, 5, .94); }
.visionneuse__img { display: block; max-width: 94vw; max-height: 90vh; width: auto; height: auto; box-shadow: 0 8px 30px rgba(0, 0, 0, .6); }
.visionneuse button {
  position: absolute; display: grid; place-items: center; width: 44px; height: 44px; padding: 0;
  font: 28px/1 var(--serif); color: #fff; cursor: pointer;
  background: rgba(30, 18, 8, .42); border: 1px solid rgba(255, 255, 255, .45); border-radius: 50%;
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  text-shadow: 0 1px 2px rgba(0, 0, 0, .6); opacity: .8; transition: opacity .15s, background .15s;
}
.visionneuse button:hover, .visionneuse button:focus-visible { opacity: 1; background: rgba(30, 18, 8, .65); outline: none; }
.visionneuse__fermer { top: 10px; right: 10px; font-size: 18px !important; }
.visionneuse__prec, .visionneuse__suiv { bottom: 10px; }
.visionneuse__prec { left: 10px; }
.visionneuse__suiv { right: 10px; }
