/* ==========================================================================
   imprimerie.ma — Feuille de style principale
   Charte : bleu nuit + orange, fonds crème
   ========================================================================== */

:root {
  /* ======================================================================
     Charte inspirée de printeurope.fr : bleu marine, bleu clair, orange,
     sur fond blanc. Le bleu porte l'identité, l'orange ne sert qu'aux
     promotions et aux remises — juste assez pour accrocher l'œil.
     ====================================================================== */

  /* --- Bleu clair (couleur d'action : boutons, liens, sélection) --- */
  --em-50:  #E9F5FD;
  --em-100: #CCE8FA;
  --em-200: #9FD5F4;
  --em-300: #6FBFEC;
  --em-400: #47AAE3;
  --em-500: #2C9BDB;
  --em-600: #1E90D2;
  --em-700: #1876AF;
  --em-800: #135C88;
  --em-900: #0E4362;

  /* --- Bleu marine / neutres (structure, textes, en-tête, pied de page) --- */
  --ink-900: #16294F;
  --ink-800: #1D3566;
  --ink-700: #24417A;
  --ink-600: #3B5893;
  --ink-500: #5D739E;
  --ink-400: #8FA0BE;
  --ink-300: #B9C5D9;
  --ink-200: #D9E1EC;
  --ink-100: #E9EEF6;
  --ink-50:  #F3F7FC;
  --white:   #FFFFFF;
  --cream:   #FFFFFF;
  --wash:    #F4F9FD;

  /* --- Orange (promotions, remises, mise en avant) --- */
  --or-50:  #FEF6E7;
  --or-100: #FCE9C6;
  --or-200: #F8D493;
  --or-300: #F3BC5C;
  --or-400: #EFA733;
  --or-500: #EE9B1E;
  --or-600: #C67B0C;
  --or-700: #955B09;

  /* --- Teintes de fond des visuels produits --- */
  --tint-1: #E9F1FA;
  --tint-2: #F2F8FD;
  --tint-3: #E3EDF8;
  --tint-4: #EDF4FB;

  /* --- Accents (noms conservés, désormais orange) --- */
  --gold-500: var(--or-500);
  --gold-100: var(--or-100);
  --gold-50:  var(--or-50);
  --red-500:  #C4372E;
  --red-50:   #FBEAE8;

  /* --- Système --- */
  --radius-sm: 6px;
  --radius:    10px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --shadow-xs: 0 1px 2px rgba(22,41,79,.06);
  --shadow-sm: 0 2px 6px rgba(22,41,79,.08);
  --shadow:    0 6px 18px rgba(22,41,79,.10);
  --shadow-lg: 0 18px 44px rgba(22,41,79,.16);

  --container: 1240px;
  --header-h: 72px;

  --font: "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;

  --ease: cubic-bezier(.2, .7, .3, 1);
}

/* ==========================================================================
   Base
   ========================================================================== */

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-700);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

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

h1 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3.1rem); }
h2 { font-size: clamp(1.5rem, 1.15rem + 1.5vw, 2.25rem); }
h3 { font-size: clamp(1.15rem, 1rem + .6vw, 1.4rem); }
h4 { font-size: 1.05rem; font-weight: 700; }

p { margin: 0 0 1em; }

a { color: var(--em-600); text-decoration: none; transition: color .15s var(--ease); }
a:hover { color: var(--em-700); }

img, svg { max-width: 100%; display: block; }

ul, ol { margin: 0 0 1em; padding-left: 1.15em; }
li { margin-bottom: .35em; }

small { font-size: .85rem; }

hr { border: 0; border-top: 1px solid var(--ink-100); margin: 2.5rem 0; }

::selection { background: var(--em-200); color: var(--ink-900); }

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

/* ==========================================================================
   Layout
   ========================================================================== */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 20px;
}
.container--narrow { max-width: 860px; }

.section { padding: 68px 0; }
.section--tight { padding: 44px 0; }
.section--alt { background: var(--wash); }
.section--paper { background: var(--white); }
.section--dark { background: var(--ink-900); color: var(--ink-200); }
.section--dark h2, .section--dark h3 { color: var(--white); }
.section--brand { background: var(--ink-900); color: var(--ink-200); }
.section--brand h2 { color: var(--white); }

