/* ============ SOLABRIQ — démo briqueterie industrielle ============ */
:root {
  --brick: #b23a24;
  --brick-dark: #8c2d1b;
  --char: #1c1a18;
  --char-soft: #4a453f;
  --sand: #f5efe7;
  --clay: #eadfce;
  --white: #ffffff;
  --line: rgba(28, 26, 24, 0.12);
  --shadow: 0 18px 44px -18px rgba(28, 26, 24, 0.3);
  --radius: 10px;
  --font-display: "Archivo", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--char);
  background: var(--sand);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; }
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}
.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease, color 0.22s ease;
  border: none;
  cursor: pointer;
}
.btn:hover { transform: translateY(-2px); }
.btn-brick {
  background: var(--brick);
  color: var(--white);
  box-shadow: 0 12px 28px -10px rgba(178, 58, 36, 0.55);
}
.btn-brick:hover { background: var(--brick-dark); }
.btn-line {
  background: transparent;
  color: var(--char);
  border: 2px solid var(--char);
}
.btn-line:hover { background: var(--char); color: var(--sand); }
.btn-white { background: var(--white); color: var(--brick-dark); }
.btn-white:hover { background: var(--clay); }
.btn-full { width: 100%; }

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding: 16px 0;
  background: var(--sand);
  transition: box-shadow 0.3s ease, padding 0.3s ease;
}
.nav.is-scrolled { box-shadow: 0 1px 0 var(--line), 0 8px 30px -18px rgba(28, 26, 24, 0.35); padding: 10px 0; }
.nav-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--char); }
.logo-mark {
  width: 34px;
  height: 22px;
  background: var(--brick);
  border-radius: 4px;
  flex-shrink: 0;
  position: relative;
}
.logo-mark::after {
  content: "";
  position: absolute;
  inset: 4px 6px;
  border-radius: 2px;
  background:
    linear-gradient(90deg, transparent 0 30%, var(--sand) 30% 36%, transparent 36% 64%, var(--sand) 64% 70%, transparent 70%);
  opacity: 0.85;
}
.logo-text {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.2rem;
  letter-spacing: 0.04em;
}
.logo-text em { font-style: normal; color: var(--brick); }

.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a {
  color: var(--char-soft);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  transition: color 0.2s ease;
}
.nav-links a:hover { color: var(--char); }
.nav-links .nav-cta {
  background: var(--brick);
  color: var(--white);
  padding: 10px 20px;
  border-radius: 8px;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: 0.85rem;
}
.nav-links .nav-cta:hover { background: var(--brick-dark); color: var(--white); }

.burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.burger span { width: 24px; height: 2px; background: var(--char); }

/* ---------- Hero ---------- */
.hero { padding: 150px 0 0; overflow: hidden; }
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 56px;
  align-items: center;
  padding-bottom: 80px;
}
.hero-copy { max-width: 760px; }
.hero-copy .hero-sub { max-width: 560px; }
.hero-kicker {
  color: var(--brick);
  text-transform: uppercase;
  letter-spacing: 0.26em;
  font-size: 0.78rem;
  font-weight: 800;
  margin-bottom: 20px;
  animation: kicker-in 0.9s ease 0.15s both;
}
@keyframes kicker-in {
  from { opacity: 0; letter-spacing: 0.45em; }
  to { opacity: 1; letter-spacing: 0.26em; }
}
.hero h1 { font-size: clamp(2.4rem, 5.2vw, 4rem); margin-bottom: 22px; }
.hero h1 .line { display: block; overflow: hidden; }
.hero h1 .line > span {
  display: inline-block;
  transform: translateY(115%);
  animation: line-up 0.85s cubic-bezier(0.19, 0.7, 0.22, 1) forwards;
}
.hero h1 .line:nth-child(1) > span { animation-delay: 0.78s; }
.hero h1 .line:nth-child(2) > span { animation-delay: 0.93s; color: var(--brick); }
@keyframes line-up { to { transform: translateY(0); } }
.hero-sub {
  color: var(--char-soft);
  font-size: 1.08rem;
  max-width: 520px;
  margin-bottom: 32px;
  animation: fade-up 0.8s ease 1.3s both;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; animation: fade-up 0.8s ease 1.5s both; }
.hero-trust {
  margin-top: 26px;
  font-size: 0.92rem;
  color: var(--char-soft);
  animation: fade-up 0.8s ease 1.7s both;
}

