@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@500;600;700;800&display=swap");

:root {
  --cream: #fffaf3;
  --cream-deep: #f7eee2;
  --paper: #ffffff;
  --ink: #20302f;
  --muted: #687776;
  --green: #2f7c6b;
  --green-deep: #1f5c50;
  --green-soft: #dceee8;
  --coral: #e78168;
  --coral-soft: #f9ddd4;
  --yellow: #edba63;
  --yellow-soft: #fae9bf;
  --line: #e9dfd2;
  --shadow: 0 24px 70px rgba(70, 59, 47, 0.13);
  --shadow-soft: 0 16px 40px rgba(70, 59, 47, 0.09);
  --radius-lg: 32px;
  --radius-md: 22px;
  --radius-sm: 14px;
  --container: min(1320px, calc(100% - 48px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: "DM Sans", Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

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

svg {
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.container {
  width: var(--container);
  margin: 0 auto;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  padding: 10px 16px;
  border-radius: 10px;
  color: white;
  background: var(--ink);
  transform: translateY(-150%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 100;
  border-bottom: 1px solid transparent;
  background: rgba(255, 250, 243, 0.86);
  backdrop-filter: blur(16px);
  transition: box-shadow 180ms ease, border-color 180ms ease;
}

.site-header.is-scrolled {
  border-color: rgba(222, 210, 196, 0.7);
  box-shadow: 0 8px 30px rgba(63, 52, 41, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-family: "Manrope", Arial, sans-serif;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.6px;
}

.brand strong {
  color: var(--green);
  font-weight: 800;
}

.brand-mark {
  position: relative;
  display: grid;
  width: 37px;
  height: 37px;
  place-items: center;
  overflow: hidden;
  border-radius: 50% 50% 45% 55%;
  background: var(--coral);
  transform: rotate(-10deg);
}

.brand-mark::before,
.brand-mark::after {
  position: absolute;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;
}

.brand-mark::before {
  width: 25px;
  height: 25px;
  transform: translate(-8px, 7px);
}

.brand-mark::after {
  width: 17px;
  height: 17px;
  transform: translate(9px, -8px);
}

.brand-pearl {
  position: relative;
  z-index: 1;
  width: 12px;
  height: 12px;
  border: 2px solid white;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  box-shadow: inset 2px 2px 2px rgba(255, 255, 255, 0.6);
}

.main-navigation {
  display: flex;
  align-items: center;
  gap: 30px;
  color: #52605f;
  font-size: 14px;
  font-weight: 600;
}

.main-navigation > a:not(.button) {
  position: relative;
  padding: 28px 0 25px;
}

.main-navigation > a:not(.button)::after {
  position: absolute;
  right: 50%;
  bottom: 20px;
  left: 50%;
  height: 2px;
  border-radius: 2px;
  content: "";
  background: var(--coral);
  transition: right 180ms ease, left 180ms ease;
}

.main-navigation > a:not(.button):hover::after,
.main-navigation > a.is-active::after {
  right: 0;
  left: 0;
}

.header-login {
  color: var(--ink);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border: 1px solid var(--green);
  border-radius: 999px;
  color: white;
  background: var(--green);
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(47, 124, 107, 0.18);
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover {
  background: var(--green-deep);
  box-shadow: 0 14px 30px rgba(47, 124, 107, 0.25);
  transform: translateY(-2px);
}

.button-small {
  min-height: 42px;
  padding: 0 19px;
  font-size: 13px;
}

.button-dark {
  border-color: var(--ink);
  background: var(--ink);
  box-shadow: 0 12px 24px rgba(32, 48, 47, 0.18);
}

.button-dark:hover {
  background: #101d1c;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 0;
  border-radius: 50%;
  color: var(--ink);
  background: transparent;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  border-radius: 2px;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}

.hero {
  position: relative;
  min-height: 820px;
  padding: 155px 0 0;
  overflow: hidden;
}

.hero::after {
  position: absolute;
  right: -3%;
  bottom: 0;
  left: -3%;
  z-index: -1;
  height: 110px;
  content: "";
  background: var(--paper);
  clip-path: ellipse(55% 50% at 50% 100%);
}

.hero-orb {
  position: absolute;
  z-index: -2;
  border-radius: 50%;
  filter: blur(2px);
}

.hero-orb-one {
  top: 115px;
  left: -130px;
  width: 330px;
  height: 330px;
  background: rgba(249, 221, 212, 0.55);
}

.hero-orb-two {
  top: 30px;
  right: -110px;
  width: 430px;
  height: 430px;
  background: rgba(220, 238, 232, 0.52);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(340px, 0.8fr);
  gap: 60px;
  align-items: center;
}

.hero-copy {
  position: relative;
  z-index: 2;
  padding-bottom: 60px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--coral);
  box-shadow: 0 0 0 5px var(--coral-soft);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: "Manrope", Arial, sans-serif;
  line-height: 1.08;
}

h1 {
  margin-bottom: 24px;
  font-size: clamp(42px, 5.2vw, 72px);
  font-weight: 800;
  letter-spacing: -3.6px;
}

h1 em {
  position: relative;
  color: var(--coral);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: -2.4px;
}

h1 em::after {
  position: absolute;
  right: 0;
  bottom: -7px;
  left: 8%;
  height: 8px;
  content: "";
  border-top: 3px solid var(--yellow);
  border-radius: 50%;
  transform: rotate(-2deg);
}

.hero-title-block {
  display: table;
  margin-bottom: 30px;
}

.hero-title-block h1 {
  margin-bottom: 16px;
}

.hero-intro {
  margin-bottom: 0;
  color: var(--muted);
  font-size: clamp(14px, 1.45vw, 18px);
  line-height: 1.72;
}

.search-card {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr auto;
  align-items: stretch;
  max-width: 860px;
  padding: 6px 6px 6px 6px;
  border: 1px solid rgba(231, 218, 202, 0.9);
  border-radius: 20px;
  background: var(--paper);
  box-shadow: var(--shadow-soft);
  gap: 0;
}

.search-field {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 14px 20px;
  min-width: 0;
}

.search-field + .search-field {
  border-left: 1px solid #d8cfc4;
}

.search-field label {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.input-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.input-wrap svg {
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  color: var(--coral);
}

.input-wrap input,
.input-wrap select {
  width: 100%;
  min-width: 0;
  padding: 0;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font-size: 15px;
  font-weight: 600;
  appearance: none;
  cursor: pointer;
}

.input-wrap input::placeholder {
  color: #b0bab9;
  font-weight: 400;
}

.input-wrap input[type="date"] {
  color: var(--ink);
}

.input-wrap input[type="date"]::-webkit-calendar-picker-indicator {
  display: none;
}

.search-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 6px;
  padding: 0 24px;
  border: 0;
  border-radius: 14px;
  color: white;
  background: var(--coral);
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 8px 20px rgba(231, 129, 104, 0.28);
  transition: transform 180ms ease, background 180ms ease;
}

.search-submit:hover {
  background: #d86e54;
  transform: translateY(-2px);
}

.search-submit svg {
  width: 17px;
  height: 17px;
}

/* ── Zone résultats de recherche ──────────────────────────────────────────── */

.search-results {
  max-width: 780px;
  margin-top: 20px;
}

.search-results[hidden] {
  display: none;
}

.search-results-header {
  margin-bottom: 16px;
}

.search-results-count {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 800;
  color: var(--ink);
}

.search-results-sub {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}

.search-results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(215px, 1fr));
  gap: 14px;
}

.result-card {
  display: flex;
  flex-direction: column;
  padding: 16px;
  border: 1px solid rgba(231, 218, 202, 0.9);
  border-radius: 18px;
  background: var(--paper);
  box-shadow: var(--shadow-soft);
  gap: 12px;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.result-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(60, 70, 63, 0.12);
}

.result-photo-wrap {
  position: relative;
  align-self: center;
}

.result-photo {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--green-soft);
  display: grid;
  place-items: center;
}

.result-photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.result-photo-blurred {
  filter: blur(7px);
  transform: scale(1.1);
}

.result-photo-initials {
  font-size: 26px;
  font-weight: 900;
  color: var(--green);
}

.result-photo-lock {
  position: absolute;
  bottom: -4px;
  right: -4px;
  display: grid;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: white;
  border: 1px solid var(--line);
  place-items: center;
  color: var(--muted);
}

.result-photo-lock svg {
  width: 11px;
  height: 11px;
}

.result-body {
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex: 1;
}

.result-name {
  font-size: 16px;
  font-weight: 800;
  color: var(--ink);
}

.result-exp {
  font-size: 11px;
  color: var(--muted);
}

.result-rating {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 2px;
}

.result-stars {
  color: #e2a82a;
  font-size: 12px;
  letter-spacing: 1px;
}

.result-rating strong {
  font-size: 12px;
  color: var(--ink);
}

.result-rating small {
  font-size: 10px;
  color: var(--muted);
}

.result-quote {
  margin: 4px 0 0;
  font-size: 11px;
  color: var(--muted);
  font-style: italic;
  line-height: 1.5;
}

.result-cta {
  display: block;
  padding: 9px 14px;
  border-radius: 10px;
  background: var(--green);
  color: white;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  transition: background 150ms;
}

.result-cta:hover {
  background: #1d6e52;
}

.search-results-empty {
  padding: 28px 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

.search-results-empty[hidden] {
  display: none;
}

.search-results-empty p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.search-results-cta {
  margin-top: 20px;
  padding: 20px 24px;
  border-radius: 18px;
  background: var(--green-soft);
  display: flex;
  align-items: center;
  gap: 20px;
}

.search-results-cta[hidden] {
  display: none;
}

.search-results-cta p {
  margin: 0;
  font-size: 12px;
  color: var(--green);
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 675px;
  margin-top: 26px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--green);
  font-size: 14px;
  font-weight: 800;
}

.text-link span {
  font-size: 20px;
  transition: transform 180ms ease;
}

.text-link:hover span {
  transform: translateX(4px);
}


.hero-visual {
  position: relative;
  min-height: 510px;
}

.map-panel {
  position: absolute;
  top: 10px;
  right: 5px;
  width: 470px;
  height: 470px;
  overflow: hidden;
  border: 9px solid rgba(255, 255, 255, 0.86);
  border-radius: 42% 58% 44% 56% / 50% 41% 59% 50%;
  background:
    linear-gradient(90deg, transparent 49%, rgba(255, 255, 255, 0.7) 50%, transparent 51%),
    linear-gradient(30deg, #e8f1e8 0 24%, #f1e9da 24% 45%, #e5eee9 45% 70%, #f4eadc 70%);
  box-shadow: var(--shadow);
  transform: rotate(2deg);
}

.map-panel::before {
  position: absolute;
  inset: 0;
  content: "";
  background-image: radial-gradient(rgba(52, 92, 78, 0.12) 1px, transparent 1px);
  background-size: 12px 12px;
  opacity: 0.38;
}

.map-road {
  position: absolute;
  height: 20px;
  border-top: 2px dashed rgba(194, 177, 151, 0.6);
  border-bottom: 2px dashed rgba(194, 177, 151, 0.6);
  background: rgba(255, 250, 243, 0.73);
}

.road-one {
  top: 80px;
  left: -40px;
  width: 580px;
  transform: rotate(19deg);
}

.road-two {
  top: 290px;
  left: -80px;
  width: 600px;
  transform: rotate(-21deg);
}

.road-three {
  top: 190px;
  left: 120px;
  width: 360px;
  transform: rotate(78deg);
}

.map-park {
  position: absolute;
  right: 15px;
  bottom: 35px;
  width: 150px;
  height: 110px;
  border-radius: 50%;
  background: rgba(155, 196, 162, 0.45);
  transform: rotate(-20deg);
}

.map-park span {
  position: absolute;
  width: 23px;
  height: 32px;
  border-radius: 50% 50% 45% 45%;
  background: rgba(74, 139, 103, 0.46);
}

.map-park span:nth-child(1) {
  top: 20px;
  left: 35px;
}

.map-park span:nth-child(2) {
  right: 30px;
  bottom: 22px;
}

.map-park span:nth-child(3) {
  top: 12px;
  right: 40px;
  transform: scale(0.7);
}

.location-pin {
  position: absolute;
  z-index: 3;
  display: grid;
  width: 52px;
  height: 52px;
  border: 5px solid white;
  border-radius: 50% 50% 50% 12%;
  color: white;
  background: var(--coral);
  place-items: center;
  box-shadow: 0 8px 20px rgba(79, 66, 50, 0.2);
  transform: rotate(-43deg);
}

.location-pin svg {
  width: 24px;
  height: 24px;
  transform: rotate(43deg);
}

.family-pin {
  top: 90px;
  right: 72px;
}

.match-line {
  position: absolute;
  top: 124px;
  right: 116px;
  width: 175px;
  height: 160px;
  border-bottom: 3px dashed rgba(231, 129, 104, 0.75);
  border-left: 3px dashed rgba(231, 129, 104, 0.75);
  border-radius: 0 0 0 80%;
  transform: rotate(8deg);
}

.nanny-card {
  position: absolute;
  top: 175px;
  left: 36px;
  z-index: 4;
  display: flex;
  width: 335px;
  padding: 16px;
  border: 1px solid rgba(230, 219, 205, 0.8);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 45px rgba(60, 70, 63, 0.18);
  transform: rotate(-2deg);
}

.profile-photo {
  position: relative;
  flex: 0 0 90px;
  height: 108px;
  overflow: hidden;
  border-radius: 18px;
  background: var(--yellow-soft);
}

.profile-hair {
  position: absolute;
  top: 14px;
  left: 18px;
  width: 57px;
  height: 68px;
  border-radius: 48% 52% 45% 45%;
  background: #493b35;
}

.profile-face {
  position: absolute;
  top: 23px;
  left: 28px;
  width: 39px;
  height: 47px;
  border-radius: 45% 45% 50% 50%;
  background: #dba17e;
}

.profile-face::before,
.profile-face::after {
  position: absolute;
  top: 19px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  content: "";
  background: #40332e;
}

.profile-face::before {
  left: 10px;
}

.profile-face::after {
  right: 10px;
}

.profile-body {
  position: absolute;
  bottom: -20px;
  left: 8px;
  width: 78px;
  height: 65px;
  border-radius: 50% 50% 0 0;
  background: var(--green);
}

.nanny-details {
  min-width: 0;
  padding: 2px 0 0 14px;
}

.profile-status {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 3px;
  color: var(--green);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.profile-status span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #51ad84;
  box-shadow: 0 0 0 3px #dff3e9;
}

.nanny-details h2 {
  margin-bottom: 5px;
  font-size: 20px;
  letter-spacing: -0.6px;
}

.nanny-details p {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 11px;
}

.nanny-details p svg {
  width: 13px;
  height: 13px;
  color: var(--coral);
}

.rating {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
}

.rating > span {
  color: var(--yellow);
  letter-spacing: -1px;
}

.rating small {
  color: #8c9594;
}

.mission-badge {
  position: absolute;
  right: 14px;
  bottom: 62px;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px 11px 11px;
  border-radius: 17px;
  background: white;
  box-shadow: 0 14px 34px rgba(60, 70, 63, 0.16);
  transform: rotate(-3deg);
}

.mission-icon {
  display: grid;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: white;
  background: var(--green);
  place-items: center;
}

.mission-icon svg {
  width: 19px;
  height: 19px;
}

.mission-badge > span:last-child {
  display: flex;
  flex-direction: column;
  line-height: 1.35;
}

.mission-badge strong {
  font-size: 11px;
}

.mission-badge small {
  color: var(--muted);
  font-size: 9px;
}

.activity-note {
  position: absolute;
  bottom: 10px;
  left: 60px;
  z-index: 7;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border: 1px solid rgba(234, 218, 192, 0.9);
  border-radius: 18px;
  background: #fff8e8;
  box-shadow: var(--shadow-soft);
  transform: rotate(-3deg);
}

.activity-note > span {
  font-size: 28px;
  transform: rotate(-20deg);
}

.activity-note p {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.45;
}

.activity-note strong {
  color: var(--ink);
  font-size: 12px;
}

.visual-sparkle {
  position: absolute;
  z-index: 8;
  color: var(--yellow);
  font-size: 35px;
}

.sparkle-one {
  top: 0;
  left: 18px;
}

.sparkle-two {
  right: -8px;
  bottom: 90px;
  color: var(--coral);
  font-size: 24px;
}

.reassurance-row {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 20px;
  padding: 29px 34px;
  border: 1px solid rgba(232, 220, 206, 0.8);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 15px 40px rgba(79, 67, 52, 0.08);
}

.reassurance-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 0 28px;
  border-right: 1px solid var(--line);
}

.reassurance-item:last-child {
  border-right: 0;
}

.reassurance-icon {
  display: grid;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  color: var(--green);
  background: var(--green-soft);
  place-items: center;
}

.reassurance-icon svg {
  width: 23px;
  height: 23px;
}

.reassurance-item > span:last-child {
  display: flex;
  flex-direction: column;
  line-height: 1.45;
}

.reassurance-item strong {
  font-size: 13px;
}

.reassurance-item small {
  color: var(--muted);
  font-size: 10px;
}

.section {
  padding: 120px 0;
}

.steps-section {
  background: var(--paper);
}

.section-heading {
  max-width: 620px;
  margin: 0 auto 60px;
  text-align: center;
}

.section-heading .eyebrow {
  justify-content: center;
}

.section-heading h2,
.nanny-copy h2,
.cta-panel h2 {
  margin-bottom: 18px;
  font-size: clamp(38px, 4.6vw, 58px);
  letter-spacing: -2.8px;
}

.section-heading > p:last-child,
.section-intro {
  color: var(--muted);
  font-size: 17px;
}

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

.step-card {
  position: relative;
  min-height: 330px;
  padding: 38px 34px;
  overflow: hidden;
  border: 1px solid #eee5da;
  border-radius: var(--radius-md);
  background: #fffdf9;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.step-card:hover {
  box-shadow: var(--shadow-soft);
  transform: translateY(-5px);
}

.step-card-featured {
  margin-top: -12px;
  margin-bottom: 12px;
  background: var(--cream);
}

.step-number {
  position: absolute;
  top: 22px;
  right: 25px;
  color: #e5ddd2;
  font-family: "Manrope", Arial, sans-serif;
  font-size: 42px;
  font-weight: 800;
}

.step-icon {
  display: grid;
  width: 66px;
  height: 66px;
  margin-bottom: 35px;
  border-radius: 21px;
  place-items: center;
  transform: rotate(-4deg);
}

.step-icon svg {
  width: 31px;
  height: 31px;
}

.step-icon-coral {
  color: #c65f48;
  background: var(--coral-soft);
}

.step-icon-green {
  color: var(--green);
  background: var(--green-soft);
}

.step-icon-yellow {
  color: #a9741e;
  background: var(--yellow-soft);
}

.step-card h3 {
  margin-bottom: 14px;
  font-size: 21px;
  letter-spacing: -0.7px;
}

.step-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.nanny-section {
  background: var(--cream);
}

.nanny-grid {
  display: grid;
  grid-template-columns: minmax(400px, 0.9fr) minmax(0, 1.1fr);
  gap: 110px;
  align-items: center;
}

.nanny-illustration {
  display: grid;
  min-height: 510px;
  place-items: center;
}

.arch-card {
  position: relative;
  width: 400px;
  height: 500px;
  overflow: hidden;
  border-radius: 200px 200px 28px 28px;
  background:
    radial-gradient(circle at 78% 24%, rgba(255, 255, 255, 0.5) 0 5%, transparent 5.5%),
    var(--green-soft);
}

.arch-card::before {
  position: absolute;
  right: -65px;
  bottom: 60px;
  width: 210px;
  height: 210px;
  border: 32px solid rgba(255, 255, 255, 0.38);
  border-radius: 50%;
  content: "";
}

.person-illustration {
  position: absolute;
  bottom: 0;
  left: 30px;
  width: 300px;
  height: 420px;
}

.person-hair {
  position: absolute;
  top: 65px;
  left: 95px;
  z-index: 1;
  width: 145px;
  height: 180px;
  border-radius: 48% 52% 42% 42%;
  background: #493c38;
  transform: rotate(4deg);
}

.person-head {
  position: absolute;
  top: 88px;
  left: 118px;
  z-index: 2;
  width: 98px;
  height: 126px;
  border-radius: 45% 48% 48% 48%;
  background: #dca17e;
}

.person-head::before,
.person-head::after {
  position: absolute;
  top: 50px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  content: "";
  background: #44342f;
}

.person-head::before {
  left: 26px;
}

.person-head::after {
  right: 26px;
}

.person-neck {
  position: absolute;
  top: 192px;
  left: 143px;
  z-index: 1;
  width: 52px;
  height: 52px;
  background: #dca17e;
}

.person-top {
  position: absolute;
  bottom: -30px;
  left: 55px;
  z-index: 3;
  width: 245px;
  height: 245px;
  border-radius: 48% 48% 0 0;
  background: var(--coral);
  transform: rotate(-3deg);
}

.person-top::before {
  position: absolute;
  top: 12px;
  left: 82px;
  width: 70px;
  height: 34px;
  border-radius: 0 0 50% 50%;
  content: "";
  background: #dca17e;
}

.person-arm {
  position: absolute;
  right: -6px;
  bottom: 40px;
  z-index: 4;
  width: 78px;
  height: 190px;
  border-radius: 50px;
  background: #dca17e;
  transform: rotate(35deg);
}

.mini-calendar {
  position: absolute;
  right: 15px;
  bottom: 35px;
  z-index: 5;
  display: flex;
  width: 125px;
  padding: 15px;
  border-radius: 18px;
  background: white;
  box-shadow: var(--shadow-soft);
  flex-direction: column;
  text-align: center;
  transform: rotate(4deg);
}

.mini-calendar span {
  color: var(--coral);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.3px;
}

.mini-calendar strong {
  font-family: "Manrope", Arial, sans-serif;
  font-size: 38px;
  line-height: 1.15;
}

.mini-calendar small {
  color: var(--muted);
  font-size: 9px;
}

.decor-flower {
  position: absolute;
  z-index: 6;
  color: var(--yellow);
  font-size: 34px;
}

.flower-one {
  top: 95px;
  left: 42px;
}

.flower-two {
  top: 140px;
  right: 35px;
  color: white;
}

.nanny-copy {
  max-width: 590px;
}

.nanny-copy .section-intro {
  max-width: 520px;
  margin-bottom: 33px;
}

.benefit-list {
  display: grid;
  gap: 21px;
  margin: 0 0 38px;
  padding: 0;
  list-style: none;
}

.benefit-list li {
  display: flex;
  gap: 14px;
}

.benefit-list li > span {
  display: grid;
  flex: 0 0 27px;
  width: 27px;
  height: 27px;
  margin-top: 2px;
  border-radius: 50%;
  color: var(--green);
  background: var(--green-soft);
  place-items: center;
  font-size: 13px;
  font-weight: 800;
}

.benefit-list p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.benefit-list strong {
  color: var(--ink);
  font-size: 15px;
}

/* ── Section "Pourquoi nous ?" ─────────────────────────────────────────────── */

.trust-section {
  background: var(--paper);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 56px;
}

.trust-card {
  position: relative;
  padding: 36px 32px;
  border: 1px solid rgba(231, 218, 202, 0.7);
  border-radius: 20px;
  background: var(--cream);
}

.trust-card-featured {
  border-color: rgba(231, 129, 104, 0.25);
  background: #fff8f5;
  box-shadow: 0 4px 24px rgba(231, 129, 104, 0.08);
}

.trust-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 20px;
  border-radius: 14px;
  background: white;
  border: 1px solid rgba(231, 218, 202, 0.8);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.trust-card-featured .trust-card-icon {
  background: var(--coral);
  border-color: transparent;
}

.trust-card-icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--coral);
  stroke-width: 1.8;
  fill: none;
}

.trust-card-featured .trust-card-icon svg {
  stroke: white;
}

.trust-card h3 {
  margin-bottom: 12px;
  font-size: 17px;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.3;
}

.trust-card p {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--muted);
}

