/*
  Refonte : structure responsive du site Technique EFT.
  Bandeaux (barre utilitaire, en-tête, menu, pied de page) sur toute la largeur ;
  contenu limité à --te-container, en trois colonnes sur grand écran.
  Chargée après la feuille historique compilée (public/assets/public-*.css),
  dont elle reprend les couleurs ; elle ne modifie pas le contenu saisi dans Quartz.
*/

:root {
  --te-green: #a8cd6d;
  --te-green-dark: #7fa843;
  --te-blue: #698fb6;
  --te-blue-dark: #295288;
  --te-orange: #ff7800;
  --te-orange-text: #c25a00;
  --te-paper: #faf9f8;
  --te-ground: #dadbd5;
  --te-square-blue: #e5ecf2;
  --te-square-green: #e7f0d3;
  --te-ink: #333333;
  --te-muted: #626a72;
  --te-rule: #e1e6ea;
  --te-font: "Avenir Next", "Avenir", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --te-header-h: 64px;
  --te-container: 1320px;
  --te-gutter: 24px;
  --te-nav-h: 56px;
  --te-page: #eef2f6;
  --te-sky: #e6eef7;
}

body {
  background: var(--te-page);
  color: var(--te-ink);
  font-family: var(--te-font);
  font-size: 15px;
  line-height: 1.6;
}

/* Some Quartz HTML blocks embed page-wide rules (e.g. body { font-family; padding }):
   the site frame keeps its own body styles. */
html body { margin: 0; padding: 0; font-family: var(--te-font); text-align: left; }

#main {
  max-width: none;
  padding: 0;
  background: transparent;
  overflow-x: clip;
}

.site-container {
  box-sizing: border-box;
  width: 100%;
  max-width: var(--te-container);
  margin-inline: auto;
  padding-inline: var(--te-gutter);
}

/* ---------- Liens utilitaires (menu « utilitaire » de Quartz) et recherche, dans le bandeau vert ---------- */

.site-header__tools {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  min-width: 0;
}
/* Institutional links read as a discreet line above the search, not as a second menu. */
.site-header__links ul { display: flex; list-style: none; margin: 0; padding: 0; }
.site-header__links li + li::before { content: "·"; color: #9aaabb; padding: 0 8px; }
.site-header__links a {
  color: var(--te-muted);
  font-size: 12.5px;
  text-decoration: none;
}
.site-header__links a:hover,
.site-header__links a.active { color: var(--te-blue-dark); text-decoration: underline; }

/* ---------- Formulaire de recherche ---------- */

.search-form { position: relative; display: flex; align-items: center; margin: 0; }
.search-form__label {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.search-form__input {
  box-sizing: border-box;
  width: 100%;
  margin: 0;
  border: 1px solid #c9d6e3;
  border-radius: 999px;
  background: #fff;
  color: var(--te-ink);
  font: 400 14px/1.2 var(--te-font);
  padding: 8px 42px 8px 16px;
  box-shadow: none;
  -webkit-appearance: none;
  appearance: none;
}
.search-form__input:focus { outline: 2px solid var(--te-orange); outline-offset: 1px; border-color: transparent; }
.search-form__submit {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: var(--te-orange);
  color: #fff;
  cursor: pointer;
  font-size: 14px;
}
.search-form__submit:hover { background: var(--te-orange-text); }
.search-form--header { width: clamp(320px, 34vw, 460px); }
.search-form--header .search-form__input { border-color: #c9d6e3; font-size: 15px; padding: 11px 50px 11px 18px; }
.search-form--header .search-form__submit { width: 36px; height: 36px; font-size: 15px; }
.search-form--drawer { display: none; }
.search-form--page { max-width: 640px; margin: 10px 0 18px; }
.search-form--page .search-form__input { font-size: 17px; padding: 13px 56px 13px 20px; }
.search-form--page .search-form__submit { width: 42px; height: 42px; font-size: 17px; right: 5px; }

h3, h4 { color: var(--te-orange-text); }

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--te-blue-dark);
  outline-offset: 2px;
}

/* ---------- En-tête ---------- */

/* The transparent logo reuses the brand greens: a white-to-sky gradient, taken from
   the menu blue, lets the globe and the dove stand out. */
.site-header__bar {
  background: linear-gradient(180deg, #ffffff 0%, var(--te-sky) 100%);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: 100px;
}

.site-header__logo { display: block; line-height: 0; }

/* logo.png (800×272) has almost no inner margin: scale it to the band, never crop it. */
.site-header .site-header__logo #logo {
  position: static;
  display: block;
  width: auto;
  height: 92px;
  max-width: 100%;
}

.site-header__menu {
  display: none;
  align-items: center;
  gap: 8px;
  border: 0;
  border-radius: 20px;
  background: var(--te-blue);
  color: #fff;
  font: 600 15px/1 var(--te-font);
  padding: 10px 14px;
  cursor: pointer;
}

.site-header__menu-icon,
.site-header__menu-icon::before,
.site-header__menu-icon::after {
  display: block;
  width: 16px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  transition: transform .2s;
}
.site-header__menu-icon { position: relative; }
.site-header__menu-icon::before,
.site-header__menu-icon::after { content: ""; position: absolute; left: 0; }
.site-header__menu-icon::before { top: -5px; }
.site-header__menu-icon::after { top: 5px; }
.nav-open .site-header__menu-icon { background: transparent; }
.nav-open .site-header__menu-icon::before { transform: translateY(5px) rotate(45deg); }
.nav-open .site-header__menu-icon::after { transform: translateY(-5px) rotate(-45deg); }

/* The historical #main #slides rule adds 7px margins: the bands must touch.
   The quote is part of the photo, so it is never cropped: the image keeps its
   ratio, up to its natural width, on a background matching its dark edges. */
#main #slides.site-banner {
  margin: 0;
  line-height: 0;
  background: linear-gradient(90deg, #81a30f 50%, #506c1e 50%);
}
#main .site-banner img {
  display: block;
  width: 100%;
  max-width: 1990px;
  height: auto;
  margin: 0 auto;
}

