/* ============================================================
   ISABELLE LHOMME — Psychologue
   Design System — AWWWARDS Level
   ============================================================ */

/* ── VARIABLES ──────────────────────────────────────────────── */
:root {
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Inter', sans-serif;

  /* Palette */
  --primary:        #4a3f7a;
  --primary-light:  #6f62c0;
  --primary-dark:   #2d2550;
  --primary-glow:   rgba(74, 63, 122, 0.12);

  --accent:         #cbc6f2;
  --accent-light:   #eae8f8;

  /* Surfaces */
  --cream:          #f9f6f0;
  --cream-dark:     #ede8dd;
  --white:          #ffffff;

  /* Text */
  --text:           #1a1728;
  --text-mid:       #4e4a6a;
  --text-light:     #8a85a5;

  /* Shadows */
  --shadow-xs:  0 1px 3px rgba(26, 23, 40, 0.06);
  --shadow-sm:  0 4px 16px rgba(26, 23, 40, 0.06);
  --shadow-md:  0 8px 32px rgba(26, 23, 40, 0.08);
  --shadow-lg:  0 24px 64px rgba(74, 63, 122, 0.16);
  --shadow-xl:  0 40px 80px rgba(74, 63, 122, 0.20);

  /* Radius */
  --r-sm:   8px;
  --r-md:   16px;
  --r-lg:   24px;
  --r-xl:   40px;
  --r-full: 9999px;

  /* Easing */
  --ease:        cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --t-fast: 0.25s;
  --t-med:  0.5s;
  --t-slow: 0.9s;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  cursor: none;
}

body {
  font-family: var(--font-body);
  background-color: var(--cream);
  color: var(--text);
  line-height: 1.7;
  font-size: clamp(1rem, 1.3vw, 1.1rem);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  animation: pageReveal 0.6s var(--ease) both;
}

@keyframes pageReveal {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ── SELECTION ─────────────────────────────────────────────── */
::selection {
  background: var(--accent);
  color: var(--primary-dark);
}

/* ── SCROLLBAR ─────────────────────────────────────────────── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--cream); }
::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 99px;
}
::-webkit-scrollbar-thumb:hover { background: var(--primary-light); }

/* ── GRAIN OVERLAY ─────────────────────────────────────────── */
.grain {
  position: fixed;
  inset: -50%;
  width: 200%;
  height: 200%;
  pointer-events: none;
  z-index: 9998;
  opacity: 0.032;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grainMove 0.5s steps(1) infinite;
}

@keyframes grainMove {
  0%   { transform: translate(0, 0); }
  25%  { transform: translate(-2%, -3%); }
  50%  { transform: translate(3%, 1%); }
  75%  { transform: translate(-1%, 4%); }
  100% { transform: translate(2%, -2%); }
}

/* ── CUSTOM CURSOR ─────────────────────────────────────────── */
.cursor-dot,
.cursor-ring {
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s;
  will-change: left, top;
}

.cursor-dot {
  width: 7px;
  height: 7px;
  background: var(--primary);
}

.cursor-ring {
  width: 34px;
  height: 34px;
  border: 1.5px solid rgba(74, 63, 122, 0.5);
  transition:
    width  0.4s var(--ease),
    height 0.4s var(--ease),
    opacity 0.3s,
    background 0.3s;
}

.cursor-ring.hover {
  width: 56px;
  height: 56px;
  background: rgba(203, 198, 242, 0.15);
  border-color: var(--primary-light);
}

/* ── PRELOADER ─────────────────────────────────────────────── */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: var(--primary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 32px;
  transition: opacity 0.9s var(--ease), visibility 0.9s;
}

.preloader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-name {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 4vw, 2.8rem);
  color: var(--white);
  letter-spacing: 0.05em;
  font-style: italic;
  overflow: hidden;
  display: flex;
  gap: 0;
}

.preloader-name span {
  display: inline-block;
  transform: translateY(110%);
  opacity: 0;
  animation: charReveal 0.7s var(--ease) forwards;
}

@keyframes charReveal {
  to { transform: translateY(0); opacity: 1; }
}

.preloader-sub {
  font-family: var(--font-body);
  font-size: 0.7rem;
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  opacity: 0;
  animation: fadeInSub 0.5s var(--ease) 0.8s forwards;
}

@keyframes fadeInSub {
  to { opacity: 1; }
}

.preloader-line {
  width: 60px;
  height: 1px;
  background: rgba(255,255,255,0.15);
  position: relative;
  overflow: hidden;
}

.preloader-line::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform: translateX(-100%);
  animation: lineSlide 1.2s var(--ease) 0.3s forwards;
}

@keyframes lineSlide {
  to { transform: translateX(100%); }
}

/* ── SCROLL PROGRESS ───────────────────────────────────────── */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-light), var(--accent));
  z-index: 1001;
  box-shadow: 0 0 6px var(--primary-light);
  transition: width 0.1s linear;
}

/* ── TYPOGRAPHY ────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--primary-dark);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.8rem, 6vw, 5.5rem); font-weight: 700; }
h2 { font-size: clamp(2rem, 4vw, 3rem);     font-weight: 700; }
h3 { font-size: clamp(1.2rem, 2vw, 1.55rem); font-weight: 600; }

p { color: var(--text-mid); line-height: 1.8; }

.gradient-text {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-light) 60%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── HEADER ────────────────────────────────────────────────── */
header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  padding: 24px 60px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  transition: all 0.5s var(--ease);
  background: transparent;
}

header .logo { justify-self: start; }
header nav   { justify-self: center; }
header::after {
  content: '';
  justify-self: end;
}

header.scrolled {
  background: rgba(249, 246, 240, 0.92);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  padding: 14px 60px;
  box-shadow: 0 1px 0 rgba(26, 23, 40, 0.06), var(--shadow-sm);
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary-dark);
  letter-spacing: -0.03em;
  font-style: italic;
  text-decoration: none;
  cursor: none;
}