.trust-badge {
  display: inline-block;
  margin-top: 18px;
  padding: 5px 12px;
  border-radius: 20px;
  background: rgba(231, 129, 104, 0.12);
  color: var(--coral);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* ── CTA section ───────────────────────────────────────────────────────────── */

.cta-section {
  padding: 35px 0 100px;
  background: var(--cream);
}

.cta-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
  padding: 64px 70px;
  border-radius: var(--radius-lg);
  color: white;
  background:
    radial-gradient(circle at 85% 25%, rgba(255, 255, 255, 0.11) 0 2%, transparent 2.5%),
    radial-gradient(circle at 90% 70%, rgba(255, 255, 255, 0.1) 0 10%, transparent 10.5%),
    var(--green);
}

.cta-panel .eyebrow {
  color: #cde9df;
}

.cta-panel h2 {
  max-width: 650px;
  margin-bottom: 13px;
}

.cta-panel p:last-child {
  max-width: 620px;
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
}

.cta-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 12px;
}

.button-light {
  border-color: white;
  color: var(--green);
  background: white;
  box-shadow: none;
}

.button-light:hover {
  color: var(--green-deep);
  background: #fffaf3;
}

.button-outline-light {
  border-color: rgba(255, 255, 255, 0.45);
  background: transparent;
  box-shadow: none;
}

