/* ==========================================================================
   DIGITALPRINT — Feuille de style du thème
   Charte reprise de la maquette validée : blanc, jaune DM Print, encre.
   Pour reskinner tout le site, il suffit de modifier le bloc :root ci-dessous.
   ========================================================================== */

:root {
  /* Couleurs de la marque — jaune du logo DM Print, et ses trois derives */
  --brand:      #FAB315;   /* jaune principal — fonds de boutons, accents */
  --brand-600:  #E39E06;   /* jaune fonce — survol des boutons */
  --brand-700:  #8F6600;   /* ocre — pour le TEXTE en jaune (5,2:1 sur blanc) */
  --brand-soft: #FEF4D7;   /* jaune tres clair — fonds de tuiles */
  --ink:        #14130F;   /* texte principal, presque noir */
  --black:      #0B0B0A;   /* barres noires haut et bas */
  --white:      #FFFFFF;
  --bg:         #F5F4F1;   /* fond de page, gris très clair */
  --line:       #E7E6E2;   /* traits et bordures */
  --muted:      #6D6B64;   /* texte secondaire */
  --green:      #1E9E5A;   /* validation, « en stock » */
  --red:        #C4362B;   /* erreurs */

  /* Typographie — SF Pro sur les appareils Apple (rendu natif par le systeme),
     Inter ailleurs : c'est la police libre la plus proche de SF.
     SF Pro ne peut pas etre hebergee sur un serveur web, sa licence Apple
     l'interdit. La pile ci-dessous est la methode legale pour l'obtenir. */
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display",
                  "Segoe UI", "Inter", system-ui, sans-serif;
  --font-body:    -apple-system, BlinkMacSystemFont, "SF Pro Text",
                  "Segoe UI", "Inter", system-ui, sans-serif;

  --maxw: 1240px;

  /* Rayons — trois valeurs, pas quatorze. Le site etait passe de 4 a 20px
     au hasard des sections ; une echelle courte suffit et se voit. */
  --radius-sm: 8px;
  --radius:    12px;   /* valeur historique, conservee comme rayon moyen */
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-pill: 999px;

  /* Ombres — deux niveaux. Au-dela, l'interface devient molle. */
  --shadow-sm: 0 1px 2px rgba(20,19,15,.06);
  --shadow-md: 0 12px 28px -16px rgba(20,19,15,.28);

  /* Espacements — echelle de 4, la seule regle qui empeche le 11px et le 22px
     choisis a l'oeil section par section. */
  --space-2xs: 4px;
  --space-xs:  8px;
  --space-sm:  12px;
  --space-md:  20px;
  --space-lg:  32px;
  --space-xl:  56px;
  --space-2xl: 88px;

  /* Typographie — une echelle nommee, au lieu d'un clamp() par titre.
     Les prix ont leur propre niveau : c'est l'information la plus lue
     d'un site marchand, elle merite mieux qu'un font-size au cas par cas. */
  --fs-display: clamp(34px, 5vw, 58px);
  --fs-h1:      clamp(28px, 3.8vw, 44px);
  --fs-h2:      clamp(21px, 2.5vw, 30px);
  --fs-h3:      clamp(17px, 1.6vw, 20px);
  --fs-body:    16px;
  --fs-small:   14px;
  --fs-label:   12px;
  --fs-price:   clamp(20px, 2vw, 26px);

  --lh-tight: 1.12;
  --lh-snug:  1.35;
  --lh-body:  1.6;

  --ls-tight: -.025em;
  --ls-label: .09em;

  /* Jetons de l'espace client et du configurateur.
     Ils vivaient dans deux blocs locaux — .woocommerce-account et .dp-cfg —
     chacun avec sa propre copie, dont un second jaune (#FFC400) different de
     celui du logo. Poses ici, ils valent partout et n'ont qu'une source. */
  --acc-surface:  var(--white);
  --acc-surface2: var(--bg);
  --acc-ink:      var(--ink);
  --acc-soft:     #4A473C;
  --acc-muted:    var(--muted);
  --acc-line:     var(--line);
  --acc-line2:    var(--line);
  --acc-accent:   var(--brand);
  --acc-deep:     var(--brand-600);
  --acc-ok:       var(--green);      --acc-ok-bg:   #E4F2EA;
  --acc-warn:     var(--brand-700);  --acc-warn-bg: var(--brand-soft);
  --acc-crit:     var(--red);        --acc-crit-bg: #F8E4E0;
  --acc-shadow:   var(--shadow-sm), var(--shadow-md);
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

h1, h2, h3 { font-family: var(--font-display); line-height: 1.1; letter-spacing: -0.01em; }

:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

.section { padding: 56px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 36px; }
.section-head .kicker {
  font-family: var(--font-display); font-weight: 700; font-size: 13px;
  text-transform: uppercase; letter-spacing: 0.12em; color: var(--brand-700);
}
.section-head h2 { font-size: clamp(26px, 4vw, 38px); font-weight: 800; margin: 8px 0 10px; }
.section-head p { color: var(--muted); font-size: 16px; }

.screen-reader-text {
  position: absolute !important; width: 1px; height: 1px;
  overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}

/* --------------------------------------------------------------------------
   Boutons
   -------------------------------------------------------------------------- */

.btn,
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button,
.woocommerce #respond input#submit, .woocommerce a.button.alt, .woocommerce button.button.alt {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-display); font-weight: 700; font-size: 15px;
  padding: 13px 24px; border-radius: 999px; border: 2px solid transparent;
  background: var(--brand); color: var(--ink);
  transition: all .15s ease;
}
.btn-primary { background: var(--brand); color: var(--ink); }
.btn-primary:hover,
.woocommerce a.button:hover, .woocommerce button.button:hover,
.woocommerce input.button:hover, .woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover { background: var(--brand-600); color: var(--ink); }

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

.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--white); }

.btn-ghost-light { background: transparent; color: var(--white); border-color: rgba(255,255,255,.5); }
.btn-ghost-light:hover { background: var(--white); color: var(--ink); border-color: var(--white); }

.btn-block { width: 100%; }

/* --------------------------------------------------------------------------
   Barre utilitaire
   -------------------------------------------------------------------------- */

.topbar { background: var(--black); color: #EDEDEA; font-size: 13px; }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 40px; gap: 12px; }
.topbar .left, .topbar .right { display: flex; align-items: center; gap: 18px; }
.topbar a { color: #EDEDEA; opacity: .85; transition: opacity .15s; }
.topbar a:hover { opacity: 1; color: var(--brand); }
.topbar .pill {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(250,179,21,.15); color: var(--brand);
  padding: 4px 10px; border-radius: 999px; font-weight: 600;
}
@media (max-width: 860px) { .topbar .right .hide-sm { display: none; } }
@media (max-width: 600px) { .topbar .left .hide-xs { display: none; } }

/* --------------------------------------------------------------------------
   En-tête
   -------------------------------------------------------------------------- */

.header { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 60; }
.header .wrap { display: flex; align-items: center; gap: 24px; min-height: 84px; }
.brand-logo img { height: 46px; width: auto; }
.brand-logo .text-logo {
  font-family: var(--font-display); font-weight: 800; font-size: 22px; letter-spacing: -0.02em;
}
.brand-logo .text-logo span { color: var(--brand-700); }

.header .search {
  flex: 1; display: flex; align-items: stretch;
  border: 2px solid var(--ink); border-radius: 999px; overflow: hidden; max-width: 620px;
}
.header .search select {
  border: none; background: var(--bg); padding: 0 14px; font-family: var(--font-body);
  font-size: 14px; color: var(--ink); cursor: pointer; border-right: 1px solid var(--line);
}
.header .search input { flex: 1; border: none; padding: 12px 16px; font-size: 15px; outline: none; min-width: 60px; }
.header .search button {
  background: var(--brand); border: none; padding: 0 22px; display: grid; place-items: center;
  transition: background .15s; border-radius: 0;
}
.header .search button:hover { background: var(--brand-600); }

.header-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.icon-link { display: flex; align-items: center; gap: 9px; padding: 8px 12px; border-radius: 10px; transition: background .15s; }
.icon-link:hover { background: var(--bg); }
.icon-link .lines { display: flex; flex-direction: column; line-height: 1.15; }
.icon-link .lines small { font-size: 11px; color: var(--muted); }
.icon-link .lines b { font-family: var(--font-display); font-size: 14px; }
.cart-badge {
  background: var(--brand); color: var(--ink); font-family: var(--font-display); font-weight: 700;
  font-size: 11px; min-width: 19px; height: 19px; border-radius: 999px; display: grid;
  place-items: center; padding: 0 5px; margin-left: -4px; margin-top: -14px;
}
.burger { display: none; background: none; border: none; padding: 8px; }

@media (max-width: 920px) {
  .header .search { display: none; }
  .header .wrap { min-height: 70px; gap: 12px; }
  .icon-link .lines { display: none; }
  .burger { display: block; }
}

/* --------------------------------------------------------------------------
   Menu des catégories
   -------------------------------------------------------------------------- */

.mainnav { background: var(--ink); }
.mainnav .wrap { display: flex; align-items: center; gap: 4px; min-height: 50px; overflow-x: auto; }
.mainnav ul { display: flex; align-items: center; gap: 4px; list-style: none; }
.mainnav a {
  display: block; color: #F2F1ED; font-family: var(--font-display); font-weight: 600; font-size: 14px;
  padding: 8px 14px; border-radius: 8px; white-space: nowrap; transition: all .15s;
}
.mainnav a:hover, .mainnav .current-menu-item > a { background: rgba(255,255,255,.08); color: var(--brand); }
.mainnav a.promo { color: var(--ink); background: var(--brand); }
.mainnav a.promo:hover { background: var(--brand-600); color: var(--ink); }
.mainnav::-webkit-scrollbar { height: 0; }
@media (max-width: 920px) { .mainnav { display: none; } }

.mobile-nav { display: none; background: var(--ink); padding: 8px 0; }
.mobile-nav.open { display: block; }
.mobile-nav ul { list-style: none; }
.mobile-nav a {
  display: block; color: #F2F1ED; font-family: var(--font-display); font-weight: 600;
  padding: 11px 20px; border-bottom: 1px solid rgba(255,255,255,.06);
}
.mobile-nav a:hover { color: var(--brand); }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero { background: var(--ink); color: var(--white); overflow: hidden; position: relative; }
.hero .wrap {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center;
  padding-top: 56px; padding-bottom: 56px;
}
.hero .eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-weight: 700; font-size: 13px;
  text-transform: uppercase; letter-spacing: 0.1em; color: var(--brand); margin-bottom: 16px;
}
.hero h1 { font-size: clamp(34px, 5.2vw, 58px); font-weight: 800; margin-bottom: 18px; }
.hero h1 .hl { color: var(--brand); }
.hero p.lead { font-size: 18px; color: #CFCEC8; max-width: 48ch; margin-bottom: 28px; }
.hero .cta-row { display: flex; gap: 14px; flex-wrap: wrap; }
.hero .trust { margin-top: 26px; display: flex; gap: 22px; flex-wrap: wrap; color: #BFBEB8; font-size: 14px; }
.hero .trust b { color: var(--brand); font-family: var(--font-display); }
.hero::after {
  content: ""; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(250,179,21,.18), transparent 70%); pointer-events: none;
}
.hero-media img { border-radius: 18px; box-shadow: 0 30px 60px rgba(0,0,0,.35); }

@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 32px; }
}

/* --------------------------------------------------------------------------
   Bandeau avantages
   -------------------------------------------------------------------------- */

