/* =========================================
   Institut Valentine — Feuille de style
   ========================================= */

/* --- TOKENS --- */
:root {
  --beige:      #F2EBE0;
  --beige-dark: #E8DDD0;
  --pink:       #E8A5A0;
  --pink-light: #F5D5D2;
  --pink-dark:  #C4736D;
  --sage:       #7A8C6E;
  --sage-light: #B8C9AC;
  --gold:       #C8A97A;
  --dark:       #2A2420;
  --dark-soft:  #4A3F38;
  --white:      #FAF7F2;

  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans:  'Jost', system-ui, sans-serif;

  --radius-sm:  8px;
  --radius-md:  16px;
  --radius-lg:  32px;
  --radius-xl:  48px;

  --shadow-sm:  0 2px 8px rgba(42,36,32,.08);
  --shadow-md:  0 8px 32px rgba(42,36,32,.12);
  --shadow-lg:  0 20px 60px rgba(42,36,32,.15);

  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-out-expo:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quint: cubic-bezier(0.22, 1, 0.36, 1);
  --transition: .3s var(--ease-out-quart);
}

/* --- RESET & BASE --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-sans);
  background: var(--white);
  color: var(--dark);
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* --- CONTAINER --- */
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- TYPOGRAPHY --- */
h1, h2, h3 { font-family: var(--font-serif); font-weight: 400; line-height: 1.15; }

.section-eyebrow {
  font-family: var(--font-sans);
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: .75rem;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--dark);
  margin-bottom: 1rem;
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-header .section-title {
  margin-bottom: 0;
}

/* --- BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .85rem 2rem;
  border-radius: 100px;
  font-family: var(--font-sans);
  font-size: .9rem;
  font-weight: 500;
  letter-spacing: .04em;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
  white-space: nowrap;
}

.btn--primary {
  background: var(--dark);
  color: var(--white);
  border-color: var(--dark);
}
.btn--primary:hover { background: var(--dark-soft); border-color: var(--dark-soft); transform: translateY(-2px); box-shadow: var(--shadow-md); }

.btn--outline {
  background: transparent;
  color: var(--dark);
  border-color: var(--dark);
}
.btn--outline:hover { background: var(--dark); color: var(--white); transform: translateY(-2px); }

.btn--ghost {
  background: transparent;
  color: var(--dark);
  border-color: rgba(42,36,32,.2);
}
.btn--ghost:hover { background: var(--beige); border-color: var(--beige-dark); }

.btn--whatsapp {
  background: var(--dark);
  border-color: var(--dark);
  color: var(--white);
}
.btn--whatsapp:hover { background: var(--dark-soft); border-color: var(--dark-soft); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn--whatsapp svg { width: 18px; height: 18px; fill: var(--pink); }

/* --- HEADER / NAV --- */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.25rem 0;
  transition: var(--transition);
}

.header.scrolled {
  background: rgba(250,247,242,.95);
  backdrop-filter: blur(12px);
  padding: .75rem 0;
  box-shadow: var(--shadow-sm);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  display: flex;
  align-items: center;
}
.nav__logo-img {
  height: 48px;
  width: auto;
  background: transparent;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav__links a {
  font-size: .9rem;
  font-weight: 400;
  color: var(--dark-soft);
  transition: color var(--transition);
}
.nav__links a:hover { color: var(--dark); }

.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav__burger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: var(--transition);
}

