/* ==========================================================================
   Des racines pour demain — identité visuelle
   Palette dérivée du logo (rayons roses) et des palettes de data/ :
   gris foncé pour le texte, roses pour liens/décorations, verts de marque.
   ========================================================================== */

:root {
  --encre: #3b3633;        /* texte courant : gris foncé chaud */
  --titre: #322e2b;        /* titres */
  --sourdine: #6f6862;
  --vert-fonce: #386641;   /* fonds de marque : bandeau newsletter, footer, blocs date */
  --vert: #6a994e;         /* petits repères végétaux : coches, sélection */
  --vert-clair: #a7c957;   /* accents sur fond vert foncé */
  --rose: #b04964;         /* liens et boutons (écho des rayons du logo) */
  --rose-fonce: #93394f;
  --rose-vif: #d4587a;     /* décorations : barrettes de titres, filets */
  --rose-clair: #e9b8c4;   /* liens sur fond vert foncé */
  --creme: #faf7f2;        /* fond principal */
  --papier: #f2e8cf;       /* fond alterné : vanilla cream de la palette Fresh Greens */
  --blanc: #fffdfa;        /* cartes */
  --ligne: #e5ded2;
  --creme-trans: rgba(250, 247, 242, 0.92);

  --font-titre: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --largeur: 74rem;
  --largeur-prose: 60rem;
  --rayon: 14px;
  --ombre: 0 1px 2px rgba(59, 54, 51, 0.05), 0 8px 24px -12px rgba(59, 54, 51, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.125rem;
  color: var(--encre);
  background: var(--creme);
  line-height: 1.7;
}

.wrap {
  max-width: var(--largeur);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
}

.wrap--etroit {
  max-width: calc(var(--largeur-prose) + 2 * clamp(1.25rem, 4vw, 2.5rem));
}

h1, h2, h3 {
  font-family: var(--font-titre);
  color: var(--titre);
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: -0.01em;
}

a {
  color: var(--rose);
}

a:hover {
  color: var(--rose-fonce);
}

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

::selection {
  background: var(--vert);
  color: var(--creme);
}

/* --- Boutons ------------------------------------------------------------- */

.btn {
  display: inline-block;
  padding: 0.72rem 1.5rem;
  border-radius: 999px;
  border: 2px solid transparent;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn--plein {
  background: var(--rose);
  color: #fff;
}

.btn--plein:hover {
  background: var(--rose-fonce);
  color: #fff;
}

.btn--contour {
  border-color: rgba(255, 253, 249, 0.65);
  color: #fff;
}

.btn--contour:hover {
  background: rgba(255, 253, 249, 0.14);
  border-color: #fff;
  color: #fff;
}

/* --- Header -------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--creme-trans);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--ligne);
}

.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-top: 0.8rem;
  padding-bottom: 0.8rem;
}

.site-header .logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-titre);
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--titre);
  text-decoration: none;
}

.site-header .logo img {
  display: block;
  width: 44px;
  height: 44px;
  border-radius: 50%;
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: clamp(0.9rem, 2.5vw, 1.75rem);
}

.site-header nav a:not(.btn) {
  color: var(--encre);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.98rem;
}

.site-header nav a:not(.btn):hover {
  color: var(--rose);
}

.btn--nav {
  padding: 0.5rem 1.15rem;
  font-size: 0.95rem;
}

/* Sous-menu (Ressources) : details/summary natif, sans JavaScript. */

.nav-deroulant {
  position: relative;
}

.nav-deroulant summary {
  list-style: none;
  cursor: pointer;
  color: var(--encre);
  font-weight: 500;
  font-size: 0.98rem;
}

.nav-deroulant summary::-webkit-details-marker {
  display: none;
}

.nav-deroulant summary::after {
  content: "▾";
  margin-left: 0.35rem;
  font-size: 0.7em;
}

.nav-deroulant summary:hover,
.nav-deroulant[open] summary {
  color: var(--rose);
}

.nav-deroulant-panneau {
  position: absolute;
  top: calc(100% + 0.65rem);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  min-width: 11rem;
  padding: 0.4rem;
  background: var(--blanc);
  border: 1px solid var(--ligne);
  border-radius: 12px;
  box-shadow: 0 18px 30px -18px rgba(59, 54, 51, 0.35);
}

.site-header .nav-deroulant-panneau a:not(.btn) {
  padding: 0.55rem 0.8rem;
  border-radius: 8px;
  white-space: nowrap;
}

.site-header .nav-deroulant-panneau a:not(.btn):hover {
  background: var(--creme);
}

/* Loupe de recherche : pilule blanche assortie à la barre de l'accueil. */

.nav-recherche summary::after {
  content: none;
}

.nav-recherche summary i {
  font-size: 1rem;
}

/* Le libellé n'apparaît que dans le panneau mobile, à côté de la loupe. */
.nav-recherche-libelle {
  display: none;
}

.nav-recherche .nav-deroulant-panneau {
  left: auto;
  right: -0.5rem;
  transform: none;
  flex-direction: row;
  align-items: center;
  min-width: 19rem;
  padding: 0.3rem 0.3rem 0.3rem 1rem;
  border-radius: 999px;
  box-shadow: 0 2px 4px rgba(59, 54, 51, 0.06), 0 16px 36px -14px rgba(59, 54, 51, 0.3);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.nav-recherche .nav-deroulant-panneau:focus-within {
  border-color: var(--rose);
  box-shadow: 0 0 0 3px rgba(212, 88, 122, 0.18), 0 16px 36px -14px rgba(59, 54, 51, 0.3);
}

.nav-recherche[open] .nav-deroulant-panneau {
  animation: nav-recherche-apparition 0.18s ease;
}

@keyframes nav-recherche-apparition {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .nav-recherche[open] .nav-deroulant-panneau {
    animation: none;
  }
}

.nav-recherche-form {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  width: 100%;
}

.nav-recherche-form input {
  flex: 1;
  min-width: 0;
  padding: 0.45rem 0.2rem;
  border: none;
  background: transparent;
  font: inherit;
  font-size: 0.95rem;
  color: var(--encre);
}

.nav-recherche-form input::placeholder {
  color: var(--sourdine);
  opacity: 0.8;
}

.nav-recherche-form input:focus {
  outline: none;
}

.nav-recherche-bouton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  padding: 0;
  border-radius: 50%;
  flex-shrink: 0;
}

/* Sur grand écran, la loupe est une pastille ronde qui s'allume à l'ouverture. */
@media (min-width: 821px) {
  .nav-recherche summary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.3rem;
    height: 2.3rem;
    border-radius: 50%;
    transition: background-color 0.15s ease, color 0.15s ease;
  }

  .nav-recherche summary:hover {
    background: var(--papier);
  }

  .nav-recherche[open] summary {
    background: var(--rose);
    color: #fff;
  }
}

@media (max-width: 820px) {
  .nav-recherche-libelle {
    display: inline;
    margin-left: 0.5rem;
  }

  /* Dans le panneau mobile, la pilule blanche garde bordure et fond. */
  .nav-recherche .nav-deroulant-panneau {
    margin: 0.6rem 0 0.3rem;
    background: var(--blanc);
    border: 1px solid var(--ligne);
    border-radius: 999px;
    padding: 0.3rem 0.3rem 0.3rem 1rem;
    min-width: 0;
  }
}

/* Menu mobile : case à cocher masquée + burger (label), panneau déroulant. */

.menu-toggle {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
}

.menu-burger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 2.6rem;
  height: 2.6rem;
  border: 1px solid var(--ligne);
  border-radius: 10px;
  background: var(--blanc);
  cursor: pointer;
}

