/* Hallmark · macrostructure: custom (une heure à soi) · genre: editorial (luxe) · tone: calme · anchor hue: pivoine
 * Hallmark · pre-emit critique: P5 H4 E4 S5 R5 V4 */
/*
  Soixante, institut de beauté (démo). Feuille de style partagée par les 5 pages.
  Idée-force : une heure à soi. La durée passe avant le nom du soin.
  Formes : angles droits, filets de 1px. Graisses 400 / 500 / 600. Texte 16 / 14 / 12px.
  Espacements sur 8px. Mouvement : 300ms max, rare, coupé si l'utilisateur réduit les animations.
*/
:root {
  --paper: #f3f2f1;
  --sheet: #fbfafa;
  --ink: #2a1d2a;
  --muted: #64576a;
  --line: #ddd6dc;
  --field: #857986;
  --accent: #9c2b58;
  --accent-ink: #84224a;
  --on-accent: #fbf5f8;
  --error: #b3261e;
  --font-display: "Cormorant Garamond", "Times New Roman", serif;
  --font-body: "Jost", system-ui, sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #171116;
    --sheet: #211821;
    --ink: #f1e9ef;
    --muted: #b9a9b5;
    --line: #3a2d38;
    --field: #8f7f8b;
    --accent: #e07aa3;
    --accent-ink: #ec93b6;
    --on-accent: #171116;
    --error: #ff8a7a;
  }
}
* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html, body { overflow-x: clip; }
html { scroll-behavior: smooth; }
body { background: var(--paper); color: var(--ink); font: 400 16px/1.7 var(--font-body); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.wrap { width: min(1240px, 100% - 32px); margin-inline: auto; }
main section { padding-top: clamp(88px, 11vw, 160px); }
h1, h2, h3 { font-family: var(--font-display); font-weight: 500; line-height: 1.1; letter-spacing: -0.01em; }
h1 { font-size: clamp(48px, 7vw, 96px); }
h2 { font-size: clamp(36px, 4.6vw, 64px); max-width: 16ch; }
h3 { font-size: 28px; }
p { max-width: 62ch; }
.lead { color: var(--muted); font-size: 18px; margin-top: 24px; }
.label { font-size: 12px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 500; text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }
.link:hover { color: var(--accent); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 28px; border: 0; background: var(--accent); color: var(--on-accent); font: 500 14px/1 var(--font-body); letter-spacing: .12em; text-transform: uppercase; text-decoration: none; white-space: nowrap; cursor: pointer; transition: background-color 150ms ease, transform 100ms ease-out; }
.btn:hover { background: var(--accent-ink); }
.btn:active { transform: scale(.98); }
.btn.line { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.btn.line:hover { background: var(--sheet); }

/* En-tête : nom au centre, liens de part et d'autre */
.masthead { border-bottom: 1px solid var(--line); }
.masthead nav { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; min-height: 88px; gap: 24px; }
.masthead .side { display: flex; align-items: center; gap: 32px; }
.masthead .side.right { justify-content: flex-end; }
.masthead .side a:not(.btn) { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; }
.masthead .side a:not(.btn):hover, .masthead .side a:not(.btn)[aria-current="page"] { text-decoration: underline; text-underline-offset: 8px; text-decoration-thickness: 1px; }
.wordmark { display: inline-flex; flex-direction: column; align-items: center; min-height: 44px; justify-content: center; text-decoration: none; text-align: center; }
.wordmark b { font-family: var(--font-display); font-weight: 600; font-size: 32px; letter-spacing: .06em; line-height: 1; }
.wordmark small { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.menu { display: none; position: relative; justify-self: end; }
.menu summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 1px solid var(--ink); font-size: 14px; letter-spacing: .08em; text-transform: uppercase; }
.menu summary::-webkit-details-marker { display: none; }
.menu ul { position: absolute; right: 0; top: calc(100% + 8px); z-index: 10; list-style: none; min-width: 240px; padding: 8px; background: var(--sheet); border: 1px solid var(--ink); }
.menu li a { display: flex; align-items: center; min-height: 48px; padding: 0 16px; text-decoration: none; }
.menu li a:hover { background: var(--paper); }

/* Pied de page */
.foot { margin-top: clamp(96px, 12vw, 176px); border-top: 1px solid var(--line); padding: 64px 0 32px; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 48px; }
.foot .wordmark { align-items: flex-start; text-align: left; }
.foot .wordmark b { font-size: 48px; }
.foot dl { display: grid; gap: 16px; }
.foot dt { font-size: 12px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.foot dd { font-size: 14px; font-variant-numeric: tabular-nums; }
.foot dd a { display: inline-flex; align-items: center; min-height: 44px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 32px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 14px; }
.foot nav a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.foot nav a:hover { text-decoration: underline; text-underline-offset: 6px; }
.foot .demo { margin-top: 16px; font-size: 12px; color: var(--muted); }

/* Durée en grands chiffres */
.dur { font-family: var(--font-display); font-weight: 500; line-height: 1; font-variant-numeric: lining-nums tabular-nums; }
.dur small { font-family: var(--font-body); font-size: 12px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; margin-left: 6px; color: var(--muted); }

/* Accueil */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 96px); align-items: end; padding-top: clamp(40px, 6vw, 80px); }
.hero .label { margin-bottom: 24px; }
.hero p.sub { font-size: clamp(18px, 1.5vw, 20px); color: var(--muted); margin: 32px 0 40px; max-width: 36ch; }
.hero figure { height: min(calc(100dvh - 200px), 720px); min-height: 400px; overflow: hidden; background: var(--line); }
.hero figure img { width: 100%; height: 100%; object-fit: cover; }

/* Trois durées, largeur proportionnelle au temps */
.times { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) minmax(0, 3fr); margin-top: 56px; border-top: 1px solid var(--ink); }
.time { padding: 32px 24px 8px 0; border-right: 1px solid var(--line); }
.time + .time { padding-left: 24px; }
.time:last-child { border-right: 0; }
.time .dur { font-size: clamp(56px, 7vw, 104px); }
.time h3 { font-size: 24px; margin-top: 24px; }
.time p { color: var(--muted); font-size: 14px; margin-top: 8px; }
.time .from { display: block; margin-top: 16px; font-size: 14px; font-variant-numeric: tabular-nums; }

