@import url("tokens.css");
@import url("https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;1,400&family=Lora:wght@400;600&display=swap");

/* ─── 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.7;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }

a { color: var(--color-primary); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 3px;
  border-radius: 3px;
}

/* ─── Typography ─── */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.25;
  color: var(--color-text);
}

h1 { font-size: clamp(1.75rem, 4vw, 3rem); margin-bottom: 1.25rem; }
h2 { font-size: clamp(1.4rem, 3vw, 2.2rem); margin-bottom: 1rem; }
h3 { font-size: clamp(1.15rem, 2.5vw, 1.6rem); margin-bottom: 0.75rem; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

ul { list-style: none; }

/* ─── Layout ─── */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

section { padding: 4rem 0; }

/* ─── Visual Placeholder (WEB-715) ─── */
.visual-placeholder {
  display: block;
  width: 100%;
  border-radius: 10px;
  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 & Nav ─── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid color-mix(in srgb, var(--color-primary) 15%, var(--color-bg));
  transition: box-shadow 0.3s ease;
}
.site-header.scrolled { box-shadow: 0 2px 20px rgba(14, 116, 144, 0.12); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1.25rem;
  max-width: 1100px;
  margin: 0 auto;
}

.site-logo {
  height: 40px;
  width: auto;
}
.site-logo svg, .site-logo img { height: 40px; width: auto; }

.site-nav { display: flex; gap: 0.25rem; align-items: center; }
.site-nav a {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text);
  padding: 0.45rem 0.85rem;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
}
.site-nav a:hover, .site-nav a[aria-current="page"] {
  color: var(--color-primary);
  background: color-mix(in srgb, var(--color-primary) 8%, transparent);
  text-decoration: none;
}
.site-nav a[aria-current="page"] { font-weight: 700; }

.nav-cta {
  background: var(--color-primary) !important;
  color: #fff !important;
  border-radius: 6px;
  padding: 0.5rem 1.1rem !important;
  font-weight: 700 !important;
  transition: background 0.2s, transform 0.15s !important;
}
.nav-cta:hover {
  background: color-mix(in srgb, var(--color-primary) 85%, #000) !important;
  transform: translateY(-1px);
  text-decoration: none !important;
}

/* ─── Burger ─── */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 6px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─── Hero ─── */
.hero {
  position: relative;
  overflow: hidden;
  padding: 5rem 0 4rem;
  background:
    linear-gradient(
      160deg,
      color-mix(in srgb, var(--color-primary) 8%, var(--color-bg)) 0%,
      var(--color-bg) 60%,
      color-mix(in srgb, var(--color-secondary) 12%, var(--color-bg)) 100%
    );
}
.hero-inner {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  align-items: flex-start;
}
.hero-content { max-width: 640px; }
.hero-tagline {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-primary);
  background: color-mix(in srgb, var(--color-primary) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--color-primary) 25%, transparent);
  padding: 0.35rem 0.85rem;
  border-radius: 100px;
  margin-bottom: 1.25rem;
}
.hero h1 { font-style: italic; }
.hero-intro {
  font-size: 1.05rem;
  color: color-mix(in srgb, var(--color-text) 75%, var(--color-bg));
  margin-bottom: 1.75rem;
  max-width: 540px;
}
.hero-cta-group { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, transform 0.15s, box-shadow 0.2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.1); text-decoration: none; }
.btn:focus-visible { outline: 3px solid var(--color-primary); outline-offset: 3px; }

.btn-primary {
  background: var(--color-primary);
  color: #fff;
}
.btn-primary:hover { background: color-mix(in srgb, var(--color-primary) 85%, #000); color: #fff; }

.btn-secondary {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}
.btn-secondary:hover {
  background: color-mix(in srgb, var(--color-primary) 8%, transparent);
}

.btn-tel {
  background: var(--color-secondary);
  color: var(--color-text);
}
.btn-tel:hover { background: color-mix(in srgb, var(--color-secondary) 88%, #000); color: var(--color-text); }

.hero-visual { width: 100%; }

/* ─── Intro créole ─── */
.creole-intro {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--color-primary);
  border-left: 3px solid var(--color-secondary);
  padding: 0.5rem 1rem;
  margin-bottom: 1.5rem;
}

/* ─── Section styles ─── */
.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.section-alt {
  background: color-mix(in srgb, var(--color-primary) 4%, var(--color-bg));
}
.section-dark {
  background: var(--color-primary);
  color: #fff;
}
.section-dark h2, .section-dark h3, .section-dark p { color: #fff; }
.section-warm {
  background: color-mix(in srgb, var(--color-secondary) 10%, var(--color-bg));
}

/* ─── Cards grid ─── */
.cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}

.card {
  background: var(--color-bg);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(14, 116, 144, 0.08);
  transition: transform 0.25s, box-shadow 0.25s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 8px 28px rgba(14, 116, 144, 0.14); }

.card-body { padding: 1.5rem; }
.card-body h3 { margin-bottom: 0.5rem; }
.card-body p { font-size: 0.95rem; color: color-mix(in srgb, var(--color-text) 75%, var(--color-bg)); }

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--color-primary) 12%, var(--color-bg));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

/* ─── Feature list ─── */
.feature-list { display: flex; flex-direction: column; gap: 0.6rem; margin-top: 1rem; }
.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.95rem;
}
.feature-list li::before {
  content: "✦";
  color: var(--color-secondary);
  font-size: 0.8rem;
  margin-top: 0.25rem;
  flex-shrink: 0;
}