.menu-burger span,
.menu-burger span::before,
.menu-burger span::after {
  display: block;
  width: 1.15rem;
  height: 2px;
  border-radius: 2px;
  background: var(--encre);
  transition: transform 0.18s ease, background 0.18s ease;
}

.menu-burger span {
  position: relative;
}

.menu-burger span::before,
.menu-burger span::after {
  content: "";
  position: absolute;
  left: 0;
}

.menu-burger span::before {
  top: -6px;
}

.menu-burger span::after {
  top: 6px;
}

.menu-toggle:checked ~ nav {
  display: flex;
}

.menu-toggle:checked + .menu-burger span {
  background: transparent;
}

.menu-toggle:checked + .menu-burger span::before {
  transform: translateY(6px) rotate(45deg);
}

.menu-toggle:checked + .menu-burger span::after {
  transform: translateY(-6px) rotate(-45deg);
}

.menu-toggle:focus-visible + .menu-burger {
  outline: 2px solid var(--rose);
  outline-offset: 2px;
}

@media (max-width: 820px) {
  /* Le burger reste sur la même ligne que le titre, calé à droite :
     plus de passage à la ligne, c'est le titre qui se tronque au besoin. */
  .site-header .wrap {
    flex-wrap: nowrap;
  }

  .site-header .logo {
    min-width: 0;
  }

  .site-header .logo span {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  .menu-burger {
    display: inline-flex;
    flex-shrink: 0;
  }

  .site-header nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.4rem clamp(1.25rem, 4vw, 2.5rem) 1.1rem;
    background: var(--creme);
    border-bottom: 1px solid var(--ligne);
    box-shadow: 0 18px 30px -18px rgba(59, 54, 51, 0.35);
  }

  .site-header nav a:not(.btn) {
    padding: 0.85rem 0.25rem;
    border-bottom: 1px solid var(--ligne);
    font-size: 1.05rem;
  }

  .site-header nav a:not(.btn):last-of-type {
    border-bottom: none;
  }

  .btn--nav {
    margin-top: 0.75rem;
    text-align: center;
  }

  /* Sous-menu intégré au panneau mobile : plus de flottant, juste un retrait. */
  .nav-deroulant summary {
    padding: 0.85rem 0.25rem;
    border-bottom: 1px solid var(--ligne);
    font-size: 1.05rem;
  }

  .nav-deroulant-panneau {
    position: static;
    transform: none;
    min-width: 0;
    padding: 0 0 0 1rem;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
  }

  .site-header .nav-deroulant-panneau a:not(.btn) {
    border-radius: 0;
    border-bottom: 1px solid var(--ligne);
  }

  .site-header .nav-deroulant-panneau a:not(.btn):hover {
    background: transparent;
  }
}

