/* Isabelle Buisson, infirmière à domicile. Feuille de style unique. */

/* Lato : la police de sa carte de visite. Hébergée sur le site (aucun appel à Google). */
@font-face {
  font-family: "Lato";
  src: url("../fonts/lato-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Lato";
  src: url("../fonts/lato-400-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Lato";
  src: url("../fonts/lato-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Lato";
  src: url("../fonts/lato-900-normal.woff2") format("woff2");
  font-weight: 900;
  font-display: swap;
}

:root {
  /* Le rouge de sa carte (le même que dans src/card-art.js), utilisé avec parcimonie. */
  --red: #d8312e;
  --red-dark: #b5221f;
  --red-tint: #fcefee;

  --ink: #1f2328;
  --ink-soft: #5b6168;
  --line: #c9cdd2;
  --bg: #ffffff;
  --bg-alt: #f5f5f4;
  --tag: #eef0f1;

  /* Cinq tailles de texte. */
  --step-small: 0.9375rem;
  --step-body: clamp(1.0625rem, 1rem + 0.2vw, 1.125rem);
  --step-lead: clamp(1.1875rem, 1.1rem + 0.35vw, 1.375rem);
  --step-h2: clamp(1.75rem, 1.4rem + 1.2vw, 2.375rem);
  --step-h1: clamp(2.5rem, 1.7rem + 3vw, 4rem);

  --font: "Lato", "Segoe UI", system-ui, -apple-system, sans-serif;
  --radius: 14px;
  --gutter: clamp(20px, 4vw, 40px);
  --section: clamp(72px, 9vw, 120px);
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 var(--step-body) / 1.6 var(--font);
  overflow-x: clip;
}

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

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}
a:hover {
  color: var(--red-dark);
}

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

h1,
h2,
h3 {
  margin: 0;
  font-weight: 700;
  line-height: 1.15;
  text-wrap: balance;
}
h2 {
  font-size: var(--step-h2);
  letter-spacing: -0.01em;
}
h3 {
  font-size: var(--step-lead);
}
p {
  margin: 0;
}

.sprite {
  position: absolute;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px; /* taste-skill-ignore: texte réservé aux lecteurs d’écran */
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 30;
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}
.skip:focus {
  top: 12px;
}

.wrap {
  width: min(100%, 1240px);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ------------------------------------------------------------------ boutons */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 28px;
  border: 2px solid var(--red);
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font: 700 var(--step-body) / 1.2 var(--font);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 150ms ease, border-color 150ms ease, transform 120ms ease;
}
.button:hover {
  border-color: var(--red-dark);
  background: var(--red-dark);
  color: #fff;
}
.button:active {
  transform: scale(0.98);
}
.button:disabled {
  opacity: 0.55;
  cursor: progress;
}
.button svg {
  width: 20px;
  height: 20px;
}
.button--ghost {
  border-color: var(--line);
  background: #fff;
  color: var(--ink);
}
.button--ghost:hover {
  border-color: var(--ink);
  background: #fff;
  color: var(--ink);
}
.button--small {
  min-height: 44px;
  padding: 0 20px;
  font-size: var(--step-small);
}
.button--block {
  width: 100%;
}

.textlink,
.textbutton {
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink);
  font: 700 var(--step-body) / 1.4 var(--font);
  text-decoration: underline;
  text-decoration-color: var(--red);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.25em;
  cursor: pointer;
}
.textlink:hover,
.textbutton:hover {
  color: var(--red-dark);
}

/* ------------------------------------------------------------------ barre du haut */

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.97);
  transition: box-shadow 200ms ease;
}
.topbar.is-scrolled {
  box-shadow: 0 1px 0 rgba(31, 35, 40, 0.08), 0 6px 18px rgba(31, 35, 40, 0.06); /* taste-skill-ignore: barre fixe qui passe au-dessus du contenu */
}
.topbar__inner {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-right: auto;
  color: var(--ink);
  text-decoration: none;
}
.brand:hover {
  color: var(--ink);
}
.brand__logo {
  flex: none;
  width: 44px;
  height: 44px;
  color: var(--red);
}
.brand__text {
  display: grid;
  line-height: 1.2;
}
.brand__text strong {
  font-size: 1.125rem;
}
.brand__text span {
  color: var(--ink-soft);
  font-size: var(--step-small);
  font-style: italic;
}

.topbar__nav {
  display: flex;
  gap: 24px;
}
.topbar__nav a {
  font-size: var(--step-small);
  font-weight: 700;
  text-decoration: none;
}
.topbar__nav a:hover {
  text-decoration: underline;
  text-decoration-color: var(--red);
}

.topbar__phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.topbar__phone svg {
  width: 18px;
  height: 18px;
  color: var(--red);
}

@media (max-width: 999px) {
  .topbar__nav {
    display: none;
  }
}
@media (max-width: 639px) {
  .topbar__inner {
    gap: 12px;
    min-height: 64px;
  }
  .topbar__cta {
    display: none;
  }
  .brand__logo {
    width: 38px;
    height: 38px;
  }
  .brand__text strong {
    font-size: 1rem;
  }
  .topbar__phone {
    min-height: 44px;
    padding: 0 14px;
    border: 2px solid var(--line);
    border-radius: 999px;
    font-size: var(--step-small);
  }
}
@media (max-width: 379px) {
  .topbar__phone span {
    display: none;
  }
}