/* --- HERO --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--beige);
}

.hero__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .5;
  pointer-events: none;
}
.hero__blob--1 {
  width: 600px; height: 600px;
  background: var(--pink-light);
  top: -150px; right: -100px;
}
.hero__blob--2 {
  width: 400px; height: 400px;
  background: var(--sage-light);
  bottom: -100px; left: -80px;
  opacity: .3;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 560px;
  padding-top: 100px;
  padding-bottom: 80px;
}
@media (max-width: 900px) {
  .hero__content { max-width: 100%; }
}

.hero__eyebrow {
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 1.25rem;
}

.hero__title {
  font-size: clamp(3rem, 7vw, 5.5rem);
  color: var(--dark);
  margin-bottom: 1.5rem;
  font-weight: 300;
}
.hero__title em {
  font-style: italic;
  color: var(--pink-dark);
}

.hero__sub {
  font-size: 1.15rem;
  color: var(--dark-soft);
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.hero__cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero__scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}
.hero__scroll span {
  display: block;
  width: 24px; height: 40px;
  border: 2px solid var(--dark-soft);
  border-radius: 12px;
  position: relative;
}
.hero__scroll span::after {
  content: '';
  position: absolute;
  top: 6px; left: 50%;
  transform: translateX(-50%);
  width: 4px; height: 8px;
  background: var(--dark-soft);
  border-radius: 2px;
  animation: scrollDot 2s ease infinite;
}
@keyframes scrollDot {
  0%, 100% { top: 6px; opacity: 1; }
  80% { top: 20px; opacity: 0; }
}

/* --- SERVICES --- */
.services {
  padding: 6rem 0;
  background: var(--white);
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.service-card {
  padding: 2rem;
  border-radius: var(--radius-md);
  background: var(--beige);
  border: 1px solid rgba(42,36,32,.06);
  transition: var(--transition);
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.service-card--accent {
  background: var(--pink-light);
}

.service-card__icon {
  width: 56px; height: 56px;
  margin-bottom: 1.25rem;
}
.service-card__icon svg { width: 100%; height: 100%; }

.service-card h3 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  margin-bottom: .75rem;
  color: var(--dark);
}

.service-card p {
  font-size: .9rem;
  color: var(--dark-soft);
  line-height: 1.7;
}

/* --- TARIFS --- */
.tarifs {
  padding: 6rem 0;
  background: var(--beige);
}

.tarifs__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 380px));
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.tarif-category {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}
.tarif-category--featured {
  background: var(--dark);
  color: var(--white);
  transform: scale(1.02);
  box-shadow: var(--shadow-lg);
}

.tarif-category__badge {
  position: absolute;
  top: -12px; left: 50%;
  transform: translateX(-50%);
  background: var(--pink-dark);
  color: #fff;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .3rem 1rem;
  border-radius: 100px;
  white-space: nowrap;
}

.tarif-category__title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(42,36,32,.1);
}
.tarif-category--featured .tarif-category__title {
  border-bottom-color: rgba(250,247,242,.2);
}

.tarif-list { display: flex; flex-direction: column; gap: .75rem; }

.tarif-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .95rem;
  gap: 1rem;
}

.tarif-item__name { color: inherit; opacity: .9; }

.tarif-item__price {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--pink-dark);
  white-space: nowrap;
}
.tarif-category--featured .tarif-item__price {
  color: var(--pink-light);
}

.tarifs__note {
  text-align: center;
  font-size: .8rem;
  color: var(--dark-soft);
  opacity: .7;
  margin-top: 1.5rem;
  font-style: italic;
}

.tarifs__cta {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}

/* --- À PROPOS --- */
.apropos {
  padding: 6rem 0;
  background: var(--white);
}

.apropos__inner {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4rem;
  align-items: center;
}

.apropos__visual {
  position: relative;
  flex-shrink: 0;
}

.apropos__frame {
  width: 280px;
  height: 360px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--beige);
  box-shadow: var(--shadow-lg);
  transform: rotate(-1.5deg);
}

.apropos__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  display: block;
  image-rendering: high-quality;
}
.apropos__frame--initials {
  background: linear-gradient(145deg, var(--pink-light) 0%, var(--beige) 60%, var(--gold) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.apropos__initials {
  text-align: center;
  color: var(--dark);
  position: relative;
}
.apropos__initials span {
  font-family: var(--font-serif);
  font-size: 6rem;
  font-weight: 300;
  line-height: 1;
  display: block;
  color: var(--pink-dark);
  opacity: .85;
}
.apropos__initials p {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-top: .75rem;
  opacity: .6;
  line-height: 1.6;
}
.apropos__initials-dot {
  width: 40px;
  height: 2px;
  background: var(--pink);
  margin: 1rem auto 0;
  border-radius: 2px;
}

.apropos__deco {
  position: absolute;
  border-radius: 50%;
}
.apropos__deco--1 {
  width: 80px; height: 80px;
  background: var(--pink-light);
  bottom: -20px; right: -20px;
  z-index: -1;
  opacity: .7;
}
.apropos__deco--2 {
  width: 50px; height: 50px;
  background: var(--sage-light);
  top: -15px; left: -15px;
  z-index: -1;
  opacity: .5;
}

.apropos__text p {
  color: var(--dark-soft);
  margin-bottom: 1.25rem;
  line-height: 1.8;
  font-size: 1rem;
}

.apropos__values {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: 2rem;
}

.value-pill {
  padding: .4rem 1.1rem;
  border-radius: 100px;
  background: var(--beige);
  border: 1px solid var(--beige-dark);
  font-size: .8rem;
  font-weight: 500;
  color: var(--dark-soft);
}

/* --- GALERIE --- */
.galerie {
  padding: 6rem 0;
  background: var(--beige);
}

.galerie__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: 250px 250px;
  gap: 1rem;
}

.galerie__item { border-radius: var(--radius-md); overflow: hidden; }
.galerie__item--tall { grid-row: span 2; }
.galerie__item--wide { grid-column: span 2; }

.galerie__placeholder {
  width: 100%; height: 100%;
  background: var(--beige-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--dark-soft);
  font-size: .85rem;
  opacity: .5;
  transition: var(--transition);
}
.galerie__item:hover .galerie__placeholder { opacity: .8; }

/* --- GALERIE CAPTION --- */
.galerie__item { position: relative; }
.galerie__caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 2rem 1rem .85rem;
  background: linear-gradient(to top, rgba(42,36,32,.65) 0%, transparent 100%);
  color: #FAF7F2;
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .07em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .3s var(--ease-out-quart), transform .3s var(--ease-out-quart);
  pointer-events: none;
}
.galerie__item:hover .galerie__caption {
  opacity: 1;
  transform: translateY(0);
}