/* --- Hero ----------------------------------------------------------------- */

.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: clamp(26rem, 72vh, 42rem);
  color: #fff;
}

.hero-fond {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(50, 46, 43, 0.30) 0%, rgba(42, 38, 35, 0.42) 55%, rgba(33, 30, 28, 0.82) 100%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  padding-top: 4rem;
  padding-bottom: clamp(2.5rem, 6vw, 4rem);
}

.hero-badge {
  display: inline-block;
  margin: 0 0 1rem;
  padding: 0.4rem 1rem;
  border: 1px solid rgba(255, 253, 250, 0.45);
  border-radius: 999px;
  background: rgba(50, 46, 43, 0.35);
  backdrop-filter: blur(4px);
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.5rem, 6vw, 4.25rem);
  color: #fff;
  text-wrap: balance;
}

.hero-tagline {
  margin: 0.9rem 0 0;
  max-width: 40rem;
  font-size: clamp(1.08rem, 2vw, 1.3rem);
  color: rgba(255, 253, 249, 0.92);
  text-wrap: balance;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.75rem;
}

/* --- Intro (citation) ------------------------------------------------------ */

.intro .wrap {
  padding-top: clamp(1.25rem, 2.5vw, 2rem);
  padding-bottom: clamp(0.10rem, 0.75vw, 0.8rem);
}

.intro blockquote {
  margin: 0 auto;
  padding: 0;
  border: 0;
  max-width: 42rem;
  text-align: center;
  font-family: var(--font-titre);
  font-style: italic;
  font-size: clamp(1.2rem, 2.2vw, 1.5rem);
}

/* Le <p> généré dans la citation garde sinon ses marges navigateur. */
.intro blockquote p {
  margin: 0;
  line-height: 1.4;
  color: var(--vert-fonce);
}

/* --- Sections de l'accueil -------------------------------------------------- */

.section .wrap {
  padding-top: clamp(1.75rem, 3.5vw, 2.75rem);
  padding-bottom: clamp(1.75rem, 3.5vw, 2.75rem);
}

