/* Saint-Augustin en Clunisois : « Pierre blonde et lauze ». CSS statique, sans framework. */
:root {
  --calcaire: #F1E7D0;
  --lauze: #5B6470;
  --lauze-clair: #E4E0D8;
  --encre: #2A2420;
  --ocre: #9A3B26;
  --vigne: #6A7335;
  --filet: #C9BD9F;
  --texte-doux: #4A423B;
  /* couleurs de rubrique : nuances de lauze, d'ocre et de vigne */
  --c-eglises: #5B6470;
  --c-art-roman: #9A3B26;
  --c-cluny: #7A2F1E;
  --c-spiritualite: #46505E;
  --c-liturgie: #7A4A2E;
  --c-visiter: #55601F;
  --serif: var(--af-spectral, 'Spectral'), Georgia, serif;
  --sans: var(--af-work-sans, 'Work Sans'), system-ui, sans-serif;
  --wrap: 72rem;
  --mesure: 68ch;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 1rem; }
body { margin: 0; background: var(--calcaire); color: var(--encre); font: 400 1.0625rem/1.65 var(--sans); }

/* Reset images : jamais d'étirement */
img { max-width: 100%; height: auto; display: block; }
.img-hero { aspect-ratio: 3 / 2; overflow: hidden; max-height: min(75vh, 44vw); }
.img-card, .img-body { aspect-ratio: 3 / 2; overflow: hidden; }
.img-portrait { aspect-ratio: 1 / 1; overflow: hidden; border-radius: 50%; }
.img-hero img, .img-card img, .img-body img, .img-portrait img {
  width: 100%; height: 100%; object-fit: cover; object-position: center top;
}
figure { margin: 0; }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.2; margin: 0; }
h1 { font-size: clamp(2rem, 1.3rem + 2.6vw, 3.1rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); margin-top: 2.4rem; margin-bottom: .7rem; }
h3 { font-size: 1.3rem; margin-top: 1.8rem; margin-bottom: .5rem; }
p, ul, ol, dl { margin: 0 0 1.1rem; }
a { color: var(--ocre); text-underline-offset: 0.2em; text-decoration-thickness: 0.08em; }
a:hover { text-decoration-thickness: 0.16em; }
:focus-visible { outline: 3px solid var(--ocre); outline-offset: 3px; border-radius: 2px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--encre); color: #fff; padding: .6rem 1rem; z-index: 20; }
.skip:focus { left: 0; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 1rem; }

/* Bande lombarde : l'unique audace du site (SVG original servi en mask) */
.bande, .card::before, .site-footer::before, .sep {
  content: ""; display: block; height: 12px; background: var(--c, var(--lauze));
  -webkit-mask: url(/css/bande-lombarde.svg) repeat-x left top / 14px 12px;
          mask: url(/css/bande-lombarde.svg) repeat-x left top / 14px 12px;
}
.sep { margin: 2.6rem 0; --c: var(--lauze); }

