/*
Theme Name: Dolifactory
Theme URI: https://www.dolifactory.com
Description: Thème enfant GeneratePress pour Dolifactory — modules industriels pour Dolibarr. Palette bleu acier, typographie Montserrat.
Author: Dolifactory
Template: generatepress
Version: 1.8.0
Text Domain: dolifactory
*/

/* ============================================================
   1. TOKENS — design system Dolifactory
   ============================================================ */
:root {
  --df-blue-900:  #163a5c;
  --df-blue-700:  #1f5891;
  --df-blue-600:  #2767a6;
  --df-blue-400:  #36a3d9;
  --df-blue-200:  #6fb8e6;
  --df-blue-50:   #eef4fa;

  --df-ink:       #16202b;
  --df-ink-soft:  #1d2a38;
  --df-ink-line:  #2a3a4a;

  --df-slate-700: #3c4a58;
  --df-slate-600: #52616f;
  --df-slate-500: #6b7886;
  --df-slate-400: #8b97a3;

  --df-line:      #eef1f4;
  --df-border:    #d4dde6;
  --df-canvas:    #f5f7f9;
  --df-white:     #ffffff;

  --df-font:      'Montserrat', system-ui, -apple-system, sans-serif;
  --df-font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;

  --df-radius:     9px;
  --df-radius-lg: 14px;
  --df-radius-pill: 999px;

  --df-shadow-sm: 0 1px 3px rgba(0,0,0,.06);
  --df-shadow-lg: 0 24px 60px -28px rgba(22,32,43,.5);

  --df-container: 1180px;
}

/* ============================================================
   2. BASE
   ============================================================ */
/* Le titre de page est porté par le contenu (bloc Titre) —
   on masque celui généré par le thème pour éviter le double H1. */
body.dolifactory-theme.page .entry-header .entry-title,
body.dolifactory-theme.page .page-header-content .entry-title {
  display: none;
}
body.dolifactory-theme.page .entry-content { margin-top: 0; }

body.dolifactory-theme {
  font-family: var(--df-font) !important;
  font-weight: 400;
  color: var(--df-ink);
  background: var(--df-white);
  -webkit-font-smoothing: antialiased;
  text-wrap: pretty;
}

body.dolifactory-theme .site-content .grid-container,
body.dolifactory-theme .site-info .grid-container,
body.dolifactory-theme .inside-header {
  max-width: var(--df-container);
  margin-left: auto !important;
  margin-right: auto !important;
  float: none !important;
}

/* Le conteneur de contenu doit occuper toute la largeur disponible
   pour que le centrage fonctionne, quelle que soit la mise en page GP. */
body.dolifactory-theme .site-content .content-area,
body.dolifactory-theme #primary.content-area {
  width: 100% !important;
  float: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

body.dolifactory-theme ::selection { background: #cfe2f2; }

/* ---- Titres ---- */
body.dolifactory-theme h1,
body.dolifactory-theme h2,
body.dolifactory-theme h3,
body.dolifactory-theme h4,
body.dolifactory-theme .wp-block-heading {
  font-family: var(--df-font) !important;
  color: var(--df-ink) !important;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

body.dolifactory-theme h1, body.dolifactory-theme .wp-block-heading.is-style-display {
  font-size: clamp(34px, 4.4vw, 54px) !important;
  font-weight: 800 !important;
  line-height: 1.05 !important;
  letter-spacing: -0.03em !important;
}
body.dolifactory-theme h2 {
  font-size: clamp(27px, 3vw, 38px) !important;
  font-weight: 800 !important;
  line-height: 1.12 !important;
}
body.dolifactory-theme h3 {
  font-size: clamp(19px, 1.7vw, 24px) !important;
  font-weight: 700 !important;
  line-height: 1.25 !important;
  letter-spacing: -0.015em !important;
}
body.dolifactory-theme h4 {
  font-size: 18px !important;
  font-weight: 700 !important;
}

/* ---- Corps de texte ---- */
body.dolifactory-theme p,
body.dolifactory-theme li {
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--df-slate-600);
  font-weight: 400;
}

body.dolifactory-theme .df-lead,
body.dolifactory-theme .has-large-font-size {
  font-size: 19px !important;
  line-height: 1.55 !important;
  color: var(--df-slate-600) !important;
  font-weight: 400 !important;
}

body.dolifactory-theme code,
body.dolifactory-theme .df-mono {
  font-family: var(--df-font-mono) !important;
  font-size: 0.92em;
}

/* ---- Liens ---- */
body.dolifactory-theme a { color: var(--df-blue-600); }
body.dolifactory-theme a:hover,
body.dolifactory-theme a:focus { color: var(--df-blue-700); }

/* ============================================================
   3. HEADER & NAVIGATION
   ============================================================ */
body.dolifactory-theme .site-header {
  background: rgba(255,255,255,.94) !important;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--df-line);
}