header.scrolled .logo { color: var(--primary-dark); }

nav {
  display: flex;
  gap: 4px;
  align-items: center;
}

nav a {
  text-decoration: none;
  font-family: var(--font-body);
  color: var(--text-mid);
  font-weight: 500;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 8px 16px;
  border-radius: var(--r-full);
  transition: all var(--t-fast) var(--ease);
  position: relative;
  overflow: hidden;
  cursor: none;
}

nav a:hover, nav a.active {
  color: var(--primary-dark);
  background: var(--accent-light);
}

/* ── HERO ──────────────────────────────────────────────────── */
.hero {
  position: relative;
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  height: 100vh;
  min-height: 600px;
  background: url('cabinet-mammam.jpg') no-repeat center center / cover;
  display: flex;
  align-items: flex-end;
  padding: 0 70px 100px;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(18, 14, 36, 0.90) 0%,
    rgba(26, 20, 50, 0.55) 50%,
    rgba(26, 20, 50, 0.10) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 820px;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
  border-radius: var(--r-full);
  padding: 7px 18px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 30px;
}

.hero-tag::before {
  content: '';
  width: 6px;
  height: 6px;
  background: #7fff9e;
  border-radius: 50%;
  animation: tagPulse 2s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes tagPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.8); }
}

.hero h1 {
  color: var(--white);
  font-size: clamp(3rem, 6vw, 5.5rem);
  line-height: 1.05;
  margin-bottom: 24px;
  letter-spacing: -0.03em;
}

.hero h1 .gradient-text {
  background: linear-gradient(135deg, #d0cbf8 0%, #a99ee8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  max-width: 540px;
  margin-bottom: 48px;
  line-height: 1.75;
  font-weight: 300;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

/* Scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 44px;
  right: 70px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,0.4);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-family: var(--font-body);
}

.hero-scroll-line {
  width: 1px;
  height: 52px;
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.35));
  animation: scrollAnim 2s ease-in-out infinite;
}

@keyframes scrollAnim {
  0%   { transform: scaleY(0); transform-origin: top; opacity: 0; }
  50%  { transform: scaleY(1); transform-origin: top; opacity: 1; }
  51%  { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; opacity: 0; }
}

/* ── BUTTONS ───────────────────────────────────────────────── */
.btn-doctolib,
.btn-secondary,
.btn-primary,
.btn-main {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 36px;
  border-radius: var(--r-full);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 0.05em;
  text-decoration: none;
  cursor: none;
  transition: all var(--t-fast) var(--ease-spring);
  position: relative;
  overflow: hidden;
  border: none;
}

.btn-doctolib {
  background: linear-gradient(135deg, #0596DE, #2575fc);
  color: white;
  box-shadow: 0 4px 20px rgba(5, 150, 222, 0.35);
}
.btn-doctolib:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 32px rgba(5, 150, 222, 0.5);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.10);
  color: white;
  border: 1.5px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(8px);
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 4px 20px var(--primary-glow);
}
.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(74, 63, 122, 0.4);
}

.btn-main {
  background: white;
  color: var(--primary);
  box-shadow: 0 4px 24px rgba(0,0,0,0.12);
  font-weight: 700;
}
.btn-main:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.2);
  color: var(--primary-dark);
}

/* Shine sweep on buttons */
.btn-doctolib::after,
.btn-primary::after,
.btn-main::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg,
    transparent 40%,
    rgba(255,255,255,0.22) 50%,
    transparent 60%);
  transform: translateX(-120%);
  transition: transform 0.65s;
}
.btn-doctolib:hover::after,
.btn-primary:hover::after,
.btn-main:hover::after {
  transform: translateX(120%);
}

/* ── PAGE HEADER BANNER ────────────────────────────────────── */
.page-header-banner {
  padding: 160px 70px 80px;
  background: linear-gradient(150deg, var(--cream) 0%, var(--accent-light) 100%);
  position: relative;
  overflow: hidden;
  width: 100%;
}

.page-header-banner::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(203,198,242,0.55) 0%, transparent 70%);
  right: -180px;
  top: -200px;
  pointer-events: none;
}

.page-header-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='20' cy='20' r='1' fill='%234a3f7a' fill-opacity='0.05'/%3E%3C/svg%3E");
  background-size: 40px 40px;
  pointer-events: none;
}

.page-header-banner h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  color: var(--primary-dark);
  position: relative;
  z-index: 1;
  margin-bottom: 16px;
}

.page-header-banner p.subtitle {
  color: var(--text-mid);
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  max-width: 540px;
  position: relative;
  z-index: 1;
  font-weight: 300;
  line-height: 1.7;
}

/* ── SECTIONS ──────────────────────────────────────────────── */
section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 70px;
}

.page-section {
  padding-top: 80px;
  padding-bottom: 100px;
}

section h2 {
  text-align: center;
  margin-bottom: 64px;
  color: var(--primary-dark);
}

.subtitle {
  text-align: center;
  color: var(--text-light);
  font-size: 1rem;
  margin-bottom: 60px;
  font-weight: 300;
}

.intro-section {
  padding-top: 100px;
  padding-bottom: 80px;
}

.intro-section h2 { margin-bottom: 16px; }

/* ── INTRO CARDS ───────────────────────────────────────────── */
.intro-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.intro-cards { counter-reset: intro-counter; }

.intro-card {
  background: var(--white);
  padding: 44px 32px 36px;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(203, 198, 242, 0.25);
  transition: all var(--t-med) var(--ease);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 14px;
  cursor: none;
  counter-increment: intro-counter;
}

.intro-card::after {
  content: counter(intro-counter, decimal-leading-zero);
  position: absolute;
  top: 20px;
  right: 24px;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-style: italic;
  color: var(--primary-light);
  opacity: 0.4;
  letter-spacing: 0.05em;
  transition: opacity var(--t-fast), transform var(--t-fast) var(--ease-spring);
}

