/* Osez l'intime — Elodie Brandt-Roch · styles
   Spécification : clients/elodie/design-spec.md */

@font-face {
  font-family: "Inter";
  src: url("fonts/Inter-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Couleurs */
  --cream: #FBF7F3;
  --paper: #FFFDFB;
  --mauve-pale: #F2EBF1;
  --ink: #26191F;
  --muted: #5F5158;
  --wine: #6B1D35;
  --wine-deep: #4F1226;
  --mauve: #8C6A8F;
  --mauve-deep: #6E5172;
  --line: #E7DCDE;
  --white: #FFFFFF;
  --cream-glass: rgba(251, 247, 243, .92);
  --on-dark-accent: #E3C9D6; /* 9.4:1 sur --wine-deep */
  --on-dark-text: #EBDDE3;   /* 11.0:1 */
  --on-dark-muted: #D9C3CD;  /* 8.7:1 */

  /* Polices */
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Espacement */
  --s-1: .5rem;
  --s-2: 1rem;
  --s-3: 1.5rem;
  --s-4: 2rem;
  --s-5: 3rem;
  --gutter: clamp(1.25rem, 5vw, 2.5rem);
  --section-y: clamp(4.5rem, 10vw, 7.5rem);
  --eyebrow-gap: 1.25rem;
  --title-gap: clamp(1.25rem, 2.5vw, 2rem);
  --block-gap: clamp(2.5rem, 5vw, 4rem);
  --card-pad: clamp(1.5rem, 3vw, 2.25rem);
  --header-h: 4rem;
  --hero-top: calc(var(--header-h) + clamp(3.5rem, 11vw, 8rem));

  /* Typo */
  --fs-display: clamp(3.25rem, 10vw, 7rem);
  --fs-h2: clamp(2.25rem, 5vw, 3.5rem);
  --fs-h3: clamp(1.375rem, 2vw, 1.625rem);
  --fs-lede: clamp(1.125rem, 1.6vw, 1.3125rem);
  --fs-body: 1.0625rem;
  --fs-small: .9375rem;
  --fs-label: .8125rem;

  --container: 1120px;
  --narrow: 760px;
  --ease: cubic-bezier(.4, 0, .2, 1);
  --t: 180ms var(--ease);
}

@media (min-width: 860px) {
  :root { --header-h: 4.5rem; }
}

/* === Base === */

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--sans);
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--mauve);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 100;
  padding: .6rem 1.1rem;
  background: var(--wine);
  color: var(--cream);
  border-radius: 999px;
  text-decoration: none;
}
.skip:focus { top: .75rem; }

.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container.narrow { max-width: calc(var(--narrow) + 2 * var(--gutter)); }

section[id] { scroll-margin-top: calc(var(--header-h) + 1rem); }

/* === Typographie === */

.eyebrow {
  display: block;
  font-family: var(--sans);
  font-size: var(--fs-label);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--wine);
  margin-bottom: var(--eyebrow-gap);
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  color: var(--ink);
}

h2, .h2 {
  font-size: var(--fs-h2);
  line-height: 1.02;
  letter-spacing: -.015em;
  max-width: 18ch;
}

h3 {
  font-size: var(--fs-h3);
  line-height: 1.15;
  letter-spacing: -.01em;
}

h1 em, h2 em, .display em {
  font-style: italic;
  color: var(--wine);
}

.lede {
  font-size: var(--fs-lede);
  line-height: 1.55;
  color: var(--muted);
  max-width: 52ch;
  margin-top: var(--title-gap);
}

p { max-width: 62ch; }
p + p { margin-top: var(--s-2); }

.small { font-size: var(--fs-small); line-height: 1.5; color: var(--muted); }

.section-head { margin-bottom: var(--block-gap); }

/* === Boutons === */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-1);
  padding: .95rem 1.6rem;
  border-radius: 999px;
  border: 1.5px solid transparent;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color var(--t), color var(--t), border-color var(--t), transform var(--t);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-sm { padding: .6rem 1.1rem; font-size: var(--fs-small); }

.btn-primary { background: var(--wine); color: var(--cream); }
.btn-primary:hover { background: var(--wine-deep); }

