@charset "UTF-8";
/* Habillage Devis uniquement. Les règles fonctionnelles du questionnaire restent
   dans devis.css : ouverture des details, étapes actives et modale. */
html body#top.devis-premium {
  --devis-gold: #E8CC80;
  --devis-gold-strong: #b49c5c;
  --devis-text: #2d2c29;
  --devis-muted: #625b4e;
  --devis-border: rgba(180, 156, 92, .38);
  --devis-section-base: #F5EDDF;
  --devis-radius: 20px;
  --devis-shadow: 0 12px 30px rgba(70, 53, 30, .09);
  display: block !important;
  position: static !important;
  margin: 0 !important;
  padding: 0 !important;
  background: var(--kmg-cream) !important;
  color: var(--kmg-ink);
  font-family: var(--kmg-sans);
}
html body#top.devis-premium::before,
html body#top.devis-premium::after { content: none !important; }
html body#top.devis-premium > header { color: var(--kmg-gold); }
html body#top.devis-premium #kmg-devis {
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  background: var(--kmg-cream) !important;
  color: var(--kmg-ink);
}
html body#top.devis-premium :is(#kmg-devis, #devis-modal) *,
html body#top.devis-premium :is(#kmg-devis, #devis-modal) *::before,
html body#top.devis-premium :is(#kmg-devis, #devis-modal) *::after { box-sizing: border-box; }
html body#top.devis-premium #kmg-devis .kmg-container {
  width: min(1100px, calc(100% - 2 * var(--kmg-gutter))) !important;
  margin: 0 auto !important;
  padding: 0 !important;
  overflow: visible !important;
}
html body#top.devis-premium #kmg-devis > section {
  display: block !important;
  min-height: 0 !important;
  height: auto !important;
  box-shadow: none !important;
  text-align: left !important;
}
html body#top.devis-premium #kmg-devis > section::before,
html body#top.devis-premium #kmg-devis > section::after { content: none !important; }

/* Le logo animé du header remplace visuellement son ancien doublon du hero. */
html body#top.devis-premium #kmg-devis .kmg-logo-hero { display: none !important; }
html body#top.devis-premium #kmg-devis .kmg-hero.full {
  position: relative !important;
  min-height: 740px !important;
  margin: 0 !important;
  padding: 0 !important;
  background: var(--kmg-anth-800) !important;
  overflow: hidden !important;
}
html body#top.devis-premium #kmg-devis .hero-slideshow {
  position: absolute !important;
  inset: 0 !important;
  z-index: 0;
}
html body#top.devis-premium #kmg-devis .hero-slide {
  background-position: 65% center;
  background-size: cover;
}
html body#top.devis-premium #kmg-devis .kmg-hero__overlay {
  position: absolute !important;
  inset: 0 !important;
  z-index: 1 !important;
  background: linear-gradient(90deg, rgba(27, 26, 24, .93), rgba(27, 26, 24, .72) 42%, rgba(27, 26, 24, .12) 85%) !important;
}
html body#top.devis-premium #kmg-devis .kmg-hero__inner {
  position: relative !important;
  z-index: 2 !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: flex-start !important;
  width: 100% !important;
  max-width: 850px !important;
  min-height: 740px !important;
  gap: 24px !important;
  padding: 245px 30px 160px clamp(52px, 5.4vw, 96px) !important;
  text-align: left !important;
}
html body#top.devis-premium #kmg-devis .kmg-headline {
  margin: 0 !important;
  font: 500 clamp(2.6rem, 4.1vw, 4rem)/1.12 var(--kmg-serif) !important;
  letter-spacing: -.025em !important;
  text-transform: none !important;
}
html body#top.devis-premium #kmg-devis .kmg-headline__text {
  color: var(--kmg-gold) !important;
  -webkit-text-fill-color: var(--kmg-gold) !important;
  background: none !important;
  text-shadow: 0 3px 24px rgba(20, 19, 17, .35) !important;
}
html body#top.devis-premium #kmg-devis .kmg-subline {
  margin: 0 !important;
  padding: 0 !important;
  max-width: 680px !important;
  color: var(--kmg-light) !important;
  font: 400 1rem/1.85 var(--kmg-sans) !important;
  text-shadow: 0 1px 6px rgba(27, 26, 24, .45) !important;
}
html body#top.devis-premium .kmg-phone-hero {
  position: absolute !important;
  top: 132px !important;
  right: clamp(24px, 5.4vw, 96px) !important;
  left: auto !important;
  bottom: auto !important;
  width: auto !important;
  max-width: calc(100% - 32px) !important;
  margin: 0 !important;
  padding: 6px 15px !important;
  border: 1px solid var(--kmg-gold-line) !important;
  border-radius: 999px !important;
  background: rgba(45, 44, 41, .7) !important;
  color: var(--kmg-gold) !important;
  font: 500 .8rem/1.3 var(--kmg-sans) !important;
  transform: none !important;
  z-index: 1201 !important;
}
html body#top.devis-premium .kmg-ticker__link { width: 210px !important; max-width: 100%; }
html body#top.devis-premium .kmg-ticker__unit { font: inherit !important; }
html body#top.devis-premium .kmg-ticker__svg { width: 17px !important; height: 17px !important; }