body.dolifactory-theme .main-navigation,
body.dolifactory-theme .main-navigation .main-nav ul li a {
  background: transparent !important;
  font-family: var(--df-font) !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  color: #48586a !important;
}

body.dolifactory-theme .main-navigation .main-nav ul li a:hover,
body.dolifactory-theme .main-navigation .main-nav ul li.current-menu-item > a {
  color: var(--df-blue-600) !important;
}

/* Logo — hauteur maîtrisée */
body.dolifactory-theme .site-logo img {
  height: 30px;
  width: auto;
}

/* CTA dans le menu : ajouter la classe "menu-cta" à l'item */
body.dolifactory-theme .main-navigation .main-nav ul li.menu-cta > a {
  background: var(--df-blue-600) !important;
  color: var(--df-white) !important;
  font-weight: 600 !important;
  padding: 11px 20px !important;
  border-radius: var(--df-radius) !important;
  line-height: 1 !important;
  margin-left: 12px;
  transition: background .15s ease;
}
body.dolifactory-theme .main-navigation .main-nav ul li.menu-cta > a:hover {
  background: var(--df-blue-700) !important;
}

/* ============================================================
   4. BOUTONS
   ============================================================ */
body.dolifactory-theme .wp-block-button__link,
body.dolifactory-theme .button,
body.dolifactory-theme button:not(.menu-toggle),
body.dolifactory-theme input[type="submit"] {
  font-family: var(--df-font) !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  background: var(--df-blue-600) !important;
  color: var(--df-white) !important;
  border: none !important;
  border-radius: var(--df-radius) !important;
  padding: 15px 26px !important;
  transition: background .15s ease;
}
body.dolifactory-theme .wp-block-button__link:hover,
body.dolifactory-theme .button:hover,
body.dolifactory-theme button:not(.menu-toggle):hover,
body.dolifactory-theme input[type="submit"]:hover {
  background: var(--df-blue-700) !important;
}

/* Bouton secondaire : style "outline" de Gutenberg */
body.dolifactory-theme .is-style-outline .wp-block-button__link,
body.dolifactory-theme .wp-block-button__link.is-style-outline {
  background: var(--df-white) !important;
  color: var(--df-blue-700) !important;
  border: 1.5px solid var(--df-border) !important;
}
body.dolifactory-theme .is-style-outline .wp-block-button__link:hover {
  border-color: var(--df-blue-600) !important;
}

/* ============================================================
   5. SECTIONS & BANDES
   ============================================================ */
/* Full-bleed — indispensable avec GeneratePress.
   On n'utilise PAS width:100vw : 100vw inclut la barre de défilement
   et provoque un débordement (bande blanche à droite). Les marges
   négatives seules suffisent, la largeur se calcule d'elle-même. */
body.dolifactory-theme .alignfull,
body.dolifactory-theme .wp-block-cover.alignfull,
body.dolifactory-theme .wp-block-group.alignfull {
  width: auto !important;
  max-width: none !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
  padding-left: calc(50vw - 50%) !important;
  padding-right: calc(50vw - 50%) !important;
}

/* Le contenu d'une bande pleine largeur reste aligné sur la grille. */
body.dolifactory-theme .alignfull > * {
  max-width: var(--df-container);
  margin-left: auto;
  margin-right: auto;
}

body.dolifactory-theme .alignwide {
  width: auto !important;
  max-width: none !important;
  margin-left: -110px !important;
  margin-right: -110px !important;
}
@media (max-width: 1400px) {
  body.dolifactory-theme .alignwide { margin-left: 0 !important; margin-right: 0 !important; }
}

html, body.dolifactory-theme { overflow-x: hidden; max-width: 100%; }

/* Bande claire */
body.dolifactory-theme .df-section-canvas {
  background: var(--df-canvas);
  border-top: 1px solid var(--df-line);
  border-bottom: 1px solid var(--df-line);
  padding-top: 88px;
  padding-bottom: 88px;
}

