/* ========================================================================== */
/* SANTÉ & NUTRITION — feuille de style complète, sans ancien framework         */
/* ========================================================================== */

/* 01. Couleurs, dimensions et fondations */
:root {
  --color-ink: #18382d;
  --color-primary: #245743;
  --color-muted: #5b6960;
  --color-paper: #faf9f4;
  --color-surface: #ffffff;
  --color-soft: #edf1e7;
  --color-line: #dce1d7;
  --color-accent: #a86428;
  --radius-card: 20px;
  --width-site: 1240px;
  --space-section: clamp(24px, 3vw, 42px);
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}
body {
  margin: 0;
  color: var(--color-ink);
  background: var(--color-paper);
  font:
    17px/1.75 system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
figure {
  margin: 0;
}
a {
  color: var(--color-primary);
  text-underline-offset: 4px;
}
a:hover {
  color: #8b4821;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
summary {
  cursor: pointer;
}
:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 5px;
}
[hidden] {
  display: none !important;
}
h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0 0 20px;
  color: var(--color-ink);
  line-height: 1.2;
  text-wrap: balance;
}
h1 {
  font:
    400 clamp(34px, 4.3vw, 60px)/1.2 Georgia,
    "Times New Roman",
    serif;
  letter-spacing: -1.5px;
}
h2,
h4 {
  font:
    400 clamp(27px, 3vw, 39px)/1.25 Georgia,
    serif;
}
h3 {
  font-size: 23px;
  font-weight: 650;
}
p {
  margin: 0 0 20px;
}
ul,
ol {
  padding-left: 24px;
}
li {
  margin-bottom: 7px;
}
hr {
  border: 0;
  border-top: 1px solid var(--color-line);
  margin: 35px 0;
}
center {
  padding: 18px;
}

/* 02. Entête et navigation */
.skip-link {
  position: fixed;
  z-index: 100;
  top: -100px;
  left: 20px;
  padding: 12px;
  background: white;
}
.skip-link:focus {
  top: 12px;
}
.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
  padding: 26px max(24px, calc((100% - var(--width-site)) / 2));
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-line);
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--color-primary);
  text-decoration: none;
  white-space: nowrap;
  font:
    30px/1.1 Georgia,
    serif;
}
.brand em {
  color: #7c936a;
  font-style: normal;
}
.brand-symbol {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  color: #dce9ce;
  background: var(--color-primary);
  border-radius: 50%;
  font: 34px system-ui;
}
.brand small {
  display: block;
  margin-top: 7px;
  color: var(--color-muted);
  font: 10px/1.8 system-ui;
  letter-spacing: 2px;
}
#site-navigation {
  width: 100%;
  padding-top: 14px;
  border-top: 1px solid var(--color-line);
}
.site-menu {
  display: flex;
  justify-content: space-between;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-menu > li {
  position: relative;
  margin: 0;
}
.site-menu > li > a,
.site-menu > li > button {
  display: block;
  padding: 9px 6px;
  border: 0;
  background: transparent;
  color: var(--color-ink);
  text-decoration: none;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.4px;
}
.site-menu > li > button::after {
  content: "⌄";
  margin-left: 7px;
  color: #718566;
}
.sub-menu {
  position: absolute;
  z-index: 30;
  top: 100%;
  left: 0;
  display: none;
  min-width: 265px;
  max-width: 340px;
  margin: 0;
  padding: 12px;
  border: 1px solid var(--color-line);
  border-radius: 14px;
  background: white;
  box-shadow: 0 16px 40px #18382d1a;
  list-style: none;
}
.site-menu > li:nth-last-child(-n + 2) .sub-menu {
  right: 0;
  left: auto;
}
.site-menu li.is-open > .sub-menu {
  display: block;
}
.sub-menu li {
  margin: 0;
}
.sub-menu a {
  display: block;
  padding: 7px 10px;
  border-radius: 7px;
  text-decoration: none;
  font-size: 14px;
  line-height: 1.5;
}
.sub-menu a:hover {
  background: var(--color-soft);
}
.menu-toggle {
  display: none;
}

/* 03. Recherche */
.site-search {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  max-width: var(--width-site);
  margin: 22px auto 0;
  padding: 0 24px;
}
.site-search label {
  color: var(--color-muted);
  font-size: 12px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}
.search-field {
  display: flex;
  width: 100%;
  max-width: 460px;
  padding: 4px;
  border: 1px solid var(--color-line);
  border-radius: 999px;
  background: white;
}
.search-field input {
  min-width: 0;
  width: 100%;
  padding: 7px 15px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--color-ink);
  font-size: 14px;
}
.search-field button {
  padding: 8px 18px;
  border: 0;
  border-radius: 999px;
  background: var(--color-primary);
  color: white;
  font-size: 13px;
}
.search-results:empty {
  display: none;
}
.search-results:not(:empty) {
  position: absolute;
  z-index: 25;
  top: 100%;
  right: 24px;
  width: min(560px, calc(100% - 48px));
  max-height: 450px;
  overflow: auto;
  padding: 20px;
  border: 1px solid var(--color-line);
  border-radius: 15px;
  background: white;
  box-shadow: 0 16px 45px #18382d26;
}
.search-results a {
  display: block;
  padding: 10px;
  border-bottom: 1px solid var(--color-line);
  text-decoration: none;
}
.search-results small {
  display: block;
  color: var(--color-muted);
  font-size: 12px;
}