.intro-card:hover::after {
  opacity: 0.9;
  transform: translateY(-2px) scale(1.1);
}

.intro-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-med) var(--ease);
  border-radius: 0 0 3px 3px;
}

.intro-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(203, 198, 242, 0.5);
}
.intro-card:hover::before { transform: scaleX(1); }

.intro-card .icon {
  width: 52px;
  height: 52px;
  background: var(--accent-light);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
  transition: transform var(--t-fast) var(--ease-spring);
}

.intro-card:hover .icon {
  transform: scale(1.12) rotate(-5deg);
}

.intro-card h3 {
  color: var(--primary-dark);
  font-size: 1.25rem;
  margin: 0;
}

.intro-card p {
  color: var(--text-mid);
  font-size: 0.93rem;
  flex: 1;
  line-height: 1.7;
}

.card-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  transition: gap var(--t-fast) var(--ease);
}
.card-link:hover { gap: 12px; }

/* ── APROPOS ───────────────────────────────────────────────── */
.apropos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.apropos-card {
  background: var(--white);
  padding: 36px 30px;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(203, 198, 242, 0.2);
  transition: all var(--t-med) var(--ease);
}

.apropos-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(203, 198, 242, 0.5);
}

.apropos-card .icon {
  width: 56px;
  height: 56px;
  background: var(--accent-light);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
  transition: transform var(--t-fast) var(--ease-spring);
}
.apropos-card:hover .icon { transform: scale(1.08) rotate(-3deg); }

.apropos-card h3 {
  color: var(--primary-dark);
  margin-bottom: 14px;
  font-size: 1.3rem;
}

.apropos-card p {
  color: var(--text-mid);
  font-size: 0.93rem;
  line-height: 1.75;
}

/* Biography card */
.apropos-card.bio {
  grid-column: 1 / -1;
  padding: 56px 64px;
  border-left: 4px solid var(--accent);
  background: linear-gradient(135deg, var(--white) 0%, #f4f2fc 100%);
}

.apropos-card.bio h3 {
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  margin-bottom: 28px;
}

.apropos-card.bio p {
  font-size: 1rem;
  line-height: 1.9;
  color: var(--text-mid);
  margin-bottom: 18px;
}

.apropos-card.bio p:last-child { margin-bottom: 0; }

.apropos-card.bio p:first-of-type::first-letter {
  font-family: var(--font-heading);
  font-size: 3.8rem;
  float: left;
  line-height: 0.78;
  padding-right: 14px;
  color: var(--primary);
  font-weight: 700;
}

/* ── SERVICES ──────────────────────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.services-grid { counter-reset: service-counter; }

.service-card {
  background: var(--white);
  padding: 44px 36px 40px;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(203, 198, 242, 0.2);
  transition: all var(--t-med) var(--ease);
  position: relative;
  overflow: hidden;
  cursor: none;
  counter-increment: service-counter;
}

.service-card:not(.why)::after {
  content: counter(service-counter, decimal-leading-zero);
  position: absolute;
  top: 24px;
  right: 28px;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-style: italic;
  color: var(--primary-light);
  opacity: 0.35;
  letter-spacing: 0.05em;
  transition: opacity var(--t-fast), transform var(--t-fast) var(--ease-spring);
}

.service-card:not(.why):hover::after {
  opacity: 0.85;
  transform: translateY(-2px) scale(1.1);
}

.service-card::before {
  z-index: 2;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.55s var(--ease);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(203, 198, 242, 0.5);
}
.service-card:hover::before { transform: scaleX(1); }

.service-card h3 {
  color: var(--primary-dark);
  font-size: 1.35rem;
  margin-bottom: 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--accent-light);
  text-transform: capitalize;
}

.service-card p {
  color: var(--text-mid);
  margin-bottom: 22px;
  font-size: 0.95rem;
  line-height: 1.75;
}

.service-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.service-card li {
  color: var(--text-mid);
  font-size: 0.9rem;
  padding-left: 22px;
  position: relative;
  text-transform: capitalize;
}

.service-card li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 600;
}

/* Dark "Pourquoi consulter" card */
.service-card.why {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  max-width: 800px;
  margin: 0 auto;
  width: 100%;
  box-shadow: 0 24px 64px rgba(45, 37, 80, 0.30);
}

.service-card.why::before {
  background: linear-gradient(90deg, var(--accent), rgba(255,255,255,0.3));
}

.service-card.why h3 {
  color: white;
  border-bottom-color: rgba(255,255,255,0.12);
}
.service-card.why p  { color: rgba(255,255,255,0.82); }
.service-card.why li { color: rgba(255,255,255,0.72); }
.service-card.why li::before { color: var(--accent); }

/* ── TESTIMONIALS ──────────────────────────────────────────── */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.testimonial-card {
  background: var(--white);
  padding: 48px 38px 38px;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(203, 198, 242, 0.2);
  transition: all var(--t-med) var(--ease);
  position: relative;
}

.testimonial-card::before {
  content: '\201C';
  position: absolute;
  top: 18px;
  left: 30px;
  font-family: var(--font-heading);
  font-size: 5.5rem;
  line-height: 1;
  color: var(--accent-light);
  pointer-events: none;
  font-style: normal;
}

.testimonial-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(203, 198, 242, 0.5);
}

.testimonial-stars {
  color: #f0b429;
  font-size: 0.88rem;
  letter-spacing: 2px;
  margin-bottom: 18px;
  position: relative;
  z-index: 1;
}

.testimonial-text {
  font-style: italic;
  font-size: 1rem;
  color: var(--text-mid);
  line-height: 1.82;
  margin-bottom: 28px;
  position: relative;
  z-index: 1;
}

.testimonial-author {
  font-weight: 700;
  color: var(--primary);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* ── FAQ ───────────────────────────────────────────────────── */
.faq-container {
  max-width: 740px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--white);
  border-radius: var(--r-md);
  border: 1px solid rgba(203, 198, 242, 0.3);
  overflow: hidden;
  transition: all var(--t-med) var(--ease);
  box-shadow: var(--shadow-xs);
}

