/* KO Nails Univers — mobile first. Breakpoints: 480 / 768 / 900 px. */

/* Self-hosted fonts (SIL OFL, latin subset). Inlined here to save a render-blocking request. */
@font-face{font-family:'Bodoni Moda';font-style:normal;font-weight:400 900;font-display:swap;src:url(../assets/fonts/bodoni-moda-opsz-normal.woff2) format('woff2-variations'),url(../assets/fonts/bodoni-moda-opsz-normal.woff2) format('woff2');}
@font-face{font-family:'Bodoni Moda';font-style:italic;font-weight:400 900;font-display:swap;src:url(../assets/fonts/bodoni-moda-opsz-italic.woff2) format('woff2-variations'),url(../assets/fonts/bodoni-moda-opsz-italic.woff2) format('woff2');}
@font-face{font-family:'Jost';font-style:normal;font-weight:300;font-display:swap;src:url(../assets/fonts/jost-300.woff2) format('woff2');}
@font-face{font-family:'Jost';font-style:normal;font-weight:400;font-display:swap;src:url(../assets/fonts/jost-400.woff2) format('woff2');}
@font-face{font-family:'Jost';font-style:normal;font-weight:500;font-display:swap;src:url(../assets/fonts/jost-500.woff2) format('woff2');}
@font-face{font-family:'Pinyon Script';font-style:normal;font-weight:400;font-display:swap;src:url(../assets/fonts/pinyon-script.woff2) format('woff2');}

:root {
  --brun:          #2B1710; /* page background, from the logo leather */
  --ligne:         #6E4A3A; /* section frame — decorative only (2.2:1) */
  --separateur:    #5A3A2D; /* rules between list rows */
  --creme:         #F3E4D8; /* headings, strong text — 13.7:1 */
  --creme-doux:    #E6D3C6; /* body text — 11.8:1 */
  --creme-attenue: #D2BBAA; /* small labels — 9.3:1 */
  --or-rose:       #D9A68C; /* accent: script titles, borders, icons, button — 7.9:1 */
  --rose:          #E2ABB1; /* hearts and stars only — 8.7:1 */

  --font-script:  'Pinyon Script', 'Snell Roundhand', cursive;
  --font-display: 'Bodoni Moda', 'Didot', 'Bodoni 72', Georgia, serif;
  --font-body:    'Jost', 'Futura', 'Century Gothic', sans-serif;

  --card-max: 1080px;
  --card-gap: 24px;
  --frame-offset: 12px;
  --card-pad-block: 40px;
  --card-pad-inline: 20px;
  --label-tracking: .2em;
  --sticky-height: 56px;
  --ease-out: cubic-bezier(.22, .61, .36, 1);
  --acuity-min-height: 800px; /* Acuity has mobile bugs when the frame is shorter than the scheduler */
}

@media (min-width: 768px) {
  :root {
    --frame-offset: 22px;
    --card-pad-block: 44px;
    --card-pad-inline: 56px;
    --label-tracking: .32em;
  }
}

/* ---------- Base ---------- */

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

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

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--brun);
  color: var(--creme);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1.0625rem;
  line-height: 1.55;
  overflow-wrap: break-word;
}

@media (min-width: 768px) {
  body { font-size: 1.1875rem; }
}

img { display: block; max-width: 100%; height: auto; }

h1, h2, h3, p, ul, ol, dl, dd, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }

:focus-visible {
  outline: 2px solid var(--or-rose);
  outline-offset: 3px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.sprite { display: none; }

picture { display: contents; }

.nowrap { white-space: nowrap; }

/* ---------- Icons ---------- */

.icon {
  width: var(--icon-size, 20px);
  height: var(--icon-size, 20px);
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon--stroke-bold { stroke-width: 1.8; }
.icon--heart { --icon-size: 12px; color: var(--rose); stroke: none; }
.icon--star  { --icon-size: 18px; color: var(--rose); stroke: none; }

/* Round icon badge */
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  flex: none;
  border: 1px solid var(--or-rose);
  border-radius: 50%;
  color: var(--or-rose);
}

.badge--large { width: 50px; height: 50px; }
.badge--large .icon { --icon-size: 24px; }

/* ---------- Type helpers ---------- */

.script,
.section-title {
  font-family: var(--font-script);
  font-weight: 400;
  line-height: 1.15;
  color: var(--or-rose);
}

.display {
  display: block;
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1;
  text-transform: uppercase;
  color: var(--creme);
}

.section-title {
  font-size: clamp(2.75rem, 7vw, 4.5rem);
  text-align: center;
  text-wrap: balance;
}

.eyebrow {
  font-size: .875rem;
  font-weight: 400;
  letter-spacing: var(--label-tracking);
  text-transform: uppercase;
  text-align: center;
  color: var(--creme-attenue);
}

.eyebrow--accent { color: var(--or-rose); }

.eyebrow--hearts,
.eyebrow-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.eyebrow-line {
  font-size: .9375rem;
  letter-spacing: .14em;
  color: var(--creme-doux);
  text-align: center;
}

.prose {
  color: var(--creme-doux);
  line-height: 1.6;
  text-wrap: pretty;
}

/* ---------- Layout: section cards ---------- */

main {
  display: flex;
  flex-direction: column;
  gap: var(--card-gap);
}

.card {
  width: 100%;
  max-width: var(--card-max);
  margin-inline: auto;
  padding: var(--frame-offset);
}

.card__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 1px solid var(--ligne);
  padding: var(--card-pad-block) var(--card-pad-inline);
}

.card__inner > .section-title + * { margin-top: 26px; }

/* Boxes: 1px rose-gold border, square corners */
.box {
  border: 1px solid var(--or-rose);
  padding: 24px 22px;
}

@media (min-width: 768px) {
  .box { padding: 26px 28px; }
}

.grid-2,
.grid-3,
.reviews {
  align-self: stretch;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
}

@media (min-width: 768px) {
  .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 48px;
  padding: 14px 24px;
  background: var(--or-rose);
  color: var(--brun);
  font-family: var(--font-body);
  font-size: .9375rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  transition: background-color .2s ease;
}

.btn:hover { background: var(--creme); }

.btn--large { margin-top: 32px; }

@media (min-width: 768px) {
  .btn--large { padding: 18px 34px; font-size: 1.25rem; }
  .btn--large .icon { --icon-size: 22px; }
}

.btn--small {
  min-height: 44px;
  padding: 10px 20px;
  font-size: .8125rem;
  letter-spacing: .18em;
}

/* Payment reassurance line */
.secure {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 16px;
  font-size: .9375rem;
  font-weight: 400;
  letter-spacing: .06em;
  line-height: 1.4;
  color: var(--creme-doux);
  text-align: center;
}

.secure .icon { --icon-size: 18px; stroke-width: 1.5; color: var(--or-rose); }

@media (min-width: 768px) {
  .secure { font-size: 1.0625rem; letter-spacing: .08em; }
}

/* Inline link with an icon */
.icon-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  margin-top: 26px;
  color: var(--or-rose);
  text-decoration: none;
}

.icon-link span {
  font-size: .9375rem;
  font-weight: 400;
  letter-spacing: .14em;
  color: var(--creme-doux);
}

/* Underline drawn in two solid 1px layers: --ligne at rest, --or-rose growing over it on hover */
.link-draw {
  padding-bottom: 2px;
  background:
    linear-gradient(var(--or-rose), var(--or-rose)) left bottom / 0 1px no-repeat,
    linear-gradient(var(--ligne), var(--ligne)) left bottom / 100% 1px no-repeat;
  transition: background-size .45s var(--ease-out);
}

a:hover .link-draw,
a:focus-visible .link-draw { background-size: 100% 1px, 100% 1px; }

/* ---------- Desktop header ---------- */

.site-header { display: none; }