.section-head { max-width: 720px; margin-bottom: 34px; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head p { color: var(--ink-500); font-size: 1.05rem; margin-bottom: 0; }

.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-5 { grid-template-columns: repeat(5, 1fr); }

.stack > * + * { margin-top: 1rem; }
.flex { display: flex; gap: 14px; align-items: center; }
.flex-wrap { flex-wrap: wrap; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.text-center { text-align: center; }
.muted { color: var(--ink-500); }

/* ==========================================================================
   Boutons & badges
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  font-family: var(--font);
  font-weight: 650;
  font-size: .95rem;
  line-height: 1;
  padding: 14px 24px;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all .18s var(--ease);
  white-space: nowrap;
  text-align: center;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary { background: var(--em-600); color: var(--white); box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--em-700); color: var(--white); box-shadow: var(--shadow); }

.btn--gold { background: var(--or-500); color: #3B2A05; }
.btn--gold:hover { background: var(--or-600); color: #3B2A05; }

.btn--dark { background: var(--ink-900); color: var(--white); }
.btn--dark:hover { background: var(--ink-800); color: var(--white); }

.btn--ghost { background: transparent; color: var(--ink-800); border-color: var(--ink-200); }
.btn--ghost:hover { border-color: var(--em-500); color: var(--em-700); background: var(--em-50); }

.btn--light { background: var(--white); color: var(--em-700); }
.btn--light:hover { background: var(--em-50); color: var(--em-800); }

.btn--sm { padding: 10px 16px; font-size: .875rem; }
.btn--lg { padding: 17px 32px; font-size: 1.02rem; }
.btn--block { width: 100%; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: .4em;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 100px;
  background: var(--em-50);
  color: var(--em-700);
}
.badge--gold { background: var(--or-100); color: var(--or-700); }
.badge--dark { background: var(--ink-100); color: var(--ink-700); }
.badge--red  { background: var(--or-100); color: var(--or-700); }   /* remises : orange, pas rouge */
.badge--solid { background: var(--em-600); color: var(--white); }

/* ==========================================================================
   Header
   ========================================================================== */

.topbar {
  background: var(--ink-900);
  color: var(--ink-300);
  font-size: .82rem;
}
.topbar .container {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: 38px;
}
.topbar a { color: var(--ink-200); }
.topbar a:hover { color: var(--white); }
.topbar__list { display: flex; gap: 20px; align-items: center; list-style: none; margin: 0; padding: 0; }
.topbar__list li { margin: 0; display: flex; align-items: center; gap: .4em; }
.topbar__list svg { width: 14px; height: 14px; flex: none; color: var(--em-400); }

.header {
  position: sticky; top: 0; z-index: 60;
  background: var(--white);
  border-bottom: 1px solid var(--ink-100);
}
.header__inner {
  display: flex; align-items: center; gap: 28px;
  min-height: var(--header-h);
}

.logo { display: flex; align-items: center; gap: 12px; flex: none; }
.logo__img {
  height: 46px; width: auto; display: block; flex: none;
}
.footer .logo__img { height: 46px; }
.logo__text { font-family: var(--font-display); font-weight: 800; font-size: 1.28rem; color: var(--ink-900); letter-spacing: -.03em; }
.logo__text span { color: var(--em-600); }
.logo__tag { display: block; font-size: .64rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-400); font-weight: 600; font-family: var(--font); }

.search {
  flex: 1 1 auto; position: relative; max-width: 460px;
}
.search input {
  width: 100%; height: 44px;
  padding: 0 44px 0 16px;
  border: 1.5px solid var(--ink-200);
  border-radius: var(--radius);
  font-family: var(--font); font-size: .93rem;
  background: var(--ink-50);
  transition: all .18s var(--ease);
}
.search input:focus { background: var(--white); border-color: var(--em-500); outline: none; box-shadow: 0 0 0 3px var(--em-50); }
.search button {
  position: absolute; right: 5px; top: 5px;
  width: 34px; height: 34px; border: 0; border-radius: 7px;
  background: var(--em-600); color: var(--white);
  display: grid; place-items: center; cursor: pointer;
}
.search button svg { width: 17px; height: 17px; }

.header__actions { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.iconbtn {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 6px 10px; border-radius: 8px;
  color: var(--ink-600); font-size: .7rem; font-weight: 600;
  transition: background .15s var(--ease);
}
.iconbtn:hover { background: var(--ink-50); color: var(--em-700); }
.iconbtn svg { width: 21px; height: 21px; }
.iconbtn__badge {
  position: absolute; transform: translate(11px, -4px);
  background: var(--gold-500); color: var(--ink-900);
  font-size: .62rem; font-weight: 800; border-radius: 100px; padding: 0 5px;
}

/* --- Navigation principale --- */
.nav { background: var(--white); border-bottom: 1px solid var(--ink-100); }
.nav__list {
  display: flex; align-items: stretch; gap: 2px;
  list-style: none; margin: 0; padding: 0;
  overflow-x: auto; scrollbar-width: none;
}
.nav__list::-webkit-scrollbar { display: none; }
.nav__list > li { margin: 0; position: relative; }
.nav__link {
  display: flex; align-items: center; gap: .4em;
  padding: 13px 15px;
  font-size: .92rem; font-weight: 650; color: var(--ink-700);
  border-bottom: 3px solid transparent;
  white-space: nowrap;
}
.nav__link:hover, .nav__item:hover .nav__link { color: var(--em-700); border-bottom-color: var(--em-500); }
.nav__link--active { color: var(--em-700); border-bottom-color: var(--em-600); }
.nav__link svg { width: 13px; height: 13px; opacity: .55; }
.nav__link--promo { color: var(--or-600); }

/* Méga-menu */
.megamenu {
  position: absolute; top: 100%; left: 0; z-index: 70;
  min-width: 620px; padding: 26px;
  background: var(--white);
  border: 1px solid var(--ink-100);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: all .18s var(--ease);
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px 26px;
}
.nav__item:hover .megamenu, .megamenu:hover { opacity: 1; visibility: visible; transform: translateY(0); }
.megamenu h4 { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-400); margin-bottom: .7em; }
.megamenu ul { list-style: none; margin: 0 0 18px; padding: 0; }
.megamenu li { margin-bottom: 2px; }
.megamenu a { display: block; padding: 5px 8px; margin-left: -8px; border-radius: 6px; font-size: .89rem; color: var(--ink-700); }
.megamenu a:hover { background: var(--em-50); color: var(--em-700); }

.burger { display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--ink-800); }
.burger svg { width: 24px; height: 24px; }

/* ==========================================================================
   Bandeau de réassurance
   ========================================================================== */

.usp-bar { background: var(--ink-900); color: var(--ink-200); }
.usp-bar__list {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px;
  list-style: none; margin: 0; padding: 0;
}
.usp-bar__list li {
  display: flex; align-items: center; gap: 9px;
  padding: 12px 6px; font-size: .87rem; font-weight: 600; margin: 0;
}
.usp-bar__list svg { width: 19px; height: 19px; flex: none; color: var(--em-400); }

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  background: linear-gradient(150deg, var(--ink-900) 0%, var(--ink-800) 55%, var(--ink-700) 100%);
  color: var(--ink-200);
  overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 85% 15%, rgba(220,110,34,.30), transparent 48%),
    radial-gradient(circle at 12% 88%, rgba(220,110,34,.10), transparent 42%);
  pointer-events: none;
}
.hero__inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px;
  align-items: center; padding: 66px 0 74px;
}
.hero h1 { color: var(--white); margin-bottom: .45em; }
.hero h1 em { font-style: normal; color: var(--em-400); }
.hero__lead { font-size: 1.12rem; color: var(--ink-300); max-width: 34em; margin-bottom: 1.7em; }
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 30px; }
.hero__points { display: flex; gap: 22px; flex-wrap: wrap; list-style: none; padding: 0; margin: 0; font-size: .9rem; }
.hero__points li { display: flex; align-items: center; gap: 7px; color: var(--ink-300); margin: 0; }
.hero__points svg { width: 17px; height: 17px; color: var(--em-400); flex: none; }

/* Carte "devis express" du hero */
.quote-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 26px;
  box-shadow: var(--shadow-lg);
  color: var(--ink-700);
}
.quote-card h3 { margin-bottom: .2em; }
.quote-card__sub { font-size: .88rem; color: var(--ink-500); margin-bottom: 1.1em; }

/* ==========================================================================
   Diaporama d'accueil
   ========================================================================== */

.slider { position: relative; overflow: hidden; background: var(--ink-900); }
.slider__viewport { overflow: hidden; }
.slider__track { display: flex; transition: transform .55s var(--ease); will-change: transform; }
.slider__track.no-anim { transition: none; }

.slide { min-width: 100%; position: relative; }
.slide__bg { position: absolute; inset: 0; }
.slide--a .slide__bg { background: linear-gradient(140deg, var(--ink-900) 0%, var(--ink-800) 55%, var(--ink-700) 100%); }
.slide--b .slide__bg { background: linear-gradient(140deg, var(--ink-700) 0%, var(--ink-900) 55%, var(--ink-800) 100%); }
.slide--c .slide__bg { background: linear-gradient(140deg, var(--ink-800) 0%, var(--ink-900) 50%, #101B24 100%); }
.slide__bg::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 78% 22%, rgba(220,110,34,.30), transparent 50%),
    radial-gradient(circle at 8% 90%, rgba(220,110,34,.10), transparent 44%);
}

