/* ============================================
   PIERRE BY MOLINA — Site vitrine
   Thème clair « Vitrine minérale » · Mobile-first
   ============================================ */

/* --- Variables --- */
:root {
  /* Blanc calcite — fond principal (légèrement minéral, jamais clinique) */
  --calcite:        #F6F5F2;
  --color-calcite:  #F6F5F2;

  /* Basalte — encre (texte principal) */
  --basalte:        #201D1A;
  --color-basalte:  #201D1A;

  /* Topaze (or minéral) — accent principal : CTA, liens, bordures, touches premium */
  --color-topaze:   #B8862F;
  --or:             #B8862F;
  --gold:           #B8862F;
  --gold-soft:      #C89A45;
  --gold-light:     #D9AF6B;

  /* Améthyste — accent secondaire RARE (réservé origine malgache) */
  --color-amethyste: #6B4E86;
  --amethyste:       #6B4E86;
  --amethyst:        #6B4E86;
  --amethyst-light:  #8A6FA8;

  /* Cendre claire — texte secondaire, séparateurs, bordures fines */
  --color-cendre:   #8F8A7A;
  --cendre:         #8F8A7A;

  /* Surfaces (musée clair) */
  --black:        #F6F5F2;   /* fond page = calcite */
  --dark:         #EFEDE8;   /* surface légèrement plus gris minéral */
  --darker:       #E9E6DF;   /* sections / footer */
  --card:         #FFFFFF;   /* cartes spécimen */
  --card-hover:   #FBFAF7;

  /* Braise / terracotta — réorientés vers la topaze (plus d'accent chaud) */
  --braise:       #B8862F;
  --braise-light: #C99B4D;
  --terracotta:   #B8862F;

  /* Textes */
  --text:         #201D1A;   /* encre basalte */
  --nacre:        #201D1A;   /* alias encre */
  --muted:        #6B6558;   /* secondaire (légèrement plus soutenu que cendre) */
  --faint:        #8F8A7A;   /* atténué */

  /* Décor (bordures fines) */
  --line:       rgba(184, 134, 47, 0.35);   /* liseré topaze */
  --line-soft:  rgba(32, 29, 26, 0.12);     /* trait basalte léger */

  /* Alias legacy */
  --color-braise:    #B8862F;
  --color-or:        #B8862F;
  --color-nacre:     #F6F5F2;
  --space:      #8A6FA8;
  --navy:       #8A6FA8;

  --brand-green: #25D366;

  --transition: 0.4s cubic-bezier(0.22, 0.61, 0.36, 1);
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --max-width: 1200px;
  --header-height: 72px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background-color: #EFF0EE;
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Fond ambiant — verre poli noir & blanc (veines marbrées + reflets brillants) */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    /* Veines sombres du verre (marbrure noire, douces) */
    radial-gradient(1100px 760px at 15% 12%, rgba(32, 29, 26, 0.07), transparent 60%),
    radial-gradient(900px 640px at 85% 22%, rgba(32, 29, 26, 0.05), transparent 62%),
    radial-gradient(1200px 900px at 50% 92%, rgba(120, 122, 120, 0.14), transparent 68%),
    /* Halo gris profond en bas de page (profondeur du verre) */
    radial-gradient(1400px 900px at 50% 115%, rgba(32, 29, 26, 0.10), transparent 75%),
    /* Reflets blancs du verre poli (bandes diagonales brillantes) */
    linear-gradient(112deg, transparent 18%, rgba(255, 255, 255, 0.75) 27%, rgba(255, 255, 255, 0.10) 33%, transparent 42%),
    linear-gradient(205deg, transparent 52%, rgba(255, 255, 255, 0.50) 61%, rgba(32, 29, 26, 0.05) 66%, transparent 76%),
    linear-gradient(160deg, transparent 66%, rgba(255, 255, 255, 0.55) 76%, rgba(32, 29, 26, 0.04) 82%, transparent 92%),
    /* Base marbrure claire */
    linear-gradient(180deg, #FCFCFB 0%, #EFF0EE 45%, #F4F4F2 100%);
  pointer-events: none;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; }

::selection { background: var(--amethyst); color: #fff; }

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--calcite); }
::-webkit-scrollbar-thumb { background: linear-gradient(var(--topaze, var(--gold)), var(--amethyst-light)); border-radius: 4px; border: 1px solid var(--line); }
::-webkit-scrollbar-thumb:hover { background: var(--amethyst-light); }

