/* Montfroc, entre Lure et Ventoux — direction « Pierre de Lure »
   Lumière rasante de fin d'après-midi sur le calcaire de Lure, lavande fanée, chêne blanc.
   Un seul geste fort : la ligne de crête (filet sous les titres, séparateur de sections). Le reste reste calme. */

:root {
  --calcaire: #e9ddc7;
  --craie: #f7f2e8;
  --lavande: #7e6e9e;
  --lavande-encre: #5b4c7d; /* lavande assombrie : texte de lien, contraste AA sur craie */
  --chene: #4f5b3a;
  --sienne: #a4552c;
  --nuit: #1f2230;
  --nuit-douce: #4a4d5c;
  --filet: #d6c8ad;

  --f-titre: 'EB Garamond', 'Times New Roman', serif;
  --f-texte: 'Source Serif 4', Georgia, serif;
  --f-ui: 'Inter', system-ui, sans-serif;

  --measure-article: 820px;
  --largeur: 1240px;
  --gouttiere: clamp(1rem, 4vw, 2.5rem);
  --rayon: 4px;
  --espace: clamp(3rem, 7vw, 5.5rem);

  /* Profil de crête Lure-Ventoux (SVG, couleur lavande) */
  --crete: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 16' preserveAspectRatio='none'%3E%3Cpath d='M0 15 L22 11 L40 13 L64 6 L80 9 L104 3 L122 8 L140 5 L158 10 L184 2 L206 9 L224 6 L240 12' fill='none' stroke='%237e6e9e' stroke-width='1.6' stroke-linejoin='round' stroke-linecap='round'/%3E%3C/svg%3E");
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5.5rem; }
body {
  margin: 0;
  background: var(--craie);
  color: var(--nuit);
  font-family: var(--f-texte);
  font-size: 1.1875rem;
  line-height: 1.7;
  font-optical-sizing: auto;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--lavande-encre); text-decoration-color: var(--lavande); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { color: var(--sienne); text-decoration-color: var(--sienne); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--sienne); outline-offset: 3px; border-radius: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.saut-contenu { position: absolute; left: -999px; top: 0; background: var(--nuit); color: var(--craie); padding: 0.6rem 1rem; z-index: 50; font-family: var(--f-ui); }
.saut-contenu:focus { left: 1rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }

/* ---------- Typographie ---------- */
h1, h2, h3, h4 { font-family: var(--f-titre); font-weight: 600; color: var(--nuit); line-height: 1.08; margin: 0 0 0.55em; letter-spacing: -0.005em; }
h1 { font-size: clamp(2.5rem, 5.6vw, 4.4rem); font-weight: 500; }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); margin-top: 1.8em; padding-bottom: 0.7rem; background: var(--crete) left bottom / 148px 12px no-repeat; }
h3 { font-size: clamp(1.4rem, 2.2vw, 1.75rem); margin-top: 1.6em; color: var(--chene); }
p { margin: 0 0 1.15em; }
.chapeau { font-size: 1.3rem; line-height: 1.6; color: var(--nuit-douce); max-width: 40rem; }
strong { font-weight: 600; }

.enveloppe { width: 100%; max-width: var(--largeur); margin-inline: auto; padding-inline: var(--gouttiere); }
.lecture { max-width: calc(var(--measure-article) + 2 * var(--gouttiere)); }

/* ---------- Cartouche d'altitude : signature 2 ---------- */
.altitude {
  display: inline-block;
  font-family: var(--f-ui);
  font-variant-numeric: tabular-nums;
  font-feature-settings: 'tnum';
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.01em;
  color: var(--craie);
  background: var(--chene);
  padding: 0.18rem 0.6rem;
  border-radius: 2px;
  margin: 0 0 0.9rem;
}
.altitude--lavande { background: var(--lavande-encre); }
.altitude--sienne { background: var(--sienne); }

