/* ==========================================================================
   DRYOS Immobilier — Design system
   ========================================================================== */

:root {
  --navy: #1F2937;
  --emerald: #37AA7B;
  --nature: #3CB371;
  --bg-light: #F9FAFB;
  --cream: #FBF7EE;
  --cream-2: #F3EEE0;
  --white: #FFFFFF;
  --ink-soft: #4B5563;
  --border: #E7E2D4;
  --danger: #B3554A;

  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 8px;
  --shadow: 0 10px 30px rgba(31, 41, 55, 0.08);
  --shadow-sm: 0 4px 14px rgba(31, 41, 55, 0.06);
  --max-width: 1180px;
}

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

body {
  margin: 0;
  font-family: "Montserrat", "Segoe UI", Arial, sans-serif;
  color: var(--navy);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 16px;
}

h1 { font-size: clamp(2rem, 4vw + 1rem, 3.2rem); }
h2 { font-size: clamp(1.6rem, 2.5vw + 1rem, 2.4rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 16px; color: var(--ink-soft); }

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--nature);
  flex-shrink: 0;
}

.accent { color: var(--emerald); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: var(--navy);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: #111827; }
/* .btn-accent is the single "main CTA" treatment, context-aware: solid navy
   on light backgrounds (matches btn-primary), solid white on dark/navy
   backgrounds — never a third loud color. */
.btn-accent {
  background: var(--navy);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}
.btn-accent:hover { background: #111827; }
.bg-navy .btn-accent {
  background: var(--white);
  color: var(--navy);
}
.bg-navy .btn-accent:hover { background: var(--cream); }
.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--navy);
}
.btn-ghost:hover { border-color: var(--nature); color: var(--emerald); }
.bg-navy .btn-ghost { border-color: rgba(255,255,255,0.3); color: var(--white); }
.bg-navy .btn-ghost:hover { border-color: var(--nature); }
.btn-block { width: 100%; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 247, 238, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--navy);
  flex-shrink: 0;
}
.brand img { width: 42px; height: 42px; }
.brand small {
  display: block;
  font-weight: 500;
  font-size: 0.65rem;
  color: var(--ink-soft);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.main-nav a {
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--navy);
  transition: background 0.15s ease, color 0.15s ease;
}
.main-nav a:hover, .main-nav a[aria-current="page"] {
  background: var(--white);
  color: var(--emerald);
  box-shadow: var(--shadow-sm);
}

.nav-cta { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

.nav-toggle {
  display: none;
  background: none;
  border: 2px solid var(--border);
  border-radius: 10px;
  width: 44px; height: 44px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: "";
  display: block;
  width: 20px;
  height: 2px;
  background: var(--navy);
  position: relative;
  transition: 0.2s ease;
}
.nav-toggle span::before { position: absolute; top: -7px; width: 20px; }
.nav-toggle span::after { position: absolute; top: 7px; width: 20px; }

@media (max-width: 900px) {
  .main-nav {
    position: fixed;
    inset: 74px 16px auto 16px;
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow);
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    display: none;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 14px 16px; }
  .nav-toggle { display: flex; }
  .nav-cta .btn-ghost { display: none; }
  .nav-wrap { padding: 12px 16px; gap: 10px; }
  .nav-cta { gap: 8px; }
  .nav-cta .btn {
    padding: 10px 14px;
    font-size: 0.8rem;
    max-width: 42vw;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .brand { font-size: 1rem; }
  .brand img { width: 34px; height: 34px; }
}

@media (max-width: 380px) {
  .brand small { display: none; }
  .nav-cta .btn { padding: 9px 12px; font-size: 0.75rem; }
}

/* ---------- Hero ---------- */
.hero {
  padding: 60px 0 40px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }

.hero-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.hero-card-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.hero-card-row:last-child { border-bottom: none; }

/* ---------- Sections ---------- */
section { padding: 64px 0; }
.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 40px;
}
.section-head p { font-size: 1.05rem; }