/* Bande sombre */
body.dolifactory-theme .df-section-ink {
  background: var(--df-ink);
  padding-top: 84px;
  padding-bottom: 84px;
}
body.dolifactory-theme .df-section-ink h1,
body.dolifactory-theme .df-section-ink h2,
body.dolifactory-theme .df-section-ink h3,
body.dolifactory-theme .df-section-ink .wp-block-heading {
  color: var(--df-white) !important;
}
body.dolifactory-theme .df-section-ink p,
body.dolifactory-theme .df-section-ink li { color: #aab8c5; }
body.dolifactory-theme .df-section-ink a { color: var(--df-blue-200); }

/* Encart bleu clair */
body.dolifactory-theme .df-section-blue {
  background: var(--df-blue-50);
  border-radius: 18px;
  padding: 64px;
}

/* Eyebrow — surtitre de section */
body.dolifactory-theme .df-eyebrow {
  font-size: 13px !important;
  font-weight: 600 !important;
  letter-spacing: 0.05em !important;
  text-transform: uppercase !important;
  color: var(--df-blue-600) !important;
  margin-bottom: 12px !important;
}
body.dolifactory-theme .df-section-ink .df-eyebrow { color: var(--df-blue-200) !important; }

/* ============================================================
   6. CARTES
   ============================================================ */
body.dolifactory-theme .df-card {
  background: var(--df-white);
  border: 1px solid var(--df-line);
  border-radius: var(--df-radius-lg);
  padding: 28px;
  box-shadow: var(--df-shadow-sm);
  height: 100%;
}
body.dolifactory-theme .df-card h3,
body.dolifactory-theme .df-card h4 { margin-top: 0 !important; }
body.dolifactory-theme .df-card p:last-child { margin-bottom: 0; }

body.dolifactory-theme .df-section-ink .df-card {
  background: var(--df-ink-soft);
  border-color: var(--df-ink-line);
  box-shadow: none;
}

/* Carte média (secteur / métier) */
body.dolifactory-theme .df-media-card {
  position: relative;
  border-radius: var(--df-radius-lg);
  overflow: hidden;
  min-height: 320px;
  display: flex;
  align-items: flex-end;
  box-shadow: var(--df-shadow-sm);
}
body.dolifactory-theme .df-media-card img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
body.dolifactory-theme .df-media-card > * { position: relative; z-index: 2; }
body.dolifactory-theme .df-media-card::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to top, rgba(11,18,26,.9) 0%, rgba(11,18,26,.2) 55%, rgba(11,18,26,0) 100%);
}

/* ============================================================
   7. BADGES & LISTES
   ============================================================ */
body.dolifactory-theme .df-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--df-blue-600);
  background: var(--df-blue-50);
  padding: 7px 13px;
  border-radius: var(--df-radius-pill);
}
body.dolifactory-theme .df-badge::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 2px;
  background: var(--df-blue-400);
}

body.dolifactory-theme .df-pill {
  display: inline-block;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--df-blue-700);
  background: var(--df-blue-50);
  border: 1px solid #d8e6f2;
  padding: 9px 16px;
  border-radius: var(--df-radius-pill);
}

/* Liste à puce carrée façon design system */
body.dolifactory-theme .df-list { list-style: none; margin: 0; padding: 0; }
body.dolifactory-theme .df-list li {
  position: relative;
  padding-left: 34px;
  margin-bottom: 13px;
  font-size: 16px;
  font-weight: 500;
  color: #283642;
}
body.dolifactory-theme .df-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 3px;
  width: 22px; height: 22px;
  border-radius: 6px;
  background: var(--df-blue-50);
}
body.dolifactory-theme .df-list li::after {
  content: "";
  position: absolute;
  left: 7.5px; top: 10.5px;
  width: 7px; height: 7px;
  border-radius: 2px;
  background: var(--df-blue-600);
}

/* ============================================================
   8. TABLEAU COMPARATIF (Dolibarr standard vs Dolifactory)
   ============================================================ */