.slide__inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 44px;
  align-items: center; padding: 56px 0 64px; min-height: 400px;
}
.slide__kicker {
  display: inline-flex; align-items: center; gap: .5em;
  font-size: .74rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  color: var(--em-400); margin-bottom: 14px;
}
.slide__kicker::before { content: ""; width: 26px; height: 2px; background: var(--em-500); }
.slide h2 {
  color: var(--white); font-size: clamp(1.8rem, 1.2rem + 2.3vw, 3rem);
  margin-bottom: .4em; line-height: 1.14;
}
.slide h2 em { font-style: normal; color: var(--em-400); }
.slide__text { color: var(--ink-300); font-size: 1.05rem; max-width: 36em; margin-bottom: 1.6em; }
.slide__cta { display: flex; gap: 12px; flex-wrap: wrap; }
.slide__art { display: grid; place-items: center; }
.slide__art svg { width: 100%; max-width: 460px; height: auto; }

.slider__arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
  width: 46px; height: 46px; border-radius: 50%;
  background: rgba(255,255,255,.14); border: 1.5px solid rgba(255,255,255,.28);
  color: var(--white); display: grid; place-items: center; cursor: pointer;
  transition: all .18s var(--ease); backdrop-filter: blur(3px);
}
.slider__arrow:hover { background: var(--white); color: var(--ink-900); border-color: var(--white); }
.slider__arrow svg { width: 20px; height: 20px; }
.slider__arrow--prev { left: 18px; }
.slider__arrow--next { right: 18px; }

.slider__dots {
  position: absolute; bottom: 62px; z-index: 5;
  left: 50%; transform: translateX(-50%);
  width: 100%; max-width: var(--container); padding-inline: 20px;
  display: flex; justify-content: flex-start; gap: 9px;
}
.slider__dots button {
  width: 30px; height: 5px; border-radius: 3px; border: 0; padding: 0; cursor: pointer;
  background: rgba(255,255,255,.32); transition: background .2s var(--ease);
}
.slider__dots button.is-active { background: var(--em-500); }
.slider__dots button:hover { background: rgba(255,255,255,.6); }

/* Barre « devis express » sous le diaporama */
.quickbar {
  background: var(--white); border: 1px solid var(--ink-100);
  border-radius: var(--radius-lg); box-shadow: var(--shadow);
  padding: 18px 22px; margin-top: -34px; position: relative; z-index: 20;
  display: grid; grid-template-columns: auto 1fr 1fr auto auto; gap: 16px; align-items: end;
}
.quickbar__label { font-family: var(--font-display); font-weight: 800; font-size: 1.02rem; color: var(--ink-900); padding-bottom: 10px; }
.quickbar .field { margin: 0; }
.quickbar__price {
  font-size: .84rem; color: var(--ink-500); padding-bottom: 9px; white-space: nowrap;
}
.quickbar__price strong { display: block; font-family: var(--font-display); font-size: 1.18rem; color: var(--em-700); }

/* ==========================================================================
   Cartes « famille de produits » (présentation du site de référence)
   ========================================================================== */

.pcard {
  position: relative; display: flex; flex-direction: column;
  background: var(--white);
  border: 1px solid var(--ink-100);
  border-radius: var(--radius-lg);
  padding: 22px 18px 14px;
  text-align: center; overflow: hidden; height: 100%;
  transition: all .2s var(--ease);
}
.pcard:hover { box-shadow: var(--shadow-lg); border-color: var(--em-200); transform: translateY(-3px); }
.pcard__title {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(1rem, .9rem + .4vw, 1.2rem);
  color: var(--ink-900); margin: 0 0 4px;
}
.pcard__sub { font-size: .82rem; color: var(--ink-500); margin: 0 0 6px; }
.pcard__media {
  position: relative; margin-top: auto;
  background: var(--tint-1); border-radius: 12px; padding: 6px 4px;
}
.pcard__media svg { width: 100%; height: auto; display: block; }
.pcard:nth-child(4n+2) .pcard__media { background: var(--tint-2); }
.pcard:nth-child(4n+3) .pcard__media { background: var(--tint-3); }
.pcard:nth-child(4n+4) .pcard__media { background: var(--tint-4); }
.pcard__ribbon {
  position: absolute; left: -19px; bottom: 32%; z-index: 2;
  background: var(--ink-900); color: var(--white);
  font-size: .72rem; font-weight: 800; letter-spacing: .01em;
  text-transform: uppercase; padding: 7px 14px;
  box-shadow: var(--shadow-sm); white-space: nowrap;
}
.pcard__ribbon--gold { background: var(--or-500); color: #3B2A05; }
.pcard__price {
  font-size: .8rem; color: var(--ink-500); margin: 10px 0 0;
  border-top: 1px solid var(--ink-100); padding-top: 10px;
}
.pcard__price strong { color: var(--ink-900); font-weight: 800; }

/* ==========================================================================
   Formulaires
   ========================================================================== */

.field { margin-bottom: 15px; }
.field > label, .field-label {
  display: block; font-size: .82rem; font-weight: 700;
  color: var(--ink-700); margin-bottom: 6px;
}
.field-label .hint { font-weight: 500; color: var(--ink-400); text-transform: none; letter-spacing: 0; }

.input, select.input, textarea.input,
input[type="text"], input[type="email"], input[type="tel"], input[type="number"],
input[type="password"], input[type="search"], input:not([type]), select, textarea {
  width: 100%;
  padding: 11px 13px;
  font-family: var(--font); font-size: .93rem; color: var(--ink-800);
  background: var(--white);
  border: 1.5px solid var(--ink-200);
  border-radius: var(--radius-sm);
  transition: all .15s var(--ease);
}
select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235A6673' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 11px center; background-size: 16px;
  padding-right: 36px; cursor: pointer;
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--em-500); box-shadow: 0 0 0 3px var(--em-50);
}
textarea { min-height: 120px; resize: vertical; }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* Options en "pilules" (formats, papiers, finitions) */
.optiongrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 9px; }
.option {
  position: relative; display: block; cursor: pointer;
}
.option input { position: absolute; opacity: 0; pointer-events: none; }
.option__box {
  display: flex; flex-direction: column; gap: 2px;
  padding: 11px 12px;
  border: 1.5px solid var(--ink-200); border-radius: var(--radius-sm);
  background: var(--white);
  transition: all .15s var(--ease);
  height: 100%;
}
.option__box strong { font-size: .88rem; color: var(--ink-800); font-weight: 700; }
.option__box span { font-size: .74rem; color: var(--ink-400); }
.option:hover .option__box { border-color: var(--em-300); }
.option input:checked + .option__box {
  border-color: var(--em-500); background: var(--em-50);
  box-shadow: inset 0 0 0 1px var(--em-500);
}
.option input:checked + .option__box strong { color: var(--em-800); }
.option input:focus-visible + .option__box { outline: 3px solid var(--em-400); outline-offset: 2px; }

.checkline { display: flex; align-items: flex-start; gap: 10px; font-size: .9rem; margin-bottom: 9px; }
.checkline input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--em-600); flex: none; }