/* 04. Sections et grille indépendante */
.content-section,
.advert-section,
.hero-section,
.page-outline {
  width: min(var(--width-site), calc(100% - 48px));
  margin-inline: auto;
}
.content-section {
  padding-block: var(--space-section);
}
.chapter-section {
  padding-bottom: 14px;
}
.advert-section {
  padding-block: 12px;
}
.content-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: start;
  gap: 28px;
}
.content-grid > :not(.content-column) {
  grid-column: 1 / -1;
}
.content-column {
  min-width: 0;
  grid-column: span 12;
}
.content-column[data-span="1"] {
  grid-column: span 1;
}
.content-column[data-span="2"] {
  grid-column: span 2;
}
.content-column[data-span="3"] {
  grid-column: span 3;
}
.content-column[data-span="4"] {
  grid-column: span 4;
}
.content-column[data-span="5"] {
  grid-column: span 5;
}
.content-column[data-span="6"] {
  grid-column: span 6;
}
.content-column[data-span="7"] {
  grid-column: span 7;
}
.content-column[data-span="8"] {
  grid-column: span 8;
}
.content-column[data-span="9"] {
  grid-column: span 9;
}
.content-column[data-span="10"] {
  grid-column: span 10;
}
.content-column[data-span="11"] {
  grid-column: span 11;
}
.body-text {
  color: var(--color-muted);
}

/* 05. Ouverture des articles et de l'accueil */
.hero-section {
  padding-block: 42px 30px;
}
.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  align-items: center;
  gap: clamp(28px, 5vw, 70px);
}
.hero-image {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-card);
  width: min(100%, 420px);
  justify-self: center;
  padding: 14px;
  border: 1px solid #dce5d6;
  background: #ffffff;
  box-shadow: 0 10px 30px #18382d0b;
}
.hero-image img {
  width: 100%;
  max-height: 330px;
  object-fit: contain;
}
.hero-copy h2 {
  color: var(--color-primary);
  font: 600 21px/1.4 system-ui;
}
.hero-copy p {
  font-size: 17px;
  line-height: 1.85;
}
.hero-copy p br:last-child {
  display: none;
}
.home .hero-copy h1 {
  font-size: clamp(38px, 4.5vw, 64px);
}
.hero-recommendations {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 22px;
  margin-top: 30px;
  padding-top: 28px;
  border-top: 1px solid var(--color-line);
}
.teaser {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 0 20px;
  padding: 18px;
  border: 1px solid var(--color-line);
  border-radius: 16px;
  background: white;
}
.teaser > a {
  grid-column: 1;
  grid-row: 1 / 3;
}
.teaser h2,
.teaser h3 {
  grid-column: 2;
  margin: 0 0 8px;
  font: 600 20px/1.3 system-ui;
}
.teaser p {
  grid-column: 2;
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
}
.teaser img {
  width: 100%;
  border-radius: 12px;
}
.teaser a {
  text-decoration: none;
}
.slideshow-toggle {
  position: absolute;
  right: 16px;
  bottom: 16px;
  padding: 6px 14px;
  border: 1px solid #ffffff90;
  border-radius: 999px;
  background: #18382de6;
  color: white;
  font-size: 12px;
}