body.dolifactory-theme .df-compare {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid #e6ebf0;
  border-radius: var(--df-radius-lg);
  overflow: hidden;
}
body.dolifactory-theme .df-compare th {
  font-family: var(--df-font);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--df-slate-500);
  background: var(--df-canvas);
  text-align: left;
  padding: 18px 24px;
  border: none;
}
body.dolifactory-theme .df-compare th:last-child {
  background: #16314e;
  color: #9fd0f0;
}
body.dolifactory-theme .df-compare td {
  padding: 22px 24px;
  border: none;
  border-top: 1px solid #e6ebf0;
  font-size: 15px;
  line-height: 1.5;
  vertical-align: top;
}
body.dolifactory-theme .df-compare td:first-child {
  font-size: 15.5px;
  font-weight: 700;
  color: var(--df-ink);
}
body.dolifactory-theme .df-compare td:nth-child(2) { color: #7c8896; }
body.dolifactory-theme .df-compare td:last-child {
  color: #26425e;
  background: #f4f9fd;
  font-weight: 500;
}
@media (max-width: 768px) {
  body.dolifactory-theme .df-compare,
  body.dolifactory-theme .df-compare tbody,
  body.dolifactory-theme .df-compare tr,
  body.dolifactory-theme .df-compare td { display: block; width: 100%; }
  body.dolifactory-theme .df-compare thead { display: none; }
  body.dolifactory-theme .df-compare tr { border-top: 1px solid #e6ebf0; }
  body.dolifactory-theme .df-compare td { border-top: none; padding: 10px 20px; }
  body.dolifactory-theme .df-compare td:first-child { padding-top: 20px; }
  body.dolifactory-theme .df-compare td:last-child { margin: 0 12px 16px; border-radius: 10px; }
}

/* ============================================================
   8bis. DOCUMENTATION (/docs/ et ses pages enfants)
   ============================================================ */

/* Colonne de lecture resserrée : la doc est du texte long. */
body.df-doc .site-content .grid-container { max-width: 900px; }

body.df-doc .entry-content { padding-top: 8px; }

/* Bandeau de titre */
body.df-doc .entry-content > h1:first-child,
body.df-doc .entry-content > .wp-block-heading:first-child {
  font-size: clamp(30px, 3.4vw, 40px) !important;
  font-weight: 800 !important;
  letter-spacing: -0.03em !important;
  line-height: 1.08 !important;
  color: var(--df-ink) !important;
  margin: 0 0 10px !important;
  padding-top: 44px;
  position: relative;
}
body.df-doc .entry-content > h1:first-child::before {
  content: "Documentation";
  display: block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--df-blue-600);
  margin-bottom: 14px;
}
/* Filet sous le titre */
body.df-doc .entry-content > h1:first-child::after {
  content: "";
  display: block;
  width: 96px; height: 4px;
  border-radius: 2px;
  margin-top: 22px;
  background: linear-gradient(90deg,
    var(--df-blue-900) 0 33%,
    var(--df-blue-600) 33% 66%,
    var(--df-blue-400) 66% 100%);
}

/* Sections */
body.df-doc .entry-content h2 {
  font-size: 23px !important;
  font-weight: 700 !important;
  letter-spacing: -0.015em !important;
  line-height: 1.3 !important;
  color: var(--df-ink) !important;
  margin: 52px 0 0 !important;
  padding-top: 26px;
  border-top: 1px solid var(--df-line);
}
body.df-doc .entry-content h2 + p,
body.df-doc .entry-content h2 + ul { margin-top: 16px; }

body.df-doc .entry-content h3 {
  font-size: 18px !important;
  font-weight: 700 !important;
  color: var(--df-ink) !important;
  margin: 32px 0 0 !important;
}

body.df-doc .entry-content p {
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--df-slate-600);
  margin: 14px 0 0;
}
body.df-doc .entry-content strong { color: var(--df-ink); font-weight: 600; }

/* Listes à puces carrées */
body.df-doc .entry-content ul { list-style: none; margin: 16px 0 0; padding: 0; }
body.df-doc .entry-content ul li {
  position: relative;
  padding-left: 24px;
  margin: 0 0 12px;
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--df-slate-600);
}
body.df-doc .entry-content ul li::before {
  content: "";
  position: absolute;
  left: 0; top: 10px;
  width: 7px; height: 7px;
  border-radius: 2px;
  background: var(--df-blue-400);
}
body.df-doc .entry-content ol { margin: 16px 0 0 20px; }
body.df-doc .entry-content ol li { margin-bottom: 12px; line-height: 1.65; }

/* Constantes, chemins, noms de champ */
body.df-doc .entry-content code {
  font-family: var(--df-font-mono);
  font-size: 13.5px;
  color: var(--df-blue-900);
  background: var(--df-blue-50);
  border: 1px solid #dce8f4;
  border-radius: 5px;
  padding: 2px 7px;
  white-space: nowrap;
}

/* Séparateur de bas de page + bloc support */
body.df-doc .entry-content hr {
  border: none;
  height: 1px;
  background: var(--df-line);
  margin: 56px 0 0;
}
body.df-doc .entry-content hr + p {
  background: var(--df-blue-50);
  border-radius: 12px;
  padding: 22px 26px;
  margin-top: 26px;
  font-size: 15.5px;
  font-weight: 500;
  color: var(--df-blue-900);
}

