/* ==========================================================================
   RendezVousFacile — Design System
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Sora:wght@400;500;600;700;800&family=Inter:wght@400;500;600;700&display=swap');

:root {
  /* Brand palette — teal/indigo (agenda & confiance), corail (action) */
  --color-primary: #0f766e;        /* teal 700 */
  --color-primary-light: #14b8a6;  /* teal 500 */
  --color-primary-dark: #0b544e;
  --color-secondary: #4338ca;      /* indigo 700 */
  --color-secondary-light: #6366f1;
  --color-accent: #fb7185;         /* corail/rose pour CTA */
  --color-accent-dark: #e11d48;

  --color-bg: #f7faf9;
  --color-bg-alt: #eef4f3;
  --color-surface: #ffffff;
  --color-border: #e2e8e6;

  --color-text: #10201e;
  --color-text-muted: #526b67;
  --color-text-inverse: #f7faf9;

  --color-success: #16a34a;
  --color-warning: #d97706;
  --color-danger: #dc2626;

  --gradient-hero: linear-gradient(135deg, #0f766e 0%, #4338ca 100%);
  --gradient-accent: linear-gradient(135deg, #fb7185 0%, #e11d48 100%);

  --font-heading: 'Sora', 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 3px rgba(15, 40, 37, 0.08);
  --shadow-md: 0 8px 24px rgba(15, 40, 37, 0.10);
  --shadow-lg: 0 20px 48px rgba(15, 40, 37, 0.16);

  --container-max: 1180px;
  --transition: 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --color-bg: #0b1615;
    --color-bg-alt: #0f1e1c;
    --color-surface: #122624;
    --color-border: #1e3835;
    --color-text: #eaf5f3;
    --color-text-muted: #9fb8b4;
    --color-text-inverse: #0b1615;
  }
}

:root[data-theme="dark"] {
  --color-bg: #0b1615;
  --color-bg-alt: #0f1e1c;
  --color-surface: #122624;
  --color-border: #1e3835;
  --color-text: #eaf5f3;
  --color-text-muted: #9fb8b4;
  --color-text-inverse: #0b1615;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  line-height: 1.2;
  margin: 0 0 0.5em;
  font-weight: 700;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.98rem;
  border: none;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(0.99); }

.btn-primary {
  background: var(--gradient-accent);
  color: #fff;
  box-shadow: 0 10px 24px rgba(225, 29, 72, 0.28);
}
.btn-primary:hover { box-shadow: 0 14px 32px rgba(225, 29, 72, 0.38); transform: translateY(-2px); }

.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}
.btn-outline:hover { background: var(--color-primary); color: #fff; }

.btn-ghost {
  background: rgba(255,255,255,0.12);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.35);
  backdrop-filter: blur(6px);
}
.btn-ghost:hover { background: rgba(255,255,255,0.22); }

.btn-block { width: 100%; }
.btn-sm { padding: 10px 18px; font-size: 0.88rem; }

/* ---------- Navbar ---------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 250, 249, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
}
:root[data-theme="dark"] .navbar,
@media (prefers-color-scheme: dark) { .navbar { background: rgba(11, 22, 21, 0.85); } }

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: var(--container-max);
  margin: 0 auto;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--color-primary-dark);
}
.logo-mark {
  width: 34px; height: 34px;
  border-radius: 10px;
  background: var(--gradient-hero);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.1rem;
}
.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
}
.nav-links a {
  font-weight: 500;
  color: var(--color-text-muted);
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--color-primary); }
.nav-cta { display: flex; gap: 12px; align-items: center; }
.nav-toggle { display: none; }

/* ---------- Hero ---------- */
.hero {
  background: var(--gradient-hero);
  color: #fff;
  padding: 96px 0 120px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 20% 20%, rgba(255,255,255,0.14) 0, transparent 40%),
                     radial-gradient(circle at 85% 75%, rgba(255,255,255,0.12) 0, transparent 45%);
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
  position: relative;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.16);
  border: 1px solid rgba(255,255,255,0.3);
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 20px;
  animation: fadeInUp 0.6s ease both;
}
.hero h1 {
  font-size: clamp(2.2rem, 4.2vw, 3.4rem);
  animation: fadeInUp 0.7s ease 0.05s both;
}
.hero p.lead {
  font-size: 1.15rem;
  opacity: 0.92;
  max-width: 540px;
  margin-bottom: 32px;
  animation: fadeInUp 0.7s ease 0.1s both;
}
.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  animation: fadeInUp 0.7s ease 0.15s both;
}
.hero-trust {
  margin-top: 28px;
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 0.88rem;
  opacity: 0.85;
  animation: fadeInUp 0.7s ease 0.2s both;
}
.hero-trust span { display: flex; align-items: center; gap: 6px; }