/* ---------- Navigation ---------- */

.site-nav {
  background: var(--te-blue);
  position: relative;
  z-index: 20;
}
.site-nav__utility { display: none; }

.site-nav ul { list-style: none; margin: 0; padding: 0; }

.site-nav .site-nav__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  padding: 8px 0;
}

/* The pill is drawn on the item, so a dropdown entry and its arrow highlight together. */
.site-nav__item {
  position: relative;
  display: flex;
  align-items: center;
  border-radius: 18px;
}
@media (min-width: 900px) {
  /* The ten first-level entries need two rows: center both so they read as one block. */
  .site-nav__list { justify-content: center; }

  /* Laptop widths: tighten the entries so the main menu keeps a single row. */
  @media (max-width: 1279px) {
    .site-nav .site-nav__link { font-size: 13px; padding: 8px 6px; }
    .site-nav .site-nav__list { gap: 0; }
    .site-nav .site-nav__item.has-sub > .site-nav__link { padding-right: 2px; }
    .site-nav .site-nav__toggle { width: 18px; padding: 0 6px 0 1px; }
  }

  /* The main menu stays reachable while reading long pages. */
  .site-nav { position: sticky; top: 0; z-index: 50; box-shadow: 0 2px 8px rgba(31, 52, 82, .12); }

  .site-nav__item:hover,
  .site-nav__item:focus-within,
  .site-nav__item.is-open,
  .site-nav__item:has(> .site-nav__link.active) {
    background: var(--te-blue-dark);
    z-index: 2;
  }
}

.site-nav__link {
  display: inline-block;
  padding: 8px 14px;
  color: #fff;
  font-size: 14.5px;
  font-weight: 500;
  line-height: 1.4;
  text-decoration: none;
  white-space: nowrap;
}
.site-nav__link:hover,
.site-nav__link:focus-visible,
.site-nav__link.active {
  color: #fff;
  text-decoration: none;
}
.site-nav__item.has-sub > .site-nav__link { padding-right: 4px; }
.site-nav__home-label {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.site-nav__toggle {
  align-self: stretch;
  border: 0;
  background: transparent;
  color: #fff;
  width: 24px;
  padding: 0 8px 0 2px;
  box-sizing: content-box;
  cursor: pointer;
  border-radius: 0 16px 16px 0;
}
.site-nav__toggle::before {
  content: "";
  display: block;
  width: 6px;
  height: 6px;
  margin: -3px auto 0;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform .2s;
}

.site-nav__sub {
  display: none;
  position: absolute;
  top: calc(100% + 5px);
  left: 0;
  z-index: 30;
  min-width: 280px;
  max-width: 340px;
  background: #fff;
  border-top: 3px solid var(--te-blue-dark);
  border-radius: 0 0 6px 6px;
  box-shadow: 0 10px 24px rgba(31, 52, 82, .22);
  padding: 8px 0;
}
/* Invisible bridge over the gap, so the pointer can reach the panel without closing it. */
.site-nav__sub::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -9px;
  height: 6px;
}
.site-nav__sub.is-wide {
  min-width: 560px;
  max-width: none;
  columns: 2;
  column-gap: 0;
}
.site-nav__sub li { break-inside: avoid; }
.site-nav__sub a {
  display: block;
  padding: 6px 18px;
  color: var(--te-ink);
  font-size: 14px;
  line-height: 1.35;
  text-decoration: none;
}
.site-nav__sub a:hover,
.site-nav__sub a:focus-visible,
.site-nav__sub a.active {
  background: var(--te-square-blue);
  color: var(--te-blue-dark);
}

