/* ============================================================
   Sovra.dev — Editorial Premium
   Charte : ivoire, serif Fraunces, accent terracotta
   Polices auto-hebergees (conformite RGPD, aucun appel externe)
   ============================================================ */

@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "InterVar";
  src: url("../fonts/inter.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --ivory:         #F7F4EF;
  --ivory-deep:    #EFE9DF;
  --paper:         #FBF9F5;
  --ink:           #241F1B;
  --ink-soft:      #5D544B;
  --ink-faint:     #8B8177;
  --terracotta:    #C4704F;
  --terracotta-dk: #A5543A;
  --line:          #DED6C8;
  --line-soft:     #E9E2D6;

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans:  "InterVar", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --wrap: 1120px;
  --col:  680px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  font-feature-settings: "kern" 1, "liga" 1;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

::selection { background: rgba(196,112,79,.22); }

/* ---------- Layout helpers ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }
.col  { max-width: var(--col); }
.section { padding: clamp(64px, 9vw, 128px) 0; }
.section--alt { background: var(--ivory-deep); }
.rule { height: 1px; background: var(--line); border: 0; margin: 0; }

.eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin: 0 0 22px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 1px;
  background: var(--terracotta);
  display: inline-block;
  opacity: .7;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 420;
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0;
}
h1 { font-size: clamp(2.6rem, 6.5vw, 4.6rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
h3 { font-size: 1.28rem; letter-spacing: 0; }
.italic { font-style: italic; color: var(--terracotta-dk); }

p { margin: 0 0 1.15em; color: var(--ink-soft); }
p.lead { font-size: 1.24rem; line-height: 1.55; color: var(--ink); max-width: 42ch; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--ivory) 88%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line-soft);
}
.site-header__in {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.brand {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: -.01em;
  text-decoration: none;
  color: var(--ink);
  display: inline-flex; align-items: baseline; gap: 2px;
}
.brand b { color: var(--terracotta); font-weight: 500; }
.nav { display: flex; align-items: center; gap: 30px; }
.nav a {
  font-size: 14px; font-weight: 500; text-decoration: none;
  color: var(--ink-soft); letter-spacing: .01em;
  transition: color .2s var(--ease);
}
.nav a:hover { color: var(--ink); }
.lang {
  display: inline-flex; gap: 2px; font-size: 12px; font-weight: 600;
  letter-spacing: .08em; border: 1px solid var(--line);
  border-radius: 999px; padding: 4px 4px; background: var(--paper);
}
.lang a {
  text-decoration: none; color: var(--ink-faint);
  padding: 3px 9px; border-radius: 999px; transition: all .2s var(--ease);
}
.lang a.is-active { background: var(--ink); color: var(--ivory); }

/* ---------- Hero ---------- */
.hero { padding: clamp(72px, 12vw, 148px) 0 clamp(48px, 7vw, 96px); position: relative; overflow: hidden; }
.hero h1 { max-width: 15ch; }
.hero p.lead { margin-top: 28px; }
.hero__meta {
  margin-top: 44px; display: flex; flex-wrap: wrap; gap: 14px 34px;
  font-size: 13px; letter-spacing: .04em; color: var(--ink-faint);
}
.hero__meta span { display: inline-flex; align-items: center; gap: 9px; }
.hero__meta span::before {
  content: ""; width: 5px; height: 5px; border-radius: 50%;
  background: var(--terracotta); display: inline-block;
}
.hero__ornament {
  position: absolute; right: -6%; top: 50%; transform: translateY(-50%);
  width: min(46vw, 520px); opacity: .5; pointer-events: none;
  color: var(--line);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--sans); font-size: 15px; font-weight: 600;
  text-decoration: none; cursor: pointer;
  padding: 13px 24px; border-radius: 2px;
  transition: all .22s var(--ease);
}
.btn--primary { background: var(--ink); color: var(--ivory); border: 1px solid var(--ink); }
.btn--primary:hover { background: var(--terracotta-dk); border-color: var(--terracotta-dk); }
.btn--ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn--ghost:hover { border-color: var(--ink); }
.btn .arw { transition: transform .22s var(--ease); }
.btn:hover .arw { transform: translateX(4px); }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }

/* ---------- Prose / two-column ---------- */
.split { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.split .side-label { font-family: var(--serif); font-style: italic; font-size: 1.5rem; color: var(--ink); }

/* ---------- Values grid ---------- */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line-soft); border: 1px solid var(--line-soft); margin-top: 8px; }
.grid .cell { background: var(--ivory); padding: 34px 30px; }
.grid .cell .n { font-family: var(--serif); font-size: .95rem; color: var(--terracotta); font-style: italic; }
.grid .cell h3 { margin: 14px 0 10px; }
.grid .cell p { margin: 0; font-size: 15px; }
.section--alt .grid { background: var(--line); }
.section--alt .grid .cell { background: var(--ivory-deep); }

