/* ============================================================
   Styles du site
   Palette : crème, beige sable, rose poudré, châtaigne, or discret
   ============================================================ */

:root {
  --ease-soft: cubic-bezier(0.32, 0.72, 0, 1);
}

html { scroll-behavior: smooth; }
body {
  background: #FAF4EF;
  color: #3F302B;
  -webkit-font-smoothing: antialiased;
}

/* Grain doux fixe pour une texture « papier » premium */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Révélation au scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  filter: blur(6px);
  transition: opacity 0.9s var(--ease-soft), transform 0.9s var(--ease-soft), filter 0.9s var(--ease-soft);
}
.reveal.visible { opacity: 1; transform: translateY(0); filter: blur(0); }
.reveal-d1 { transition-delay: 0.12s; }
.reveal-d2 { transition-delay: 0.24s; }
.reveal-d3 { transition-delay: 0.36s; }

/* ---------- Nav flottante (pilule verre) ---------- */
.float-nav {
  background: rgba(250, 244, 239, 0.55);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  border: 1px solid rgba(140, 97, 87, 0.14);
  box-shadow: 0 8px 32px -16px rgba(63, 48, 43, 0.22);
  transition: background 0.6s var(--ease-soft), box-shadow 0.6s var(--ease-soft);
}
.float-nav.scrolled {
  background: rgba(250, 244, 239, 0.82);
  box-shadow: 0 14px 40px -18px rgba(63, 48, 43, 0.34);
}

.nav-link { position: relative; }
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px; left: 0;
  width: 0; height: 1px;
  background: #8C6157;
  transition: width 0.45s var(--ease-soft);
}
.nav-link:hover::after { width: 100%; }

/* ---------- Hamburger morph ---------- */
.burger { width: 26px; height: 16px; position: relative; }
.burger span {
  position: absolute; left: 0; width: 100%; height: 1.6px;
  background: #3F302B; border-radius: 2px;
  transition: transform 0.5s var(--ease-soft), opacity 0.3s ease, top 0.5s var(--ease-soft);
}
.burger span:nth-child(1) { top: 0; }
.burger span:nth-child(2) { top: 7px; }
.burger span:nth-child(3) { top: 14px; }
.burger.is-open span:nth-child(1) { top: 7px; transform: rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { top: 7px; transform: rotate(-45deg); }

/* ---------- Overlay menu mobile ---------- */
.mobile-overlay {
  position: fixed; inset: 0; z-index: 45;
  background: rgba(250, 244, 239, 0.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  opacity: 0; pointer-events: none;
  transition: opacity 0.5s var(--ease-soft);
}
.mobile-overlay.open { opacity: 1; pointer-events: auto; }
.mobile-overlay a {
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.6s var(--ease-soft), transform 0.6s var(--ease-soft);
}
.mobile-overlay.open a { opacity: 1; transform: translateY(0); }
.mobile-overlay.open a:nth-child(1) { transition-delay: 0.10s; }
.mobile-overlay.open a:nth-child(2) { transition-delay: 0.16s; }
.mobile-overlay.open a:nth-child(3) { transition-delay: 0.22s; }
.mobile-overlay.open a:nth-child(4) { transition-delay: 0.28s; }
.mobile-overlay.open a:nth-child(5) { transition-delay: 0.34s; }
.mobile-overlay.open a:nth-child(6) { transition-delay: 0.40s; }

/* ---------- Bouton premium (île + icône nichée) ---------- */
.btn-pill {
  display: inline-flex; align-items: center; gap: 0.6rem;
  border-radius: 9999px;
  transition: transform 0.5s var(--ease-soft), box-shadow 0.5s var(--ease-soft), background 0.5s var(--ease-soft);
}
.btn-pill:hover { transform: translateY(-2px); box-shadow: 0 16px 34px -14px rgba(140, 97, 87, 0.5); }
.btn-pill:active { transform: scale(0.98); }
.btn-pill .ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 9999px;
  transition: transform 0.5s var(--ease-soft);
}
.btn-pill:hover .ico { transform: translate(3px, -1px) scale(1.06); }

/* ---------- Roue de bulles (hero) ---------- */
.bubble-wheel {
  position: relative;
  width: 460px; height: 460px;
  animation: wheelSpin 44s linear infinite;
}
@keyframes wheelSpin { to { transform: rotate(360deg); } }
.bubble-wheel { --r: 180px; }
.bubble {
  position: absolute; top: 50%; left: 50%;
  width: 124px; height: 124px; margin: -62px;
  border-radius: 9999px;
  overflow: hidden;
  border: 3px solid rgba(250, 244, 239, 0.85);
  box-shadow: 0 14px 30px -12px rgba(63, 48, 43, 0.4);
  transform: rotate(var(--a)) translateY(calc(-1 * var(--r))) rotate(calc(-1 * var(--a)));
}
.bubble img { width: 100%; height: 100%; object-fit: cover; }
/* contre-rotation pour garder les photos droites */
.bubble-inner { width: 100%; height: 100%; animation: wheelSpinReverse 44s linear infinite; }
@keyframes wheelSpinReverse { to { transform: rotate(-360deg); } }

.wheel-center {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  text-align: center; z-index: 2;
}

/* ---------- Carte service (double bordure douce) ---------- */
.service-card {
  position: relative;
  display: block;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(140, 97, 87, 0.14);
  border-radius: 2rem;
  padding: 0.5rem;
  transition: transform 0.7s var(--ease-soft), box-shadow 0.7s var(--ease-soft);
}
.service-card .inner {
  border-radius: calc(2rem - 0.375rem);
  background: #FAF4EF;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.6);
  height: 100%;
  overflow: hidden;
}
.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 36px 60px -28px rgba(140, 97, 87, 0.42);
}
.service-card .thumb { overflow: hidden; }
.service-card .thumb img { transition: transform 1.1s var(--ease-soft); }
.service-card:hover .thumb img { transform: scale(1.07); }
.service-card .arrow { transition: transform 0.6s var(--ease-soft); }
.service-card:hover .arrow { transform: translate(4px, -4px); }