.perks { background: var(--white); border-bottom: 1px solid var(--line); }
.perks .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 26px 20px; }
.perk { display: flex; align-items: center; gap: 14px; }
.perk .ico {
  width: 46px; height: 46px; border-radius: 12px; background: var(--brand-soft);
  display: grid; place-items: center; flex-shrink: 0; color: var(--ink);
}
.perk b { font-family: var(--font-display); font-size: 15px; display: block; }
.perk span { font-size: 13px; color: var(--muted); }
@media (max-width: 860px) { .perks .wrap { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .perks .wrap { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   CARROUSEL DE BANNIÈRES — milieu de la page d'accueil
   Images téléversées depuis l'admin. Défilement auto + flèches + pastilles.
   -------------------------------------------------------------------------- */

.carousel { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--white); }

.carousel__track {
  display: flex;
  transition: transform .5s cubic-bezier(.4, 0, .2, 1);
}

.carousel__slide { min-width: 100%; position: relative; }
.carousel__slide picture { display: block; }

/* Ratios d'affichage. L'image est recadree au centre pour remplir la zone :
   garde donc le texte important au milieu de ta bannière.
   Ordinateur  1920 × 640  (3:1)
   Tablette    1200 × 600  (2:1)
   Mobile       800 × 800  (1:1) — ou une image mobile dediee */
.carousel__slide img {
  width: 100%;
  aspect-ratio: 3 / 1;
  object-fit: cover;
  object-position: center;
}

@media (max-width: 1023px) {
  .carousel__slide img { aspect-ratio: 2 / 1; }
}

@media (max-width: 600px) {
  .carousel__slide img { aspect-ratio: 1 / 1; }
}

/* Version pleine largeur, en haut de la page d'accueil */
.carousel--hero { border-radius: 0; }
.carousel--hero .carousel__caption { padding: 40px; }

@media (max-width: 600px) {
  .carousel--hero .carousel__arrow { width: 36px; height: 36px; font-size: 17px; }
  .carousel--hero .carousel__arrow--prev { left: 8px; }
  .carousel--hero .carousel__arrow--next { right: 8px; }
  .carousel--hero .carousel__caption { padding: 20px; }
}

/* Texte facultatif posé sur l'image */
.carousel__caption {
  position: absolute; inset: auto 0 0 0; padding: 28px;
  background: linear-gradient(to top, rgba(11,11,10,.85), transparent);
  color: var(--white);
}
.carousel__caption h3 { font-size: clamp(20px, 3vw, 30px); font-weight: 800; margin-bottom: 10px; }
.carousel__caption .btn { margin-top: 8px; }

/* Flèches */
.carousel__arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border: none; border-radius: 999px;
  background: rgba(255,255,255,.9); color: var(--ink);
  display: grid; place-items: center; font-size: 20px; line-height: 1;
  box-shadow: 0 4px 14px rgba(0,0,0,.18); transition: background .15s;
}
.carousel__arrow:hover { background: var(--brand); }
.carousel__arrow--prev { left: 16px; }
.carousel__arrow--next { right: 16px; }

/* Pastilles de navigation */
.carousel__dots { position: absolute; left: 0; right: 0; bottom: 14px; display: flex; justify-content: center; gap: 8px; }
.carousel__dot {
  width: 10px; height: 10px; border-radius: 999px; border: none;
  background: rgba(255,255,255,.55); transition: background .15s, width .15s;
}
.carousel__dot[aria-current="true"] { background: var(--brand); width: 26px; }

/* --------------------------------------------------------------------------
   Grille des catégories
   -------------------------------------------------------------------------- */

.cat-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
@media (max-width: 1000px) { .cat-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px)  { .cat-grid { grid-template-columns: repeat(2, 1fr); } }

.cat-card {
  display: block; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 16px; text-align: center; transition: all .18s ease;
}
.cat-card:hover { border-color: var(--brand); transform: translateY(-3px); box-shadow: 0 14px 28px rgba(0,0,0,.07); }
.cat-card .tile {
  width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 14px;
  background: var(--brand-soft); display: grid; place-items: center; color: var(--ink);
  overflow: hidden; transition: background .18s;
}
.cat-card .tile img { width: 100%; height: 100%; object-fit: cover; }
.cat-card:hover .tile { background: var(--brand); }
.cat-card b { font-family: var(--font-display); font-size: 15px; display: block; }
.cat-card span { font-size: 12px; color: var(--muted); }

/* --------------------------------------------------------------------------
   LE BLOC PRODUIT
   -------------------------------------------------------------------------- */

.prod-grid,
.woocommerce ul.products {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
  list-style: none; margin: 0; padding: 0;
}
.woocommerce ul.products::before, .woocommerce ul.products::after { content: none; }

@media (max-width: 1000px) { .prod-grid, .woocommerce ul.products { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px)  { .prod-grid, .woocommerce ul.products { grid-template-columns: 1fr; } }

.prod-card,
.woocommerce ul.products li.product {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: all .18s ease; display: flex; flex-direction: column;
  margin: 0 !important; width: auto !important; float: none !important; padding: 0;
}
.prod-card:hover,
.woocommerce ul.products li.product:hover { box-shadow: 0 16px 32px rgba(0,0,0,.08); transform: translateY(-3px); }

.prod-card .thumb {
  position: relative; display: block; aspect-ratio: 4/3; background: var(--brand-soft);
  display: grid; place-items: center; color: var(--ink); overflow: hidden;
}
.prod-card .thumb img { width: 100%; height: 100%; object-fit: cover; }

.prod-card .tag,
.woocommerce span.onsale {
  position: absolute; top: 10px; left: 10px; background: var(--ink); color: var(--white);
  font-family: var(--font-display); font-weight: 700; font-size: 11px; padding: 4px 10px;
  border-radius: 999px; margin: 0; min-height: 0; min-width: 0; line-height: 1.4;
}
.prod-card .tag.promo, .woocommerce span.onsale { background: var(--brand); color: var(--ink); }

.prod-card .body { padding: 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.prod-card .cat-label { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.prod-card h3,
.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-size: 17px; font-weight: 700; font-family: var(--font-display); padding: 0; margin: 0;
}
.prod-card .desc {
  font-size: 13px; color: var(--muted); line-height: 1.45;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.prod-card .price-line { margin-top: auto; padding-top: 10px; }
.prod-card .price-line .from { font-size: 12px; color: var(--muted); display: block; }
.prod-card .price-line .amount { font-family: var(--font-display); font-weight: 800; font-size: 20px; }
.prod-card .price-line .amount small { font-size: 13px; font-weight: 600; }
.prod-card .price-line .ttc { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }
.prod-card .add {
  margin-top: 12px; width: 100%; background: var(--ink); color: var(--white);
  border: none; border-radius: 999px; padding: 11px; font-family: var(--font-display);
  font-weight: 700; font-size: 14px; text-align: center; transition: background .15s;
}
.prod-card .add:hover { background: var(--brand); color: var(--ink); }

.woocommerce ul.products li.product .price { margin: 0; font-size: inherit; color: inherit; }

/* --------------------------------------------------------------------------
   Bandeaux promo, étapes, devis, avis, newsletter
   -------------------------------------------------------------------------- */

.promo-band { background: var(--brand); }
.promo-band .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 36px 20px; flex-wrap: wrap; }
.promo-band h2 { font-size: clamp(24px, 3.5vw, 34px); font-weight: 800; color: var(--ink); }
.promo-band p { color: #5a4d1f; font-weight: 600; margin-top: 4px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }
.step { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; }
.step .num {
  font-family: var(--font-display); font-weight: 800; font-size: 15px; width: 38px; height: 38px;
  background: var(--ink); color: var(--brand); border-radius: 999px; display: grid; place-items: center; margin-bottom: 16px;
}
.step h3 { font-size: 19px; font-weight: 700; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 15px; }

.quote-band { background: var(--ink); color: var(--white); }
.quote-band .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 44px 20px; flex-wrap: wrap; }
.quote-band h2 { font-size: clamp(24px, 3.5vw, 32px); font-weight: 800; }
.quote-band p { color: #C9C8C2; margin-top: 6px; max-width: 52ch; }

.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 820px) { .reviews { grid-template-columns: 1fr; } }
.review { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.review .stars { color: var(--brand); margin-bottom: 10px; letter-spacing: 2px; }
.review p { font-size: 15px; color: #34322d; margin-bottom: 14px; }
.review .who { font-family: var(--font-display); font-weight: 700; font-size: 14px; }
.review .who span { color: var(--muted); font-weight: 500; font-family: var(--font-body); }

.newsletter { background: var(--brand-soft); }
.newsletter .wrap { text-align: center; padding: 48px 20px; }
.newsletter h2 { font-size: clamp(24px, 3.5vw, 32px); font-weight: 800; margin-bottom: 8px; }
.newsletter p { color: #6b5d2c; margin-bottom: 22px; }
.news-form { display: flex; gap: 10px; max-width: 480px; margin: 0 auto; }
.news-form input {
  flex: 1; border: 2px solid var(--ink); border-radius: 999px; padding: 13px 20px;
  font-size: 15px; outline: none; background: var(--white);
}
@media (max-width: 460px) { .news-form { flex-direction: column; } }

/* --------------------------------------------------------------------------
   Fiche produit — mise en page
   L'image reste volontairement compacte : sur un site d'imprimerie, ce qui
   compte c'est le configurateur, pas la photo. Colonne image etroite a gauche,
   options et prix sur la plus grande partie de la largeur.
   -------------------------------------------------------------------------- */

.woocommerce div.product { display: block; }

.woocommerce div.product div.images.woocommerce-product-gallery {
  /* !important : WooCommerce impose 48 % sur ces deux colonnes depuis sa
     propre feuille de style, et on veut une image nettement plus discrete. */
  width: 30% !important;
  float: left;
  margin-bottom: 2rem;
  /* Volontairement NON collante : une image qui suit le defilement jusqu'en bas
     de page distrait plus qu'elle n'aide. */
  position: static;
}

.woocommerce div.product div.images img {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--white);
  /* Hauteur plafonnee : la photo illustre, elle ne doit pas dominer la page. */
  max-height: 360px;
  width: 100%;
  object-fit: contain;
  padding: 12px;
}

/* Miniatures de la galerie, discretes */
.woocommerce div.product div.images .flex-control-thumbs { margin-top: 10px; gap: 8px; display: flex; }
.woocommerce div.product div.images .flex-control-thumbs li { width: 64px; margin: 0; }
.woocommerce div.product div.images .flex-control-thumbs img { border-radius: 8px; }

.woocommerce div.product div.summary {
  width: 66% !important;
  float: right;
  margin-bottom: 2rem;
}

.woocommerce div.product .product_title {
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 800;
  margin-bottom: 6px;
}

.woocommerce div.product p.price,
.woocommerce div.product span.price {
  font-size: 17px;
  color: var(--muted);
  margin-bottom: 18px;
}

.woocommerce div.product p.price .dp-from { color: var(--muted); }

/* Onglets et avis : sous les deux colonnes */
.woocommerce div.product .woocommerce-tabs,
.woocommerce div.product .related,
.woocommerce div.product .upsells { clear: both; }

.woocommerce div.product .woocommerce-tabs ul.tabs { padding-left: 0; }
.woocommerce div.product .woocommerce-tabs ul.tabs li {
  border-radius: 999px 999px 0 0; background: var(--white); border-color: var(--line);
}

/* En dessous de 900 px : une seule colonne, image d'abord mais reduite */
@media (max-width: 900px) {
  .woocommerce div.product div.images.woocommerce-product-gallery,
  .woocommerce div.product div.summary {
    width: 100% !important;
    float: none;
    position: static;
  }

  .woocommerce div.product div.images.woocommerce-product-gallery {
    max-width: 300px;
    margin-inline: auto;
  }
}

/* --------------------------------------------------------------------------
   Configurateur
   -------------------------------------------------------------------------- */

.dp-configurator {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; margin-bottom: 20px;
}
.dp-configurator__row { margin-bottom: 22px; }
.dp-configurator__row:last-child { margin-bottom: 0; }
.dp-configurator__label {
  display: block; font-family: var(--font-display); font-weight: 700; font-size: 13px;
  text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 10px;
}

.dp-options { display: flex; flex-wrap: wrap; gap: 10px; }
.dp-option { position: relative; }
.dp-option input { position: absolute; opacity: 0; pointer-events: none; }
.dp-option span {
  display: block; padding: 11px 18px; border: 2px solid var(--line); border-radius: 999px;
  font-size: 14px; font-weight: 500; cursor: pointer; background: var(--white);
  transition: border-color .15s, background .15s, color .15s;
}
.dp-option input:checked + span { border-color: var(--brand); background: var(--brand-soft); font-weight: 700; }
.dp-option input:focus-visible + span { outline: 3px solid var(--brand); outline-offset: 2px; }
.dp-option input:disabled + span { opacity: .4; cursor: not-allowed; }

/* Saisie de dimensions (largeur × hauteur, longueur) */
.dp-dims { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.dp-dims label { display: flex; flex-direction: column; gap: 6px; }
.dp-dims label span { font-size: 13px; color: var(--muted); }
.dp-dims input {
  width: 130px; padding: 11px 14px; border: 2px solid var(--line); border-radius: 999px;
  font-family: var(--font-body); font-size: 15px; background: var(--white); outline: none;
}
.dp-dims input:focus { border-color: var(--brand); }
.dp-dims__x { font-family: var(--font-display); font-weight: 700; padding-bottom: 12px; color: var(--muted); }
.dp-hint { font-size: 13px; color: var(--muted); margin-top: 8px; }

/* Le configurateur fournit son propre champ quantite */
.woocommerce div.product form.cart .quantity.dp-hidden-qty { display: none; }

/* Choix illustres : chaque option devient une vignette cliquable. */
.dp-swatches {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 12px;
}

.dp-swatch { position: relative; display: block; }
.dp-swatch input { position: absolute; opacity: 0; pointer-events: none; }

.dp-swatch__inner {
  display: block;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  overflow: hidden;
  cursor: pointer;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}

.dp-swatch:hover .dp-swatch__inner { border-color: var(--brand-600); transform: translateY(-2px); }

.dp-swatch input:checked + .dp-swatch__inner {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(255, 226, 44, .35);
}

.dp-swatch input:focus-visible + .dp-swatch__inner { outline: 3px solid var(--ink); outline-offset: 2px; }
.dp-swatch input:disabled + .dp-swatch__inner { opacity: .4; cursor: not-allowed; }

.dp-swatch__img { display: block; aspect-ratio: 4 / 3; background: var(--bg); overflow: hidden; }
.dp-swatch__img img { width: 100%; height: 100%; object-fit: cover; }

/* Choix sans visuel : aplat neutre, pour ne pas casser l'alignement */
.dp-swatch__none {
  display: block; width: 100%; height: 100%;
  background:
    repeating-linear-gradient(45deg, var(--bg), var(--bg) 8px, #ECEBE7 8px, #ECEBE7 16px);
}

.dp-swatch__label {
  display: block;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
}

.dp-swatch input:checked + .dp-swatch__inner .dp-swatch__label { background: var(--brand-soft); }

@media (max-width: 520px) {
  .dp-swatches { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}

.dp-price-box {
  background: var(--brand-soft); border: 2px solid var(--brand); border-radius: var(--radius);
  padding: 22px 24px; margin-bottom: 20px;
}
.dp-price-box__label {
  font-family: var(--font-display); font-weight: 700; font-size: 12px;
  text-transform: uppercase; letter-spacing: .1em; color: #6b5d2c;
}
.dp-price-box__value { font-family: var(--font-display); font-weight: 800; font-size: 36px; line-height: 1.1; margin: 4px 0; }
.dp-price-box__ttc { font-size: 14px; color: var(--muted); }
.dp-price-box__unit { display: block; font-size: 14px; color: var(--muted); }
.dp-price-box__note { font-size: 13px; color: var(--muted); margin-top: 8px; }

.dp-upload {
  background: var(--white); border: 2px dashed var(--line); border-radius: var(--radius);
  padding: 24px; text-align: center; margin-bottom: 20px; transition: border-color .15s, background .15s;
}
.dp-upload.is-dragover { border-color: var(--brand); background: var(--brand-soft); }
.dp-upload b { font-family: var(--font-display); display: block; margin-bottom: 8px; }
.dp-upload__hint { font-size: 13px; color: var(--muted); margin-top: 10px; }
.dp-upload__filename { font-size: 14px; color: var(--green); font-weight: 600; margin-top: 10px; }

/* --------------------------------------------------------------------------
   Encadré « contenu à fournir » — visible par l'administrateur uniquement
   -------------------------------------------------------------------------- */

.dp-placeholder {
  display: block; background: #FFF8E6; border: 1px solid var(--brand); border-left-width: 4px;
  border-radius: 8px; padding: 14px 18px; color: #6b5d2c; font-size: 14px; line-height: 1.5;
  margin: 14px 0; text-align: left;
}
.dp-placeholder strong {
  display: block; font-family: var(--font-display); font-size: 12px;
  text-transform: uppercase; letter-spacing: .1em; margin-bottom: 4px; color: var(--brand-700);
}
.dp-placeholder code { background: rgba(0,0,0,.06); padding: 1px 5px; border-radius: 4px; font-size: 13px; }

/* --------------------------------------------------------------------------
   Pied de page
   -------------------------------------------------------------------------- */

.footer { background: var(--black); color: #C9C8C3; }
.footer .top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; padding: 56px 0 40px; }
@media (max-width: 860px) { .footer .top { grid-template-columns: 1fr 1fr; gap: 28px; } }
@media (max-width: 480px) { .footer .top { grid-template-columns: 1fr; } }
.footer .col h4 { font-family: var(--font-display); color: var(--white); font-size: 15px; margin-bottom: 16px; }
.footer .col ul { list-style: none; }
.footer .col a { display: block; color: #ADACA7; font-size: 14px; padding: 5px 0; transition: color .15s; }
.footer .col a:hover { color: var(--brand); }
/* Le logo officiel a sa baseline en noir : sur le pied de page noir on le pose
   sur une plaque blanche, comme sur la page d'attente. Cohérent et lisible. */
.footer .brand-foot img {
  height: 42px; width: auto; display: block;
  background: var(--white);
  padding: 12px 16px;
  border-radius: 12px;
  box-sizing: content-box;
  margin-bottom: 18px;
}
.footer .brand-foot p { font-size: 14px; color: #9C9B96; max-width: 34ch; }
.footer .contact-line { display: flex; align-items: center; gap: 10px; color: #C9C8C3; font-size: 14px; padding: 5px 0; }
.footer .bottom {
  border-top: 1px solid rgba(255,255,255,.1); padding: 20px 0; display: flex;
  align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px;
}
.pay { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.pay span {
  background: rgba(255,255,255,.08); border-radius: 6px; padding: 5px 9px; font-size: 11px;
  font-weight: 600; color: #D8D7D2;
}

/* --------------------------------------------------------------------------
   WooCommerce — harmonisation des pages panier, commande et compte
   -------------------------------------------------------------------------- */

.woocommerce .woocommerce-message,
.woocommerce .woocommerce-info { border-top-color: var(--brand); background: var(--white); border-radius: var(--radius); }
.woocommerce .woocommerce-message::before,
.woocommerce .woocommerce-info::before { color: var(--brand-700); }
.woocommerce .woocommerce-error { border-top-color: var(--red); background: var(--white); border-radius: var(--radius); }

.woocommerce table.shop_table { border-radius: var(--radius); border-color: var(--line); background: var(--white); }
.woocommerce-cart table.cart img { width: 68px; border-radius: 8px; }

.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select {
  border: 2px solid var(--line); border-radius: 10px; padding: 11px 14px;
  font-family: var(--font-body); font-size: 15px; background: var(--white);
}
.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus { border-color: var(--brand); outline: none; }

.woocommerce-breadcrumb { font-size: 13px; color: var(--muted); margin-bottom: 20px; }
.woocommerce-breadcrumb a { color: var(--muted); }
.woocommerce-breadcrumb a:hover { color: var(--brand-700); }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* ==========================================================================
   ÉCRAN « BIENTÔT DISPONIBLE »
   Page autonome, fond encre, accent jaune. Meme charte que le reste du site.
   ========================================================================== */

.dp-soon-page {
  background: var(--ink);
  color: var(--white);
  min-height: 100vh;
  display: grid;
  place-items: center;
}

.dp-soon {
  position: relative;
  width: 100%;
  padding: 64px 24px;
  overflow: hidden;
}

/* Halo jaune discret, comme sur le hero de la page d'accueil */
.dp-soon::before,
.dp-soon::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.dp-soon::before {
  top: -180px; right: -140px; width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(255, 226, 44, .20), transparent 70%);
}
.dp-soon::after {
  bottom: -220px; left: -160px; width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(255, 226, 44, .10), transparent 70%);
}

.dp-soon__inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.dp-soon__brand img { height: 62px; width: auto; margin: 0 auto 8px; }

.dp-soon__wordmark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 34px;
  letter-spacing: -.02em;
}
.dp-soon__wordmark span { color: var(--brand); }

.dp-soon__baseline {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 40px;
}

.dp-soon__title {
  font-size: clamp(30px, 6vw, 52px);
  font-weight: 800;
  line-height: 1.08;
  margin-bottom: 22px;
}
.dp-soon__title .hl { color: var(--brand); }

.dp-soon__text {
  font-size: 17px;
  color: #CFCEC8;
  max-width: 52ch;
  margin: 0 auto 14px;
}

.dp-soon__actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 34px;
}

.dp-soon__group {
  margin-top: 48px;
  font-size: 14px;
  color: #8E8D87;
}
.dp-soon__group a { color: var(--brand); }
.dp-soon__group a:hover { text-decoration: underline; }

@media (max-width: 520px) {
  .dp-soon { padding: 48px 20px; }
  .dp-soon__actions .btn { width: 100%; }
}

/* ==========================================================================
   PAGES WORDPRESS ET WOOCOMMERCE
   Fond blanc sur le parcours d'achat, colonne resserree sur les formulaires,
   et champs de saisie a la charte du site.
   ========================================================================== */

.page-main { padding: 48px 0 72px; }
.page-head { margin-bottom: 28px; }
.page-head h1 { font-size: clamp(26px, 4vw, 40px); font-weight: 800; }

/* Fond blanc : compte, panier, commande */
body.dp-white { background: var(--white); }
body.dp-white .page-main { padding-bottom: 88px; }

/* Colonne resserree : connexion, inscription, mot de passe oublie.
   Un formulaire de connexion etale sur 1240 px est illisible. */
body.dp-narrow .page-main .wrap { max-width: 560px; }
body.dp-narrow .page-head { text-align: center; }

/* --------------------------------------------------------------------------
   Champs de formulaire
   -------------------------------------------------------------------------- */

.woocommerce form .form-row { padding: 0; margin: 0 0 18px; display: block; }

.woocommerce form .form-row label,
.woocommerce-billing-fields label,
.woocommerce-shipping-fields label,
.woocommerce-address-fields label {
  display: block;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 7px;
  color: var(--ink);
}

.woocommerce form .form-row .required { color: var(--red); text-decoration: none; border: 0; }

.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select,
.woocommerce table.cart td.actions .coupon .input-text,
.woocommerce .select2-container .select2-selection--single {
  width: 100%;
  padding: 13px 16px;
  border: 2px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--ink);
  outline: none;
  transition: border-color .15s, box-shadow .15s;
  box-sizing: border-box;
  height: auto;
}

.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus,
.woocommerce form .form-row select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(250, 179, 21, .28);
}

.woocommerce form .form-row textarea { min-height: 120px; resize: vertical; }

.woocommerce form .form-row.woocommerce-invalid input.input-text { border-color: var(--red); }
.woocommerce form .form-row.woocommerce-validated input.input-text { border-color: var(--green); }

/* Champ mot de passe : l'oeil de WooCommerce doit rester dans le champ */
.woocommerce form .password-input,
.woocommerce form .show-password-input { display: block; position: relative; width: 100%; }
.woocommerce form .show-password-input {
  position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  width: auto; cursor: pointer;
}

/* Cases a cocher : alignement propre */
.woocommerce form .form-row.woocommerce-form__label-for-checkbox,
.woocommerce-form__label-for-checkbox {
  display: flex; align-items: center; gap: 9px; font-weight: 500;
}
.woocommerce-form__label-for-checkbox input { width: 18px; height: 18px; accent-color: var(--brand); margin: 0; }

/* Blocs de formulaire poses sur une carte */
.woocommerce form.login,
.woocommerce form.register,
.woocommerce form.lost_reset_password,
.woocommerce-EditAccountForm,
.woocommerce-address-fields {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  margin: 0 0 24px;
  background: var(--white);
}

body.dp-narrow .woocommerce form.login,
body.dp-narrow .woocommerce form.register { box-shadow: 0 6px 28px rgba(20, 19, 15, .06); }

.woocommerce form.login p:last-child,
.woocommerce form.register p:last-child { margin-bottom: 0; }

.woocommerce-LostPassword { margin-top: 14px; font-size: 14px; }
.woocommerce-LostPassword a { color: var(--brand-700); font-weight: 600; }
.woocommerce-LostPassword a:hover { text-decoration: underline; }

/* Deux colonnes connexion / inscription : l'une sous l'autre en colonne etroite */
body.dp-narrow .u-columns.col2-set,
body.dp-narrow .u-columns .col-1,
body.dp-narrow .u-columns .col-2 { width: 100%; float: none; margin: 0; }
body.dp-narrow .u-columns .col-2 { margin-top: 28px; }

/* --------------------------------------------------------------------------
   Tableau de bord du compte
   -------------------------------------------------------------------------- */

.woocommerce-account .woocommerce-MyAccount-navigation {
  width: 26%;
  float: left;
  margin-right: 4%;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul {
  list-style: none; margin: 0; padding: 0;
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}

.woocommerce-account .woocommerce-MyAccount-navigation li { border-bottom: 1px solid var(--line); }
.woocommerce-account .woocommerce-MyAccount-navigation li:last-child { border-bottom: 0; }

.woocommerce-account .woocommerce-MyAccount-navigation a {
  display: block; padding: 13px 18px;
  font-family: var(--font-display); font-size: 15px; font-weight: 600;
  color: var(--ink); transition: background .15s, color .15s;
}
.woocommerce-account .woocommerce-MyAccount-navigation a:hover { background: var(--bg); }

.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a {
  background: var(--brand); color: var(--ink);
}

.woocommerce-account .woocommerce-MyAccount-content { width: 70%; float: right; }
.woocommerce-account .woocommerce-MyAccount-content > p:first-child { margin-top: 0; }

@media (max-width: 860px) {
  .woocommerce-account .woocommerce-MyAccount-navigation,
  .woocommerce-account .woocommerce-MyAccount-content { width: 100%; float: none; margin: 0 0 24px; }
}

/* --------------------------------------------------------------------------
   Tableaux : commandes, adresses, panier
   -------------------------------------------------------------------------- */

.woocommerce table.shop_table {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  width: 100%;
}

.woocommerce table.shop_table thead th {
  background: var(--bg);
  font-family: var(--font-display); font-size: 13px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em;
  padding: 14px 16px; text-align: left; border: 0;
}

.woocommerce table.shop_table td { padding: 16px; border-top: 1px solid var(--line); }
.woocommerce table.shop_table tbody tr:hover td { background: #FBFAF8; }

.woocommerce ul.order_details { padding: 0; }

/* Adresses du compte */
.woocommerce-Addresses .woocommerce-Address {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 22px;
}
.woocommerce-Addresses .woocommerce-Address-title h2 { font-size: 18px; margin-bottom: 10px; }

/* --------------------------------------------------------------------------
   Messages
   -------------------------------------------------------------------------- */

.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  border-top: 3px solid var(--brand);
  background: var(--white);
  padding: 16px 20px;
  margin-bottom: 24px;
  font-size: 15px;
}
.woocommerce-error { border-top-color: var(--red); }
.woocommerce-message { border-top-color: var(--green); }
.woocommerce-error li { list-style: none; }

/* --------------------------------------------------------------------------
   Le carrousel reste pleine largeur, quoi qu'il arrive
   -------------------------------------------------------------------------- */

.carousel--hero { width: 100%; max-width: none; margin-inline: 0; }

/* Intro des champs professionnels sur le formulaire d'inscription */
.dp-pro-intro {
  margin: 22px 0 16px;
  padding: 14px 16px;
  background: var(--brand-soft);
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.5;
}

/* ==========================================================================
   ESPACE CLIENT — charte reprise des maquettes DIGITALMAROC PRINT
   Fond papier, cartes blanches a 16 px, accent jaune, ombres douces.
   ========================================================================== */

.woocommerce-account.dp-white { background: #F2F0EB; }

.woocommerce-account .page-head h1 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); }

/* Jeton local : ces pages ont leur propre palette, plus chaude que le site. */
.woocommerce-account {
  /* L'espace client partageait un second jeu de couleurs, avec un jaune
     different (#FFC400) de celui du logo (#FAB315) : deux jaunes sur le meme
     site. Ces variables sont conservees — 87 usages en dependent — mais elles
     pointent desormais sur les jetons de la marque. Un seul endroit a changer. */
  --acc-surface:  var(--white);
  --acc-surface2: var(--bg);
  --acc-ink:      var(--ink);
  --acc-soft:     #4A473C;
  --acc-muted:    var(--muted);
  --acc-line:     var(--line);
  --acc-line2:    var(--line);
  --acc-accent:   var(--brand);
  --acc-deep:     var(--brand-600);
  --acc-ok:       var(--green);  --acc-ok-bg:   #E4F2EA;
  --acc-warn:     var(--brand-700); --acc-warn-bg: var(--brand-soft);
  --acc-crit:     var(--red);    --acc-crit-bg: #F8E4E0;
  --acc-shadow:   var(--shadow-sm), var(--shadow-md);
}

/* --------------------------------------------------------------------------
   Barre laterale
   -------------------------------------------------------------------------- */

.dp-account-nav { display: flex; flex-direction: column; gap: 1.25rem; }

.dp-ident { display: flex; align-items: center; gap: .75rem; }
.dp-avatar {
  width: 42px; height: 42px; flex: none; border-radius: 12px;
  background: var(--acc-accent); color: var(--acc-ink);
  display: grid; place-items: center; font-weight: 700; font-size: .875rem;
  font-family: var(--font-display);
}
.dp-ident__txt { display: flex; flex-direction: column; min-width: 0; }
.dp-ident__name { font-weight: 620; line-height: 1.25; }
.dp-ident__meta { font-size: .75rem; color: var(--acc-muted); }

.dp-nav { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 1px; }
.dp-nav a {
  display: flex; align-items: center; gap: .625rem;
  padding: .5rem .75rem; border-radius: 9px;
  color: var(--acc-soft); font-size: .875rem; font-weight: 520;
  transition: background .15s, color .15s;
}
.dp-nav a:hover { background: var(--acc-line2); color: var(--acc-ink); }
.dp-nav li.is-active a { background: var(--acc-accent); color: var(--acc-ink); font-weight: 620; }
.dp-nav svg { width: 16px; height: 16px; flex: none; stroke-width: 1.7; }

.dp-helpbox {
  padding: .875rem; border-radius: 12px;
  background: var(--acc-surface); border: 1px solid var(--acc-line);
  font-size: .8125rem; color: var(--acc-soft);
}
.dp-helpbox strong { display: block; color: var(--acc-ink); font-size: .875rem; margin-bottom: .1875rem; }
.dp-helpbox a { color: var(--acc-ink); font-weight: 600; }

@media (max-width: 860px) {
  .dp-nav { flex-direction: row; overflow-x: auto; gap: .375rem; padding-bottom: .25rem; }
  .dp-nav a { white-space: nowrap; }
  .dp-helpbox { display: none; }
}

/* --------------------------------------------------------------------------
   Cartes du tableau de bord
   -------------------------------------------------------------------------- */

.woocommerce-account .woocommerce-MyAccount-content { display: flex; flex-direction: column; gap: 1.25rem; }

.dp-card {
  background: var(--acc-surface); border: 1px solid var(--acc-line);
  border-radius: 16px; box-shadow: var(--acc-shadow);
}
.dp-card__head {
  display: flex; align-items: center; gap: .75rem; flex-wrap: wrap;
  padding: 1rem 1.25rem; border-bottom: 1px solid var(--acc-line2);
}
.dp-card__head h2 { font-size: 1.0625rem; font-weight: 640; margin: 0; }
.dp-card__body { padding: 1.25rem; }
.dp-card__link {
  margin-left: auto; font-size: .8125rem; font-weight: 600; color: var(--acc-soft);
  border-bottom: 1.5px solid var(--acc-accent); padding-bottom: 1px;
}
.dp-card__link:hover { color: var(--acc-ink); }

/* Accueil, avec traits de coupe en decor */
.dp-hero { position: relative; padding: 1.5rem clamp(1.25rem, 3vw, 1.75rem); }
.dp-hero::before, .dp-hero::after {
  content: ""; position: absolute; width: 13px; height: 13px;
  border-color: var(--acc-deep); opacity: .85; pointer-events: none;
}
.dp-hero::before { top: 9px; left: 9px; border-top: 1.5px solid; border-left: 1.5px solid; }
.dp-hero::after { bottom: 9px; right: 9px; border-bottom: 1.5px solid; border-right: 1.5px solid; }

.dp-hero__top { display: flex; align-items: flex-start; gap: 1rem; flex-wrap: wrap; }
.dp-hero__title { font-size: clamp(1.35rem, 1.1rem + 1vw, 1.75rem); font-weight: 660; margin: .1rem 0 0; }
.dp-hero__sub { color: var(--acc-muted); font-size: .9375rem; margin-top: .3125rem; }

.dp-eyebrow {
  font-size: .6875rem; font-weight: 660; letter-spacing: .11em;
  text-transform: uppercase; color: var(--acc-muted); margin: 0;
}

.dp-cmyk { display: flex; gap: 3px; margin-left: auto; padding-top: .375rem; }
.dp-cmyk i { width: 13px; height: 13px; border-radius: 3px; display: block; }

.dp-tiles {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: .75rem; margin-top: 1.375rem;
}
.dp-tile { padding: .875rem 1rem; border-radius: 12px; background: var(--acc-surface2); border: 1px solid var(--acc-line2); }
.dp-tile__k { font-size: 1.5rem; font-weight: 660; letter-spacing: -.03em; line-height: 1.15; }
.dp-tile__k .woocommerce-Price-amount { font-size: 1.5rem; }
.dp-tile__l { font-size: .75rem; color: var(--acc-muted); margin-top: .1875rem; }
.dp-tile--act { background: var(--acc-warn-bg); border-color: transparent; }
.dp-tile--act .dp-tile__k, .dp-tile--act .dp-tile__l { color: var(--acc-warn); }

/* Bandeau compte professionnel */
.dp-prostrip {
  display: flex; align-items: center; gap: .875rem; flex-wrap: wrap;
  padding: .875rem 1.25rem; border-radius: 14px;
  background: var(--acc-ink); color: #F3F1E9;
  border-left: 4px solid var(--acc-accent);
}
.dp-prostrip svg { width: 20px; height: 20px; color: var(--acc-accent); flex: none; }
.dp-prostrip b { font-weight: 640; }
.dp-prostrip span { font-size: .875rem; opacity: .78; }

/* Boutons de l'espace client */
.dp-btn {
  display: inline-flex; align-items: center; gap: .4375rem;
  font-family: var(--font-display); font-size: .8125rem; font-weight: 620;
  padding: .5rem .875rem; border-radius: 9px;
  border: 1px solid var(--acc-line); background: var(--acc-surface); color: var(--acc-ink);
  transition: background .15s, border-color .15s, transform .1s;
}
.dp-btn:hover { background: var(--acc-surface2); border-color: var(--acc-muted); }
.dp-btn:active { transform: translateY(1px); }
.dp-btn svg { width: 14px; height: 14px; }
.dp-btn--key { background: var(--acc-accent); border-color: var(--acc-accent); }
.dp-btn--key:hover { background: var(--acc-deep); border-color: var(--acc-deep); }
.dp-btnrow { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: 1.25rem; }

/* Tableau des commandes */
.dp-scroll { overflow-x: auto; }
.dp-table { width: 100%; border-collapse: collapse; font-size: .875rem; min-width: 560px; }
.dp-table th {
  text-align: left; font-size: .6875rem; font-weight: 660; letter-spacing: .085em;
  text-transform: uppercase; color: var(--acc-muted);
  padding: .75rem 1.25rem; border-bottom: 1px solid var(--acc-line2); white-space: nowrap;
}
.dp-table td { padding: .875rem 1.25rem; border-bottom: 1px solid var(--acc-line2); vertical-align: middle; }
.dp-table tbody tr:last-child td { border-bottom: 0; }
.dp-table tbody tr:hover { background: var(--acc-surface2); }
.dp-right { text-align: right; }
.dp-dim { color: var(--acc-muted); white-space: nowrap; }
.dp-ref { font-family: var(--mono, ui-monospace, Menlo, monospace); font-size: .8125rem; font-weight: 600; }
.dp-price { font-weight: 620; white-space: nowrap; }

/* Pastilles de statut */
.dp-pill {
  display: inline-flex; align-items: center; gap: .375rem;
  font-size: .75rem; font-weight: 620; padding: .1875rem .5625rem;
  border-radius: 999px; white-space: nowrap;
}
.dp-pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.dp-pill--go   { background: var(--acc-ok-bg);   color: var(--acc-ok); }
.dp-pill--wait { background: var(--acc-warn-bg); color: var(--acc-warn); }
.dp-pill--run  { background: #FFF3CC;            color: var(--acc-deep); }
.dp-pill--stop { background: var(--acc-crit-bg); color: var(--acc-crit); }
.dp-pill--idle { background: var(--acc-line2);   color: var(--acc-muted); }

/* Listes clé / valeur */
.dp-kv { display: grid; grid-template-columns: auto 1fr; gap: .5rem 1.25rem; font-size: .875rem; margin: 0; }
.dp-kv dt { color: var(--acc-muted); }
.dp-kv dd { margin: 0; font-weight: 560; text-align: right; }
.dp-mono { font-family: var(--mono, ui-monospace, Menlo, monospace); font-size: .8125rem; }
.dp-note { font-size: .75rem; color: var(--acc-muted); margin-top: .875rem; }

/* ==========================================================================
   CONFIGURATEUR — mise en page en deux colonnes
   Étapes numérotées à gauche, panneau de prix collant à droite.
   ========================================================================== */

/* Sur un produit configurable, la galerie WooCommerce cède la place :
   c'est la configuration qui compte, pas la photo. */
body.dp-configurable .woocommerce div.product div.images.woocommerce-product-gallery {
  width: 100% !important;
  float: none;
  position: static;
  max-width: 260px;
  margin: 0 0 1.25rem;
}
body.dp-configurable .woocommerce div.product div.summary { width: 100% !important; float: none; }
body.dp-configurable .woocommerce div.product form.cart .single_add_to_cart_button { display: none; }
body.dp-configurable .woocommerce div.product form.cart { margin: 0; }

.dp-cfg {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: clamp(1rem, 2vw, 1.75rem);
  align-items: start;
  /* Ce bloc redeclarait localement les couleurs du compte, ecrasant celles
     de :root et ramenant le second jaune. Les jetons globaux font foi. */
}

@media (max-width: 1000px) { .dp-cfg { grid-template-columns: minmax(0, 1fr); } }

.dp-cfg__steps { display: flex; flex-direction: column; gap: 1rem; min-width: 0; }
.dp-cfg__panel { position: sticky; top: 110px; display: flex; flex-direction: column; gap: .75rem; }
@media (max-width: 1000px) { .dp-cfg__panel { position: static; } }

.dp-cfg .dp-card { background: var(--acc-surface); border: 1px solid var(--acc-line); border-radius: 16px; box-shadow: var(--acc-shadow); }
.dp-cfg .dp-card__head { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; padding: .9375rem 1.25rem; border-bottom: 1px solid var(--acc-line2); }
.dp-cfg .dp-card__head h2 { font-size: .9375rem; font-weight: 640; margin: 0; }
.dp-cfg .dp-card__body { padding: 1.25rem; }

.dp-stepnum {
  width: 22px; height: 22px; flex: none; border-radius: 7px;
  background: var(--acc-ink); color: #F3F1E9;
  display: grid; place-items: center; font-size: .6875rem; font-weight: 700;
}
.dp-pick { margin-left: auto; font-size: .8125rem; font-weight: 600; color: var(--acc-soft); }

/* Aperçu de la pièce, coté */
.dp-preview {
  position: relative; display: grid; place-items: center;
  padding: 2.5rem 1.25rem 2.75rem; min-height: 280px;
  background: var(--acc-surface2); border-bottom: 1px solid var(--acc-line2);
  border-radius: 16px 16px 0 0;
}
.dp-sheet {
  position: relative; background: #fff; border: 1px solid #D9D5C9;
  box-shadow: 0 10px 30px -14px rgba(0,0,0,.45);
  transition: width .3s cubic-bezier(.3,.8,.3,1), height .3s cubic-bezier(.3,.8,.3,1);
}
.dp-sheet__bleed { position: absolute; inset: 5px; border: 1px dashed rgba(178,58,42,.65); }
.dp-mark { position: absolute; width: 11px; height: 11px; border-color: var(--acc-muted); }
.dp-mark--tl { top: -16px; left: -16px; border-top: 1.5px solid; border-left: 1.5px solid; }
.dp-mark--tr { top: -16px; right: -16px; border-top: 1.5px solid; border-right: 1.5px solid; }
.dp-mark--bl { bottom: -16px; left: -16px; border-bottom: 1.5px solid; border-left: 1.5px solid; }
.dp-mark--br { bottom: -16px; right: -16px; border-bottom: 1.5px solid; border-right: 1.5px solid; }
.dp-dim { position: absolute; font-size: .6875rem; color: var(--acc-muted); white-space: nowrap; }
.dp-dim--w { bottom: -34px; left: 50%; transform: translateX(-50%); }
.dp-dim--h { top: 50%; right: -20px; transform: translateY(-50%) rotate(90deg); }
.dp-preview__legend { position: absolute; left: 1.25rem; bottom: .75rem; display: flex; gap: 1rem; font-size: .6875rem; color: var(--acc-muted); }
.dp-preview__legend span { display: flex; align-items: center; gap: .375rem; }
.dp-swatch-line { width: 14px; height: 0; border-top: 1px dashed var(--acc-crit); display: block; }
.dp-preview__note { font-size: .8125rem; color: var(--acc-muted); }

/* Choix */
.dp-opts { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .5rem; }
.dp-qty  { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: .5rem; }

.dp-opt { position: relative; display: block; cursor: pointer; }
.dp-opt input { position: absolute; opacity: 0; width: 0; height: 0; }
.dp-opt__box {
  display: flex; flex-direction: column; gap: .125rem; height: 100%;
  padding: .625rem .75rem; border-radius: 11px;
  border: 1.5px solid var(--acc-line); background: var(--acc-surface);
  transition: border-color .15s, background .15s, box-shadow .15s;
}
.dp-opt:hover .dp-opt__box { border-color: var(--acc-muted); }
.dp-opt input:checked + .dp-opt__box {
  border-color: var(--acc-accent); background: #FFF9E0;
  box-shadow: inset 0 0 0 1px var(--acc-accent);
}
.dp-opt input:focus-visible + .dp-opt__box { outline: 2px solid var(--acc-deep); outline-offset: 2px; }
.dp-opt__t { font-size: .875rem; font-weight: 580; }
.dp-opt__u { font-size: .6875rem; color: var(--acc-muted); }
.dp-qty .dp-opt__t { font-size: 1rem; font-weight: 640; letter-spacing: -.02em; }

/* Choix rendu impossible par une règle */
.dp-opt.is-off, .dp-swatch.is-off { cursor: not-allowed; }
.dp-opt.is-off .dp-opt__box, .dp-swatch.is-off .dp-swatch__inner {
  opacity: .5; border-style: dashed; background: var(--acc-surface2);
}
.dp-opt.is-off .dp-opt__t, .dp-swatch.is-off .dp-swatch__label { text-decoration: line-through; }
.dp-why { font-size: .6875rem; color: var(--acc-crit); font-weight: 560; line-height: 1.35; }
.dp-why:empty { display: none; }
.dp-swatch .dp-why { padding: 0 .625rem .5rem; display: block; }

/* Panneau de prix */
.dp-protag {
  display: flex; align-items: center; gap: .5rem;
  padding: .5rem .875rem; border-radius: 11px;
  background: var(--acc-ink); color: #F3F1E9; font-size: .75rem;
}
.dp-protag svg { width: 15px; height: 15px; color: var(--acc-accent); flex: none; }

.dp-pricebox { background: var(--acc-surface); border: 1px solid var(--acc-line); border-radius: 16px; box-shadow: var(--acc-shadow); overflow: hidden; }
.dp-pricebox__top { padding: 1.125rem 1.25rem 1rem; border-bottom: 1px solid var(--acc-line2); }
.dp-pricebox__k { font-size: 2rem; font-weight: 660; letter-spacing: -.035em; line-height: 1.05; }
.dp-pricebox__l { font-size: .8125rem; color: var(--acc-muted); margin-top: .25rem; }
.dp-pricebox__unit {
  display: inline-block; margin-top: .625rem; padding: .25rem .5625rem;
  border-radius: 999px; background: var(--acc-surface2); border: 1px solid var(--acc-line2);
  font-size: .75rem; color: var(--acc-soft);
}
.dp-pricebox__unit:empty { display: none; }

.dp-lines { padding: .875rem 1.25rem; display: flex; flex-direction: column; gap: .4375rem; font-size: .8125rem; }
.dp-line { display: flex; justify-content: space-between; gap: 1rem; color: var(--acc-soft); }
.dp-line span:last-child { font-weight: 560; color: var(--acc-ink); white-space: nowrap; }
.dp-line--save span { color: var(--acc-ok) !important; font-weight: 620; }
.dp-line--sub { padding-top: .4375rem; border-top: 1px solid var(--acc-line2); font-weight: 620; }
.dp-line--tot { padding-top: .4375rem; margin-top: .1875rem; border-top: 1px solid var(--acc-line2); font-weight: 660; font-size: .9375rem; color: var(--acc-ink); }

.dp-eta { display: flex; gap: .75rem; align-items: flex-start; padding: .875rem 1.25rem; background: var(--acc-surface2); border-top: 1px solid var(--acc-line2); }
.dp-eta svg { width: 17px; height: 17px; color: var(--acc-deep); flex: none; margin-top: 2px; }
.dp-eta__t { font-size: .8125rem; font-weight: 620; }
.dp-eta__d { font-size: .75rem; color: var(--acc-muted); margin-top: .0625rem; }

.dp-pricebox__act { padding: 1rem 1.25rem 1.25rem; display: flex; flex-direction: column; gap: .5rem; }
.dp-btn--big { width: 100%; justify-content: center; font-size: .9375rem; padding: .75rem 1rem; border-radius: 11px; }
.dp-pricebox__note { font-size: .6875rem; color: var(--acc-muted); text-align: center; margin: 0; }

.dp-recap { background: var(--acc-surface); border: 1px solid var(--acc-line); border-radius: 16px; padding: 1rem 1.25rem; }
.dp-recap h3 { font-size: .75rem; letter-spacing: .11em; text-transform: uppercase; color: var(--acc-muted); margin: 0 0 .625rem; }
.dp-recap dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: .3125rem 1rem; font-size: .8125rem; }
.dp-recap dt { color: var(--acc-muted); }
.dp-recap dd { margin: 0; text-align: right; font-weight: 560; }

/* ==========================================================================
   FOND BLANC SUR TOUT LE SITE
   Les blocs produits etaient blancs sur gris : ils recoivent une bordure pour
   rester visibles, sinon ils disparaissent purement et simplement.
   ========================================================================== */

body { background: var(--white); }

.prod-card,
.cat-card,
.step {
  border: 1px solid var(--line);
  background: var(--white);
}
.prod-card:hover, .cat-card:hover { border-color: var(--brand-600); }

/* Les sections alternees retrouvent un leger contraste */
.section--alt { background: var(--bg); }
.perks { background: var(--bg); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

body.dp-white { background: var(--white); }
.woocommerce-account.dp-white { background: var(--white); }

/* ==========================================================================
   ZONE DE DEPOT DU FICHIER
   ========================================================================== */

.dp-drop {
  display: block; text-align: center; cursor: pointer;
  border: 1.5px dashed var(--acc-line, #E3DFD4); border-radius: 13px;
  padding: 1.5rem 1.25rem; background: var(--acc-surface2, #FBFAF7);
  transition: border-color .15s, background .15s;
}
.dp-drop:hover, .dp-drop.is-over { border-color: var(--acc-accent); background: #FFFBEB; }
.dp-drop svg { width: 26px; height: 26px; color: var(--acc-muted, #7A7566); }
.dp-drop__t { display: block; font-weight: 600; font-size: .9375rem; margin-top: .5rem; }
.dp-drop__s { display: block; font-size: .8125rem; color: var(--acc-muted, #7A7566); margin-top: .1875rem; }
.dp-drop__f {
  display: block; font-family: var(--mono, ui-monospace, Menlo, monospace);
  font-size: .6875rem; color: var(--acc-muted, #7A7566); margin-top: .625rem; letter-spacing: .02em;
}
.dp-drop__picked {
  display: block; margin-top: .75rem; font-size: .8125rem; font-weight: 620;
  color: var(--acc-ok, #1B7A4B);
}
.dp-drop__picked:empty { display: none; }

.dp-brieflabel { display: block; font-weight: 600; font-size: .875rem; margin-bottom: .5rem; }
.dp-cfg textarea {
  width: 100%; padding: 13px 16px; border: 2px solid var(--line); border-radius: 12px;
  font-family: var(--font-body); font-size: 15px; resize: vertical; outline: none;
}
.dp-cfg textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(250,179,21,.28); }

/* ==========================================================================
   DOSSIER PROFESSIONNEL
   ========================================================================== */

.dp-appform { margin-top: 1.25rem; }
.dp-appform h3 {
  font-size: .75rem; letter-spacing: .11em; text-transform: uppercase;
  color: var(--acc-muted, #7A7566); margin: 1.75rem 0 .875rem;
}
.dp-appform h3:first-child { margin-top: 0; }
.dp-appform .form-row { margin-bottom: 1.125rem; }
.dp-appform label { display: block; font-weight: 600; font-size: .875rem; margin-bottom: .375rem; }
.dp-appform .required { color: var(--red); }
.dp-appform input[type="text"] {
  width: 100%; padding: 12px 15px; border: 2px solid var(--line); border-radius: 12px;
  font-family: var(--font-body); font-size: 15px; outline: none;
}
.dp-appform input[type="text"]:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(250,179,21,.28); }
.dp-appform input[type="file"] {
  width: 100%; padding: 11px 14px; border: 1.5px dashed var(--line); border-radius: 12px;
  background: var(--bg); font-size: 14px;
}
.dp-appform .dp-hint { display: block; font-size: .75rem; color: var(--muted); margin-top: .375rem; }

.dp-alert {
  padding: .875rem 1rem; border-radius: 11px; margin-bottom: 1.25rem;
  background: #FBEFD8; color: #7A4E00; font-size: .875rem;
}

.dp-prostrip .dp-rate {
  margin-left: auto; background: var(--acc-accent); color: #16150F;
  font-weight: 700; font-size: .8125rem; padding: .25rem .75rem; border-radius: 999px;
}
@media (max-width: 620px) { .dp-prostrip .dp-rate { margin-left: 0; } }

/* ==========================================================================
   PANIER ET COMMANDE — version classique, entièrement habillée
   Les pages « blocs » de WooCommerce imposent leur propre design et ignorent
   le thème : on utilise donc les pages classiques, qui se stylent librement.
   ========================================================================== */

.woocommerce-cart .page-main,
.woocommerce-checkout .page-main { padding-top: 32px; }

/* --- Panier --------------------------------------------------------------- */

.woocommerce table.shop_table.cart { margin-bottom: 28px; }
.woocommerce table.shop_table.cart th { font-size: .6875rem; }
.woocommerce .cart .product-thumbnail img { width: 62px; border-radius: 10px; border: 1px solid var(--line); }
.woocommerce .cart .product-name a { font-family: var(--font-display); font-weight: 620; }
.woocommerce .cart .variation,
.woocommerce .cart dl.variation {
  margin-top: .5rem; font-size: .8125rem; color: var(--muted); line-height: 1.5;
}
.woocommerce .cart dl.variation dt { font-weight: 600; color: var(--ink); }
.woocommerce .cart dl.variation dd { margin: 0 0 .25rem; }

.woocommerce a.remove {
  width: 26px; height: 26px; line-height: 24px; font-size: 18px;
  color: var(--muted) !important; border: 1px solid var(--line); border-radius: 999px;
}
.woocommerce a.remove:hover { background: var(--red); color: #fff !important; border-color: var(--red); }

.woocommerce .cart .quantity input.qty {
  width: 74px; padding: 9px 10px; border: 2px solid var(--line); border-radius: 999px;
  text-align: center; font-family: var(--font-body); font-size: 15px;
}

.woocommerce table.cart td.actions { padding: 18px; background: var(--bg); }
.woocommerce table.cart td.actions .coupon { display: flex; gap: .5rem; flex-wrap: wrap; }
.woocommerce table.cart td.actions .coupon .input-text { width: auto; min-width: 210px; }

/* Totaux du panier, posés comme une carte */
.woocommerce .cart-collaterals { display: flex; justify-content: flex-end; }
.woocommerce .cart_totals {
  width: 100%; max-width: 420px;
  border: 1px solid var(--line); border-radius: var(--radius); padding: 22px;
  background: var(--white); box-shadow: 0 6px 24px rgba(20,19,15,.05);
}
.woocommerce .cart_totals h2 { font-size: 1.05rem; font-weight: 700; margin-bottom: 14px; }
.woocommerce .cart_totals table.shop_table { border: 0; }
.woocommerce .cart_totals table.shop_table th,
.woocommerce .cart_totals table.shop_table td {
  padding: 11px 0; border-top: 0; border-bottom: 1px solid var(--line); background: none;
  text-transform: none; letter-spacing: 0; font-size: .9375rem;
}
.woocommerce .cart_totals tr.order-total th,
.woocommerce .cart_totals tr.order-total td { font-size: 1.05rem; font-weight: 700; border-bottom: 0; }
.woocommerce .cart_totals .wc-proceed-to-checkout { padding-top: 16px; }
.woocommerce .cart_totals .checkout-button { width: 100%; }

/* --- Commande ------------------------------------------------------------- */

.woocommerce-checkout .col2-set { display: grid; grid-template-columns: 1fr; gap: 0; }
.woocommerce-checkout .col2-set .col-1,
.woocommerce-checkout .col2-set .col-2 { width: 100%; float: none; }

.woocommerce-checkout h3 {
  font-family: var(--font-display); font-size: 1.05rem; font-weight: 700;
  margin: 0 0 16px; padding-bottom: 12px; border-bottom: 1px solid var(--line);
}

.woocommerce-checkout .woocommerce-billing-fields,
.woocommerce-checkout .woocommerce-additional-fields {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; margin-bottom: 22px; background: var(--white);
}

/* Deux colonnes sur les champs courts */
.woocommerce form .form-row-first,
.woocommerce form .form-row-last { width: 48.5%; }
@media (max-width: 640px) {
  .woocommerce form .form-row-first,
  .woocommerce form .form-row-last { width: 100%; }
}

#order_review_heading { margin-top: 8px; }

.woocommerce-checkout #order_review {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; background: var(--white); box-shadow: 0 6px 24px rgba(20,19,15,.05);
}
.woocommerce-checkout #order_review table.shop_table { border: 0; }
.woocommerce-checkout #order_review th,
.woocommerce-checkout #order_review td {
  padding: 12px 0; border-bottom: 1px solid var(--line); background: none;
  text-transform: none; letter-spacing: 0;
}
.woocommerce-checkout #order_review tfoot .order-total th,
.woocommerce-checkout #order_review tfoot .order-total td { font-size: 1.05rem; font-weight: 700; }

/* Moyens de paiement */
.woocommerce-checkout #payment { background: transparent; border-radius: 0; }
.woocommerce-checkout #payment ul.payment_methods { padding: 18px 0 0; border-bottom: 0; }
.woocommerce-checkout #payment ul.payment_methods li {
  border: 2px solid var(--line); border-radius: var(--radius);
  padding: 14px 16px; margin-bottom: 10px; list-style: none;
  transition: border-color .15s, background .15s;
}
.woocommerce-checkout #payment ul.payment_methods li:hover { border-color: var(--brand-600); }
.woocommerce-checkout #payment ul.payment_methods li input[type="radio"] { accent-color: var(--brand); margin-right: 8px; }
.woocommerce-checkout #payment ul.payment_methods li label {
  font-family: var(--font-display); font-weight: 620; font-size: 15px; display: inline;
}
.woocommerce-checkout #payment div.payment_box {
  background: var(--brand-soft); border-radius: 10px; margin-top: 12px;
  font-size: .875rem; color: var(--ink);
}
.woocommerce-checkout #payment div.payment_box::before { display: none; }
.woocommerce-checkout #payment .place-order { padding: 18px 0 0; }
.woocommerce-checkout #payment #place_order { width: 100%; font-size: 16px; padding: 15px 24px; }

/* Confirmation de commande */
.woocommerce ul.order_details {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px; margin: 0 0 28px; padding: 0;
}
.woocommerce ul.order_details li {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 16px; margin: 0; border-right: 1px solid var(--line);
  font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted);
}
.woocommerce ul.order_details li strong {
  display: block; margin-top: 6px; font-family: var(--font-display);
  font-size: 1rem; text-transform: none; letter-spacing: 0; color: var(--ink);
}


/* ==========================================================================
   FICHE PRODUIT — description sous l'image, et onglet des avis
   ========================================================================== */

/* La description accompagne l'image dans la colonne de gauche : le client lit
   ce qu'il achete en regardant la photo, sans quitter le configurateur des yeux. */
.dp-product-desc {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  font-size: .9375rem;
  line-height: 1.65;
  color: var(--ink);
}
.dp-product-desc h3 {
  font-family: var(--font-display); font-size: .75rem; font-weight: 700;
  letter-spacing: .11em; text-transform: uppercase; color: var(--muted);
  margin-bottom: .625rem;
}
.dp-product-desc p { margin-bottom: .75rem; }
.dp-product-desc ul { margin: 0 0 .75rem 1.1rem; }
.dp-product-desc li { margin-bottom: .3rem; }

body.dp-configurable .woocommerce div.product div.images.woocommerce-product-gallery {
  max-width: 320px;
}

/* --- Onglets et avis ------------------------------------------------------ */

.woocommerce div.product .woocommerce-tabs { padding-top: 2rem; margin-top: 2.5rem; border-top: 1px solid var(--line); }

.woocommerce div.product .woocommerce-tabs ul.tabs { margin: 0 0 1.5rem; padding: 0; display: flex; gap: .5rem; flex-wrap: wrap; }
.woocommerce div.product .woocommerce-tabs ul.tabs::before { display: none; }
.woocommerce div.product .woocommerce-tabs ul.tabs li {
  margin: 0; padding: 0; background: var(--white);
  border: 2px solid var(--line); border-radius: 999px;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li::before,
.woocommerce div.product .woocommerce-tabs ul.tabs li::after { display: none; }
.woocommerce div.product .woocommerce-tabs ul.tabs li a {
  display: block; padding: 9px 20px;
  font-family: var(--font-display); font-weight: 620; font-size: .875rem; color: var(--ink);
}
.woocommerce div.product .woocommerce-tabs ul.tabs li.active {
  background: var(--brand); border-color: var(--brand);
}
.woocommerce div.product .woocommerce-tabs .panel { margin: 0; padding: 0; }
.woocommerce div.product .woocommerce-tabs h2 { font-size: 1.15rem; margin-bottom: 1rem; }

/* Avis clients */
.woocommerce #reviews #comments ol.commentlist { padding: 0; }
.woocommerce #reviews #comments ol.commentlist li { margin-bottom: 1rem; }
.woocommerce #reviews #comments ol.commentlist li .comment-text {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.125rem 1.25rem; margin-left: 62px; background: var(--white);
}
.woocommerce #reviews #comments ol.commentlist li img.avatar {
  width: 46px; border: 0; border-radius: 12px; padding: 0; background: var(--bg);
}
.woocommerce #reviews .comment-text p.meta { font-size: .8125rem; color: var(--muted); margin-bottom: .5rem; }
.woocommerce #reviews .comment-text .star-rating { float: none; margin-bottom: .5rem; font-size: .9em; }
.woocommerce p.stars a { color: var(--brand-600); }
.woocommerce .star-rating span { color: var(--brand-600); }

.woocommerce #review_form_wrapper {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem; background: var(--bg); margin-top: 1.5rem;
}
.woocommerce #review_form #respond .comment-reply-title {
  display: block; font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; margin-bottom: 1rem;
}
.woocommerce #review_form #respond textarea,
.woocommerce #review_form #respond input[type="text"],
.woocommerce #review_form #respond input[type="email"] {
  width: 100%; padding: 12px 15px; border: 2px solid var(--line); border-radius: 12px;
  font-family: var(--font-body); font-size: 15px; background: var(--white); outline: none;
}
.woocommerce #review_form #respond textarea:focus,
.woocommerce #review_form #respond input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(250,179,21,.28); }
.woocommerce #review_form #respond label { display: block; font-weight: 600; font-size: .875rem; margin-bottom: .375rem; }
.woocommerce #review_form #respond .comment-form-rating { margin-bottom: 1rem; }

.woocommerce-noreviews {
  border: 1px dashed var(--line); border-radius: var(--radius);
  padding: 1.25rem; color: var(--muted); background: var(--bg);
}

/* ==========================================================================
   MENU DÉROULANT DES CATÉGORIES
   Au survol d'une catégorie, ses sous-catégories apparaissent avec un visuel
   qui change selon celle que l'on survole.
   ========================================================================== */

.mainnav li.has-mega { position: static; }
.mainnav { position: relative; }

.mega {
  position: absolute;
  left: 0; right: 0; top: 100%;
  background: var(--white);
  border-top: 3px solid var(--brand);
  box-shadow: 0 18px 40px -18px rgba(20, 19, 15, .35);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .16s ease, transform .16s ease, visibility .16s;
  z-index: 70;
}

.mainnav li.has-mega:hover .mega,
.mainnav li.has-mega:focus-within .mega {
  opacity: 1; visibility: visible; transform: translateY(0);
}

.mega__inner {
  max-width: var(--maxw); margin: 0 auto; padding: 28px 20px 32px;
  display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 36px;
  align-items: start;
}

.mega__title {
  font-family: var(--font-display); font-size: 12px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
  margin-bottom: 14px;
}

.mega__list {
  display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px 20px; list-style: none; margin: 0; padding: 0;
}
.mega__list li { display: block; }
.mega__list a {
  display: block; padding: 9px 12px; border-radius: 10px;
  color: var(--ink) !important; transition: background .14s;
}
.mega__list a:hover { background: var(--brand-soft); }
.mega__list a span { display: block; font-family: var(--font-display); font-weight: 620; font-size: 14.5px; }
.mega__list a small { display: block; font-size: 12px; color: var(--muted); margin-top: 1px; }

.mega__all {
  display: inline-block; margin-top: 18px;
  font-family: var(--font-display); font-weight: 700; font-size: 14px;
  color: var(--ink) !important; border-bottom: 2px solid var(--brand); padding-bottom: 2px;
}

/* Hauteur plafonnee : le panneau ne doit pas dependre du format de la photo. */
.mega__media {
  border-radius: var(--radius); overflow: hidden; background: var(--bg);
  height: 230px;
}
.mega__media img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: opacity .18s;
}
.mega__nomedia {
  display: block; width: 100%; height: 100%;
  background: repeating-linear-gradient(45deg, var(--bg), var(--bg) 10px, #ECEBE7 10px, #ECEBE7 20px);
}

@media (max-width: 1024px) {
  .mega { display: none; }
}

/* Mentions légales, en pied de page */
.footer .legal {
  border-top: 1px solid rgba(255,255,255,.1);
  margin-top: 28px; padding-top: 22px;
  font-size: 12.5px; line-height: 1.7; color: #8E8D87;
}
.footer .legal__id { color: #B9B7B0; font-weight: 600; margin-bottom: 4px; }
.footer .legal__ids { margin-bottom: 2px; }

/* ==========================================================================
   FORMULAIRES ET PAGES INSTITUTIONNELLES
   ========================================================================== */

.dp-form { margin: 1.25rem 0 2rem; }
.dp-form__body p { margin-bottom: 1.125rem; }
.dp-form label { display: block; font-family: var(--font-display); font-weight: 600; font-size: .875rem; margin-bottom: .4rem; }
.dp-form label span { color: var(--red); }
.dp-form input[type="text"], .dp-form input[type="email"], .dp-form input[type="tel"], .dp-form textarea {
  width: 100%; padding: 12px 15px; border: 2px solid var(--line); border-radius: 12px;
  font-family: var(--font-body); font-size: 15px; background: var(--white); outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.dp-form input:focus, .dp-form textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(250,179,21,.28); }
.dp-form input[type="file"] {
  width: 100%; padding: 11px 14px; border: 1.5px dashed var(--line);
  border-radius: 12px; background: var(--bg); font-size: 14px;
}
.dp-form textarea { resize: vertical; min-height: 130px; }
.dp-form .dp-hint { display: block; font-size: .75rem; color: var(--muted); margin-top: .35rem; }

.dp-form__row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.dp-form__row3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 1rem; }
@media (max-width: 640px) {
  .dp-form__row2, .dp-form__row3 { grid-template-columns: 1fr; }
}

/* Champ piège : invisible pour un humain, rempli par les robots. */
.dp-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.dp-form__ok, .dp-form__error {
  padding: 1rem 1.125rem; border-radius: var(--radius); margin-bottom: 1.25rem;
  border: 1px solid var(--line); border-top: 3px solid var(--green); background: var(--white);
}
.dp-form__error { border-top-color: var(--red); }

/* Pages de contenu : lisibilité avant tout */
/* Largeur de lecture : juste pour la prose (CGV, mentions legales, FAQ).
   Le panier, la commande et l'espace client sont des interfaces, pas des
   textes : ils reprennent toute la largeur du conteneur. */
.page-body { max-width: 78ch; font-size: 1.0125rem; line-height: 1.75; }
body.woocommerce-cart .page-body,
body.woocommerce-checkout .page-body,
body.woocommerce-account .page-body,
body.woocommerce-page .page-body:has(.dp-cart, .dp-checkout) { max-width: none; }
.page-body h2 {
  font-size: 1.35rem; font-weight: 800; margin: 2.25rem 0 .875rem;
  padding-bottom: .5rem; border-bottom: 2px solid var(--brand);
}
.page-body h3 { font-size: 1.075rem; font-weight: 700; margin: 1.5rem 0 .5rem; }
.page-body p { margin-bottom: 1rem; }
.page-body ul, .page-body ol { margin: 0 0 1.125rem 1.25rem; }
.page-body li { margin-bottom: .45rem; }
.page-body a { color: var(--brand-700); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.page-body table { width: 100%; border-collapse: collapse; margin-bottom: 1.5rem; font-size: .9375rem; }
.page-body th {
  text-align: left; background: var(--bg); padding: 11px 13px;
  font-family: var(--font-display); font-size: .75rem; text-transform: uppercase; letter-spacing: .06em;
  border: 1px solid var(--line);
}
.page-body td { padding: 12px 13px; border: 1px solid var(--line); vertical-align: top; }

/* Le formulaire prend toute la largeur, même dans une page de texte */
.page-body .dp-form { max-width: none; }

.dp-legal-gap { color: var(--muted); }
.dp-placeholder--inline { display: inline-block; margin: 0 2px; }

/* ==========================================================================
   ACCUEIL — questions fréquentes et bandeau revendeur
   ========================================================================== */

.faq { max-width: 860px; margin: 0 auto; display: flex; flex-direction: column; gap: .625rem; }

.faq__item {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--white); overflow: hidden;
  transition: border-color .15s;
}
.faq__item[open] { border-color: var(--brand); }

.faq__item summary {
  cursor: pointer; list-style: none;
  padding: 1.0625rem 3rem 1.0625rem 1.25rem; position: relative;
  font-family: var(--font-display); font-weight: 620; font-size: 1rem; color: var(--ink);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: ""; position: absolute; right: 1.25rem; top: 50%;
  width: 10px; height: 10px; margin-top: -6px;
  border-right: 2.5px solid var(--brand-700); border-bottom: 2.5px solid var(--brand-700);
  transform: rotate(45deg); transition: transform .18s;
}
.faq__item[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq__item summary:hover { background: var(--bg); }

.faq__body { padding: 0 1.25rem 1.25rem; color: var(--muted); font-size: .9375rem; line-height: 1.7; }
.faq__body p { margin-bottom: .625rem; }
.faq__body p:last-child { margin-bottom: 0; }
.faq__body a { color: var(--brand-700); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }

.reseller {
  display: flex; align-items: center; gap: 2rem; flex-wrap: wrap;
  padding: 2rem clamp(1.5rem, 4vw, 2.5rem);
  border-radius: var(--radius); background: var(--ink); color: var(--white);
  border-left: 5px solid var(--brand);
}
.reseller .kicker { color: var(--brand); }
.reseller h2 { font-size: clamp(1.35rem, 2.5vw, 1.75rem); font-weight: 800; margin: .375rem 0 .625rem; }
.reseller p { color: #CFCEC8; max-width: 62ch; font-size: .9375rem; }
.reseller .btn { margin-left: auto; flex: none; }
@media (max-width: 780px) { .reseller .btn { margin-left: 0; } }

/* ==========================================================================
   ANIMATIONS
   Apparition au défilement, survols, et retour visuel sur le panier.
   Tout est neutralisé si le visiteur demande moins de mouvement.
   ========================================================================== */

.dp-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .5s cubic-bezier(.22,.7,.3,1), transform .5s cubic-bezier(.22,.7,.3,1);
  will-change: opacity, transform;
}
.dp-reveal.is-in { opacity: 1; transform: none; }

/* Blocs produits : élévation nette au survol */
.prod-card {
  transition: transform .22s cubic-bezier(.22,.7,.3,1), box-shadow .22s, border-color .18s;
}
.prod-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 34px -18px rgba(20,19,15,.4);
}
.prod-card .thumb, .prod-card img { transition: transform .45s cubic-bezier(.22,.7,.3,1); }
.prod-card:hover img { transform: scale(1.045); }

/* Tuiles de catégorie */
.cat-card { transition: transform .2s cubic-bezier(.22,.7,.3,1), border-color .18s, box-shadow .2s; }
.cat-card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px -18px rgba(20,19,15,.35); }
.cat-card .tile { transition: transform .28s cubic-bezier(.22,.7,.3,1), background .18s; }
.cat-card:hover .tile { transform: scale(1.08) rotate(-3deg); background: var(--brand); }

/* Boutons : réponse immédiate au clic */
.btn { transition: background .15s, color .15s, transform .12s, box-shadow .18s; }
.btn:active { transform: translateY(1px); }
.btn-primary:hover { box-shadow: 0 8px 20px -8px rgba(250,179,21,.85); }

/* Pastille du panier : pulsation courte à chaque ajout */
@keyframes dp-pop {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.45); }
  100% { transform: scale(1); }
}
.cart-badge.dp-pop { animation: dp-pop .42s cubic-bezier(.3,1.4,.5,1); }

/* Section promotions : fond légèrement teinté pour la détacher */
.section--sale { background: linear-gradient(180deg, var(--brand-soft), var(--white)); }

/* Étiquette « Promo » plus visible */
.prod-card .badge {
  background: var(--red); color: #fff;
  box-shadow: 0 4px 12px -4px rgba(196,54,43,.6);
}

@media (prefers-reduced-motion: reduce) {
  .dp-reveal, .prod-card, .cat-card, .cat-card .tile, .prod-card img, .btn {
    transition: none !important; animation: none !important; transform: none !important;
  }
  .dp-reveal { opacity: 1; }
}

/* ==========================================================================
   LIVRAISON ET RÉFÉRENCES CLIENTS
   ========================================================================== */

.delivery { padding: 56px 0; background: var(--bg); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.delivery__inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 2.5rem; align-items: center; }
@media (max-width: 860px) { .delivery__inner { grid-template-columns: 1fr; gap: 1.75rem; } }

.delivery__head h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; margin: .375rem 0 .5rem; }
.delivery__carrier { color: var(--muted); font-size: .9375rem; }
.delivery__logo { display: inline-block; margin-top: 1rem; background: var(--white); padding: 12px 18px; border-radius: 12px; border: 1px solid var(--line); }
.delivery__logo img { max-height: 46px; width: auto; display: block; }

.delivery__zones { list-style: none; margin: 0; padding: 0; display: grid; gap: .625rem; }
.delivery__zones li {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--brand);
  border-radius: var(--radius); padding: 1rem 1.25rem;
}
.delivery__zone { font-family: var(--font-display); font-weight: 620; font-size: 1rem; }
.delivery__delay { font-family: var(--font-display); font-weight: 800; font-size: 1.05rem; color: var(--brand-700); white-space: nowrap; }
.delivery__note { grid-column: 1 / -1; font-size: .8125rem; color: var(--muted); margin-top: .5rem; }

/* Bande défilante des références */
.trust { padding: 48px 0 52px; overflow: hidden; }
.trust__title {
  text-align: center; font-family: var(--font-display); font-size: 12px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 28px;
}
.trust__viewport {
  position: relative;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.trust__track {
  display: flex; align-items: center; gap: 3.5rem; width: max-content;
  animation: dp-marquee 32s linear infinite;
}
.trust__viewport:hover .trust__track { animation-play-state: paused; }
.trust__item { flex: none; display: block; }
.trust__item img {
  height: 46px; width: auto; display: block;
  filter: grayscale(1); opacity: .55;
  transition: filter .2s, opacity .2s, transform .2s;
}
.trust__item:hover img { filter: none; opacity: 1; transform: scale(1.06); }

/* La piste contient deux fois la liste : la faire glisser de moitié boucle sans saut. */
@keyframes dp-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .trust__track { animation: none; flex-wrap: wrap; justify-content: center; width: auto; gap: 2rem; }
  .trust__item img { filter: none; opacity: 1; }
}

/* Fondu du visuel du menu quand on passe d'une sous-catégorie à l'autre */
.mega__media img { transition: opacity .13s ease; }
.mega__media img.is-swapping { opacity: 0; }

/* La sous-catégorie survolée se distingue nettement */
.mega__list a { position: relative; }
.mega__list a::before {
  content: ""; position: absolute; left: 0; top: 8px; bottom: 8px;
  width: 3px; border-radius: 3px; background: var(--brand);
  opacity: 0; transition: opacity .14s;
}
.mega__list a:hover::before, .mega__list a:focus-visible::before { opacity: 1; }

/* Bandeau promotionnel */
.promo-band { background: linear-gradient(100deg, var(--brand) 0%, #FFD466 100%); }
.promo-band__inner { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; padding: 1.125rem 20px; }
.promo-band__tag {
  flex: none; background: var(--ink); color: var(--brand);
  font-family: var(--font-display); font-weight: 800; font-size: 11px;
  letter-spacing: .12em; text-transform: uppercase; padding: .35rem .75rem; border-radius: 999px;
}
.promo-band__title { font-family: var(--font-display); font-weight: 800; font-size: 1.0625rem; color: var(--ink); }
.promo-band__text { font-size: .875rem; color: #4A3E1A; }
.promo-band .btn { margin-left: auto; background: var(--ink); color: var(--white); }
.promo-band .btn:hover { background: #000; color: var(--white); }
@media (max-width: 720px) { .promo-band .btn { margin-left: 0; } }

/* Nos engagements */
.commit { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.25rem; }
.commit__item {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem 1.375rem; background: var(--white); position: relative;
  transition: transform .2s cubic-bezier(.22,.7,.3,1), box-shadow .2s, border-color .18s;
}
.commit__item:hover { transform: translateY(-4px); border-color: var(--brand); box-shadow: 0 14px 30px -18px rgba(20,19,15,.3); }
.commit__num {
  display: block; font-family: var(--font-display); font-weight: 800; font-size: 1.75rem;
  color: var(--brand); line-height: 1; margin-bottom: .75rem;
}
.commit__item h3 { font-size: 1.0625rem; font-weight: 700; margin-bottom: .5rem; }
.commit__item p { font-size: .9rem; color: var(--muted); line-height: 1.65; }

/* ==========================================================================
   PROGRAMME REVENDEUR — page publique [dp_revendeur]
   Hierarchie B2B : le gain d'abord, l'eligibilite ensuite, la preuve apres.
   Motifs d'imprimerie dessines en SVG, pas de photo d'illustration.
   ========================================================================== */

.dp-rs { --rs-gap: 28px; }

.dp-rs-pat { position: absolute; inset: 0; width: 100%; height: 100%;
  color: var(--ink); opacity: .05; pointer-events: none; }

/* ---- Ouverture ---- */
.dp-rs-hero { position: relative; overflow: hidden; background: var(--brand-soft);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(28px, 5vw, 56px); display: grid; gap: 32px;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); align-items: center; }
.dp-rs-hero__txt, .dp-rs-hero__art { position: relative; }
.dp-rs-art { width: 100%; max-width: 320px; color: var(--muted); display: block; margin-inline: auto; }

.dp-rs-eyebrow { font: 600 12px/1.4 var(--font-body); letter-spacing: .09em;
  text-transform: uppercase; color: var(--brand-700); margin: 0 0 12px; }
.dp-rs-h1 { font: 800 clamp(26px, 3.6vw, 42px)/1.12 var(--font-display);
  color: var(--ink); margin: 0 0 16px; letter-spacing: -.02em; }
.dp-rs-lead { font-size: 17px; line-height: 1.6; color: var(--ink); margin: 0 0 24px; max-width: 54ch; }
.dp-rs-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; }
.dp-rs-fine { font-size: 13px; color: var(--muted); margin: 14px 0 0; }

/* Bandeau d'etat : ce que le visiteur connecte doit lire en premier. */
.dp-rs-live { display: flex; align-items: center; gap: 10px; background: var(--white);
  border: 1px solid var(--line); border-left: 3px solid var(--green);
  border-radius: var(--radius); padding: 14px 18px; margin: 0 0 22px; font-size: 15px; }
.dp-rs-live--wait { border-left-color: var(--brand); }
.dp-rs-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--green); flex: none; }
.dp-rs-live--wait .dp-rs-dot { background: var(--brand); }

/* ---- Titres de section ---- */
.dp-rs-h2 { font: 700 clamp(20px, 2.4vw, 27px)/1.25 var(--font-display);
  color: var(--ink); margin: 52px 0 20px; letter-spacing: -.01em; }
.dp-rs-note { font-size: 14px; color: var(--muted); margin: 18px 0 0; max-width: 68ch; }

/* ---- Les deux statuts ---- */
.dp-rs-tiers { display: grid; gap: var(--rs-gap); grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.dp-rs-tier { position: relative; background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px 26px; }
.dp-rs-tier--best { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.dp-rs-flag { position: absolute; top: -11px; left: 26px; background: var(--brand);
  color: var(--ink); font: 700 11px/1 var(--font-body); letter-spacing: .06em;
  text-transform: uppercase; padding: 7px 12px; border-radius: 999px; }
.dp-rs-tier__name { font: 600 14px/1 var(--font-body); letter-spacing: .07em;
  text-transform: uppercase; color: var(--muted); margin: 0 0 10px; }
.dp-rs-tier__rate { font: 800 clamp(38px, 5vw, 52px)/1 var(--font-display);
  color: var(--ink); margin: 0 0 12px; letter-spacing: -.03em; }
.dp-rs-tier__rate span { font-size: .5em; margin-left: 2px; }
.dp-rs-tier__for { font-size: 15px; color: var(--ink); margin: 0 0 18px; }

.dp-rs-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.dp-rs-list li { position: relative; padding-left: 26px; font-size: 15px; line-height: 1.5; color: var(--ink); }
.dp-rs-list li::before { content: ""; position: absolute; left: 0; top: .42em;
  width: 14px; height: 8px; border-left: 2px solid var(--brand-700);
  border-bottom: 2px solid var(--brand-700); transform: rotate(-45deg); }
.dp-rs-list em { color: var(--muted); font-style: normal; font-size: 13px; }

/* ---- Parcours ---- */
.dp-rs-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--rs-gap);
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); counter-reset: none; }
.dp-rs-steps li { background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px 24px; }
.dp-rs-step__n { display: inline-grid; place-items: center; width: 34px; height: 34px;
  border-radius: 50%; background: var(--brand); color: var(--ink);
  font: 800 15px/1 var(--font-display); margin-bottom: 14px; }
