/* ---------------------------------------------------------------------------
   Feuille de style du fil de news.

   Mêmes tokens que la vitrine Astro (plan de design §1 à §5). Les polices sont
   chargées depuis /fonts/, servi par la vitrine : le navigateur réutilise le
   même fichier en cache d'une page à l'autre au lieu de le télécharger deux
   fois. Toute évolution de la charte doit être répercutée des deux côtés.
   --------------------------------------------------------------------------- */

@font-face {
  font-family: 'Bricolage';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  font-stretch: 75% 100%;
  src: url('/fonts/bricolage-latin.woff2') format('woff2-variations');
  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: 'Bricolage';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  font-stretch: 75% 100%;
  src: url('/fonts/bricolage-latin-ext.woff2') format('woff2-variations');
  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: 'SourceSerif';
  font-style: normal;
  font-display: swap;
  font-weight: 200 900;
  src: url('/fonts/serif-latin.woff2') format('woff2-variations');
  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: 'SourceSerif';
  font-style: italic;
  font-display: swap;
  font-weight: 200 900;
  src: url('/fonts/serif-latin-italic.woff2') format('woff2-variations');
  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 {
  --fond: #edf6f9;
  --surface: #ffffff;
  --encre: #0b2427;
  --encre-douce: #4a6569;
  --teal: #006d77;
  --teal-fonce: #00565e;
  --teal-clair: #83c5be;
  --terre: #a8442a;
  --terre-sombre: #8d3722;
  --terre-claire: #e29578;
  --bordure: #cfe1e6;
  --net: 2px;
  --display: 'Bricolage', ui-sans-serif, system-ui, sans-serif;
  --lecture: 'SourceSerif', ui-serif, Georgia, serif;
}

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

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

body {
  margin: 0;
  background: var(--fond);
  color: var(--encre);
  font-family: var(--lecture);
  font-size: clamp(1.125rem, 1.1rem + 0.11vw, 1.1875rem);
  line-height: 1.65;
  font-variant-numeric: oldstyle-nums;
  -webkit-font-smoothing: antialiased;
}

h1,
h2 {
  font-family: var(--display);
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-wrap: balance;
  margin: 0;
}
h1 {
  font-size: clamp(2.25rem, 1.6rem + 2.9vw, 3.75rem);
  font-weight: 800;
  font-stretch: 90%;
}
h2 {
  font-size: clamp(1.5rem, 1.3rem + 0.9vw, 2rem);
  font-weight: 700;
  font-stretch: 95%;
}
h3 {
  font-family: var(--lecture);
  font-weight: 600;
  font-size: 1.3125rem;
  line-height: 1.25;
  margin: 0;
}
p {
  margin: 0;
}
ul,
ol {
  margin: 0;
  padding: 0;
}
li {
  list-style: none;
}
img,
svg {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--teal);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 150ms ease, text-decoration-color 150ms ease;
}
a:hover {
  color: var(--teal-fonce);
  text-decoration-color: var(--terre-claire);
  text-decoration-thickness: 2px;
}
:focus-visible {
  outline: 2px solid var(--terre);
  outline-offset: 3px;
  border-radius: 1px;
}
::selection {
  background: var(--teal-clair);
  color: var(--encre);
}

/* --- Mise en page --- */
.conteneur {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 1.5rem;
}
@media (min-width: 768px) {
  .conteneur {
    padding-inline: 2rem;
  }
}
.lecture {
  max-width: 44rem;
}
.section {
  padding-block: 4rem;
}
@media (min-width: 768px) {
  .section {
    padding-block: 5rem;
  }
}
.filet-haut {
  border-top: 1px solid var(--bordure);
}

.saut-contenu {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--terre);
  color: #fff;
  padding: 0.75rem 1.25rem;
  font-family: var(--display);
  font-weight: 600;
  text-decoration: none;
}
.saut-contenu:focus {
  left: 0;
  color: #fff;
}

/* --- En-tête --- */
.entete {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--fond) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--bordure);
}
.entete-barre {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 5rem;
}
.marque {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  text-decoration: none;
  color: var(--encre);
}
.marque-nom {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.25rem;
  font-stretch: 92%;
  letter-spacing: -0.02em;
}
.nav-large {
  display: none;
}
.nav-large ul {
  display: flex;
  gap: 1.75rem;
  align-items: center;
}
.nav-large a {
  font-family: var(--display);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--encre);
  text-decoration: none;
  padding-block: 0.25rem;
  border-bottom: 2px solid transparent;
}
.nav-large a:hover {
  color: var(--teal);
  border-bottom-color: var(--teal-clair);
}
.nav-large a[aria-current='page'] {
  color: var(--teal);
  border-bottom-color: var(--teal);
}
.nav-mobile summary {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  list-style: none;
  padding: 0.5rem;
  margin: -0.5rem;
}
.nav-mobile summary::-webkit-details-marker {
  display: none;
}
.barres {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  width: 20px;
}
.barres i {
  display: block;
  height: 1.5px;
  background: var(--encre);
}
.nav-mobile[open] .barres i:nth-child(2) {
  background: var(--terre);
}
.nav-mobile nav {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: var(--surface);
  border-bottom: 1px solid var(--bordure);
  padding: 0.5rem 1.5rem 1.5rem;
}
.nav-mobile nav ul {
  display: flex;
  flex-direction: column;
}
.nav-mobile nav a {
  display: block;
  font-family: var(--display);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--encre);
  text-decoration: none;
  padding: 0.875rem 0;
  border-bottom: 1px solid var(--bordure);
}
@media (min-width: 900px) {
  .nav-large {
    display: block;
  }
  .nav-mobile {
    display: none;
  }
}