@media (hover: hover) and (min-width: 900px) {
  .site-nav__item.has-sub:hover > .site-nav__sub { display: block; }
}
@media (min-width: 900px) {
  .site-nav__item.has-sub:focus-within > .site-nav__sub,
  .site-nav__item.is-open > .site-nav__sub { display: block; }
  .site-nav__sub.align-right { left: auto; right: 0; }
  .site-nav__item.is-open > .site-nav__toggle::before { transform: rotate(-135deg); margin-top: 3px; }
}

/* ---------- Corps de page ---------- */

/* The historical #main #body rule sets horizontal margins to 0: re-center the container. */
#main #body.site-body {
  margin: 0 auto;
  padding-block: 22px 32px;
}

#main .site-body--sidebar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  grid-template-areas: "main secnav" "main aside";
  grid-template-rows: auto 1fr;
  column-gap: 28px;
  align-items: start;
}
#main .site-body--sidebar .site-main-col,
#main .site-body--sidebar > .site-main { grid-area: main; min-width: 0; }
/* Without a section menu (home, articles…): one row, main beside the boxes. */
#main .site-body--sidebar:not(.has-section-nav) { grid-template-areas: "main aside"; grid-template-rows: auto; }
#main .site-body--sidebar .site-section-nav { grid-area: secnav; }
#main .site-body--sidebar .site-aside { grid-area: aside; }

/* Large screens: section navigation on the left, reading column in the middle,
   promotional boxes on the right. The text keeps ~72 characters per line. */
@media (min-width: 1200px) {
  #main .site-body--sidebar.has-section-nav {
    grid-template-columns: 260px minmax(0, 1fr) 280px;
    grid-template-areas: "secnav main aside";
    grid-template-rows: auto;
    column-gap: 32px;
  }
  #main .has-section-nav .site-section-nav {
    position: sticky;
    top: calc(var(--te-nav-h) + 16px);
    max-height: calc(100vh - var(--te-nav-h) - 32px);
    overflow-y: auto;
  }
  /* Two columns (home, pages without section): the main column stays near the
     historical ~800px for which editors laid out their blocks. */
  #main .site-body--sidebar:not(.has-section-nav) { grid-template-columns: minmax(0, 840px) 380px; column-gap: 56px; justify-content: center; }
  #main .site-body--full { max-width: 1080px; }
}

/* Very large screens: a wider container mostly benefits the reading column
   (about 770px beside the section menu instead of 620px). */
@media (min-width: 1500px) {
  :root { --te-container: 1440px; }
  #main .site-body--sidebar.has-section-nav { grid-template-columns: 290px minmax(0, 1fr) 310px; column-gap: 32px; }
}

#main #body #corps {
  float: none;
  width: auto;
  padding: 0;
  text-align: left;
  min-width: 0;
}
#main #body #corps p { text-align: left; }

#main .site-aside {
  float: none;
  width: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}
#main .site-aside > * { margin: 0; }
#main .site-aside img { max-width: 100%; height: auto; }

.square { border-radius: 6px; }

/* Reading sheet: the main column is a white page on the blue-grey background;
   side boxes become white cards answering it. */
@media (min-width: 900px) {
  #main #body #corps.site-main {
    background: #fff;
    border: 1px solid #e1e8ef;
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(31, 52, 82, .06);
    padding: 26px 32px 30px;
  }
}
#main .site-aside .square:not(.blue):not(.green) { background: #fff; border-color: #e1e8ef; }
#main .section-nav > .square { border-color: #e1e8ef; }

