/* ==========================================================
   Hartza Supply Co. — feuille de style
   Couleurs et polices issues de la charte graphique
   ========================================================== */

@font-face { font-family: "Sora"; src: url("../assets/fonts/Sora-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Sora"; src: url("../assets/fonts/Sora-ExtraBold.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../assets/fonts/Inter-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../assets/fonts/Inter-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../assets/fonts/Inter-SemiBold.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  /* Palette de la charte */
  --charcoal: #1F1F1E;
  --sand: #F5F1E9;
  --stone: #B7B0A4;
  --forest: #2F4A3A;
  --clay: #A47156;

  /* Teintes dérivées */
  --sand-deep: #ECE6DA;
  --text-muted: #5E5A53;
  --line: rgba(31, 31, 30, 0.14);

  --font-heading: "Sora", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --container: 1180px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section-y: clamp(4rem, 9vw, 7.5rem);
  --radius: 4px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 5rem; }

body {
  margin: 0;
  background: var(--sand);
  color: var(--charcoal);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; }

h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0 0 1rem;
  text-wrap: balance;
}

h1 { font-size: clamp(2.75rem, 7vw, 5.25rem); text-transform: uppercase; letter-spacing: 0; }
h2 { font-size: clamp(1.875rem, 3.6vw, 2.75rem); }
h3 { font-size: 1.25rem; font-weight: 700; }

p { margin: 0 0 1rem; }

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

/* Petits titres espacés, comme sur la charte */
.eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--clay);
  margin-bottom: 1rem;
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-block;
  padding: 0.9rem 1.6rem;
  background: var(--forest);
  color: var(--sand);
  border: 1.5px solid var(--forest);
  border-radius: var(--radius);
  font: 600 0.75rem/1 var(--font-body);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn:hover { background: var(--charcoal); border-color: var(--charcoal); }
.btn-small { padding: 0.65rem 1.1rem; }
.btn-outline { background: transparent; border-color: var(--charcoal); color: var(--charcoal); }
.btn-outline:hover { background: var(--charcoal); border-color: var(--charcoal); color: var(--sand); }
.btn-light { background: var(--sand); border-color: var(--sand); color: var(--charcoal); }
.btn-light:hover { background: var(--clay); border-color: var(--clay); color: var(--sand); }

/* ---------- En-tête ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(245, 241, 233, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 4.5rem;
}
.brand img { width: 150px; }

.nav { display: flex; align-items: center; gap: 2.25rem; }
.nav a:not(.btn) {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  position: relative;
  padding-block: 0.4rem;
}
.nav a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0; right: 0.18em; bottom: 0;
  height: 2px;
  background: var(--clay);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}
.nav a:not(.btn):hover::after { transform: scaleX(1); }

.nav-toggle {
  display: none;
  width: 2.75rem; height: 2.75rem;
  background: none; border: 0; cursor: pointer;
  padding: 0.6rem;
}
.nav-toggle span {
  display: block; height: 2px; background: var(--charcoal);
  margin: 6px 0; transition: transform .2s;
}
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* ---------- Piliers ---------- */
.pillars { background: var(--charcoal); color: var(--sand); }
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding-block: 1.75rem;
}
.pillars-grid > div {
  display: flex; align-items: baseline; gap: 0.75rem;
  padding-inline: 1rem;
  border-left: 1px solid rgba(245,241,233,.18);
}
.pillars-grid > div:first-child { border-left: 0; padding-left: 0; }
.pillar-num { font-family: var(--font-heading); font-size: 0.75rem; color: var(--clay); }
.pillars p {
  margin: 0;
  font-size: 0.75rem; font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase;
}

/* ---------- Sections ---------- */
.section { padding-block: var(--section-y); }
.section-alt { background: var(--sand-deep); }
.section-head { max-width: 40rem; margin-bottom: 3rem; }

.split {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
}
.split-mark { display: flex; justify-content: center; }
.split-mark img { width: min(100%, 320px); }
#a-propos p:not(.eyebrow) { color: var(--text-muted); max-width: 36rem; }
.signature {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  font-size: 0.75rem; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--charcoal) !important;
}

