/* Kiswendsida & Frères — site corporate
   Complément de assets/app.css (CSS Tailwind compilé de la maquette Lovable).
   app.css n'est jamais modifié : tout ce qui manque est ici.
   1. Utilitaires Tailwind absents de app.css (mêmes valeurs que Tailwind)
   2. Composants : barre, menu déroulant, fil d'Ariane, pied de page, blog…
   3. Animations (désactivées si l'utilisateur préfère réduire les mouvements) */

/* ------------------------------------------------------------------ jetons */
:root {
  --kf-navy: #1B2C3E;          /* bleu nuit du logo — pied de page */
  --kf-navy-2: #14222F;
  --kf-copper: hsl(27 72% 50%);
  --kf-ease: cubic-bezier(.22, 1, .36, 1);
  --kf-wa: #25D366;
}
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body { -webkit-font-smoothing: antialiased; overflow-x: clip; }
#contenu { overflow-x: clip; }
::selection { background: hsl(27 72% 50% / .25); }

/* ------------------------------------- 1. utilitaires Tailwind complémentaires */
.mt-5 { margin-top: 1.25rem; }
.mt-8 { margin-top: 2rem; }
.mb-1\.5 { margin-bottom: .375rem; }
.pt-16 { padding-top: 4rem; }
.pb-8 { padding-bottom: 2rem; }
.pb-24 { padding-bottom: 6rem; }
.py-10 { padding-top: 2.5rem; padding-bottom: 2.5rem; }
.py-2\.5 { padding-top: .625rem; padding-bottom: .625rem; }
.inline { display: inline; }
.mt-10 { margin-top: 2.5rem; }
.mb-10 { margin-bottom: 2.5rem; }
.mb-12 { margin-bottom: 3rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.py-20 { padding-top: 5rem; padding-bottom: 5rem; }
.max-w-5xl { max-width: 64rem; }
.h-72 { height: 18rem; }
.aspect-video { aspect-ratio: 16 / 9; }
.text-balance { text-wrap: balance; }
@media (min-width: 768px) {
  .md\:py-24 { padding-top: 6rem; padding-bottom: 6rem; }
  .md\:h-80 { height: 20rem; }
}
@media (min-width: 1024px) {
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .lg\:col-span-2 { grid-column: span 2 / span 2; }
  .lg\:sticky { position: sticky; }
  .lg\:top-28 { top: 7rem; }
}

/* ------------------------------------------------------- accessibilité */
.kf-skip {
  position: absolute; left: 1rem; top: -100px; z-index: 100;
  background: var(--kf-navy); color: #fff; padding: .75rem 1.25rem; border-radius: .5rem;
  font-weight: 600; transition: top .2s;
}
.kf-skip:focus { top: 1rem; }
:focus-visible { outline: 2px solid var(--kf-copper); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border-width: 0; }

/* ------------------------------------------------- barre de navigation */
.kf-nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background-color .35s var(--kf-ease), box-shadow .35s, backdrop-filter .35s;
}
.kf-nav.is-scrolled, .kf-nav.is-open {
  background: hsl(var(--card) / .95);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  box-shadow: var(--shadow-elegant);
}
.kf-nav__bar { display: flex; align-items: center; justify-content: space-between; height: 5rem; gap: 1rem; }
.kf-brand { display: flex; align-items: center; gap: .75rem; background: hsl(var(--card) / .9);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  border-radius: .75rem; padding: .375rem .5rem; box-shadow: var(--shadow-elegant); }
.kf-brand img { height: 3rem; width: auto; transition: height .3s var(--kf-ease); }
.kf-nav.is-scrolled .kf-brand img { height: 2.5rem; }
.kf-brand__txt { display: none; font-family: Montserrat, sans-serif; font-weight: 700; font-size: 1.25rem;
  line-height: 1.15; color: hsl(var(--foreground)); }
.kf-brand__txt small { display: block; font-family: Inter, sans-serif; font-size: .7rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: hsl(var(--muted-foreground)); }
@media (min-width: 1280px) { .kf-brand__txt { display: block; } }

