/* polices du site, servies localement */
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 400; font-display: swap; src: url(assets/fonts/barlow-condensed-latin-ext-400.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; }
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 400; font-display: swap; src: url(assets/fonts/barlow-condensed-latin-400.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: 'Barlow Condensed'; font-style: normal; font-weight: 700; font-display: swap; src: url(assets/fonts/barlow-condensed-latin-ext-700.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; }
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 700; font-display: swap; src: url(assets/fonts/barlow-condensed-latin-700.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 {
  --aoe-bg: #F3EFE6;
  --aoe-surface: #DCE8E1;
  --aoe-text: #2A1A12;
  --aoe-muted: #5A4538;
  --aoe-accent: #8A3F1B;
  --aoe-accent2: #2F6F62;
  --aoe-line: #C9BBA6;
  --aoe-white: #FFFFFF;
  --aoe-radius: 6px;
  --aoe-display: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", Impact, sans-serif;
  --aoe-body: "Source Sans 3", "Source Sans Pro", "Segoe UI", Calibri, Helvetica, Arial, sans-serif;
}

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

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

body {
  margin: 0;
  background: var(--aoe-bg);
  color: var(--aoe-text);
  font-family: var(--aoe-body);
  font-size: 1.0625rem;
  line-height: 1.55;
  overflow-wrap: break-word;
}

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

a {
  color: var(--aoe-accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--aoe-text);
}

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

/* En-tête */
.aoe-header {
  background: var(--aoe-text);
  color: var(--aoe-bg);
  border-bottom: 4px solid var(--aoe-accent);
}

.aoe-header-inner {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
}

.aoe-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--aoe-display);
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1;
  color: var(--aoe-bg);
  text-decoration: none;
}

.aoe-brand:hover {
  color: var(--aoe-surface);
}

.aoe-brand svg {
  flex: none;
  width: 1.7rem;
  height: 1.7rem;
}

.aoe-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
}

.aoe-nav a {
  display: inline-block;
  padding: 0.35rem 0;
  color: var(--aoe-surface);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid var(--aoe-muted);
}

.aoe-nav a:hover {
  color: var(--aoe-white);
  border-bottom-color: var(--aoe-surface);
}

.aoe-header :focus-visible,
.aoe-footer :focus-visible {
  outline-color: var(--aoe-surface);
}

/* Structure principale */
.aoe-main {
  max-width: 80rem;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3rem;
}

h1,
h2,
h3 {
  font-family: var(--aoe-display);
  font-weight: 700;
  line-height: 1.04;
  margin: 0;
  color: var(--aoe-text);
}

/* Premier écran : grille asymétrique */
.aoe-hero {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
  margin-bottom: 2.5rem;
}

.aoe-hero-photo {
  margin: 0;
  border: 1px solid var(--aoe-line);
  border-radius: var(--aoe-radius);
  overflow: hidden;
  background: var(--aoe-surface);
}

.aoe-hero-photo img {
  width: 100%;
  height: auto;
}

.aoe-hero-title {
  background: var(--aoe-bg);
  border-top: 4px solid var(--aoe-accent);
  padding: 1rem 0 0;
}

.aoe-hero-title h1 {
  font-size: clamp(2.3rem, 6vw, 3.9rem);
  color: var(--aoe-accent);
  letter-spacing: -0.005em;
}

.aoe-lede {
  margin: 1rem 0 0;
  font-size: 1.2rem;
  line-height: 1.5;
}

.aoe-cta {
  display: inline-block;
  margin-top: 1.1rem;
  padding: 0.65rem 1.1rem;
  background: var(--aoe-accent);
  color: var(--aoe-white);
  font-weight: 700;
  text-decoration: none;
  border-radius: var(--aoe-radius);
  border: 1px solid var(--aoe-accent);
  transition: background-color 0.2s ease;
}

.aoe-cta:hover {
  background: var(--aoe-text);
  color: var(--aoe-white);
}