.hero-visual {
  position: relative;
  animation: floatIn 0.9s ease 0.1s both;
}
.mock-card {
  background: var(--color-surface);
  color: var(--color-text);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 24px;
  position: relative;
}
.mock-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}
.mock-slot {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: var(--radius-md);
  background: var(--color-bg-alt);
  margin-bottom: 10px;
  font-size: 0.9rem;
}
.mock-slot .dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--color-primary-light);
  flex-shrink: 0;
}
.mock-slot.booked .dot { background: var(--color-accent); }
.floating-badge {
  position: absolute;
  background: var(--color-surface);
  color: var(--color-text);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 12px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  animation: floatY 4s ease-in-out infinite;
}
.floating-badge.b1 { top: -18px; right: -18px; }
.floating-badge.b2 { bottom: -20px; left: -24px; animation-delay: 1.2s; }

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes floatIn {
  from { opacity: 0; transform: translateY(24px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ---------- Sections ---------- */
section { padding: 88px 0; }
.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}
.section-head .kicker {
  color: var(--color-primary);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.8rem;
  margin-bottom: 10px;
  display: block;
}
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
.section-head p { color: var(--color-text-muted); font-size: 1.05rem; }

.section-alt { background: var(--color-bg-alt); }

/* ---------- Feature grid ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }

.feature-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: transform var(--transition), box-shadow var(--transition);
}
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.feature-icon {
  width: 52px; height: 52px;
  border-radius: var(--radius-md);
  background: var(--gradient-hero);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 18px;
  color: #fff;
}
.feature-card h3 { font-size: 1.15rem; }
.feature-card p { color: var(--color-text-muted); font-size: 0.95rem; margin: 0; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; counter-reset: step; }
.step { position: relative; padding-top: 8px; }
.step::before {
  counter-increment: step;
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--gradient-accent);
  color: #fff;
  font-weight: 800;
  margin-bottom: 16px;
}
.step h3 { font-size: 1.05rem; }
.step p { color: var(--color-text-muted); font-size: 0.92rem; }

/* ---------- Pricing ---------- */
.pricing-toggle {
  display: flex;
  justify-content: center;
  gap: 4px;
  background: var(--color-bg-alt);
  border-radius: var(--radius-pill);
  padding: 6px;
  width: fit-content;
  margin: 0 auto 48px;
}
.pricing-toggle button {
  border: none;
  background: transparent;
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  cursor: pointer;
  color: var(--color-text-muted);
  transition: var(--transition);
}
.pricing-toggle button.active {
  background: var(--color-surface);
  color: var(--color-primary);
  box-shadow: var(--shadow-sm);
}
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.price-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform var(--transition), box-shadow var(--transition);
}
.price-card:hover { transform: translateY(-4px); }
.price-card.featured {
  border: 2px solid var(--color-primary);
  box-shadow: var(--shadow-lg);
}
.price-badge {
  position: absolute;
  top: -14px; left: 50%;
  transform: translateX(-50%);
  background: var(--gradient-accent);
  color: #fff;
  padding: 5px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 700;
}
.price-card h3 { font-size: 1.2rem; margin-bottom: 4px; }
.price-card .price-amount {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--color-primary-dark);
  margin: 12px 0 4px;
}
.price-amount small { font-size: 1rem; font-weight: 500; color: var(--color-text-muted); }
.price-card ul { list-style: none; padding: 0; margin: 24px 0; flex: 1; }
.price-card li { padding: 8px 0; font-size: 0.92rem; display: flex; gap: 10px; color: var(--color-text-muted); }
.price-card li::before { content: "✓"; color: var(--color-success); font-weight: 700; }