/* Sommaire de la documentation : la liste devient une grille de cartes */
body.df-doc-index .entry-content > ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 32px;
}
body.df-doc-index .entry-content > ul li {
  padding: 0;
  margin: 0;
  background: #fff;
  border: 1px solid var(--df-line);
  border-radius: 12px;
  box-shadow: var(--df-shadow-sm);
  transition: border-color .15s, transform .15s, box-shadow .15s;
}
body.df-doc-index .entry-content > ul li::before { display: none; }
body.df-doc-index .entry-content > ul li:hover {
  border-color: #cfe0ef;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px -14px rgba(22,32,43,.4);
}
body.df-doc-index .entry-content > ul li a {
  display: block;
  padding: 22px 24px;
  font-size: 16.5px;
  font-weight: 600;
  color: var(--df-ink);
  line-height: 1.4;
}
body.df-doc-index .entry-content > ul li a:hover { color: var(--df-blue-600); }
@media (max-width: 700px) {
  body.df-doc-index .entry-content > ul { grid-template-columns: 1fr; }
}

/* Lien de retour vers le sommaire, injecté par le thème */
body.df-doc.df-doc-child .entry-content > h1:first-child { padding-top: 20px; }

/* ============================================================
   8ter. WOOCOMMERCE — boutique & fiches produit
   ============================================================ */

/* --- Grille de la boutique --- */
body.dolifactory-theme.woocommerce ul.products {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  margin: 32px 0 0 !important;
}
body.dolifactory-theme.woocommerce ul.products::before,
body.dolifactory-theme.woocommerce ul.products::after { display: none !important; }

body.dolifactory-theme.woocommerce ul.products li.product {
  width: 100% !important;
  float: none !important;
  margin: 0 !important;
  background: #fff;
  border: 1px solid var(--df-line);
  border-radius: var(--df-radius-lg);
  padding: 26px;
  box-shadow: var(--df-shadow-sm);
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
body.dolifactory-theme.woocommerce ul.products li.product:hover {
  transform: translateY(-2px);
  border-color: #cfe0ef;
  box-shadow: 0 12px 28px -16px rgba(22,32,43,.42);
}
body.dolifactory-theme.woocommerce ul.products li.product img {
  border-radius: 10px;
  margin-bottom: 18px;
  /* Vignette carrée, mais le logo est contenu — jamais rogné. */
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  object-position: center;
  background: #fff;
  padding: 26px;
}
body.dolifactory-theme.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-family: var(--df-font) !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
  letter-spacing: -0.01em;
  color: var(--df-ink) !important;
  padding: 0 !important;
  margin: 0 0 8px !important;
}
body.dolifactory-theme.woocommerce ul.products li.product .price {
  font-family: var(--df-font) !important;
  font-size: 17px !important;
  font-weight: 600 !important;
  color: var(--df-blue-600) !important;
  margin: 0 0 16px !important;
}
body.dolifactory-theme.woocommerce ul.products li.product .button {
  display: inline-block;
  font-size: 15px !important;
  padding: 12px 20px !important;
  margin: 0 !important;
}
body.dolifactory-theme.woocommerce span.onsale {
  background: var(--df-blue-600) !important;
  font-family: var(--df-font);
  font-weight: 600;
  border-radius: var(--df-radius-pill);
  min-height: 0;
  line-height: 1;
  padding: 8px 14px;
}
@media (max-width: 1180px) {
  body.dolifactory-theme.woocommerce ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  body.dolifactory-theme.woocommerce ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  body.dolifactory-theme.woocommerce ul.products { grid-template-columns: 1fr; }
}

/* --- Menu de sélection des catégories (injecté par le thème) --- */
body.dolifactory-theme .df-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 40px 0 4px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--df-line);
}
body.dolifactory-theme .df-cats a {
  font-family: var(--df-font);
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1;
  color: var(--df-slate-600);
  background: #fff;
  border: 1.5px solid var(--df-border);
  padding: 11px 18px;
  border-radius: var(--df-radius-pill);
  transition: border-color .15s, color .15s, background .15s;
  white-space: nowrap;
}
body.dolifactory-theme .df-cats a:hover {
  border-color: var(--df-blue-600);
  color: var(--df-blue-600);
}
body.dolifactory-theme .df-cats a.is-current {
  background: var(--df-blue-600);
  border-color: var(--df-blue-600);
  color: #fff;
}
body.dolifactory-theme .df-cats a .df-cats-n {
  font-weight: 500;
  opacity: .6;
  margin-left: 6px;
}

