/* ============================================
   LA FERME DE MALAK
   Palette terracotta / ocre / ardoise
   Chaud, marocain, authentique
   ============================================ */

:root {
  --terra: #C4623A;
  --terra-deep: #A04A28;
  --terra-light: #D98A66;
  --ocre: #D4A24E;
  --ocre-light: #E8C97A;
  --creme: #FAF6F1;
  --creme-deep: #F0EAE0;
  --blanc: #FEFDFB;
  --ardoise: #2C3340;
  --ardoise-mid: #4A5568;
  --ardoise-light: #718096;
  --ardoise-pale: #CBD5E0;
  --ardoise-bg: #F0F2F5;
  --warm-bg: #FDF5ED;
  --olive: #5E7A52;
  --olive-light: #7A9E6A;
  --olive-pale: #E2EADC;
  --noir: #1A202C;
  --wa-green: #128C7E;

  --font-display: 'Instrument Serif', Georgia, serif;
  --font-body: 'Outfit', -apple-system, sans-serif;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---- RESET ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--noir);
  background: var(--blanc);
  line-height: 1.65;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 56px);
}

/* ---- TYPOGRAPHY ---- */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.15;
  color: var(--noir);
}

h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); }

.label {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--terra);
  margin-bottom: 10px;
}

.label-light { color: var(--ocre-light); }

.desc {
  font-size: 1rem;
  color: var(--ardoise-mid);
  line-height: 1.7;
  max-width: 500px;
}

/* ============================================
   NAV
   ============================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 0;
  transition: all 0.4s var(--ease);
}

.nav.scrolled {
  background: rgba(254, 253, 251, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(26, 32, 44, 0.06);
}

.nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 56px);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--terra-deep);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
  margin-right: 12px;
}

.nav-menu a {
  font-size: 0.82rem;
  font-weight: 400;
  color: var(--ardoise-mid);
  transition: color 0.3s;
}

.nav-menu a:hover { color: var(--terra); }

.nav-burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 28px;
  height: 20px;
  position: relative;
}

.nav-burger span {
  display: block;
  width: 100%;
  height: 1.5px;
  background: var(--ardoise);
  position: absolute;
  left: 0;
  transition: all 0.3s;
}

.nav-burger span:first-child { top: 4px; }
.nav-burger span:last-child { bottom: 4px; }

.nav-burger.active span:first-child {
  top: 50%;
  transform: rotate(45deg) translateY(-50%);
}
.nav-burger.active span:last-child {
  bottom: 50%;
  transform: rotate(-45deg) translateY(50%);
}

/* ---- NAV RIGHT GROUP ---- */
.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ---- LANG TOGGLE ---- */
.lang-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 32px;
  padding: 0 10px;
  background: transparent;
  border: 1px solid var(--ardoise-pale);
  border-radius: 999px;
  color: var(--ardoise-mid);
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: border-color 0.25s, color 0.25s, background 0.25s;
}

.lang-toggle:hover {
  border-color: var(--terra);
  color: var(--terra);
  background: rgba(196, 98, 58, 0.06);
}

.lang-toggle .lang-fr-label,
.lang-toggle .lang-ar-label {
  line-height: 1;
}

.lang-toggle .lang-ar-label { display: none; }
body.lang-ar .lang-toggle .lang-fr-label { display: none; }
body.lang-ar .lang-toggle .lang-ar-label { display: inline; }

body.lang-ar .lang-toggle .lang-fr-label {
  font-size: 1.05rem;
}

/* ---- ARABIC FONT ---- */
body.lang-ar {
  font-family: 'Tajawal', var(--font-body);
}

body.lang-ar h1,
body.lang-ar h2,
body.lang-ar h3,
body.lang-ar .nav-logo,
body.lang-ar .footer-logo {
  font-family: 'Tajawal', var(--font-display);
  font-weight: 700;
  letter-spacing: 0;
}

body.lang-ar .label {
  letter-spacing: 0.04em;
  text-transform: none;
}

body.lang-ar em {
  font-style: normal;
  color: var(--terra);
}