/* Lisibilité du contenu saisi dans Quartz */
#corps { font-size: 16px; }
/* Width is limited on the whole reading column (see the grids above), never per
   paragraph: titles, text, image rows and boxes from Quartz share the same edges. */
#corps img { max-width: 100%; height: auto; }
#corps iframe, #corps video, #corps audio { max-width: 100%; }
#corps table { display: block; max-width: 100%; overflow-x: auto; }
body:not(.is-home) #corps h1,
body:not(.is-home) #corps h2 { text-align: left; text-wrap: balance; }

.breadcrumb {
  font-size: 13px;
  color: var(--te-muted);
  margin: 0 0 10px;
  padding: 0;
}
.breadcrumb a { color: var(--te-blue); }

/* Rubrique : navigation interne */
.section-nav { margin: 0 0 14px; }
.section-nav > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid #c9d6e3;
  border-radius: 8px;
  background: #fff;
  font-size: 14px;
}
.section-nav > summary::-webkit-details-marker { display: none; }
.section-nav > summary::after {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--te-blue);
  border-bottom: 2px solid var(--te-blue);
  transform: rotate(45deg);
  margin-top: -4px;
  transition: transform .2s;
}
.section-nav[open] > summary::after { transform: rotate(-135deg); margin-top: 4px; }
.section-nav__label { color: var(--te-muted); }
.section-nav__current { color: var(--te-blue-dark); font-weight: 600; text-align: right; }
.section-nav > .square { margin: 6px 0 0; background: #fff; }
.section-nav .square h2 { font-size: 1.15em; text-align: left; margin: 0 0 8px; }
.section-nav .square ul { margin: 0; padding-left: 0; list-style: none; }
.section-nav .square ul ul { padding-left: 14px; }
.section-nav .square a {
  display: block;
  padding: 6px 10px;
  border-radius: 6px;
  line-height: 1.35;
}
.section-nav .square a:hover { background: #f3f6f9; text-decoration: none; }
.section-nav .square a.active {
  background: var(--te-square-blue);
  color: var(--te-blue-dark);
  font-weight: 600;
}

@media (min-width: 900px) {
  .site-body--sidebar .section-nav > summary { display: none; }
  .site-body--sidebar .section-nav > .square { margin: 0; }

  /* Full-width pages (Quartz setting) keep the section menu on the left; the
     content takes all the remaining width, without the right column. */
  .site-body--full .section-nav > summary { display: none; }
  .site-body--full .section-nav > .square { margin: 0; }
  #main .site-body--full.has-section-nav {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    grid-template-areas: "secnav main";
    column-gap: 32px;
    align-items: start;
    max-width: var(--te-container);
  }
  #main .site-body--full.has-section-nav .site-section-nav {
    grid-area: secnav;
    position: sticky;
    top: calc(var(--te-nav-h) + 16px);
    max-height: calc(100vh - var(--te-nav-h) - 32px);
    overflow-y: auto;
  }
  #main .site-body--full.has-section-nav .site-main-col { grid-area: main; min-width: 0; }
}

/* Previous / next pages: plain arrow links under the white sheet. */
.prev-next {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin: 14px 4px 0;
  font-size: 14px;
}
.prev-next__link { color: var(--te-blue-dark); text-decoration: none; line-height: 1.4; }
.prev-next__link:hover { text-decoration: underline; }
.prev-next__link span { color: var(--te-blue); }
.prev-next__link--next { margin-left: auto; text-align: right; }

.traduction_avertissement {
  padding: 10px 20px;
  background: #f4f4f4;
  margin: 20px 0;
  border-radius: 6px;
}

/* Inscription ebook */
.ebook-signup__cover { display: block; line-height: 0; }
.ebook-signup__cover img { display: block; width: 100%; height: auto; }
#main .ebook-signup .square.blue { border-radius: 0 0 6px 6px; }
.ebook-signup__kicker { text-align: center; margin: 0; font-size: 1.05em; }
.ebook-signup__title { margin: 6px 0; }
.formation-square { text-align: center; }
.formation-square img { margin: 14px auto 0; }

/* ---------- Bandeau commun : vidéo, témoignages, livre ---------- */

#main .home_large {
  margin: 0;
  padding: 26px 0;
  background: var(--te-square-blue);
}
.home-highlights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
}
.home-highlights__item h3 { margin-top: 0; }
.video-frame { position: relative; aspect-ratio: 16 / 9; }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.home-highlights__book { text-align: center; }
.home-highlights__book h3 { text-align: center; }
.home-highlights__book img { height: 200px; width: auto; }

