/* La feuille du SITE — ce que le Design System ne livre pas.
 *
 * Règle tenue d'un bout à l'autre du fichier : **aucune couleur, aucun
 * espacement, aucune taille de texte en dur.** Tout passe par une custom
 * property servie par le CDN (`--palette-*`, `--spacing-*`, `--texts-*`,
 * `--radius-*`, `--borders-*`, `--marques-brand-*`). C'est la contrainte que
 * `StarterKit/docs/05-design-system.md` impose aux projets, et c'est ce qui
 * rend ce site utile comme test : si une rampe change au CDN, la page entière
 * bouge avec, sans qu'on touche à ce fichier.
 *
 * Les seuls littéraux sont :
 *   - les métriques de gabarit relevées dans le brandbook RAGT (largeur de la
 *     barre flottante, hauteur 88, décalage 104, rail…) — aucune variable
 *     Figma ne les porte ;
 *   - l'ombre `--shadow-xl` et les durées d'animation, même raison ;
 *   - quelques `%` et `ch` de mise en page qui ne sont pas des tokens ;
 *   - les 448px de `.sites-card`, qui ne sont pas une décision du site : c'est
 *     la largeur que `.ragt-pin-card` se donne, relue pour la retenir dans son
 *     cadre.
 *
 * Ce fichier ne redéfinit AUCUNE classe `.ragt-*`. Un composant du Design
 * System qui ne convient pas se signale au programme Groupe Digital ; il ne se
 * repeint pas ici. Les rares ajustements de contexte passent par des classes
 * à nous posées à côté (`.filters .ragt-control`, par exemple, pour une
 * largeur — jamais pour une couleur).
 */

@import url('/assets/fonts/google-sans-flex.css');
@import url('/assets/fonts/oswald.css');

:root {
  /* Gabarit — littéraux du brandbook. */
  --shell-width: 1408px;
  --header-height: 88px;
  --header-inset: 16px;
  --header-offset: 104px;

  --shadow-xl: 0 20px 25px -5px #0000001a, 0 10px 10px -5px #0000000a;
  --shadow-card: 0 1px 3px #0000000f;
  --ease-out: cubic-bezier(.16, 1, .3, 1);

  --font-core: 'Google Sans Flex', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-display: 'Oswald', 'Google Sans Flex', 'Helvetica Neue', Arial, sans-serif;
}

/* `ragt-tokens.css` pose déjà `body { margin; background; color; font-size;
   line-height }`. On n'y ajoute que la famille : le Design System ne l'impose
   qu'au niveau des composants. */
body {
  font-family: var(--font-core);
  -webkit-font-smoothing: antialiased;
}

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

/* Le repli quand le CDN ne répond pas. `site.js` pose `no-ds` sur <html> si les
   tokens ne sont pas arrivés : la page reste lisible et le dit. */
html.no-ds body {
  margin: 0;
  font-family: var(--font-core);
  background: #f8f8f8;
  color: #1b2930;
}

/* ========================================================================== */
/* Typographie                                                                */
/* ========================================================================== */

/* Les `--texts-*` suivent l'axe viewport tout seuls (media queries dans
   `ragt-tokens.css`) : il n'y a donc aucune media query de typo ici. */

h1, h2, h3, h4, h5 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .01em;
  color: var(--palette-neutral-900);
}

.t-display  { font-size: var(--texts-display-d2-font-size); line-height: var(--texts-display-d2-line-height); }
.t-h1       { font-size: var(--texts-heading-h1-font-size); line-height: var(--texts-heading-h1-line-height); }
.t-h2       { font-size: var(--texts-heading-h2-font-size); line-height: var(--texts-heading-h2-line-height); }
.t-h3       { font-size: var(--texts-heading-h3-font-size); line-height: var(--texts-heading-h3-line-height); }
.t-h4       { font-size: var(--texts-heading-h4-font-size); line-height: var(--texts-heading-h4-line-height); }
.t-h5       { font-size: var(--texts-heading-h5-font-size); line-height: var(--texts-heading-h5-line-height); }