/* --- Header / Navigation --- */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  background: linear-gradient(to bottom, rgba(8, 10, 14, 0.55), rgba(8, 10, 14, 0.15));
  border-bottom: 1px solid transparent;
  transition: background var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.header.scrolled {
  background: rgba(246, 245, 242, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(184, 134, 47, 0.28);
  box-shadow: 0 12px 40px rgba(32, 29, 26, 0.08);
}

.header__logo {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  line-height: 1.15;
  letter-spacing: 3px;
  background: linear-gradient(100deg, var(--gold-light), var(--gold) 45%, var(--terracotta));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--gold);
  z-index: 1001;
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px;
}

.header__logo::before {
  content: '';
  width: 8px; height: 8px;
  transform: rotate(45deg);
  background: linear-gradient(135deg, var(--gold-light), var(--terracotta));
  box-shadow: 0 0 12px rgba(212, 168, 83, 0.7);
}

.header__logo em {
  font-style: normal;
  font-size: 0.62em;
  letter-spacing: 3px;
  -webkit-text-fill-color: var(--amethyst-light);
  color: var(--amethyst-light);
  text-transform: uppercase;
  white-space: nowrap;
}

/* --- Desktop nav --- */
.nav { display: none; }

.nav__list { display: flex; gap: 34px; align-items: center; }

.nav__link {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: rgba(247, 244, 238, 0.92);
  transition: color var(--transition);
  position: relative;
  padding-bottom: 8px;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-light), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.nav__link:hover, .nav__link.active { color: #ffffff; }
.nav__link:hover::after, .nav__link.active::after { transform: scaleX(1); }
.nav__link.active { color: var(--gold-light); }

/* Header scrollé (fond clair) → nav en encre */
.header.scrolled .nav__link { color: var(--muted); }
.header.scrolled .nav__link:hover,
.header.scrolled .nav__link.active { color: var(--basalte); }
.header.scrolled .nav__link.active { color: var(--gold); }
.header.scrolled .nav__link::after { background: linear-gradient(90deg, transparent, var(--gold), transparent); }

/* --- Hamburger (mobile) --- */
.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 1001;
  background: none;
  border: none;
  padding: 6px;
}

.hamburger span {
  display: block;
  width: 26px;
  height: 2px;
  background: #EDE9E1;
  transition: var(--transition);
  transform-origin: center;
}

.header.scrolled .hamburger span { background: var(--gold); }

.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.hamburger.active span { background: var(--gold); }

/* --- Mobile menu --- */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background:
    radial-gradient(700px 500px at 80% 10%, rgba(107, 78, 134, 0.08), transparent 60%),
    radial-gradient(700px 500px at 10% 90%, rgba(139, 111, 168, 0.08), transparent 60%),
    rgba(246, 245, 242, 0.99);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.45s ease, visibility 0.45s ease;
  z-index: 999;
}

.mobile-menu.open { opacity: 1; visibility: visible; }

.mobile-menu__link {
  font-family: var(--font-serif);
  font-size: 1.7rem;
  color: var(--basalte);
  letter-spacing: 2px;
  position: relative;
  transition: color var(--transition), transform var(--transition);
}

.mobile-menu__link::after {
  content: '';
  position: absolute;
  left: 50%; bottom: -6px;
  width: 0; height: 1px;
  background: var(--gold);
  transform: translateX(-50%);
  transition: width var(--transition);
}

.mobile-menu__link:hover { color: var(--gold); transform: translateX(4px); }
.mobile-menu__link:hover::after { width: 100%; }