/* Même tracé et même filet doré que les pages validées. */
html body#top.devis-premium .devis-wave {
  position: relative;
  width: 100%;
  height: clamp(60px, 7.6vw, 110px);
  margin: 0;
  pointer-events: none;
}
html body#top.devis-premium .devis-wave--hero { position: absolute; bottom: -1px; left: 0; z-index: 3; }
html body#top.devis-premium .devis-wave svg { display: block; width: 100%; height: 100%; }
html body#top.devis-premium .devis-wave__fill { fill: var(--kmg-cream); }
html body#top.devis-premium .devis-wave__line { fill: none; stroke: url(#devis-wave-gold); stroke-width: 3px; vector-effect: non-scaling-stroke; filter: drop-shadow(0 0 4px rgba(232, 204, 128, .3)); }
html body#top.devis-premium .devis-wave--footer { background: var(--kmg-cream); margin-top: -1px; margin-bottom: -1px; }
html body#top.devis-premium .devis-wave--footer .devis-wave__fill { fill: #1b1a18; }

/* Panels : couleurs soutenues, biseau et mouvement de relief d'origine. */
html body#top.devis-premium #projet.devis-section {
  position: relative !important;
  background: var(--kmg-cream) !important;
  padding: 56px 0 64px !important;
  margin: 0 !important;
}
html body#top.devis-premium #projet .kmg-section-title {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 3vw, 32px);
  margin: 0 0 38px !important;
  color: var(--kmg-ink) !important;
  -webkit-text-fill-color: var(--kmg-ink) !important;
  background: none !important;
  font: 500 clamp(1.7rem, 3vw, 2.6rem)/1.2 var(--kmg-serif) !important;
  letter-spacing: .01em !important;
  text-shadow: none !important;
}
html body#top.devis-premium #projet .kmg-section-title::before,
html body#top.devis-premium #projet .kmg-section-title::after { content: ""; width: clamp(25px, 6vw, 72px); height: 1px; background: #b49c5c; }
html body#top.devis-premium #projet .devis-accordion { display: grid; gap: 18px; counter-reset: devis-panel; }
html body#top.devis-premium #projet .devis-panel {
  --panel-tone: #cfa34f;
  --panel-light: #edcf8c;
  --panel-shade: #9c7135;
  counter-increment: devis-panel;
  position: relative;
  min-width: 0;
  border: 1px solid rgba(107, 76, 33, .6);
  border-bottom: 5px solid var(--panel-shade);
  border-radius: 56px;
  background: linear-gradient(100deg, var(--panel-light), var(--panel-tone) 78%) !important;
  box-shadow: 0 5px 0 var(--panel-shade), 0 16px 22px rgba(65, 42, 20, .28), inset 0 1px 0 rgba(255, 255, 255, .28), inset 0 -10px 18px rgba(0, 0, 0, .18) !important;
  transform: none;
  filter: none;
  animation: kmg-panel-piano 10s ease-in-out infinite;
  overflow: hidden;
  transition: border-color .25s ease, box-shadow .25s ease, border-radius .25s ease;
}
html body#top.devis-premium #projet .devis-panel:nth-child(2) { --panel-tone: #a98a6b; --panel-light: #d1b28b; --panel-shade: #755a43; animation-delay: 2s; }
html body#top.devis-premium #projet .devis-panel:nth-child(3) { --panel-tone: #c18363; --panel-light: #dfa782; --panel-shade: #8d4b32; animation-delay: 4s; }
html body#top.devis-premium #projet .devis-panel:nth-child(4) { --panel-tone: #bea45f; --panel-light: #e3c98c; --panel-shade: #89703a; animation-delay: 6s; }
html body#top.devis-premium #projet .devis-panel:nth-child(5) { --panel-tone: #aa785d; --panel-light: #d0a283; --panel-shade: #774b35; animation-delay: 8s; }
html body#top.devis-premium #projet .devis-panel::before {
  /* Éclairage diffus inspiré de l'origine, légèrement renforcé. */
  content: "";
  inset: 0;
  width: auto; height: auto;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, .21) 0%, rgba(255, 255, 255, .075) 40%, rgba(0, 0, 0, .14) 100%);
  transform: none;
  animation: none;
  opacity: 1;
}
html body#top.devis-premium #projet .devis-panel summary {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 22px;
  min-height: 100px;
  padding: 22px 30px;
  background: none;
  color: #211b15;
  text-align: left;
  text-transform: none;
  letter-spacing: 0;
  cursor: pointer;
  touch-action: manipulation;
}
html body#top.devis-premium #projet .devis-panel summary::before {
  content: counter(devis-panel, decimal-leading-zero);
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  border: 1px solid rgba(107, 76, 33, .5);
  border-radius: 50%;
  background: linear-gradient(145deg, rgba(255, 237, 179, .7), rgba(232, 204, 128, .22));
  box-shadow: inset 0 1px 0 rgba(255, 246, 217, .75), 0 2px 4px rgba(75, 44, 19, .12);
  font: 500 1.25rem/1 var(--kmg-serif);
  color: #4b3521;
}
html body#top.devis-premium #projet .devis-acc-title { width: auto; flex: 1; text-align: left; font: 500 clamp(1.25rem, 2vw, 1.7rem)/1.25 var(--kmg-serif); }
html body#top.devis-premium #projet .devis-panel summary::after { content: ""; width: 9px; height: 9px; flex: 0 0 9px; margin: 0 4px 5px 0; border-right: 1.5px solid #4b3521; border-bottom: 1.5px solid #4b3521; transform: rotate(45deg); transition: transform .25s ease; }
html body#top.devis-premium #projet .devis-panel[open] { border-color: var(--panel-shade); border-radius: 32px; animation: none; box-shadow: 0 5px 0 var(--panel-shade), 0 20px 34px rgba(65, 42, 20, .25), inset 0 1px 0 rgba(255, 255, 255, .28) !important; }
html body#top.devis-premium #projet .devis-panel[open] summary { border-bottom: 1px solid rgba(180, 156, 92, .3); }
html body#top.devis-premium #projet .devis-panel[open] summary::after { transform: translateY(5px) rotate(225deg); }
html body#top.devis-premium #projet .devis-panel-body { padding: clamp(16px, 3vw, 32px); background: #fcf8ef; }
html body#top.devis-premium #projet .devis-panel[open] .devis-panel-body { animation: devis-premium-reveal .3s ease both; }
@keyframes devis-premium-reveal { from { opacity: .45; transform: translateY(5px); } to { opacity: 1; transform: none; } }