/* 06. Cartes, listes et sommaires */
/* Illustrations sur fond blanc : pleine largeur et cadre végétal. */
.content-card {
  margin-bottom: 24px;
  padding: 18px;
  overflow: hidden;
  border: 1px solid #dce5d6;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 8px 24px #18382d08;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.content-card:hover,
.content-card:focus-within {
  border-color: #9eaf8e;
  box-shadow: 0 14px 32px #18382d12;
  transform: translateY(-3px);
}

.card-media {
  display: grid;
  place-items: center;
  min-width: 0;
  height: 174px;
  margin-bottom: 20px;
  border: 1px solid #e4eadb;
  border-radius: 16px;
  background:
    radial-gradient(circle at 0% 100%, #dce8cf 0, #dce8cf 18%, transparent 18.5%),
    radial-gradient(circle at 100% 0%, #e5ecd9 0, #e5ecd9 22%, transparent 22.5%), #f4f7ee;
}

.card-media > a,
.card-media > img {
  display: grid;
  place-items: center;
  width: 184px;
  max-width: calc(100% - 32px);
  height: 144px;
  padding: 10px;
  border: 1px solid #edf0e8;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 4px 12px #18382d06;
}

.card-media > a > img {
  width: 100%;
  height: 100%;
  max-height: 122px;
  object-fit: contain;
  border-radius: 6px;
  background: #ffffff;
}

.card-media > img {
  object-fit: contain;
}

.content-card :is(h2, h3) {
  margin-top: 16px;
  margin-bottom: 14px;
  font-size: 21px;
  line-height: 1.3;
}

.content-card :is(h2, h3) a {
  color: var(--color-primary);
  text-decoration: none;
}

.content-card p {
  margin-bottom: 12px;
  color: var(--color-muted);
  font-size: 15px;
  line-height: 1.75;
}

.content-card .card-link {
  display: flex;
  width: fit-content;
  max-width: 100%;
  align-items: center;
  gap: 9px;
  margin-top: 10px;
  padding: 6px 13px;
  border: 1px solid #dce5d6;
  border-radius: 999px;
  color: var(--color-primary);
  background: #f4f7ee;
  text-decoration: none;
  font-size: 12px;
  font-weight: 650;
  white-space: nowrap;
}

.content-card .card-link::after {
  content: "→";
}

.content-card .card-link:hover {
  color: #ffffff;
  background: var(--color-primary);
  border-color: var(--color-primary);
}

.media-block img {
  width: auto;
  max-width: 100%;
  max-height: 240px;
  margin: 0 auto 20px;
  padding: 12px;
  border: 1px solid #e1e8da;
  border-radius: 18px;
  background: #ffffff;
  object-fit: contain;
  box-shadow: 0 6px 18px #18382d08;
}

.link-list,
.footer-links {
  margin: 0;
  padding: 0;
  list-style: none;
}
.link-list li {
  padding: 11px 0;
  border-bottom: 1px solid var(--color-line);
}
.link-list a {
  font-weight: 650;
  text-decoration: none;
}
.link-list p {
  margin: 12px 0 25px;
  font-size: 15px;
  line-height: 1.8;
}
.button-link {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 999px;
  background: var(--color-primary);
  color: white;
  text-decoration: none;
  font-size: 15px;
  font-weight: 650;
}
.page-outline {
  margin-block: 20px;
  padding: 16px 24px;
  border: 1px solid var(--color-line);
  border-radius: 14px;
  background: var(--color-soft);
}
.page-outline summary {
  font-weight: 650;
}
.page-outline ul {
  columns: 2;
  margin-bottom: 5px;
}
.page-outline a {
  font-size: 14px;
}
.section-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}
.section-title {
  margin: 0;
}

/* 07. Tableaux : structure et contenu intacts */
.table-scroll,
.table-wrapper {
  max-width: 100%;
  margin-block: 20px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  border-radius: 14px;
}
.table-scroll .table-scroll {
  margin: 0;
}
table {
  width: 100%;
  border: 1px solid var(--color-line);
  border-collapse: collapse;
  background: white;
  font-size: 15px;
  line-height: 1.6;
}
th,
td {
  min-width: 95px;
  padding: 13px 16px;
  border: 1px solid var(--color-line);
  text-align: left;
}
th {
  background: var(--color-primary);
  color: white;
  font-weight: 650;
}
tr:nth-child(even) td {
  background: #f0f4eb;
}
td img {
  width: auto;
  max-width: 160px;
  max-height: 120px;
  object-fit: contain;
}
table p {
  margin: 0;
}
table a {
  font-weight: 500;
}
.conservation-info {
  margin: 20px 0;
  padding: 20px;
  border-radius: 12px;
  background: var(--color-soft);
}

/* 08. Calculatrices, mentions légales et pied de page */
form:not(.site-search) input:not([type="radio"]):not([type="checkbox"]),
textarea,
select {
  max-width: 100%;
  padding: 10px;
  border: 1px solid #adb9a6;
  border-radius: 8px;
  background: white;
  color: var(--color-ink);
}
input[type="button"],
input[type="submit"],
input[type="reset"] {
  cursor: pointer;
}
form:not(.site-search) input[type="button"],
form:not(.site-search) input[type="submit"],
form:not(.site-search) input[type="reset"] {
  background: var(--color-primary);
  color: white;
}
textarea {
  width: 100%;
  min-height: 150px;
}
.legal-content {
  max-width: 950px;
  margin: 0 auto;
}
.legal-content dd {
  margin: 0 0 30px;
}
.legal-content dt {
  margin: 20px 0;
  font-weight: 700;
}
.legal-content h1 {
  font-size: clamp(30px, 4vw, 48px);
  overflow-wrap: anywhere;
}
#footer {
  margin-top: 60px;
  padding: 48px max(24px, calc((100% - var(--width-site)) / 2));
  background: var(--color-ink);
  color: #e5eadf;
}
#footer .content-grid {
  gap: 28px;
}
#footer .footer-heading {
  color: white;
  font: 600 18px system-ui;
}
#footer a {
  color: #dce9ce;
}
#footer p {
  font-size: 13px;
}
.back-top {
  position: fixed;
  z-index: 40;
  right: 24px;
  bottom: 24px;
  width: 48px;
  height: 48px;
  border: 1px solid #ffffff80;
  border-radius: 50%;
  background: var(--color-primary);
  color: white;
  box-shadow: 0 4px 20px #18382d26;
  font-size: 24px;
}