/* --- Fil d'Ariane --- */
.ariane {
  border-bottom: 1px solid var(--bordure);
  padding-block: 0.875rem;
}
.ariane ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-family: var(--display);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--encre-douce);
}
.ariane li + li::before {
  content: '/';
  margin-right: 0.5rem;
  color: var(--teal-clair);
}
.ariane a {
  color: var(--encre-douce);
  text-decoration: none;
}
.ariane a:hover {
  color: var(--teal);
  text-decoration: underline;
}
.ariane [aria-current='page'] {
  color: var(--encre);
}

/* --- Typographie utilitaire --- */
.meta {
  font-family: var(--display);
  font-size: clamp(0.8125rem, 0.78rem + 0.14vw, 0.875rem);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--encre-douce);
  font-variant-numeric: tabular-nums;
}
.chapo {
  font-size: clamp(1.25rem, 1.11rem + 0.62vw, 1.4375rem);
  line-height: 1.5;
  color: var(--encre-douce);
}
.tag {
  display: inline-block;
  font-family: var(--display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.25rem 0.625rem;
  border-radius: var(--net);
  background: color-mix(in srgb, var(--teal-clair) 28%, transparent);
  color: var(--encre);
}
.encadre {
  background: var(--surface);
  border: 1px solid var(--bordure);
  border-left: 2px solid var(--teal);
  border-radius: var(--net);
  padding: 1.25rem 1.5rem;
}
.encadre-accent {
  border-left-color: var(--terre-claire);
}

/* --- Boutons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 600;
  padding: 0.875rem 1.75rem;
  border-radius: var(--net);
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background-color 150ms ease, border-color 150ms ease;
}
.btn-primaire {
  background: var(--terre);
  color: #fff;
}
.btn-primaire:hover {
  background: var(--terre-sombre);
  color: #fff;
}
.lien-fleche {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
}
.lien-fleche::after {
  content: '→';
  transition: transform 150ms ease;
}
.lien-fleche:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.lien-fleche:hover::after {
  transform: translateX(3px);
}

/* --- Le fil : élément signature (plan §4) --- */
.fil {
  position: relative;
  padding-left: 2rem;
  border-left: 1px solid var(--teal-clair);
}
.fil > li {
  position: relative;
  padding-bottom: 2.75rem;
}
.fil > li:last-child {
  padding-bottom: 0;
}
.connecteur-noeud {
  position: absolute;
  left: calc(-2rem - 9px);
  top: 0.3em;
  background: var(--fond);
  padding-block: 3px;
  line-height: 0;
}

.breve-titre {
  font-family: var(--display);
  font-size: 1.375rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin-top: 0.375rem;
}
.breve-titre a {
  color: var(--encre);
  text-decoration: none;
}
.breve-titre a:hover {
  color: var(--teal);
  text-decoration: underline;
}
.breve-corps {
  margin-top: 0.625rem;
}
.breve-corps p + p {
  margin-top: 0.75rem;
}
.breve-source {
  margin-top: 0.75rem;
  font-size: 1rem;
}
.breve-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  margin-top: 0.875rem;
}

/* --- Corps d'article --- */
.article-corps > * + * {
  margin-top: 1.25rem;
}
.article-corps h2 {
  margin-top: 2.5rem;
  font-size: 1.625rem;
}
.article-corps h3 {
  margin-top: 2rem;
}
.article-corps ul {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}
.article-corps ul li {
  position: relative;
  padding-left: 1.5rem;
}
.article-corps ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 10px;
  height: 1px;
  background: var(--teal);
}
.article-corps blockquote {
  margin: 0;
  padding-left: 1.25rem;
  border-left: 2px solid var(--terre-claire);
  font-style: italic;
}

/* --- Formulaire --- */
.champ {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}
.champ label {
  font-family: var(--display);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--encre-douce);
}
.champ input {
  font-family: var(--lecture);
  font-size: 1.0625rem;
  color: var(--encre);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--bordure);
  padding: 0.5rem 0;
  border-radius: 0;
}
.champ input:focus {
  border-bottom-color: var(--teal);
  outline-offset: 4px;
}
.piege {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.formulaire-inline {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 1.25rem;
  margin-top: 1.75rem;
}
.formulaire-inline .champ {
  flex: 1 1 18rem;
}

/* --- Pied de page --- */
.pied {
  border-top: 1px solid var(--bordure);
  background: var(--surface);
  padding-block: 3rem 2rem;
  margin-top: 2rem;
}
.pied-grille {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .pied-grille {
    grid-template-columns: 1.6fr 1fr 1fr;
    gap: 3rem;
  }
}
.pied-titre {
  font-family: var(--display);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--encre-douce);
  margin: 0 0 0.875rem;
}
.pied ul {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.pied li {
  font-size: 1rem;
}
.pied a {
  color: var(--encre);
  text-decoration: none;
}
.pied a:hover {
  color: var(--teal);
  text-decoration: underline;
}
.pied-bas {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--bordure);
  font-size: 0.875rem;
  color: var(--encre-douce);
}

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