/* ════════════════════════════════════════════════════════════════════════
   LATITUDE DISTRIBUTION — Mini-site
   Charte : Spyrogeometric (titres) · Avenir Roman (texte)
   Couleurs : #e94e1b orange · #1d71b8 bleu · #fceb24 jaune · #e89d2f
   ════════════════════════════════════════════════════════════════════════ */

/* ─── Design tokens ───────────────────────────────────────────────────── */
:root {
  /* Palette charte */
  --orange:        #e94e1b;
  --orange-dark:   #c93f12;
  --orange-warm:   #e89d2f;
  --blue:          #1d71b8;
  --blue-dark:     #155a93;
  --yellow:        #fceb24;

  /* Neutres */
  --ink:           #14253a;
  --ink-soft:      #4a5468;
  --muted:         #7a8295;
  --line:          #e6dfd0;
  --paper:         #faf6ee;
  --paper-2:       #f3ece0;
  --white:         #ffffff;

  /* Polices — fallbacks libres en attendant que la charte
     (Spyrogeometric, Avenir Roman) soit licenciée pour le web. */
  --font-display: 'Spyrogeometric', 'Outfit', 'Avenir Next', system-ui, sans-serif;
  --font-body:    'Avenir Roman', 'Avenir Next', 'Manrope', system-ui, sans-serif;

  /* Échelle */
  --container: 1200px;
  --radius-sm: 6px;
  --radius:    12px;
  --radius-lg: 20px;

  --shadow-sm: 0 1px 2px rgba(20, 37, 58, 0.06), 0 1px 3px rgba(20, 37, 58, 0.04);
  --shadow:    0 4px 14px rgba(20, 37, 58, 0.08);
  --shadow-lg: 0 18px 40px -12px rgba(20, 37, 58, 0.18);

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

/* ─── Reset léger ─────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.1; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }

/* ─── Layout helpers ──────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}
@media (min-width: 768px) {
  .container { padding: 0 32px; }
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--orange);
}

.section {
  padding: 64px 0;
}
@media (min-width: 768px) {
  .section { padding: 96px 0; }
}
.section--tight { padding: 48px 0; }
.section--paper-2 { background: var(--paper-2); }
.section--ink { background: var(--ink); color: #d8def0; }
.section--ink .eyebrow { color: var(--orange-warm); }
.section--ink h2 { color: #fff; }

/* ─── Header / Top nav ────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 246, 238, 0.92);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
          backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms var(--ease), box-shadow 200ms var(--ease);
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 6px 20px -10px rgba(20, 37, 58, 0.12);
}
.nav {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 72px;
}
.nav__logo { display: flex; align-items: center; flex: 0 0 auto; }
.nav__logo img { height: 40px; width: auto; }
.nav__links {
  display: none;
  margin-left: auto;
  gap: 32px;
  list-style: none;
  padding: 0;
}
.nav__links a {
  font-weight: 500;
  font-size: 15px;
  color: var(--ink);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: border-color 150ms var(--ease), color 150ms var(--ease);
}
.nav__links a:hover { color: var(--orange); }
.nav__links a[aria-current="page"] {
  color: var(--orange);
  border-bottom-color: var(--orange);
}
.nav__cta { display: none; margin-left: 0; }
.nav__burger {
  margin-left: auto;
  width: 44px; height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: var(--ink);
}
.nav__burger:hover { background: rgba(20, 37, 58, 0.06); }
.nav__burger svg { width: 24px; height: 24px; }
.nav__burger .icon-close { display: none; }
.nav.is-open .nav__burger .icon-open { display: none; }
.nav.is-open .nav__burger .icon-close { display: block; }

/* Mobile menu drawer */
.nav__drawer {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--paper);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 12px 20px 24px;
  box-shadow: var(--shadow);
}
.nav.is-open .nav__drawer { display: block; }
.nav__drawer ul { list-style: none; padding: 0; margin: 0 0 16px; display: flex; flex-direction: column; }
.nav__drawer a {
  display: block;
  padding: 14px 4px;
  font-size: 17px;
  font-weight: 500;
  border-bottom: 1px solid var(--line);
}
.nav__drawer a[aria-current="page"] { color: var(--orange); }