.aoe-gauges {
  background: var(--aoe-surface);
  border: 1px solid var(--aoe-accent2);
  border-radius: var(--aoe-radius);
  padding: 0.9rem 1rem;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem 1rem;
}

.aoe-gauges div {
  border-left: 3px solid var(--aoe-accent);
  padding-left: 0.65rem;
}

.aoe-gauges dt {
  font-family: var(--aoe-display);
  font-size: 2.3rem;
  font-weight: 700;
  line-height: 1;
  color: var(--aoe-accent);
}

.aoe-gauges dd {
  margin: 0.2rem 0 0;
  font-size: 0.95rem;
  line-height: 1.35;
  color: var(--aoe-text);
}

/* Sections */
.aoe-section {
  border-top: 2px solid var(--aoe-text);
  padding-top: 0.9rem;
  margin-top: 2.25rem;
}

.aoe-section > h2 {
  font-size: clamp(1.8rem, 3.6vw, 2.5rem);
  color: var(--aoe-accent);
  margin-bottom: 0.9rem;
  max-width: 40rem;
}

.aoe-cols p,
.aoe-section > p {
  margin: 0 0 0.9rem;
}

.aoe-cols h3 {
  font-size: 1.45rem;
  color: var(--aoe-accent2);
  margin: 0.4rem 0 0.35rem;
  break-after: avoid;
}

.aoe-cols ul,
.aoe-cols ol {
  margin: 0 0 0.9rem;
  padding-left: 1.3rem;
}

.aoe-cols li {
  margin-bottom: 0.4rem;
}

/* Colonnes de presse */
@media (min-width: 62rem) {
  .aoe-cols {
    column-count: 2;
    column-gap: 2.5rem;
    column-rule: 1px solid var(--aoe-line);
    text-align: left;
    hyphens: auto;
  }

  .aoe-cols p {
    orphans: 3;
    widows: 3;
  }

  .aoe-note,
  .aoe-ledger,
  .aoe-steps li {
    break-inside: avoid;
  }
}

/* Encadré */
.aoe-note {
  background: var(--aoe-surface);
  border: 1px solid var(--aoe-accent2);
  border-left: 6px solid var(--aoe-accent2);
  border-radius: var(--aoe-radius);
  padding: 0.8rem 1rem;
  margin: 0 0 1rem;
}

.aoe-note p {
  margin: 0 0 0.4rem;
}

.aoe-note p:last-child {
  margin-bottom: 0;
}

.aoe-note-title {
  font-family: var(--aoe-display);
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.1;
  color: var(--aoe-accent2);
}

/* Registre de données */
.aoe-ledger {
  margin: 0 0 1rem;
  border: 1px solid var(--aoe-line);
  border-radius: var(--aoe-radius);
  overflow: hidden;
}

.aoe-ledger div {
  padding: 0.6rem 0.9rem;
  border-bottom: 1px solid var(--aoe-line);
}

.aoe-ledger div:last-child {
  border-bottom: 0;
}

.aoe-ledger dt {
  font-family: var(--aoe-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--aoe-accent);
  line-height: 1.15;
}

.aoe-ledger dd {
  margin: 0.15rem 0 0;
}

/* Étapes */
.aoe-steps {
  list-style: none;
  padding-left: 0;
  counter-reset: aoe-step;
}

.aoe-steps li {
  counter-increment: aoe-step;
  position: relative;
  padding: 0.5rem 0 0.5rem 2.6rem;
  border-bottom: 1px solid var(--aoe-line);
}

.aoe-steps li::before {
  content: counter(aoe-step);
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: var(--aoe-radius);
  background: var(--aoe-accent);
  color: var(--aoe-white);
  font-family: var(--aoe-display);
  font-weight: 700;
  font-size: 1.2rem;
  line-height: 1.9rem;
  text-align: center;
}