.t-lead {
  font-size: var(--texts-body-large-font-size);
  line-height: var(--texts-body-large-line-height);
  color: var(--palette-neutral-700);
}

.t-small {
  font-size: var(--texts-body-small-font-size);
  line-height: var(--texts-body-small-line-height);
  color: var(--palette-neutral-600);
}

.t-caption {
  font-size: var(--texts-ui-caption-font-size);
  line-height: var(--texts-ui-caption-line-height);
  color: var(--palette-neutral-600);
}

.t-footnote {
  font-size: var(--texts-body-footnote-font-size);
  line-height: var(--texts-body-footnote-line-height);
  color: var(--palette-neutral-600);
}

/* Le kicker du brandbook : capitales espacées, filet court, teinte de marque.
   Changer de marque le repeint — c'est voulu, c'est le témoin le plus visible
   de l'axe `marques` sur une page de contenu. */
.kicker {
  display: flex;
  align-items: center;
  gap: var(--spacing-12);
  margin: 0;
  font-family: var(--font-core);
  font-size: var(--texts-ui-small-font-size);
  line-height: var(--texts-ui-small-line-height);
  font-weight: 600;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--marques-brand-800);
}

.kicker::before {
  content: "";
  flex: none;
  width: 34px;
  height: 2px;
  background: var(--marques-brand-600);
}

.prose { max-width: 72ch; }
.prose p { margin: 0 0 var(--spacing-16); }
.prose p:last-child { margin-bottom: 0; }
.prose strong { font-weight: 600; }

.quote {
  margin: 0;
  padding-left: var(--spacing-24);
  border-left: var(--borders-l) solid var(--marques-brand-500);
}

.quote p {
  margin: 0 0 var(--spacing-12);
  font-size: var(--texts-editorial-citation-font-size);
  line-height: var(--texts-editorial-citation-line-height);
  color: var(--palette-neutral-800);
}

.quote figcaption {
  font-size: var(--texts-editorial-citation-attribution-font-size);
  line-height: var(--texts-editorial-citation-attribution-line-height);
  color: var(--palette-neutral-600);
}

.highlight {
  padding: var(--spacing-16) var(--spacing-20);
  border-radius: var(--radius-m);
  background: var(--marques-brand-100);
  font-size: var(--texts-editorial-highlight-font-size);
  line-height: var(--texts-editorial-highlight-line-height);
  color: var(--palette-neutral-800);
}

/* ========================================================================== */
/* Utilitaires de mise en page                                                */
/* ========================================================================== */

/* `.ragt-container`, `.ragt-grid`, `.ragt-col-*`, `.ragt-section` et
   `.ragt-stack` viennent du CDN. Ce qui suit ne fait que les compléter. */

/* Écart signalé au Design System, et contourné ici en attendant.
 *
 * `.ragt-btn` est dessiné pour un `<button>` : il ne remet pas
 * `text-decoration`. Posé sur un `<a>` — un bouton d'appel à l'action qui
 * navigue, ce que fait n'importe quel site — le libellé arrive souligné.
 *
 * La règle ci-dessous ne touche ni couleur, ni taille, ni état : elle neutralise
 * une propriété que le composant n'a pas prévue. À retirer dès que
 * `ragt-components.css` posera `text-decoration: none` sur `.ragt-btn`.
 * Relevé le 14/09/2026 sur la version 0.2.1. */
a.ragt-btn { text-decoration: none; }

/* Même nature, même limite : `.ragt-control` est écrit pour un champ de
   saisie. Porté par le `<button>` du Select composé (voir la fiche variété),
   il hérite du centrage de texte du bouton. Neutralisé, rien de plus. */
button.ragt-control { text-align: left; }