/* Déroulé d'un soin : barre de 60 minutes, segments proportionnels */
.ritual { margin-top: 56px; }
.ritual-bar { display: grid; grid-template-columns: 10fr 5fr 35fr 10fr; gap: 4px; height: 64px; transform-origin: left; }
.seg { display: flex; align-items: center; padding: 0 12px; overflow: hidden; white-space: nowrap; font-size: 12px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; }
.seg:nth-child(odd) { background: var(--ink); color: var(--paper); }
.seg:nth-child(even) { background: var(--accent); color: var(--on-accent); }
.ritual-scale { display: grid; grid-template-columns: 10fr 5fr 35fr 10fr; gap: 4px; margin-top: 8px; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.ritual-scale span:last-child { display: flex; justify-content: space-between; }
.ritual-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; margin-top: 48px; list-style: none; }
.ritual-steps .min { font-size: 12px; font-weight: 500; letter-spacing: .12em; color: var(--muted); font-variant-numeric: tabular-nums; }
.ritual-steps h3 { font-size: 24px; margin: 8px 0; }
.ritual-steps p { font-size: 14px; color: var(--muted); }

/* Bandeaux photo + texte */
.split { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.split.rev { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); }
.split.rev figure { order: 2; }
.split figure { aspect-ratio: 4/5; overflow: hidden; background: var(--line); }
.split.wide figure { aspect-ratio: 3/2; }
.split figure img { width: 100%; height: 100%; object-fit: cover; }
.split .link { margin-top: 24px; }
.lead.flush { margin-top: 0; }
.actions { margin-top: 32px; }

