/* ==========================================================================
   AGM TEC — feuille de style
   Charte reprise de camera-canalisation-rotative.com et camera-forage.com
   ========================================================================== */

:root {
  --primary:        #ec6c2b;
  --primary-dark:   #cf551a;
  --primary-soft:   #fdf0e8;
  --dark:           #0e1b31;
  --dark-2:         #16294a;
  --body:           #565f6e;
  --accent:         #14b090;
  --accent-2:       #1dca86;
  --mint:           #ebfbf5;

  --ink:            #0e1b31;
  --muted:          #7b8494;
  --line:           #e4e8ee;
  --line-soft:      #eef1f5;
  --surface:        #ffffff;
  --surface-2:      #f6f8fb;

  --font:           "Rubik", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-text:      "Noto Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius:         14px;
  --radius-sm:      9px;
  --radius-lg:      22px;
  --shadow:         0 2px 6px rgba(14, 27, 49, .05), 0 12px 34px rgba(14, 27, 49, .07);
  --shadow-lg:      0 8px 20px rgba(14, 27, 49, .08), 0 28px 64px rgba(14, 27, 49, .12);

  --wrap:           1220px;
  --step:           clamp(3.25rem, 6vw, 5.5rem);
}

/* ------------------------------------------------------------------ socle */

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

/* « clip » plutôt que « hidden » : le panneau de menu hors écran ne crée pas
   de défilement horizontal, et la position sticky de l'en-tête reste active. */
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }

body {
  margin: 0;
  font-family: var(--font-text);
  font-size: 1.0125rem;
  line-height: 1.72;
  color: var(--body);
  background: var(--surface);
  overflow-x: clip;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font);
  color: var(--ink);
  line-height: 1.2;
  margin: 0 0 .6em;
  font-weight: 700;
  letter-spacing: -.01em;
}

h1 { font-size: clamp(1.95rem, 4vw, 3.05rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 2.7vw, 2.15rem); }
h3 { font-size: clamp(1.18rem, 1.9vw, 1.42rem); }
h4 { font-size: 1.12rem; }

p { margin: 0 0 1.15rem; }

a { color: var(--primary); text-decoration: none; transition: color .18s ease; }
a:hover { color: var(--primary-dark); text-decoration: underline; }

img { max-width: 100%; height: auto; display: block; }

ul, ol { margin: 0 0 1.2rem; padding-left: 1.3rem; }
li { margin-bottom: .45rem; }

hr { border: 0; border-top: 1px solid var(--line); margin: 2.2rem 0; }

strong, b { color: var(--ink); font-weight: 600; }

:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; border-radius: 4px; }

/* Masquage accessible sans déport hors écran, qui élargirait le document. */
.skip-link {
  position: absolute; top: 0; left: 0; z-index: 999;
  width: 1px; height: 1px; padding: 0; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
  background: var(--primary); color: #fff; border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus {
  width: auto; height: auto; padding: .8rem 1.2rem; clip-path: none;
}

/* --------------------------------------------------------------- gabarits */

/* Conteneur unique : le contenu éditorial occupe la même largeur que le
   reste de la page, sans colonne resserrée au centre. */
.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }

.section { padding-block: var(--step); }
.section--tint { background: var(--surface-2); }

.section__head { max-width: 720px; margin: 0 auto clamp(2rem, 4vw, 3rem); text-align: center; }
.section__head h2 { margin-bottom: .5rem; }
.section__head p { color: var(--muted); margin: 0; font-size: 1.06rem; }
.section__more { text-align: center; margin: 2.5rem 0 0; }

/* --------------------------------------------------------------- boutons */

.btn {
  --btn-bg: var(--primary);
  --btn-fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--font); font-weight: 600; font-size: .96rem; line-height: 1;
  padding: .95rem 1.6rem;
  border: 2px solid transparent; border-radius: 999px;
  background: var(--btn-bg); color: var(--btn-fg);
  cursor: pointer; text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); box-shadow: 0 12px 26px rgba(236, 108, 43, .28); color: var(--btn-fg); }
