/* ================================================
   Santos fragrance — feuille de style principale
   Reproduction fidèle de la maquette SumUp Store
   ================================================ */

:root {
  --color-text: #000000;
  --color-text-muted: #6b6b6b;
  --color-bg: #ffffff;
  --color-bg-alt: #f7f7f7;
  --color-border: #e3e3e3;
  --color-accent: #000000;
  --color-sale: #c0392b;

  --font-body: "Open Sans", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-heading: "Open Sans", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;

  --container: 1200px;
  --header-h: 132px;
  --radius: 2px;
  --transition: 0.25s ease;
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

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

/* ---------- Skip link (accessibilité) ---------- */
.skip-link {
  position: absolute; top: -60px; left: 12px; z-index: 200;
  background: #000; color: #fff; padding: 10px 18px; font-size: 13px;
}
.skip-link:focus { top: 12px; }

/* ================= HEADER ================= */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--color-border);
}

.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  padding: 18px 24px 0;
  max-width: var(--container);
  margin: 0 auto;
}

.header-left  { display: flex; align-items: center; }
.header-right { display: flex; align-items: center; justify-content: flex-end; gap: 4px; }

.brand {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  text-align: center;
}
.brand__logo { width: 52px; height: auto; }
.brand__name {
  font-size: 15px; font-weight: 600; letter-spacing: 0.04em;
}

.icon-btn {
  background: none; border: 0; padding: 8px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--color-text); line-height: 0;
}
.icon-btn:hover { opacity: 0.6; }
.icon-btn svg { width: 20px; height: 20px; }

.menu-toggle { display: none; }
.nav-mobile { display: none; }
.nav-mobile > summary { list-style: none; }
.nav-mobile > summary::-webkit-details-marker { display: none; }

/* ---------- Navigation principale ---------- */
.main-nav { padding: 12px 0 14px; }
.main-nav ul {
  display: flex; justify-content: center; gap: 28px;
  list-style: none; margin: 0; padding: 0;
}
.main-nav a {
  font-size: 14px; padding-bottom: 4px;
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition);
}
.main-nav a:hover { border-bottom-color: var(--color-text); }
.main-nav a[aria-current="page"] { border-bottom-color: var(--color-text); }

/* ================= HERO ================= */
.hero {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 7;
  min-height: 320px;
  max-height: 620px;
  overflow: hidden;
  background: var(--color-bg-alt);
}
.hero img { width: 100%; height: 100%; object-fit: cover; }

/* ================= SECTIONS ================= */
.section { padding: 64px 0; }
.section--tight { padding: 48px 0; }

.section-title {
  font-family: var(--font-heading);
  font-size: 26px; font-weight: 400; letter-spacing: 0.02em;
  text-align: center; margin: 0 0 40px;
}

/* ================= GRILLE PRODUITS ================= */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px 24px;
}

.product-card { position: relative; display: block; }

.product-card__media {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--color-bg-alt);
  margin-bottom: 14px;
}
.product-card__media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s ease;
}
.product-card:hover .product-card__media img { transform: scale(1.04); }

.badge-discount {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  background: #000; color: #fff;
  font-size: 11px; line-height: 1;
  padding: 6px 8px; border-radius: 50%;
  width: 26px; height: 26px;
  display: flex; align-items: center; justify-content: center;
}

.product-card__title {
  font-size: 14px; font-weight: 400; letter-spacing: 0.03em;
  margin: 0 0 6px;
}

.price-row { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.price { font-size: 14px; font-weight: 600; }
.price--old { font-size: 13px; font-weight: 400; color: var(--color-text-muted); text-decoration: line-through; }

/* ---------- Lien "Parcourir les produits" ---------- */
.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; margin-top: 40px;
  border-bottom: 1px solid var(--color-text); padding-bottom: 3px;
}
.link-arrow svg { width: 16px; height: 16px; }
.link-arrow:hover { opacity: 0.65; }
.center { text-align: center; }

/* ================= PRODUIT — FEATURED / DÉTAIL ================= */
.product-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

.gallery__main {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--color-bg-alt);
  margin-bottom: 12px;
}
.gallery__main img { width: 100%; height: 100%; object-fit: cover; }