/* Bandeau de non-affiliation */
.na-bandeau { background: var(--lauze); color: #fff; font-size: .95rem; line-height: 1.5; }
.na-bandeau .wrap { padding-block: .65rem; }
.na-bandeau a { color: #fff; }
.na-encart { background: var(--lauze-clair); border-left: 4px solid var(--ocre); padding: .8rem 1.1rem; font-size: .97rem; max-width: var(--mesure); margin: 0 0 1.6rem; }

/* En-tête */
.site-header { border-bottom: 1px solid var(--filet); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: baseline; gap: .4rem 2rem; padding-block: .9rem; }
.marque { font: 600 1.45rem/1.1 var(--serif); color: var(--encre); text-decoration: none; margin-right: auto; }
.nav { display: flex; flex-wrap: wrap; gap: .25rem 1.4rem; }
.nav a { color: var(--encre); text-decoration: none; font-weight: 500; font-size: .98rem; padding: .35rem 0; border-bottom: 2px solid transparent; }
.nav a:hover { border-bottom-color: var(--ocre); }
.nav a[aria-current="page"] { border-bottom-color: var(--ocre); }

/* Hero : bandeau bord à bord, titre dessous aligné à gauche */
.hero .img-hero { width: 100%; }
.hero .cc { padding-inline: 1rem; max-width: var(--wrap); margin-inline: auto; }
.hero-titre { padding-block: 1.6rem 1.2rem; }
.hero-titre h1 { max-width: 22ch; }
.hero-titre .lede { max-width: var(--mesure); font-size: 1.15rem; margin: .8rem 0 0; color: var(--texte-doux); }
.kicker { font: 600 .95rem/1 var(--sans); color: var(--c, var(--lauze)); margin: 0 0 .6rem; }

/* Crédit Commons */
.cc { font-size: .84rem; line-height: 1.5; color: var(--texte-doux); margin-top: .45rem; }
.fig { margin: 1.8rem 0; }

/* Mise en page à colonne latérale */
.page-grille { display: grid; grid-template-columns: 15rem minmax(0, 1fr); gap: 2.5rem; align-items: start; padding-block: 1.5rem 3rem; }
.lateral { position: sticky; top: 1rem; display: grid; gap: 1.4rem; }
.prose { max-width: var(--mesure); }
.prose > h2:first-child { margin-top: 0; }
.prose ul { padding-left: 1.2rem; }
.prose ul li::marker { color: var(--vigne); }
.lettrine > p:first-of-type::first-letter {
  font-family: var(--serif); font-weight: 700; color: var(--ocre);
  float: left; font-size: 4.1em; line-height: .8; padding: .08em .1em 0 0;
}

/* Table des matières */
.toc { font-size: .95rem; }
.toc h2 { font-size: 1.05rem; margin: 0 0 .5rem; }
.toc ol { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--filet); }
.toc li { margin: 0; }
.toc a { display: block; padding: .3rem .8rem; color: var(--encre); text-decoration: none; line-height: 1.35; }
.toc a:hover { color: var(--ocre); }

/* Encart Repères */
.reperes { background: var(--lauze-clair); border-top: 4px solid var(--ocre); padding: 1rem 1.1rem 1.1rem; }
.reperes .reperes-titre { font: 600 1.2rem/1.2 var(--serif); margin: 0 0 .7rem; }
.reperes .reperes-sous { font: 600 1rem/1.3 var(--serif); margin: 1rem 0 .2rem; }
.reperes dl { display: grid; grid-template-columns: auto 1fr; gap: .35rem .9rem; font-size: .95rem; margin: 0; }
.reperes dt { color: #424A55; font-weight: 600; }
.reperes dd { margin: 0; }
.reperes .avoir { list-style: none; padding: 0; margin: .9rem 0 0; font-size: .95rem; }
.reperes .avoir li { padding-left: 1.1rem; position: relative; margin-bottom: .3rem; }
.reperes .avoir li::before { content: ""; position: absolute; left: 0; top: .6em; width: 6px; height: 6px; border-radius: 50%; background: var(--vigne); }

/* Cards couronnées de la bande lombarde */
.grille-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); gap: 1.6rem; padding: 0; margin: 0; list-style: none; }
.card { position: relative; padding-top: 18px; background: var(--calcaire); }
.card::before { position: absolute; left: 0; right: 0; top: 0; }
.card a.lien-card { color: inherit; text-decoration: none; display: block; }
.card .corps { padding: .8rem .2rem 0; }
.card .meta { font-size: .9rem; display: flex; flex-wrap: wrap; gap: .1rem .8rem; align-items: baseline; }
.card .rub { font-weight: 600; color: var(--c); }
.card time { color: var(--texte-doux); }
.card h3 { font-size: 1.3rem; margin: .25rem 0 .4rem; }
.card h3 span { text-decoration: underline; text-decoration-color: transparent; text-underline-offset: .18em; text-decoration-thickness: .08em; }
.card a.lien-card:hover h3 span { text-decoration-color: var(--ocre); }
.card p { font-size: .98rem; line-height: 1.55; margin: 0; color: var(--texte-doux); }
.card[hidden] { display: none; }
.cat-eglises { --c: var(--c-eglises); } .cat-art-roman { --c: var(--c-art-roman); } .cat-cluny { --c: var(--c-cluny); }
.cat-spiritualite { --c: var(--c-spiritualite); } .cat-liturgie { --c: var(--c-liturgie); } .cat-visiter { --c: var(--c-visiter); }

