﻿/* Shared UX layer - Les Accords du Corps */

/* Transitions de page natives (fondu cinématique entre pages, navigateurs modernes) */
@view-transition { navigation: auto; }
@media (prefers-reduced-motion: no-preference) {
  ::view-transition-old(root) { animation: vt-out 320ms ease both; }
  ::view-transition-new(root) { animation: vt-in 520ms cubic-bezier(0.16, 1, 0.3, 1) both; }
}
@keyframes vt-out { to { opacity: 0; transform: translateY(-10px); } }
@keyframes vt-in  { from { opacity: 0; transform: translateY(12px); filter: blur(8px); } }

::selection { background: oklch(52% 0.065 68 / 0.25); }
html { scrollbar-width: thin; scrollbar-color: oklch(52% 0.065 68 / 0.55) transparent; }

/* Accessibilité clavier : anneau de focus visible partout */
:focus-visible {
  outline: 2px solid oklch(50% 0.068 68);
  outline-offset: 3px;
  border-radius: 2px;
}
.section--dark :focus-visible,
.cta :focus-visible,
.cta-final :focus-visible,
.enterprises :focus-visible,
.footer :focus-visible {
  outline-color: oklch(85% 0.03 74);
}

/* Suppression du délai de tap 300ms sur mobile */
a, button, input, textarea, select, summary, [role="button"] { touch-action: manipulation; }

/* Cibles tactiles >= 44px sur écrans tactiles */
@media (pointer: coarse) {
  .nav__burger, .nav__theme-btn, .mobile-menu__close { width: 44px; height: 44px; }
}

:root {
  --nav-h: 60px;
  --nav-top: 14px;
  --ux-ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ux-fast: 300ms cubic-bezier(0.16, 1, 0.3, 1);
  --ux-std: 600ms cubic-bezier(0.16, 1, 0.3, 1);
  --ux-slow: 900ms cubic-bezier(0.16, 1, 0.3, 1);
  --dk: oklch(22% 0.018 66);
  --dk-fg: oklch(93% 0.010 78);
  --dk-muted: oklch(73% 0.016 74);
  --dk-border: oklch(38% 0.016 68);
  --soft-dark: oklch(24% 0.020 66);
  --soft-dark-2: oklch(29% 0.022 66);
}

html { scroll-padding-top: 96px; scrollbar-gutter: stable; }
body { padding-top: 0; }

/* Skip link (accessibilité clavier) */
.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 500;
  padding: 0.75rem 1.25rem;
  background: var(--primary, oklch(50% 0.068 68));
  color: oklch(98% 0.005 78);
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: 4px;
  transition: top 200ms ease;
}
.skip-link:focus-visible {
  top: 16px;
  outline: 2px solid oklch(98% 0.005 78);
  outline-offset: 2px;
}

.scroll-bar {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 300;
  width: 0%;
  height: 2px;
  background: linear-gradient(90deg, var(--primary, oklch(50% 0.068 68)), oklch(72% 0.04 72));
  transform-origin: left center;
  pointer-events: none;
}

