/* polices du site, servies localement */
@font-face { font-family: 'Nunito'; font-style: normal; font-weight: 400 900; font-display: swap; src: url(assets/fonts/nunito-latin-ext-400-900.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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Nunito'; font-style: normal; font-weight: 400 900; font-display: swap; src: url(assets/fonts/nunito-latin-400-900.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: 'Source Serif 4'; font-style: italic; font-weight: 400 800; font-display: swap; src: url(assets/fonts/source-serif-4-latin-ext-400-800-i.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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Source Serif 4'; font-style: italic; font-weight: 400 800; font-display: swap; src: url(assets/fonts/source-serif-4-latin-400-800-i.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: 'Source Serif 4'; font-style: normal; font-weight: 400 800; font-display: swap; src: url(assets/fonts/source-serif-4-latin-ext-400-800.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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Source Serif 4'; font-style: normal; font-weight: 400 800; font-display: swap; src: url(assets/fonts/source-serif-4-latin-400-800.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; }

:root {
  --aaa-bg: #F6F0E4;
  --aaa-surface: #ECE3D0;
  --aaa-text: #14261C;
  --aaa-muted: #4A5A4F;
  --aaa-accent: #A32F1D;
  --aaa-green: #1F4A36;
  --aaa-paper: #FFFFFF;
  --aaa-line: #14261C;
  --aaa-serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --aaa-sans: "Nunito", "Segoe UI", Arial, sans-serif;
}

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

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

body {
  margin: 0;
  background: var(--aaa-bg);
  color: var(--aaa-text);
  font-family: var(--aaa-serif);
  font-size: 1.125rem;
  line-height: 1.7;
  overflow-x: hidden;
}

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

a {
  color: var(--aaa-green);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--aaa-accent);
}

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

/* En-tête */
.aaa-header {
  border-top: 4px solid var(--aaa-green);
  border-bottom: 1px solid var(--aaa-line);
  background: var(--aaa-bg);
}

.aaa-header-in {
  max-width: 1280px;
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px 32px;
}

.aaa-brand {
  font-family: var(--aaa-sans);
  font-weight: 900;
  font-size: 1.5rem;
  letter-spacing: -0.01em;
  color: var(--aaa-green);
  text-decoration: none;
}

.aaa-brand:hover {
  color: var(--aaa-accent);
}

.aaa-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
}

.aaa-nav a {
  font-family: var(--aaa-sans);
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--aaa-text);
  text-decoration: none;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
}

.aaa-nav a:hover {
  border-bottom-color: var(--aaa-accent);
  color: var(--aaa-text);
}

/* Mise en page générale */
.aaa-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.aaa-main {
  display: block;
}

/* Première page : une de magazine */
.aaa-cover {
  padding: 40px 0 72px;
}

.aaa-folio {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  border-top: 1px solid var(--aaa-line);
  border-bottom: 1px solid var(--aaa-line);
  padding: 8px 0;
  margin-bottom: 40px;
  font-family: var(--aaa-sans);
  font-weight: 800;
  font-size: 0.95rem;
}

.aaa-folio-nr {
  color: var(--aaa-accent);
}

.aaa-cover-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 56px;
  align-items: stretch;
}

.aaa-cover-photo {
  position: relative;
  margin: 0;
  background: var(--aaa-green);
  min-height: 520px;
  overflow: hidden;
}

.aaa-cover-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
}

.aaa-cover-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8px 0;
}

.aaa-cover h1,
.aaa-page-head h1 {
  font-family: var(--aaa-sans);
  font-weight: 900;
  color: var(--aaa-green);
  margin: 0;
  letter-spacing: -0.02em;
}

.aaa-cover h1 {
  font-size: clamp(2.1rem, 4.6vw, 4rem);
  line-height: 1.06;
}

.aaa-line {
  display: block;
}

.aaa-ru {
  margin: 20px 0 0;
  padding-left: 14px;
  border-left: 4px solid var(--aaa-accent);
  font-family: var(--aaa-sans);
  font-weight: 600;
  font-size: 1.1rem;
  line-height: 1.45;
  color: var(--aaa-muted);
}

.aaa-lead {
  font-size: 1.28rem;
  line-height: 1.6;
  margin: 32px 0 0;
  max-width: 34em;
}

.aaa-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--aaa-line);
}

.aaa-facts li {
  flex: 1 1 160px;
  padding: 14px 18px 4px 0;
  font-size: 0.98rem;
  line-height: 1.45;
  color: var(--aaa-muted);
}

.aaa-facts strong {
  display: block;
  font-family: var(--aaa-sans);
  font-weight: 900;
  font-size: 2rem;
  line-height: 1.1;
  color: var(--aaa-accent);
}

/* En-tête de page intérieure */
.aaa-page-head {
  padding: 48px 0 24px;
  border-bottom: 1px solid var(--aaa-line);
}

.aaa-page-head h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.1;
  max-width: 20em;
}

/* Sections */
.aaa-section {
  padding: 64px 0;
  border-top: 1px solid var(--aaa-line);
}

.aaa-section-grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: 48px;
}

.aaa-section h2 {
  font-family: var(--aaa-sans);
  font-weight: 800;
  font-size: clamp(1.5rem, 2.4vw, 2.1rem);
  line-height: 1.2;
  color: var(--aaa-green);
  margin: 0;
  letter-spacing: -0.01em;
}

