/* Domaine de Flory — la feuille de style du site.
   D'après la maquette « E1 · Plans fixes » (18/11/2026) : fond nuit, photos
   plein cadre, et le texte posé dessus sur des cartes couleur papier.
   Polices servies par le site lui-même (licence OFL, fichiers à côté) :
   aucune demande à Google. */

@font-face {
  font-family: "Instrument Serif";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../polices/instrument-serif-latin-400-normal.9b8dd1ecf641.woff2") format("woff2");
}
@font-face {
  font-family: "Instrument Serif";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../polices/instrument-serif-latin-400-italic.bc891bdd08ad.woff2") format("woff2");
}
@font-face {
  font-family: "Inter Tight";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("../polices/inter-tight-latin-300-normal.888e991ca142.woff2") format("woff2");
}
@font-face {
  font-family: "Inter Tight";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../polices/inter-tight-latin-400-normal.2c20035257a1.woff2") format("woff2");
}
@font-face {
  font-family: "Inter Tight";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../polices/inter-tight-latin-500-normal.5ab688ca8cb4.woff2") format("woff2");
}
@font-face {
  font-family: "Inter Tight";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../polices/inter-tight-latin-600-normal.62121ba6ea27.woff2") format("woff2");
}

:root {
  --nuit: #12110e;
  --clair: #eee7d8;
  --clair-doux: #d8d0c0;
  --gris: #a79f8f;
  --or: #e9a23b;
  --papier: #f3eee3;
  --encre: #24221d;
  --encre-douce: #3a372f;
  --encre-pale: #5c574c;
  --trait: #d8cfbc;
  --champ: #b9ae96;
  --vin: #7b2d3b;
  --erreur: #8f1d2c;
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --sans: "Inter Tight", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --largeur: 1320px;
  --marge: clamp(20px, 3vw, 40px);
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--nuit);
  color: var(--clair);
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 300;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: var(--clair); }
a:hover { color: var(--or); }
:focus-visible { outline: 2px solid var(--or); outline-offset: 3px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 400; margin: 0; }
em { font-style: italic; }

.evitement {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 10;
  padding: 10px 16px;
  background: var(--papier);
  color: var(--encre);
  text-decoration: none;
}
.evitement:focus { top: 12px; }

/* ── En-tête ─────────────────────────────────────────────────────────── */

.entete {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--largeur);
  margin: 0 auto;
  padding: 16px var(--marge);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 32px;
  align-items: center;
  justify-content: space-between;
}
.marque {
  font-family: var(--serif);
  font-size: 26px;
  text-decoration: none;
  padding: 8px 0;
}
.entete__menu {
  display: flex;
  flex-wrap: wrap;
  gap: 0 28px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.entete__menu a { text-decoration: none; padding: 14px 0; }
.entete__droite {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 20px;
}

/* Le choix de la langue (domaine/_langue.html) : deux petits drapeaux,
   discrets. Celui de la langue affichée est plein, l'autre estompé jusqu'au
   survol. La zone cliquable garde 44 px de haut, le drapeau 14. */
.langue {
  display: flex;
  align-items: center;
  gap: 2px;
  margin: 0;
}
.langue__drapeau {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 5px;
  border: 0;
  background: none;
}
.langue__drapeau img {
  display: block;
  width: 21px;
  height: 14px;
  object-fit: cover;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(18, 17, 14, 0.25);
}
button.langue__drapeau {
  cursor: pointer;
  opacity: 0.45;
  transition: opacity 0.2s;
}
button.langue__drapeau:hover,
button.langue__drapeau:focus-visible { opacity: 1; }

/* ── Ouverture (la grande photo du haut) ─────────────────────────────── */

.ouverture {
  position: relative;
  min-height: min(900px, 100svh);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.ouverture__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
}
.ouverture::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(18, 17, 14, 0.55) 0%, rgba(18, 17, 14, 0.15) 30%, rgba(18, 17, 14, 0.25) 60%, rgba(18, 17, 14, 0.9) 100%);
  pointer-events: none;
}
.ouverture > :not(img) { position: relative; z-index: 1; }
.ouverture__titre {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px var(--marge);
}
.surtitre {
  margin: 0 0 20px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--clair);
}
.ouverture__titre { text-shadow: 0 1px 14px rgba(18, 17, 14, 0.55); }
.ouverture h1 {
  font-size: clamp(64px, 12vw, 184px);
  line-height: 0.86;
  letter-spacing: -0.02em;
}
.ouverture__sous-titre { margin: 28px 0 0; font-size: 20px; }
.decouvrir {
  align-self: center;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-bottom: 36px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
}

/* ── Présentation ────────────────────────────────────────────────────── */

.presentation {
  max-width: 1040px;
  margin: 0 auto;
  padding: clamp(96px, 12vw, 160px) var(--marge);
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 40px;
  align-items: center;
}
.presentation__phrase {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(32px, 4.6vw, 62px);
  line-height: 1.12;
}
.presentation__phrase em { color: var(--or); }
.presentation__texte { margin: 0; max-width: 640px; font-size: 18px; color: var(--clair-doux); }

