/* RENAISSANCE 180 — Design tokens */

/* Fonts Google sont chargees en async via <link> dans index.html (non bloquant).
   Caveat est self-hosted localement ci-dessous. */

@font-face {
  font-family: 'Caveat';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/fonts/caveat-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Caveat';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/fonts/caveat-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* Palette — usage 60/30/5 */
  --creme: #F5EFE4;        /* fond principal — 60-70% */
  --sable: #E8DFCE;        /* fond secondaire — sections alternées */
  --anthracite: #1F1D1A;   /* texte principal */
  --brun: #3E342A;         /* titres secondaires, line art */
  --ocre: #E8B83A;         /* ACCENT SIGNATURE — max 5% */
  --or: #B8862A;           /* accent secondaire — sceaux, lignes */

  /* Variantes utiles */
  --creme-95: rgba(245, 239, 228, 0.95);
  --anthracite-80: rgba(31, 29, 26, 0.8);
  --anthracite-60: rgba(31, 29, 26, 0.6);
  --anthracite-40: rgba(31, 29, 26, 0.4);
  --anthracite-15: rgba(31, 29, 26, 0.15);
  --anthracite-08: rgba(31, 29, 26, 0.08);
  --brun-60: rgba(62, 52, 42, 0.6);

  /* Type */
  --display: "Space Grotesk", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --body: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* Échelle type — fluide */
  --t-mono: 0.72rem;
  --t-body-sm: 0.875rem;
  --t-body: 1rem;
  --t-body-lg: 1.125rem;
  --t-h4: 1.25rem;
  --t-h3: clamp(1.5rem, 2vw + 0.6rem, 2rem);
  --t-h2: clamp(2rem, 3vw + 0.8rem, 3rem);
  --t-h1: clamp(2.5rem, 5vw + 0.5rem, 4.5rem);
  --t-hero: clamp(2.75rem, 6vw + 0.5rem, 5.5rem);

  /* Espacement */
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section-y: clamp(4rem, 9vw, 7.5rem);
  --maxw: 1240px;

  /* Radii */
  --r-sm: 4px;
  --r-md: 10px;
  --r-lg: 18px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--creme);
  color: var(--anthracite);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body { overflow-x: hidden; }

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

a { color: inherit; }

/* Helpers */
.mono {
  font-family: var(--mono);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: var(--t-mono);
}

.display {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.02;
}

.eyebrow {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brun);
}

.rule {
  height: 1px;
  background: var(--anthracite-15);
  border: 0;
  width: 100%;
}

/* Photo placeholder — éditorial annoté */
.photo-ph {
  position: relative;
  background-color: var(--sable);
  background-image:
    repeating-linear-gradient(
      135deg,
      transparent 0,
      transparent 12px,
      rgba(62, 52, 42, 0.06) 12px,
      rgba(62, 52, 42, 0.06) 13px
    );
  color: var(--brun);
  display: flex;
  align-items: flex-end;
  padding: 14px;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.45;
  overflow: hidden;
}
.photo-ph::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(62, 52, 42, 0.18);
  pointer-events: none;
}
.photo-ph .ph-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--anthracite);
  color: var(--creme);
  padding: 4px 8px;
  font-size: 0.62rem;
  letter-spacing: 0.12em;
}
.photo-ph .ph-cap {
  position: relative;
  max-width: 90%;
  color: var(--brun);
}

/* Sceau circulaire — asset signature */
.seal {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: var(--ocre);
  color: var(--anthracite);
  display: grid;
  place-items: center;
  text-align: center;
  font-family: var(--mono);
  font-weight: 600;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  line-height: 1.15;
  text-transform: uppercase;
  box-shadow: 0 1px 0 rgba(184, 134, 42, 0.6) inset, 0 0 0 1px rgba(184, 134, 42, 0.4);
  flex-shrink: 0;
}
.seal--wax {
  background: radial-gradient(circle at 35% 30%, #efc758 0%, #E8B83A 45%, #c9982a 100%);
  box-shadow:
    inset -6px -8px 18px rgba(120, 80, 10, 0.35),
    inset 6px 8px 12px rgba(255, 230, 150, 0.45),
    0 6px 14px rgba(120, 80, 10, 0.18);
}
.seal--mono {
  background: transparent;
  color: var(--anthracite);
  border: 1.5px solid var(--anthracite);
  box-shadow: none;
}

/* CTA */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  padding: 1rem 1.5rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  transition: transform 0.06s ease, background 0.12s ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.btn--primary {
  background: var(--ocre);
  color: var(--anthracite);
}
.btn--primary:hover { background: #f0c54a; }
.btn--primary:active { transform: scale(0.97); background: #e0a82e; }
.btn--ghost {
  background: transparent;
  color: var(--anthracite);
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-thickness: 1px;
  padding: 0.4rem 0;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* Highlight word */
.hl {
  background: var(--ocre);
  color: var(--anthracite);
  padding: 0 0.18em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
