/* Christine — Assistante administrative
   Palette & typo issues du brief client */

:root {
  --olive: #5a6e4f;
  --olive-deep: #46573e;
  --olive-ink: #3d4c36;
  --sage: #c9d3c0;
  --sage-soft: #dce3d5;
  --gold: #d9c7a1;
  --gold-deep: #b9a57c;
  --white: #ffffff;
  --cream: #f7f4ee;
  --beige: #e9e4da;
  --gray: #f2f2f2;
  --anthracite: #2e2e2e;
  --ink: #2e2e2e;
  --muted: #5f5c57;
  --line: rgba(90, 110, 79, 0.18);
  --gold-line: rgba(217, 199, 161, 0.7);
  --shadow: 0 18px 40px rgba(46, 46, 46, 0.08);
  --radius: 14px;
  --header-h: 84px;
  --max: 1120px;
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-title: "Montserrat", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 28px);
  overflow-x: hidden;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  max-width: 100%;
}

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

a {
  color: var(--olive-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--olive);
}

:focus-visible {
  outline: 2px solid var(--olive);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -40px;
  z-index: 1000;
  background: var(--olive);
  color: var(--white);
  padding: 8px 14px;
  border-radius: 6px;
}

.skip-link:focus {
  top: 12px;
}

.wrap,
section,
main,
.table-wrap {
  min-width: 0;
  max-width: 100%;
}

.wrap {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
}

.eyebrow {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 14px;
  color: var(--olive);
  font-family: var(--font-title);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--gold-deep);
}

h1,
h2,
h3,
.h-display {
  font-family: var(--font-title);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--anthracite);
}

h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.15rem, 5vw, 4.1rem);
  letter-spacing: -0.01em;
  line-height: 1.08;
  overflow-wrap: break-word;
}

h2 {
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  margin: 0 0 18px;
}

h3 {
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 1.12rem;
  margin: 0 0 10px;
}

.lede {
  font-size: 1.12rem;
  color: var(--muted);
  max-width: 62ch;
}

.muted {
  color: var(--muted);
}

hr.rule {
  border: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
  margin: 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--font-title);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.btn:hover {
  color: var(--white);
  transform: translateY(-1px);
}

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

.btn-primary:hover {
  background: var(--olive-deep);
}

.btn-ghost {
  background: transparent;
  color: var(--olive-ink);
  border-color: var(--olive);
}

.btn-ghost:hover {
  background: var(--olive);
}

.btn-gold {
  background: var(--gold);
  color: var(--olive-ink);
}

.btn-gold:hover {
  background: var(--gold-deep);
  color: var(--olive-ink);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

/* Top bar + header */
.topbar {
  background: var(--olive);
  color: var(--sage-soft);
  font-family: var(--font-title);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.topbar .wrap {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  min-height: 36px;
  padding-block: 8px;
}

.topbar a {
  color: var(--white);
  text-decoration: none;
}

.topbar a:hover {
  color: var(--gold);
}

.topbar-values {
  opacity: 0.92;
}

header.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 244, 238, 0.96);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

header.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 8px 24px rgba(46, 46, 46, 0.05);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 20px;
  min-width: 0;
}

.brand {
  min-width: 0;
  flex: 0 1 auto;
}

.brand img {
  height: 58px;
  width: auto;
  max-width: min(220px, 62vw);
}

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

.nav a {
  font-family: var(--font-title);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--anthracite);
}

.nav a:hover,
.nav a.is-active {
  color: var(--olive);
}

.nav .btn-primary {
  color: var(--white);
}

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

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--olive);
  background: var(--white);
  border-radius: 10px;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  margin: 0;
  background: var(--olive-ink);
}

/* Hero */
.hero {
  position: relative;
  padding: 56px 0 72px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.hero-copy,
.hero-visual,
.stat,
.panel,
.service,
.plan,
.contact-card,
form {
  min-width: 0;
}

.hero-copy p {
  color: var(--muted);
}

.hero-copy .goal {
  margin-top: 22px;
  padding-left: 18px;
  border-left: 2px solid var(--gold);
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-style: italic;
  line-height: 1.35;
  color: var(--olive-ink);
}

.hero-visual {
  position: relative;
}

.hero-visual img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  border-radius: 4px 48px 4px 4px;
  box-shadow: var(--shadow);
}

.hero-frame {
  position: absolute;
  inset: 18px -18px -18px 18px;
  border: 1px solid var(--gold);
  border-radius: 4px 48px 4px 4px;
  pointer-events: none;
  z-index: -1;
}