/* Le Select ouvert de Figma empile le menu sur la boîte avec 1px de
   chevauchement (`margin-top: -1px`, dans le composant). En flux, le panneau
   pousserait le contenu qui suit ; il est donc sorti du flux ici — une
   décision de contexte, que le composant ne peut pas prendre à notre place. */
.select-wrap { position: relative; }
.select-wrap > .ragt-menu {
  position: absolute;
  inset-inline: 0;
  top: 100%;
  z-index: 20;
  box-shadow: var(--shadow-xl);
}

.stack-s  { display: flex; flex-direction: column; gap: var(--spacing-8); }
.stack-m  { display: flex; flex-direction: column; gap: var(--spacing-16); }
.stack-l  { display: flex; flex-direction: column; gap: var(--spacing-32); }
.row      { display: flex; flex-wrap: wrap; align-items: center; gap: var(--spacing-12); }
.row-l    { display: flex; flex-wrap: wrap; align-items: center; gap: var(--spacing-24); }
.row-end  { justify-content: flex-end; }
.grow     { flex: 1 1 auto; min-width: 0; }
.center   { text-align: center; }

.band { background: var(--palette-neutral-white); }
.band--tinted { background: var(--marques-brand-100); }
.band--dark { background: var(--palette-neutral-900); color: var(--palette-neutral-200); }
.band--dark h2, .band--dark h3 { color: var(--palette-neutral-white); }

.section-head {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-12);
  margin-bottom: var(--spacing-40);
  max-width: 68ch;
}

.section-head--split {
  flex-direction: row;
  align-items: flex-end;
  justify-content: space-between;
  max-width: none;
  gap: var(--spacing-24);
}

.section-head--split > .stack-s { max-width: 60ch; }

@media (max-width: 899px) {
  .section-head--split { flex-direction: column; align-items: flex-start; }
}

/* `.ragt-tabs` est un `display: flex` sans repli : cinq onglets débordent d'un
   écran de téléphone et poussent la page en défilement horizontal. Le
   composant n'a pas d'avis là-dessus — c'est au contexte de décider — donc le
   site l'enferme dans une bande défilante plutôt que de le modifier. */
.tabs-scroll { overflow-x: auto; scrollbar-width: thin; }
.tabs-scroll > .ragt-tabs { min-width: max-content; }

.skip-link {
  position: absolute;
  left: var(--spacing-16);
  top: var(--spacing-16);
  z-index: 100;
  padding: var(--spacing-8) var(--spacing-16);
  border-radius: var(--radius-s);
  background: var(--palette-neutral-900);
  color: var(--palette-neutral-white);
  transform: translateY(-200%);
}

.skip-link:focus { transform: none; }

/* ========================================================================== */
/* En-tête — la carte blanche flottante du brandbook                          */
/* ========================================================================== */

.site-header {
  position: fixed;
  inset: var(--header-inset) var(--header-inset) auto;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: var(--spacing-24);
  height: var(--header-height);
  max-width: var(--shell-width);
  margin-inline: auto;
  padding: 0 var(--spacing-24) 0 var(--spacing-32);
  border-radius: var(--radius-m);
  background: var(--palette-neutral-white);
  box-shadow: var(--shadow-xl);
}

.site-header__logo {
  flex: none;
  display: inline-flex;
  align-items: center;
}

/* Le logotype est un `<img>` servi par le CDN : hauteur imposée, largeur
   déduite du rapport porté par les attributs `width`/`height`, donc réservée
   avant même que l'image n'arrive. */
.site-header__logo img { height: 25px; width: auto; display: block; }

/* Le nom de la marque, accolé au logotype : le logo RAGT ne le porte pas. */
.site-header__brand {
  padding-left: var(--spacing-12);
  margin-left: var(--spacing-12);
  border-left: var(--borders-s) solid var(--palette-neutral-300);
  font-size: var(--texts-ui-small-font-size);
  line-height: var(--texts-ui-small-line-height);
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--marques-brand-800);
}

