/* EL-PSY — mise en page du site. Les composants (.el-*) sont dans components.css. */

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

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 110px; }

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font: 400 16px/1.55 var(--font-sans);
}

img { max-width: 100%; height: auto; border-radius: var(--radius-lg); }

a { color: var(--accent); }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* --- Typographie --- */
h1, h2, h3, p { margin: 0; }

.display-xl, .display-lg, .display-md, .display-sm {
  font-family: var(--font-display);
  font-weight: 500;
  text-wrap: balance;
}
.display-xl { font-size: 84px; line-height: .98; letter-spacing: -2.5px; }
.display-lg { font-size: 60px; line-height: 1.02; letter-spacing: -1.8px; }
.display-md { font-size: 40px; line-height: 1.08; letter-spacing: -1px; }
.display-sm { font-size: 28px; line-height: 1.15; letter-spacing: -.5px; }

.headline { font-size: 22px; line-height: 1.25; font-weight: 600; letter-spacing: -.3px; }
.subhead { font-size: 22px; line-height: 1.4; }
.body-lg { font-size: 18px; line-height: 1.55; }
.body-sm { font-size: 14px; line-height: 1.45; font-weight: 500; }
.caption { font-size: 13px; line-height: 1.3; font-weight: 500; letter-spacing: .2px; }
.micro { font-size: 12px; line-height: 1.3; }
.muted { color: var(--ink-muted); }

/* --- Structure --- */
.container { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: var(--space-lg); }
.section { padding-block: var(--space-section); }
.section--tight { padding-block: calc(var(--space-section) / 2); }
.section__head { display: grid; gap: var(--space-md); margin-bottom: var(--space-xxl); max-width: 800px; }
.prose { display: grid; gap: var(--space-md); max-width: 65ch; }
.stack { display: grid; gap: var(--space-lg); }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-sm); }
.row--between { justify-content: space-between; }

.grid { display: grid; gap: var(--space-lg); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--spot { grid-template-columns: 1.4fr 1fr; }
.grid--split { grid-template-columns: 1fr 1.2fr; gap: var(--space-xxl); align-items: start; }

.skip-link { position: absolute; left: -9999px; top: var(--space-xs); z-index: 20; padding: var(--space-sm) var(--space-md); border-radius: var(--radius-md); background: var(--surface-1); color: var(--ink); }
.skip-link:focus { left: var(--space-lg); }

/* --- En-tête --- */
.site-header { position: sticky; top: 0; z-index: 10; padding-top: var(--space-md); }
.el-nav { position: relative; }
.el-nav__brand, .el-nav .el-btn { white-space: nowrap; }
.nav-brand { display: flex; flex-direction: column; gap: 2px; }
.nav-brand .el-nav__brand { line-height: 1; }
.nav-brand__tagline { color: var(--ink-muted); font-size: 12px; line-height: 1.2; white-space: nowrap; }
.el-nav__links a { display: inline-flex; align-items: center; min-height: 44px; }
.nav-actions { display: flex; align-items: center; gap: var(--space-xs); }
.nav-menu { display: none; }
.nav-menu summary { list-style: none; }
.nav-menu summary::-webkit-details-marker { display: none; }
.el-nav .nav-menu summary { width: 44px; padding: 0; }
.nav-menu__close, .nav-menu[open] .nav-menu__open { display: none; }
.nav-menu[open] .nav-menu__close { display: block; }
.nav-menu__panel {
  position: absolute; right: 0; top: calc(100% + var(--space-xs));
  min-width: 220px; margin: 0; padding: var(--space-sm) var(--space-lg);
  list-style: none; border-radius: var(--radius-xl);
  background: var(--surface-1); box-shadow: var(--shadow-float);
}
.nav-menu__panel a { display: flex; align-items: center; min-height: 44px; color: var(--ink); font-size: 16px; font-weight: 500; text-decoration: none; }
.nav-menu__panel a[aria-current="page"] { color: var(--accent); text-decoration: underline; text-underline-offset: 6px; }

/* --- Hero --- */
.hero { padding-block: var(--space-section) calc(var(--space-section) / 2); }
.hero__inner { display: grid; gap: var(--space-xl); }
.hero__inner > * { max-width: 900px; }
.hero__lead { max-width: 60ch; color: var(--ink-muted); }

/* --- Cartes : compléments de mise en page --- */
.el-card > .el-tag { align-self: flex-start; }
.el-spot { min-height: 280px; }

/* --- Service détaillé --- */
.service { padding-block: var(--space-xxl); border-top: 1px solid var(--hairline); }
.service:first-of-type { border-top: 0; padding-top: 0; }

/* --- Coordonnées --- */
.coords { display: grid; gap: var(--space-lg); margin: 0; }
.coords dt { color: var(--ink-muted); font-size: 14px; font-weight: 500; }
.coords dd { margin: 0; font-size: 18px; }

/* --- Prise de rendez-vous --- */
.booking-card { max-width: 800px; padding: var(--space-xl); border-radius: var(--radius-xl); background: var(--surface-1); box-shadow: var(--shadow-float); }
.booking-day { display: grid; gap: var(--space-sm); }
.booking-card .el-field { max-width: 440px; }
.booking-card .el-field--wide { max-width: 600px; }
.el-field select { min-height: 44px; padding: var(--space-sm) var(--space-md); border: 1px solid var(--hairline-strong); border-radius: var(--radius-md); background: var(--surface-1); color: var(--ink); font: 400 16px/1.4 var(--font-sans); }
.el-field { min-width: 0; }
.el-field select, .el-field textarea { width: 100%; max-width: 100%; }
.el-field select:focus-visible, .choice input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.el-field--error textarea { border-color: var(--danger); }
.choice { display: grid; gap: var(--space-xs); margin: 0; padding: 0; border: 0; max-width: 600px; }
.choice legend { padding: 0; margin-bottom: var(--space-xs); font-size: 14px; font-weight: 500; }
.choice__item { display: flex; align-items: flex-start; gap: var(--space-sm); min-height: 44px; padding-block: var(--space-xs); cursor: pointer; }
.choice__item input { flex: none; width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--primary); }
.choice__error { color: var(--danger); font-weight: 500; }