.btn-secondary { background: transparent; color: var(--wine); border-color: var(--wine); }
.btn-secondary:hover { background: var(--wine); color: var(--cream); }

.on-dark .btn-primary { background: var(--cream); color: var(--wine-deep); }
.on-dark .btn-primary:hover { background: var(--white); }
.on-dark .btn-secondary { color: var(--cream); border-color: var(--cream); }
.on-dark .btn-secondary:hover { background: var(--cream); color: var(--wine-deep); }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
}

.link {
  color: var(--wine);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .2em;
  transition: text-decoration-thickness var(--t);
}
.link:hover { text-decoration-thickness: 2px; }

/* === En-tête === */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid transparent;
  transition: background-color var(--t), border-color var(--t), transform 280ms var(--ease);
}
.site-header.is-scrolled {
  background: var(--cream-glass);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--line);
}
.site-header.is-hidden { transform: translateY(-100%); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  text-decoration: none;
  color: var(--ink);
}

.monogram {
  display: inline-grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  flex: none;
  border: 1.5px solid var(--mauve);
  border-radius: 50%;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1rem;
  letter-spacing: -.02em;
  color: var(--wine);
  transition: background-color var(--t), color var(--t), border-color var(--t);
}
.brand:hover .monogram { background: var(--wine); border-color: var(--wine); color: var(--cream); }

.brand-name {
  font-family: var(--serif);
  font-size: 1.25rem;
  line-height: 1;
  letter-spacing: -.01em;
  white-space: nowrap;
}

.nav { display: none; }

.nav a {
  font-size: var(--fs-small);
  font-weight: 500;
  line-height: 1.2;
  color: var(--muted);
  text-decoration: none;
  padding-block: .35rem;
  border-bottom: 1px solid transparent;
  transition: color var(--t), border-color var(--t);
}
.nav a:hover, .nav a[aria-current="true"] { color: var(--ink); border-bottom-color: var(--wine); }

.cta-long { display: none; }

@media (min-width: 860px) {
  .nav { display: flex; gap: var(--s-4); }
  .cta-long { display: inline; }
  .cta-short { display: none; }
}

/* === Accroche === */

.hero {
  padding-top: var(--hero-top);
  padding-bottom: var(--section-y);
  position: relative;
  overflow: hidden;
}

.hero .eyebrow { max-width: 40ch; line-height: 1.5; }

.display {
  display: block;
  font-family: var(--serif);
  font-size: var(--fs-display);
  line-height: .95;
  letter-spacing: -.02em;
  color: var(--ink);
}

.hero .lede { max-width: 46ch; }

.hero .btn-row { margin-top: var(--block-gap); }

.hero-note {
  margin-top: var(--s-3);
  font-size: var(--fs-small);
  color: var(--muted);
}

.hero-mark .ring-a { fill: none; stroke: var(--mauve); stroke-width: 1.25; }
.hero-mark .ring-b { fill: none; stroke: var(--wine); stroke-width: 1.25; }
.hero-mark .lens { fill: var(--mauve-pale); }

.hero-mark {
  position: absolute;
  right: calc(var(--gutter) * -1);
  top: 50%;
  width: min(46vw, 34rem);
  transform: translateY(-42%);
  pointer-events: none;
  display: none;
}

@media (min-width: 1180px) {
  .hero-mark {
    display: block;
    width: min(38vw, 30rem);
    right: max(var(--gutter), calc((100vw - var(--container)) / 2 - 2rem));
  }
}

/* === Sections === */

.section { padding-block: var(--section-y); }
.section-alt { background: var(--mauve-pale); }

/* Deux sections de même fond qui se suivent : pas de double padding. */
.hero + .section:not(.section-alt),
.section:not(.section-alt) + .section:not(.section-alt) { padding-top: 0; }

/* Pour qui */
.situations {
  list-style: none;
  display: grid;
  gap: 0 var(--s-4);
}
.situations li {
  position: relative;
  padding: 1.25rem 0 1.25rem 2rem;
  border-top: 1px solid var(--line);
  font-family: var(--serif);
  font-size: 1.25rem;
  line-height: 1.35;
}
.situations li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--mauve);
}
@media (min-width: 760px) {
  .situations { grid-template-columns: 1fr 1fr; }
}

