@font-face { font-family: "Hanken Grotesk"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/hanken-grotesk-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Hanken Grotesk"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/hanken-grotesk-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Hanken Grotesk"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/hanken-grotesk-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Hanken Grotesk"; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/hanken-grotesk-latin-400-italic.woff2") format("woff2"); }

  :root {
    --paper: #F8F7F4;
    --surface: #FFFFFF;
    --ink: #1B211F;
    --muted: #5B6461;
    --line: #E1DDD4;
    --brass: #A0783A;
    --brass-soft: #D9C29A;
    --green: #1F3A34;
    --green-ink: #F3F1EA;
    --green-muted: #B9C5BF;
    --green-line: #35544C;
    --focus: #A0783A;

    --serif: "Hanken Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --text: clamp(1rem, 1.25vw, 1.125rem);
    --header-h: 76px;
    --section-gap: clamp(44px, 5.5vw, 72px);
    --sans: "Hanken Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  }
  @media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
      color-scheme: dark;
      --paper: #151A19;
      --surface: #1C2322;
      --ink: #ECE9E2;
      --muted: #A8B1AD;
      --line: #2E3836;
      --brass: #CFA86A;
      --brass-soft: #6E5A3A;
      --green: #203B35;
      --green-ink: #F1EEE6;
      --green-muted: #AEBDB6;
      --green-line: #36574F;
      --focus: #CFA86A;
    }
  }
  :root[data-theme="dark"] {
    color-scheme: dark;
    --paper: #151A19;
    --surface: #1C2322;
    --ink: #ECE9E2;
    --muted: #A8B1AD;
    --line: #2E3836;
    --brass: #CFA86A;
    --brass-soft: #6E5A3A;
    --green: #203B35;
    --green-ink: #F1EEE6;
    --green-muted: #AEBDB6;
    --green-line: #36574F;
    --focus: #CFA86A;
  }

  * { box-sizing: border-box; }
  html { scroll-behavior: smooth; scroll-padding-top: calc(env(safe-area-inset-top, 0px) + var(--header-h)); }
  body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--sans);
    font-size: var(--text);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
  }
  img { max-width: 100%; display: block; }
  a { color: inherit; }
  h1, h2, h3 { font-family: var(--serif); font-weight: 500; margin: 0; text-wrap: balance; line-height: 1.2; }
  p { margin: 0; }
  :focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 2px; }

  .wrap { max-width: 1180px; margin: 0 auto; padding-inline: clamp(16px, 4vw, 40px); }

  .eyebrow {
    display: flex; align-items: center; gap: 14px;
    font-size: var(--text); font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--brass);
  }
  .eyebrow::before { content: ""; width: 36px; height: 1px; background: currentColor; flex-shrink: 0; }

  .btn {
    display: inline-flex; align-items: center; gap: 10px;
    font: 600 var(--text)/1 var(--sans);
    padding: 16px 26px; border-radius: 2px; text-decoration: none;
    border: 1px solid transparent; cursor: pointer;
    transition: background-color .2s ease, color .2s ease, border-color .2s ease;
  }
  .btn-primary { background: var(--green); color: var(--green-ink); }
  .btn-primary:hover { background: var(--brass); }
  .btn-ghost { border-color: var(--line); color: var(--ink); background: transparent; }
  .btn-ghost:hover { border-color: var(--brass); color: var(--brass); }
  .btn svg { width: 16px; height: 16px; }

  /* ---------- Header ---------- */
  .site-header {
    position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
    background: color-mix(in srgb, var(--paper) 92%, transparent);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line);
  }
  .header-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }
  .brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
  .monogram {
    width: 44px; height: 44px; flex-shrink: 0;
    border: 1px solid var(--brass); border-radius: 50%;
    display: grid; place-items: center;
    font-family: var(--serif); font-size: var(--text); letter-spacing: 0.02em; color: var(--brass);
  }
  .brand-text { display: flex; flex-direction: column; line-height: 1.25; white-space: nowrap; }
  .brand-name { font-family: var(--serif); font-size: var(--text); color: var(--ink); }
  .brand-sub { font-size: var(--text); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }

  .main-nav { display: flex; align-items: center; gap: 26px; white-space: nowrap; }
  @media (max-width: 1400px) { .site-header .brand-sub { display: none; } }
  .main-nav a:not(.btn) {
    text-decoration: none; font-size: var(--text); color: var(--ink);
    padding-block: 6px; border-bottom: 1px solid transparent;
    transition: border-color .2s ease, color .2s ease;
  }
  .main-nav a:not(.btn):hover { color: var(--brass); border-color: var(--brass); }
  .main-nav .btn { padding: 12px 20px; }
  .menu-toggle {
    display: none; align-items: center; gap: 10px;
    background: none; border: 1px solid var(--line); border-radius: 2px;
    padding: 10px 14px; font: 500 var(--text) var(--sans); color: var(--ink); cursor: pointer;
  }
  .menu-toggle span.bars { display: grid; gap: 4px; }
  .menu-toggle span.bars i { display: block; width: 18px; height: 1.5px; background: currentColor; }

  /* ---------- Hero ---------- */
  .hero { padding-top: clamp(40px, 7vw, 88px); padding-bottom: var(--section-gap); }
  .hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
  .hero h1 { font-size: clamp(2.3rem, 5.2vw, 3.9rem); letter-spacing: -0.01em; }
  .hero .lede { margin-top: 18px; font-size: var(--text); color: var(--muted); max-width: 34ch; }
  .hero-areas { margin-top: 34px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); }
  .hero-areas a {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 14px 4px; border-bottom: 1px solid var(--line);
    text-decoration: none; font-size: var(--text); color: var(--ink);
    transition: color .2s ease;
  }
  .hero-areas a:nth-child(odd) { padding-right: 18px; }
  .hero-areas a:nth-child(even) { padding-left: 18px; border-left: 1px solid var(--line); }
  .hero-areas a svg { width: 14px; height: 14px; flex-shrink: 0; color: var(--brass); transition: transform .2s ease; }
  .hero-areas a:hover { color: var(--brass); }
  .hero-areas a:hover svg { transform: translateX(3px); }
  .hero-actions { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 12px; }
  .hero-address { margin-top: 22px; font-size: var(--text); color: var(--muted); display: flex; align-items: center; gap: 8px; }
  .hero-address svg { width: 16px; height: 16px; color: var(--brass); flex-shrink: 0; }

  .portrait { position: relative; max-width: 360px; margin-inline: auto; width: calc(100% - 18px); margin-right: auto; transform: translateX(-9px); }
  .portrait::before {
    content: ""; position: absolute; inset: 18px -18px -18px 18px;
    border: 1px solid var(--brass); pointer-events: none;
  }
  .portrait img { position: relative; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 12%; background: var(--line); }
  .portrait figcaption {
    position: absolute; left: -1px; bottom: 28px; z-index: 1;
    background: var(--green); color: var(--green-ink);
    padding: 14px 20px; font-size: var(--text); line-height: 1.4;
  }
  .portrait figcaption strong { display: block; font-family: var(--serif); font-weight: 400; font-size: var(--text); }

  /* ---------- Sections ---------- */
  .section { padding-block: var(--section-gap); border-top: 1px solid var(--line); }
  .section-head { display: grid; gap: 16px; margin-bottom: clamp(36px, 5vw, 56px); max-width: 720px; }
  .section-head.center { margin-inline: auto; text-align: center; justify-items: center; }
  .section-head.center .eyebrow::after { content: ""; width: 36px; height: 1px; background: currentColor; }
  .section-head h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); }

  /* Domaines */
  .domaines { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
  .domaine {
    background: var(--surface); border: 1px solid var(--line);
    padding: clamp(26px, 3.4vw, 40px);
    display: grid; grid-template-rows: auto auto 1fr; gap: 16px;
    transition: border-color .25s ease, transform .25s ease;
  }
  .domaine:hover { border-color: var(--brass); transform: translateY(-3px); }
  .domaine-icon {
    width: 54px; height: 54px; border: 1px solid var(--brass-soft); border-radius: 50%;
    display: grid; place-items: center; color: var(--brass);
  }
  .domaine-icon svg { width: 24px; height: 24px; }
  .domaine h3 { font-size: 1.4rem; }
  .domaine .body { display: grid; gap: 12px; color: var(--muted); font-size: var(--text); }

  /* Présentation */
  .presentation-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
  .presentation-aside { display: grid; gap: 18px; }
  .presentation-aside h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); }
  .presentation-aside blockquote {
    margin: 12px 0 0; padding-left: 20px; border-left: 1px solid var(--brass);
    font-family: var(--serif); font-style: italic; font-size: var(--text); line-height: 1.5; color: var(--ink);
  }
  .prose { display: grid; gap: 20px; max-width: 64ch; font-size: var(--text); }
  .prose p:first-child { font-family: var(--serif); font-size: var(--text); line-height: 1.6; }

  /* Exigences */
  .exigences { background: var(--green); color: var(--green-ink); border-top: 0; }
  .exigences .eyebrow { color: var(--brass-soft); }
  .exigences h2 { color: var(--green-ink); }
  .exigences-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--green-line); }
  .exigence { padding: 34px clamp(20px, 3vw, 40px) 8px 0; display: grid; gap: 12px; align-content: start; }
  .exigence + .exigence { padding-left: clamp(20px, 3vw, 40px); border-left: 1px solid var(--green-line); }
  .exigence h3 { font-size: var(--text); color: var(--green-ink); }
  .exigence h3::before { content: ""; display: block; width: 28px; height: 1px; background: var(--brass-soft); margin-bottom: 18px; }
  .exigence p { color: var(--green-muted); font-size: var(--text); }

  /* Parcours */
  .parcours-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 6vw, 80px); }
  .parcours-col h3.col-title {
    font-family: var(--sans); font-size: var(--text); font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--muted); padding-bottom: 14px; border-bottom: 1px solid var(--line);
  }
  .timeline { list-style: none; margin: 0; padding: 0; }
  .timeline li { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 20px; padding-block: 22px; border-bottom: 1px solid var(--line); }
  .timeline .period { font-size: var(--text); color: var(--brass); font-weight: 500; font-variant-numeric: tabular-nums; padding-top: 3px; }
  .timeline h4 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: var(--text); line-height: 1.35; }
  .timeline p { margin-top: 6px; color: var(--muted); font-size: var(--text); }

  /* Contact */
  .contact { background: var(--surface); }
  .contact-grid { display: grid; grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
  .contact-intro { display: grid; gap: 18px; }
  .contact-intro h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); }
  .contact-intro p { color: var(--muted); max-width: 40ch; }
  .contact-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); }
  .contact-item { padding: 24px 20px 24px 0; border-bottom: 1px solid var(--line); display: grid; gap: 6px; align-content: start; }
  .contact-item:nth-child(even) { padding-left: 20px; border-left: 1px solid var(--line); }
  .contact-item .label { font-size: var(--text); font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
  .contact-item .value { font-family: var(--serif); font-size: var(--text); line-height: 1.4; overflow-wrap: anywhere; }
  .contact-item .value a { text-decoration: none; border-bottom: 1px solid var(--brass-soft); transition: border-color .2s ease, color .2s ease; }
  .contact-item .value a:hover { color: var(--brass); border-color: var(--brass); }
  .contact-item.full { grid-column: 1 / -1; padding-left: 0; border-left: 0; border-bottom: 0; }
  .copy {
    justify-self: start; margin-top: 4px;
    background: none; border: 0; padding: 0; cursor: pointer;
    font: 500 var(--text) var(--sans); color: var(--brass);
  }
  .copy:hover { text-decoration: underline; }

  /* Footer */
  .site-footer { background: var(--green); color: var(--green-muted); padding-block: 44px; font-size: var(--text); }
  .footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; }
  .site-footer .brand-name { color: var(--green-ink); }
  .site-footer .brand-sub { color: var(--green-muted); }
  .site-footer .monogram { border-color: var(--brass-soft); color: var(--brass-soft); }
  .footer-nav { display: flex; flex-wrap: wrap; gap: 22px; }
  .footer-nav a { text-decoration: none; color: var(--green-ink); }
  .footer-nav a:hover { color: var(--brass-soft); }
  .footer-bottom { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--green-line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }

  /* ---------- Responsive ---------- */
  @media (max-width: 1140px) {
    .menu-toggle { display: inline-flex; }
    .main-nav {
      display: none; position: absolute; left: 0; right: 0; top: 100%;
      flex-direction: column; align-items: stretch; gap: 0;
      background: var(--paper); border-bottom: 1px solid var(--line);
      padding: 8px clamp(16px, 4vw, 40px) 20px;
    }
    .main-nav.open { display: flex; }
    .main-nav a:not(.btn) { padding-block: 14px; border-bottom: 1px solid var(--line); }
    .main-nav .btn { margin-top: 16px; justify-content: center; padding: 16px; }
    .hero-grid { grid-template-columns: 1fr; }
    .portrait { margin: 8px auto 30px; max-width: 320px; order: -1; transform: translateX(-9px); }
    .presentation-grid, .contact-grid { grid-template-columns: 1fr; }
    .presentation-aside { position: static; }
  }
  @media (max-width: 720px) {
    .domaines, .parcours-grid, .exigences-grid { grid-template-columns: 1fr; }
    .exigence, .exigence + .exigence { padding: 28px 0 20px; border-left: 0; }
    .exigence + .exigence { border-top: 1px solid var(--green-line); }
    .hero-areas { grid-template-columns: 1fr; }
    .hero-areas a:nth-child(n) { padding: 14px 4px; border-left: 0; }
    .timeline li { grid-template-columns: 1fr; gap: 4px; }
    .brand-sub { display: none; }
    .portrait { max-width: 270px; }
    .portrait::before { inset: 14px -14px -14px 14px; }
  }
  @media (max-width: 520px) {
    .contact-list { grid-template-columns: 1fr; }
    .contact-item:nth-child(n) { padding: 20px 0; border-left: 0; }
    .hero-actions .btn { flex: 1 1 100%; justify-content: center; }
  }

  .domaine .body p, .prose p, .presentation-aside blockquote, .exigence p, .timeline p, .contact-intro p {
    text-align: justify; hyphens: auto; -webkit-hyphens: auto;
  }
  .timeline h4, .timeline p, .timeline .period { line-height: 1.35; }
  .timeline p { margin-top: 4px; }

  @media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; }
  }
  .sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
  .portrait { margin-block: 0; }
  .site-footer .brand { text-decoration: none; }
  :root { padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); }