/* --- Hero Section --- */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 620px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--basalte);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute; inset: 0;
  z-index: 1;
  background:
    radial-gradient(1px 1px at 12% 22%, #fff 100%, transparent 100%),
    radial-gradient(1px 1px at 68% 30%, #fff 100%, transparent 100%),
    radial-gradient(1.5px 1.5px at 24% 70%, #fff 100%, transparent 100%),
    radial-gradient(1px 1px at 84% 60%, #fff 100%, transparent 100%),
    radial-gradient(1px 1px at 50% 90%, #fff 100%, transparent 100%);
  opacity: 0.5;
  animation: twinkle 6s ease-in-out infinite;
}

.hero__bg {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 55%, transparent 78%);
  mask-image: radial-gradient(ellipse at center, #000 55%, transparent 78%);
  filter: saturate(1.05) brightness(1.02);
}

.hero__overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background:
    radial-gradient(ellipse 65% 72% at 50% 45%, rgba(8,10,14,0.42) 0%, rgba(8,10,14,0.20) 55%, rgba(8,10,14,0.04) 100%),
    linear-gradient(to bottom, rgba(8,10,14,0.50) 0%, rgba(8,10,14,0.16) 40%, rgba(8,10,14,0.72) 100%);
  z-index: 2;
}

.hero__content {
  position: relative;
  z-index: 3;
  text-align: center;
  padding: 24px;
  max-width: 780px;
}

.hero__title {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 7vw, 5rem);
  color: #F7F4EE;
  margin-bottom: 18px;
  line-height: 1.08;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-shadow:
    0 1px 0 rgba(0, 0, 0, 0.35),
    0 3px 18px rgba(0, 0, 0, 0.6);
}

.hero__title span {
  background: linear-gradient(120deg, var(--gold-light), var(--gold) 40%, var(--terracotta));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--gold);
  font-style: italic;
}

.hero__subtitle {
  font-size: clamp(0.8rem, 1.8vw, 1rem);
  color: rgba(247, 244, 238, 0.92);
  margin-bottom: 20px;
  font-weight: 300;
  letter-spacing: 6px;
  text-transform: uppercase;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.7);
}

.hero__lead {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.02rem;
  color: #F1EDE6;
  max-width: 560px;
  margin: 0 auto 36px;
  line-height: 1.8;
  padding: 12px 20px;
  background: rgba(8, 10, 14, 0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 1px solid rgba(217, 175, 107, 0.35);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.55);
}

.hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 15px 44px;
  background: rgba(184, 134, 47, 0.10);
  border: 1px solid var(--gold);
  color: var(--gold);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  font-family: var(--font-sans);
  position: relative;
  overflow: hidden;
  transition: var(--transition);
  cursor: pointer;
  clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
}

.hero__cta::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(120deg, var(--gold-light), var(--gold));
  transform: translateY(101%);
  transition: transform var(--transition);
  z-index: -1;
}

.hero__cta:hover {
  color: #fff;
  border-color: var(--gold-light);
  box-shadow: 0 10px 40px rgba(184, 134, 47, 0.35);
  transform: translateY(-2px);
}
.hero__cta:hover::before { transform: translateY(0); }

.hero__info {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 14px;
  white-space: nowrap;
  padding: 10px 22px;
  color: rgba(247, 244, 238, 0.92);
  font-size: 0.64rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  background: rgba(8, 10, 14, 0.45);
  border: 1px solid rgba(217, 175, 107, 0.32);
  border-radius: 999px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

.hero__info a { color: var(--gold-light); text-decoration: none; }
.hero__info a:hover { color: #fff; }

.hero__info .hero__info-sep { color: var(--gold); }

/* --- Sections communes --- */
.section {
  padding: 90px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

/* Panneaux verre dépoli (vitrine) — blocs texte posés sur le fond */
.madagascar,
.story,
.local-text {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.66), rgba(255, 255, 255, 0.38));
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 18px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 14px 40px rgba(32, 29, 26, 0.08);
}

.section__header { text-align: center; margin-bottom: 60px; }

.section__title {
  font-family: var(--font-serif);
  font-size: clamp(1.9rem, 4vw, 3rem);
  margin-bottom: 14px;
  font-weight: 500;
}

.section__title span {
  background: linear-gradient(120deg, var(--gold-light), var(--gold), var(--terracotta));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-style: italic;
}

.section__subtitle {
  color: var(--muted);
  font-size: 0.98rem;
  max-width: 620px;
  margin: 0 auto;
  font-weight: 300;
  letter-spacing: 0.5px;
}

/* --- Page Hero (inner pages) --- */
.page-hero {
  position: relative;
  height: 52vh;
  min-height: 300px;
  max-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin-top: var(--header-height);
  overflow: hidden;
  background: var(--calcite);
}

.page-hero::after {
  content: '';
  position: absolute; inset: 0;
  background:
    linear-gradient(to bottom, rgba(8,10,14,0.35) 0%, rgba(8,10,14,0.62) 100%);
  z-index: 1;
}

.page-hero__bg {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  filter: saturate(1.05) brightness(1.02);
}

.page-hero__content { position: relative; z-index: 2; padding: 24px; }

.page-hero__title {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 500;
  color: #F7F4EE;
  margin-bottom: 12px;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.6);
}