.faq-item:hover,
.faq-item.active {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
}

.faq-question {
  width: 100%;
  padding: 24px 28px;
  background: transparent;
  border: none;
  text-align: left;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  cursor: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  transition: color var(--t-fast);
  line-height: 1.5;
}

.faq-question:hover,
.faq-item.active .faq-question { color: var(--primary); }

.faq-icon {
  width: 28px;
  height: 28px;
  min-width: 28px;
  border-radius: 50%;
  background: var(--accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all var(--t-fast) var(--ease-spring);
  color: var(--primary);
  font-size: 1.3rem;
  font-weight: 300;
  line-height: 1;
  font-style: normal;
}

.faq-item.active .faq-icon {
  background: var(--primary);
  color: white;
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.55s var(--ease), padding 0.3s;
  padding: 0 28px;
  background: #f7f6fc;
}

.faq-item.active .faq-answer {
  max-height: 400px;
  padding: 20px 28px 28px;
}

.faq-answer p {
  color: var(--text-mid);
  font-size: 0.95rem;
  line-height: 1.82;
}

/* ── CONTACT ───────────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.contact-info,
.contact-pricing {
  background: var(--white);
  padding: 44px 40px;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(203, 198, 242, 0.2);
  transition: all var(--t-med) var(--ease);
}

.contact-info:hover,
.contact-pricing:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: rgba(203, 198, 242, 0.5);
}

.contact-info h3,
.contact-pricing h3 {
  color: var(--primary-dark);
  font-size: 1.35rem;
  margin-bottom: 28px;
  padding-bottom: 18px;
  border-bottom: 2px solid var(--accent-light);
}

.contact-info p,
.contact-pricing p {
  margin-bottom: 14px;
  font-size: 0.97rem;
  color: var(--text-mid);
  line-height: 1.75;
}

.contact-info strong,
.contact-pricing strong {
  color: var(--text);
  font-weight: 600;
}

.mutuelle {
  margin-top: 24px;
  padding: 16px 20px;
  background: var(--accent-light);
  border-radius: var(--r-sm);
  font-size: 0.87rem !important;
  color: var(--primary-dark) !important;
  line-height: 1.65 !important;
  border-left: 3px solid var(--accent);
  margin-bottom: 0 !important;
}

.contact-button {
  text-align: center;
  margin-top: 56px;
}

/* ── CTA SECTION ───────────────────────────────────────────── */
.cta-section {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: white;
  text-align: center;
  padding: 80px 60px;
  width: 90%;
  max-width: 1000px;
  margin: 80px auto;
  border-radius: var(--r-xl);
  position: relative;
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(45, 37, 80, 0.35);
}

.cta-section::before {
  content: '';
  position: absolute;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.07) 0%, transparent 70%);
  top: -250px; left: -100px;
  pointer-events: none;
}

.cta-section::after {
  content: '';
  position: absolute;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%);
  bottom: -100px; right: -50px;
  pointer-events: none;
}

.cta-section h2 {
  color: white;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.cta-section p {
  color: rgba(255,255,255,0.82);
  font-size: 1.1rem;
  max-width: 520px;
  margin: 0 auto 40px;
  line-height: 1.75;
  font-weight: 300;
  position: relative;
  z-index: 1;
}

/* ── CHATBOX ───────────────────────────────────────────────── */
.chatbox-container {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 2000;
  font-family: var(--font-body);
}

.chatbox-button {
  width: 58px;
  height: 58px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.35rem;
  cursor: none;
  box-shadow: 0 4px 24px rgba(74, 63, 122, 0.4);
  transition: all var(--t-fast) var(--ease-spring);
  position: relative;
}

.chatbox-button:hover { transform: scale(1.1); }

.chatbox-button::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 2px solid var(--primary-light);
  animation: chatPulse 2.5s ease-out infinite;
}

@keyframes chatPulse {
  0%   { transform: scale(1);   opacity: 0.6; }
  100% { transform: scale(1.7); opacity: 0;   }
}

.chatbox-window {
  width: 340px;
  background: var(--white);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-xl);
  position: absolute;
  bottom: 72px;
  right: 0;
  display: none;
  flex-direction: column;
  overflow: hidden;
  animation: chatSlideIn 0.4s var(--ease) both;
  border: 1px solid rgba(203, 198, 242, 0.3);
  max-height: 460px;
}

@keyframes chatSlideIn {
  from { opacity: 0; transform: translateY(16px) scale(0.95); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.chatbox-header {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: white;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.chatbox-header::before {
  content: '';
  width: 30px; height: 30px;
  background: rgba(255,255,255,0.18);
  border-radius: 50%;
  display: block;
  flex-shrink: 0;
}

.chatbox-header h4 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.93rem;
  color: white;
  letter-spacing: 0.01em;
}

.chatbox-messages {
  flex: 1;
  padding: 18px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #f8f7fc;
}

.message {
  padding: 11px 15px;
  border-radius: 16px;
  max-width: 85%;
  font-size: 0.87rem;
  line-height: 1.55;
}

.bot {
  background: var(--white);
  align-self: flex-start;
  color: var(--text);
  border-bottom-left-radius: 4px;
  box-shadow: var(--shadow-xs);
}

.user {
  background: var(--primary);
  color: white;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

.chatbox-input {
  display: flex;
  padding: 12px;
  gap: 8px;
  background: var(--white);
  border-top: 1px solid var(--accent-light);
}

.chatbox-input input {
  flex: 1;
  padding: 10px 14px;
  border: 1.5px solid var(--accent-light);
  border-radius: var(--r-full);
  outline: none;
  font-family: var(--font-body);
  font-size: 0.87rem;
  color: var(--text);
  background: var(--cream);
  transition: border-color var(--t-fast), background var(--t-fast);
}

.chatbox-input input:focus {
  border-color: var(--primary-light);
  background: white;
}

.chatbox-input button {
  width: 40px; height: 40px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  transition: all var(--t-fast) var(--ease-spring);
  flex-shrink: 0;
}
.chatbox-input button:hover {
  transform: scale(1.1);
  background: var(--primary-dark);
}

/* ── FOOTER ────────────────────────────────────────────────── */
footer {
  background: var(--primary-dark);
  padding: 80px 70px 40px;
  margin-top: 40px;
  position: relative;
  overflow: hidden;
}

footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(203, 198, 242, 0.35), transparent);
}

footer::after {
  content: '';
  position: absolute;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(107, 94, 181, 0.10) 0%, transparent 70%);
  right: -80px;
  bottom: -120px;
  pointer-events: none;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto 48px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: start;
  position: relative;
  z-index: 1;
}