/* 09. Tablette */
@media (max-width: 1000px) {
  .site-header {
    padding: 20px 24px;
  }
  .brand {
    font-size: 26px;
  }
  .menu-toggle {
    display: block;
    margin-left: auto;
    padding: 9px 14px;
    border: 0;
    border-radius: 999px;
    background: var(--color-primary);
    color: white;
  }
  #site-navigation {
    display: none;
  }
  #site-navigation.is-open {
    display: block;
  }
  .site-menu {
    display: block;
  }
  .site-menu > li {
    border-bottom: 1px solid var(--color-line);
  }
  .site-menu > li > a,
  .site-menu > li > button {
    width: 100%;
    padding: 13px 6px;
    text-align: left;
    font-size: 14px;
  }
  .sub-menu {
    position: static;
    width: 100%;
    max-width: none;
    margin: 0 0 10px;
    border: 0;
    border-radius: 0;
    background: var(--color-paper);
    box-shadow: none;
  }
  .hero-layout {
    gap: 28px;
  }
  .hero-copy p {
    font-size: 15px;
  }
  .content-column[data-span="3"] {
    grid-column: span 6;
  }
  .content-column[data-span="2"] {
    grid-column: span 4;
  }
}

/* 10. Téléphone */
@media (max-width: 640px) {
  body {
    font-size: 16px;
  }
  .site-header {
    gap: 12px;
    padding: 18px 16px;
  }
  .brand {
    gap: 9px;
    font-size: 21px;
  }
  .brand-symbol {
    width: 36px;
    height: 36px;
    font-size: 27px;
  }
  .brand small {
    font-size: 7px;
    letter-spacing: 1.2px;
  }
  .menu-toggle {
    padding: 8px 11px;
    font-size: 12px;
  }
  .site-search {
    margin-top: 18px;
    padding-inline: 16px;
  }
  .site-search label {
    display: none;
  }
  .search-field {
    max-width: none;
  }
  .search-field input {
    padding: 8px;
    font-size: 13px;
  }
  .search-field button {
    padding: 8px 12px;
  }
  .content-section,
  .advert-section,
  .hero-section,
  .page-outline {
    width: calc(100% - 32px);
  }
  .content-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }
  .content-grid > .content-column {
    grid-column: 1 / -1;
  }
  .hero-section {
    padding-block: 24px;
  }
  .hero-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 25px;
  }
  .hero-image {
    width: 100%;
    max-width: 440px;
    margin: auto;
  }
  .hero-image img {
    max-height: 260px;
  }
  .hero-copy h1,
  .home .hero-copy h1 {
    font-size: 36px;
    letter-spacing: -1px;
  }
  .hero-copy p {
    font-size: 16px;
  }
  .hero-recommendations {
    grid-template-columns: minmax(0, 1fr);
    margin-top: 16px;
  }
  .teaser {
    grid-template-columns: 85px 1fr;
  }
  .teaser h2,
  .teaser h3 {
    font-size: 18px;
  }
  .content-card {
    padding: 16px;
  }
  .card-media {
    height: 152px;
    margin-bottom: 16px;
  }
  .card-media > a,
  .card-media > img {
    width: 162px;
    height: 126px;
    padding: 8px;
  }
  .card-media > a > img {
    max-height: 108px;
  }
  .content-card p {
    font-size: 15px;
  }
  .page-outline {
    padding: 15px 18px;
  }
  .page-outline ul {
    columns: 1;
  }
  th,
  td {
    padding: 10px 12px;
    font-size: 13px;
  }
  #footer {
    margin-top: 30px;
    padding: 35px 16px;
  }
  #footer .content-grid {
    gap: 25px;
  }
  .back-top {
    right: 15px;
    bottom: 15px;
  }
  h2,
  h4 {
    font-size: 29px;
  }
  h3 {
    font-size: 22px;
  }
}