/* ---------- Avertissements (accueil) ---------- */

#main .avertissements { margin: 0 auto; padding-block: 20px 10px; }
.avertissements > h3 { margin: 0 0 8px; }
.avertissements details {
  background: #fff;
  border: 1px solid #e1e8ef;
  border-radius: 8px;
  margin: 0 0 8px;
}
.avertissements summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
}
.avertissements summary::-webkit-details-marker { display: none; }
.avertissements summary::after { content: "+"; font-weight: 700; color: var(--te-blue); }
.avertissements details[open] summary::after { content: "–"; }
.avertissements summary h4 { margin: 0; font-size: 15px; }
.avertissements details > p { margin: 0; padding: 0 14px 12px; font-size: 14px; }

/* ---------- Pied de page ---------- */

#main .site-footer {
  margin: 0;
  padding: 28px 0 14px;
  background: #e3eaf2;
  border-top: 4px solid var(--te-green);
  border-bottom: 0;
}
.site-footer__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.site-footer h3 {
  margin: 0 0 8px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--te-blue-dark);
  text-align: left;
}
.site-footer ul { list-style: none; margin: 0 0 12px; padding: 0; }
.site-footer li { margin: 0; }
.site-footer li a { display: inline-block; padding: 3px 0; color: var(--te-ink); }
.site-footer__legal-link { display: inline-block; }
.site-footer__school img { display: block; width: 200px; max-width: 100%; height: auto; }
.site-footer__charter { display: block; width: 200px; max-width: 100%; height: auto; margin-top: 14px; }
.site-footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  padding-top: 10px;
  border-top: 1px solid #d6dcd2;
  font-size: 12px;
  color: var(--te-muted);
}
#main #logo-nb { width: 20px; float: none; margin: 0; }

/* ---------- Tablette et mobile ---------- */

@media (max-width: 899px) {
  :root { --te-header-h: 60px; }

  body { font-size: 16px; }

  .site-header {
    position: sticky;
    top: 0;
    z-index: 40;
  }
  :root { --te-gutter: 16px; }
  .site-header__tools { display: none; }
  .site-header__inner { height: var(--te-header-h); }
  .search-form--drawer { display: flex; margin: 14px 0 6px; }
  .search-form--drawer .search-form__input { font-size: 16px; padding-block: 11px; }
  .site-nav > .site-container { padding-inline: 0; }
  .search-form--drawer { margin-inline: 16px; }
  .site-nav .site-nav__utility {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 16px;
  }
  .site-nav__utility a {
    display: inline-block;
    padding: 7px 14px;
    border: 1px solid #c9d6e3;
    border-radius: 999px;
    color: var(--te-blue-dark);
    font-size: 14px;
  }
  .site-header .site-header__logo #logo { height: 52px; }
  .site-header__menu { display: inline-flex; }

  .site-nav {
    display: none;
    position: fixed;
    top: var(--te-header-h);
    left: 0;
    right: 0;
    bottom: 0;
    margin: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    background: #fff;
    z-index: 39;
  }
  .nav-open .site-nav { display: block; }
  .nav-open { overflow: hidden; }

  .site-nav .site-nav__list { display: block; padding: 0 0 24px; }
  .site-nav__item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: stretch;
    border-radius: 0;
    border-bottom: 1px solid var(--te-rule);
  }
  .site-nav__link {
    display: block;
    margin: 0;
    padding: 13px 16px;
    border-radius: 0;
    color: var(--te-ink);
    font-size: 16px;
    font-weight: 600;
  }
  .site-nav__link:hover,
  .site-nav__link:focus-visible,
  .site-nav__link.active { background: var(--te-square-blue); color: var(--te-blue-dark); }
  .site-nav__home .fa { color: var(--te-blue); margin-right: 8px; }
  .site-nav__home-label { position: static; width: auto; height: auto; clip: auto; overflow: visible; }

  .site-nav__toggle {
    width: 52px;
    height: auto;
    margin: 0;
    color: var(--te-blue);
    border-left: 1px solid var(--te-rule);
    border-radius: 0;
  }
  .site-nav__item.is-open > .site-nav__toggle::before { transform: rotate(-135deg); margin-top: 3px; }

  .site-nav__sub,
  .site-nav__sub.is-wide {
    grid-column: 1 / -1;
    position: static;
    min-width: 0;
    max-width: none;
    columns: auto;
    box-shadow: none;
    border-top: 0;
    padding: 0 0 8px;
    background: #f7f9fb;
  }
  .site-nav__item.is-open > .site-nav__sub { display: block; }
  .site-nav__sub a { padding: 9px 16px 9px 30px; font-size: 15px; }

  /* Small screens: the whole body is the white sheet, edge to edge. */
  #main #body.site-body { padding-block: 14px 22px; background: #fff; }
  #main .site-body--sidebar { display: block; }
  #main .site-aside { margin-top: 26px; }

  .home-highlights { grid-template-columns: minmax(0, 1fr); }
  #main .home_large { padding-block: 18px; }
  #main .avertissements { padding-block: 12px 4px; }

  .site-footer__grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  #main .site-footer { padding-block: 18px 12px; }

  h3 { text-align: left; }
}