.gallery__thumbs {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px;
}
.gallery__thumb {
  aspect-ratio: 1 / 1; overflow: hidden; padding: 0;
  border: 1px solid transparent; background: var(--color-bg-alt);
}
.gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumb[aria-current="true"] { border-color: var(--color-text); }

.product-info__title {
  font-size: 24px; font-weight: 400; letter-spacing: 0.03em;
  margin: 0 0 14px;
}
.product-info .price-row { margin-bottom: 28px; }
.product-info .price { font-size: 20px; }
.product-info .price--old { font-size: 16px; }

.field-label {
  display: block; font-size: 11px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--color-text-muted);
  margin-bottom: 8px;
}

.qty {
  display: inline-flex; align-items: center;
  border: 1px solid var(--color-border);
  margin-bottom: 20px;
}
.qty button {
  background: none; border: 0; width: 40px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; color: var(--color-text);
}
.qty button:hover { background: var(--color-bg-alt); }
.qty input {
  width: 52px; height: 42px; text-align: center;
  border: 0; border-left: 1px solid var(--color-border);
  border-right: 1px solid var(--color-border);
  font-family: inherit; font-size: 14px; -moz-appearance: textfield;
}
.qty input::-webkit-outer-spin-button,
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; padding: 15px 24px;
  font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase;
  border: 1px solid var(--color-text); border-radius: var(--radius);
  transition: background var(--transition), color var(--transition);
}
.btn--primary { background: var(--color-text); color: #fff; }
.btn--primary:hover { background: #333; border-color: #333; }
.btn--outline { background: #fff; color: var(--color-text); margin-top: 10px; }
.btn--outline:hover { background: var(--color-text); color: #fff; }
.btn svg { width: 16px; height: 16px; }

.product-desc {
  margin-top: 32px; padding-top: 28px;
  border-top: 1px solid var(--color-border);
  font-size: 14px; line-height: 1.85;
}
.product-desc p { margin: 0 0 14px; }
.product-desc .notes-title { font-weight: 600; margin-top: 20px; }
.product-desc ul { list-style: none; margin: 8px 0 18px; padding: 0; }
.product-desc li { padding-left: 2px; }
.product-desc .meta { color: var(--color-text-muted); font-size: 13px; }

/* ---------- Partager ---------- */
.share { margin-top: 22px; }
.share__label {
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--color-text-muted); margin-bottom: 10px;
}
.share__links { display: flex; gap: 14px; }
.share__links a { color: var(--color-text-muted); }
.share__links a:hover { color: var(--color-text); }
.share__links svg { width: 18px; height: 18px; }

/* ================= FIL D'ARIANE ================= */
.breadcrumb {
  font-size: 12px; color: var(--color-text-muted);
  padding: 22px 0 0;
}
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.breadcrumb li::after { content: "/"; margin-left: 6px; color: var(--color-border); }
.breadcrumb li:last-child::after { content: ""; }
.breadcrumb a:hover { color: var(--color-text); text-decoration: underline; }

/* ================= FILTRES (page produits) ================= */
.filters {
  display: flex; flex-wrap: wrap; gap: 32px;
  padding-bottom: 32px; margin-bottom: 40px;
  border-bottom: 1px solid var(--color-border);
}
.filter-group { display: flex; flex-direction: column; gap: 8px; min-width: 190px; }
.filter-group select {
  font-family: inherit; font-size: 14px;
  padding: 10px 12px;
  border: 1px solid var(--color-border); border-radius: var(--radius);
  background: #fff; color: var(--color-text);
}

/* ================= FORMULAIRE CONTACT ================= */
.form-wrap { max-width: 620px; margin: 0 auto; }
.form-field { margin-bottom: 22px; }
.form-field input,
.form-field textarea {
  width: 100%; font-family: inherit; font-size: 14px;
  padding: 12px 14px;
  border: 1px solid var(--color-border); border-radius: var(--radius);
  background: #fff; color: var(--color-text);
}
.form-field input:focus,
.form-field textarea:focus { outline: 2px solid var(--color-text); outline-offset: -2px; }
.form-field textarea { min-height: 170px; resize: vertical; }
.form-legal { font-size: 12px; color: var(--color-text-muted); line-height: 1.7; margin-bottom: 22px; }
.form-legal a { text-decoration: underline; }
.form-wrap .btn { width: auto; min-width: 200px; }

/* ================= PAGES LÉGALES ================= */
.prose { max-width: 780px; margin: 0 auto; font-size: 14px; line-height: 1.85; }
.prose h2 { font-size: 18px; font-weight: 600; margin: 36px 0 12px; }
.prose h3 { font-size: 15px; font-weight: 600; margin: 26px 0 10px; }
.prose p, .prose li { color: #2b2b2b; }
.prose ul { padding-left: 20px; }

/* ================= FOOTER ================= */
.site-footer {
  border-top: 1px solid var(--color-border);
  padding: 44px 0 56px;
  margin-top: 40px;
  text-align: center;
}
.footer-nav ul {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 26px;
  list-style: none; margin: 0 0 26px; padding: 0;
}
.footer-nav a { font-size: 13px; color: var(--color-text-muted); }
.footer-nav a:hover { color: var(--color-text); text-decoration: underline; }

.footer-social {
  display: flex; justify-content: center; gap: 16px;
  list-style: none; margin: 0 0 26px; padding: 0;
}
.footer-social a { color: var(--color-text); }
.footer-social a:hover { opacity: 0.6; }
.footer-social svg { width: 20px; height: 20px; }

.footer-copy { font-size: 12px; color: var(--color-text-muted); }
.footer-copy strong { font-weight: 600; color: var(--color-text); }

/* Crédit réalisation */
.dtp-credit { margin: 1rem 0 0; text-align: center; font-size: 0.8rem; }
.dtp-credit a {
  display: inline-flex; align-items: center; gap: 0.4em;
  color: inherit; opacity: 0.75; text-decoration: none;
  transition: opacity 0.3s var(--ease-out);
}
.dtp-credit a:hover { opacity: 1; }
.dtp-credit img { display: inline-block; width: 20px; height: 20px; border-radius: 50%; }

/* ================= RESPONSIVE ================= */
@media (max-width: 900px) {
  .product-layout { grid-template-columns: 1fr; gap: 36px; }
}

@media (max-width: 768px) {
  .header-inner { padding: 14px 18px 0; }
  .menu-toggle { display: inline-flex; }

  .main-nav {
    display: none;
    padding: 8px 0 16px;
    border-top: 1px solid var(--color-border);
    margin-top: 12px;
  }
  /* Ouverture pilotee par le <details> natif : fonctionne sans JS. */
  .site-header:has(.nav-mobile[open]) .main-nav { display: block; }
  .main-nav.is-open { display: block; }
  .nav-mobile { display: block; }
  .main-nav ul { flex-direction: column; align-items: center; gap: 16px; }

  .hero { aspect-ratio: 4 / 3; min-height: 260px; }

  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 26px 16px; }

  .section { padding: 44px 0; }
  .section-title { font-size: 21px; margin-bottom: 28px; }
  .product-info__title { font-size: 20px; }
  .filters { gap: 20px; }
  .filter-group { min-width: 100%; }
}

@media (max-width: 480px) {
  .product-grid { grid-template-columns: 1fr; }
  .container { padding: 0 18px; }
}

/* ================= IMPRESSION ================= */
@media print {
  .site-header, .site-footer, .btn, .qty, .share { display: none; }
}

/* ================= BANDEAU COOKIES ================= */
.cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 150;
  background: #fff;
  border-top: 1px solid var(--color-border);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
}
.cookie-banner__inner {
  max-width: var(--container); margin: 0 auto;
  padding: 22px 24px;
  display: flex; align-items: center; gap: 28px; flex-wrap: wrap;
}
.cookie-banner__inner > div:first-child { flex: 1 1 420px; }
.cookie-banner__title { font-size: 17px; font-weight: 600; margin: 0 0 8px; }
.cookie-banner__text { font-size: 12px; line-height: 1.7; color: var(--color-text-muted); margin: 0; }
.cookie-banner__text a { text-decoration: underline; color: var(--color-text); }
.cookie-banner__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.cookie-banner__actions .btn { width: auto; min-width: 190px; margin-top: 0; }

@media (max-width: 768px) {
  .cookie-banner__inner { padding: 18px; gap: 16px; }
  .cookie-banner__actions { width: 100%; }
  .cookie-banner__actions .btn { flex: 1 1 auto; min-width: 0; }
}

/* ================================================
   CONTENU ÉDITORIAL — sections SEO / GEO
   ================================================ */

.section--alt { background: var(--color-bg-alt); }

.editorial {
  max-width: 760px;
  margin: 0 auto;
  font-size: 15px;
  line-height: 1.85;
}
.editorial--intro { margin-bottom: 44px; text-align: center; }
.editorial p { margin: 0 0 18px; color: #2b2b2b; }
.editorial__lead { font-size: 17px; line-height: 1.75; }
.editorial h2 {
  font-size: 20px; font-weight: 400; letter-spacing: 0.02em;
  margin: 40px 0 16px;
}
.editorial h3 {
  font-size: 16px; font-weight: 600;
  margin: 28px 0 10px;
}
.editorial a { text-decoration: underline; text-underline-offset: 3px; }
.editorial a:hover { opacity: 0.6; }
.editorial__note {
  font-size: 13px; color: var(--color-text-muted);
  border-left: 2px solid var(--color-border);
  padding-left: 16px; margin-top: 26px;
}

.steps { margin: 0 0 20px; padding-left: 22px; }
.steps li { margin-bottom: 10px; }

/* ---------- Fiche technique produit ---------- */
.spec-list {
  margin: 26px 0 0; padding-top: 22px;
  border-top: 1px solid var(--color-border);
  font-size: 13px;
}
.spec-list > div {
  display: grid; grid-template-columns: 150px 1fr;
  gap: 12px; padding: 8px 0;
  border-bottom: 1px solid var(--color-border);
}
.spec-list > div:last-child { border-bottom: 0; }
.spec-list dt { color: var(--color-text-muted); }
.spec-list dd { margin: 0; }

/* ---------- Pyramide olfactive ---------- */
.pyramide {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  max-width: 900px; margin: 0 auto;
}
.pyramide__level {
  background: #fff; padding: 26px 22px;
  border: 1px solid var(--color-border);
  text-align: center;
}
.pyramide__level h3 {
  font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--color-text-muted); font-weight: 600;
  margin: 0 0 14px;
}
.pyramide__notes { font-size: 15px; line-height: 1.6; margin: 0 0 10px; }
.pyramide__hint { font-size: 12px; color: var(--color-text-muted); margin: 0; line-height: 1.55; }

/* ---------- Tableau comparatif ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.compare {
  width: 100%; border-collapse: collapse;
  font-size: 14px; min-width: 620px;
  background: #fff;
}
.compare th, .compare td {
  padding: 14px 16px; text-align: left;
  border-bottom: 1px solid var(--color-border);
  vertical-align: top;
}
.compare thead th {
  font-weight: 600; font-size: 12px;
  letter-spacing: 0.08em; text-transform: uppercase;
  border-bottom: 1px solid var(--color-text);
}
.compare tbody th { font-weight: 600; }
.compare tbody th a { text-decoration: underline; text-underline-offset: 3px; }
.compare tbody tr:hover { background: var(--color-bg-alt); }
.compare a:hover { opacity: 0.6; }

/* ---------- FAQ (accordéon) ---------- */
.faq { max-width: 760px; margin: 0 auto; }
.faq__item {
  border-bottom: 1px solid var(--color-border);
}
.faq__item summary {
  cursor: pointer; padding: 20px 40px 20px 0;
  position: relative; list-style: none;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary h3 {
  display: inline; font-size: 15px; font-weight: 400; margin: 0;
}
.faq__item summary::after {
  content: "+"; position: absolute; right: 6px; top: 50%;
  transform: translateY(-50%);
  font-size: 20px; line-height: 1; color: var(--color-text-muted);
  transition: transform var(--transition);
}
.faq__item[open] summary::after { content: "–"; }
.faq__item summary:hover { opacity: 0.65; }
.faq__item summary:focus-visible { outline: 2px solid var(--color-text); outline-offset: 2px; }
.faq__answer {
  padding: 0 40px 22px 0;
  font-size: 14px; line-height: 1.8; color: #2b2b2b;
}
.faq__answer p { margin: 0; }

/* ---------- Liens produits du footer ---------- */
.footer-products ul {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 24px;
  list-style: none; margin: 0 0 22px; padding: 0;
}
.footer-products a { font-size: 13px; color: var(--color-text-muted); }
.footer-products a:hover { color: var(--color-text); text-decoration: underline; }

/* ================================================
   RESPONSIVE — tablette
   ================================================ */
@media (max-width: 1024px) {
  .pyramide { gap: 18px; }
  .editorial { font-size: 14.5px; }
}

@media (max-width: 900px) {
  .pyramide { grid-template-columns: 1fr; max-width: 520px; }
  .pyramide__level { padding: 22px 20px; }
}

/* ================================================
   RESPONSIVE — mobile
   ================================================ */
@media (max-width: 768px) {
  .editorial h2 { font-size: 18px; margin: 32px 0 14px; }
  .editorial__lead { font-size: 16px; }
  .spec-list > div { grid-template-columns: 1fr; gap: 2px; padding: 10px 0; }
  .spec-list dt { font-size: 12px; }
  .compare { font-size: 13px; }
  .compare th, .compare td { padding: 11px 12px; }
  .faq__item summary { padding: 17px 36px 17px 0; }
  .faq__answer { padding-right: 0; }
}

/* ================================================
   PRÉFÉRENCES UTILISATEUR
   ================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Focus visible cohérent (accessibilité + SEO) */
a:focus-visible,
button:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--color-text);
  outline-offset: 3px;
}

/* ================================================
   <picture> — le wrapper doit porter les dimensions
   sinon object-fit n'a aucun effet sur l'img enfant
   ================================================ */
picture { display: contents; }

.hero picture,
.product-card__media picture,
.gallery__main picture {
  display: block;
  width: 100%;
  height: 100%;
}

/* ================================================
   BLOG — mise en page éditoriale premium
   ================================================ */

/* ---------- Grille d'articles ---------- */
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 44px 30px;
}