/* Le tri et le compteur WooCommerce s'alignent sous le menu. */
body.dolifactory-theme.woocommerce .woocommerce-result-count,
body.dolifactory-theme.woocommerce .woocommerce-ordering {
  font-family: var(--df-font);
  font-size: 14px;
  color: var(--df-slate-400);
  margin: 22px 0 0 !important;
}
body.dolifactory-theme.woocommerce .woocommerce-ordering select {
  font-family: var(--df-font);
  font-size: 14.5px;
  padding: 10px 14px;
}

/* --- Fiche produit --- */
body.dolifactory-theme.single-product div.product {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
  padding-top: 40px;
}
body.dolifactory-theme.single-product div.product .woocommerce-product-gallery {
  width: 100% !important;
  float: none !important;
  margin: 0 !important;
}
body.dolifactory-theme.single-product div.product .woocommerce-product-gallery img {
  border-radius: var(--df-radius-lg);
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  background: #fff;
  padding: 40px;
}
body.dolifactory-theme.single-product div.product .summary {
  width: 100% !important;
  float: none !important;
  margin: 0 !important;
}
body.dolifactory-theme.single-product div.product .woocommerce-tabs,
body.dolifactory-theme.single-product div.product .related,
body.dolifactory-theme.single-product div.product .upsells {
  grid-column: 1 / -1;
}

body.dolifactory-theme.single-product .product_title {
  font-size: clamp(28px, 3.2vw, 38px) !important;
  font-weight: 800 !important;
  letter-spacing: -0.03em !important;
  line-height: 1.1 !important;
  color: var(--df-ink) !important;
  margin: 0 0 18px !important;
  padding: 0 !important;
}
body.dolifactory-theme.single-product div.product p.price,
body.dolifactory-theme.single-product div.product span.price {
  font-family: var(--df-font) !important;
  font-size: 28px !important;
  font-weight: 700 !important;
  color: var(--df-blue-600) !important;
  letter-spacing: -0.02em;
  margin: 0 0 22px !important;
}
body.dolifactory-theme.single-product div.product p.price del { color: var(--df-slate-400) !important; font-weight: 400; }

body.dolifactory-theme.single-product .woocommerce-product-details__short-description p {
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--df-slate-600);
  margin: 0 0 14px;
}
body.dolifactory-theme.single-product .woocommerce-product-details__short-description strong { color: var(--df-ink); font-weight: 600; }