/* ==========================================================================
   Cartes produits
   ========================================================================== */

.card {
  background: var(--white);
  border: 1px solid var(--ink-100);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all .2s var(--ease);
  display: flex; flex-direction: column;
  height: 100%;
}
.card:hover { border-color: var(--em-200); box-shadow: var(--shadow); transform: translateY(-3px); }

.card:nth-child(4n+2) .card__media { background: var(--tint-2); }
.card:nth-child(4n+3) .card__media { background: var(--tint-3); }
.card:nth-child(4n+4) .card__media { background: var(--tint-4); }
.card__media {
  aspect-ratio: 4 / 3;
  background: var(--tint-1);
  display: grid; place-items: center;
  position: relative; overflow: hidden;
}
.card__media svg { width: 62%; height: auto; }
.card__flag {
  position: absolute; top: 10px; left: 10px; z-index: 2;
}
.card__body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.card__title { font-family: var(--font-display); font-weight: 750; font-size: 1.02rem; color: var(--ink-900); margin: 0 0 5px; }
.card__title a { color: var(--ink-900); }
.card__title a:hover { color: var(--em-600); }
.card__desc { font-size: .84rem; color: var(--ink-500); margin: 0 0 14px; flex: 1; }
.card__price { font-size: .8rem; color: var(--ink-500); margin: 0; }
.card__price strong { display: block; font-family: var(--font-display); font-size: 1.22rem; color: var(--ink-900); font-weight: 800; }
.card__foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; margin-top: 12px; }

/* Tuile catégorie */
.tile {
  position: relative;
  display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 190px; padding: 20px;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, var(--ink-800), var(--ink-900));
  color: var(--white); overflow: hidden;
  transition: all .2s var(--ease);
}
.tile::before {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(0deg, rgba(22,36,47,.90) 0%, rgba(22,36,47,.30) 55%, rgba(220,110,34,.30) 100%);
  opacity: .9; transition: opacity .25s var(--ease);
}
.tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); color: var(--white); }
.tile:hover::before { opacity: 1; }
.tile__icon {
  position: absolute; right: 14px; top: 14px; z-index: 1;
  width: 58px; height: 58px; opacity: .35; color: var(--white);
}
.tile__name { position: relative; z-index: 1; color: var(--white); font-family: var(--font-display); font-weight: 800; font-size: 1.14rem; margin: 0 0 3px; }
.tile__count { position: relative; z-index: 1; font-size: .8rem; opacity: .85; }
.tile--2 { background: linear-gradient(160deg, var(--ink-700), var(--ink-900)); }
.tile--3 { background: linear-gradient(160deg, #2C414F, #16242F); }

/* ==========================================================================
   Blocs "avantages", chiffres, témoignages
   ========================================================================== */

.feature {
  padding: 22px;
  background: var(--white);
  border: 1px solid var(--ink-100);
  border-radius: var(--radius-lg);
  height: 100%;
}
.feature__icon {
  width: 44px; height: 44px; border-radius: 11px;
  background: var(--em-50); color: var(--em-600);
  display: grid; place-items: center; margin-bottom: 14px;
}
.feature__icon svg { width: 22px; height: 22px; }
.feature h3 { font-size: 1.02rem; margin-bottom: .4em; }
.feature p { font-size: .88rem; color: var(--ink-500); margin: 0; }

.stat { text-align: center; padding: 8px; }
.stat__num {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(1.8rem, 1.3rem + 1.8vw, 2.6rem);
  color: var(--em-400); line-height: 1; margin-bottom: 6px;
}
.stat__label { font-size: .88rem; color: var(--ink-300); }
.section--dark .stat__label { color: var(--ink-300); }

.review {
  background: var(--white); border: 1px solid var(--ink-100);
  border-radius: var(--radius-lg); padding: 22px; height: 100%;
}
.review__stars { color: var(--gold-500); font-size: 1rem; letter-spacing: .1em; margin-bottom: 10px; }
.review p { font-size: .92rem; color: var(--ink-600); }
.review__author { font-size: .82rem; color: var(--ink-400); margin: 0; }
.review__author strong { color: var(--ink-800); display: block; font-size: .88rem; }

/* Étapes numérotées */
.steps { counter-reset: step; display: grid; gap: 20px; grid-template-columns: repeat(4, 1fr); }
.step { position: relative; padding-top: 8px; }
.step__num {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--em-600); color: var(--white);
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 800; font-size: 1.05rem;
  margin-bottom: 13px;
}
.step h3 { font-size: 1.02rem; margin-bottom: .35em; }
.step p { font-size: .88rem; color: var(--ink-500); margin: 0; }

/* ==========================================================================
   Fil d'ariane, en-tête de page
   ========================================================================== */

.breadcrumb { font-size: .82rem; color: var(--ink-400); padding: 14px 0; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.breadcrumb li { margin: 0; display: flex; gap: 8px; align-items: center; }
.breadcrumb li + li::before { content: "›"; color: var(--ink-300); }
.breadcrumb a { color: var(--ink-500); }
.breadcrumb a:hover { color: var(--em-600); }

.pagehead { background: var(--wash); border-bottom: 1px solid var(--ink-100); padding: 8px 0 40px; }
.pagehead h1 { margin-bottom: .3em; }
.pagehead p { font-size: 1.05rem; color: var(--ink-500); max-width: 62ch; margin: 0; }

/* ==========================================================================
   Configurateur de devis
   ========================================================================== */

.configurator { display: grid; grid-template-columns: 1fr 372px; gap: 30px; align-items: start; }

.config-panel {
  background: var(--white); border: 1px solid var(--ink-100);
  border-radius: var(--radius-lg); overflow: hidden;
}
.config-step { border-bottom: 1px solid var(--ink-100); padding: 22px 24px; }
.config-step:last-child { border-bottom: 0; }
.config-step__head { display: flex; align-items: center; gap: 11px; margin-bottom: 15px; }
.config-step__n {
  width: 26px; height: 26px; border-radius: 50%; flex: none;
  background: var(--ink-900); color: var(--white);
  display: grid; place-items: center; font-size: .78rem; font-weight: 800;
}
.config-step__head h3 { margin: 0; font-size: 1.02rem; }
.config-step__head .hint { font-size: .8rem; color: var(--ink-400); margin-left: auto; font-weight: 500; }

/* Panneau prix collant */
.pricebox {
  position: sticky; top: calc(var(--header-h) + 14px);
  background: var(--white);
  border: 1.5px solid var(--em-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.pricebox__head {
  background: var(--ink-900); color: var(--ink-200);
  padding: 15px 20px; display: flex; align-items: center; justify-content: space-between;
}
.pricebox__head h3 { color: var(--white); margin: 0; font-size: 1rem; }
.pricebox__status {
  font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
  display: flex; align-items: center; gap: 6px;
}
.pricebox__status::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--em-300); box-shadow: 0 0 0 0 rgba(76,195,138,.7);
  animation: pulse 2s infinite;
}
.pricebox__status[data-state="live"]::before { background: #4CC38A; }
.pricebox__status[data-state="local"]::before { background: var(--gold-500); animation: none; }
.pricebox__status[data-state="loading"]::before { background: var(--em-200); }
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(76,195,138,.55); }
  70%  { box-shadow: 0 0 0 7px rgba(76,195,138,0); }
  100% { box-shadow: 0 0 0 0 rgba(76,195,138,0); }
}
.pricebox__body { padding: 20px; }
.pricebox__amount {
  font-family: var(--font-display); font-weight: 800;
  font-size: 2.35rem; color: var(--ink-900); line-height: 1;
  letter-spacing: -.03em;
}
.pricebox__amount .cur { font-size: 1.1rem; color: var(--ink-500); font-weight: 700; margin-left: 4px; }
.pricebox__ht { font-size: .82rem; color: var(--ink-400); margin: 4px 0 16px; }
.pricebox__unit { font-size: .82rem; color: var(--em-700); font-weight: 650; }

.pricelines { list-style: none; margin: 16px 0; padding: 16px 0 0; border-top: 1px dashed var(--ink-200); font-size: .86rem; }
.pricelines li { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 7px; color: var(--ink-500); }
.pricelines li span:last-child { color: var(--ink-800); font-weight: 650; white-space: nowrap; }
.pricelines li.is-total {
  border-top: 1px solid var(--ink-100); margin-top: 11px; padding-top: 11px;
  color: var(--ink-900); font-weight: 800;
}

.pricebox__foot { padding: 0 20px 20px; }
.pricebox__meta { font-size: .78rem; color: var(--ink-400); text-align: center; margin: 12px 0 0; }
.pricebox__meta code { background: var(--ink-50); padding: 1px 5px; border-radius: 4px; font-size: .95em; }

.qty-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.qty-table th, .qty-table td { padding: 9px 10px; text-align: left; border-bottom: 1px solid var(--ink-100); }
.qty-table th { font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-400); }
.qty-table tbody tr { cursor: pointer; transition: background .12s var(--ease); }
.qty-table tbody tr:hover { background: var(--em-50); }
.qty-table tbody tr.is-active { background: var(--em-50); box-shadow: inset 3px 0 0 var(--em-600); }
.qty-table td:last-child, .qty-table th:last-child { text-align: right; font-weight: 700; color: var(--ink-900); }

