/* =============================================
   SYBATILES — Stylesheet
   ============================================= */

/* ---------- CSS Variables ---------- */
:root {
  --clr-sand:      #f5ede0;
  --clr-terracotta:#c0714a;
  --clr-terra-dk:  #a35a37;
  --clr-indigo:    #000000;
  --clr-indigo-lt: #3d5190;
  --clr-ivory:     #faf7f2;
  --clr-white:     #ffffff;
  --clr-text:      #1c1c1c;
  --clr-text-muted:#6b6b6b;
  --clr-border:    #e8ddd2;

  --ff-display: 'Playfair Display', Georgia, serif;
  --ff-body:    'Inter', system-ui, sans-serif;

  --radius:  0.75rem;
  --radius-lg: 1.25rem;
  --shadow:  0 4px 24px rgba(28,28,28,.08);
  --shadow-lg: 0 12px 48px rgba(28,28,28,.14);
  --transition: 0.28s ease;

  --max-w: 1160px;
  --nav-h: 96px;
  --safe-top: env(safe-area-inset-top, 0px);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--ff-body);
  color: var(--clr-text);
  background: var(--clr-white);
  line-height: 1.65;
  overflow-x: hidden;
}
body.menu-open {
  overflow: hidden;
}
h1,
h2,
h3,
h4,
h5,
h6,
p {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}
p {
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}
img { display: block; max-width: 100%; }
a  { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }

/* ---------- Utility ---------- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}
.section { padding: 6rem 0; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.75rem 1.65rem;
  border-radius: 999px;
  font-weight: 500;
  font-size: 0.95rem;
  transition: background var(--transition), color var(--transition),
              box-shadow var(--transition), transform var(--transition);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary {
  background: var(--clr-terracotta);
  color: var(--clr-white);
  box-shadow: 0 4px 18px rgba(192,113,74,.35);
}
.btn--primary:hover {
  background: var(--clr-terra-dk);
  box-shadow: 0 6px 24px rgba(192,113,74,.42);
}
.btn--ghost {
  background: rgba(255,255,255,.15);
  color: var(--clr-white);
  border: 1.5px solid rgba(255,255,255,.5);
  backdrop-filter: blur(4px);
}
.btn--ghost:hover {
  background: rgba(255,255,255,.25);
  border-color: var(--clr-white);
}
.btn--outline {
  border: 1.5px solid var(--clr-terracotta);
  color: var(--clr-terracotta);
  background: transparent;
}
.btn--outline:hover {
  background: var(--clr-terracotta);
  color: var(--clr-white);
}
.btn--text {
  padding: 0;
  color: var(--clr-terracotta);
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 0;
}
.btn--text:hover { color: var(--clr-terra-dk); transform: none; }
.btn--sm  { padding: 0.55rem 1.15rem; font-size: 0.88rem; }
.btn--lg  { padding: 0.9rem 2.2rem; font-size: 1rem; }
.btn--full { width: 100%; }

/* Section headers */
.section__eyebrow {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--clr-terracotta);
  margin-bottom: 0.65rem;
}
.section__title {
  font-family: var(--ff-display);
  font-size: clamp(1.75rem, 3.5vw, 2.65rem);
  line-height: 1.2;
  color: var(--clr-indigo);
  margin-bottom: 1rem;
}
.section__sub {
  color: var(--clr-text-muted);
  max-width: 52ch;
  font-size: 1.05rem;
  margin: 0 auto;
  text-align: center;
}
.section__head {
  text-align: center;
  margin-bottom: 3.5rem;
}
.section__head--light .section__title { color: var(--clr-white); }
.section__head--light .section__eyebrow { color: var(--clr-sand); }

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* =============================================
   NAVBAR
   ============================================= */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}
.navbar.scrolled {
  background: rgba(12,20,48,0.82);
  border-bottom-color: rgba(255,255,255,.14);
  box-shadow: 0 2px 20px rgba(0,0,0,.20);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 1rem;
}
.navbar .navbar__logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  position: relative;
  height: calc(var(--nav-h) - 4px);
  width: clamp(220px, 26vw, 440px);
  flex: 0 0 auto;
  font-family: var(--ff-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--clr-indigo);
  transition: color var(--transition);
}
.navbar .navbar__logo         { color: var(--clr-white); }
.navbar.scrolled .navbar__logo { color: var(--clr-white); }
.logo-sym { color: var(--clr-terracotta); font-size: 1rem; }

/* Logo images — header / sticky / footer */
.navbar .navbar__logo-img {
  display: block;
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  max-width: 100%;
  width: auto;
  object-fit: contain;
  object-position: left center;
  transition: opacity var(--transition), max-height var(--transition), visibility var(--transition);
}
/* Header logo: large, visible only when NOT scrolled */
.navbar .navbar__logo-img--header {
  max-height: calc(var(--nav-h) - 4px);
  opacity: 1;
  visibility: visible;
}
.navbar.scrolled .navbar__logo-img--header {
  opacity: 0;
  visibility: hidden;
}
/* Sticky logo: compact, visible only when scrolled */
.navbar .navbar__logo-img--sticky {
  max-height: calc(var(--nav-h) - 28px);
  opacity: 0;
  visibility: hidden;
}
.navbar.scrolled .navbar__logo-img--sticky {
  opacity: 1;
  visibility: visible;
}
/* Footer logo */
.navbar__logo-img--footer {
  max-height: 70px;
}
.navbar__menu {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 1 1 auto;
  min-width: 0;
  gap: clamp(0.9rem, 1.8vw, 2rem);
}
/* Desktop : le groupe secondaire est invisible — ses enfants s'intègrent au flex parent */
.navbar__secondary-group {
  display: contents;
}
.navbar__menu a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--clr-white);
  white-space: nowrap;
  transition: color var(--transition);
  position: relative;
}
.navbar__menu a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--clr-terracotta);
  transition: width var(--transition);
  border-radius: 999px;
}
.navbar__menu a:hover::after,
.navbar__menu a.nav-active::after { width: 100%; }
.navbar__menu a:hover { color: #C0714A; }
.navbar.scrolled .navbar__menu a { color: #fff; }
.navbar.scrolled .navbar__menu a:hover { color: #C0714A; }
.navbar.scrolled .navbar__menu a.nav-active { color: #C0714A !important; }
.navbar__simulator-mobile {
  display: none;
}
.navbar__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
}
.navbar__burger span {
  display: block;
  height: 2px;
  background: var(--clr-white);
  border-radius: 2px;
  transition: all var(--transition);
}
.navbar.scrolled .navbar__burger span { background: #fff; }

/* =============================================
   HERO
   ============================================= */
.hero {
  min-height: 100svh;
  height: 100svh;
  margin-top: 0;
  display: flex;
  align-items: center;
  position: relative;
  background: var(--clr-indigo);
  overflow: hidden;
  padding-top: 0;
}

/* Hero YouTube video background */
.hero__video {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: var(--clr-indigo);
}
.hero__video::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, rgba(15,25,55,0.68) 0%, rgba(26,38,68,0.52) 100%);
  z-index: 1;
}
.hero__video iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  /* cover full container while preserving 16:9 ratio */
  width: 177.78vh;
  height: 100vh;
  min-width: 100%;
  min-height: 56.25vw;
  transform: translate(-50%, -50%);
  border: 0;
  pointer-events: none;
}
/* Sound toggle button */
.hero__sound-btn {
  position: absolute;
  bottom: 2.5rem;
  right: 2rem;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
}
.hero__sound-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.7);
  transform: scale(1.08);
}
.hero__sound-icon--muted { display: block; }
.hero__sound-icon--on    { display: none;  }
.hero__sound-btn.is-unmuted .hero__sound-icon--muted { display: none;  }
.hero__sound-btn.is-unmuted .hero__sound-icon--on    { display: block; }
.hero__pattern {
  display: none;
}
.hero::before {
  content: '';
  position: absolute;
  bottom: -80px; right: -80px;
  width: 520px; height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(192,113,74,.2) 0%, transparent 70%);
  pointer-events: none;
}
.hero__content {
  position: relative;
  z-index: 2;
  max-width: 860px;
  padding: 6rem 1.5rem 5rem;
}
.hero__eyebrow {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--clr-terracotta);
  margin-bottom: 1.1rem;
}
.hero__title {
  font-family: var(--ff-display);
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  line-height: 1.1;
  color: var(--clr-white);
  margin-bottom: 1.5rem;
}
.hero__sub {
  font-size: 1.1rem;
  color: rgba(255,255,255,.72);
  margin-bottom: 2.5rem;
  line-height: 1.7;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
.hero__scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero__scroll-hint span {
  display: block;
  width: 1.5px;
  height: 48px;
  background: linear-gradient(to bottom, rgba(255,255,255,.6), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%,100% { opacity:.6; transform: scaleY(1); }
  50%      { opacity:1;  transform: scaleY(.7); }
}

/* =============================================
   SPLIT SHOWCASE
   ============================================= */
.split-showcase {
  display: grid;
  grid-template-columns: 45fr 55fr;
  min-height: 520px;
  padding: 0;
  overflow: hidden;
  background: var(--clr-ivory);
}
.split-showcase__img-wrap {
  position: relative;
  overflow: hidden;
}
.split-showcase__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.6s ease;
}
.split-showcase:hover .split-showcase__img {
  transform: scale(1.04);
}
.split-showcase__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3rem 3rem;
}
.split-showcase__title {
  font-family: var(--ff-display);
  font-size: clamp(1.6rem, 2.8vw, 2.4rem);
  line-height: 1.15;
  color: var(--clr-indigo);
  margin-bottom: 1.2rem;
}
.split-showcase__subtitle {
  font-family: var(--ff-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--clr-indigo);
  line-height: 1.35;
  margin-bottom: 0.6rem;
  margin-top: 1.2rem;
}
.split-showcase__text {
  color: var(--clr-text-muted);
  font-size: 0.95rem;
  line-height: 1.65;
  max-width: 100%;
  margin-bottom: 1.5rem;
}
.split-showcase__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
@media (max-width: 768px) {
  .split-showcase {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .split-showcase__img-wrap {
    height: 280px;
  }
  .split-showcase__body {
    padding: 2.5rem 1.5rem;
  }
}

/* =============================================
   STATS
   ============================================= */
.stats {
  background: var(--clr-white);
  border-bottom: 1px solid var(--clr-border);
}
.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  divide-x: 1px solid var(--clr-border);
}
.stat-card {
  padding: 2.5rem 2rem;
  text-align: center;
  border-right: 1px solid var(--clr-border);
}
.stat-card:last-child { border-right: none; }
.stat-card__num {
  display: block;
  font-family: var(--ff-display);
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--clr-indigo);
  line-height: 1;
  margin-bottom: 0.5rem;
}
.stat-card__label {
  font-size: 0.88rem;
  color: var(--clr-text-muted);
  font-weight: 500;
}

