/* =========================
   Base, tokens & resets
   ========================= */
:root{
  /* colors */
  --c-bg: #f5f7fa;
  --c-text: #222;
  --c-muted: #334155;
  --c-brand: #003b6f;
  --c-brand-2: #00529B;
  --c-border: #e5e7eb;
  --c-border-soft: #e6e6e9;
  --c-card: #fff;
  --c-card-shadow: rgba(16,24,40,.06);
  --c-card-shadow-hover: rgba(16,24,40,.10);
  --c-footer-bg: #eee;
  --c-link: #003b6f;

  /* accents */
  --c-cta: #FF9900;
  --c-cta-border: #e68a00;
  --c-cta-hover: #cc7a00;
  --c-cta-border-hover: #b36b00;
  --c-cta2: #93c5fd;
  --c-cta2-border: #bfdbfe;
  --c-cta2-hover: #60a5fa;

  /* info surfaces */
  --c-info-bg: #eef6ff;
  --c-info-border: #dbeafe;
  --c-warn-bg: #fef3c7;
  --c-warn-border: #fde68a;
  --c-warn-text: #7c5200;

  /* layout & type */
  --max-w: 1100px;
  --max-w-content: 1000px;
  --radius-s: 10px;
  --radius-m: 12px;
  --radius-l: 14px;
  --space-1: 6px;
  --space-2: 8px;
  --space-3: 10px;
  --space-4: 12px;
  --space-5: 16px;
  --space-6: 24px;
  --space-7: 32px;
  --shadow: 0 6px 18px var(--c-card-shadow);
  --shadow-lg: 0 10px 26px var(--c-card-shadow-hover);
  --fs-base: 1rem;
  --lh: 1.7;
}

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

html, body{ overflow-x: hidden; }

body{
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--c-bg);
  color: var(--c-text);
  line-height: var(--lh);
  font-size: var(--fs-base);
}

/* Fluid headings */
h1{ font-size: clamp(1.8rem, 2.2rem + 1.2vw, 2.5rem); }
h2{ font-size: clamp(1.3rem, 1.1rem + .8vw, 1.6rem); }
h3{ font-size: clamp(1.05rem, .95rem + .6vw, 1.3rem); }

/* Media elements */
img, video, svg, canvas, iframe{
  max-width: 100%;
  height: auto;
  display: block;
}

