/* ---- Imports ---- */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400;1,600&family=Inter:wght@300;400;500;600&display=swap');
@import url('tokens.css');

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  line-height: 1.7;
  overflow-x: hidden;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ---- Typography — Éditorial artisan ---- */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.1; }
h1 { font-size: clamp(2.4rem, 7vw, 5rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.8rem, 4.5vw, 3.2rem); letter-spacing: -0.015em; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.7rem); font-weight: 600; }
p { max-width: 68ch; }
.italic-lead { font-family: var(--font-display); font-style: italic; font-size: clamp(1.1rem, 2.5vw, 1.4rem); color: var(--color-text); opacity: .85; }

/* Section numeral — éditorial accent */
.section-num {
  font-family: var(--font-display);
  font-size: clamp(4rem, 12vw, 9rem);
  font-weight: 700;
  color: var(--color-accent);
  opacity: .18;
  line-height: 1;
  user-select: none;
}

/* ---- Amber rule ---- */
.amber-rule {
  width: 48px; height: 3px;
  background: var(--color-accent);
  display: block;
  margin-bottom: 1.25rem;
}
.amber-rule--center { margin-left: auto; margin-right: auto; }

/* ---- Container ---- */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 1.25rem; }
.container--narrow { max-width: 800px; }

/* ---- Visual Placeholder ---- */
.visual-placeholder {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 2px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--color-primary) 22%, var(--color-bg)) 0%,
    color-mix(in srgb, var(--color-primary) 10%, var(--color-bg)) 55%,
    color-mix(in srgb, var(--color-secondary) 18%, var(--color-bg)) 100%
  );
}
.visual-placeholder[data-aspect="16:9"]  { aspect-ratio: 16 / 9; }
.visual-placeholder[data-aspect="21:9"]  { aspect-ratio: 21 / 9; }
.visual-placeholder[data-aspect="4:3"]   { aspect-ratio: 4 / 3; }
.visual-placeholder[data-aspect="1:1"]   { aspect-ratio: 1 / 1; }
.visual-placeholder[data-aspect="3:4"]   { aspect-ratio: 3 / 4; }
.visual-placeholder[data-tone="secondary"] {
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--color-secondary) 22%, var(--color-bg)) 0%,
    color-mix(in srgb, var(--color-secondary) 10%, var(--color-bg)) 55%,
    color-mix(in srgb, var(--color-primary) 16%, var(--color-bg)) 100%
  );
}
.visual-placeholder[data-tone="accent"] {
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--color-accent, var(--color-primary)) 22%, var(--color-bg)) 0%,
    color-mix(in srgb, var(--color-primary) 12%, var(--color-bg)) 60%,
    color-mix(in srgb, var(--color-secondary) 16%, var(--color-bg)) 100%
  );
}
.visual-placeholder[data-tone="muted"] {
  background: color-mix(in srgb, var(--color-text) 8%, var(--color-bg));
}
/* Legacy modifier classes kept for existing markup */
.visual-placeholder--hero  { aspect-ratio: 3/2; border-radius: 0; }
.visual-placeholder--tall  { aspect-ratio: 3/4; }
.visual-placeholder--wide  { aspect-ratio: 16/7; }