/* Approche */
.pillars {
  display: grid;
  gap: var(--s-5) var(--s-4);
}
.pillar { border-top: 1px solid var(--line); padding-top: var(--s-3); }
.pillar-num {
  display: block;
  font-family: var(--serif);
  font-style: italic;
  font-size: 2rem;
  line-height: 1;
  color: var(--mauve);
  margin-bottom: var(--s-2);
}
.pillar h3 { margin-bottom: .75rem; }
@media (min-width: 860px) {
  .pillars { grid-template-columns: repeat(3, 1fr); }
}

/* Séances */
.offers {
  display: grid;
  gap: var(--s-3);
}
@media (min-width: 980px) {
  .offers { grid-template-columns: repeat(3, 1fr); gap: var(--s-4); }
}

.card {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  padding: var(--card-pad);
  transition: border-color var(--t), transform var(--t);
}
.card:hover { border-color: var(--wine); transform: translateY(-2px); }

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--s-2);
  margin-bottom: var(--s-2);
}
.card .eyebrow { margin-bottom: 0; }
.card h3 { margin-bottom: var(--s-2); }
.card p { color: var(--muted); }
.card .btn { margin-top: auto; align-self: flex-start; }
.card .chips { margin-bottom: var(--s-2); }
.card-body { margin-bottom: var(--s-4); }

.chips { display: flex; flex-wrap: wrap; gap: var(--s-1); list-style: none; }
.chip {
  display: inline-block;
  padding: .35rem .75rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: var(--fs-label);
  line-height: 1.2;
  color: var(--muted);
  background: var(--paper);
}
.chip-accent { border-color: var(--wine); color: var(--wine); background: transparent; font-weight: 500; }

.offers-note { margin-top: var(--s-4); }

/* Ateliers */
.split {
  display: grid;
  gap: var(--s-5);
  align-items: end;
}
@media (min-width: 860px) {
  .split { grid-template-columns: 1.2fr 1fr; gap: var(--s-5) clamp(3rem, 8vw, 7rem); }
}
.split .btn-row { margin-top: var(--s-4); }

.workshop-list { list-style: none; }
.workshop-list li {
  padding: 1rem 0;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 11.5rem 1fr;
  gap: var(--s-2);
}
@media (max-width: 479px) {
  .workshop-list li { grid-template-columns: 1fr; gap: .15rem; }
}
.workshop-list li:last-child { border-bottom: 1px solid var(--line); }
.workshop-list strong { font-weight: 500; }
.workshop-list span { color: var(--muted); }

/* Étapes */
.steps {
  list-style: none;
  display: grid;
  gap: var(--s-4);
  counter-reset: step;
}
.step { position: relative; padding-left: 4rem; }
.step-num {
  position: absolute;
  left: 0;
  top: -.35rem;
  font-family: var(--serif);
  font-size: 3rem;
  line-height: 1;
  color: var(--mauve);
}
.step h3 { margin-bottom: .5rem; }
.step p { color: var(--muted); }
@media (min-width: 860px) {
  .steps { grid-template-columns: repeat(4, 1fr); gap: var(--s-4); }
  .step { padding-left: 0; padding-top: 5rem; border-top: 1px solid var(--line); }
  .step-num { top: 1.25rem; }
}
.steps + .btn-row { margin-top: var(--block-gap); }

/* Qui je suis */
.about {
  display: grid;
  gap: var(--s-5);
  align-items: center;
}
@media (min-width: 860px) {
  .about { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(3rem, 8vw, 7rem); }
}
.portrait {
  aspect-ratio: 4 / 5;
  max-width: 26rem;
  width: 100%;
  border-radius: 999px 999px 1.25rem 1.25rem;
  background: var(--mauve-pale);
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(4.5rem, 12vw, 7rem);
  letter-spacing: -.03em;
  color: var(--wine);
}
.about .h2 { margin-bottom: var(--title-gap); }
.about-sub {
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--muted);
  margin-bottom: var(--s-3);
}