/* ── Les plans : une photo plein cadre, une carte posée dessus ───────── */

.plan {
  position: relative;
  min-height: 860px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.plan__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.plan__photo--vin { object-position: 40% 40%; }
.plan::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
.plan--gauche::before {
  background:
    linear-gradient(0deg, rgba(18, 17, 14, 0.55) 0, rgba(18, 17, 14, 0) 140px),
    linear-gradient(90deg, rgba(18, 17, 14, 0.5) 0%, rgba(18, 17, 14, 0) 55%);
}
.plan--droite::before {
  background:
    linear-gradient(0deg, rgba(18, 17, 14, 0.55) 0, rgba(18, 17, 14, 0) 140px),
    linear-gradient(270deg, rgba(18, 17, 14, 0.5) 0%, rgba(18, 17, 14, 0) 55%);
}
.plan--contact::before { background: rgba(18, 17, 14, 0.35); }
.plan__cadre {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--largeur);
  margin: 0 auto;
  padding: 96px var(--marge);
  display: flex;
}
.plan--droite .plan__cadre { justify-content: flex-end; }
.plan--contact { min-height: 1080px; margin-top: 140px; }
.plan--contact .plan__cadre { justify-content: center; }
.plan__legende {
  position: absolute;
  z-index: 2;
  bottom: 24px;
  margin: 0;
  font-size: 13px;
  color: var(--clair);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.7);
}
.plan--gauche .plan__legende { right: var(--marge); }
.plan--droite .plan__legende { left: var(--marge); }

/* ── Les cartes ──────────────────────────────────────────────────────── */

.carte {
  width: 100%;
  max-width: 520px;
  padding: 48px;
  background: var(--papier);
  color: var(--encre);
  font-weight: 400;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.carte--large { max-width: 680px; }
.carte p { margin: 0; color: var(--encre-douce); }
.carte a { color: var(--vin); }
.carte a:hover { color: var(--encre); }
.carte :focus-visible { outline-color: var(--vin); }
.carte h1, .carte h2 {
  font-size: clamp(40px, 4.6vw, 64px);
  line-height: 1;
}
.carte__surtitre {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--vin) !important;
}

.fiche {
  margin: 0;
  border-top: 1px solid var(--trait);
  font-size: 15px;
}
.fiche div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid var(--trait);
}
.fiche dt { color: var(--encre-pale); }
.fiche dd { margin: 0; text-align: right; }

/* ── Les bandeaux (les petites bottes, les vignes) ───────────────────── */

.bandeau {
  position: relative;
  margin: 0;
  height: 560px;
  overflow: hidden;
}
.bandeau img { width: 100%; height: 100%; object-fit: cover; }
/* Un voile en bas des photos, pour que leur légende se lise sur un ciel ou
   une herbe clairs. */
.bandeau::after,
.images figure::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 140px;
  background: linear-gradient(0deg, rgba(18, 17, 14, 0.6), rgba(18, 17, 14, 0));
  pointer-events: none;
}
.bandeau figcaption,
.images figcaption { z-index: 1; }
.bandeau figcaption,
.images figcaption {
  position: absolute;
  left: var(--marge);
  bottom: 24px;
  font-size: 13px;
  color: var(--clair);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.7);
}

/* ── Le domaine en images ────────────────────────────────────────────── */

.images__entete {
  max-width: var(--largeur);
  margin: 0 auto;
  padding: 140px var(--marge) 48px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px 32px;
}
.images__entete h2 { font-size: clamp(40px, 4.6vw, 64px); line-height: 1; }
.images__entete h2 em { color: var(--or); }
.images__entete p { margin: 0; font-size: 14px; color: var(--gris); }
.images__rangee { display: flex; flex-wrap: wrap; }
.images figure {
  position: relative;
  flex: 1 1 420px;
  min-width: 0;
  height: 720px;
  margin: 0;
  overflow: hidden;
}
.images figure img { width: 100%; height: 100%; object-fit: cover; }
/* Les rangées « justifiées » : chaque photo garde ses proportions et toutes
   ont la même hauteur. La largeur de chacune est proportionnelle à son
   rapport largeur / hauteur (flex-grow, en douzièmes) ; aspect-ratio en
   déduit la même hauteur pour toutes. Pas de styles en ligne : la CSP les
   refuse, d'où une classe par format. */
.images .images__rangee--justifiee figure {
  flex-shrink: 1;
  flex-basis: 0;
  height: auto;
}
.images__rangee--justifiee .format-3-4 { flex-grow: 9;  aspect-ratio: 3 / 4; }
.images__rangee--justifiee .format-4-3 { flex-grow: 16; aspect-ratio: 4 / 3; }
.images__rangee--justifiee .format-3-2 { flex-grow: 18; aspect-ratio: 3 / 2; }
.images__rangee--justifiee .format-9-16 { flex-grow: 6.75; aspect-ratio: 9 / 16; }
.images figcaption { left: 24px; bottom: 20px; font-size: 14px; }

/* ── Le formulaire ───────────────────────────────────────────────────── */

