/* =========================================================
   Rentoryx — Charte graphique & styles globaux
   ========================================================= */

/* ---------- Variables ---------- */
:root {
  /* Couleurs */
  --color-primary: #4F46E5;        /* Indigo - couleur principale */
  --color-primary-dark: #4338CA;   /* Pour les hovers */
  --color-primary-light: #EEF2FF;  /* Fond léger */
  --color-accent: #06B6D4;         /* Cyan - accents */
  --color-success: #10B981;
  --color-warning: #F59E0B;

  --color-text: #0F172A;           /* Texte principal */
  --color-text-muted: #64748B;     /* Texte secondaire */
  --color-text-light: #94A3B8;     /* Texte tertiaire */

  --color-bg: #FFFFFF;
  --color-bg-soft: #F8FAFC;
  --color-bg-card: #FFFFFF;
  --color-border: #E2E8F0;
  --color-border-light: #F1F5F9;

  /* Typographie */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Rayons */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 999px;

  /* Ombres */
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 12px 32px rgba(15, 23, 42, 0.10);
  --shadow-xl: 0 24px 64px rgba(15, 23, 42, 0.14);

  /* Espacements section */
  --section-py: 96px;

  /* Conteneur */
  --container-max: 1200px;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--color-primary-dark);
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 16px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(36px, 5vw, 56px); }
h2 { font-size: clamp(28px, 3.5vw, 40px); }
h3 { font-size: clamp(20px, 2.5vw, 24px); }

p { margin: 0 0 16px; }

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

/* ---------- Sections ---------- */
.section {
  padding: var(--section-py) 0;
}

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

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 64px;
}

.eyebrow {
  display: inline-block;
  padding: 6px 14px;
  background: var(--color-primary-light);
  color: var(--color-primary);
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.lead {
  font-size: clamp(16px, 2vw, 18px);
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* ---------- Header / Navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--color-border-light);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 22px;
  color: var(--color-text);
  letter-spacing: -0.02em;
}

.brand-logo {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 800;
  font-size: 16px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  color: var(--color-text);
  font-weight: 500;
  font-size: 15px;
}

.nav-links a:hover {
  color: var(--color-primary);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text);
  position: relative;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: '';
  position: absolute;
  left: 0;
  width: 22px;
  height: 2px;
  background: var(--color-text);
}

.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 600;
  transition: all 0.2s ease;
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
}

.btn-primary {
  background: var(--color-primary);
  color: white;
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  background: var(--color-primary-dark);
  color: white;
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background: white;
  color: var(--color-text);
  border: 1px solid var(--color-border);
}

.btn-secondary:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.btn-ghost {
  background: transparent;
  color: var(--color-text);
}

.btn-ghost:hover {
  color: var(--color-primary);
}

.btn-lg {
  padding: 16px 28px;
  font-size: 16px;
}

/* ---------- Hero ---------- */
.hero {
  padding: 80px 0 96px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 70% 0%, rgba(79, 70, 229, 0.08), transparent 60%),
              radial-gradient(ellipse 50% 40% at 20% 100%, rgba(6, 182, 212, 0.06), transparent 60%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: center;
  position: relative;
}

.hero h1 {
  margin-bottom: 20px;
}

.hero h1 .gradient {
  background: linear-gradient(120deg, var(--color-primary) 0%, var(--color-accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  font-size: clamp(17px, 2vw, 20px);
  color: var(--color-text-muted);
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.hero-trust {
  font-size: 14px;
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-trust strong {
  color: var(--color-text);
}

/* Mockup dans le hero */
.hero-mockup {
  background: white;
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-xl);
  padding: 20px;
  position: relative;
  transform: perspective(1000px) rotateY(-3deg) rotateX(2deg);
}

.mockup-header {
  display: flex;
  gap: 6px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--color-border-light);
  margin-bottom: 16px;
}

.mockup-header span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-border);
}

.mockup-header span:first-child { background: #FF5F57; }
.mockup-header span:nth-child(2) { background: #FEBC2E; }
.mockup-header span:nth-child(3) { background: #28C840; }

.mockup-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

.mockup-stat {
  background: var(--color-bg-soft);
  padding: 14px;
  border-radius: var(--radius-md);
}

.mockup-stat-label {
  font-size: 11px;
  color: var(--color-text-muted);
  margin-bottom: 4px;
}

.mockup-stat-value {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-text);
}

.mockup-stat-value.up::after {
  content: ' ↑';
  color: var(--color-success);
  font-size: 12px;
}

.mockup-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px;
  border-radius: var(--radius-md);
  background: var(--color-bg-soft);
  margin-bottom: 8px;
}

.mockup-row-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mockup-row-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--color-primary-light);
  color: var(--color-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
}

.mockup-row-title {
  font-size: 13px;
  font-weight: 600;
}

.mockup-row-meta {
  font-size: 11px;
  color: var(--color-text-muted);
}

.mockup-tag {
  font-size: 11px;
  padding: 4px 8px;
  border-radius: var(--radius-full);
  background: rgba(16, 185, 129, 0.1);
  color: var(--color-success);
  font-weight: 600;
}

.mockup-tag.pending {
  background: rgba(245, 158, 11, 0.1);
  color: var(--color-warning);
}

/* ---------- Cartes audience ---------- */
.audience-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.audience-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
}