.post-card__link { display: block; }

.post-card__media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--color-bg-alt);
  margin-bottom: 18px;
}
.post-card__media picture { display: block; width: 100%; height: 100%; }
.post-card__media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.3, 1);
}
.post-card__link:hover .post-card__media img { transform: scale(1.05); }

.post-card__meta {
  font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--color-text-muted);
  margin: 0 0 9px;
}
.post-card__cat { color: var(--color-text); font-weight: 600; }

.post-card__title {
  font-size: 17px; font-weight: 400; line-height: 1.4;
  letter-spacing: 0.01em;
  margin: 0 0 10px;
}
.post-card__link:hover .post-card__title { opacity: 0.62; }

.post-card__excerpt {
  font-size: 13.5px; line-height: 1.7;
  color: var(--color-text-muted);
  margin: 0;
}

/* ---------- En-tête d'article ---------- */
.post__header {
  padding: 52px 0 40px;
  text-align: center;
}
.post__meta {
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--color-text-muted);
  margin: 0 0 20px;
}
.post__cat { color: var(--color-text); font-weight: 600; }

.post__title {
  font-size: 38px; font-weight: 300; line-height: 1.2;
  letter-spacing: -0.01em;
  max-width: 22ch;
  margin: 0 auto 26px;
  text-wrap: balance;
}