.site-nav { display: flex; align-items: center; gap: var(--spacing-4); }

.site-nav__link {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding-inline: var(--spacing-12);
  border-radius: var(--radius-s);
  font-size: var(--texts-ui-label-font-size);
  line-height: var(--texts-ui-label-line-height);
  font-weight: 500;
  color: var(--palette-neutral-700);
  text-decoration: none;
  white-space: nowrap;
}

.site-nav__link:hover { background: var(--palette-neutral-100); color: var(--palette-neutral-900); }

/* L'onglet courant est peint à la marque — le chrome suit `data-brand`. */
body[data-page="accueil"]  .site-nav__link[data-nav="accueil"],
body[data-page="varietes"] .site-nav__link[data-nav="varietes"],
body[data-page="variete"]  .site-nav__link[data-nav="varietes"],
body[data-page="contact"]  .site-nav__link[data-nav="contact"] {
  background: var(--marques-brand-100);
  color: var(--marques-brand-800);
  font-weight: 600;
}

.site-header__actions { margin-left: auto; display: flex; align-items: center; gap: var(--spacing-8); }

.site-header__search { position: relative; width: 200px; }
.site-header__search .ragt-menu {
  position: absolute;
  inset-inline: 0;
  top: 100%;
  z-index: 30;
  box-shadow: var(--shadow-xl);
}

.icon-btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: var(--radius-s);
  background: none;
  color: var(--palette-neutral-700);
  cursor: pointer;
}

.icon-btn:hover { background: var(--palette-neutral-100); color: var(--palette-neutral-900); }

.nav-toggle { display: none; }

.site-main { padding-top: var(--header-offset); }

/* Le tiroir mobile : la carte de 88px ne tient pas cinq entrées plus deux
   boutons. Ouvert par `site.js`, qui bascule `aria-expanded`. */
@media (max-width: 1199px) {
  .site-header { padding-inline: var(--spacing-16) var(--spacing-12); gap: var(--spacing-12); }
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: absolute;
    inset: calc(var(--header-height) + var(--spacing-8)) 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: var(--spacing-8);
    border-radius: var(--radius-m);
    background: var(--palette-neutral-white);
    box-shadow: var(--shadow-xl);
  }
  .site-nav[hidden] { display: none; }
  .site-nav__link { height: 44px; }
  .site-header__search { display: none; }
}

@media (max-width: 599px) {
  .site-header__brand { display: none; }
  .site-header__logo img { height: 20px; }
}

/* ========================================================================== */
/* Héros                                                                      */
/* ========================================================================== */

.hero {
  position: relative;
  overflow: hidden;
  background: var(--palette-neutral-white);
  border-bottom: var(--borders-s) solid var(--palette-neutral-200);
}

/* Un aplat de marque en fond, dégradé depuis la rampe : pas d'image à servir,
   et ça rend le changement de marque immédiatement lisible. */
.hero::after {
  content: "";
  position: absolute;
  inset: 0 0 0 58%;
  background:
    radial-gradient(120% 90% at 80% 10%, var(--marques-brand-200) 0%, transparent 70%),
    linear-gradient(160deg, var(--marques-brand-100), var(--palette-neutral-white));
  pointer-events: none;
}

.hero > * { position: relative; z-index: 1; }

.hero__inner { display: flex; flex-direction: column; gap: var(--spacing-24); max-width: 62ch; }
.hero__title { max-width: 18ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--spacing-12); margin-top: var(--spacing-8); }
.hero__meta { display: flex; flex-wrap: wrap; gap: var(--spacing-8); }

@media (max-width: 899px) {
  .hero::after { inset: 0; opacity: .5; }
}

/* ========================================================================== */
/* Chiffres clés                                                              */
/* ========================================================================== */

.metric { display: flex; flex-direction: column; gap: var(--spacing-4); }

