/* michaelmorena.com — one-page site (FR at /, EN at /en/)
   Layout, type and spacing are authoritative per the design handoff README
   (design of record: "Michael Morena - Site.html"). Palette is "ivoire & forêt"
   per the retheme brief. Radius 0 everywhere except the 6px urgency dot; no
   shadows — depth comes from rules and ground changes only. */

/* ---------- Fonts (self-hosted, extracted from the design of record) ---------- */

@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 300 500;
  font-display: swap;
  src: url("/assets/fonts/fraunces-normal-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: "Fraunces";
  font-style: normal;
  font-weight: 300 500;
  font-display: swap;
  src: url("/assets/fonts/fraunces-normal-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;
}
@font-face {
  font-family: "Fraunces";
  font-style: italic;
  font-weight: 300 400;
  font-display: swap;
  src: url("/assets/fonts/fraunces-italic-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: "Fraunces";
  font-style: italic;
  font-weight: 300 400;
  font-display: swap;
  src: url("/assets/fonts/fraunces-italic-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;
}
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 400 600;
  font-stretch: 100%;
  font-display: swap;
  src: url("/assets/fonts/archivo-normal-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: "Archivo";
  font-style: normal;
  font-weight: 400 600;
  font-stretch: 100%;
  font-display: swap;
  src: url("/assets/fonts/archivo-normal-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;
}

/* ---------- Tokens ---------- */

:root {
  /* grounds */
  --ground:     #F6F3EA;                    /* default page ground — ivory */
  --ground-2:   #EAE5D6;                    /* alternate ground: the fees band */
  --ground-94:  rgba(246, 243, 234, .94);   /* sticky nav, blurred */

  /* ink on light grounds */
  --ink:        #1B1A14;
  --ink-72:     rgba(27, 26, 20, .72);      /* body copy */
  --ink-45:     rgba(27, 26, 20, .52);      /* labels, captions, footer */
  --rule:       rgba(27, 26, 20, .18);      /* 1px dividers, image borders */

  /* dark blocks — Approche and Contact sections */
  --block:      #17251D;                    /* deep forest green, NOT black */
  --onink:      #EFEDE2;
  --onink-76:   rgba(239, 237, 226, .76);
  --onink-45:   rgba(239, 237, 226, .5);
  --rule-ink:   rgba(239, 237, 226, .2);

  /* accent — brass. --accent on light grounds only; --accent-soft on the
     forest blocks only. The two values are deliberate: do not collapse them. */
  --accent:      #8A6A26;
  --accent-soft: #C4A65C;
  --on-accent:   #F6F3EA;

  /* primary button */
  --btn-bg:    #17251D;   /* client feedback 2026-09-09: match the forest blocks */
  --btn-fg:    #F6F3EA;
  --btn-hover: #8A6A26;
}

/* ---------- Base ---------- */

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: "Archivo", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding-inline: clamp(20px, 5vw, 64px);
}

/* Sticky nav is ~92px tall; keep anchored headings clear of it. */
section[id] {
  scroll-margin-top: 108px;
}

.frame {
  position: relative;
  border: 1px solid var(--rule);
}
.frame--45 { aspect-ratio: 4 / 5; }
.frame--11 { aspect-ratio: 1 / 1; }
.frame--169 { aspect-ratio: 16 / 9; overflow: hidden; }

.kicker {
  font-size: 11.5px;
  letter-spacing: .22em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--accent);
}

.section {
  padding: clamp(68px, 9vw, 110px) 0;
}
.section--rule {
  border-bottom: 1px solid var(--rule);
}

.section-ink {
  background: var(--block);
  color: var(--onink);
}
.section-ink .kicker {
  color: var(--accent-soft);
}

.two-col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.section-title {
  font-family: "Fraunces", serif;
  font-weight: 400;
  font-size: clamp(26px, 3.8vw, 40px);
  line-height: 1.16;
  margin: 16px 0 20px;
}

.body-copy {
  margin: 0;
  color: var(--ink-72);
  max-width: 52ch;
  text-wrap: pretty;
}
.body-copy + .body-copy {
  margin-top: 1.05em;
}
.body-copy--wide {
  max-width: none;
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%; /* the one intentional round shape in the design */
  background: var(--accent);
  flex: none;
}

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

.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--ground-94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rule);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 18px;
}