.nav {
  position: fixed !important;
  top: var(--nav-top) !important;
  left: 0;
  right: 0;
  z-index: 200;
  height: var(--nav-h);
  background: transparent !important;
  border: 0 !important;
  display: flex;
  align-items: center;
  pointer-events: none;
  transition: transform var(--ux-std);
}
.nav::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -6px;
  width: calc(var(--scroll-progress, 0) * 100%);
  max-width: min(1340px, calc(100% - 2rem));
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary, oklch(50% 0.068 68)), transparent);
  opacity: 0.72;
  transform: translateX(-50%);
}
.nav > .container { width: 100%; max-width: none; padding: 0; }
.nav__inner {
  position: relative;
  width: min(1340px, calc(100% - 2rem)) !important;
  height: var(--nav-h) !important;
  min-height: var(--nav-h) !important;
  margin: 0 auto !important;
  padding: 0 0.55rem 0 0.85rem !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: clamp(0.6rem, 2vw, 3rem) !important;
  pointer-events: all;
  overflow: visible;
}
.nav__inner::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  border: 1px solid oklch(92% 0.020 76 / 0.34);
  border-radius: 9999px;
  background: linear-gradient(135deg, oklch(100% 0 0 / 0.62), transparent 42%), oklch(96% 0.016 78 / 0.82);
  backdrop-filter: blur(24px) saturate(1.35);
  box-shadow: inset 0 1px 0 oklch(100% 0 0 / 0.66), 0 14px 44px oklch(11% 0.010 68 / 0.10), 0 0 34px oklch(78% 0.04 72 / 0.08);
  transition: background var(--ux-std), border-color var(--ux-std), box-shadow var(--ux-std);
}
.nav.scrolled .nav__inner::before {
  background: linear-gradient(135deg, oklch(100% 0 0 / 0.70), transparent 42%), oklch(96% 0.016 78 / 0.94);
  border-color: oklch(84% 0.022 74 / 0.52);
  box-shadow: inset 0 1px 0 oklch(100% 0 0 / 0.72), 0 18px 56px oklch(11% 0.010 68 / 0.13), 0 0 40px oklch(78% 0.04 72 / 0.10);
}
.nav__logo { flex-shrink: 0; display: inline-flex; align-items: center; text-decoration: none; }
.nav__logo-img {
  width: auto !important;
  height: 54px !important;
  max-width: min(220px, 38vw);
  object-fit: contain;
  transform-origin: left center;
  transition: height var(--ux-std), transform var(--ux-std);
}
.nav.scrolled .nav__logo-img { height: 46px !important; transform: translateY(-1px); }
.nav__links {
  display: flex !important;
  align-items: center;
  gap: 0.2rem !important;
  padding: 0.18rem !important;
  margin: 0;
  border-radius: 9999px;
  background: oklch(100% 0 0 / 0.34);
  border: 1px solid oklch(84% 0.022 74 / 0.22);
  list-style: none;
  white-space: nowrap;
}
.nav__links a,
.nav__link {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-height: 32px !important;
  padding: 0 0.6rem !important;
  border-radius: 9999px;
  text-decoration: none !important;
  font-size: 0.66rem !important;
  font-weight: 500;
  letter-spacing: 0.05em !important;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--muted-fg, oklch(48% 0.022 72)) !important;
  transition: color var(--ux-fast), background var(--ux-fast);
}
.nav__links a:hover,
.nav__links a[aria-current='page'],
.nav__link:hover,
.nav__link[aria-current='page'] {
  color: var(--fg, oklch(11% 0.010 68)) !important;
  background: oklch(95% 0.018 78 / 0.78);
}
.nav__actions { display: flex; align-items: center; gap: 0.55rem; flex-shrink: 0; }
.nav__theme-btn,
.nav__burger {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 9999px;
  background: transparent;
  color: var(--muted-fg, oklch(48% 0.022 72));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: color var(--ux-fast), background var(--ux-fast);
}
.nav__theme-btn:hover,
.nav__burger:hover { color: var(--fg, oklch(11% 0.010 68)); background: oklch(95% 0.018 78 / 0.78); }
.nav__burger { display: none; flex-direction: column; gap: 6px; }
.nav__burger span { width: 22px; height: 1px; background: currentColor; display: block; transition: transform var(--ux-fast), opacity var(--ux-fast); }
.nav__burger[aria-expanded='true'] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger[aria-expanded='true'] span:nth-child(2) { opacity: 0; }
.nav__burger[aria-expanded='true'] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 199;
  background: var(--bg, oklch(95% 0.018 78));
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 7rem 1.5rem 3rem;
  gap: 1.15rem;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-10px);
  transition: opacity var(--ux-std), transform var(--ux-std);
}
.mobile-menu.open { opacity: 1; pointer-events: all; transform: none; }
.mobile-menu a {
  font-family: var(--font-display, Georgia, serif);
  font-size: clamp(2.4rem, 10vw, 4rem);
  font-weight: 300;
  font-style: italic;
  line-height: 1;
  color: var(--fg, oklch(11% 0.010 68));
  text-decoration: none;
}
.mobile-menu a:hover { color: var(--primary, oklch(50% 0.068 68)); }
.mobile-menu__close {
  position: absolute;
  top: 28px;
  right: 24px;
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  color: var(--muted-fg, oklch(48% 0.022 72));
  font-size: 1.25rem;
  cursor: pointer;
}

.hero, main > section:first-child { position: relative; }
body:not(.home-page) main > section:first-child { padding-top: max(7rem, calc(var(--nav-h) + 3rem)); }