.post__lead {
  font-size: 18px; line-height: 1.75;
  color: #3a3a3a;
  max-width: 660px;
  margin: 0 auto;
}

/* ---------- Image de couverture ---------- */
.post__cover {
  margin: 0 0 60px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--color-bg-alt);
}
.post__cover picture { display: block; width: 100%; height: 100%; }
.post__cover img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Corps de l'article ---------- */
.post__body {
  max-width: 680px;
  margin: 0 auto;
  font-size: 16px;
  line-height: 1.85;
  color: #262626;
}
.post__body > h2 {
  font-size: 24px; font-weight: 400; line-height: 1.3;
  letter-spacing: 0.01em;
  margin: 58px 0 20px;
}
.post__body > h2:first-child { margin-top: 0; }
.post__body p { margin: 0 0 22px; }
.post__body strong { font-weight: 600; color: var(--color-text); }

.post__body a {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.post__body a:hover { opacity: 0.6; }

/* Liste éditoriale : puce discrète, respiration */
.rich-list { list-style: none; margin: 0 0 26px; padding: 0; }
.rich-list li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 14px;
}
.rich-list li::before {
  content: "";
  position: absolute; left: 0; top: 13px;
  width: 9px; height: 1px;
  background: var(--color-text);
}

/* Tableau dans un article */
.post__body .table-wrap { margin: 0 0 30px; }
.post__body .compare { min-width: 520px; font-size: 14px; }

