/* Doma — feuille de style. Palette et typographie de la fiche de marque. */

@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces.woff2") format("woff2");
  font-weight: 300 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("../fonts/figtree.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --cream: #f5f0e3;
  --cream-2: #ece5d3;
  --card: #f8f4ea;
  --photo: #d8cfba;
  --sage: #6a8e7f;
  --sage-ink: #4f6f62;
  --ink: #2e3d36;
  --ink-2: #1f2a25;
  --clay: #d47c4a;
  --line: rgba(46, 61, 54, 0.22);
  --muted-on-dark: #d6d0c0;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --jp: "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif JP", serif;
  --wrap: 1200px;
  --gutter: clamp(20px, 5vw, 56px);
  --section: clamp(72px, 9vw, 128px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
p, ul, ol, dl, dd, blockquote, figure, h1, h2, h3 { margin: 0; }
[lang="ja"] { font-family: var(--jp); font-weight: 400; }

/* Liens et focus */
a { color: inherit; }
:focus-visible { outline: 3px solid var(--clay); outline-offset: 3px; border-radius: 4px; }
.skip {
  position: absolute; left: 16px; top: -60px; z-index: 50;
  background: var(--ink); color: var(--cream); padding: 10px 16px; border-radius: 999px;
  text-decoration: none; font-weight: 600;
}
.skip:focus { top: 12px; }

/* Mise en page */
.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.section { padding: var(--section) 0; }
.section--alt { background: var(--cream-2); }
.section--sage { background: var(--sage); color: var(--cream); }
.stack { display: flex; flex-direction: column; gap: 18px; }
.stack-lg { display: flex; flex-direction: column; gap: clamp(36px, 5vw, 60px); }
.prose { max-width: 36em; display: flex; flex-direction: column; gap: 18px; }
.prose p { font-size: 18px; }
.head-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; }
.head-row > .stack { max-width: 680px; }

/* Typographie */
.t {
  font-family: var(--serif);
  font-weight: 360;
  font-variation-settings: "SOFT" 100;
  font-optical-sizing: auto;
  letter-spacing: -0.012em;
  line-height: 1.08;
  color: inherit;
}
.t-hero { font-size: clamp(44px, 6vw, 82px); }
.t-h1 { font-size: clamp(40px, 5.2vw, 70px); }
.t-h2 { font-size: clamp(32px, 3.5vw, 48px); }
.t-h3 { font-size: clamp(23px, 2vw, 27px); line-height: 1.2; font-weight: 380; }
.t-lead { font-size: clamp(24px, 2.2vw, 30px); line-height: 1.38; font-weight: 340; }
.t-num { font-size: 20px; font-weight: 450; color: var(--sage-ink); }
.eyebrow {
  font-family: var(--sans); font-size: 13px; font-weight: 600; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--sage-ink); line-height: 1.4;
}
.intro { font-size: 19px; line-height: 1.62; max-width: 32em; }
.note { font-size: 15px; line-height: 1.5; color: var(--sage-ink); display: flex; align-items: center; gap: 10px; }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--clay); flex-shrink: 0; }
.label { display: flex; align-items: center; gap: 10px; }

