/*
 * Actualités Kerveat (« Du nouveau à l’Ouest ! ») : styles de base, sobres, que le thème enfant affinera par
 * les variables --kv-*. Couleurs choisies pour un contraste d'au moins 4,5:1 sur blanc.
 * Seul mouvement : au survol, une photo qui grossit à peine et une flèche qui avance (souris seulement, coupé si
 * l'appareil demande moins d'animations).
 */

.kv-actus,
.kv-actus-entete,
.kv-accueil-actus,
.kv-actu,
.kv-bandeau {
  --kv-espace: clamp(0.75rem, 2vw, 1.25rem);
  --kv-rayon: 6px;
  --kv-texte: #414141; /* texte du thème PRS01 de la prod */
  --kv-texte-doux: #566256;
  --kv-vert: #4d6b4a;
  --kv-vert-fonce: #2f4430;
  --kv-bordeaux: #8c2443;
  --kv-fond-doux: #f3f5ef;
  --kv-filet: #dde3d6;
  /* police des titres du thème PRS01 de la prod (Yoan, 13/11 : tout semblable à la prod) */
  --kv-police-titre: "Poppins", Helvetica, sans-serif;
}
/* l'ancien thème centre le texte de l'accueil et force la couleur et la taille des paragraphes */
.kv-actus,
.kv-accueil-actus,
.kv-actu { color: var(--kv-texte); text-align: left; }

/* ───────────── page des actualités ─────────────
 * Le titre en grand, sans le cadre « carte » du thème. L'annonce boutique du moment en avis bordeaux pâle juste
 * dessous. La une : grande photo à gauche, texte à droite (téléphone : l'un sous l'autre) ; sans photo, une affiche
 * vert foncé comme sur l'accueil. Les suivantes en rangs séparés par un filet, puis les archives par année.
 * Mouvement : au survol seulement, les mêmes que le bloc de l'accueil, coupés si l'appareil demande moins d'animations.
 */

#main .kv-actus-entete { margin: clamp(1.25rem, 3vw, 2.25rem) 0 clamp(1.5rem, 3vw, 2.25rem); }
.kv-actus-entete__titre {
  margin: 0;
  color: var(--kv-texte);
  font-family: var(--kv-police-titre);
  font-size: clamp(2.125rem, 1.4rem + 2.8vw, 3.5rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.025em;
  text-align: left;
  text-transform: none;
  text-wrap: balance;
  overflow-wrap: break-word;
}
.kv-actus-entete__intro {
  max-width: 62ch;
  margin-top: 1rem;
  color: var(--kv-texte-doux);
  font-size: 1.0625rem;
  line-height: 1.65;
}
.kv-actus-entete__intro p { margin: 0 0 0.75em; color: inherit; font-size: inherit; line-height: inherit; }

#main .kv-actus {
  --kv-rayon-grand: clamp(14px, 1.6vw, 22px);
  --kv-survol: #f7f9f3;
  margin-bottom: clamp(3.5rem, 7vw, 6rem);
}
.kv-actus a { -webkit-tap-highlight-color: transparent; }

/* éléments communs : surtitre (modèle + date), pastille du modèle, dates et lieu */
.kv-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem 0.75rem;
  align-items: center;
  margin: 0;
  color: var(--kv-texte-doux);
  font-size: 0.8125rem;
  line-height: 1.4;
  letter-spacing: 0.02em;
}
.kv-pastille {
  padding: 0.2rem 0.625rem;
  border-radius: 999px;
  background: rgb(140 36 67 / 0.08);
  color: var(--kv-bordeaux);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.kv-quand {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--kv-vert-fonce);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.4;
}
.kv-quand li { display: flex; gap: 0.4rem; align-items: flex-start; }
.kv-quand .kv-icone { width: 1.05em; height: 1.05em; margin-top: 0.15em; color: var(--kv-vert); }
/* le lien du titre couvre toute l'actualité */
.kv-avis__lien,
.kv-alaune__lien,
.kv-rang__lien,
.kv-archive__lien,
.kv-avis__lien:hover,
.kv-alaune__lien:hover,
.kv-rang__lien:hover,
.kv-archive__lien:hover,
.kv-avis__lien:focus,
.kv-alaune__lien:focus,
.kv-rang__lien:focus,
.kv-archive__lien:focus { color: inherit; text-decoration: none; }
.kv-avis__lien::after,
.kv-alaune__lien::after,
.kv-rang__lien::after,
.kv-archive__lien::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.kv-avis__lien:focus-visible,
.kv-alaune__lien:focus-visible,
.kv-rang__lien:focus-visible,
.kv-archive__lien:focus-visible { outline: none; }

/* l'annonce du moment */
.kv-avis {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.875rem 1rem;
  align-items: start;
  margin-bottom: clamp(1.75rem, 3.5vw, 2.75rem);
  padding: 1.125rem 1.125rem 1.25rem;
  border: 1px solid rgb(140 36 67 / 0.16);
  border-radius: 14px;
  background: #fbf3f5;
  transition: border-color 150ms ease;
}
.kv-avis + .kv-avis { margin-top: calc(-1 * clamp(1rem, 2.5vw, 2rem)); }
.kv-avis:focus-within { outline: 3px solid var(--kv-bordeaux); outline-offset: 3px; }
/* téléphone : sans le rond (le fond bordeaux pâle et la pastille suffisent), le texte prend toute la largeur */
.kv-avis__icone {
  display: none;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: var(--kv-bordeaux);
  color: #fff;
}
.kv-avis__icone .kv-icone { width: 1.3rem; height: 1.3rem; }
.kv-avis__texte { display: grid; gap: 0.4rem; min-width: 0; }
.kv-avis__quand { color: var(--kv-bordeaux); font-size: 0.9375rem; font-weight: 600; letter-spacing: 0; }
.kv-avis__titre {
  margin: 0;
  color: var(--kv-texte);
  font-family: var(--kv-police-titre);
  font-size: clamp(1.125rem, 1rem + 0.5vw, 1.375rem);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0;
  text-transform: none;
}
.kv-avis__chapo { max-width: 75ch; margin: 0; color: var(--kv-texte-doux); font-size: 0.9375rem; line-height: 1.6; }
.kv-avis__fleche {
  display: none;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid rgb(140 36 67 / 0.2);
  border-radius: 50%;
  background: #fff;
  color: var(--kv-bordeaux);
  transition: background-color 150ms ease, color 150ms ease;
}
.kv-avis__fleche .kv-icone { width: 1.125rem; height: 1.125rem; }
@media (min-width: 576px) {
  .kv-avis { grid-template-columns: auto minmax(0, 1fr) auto; gap: 1.25rem; align-items: center; padding: 1.375rem 1.75rem; }
  .kv-avis__icone { display: grid; width: 3.25rem; height: 3.25rem; }
  .kv-avis__icone .kv-icone { width: 1.5rem; height: 1.5rem; }
  .kv-avis__fleche { display: grid; }
}