.aaa-section h3 {
  font-family: var(--aaa-sans);
  font-weight: 800;
  font-size: 1.2rem;
  margin: 28px 0 8px;
  color: var(--aaa-text);
}

.aaa-prose {
  max-width: 40em;
}

.aaa-prose p {
  margin: 0 0 1.2em;
}

.aaa-prose p:last-child {
  margin-bottom: 0;
}

/* Tableaux */
.aaa-table-wrap {
  overflow-x: auto;
  max-width: 100%;
  border-top: 3px solid var(--aaa-green);
  border-bottom: 1px solid var(--aaa-line);
  background: var(--aaa-paper);
}

.aaa-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 1rem;
  line-height: 1.5;
}

.aaa-table caption {
  text-align: left;
  font-family: var(--aaa-sans);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--aaa-muted);
  padding: 10px 14px;
  background: var(--aaa-surface);
  caption-side: top;
}

.aaa-table th,
.aaa-table td {
  text-align: left;
  vertical-align: top;
  padding: 12px 14px;
  border-bottom: 1px solid var(--aaa-surface);
}

.aaa-table thead th {
  font-family: var(--aaa-sans);
  font-weight: 800;
  background: var(--aaa-green);
  color: var(--aaa-paper);
  border-bottom: 0;
}

.aaa-table tbody th {
  font-family: var(--aaa-sans);
  font-weight: 800;
  color: var(--aaa-green);
  white-space: nowrap;
}

.aaa-table tbody tr:last-child th,
.aaa-table tbody tr:last-child td {
  border-bottom: 0;
}

/* Listes de définitions */
.aaa-defs {
  margin: 0;
  max-width: 44em;
}

.aaa-defs dt {
  font-family: var(--aaa-sans);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--aaa-green);
  padding-top: 18px;
  border-top: 1px solid var(--aaa-line);
}

.aaa-defs dt:first-child {
  border-top: 3px solid var(--aaa-green);
}

.aaa-defs dd {
  margin: 4px 0 18px;
}

.aaa-defs .aaa-defs-warn {
  color: var(--aaa-accent);
}

/* Étapes réelles */
.aaa-steps {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: aaa-step;
  max-width: 44em;
}

.aaa-steps li {
  counter-increment: aaa-step;
  position: relative;
  padding: 16px 0 16px 56px;
  border-top: 1px solid var(--aaa-line);
}

.aaa-steps li:last-child {
  border-bottom: 1px solid var(--aaa-line);
}

.aaa-steps li::before {
  content: counter(aaa-step);
  position: absolute;
  left: 0;
  top: 16px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--aaa-green);
  color: var(--aaa-paper);
  font-family: var(--aaa-sans);
  font-weight: 900;
}

/* Encadré */
.aaa-note {
  margin: 28px 0 0;
  padding: 18px 22px;
  background: var(--aaa-surface);
  border-left: 6px solid var(--aaa-accent);
  max-width: 44em;
}

.aaa-note p {
  margin: 0;
}

.aaa-note strong {
  font-family: var(--aaa-sans);
  font-weight: 800;
  color: var(--aaa-accent);
}

/* Figure */
.aaa-figure {
  margin: 0 0 32px;
}

.aaa-figure img {
  width: 100%;
  height: auto;
}

.aaa-figure figcaption {
  margin-top: 8px;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--aaa-muted);
}

/* Bloc de questions-réponses */
.aaa-qa {
  padding: 64px 0 80px;
  border-top: 4px solid var(--aaa-green);
}

.aaa-qa h2 {
  font-family: var(--aaa-sans);
  font-weight: 800;
  font-size: clamp(1.5rem, 2.4vw, 2.1rem);
  color: var(--aaa-green);
  margin: 0 0 28px;
  line-height: 1.2;
}

.aaa-qa-item {
  padding: 20px 0;
  border-top: 1px solid var(--aaa-line);
  max-width: 46em;
}

.aaa-qa-item:last-child {
  border-bottom: 1px solid var(--aaa-line);
}

.aaa-qa-q {
  font-family: var(--aaa-sans);
  font-weight: 800;
  font-size: 1.15rem;
  line-height: 1.35;
  margin: 0 0 8px;
}

.aaa-qa-a {
  margin: 0;
}

/* Pied de page */
.aaa-footer {
  background: var(--aaa-green);
  color: var(--aaa-paper);
  padding: 36px 0 40px;
  font-size: 0.98rem;
  line-height: 1.6;
}

.aaa-footer-in {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px 48px;
}

.aaa-footer a {
  color: var(--aaa-paper);
}

.aaa-footer a:hover {
  color: #F3C9BF;
}

.aaa-footer-name {
  font-family: var(--aaa-sans);
  font-weight: 900;
  font-size: 1.3rem;
  margin: 0 0 6px;
}

.aaa-footer p {
  margin: 0;
}

.aaa-credits {
  font-size: 0.88rem;
}

/* Écrans moyens et petits */
@media (max-width: 960px) {
  .aaa-cover-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .aaa-cover-photo {
    min-height: 0;
    aspect-ratio: 4 / 3;
  }

  .aaa-section-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .aaa-footer-in {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 560px) {
  body {
    font-size: 1.05rem;
  }

  .aaa-header-in,
  .aaa-wrap,
  .aaa-footer-in {
    padding-left: 18px;
    padding-right: 18px;
  }

  .aaa-cover {
    padding: 24px 0 48px;
  }

  .aaa-section {
    padding: 44px 0;
  }

  .aaa-lead {
    font-size: 1.14rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