/* 11. Mouvement réduit et impression */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    animation: none !important;
    transition: none !important;
  }
}
@media print {
  .site-header,
  .site-search,
  .back-top,
  .page-outline,
  .advert-section {
    display: none;
  }
  body {
    background: white;
    color: black;
    font-size: 11pt;
  }
  .content-section,
  .hero-section {
    width: 100%;
  }
  .content-grid,
  .hero-layout {
    display: block;
  }
  .hero-image {
    max-width: 280px;
  }
  .table-scroll {
    overflow: visible;
  }
  a {
    color: black;
  }
  #footer {
    background: white;
    color: black;
  }
  img {
    width: auto;
    max-height: 240px;
  }
  h1 {
    font-size: 28pt;
  }
}

/* 12. Emplacements publicitaires et diaporamas secondaires */
.adsbygoogle {
  display: block;
}
.slideshow {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-card);
}
.slideshow img {
  margin: 0;
}


/* =============================================================
   13. Images entières : aucun recadrage des illustrations
   ============================================================= */

img {
  object-fit: contain;
  object-position: center;
}

.hero-image img,
.media-block img,
.card-media img,
.slideshow img,
.teaser img {
  border-radius: 0;
}

.hero-image img {
  height: 330px;
}

.slideshow img {
  width: 100%;
  height: auto;
}

/* =============================================================
   14. Menu mobile : bouton et rubriques dépliables
   ============================================================= */