.ux-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity var(--ux-slow), transform var(--ux-slow);
}
.ux-reveal.is-visible { opacity: 1; transform: none; }
.card, .review-card, .exp-card, .benefit-item, .local-seo__card, .testi-card, .fact, .metric {
  will-change: transform;
}
.card:hover, .review-card:hover, .fact:hover, .metric:hover {
  border-color: oklch(52% 0.065 68 / 0.38) !important;
}
.btn, button, a { -webkit-tap-highlight-color: transparent; }
.btn { position: relative; overflow: hidden; will-change: transform; }
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 0%, oklch(100% 0 0 / 0.18) 45%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 700ms var(--ux-ease);
  pointer-events: none;
}
.btn:hover::after { transform: translateX(120%); }

.section--dark,
.cta,
.cta-final,
.enterprises {
  background:
    radial-gradient(ellipse at 12% 0%, oklch(52% 0.065 68 / 0.12), transparent 36%),
    linear-gradient(155deg, var(--soft-dark-2) 0%, var(--soft-dark) 58%, oklch(20% 0.016 66) 100%) !important;
  color: var(--dk-fg) !important;
}
.section--dark p,
.cta p,
.cta-final p,
.enterprises p {
  color: var(--dk-muted) !important;
}
.section--dark .card {
  background: oklch(30% 0.018 66 / 0.58) !important;
  border-color: oklch(49% 0.018 68 / 0.36) !important;
}

.footer {
  background:
    radial-gradient(ellipse at 16% 0%, oklch(52% 0.065 68 / 0.13), transparent 38%),
    radial-gradient(ellipse at 92% 100%, oklch(78% 0.04 72 / 0.10), transparent 36%),
    linear-gradient(155deg, oklch(27% 0.020 66) 0%, oklch(21% 0.018 66) 62%, oklch(18% 0.016 66) 100%) !important;
  color: oklch(80% 0.014 76) !important;
  padding: clamp(3rem, 7vw, 5rem) 0 1.35rem !important;
  font-size: 0.9rem !important;
}
.footer__top {
  display: grid;
  grid-template-columns: minmax(240px, 1.4fr) repeat(3, minmax(150px, 0.75fr));
  gap: clamp(1.5rem, 4vw, 3.5rem);
  padding-bottom: 2.5rem;
  border-bottom: 1px solid oklch(92% 0.010 78 / 0.18);
}
.footer__logo {
  font-family: var(--font-display, Georgia, serif);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 300;
  line-height: 0.98;
  color: oklch(96% 0.008 78);
  margin-bottom: 1rem;
}
.footer__logo em { font-style: italic; color: oklch(78% 0.04 72); }
.footer__text { max-width: 34rem; color: oklch(80% 0.014 76); margin: 0; }
.footer__col h3 {
  margin: 0 0 0.9rem;
  color: oklch(95% 0.008 78);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-family: var(--font-body, sans-serif);
}
.footer__col a,
.footer a {
  color: oklch(86% 0.012 76) !important;
  text-decoration: none;
  transition: color var(--ux-fast);
}
.footer__col a:hover,
.footer a:hover { color: oklch(98% 0.006 78) !important; }
.footer__col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.5rem; }
.footer__bottom,
.footer__inner {
  display: flex !important;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 1.2rem;
  color: oklch(74% 0.014 76);
  font-size: 0.78rem;
}
.footer__inner { padding-top: 0; }

#faq .display,
#faq .display-italic,
#faq .faq__title,
section[id="faq"] h2 {
  font-family: var(--font-sub, "Fraunces", serif) !important;
  font-style: normal !important;
  font-weight: 300 !important;
  line-height: 1.08 !important;
  letter-spacing: 0 !important;
  font-size: clamp(2.1rem, 4.6vw, 3.9rem) !important;
}
#faq .faq__sub,
#faq p {
  color: oklch(50% 0.018 72) !important;
}
.faq__question,
summary {
  font-family: var(--font-body, "DM Sans", sans-serif) !important;
  font-size: clamp(0.98rem, 1.5vw, 1.12rem) !important;
  font-weight: 500 !important;
  line-height: 1.45 !important;
  letter-spacing: 0 !important;
  color: oklch(21% 0.010 68) !important;
}
.faq__item,
details {
  border-color: oklch(84% 0.018 74 / 0.72) !important;
}
.faq__answer-inner,
details p {
  font-family: var(--font-body, "DM Sans", sans-serif) !important;
  font-size: 0.96rem !important;
  line-height: 1.72 !important;
  color: oklch(48% 0.018 72) !important;
}
.faq__icon {
  background: oklch(52% 0.065 68 / 0.09) !important;
  color: oklch(44% 0.056 68) !important;
}

