/* ============================================
   MAISON MASCAREIGNES — STYLES PARTAGÉS
   ============================================ */

:root {
  --ivoire: #F4F1E8;
  --graphite: #2B2B2B;
  --brun: #5C3D2E;
  --gris: #8A8578;
  --ivoire-fonce: #E8E4D8;
  --ivoire-dark: #DBD7CB;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--ivoire);
  color: var(--graphite);
  font-family: 'Source Sans 3', sans-serif;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--graphite); color: var(--ivoire); }
img { max-width: 100%; display: block; }

/* ============================================
   NAV
   ============================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 1.5rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.5s ease;
}

.nav.scrolled {
  background: rgba(244,241,232,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 1rem 3rem;
  border-bottom: 1px solid rgba(43,43,43,0.05);
}

.nav.nav-visible .nav-logo { opacity: 1; }

.nav-logo {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: 0.8rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--graphite);
  text-decoration: none;
  opacity: 0;
  transition: opacity 0.4s;
}

.nav.scrolled .nav-logo { opacity: 1; }

.nav-right {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-family: 'Source Sans 3', sans-serif;
  font-weight: 300;
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gris);
  text-decoration: none;
  transition: color 0.3s;
}

.nav-links a:hover,
.nav-links a.active { color: var(--graphite); }

.btn-client {
  font-family: 'Source Sans 3', sans-serif;
  font-weight: 400;
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ivoire);
  background: var(--graphite);
  border: 1px solid var(--graphite);
  padding: 0.55rem 1.3rem;
  text-decoration: none;
  transition: all 0.3s;
}

.btn-client:hover {
  background: transparent;
  color: var(--graphite);
}

/* Mobile nav */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 24px; height: 16px;
  position: relative;
  z-index: 1001;
}

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

.nav-toggle span:nth-child(1) { top: 0; }
.nav-toggle span:nth-child(2) { top: 7px; }
.nav-toggle span:nth-child(3) { top: 14px; }

.nav-toggle.open span:nth-child(1) { top: 7px; transform: rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { top: 7px; transform: rotate(-45deg); }

.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--ivoire);
  z-index: 999;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1.75rem;
}

.mobile-menu.open { display: flex; }

.mobile-menu a {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: 1.4rem;
  letter-spacing: 0.08em;
  color: var(--graphite);
  text-decoration: none;
}

@media (max-width: 900px) {
  .nav { padding: 1.25rem 1.5rem; }
  .nav.scrolled { padding: 1rem 1.5rem; }
  .nav-right .nav-links,
  .nav-right .btn-client { display: none; }
  .nav-toggle { display: block; }
  .nav-logo { opacity: 1; }
}

/* ============================================
   SHARED ELEMENTS
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(25px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.overline {
  font-family: 'Source Sans 3', sans-serif;
  font-weight: 600;
  font-size: 0.62rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gris);
  margin-bottom: 1.25rem;
}

.heading-lg {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(1.5rem, 2.8vw, 2.1rem);
  letter-spacing: 0.04em;
  color: var(--graphite);
  line-height: 1.45;
  margin-bottom: 1.75rem;
}

.heading-md {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  letter-spacing: 0.04em;
  color: var(--graphite);
  line-height: 1.5;
  margin-bottom: 1rem;
}

.body-text {
  font-family: 'Source Sans 3', sans-serif;
  font-weight: 300;
  font-size: 0.92rem;
  line-height: 1.85;
  color: var(--gris);
}

.section-break {
  width: 50px;
  height: 1px;
  background: var(--graphite);
  opacity: 0.1;
  margin: 0 auto;
}

/* Photo placeholders */
.photo-placeholder {
  font-family: 'Source Sans 3', sans-serif;
  font-weight: 300;
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  text-align: center;
  padding: 1.5rem;
  border: 1px dashed rgba(255,255,255,0.1);
  line-height: 2;
  max-width: 260px;
}

/* ============================================
   PAGE HERO (interior pages)
   ============================================ */