/* ---------- Listes ---------- */

.checklist { list-style: none; padding: 0; margin: 0.5rem 0 2.5rem; }
.checklist li {
  position: relative;
  padding: 0.7rem 0 0.7rem 1.75rem;
  border-bottom: 1px solid var(--line);
}
.checklist li::before {
  content: "";
  position: absolute; left: 0; top: 1.3rem;
  width: 0.7rem; height: 1.5px;
  background: var(--clay);
}

/* ---------- Contact ---------- */
#contact .split { align-items: start; }
.contact-list { margin: 2rem 0 0; display: grid; grid-template-columns: auto 1fr; gap: 0.5rem 1.5rem; }
.contact-list dt { font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--clay); padding-top: 0.2rem; }
.contact-list dd { margin: 0; }

.contact-form { display: grid; gap: 1.1rem; background: var(--sand); padding: clamp(1.5rem, 4vw, 2.5rem); border-radius: var(--radius); }
.contact-form label { display: grid; gap: 0.4rem; font-size: 0.8125rem; font-weight: 600; }
.contact-form input,
.contact-form select,
.contact-form textarea {
  font: inherit; font-weight: 400; font-size: 1rem;
  color: var(--charcoal);
  background: #fff;
  border: 1px solid var(--stone);
  border-radius: var(--radius);
  padding: 0.75rem 0.9rem;
  width: 100%;
}
.contact-form :focus-visible { outline: 2px solid var(--forest); outline-offset: 1px; }
.contact-form .btn { justify-self: start; }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--charcoal); color: var(--sand); padding-block: 3.5rem; }
.footer-inner { display: flex; align-items: center; gap: 3rem; flex-wrap: wrap; }
.footer-inner img { width: 130px; filter: invert(1) sepia(.15); } /* logo noir passé en sable sur fond charbon */
.footer-tagline { font-size: 0.75rem; letter-spacing: 0.25em; text-transform: uppercase; }
.footer-legal { font-size: 0.875rem; color: var(--stone); margin: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .split-mark img { width: 200px; }
  .pillars-grid { grid-template-columns: repeat(2, 1fr); row-gap: 1rem; }
  .pillars-grid > div:nth-child(3) { border-left: 0; padding-left: 0; }
}

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 1.25rem;
    padding: 1.5rem var(--gutter) 2rem;
    background: var(--sand);
    border-bottom: 1px solid var(--line);
  }
  .nav:not(.is-open) { display: none; }
  .brand img { width: 128px; }
}

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

/* ---------- Page de remerciement ---------- */
.page-thanks { min-height: 100vh; display: flex; flex-direction: column; }
.thanks { flex: 1; display: flex; align-items: center; }
.thanks-inner { text-align: center; display: flex; flex-direction: column; align-items: center; }
.thanks-inner img { width: 120px; margin-bottom: 2rem; }
.thanks h1 { text-transform: none; font-size: clamp(2.5rem, 6vw, 4rem); }
.thanks p:not(.eyebrow) { color: var(--text-muted); margin-bottom: 2rem; }

/* ---------- Mentions légales ---------- */
.legal-inner { max-width: 46rem; }
.legal h1 { text-transform: none; font-size: clamp(2.25rem, 5vw, 3.25rem); margin-bottom: 2.5rem; }
.legal h2 { font-size: 1.25rem; margin: 2.5rem 0 0.75rem; }
.legal p { color: var(--text-muted); }
.legal-list { display: grid; grid-template-columns: max-content 1fr; gap: 0.6rem 1.5rem; margin: 1.5rem 0 0; }
.legal-list dt { font-size: 0.75rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--clay); padding-top: 0.2rem; }
.legal-list dd { margin: 0; }
.legal-update { margin-top: 3rem; font-size: 0.875rem; }
@media (max-width: 600px) {
  .legal-list { grid-template-columns: 1fr; gap: 0.15rem; }
  .legal-list dd { margin-bottom: 0.75rem; }
}