.page-hero__breadcrumb {
  color: rgba(247, 244, 238, 0.85);
  font-size: 0.64rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6);
}

.page-hero__breadcrumb span { color: var(--gold-light); }

/* --- Teaser blocks (accueil) --- */
.teasers {
  display: grid;
  grid-template-columns: 1fr;
  gap: 34px;
  padding: 80px 24px 100px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.teaser-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  cursor: pointer;
  background: var(--card);
  border: 1px solid rgba(143, 138, 122, 0.5);
  box-shadow: 0 10px 30px rgba(32, 29, 26, 0.06), 0 1px 4px rgba(32, 29, 26, 0.04);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.teaser-card::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(8,10,14,0.82) 0%, rgba(8,10,14,0.25) 52%, transparent 78%);
  z-index: 1;
  opacity: 1;
  transition: opacity var(--transition);
}

.teaser-card:hover {
  transform: translateY(-6px);
  border-color: rgba(184, 134, 47, 0.6);
  box-shadow: 0 26px 55px rgba(32, 29, 26, 0.10), 0 8px 20px rgba(184, 134, 47, 0.12);
}
.teaser-card:hover::after { opacity: 0.9; }

.teaser-card__img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease, filter 0.8s ease;
}

.teaser-card:hover .teaser-card__img { transform: scale(1.08); filter: saturate(1.08); }

.teaser-card__overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 40px 30px 32px;
  z-index: 2;
}

.teaser-card__title {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  margin-bottom: 8px;
  color: #F7F4EE;
  font-weight: 500;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.55);
}

.teaser-card:hover .teaser-card__title { color: #ffffff; }

.teaser-card__text {
  font-size: 0.78rem;
  color: rgba(247, 244, 238, 0.88);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6);
}

.teaser-card__eyebrow {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 6px;
}

.specimen__sep { opacity: 0.7; margin: 0 2px; }

/* --- Collection Gallery --- */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 18px;
  padding: 30px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.gallery__item {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--card);
  cursor: pointer;
  border-radius: 16px;
  border: 1px solid rgba(143, 138, 122, 0.5);
  box-shadow: 0 10px 30px rgba(32, 29, 26, 0.06), 0 1px 4px rgba(32, 29, 26, 0.04);
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.gallery__item::before {
  content: '';
  position: absolute; inset: 0;
  background:
    linear-gradient(135deg, transparent 40%, rgba(184, 134, 47, 0.10) 100%),
    radial-gradient(340px 340px at 50% 30%, rgba(139, 111, 168, 0.10), transparent 70%);
  opacity: 0;
  transition: opacity var(--transition);
  z-index: 1;
  pointer-events: none;
}

/* Liseré topaze intérieur au survol */
.gallery__item::after {
  content: '';
  position: absolute; inset: 0;
  border-radius: 16px;
  border: 1px solid transparent;
  background: linear-gradient(140deg, rgba(184,134,47,0.0), rgba(184,134,47,0.0)) border-box;
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 0;
  transition: opacity var(--transition);
  z-index: 2;
  pointer-events: none;
}

.gallery__item:hover {
  border-color: rgba(184, 134, 47, 0.6);
  transform: translateY(-6px);
  box-shadow: 0 26px 55px rgba(184, 134, 47, 0.14), 0 8px 20px rgba(32, 29, 26, 0.10);
}
.gallery__item:hover::before { opacity: 1; }
.gallery__item:hover::after { opacity: 1; }

.gallery__item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1), filter 0.5s ease;
  filter: brightness(1) saturate(1.02);
}

.gallery__item:hover img {
  transform: scale(1.09);
  filter: saturate(1.1);
}

/* Info toujours visible, pleinement révélée au survol */
.gallery__item-info {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 34px 16px 14px;
  background: linear-gradient(to top, rgba(246, 245, 242, 0.95) 0%, rgba(246, 245, 242, 0.62) 55%, rgba(246, 245, 242, 0) 100%);
  transform: translateY(24px);
  transition: transform var(--transition);
  z-index: 3;
}