/* ---------- Slider avis ---------- */
.testimonial-slide { transition: opacity 0.8s var(--ease-soft); }
.dot { width: 9px; height: 9px; border-radius: 9999px; background: #EADBCB; transition: all 0.4s var(--ease-soft); }
.dot.active { background: #8C6157; width: 26px; }

/* ---------- FAQ ---------- */
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.55s var(--ease-soft); }
.faq-item.open .faq-answer { max-height: 340px; }
.faq-item .faq-icon { transition: transform 0.45s var(--ease-soft); }
.faq-item.open .faq-icon { transform: rotate(45deg); }

/* ---------- Indicateur scroll ---------- */
@keyframes scrollPulse { 0%,100% { transform: translateY(0); opacity: .5; } 50% { transform: translateY(10px); opacity: 1; } }
.scroll-indicator { animation: scrollPulse 2.2s ease-in-out infinite; }

/* ---------- Galerie ---------- */
.gallery-item { overflow: hidden; border-radius: 1.5rem; }
.gallery-item img { transition: transform 1.1s var(--ease-soft); width: 100%; height: 100%; object-fit: cover; }
.gallery-item:hover img { transform: scale(1.08); }

/* ---------- Responsive roue ---------- */
@media (max-width: 640px) {
  .bubble-wheel { width: 300px; height: 300px; --r: 118px; }
  .bubble { width: 86px; height: 86px; margin: -43px; }
}

/* ============================================================
   V2 — Style éditorial premium (inspiré Framer)
   ============================================================ */

/* ---------- Hero : panneau photo arrondi ---------- */
.hero-panel {
  position: relative;
  border-radius: 2.5rem;
  overflow: hidden;
  box-shadow: 0 50px 90px -50px rgba(63, 48, 43, 0.6);
}
.hero-panel img.bg { width: 100%; height: 100%; object-fit: cover; }
.hero-title-word { display: inline-block; opacity: 0; transform: translateY(60px); filter: blur(8px); }
.hero-panel.ready .hero-title-word { animation: heroWord 1.1s var(--ease-soft) forwards; }
.hero-title-word:nth-child(2) { animation-delay: 0.12s; }
@keyframes heroWord { to { opacity: 1; transform: translateY(0); filter: blur(0); } }

/* ---------- Roue de bulles rotative ---------- */
.fan {
  position: absolute;
  bottom: -120px; left: 50%;
  width: 0; height: 0;
  z-index: 10;
  transform-origin: center center;
  opacity: 0;
  transition: opacity 1s ease;
}
.fan.ready { opacity: 1; animation: fanSpin 60s linear infinite; }
.fan:hover { animation-play-state: paused; }
.fan-arm {
  position: absolute;
  left: 0; bottom: 0;
  width: 90px; margin-left: -45px;
  height: 320px;
  transform-origin: bottom center;
  transform: rotate(var(--a));
}
.fan-cap {
  position: absolute; top: 0; left: 0;
  width: 90px;
  display: flex; justify-content: center;
}
.fan-cap .ph {
  width: 78px; height: 78px; border-radius: 9999px; overflow: hidden;
  border: 2px solid rgba(255,255,255,0.6);
  box-shadow: 0 8px 20px -8px rgba(0,0,0,0.5);
  background: rgba(250,244,239,0.14);
}
.fan-cap .ph img { width: 100%; height: 100%; object-fit: cover; }
@keyframes fanSpin { to { transform: rotate(360deg); } }

/* ---------- Images flottantes (parallaxe scroll) ---------- */
.float-img {
  border-radius: 1.6rem; overflow: hidden;
  box-shadow: 0 30px 60px -34px rgba(63, 48, 43, 0.55);
  will-change: transform;
}
.float-img img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  will-change: transform;
  animation: floatBreath 9s ease-in-out infinite;
}
/* Décalages pour un mouvement organique (chaque image bouge à son rythme) */
.float-img:nth-of-type(1) img { animation-duration: 8s;  animation-delay: 0s;    }
.float-img:nth-of-type(2) img { animation-duration: 11s; animation-delay: -2.5s; }
.float-img:nth-of-type(3) img { animation-duration: 9.5s; animation-delay: -1.2s; }
.float-img:nth-of-type(4) img { animation-duration: 12s; animation-delay: -4s;   }
@keyframes floatBreath {
  0%   { transform: scale(1)    translate(0, 0); }
  50%  { transform: scale(1.07) translate(1.5%, -1.5%); }
  100% { transform: scale(1)    translate(0, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .float-img img { animation: none; }
}

/* ---------- Liste éditoriale prestations ---------- */
.presta-row {
  position: relative;
  border-top: 1px solid rgba(140, 97, 87, 0.18);
  transition: padding 0.5s var(--ease-soft);
}
.presta-row:last-child { border-bottom: 1px solid rgba(140, 97, 87, 0.18); }
.presta-row::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(235,208,203,0.0), rgba(235,208,203,0.35), rgba(235,208,203,0.0));
  opacity: 0; transition: opacity 0.6s var(--ease-soft);
}
.presta-row:hover::before { opacity: 1; }
.presta-row .row-title { transition: transform 0.6s var(--ease-soft), color 0.4s ease; }
.presta-row:hover .row-title { transform: translateX(14px); color: #8C6157; }

/* ---------- Slider avant / après ---------- */
.ba-slider { position: relative; overflow: hidden; border-radius: 1.6rem; cursor: ew-resize; user-select: none; }
.ba-slider img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.ba-after { position: absolute; top: 0; left: 0; bottom: 0; width: 50%; overflow: hidden; }
.ba-after-inner { position: absolute; top: 0; left: 0; height: 100%; width: 100%; }
.ba-after-inner img { width: 100%; height: 100%; }
.ba-handle {
  position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; background: rgba(250,244,239,0.9);
  transform: translateX(-50%); pointer-events: none;
}
.ba-handle .knob {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 44px; height: 44px; border-radius: 9999px; background: rgba(250,244,239,0.95);
  display: flex; align-items: center; justify-content: center; color: #8C6157;
  box-shadow: 0 8px 24px -8px rgba(0,0,0,0.5);
}
.ba-label {
  position: absolute; top: 14px; font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase;
  background: rgba(63,48,43,0.55); color: #FAF4EF; padding: 4px 10px; border-radius: 9999px; backdrop-filter: blur(4px);
}

/* ---------- Carousel avis (flèches) ---------- */
.rev-track { display: flex; transition: transform 0.7s var(--ease-soft); }
.rev-card { flex: 0 0 100%; }

@media (max-width: 640px) {
  .fan-arm { width: 64px; margin-left: -32px; height: 230px; }
  .fan-cap { width: 64px; }
  .fan-cap .ph { width: 54px; height: 54px; }
  .fan { bottom: -150px; }
}
