/* ==========================================================================
   Optimax — accès temporaire
   Pattern : Minimal Single Column · Style : Trust & Authority
   Plus Jakarta Sans (UI) · Fraunces (display accent) · JetBrains Mono (mono)
   ========================================================================== */

:root {
  color-scheme: only light;

  /* Palette : slate pro + accent navy Optimax + lime discret */
  --paper:    #F8FAFC;
  --surface:  #FFFFFF;
  --ink:      #0F172A;          /* slate-900 */
  --ink-90:   #020617;          /* slate-950 */
  --ink-60:   #334155;          /* slate-700 */
  --ink-50:   #475569;          /* slate-600 */
  --ink-30:   #94A3B8;          /* slate-400 */
  --ink-20:   #CBD5E1;          /* slate-300 */
  --ink-15:   #E2E8F0;          /* slate-200 */
  --ink-10:   #F1F5F9;          /* slate-100 */

  --navy:     #0A1C3A;          /* Optimax navy */
  --navy-hov: #152b55;
  --lime:     #84CC16;          /* plus institutional than lime citron */
  --lime-soft:#ECFCCB;

  --ff-sans:    'Plus Jakarta Sans', system-ui, sans-serif;
  --ff-display: 'Fraunces', 'Georgia', serif;
  --ff-mono:    'JetBrains Mono', ui-monospace, monospace;

  --max-w: 1120px;
  --gutter: clamp(20px, 4vw, 48px);

  --radius: 10px;
  --radius-lg: 14px;
  --shadow-sm: 0 1px 2px rgba(15,23,42,0.06);
  --shadow-md: 0 8px 24px rgba(15,23,42,0.08), 0 2px 6px rgba(15,23,42,0.04);
  --shadow-lg: 0 20px 40px rgba(15,23,42,0.10), 0 4px 10px rgba(15,23,42,0.05);

  --dur: 220ms;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--ff-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-60);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ——— Regle globale: img avec max-width 100%, mais SVG laissé a leur taille native (sinon casse Ecwid) ——— */
:where(img) { display: block; max-width: 100%; height: auto; }
:where(svg) { display: block; max-width: 100%; height: auto; }

/* ——— Fix specifique Ecwid : leurs SVG avec classe horizontal-arrow-* et autres ne doivent pas etre stretchés ——— */
svg[class*="horizontal-arrow"],
svg[class*="horizontal-menu"],
svg[class*="ecwid"],
svg[class*="arrow"],
.shop-frame svg,
.shop-tools svg,
#my-store-31308054 svg,
#my-search-31308054 svg,
#my-categories-31308054 svg {
  width: 12px !important;
  height: 12px !important;
  max-width: 12px !important;
  display: inline-block !important;
}

/* Les SVG Ecwid qui ont un width explicite dans leurs attributs HTML doivent garder leur taille */
.shop-frame svg[width][height],
.shop-tools svg[width][height],
#my-store-31308054 svg[width][height] {
  width: attr(width px) !important;
  height: attr(height px) !important;
  max-width: none !important;
}
a { color: inherit; text-decoration: none; cursor: pointer; }
button { font: inherit; cursor: pointer; border: 0; background: none; }

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- Credential strip (static, not animated) ---------- */
.credstrip {
  background: var(--ink-90);
  color: var(--ink-10);
  padding: 10px 0;
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.credstrip__inner {
  display: flex; justify-content: center; flex-wrap: wrap;
  gap: 10px 36px;
  text-align: center;
}
.credstrip__item {
  display: inline-flex; align-items: center; gap: 8px;
  opacity: 0.82;
}
.credstrip__item::before {
  content: "";
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--lime);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(248, 250, 252, 0.88);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--ink-15);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.logo { display: inline-flex; align-items: center; gap: 14px; }
.logo img { height: 36px; width: auto; }
.logo__mark {
  font-family: var(--ff-mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-50);
  border-left: 1px solid var(--ink-15);
  padding-left: 14px;
  line-height: 1.35;
}
@media (max-width: 640px) { .logo__mark { display: none; } }