.bg-white { background: var(--white); }
.bg-navy { background: var(--navy); color: var(--white); }
.bg-navy h2, .bg-navy h3 { color: var(--white); }
.bg-navy p { color: #CBD3DD; }

/* ---------- Cards / grids ---------- */
.grid {
  display: grid;
  gap: 24px;
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}
@media (min-width: 901px) and (max-width: 1100px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}
.card-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--navy);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
  color: var(--white);
  font-weight: 800;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
}
.card-icon svg { width: 20px; height: 20px; }

/* ---------- Pricing ---------- */
.price-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  position: relative;
}
.price-card.featured {
  border-color: var(--nature);
  box-shadow: var(--shadow);
  transform: translateY(-6px);
}
.price-card .tag {
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--ink-soft);
}
.price-card .amount {
  font-size: 3rem; font-weight: 800; color: var(--nature); margin: 12px 0 4px;
}
.price-card .amount sup { font-size: 1.1rem; }
.price-card .ttc { font-size: 0.85rem; color: var(--ink-soft); font-weight: 700; margin-bottom: 20px; display: block; }
.price-card ul { list-style: none; padding: 0; margin: 0 0 24px; text-align: left; }
.price-card li { padding: 8px 0; display: flex; gap: 10px; font-size: 0.92rem; }
.price-card li::before { content: "✓"; color: var(--nature); font-weight: 800; }

/* ---------- Checklist ---------- */
.checklist { list-style: none; padding: 0; margin: 20px 0; display: grid; gap: 10px; }
.checklist li { display: flex; align-items: flex-start; gap: 10px; font-weight: 600; font-size: 0.98rem; }
.checklist li::before { content: "✓"; color: var(--nature); font-weight: 800; flex-shrink: 0; }

/* ---------- Pain points ---------- */
.pain-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 700px) { .pain-grid { grid-template-columns: 1fr 1fr; } }
.pain-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px 24px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  box-shadow: var(--shadow-sm);
}
.pain-card .pain-x {
  color: var(--danger);
  font-weight: 800;
  font-size: 1.1rem;
  flex-shrink: 0;
  line-height: 1.4;
}
.pain-card p { margin: 0; font-size: 0.95rem; }

/* ---------- Compare table ---------- */
.compare {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 700px) { .compare { grid-template-columns: 1fr 1fr; } }
.compare-col {
  border-radius: var(--radius-md);
  padding: 28px;
  border: 1px solid var(--border);
}
.compare-col.bad { background: #FBF1EF; border-color: #ECD3CE; }
.compare-col.good { background: #F0F8F3; border-color: #CBE7D6; }
.compare-col ul { padding-left: 20px; margin: 0; }
.compare-col li { margin-bottom: 10px; color: var(--navy); }

/* ---------- FAQ ---------- */
.faq-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 14px;
  overflow: hidden;
}
.faq-q {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 20px 24px;
  font-family: inherit;
  font-weight: 700;
  font-size: 1rem;
  color: var(--navy);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  gap: 16px;
}
.faq-q .chevron { transition: transform 0.2s ease; flex-shrink: 0; }
.faq-item.open .faq-q .chevron { transform: rotate(180deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
  padding: 0 24px;
}
.faq-item.open .faq-a { padding-bottom: 20px; }

/* ---------- Forms ---------- */
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 8px;
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  font-family: inherit;
  font-size: 0.95rem;
  background: var(--bg-light);
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--nature);
  outline-offset: 1px;
}
.form-note { font-size: 0.82rem; color: var(--ink-soft); }
.form-status { margin-top: 14px; font-weight: 600; font-size: 0.9rem; }

/* ---------- Contact cards ---------- */
.contact-line {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  background: var(--bg-light);
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
}
.contact-line .ic {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--navy);
  display: flex; align-items: center; justify-content: center;
  color: var(--white); font-weight: 800; flex-shrink: 0;
}
.contact-line small { display: block; color: var(--ink-soft); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.04em; }
.contact-line strong { font-size: 1rem; }