/* --- Espace du cabinet --- */
.admin-card { display: grid; gap: var(--space-lg); padding: var(--space-xl); border-radius: var(--radius-xl); background: var(--surface-1); }
.admin-card__details { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: var(--space-md); margin: 0; }
.admin-card__details dt { color: var(--ink-muted); font-size: 14px; font-weight: 500; }
.admin-card__details dd { margin: 0; overflow-wrap: anywhere; }
.prose .headline { margin-top: var(--space-lg); }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notice { font-weight: 600; }
.notice--success { color: var(--success); }
.notice--danger { color: var(--danger); }
.section__head + .notice { margin-bottom: var(--space-lg); }

.contact { grid-template-columns: 1fr 1.6fr; }
@media (max-width: 810px) { .contact { grid-template-columns: 1fr; } }

/* --- Pied de page --- */
.site-footer { margin-top: var(--space-section); padding-block: var(--space-xxl); border-top: 1px solid var(--hairline); color: var(--ink-muted); font-size: 13px; font-weight: 500; letter-spacing: .2px; }
.site-footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-lg); }
.site-footer ul { display: flex; flex-wrap: wrap; gap: var(--space-xs) var(--space-lg); margin: 0; padding: 0; list-style: none; }
.site-footer a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink-muted); }
.site-footer__brand { font-family: var(--font-display); font-size: 22px; font-weight: 500; letter-spacing: -.5px; color: var(--ink); }

/* Le slogan n'apparaît que lorsque la barre a la place de l'afficher sur une ligne. */
@media (max-width: 1040px) {
  .nav-brand__tagline { display: none; }
}

/* --- Mobile --- */
@media (max-width: 810px) {
  .display-xl { font-size: 40px; line-height: 1.08; letter-spacing: -1px; }
  .display-lg { font-size: 28px; line-height: 1.15; letter-spacing: -.5px; }
  .display-md { font-size: 28px; line-height: 1.15; letter-spacing: -.5px; }
  .el-spot__title { font-size: 28px; line-height: 1.15; letter-spacing: -.5px; }

  .grid--3, .grid--spot, .grid--split { grid-template-columns: 1fr; }
  .el-spot { min-height: 0; }

  .el-nav { gap: var(--space-xs); padding-left: var(--space-md); }
  .el-nav__links { display: none; }
  .nav-menu { display: block; }
  .el-nav .el-btn { padding-inline: 14px; font-size: 14px; }
}

@media (max-width: 400px) {
  .container { padding-inline: 10px; }
  .booking-card { padding: var(--space-lg); }
  .el-nav__brand { font-size: 20px; }
}

@media (max-width: 359px) {
  .el-nav { padding-left: var(--space-sm); gap: var(--space-xxs); }
  .nav-actions { gap: var(--space-xxs); }
  .el-nav .el-btn { padding-inline: 10px; font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