@media (min-width: 768px) {
  .site-header {
    display: block;
    max-width: var(--card-max);
    margin: 0 auto;
    padding: 14px var(--frame-offset) 0;
  }

  .site-nav ul {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
  }

  .site-nav a:not(.btn) {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 14px;
    font-size: .8125rem;
    font-weight: 400;
    letter-spacing: .26em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--creme-attenue);
  }

  .site-nav a:not(.btn):hover { color: var(--creme); }
  .site-nav li:last-child { margin-left: 12px; }
}

/* ---------- 1. Accueil ---------- */

.hero { gap: 30px; text-align: center; }

.eyebrow--hearts span { text-wrap: balance; }

@media (min-width: 768px) {
  .eyebrow--hearts { font-size: .9375rem; }
}

.hero__logo {
  width: min(340px, 100% - 24px);
  aspect-ratio: 1;
  object-fit: cover;
  outline: 1px solid var(--or-rose);
  outline-offset: 10px;
  margin-block: 10px;
}

.hero__tagline {
  font-size: clamp(2.125rem, 6vw, 2.875rem);
  line-height: 1.1;
  text-wrap: balance;
}

.services {
  align-self: stretch;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px 0;
  padding: 14px 0;
  border-block: 1px solid var(--ligne);
  font-size: .8125rem;
  font-weight: 400;
  letter-spacing: var(--label-tracking);
  text-transform: uppercase;
  color: var(--creme);
}

.services li { display: inline-flex; align-items: center; white-space: nowrap; }

.services li + li::before {
  content: "";
  width: 5px;
  height: 5px;
  margin-inline: 12px;
  border-radius: 50%;
  background: var(--or-rose);
}

@media (min-width: 768px) {
  .services { font-size: .9375rem; letter-spacing: .28em; }
  .services li + li::before { margin-inline: 22px; }
}

/* ---------- 2. Étapes ---------- */

.steps {
  align-self: stretch;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 64px;
  text-align: center;
}

.step {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

/* Arrow between steps: points down on mobile, right on desktop */
.step:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -48px;
  width: 32px;
  height: 32px;
  margin-left: -16px;
  background: var(--or-rose);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 12h17M14 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
  transform: rotate(90deg);
}

.step__num {
  font-family: var(--font-display);
  font-size: clamp(4rem, 9vw, 5.75rem);
  line-height: 1;
  color: var(--or-rose);
}

.step__title {
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--creme);
}

.step__text {
  font-size: 1.125rem;
  line-height: 1.4;
  color: var(--creme-doux);
  text-wrap: balance;
}

@media (min-width: 768px) {
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }

  .step:not(:last-child)::after {
    left: auto;
    right: -48px;
    top: 50%;
    bottom: auto;
    margin: -16px 0 0;
    transform: none;
  }
}

@media (min-width: 900px) {
  .step__title,
  .step__text { font-size: 1.5rem; }
}

/* ---------- 3. Galerie ---------- */

.gallery {
  align-self: stretch;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.gallery img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

@media (min-width: 768px) {
  .gallery { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
}

/* ---------- 4. Présentation ---------- */

.about {
  display: flex;
  flex-direction: column-reverse;
  align-items: stretch;
  gap: 40px;
}

.about__title .eyebrow { display: block; text-align: left; }

.about__title .display {
  margin-top: 10px;
  font-size: clamp(2.5rem, 6vw, 4.125rem);
  letter-spacing: .02em;
}

.about__name { font-size: clamp(2.75rem, 7vw, 3.75rem); }

.about .prose { margin-top: 22px; }

.meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  text-align: left;
}

.meta .icon { color: var(--or-rose); }

/* Arch photo with an offset outline arch */
.arch {
  position: relative;
  width: min(360px, 100% - 14px);
  align-self: center;
  margin-right: 14px;
  margin-bottom: 14px;
}

.arch::after {
  content: "";
  position: absolute;
  inset: 14px -14px -14px 14px;
  border: 1px solid var(--or-rose);
  border-radius: 9999px 9999px 0 0;
  pointer-events: none;
}

.arch img {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: 50% 20%;
  border-radius: 9999px 9999px 0 0;
}

@media (min-width: 900px) {
  .about {
    flex-direction: row;
    align-items: center;
    gap: 56px;
    padding-inline: 64px;
  }

  .about__text { flex: 1; min-width: 0; }
  .arch { flex: none; width: 360px; }
  .about .prose { font-size: 1.1875rem; line-height: 1.65; }
}

/* ---------- 5. Avis ---------- */

@media (min-width: 900px) {
  .reviews { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.review,
.tip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}

.review__stars { display: flex; gap: 4px; }

.review__quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.125rem;
  line-height: 1.55;
  color: var(--creme);
  text-wrap: pretty;
}

.review__author {
  margin-top: auto;
  font-size: .8125rem;
  font-weight: 400;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--or-rose);
}