.page-hero {
  padding: 10rem 2rem 5rem;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.page-hero .overline { margin-bottom: 1rem; }

.page-hero .heading-lg {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.page-hero .body-text {
  max-width: 500px;
  margin: 0 auto;
  text-align: center;
}

/* ============================================
   CONTENT SECTIONS (interior pages)
   ============================================ */
.content-section {
  padding: 5rem 2rem;
  max-width: 800px;
  margin: 0 auto;
}

.content-section .heading-md {
  margin-top: 3rem;
}

.content-section .heading-md:first-of-type {
  margin-top: 0;
}

.content-section .body-text {
  margin-bottom: 1rem;
}

.content-section .body-text strong {
  font-weight: 600;
  color: var(--graphite);
}

/* Dark content section */
.content-dark {
  background: var(--graphite);
  padding: 5rem 2rem;
}

.content-dark .inner {
  max-width: 800px;
  margin: 0 auto;
}

.content-dark .overline { color: rgba(244,241,232,0.3); }
.content-dark .heading-lg { color: var(--ivoire); }
.content-dark .heading-md { color: var(--ivoire); }
.content-dark .body-text { color: rgba(244,241,232,0.55); }
.content-dark .body-text strong { color: var(--ivoire); }

/* Grid layout for facts/features */
.facts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(43,43,43,0.07);
}

@media (max-width: 600px) {
  .facts-grid { grid-template-columns: 1fr; }
}

.fact-label {
  font-family: 'Source Sans 3', sans-serif;
  font-weight: 600;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--graphite);
  margin-bottom: 0.35rem;
}

.fact-value {
  font-family: 'Source Sans 3', sans-serif;
  font-weight: 300;
  font-size: 0.82rem;
  line-height: 1.7;
  color: var(--gris);
}

.content-dark .fact-label { color: var(--ivoire); }
.content-dark .fact-value { color: rgba(244,241,232,0.45); }

/* Pillar grid */
.pillar-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid rgba(43,43,43,0.08);
  margin-top: 3rem;
}

@media (max-width: 700px) {
  .pillar-grid { grid-template-columns: 1fr; }
}

.pillar-item {
  padding: 2.5rem;
  border-bottom: 1px solid rgba(43,43,43,0.08);
  border-right: 1px solid rgba(43,43,43,0.08);
}

.pillar-item:nth-child(2n) { border-right: none; }
.pillar-item:nth-last-child(-n+2) { border-bottom: none; }

@media (max-width: 700px) {
  .pillar-item { border-right: none; }
  .pillar-item:last-child { border-bottom: none; }
  .pillar-item:nth-last-child(2) { border-bottom: 1px solid rgba(43,43,43,0.08); }
}

.pillar-num {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: 2rem;
  color: var(--ivoire-dark);
  margin-bottom: 1.25rem;
  line-height: 1;
}

.pillar-title {
  font-family: 'Source Sans 3', sans-serif;
  font-weight: 600;
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--graphite);
  margin-bottom: 0.6rem;
}

.pillar-text {
  font-family: 'Source Sans 3', sans-serif;
  font-weight: 300;
  font-size: 0.82rem;
  line-height: 1.75;
  color: var(--gris);
}

/* Timeline */
.timeline {
  position: relative;
  padding-left: 3.5rem;
  margin-top: 3rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0.5rem;
  top: 1rem;
  bottom: 1rem;
  width: 1px;
  background: rgba(43,43,43,0.1);
}

.timeline-step {
  position: relative;
  padding-bottom: 3rem;
}

.timeline-step:last-child { padding-bottom: 0; }

.timeline-step::before {
  content: '';
  position: absolute;
  left: -3rem;
  top: 0.6rem;
  width: 5px; height: 5px;
  background: var(--ivoire-fonce);
  border: 1px solid rgba(43,43,43,0.2);
  border-radius: 50%;
}

.timeline-title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  font-size: 1.1rem;
  letter-spacing: 0.04em;
  color: var(--graphite);
  margin-bottom: 0.5rem;
}

.timeline-text {
  font-family: 'Source Sans 3', sans-serif;
  font-weight: 300;
  font-size: 0.85rem;
  line-height: 1.8;
  color: var(--gris);
  max-width: 500px;
}

/* Usage tags */
.usage-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.5rem;
}

.usage-tag {
  font-family: 'Source Sans 3', sans-serif;
  font-weight: 300;
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gris);
  padding: 0.5rem 1.1rem;
  border: 1px solid rgba(43,43,43,0.1);
  transition: all 0.3s;
}

.usage-tag:hover {
  border-color: rgba(43,43,43,0.25);
  color: var(--graphite);
}

/* Values row */
.values-row {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
  padding-top: 3rem;
  border-top: 1px solid rgba(244,241,232,0.06);
  margin-top: 3rem;
}

.value-item { text-align: center; min-width: 140px; }

.value-word {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  font-size: 1rem;
  letter-spacing: 0.08em;
  color: var(--ivoire);
  margin-bottom: 0.35rem;
}

.value-desc {
  font-family: 'Source Sans 3', sans-serif;
  font-weight: 300;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: rgba(244,241,232,0.35);
}