.galerie__instagram {
  text-align: center;
  margin-top: 2rem;
  font-size: .9rem;
  color: var(--dark-soft);
}
.galerie__instagram a {
  color: var(--pink-dark);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* --- CONTACT --- */
.contact {
  padding: 6rem 0;
  background: var(--white);
}

.contact__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contact__details {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin: 2rem 0;
}

.contact__detail {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

.contact__icon {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--beige);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact__icon svg { width: 20px; height: 20px; color: var(--dark-soft); }

.contact__detail strong {
  display: block;
  font-weight: 500;
  margin-bottom: .25rem;
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.contact__detail p { color: var(--dark-soft); font-size: .95rem; line-height: 1.6; }

.contact__link {
  font-size: .85rem;
  color: var(--pink-dark);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact__ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.contact__map {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

/* --- AVIS CLIENTS --- */
.avis {
  padding: 6rem 0;
  background: var(--beige);
}

.avis__stars-global {
  display: flex;
  align-items: center;
  gap: 1rem;
  justify-content: center;
  margin-top: .75rem;
  font-size: .9rem;
  color: var(--dark-soft);
}
.avis__stars-global .stars { color: #D4A017; font-size: 1.1rem; letter-spacing: .1em; }

.avis__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.avis-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease-out-quart), box-shadow .35s var(--ease-out-quart);
}
.avis-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.avis-card--featured {
  background: var(--dark);
  color: var(--white);
}

.avis-card__stars {
  color: #D4A017;
  font-size: 1rem;
  letter-spacing: .1em;
  margin-bottom: .75rem;
}
.avis-card--featured .avis-card__stars { color: #E8C56A; }

.avis-card__text {
  font-size: .9rem;
  line-height: 1.7;
  color: var(--dark-soft);
  margin-bottom: 1.25rem;
  font-style: italic;
}
.avis-card--featured .avis-card__text { color: rgba(242,235,224,.8); }

.avis-card__author {
  display: flex;
  align-items: center;
  gap: .75rem;
}
.avis-card__avatar {
  width: 36px; height: 36px;
  background: var(--pink-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: .85rem;
  color: var(--pink-dark);
  flex-shrink: 0;
}
.avis-card--featured .avis-card__avatar {
  background: rgba(255,255,255,.15);
  color: var(--white);
}
.avis-card__author strong {
  display: block;
  font-size: .85rem;
  margin-bottom: .1rem;
}
.avis-card__author span {
  font-size: .75rem;
  opacity: .6;
}

.avis__cta {
  display: flex;
  justify-content: center;
}

/* --- FOOTER --- */
.footer {
  background: var(--dark);
  color: var(--beige);
  padding: 3rem 0 2rem;
}

.footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  align-items: start;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(242,235,224,.1);
}

.footer__logo {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  margin-bottom: .5rem;
}

.footer__brand p {
  font-size: .85rem;
  opacity: .6;
  line-height: 1.7;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: .75rem;
}
.footer__links a {
  font-size: .9rem;
  opacity: .7;
  transition: opacity var(--transition);
}
.footer__links a:hover { opacity: 1; }

.footer__social {
  display: flex;
  gap: 1rem;
}
.footer__social a {
  width: 40px; height: 40px;
  border: 1px solid rgba(242,235,224,.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: .7;
  transition: var(--transition);
}
.footer__social a:hover { opacity: 1; border-color: var(--beige); }
.footer__social svg { width: 18px; height: 18px; }

.footer__copy {
  font-size: .75rem;
  opacity: .4;
  text-align: center;
}

/* --- SCROLL PROGRESS --- */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--pink), var(--pink-dark));
  z-index: 200;
  width: 0%;
  transition: width .1s linear;
  pointer-events: none;
}


/* --- HERO TRUST ROW --- */
.hero__trust {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-top: 1.75rem;
  flex-wrap: wrap;
  font-size: .8rem;
  color: var(--dark-soft);
  opacity: .75;
}
.hero__trust-item { display: flex; align-items: center; gap: .35rem; }
.hero__trust-star { color: #D4A017; letter-spacing: .05em; font-size: .85rem; }
.hero__trust-sep { opacity: .4; }

/* --- NAV CTA BUTTON --- */
.btn--nav-cta {
  background: var(--pink-dark);
  color: var(--white);
  border: 2px solid var(--pink-dark);
  padding: .6rem 1.4rem;
  font-size: .85rem;
}
.btn--nav-cta:hover {
  background: #b3625c;
  border-color: #b3625c;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(196,115,109,.35);
}

/* --- LIGHTBOX --- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(18,12,10,.92);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s var(--ease-out-quart);
  backdrop-filter: blur(6px);
}
.lightbox.open {
  opacity: 1;
  pointer-events: all;
}
.lightbox__img {
  max-width: min(90vw, 800px);
  max-height: 88vh;
  border-radius: var(--radius-md);
  object-fit: contain;
  box-shadow: 0 32px 80px rgba(0,0,0,.6);
  transform: scale(0.94);
  transition: transform .4s var(--ease-out-expo);
}
.lightbox.open .lightbox__img { transform: scale(1); }
.lightbox__close {
  position: absolute;
  top: 1.25rem; right: 1.5rem;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  color: var(--white);
  font-size: 1.6rem;
  line-height: 1;
  width: 44px; height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
}
.lightbox__close:hover { background: rgba(255,255,255,.2); }

/* --- SMOOTH SCROLL OFFSET for fixed header --- */
:target { scroll-margin-top: 90px; }

/* --- NAV HIDE ON SCROLL DOWN --- */
.header--hidden {
  transform: translateY(-100%);
}

/* --- SCROLL REVEAL --- */
.reveal {
  opacity: 0;
  transform: translateY(28px) scale(0.97);
  transition: opacity .6s var(--ease-out-expo), transform .65s var(--ease-out-expo);
}
.reveal.revealed { opacity:1; transform:none; }

/* --- SPOTLIGHT BORDER on cards --- */
.service-card { position: relative; isolation: isolate; }
.service-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: radial-gradient(300px circle at var(--mx,50%) var(--my,50%),
    rgba(196,115,109,.3), transparent 70%);
  opacity: 0;
  transition: opacity .3s;
  z-index: -1;
  pointer-events: none;
}
.service-card.spotlight::before { opacity: 1; }

/* --- DIRECTIONAL HOVER fill --- */
.btn__fill {
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,.13);
  border-radius: inherit;
  pointer-events: none;
  z-index: 0;
  transform: translate(0,100%);
}
.btn--outline .btn__fill { background: var(--pink-light); }
.btn > svg, .btn > span:not(.btn__fill):not(.btn__ripple) { position:relative; z-index:1; }

/* --- :active feedback — Emil principle --- */
.btn:active { transform: scale(0.97) !important; transition: transform .1s ease-out !important; }

/* --- MARQUEE --- */
.marquee {
  overflow: hidden;
  padding: 1.5rem 0;
  background: var(--dark);
  color: var(--beige);
  white-space: nowrap;
}
.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee-scroll 28s linear infinite;
}
.marquee__group {
  display: flex;
  gap: 2.5rem;
  padding-right: 2.5rem;
}
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.marquee__item {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-style: italic;
  opacity: .85;
}
.marquee__dot {
  width: 5px; height: 5px;
  background: var(--pink);
  border-radius: 50%;
  flex-shrink: 0;
}

/* --- BUTTON RIPPLE --- */
.btn { position: relative; overflow: hidden; }
.btn__ripple {
  position: absolute;
  width: 120px; height: 120px;
  margin: -60px 0 0 -60px;
  background: rgba(255,255,255,.25);
  border-radius: 50%;
  animation: ripple .6s var(--ease-out-expo) forwards;
  pointer-events: none;
}
@keyframes ripple {
  from { transform: scale(0); opacity: 1; }
  to   { transform: scale(2.5); opacity: 0; }
}

/* --- SERVICE CARD HOVER --- */
.service-card {
  transition: transform .4s var(--ease-out-quart),
              box-shadow .4s var(--ease-out-quart);
  will-change: transform;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.service-card__icon {
  transition: transform .4s var(--ease-out-quart);
}
.service-card:hover .service-card__icon {
  transform: scale(1.12) rotate(-4deg);
}

/* --- GALLERY --- */
.galerie__item {
  transition: transform .4s var(--ease-out-quart), z-index 0s;
  will-change: transform;
  cursor: pointer;
  overflow: hidden;
}
.galerie__item img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform .6s var(--ease-out-quart);
}
.galerie__item:hover img { transform: scale(1.07); }

/* --- TARIF FEATURED PULSE --- */
.tarif-category--featured {
  animation: featuredPulse 3s var(--ease-out-quart) infinite;
}
@keyframes featuredPulse {
  0%, 100% { box-shadow: var(--shadow-lg); }
  50%       { box-shadow: 0 24px 70px rgba(42,36,32,.22); }
}

/* --- NAV ACTIVE LINK --- */
.nav__links a {
  position: relative;
}
.nav__links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 1px;
  background: var(--pink-dark);
  transition: width .3s var(--ease-out-quart);
}
.nav__links a:hover::after,
.nav__links a.active::after { width: 100%; }