.footer-brand .logo {
  color: white;
  font-size: 1.5rem;
  display: block;
  margin-bottom: 14px;
  cursor: none;
}

.footer-brand p {
  color: rgba(255,255,255,0.38);
  font-size: 0.85rem;
  line-height: 1.7;
  font-weight: 300;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-end;
}

.footer-nav a {
  color: rgba(255,255,255,0.45);
  text-decoration: none;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color var(--t-fast);
  cursor: none;
}
.footer-nav a:hover { color: var(--accent); }

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.07);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  position: relative;
  z-index: 1;
}

.footer-bottom p {
  color: rgba(255,255,255,0.25);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  color: rgba(255,255,255,0.35);
  text-decoration: none;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color var(--t-fast);
  cursor: none;
}
.footer-links a:hover { color: var(--accent); }

/* ── LEGAL PAGE ────────────────────────────────────────────── */
.legal-card {
  max-width: 760px;
  margin: 60px auto 100px;
  padding: 0 70px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.legal-block {
  background: var(--white);
  border-radius: var(--r-lg);
  padding: 32px 36px;
  border: 1px solid rgba(203, 198, 242, 0.2);
  box-shadow: var(--shadow-xs);
  transition: all var(--t-med) var(--ease);
}

.legal-block:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.legal-block h2 {
  font-size: 1.1rem;
  color: var(--primary-dark);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.4;
}

.legal-block .icon {
  width: 34px; height: 34px;
  background: var(--accent-light);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.legal-block ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.legal-block ul li { font-size: 0.92rem; color: var(--text-mid); line-height: 1.6; }
.legal-info { color: var(--primary); font-weight: 500; }
.legal-block p.legal-info {
  color: var(--text-mid);
  font-size: 0.92rem;
  line-height: 1.8;
}

/* ── ANIMATIONS ────────────────────────────────────────────── */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.slide-up {
  opacity: 0;
  transform: translateY(48px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}

.visible {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* Stagger delays */
.intro-cards .intro-card:nth-child(1)        { transition-delay: 0.08s; }
.intro-cards .intro-card:nth-child(2)        { transition-delay: 0.18s; }
.intro-cards .intro-card:nth-child(3)        { transition-delay: 0.28s; }

.services-grid .service-card:nth-child(1)    { transition-delay: 0.05s; }
.services-grid .service-card:nth-child(2)    { transition-delay: 0.12s; }
.services-grid .service-card:nth-child(3)    { transition-delay: 0.19s; }
.services-grid .service-card:nth-child(4)    { transition-delay: 0.26s; }
.services-grid .service-card:nth-child(5)    { transition-delay: 0.33s; }

.testimonials-grid .testimonial-card:nth-child(1) { transition-delay: 0.10s; }
.testimonials-grid .testimonial-card:nth-child(2) { transition-delay: 0.20s; }
.testimonials-grid .testimonial-card:nth-child(3) { transition-delay: 0.30s; }

.faq-item:nth-child(1) { transition-delay: 0.05s; }
.faq-item:nth-child(2) { transition-delay: 0.10s; }
.faq-item:nth-child(3) { transition-delay: 0.15s; }
.faq-item:nth-child(4) { transition-delay: 0.20s; }

/* Ripple */
.ripple {
  position: absolute;
  width: 6px; height: 6px;
  background: rgba(74, 63, 122, 0.25);
  border-radius: 50%;
  transform: scale(0);
  animation: rippleOut 0.6s ease-out forwards;
  pointer-events: none;
}

@keyframes rippleOut {
  to { transform: scale(24); opacity: 0; }
}

/* ── RESPONSIVE ────────────────────────────────────────────── */
@media (max-width: 900px) {
  header          { padding: 18px 32px; grid-template-columns: auto 1fr; }
  header.scrolled { padding: 12px 32px; }
  header nav      { justify-self: end; }
  header::after   { display: none; }

  .hero { padding: 0 32px 80px; }
  .hero h1 { font-size: clamp(2.4rem, 7vw, 3.8rem); }
  .hero-scroll { display: none; }

  section { padding-left: 32px; padding-right: 32px; }
  .page-header-banner { padding: 140px 32px 60px; }

  .footer-content { grid-template-columns: 1fr; gap: 32px; }
  .footer-nav { align-items: flex-start; flex-direction: row; flex-wrap: wrap; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .legal-card { padding: 0 28px; }
  .apropos-card.bio { padding: 40px 32px; }
}

@media (max-width: 640px) {
  html { cursor: auto; }
  .cursor-dot, .cursor-ring { display: none; }

  header { padding: 14px 20px; }
  header.scrolled { padding: 10px 20px; }
  nav { gap: 2px; }
  nav a { padding: 7px 11px; font-size: 0.70rem; letter-spacing: 0.09em; }

  .hero { padding: 0 22px 60px; }
  .hero h1 { font-size: clamp(2rem, 9vw, 3rem); }

  section { padding-left: 22px; padding-right: 22px; }
  .page-header-banner { padding: 130px 22px 50px; }

  .services-grid  { grid-template-columns: 1fr; }
  .contact-grid   { grid-template-columns: 1fr; }
  .apropos-grid   { grid-template-columns: 1fr; }

  .apropos-card.bio { padding: 32px 24px; }
  .apropos-card.bio p:first-of-type::first-letter { font-size: 3rem; }

  .cta-section { padding: 56px 28px; width: 95%; border-radius: var(--r-lg); }

  footer { padding: 60px 22px 36px; }
  .footer-nav a { font-size: 0.75rem; }

  .chatbox-window { width: 300px; }

  .legal-card { padding: 0 16px; margin-bottom: 60px; }
  .legal-block { padding: 24px 20px; }
}

/* ============================================================
   CABINET GALLERY — AWWWARDS LEVEL
   ============================================================ */
.cabinet-section {
  max-width: 1400px;
  margin: 120px auto 160px;
  padding: 0 70px;
  position: relative;
}

.cabinet-section::before {
  content: "";
  position: absolute;
  top: -60px;
  right: -40px;
  width: 340px;
  height: 340px;
  background: radial-gradient(circle, rgba(122, 111, 207, 0.18), transparent 70%);
  filter: blur(40px);
  z-index: -1;
  pointer-events: none;
}

.cabinet-intro {
  max-width: 720px;
  margin: 0 auto 80px;
  text-align: center;
}

.cabinet-meta {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 0.92rem;
  color: var(--primary-light);
  letter-spacing: 0.08em;
  margin-bottom: 18px;
  opacity: 0.85;
}

.cabinet-meta .cabinet-index { color: var(--primary); font-weight: 600; }
.cabinet-meta .cabinet-location::before {
  content: "·";
  margin-right: 12px;
  color: var(--primary-light);
}

.cabinet-title {
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--text-dark);
  margin: 0 0 24px;
  font-weight: 600;
}
.cabinet-title em {
  font-style: italic;
  font-weight: 400;
  color: var(--primary);
}

.cabinet-desc {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text-light);
  max-width: 560px;
  margin: 0 auto;
}

/* Grid asymétrique */
.cabinet-gallery {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 40px;
  align-items: start;
}

.cabinet-photo {
  position: relative;
  margin: 0;
  cursor: none;
}

.cabinet-photo--lg { margin-top: 40px; }
.cabinet-photo--sm { margin-top: 120px; }

.cabinet-photo-wrap {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-lg);
  box-shadow:
    0 30px 80px -20px rgba(66, 56, 104, 0.35),
    0 10px 30px -10px rgba(66, 56, 104, 0.2);
  transform: translateZ(0);
  transition: transform 0.8s var(--ease), box-shadow 0.8s var(--ease);
  aspect-ratio: 4 / 3;
}

.cabinet-photo-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, transparent 50%, rgba(66, 56, 104, 0.25));
  opacity: 0;
  transition: opacity 0.6s var(--ease);
  pointer-events: none;
  z-index: 2;
}