.formulaire { display: flex; flex-direction: column; gap: 20px; margin-top: 8px; }
.formulaire__ligne {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}
.champ { margin: 0; display: flex; flex-direction: column; gap: 6px; }
.champ label { font-size: 14px; font-weight: 600; color: var(--encre); }
.champ input,
.champ textarea {
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  border: 1px solid var(--champ);
  border-radius: 4px;
  background: #fff;
  color: var(--encre);
  font-family: var(--sans);
  font-size: 16px; /* en dessous, Safari agrandit la page à la saisie */
}
.champ textarea { resize: vertical; }
.champ input:focus-visible,
.champ textarea:focus-visible { outline: 2px solid var(--vin); outline-offset: 1px; border-color: var(--vin); }
.en-erreur input, .en-erreur textarea { border-color: var(--erreur); }
.erreur { font-size: 14px; color: var(--erreur); }
.champ small { font-size: 13px; color: var(--encre-pale); }
.captcha__ligne { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.captcha__ligne img { border: 1px solid var(--champ); border-radius: 4px; }
.captcha__ligne input {
  flex: 1 1 160px;
  min-width: 0;
  width: auto;
  font-size: 18px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.piege {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.alerte {
  padding: 12px 16px;
  border-left: 3px solid var(--erreur);
  background: #fbf1ee;
}
.alerte p { color: var(--erreur) !important; }
.formulaire__pied {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 32px;
  align-items: center;
  justify-content: space-between;
  padding-top: 4px;
}
.formulaire__pied p { flex: 1 1 240px; font-size: 13px; color: var(--encre-pale) !important; }

.bouton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 28px;
  border: 0;
  border-radius: 999px;
  background: var(--nuit);
  color: var(--papier) !important;
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
}
.bouton:hover { background: #2e2b24; }
.bouton--clair {
  align-self: flex-start;
  min-height: 44px;
  padding: 10px 20px;
  border: 1px solid var(--encre);
  background: transparent;
  color: var(--encre) !important;
  font-size: 15px;
}
.bouton--clair:hover { background: #e8e1d2; }
.merci { display: flex; flex-direction: column; gap: 16px; }

/* ── Pied de page ────────────────────────────────────────────────────── */

.pied__dedans {
  max-width: var(--largeur);
  margin: 0 auto;
  padding: 20px var(--marge);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px 16px;
  font-size: 14px;
  color: var(--gris);
}
.pied a { color: var(--gris); padding: 12px 0; display: inline-block; }
.pied a:hover { color: var(--or); }
.pied__liens { display: inline-flex; gap: 20px; align-items: center; }
.pied__version { font-size: 12px; opacity: 0.8; }

/* ── Pages secondaires (mentions légales, introuvable) ───────────────── */

.secondaire__contenu {
  padding: 40px var(--marge) 120px;
  display: flex;
  justify-content: center;
}
.carte--texte { max-width: 760px; gap: 14px; }
.carte--texte h2 { font-size: 34px; margin-top: 28px; }
.carte--texte h3 { font-family: var(--sans); font-size: 17px; font-weight: 600; margin-top: 16px; }
.carte--texte address { font-style: normal; color: var(--encre-douce); }
.carte--texte ul { margin: 0; padding-left: 20px; color: var(--encre-douce); }
/* Les mentions légales en provençal (mentions_legales_oc.html) : une phrase
   qui dit que le texte reste en français, puis le texte français, dont le
   conteneur s'efface de la mise en page (les titres et paragraphes gardent
   l'espacement de la carte). */
.avis-langue { font-style: italic; color: var(--encre-pale); }
.en-francais { display: contents; }

/* ── Téléphone ───────────────────────────────────────────────────────── */

@media (max-width: 720px) {
  /* L'en-tête sur un téléphone (v1.0.2) : le nom à gauche et les drapeaux
     tout à droite, sur la même ligne, puis le menu en dessous. Sans cela,
     les drapeaux suivaient le menu, dont la longueur change d'une langue à
     l'autre (« Fourrage », « Hay », « Fen ») : ils sautaient d'une place à
     l'autre au changement de langue. Ici leur place ne dépend que de la
     largeur de l'écran. .entete__droite s'efface de la mise en page pour
     que le menu et les drapeaux se placent dans la grille de l'en-tête. */
  .entete {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 0 16px;
  }
  .entete__droite { display: contents; }
  .entete .langue { grid-column: 2; grid-row: 1; justify-self: end; margin-right: -5px; }
  .entete__menu { grid-column: 1 / -1; grid-row: 2; }
  .plan { display: block; min-height: 0; }
  .plan--contact { min-height: 0; margin-top: 96px; }
  .plan__photo { position: relative; height: 78vw; }
  .plan::before { display: none; }
  .plan__cadre { margin-top: -64px; padding: 0 12px 0; }
  .plan__legende {
    position: static;
    padding: 12px var(--marge) 0;
    color: var(--gris);
    text-shadow: none;
  }
  .carte { padding: 32px 24px; }
  .bandeau { height: 320px; }
  .images figure { height: 440px; }
  /* Sur un téléphone, une photo par ligne, entière. */
  .images .images__rangee--justifiee figure { flex-basis: 100%; height: auto; }
  .images__entete { padding-top: 96px; }
}