.dp-rs-steps b { display: block; font-size: 16px; color: var(--ink); margin-bottom: 6px; }
.dp-rs-steps span { display: block; font-size: 14px; line-height: 1.55; color: var(--muted); }

/* ---- Dossier ---- */
.dp-rs-docs { display: grid; gap: var(--rs-gap); grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }
.dp-rs-doc { background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px 24px; }
.dp-rs-doc__t { font: 700 16px/1.3 var(--font-display); color: var(--ink); margin: 0 0 16px; }

.dp-rs-safe { display: flex; gap: 14px; align-items: flex-start; margin-top: 20px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; }
.dp-rs-safe svg { width: 22px; height: 22px; flex: none; color: var(--brand-700); margin-top: 1px; }
.dp-rs-safe p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--muted); }

/* ---- Livraison ---- */
.dp-rs-zones { display: grid; gap: var(--rs-gap); grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.dp-rs-zone { background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px; text-align: center; }
.dp-rs-zone__d { font: 800 26px/1 var(--font-display); color: var(--brand-700); margin: 0 0 8px; }
.dp-rs-zone__z { font-size: 15px; color: var(--ink); margin: 0; }

/* ---- Questions ---- */
.dp-rs-faq { display: grid; gap: 12px; }
.dp-rs-faq details { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.dp-rs-faq summary { cursor: pointer; padding: 18px 22px; font: 600 16px/1.4 var(--font-display);
  color: var(--ink); list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.dp-rs-faq summary::-webkit-details-marker { display: none; }
.dp-rs-faq summary::after { content: ""; flex: none; width: 10px; height: 10px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: rotate(45deg); transition: transform .2s ease; }
.dp-rs-faq details[open] summary::after { transform: rotate(-135deg); }
.dp-rs-faq summary:focus-visible { outline: 3px solid var(--brand); outline-offset: -3px; }
.dp-rs-faq p { margin: 0; padding: 0 22px 20px; font-size: 15px; line-height: 1.65; color: var(--muted); }

/* ---- Rappel final ---- */
.dp-rs-end { position: relative; overflow: hidden; margin-top: 52px;
  background: var(--ink); border-radius: var(--radius); padding: clamp(26px, 4vw, 40px);
  display: flex; flex-wrap: wrap; gap: 22px; align-items: center; justify-content: space-between; }
.dp-rs-end .dp-rs-pat { color: var(--brand); opacity: .16; }
.dp-rs-end > div { position: relative; }
.dp-rs-end__t { font: 700 clamp(19px, 2.4vw, 26px)/1.25 var(--font-display); color: var(--white); margin: 0 0 8px; }
.dp-rs-end__s { font-size: 15px; color: #C9C7C0; margin: 0; }
.dp-rs-end .dp-btn { position: relative; }

@media (max-width: 860px) {
  .dp-rs-hero { grid-template-columns: 1fr; }
  .dp-rs-hero__art { order: -1; }
  .dp-rs-art { max-width: 210px; }
}

@media (prefers-reduced-motion: reduce) {
  .dp-rs-faq summary::after { transition: none; }
}

/* ---- Espace connecte : conditions professionnelles ---- */
.dp-rsx-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.dp-rsx-k { background: var(--brand-soft); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px 20px; }
.dp-rsx-k__v { display: block; font: 800 24px/1.1 var(--font-display); color: var(--ink); margin-bottom: 5px; }
.dp-rsx-k__l { display: block; font-size: 13px; color: var(--muted); }
.dp-rsx-cats { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; }
.dp-rsx-cats li { display: flex; justify-content: space-between; gap: 16px; align-items: center;
  border: 1px solid var(--line); border-radius: var(--radius); padding: 11px 16px; font-size: 15px; }
.dp-rsx-cats b { color: var(--brand-700); }


/* ==========================================================================
   ACCESSIBILITE — anneau de focus
   Le CSS comptait neuf « outline: none » pour six regles :focus-visible :
   par endroits, la navigation au clavier devenait invisible. Un seul anneau,
   partout, pose apres coup pour primer sur les regles precedentes.
   :focus-visible ne se declenche qu'au clavier : la souris ne le voit pas.
   ========================================================================== */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* Sur fond jaune, l'anneau jaune serait invisible : on passe a l'encre. */
.btn-primary:focus-visible,
.dp-btn--key:focus-visible,
.header .search button:focus-visible {
  outline-color: var(--ink);
}

/* Le champ de recherche perd sa bordure interne : l'anneau porte le focus. */
.header .search:focus-within {
  outline: 3px solid var(--brand);
  outline-offset: 2px;
}
.header .search input:focus-visible { outline: none; }

/* ---- Fidelite : conversion des points au panier ---- */
.dp-loy { background: var(--brand-soft); border: 1px solid var(--line);
  border-radius: var(--radius-md); padding: var(--space-md); margin-bottom: var(--space-sm); }
.dp-loy__head { display: flex; align-items: baseline; gap: var(--space-xs); margin-bottom: var(--space-xs); }
.dp-loy__pts { font: 800 var(--fs-price)/1 var(--font-display); color: var(--ink); }
.dp-loy__lbl { font-size: var(--fs-small); color: var(--muted); }
.dp-loy__form label { display: block; font-size: var(--fs-small); color: var(--ink); margin-bottom: var(--space-2xs); }
.dp-loy__row { display: flex; gap: var(--space-xs); }
.dp-loy__row input { flex: 1; min-width: 0; border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 10px 12px; font: 600 var(--fs-body)/1.2 var(--font-body); background: var(--white); }
.dp-loy__note { font-size: var(--fs-label); color: var(--muted); margin: var(--space-xs) 0 0; }

/* ==========================================================================
   PANIER
   Chaque ligne est une fiche de travail, pas une ligne de tableau : le client
   doit relire sa configuration avant de payer, c'est la que les erreurs
   d'impression se rattrapent.
   ========================================================================== */
.dp-cart { margin-bottom: var(--space-lg); }
.dp-cart__list { display: grid; gap: var(--space-sm); }

.dp-cartrow {
  display: grid; gap: var(--space-md);
  grid-template-columns: 92px minmax(0, 1fr) 128px 168px;
  align-items: start;
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius-md); padding: var(--space-md);
}
.dp-cartrow__img img { width: 92px; height: 92px; object-fit: cover;
  border-radius: var(--radius-sm); border: 1px solid var(--line); display: block; }

.dp-cartrow__name { font: 700 var(--fs-h3)/var(--lh-snug) var(--font-display);
  margin: 0 0 var(--space-xs); letter-spacing: var(--ls-tight); }
.dp-cartrow__name a { color: var(--ink); text-decoration: none; }
.dp-cartrow__name a:hover { color: var(--brand-700); }

/* La configuration reprend la mise en forme de WooCommerce (dl/dt/dd) : on
   l'aplatit en lignes lisibles plutot qu'en liste de definitions. */
.dp-cartrow__cfg { margin: 0; font-size: var(--fs-small); color: var(--muted); line-height: 1.7; }
/* WooCommerce emet une <dl class="variation"> avec un couple dt/dd par option.
   En deux colonnes, la fiche se relit d'un coup d'oeil au lieu de derouler. */
.dp-cartrow__cfg dl { margin: 0; display: grid; grid-template-columns: auto 1fr;
  gap: 3px var(--space-xs); align-items: baseline; }
.dp-cartrow__cfg dt { font-weight: 600; color: var(--ink); margin: 0; grid-column: 1; }
.dp-cartrow__cfg dd { margin: 0; grid-column: 2; }
.dp-cartrow__cfg dd p { margin: 0; }
.dp-cartrow__cfg p { margin: 0; }

.dp-cartrow__lbl { display: block; font-size: var(--fs-label); color: var(--muted);
  letter-spacing: var(--ls-label); text-transform: uppercase; margin-bottom: var(--space-2xs); }
.dp-cartrow__qty .quantity input { width: 100%; border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 9px 10px; font: 600 var(--fs-body)/1.2 var(--font-body);
  text-align: center; background: var(--white); }

.dp-cartrow__money { text-align: right; }
.dp-cartrow__total { display: block; font: 800 var(--fs-price)/1.1 var(--font-display); color: var(--ink); }
.dp-cartrow__unit { display: block; font-size: var(--fs-label); color: var(--muted); margin-top: var(--space-2xs); }
.dp-cartrow__del { display: inline-block; margin-top: var(--space-xs);
  font-size: var(--fs-small); color: var(--muted); text-decoration: underline; }
.dp-cartrow__del:hover { color: var(--red); }

.dp-cart__actions { display: flex; flex-wrap: wrap; gap: var(--space-xs);
  align-items: center; padding-top: var(--space-sm); }
.dp-cart__coupon { display: flex; gap: var(--space-xs); flex: 1 1 320px; }
.dp-cart__coupon input { flex: 1; min-width: 0; border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 10px 14px; font-size: var(--fs-body); background: var(--white); }

.dp-cart__side { max-width: 460px; margin-left: auto; }

@media (max-width: 900px) {
  .dp-cartrow { grid-template-columns: 72px minmax(0, 1fr); }
  .dp-cartrow__img img { width: 72px; height: 72px; }
  .dp-cartrow__qty, .dp-cartrow__money { grid-column: 2; }
  .dp-cartrow__money { text-align: left; }
  .dp-cart__side { max-width: none; }
}

/* ==========================================================================
   VALIDATION DE LA COMMANDE
   Saisie a gauche, recapitulatif colle a droite : le montant ne quitte jamais
   l'ecran pendant que le client remplit son adresse.
   ========================================================================== */
.dp-checkout { display: grid; gap: var(--space-lg);
  grid-template-columns: minmax(0, 1fr) 400px; align-items: start; }

.dp-checkout__side { position: sticky; top: 108px;
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius-md); padding: var(--space-md); }

.dp-co-step { background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius-md); padding: var(--space-md); margin-bottom: var(--space-sm); }
.dp-co-step__t { display: flex; align-items: center; gap: var(--space-xs);
  font: 700 var(--fs-h3)/1.2 var(--font-display); color: var(--ink);
  margin: 0 0 var(--space-md); letter-spacing: var(--ls-tight); }
.dp-co-step__n { display: grid; place-items: center; width: 26px; height: 26px; flex: none;
  border-radius: var(--radius-sm); background: var(--brand); color: var(--ink);
  font: 800 13px/1 var(--font-display); }
.dp-checkout__side .dp-co-step__t { margin-bottom: var(--space-sm); }

/* Facturation et livraison cote a cote tant que la place le permet. */
.dp-co-step__b { display: grid; gap: var(--space-md);
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

/* Le recapitulatif est dense : on resserre sans rendre illisible. */
.dp-checkout__side table { width: 100%; font-size: var(--fs-small); }
.dp-checkout__side .order-total .amount { font: 800 var(--fs-price)/1.1 var(--font-display); }
.dp-checkout__side #payment { background: transparent; border-radius: 0; }
.dp-checkout__side #payment ul.payment_methods { padding: 0; border: 0; list-style: none; }
.dp-checkout__side #payment ul.payment_methods li { border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: var(--space-sm); margin-bottom: var(--space-xs); }
.dp-checkout__side #payment div.form-row.place-order { padding: var(--space-sm) 0 0; margin: 0; }

@media (max-width: 1024px) {
  .dp-checkout { grid-template-columns: minmax(0, 1fr); }
  .dp-checkout__side { position: static; }
}