@media (max-width: 1280px) {
  .nav__links a,
  .nav__link { padding: 0 0.48rem !important; font-size: 0.62rem !important; letter-spacing: 0.04em !important; }
  .nav__links { gap: 0.08rem !important; }
}
@media (max-width: 1100px) {
  .nav__links { display: none !important; }
  .nav__burger { display: inline-flex; }
  .nav__inner { width: min(100% - 1.25rem, 1180px) !important; }
  .nav__logo-img { height: 42px !important; max-width: 190px; }
  .nav.scrolled .nav__logo-img { height: 38px !important; }
  .footer__top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  :root { --nav-h: 54px; --nav-top: 10px; }
  .nav__inner { padding: 0 0.45rem 0 0.65rem !important; }
  .nav__theme-btn, .nav__burger { width: 34px; height: 34px; }
  .footer__top { grid-template-columns: 1fr; }
  .footer__bottom, .footer__inner { align-items: flex-start; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .ux-reveal { opacity: 1 !important; transform: none !important; }
}

.legal-page main { padding-top: 9rem !important; }
.legal-page .back { display: inline-flex; align-items: center; min-height: 42px; padding: 0 1rem; border: 1px solid var(--border, oklch(84% 0.022 74)); border-radius: 9999px; text-decoration: none; background: oklch(100% 0 0 / 0.45); }


.ux-proof-strip {
  background: var(--bg, oklch(95% 0.018 78));
  border-bottom: 1px solid var(--border, oklch(84% 0.022 74));
}
.ux-proof-strip__inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  border-left: 1px solid var(--border, oklch(84% 0.022 74));
  border-right: 1px solid var(--border, oklch(84% 0.022 74));
  background: var(--border, oklch(84% 0.022 74));
}
.ux-proof-strip__item {
  background: oklch(98% 0.012 78 / 0.72);
  padding: clamp(1rem, 2.4vw, 1.5rem);
}
.ux-proof-strip__item strong {
  display: block;
  color: var(--fg, oklch(11% 0.010 68));
  font-family: var(--font-display, Georgia, serif);
  font-size: clamp(1.25rem, 2.2vw, 1.65rem);
  font-weight: 300;
  line-height: 1.1;
}
.ux-proof-strip__item span {
  display: block;
  margin-top: 0.35rem;
  color: var(--muted-fg, oklch(48% 0.022 72));
  font-size: 0.86rem;
}
@media (max-width: 760px) {
  .ux-proof-strip__inner { grid-template-columns: 1fr; }
}

.cabinet-photos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(0.85rem, 2vw, 1.25rem);
  align-items: stretch;
}
.cabinet-photo-card {
  position: relative;
  overflow: hidden;
  min-height: 100%;
  border: 1px solid var(--border, oklch(84% 0.022 74));
  border-radius: 8px;
  background: var(--card, oklch(98% 0.012 78));
  box-shadow: 0 16px 42px oklch(11% 0.010 68 / 0.08);
}
.cabinet-photo-card img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}
.cabinet-photo-card figcaption {
  position: absolute;
  left: 0.85rem;
  right: 0.85rem;
  bottom: 0.85rem;
  padding: 0.55rem 0.7rem;
  border: 1px solid oklch(100% 0 0 / 0.32);
  border-radius: 9999px;
  background: oklch(10% 0.010 68 / 0.58);
  color: oklch(96% 0.008 78);
  backdrop-filter: blur(14px);
  font-size: 0.72rem;
  font-weight: 500;
  line-height: 1.35;
  text-align: center;
}
.cabinet-photo-card--compact img {
  min-height: 180px;
  aspect-ratio: 16 / 10;
}
.cabinet-photo-card--inline {
  margin: 0 0 1rem;
  box-shadow: 0 12px 32px oklch(11% 0.010 68 / 0.07);
}
.cabinet-photo-card--inline img {
  min-height: 170px;
  aspect-ratio: 16 / 9;
}
@media (max-width: 760px) {
  .cabinet-photos { grid-template-columns: 1fr; }
  .cabinet-photo-card img { min-height: 220px; }
}