/* ==========================================================================
   Onglets & accordéon
   ========================================================================== */

.tabs { display: flex; gap: 3px; border-bottom: 1.5px solid var(--ink-100); margin-bottom: 26px; overflow-x: auto; }
.tab {
  padding: 12px 18px; background: none; border: 0; border-bottom: 3px solid transparent;
  font-family: var(--font); font-size: .92rem; font-weight: 650; color: var(--ink-500);
  cursor: pointer; white-space: nowrap; margin-bottom: -1.5px;
}
.tab:hover { color: var(--em-700); }
.tab.is-active { color: var(--em-700); border-bottom-color: var(--em-600); }
.tabpanel { display: none; }
.tabpanel.is-active { display: block; animation: fade .25s var(--ease); }
@keyframes fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

.accordion { border: 1px solid var(--ink-100); border-radius: var(--radius); overflow: hidden; }
.accordion + .accordion { margin-top: 10px; }
.accordion summary {
  padding: 16px 20px; cursor: pointer; list-style: none;
  font-weight: 650; color: var(--ink-800); font-size: .96rem;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  background: var(--white);
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after {
  content: "+"; font-size: 1.3rem; color: var(--em-600); font-weight: 400; line-height: 1;
}
.accordion[open] summary::after { content: "–"; }
.accordion[open] summary { background: var(--em-50); color: var(--em-800); }
.accordion__body { padding: 16px 20px 20px; font-size: .93rem; color: var(--ink-600); }
.accordion__body p:last-child { margin-bottom: 0; }

/* ==========================================================================
   Tableaux d'infos
   ========================================================================== */

.table { width: 100%; border-collapse: collapse; font-size: .91rem; }
.table th, .table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--ink-100); }
.table thead th { background: var(--ink-50); font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-500); }
.table tbody tr:hover { background: var(--ink-50); }

/* ==========================================================================
   Encadrés
   ========================================================================== */

.note {
  border-left: 4px solid var(--em-500);
  background: var(--em-50);
  padding: 16px 18px; border-radius: 0 var(--radius) var(--radius) 0;
  font-size: .91rem; color: var(--em-900);
}
.note--gold { border-color: var(--or-400); background: var(--or-50); color: var(--or-700); }
.note strong { color: inherit; }

.cta-band {
  background: linear-gradient(125deg, var(--ink-800), var(--ink-900));
  color: var(--ink-200); border-radius: var(--radius-xl);
  padding: 40px; display: flex; align-items: center; justify-content: space-between; gap: 30px;
}
.cta-band h2 { color: var(--white); margin-bottom: .3em; }
.cta-band p { margin: 0; color: var(--ink-300); }

/* ==========================================================================
   Footer
   ========================================================================== */

.footer { background: var(--ink-900); color: var(--ink-300); padding: 56px 0 0; font-size: .89rem; }
.footer h4 { color: var(--white); font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 1.1em; }
.footer a { color: var(--ink-300); }
.footer a:hover { color: var(--em-300); }
.footer__grid { display: grid; grid-template-columns: 1.45fr 1fr 1fr 1fr 1.3fr; gap: 34px; padding-bottom: 44px; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: 8px; }
.footer__about p { color: var(--ink-400); font-size: .87rem; }
.footer__contact { list-style: none; padding: 0; }
.footer__contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer__contact svg { width: 17px; height: 17px; color: var(--em-400); flex: none; margin-top: 3px; }

.newsletter { display: flex; gap: 8px; margin-top: 12px; }
.newsletter input { background: var(--ink-800); border-color: var(--ink-700); color: var(--white); }
.newsletter input::placeholder { color: var(--ink-500); }

.paylist { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 14px; }
.paylist span {
  background: var(--ink-800); border: 1px solid var(--ink-700);
  border-radius: 5px; padding: 5px 9px; font-size: .72rem; font-weight: 650; color: var(--ink-300);
}