.hero-badge {
  position: absolute;
  left: -18px;
  bottom: 32px;
  background: var(--white);
  border: 1px solid var(--gold);
  padding: 16px 18px;
  max-width: 210px;
  box-shadow: var(--shadow);
}

.hero-badge strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.8rem;
  line-height: 1;
  color: var(--olive);
}

.hero-badge span {
  font-size: 0.82rem;
  color: var(--muted);
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border-block: 1px solid var(--line);
}

.stat {
  background: var(--white);
  padding: 28px 22px;
}

.stat b {
  display: block;
  font-family: var(--font-display);
  font-size: 1.7rem;
  color: var(--olive);
  font-weight: 600;
}

.stat span {
  font-size: 0.92rem;
  color: var(--muted);
}

/* Sections */
section {
  padding: 88px 0;
}

.section-head {
  max-width: 720px;
  margin-bottom: 42px;
}

.bg-white {
  background: var(--white);
}

.bg-olive {
  background: var(--olive);
  color: var(--cream);
}

.bg-olive h2,
.bg-olive h3,
.bg-olive .eyebrow {
  color: var(--white);
}

.bg-olive .eyebrow::before {
  background: var(--gold);
}

.bg-olive .lede,
.bg-olive p {
  color: var(--sage-soft);
}

/* Avantages */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
}

.panel.gold-edge {
  border-color: var(--gold-line);
  background: linear-gradient(180deg, #fbf9f4 0%, var(--white) 48%);
}

.list {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
}

.list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 10px 0;
  border-bottom: 1px solid var(--gray);
  color: var(--ink);
}

.list li:last-child {
  border-bottom: 0;
}

.list svg {
  flex: 0 0 auto;
  margin-top: 4px;
}

.referral {
  margin-top: 28px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 22px;
  align-items: center;
  padding: 28px;
  border: 1px solid var(--gold);
  background: var(--cream);
  border-radius: var(--radius);
}

.referral-mark {
  font-family: var(--font-display);
  font-size: 3rem;
  color: var(--olive);
  line-height: 1;
}

/* Services */
.service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.service {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  min-height: 100%;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.service:hover {
  border-color: var(--gold-deep);
  transform: translateY(-2px);
}

.service-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 8px;
}

.service-icon {
  width: 42px;
  height: 42px;
  border: 1px solid var(--gold);
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: var(--olive);
  background: var(--white);
}

.service-num {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--gold-deep);
}

.service ul {
  margin: 14px 0 0;
  padding: 0 0 0 18px;
  color: var(--muted);
}

.service li + li {
  margin-top: 6px;
}

/* Process */
.process {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.step {
  padding: 8px 8px 8px 0;
}

.step-n {
  font-family: var(--font-display);
  font-size: 2.2rem;
  color: var(--olive);
  line-height: 1;
}

.step p {
  margin: 8px 0 0;
  color: var(--muted);
}

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

.plan {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px 24px;
  display: flex;
  flex-direction: column;
  position: relative;
}

.plan.featured {
  background: var(--olive);
  border-color: var(--olive);
  color: var(--white);
  transform: translateY(-8px);
}

.plan.featured h3,
.plan.featured .price,
.plan.featured p,
.plan.featured li {
  color: var(--white);
}

.plan.featured .muted,
.plan.featured .price small {
  color: var(--sage);
}

.badge {
  position: absolute;
  top: -12px;
  right: 18px;
  background: var(--gold);
  color: var(--olive-ink);
  font-family: var(--font-title);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 10px;
  border-radius: 999px;
}

.price {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 600;
  color: var(--olive);
  line-height: 1;
  margin: 12px 0 8px;
}

.price small {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--muted);
  font-weight: 400;
}

.plan .btn {
  margin-top: auto;
}

.plan ul {
  margin: 8px 0 24px;
  padding: 0;
  list-style: none;
}

.plan li {
  padding: 8px 0 8px 18px;
  position: relative;
  color: var(--muted);
}

.plan li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 16px;
  width: 7px;
  height: 1px;
  background: var(--gold-deep);
}

.note {
  margin-top: 22px;
  font-size: 0.92rem;
  color: var(--muted);
}

/* Table */
.table-wrap {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}