/* Header CTA — visible filled navy button, smaller than hero */
.header-cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px 10px 14px;
  background: var(--navy);
  color: #fff;
  font-weight: 600;
  font-size: 13.5px;
  letter-spacing: 0.01em;
  border-radius: 999px;
  box-shadow: 0 1px 2px rgba(15,23,42,0.10), 0 4px 14px rgba(10,28,58,0.18);
  transition: transform var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease),
              background var(--dur) ease;
  position: relative;
}
.header-cta:hover {
  background: var(--navy-hov);
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(15,23,42,0.12), 0 10px 24px rgba(10,28,58,0.26);
}
.header-cta:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; }
.header-cta__bag {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  display: grid; place-items: center;
  flex-shrink: 0;
}
.header-cta__bag svg { width: 13px; height: 13px; }
.header-cta__arrow { width: 14px; height: 14px; transition: transform var(--dur) var(--ease); }
.header-cta:hover .header-cta__arrow { transform: translateX(3px); }

/* Boutique page: ghost variant (back to home) */
.header-cta--ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink-20);
  box-shadow: none;
}
.header-cta--ghost:hover { background: var(--ink-10); border-color: var(--ink); transform: translateY(-1px); box-shadow: none; color: var(--ink); }
.header-cta__bag--ghost { background: var(--ink-10); color: var(--ink); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 26px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.005em;
  line-height: 1;
  transition: transform var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease),
              background var(--dur) ease;
  white-space: nowrap;
}
.btn--primary {
  background: var(--navy);
  color: #fff;
  box-shadow: var(--shadow-md);
}
.btn--primary:hover {
  background: var(--navy-hov);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}
.btn--primary:focus-visible { outline: 3px solid var(--lime); outline-offset: 2px; }
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink-20);
}
.btn--ghost:hover { border-color: var(--ink); background: var(--ink-10); }
.btn svg { width: 16px; height: 16px; }

/* ---------- Hero (centered, single-column) ---------- */
.hero {
  position: relative;
  padding: clamp(72px, 11vw, 144px) 0 clamp(48px, 8vw, 88px);
  text-align: center;
  isolation: isolate;
  overflow: hidden;
}
/* soft decorative backdrop */
.hero::before {
  content: "";
  position: absolute;
  inset: -10% -10% auto -10%;
  height: 85%;
  z-index: -1;
  background:
    radial-gradient(ellipse 45% 40% at 50% 0%, rgba(132, 204, 22, 0.10), transparent 70%),
    radial-gradient(ellipse 80% 40% at 50% 100%, rgba(10, 28, 58, 0.03), transparent 60%);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  left: 50%; bottom: 0;
  width: 1px; height: 56px;
  background: linear-gradient(to bottom, transparent, var(--ink-20));
  transform: translateX(-50%);
  pointer-events: none;
}
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-50);
  margin: 0 auto 28px;
  padding: 8px 16px;
  border: 1px solid var(--ink-15);
  border-radius: 999px;
  background: var(--surface);
}
.hero__eyebrow__dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--lime);
}
.hero__title {
  font-family: var(--ff-display);
  font-weight: 400;
  font-variation-settings: "opsz" 144, "SOFT" 30, "WONK" 0;
  font-size: clamp(40px, 6vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin: 0 auto 22px;
  max-width: 15ch;
  animation: heroRise 800ms var(--ease) both;
}
@keyframes heroRise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero__eyebrow { animation: heroRise 700ms var(--ease) both; }
.hero__sub { animation: heroRise 800ms var(--ease) 120ms both; }
.hero__cta-row { animation: heroRise 800ms var(--ease) 240ms both; }
.hero__stat-row { animation: heroRise 800ms var(--ease) 360ms both; }
.hero__title em {
  font-style: italic;
  font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1;
  color: var(--ink);
  position: relative;
}
.hero__title em::after {
  content: "";
  position: absolute;
  left: -0.02em; right: -0.02em;
  bottom: 0.06em;
  height: 0.34em;
  background: var(--lime-soft);
  z-index: -1;
  border-radius: 2px;
}
.hero__sub {
  font-size: clamp(16px, 1.4vw, 18px);
  color: var(--ink-50);
  max-width: 52ch;
  margin: 0 auto 36px;
  line-height: 1.6;
}
.hero__cta-row {
  display: flex; flex-direction: column; align-items: center; gap: 16px;
}
.hero__phone {
  display: inline-flex; align-items: baseline; gap: 10px;
  font-family: var(--ff-sans);
  font-size: 15px;
  color: var(--ink-60);
  transition: color var(--dur) ease;
  padding: 6px 2px;
}
.hero__phone__lbl {
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-50);
}
.hero__phone__num {
  font-weight: 700;
  font-size: 18px;
  color: var(--ink);
  letter-spacing: -0.005em;
  border-bottom: 1.5px solid var(--ink-20);
  transition: border-color var(--dur) ease;
}
.hero__phone:hover .hero__phone__num { border-color: var(--navy); }

