/* A3GJ SRL — feuille de style unique
   Direction : papier à en-tête. Fond ivoire, encre, un seul accent vert sapin. */

:root {
  --paper: #f7f5f0;
  --ink: #1b1d1f;
  --muted: #565a5f;
  --line: #d9d4c9;
  --accent: #1f4a3f;
  --accent-ink: #f7f5f0;

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --wrap: 68rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --space: clamp(4rem, 9vw, 7.5rem);
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0;
}

p, ul, dl, dd { margin: 0; }
ul { padding: 0; list-style: none; }

a { color: var(--accent); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

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

/* Lien d'évitement */
.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--ink);
  color: var(--paper);
  padding: 0.6rem 1rem;
  z-index: 10;
  text-decoration: none;
}
.skip:focus { top: 1rem; }

/* En-tête */
.site-header { border-bottom: 1px solid var(--line); }

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  padding-block: 1.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--serif);
  font-size: 1.6rem;
  letter-spacing: 0.08em;
  color: var(--ink);
  text-decoration: none;
  line-height: 1;
}
.brand-mark {
  width: 0.55rem;
  height: 0.55rem;
  background: var(--accent);
  transform: translateY(-0.05em);
}

.main-nav ul,
.lang ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
}
.main-nav a,
.lang a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.95rem;
  padding-block: 0.4rem;
  display: inline-block;
}
.main-nav a:hover,
.lang a:hover { text-decoration: underline; }

.lang ul { gap: 0 0.25rem; }
.lang a {
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  padding: 0.4rem 0.45rem;
  color: var(--muted);
}
.lang a[aria-current="true"] {
  color: var(--ink);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
}

.header-end {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

@media (max-width: 47.99rem) {
  .header-inner { padding-block: 1rem 0.5rem; }
  .main-nav {
    order: 3;
    width: 100%;
    border-top: 1px solid var(--line);
    padding-top: 0.25rem;
  }
  .main-nav ul { gap: 0 1.25rem; }
  .header-end { display: contents; }
  .lang { margin-right: -0.45rem; }
}

/* Introduction */
.intro { padding-block: clamp(4rem, 12vw, 9rem) var(--space); }

.eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.intro h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  max-width: 24ch;
}

.lede {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 2px solid var(--accent);
  display: inline-block;
  font-size: 1.125rem;
  color: var(--muted);
}

/* Sections à deux colonnes */
.section { padding-bottom: var(--space); }

.section-grid {
  display: grid;
  gap: 1.5rem;
  border-top: 1px solid var(--line);
  padding-top: 2rem;
}
@media (min-width: 48rem) {
  .section-grid { grid-template-columns: 1fr 3fr; gap: 3rem; }
}

.section-grid > h2 {
  font-size: clamp(1.6rem, 3vw, 2rem);
  scroll-margin-top: 2rem;
}
.section { scroll-margin-top: 1rem; }

.prose { max-width: 40rem; }
.prose p + p { margin-top: 1rem; }

/* Cartes d'activités */
.cards {
  display: grid;
  gap: 0;
}
@media (min-width: 40rem) {
  .cards { grid-template-columns: 1fr 1fr; column-gap: 2.5rem; }
}

.card {
  padding-block: 1.5rem 2rem;
  border-bottom: 1px solid var(--line);
}
.card:first-child { padding-top: 0; }
@media (min-width: 40rem) {
  .card:nth-child(2) { padding-top: 0; }
  .card:nth-last-child(-n + 2) { border-bottom: 0; }
}
@media (max-width: 39.99rem) {
  .card:last-child { border-bottom: 0; }
}

.card-num {
  display: block;
  font-family: var(--serif);
  color: var(--accent);
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  margin-bottom: 0.6rem;
}
.card h3 { font-size: 1.45rem; margin-bottom: 0.5rem; }
.card p { color: var(--muted); }

/* Encart Top Flop */
.feature {
  background: var(--accent);
  color: var(--accent-ink);
  padding: clamp(2rem, 6vw, 4rem);
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 48rem) {
  .feature { grid-template-columns: 1fr 2fr; gap: 3rem; align-items: end; }
}
.feature .eyebrow { color: #c9d6d0; margin-bottom: 1rem; }
.feature h2 { font-size: clamp(2.2rem, 5vw, 3.2rem); }
.feature p.desc { font-size: 1.15rem; max-width: 34rem; }

.button {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1.75rem;
  padding: 0.8rem 1.4rem;
  border: 1px solid var(--accent-ink);
  color: var(--accent-ink);
  text-decoration: none;
  font-size: 0.98rem;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.button:hover { background: var(--accent-ink); color: var(--accent); }
.feature :focus-visible { outline-color: var(--accent-ink); }

.feature .url {
  display: block;
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: #c9d6d0;
}

/* Listes de faits (à propos, contact, mentions) */
.facts {
  display: grid;
  gap: 0;
  margin-top: 2rem;
  border-top: 1px solid var(--line);
}
.facts > div {
  display: grid;
  gap: 0.15rem 2rem;
  padding-block: 0.9rem;
  border-bottom: 1px solid var(--line);
}
@media (min-width: 40rem) {
  .facts > div { grid-template-columns: 13rem 1fr; }
}
.facts dt { color: var(--muted); font-size: 0.95rem; }
.facts dd { overflow-wrap: anywhere; }
.prose + .facts { margin-top: 2rem; }
.facts.first { margin-top: 0; }

.big-link {
  font-family: var(--serif);
  font-size: clamp(1.25rem, 3vw, 1.6rem);
}

/* Pied de page */
.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 2.5rem 3rem;
  font-size: 0.9rem;
  color: var(--muted);
}
.footer-inner {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 48rem) {
  .footer-inner { grid-template-columns: 2fr 1fr; align-items: end; }
}
.footer-brand {
  font-family: var(--serif);
  font-size: 1.15rem;
  color: var(--ink);
  letter-spacing: 0.04em;
  margin-bottom: 0.4rem;
}
.footer-links { display: grid; gap: 0.35rem; }
@media (min-width: 48rem) {
  .footer-links { justify-items: end; text-align: right; }
}
.site-footer a { color: var(--ink); }

/* Pages de texte (mentions légales) */
.page-head { padding-block: clamp(3rem, 9vw, 6rem) 3rem; }
.page-head h1 { font-size: clamp(2rem, 5vw, 3rem); max-width: 22ch; }
.back { display: inline-block; margin-bottom: 2rem; font-size: 0.95rem; }

.legal h3 {
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 600;
  margin: 2rem 0 0.5rem;
}
.legal h3:first-child { margin-top: 0; }
.legal ul { list-style: disc; padding-left: 1.25rem; }
.legal li + li { margin-top: 0.35rem; }
.updated { margin-top: 2.5rem; font-size: 0.9rem; color: var(--muted); }

/* Page de choix de langue / 404 */
.center-page {
  min-height: 100vh;
  display: grid;
  place-content: center;
  text-align: center;
  gap: 1.5rem;
  padding: 2rem 1rem;
}
.center-page .brand { justify-content: center; font-size: 2.2rem; }
.lang-choice { display: flex; gap: 1.25rem; justify-content: center; flex-wrap: wrap; }
.lang-choice a { padding: 0.5rem 0.75rem; }
.center-page h1 { font-size: 1.5rem; }

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