/* Client feedback 2026-08-22: single aligned name line, two matching sublines. */
.wordmark {
  text-decoration: none;
  line-height: 1.3;
}
.wordmark span {
  display: block;
}
.wordmark-name {
  font-family: "Fraunces", serif;
  font-weight: 400;
  font-size: 19px;
  letter-spacing: .02em;
  margin-bottom: 3px;
}
.wordmark-sub {
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink-45);
  font-weight: 600;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 13px;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 500;
}
.nav-link {
  text-decoration: none;
  color: var(--ink-72);
}
.nav-link:hover {
  color: var(--ink);
}
.nav-phone {
  font-family: "Fraunces", serif;
  font-size: 17px;
  text-decoration: none;
  white-space: nowrap;
  text-transform: none;
  letter-spacing: 0;
}

/* Language switch (FR ⇄ EN) — stays visible at every width. */
.nav-lang {
  color: var(--ink-72);
  text-decoration: none;
  padding-left: 22px;
  border-left: 1px solid var(--rule);
}
.nav-lang:hover {
  color: var(--accent);
}

/* Narrow-screen treatment (not designed in the prototype — flagged to client):
   below 860px the anchor links drop and the nav collapses to wordmark + phone.
   The page is a single scroll, and the sticky call bar covers the key action. */
@media (max-width: 859.98px) {
  .nav-link {
    display: none;
  }
  /* Client feedback 2026-09-09: slimmer bar on phones. */
  .nav-inner {
    padding-block: 11px;
    gap: 16px;
  }
  .wordmark-name {
    font-size: 16.5px;
    margin-bottom: 2px;
  }
  .wordmark-sub {
    font-size: 9px;
    letter-spacing: .16em;
    line-height: 1.25;
  }
  .nav-phone {
    font-size: 15.5px;
  }
  /* Push phone + language switch to the right, next to the burger. */
  .nav-links {
    margin-left: auto;
    gap: 18px;
  }
  .nav-lang {
    padding-left: 18px;
  }
}

/* Mobile menu — client feedback 2026-09-09: the anchor links were gone below
   860px; a hamburger restores them. No JavaScript (the deploy's CSP is
   script-src 'none'), so it runs on :target — the burger links to #menu, an
   invisible fixed anchor inside the nav (fixed, so targeting it never
   scrolls). Tapping any section link changes the fragment, which closes the
   panel on its own; the × links to a fragment that matches nothing. */
.nav-menu-target {
  position: fixed;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
}
.nav-burger,
.nav-panel {
  display: none;
}

@media (max-width: 859.98px) {
  .nav-burger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-right: -12px; /* optical: bars align with the container edge */
    flex: none;
  }
  .nav-burger-bars,
  .nav-burger-bars::before,
  .nav-burger-bars::after {
    display: block;
    width: 18px;
    height: 1px;
    background: var(--ink);
  }
  .nav-burger-bars {
    position: relative;
  }
  .nav-burger-bars::before,
  .nav-burger-bars::after {
    content: "";
    position: absolute;
    left: 0;
  }
  .nav-burger-bars::before { top: -5px; }
  .nav-burger-bars::after  { top: 5px; }

  .nav-burger-bars--x {
    background: transparent;
  }
  .nav-burger-bars--x::before { top: 0; transform: rotate(45deg); }
  .nav-burger-bars--x::after  { top: 0; transform: rotate(-45deg); }

  .nav-burger--close {
    display: none;
  }
  .nav-menu-target:target ~ .nav-inner .nav-burger--open  { display: none; }
  .nav-menu-target:target ~ .nav-inner .nav-burger--close { display: inline-flex; }
  .nav-menu-target:target ~ .nav-panel { display: block; }

  .nav-panel {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--ground-94);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--rule);
  }
  .nav-panel-link {
    display: block;
    padding: 18px clamp(20px, 5vw, 64px);
    border-top: 1px solid var(--rule);
    font-size: 13px;
    letter-spacing: .12em;
    text-transform: uppercase;
    font-weight: 500;
    color: var(--ink);
    text-decoration: none;
  }
  .nav-panel-link:hover {
    color: var(--accent);
  }
}

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