.metric__value {
  font-family: var(--font-display);
  font-size: var(--texts-metric-value-font-size);
  line-height: var(--texts-metric-value-line-height);
  font-weight: 500;
  color: var(--marques-brand-800);
}

.metric__label {
  font-size: var(--texts-metric-label-font-size);
  line-height: var(--texts-metric-label-line-height);
  font-weight: 600;
  color: var(--palette-neutral-900);
}

.metric__description {
  font-size: var(--texts-metric-description-font-size);
  line-height: var(--texts-metric-description-line-height);
  color: var(--palette-neutral-600);
}

/* ========================================================================== */
/* Cartes, visuels                                                            */
/* ========================================================================== */

/* `.ragt-card` fait 384px de large avec `max-width: 100%` : dans une cellule de
   grille il se contente de la cellule. On ne touche donc qu'à sa hauteur, pour
   que trois cartes de textes inégaux s'alignent. */
.card-grid .ragt-card { width: 100%; height: 100%; }
.card-grid .ragt-card__body { flex: 1 1 auto; }

.card-foot {
  display: flex;
  align-items: center;
  gap: var(--spacing-8);
  margin-top: auto;
  padding-top: var(--spacing-8);
}

/* Faute de photothèque, les visuels sont des aplats tirés des rampes. Un vrai
   site mettrait un <img> ici ; `.ragt-card__media` accepte les deux. */
.media { display: grid; place-items: center; color: var(--palette-neutral-white); }
.media--brand    { background: linear-gradient(135deg, var(--marques-brand-600), var(--marques-brand-800)); }
.media--green    { background: linear-gradient(135deg, var(--palette-green-500), var(--palette-green-800)); }
.media--semences { background: linear-gradient(135deg, var(--palette-semences-500), var(--palette-semences-800)); }
.media--groupe   { background: linear-gradient(135deg, var(--palette-groupe-500), var(--palette-groupe-900)); }
.media--energie  { background: linear-gradient(135deg, var(--palette-energie-500), var(--palette-energie-800)); }
.media--plateau  { background: linear-gradient(135deg, var(--palette-plateau-central-500), var(--palette-plateau-central-800)); }
.media .ragt-icon { width: 48px; height: 48px; opacity: var(--opacity-50); }

.media--s { height: 180px; }

/* Une tuile de gamme : pastille du Design System + texte. */
.tile {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-12);
  height: 100%;
  padding: var(--spacing-24);
  border: var(--borders-s) solid var(--palette-neutral-200);
  border-radius: var(--radius-m);
  background: var(--palette-neutral-white);
  text-decoration: none;
  color: inherit;
  transition: border-color .12s, box-shadow .12s;
}

.tile:hover {
  border-color: var(--marques-brand-400);
  box-shadow: var(--shadow-card);
}

.tile__title {
  font-size: var(--texts-body-large-font-size);
  line-height: var(--texts-body-large-line-height);
  font-weight: 600;
  color: var(--palette-neutral-900);
}

/* ========================================================================== */
/* Catalogue                                                                  */
/* ========================================================================== */

.catalog { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: var(--spacing-48); align-items: start; }

.filters {
  position: sticky;
  top: calc(var(--header-offset) + var(--spacing-16));
  display: flex;
  flex-direction: column;
  gap: var(--spacing-24);
  padding: var(--spacing-24);
  border: var(--borders-s) solid var(--palette-neutral-200);
  border-radius: var(--radius-m);
  background: var(--palette-neutral-white);
}

.filters__group { display: flex; flex-direction: column; gap: var(--spacing-8); }

.filters__legend {
  margin: 0;
  padding: 0;
  font-size: var(--texts-ui-label-font-size);
  line-height: var(--texts-ui-label-line-height);
  font-weight: 600;
  color: var(--palette-neutral-900);
}

.filters fieldset { margin: 0; padding: 0; border: 0; }

.results-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-16);
  margin-bottom: var(--spacing-24);
}

