/* BerGère — feuille de style commune */
:root {
  --green-900: #1f4d0c;
  --green-700: #2f7012;
  --green-600: #3a8a16;
  --green-500: #4fae1a;
  --green-100: #eaf5e1;
  --lime: #b4c21f;
  --ink: #1d261a;
  --muted: #5d6858;
  --line: #dde4d6;
  --bg: #f3f5ef;
  --card: #ffffff;
  --warn-bg: #fff4e5;
  --warn-ink: #8a3b00;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(20, 40, 10, .06), 0 4px 14px rgba(20, 40, 10, .06);
  --font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.55 var(--font); }
img { max-width: 100%; height: auto; }
a { color: var(--green-700); }
a:hover { color: var(--green-900); }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .6em; }
h2 { font-size: 1.2rem; color: var(--green-900); }
h3 { font-size: 1.02rem; }
p { margin: 0 0 1em; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); font-weight: 400; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 8px; z-index: 10; background: #fff; padding: 8px 12px; }

/* --- En-tête -------------------------------------------------------- */
.site-header { background: #fff; border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 8px; padding-bottom: 8px; }
.brand img { display: block; width: 150px; }
.header-meta { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px 18px; font-size: .92rem; }
.header-meta a { color: var(--muted); text-decoration: none; }
.header-meta a:hover { color: var(--green-700); text-decoration: underline; }
.header-meta .lang { color: var(--green-700); font-weight: 600; }

.mainnav { background: var(--green-700); }
.mainnav ul { display: flex; margin: 0; padding: 0; list-style: none; overflow-x: auto; scrollbar-width: none; }
.mainnav ul::-webkit-scrollbar { display: none; }
.mainnav a {
  display: block; padding: 13px 16px; color: #fff; text-decoration: none; font-weight: 600;
  white-space: nowrap; border-bottom: 3px solid transparent;
}
.mainnav a:hover { background: var(--green-600); color: #fff; }
.mainnav a[aria-current="page"] { background: var(--green-900); border-bottom-color: var(--lime); }

/* --- Titre de page -------------------------------------------------- */
.page-title { background: linear-gradient(120deg, var(--green-600), var(--green-500) 60%, #7cc62a); color: #fff; padding: 32px 0 28px; }
.page-title h1 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); margin: 0; text-shadow: 0 1px 2px rgba(0,0,0,.25); }
.page-title .lead { margin: .5em 0 0; font-size: 1.1rem; max-width: 46em; opacity: .95; }

/* --- Sous-navigation de section ------------------------------------ */
.subnav { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 0; }
.subnav a {
  padding: 7px 16px; border: 1px solid var(--line); border-radius: 999px; background: #fff;
  color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem;
}
.subnav a:hover { border-color: var(--green-600); color: var(--green-700); }
.subnav a[aria-current="page"] { background: var(--green-700); border-color: var(--green-700); color: #fff; }

main { padding-bottom: 48px; }

/* --- Grilles et cartes --------------------------------------------- */
.grid { display: grid; gap: 20px; margin-top: 24px; }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-3-1 { grid-template-columns: 2fr 1fr; }
.stack { display: grid; gap: 20px; align-content: start; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px 24px; }
.card > :last-child { margin-bottom: 0; }
.card-accent { background: var(--green-100); border-color: #cfe5bd; }
.section-h { margin-top: 36px; margin-bottom: 0; font-size: 1.35rem; }
.big { font-size: 1.15rem; font-weight: 600; }
.more { margin-top: 12px; font-weight: 600; }

/* --- Listes de liens (PDF, vidéos) --------------------------------- */
.links { list-style: none; margin: 0 0 1em; padding: 0; }
.links li + li { border-top: 1px solid var(--line); }
.links a { display: flex; gap: 12px; align-items: baseline; padding: 10px 4px; text-decoration: none; color: var(--ink); }
.links a:hover .txt { color: var(--green-700); text-decoration: underline; }
.tag {
  flex: none; min-width: 64px; text-align: center; font-size: .72rem; font-weight: 700; letter-spacing: .03em;
  text-transform: uppercase; border-radius: 4px; padding: 2px 6px; position: relative; top: -1px;
}
.tag-pdf { background: #fdecea; color: #a12a1a; }
.tag-video { background: var(--green-100); color: var(--green-900); }
.note { color: var(--muted); }
.note a { color: var(--green-700); }
.card h3 { margin-top: 1.2em; }
.crosslink { margin: 24px 0 0; padding: 14px 18px; background: #fff; border: 1px dashed #b9cfa8; border-radius: var(--radius); }
.crosslink a { font-weight: 600; }

/* --- Boutons -------------------------------------------------------- */
.btn {
  display: inline-block; padding: 11px 20px; border-radius: 8px; background: var(--green-700); color: #fff;
  font-weight: 700; text-decoration: none; border: 2px solid var(--green-700);
}
.btn:hover { background: var(--green-900); border-color: var(--green-900); color: #fff; }
.btn-ghost { background: #fff; color: var(--green-700); }
.btn-ghost:hover { background: var(--green-100); color: var(--green-900); }
.btn-small { padding: 7px 14px; font-size: .92rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

/* --- Produits ------------------------------------------------------- */
.product, .reader { display: flex; gap: 18px; align-items: center; text-decoration: none; color: var(--ink); transition: border-color .15s, transform .15s; }
.product:hover, .reader:hover { border-color: var(--green-500); transform: translateY(-2px); color: var(--ink); }
.product img { width: 120px; flex: none; }
.reader img { width: auto; max-height: 110px; flex: none; }
.product h3, .reader h3 { margin: 0 0 .3em; color: var(--green-900); }
.product p, .reader p { margin: 0 0 .5em; color: var(--muted); }
.price { display: inline-block; font-weight: 700; color: var(--green-700); }
.price-big { font-size: 2rem; font-weight: 800; color: var(--green-700); margin: 0 0 .3em; }
.price-big small { font-size: 1rem; font-weight: 600; color: var(--muted); }
.price-card { text-align: center; }
.price-card .checks { text-align: left; }
.shot { display: block; margin: 0 auto 14px; }
.feature { display: flex; gap: 24px; align-items: flex-start; }
.feature img { width: 210px; flex: none; border-radius: 8px; }
.video-teaser { align-items: center; gap: 18px; padding: 12px; margin-bottom: 1em; border: 1px solid var(--line); border-radius: 8px; text-decoration: none; color: var(--ink); }
.video-teaser:hover { border-color: var(--green-500); color: var(--ink); }
.video-teaser img { width: 160px; }
.video-teaser h3 { margin: 0 0 .2em; color: var(--green-900); }
.video-teaser p { margin: 0; color: var(--muted); }
.reader-mini { display: flex; gap: 14px; align-items: center; padding: 10px 0; }
.reader-mini + .reader-mini { border-top: 1px solid var(--line); }
.reader-mini img { width: auto; max-height: 70px; max-width: 40px; }
.reader-mini h3 { margin: 0; }
.badge { display: inline-block; margin-left: 8px; padding: 2px 10px; border-radius: 999px; background: var(--warn-bg); color: var(--warn-ink); font-size: .8rem; vertical-align: middle; }

/* --- Listes à puces ------------------------------------------------- */
.checks { list-style: none; padding: 0; margin: 0 0 1em; }
.checks > li { position: relative; padding: 4px 0 4px 26px; }
.checks > li::before { content: "✓"; position: absolute; left: 2px; color: var(--green-600); font-weight: 800; }
.checks .sub { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 18px; margin: 6px 0 4px; padding-left: 18px; color: var(--muted); }
.notes { margin: 0; padding-left: 1.3em; }
.notes li { margin-bottom: .4em; }
.callout { padding: 12px 16px; background: var(--green-100); border-left: 4px solid var(--green-600); border-radius: 6px; }
.alert { padding: 12px 16px; background: var(--warn-bg); color: var(--warn-ink); border-left: 4px solid #e07a00; border-radius: 6px; font-weight: 600; }
.fineprint { font-size: .88rem; color: var(--muted); }

/* --- Téléchargements ------------------------------------------------ */
.status { margin-top: 24px; padding: 14px 18px; background: #fff; border: 1px solid var(--line); border-left: 5px solid var(--green-600); border-radius: var(--radius); font-size: 1.1rem; }
.status strong { color: var(--green-700); }
.status span { color: var(--muted); }
main > .wrap > section.card { margin-top: 20px; }
.dls { list-style: none; margin: 0 0 1em; padding: 0; }
.dl { display: flex; align-items: center; gap: 16px; padding: 14px 0; }
.dl + .dl { border-top: 1px solid var(--line); }
.dl img { flex: none; }
.dl-txt { flex: 1; }
.dl-txt h3 { margin: 0 0 .2em; }
.dl-txt p { margin: 0; color: var(--muted); }

/* --- Tableau de spécifications ------------------------------------- */
.specs { width: 100%; border-collapse: collapse; margin-bottom: 1em; }
.specs th, .specs td { text-align: left; padding: 7px 8px; border-bottom: 1px solid var(--line); }
.specs th { color: var(--muted); font-weight: 600; width: 45%; }

/* --- Pied de page --------------------------------------------------- */
.site-footer { background: var(--green-900); color: #dfe9d6; font-size: .95rem; }
.site-footer a { color: #fff; }
.site-footer h2 { color: #fff; font-size: 1rem; margin-bottom: .6em; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .35em; }
.footer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; padding-top: 32px; padding-bottom: 20px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding-top: 14px; padding-bottom: 20px; border-top: 1px solid rgba(255,255,255,.15); color: #b9cbab; }
.footer-bottom span:first-child { color: var(--lime); font-weight: 700; }

/* --- Petits écrans -------------------------------------------------- */
@media (max-width: 860px) {
  .grid.cols-2, .grid.cols-3, .grid.cols-3-1 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .header-row { flex-direction: column; align-items: flex-start; }
  .header-meta { justify-content: flex-start; }
  .brand img { width: 120px; }
  .mainnav ul { flex-wrap: wrap; }
  .mainnav a { padding: 10px 12px; }
  .card { padding: 18px; }
  .feature { flex-direction: column; }
  .checks .sub { grid-template-columns: 1fr; }
  .dl { flex-wrap: wrap; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media print {
  .mainnav, .subnav, .hero-actions, .skip { display: none; }
  .page-title { background: none; color: var(--ink); }
  .card { box-shadow: none; }
}
