/* Ajouts au design d'origine : lisibilité, boutons, sommaire, mobile. */
:root { --brun: #54381c; --bleu: #0066cc; --bleu-fonce: #004f9e; --texte: #333; --gris: #6b6b6b; --fond-doux: #f6f3ef; }

html { scroll-behavior: smooth; scroll-padding-top: 6rem; }

.text-rich-text { font-size: 1.0625rem; line-height: 1.75; max-width: 46rem; }
.text-rich-text p { margin: 0 0 1.15em; }
.text-rich-text h2 { margin: 2.2em 0 .7em; line-height: 1.25; }
.text-rich-text h3 { margin: 1.7em 0 .6em; line-height: 1.3; }
.text-rich-text h4 { margin: 1.5em 0 .5em; }
.text-rich-text > :first-child { margin-top: 0; }
.text-rich-text > .affiliate-note + * { margin-top: 0; }
.text-rich-text ul, .text-rich-text ol { margin: 0 0 1.3em; padding-left: 1.4em; }
.text-rich-text li { margin-bottom: .45em; }
.text-rich-text a:not(.button) { color: var(--bleu-fonce); text-decoration: underline; text-underline-offset: 2px; }
.text-rich-text a:not(.button):hover { color: var(--bleu); }
.text-rich-text img { border-radius: 8px; height: auto; max-width: 100%; }
.text-rich-text figure { margin: 1.8em 0; }

/* bouton d'achat */
.text-rich-text .w-embed { margin: 1.4em 0 2.2em; }
.text-rich-text a.button, a.button {
  display: inline-block; background: var(--bleu); color: #fff; font-weight: 600;
  padding: .85rem 1.6rem; border-radius: 8px; text-decoration: none;
  box-shadow: 0 2px 0 rgba(0, 0, 0, .12); transition: background .15s, transform .15s;
}
.text-rich-text a.button:hover, a.button:hover { background: var(--bleu-fonce); transform: translateY(-1px); }
.text-rich-text a.button::after, a.button::after { content: " \2192"; }
a:focus-visible, .w-nav-button:focus-visible { outline: 3px solid #ffb703; outline-offset: 2px; }

/* mention d'affiliation */
.affiliate-note {
  max-width: 46rem; margin: 0 0 1.8rem; padding: .7rem 1rem; font-size: .875rem; line-height: 1.5;
  color: var(--gris); background: var(--fond-doux); border-left: 3px solid var(--brun); border-radius: 0 6px 6px 0;
}

/* sommaire */
.fs-toc_sidebar { background: var(--fond-doux); border-radius: 10px; padding: 1.1rem 1.25rem; max-height: calc(100vh - 7.5rem); overflow-y: auto; }
.fs-toc_link-content { margin-top: .6rem; }
.fs-toc_link-wrapper { margin: 0; }
.fs-toc_link { display: block; padding: .3rem 0; color: var(--texte); font-size: .9375rem; line-height: 1.4; text-decoration: none; }
.fs-toc_link:hover { color: var(--bleu-fonce); text-decoration: underline; }

/* image d'en-tête des articles */
.blog-post_image-wrapper img, .blog-post_image { border-radius: 12px; }

/* sommaire empilé au-dessus du texte : il se déroule en entier, sans défilement interne */
@media screen and (max-width: 991px) {
  .fs-toc_sidebar { max-height: none; overflow-y: visible; }
}

@media screen and (max-width: 767px) {
  .text-rich-text { font-size: 1rem; }
  .text-rich-text a.button, a.button { display: block; text-align: center; }
  h1 { font-size: clamp(1.75rem, 7vw, 2.5rem); line-height: 1.2; }
  .text-rich-text h2 { font-size: 1.5rem; }
  .text-rich-text h3 { font-size: 1.2rem; }
}

/* cartes d'articles sans image */
.blog-header_image { background-image: none; background-color: var(--fond-doux); }
.blog-header_image.is-placeholder { object-fit: contain; padding: 22%; background-color: var(--brun); }

/* page contact */
.contact-box { margin-top: 1.5rem; }
.contact-box p { margin-bottom: 1rem; }
.contact-box a.button::after { content: ""; }

/* blocs ajoutés à l'accueil */
.home-extra { padding: 1rem 0 5rem; }
.home-extra h2 { margin: 3rem 0 1.5rem; text-align: center; }
.home-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.home-card { display: flex; flex-direction: column; color: var(--texte); text-decoration: none; border: 1px solid #e7e2db; border-radius: 12px; overflow: hidden; background: #fff; transition: transform .15s, box-shadow .15s; }
.home-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(84, 56, 28, .14); }
.home-card_image { display: block; aspect-ratio: 16 / 10; background: var(--fond-doux); }
.home-card_image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.home-card_title { padding: 1rem 1.1rem 1.2rem; font-weight: 600; line-height: 1.35; }
.home-more { text-align: center; margin-top: 1.5rem; }
.home-more a { color: var(--bleu-fonce); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.home-brands { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; }
.home-brand { padding: .55rem 1rem; border: 1px solid #e0d9cf; border-radius: 999px; color: var(--brun); font-weight: 600; text-decoration: none; background: #fff; }
.home-brand:hover { background: var(--brun); color: #fff; }
@media screen and (max-width: 991px) { .home-cards { grid-template-columns: repeat(2, 1fr); } }
@media screen and (max-width: 479px) { .home-cards { grid-template-columns: 1fr; } }
