/* ───────── Page Service B — Estimation & expertise ─────────
   Variante orientée conversion : layout dense, tableaux, formulaire intégré au hero      */

/* HERO ───────── */
.est-hero {
  position: relative;
  background: var(--ink-deep);
  color: var(--paper);
  padding: 200px 0 100px;
  overflow: hidden;
}
.est-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("https://images.unsplash.com/photo-1505691938895-1758d7feb511?w=1800&q=80&auto=format&fit=crop");
  background-size: cover;
  background-position: center;
  opacity: 0.18;
}
.est-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15,42,62,0.3) 0%, var(--ink-deep) 100%);
}
.est-hero .container { position: relative; z-index: 2; }
.est-hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 80px;
  align-items: end;
}
@media (max-width: 960px) {
  .est-hero { padding: 160px 0 80px; }
  .est-hero-grid { grid-template-columns: 1fr; gap: 48px; }
}
.est-hero-eyebrow {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--magenta);
  display: flex;
  align-items: center;
  gap: 12px;
}
.est-hero-eyebrow::before {
  content: "";
  width: 32px;
  height: 1px;
  background: var(--magenta);
}
.est-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(48px, 6vw, 88px);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.04em;
  color: var(--paper);
  margin: 24px 0 0;
}
.est-hero h1 em {
  font-style: normal;
  color: var(--magenta);
}
.est-hero-lede {
  font-size: clamp(17px, 1.4vw, 19px);
  line-height: 1.6;
  color: rgba(245,239,228,0.7);
  margin-top: 32px;
  max-width: 52ch;
}
.est-hero-bullets {
  list-style: none;
  padding: 0;
  margin: 36px 0 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.est-hero-bullets li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  font-size: 15px;
  line-height: 1.5;
  color: rgba(245,239,228,0.85);
}
.est-hero-bullets li::before {
  content: "";
  width: 18px;
  height: 18px;
  flex: none;
  margin-top: 2px;
  border-radius: 999px;
  background: var(--magenta);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>");
  background-size: 12px;
  background-repeat: no-repeat;
  background-position: center;
}

/* Quick form card ───────── */
.est-quickform {
  background: rgba(245, 239, 228, 0.08);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
  backdrop-filter: blur(24px) saturate(140%);
  color: var(--paper);
  padding: 36px 32px;
  border-radius: var(--r-md);
  border: 1px solid rgba(245, 239, 228, 0.18);
  box-shadow: 0 24px 60px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.08);
}
.est-quickform-head {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(245, 239, 228, 0.15);
}
.est-quickform-head .eyebrow {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--magenta);
  font-weight: 500;
}
.est-quickform-head h3 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--paper);
}
.est-quickform .field { margin-bottom: 16px; }
.est-quickform .field label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: rgba(245, 239, 228, 0.65);
  margin-bottom: 6px;
}
.est-quickform input,
.est-quickform select,
.est-quickform textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(245, 239, 228, 0.2);
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--paper);
  background: rgba(15, 42, 62, 0.3);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: border-color var(--t-fast), background var(--t-fast);
}
.est-quickform input::placeholder { color: rgba(245, 239, 228, 0.4); }
.est-quickform select { color: var(--paper); }
.est-quickform select option { background: var(--ink-deep); color: var(--paper); }
.est-quickform input:focus,
.est-quickform select:focus,
.est-quickform textarea:focus {
  outline: none;
  border-color: var(--magenta);
  background: rgba(15, 42, 62, 0.5);
}
.est-quickform .file-zone {
  display: block;
  border: 2px dashed rgba(245, 239, 228, 0.25);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  font-size: 13px;
  color: rgba(245, 239, 228, 0.7);
  cursor: pointer;
  transition: border-color var(--t-fast), background var(--t-fast);
  background: rgba(15, 42, 62, 0.2);
}
.est-quickform .file-zone:hover {
  border-color: var(--magenta);
  background: rgba(255,26,108,0.08);
}
.est-quickform .file-zone svg { width: 24px; height: 24px; display: block; margin: 0 auto 8px; color: var(--magenta); }
.est-quickform .submit {
  width: 100%;
  margin-top: 8px;
  padding: 16px;
  background: var(--magenta);
  color: #fff;
  border: none;
  border-radius: 999px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background var(--t-fast), transform var(--t-fast);
  box-shadow: 0 8px 24px rgba(255,26,108,0.35);
}
.est-quickform .submit:hover { background: var(--magenta-hover); transform: translateY(-1px); box-shadow: 0 12px 28px rgba(255,26,108,0.45); }
.est-quickform .submit svg { width: 14px; height: 14px; }
.est-quickform .help {
  font-size: 12px;
  color: rgba(245, 239, 228, 0.5);
  text-align: center;
  margin-top: 14px;
  line-height: 1.5;
}