/* =============================================
   ABOUT
   ============================================= */
.about { background: var(--clr-ivory); }
.about__grid {
  display: grid;
  grid-template-columns: 45fr 55fr;
  gap: 0;
  align-items: stretch;
  max-width: 100%;
  padding: 0;
}
.about__visual {
  order: 2;
  position: relative;
  overflow: hidden;
  min-height: 520px;
}
.about__text {
  order: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3rem 3rem;
}
.about__frame {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 0;
  overflow: hidden;
  box-shadow: none;
  background: none;
  padding: 0;
  border: none;
}
.about__frame::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid rgba(172, 111, 80, 0.14);
  border-radius: inherit;
  pointer-events: none;
}
.about__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 0;
  transition: transform 0.6s ease;
}
.about__visual:hover .about__image {
  transform: scale(1.04);
}
/* CSS tile mosaic visual */
.tile-mosaic {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 1;
  box-shadow: var(--shadow-lg);
}
.tile {
  aspect-ratio: 1;
  position: relative;
  overflow: hidden;
}
.tile::before, .tile::after { content: ''; position: absolute; }

/* Each tile gets a distinct geometric pattern */
.t1 { background: #c0714a; }
.t1::before {
  inset: 20%; border-radius: 50%;
  background: rgba(255,255,255,.3);
}
.t2 { background: #000000; }
.t2::before {
  top:0; left:50%; right:0; bottom:50%;
  background: rgba(255,255,255,.12);
  clip-path: polygon(0 0, 100% 0, 100% 100%);
}
.t3 { background: #e8c49a; }
.t3::before {
  inset: 15%; transform: rotate(45deg);
  background: rgba(43,58,94,.2);
}
.t4 { background: #3d5190; }
.t4::before {
  inset: 0; background: repeating-linear-gradient(
    45deg, rgba(255,255,255,.08) 0, rgba(255,255,255,.08) 4px,
    transparent 4px, transparent 12px
  );
}
.t5 { background: #f5ede0; }
.t5::before {
  inset: 0; background: repeating-linear-gradient(
    0deg, rgba(192,113,74,.15) 0, rgba(192,113,74,.15) 2px,
    transparent 2px, transparent 10px
  );
}
.t5::after {
  inset: 0; background: repeating-linear-gradient(
    90deg, rgba(192,113,74,.15) 0, rgba(192,113,74,.15) 2px,
    transparent 2px, transparent 10px
  );
}
.t6 { background: #a35a37; }
.t6::before {
  top:50%; left:0; right:0; bottom:0;
  background: rgba(0,0,0,.12);
}
.t7 { background: #d4956b; }
.t7::before {
  top: 0; left: 0; right: 0; height: 50%;
  background: rgba(255,255,255,.2);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
}
.t8 { background: #1a2644; }
.t8::before {
  inset: 10%; border-radius: 2px;
  background: rgba(255,255,255,.15);
  transform: rotate(45deg);
}
.t9 { background: #c8a882; }
.t9::before {
  inset: 0; background: radial-gradient(
    circle at 50% 50%, rgba(255,255,255,.3) 20%, transparent 70%
  );
}

.about__text p {
  color: var(--clr-text-muted);
  margin-bottom: 1.1rem;
  font-size: 1rem;
}
.about__bullets {
  margin: 1.6rem 0 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.about__bullets li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
  font-weight: 500;
}
.bullet-icon { color: var(--clr-terracotta); font-size: 0.75rem; }

/* =============================================
   ABOUT V2
   ============================================= */
.about2 {
  display: grid;
  grid-template-columns: 55fr 45fr;
  background: #fff;
  padding: 6.5rem 50px;
  gap: 0;
  align-items: start;
  width: 100%;
}
.about2__left {
  padding: 0 3rem 0 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.about2__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--clr-text-muted);
  margin-bottom: 1.2rem;
}
.about2__eyebrow::before {
  content: '⌐';
  font-size: 1.1rem;
  color: var(--clr-terracotta);
  font-weight: 900;
}
.about2__title {
  font-family: var(--ff-display);
  font-size: clamp(1.8rem, 2.8vw, 2.8rem);
  font-weight: 800;
  line-height: 1.1;
  color: #111;
  margin-bottom: 2rem;
}
.about2__intro-row {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 40px;
  align-items: stretch;
  margin-bottom: 1.8rem;
}
.about2__intro-body {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.about2__thumb {
  width: 300px;
  height: 100%;
  flex-shrink: 0;
  align-self: stretch;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18), 0 2px 8px rgba(0,0,0,0.10);
  border-radius: 4px;
  overflow: hidden;
}
.about2__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.about2__intro-text {
  color: var(--clr-text-muted);
  font-size: 1rem;
  line-height: 1.82;
}
.about2__bullets {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.about2__bullets li {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: #1a1a1a;
}
.about2__bullets li::before {
  content: '';
  display: inline-block;
  width: 7px;
  height: 7px;
  background: #111;
  flex-shrink: 0;
}
.btn--dark {
  display: inline-block;
  background: #111;
  color: #fff;
  border: 2px solid #111;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.85rem 2rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  text-decoration: none;
}
.btn--dark:hover {
  background: var(--clr-terracotta);
  border-color: var(--clr-terracotta);
  color: #fff;
}

/* Right column */
.about2 {
  align-items: stretch; /* override start so right col stretches */
}
.about2__right {
  overflow: visible;
  padding-bottom: 12%;
}
.about2__right-grid {
  position: relative;
  display: grid;
  grid-template-columns: 24fr 76fr;
  grid-template-rows: 1fr 1fr;
  gap: 0;
  min-height: 640px;
}
/* Col 1 rows 1+2 : stat décalé à droite */
.about2__stat {
  grid-column: 1;
  grid-row: 1 / 3;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 2rem 1.5rem 2rem 2.5rem;
  background: #fff;
  box-shadow: none;
}
.about2__stat-num {
  font-family: var(--ff-display);
  font-size: clamp(7rem, 13vw, 12rem);
  font-weight: 900;
  color: #C0714A;
  line-height: 1;
}
.about2__stat-num sup {
  font-size: 0.4em;
  vertical-align: super;
}
.about2__stat-label {
  font-size: 1rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-top: 1.8rem;
  line-height: 1.3;
  letter-spacing: 0.01em;
}
/* Col 2 rows 1+2 : image superposée pleine hauteur */
.about2__main-img-wrap {
  grid-column: 2;
  grid-row: 1 / 3;
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(0,0,0,0.22), 0 4px 12px rgba(0,0,0,0.12);
  border-radius: 4px;
}
.about2__main-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.6s ease;
}
.about2__main-img-wrap:hover .about2__main-img {
  transform: scale(1.04);
}
/* h1-our-about02 : superposée sur about03, décalée en bas à gauche */
.about2__mosaic {
  position: absolute;
  bottom: -12%;
  left: 0;
  width: 62%;
  height: auto;
  z-index: 2;
  overflow: visible;
  box-shadow: 0 12px 40px rgba(0,0,0,0.28), 0 3px 10px rgba(0,0,0,0.14);
  border-radius: 4px;
}
.about2__mosaic img {
  width: 100%;
  height: auto;
  object-fit: unset;
  display: block;
  transition: transform 0.6s ease;
}
.about2__mosaic:hover img {
  transform: scale(1.04);
}

/* Responsive */
@media (max-width: 900px) {
  .about2 {
    grid-template-columns: 1fr;
    padding: 3rem 0;

/* Mobile/touch stabilization for category model cards */
@media (max-width: 768px), (hover: none) and (pointer: coarse) {
  .reveal,
  .reveal.visible {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .tile-item,
  .tile-item:hover {
    transform: none !important;
    transition: none !important;
    box-shadow: none;
  }

  .tile-item__img {
    min-height: 150px;
  }

  .tile-item__img img {
    transform: translateZ(0);
    backface-visibility: hidden;
  }
}
  }
  .about2__left {
    padding: 0 1.5rem 2.5rem;
  }
  .about2__right {
    padding: 0 1.5rem;
  }
  .about2__right-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    min-height: auto;
  }
  .about2__stat {
    position: static;
    grid-column: 1;
    grid-row: 1;
    padding: 1.5rem 1rem 1rem 0;
    box-shadow: none;
  }
  .about2__main-img-wrap {
    grid-column: 1;
    grid-row: 2;
    height: 260px;
  }
  .about2__mosaic {
    position: relative;
    bottom: auto;
    left: auto;
    width: 100%;
    height: auto;
    z-index: auto;
    box-shadow: none;
    margin-top: 6px;
  }
  .about2__mosaic img {
    height: auto;
  }
  .about2__intro-row {
    grid-template-columns: 1fr;
  }
  .about2__thumb {
    width: 100%;
    height: 200px;
  }
}

/* =============================================
   PRODUCTS
   ============================================= */
.products { background: var(--clr-white); }
.products__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}
.product-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--clr-border);
  background: var(--clr-ivory);
  transition: box-shadow var(--transition), transform var(--transition);
}
.product-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}
.product-card__visual {
  height: 200px;
  position: relative;
  overflow: hidden;
}
.product-card__pattern {
  position: absolute;
  inset: 0;
}
.pc1 { background: #000000; }
.pc1 .product-card__pattern {
  background-image: repeating-linear-gradient(
    45deg, rgba(192,113,74,.22) 0, rgba(192,113,74,.22) 2px,
    transparent 2px, transparent 18px
  ),
  repeating-linear-gradient(
    -45deg, rgba(255,255,255,.06) 0, rgba(255,255,255,.06) 2px,
    transparent 2px, transparent 18px
  );
}
.pc2 { background: var(--clr-terracotta); }
.pc2 .product-card__pattern {
  background-image: repeating-linear-gradient(
    0deg, rgba(255,255,255,.1) 0, rgba(255,255,255,.1) 1px,
    transparent 1px, transparent 12px
  ),
  repeating-linear-gradient(
    90deg, rgba(255,255,255,.1) 0, rgba(255,255,255,.1) 1px,
    transparent 1px, transparent 12px
  );
}
.pc3 { background: #c8a882; }
.pc3 .product-card__pattern {
  background-image: repeating-radial-gradient(
    circle at 50% 50%, rgba(43,58,94,.2) 0, rgba(43,58,94,.2) 2px,
    transparent 2px, transparent 22px
  );
}
.pc4 { background: var(--clr-indigo); }
.pc4 .product-card__pattern {
  background: linear-gradient(
    135deg,
    rgba(192,113,74,.3) 25%, transparent 25%,
    transparent 50%, rgba(192,113,74,.3) 50%,
    rgba(192,113,74,.3) 75%, transparent 75%
  );
  background-size: 28px 28px;
}
.product-card__body {
  padding: 1.35rem 1.4rem 1.6rem;
}
.product-card__body h3 {
  font-family: var(--ff-display);
  font-size: 1.15rem;
  color: var(--clr-indigo);
  margin-bottom: 0.5rem;
}
.product-card__body p {
  font-size: 0.9rem;
  color: var(--clr-text-muted);
  margin-bottom: 1rem;
  line-height: 1.55;
}
.products__cta { text-align: center; }

/* =============================================
   PROCESS
   ============================================= */
.process {
  background: linear-gradient(160deg, var(--clr-indigo) 0%, #1a2644 100%);
  position: relative;
  overflow: hidden;
}
.process::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 420px; height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(192,113,74,.15) 0%, transparent 70%);
  pointer-events: none;
}
.process__steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.process__step {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-lg);
  padding: 2rem 1.6rem;
  transition: background var(--transition);
}
.process__step:hover { background: rgba(255,255,255,.1); }
.process__step-num {
  font-family: var(--ff-display);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--clr-terracotta);
  opacity: 0.7;
  line-height: 1;
  margin-bottom: 1.2rem;
}
.process__step-body h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--clr-white);
  margin-bottom: 0.6rem;
}
.process__step-body p {
  font-size: 0.9rem;
  color: rgba(255,255,255,.65);
  line-height: 1.6;
}

/* =============================================
   PROJECTS
   ============================================= */
.projects { background: var(--clr-sand); }
.projects__masonry {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: 260px 260px;
  gap: 1rem;
}
.project-item {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  cursor: pointer;
}
.project-item:hover .project-item__img { transform: scale(1.05); }
.project-item:hover .project-item__overlay { opacity: 1; }
.pi--large {
  grid-row: span 2;
}
.project-item__img {
  width: 100%; height: 100%;
  transition: transform 0.5s ease;
  background-size: cover;
  background-position: center;
}
/* CSS gradient placeholders as project images */
.pi--img1 { background: linear-gradient(145deg, #000000 0%, #c0714a 100%); }
.pi--img1::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    45deg, rgba(255,255,255,.04) 0, rgba(255,255,255,.04) 1px,
    transparent 1px, transparent 20px
  );
}
.pi--img2 { background: linear-gradient(135deg, #c0714a 0%, #e8c49a 100%); }
.pi--img3 { background: linear-gradient(160deg, #1a2644 30%, #3d5190 100%); }
.pi--img4 { background: linear-gradient(135deg, #a35a37 0%, #c0714a 50%, #000000 100%); }

.project-item__overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 1.4rem 1.5rem;
  background: linear-gradient(to top, rgba(26,38,68,.88) 0%, transparent 100%);
  opacity: 0;
  transition: opacity var(--transition);
}
.project-item__cat {
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--clr-terracotta);
  display: block;
  margin-bottom: 0.35rem;
}
.project-item__overlay h3 {
  font-family: var(--ff-display);
  font-size: 1.1rem;
  color: var(--clr-white);
}

/* =============================================
   SIMULATOR CTA
   ============================================= */
.sim-cta {
  background: var(--clr-terracotta);
  padding: 5.5rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.sim-cta__pattern {
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    45deg, rgba(255,255,255,.05) 0, rgba(255,255,255,.05) 1px,
    transparent 1px, transparent 22px
  ),
  repeating-linear-gradient(
    -45deg, rgba(255,255,255,.05) 0, rgba(255,255,255,.05) 1px,
    transparent 1px, transparent 22px
  );
}
.sim-cta__content {
  position: relative;
  z-index: 1;
  max-width: 600px;
}
.sim-cta__content h2 {
  font-family: var(--ff-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--clr-white);
  margin-bottom: 1rem;
}
.sim-cta__content p {
  color: rgba(255,255,255,.8);
  font-size: 1rem;
  margin-bottom: 2.2rem;
  line-height: 1.7;
}
.sim-cta .btn--primary {
  background: var(--clr-white);
  color: var(--clr-terracotta);
  box-shadow: 0 6px 28px rgba(0,0,0,.15);
}
.sim-cta .btn--primary:hover {
  background: var(--clr-ivory);
  box-shadow: 0 8px 36px rgba(0,0,0,.2);
}

/* =============================================
   CONTACT
   ============================================= */
.contact { background: var(--clr-ivory); }
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 5rem;
  align-items: flex-start;
}
.contact__info p {
  color: var(--clr-text-muted);
  margin-bottom: 2rem;
  line-height: 1.7;
}
.contact__details {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.contact__details li {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  font-size: 0.95rem;
}
.contact__icon { font-size: 1.1rem; flex-shrink: 0; }
.contact__details a { color: var(--clr-terracotta); transition: color var(--transition); }
.contact__details a:hover { color: var(--clr-terra-dk); }

/* Form */
.contact__form {
  background: var(--clr-white);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.1rem;
}
.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--clr-indigo);
}
.form-group input,
.form-group select,
.form-group textarea {
  border: 1.5px solid var(--clr-border);
  border-radius: var(--radius);
  padding: 0.7rem 0.95rem;
  font-family: var(--ff-body);
  font-size: 0.95rem;
  color: var(--clr-text);
  background: var(--clr-ivory);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--clr-terracotta);
  box-shadow: 0 0 0 3px rgba(192,113,74,.12);
}
.form-group textarea { resize: vertical; }
.form-notice {
  margin-top: 1rem;
  font-size: 0.9rem;
  text-align: center;
  min-height: 1.4em;
}
.form-notice.success { color: #2e7d52; }
.form-notice.error   { color: #c0392b; }

/* =============================================
   FOOTER
   ============================================= */
.footer {
  background: var(--clr-indigo);
  color: rgba(255,255,255,.75);
}
.footer__grid {
  display: grid;
  grid-template-columns: 2fr minmax(14rem, 1.1fr) minmax(14rem, 1.1fr) 1.35fr;
  gap: 3rem;
  padding: 4.5rem 0 3rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer__brand .navbar__logo,
.footer__logo {
  color: var(--clr-white);
  margin-bottom: 1rem;
  display: inline-flex;
  align-items: center;
}
.footer__brand p {
  font-size: 0.9rem;
  line-height: 1.65;
  max-width: 28ch;
}
.footer__col h4 {
  color: var(--clr-white);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}
.footer__col ul { display: flex; flex-direction: column; gap: 0.6rem; }
.footer__col ul li a,
.footer__col p,
.footer__col a {
  font-size: 0.9rem;
  transition: color var(--transition);
}
.footer__col ul li a:hover,
.footer__col a:hover { color: var(--clr-terracotta); }
.footer__col p { margin-bottom: 0.4rem; }

.footer__col--nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  margin: 0;
  padding: .8rem 1rem;
  border-radius: 16px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  color: rgba(255,255,255,.88);
  line-height: 1.25;
  transition: transform var(--transition), background var(--transition), border-color var(--transition), color var(--transition), box-shadow var(--transition);
}

.footer__col--nav a::after {
  content: '›';
  flex: 0 0 auto;
  color: var(--clr-terracotta);
  font-size: 1.1rem;
  line-height: 1;
  transition: transform var(--transition);
}

.footer__col--nav a:hover {
  background: rgba(255,255,255,.08);
  border-color: rgba(192,113,74,.38);
  color: var(--clr-white);
  transform: translateX(3px);
  box-shadow: 0 10px 20px rgba(0,0,0,.12);
}

.footer__col--nav a:hover::after {
  transform: translateX(2px);
}

.footer__bottom {
  padding: 1.5rem 0;
  text-align: center;
}

.footer__bottom .container {
  display: flex;
  justify-content: center;
}

.footer__bottom p {
  margin: 0;
}
.footer__bottom-inner--credits {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  width: 100%;
  text-align: center;
  gap: 1rem;
  margin: 0 auto;
}
.footer__bottom-inner--credits p {
  margin: 0;
  color: rgba(255,255,255,.72);
}
.footer__bottom-inner--credits a {
  color: var(--clr-white);
  font-weight: 600;
  text-decoration: none;
}
.footer__bottom-inner--credits a:hover {
  color: var(--clr-terracotta);
}
.footer__bottom-separator {
  display: inline-block;
  width: 1px;
  height: 1rem;
  background: rgba(255,255,255,.18);
}
.footer__bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.85rem;
}

.footer__bottom-inner.footer__bottom-inner--credits {
  justify-content: center;
  text-align: center;
  width: 100%;
  margin: 0 auto;
}
.footer__bottom-inner a { color: var(--clr-terracotta); }
.footer__bottom-inner a:hover { text-decoration: underline; }

/* =============================================
   BACK TO TOP
   ============================================= */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--clr-terracotta);
  color: var(--clr-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 700;
  box-shadow: 0 4px 18px rgba(192,113,74,.4);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity var(--transition), transform var(--transition);
  z-index: 900;
}
.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.back-to-top:hover { background: var(--clr-terra-dk); }

/* =============================================
   WHATSAPP FLOAT
   ============================================= */
.whatsapp-float {
  position: fixed;
  left: 1.15rem;
  right: auto !important;
  bottom: 1.2rem;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25d366;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  box-shadow: 0 12px 24px rgba(7, 94, 84, .32);
  border: 2px solid rgba(255, 255, 255, .92);
  z-index: 920;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, border-color .2s ease;
}
.whatsapp-float svg {
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
}
.whatsapp-float:hover {
  background: #1fb95b;
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(7, 94, 84, .38);
  border-color: #ffffff;
}

/* =============================================
   COOKIE BANNER
   ============================================= */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  padding: .85rem 1rem;
  background: rgba(12, 20, 48, .97);
  border-top: 1px solid rgba(255, 255, 255, .14);
  box-shadow: 0 -12px 28px rgba(0, 0, 0, .22);
  transform: translateY(108%);
  opacity: 0;
  pointer-events: none;
  transition: transform var(--transition), opacity var(--transition);
  z-index: 950;
}

.cookie-banner.is-visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.cookie-banner__inner {
  width: min(1140px, 100%);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .95rem 1.2rem;
}

.cookie-banner__text {
  margin: 0;
  color: rgba(255, 255, 255, .88);
  font-size: .92rem;
  line-height: 1.55;
}

.cookie-banner__text a {
  color: #f3be93;
  font-weight: 600;
}

.cookie-banner__text a:hover {
  color: #ffd6b7;
}

.cookie-banner__actions {
  display: flex;
  align-items: center;
  gap: .6rem;
  flex-shrink: 0;
}

.cookie-banner__btn {
  min-width: 106px;
}

#cookieAcceptBtn.cookie-banner__btn {
  background: #ffffff;
  border-color: #ffffff;
  color: #0f1b3a;
}