/* Encart d'appel à l'action inline */
.inline-cta {
  margin: 34px 0 30px;
  padding: 22px 26px;
  background: var(--color-bg-alt);
  text-align: center;
}
.inline-cta .link-arrow { margin-top: 0; }

/* ================================================
   BLOG — responsive
   ================================================ */
@media (max-width: 1024px) {
  .post-grid { gap: 36px 24px; }
  .post__title { font-size: 33px; }
}

@media (max-width: 900px) {
  .post-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .post__header { padding: 34px 0 28px; }
  .post__title { font-size: 27px; max-width: none; }
  .post__lead { font-size: 16px; }
  .post__cover { margin-bottom: 38px; aspect-ratio: 3 / 2; }

  .post__body { font-size: 15.5px; }
  .post__body > h2 { font-size: 21px; margin: 42px 0 16px; }

  .post-card__title { font-size: 16px; }
  .inline-cta { padding: 18px 20px; }
}

@media (max-width: 560px) {
  .post-grid { grid-template-columns: 1fr; gap: 40px; }
  .post-card__media { aspect-ratio: 3 / 2; }
}

/* ================================================================
   HARMONISATION — largeurs de lecture et effets de survol
   Ajouté en fin de feuille pour surcharger les règles précédentes.
   ================================================================ */