.kf-menu { display: none; align-items: center; gap: .25rem; }
.kf-menu > li { position: relative; list-style: none; }
.kf-link {
  display: inline-flex; align-items: center; gap: .3rem; padding: .5rem .6rem; border-radius: .5rem;
  font-weight: 500; font-size: .9rem; white-space: nowrap; color: hsl(var(--primary-foreground));
  transition: color .2s, background-color .2s; background: none; border: 0; cursor: pointer;
}
.kf-link:hover { color: hsl(var(--primary-foreground) / .8); }
.kf-nav.is-scrolled .kf-link { color: hsl(var(--foreground)); }
.kf-nav.is-scrolled .kf-link:hover { color: hsl(var(--primary)); background: hsl(var(--muted) / .6); }
.kf-link[aria-current="page"], .kf-link.is-active { position: relative; }
.kf-link[aria-current="page"]::after, .kf-link.is-active::after {
  content: ""; position: absolute; left: .6rem; right: .6rem; bottom: .15rem; height: 2px;
  border-radius: 2px; background: var(--gradient-copper);
}
.kf-link svg { width: 14px; height: 14px; transition: transform .25s var(--kf-ease); }
.kf-has-sub:hover > .kf-link svg, .kf-has-sub.is-open > .kf-link svg { transform: rotate(180deg); }
.kf-cta {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  height: 2.5rem; padding: 0 1.1rem; border-radius: .375rem; font-weight: 500; font-size: .9rem;
  white-space: nowrap; color: #fff; background: var(--gradient-copper); box-shadow: var(--shadow-glow);
  transition: transform .25s var(--kf-ease), opacity .2s, box-shadow .25s;
}
.kf-cta:hover { opacity: .92; transform: translateY(-1px); box-shadow: 0 10px 30px -8px hsl(27 72% 50% / .6); }

/* menu déroulant */
.kf-sub {
  position: absolute; top: calc(100% + .5rem); left: 50%; min-width: 300px; padding: .5rem;
  background: hsl(var(--card)); border: 1px solid hsl(var(--border)); border-radius: 1rem;
  box-shadow: var(--shadow-elegant); list-style: none;
  opacity: 0; visibility: hidden; transform: translate(-50%, 8px);
  transition: opacity .22s var(--kf-ease), transform .22s var(--kf-ease), visibility 0s .22s;
}
.kf-sub::before { content: ""; position: absolute; inset: -.6rem 0 auto 0; height: .6rem; }
.kf-has-sub:hover > .kf-sub, .kf-has-sub:focus-within > .kf-sub, .kf-has-sub.is-open > .kf-sub {
  opacity: 1; visibility: visible; transform: translate(-50%, 0); transition-delay: 0s;
}
.kf-sub a { display: flex; gap: .75rem; align-items: flex-start; padding: .65rem .75rem; border-radius: .65rem;
  color: hsl(var(--foreground)); transition: background-color .2s; }