/* --- HERO PHOTO CARD --- */
.hero__photo {
  position: absolute;
  right: clamp(2%, 8vw, 10%);
  top: 50%;
  transform: translateY(-50%) rotate(2.5deg) translateZ(0);
  width: clamp(200px, 26vw, 340px);
  aspect-ratio: 3/4;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg), 0 0 0 6px var(--white), 0 0 0 8px var(--pink-light);
  z-index: 1;
  transition: transform .6s var(--ease-out-quart);
}
.hero__photo:hover { transform: translateY(-50%) rotate(0deg) scale(1.02); }
.hero__photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}
.hero__photo-badge {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(250,247,242,.92);
  backdrop-filter: blur(8px);
  border-radius: 100px;
  padding: .35rem 1rem;
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .06em;
  color: var(--dark);
  white-space: nowrap;
  box-shadow: var(--shadow-sm);
}
@media (max-width: 900px) {
  .hero__photo { display: none; }
}

/* --- HERO CANVAS --- */
.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
}
.hero__content, .hero__blob, .hero__scroll { z-index: 2; }
.hero__blob { transition: transform .8s cubic-bezier(0.25,1,0.5,1); }

/* --- WHATSAPP FAB PULSE --- */
.whatsapp-fab::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 100px;
  background: var(--dark);
  animation: fabPulse 2.5s var(--ease-out-quart) infinite;
  z-index: -1;
}
@keyframes fabPulse {
  0%   { transform: scale(1); opacity: .4; }
  70%  { transform: scale(1.18); opacity: 0; }
  100% { transform: scale(1.18); opacity: 0; }
}