.todo {
  margin-top: var(--s-3);
  padding: var(--s-2) var(--s-3);
  border: 1.5px dashed var(--mauve);
  border-radius: .75rem;
  font-size: var(--fs-small);
  line-height: 1.5;
  color: var(--mauve-deep);
  max-width: 62ch;
}
.todo-inline {
  padding: .1rem .45rem;
  border: 1.5px dashed var(--mauve);
  border-radius: .4rem;
  color: var(--mauve-deep);
  font-size: .92em;
  white-space: nowrap;
}

/* Cabinet */
.infos {
  display: grid;
  gap: var(--s-4);
}
@media (min-width: 860px) {
  .infos { grid-template-columns: repeat(3, 1fr); }
}
.info { border-top: 1px solid var(--line); padding-top: var(--s-3); }
.info dt { margin-bottom: .75rem; }
.info dd + dd { margin-top: .5rem; }
.info dd { color: var(--muted); max-width: 34ch; }
.info dd strong { color: var(--ink); font-weight: 500; }
.infos + p { margin-top: var(--s-4); }

/* Questions */
.faq { max-width: 52rem; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s-3);
  padding: 1.35rem 0;
  font-family: var(--serif);
  font-size: 1.25rem;
  line-height: 1.3;
  transition: color var(--t);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--wine); }
.faq summary::after {
  content: "+";
  flex: none;
  font-family: var(--sans);
  font-size: 1.5rem;
  font-weight: 300;
  line-height: 1;
  color: var(--wine);
  transition: transform var(--t);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-bottom: 1.5rem; color: var(--muted); }

/* Bandeau final */
.final {
  background: var(--wine-deep);
  color: var(--cream);
  padding-block: var(--section-y);
}
.final .eyebrow { color: var(--on-dark-accent); }
.final .display {
  color: var(--cream);
  font-size: clamp(2.75rem, 7vw, 5rem);
}
.final .display em { color: var(--on-dark-accent); }
.final .lede { color: var(--on-dark-text); }
.final .btn-row { margin-top: var(--block-gap); }
.final .small { color: var(--on-dark-muted); margin-top: var(--s-3); }
.final .small a { color: var(--cream); }

/* === Pied de page === */

.site-footer {
  border-top: 1px solid var(--line);
  padding-block: var(--s-5);
  font-size: var(--fs-small);
  color: var(--muted);
}
.footer-grid {
  display: grid;
  gap: var(--s-4);
}
@media (min-width: 760px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
}
.footer-grid p { line-height: 1.6; }
.footer-grid .brand { margin-bottom: var(--s-2); }
.footer-links { list-style: none; display: grid; gap: .4rem; }
.footer-links a, .footer-grid a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); transition: border-color var(--t); }
.footer-links a:hover, .footer-grid a:hover { border-bottom-color: var(--wine); }
.footer-grid .brand { border-bottom: 0; }
.footer-bottom {
  margin-top: var(--s-5);
  padding-top: var(--s-3);
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--s-1) var(--s-3);
}
.footer-bottom a { color: var(--muted); text-decoration: none; border-bottom: 1px solid var(--line); }
.footer-bottom a:hover { color: var(--ink); border-bottom-color: var(--wine); }

/* === Pages légales et 404 === */

.page-hero { padding-top: var(--hero-top); padding-bottom: var(--s-5); }
.page-hero h1 {
  font-size: var(--fs-h2);
  line-height: 1.02;
  letter-spacing: -.015em;
}
.legal { padding-bottom: var(--section-y); }
.legal h2 {
  font-size: var(--fs-h3);
  line-height: 1.15;
  letter-spacing: -.01em;
  max-width: none;
  margin: var(--s-5) 0 var(--s-2);
}
.legal h2:first-child { margin-top: 0; }
.legal ul { padding-left: 1.25rem; max-width: 62ch; }
.legal li + li { margin-top: .4rem; }
.legal ul + p, .legal p + ul { margin-top: var(--s-2); }
.legal .updated { margin-top: var(--s-5); }

.notfound { min-height: 70vh; padding-top: var(--hero-top); padding-bottom: var(--section-y); }
.notfound .btn-row { margin-top: var(--block-gap); }

/* === Mouvement réduit === */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
  .btn:hover, .card:hover { transform: none; }
}