.btn--primary { --btn-bg: var(--primary); }
.btn--primary:hover { background: var(--primary-dark); }
.btn--outline { --btn-bg: transparent; --btn-fg: var(--ink); border-color: var(--line); }
.btn--outline:hover { background: var(--ink); border-color: var(--ink); color: #fff; box-shadow: 0 12px 26px rgba(14, 27, 49, .2); }
.btn--ghost { --btn-bg: transparent; --btn-fg: #fff; border-color: rgba(255, 255, 255, .45); }
.btn--ghost:hover { background: #fff; color: var(--ink); border-color: #fff; box-shadow: none; }
.btn--lg { padding: 1.08rem 2rem; font-size: 1.02rem; }

/* ---------------------------------------------------------------- topbar */

.topbar { background: var(--dark); color: rgba(255, 255, 255, .78); font-size: .88rem; }
.topbar__inner { display: flex; flex-wrap: wrap; gap: .4rem 1.6rem; align-items: center; justify-content: space-between; padding-block: .6rem; }
.topbar p { margin: 0; }
.topbar__phone a { color: #fff; font-weight: 600; font-family: var(--font); }
.topbar__phone a:hover { color: var(--primary); text-decoration: none; }
.topbar__notice { color: var(--primary); font-weight: 500; font-family: var(--font); }

/* ---------------------------------------------------------------- header */

/* Le flou est porté par un pseudo-élément et non par l'en-tête lui-même :
   un backdrop-filter sur .masthead en ferait le bloc conteneur de ses
   descendants en position fixed, ce qui enfermerait le panneau de menu
   mobile dans la hauteur de l'en-tête.
   z-index 90 : au-dessus du voile du menu (70), qui masquerait le panneau. */
.masthead {
  position: sticky; top: 0; z-index: 90;
  background: transparent;
  border-bottom: 1px solid var(--line);
}
.masthead::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: saturate(160%) blur(10px);
}
.masthead.is-stuck { box-shadow: 0 6px 24px rgba(14, 27, 49, .09); }
.masthead__inner { display: flex; align-items: center; gap: 1.4rem; padding-block: .85rem; }

.brand { flex: none; }
.brand img { height: 40px; width: auto; }

.masthead__cta { margin-left: auto; flex: none; padding: .78rem 1.35rem; font-size: .9rem; }

/* ------------------------------------------------------------ navigation */

.nav { margin-left: auto; }
.nav__list { display: flex; align-items: center; gap: .15rem; list-style: none; margin: 0; padding: 0; }
.nav__item { position: relative; margin: 0; }

.nav__item > a {
  display: block; padding: .7rem .82rem;
  font-family: var(--font); font-size: .93rem; font-weight: 500;
  color: var(--ink); border-radius: var(--radius-sm);
  transition: color .18s ease, background .18s ease;
}
.nav__item > a:hover,
.nav__item > a.is-active { color: var(--primary); background: var(--primary-soft); text-decoration: none; }

.nav__toggle { display: none; }

.nav__sub {
  position: absolute; top: calc(100% + .45rem); left: 0; z-index: 10;
  min-width: 268px; padding: .55rem; margin: 0;
  list-style: none;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.nav__item.has-children:hover > .nav__sub,
.nav__item.has-children:focus-within > .nav__sub { opacity: 1; visibility: visible; transform: translateY(0); }

.nav__sub li { margin: 0; }
.nav__sub a {
  display: block; padding: .62rem .8rem; border-radius: var(--radius-sm);
  font-family: var(--font); font-size: .9rem; color: var(--ink);
}
.nav__sub a:hover { background: var(--primary-soft); color: var(--primary); text-decoration: none; }

.nav__item.has-children > a::after {
  content: ""; display: inline-block; margin-left: .42rem;
  border: 4px solid transparent; border-top-color: currentColor; transform: translateY(2px);
}

.burger { display: none; }

/* ------------------------------------------------------------------ hero */

.hero { position: relative; background: var(--dark); color: #fff; overflow: hidden; isolation: isolate; }
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; opacity: .32; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(105deg, rgba(14, 27, 49, .96) 0%, rgba(14, 27, 49, .86) 45%, rgba(14, 27, 49, .5) 100%);
}
.hero__inner { padding-block: clamp(3.4rem, 8vw, 6.4rem); }
.hero__text { max-width: 880px; }
.hero h1 { color: #fff; margin-bottom: .8rem; }
.hero__eyebrow {
  display: inline-block; margin: 0 0 1rem;
  font-family: var(--font); font-size: .8rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: var(--primary);
  background: rgba(236, 108, 43, .14); border: 1px solid rgba(236, 108, 43, .32);
  padding: .42rem .95rem; border-radius: 999px;
}
.hero h1.is-long { font-size: clamp(1.45rem, 2.5vw, 2.05rem); line-height: 1.28; }
.hero__intro { font-size: 1.09rem; color: rgba(255, 255, 255, .84); max-width: 62ch; margin-bottom: 1.9rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.hero__actions .btn--outline { --btn-fg: #fff; border-color: rgba(255, 255, 255, .4); }
.hero__actions .btn--outline:hover { background: #fff; color: var(--ink); border-color: #fff; }

.hero--home .hero__inner { padding-block: clamp(4.2rem, 10vw, 7.8rem); }
.hero--slim .hero__inner { padding-block: clamp(2.8rem, 6vw, 4.6rem); }

/* --------------------------------------------------------------- chiffres */

.stats { background: var(--dark-2); color: #fff; }
.stats__list {
  display: grid; grid-template-columns: repeat(4, 1fr);
  list-style: none; margin: 0; padding: 0;
}
.stats__list li {
  margin: 0; padding: 2rem 1.2rem; text-align: center;
  border-left: 1px solid rgba(255, 255, 255, .1);
}
.stats__list li:first-child { border-left: 0; }
.stats__list strong {
  display: block; font-family: var(--font); font-size: clamp(1.9rem, 3.4vw, 2.7rem);
  font-weight: 800; color: var(--primary); line-height: 1.1; margin-bottom: .25rem;
}
.stats__list span { font-size: .93rem; color: rgba(255, 255, 255, .72); }

/* ------------------------------------------------------------ fil d'Ariane */

.breadcrumb { background: var(--surface-2); border-bottom: 1px solid var(--line); font-size: .88rem; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: .1rem; list-style: none; margin: 0; padding: .95rem 0; }
.breadcrumb li { margin: 0; display: flex; align-items: center; }
.breadcrumb li + li::before { content: "/"; margin: 0 .55rem; color: var(--muted); opacity: .7; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb span { color: var(--ink); font-weight: 500; }

/* -------------------------------------------------------------- contenu */

.prose { max-width: 100%; }
.prose > *:first-child { margin-top: 0; }
.prose h2 { margin-top: 2.6rem; padding-top: .2rem; }
.prose h3 { margin-top: 2rem; color: var(--dark); }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }

.prose h2::after {
  content: ""; display: block; width: 62px; height: 3px;
  background: var(--primary); border-radius: 2px; margin-top: .65rem;
}

.prose img {
  border-radius: var(--radius); box-shadow: var(--shadow);
  margin: 1.8rem auto; max-height: 560px; width: auto; object-fit: contain;
  background: var(--surface-2);
}

.prose ul { list-style: none; padding-left: 0; }
.prose ul > li { position: relative; padding-left: 1.75rem; }
.prose ul > li::before {
  content: ""; position: absolute; left: 0; top: .65em;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--primary); box-shadow: 0 0 0 4px var(--primary-soft);
}
.prose ol { padding-left: 1.35rem; }
.prose ol > li::marker { color: var(--primary); font-weight: 700; }

.prose blockquote {
  margin: 2rem 0; padding: 1.4rem 1.6rem;
  border-left: 4px solid var(--primary); background: var(--primary-soft);
  border-radius: 0 var(--radius) var(--radius) 0; color: var(--ink);
}
.prose blockquote p:last-child { margin-bottom: 0; }

.prose table {
  width: 100%; border-collapse: collapse; margin: 1.8rem 0;
  font-size: .95rem; background: #fff;
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
}
.prose th, .prose td { padding: .85rem 1rem; text-align: left; border-bottom: 1px solid var(--line); }
.prose th { background: var(--dark); color: #fff; font-family: var(--font); font-weight: 600; }
/* Tableaux de caractéristiques : la colonne des intitulés reste compacte. */
.prose tbody th { width: 30%; }
.prose tbody tr:last-child td { border-bottom: 0; }
.prose tbody tr:nth-child(even) { background: var(--surface-2); }

.prose iframe {
  width: 100%; aspect-ratio: 16 / 9; height: auto;
  border: 0; border-radius: var(--radius); box-shadow: var(--shadow); margin: 1.8rem 0;
}

/* Contenus larges : défilement interne, jamais de débordement de page.
   Le conteneur est posé par main.js ; la règle sur le tableau lui-même
   assure le même comportement si le script n'a pas encore été exécuté. */
.table-scroll { overflow-x: auto; max-width: 100%; margin: 1.8rem 0; -webkit-overflow-scrolling: touch; }
.table-scroll table { margin: 0; min-width: 480px; }
.prose > table { display: block; overflow-x: auto; max-width: 100%; }

.prose { overflow-wrap: anywhere; }
.prose a { overflow-wrap: anywhere; }

/* ---------------------------------------------------------------- cartes */

.cards {
  display: grid; gap: 1.6rem;
  grid-template-columns: repeat(auto-fill, minmax(min(288px, 100%), 1fr));
}
.cards--compact { grid-template-columns: repeat(auto-fill, minmax(min(258px, 100%), 1fr)); }

.card {
  position: relative; display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: transparent; }

.card__link { position: absolute; inset: 0; z-index: 2; }

.card__media { aspect-ratio: 4 / 3; background: var(--surface-2); overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: contain; padding: 1rem; transition: transform .35s ease; }
.card:hover .card__media img { transform: scale(1.05); }

.card__body { padding: 1.35rem 1.4rem 1.5rem; display: flex; flex-direction: column; flex: 1; }

.card__tag {
  display: inline-block; align-self: flex-start; margin-bottom: .7rem;
  font-family: var(--font); font-size: .72rem; font-weight: 600;
  letter-spacing: .09em; text-transform: uppercase;
  color: var(--primary); background: var(--primary-soft);
  padding: .32rem .72rem; border-radius: 999px;
}
/* Certains intitulés d'articles du site d'origine dépassent 200 caractères.
   Le texte reste intégralement dans le document ; seule sa hauteur est bornée. */
.card__title {
  font-size: 1.03rem; line-height: 1.4; margin-bottom: .6rem;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4;
  line-clamp: 4; overflow: hidden;
}
.card__text {
  font-size: .93rem; color: var(--muted); margin-bottom: 1.1rem;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3;
  line-clamp: 3; overflow: hidden;
}
.card__cta {
  margin-top: auto; font-family: var(--font); font-weight: 600; font-size: .9rem; color: var(--primary);
  display: inline-flex; align-items: center; gap: .4rem;
}
.card__cta::after { content: "→"; transition: transform .2s ease; }
.card:hover .card__cta::after { transform: translateX(4px); }

/* --------------------------------------------------------------- tuiles */

.tiles { display: grid; gap: 1.15rem; grid-template-columns: repeat(auto-fill, minmax(min(238px, 100%), 1fr)); }

.tile {
  display: flex; flex-direction: column; overflow: hidden;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  color: var(--ink); text-decoration: none;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.tile:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: transparent; text-decoration: none; color: var(--ink); }

.tile__media { display: block; aspect-ratio: 5 / 4; background: var(--surface-2); overflow: hidden; }
.tile__media img { width: 100%; height: 100%; object-fit: contain; padding: .9rem; transition: transform .35s ease; }
.tile:hover .tile__media img { transform: scale(1.06); }

.tile__body { display: block; padding: 1.1rem 1.2rem 1.3rem; }
.tile__title { display: block; font-family: var(--font); font-weight: 600; font-size: 1rem; margin-bottom: .3rem; }
.tile__desc { display: block; font-size: .875rem; color: var(--muted); line-height: 1.55; }

/* ---------------------------------------------------------- fiche produit */

.product { padding-block: var(--step); }
.product__inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }

.product__media {
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 2.2rem; box-shadow: var(--shadow);
}
.product__media img { width: 100%; max-height: 460px; object-fit: contain; margin-inline: auto; }

.product__eyebrow {
  font-family: var(--font); font-size: .78rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: var(--primary); margin-bottom: .7rem;
}
.product__intro { font-size: 1.06rem; margin-bottom: 1.5rem; }

.product__points { list-style: none; padding: 0; margin: 0 0 1.9rem; }
.product__points li { position: relative; padding-left: 1.9rem; margin-bottom: .6rem; font-size: .97rem; }
.product__points li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  width: 1.32rem; height: 1.32rem; border-radius: 50%;
  display: grid; place-items: center; font-size: .74rem; font-weight: 700;
  background: var(--mint); color: var(--accent);
}
.product__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-bottom: 1.3rem; }
.product__phone { font-size: .95rem; color: var(--muted); margin: 0; }
.product__phone a { font-family: var(--font); font-weight: 600; }

/* -------------------------------------------------------------- boutique */

.nav__ext { margin-left: .3rem; font-size: .78em; opacity: .7; }

.shop-callout {
  margin: 2.5rem 0 3rem;
  background: linear-gradient(120deg, var(--dark) 0%, var(--dark-2) 100%);
  border-radius: var(--radius-lg); color: #fff;
  padding: clamp(1.8rem, 4vw, 2.8rem);
}
.shop-callout h2 { color: #fff; margin-bottom: .6rem; }
.shop-callout h2::after { display: none; }
.shop-callout p { color: rgba(255, 255, 255, .8); }
.shop-callout__eyebrow {
  font-family: var(--font); font-size: .78rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: var(--primary); margin-bottom: .6rem;
}
.shop-callout .btn { margin-top: .6rem; }
.shop-callout__note { font-size: .88rem; color: var(--primary); margin: 1rem 0 0; }

.shop-list { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: .9rem;
  grid-template-columns: repeat(auto-fill, minmax(min(250px, 100%), 1fr)); }
.shop-list li { margin: 0; }
.shop-list a {
  display: block; height: 100%; padding: 1.1rem 1.25rem;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  color: var(--ink); text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.shop-list a:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--primary); text-decoration: none; }
.shop-list strong { display: block; font-family: var(--font); margin-bottom: .25rem; }
.shop-list span { display: block; font-size: .88rem; color: var(--muted); line-height: 1.5; }

/* ----------------------------------------------------------- pagination */

.pagination { margin-top: clamp(2.4rem, 5vw, 3.4rem); }
.pagination ul { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem; list-style: none; margin: 0; padding: 0; }
.pagination li { margin: 0; }
.pagination a, .pagination span {
  display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 .8rem;
  font-family: var(--font); font-weight: 600; font-size: .94rem;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  color: var(--ink); background: #fff;
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.pagination a:hover { background: var(--primary); border-color: var(--primary); color: #fff; text-decoration: none; }
.pagination .is-current { background: var(--dark); border-color: var(--dark); color: #fff; }

/* ---------------------------------------------------------- bande d'appel */

.cta-band { background: linear-gradient(120deg, var(--dark) 0%, var(--dark-2) 100%); color: #fff; }
.cta-band__inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 2rem; padding-block: clamp(2.6rem, 5vw, 3.8rem);
}
.cta-band h2 { color: #fff; margin-bottom: .5rem; }
.cta-band p { color: rgba(255, 255, 255, .76); margin: 0; max-width: 56ch; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: .8rem; }

/* ------------------------------------------------------------- pied de page */

.footer { background: var(--dark); color: rgba(255, 255, 255, .68); padding-top: clamp(3rem, 6vw, 4.6rem); font-size: .95rem; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 2.4rem; padding-bottom: 3rem; }
.footer__brand img { height: 40px; width: auto; margin-bottom: 1.2rem; }
.footer__brand p { margin-bottom: .9rem; }
.footer__phone a { font-family: var(--font); font-size: 1.28rem; font-weight: 700; color: #fff; }
.footer__phone a:hover { color: var(--primary); text-decoration: none; }
.footer__notice { color: var(--primary); font-family: var(--font); font-weight: 500; font-size: .9rem; }

.footer__col h3 { color: #fff; font-size: 1rem; margin-bottom: 1.1rem; }
.footer__col ul { list-style: none; margin: 0; padding: 0; }
.footer__col li { margin-bottom: .58rem; }
.footer__col a, .footer__legal a { color: rgba(255, 255, 255, .68); }
.footer__col a:hover, .footer__legal a:hover { color: var(--primary); text-decoration: none; }

.footer__bottom {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem;
  padding-block: 1.5rem; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .88rem;
}
.footer__bottom p { margin: 0; }
.footer__legal { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; list-style: none; margin: 0; padding: 0; }
.footer__legal li { margin: 0; }

/* ------------------------------------------------------------ page erreur */

.error-page { text-align: center; }
.error-page__code {
  font-family: var(--font); font-size: clamp(4.5rem, 14vw, 9rem); font-weight: 800;
  color: var(--primary-soft); line-height: 1; margin: 0 0 -.35em;
}
.error-page .hero__actions { justify-content: center; margin-bottom: 3.5rem; }
.error-page__links { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; list-style: none; padding: 0; }
.error-page__links li { margin: 0; }
.error-page__links a {
  display: block; padding: .6rem 1.15rem; border: 1px solid var(--line);
  border-radius: 999px; background: #fff; color: var(--ink); font-size: .93rem;
}
.error-page__links a:hover { background: var(--primary); border-color: var(--primary); color: #fff; text-decoration: none; }

/* ----------------------------------------------------------- retour haut */

.to-top {
  position: fixed; right: 1.4rem; bottom: 1.4rem; z-index: 50;
  width: 46px; height: 46px; display: grid; place-items: center;
  border: 0; border-radius: 50%; cursor: pointer;
  background: var(--primary); color: #fff; font-size: 1.15rem;
  box-shadow: 0 8px 22px rgba(236, 108, 43, .38);
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s, background .2s ease;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--primary-dark); }

/* ------------------------------------------------------------- adaptatif */

@media (max-width: 1100px) {
  .masthead__cta { display: none; }
  .nav__item > a { padding: .7rem .6rem; font-size: .88rem; }
}

@media (max-width: 960px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .product__inner { grid-template-columns: 1fr; }
  .product__media { order: -1; }
  .stats__list { grid-template-columns: repeat(2, 1fr); }
  .stats__list li:nth-child(3) { border-left: 0; }
  .stats__list li:nth-child(n+3) { border-top: 1px solid rgba(255, 255, 255, .1); }

  .burger {
    display: grid; place-content: center; gap: 5px; margin-left: auto;
    width: 46px; height: 46px; padding: 0;
    background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-sm);
    cursor: pointer;
  }
  .burger span { display: block; width: 21px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s ease, opacity .2s ease; }
  .burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  /* --nav-top est mesuré à l'ouverture : le panneau se place juste sous
     l'en-tête, quelle que soit la hauteur réelle du bandeau. */
  .nav {
    position: fixed; top: var(--nav-top, 0px); right: 0; bottom: 0; left: auto;
    z-index: 80;
    width: min(88vw, 380px); margin: 0; padding: 1.1rem 1.2rem 2rem;
    background: #fff; border-left: 1px solid var(--line);
    box-shadow: -18px 0 46px rgba(14, 27, 49, .16);
    overflow-y: auto; overscroll-behavior: contain;
    transform: translateX(100%); transition: transform .3s ease;
  }
  .nav.is-open { transform: translateX(0); }

  /* Le panneau couvre toute la hauteur : logo et bouton restent au-dessus,
     pour que le hamburger serve aussi à refermer le menu. */
  .brand, .burger { position: relative; z-index: 85; }

  .nav__list { flex-direction: column; align-items: stretch; gap: .15rem; }
  .nav__item { border-bottom: 1px solid var(--line-soft); }
  .nav__item > a { padding: .95rem .4rem; font-size: 1rem; }
  .nav__item.has-children > a::after { display: none; }

  .nav__toggle {
    display: block; position: absolute; top: .5rem; right: 0;
    width: 44px; height: 44px; padding: 0;
    background: none; border: 0; cursor: pointer;
  }
  .nav__toggle::before,
  .nav__toggle::after {
    content: ""; position: absolute; top: 50%; left: 50%;
    background: var(--ink); border-radius: 2px; transition: transform .22s ease, opacity .22s ease;
  }
  .nav__toggle::before { width: 13px; height: 2px; transform: translate(-50%, -50%); }
  .nav__toggle::after  { width: 2px; height: 13px; transform: translate(-50%, -50%); }
  .nav__toggle[aria-expanded="true"]::after { opacity: 0; }

  .nav__sub {
    position: static; opacity: 1; visibility: visible; transform: none;
    display: none; min-width: 0; margin: 0 0 .6rem; padding: .2rem 0 .2rem .7rem;
    border: 0; border-left: 2px solid var(--primary-soft); border-radius: 0; box-shadow: none;
  }
  .nav__sub.is-open { display: block; }

  .nav-backdrop {
    position: fixed; inset: 0; z-index: 70;
    background: rgba(14, 27, 49, .5); backdrop-filter: blur(2px);
    opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility .3s;
  }
  .nav-backdrop.is-open { opacity: 1; visibility: visible; }

  body.nav-open { overflow: hidden; }
}

@media (max-width: 720px) {
  .topbar__inner { justify-content: center; text-align: center; }
  .cta-band__inner { flex-direction: column; align-items: flex-start; }
  .footer__grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
  .prose h2::after { width: 48px; }

  /* Cibles tactiles confortables sur les listes de liens */
  .footer__col li, .footer__legal li { margin-bottom: 0; }
  .footer__col a, .footer__legal a { display: inline-block; padding-block: .5rem; }
  .breadcrumb ol { padding-block: .8rem; }
  .breadcrumb a, .breadcrumb span { padding-block: .2rem; }

  .product__media { padding: 1.2rem; }
  .shop-callout { margin-inline: 0; }
}

@media (max-width: 420px) {
  .stats__list { grid-template-columns: 1fr; }
  .stats__list li { border-left: 0; border-top: 1px solid rgba(255, 255, 255, .1); }
  .stats__list li:first-child { border-top: 0; }
  .hero__actions .btn, .product__actions .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ------------------------------------------------------------- impression */

@media print {
  .topbar, .masthead, .cta-band, .footer, .to-top, .breadcrumb, .hero__actions { display: none !important; }
  body { color: #000; }
  .hero { background: none; color: #000; }
  .hero h1 { color: #000; }
  .hero__media { display: none; }
}