.button-outline-light:hover {
  border-color: white;
  background: rgba(255, 255, 255, 0.1);
}

.site-footer {
  padding: 75px 0 25px;
  color: rgba(255, 255, 255, 0.74);
  background: var(--ink);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 0.65fr 0.65fr;
  gap: 70px;
  padding-bottom: 55px;
}

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

.footer-brand strong {
  color: #8bd1be;
}

.footer-grid > div:first-child p {
  max-width: 330px;
  font-size: 14px;
}

.footer-links {
  display: flex;
  gap: 9px;
  flex-direction: column;
  font-size: 13px;
}

.footer-links strong {
  margin-bottom: 7px;
  color: white;
  font-size: 14px;
}

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 25px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 11px;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 200;
  display: flex;
  width: min(390px, calc(100% - 32px));
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: white;
  box-shadow: var(--shadow);
  align-items: center;
  gap: 12px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(25px);
  transition: opacity 220ms ease, transform 220ms ease;
}

.toast.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.toast-icon {
  display: grid;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: white;
  background: var(--green);
  place-items: center;
  font-weight: 800;
}

.toast > span:nth-child(2) {
  display: flex;
  flex: 1;
  flex-direction: column;
}

.toast strong {
  font-size: 13px;
}

.toast small {
  color: var(--muted);
  font-size: 11px;
}