/* ---------- Need-option selector (contact form) ---------- */
.need-option {
  transition: border-color 0.15s ease, background 0.15s ease;
  font-family: inherit;
}
.need-option small { font-weight: 700; color: var(--navy); }
.need-option.active {
  border-color: var(--nature);
  background: var(--bg-light);
  box-shadow: 0 0 0 2px rgba(60, 179, 113, 0.25);
}
.need-option.active small { color: var(--emerald); }

/* ---------- Team ---------- */
.team-card { text-align: center; }
.team-avatar {
  width: 84px; height: 84px;
  border-radius: 50%;
  margin: 0 auto 16px;
  background: linear-gradient(135deg, var(--nature), var(--emerald));
  display: flex; align-items: center; justify-content: center;
  color: white; font-weight: 800; font-size: 1.4rem;
}
.team-role { color: var(--emerald); font-weight: 700; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.04em; }
.team-photo {
  width: 96px; height: 96px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 16px;
  border: 3px solid var(--bg-light);
  box-shadow: var(--shadow-sm);
}

/* ---------- Steps ---------- */
.steps { counter-reset: step; }
.step {
  display: flex; gap: 20px; margin-bottom: 28px;
}
.step-num {
  counter-increment: step;
  flex-shrink: 0;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--navy);
  color: white;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
}
.step-num::before { content: counter(step); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  color: #D1D8E0;
  padding: 56px 0 24px;
  margin-top: 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 40px;
}
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.footer-grid h4 {
  color: white; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 18px;
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 10px; }
.footer-grid a { color: #B7C0CB; font-size: 0.92rem; }
.footer-grid a:hover { color: var(--nature); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.82rem;
  color: #8D97A3;
}

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.tag-pill {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--bg-light);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--navy);
  border: 1px solid var(--border);
}
.divider {
  width: 60px; height: 4px; background: var(--nature); border-radius: 4px;
  margin: 18px auto;
}
.banner {
  background: var(--cream-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
}
.stat { text-align: center; }
.stat .num { font-size: 2.2rem; font-weight: 800; color: var(--nature); }
.stat .label { font-size: 0.85rem; color: var(--ink-soft); font-weight: 600; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--navy); color: white; padding: 12px 20px; z-index: 200;
}
.skip-link:focus { left: 16px; top: 16px; }

.legal-content h2 { margin-top: 32px; }
.legal-content { max-width: 800px; }

/* ---------- Trust bar ---------- */
.trust-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 28px;
  padding: 20px 0 8px;
}
.trust-bar span {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--navy);
  white-space: nowrap;
}
.trust-bar span::before {
  content: "✓";
  color: var(--nature);
  font-weight: 800;
}

/* ---------- Relais (2 étapes) ---------- */
.relay-wrap {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
  align-items: center;
}
@media (max-width: 800px) {
  .relay-wrap { grid-template-columns: 1fr; }
  .relay-arrow { transform: rotate(90deg); margin: 0 auto; }
}
.relay-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}
.relay-card.dark {
  background: linear-gradient(135deg, #111827, #1F2937);
  border-color: #111827;
  color: #fff;
}
.relay-card.dark p { color: #C7CDD6; }
.relay-card.dark h3 { color: #fff; }
.relay-step-tag {
  font-size: 0.72rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--emerald); margin-bottom: 10px; display: block;
}
.relay-card.dark .relay-step-tag { color: #4ADE80; }
.relay-brand {
  display: flex; align-items: center; gap: 10px; margin-bottom: 14px;
}
.relay-brand img { width: 40px; height: 40px; border-radius: 10px; }
.relay-brand strong { font-size: 1.05rem; }
.relay-arrow {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--bg-light);
  display: flex; align-items: center; justify-content: center;
  color: var(--nature);
  font-size: 1.3rem;
  font-weight: 800;
  flex-shrink: 0;
}

/* ---------- Outils / partenaires ---------- */
.partner-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 14px;
}
.partner-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid var(--border);
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--navy);
  letter-spacing: 0.01em;
}
.partner-badge .dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--nature);
}