/* Aucun display sur les étapes : le moteur existant garde la main. */
html body#top.devis-premium #projet .devis-form { gap: 24px; min-width: 0; }
html body#top.devis-premium #projet .devis-step-title { margin: 0 0 22px; color: #74603b; text-align: left; font: 500 clamp(1.15rem, 2vw, 1.45rem)/1.4 var(--kmg-serif); letter-spacing: 0; }
html body#top.devis-premium #projet .devis-step-body { padding: 0; background: transparent; border: 0; border-radius: 0; }
html body#top.devis-premium #projet .devis-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
html body#top.devis-premium #projet .devis-grid > div { min-width: 0; padding: 20px; border: 1px solid rgba(180, 156, 92, .25); border-radius: 14px; background: rgba(235, 223, 200, .22); }
html body#top.devis-premium #projet .devis-label { display: block !important; margin: 0 0 12px; padding: 0; color: var(--kmg-ink); font: 600 .86rem/1.6 var(--kmg-sans); text-shadow: none; }
html body#top.devis-premium #projet .devis-options { grid-template-columns: 1fr; gap: 8px; }
html body#top.devis-premium #projet label.devis-option { display: flex !important; align-items: center; gap: 10px; min-height: 44px; padding: 10px 12px; border: 1px solid rgba(180, 156, 92, .25); border-radius: 9px; background: rgba(255, 255, 255, .55); color: var(--kmg-ink); font: 400 .85rem/1.5 var(--kmg-sans); cursor: pointer; }
html body#top.devis-premium #projet label.devis-option:has(input:checked) { border-color: #b49c5c; background: rgba(232, 204, 128, .28); box-shadow: inset 3px 0 0 #b49c5c; }
html body#top.devis-premium #projet .devis-option input { flex: 0 0 18px; width: 18px; height: 18px; margin: 0; accent-color: #E8CC80; }
html body#top.devis-premium #projet :is(.devis-input, .devis-select, .devis-textarea) {
  display: block;
  width: 100% !important;
  max-width: 100%;
  height: auto !important;
  min-height: 48px;
  margin: 0 !important;
  padding: 12px 14px !important;
  box-sizing: border-box !important;
  border: 1px solid rgba(125, 104, 67, .4) !important;
  border-radius: 9px !important;
  background: #fffdf8 !important;
  color: var(--kmg-ink) !important;
  box-shadow: inset 0 1px 2px rgba(70, 53, 30, .03) !important;
  font: 400 .9rem/1.5 var(--kmg-sans) !important;
  text-shadow: none !important;
}
html body#top.devis-premium #projet .devis-select { appearance: auto; }
html body#top.devis-premium #projet .devis-textarea { min-height: 130px; resize: vertical; }
html body#top.devis-premium #projet :is(.devis-input, .devis-textarea)::placeholder { color: #756e60; opacity: 1; }
html body#top.devis-premium #projet :is(.devis-input, .devis-select, .devis-textarea):focus { outline: 2px solid #b49c5c; outline-offset: 2px; border-color: #b49c5c !important; }
html body#top.devis-premium #projet :is(.devis-input, .devis-select, .devis-textarea):user-invalid { border-color: #865137 !important; outline-color: #865137; }
html body#top.devis-premium #projet .devis-file { padding: 9px !important; font-size: .8rem !important; overflow: hidden; }
html body#top.devis-premium #projet .devis-file::file-selector-button { padding: 9px 12px; margin-right: 10px; border: 1px solid #b49c5c; background: rgba(232, 204, 128, .28); color: var(--kmg-ink); font: 500 .78rem/1.2 var(--kmg-sans); }
html body#top.devis-premium #projet .devis-help { margin: 10px 0 0; color: var(--devis-muted); font: 400 .78rem/1.6 var(--kmg-sans); }
html body#top.devis-premium #projet .devis-required { color: #865137; }
html body#top.devis-premium #projet :is(.devis-label, .devis-help, .devis-option) { font-family: var(--kmg-sans) !important; }
html body#top.devis-premium #projet .devis-actions { padding: 10px 0 0; margin: 0; }