/* ---------- Hero (marque unique) ---------- */
.hero-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: min(calc(100vh - 4.5rem), 820px);
}
.hero-split-text { display: flex; align-items: center; justify-content: flex-end; }
.hero-split-inner {
  width: 100%;
  max-width: calc(var(--container) / 2);
  padding: clamp(3rem, 7vw, 6rem) clamp(2rem, 5vw, 4.5rem) clamp(3rem, 7vw, 6rem) var(--gutter);
}
.hero-split h1 { max-width: 10ch; }
.hero-split-media { position: relative; min-height: 22rem; }
.hero-split-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.lead { font-size: clamp(1.0625rem, 1.5vw, 1.1875rem); color: var(--text-muted); max-width: 30rem; margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* ---------- Photos ---------- */
.photo { margin: 0; position: relative; overflow: hidden; border-radius: var(--radius); background: var(--stone); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo-tall { aspect-ratio: 4 / 5; }
.split-media { align-items: center; }
.brand-logo { width: 190px; margin-bottom: 2rem; }
#nonormal p { color: var(--text-muted); }
#nonormal strong { color: var(--charcoal); }

.facts { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 0.9rem; }
.facts li { padding-left: 1.75rem; position: relative; }
.facts li::before {
  content: ""; position: absolute; left: 0; top: 0.55rem;
  width: 0.65rem; height: 0.65rem; border-radius: 50%;
  background: var(--forest);
}

/* ---------- Mode d'emploi ---------- */
.section-dark { background: var(--charcoal); color: var(--sand); }
.section-dark .eyebrow { color: var(--clay); }
.steps {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
  counter-reset: none;
}
.steps li { border-top: 1px solid rgba(245,241,233,.22); padding-top: 1.75rem; }
.step-num {
  display: block;
  font-family: var(--font-heading); font-weight: 800;
  font-size: 3.5rem; line-height: 1; color: var(--clay);
  margin-bottom: 1.25rem;
}
.steps p { color: var(--stone); margin: 0; max-width: 22rem; }

/* ---------- Produits ---------- */
.products { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.product { background: var(--sand); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.product-img { aspect-ratio: 1; background: #D9CFBE; }
.product-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.product:hover .product-img img { transform: scale(1.03); }
.product-body { padding: clamp(1.5rem, 3vw, 2.25rem); }
.product h3 { font-size: 1.625rem; margin-bottom: 0.35rem; }
.product-tagline { color: var(--clay); font-weight: 600; }
.product-body > p:not(.product-tagline) { color: var(--text-muted); }
.specs { list-style: none; padding: 0; margin: 1.5rem 0 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.specs li {
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 0.45rem 0.8rem; border: 1px solid var(--stone); border-radius: 100px;
}

/* ---------- Galerie ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.gallery .photo { aspect-ratio: 3 / 4; }
.gallery figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 2.5rem 1rem 1rem;
  background: linear-gradient(transparent, rgba(31,31,30,.75));
  color: var(--sand);
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase;
}

/* ---------- Revendeurs ---------- */
#revendeurs .split { align-items: start; }
#revendeurs p { color: var(--text-muted); margin-bottom: 2rem; }
.checklist-large { margin: 0; }
.checklist-large li { padding-block: 1.1rem; color: var(--text-muted); }
.checklist-large li::before { top: 1.75rem; }
.checklist-large strong { color: var(--charcoal); }

@media (max-width: 900px) {
  .hero-split { grid-template-columns: 1fr; min-height: 0; }
  .hero-split-text { justify-content: flex-start; }
  .hero-split-inner { max-width: none; padding-inline: var(--gutter); }
  .hero-split-media { min-height: 0; aspect-ratio: 4 / 3; }
  .steps { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .photo-tall { aspect-ratio: 4 / 3; }
}
@media (max-width: 640px) {
  .products { grid-template-columns: 1fr; }
}