@media (min-width: 900px) {
  .nav__links { display: flex; }
  .nav__cta { display: inline-flex; }
  .nav__burger { display: none; }
  .nav__drawer { display: none !important; }
}

/* ─── Buttons ─────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.01em;
  border-radius: 999px;
  transition: transform 150ms var(--ease), background 150ms var(--ease), color 150ms var(--ease), box-shadow 150ms var(--ease);
  will-change: transform;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary { background: var(--orange); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--orange-dark); box-shadow: var(--shadow); }

.btn--secondary { background: var(--blue); color: #fff; box-shadow: var(--shadow-sm); }
.btn--secondary:hover { background: var(--blue-dark); box-shadow: var(--shadow); }

.btn--ghost { background: #fff; color: var(--ink); border: 1.5px solid var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; }

.btn--outline-light { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,0.6); }
.btn--outline-light:hover { background: #fff; color: var(--ink); border-color: #fff; }

.btn--lg { padding: 17px 30px; font-size: 16px; }
.btn--block { width: 100%; }

.btn__arrow { transition: transform 150ms var(--ease); }
.btn:hover .btn__arrow { transform: translateX(3px); }

/* ─── Hero (Accueil) ──────────────────────────────────────────────────── */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: #fff;
  min-height: 620px;
  display: flex;
  align-items: center;
  padding: 96px 0 80px;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(135deg, #0d4a7c 0%, #1d71b8 45%, #e89d2f 100%);
  /* À REMPLACER par une vraie photo :
     background: url('assets/hero-accueil.jpg') center/cover no-repeat; */
}
.hero__bg::after {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 75% 30%, rgba(252, 235, 36, 0.35), transparent 55%),
    radial-gradient(ellipse at 20% 90%, rgba(233, 78, 27, 0.35), transparent 60%),
    linear-gradient(180deg, rgba(20,37,58,0.05) 0%, rgba(20,37,58,0.55) 100%);
}
.hero__inner { position: relative; max-width: 760px; }
.hero .eyebrow {
  color: #fff;
  background: rgba(255,255,255,0.15);
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.25);
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
}
.hero h1 {
  font-size: clamp(40px, 6vw, 72px);
  margin: 24px 0 20px;
  color: #fff;
}
.hero h1 .accent {
  background: linear-gradient(120deg, var(--yellow), var(--orange-warm));
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
}
.hero p.lede {
  font-size: clamp(17px, 1.6vw, 20px);
  color: rgba(255,255,255,0.92);
  max-width: 560px;
  margin-bottom: 36px;
}
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Hero variant for inner pages — shorter */
.hero--inner {
  min-height: 420px;
  padding: 80px 0 64px;
}
.hero--inner h1 { font-size: clamp(34px, 5vw, 56px); }
.hero--particuliers .hero__bg {
  background: linear-gradient(135deg, #1d71b8 0%, #2a90d4 50%, #e89d2f 100%);
}
.hero--pros .hero__bg {
  background: linear-gradient(135deg, #c93f12 0%, #e94e1b 50%, #e89d2f 100%);
}

/* ─── Profile cards (Accueil) ─────────────────────────────────────────── */
.profiles {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 768px) {
  .profiles { grid-template-columns: 1fr 1fr; gap: 28px; }
}
.profile-card {
  display: flex;
  flex-direction: column;
  padding: 36px 32px;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
  transition: transform 250ms var(--ease), box-shadow 250ms var(--ease), border-color 250ms var(--ease);
}
.profile-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.profile-card__icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--orange), var(--orange-warm));
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff;
  margin-bottom: 24px;
}
.profile-card--blue .profile-card__icon {
  background: linear-gradient(135deg, var(--blue), #2a90d4);
}
.profile-card__icon svg { width: 28px; height: 28px; }
.profile-card h3 { font-size: 28px; margin-bottom: 12px; }
.profile-card p { color: var(--ink-soft); margin-bottom: 28px; flex: 1; }

/* ─── Partners band ───────────────────────────────────────────────────── */
.partners {
  background: #fff;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 32px 0;
}
.partners__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 24px 56px;
}
.partners__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}
.partners__logos {
  display: flex;
  align-items: center;
  gap: 32px 56px;
  flex-wrap: wrap;
  justify-content: center;
}
.partners__logos img {
  height: 56px;
  width: auto;
  object-fit: contain;
  filter: saturate(0.95);
  transition: filter 200ms var(--ease), transform 200ms var(--ease);
}
.partners__logos img:hover { filter: none; transform: scale(1.03); }