.results-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: var(--spacing-24); }
.results-grid .ragt-card,
.results-grid .ragt-skeleton-card { width: 100%; height: 100%; }

.active-filters { display: flex; flex-wrap: wrap; align-items: center; gap: var(--spacing-8); margin-bottom: var(--spacing-16); }

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-16);
  padding: var(--spacing-64) var(--spacing-24);
  border: var(--borders-s) dashed var(--palette-neutral-300);
  border-radius: var(--radius-m);
  text-align: center;
}

@media (max-width: 1199px) {
  .catalog { grid-template-columns: minmax(0, 1fr); gap: var(--spacing-24); }
  .filters { position: static; }
}

/* ========================================================================== */
/* Fiche variété                                                              */
/* ========================================================================== */

.sheet { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: var(--spacing-48); align-items: start; }

.sheet__aside {
  position: sticky;
  top: calc(var(--header-offset) + var(--spacing-16));
  display: flex;
  flex-direction: column;
  gap: var(--spacing-16);
  padding: var(--spacing-24);
  border: var(--borders-s) solid var(--palette-neutral-200);
  border-radius: var(--radius-m);
  background: var(--palette-neutral-white);
}

.sheet__price { display: flex; align-items: baseline; gap: var(--spacing-8); }

.tabpanel[hidden] { display: none; }
.tabpanel { padding-top: var(--spacing-32); }

.spec-table { width: 100%; border-collapse: collapse; font-size: var(--texts-body-small-font-size); line-height: var(--texts-body-small-line-height); }
.spec-table caption { text-align: left; padding-bottom: var(--spacing-12); color: var(--palette-neutral-600); font-size: var(--texts-ui-small-font-size); }
.spec-table th, .spec-table td { padding: var(--spacing-12) var(--spacing-8); text-align: left; border-bottom: var(--borders-s) solid var(--palette-neutral-200); }
.spec-table thead th { font-weight: 600; color: var(--palette-neutral-900); border-bottom-color: var(--palette-neutral-300); }
.spec-table tbody th { font-weight: 500; color: var(--palette-neutral-700); }
.spec-table tbody tr:hover { background: var(--palette-neutral-100); }

.rating {
  position: relative;
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr) 48px auto;
  align-items: center;
  gap: var(--spacing-16);
}
.rating__label { font-size: var(--texts-body-small-font-size); color: var(--palette-neutral-700); }
.rating__score { font-size: var(--texts-body-small-bold-font-size); font-weight: 600; text-align: right; color: var(--palette-neutral-900); }

/* Le bouton qui appelle l'infobulle. `ragt-touch-target` vient du Design
   System : c'est lui qui garantit les 44px de cible, pas ce fichier. */
.rating__help {
  display: inline-flex;
  padding: 0;
  border: 0;
  background: none;
  color: var(--palette-neutral-500);
  cursor: pointer;
}
.rating__help:hover { color: var(--marques-brand-600); }
.rating__help:focus-visible { outline: var(--borders-l) solid var(--palette-blue-600); outline-offset: 2px; border-radius: var(--radius-s); }

/* Le Design System dessine l'infobulle mais ne la place pas — même situation
   que le Dropdown. Ce n'est pas un écart : un composant flottant ne peut pas
   connaître son ancre. */
.rating > .ragt-tooltip {
  position: absolute;
  top: calc(100% + var(--spacing-8));
  right: 0;
  z-index: 30;
}

/* La barre de progression du Design System sert ici de jauge de notation :
   c'est le même composant, on ne fait que poser sa variable. */
.rating .ragt-progress { height: 8px; }
.rating .ragt-progress__fill { background: var(--marques-brand-600); }

.downloads { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: var(--spacing-16); }