/* ============================================
   HERO
   ============================================ */
.hero {
  min-height: 100vh;
  min-height: 100dvh;
  padding: 120px 0 60px;
  background: var(--warm-bg);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 56px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-lieu {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--terra);
  margin-bottom: 18px;
  opacity: 0;
  transform: translateY(16px);
  animation: revealUp 0.7s var(--ease) 0.2s forwards;
}

.hero h1 {
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  line-height: 1.1;
  margin-bottom: 22px;
  opacity: 0;
  transform: translateY(24px);
  animation: revealUp 0.7s var(--ease) 0.35s forwards;
}

.hero h1 em {
  font-style: italic;
  color: var(--terra);
}

.hero-desc {
  font-size: 1rem;
  color: var(--ardoise-mid);
  line-height: 1.75;
  max-width: 460px;
  margin-bottom: 32px;
  opacity: 0;
  transform: translateY(16px);
  animation: revealUp 0.7s var(--ease) 0.5s forwards;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(16px);
  animation: revealUp 0.7s var(--ease) 0.65s forwards;
}

/* CTA BUTTONS */
.btn-wa {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--wa-green);
  color: #fff;
  padding: 14px 26px;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 500;
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
}

.btn-wa:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(18, 140, 126, 0.3);
}

.btn-wa.big {
  padding: 18px 32px;
  font-size: 0.95rem;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  padding: 14px 26px;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 400;
  color: var(--ardoise);
  border: 1px solid var(--ardoise-pale);
  transition: all 0.3s var(--ease);
}

.btn-ghost:hover {
  border-color: var(--terra);
  background: var(--terra);
  color: #fff;
}

.btn-tel {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  font-family: var(--font-body);
  font-size: 0.88rem;
  color: var(--ardoise);
  border: 1px solid var(--ardoise-pale);
  margin-top: 14px;
  transition: all 0.3s;
}

.btn-tel:hover {
  border-color: var(--terra);
  color: var(--terra);
}

/* HERO IMAGES */
.hero-visual {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 14px;
  opacity: 0;
  transform: translateY(30px);
  animation: revealUp 0.9s var(--ease) 0.5s forwards;
}

.hero-img-main { grid-row: 1 / 3; }

.hero-img-placeholder {
  width: 100%;
  height: 100%;
  min-height: 380px;
  background: linear-gradient(145deg, var(--creme-deep) 0%, var(--warm-bg) 50%, rgba(196, 98, 58, 0.08) 100%);
  border: 1px solid rgba(196, 98, 58, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--terra-light);
}

.hero-img-placeholder.sm {
  min-height: 180px;
}

/* ============================================
   CHIFFRES
   ============================================ */
.chiffres {
  background: var(--ardoise);
  padding: 36px 0;
}

.chiffres-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 56px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.chiffre {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.chiffre-num {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--olive-light);
}

.chiffre-label {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 0.05em;
  margin-top: 2px;
}

.chiffre-sep {
  width: 1px;
  height: 32px;
  background: rgba(255, 255, 255, 0.1);
}

/* ============================================
   PRODUITS
   ============================================ */
.produits {
  padding: clamp(70px, 8vw, 120px) 0;
  background: var(--blanc);
}

.produits-intro {
  margin-bottom: clamp(40px, 5vw, 64px);
}

.produits-intro .desc {
  margin-top: 12px;
}

.produits-list {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.produit {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
}

.produit:nth-child(even) {
  direction: rtl;
}

.produit:nth-child(even) > * {
  direction: ltr;
}

.produit-visual {
  position: relative;
  overflow: hidden;
}

.produit-placeholder {
  width: 100%;
  aspect-ratio: 4/3;
  background: linear-gradient(160deg, var(--warm-bg), var(--creme-deep));
  border: 1px solid rgba(196, 98, 58, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-style: italic;
  color: var(--terra-light);
  font-size: 0.95rem;
  transition: transform 0.5s var(--ease);
}

.produit-placeholder.tall {
  aspect-ratio: 3/4;
}

.produit:hover .produit-placeholder {
  transform: scale(1.03);
}

.produit-tag {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--olive);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 14px;
}

.produit-info h3 {
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  margin-bottom: 14px;
}

.produit-info p {
  font-size: 0.92rem;
  color: var(--ardoise-mid);
  line-height: 1.8;
  margin-bottom: 24px;
}

.produit-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 18px;
  border-top: 1px solid var(--creme-deep);
}