/* ─── Two-column layout ─── */
.two-col {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}
.two-col.reverse .two-col-visual { order: -1; }

/* ─── CTA band ─── */
.cta-band {
  background: var(--color-primary);
  color: #fff;
  text-align: center;
  padding: 4rem 1.25rem;
}
.cta-band h2 { color: #fff; margin-bottom: 0.75rem; }
.cta-band p { color: rgba(255,255,255,0.85); margin-bottom: 1.75rem; max-width: 520px; margin-left: auto; margin-right: auto; }
.cta-band .btn-secondary {
  border-color: #fff;
  color: #fff;
}
.cta-band .btn-secondary:hover { background: rgba(255,255,255,0.12); }

/* ─── Contact ─── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-top: 2rem;
}

.contact-info { display: flex; flex-direction: column; gap: 1.25rem; }
.contact-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.contact-item-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--color-primary) 12%, var(--color-bg));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.contact-item-text h3 { font-size: 1rem; margin-bottom: 0.25rem; }
.contact-item-text p, .contact-item-text a { font-size: 0.95rem; }
.contact-item-text a { color: var(--color-primary); }

/* ─── Form ─── */
.contact-form { display: flex; flex-direction: column; gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-group label {
  font-size: 0.875rem;
  font-weight: 600;
  color: color-mix(in srgb, var(--color-text) 85%, transparent);
}
.form-group input, .form-group textarea, .form-group select {
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 0.7rem 1rem;
  border: 1.5px solid color-mix(in srgb, var(--color-text) 20%, transparent);
  border-radius: 8px;
  background: var(--color-bg);
  color: var(--color-text);
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-primary) 15%, transparent);
}
.form-group textarea { min-height: 130px; resize: vertical; }
.form-privacy {
  font-size: 0.78rem;
  color: color-mix(in srgb, var(--color-text) 60%, transparent);
  line-height: 1.5;
}

/* ─── Map ─── */
.map-container {
  border-radius: 12px;
  overflow: hidden;
  margin-top: 2rem;
  box-shadow: 0 2px 12px rgba(14, 116, 144, 0.1);
}
.map-container iframe {
  display: block;
  width: 100%;
  height: 350px;
  border: none;
}

/* ─── Gallery grid ─── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

/* ─── Footer ─── */
.site-footer {
  background: color-mix(in srgb, var(--color-text) 94%, var(--color-bg));
  color: rgba(255,255,255,0.8);
  padding: 3.5rem 0 1.5rem;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}
.footer-brand p { font-size: 0.9rem; margin-top: 0.75rem; max-width: 300px; }
.footer-nav h4 { font-family: var(--font-display); color: #fff; margin-bottom: 0.75rem; font-size: 1rem; }
.footer-nav ul { display: flex; flex-direction: column; gap: 0.4rem; }
.footer-nav ul a { color: rgba(255,255,255,0.7); font-size: 0.9rem; transition: color 0.2s; }
.footer-nav ul a:hover { color: var(--color-secondary); text-decoration: none; }
.footer-contact h4 { font-family: var(--font-display); color: #fff; margin-bottom: 0.75rem; font-size: 1rem; }
.footer-contact p, .footer-contact a { font-size: 0.9rem; color: rgba(255,255,255,0.7); }
.footer-contact a:hover { color: var(--color-secondary); }
.footer-contact .tel-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--color-secondary);
  font-weight: 600;
  font-size: 1.05rem;
  margin-top: 0.5rem;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: space-between;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.45);
}
.footer-bottom a { color: rgba(255,255,255,0.45); }
.footer-bottom a:hover { color: rgba(255,255,255,0.7); }

/* ─── Page hero (inner pages) ─── */
.page-hero {
  padding: 4rem 0 3rem;
  background:
    linear-gradient(
      160deg,
      color-mix(in srgb, var(--color-primary) 8%, var(--color-bg)) 0%,
      var(--color-bg) 100%
    );
  border-bottom: 1px solid color-mix(in srgb, var(--color-primary) 12%, transparent);
}
.page-hero h1 { font-style: italic; margin-bottom: 0.5rem; }
.page-hero .breadcrumb {
  font-size: 0.85rem;
  color: color-mix(in srgb, var(--color-text) 55%, transparent);
  margin-bottom: 1rem;
}
.page-hero .breadcrumb a { color: var(--color-primary); }

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

/* ─── Scroll reveal animation ─── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.45s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .btn, .card, .site-header, .nav-cta, .nav-toggle span { transition: none !important; }
}

/* ─── Tablet (≥ 640px) ─── */
@media (min-width: 640px) {
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-inner { flex-direction: row; align-items: center; gap: 3rem; }
  .hero-content { flex: 1; }
  .hero-visual { flex: 0 0 42%; }
}