.cabinet-photo-wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--primary);
  transform: scaleY(1);
  transform-origin: top;
  transition: transform 1.1s cubic-bezier(0.77, 0, 0.175, 1);
  z-index: 3;
}

.cabinet-photo.visible .cabinet-photo-wrap::before {
  transform: scaleY(0);
  transform-origin: bottom;
}

.cabinet-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 1.6s var(--ease), filter 0.6s var(--ease);
  filter: saturate(0.95);
}

.cabinet-photo:hover .cabinet-photo-wrap {
  transform: translateY(-10px);
  box-shadow:
    0 50px 100px -20px rgba(66, 56, 104, 0.5),
    0 20px 40px -10px rgba(66, 56, 104, 0.25);
}
.cabinet-photo:hover img {
  transform: scale(1.06);
  filter: saturate(1.08);
}
.cabinet-photo:hover .cabinet-photo-wrap::after { opacity: 1; }

/* Legend under each photo */
.cabinet-photo figcaption {
  display: flex;
  align-items: baseline;
  gap: 18px;
  margin-top: 22px;
  padding-left: 4px;
}
.cabinet-num {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--primary);
  font-weight: 600;
  letter-spacing: 0.05em;
  min-width: 28px;
  position: relative;
}
.cabinet-num::after {
  content: "";
  display: inline-block;
  width: 26px;
  height: 1px;
  background: var(--primary-light);
  margin-left: 10px;
  vertical-align: middle;
  opacity: 0.6;
}
.cabinet-label {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-light);
  letter-spacing: 0.01em;
  font-weight: 500;
}

/* Responsive */
@media (max-width: 900px) {
  .cabinet-section { padding: 0 24px; margin: 80px auto 100px; }
  .cabinet-gallery { grid-template-columns: 1fr; gap: 50px; }
  .cabinet-photo--lg,
  .cabinet-photo--sm { margin-top: 0; }
  .cabinet-intro { margin-bottom: 50px; }
}

/* ============================================================
   COOKIE BANNER — RGPD / CNIL
   ============================================================ */
.cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 24px;
  right: 24px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  z-index: 9997;
  background: rgba(249, 246, 240, 0.96);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(203, 198, 242, 0.5);
  border-radius: var(--r-lg);
  padding: 22px 26px;
  box-shadow: var(--shadow-lg);
  transform: translateY(calc(100% + 40px));
  opacity: 0;
  transition: transform 0.6s var(--ease), opacity 0.4s var(--ease);
}
.cookie-banner.is-visible { transform: translateY(0); opacity: 1; }
.cookie-banner.is-closing { transform: translateY(calc(100% + 40px)); opacity: 0; }

.cookie-banner-inner {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}
.cookie-banner-text { flex: 1; min-width: 240px; }
.cookie-banner-text strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  color: var(--primary-dark);
  margin-bottom: 4px;
}
.cookie-banner-text p {
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--text-mid);
  margin: 0;
}
.cookie-banner-text a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 500;
}