.footer__bottom {
  border-top: 1px solid var(--ink-800); padding: 18px 0 26px;
  display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap;
  font-size: .82rem; color: var(--ink-500);
}
.footer__legal { display: flex; gap: 18px; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
.footer__legal li { margin: 0; }
.socials { display: flex; gap: 8px; }
.socials a {
  width: 32px; height: 32px; border-radius: 8px; background: var(--ink-800);
  display: grid; place-items: center; color: var(--ink-300);
}
.socials a:hover { background: var(--em-600); color: var(--white); }
.socials svg { width: 16px; height: 16px; }

/* ==========================================================================
   Utilitaires d'impression / démo
   ========================================================================== */

.demo-flag {
  position: fixed; bottom: 16px; left: 16px; z-index: 90;
  background: var(--ink-900); color: var(--white);
  border-radius: 100px; padding: 9px 16px; font-size: .78rem; font-weight: 650;
  box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 8px;
}
.demo-flag span { width: 8px; height: 8px; border-radius: 50%; background: var(--gold-500); }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1080px) {
  .configurator { grid-template-columns: 1fr; }
  .pricebox { position: static; }
  .footer__grid { grid-template-columns: 1fr 1fr 1fr; }
  .grid-5 { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 1080px) {
  .quickbar { grid-template-columns: 1fr 1fr; margin-top: -20px; }
  .quickbar__label { grid-column: 1 / -1; padding-bottom: 0; }
}

@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; padding: 46px 0 54px; }
  .slide__inner { grid-template-columns: 1fr; padding: 40px 0 56px; text-align: center; }
  .slide__art { order: -1; }
  .slide__art svg { max-width: 300px; }
  .slide__cta { justify-content: center; }
  .slide__text { margin-inline: auto; }
  .slider__arrow { display: none; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .usp-bar__list { grid-template-columns: repeat(2, 1fr); }
  .search { display: none; }
  .cta-band { flex-direction: column; text-align: center; padding: 32px 24px; }
}

@media (max-width: 720px) {
  .topbar__list li:not(:first-child) { display: none; }
  .burger { display: block; }
  .nav { display: none; }
  .nav.is-open { display: block; }
  .nav__list { flex-direction: column; }
  .nav__link { border-bottom: 1px solid var(--ink-100); border-left: 3px solid transparent; }
  .megamenu { position: static; min-width: 0; box-shadow: none; border: 0; grid-template-columns: 1fr 1fr; opacity: 1; visibility: visible; transform: none; display: none; padding: 10px 18px 18px; }
  .nav__item.is-open .megamenu { display: grid; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .section { padding: 46px 0; }
}

@media (max-width: 520px) {
  .grid-2, .grid-3, .grid-4, .grid-5 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .usp-bar__list { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .hero__cta .btn { width: 100%; }
  .optiongrid { grid-template-columns: repeat(2, 1fr); }
}

/* ==========================================================================
   Catalogue étendu — composants ajoutés avec la reprise 24hprint
   ========================================================================== */

/* --- Bandeau de remise --- */
.promoband {
  background: var(--or-500); color: #3B2A05;
  text-align: center; font-size: .88rem; font-weight: 650;
  letter-spacing: .01em;
}
.promoband .container { padding-block: 9px; }
.promoband:empty { display: none; }

/* --- Méga-menu large (13 catégories) --- */
.megamenu--wide {
  min-width: min(980px, 92vw);
  grid-template-columns: repeat(4, 1fr);
  gap: 4px 24px;
  max-height: 72vh; overflow-y: auto;
}
.megamenu h4 a { color: var(--ink-800); }
.megamenu h4 a:hover { color: var(--em-600); }

/* --- Résultats de recherche --- */
.search { position: relative; }
.search__results {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 80;
  background: var(--white); border: 1px solid var(--ink-100);
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
  overflow: hidden; max-height: 60vh; overflow-y: auto;
}
.search__results a {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 10px 14px; font-size: .89rem; color: var(--ink-700);
  border-bottom: 1px solid var(--ink-100);
}
.search__results a:last-child { border-bottom: 0; }
.search__results a:hover { background: var(--em-50); color: var(--em-700); }
.search__results em { font-style: normal; font-weight: 700; color: var(--ink-900); white-space: nowrap; }

/* --- Bloc prix avec prix barré --- */
.price { margin: 0; line-height: 1.3; }
.price__row { display: flex; align-items: baseline; gap: 6px; white-space: nowrap; }
.price__label { display: block; font-size: .74rem; color: var(--ink-400); }
.price__old {
  font-size: .82rem; color: var(--ink-400); text-decoration-thickness: 1.5px;
  margin-right: 6px;
}
.price__now {
  font-family: var(--font-display); font-size: 1.22rem; font-weight: 800;
  color: var(--ink-900);
}
.price__qty { display: block; font-size: .72rem; color: var(--ink-400); }
.price--sm .price__now { font-size: 1.05rem; }

/* --- Filtres catalogue --- */
.filterbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
}
.filterbar .flex { gap: 8px; }

/* --- Puces de sous-catégories --- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 13px; border-radius: 100px;
  background: var(--white); border: 1px solid var(--ink-200);
  font-size: .84rem; font-weight: 600; color: var(--ink-700);
}
.chip:hover { border-color: var(--em-400); color: var(--em-700); background: var(--em-50); }
.chip--active { background: var(--ink-900); color: var(--white); border-color: var(--ink-900); }
.chip em { font-style: normal; font-size: .74rem; opacity: .6; }

/* --- Sections de sous-catégorie --- */
.subsection { padding: 26px 0 8px; }
.subsection + .subsection { border-top: 1px solid var(--ink-100); }
.subsection__head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 14px; margin-bottom: 18px;
}
.subsection__head h2 { margin: 0; font-size: 1.35rem; }

/* --- Encart prix : remise --- */
.pricebox__old { font-size: .86rem; margin-bottom: 4px; }
.pricebox__old s { color: var(--ink-400); margin-right: 8px; }
.pricebox__save { color: var(--or-700); font-weight: 700; }
.pricelines li.is-discount span:last-child { color: var(--or-700); }
.qty-table td.is-old { color: var(--ink-400); font-weight: 500; }
.qty-table th:nth-child(2), .qty-table td:nth-child(2),
.qty-table th:nth-child(3), .qty-table td:nth-child(3) { text-align: right; }

/* --- Barre devis express : libellé prix --- */
.quickbar__from { display: block; font-size: .72rem; color: var(--ink-400); }
.quickbar__price s { color: var(--ink-400); font-size: .9rem; margin-right: 5px; }
.quickbar__price strong { display: inline; font-size: 1.18rem; }

/* --- Badges empilés sur la fiche produit --- */
.pagehead .badge { margin: 0; }

@media (max-width: 1080px) {
  .megamenu--wide { grid-template-columns: repeat(2, 1fr); min-width: min(640px, 92vw); }
}
@media (max-width: 720px) {
  .megamenu--wide { grid-template-columns: 1fr 1fr; min-width: 0; max-height: none; }
}

/* ==========================================================================
   Fenêtre de demande de devis
   ========================================================================== */

.modal {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-items: center; padding: 20px;
  opacity: 0; transition: opacity .2s var(--ease);
}
.modal.is-on { opacity: 1; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(22,36,47,.62); backdrop-filter: blur(2px); }
.modal__box {
  position: relative; z-index: 1;
  width: 100%; max-width: 560px; max-height: 92vh; overflow-y: auto;
  background: var(--white); border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  transform: translateY(14px); transition: transform .22s var(--ease);
}
.modal.is-on .modal__box { transform: none; }
.modal__body { padding: 30px; }
.modal__body h2 { margin-bottom: .6em; }
.modal__close {
  position: absolute; top: 12px; right: 14px; z-index: 2;
  width: 34px; height: 34px; border: 0; border-radius: 50%;
  background: var(--ink-50); color: var(--ink-600);
  font-size: 1.3rem; line-height: 1; cursor: pointer;
}
.modal__close:hover { background: var(--em-50); color: var(--em-700); }

