/* =====================================================================
   petsitter·paris : feuille de style unique
   Palette bleu bleuet + rose poudré, police Nunito (hébergée sur le site)
   ===================================================================== */

@font-face { font-family: "Nunito"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/nunito-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/nunito-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 800; font-display: swap; src: url("fonts/nunito-latin-800-normal.woff2") format("woff2"); }

:root {
  --bg: #FCF9FB;
  --surface: #FFFFFF;
  --ink: #1F2A44;
  --muted: #4B5570;
  --muted-2: #5A6380;
  --line: #EDE4EC;
  --line-2: #DDD1DC;
  --blue: #3A56A8;
  --blue-dark: #2A4182;
  --blue-soft: #E6ECF9;
  --blue-border: #B9C7EC;
  --pink: #F8C9D8;
  --pink-soft: #FDE8EF;
  --pink-strong: #E86A94;
  --pink-text: #B83A68;
  --pink-dark: #9A2F57;
  --busy: #EEEBF0;
  --busy-text: #6A6478;
  --radius: 24px;
  --shadow: 0 16px 40px rgba(58, 86, 168, .08);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: "Nunito", system-ui, sans-serif; font-size: 17px; line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: var(--blue); }
a:hover { color: var(--blue-dark); }
h1, h2, h3 { line-height: 1.2; font-weight: 800; margin: 0; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--pink-strong); outline-offset: 2px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.stack-lg { display: flex; flex-direction: column; gap: 32px; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.hide { display: none !important; }
.subtitle { font-size: 19px; margin-top: 12px; }

/* ---------- En-tête ---------- */
.site-header { border-bottom: 1px solid var(--line); background: var(--bg); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; flex-wrap: wrap; padding-top: 14px; padding-bottom: 14px; }
.logo { display: inline-flex; align-items: center; text-decoration: none; }
.logo img { height: 32px; width: auto; }
.nav { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; font-size: 16px; }
.nav a { color: var(--ink); text-decoration: none; }
.nav a:hover { color: var(--blue); }
.nav form { margin: 0; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 26px; border-radius: 999px; border: 0;
  font: inherit; font-weight: 800; font-size: 16px; text-decoration: none; cursor: pointer;
  background: var(--blue); color: #fff;
}
.btn:hover { background: var(--blue-dark); color: #fff; }
.btn-outline { background: transparent; color: var(--blue); border: 1.5px solid var(--blue); }
.btn-outline:hover { background: var(--blue-soft); color: var(--blue-dark); }
.btn-pink { background: var(--pink); color: var(--ink); }
.btn-pink:hover { background: #F4B4C9; color: var(--ink); }
.btn-dark { background: var(--ink); }
.btn-small { min-height: 40px; padding: 0 16px; font-size: 15px; }
.btn-link { background: none; border: 0; padding: 0; font: inherit; color: var(--blue); cursor: pointer; text-decoration: underline; }
.btn-danger { background: #9A2F57; }
.btn-danger:hover { background: #7D2447; }

/* ---------- Messages ---------- */
.flashes { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }
.flash { padding: 14px 18px; border-radius: 16px; font-weight: 700; }
.flash-success { background: var(--blue-soft); color: var(--blue-dark); }
.flash-info { background: #F4F6FC; color: var(--ink); border: 1px solid var(--blue-border); }
.flash-error { background: var(--pink-soft); color: #7D2447; }
.alert { display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 20px 24px; border-radius: var(--radius); }
.alert-pink { background: var(--pink-soft); border: 1px solid #F4C3D3; color: #7D2447; }
.alert-blue { background: var(--blue-soft); border: 1px solid var(--blue-border); color: var(--blue-dark); }
.alert strong { display: block; }

/* ---------- Formulaires ---------- */
.field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 700; color: var(--muted); }
.field input[type=text], .field input[type=email], .field input[type=password], .field input[type=date],
.field input[type=tel], .field input[type=number], .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 10px 14px; border: 1px solid var(--line-2); border-radius: 14px;
  font: inherit; font-size: 16px; font-weight: 400; color: var(--ink); background: #fff;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }
.field .hint { font-weight: 400; color: var(--muted-2); }
.field .error, .error-text { color: var(--pink-dark); font-weight: 700; font-size: 14px; }
.field.has-error input, .field.has-error textarea, .field.has-error select { border-color: var(--pink-strong); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 16px; color: var(--ink); font-weight: 400; }
.check input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--blue); flex-shrink: 0; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.honey { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { font-weight: 800; font-size: 16px; padding: 0; margin-bottom: 12px; color: var(--ink); }

/* ---------- Cartes ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.card-soft-pink { background: var(--pink-soft); border-radius: var(--radius); padding: 24px; }
.card-soft-blue { background: var(--blue-soft); border-radius: var(--radius); padding: 24px; }
.card h2 { font-size: 22px; margin-bottom: 12px; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; font-size: 14px; font-weight: 700; }
.pill-blue { background: var(--blue-soft); color: var(--blue-dark); }
.pill-pink { background: var(--pink-soft); color: var(--pink-dark); }
.pill-grey { background: var(--busy); color: var(--busy-text); }
.pill svg { width: 16px; height: 16px; }

/* ---------- Accueil ---------- */
.hero { padding: 64px 0 56px; }
.eyebrow { font-size: 14px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--pink-text); }
.hero h1 { font-size: clamp(36px, 5.2vw, 58px); max-width: 880px; margin-top: 16px; }
.highlight { box-shadow: inset 0 -.32em 0 var(--pink); }
.hero .lead { font-size: 19px; line-height: 1.65; color: var(--muted); max-width: 660px; margin-top: 18px; }
.search-card { margin-top: 32px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.search-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.search-actions { display: flex; align-items: center; gap: 18px; margin-top: 20px; flex-wrap: wrap; }
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; padding-bottom: 64px; }
.feature { display: flex; gap: 16px; align-items: flex-start; }
.feature-icon { flex-shrink: 0; width: 52px; height: 52px; border-radius: 16px; display: flex; align-items: center; justify-content: center; }
.feature-icon svg { width: 24px; height: 24px; }
.feature-icon.pink { background: var(--pink-soft); color: var(--pink-text); }
.feature-icon.blue { background: var(--blue-soft); color: var(--blue); }
.feature strong { font-size: 18px; display: block; }
.feature p { color: var(--muted); font-size: 16px; margin-top: 4px; }
.band { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 56px 0; }
.section { padding: 64px 0; }
.section-title { font-size: 32px; margin-bottom: 24px; }
.arr-grid { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 12px; }
.arr-grid a { display: flex; align-items: center; justify-content: center; min-height: 48px; background: #F4F6FC; border-radius: 999px; color: var(--blue-dark); text-decoration: none; font-weight: 700; font-size: 15px; }
.arr-grid a:hover, .arr-grid a[aria-current] { background: var(--blue); color: #fff; }
.services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.service { display: flex; flex-direction: column; gap: 10px; padding: 30px; border-radius: var(--radius); color: var(--ink); text-decoration: none; }
.service.pink { background: var(--pink-soft); }
.service.blue { background: var(--blue-soft); }
.service strong { font-size: 22px; }
.service p { color: #3F4966; font-size: 16px; }
.service span { font-weight: 800; color: var(--blue-dark); margin-top: 6px; }
.cta { background: var(--blue); color: #fff; border-radius: 28px; padding: 48px; display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta h2 { font-size: 34px; }
.cta p { color: var(--blue-soft); max-width: 680px; margin-top: 10px; }

/* ---------- Résultats ---------- */
.filters-bar { background: #fff; border-bottom: 1px solid var(--line); padding: 16px 0; }
.results-layout { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 40px; padding: 40px 0 64px; align-items: start; }
.sidebar { display: flex; flex-direction: column; gap: 24px; }
.sidebar .field select, .sidebar .field input { min-height: 46px; }
.results-head h1 { font-size: 38px; }
.results-head p { margin-top: 6px; color: var(--muted); }
.intro-seo { color: var(--muted); max-width: 720px; margin-top: 12px; }
.sitter-card { display: flex; gap: 22px; padding: 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); align-items: center; }
.sitter-card.partial { border-style: dashed; border-color: var(--line-2); }
.avatar { flex-shrink: 0; width: 88px; height: 88px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 28px; color: var(--ink); overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar.pink { background: var(--pink); }
.avatar.blue { background: #C9D5F2; }
.avatar.grey { background: #F3ECF2; }
.sitter-main { flex-grow: 1; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.sitter-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.sitter-name { font-size: 20px; font-weight: 800; color: var(--ink); text-decoration: none; }
.sitter-area { margin-left: 8px; color: var(--muted-2); }
.sitter-price { color: var(--muted); }
.sitter-price strong { color: var(--ink); font-size: 19px; }
.sitter-meta { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; font-size: 15px; color: var(--muted); }
.day-strip { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.day { width: 44px; padding: 5px 0; border-radius: 10px; text-align: center; font-size: 14px; font-weight: 700; }
.day small { display: block; font-size: 11px; font-weight: 700; opacity: .8; }
.day.free { background: var(--blue-soft); color: var(--blue-dark); }
.day.busy { background: var(--busy); color: var(--busy-text); text-decoration: line-through; font-weight: 400; }
.empty { padding: 32px; background: #fff; border: 1px dashed var(--line-2); border-radius: var(--radius); text-align: center; color: var(--muted); }
.info-box { padding: 18px; background: var(--pink-soft); border-radius: 18px; font-size: 14px; line-height: 1.6; }

/* ---------- Profil ---------- */
.breadcrumb { padding-top: 20px; font-size: 15px; color: var(--muted-2); }
.profile-layout { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 48px; padding: 28px 0 64px; align-items: start; }
.profile-head { display: flex; gap: 28px; align-items: center; flex-wrap: wrap; }
.profile-photo { width: 140px; height: 140px; border-radius: 50%; border: 4px solid #fff; box-shadow: 0 0 0 3px var(--pink); background: var(--pink-soft); display: flex; align-items: center; justify-content: center; font-size: 44px; font-weight: 800; overflow: hidden; flex-shrink: 0; }
.profile-photo img { width: 100%; height: 100%; object-fit: cover; }
.profile-head h1 { font-size: 42px; }
.profile-head .where { font-size: 18px; color: var(--muted); }
.bio { white-space: pre-line; font-size: 17px; line-height: 1.7; color: #2F3A57; max-width: 680px; }
.price-table { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.price-table div { display: flex; justify-content: space-between; padding: 16px 24px; border-bottom: 1px solid #F3ECF2; }
.price-table div:last-child { border-bottom: 0; }
.reviews { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.review { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; }
.stars { color: var(--pink-strong); letter-spacing: 2px; }
.aside-card { position: sticky; top: 20px; background: #fff; border: 1px solid var(--line); border-radius: 28px; padding: 28px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 20px; }

/* ---------- Calendriers ---------- */
.month h3 { font-size: 17px; margin-bottom: 10px; text-transform: capitalize; }
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.cal .wd { text-align: center; font-size: 13px; font-weight: 800; color: var(--muted-2); }
.cal .cell { min-height: 42px; display: flex; align-items: center; justify-content: center; border-radius: 12px; font-size: 15px; font-weight: 700; }
.cal .cell.free { background: var(--blue-soft); color: var(--blue-dark); }
.cal .cell.busy { background: var(--busy); color: var(--busy-text); text-decoration: line-through; font-weight: 400; }
.cal .cell.past { color: #B5B0BF; font-weight: 400; }
.legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 14px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 14px; height: 14px; border-radius: 4px; display: inline-block; }
.legend .l-free { background: var(--blue-soft); border: 1px solid var(--blue-border); }
.legend .l-busy { background: var(--busy); border: 1px solid #CFC8D6; }

/* Calendrier modifiable : cases à cocher (fonctionne sans JavaScript) */
.cal-edit .cell { padding: 0; }
.cal-edit label { position: relative; display: block; width: 100%; cursor: pointer; }
.cal-edit input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.cal-edit label span { min-height: 56px; display: flex; align-items: center; justify-content: center; border-radius: 14px; font-weight: 800; font-size: 17px; background: var(--blue-soft); color: var(--blue-dark); border: 1px solid var(--blue-border); }
.cal-edit input:checked + span { background: var(--busy); color: var(--busy-text); text-decoration: line-through; font-weight: 400; border-color: #DAD4E0; }
.cal-edit input:focus-visible + span { outline: 3px solid var(--pink-strong); outline-offset: 2px; }
.months-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }

/* ---------- Espace petsitter ---------- */
.space-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; align-items: start; }
.space-nav { display: flex; gap: 8px; flex-wrap: wrap; padding: 20px 0 0; }
.space-nav a { padding: 10px 18px; border-radius: 999px; text-decoration: none; color: var(--ink); font-weight: 700; background: #fff; border: 1px solid var(--line); }
.space-nav a[aria-current] { background: var(--blue); color: #fff; border-color: var(--blue); }
.page-title { font-size: 36px; margin: 28px 0 20px; }
.stat { display: flex; justify-content: space-between; gap: 12px; }
.stat span { color: #3F4966; }
.request { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.request .msg { white-space: pre-line; background: var(--bg); border-radius: 14px; padding: 14px 16px; }
.request form { margin: 0; }
table.admin { width: 100%; border-collapse: collapse; background: #fff; border-radius: 16px; overflow: hidden; font-size: 15px; }
table.admin th, table.admin td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.admin th { background: #F4F6FC; font-weight: 800; }
.table-wrap { overflow-x: auto; }
.narrow { max-width: 520px; margin: 48px auto 64px; }
.rating { display: flex; gap: 8px; flex-wrap: wrap; }
.rating label { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border: 1px solid var(--line-2); border-radius: 999px; cursor: pointer; font-weight: 700; }
.rating input { accent-color: var(--pink-strong); }
.legal { max-width: 780px; padding: 48px 0 64px; }
.legal h1 { font-size: 38px; margin-bottom: 24px; }
.legal h2 { font-size: 22px; margin: 32px 0 10px; }
.legal p, .legal li { color: #2F3A57; }
.legal p + p { margin-top: 12px; }
.todo { background: var(--pink-soft); padding: 2px 6px; border-radius: 6px; }

/* ---------- Pied de page ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 32px 0; margin-top: 32px; font-size: 15px; color: var(--muted-2); }
.site-footer .container { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.site-footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
.site-footer a { color: var(--muted); }

/* ---------- Mobile ---------- */
@media (max-width: 1000px) {
  .search-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .arr-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .results-layout, .profile-layout, .space-layout { grid-template-columns: minmax(0, 1fr); }
  .aside-card { position: static; }
}
@media (max-width: 700px) {
  body { font-size: 16px; }
  .features, .services, .reviews, .grid-2, .grid-3, .months-grid { grid-template-columns: minmax(0, 1fr); }
  .search-grid { grid-template-columns: minmax(0, 1fr); }
  .arr-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .sitter-card { flex-direction: column; align-items: flex-start; }
  .cta { padding: 32px 24px; }
  .cta h2, .section-title { font-size: 26px; }
  .results-head h1, .page-title { font-size: 28px; }
  .profile-head h1 { font-size: 32px; }
  .nav { gap: 14px; font-size: 15px; }
  .logo img { height: 24px; }
}