/* ─── Intro / text blocks ─────────────────────────────────────────────── */
.intro {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}
.intro h2 {
  font-size: clamp(30px, 4vw, 44px);
  margin-bottom: 20px;
}
.intro p {
  font-size: 18px;
  color: var(--ink-soft);
  margin-bottom: 16px;
}

/* ─── Boutiques (Particuliers) ────────────────────────────────────────── */
.boutiques {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 640px) {
  .boutiques { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1000px) {
  .boutiques { grid-template-columns: 1fr 1fr 1fr; gap: 20px; }
}
.boutique {
  display: flex;
  flex-direction: column;
  padding: 24px;
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  transition: transform 200ms var(--ease), box-shadow 200ms var(--ease), border-color 200ms var(--ease);
}
.boutique:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: transparent;
}
.boutique__head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.boutique__pin {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(233, 78, 27, 0.1);
  color: var(--orange);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}
.boutique__pin svg { width: 18px; height: 18px; }
.boutique__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  color: var(--ink);
}
.boutique__address {
  font-size: 14px;
  color: var(--ink-soft);
  margin-bottom: 16px;
  flex: 1;
}
.boutique__address span { display: block; }
.boutique__links {
  display: flex;
  gap: 16px;
  font-size: 13px;
  font-weight: 600;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
}
.boutique__links a { color: var(--orange); }
.boutique__links a:hover { text-decoration: underline; }

/* ─── Benefits (Pros) ─────────────────────────────────────────────────── */
.benefits {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 700px) { .benefits { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .benefits { grid-template-columns: repeat(3, 1fr); gap: 28px; } }
.benefit {
  padding: 32px;
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}
.benefit__icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--paper-2);
  color: var(--orange);
  margin-bottom: 20px;
}
.benefit:nth-child(2) .benefit__icon { color: var(--blue); }
.benefit:nth-child(3) .benefit__icon { color: var(--orange-warm); }
.benefit__icon svg { width: 24px; height: 24px; }
.benefit h3 { font-size: 22px; margin-bottom: 10px; }
.benefit p { color: var(--ink-soft); font-size: 15.5px; }

/* ─── Brevo iframe block ──────────────────────────────────────────────── */
.brevo {
  max-width: 720px;
  margin: 0 auto;
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 40px;
}
@media (max-width: 640px) {
  .brevo { padding: 28px 20px; }
}
.brevo h2 { font-size: 28px; margin-bottom: 8px; }
.brevo > p { color: var(--ink-soft); margin-bottom: 24px; }
.brevo__embed {
  border-radius: var(--radius);
  overflow: hidden;
}
.brevo__embed iframe {
  width: 100%;
  border: 0;
  display: block;
  min-height: 480px;
}
.brevo__placeholder {
  border: 2px dashed var(--blue);
  background: rgba(29, 113, 184, 0.04);
  color: var(--blue-dark);
  padding: 32px;
  border-radius: var(--radius);
  font-size: 14px;
  line-height: 1.6;
}
.brevo__placeholder code {
  display: block;
  background: #fff;
  padding: 12px 14px;
  margin-top: 12px;
  border-radius: 6px;
  border: 1px solid var(--line);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 12px;
  color: var(--ink);
  word-break: break-all;
}

/* ─── Section heading helper ──────────────────────────────────────────── */
.section-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 48px;
}
.section-head h2 {
  font-size: clamp(28px, 3.6vw, 40px);
  margin: 12px 0 16px;
}
.section-head p { color: var(--ink-soft); font-size: 17px; }