/* ─── Desktop (≥ 1024px) ─── */
@media (min-width: 1024px) {
  .cards-grid { grid-template-columns: repeat(3, 1fr); }
  .two-col { grid-template-columns: 1fr 1fr; }
  .two-col.reverse .two-col-visual { order: 0; }
  .contact-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
  section { padding: 5rem 0; }
  .hero { padding: 6rem 0 5rem; }
  .gallery-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ─── Animations Lot 11 — Experiencia ─── */
@media (prefers-reduced-motion: no-preference) {

  /* 1. Page entry fade (transitions inter-pages) */
  @keyframes xp-page-in {
    from { opacity: 0; }
    to   { opacity: 1; }
  }
  body { animation: xp-page-in 0.38s ease both; }

  /* 2. Hero entrance cinétique */
  @keyframes xp-slide-up {
    from { opacity: 0; transform: translateY(26px); }
    to   { opacity: 1; transform: translateY(0); }
  }
  @keyframes xp-fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
  }
  .hero-content {
    animation: xp-slide-up 0.75s cubic-bezier(0.22, 0.61, 0.36, 1) both;
  }
  /* hero-visual: fade uniquement (le parallax JS gère le transform) */
  .hero-visual {
    animation: xp-fade-in 0.85s ease 0.2s both;
  }

  /* 3. Section label micro-cascade (apparaît légèrement avant le h2) */
  .reveal .section-label {
    opacity: 0;
    transform: translateY(7px);
    transition: opacity 0.38s ease, transform 0.38s ease;
  }
  .reveal.visible .section-label { opacity: 1; transform: none; }

  /* 4. Feature list cascade apaisante */
  .feature-list li {
    opacity: 0;
    transform: translateX(-12px);
    transition: opacity 0.45s ease, transform 0.45s ease;
  }
  .reveal.visible .feature-list li { opacity: 1; transform: none; }
  .reveal.visible .feature-list li:nth-child(1) { transition-delay: 0.18s; }
  .reveal.visible .feature-list li:nth-child(2) { transition-delay: 0.30s; }
  .reveal.visible .feature-list li:nth-child(3) { transition-delay: 0.42s; }
  .reveal.visible .feature-list li:nth-child(4) { transition-delay: 0.54s; }
  .reveal.visible .feature-list li:nth-child(5) { transition-delay: 0.66s; }

  /* 5. Delays cascade plus apaisants (soins holistiques = respiration lente) */
  .reveal-delay-1 { transition-delay: 0.20s; }
  .reveal-delay-2 { transition-delay: 0.40s; }
  .reveal-delay-3 { transition-delay: 0.60s; }
  .reveal-delay-4 { transition-delay: 0.78s; }

  /* 6. Visual placeholder hover shimmer */
  .visual-placeholder {
    transition: transform 0.55s cubic-bezier(0.22, 0.61, 0.36, 1),
                box-shadow 0.55s ease;
    will-change: transform;
  }
  .card:hover .visual-placeholder,
  .two-col-visual:hover .visual-placeholder {
    transform: scale(1.025);
    box-shadow: 0 10px 36px rgba(14, 116, 144, 0.15);
  }

  /* 7. Card icon spring sur hover */
  @keyframes xp-icon-spring {
    0%, 100% { transform: scale(1); }
    45%       { transform: scale(1.18); }
    70%       { transform: scale(0.95); }
  }
  .card:hover .card-icon {
    animation: xp-icon-spring 0.42s cubic-bezier(0.34, 1.56, 0.64, 1);
  }

  /* 8. CTA band : halo lumineux au hover des boutons */
  .cta-band .btn { position: relative; overflow: hidden; }
  .cta-band .btn::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: rgba(255, 255, 255, 0.1);
    opacity: 0;
    transform: scaleX(0.5);
    transition: opacity 0.35s ease, transform 0.35s ease;
    pointer-events: none;
  }
  .cta-band .btn:hover::before { opacity: 1; transform: scaleX(1); }

  /* 9. Nav underline glide */
  .site-nav a:not(.nav-cta) { position: relative; }
  .site-nav a:not(.nav-cta)::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0.85rem;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    border-radius: 1px;
    transition: width 0.22s cubic-bezier(0.22, 0.61, 0.36, 1);
  }
  .site-nav a:not(.nav-cta):hover::after,
  .site-nav a[aria-current="page"]:not(.nav-cta)::after {
    width: calc(100% - 1.7rem);
  }

  /* 10. Page-hero h1 entrée douce (pages internes) */
  .page-hero h1 {
    animation: xp-slide-up 0.65s cubic-bezier(0.22, 0.61, 0.36, 1) 0.1s both;
  }
  .page-hero p {
    animation: xp-fade-in 0.6s ease 0.3s both;
  }
}

/* ─── Mobile nav ─── */
@media (max-width: 767px) {
  .nav-toggle { display: flex; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-bg);
    border-bottom: 2px solid color-mix(in srgb, var(--color-primary) 20%, transparent);
    flex-direction: column;
    padding: 1rem 1.25rem;
    gap: 0.25rem;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 0.65rem 1rem; border-radius: 8px; }
}