/* ------------------------------------------------------------------ en-tête */

.hero {
  padding: clamp(28px, 4vw, 48px) 0 var(--section);
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}
@media (min-width: 900px) {
  .hero__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 64px;
  }
}

.hero h1 {
  font-size: var(--step-h1);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.02;
}
.hero__title {
  margin-top: 12px;
  color: var(--red);
  font-size: var(--step-lead);
  font-style: italic;
}
.hero__lead {
  max-width: 34em;
  margin-top: 24px;
  font-size: var(--step-lead);
  line-height: 1.5;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}
.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  margin: 28px 0 0;
  padding: 0;
  color: var(--ink-soft);
  font-size: var(--step-small);
  list-style: none;
}

.hero__photo {
  width: min(100%, 600px);
  margin: 0;
  justify-self: end;
}
.hero__photo img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  background: var(--tag);
}
@media (max-width: 899px) {
  .hero__photo {
    order: -1;
    width: min(62vw, 300px);
    justify-self: start;
  }
}

/* ------------------------------------------------------------------ sections */

.section {
  padding: var(--section) 0;
}
.section--alt {
  background: var(--bg-alt);
}
.section__head {
  display: grid;
  gap: 16px;
  max-width: 44em;
  margin-bottom: 40px;
}

/* Soins */
.soins {
  display: grid;
  gap: 32px;
}
.soins__intro {
  display: grid;
  gap: 16px;
  align-content: start;
  max-width: 34em;
}
@media (min-width: 900px) {
  .soins {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 64px;
  }
}
.tags {
  display: flex;
  flex-wrap: wrap;
  align-content: start;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.tags li {
  padding: 12px 20px;
  border-radius: 999px;
  background: #fff;
  font-weight: 700;
}

/* Secteur */
.communes {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (max-width: 999px) {
  .communes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 479px) {
  .communes {
    gap: 14px;
  }
}
.communes figure {
  margin: 0;
}
.communes img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--tag);
}
.communes figcaption {
  display: grid;
  margin-top: 12px;
  line-height: 1.35;
}
.communes figcaption strong {
  font-size: var(--step-lead);
}
.communes figcaption span {
  color: var(--ink-soft);
  font-size: var(--step-small);
}

/* ------------------------------------------------------------------ rendez-vous */

.rdv {
  display: grid;
  gap: 32px;
  align-items: start;
}
@media (min-width: 1000px) {
  .rdv {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: 48px;
  }
  .rdv__phone {
    position: sticky;
    top: 104px;
  }
}

.rdv__phone h3,
.rdv__online h3 {
  margin-bottom: 12px;
}
.rdv__number {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: var(--step-h2);
  font-weight: 900;
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
}
.rdv__number svg {
  width: 30px;
  height: 30px;
  color: var(--red);
}
.rdv__note {
  margin-top: 8px;
  color: var(--ink-soft);
}

.cardstage {
  position: relative;
  height: clamp(260px, 34vw, 360px);
  margin: 28px 0 0;
  border-radius: var(--radius);
  background: #fff;
}
.cardstage__canvas {
  position: absolute;
  inset: 0;
  cursor: grab;
  touch-action: pan-y;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}
.cardstage__canvas.is-grabbing {
  cursor: grabbing;
}
.cardstage__canvas canvas {
  width: 100%;
  height: 100%;
}
.cardstage__fallback {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(78%, 420px);
  height: auto;
  border-radius: 3.2% / 5%;
  transform: translate(-50%, -50%) rotate(-2deg);
  transition: opacity 400ms ease;
  pointer-events: none;
}
.cardstage.is-3d .cardstage__fallback {
  opacity: 0;
}
.cardstage__tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-top: 16px;
}
.cardstage__tools .textbutton {
  font-size: var(--step-small);
}

.panel {
  padding: clamp(24px, 3vw, 40px);
  border-radius: var(--radius);
  background: #fff;
}

/* ------------------------------------------------------------------ formulaire */

.demo-note {
  margin-bottom: 24px;
  padding: 12px 16px;
  border-radius: 10px;
  background: var(--bg-alt);
  color: var(--ink-soft);
  font-size: var(--step-small);
}

.step,
.mode {
  min-width: 0;
  margin: 0 0 28px;
  padding: 0;
  border: 0;
}
.mode[hidden] {
  display: none;
}
.mode > .step:last-child {
  margin-bottom: 0;
}
.step legend {
  margin-bottom: 12px;
  padding: 0;
  font-weight: 700;
}
.mode__intro {
  margin-bottom: 20px;
  padding: 14px 16px;
  border-left: 4px solid var(--red);
  border-radius: 4px;
  background: var(--red-tint);
}

.choices {
  display: grid;
  gap: 8px;
}
.choices--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.choices--3 {
  grid-template-columns: repeat(auto-fill, minmax(118px, 1fr));
}
.choices > p {
  grid-column: 1 / -1;
}