.toast button {
  border: 0;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-size: 22px;
}

@media (max-width: 1200px) {
  .main-navigation {
    gap: 18px;
  }

  .main-navigation > a:nth-child(4) {
    display: none;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 32px;
  }

  .map-panel {
    right: -30px;
    transform: scale(0.88) rotate(2deg);
    transform-origin: right center;
  }

  .nanny-grid {
    gap: 60px;
  }

  .cta-panel {
    align-items: flex-start;
    flex-direction: column;
  }

  .search-results {
    max-width: 100%;
  }
}

@media (max-width: 860px) {
  :root {
    --container: calc(100% - 32px);
  }

  .site-header {
    background: rgba(255, 250, 243, 0.96);
  }

  .menu-toggle {
    position: relative;
    z-index: 102;
    display: block;
  }

  .menu-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .main-navigation {
    position: fixed;
    inset: 0;
    z-index: 101;
    display: flex;
    padding: 120px 30px 40px;
    background: var(--cream);
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-15px);
    transition: opacity 180ms ease, transform 180ms ease;
  }

  .main-navigation.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .main-navigation > a:not(.button) {
    padding: 13px 0;
    font-size: 19px;
  }

  .main-navigation > a:not(.button)::after {
    display: none;
  }

  .main-navigation > a:nth-child(4) {
    display: block;
  }

  .main-navigation .button {
    margin-top: 16px;
  }

  .hero {
    min-height: auto;
    padding-top: 125px;
  }

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

  .hero-copy {
    padding-bottom: 20px;
  }

  h1 {

    font-size: clamp(44px, 10vw, 70px);
    letter-spacing: -3px;
  }

  .hero-title-block {
    display: block;
    width: 100%;
  }

  .hero-intro {
    font-size: 16px;
  }

  .hero-visual {
    width: min(100%, 540px);
    min-height: 520px;
    margin: 0 auto;
  }

  .map-panel {
    right: 20px;
    transform: rotate(2deg);
  }

  .activity-note {
    left: 0;
  }

  .reassurance-row {
    grid-template-columns: 1fr;
    margin-top: 30px;
  }

  .reassurance-item {
    justify-content: flex-start;
    padding: 18px 5px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .reassurance-item:last-child {
    border-bottom: 0;
  }

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

  .step-card {
    min-height: 270px;
  }

  .step-card-featured {
    margin: 0;
  }

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

  .nanny-illustration {
    order: 2;
  }

  .nanny-copy {
    max-width: none;
  }

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

  .footer-grid {
    grid-template-columns: 1.3fr 0.7fr 0.7fr;
    gap: 35px;
  }
}