/* ---------- Product card ---------- */
.product {
  display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(28px, 5vw, 64px);
  align-items: center; background: var(--paper);
  border: 1px solid var(--line-soft); border-radius: 4px; padding: clamp(30px, 4vw, 52px);
}
.product .tag { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-faint); font-weight: 600; }
.product h3 { font-size: 1.9rem; margin: 12px 0 14px; }
.product .visual {
  aspect-ratio: 4/3; border-radius: 4px;
  background:
    radial-gradient(120% 120% at 20% 10%, #E9C9B6 0%, transparent 55%),
    radial-gradient(120% 120% at 90% 90%, #C9D6CC 0%, transparent 55%),
    linear-gradient(135deg, #F3E7DC, #E4D6C6);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-style: italic; font-size: 2rem; color: var(--terracotta-dk);
  border: 1px solid var(--line-soft);
}
.link-arrow {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 20px;
  font-weight: 600; font-size: 15px; color: var(--terracotta-dk); text-decoration: none;
  border-bottom: 1px solid transparent; padding-bottom: 2px; transition: border-color .2s var(--ease);
}
.link-arrow:hover { border-color: var(--terracotta-dk); }
.link-arrow .arw { transition: transform .2s var(--ease); }
.link-arrow:hover .arw { transform: translateX(3px); }

/* ---------- Contact ---------- */
.contact-block { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: end; }
.contact-mail {
  font-family: var(--serif); font-size: clamp(1.5rem, 3.4vw, 2.4rem);
  color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line);
  transition: border-color .2s var(--ease); word-break: break-word;
}
.contact-mail:hover { border-color: var(--terracotta); }
.contact-meta { font-size: 15px; }
.contact-meta dt { color: var(--ink-faint); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; margin-top: 18px; }
.contact-meta dd { margin: 4px 0 0; color: var(--ink); }
.contact-meta dd:first-of-type { margin-top: 4px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #D8CFC4; padding: 68px 0 40px; }
.site-footer a { color: #D8CFC4; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-top { display: flex; flex-wrap: wrap; gap: 40px; justify-content: space-between; }
.footer-brand { font-family: var(--serif); font-size: 1.5rem; color: #fff; }
.footer-brand b { color: var(--terracotta); font-weight: 400; }
.footer-brand p { color: #A99F92; font-size: 14px; margin-top: 12px; max-width: 34ch; }
.footer-cols { display: flex; gap: 60px; flex-wrap: wrap; }
.footer-cols h4 { font-family: var(--sans); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: #A99F92; margin: 0 0 14px; font-weight: 600; }
.footer-cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; font-size: 14px; }
.footer-bottom {
  margin-top: 52px; padding-top: 26px; border-top: 1px solid #3A322B;
  display: flex; flex-wrap: wrap; gap: 12px 26px; justify-content: space-between;
  font-size: 13px; color: #97897B;
}

/* ---------- Legal pages ---------- */
.legal { padding: clamp(52px, 8vw, 104px) 0; }
.legal .col { max-width: 760px; }
.legal h1 { font-size: clamp(2rem, 4.5vw, 3rem); margin-bottom: 10px; }
.legal .updated { font-size: 13px; color: var(--ink-faint); letter-spacing: .04em; margin-bottom: 48px; }
.legal h2 { font-size: 1.4rem; margin: 46px 0 14px; }
.legal p, .legal li { color: var(--ink-soft); }
.legal ul { padding-left: 20px; }
.legal li { margin-bottom: 8px; }
.legal a { color: var(--terracotta-dk); }
.legal .todo { background: #FBF3D9; border: 1px solid #E7D08A; color: #7A5B12; padding: 2px 7px; border-radius: 3px; font-size: .92em; font-weight: 600; }
.legal address { font-style: normal; }
.back-home { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--terracotta-dk); text-decoration: none; margin-bottom: 40px; }

/* ---------- Reveal on scroll (progressive enhancement) ---------- */
/* Sans JS, le contenu reste visible. Le masquage n'est applique que si <html class="js">. */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .split, .product, .contact-block, .grid { grid-template-columns: 1fr; }
  .product .visual { order: -1; }
  .hero__ornament { display: none; }
  .nav a:not(.lang-link):not(.brand) { display: none; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .footer-top { flex-direction: column; }
}