/* à la une */
.kv-alaune { position: relative; border-radius: var(--kv-rayon-grand); }
.kv-alaune:focus-within { outline: 3px solid var(--kv-vert); outline-offset: 6px; }
.kv-alaune--photo { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.25rem; }
.kv-alaune__image {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--kv-rayon-grand);
  background: var(--kv-filet);
}
.kv-alaune__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.kv-alaune__corps { display: grid; gap: 0.875rem; align-content: center; justify-items: start; min-width: 0; }
.kv-alaune__titre {
  margin: 0;
  color: var(--kv-texte);
  font-family: var(--kv-police-titre);
  font-size: clamp(1.625rem, 1.2rem + 1.6vw, 2.375rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-transform: none;
  text-wrap: balance;
  justify-self: stretch; /* toute la colonne : un mot trop long se coupe au lieu de déborder */
  overflow-wrap: break-word;
}
.kv-alaune__chapo {
  display: -webkit-box;
  max-width: 48ch;
  margin: 0;
  overflow: hidden;
  color: var(--kv-texte-doux);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
}
/* « Lire la suite » : l'allure du bouton « Toutes les nouvelles » de l'accueil (le vrai lien est le titre) */
.kv-alaune__suite {
  display: inline-flex;
  gap: 0.5rem;
  align-items: center;
  min-height: 48px;
  margin-top: 0.5rem;
  padding: 0.625rem 1.375rem;
  border: 1.5px solid var(--kv-vert);
  border-radius: 999px;
  background: #fff;
  color: var(--kv-vert-fonce);
  font-size: 0.9375rem;
  font-weight: 600;
  white-space: nowrap;
  transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease;
}
.kv-alaune__suite .kv-icone { width: 1.125rem; height: 1.125rem; transition: transform 200ms cubic-bezier(0.2, 0.8, 0.2, 1); }
@media (min-width: 768px) {
  .kv-alaune--photo {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: clamp(1.75rem, 4vw, 3.75rem);
    align-items: center;
  }
}

/* à la une sans photo : une affiche pleine, le pictogramme du modèle en grand filigrane (comme l'accueil) */
.kv-alaune--affiche {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: clamp(18rem, 34vw, 26rem);
  padding: clamp(1.5rem, 4vw, 3.25rem);
  overflow: hidden;
  isolation: isolate;
  background: var(--kv-vert-fonce);
}
.kv-alaune__motif {
  position: absolute;
  top: -14%;
  right: -6%;
  z-index: -1;
  width: min(55%, 24rem);
  aspect-ratio: 1;
  color: rgb(255 255 255 / 0.1);
  pointer-events: none;
}
.kv-alaune__motif .kv-icone { width: 100%; height: 100%; stroke-width: 1.25; }
.kv-alaune--affiche .kv-alaune__corps { max-width: 42rem; }
.kv-alaune--affiche .kv-alaune__titre,
.kv-alaune--affiche .kv-quand,
.kv-alaune--affiche .kv-quand .kv-icone { color: #fff; }
.kv-alaune--affiche .kv-alaune__titre { font-size: clamp(1.75rem, 1.15rem + 2.2vw, 2.75rem); }
.kv-alaune--affiche .kv-meta,
.kv-alaune--affiche .kv-alaune__chapo { color: rgb(255 255 255 / 0.86); }
.kv-alaune--affiche .kv-pastille { background: rgb(255 255 255 / 0.16); color: #fff; }
.kv-alaune--affiche .kv-alaune__suite { border-color: #fff; background: transparent; color: #fff; }
.kv-alaune--affiche:focus-within { outline-color: var(--kv-vert-fonce); }

/* titres des blocs « Aussi en ce moment » et « Archives » */
.kv-actus__bloc { margin-top: clamp(3.5rem, 7vw, 5.5rem); }
.kv-actus__bloc-titre {
  margin: 0 0 clamp(0.75rem, 1.5vw, 1rem);
  color: var(--kv-texte);
  font-family: var(--kv-police-titre);
  font-size: clamp(1.375rem, 1.2rem + 0.7vw, 1.75rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
  text-align: left;
  text-transform: none;
}

/* les suivantes, en rangs */
.kv-rangs { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--kv-filet); }
.kv-rang {
  position: relative;
  display: grid;
  grid-template-columns: 5.5rem minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
  padding: 1.125rem 0;
  border-bottom: 1px solid var(--kv-filet);
}
.kv-rang:focus-within { outline: 3px solid var(--kv-vert); outline-offset: 2px; border-radius: 6px; }
.kv-rang__vignette {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 12px;
  background: rgb(77 107 74 / 0.1);
  color: var(--kv-vert);
}
.kv-rang--annonce .kv-rang__vignette { background: rgb(140 36 67 / 0.08); color: var(--kv-bordeaux); }
.kv-rang__vignette img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 400ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.kv-rang__vignette .kv-icone { width: 40%; height: 40%; }
.kv-rang__texte { display: grid; gap: 0.5rem; justify-items: start; min-width: 0; }
.kv-rang__titre {
  margin: 0;
  color: var(--kv-texte);
  font-family: var(--kv-police-titre);
  font-size: clamp(1.0625rem, 0.95rem + 0.6vw, 1.5rem);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.01em;
  text-transform: none;
  text-wrap: balance;
}
.kv-rang__chapo {
  display: none;
  max-width: 70ch;
  margin: 0;
  overflow: hidden;
  color: var(--kv-texte-doux);
  font-size: 0.9375rem;
  line-height: 1.6;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}
@media (min-width: 576px) {
  .kv-rang__chapo { display: -webkit-box; }
}
@media (min-width: 768px) {
  .kv-rang {
    grid-template-columns: clamp(13rem, 24vw, 17.5rem) minmax(0, 1fr);
    gap: clamp(1.5rem, 3.5vw, 2.75rem);
    align-items: center;
    padding: clamp(1.5rem, 2.5vw, 2rem) 0;
  }
  .kv-rang__vignette { aspect-ratio: 3 / 2; border-radius: 14px; }
  .kv-rang__vignette .kv-icone { width: 26%; height: 26%; }
  .kv-rang__texte { gap: 0.625rem; }
}

/* plus rien en cours */
.kv-actus__vide {
  display: flex;
  gap: 1rem;
  align-items: center;
  padding: 1.5rem 1.75rem;
  border-radius: 14px;
  background: var(--kv-fond-doux);
}
.kv-actus__vide { flex-wrap: wrap; }
.kv-actus__vide p { flex: 1 1 12rem; margin: 0; color: var(--kv-texte); font-size: 1.0625rem; line-height: 1.55; }
.kv-actus .kv-actus__vide-lien {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0.625rem 1.375rem;
  border: 1.5px solid var(--kv-vert);
  border-radius: 999px;
  background: #fff;
  color: var(--kv-vert-fonce);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease;
}
.kv-actus .kv-actus__vide-lien:focus-visible { outline: 3px solid var(--kv-vert); outline-offset: 3px; }
@media (hover: hover) and (pointer: fine) {
  .kv-actus .kv-actus__vide-lien:hover { border-color: var(--kv-vert-fonce); background: var(--kv-vert-fonce); color: #fff; }
}
.kv-actus__vide-icone {
  display: grid;
  flex: none;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: #fff;
  color: var(--kv-vert);
}
.kv-actus__vide-icone .kv-icone { width: 1.3rem; height: 1.3rem; }

/* archives : une année par ligne, + / − pour ouvrir */
.kv-archives .kv-actus__bloc-titre + .kv-annee { border-top: 1px solid var(--kv-filet); }
.kv-annee { border-bottom: 1px solid var(--kv-filet); }
.kv-annee__entete {
  display: flex;
  gap: 1rem;
  align-items: center;
  min-height: 64px;
  padding: 0.75rem 0;
  cursor: pointer;
  list-style: none;
}
.kv-annee__entete::-webkit-details-marker { display: none; }
.kv-annee__entete:focus-visible { outline: 3px solid var(--kv-vert); outline-offset: 2px; border-radius: 6px; }
.kv-annee__an {
  color: var(--kv-texte);
  font-family: var(--kv-police-titre);
  font-size: clamp(1.375rem, 1.2rem + 0.8vw, 1.875rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}
.kv-annee__nombre { color: var(--kv-texte-doux); font-size: 0.9375rem; }
.kv-annee__signe {
  position: relative;
  flex: none;
  width: 2.5rem;
  height: 2.5rem;
  margin-left: auto;
  border: 1px solid var(--kv-filet);
  border-radius: 50%;
  background: #fff;
  transition: background-color 150ms ease, border-color 150ms ease;
}
.kv-annee__signe::before,
.kv-annee__signe::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0.875rem;
  height: 1.5px;
  margin: -0.75px 0 0 -0.4375rem;
  background: var(--kv-vert-fonce);
}
.kv-annee__signe::after { transform: rotate(90deg); }
.kv-annee[open] .kv-annee__signe::after { display: none; }
.kv-archives__liste { display: grid; gap: 0.5rem; margin: 0.5rem 0 1.25rem; padding: 0; list-style: none; }
.kv-archive {
  position: relative;
  display: grid;
  grid-template-columns: 3.5rem minmax(0, 1fr);
  grid-template-areas: "vignette meta" "vignette titre";
  gap: 0.2rem 1rem;
  align-items: center;
  padding: 0.5rem;
  margin-inline: -0.5rem;
  border-radius: 10px;
  transition: background-color 150ms ease;
}
.kv-archive:focus-within { outline: 3px solid var(--kv-vert); outline-offset: 0; }
.kv-archive__vignette {
  display: grid;
  grid-area: vignette;
  place-items: center;
  width: 3.5rem;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 10px;
  background: rgb(77 107 74 / 0.1);
  color: var(--kv-vert);
}
.kv-archive--annonce .kv-archive__vignette { background: rgb(140 36 67 / 0.08); color: var(--kv-bordeaux); }
.kv-archive__vignette img { display: block; width: 100%; height: 100%; object-fit: cover; }
.kv-archive__vignette .kv-icone { width: 1.375rem; height: 1.375rem; }
.kv-archive__meta {
  display: flex;
  flex-wrap: wrap;
  grid-area: meta;
  gap: 0 0.75rem;
  margin: 0;
  color: var(--kv-texte-doux);
  font-size: 0.8125rem;
  line-height: 1.4;
}
.kv-archive__date { font-variant-numeric: tabular-nums; }
.kv-archive__lien {
  grid-area: titre;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.4;
}
@media (min-width: 768px) {
  .kv-archive {
    grid-template-columns: 3.5rem 9.5rem minmax(0, 1fr) auto;
    grid-template-areas: "vignette date titre modele";
    gap: 1.25rem;
  }
  .kv-archive__meta { display: contents; }
  .kv-archive__date { grid-area: date; color: var(--kv-texte-doux); font-size: 0.9375rem; }
  .kv-archive__modele { grid-area: modele; color: var(--kv-texte-doux); font-size: 0.8125rem; }
  .kv-archive__lien { font-size: 1.0625rem; }
}

/* survol (souris) et appui (écran tactile) */
@media (hover: hover) and (pointer: fine) {
  .kv-avis:hover { border-color: rgb(140 36 67 / 0.4); }
  .kv-avis:hover .kv-avis__fleche { background: var(--kv-bordeaux); color: #fff; }
  .kv-avis:hover .kv-avis__titre,
  .kv-alaune:hover .kv-alaune__titre,
  .kv-rang:hover .kv-rang__titre,
  .kv-archive:hover .kv-archive__lien { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
  .kv-alaune--photo:hover .kv-alaune__suite { border-color: var(--kv-vert-fonce); background: var(--kv-vert-fonce); color: #fff; }
  .kv-alaune--affiche:hover .kv-alaune__suite { background: #fff; color: var(--kv-vert-fonce); }
  .kv-archive:hover { background: var(--kv-survol); }
  .kv-annee__entete:hover .kv-annee__signe { border-color: var(--kv-vert); background: var(--kv-survol); }
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .kv-alaune:hover .kv-alaune__image img { transform: scale(1.03); }
  .kv-rang:hover .kv-rang__vignette img { transform: scale(1.05); }
  .kv-alaune:hover .kv-alaune__suite .kv-icone { transform: translateX(3px); }
}
@media (hover: none) {
  .kv-avis:active { border-color: rgb(140 36 67 / 0.4); }
  .kv-alaune--photo:active .kv-alaune__suite { border-color: var(--kv-vert-fonce); background: var(--kv-fond-doux); }
  .kv-rang:active,
  .kv-archive:active { background: var(--kv-survol); }
}

/* ───────────── pictogrammes (_partials/icone.tpl) ───────────── */

.kv-icone { display: inline-block; flex: none; width: 1em; height: 1em; vertical-align: -0.125em; }

/* ───────────── accueil ─────────────
 * Une bande vert très doux. La plus récente « à la une » : grande photo, texte dans une carte blanche posée à
 * cheval sur le bas de la photo (sans photo : une affiche pleine, vert foncé, ou bordeaux pour une annonce).
 * Les suivantes en fil dans un panneau blanc : vignette ou pictogramme du modèle, titre, dates.
 * Ordinateur : la une à gauche, le fil à droite, « Toutes les nouvelles » en haut à droite. Téléphone : l'un
 * sous l'autre, le bouton en bas, sur toute la largeur.
 * Mouvement : seulement au survol (photo qui grossit à peine, flèche qui avance), coupé si l'appareil demande
 * moins d'animations.
 */

.kv-accueil-actus {
  --kv-rayon-grand: clamp(14px, 1.6vw, 22px);
  --kv-chevauchement: clamp(3rem, 7vw, 5.5rem);
  --kv-ombre: 0 1px 2px rgb(47 68 48 / 0.06), 0 14px 36px -14px rgb(47 68 48 / 0.3);
  padding-block: clamp(2.75rem, 6vw, 5rem);
  background: var(--kv-fond-doux);
}
.kv-accueil-actus__cadre {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "entete" "une" "fil" "tout";
  gap: clamp(1.5rem, 3vw, 2.25rem);
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 15px;
}
.kv-accueil-actus__entete { grid-area: entete; }
.kv-une { grid-area: une; }
.kv-fil { grid-area: fil; }
.kv-accueil-actus__tout { grid-area: tout; }

/* en-tête : une seule ligne, le titre du BO (un h2) avec le graphisme d'un surtitre (Hubert, 15/11/2026) ;
   police, taille et marges posées explicitement, le thème PRS01 en impose aux h2 */
.kv-accueil-actus__surtitre {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  margin: 0;
  color: var(--kv-vert);
  font-family: var(--kv-police-titre);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  line-height: 1.2;
  text-align: left;
  text-transform: uppercase;
}
.kv-accueil-actus__surtitre .kv-icone { width: 1.125rem; height: 1.125rem; }

/* « Toutes les nouvelles » : bouton contour, plein au survol */
.kv-accueil-actus .kv-accueil-actus__tout {
  display: inline-flex;
  gap: 0.5rem;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.625rem 1.375rem;
  border: 1.5px solid var(--kv-vert);
  border-radius: 999px;
  background: #fff;
  color: var(--kv-vert-fonce);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 200ms ease, border-color 200ms ease, color 200ms ease;
}
.kv-accueil-actus .kv-accueil-actus__tout:hover,
.kv-accueil-actus .kv-accueil-actus__tout:focus-visible {
  border-color: var(--kv-vert-fonce);
  background: var(--kv-vert-fonce);
  color: #fff;
  text-decoration: none;
}
.kv-accueil-actus .kv-accueil-actus__tout:focus-visible { outline: 3px solid var(--kv-vert); outline-offset: 3px; }
.kv-accueil-actus__tout .kv-icone { width: 1.125rem; height: 1.125rem; transition: transform 200ms cubic-bezier(0.2, 0.8, 0.2, 1); }

/* textes communs à la une et au fil */
.kv-une__surtitre,
.kv-fil__surtitre {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem 0.75rem;
  align-items: center;
  margin: 0;
  color: var(--kv-texte-doux);
  font-size: 0.8125rem;
  line-height: 1.4;
  letter-spacing: 0.02em;
}
.kv-une__modele,
.kv-fil__modele {
  padding: 0.2rem 0.625rem;
  border-radius: 999px;
  background: rgb(140 36 67 / 0.08);
  color: var(--kv-bordeaux);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.kv-une__lien,
.kv-une__lien:hover,
.kv-une__lien:focus,
.kv-fil__lien,
.kv-fil__lien:hover,
.kv-fil__lien:focus { color: inherit; text-decoration: none; }
/* toute l'actualité est cliquable : le lien du titre la couvre */
.kv-une__lien::after,
.kv-fil__lien::after { content: ""; position: absolute; inset: 0; }
.kv-une__lien:focus-visible,
.kv-fil__lien:focus-visible { outline: none; }
.kv-une__quand,
.kv-fil__quand {
  display: flex;
  gap: 0.4rem;
  align-items: flex-start;
  margin: 0;
  color: var(--kv-vert-fonce);
  font-weight: 600;
  line-height: 1.4;
}
.kv-une__quand .kv-icone,
.kv-fil__quand .kv-icone { width: 1.05em; height: 1.05em; margin-top: 0.15em; }

/* à la une */
.kv-une { position: relative; min-width: 0; border-radius: var(--kv-rayon-grand); }
.kv-une:focus-within { outline: 3px solid var(--kv-vert); outline-offset: 4px; }
.kv-une--photo {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto var(--kv-chevauchement) auto;
}
.kv-une__image {
  grid-area: 1 / 1 / 3 / 2;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--kv-rayon-grand);
  background: var(--kv-filet);
}
.kv-une__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.kv-une__corps { display: grid; gap: 0.75rem; justify-items: start; }
/* la carte blanche à cheval sur le bas de la photo (élément de grille : z-index sans position, le lien couvre
   donc toute l'actualité, photo comprise) */
.kv-une--photo .kv-une__corps {
  z-index: 1;
  grid-area: 2 / 1 / 4 / 2;
  max-width: 38rem;
  margin-inline: clamp(0.75rem, 3vw, 1.75rem) clamp(0.75rem, 6vw, 4rem);
  padding: clamp(1.25rem, 2.6vw, 2rem);
  border-radius: calc(var(--kv-rayon-grand) - 4px);
  background: #fff;
  box-shadow: var(--kv-ombre);
}
.kv-une__titre {
  margin: 0;
  color: var(--kv-texte);
  font-family: var(--kv-police-titre);
  font-size: clamp(1.375rem, 1rem + 1.5vw, 2rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
  text-transform: none;
  text-wrap: balance;
}
.kv-une__quand { font-size: 0.9375rem; }
.kv-une__chapo {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: var(--kv-texte-doux);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}
.kv-une__suite {
  display: inline-flex;
  gap: 0.4rem;
  align-items: center;
  margin-top: 0.25rem;
  color: var(--kv-vert);
  font-size: 0.9375rem;
  font-weight: 600;
}
.kv-une__suite .kv-icone { width: 1.1em; height: 1.1em; transition: transform 200ms cubic-bezier(0.2, 0.8, 0.2, 1); }

/* à la une sans photo : une affiche pleine, le pictogramme du modèle en grand filigrane */
.kv-une--affiche {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: clamp(18rem, 34vw, 27rem);
  padding: clamp(1.5rem, 3.5vw, 2.75rem);
  overflow: hidden;
  isolation: isolate; /* le filigrane passe sous le texte sans le sortir du cadre */
  background: var(--kv-vert-fonce);
  box-shadow: var(--kv-ombre);
}
.kv-une--affiche.kv-une--annonce { background: var(--kv-bordeaux); }
.kv-une__motif {
  position: absolute;
  top: -12%;
  right: -8%;
  width: min(60%, 22rem);
  aspect-ratio: 1;
  z-index: -1;
  color: rgb(255 255 255 / 0.1);
  pointer-events: none;
}
.kv-une__motif .kv-icone { width: 100%; height: 100%; stroke-width: 1.25; }
.kv-une--affiche .kv-une__corps { max-width: 40rem; }
.kv-une--affiche .kv-une__titre,
.kv-une--affiche .kv-une__quand,
.kv-une--affiche .kv-une__suite { color: #fff; }
.kv-une--affiche .kv-une__titre { font-size: clamp(1.625rem, 1.1rem + 2vw, 2.5rem); }
.kv-une--affiche .kv-une__surtitre,
.kv-une--affiche .kv-une__chapo { color: rgb(255 255 255 / 0.86); }
.kv-une--affiche .kv-une__modele { background: rgb(255 255 255 / 0.16); color: #fff; }
.kv-une--affiche:focus-within { outline-color: var(--kv-vert-fonce); }

/* le fil */
.kv-fil {
  min-width: 0;
  margin: 0;
  padding: 0.375rem;
  list-style: none;
  border-radius: var(--kv-rayon-grand);
  background: #fff;
  box-shadow: var(--kv-ombre);
}
/* le thème vide toutes les listes de #main (#main ul { padding: 0 }, un identifiant : aucune classe ne le bat).
   Sans ce rembourrage, pastilles et vignettes du fil étaient à 12 px du bord du panneau, plus près que son arrondi
   (21/11/2026, Yoan : « c'est pas trop collé sur mobile ? ») */
#main .kv-fil { padding: 0.375rem; }
.kv-fil__item {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  padding: 0.875rem;
  border-radius: calc(var(--kv-rayon-grand) - 6px);
  transition: background-color 200ms ease;
}
/* filet entre deux actualités, qui s'efface au survol */
.kv-fil__item + .kv-fil__item::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0.875rem;
  left: 0.875rem;
  border-top: 1px solid var(--kv-filet);
}
.kv-fil__item:focus-within { outline: 3px solid var(--kv-vert); outline-offset: -3px; }
.kv-fil__vignette {
  display: grid;
  place-items: center;
  width: clamp(4.5rem, 9vw, 6rem);
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 14px;
  background: rgb(77 107 74 / 0.1);
  color: var(--kv-vert);
}
.kv-fil__item--annonce .kv-fil__vignette { background: rgb(140 36 67 / 0.08); color: var(--kv-bordeaux); }
.kv-fil__vignette img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 400ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.kv-fil__vignette .kv-icone { width: 42%; height: 42%; }
.kv-fil__texte { display: grid; gap: 0.375rem; min-width: 0; justify-items: start; }
.kv-fil__titre {
  margin: 0;
  color: var(--kv-texte);
  font-family: var(--kv-police-titre);
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.125rem);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0;
  text-transform: none;
}
.kv-fil__quand { font-size: 0.875rem; }
/* le résumé : sur ordinateur seulement, où le fil a la hauteur de la une */
.kv-fil__chapo {
  display: none;
  margin: 0;
  overflow: hidden;
  color: var(--kv-texte-doux);
  font-size: 0.9375rem;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.kv-fil__fleche {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--kv-fond-doux);
  color: var(--kv-vert-fonce);
  transition: background-color 200ms ease, color 200ms ease;
}
.kv-fil__fleche .kv-icone { width: 1.125rem; height: 1.125rem; transition: transform 200ms cubic-bezier(0.2, 0.8, 0.2, 1); }

@media (hover: hover) {
  .kv-une:hover .kv-une__titre,
  .kv-fil__item:hover .kv-fil__titre { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
  .kv-fil__item:hover { background: #f7f9f3; }
  .kv-fil__item:hover::before,
  .kv-fil__item:hover + .kv-fil__item::before { opacity: 0; }
  .kv-fil__item:hover .kv-fil__fleche { background: var(--kv-vert-fonce); color: #fff; }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .kv-une:hover .kv-une__image img { transform: scale(1.03); }
  .kv-fil__item:hover .kv-fil__vignette img { transform: scale(1.06); }
  .kv-une:hover .kv-une__suite .kv-icone,
  .kv-fil__item:hover .kv-fil__fleche .kv-icone,
  .kv-accueil-actus__tout:hover .kv-icone { transform: translateX(3px); }
}

/* téléphone : bouton sur toute la largeur, flèche du fil retirée (toute la ligne est le lien).
   Fil (21/11/2026, Yoan : « pas foufou, adapte un poil mieux », « sur mobile uniquement ») : la vignette de 72 px
   laissait au texte 110 à 180 px ; la pastille du modèle se cassait dans sa bulle (dès 320 px) et le titre tenait
   sur 4 ou 5 lignes. Maintenant la pastille a toute la largeur, en haut ; dessous, une vignette de 56 px, le titre et
   la date à côté. Sous 300 px (fenêtre rétrécie, Galaxy Fold plié), la vignette s'efface et le titre prend la largeur. */
@media (max-width: 575px) {
  .kv-accueil-actus .kv-accueil-actus__tout { width: 100%; }
  /* la carte de la une : même retrait des deux côtés de la photo (12 px à gauche, 23 à droite auparavant : elle
     paraissait collée au bord gauche de la photo) */
  .kv-une--photo .kv-une__corps { margin-inline: 1rem; }
  .kv-fil__item {
    grid-template-columns: 3.5rem minmax(0, 1fr);
    grid-template-areas: "modele modele" "vignette titre" "vignette date" "quand quand";
    gap: 0.375rem 0.875rem;
    align-items: start;
    padding: 0.875rem 0.75rem;
  }
  .kv-fil__texte,
  .kv-fil__surtitre { display: contents; }
  .kv-fil__modele { grid-area: modele; justify-self: start; margin-bottom: 0.25rem; }
  .kv-fil__surtitre time { grid-area: date; }
  .kv-fil__vignette { grid-area: vignette; width: 3.5rem; border-radius: 12px; }
  .kv-fil__titre { grid-area: titre; align-self: end; }
  .kv-fil__quand { grid-area: quand; margin-top: 0.25rem; }
  .kv-fil__fleche { display: none; }
}
@media (max-width: 299px) {
  .kv-fil__item { grid-template-columns: minmax(0, 1fr); grid-template-areas: "modele" "titre" "date" "quand"; }
  .kv-fil__vignette { display: none; }
  /* une pastille qui passe à la ligne reste une étiquette, pas une bulle déformée */
  .kv-une__modele,
  .kv-fil__modele { border-radius: 6px; letter-spacing: 0.04em; }
}
@media (min-width: 576px) {
  .kv-une__image { aspect-ratio: 3 / 2; }
  .kv-accueil-actus__tout { justify-self: start; }
}

/* petit ordinateur, iPad Pro debout (992 à 1 099 px) : le fil n'a qu'environ 400 px ; la pastille du modèle
   (« Votre boutique en ligne », 211 px) se cassait dans sa bulle à côté de la vignette et de la flèche. La flèche
   ronde, décorative (toute la ligne est le lien), s'efface dans cette bande : 60 px de plus pour le texte
   (21/11/2026). */
@media (min-width: 992px) and (max-width: 1099px) {
  .kv-fil__item { grid-template-columns: auto minmax(0, 1fr); }
  .kv-fil__fleche { display: none; }
}

/* ordinateur : la une à gauche, le fil à droite, le bouton en haut à droite */
@media (min-width: 992px) {
  .kv-accueil-actus__cadre {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    grid-template-areas: "entete tout" "une fil";
    column-gap: clamp(2rem, 3.5vw, 3.5rem);
    row-gap: 2.25rem;
  }
  .kv-accueil-actus__entete { align-self: center; }
  .kv-accueil-actus .kv-accueil-actus__tout { align-self: end; justify-self: end; }
  .kv-une { align-self: start; }
  /* le fil prend la hauteur de la une, ses actualités se la partagent */
  .kv-fil { display: flex; flex-direction: column; align-self: stretch; }
  .kv-fil__item { flex: 1 1 auto; gap: 1.25rem; padding: 1.25rem 1rem; }
  .kv-fil__vignette { width: clamp(5.5rem, 7vw, 7rem); }
  .kv-fil__chapo { display: -webkit-box; }
  .kv-accueil-actus--seule .kv-accueil-actus__cadre { grid-template-areas: "entete tout" "une une"; }
}

/* une seule actualité : photo à gauche, carte à cheval à droite (à partir de la tablette) */
@media (min-width: 768px) {
  .kv-accueil-actus--seule .kv-une--photo {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    grid-template-rows: auto;
    align-items: center;
  }
  .kv-accueil-actus--seule .kv-une__image { grid-area: 1 / 1 / 2 / 2; }
  .kv-accueil-actus--seule .kv-une--photo .kv-une__corps {
    grid-area: 1 / 2 / 2 / 3;
    margin: 0 0 0 calc(-1 * clamp(3rem, 6vw, 5rem));
  }
}


/* ───────────── article ─────────────
 * Sans le cadre « carte » du thème. Trois largeurs : la colonne de lecture (41 rem : en-tête, texte), la colonne large
 * (60 rem : photo principale, autres photos), la page (plantes liées). Un seul rythme vertical : --kv-bloc entre deux
 * blocs de l'article, --kv-section avant le panneau des plantes et le retour (21/11/2026, Yoan : « améliore le spacing,
 * pareil pour les images, sur toutes les tailles d'écran »).
 * Photos : jamais recadrées en grand. La photo principale (et une photo seule) prend la largeur que son format permet
 * sous --kv-photo-max de haut (--kv-ratio posé par le gabarit d'après ses dimensions) ; les autres photos sont des
 * vignettes 4:3 dans une grille qui suit leur nombre, entières dans la visionneuse.
 */

#main .kv-actu-page { margin-bottom: clamp(2.5rem, 1.75rem + 2.5vw, 4rem); }
.kv-actu {
  --kv-rayon-grand: clamp(14px, 1.6vw, 22px);
  --kv-lecture: 41rem;
  --kv-large: 60rem;
  --kv-photo-max: min(75vh, 40rem);
  --kv-bloc: clamp(2rem, 1.25rem + 2.5vw, 3.5rem);
  --kv-section: clamp(2.75rem, 1.75rem + 3.5vw, 5rem);
}
@supports (height: 1svh) {
  .kv-actu { --kv-photo-max: min(75svh, 40rem); }
}
.kv-actu a { -webkit-tap-highlight-color: transparent; }
.kv-actu__entete,
.kv-actu__texte { max-width: var(--kv-lecture); margin-inline: auto; }

/* en-tête : surtitre collé au titre, chapô détaché, « Quand / Où » sous un filet */
.kv-actu__entete {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: start;
  margin-bottom: var(--kv-bloc);
  padding-top: clamp(1.25rem, 0.75rem + 2vw, 2.25rem);
}
.kv-actu__entete .kv-meta { margin-bottom: 0.875rem; }
.kv-actu__titre {
  margin: 0;
  color: var(--kv-texte);
  font-family: var(--kv-police-titre);
  font-size: clamp(1.75rem, 1.2rem + 2.6vw, 3.125rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.022em;
  text-align: left;
  text-transform: none;
  text-wrap: balance;
  justify-self: stretch; /* toute la colonne : un mot trop long se coupe au lieu de déborder */
  overflow-wrap: break-word;
}
.kv-actu__archive {
  padding: 0.15rem 0.625rem;
  border: 1px solid var(--kv-filet);
  border-radius: 999px;
  color: var(--kv-texte-doux);
  font-size: 0.75rem;
}
.kv-actu__chapo {
  margin: clamp(0.875rem, 0.7rem + 0.6vw, 1.25rem) 0 0;
  color: var(--kv-texte);
  font-size: clamp(1.125rem, 1.05rem + 0.35vw, 1.3125rem);
  line-height: 1.55;
  text-wrap: pretty;
}
.kv-actu__infos {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 3rem;
  width: 100%;
  margin: clamp(1.25rem, 1rem + 0.8vw, 1.75rem) 0 0;
  padding-top: 1.125rem;
  border-top: 1px solid var(--kv-filet);
}
.kv-actu__infos dt {
  display: flex;
  gap: 0.4rem;
  align-items: center;
  margin-bottom: 0.25rem;
  color: var(--kv-texte-doux);
  font-size: 0.8125rem;
  font-weight: 400;
}
.kv-actu__infos dt .kv-icone { width: 1rem; height: 1rem; color: var(--kv-vert); }
.kv-actu--annonce .kv-actu__infos dt .kv-icone { color: var(--kv-bordeaux); }
.kv-actu__infos dd { margin: 0; color: var(--kv-texte); font-size: 1.125rem; font-weight: 600; line-height: 1.35; }

/* photo principale. La figure prend la largeur que la photo atteint à --kv-photo-max de haut (--kv-w), sans dépasser
   la colonne large ; la légende s'aligne donc sous la photo. Une photo carrée ou couchée qui tomberait juste en deçà
   de la colonne de texte (bords presque alignés : effet raté) est portée à sa largeur, recadrée de 15 % au plus ; une
   photo en hauteur (--haute) reste entière, centrée. Sans dimensions connues : recadrée à --kv-photo-max, comme avant. */
.kv-actu__une,
.kv-actu__photos > li:only-child .kv-actu__photo {
  --kv-w: calc(var(--kv-photo-max) * var(--kv-ratio, 100));
  --kv-recadrage: 1.15;
  width: min(100%, var(--kv-large), max(var(--kv-w), min(var(--kv-lecture), var(--kv-w) * var(--kv-recadrage))));
  margin: 0 auto var(--kv-bloc);
}
.kv-actu__une--haute,
.kv-actu__photos > li:only-child .kv-actu__photo--haute { --kv-recadrage: 1; }
.kv-actu__une img,
.kv-actu__photos > li:only-child img {
  display: block;
  width: 100%;
  height: auto;
  max-height: var(--kv-photo-max);
  object-fit: cover;
  border-radius: var(--kv-rayon-grand);
}
.kv-actu__agrandir { display: block; border-radius: var(--kv-rayon-grand); cursor: zoom-in; }
.kv-actu__agrandir:focus-visible { outline: 3px solid var(--kv-vert); outline-offset: 3px; }
.kv-actu figcaption { margin-top: 0.625rem; color: var(--kv-texte-doux); font-size: 0.875rem; line-height: 1.45; text-align: left; }

/* texte (flow-root : une image restée flottante dans un paragraphe ne déborde pas du texte). Le texte arrive nettoyé
   (KerveatPage::paragraphes puis rendre) : paragraphes, listes, intertitres, photos en <figure>, vidéos, tableaux. */
.kv-actu__texte { display: flow-root; color: var(--kv-texte); font-size: 1.0625rem; line-height: 1.75; overflow-wrap: break-word; }
.kv-actu__texte p,
.kv-actu__texte li,
.kv-actu__texte td,
.kv-actu__texte th { color: inherit; font-size: inherit; line-height: inherit; text-align: left; }
.kv-actu__texte p { margin: 0 0 1.1em; }
.kv-actu__texte > :first-child { margin-top: 0; }
.kv-actu__texte > :last-child { margin-bottom: 0; }
.kv-actu__texte h2,
.kv-actu__texte h3,
.kv-actu__texte h4,
.kv-actu__texte h5,
.kv-actu__texte h6 {
  margin: 1.9em 0 0.6em;
  color: var(--kv-texte);
  font-family: var(--kv-police-titre);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.01em;
  text-align: left;
  text-transform: none;
  text-wrap: balance;
}
.kv-actu__texte h2 { font-size: clamp(1.375rem, 1.25rem + 0.5vw, 1.625rem); }
.kv-actu__texte h3 { font-size: 1.25rem; }
.kv-actu__texte h4,
.kv-actu__texte h5,
.kv-actu__texte h6 { font-size: 1.0625rem; }
.kv-actu__texte strong { color: var(--kv-texte); font-weight: 600; }
.kv-actu__texte a { color: var(--kv-vert); text-decoration: underline; text-underline-offset: 0.18em; }
.kv-actu__texte a:hover { color: var(--kv-vert-fonce); }
.kv-actu__texte ul,
.kv-actu__texte ol { margin: 0 0 1.1em; padding-left: 1.4em; }
.kv-actu__texte ul { list-style: disc; }
.kv-actu__texte ol { list-style: decimal; }
/* le thème vide les listes de #main (#main ul { padding: 0 }) : les puces sortaient de la colonne, au bord de l'écran
   sur téléphone. Les galeries de photos que le module glisse dans le texte restent sans retrait. */
#main .kv-actu__texte ul:not(.kv-page__galerie) { padding-left: 1.4em; }
.kv-actu__texte li { margin: 0 0 0.35em; }
.kv-actu__texte li::marker { color: var(--kv-vert); }
.kv-actu__texte blockquote {
  margin: 1.5em 0;
  padding: 0.25em 0 0.25em 1.25em;
  border-left: 3px solid var(--kv-vert);
  color: var(--kv-texte-doux);
  font-style: italic;
}
.kv-actu__texte hr { margin: 2.5em 0; border: 0; border-top: 1px solid var(--kv-filet); }
.kv-actu__texte img { max-width: 100%; height: auto; border-radius: 10px; }
/* photo dans le texte : entière, centrée, pas plus haute que --kv-photo-max ; la légende suit la largeur de la photo */
.kv-actu__texte .kv-page__figure { width: fit-content; max-width: 100%; margin: 2em auto; }
.kv-actu__texte .kv-page__agrandir { display: block; border-radius: 12px; cursor: zoom-in; }
.kv-actu__texte .kv-page__agrandir:focus-visible { outline: 3px solid var(--kv-vert); outline-offset: 3px; }
.kv-actu__texte .kv-page__figure img { display: block; width: auto; max-width: 100%; height: auto; max-height: var(--kv-photo-max); margin: 0; border-radius: 12px; }
.kv-actu__texte .kv-page__figure figcaption { contain: inline-size; }
.kv-actu__texte .kv-page__legende { color: var(--kv-texte-doux); font-size: 0.875rem; line-height: 1.45; }
.kv-actu__texte .kv-page__video { margin: 2em 0; }
.kv-actu__texte .kv-page__video iframe { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border: 0; border-radius: 12px; background: #000; }
.kv-actu__texte .kv-page__tableau { margin: 1.5em 0; overflow-x: auto; }
.kv-actu__texte .kv-page__tableau table { min-width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.kv-actu__texte .kv-page__tableau th,
.kv-actu__texte .kv-page__tableau td { padding: 0.5rem 0.75rem; border-bottom: 1px solid var(--kv-filet); vertical-align: top; }
.kv-actu__texte .kv-page__galerie { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; margin: 2em 0; padding: 0; list-style: none; }
.kv-actu__texte .kv-page__galerie li { margin: 0; }
.kv-actu__texte .kv-page__galerie li::marker { content: none; }
.kv-actu__texte .kv-page__galerie img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; }

/* autres photos, dans la colonne large. Une seule : comme la photo principale. Sinon des vignettes 4:3 :
   téléphone, 2 par rang (s'il y en a un nombre impair, la première prend tout le rang) ; à partir de 576 px, 3 par
   rang, et les rangs incomplets, placés en premier comme au téléphone, se partagent la largeur (2 → 2 moitiés,
   4 → 2 × 2, 5 → 2 + 3, 7 → 2 + 2 + 3). */
.kv-actu__photos {
  clear: both;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(0.625rem, 0.4rem + 1vw, 1.25rem);
  width: min(100%, var(--kv-large));
  margin: var(--kv-bloc) auto 0;
  padding: 0;
  list-style: none;
}
.kv-actu__photos > li { margin: 0; }
.kv-actu__photo { margin: 0; }
.kv-actu__photo .kv-actu__agrandir { overflow: hidden; border-radius: 14px; }
.kv-actu__photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 400ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.kv-actu__photos > li:only-child { grid-column: 1 / -1; }
.kv-actu__photos > li:only-child .kv-actu__photo { margin-bottom: 0; }
.kv-actu__photos > li:only-child .kv-actu__agrandir { border-radius: var(--kv-rayon-grand); }
.kv-actu__photos > li:only-child img { aspect-ratio: auto; }
@media (max-width: 575.98px) {
  .kv-actu__photos > li:first-child:nth-last-child(odd) { grid-column: 1 / -1; }
}
@media (min-width: 576px) {
  .kv-actu__photos { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .kv-actu__photos > li { grid-column: span 2; }
  .kv-actu__photos:has(> li:last-child:nth-child(3n + 2)) > li:nth-child(-n + 2),
  .kv-actu__photos:has(> li:last-child:nth-child(3n + 4)) > li:nth-child(-n + 4) { grid-column: span 3; }
  .kv-actu__photos > li:only-child { grid-column: 1 / -1; }
}

/* plantes liées : vignettes de la boutique dans un panneau vert doux. Téléphone : bande d'un bord à l'autre.
   Sous 768 px, 2 colonnes ; une plante seule, ou la dernière d'un nombre impair, prend tout le rang en vignette
   couchée (photo à gauche, comme l'affichage « en liste » des rayons) au lieu de laisser un trou. 3 colonnes dès 768 px, 4 sur grand écran pour 4 plantes ou
   7 et plus ; 4 plantes en 2 × 2 entre 768 et 1 199 px. Une plante : dès 768 px, le panneau se cale sur la colonne de
   texte, vignette couchée. Deux plantes dès 992 px : le titre à gauche, les vignettes à droite, à la taille qu'elles
   auraient à trois. */
.kv-actu__produits {
  margin-top: var(--kv-section);
  padding: clamp(1.5rem, 0.9rem + 2.4vw, 3rem);
  border-radius: var(--kv-rayon-grand);
  background: var(--kv-fond-doux);
}
.kv-actu__produits-titre {
  margin: 0 0 clamp(1.25rem, 1rem + 1vw, 1.75rem);
  color: var(--kv-texte);
  font-family: var(--kv-police-titre);
  font-size: clamp(1.375rem, 1.2rem + 0.7vw, 1.75rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
  text-align: left;
  text-transform: none;
  text-wrap: balance;
}
#main .kv-actu__grille {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 0;
}
#main .kv-actu__grille::before,
#main .kv-actu__grille::after { display: none; }
#main .kv-actu__grille > .product-miniature {
  float: none;
  width: auto;
  max-width: none;
  margin: 0;
  padding: 0;
}
@media (max-width: 575.98px) {
  .kv-actu__produits { margin-inline: -15px; padding: 1.75rem 15px 1.25rem; border-radius: 0; }
}
@media (max-width: 767.98px) {
  #main .kv-actu__grille > .product-miniature:last-child:nth-child(odd) { grid-column: 1 / -1; }
  #page .kv-actu__grille > .product-miniature:last-child:nth-child(odd) .kv-vignette { flex-direction: row; }
  #page .kv-actu__grille > .product-miniature:last-child:nth-child(odd) .kv-vignette__media { flex: 0 0 min(42%, 13rem); }
  #page .kv-actu__grille > .product-miniature:last-child:nth-child(odd) .kv-vignette__corps { justify-content: center; }
  #page .kv-actu__grille > .product-miniature:last-child:nth-child(odd) .kv-vignette .kv-vignette__prix { margin-top: 0; }
  #page .kv-actu__grille > .product-miniature:last-child:nth-child(odd) .kv-vignette__action,
  #page .kv-actu__grille > .product-miniature:last-child:nth-child(odd) .kv-vignette__prix ~ .kv-vignette__action { max-width: 16rem; margin-top: 0.5rem; }
}
@media (min-width: 576px) {
  #main .kv-actu__grille { gap: 1.25rem; }
}
@media (min-width: 768px) {
  #main .kv-actu__grille { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
  #main .kv-actu__grille:has(> :nth-child(4):last-child),
  #main .kv-actu__produits--deux .kv-actu__grille { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* une plante : panneau sur la colonne de texte, vignette couchée */
  .kv-actu__produits--une { max-width: var(--kv-lecture); margin-inline: auto; }
  #main .kv-actu__produits--une .kv-actu__grille { grid-template-columns: minmax(0, 1fr); }
  #page .kv-actu__produits--une .kv-vignette { flex-direction: row; }
  #page .kv-actu__produits--une .kv-vignette__media { flex: 0 0 min(42%, 15rem); }
  #page .kv-actu__produits--une .kv-vignette__corps { justify-content: center; padding: 1.25rem 1.5rem; }
  #page .kv-actu__produits--une .kv-vignette .kv-vignette__prix { margin-top: 0; }
  #page .kv-actu__produits--une .kv-vignette__action,
  #page .kv-actu__produits--une .kv-vignette__prix ~ .kv-vignette__action { max-width: 16rem; margin-top: 0.5rem; }
}
@media (min-width: 992px) {
  /* deux plantes : titre sur un tiers, les deux vignettes sur deux */
  .kv-actu__produits--deux { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 1.5rem; align-items: start; }
  .kv-actu__produits--deux .kv-actu__produits-titre { margin: 0; padding-right: 1rem; }
  #main .kv-actu__produits--deux .kv-actu__grille { grid-column: span 2; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1200px) {
  #main .kv-actu__grille:has(> :nth-child(4):last-child),
  #main .kv-actu__grille:has(> :nth-child(7)) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* retour vers toutes les nouvelles : l'allure du bouton de l'accueil */
.kv-actu__retour { margin: var(--kv-section) 0 0; text-align: center; }
.kv-actu .kv-actu__retour-lien {
  display: inline-flex;
  gap: 0.5rem;
  align-items: center;
  min-height: 48px;
  padding: 0.625rem 1.375rem;
  border: 1.5px solid var(--kv-vert);
  border-radius: 999px;
  background: #fff;
  color: var(--kv-vert-fonce);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease;
}
.kv-actu__retour-lien .kv-icone { width: 1.125rem; height: 1.125rem; transition: transform 200ms cubic-bezier(0.2, 0.8, 0.2, 1); }
.kv-actu .kv-actu__retour-lien:focus-visible { outline: 3px solid var(--kv-vert); outline-offset: 3px; }
@media (hover: hover) and (pointer: fine) {
  .kv-actu .kv-actu__retour-lien:hover { border-color: var(--kv-vert-fonce); background: var(--kv-vert-fonce); color: #fff; }
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .kv-actu__photo .kv-actu__agrandir:hover img { transform: scale(1.04); }
  .kv-actu__photos > li:only-child .kv-actu__agrandir:hover img { transform: none; }
  .kv-actu .kv-actu__retour-lien:hover .kv-icone { transform: translateX(-3px); }
}
@media (hover: none) {
  .kv-actu .kv-actu__retour-lien:active { background: var(--kv-fond-doux); }
}

/* ───────────── bandeau de l'annonce du moment ───────────── */

/*
 * 21/11/2026, Yoan : « il faut qu'elle soit fermable, ça prend grave de la place ». Mesuré sur la préprod avec
 * l'annonce de Hubert (144 signes) : 126 px de haut à 320 px (6 lignes), 105 px à 390. Désormais :
 * - un × (44 px au doigt) la ferme ; le module s'en souvient (cookie kv_annonce, views/js/bandeau.js) ;
 * - sur téléphone, la phrase tient sur deux lignes, et tout le bandeau mène à l'article (flèche) : ~54 px ;
 * - au panier et pendant la commande (.kv-bandeau sans --fermable) : en entier, sans ×, comme avant.
 * Taille selon l'appareil (Yoan, 21/11 : « adapte la taille en fonction de l'appareil »), annonce de Hubert :
 *   téléphone debout (< 768 px)          14 px, deux lignes au plus, à gauche     54 px
 *   écran bas (couché, ≤ 500 px de haut)  14 px, une ligne, à gauche              44 px (63 avant : 16 % de l'écran)
 *   tablette, petit portable (< 1 280)   14 px, phrase entière, centrée          54 px, 44 dès ~1 180 (63 avant)
 *   ordinateur (≥ 1 280 px)              15 px, une ligne                        44 px
 */
.kv-bandeau {
  display: grid;
  grid-template-rows: 1fr; /* replié en 0fr à la fermeture : la page remonte au lieu de sauter */
  background: var(--kv-vert-fonce);
  color: #fff;
  transition: grid-template-rows 200ms cubic-bezier(0.2, 0.8, 0.2, 1), opacity 150ms ease-out;
}
.kv-bandeau.est-ferme { grid-template-rows: 0fr; opacity: 0; }
.kv-bandeau__boite {
  position: relative;
  min-height: 0;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
}
.kv-bandeau.est-ferme .kv-bandeau__boite { overflow: hidden; }
.kv-bandeau__texte {
  color: #fff;
  margin: 0;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  line-height: 1.35;
  text-align: center;
}
@media (min-width: 1280px) {
  .kv-bandeau__texte {
    padding-block: 0.65rem;
    font-size: 0.9375rem;
    line-height: 1.4;
  }
}
/* × au bord de l'écran ; place du × des deux côtés, la phrase reste centrée et garde la largeur d'avant (1 200 px
   moins ses marges : l'annonce de Hubert tient sur une ligne à 1 440 px, comme sans ×) */
.kv-bandeau--fermable .kv-bandeau__boite { max-width: none; }
.kv-bandeau--fermable .kv-bandeau__texte {
  max-width: calc(1200px + 4.5rem);
  margin-inline: auto;
  padding-inline: 3.25rem;
}
.kv-bandeau__lien,
.kv-bandeau__lien:hover,
.kv-bandeau__lien:focus {
  margin-left: 0.5rem;
  color: #fff;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.2em;
  white-space: nowrap;
}
.kv-bandeau__lien .kv-icone { display: none; }
.kv-bandeau__lien:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* le bandeau fait au moins la hauteur du × : rien ne dépasse au-dessus ni sur la bande d'en dessous */
.kv-bandeau--fermable .kv-bandeau__boite {
  display: flex;
  align-items: center;
  min-height: 44px;
}
.kv-bandeau--fermable .kv-bandeau__texte { flex: 1 1 auto; min-width: 0; }

/* zone carrée de 44 px au doigt (un bouton rond ne répond pas dans ses coins) ; le rond n'est que dessiné */
.kv-bandeau__fermer {
  position: absolute;
  top: 50%;
  right: 0.25rem;
  z-index: 1; /* au-dessus du lien étiré (téléphone) */
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-top: -22px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.kv-bandeau__fermer::before {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  transition: background-color 150ms ease-out;
}
.kv-bandeau__fermer svg { position: relative; }
.kv-bandeau__fermer[hidden] { display: none; }
.kv-bandeau__fermer:focus { outline: none; }
.kv-bandeau__fermer:focus-visible::before { outline: 2px solid #fff; }
.kv-bandeau__fermer:active::before { background: rgba(255, 255, 255, 0.18); }
@media (hover: hover) and (pointer: fine) {
  .kv-bandeau__fermer:hover::before { background: rgba(255, 255, 255, 0.12); }
}

/* téléphone debout, et tout écran bas (téléphone couché : 320 à 430 px de haut) : deux lignes au plus, à gauche
   (plus facile à lire qu'un bloc centré), flèche et × à droite ; une seule ligne sur écran bas (plus bas) */
@media (max-width: 767.98px), (orientation: landscape) and (max-height: 500px) {
  .kv-bandeau--fermable .kv-bandeau__boite {
    padding-right: 3rem; /* le × */
  }
  .kv-bandeau--fermable .kv-bandeau__texte {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0 0.5rem 1rem;
    font-size: 0.875rem;
    line-height: 1.35;
    text-align: left;
  }
  .kv-bandeau--fermable .kv-bandeau__phrase { flex: 1; min-width: 0; overflow-wrap: anywhere; }
  .kv-bandeau--fermable.kv-bandeau--lien .kv-bandeau__phrase {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
  }
  /* tout le bandeau mène à l'article (sauf le ×) ; « En savoir plus » reste le nom du lien, la flèche le montre.
     Trois classes : passe devant le remplissage « au doigt » du thème (.kv-tete .kv-bandeau__lien) */
  .kv-bandeau.kv-bandeau--fermable .kv-bandeau__lien {
    flex: none;
    display: grid;
    place-items: center;
    margin: 0 0.75rem 0 0; /* la flèche (ouvrir) s'écarte du × (fermer) : deux gestes contraires côte à côte */
    /* une vraie boîte, pas seulement la flèche : axe (target-size) ne compte pas la zone étirée */
    align-self: stretch;
    min-width: 2.75rem;
    min-height: 1.75rem;
    padding: 0;
    text-decoration: none;
  }
  .kv-bandeau--fermable .kv-bandeau__lien::after {
    content: "";
    position: absolute;
    inset: 0;
  }
  .kv-bandeau--fermable .kv-bandeau__lien-texte {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  .kv-bandeau--fermable .kv-bandeau__lien .kv-icone { display: block; width: 1.125rem; height: 1.125rem; }
  .kv-bandeau--fermable .kv-bandeau__lien:focus-visible { outline: none; }
  .kv-bandeau--fermable .kv-bandeau__lien:focus-visible::after { outline: 2px solid #fff; outline-offset: -4px; }
  .kv-bandeau--fermable .kv-bandeau__lien:active::after { background: rgba(255, 255, 255, 0.1); }
}
/* écran bas : la hauteur manque, pas la largeur ; une ligne (la suite se lit dans l'article) */
@media (orientation: landscape) and (max-height: 500px) {
  .kv-bandeau--fermable.kv-bandeau--lien .kv-bandeau__phrase {
    -webkit-line-clamp: 1;
    line-clamp: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .kv-bandeau,
  .kv-bandeau__fermer { transition: none; }
}