@media (max-width: 620px) {
  :root {
    --container: calc(100% - 28px);
  }

  .header-inner {
    min-height: 70px;
  }

  .brand {
    font-size: 18px;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
  }

  .hero {
    padding-top: 108px;
  }

  h1 {
    margin-bottom: 20px;

    font-size: clamp(38px, 12vw, 56px);
    letter-spacing: -2.8px;
  }

  h1 em {
    letter-spacing: -1.6px;
  }

  .hero-intro {
    font-size: 15px;
  }

  .search-card {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 6px 6px;
  }

  .search-field {
    padding: 12px 16px;
  }

  .search-field + .search-field {
    border-left: 0;
    border-top: 1px solid #d8cfc4;
  }

  .search-submit {
    width: calc(100% - 12px);
    margin: 6px;
    padding: 14px 0;
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 24px;
  }

  .hero-visual {
    min-height: 420px;
    margin-top: 25px;
  }

  .map-panel {
    top: -20px;
    right: 50%;
    width: 430px;
    height: 430px;
    transform: translateX(50%) scale(0.8) rotate(2deg);
  }

  .activity-note {
    bottom: 0;
    left: -4px;
    transform: scale(0.88) rotate(-3deg);
    transform-origin: left bottom;
  }

  .sparkle-one {
    top: 3px;
    left: -3px;
  }

  .sparkle-two {
    right: 0;
    bottom: 65px;
  }

  .reassurance-row {
    padding: 18px 22px;
  }

  .section {
    padding: 85px 0;
  }

  .section-heading {
    margin-bottom: 40px;
    text-align: left;
  }

  .section-heading .eyebrow {
    justify-content: flex-start;
  }

  .section-heading h2,
  .nanny-copy h2,
  .cta-panel h2 {
    font-size: 38px;
    letter-spacing: -2px;
  }

  .step-card {
    padding: 31px 28px;
  }

  .nanny-illustration {
    min-height: 430px;
  }

  .arch-card {
    width: 330px;
    height: 420px;
    transform: scale(0.94);
  }

  .person-illustration {
    bottom: -15px;
    left: 5px;
    transform: scale(0.86);
    transform-origin: bottom center;
  }

  .mini-calendar {
    right: 9px;
    bottom: 24px;
  }

  .cta-section {
    padding-bottom: 70px;
  }

  .cta-panel {
    gap: 34px;
    padding: 42px 27px;
    border-radius: 25px;
  }

  .cta-actions {
    width: 100%;
    flex-direction: column;
  }

  .cta-actions .button {
    width: 100%;
  }

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

  .footer-grid > div:first-child {
    grid-column: 1 / -1;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
  }

  .toast {
    right: 16px;
    bottom: 16px;
  }

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

  .search-results-cta {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* ── PWA install banner ──────────────────────────────────────────────────── */

.pwa-install-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  padding: 12px 16px;
  background: #fff;
  border-top: 1px solid #e9dfd2;
  box-shadow: 0 -4px 24px rgba(0,0,0,.10);
}

@media (min-width: 821px) {
  .pwa-install-banner {
    left: var(--sidebar-width, 245px);
  }
}

.pwa-install-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 560px;
  margin: 0 auto;
}