/* ─── Footer ──────────────────────────────────────────────────────────── */
.site-footer {
  background: var(--ink);
  color: #b9c2d6;
  padding: 64px 0 24px;
  font-size: 14.5px;
}
.site-footer a { color: #d8def0; }
.site-footer a:hover { color: #fff; }
.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
@media (min-width: 768px) {
  .footer__grid { grid-template-columns: 1.4fr 1fr 1fr; gap: 56px; }
}
.footer__brand img { height: 40px; width: auto; filter: brightness(0) invert(1); margin-bottom: 16px; }
.footer__brand p { max-width: 360px; color: #97a1b8; }
.footer h4 {
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--orange-warm);
  font-weight: 700;
  margin-bottom: 16px;
}
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer ul li { padding: 6px 0; }
.footer__bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  font-size: 13px;
  color: #6b7693;
}

/* ─── Collection (bento grid produits) ───────────────────────────────── */
.collection {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
  gap: 14px;
}
@media (max-width: 900px) {
  .collection { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 200px; }
}
@media (max-width: 500px) {
  .collection { grid-template-columns: 1fr; grid-auto-rows: 240px; }
}

.prod {
  position: relative;
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper-2);
  isolation: isolate;
  transition: transform 300ms var(--ease), box-shadow 300ms var(--ease);
}
.prod:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.prod img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 700ms var(--ease);
}
.prod:hover img { transform: scale(1.04); }

.prod__overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: 18px 20px 18px;
  background: linear-gradient(180deg, transparent 0%, rgba(20,37,58,0.85) 100%);
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 2px;
  pointer-events: none;
}
.prod__category {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--orange-warm);
}
.prod__name {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.2;
}

.prod--feature {
  grid-column: span 2;
  grid-row: span 2;
}
.prod--feature .prod__name { font-size: 26px; }
.prod--feature .prod__overlay { padding: 28px 28px 26px; }

@media (max-width: 900px) {
  .prod--feature {
    grid-column: span 2;
    grid-row: span 2;
  }
  .prod--feature .prod__name { font-size: 22px; }
}
@media (max-width: 500px) {
  .prod--feature { grid-column: span 1; grid-row: span 1; }
}

.collection-cta {
  text-align: center;
  margin-top: 40px;
}

/* ─── Product strip (Particuliers) — scroll horizontal ───────────────── */
.strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 220px;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 4px 20px 24px;
  margin: 0 -20px;
  -webkit-overflow-scrolling: touch;
}
.strip::-webkit-scrollbar { height: 6px; }
.strip::-webkit-scrollbar-track { background: transparent; }
.strip::-webkit-scrollbar-thumb { background: rgba(20,37,58,0.15); border-radius: 999px; }

.strip__item {
  scroll-snap-align: start;
  position: relative;
  height: 260px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper-2);
  display: block;
}
.strip__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms var(--ease);
}
.strip__item:hover img { transform: scale(1.05); }
.strip__item .prod__overlay { padding: 14px 16px 14px; }
.strip__item .prod__name { font-size: 16px; }

@media (min-width: 768px) {
  .strip { padding: 4px 32px 28px; margin: 0 -32px; grid-auto-columns: 260px; }
  .strip__item { height: 300px; }
}

/* ─── Catalogue compact (Pros) ───────────────────────────────────────── */
.catalogue {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
@media (min-width: 700px)  { .catalogue { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .catalogue { grid-template-columns: repeat(4, 1fr); gap: 16px; } }
.catalogue .prod { aspect-ratio: 4 / 5; }
.catalogue .prod__overlay { padding: 14px 16px 14px; }
.catalogue .prod__name { font-size: 15px; }

/* ─── Animations ──────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(16px); transition: opacity 600ms var(--ease), transform 600ms var(--ease); }
  .reveal.is-in { opacity: 1; transform: none; }
}

/* ─── Utility ─────────────────────────────────────────────────────────── */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