.choice {
  position: relative;
  display: block;
}
.choice--wide {
  grid-column: 1 / -1;
}
.choice input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.choice span {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 54px;
  height: 100%;
  padding: 8px 14px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: #fff;
  line-height: 1.25;
  transition: border-color 140ms ease, background-color 140ms ease, box-shadow 140ms ease;
}
.choice small {
  display: block;
  margin-top: 2px;
  color: var(--ink-soft);
  font-size: var(--step-small);
}
.choice b {
  font-weight: 700;
  white-space: nowrap;
}
.choice input:hover + span {
  border-color: var(--ink-soft);
}
.choice input:checked + span {
  border-color: var(--red);
  background: var(--red-tint);
  box-shadow: inset 0 0 0 1px var(--red); /* taste-skill-ignore: épaisseur du cadre de l’option choisie */
  font-weight: 700;
}
.choice input:focus-visible + span {
  outline: 3px solid var(--ink);
  outline-offset: 2px;
}
.choice input:disabled {
  cursor: not-allowed;
}
.choice input:disabled + span {
  border-style: dashed;
  background: var(--bg-alt);
  color: var(--ink-soft);
}
.choice input[aria-invalid="true"] + span {
  border-color: var(--red);
}
.choice--day span,
.choice--time span {
  align-items: flex-start;
  min-height: 62px;
}

.field {
  display: grid;
  gap: 6px;
  margin-bottom: 18px;
}
.field label {
  font-weight: 700;
}
.optional {
  color: var(--ink-soft);
  font-weight: 400;
}
.field input,
.field textarea {
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font: 400 var(--step-body) / 1.3 var(--font);
}
.field textarea {
  resize: vertical;
}
.field input:focus-visible,
.field textarea:focus-visible {
  border-color: var(--ink);
  outline: 3px solid var(--red-tint);
  outline-offset: 0;
}
.field [aria-invalid="true"] {
  border-color: var(--red);
}

.hint {
  color: var(--ink-soft);
  font-size: var(--step-small);
}
.step .hint {
  margin-top: 10px;
}
.form > .hint {
  margin: -8px 0 28px;
}

.error {
  margin-top: 8px;
  color: var(--red-dark);
  font-size: var(--step-small);
  font-weight: 700;
}

.notice {
  padding: 14px 16px;
  border-radius: 10px;
  background: var(--bg-alt);
}

.consent {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  margin-top: 6px;
  font-size: var(--step-small);
  cursor: pointer;
}
.consent input {
  width: 22px;
  height: 22px;
  margin: 1px 0 0;
  accent-color: var(--red);
}

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px; /* taste-skill-ignore: champ piège anti-robots masqué */
  overflow: hidden;
}

.status {
  min-height: 1.5em;
  margin: 8px 0 12px;
  font-weight: 700;
}

.fine {
  margin-top: 14px;
  color: var(--ink-soft);
  font-size: var(--step-small);
}
.fine a {
  color: var(--ink);
  white-space: nowrap;
}

.done {
  display: grid;
  gap: 14px;
}
.done:focus {
  outline: none;
}
.done__title {
  font-size: var(--step-h2);
}
.done .textbutton {
  justify-self: start;
  margin-top: 6px;
}

/* ------------------------------------------------------------------ infos pratiques */

.infos h2 {
  margin-bottom: 40px;
}
.qa {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 56px;
  margin: 0;
}
.qa dt {
  font-weight: 700;
}
.qa dd {
  margin: 4px 0 0;
  color: var(--ink);
}
@media (max-width: 799px) {
  .qa {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
  }
}

/* ------------------------------------------------------------------ pied de page */

.footer {
  padding: 56px 0 40px;
  background: var(--ink);
  color: #fff;
}
.footer a {
  color: #fff;
}
.footer a:hover {
  color: #fff;
  text-decoration-color: var(--red);
}
.footer__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
}
.footer__brand {
  display: flex;
  gap: 14px;
}
.footer__brand .brand__logo {
  color: #fff;
}
.footer ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer__legal {
  margin-top: 40px;
  color: #c4c8cd;
  font-size: var(--step-small);
}
@media (max-width: 799px) {
  .footer__grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ------------------------------------------------------------------ mentions légales */

.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px var(--gutter) var(--section);
}
.legal__back {
  display: inline-block;
  margin-bottom: 48px;
  font-weight: 700;
}
.legal h1 {
  margin-bottom: 32px;
  font-size: var(--step-h1);
  font-weight: 900;
}
.legal h2 {
  margin: 48px 0 16px;
}
.legal p,
.legal ul {
  max-width: 64ch;
  margin: 0 0 14px;
}
.legal ul {
  padding-left: 1.2em;
}
.legal li {
  margin-bottom: 8px;
}

/* ------------------------------------------------------------------ mouvement réduit */

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

/* Portrait : pas d'enregistrement par appui long ni de glisser-déposer (simple frein, pas une protection). */
img[data-no-save] {
  -webkit-touch-callout: none;
  -webkit-user-drag: none;
  user-select: none;
}