.reviews + .eyebrow-line { margin-top: 26px; }

/* ---------- 6. Politique ---------- */

.policy { display: flex; flex-direction: column; gap: 14px; }

.policy__head { display: flex; align-items: center; gap: 14px; }

.box-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.1875rem, 5vw, 1.5rem);
  line-height: 1.2;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--creme);
}

@media (min-width: 768px) {
  .box-title { letter-spacing: .08em; }
}

/* ---------- 7. Avant ton rendez-vous ---------- */

.tag {
  border: 1px solid var(--or-rose);
  padding: 8px 18px;
  font-size: .875rem;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: var(--label-tracking);
  text-transform: uppercase;
  color: var(--or-rose);
}

@media (min-width: 768px) {
  .tag { padding-inline: 20px; letter-spacing: .26em; }
}

/* ---------- 8. Horaires & contact ---------- */

.grid-2--infos { gap: 24px; }

@media (min-width: 768px) {
  .grid-2--infos { gap: 32px; padding-block: 48px; }
}

.info {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

@media (min-width: 768px) {
  .info { padding: 34px 38px; }
}

.info__title { display: flex; flex-direction: column; align-items: center; }

.display--box {
  font-size: clamp(2.25rem, 5vw, 2.625rem);
  letter-spacing: .06em;
}

.info__title .script {
  margin-top: -6px;
  font-size: clamp(2.25rem, 5vw, 2.625rem);
  line-height: 1.1;
}

.hours { display: flex; flex-direction: column; gap: 14px; }

.hours div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--separateur);
}

.hours dt { font-weight: 400; color: var(--creme); }
.hours dd { color: var(--creme-doux); white-space: nowrap; }

.info__note {
  margin-top: auto;
  font-size: .8125rem;
  font-weight: 400;
  letter-spacing: .3em;
  text-transform: uppercase;
  text-align: center;
  color: var(--or-rose);
}

.contacts { display: flex; flex-direction: column; gap: 4px; }

.contacts a {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 44px;
  font-weight: 400;
  color: var(--creme);
  text-decoration: none;
}

.contacts .icon { --icon-size: 22px; color: var(--or-rose); }
.contacts a span { min-width: 0; overflow-wrap: anywhere; }
.contacts a:hover span { text-decoration: underline; text-decoration-color: var(--or-rose); }

/* ---------- 9. Localisation ---------- */

.location__title {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 10px;
  text-align: center;
}

.location__title .script { font-size: clamp(2.5rem, 6vw, 2.875rem); }

.display--city {
  font-size: clamp(1.75rem, 7.5vw, 3.875rem);
  letter-spacing: .04em;
}

.location__sub { margin-block: 14px 32px; }

.access {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 20px 22px;
  text-align: center;
}

.icon--access { --icon-size: 24px; color: var(--or-rose); }

.access__title {
  font-size: .875rem;
  font-weight: 500;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--or-rose);
}


/* ---------- 10. Merci + réservation ---------- */