.cookie-banner-actions { display: flex; gap: 10px; }
.cookie-btn {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 11px 22px;
  border-radius: var(--r-full);
  border: 1px solid transparent;
  cursor: none;
  transition: all var(--t-fast) var(--ease);
}
.cookie-btn--refuse {
  background: transparent;
  color: var(--text-mid);
  border-color: rgba(138, 133, 165, 0.4);
}
.cookie-btn--refuse:hover {
  background: rgba(138, 133, 165, 0.1);
  color: var(--text);
}
.cookie-btn--accept {
  background: var(--primary);
  color: var(--white);
}
.cookie-btn--accept:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

@media (max-width: 600px) {
  .cookie-banner { left: 12px; right: 12px; padding: 18px; }
  .cookie-banner-actions { width: 100%; }
  .cookie-btn { flex: 1; }
}

/* ── CHATBOX PRIVACY NOTICE ──────────────────────────────── */
.chatbox-privacy {
  padding: 10px 16px;
  font-size: 0.72rem;
  color: var(--text-light);
  background: rgba(203, 198, 242, 0.15);
  border-top: 1px solid rgba(203, 198, 242, 0.3);
  line-height: 1.5;
  text-align: center;
}
.chatbox-privacy a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ============================================================
   MOBILE EXPERIENCE — AWWWARDS
   Desktop intact — règles < 900px uniquement
   ============================================================ */

/* --- BURGER BUTTON --- */
.burger-btn {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1002;
  padding: 0;
}
.burger-btn span {
  position: absolute;
  left: 10px;
  right: 10px;
  height: 1.5px;
  background: var(--primary-dark);
  border-radius: 2px;
  transition: all 0.4s var(--ease);
}
.burger-btn span:nth-child(1) { top: 15px; }
.burger-btn span:nth-child(2) { top: 21px; width: 16px; }
.burger-btn span:nth-child(3) { top: 27px; }
body.menu-open .burger-btn span:nth-child(1) { top: 21px; transform: rotate(45deg); }
body.menu-open .burger-btn span:nth-child(2) { opacity: 0; transform: scaleX(0); }
body.menu-open .burger-btn span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

/* --- MOBILE MENU OVERLAY --- */
.mobile-menu-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--cream);
  z-index: 1001;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s var(--ease), visibility 0.5s;
}
body.menu-open .mobile-menu-backdrop {
  opacity: 1;
  visibility: visible;
}
.mobile-menu-backdrop nav {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: center;
}
.mobile-menu-backdrop nav a {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  color: var(--primary-dark);
  text-decoration: none;
  padding: 14px 24px;
  letter-spacing: -0.01em;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease), color 0.25s;
  font-weight: 500;
  position: relative;
}
.mobile-menu-backdrop nav a:hover,
.mobile-menu-backdrop nav a.active {
  color: var(--primary-light);
  font-style: italic;
}
body.menu-open .mobile-menu-backdrop nav a {
  opacity: 1;
  transform: translateY(0);
}
body.menu-open .mobile-menu-backdrop nav a:nth-child(1) { transition-delay: 0.1s; }
body.menu-open .mobile-menu-backdrop nav a:nth-child(2) { transition-delay: 0.15s; }
body.menu-open .mobile-menu-backdrop nav a:nth-child(3) { transition-delay: 0.2s; }
body.menu-open .mobile-menu-backdrop nav a:nth-child(4) { transition-delay: 0.25s; }
body.menu-open .mobile-menu-backdrop nav a:nth-child(5) { transition-delay: 0.3s; }
body.menu-open .mobile-menu-backdrop nav a:nth-child(6) { transition-delay: 0.35s; }

.mobile-menu-backdrop .m-menu-footer {
  position: absolute;
  bottom: 50px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-light);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-family: var(--font-body);
  opacity: 0;
  transition: opacity 0.5s var(--ease) 0.5s;
}
body.menu-open .mobile-menu-backdrop .m-menu-footer { opacity: 1; }
.mobile-menu-backdrop .m-menu-footer a {
  color: var(--primary);
  font-size: 1.1rem;
  text-decoration: none;
  margin-top: 12px;
  display: inline-block;
  letter-spacing: 0;
  text-transform: none;
  font-family: var(--font-heading);
  font-style: italic;
}

