/* Serenity Home — direction héritée du logo fourni (pétrole/or sur ivoire, motif orbital, Om central) */

@font-face {
  font-family: 'Jost';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('img/fonts/jost.woff2') format('woff2');
}
@font-face {
  font-family: 'Karla';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('img/fonts/karla-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Karla';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('img/fonts/karla-400i.woff2') format('woff2');
}

:root {
  --ink: #16302d;
  --ink-soft: #4d5f5a;
  --petrol: #1f5b66;
  --petrol-deep: #123138;
  --gold: #9d7639;
  --gold-light: #c9a24c;
  --ivory: #f7f2e4;
  --ivory-panel: #efe7d2;
  --ivory-panel-2: #e8dfc6;
  --line: #ddd0ac;
  --display: 'Jost', -apple-system, sans-serif;
  --body: 'Karla', -apple-system, sans-serif;
  --shadow: 0 12px 32px -18px rgba(18, 49, 56, 0.35);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
}

img, video { max-width: 100%; display: block; }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 500;
  margin: 0;
  text-wrap: balance;
  color: var(--petrol-deep);
}

p { margin: 0; }

a { color: inherit; }

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 1.75rem;
}

.eyebrow {
  font-family: var(--display);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
}

/* ---------- Nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 242, 228, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}

.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
  gap: 1rem;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--display);
  letter-spacing: 0.08em;
  font-weight: 500;
  font-size: 1rem;
  text-transform: uppercase;
  color: var(--petrol-deep);
  text-decoration: none;
  white-space: nowrap;
}

.nav-brand img { height: 42px; width: auto; flex-shrink: 0; }

.nav-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
}

.nav-links a {
  text-decoration: none;
  color: var(--ink-soft);
}
.nav-links a:hover { color: var(--petrol); }

.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--petrol);
  color: var(--ivory);
  font-family: var(--display);
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 0.78rem;
  padding: 0.75rem 1.4rem;
  border-radius: 2px;
  text-decoration: none;
  border: 1px solid var(--petrol);
  transition: background 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}
.btn-cta:hover { background: var(--petrol-deep); }
.btn-cta.ghost {
  background: transparent;
  color: var(--petrol-deep);
}
.btn-cta.ghost:hover { background: var(--petrol); color: var(--ivory); }

@media (max-width: 720px) {
  .nav-links { display: none; }
}

@media (max-width: 480px) {
  .nav-brand span { display: none; }
  .nav .btn-cta { font-size: 0.68rem; padding: 0.6rem 0.9rem; }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: 4.5rem 0 6rem;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 60% at 50% 8%, rgba(157, 118, 57, 0.14), transparent 60%),
    var(--ivory);
}

.hero-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.6rem;
}

.hero-logo { width: min(510px, 78vw); height: auto; margin-top: 0.75rem; }

.hero h1 {
  font-size: clamp(1.9rem, 4.2vw, 3rem);
  max-width: 16ch;
}

.hero .lede {
  max-width: 56ch;
  color: var(--ink-soft);
  font-size: 1.08rem;
}

.hero .actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 0.5rem;
}

.mobile-pillar-row {
  display: none;
  gap: 0.6rem;
  flex-wrap: wrap;
  justify-content: center;
}
.mobile-pillar-row a {
  font-family: var(--display);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--petrol-deep);
  border: 1px solid var(--gold);
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
}
@media (max-width: 640px) {
  .mobile-pillar-row { display: flex; }
}

/* ---------- Positioning ---------- */

.positioning {
  padding: 4.5rem 0;
  background: var(--ivory-panel);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.positioning .container {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
  gap: 3rem;
  align-items: start;
}

.positioning h2 { font-size: clamp(1.5rem, 3vw, 2rem); max-width: 14ch; }

.positioning .body { color: var(--ink-soft); font-size: 1.05rem; display: flex; flex-direction: column; gap: 1rem; }

@media (max-width: 800px) {
  .positioning .container { grid-template-columns: 1fr; gap: 1.5rem; }
}

/* ---------- Pillars ---------- */

.pillars { padding: 1rem 0; }

.pillar {
  padding: 5rem 0;
  border-bottom: 1px solid var(--line);
}

.pillar .container {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 3.5rem;
  align-items: start;
}

.pillar.reverse .container { direction: rtl; }
.pillar.reverse .container > * { direction: ltr; }

.pillar-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1.5px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}
.pillar-icon svg { width: 26px; height: 26px; stroke: var(--petrol); }

.pillar h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin-bottom: 1rem; }

.pillar .body { color: var(--ink-soft); font-size: 1.05rem; margin-bottom: 1rem; }

.pillar .note {
  font-size: 0.9rem;
  color: var(--gold);
  font-style: italic;
  font-family: var(--body);
}

.pillar-media {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
}

.pillar-media img, .pillar-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: var(--shadow);
}

.pillar-media .full { grid-column: 1 / -1; aspect-ratio: 16/10; }
.pillar-media .half { aspect-ratio: 1; }

.video-wrap { position: relative; grid-column: 1 / -1; }
.video-wrap video { aspect-ratio: 4/3; background: #000; }

@media (max-width: 860px) {
  .pillar .container { grid-template-columns: 1fr; gap: 1.75rem; }
  .pillar.reverse .container { direction: ltr; }
}

/* Argent — texte seul, traité avec le même soin visuel */

.pillar-argent .container {
  grid-template-columns: 1fr;
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}
.pillar-argent .pillar-icon { margin: 0 auto 1.25rem; }
.pillar-argent .body { font-size: 1.15rem; font-style: italic; color: var(--petrol-deep); }

/* ---------- Temoignages ---------- */

.temoignages {
  padding: 5rem 0;
  background: var(--petrol-deep);
  color: var(--ivory);
}

.temoignages .eyebrow { color: var(--gold-light); }
.temoignages h2 { color: var(--ivory); margin-bottom: 2.5rem; font-size: clamp(1.5rem, 3vw, 2rem); }

.quote-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.quote-card {
  background: rgba(247, 242, 228, 0.06);
  border: 1px solid rgba(247, 242, 228, 0.18);
  border-radius: 4px;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.quote-card p {
  font-style: italic;
  color: rgba(247, 242, 228, 0.92);
  font-size: 0.98rem;
  line-height: 1.55;
}

.quote-card .attr {
  font-family: var(--display);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--gold-light);
}

/* ---------- Contact ---------- */

.contact {
  padding: 5.5rem 0;
  text-align: center;
  background: var(--ivory);
}

.contact h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); max-width: 20ch; margin: 0 auto 1rem; }
.contact .lede { color: var(--ink-soft); max-width: 48ch; margin: 0 auto 2rem; font-size: 1.05rem; }

/* ---------- Footer ---------- */

footer {
  background: var(--ink);
  color: rgba(247, 242, 228, 0.7);
  padding: 2.5rem 0;
  font-size: 0.85rem;
}
footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
footer strong { color: var(--ivory); font-family: var(--display); letter-spacing: 0.05em; }

/* ---------- Reveal on scroll ----------
   Opacity-0 only applies once JS has confirmed it can flip it back
   (html.js-anim, set synchronously in a head script) and the visitor
   has no reduced-motion preference. Without JS, content is visible
   from the start — no invisible-content failure mode. */

html.js-anim.can-animate .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
html.js-anim.can-animate .reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}