/* Hero stat row under CTA */
.hero__stat-row {
  display: flex; justify-content: center; flex-wrap: wrap;
  gap: 12px 36px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--ink-15);
  max-width: 560px;
  margin-left: auto; margin-right: auto;
}
.hero__stat { text-align: center; min-width: 110px; }
.hero__stat__n {
  font-family: var(--ff-display);
  font-weight: 500;
  font-variation-settings: "opsz" 144, "SOFT" 30, "WONK" 0;
  font-size: 30px;
  line-height: 1;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.hero__stat__l {
  display: block;
  font-family: var(--ff-mono);
  font-size: 10.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-50);
  margin-top: 8px;
}
.hero__stat__divider { width: 1px; background: var(--ink-15); }
@media (max-width: 520px) { .hero__stat__divider { display: none; } }

/* ---------- Trust row (3 benefit bullets) ---------- */
.trust {
  padding: clamp(40px, 7vw, 72px) 0;
}
.trust__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 720px) {
  .trust__grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
}
.trust__card {
  background: var(--surface);
  border: 1px solid var(--ink-15);
  border-radius: var(--radius-lg);
  padding: 28px 28px 30px;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) ease;
}
.trust__card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--ink-20);
}
.trust__card__icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: var(--ink-10);
  color: var(--navy);
  display: grid; place-items: center;
  margin-bottom: 18px;
}
.trust__card__icon svg { width: 22px; height: 22px; }
.trust__card__title {
  font-family: var(--ff-sans);
  font-weight: 700;
  font-size: 17px;
  color: var(--ink);
  margin: 0 0 6px;
  letter-spacing: -0.005em;
}
.trust__card__desc {
  font-size: 14px;
  color: var(--ink-50);
  margin: 0;
  line-height: 1.55;
}

/* ---------- Contact cards ---------- */
.contact {
  padding: clamp(40px, 6vw, 64px) 0 clamp(64px, 9vw, 96px);
}
.contact__eyebrow {
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-50);
  margin: 0 0 18px;
  text-align: center;
}
.contact__title {
  font-family: var(--ff-sans);
  font-weight: 700;
  font-size: clamp(22px, 2.2vw, 28px);
  color: var(--ink);
  letter-spacing: -0.01em;
  text-align: center;
  margin: 0 0 36px;
}
.contact__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
@media (min-width: 720px) {
  .contact__grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
}
.contact__card {
  display: flex; flex-direction: column; gap: 10px;
  background: var(--surface);
  border: 1px solid var(--ink-15);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) ease;
}
.contact__card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--navy);
}
.contact__card__label {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-50);
}
.contact__card__label svg { width: 14px; height: 14px; color: var(--ink-30); }
.contact__card__value {
  font-family: var(--ff-sans);
  font-weight: 700;
  font-size: 18px;
  color: var(--ink);
  margin: 0;
  letter-spacing: -0.005em;
}
.contact__card__sub {
  font-size: 14px;
  color: var(--ink-50);
  margin: 0;
}

/* ---------- Footer ---------- */
.site-footer {
  padding: 28px 0;
  border-top: 1px solid var(--ink-15);
  background: var(--surface);
  font-size: 13px;
  color: var(--ink-50);
}
.site-footer__inner {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px;
}
.site-footer a { color: var(--ink-60); transition: color var(--dur) ease; }
.site-footer a:hover { color: var(--ink); }

/* ---------- Shop page ---------- */
.shop-intro { padding: clamp(48px, 7vw, 80px) 0 clamp(20px, 3vw, 36px); }
.shop-intro__eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-50);
  margin: 0 0 18px;
  padding: 6px 14px;
  border: 1px solid var(--ink-15);
  border-radius: 999px;
  background: var(--surface);
}
.shop-intro__eyebrow__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--lime); }
.shop-intro__title {
  font-family: var(--ff-display);
  font-weight: 400;
  font-variation-settings: "opsz" 144, "SOFT" 30, "WONK" 0;
  font-size: clamp(32px, 4.2vw, 52px);
  line-height: 1.04;
  letter-spacing: -0.028em;
  color: var(--ink);
  margin: 0 0 16px;
  max-width: 18ch;
}
.shop-intro__title em {
  font-style: italic;
  font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1;
  position: relative;
}
.shop-intro__title em::after {
  content: "";
  position: absolute;
  left: -0.02em; right: -0.02em;
  bottom: 0.06em;
  height: 0.34em;
  background: var(--lime-soft);
  z-index: -1;
  border-radius: 2px;
}
.shop-intro__meta {
  display: flex; flex-wrap: wrap; gap: 14px 32px;
  padding: 18px 0;
  border-top: 1px solid var(--ink-15);
  border-bottom: 1px solid var(--ink-15);
  margin-top: 28px;
  font-size: 13px;
}
.shop-intro__meta > div { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.shop-intro__meta__k {
  font-family: var(--ff-mono);
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-50);
}
.shop-intro__meta__v { color: var(--ink); font-weight: 600; }
.shop-frame { padding: 0 0 clamp(56px, 9vw, 96px); }