.gallery__item:hover .gallery__item-info { transform: translateY(0); }

.gallery__item-info h3 {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--basalte);
  font-weight: 500;
  font-style: italic;
}

/* Règle fine séparant nom et métadonnée (style étiquette spécimen) */
.gallery__item-info h3::after {
  content: '';
  display: block;
  width: 26px;
  height: 1px;
  margin: 9px 0 8px;
  background: linear-gradient(90deg, var(--or), rgba(184, 134, 47, 0.15));
}

.gallery__item-info p {
  font-family: var(--font-sans);
  font-size: 0.62rem;
  font-weight: 400;
  color: var(--cendre);
  letter-spacing: 3px;
  text-transform: uppercase;
}

/* --- Category filter --- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  padding: 30px 24px 8px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.filter-btn {
  padding: 10px 22px;
  border: 1px solid rgba(143, 138, 122, 0.45);
  background: var(--card);
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  cursor: pointer;
  position: relative;
  transition: var(--transition);
  overflow: hidden;
}

.filter-btn::after {
  content: '';
  position: absolute; left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--gold);
  transition: width var(--transition);
}

.filter-btn:hover { color: var(--basalte); border-color: var(--line); }
.filter-btn:hover::after { width: 100%; }

.filter-btn.active {
  color: var(--gold);
  border-color: var(--gold);
  background: linear-gradient(120deg, rgba(184,134,47,0.12), rgba(184,134,47,0.03));
  box-shadow: 0 4px 20px rgba(184, 134, 47, 0.12);
}

/* --- CTA pied de page --- */
.section-cta {
  text-align: center;
  padding: 84px 24px;
  background:
    radial-gradient(900px 420px at 50% -20%, rgba(255, 255, 255, 0.70), transparent 62%),
    radial-gradient(900px 420px at 50% 120%, rgba(32, 29, 26, 0.06), transparent 65%),
    rgba(255, 255, 255, 0.50);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  margin-top: 0;
  position: relative;
  border-top: 1px solid rgba(184, 134, 47, 0.28);
  border-bottom: 1px solid rgba(184, 134, 47, 0.28);
}

.section-cta::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 80px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.8;
}

.section-cta__text {
  font-family: var(--font-serif);
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  color: var(--basalte);
  margin-bottom: 32px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  font-weight: 400;
  font-style: italic;
}

.section-cta__btn {
  display: inline-block;
  padding: 15px 44px;
  background: rgba(184, 134, 47, 0.10);
  border: 1px solid var(--gold);
  color: var(--gold);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  font-family: var(--font-sans);
  position: relative;
  overflow: hidden;
  transition: var(--transition);
  cursor: pointer;
  clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
}

.section-cta__btn::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(120deg, var(--gold-light), var(--gold));
  transform: translateY(101%);
  transition: transform var(--transition);
  z-index: -1;
}

.section-cta__btn:hover {
  color: #fff;
  border-color: var(--gold-light);
  box-shadow: 0 10px 40px rgba(184, 134, 47, 0.3);
  transform: translateY(-2px);
}
.section-cta__btn:hover::before { transform: translateY(0); }

/* --- Section origine Madagascar (accueil) --- */
.madagascar {
  max-width: 760px;
  margin: 0 auto;
  padding: 64px 24px 80px;
  text-align: center;
  position: relative;
}

.madagascar::before,
.madagascar::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 120px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.5;
}
.madagascar::before { top: 28px; }
.madagascar::after { bottom: 28px; }

.madagascar__eyebrow {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

.madagascar__title {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 500;
  margin-bottom: 24px;
  background: linear-gradient(120deg, var(--gold-light), var(--gold), var(--terracotta));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--gold);
  font-style: italic;
}

.madagascar__text {
  color: var(--muted);
  font-size: 1rem;
  line-height: 2;
  font-weight: 300;
  margin-bottom: 32px;
}

.madagascar__text strong { color: var(--gold-soft); font-weight: 500; }

.madagascar__quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.28rem;
  font-weight: 500;
  color: var(--gold-soft);
  max-width: 520px;
  margin: 0 auto 34px;
  line-height: 1.6;
  padding: 26px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.madagascar__quote::before { content: '« '; }
