/* ===================================
   ROOMCHIRO — Design System
   Aesthetic: Warm Medical Minimal
   Fonts: Cormorant Garamond + DM Sans
=================================== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400&family=DM+Sans:wght@300;400;500&display=swap');

:root {
  --navy:    #1B3A52;
  --teal:    #2A7F6F;
  --teal-lt: #E8F4F1;
  --sand:    #F7F3EE;
  --warm:    #EDE8E1;
  --text:    #1a1a1a;
  --muted:   #6b7280;
  --border:  #ddd8d0;
  --white:   #ffffff;
  --accent:  #D4956A;
  --radius:  12px;
  --shadow:  0 4px 24px rgba(27,58,82,0.10);
}

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

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

body {
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}

/* ---- TYPOGRAPHY ---- */
h1, h2, h3, h4 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.9rem); }
h4 { font-size: 1.2rem; }

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

em { font-style: italic; }
strong { font-weight: 500; }

a { color: var(--teal); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--navy); }

/* ---- LAYOUT ---- */
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: 760px; margin: 0 auto; padding: 0 24px; }

section { padding: 88px 0; }
.section--sand { background: var(--sand); }
.section--warm { background: var(--warm); }
.section--navy { background: var(--navy); color: var(--white); }
.section--teal-lt { background: var(--teal-lt); }

/* ---- NAV ---- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
  height: 68px;
  display: flex; align-items: center;
  transition: box-shadow 0.3s;
}
.nav.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.08); }
.nav__inner {
  max-width: 1100px; margin: 0 auto; width: 100%;
  display: flex; align-items: center; justify-content: space-between;
}
.nav__logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: -0.03em;
}
.nav__logo span { color: var(--teal); }
.nav__links { display: flex; align-items: center; gap: 32px; }
.nav__links a {
  font-size: 0.88rem;
  font-weight: 400;
  color: var(--text);
  letter-spacing: 0.02em;
  transition: color 0.2s;
}
.nav__links a:hover { color: var(--teal); }
.nav__cta {
  background: var(--navy) !important;
  color: var(--white) !important;
  padding: 10px 22px;
  border-radius: 50px;
  font-size: 0.85rem !important;
  font-weight: 500 !important;
  transition: background 0.2s, transform 0.2s !important;
}
.nav__cta:hover { background: var(--teal) !important; transform: translateY(-1px); }

.nav__lang { display: flex; gap: 8px; }
.nav__lang a {
  font-size: 0.78rem;
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid var(--border);
  color: var(--muted);
  font-weight: 400;
}
.nav__lang a.active,
.nav__lang a:hover { background: var(--navy); color: #fff; border-color: var(--navy); }

.nav__hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; }
.nav__hamburger span { display: block; width: 22px; height: 2px; background: var(--navy); border-radius: 2px; transition: all 0.3s; }

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: all 0.25s;
  text-decoration: none;
}
.btn--primary { background: var(--navy); color: var(--white); }
.btn--primary:hover { background: var(--teal); color: var(--white); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(27,58,82,0.25); }
.btn--outline { background: transparent; color: var(--navy); border: 1.5px solid var(--navy); }
.btn--outline:hover { background: var(--navy); color: var(--white); transform: translateY(-2px); }
.btn--white { background: var(--white); color: var(--navy); }
.btn--white:hover { background: var(--sand); transform: translateY(-2px); }
.btn--teal { background: var(--teal); color: var(--white); }
.btn--teal:hover { background: var(--navy); color: var(--white); transform: translateY(-2px); }

/* ---- HERO ---- */
.hero {
  padding-top: 140px;
  padding-bottom: 96px;
  background: var(--sand);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -120px; right: -160px;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(42,127,111,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 20px;
}
.hero__eyebrow::before {
  content: '';
  display: block;
  width: 24px; height: 1px;
  background: var(--teal);
}
.hero h1 { margin-bottom: 24px; color: var(--navy); }
.hero h1 em { color: var(--teal); font-style: italic; }
.hero__lead {
  font-size: 1.05rem;
  color: var(--muted);
  margin-bottom: 36px;
  line-height: 1.8;
}
.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero__badges {
  display: flex; gap: 20px; flex-wrap: wrap;
  margin-top: 48px;
  padding-top: 36px;
  border-top: 1px solid var(--border);
}
.hero__badge {
  display: flex; align-items: center; gap: 10px;
  font-size: 0.84rem;
  color: var(--muted);
}
.hero__badge-icon {
  width: 36px; height: 36px;
  background: var(--white);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow);
  font-size: 1rem;
  flex-shrink: 0;
}
/* Wrapper colonne droite du hero */
.hero__right {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.hero__image {
  border-radius: 24px;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 4/5;
  background: var(--sand);
}
.hero__image picture { display: block; width: 100%; height: 100%; }
.hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}
.hero__image-placeholder {
  text-align: center;
  color: var(--muted);
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  padding: 40px;
  line-height: 1.6;
}
.hero__image-placeholder span { display: block; font-size: 3rem; margin-bottom: 16px; }
.hero__float-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 14px 24px;
  box-shadow: 0 8px 32px rgba(27,58,82,0.15);
  font-size: 0.84rem;
  text-align: center;
  width: 100%;
}
.hero__float-card strong { display: block; color: var(--navy); font-weight: 500; font-size: 0.95rem; }
.hero__float-card span { color: var(--teal); font-size: 0.8rem; }