body.dolifactory-theme.woocommerce div.product form.cart {
  margin: 26px 0 0 !important;
  padding: 24px;
  background: var(--df-blue-50);
  border-radius: var(--df-radius-lg);
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
body.dolifactory-theme.woocommerce div.product form.cart .quantity input {
  height: 50px;
  border-radius: var(--df-radius);
  border: 1.5px solid var(--df-border);
  background: #fff;
  font-family: var(--df-font);
  font-weight: 600;
}
body.dolifactory-theme.woocommerce div.product form.cart .button {
  float: none !important;
  font-size: 16px !important;
  padding: 15px 28px !important;
}

body.dolifactory-theme.woocommerce .product_meta {
  font-family: var(--df-font);
  font-size: 13.5px;
  color: var(--df-slate-400);
  border-top: 1px solid var(--df-line);
  margin-top: 26px;
  padding-top: 20px;
  display: block;
}
body.dolifactory-theme.woocommerce .product_meta a { color: var(--df-slate-500); }
body.dolifactory-theme.woocommerce .product_meta a:hover { color: var(--df-blue-600); }

/* Onglets produit */
body.dolifactory-theme.woocommerce div.product .woocommerce-tabs { margin-top: 56px; }
body.dolifactory-theme.woocommerce div.product .woocommerce-tabs ul.tabs {
  padding: 0 !important;
  margin: 0 0 32px !important;
  border-bottom: 1px solid #e2e8ee;
  display: flex;
  flex-wrap: wrap;
}
body.dolifactory-theme.woocommerce div.product .woocommerce-tabs ul.tabs::before { display: none !important; }
body.dolifactory-theme.woocommerce div.product .woocommerce-tabs ul.tabs li {
  background: none !important;
  border: none !important;
  border-radius: 0 !important;
  border-bottom: 3px solid transparent !important;
  margin: 0 30px 0 0 !important;
  padding: 0 !important;
  box-shadow: none !important;
}
body.dolifactory-theme.woocommerce div.product .woocommerce-tabs ul.tabs li::before,
body.dolifactory-theme.woocommerce div.product .woocommerce-tabs ul.tabs li::after { display: none !important; }
body.dolifactory-theme.woocommerce div.product .woocommerce-tabs ul.tabs li a {
  font-family: var(--df-font) !important;
  font-size: 16px !important;
  font-weight: 500 !important;
  color: var(--df-slate-400) !important;
  padding: 14px 2px !important;
  display: block;
}
body.dolifactory-theme.woocommerce div.product .woocommerce-tabs ul.tabs li.active {
  border-bottom-color: var(--df-blue-600) !important;
}
body.dolifactory-theme.woocommerce div.product .woocommerce-tabs ul.tabs li.active a {
  color: var(--df-ink) !important;
  font-weight: 700 !important;
}
body.dolifactory-theme.woocommerce div.product .woocommerce-Tabs-panel h2 {
  font-size: 23px !important;
  font-weight: 700 !important;
  margin: 0 0 16px !important;
}

/* Produits liés */
body.dolifactory-theme.woocommerce .related > h2,
body.dolifactory-theme.woocommerce .upsells > h2 {
  font-size: 26px !important;
  font-weight: 800 !important;
  letter-spacing: -0.02em !important;
  margin: 56px 0 0 !important;
}

/* Messages, fil d'Ariane, notices */
body.dolifactory-theme .woocommerce-breadcrumb {
  font-family: var(--df-font);
  font-size: 13.5px;
  color: var(--df-slate-400);
  padding-top: 28px;
}
body.dolifactory-theme .woocommerce-breadcrumb a { color: var(--df-slate-500); }
body.dolifactory-theme .woocommerce-message,
body.dolifactory-theme .woocommerce-info {
  border-top-color: var(--df-blue-600) !important;
  background: var(--df-blue-50);
  font-family: var(--df-font);
  font-size: 15px;
  border-radius: var(--df-radius);
}
body.dolifactory-theme .woocommerce-message::before,
body.dolifactory-theme .woocommerce-info::before { color: var(--df-blue-600) !important; }

@media (max-width: 900px) {
  body.dolifactory-theme.single-product div.product { grid-template-columns: 1fr; gap: 32px; }
}

/* --- Bandeau et cartes de la page boutique --- */
body.dolifactory-theme .dfshop {
  position: relative;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  background: var(--df-ink);
  overflow: hidden;
}
body.dolifactory-theme .dfshop img.dfshop-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: .2;
  margin: 0; display: block;
}
body.dolifactory-theme .dfshop .dfshop-in {
  position: relative; z-index: 2;
  max-width: var(--df-container);
  margin: 0 auto;
  padding: 76px 32px;
}
body.dolifactory-theme .dfshop .dfshop-eyebrow {
  font-size: 13px !important;
  font-weight: 600 !important;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--df-blue-200) !important;
  margin: 0 !important;
}
body.dolifactory-theme .dfshop h2.dfshop-t {
  font-size: 42px !important;
  font-weight: 800 !important;
  letter-spacing: -.03em !important;
  line-height: 1.07 !important;
  color: #fff !important;
  margin: 12px 0 0 !important;
  max-width: 820px;
}
body.dolifactory-theme .dfshop p.dfshop-p {
  font-size: 18px !important;
  font-weight: 400;
  line-height: 1.55;
  color: #c2cedb !important;
  margin: 18px 0 0 !important;
  max-width: 680px;
}
body.dolifactory-theme .dfshop .dfshop-keys {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-top: 26px;
}
body.dolifactory-theme .dfshop .dfshop-keys span {
  font-size: 13.5px;
  font-weight: 500;
  color: #cfe0ef;
  background: rgba(255,255,255,.09);
  border: 1px solid rgba(255,255,255,.14);
  padding: 8px 15px;
  border-radius: var(--df-radius-pill);
}

body.dolifactory-theme .dfnote {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 44px 0 8px;
}
body.dolifactory-theme .dfnote > div {
  background: #fff;
  border: 1px solid var(--df-line);
  border-radius: var(--df-radius-lg);
  padding: 26px;
  box-shadow: var(--df-shadow-sm);
  min-width: 0;
}
body.dolifactory-theme .dfnote h3 {
  font-size: 17px !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
  color: var(--df-ink) !important;
  margin: 0 !important;
}
body.dolifactory-theme .dfnote p {
  font-size: 14.5px !important;
  font-weight: 400;
  line-height: 1.55;
  color: var(--df-slate-600) !important;
  margin: 9px 0 0 !important;
}
@media (max-width: 900px) {
  body.dolifactory-theme .dfnote { grid-template-columns: 1fr; gap: 14px; }
  body.dolifactory-theme .dfshop h2.dfshop-t { font-size: 30px !important; }
  body.dolifactory-theme .dfshop .dfshop-in { padding: 48px 24px; }
}

