/* ==========================================================================
   Les Élevages du Sous-Bois — feuille de style principale
   Site statique, aucun préprocesseur, aucune dépendance externe.
   ========================================================================== */

/* --- 1. Jetons de design ------------------------------------------------ */
:root {
  --forest-900: #10281a;
  --forest-800: #17381f;
  --forest-700: #1f4a2b;
  --forest-600: #2a6039;
  --forest-500: #37764a;
  --forest-100: #e4efe6;

  --amber-700: #96601a;
  --amber-600: #b5761f;
  --amber-500: #cf8f2c;
  --amber-100: #fbf0da;

  --sand-50: #fcfaf6;
  --sand-100: #f6f2ea;
  --sand-200: #e9e2d5;
  --sand-300: #d8cfbc;

  --ink-900: #1b211a;
  --ink-700: #3b443a;
  --ink-500: #6d7568;
  --ink-300: #9aa295;

  --white: #ffffff;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;

  --shadow-sm: 0 1px 2px rgba(16, 40, 26, .07), 0 2px 8px rgba(16, 40, 26, .05);
  --shadow-md: 0 4px 14px rgba(16, 40, 26, .09), 0 14px 34px rgba(16, 40, 26, .07);
  --shadow-lg: 0 10px 30px rgba(16, 40, 26, .14);

  --maxw: 1120px;
  --maxw-narrow: 760px;

  --font-sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
  --font-serif: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;
}

/* --- 2. Réinitialisation ------------------------------------------------ */
*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink-700);
  background-color: var(--sand-50);
  background-image:
    radial-gradient(1200px 500px at 50% -180px, rgba(55, 118, 74, .16), transparent 70%);
  background-repeat: no-repeat;
  -webkit-font-smoothing: antialiased;
}

img,
picture,
svg,
video { max-width: 100%; height: auto; }

img { border-style: none; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  color: var(--forest-800);
  line-height: 1.25;
  margin: 0 0 .6em;
  font-weight: 700;
  text-wrap: balance;
}

h1 { font-size: clamp(1.75rem, 1.15rem + 2.4vw, 2.7rem); }
h2 { font-size: clamp(1.4rem, 1.1rem + 1.3vw, 2rem); margin-top: 1.8em; }
h3 { font-size: clamp(1.15rem, 1rem + .7vw, 1.4rem); margin-top: 1.6em; }
h4 { font-size: 1.05rem; }

p { margin: 0 0 1.1em; }

a {
  color: var(--forest-600);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

a:hover { color: var(--amber-600); }

ul, ol { margin: 0 0 1.2em; padding-left: 1.35em; }
li { margin-bottom: .45em; }

strong, b { color: var(--ink-900); }

hr {
  border: 0;
  border-top: 1px solid var(--sand-200);
  margin: 2.4rem 0;
}

blockquote {
  margin: 1.8rem 0;
  padding: 1.1rem 1.4rem;
  border-left: 4px solid var(--amber-500);
  background: var(--amber-100);
  color: var(--ink-700);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
}

code, pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .92em;
}

/* --- 3. Accessibilité --------------------------------------------------- */
:where(a, button, input, textarea, select, summary, [tabindex]):focus-visible {
  outline: 3px solid var(--amber-500);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--forest-800);
  color: var(--white);
  padding: .7rem 1.1rem;
  border-radius: 0 0 var(--radius-sm) 0;
  text-decoration: none;
}

.skip-link:focus {
  left: 0;
  color: var(--white);
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* --- 4. Mise en page ---------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 1.15rem;
}

.container--narrow { max-width: var(--maxw-narrow); }

.section { padding-block: clamp(2.2rem, 1.4rem + 3vw, 4rem); }
.section--tight { padding-block: 2rem; }
.section--alt { background: var(--white); }
.section--tint { background: var(--sand-100); }

.section__head {
  max-width: 62ch;
  margin-bottom: 2rem;
}

.section__head--center {
  margin-inline: auto;
  text-align: center;
}

.section__eyebrow {
  display: block;
  font-family: var(--font-sans);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--amber-600);
  margin-bottom: .5rem;
}