/* Filtre de catégories */
.filtre { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1.6rem; padding: 0; list-style: none; }
.filtre button { font: 500 .95rem var(--sans); background: transparent; color: var(--encre); border: 1.5px solid var(--lauze); padding: .4rem .95rem; cursor: pointer; border-radius: 2px; }
.filtre button:hover { border-color: var(--ocre); }
.filtre button[aria-pressed="true"] { background: var(--ocre); border-color: var(--ocre); color: #fff; }

/* FAQ, sources, articles liés */
.faq details { border-top: 1px solid var(--filet); padding: .8rem 0; }
.faq details:last-child { border-bottom: 1px solid var(--filet); }
.faq summary { cursor: pointer; font: 600 1.1rem/1.35 var(--serif); }
.faq summary::marker { color: var(--ocre); }
.faq details p { margin: .6rem 0 0; }
.sources { font-size: .95rem; }
.sources ul { padding-left: 1.2rem; }
.sources ul li::marker { color: var(--vigne); }
.verifie { color: var(--texte-doux); font-size: .92rem; }
.lies ul { padding: 0; list-style: none; display: grid; gap: .5rem; }
.lies li a { font: 600 1.1rem/1.35 var(--serif); }

/* Pied de page */
.site-footer { margin-top: 3rem; background: var(--lauze); color: #fff; position: relative; padding-top: 14px; }
.site-footer::before { position: absolute; top: 0; left: 0; right: 0; --c: var(--calcaire); transform: scaleY(-1); }
.site-footer .wrap { padding-block: 1.8rem 2rem; display: grid; gap: 1.2rem; }
.site-footer a { color: #fff; }
.site-footer nav ul { display: flex; flex-wrap: wrap; gap: .3rem 1.4rem; list-style: none; padding: 0; margin: 0; }
.site-footer p { margin: 0; max-width: 70ch; font-size: .96rem; }

.section { padding-block: 2.2rem; }
.section > .wrap > h2:first-child { margin-top: 0; margin-bottom: 1.2rem; }

@media (max-width: 54rem) {
  .page-grille { grid-template-columns: minmax(0, 1fr); gap: 1.4rem; }
  .lateral { position: static; }
  .toc { order: 2; }
  body { font-size: 1.03rem; }
  .lettrine > p:first-of-type::first-letter { font-size: 3.6em; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }

/* ---- Prompt 02 : pages ---- */
.prose table { display: block; overflow-x: auto; border-collapse: collapse; font-size: .95rem; margin: 0 0 1.4rem; max-width: 100%; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: .5rem .7rem; border-bottom: 1px solid var(--filet); }
.prose thead th { border-bottom: 2px solid var(--lauze); font-family: var(--serif); background: var(--lauze-clair); }
.prose figure.fig { margin: 1.8rem 0; }
.prose img { height: auto; }
.page-simple { padding-block: 1.6rem 3rem; }
.page-simple h1 { margin-bottom: 1.2rem; max-width: 24ch; }
.page-simple .prose { max-width: var(--mesure); }
.wrap-large .prose, .prose-large { max-width: none; }

.rubriques { display: flex; flex-wrap: wrap; gap: .6rem; list-style: none; padding: 0; margin: 0; }
.rubriques a { display: inline-block; padding: .45rem 1rem; border: 1.5px solid var(--c, var(--lauze)); color: var(--c, var(--encre)); text-decoration: none; font-weight: 600; border-radius: 2px; }
.rubriques a:hover { background: var(--c, var(--lauze)); color: #fff; }
.accueil-intro { display: grid; gap: 2rem; }
.accueil-intro .prose { max-width: 70ch; }
.section-carte { display: grid; grid-template-columns: minmax(0, 30rem) minmax(0, 1fr); gap: 2.4rem; align-items: start; }
.liste-communes { columns: 2; column-gap: 1.6rem; list-style: none; padding: 0; margin: 0 0 1.1rem; }
.liste-communes li { break-inside: avoid; margin-bottom: .35rem; }
.suite { margin-top: 1.4rem; }

/* Carte SVG */
.carte { margin: 0 auto 1.6rem; max-width: 32rem; }
.carte svg { width: 100%; height: auto; display: block; }
.carte-fond { fill: var(--lauze-clair); stroke: var(--filet); stroke-width: 1; }
.carte .pt { cursor: pointer; }
.carte .pt text { font: 500 13.5px var(--sans); fill: var(--encre); }
.carte .pt .rond { fill: var(--ocre); stroke: #fff; stroke-width: 2; }
.carte .pt .zone { fill: transparent; }
.carte .pt .trait { stroke: var(--lauze); stroke-width: 1; opacity: .55; }
.carte .pt:hover text, .carte .pt:focus-visible text { fill: var(--ocre); text-decoration: underline; }
.carte .pt:hover .rond, .carte .pt:focus-visible .rond { fill: var(--c-cluny); r: 8; }
.carte .pt:focus-visible { outline: none; }
.carte .pt:focus-visible .zone { stroke: var(--ocre); stroke-width: 3; fill: rgba(154, 59, 38, .12); }
.carte .pt-repere rect { fill: var(--lauze); }
.carte .pt-repere text { font: italic 400 13px var(--sans); fill: #424A55; }
.carte-compacte svg { max-height: 34rem; }

.filtre-etat { font-size: .92rem; color: var(--texte-doux); margin: -.8rem 0 1.4rem; min-height: 1.4em; }
.filtre-zone .filtre { margin-bottom: 1.2rem; }
.btn-envoi { font: 600 1rem var(--sans); background: var(--ocre); color: #fff; border: 0; padding: .7rem 1.6rem; cursor: pointer; border-radius: 2px; }
.btn-envoi:hover { background: var(--c-cluny); }
.btn-envoi[disabled] { opacity: .6; cursor: wait; }
.contact-form { display: grid; gap: 1.1rem; max-width: 36rem; margin-top: 1.6rem; }
.contact-form .form-group { display: grid; gap: .35rem; }
.contact-form label { font-weight: 600; font-size: .96rem; }
.contact-form input[type="text"], .contact-form input[type="email"], .contact-form select, .contact-form textarea {
  width: 100%; font: inherit; padding: .65rem .8rem; background: #fff; color: var(--encre); border: 1.5px solid var(--lauze); border-radius: 2px;
}
.contact-form .piege { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-form .statut { min-height: 1.5em; font-weight: 500; margin: 0; }
.credits-table { font-size: .9rem; }
.credits-table td:first-child { min-width: 12rem; }
.liens-404 { columns: 2; column-gap: 2rem; list-style: none; padding: 0; }
.liens-404 li { margin-bottom: .6rem; }

@media (max-width: 54rem) {
  .section-carte { grid-template-columns: minmax(0, 1fr); }
  .liens-404 { columns: 1; }
}
.fig-commons .cc { padding-top: .1rem; }
.fiche .reperes { margin-bottom: 0; }