/* Photo bande */
.photo-bande {
  height: 40vh;
  min-height: 280px;
  background: linear-gradient(160deg, #5C5440 0%, #4A4335 30%, #3D3628 70%, #2D2820 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* CTA link */
.cta-link {
  display: inline-block;
  font-family: 'Source Sans 3', sans-serif;
  font-weight: 400;
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--graphite);
  text-decoration: none;
  padding-bottom: 0.25rem;
  border-bottom: 1px solid rgba(43,43,43,0.2);
  transition: border-color 0.3s;
  margin-top: 2rem;
}

.cta-link:hover { border-bottom-color: var(--graphite); }

.content-dark .cta-link {
  color: var(--ivoire);
  border-bottom-color: rgba(244,241,232,0.2);
}

.content-dark .cta-link:hover { border-bottom-color: var(--ivoire); }

/* ============================================
   CONTACT FORM
   ============================================ */
.contact-form {
  max-width: 500px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

@media (max-width: 500px) {
  .form-row { grid-template-columns: 1fr; }
}

.form-field { display: flex; flex-direction: column; text-align: left; }

.form-label {
  font-family: 'Source Sans 3', sans-serif;
  font-weight: 400;
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gris);
  margin-bottom: 0.5rem;
}

.form-input,
.form-textarea {
  font-family: 'Source Sans 3', sans-serif;
  font-weight: 300;
  font-size: 0.88rem;
  color: var(--graphite);
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(43,43,43,0.13);
  padding: 0.6rem 0;
  outline: none;
  transition: border-color 0.3s;
  border-radius: 0;
  -webkit-appearance: none;
}

.form-input:focus,
.form-textarea:focus { border-bottom-color: var(--graphite); }

.form-input::placeholder,
.form-textarea::placeholder { color: rgba(138,133,120,0.4); }

.form-textarea {
  resize: vertical;
  min-height: 90px;
  line-height: 1.6;
}

.form-submit {
  font-family: 'Source Sans 3', sans-serif;
  font-weight: 400;
  font-size: 0.68rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--ivoire);
  background: var(--graphite);
  border: 1px solid var(--graphite);
  padding: 0.9rem 2rem;
  cursor: pointer;
  transition: all 0.3s;
  margin-top: 0.75rem;
  align-self: flex-start;
}

.form-submit:hover {
  background: transparent;
  color: var(--graphite);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--graphite);
  padding: 3.5rem 2rem 2.5rem;
}

.footer-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-brand {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: 0.85rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ivoire);
  margin-bottom: 0.35rem;
}

.footer-sub {
  font-family: 'Source Sans 3', sans-serif;
  font-weight: 300;
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(244,241,232,0.3);
}

.footer-right { text-align: right; }

.footer-right a {
  font-family: 'Source Sans 3', sans-serif;
  font-weight: 300;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: rgba(244,241,232,0.4);
  text-decoration: none;
  transition: color 0.3s;
  display: block;
  margin-bottom: 0.3rem;
}

.footer-right a:hover { color: var(--ivoire); }

.footer-legal {
  max-width: 1000px;
  margin: 2.5rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(244,241,232,0.04);
  font-family: 'Source Sans 3', sans-serif;
  font-weight: 300;
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  color: rgba(244,241,232,0.18);
  text-align: center;
}

/* ============================================
   HOMEPAGE-SPECIFIC STYLES
   ============================================ */

/* Hero */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 6rem 2rem 4rem;
  position: relative;
}

.hero-logo {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(2.4rem, 4.5vw, 3.6rem);
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--graphite);
  line-height: 1.7;
  animation: fadeUp 1s ease forwards;
  opacity: 0;
}

.hero-filet {
  width: 30px; height: 1px;
  background: var(--graphite);
  opacity: 0.2;
  margin: 1.25rem auto;
  animation: fadeUp 1s ease 0.15s forwards;
  opacity: 0;
}

.hero-tagline {
  font-family: 'Source Sans 3', sans-serif;
  font-weight: 300;
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gris);
  animation: fadeUp 1s ease 0.3s forwards;
  opacity: 0;
  margin-bottom: 3rem;
}

.hero-intro {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-style: italic;
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  letter-spacing: 0.02em;
  color: var(--gris);
  max-width: 480px;
  line-height: 1.7;
  animation: fadeUp 1s ease 0.5s forwards;
  opacity: 0;
}

.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 1px; height: 50px;
  background: var(--graphite);
  opacity: 0;
  animation: fadeUp 1s ease 0.8s forwards, scrollPulse 2.5s ease-in-out 1.8s infinite;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.08; }
  50% { opacity: 0.2; }
}

