@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Source+Sans+3:wght@300;400;600&display=swap');
@import '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);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
ul[role="list"] { list-style: none; }
a { color: inherit; text-decoration: none; }

/* ── Screen reader only ── */
.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;
}

/* ── Skip link ── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--color-secondary);
  color: #fff;
  padding: .5rem 1rem;
  border-radius: 0 0 4px 4px;
  font-weight: 600;
  z-index: 9999;
  transition: top .15s;
}
.skip-link:focus { top: 0; }

/* ── Layout ── */
.container {
  width: min(100%, 1180px);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

/* ── Typography ── */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.2;
  color: var(--color-primary);
}
h1 { font-size: clamp(1.75rem, 5vw, 3rem); font-weight: 700; }
h2 { font-size: clamp(1.35rem, 3.5vw, 2.25rem); font-weight: 600; }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.5rem); font-weight: 600; }
h4 { font-size: 1.05rem; font-weight: 600; }

p { max-width: 68ch; }

.section-label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--color-secondary);
  margin-bottom: .75rem;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1.5rem;
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background .2s, color .2s, border-color .2s;
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary {
  background: var(--color-secondary);
  color: #fff;
  border-color: var(--color-secondary);
}
.btn-primary:hover, .btn-primary:focus-visible {
  background: #be1a3f;
  border-color: #be1a3f;
}
.btn-outline {
  background: transparent;
  color: var(--color-secondary);
  border-color: var(--color-secondary);
}
.btn-outline:hover, .btn-outline:focus-visible {
  background: var(--color-secondary);
  color: #fff;
}
.btn-dark {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}
.btn-dark:hover, .btn-dark:focus-visible {
  background: #2d2d31;
  border-color: #2d2d31;
}
.btn-lg { padding: 1rem 2rem; font-size: 1.1rem; }

:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 3px; }

/* ── Visual Placeholders (spec WEB-715) ── */
.visual-placeholder {
  display: block;
  width: 100%;
  border-radius: 8px;
  aspect-ratio: 16 / 9;
  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="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-aspect="21:9"] { aspect-ratio: 21 / 9; }

.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));
}