.hours { margin-top: 32px; border-top: 1px solid var(--ink); }
.hours div { display: flex; justify-content: space-between; gap: 24px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.hours dd { color: var(--muted); font-variant-numeric: tabular-nums; }

/* Pages intérieures */
.page-head { padding-top: clamp(56px, 8vw, 112px); }
.page-head .lead { font-size: 20px; }
.anchors { display: flex; flex-wrap: wrap; gap: 8px 32px; margin-top: 40px; padding-top: 16px; border-top: 1px solid var(--line); }
.anchors a { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; }
.anchors a:hover { color: var(--accent); }

/* Carte des soins */
.cat { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: clamp(32px, 6vw, 96px); align-items: start; scroll-margin-top: 24px; }
.cat.rev { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
.cat.rev figure { order: 2; }
.cat figure { aspect-ratio: 4/5; overflow: hidden; background: var(--line); position: sticky; top: 24px; }
.cat figure img { width: 100%; height: 100%; object-fit: cover; }
.cat-col { scroll-margin-top: 24px; }
.cat-pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); }
.cat-pair figure { aspect-ratio: 16/9; overflow: hidden; background: var(--line); margin-bottom: 32px; }
.cat-pair figure img { width: 100%; height: 100%; object-fit: cover; }
.soins { list-style: none; margin-top: 32px; border-top: 1px solid var(--ink); }
.soin { display: grid; grid-template-columns: 104px minmax(0, 1fr) auto; gap: 8px 24px; padding: 24px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 24px; }
.soin .dur { font-size: 44px; grid-column: 1; grid-row: 1 / span 3; }
.soin .dur small { display: block; margin: 6px 0 0; }
.soin h3 { font-size: 24px; }
.soin .price { font-size: 18px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.soin p { grid-column: 2 / 4; color: var(--muted); font-size: 14px; }
.soin .link { grid-column: 2 / 4; min-height: 44px; font-size: 14px; margin-top: -4px; }
.note { margin-top: 24px; font-size: 14px; color: var(--muted); }

/* Institut */
.principles { margin-top: 48px; border-top: 1px solid var(--ink); }
.principle { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 24px 64px; padding: 32px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.principle h3 { font-size: clamp(26px, 3vw, 36px); }
.principle p { color: var(--muted); }
.mosaic { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); grid-auto-rows: clamp(160px, 18vw, 260px); gap: 16px; margin-top: 56px; }
.mosaic figure { overflow: hidden; background: var(--line); }
.mosaic img { width: 100%; height: 100%; object-fit: cover; }
.mosaic .m1 { grid-column: 1 / 5; grid-row: span 2; }
.mosaic .m2 { grid-column: 5 / 7; }
.mosaic .m3 { grid-column: 5 / 7; }
.mosaic .m4 { grid-column: 1 / 7; }
.team { margin-top: 48px; border-top: 1px solid var(--ink); }
.member { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) minmax(0, 1fr); gap: 8px 32px; padding: 24px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.member h3 { font-size: 28px; }
.member .role { font-size: 14px; color: var(--muted); }

/* Formulaires (rendez-vous, bon cadeau) */
.form-wrap { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: start; margin-top: 56px; }
.form { background: var(--sheet); border: 1px solid var(--line); padding: clamp(24px, 4vw, 48px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px 24px; }
.full { grid-column: 1 / -1; }
.q { border: 0; display: grid; gap: 8px; align-content: start; min-width: 0; }
.q > label, .q legend { font-weight: 500; }
.q legend { margin-bottom: 8px; }
.q small, .q .opt { font-weight: 400; color: var(--muted); }
.q .help { font-size: 12px; color: var(--muted); line-height: 1.4; }
.q input:not([type="radio"]), .q select, .q textarea { width: 100%; min-height: 48px; padding: 12px 16px; border: 1px solid var(--field); border-radius: 0; background: var(--paper); color: var(--ink); font: inherit; }
.q textarea { min-height: 112px; resize: vertical; }
.q input:focus-visible, .q select:focus-visible, .q textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 8px 20px; border: 1px solid var(--field); font-size: 14px; cursor: pointer; transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease; }
.chips input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.chips label:hover { border-color: var(--ink); }
.chips label:has(input:checked) { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.chips label:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.err { display: none; font-size: 14px; color: var(--error); line-height: 1.4; }
.invalid .err { display: block; }
.invalid input:not([type="radio"]), .invalid select, .invalid .chips label { border-color: var(--error); }
.send { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.send p { color: var(--muted); font-size: 14px; }
.done { display: grid; gap: 16px; padding: 24px; border: 1px solid var(--accent); background: var(--paper); }
.done:focus { outline: none; }
.done h3 { font-size: 28px; }
.done p { color: var(--muted); }
.done textarea { width: 100%; min-height: 160px; padding: 12px 16px; border: 1px solid var(--field); background: var(--sheet); color: var(--ink); font: 14px/1.6 var(--font-body); }
.done .btn { justify-self: start; }
.aside { display: grid; gap: 40px; }
.aside h2 { font-size: clamp(28px, 3vw, 40px); }
.aside p { color: var(--muted); }

/* Mouvement : rare et lent */
@media (prefers-reduced-motion: no-preference) {
  .hero > * { animation: fade 300ms ease-out both; }
  .hero figure { animation-delay: 120ms; }
  @supports (animation-timeline: view()) {
    .ritual-bar { animation: fill linear both; animation-timeline: view(); animation-range: entry 40% cover 45%; }
  }
}
@keyframes fade { from { opacity: 0; } }
@keyframes fill { from { transform: scaleX(0); } }

@media (max-width: 1023.98px) {
  .masthead .side { gap: 20px; }
  .foot-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .foot-grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 767.98px) {
  .masthead nav { grid-template-columns: minmax(0, 1fr) auto; min-height: 72px; }
  .masthead .side { display: none; }
  .wordmark { align-items: flex-start; text-align: left; }
  .wordmark b { font-size: 26px; }
  .menu { display: block; }
  .hero, .split, .split.rev, .cat, .cat.rev, .cat-pair, .form-wrap, .principle, .member, .foot-grid { grid-template-columns: minmax(0, 1fr); }
  .split.rev figure, .cat.rev figure { order: 0; }
  .hero figure { height: auto; min-height: 0; aspect-ratio: 4/5; }
  .times { grid-template-columns: minmax(0, 1fr); }
  .time, .time + .time { padding: 24px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .ritual-bar { height: 32px; }
  .seg { font-size: 0; padding: 0; }
  .ritual-steps { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .cat figure { position: static; aspect-ratio: 16/9; }
  .soin { grid-template-columns: 72px minmax(0, 1fr) auto; gap: 4px 16px; }
  .soin .dur { font-size: 32px; }
  .mosaic { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-auto-rows: 160px; }
  .mosaic .m1, .mosaic .m4 { grid-column: 1 / -1; grid-row: auto; }
  .mosaic .m2, .mosaic .m3 { grid-column: auto; }
  .form { grid-template-columns: minmax(0, 1fr); }
}