/* ---- SECTION HEADERS ---- */
.section-label {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 16px;
}
.section-label::before {
  content: '';
  display: block;
  width: 20px; height: 1px;
  background: var(--teal);
}
.section-header { margin-bottom: 56px; }
.section-header h2 { color: var(--navy); margin-bottom: 16px; }
.section-header p { font-size: 1.05rem; color: var(--muted); max-width: 560px; }
.section-header--center { text-align: center; }
.section-header--center p { margin: 0 auto; }

/* ---- HOW IT WORKS ---- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.step {
  padding: 32px;
  background: var(--white);
  border-radius: 20px;
  border: 1px solid var(--border);
  position: relative;
  transition: transform 0.3s, box-shadow 0.3s;
}
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.step__num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 3.5rem;
  font-weight: 300;
  color: var(--teal-lt);
  line-height: 1;
  margin-bottom: 16px;
}
.step h3 { font-size: 1.2rem; color: var(--navy); margin-bottom: 10px; }
.step p { font-size: 0.9rem; color: var(--muted); }

/* ---- TARIFS ---- */
.tarifs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.tarif-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 36px 32px;
  position: relative;
  transition: transform 0.3s, box-shadow 0.3s;
}
.tarif-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.tarif-card--featured {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}
.tarif-card__badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--accent);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 20px;
}
.tarif-card__icon { font-size: 2rem; margin-bottom: 20px; }
.tarif-card h3 {
  font-size: 1.3rem;
  color: var(--navy);
  margin-bottom: 6px;
}
.tarif-card--featured h3 { color: var(--white); }
.tarif-card__duration {
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 20px;
  font-weight: 400;
}
.tarif-card--featured .tarif-card__duration { color: rgba(255,255,255,0.6); }
.tarif-card__price {
  font-family: 'Cormorant Garamond', serif;
  font-size: 3rem;
  font-weight: 300;
  color: var(--navy);
  line-height: 1;
  margin-bottom: 4px;
}
.tarif-card--featured .tarif-card__price { color: var(--white); }
.tarif-card__price sup { font-size: 1.4rem; vertical-align: super; }
.tarif-card__note {
  font-size: 0.78rem;
  color: var(--teal);
  margin-bottom: 24px;
}
.tarif-card--featured .tarif-card__note { color: rgba(255,255,255,0.7); }
.tarif-card__features { list-style: none; margin-bottom: 32px; }
.tarif-card__features li {
  font-size: 0.88rem;
  color: var(--muted);
  padding: 7px 0;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: flex-start; gap: 10px;
}
.tarif-card--featured .tarif-card__features li {
  color: rgba(255,255,255,0.8);
  border-color: rgba(255,255,255,0.15);
}
.tarif-card__features li::before { content: '✓'; color: var(--teal); font-weight: 500; flex-shrink: 0; }
.tarif-card--featured .tarif-card__features li::before { color: rgba(255,255,255,0.9); }