.lead {
  font-size: 1.12rem;
  color: var(--ink-500);
}

/* --- 5. En-tête et navigation ------------------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(252, 250, 246, .92);
  backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 1px solid var(--sand-200);
}

.site-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .75rem 1rem;
  padding-block: .6rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: .7rem;
  text-decoration: none;
  color: var(--forest-800);
  margin-right: auto;
}

.brand__logo {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--forest-100);
  box-shadow: var(--shadow-sm);
  flex: 0 0 auto;
}

.brand__text { display: flex; flex-direction: column; line-height: 1.15; }

.brand__name {
  font-family: var(--font-serif);
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--forest-800);
}

.brand__tag {
  font-size: .74rem;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--ink-500);
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--forest-700);
  color: var(--white);
  border: 0;
  border-radius: 999px;
  padding: .5rem .95rem;
  font: inherit;
  font-size: .88rem;
  font-weight: 600;
  cursor: pointer;
}

.nav-toggle:hover { background: var(--forest-600); }

.nav-toggle__bars {
  display: inline-block;
  width: 16px;
  height: 2px;
  background: currentColor;
  position: relative;
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 16px;
  height: 2px;
  background: currentColor;
}

.nav-toggle__bars::before { top: -5px; }
.nav-toggle__bars::after { top: 5px; }

.nav {
  flex-basis: 100%;
  width: 100%;
}

.nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: .15rem;
}

.nav__list li { margin: 0; }

.nav__link {
  display: block;
  padding: .6rem .75rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--ink-700);
  font-size: .95rem;
  font-weight: 600;
}

.nav__link:hover { background: var(--forest-100); color: var(--forest-800); }

.nav__link[aria-current="page"] {
  background: var(--forest-700);
  color: var(--white);
}

.nav__link[aria-current="page"]:hover { background: var(--forest-600); color: var(--white); }

.nav__group-label {
  display: block;
  padding: .6rem .75rem .2rem;
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-300);
  font-weight: 700;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  border: 1px solid var(--sand-300);
  border-radius: 999px;
  padding: .3rem .7rem;
  font-size: .82rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--forest-700);
  background: var(--white);
  white-space: nowrap;
}

.lang-switch:hover { border-color: var(--forest-500); color: var(--forest-700); }

/* Navigation repliée (mobile) */
.nav[hidden] { display: none; }

@media (min-width: 960px) {
  .nav-toggle { display: none; }
  .nav[hidden] { display: block; }
  .nav {
    flex-basis: auto;
    width: auto;
    margin-left: auto;
  }
  .nav__list {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: .1rem;
  }
  .nav__group-label { display: none; }
  .nav__link { padding: .5rem .62rem; font-size: .9rem; }
}

/* --- 6. Fil d'Ariane ---------------------------------------------------- */
.breadcrumb {
  padding-block: 1rem .2rem;
  font-size: .84rem;
  color: var(--ink-500);
}

.breadcrumb ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  margin: 0;
  padding: 0;
}

.breadcrumb li { margin: 0; display: flex; align-items: center; gap: .35rem; }
.breadcrumb li + li::before { content: "/"; color: var(--sand-300); }
.breadcrumb a { color: var(--ink-500); text-decoration: none; }
.breadcrumb a:hover { color: var(--forest-600); text-decoration: underline; }
.breadcrumb [aria-current="page"] { color: var(--ink-900); font-weight: 600; }