.dropdown-wrap { position: relative; }
.dropdown-wrap > .ragt-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + var(--spacing-4));
  z-index: 20;
  /* Figma dessine le panneau sans ombre et bordé de blanc : invisible sur une
     page blanche. Le défaut est signalé dans le dépôt Design System ; en
     attendant l'arbitrage, le site pose son ombre — un menu flottant sans
     bord ni ombre n'est pas utilisable. Écart assumé et daté, à retirer dès
     que le composant tranche. */
  box-shadow: var(--shadow-xl);
}
.dropdown-wrap > .ragt-dropdown[hidden] { display: none; }

@media (max-width: 1199px) {
  .sheet { grid-template-columns: minmax(0, 1fr); gap: var(--spacing-24); }
  .sheet__aside { position: static; }
  .rating { grid-template-columns: 140px minmax(0, 1fr) 40px auto; gap: var(--spacing-8); }
}

/* ========================================================================== */
/* Formulaires de page                                                        */
/* ========================================================================== */

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--spacing-24); }
.form-grid > .span-2 { grid-column: 1 / -1; }

.contact-card {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-24);
  padding: var(--spacing-32);
  border-radius: var(--radius-m);
  background: var(--palette-neutral-white);
  box-shadow: var(--shadow-card);
}

.contact-item { display: flex; gap: var(--spacing-16); align-items: flex-start; }

@media (max-width: 599px) {
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .contact-card { padding: var(--spacing-20); }
}

/* ========================================================================== */
/* Nos sites — le fond du composant Pin Card                                  */
/* ========================================================================== */

/* Le Design System livre la fiche d'un point, pas la carte du territoire : il
   n'y a pas de composant Map au CDN. Le fond est donc un schéma, dessiné ici en
   dégradés de la rampe de marque — aucune tuile, aucune dépendance, et rien
   qui prétende être une géographie. Les repères sont posés en `--x` / `--y`,
   deux pourcentages écrits dans le HTML. */
.sites-map {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-m);
  border: var(--borders-s) solid var(--marques-brand-200);
  background:
    radial-gradient(60% 50% at 30% 35%, var(--marques-brand-200) 0%, transparent 70%),
    radial-gradient(45% 40% at 70% 70%, var(--marques-brand-300) 0%, transparent 70%),
    var(--palette-neutral-white);
}

.sites-map__legend {
  position: absolute;
  inset-inline-start: var(--spacing-16);
  top: var(--spacing-16);
  font-size: var(--texts-ui-small-font-size);
  line-height: var(--texts-ui-small-line-height);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--palette-neutral-500);
}

.sites-pin {
  position: absolute;
  inset-inline-start: var(--x);
  top: var(--y);
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-8);
  padding: var(--spacing-8) var(--spacing-16) var(--spacing-8) var(--spacing-12);
  border: var(--borders-s) solid var(--marques-brand-300);
  border-radius: var(--radius-full);
  background: var(--palette-neutral-white);
  box-shadow: var(--shadow-card);
  color: var(--marques-brand-700);
  font-family: var(--font-core);
  font-size: var(--texts-ui-small-font-size);
  line-height: var(--texts-ui-small-line-height);
  font-weight: 600;
  cursor: pointer;
  transition: transform .18s var(--ease-out);
}

.sites-pin:hover { transform: translate(-50%, -50%) scale(1.04); }
.sites-pin:focus-visible { outline: var(--borders-l) solid var(--palette-blue-600); outline-offset: 2px; }
.sites-pin[aria-expanded="true"] { background: var(--marques-brand-600); border-color: var(--marques-brand-600); color: var(--palette-neutral-white); }

.sites-card {
  position: absolute;
  /* Le bord gauche suit le repère, sans jamais sortir du cadre : `clamp`
     retient la fiche quand le repère est trop à droite. 448px est la largeur
     que le composant se donne. */
  inset-inline-start: clamp(0px, var(--x, 50%), 100% - 448px);
  bottom: var(--spacing-16);
  z-index: 20;
}