/* Boutons : reflet commun de 3,8 secondes, sans toucher aux états JS. */
html body#top.devis-premium :is(#kmg-devis, #devis-modal) .kmg-btn {
  position: relative !important;
  inset: auto !important;
  align-items: center;
  justify-content: center;
  width: auto !important;
  max-width: 100%;
  height: auto !important;
  min-height: 46px;
  margin: 0 !important;
  padding: 14px 28px !important;
  border: 1px solid rgba(180, 156, 92, .5) !important;
  border-radius: 999px !important;
  background: var(--kmg-gold-fill) !important;
  color: var(--kmg-ink) !important;
  -webkit-text-fill-color: var(--kmg-ink) !important;
  -webkit-background-clip: border-box !important;
  background-clip: border-box !important;
  box-shadow: 0 8px 22px rgba(156, 123, 51, .22), inset 0 1px 0 rgba(255, 255, 255, .6) !important;
  font: 600 .85rem/1.4 var(--kmg-sans) !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  text-decoration: none !important;
  text-shadow: none !important;
  text-align: center !important;
  white-space: normal;
  isolation: isolate;
  overflow: hidden !important;
  animation: none !important;
  transition: transform .25s ease, box-shadow .25s ease !important;
}
html body#top.devis-premium :is(#kmg-devis, #devis-modal) .kmg-btn::before { content: none !important; }
html body#top.devis-premium :is(#kmg-devis, #devis-modal) .kmg-btn::after {
  content: "" !important;
  position: absolute !important;
  top: -35% !important;
  left: -80%;
  width: 62% !important;
  height: 170% !important;
  transform: skewX(-20deg) !important;
  background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,.12) 42%, rgba(255,255,255,.55) 50%, rgba(255,255,255,.12) 58%, transparent 100%) !important;
  pointer-events: none !important;
  animation: kmg-btn-mirror 3.8s ease-in-out infinite;
}
html body#top.devis-premium #kmg-devis .kmg-btn-ghost { background: #eee3cf !important; box-shadow: none !important; }
/* home-premium affiche ses pilules en !important : respecter les états
   display:none écrits par showStep() sans modifier ce moteur existant. */