/* ---------- Entrée signature : la brique qui tombe ---------- */
.brick-stage {
  position: relative;
  height: 58px;
  margin-bottom: 10px;
  z-index: 0;
}
.brick {
  position: absolute;
  left: 6px;
  bottom: 0;
  width: 96px;
  height: 54px;
  background: linear-gradient(160deg, #c04730 0%, var(--brick) 45%, var(--brick-dark) 100%);
  border-radius: 6px;
  box-shadow: 0 10px 22px -10px rgba(140, 45, 27, 0.55);
  transform: translateY(-88vh) rotate(-9deg);
  animation: brick-drop 0.95s forwards;
  will-change: transform;
}
.brick::after {
  content: "";
  position: absolute;
  inset: 10px 14px;
  border-radius: 3px;
  background:
    linear-gradient(90deg, transparent 0 26%, rgba(245, 239, 231, 0.75) 26% 34%, transparent 34% 62%, rgba(245, 239, 231, 0.75) 62% 70%, transparent 70%);
}
@keyframes brick-drop {
  0%   { transform: translateY(-88vh) rotate(-9deg); animation-timing-function: cubic-bezier(0.5, 0, 0.9, 0.45); }
  60%  { transform: translateY(0) rotate(2.5deg); animation-timing-function: cubic-bezier(0.2, 0.7, 0.4, 1); }
  72%  { transform: translateY(-13px) rotate(-2deg); animation-timing-function: cubic-bezier(0.5, 0, 0.7, 0.4); }
  83%  { transform: translateY(0) rotate(1deg); }
  91%  { transform: translateY(-4px) rotate(0deg); }
  100% { transform: translateY(0) rotate(0deg); }
}
/* Secousse à l'impact */
.hero-grid { animation: impact-shake 0.28s ease 0.57s; }
@keyframes impact-shake {
  0%, 100% { transform: translateY(0); }
  35% { transform: translateY(3px); }
  70% { transform: translateY(-1px); }
}
/* Particules de poussière (créées en JS) */
.dust-p {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  will-change: transform, opacity;
}
@keyframes fade-up {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

.hero-media {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  animation: media-in 1s cubic-bezier(0.19, 0.7, 0.22, 1) 0.5s both;
  background: var(--clay);
}
@keyframes media-in {
  from { opacity: 0; transform: translateY(30px) scale(0.97); }
  to { opacity: 1; transform: none; }
}
.hero-media video, .hero-media img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.hero-media-tag {
  position: absolute;
  left: 14px;
  bottom: 14px;
  background: rgba(28, 26, 24, 0.82);
  color: var(--sand);
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  padding: 8px 14px;
  border-radius: 6px;
}

/* Rangée de briques décorative */
.brick-divider {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 6px;
  padding: 0 6px 6px;
}
.brick-divider span {
  height: 14px;
  background: var(--brick);
  border-radius: 3px;
  opacity: 0;
  animation: brick-pop 0.4s ease forwards;
}
.brick-divider span:nth-child(1) { animation-delay: 1.5s; }
.brick-divider span:nth-child(2) { animation-delay: 1.58s; }
.brick-divider span:nth-child(3) { animation-delay: 1.66s; }
.brick-divider span:nth-child(4) { animation-delay: 1.74s; }
.brick-divider span:nth-child(5) { animation-delay: 1.82s; }
.brick-divider span:nth-child(6) { animation-delay: 1.9s; }
.brick-divider span:nth-child(7) { animation-delay: 1.98s; }
.brick-divider span:nth-child(8) { animation-delay: 2.06s; }
@keyframes brick-pop {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: none; }
}

/* ---------- Chiffres ---------- */
.stats { background: var(--char); color: var(--sand); padding: 60px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; text-align: center; }
.stat-num, .stat-plus, .stat-label {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  color: var(--brick);
}
.stat-plus { font-size: clamp(1.6rem, 3vw, 2.4rem); }
.stat p {
  margin-top: 4px;
  color: rgba(245, 239, 231, 0.65);
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
}

/* ---------- Sections ---------- */
.section { padding: 104px 0; }
.section-head { max-width: 660px; margin: 0 auto 60px; text-align: center; }
.kicker {
  color: var(--brick);
  text-transform: uppercase;
  letter-spacing: 0.26em;
  font-size: 0.76rem;
  font-weight: 800;
  margin-bottom: 14px;
}
.section-head h2 { font-size: clamp(1.9rem, 3.8vw, 2.7rem); margin-bottom: 16px; }
.section-sub { color: var(--char-soft); font-size: 1.03rem; }
.section-dark { background: var(--char); color: var(--sand); }

/* ---------- Produits ---------- */
.products-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.product {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}
.product:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.product-img { aspect-ratio: 4 / 3; overflow: hidden; background: var(--clay); }
.product-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.product:hover .product-img img { transform: scale(1.05); }
.product-body { padding: 22px; }
.product-body h3 { font-size: 1.05rem; margin-bottom: 4px; }
.product-use {
  color: var(--brick-dark);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}
.product-body ul { list-style: none; margin-bottom: 16px; }
.product-body li {
  font-size: 0.88rem;
  color: var(--char-soft);
  padding: 3px 0 3px 18px;
  position: relative;
}
.product-body li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 10px;
  height: 6px;
  background: var(--brick);
  border-radius: 2px;
}
.link-arrow {
  color: var(--brick-dark);
  font-weight: 800;
  font-size: 0.9rem;
  text-decoration: none;
}
.link-arrow:hover { color: var(--char); }
.products-note { text-align: center; margin-top: 36px; color: var(--char-soft); font-size: 0.9rem; }