/* L'entrée de la liste, à côté du schéma : la même commande, en texte. */
.site-item {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-4);
  padding: var(--spacing-12) var(--spacing-16);
  text-align: left;
  border: var(--borders-s) solid var(--palette-neutral-300);
  border-radius: var(--radius-m);
  background: var(--palette-neutral-white);
  font-family: var(--font-core);
  cursor: pointer;
  transition: border-color .18s var(--ease-out);
}
.site-item:hover { border-color: var(--marques-brand-500); }
.site-item:focus-visible { outline: var(--borders-l) solid var(--palette-blue-600); outline-offset: 2px; }

@media (max-width: 899px) {
  /* Sous cette largeur, une fiche de 448px flottant sur un schéma de 400px n'a
     plus de sens : elle reprend sa place dans le flux, sous la carte. */
  .sites-map { aspect-ratio: 4 / 3; }
  .sites-card { position: static; width: 100%; margin-top: var(--spacing-16); }
}

@media (max-width: 599px) {
  /* Trois étiquettes nommées sur un schéma de 400px se chevauchent : il ne
     reste que la pastille, et la liste à côté porte les noms. */
  .sites-pin__name { display: none; }
  .sites-pin { padding: var(--spacing-8); }
}

/* ========================================================================== */
/* Notifications                                                              */
/* ========================================================================== */

/* Le toast du Design System n'a pas de position : il ne décide pas où il vit.
   C'est au site de le poser. */
.toast-stack {
  position: fixed;
  right: var(--spacing-24);
  bottom: var(--spacing-24);
  z-index: 60;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-12);
  width: min(440px, calc(100vw - var(--spacing-48)));
}

.toast-stack .ragt-toast {
  box-shadow: var(--shadow-xl);
  animation: toast-in .28s var(--ease-out);
}

@keyframes toast-in {
  from { opacity: var(--opacity-0); translate: 0 var(--spacing-16); }
  to   { opacity: var(--opacity-100); translate: 0 0; }
}

@media (prefers-reduced-motion: reduce) {
  .toast-stack .ragt-toast { animation: none; }
}

/* ========================================================================== */
/* Pied de page                                                               */
/* ========================================================================== */

.site-footer {
  padding-top: var(--spacing-64);
  background: var(--palette-neutral-900);
  color: var(--palette-neutral-300);
}

.site-footer h3 {
  margin-bottom: var(--spacing-16);
  font-size: var(--texts-ui-label-font-size);
  line-height: var(--texts-ui-label-line-height);
  letter-spacing: .12em;
  color: var(--palette-neutral-white);
}

/* La déclinaison `white` du logotype : le pied n'a plus à le recolorer. */
.site-footer__logo { display: block; height: 28px; width: auto; }

.site-footer__cols { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: var(--spacing-48); }
.site-footer__links { display: flex; flex-direction: column; align-items: flex-start; gap: var(--spacing-12); }

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-16);
  margin-top: var(--spacing-48);
  padding-block: var(--spacing-24);
  border-top: var(--borders-s) solid var(--palette-neutral-800);
  font-size: var(--texts-ui-small-font-size);
  line-height: var(--texts-ui-small-line-height);
  color: var(--palette-neutral-500);
}

@media (max-width: 1199px) {
  .site-footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--spacing-32); }
}

@media (max-width: 599px) {
  .site-footer__cols { grid-template-columns: minmax(0, 1fr); }
}

/* ========================================================================== */
/* Divers                                                                     */
/* ========================================================================== */

/* Le sprite injecté par `site.js` : il est dans le flux, il ne doit rien
   occuper ni être lu à voix haute. */
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* Le bandeau d'avertissement quand le CDN n'a pas répondu. Il ne peut pas
   utiliser de token — par définition, il n'y en a pas. */
.ds-down {
  padding: 12px 16px;
  background: #fff1f2;
  border-bottom: 2px solid #ce2d2d;
  color: #a82222;
  font: 14px/1.5 system-ui, sans-serif;
  text-align: center;
}

[hidden] { display: none !important; }