.section h2 {
  margin: 0 0 1.5rem;
  font-size: clamp(1.9rem, 3.4vw, 2.7rem);
  scroll-margin-top: 6rem;
}

.section h2::before {
  content: "";
  display: block;
  width: 3rem;
  height: 3px;
  margin-bottom: 1.1rem;
  border-radius: 2px;
  background: var(--rose-vif);
}

.section p,
.section > .wrap > ul {
  max-width: var(--largeur-prose);
}

.section--reserver,
.section--contact {
  background: var(--papier);
}

/* Piliers de la démarche : la liste devient une grille de cartes */

.section--pepiniere ul {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  max-width: none;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
}

.section--pepiniere li {
  padding: 1.4rem 1.5rem;
  background: var(--blanc);
  border: 1px solid var(--ligne);
  border-radius: var(--rayon);
  box-shadow: var(--ombre);
}

.section--pepiniere li strong {
  display: block;
  margin-bottom: 0.45rem;
  font-family: var(--font-titre);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--vert-fonce);
}

/* Commander : liste en points-clés */

.section--reserver ul {
  list-style: none;
  margin: 1.5rem 0;
  padding: 0;
}

.section--reserver li {
  position: relative;
  padding: 0.35rem 0 0.35rem 2rem;
}

.section--reserver li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0.35rem;
  font-weight: 700;
  color: var(--vert);
}

/* Newsletter : bandeau sombre d'appel à l'action */

.section--newsletter {
  background: var(--vert-fonce);
}

.section--newsletter h2,
.section--newsletter p,
.section--newsletter strong {
  color: var(--creme);
}

.section--newsletter h2::before {
  background: var(--vert-clair);
}

.section--newsletter a:not(.btn) {
  color: var(--rose-clair);
}

.section--newsletter a:not(.btn):hover {
  color: #fff;
}

/* Paragraphe marqué {.cta} dans le markdown : son lien devient un bouton */

.cta a {
  display: inline-block;
  padding: 0.72rem 1.5rem;
  border-radius: 999px;
  background: var(--rose);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.15s ease;
}

.cta a:hover {
  background: var(--rose-fonce);
  color: #fff;
}

/* --- Rendez-vous : cartes --------------------------------------------------- */

.rdv-cartes {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(19rem, 1fr));
  margin: 2rem 0 1rem;
}

.rdv-carte {
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
  padding: 1.25rem 1.4rem;
  background: var(--blanc);
  border: 1px solid var(--ligne);
  border-radius: var(--rayon);
  box-shadow: var(--ombre);
}

.rdv-carte-date {
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0;
  padding: 0.55rem 0.8rem;
  min-width: 4.4rem;
  border-radius: 10px;
  background: var(--vert-fonce);
  color: var(--creme);
  text-align: center;
}

.rdv-jour {
  font-family: var(--font-titre);
  font-size: 1.6rem;
  font-weight: 600;
  line-height: 1.1;
}

.rdv-mois {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}

.rdv-carte-corps h3 {
  margin: 0 0 0.3rem;
  font-size: 1.15rem;
}

.rdv-carte-corps h3 a {
  color: var(--titre);
  text-decoration: none;
}

.rdv-carte-corps h3 a:hover {
  color: var(--rose);
  text-decoration: underline;
}

.rdv-lieu {
  margin: 0;
  font-size: 0.92rem;
  color: var(--sourdine);
}

.rdv-vide {
  color: var(--sourdine);
  font-style: italic;
}

.rdv-toutes {
  margin-top: 1.5rem;
  font-weight: 500;
}

/* Liste simple (rendez-vous passés) */

.rdv-liste {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
  max-width: var(--largeur-prose);
}

.rdv-liste li {
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--ligne);
}

.rdv-date {
  display: inline-block;
  min-width: 10.5rem;
  font-weight: 600;
  color: var(--titre);
}

.rdv-passes {
  color: var(--sourdine);
}

.rdv-passes .rdv-date {
  color: var(--sourdine);
  font-weight: 400;
}

/* --- Pages intérieures ------------------------------------------------------- */