/* ---------- En-tête ---------- */
.entete { background: var(--craie); border-bottom: 1px solid var(--filet); position: sticky; top: 0; z-index: 30; }
.entete__barre { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.4rem; }
.entete__marque { text-decoration: none; color: var(--nuit); display: inline-flex; }
.logo { display: inline-flex; align-items: center; gap: 0.7rem; }
.logo__tour { flex: none; }
.logo__nom { font-family: var(--f-titre); font-weight: 700; font-size: 1.55rem; line-height: 1; color: var(--nuit); }
.logo__nom small { display: block; font-family: var(--f-ui); font-weight: 500; font-size: 0.72rem; color: var(--lavande-encre); margin-top: 0.25rem; letter-spacing: 0.02em; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 0.15rem 1.35rem; flex-wrap: wrap; }
.nav a { font-family: var(--f-ui); font-size: 0.92rem; font-weight: 500; text-decoration: none; color: var(--nuit); padding: 0.35rem 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current='page'] { border-bottom-color: var(--lavande); color: var(--lavande-encre); }
.burger { display: none; background: none; border: 1px solid var(--filet); border-radius: var(--rayon); width: 2.8rem; height: 2.8rem; cursor: pointer; align-items: center; justify-content: center; }
.burger__trait, .burger__trait::before, .burger__trait::after { display: block; width: 1.3rem; height: 2px; background: var(--nuit); position: relative; content: ''; }
.burger__trait::before { position: absolute; top: -6px; }
.burger__trait::after { position: absolute; top: 6px; }
@media (max-width: 1080px) {
  .burger { display: inline-flex; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--craie); border-bottom: 1px solid var(--filet); padding: 0.8rem var(--gouttiere) 1.2rem; }
  .nav-ouverte .nav { display: block; }
  .nav ul { flex-direction: column; gap: 0.2rem; }
  .nav a { display: block; padding: 0.6rem 0; }
}

/* ---------- Fil d'Ariane ---------- */
.ariane { font-family: var(--f-ui); font-size: 0.84rem; color: var(--nuit-douce); margin-bottom: 1.4rem; }
.ariane ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.25rem 0.5rem; }
.ariane li + li::before { content: '/'; margin-right: 0.5rem; color: var(--filet); }
.ariane a { color: var(--nuit-douce); }

/* ---------- Wrappers image : anti-distorsion ---------- */
.img-hero { aspect-ratio: 16 / 9; overflow: hidden; background: var(--calcaire); border-radius: var(--rayon); }
.img-card { aspect-ratio: 3 / 2; overflow: hidden; background: var(--calcaire); }
.img-body { aspect-ratio: 3 / 2; overflow: hidden; background: var(--calcaire); border-radius: var(--rayon); }
.img-portrait { aspect-ratio: 1 / 1; overflow: hidden; border-radius: 50%; width: 88px; flex: none; }
.img-hero img, .img-card img, .img-body img, .img-portrait img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.img-card img { transition: transform 0.5s ease; }
.carte__lien:hover .img-card img { transform: scale(1.03); }

/* Figures dans le corps : légende visible, crédit en petites capitales */
.corps figure { margin: 2.2rem 0; }
.corps figcaption { font-family: var(--f-ui); font-size: 0.86rem; line-height: 1.5; color: var(--nuit-douce); margin-top: 0.55rem; padding-left: 0.8rem; border-left: 2px solid var(--lavande); }
.corps figcaption .credit, .credit { font-variant: small-caps; letter-spacing: 0.04em; }

/* ---------- Sections ---------- */
.section { padding-block: var(--espace); }
.section--calcaire { background: var(--calcaire); }
.section--nuit { background: var(--nuit); color: var(--craie); }
.section--nuit h2, .section--nuit h3 { color: var(--craie); }
.section--entete { padding-block: clamp(2rem, 5vw, 3.5rem) var(--espace); }
.section--crete { position: relative; margin-top: 24px; }
.section--crete::before { content: ''; position: absolute; top: -1px; left: 0; right: 0; height: 22px; background: var(--crete) center bottom / 100% 22px no-repeat; transform: translateY(-100%); opacity: 0.9; }
.titre-section { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.6rem; }
.titre-section h2 { margin: 0; }
.titre-section a { font-family: var(--f-ui); font-size: 0.92rem; font-weight: 500; }