.prix {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--terra-deep);
}

.unite {
  font-size: 0.78rem;
  color: var(--ardoise-light);
  margin-left: 6px;
}

.produit-cmd {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  padding: 10px 20px;
  background: var(--terra);
  border: 1px solid var(--terra);
  transition: all 0.3s var(--ease);
}

.produit-cmd:hover {
  background: var(--terra-deep);
  border-color: var(--terra-deep);
}

/* ============================================
   HISTOIRE
   ============================================ */
.histoire {
  padding: clamp(70px, 8vw, 120px) 0;
  background: var(--olive-pale);
}

.histoire-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}

.histoire-images {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 14px;
}

.histoire-img-1 {
  grid-row: 1 / 3;
}

.histoire-text h2 {
  margin-bottom: 24px;
}

.histoire-text p {
  font-size: 0.95rem;
  color: var(--ardoise-mid);
  line-height: 1.8;
  margin-bottom: 16px;
}

.histoire-valeurs {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-top: 28px;
  border-top: 1px solid var(--olive);
}

.valeur strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--olive);
  margin-bottom: 3px;
}

.valeur span {
  font-size: 0.85rem;
  color: var(--ardoise-light);
}

/* ============================================
   GALERIE
   ============================================ */
.galerie {
  padding: clamp(70px, 8vw, 120px) 0;
  background: var(--creme);
}

.galerie-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: clamp(36px, 4vw, 56px);
  flex-wrap: wrap;
  gap: 16px;
}

.galerie-tabs {
  display: flex;
  gap: 4px;
  background: var(--creme-deep);
  padding: 4px;
}

.tab {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  padding: 8px 20px;
  border: none;
  background: transparent;
  color: var(--ardoise-mid);
  cursor: pointer;
  transition: all 0.3s;
}

.tab.active {
  background: var(--ardoise);
  color: #fff;
}

.galerie-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.galerie-grid.hidden { display: none; }

.galerie-item {
  overflow: hidden;
}

.galerie-item.large {
  grid-column: span 2;
}

.galerie-item .galerie-placeholder {
  width: 100%;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--creme-deep), rgba(196, 98, 58, 0.06));
  border: 1px solid rgba(196, 98, 58, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-family: var(--font-display);
  font-style: italic;
  color: var(--terra-light);
  font-size: 0.9rem;
  transition: transform 0.5s var(--ease);
  cursor: pointer;
}

.galerie-item:hover .galerie-placeholder {
  transform: scale(1.04);
}

.galerie-item.large .galerie-placeholder {
  aspect-ratio: 2/1;
}

.play-btn {
  width: 56px;
  height: 56px;
  background: rgba(44, 51, 64, 0.75);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.3s;
}

.galerie-item.video:hover .play-btn {
  background: var(--terra);
}

/* ============================================
   COMMANDE
   ============================================ */
.commande {
  padding: clamp(70px, 8vw, 120px) 0;
  background: var(--blanc);
}

.commande-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}

.commande-left h2 {
  margin-bottom: 18px;
}

.commande-left .desc {
  margin-bottom: 32px;
}

.form-wrap {
  background: var(--creme);
  padding: clamp(28px, 3vw, 40px);
  border: 1px solid var(--creme-deep);
}

.form-wrap h3 {
  font-size: 1.3rem;
  margin-bottom: 8px;
}