/* --- HERO SCROLL INDICATOR --- */
.hero__scroll span::after {
  animation: scrollDot 2s var(--ease-out-quart) infinite;
}
@keyframes scrollDot {
  0%, 100% { top: 6px; opacity: 1; }
  80%       { top: 20px; opacity: 0; }
}

/* --- REDUCED MOTION --- */
@media (prefers-reduced-motion: reduce) {
  *:not(.marquee__track), *:not(.marquee__track)::before, *:not(.marquee__track)::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* --- RESPONSIVE --- */
@media (max-width: 900px) {
  .apropos__inner,
  .contact__inner {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .apropos__inner { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .apropos__values { justify-content: center; }
  .footer__inner {
    grid-template-columns: 1fr 1fr;
  }
  .footer__brand { grid-column: span 2; }
}

@media (max-width: 768px) {
  .nav__links {
    position: fixed;
    inset: 0;
    background: var(--white);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
    transform: translateX(100%);
    transition: transform var(--transition);
    z-index: 99;
  }
  .nav__links.open { transform: translateX(0); }
  .nav__links a { font-size: 1.2rem; }

  .nav__burger { display: flex; z-index: 100; }
  .nav__burger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
  .nav__burger.open span:nth-child(2) { opacity: 0; }
  .nav__burger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

  .hero__content { padding-top: 120px; }
  .hero__cta { flex-direction: column; }
  .hero__cta .btn { width: fit-content; }

  .tarif-category--featured { transform: scale(1); }

  .galerie__grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }
  .galerie__item--tall { grid-row: span 1; }
  .galerie__item--wide { grid-column: span 2; }

  .footer__inner { grid-template-columns: 1fr; gap: 2rem; }
  .footer__brand { grid-column: auto; }
}

@media (max-width: 480px) {
  .services__grid { grid-template-columns: 1fr; }
  .tarifs__grid { grid-template-columns: 1fr; justify-content: stretch; }
  .galerie__grid {
    grid-template-columns: 1fr;
  }
  .galerie__item--wide { grid-column: span 1; }
  .contact__ctas { flex-direction: column; }
}

/* --- WHATSAPP FAB --- */
.whatsapp-fab {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 200;
  display: flex;
  align-items: center;
  gap: .65rem;
  background: var(--dark);
  color: var(--white);
  border-radius: 100px;
  padding: .75rem 1.25rem .75rem 1rem;
  box-shadow: 0 4px 20px rgba(42,36,32,.25);
  transition: var(--transition);
  font-family: var(--font-sans);
  font-size: .85rem;
  font-weight: 500;
}
.whatsapp-fab:hover {
  transform: translateY(-3px);
  background: var(--dark-soft);
  box-shadow: 0 8px 30px rgba(42,36,32,.35);
}
.whatsapp-fab svg { fill: var(--pink); }
.whatsapp-fab svg {
  width: 22px; height: 22px;
  flex-shrink: 0;
}
.whatsapp-fab__label {
  white-space: nowrap;
}

@media (max-width: 480px) {
  .whatsapp-fab__label { display: none; }
  .whatsapp-fab {
    padding: .9rem;
    border-radius: 50%;
    bottom: 20px;
    right: 20px;
  }
  .whatsapp-fab svg { width: 26px; height: 26px; }
}

/* --- FAQ --- */
.faq {
  padding: 6rem 0;
  background: var(--white);
}

.faq__list {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.faq__item {
  border: 1px solid rgba(42,36,32,.1);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--white);
  transition: box-shadow .3s var(--ease-out-quart);
}
.faq__item:has(.faq__question[aria-expanded="true"]) {
  box-shadow: var(--shadow-sm);
}

.faq__question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--dark);
  text-align: left;
  line-height: 1.4;
  transition: background .2s;
}
.faq__question:hover { background: var(--beige); }
.faq__question[aria-expanded="true"] { background: var(--beige); }