/* Homepage sections — keep all existing styles from the validated homepage */
.mascareignes {
  padding: 7rem 2rem;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.mascareignes .heading-lg { max-width: 550px; margin-left: auto; margin-right: auto; }
.mascareignes .body-text { max-width: 520px; margin: 0 auto; text-align: center; }

/* Produit */
.produit { padding: 0; background: var(--graphite); }

.produit-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 70vh;
}

@media (max-width: 900px) {
  .produit-hero { grid-template-columns: 1fr; }
}

.produit-photo {
  background: linear-gradient(155deg, #1E1C18 0%, #2B2520 40%, #1A1815 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 45vh;
}

.produit-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 5rem 4rem;
}

@media (max-width: 900px) {
  .produit-content { padding: 3.5rem 2rem; }
}

.produit .overline { color: rgba(244,241,232,0.3); }
.produit .heading-lg { color: var(--ivoire); }
.produit .body-text { color: rgba(244,241,232,0.55); }

.produit-specs {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0;
  border-top: 1px solid rgba(244,241,232,0.06);
}

@media (max-width: 900px) {
  .produit-specs { grid-template-columns: 1fr; }
}

.spec-item {
  padding: 3rem 3.5rem;
  border-right: 1px solid rgba(244,241,232,0.06);
  border-bottom: 1px solid rgba(244,241,232,0.06);
}

.spec-item:last-child { border-right: none; }

@media (max-width: 900px) {
  .spec-item { border-right: none; padding: 2rem; }
}

.spec-title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: 0.04em;
  color: var(--ivoire);
  margin-bottom: 0.6rem;
}

.spec-text {
  font-family: 'Source Sans 3', sans-serif;
  font-weight: 300;
  font-size: 0.8rem;
  line-height: 1.8;
  color: rgba(244,241,232,0.45);
}

.produit-usages {
  padding: 4rem 4rem 5rem;
  display: flex;
  align-items: flex-start;
  gap: 4rem;
}

@media (max-width: 900px) {
  .produit-usages { flex-direction: column; padding: 2.5rem 2rem 3.5rem; gap: 2rem; }
}

.usages-label {
  font-family: 'Source Sans 3', sans-serif;
  font-weight: 600;
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(244,241,232,0.3);
  min-width: 160px;
  padding-top: 0.2rem;
}

.produit .usage-tag {
  color: rgba(244,241,232,0.5);
  border-color: rgba(244,241,232,0.1);
}

.produit .usage-tag:hover {
  border-color: rgba(244,241,232,0.25);
  color: rgba(244,241,232,0.7);
}

/* Origine */
.origine {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  min-height: 65vh;
}

@media (max-width: 900px) {
  .origine { grid-template-columns: 1fr; }
}

.origine-photo {
  background: linear-gradient(170deg, #4A5D3A 0%, #3B4D2E 40%, #2D3D22 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40vh;
  position: relative;
  overflow: hidden;
}

.origine-photo .photo-placeholder { position: relative; z-index: 1; }

.origine-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 5rem 4rem;
  background: var(--ivoire);
}

@media (max-width: 900px) {
  .origine-content { padding: 3.5rem 2rem; }
}

/* Savoir-faire */
.savoirfaire {
  padding: 8rem 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.sf-header {
  text-align: center;
  margin-bottom: 5rem;
}

.sf-header .body-text { max-width: 460px; margin: 0 auto; text-align: center; }

/* Pourquoi / Promesse */
.pourquoi {
  padding: 8rem 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.pourquoi-header {
  text-align: center;
  margin-bottom: 4.5rem;
}

.pourquoi-header .body-text { max-width: 480px; margin: 0 auto; text-align: center; }

/* Maison */
.maison-section {
  background: var(--graphite);
  padding: 8rem 2rem;
}

.maison-inner { max-width: 900px; margin: 0 auto; }

.maison-statement { text-align: center; margin-bottom: 4rem; }
.maison-statement .overline { color: rgba(244,241,232,0.3); }
.maison-statement .heading-lg {
  color: var(--ivoire);
  font-style: italic;
  max-width: 550px;
  margin-left: auto;
  margin-right: auto;
}
.maison-statement .body-text { color: rgba(244,241,232,0.5); max-width: 500px; margin: 0 auto; text-align: center; }

/* Contact */
.contact {
  padding: 8rem 2rem;
  max-width: 700px;
  margin: 0 auto;
}

.contact-header { text-align: center; margin-bottom: 3.5rem; }
.contact-header .body-text { max-width: 420px; margin: 0 auto; text-align: center; }
