:root {
  --bg: #f4f9f8;
  --surface: #ffffff;
  --ink: #1f3b3d;
  --muted: #5c7377;
  --line: #e2ecec;
  --brand: #2f9e8f;        /* vert apaisant */
  --brand-dark: #227a6f;
  --blue: #4a86b8;         /* bleu doux */
  --blue-soft: #e8f1f8;
  --green-soft: #e6f4f1;
  --accent: #f0b429;
  --danger: #d76a6a;
  --radius: 16px;
  --shadow: 0 6px 24px rgba(31, 59, 61, 0.08);
  --shadow-lg: 0 14px 40px rgba(31, 59, 61, 0.14);
  --maxw: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--brand-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* ---------- Bandeau démo ---------- */
.demo-banner {
  background: repeating-linear-gradient(45deg, #fff6e0, #fff6e0 12px, #fdeecb 12px, #fdeecb 24px);
  color: #8a6d1a;
  font-size: 0.8rem;
  font-weight: 600;
  text-align: center;
  padding: 6px 12px;
  letter-spacing: 0.02em;
  border-bottom: 1px solid #f0dfae;
}
.demo-banner span { opacity: 0.9; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 12px 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--ink);
}
.brand:hover { text-decoration: none; }
.brand .logo {
  width: 34px; height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--brand), var(--blue));
  display: grid; place-items: center;
  color: #fff; font-weight: 900;
}
.brand small { display:block; font-size: 0.62rem; font-weight: 600; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }

.nav-links {
  display: flex;
  gap: 4px;
  margin-left: auto;
  align-items: center;
  flex-wrap: wrap;
}
.nav-links a {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 8px 12px;
  border-radius: 10px;
}
.nav-links a:hover { background: var(--green-soft); color: var(--brand-dark); text-decoration: none; }
.nav-links a.active { color: var(--brand-dark); background: var(--green-soft); }