html body#top.devis-premium #projet .devis-wizard-actions .kmg-btn[style*="display: none"] { display: none !important; }
html body#top.devis-premium :is(#kmg-devis, #devis-modal) .kmg-btn:hover { transform: translateY(-2px); filter: none !important; box-shadow: 0 12px 26px rgba(156, 123, 51, .3) !important; }
html body#top.devis-premium :is(#kmg-devis, #devis-modal) .kmg-btn:disabled { opacity: .5; cursor: not-allowed; transform: none !important; }
html body#top.devis-premium :is(#kmg-devis, #devis-modal) .kmg-btn:disabled::after { animation: none; opacity: 0; }
html body#top.devis-premium :is(a, button, summary):focus-visible { outline: 3px solid #b49c5c !important; outline-offset: 4px; }

/* Conserver l'ouverture/fermeture et les messages de la modale existante. */
html body#top.devis-premium #devis-modal { z-index: 20000; }
html body#top.devis-premium #devis-modal .devis-modal__content { width: min(520px, calc(100% - 32px)); max-height: calc(100svh - 40px); overflow-y: auto; padding: 32px 24px; border-color: #b49c5c; border-radius: 20px; background: var(--kmg-cream); color: var(--kmg-ink); }
html body#top.devis-premium #devis-modal .devis-modal__title { color: var(--kmg-ink); font: 500 1.8rem/1.3 var(--kmg-serif); }
html body#top.devis-premium #devis-modal .devis-modal__message { color: var(--kmg-ink-soft); font: 400 .95rem/1.7 var(--kmg-sans); }