#cookieAcceptBtn.cookie-banner__btn:hover {
  background: #f4f6fb;
  border-color: #f4f6fb;
  color: #0f1b3a;
}

body.has-cookie-banner .whatsapp-float {
  bottom: 5.8rem;
}

body.has-cookie-banner .back-to-top {
  bottom: 6.2rem;
}

@media (max-width: 768px) {
  .whatsapp-float {
    left: .8rem;
    right: auto !important;
    bottom: .8rem;
    width: 52px;
    height: 52px;
  }
  .footer__bottom-inner--credits {
    flex-direction: column;
    gap: .55rem;
  }
  .footer__bottom-separator {
    width: 2.5rem;
    height: 1px;
  }
  .whatsapp-float svg {
    width: 27px;
    height: 27px;
  }

  .cookie-banner {
    padding: .8rem .85rem calc(.8rem + env(safe-area-inset-bottom, 0px));
  }

  .cookie-banner__inner {
    flex-direction: column;
    align-items: stretch;
    gap: .7rem;
    padding-left: 3.4rem;
  }

  .cookie-banner__text {
    font-size: .88rem;
  }

  .cookie-banner__actions {
    width: 100%;
    justify-content: flex-end;
  }

  .cookie-banner__btn {
    min-width: 96px;
  }

  body.has-cookie-banner .whatsapp-float {
    bottom: 6.9rem;
  }

  body.has-cookie-banner .back-to-top {
    bottom: 7.2rem;
  }
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
  .products__grid { grid-template-columns: repeat(2, 1fr); }
  .process__steps  { grid-template-columns: repeat(2, 1fr); }
  .stats__grid     { grid-template-columns: repeat(2, 1fr); }
  .stat-card       { border-bottom: 1px solid var(--clr-border); }
  .footer__grid    { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .section__sub,
  .footer__bottom p,
  .palette-callout,
  .footer__bottom-inner {
    text-align: center;
  }

  /* Mobile menu open state - must be before other .navbar__menu rules */
  .navbar__menu.open { transform: translateY(0) !important; -webkit-transform: translateY(0) !important; transition: transform var(--transition), -webkit-transform var(--transition) !important; }

  :root {
    --nav-h: 84px;
    --nav-offset: calc(var(--nav-h) + var(--safe-top));
  }

  .navbar {
    padding-top: var(--safe-top);
    padding-left: env(safe-area-inset-left, 0px);
    padding-right: env(safe-area-inset-right, 0px);
    height: var(--nav-offset);
    background: rgba(12,20,48,0.56);
    border-bottom-color: rgba(255,255,255,.14);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
  }

  .navbar__inner {
    min-height: var(--nav-h);
  }

  .navbar .navbar__logo {
    height: calc(var(--nav-h) - 8px);
    width: clamp(150px, 44vw, 230px);
  }

  .navbar .navbar__logo-img--header {
    max-height: calc(var(--nav-h) - 10px);
  }

  .navbar .navbar__logo-img--sticky {
    max-height: calc(var(--nav-h) - 20px);
  }

  .navbar__simulator-desktop {
    display: none;
  }

  .navbar__simulator-mobile {
    display: inline-flex;
    padding: 0.42rem 0.82rem;
    font-size: 0.78rem;
    margin-left: auto;
    margin-right: 0.4rem;
    line-height: 1;
    min-height: 34px;
  }

  .navbar__burger {
    display: flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    margin-right: -4px;
    gap: 4px;
    touch-action: manipulation;
  }

  .navbar__burger span {
    width: 20px;
  }

  .hero {
    min-height: 100svh;
    height: auto;
    margin-top: 0;
    padding-top: var(--nav-offset);
  }

  .hero-projets-shared {
    padding-top: calc(var(--nav-offset) + 3rem);
  }

  .section { padding: 4rem 0; }
  .about__grid   { grid-template-columns: 1fr; gap: 0; }
  .about__visual { order: -1; min-height: 280px; }
  .about__text   { padding: 2.5rem 1.5rem; }
  .about__frame,
  .tile-mosaic   { max-width: 100%; margin: 0; }
  .contact__grid { grid-template-columns: 1fr; gap: 3rem; }
  .projects__masonry {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }
  .pi--large { grid-row: span 1; }
  .products__grid { grid-template-columns: 1fr; }
  .product-card.reveal,
  .product-card.reveal.visible {
    width: min(94vw, 100%);
    margin-left: auto;
    margin-right: auto;
  }
  .process__steps { grid-template-columns: 1fr; }
  .footer__grid   { grid-template-columns: 1fr; gap: 2rem; padding: 3rem 0 2rem; }
  .footer__brand,
  .footer__col:not(.footer__col--nav) {
    text-align: center;
  }
  .footer__brand p {
    text-align: center;
    max-width: none;
    margin-left: auto;
    margin-right: auto;
  }
  .footer__col:not(.footer__col--nav) p,
  .footer__col:not(.footer__col--nav) a {
    text-align: center;
  }
  .footer__col:not(.footer__col--nav) .footer__tagline,
  .footer__col:not(.footer__col--nav) p {
    max-width: none;
    margin-left: auto;
    margin-right: auto;
  }
  .footer__col--nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .6rem;
    justify-items: stretch;
    text-align: left;
    padding: 1.15rem;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
    border: 1px solid rgba(255,255,255,.08);
    box-shadow: 0 14px 30px rgba(0,0,0,.16);
  }
  .footer__col--nav h4 {
    grid-column: 1 / -1;
    margin-bottom: .35rem;
    justify-self: center;
    text-align: center;
    letter-spacing: .16em;
  }
  .footer__col--nav a {
    margin-bottom: 0;
    line-height: 1.35;
    width: 100%;
    text-align: left;
  }
  .footer__brand,
  .footer__col {
    text-align: center;
  }
  .footer__brand p,
  .footer__col p {
    max-width: none;
    margin-left: auto;
    margin-right: auto;
  }
  .form-row { grid-template-columns: 1fr; }

  /* Burger nav */
  .navbar__menu {
    position: fixed;
    inset: var(--nav-offset) 0 0 0;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    background: rgba(8,16,40,0.84);
    padding: 1rem 1rem calc(1.35rem + env(safe-area-inset-bottom, 0px));
    gap: 1.2rem;
    box-shadow: 0 20px 34px rgba(0,0,0,.28);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transform: translateY(-110%);
    transition: transform var(--transition);
    z-index: 999;
    height: calc(100dvh - var(--nav-offset));
    max-height: none;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    visibility: hidden;
    pointer-events: none;
  }
  .navbar__menu.open { 
    transform: translateY(0) !important; 
    -webkit-transform: translateY(0) !important; 
    visibility: visible; 
    pointer-events: auto; 
  }
  .navbar__menu a { color: #f4f6ff !important; font-size: 1rem; }
  .navbar__menu a.nav-active { color: #C0714A !important; }
  .navbar__menu > a,
  .navbar__menu .nav-dropdown__trigger,
  .navbar__menu .megamenu__item,
  .navbar__menu .megamenu__right-title {
    background: transparent !important;
  }

  /* Groupe secondaire (Zellige, FAQ, Projets, À propos, Contact) — cadre mobile */
  .navbar__secondary-group {
    width: 100%;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.13);
    border-radius: .55rem;
    overflow: hidden;
    margin: .3rem 0;
  }
  .navbar__secondary-group a {
    display: flex !important;
    align-items: center;
    width: 100%;
    padding: .7rem 1rem !important;
    font-size: .95rem !important;
    border-bottom: 1px solid rgba(255,255,255,.08);
    color: #f4f6ff !important;
    background: transparent !important;
  }
  .navbar__secondary-group a:last-child { border-bottom: none; }
  .navbar__secondary-group a:hover,
  .navbar__secondary-group a.nav-active {
    background: rgba(192,113,74,.18) !important;
    color: #e8a07a !important;
  }
  .navbar__secondary-group a::after { display: none !important; }

  /* Megamenu inside burger: full-width static stack */
  .nav-dropdown { width: 100%; }
  .nav-dropdown__trigger {
    width: 100%;
    font-size: 1rem;
    color: #f4f6ff !important;
  }
  .nav-dropdown__menu.megamenu {
    position: static !important;
    flex-direction: column;
    min-width: 0;
    width: 100%;
    transform: none !important;
    box-shadow: none;
    border: 1px solid rgba(255,255,255,.2);
    border-radius: var(--radius);
    background: rgba(6,13,34,0.88);
    margin-top: .5rem;
    max-height: none;
    overflow: visible;
    display: none;
    opacity: 1;
    pointer-events: auto;
  }
  .nav-dropdown__menu.megamenu.open {
    display: flex;
  }
  .megamenu__left  { width: 100%; padding: .25rem 0; }
  .megamenu__right {
    border-left: none;
    border-top: 1px solid rgba(255,255,255,.2);
    background: rgba(7,15,38,0.92);
    max-height: none;
    overflow-y: visible;
    padding: .25rem 0;
    display: none;
  }
  .megamenu__right.open { display: block; }
  .megamenu__item  { font-size: .95rem; padding: .7rem 1rem; white-space: normal; color: #f4f6ff !important; }
  .megamenu__item:hover { background: rgba(255,255,255,.08); color: #fff !important; }
  .megamenu__item--cat { background: rgba(192,113,74,.18) !important; border-left: 3px solid #c0714a; padding-left: .85rem !important; }
  .megamenu__item--cat:hover { background: rgba(192,113,74,.30) !important; }
  .megamenu__right-title { padding: .7rem 1rem .4rem; color: rgba(244,246,255,.88); }
}

@media (max-width: 480px) {
  .hero__actions { flex-direction: column; }
  .stats__grid   { grid-template-columns: repeat(2, 1fr); }
  .projects__masonry { grid-template-columns: 1fr; }
  .footer__col--nav {
    grid-template-columns: 1fr;
    justify-items: stretch;
  }
  .footer__col--nav a {
    padding: .9rem 1rem;
  }
  .footer__bottom-inner { flex-direction: column; text-align: center; }
}

/* Safety override: keep mobile menu items pinned at the top */
@media (max-width: 768px) {
  .navbar__menu {
    justify-content: flex-start !important;
    align-content: flex-start;
    padding-top: 1rem !important;
  }
  .navbar__menu > * {
    flex: 0 0 auto;
  }
}

/* =============================================
   CSS ALIASES (used by PHP pages)
   ============================================= */
:root {
  --primary:    var(--clr-terracotta);
  --heading:    var(--clr-indigo);
  --text-muted: var(--clr-text-muted);
  --bg-soft:    var(--clr-sand);
  --border:     var(--clr-border);
}

/* =============================================
   NAV ACTIVE LINK
   ============================================= */
.navbar__menu .nav-active,
.navbar__menu a.nav-active {
  color: #C0714A !important;
}
.navbar__menu .nav-active::after { width: 100%; }

/* =============================================
   NAV DROPDOWN
   ============================================= */
.nav-dropdown { position: relative; }

.nav-dropdown__trigger {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: .92rem;
  font-weight: 500;
  white-space: nowrap;
  line-height: 1.15;
  color: #C0714A;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: color var(--transition);
  font-family: var(--ff-body);
}
.navbar.scrolled .nav-dropdown__trigger { color: #fff; }
.nav-dropdown__trigger { color: #fff; }
.nav-dropdown__trigger:hover,
.nav-dropdown__trigger.nav-active { color: #C0714A !important; }

.nav-dropdown__arrow {
  font-size: .75rem;
  transition: transform .2s;
  display: inline-block;
}
.nav-dropdown__trigger[aria-expanded="true"] .nav-dropdown__arrow {
  transform: rotate(180deg);
}

.nav-dropdown__menu {
  position: absolute;
  top: calc(100% + .75rem);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  min-width: 240px;
  background: var(--clr-white);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: .5rem 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
  z-index: 1100;
  max-height: 420px;
  overflow-y: auto;
}
.nav-dropdown__menu.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown__item {
  display: block;
  padding: .6rem 1.25rem;
  font-size: .9rem;
  color: #C0714A !important;
  transition: background var(--transition), color var(--transition);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nav-dropdown__item:hover {
  background: var(--clr-sand);
  color: #C0714A !important;
}
.nav-dropdown__item::after { display: none !important; }

.nav-dropdown__item--all {
  font-weight: 600;
  color: #C0714A !important;
}

.nav-dropdown__divider {
  height: 1px;
  background: var(--clr-border);
  margin: .4rem 0;
}

/* === MEGA MENU ========================================= */
.nav-dropdown__menu.megamenu {
  display: flex;
  flex-direction: column;
  min-width: 320px;
  max-height: none;
  overflow: visible;
  padding: 0;
  left: 0;
  transform: translateY(-6px);
}
.nav-dropdown__menu.megamenu.open {
  transform: translateY(0);
}

.megamenu__left {
  width: 100%;
  padding: .5rem 0;
}

.megamenu__right {
  width: 100%;
  padding: .5rem 0;
  max-height: 420px;
  overflow-y: auto;
  border-top: 1px solid var(--clr-border);
  display: none;
}
.megamenu__right.open {
  display: block;
}

.megamenu__item {
  display: flex;
  align-items: center;
  gap: .55rem;
  padding: .85rem 1.4rem;
  font-size: .95rem;
  font-weight: 500;
  color: #C0714A !important;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
  text-decoration: none;
  white-space: nowrap;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
}
.megamenu__item:hover {
  background: var(--clr-sand);
  color: #C0714A;
}
.megamenu__item::after { display: none !important; }

.megamenu__right .megamenu__item {
  border-bottom: 1px solid var(--clr-border);
}
.megamenu__right .megamenu__item:last-child {
  border-bottom: none;
}

/* Catégories — fond ivoire chaud pour les distinguer */
.megamenu__item--cat {
  background: color-mix(in srgb, #c0714a 8%, #fff 92%);
  border-left: 3px solid var(--clr-terracotta);
  padding-left: .85rem !important;
}
.megamenu__item--cat:hover {
  background: color-mix(in srgb, #c0714a 16%, #fff 84%) !important;
  color: #C0714A !important;
}
body.is-inner-page .navbar .megamenu__item--cat {
  background: color-mix(in srgb, #c0714a 8%, #fff 92%) !important;
  border-left: 3px solid var(--clr-terracotta);
}
body.is-inner-page .navbar .megamenu__item--cat:hover {
  background: color-mix(in srgb, #c0714a 16%, #fff 84%) !important;
}

.megamenu__icon {
  color: var(--clr-terracotta);
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1;
  flex-shrink: 0;
}

.megamenu__item--btn {
  width: 100%;
  border: none;
  background: none;
  cursor: pointer;
  text-align: left;
  justify-content: flex-start;
}

.megamenu__sub-arrow {
  margin-left: auto;
  color: var(--clr-terracotta);
  font-size: 1.1rem;
  font-weight: 700;
  transition: transform var(--transition);
}

.megamenu__item--btn.active .megamenu__sub-arrow {
  transform: rotate(90deg);
}

.megamenu__sep {
  height: 1px;
  background: var(--clr-border);
  margin: .25rem 0;
}

.megamenu__right-title {
  padding: .6rem 1.4rem .5rem;
  font-size: .78rem;
  font-weight: 700;
  color: var(--clr-terracotta);
  text-transform: uppercase;
  letter-spacing: .06em;
}



@media (max-width: 1280px) {
  .navbar .navbar__logo {
    height: calc(var(--nav-h) - 16px);
    width: clamp(150px, 22vw, 280px);
  }
  .navbar__logo-img--header { max-height: calc(var(--nav-h) - 20px); }
  .navbar__logo-img--sticky { max-height: calc(var(--nav-h) - 34px); }
  .navbar__menu a,
  .nav-dropdown__trigger { font-size: 0.88rem; }
}



/* =============================================
   INNER PAGES — navbar transparent
   ============================================= */
body.is-inner-page .navbar {
  background: transparent;
  border-bottom-color: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
body.is-inner-page .navbar.scrolled {
  background: rgba(12,20,48,0.82);
  border-bottom-color: rgba(255,255,255,.14);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
body.is-inner-page .navbar .navbar__logo          { color: #fff !important; }
body.is-inner-page .navbar .navbar__menu a        { color: #fff !important; }
body.is-inner-page .navbar .navbar__menu a:hover  { color: #C0714A !important; }
body.is-inner-page .navbar .navbar__menu a.nav-active { color: #C0714A !important; }
body.is-inner-page .navbar .nav-dropdown__trigger { color: #fff !important; }
body.is-inner-page .navbar .navbar__burger span   { background: #fff !important; }

/* Keep dropdown entries readable on white mega-menu background */
body.is-inner-page .navbar .nav-dropdown__menu .megamenu__item {
  color: #7a4d36 !important;
}
body.is-inner-page .navbar .nav-dropdown__menu .megamenu__item:hover {
  color: #C0714A !important;
  background: var(--clr-sand);
}
body.is-inner-page .navbar .nav-dropdown__menu .megamenu__right-title {
  color: var(--clr-text-muted);
}

/* =============================================
   PAGE HERO (interior pages)
   ============================================= */
.page-hero {
  margin-top: 0;
  position: relative;
  overflow: hidden;
  min-height: 30vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: calc(var(--nav-h) + 4rem) 0 5rem;
}

.hero-projets-shared {
  background:
    linear-gradient(160deg, rgba(12,20,48,0.82) 0%, rgba(163,90,55,0.45) 100%),
    var(--hero-shared-image-url, url('/sybatiles_simulator/media.sybatiles.ma/website/header-hero.webp')) center/cover no-repeat;
  margin-top: 0;
  padding: calc(var(--nav-h) + 4rem) 0 5rem;
  position: relative;
  overflow: hidden;
  min-height: 30vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.hero-projets-shared::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(
      45deg, rgba(255,255,255,.025) 0px, rgba(255,255,255,.025) 1px,
      transparent 1px, transparent 28px
    );
  pointer-events: none;
}
.page-hero__content {
  position: relative;
  z-index: 1;
  max-width: 740px;
}
.page-hero__title {
  font-family: var(--ff-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  color: var(--clr-white);
  line-height: 1.15;
  margin-bottom: 1rem;
}
.page-hero__sub {
  font-size: 1.05rem;
  color: rgba(255,255,255,.72);
  line-height: 1.7;
  max-width: 56ch;
}

/* =============================================
   BREADCRUMB
   ============================================= */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .82rem;
  color: rgba(255,255,255,.6);
  margin-bottom: 1.2rem;
  flex-wrap: wrap;
}
.breadcrumb a {
  color: rgba(255,255,255,.7);
  transition: color var(--transition);
}
.breadcrumb a:hover { color: var(--clr-terracotta); }
.breadcrumb span[aria-current] { color: rgba(255,255,255,.45); }

/* =============================================
   ALERT BANNER
   ============================================= */
.alert-banner {
  border-radius: var(--radius-lg);
  padding: 1.2rem 1.6rem;
  margin-bottom: 2rem;
  background: #fff3e0;
  border: 1px solid #f0cba0;
  color: #7c4a0e;
}
.alert-banner--info {
  background: #e8f4fd;
  border-color: #b3d7f0;
  color: #1a5276;
}
.alert-banner--success {
  background: #eafaf1;
  border-color: #a9dfbf;
  color: #1e5631;
  padding: 1.8rem 2rem;
}
.alert-banner--error {
  background: #fdedec;
  border-color: #f5b7b1;
  color: #922b21;
}

/* =============================================
   CATEGORIES GRID (carreaux-ciment.php)
   ============================================= */
.container--catalog-wide {
  max-width: 90vw;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.6rem;
}
.category-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--clr-white);
  border: 1px solid var(--clr-border);
  transition: box-shadow var(--transition), transform var(--transition);
  display: block;
  text-decoration: none;
  color: inherit;
}
.category-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}
.category-card__visual {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--clr-white);
  padding: 1.5rem;
}
.category-card__thumb {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid rgba(43,58,94,.08);
}
.category-card__body {
  padding: 1.25rem 1.3rem 1.5rem;
}
.category-card__name {
  font-family: var(--ff-display);
  font-size: 1.1rem;
  color: var(--clr-indigo);
  margin-bottom: .35rem;
}
.category-card__count {
  font-size: .82rem;
  color: var(--clr-text-muted);
  margin-bottom: .8rem;
}

/* =============================================
   TILE MOSAIC SMALL
   ============================================= */
.tile-mosaic--small {
  width: 100%;
  max-width: 140px;
  gap: 4px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* =============================================
   TILES GRID (categorie.php)
   ============================================= */
.tiles-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.4rem;
}
.tile-item {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--clr-white);
  border: 1px solid var(--clr-border);
  transition: box-shadow var(--transition), transform var(--transition);
}
.tile-item:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}
.tile-item__img {
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--clr-white);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: .75rem;
}
.tile-item__img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
  border: 1px solid rgba(43,58,94,.08);
  border-radius: calc(var(--radius) - 2px);
}
.tile-item__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tile-item__body {
  padding: .9rem 1rem 1.1rem;
}
.tile-item__num {
  font-size: .82rem;
  font-weight: 600;
  color: var(--clr-text-muted);
  margin-bottom: .4rem;
}

/* =============================================
   FOOTER TAGLINE
   ============================================= */
.footer__tagline {
  font-size: .9rem;
  color: rgba(255,255,255,.6);
  margin-top: .6rem;
  max-width: 28ch;
  line-height: 1.6;
}

/* =============================================
   RESPONSIVE — PHP pages additions
   ============================================= */
@media (max-width: 1024px) {
  .categories-grid { grid-template-columns: repeat(3, 1fr); }
  .tiles-grid       { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 768px) {
  .container--catalog-wide { max-width: 100%; }
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .tiles-grid       { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 480px) {
  .categories-grid { grid-template-columns: 1fr; }
  .tiles-grid       { grid-template-columns: repeat(2, 1fr); }
}

/* =============================================
   PAGE COULEURS — Palette Mosaico
   ============================================= */
.palette-section { background: var(--clr-ivory); }

.palette-group {
  margin-bottom: 4.5rem;
}
.palette-group__title {
  font-family: var(--ff-display);
  font-size: 1.15rem;
  color: var(--clr-indigo);
  margin-bottom: 1.75rem;
  display: flex;
  align-items: center;
  gap: .75rem;
}
.palette-group__title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--clr-border);
}

/* Grid of color cards */
.palette-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 1.5rem;
}

/* Card = chip (real tile photo) + info strip below */
.palette-swatch {
  border-radius: 0;
  overflow: hidden;
  background: transparent;
  border: none;
  box-shadow: none;
  cursor: default;
  transition: none;
}
.palette-swatch:hover {
  transform: none;
  box-shadow: none;
  filter: none;
  z-index: auto;
}

/* Tile photo area — pure image, no text overlay */
.palette-swatch__chip {
  position: relative;
  aspect-ratio: 1 / 1;
  height: auto;
  width: 100%;
  overflow: hidden;
  background: transparent;
}
.palette-swatch__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: none;
}
.palette-swatch:hover .palette-swatch__img {
  transform: none;
  filter: none;
}

/* Info strip */
.palette-swatch__info {
  padding: .55rem .2rem 0;
  display: flex;
  flex-direction: column;
  gap: .12rem;
  border-top: none;
  text-align: center;
}
.palette-swatch__name {
  font-size: .84rem;
  font-weight: 600;
  color: var(--clr-indigo);
  line-height: 1.2;
}
.palette-swatch__sub {
  font-size: .7rem;
  color: var(--clr-text-muted);
}
.palette-swatch__hex {
  font-family: 'Courier New', monospace;
  font-size: .7rem;
  color: var(--clr-text-muted);
  text-transform: uppercase;
}

/* Callout banner */
.palette-callout {
  margin-top: 3rem;
  background: linear-gradient(135deg, var(--clr-indigo) 0%, #1a2644 100%);
  border-radius: var(--radius-lg);
  padding: 3rem 3.5rem;
  display: flex;
  align-items: center;
  gap: 2.5rem;
  position: relative;
  overflow: hidden;
}
.palette-callout::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    45deg, rgba(255,255,255,.03) 0, rgba(255,255,255,.03) 1px,
    transparent 1px, transparent 22px
  );
}
.palette-callout__icon {
  font-size: 3.5rem;
  color: var(--clr-terracotta);
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  line-height: 1;
}
.palette-callout__body {
  position: relative;
  z-index: 1;
}
.palette-callout__body h3 {
  font-family: var(--ff-display);
  font-size: 1.5rem;
  color: var(--clr-white);
  margin-bottom: .6rem;
}
.palette-callout__body p {
  color: rgba(255,255,255,.72);
  font-size: .95rem;
  line-height: 1.65;
  max-width: 60ch;
  margin-bottom: 1.6rem;
}
.palette-callout__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
.palette-callout .btn--outline {
  border-color: rgba(255,255,255,.45);
  color: rgba(255,255,255,.85);
}
.palette-callout .btn--outline:hover {
  border-color: var(--clr-white);
  background: rgba(255,255,255,.12);
  color: var(--clr-white);
}

/* =============================================
   PAGE INSPIRATION
   ============================================= */
.inspiration-page {
  background:
    radial-gradient(circle at 8% 12%, rgba(192,113,74,.10) 0, transparent 38%),
    radial-gradient(circle at 86% 18%, rgba(61,81,144,.09) 0, transparent 35%),
    linear-gradient(180deg, #fdfaf5 0%, var(--clr-ivory) 100%);
}

.inspiration-page__head {
  margin-bottom: 2.4rem;
}

.inspiration-tabs {
  display: flex;
  flex-wrap: nowrap;
  gap: .75rem;
  overflow-x: auto;
  padding: .35rem;
  margin: 0 0 2rem;
  border: 1px solid rgba(232,221,210,.9);
  border-radius: 999px;
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(4px);
  scrollbar-width: none;
}

.inspiration-tabs::-webkit-scrollbar {
  display: none;
}

.inspiration-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  padding: .62rem 1.1rem;
  border-radius: 999px;
  border: 1px solid transparent;
  color: var(--clr-text-muted);
  background: transparent;
  font-size: .86rem;
  font-weight: 600;
  transition: background var(--transition), color var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.inspiration-tab:hover {
  color: var(--clr-terracotta);
  border-color: rgba(192,113,74,.34);
}

.inspiration-tab.is-active {
  background: var(--clr-terracotta);
  color: var(--clr-white);
  border-color: var(--clr-terracotta);
  box-shadow: 0 7px 22px rgba(192,113,74,.28);
}

.inspiration-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.3rem;
}

.inspiration-card {
  min-width: 0;
}

.reveal--stagger {
  transition-delay: 0ms;
}

.reveal--stagger.visible {
  transition-delay: var(--reveal-delay, 0ms);
}

.inspiration-card__media {
  position: relative;
  overflow: hidden;
  border-radius: 1.15rem;
  aspect-ratio: 4 / 3;
  background: #efe5d8;
  box-shadow: 0 10px 26px rgba(28,28,28,.08);
}

.inspiration-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform .55s ease, filter .55s ease;
}

.inspiration-card__overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1rem;
  color: #fff;
  background: linear-gradient(to top, rgba(12,20,48,.88) 0%, rgba(12,20,48,.12) 80%);
  transform: translateY(8px);
  opacity: .02;
  transition: opacity .35s ease, transform .35s ease;
}

.inspiration-card__category {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: #ffd9c9;
  margin-bottom: .4rem;
}

.inspiration-card__title {
  font-family: var(--ff-display);
  font-size: 1.12rem;
  line-height: 1.2;
  margin-bottom: .35rem;
}

.inspiration-card__desc {
  font-size: .84rem;
  color: rgba(255,255,255,.86);
  line-height: 1.45;
}

.inspiration-card:hover .inspiration-card__media img {
  transform: scale(1.06);
  filter: saturate(1.08);
}

.inspiration-card:hover .inspiration-card__overlay {
  opacity: 1;
  transform: translateY(0);
}

/* =============================================
   PAGE HEXAGONES
   ============================================= */
.hex-page {
  background: linear-gradient(180deg, #fff 0%, #f8f4ee 100%);
}

.hex-page__container {
  width: min(94%, 1240px);
  margin: 0 auto;
}

.hex-page__intro {
  margin: 0 auto 2rem;
  border: 1px solid var(--clr-border);
  border-radius: 1rem;
  padding: 1.3rem 1.45rem;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 8px 28px rgba(28, 28, 28, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.hex-page__intro-text {
  color: var(--clr-text-muted);
  max-width: 72ch;
  font-size: 0.98rem;
}

.hex-page__stats {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--clr-terracotta);
  font-weight: 700;
  background: rgba(192, 113, 74, 0.08);
  border: 1px solid rgba(192, 113, 74, 0.22);
  border-radius: 999px;
  padding: 0.42rem 0.88rem;
}

.hex-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
}

.hex-card {
  background: #fff;
  border: 1px solid var(--clr-border);
  border-radius: 1rem;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.hex-card:hover {
  transform: translateY(-4px);
  border-color: rgba(192, 113, 74, 0.34);
  box-shadow: 0 14px 34px rgba(28, 28, 28, 0.1);
}

.hex-card__media {
  position: relative;
  aspect-ratio: 1;
  background:
    radial-gradient(circle at 20% 20%, rgba(192,113,74,.08) 0, transparent 38%),
    linear-gradient(160deg, #fff 0%, #f7f0e7 100%);
  border-bottom: 1px solid var(--clr-border);
  overflow: hidden;
}

.hex-card__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  padding: 1rem;
  transition: transform .5s ease;
}

.hex-card:hover .hex-card__media img {
  transform: scale(1.05);
}

.hex-card__fallback {
  position: absolute;
  inset: 0;
  place-items: center;
}

.hex-card__shape {
  font-size: clamp(2.6rem, 4vw, 3.5rem);
  color: rgba(192, 113, 74, 0.52);
  line-height: 1;
}

.hex-card__body {
  padding: 0.95rem 1rem 1.05rem;
}

.hex-card__num {
  font-family: var(--ff-display);
  font-size: 1.02rem;
  color: var(--clr-indigo);
  line-height: 1.2;
  margin-bottom: 0.38rem;
}

.hex-card__meta {
  font-size: 0.84rem;
  color: var(--clr-text-muted);
}

.hex-pagination {
  margin: 1.9rem auto 0;
  display: flex;
  justify-content: center;
}

@media (max-width: 1024px) {
  .hex-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .inspiration-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .hex-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
  }

  .hex-page__intro {
    padding: 1rem 1.05rem;
  }

  .inspiration-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
  }

  .inspiration-tabs {
    border-radius: 1rem;
    padding: .45rem;
  }
}

@media (max-width: 480px) {
  .hex-grid {
    grid-template-columns: 1fr;
  }

  .inspiration-grid {
    grid-template-columns: 1fr;
  }
}

/* Responsive */
@media (max-width: 768px) {
  .palette-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 1rem; }
  .palette-callout { flex-direction: column; padding: 2rem 1.5rem; text-align: center; }
  .palette-callout__body p { margin: 0 auto 1.4rem; }
  .palette-callout__actions { justify-content: center; }
}
@media (max-width: 480px) {
  .palette-grid { grid-template-columns: repeat(2, 1fr); gap: .85rem; }
}