/* --- Description longue d'une fiche produit --- */
body.dolifactory-theme .dfp h3 {
  font-size: 20px !important;
  font-weight: 700 !important;
  letter-spacing: -.015em !important;
  line-height: 1.3 !important;
  color: var(--df-ink) !important;
  margin: 38px 0 0 !important;
  padding-top: 24px;
  border-top: 1px solid var(--df-line);
}
body.dolifactory-theme .dfp h3:first-of-type {
  margin-top: 0 !important;
  padding-top: 0;
  border-top: none;
}
body.dolifactory-theme .dfp p {
  font-size: 16.5px !important;
  line-height: 1.65;
  color: var(--df-slate-600) !important;
  margin: 14px 0 0 !important;
}
body.dolifactory-theme .dfp strong { color: var(--df-ink); font-weight: 600; }
body.dolifactory-theme .dfp ul {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
body.dolifactory-theme .dfp ul li {
  position: relative;
  padding-left: 34px;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.45;
  color: #283642;
  margin: 0;
}
body.dolifactory-theme .dfp ul li::before {
  content: "";
  position: absolute; left: 0; top: 0;
  width: 22px; height: 22px;
  border-radius: 6px;
  background: var(--df-blue-50);
}
body.dolifactory-theme .dfp ul li::after {
  content: "";
  position: absolute; left: 7.5px; top: 7.5px;
  width: 7px; height: 7px;
  border-radius: 2px;
  background: var(--df-blue-600);
}
body.dolifactory-theme .dfp .dfp-callout {
  background: var(--df-blue-50);
  border-radius: 12px;
  padding: 24px 26px;
  margin-top: 26px;
}
body.dolifactory-theme .dfp .dfp-callout p {
  margin: 0 !important;
  color: var(--df-blue-700) !important;
  font-weight: 500;
  font-size: 15.5px !important;
}
body.dolifactory-theme .dfp a.dfp-doc {
  display: inline-block;
  font-size: 15.5px;
  font-weight: 600;
  color: var(--df-blue-600);
}
@media (max-width: 700px) {
  body.dolifactory-theme .dfp ul { grid-template-columns: 1fr; }
}

/* ============================================================
   9. FOOTER
   ============================================================ */
body.dolifactory-theme .site-footer,
body.dolifactory-theme .site-info {
  background: var(--df-white) !important;
  border-top: 1px solid var(--df-line);
  color: var(--df-slate-400);
  font-size: 13px;
}
body.dolifactory-theme .site-info a { color: var(--df-slate-500); }
body.dolifactory-theme .site-info a:hover { color: var(--df-blue-600); }

body.dolifactory-theme .footer-widgets {
  background: var(--df-white) !important;
  border-top: 1px solid var(--df-line);
}
body.dolifactory-theme .footer-widgets .widget-title {
  font-size: 13px !important;
  font-weight: 700 !important;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--df-slate-500) !important;
}

/* ============================================================
   10. FORMULAIRES
   ============================================================ */
body.dolifactory-theme input[type="text"],
body.dolifactory-theme input[type="email"],
body.dolifactory-theme input[type="tel"],
body.dolifactory-theme textarea,
body.dolifactory-theme select {
  font-family: var(--df-font);
  font-size: 15.5px;
  color: var(--df-ink);
  background: var(--df-white);
  border: 1.5px solid var(--df-border);
  border-radius: var(--df-radius);
  padding: 13px 16px;
}
body.dolifactory-theme input:focus,
body.dolifactory-theme textarea:focus,
body.dolifactory-theme select:focus {
  border-color: var(--df-blue-600);
  outline: none;
  box-shadow: 0 0 0 3px rgba(39,103,166,.14);
}
body.dolifactory-theme label {
  font-size: 14px;
  font-weight: 600;
  color: var(--df-slate-700);
}

/* ============================================================
   11. RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  body.dolifactory-theme .df-section-blue { padding: 44px; }
}
@media (max-width: 768px) {
  body.dolifactory-theme .df-section-canvas,
  body.dolifactory-theme .df-section-ink { padding-top: 56px; padding-bottom: 56px; }
  body.dolifactory-theme .df-section-blue { padding: 32px; border-radius: 14px; }
  body.dolifactory-theme .df-card { padding: 22px; }
  body.dolifactory-theme p, body.dolifactory-theme li { font-size: 16px; }
}