/* ---- ABOUT ---- */
.about-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 72px; align-items: center; }
.about__image {
  border-radius: 24px;
  aspect-ratio: 3/4;
  background: var(--warm);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Cormorant Garamond', serif;
  color: var(--muted);
  text-align: center;
  padding: 32px;
  font-size: 1rem;
  line-height: 1.6;
}
.about__image span { display: block; font-size: 3rem; margin-bottom: 16px; }
.about__creds { display: flex; flex-direction: column; gap: 12px; margin-top: 32px; }
.about__cred {
  display: flex; align-items: center; gap: 12px;
  font-size: 0.88rem;
  color: var(--muted);
}
.about__cred-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--teal);
  flex-shrink: 0;
}

/* ---- TESTIMONIALS ---- */
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.testimonial {
  background: var(--white);
  border-radius: 20px;
  padding: 32px;
  border: 1px solid var(--border);
  position: relative;
}
.testimonial__quote {
  font-family: 'Cormorant Garamond', serif;
  font-size: 3rem;
  color: var(--teal-lt);
  line-height: 1;
  margin-bottom: 12px;
}
.testimonial p {
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.75;
  font-style: italic;
  margin-bottom: 20px;
}
.testimonial__author { font-size: 0.82rem; font-weight: 500; color: var(--navy); }
.testimonial__role { font-size: 0.78rem; color: var(--muted); }
.stars { color: var(--accent); font-size: 0.85rem; letter-spacing: 2px; margin-bottom: 12px; }

/* ---- BLOG ---- */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.blog-card {
  border-radius: 16px;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--border);
  transition: transform 0.3s, box-shadow 0.3s;
}
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.blog-card__img {
  height: 180px;
  background: var(--warm);
  display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem;
}
.blog-card__body { padding: 24px; }
.blog-card__cat {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 10px;
}
.blog-card h3 {
  font-size: 1.1rem;
  color: var(--navy);
  margin-bottom: 10px;
  line-height: 1.4;
}
.blog-card p { font-size: 0.87rem; color: var(--muted); margin-bottom: 16px; }
.blog-card__read { font-size: 0.82rem; font-weight: 500; color: var(--teal); }
.blog-card__read:hover { color: var(--navy); }

/* ---- WORK PAGE ---- */
.work-hero { padding-top: 140px; padding-bottom: 80px; background: var(--navy); color: var(--white); }
.work-hero h1 { color: var(--white); }
.work-hero h1 em { color: var(--accent); }
.benefits-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.benefit {
  padding: 28px;
  background: var(--white);
  border-radius: 16px;
  border: 1px solid var(--border);
}
.benefit__icon { font-size: 1.8rem; margin-bottom: 14px; }
.benefit h3 { font-size: 1.1rem; color: var(--navy); margin-bottom: 8px; }
.benefit p { font-size: 0.88rem; color: var(--muted); }

/* ---- CONTACT / POPUP ---- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.contact-form { background: var(--white); border-radius: 20px; padding: 40px; border: 1px solid var(--border); }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 0.82rem; font-weight: 500; color: var(--navy); margin-bottom: 6px; letter-spacing: 0.02em; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  color: var(--text);
  background: var(--sand);
  outline: none;
  transition: border-color 0.2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--teal); background: var(--white); }
.form-group textarea { min-height: 120px; resize: vertical; }
.form-note { font-size: 0.78rem; color: var(--muted); margin-top: 12px; text-align: center; }

/* ---- POPUP ---- */
.popup-overlay {
  position: fixed; inset: 0; z-index: 999;
  background: rgba(27,58,82,0.6);
  backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s;
}
.popup-overlay.active { opacity: 1; pointer-events: all; }
.popup {
  background: var(--white);
  border-radius: 24px;
  padding: 48px 44px;
  max-width: 480px; width: 100%;
  position: relative;
  transform: translateY(20px);
  transition: transform 0.3s;
}
.popup-overlay.active .popup { transform: translateY(0); }
.popup__close {
  position: absolute; top: 16px; right: 20px;
  font-size: 1.4rem; color: var(--muted); cursor: pointer; line-height: 1;
  background: none; border: none;
}
.popup__close:hover { color: var(--navy); }
.popup__badge {
  display: inline-block;
  background: var(--teal-lt);
  color: var(--teal);
  font-size: 0.75rem;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 16px;
}
.popup h3 { font-size: 1.7rem; color: var(--navy); margin-bottom: 10px; }
.popup p { font-size: 0.9rem; color: var(--muted); margin-bottom: 24px; }