@media (max-width: 1000px) {
  .site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: #ffffff;
  }

  .menu-toggle {
    display: grid;
    place-items: center;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid var(--color-line);
    border-radius: 12px;
    background: #ffffff;
    color: var(--color-primary);
    font-size: 28px;
    line-height: 1;
  }

  .menu-toggle[aria-expanded="true"] {
    background: var(--color-primary);
    color: #ffffff;
  }

  #site-navigation.is-open {
    position: fixed;
    inset: var(--mobile-menu-top, 90px) 0 auto;
    max-height: calc(100dvh - var(--mobile-menu-top, 90px));
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 14px 20px 24px;
    background: #f4f7ee;
    border-top: 1px solid var(--color-line);
    box-shadow: 0 16px 30px #18382d1a;
  }

  .site-menu > li > a,
  .site-menu > li > button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 48px;
    padding: 12px 8px;
    font-size: 15px;
    text-transform: none;
  }

  .site-menu > li > button::after {
    transition: transform 160ms ease;
  }

  .site-menu > li > button[aria-expanded="true"]::after {
    transform: rotate(180deg);
  }

  .sub-menu {
    min-width: 0;
    padding: 6px 12px 12px;
    border-radius: 12px;
    background: #ffffff;
  }

  .sub-menu a {
    min-height: 44px;
    padding: 11px 12px;
  }
}

@media (max-width: 640px) {
  .hero-image img {
    height: 260px;
  }
}


/* =============================================================
   15. Illustrations en pleine largeur sur toutes les pages
   La hauteur suit le format original : aucune partie coupée.
   ============================================================= */

.card-media {
  display: block;
  height: auto;
  padding: 4px;
  background: #edf3e5;
}

.card-media > a,
.card-media > img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: none;
  padding: 0;
  border: 0;
  border-radius: 12px;
  box-shadow: none;
  background: #ffffff;
}

.card-media > a > img {
  display: block;
  width: 100%;
  height: auto;
  max-height: none;
  border-radius: 0;
}

.hero-image {
  width: 100%;
  max-width: none;
  padding: 4px;
}

.hero-image img,
.media-block img,
.slideshow img,
.content-card > img,
.content-card > a > img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: none;
  padding: 0;
  object-fit: contain;
}

td img {
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: none;
}


/* =============================================================
   16. Recherche mobile : loupe dans l’en-tête
   ============================================================= */

.search-toggle {
  display: none;
}

@media (max-width: 1000px) {
  .site-header {
    gap: 8px;
  }

  .brand {
    min-width: 0;
    white-space: normal;
  }

  .search-toggle {
    display: grid;
    place-items: center;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid #8aa17a;
    border-radius: 50%;
    background: #ffffff;
    color: var(--color-primary);
  }

  .search-toggle[aria-expanded="true"] {
    background: var(--color-primary);
    color: #ffffff;
  }

  .site-search {
    display: none;
  }

  .site-search.is-open {
    display: flex;
    position: fixed;
    z-index: 49;
    top: var(--header-search-top, 90px);
    left: 0;
    right: 0;
    max-width: none;
    margin: 0;
    padding: 16px;
    border-bottom: 1px solid var(--color-line);
    background: #f4f7ee;
    box-shadow: 0 12px 24px #18382d12;
  }

  .site-search label {
    display: none;
  }

  .site-search .search-field {
    max-width: none;
  }
}

@media (max-width: 400px) {
  .brand {
    font-size: 18px;
    gap: 6px;
  }

  .brand-symbol {
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    font-size: 23px;
  }

  .brand small {
    font-size: 6px;
    letter-spacing: .7px;
  }
}


/* =============================================================
   17. Saisons : illustrations à gauche et textes à droite
   Format adapté aux petites images originales.
   ============================================================= */

.season-card {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  align-content: start;
  align-items: start;
  gap: 8px 16px;
  min-height: 230px;
  padding: 20px 16px;
  margin-bottom: 18px;
  border-radius: 18px;
  box-shadow: 0 5px 18px #18382d05;
}

.season-card .card-media {
  grid-column: 1;
  grid-row: 1 / span 3;
  width: 104px;
  margin: 0;
  padding: 4px;
  border: 1px solid #e3eadb;
  border-radius: 14px;
  background: #f4f7ee;
}

.season-card :is(h2, h3),
.season-card p,
.season-card .card-link {
  grid-column: 2;
  margin: 0;
}

.season-card :is(h2, h3) {
  color: var(--color-primary);
  font-size: 16px;
  line-height: 1.4;
}