/* Boutons et liens */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 26px; border-radius: 999px;
  font-family: var(--sans); font-size: 16px; font-weight: 600; line-height: 1.2;
  text-decoration: none; border: 1.5px solid transparent;
  transition: background-color .2s, color .2s, border-color .2s;
  cursor: pointer;
}
.btn svg { width: 20px; height: 20px; }
.btn-dark { background: var(--ink); color: var(--cream); }
.btn-dark:hover { background: var(--ink-2); }
.btn-ghost { border-color: var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--cream); }
.btn-cream { background: var(--cream); color: var(--ink); }
.btn-cream:hover { background: #fff; }
.btn-line-cream { border-color: rgba(245, 240, 227, 0.55); color: var(--cream); }
.btn-line-cream:hover { border-color: var(--cream); }
.btns { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.textlink {
  font-weight: 600; text-decoration: underline; text-decoration-color: var(--clay);
  text-decoration-thickness: 2px; text-underline-offset: 6px;
}
.textlink:hover { color: var(--sage-ink); }

/* En-tête */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(245, 240, 227, 0.96);
  border-bottom: 1px solid rgba(46, 61, 54, 0.14);
}
@supports (backdrop-filter: blur(8px)) {
  .site-header { background: rgba(245, 240, 227, 0.88); backdrop-filter: blur(8px); }
}
.header-row { display: flex; align-items: center; gap: 28px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.brand-disc { width: 46px; height: 46px; }
.brand-word { width: 90px; height: 33px; }
.nav { display: flex; align-items: center; gap: 28px; font-size: 15.5px; font-weight: 500; }
.nav a { text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--clay); }
.header-cta { min-height: 46px; padding: 0 22px; font-size: 15px; }
.menu-btn {
  display: none; width: 48px; height: 48px; align-items: center; justify-content: center;
  border: 1.5px solid var(--ink); border-radius: 50%; background: transparent; color: var(--ink); cursor: pointer;
}
.menu-btn svg { width: 22px; height: 22px; }

@media (max-width: 1020px) {
  .menu-btn { display: inline-flex; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--cream); border-bottom: 1px solid rgba(46, 61, 54, 0.14);
    padding: 8px var(--gutter) 24px; font-size: 18px;
  }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--line); color: var(--sage-ink); }
  .site-header.is-open .nav { display: flex; }
  .nav a.nav-cta { display: flex; justify-content: center; margin-top: 18px; padding: 14px 22px; border: 0; border-radius: 999px; background: var(--ink); color: var(--cream); font-weight: 600; font-size: 16px; }
  .nav a.nav-cta:hover { color: var(--cream); background: var(--ink-2); }
}
@media (min-width: 1021px) { .nav .nav-cta { display: none; } }
@media (max-width: 600px) { .header-cta { display: none; } }