.quotesum {
  background: var(--ink-50); border-radius: var(--radius);
  padding: 15px 17px; margin-bottom: 20px;
}
.quotesum b { display: block; font-family: var(--font-display); color: var(--ink-900); font-size: 1.02rem; }
.quotesum span { display: block; font-size: .84rem; color: var(--ink-500); margin-top: 2px; }
.quotesum__price { margin-top: 10px; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.quotesum__price s { color: var(--ink-400); font-size: .9rem; }
.quotesum__price strong { font-family: var(--font-display); font-size: 1.5rem; color: var(--ink-900); }
.quotesum__price em { font-style: normal; font-size: .78rem; color: var(--ink-500); }

.quotedone { text-align: center; padding: 12px 0; }
.quotedone__check {
  width: 58px; height: 58px; margin: 0 auto 16px; border-radius: 50%;
  background: var(--em-50); color: var(--em-600);
  display: grid; place-items: center; font-size: 1.9rem; font-weight: 700;
}
.quotedone__price {
  font-family: var(--font-display); font-size: 1.5rem; font-weight: 800;
  color: var(--em-700); margin: 6px 0 12px;
}

@media (max-width: 560px) {
  .modal__body { padding: 24px 18px; }
}

/* ==========================================================================
   Boutique : panier, tunnel de commande, espace client
   ========================================================================== */

.badge--ok   { background: var(--em-50); color: var(--em-700); }
.badge--warn { background: var(--or-100); color: var(--or-700); }

.cartbadge {
  position: absolute; transform: translate(13px, -10px);
  background: var(--em-600); color: var(--white);
  font-size: .64rem; font-weight: 800; line-height: 1.6;
  min-width: 17px; text-align: center; border-radius: 100px; padding: 0 5px;
}
.iconbtn--cart { position: relative; }

.emptybox {
  text-align: center; background: var(--white); border: 1px solid var(--ink-100);
  border-radius: var(--radius-lg); padding: 54px 24px;
}
.emptybox h2 { margin: 0 0 8px; }
.emptybox p { margin: 0 0 20px; }

/* --- Panier --- */
.cartgrid { display: grid; grid-template-columns: 1fr 340px; gap: 26px; align-items: start; }
.cartlist { display: grid; gap: 12px; }

.cartline {
  display: grid; grid-template-columns: 108px 1fr auto; gap: 18px; align-items: center;
  background: var(--white); border: 1px solid var(--ink-100);
  border-radius: var(--radius-lg); padding: 14px 18px;
}
.cartline__img {
  background: var(--tint-1); border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 4 / 3; display: grid; place-items: center;
}
.cartline__img svg { width: 100%; height: 100%; }
.cartline__main h3 { margin: 0 0 4px; font-size: 1.02rem; }
.cartline__cfg { margin: 0; font-size: .84rem; color: var(--ink-500); }
.cartline__qty { margin: 3px 0 0; font-size: .84rem; font-weight: 650; color: var(--ink-700); }
.cartline__acts { display: flex; gap: 14px; margin-top: 8px; }
.cartline__acts a, .cartline__acts button {
  background: none; border: 0; padding: 0; cursor: pointer;
  font: inherit; font-size: .82rem; font-weight: 650; color: var(--em-700);
  text-decoration: underline; text-underline-offset: 3px;
}
.cartline__acts button { color: var(--ink-500); }
.cartline__price { text-align: right; display: grid; gap: 2px; min-width: 120px; }
.cartline__price s { color: var(--ink-400); font-size: .82rem; }
.cartline__price strong { font-family: var(--font-display); font-size: 1.24rem; color: var(--ink-900); }
.cartline__price em { font-style: normal; font-size: .76rem; color: var(--ink-500); }
.skel { color: var(--ink-400); font-size: .84rem; }

.cartsum {
  background: var(--white); border: 1px solid var(--ink-100);
  border-radius: var(--radius-lg); padding: 20px 22px; position: sticky; top: 16px;
}
.cartsum h3 { margin: 0 0 14px; font-size: 1.06rem; }
.cartsum__items { list-style: none; margin: 0 0 12px; padding: 0 0 12px;
  border-bottom: 1px dashed var(--ink-100); display: grid; gap: 9px; }
.cartsum__items li { display: flex; justify-content: space-between; gap: 12px; font-size: .86rem; }
.cartsum__items em { display: block; font-style: normal; font-size: .78rem; color: var(--ink-500); }
.cartsum__lines { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 8px; }
.cartsum__lines li { display: flex; justify-content: space-between; gap: 12px; font-size: .9rem; color: var(--ink-700); }
.cartsum__lines .is-discount { color: var(--or-700); font-weight: 650; }
.cartsum__lines .is-small { font-size: .78rem; color: var(--ink-500); }
.cartsum__lines .is-total {
  border-top: 1px solid var(--ink-100); margin-top: 6px; padding-top: 12px;
  font-family: var(--font-display); font-size: 1.16rem; color: var(--ink-900); font-weight: 800;
}
.cartsum__note { font-size: .78rem; color: var(--ink-500); margin: 12px 0 0; }

/* --- Tunnel de commande --- */
.checkout { display: grid; grid-template-columns: 1fr 340px; gap: 26px; align-items: start; }
.checkout__main { display: grid; gap: 18px; }

.cbox {
  background: var(--white); border: 1px solid var(--ink-100);
  border-radius: var(--radius-lg); padding: 22px 24px;
}
.cbox h2 { display: flex; align-items: center; gap: 12px; margin: 0 0 18px; font-size: 1.14rem; }
.cbox__n {
  width: 28px; height: 28px; border-radius: 50%; flex: none;
  background: var(--em-600); color: var(--white);
  display: grid; place-items: center; font-size: .92rem; font-weight: 800;
}

.idcard {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  background: var(--tint-1); border-radius: var(--radius); padding: 14px 16px; font-size: .92rem;
}
.idcard--col { display: grid; gap: 3px; text-align: left; margin-bottom: 14px; }
.idcard--col span { font-size: .84rem; }

.checkout .tabs { gap: 4px; margin-bottom: 20px; }
.checkout .tabs button {
  padding: 10px 14px; background: none; border: 0; border-bottom: 3px solid transparent;
  font: inherit; font-size: .88rem; font-weight: 650; color: var(--ink-500);
  cursor: pointer; margin-bottom: -1.5px; white-space: nowrap;
}
.checkout .tabs button.is-on { color: var(--em-700); border-bottom-color: var(--em-600); }

.paychoice { display: grid; gap: 10px; margin-bottom: 6px; }
.option--pay .option__box { flex-direction: row; align-items: center; gap: 12px; }
.paydetail p { margin: 4px 0 16px; font-size: .86rem; }
.paynote { margin: 10px 0 0; font-size: .82rem; }

.link {
  color: var(--em-700); font-weight: 650; font-size: .88rem;
  text-decoration: underline; text-underline-offset: 3px;
}

.quotedone--page { max-width: 620px; margin: 0 auto; }
.quotedone--page h1 { margin: 0 0 10px; }
.quotedone__acts { display: flex; gap: 12px; justify-content: center; margin-top: 22px; flex-wrap: wrap; }

/* --- Espace client --- */
.authgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: start; }
.authbox {
  background: var(--white); border: 1px solid var(--ink-100);
  border-radius: var(--radius-lg); padding: 26px 28px; max-width: 560px;
}
.authbox--alt { background: var(--tint-1); }
.authbox h1, .authbox h2 { margin: 0 0 16px; font-size: 1.24rem; }

