*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; overflow-x: clip; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
picture { display: block; }
figure > picture { height: 100%; }
img.logo { object-fit: contain; object-position: left center; flex: none; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
:where(ul[class], ol[class], nav ul, nav ol) { list-style: none; padding: 0; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:target { scroll-margin-top: 90px; }
[hidden] { display: none !important; }

:focus-visible { outline: 2px solid var(--k-focus, currentColor); outline-offset: 3px; }

.k-sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.k-skip { position: fixed; left: 12px; top: -60px; z-index: 1000; padding: 10px 16px; border-radius: 8px; background: #fff; color: #000; font-weight: 700; text-decoration: none; transition: top .2s; }
.k-skip:focus { top: 12px; }
.nw { white-space: nowrap; }

/* Apparitions */
.js [data-r] { opacity: 0; transform: translateY(var(--r-y, 28px)); transition: opacity .9s cubic-bezier(.2, .7, .2, 1), transform .9s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--r-d, 0s); }
.js [data-r].is-in { opacity: 1; transform: none; }

/* Sélecteur de modèle */
.k-switch { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; }
.k-switch > span { opacity: .7; }
.k-switch select {
  appearance: none; -webkit-appearance: none; min-height: 38px; padding: 0 30px 0 12px;
  border: 1px solid var(--k-line, currentColor); border-radius: var(--k-radius-s, 999px);
  background-color: var(--k-switch-bg, transparent); color: inherit; font-size: 12px; font-weight: 600; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 16px) 50%, calc(100% - 11px) 50%; background-size: 5px 5px; background-repeat: no-repeat;
}
.k-switch option { color: #111; background: #fff; }

/* Bouton menu */
.k-burger { display: none; position: relative; width: 44px; height: 44px; border: 1px solid var(--k-line, currentColor); border-radius: var(--k-radius-s, 999px); background: transparent; }
.k-burger i { position: absolute; left: 13px; right: 13px; height: 2px; background: currentColor; transition: transform .3s, top .3s; }
.k-burger i:first-of-type { top: 17px; }
.k-burger i:last-of-type { top: 25px; }
.k-burger[aria-expanded="true"] i:first-of-type { top: 21px; transform: rotate(45deg); }
.k-burger[aria-expanded="true"] i:last-of-type { top: 21px; transform: rotate(-45deg); }

/* Formulaire */
.k-form { display: grid; gap: 16px; font-family: var(--k-font, inherit); }
.k-entite { margin: 0; padding: 0; border: 0; min-width: 0; }
.k-entite legend { padding: 0; margin-bottom: 10px; font-size: 13px; font-weight: 600; color: var(--k-muted, inherit); }
.k-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.k-chip { position: relative; cursor: pointer; }
.k-chip input { position: absolute; inset: 0; opacity: 0; cursor: pointer; margin: 0; }
.k-chip span {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px;
  border: 1px solid var(--k-line, currentColor); border-radius: var(--k-radius-s, 999px);
  font-size: 14px; font-weight: 600; transition: background-color .2s, border-color .2s, color .2s;
}
.k-chip span::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--bc); flex: none; }
.k-chip:hover span { border-color: var(--k-fg, currentColor); }
.k-chip input:checked + span { background: var(--k-fg); color: var(--k-bg); border-color: var(--k-fg); }
.k-chip input:focus-visible + span { outline: 2px solid var(--k-focus, currentColor); outline-offset: 3px; }
.k-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.k-field { display: grid; gap: 7px; }
.k-field > span { font-size: 13px; font-weight: 600; color: var(--k-muted, inherit); }
.k-field input, .k-field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px;
  border: 1px solid var(--k-line, currentColor); border-radius: var(--k-radius, 10px);
  background: var(--k-field, transparent); color: var(--k-field-fg, inherit);
  transition: border-color .2s, box-shadow .2s;
}
.k-field textarea { resize: vertical; min-height: 120px; }
.k-field input:hover, .k-field textarea:hover { border-color: var(--k-fg, currentColor); }
.k-field input:focus, .k-field textarea:focus { outline: none; border-color: var(--k-accent, currentColor); box-shadow: 0 0 0 3px var(--k-ring, rgba(0, 0, 0, .12)); }
.k-field.is-invalid input, .k-field.is-invalid textarea { border-color: var(--k-err, #d33); }
.k-consent { display: flex; gap: 12px; align-items: flex-start; font-size: 13px; line-height: 1.5; color: var(--k-muted, inherit); }
.k-consent input { width: 20px; height: 20px; margin: 1px 0 0; flex: none; accent-color: var(--k-accent, currentColor); }
.k-consent.is-invalid { color: var(--k-err, #d33); }
.k-error, .k-msg { margin: 0; padding: 12px 14px; border-radius: var(--k-radius, 10px); font-size: 14px; font-weight: 600; }
.k-error, .k-err { background: rgba(220, 50, 50, .12); color: var(--k-err, #b42318); }
.k-ok { background: rgba(30, 160, 90, .14); color: var(--k-ok, #106b3c); }
.k-submit {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; justify-self: start;
  min-height: 52px; padding: 0 26px; border: 0; border-radius: var(--k-radius-s, 999px);
  background: var(--k-accent, #111); color: var(--k-accent-fg, #fff); font-weight: 700; font-size: 15px;
  transition: transform .2s, filter .2s;
}
.k-submit:hover { transform: translateY(-2px); filter: brightness(1.08); }

/* Sites */
.k-sites { display: grid; gap: 24px; }
.k-site h3 small { display: block; margin-top: 4px; font-size: 12px; font-weight: 500; opacity: .7; letter-spacing: 0; }
.k-site p { margin-top: 10px; line-height: 1.6; }
.k-site a { text-decoration: none; }
.k-site a:hover { text-decoration: underline; }
.k-tel { font-weight: 700; }
.k-hours { font-size: 13px; opacity: .75; }

.k-legal { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 12px; line-height: 1.5; }
.k-legal a { text-decoration: none; }
.k-legal a:hover { text-decoration: underline; }

@media (max-width: 640px) {
  .k-row { grid-template-columns: 1fr; }
  .k-submit { justify-self: stretch; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js [data-r] { opacity: 1; transform: none; }
}