:root {
  /* Deux largeurs de lecture seulement, au lieu de six.
     --measure : texte courant (~70 caractères, optimal en lecture)
     --measure-wide : blocs qui respirent (tableaux, cartes, FAQ) */
  --measure: 720px;
  --measure-wide: 940px;

  /* Courbe de transition unique pour tout le site */
  --ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- Toutes les colonnes de texte alignées ---------- */
.editorial,
.post__body,
.prose,
.faq,
.form-wrap {
  max-width: var(--measure);
  margin-left: auto;
  margin-right: auto;
}

/* Le chapô suit exactement la même colonne que le corps */
.post__lead { max-width: var(--measure); }

/* Blocs larges : même largeur partout */
.pyramide { max-width: var(--measure-wide); }

/* Un tableau dans une colonne de texte peut déborder légèrement
   des deux côtés — il reste centré et gagne en lisibilité. */
.post__body .table-wrap,
.editorial .table-wrap {
  max-width: var(--measure-wide);
  margin-left: 50%;
  transform: translateX(-50%);
}
.post__body .compare,
.editorial .compare { width: 100%; }

/* ================================================================
   EFFETS DE SURVOL — zoom lent, voile discret, sans à-coup
   ================================================================ */

/* Le cadre masque le débordement et porte l'ombre */
.product-card__media,
.post-card__media,
.gallery__thumb {
  position: relative;
  overflow: hidden;
  isolation: isolate;                 /* garde le voile sous le contenu */
  background: var(--color-bg-alt);
}

/* Voile sombre très léger, apparaît en fondu */
.product-card__media::after,
.post-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(0, 0, 0, 0.06);
  opacity: 0;
  transition: opacity 0.55s var(--ease-out);
  pointer-events: none;
}

.product-card:hover .product-card__media::after,
.post-card__link:hover .post-card__media::after {
  opacity: 1;
}

/* Zoom long et progressif — remplace les transitions précédentes */
.product-card__media img,
.post-card__media img {
  transition: transform 0.85s var(--ease-out);
  will-change: transform;
}

.product-card:hover .product-card__media img,
.post-card__link:hover .post-card__media img {
  transform: scale(1.045);
}

/* Le titre se nuance au lieu de disparaître à moitié */
.product-card__title,
.post-card__title {
  transition: color 0.35s var(--ease-out), opacity 0.35s var(--ease-out);
}
.product-card:hover .product-card__title,
.post-card__link:hover .post-card__title {
  opacity: 1;
  color: var(--color-text-muted);
}

/* ---------- Vignettes de la galerie produit ---------- */
.gallery__thumb {
  transition: border-color 0.3s var(--ease-out), opacity 0.3s var(--ease-out);
  opacity: 0.72;
  cursor: pointer;
}
.gallery__thumb img {
  transition: transform 0.6s var(--ease-out);
}
.gallery__thumb:hover { opacity: 1; }
.gallery__thumb:hover img { transform: scale(1.06); }
.gallery__thumb[aria-current="true"] {
  opacity: 1;
  border-color: var(--color-text);
}