/* Utility containers */
.container, .content-area, .seo-section, .seo-content{
  max-width: var(--max-w-content);
  margin: var(--space-6) auto;
  padding: 0 1rem;
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* Wrapper global utilisé sur les pages détail */
.wrap{
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
}

/* =========================
   Header & Hero (unifié mobile → desktop)
   ========================= */
header{
  background: var(--c-brand);
  color: #fff;
  padding: 2rem 1rem 1.5rem;
  text-align: center;
}
header h1{ margin: 0; }
header p{
  font-size: 1.1rem;
  margin-top: .5rem;
}

/* Hero utilisé sur les pages de liste (même rendu partout) */
.hero{
  background: linear-gradient(120deg,#dbeafe,#d1fae5);
  padding: 28px 0;
  border-bottom: 1px solid var(--c-border);
  text-align: center;
}
.hero h1{ margin: 0; font-size: clamp(22px,4vw,34px); }
.hero p{ margin: 6px 0 0; color: #1f2937; }

/* Alerte globale */
.global-alert{
  max-width: var(--max-w);
  margin: 10px auto 0;
  padding: 10px 14px;
  background:#fee2e2;
  border:1px solid #fecaca;
  color:#7f1d1d;
  border-radius:10px;
  font-size:.95rem;
  text-align:center;
}
.global-update{ display:inline-block; margin-top:4px; font-weight:700; }

/* ===== Disclaimer d’affiliation ===== */
.affiliate-disclaimer {
  max-width: 1100px;
  margin: 0 auto;
  padding: 12px 16px;
  background: #eef6ff;          /* bleu très pâle (pastel bébé) */
  border: 1px solid #dbeafe;
  border-radius: 10px;
  font-size: 0.85rem;
  line-height: 1.5;
  color: #334155;
  text-align: center;
}
.affiliate-disclaimer p { margin: 0; }

/* =========================
   Sections & rich content
   ========================= */
.seo-section h2,
.seo-content h2{ color: var(--c-brand); margin-top: 1.8rem; }
.seo-section h3,
.seo-content h3{ color: var(--c-brand-2); margin-top: 1.5rem; }

.seo-section ul{ padding-left: 1.5rem; }
.seo-section li{ margin-bottom: .5rem; }

.seo-content{
  line-height: 1.75;
  color: #1f2937;
}
.seo-content p{ margin: 1rem 0; }

/* Table of contents (compact) */
.toc-compact{
  background:#fff;
  border:1px solid var(--c-border);
  border-radius:12px;
  box-shadow: var(--shadow);
  padding:12px;
  margin:16px 0;
}
.toc-compact h2{ margin:0 0 10px; font-size:1.1rem; }
.toc-compact ol{ margin:0; padding-left:20px; }
.toc-compact li{ margin:6px 0; color:#334155; }
.toc-compact a{ text-decoration:none; color:#0f172a; }
.toc-compact a:hover{ text-decoration:underline; }

/* =========================
   Cards & CTAs
   ========================= */
.start-here .cat-grid{ gap: var(--space-5); }

.cat-card{
  background: var(--c-card);
  border:1px solid var(--c-border);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow);
  padding: var(--space-5);
  display:flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform .12s ease, box-shadow .12s ease;
}
.cat-card:hover{ transform: translateY(-2px); box-shadow: var(--shadow-lg); }

.cat-title{ font-size: 1.1rem; margin-bottom: var(--space-2); }
.cat-copy{
  flex: 1;
  color: var(--c-muted);
  font-size: .95rem;
  line-height: 1.45;
  margin: 0 0 var(--space-3);
}

.cat-cta{
  align-self: flex-start;
  display: inline-block;
  padding: 8px 14px;
  border-radius: 10px;
  background: var(--c-cta2);
  border: 1px solid var(--c-cta2-border);
  color: #0b1324;
  font-weight: 700;
  font-size: .9rem;
  text-decoration: none;
}
.cat-cta:hover{ background: var(--c-cta2-hover); color:#fff; }

/* Generic blurb */
.blurb{
  margin: 6px 0 0;
  color: #111827;
  font-size: .95rem;
  line-height: 1.5;
  text-align:justify;
}
.blurb strong{ font-weight: 700; }

/* Buttons */
.btn-row{
  display: flex;
  gap: var(--space-3);
  margin-top: var(--space-3);
  justify-content: center; /* unifié : centré partout */
  flex-wrap: wrap;
}
.btn{
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  text-align: center;
  padding: 10px 12px;
  border-radius: 10px;
  font-weight: 700;
  font-size: .95rem;
  line-height: 1;
  text-decoration: none;
  border: 1px solid transparent;
}
.btn-secondary{
  background: #f8fafc;
  border-color: #e2e8f0;
  color: #0f172a;
}
.btn-primary{
  background: var(--c-cta);
  border-color: var(--c-cta-border);
  color: #0b1324;
}
.btn-primary:hover{
  background: var(--c-cta-hover);
  border-color: var(--c-cta-border-hover);
  color: #fff;
}
/* Place la PDSF sous les boutons (pleine largeur) */
.msrp-note {
  order: 3;
  flex-basis: 100%;
  width: 100%;
  text-align: center;
  font-size: .9rem;
  color: #222;
  margin-top: 4px;
  padding: 4px 10px;
  display: inline-block;
  /*background: #f8fafc;*/            /* fond gris très pâle */
  /*border: 1px solid #e5e7eb;*/      /* fin contour */
  border-radius: 10px;             /* coins arrondis */
  font-weight: 500;               /* un peu plus de poids */
}

/* Si tu as déjà une .cta-blurb sous les boutons, on la pousse après la PDSF */
.btn-row + .cta-blurb,
.btn-row .cta-blurb{
  order: 4;
}

/* External-link icon */
.ext-ico{ display: inline-block; fill: currentColor; }

/* Title line / tags */
.titleLine{ display:flex; align-items:center; gap:8px; flex-wrap:wrap; justify-content: center; text-align:center; }
.titleLine .tag{ margin-left: 2px; }

/* =========================
   Liste produits (style uni-colonne partout)
   ========================= */

/* Conteneur des cartes */
.cards{
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin: 16px 0;
}

/* Carte */
.cardx{
  grid-column: 1 / -1;
  background:#fff;
  border:1px solid var(--c-border);
  border-radius:12px;
  box-shadow: var(--shadow);
  padding:12px;
  cursor: pointer;
}
.cardx:focus-visible{ outline: 3px solid #93c5fd; outline-offset: 3px; }

/* Ligne interne : on reste en 1 colonne partout */
.row{
  display: grid;
  grid-template-columns: 1fr !important; /* force mobile layout à toutes tailles */
  gap: 12px;
  align-items: center;
  text-align: center;
}

/* Vignette produit (image large et centrée partout) */
.thumb{ display:flex; justify-content:center; margin: 10px 0 0; }
.thumb img{
  width: min(100%, 420px) !important;
  height: auto !important;
  max-height: none !important;
  object-fit: contain;
  background:#f1f5f9;
  border-radius:8px;
  padding:6px;
  margin-left: auto;
  margin-right: auto;
}

/* Meta (score, etc.) centrés */
.metaLine{
  display:flex;
  gap:12px;
  align-items:center;
  justify-content:center;
  flex-wrap:wrap;
  color:#334155;
  font-size:.95rem;
  margin-top:10px;
}

/* Badges */
.badges{ display:flex; gap:6px; flex-wrap:wrap; margin:8px 0; justify-content:center; }
.badge{
  font-size:12px;
  border:1px solid #cbd5e1;
  border-radius:999px;
  padding:4px 8px;
  background:#fff;
  color:#334155;
}

/* CTA Amazon (hérite du look .btn-primary, conservé) */
.cta-amz{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--c-cta);
  border: 1px solid var(--c-cta-border);
  color: #0b1324;
  border-radius: 10px;
  padding: 10px 14px;
  text-decoration: none;
  font-weight: 700;
}
.cta-amz:hover{ background: var(--c-cta-hover); color: #fff; border-color: var(--c-cta-border-hover); }

/* Texte & résumé */
.content{ line-height: 1.7; color: #111827; }
.summary{ text-align: center; margin: 6px 0 10px; }

/* Blurb sous le CTA (style notice/astuce) */
.cta-blurb {
  font-size: .85rem;
  line-height: 1.4;
  text-align: center;
  font-weight: 600;
  color: #1e40af;               /* bleu moyen (lisible) */
  background: #eff6ff;          /* bleu très pâle en fond */
  border: 1px solid #bfdbfe;    /* bleu clair pour encadrer */
  border-radius: 6px;           /* coins arrondis doux */
  padding: 6px 10px;            /* espace intérieur */
  margin-top: 10px;
  display: inline-block;        /* garde la largeur ajustée au texte */
  max-width: 100%;
}

/* Force le texte à passer sous les boutons, partout */

/* =========================
   Tags & score pills
   ========================= */

/* Yellow "tag" badge */
.tag {
  background: #fde68a;
  border: 1px solid #fcd34d;
  color: #7c5200;
  border-radius: 8px;
  padding: 2px 8px;
  font-size: 12px;
  font-weight: 700;
  display: inline-block;
}

/* Purple "score" pill */
.score {
  background: #e9d5ff;
  border: 1px solid #e9d5ff;
  border-radius: 10px;
  padding: 4px 8px;
  font-weight: 800;
  font-size: .95rem;
  color: #111;
}

/* Notices */
.notice{
  background: var(--c-warn-bg);
  border: 1px solid var(--c-warn-border);
  color: var(--c-warn-text);
  border-radius: var(--radius-s);
  padding: var(--space-3);
  margin: var(--space-3) 0;
}

/* Search box */
.search-box{ display:flex; justify-content:center; padding: 0 8px; }
.search-box input{ width: 100%; max-width: 480px; }

/* Tables & iframes within content-area */
.content-area table{
  display: block;
  width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
}
.content-area iframe{ width: 100%; max-width: 100%; border: 0; }

/* Accessibility helper (screen-reader only) */
.sr-only{
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* =========================
   Footer
   ========================= */
footer{
  background: var(--c-footer-bg);
  text-align: center;
  padding: 2rem 1rem;
  font-size: .9rem;
}
footer a{ color: var(--c-link); text-decoration: none; margin: 0 1rem; }
footer a:hover{ text-decoration: underline; }

footer nav{ max-width: var(--max-w); margin: 0 auto; }
.footer-links{
  list-style: none;
  margin: 0; padding: 0;
  display: flex; flex-wrap: wrap;
  justify-content: center;
  gap: 8px 14px;
}
.footer-links li{ position: relative; padding-left: 0; }
.footer-meta{ margin-top: 12px; color: #555; font-size: .85rem; }

/* =========================
   Media tweaks (léger)
   ========================= */

@media (max-width: 800px){
  .toc-compact ol{ padding-left: 18px; }
}

@media (max-width: 600px){
  header h1{ font-size: clamp(1.6rem, 1.4rem + 2vw, 1.8rem); }
}

@media (max-width: 520px){
  .footer-links{ gap: 6px 10px; }
}

/* =========================
   Motion preferences
   ========================= */
@media (prefers-reduced-motion: reduce){
  *{ animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .cat-card:hover{ transform: none; box-shadow: var(--shadow); }
}

/* Tags nuage (liens) */
.tags a.tag {
  display: inline-block;
  background: #eef2ff;
  border: 1px solid #e0e7ff;
  color: #3730a3;
  border-radius: 999px;
  padding: .25rem .6rem;
  font-size: .85rem;
  text-decoration: none;
  transition: all 0.2s ease-in-out;
  cursor: pointer;
}
.tags a.tag:hover {
  background: #0b63ce;
  border-color: #0b63ce;
  color: #fff;
  box-shadow: 0 3px 8px rgba(11,99,206,.2);
  transform: translateY(-2px);
}

/* Badge animé "Coup de cœur" */
.pulse-tag {
  display: inline-block;
  background: #0ea5e9;
  color: #fff;
  font-weight: 700;
  font-size: .8rem;
  padding: 4px 10px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: .5px;
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
  margin-left: 8px;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}
@media (prefers-reduced-motion: reduce) {
  .pulse-tag { animation: none; }
}

/* Utilitaires centrage (pages détail et listes) */
.btn-row.center{ justify-content: center; }
.titleLine.center{ justify-content: center; text-align: center; }
.badges.center{ justify-content: center; }
.cta-blurb.center{
  text-align: center;
  max-width: none;
  margin-left: auto;
  margin-right: auto;
}

/* === Uniformiser les CTA comme en mobile, à toutes tailles d'écran === */

/* 1) Les boutons prennent toute la largeur et s'empilent */
.btn-row{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  width:100%;
  gap: var(--space-3);
}
.btn-row > .btn,
.btn-row > .cta-amz{
  flex: 1 1 100%;
  width: 100%;
  display: inline-flex; /* garde l'alignement interne actuel */
}

/* 2) Le texte "Ajouter au panier" passe SOUS les boutons et en bold */
.btn-row .cta-blurb{
  order: 3;              /* après les 2 boutons */
  flex-basis: 100%;
  width: 100%;
  margin-top: 8px;
  text-align: center;
  font-weight: 700;
  max-width: none;       /* enlève l'ancienne limite ~190px si elle existe */
}

/* 3) Neutralise d’éventuels overrides "desktop" restants dans le fichier */
.cards .cardx .btn-row{ justify-content: center !important; }

/* ===== Overrides "hard" pour forcer le rendu mobile partout ===== */

/* Boutons pleine largeur, empilés */
.cards .cardx .row .btn-row > .btn,
.cards .cardx .row .btn-row > .cta-amz{
  flex: 1 1 100% !important;
  width: 100% !important;
  display: inline-flex;
}

/* Le texte "Ajouter au panier" passe sous les boutons + bold */
.cards .cardx .row .btn-row .cta-blurb{
  order: 3 !important;
  flex-basis: 100% !important;
  width: 100% !important;
  margin-top: 8px !important;
  text-align: center !important;
  font-weight: 700 !important;
}

/* =========================
   Product detail pages (poussettes, coquilles, etc.)
   ========================= */

/* Hero (spécifique aux pages détail qui n'utilisent pas <header>) */
.hero{
  background: linear-gradient(120deg,#dbeafe,#d1fae5);
  padding: 28px 0;
  border-bottom: 1px solid var(--c-border);
  text-align: center;
}
.hero h1{ margin: 0; font-size: clamp(22px,4vw,34px); }
.hero p{ margin: 6px 0 0; color: #1f2937; }

/* Carte produit */
.product{
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow);
  padding: 16px;
  margin: 18px 0;
}



/* En-tête de la fiche : image + contenu */
.top{
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 16px;
  align-items: start;
  text-align: center; /* centrage du contenu texte */
}
.top img{
  width: 100%;
  height: auto;
  object-fit: contain;
  background: #f1f5f9;
  border-radius: 10px;
  padding: 8px;
}

/* Badges & éléments d'info (réutilise .tag et .score globaux) */
.badges{ display:flex; gap:6px; flex-wrap:wrap; margin:8px 0; }
.badge{
  font-size:12px;
  border:1px solid #cbd5e1;
  border-radius:999px;
  padding:4px 8px;
  background:#fff;
  color:#334155;
}

.mini-reviews{
  margin-top:10px; background:#f8fafc; border:1px solid #e5e7eb;
  border-radius:10px; padding:10px;
}
.mini-review{
  border-top:1px dashed #e5e7eb; padding-top:8px; margin-top:8px;
}
.mini-review:first-child{ border-top:none; padding-top:0; margin-top:0; }
.mini-review__meta{
  display:flex; align-items:center; gap:6px; font-size:.85rem; color:#475569;
}
.mini-review__author{ color:#0f172a; }
.mini-review__date{ color:#334155; }
.mini-review__content{ color:#1f2937; font-size:.9rem; line-height:1.35; margin-top:2px; }
.mini-reviews__toggle{
  margin-top:8px; background:#eef2ff; border:1px solid #c7d2fe;
  border-radius:8px; padding:6px 10px; font-weight:700; cursor:pointer;
}

.mini-reviews__title {
  margin: 0 0 8px;
  font-size: .95rem;
  font-weight: 700;
  color: #0f172a;
}