/* Etxe Corsica
   Couleurs du logo uniquement : noir, rouge et vert de l'ikurriña, papier. */

:root {
  --papier: #f3efe6;
  --encre: #141414;
  --gris: #6b6660;
  --filet: #cfc9bd;
  --rouge: #c32316;
  --vert: #21971c;
  --serif: "Newsreader", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --max: 1080px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--papier);
  color: var(--encre);
  font-family: var(--serif);
  font-size: 1.1875rem;
  line-height: 1.5;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--rouge); }
h1, h2, h3 { font-weight: 500; line-height: 1.1; margin: 0; }
p { margin: 0 0 1em; }

.container { width: min(100% - 2.5rem, var(--max)); margin-inline: auto; }

.skip-link { position: absolute; left: 1rem; top: -4rem; background: var(--encre); color: #fff; padding: .5rem 1rem; }
.skip-link:focus { top: 1rem; }

/* Interface : petites capitales en sans */
.ui, .nav, .nav-toggle, .dateline, .num, .step-status, .form label, .form-legal, .form-status, .btn, .footer-links, .footer-bottom {
  font-family: var(--sans);
}

.btn {
  display: inline-block;
  background: var(--encre);
  color: #fff;
  text-decoration: none;
  padding: .8rem 1.4rem;
  font-size: .95rem;
  font-weight: 500;
  letter-spacing: .01em;
  border: 1px solid var(--encre);
  cursor: pointer;
}
.btn:hover { background: var(--rouge); border-color: var(--rouge); color: #fff; }
.btn:focus-visible { outline: 2px solid var(--rouge); outline-offset: 3px; }
.btn[disabled] { opacity: .5; cursor: progress; }
.link-plain { margin-left: 1.5rem; }

/* En-tête */
.site-header { border-bottom: 1px solid var(--encre); background: var(--papier); }
.nav-wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .9rem 0; }
.brand { display: inline-flex; align-items: center; gap: .9rem; text-decoration: none; }
.brand:hover { color: inherit; }
.brand img { flex: 0 0 auto; }
.brand-name { font-size: 1.6rem; font-weight: 500; letter-spacing: -.01em; }
.nav { display: flex; align-items: center; gap: 1.75rem; font-size: .95rem; }
.nav a { text-decoration: none; }
.nav a:hover { text-decoration: underline; }
.nav-cta { color: var(--rouge); font-weight: 500; }
.nav-toggle { display: none; background: none; border: 1px solid var(--encre); padding: .4rem .8rem; font-size: .9rem; cursor: pointer; color: inherit; }

@media (max-width: 800px) {
  .nav-toggle { display: inline-block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; z-index: 20;
    flex-direction: column; align-items: stretch; gap: 0; background: var(--papier); border-bottom: 1px solid var(--encre); }
  .nav.open { display: flex; }
  .nav a { padding: .9rem 1.25rem; border-top: 1px solid var(--filet); }
  .site-header { position: relative; }
}

/* Entrée */
.hero { padding: clamp(3rem, 8vw, 6.5rem) 0 clamp(3rem, 7vw, 5rem); border-bottom: 1px solid var(--encre); }
.dateline { font-size: .9rem; color: var(--gris); margin-bottom: 1.5rem; }
.hero h1 { font-size: clamp(2.4rem, 6vw, 4.6rem); max-width: 18em; letter-spacing: -.015em; }
.hero h1 em { font-style: italic; color: var(--rouge); }
.lead { font-size: clamp(1.25rem, 2.2vw, 1.5rem); max-width: 34em; margin-top: 1.6rem; }
.hero-actions { margin-top: 2rem; display: flex; align-items: center; flex-wrap: wrap; gap: .5rem; }

/* Sections en deux colonnes : titre à gauche, contenu à droite */
.section { padding: clamp(2.5rem, 6vw, 4.5rem) 0; border-bottom: 1px solid var(--encre); }
.section-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 2rem 4rem; }
.section-side { position: sticky; top: 1.5rem; align-self: start; }
.num { color: var(--rouge); font-size: .9rem; margin-bottom: .4rem; }
.section-side h2 { font-size: clamp(1.9rem, 3.5vw, 2.6rem); }
.side-note { font-size: 1rem; color: var(--gris); margin-top: 1rem; max-width: 24em; }
.side-note a { color: var(--encre); }
.section-body { max-width: 40em; }

@media (max-width: 800px) {
  .section-grid { grid-template-columns: 1fr; gap: 1.25rem; }
  .section-side { position: static; }
}

.prose p { margin-bottom: 1.2em; }
blockquote { margin: 2.5rem 0 0; padding-left: 1.5rem; border-left: 2px solid var(--rouge); }
blockquote p { font-style: italic; font-size: 1.25rem; }
blockquote footer { font-family: var(--sans); font-size: .9rem; color: var(--gris); }