.thanks {
  align-self: stretch;
  display: grid;
  grid-template-columns: auto auto;
  grid-template-areas:
    "left right"
    "content content";
  justify-content: center;
  align-items: center;
  gap: 28px 32px;
}

.thanks__photo {
  width: 96px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  outline: 1px solid var(--or-rose);
  outline-offset: 6px;
}

.thanks__photo--left  { grid-area: left; transform: rotate(-4deg); }
.thanks__photo--right { grid-area: right; transform: rotate(4deg); }

.thanks__content {
  grid-area: content;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

@media (max-width: 479px) {
  .thanks { display: block; }
  .thanks__photo { display: none; }
}

.thanks__title { display: flex; flex-direction: column; align-items: center; }

.display--thanks {
  font-size: clamp(3.5rem, 9vw, 6rem);
  letter-spacing: .08em;
}

.thanks__title .script {
  margin-top: 2px;
  font-size: clamp(2.125rem, 5vw, 2.625rem);
  line-height: 1.2;
  text-wrap: balance;
}

.thanks__content .eyebrow { margin-top: 18px; }

.thanks__handle {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 1.125rem;
  font-weight: 400;
  letter-spacing: .06em;
  color: var(--creme);
  text-decoration: none;
}

@media (min-width: 900px) {
  .thanks {
    grid-template-columns: 190px minmax(0, 1fr) 190px;
    grid-template-areas: "left content right";
    gap: 30px;
  }

  .thanks__photo { width: 190px; outline-offset: 8px; }
}

.booking {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 36px;
  padding-top: 32px;
  border-top: 1px solid var(--ligne);
}

.booking__label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: .875rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  text-align: center;
  color: var(--or-rose);
}

.booking .secure { margin-top: 12px; }

/* Acuity embed: full card width, never shorter than the scheduler (Acuity mobile bugs below ~800px) */
.booking__embed {
  align-self: stretch;
  margin-top: 24px;
  min-height: var(--acuity-min-height);
}

.booking__embed iframe {
  display: block;
  width: 100% !important; /* beats Acuity's inline width */
  min-height: var(--acuity-min-height);
  border: 0;
}

/* Placeholder until the scheduler is connected (empty container: comment only, no whitespace) */
.booking__embed:empty {
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed var(--ligne);
}

.booking__embed:empty::before {
  content: "Le calendrier de réservation arrive très bientôt";
  padding: 20px;
  font-size: .875rem;
  letter-spacing: .14em;
  text-align: center;
  color: var(--creme-attenue);
}

/* No scheduler yet: the fallback link would lead nowhere */
.booking__embed:empty + .booking__fallback { display: none; }

.booking__fallback {
  margin-top: 20px;
  font-size: 1rem;
  color: var(--creme-doux);
  text-align: center;
}

.booking__fallback a {
  display: inline-block;
  padding-block: 12px;
  font-weight: 400;
  color: var(--or-rose);
  text-decoration: none;
}

/* ---------- Footer ---------- */

.site-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  max-width: var(--card-max);
  margin: var(--card-gap) auto 0;
  padding: 32px var(--frame-offset) 40px;
  text-align: center;
}

.site-footer__logo {
  width: 96px;
  outline: 1px solid var(--or-rose);
  outline-offset: 6px;
  margin-bottom: 6px;
}

.site-footer__social { display: flex; gap: 8px; }

.site-footer__social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: var(--or-rose);
}

.site-footer__social .icon { --icon-size: 22px; }

.site-footer__legal a {
  display: inline-block;
  padding-block: 12px;
  font-size: .875rem;
  font-weight: 400;
  letter-spacing: var(--label-tracking);
  text-transform: uppercase;
  color: var(--creme-attenue);
}

.site-footer__copy { font-size: .875rem; color: var(--creme-attenue); }

/* ---------- Sticky mobile CTA ---------- */

.sticky-cta {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 10;
  display: flex;
  min-height: calc(var(--sticky-height) + env(safe-area-inset-bottom));
  padding: 0 16px env(safe-area-inset-bottom);
  transition: transform .25s ease, visibility .25s, background-color .2s ease;
}