.season-card :is(h2, h3) a {
  text-decoration: none;
}

.season-card p {
  color: var(--color-muted);
  font-size: 14px;
  line-height: 1.65;
}

.season-card .card-link {
  justify-self: start;
  padding: 6px 12px;
  font-size: 12px;
}

@media (min-width: 1001px) {
  .season-card {
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 8px 14px;
  }

  .season-card .card-media {
    width: 96px;
  }
}

@media (max-width: 640px) {
  .season-card {
    min-height: 0;
    padding: 18px 14px;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 8px 14px;
  }

  .season-card .card-media {
    width: 92px;
  }
}


/* 18. Actions de l’en-tête toujours visibles sur téléphone. */
@media (max-width: 1000px) {
  .site-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 44px 44px;
    gap: 8px;
  }

  .site-header > .brand {
    grid-column: 1;
    grid-row: 1;
  }

  .site-header > .menu-toggle {
    grid-column: 2;
    grid-row: 1;
    margin: 0;
  }

  .site-header > .search-toggle {
    display: grid;
    grid-column: 3;
    grid-row: 1;
    visibility: visible;
    opacity: 1;
  }

  .site-header > #site-navigation {
    grid-column: 1 / -1;
  }
}


/* 19. Saisons : disposition légère de la référence, en trois colonnes. */
.seasonal-section {
  padding: 28px;
  border: 1px solid #e3eadb;
  border-radius: 22px;
  background: #ffffff;
}

.seasonal-section .season-card {
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 8px 18px;
  min-height: 195px;
  margin: 0 0 16px;
  padding: 12px 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transform: none;
}

.seasonal-section .season-card .card-media {
  width: 104px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: #ffffff;
}

.seasonal-section .season-card :is(h2, h3) {
  color: #718e45;
  font-size: 15px;
  font-weight: 750;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.seasonal-section .season-card p {
  font-size: 15px;
  line-height: 1.65;
}

.seasonal-section .season-card .card-link {
  display: inline;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--color-primary);
  font-size: inherit;
  font-weight: 700;
}

.seasonal-section .season-card .card-link:hover {
  color: #718e45;
  text-decoration: underline;
}

.seasonal-section .season-card:last-child {
  margin-bottom: 0;
}

@media (max-width: 640px) {
  .seasonal-section {
    padding: 20px 16px;
  }

  .seasonal-section .season-card {
    grid-template-columns: 84px minmax(0, 1fr);
    gap: 8px 14px;
    min-height: 0;
    padding: 16px 0;
    margin: 0;
    border-bottom: 1px solid #edf1e8;
  }

  .seasonal-section .season-card .card-media {
    width: 84px;
  }

  .seasonal-section .season-card :is(h2, h3) {
    font-size: 14px;
    letter-spacing: .6px;
  }
}


/* 20. Apparence des titres conservée après correction sémantique. */
:where(h2, h3, h4).heading-style-h3 {
  font: 650 23px/1.2 system-ui, sans-serif;
  letter-spacing: normal;
}
:where(h2, h3).heading-style-h4 {
  font: 400 clamp(27px, 3vw, 39px)/1.25 Georgia, serif;
}
:where(h2, h3).heading-style-h5 {
  font: bold .83em/1.2 system-ui, sans-serif;
}
:where(h2, h3).heading-style-h6 {
  font: bold .67em/1.2 system-ui, sans-serif;
}


/* 21. Échelle de lecture commune à toutes les pages. */
main p,
main li,
main td,
main th,
.hero-copy p,
.content-card p,
.seasonal-section .season-card p,
.teaser p {
  font-size: 17px;
  line-height: 1.75;
}

main .heading-style-h3 {
  font-size: 23px;
}

.content-card :is(h2, h3) {
  font-size: 22px;
  line-height: 1.35;
}

.seasonal-section .season-card :is(h2, h3) {
  font-size: 16px;
  line-height: 1.4;
}

@media (max-width: 640px) {
  main p,
  main li,
  main td,
  main th,
  .hero-copy p,
  .content-card p,
  .seasonal-section .season-card p,
  .teaser p {
    font-size: 16px;
    line-height: 1.7;
  }
}