/* ---------- Image principale : zoom très léger ---------- */
.gallery__main {
  overflow: hidden;
  cursor: zoom-in;
}
.gallery__main img {
  transition: transform 1s var(--ease-out);
}
.gallery__main:hover img { transform: scale(1.03); }

/* ---------- Hero : respiration lente ---------- */
.hero img {
  transition: transform 1.6s var(--ease-out);
}
.hero:hover img { transform: scale(1.015); }

/* ---------- Liens et boutons : transitions homogènes ---------- */
.link-arrow,
.footer-nav a,
.footer-products a,
.main-nav a {
  transition: opacity 0.3s var(--ease-out), border-color 0.3s var(--ease-out), color 0.3s var(--ease-out);
}
.link-arrow svg { transition: transform 0.35s var(--ease-out); }
.link-arrow:hover svg { transform: translateX(4px); }

.btn { transition: background 0.35s var(--ease-out), color 0.35s var(--ease-out), border-color 0.35s var(--ease-out); }

/* ---------- Accessibilité : pas d'animation si l'utilisateur la refuse ---------- */
@media (prefers-reduced-motion: reduce) {
  .product-card:hover .product-card__media img,
  .post-card__link:hover .post-card__media img,
  .gallery__thumb:hover img,
  .gallery__main:hover img,
  .hero:hover img,
  .link-arrow:hover svg {
    transform: none;
  }
}

/* ================================================================
   RESPONSIVE — le tableau débordant revient dans la colonne
   ================================================================ */
@media (max-width: 1080px) {
  .post__body .table-wrap,
  .editorial .table-wrap {
    max-width: 100%;
    margin-left: 0;
    transform: none;
  }
}

/* ================================================================
   PANIER — pastille, panneau latéral, articles
   ================================================================ */

/* ---------- Pastille du compteur ---------- */
.icon-btn--cart { position: relative; }

.cart-count {
  position: absolute;
  top: 2px; right: 2px;
  min-width: 16px; height: 16px;
  padding: 0 4px;
  display: flex; align-items: center; justify-content: center;
  background: var(--color-text); color: #fff;
  font-size: 10px; font-weight: 600; line-height: 1;
  border-radius: 999px;
}

/* ---------- Carte produit : bouton d'ajout ---------- */
.product-card { position: relative; }
.product-card__link { display: block; }
/* Le média sert d'ancrage au bouton d'ajout */
.product-card__media { position: relative; }

.product-card__add {
  /* Ancré en bas de la zone image via .product-card__media,
     qui sert de référence de positionnement. */
  position: absolute;
  left: 12px; right: 12px; bottom: 12px;
  z-index: 3;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--color-text);
  color: var(--color-text);
  font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.35s var(--ease-out), transform 0.35s var(--ease-out),
              background 0.25s var(--ease-out), color 0.25s var(--ease-out);
  pointer-events: none;
}

