/* ==========================================================================
   BILTECH SMART HOME — feuille de style du site public
   Aucune dépendance externe : police Inter et icônes SVG embarquées.
   ========================================================================== */

@font-face {
  font-family: "Inter";
  src: url("../fonts/Inter-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy: #12355a;
  --navy-900: #0a2442;
  --navy-800: #0f2e50;
  --navy-700: #1b4a7c;
  --blue: #408edb;
  --red: #ee282d;
  --red-600: #d11a1f;
  --sun: #f5a623;
  --green: #25d366;
  --green-600: #1faa52;

  --ink: #0e1c2e;
  --text: #3b4a5c;
  --muted: #6b7a8c;
  --line: #e3e9f1;
  --bg: #ffffff;
  --bg-soft: #f4f7fb;
  --bg-tint: #eaf1fa;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(10, 36, 66, .05), 0 4px 14px rgba(10, 36, 66, .06);
  --shadow-md: 0 12px 32px rgba(10, 36, 66, .12);
  --shadow-lg: 0 24px 60px rgba(10, 36, 66, .18);

  --container: 1220px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 76px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 20px); }
body {
  margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.65; color: var(--text);
  background: var(--bg); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, video, svg { max-width: 100%; display: block; }
img { height: auto; }
a { color: var(--navy-700); text-decoration: none; }
a:hover { color: var(--red); }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .5em; font-weight: 750; }
h1 { font-size: clamp(2rem, 4.6vw, 3.2rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.35rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 6px; }
::selection { background: var(--navy); color: #fff; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 1000; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 8px; transition: top .2s; }
.skip-link:focus { top: 12px; color: #fff; }
.center { text-align: center; }
.muted { color: var(--muted); }
.mt-lg { margin-top: 2.5rem; }
.mb-lg { margin-bottom: 2.5rem; }
[hidden] { display: none !important; }

/* Icônes */
.i { width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- Sections ---------- */
.section { padding-block: clamp(56px, 8vw, 104px); }
.section--tight { padding-block: clamp(28px, 4vw, 52px); }
.section--soft { background: var(--bg-soft); }
.section--navy { background: linear-gradient(160deg, var(--navy-900), var(--navy)); color: #cfe0f3; position: relative; overflow: hidden; }
.section--navy h2, .section--navy h3 { color: #fff; }
.section--navy::before { content: ""; position: absolute; inset: 0; background: radial-gradient(700px 300px at 90% 0%, rgba(64, 142, 219, .25), transparent 70%); pointer-events: none; }
.section--navy > .container { position: relative; }

.eyebrow { display: inline-flex; align-items: center; gap: .6em; margin: 0 0 .9rem; font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--red); }
.eyebrow::before { content: ""; width: 26px; height: 2px; background: currentColor; border-radius: 2px; }
.section-head { max-width: 720px; margin: 0 0 clamp(28px, 4vw, 52px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.section-head h2 span, .split h2 span, .contact-form h2 span { color: var(--red); }
.section-head h2::after { content: ""; display: block; width: 64px; height: 4px; border-radius: 4px; background: var(--red); margin: 1rem 0 0; }
.section-head--center h2::after { margin-inline: auto; }
.section-head__lead { margin: 1.2rem 0 0; color: var(--muted); font-size: 1.08rem; }
.section--navy .section-head__lead { color: #b6cbe3; }

/* ---------- Grilles ---------- */
.grid { display: grid; gap: clamp(16px, 2.2vw, 28px); }
.grid--2 { grid-template-columns: 1fr; }
.grid--3 { grid-template-columns: 1fr; }
.grid--4 { grid-template-columns: 1fr; }
.grid--shop { grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (min-width: 600px) {
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 760px) { .grid--shop { grid-template-columns: repeat(3, 1fr); gap: 22px; } }
@media (min-width: 1024px) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em; padding: .8em 1.5em;
  border: 2px solid transparent; border-radius: 999px; font-weight: 650; font-size: .98rem; line-height: 1.2;
  text-align: center; cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--navy); color: #fff; box-shadow: 0 6px 16px rgba(18, 53, 90, .25); }
.btn--primary:hover { background: var(--navy-700); color: #fff; }
.btn--accent { background: var(--red); color: #fff; box-shadow: 0 6px 18px rgba(238, 40, 45, .32); }
.btn--accent:hover { background: var(--red-600); color: #fff; }
.btn--outline { background: transparent; border-color: var(--navy); color: var(--navy); }
.btn--outline:hover { background: var(--navy); color: #fff; }
.btn--ghost { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .55); color: #fff; backdrop-filter: blur(4px); }
.btn--ghost:hover { background: #fff; color: var(--navy); }
.btn--whatsapp { background: var(--green); color: #fff; box-shadow: 0 6px 16px rgba(37, 211, 102, .3); }
.btn--whatsapp:hover { background: var(--green-600); color: #fff; }
.btn--sm { padding: .55em 1.05em; font-size: .88rem; }
.btn--lg { padding: .95em 1.8em; font-size: 1.04rem; }
.btn--block { display: flex; width: 100%; }
.icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--line); background: #fff; color: var(--ink); border-radius: 50%; transition: all .2s; }
.icon-btn:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.icon-btn--danger:hover { background: var(--red); border-color: var(--red); }
.link-arrow { display: inline-flex; align-items: center; gap: .4em; font-weight: 650; }
.link-arrow .i { transition: transform .2s; }
.link-arrow:hover .i { transform: translateX(4px); }

.tag { display: inline-block; padding: .25em .8em; border-radius: 999px; background: var(--bg-tint); color: var(--navy-700); font-size: .75rem; font-weight: 700; letter-spacing: .02em; }
.badge { position: absolute; top: 12px; left: 12px; padding: .25em .7em; border-radius: 999px; font-size: .72rem; font-weight: 700; color: #fff; }
.badge--sale { background: var(--red); }
.badge--out { background: var(--muted); }

.flash { display: flex; align-items: center; gap: .7em; margin-top: 18px; padding: .9em 1.2em; border-radius: var(--radius-sm); font-weight: 500; }
.flash--success { background: #e8f8ee; color: #14663a; border: 1px solid #bfe8cf; }
.flash--error { background: #fdecec; color: #9c1c20; border: 1px solid #f6c3c4; }

/* Apparition au défilement (activée seulement si JS) */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  * { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ---------- Barre supérieure ---------- */
.topbar { background: var(--navy-900); color: #b9cde4; font-size: .84rem; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 40px; }
.topbar ul { list-style: none; display: flex; align-items: center; gap: 22px; }
.topbar a { color: #dbe8f6; }
.topbar a:hover { color: #fff; }
.topbar__info li { display: flex; align-items: center; gap: .5em; }
.topbar__info .i { color: var(--sun); }
.topbar__social { gap: 6px !important; }
.topbar__social a { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; transition: background .2s; }
.topbar__social a:hover { background: rgba(255, 255, 255, .14); }
.topbar a { white-space: nowrap; }
@media (max-width: 860px) { .topbar .topbar__hours, .topbar .topbar__social { display: none; } .topbar__inner { justify-content: center; } }
@media (max-width: 560px) { .topbar .topbar__info li:nth-child(2) { display: none; } }

/* ---------- En-tête & navigation ---------- */
.header { position: sticky; top: 0; z-index: 100; border-bottom: 1px solid var(--line); transition: box-shadow .25s; }
/* Le flou est porté par un pseudo-élément : un backdrop-filter sur .header en ferait le bloc conteneur du menu mobile (position: fixed). */
.header::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(255, 255, 255, .94); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); }
.header.is-scrolled { box-shadow: 0 8px 28px rgba(10, 36, 66, .1); }
.header__inner { display: flex; align-items: center; gap: 24px; min-height: var(--header-h); }
.brand { display: flex; align-items: center; flex: none; }
.brand img { width: auto; height: 52px; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 20px; }
.nav__list { list-style: none; display: flex; align-items: center; gap: 2px; }
.nav__item { position: relative; display: flex; align-items: center; }
.nav__link { display: block; padding: .6em .8em; font-weight: 600; font-size: .95rem; color: var(--ink); border-radius: 10px; transition: color .2s, background .2s; position: relative; }
.nav__link:hover { color: var(--red); background: var(--bg-soft); }
.nav__item.is-active > .nav__link, .nav__item.is-parent-active > .nav__link { color: var(--red); }
.nav__item.is-active > .nav__link::after, .nav__item.is-parent-active > .nav__link::after { content: ""; position: absolute; left: .8em; right: .8em; bottom: .15em; height: 2px; background: var(--red); border-radius: 2px; }
.nav__toggle { display: none; }
.nav__sub { list-style: none; }
.nav__cta { display: none; }

@media (min-width: 1080px) {
  .nav__item.has-sub > .nav__link { padding-right: 1.5em; }
  .nav__item.has-sub > .nav__toggle { display: grid; position: absolute; right: 2px; top: 50%; transform: translateY(-50%); width: 22px; height: 22px; place-items: center; border: 0; background: none; color: var(--muted); padding: 0; pointer-events: none; }
  .nav__item.has-sub > .nav__toggle .i { width: 14px; height: 14px; }
  .nav__sub {
    position: absolute; top: 100%; left: 0; min-width: 250px; padding: 8px; background: #fff; border: 1px solid var(--line);
    border-radius: var(--radius); box-shadow: var(--shadow-md); opacity: 0; visibility: hidden; transform: translateY(8px);
    transition: opacity .2s, transform .2s, visibility .2s; z-index: 5;
  }
  .nav__sub .nav__item { display: block; }
  .nav__sub .nav__link { padding: .6em .9em; font-weight: 550; }
  .nav__sub .nav__item.is-active > .nav__link::after, .nav__sub .nav__item.is-parent-active > .nav__link::after { display: none; }
  .nav__sub .nav__toggle { right: 8px !important; transform: translateY(-50%) rotate(-90deg) !important; }
  .nav__sub--2 { top: -9px; left: 100%; margin-left: 4px; }
  .nav__item:hover > .nav__sub, .nav__item:focus-within > .nav__sub { opacity: 1; visibility: visible; transform: none; }
  .nav__cta { display: block; }
}

@media (max-width: 1079.98px) {
  .nav {
    position: fixed; top: 0; right: 0; bottom: 0; width: min(86vw, 380px); margin: 0; padding: 84px 20px 28px; flex-direction: column; align-items: stretch; gap: 20px;
    background: #fff; box-shadow: var(--shadow-lg); transform: translateX(100%); transition: transform .35s var(--ease); overflow-y: auto; z-index: 120; visibility: hidden;
  }
  .nav.is-open { transform: none; visibility: visible; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__item { flex-wrap: wrap; border-bottom: 1px solid var(--line); }
  .nav__link { flex: 1; padding: 1em .4em; font-size: 1.02rem; border-radius: 0; background: none !important; }
  .nav__item.is-active > .nav__link::after, .nav__item.is-parent-active > .nav__link::after { display: none; }
  .nav__toggle { display: grid; place-items: center; width: 44px; height: 44px; border: 0; background: none; color: var(--ink); }
  .nav__toggle .i { transition: transform .25s; }
  .nav__toggle[aria-expanded="true"] .i { transform: rotate(180deg); }
  .nav__sub { flex-basis: 100%; display: none; padding: 0 0 8px 14px; border-left: 2px solid var(--bg-tint); margin-left: 6px; }
  .nav__item.is-open > .nav__sub { display: block; }
  .nav__sub .nav__item { border: 0; }
  .nav__sub .nav__link { padding: .7em .4em; font-size: .96rem; font-weight: 550; }
  .nav__cta { display: block; }
  .nav__cta .btn { width: 100%; }
}
.nav-backdrop { position: fixed; inset: 0; z-index: 110; background: rgba(10, 36, 66, .5); opacity: 0; visibility: hidden; transition: opacity .3s; }
.nav-backdrop.is-open { opacity: 1; visibility: visible; }

.header__actions { display: flex; align-items: center; gap: 10px; margin-left: auto; position: relative; z-index: 130; }
@media (min-width: 1080px) { .header__actions { margin-left: 0; } }
.cart-link { position: relative; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--bg-soft); color: var(--navy); transition: background .2s, color .2s; }
.cart-link .i { width: 22px; height: 22px; }
.cart-link:hover { background: var(--navy); color: #fff; }
.cart-link__count { position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--red); color: #fff; font-size: .72rem; font-weight: 700; display: grid; place-items: center; border: 2px solid #fff; }
.cart-link__count.is-empty { display: none; }
.burger { display: grid; place-items: center; width: 46px; height: 46px; border: 0; border-radius: 50%; background: var(--navy); color: #fff; }
.burger .i { width: 22px; height: 22px; }
@media (min-width: 1080px) { .burger { display: none; } }

/* ---------- Diaporama ---------- */
.hero { position: relative; height: clamp(500px, 80vh, 780px); min-height: 500px; background: var(--navy-900); overflow: hidden; color: #fff; }
.hero__slides, .hero__slide { position: absolute; inset: 0; }
.hero__slide { opacity: 0; visibility: hidden; transition: opacity 1s ease, visibility 1s; display: flex; align-items: center; }
.hero__slide.is-active { opacity: 1; visibility: visible; z-index: 1; }
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 35%; transform: scale(1.08); transition: transform 9s linear; }
.hero__slide.is-active .hero__bg { transform: scale(1); }
.hero__slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7, 26, 48, .9) 0%, rgba(10, 36, 66, .66) 42%, rgba(10, 36, 66, .12) 100%), linear-gradient(0deg, rgba(7, 26, 48, .6), transparent 38%); }
.hero__content { position: relative; z-index: 2; max-width: calc(var(--container) + var(--gutter) * 2); padding-block: 70px; }
.hero__eyebrow { display: inline-flex; align-items: center; gap: .7em; margin-bottom: 1.1rem; font-size: .82rem; font-weight: 700; letter-spacing: .22em; color: var(--sun); }
.hero__eyebrow::before { content: ""; width: 36px; height: 3px; background: var(--red); border-radius: 3px; }
.hero__title { max-width: 14ch; margin: 0 0 1rem; font-size: clamp(2.2rem, 6.2vw, 4.8rem); font-weight: 800; line-height: 1.02; letter-spacing: -.025em; text-transform: uppercase; text-wrap: balance; }
.hero__tagline { max-width: 36ch; margin: 0 0 2rem; font-size: clamp(1rem, 1.6vw, 1.2rem); color: #d3e2f3; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__slide.is-active .hero__eyebrow, .hero__slide.is-active .hero__title, .hero__slide.is-active .hero__tagline, .hero__slide.is-active .hero__actions { animation: rise .9s var(--ease) both; }
.hero__slide.is-active .hero__title { animation-delay: .12s; }
.hero__slide.is-active .hero__tagline { animation-delay: .24s; }
.hero__slide.is-active .hero__actions { animation-delay: .36s; }
@keyframes rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }

.hero__nav { display: flex; align-items: center; gap: 10px; }
.hero__arrow { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .4); background: rgba(10, 36, 66, .35); color: #fff; backdrop-filter: blur(6px); transition: background .2s, border-color .2s; }
.hero__arrow:hover { background: var(--red); border-color: var(--red); }
.hero__count { margin-right: 6px !important; }
@media (max-width: 760px) { .hero__nav { display: none; } }
.hero__controls { position: absolute; left: 0; right: 0; bottom: 22px; z-index: 3; display: flex; align-items: center; justify-content: space-between; }
.hero__dots { display: flex; gap: 8px; }
.hero__dot { width: 40px; height: 22px; padding: 0; border: 0; background: none; display: grid; align-items: center; }
.hero__dot span { display: block; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .35); position: relative; overflow: hidden; }
.hero__dot span::after { content: ""; position: absolute; inset: 0; background: #fff; transform: scaleX(0); transform-origin: left; }
.hero__dot.is-active span::after { animation: progress var(--slide-time, 7s) linear forwards; }
.hero.is-paused .hero__dot.is-active span::after { animation-play-state: paused; }
@keyframes progress { to { transform: scaleX(1); } }
.hero__count { margin: 0; font-size: .88rem; font-weight: 600; letter-spacing: .1em; color: #c5d6ea; }
.hero__count span { color: #fff; font-size: 1.2rem; }

/* ---------- Accueil : présentation + chiffres ---------- */
.intro__grid { display: grid; gap: clamp(28px, 5vw, 64px); align-items: center; }
@media (min-width: 900px) { .intro__grid { grid-template-columns: 1.1fr 1fr; } }
.intro__lead { font-size: clamp(1.1rem, 1.9vw, 1.4rem); line-height: 1.6; color: var(--ink); font-weight: 500; margin-bottom: 1.8rem; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(108px, 1fr)); gap: 14px; }
.stat { padding: clamp(16px, 2.4vw, 26px) clamp(14px, 2vw, 22px); background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); position: relative; overflow: hidden; }
.stat::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--red); }
.stat strong { display: block; font-size: clamp(1.5rem, 2.6vw, 2.25rem); line-height: 1; font-weight: 800; letter-spacing: -.03em; color: var(--navy); font-variant-numeric: tabular-nums; }
.stat span { display: block; margin-top: .5rem; font-size: .92rem; font-weight: 600; color: var(--muted); }
.stat--visits { grid-column: 1 / -1; background: linear-gradient(135deg, var(--navy), var(--navy-700)); border: 0; }
.stat--visits::before { background: var(--sun); }
.stat--visits strong { color: #fff; }
.stat--visits span { color: #b9cde4; }

/* ---------- Cartes services (accueil) ---------- */
.service-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px 24px 30px; text-align: center; box-shadow: var(--shadow-sm); transition: transform .3s var(--ease), box-shadow .3s, border-color .3s; }
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }
.service-card__media { width: 112px; height: 112px; margin: 0 auto 1.3rem; border-radius: 50%; overflow: hidden; border: 4px solid var(--bg-tint); }
.service-card__media img { width: 100%; height: 100%; object-fit: cover; }
.service-card h3 { color: var(--red); font-size: 1.15rem; margin-bottom: .6em; }
.service-card p { margin: 0; font-size: .95rem; color: var(--text); }

/* ---------- Bandeau projets ---------- */
.cta-band { background: linear-gradient(120deg, var(--navy-900), var(--navy) 60%, var(--navy-700)); color: #fff; position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; width: 520px; height: 520px; right: -120px; top: -260px; border-radius: 50%; background: radial-gradient(circle, rgba(238, 40, 45, .35), transparent 65%); }
.cta-band__inner { position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding-block: clamp(36px, 5vw, 60px); }
.cta-band p { margin: 0; max-width: 60ch; font-size: clamp(1.1rem, 2vw, 1.4rem); font-weight: 550; line-height: 1.5; }

/* ---------- Chronologie ---------- */
.timeline { list-style: none; position: relative; max-width: 960px; margin-inline: auto; padding-left: 36px; }
.timeline::before { content: ""; position: absolute; left: 11px; top: 8px; bottom: 8px; width: 3px; border-radius: 3px; background: linear-gradient(var(--red), var(--blue)); }
.timeline__item { position: relative; margin-bottom: 26px; }
.timeline__item:last-child { margin-bottom: 0; }
.timeline__dot { position: absolute; left: -35px; top: 22px; width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 5px solid var(--red); box-shadow: 0 0 0 6px rgba(238, 40, 45, .12); }
.timeline__card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; box-shadow: var(--shadow-sm); }
.timeline__year { display: inline-block; padding: .15em .8em; margin-bottom: .6rem; border-radius: 999px; background: var(--navy); color: #fff; font-size: .82rem; font-weight: 700; letter-spacing: .06em; }
.timeline__card h3 { margin-bottom: .4em; }
.timeline__card p { margin: 0; font-size: .96rem; }
@media (min-width: 820px) {
  .timeline { padding-left: 0; }
  .timeline::before { left: 50%; transform: translateX(-50%); }
  .timeline__item { width: 50%; padding-right: 44px; }
  .timeline__item:nth-child(even) { margin-left: 50%; padding-right: 0; padding-left: 44px; }
  .timeline__dot { left: auto; right: -12px; }
  .timeline__item:nth-child(even) .timeline__dot { right: auto; left: -12px; }
}

/* ---------- Valeurs ---------- */
.value { display: flex; gap: 20px; padding: 28px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); transition: transform .3s var(--ease), box-shadow .3s; }
.value:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.value__icon { flex: none; display: grid; place-items: center; width: 60px; height: 60px; border-radius: 18px; background: linear-gradient(135deg, var(--navy), var(--navy-700)); color: #fff; box-shadow: 0 8px 18px rgba(18, 53, 90, .25); }
.value__icon .i { width: 28px; height: 28px; }
.value h3, .value h2 { font-size: 1.2rem; margin-bottom: .4em; }
.value p { margin: 0; font-size: .96rem; }
.value__num { display: block; margin-bottom: .2rem; font-size: .8rem; font-weight: 800; letter-spacing: .14em; color: var(--red); }
.values--large .value { padding: 34px; }
.values--large .value h2 { font-size: 1.4rem; }

/* ---------- Partenaires ---------- */
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { --gap: 22px; list-style: none; display: flex; gap: var(--gap); width: max-content; padding-right: var(--gap); animation: marquee 45s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item { display: grid; place-items: center; width: 190px; height: 104px; padding: 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.marquee__item img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; filter: grayscale(1); opacity: .75; transition: filter .3s, opacity .3s; }
.marquee__item:hover img { filter: none; opacity: 1; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Témoignages ---------- */
.quote { position: relative; margin: 0; padding: 34px 28px 26px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); display: flex; flex-direction: column; }
.quote__mark { position: absolute; top: 10px; right: 22px; font-size: 5.5rem; line-height: 1; font-weight: 800; color: var(--bg-tint); font-family: Georgia, serif; }
.quote blockquote { margin: 0 0 1.4rem; flex: 1; position: relative; }
.quote blockquote p { margin: 0; font-size: .98rem; line-height: 1.7; color: var(--ink); }
.quote figcaption { display: flex; align-items: center; gap: 14px; padding-top: 1.1rem; border-top: 1px solid var(--line); font-weight: 650; font-size: .92rem; color: var(--navy); }
.quote figcaption img, .avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; flex: none; background: var(--bg-tint); }
.avatar { display: grid; place-items: center; font-weight: 800; color: var(--navy); }

/* ---------- Vidéos ---------- */
.video-card { margin: 0; }
.video-card__frame { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #000; box-shadow: var(--shadow-md); }
.video-card__frame img, .video-card__frame video, .video-card__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.video-card__play { position: absolute; inset: 0; margin: auto; width: 72px; height: 72px; display: grid; place-items: center; border-radius: 50%; background: var(--red); color: #fff; box-shadow: 0 0 0 10px rgba(238, 40, 45, .25); transition: transform .25s; }
.video-card__play .i { width: 28px; height: 28px; margin-left: 4px; }
.video-card__frame:hover .video-card__play { transform: scale(1.1); }
.video-card figcaption { margin-top: .8rem; font-weight: 600; color: #c9daee; font-size: .92rem; }

/* ---------- Bandeau de page ---------- */
.page-hero { position: relative; overflow: hidden; color: #fff; background: radial-gradient(900px 340px at 88% -30%, rgba(64, 142, 219, .5), transparent 60%), radial-gradient(500px 260px at 0% 120%, rgba(238, 40, 45, .28), transparent 60%), linear-gradient(135deg, var(--navy-900), var(--navy)); }
.page-hero::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, .09) 1.2px, transparent 1.2px); background-size: 26px 26px; -webkit-mask-image: linear-gradient(90deg, transparent, #000); mask-image: linear-gradient(90deg, transparent, #000); }
.page-hero__inner { position: relative; padding-block: clamp(40px, 6vw, 72px); }
.page-hero h1 { color: #fff; margin: .3em 0 0; max-width: 24ch; text-wrap: balance; }
.page-hero__lead { margin: .9rem 0 0; max-width: 62ch; font-size: 1.12rem; color: #c5d8ee; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: .5em; font-size: .86rem; color: #9fbad6; }
.crumbs a { color: #cfe0f3; }
.crumbs a:hover { color: #fff; }
.crumbs .i { width: .9em; height: .9em; opacity: .7; }
.crumbs span[aria-current] { color: #fff; font-weight: 600; }
.crumbs-bar { background: var(--bg-soft); border-bottom: 1px solid var(--line); padding-block: 14px; }
.crumbs--dark { color: var(--muted); }
.crumbs--dark a { color: var(--navy-700); }
.crumbs--dark a:hover { color: var(--red); }
.crumbs--dark span[aria-current] { color: var(--ink); }

/* ---------- Contenu éditorial ---------- */
.prose { max-width: 70ch; }
.prose--wide { max-width: none; }
.prose--center { margin-inline: auto; text-align: center; }
.prose h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
.prose p { line-height: 1.8; }
.prose img { border-radius: var(--radius); }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose blockquote { margin: 1.6rem 0; padding: 1.2rem 1.5rem; border-left: 5px solid var(--red); background: var(--bg-soft); border-radius: 0 var(--radius) var(--radius) 0; font-weight: 600; color: var(--navy); font-size: 1.08rem; }
.prose ul, .prose ol { padding-left: 1.4em; margin-bottom: 1em; }
.prose table { width: 100%; border-collapse: collapse; margin-bottom: 1em; }
.prose th, .prose td { border: 1px solid var(--line); padding: .6em .8em; text-align: left; }
.prose--light { color: #fff; }
.prose--light p { margin: 0; font-size: 1.25rem; line-height: 1.6; }

.split { display: grid; gap: clamp(24px, 5vw, 60px); align-items: center; margin-bottom: clamp(40px, 6vw, 80px); }
.split:last-child { margin-bottom: 0; }
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split--reverse .split__media { order: -1; }
  .split--auto { margin-bottom: 0; }
}
.split__media { margin: 0; position: relative; }
.split__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.split__media::before { content: ""; position: absolute; inset: 16px -14px -14px 16px; border-radius: var(--radius-lg); background: var(--bg-tint); z-index: -1; }
.split--reverse .split__media::before { inset: 16px 16px -14px -14px; }
.split__body h2 { margin-bottom: .7em; }
.split__body h2::after { content: ""; display: block; width: 64px; height: 4px; border-radius: 4px; background: var(--red); margin-top: .8rem; }
.btn--primary.btn { text-decoration: none; }

/* ---------- Réalisations ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 2.2rem; }
.chip { display: inline-flex; align-items: center; gap: .6em; padding: .6em 1.2em; border: 1.5px solid var(--line); border-radius: 999px; background: #fff; font-weight: 600; font-size: .92rem; color: var(--ink); transition: all .2s; }
.chip span { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--bg-soft); font-size: .75rem; color: var(--muted); }
.chip:hover { border-color: var(--navy); }
.chip.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }
.chip.is-active span { background: rgba(255, 255, 255, .2); color: #fff; }
.project { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; transition: transform .3s var(--ease), box-shadow .3s; }
.project:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.project.is-hidden { display: none; }
.project__media { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg-soft); }
.project__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.project:hover .project__media img { transform: scale(1.06); }
.project__zoom { position: absolute; right: 14px; bottom: 14px; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: #fff; color: var(--navy); box-shadow: var(--shadow-sm); opacity: 0; transform: translateY(8px); transition: all .25s; }
.project:hover .project__zoom { opacity: 1; transform: none; }
.project__body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: .7rem; flex: 1; }
.project__body .tag { align-self: flex-start; }
.project__body h2 { font-size: 1rem; font-weight: 650; line-height: 1.45; margin: 0; letter-spacing: -.005em; }
.empty-state { text-align: center; color: var(--muted); padding: 2rem 1rem; }
.empty-state--box { background: var(--bg-soft); border: 1px dashed #c9d6e6; border-radius: var(--radius-lg); padding: clamp(36px, 7vw, 80px) 20px; }
.empty-state--box > .i { width: 54px; height: 54px; margin: 0 auto 1rem; color: #9db3cc; }

/* ---------- Téléchargements ---------- */
.dl-group { margin-bottom: clamp(40px, 6vw, 72px); scroll-margin-top: 110px; }
.dl-group:last-child { margin-bottom: 0; }
.dl-group__title { display: flex; align-items: center; gap: 14px; margin-bottom: 1.6rem; font-size: 1.5rem; }
.dl-group__title::before { content: ""; width: 6px; height: 1.1em; border-radius: 4px; background: var(--red); }
.dl-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; transition: transform .3s var(--ease), box-shadow .3s; }
.dl-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.dl-card__media { position: relative; display: block; aspect-ratio: 4 / 3; background: var(--bg-soft); overflow: hidden; }
.dl-card__media img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.dl-card__ext { position: absolute; top: 14px; right: 14px; padding: .2em .7em; border-radius: 8px; background: var(--navy); color: #fff; font-size: .72rem; font-weight: 800; letter-spacing: .08em; }
.dl-card__body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 1rem; flex: 1; justify-content: space-between; align-items: flex-start; }
.dl-card__body h3 { font-size: 1rem; line-height: 1.45; margin: 0; }

/* ---------- Services ---------- */
.subnav { position: sticky; top: var(--header-h); z-index: 50; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 6px 18px rgba(10, 36, 66, .05); }
.subnav__inner { display: flex; justify-content: safe center; gap: 6px; overflow-x: auto; padding-block: 10px; scrollbar-width: none; }
.subnav__inner::-webkit-scrollbar { display: none; }
.subnav a { flex: none; padding: .5em 1em; border-radius: 999px; font-size: .9rem; font-weight: 600; color: var(--ink); white-space: nowrap; transition: all .2s; }
.subnav a:hover, .subnav a.is-active { background: var(--navy); color: #fff; }
.service-row { display: grid; gap: clamp(20px, 4vw, 56px); align-items: center; margin-bottom: clamp(44px, 7vw, 90px); scroll-margin-top: 150px; }
.service-row:last-child { margin-bottom: 0; }
@media (min-width: 900px) {
  .service-row { grid-template-columns: 1fr 1fr; }
  .service-row--reverse .service-row__media { order: -1; }
}
.service-row__icon { display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 1.1rem; border-radius: 16px; background: var(--bg-tint); color: var(--navy); }
.service-row__icon .i { width: 28px; height: 28px; }
.service-row__text h2 { margin-bottom: .6em; }
.service-row__text p { font-size: 1.03rem; line-height: 1.75; }
.service-row__text .btn { margin-top: .6rem; }
.service-row__media { margin: 0; position: relative; }
.service-row__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.service-row__media::before { content: ""; position: absolute; inset: 18px -16px -16px 18px; border-radius: var(--radius-lg); border: 2px solid var(--bg-tint); z-index: -1; }
.service-row--reverse .service-row__media::before { inset: 18px 18px -16px -16px; }

/* ---------- Automatisation ---------- */
.offer-grid { display: grid; gap: 16px; grid-template-columns: repeat(2, 1fr); }
.offer { padding: 26px 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); transition: transform .3s var(--ease), box-shadow .3s; }
.offer:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.offer__icon { display: grid; place-items: center; width: 54px; height: 54px; margin-bottom: 1rem; border-radius: 16px; background: linear-gradient(135deg, var(--red), #ff5a5f); color: #fff; box-shadow: 0 8px 18px rgba(238, 40, 45, .28); }
.offer__icon .i { width: 26px; height: 26px; }
.offer h2 { margin: 0; font-size: 1.05rem; line-height: 1.35; }
.offer h2::after { display: none; }
.tabs__list { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 1.8rem; }
.tabs__tab { padding: .7em 1.3em; border: 1.5px solid var(--line); border-radius: 999px; background: #fff; font-weight: 600; font-size: .94rem; color: var(--ink); transition: all .2s; }
.tabs__tab:hover { border-color: var(--navy); }
.tabs__tab.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }
.tabs__panel { max-width: 960px; margin-inline: auto; }
.tabs__video video { width: 100%; aspect-ratio: 16 / 9; border-radius: var(--radius); background: #000; box-shadow: var(--shadow-md); }
.tabs__text { text-align: center; padding: 2.5rem 1rem; background: var(--bg-soft); border-radius: var(--radius-lg); font-size: 1.1rem; }
.gallery-item { display: block; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.gallery-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .5s var(--ease); }
.gallery-item:hover img { transform: scale(1.05); }

/* ---------- Bandeaux info ---------- */
.info-band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; padding: clamp(26px, 4vw, 44px); background: linear-gradient(135deg, var(--bg-soft), var(--bg-tint)); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.info-band h2 { font-size: 1.5rem; margin-bottom: .8rem; }
.info-band__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.info-list { list-style: none; display: grid; gap: .8rem; }
.info-list li { display: flex; gap: .8em; align-items: flex-start; }
.info-list .i { margin-top: .2em; color: var(--red); width: 1.3em; height: 1.3em; }

/* ---------- Contact ---------- */
.intro-band { background: linear-gradient(135deg, var(--navy), var(--navy-700)); padding-block: clamp(26px, 4vw, 44px); }
.contact-grid { display: grid; gap: clamp(28px, 5vw, 56px); align-items: start; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: 1.05fr 1fr; } }
.contact-form { padding: clamp(24px, 4vw, 40px); background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); scroll-margin-top: 110px; }
.contact-form h2 { margin-bottom: 1.2rem; }
.contact-cards { list-style: none; display: grid; gap: 14px; }
.contact-card { display: flex; gap: 16px; padding: 20px 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.contact-card__icon { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--navy); color: #fff; }
.contact-card h3 { font-size: 1rem; margin-bottom: .25em; }
.contact-card p { margin: 0; font-size: .96rem; line-height: 1.6; }
.contact-card__links { display: flex; gap: 14px; margin-top: .5rem !important; font-weight: 600; }
.contact-side__media { margin: 18px 0 0; }
.contact-side__media img { width: 100%; max-height: 320px; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }

/* Formulaires */
.field { margin-bottom: 1.1rem; }
.field label { display: block; margin-bottom: .4rem; font-weight: 600; font-size: .92rem; color: var(--ink); }
.field abbr { color: var(--red); text-decoration: none; }
input[type="text"], input[type="email"], input[type="tel"], input[type="number"], input[type="search"], input[type="password"], textarea, select {
  width: 100%; padding: .8em 1em; font: inherit; color: var(--ink); background: #fff; border: 1.5px solid var(--line); border-radius: 12px; transition: border-color .2s, box-shadow .2s;
}
textarea { resize: vertical; min-height: 120px; }
input:focus, textarea:focus, select:focus { outline: 0; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(64, 142, 219, .18); }
.form-grid { display: grid; gap: 0 18px; }
@media (min-width: 640px) { .form-grid { grid-template-columns: 1fr 1fr; } .field--full { grid-column: 1 / -1; } }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Catalogue kits ---------- */
.kit { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; }
.kit__media { display: block; aspect-ratio: 4 / 3; background: var(--bg-soft); overflow: hidden; }
.kit__media img { width: 100%; height: 100%; object-fit: contain; padding: 10px; transition: transform .5s var(--ease); }
.kit:hover .kit__media img { transform: scale(1.04); }
.kit__body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.kit__body h3 { font-size: 1.1rem; color: var(--navy); }
.kit__body p { font-size: .93rem; margin-bottom: .6em; }
.kit__price { margin-top: auto !important; padding-top: .8rem; font-weight: 800; font-size: 1.15rem !important; color: var(--red); }

/* ---------- 404 ---------- */
.error-page { text-align: center; padding-block: 40px; }
.error-page__code { margin: 0; font-size: clamp(5rem, 16vw, 9rem); font-weight: 800; line-height: 1; letter-spacing: -.05em; background: linear-gradient(135deg, var(--navy), var(--red)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ==========================================================================
   Boutique
   ========================================================================== */
.shop__layout { display: grid; gap: 28px; }
@media (min-width: 992px) { .shop__layout { grid-template-columns: 290px 1fr; gap: 40px; align-items: start; } }

.filters-panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px; box-shadow: var(--shadow-sm); }
.filters-panel__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.filters-panel__head h2 { display: flex; align-items: center; gap: .5em; margin: 0; font-size: 1.1rem; }
.filters-panel__close { display: none; }
.filter-block { padding-block: 1.2rem; border-top: 1px solid var(--line); }
.filter-block:first-of-type { border-top: 0; padding-top: 0; }
.filter-block__label { display: block; margin: 0 0 .7rem; font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.searchbox { position: relative; }
.searchbox input { padding-right: 3em; }
.searchbox button { position: absolute; right: 5px; top: 5px; bottom: 5px; width: 40px; display: grid; place-items: center; border: 0; border-radius: 9px; background: var(--navy); color: #fff; }
.searchbox button:hover { background: var(--red); }
.cat-list { list-style: none; display: grid; gap: 2px; }
.cat-list a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: .6em .8em; border-radius: 10px; color: var(--ink); font-weight: 550; font-size: .94rem; }
.cat-list a span { display: flex; align-items: center; gap: .6em; }
.cat-list a .i { color: var(--muted); }
.cat-list em { font-style: normal; font-size: .78rem; min-width: 26px; text-align: center; padding: .1em .5em; border-radius: 999px; background: var(--bg-soft); color: var(--muted); font-weight: 700; }
.cat-list a:hover { background: var(--bg-soft); color: var(--navy); }
.cat-list a.is-active { background: var(--navy); color: #fff; }
.cat-list a.is-active .i { color: #fff; }
.cat-list a.is-active em { background: rgba(255, 255, 255, .2); color: #fff; }
.price-range { display: flex; align-items: center; gap: 8px; margin-bottom: .8rem; }
.price-range input { padding: .6em .8em; }
.link-reset { display: inline-flex; align-items: center; gap: .4em; font-size: .88rem; font-weight: 600; color: var(--red); margin-bottom: 1rem; }
.help-card { display: grid; gap: .6rem; justify-items: start; padding: 18px; border-radius: var(--radius); background: linear-gradient(135deg, #e9faef, #f4fcf7); border: 1px solid #c8efd5; font-size: .92rem; }
.help-card > .i { width: 30px; height: 30px; color: var(--green-600); }
.help-card p { margin: 0; }
.filters-backdrop { display: none; }

@media (max-width: 991.98px) {
  .filters-panel { position: fixed; top: 0; left: 0; bottom: 0; z-index: 130; width: min(88vw, 360px); border-radius: 0; overflow-y: auto; transform: translateX(-100%); transition: transform .3s var(--ease); visibility: hidden; }
  .filters-panel.is-open { transform: none; visibility: visible; }
  .filters-panel__close { display: grid; }
  .filters-backdrop { display: block; position: fixed; inset: 0; z-index: 125; background: rgba(10, 36, 66, .5); opacity: 0; visibility: hidden; transition: opacity .3s; }
  .filters-backdrop.is-open { opacity: 1; visibility: visible; }
}
@media (min-width: 992px) { .shop__filter-btn { display: none; } .filters-panel { position: sticky; top: calc(var(--header-h) + 20px); } }

.shop__toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-bottom: 1.4rem; padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.shop__count { margin: 0; color: var(--muted); margin-right: auto; }
.shop__count strong { color: var(--ink); }
.shop__sort { display: flex; align-items: center; gap: .6rem; font-size: .9rem; color: var(--muted); }
.shop__sort select { width: auto; padding: .5em 2em .5em .9em; font-weight: 600; font-size: .92rem; }

.pcard { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .3s var(--ease), box-shadow .3s, border-color .3s; }
.pcard:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: transparent; }
.pcard__media { position: relative; display: block; aspect-ratio: 1; background: #f3f6fa; overflow: hidden; }
.pcard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.pcard:hover .pcard__media img { transform: scale(1.07); }
.pcard__placeholder { position: absolute; inset: 0; display: grid; place-items: center; color: #b3c4d9; background: repeating-linear-gradient(45deg, #f3f6fa, #f3f6fa 12px, #edf2f8 12px, #edf2f8 24px); }
.pcard__placeholder .i { width: 44px; height: 44px; }
.pcard.is-out .pcard__media img { filter: grayscale(.8); opacity: .7; }
.pcard__body { display: flex; flex-direction: column; flex: 1; padding: 14px 16px 16px; }
.pcard__cat { margin: 0 0 .3rem; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.pcard__title { margin: 0 0 .8rem; font-size: .98rem; font-weight: 650; line-height: 1.35; letter-spacing: -.005em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.7em; }
.pcard__title a { color: var(--ink); }
.pcard__title a:hover { color: var(--red); }
.pcard__foot { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 10px; }
.price { margin: 0; display: flex; flex-direction: column; line-height: 1.2; }
.price strong { font-size: 1.08rem; font-weight: 800; color: var(--navy); font-variant-numeric: tabular-nums; }
.price del { font-size: .78rem; color: var(--muted); }
.price--quote strong { font-size: .92rem; color: var(--muted); font-weight: 700; }
.btn--icon .i { width: 1.1em; height: 1.1em; }
@media (max-width: 480px) { .pcard__foot { flex-direction: column; align-items: stretch; } .pcard__foot .btn, .pcard__foot form { width: 100%; } .pcard__foot .btn { justify-content: center; } }

.pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 2.6rem; }
.pagination__link { display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 .6em; border: 1.5px solid var(--line); border-radius: 12px; font-weight: 650; color: var(--ink); background: #fff; transition: all .2s; }
.pagination__link:hover { border-color: var(--navy); color: var(--navy); }
.pagination__link.is-current { background: var(--navy); border-color: var(--navy); color: #fff; }

/* ---------- Fiche produit ---------- */
.product { display: grid; gap: clamp(24px, 5vw, 56px); align-items: start; }
@media (min-width: 900px) { .product { grid-template-columns: 1.05fr 1fr; } }
.gallery__main { position: relative; display: block; aspect-ratio: 1; border-radius: var(--radius-lg); overflow: hidden; background: #f3f6fa; border: 1px solid var(--line); cursor: zoom-in; }
.gallery__main img { width: 100%; height: 100%; object-fit: contain; }
.gallery__thumbs { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(74px, 1fr)); gap: 10px; margin-top: 12px; }
.gallery__thumb { display: block; width: 100%; aspect-ratio: 1; padding: 0; border: 2px solid var(--line); border-radius: 12px; overflow: hidden; background: #f3f6fa; transition: border-color .2s; }
.gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumb:hover { border-color: var(--blue); }
.gallery__thumb.is-active { border-color: var(--red); }
.product__summary h1 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); margin: .6rem 0 1rem; }
.product__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 16px; margin-bottom: 1.2rem; }
.product__price strong { font-size: clamp(1.7rem, 3vw, 2.2rem); font-weight: 800; color: var(--navy); font-variant-numeric: tabular-nums; }
.product__price del { color: var(--muted); font-size: 1.1rem; }
.product__price .price--quote { font-size: 1.4rem; color: var(--muted); }
.stock { display: inline-flex; align-items: center; gap: .4em; padding: .25em .8em; border-radius: 999px; font-size: .82rem; font-weight: 700; }
.stock--in { background: #e8f8ee; color: #14663a; }
.stock--out { background: #fdecec; color: #9c1c20; }
.product__short { padding: 16px 18px; margin-bottom: 1.4rem; background: var(--bg-soft); border-radius: var(--radius); font-size: .95rem; max-height: 280px; overflow: auto; }
.product__short p { margin: 0 0 .6em; line-height: 1.6; }
.product__short p:last-child { margin: 0; }
.product__buy { display: grid; gap: 12px; margin-bottom: 1.4rem; }
.buy-form { display: flex; flex-wrap: wrap; gap: 12px; }
.buy-form__btn { flex: 1; min-width: 200px; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 999px; background: #fff; overflow: hidden; }
.qty button { width: 42px; height: 46px; display: grid; place-items: center; border: 0; background: none; color: var(--ink); }
.qty button:hover { background: var(--bg-soft); color: var(--red); }
.qty input { width: 52px; padding: 0; border: 0; border-radius: 0; text-align: center; font-weight: 700; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty input:focus { box-shadow: none; }
.product__perks { list-style: none; display: grid; gap: .6rem; padding: 16px 0; border-block: 1px solid var(--line); margin-bottom: 1rem; font-size: .93rem; }
.product__perks li { display: flex; align-items: center; gap: .7em; }
.product__perks .i { color: var(--red); width: 1.3em; height: 1.3em; }
.product__meta { font-size: .9rem; color: var(--muted); margin: 0; }
.product__desc { max-width: 900px; padding: clamp(22px, 4vw, 38px); background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); }
.product__desc h2 { font-size: 1.4rem; padding-bottom: .8rem; border-bottom: 2px solid var(--bg-tint); margin-bottom: 1.2rem; }

/* ---------- Panier & commande ---------- */
.cart, .checkout { display: grid; gap: 28px; align-items: start; }
@media (min-width: 960px) { .cart, .checkout { grid-template-columns: 1fr 360px; gap: 40px; } .checkout { grid-template-columns: 1.3fr 1fr; } }
.cart-list { list-style: none; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.cart-line { display: grid; grid-template-columns: 76px 1fr auto; gap: 14px 16px; align-items: center; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.cart-line:last-child { border-bottom: 0; }
.cart-line__img { grid-row: span 2; display: block; width: 76px; height: 76px; border-radius: 12px; overflow: hidden; background: #f3f6fa; }
.cart-line__img img { width: 100%; height: 100%; object-fit: cover; }
.cart-line__name { font-weight: 650; color: var(--ink); line-height: 1.35; }
.cart-line__info p { margin: .2rem 0 0; font-size: .86rem; }
.cart-line__total { margin: 0; font-weight: 800; color: var(--navy); text-align: right; white-space: nowrap; }
@media (min-width: 700px) {
  .cart-line { grid-template-columns: 84px 1fr auto 130px 44px; }
  .cart-line__img { grid-row: auto; width: 84px; height: 84px; }
}
@media (max-width: 699.98px) {
  .cart-line { grid-template-columns: 64px 1fr auto; gap: 10px 12px; padding: 14px; }
  .cart-line__img { grid-row: 1 / span 2; width: 64px; height: 64px; }
  .cart-line__info { grid-column: 2; grid-row: 1; min-width: 0; }
  .cart-line .icon-btn { grid-column: 3; grid-row: 1; align-self: start; }
  .cart-line .qty { grid-column: 2; grid-row: 2; justify-self: start; }
  .cart-line .qty button { width: 34px; height: 38px; }
  .cart-line .qty input { width: 40px; }
  .cart-line__total { grid-column: 3; grid-row: 2; align-self: center; font-size: .95rem; }
}
.cart__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; margin-top: 1.2rem; }
.summary { padding: 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
@media (min-width: 960px) { .summary { position: sticky; top: calc(var(--header-h) + 20px); } }
.summary h2 { font-size: 1.25rem; padding-bottom: .9rem; border-bottom: 1px solid var(--line); margin-bottom: 1rem; }
.summary dl { margin: 0 0 1rem; }
.summary dl > div { display: flex; justify-content: space-between; gap: 12px; padding: .4rem 0; }
.summary dt { color: var(--muted); }
.summary dd { margin: 0; font-weight: 700; color: var(--ink); }
.summary__total { margin-top: .4rem; padding-top: .9rem !important; border-top: 1px solid var(--line); font-size: 1.2rem; }
.summary__total dt { color: var(--ink); font-weight: 700; }
.summary__total dd { color: var(--navy); font-size: 1.4rem; font-weight: 800; }
.summary__note { display: flex; align-items: center; gap: .6em; padding: .8em 1em; margin-bottom: 1rem; border-radius: 12px; background: var(--bg-soft); font-size: .9rem; font-weight: 550; }
.summary__note .i { color: var(--red); }
.summary__lines { list-style: none; display: grid; gap: 12px; margin-bottom: 1rem; }
.summary__lines li { display: flex; align-items: center; gap: 12px; font-size: .92rem; }
.summary__lines img { width: 48px; height: 48px; object-fit: cover; border-radius: 10px; flex: none; }
.summary__lines span { flex: 1; line-height: 1.35; }
.summary__lines em { font-style: normal; color: var(--muted); }
.checkout__form h2 { font-size: 1.3rem; margin: 0 0 1.2rem; }
.checkout__form h2:not(:first-of-type) { margin-top: 2rem; }
.pay-option { display: flex; align-items: center; gap: 14px; padding: 18px; margin-bottom: 1.6rem; border: 2px solid var(--navy); border-radius: var(--radius); background: var(--bg-soft); cursor: pointer; }
.pay-option input { accent-color: var(--navy); width: 20px; height: 20px; }
.pay-option__icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: var(--navy); color: #fff; }

.thanks { max-width: 720px; text-align: center; }
.thanks__icon { display: grid; place-items: center; width: 84px; height: 84px; margin: 0 auto 1.4rem; border-radius: 50%; background: #e8f8ee; color: #14a04f; box-shadow: 0 0 0 12px #f2fbf6; }
.thanks__icon .i { width: 42px; height: 42px; stroke-width: 2.4; }
.thanks h1 { font-size: clamp(1.7rem, 4vw, 2.4rem); }
.thanks__lead { font-size: 1.08rem; }
.thanks__card { text-align: left; margin: 2rem 0; padding: 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.thanks__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* ==========================================================================
   Pied de page & éléments flottants
   ========================================================================== */
.footer { background: var(--navy-900); color: #a9bfd8; font-size: .94rem; margin-top: 0; }
.footer__grid { display: grid; gap: 36px; padding-block: clamp(44px, 6vw, 72px); }
@media (min-width: 640px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .footer__grid { grid-template-columns: 1.2fr 1.3fr 1fr .8fr; gap: 48px; } }
.footer__logo { display: inline-block; padding: 10px 14px; margin-bottom: 1rem; background: #fff; border-radius: 14px; }
.footer__logo img { height: 46px; width: auto; }
.footer__brand p { max-width: 32ch; }
.footer__title { margin: 0 0 1.2rem; font-size: .8rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #fff; }
.footer__title--sm { margin-top: 1.6rem; margin-bottom: .8rem; }
.footer__list, .footer__links, .social { list-style: none; }
.footer__list { display: grid; gap: .9rem; }
.footer__list li { display: flex; gap: .8em; align-items: flex-start; }
.footer__list .i { margin-top: .25em; color: var(--sun); }
.footer a { color: #d7e5f5; }
.footer a:hover { color: #fff; }
.footer__links { display: grid; gap: .6rem; }
.footer__sub { padding-left: 1em; font-size: .88rem; }
.footer__sub a { color: #8fa9c6; }
.footer__wa { margin-top: 1.4rem; color: #fff !important; }
.social { display: flex; gap: 10px; }
.social a { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: rgba(255, 255, 255, .08); color: #fff; transition: background .2s, transform .2s; }
.social a:hover { background: var(--red); transform: translateY(-3px); }
.footer__bottom { border-top: 1px solid rgba(255, 255, 255, .1); background: #071a30; }
.footer__bottom-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; padding-block: 18px; padding-right: 90px; font-size: .84rem; }
.footer__bottom p { margin: 0; }
.footer__admin a { color: #7f99b8; }

.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 90; display: flex; align-items: center; gap: .6em; padding: 14px; border-radius: 999px; background: var(--green); color: #fff; box-shadow: 0 10px 26px rgba(37, 211, 102, .45); font-weight: 650; font-size: .92rem; transition: background .2s, transform .2s; }
.wa-float .i { width: 28px; height: 28px; }
.wa-float span { max-width: 0; overflow: hidden; white-space: nowrap; transition: max-width .4s var(--ease), margin .4s; }
.wa-float:hover { background: var(--green-600); color: #fff; transform: translateY(-3px); }
.wa-float:hover span { max-width: 260px; margin-right: .5em; }
.wa-float::after { content: ""; position: absolute; inset: 0; border-radius: inherit; border: 2px solid var(--green); animation: ping 2.4s ease-out infinite; pointer-events: none; }
@keyframes ping { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(1.35); opacity: 0; } }
.to-top { position: fixed; right: 22px; bottom: 90px; z-index: 89; width: 46px; height: 46px; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--navy); color: #fff; box-shadow: var(--shadow-md); opacity: 0; visibility: hidden; transform: translateY(10px); transition: all .3s; }
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--red); }

.toast { position: fixed; left: 50%; bottom: 24px; z-index: 200; transform: translate(-50%, 30px); max-width: min(92vw, 460px); padding: .9em 1.3em; border-radius: 14px; background: var(--ink); color: #fff; font-weight: 550; box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transition: all .35s var(--ease); display: flex; align-items: center; gap: .7em; }
.toast.is-visible { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.toast--success .i { color: #4ee08a; }
.toast--error .i { color: #ff7b7f; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 24px; background: rgba(5, 16, 30, .92); opacity: 0; visibility: hidden; transition: opacity .25s; }
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox__img { max-width: min(94vw, 1200px); max-height: 82vh; border-radius: 12px; box-shadow: var(--shadow-lg); object-fit: contain; }
.lightbox__cap { position: absolute; left: 0; right: 0; bottom: 18px; padding: 0 24px; text-align: center; color: #d2e0f1; font-size: .92rem; }
.lightbox__close { position: absolute; top: 18px; right: 18px; width: 46px; height: 46px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .14); color: #fff; }
.lightbox__close:hover { background: var(--red); }
.lightbox__nav { position: absolute; top: 50%; width: 48px; height: 48px; margin-top: -24px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .14); color: #fff; }
.lightbox__nav:hover { background: var(--red); }
.lightbox__nav--prev { left: 16px; }
.lightbox__nav--next { right: 16px; }

@media print {
  .topbar, .header, .footer, .wa-float, .to-top, .nav-backdrop { display: none !important; }
}