.list-plain { list-style: none; margin: 0; padding: 0; }
.list-plain li { padding: 1.1rem 0; border-top: 1px solid var(--filet); }
.list-plain li:first-child { border-top: 0; padding-top: 0; }
.list-plain strong { font-weight: 600; }

.steps { margin: 0; padding: 0; list-style: none; counter-reset: etape; }
.steps li { position: relative; padding: 1.25rem 0 1.25rem 3rem; border-top: 1px solid var(--filet); counter-increment: etape; }
.steps li:first-child { border-top: 0; padding-top: 0; }
.steps li::before { content: counter(etape) "."; position: absolute; left: 0; top: 1.25rem; font-size: 1.4rem; color: var(--gris); }
.steps li:first-child::before { top: 0; }
.steps h3 { font-size: 1.4rem; margin-bottom: .4rem; }
.steps p:last-child { margin-bottom: 0; }
.step-status { font-size: .85rem; color: var(--gris); }
.steps .done h3 { color: var(--gris); }
.steps .current::before { color: var(--vert); }
.steps .current .step-status { color: var(--vert); font-weight: 500; }

/* Formulaire */
.form { max-width: 34em; }
.field { margin-bottom: 1.25rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; gap: 0; } }
.form label { display: block; font-size: .85rem; margin-bottom: .35rem; }
.form .optional { color: var(--gris); }
.form input[type="text"], .form input[type="email"], .form select, .form textarea {
  width: 100%; padding: .6rem .7rem; border: 1px solid var(--encre); border-radius: 0; background: #fff;
  font: inherit; font-size: 1.05rem; color: var(--encre);
}
.form select { height: 2.75rem; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--rouge); outline-offset: -1px; }
.form input.invalid, .form select.invalid { border-color: var(--rouge); }
.form textarea { resize: vertical; }
.field-check { display: flex; gap: .6rem; align-items: baseline; margin-bottom: 1.25rem; }
.field-check input { accent-color: var(--encre); }
.field-check label { font-family: var(--serif); font-size: 1.05rem; margin: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-legal { font-size: .85rem; color: var(--gris); max-width: 32em; }
.form-status { margin-top: 1rem; font-size: .95rem; min-height: 1.4em; }
.form-status.ok { color: var(--vert); }
.form-status.err { color: var(--rouge); }

/* Questions */
.faq { margin: 0; }
.faq dt { font-size: 1.3rem; font-weight: 500; padding-top: 1.25rem; border-top: 1px solid var(--filet); }
.faq dt:first-child { border-top: 0; padding-top: 0; }
.faq dd { margin: .5rem 0 1.25rem; }

/* Fin */
.closing { padding: clamp(3rem, 8vw, 6rem) 0; }
.closing-text { font-size: clamp(2rem, 5vw, 3.4rem); font-style: italic; margin-bottom: 1.5rem; }

/* Pied de page */
.site-footer { background: var(--encre); color: #d9d4ca; padding: 3rem 0 1.5rem; font-size: 1rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: #fff; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; padding-bottom: 2rem; border-bottom: 1px solid #3a3a3a; }
.footer-grid p { margin-top: 1rem; }
.brand-footer { color: #fff; }
.footer-links { list-style: none; margin: 0; padding: 0; font-size: .95rem; }
.footer-links li { margin-bottom: .5rem; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; padding-top: 1.25rem; font-size: .85rem; color: #a39d92; }
.footer-bottom p { margin: 0; }
.footer-lang { font-family: var(--serif); font-style: italic; }
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr; gap: 1.25rem; } }

/* Pages secondaires */
.page { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.page .container { max-width: 44em; }
.page h1 { font-size: clamp(2rem, 4.5vw, 3rem); margin-bottom: 1.25rem; }
.page h2 { font-size: 1.5rem; margin: 2rem 0 .6rem; }
.section-intro { font-size: 1.25rem; }
.eyebrow { font-family: var(--sans); font-size: .9rem; color: var(--rouge); margin-bottom: .75rem; }

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

/* ---------- Blog ---------- */
.fil { font-family: var(--sans); font-size: .85rem; color: var(--gris); margin-bottom: 1.5rem; }
.fil a { color: var(--gris); text-decoration: none; }
.fil a:hover { color: var(--rouge); }
.page-blog .container { max-width: var(--max); }
.tags-nav { font-family: var(--sans); font-size: .9rem; margin: 1.5rem 0 2.5rem; display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; }
.tags-nav a { text-decoration: none; color: var(--gris); }
.tags-nav a[aria-current], .tags-nav a:hover { color: var(--encre); text-decoration: underline; }

.avenir { padding: 1.5rem 0 .5rem; border-top: 1px solid var(--encre); border-bottom: 1px solid var(--encre); margin-bottom: 2.5rem; }
.avenir h2, .titre-liste { font-size: 1rem; font-family: var(--sans); color: var(--rouge); margin-bottom: 1rem; }
.titre-liste { margin-bottom: 0; }

.articles-liste { list-style: none; margin: 0; padding: 0; }
.articles-liste li { padding: 1.1rem 0; border-top: 1px solid var(--filet); }
.articles-liste li:first-child { border-top: 0; padding-top: 0; }
.articles-liste h3 { font-size: 1.4rem; margin-bottom: .3rem; }
.articles-liste h3 a, .articles-cartes h2 a, .prochain h3 a { text-decoration: none; }
.articles-liste h3 a:hover, .articles-cartes h2 a:hover, .prochain h3 a:hover { text-decoration: underline; color: inherit; }
.articles-liste p:last-child { margin: 0; }
.article-date { font-family: var(--sans); font-size: .85rem; color: var(--gris); margin-bottom: .3rem; }

.prochain { padding: 1.25rem 1.5rem; border: 1px solid var(--encre); margin-bottom: 2rem; }
.prochain-label { font-family: var(--sans); font-size: .85rem; color: var(--vert); font-weight: 500; margin-bottom: .4rem; }
.prochain h3 { font-size: 1.5rem; margin-bottom: .3rem; }
.prochain-date { font-family: var(--sans); font-size: .95rem; margin: 0; }

.articles-cartes { list-style: none; margin: 0; padding: 0; }
.article-carte { display: grid; grid-template-columns: 320px 1fr; gap: 2rem; padding: 2rem 0; border-top: 1px solid var(--filet); }
.article-carte:first-child { border-top: 0; padding-top: 0; }
.article-carte h2 { font-size: 1.7rem; margin-bottom: .5rem; }
.article-carte p:last-child { margin: 0; }
.article-vignette img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }
.article-evenement { font-family: var(--sans); font-size: .9rem; color: var(--vert); }
@media (max-width: 760px) { .article-carte { grid-template-columns: 1fr; gap: 1rem; } }

.pagination { display: flex; justify-content: space-between; align-items: center; gap: 1rem; font-family: var(--sans); font-size: .9rem; margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--encre); }

/* Article */
.article .container { max-width: 44em; }
.article-entete h1 { margin-bottom: 1rem; }
.article-chapo { font-size: 1.3rem; color: #3a3631; }
.encart-evenement { border: 1px solid var(--encre); padding: 1.25rem 1.5rem; margin: 1.5rem 0 2rem; font-size: 1rem; }
.encart-titre { font-family: var(--sans); font-size: .85rem; color: var(--rouge); font-weight: 500; margin-bottom: .75rem; }
.encart-evenement dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: .4rem 1.25rem; }
.encart-evenement dt { font-family: var(--sans); font-size: .85rem; color: var(--gris); padding-top: .15rem; }
.encart-evenement dd { margin: 0; }
.encart-evenement p:last-child { margin: 1.25rem 0 0; }
.article-couverture { margin: 0 0 2rem; }
.article-couverture img, .article-corps figure img { width: 100%; height: auto; }
.article-corps figure { margin: 2rem 0; }
.article-corps figcaption { font-family: var(--sans); font-size: .85rem; color: var(--gris); margin-top: .5rem; }
.article-corps h2 { font-size: 1.7rem; margin: 2.25rem 0 .75rem; }
.article-corps h3 { font-size: 1.3rem; margin: 1.75rem 0 .5rem; }
.article-corps ul, .article-corps ol { padding-left: 1.4rem; margin: 0 0 1.2em; }
.article-corps li { margin-bottom: .35em; }
.article-corps blockquote { margin: 1.5rem 0; }
.article-corps hr { border: 0; border-top: 1px solid var(--filet); margin: 2rem 0; }
.article-corps code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .85em; background: #e9e3d6; padding: .1em .3em; }
.galerie { display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem; margin: 2rem 0; }
.galerie img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
@media (max-width: 560px) { .galerie { grid-template-columns: 1fr; } }
.article-pied { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--encre); }
.article-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: 1.5rem; font-size: 1.05rem; }
.article-nav a { text-decoration: none; }
.article-nav a:hover { text-decoration: underline; color: inherit; }
.article-nav a[rel="next"] { text-align: right; grid-column: 2; }
.article-nav span { display: block; font-family: var(--sans); font-size: .8rem; color: var(--gris); }
@media (max-width: 560px) { .article-nav { grid-template-columns: 1fr; } .article-nav a[rel="next"] { text-align: left; grid-column: auto; } }
.article-carte > div:only-child { grid-column: 1 / -1; max-width: 44em; }