.page > .wrap {
  padding-top: clamp(2.5rem, 6vw, 4rem);
  padding-bottom: clamp(3rem, 7vw, 5rem);
}

.page h1 {
  margin: 0 0 1.25rem;
  font-size: clamp(2rem, 4vw, 3rem);
}

.page h2 {
  margin-top: 2.5rem;
  font-size: 1.6rem;
}

.page .prose p {
  max-width: var(--largeur-prose);
}

.rdv-meta,
.page-meta {
  margin: 0 0 0.4rem;
  font-weight: 600;
  color: var(--rose);
}

.rdv-meta::first-letter,
.page-meta::first-letter {
  text-transform: uppercase;
}

.rdv-retour,
.page-retour {
  margin-top: 2.5rem;
}

/* --- Blog ----------------------------------------------------------------------- */

.blog-annee {
  color: var(--sourdine);
  font-size: 1.25rem;
}

.blog-liste {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
}

.blog-liste li {
  display: flex;
  gap: 1.25rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--ligne);
}

.blog-date {
  flex: 0 0 4.5rem;
  color: var(--sourdine);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.blog-entree a {
  font-weight: 600;
}

.blog-resume {
  margin: 0.15rem 0 0;
  color: var(--sourdine);
  font-size: 0.95rem;
}

/* Images au fil des billets (markdown, shortcodes figure et image). */

.billet img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: var(--ombre);
}

.billet figure {
  margin: 1.75rem 0;
}

.billet figcaption,
.billet figcaption h4 {
  margin: 0.5rem 0 0;
  color: var(--sourdine);
  font-size: 0.9rem;
  font-family: var(--font-body);
  font-weight: 400;
}

/* --- Footer -------------------------------------------------------------------- */

.site-footer {
  background: var(--vert-fonce);
  color: rgba(250, 247, 241, 0.85);
  font-size: 0.95rem;
}

.site-footer a {
  color: var(--rose-clair);
}

.site-footer a:hover {
  color: #fff;
}

/* Icônes réseaux : pastilles rondes discrètes sur le vert foncé. */

.footer-reseaux {
  display: flex;
  gap: 0.7rem;
  margin-top: 1.1rem;
}

.footer-reseaux a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border: 1px solid rgba(250, 247, 241, 0.35);
  border-radius: 50%;
  color: rgba(250, 247, 241, 0.9);
  font-size: 1.05rem;
  text-decoration: none;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.footer-reseaux a:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: #fff;
  color: #fff;
}

.footer-grille {
  display: grid;
  gap: 2rem 3rem;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  padding-top: clamp(2.5rem, 5vw, 4rem);
  padding-bottom: 2rem;
}

.footer-col p {
  margin: 0.35rem 0;
}

.footer-marque {
  font-family: var(--font-titre);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--creme);
  margin-bottom: 0.6rem;
}

.footer-titre {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--vert-clair);
  margin-bottom: 0.6rem;
}

.footer-bas {
  border-top: 1px solid rgba(250, 247, 241, 0.15);
  padding-top: 1.25rem;
  padding-bottom: 1.5rem;
  font-size: 0.85rem;
  color: rgba(250, 247, 241, 0.6);
}

.footer-bas p {
  margin: 0;
}

/* --- Divers ------------------------------------------------------------------- */

blockquote {
  margin: 1.5rem 0;
  padding-left: 1rem;
  border-left: 3px solid var(--rose-vif);
  color: var(--sourdine);
  font-style: italic;
}

/* --- Admonitions (encarts) ------------------------------------------------------ */
/* Shortcode admonition : <details> natif, accent coloré par type via --admo. */

.admonition {
  --admo: var(--vert);
  margin: 1.5rem 0;
  background: var(--blanc);
  border: 1px solid var(--ligne);
  border-left: 4px solid var(--admo);
  border-radius: 10px;
  box-shadow: var(--ombre);
  overflow: hidden;
}