.nav-toggle {
  display: none;
  background: none; border: 1px solid var(--line);
  border-radius: 10px; padding: 8px 10px; cursor: pointer;
  font-size: 1.1rem; color: var(--ink);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 11px 18px;
  border-radius: 12px;
  background: var(--brand);
  color: #fff;
  transition: transform .08s ease, background .2s ease, box-shadow .2s ease;
}
.btn:hover { background: var(--brand-dark); text-decoration: none; box-shadow: var(--shadow); }
.btn:active { transform: translateY(1px); }
.btn.secondary { background: var(--blue-soft); color: var(--blue); }
.btn.secondary:hover { background: #d8e8f4; }
.btn.ghost { background: transparent; color: var(--brand-dark); border: 1px solid var(--brand); }
.btn.ghost:hover { background: var(--green-soft); }
.btn.block { width: 100%; }
.btn.lg { padding: 14px 26px; font-size: 1.02rem; }

/* ---------- Layout ---------- */
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.view { padding: 28px 0 60px; animation: fade .35s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.section-title { font-size: 1.5rem; margin: 0 0 4px; }
.section-sub { color: var(--muted); margin: 0 0 22px; }

.breadcrumb { font-size: 0.85rem; color: var(--muted); margin-bottom: 14px; }
.breadcrumb a { color: var(--muted); }

/* ---------- Hero / recherche ---------- */
.hero {
  background: linear-gradient(135deg, var(--green-soft), var(--blue-soft));
  border-radius: var(--radius);
  padding: 34px 28px;
  margin-bottom: 26px;
}
.hero h1 { font-size: clamp(1.6rem, 3vw, 2.3rem); margin: 0 0 8px; }
.hero p { color: var(--muted); max-width: 620px; margin: 0 0 22px; }

.search-bar {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 12px;
  background: var(--surface);
  padding: 14px;
  border-radius: 14px;
  box-shadow: var(--shadow);
}
.search-bar .field { display: flex; flex-direction: column; gap: 4px; }
.search-bar label { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.search-bar input, .search-bar select {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 11px 12px;
  font-size: 0.95rem;
  background: #fbfdfd;
  color: var(--ink);
}
.search-bar input:focus, .search-bar select:focus { outline: 2px solid var(--brand); border-color: transparent; }
.search-bar .btn { align-self: end; height: 44px; }

.filter-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 18px 0; }
.filter-row .count { color: var(--muted); font-size: 0.9rem; margin-right: auto; }
.chip {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.85rem;
  cursor: pointer;
  font-weight: 600;
}
.chip:hover, .chip.active { background: var(--green-soft); color: var(--brand-dark); border-color: var(--brand); }

/* ---------- Cartes psy ---------- */
.grid { display: grid; gap: 18px; }
.cards { grid-template-columns: repeat(3, 1fr); }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  transition: transform .15s ease, box-shadow .2s ease;
  display: flex;
  flex-direction: column;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }

.card-head { display: flex; gap: 14px; align-items: center; margin-bottom: 12px; }
.avatar {
  width: 58px; height: 58px; border-radius: 50%;
  flex: 0 0 auto;
  display: grid; place-items: center;
  color: #fff; font-weight: 800; font-size: 1.15rem;
  background: linear-gradient(135deg, var(--brand), var(--blue));
}
.card-head h3 { margin: 0; font-size: 1.08rem; }
.card-head .meta { color: var(--muted); font-size: 0.85rem; }
.pin::before { content: "📍 "; }

.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
.tag {
  background: var(--green-soft);
  color: var(--brand-dark);
  border-radius: 8px;
  padding: 3px 9px;
  font-size: 0.76rem;
  font-weight: 600;
}
.tag.blue { background: var(--blue-soft); color: var(--blue); }

.card .langs { font-size: 0.82rem; color: var(--muted); margin-bottom: 14px; }
.card .card-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.card .price { font-weight: 800; color: var(--ink); }
.badge-teleco { font-size: 0.72rem; color: var(--brand-dark); background: var(--green-soft); padding: 3px 8px; border-radius: 6px; font-weight: 700; }

.empty { text-align: center; padding: 50px 20px; color: var(--muted); }

/* ---------- Fiche psy ---------- */
.profile { display: grid; grid-template-columns: 1.6fr 1fr; gap: 24px; align-items: start; }
.profile .panel {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow);
}
.profile-head { display: flex; gap: 18px; align-items: center; margin-bottom: 18px; }
.profile-head .avatar { width: 84px; height: 84px; font-size: 1.6rem; }
.profile-head h1 { margin: 0 0 4px; font-size: 1.6rem; }
.profile h2 { font-size: 1.05rem; margin: 22px 0 8px; }
.profile p { color: #33484b; }
.divider { height: 1px; background: var(--line); margin: 18px 0; border: none; }

.info-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.info-list li { display: flex; gap: 10px; font-size: 0.92rem; color: #33484b; }
.info-list .ico { width: 22px; text-align: center; }

.map-placeholder {
  position: relative;
  height: 180px;
  border-radius: 12px;
  margin-top: 12px;
  background:
    linear-gradient(0deg, rgba(47,158,143,.06), rgba(74,134,184,.06)),
    repeating-linear-gradient(0deg, #eef5f4, #eef5f4 22px, #e4efee 22px, #e4efee 23px),
    repeating-linear-gradient(90deg, #eef5f4, #eef5f4 22px, #e4efee 22px, #e4efee 23px);
  border: 1px solid var(--line);
  display: grid; place-items: center;
  overflow: hidden;
}
.map-placeholder .marker { font-size: 2rem; filter: drop-shadow(0 4px 6px rgba(0,0,0,.2)); animation: bob 2s ease-in-out infinite; }
@keyframes bob { 0%,100% { transform: translateY(0);} 50% { transform: translateY(-6px);} }
.map-placeholder .cap { position: absolute; bottom: 8px; left: 10px; font-size: 0.72rem; color: var(--muted); background: rgba(255,255,255,.8); padding: 2px 8px; border-radius: 6px; }

/* ---------- Vue carte ---------- */
.map-wrap { display: grid; grid-template-columns: 300px 1fr; gap: 20px; align-items: start; }
.map-controls { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.map-controls .field { margin-bottom: 16px; }
.map-controls label { display:block; font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-bottom: 6px; }
.map-controls input[type=range] { width: 100%; accent-color: var(--brand); }
.map-controls input[type=text] { width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 10px; font-size: .92rem; }
.radius-val { font-weight: 800; color: var(--brand-dark); }

.map-canvas {
  position: relative;
  height: 520px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  overflow: hidden;
  background:
    radial-gradient(circle at 30% 20%, rgba(74,134,184,.10), transparent 40%),
    radial-gradient(circle at 70% 70%, rgba(47,158,143,.10), transparent 45%),
    repeating-linear-gradient(0deg, #eaf3f2, #eaf3f2 30px, #e2eeed 30px, #e2eeed 31px),
    repeating-linear-gradient(90deg, #eaf3f2, #eaf3f2 30px, #e2eeed 30px, #e2eeed 31px),
    #eef5f4;
}
.map-canvas .center-ring {
  position: absolute; transform: translate(-50%, -50%);
  border: 2px dashed var(--blue);
  border-radius: 50%;
  background: rgba(74,134,184,.08);
  transition: width .3s ease, height .3s ease;
  pointer-events: none;
}
.map-canvas .center-dot {
  position: absolute; transform: translate(-50%, -50%);
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--blue); border: 3px solid #fff; box-shadow: 0 2px 6px rgba(0,0,0,.25);
}
.map-pin {
  position: absolute; transform: translate(-50%, -100%);
  cursor: pointer; text-align: center;
  transition: transform .12s ease, opacity .3s ease;
}
.map-pin .dot { font-size: 1.5rem; filter: drop-shadow(0 3px 4px rgba(0,0,0,.25)); }
.map-pin .lbl { font-size: 0.68rem; background: rgba(255,255,255,.92); padding: 1px 6px; border-radius: 6px; white-space: nowrap; box-shadow: var(--shadow); }
.map-pin:hover { transform: translate(-50%, -100%) scale(1.12); }
.map-pin.dim { opacity: .28; }
.map-legend { position: absolute; bottom: 12px; right: 12px; background: rgba(255,255,255,.9); border-radius: 10px; padding: 8px 12px; font-size: .78rem; color: var(--muted); box-shadow: var(--shadow); }

/* ---------- Premium ---------- */
.premium-hero {
  background: linear-gradient(135deg, #234b5c, #2f9e8f);
  color: #fff; border-radius: var(--radius); padding: 34px 28px; margin-bottom: 26px;
}
.premium-hero h1 { margin: 0 0 8px; font-size: clamp(1.6rem,3vw,2.2rem); }
.premium-hero p { opacity: .92; max-width: 620px; }
.pill { display:inline-block; background: rgba(255,255,255,.18); color:#fff; padding: 4px 12px; border-radius: 999px; font-size: .78rem; font-weight: 700; margin-bottom: 12px; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.block-title { display:flex; align-items:center; gap:10px; font-size: 1.25rem; margin: 0 0 4px; }
.block-title .ico { font-size: 1.4rem; }

.session {
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  padding: 16px; margin-bottom: 12px; display: flex; gap: 14px; align-items: center;
}
.session .date-box {
  flex: 0 0 auto; text-align: center; background: var(--green-soft); color: var(--brand-dark);
  border-radius: 10px; padding: 8px 12px; min-width: 74px; font-weight: 700; font-size: .82rem;
}
.session h4 { margin: 0 0 3px; font-size: 1rem; }
.session .meta { color: var(--muted); font-size: .84rem; }
.session .places { font-size: .78rem; font-weight: 700; }
.session .places.full { color: var(--danger); }
.session .places.ok { color: var(--brand-dark); }

.res-grid { grid-template-columns: repeat(3, 1fr); }
.res-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  padding: 16px; position: relative; box-shadow: var(--shadow); display:flex; flex-direction:column;
}
.res-card.locked { background: repeating-linear-gradient(135deg,#fafcfc,#fafcfc 10px,#f3f8f7 10px,#f3f8f7 20px); }
.res-card h4 { margin: 0 0 6px; font-size: .98rem; line-height: 1.35; }
.res-card .author { color: var(--muted); font-size: .82rem; margin-bottom: 10px; }
.res-card .tags { margin-top: auto; }
.lock-badge {
  position: absolute; top: 12px; right: 12px;
  background: var(--accent); color: #6b4e00; font-weight: 700;
  font-size: .68rem; padding: 3px 8px; border-radius: 999px;
}

/* ---------- Tarifs ---------- */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 780px; margin: 0 auto; }
.plan {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow); display: flex; flex-direction: column;
}
.plan.featured { border: 2px solid var(--brand); box-shadow: var(--shadow-lg); position: relative; }
.plan.featured::before {
  content: "Recommandé"; position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--brand); color: #fff; font-size: .72rem; font-weight: 700; padding: 4px 14px; border-radius: 999px;
}
.plan h3 { margin: 0 0 4px; font-size: 1.2rem; }
.plan .price { font-size: 2.2rem; font-weight: 800; margin: 10px 0 2px; }
.plan .price span { font-size: .95rem; font-weight: 600; color: var(--muted); }
.plan ul { list-style: none; padding: 0; margin: 18px 0; display: grid; gap: 10px; }
.plan li { display: flex; gap: 10px; font-size: .92rem; }
.plan li .ck { color: var(--brand); font-weight: 800; }
.plan li.off { color: var(--muted); }
.plan li.off .ck { color: var(--muted); }
.plan .btn { margin-top: auto; }

/* ---------- Paiement ---------- */
.pay-wrap { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; align-items: start; max-width: 900px; margin: 0 auto; }
.pay-form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.pay-form .fake-note {
  background: #fff6e0; border: 1px solid #f0dfae; color: #8a6d1a;
  border-radius: 10px; padding: 10px 14px; font-size: .82rem; margin-bottom: 20px; font-weight: 600;
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }
.form-field label { display:block; font-size: .78rem; font-weight: 700; color: var(--muted); margin-bottom: 5px; text-transform: uppercase; letter-spacing: .04em; }
.form-field input {
  width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 11px 12px; font-size: .95rem; background: #fbfdfd;
}
.form-field input:focus { outline: 2px solid var(--brand); border-color: transparent; }

.summary { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.summary h3 { margin: 0 0 14px; }
.summary .line { display: flex; justify-content: space-between; padding: 8px 0; font-size: .92rem; color: #33484b; border-bottom: 1px dashed var(--line); }
.summary .total { font-weight: 800; font-size: 1.1rem; border: none; padding-top: 14px; }

.confirm {
  max-width: 560px; margin: 20px auto; text-align: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 46px 30px; box-shadow: var(--shadow);
}
.confirm .check {
  width: 82px; height: 82px; border-radius: 50%; margin: 0 auto 20px;
  background: var(--green-soft); color: var(--brand); display: grid; place-items: center; font-size: 2.4rem;
  animation: pop .4s ease;
}
@keyframes pop { from { transform: scale(.5); opacity: 0;} to { transform: scale(1); opacity: 1; } }
.confirm h1 { margin: 0 0 8px; }
.confirm p { color: var(--muted); }

/* ---------- Modal contact ---------- */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(20,40,42,.5);
  display: none; place-items: center; z-index: 100; padding: 20px;
}
.modal-overlay.open { display: grid; animation: fade .2s ease; }
.modal {
  background: var(--surface); border-radius: var(--radius); padding: 28px;
  max-width: 440px; width: 100%; box-shadow: var(--shadow-lg);
}
.modal h3 { margin: 0 0 6px; }
.modal p { color: var(--muted); font-size: .9rem; margin: 0 0 18px; }
.modal .close { float: right; cursor: pointer; border: none; background: none; font-size: 1.4rem; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
  padding: 26px 0;
  margin-top: 30px;
}
.site-footer .container { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.site-footer small { color: var(--muted); }
.footer-links { display: flex; gap: 16px; flex-wrap: wrap; }
.footer-links a { color: var(--muted); font-size: .88rem; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .cards, .res-grid { grid-template-columns: repeat(2, 1fr); }
  .profile { grid-template-columns: 1fr; }
  .map-wrap { grid-template-columns: 1fr; }
  .map-canvas { height: 420px; }
  .two-col { grid-template-columns: 1fr; }
  .pay-wrap { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .nav-links {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column;
    background: var(--surface);
    padding: 12px 16px;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    gap: 2px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { width: 100%; }
  .nav-toggle { display: block; margin-left: auto; }
  .search-bar { grid-template-columns: 1fr; }
  .cards, .res-grid { grid-template-columns: 1fr; }
  .plans { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
}