/* ---------- Hero de page (pilier, article) ---------- */
.hero-page { padding-block: clamp(2rem, 5vw, 4rem); border-bottom: 1px solid var(--filet); }
.hero-page__grille { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.hero-page__rubrique { font-family: var(--f-ui); font-size: 0.9rem; font-weight: 600; color: var(--sienne); margin: 0 0 0.8rem; }
.hero-page__rubrique a { color: inherit; text-decoration: none; }
.meta-article { font-family: var(--f-ui); font-size: 0.88rem; color: var(--nuit-douce); display: flex; gap: 0.3rem 1.2rem; flex-wrap: wrap; margin: 0; }
.meta-article time:first-child { color: var(--sienne); font-weight: 600; }
@media (max-width: 860px) { .hero-page__grille { grid-template-columns: 1fr; } }

/* ---------- Accueil ---------- */
.accueil-hero { padding-block: clamp(1.5rem, 4vw, 3rem) var(--espace); }
.accueil-hero__grille { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.accueil-hero h1 { margin-bottom: 0.4em; }
.accueil-hero__cta { display: flex; gap: 0.8rem 1.4rem; flex-wrap: wrap; align-items: center; margin-top: 1.6rem; }
.accueil-hero__media { position: relative; }
.accueil-hero__media .img-hero { aspect-ratio: 16 / 10; }
.accueil-hero__legende { font-family: var(--f-ui); font-size: 0.8rem; color: var(--nuit-douce); margin: 0.5rem 0 0; }
@media (max-width: 860px) { .accueil-hero__grille { grid-template-columns: 1fr; } }

.portes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.4rem; }
.porte { display: flex; flex-direction: column; text-decoration: none; color: var(--nuit); background: var(--craie); border-top: 3px solid var(--lavande); padding: 1.5rem 1.5rem 1.7rem; }
.porte:hover { color: var(--nuit); background: #fff; }
.porte--chene { border-top-color: var(--chene); }
.porte--sienne { border-top-color: var(--sienne); }
.porte h3 { margin: 0.2rem 0 0.5rem; color: var(--nuit); font-size: 1.7rem; }
.porte p { margin: 0; color: var(--nuit-douce); font-size: 1.05rem; }
.porte .altitude { align-self: flex-start; color: var(--craie); font-size: 0.9rem; margin-bottom: 0.9rem; }
@media (max-width: 860px) { .portes { grid-template-columns: 1fr; } }

/* Bandeau des altitudes */
.bandeau-altitudes { display: flex; flex-wrap: wrap; gap: 1.5rem 3rem; align-items: flex-end; }
.bandeau-altitudes__item { font-family: var(--f-ui); font-variant-numeric: tabular-nums; }
.bandeau-altitudes__valeur { display: block; font-family: var(--f-titre); font-weight: 600; font-size: clamp(2.2rem, 4vw, 3.2rem); line-height: 1; color: var(--calcaire); }
.bandeau-altitudes__lieu { display: block; font-size: 0.9rem; color: #cfc8dd; margin-top: 0.3rem; }
.bandeau-texte { max-width: 44rem; }
.bandeau-texte p { color: #e5e0ee; }

/* ---------- Grille + cartes ---------- */
.grille { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.2rem, 2.5vw, 2rem); }
@media (max-width: 980px) { .grille { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .grille { grid-template-columns: 1fr; } }
.carte { background: transparent; }
.carte[hidden] { display: none; }
.carte__lien { display: block; text-decoration: none; color: var(--nuit); }
.carte__lien:hover { color: var(--nuit); }
.carte__texte { padding-top: 0.9rem; }
.carte__meta { display: flex; gap: 0.2rem 0.9rem; flex-wrap: wrap; font-family: var(--f-ui); font-size: 0.8rem; margin: 0 0 0.4rem; }
.carte__categorie { color: var(--chene); font-weight: 600; }
.carte__date { color: var(--sienne); font-weight: 500; }
.carte__titre { font-size: 1.5rem; margin: 0 0 0.4rem; }
.carte__lien:hover .carte__titre { color: var(--lavande-encre); }
.carte__extrait { font-size: 1rem; line-height: 1.55; color: var(--nuit-douce); margin: 0; display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* Filtre catégories */
.filtre { list-style: none; margin: 1.6rem 0 2rem; padding: 0; display: flex; flex-wrap: wrap; gap: 0.6rem; }
.filtre button { font-family: var(--f-ui); font-size: 0.9rem; font-weight: 500; background: transparent; color: var(--nuit); border: 1px solid var(--filet); border-radius: 999px; padding: 0.45rem 1rem; cursor: pointer; }
.filtre button small { color: var(--nuit-douce); margin-left: 0.25rem; }
.filtre button:hover { border-color: var(--lavande); }
.filtre button[aria-pressed='true'] { background: var(--nuit); color: var(--craie); border-color: var(--nuit); }
.filtre button[aria-pressed='true'] small { color: var(--calcaire); }

/* ---------- Boutons ---------- */
.bouton { display: inline-block; font-family: var(--f-ui); font-weight: 600; font-size: 0.98rem; background: var(--sienne); color: #fff; border: 0; border-radius: var(--rayon); padding: 0.8rem 1.5rem; text-decoration: none; cursor: pointer; }
.bouton:hover { background: #8a4522; color: #fff; }
.bouton:disabled { opacity: 0.6; cursor: wait; }
.lien-fort { font-family: var(--f-ui); font-weight: 600; font-size: 0.98rem; }

/* ---------- Corps d'article ---------- */
.corps { font-size: 1.1875rem; }
.corps h2:first-child { margin-top: 0; }
.corps ul, .corps ol { padding-left: 1.3rem; margin: 0 0 1.3em; }
.corps li { margin-bottom: 0.45em; }
.corps ul { list-style: none; padding-left: 1.5rem; }
.corps ul li { position: relative; }
.corps ul li::before { content: ''; position: absolute; left: -1.25rem; top: 0.72em; width: 0.5rem; height: 0.5rem; background: var(--sienne); transform: rotate(45deg); }
.corps blockquote { margin: 1.8rem 0; padding: 1.2rem 1.5rem; background: var(--calcaire); border-left: 4px solid var(--lavande); font-style: italic; }
.corps blockquote p:last-child { margin-bottom: 0; }
.corps table { width: 100%; border-collapse: collapse; margin: 1.8rem 0; font-family: var(--f-ui); font-size: 0.94rem; display: block; overflow-x: auto; }
@media (min-width: 700px) { .corps table { display: table; } }
.corps th, .corps td { border: 1px solid var(--filet); padding: 0.6rem 0.8rem; text-align: left; vertical-align: top; }
.corps th { background: var(--calcaire); font-weight: 600; }
.corps img { border-radius: var(--rayon); }

.summary-box { background: var(--calcaire); border-left: 4px solid var(--sienne); padding: 1.1rem 1.4rem; margin: 2rem 0; font-size: 1.1rem; }
.summary-box p { margin: 0; }

.article-sommaire { border: 1px solid var(--filet); background: #fff9; padding: 1.2rem 1.5rem; margin: 2rem 0; font-family: var(--f-ui); font-size: 0.95rem; }
.article-sommaire__titre { font-weight: 600; margin: 0 0 0.5rem; color: var(--chene); }
.article-sommaire ol { margin: 0; padding-left: 1.2rem; }
.article-sommaire li { margin-bottom: 0.3rem; }

/* Cartel de château : signature 3 (musée) */
.cartel { background: var(--calcaire); border-left: 4px solid var(--lavande); padding: 1.2rem 1.5rem; margin: 1.8rem 0; font-family: var(--f-ui); }
.cartel__titre { font-family: var(--f-titre); font-weight: 700; font-size: 1.5rem; margin: 0 0 0.6rem; color: var(--nuit); }
.cartel dl { display: grid; grid-template-columns: max-content 1fr; gap: 0.3rem 1.2rem; margin: 0; font-size: 0.92rem; }
.cartel dt { font-weight: 600; color: var(--chene); }
.cartel dd { margin: 0; }

/* Frise chronologique : signature 4 */
.frise { list-style: none; margin: 2.2rem 0; padding: 1.6rem 0 0; display: flex; gap: 0; overflow-x: auto; position: relative; font-family: var(--f-ui); }
.frise::before { content: ''; position: absolute; left: 0; right: 0; top: 1.6rem; height: 2px; background: var(--lavande); }
.frise li { flex: 1 0 9.5rem; padding: 1.1rem 1rem 0 0; position: relative; margin: 0; font-size: 0.9rem; line-height: 1.45; }
.corps .frise li::before { content: ''; position: absolute; left: 0; top: -0.4rem; width: 0.85rem; height: 0.85rem; background: var(--sienne); border-radius: 50%; transform: none; }
.frise strong { display: block; font-family: var(--f-titre); font-size: 1.5rem; color: var(--sienne); font-weight: 700; }

/* Encadré non-affiliation */
.non-affiliation { border: 1px solid var(--lavande); background: #fff9; padding: 1rem 1.3rem; font-family: var(--f-ui); font-size: 0.92rem; line-height: 1.55; margin: 2rem 0; }
.non-affiliation p { margin: 0; }

/* FAQ */
.faq { margin-top: 3rem; }
.faq__item { border-bottom: 1px solid var(--filet); }
.faq__question { display: block; width: 100%; text-align: left; font-family: var(--f-titre); font-weight: 700; font-size: 1.4rem; line-height: 1.2; color: var(--nuit); background: none; border: 0; padding: 1rem 2.4rem 1rem 0; cursor: pointer; position: relative; }
.faq__question::after { content: '+'; position: absolute; right: 0.4rem; top: 50%; transform: translateY(-50%); font-family: var(--f-ui); font-size: 1.5rem; color: var(--sienne); }
.faq__item.ouvert .faq__question::after { content: '–'; }
.faq__reponse { display: none; padding-bottom: 1rem; }
.faq__item.ouvert .faq__reponse { display: block; }

.sources { margin-top: 3rem; font-family: var(--f-ui); font-size: 0.92rem; }
.sources ul { padding-left: 1.2rem; }

/* Interview */
.interview-expert-card { display: flex; gap: 1.2rem; align-items: center; margin: 1.5rem 0; font-family: var(--f-ui); font-size: 0.92rem; }
.interview-expert-card p { margin: 0; }
.interview-expert-card__nom { font-weight: 600; font-size: 1.05rem; }

/* ---------- Formulaire ---------- */
.formulaire { display: grid; gap: 1.1rem; max-width: 34rem; margin-top: 2rem; font-family: var(--f-ui); }
.champ label { display: block; font-weight: 600; font-size: 0.92rem; margin-bottom: 0.3rem; }
.champ input, .champ select, .champ textarea { width: 100%; font: inherit; font-size: 1rem; padding: 0.7rem 0.8rem; border: 1px solid var(--filet); border-radius: var(--rayon); background: #fff; color: var(--nuit); }
.champ input:focus, .champ select:focus, .champ textarea:focus { border-color: var(--lavande); outline: 2px solid var(--lavande); outline-offset: 1px; }
.etat-envoi { min-height: 1.4em; font-size: 0.95rem; margin: 0; }
.etat-envoi[data-etat='ok'] { color: var(--chene); }
.etat-envoi[data-etat='erreur'] { color: #9c2b1a; }

/* ---------- Pied ---------- */
.pied { background: var(--nuit); color: #d9d5e3; padding-block: 3.5rem 2rem; margin-top: var(--espace); position: relative; }
.pied::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 22px; background: var(--crete) center bottom / 100% 22px no-repeat; transform: translateY(-99%); }
.pied a { color: #e7e2f1; text-decoration-color: #7e6e9e; }
.pied a:hover { color: #fff; }
.pied__grille { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; }
.pied .logo__nom { color: var(--craie); }
.pied .logo__nom small { color: #b9aed0; }
.pied__marque p { font-size: 1rem; margin-top: 1rem; max-width: 26rem; }
.pied__titre { font-family: var(--f-ui); font-weight: 600; font-size: 0.95rem; color: var(--calcaire); margin: 0 0 0.7rem; }
.pied ul { list-style: none; padding: 0; margin: 0; font-family: var(--f-ui); font-size: 0.93rem; }
.pied li { margin-bottom: 0.4rem; }
.pied__bas { font-family: var(--f-ui); font-size: 0.82rem; line-height: 1.6; color: #b4aec3; border-top: 1px solid #383b4d; margin-top: 2.5rem; padding-top: 1.4rem; }
.pied__bas p { margin: 0 0 0.5rem; }
@media (max-width: 860px) { .pied__grille { grid-template-columns: 1fr; gap: 1.8rem; } }

/* Interviews : questions de la rédaction / réponses de l'experte */
.prose blockquote.journalist-question,
blockquote.journalist-question {
  margin: 2.4rem 0 0.9rem; padding: 0 0 0 1rem; background: none; box-shadow: none;
  border: 0; border-left: 3px solid var(--sienne);
  font-family: var(--f-ui); font-weight: 600; font-style: normal; font-size: 1.02rem; line-height: 1.5;
  color: var(--nuit);
}
blockquote.journalist-question::before {
  content: "La rédaction"; display: block; margin-bottom: 0.2rem;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--sienne);
}
blockquote.journalist-question, blockquote.expert-answer {
  font-size: 1rem !important; font-style: normal !important; line-height: 1.7 !important;
}
.expert-answer { padding-left: 1rem; border-left: 1px solid var(--calcaire); }
.expert-answer > p:first-child { margin-top: 0; }

/* Structure des en-têtes de page et conteneur d'article (enfants de grid : min-width 0 évite tout débordement) */
.hero-page__entete, .hero-page__media { min-width: 0; }
.hero-page--pilier { border-bottom-color: var(--filet); }
.article { position: relative; }