/* Accueil : haut de page */
.hero { padding: clamp(48px, 7vw, 104px) 0 clamp(64px, 8vw, 120px); }
.hero-row { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(40px, 6vw, 96px); }
.hero-text { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.hero-symbol { flex: 0 1 400px; max-width: 400px; width: 100%; margin: 0 auto; }
.hero-symbol svg { width: 100%; height: auto; overflow: visible; }
@media (max-width: 600px) { .hero-symbol { max-width: 240px; } }

.hero-anim .disc { transform-origin: 250px 250px; animation: domaDisc .55s cubic-bezier(.2,.8,.2,1) both; }
.hero-anim .guide { fill: none; stroke: #fff; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.hero-anim .g3 { animation: domaDraw .7s ease-in-out .55s both; }
.hero-anim .g2 { animation: domaDraw .5s ease-in-out 1.3s both; }
.hero-anim .g1 { animation: domaDraw .6s ease-in-out 1.8s both; }
.hero-anim .ball { animation: domaBall 1s linear 2.45s both; }
@keyframes domaDisc { from { transform: scale(.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes domaDraw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes domaBall {
  0% { transform: translateY(-170px); opacity: 0; animation-timing-function: ease-in; }
  12% { opacity: 1; }
  55% { transform: translateY(0); animation-timing-function: ease-out; }
  70% { transform: translateY(-24px); animation-timing-function: ease-in; }
  83% { transform: translateY(0); animation-timing-function: ease-out; }
  92% { transform: translateY(-7px); animation-timing-function: ease-in; }
  100% { transform: translateY(0); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-anim .disc, .hero-anim .guide, .hero-anim .ball { animation: none !important; }
  .btn { transition: none; }
}

/* Bande « Doma, 土間 » */
.name-row { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(40px, 7vw, 112px); }
.name-symbol { flex: 0 1 280px; display: flex; justify-content: center; }
.name-symbol svg { width: 100%; max-width: 260px; height: auto; }
.name-text { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.name-text .t-lead { max-width: 26em; }

/* Trois temps */
.steps { display: flex; flex-wrap: wrap; gap: clamp(28px, 4vw, 56px); list-style: none; padding: 0; }
.step { flex: 1 1 260px; min-width: 0; border-top: 1.5px solid var(--ink); padding-top: 26px; display: flex; flex-direction: column; gap: 14px; }

/* Cartes des techniques (accueil) */
.cards { display: flex; flex-wrap: wrap; gap: 20px; list-style: none; padding: 0; }
.card {
  flex: 1 1 300px; min-width: 0; background: var(--card); border-radius: 22px; padding: 30px;
  display: flex; flex-direction: column; gap: 14px;
}
.card p { font-size: 16.5px; line-height: 1.62; }

/* Listes à lignes (publics) */
.rows { list-style: none; padding: 0; border-bottom: 1px solid var(--line); }
.rows li { border-top: 1px solid var(--line); padding: 28px 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px 40px; }
.rows .t-h3 { flex: 0 1 360px; }
.rows p { flex: 1 1 380px; }

/* Portrait */
.person-row { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(40px, 6vw, 96px); }
.portrait { flex: 0 1 400px; min-width: 0; width: 100%; }
.portrait img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 28px; background: var(--photo); }
.person-text { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 26px; }
.quote { max-width: 24em; }

/* Infos pratiques et encadré rendez-vous */
.info-row { display: flex; flex-wrap: wrap; align-items: stretch; gap: clamp(32px, 5vw, 64px); }
.info-main { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 36px; }
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px 40px; }
.info-grid h3 { font-family: var(--sans); font-size: 15px; font-weight: 600; }
.info-grid > div { display: flex; flex-direction: column; gap: 8px; }
.info-grid .textlink { font-size: 15px; align-self: flex-start; }
.cta-card {
  flex: 1 1 380px; min-width: 0; background: var(--ink); color: var(--cream); border-radius: 28px;
  padding: clamp(32px, 4vw, 52px); display: flex; flex-direction: column; justify-content: center; gap: 22px;
}
.cta-card p { font-size: 18px; max-width: 26em; }
.cta-card .mail { color: var(--cream); text-decoration: none; }
.cta-card .mail:hover { text-decoration: underline; text-decoration-color: var(--clay); text-underline-offset: 5px; }

/* Pages intérieures */
.page-head { padding: clamp(48px, 7vw, 96px) 0 clamp(40px, 5vw, 64px); }
.page-head .stack { gap: 24px; max-width: 820px; }
.split { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 24px clamp(40px, 6vw, 96px); align-items: start; }
.split + .split { margin-top: clamp(48px, 6vw, 80px); padding-top: clamp(48px, 6vw, 80px); border-top: 1px solid var(--line); }
@media (max-width: 820px) { .split { grid-template-columns: minmax(0, 1fr); } }
.split .prose p { font-size: 18px; }
.split blockquote { margin-bottom: 8px; }

.facts { border-top: 1px solid var(--line); }
.facts > div { display: grid; grid-template-columns: minmax(120px, 1fr) minmax(0, 2fr); gap: 8px 24px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.facts dt { font-weight: 600; }
.facts dd a { text-decoration: none; }
.facts dd a:hover { text-decoration: underline; text-decoration-color: var(--clay); text-underline-offset: 5px; }

/* Questions fréquentes */
.faq { border-top: 1px solid var(--line); max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 24px 48px 24px 0; position: relative;
  font-family: var(--serif); font-variation-settings: "SOFT" 100; font-weight: 380;
  font-size: clamp(20px, 1.8vw, 24px); line-height: 1.3;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 14px; height: 14px; margin-top: -7px;
  background:
    linear-gradient(var(--ink), var(--ink)) center / 14px 2px no-repeat,
    linear-gradient(var(--ink), var(--ink)) center / 2px 14px no-repeat;
  transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .answer { padding: 0 0 26px; max-width: 40em; font-size: 17.5px; }
@media (prefers-reduced-motion: reduce) { .faq summary::after { transition: none; } }

/* Pied de page */
.foot-top { background: var(--sage); color: var(--cream); padding: clamp(56px, 7vw, 88px) 0; }
.foot-top .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 40px; }
.foot-logo { display: flex; align-items: center; gap: 36px; }
.foot-logo .k { width: 120px; height: 100px; }
.foot-logo .w { width: 218px; height: 80px; }
@media (max-width: 480px) {
  .foot-logo { gap: 22px; }
  .foot-logo .k { width: 84px; height: 70px; }
  .foot-logo .w { width: 152px; height: 56px; }
}
.foot-bottom { background: var(--ink); color: var(--cream); padding: 48px 0 40px; font-size: 16px; line-height: 1.7; }
.foot-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px 48px; }
.foot-grid > div, .foot-grid > nav { display: flex; flex-direction: column; }
.foot-grid .h { font-weight: 600; margin-bottom: 6px; }
.foot-bottom a { color: var(--cream); text-decoration: none; }
.foot-bottom a:hover { text-decoration: underline; text-decoration-color: var(--clay); text-underline-offset: 5px; }
.foot-legal {
  margin-top: 40px; border-top: 1px solid rgba(245, 240, 227, 0.2); padding-top: 24px;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--muted-on-dark);
}
.foot-legal a { color: var(--muted-on-dark); }

/* Ajustements après relecture */
.section:not(.section--alt):not(.section--sage) + .cta-sec { padding-top: 0; }
.cta-sec { background: var(--cream); }
@media (max-width: 600px) { .name-symbol { display: none; } }