@media (max-width: 900px) {

  body.menu-open { overflow: hidden; }

  /* HEADER / NAV */
  header {
    padding: 14px 20px !important;
    grid-template-columns: 1fr auto !important;
  }
  header.scrolled { padding: 10px 20px !important; }
  header > nav { display: none !important; }
  header .burger-btn { display: block; justify-self: end; }
  header .logo { font-size: 1.15rem; }
  .mobile-menu-backdrop { display: block; }

  /* HERO */
  .hero {
    padding: 0 24px 90px !important;
    min-height: 100svh;
    align-items: center;
    text-align: left;
  }
  .hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(45, 37, 80, 0.1) 0%, rgba(45, 37, 80, 0.55) 100%);
    z-index: 1;
  }
  .hero-content {
    position: relative;
    z-index: 2;
    padding-bottom: 20px;
  }
  .hero-tag {
    font-size: 0.68rem !important;
    padding: 7px 14px !important;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    color: var(--primary-dark) !important;
  }
  .hero h1 {
    font-size: clamp(2.2rem, 8.5vw, 3rem) !important;
    line-height: 1.08;
    color: #fff;
    margin: 18px 0 14px;
  }
  .hero h1 .gradient-text {
    background: linear-gradient(135deg, #fff, #e0dcf5);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
  }
  .hero p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.92);
    line-height: 1.6;
    max-width: 95%;
  }
  .hero-buttons {
    flex-direction: column;
    gap: 12px;
    margin-top: 24px;
    width: 100%;
  }
  .hero-buttons a {
    width: 100%;
    text-align: center;
    padding: 16px 24px !important;
    font-size: 0.95rem !important;
  }
  .btn-secondary {
    background: rgba(255, 255, 255, 0.15) !important;
    backdrop-filter: blur(10px);
    color: #fff !important;
    border-color: rgba(255, 255, 255, 0.4) !important;
  }

  /* TYPOGRAPHY */
  h2 { font-size: clamp(1.6rem, 6vw, 2.1rem) !important; }
  h3 { font-size: 1.15rem !important; }
  .subtitle { font-size: 0.95rem !important; padding: 0 12px; }
  body { font-size: 15.5px; }

  /* SECTIONS */
  section { padding-top: 60px !important; padding-bottom: 60px !important; }
  .intro-section { padding: 60px 20px !important; }

  /* INTRO CARDS */
  .intro-cards {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
    margin-top: 30px;
  }
  .intro-card {
    padding: 28px 24px !important;
    border-radius: 20px !important;
  }
  .intro-card .icon { font-size: 1.8rem !important; }
  .intro-card h3 { margin-top: 4px; }
  .intro-card::after { font-size: 0.75rem !important; top: 14px; right: 18px; }

  /* SERVICE CARDS */
  .service-card { padding: 30px 24px !important; border-radius: 20px !important; }
  .service-card:not(.why)::after { font-size: 0.78rem !important; top: 16px; right: 20px; }

  /* CABINET GALLERY */
  .cabinet-section { margin: 60px auto 70px !important; padding: 0 20px !important; }
  .cabinet-intro { margin-bottom: 36px !important; }
  .cabinet-title { font-size: clamp(1.9rem, 7vw, 2.4rem) !important; }
  .cabinet-desc { font-size: 0.95rem; padding: 0 6px; }
  .cabinet-gallery { gap: 36px !important; }
  .cabinet-photo-wrap { aspect-ratio: 4 / 3.2; border-radius: 18px; }
  .cabinet-photo figcaption { margin-top: 16px; gap: 14px; }
  .cabinet-label { font-size: 0.85rem; }
  .cabinet-meta { font-size: 0.78rem; flex-wrap: wrap; justify-content: center; gap: 8px; }

  /* PAGE BANNER */
  .page-header-banner { padding: 110px 20px 50px !important; }
  .page-header-banner h1 {
    font-size: clamp(2rem, 8vw, 2.6rem) !important;
    line-height: 1.1;
  }

  /* APROPOS / CONTACT / FAQ */
  .apropos-card { padding: 28px 22px !important; }
  .apropos-card.bio { padding: 32px 24px !important; }
  .contact-info, .contact-pricing { padding: 30px 24px !important; }
  .faq-item { padding: 0 !important; }
  .faq-question { padding: 20px 22px !important; font-size: 0.95rem !important; }
  .faq-answer { padding: 0 22px 20px !important; font-size: 0.9rem; }

  /* TESTIMONIALS */
  .testimonial-card { padding: 30px 24px !important; }
  .testimonial-card p { font-size: 0.95rem; }

  /* CTA */
  .cta-section {
    padding: 50px 26px !important;
    width: calc(100% - 40px) !important;
    border-radius: 24px !important;
    margin: 40px auto !important;
  }
  .cta-section h2 { font-size: 1.7rem !important; }
  .cta-section p { font-size: 0.95rem; }
  .cta-section .btn-doctolib,
  .cta-section .btn-main { width: 100%; text-align: center; }

  /* CHATBOX */
  .chatbox-container { bottom: 18px !important; right: 18px !important; }
  .chatbox-button {
    width: 52px !important;
    height: 52px !important;
    font-size: 1.2rem !important;
  }
  .chatbox-window {
    width: calc(100vw - 32px) !important;
    max-width: 340px;
    height: 440px;
    right: 0;
    bottom: 70px;
    border-radius: 22px !important;
  }

  /* COOKIE BANNER */
  .cookie-banner {
    bottom: 12px !important;
    left: 12px !important;
    right: 12px !important;
    padding: 18px 20px !important;
    border-radius: 18px !important;
  }
  .cookie-banner-text strong { font-size: 0.98rem; }
  .cookie-banner-text p { font-size: 0.82rem; }
  .cookie-btn { padding: 12px 18px; font-size: 0.88rem; }

  /* LEGAL */
  .legal-block h2 { font-size: 1.1rem !important; flex-wrap: wrap; }
  .legal-block .icon { width: 34px !important; height: 34px !important; font-size: 1rem !important; }
  .legal-block p, .legal-block li { font-size: 0.9rem; line-height: 1.65; }

  /* FOOTER */
  footer { padding: 50px 22px 32px !important; }
  .footer-content { gap: 28px !important; text-align: center; }
  .footer-brand { align-items: center; }
  .footer-nav { justify-content: center; }
  .footer-nav a { font-size: 0.82rem; }
  .footer-bottom { font-size: 0.75rem; gap: 14px; }

  /* SCROLL PROGRESS */
  .scroll-progress { height: 3px; }

  /* Désactiver le curseur custom */
  html { cursor: auto !important; }
  * { cursor: auto !important; }
  a, button, .intro-card, .service-card, .faq-item, .chatbox-button { cursor: pointer !important; }
  .cursor-dot, .cursor-ring { display: none !important; }

  /* Touch targets min 44px */
  nav a, .footer-nav a, .card-link { min-height: 44px; display: inline-flex; align-items: center; }

  .hero { background-size: cover; background-position: center 30%; }
}

/* Très petits écrans */
@media (max-width: 420px) {
  .hero h1 { font-size: 1.95rem !important; }
  .hero p { font-size: 0.9rem; }
  header { padding: 12px 16px !important; }
  .intro-card, .service-card, .apropos-card { padding: 24px 20px !important; }
  .page-header-banner { padding: 100px 18px 44px !important; }
  .page-header-banner h1 { font-size: 1.8rem !important; }
  .legal-card { padding: 0 14px !important; }
  .mobile-menu-backdrop nav a { font-size: 1.8rem; }
  .chatbox-window { height: 400px; }
}

/* Respect des préférences de mouvement */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
