/* Vital Assistance Services – feuille de style
   Couleurs tirées du logo : bleu marine, rouge, doré. */

:root {
  --navy: #0b2f7b;
  --navy-deep: #081f57;
  --ink: #12224a;
  --red: #c8102e;
  --red-dark: #a50d26;
  --gold: #d9a21b;
  --mist: #eef3fb;
  --mist-2: #e1eaf8;
  --line: #d3ddef;
  --line-strong: #9fb0d2;
  --paper: #ffffff;
  --muted: #4a587a;
  --wa: #128c4a;
  --radius: 14px;
  --serif: "Literata", Georgia, "Times New Roman", serif;
  --sans: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
}
img, svg { max-width: 100%; display: block; }
a { color: var(--navy); text-underline-offset: 3px; }
a:hover { color: var(--red); }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }

h1, h2, h3 {
  font-family: var(--serif);
  color: var(--navy);
  font-weight: 650;
  margin: 0 0 .5em;
  letter-spacing: -0.012em;
}
h1 { font-size: clamp(2.25rem, 5.4vw, 3.9rem); line-height: 1.08; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.35rem); line-height: 1.16; }
h3 { font-size: 1.3rem; line-height: 1.25; }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

.container { width: min(1160px, 100% - 40px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 40px); margin-inline: auto; }
.skip {
  position: absolute; left: 12px; top: -60px; background: var(--navy); color: #fff;
  padding: 10px 16px; border-radius: 8px; z-index: 100; text-decoration: none;
}
.skip:focus { top: 12px; color: #fff; }

/* Filet doré avec un petit toit, repris du logo */
.roof {
  width: 220px; height: 16px; margin: 0 0 22px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 220 16'%3E%3Cpath d='M0 13h92l18-11 18 11h92' fill='none' stroke='%23d9a21b' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") left center / contain no-repeat;
}
.roof--center { margin-inline: auto; background-position: center; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 50px; padding: 12px 24px; border-radius: 999px;
  font: 650 1rem/1.2 var(--sans); text-decoration: none; cursor: pointer;
  border: 2px solid transparent; transition: background-color .18s, color .18s, border-color .18s, transform .18s;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn--red { background: var(--red); color: #fff; }
.btn--red:hover { background: var(--red-dark); color: #fff; }
.btn--line { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn--line:hover { background: var(--navy); color: #fff; }
.btn--wa { background: var(--wa); color: #fff; }
.btn--wa:hover { background: #0d6f3b; color: #fff; }
.btn--white { background: #fff; color: var(--navy); }
.btn--white:hover { background: var(--gold); color: var(--navy-deep); }
.btn:active { transform: translateY(1px); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- En-tête ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--navy); }
.brand img { width: 58px; height: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font: 700 1.6rem/1 var(--serif); color: var(--red); letter-spacing: -0.01em; }
.brand-sub { font: 600 .82rem/1.2 var(--sans); color: var(--navy); margin-top: 3px; }

.nav ul { list-style: none; display: flex; align-items: center; gap: 4px; }
.nav a:not(.btn) {
  display: block; padding: 10px 14px; border-radius: 999px; text-decoration: none;
  font-weight: 600; font-size: .98rem; color: var(--ink);
}
.nav a:not(.btn):hover { background: var(--mist); color: var(--navy); }
.nav a:not(.btn)[aria-current="page"] { color: var(--navy); box-shadow: inset 0 -3px 0 var(--gold); border-radius: 0; }
.nav .btn { min-height: 44px; padding: 8px 20px; margin-left: 8px; }

.nav-toggle {
  display: none; background: none; border: 2px solid var(--navy); color: var(--navy);
  border-radius: 10px; padding: 8px 12px; font: 650 .95rem var(--sans); cursor: pointer;
}

@media (max-width: 980px) {
  .nav-toggle { display: inline-flex; align-items: center; gap: 8px; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%; background: #fff;
    border-bottom: 1px solid var(--line); display: none; padding: 12px 20px 20px;
  }
  .nav.is-open { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav a:not(.btn) { padding: 14px 12px; border-radius: 10px; }
  .nav a:not(.btn)[aria-current="page"] { box-shadow: none; background: var(--mist); }
  .nav .btn { margin: 10px 0 0; }
}
@media (max-width: 420px) {
  .brand img { width: 48px; }
  .brand-name { font-size: 1.35rem; }
  .brand-sub { font-size: .74rem; }
}

/* ---------- Sections ---------- */
.band { padding-block: clamp(56px, 8vw, 104px); }
.band--mist { background: var(--mist); }
.band--navy { background: var(--navy); color: #e8eefc; }
.band--navy h2, .band--navy h3 { color: #fff; }
.band--tight { padding-block: clamp(40px, 5vw, 64px); }
.section-head { max-width: 720px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head p { color: var(--muted); font-size: 1.1rem; }
.band--navy .section-head p { color: #c9d6f3; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 62ch; }

/* ---------- Accueil ---------- */
.hero { padding-block: clamp(36px, 6vw, 84px) clamp(48px, 7vw, 96px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { max-width: 14ch; }
.hero .lead { margin-bottom: 28px; }
.hero-note { margin-top: 18px; font-size: .97rem; color: var(--muted); max-width: 46ch; }

.arch {
  position: relative; background: linear-gradient(180deg, var(--mist-2) 0%, var(--mist) 100%);
  border-radius: 999px 999px 28px 28px; padding: 17% 9% 15%;
}
.arch img { width: 100%; height: auto; }
.week {
  position: absolute; left: -7%; bottom: -26px; width: min(300px, 78%);
  background: #fff; border: 1.5px solid var(--navy); border-radius: 16px; padding: 16px 18px;
  box-shadow: 6px 6px 0 var(--gold);
}
.week h2 { font: 700 1.05rem/1.25 var(--serif); margin: 0 0 8px; }
.week ul { list-style: none; display: grid; gap: 8px; font-size: .96rem; line-height: 1.4; }
.week li { display: flex; gap: 10px; align-items: flex-start; }
.week svg { width: 20px; height: 20px; flex: none; color: var(--red); margin-top: 1px; }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero h1 { max-width: 16ch; }
  .arch { max-width: 460px; margin: 8px auto 40px; }
  .week { left: 4%; }
}
@media (prefers-reduced-motion: no-preference) {
  .hero h1, .hero .lead, .hero .btn-row, .hero-note { animation: rise .7s cubic-bezier(.2,.7,.2,1) both; }
  .hero .lead { animation-delay: .08s; }
  .hero .btn-row { animation-delay: .16s; }
  .hero-note { animation-delay: .22s; }
  .arch { animation: fade .9s ease both; }
  @keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
  @keyframes fade { from { opacity: 0; } to { opacity: 1; } }
}

/* Liste de services en lignes */
.svc-list { list-style: none; border-top: 1px solid var(--line-strong); }
.svc {
  display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; gap: 8px 28px; align-items: center;
  padding: 30px 0; border-bottom: 1px solid var(--line-strong);
}
.svc-ico {
  width: 64px; height: 64px; border-radius: 50%; background: var(--navy); color: #fff;
  display: grid; place-items: center;
}
.svc-ico svg { width: 30px; height: 30px; }
.svc h3 { margin-bottom: .25em; }
.svc p { margin: 0; color: var(--muted); max-width: 62ch; }
.svc a.more { font-weight: 650; white-space: nowrap; }
@media (max-width: 720px) {
  .svc { grid-template-columns: 56px minmax(0, 1fr); padding: 24px 0; }
  .svc-ico { width: 52px; height: 52px; }
  .svc-ico svg { width: 26px; height: 26px; }
  .svc a.more { grid-column: 2; }
}

/* Bande « ce qui nous distingue » */
.diff { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 56px); }
.diff > div { border-top: 3px solid var(--gold); padding-top: 18px; }
.diff h3 { font-size: 1.4rem; }
.diff p { color: #d5e0f7; margin: 0; }
@media (max-width: 820px) { .diff { grid-template-columns: 1fr; } }

/* Étapes : c'est bien une suite */
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; counter-reset: step; }
.steps li { counter-increment: step; border-top: 3px solid var(--gold); padding-top: 16px; }
.steps li::before {
  content: counter(step); display: block; font: 650 2.6rem/1 var(--serif); color: var(--red); margin-bottom: 8px;
}
.steps h3 { font-size: 1.15rem; }
.steps p { margin: 0; color: var(--muted); font-size: 1rem; }
@media (max-width: 980px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* Pour qui */
.who { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 56px; }
.who > div { padding: 22px 0; border-top: 1px solid var(--line-strong); }
.who h3 { margin-bottom: .2em; font-size: 1.2rem; }
.who p { margin: 0; color: var(--muted); }
@media (max-width: 720px) { .who { grid-template-columns: 1fr; } }

/* Encadré « ce que nous ne faisons pas » */
.notice {
  background: var(--mist); border-left: 6px solid var(--gold); border-radius: 0 var(--radius) var(--radius) 0;
  padding: 22px 26px; max-width: 760px;
}
.notice h3 { font-size: 1.15rem; margin-bottom: .3em; }
.notice p { margin: 0; }
.band--mist .notice { background: #fff; }

/* Bandeau d'appel final */
.cta-band { background: var(--navy-deep); color: #e8eefc; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { max-width: 56ch; margin-inline: auto; color: #c9d6f3; }
.cta-band .btn-row { justify-content: center; margin-top: 24px; }
.cta-band .btn--line { color: #fff; border-color: #fff; }
.cta-band .btn--line:hover { background: #fff; color: var(--navy); }

/* ---------- Pages intérieures ---------- */
.page-head { background: var(--mist); padding-block: clamp(44px, 6vw, 84px); }
.page-head h1 { max-width: 20ch; margin-bottom: .35em; }
.page-head .lead { margin: 0; }

.prose { max-width: 70ch; }
.prose h2 { margin-top: 1.6em; }
.prose h2:first-child { margin-top: 0; }
.checks { list-style: none; display: grid; gap: 10px; margin: 0 0 1.2em; }
.checks li { display: flex; gap: 12px; align-items: flex-start; }
.checks svg { width: 22px; height: 22px; flex: none; color: var(--red); margin-top: 3px; }
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
@media (max-width: 820px) { .two-col { grid-template-columns: 1fr; } }

.service-block { padding-block: clamp(36px, 5vw, 64px); border-top: 1px solid var(--line-strong); scroll-margin-top: 90px; }
.service-block:first-of-type { border-top: 0; }
.service-block .svc-ico { margin-bottom: 16px; }

.person { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 28px; padding-block: 36px; border-top: 1px solid var(--line-strong); }
.person:first-of-type { border-top: 0; padding-top: 0; }
.monogram {
  width: 120px; height: 120px; border-radius: 50%; background: var(--navy); color: #fff;
  display: grid; place-items: center; font: 650 2.3rem/1 var(--serif);
  box-shadow: 0 0 0 5px #fff, 0 0 0 8px var(--gold);
}
.person h3 { margin-bottom: .1em; }
.person .role { color: var(--red); font-weight: 650; margin-bottom: 1em; }
.person p:last-child { margin-bottom: 0; }
@media (max-width: 640px) { .person { grid-template-columns: 1fr; gap: 20px; } }

/* ---------- Contact / formulaire ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.form { display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.field label, .field legend { display: block; font-weight: 650; margin-bottom: 6px; color: var(--navy); padding: 0; }
.field .hint { font-weight: 400; color: var(--muted); font-size: .92rem; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--ink); background: #fff;
  border: 1.5px solid var(--line-strong); border-radius: 10px; padding: 12px 14px; min-height: 50px;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--navy); box-shadow: 0 0 0 4px rgba(11,47,123,.16);
}
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-color: var(--red); }
.field .err { display: none; color: var(--red-dark); font-size: .93rem; margin-top: 5px; font-weight: 600; }
.field.is-invalid .err { display: block; }
.check { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: flex-start; }
.check .err { flex-basis: 100%; }
.check input { width: 22px; height: 22px; min-height: 0; margin-top: 3px; accent-color: var(--navy); flex: none; }
.check label { margin: 0; font-weight: 500; color: var(--ink); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { border-radius: var(--radius); padding: 18px 20px; display: none; font-weight: 600; }
.form-status.is-visible { display: block; }
.form-status.ok { background: #e6f4ec; border: 1.5px solid #3a9a63; color: #0f4d2b; }
.form-status.bad { background: #fdecee; border: 1.5px solid var(--red); color: #7d0a1d; }
.form-status a { color: inherit; }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.info-card { background: var(--mist); border-radius: 20px; padding: 28px; }
.info-card h2 { font-size: 1.35rem; }
.info-list { list-style: none; display: grid; gap: 18px; margin: 0 0 8px; }
.info-list li { display: grid; grid-template-columns: 26px 1fr; gap: 12px; }
.info-list svg { width: 24px; height: 24px; color: var(--red); margin-top: 2px; }
.info-list strong { display: block; color: var(--navy); }
.info-list a { word-break: break-word; }

/* ---------- Mentions légales ---------- */
.legal h2 { font-size: 1.45rem; margin-top: 1.8em; }
.legal dl { display: grid; grid-template-columns: 220px 1fr; gap: 8px 24px; margin: 0 0 1em; }
.legal dt { font-weight: 650; color: var(--navy); }
.legal dd { margin: 0; }
@media (max-width: 600px) { .legal dl { grid-template-columns: 1fr; gap: 0; } .legal dd { margin-bottom: 12px; } }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--navy-deep); color: #c9d6f3; padding-top: 56px; font-size: .98rem; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--gold); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; padding-bottom: 40px; }
.footer-brand { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; }
.footer-brand .badge { background: #fff; border-radius: 50%; width: 76px; height: 76px; display: grid; place-items: center; flex: none; }
.footer-brand img { width: 58px; }
.footer-brand strong { font: 700 1.35rem/1.1 var(--serif); color: #fff; display: block; }
.site-footer h2 { font: 700 1.05rem var(--serif); color: #fff; margin-bottom: .7em; letter-spacing: 0; }
.site-footer ul { list-style: none; display: grid; gap: 8px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.16); padding-block: 20px; font-size: .9rem; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } }

/* Bouton WhatsApp flottant */
.wa-float {
  position: fixed; right: 16px; bottom: 16px; z-index: 40; width: 58px; height: 58px; border-radius: 50%;
  background: var(--wa); color: #fff; display: grid; place-items: center;
  box-shadow: 0 6px 18px rgba(8,31,87,.35);
}
.wa-float:hover { background: #0d6f3b; color: #fff; }
.wa-float svg { width: 30px; height: 30px; }

.error-page { min-height: 60vh; display: grid; place-items: center; text-align: center; padding-block: 64px; }
.error-page .code { font: 650 5rem/1 var(--serif); color: var(--red); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}