@media (hover: hover) and (pointer: fine) {
  html body#top.devis-premium #projet .devis-panel:hover { border-color: #b49c5c; box-shadow: 0 5px 0 var(--panel-shade), 0 20px 32px rgba(65, 42, 20, .32), inset 0 1px 0 rgba(255, 255, 255, .32), inset 0 -10px 18px rgba(0, 0, 0, .18) !important; }
}
@media (max-width: 1199px) {
  html body#top.devis-premium #kmg-devis .kmg-hero__inner { padding: 215px 30px 190px 28px !important; }
}
@media (max-width: 1023px) {
  html body#top.devis-premium #kmg-devis .kmg-hero.full { min-height: max(650px, 85svh) !important; }
  html body#top.devis-premium #kmg-devis .kmg-hero__inner { min-height: max(650px, 85svh) !important; max-width: 760px !important; padding: 150px 28px 165px !important; }
  html body#top.devis-premium #kmg-devis .kmg-hero__overlay { background: linear-gradient(90deg, rgba(27, 26, 24, .65), rgba(27, 26, 24, .2)), linear-gradient(180deg, rgba(27, 26, 24, .1), rgba(27, 26, 24, .3)) !important; }
  html body#top.devis-premium .kmg-phone-hero { top: 92px !important; }
}
@media (max-width: 767px) {
  html body#top.devis-premium #kmg-devis .kmg-hero.full { min-height: max(700px, 92svh) !important; }
  html body#top.devis-premium #kmg-devis .kmg-hero__inner { min-height: max(700px, 92svh) !important; padding: 142px var(--kmg-gutter) 173px !important; gap: 24px !important; }
  html body#top.devis-premium #kmg-devis .kmg-headline { font-size: clamp(2.45rem, 9.3vw, 3.6rem) !important; }
  html body#top.devis-premium #kmg-devis .kmg-subline { font-size: .9rem !important; line-height: 1.8 !important; }
  html body#top.devis-premium .kmg-phone-hero { right: var(--kmg-gutter) !important; padding: 6px 10px !important; font-size: .72rem !important; }
  html body#top.devis-premium .kmg-ticker__link { width: clamp(140px, 45vw, 210px) !important; }
  html body#top.devis-premium #projet.devis-section { padding: 48px 0 !important; }
  html body#top.devis-premium #projet .devis-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  html body#top.devis-premium #projet .devis-grid > div { padding: 16px; }
  html body#top.devis-premium #projet .devis-panel summary { gap: 14px; min-height: 84px; padding: 18px; }
  html body#top.devis-premium #projet .devis-panel summary::before { width: 36px; height: 36px; flex-basis: 36px; font-size: 1.05rem; }
  html body#top.devis-premium #projet :is(.devis-input, .devis-select, .devis-textarea) { font-size: 1rem !important; }
  html body#top.devis-premium #projet .devis-wizard-actions { gap: 10px; }
  html body#top.devis-premium #projet .devis-wizard-actions .kmg-btn { min-width: 110px; flex: 1; padding: 13px 16px !important; }
}
@media (max-width: 374px) {
  html body#top.devis-premium #kmg-devis .kmg-hero__inner { padding-top: 139px !important; padding-bottom: 161px !important; }
  html body#top.devis-premium #kmg-devis .kmg-subline { font-size: .85rem !important; }
  html body#top.devis-premium #kmg-devis .kmg-btn-hero { padding: 13px 19px !important; font-size: .8rem !important; }
  html body#top.devis-premium #projet .devis-panel summary { padding: 16px 14px; gap: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  html body#top.devis-premium #kmg-devis .hero-slide,
  html body#top.devis-premium #projet .devis-panel,
  html body#top.devis-premium #projet .devis-panel summary::after,
  html body#top.devis-premium :is(#kmg-devis, #devis-modal) .kmg-btn { transition: none !important; }
  html body#top.devis-premium #projet .devis-panel[open] .devis-panel-body { animation: none; }
  html body#top.devis-premium #projet .devis-panel { animation: none; }
  html body#top.devis-premium :is(#kmg-devis, #devis-modal) .kmg-btn::after { animation: none; opacity: 0; }
}