/* 22. Cartes de même hauteur, actions alignées en bas. */
.aligned-card-column {
  display: grid;
  grid-template-rows: subgrid;
  grid-row: span var(--card-rows, 1);
}

.content-card:not(.season-card) {
  display: flex;
  flex-direction: column;
}

.content-card:not(.season-card) .card-media {
  flex: none;
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  background: #ffffff;
}

.content-card:not(.season-card) .card-media > a,
.content-card:not(.season-card) .card-media > img {
  width: 100%;
  height: 100%;
  min-height: 0;
}

.content-card:not(.season-card) .card-media > a > img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.content-card:not(.season-card) > :is(h2, h3) {
  min-height: 2.7em;
}

.content-card:not(.season-card) > .card-link {
  align-self: flex-start;
  margin-top: auto;
}

/* Le style flex des titres de rubriques ne s'applique pas aux tableaux. */
table tr.section-title-row {
  display: table-row;
}

table .section-title {
  display: table-cell;
  padding: 16px;
  background: var(--color-primary);
  color: #ffffff;
  text-align: left;
}


/* 23. Pied de page commun et partage discret. */
#footer.site-footer {
  margin-top: 64px;
  padding: 48px max(24px, calc((100% - var(--width-site)) / 2)) 24px;
  background: #18382d;
  color: #eef3e7;
}
.site-footer a { color: inherit; text-decoration: none; }
.footer-top { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; padding-bottom: 32px; }
.footer-brand { font: 34px/1.2 Georgia, serif; }
.footer-brand span { color: #b8ce96; }
.footer-identity p { margin: 12px 0 0; color: #c6d5bb; font-size: 14px; }
.footer-navigation { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 24px; align-content: start; font-size: 15px; }
.footer-navigation a:hover, .footer-bottom a:hover { text-decoration: underline; }
.footer-sharing { padding: 28px 0; border-block: 1px solid #ffffff25; }
.footer-share-title { margin: 0 0 18px; font-size: 18px; font-weight: 650; }
.footer-share-buttons { display: flex; flex-wrap: wrap; gap: 10px; }
.footer-share-buttons a, .footer-share-buttons button {
  display: inline-flex; align-items: center; gap: 12px; min-height: 44px;
  padding: 10px 16px; border: 1px solid #ffffff45; border-radius: 999px;
  background: #ffffff09; color: #ffffff; font: 600 14px/1.4 system-ui; cursor: pointer;
}
.footer-share-buttons [hidden] { display: none; }
.footer-share-buttons a:hover, .footer-share-buttons button:hover { background: #eef3e7; color: #18382d; }
.footer-share-status { min-height: 1.5em; margin: 12px 0 0; font-size: 14px; color: #cfdfba; }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; padding-top: 24px; color: #c6d5bb; font-size: 13px; }
.footer-bottom p { margin: 0; margin-right: auto; }
@media (max-width: 640px) {
  #footer.site-footer { padding: 32px 20px 24px; }
  .footer-top { grid-template-columns: 1fr; gap: 28px; }
  .footer-brand { font-size: 29px; }
  .footer-share-buttons { display: grid; grid-template-columns: 1fr 1fr; }
  .footer-share-buttons a, .footer-share-buttons button { justify-content: space-between; }
}


/* 24. Boutons de partage : contraste et dimensions uniformes. */
#footer.site-footer .footer-share-buttons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
}

#footer.site-footer .footer-share-buttons :is(a, button) {
  justify-content: center;
  min-height: 48px;
  width: 100%;
  margin: 0;
  color: #ffffff;
  background: #244c3e;
  border-color: #90a89b;
  text-decoration: none;
}

#footer.site-footer .footer-share-buttons :is(a, button):is(:hover, :focus-visible, :active) {
  color: #18382d;
  background: #eef3e7;
  border-color: #eef3e7;
}

#footer.site-footer .footer-share-buttons :is(a, button):focus-visible {
  outline: 3px solid #b8ce96;
  outline-offset: 4px;
}

#footer.site-footer .footer-share-buttons :is(a, button) span {
  color: inherit;
}

@media (max-width: 640px) {
  #footer.site-footer .footer-share-buttons {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