.hero {
  padding: clamp(56px, 9vw, 104px) 0 clamp(48px, 7vw, 84px);
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

h1 {
  margin: 0;
  font-family: "Fraunces", serif;
  font-weight: 400;
  font-size: clamp(32px, 5vw, 58px);
  line-height: 1.12;
  letter-spacing: -.012em;
}
.h1-em {
  font-style: italic;
  font-weight: 300;
  color: var(--accent);
}

.deck {
  margin: 26px 0 0;
  font-size: clamp(16.5px, 1.5vw, 18.5px);
  color: var(--ink-72);
  max-width: 46ch;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 22px;
  margin-top: 36px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  text-decoration: none;
  padding: 16px 30px;
  font-size: 16px;
  font-weight: 500;
  min-height: 52px;
  box-sizing: border-box;
  transition: background .2s ease;
}
.btn:hover {
  background: var(--btn-hover);
  color: var(--on-accent);
}

.link-write {
  text-decoration: none;
  font-size: 15.5px;
  color: var(--ink-72);
  border-bottom: 1px solid var(--rule);
  padding-bottom: 2px;
}
.link-write:hover {
  color: var(--ink);
  border-bottom-color: var(--accent);
}

.urgency {
  margin: 26px 0 0;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--ink-45);
}

/* Hero entrance — the only animation on the page. */
.rise {
  opacity: 0;
  transform: translateY(14px);
  animation: rise .7s cubic-bezier(.22, .7, .3, 1) forwards;
}
.rise--delay {
  animation-delay: .08s;
}
@keyframes rise {
  to {
    opacity: 1;
    transform: none;
  }
}

/* Missing in the prototype — required in the build. */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .rise,
  .rise--delay {
    animation: none;
    opacity: 1;
    transform: none;
  }
  .btn {
    transition: none;
  }
}

/* ---------- Approche ---------- */

.approche {
  padding: clamp(72px, 10vw, 120px) 0;
}

.approche-statement {
  font-family: "Fraunces", serif;
  font-weight: 300;
  font-size: clamp(26px, 4.4vw, 44px);
  line-height: 1.26;
  max-width: 22ch;
  margin: 24px 0 0;
}
.approche-statement em {
  color: var(--accent-soft);
}

.approche-cells {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  border-top: 1px solid var(--rule-ink);
  margin-top: clamp(44px, 6vw, 72px);
}

.approche-cell {
  padding: 34px 34px 0 0;
}
.approche-cell + .approche-cell {
  border-left: 1px solid var(--rule-ink);
  padding: 34px 0 0 34px;
}

/* Client feedback 2026-09-05: when the cells stack (grid drops to one column
   below a 600px container, i.e. viewport <= 666px with the container padding),
   the second cell's left rule and indent made "Lucide" read as a subsection of
   "Loyale". Stacked, both cells sit flush left with a rule between them. */
@media (max-width: 666.5px) {
  .approche-cell {
    padding-right: 0;
  }
  .approche-cell + .approche-cell {
    border-left: 0;
    border-top: 1px solid var(--rule-ink);
    margin-top: 34px;
    padding-left: 0;
  }
}

.approche-cell h3 {
  margin: 0 0 10px;
  font-family: "Fraunces", serif;
  font-weight: 400;
  font-size: clamp(21px, 2.6vw, 27px);
}
.approche-cell h3 em {
  color: var(--accent-soft);
}
.approche-cell p {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.62;
  color: var(--onink-76);
  max-width: 40ch;
}

/* Client feedback 2026-08-22: light rule dividing the closer from the cells. */
.approche-closer {
  margin: clamp(36px, 5vw, 56px) 0 0;
  border-top: 1px solid var(--rule-ink);
  padding-top: clamp(28px, 4vw, 40px);
  font-size: 15.5px;
  line-height: 1.62;
  color: var(--onink-76);
  max-width: 58ch;
}

/* ---------- Champs de pratique ---------- */

.pratique-intro {
  max-width: 68ch;
  margin-bottom: clamp(32px, 4vw, 52px);
}

.pratique-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--rule);
}
.pratique-list li {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 20px;
  align-items: baseline;
  padding: 20px 0;
  border-bottom: 1px solid var(--rule);
}
.pratique-num {
  font-family: "Fraunces", serif;
  font-weight: 300;
  font-size: 14px;
  color: var(--accent);
  letter-spacing: .04em;
}
.pratique-label {
  font-family: "Fraunces", serif;
  font-size: clamp(19px, 2.3vw, 24px);
  font-weight: 400;
  line-height: 1.35;
  text-wrap: balance;
}

.pratique-closer {
  margin: 26px 0 0;
  font-size: 15px;
  color: var(--ink-72);
  max-width: 76ch;
}

/* ---------- Fees ---------- */

.fees {
  background: var(--ground-2);
  padding: clamp(52px, 7vw, 80px) 0;
  border-bottom: 1px solid var(--rule);
}

.fees-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: clamp(24px, 4vw, 56px);
}

