/* ---------- Police : EB Garamond (hébergée sur le site, aucun appel à Google Fonts) ---------- */
@font-face { font-family: "EB Garamond"; src: url("fonts/eb-garamond-latin-wght-normal.woff2") format("woff2"); font-weight: 400 800; font-style: normal; font-display: swap; }
@font-face { font-family: "EB Garamond"; src: url("fonts/eb-garamond-latin-wght-italic.woff2") format("woff2"); font-weight: 400 800; font-style: italic; font-display: swap; }

/* ---------- Couleurs : modifier ici pour changer l'ambiance ---------- */
:root {
  --paper: #F7F3EC;      /* fond crème */
  --tint: #EFE8DD;       /* fond des sections alternées */
  --ink: #1F2523;        /* texte */
  --muted: #5B625F;      /* texte secondaire */
  --line: #D9D0C2;       /* filets */
  --accent: #B5583B;     /* terracotta (logo) */
  --accent-dark: #93452D;
  --deep: #1C3330;       /* vert profond (pied de page) */

  --serif: "EB Garamond", Garamond, Georgia, "Times New Roman", serif;
  --sans: "EB Garamond", Garamond, Georgia, serif;
  --wrap: 1160px;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.2rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
p { margin: 0 0 1em; }

h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.15; margin: 0 0 .6em; letter-spacing: -0.01em; }
h1 { font-size: clamp(3rem, 7vw, 5.6rem); font-weight: 400; letter-spacing: -0.025em; }
h2 { font-size: clamp(2rem, 3.6vw, 2.9rem); }
h3 { font-size: 1.45rem; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }

.eyebrow {
  font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 1rem;
}
.lead { font-size: 1.2rem; line-height: 1.65; }

.sr-only, .skip:not(:focus) {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.skip:focus { position: fixed; top: 8px; left: 8px; z-index: 100; background: #fff; padding: 8px 14px; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font: 600 .98rem/1 var(--sans); letter-spacing: .01em;
  padding: .95em 1.5em; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; text-decoration: none; transition: background-color .2s, color .2s, border-color .2s;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); }
.btn:focus-visible, a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.link-arrow { font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--line); padding-bottom: 2px; }
.link-arrow::after { content: " →"; }
.link-arrow:hover { border-color: var(--ink); }

/* ---------- En-tête ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 243, 236, .92);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent; transition: border-color .2s;
}
.site-header.scrolled { border-color: var(--line); }
.header-inner { height: var(--header-h); display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.brand img { border-radius: 50%; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-name { font-family: var(--serif); font-size: 1.25rem; }
.brand-role { font-size: .8rem; color: var(--muted); }

.menu { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.menu a { display: block; padding: 8px 12px; text-decoration: none; font-size: .95rem; color: var(--muted); border-radius: 6px; }
.menu a:hover { color: var(--ink); }
.menu a.active { color: var(--ink); }
.header-rdv { padding: .75em 1.25em; font-size: .92rem; }
.nav-toggle { display: none; }

/* ---------- Accueil ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  min-height: calc(100vh - var(--header-h));
  min-height: calc(100svh - var(--header-h));
  display: flex; align-items: center;
  padding: 64px 0;
}
/* Pastel en fond : glisse plus lentement que la page au défilement (voir script.js) */
.hero-bg {
  position: absolute; inset: -10% 0 0 0; z-index: -1;
  background:
    linear-gradient(rgba(247, 243, 236, .30), rgba(247, 243, 236, .30)),
    url("images/texture.jpg") center / cover no-repeat;
  will-change: transform;
}
.hero .wrap { width: 100%; }
.hero-text { will-change: transform, opacity; }
.hero .eyebrow { color: var(--ink); }
.eyebrow sup { text-transform: lowercase; font-size: .7em; }
.hero .hero-lede, .hero .hero-meta { color: var(--ink); }
.hero .hero-meta { border-top-color: rgba(31, 37, 35, .3); }
.hero .link-arrow { border-bottom-color: rgba(31, 37, 35, .4); }
.hero-grid { display: block; }
.hero-text { max-width: 760px; }
.hero-lede { font-family: var(--serif); font-style: italic; font-size: clamp(1.3rem, 2vw, 1.6rem); line-height: 1.45; color: var(--muted); max-width: 38ch; margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; margin-bottom: 2.5rem; }
.hero-meta { font-size: .92rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 1.2rem; max-width: 34ch; }
.hero-photo { margin: 0; }
.hero-photo img { width: 100%; aspect-ratio: 4 / 5; max-height: calc(100vh - var(--header-h) - 110px); min-height: 420px; object-fit: cover; object-position: center 70%; border-radius: 4px; }

/* ---------- Sections ---------- */
.section { padding: 104px 0; }
.section-tint { background: var(--tint); }
.section-head { max-width: 640px; margin-bottom: 56px; }

.split { display: grid; grid-template-columns: 5fr 7fr; gap: 72px; align-items: start; }
.split-text { grid-template-columns: 7fr 5fr; }
.split-contact { grid-template-columns: 1fr 1fr; align-items: stretch; }

.portrait { margin: 0; position: sticky; top: calc(var(--header-h) + 32px); }
.portrait img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 30%; border-radius: 4px; }

.cv-title { margin-top: 3rem; }
.cv { margin: 1.5rem 0 0; border-top: 1px solid var(--line); }
.cv > div { padding: 1.4rem 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 200px 1fr; gap: 8px 32px; }
.cv dt { font-weight: 600; font-size: .95rem; grid-row: span 3; }
.cv dd { margin: 0 0 .5em; color: var(--muted); font-size: .98rem; grid-column: 2; }