/* ---- Skip link ---- */
.skip-link { position: absolute; left: -999px; top: 0; background: var(--color-secondary); color: #fff; padding: .5rem 1rem; z-index: 9999; font-size: .875rem; }
.skip-link:focus { left: 0; }

/* ---- Header / Nav ---- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--color-primary);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px; gap: 1rem;
}
.nav-logo svg { height: 44px; width: auto; }
.nav-logo svg text { fill: #fff; }

.nav-links { display: none; list-style: none; align-items: center; gap: 1.75rem; }
.nav-links a {
  font-family: var(--font-body); font-size: .875rem; font-weight: 500;
  color: rgba(255,255,255,.8); letter-spacing: .04em; text-transform: uppercase;
  transition: color .2s;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: #fff; }
.nav-links .nav-cta {
  background: var(--color-secondary); color: #fff;
  padding: .45rem 1.1rem; border-radius: 2px;
  font-size: .8rem; letter-spacing: .06em;
  transition: background .2s;
}
.nav-links .nav-cta:hover { background: #be123c; }

.nav-toggle {
  background: none; border: none; cursor: pointer;
  display: flex; flex-direction: column; gap: 5px; padding: .5rem;
}
.hamburger-line { width: 24px; height: 2px; background: #fff; display: block; transition: transform .25s, opacity .2s; }

/* Mobile nav */
.nav-mobile {
  display: none; flex-direction: column;
  background: var(--color-primary); padding: 1.25rem 1.5rem 1.75rem;
  border-top: 1px solid rgba(255,255,255,.08);
}
.nav-mobile.is-open { display: flex; }
.nav-mobile a {
  color: rgba(255,255,255,.8); font-size: 1rem; font-weight: 500;
  padding: .6rem 0; border-bottom: 1px solid rgba(255,255,255,.06);
  text-transform: uppercase; letter-spacing: .06em;
}
.nav-mobile a:last-child { border-bottom: none; }
.nav-mobile .nav-cta-mobile {
  margin-top: .75rem; background: var(--color-secondary); color: #fff;
  text-align: center; padding: .8rem 1rem; border-radius: 2px; border: none;
}

@media (min-width: 768px) {
  .nav-links { display: flex; }
  .nav-toggle { display: none; }
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-body); font-size: .875rem; font-weight: 600;
  letter-spacing: .05em; text-transform: uppercase;
  padding: .8rem 1.75rem; border-radius: 2px; cursor: pointer;
  transition: background .2s, transform .15s;
  border: 2px solid transparent; text-decoration: none;
}
.btn:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 3px; }
.btn--primary { background: var(--color-secondary); color: #fff; border-color: var(--color-secondary); }
.btn--primary:hover { background: #be123c; border-color: #be123c; }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.btn--ghost:hover { border-color: #fff; }
.btn--amber { background: var(--color-accent); color: #111; border-color: var(--color-accent); }
.btn--amber:hover { background: #d97706; border-color: #d97706; }
.btn--dark { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }
.btn--dark:hover { background: #27272a; }
.btn--lg { font-size: 1rem; padding: 1rem 2.25rem; }

/* Tel link styled as button */
.tel-link {
  display: inline-flex; align-items: center; gap: .5rem;
  color: var(--color-secondary); font-weight: 600; font-size: 1.05rem;
  text-decoration: none; transition: color .2s;
}
.tel-link:hover { color: #be123c; }
.tel-link svg { width: 18px; height: 18px; }

/* ---- Hero ---- */
.hero {
  background: var(--color-primary);
  color: #fff;
  padding: 5rem 0 0;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 70% 30%, rgba(225,29,72,.12) 0%, transparent 60%),
              radial-gradient(ellipse at 20% 80%, rgba(245,158,11,.08) 0%, transparent 50%);
  pointer-events: none;
}
.hero-inner {
  display: grid; grid-template-columns: 1fr;
  gap: 3rem; align-items: end;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--color-accent); margin-bottom: 1.5rem;
}
.hero-eyebrow::before { content: ''; display: block; width: 24px; height: 2px; background: var(--color-accent); }
.hero-title { color: #fff; margin-bottom: 1.25rem; }
.hero-title em { font-style: italic; color: var(--color-accent); }
.hero-desc { color: rgba(255,255,255,.7); font-size: 1.1rem; margin-bottom: 2rem; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 2.5rem; }
.hero-rating {
  display: inline-flex; align-items: center; gap: .5rem;
  color: rgba(255,255,255,.6); font-size: .85rem;
}
.hero-stars { color: var(--color-accent); font-size: 1rem; letter-spacing: .05em; }
.hero-image { position: relative; }
.hero-image .visual-placeholder--hero { min-height: 320px; }

@media (min-width: 900px) {
  .hero { padding: 6rem 0 0; }
  .hero-inner { grid-template-columns: 1fr 1fr; gap: 4rem; }
  .hero-image .visual-placeholder--hero { min-height: 480px; }
}

/* ---- Marquee strip ---- */
.marquee-strip {
  background: var(--color-accent);
  overflow: hidden; padding: .6rem 0;
}
.marquee-track {
  display: flex; gap: 2.5rem; width: max-content;
  animation: marquee 22s linear infinite;
}
.marquee-strip:hover .marquee-track { animation-play-state: paused; }
.marquee-item {
  white-space: nowrap; font-size: .78rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase; color: #111;
  display: flex; align-items: center; gap: .5rem;
}
.marquee-item::before { content: '✦'; font-size: .6rem; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---- Section layout ---- */
.section { padding: 5rem 0; }
.section--alt { background: #fafafa; }
.section--dark { background: var(--color-primary); color: #fff; }
.section--dark p { color: rgba(255,255,255,.75); }
.section-header { margin-bottom: 3rem; }
.section-header--center { text-align: center; }
.section-header--center .amber-rule { margin-left: auto; margin-right: auto; }
.section-header--center p { margin-left: auto; margin-right: auto; }

/* ---- Éditorial editorial block — numbered sections ---- */
.editorial-block {
  display: grid; grid-template-columns: 1fr;
  gap: 3rem; align-items: center;
  padding: 4rem 0;
  border-top: 1px solid #e4e4e7;
}
.editorial-block:last-child { border-bottom: 1px solid #e4e4e7; }
.editorial-num-col { display: none; }
.editorial-content { order: 1; }
.editorial-visual { order: 2; }
@media (min-width: 768px) {
  .editorial-block {
    grid-template-columns: 6rem 1fr 1fr;
    gap: 2rem;
  }
  .editorial-num-col { display: flex; align-items: flex-start; padding-top: 0; }
  .editorial-block--reverse .editorial-content { order: 3; }
  .editorial-block--reverse .editorial-visual { order: 2; }
}

/* ---- Services Grid ---- */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: #e4e4e7;
  border: 1px solid #e4e4e7;
}
.service-card {
  background: #fff;
  padding: 2rem 1.5rem;
  transition: background .2s;
}
.service-card:hover { background: #fafafa; }
.service-card-icon {
  width: 40px; height: 40px;
  background: var(--color-primary);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1rem;
}
.service-card-icon svg { width: 20px; height: 20px; stroke: var(--color-accent); fill: none; stroke-width: 1.5; }
.service-card h3 { font-size: 1.05rem; margin-bottom: .5rem; }
.service-card p { font-size: .9rem; color: #6b7280; max-width: none; }
@media (min-width: 600px) { .services-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .services-grid { grid-template-columns: 1fr 1fr 1fr; } }

/* ---- Feature Badges ---- */
.feature-list { display: flex; flex-direction: column; gap: 1rem; margin-top: 1.5rem; }
.feature-item { display: flex; align-items: flex-start; gap: .75rem; }
.feature-dot { flex-shrink: 0; width: 8px; height: 8px; background: var(--color-secondary); border-radius: 50%; margin-top: .5rem; }
.feature-item p { font-size: .95rem; margin: 0; max-width: none; }

/* ---- CTA Strip ---- */
.cta-strip {
  background: var(--color-secondary);
  padding: 4rem 0;
  text-align: center;
  color: #fff;
}
.cta-strip h2 { color: #fff; margin-bottom: 1rem; }
.cta-strip p { color: rgba(255,255,255,.85); margin: 0 auto 2rem; }
.cta-strip .tel-link { color: rgba(255,255,255,.9); }
.cta-strip .tel-link:hover { color: #fff; }
.cta-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; }

/* ---- Groupement Band ---- */
.groupement-band {
  background: #111827; color: #fff;
  padding: 3rem 0;
}
.groupement-inner {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 2rem; justify-content: center;
}
.groupement-label {
  font-size: .75rem; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; color: rgba(255,255,255,.5);
}
.groupement-names { display: flex; flex-wrap: wrap; gap: 1.25rem; align-items: center; }
.groupement-tag {
  font-family: var(--font-display); font-size: 1rem; font-style: italic;
  color: rgba(255,255,255,.75); transition: color .2s;
}
.groupement-sep { color: var(--color-accent); font-size: 1.2rem; }

/* ---- Planity widget section ---- */
.planity-section { padding: 5rem 0; background: #fafafa; }
.planity-frame {
  width: 100%; min-height: 420px;
  border: none; display: block;
  background: #f3f4f6;
}
.planity-fallback { text-align: center; padding: 3rem 1rem; }
.planity-fallback p { margin: 0 auto 1.5rem; max-width: 50ch; }

/* ---- About ---- */
.about-grid {
  display: grid; grid-template-columns: 1fr;
  gap: 3rem; align-items: start;
}
@media (min-width: 768px) { .about-grid { grid-template-columns: 1fr 1fr; } }
.team-list { display: flex; flex-direction: column; gap: 1.25rem; margin-top: 1.5rem; }
.team-member { padding: 1.25rem; border-left: 3px solid var(--color-accent); background: #fff; }
.team-member h4 { font-size: 1rem; font-family: var(--font-display); margin-bottom: .25rem; }
.team-member p { font-size: .88rem; color: #6b7280; margin: 0; max-width: none; }

/* ---- Contact ---- */
.contact-grid {
  display: grid; grid-template-columns: 1fr;
  gap: 3rem;
}
@media (min-width: 768px) { .contact-grid { grid-template-columns: 1fr 1fr; } }
.contact-info h3 { font-size: 1.1rem; margin-bottom: 1rem; }
.contact-details { display: flex; flex-direction: column; gap: 1rem; }
.contact-detail { display: flex; gap: .75rem; align-items: flex-start; }
.contact-detail-icon { flex-shrink: 0; width: 20px; margin-top: .2rem; }
.contact-detail-icon svg { width: 18px; height: 18px; stroke: var(--color-secondary); fill: none; stroke-width: 1.5; }
.contact-detail-text { font-size: .95rem; }
.contact-detail-text strong { display: block; font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: #9ca3af; margin-bottom: .15rem; }
.contact-detail-text a { color: var(--color-secondary); font-weight: 600; }
.contact-detail-text a:hover { text-decoration: underline; }

/* ---- Map ---- */
.map-wrapper { border-radius: 2px; overflow: hidden; height: 300px; margin-top: 2rem; }
.map-wrapper iframe { width: 100%; height: 100%; border: none; display: block; }

/* ---- Form ---- */
.contact-form { display: flex; flex-direction: column; gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: .35rem; }
.form-group label { font-size: .82rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: #6b7280; }
.form-group input, .form-group textarea, .form-group select {
  padding: .75rem 1rem;
  border: 1.5px solid #e4e4e7; border-radius: 2px;
  font-family: var(--font-body); font-size: .95rem;
  color: var(--color-text); background: #fff;
  transition: border-color .2s;
  width: 100%;
}
.form-group input:focus, .form-group textarea:focus {
  outline: none; border-color: var(--color-secondary);
  box-shadow: 0 0 0 3px rgba(225,29,72,.1);
}
.form-group textarea { resize: vertical; min-height: 130px; }
.form-note { font-size: .8rem; color: #9ca3af; }
.form-submit .btn { width: 100%; justify-content: center; }

/* ---- RGPD banner ---- */
.rgpd-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 999;
  background: var(--color-primary); color: rgba(255,255,255,.85);
  padding: 1rem 1.25rem;
  display: flex; flex-wrap: wrap; gap: .75rem; align-items: center;
  border-top: 2px solid var(--color-accent);
  font-size: .82rem;
}
.rgpd-banner.is-hidden { display: none; }
.rgpd-banner p { flex: 1; margin: 0; min-width: 200px; }
.rgpd-actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.rgpd-btn {
  padding: .4rem .9rem; border-radius: 2px; cursor: pointer; font-size: .8rem; font-weight: 600;
  border: 1.5px solid transparent; background: var(--color-secondary); color: #fff;
  transition: background .2s;
}
.rgpd-btn:hover { background: #be123c; }
.rgpd-btn--outline { background: transparent; border-color: rgba(255,255,255,.4); color: rgba(255,255,255,.8); }
.rgpd-btn--outline:hover { border-color: #fff; color: #fff; }

/* ---- Footer ---- */
.site-footer {
  background: var(--color-primary);
  color: rgba(255,255,255,.6);
  padding: 4rem 0 2rem;
}
.footer-inner {
  display: grid; grid-template-columns: 1fr;
  gap: 2.5rem; margin-bottom: 3rem;
}
@media (min-width: 600px) { .footer-inner { grid-template-columns: 1.5fr 1fr 1fr; } }
.footer-brand-text {
  font-family: var(--font-display); font-size: 1.1rem; font-weight: 600;
  color: #fff; margin-bottom: .5rem;
}
.footer-tagline { font-size: .85rem; color: rgba(255,255,255,.5); }
.footer-col h4 {
  font-size: .7rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: rgba(255,255,255,.4); margin-bottom: .9rem;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: .5rem; }
.footer-col ul a { font-size: .9rem; color: rgba(255,255,255,.6); transition: color .2s; }
.footer-col ul a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 1.5rem;
  display: flex; flex-wrap: wrap; justify-content: space-between;
  align-items: center; gap: 1rem; font-size: .8rem;
}
.footer-bottom a { color: rgba(255,255,255,.5); }
.footer-bottom a:hover { color: rgba(255,255,255,.8); }

/* ---- Breadcrumb ---- */
.breadcrumb { font-size: .82rem; color: #9ca3af; display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; margin-bottom: 1.5rem; }
.breadcrumb a { color: var(--color-secondary); }
.breadcrumb sep { color: #d1d5db; }

/* ---- Animations ---- */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(24px); transition: opacity .55s ease, transform .55s ease; }
  .reveal.is-visible { opacity: 1; transform: none; }

  @supports (animation-timeline: scroll()) {
    .reveal {
      opacity: 0; transform: translateY(20px);
      animation: reveal-anim linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 30%;
    }
    .reveal.is-visible { animation: none; opacity: 1; transform: none; }
  }
  @keyframes reveal-anim {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: none; }
  }

  .hero-text > * { opacity: 0; transform: translateY(16px); }
  .hero-text > *.loaded { opacity: 1; transform: none; transition: opacity .6s ease, transform .6s ease; }
  .hero-text > *:nth-child(1).loaded { transition-delay: .05s; }
  .hero-text > *:nth-child(2).loaded { transition-delay: .15s; }
  .hero-text > *:nth-child(3).loaded { transition-delay: .25s; }
  .hero-text > *:nth-child(4).loaded { transition-delay: .35s; }
  .hero-text > *:nth-child(5).loaded { transition-delay: .45s; }
  .hero-text > *:nth-child(6).loaded { transition-delay: .5s; }
}

/* ---- Accessibility ---- */
:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ================================================================
   ANIMATION PASS — WEB-5380
   Beach Hair Studio · Template : Éditorial Artisan
   CSS-first · IO fallback section-num via main.js
   ================================================================ */

@media (prefers-reduced-motion: no-preference) {

  /* 1. Nav desktop — soulignement amber coulissant */
  .nav-links a { position: relative; }
  .nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 1.5px;
    background: var(--color-accent);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform .25s ease;
  }
  .nav-links a:hover::after,
  .nav-links a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
  .nav-links .nav-cta::after { display: none; }

  /* 2. Hamburger → ✕ */
  .nav-toggle[aria-expanded="true"] .hamburger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .nav-toggle[aria-expanded="true"] .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
  }
  .nav-toggle[aria-expanded="true"] .hamburger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  /* 3. Menu mobile — coulissement vertical */
  .nav-mobile {
    display: flex;
    max-height: 0;
    overflow: hidden;
    padding-top: 0;
    padding-bottom: 0;
    border-top-width: 0;
    transition: max-height .32s ease, padding-top .32s ease, padding-bottom .32s ease;
  }
  .nav-mobile.is-open {
    max-height: 440px;
    padding-top: 1.25rem;
    padding-bottom: 1.75rem;
    border-top-width: 1px;
  }

  /* 4. Visual placeholder — gradient shift + lift au survol */
  .visual-placeholder {
    background-size: 200% 200%;
    background-position: 0% 0%;
    transition: background-position .8s ease, transform .3s ease;
  }
  .visual-placeholder:hover { background-position: 100% 100%; transform: translateY(-3px) scale(1.01); }
  .visual-placeholder--hero:hover { transform: scale(1.01); }

  /* 5a. Section-num — entrée au scroll (IO fallback non-Chromium) */
  .section-num {
    opacity: 0;
    transform: scale(.75);
    transition: opacity .7s ease .1s, transform .7s ease .1s;
  }
  .section-num.is-visible { opacity: .18; transform: scale(1); }

  /* 5b. Section-num — scroll-driven Chromium 115+ */
  @supports (animation-timeline: scroll()) {
    .section-num {
      transition: none;
      animation: section-num-reveal linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 45%;
    }
    @keyframes section-num-reveal {
      from { opacity: 0; transform: scale(.75); }
      to   { opacity: .18; transform: scale(1); }
    }
  }

  /* 6. Amber-rule — croissance lors du reveal */
  .reveal .amber-rule {
    display: block;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .45s ease .15s;
  }
  .reveal.is-visible .amber-rule { transform: scaleX(1); }

  /* 7. Boutons — micro-lift au survol */
  .btn { transition: background .2s, border-color .2s, transform .18s ease, box-shadow .18s ease; }
  .btn:hover { transform: translateY(-2px); box-shadow: 0 4px 14px rgba(0,0,0,.13); }
  .btn:active { transform: translateY(0); box-shadow: none; }

  /* 8. Cartes service — lift au survol */
  .service-card { transition: background .2s, transform .25s ease, box-shadow .25s ease; }
  .service-card:hover { transform: translateY(-3px); box-shadow: 0 8px 28px rgba(0,0,0,.07); }

  /* 9. Membres d'équipe — hover accent */
  .team-member { transition: border-color .3s ease, background .3s ease; }
  .team-member:hover { border-color: var(--color-secondary); background: #fff8f9; }

}

/* ---- Animation pass — WEB-5377 ---- */
@media (prefers-reduced-motion: no-preference) {

  /* 1 — Visual placeholder: shimmer sweep + lift au survol */
  .visual-placeholder {
    transition: transform .35s ease, box-shadow .35s ease;
  }
  .visual-placeholder::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(
      120deg,
      transparent 25%,
      rgba(255,255,255,.18) 50%,
      transparent 75%
    );
    background-size: 200% 100%;
    background-position: -100% 0;
    transition: background-position .55s ease;
    pointer-events: none;
  }
  .visual-placeholder:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 28px rgba(0,0,0,.12);
  }
  .visual-placeholder:hover::after {
    background-position: 200% 0;
  }

  /* 2 — Hamburger → X morph à l'ouverture du menu mobile */
  .nav-toggle[aria-expanded="true"] .hamburger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .nav-toggle[aria-expanded="true"] .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
  }
  .nav-toggle[aria-expanded="true"] .hamburger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  /* 3 — Amber rule grandit au scroll reveal (délai 0.15s pour laisser le texte apparaître d'abord) */
  .reveal .amber-rule {
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .5s cubic-bezier(.22,.61,.36,1) .15s;
  }
  .reveal.is-visible .amber-rule {
    transform: scaleX(1);
  }

  /* 4 — Editorial block: border-top vire à l'accent au survol */
  .editorial-block {
    transition: border-top-color .35s ease;
  }
  .editorial-block:hover {
    border-top-color: var(--color-accent);
  }

  /* 5 — Nav links: soulignement animé (croît de gauche à droite) */
  .nav-links a:not(.nav-cta) {
    background-image: linear-gradient(currentColor, currentColor);
    background-repeat: no-repeat;
    background-position: 0% 100%;
    background-size: 0% 1.5px;
    transition: color .2s, background-size .25s ease;
  }
  .nav-links a:not(.nav-cta):hover,
  .nav-links a:not(.nav-cta)[aria-current="page"] {
    background-size: 100% 1.5px;
  }

}

/* ================================================================
   ANIMATION PASS — WEB-5386
   Beach Hair Studio · Compléments : breathe-loop + CTA ring-pulse
   ================================================================ */

@media (prefers-reduced-motion: no-preference) {

  /* 1. Visual placeholder — respiration idle (opacity) */
  @keyframes breathe {
    0%, 100% { opacity: .85; }
    50%       { opacity: 1;   }
  }
  .visual-placeholder { animation: breathe 6s ease-in-out infinite; }
  .visual-placeholder:hover,
  .visual-placeholder:focus-within { animation-play-state: paused; }

  /* 2. CTA "Réserver" — ring-pulse accent ambre au survol */
  @keyframes ring-pulse {
    0%   { box-shadow: 0 0 0 0   rgba(245,158,11,.55); }
    70%  { box-shadow: 0 0 0 10px rgba(245,158,11,0);  }
    100% { box-shadow: 0 0 0 0   rgba(245,158,11,0);   }
  }
  .btn--primary:hover,
  .btn--amber:hover,
  a[href*="planity"]:hover { animation: ring-pulse .6s ease-out; }

}