.acct { display: grid; grid-template-columns: 260px 1fr; gap: 26px; align-items: start; }
.acct--rev { grid-template-columns: 1fr 340px; }
.acct__side {
  background: var(--white); border: 1px solid var(--ink-100);
  border-radius: var(--radius-lg); padding: 18px; position: sticky; top: 16px;
}
.acct__main { min-width: 0; }
.acct__main h1 { margin: 0 0 18px; }
.acct .cartsum { position: static; }

.otable { width: 100%; border-collapse: collapse; background: var(--white);
  border: 1px solid var(--ink-100); border-radius: var(--radius-lg); overflow: hidden; }
.otable th, .otable td { padding: 12px 14px; text-align: left; font-size: .88rem;
  border-bottom: 1px solid var(--ink-100); vertical-align: middle; }
.otable th { background: var(--tint-1); font-size: .76rem; text-transform: uppercase;
  letter-spacing: .05em; color: var(--ink-600); }
.otable tr:last-child td { border-bottom: 0; }
.otable .ta-r { text-align: right; }
.otable__prod { color: var(--ink-500); max-width: 300px; }

.filelist { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.filelist li {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  background: var(--tint-1); border-radius: var(--radius); padding: 10px 14px; font-size: .86rem;
}
.filelist__n { font-weight: 650; color: var(--ink-800); flex: 1 1 200px; }

.upload { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 16px 0 6px; }
.upload input[type=file] { position: absolute; left: -9999px; }
.upload label {
  display: inline-flex; align-items: center; padding: 10px 16px; cursor: pointer;
  border: 1.5px dashed var(--ink-200); border-radius: var(--radius);
  font-size: .88rem; font-weight: 650; color: var(--ink-700);
}
.upload label:hover { border-color: var(--em-600); color: var(--em-700); }
.upload__state { font-size: .82rem; color: var(--ink-500); }

.batbox {
  margin-top: 22px; background: var(--or-50);
  border: 1.5px solid var(--gold-500); border-radius: var(--radius-lg); padding: 22px 24px;
}
.batbox h2 { margin: 0 0 8px; font-size: 1.1rem; }
.batbox p { font-size: .9rem; }
.batbox__acts { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 12px; }

.timeline {
  background: var(--white); border: 1px solid var(--ink-100);
  border-radius: var(--radius-lg); padding: 18px 20px; margin-top: 16px;
}
.timeline h3 { margin: 0 0 12px; font-size: 1rem; }
.timeline ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.timeline li { font-size: .84rem; color: var(--ink-600); }
.timeline b { color: var(--ink-900); margin-right: 6px; }

.toast {
  position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 20px);
  background: var(--ink-900); color: var(--white);
  padding: 13px 22px; border-radius: 100px; font-size: .9rem; font-weight: 650;
  box-shadow: 0 14px 34px rgba(0,0,0,.24); z-index: 90;
  opacity: 0; transition: opacity .22s var(--ease), transform .22s var(--ease);
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 980px) {
  .cartgrid, .checkout, .acct, .authgrid { grid-template-columns: 1fr; }
  .acct__side, .cartsum { position: static; }
}
@media (max-width: 620px) {
  .cartline { grid-template-columns: 76px 1fr; }
  .cartline__price { grid-column: 1 / -1; text-align: left; }
  .otable__prod { display: none; }
}

/* --------------------------------------------------------------------------
   Contenu servi par le serveur avant que le JavaScript prenne le relais.
   Visible tel quel pour un robot ou un navigateur sans script ; retiré ou
   remplacé dès que le catalogue interactif est prêt.
   -------------------------------------------------------------------------- */

.seo-list { list-style: none; margin: 18px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px 22px; }
.seo-list li { font-size: .9rem; }
.seo-list a { font-weight: 650; color: var(--em-700); }
.seo-list span { display: block; font-size: .8rem; color: var(--ink-500); }

.seo-summary { background: var(--white); border: 1px solid var(--ink-100);
  border-radius: var(--radius-lg); padding: 22px 24px; }

/* --------------------------------------------------------------------------
   Photos produits
   Une photo remplace l'illustration vectorielle partout où elle existe ;
   les deux occupent exactement la même place, donc rien ne bouge quand on
   photographie le catalogue produit par produit.
   -------------------------------------------------------------------------- */

.pmedia { display: block; width: 100%; height: 100%; object-fit: cover; }
.card__media .pmedia, .pcard__media .pmedia { aspect-ratio: 4 / 3; }
.cartline__img .pmedia { aspect-ratio: 4 / 3; }

.gallery { display: grid; grid-template-columns: 88px minmax(0, 620px); gap: 14px;
  margin-bottom: 26px; justify-content: start; }
.gallery__main {
  grid-column: 2; grid-row: 1;
  background: var(--tint-1); border: 1px solid var(--ink-100);
  border-radius: var(--radius-lg); overflow: hidden;
  aspect-ratio: 4 / 3; max-height: 460px;
}
/* « contain » plutôt que « cover » : sur un imprimé, une coupe change le
   produit. On préfère une marge autour qu'une photo rognée. */
.gallery__main img { display: block; width: 100%; height: 100%; object-fit: contain; }
.gallery__thumbs { grid-column: 1; grid-row: 1; display: grid; gap: 10px; align-content: start; }
.gallery__thumb {
  padding: 0; border: 1.5px solid var(--ink-100); border-radius: var(--radius);
  background: var(--white); cursor: pointer; overflow: hidden; line-height: 0;
}
.gallery__thumb img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.gallery__thumb:hover { border-color: var(--em-300); }
.gallery__thumb.is-on { border-color: var(--em-600); box-shadow: 0 0 0 2px var(--em-50); }

@media (max-width: 720px) {
  .gallery { grid-template-columns: 1fr; }
  .gallery__main { grid-column: 1; grid-row: 1; }
  .gallery__thumbs { grid-column: 1; grid-row: 2; grid-auto-flow: column; grid-auto-columns: 72px; overflow-x: auto; }
}