.audience-card:hover {
  border-color: var(--color-primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.audience-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--color-primary-light);
  color: var(--color-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 16px;
}

.audience-card h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.audience-card p {
  color: var(--color-text-muted);
  font-size: 14px;
  margin-bottom: 16px;
  flex: 1;
}

.audience-card .audience-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-primary);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.audience-card .audience-link:hover {
  gap: 8px;
}

/* ---------- Grille features ---------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature {
  padding: 28px;
  border-radius: var(--radius-lg);
  background: var(--color-bg-card);
  border: 1px solid var(--color-border-light);
  transition: all 0.25s ease;
}

.feature:hover {
  border-color: var(--color-border);
  box-shadow: var(--shadow-md);
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
  color: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 16px;
}

.feature h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.feature p {
  color: var(--color-text-muted);
  font-size: 15px;
  margin: 0;
}

/* ---------- Sections "persona" (sur la page bailleurs) ---------- */
.persona-section {
  padding: 80px 0;
  border-bottom: 1px solid var(--color-border-light);
}

.persona-section:last-of-type {
  border-bottom: none;
}

.persona-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.persona-grid.reverse {
  direction: rtl;
}

.persona-grid.reverse > * {
  direction: ltr;
}

.persona-tag {
  display: inline-block;
  padding: 5px 12px;
  background: var(--color-primary-light);
  color: var(--color-primary);
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 16px;
}

.persona-bullets {
  margin-top: 24px;
}

.persona-bullets li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 10px 0;
  font-size: 15px;
}

.persona-bullets li::before {
  content: '✓';
  color: var(--color-success);
  font-weight: 700;
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

.persona-visual {
  background: var(--color-bg-soft);
  border-radius: var(--radius-xl);
  padding: 28px;
  border: 1px solid var(--color-border);
}

/* ---------- Tarifs ---------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}

.pricing-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  position: relative;
}

.pricing-card.featured {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-lg);
  transform: scale(1.02);
}

.pricing-card.featured::before {
  content: 'Le plus choisi';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 14px;
  background: var(--color-primary);
  color: white;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
}

.pricing-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pricing-tagline {
  color: var(--color-text-muted);
  font-size: 14px;
  margin-bottom: 24px;
}

.pricing-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--color-border-light);
}

.pricing-price .amount {
  font-size: 44px;
  font-weight: 800;
  color: var(--color-text);
  line-height: 1;
  letter-spacing: -0.03em;
}

.pricing-price .period {
  color: var(--color-text-muted);
  font-size: 15px;
}

.pricing-features {
  flex: 1;
  margin-bottom: 24px;
}

.pricing-features li {
  padding: 8px 0;
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 14px;
}

.pricing-features li::before {
  content: '✓';
  color: var(--color-success);
  font-weight: 700;
}

.pricing-features li.muted {
  color: var(--color-text-light);
}

.pricing-features li.muted::before {
  content: '–';
  color: var(--color-text-light);
}

/* ---------- FAQ ---------- */
.faq {
  max-width: 760px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  margin-bottom: 12px;
  background: white;
}

.faq-item summary {
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  font-size: 24px;
  color: var(--color-text-muted);
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item p {
  margin: 14px 0 0;
  color: var(--color-text-muted);
  font-size: 15px;
}

/* ---------- Formulaires ---------- */
.form {
  background: white;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: var(--shadow-md);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--color-text);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: 15px;
  font-family: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  background: white;
  color: var(--color-text);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-disclaimer {
  font-size: 13px;
  color: var(--color-text-muted);
  margin-top: 12px;
}

/* ---------- CTA section ---------- */
.cta-band {
  padding: 80px 0;
  background: linear-gradient(120deg, var(--color-primary) 0%, #6366F1 50%, var(--color-accent) 100%);
  color: white;
  text-align: center;
}

.cta-band h2 {
  color: white;
  margin-bottom: 16px;
}

.cta-band p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 18px;
  max-width: 560px;
  margin: 0 auto 28px;
}

.cta-band .btn-primary {
  background: white;
  color: var(--color-primary);
}

.cta-band .btn-primary:hover {
  background: var(--color-bg-soft);
  color: var(--color-primary-dark);
}

/* ---------- Footer ---------- */
.site-footer {
  background: #0F172A;
  color: #94A3B8;
  padding: 64px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand {
  color: white;
}

.footer-brand .brand {
  color: white;
  margin-bottom: 16px;
}

.footer-tagline {
  font-size: 14px;
  color: #94A3B8;
  max-width: 280px;
}

.footer-col h4 {
  color: white;
  font-size: 14px;
  margin-bottom: 16px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col a {
  color: #94A3B8;
  font-size: 14px;
}

.footer-col a:hover {
  color: white;
}

.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: 13px;
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  :root {
    --section-py: 64px;
  }

  .hero-grid,
  .persona-grid,
  .persona-grid.reverse {
    grid-template-columns: 1fr;
    direction: ltr;
    gap: 40px;
  }

  .audience-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .features-grid,
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .pricing-card.featured {
    transform: none;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: 16px 24px;
    border-bottom: 1px solid var(--color-border-light);
    gap: 0;
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links a {
    padding: 12px 0;
    border-bottom: 1px solid var(--color-border-light);
    width: 100%;
  }

  .nav-cta .btn-secondary {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .audience-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
  }
}