.admonition-titre {
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
  padding: 0.6rem 1rem;
  background: var(--creme);
  color: var(--titre);
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.admonition-titre::-webkit-details-marker {
  display: none;
}

.admonition-titre i {
  color: var(--admo);
}

.admonition-titre::after {
  content: "▸";
  margin-left: auto;
  color: var(--sourdine);
  font-size: 0.8em;
  transition: transform 0.15s ease;
}

.admonition[open] > .admonition-titre::after {
  transform: rotate(90deg);
}

.admonition-corps {
  padding: 0.7rem 1rem 0.85rem;
}

.admonition-corps > :first-child {
  margin-top: 0;
}

.admonition-corps > :last-child {
  margin-bottom: 0;
}

.admonition--warning { --admo: #b07d2a; }
.admonition--danger,
.admonition--failure,
.admonition--bug { --admo: var(--rose-fonce); }
.admonition--question { --admo: var(--rose); }
.admonition--note,
.admonition--abstract,
.admonition--info,
.admonition--example,
.admonition--quote { --admo: var(--vert-fonce); }

/* --- Catalogue ------------------------------------------------------------------ */
/* Grille des espèces sur /catalogue/, fiches variétés sur chaque page espèce. */

.cat-types {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.cat-type {
  display: flex;
  flex-direction: column;
  background: var(--blanc);
  border: 1px solid var(--ligne);
  border-radius: var(--rayon);
  box-shadow: var(--ombre);
  overflow: hidden;
  text-align: center;
  text-decoration: none;
  color: var(--encre);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.cat-type:hover {
  transform: translateY(-3px);
  box-shadow: 0 2px 4px rgba(59, 54, 51, 0.06), 0 14px 32px -12px rgba(59, 54, 51, 0.25);
}

/* Bandeau photo des encarts ; l'icône sert de secours sans photo. */
.cat-type-image,
.cat-type-icone {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 3 / 2;
  background: var(--papier);
  overflow: hidden;
}

.cat-type-icone {
  font-size: 2.5rem;
}

.cat-type-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Couleurs des icônes FontAwesome des groupes du catalogue
   (encarts de navigation et titres de section). */
.cat-icone--fruitiers { color: var(--rose); }
.cat-icone--arbustes { color: var(--vert); }
.cat-icone--utiles { color: var(--vert-fonce); }
.cat-icone--autres { color: var(--sourdine); }

.cat-type-titre {
  padding: 0.7rem 0.9rem 0;
  font-family: var(--font-titre);
  font-size: 1.1rem;
  color: var(--titre);
}

.cat-type-compte {
  padding: 0.15rem 0.9rem 0.9rem;
  font-size: 0.85rem;
  color: var(--sourdine);
}

.cat-section {
  scroll-margin-top: 6rem;
}

.cat-section-titre {
  margin-top: 2.5rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--ligne);
  font-family: var(--font-titre);
  font-size: 1.5rem;
  color: var(--titre);
}

.cat-especes {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(12.5rem, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}

.cat-section .cat-especes {
  margin-top: 1.25rem;
}

.cat-carte {
  display: flex;
  flex-direction: column;
  background: var(--blanc);
  border: 1px solid var(--ligne);
  border-radius: var(--rayon);
  box-shadow: var(--ombre);
  overflow: hidden;
  text-decoration: none;
  color: var(--encre);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.cat-carte:hover {
  transform: translateY(-3px);
  box-shadow: 0 2px 4px rgba(59, 54, 51, 0.06), 0 14px 32px -12px rgba(59, 54, 51, 0.25);
}

.cat-image {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4 / 3;
  background: var(--papier);
  overflow: hidden;
}

.cat-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cat-image--vide {
  font-size: 2.5rem;
  opacity: 0.55;
}

.cat-nom {
  padding: 0.7rem 0.9rem 0.1rem;
  font-family: var(--font-titre);
  font-size: 1.15rem;
  color: var(--titre);
}

.cat-compte {
  padding: 0 0.9rem 0.8rem;
  font-size: 0.85rem;
  color: var(--sourdine);
}

.filtre-dispo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  padding: 0.35rem 0.9rem;
  border: 1px solid var(--ligne);
  border-radius: 999px;
  background: var(--blanc);
  font-size: 0.9rem;
  cursor: pointer;
  user-select: none;
}

.filtre-dispo input {
  accent-color: var(--vert);
}

.filtre-dispo-actif .cat-carte:not(.cat-carte--dispo),
.filtre-dispo-actif .var-carte:not(.var-carte--dispo) {
  display: none;
}

.var-cartes {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(19rem, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.var-carte {
  display: flex;
  flex-direction: column;
  background: var(--blanc);
  border: 1px solid var(--ligne);
  border-radius: var(--rayon);
  box-shadow: var(--ombre);
  overflow: hidden;
}

.var-image {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4 / 3;
  background: var(--papier);
  overflow: hidden;
}

.var-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.var-image--vide {
  font-size: 3rem;
  opacity: 0.55;
}

.var-corps {
  padding: 1rem 1.15rem 1.15rem;
}

.var-corps h2 {
  margin: 0 0 0.6rem;
  font-size: 1.3rem;
}

.var-locale {
  display: inline-block;
  vertical-align: 0.2em;
  margin-left: 0.35rem;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  background: var(--vert);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.var-dispo {
  margin: -0.25rem 0 0.6rem;
  font-size: 0.85rem;
  font-weight: 600;
}

.var-dispo--oui {
  color: var(--vert-fonce);
}

.var-dispo--non {
  color: var(--sourdine);
  font-weight: 400;
}

.var-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0 0 0.75rem;
}

.var-badge {
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  background: var(--creme);
  border: 1px solid var(--ligne);
  font-size: 0.85rem;
  white-space: nowrap;
}

.var-fruit {
  margin: 0 0 0.5rem;
}

.var-utilisation {
  margin: 0 0 0.5rem;
  font-size: 0.92rem;
  color: var(--sourdine);
}

.var-plus {
  margin: 0;
  font-size: 0.92rem;
  font-style: italic;
  color: var(--vert-fonce);
}

.var-plus::before {
  content: "✦ ";
  color: var(--rose-vif);
}

/* --- Recherche (Pagefind) -------------------------------------------------------- */
/* L'index /pagefind/ n'existe qu'après build.sh (npx pagefind --site public). */

/* Carte flottante qui chevauche le bas du hero. */
.recherche-bandeau {
  position: relative;
  z-index: 2;
  margin-top: -1.9rem;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
}

.recherche-form {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  max-width: 36rem;
  margin: 0 auto;
  padding: 0.4rem 0.4rem 0.4rem 1.25rem;
  background: var(--blanc);
  border: 1px solid var(--ligne);
  border-radius: 999px;
  box-shadow: 0 2px 4px rgba(59, 54, 51, 0.06), 0 16px 36px -14px rgba(59, 54, 51, 0.3);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.recherche-form:focus-within {
  border-color: var(--rose);
  box-shadow: 0 0 0 3px rgba(212, 88, 122, 0.18), 0 16px 36px -14px rgba(59, 54, 51, 0.3);
}

.recherche-form input[type="search"] {
  flex: 1;
  min-width: 0;
  padding: 0.5rem 0;
  border: none;
  background: transparent;
  font: inherit;
  color: var(--encre);
}

.recherche-form input[type="search"]::placeholder {
  color: var(--sourdine);
  opacity: 0.8;
}

.recherche-form input[type="search"]:focus {
  outline: none;
}

.recherche-bouton {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .recherche-bouton span {
    display: none;
  }

  .recherche-bouton {
    padding: 0.6rem 0.95rem;
    border-radius: 999px;
  }
}

#recherche {
  --pagefind-ui-primary: var(--rose);
  --pagefind-ui-text: var(--encre);
  --pagefind-ui-background: var(--blanc);
  --pagefind-ui-border: var(--ligne);
  --pagefind-ui-tag: var(--papier);
  --pagefind-ui-border-width: 1px;
  --pagefind-ui-border-radius: 10px;
  --pagefind-ui-font: var(--font-body);
  margin-top: 1.5rem;
}

/* --- Responsive ----------------------------------------------------------------- */

@media (max-width: 640px) {
  .site-header .logo span {
    font-size: 1rem;
  }

  .hero {
    min-height: 24rem;
  }

  .rdv-carte {
    flex-direction: row;
  }

  .rdv-date {
    display: block;
    min-width: 0;
  }
}