.product-card:hover .product-card__add,
.product-card:focus-within .product-card__add {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.product-card__add:hover { background: var(--color-text); color: #fff; }

/* Sur tactile, pas de survol : le bouton reste visible sous la carte */
@media (hover: none) {
  .product-card__add {
    position: static;
    opacity: 1; transform: none; pointer-events: auto;
    margin-top: 12px; width: 100%;
    background: #fff;
  }
}

/* ---------- Voile ---------- */
.cart-overlay {
  position: fixed; inset: 0; z-index: 190;
  background: rgba(0, 0, 0, 0.28);
  opacity: 0;
  transition: opacity 0.32s var(--ease-out);
}
.cart-overlay.is-open { opacity: 1; }

/* ---------- Panneau ---------- */
.cart {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 200;
  width: min(420px, 100vw);
  background: #fff;
  border-left: 1px solid var(--color-border);
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.36s var(--ease-out);
  box-shadow: -12px 0 40px rgba(0, 0, 0, 0.07);
}
.cart.is-open { transform: translateX(0); }

.cart__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 24px 26px;
  border-bottom: 1px solid var(--color-border);
  flex-shrink: 0;
}
.cart__title {
  font-size: 13px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  margin: 0;
}
.cart__close {
  background: none; border: 0; padding: 4px 8px;
  font-size: 26px; line-height: 1; color: var(--color-text);
  transition: opacity 0.25s var(--ease-out);
}
.cart__close:hover { opacity: 0.55; }

.cart__empty {
  padding: 60px 26px;
  text-align: center; color: var(--color-text-muted); font-size: 14px;
}

.cart__items {
  list-style: none; margin: 0; padding: 0;
  overflow-y: auto; flex: 1;
  -webkit-overflow-scrolling: touch;
}

/* ---------- Ligne d'article ---------- */
.cart-item {
  display: flex; gap: 16px;
  padding: 20px 26px;
  border-bottom: 1px solid var(--color-border);
}
.cart-item__media {
  width: 76px; height: 76px; flex-shrink: 0;
  overflow: hidden; background: var(--color-bg-alt);
}
.cart-item__media img { width: 100%; height: 100%; object-fit: cover; }

.cart-item__body { flex: 1; min-width: 0; }
.cart-item__name {
  font-size: 13px; letter-spacing: 0.03em;
  margin: 0 0 4px;
}
.cart-item__price {
  font-size: 13px; font-weight: 600;
  margin: 0 0 12px;
}
.cart-item__actions {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}

.qty--sm { margin-bottom: 0; }
.qty--sm button { width: 30px; height: 32px; font-size: 15px; }
.qty--sm input { width: 40px; height: 32px; font-size: 13px; }

.cart-item__remove {
  background: none; border: 0; padding: 0;
  font-size: 12px; color: var(--color-text-muted);
  text-decoration: underline; text-underline-offset: 3px;
  transition: color 0.25s var(--ease-out);
}
.cart-item__remove:hover { color: var(--color-text); }

/* ---------- Pied du panneau ---------- */
.cart__foot {
  padding: 22px 26px 26px;
  border-top: 1px solid var(--color-border);
  flex-shrink: 0;
}
.cart__total {
  display: flex; align-items: baseline; justify-content: space-between;
  font-size: 14px;
  margin-bottom: 6px;
}
.cart__total strong { font-size: 18px; font-weight: 600; }
.cart__note {
  font-size: 12px; color: var(--color-text-muted);
  margin: 0 0 18px;
}
.cart__foot .btn { width: 100%; }
.cart__foot .btn--outline { margin-top: 10px; }

/* ---------- Responsive ---------- */
@media (max-width: 480px) {
  .cart { width: 100vw; }
  .cart__head, .cart-item, .cart__foot { padding-left: 18px; padding-right: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .cart, .cart-overlay, .product-card__add { transition: none; }
}

/* Le lien qui enveloppe l'image doit remplir le média */
.product-card__media-link {
  display: block;
  width: 100%; height: 100%;
}
.product-card__media-link picture { display: block; width: 100%; height: 100%; }

/* Le survol du média comme du titre déclenche le même effet */
.product-card:hover .product-card__media img { transform: scale(1.045); }
.product-card:hover .product-card__media::after { opacity: 1; }
.product-card:hover .product-card__title { color: var(--color-text-muted); }

/* ================= ENCADRÉ « À FOURNIR » =================
   Marque visiblement un champ légal obligatoire non renseigné.
   Volontairement voyant : il doit être impossible de publier
   sans le voir, et il ne doit jamais être confondu avec du contenu.
   Contraste vérifié : #8a4b00 sur #fff8ed = 6,1:1 (WCAG AA). */
.afournir {
  margin: 14px 0;
  padding: 14px 16px;
  border: 2px dashed #c2410c;
  border-radius: 6px;
  background: #fff8ed;
  color: #8a4b00;
  font-size: 15px;
  line-height: 1.55;
}
.afournir strong {
  display: inline-block;
  margin-right: 6px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 13px;
}

/* Formulaire désactivé faute d'endpoint : visiblement inactif,
   pour qu'aucun visiteur ne croie son message envoyé. */
.form--desactive { opacity: 0.5; pointer-events: none; }

/* Consentement : « Tout refuser » et « Tout accepter » strictement identiques
   (même niveau, même poids visuel), conformément à la délibération CNIL.
   Un refus rendu moins visible que l'acceptation vicie le consentement. */
.btn--consent {
  background: var(--color-text);
  color: #fff;
  border: 1px solid var(--color-text);
}
.btn--consent:hover { opacity: 0.88; }
.cookie-banner__link {
  align-self: center;
  font-size: 14px;
  text-decoration: underline;
}
