/* Ischy — mémoire d'un village chaldéen.
   Palette pierre et terre : le village est décrit comme une oasis de vergers dans une
   vallée encaissée, bâtie en pierre. Le bleu-vert des liens reprend l'eau — la rivière,
   les deux ruisseaux et les trois fontaines de 1975 sont un motif central du dossier. */

:root {
  --calcaire: #f6f3ed;
  --carte: #fffdf9;
  --pierre: #dcd4c7;
  --ombre: #6b5844;
  --terre: #9c5b3c;
  --eau: #2f6d6a;
  --encre: #262320;
  --texte: #574f46;
  --attenue: #8d8478;
  --serif: ui-serif, Georgia, "Iowan Old Style", "Palatino Linotype", serif;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --largeur: 42rem;
  /* Le site reste clair quel que soit le reglage du visiteur : choix assume. */
  color-scheme: light;
}

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

body {
  margin: 0; background: var(--calcaire); color: var(--encre);
  font: 400 17px/1.75 var(--serif);
  -webkit-font-smoothing: antialiased;
}
.large, .etroit { width: 100%; margin: 0 auto; padding: 0 22px; }
.etroit { max-width: var(--largeur); }
.large { max-width: 64rem; }

/* --- Navigation --------------------------------------------------------- */
.barre {
  background: var(--carte); border-bottom: 1px solid var(--pierre);
  position: sticky; top: 0; z-index: 20;
}
.barre-int {
  max-width: 64rem; margin: 0 auto; padding: 0 22px;
  display: flex; align-items: center; gap: 18px; min-height: 58px; flex-wrap: wrap;
}
.marque {
  font: 600 17px/1 var(--serif); color: var(--encre);
  text-decoration: none; letter-spacing: .01em; margin-right: auto;
}
.marque span { color: var(--terre); }
.barre nav { display: flex; gap: 4px; flex-wrap: wrap; padding-bottom: 6px; }
.barre nav a {
  font: 500 14.5px/1 var(--sans); color: var(--texte); text-decoration: none;
  padding: 8px 11px; border-radius: 5px;
}
.barre nav a:hover { background: var(--calcaire); color: var(--encre); }
.barre nav a[aria-current="page"] { color: var(--terre); background: var(--calcaire); }
.barre nav a:focus-visible, .marque:focus-visible {
  outline: 2px solid var(--eau); outline-offset: 2px;
}

/* --- Titres et texte ---------------------------------------------------- */
h1 {
  font: 600 clamp(1.85rem, 5.2vw, 2.5rem)/1.22 var(--serif);
  margin: 0 0 12px; letter-spacing: -0.015em; text-wrap: balance;
}
h2 {
  font: 600 clamp(1.3rem, 3.4vw, 1.55rem)/1.3 var(--serif);
  margin: 46px 0 14px; color: var(--encre); text-wrap: balance;
}
h3 {
  font: 600 1.06rem/1.45 var(--sans); margin: 30px 0 8px; color: var(--ombre);
}
p { margin: 0 0 17px; color: var(--texte); }
strong { color: var(--encre); font-weight: 600; }
em { color: var(--ombre); }
a { color: var(--eau); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:focus-visible { outline: 2px solid var(--eau); outline-offset: 2px; border-radius: 2px; }
ul, ol { color: var(--texte); padding-left: 1.15em; margin: 0 0 17px; }
li { margin-bottom: 7px; }

.chapeau {
  font-size: 1.09rem; color: var(--ombre); border-left: 2px solid var(--terre);
  padding-left: 18px; margin: 0 0 30px;
}
.sureth { font-style: italic; color: var(--ombre); }

/* --- En-tête de page ---------------------------------------------------- */
.entete { padding: 46px 0 34px; border-bottom: 1px solid var(--pierre); background: var(--carte); }
.surtitre {
  font: 600 12px/1 var(--sans); letter-spacing: .17em; text-transform: uppercase;
  color: var(--terre); margin-bottom: 13px;
}
main { padding: 34px 0 20px; }

/* --- Tableaux ----------------------------------------------------------- */
.tableau { overflow-x: auto; margin: 0 0 24px; }
table { border-collapse: collapse; width: 100%; font: 400 15px/1.6 var(--sans); }
th, td { text-align: left; padding: 9px 14px 9px 0; border-bottom: 1px solid var(--pierre); vertical-align: top; }
th { color: var(--attenue); font-weight: 600; font-size: 13.5px; white-space: nowrap; }
td { color: var(--texte); }
td:first-child { color: var(--encre); }

/* --- Encadrés ----------------------------------------------------------- */
.note, .reserve {
  border-radius: 7px; padding: 16px 18px; margin: 0 0 24px;
  font: 400 15.4px/1.68 var(--sans);
}
.note { background: var(--carte); border: 1px solid var(--pierre); color: var(--texte); }
.reserve {
  background: color-mix(in srgb, var(--terre) 8%, transparent);
  border: 1px solid color-mix(in srgb, var(--terre) 28%, transparent);
  color: var(--texte);
}
.note p:last-child, .reserve p:last-child { margin-bottom: 0; }
.note b, .reserve b { color: var(--encre); }

/* --- Images ------------------------------------------------------------- */
figure { margin: 30px 0; }
figure img {
  width: 100%; height: auto; display: block; border-radius: 6px;
  background: var(--pierre);
}
figcaption {
  font: 400 13.8px/1.6 var(--sans); color: var(--attenue);
  margin-top: 9px; padding-left: 2px;
}
.galerie { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); margin: 26px 0; }
.galerie figure { margin: 0; }
.galerie img { aspect-ratio: 4/3; object-fit: cover; }
.galerie a { display: block; }

/* --- Fiche d'identité --------------------------------------------------- */
.fiche {
  background: var(--carte); border: 1px solid var(--pierre); border-radius: 8px;
  padding: 22px 24px; margin: 0 0 28px;
}
.fiche dl { margin: 0; display: grid; gap: 11px; font: 400 15px/1.55 var(--sans); }
@media (min-width: 540px) { .fiche dl { grid-template-columns: 12rem 1fr; gap: 11px 18px; } }
.fiche dt { color: var(--attenue); font-size: 13.6px; }
.fiche dd { margin: 0; color: var(--encre); }

/* --- Cartes de navigation ----------------------------------------------- */
.sommaire { display: grid; gap: 14px; margin: 30px 0; }
@media (min-width: 620px) { .sommaire { grid-template-columns: 1fr 1fr; } }
.sommaire a {
  display: block; background: var(--carte); border: 1px solid var(--pierre);
  border-radius: 8px; padding: 17px 19px; text-decoration: none; color: inherit;
}
.sommaire a:hover { border-color: var(--terre); }
.sommaire b { display: block; font: 600 1.02rem/1.35 var(--serif); color: var(--encre); margin-bottom: 3px; }
.sommaire span { font: 400 14.4px/1.55 var(--sans); color: var(--texte); }

/* --- Pied ---------------------------------------------------------------- */
footer {
  border-top: 1px solid var(--pierre); margin-top: 54px; padding: 28px 0 46px;
  font: 400 14px/1.7 var(--sans); color: var(--attenue); background: var(--carte);
}
footer p { color: var(--attenue); font-size: 14px; margin: 0 0 7px; }
footer a { color: var(--ombre); }