/* Tableau */
.aoe-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--aoe-accent2);
  border-radius: var(--aoe-radius);
  background: var(--aoe-surface);
  max-width: 100%;
}

.aoe-table {
  width: 100%;
  min-width: 46rem;
  border-collapse: collapse;
  font-size: 1rem;
}

.aoe-table caption {
  text-align: left;
  padding: 0.7rem 0.9rem;
  font-family: var(--aoe-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--aoe-text);
}

.aoe-table th,
.aoe-table td {
  text-align: left;
  vertical-align: top;
  padding: 0.6rem 0.9rem;
  border-top: 1px solid var(--aoe-accent2);
}

.aoe-table thead th {
  background: var(--aoe-accent2);
  color: var(--aoe-white);
  font-weight: 700;
  border-top: 0;
}

.aoe-table tbody th {
  font-family: var(--aoe-display);
  font-size: 1.2rem;
  color: var(--aoe-accent);
  line-height: 1.15;
}

/* Figure */
.aoe-figure {
  margin: 0 0 1rem;
}

.aoe-figure img {
  border-radius: var(--aoe-radius);
  border: 1px solid var(--aoe-line);
}

.aoe-figure figcaption {
  font-size: 0.9rem;
  color: var(--aoe-muted);
  padding-top: 0.35rem;
}

/* Bloc de questions-réponses */
.aoe-qa {
  display: grid;
  gap: 0.9rem;
}

.aoe-qa-item {
  background: var(--aoe-surface);
  border: 1px solid var(--aoe-accent2);
  border-radius: var(--aoe-radius);
  padding: 0.9rem 1.1rem;
}

.aoe-qa-item h3 {
  font-size: 1.5rem;
  color: var(--aoe-accent);
  margin-bottom: 0.4rem;
}

.aoe-qa-item p {
  margin: 0;
}

@media (min-width: 62rem) {
  .aoe-qa {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Pied de page */
.aoe-footer {
  background: var(--aoe-text);
  color: var(--aoe-bg);
  border-top: 4px solid var(--aoe-accent);
  font-size: 0.95rem;
}

.aoe-footer-inner {
  max-width: 80rem;
  margin: 0 auto;
  padding: 1.25rem;
  display: grid;
  gap: 0.6rem 2rem;
}

.aoe-footer-name {
  font-family: var(--aoe-display);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
}

.aoe-footer a {
  color: var(--aoe-surface);
}

.aoe-footer a:hover {
  color: var(--aoe-white);
}

.aoe-footer p {
  margin: 0;
}

/* Page de mentions légales */
.aoe-legal {
  max-width: 46rem;
}

.aoe-legal h1 {
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  color: var(--aoe-accent);
  margin-bottom: 1rem;
}

.aoe-legal h2 {
  font-size: 1.6rem;
  color: var(--aoe-accent2);
  margin: 1.4rem 0 0.4rem;
}

/* Grands écrans */
@media (min-width: 62rem) {
  body {
    font-size: 1.125rem;
  }

  .aoe-hero {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    grid-template-rows: auto 1fr;
    grid-template-areas:
      "photo title"
      "photo gauges";
    gap: 1.25rem 1.75rem;
  }

  .aoe-hero-photo {
    grid-area: photo;
    position: relative;
    min-height: 100%;
  }

  .aoe-hero-photo img {
    height: 100%;
    object-fit: cover;
  }

  .aoe-hero-title {
    grid-area: title;
  }

  .aoe-gauges {
    grid-area: gauges;
    align-content: start;
  }

  .aoe-footer-inner {
    grid-template-columns: auto auto 1fr;
    align-items: center;
  }
}

@media (min-width: 100rem) {
  .aoe-main,
  .aoe-header-inner,
  .aoe-footer-inner {
    max-width: 92rem;
  }
}

@media (max-width: 30rem) {
  .aoe-gauges dt {
    font-size: 2rem;
  }

  .aoe-brand {
    font-size: 1.4rem;
  }
}

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