/* ---------- Testimonials ---------- */
.testimonial-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 28px;
  border: 1px solid var(--color-border);
}
.testimonial-stars { color: #f59e0b; margin-bottom: 12px; letter-spacing: 2px; }
.testimonial-author { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.avatar {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--gradient-hero);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 0.9rem;
}

/* ---------- FAQ ---------- */
.faq-item {
  border-bottom: 1px solid var(--color-border);
  padding: 20px 0;
}
.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.02rem;
}
.faq-icon { transition: transform var(--transition); font-size: 1.3rem; color: var(--color-primary); }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition), padding var(--transition);
  color: var(--color-text-muted);
  font-size: 0.95rem;
}
.faq-item.open .faq-answer { max-height: 300px; padding-top: 14px; }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: var(--gradient-hero);
  border-radius: var(--radius-lg);
  padding: 56px 40px;
  text-align: center;
  color: #fff;
}
.cta-banner h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
.cta-banner p { opacity: 0.9; max-width: 480px; margin: 0 auto 28px; }

/* ---------- Footer ---------- */
footer {
  background: #0b1615;
  color: #cfe3e0;
  padding: 64px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
footer h4 { color: #fff; font-size: 0.95rem; margin-bottom: 16px; }
footer .logo { color: #fff; }
footer p { color: #93aeaa; font-size: 0.92rem; }
.footer-links { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-links a { color: #93aeaa; font-size: 0.92rem; transition: color var(--transition); }
.footer-links a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.85rem;
  color: #7f9c97;
}
.footer-bottom a { color: #a8c4c0; }
.footer-bottom a:hover { color: #fff; }

/* ---------- Forms (auth, settings) ---------- */
.auth-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.auth-visual {
  background: var(--gradient-hero);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 64px;
  position: relative;
  overflow: hidden;
}
.auth-form-side {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
}
.auth-card { width: 100%; max-width: 420px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: 0.88rem; margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text);
  font-size: 0.95rem;
  font-family: var(--font-body);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.12);
}
.field-hint { font-size: 0.8rem; color: var(--color-text-muted); margin-top: 4px; }
.field-error { font-size: 0.8rem; color: var(--color-danger); margin-top: 4px; display: none; }
.form-msg {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  margin-bottom: 18px;
  display: none;
}
.form-msg.show { display: block; }
.form-msg.error { background: #fef2f2; color: var(--color-danger); border: 1px solid #fecaca; }
.form-msg.success { background: #f0fdf4; color: var(--color-success); border: 1px solid #bbf7d0; }

/* ---------- Dashboard shell ---------- */
.app-shell { display: grid; grid-template-columns: 260px 1fr; min-height: 100vh; }
.sidebar {
  background: var(--color-surface);
  border-right: 1px solid var(--color-border);
  padding: 24px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.sidebar-link {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  color: var(--color-text-muted);
  font-weight: 500;
  font-size: 0.94rem;
  transition: var(--transition);
}
.sidebar-link:hover { background: var(--color-bg-alt); color: var(--color-text); }
.sidebar-link.active { background: var(--color-primary); color: #fff; }
.main-panel { padding: 32px 40px; background: var(--color-bg); }
.topbar {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 32px;
}
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 32px; }
.stat-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 20px;
}
.stat-card .stat-value { font-family: var(--font-heading); font-size: 1.7rem; font-weight: 800; color: var(--color-primary-dark); }
.stat-card .stat-label { color: var(--color-text-muted); font-size: 0.85rem; }

.panel {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 24px;
}

.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 700;
}
.badge-success { background: #f0fdf4; color: var(--color-success); }
.badge-warning { background: #fffbeb; color: var(--color-warning); }
.badge-danger { background: #fef2f2; color: var(--color-danger); }
.badge-info { background: #eef2ff; color: var(--color-secondary); }

table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--color-border); font-size: 0.92rem; }
th { color: var(--color-text-muted); font-weight: 600; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.03em; }

/* ---------- Ad slot ---------- */
.ad-slot { margin: 32px 0; text-align: center; }

/* ---------- Utilities ---------- */
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.text-center { text-align: center; }
.text-muted { color: var(--color-text-muted); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .grid-3, .grid-2, .pricing-grid, .footer-grid, .steps { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .auth-shell { grid-template-columns: 1fr; }
  .auth-visual { display: none; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
}