/* --- 7. Héros ----------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(150deg, var(--forest-900) 0%, var(--forest-700) 55%, var(--forest-600) 100%);
  color: var(--sand-100);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(600px 300px at 88% 8%, rgba(207, 143, 44, .3), transparent 65%);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 2rem;
  align-items: center;
  padding-block: clamp(2.4rem, 1.6rem + 4vw, 4.4rem);
}

.hero__title {
  color: var(--white);
  margin-bottom: .5rem;
}

.hero__title em {
  font-style: normal;
  color: var(--amber-400, #e6ab4c);
}

.hero__text {
  font-size: 1.08rem;
  color: rgba(255, 255, 255, .88);
  max-width: 56ch;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
  margin-top: 1.4rem;
}

.hero__media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 4px solid rgba(255, 255, 255, .12);
  justify-self: center;
  width: 100%;
  max-width: 420px;
}

.hero__media img { display: block; width: 100%; }

.hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem 2.2rem;
  margin: 1.8rem 0 0;
  padding: 0;
  list-style: none;
}

.hero__facts li {
  margin: 0;
  font-size: .88rem;
  color: rgba(255, 255, 255, .82);
}

.hero__facts strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: var(--white);
}

@media (min-width: 880px) {
  .hero__inner { grid-template-columns: 1.15fr .85fr; }
}

/* --- 8. Boutons --------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .72rem 1.35rem;
  border-radius: 999px;
  font: inherit;
  font-size: .95rem;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .12s ease, background-color .15s ease, color .15s ease, border-color .15s ease;
}

.btn:hover { transform: translateY(-1px); }

.btn--primary { background: var(--amber-500); color: #24170a; }
.btn--primary:hover { background: var(--amber-600); color: #1a1006; }

.btn--solid { background: var(--forest-700); color: var(--white); }
.btn--solid:hover { background: var(--forest-600); color: var(--white); }

.btn--ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, .55);
  color: var(--white);
}

.btn--ghost:hover { background: rgba(255, 255, 255, .12); color: var(--white); }

.btn--outline {
  background: var(--white);
  border-color: var(--sand-300);
  color: var(--forest-700);
}

.btn--outline:hover { border-color: var(--forest-500); color: var(--forest-700); }

/* --- 9. Grilles et cartes ---------------------------------------------- */
.grid { display: grid; gap: 1.4rem; }

.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); }

.card {
  background: var(--white);
  border: 1px solid var(--sand-200);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: transform .15s ease, box-shadow .15s ease;
  height: 100%;
}

.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

.card h3 { margin-top: 0; margin-bottom: .45rem; }
.card p:last-child { margin-bottom: 0; }
.card__icon { font-size: 1.7rem; line-height: 1; margin-bottom: .6rem; display: block; }

.card__link {
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: .3rem;
}

.card__link::after { content: "\2192"; transition: transform .15s ease; }
.card__link:hover::after { transform: translateX(3px); }

.card--feature { border-top: 4px solid var(--amber-500); }

.card--dog { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.card--dog img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.card--dog .card__body { padding: 1.1rem 1.25rem 1.35rem; flex: 1 1 auto; }
.card--dog h3 { margin-bottom: .2rem; }
.card--dog .card__meta { font-size: .8rem; color: var(--ink-500); margin-bottom: .55rem; }

/* --- 10. Contenu rédactionnel ------------------------------------------ */
.prose {
  background: var(--white);
  border: 1px solid var(--sand-200);
  border-radius: var(--radius);
  padding: clamp(1.4rem, 1rem + 2vw, 2.6rem);
  box-shadow: var(--shadow-sm);
}

.prose > :first-child { margin-top: 0; }
.prose > :last-child { margin-bottom: 0; }

/* --- 11. Listes à puces personnalisées --------------------------------- */
.checklist { list-style: none; padding: 0; margin: 0 0 1.4em; }
.checklist li { position: relative; padding-left: 1.85rem; margin-bottom: .6rem; }

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .48em;
  width: 1.05rem;
  height: 1.05rem;
  border-radius: 50%;
  background: var(--forest-100);
  box-shadow: inset 0 0 0 2px var(--forest-500);
}

/* --- 12. Étiquettes et encarts ----------------------------------------- */
.badges { display: flex; flex-wrap: wrap; gap: .5rem; padding: 0; margin: 0; list-style: none; }

.badge {
  margin: 0;
  display: inline-block;
  background: var(--forest-100);
  color: var(--forest-800);
  border-radius: 999px;
  padding: .3rem .8rem;
  font-size: .8rem;
  font-weight: 600;
}

.notice {
  border-radius: var(--radius);
  border: 1px solid var(--amber-500);
  background: var(--amber-100);
  padding: 1.1rem 1.3rem;
  color: #4a3413;
  font-size: .95rem;
}