/* Contenu en colonnes saisi dans Quartz : on empile sur petit écran */
@media (max-width: 699px) {
  #corps .row .columns,
  #corps .row-fluid [class*="span"] {
    float: none;
    width: 100%;
    padding: 0;
    margin-left: 0;
  }
  #corps .row .columns.span_3,
  #corps .row .columns.span_2 {
    float: left;
    width: 50%;
    padding: 0 4px;
  }
  .prev-next { flex-direction: column; gap: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* ---------- Liste des cas concrets ---------- */

#corps .article-list { list-style: none; margin: 0; padding: 0; }
#corps .article-list__item {
  max-width: none;
  margin: 0;
  padding: 12px 0;
  border-bottom: 1px solid var(--te-rule);
}
.article-list__title { font-weight: 600; font-size: 16px; line-height: 1.35; }
.article-list__meta { display: block; margin-top: 2px; font-size: 12.5px; color: var(--te-muted); }
#corps .article-list__excerpt { margin: 4px 0 0; font-size: 14px; color: #4a5056; }

/* ---------- Page de résultats de recherche ---------- */

.search-page h1 { text-align: left; margin-bottom: 4px; }
.search-page__summary,
.search-page__hint { color: var(--te-muted); margin: 0 0 14px; }
.search-page__summary strong { color: var(--te-ink); }

.search-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 26px; }
.search-filters__chip {
  display: inline-block;
  padding: 6px 14px;
  border: 1px solid #c9d6e3;
  border-radius: 999px;
  background: #fff;
  color: var(--te-blue-dark);
  font-size: 14px;
  text-decoration: none;
}
.search-filters__chip:hover { border-color: var(--te-blue); text-decoration: none; }
.search-filters__chip.is-active { background: var(--te-blue-dark); border-color: var(--te-blue-dark); color: #fff; }

.search-group { margin: 0 0 30px; }
#corps .search-group__title {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 0 0 6px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--te-rule);
  font-size: 19px;
  text-align: left;
}
.search-group__count {
  font-size: 12px;
  font-weight: 600;
  color: var(--te-muted);
  background: var(--te-square-blue);
  border-radius: 999px;
  padding: 1px 9px;
}
#corps .search-results { list-style: none; margin: 0; padding: 0; }
#corps .search-result {
  position: relative;
  max-width: none;
  margin: 0;
  padding: 14px 0;
  border-bottom: 1px solid var(--te-rule);
}
.search-result--pages { --te-type: var(--te-blue); }
.search-result--articles { --te-type: var(--te-orange); }
.search-result--newsletters { --te-type: var(--te-green-dark); }
.search-result--testimonies { --te-type: #8a5aa8; }
.search-result__type {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--te-type);
}
#corps .search-result__title { margin: 2px 0 2px; font-size: 17px; line-height: 1.3; text-align: left; color: inherit; }
.search-result__title a { color: var(--te-blue-dark); }
#corps .search-result__meta { margin: 0; font-size: 12.5px; color: var(--te-muted); overflow-wrap: anywhere; }
#corps .search-result__excerpt { margin: 6px 0 0; font-size: 14.5px; color: #4a5056; max-width: 80ch; }
.search-result__excerpt mark { background: #fff1c2; color: inherit; padding: 0 2px; border-radius: 2px; }
.search-group__more { display: inline-block; margin-top: 10px; font-weight: 600; }
.search-empty ul { columns: 2; margin-top: 8px; }
@media (max-width: 699px) { .search-empty ul { columns: 1; } }