/* TABLE COMPARATIVE ───────── */
.est-compare {
  padding: 120px 0;
  background: var(--paper);
}
.est-table-wrap {
  margin-top: 64px; /* room for the floating "Recommandé" pill */
  border: 1px solid var(--ink-line);
  border-radius: var(--r-md);
  background: var(--paper);
  /* no overflow:hidden — would clip the floating pill above the header */
}
.est-table { border-radius: var(--r-md); overflow: hidden; }
.est-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
}
.est-table th,
.est-table td {
  padding: 20px 24px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--ink-line);
}
.est-table tr:last-child td { border-bottom: none; }
.est-table thead th {
  background: var(--paper-warm);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-deep);
  border-bottom: 2px solid var(--ink-line);
}
.est-table thead th:first-child { color: var(--ink-muted); font-weight: 500; }
.est-table thead th.featured {
  background: var(--ink-deep);
  color: var(--paper);
  position: relative;
}
.est-table thead th.featured::before {
  content: "Recommandé";
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--magenta);
  color: #fff;
  font-size: 10px;
  letter-spacing: 0.14em;
  padding: 6px 14px;
  border-radius: 999px;
  text-transform: uppercase;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(255,26,108,0.3);
}
.est-table tbody td:first-child {
  font-weight: 600;
  color: var(--ink-deep);
  background: var(--paper-warm);
  border-right: 1px solid var(--ink-line);
}
.est-table tbody td.featured {
  background: rgba(255,26,108,0.03);
  border-left: 1px solid rgba(255,26,108,0.15);
  border-right: 1px solid rgba(255,26,108,0.15);
}
.est-table .check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: var(--magenta);
  color: #fff;
}
.est-table .check svg { width: 12px; height: 12px; }
.est-table .nope {
  display: inline-block;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: transparent;
  border: 1px solid var(--ink-line);
  position: relative;
}
.est-table .nope::after {
  content: "";
  position: absolute;
  inset: 9px 4px;
  border-top: 1px solid var(--ink-muted);
}
.est-table .price {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  color: var(--ink-deep);
  letter-spacing: -0.02em;
}
.est-table .price.free { color: var(--magenta); }
.est-table .delay {
  font-size: 12px;
  color: var(--ink-muted);
  margin-top: 2px;
  display: block;
  font-weight: 400;
}
@media (max-width: 800px) {
  .est-table-wrap { overflow-x: auto; }
  .est-table { min-width: 720px; }
}

/* WHAT WE ESTIMATE ───────── */
.est-categories {
  padding: 120px 0;
  background: var(--paper-warm);
  border-top: 1px solid var(--ink-line);
  border-bottom: 1px solid var(--ink-line);
}
.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 56px;
}
.cat-grid--cols-1 { grid-template-columns: 1fr; }
.cat-grid--cols-2 { grid-template-columns: repeat(2, 1fr); }
.cat-grid--cols-3 { grid-template-columns: repeat(3, 1fr); }
.cat-grid--cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1100px) {
  .cat-grid,
  .cat-grid--cols-3,
  .cat-grid--cols-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .cat-grid,
  .cat-grid--cols-2,
  .cat-grid--cols-3,
  .cat-grid--cols-4 { grid-template-columns: 1fr; }
}

.cat-card {
  background: var(--paper);
  padding: 28px;
  border-radius: var(--r-md);
  border: 1px solid var(--ink-line);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform var(--t-fast), box-shadow var(--t-fast);
}
.cat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-2);
}
.cat-card-img {
  aspect-ratio: 4 / 3;
  background-size: cover;
  background-position: center;
  border-radius: 8px;
  margin-bottom: 4px;
}
.cat-card h4 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink-deep);
  line-height: 1.2;
}
.cat-card p {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink-muted);
}
.cat-card .periods {
  margin-top: auto;
  padding-top: 12px;
  font-size: 11px;
  color: var(--magenta);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
}

/* INLINE FAQ ───────── */
.est-faq-inline {
  padding: 120px 0;
  background: var(--paper);
}
.est-faq-list {
  margin-top: 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px 64px;
}
@media (max-width: 800px) { .est-faq-list { grid-template-columns: 1fr; gap: 32px; } }
.est-faq-item {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.est-faq-item h4 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink-deep);
  line-height: 1.3;
  display: flex;
  gap: 10px;
}
.est-faq-item h4::before {
  content: "?";
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: var(--magenta);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  margin-top: 2px;
}
.est-faq-item p {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink-muted);
  padding-left: 32px;
}