.kf-sub a:hover, .kf-sub a:focus-visible { background: hsl(var(--muted)); }
.kf-sub a[aria-current="page"] { background: hsl(var(--muted)); }
.kf-sub strong { display: block; font-size: .9rem; font-weight: 600; }
.kf-sub span.kf-sub__d { display: block; font-size: .78rem; color: hsl(var(--muted-foreground)); line-height: 1.35; }
.kf-sub__ico { flex: 0 0 2.25rem; height: 2.25rem; border-radius: .5rem; display: grid; place-items: center;
  background: var(--gradient-metal); color: #fff; }
.kf-sub__ico svg { width: 18px; height: 18px; }
.kf-sub hr { border: 0; border-top: 1px solid hsl(var(--border)); margin: .35rem .5rem; }

/* bouton menu téléphone */
.kf-burger { display: inline-grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: .5rem;
  color: hsl(var(--primary-foreground)); background: none; border: 0; cursor: pointer; }
.kf-nav.is-scrolled .kf-burger, .kf-nav.is-open .kf-burger { color: hsl(var(--foreground)); }
.kf-burger span { display: block; width: 22px; height: 2px; background: currentColor; border-radius: 2px;
  transition: transform .3s var(--kf-ease), opacity .2s; }
.kf-burger span + span { margin-top: 5px; }
.kf-burger > div { display: block; }
.kf-nav.is-open .kf-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.kf-nav.is-open .kf-burger span:nth-child(2) { opacity: 0; }
.kf-nav.is-open .kf-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.kf-mobile { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s var(--kf-ease); }
.kf-mobile > div { overflow: hidden; }
.kf-nav.is-open .kf-mobile { grid-template-rows: 1fr; }
.kf-mobile ul { list-style: none; padding: .5rem 0 1.25rem; max-height: calc(100vh - 6rem); overflow-y: auto; }
.kf-mobile a, .kf-mobile summary { display: flex; align-items: center; justify-content: space-between;
  padding: .8rem .25rem; font-weight: 500; color: hsl(var(--foreground)); border-bottom: 1px solid hsl(var(--border));
  cursor: pointer; }
.kf-mobile summary::-webkit-details-marker { display: none; }
.kf-mobile summary { list-style: none; }
.kf-mobile summary svg { transition: transform .25s; width: 18px; height: 18px; }
.kf-mobile details[open] summary svg { transform: rotate(180deg); }
.kf-mobile details ul { padding: 0 0 0 1rem; }
.kf-mobile details a { font-weight: 400; font-size: .95rem; color: hsl(var(--muted-foreground)); }
.kf-mobile a[aria-current="page"] { color: hsl(var(--primary)); font-weight: 600; }
.kf-mobile .kf-cta { width: 100%; margin-top: 1rem; height: 2.75rem; color: #fff; justify-content: center; border-bottom: 0; }

@media (min-width: 1024px) {
  .kf-menu { display: flex; }
  .kf-burger, .kf-mobile { display: none; }
}
@media (min-width: 1280px) { .kf-menu { gap: .5rem; } .kf-link { font-size: 1rem; } }

/* barre de progression de lecture */
.kf-progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 60; transform-origin: 0 50%;
  transform: scaleX(0); background: var(--gradient-copper); pointer-events: none; }

/* ------------------------------------------------- en-tête des pages */
.kf-hero { position: relative; overflow: hidden; display: flex; align-items: flex-end;
  min-height: 62vh; padding: 8rem 0 4.5rem; }
.kf-hero--short { min-height: 0; padding: 8rem 0 3.5rem; }
.kf-hero__bg { position: absolute; inset: 0; z-index: 0; }
.kf-hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.kf-hero__bg::after { content: ""; position: absolute; inset: 0; background: var(--gradient-hero); opacity: .86; }
/* grand écran : voile dense à gauche (texte), photo visible à droite */
@media (min-width: 1024px) {
  .kf-hero__bg::after { opacity: 1;
    background: linear-gradient(90deg, hsl(217 60% 10% / .94) 0%, hsl(215 50% 16% / .86) 38%, hsl(215 50% 18% / .45) 72%, hsl(210 45% 28% / .25) 100%); }
}
.kf-hero__fade { position: absolute; left: 0; right: 0; bottom: 0; height: 6rem; z-index: 1;
  background: linear-gradient(to top, hsl(var(--background)), transparent); }
.kf-hero .container { position: relative; z-index: 2; }
.kf-eyebrow { display: inline-flex; align-items: center; gap: .5rem; padding: .35rem .85rem; border-radius: 999px;
  font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: #fff; background: hsl(0 0% 100% / .1); border: 1px solid hsl(0 0% 100% / .2);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.kf-eyebrow i { width: .5rem; height: .5rem; border-radius: 50%; background: var(--gradient-copper); }

/* fil d'Ariane */
.kf-crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; list-style: none;
  font-size: .85rem; color: hsl(0 0% 100% / .75); margin-bottom: 1.25rem; }
.kf-crumbs a { color: hsl(0 0% 100% / .85); text-decoration: underline; text-decoration-color: transparent;
  text-underline-offset: 3px; transition: text-decoration-color .2s, color .2s; }
.kf-crumbs a:hover { color: #fff; text-decoration-color: currentColor; }
.kf-crumbs li + li::before { content: "›"; margin-right: .35rem; color: hsl(0 0% 100% / .5); }
.kf-crumbs [aria-current] { color: #fff; font-weight: 500; }

/* ------------------------------------------------------- composants */
.kf-card { transition: transform .4s var(--kf-ease), box-shadow .4s var(--kf-ease), border-color .3s; }
.kf-card:hover { transform: translateY(-6px); }
.kf-card .kf-ico { transition: transform .5s var(--kf-ease), box-shadow .3s; }
.kf-card:hover .kf-ico { transform: rotate(-6deg) scale(1.06); box-shadow: var(--shadow-glow); }
.kf-more { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; color: hsl(var(--primary)); }
.kf-more svg { width: 16px; height: 16px; transition: transform .3s var(--kf-ease); }
a:hover > .kf-more svg, .kf-more:hover svg, .kf-card:hover .kf-more svg { transform: translateX(4px); }
.kf-stretched::after { content: ""; position: absolute; inset: 0; z-index: 1; }

.kf-img { overflow: hidden; }
.kf-img img { transition: transform 1.2s var(--kf-ease); }
.kf-img:hover img, .kf-card:hover .kf-img img { transform: scale(1.05); }

.kf-step__n { font-family: Montserrat, sans-serif; font-weight: 800; font-size: 2.75rem; line-height: 1;
  background: var(--gradient-copper); -webkit-background-clip: text; background-clip: text; color: transparent; }
.kf-steps { counter-reset: step; }

.kf-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.kf-table th, .kf-table td { text-align: left; padding: .9rem 1rem; border-bottom: 1px solid hsl(var(--border)); vertical-align: top; }
.kf-table th { font-family: Montserrat, sans-serif; font-weight: 700; color: hsl(var(--foreground));
  background: hsl(var(--muted) / .6); font-size: .85rem; text-transform: uppercase; letter-spacing: .04em; }
.kf-table tr:last-child td { border-bottom: 0; }
.kf-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* FAQ */
.kf-faq details { border: 1px solid hsl(var(--border)); border-radius: 1rem; background: hsl(var(--card));
  transition: box-shadow .3s, border-color .3s; }
.kf-faq details + details { margin-top: .75rem; }
.kf-faq details[open] { box-shadow: var(--shadow-elegant); border-color: hsl(var(--primary) / .35); }
.kf-faq summary { display: flex; justify-content: space-between; align-items: center; gap: 1rem; cursor: pointer;
  padding: 1.15rem 1.35rem; font-family: Montserrat, sans-serif; font-weight: 700; color: hsl(var(--foreground));
  list-style: none; }
.kf-faq summary::-webkit-details-marker { display: none; }
.kf-faq summary i { flex: 0 0 1.75rem; height: 1.75rem; border-radius: 50%; display: grid; place-items: center;
  background: hsl(var(--muted)); transition: transform .3s var(--kf-ease), background .3s; font-style: normal; }
.kf-faq summary i::before { content: "+"; font-weight: 600; color: hsl(var(--primary)); }
.kf-faq details[open] summary i { transform: rotate(45deg); background: hsl(27 72% 50% / .15); }
.kf-faq details > div { padding: 0 1.35rem 1.25rem; color: hsl(var(--muted-foreground)); line-height: 1.7; }

/* bande d'appel à l'action */
.kf-band { position: relative; overflow: hidden; border-radius: 1.5rem; background: var(--gradient-hero);
  color: #fff; padding: 3rem 1.5rem; }
.kf-band::before { content: ""; position: absolute; width: 420px; height: 420px; right: -120px; top: -160px;
  border-radius: 50%; background: radial-gradient(closest-side, hsl(27 72% 50% / .45), transparent); }
.kf-band > * { position: relative; }
@media (min-width: 768px) { .kf-band { padding: 3.5rem 3.5rem; } }
.kf-btn-ghost { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; height: 2.75rem;
  padding: 0 1.4rem; border-radius: .375rem; font-weight: 500; color: #fff; border: 1px solid hsl(0 0% 100% / .35);
  background: hsl(0 0% 100% / .08); transition: background .2s, transform .25s var(--kf-ease); }
.kf-btn-ghost:hover { background: hsl(0 0% 100% / .16); transform: translateY(-1px); }
.kf-btn-ghost svg, .kf-cta svg { width: 18px; height: 18px; }
.kf-cta--lg { height: 3.25rem; padding: 0 1.75rem; font-size: 1.05rem; }
.kf-btn-ghost.kf-cta--lg { height: 3.25rem; padding: 0 1.75rem; font-size: 1.05rem; }
.kf-btn-metal { display: inline-flex; align-items: center; gap: .5rem; height: 2.5rem; padding: 0 1rem; border-radius: .375rem;
  font-size: .9rem; font-weight: 500; color: #fff; background: var(--gradient-metal); transition: opacity .2s, transform .25s var(--kf-ease); }
.kf-btn-metal:hover { opacity: .92; transform: translateY(-1px); }

/* chips / filtres */
.kf-chip { display: inline-flex; align-items: center; gap: .4rem; padding: .5rem 1rem; border-radius: 999px;
  border: 1px solid hsl(var(--border)); background: hsl(var(--card)); font-size: .9rem; font-weight: 500;
  color: hsl(var(--foreground)); transition: all .25s var(--kf-ease); }
.kf-chip:hover { border-color: hsl(var(--primary) / .5); transform: translateY(-1px); }
.kf-chip[aria-current="page"] { background: var(--gradient-metal); color: #fff; border-color: transparent; }
.kf-tag { display: inline-block; padding: .25rem .7rem; border-radius: 999px; font-size: .75rem; font-weight: 600;
  letter-spacing: .03em; color: hsl(27 72% 38%); background: hsl(27 72% 50% / .12); }

/* article */
.kf-prose { color: hsl(var(--foreground)); font-size: 1.075rem; line-height: 1.8; }
.kf-prose > * + * { margin-top: 1.15em; }
.kf-prose h2 { font-family: Montserrat, sans-serif; font-weight: 700; font-size: 1.6rem; line-height: 1.25;
  margin-top: 2.2em; color: hsl(var(--primary)); scroll-margin-top: 110px; }
.kf-prose h3 { font-family: Montserrat, sans-serif; font-weight: 700; font-size: 1.2rem; margin-top: 1.8em; }
.kf-prose p, .kf-prose li { color: hsl(var(--foreground) / .88); }
.kf-prose ul, .kf-prose ol { padding-left: 1.4em; }
.kf-prose ul { list-style: disc; } .kf-prose ol { list-style: decimal; }
.kf-prose li + li { margin-top: .45em; }
.kf-prose li::marker { color: var(--kf-copper); }
.kf-prose a { color: hsl(var(--primary)); text-decoration: underline; text-underline-offset: 3px; }
.kf-prose strong { color: hsl(var(--foreground)); }
.kf-prose blockquote { border-left: 4px solid var(--kf-copper); background: hsl(var(--muted) / .6);
  padding: 1rem 1.25rem; border-radius: 0 .75rem .75rem 0; font-style: italic; }
.kf-prose .kf-note { border: 1px solid hsl(var(--border)); background: hsl(var(--card)); border-radius: 1rem;
  padding: 1.1rem 1.25rem; font-size: .95rem; }
.kf-toc { list-style: none; padding: 0; counter-reset: toc; }
.kf-toc li { counter-increment: toc; }
.kf-toc a { display: flex; gap: .6rem; padding: .45rem 0; font-size: .92rem; color: hsl(var(--muted-foreground));
  transition: color .2s; }
.kf-toc a::before { content: counter(toc, decimal-leading-zero); font-weight: 700; color: var(--kf-copper); }
.kf-toc a:hover, .kf-toc a.is-active { color: hsl(var(--primary)); }

/* carte (chargée au clic, aucun appel à Google avant consentement) */
.kf-map { position: relative; border-radius: 1rem; overflow: hidden; background: var(--gradient-metal); min-height: 320px; }
.kf-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.kf-map__ph { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 1.5rem; color: #fff; }
.kf-map__ph::before { content: ""; position: absolute; inset: 0; opacity: .14;
  background-image: linear-gradient(hsl(0 0% 100% / .5) 1px, transparent 1px), linear-gradient(90deg, hsl(0 0% 100% / .5) 1px, transparent 1px);
  background-size: 32px 32px; }
.kf-map__ph > * { position: relative; }
.kf-pin { width: 3.5rem; height: 3.5rem; margin: 0 auto 1rem; border-radius: 50% 50% 50% 0; transform: rotate(-45deg);
  background: var(--gradient-copper); display: grid; place-items: center; box-shadow: var(--shadow-glow); animation: kf-bob 2.6s ease-in-out infinite; }
.kf-pin::after { content: ""; width: 1.1rem; height: 1.1rem; border-radius: 50%; background: #fff; }

.kf-hours { width: 100%; font-size: .95rem; }
.kf-hours td { padding: .4rem 0; border-bottom: 1px dashed hsl(var(--border)); }
.kf-hours td:last-child { text-align: right; font-weight: 600; color: hsl(var(--foreground)); }
.kf-todo { background: hsl(45 80% 57% / .22); border-radius: .25rem; padding: 0 .25rem; }

/* toast */
.kf-toasts { position: fixed; top: 0; right: 0; z-index: 100; display: flex; flex-direction: column; gap: .5rem;
  padding: 1rem; width: 100%; max-width: 420px; pointer-events: none; }
.kf-toast { pointer-events: auto; background: hsl(var(--background)); color: hsl(var(--foreground));
  border: 1px solid hsl(var(--border)); border-radius: .5rem; padding: 1.25rem 1.5rem; box-shadow: var(--shadow-elegant);
  animation: kf-toast-in .45s var(--kf-ease); }
.kf-toast strong { display: block; font-size: .9rem; }
.kf-toast p { font-size: .875rem; opacity: .9; margin-top: .25rem; }

/* ------------------------------------------- pied de page bleu nuit */
.kf-footer { position: relative; background: var(--kf-navy); color: hsl(0 0% 100% / .74); overflow: hidden; }
.kf-footer::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--gradient-copper); }
.kf-footer::after { content: ""; position: absolute; width: 520px; height: 520px; left: -200px; bottom: -300px; border-radius: 50%;
  background: radial-gradient(closest-side, hsl(210 60% 45% / .22), transparent); pointer-events: none; }
.kf-footer > * { position: relative; z-index: 1; }
.kf-footer h2 { font-family: Montserrat, sans-serif; font-weight: 700; font-size: 1rem; color: #fff; margin-bottom: 1rem; }
.kf-footer a { color: hsl(0 0% 100% / .74); transition: color .2s; }
.kf-footer a:hover { color: #fff; }
.kf-footer ul { list-style: none; }
.kf-footer li + li { margin-top: .55rem; }
.kf-footer__links a { position: relative; display: inline-block; }
.kf-footer__links a::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 100%; height: 1px;
  background: var(--kf-copper); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--kf-ease); }
.kf-footer__links a:hover::after { transform: scaleX(1); }
.kf-footer__grid { display: grid; gap: 2.5rem; }
@media (min-width: 768px) { .kf-footer__grid { grid-template-columns: 1.3fr 1fr 1fr; } }
@media (min-width: 1024px) { .kf-footer__grid { grid-template-columns: 1.5fr 1fr 1fr 1fr 1.3fr; } }
.kf-footer__logo { height: 4.5rem; width: auto; margin-bottom: 1rem; }
.kf-social { display: flex; gap: .75rem; margin-top: 1.25rem; }
.kf-social a { width: 2.5rem; height: 2.5rem; border-radius: .6rem; display: grid; place-items: center; color: #fff;
  background: hsl(0 0% 100% / .08); border: 1px solid hsl(0 0% 100% / .14);
  transition: transform .3s var(--kf-ease), background .3s, border-color .3s; }
.kf-social a:hover { transform: translateY(-3px); background: var(--gradient-copper); border-color: transparent; }
.kf-social svg { width: 18px; height: 18px; }
@media (max-width: 767px) { .kf-footer__bottom { padding-bottom: 4.5rem; } }
.kf-footer__bottom { border-top: 1px solid hsl(0 0% 100% / .12); display: flex; flex-wrap: wrap; gap: .75rem 1.5rem;
  justify-content: space-between; align-items: center; font-size: .85rem; }
.kf-footer__bottom ul { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; }
.kf-footer__bottom li + li { margin-top: 0; }
.kf-footer .kf-badges { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.25rem; }
.kf-footer .kf-badges span { font-size: .72rem; font-weight: 600; letter-spacing: .04em; padding: .3rem .6rem; border-radius: 999px;
  border: 1px solid hsl(0 0% 100% / .18); color: hsl(0 0% 100% / .85); }

/* ----------------------------------------------- bouton WhatsApp 3D */
.kf-wa {
  position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 55; width: 64px; height: 64px; border-radius: 50%;
  display: grid; place-items: center; color: #fff;
  background: radial-gradient(circle at 32% 26%, #8ef7b4 0%, #3fe07e 22%, var(--kf-wa) 48%, #16a34f 78%, #0d7a39 100%);
  box-shadow:
    inset 0 -6px 12px rgba(0, 0, 0, .28),
    inset 0 5px 10px rgba(255, 255, 255, .45),
    0 6px 0 #0b6b31,
    0 14px 26px rgba(10, 60, 30, .45);
  transform: translateZ(0);
  animation: kf-wa-float 3.2s ease-in-out infinite;
  transition: box-shadow .2s, filter .2s;
  -webkit-tap-highlight-color: transparent;
}
.kf-wa::before { /* reflet */
  content: ""; position: absolute; top: 7px; left: 13px; width: 30px; height: 16px; border-radius: 50%;
  background: linear-gradient(to bottom, rgba(255, 255, 255, .75), rgba(255, 255, 255, 0));
  transform: rotate(-18deg); pointer-events: none;
}
.kf-wa::after { /* onde */
  content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--kf-wa);
  animation: kf-wa-ring 2.4s cubic-bezier(.2, .6, .35, 1) infinite; pointer-events: none;
}
.kf-wa svg { position: relative; width: 32px; height: 32px; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .3));
  animation: kf-wa-wiggle 6s ease-in-out infinite; }
.kf-wa:hover { filter: brightness(1.06) saturate(1.1); animation-play-state: paused; transform: translateY(-4px) scale(1.06); }
.kf-wa:active { transform: translateY(4px) scale(.98);
  box-shadow: inset 0 -3px 8px rgba(0, 0, 0, .3), inset 0 4px 8px rgba(255, 255, 255, .4), 0 2px 0 #0b6b31, 0 6px 12px rgba(10, 60, 30, .4); }
.kf-wa:focus-visible { outline: 3px solid #fff; outline-offset: 4px; box-shadow: 0 0 0 6px var(--kf-navy); }
@media (min-width: 768px) { .kf-wa { right: 1.75rem; bottom: 1.75rem; width: 70px; height: 70px; } .kf-wa svg { width: 34px; height: 34px; } }

/* formulaire de devis : deux envois, état, champ piège */
.kf-envoi__wa { background: #0f7a3d; color: #fff; transition: filter .2s; }
.kf-envoi__wa:hover { filter: brightness(1.1); }
.kf-envoi button:focus-visible { outline: 3px solid var(--kf-navy); outline-offset: 3px; }
.kf-envoi button:disabled { opacity: .6; cursor: progress; }
.kf-etat { padding: .75rem 1rem; border-radius: .5rem; border: 1px solid #BDCAD3; background: #F2F5F7; color: #1B2C3E; }
.kf-etat[hidden] { display: none; }
.kf-etat--ok { background: #e6f6ec; border-color: #8fd0a8; color: #0b5a2b; }
.kf-etat--err { background: #fdecea; border-color: #eaa9a2; color: #8c1d13; }
.kf-piege { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* popups (demande de devis, choix WhatsApp) */
html.kf-fige { overflow: hidden; }
.kf-popup { padding: 0; border: 0; margin: auto; width: min(720px, calc(100vw - 2rem)); max-width: none; max-height: 92vh; max-height: min(92dvh, 880px);
  border-radius: 1rem; overflow: hidden; background: hsl(var(--card)); color: hsl(var(--foreground)); box-shadow: 0 30px 80px -20px rgba(8, 16, 26, .6); }
.kf-popup[open] { display: flex; animation: kf-popup-in .35s var(--kf-ease); }
.kf-popup::backdrop { background: rgba(13, 22, 32, .68); backdrop-filter: blur(4px); animation: kf-voile-in .25s ease; }
.kf-popup--wa { width: min(480px, calc(100vw - 2rem)); }
.kf-popup__boite { display: flex; flex-direction: column; flex: 1; min-width: 0; min-height: 0; }
.kf-popup__tete { position: relative; display: flex; align-items: center; gap: 1rem; padding: 1.1rem 4rem 1.1rem 1.5rem; color: #fff;
  background: linear-gradient(120deg, var(--kf-navy-2), var(--kf-navy) 60%, #24405c); border-bottom: 4px solid var(--kf-copper); flex-shrink: 0; }
.kf-popup__tete img { width: 64px; height: auto; flex-shrink: 0; }
.kf-popup__tete h2 { font-family: Montserrat, sans-serif; font-weight: 700; font-size: 1.3rem; line-height: 1.25; outline: none; }
.kf-popup__tete p { font-size: .875rem; color: hsl(0 0% 100% / .8); margin-top: .2rem; }
.kf-popup__fermer { position: absolute; top: .75rem; right: .75rem; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  color: #fff; background: hsl(0 0% 100% / .1); transition: background .2s; }
.kf-popup__fermer:hover { background: hsl(0 0% 100% / .22); }
.kf-popup__fermer:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.kf-popup__corps { position: relative; padding: 1.5rem; overflow-y: auto; overscroll-behavior: contain; min-height: 0; }
.kf-popup textarea { min-height: 76px; }
.kf-popup--wa .kf-popup__corps { display: grid; gap: .85rem; }
.kf-option { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.1rem; border: 1px solid hsl(var(--border)); border-radius: .85rem;
  background: hsl(var(--background)); transition: border-color .2s, transform .25s var(--kf-ease), box-shadow .25s; }
.kf-option:hover { border-color: var(--kf-copper); transform: translateY(-2px); box-shadow: 0 12px 28px -14px rgba(20, 34, 47, .45); }
.kf-option:focus-visible { outline: 3px solid var(--kf-copper); outline-offset: 2px; }
.kf-option__ico { width: 48px; height: 48px; border-radius: .7rem; display: grid; place-items: center; flex-shrink: 0; color: #fff; background: var(--gradient-metal); }
.kf-option + .kf-option .kf-option__ico { background: var(--gradient-copper); }
.kf-option__txt { flex: 1; min-width: 0; }
.kf-option__txt strong { display: block; font-family: Montserrat, sans-serif; font-weight: 700; }
.kf-option__txt span { display: block; font-size: .875rem; color: hsl(var(--muted-foreground)); margin-top: .1rem; }
.kf-option__fl { color: var(--kf-copper); flex-shrink: 0; transition: transform .25s var(--kf-ease); }
.kf-option:hover .kf-option__fl { transform: translateX(4px); }
.kf-popup__pied { display: flex; align-items: center; justify-content: center; gap: .5rem; padding: 0 1.5rem 1.35rem; font-size: .8125rem;
  color: hsl(var(--muted-foreground)); text-align: center; }
.kf-popup__pied { flex-wrap: wrap; }
.kf-popup__pied b { white-space: nowrap; font-weight: 600; color: hsl(var(--foreground)); }
.kf-popup__pied span { width: 18px; height: 18px; display: inline-flex; color: #0f7a3d; flex-shrink: 0; }
@media (max-width: 639px) {
  .kf-popup, .kf-popup--wa { width: 100vw; margin: auto 0 0; border-radius: 1.1rem 1.1rem 0 0; max-height: 94vh; max-height: 94dvh; }
  .kf-popup__tete { padding: .9rem 3.75rem .9rem 1.1rem; gap: .75rem; }
  .kf-popup__tete img { width: 48px; }
  .kf-popup__tete h2 { font-size: 1.1rem; }
  .kf-popup__corps { padding: 1.1rem 1.1rem calc(1.1rem + env(safe-area-inset-bottom, 0px)); }
  .kf-popup__pied { padding-bottom: calc(1.1rem + env(safe-area-inset-bottom, 0px)); }
}

/* ---------------------------------------------------- 3. animations */
@keyframes kf-popup-in { from { opacity: 0; transform: translateY(24px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes kf-voile-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes kf-wa-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@keyframes kf-wa-ring { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(1.75); opacity: 0; } }
@keyframes kf-wa-wiggle { 0%, 84%, 100% { transform: rotate(0); } 87% { transform: rotate(-14deg); }
  90% { transform: rotate(12deg); } 93% { transform: rotate(-8deg); } 96% { transform: rotate(5deg); } }
@keyframes kf-bob { 0%, 100% { transform: rotate(-45deg) translate(0, 0); } 50% { transform: rotate(-45deg) translate(4px, -4px); } }
@keyframes kf-kenburns { from { transform: scale(1.12); } to { transform: scale(1); } }
@keyframes kf-rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes kf-toast-in { from { opacity: 0; transform: translateY(-12px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes kf-shine { from { background-position: 200% 0; } to { background-position: -200% 0; } }
@keyframes kf-scroll { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(12px); opacity: 0; } 100% { opacity: 0; } }

.kf-hero__bg img, #hero > div:first-child img { animation: kf-kenburns 14s var(--kf-ease) both; }
.kf-rise > * { animation: kf-rise .9s var(--kf-ease) both; }
.kf-rise > *:nth-child(2) { animation-delay: .1s; }
.kf-rise > *:nth-child(3) { animation-delay: .2s; }
.kf-rise > *:nth-child(4) { animation-delay: .3s; }
.kf-rise > *:nth-child(5) { animation-delay: .4s; }
.kf-rise > *:nth-child(6) { animation-delay: .5s; }

/* apparition au défilement : l'état caché n'existe que si le JavaScript tourne */
.js [data-reveal] { opacity: 0; transform: translateY(32px);
  transition: opacity .9s var(--kf-ease), transform .9s var(--kf-ease); transition-delay: var(--d, 0s); }
.js [data-reveal="left"] { transform: translateX(-40px); }
.js [data-reveal="right"] { transform: translateX(40px); }
.js [data-reveal="zoom"] { transform: scale(.94); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

.kf-shine { background: linear-gradient(110deg, hsl(27 72% 50%) 20%, hsl(33 90% 70%) 40%, hsl(27 72% 50%) 60%);
  background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: kf-shine 6s linear infinite; }
.kf-scrollhint { position: absolute; left: 50%; bottom: 2.25rem; z-index: 20; width: 26px; height: 42px; margin-left: -13px;
  border: 2px solid hsl(0 0% 100% / .6); border-radius: 14px; }
.kf-scrollhint::after { content: ""; position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px;
  border-radius: 2px; background: #fff; animation: kf-scroll 1.8s ease-in-out infinite; }
.kf-marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.kf-marquee > div { display: flex; gap: 1rem; width: max-content; animation: kf-marquee 40s linear infinite; }
.kf-marquee:hover > div { animation-play-state: paused; }
@keyframes kf-marquee { to { transform: translateX(-50%); } }

/* transition douce entre les pages (navigateurs compatibles) */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .35s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .kf-marquee > div { animation: none; flex-wrap: wrap; width: auto; }
}

@media print {
  .kf-nav, .kf-wa, .kf-progress, .kf-footer::after { display: none !important; }
  .kf-hero { min-height: 0; padding: 1rem 0; color: #000; }
}