.notice p:last-child { margin-bottom: 0; }
.notice strong { color: #3a2709; }

.notice--info {
  border-color: var(--forest-500);
  background: var(--forest-100);
  color: var(--forest-900);
}

/* --- 13. Tableaux ------------------------------------------------------ */
.table-wrap { overflow-x: auto; margin-bottom: 1.6rem; }

table {
  border-collapse: collapse;
  width: 100%;
  font-size: .95rem;
  background: var(--white);
}

caption {
  caption-side: top;
  text-align: left;
  font-size: .85rem;
  color: var(--ink-500);
  padding-bottom: .5rem;
}

th, td {
  border: 1px solid var(--sand-200);
  padding: .7rem .85rem;
  text-align: left;
  vertical-align: top;
}

thead th { background: var(--sand-100); color: var(--forest-800); }
tbody tr:nth-child(even) { background: var(--sand-50); }

/* --- 14. FAQ (details/summary, sans JavaScript) ------------------------ */
.faq { display: grid; gap: .8rem; }

.faq__item {
  background: var(--white);
  border: 1px solid var(--sand-200);
  border-radius: var(--radius);
  padding: 0;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.faq__q {
  cursor: pointer;
  padding: 1.05rem 1.3rem;
  font-family: var(--font-serif);
  font-size: 1.06rem;
  font-weight: 700;
  color: var(--forest-800);
  display: flex;
  align-items: flex-start;
  gap: .7rem;
  list-style: none;
}

.faq__q::-webkit-details-marker { display: none; }

.faq__q::before {
  content: "+";
  flex: 0 0 auto;
  font-family: var(--font-sans);
  font-size: 1.25rem;
  line-height: 1.1;
  color: var(--amber-600);
  font-weight: 700;
}

.faq__item[open] .faq__q::before { content: "\2212"; }
.faq__item[open] .faq__q { border-bottom: 1px solid var(--sand-200); }

.faq__a { padding: 1.05rem 1.3rem 1.2rem; }
.faq__a > :last-child { margin-bottom: 0; }

/* --- 15. Galerie photo ------------------------------------------------- */
.gallery {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr));
  padding: 0;
  margin: 0;
  list-style: none;
}

.gallery li { margin: 0; }

.gallery figure {
  margin: 0;
  background: var(--white);
  border: 1px solid var(--sand-200);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.gallery img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--sand-100);
}

.gallery figcaption {
  padding: .75rem .9rem .9rem;
  font-size: .85rem;
  color: var(--ink-700);
}

.gallery figcaption strong { display: block; color: var(--forest-800); }

/* --- 16. Média (animation Flash historique) ---------------------------- */
.media-embed {
  border-radius: var(--radius);
  border: 1px solid var(--sand-200);
  background: var(--forest-900);
  padding: .6rem;
  display: block;
  margin-inline: auto;
  max-width: 100%;
}

.media-embed ruffle-embed,
.media-embed embed,
.media-embed object { display: block; margin-inline: auto; }

/* --- 17. Encadré contact / coordonnées --------------------------------- */
.contact-grid { display: grid; gap: 1.6rem; }

@media (min-width: 820px) {
  .contact-grid { grid-template-columns: 1fr 1fr; }
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.contact-list li {
  padding: .7rem 0;
  border-bottom: 1px dashed var(--sand-200);
  display: flex;
  flex-wrap: wrap;
  gap: .3rem 1rem;
  margin: 0;
}

.contact-list li:last-child { border-bottom: 0; }

.contact-list dt,
.contact-list .label {
  flex: 0 0 8.5rem;
  font-weight: 700;
  color: var(--forest-800);
}

/* --- 18. Formulaire ---------------------------------------------------- */
.form-grid { display: grid; gap: 1rem; }

@media (min-width: 700px) {
  .form-grid { grid-template-columns: 1fr 1fr; }
  .form-grid .form-row--full { grid-column: 1 / -1; }
}

.form-row { display: flex; flex-direction: column; gap: .35rem; }

.form-row label {
  font-weight: 700;
  font-size: .88rem;
  color: var(--forest-800);
}

.form-row .hint { font-size: .78rem; color: var(--ink-500); }

input[type="text"],
input[type="email"],
input[type="tel"],
textarea,
select {
  font: inherit;
  font-size: .95rem;
  padding: .65rem .8rem;
  border: 1px solid var(--sand-300);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--ink-900);
  width: 100%;
}