.fee {
  border-top: 1.5px solid var(--ink); /* the one heavier rule in the design */
  padding-top: 16px;
}
.fee h3 {
  margin: 0 0 7px;
  font-family: "Fraunces", serif;
  font-weight: 500;
  font-size: clamp(18px, 2.1vw, 22px);
}
.fee p {
  margin: 0;
  font-size: 14.5px;
  color: var(--ink-72);
  line-height: 1.58;
}

/* ---------- À propos ---------- */

.facts {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  max-width: 420px;
}
.facts li {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 13px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 15px;
}
.facts-label {
  color: var(--ink-45);
  letter-spacing: .04em;
}
.facts-value {
  font-family: "Fraunces", serif;
  font-size: 16.5px;
  text-align: right;
}

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

.contact {
  padding: clamp(76px, 10vw, 124px) 0;
}

.contact h2 {
  font-family: "Fraunces", serif;
  font-weight: 300;
  font-size: clamp(28px, 4.6vw, 46px);
  line-height: 1.22;
  max-width: 22ch;
  margin: 22px 0 18px;
}
.contact h2 em {
  color: var(--accent-soft);
}

.contact-urgency {
  margin: 0 0 44px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  color: var(--onink-76);
}
.contact-urgency .dot {
  background: var(--accent-soft);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: clamp(32px, 5vw, 64px);
  border-top: 1px solid var(--rule-ink);
  padding-top: 40px;
}

.contact-block + .contact-block {
  margin-top: 32px;
}

.field-label {
  margin: 0 0 9px;
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--onink-45);
  font-weight: 600;
}

.contact-tel {
  font-family: "Fraunces", serif;
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 400;
  text-decoration: none;
  line-height: 1.15;
  display: inline-block;
  color: var(--onink);
}
.contact-tel:hover {
  color: var(--accent-soft);
}

.contact-mail {
  font-family: "Fraunces", serif;
  font-size: clamp(18px, 2.2vw, 23px);
  text-decoration: none;
  border-bottom: 1px solid var(--rule-ink);
  color: var(--onink);
}
.contact-mail:hover {
  color: var(--accent-soft);
}

.contact-text {
  margin: 0;
  color: var(--onink-76);
  font-size: 15.5px;
  line-height: 1.6;
}

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

.footer {
  padding: 40px 0;
  font-size: 12.5px;
  color: var(--ink-45);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 28px;
}
.footer a {
  text-decoration: none;
}
.footer a:hover {
  color: var(--ink);
}

/* ---------- Sticky call bar (mobile) ---------- */

.sticky-call {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  display: none;
  z-index: 50;
  background: var(--btn-bg);
  color: var(--btn-fg);
  text-decoration: none;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 60px;
  font-size: 16.5px;
  font-weight: 500;
  padding-bottom: env(safe-area-inset-bottom);
  border-top: 1px solid var(--rule-ink);
}

@media (max-width: 760px) {
  .sticky-call {
    display: flex;
  }
  /* Only here does the footer need extra bottom room to clear the call bar;
     on wider screens that room was empty space (client feedback 2026-10-07). */
  .footer {
    padding-bottom: 120px;
  }
  /* Client feedback 2026-09-09: the bar below carries the number, so the top
     bar drops it here — wordmark left, burger right. Between 760 and 860px
     there is no call bar, so the phone stays in the top bar there. */
  .nav-phone {
    display: none;
  }
  .nav-lang {
    padding-left: 0;
    border-left: 0;
  }
}

/* ---------- 404 ---------- */

.notfound {
  min-height: 70vh;
  display: flex;
  align-items: center;
}
.notfound h1 {
  margin-bottom: 20px;
}
.notfound p {
  margin: 0 0 8px;
}

/* ---------- Easter egg: /#trojans ----------
   Invisible unless the URL fragment is #trojans. The anchor is the first child
   of <body>, fixed and zero-size (targeting it never scrolls); on :target the
   sibling selector re-tints the accent tokens for the whole page — purple on the
   light grounds, yellow on the forest blocks. Any nav link changes the fragment
   and puts everything back. No JS. */
.egg-target {
  position: fixed;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
}
#trojans:target ~ * {
  --accent: #5B2C83;       /* 8.9:1 on ivory */
  --accent-soft: #F2C94C;  /* 10:1 on forest */
  --btn-hover: #5B2C83;
}
/* Footer mark: the Trojans helmet (black and white, as supplied) stands in for the © (client's wish, 2026-10-07).
   Always shown; alt="©" keeps the notice readable by screen readers. */
.copy-logo {
  display: inline-block;
  width: 1.5em;
  height: 1.5em;
  vertical-align: -0.45em;
}