.madagascar__quote::after { content: ' »'; }

.madagascar__link {
  display: inline-block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--gold-soft);
  border-bottom: 1px solid var(--gold);
  padding-bottom: 4px;
  transition: color var(--transition), border-color var(--transition);
}

.madagascar__link:hover { color: var(--gold-light); border-color: var(--gold-light); }

/* Section origine — accent améthyste (réservé : UN seul accent par section) */
.madagascar--ametyste .madagascar__eyebrow { color: var(--amethyst-light); }
.madagascar--ametyste .madagascar__eyebrow::before,
.madagascar--ametyste .madagascar__eyebrow::after {
  content: '◆';
  font-size: 0.5rem;
  vertical-align: middle;
  margin: 0 8px;
  color: var(--amethyst-light);
}
.madagascar--ametyste .madagascar__title {
  background: linear-gradient(120deg, var(--amethyst-light), var(--amethyst));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--amethyst-light);
}
.madagascar--ametyste .madagascar__text strong { color: var(--amethyst-light); }
.madagascar--ametyste .madagascar__quote {
  color: var(--amethyst-light);
  border-top-color: rgba(91, 69, 112, 0.35);
  border-bottom-color: rgba(91, 69, 112, 0.35);
}
.madagascar--ametyste .madagascar__link { color: var(--amethyst-light); border-color: var(--amethyst-light); }
.madagascar--ametyste .madagascar__link:hover { color: var(--amethyst-light); border-color: var(--amethyst-light); filter: brightness(1.2); }

/* --- Local (immersion) --- */
.local-text {
  padding: 64px 24px;
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
  position: relative;
}

.local-text__eyebrow {
  display: inline-block;
  font-size: 0.68rem;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--cendre);
  margin-bottom: 14px;
}

.local-text__rule {
  width: 40px;
  height: 1px;
  margin: 0 auto 24px;
  background: linear-gradient(90deg, var(--braise), rgba(181, 80, 46, 0.15));
}

/* Accent braise (expérience chaleureuse de la boutique) */
.local-text--braise .local-text__title {
  background: linear-gradient(120deg, var(--braise-light), var(--braise));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--braise-light);
}

.local-text__title {
  font-family: var(--font-serif);
  font-size: 1.7rem;
  margin-bottom: 8px;
  font-weight: 500;
}

.local-text__body {
  color: var(--muted);
  font-size: 1rem;
  line-height: 2;
  font-weight: 300;
}

.local-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding: 24px; max-width: var(--max-width); margin: 0 auto; }

.local-grid__item { overflow: hidden; position: relative; border: 1px solid var(--line-soft); }

.local-grid__item:first-child { grid-column: 1 / -1; }

.local-grid__item::after {
  content: '';
  position: absolute; inset: 0;
  border: 1px solid transparent;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.local-grid__item:hover::after {
  border-color: var(--line);
  box-shadow: inset 0 0 30px rgba(212, 168, 83, 0.06);
}

.local-grid__item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.8s ease, filter 0.5s ease;
  filter: brightness(1) saturate(1);
}

.local-grid__item:hover img { transform: scale(1.06); filter: brightness(1.03) saturate(1.05); }

/* --- Story page --- */
.story { padding: 70px 24px 90px; max-width: 760px; margin: 0 auto; }

.story__title {
  font-family: var(--font-serif);
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  text-align: center;
  margin-bottom: 6px;
  font-weight: 500;
}

.story__subtitle {
  text-align: center;
  color: var(--gold);
  font-size: 0.8rem;
  letter-spacing: 5px;
  text-transform: uppercase;
  margin-bottom: 52px;
}

.story__content { color: var(--text); font-size: 1.02rem; line-height: 2; font-weight: 300; }

.story__content p { margin-bottom: 24px; }

.story__content strong { color: var(--gold-soft); font-weight: 500; }

.story__content .story__pullquote {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  background: linear-gradient(120deg, var(--gold-light), var(--gold), var(--terracotta));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--gold);
  text-align: center;
  padding: 40px 0;
  margin: 44px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-style: italic;
  font-weight: 500;
}