textarea { min-height: 9rem; resize: vertical; }

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
  margin-top: 1.3rem;
}

/* --- 19. Pied de page -------------------------------------------------- */
.site-footer {
  margin-top: 3.5rem;
  background: var(--forest-900);
  color: rgba(255, 255, 255, .78);
  padding-block: 2.8rem 1.6rem;
  font-size: .92rem;
}

.site-footer h2,
.site-footer h3 {
  color: var(--white);
  font-size: 1rem;
  font-family: var(--font-sans);
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: .9rem;
}

.site-footer a { color: rgba(255, 255, 255, .85); text-decoration: none; }
.site-footer a:hover { color: var(--amber-400, #e6ab4c); text-decoration: underline; }

.site-footer__grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
}

.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .5rem; }

.site-footer__bottom {
  margin-top: 2.2rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(255, 255, 255, .16);
  display: flex;
  flex-wrap: wrap;
  gap: .6rem 1.4rem;
  justify-content: space-between;
  font-size: .82rem;
  color: rgba(255, 255, 255, .62);
}

.site-footer__bottom p { margin: 0; }

/* --- 20. Utilitaires --------------------------------------------------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-2 { margin-top: 1.4rem; }
.mt-3 { margin-top: 2.2rem; }

/* Photo non disponible dans les archives : bloc décoratif neutre,
   de la même taille que l'image attendue (aucun cadre cassé). */
.photo-missing {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 4 / 3;
  background:
    repeating-linear-gradient(45deg, rgba(0, 0, 0, .02) 0 10px, transparent 10px 20px),
    var(--sand-100);
  border-bottom: 1px solid var(--sand-200);
  color: var(--sand-300, #c8bda6);
  font-size: 1.6rem;
}

.photo-missing::before {
  content: "\1F43E";
  line-height: 1;
}

.gallery .photo-missing { aspect-ratio: 4 / 3; border: 0; }
.card--dog .photo-missing { aspect-ratio: 4 / 3; border-bottom: 1px solid var(--sand-200); }
.hero__media .photo-missing { aspect-ratio: 3 / 2; border-radius: var(--radius); border: 1px solid var(--sand-200); }

.img-frame {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--sand-200);
  box-shadow: var(--shadow-sm);
  background: var(--white);
}

.img-frame img { display: block; width: 100%; }

.tag-list { display: flex; flex-wrap: wrap; gap: .45rem; list-style: none; padding: 0; margin: 0 0 1.4em; }

/* --- 21. Visionneuse de galerie --------------------------------------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.4rem;
  background: rgba(12, 24, 16, .9);
}

.lightbox[hidden] { display: none; }

.lightbox__figure {
  margin: 0;
  max-width: min(100%, 1000px);
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.lightbox__img {
  display: block;
  max-height: 76vh;
  width: auto;
  margin-inline: auto;
  object-fit: contain;
  background: var(--sand-100);
}

.lightbox__caption {
  padding: .8rem 1.1rem;
  font-size: .9rem;
  color: var(--ink-700);
  text-align: center;
}

.lightbox__close {
  position: absolute;
  top: 1rem;
  right: 1.2rem;
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, .92);
  color: var(--forest-900);
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
}

.lightbox__close:hover { background: var(--amber-500); }

/* --- 22. Préférences de mouvement ------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

/* --- 23. Impression ---------------------------------------------------- */
@media print {
  .site-header, .site-footer, .nav, .nav-toggle, .breadcrumb, .hero__actions { display: none !important; }
  body { background: #fff; color: #000; }
  .prose, .card { box-shadow: none; border-color: #ccc; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: .8em; }
}