.form-sub {
  font-size: 0.85rem;
  color: var(--ardoise-light);
  margin-bottom: 28px;
  line-height: 1.6;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-field {
  margin-bottom: 18px;
}

.form-field label {
  display: block;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ardoise-mid);
  margin-bottom: 6px;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--noir);
  padding: 12px 14px;
  border: 1px solid var(--creme-deep);
  background: var(--blanc);
  outline: none;
  transition: border-color 0.3s;
  -webkit-appearance: none;
  border-radius: 0;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--terra);
}

.form-field textarea {
  resize: vertical;
  min-height: 80px;
}

.btn-submit {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  background: var(--terra);
  border: none;
  padding: 16px;
  cursor: pointer;
  transition: background 0.3s;
  margin-top: 4px;
}

.btn-submit:hover { background: var(--terra-deep); }

.form-success {
  display: none;
  padding: 14px 18px;
  background: var(--olive-pale);
  color: var(--olive);
  font-size: 0.88rem;
  margin-top: 14px;
  text-align: center;
}

/* ============================================
   CONTACT
   ============================================ */
.contact {
  padding: clamp(70px, 8vw, 120px) 0;
  background: var(--ardoise);
  color: #fff;
}

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}

.contact h2 {
  color: #fff;
  margin-bottom: 16px;
}

.contact .desc {
  color: rgba(255, 255, 255, 0.6);
  max-width: 400px;
}

.contact-cards {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 20px 22px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.contact-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--ocre-light);
}

.contact-card strong {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  font-weight: 400;
  margin-bottom: 2px;
}

.contact-card span,
.contact-card a {
  font-size: 0.92rem;
  color: #fff;
}

.contact-card a:hover { color: var(--ocre-light); }

/* ============================================
   FOOTER
   ============================================ */
.footer {
  padding: 36px 0;
  background: var(--noir);
  color: rgba(255, 255, 255, 0.4);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.7);
}

.footer-left p {
  font-size: 0.75rem;
  margin-top: 4px;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.4);
  transition: color 0.3s;
}

.footer-links a:hover { color: rgba(255, 255, 255, 0.8); }

.footer-right p { font-size: 0.75rem; }

/* ============================================
   BOTTOM BAR MOBILE
   ============================================ */
.bottom-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 99;
  background: rgba(254, 253, 251, 0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid rgba(44, 51, 64, 0.08);
  transition: transform 0.35s var(--ease);
}

.bb-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.bb-call {
  background: var(--ardoise);
  color: #fff;
}

.bb-wa {
  background: var(--wa-green);
  color: #fff;
}

/* ============================================
   FLOATING EGGS
   ============================================ */