.sticky-cta:focus-visible { outline-color: var(--creme); outline-offset: -4px; }

.sticky-cta.is-hidden {
  visibility: hidden;
  transform: translateY(100%);
}

@media (prefers-reduced-motion: reduce) {
  .sticky-cta, .btn, .link-draw { transition: none; }
}

@media (max-width: 767px) {
  .has-sticky-cta { padding-bottom: calc(var(--sticky-height) + env(safe-area-inset-bottom)); }
}

@media (min-width: 768px) {
  .sticky-cta { display: none; }
}

/* ---------- Mentions légales ---------- */

.legal__body {
  align-self: stretch;
  max-width: 68ch;
  margin-inline: auto;
}

.legal__body h2 { margin: 32px 0 10px; font-size: 1.25rem; }

.legal__body p + p { margin-top: 12px; }

/* ---------- Motion ----------
   transform/opacity only (no layout shift). Everything here is skipped with prefers-reduced-motion.
   The hero logo (LCP) is never hidden: it only scales in. */

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
}

@keyframes lift {
  from { transform: translateY(14px); }
}

@keyframes arch-in {
  from { opacity: 0; transform: translate(-14px, -14px); }
}

@keyframes logo-in {
  from { transform: scale(.96); }
}

@keyframes draw-x {
  from { transform: scaleX(0); }
}

@keyframes draw-y {
  from { transform: scaleY(0); }
}

@media screen and (prefers-reduced-motion: no-preference) {
  /* 1. Hero intro: the frame draws from the centre, then content cascades in */
  #accueil .card__inner {
    position: relative;
    border-color: transparent;
  }

  #accueil .card__inner::before,
  #accueil .card__inner::after {
    content: "";
    position: absolute;
    inset: -1px;
    pointer-events: none;
  }

  #accueil .card__inner::before {
    border-block: 1px solid var(--ligne);
    animation: draw-x 1.1s var(--ease-out) both;
  }

  #accueil .card__inner::after {
    border-inline: 1px solid var(--ligne);
    animation: draw-y 1.1s var(--ease-out) .15s both;
  }

  .hero__logo      { animation: logo-in 1.2s var(--ease-out) both; }
  .hero .eyebrow   { animation: rise .8s var(--ease-out) .1s both; }
  .hero__tagline   { animation: rise .8s var(--ease-out) .25s both; }
  .services        { animation: rise .8s var(--ease-out) .4s both; }
  .hero .btn       { animation: lift .8s var(--ease-out) .5s both; } /* no fade: it is clickable from the start */

  /* 2. Scroll reveal: [data-reveal] is only set by main.js, so content stays visible without JS.
     An animation (not a transition) so nothing lingers on the element once revealed.
     Focused content is always shown, even if the observer has not fired yet. */
  [data-reveal]:not(.is-in):not(:focus-within) {
    opacity: 0;
    transform: translateY(14px); /* matches the start of `rise` */
  }

  [data-reveal].is-in {
    animation: rise .7s var(--ease-out) var(--reveal-delay, 0ms) backwards;
  }

  /* Signature: the offset arch slides out from behind the photo */
  .arch[data-reveal]:not(.is-in)::after { opacity: 0; }
  .arch[data-reveal].is-in::after { animation: arch-in .9s var(--ease-out) .35s backwards; }

  /* Signature: Merci photos settle into their tilt, since `rise` ends on each photo's own rotation */

  /* 3. Micro-interactions */
  .btn .icon { transition: transform .3s var(--ease-out); }
  .btn:hover .icon,
  .btn:active .icon { transform: translateY(3px); }

  .site-nav a:not(.btn) { transition: color .25s ease; }
}

@media screen and (prefers-reduced-motion: no-preference) and (hover: hover) {
  .gallery li { overflow: hidden; }
  .gallery img { transition: transform .8s var(--ease-out); }
  .gallery li:hover img { transform: scale(1.04); }
}