th,
td {
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

th {
  background: var(--olive);
  color: var(--white);
  font-family: var(--font-title);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

tr:last-child td {
  border-bottom: 0;
}

td.tarif {
  font-weight: 600;
  white-space: nowrap;
  color: var(--olive-ink);
}

tbody tr:hover td {
  background: #fbf9f4;
}

.cat {
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--olive);
  font-weight: 600;
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 48px;
  align-items: center;
}

.about-grid img {
  width: 100%;
  height: 460px;
  object-fit: cover;
  border-radius: 4px 4px 40px 4px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.chip {
  border: 1px solid var(--gold-line);
  background: var(--white);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.88rem;
  color: var(--olive-ink);
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 36px;
}

.contact-card {
  background: var(--white);
  border: 1px solid var(--gold-line);
  border-radius: var(--radius);
  padding: 28px;
}

.contact-line {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 0;
  border-bottom: 1px solid var(--gray);
}

.contact-line:last-of-type {
  border-bottom: 0;
}

.contact-line a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.contact-line a:hover {
  color: var(--olive);
}

.contact-line small {
  display: block;
  font-weight: 400;
  color: var(--muted);
}

form {
  display: grid;
  gap: 14px;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

label {
  display: block;
  font-family: var(--font-title);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 10px;
  padding: 12px 14px;
  font: inherit;
  color: var(--ink);
}

textarea {
  min-height: 140px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--olive);
  box-shadow: 0 0 0 3px rgba(90, 110, 79, 0.15);
}

.hp {
  position: absolute;
  left: -9999px;
}

.form-status {
  min-height: 1.4em;
  font-size: 0.95rem;
}

.form-status.ok {
  color: var(--olive-deep);
}

.form-status.err {
  color: #8a3b32;
}

/* Footer */
footer.site-footer {
  background: var(--olive-ink);
  color: var(--sage);
  padding: 48px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(201, 211, 192, 0.18);
}

.site-footer a {
  color: var(--cream);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--gold);
}

.site-footer .brand img {
  height: 52px;
  background: var(--white);
  padding: 8px 12px;
  border-radius: 8px;
}

.site-footer ul {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
}

.site-footer li + li {
  margin-top: 8px;
}

.site-footer h3 {
  color: var(--gold);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.legal-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  padding-top: 18px;
  font-size: 0.85rem;
}

.mobile-cta {
  display: none;
}

/* Legal pages */
.legal {
  padding: 56px 0 88px;
}

.legal-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 40px 36px;
  max-width: 800px;
}

.legal-card h1 {
  font-size: 2.4rem;
  margin-top: 0;
}

.legal-card h2 {
  font-size: 1.2rem;
  margin-top: 32px;
}

.legal-card p,
.legal-card li {
  color: var(--muted);
}

/* 404 / merci */
.center-page {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 80px 20px;
}

.center-page h1 {
  margin-bottom: 12px;
}

@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: no-preference) {
  [data-reveal] {
    animation: reveal 0.6s ease both;
  }
}

@media (max-width: 980px) {
  .hero-grid,
  .about-grid,
  .contact-grid,
  .split,
  .plans,
  .process,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

  .hero-visual img,
  .about-grid img {
    height: 380px;
  }

  .hero-frame,
  .hero-badge {
    display: none;
  }

  .plan.featured {
    transform: none;
  }

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

  .stats {
    border-left: 0;
    border-right: 0;
  }
}

@media (max-width: 780px) {
  .wrap {
    width: min(var(--max), calc(100% - 32px));
  }

  .topbar-values {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    z-index: 60;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 20px 22px;
    gap: 14px;
  }

  header.site-header.is-open .nav {
    display: flex;
  }

  .nav-compact {
    display: flex;
    position: static;
    flex-direction: row;
    align-items: center;
    border: 0;
    padding: 0;
    background: transparent;
  }

  .brand img {
    height: 48px;
  }

  .btn-row {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-row .btn {
    width: 100%;
  }

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

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

  .stat {
    padding: 22px 20px;
  }

  .eyebrow {
    letter-spacing: 0.1em;
  }

  h2 {
    overflow-wrap: break-word;
  }

  table {
    min-width: 0;
  }

  thead {
    display: none;
  }

  table,
  tbody,
  tr,
  td {
    display: block;
    width: 100%;
  }

  tbody tr {
    padding: 12px 0 16px;
    border-bottom: 1px solid var(--line);
  }

  tbody tr:last-child {
    border-bottom: 0;
  }

  td {
    display: grid;
    grid-template-columns: 7.5rem 1fr;
    gap: 8px;
    padding: 6px 16px;
    border: 0;
  }

  td::before {
    content: attr(data-label);
    font-family: var(--font-title);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--olive);
  }

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

  .mobile-cta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 40;
    padding: 8px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--shadow);
  }

  .mobile-cta .btn {
    min-height: 44px;
    width: 100%;
  }

  body {
    padding-bottom: 78px;
  }

  section {
    padding: 56px 0;
  }

  .hero-visual img,
  .about-grid img {
    height: 280px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  [data-reveal] {
    animation: none;
  }

  .btn {
    transition: none;
  }
}