.floating-eggs {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.egg {
  position: absolute;
  color: var(--terra-light);
  opacity: 0.07;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
  animation-direction: alternate;
}

.egg.e1 {
  width: 60px;
  top: 15%;
  left: 8%;
  transform: rotate(-15deg);
  animation: eggFloat1 8s infinite alternate;
}

.egg.e2 {
  width: 42px;
  top: 60%;
  left: 5%;
  transform: rotate(20deg);
  opacity: 0.05;
  animation: eggFloat2 10s infinite alternate;
}

.egg.e3 {
  width: 50px;
  top: 25%;
  right: 6%;
  transform: rotate(10deg);
  animation: eggFloat3 9s infinite alternate;
}

.egg.e4 {
  width: 36px;
  bottom: 20%;
  right: 12%;
  transform: rotate(-25deg);
  opacity: 0.05;
  animation: eggFloat1 11s infinite alternate;
  animation-delay: -3s;
}

.egg.e5 {
  width: 28px;
  top: 45%;
  left: 45%;
  transform: rotate(35deg);
  opacity: 0.04;
  animation: eggFloat2 12s infinite alternate;
  animation-delay: -5s;
}

@keyframes eggFloat1 {
  0% { transform: rotate(-15deg) translateY(0); }
  100% { transform: rotate(-10deg) translateY(-30px); }
}

@keyframes eggFloat2 {
  0% { transform: rotate(20deg) translateY(0) scale(1); }
  100% { transform: rotate(15deg) translateY(-20px) scale(1.05); }
}

@keyframes eggFloat3 {
  0% { transform: rotate(10deg) translateX(0); }
  100% { transform: rotate(5deg) translateX(-15px) translateY(-18px); }
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes revealUp {
  to { opacity: 1; transform: translateY(0); }
}

[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

[data-reveal]:nth-child(2) { transition-delay: 0.1s; }
[data-reveal]:nth-child(3) { transition-delay: 0.2s; }

/* ============================================
   RESPONSIVE — TABLET
   ============================================ */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { max-width: 500px; }
  .produit { grid-template-columns: 1fr; }
  .produit:nth-child(even) { direction: ltr; }
  .histoire-layout { grid-template-columns: 1fr; }
  .histoire-images { max-width: 500px; }
  .commande-layout { grid-template-columns: 1fr; }
  .contact-inner { grid-template-columns: 1fr; }
  .galerie-grid { grid-template-columns: repeat(2, 1fr); }
  .galerie-item.large { grid-column: span 2; }
}

/* ============================================
   RESPONSIVE — MOBILE
   ============================================ */
@media (max-width: 680px) {
  .bottom-bar { display: flex; }
  body { padding-bottom: 58px; }
  .footer { padding-bottom: 72px; }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    height: 100dvh;
    background: var(--blanc);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 24px;
    transition: right 0.4s var(--ease);
    box-shadow: -8px 0 30px rgba(0, 0, 0, 0.06);
  }

  .nav-menu.open { right: 0; }
  .nav-burger { display: block; }

  .hero { padding: 90px 0 40px; }
  .hero h1 { font-size: clamp(2rem, 8vw, 2.8rem); }
  .hero-desc { font-size: 0.92rem; }
  .hero-visual { max-width: 100%; }
  .hero-img-placeholder { min-height: 240px; }
  .hero-img-placeholder.sm { min-height: 112px; }

  .chiffres-inner { gap: 20px; }
  .chiffre-sep { display: none; }
  .chiffre-num { font-size: 1.1rem; }
  .chiffre-label { font-size: 0.65rem; }

  .produits, .histoire, .galerie, .commande, .contact {
    padding: 56px 0;
  }

  h2 { font-size: clamp(1.5rem, 6vw, 2rem); }

  .produit-info p { font-size: 0.88rem; }
  .produit-placeholder { aspect-ratio: 16/10; }

  .galerie-grid { grid-template-columns: 1fr 1fr; }
  .galerie-item.large { grid-column: span 2; }
  .galerie-item .galerie-placeholder { aspect-ratio: 3/2; font-size: 0.8rem; }

  .form-row { grid-template-columns: 1fr; }
  .form-wrap { padding: 22px 18px; }
  .form-field input,
  .form-field select,
  .form-field textarea { font-size: 16px; }

  .contact-card { padding: 16px 18px; }

  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }

  .btn-wa, .btn-ghost, .btn-tel { width: 100%; justify-content: center; }
  .btn-wa.big { padding: 16px 24px; }
}

/* ============================================
   SMALL PHONES
   ============================================ */
@media (max-width: 380px) {
  .hero h1 { font-size: 1.8rem; }
  .chiffres-inner { flex-direction: column; gap: 12px; }
  .galerie-grid { grid-template-columns: 1fr; }
  .galerie-item.large { grid-column: span 1; }
  .bb-btn { font-size: 0.72rem; padding: 14px 8px; }
}

/* ============================================
   SAFE AREA
   ============================================ */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
  .bottom-bar { padding-bottom: env(safe-area-inset-bottom); }
  @media (max-width: 680px) {
    body { padding-bottom: calc(58px + env(safe-area-inset-bottom)); }
  }
}

/* ============================================
   TOUCH DEVICES
   ============================================ */
@media (hover: none) and (pointer: coarse) {
  .produit:hover .produit-placeholder { transform: none; }
  .galerie-item:hover .galerie-placeholder { transform: none; }
  .btn-wa:hover { transform: none; box-shadow: none; }
  .btn-wa:active { opacity: 0.9; }
  .produit-cmd:active { background: var(--terra-deep); color: #fff; }
}