/* ── Header ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-primary);
  box-shadow: 0 2px 12px rgba(0,0,0,.3);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 1rem;
}

.logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}
.logo img {
  height: 36px;
  width: auto;
  filter: brightness(0) invert(1);
}

/* ── Nav ── */
.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: 4px;
}
.nav-toggle__bar {
  display: block;
  width: 100%;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform .25s, opacity .25s;
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.main-nav {
  display: none;
  position: absolute;
  top: 64px;
  left: 0;
  right: 0;
  background: var(--color-primary);
  padding: 1rem 1.25rem 1.5rem;
  border-top: 1px solid rgba(255,255,255,.1);
}
.main-nav.is-open { display: block; }

.main-nav ul {
  display: flex;
  flex-direction: column;
  gap: .25rem;
}

.main-nav a {
  display: block;
  padding: .65rem .75rem;
  color: rgba(255,255,255,.85);
  font-weight: 600;
  font-size: 1rem;
  border-radius: 4px;
  transition: color .15s, background .15s;
}
.main-nav a:hover, .main-nav a:focus-visible {
  color: #fff;
  background: rgba(255,255,255,.08);
}
.main-nav a[aria-current="page"] {
  color: var(--color-accent);
}
.main-nav a.nav-cta {
  color: var(--color-secondary);
  font-weight: 700;
}

/* ── Hero ── */
.hero {
  position: relative;
  overflow: hidden;
}
.hero .visual-placeholder {
  border-radius: 0;
}
.hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem 1.25rem;
  background: linear-gradient(to top, rgba(24,24,27,.85) 0%, rgba(24,24,27,.2) 60%, transparent 100%);
}
.hero-content h1 { color: #fff; }
.hero-content .hero-sub {
  color: rgba(255,255,255,.85);
  font-size: 1.05rem;
  margin-top: .5rem;
  max-width: 52ch;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 1.25rem;
}

/* ── Section spacing ── */
.section { padding-block: 3.5rem; }
.section--alt { background: #F9FAFB; }
.section--dark {
  background: var(--color-primary);
  color: #fff;
}
.section--dark h2, .section--dark h3 { color: #fff; }
.section-header { margin-bottom: 2rem; }
.section-header p {
  color: #6B7280;
  margin-top: .5rem;
  font-size: 1.05rem;
}

/* ── Contact bar ── */
.contact-bar {
  background: var(--color-secondary);
  padding: 1rem 0;
}
.contact-bar-inner {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  align-items: flex-start;
}
.contact-bar a {
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
}
.contact-bar .hours {
  color: rgba(255,255,255,.85);
  font-size: .9rem;
}

/* ── Feature cards ── */
.features-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}
.feature-card {
  padding: 1.5rem;
  border-radius: 8px;
  border-left: 4px solid var(--color-accent);
  background: #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.feature-card h3 {
  font-size: 1.1rem;
  margin-bottom: .5rem;
}
.feature-card p { color: #4B5563; font-size: .95rem; max-width: none; }

/* ── Service cards ── */
.services-grid {
  display: grid;
  gap: 1.75rem;
  grid-template-columns: 1fr;
}
.service-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,.07);
  transition: transform .2s, box-shadow .2s;
}
.service-card:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(0,0,0,.1); }
.service-card-body { padding: 1.25rem; }
.service-card-body h3 { margin-bottom: .5rem; }
.service-card-body p { color: #4B5563; font-size: .95rem; max-width: none; }
.service-card-body ul {
  margin-top: .75rem;
  padding-left: 1.1rem;
  color: #4B5563;
  font-size: .9rem;
  display: flex;
  flex-direction: column;
  gap: .25rem;
}
.service-card-body ul li::marker { color: var(--color-secondary); }

/* ── CTA band ── */
.cta-band {
  background: linear-gradient(135deg, var(--color-primary) 60%, #2d1a1a);
  padding-block: 3rem;
  text-align: center;
}
.cta-band h2 { color: #fff; margin-bottom: .75rem; }
.cta-band p { color: rgba(255,255,255,.75); margin-inline: auto; margin-bottom: 1.5rem; }
.cta-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

/* ── Intro section ── */
.intro-content { display: grid; gap: 2rem; }
.intro-text p + p { margin-top: 1rem; }
.intro-text p { color: #374151; }
.accent-line {
  display: block;
  width: 48px;
  height: 3px;
  background: var(--color-secondary);
  margin-top: .75rem;
  margin-bottom: 1.5rem;
}

/* ── Quote / créole ── */
.quote-créole {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--color-secondary);
  border-left: 3px solid var(--color-accent);
  padding-left: 1rem;
  margin-block: 1.5rem;
}

/* ── Booking section ── */
.booking-widget-wrap {
  background: #F9FAFB;
  border-radius: 10px;
  padding: 2rem 1.5rem;
  text-align: center;
  border: 2px dashed color-mix(in srgb, var(--color-primary) 20%, var(--color-bg));
}
.booking-widget-wrap h3 { margin-bottom: .75rem; }
.booking-widget-wrap p { color: #6B7280; margin-inline: auto; margin-bottom: 1.25rem; font-size: .95rem; }
.booking-options {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-top: 1.25rem;
}
.divider-or {
  font-size: .85rem;
  color: #9CA3AF;
  font-weight: 600;
}

/* ── Contact ── */
.contact-grid { display: grid; gap: 2rem; }
.contact-info-card {
  background: var(--color-primary);
  color: #fff;
  border-radius: 10px;
  padding: 2rem 1.5rem;
}
.contact-info-card h2 { color: #fff; margin-bottom: 1.5rem; }
.contact-detail {
  display: flex;
  gap: .75rem;
  align-items: flex-start;
  margin-bottom: 1.25rem;
}
.contact-detail-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  background: rgba(255,255,255,.1);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.contact-detail-icon svg { width: 18px; height: 18px; fill: var(--color-accent); }
.contact-detail-content { font-size: .95rem; }
.contact-detail-content strong { display: block; color: rgba(255,255,255,.6); font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: .2rem; }
.contact-detail-content a { color: #fff; font-weight: 600; }
.contact-detail-content a:hover { color: var(--color-accent); }

.contact-form-wrap {
  background: #fff;
  border-radius: 10px;
  padding: 2rem 1.5rem;
  box-shadow: 0 2px 12px rgba(0,0,0,.07);
}
.contact-form-wrap h3 { margin-bottom: 1.25rem; }
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  font-size: .875rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: .4rem;
}
.form-group input, .form-group textarea, .form-group select {
  width: 100%;
  padding: .75rem 1rem;
  border: 1.5px solid #D1D5DB;
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-text);
  background: #FAFAFA;
  transition: border-color .15s;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  outline: none;
  border-color: var(--color-secondary);
  background: #fff;
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-note {
  font-size: .78rem;
  color: #9CA3AF;
  margin-top: 1rem;
  line-height: 1.5;
}

/* ── Map ── */
.map-wrap {
  border-radius: 10px;
  overflow: hidden;
  margin-top: 1.5rem;
  border: 1px solid #E5E7EB;
}
.map-wrap iframe { display: block; border: 0; width: 100%; height: 340px; }

/* ── Footer ── */
.site-footer {
  background: var(--color-primary);
  color: rgba(255,255,255,.75);
  padding-block: 2.5rem 1.5rem;
}
.footer-grid {
  display: grid;
  gap: 2rem;
  margin-bottom: 2rem;
}
.footer-brand .logo-footer {
  display: inline-flex;
  margin-bottom: 1rem;
}
.footer-brand .logo-footer img {
  height: 32px;
  filter: brightness(0) invert(1);
}
.footer-brand p { font-size: .9rem; line-height: 1.6; max-width: 32ch; }
.footer-col h4 {
  color: #fff;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: .75rem;
}
.footer-col ul { display: flex; flex-direction: column; gap: .35rem; }
.footer-col a { font-size: .9rem; transition: color .15s; }
.footer-col a:hover { color: var(--color-accent); }
.footer-col address { font-style: normal; font-size: .9rem; line-height: 1.7; }
.footer-col address a { color: rgba(255,255,255,.75); }
.footer-col address a:hover { color: var(--color-accent); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  font-size: .8rem;
}
.footer-bottom a { color: rgba(255,255,255,.6); text-decoration: underline; }
.footer-bottom a:hover { color: var(--color-accent); }
.accent-dot { color: var(--color-accent); }

/* ── Sticky CTA (mobile) ── */
.sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90;
  background: var(--color-secondary);
  color: #fff;
  text-align: center;
  padding: 1rem 1.5rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: .02em;
  text-decoration: none;
  transition: background .2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  box-shadow: 0 -3px 12px rgba(0,0,0,.15);
}
.sticky-cta:hover { background: #be1a3f; color: #fff; }

/* Push body bottom so sticky CTA doesn't cover content */
body { padding-bottom: 60px; }

/* ── Page hero (inner pages) ── */
.page-hero {
  background: var(--color-primary);
  padding-block: 3rem 2.5rem;
  text-align: center;
}
.page-hero h1 { color: #fff; }
.page-hero .page-hero-sub {
  color: rgba(255,255,255,.75);
  margin-top: .5rem;
  font-size: 1.05rem;
  margin-inline: auto;
}
.breadcrumb {
  display: flex;
  justify-content: center;
  gap: .5rem;
  font-size: .85rem;
  color: rgba(255,255,255,.5);
  margin-bottom: .75rem;
}
.breadcrumb a { color: rgba(255,255,255,.7); }
.breadcrumb a:hover { color: var(--color-accent); }
.breadcrumb span[aria-hidden] { color: rgba(255,255,255,.3); }

/* ── About page ── */
.about-grid { display: grid; gap: 2.5rem; }
.about-text h2 { margin-top: 2rem; }
.about-text h2:first-child { margin-top: 0; }
.about-text p { color: #374151; margin-bottom: 1rem; }

/* ── RGPD badge ── */
.rgpd-note {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  background: #F0FFF4;
  border: 1px solid #BBF7D0;
  border-radius: 6px;
  padding: 1rem;
  font-size: .85rem;
  color: #065F46;
  margin-top: 1.5rem;
}

/* ── Mentions légales ── */
.legal-content { max-width: 72ch; }
.legal-content h2 { margin-top: 2rem; font-size: 1.25rem; }
.legal-content p, .legal-content li { color: #374151; margin-bottom: .5rem; }
.legal-content ul { padding-left: 1.5rem; }

/* ── ─── Responsive ── */
@media (min-width: 640px) {
  .contact-bar-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  .booking-options { flex-direction: row; align-items: center; }
}

@media (min-width: 768px) {
  .nav-toggle { display: none; }
  .main-nav {
    display: flex !important;
    position: static;
    background: transparent;
    padding: 0;
    border: 0;
  }
  .main-nav ul { flex-direction: row; align-items: center; gap: .25rem; }
  .main-nav a { padding: .45rem .75rem; font-size: .9rem; }
  .main-nav a.nav-cta {
    background: var(--color-secondary);
    color: #fff;
    border-radius: 4px;
    padding: .45rem .9rem;
  }
  .main-nav a.nav-cta:hover { background: #be1a3f; }

  body { padding-bottom: 0; }
  .sticky-cta { display: none; }

  .hero-content { padding: 2.5rem; }

  .features-grid { grid-template-columns: repeat(3, 1fr); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
  .about-grid { grid-template-columns: 1fr 1.6fr; align-items: start; }
  .intro-content { grid-template-columns: 1fr 1fr; align-items: start; }
}

@media (min-width: 1024px) {
  .hero-content { padding: 3rem 3rem; }
  h1 { font-size: 3rem; }
  .section { padding-block: 5rem; }
}

/* ── Fade-in animation ── */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .5s ease, transform .5s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: none;
}

/* ══════════════════════════════════════════════════════════
   Animation pass WEB-5399 — Nad'Coiff / Sainte-Rose
   Catalogue : hero-rise · card-hover · placeholder · stagger
   Tous effets sous prefers-reduced-motion: no-preference
   ══════════════════════════════════════════════════════════ */

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

  /* ── 1. Hero staged entrance (above-fold, CSS keyframe) ── */
  @keyframes nadcoiff-rise {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: none; }
  }
  .hero-content h1    { animation: nadcoiff-rise .6s ease .12s both; }
  .hero-content .hero-sub { animation: nadcoiff-rise .6s ease .28s both; }
  .hero-cta           { animation: nadcoiff-rise .6s ease .44s both; }

  /* ── 2. Feature card hover lift ── */
  .feature-card {
    transition: transform .22s ease, box-shadow .22s ease, border-left-color .22s ease;
  }
  .feature-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,.1);
    border-left-color: var(--color-secondary);
  }

  /* ── 3. Feature / service grid scroll-reveal stagger ── */
  .features-grid .fade-in:nth-child(2) { transition-delay: .1s; }
  .features-grid .fade-in:nth-child(3) { transition-delay: .2s; }
  .services-grid  .fade-in:nth-child(2) { transition-delay: .12s; }

  /* ── 4. Visual placeholder hover brighten (générique) ── */
  .visual-placeholder {
    transition: filter .35s ease;
  }
  .visual-placeholder:hover {
    filter: brightness(1.07) saturate(1.1);
  }

  /* ── 5. Service card : zoom placeholder au survol de la carte ── */
  .service-card .visual-placeholder {
    transition: transform .4s ease, filter .35s ease;
  }
  .service-card:hover .visual-placeholder {
    transform: scale(1.04);
    filter: brightness(1.06);
  }

  /* ── 6. Accent line grow (scroll-driven Chromium 115+, fallback : plein) ── */
  @keyframes nadcoiff-line-grow {
    from { transform: scaleX(0); }
    to   { transform: scaleX(1); }
  }
  @supports (animation-timeline: view()) {
    .accent-line {
      transform-origin: left center;
      animation: nadcoiff-line-grow linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 40%;
    }
  }

  /* ── Focus ring : offset animé (accessible) ── */
  :focus-visible {
    transition: outline-offset .15s ease;
    outline-offset: 5px;
  }

}

/* ── Safety net : prefers-reduced-motion (norme WCAG 2.3.1) ── */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  /* Garantit la visibilité des éléments fade-in même sans JS */
  .fade-in {
    opacity: 1 !important;
    transform: none !important;
  }
}