.pwa-install-icon {
  border-radius: 14px;
  flex-shrink: 0;
}

.pwa-install-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.pwa-install-text strong {
  font-size: 14px;
  font-weight: 700;
  color: #2d1f0f;
}

.pwa-install-text span {
  font-size: 12px;
  color: #7a6a5a;
}

.pwa-install-dismiss {
  background: none;
  border: none;
  color: #7a6a5a;
  cursor: pointer;
  font-size: 16px;
  padding: 4px 8px;
  line-height: 1;
  flex-shrink: 0;
}

/* ── App download card (espaces connectés) ───────────────────────────────── */

.app-download-card {
  padding: 20px 24px;
}

.app-download-inner {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.app-download-icon {
  border-radius: 14px;
  flex-shrink: 0;
}

.app-download-text {
  flex: 1;
}

.app-download-text p {
  font-size: 14px;
  color: #5a4a3a;
  margin: 0 0 12px;
}

.app-download-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.app-installed-msg {
  font-size: 13px;
  color: var(--green-deep, #2d6a4f);
  font-weight: 600;
  margin: 0;
}

/* ── Messagerie ──────────────────────────────────────────────────────────── */

.messaging-panel {
  margin-top: 24px;
  border-top: 1px solid var(--border, #e5e7eb);
  padding-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.messaging-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-muted, #6b7280);
}

.messaging-heading svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.message-feed {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 260px;
  overflow-y: auto;
  padding: 4px 2px;
}

.message-empty {
  font-size: 13px;
  color: var(--text-muted, #6b7280);
  text-align: center;
  margin: 0;
}

.msg-bubble {
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-width: 80%;
}

.msg-mine {
  align-self: flex-end;
  align-items: flex-end;
}

.msg-theirs {
  align-self: flex-start;
  align-items: flex-start;
}

.msg-meta {
  font-size: 11px;
  color: var(--text-muted, #6b7280);
}

.msg-body {
  margin: 0;
  padding: 8px 12px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
}

.msg-mine .msg-body {
  background: var(--green-deep, #2d6a4f);
  color: #fff;
  border-bottom-right-radius: 4px;
}

.msg-theirs .msg-body {
  background: var(--surface-alt, #f3f4f6);
  color: var(--text, #111827);
  border-bottom-left-radius: 4px;
}

.message-composer {
  display: flex;
  gap: 8px;
  align-items: flex-end;
}

.message-input {
  flex: 1;
  resize: none;
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 14px;
  font-family: inherit;
  line-height: 1.4;
  outline: none;
  transition: border-color 0.15s;
}

.message-input:focus {
  border-color: var(--green-deep, #2d6a4f);
}

.message-send {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--green-deep, #2d6a4f);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: background 0.15s;
}

.message-send:hover {
  background: var(--green-hover, #1b4332);
}

.message-send svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ── Messagerie : layout deux colonnes ───────────────────────────────────── */

.messages-view {
  padding: 0 !important;
  height: calc(100vh - var(--nav-height, 56px) - 48px);
  min-height: 500px;
}

.messaging-layout {
  display: flex;
  height: 100%;
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 16px;
  overflow: hidden;
  background: var(--surface, #fff);
}

/* ── Sidebar ── */

.messaging-sidebar {
  width: 300px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--border, #e5e7eb);
  background: var(--surface-alt, #f9fafb);
  overflow: hidden;
}

.messaging-sidebar-header {
  padding: 18px 16px 14px;
  border-bottom: 1px solid var(--border, #e5e7eb);
}

.messaging-sidebar-header h2 {
  font-size: 16px;
  font-weight: 700;
  margin: 0;
  color: var(--text, #111827);
}

.conversations-list {
  flex: 1;
  overflow-y: auto;
  list-style: none;
  margin: 0;
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.conversation-card {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  border-radius: 10px;
  padding: 10px 12px;
  cursor: pointer;
  transition: background 0.12s;
  position: relative;
}

.conversation-card:hover {
  background: var(--surface, #fff);
}

.conversation-card.is-active {
  background: var(--green-light, #d8f3dc);
}

.conv-avatar {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--green-light, #d8f3dc);
  color: var(--green-deep, #2d6a4f);
  font-weight: 700;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.conv-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.conv-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.conv-info strong {
  font-size: 14px;
  font-weight: 600;
  color: var(--text, #111827);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.conv-info small {
  font-size: 11px;
  color: var(--text-muted, #6b7280);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.conv-preview {
  margin: 2px 0 0;
  font-size: 12px;
  color: var(--text-muted, #6b7280);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.conv-unread {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green-deep, #2d6a4f);
}

/* Skeletons chargement */
.conv-skeleton {
  display: block;
  height: 62px;
  border-radius: 10px;
  background: linear-gradient(90deg, #e5e7eb 25%, #f3f4f6 50%, #e5e7eb 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.4s infinite;
  margin: 3px 6px;
}

@keyframes skeleton-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.conversations-empty {
  padding: 24px 16px;
  text-align: center;
}

.conversations-empty p {
  font-size: 13px;
  color: var(--text-muted, #6b7280);
  line-height: 1.5;
  margin: 0;
}

/* ── Panneau principal ── */

.messaging-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  position: relative;
}

.messaging-placeholder[hidden] {
  display: none !important;
}

.messaging-placeholder {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--text-muted, #6b7280);
}

.messaging-placeholder svg {
  width: 48px;
  height: 48px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.35;
}

.messaging-placeholder p {
  font-size: 14px;
  margin: 0;
}

.conversation-panel[hidden] {
  display: none !important;
}

.conversation-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.conversation-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border, #e5e7eb);
  flex-shrink: 0;
}

.conversation-back {
  display: none; /* masqué sur desktop, visible sur mobile */
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: var(--green-deep, #2d6a4f);
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
  flex-shrink: 0;
}

.conversation-back svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.conv-header-avatar {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--green-light, #d8f3dc);
  color: var(--green-deep, #2d6a4f);
  font-weight: 700;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.conv-header-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.conversation-header-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.conversation-header-info strong {
  font-size: 15px;
  font-weight: 700;
  color: var(--text, #111827);
}

.conversation-header-info small {
  font-size: 12px;
  color: var(--text-muted, #6b7280);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.message-feed {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px 18px;
  min-height: 0;
}

.message-empty {
  text-align: center;
  padding: 32px 16px;
  font-size: 13px;
  color: var(--text-muted, #6b7280);
  margin: auto;
}

.message-composer {
  display: flex;
  gap: 8px;
  align-items: flex-end;
  padding: 12px 16px;
  border-top: 1px solid var(--border, #e5e7eb);
  flex-shrink: 0;
}

/* ── Mobile : une colonne ── */

@media (max-width: 700px) {
  .messages-view {
    height: auto;
    min-height: unset;
  }

  .messaging-layout {
    flex-direction: column;
    border-radius: 0;
    border-left: none;
    border-right: none;
    height: auto;
  }

  .messaging-sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--border, #e5e7eb);
  }

  .messaging-sidebar.is-hidden-mobile {
    display: none;
  }

  .messaging-main {
    min-height: 500px;
  }

  .messaging-main.is-hidden-mobile {
    display: none;
  }

  .conversation-back {
    display: flex;
  }

  .messaging-placeholder {
    display: none;
  }
}

/* Bouton Contacter dans les cartes mission */
.contact-client-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: 1px solid var(--green-deep, #2d6a4f);
  color: var(--green-deep, #2d6a4f);
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}

.contact-client-btn:hover {
  background: var(--green-light, #d8f3dc);
}

.contact-client-btn svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ── Préférences email ───────────────────────────────────────────────────────── */

.account-card-hint {
  margin: -12px 0 20px;
  font-size: 13px;
  color: #8a9493;
  line-height: 1.5;
}

.email-pref-master {
  padding-bottom: 16px;
  margin-bottom: 8px;
  border-bottom: 2px solid #f0ece5;
}

.email-pref-group {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.email-pref-group[data-ep-group][aria-disabled="true"] {
  opacity: 0.45;
  pointer-events: none;
}

.email-pref-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid #f5f0ea;
}

.email-pref-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.toggle-label {
  display: flex;
  flex-direction: column;
  gap: 2px;
  cursor: pointer;
  flex: 1;
}

.toggle-label-text {
  font-size: 14px;
  font-weight: 600;
  color: #20302f;
}

.toggle-label-sub {
  font-size: 12px;
  color: #8a9493;
  line-height: 1.4;
}

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.toggle-slider {
  position: absolute;
  inset: 0;
  background: #d1cec9;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s;
}

.toggle-slider::before {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  left: 3px;
  top: 3px;
  background: white;
  border-radius: 50%;
  transition: transform 0.2s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.toggle-switch input:checked + .toggle-slider {
  background: #2f7c6b;
}

.toggle-switch input:checked + .toggle-slider::before {
  transform: translateX(20px);
}

.toggle-switch input:focus-visible + .toggle-slider {
  outline: 2px solid #2f7c6b;
  outline-offset: 2px;
}
