/* ============================================================
   Variables — Design tokens centralisés
   ============================================================ */
:root {
  /* Couleurs */
  --color-bg:          #FAF7EF;
  --color-text:        #404643;
  --color-rule:        #D6D1C7;

  /* Titres terre cuite
     H1 (#D16A47) : ratio 3,29:1 sur fond crème → grand titre ≥ 36 px ✓
     H2 (#B84C26) : ratio 4,63:1 sur fond crème → texte courant et grand titre ✓
     H2 contact (#923520) : ratio 4,22:1 sur fond bleu-vert → grand titre ≥ 24 px ✓ */
  --color-h1:               #D16A47;
  --color-heading:          #B84C26;
  --color-heading-on-teal:  #923520;

  /* Vert — liens et bouton
     #3B6952 : ratio 5,5:1 sur fond crème ✓
     #2A5040 : ratio 4,88:1 sur fond bleu-vert ✓ */
  --color-green:          #3B6952;
  --color-green-dark:     #2E5341;
  --color-link-on-teal:   #2A5040;

  /* Section contact */
  --color-contact-bg:  #D0E6E3;

  /* Typographies */
  --font-heading: 'Chau Philomene One', serif;
  --font-body:    Avenir, Arial, sans-serif;

  /* Mise en page */
  --max-width:  70rem;
  --padding-x:  clamp(1rem, 4vw, 2rem);

  /* Espacements */
  --space-xs:  0.5rem;
  --space-sm:  0.75rem;
  --space-md:  1.25rem;
  --space-lg:  2rem;
  --space-xl:  3rem;
  --space-2xl: 4.5rem;

  /* Transitions */
  --transition: 150ms ease;

  /* Z-index */
  --z-skip: 100;
}

/* ============================================================
   Polices locales — Chau Philomene One (SIL OFL)
   ============================================================ */
@font-face {
  font-family: 'Chau Philomene One';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/chau-philomene-one-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6,
    U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC,
    U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Chau Philomene One';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/chau-philomene-one-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7,
    U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F,
    U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113,
    U+2C60-2C7F, U+A720-A7FF;
}

/* ============================================================
   Réinitialisation minimale
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ============================================================
   Lien d'évitement
   ============================================================ */
.skip-link {
  position: absolute;
  top: 0;
  left: var(--padding-x);
  z-index: var(--z-skip);
  background: var(--color-green);
  color: #fff;
  padding: 0.625rem 1rem;
  font-size: 1rem;
  text-decoration: none;
  transform: translateY(-100%);
}

.skip-link:focus {
  transform: translateY(0);
  outline: 3px solid #fff;
  outline-offset: 2px;
}

/* ============================================================
   Conteneur principal
   ============================================================ */
.container {
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--padding-x);
}

/* ============================================================
   Typographie — bases
   ============================================================ */
h1, h2 {
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: 1.15;
  margin-block: 0 var(--space-md);
}

h1 {
  font-size: clamp(2rem, 5.5vw, 2.75rem);
  color: var(--color-h1);
}

h2 {
  /* 1,5 rem = 24 px minimum → seuil « grand texte » WCAG ; couleur à 4,63:1 ✓ */
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  color: var(--color-heading);
}

p {
  margin-block: 0 var(--space-md);
  max-width: 65ch;
}

a {
  color: var(--color-green);
  text-decoration: underline;
  text-underline-offset: 0.15em;
  transition: color var(--transition);
}

a:hover {
  color: var(--color-green-dark);
}

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

/* ============================================================
   En-tête
   ============================================================ */
header {
  border-bottom: 1px solid var(--color-rule);
  padding-block: var(--space-xs);
}

.header-inner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-sm) var(--space-lg);
  justify-content: space-between;
}

.logo-link {
  display: inline-flex;
  flex-shrink: 0;
  text-decoration: none;
}

.logo-link img {
  height: 4rem;
  width: auto;
}

.logo-link:focus-visible {
  outline: 2px solid var(--color-green);
  outline-offset: 4px;
  border-radius: 2px;
}

@media (max-width: 767px) {
  header nav {
    display: none;
  }
}

/* Navigation */
.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0 var(--space-lg);
  align-items: center;
}

.nav-list a {
  color: var(--color-text);
  text-decoration: none;
  font-size: 1rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.nav-list a:hover {
  color: var(--color-green);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.nav-list a:focus-visible {
  outline: 2px solid var(--color-green);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ============================================================
   Sections — séparateur et espacement communs
   ============================================================ */
.section {
  border-top: 1px solid var(--color-rule);
  padding-block: var(--space-xl);
}

/* ============================================================
   Introduction
   ============================================================ */
.section-intro {
  padding-block: var(--space-xl);
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
}

.hero-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 2px;
}

@media (max-width: 767px) {
  .hero-container {
    grid-template-columns: 1fr;
  }

  .hero-image {
    order: -1;
  }
}

.intro-lead {
  font-size: 1.125rem;
  max-width: 55ch;
}

.cta-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-sm) var(--space-md);
  margin-top: var(--space-lg);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  background-color: var(--color-green);
  color: #fff;
  text-decoration: none;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-family: var(--font-body);
  min-height: 44px;
  transition: background-color var(--transition);
}

.btn-primary:hover {
  background-color: var(--color-green-dark);
  color: #fff;
}

.btn-primary:focus-visible {
  outline: 2px solid var(--color-green);
  outline-offset: 3px;
  color: #fff;
}

.cta-label {
  font-size: 1rem;
  color: var(--color-text);
}

/* ============================================================
   Les low-tech — principes en liste de définitions
   ============================================================ */
.principles {
  margin-block: var(--space-md) var(--space-lg);
  border-top: 1px solid var(--color-rule);
}

.principle {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: var(--space-md);
  padding-block: var(--space-md);
  border-bottom: 1px solid var(--color-rule);
  align-items: baseline;
}

.principle dt {
  font-weight: bold;
  color: var(--color-text);
}

.principle dd {
  margin: 0;
  color: var(--color-text);
  max-width: 55ch;
}

@media (max-width: 400px) {
  .principle {
    grid-template-columns: 1fr;
    gap: var(--space-xs);
  }
}

/* ============================================================
   Le bureau — liste des membres
   ============================================================ */
.members-list {
  list-style: none;
  margin: var(--space-md) 0 0;
  padding: 0;
  columns: 2;
  column-gap: var(--space-2xl);
}

.members-list li {
  padding-block: var(--space-xs);
  break-inside: avoid;
}

.member-role {
  color: var(--color-text);
}

@media (max-width: 480px) {
  .members-list {
    columns: 1;
  }
}

/* ============================================================
   Contact
   ============================================================ */
.contact-box {
  background-color: var(--color-contact-bg);
  padding: var(--space-xl);
}

.contact-box h2 {
  color: var(--color-heading-on-teal);
}

.contact-box p {
  margin-bottom: var(--space-xs);
}

.contact-box a {
  color: var(--color-link-on-teal);
}

.contact-box a:hover {
  color: #1E3D30;
}

.contact-box a:focus-visible {
  outline-color: var(--color-link-on-teal);
}

address {
  font-style: normal;
  line-height: 1.6;
  color: var(--color-text);
}

/* ============================================================
   Pied de page
   ============================================================ */
footer {
  border-top: 1px solid var(--color-rule);
  padding-block: var(--space-lg);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-sm) var(--space-lg);
}

.footer-inner p {
  margin: 0;
  max-width: none;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm) var(--space-lg);
  align-items: center;
}