/* ---- FOOTER ---- */
.footer {
  background: var(--navy);
  color: rgba(255,255,255,0.75);
  padding: 64px 0 32px;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer__brand { font-family: 'Cormorant Garamond', serif; font-size: 1.6rem; color: var(--white); margin-bottom: 12px; }
.footer__brand span { color: var(--accent); }
.footer__tagline { font-size: 0.85rem; opacity: 0.6; margin-bottom: 24px; }
.footer h4 { font-family: 'DM Sans', sans-serif; font-size: 0.75rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.4); margin-bottom: 16px; }
.footer a { display: block; font-size: 0.88rem; color: rgba(255,255,255,0.65); margin-bottom: 8px; transition: color 0.2s; }
.footer a:hover { color: var(--white); }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.8rem; opacity: 0.5;
}
.footer__social { display: flex; gap: 12px; }
.footer__social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  font-size: 0.9rem;
  transition: all 0.2s;
  margin-bottom: 0;
}
.footer__social a:hover { background: var(--white); color: var(--navy); }

/* ---- COOKIE BANNER ---- */
.cookie-banner {
  position: fixed; bottom: 24px; left: 24px; right: 24px;
  max-width: 560px;
  background: var(--navy);
  color: var(--white);
  border-radius: 16px;
  padding: 20px 24px;
  display: flex; align-items: center; gap: 20px;
  font-size: 0.84rem;
  z-index: 998;
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
  transform: translateY(120%);
  transition: transform 0.5s cubic-bezier(0.34,1.56,0.64,1);
}
.cookie-banner.show { transform: translateY(0); }
.cookie-banner p { opacity: 0.8; flex: 1; margin: 0; }
.cookie-banner .btn { padding: 8px 20px; font-size: 0.82rem; flex-shrink: 0; }

/* ---- BLOG PAGE ---- */
.blog-hero { padding-top: 130px; padding-bottom: 60px; background: var(--sand); }
.blog-article { max-width: 760px; margin: 0 auto; padding: 64px 24px; }
.blog-article h1 { margin-bottom: 20px; color: var(--navy); }
.blog-article .meta { font-size: 0.82rem; color: var(--muted); margin-bottom: 36px; }
.blog-article h2 { font-size: 1.6rem; color: var(--navy); margin: 40px 0 16px; }
.blog-article h3 { font-size: 1.3rem; color: var(--navy); margin: 28px 0 12px; }
.blog-article p { font-size: 0.97rem; line-height: 1.85; color: #333; }
.blog-article ul, .blog-article ol { margin: 16px 0 16px 24px; }
.blog-article li { font-size: 0.97rem; line-height: 1.75; color: #444; margin-bottom: 6px; }
.blog-cta-box {
  background: var(--teal-lt);
  border: 1px solid rgba(42,127,111,0.2);
  border-radius: 16px;
  padding: 32px;
  margin: 40px 0;
  text-align: center;
}
.blog-cta-box h3 { color: var(--navy); margin-bottom: 10px; font-size: 1.4rem; }
.blog-cta-box p { color: var(--muted); margin-bottom: 20px; font-size: 0.92rem; }

/* ---- UTILS ---- */
.text-teal { color: var(--teal); }
.text-navy { color: var(--navy); }
.text-muted { color: var(--muted); }
.text-center { text-align: center; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-32 { margin-bottom: 32px; }

/* ---- FADE-IN ANIMATION ---- */
.fade-in { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  .hero__grid, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero__image { display: none; }
  .tarifs-grid { grid-template-columns: 1fr; max-width: 440px; margin: 0 auto; }
  .steps, .testimonials-grid, .blog-grid, .benefits-grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .nav__links { display: none; }
  .nav__hamburger { display: flex; }
  .nav__lang { display: none; }
}
@media (max-width: 600px) {
  section { padding: 60px 0; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; gap: 12px; text-align: center; }
  .hero__actions { flex-direction: column; }
  .hero__badges { flex-direction: column; }
}

/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed; inset: 0; z-index: 99;
  background: var(--white);
  padding: 100px 32px 40px;
  flex-direction: column;
  gap: 24px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a { font-family: 'Cormorant Garamond', serif; font-size: 2rem; color: var(--navy); font-weight: 300; }
.mobile-menu__lang { display: flex; gap: 12px; margin-top: 24px; }
.mobile-menu__lang a { font-family: 'DM Sans', sans-serif; font-size: 0.9rem; }