/* Page origine — accent améthyste (réservé à l'histoire malgache) */
.story--ametyste .story__subtitle { color: var(--amethyst-light); }
.story--ametyste .story__content strong { color: var(--amethyst-light); }
.story--ametyste .story__content .story__pullquote {
  background: linear-gradient(120deg, var(--amethyst-light), var(--amethyst));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--amethyst-light);
}
.story--ametyste .story__content .story__pullquote { border-color: rgba(91, 69, 112, 0.4); }

/* --- Contact page --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 44px;
  padding: 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.contact-info__item {
  display: flex;
  gap: 18px;
  margin-bottom: 16px;
  align-items: flex-start;
  padding: 18px;
  background: var(--card);
  border: 1px solid rgba(143, 138, 122, 0.55);
  box-shadow: 0 6px 22px rgba(32, 29, 26, 0.05);
  transition: var(--transition);
}

.contact-info__item:hover { border-color: var(--line); transform: translateX(4px); }

.contact-info__icon {
  width: 46px; height: 46px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  color: var(--braise-light);
  font-size: 1rem;
  background: linear-gradient(135deg, rgba(181, 80, 46, 0.12), transparent);
}

.contact-info__label { font-size: 0.68rem; color: var(--nacre); text-transform: uppercase; letter-spacing: 2.5px; margin-bottom: 5px; }

.contact-info__value { font-size: 0.96rem; color: var(--text); }

.contact-info__value a { color: var(--braise-light); transition: color var(--transition); }
.contact-info__value a:hover { color: var(--braise); }

.contact-map {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--card);
  border: 1px solid var(--line-soft);
  filter: grayscale(0.15) contrast(0.95);
  border-radius: 0;
}

/* --- Horaires table --- */
.horaires { margin-top: 48px; padding: 32px; max-width: 520px; margin-left: auto; margin-right: auto; background: linear-gradient(160deg, var(--card), var(--dark)); border: 1px solid var(--line-soft); }

/* Verre dépoli — cartes info (surcharge par-dessus les fonds blancs/cards) */
.specimen,
.contact-info__item,
.horaires {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.70), rgba(255, 255, 255, 0.46));
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.80);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 8px 28px rgba(32, 29, 26, 0.06);
}

.horaires__title {
  font-family: var(--font-serif);
  color: var(--nacre);
  margin-bottom: 20px;
  text-align: center;
  font-weight: 500;
  font-size: 1.15rem;
}

.horaires__row {
  display: flex;
  justify-content: space-between;
  padding: 9px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 0.85rem;
}

.horaires__row:last-child { border-bottom: none; }
.horaires__day { color: var(--faint); }
.horaires__time { color: var(--text); }

/* --- WhatsApp FAB --- */
.whatsapp-fab {
  position: fixed;
  bottom: 96px;
  right: 26px;
  z-index: 999;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2ed573, #1faa60);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.3);
  transition: var(--transition);
  cursor: pointer;
  text-decoration: none;
}

.whatsapp-fab::before {
  content: '';
  position: absolute; inset: -2px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.3);
  animation: pulse 2.4s ease-out infinite;
}

.whatsapp-fab:hover { transform: scale(1.1) translateY(-2px); box-shadow: 0 12px 40px rgba(37, 211, 102, 0.5); }

.whatsapp-fab svg { width: 26px; height: 26px; fill: #fff; }

/* --- Footer --- */
.footer { padding: 56px 24px 28px; background: var(--darker); text-align: center; border-top: 1px solid rgba(201, 162, 39, 0.28); }

.footer__logo {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  letter-spacing: 4px;
  margin-bottom: 6px;
  background: linear-gradient(100deg, var(--gold-light), var(--gold), var(--terracotta));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--gold);
}

.footer__logo em { font-style: normal; color: var(--amethyst-light); -webkit-text-fill-color: var(--amethyst-light); font-size: 0.62em; letter-spacing: 6px; text-transform: uppercase; }

.footer__copy { font-size: 0.7rem; color: var(--faint); letter-spacing: 1.5px; }

.footer__copy a { color: var(--gold-soft); }

/* --- Fade in animation (reveal on scroll) --- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: opacity, transform;
}

.reveal.visible { opacity: 1; transform: translateY(0); }

/* Variantes de reveal */
[data-reveal="left"].reveal { transform: translateX(-36px); }
[data-reveal="right"].reveal { transform: translateX(36px); }
[data-reveal="zoom"].reveal { transform: scale(0.94); }
[data-reveal="left"].reveal.visible,
[data-reveal="right"].reveal.visible,
[data-reveal="zoom"].reveal.visible { transform: none; }