.quote { margin: 2.5rem 0; padding: 0 0 0 28px; border-left: 2px solid var(--accent); }
.quote p { font-family: var(--serif); font-style: italic; font-size: clamp(1.4rem, 2.4vw, 1.8rem); line-height: 1.4; margin: 0; }

.publics { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 64px; }
.public { padding: 2rem 0 2.4rem; border-top: 1px solid var(--line); }
.public-tag { font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: .6rem; }
.public p:last-child { color: var(--muted); margin: 0; }

.practical { background: var(--paper); padding: 36px; border-radius: 4px; }
.practical ul { list-style: none; margin: 0 0 1.5rem; padding: 0; }
.practical li { padding: .9rem 0 .9rem 1.6rem; border-bottom: 1px solid var(--line); position: relative; font-size: .98rem; }
.practical li::before { content: ""; position: absolute; left: 0; top: 1.55rem; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.fee { font-family: var(--serif); font-style: italic; font-size: 1.2rem; line-height: 1.45; margin-bottom: 1.6rem; }

.access { margin: 2rem 0 2.4rem; }
.access > div { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: .7rem 0; border-bottom: 1px solid var(--line); }
.access dt { font-weight: 600; font-size: .92rem; }
.access dd { margin: 0; color: var(--muted); }
.map { min-height: 380px; border-radius: 4px; overflow: hidden; background: var(--tint); }
.map iframe { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; filter: grayscale(.35); }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--deep); color: #DCE5E2; padding: 56px 0 28px; font-size: .95rem; }
.footer-inner { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.footer-name { font-family: var(--serif); font-size: 1.5rem; color: #fff; }
.site-footer p { margin: 0 0 .3em; }
.footer-links { list-style: none; margin: 0; padding: 0; text-align: right; }
.footer-links a { text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.25); }
.footer-links a:hover { border-color: #fff; }
.footer-links li + li { margin-top: .4em; }
.footer-legal { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); font-size: .85rem; color: #9FB0AC; }

/* ---------- Fenêtre rendez-vous ---------- */
.rdv {
  width: min(440px, calc(100% - 32px)); border: 0; border-radius: 6px; padding: 40px 36px 32px;
  background: var(--paper); color: var(--ink); text-align: center;
  box-shadow: 0 30px 80px rgba(20, 30, 28, .25);
}
.rdv::backdrop { background: rgba(28, 51, 48, .45); }
.rdv[open] { animation: rdv-in .22s ease-out; }
@keyframes rdv-in { from { opacity: 0; transform: translateY(8px); } }
.rdv h2 { font-size: 2rem; }
.rdv-number { display: block; font-family: var(--serif); font-size: clamp(2rem, 8vw, 2.6rem); text-decoration: none; letter-spacing: .02em; margin: .2rem 0 1.4rem; white-space: nowrap; }
.rdv-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 1.4rem; }
.rdv-note { font-size: .88rem; color: var(--muted); margin: 0; }
.rdv-close-form { position: absolute; top: 10px; right: 10px; margin: 0; }
.rdv-close { background: none; border: 0; font-size: 1.8rem; line-height: 1; padding: 6px 10px; cursor: pointer; color: var(--muted); }

.mobile-cta { display: none; }

/* ---------- Tablette ---------- */
@media (max-width: 1020px) {
  .menu a { padding: 8px 8px; font-size: .9rem; }
  .brand-role { display: none; }
}

/* ---------- Mobile ---------- */
@media (max-width: 860px) {
  :root { --header-h: 64px; }
  .header-rdv { display: none; }
  .nav-toggle {
    display: flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; background: none; border: 0; cursor: pointer;
  }
  .bars, .bars::before, .bars::after { display: block; width: 22px; height: 2px; background: var(--ink); position: relative; transition: transform .2s; }
  .bars::before, .bars::after { content: ""; position: absolute; left: 0; }
  .bars::before { top: -7px; } .bars::after { top: 7px; }
  .nav-toggle[aria-expanded="true"] .bars { background: transparent; }
  .nav-toggle[aria-expanded="true"] .bars::before { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .bars::after { transform: translateY(-7px) rotate(-45deg); }
  .menu {
    position: absolute; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; gap: 0; padding: 8px 24px 20px;
    background: var(--paper); border-bottom: 1px solid var(--line);
    display: none;
  }
  .menu.open { display: flex; }
  .menu a { padding: 14px 0; font-size: 1.05rem; color: var(--ink); border-bottom: 1px solid var(--line); border-radius: 0; }

  .hero { padding: 48px 0; }
  .hero-grid, .split, .split-text, .split-contact { grid-template-columns: 1fr; gap: 40px; }
  .hero-photo { order: -1; }
  .hero-photo img { aspect-ratio: 4 / 3; min-height: 0; max-height: none; }
  .portrait { position: static; max-width: 420px; }
  .portrait img { aspect-ratio: 1 / 1; }
  .section { padding: 72px 0; }
  .publics { grid-template-columns: 1fr; }
  .cv > div { grid-template-columns: 1fr; }
  .cv dt { grid-row: auto; } .cv dd { grid-column: 1; }
  .practical { padding: 28px 22px; }
  .footer-links { text-align: left; }

  .mobile-cta {
    display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: rgba(247, 243, 236, .95); border-top: 1px solid var(--line);
    transform: translateY(110%); transition: transform .25s;
  }
  .mobile-cta.visible { transform: none; }
  .mobile-cta .btn { width: 100%; }
  .site-footer { padding-bottom: 96px; }
}