.faq__icon {
  flex-shrink: 0;
  width: 24px; height: 24px;
  border-radius: 50%;
  border: 1.5px solid rgba(42,36,32,.2);
  position: relative;
  transition: transform .3s var(--ease-out-quart), background .2s;
}
.faq__icon::before,
.faq__icon::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  background: var(--dark-soft);
  border-radius: 2px;
  transform: translate(-50%, -50%);
}
.faq__icon::before { width: 10px; height: 1.5px; }
.faq__icon::after  { width: 1.5px; height: 10px; transition: transform .3s var(--ease-out-quart), opacity .3s; }
.faq__question[aria-expanded="true"] .faq__icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
  opacity: 0;
}
.faq__question[aria-expanded="true"] .faq__icon {
  background: var(--pink-light);
  border-color: var(--pink);
}

.faq__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s var(--ease-out-quart);
}
.faq__answer.open { max-height: 300px; }
.faq__answer p {
  padding: 0 1.5rem 1.25rem;
  font-size: .95rem;
  color: var(--dark-soft);
  line-height: 1.75;
}
.faq__answer strong { color: var(--dark); font-weight: 500; }
.faq__link {
  color: var(--pink-dark);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* --- PRINT (carte des prix) --- */
@media print {
  .header, .hero, .services, .apropos, .galerie, .avis, .faq, .contact, .footer { display: none; }
  .tarifs {
    padding: 2rem;
    background: white;
  }
  .tarifs__grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .tarif-category--featured {
    background: #f0f0f0;
    color: #000;
    transform: none;
  }
  .tarif-item__price { color: #333; }
  .tarifs__cta { display: none; }
  .tarifs__note { display: block; }
  body::before {
    content: 'Institut Valentine · Wooz 15, 4831 Bilstain · 0456 81 05 87';
    display: block;
    text-align: center;
    font-size: 1.2rem;
    margin-bottom: 2rem;
    font-weight: bold;
  }
}