/* ---------- En-tête boutique : recherche + menu catégories au-dessus des produits ---------- */
.shop-head {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 32px;
  padding: 24px;
  background: linear-gradient(180deg, #F8FBEF 0%, #EDF4DA 100%);
  border: 1px solid rgba(164, 211, 77, 0.35);
  border-radius: 18px;
  box-shadow: 0 2px 12px rgba(11, 28, 59, 0.04);
}

/* Titre du bloc recherche-catégories */
.shop-head::before {
  content: "CATALOGUE · RECHERCHE & CATÉGORIES";
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--ink-50, #5A6065);
  margin-bottom: 4px;
}

/* ——— Menu catégories (horizontal, en haut) ——— */
.shop-tools__categories {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  position: relative;
}

/* ——— Menu Ecwid : styles horizontaux en liste verticale lisible ——— */
.shop-tools__categories ul,
.shop-tools__categories ol {
  list-style: none;
  margin: 0;
  padding: 0;
}
.shop-tools__categories li {
  display: block;
  margin: 0;
  padding: 0;
}
.shop-tools__categories a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink, #0A1C3A);
  text-decoration: none;
  border-radius: 8px;
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.shop-tools__categories a:hover {
  background: rgba(164, 211, 77, 0.22);
  color: var(--ink, #0A1C3A);
  transform: translateX(2px);
}
.shop-tools__categories .horizontal-menu-item--active > a,
.shop-tools__categories [class*="active"] > a {
  background: rgba(164, 211, 77, 0.35);
  color: var(--ink, #0A1C3A);
  font-weight: 600;
}

/* Niveau 2 : sous-catégories en retrait et plus petit */
.shop-tools__categories ul ul a,
.shop-tools__categories ol ol a {
  padding-left: 22px;
  font-size: 13px;
  font-weight: 400;
  color: var(--ink-70, #3A4555);
}
.shop-tools__categories ul ul ul a {
  padding-left: 32px;
  font-size: 12.5px;
  color: var(--ink-50, #5A6065);
}

/* Chevrons Ecwid : lime accent */
.shop-tools__categories svg[class*="horizontal-arrow"] {
  color: var(--lime, #A4D34D);
  flex-shrink: 0;
}

/* ——— Colonne droite : recherche + produits ——— */
.shop-tools__search {
  position: relative;
}
.shop-tools__search::before {
  content: "RECHERCHER UN PRODUIT";
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--ink-50, #5A6065);
  margin-bottom: 10px;
}
.shop-tools__search input[type="text"],
.shop-tools__search input[type="search"] {
  width: 100%;
  padding: 14px 18px 14px 48px !important;
  font-size: 15px !important;
  font-family: inherit !important;
  color: var(--ink, #0A1C3A) !important;
  background: #fff !important;
  border: 2px solid rgba(11, 28, 59, 0.12) !important;
  border-radius: 12px !important;
  box-shadow: 0 2px 8px rgba(11, 28, 59, 0.04) !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
  outline: none !important;
}
.shop-tools__search input[type="text"]:focus,
.shop-tools__search input[type="search"]:focus {
  border-color: var(--lime, #A4D34D) !important;
  box-shadow: 0 0 0 4px rgba(164, 211, 77, 0.18), 0 2px 8px rgba(11, 28, 59, 0.06) !important;
}
/* Icône loupe placée absolument */
.shop-tools__search::after {
  content: "";
  position: absolute;
  left: 16px;
  top: calc(50% + 12px);
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%230A1C3A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='11' cy='11' r='8'/><path d='m21 21-4.3-4.3'/></svg>");
  background-repeat: no-repeat;
  background-size: contain;
  opacity: 0.55;
  pointer-events: none;
}

/* Sur desktop, les deux sections se comportent mieux */
@media (max-width: 899px) {
  .shop-tools__categories {
    position: static;
    max-height: none;
  }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}