/* ---------- Entreprise ---------- */
.entreprise-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 64px; align-items: start; }
.entreprise-copy h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); margin-bottom: 22px; }
.entreprise-copy p { color: rgba(245, 239, 231, 0.78); margin-bottom: 16px; max-width: 540px; }
.timeline { border-left: 3px solid var(--brick); padding-left: 28px; display: grid; gap: 28px; }
.timeline-item { position: relative; }
.timeline-item::before {
  content: "";
  position: absolute;
  left: -37px;
  top: 8px;
  width: 15px;
  height: 10px;
  background: var(--brick);
  border-radius: 3px;
}
.timeline-year {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.3rem;
  color: var(--brick);
  display: block;
  margin-bottom: 2px;
}
.timeline-item p { color: rgba(245, 239, 231, 0.75); font-size: 0.95rem; }

/* ---------- Engagements ---------- */
.values-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.value {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 24px;
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}
.value:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.value-num {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1rem;
  color: var(--brick);
  display: block;
  margin-bottom: 14px;
}
.value h3 { font-size: 1.02rem; margin-bottom: 8px; }
.value p { color: var(--char-soft); font-size: 0.9rem; }

/* ---------- Bandeau CTA ---------- */
.cta-band { background: var(--brick); color: var(--white); padding: 56px 0; }
.cta-band-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}
.cta-band h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: 6px; }
.cta-band p { color: rgba(255, 255, 255, 0.85); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: start; }
.contact-info h2 { font-size: clamp(1.8rem, 3.4vw, 2.4rem); margin-bottom: 16px; }
.contact-info .section-sub { margin-bottom: 30px; }
.contact-list { list-style: none; }
.contact-list li {
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 18px;
  font-size: 0.96rem;
}
.contact-list strong {
  min-width: 96px;
  color: var(--brick-dark);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  padding-top: 3px;
}
.contact-list a { color: var(--char); text-decoration: none; font-weight: 600; }
.contact-list a:hover { color: var(--brick); }
.a-completer { color: var(--char-soft); font-size: 0.85rem; }

.contact-form {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px 32px;
  box-shadow: var(--shadow);
  border-top: 6px solid var(--brick);
}
.contact-form h3 { font-size: 1.3rem; margin-bottom: 22px; }
.form-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.form-row { margin-bottom: 16px; }
.form-row label { display: block; font-weight: 700; font-size: 0.84rem; margin-bottom: 6px; }
.form-row input, .form-row select {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: var(--sand);
  color: var(--char);
  transition: border-color 0.2s ease;
}
.form-row input:focus, .form-row select:focus { outline: none; border-color: var(--brick); }
.form-success { margin-top: 14px; color: #2e7a45; font-weight: 700; text-align: center; }

/* ---------- Footer ---------- */
.footer { background: #14120f; color: rgba(245, 239, 231, 0.7); padding: 64px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 44px; padding-bottom: 48px; }
.logo-footer { color: var(--sand); margin-bottom: 14px; display: flex; }
.footer p { font-size: 0.92rem; }
.footer h4 {
  color: var(--sand);
  font-family: var(--font-display);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 14px;
}
.footer-grid a { display: block; color: rgba(245, 239, 231, 0.7); text-decoration: none; padding: 5px 0; font-size: 0.92rem; }
.footer-grid a:hover { color: var(--brick); }
.footer-bottom {
  border-top: 1px solid rgba(245, 239, 231, 0.1);
  padding: 20px 0;
  text-align: center;
  font-size: 0.82rem;
  color: rgba(245, 239, 231, 0.45);
}

/* ---------- WhatsApp flottant ---------- */
.whatsapp-fab {
  position: fixed;
  bottom: 26px;
  right: 26px;
  z-index: 90;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  background: #25d366;
  color: var(--white);
  border-radius: 50%;
  box-shadow: 0 12px 30px -8px rgba(37, 211, 102, 0.6);
  transition: transform 0.25s ease;
}
.whatsapp-fab:hover { transform: scale(1.08); }

/* ---------- Apparition au scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }
.delay-1 { transition-delay: 0.12s; }
.delay-2 { transition-delay: 0.24s; }
.delay-3 { transition-delay: 0.36s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-kicker, .hero h1 .line > span, .hero-sub, .hero-actions, .hero-trust,
  .hero-media, .brick-divider span, .brick, .hero-grid {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .products-grid, .values-grid { grid-template-columns: 1fr 1fr; }
  .entreprise-grid { grid-template-columns: 1fr; gap: 44px; }
  .contact-grid { grid-template-columns: 1fr; gap: 44px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
  .section { padding: 72px 0; }
  .hero { padding-top: 120px; }
  .products-grid, .values-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 34px 16px; }
  .footer-grid { grid-template-columns: 1fr; gap: 34px; }
  .form-2col { grid-template-columns: 1fr; gap: 0; }
  .contact-form { padding: 28px 20px; }

  .burger { display: flex; }
  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: min(78vw, 320px);
    background: var(--sand);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 26px;
    padding: 40px 34px;
    transform: translateX(100%);
    transition: transform 0.35s ease;
    box-shadow: -20px 0 60px rgba(0, 0, 0, 0.25);
  }
  .nav.is-open .nav-links { transform: translateX(0); }
  .nav-links a { font-size: 1.05rem; }
}