/* --- Lightbox --- */
.lightbox {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(3, 4, 7, 0.96);
  backdrop-filter: blur(6px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
  cursor: pointer;
}

.lightbox.open { opacity: 1; visibility: visible; }

.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.lightbox__close {
  position: absolute;
  top: 24px; right: 28px;
  color: #fff;
  font-size: 2.2rem;
  cursor: pointer;
  background: none;
  border: none;
  transition: var(--transition);
  line-height: 1;
  z-index: 2;
}

.lightbox__close:hover { color: var(--gold-light); transform: rotate(90deg); }

/* ============================================
   STRATES — Direction artistique "Strates"
   Étiquette spécimen + Ligne de faille
   ============================================ */

/* --- Carte spécimen (micro — récurrent) ---
   Fiche de catalogue minéralogique : carton clair, encre foncée,
   bordure fine, règle fine, ombre très subtile. */
.specimen {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 18px 20px;
  background: var(--card);
  border: 1px solid rgba(143, 138, 122, 0.55);
  box-shadow: 0 6px 22px rgba(32, 29, 26, 0.05);
  font-family: var(--font-sans);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cendre);
  line-height: 1.5;
}

.specimen__name {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  text-transform: none;
  font-style: italic;
  color: var(--basalte);
}

.specimen__rule {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, var(--or), transparent);
  margin: 2px 0;
  opacity: 0.7;
}

.specimen__meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cendre);
}

.specimen__meta strong {
  color: var(--or);
  font-weight: 500;
}

.specimen--braise .specimen__rule { background: linear-gradient(90deg, var(--braise), transparent); }
.specimen--braise .specimen__meta strong { color: var(--braise); }
.specimen--ametyste .specimen__rule { background: linear-gradient(90deg, var(--amethyste), transparent); }
.specimen--ametyste .specimen__meta strong { color: var(--amethyst-light); }

/* --- Ligne de faille (macro — structurel) ---
   Bande horizontale SVG façon coupe géologique : un fin trait basalte
   légèrement dédoublé d'un trait topaze en décalage, comme une fissure
   gravée dans une pierre pâle. Réservée (2-3 usages max). */
.fault-line {
  display: block;
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  height: auto;
  color: var(--basalte);
}

.fault-line--braise { color: var(--basalte); }
.fault-line--braise svg path:last-of-type { color: var(--braise); }
.fault-line--ametyste { color: var(--basalte); }
.fault-line--ametyste svg path:last-of-type { color: var(--amethyst-light); }

.fault-line svg { display: block; width: 100%; height: auto; }

.fault-line svg path:last-of-type { color: var(--gold); }

/* --- Veine minérale sous le H1 du hero (liseré topaze) --- */
.hero__vein {
  width: 88px;
  height: 3px;
  margin: 0 auto 26px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--or), var(--braise));
  box-shadow: 0 0 14px rgba(184, 134, 47, 0.3);
}

/* --- Animations --- */
@keyframes twinkle {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 0.7; }
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.4); opacity: 0; }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* --- Selection/scroll refinements --- */

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 639px) {
  .hero__info {
    white-space: normal;
    letter-spacing: 2px;
    gap: 8px;
    padding: 9px 16px;
    max-width: 86%;
    font-size: 0.58rem;
  }
}

@media (min-width: 640px) {
  .teasers { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 768px) {
  .header { padding: 0 48px; }
  .nav { display: flex; }
  .hamburger { display: none; }

  .teasers { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr 1fr; }
  .local-grid { grid-template-columns: repeat(3, 1fr); }
  .local-grid__item:first-child { grid-column: span 3; }
  .section { padding: 110px 48px; }
  .gallery { padding: 48px; gap: 22px; }
}

@media (min-width: 1024px) {
  .teasers { grid-template-columns: repeat(3, 1fr); }
  .gallery { grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001s !important; transition-duration: 0.001s !important; }
  .reveal { opacity: 1; transform: none; }
}

[data-nf-variant],
[data-netlify-site-id],
[data-app-host],
.netlify-badge,
[data-testid="netlify-badge"] { display: none !important; }
