/* ==========================================================================
   KMG Agencement — refonte de la page d'accueil (maquette « Nos prestations »)

   Couleurs : doré du site (#E8CC80 + son dégradé métallique d'origine),
              gris anthracite (pas de noir), crème.
   Chargée en DERNIER dans index.php. Préfixe : html body#top.home-page
   (le <body> porte id="top") pour passer devant les anciennes feuilles.

   NE TOUCHE PAS :
   - l'animation logoSpinIn (animation / rotate / scale du logo) ;
   - transform / z-index / filter / opacity des cartes .item (avis) et
     .real-card (réalisations) : pilotés par javascript/script.js ;
   - display / visibility / opacity du logo, de la navbar et du ticker.
   ========================================================================== */

:root {
  --kmg-gold: #E8CC80;                               /* or du site */
  --kmg-gold-grad: linear-gradient(180deg, #8c7a3c 0%, #b49c5c 20%, #f5e6a3 40%, #e8cc80 50%, #f5e6a3 60%, #b49c5c 80%, #8c7a3c 100%);
  --kmg-gold-fill: linear-gradient(180deg, #f5e6a3 0%, #e8cc80 45%, #c9ab62 100%);
  --kmg-gold-line: rgba(232, 204, 128, .35);
  --kmg-gold-dim: rgba(232, 204, 128, .18);

  --kmg-anth-900: #262523;   /* le plus foncé (pied de page) */
  --kmg-anth-800: #2d2c29;   /* fonds de sections */
  --kmg-anth-700: #36342f;   /* cartes */
  --kmg-anth-600: #43403a;   /* reliefs */
  --kmg-cream: #F5EDDF;
  --kmg-cream-2: #EBDFC8;
  --kmg-ink: #2d2c29;        /* texte sur crème : anthracite */
  --kmg-ink-soft: #625b4e;
  --kmg-light: #f6f0e3;      /* texte sur anthracite */

  --kmg-serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --kmg-sans: "Poppins", "Segoe UI", Roboto, Arial, sans-serif;
  --kmg-max: 1200px;
  --kmg-gutter: clamp(16px, 4vw, 40px);
  --kmg-edge: max(var(--kmg-gutter), calc((100vw - var(--kmg-max)) / 2));
  --kmg-header-h: 72px;
  --kmg-logo-h: 112px;
}

html {
  color: rgba(0, 0, 0, 0.27);
}

html body#top.home-page {
  background: var(--kmg-anth-800) !important;
}

/* ==========================================================================
   0. BRIQUES COMMUNES
   ========================================================================== */

html body#top.home-page .kmg-container {
  width: min(var(--kmg-max), calc(100% - 2 * var(--kmg-gutter)));
  margin-inline: auto;
  box-sizing: border-box;
}
html body#top.home-page .kmg-center {
  display: flex;
  justify-content: center;
}

/* Mots dorés : dégradé métallique d'origine du site */
html body#top.home-page .kmg-gold,
html body#top.home-page .kmg-gold-ico {
  background: var(--kmg-gold-grad) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  color: var(--kmg-gold) !important;
  -webkit-text-fill-color: transparent !important;
}

/* Titres de section centrés avec filets dorés de part et d'autre */
html body#top.home-page .kmg-head {
  text-align: center !important;
  margin: 0 auto clamp(28px, 4vw, 44px);
}
html body#top.home-page .kmg-head h1,
html body#top.home-page .kmg-head h2,
html body#top.home-page .kmg-head h1 a {
  font-family: var(--kmg-serif) !important;
  font-weight: 500 !important;
  font-size: clamp(1.9rem, 3.4vw, 2.75rem) !important;
  line-height: 1.15 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  text-decoration: none !important;
  text-shadow: none !important;
  background: none;
  color: var(--kmg-ink) !important;
  -webkit-text-fill-color: var(--kmg-ink) !important;
}
html body#top.home-page .kmg-head h1,
html body#top.home-page .kmg-head h2 {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 2.5vw, 30px);
  margin: 0 0 8px !important;
  padding: 0 !important;
  width: 100% !important;
}
html body#top.home-page .kmg-head h1::before,
html body#top.home-page .kmg-head h1::after,
html body#top.home-page .kmg-head h2::before,
html body#top.home-page .kmg-head h2::after {
  content: "" !important;
  display: block !important;
  position: static !important;
  flex: 0 1 220px;
  width: auto !important;
  height: 1.5px !important;
  margin: 0 !important;
  transform: none !important;
  background: linear-gradient(90deg, rgba(232, 204, 128, 0), var(--kmg-gold)) !important;
}
html body#top.home-page .kmg-head h1::after,
html body#top.home-page .kmg-head h2::after {
  background: linear-gradient(90deg, var(--kmg-gold), rgba(232, 204, 128, 0)) !important;
}
html body#top.home-page .kmg-head--dark h1,
html body#top.home-page .kmg-head--dark h2 {
  color: var(--kmg-light) !important;
  -webkit-text-fill-color: var(--kmg-light) !important;
}
html body#top.home-page .kmg-head .kmg-gold {
  -webkit-text-fill-color: transparent !important;
}
/* Sur fond crème : tons foncés du même dégradé doré (lisibilité) */
html body#top.home-page .kmg-head:not(.kmg-head--dark) .kmg-gold {
  background: linear-gradient(180deg, #b49c5c 0%, #8c7a3c 40%, #b49c5c 75%, #8c7a3c 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
}
html body#top.home-page .kmg-head__t {
  white-space: normal;
}
/* anciennes flèches des sous-menus remplacées par le chevron de la maquette */
html body#top.home-page header nav.navbar li.has-submenu::after,
html body#top.home-page header nav.navbar li.has-submenu > a::after {
  display: none !important;
  content: none !important;
}
html body#top.home-page .kmg-head__sub {
  margin: 0 !important;
  font-family: var(--kmg-sans) !important;
  font-size: .95rem !important;
  font-weight: 500 !important;
  line-height: 1.5 !important;
  color: var(--kmg-ink-soft) !important;
  -webkit-text-fill-color: var(--kmg-ink-soft) !important;
  background: none !important;
  text-align: center !important;
}
html body#top.home-page .kmg-head--dark .kmg-head__sub {
  color: rgba(246, 240, 227, .82) !important;
  -webkit-text-fill-color: rgba(246, 240, 227, .82) !important;
}
html body#top.home-page .kmg-head__note {
  margin: 6px auto 0 !important;
  max-width: 560px;
  font-family: var(--kmg-sans) !important;
  font-size: .82rem !important;
  line-height: 1.5 !important;
  color: var(--kmg-ink-soft) !important;
  -webkit-text-fill-color: var(--kmg-ink-soft) !important;
  text-align: center !important;
}

/* Boutons pilule */
html body#top.home-page .kmg-btn,
html body#top.home-page #open-popupavis {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 12px !important;
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  padding: 12px 26px !important;
  border-radius: 999px !important;
  font-family: var(--kmg-sans) !important;
  font-size: .88rem !important;
  font-weight: 600 !important;
  letter-spacing: .01em !important;
  line-height: 1.2 !important;
  text-transform: none !important;
  text-decoration: none !important;
  white-space: nowrap;
  cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease !important;
}
html body#top.home-page .kmg-btn i {
  font-size: .85em;
  -webkit-text-fill-color: currentColor !important;
}
html body#top.home-page .kmg-btn--gold {
  background: var(--kmg-gold-fill) !important;
  border: 1px solid rgba(255, 244, 210, .6) !important;
  color: var(--kmg-ink) !important;
  -webkit-text-fill-color: var(--kmg-ink) !important;
  box-shadow: 0 10px 26px rgba(232, 204, 128, .28), inset 0 1px 0 rgba(255, 255, 255, .5) !important;
}
html body#top.home-page .kmg-btn--gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(232, 204, 128, .4), inset 0 1px 0 rgba(255, 255, 255, .55) !important;
}
html body#top.home-page .kmg-btn--outline,
html body#top.home-page #open-popupavis {
  background: rgba(45, 44, 41, .55) !important;
  background-image: none !important;
  border: 1.5px solid var(--kmg-gold) !important;
  border-image: none !important;
  color: var(--kmg-light) !important;
  -webkit-text-fill-color: var(--kmg-light) !important;
  -webkit-background-clip: border-box !important;
  background-clip: border-box !important;
  box-shadow: 0 0 18px rgba(232, 204, 128, .12) !important;
}
html body#top.home-page .kmg-btn--outline:hover,
html body#top.home-page #open-popupavis:hover {
  background: var(--kmg-gold-fill) !important;
  color: var(--kmg-ink) !important;
  -webkit-text-fill-color: var(--kmg-ink) !important;
}

/* ==========================================================================
   1. EN-TÊTE — barre anthracite, logo animé, pastille « Accueil », bouton doré
   ========================================================================== */

html body#top.home-page > header {
  position: fixed !important;
  inset: 0 0 auto 0 !important;
  width: 100% !important;
  height: var(--kmg-header-h) !important;
  min-height: 0 !important;
  padding: 0 var(--kmg-edge) 0 calc(var(--kmg-edge) + var(--kmg-logo-h) + 40px) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  background: linear-gradient(180deg, rgba(38, 37, 35, .97), rgba(45, 44, 41, .92)) !important;
  border-bottom: 1px solid rgba(232, 204, 128, .2) !important;
  box-shadow: 0 8px 26px rgba(20, 19, 17, .35) !important;
  box-sizing: border-box !important;
  z-index: 1200 !important;
  transition: background .35s ease, border-color .35s ease, box-shadow .35s ease !important;
}
html body#top.home-page.kmg-out-hero > header {
  background: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
  pointer-events: none;
}
html body#top.home-page.kmg-out-hero > header * {
  pointer-events: auto;
}

/* Logo (position uniquement : logoSpinIn intact) */
html body#top.home-page header .logo {
  position: absolute !important;
  top: 6px !important;
  left: var(--kmg-edge) !important;
  right: auto !important;
  bottom: auto !important;
  transform: none !important;
  width: auto !important;
  margin: 0 !important;
  justify-content: flex-start !important;
  z-index: 1300 !important;
}
html body#top.home-page header .logo a {
  display: block;
  line-height: 0;
}
html body#top.home-page header .logo img {
  height: var(--kmg-logo-h) !important;
  width: auto !important;
  max-width: none !important;
  max-height: none !important;
  margin: 0 !important;
  filter: drop-shadow(0 6px 14px rgba(20, 19, 17, .55));
}

/* Téléphone : petite pastille sous la barre, à droite */
html body#top.home-page #telephone-defilant {
  position: absolute !important;
  top: calc(var(--kmg-header-h) + 14px) !important;
  right: var(--kmg-edge) !important;
  left: auto !important;
  transform: none !important;
  margin: 0 !important;
  padding: 6px 15px !important;
  width: max-content !important;
  max-width: calc(100vw - 32px) !important;
  box-sizing: border-box !important;
  font-family: var(--kmg-sans) !important;
  font-size: .8rem !important;
  font-weight: 500 !important;
  line-height: 1.3 !important;
  letter-spacing: .02em !important;
  text-align: center !important;
  color: var(--kmg-gold) !important;
  -webkit-text-fill-color: var(--kmg-gold) !important;
  background: rgba(45, 44, 41, .7) !important;
  background-image: none !important;
  border: 1px solid var(--kmg-gold-line) !important;
  border-radius: 999px !important;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  z-index: 1150 !important;
}
html body#top.home-page #telephone-defilant i {
  margin-right: 6px;
  color: var(--kmg-gold) !important;
  -webkit-text-fill-color: var(--kmg-gold) !important;
}

/* Navigation (affichage décidé par le site d'origine) */
html body#top.home-page header nav.navbar {
  position: static !important;
  inset: auto !important;
  flex: 1 1 auto !important;
  width: auto !important;
  height: auto !important;
  line-height: normal !important;
  background: transparent !important;
  box-shadow: none !important;
  border: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}
html body#top.home-page header nav.navbar > ul {
  display: flex;
  align-items: center !important;
  gap: clamp(2px, .8vw, 12px) !important;
  float: none !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  height: auto !important;
}
html body#top.home-page header nav.navbar > ul > li {
  margin: 0 !important;
  height: auto !important;
  line-height: normal !important;
  float: none !important;
}
html body#top.home-page header nav.navbar > ul > li > a:not(.btn-contact) {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  padding: 8px 14px !important;
  border-radius: 999px !important;
  font-family: var(--kmg-sans) !important;
  font-size: .82rem !important;
  font-weight: 500 !important;
  letter-spacing: .01em !important;
  line-height: 1.2 !important;
  color: var(--kmg-light) !important;
  -webkit-text-fill-color: var(--kmg-light) !important;
  background: none !important;
  transition: color .25s ease, background .25s ease !important;
}
html body#top.home-page header nav.navbar .kmg-caret {
  font-size: .62rem;
  opacity: .8;
}
html body#top.home-page header nav.navbar > ul > li > a:not(.btn-contact):hover {
  color: var(--kmg-gold) !important;
  -webkit-text-fill-color: var(--kmg-gold) !important;
}
/* Pastille dorée sur « Accueil » (lien actif) */
html body#top.home-page header nav.navbar > ul > li > a[href="#top"] {
  background: var(--kmg-gold-fill) !important;
  color: var(--kmg-ink) !important;
  -webkit-text-fill-color: var(--kmg-ink) !important;
  box-shadow: 0 4px 14px rgba(232, 204, 128, .3) !important;
}

/* Sous-menus */
html body#top.home-page header nav.navbar .submenu {
  background: rgba(45, 44, 41, .98) !important;
  border: 1px solid var(--kmg-gold-line) !important;
  border-radius: 10px !important;
  padding: 8px 0 !important;
  box-shadow: 0 18px 40px rgba(20, 19, 17, .45) !important;
}
html body#top.home-page header nav.navbar .submenu li a {
  font-family: var(--kmg-sans) !important;
  font-size: .82rem !important;
  color: var(--kmg-light) !important;
  -webkit-text-fill-color: var(--kmg-light) !important;
  background: none !important;
  padding: 9px 20px !important;
  line-height: 1.3 !important;
  white-space: nowrap;
}
html body#top.home-page header nav.navbar .submenu li a:hover {
  color: var(--kmg-gold) !important;
  -webkit-text-fill-color: var(--kmg-gold) !important;
  background: rgba(232, 204, 128, .08) !important;
}

/* Bouton « Contactez-nous » : pilule dorée pleine, à droite */
html body#top.home-page header nav.navbar li.only-desktop {
  position: relative !important;
  inset: auto !important;
  transform: none !important;
  margin: 0 0 0 auto !important;
}
html body#top.home-page header nav.navbar a.btn-contact {
  position: relative !important;
  inset: auto !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px;
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  padding: 11px 24px !important;
  border-radius: 999px !important;
  background: var(--kmg-gold-fill) !important;
  border: 1px solid rgba(255, 244, 210, .6) !important;
  box-shadow: 0 8px 22px rgba(232, 204, 128, .28), inset 0 1px 0 rgba(255, 255, 255, .5) !important;
  animation: none !important;
  line-height: 1 !important;
}
html body#top.home-page header nav.navbar a.btn-contact::before {
  content: "\f0e0";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: .9rem;
  color: var(--kmg-ink);
}
html body#top.home-page header nav.navbar a.btn-contact img {
  display: none !important;
}
html body#top.home-page header nav.navbar a.btn-contact span {
  position: static !important;
  transform: none !important;
  font-family: var(--kmg-sans) !important;
  font-size: .85rem !important;
  font-weight: 600 !important;
  color: var(--kmg-ink) !important;
  -webkit-text-fill-color: var(--kmg-ink) !important;
  background: none !important;
  white-space: nowrap !important;
}

/* Burger (écrans où le menu complet est masqué) */
html body#top.home-page .kmg-burger {
  position: fixed !important;
  top: calc((var(--kmg-header-h) - 46px) / 2) !important;
  left: auto !important;
  right: var(--kmg-edge) !important;
  width: 46px !important;
  height: 46px !important;
  border-radius: 50% !important;
  background: rgba(45, 44, 41, .85) !important;
  border: 1.5px solid var(--kmg-gold) !important;
  color: var(--kmg-gold) !important;
  box-shadow: 0 8px 22px rgba(20, 19, 17, .4) !important;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  z-index: 12001 !important;
}
html body#top.home-page .kmg-burger i {
  color: var(--kmg-gold) !important;
  font-size: 1.15rem !important;
}
html body#top.home-page .kmg-burger-panel {
  background: linear-gradient(180deg, var(--kmg-anth-700) 0%, var(--kmg-anth-900) 100%) !important;
  border-right: 1px solid var(--kmg-gold-line) !important;
}
html body#top.home-page .kmg-burger-panel a,
html body#top.home-page .kmg-burger-panel .kmg-burger-acc-btn {
  font-family: var(--kmg-sans) !important;
}

/* ==========================================================================
   2. HERO — photo pleine largeur, texte à gauche, vague dorée
   ========================================================================== */

html body#top.home-page #top.hero {
  display: block !important;
  position: relative !important;
  width: 100% !important;
  height: auto !important;
  min-height: clamp(600px, 86vh, 820px) !important;
  max-height: none !important;
  padding: 0 !important;
  margin: 0 !important;
  text-align: left !important;
  background: var(--kmg-anth-800) !important;
  background-image: none !important;
  overflow: hidden !important;
  animation: none !important;
}
/* les deux photos d'origine (fondu animé conservé) */
html body#top.home-page #top.hero::before,
html body#top.home-page #top.hero::after {
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  background-size: cover !important;
  background-position: 65% center !important;
}
html body#top.home-page #top.hero::before { filter: brightness(.95) saturate(1.08) !important; }
html body#top.home-page #top.hero::after  { filter: brightness(.9) saturate(1.08) !important; }

html body#top.home-page #top.hero .overlay {
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  background:
    linear-gradient(90deg,
      rgba(38, 37, 35, .94) 0%,
      rgba(38, 37, 35, .86) 28%,
      rgba(38, 37, 35, .45) 50%,
      rgba(38, 37, 35, .08) 70%,
      rgba(38, 37, 35, 0) 100%),
    linear-gradient(180deg, rgba(38, 37, 35, .35) 0%, rgba(38, 37, 35, 0) 25%) !important;
  opacity: 1 !important;
  z-index: 2 !important;
}

html body#top.home-page #top.hero .kmg-hero__inner {
  position: relative;
  z-index: 10;
  display: block !important;
  text-align: left !important;
  max-width: 600px;
  padding: calc(var(--kmg-header-h) + clamp(56px, 10vh, 110px)) 0 170px var(--kmg-edge);
  box-sizing: content-box;
}

/* H1 d'origine « Bienvenue Chez KMG Agencement » : texte inchangé */
html body#top.home-page #top.hero h1 {
  display: block !important;
  margin: 0 0 14px !important;
  padding: 0 !important;
  width: auto !important;
  text-align: left !important;
  transform: none !important;
  animation: none !important;
  background: none !important;
  text-shadow: none !important;
  font-family: var(--kmg-serif) !important;
  font-weight: 400 !important;
  font-size: clamp(2.8rem, 5.6vw, 4.8rem) !important;
  line-height: 1 !important;
  letter-spacing: 0 !important;
  color: var(--kmg-light) !important;
  -webkit-text-fill-color: var(--kmg-light) !important;
}
html body#top.home-page #top.hero .kmg-h1-pre {
  display: block;
  margin-bottom: 12px;
  font-family: var(--kmg-sans);
  font-size: clamp(.72rem, .9vw, .82rem);
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--kmg-gold);
  -webkit-text-fill-color: var(--kmg-gold);
}
html body#top.home-page #top.hero .kmg-h1-main {
  display: block;
  text-shadow: 0 6px 30px rgba(20, 19, 17, .45);
}

html body#top.home-page #top.hero .kmg-hero__sub {
  font-family: var(--kmg-sans);
  font-size: clamp(1.15rem, 1.9vw, 1.6rem);
  font-weight: 500;
  line-height: 1.3;
  color: var(--kmg-light);
  margin: 0 0 18px;
  text-align: left !important;
}
html body#top.home-page #top.hero .kmg-hero__rule {
  display: block;
  width: 72px;
  height: 2px;
  margin: 0 0 18px;
  background: var(--kmg-gold-grad);
}
html body#top.home-page #top.hero p {
  font-family: var(--kmg-sans) !important;
  font-weight: 400 !important;
  font-size: clamp(.9rem, 1.1vw, 1rem) !important;
  line-height: 1.6 !important;
  color: rgba(246, 240, 227, .9) !important;
  -webkit-text-fill-color: rgba(246, 240, 227, .9) !important;
  background: none !important;
  text-shadow: none !important;
  text-align: left !important;
  max-width: 460px !important;
  margin: 0 0 26px !important;
  padding: 0 !important;
  transform: none !important;
  animation: none !important;
}

/* Vague dorée + bouton rond */
html body#top.home-page #top.hero .kmg-hero__wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: clamp(56px, 7vw, 100px);
  z-index: 8;
  pointer-events: none;
}
html body#top.home-page #top.hero .kmg-hero__wave svg {
  display: block;
  width: 100%;
  height: 100%;
}
html body#top.home-page #top.hero .kmg-wave-fill {
  fill: var(--kmg-cream);
}
html body#top.home-page #top.hero .kmg-wave-line {
  filter: drop-shadow(0 0 6px rgba(232, 204, 128, .6));
}
html body#top.home-page #top.hero .kmg-hero__down {
  position: absolute;
  left: 50%;
  bottom: clamp(36px, 3.4vw, 48px);   /* au-dessus de la vague dorée, dans le hero */
  transform: translateX(-50%);
  z-index: 9;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--kmg-anth-800);
  border: 2px solid var(--kmg-gold);
  color: var(--kmg-gold) !important;
  box-shadow: 0 6px 18px rgba(20, 19, 17, .35), 0 0 16px rgba(232, 204, 128, .35);
  text-decoration: none;
  transition: transform .25s ease;
}
html body#top.home-page #top.hero .kmg-hero__down:hover {
  transform: translateX(-50%) translateY(3px);
}

/* ==========================================================================
   3. BANDE D'ATOUTS — fond crème
   ========================================================================== */

html body#top.home-page .kmg-features {
  position: relative;
  z-index: 0; /* sous le hero : le bandeau cookies reste visible */
  background: var(--kmg-cream);
  padding: 8px 0 30px;
}
html body#top.home-page .kmg-features ul {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0 auto !important;
  padding: 0 !important;
  list-style: none;
}
html body#top.home-page .kmg-features li {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 6px 12px;
  list-style: none;
  text-align: center;
  font-family: var(--kmg-sans);
  font-size: .86rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--kmg-ink);
}
html body#top.home-page .kmg-features li + li {
  border-left: 1px solid rgba(184, 156, 92, .4);
}
html body#top.home-page .kmg-features li i {
  font-size: 2rem;
}

/* ==========================================================================
   4. NOS PRESTATIONS — fond anthracite, 5 cartes photo
   ========================================================================== */

html body#top.home-page #services {
  display: block !important;
  grid-template-columns: none !important;
  width: 100% !important;
  max-width: none !important;
  padding: clamp(14px, 1.55vw, 22px) 0 clamp(30px, 3.2vw, 46px) !important;   /* espace sous les cartes : la courbe dorée ne les touche plus */
  margin: 0 !important;
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(232, 204, 128, .08), transparent 70%),
    var(--kmg-anth-800) !important;
  text-align: left !important;
}
html body#top.home-page #services::before,
html body#top.home-page #services::after {
  display: none !important;
}
/* la section passe devant la courbe dorée (z-index 5) et les sections suivantes :
   rien ne peut plus recouvrir le bas des cartes pendant le défilement */
html body#top.home-page #services {
  position: relative !important;
  z-index: 6 !important;
}
html body#top.home-page #services .kmg-head :is(h1, .kmg-section-heading),
html body#top.home-page #services .kmg-head :is(h1, .kmg-section-heading) a {
  color: var(--kmg-light) !important;
  -webkit-text-fill-color: var(--kmg-light) !important;
  text-shadow: none !important;
}
html body#top.home-page #services .kmg-head :is(h1, .kmg-section-heading) .kmg-gold {
  background: var(--kmg-gold-grad) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  filter: brightness(1.18) saturate(1.12) drop-shadow(0 0 5px rgba(232, 204, 128, .35));
}
html body#top.home-page #services .kmg-head__sub {
  font-size: clamp(.95rem, 1.18vw, 1.08rem) !important;
  color: rgba(255, 250, 240, .96) !important;
  -webkit-text-fill-color: rgba(255, 250, 240, .96) !important;
}

/* --- Cartes de prestations : bloc unique (remplace toutes les règles précédentes) ---
   Mesures au pixel sur la maquette (capture 776 px) : cartes de 227 px de haut,
   134 à 144 px de large (perspective) => rapport 1,58 à 1,69 ; ramené à 1,52 à la
   demande (cartes plus compactes). Espace ≈ 1,5 % de la largeur, marges ≈ 2,6 %.
   Composition : photo sur toute la carte, dégradé sombre sur le tiers inférieur,
   icône ~62 %, titre ~72 %, filet doré, description ~82-92 % de la hauteur. */
html body#top.home-page #services {
  --kmg-svc-side: clamp(16px, 2.6vw, 40px);
  --kmg-svc-w: min(1368px, calc(100vw - 2 * var(--kmg-svc-side)));
  --kmg-svc-gap: clamp(12px, 1.45vw, 22px);
}
html body#top.home-page #services .kmg-head {
  margin-bottom: clamp(16px, 2vw, 29px);
}
/* le conteneur héritait d'un overflow:hidden qui coupait les cartes des bords */
html body#top.home-page #services > .kmg-container {
  padding: 0 !important;
  overflow: visible !important;
}
html body#top.home-page #services .kmg-services-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: var(--kmg-svc-gap);
  width: var(--kmg-svc-w);
  margin-left: calc((100% - var(--kmg-svc-w)) / 2);
  align-items: stretch;
}

/* la carte : photo pleine surface, contenu calé en bas */
html body#top.home-page #services .service {
  position: relative !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-end !important;
  align-items: center !important;
  width: auto !important;
  max-width: none !important;
  min-width: 0 !important;
  height: auto !important;
  min-height: 0 !important;
  aspect-ratio: 100 / 169;
  margin: 0 !important;
  padding: 0 8% 6% !important;
  box-sizing: border-box !important;
  border: 1px solid rgba(232, 204, 128, .62) !important;
  border-radius: 14px !important;
  overflow: hidden !important;
  background: var(--kmg-edge-dark) !important;
  box-shadow:
    0 0 22px rgba(232, 204, 128, .16),
    0 22px 40px rgba(12, 11, 10, .45),
    inset 0 1px 0 rgba(255, 240, 200, .22) !important;
  text-align: center !important;
  transform: none;
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease !important;
}
html body#top.home-page #services .service:hover {
  transform: translateY(-6px) !important;
  border-color: var(--kmg-gold) !important;
  box-shadow: 0 28px 52px rgba(12, 11, 10, .55), 0 0 30px rgba(232, 204, 128, .22) !important;
}
/* dégradé progressif vers l'anthracite (aucune séparation nette) */
html body#top.home-page #services .service::after {
  content: "" !important;
  display: block !important;
  position: absolute !important;
  inset: 0 !important;
  z-index: 1 !important;
  background: linear-gradient(180deg,
    rgba(27, 26, 24, 0) 0%,
    rgba(27, 26, 24, 0) 46%,
    rgba(27, 26, 24, .5) 58%,
    rgba(27, 26, 24, .86) 69%,
    rgba(27, 26, 24, .96) 80%,
    rgba(27, 26, 24, .98) 100%) !important;
  pointer-events: none !important;
}
html body#top.home-page #services .service::before {
  display: none !important;
}
/* le lien reste dans le flux : icône + titre ; la photo (dans le lien) couvre toute la carte */
html body#top.home-page #services .service a {
  position: static !important;
  inset: auto !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-end !important;
  width: 100% !important;
  padding: 0 !important;
  color: inherit !important;
  text-decoration: none !important;
}
html body#top.home-page #services .service a::after,
html body#top.home-page #services .service a::before {
  display: none !important;
}
html body#top.home-page #services .service img {
  position: absolute !important;
  inset: 0 !important;
  z-index: 0 !important;
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-height: none !important;
  min-height: 0 !important;
  aspect-ratio: auto !important;
  object-fit: cover !important;
  object-position: center center !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  -webkit-mask-image: none !important;
  mask-image: none !important;
  transform: none !important;
  filter: none;
  transition: filter .5s ease !important;
}
html body#top.home-page #services .service:hover img {
  filter: brightness(1.08) saturate(1.05);
}
/* icône dorée dans la zone basse */
html body#top.home-page #services .kmg-svc-ico {
  position: relative !important;
  z-index: 2 !important;
  margin: 0 0 clamp(8px, .9vw, 12px) !important;
  font-size: clamp(1.45rem, 2.05vw, 2rem) !important;
  line-height: 1 !important;
  filter: drop-shadow(0 0 6px rgba(232, 204, 128, .55)) drop-shadow(0 2px 6px rgba(12, 11, 10, .6)) !important;
}
html body#top.home-page #services .service h2 {
  position: relative !important;
  z-index: 2 !important;
  inset: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  width: auto !important;
  transform: none !important;
  font-family: var(--kmg-sans) !important;
  font-weight: 600 !important;
  font-size: clamp(.9rem, 1.15vw, 1.1rem) !important;
  line-height: 1.25 !important;
  letter-spacing: 0 !important;
  text-transform: lowercase !important;
  text-align: center !important;
  color: var(--kmg-light) !important;
  -webkit-text-fill-color: var(--kmg-light) !important;
  background: none !important;
  text-shadow: 0 2px 10px rgba(12, 11, 10, .6) !important;
  white-space: normal !important;
}
html body#top.home-page #services .service h2::first-letter {
  text-transform: uppercase;
}
html body#top.home-page #services .service h2::before,
html body#top.home-page #services .service h2::after {
  display: none !important;
}
/* description discrète, précédée d'un fin filet doré */
html body#top.home-page #services .service p {
  position: relative !important;
  z-index: 2 !important;
  inset: auto !important;
  width: 100% !important;
  margin: clamp(8px, .9vw, 12px) 0 0 !important;
  padding: clamp(8px, .9vw, 12px) 0 0 !important;
  height: auto !important;
  box-sizing: content-box !important;
  min-height: calc(3 * 1.45em) !important;   /* 3 lignes réservées : titres alignés d'une carte à l'autre */
  max-height: none !important;
  overflow: visible !important;
  font-family: var(--kmg-sans) !important;
  font-size: clamp(.7rem, .88vw, .84rem) !important;
  line-height: 1.45 !important;
  text-align: center !important;
  color: rgba(246, 240, 227, .74) !important;
  -webkit-text-fill-color: rgba(246, 240, 227, .74) !important;
  background: none !important;
  opacity: 1 !important;
  transform: none !important;
  pointer-events: none !important;
}
html body#top.home-page #services .service p::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 50%;
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, var(--kmg-gold), transparent);
  box-shadow: 0 0 6px rgba(232, 204, 128, .55);
}

/* titre de section : doré plus lumineux, filets plus présents */
/* transition vers « Nos réalisations » : fin arc doré tendu, juste sous les cartes */
html body#top.home-page .kmg-curve--pr {
  height: clamp(34px, 4.7vw, 68px) !important;
  margin-top: 0 !important;
  margin-bottom: calc(-1 * clamp(44px, 6.1vw, 88px)) !important;
  z-index: 5 !important;   /* au-dessus du fond de la section, sinon le sommet de l'arc est masqué */
}
html body#top.home-page .kmg-curve--pr .kmg-curve__line {
  stroke-width: 1.5px !important;
  filter: drop-shadow(0 0 4px rgba(232, 204, 128, .9)) drop-shadow(0 0 10px rgba(232, 204, 128, .45)) !important;
}

/* tablette étroite : 3 colonnes (mode déjà en place), proportions conservées */
@media screen and (min-width: 769px) and (max-width: 899px) {
  html body#top.home-page #services .kmg-services-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
/* téléphone : défilement au doigt (mode déjà en place), proportions conservées */
@media screen and (max-width: 768px) {
  html body#top.home-page #services .kmg-services-grid {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: min(66vw, 270px);
    gap: 14px;
    width: auto;
    margin-left: 0;
    margin-right: calc(-1 * var(--kmg-gutter));
    padding: 4px var(--kmg-gutter) 16px 0;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--kmg-gold) transparent;
  }
  html body#top.home-page #services .service {
    scroll-snap-align: start;
  }
  html body#top.home-page #services .service h2 {
    font-size: 1.02rem !important;
  }
  html body#top.home-page #services .service p {
    font-size: .8rem !important;
  }
  html body#top.home-page #services .kmg-svc-ico {
    font-size: 1.8rem !important;
  }
}
/* téléphone (≤ 767 px) : une seule colonne, cinq grandes cartes empilées.
   La tablette (768 px) garde le défilement horizontal ci-dessus. */
@media screen and (max-width: 767px) {
  html body#top.home-page #services .kmg-services-grid {
    grid-template-columns: minmax(0, 1fr);
    grid-auto-flow: row;
    grid-auto-columns: auto;
    gap: 22px;
    width: min(460px, 100%);   /* le conteneur porte déjà les marges latérales */
    margin: 0 auto;
    padding: 4px 0 18px;
    overflow: visible;
    scroll-snap-type: none;
  }
  html body#top.home-page #services .service {
    aspect-ratio: 4 / 5;
    padding: 0 9% 7% !important;
    scroll-snap-align: none;
  }
  html body#top.home-page #services .service h2 {
    font-size: 1.18rem !important;
  }
  html body#top.home-page #services .service p {
    font-size: .9rem !important;
    min-height: 0 !important;   /* plus d'alignement entre colonnes à préserver */
  }
  html body#top.home-page #services .kmg-svc-ico {
    font-size: 2rem !important;
  }
}
/* ==========================================================================
   5. NOS RÉALISATIONS — anthracite + halo doré, carrousel 3D avec reflet
   (aucune règle sur transform / filter / opacity / z-index des .real-card)
   ========================================================================== */

html body#top.home-page #realisations {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  min-height: 0 !important;
  padding: clamp(50px, 6vw, 72px) 0 clamp(46px, 5vw, 64px) !important;
  margin: 0 !important;
  background:
    radial-gradient(ellipse 45% 55% at 50% 52%, rgba(232, 204, 128, .22) 0%, transparent 70%),
    linear-gradient(180deg, #33312d 0%, var(--kmg-anth-800) 60%, #2a2926 100%) !important;
  border-top: 1px solid rgba(232, 204, 128, .25) !important;
  text-align: left !important;
  overflow: hidden !important;
}

html body#top.home-page #realisations .real-slider-wrap {
  position: relative !important;
  width: 100% !important;
  max-width: 1100px !important;
  margin: 0 auto !important;
  padding: 0 70px 120px !important;
  box-sizing: border-box !important;
  overflow: visible !important;
}
html body#top.home-page #realisations .real-slider {
  position: relative !important;
  width: 100% !important;
  max-width: none !important;
  height: 300px !important;
  overflow: visible !important;
}
/* sol miroir */
html body#top.home-page #realisations .real-slider::after {
  content: "";
  position: absolute;
  left: -40px;
  right: -40px;
  top: calc(50% + 125px);
  height: 140px;
  background:
    radial-gradient(ellipse 50% 60% at 50% 0%, rgba(232, 204, 128, .18), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

html body#top.home-page #realisations .real-card {
  /* REFLET MIROIR (Chrome, Edge, Safari) — suit chaque carte */
  -webkit-box-reflect: below 6px
    linear-gradient(to bottom, transparent 0%, transparent 55%, rgba(0, 0, 0, .32) 100%);
}
html body#top.home-page #realisations .real-card-inner,
html body#top.home-page #realisations .real-card-front,
html body#top.home-page #realisations .real-card-back {
  border-radius: 10px !important;
}
html body#top.home-page #realisations .real-card-front {
  background: var(--kmg-anth-700) !important;
  border: 1px solid rgba(232, 204, 128, .45) !important;
  box-shadow: 0 22px 40px rgba(20, 19, 17, .45) !important;
}
html body#top.home-page #realisations .real-card.is-active .real-card-front {
  border: 2px solid var(--kmg-gold) !important;
  box-shadow: 0 0 34px rgba(232, 204, 128, .45), 0 22px 44px rgba(20, 19, 17, .45) !important;
}
html body#top.home-page #realisations .real-card-front img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  border-radius: 9px !important;
}
html body#top.home-page #realisations .real-card-back {
  background: linear-gradient(160deg, var(--kmg-anth-600) 0%, var(--kmg-anth-800) 100%) !important;
  border: 2px solid var(--kmg-gold) !important;
}
html body#top.home-page #realisations .real-card-back h3 {
  font-family: var(--kmg-serif) !important;
  font-weight: 500 !important;
  background: var(--kmg-gold-grad) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  letter-spacing: .04em !important;
}
html body#top.home-page #realisations .real-btn {
  font-family: var(--kmg-sans) !important;
  background: var(--kmg-gold-fill) !important;
  color: var(--kmg-ink) !important;
  -webkit-text-fill-color: var(--kmg-ink) !important;
  border-radius: 999px !important;
  border: 0 !important;
  padding: 10px 22px !important;
}
@media screen and (min-width: 769px) {
  html body#top.home-page #realisations .real-card {
    width: 330px !important;
    height: 240px !important;
    margin-left: -165px !important;
    margin-top: -120px !important;
  }
}

/* ==========================================================================
   6. FLÈCHES DES CARROUSELS — cercle anthracite, liseré doré
   ========================================================================== */

html body#top.home-page #real-prev,
html body#top.home-page #real-next,
html body#top.home-page #avis-clients #prev,
html body#top.home-page #avis-clients #next {
  position: absolute !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  z-index: 30 !important;
  width: 46px !important;
  height: 46px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  border-radius: 50% !important;
  border: 2px solid var(--kmg-gold) !important;
  border-image: none !important;
  background: rgba(45, 44, 41, .85) !important;
  background-image: none !important;
  color: var(--kmg-gold) !important;
  -webkit-text-fill-color: var(--kmg-gold) !important;
  -webkit-background-clip: border-box !important;
  background-clip: border-box !important;
  font-family: var(--kmg-sans) !important;
  font-size: 1.05rem !important;
  font-weight: 600 !important;
  line-height: 1 !important;
  box-shadow: 0 6px 16px rgba(20, 19, 17, .4), 0 0 14px rgba(232, 204, 128, .25) !important;
}
html body#top.home-page #real-prev,
html body#top.home-page #avis-clients #prev { left: 0 !important; right: auto !important; }
html body#top.home-page #real-next,
html body#top.home-page #avis-clients #next { right: 0 !important; left: auto !important; }
html body#top.home-page #real-prev,
html body#top.home-page #real-next {
  top: calc(50% - 60px) !important;
}
html body#top.home-page #real-prev:hover,
html body#top.home-page #real-next:hover,
html body#top.home-page #avis-clients #prev:hover,
html body#top.home-page #avis-clients #next:hover {
  background: var(--kmg-gold-fill) !important;
  color: var(--kmg-ink) !important;
  -webkit-text-fill-color: var(--kmg-ink) !important;
}

/* ==========================================================================
   7. NOTRE ZONE D'INTERVENTION — crème, carte + encart « Pourquoi nous choisir ? »
   ========================================================================== */

html body#top.home-page #zone-intervention {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  padding: clamp(50px, 6vw, 72px) 0 !important;
  margin: 0 !important;
  background:
    radial-gradient(ellipse at 25% 60%, rgba(232, 204, 128, .2), transparent 55%),
    var(--kmg-cream) !important;
}
html body#top.home-page #zone-intervention::before,
html body#top.home-page #zone-intervention::after {
  display: none !important;
}
html body#top.home-page #zone-intervention .kmg-zone-intervention {
  display: grid !important;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, .95fr) !important;
  gap: clamp(24px, 3.5vw, 48px) !important;
  align-items: center !important;
  padding: 0 !important;
  margin: 0 !important;
  max-width: none !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}
html body#top.home-page #zone-intervention .kmg-zone-intervention__map {
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  min-width: 0;
}
html body#top.home-page #zone-intervention .kmg-zone-map-frame {
  width: 100% !important;
  height: 340px !important;
  min-height: 0 !important;
  border-radius: 22px !important;
  overflow: hidden !important;
  border: 1px solid rgba(184, 156, 92, .35) !important;
  box-shadow: 0 20px 44px rgba(98, 91, 78, .22) !important;
  background: var(--kmg-cream-2) !important;
}
html body#top.home-page #zone-intervention .kmg-zone-map-frame iframe {
  width: 100% !important;
  height: 100% !important;
  display: block;
  filter: grayscale(.55) sepia(.45) saturate(1.15) brightness(1.04) contrast(.94);
}

/* Encart anthracite */
html body#top.home-page #zone-intervention .kmg-engagements {
  padding: clamp(22px, 2.6vw, 32px) !important;
  margin: 0 !important;
  background: linear-gradient(160deg, var(--kmg-anth-700) 0%, var(--kmg-anth-800) 100%) !important;
  border: 1px solid rgba(232, 204, 128, .45) !important;
  border-radius: 14px !important;
  box-shadow: 0 24px 50px rgba(45, 44, 41, .35) !important;
}
html body#top.home-page #zone-intervention .kmg-engagements h2 {
  display: block !important;
  margin: 0 0 18px !important;
  font-family: var(--kmg-serif) !important;
  font-weight: 500 !important;
  font-size: clamp(1.3rem, 1.9vw, 1.6rem) !important;
  text-align: left !important;
  text-shadow: none !important;
  background: var(--kmg-gold-grad) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  color: var(--kmg-gold) !important;
  -webkit-text-fill-color: transparent !important;
}
html body#top.home-page #zone-intervention .kmg-engagements h2::before,
html body#top.home-page #zone-intervention .kmg-engagements h2::after {
  display: none !important;
}
html body#top.home-page #zone-intervention .kmg-engagements__list {
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
  margin: 0 !important;
  padding: 0 !important;
}
html body#top.home-page #zone-intervention .kmg-engagement {
  display: flex !important;
  align-items: flex-start !important;
  gap: 14px !important;
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  text-align: left !important;
}
html body#top.home-page #zone-intervention .kmg-engagement__icon {
  flex: 0 0 30px !important;
  width: 30px !important;
  height: 30px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}
html body#top.home-page #zone-intervention .kmg-engagement__icon i {
  font-size: 1.2rem !important;
  background: var(--kmg-gold-grad) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  color: var(--kmg-gold) !important;
  -webkit-text-fill-color: transparent !important;
}
html body#top.home-page #zone-intervention .kmg-engagement h3 {
  margin: 2px 0 2px !important;
  font-family: var(--kmg-sans) !important;
  font-size: .86rem !important;
  font-weight: 500 !important;
  line-height: 1.35 !important;
  color: var(--kmg-light) !important;
  -webkit-text-fill-color: var(--kmg-light) !important;
  background: none !important;
  text-shadow: none !important;
  text-align: left !important;
}
html body#top.home-page #zone-intervention .kmg-engagement p {
  margin: 0 !important;
  font-family: var(--kmg-sans) !important;
  font-size: .72rem !important;
  line-height: 1.45 !important;
  color: rgba(246, 240, 227, .62) !important;
  -webkit-text-fill-color: rgba(246, 240, 227, .62) !important;
  background: none !important;
  text-align: left !important;
}

/* ==========================================================================
   8. ILS NOUS FONT CONFIANCE — anthracite + halo, carrousel 3D + reflet miroir
   Le script écrit transform / z-index / filter / opacity sur chaque .item.
   ========================================================================== */

html body#top.home-page #avis-clients {
  --kmg-avis-h: 380px;
  --kmg-avis-floor: 130px;
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  min-height: 0 !important;
  padding: clamp(50px, 6vw, 72px) 0 clamp(40px, 5vw, 60px) !important;
  margin: 0 !important;
  background:
    radial-gradient(ellipse 40% 45% at 50% 48%, rgba(232, 204, 128, .24) 0%, transparent 70%),
    linear-gradient(180deg, #33312d 0%, var(--kmg-anth-800) 55%, #2a2926 100%) !important;
  background-color: var(--kmg-anth-800) !important;
  text-align: left !important;
  overflow: hidden !important;
}

html body#top.home-page #avis-clients .slider-wrap {
  position: relative !important;
  display: block !important;
  width: 100% !important;
  max-width: 1040px !important;
  margin: 0 auto !important;
  padding: 0 64px !important;
  box-sizing: border-box !important;
}
html body#top.home-page #avis-clients .slider {
  width: 100% !important;
  max-width: none !important;
  height: var(--kmg-avis-h) !important;
  min-height: 0 !important;
  max-height: none !important;
  margin: 0 !important;
  padding: 0 0 var(--kmg-avis-floor) !important;
  box-sizing: border-box !important;
  align-items: center !important;
}
html body#top.home-page #avis-clients .slider::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--kmg-avis-floor);
  background:
    radial-gradient(ellipse 45% 70% at 50% 0%, rgba(232, 204, 128, .22) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}
html body#top.home-page #avis-clients .slider::after {
  content: "";
  position: absolute;
  left: 6%;
  right: 6%;
  bottom: calc(var(--kmg-avis-floor) - 2px);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(232, 204, 128, .55), transparent);
  pointer-events: none;
  z-index: 0;
}

/* Carte d'avis — paysage, verre fumé anthracite, liseré doré */
html body#top.home-page #avis-clients .slider .item {
  display: grid !important;
  grid-template-columns: 1fr auto auto 1fr;
  grid-template-areas:
    ". av name ."
    ". av stars ."
    "txt txt txt txt"
    "meta meta meta meta";
  justify-content: stretch;
  align-content: center;
  align-items: center;
  column-gap: 14px;
  row-gap: 2px;
  width: 340px !important;
  max-width: 340px !important;
  height: 200px !important;
  padding: 20px 22px !important;
  box-sizing: border-box !important;
  text-align: center !important;
  background:
    linear-gradient(165deg, rgba(70, 66, 58, .97) 0%, rgba(50, 48, 44, .98) 55%, rgba(42, 41, 38, .99) 100%) !important;
  border: 1px solid rgba(232, 204, 128, .5) !important;
  border-radius: 10px !important;
  box-shadow: 0 22px 44px rgba(20, 19, 17, .45), inset 0 1px 0 rgba(255, 240, 200, .12) !important;
  color: var(--kmg-light) !important;
  font-family: var(--kmg-sans) !important;
  transition: transform .35s ease, opacity .35s ease, filter .35s ease,
              border-color .35s ease, box-shadow .35s ease !important;

  /* REFLET MIROIR — Chrome, Edge, Safari (macOS + iOS), Samsung Internet */
  -webkit-box-reflect: below 8px
    linear-gradient(to bottom, transparent 0%, transparent 45%, rgba(0, 0, 0, .4) 100%);
}
html body#top.home-page #avis-clients .slider .item.active {
  border: 2px solid var(--kmg-gold) !important;
  box-shadow: 0 0 40px rgba(232, 204, 128, .38), 0 24px 50px rgba(20, 19, 17, .5) !important;
}

/* Pastille d'initiales (ajoutée par home-premium.js) */
html body#top.home-page #avis-clients .kmg-avatar {
  grid-area: av;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fbf6ea, #ddd2bd);
  border: 2px solid var(--kmg-gold);
  color: var(--kmg-ink);
  font-family: var(--kmg-sans);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: .02em;
  box-shadow: 0 0 0 4px rgba(232, 204, 128, .15);
}
html body#top.home-page #avis-clients .slider .item .name {
  grid-area: name;
  align-self: end;
  margin: 0 !important;
  text-align: left !important;
}
html body#top.home-page #avis-clients .slider .item .name,
html body#top.home-page #avis-clients .slider .item .name strong {
  font-family: var(--kmg-sans) !important;
  font-size: .95rem !important;
  font-weight: 500 !important;
  color: var(--kmg-light) !important;
  -webkit-text-fill-color: var(--kmg-light) !important;
}
html body#top.home-page #avis-clients .slider .item .rating {
  grid-area: stars;
  align-self: start;
  margin: 0 !important;
  line-height: 1 !important;
  text-align: left !important;
}
html body#top.home-page #avis-clients .slider .item .star {
  font-size: 17px !important;
  margin: 0 1px 0 0 !important;
  text-shadow: 0 0 6px rgba(232, 204, 128, .45) !important;
}
html body#top.home-page #avis-clients .slider .item p:not(.name):not(.review-meta):not(.review-reply) {
  grid-area: txt;
  margin: 12px 0 0 !important;
  font-family: var(--kmg-sans) !important;
  font-size: .86rem !important;
  line-height: 1.5 !important;
  text-align: center !important;
  color: var(--kmg-light) !important;
  -webkit-text-fill-color: var(--kmg-light) !important;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
html body#top.home-page #avis-clients .slider .item p:not(.name):not(.review-meta):not(.review-reply)::before {
  content: "\00AB\00A0";
  color: var(--kmg-gold);
  -webkit-text-fill-color: var(--kmg-gold);
}
html body#top.home-page #avis-clients .slider .item p:not(.name):not(.review-meta):not(.review-reply)::after {
  content: "\00A0\00BB";
  color: var(--kmg-gold);
  -webkit-text-fill-color: var(--kmg-gold);
}
html body#top.home-page #avis-clients .slider .item .review-meta {
  grid-area: meta;
  margin: 6px 0 0 !important;
  font-size: .7rem !important;
  color: rgba(246, 240, 227, .5) !important;
  -webkit-text-fill-color: rgba(246, 240, 227, .5) !important;
}
html body#top.home-page #avis-clients .slider .item .review-reply {
  grid-area: meta;
  font-size: .7rem !important;
  color: rgba(232, 204, 128, .8) !important;
  -webkit-text-fill-color: rgba(232, 204, 128, .8) !important;
}
html body#top.home-page #avis-clients .slider .item .emoji {
  display: none !important;
}

html body#top.home-page #avis-clients #prev,
html body#top.home-page #avis-clients #next {
  top: calc(50% - var(--kmg-avis-floor) / 2) !important;
}

/* Points de pagination */
html body#top.home-page #avis-clients .kmg-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: -96px 0 34px;
  position: relative;
  z-index: 5;
}
html body#top.home-page #avis-clients .kmg-dots[hidden] {
  display: none;
}
html body#top.home-page #avis-clients .kmg-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border-radius: 50%;
  border: 1.5px solid var(--kmg-gold);
  background: transparent;
  cursor: pointer;
  transition: background .25s ease, transform .25s ease;
}
html body#top.home-page #avis-clients .kmg-dot.is-active {
  background: var(--kmg-gold);
  transform: scale(1.15);
  box-shadow: 0 0 8px rgba(232, 204, 128, .6);
}

html body#top.home-page #open-popupavis {
  position: relative !important;
  z-index: 5 !important;
  font-size: .82rem !important;
  letter-spacing: .06em !important;
}

@supports not (-webkit-box-reflect: below) {
  html body#top.home-page #avis-clients .slider::before {
    background: radial-gradient(ellipse 40% 70% at 50% 0%, rgba(232, 204, 128, .32) 0%, transparent 70%);
  }
}

/* ==========================================================================
   9. CONTACT ET DEVIS — crème, photo devis à gauche, formulaire à droite
   (name / action / honeypot inchangés)
   ========================================================================== */

html body#top.home-page #contact {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  padding: clamp(50px, 6vw, 72px) 0 !important;
  margin: 0 !important;
  background:
    radial-gradient(ellipse at 85% 30%, rgba(232, 204, 128, .2), transparent 50%),
    var(--kmg-cream) !important;
  text-align: left !important;
}
html body#top.home-page #contact::before,
html body#top.home-page #contact::after {
  display: none !important;
}
html body#top.home-page #contact .kmg-contact-grid {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.35fr);
  gap: clamp(20px, 3vw, 40px);
  align-items: stretch;
}

/* Photo devis avec titre et bouton en surimpression */
html body#top.home-page #contact .devicontent {
  position: relative !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-end !important;
  align-items: flex-start !important;
  width: 100% !important;
  max-width: none !important;
  height: auto !important;
  min-height: 280px !important;
  margin: 0 !important;
  padding: 22px !important;
  box-sizing: border-box !important;
  background: var(--kmg-anth-700) !important;
  border: 1px solid rgba(232, 204, 128, .5) !important;
  border-radius: 14px !important;
  overflow: hidden !important;
  box-shadow: 0 22px 44px rgba(98, 91, 78, .25) !important;
  flex: none !important;
}
html body#top.home-page #contact .devicontent-image {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  max-height: none !important;
  margin: 0 !important;
  border-radius: 0 !important;
  overflow: hidden !important;
  z-index: 0;
}
html body#top.home-page #contact .devicontent-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(45, 44, 41, 0) 35%, rgba(45, 44, 41, .9) 100%);
}
html body#top.home-page #contact .devicontent-image img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  border-radius: 0 !important;
}
html body#top.home-page #contact .devicontent h5 {
  position: relative;
  z-index: 1;
  margin: 0 0 12px !important;
  font-family: var(--kmg-serif) !important;
  font-weight: 500 !important;
  font-size: 1.3rem !important;
  letter-spacing: .03em !important;
  text-align: left !important;
  color: var(--kmg-light) !important;
  -webkit-text-fill-color: var(--kmg-light) !important;
  background: none !important;
}
html body#top.home-page #contact .devicontent-actions {
  position: relative;
  z-index: 1;
  justify-content: flex-start !important;
  margin: 0 !important;
}

/* Formulaire */
html body#top.home-page #contact .contact-row {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}
html body#top.home-page #contact .contact-form {
  position: relative !important;
  display: grid !important;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px !important;
  align-content: center;
  width: 100% !important;
  max-width: none !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: border-box !important;
  background: transparent !important;
  background-image: none !important;
  border: 0 !important;
  box-shadow: none !important;
}
/* titre du formulaire : gardé pour l'accessibilité, masqué visuellement */
html body#top.home-page #contact .contact-form h5 {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  margin: -1px !important;
  padding: 0 !important;
}
html body#top.home-page #contact .input-group {
  grid-column: span 2;
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  background: #fffdf8 !important;
  border: 1px solid #e3d7bf !important;
  border-radius: 6px !important;
  box-shadow: 0 2px 6px rgba(98, 91, 78, .06) !important;
  transition: border-color .25s ease, box-shadow .25s ease !important;
}
html body#top.home-page #contact .input-group:nth-of-type(5),
html body#top.home-page #contact .input-group:nth-of-type(6) {
  grid-column: span 3;
}
html body#top.home-page #contact .input-group.textarea-group {
  grid-column: 1 / -1;
}
html body#top.home-page #contact .input-group:focus-within {
  border-color: var(--kmg-gold) !important;
  box-shadow: 0 0 0 3px rgba(232, 204, 128, .35) !important;
}
html body#top.home-page #contact .input-icon {
  display: none !important;
}
html body#top.home-page #contact .input-group input,
html body#top.home-page #contact .input-group textarea {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 12px 14px !important;
  box-sizing: border-box !important;
  font-family: var(--kmg-sans) !important;
  font-size: .86rem !important;
  line-height: 1.4 !important;
  color: var(--kmg-ink) !important;
  -webkit-text-fill-color: var(--kmg-ink) !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}
html body#top.home-page #contact .input-group textarea {
  min-height: 110px !important;
  resize: vertical;
}
html body#top.home-page #contact .input-group input::placeholder,
html body#top.home-page #contact .input-group textarea::placeholder {
  color: #9a917f !important;
  -webkit-text-fill-color: #9a917f !important;
  opacity: 1 !important;
  font-style: normal !important;
}

html body#top.home-page #contact .btn-submit,
html body#top.home-page #contact #btn-devis {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px;
  margin: 0 !important;
  padding: 12px 30px !important;
  border-radius: 999px !important;
  border: 1px solid rgba(255, 244, 210, .6) !important;
  border-image: none !important;
  background: var(--kmg-gold-fill) !important;
  -webkit-background-clip: border-box !important;
  background-clip: border-box !important;
  font-family: var(--kmg-sans) !important;
  font-weight: 600 !important;
  font-size: .86rem !important;
  letter-spacing: .02em !important;
  text-transform: none !important;
  color: var(--kmg-ink) !important;
  -webkit-text-fill-color: var(--kmg-ink) !important;
  box-shadow: 0 10px 24px rgba(201, 171, 98, .35), inset 0 1px 0 rgba(255, 255, 255, .5) !important;
  text-decoration: none !important;
  cursor: pointer;
}
html body#top.home-page #contact .btn-submit {
  grid-column: 1 / -1;
  justify-self: center;
}
html body#top.home-page #contact .btn-submit::before {
  content: "\f1d8";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
}
html body#top.home-page #contact .btn-submit:hover,
html body#top.home-page #contact #btn-devis:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(201, 171, 98, .45), inset 0 1px 0 rgba(255, 255, 255, .55) !important;
}

/* ==========================================================================
   10. MAILLAGE ZONES (SEO) — bande anthracite discrète
   ========================================================================== */

html body#top.home-page .kmg-zones-links {
  background: var(--kmg-anth-800) !important;
  border-top: 1px solid rgba(232, 204, 128, .2) !important;
  padding: 36px var(--kmg-gutter) 34px !important;
}
html body#top.home-page .kmg-zones-links__seo {
  color: rgba(246, 240, 227, .55) !important;
  font-family: var(--kmg-sans) !important;
}
html body#top.home-page .kmg-zones-links__title {
  font-family: var(--kmg-serif) !important;
  font-weight: 500 !important;
  margin-bottom: 18px !important;
}
html body#top.home-page .kmg-zone-tag {
  font-family: var(--kmg-sans) !important;
  border-radius: 999px !important;
  border-color: rgba(232, 204, 128, .45) !important;
  color: var(--kmg-light) !important;
  background: rgba(232, 204, 128, .06) !important;
}
html body#top.home-page .kmg-zone-tag:hover {
  background: var(--kmg-gold-fill) !important;
  color: var(--kmg-ink) !important;
}

/* ==========================================================================
   11. PIED DE PAGE — anthracite, 4 colonnes
   ========================================================================== */

html body#top.home-page > footer {
  position: relative;
  background:
    radial-gradient(ellipse at 15% 0%, rgba(232, 204, 128, .08), transparent 50%),
    var(--kmg-anth-900) !important;
  border-top: 0 !important;
  padding: 40px 0 18px !important;
}
html body#top.home-page > footer::before {
  content: none;
  display: none;
}
html body#top.home-page > footer .footer-content {
  width: min(var(--kmg-max), calc(100% - 2 * var(--kmg-gutter))) !important;
  max-width: none !important;
  margin: 0 auto !important;
  padding: 0 !important;
  background: transparent !important;
  background-color: transparent !important;
  display: block !important;
  text-align: left !important;
}
html body#top.home-page > footer .kmg-footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, .7fr) minmax(0, 1.2fr) minmax(0, 1fr);
  gap: clamp(20px, 3vw, 40px);
  align-items: start;
  padding-bottom: 24px;
}
html body#top.home-page > footer .kmg-footer-brand {
  display: flex;
  align-items: center;
  gap: 18px;
}
html body#top.home-page > footer .footer-logo {
  flex: 0 0 auto;
  margin: 0 !important;
  padding: 0 !important;
}
html body#top.home-page > footer .footer-logo img {
  height: 104px !important;
  width: auto !important;
  margin: 0 !important;
}
html body#top.home-page > footer .kmg-footer-brand__text p {
  margin: 0 !important;
  font-family: var(--kmg-sans) !important;
  text-align: left !important;
}
html body#top.home-page > footer .kmg-footer-name {
  font-family: var(--kmg-serif) !important;
  font-size: 1.35rem !important;
  color: var(--kmg-light) !important;
  line-height: 1.2 !important;
}
html body#top.home-page > footer .kmg-footer-tag {
  margin-top: 2px !important;
  font-size: .78rem !important;
  font-weight: 500 !important;
  color: var(--kmg-light) !important;
}
html body#top.home-page > footer .kmg-footer-desc {
  margin-top: 10px !important;
  font-size: .76rem !important;
  line-height: 1.5 !important;
  color: rgba(246, 240, 227, .7) !important;
}

html body#top.home-page > footer .kmg-footer-h,
html body#top.home-page > footer .footer-title {
  margin: 0 0 12px !important;
  padding: 0 !important;
  font-family: var(--kmg-sans) !important;
  font-size: .85rem !important;
  font-weight: 600 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  text-align: left !important;
  background: var(--kmg-gold-grad) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  color: var(--kmg-gold) !important;
  -webkit-text-fill-color: transparent !important;
}
html body#top.home-page > footer .footer-title-container {
  margin: 0 !important;
  padding: 0 !important;
  width: auto !important;
  display: block !important;
}
html body#top.home-page > footer .footer-title-container::before,
html body#top.home-page > footer .footer-title-container::after,
html body#top.home-page > footer .footer-title::before,
html body#top.home-page > footer .footer-title::after {
  display: none !important;
}

html body#top.home-page > footer .footer-nav {
  height: auto !important;
  line-height: normal !important;
  box-shadow: none !important;
  margin: 0 !important;
  padding: 0 0 0 clamp(0px, 2vw, 24px) !important;
  border: 0 !important;
  border-left: 1px solid rgba(232, 204, 128, .2) !important;
  background: none !important;
}
html body#top.home-page > footer .footer-nav ul {
  display: grid !important;
  gap: 6px !important;
  margin: 0 !important;
  padding: 0 !important;
  justify-content: start !important;
}
html body#top.home-page > footer .footer-nav li {
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
  text-align: left !important;
}
html body#top.home-page > footer .footer-nav a {
  font-family: var(--kmg-sans) !important;
  font-size: .8rem !important;
  line-height: 1.6 !important;
  height: auto !important;
  display: inline !important;
  color: rgba(246, 240, 227, .85) !important;
  -webkit-text-fill-color: rgba(246, 240, 227, .85) !important;
  background: none !important;
  padding: 0 !important;
}
html body#top.home-page > footer .footer-nav a:hover {
  color: var(--kmg-gold) !important;
  -webkit-text-fill-color: var(--kmg-gold) !important;
}

html body#top.home-page > footer .kmg-footer-info {
  padding-left: clamp(0px, 2vw, 24px);
  border-left: 1px solid rgba(232, 204, 128, .2);
}
html body#top.home-page > footer .kmg-footer-list {
  display: grid;
  gap: 7px;
  margin: 0 0 14px !important;
  padding: 0 !important;
  list-style: none;
}
html body#top.home-page > footer .kmg-footer-list li {
  list-style: none;
  font-family: var(--kmg-sans);
  font-size: .8rem;
  color: rgba(246, 240, 227, .85);
  text-align: left;
}
html body#top.home-page > footer .kmg-footer-list i {
  width: 18px;
  margin-right: 6px;
  color: var(--kmg-gold);
}
html body#top.home-page > footer .kmg-footer-list a {
  color: rgba(246, 240, 227, .9) !important;
  text-decoration: none;
}
html body#top.home-page > footer .footer-social {
  display: flex !important;
  gap: 10px !important;
  margin: 0 !important;
  justify-content: flex-start !important;
  flex-wrap: wrap;
}
html body#top.home-page > footer .footer-social a {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1.5px solid var(--kmg-gold);
  color: var(--kmg-gold) !important;
  font-size: .95rem;
  text-decoration: none;
  transition: background .25s ease, color .25s ease;
}
html body#top.home-page > footer .footer-social a:hover {
  background: var(--kmg-gold-fill);
  color: var(--kmg-ink) !important;
}
html body#top.home-page > footer .kmg-footer-photo {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(232, 204, 128, .5);
  box-shadow: 0 0 22px rgba(232, 204, 128, .15);
  aspect-ratio: 16 / 10;
}
html body#top.home-page > footer .kmg-footer-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* bas du footer : copyright centré sur toute la largeur, liens légaux centrés dessous */
html body#top.home-page > footer .kmg-footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 100%;
  padding-top: 16px;
  border-top: 1px solid rgba(232, 204, 128, .15);
  text-align: center;
}
html body#top.home-page > footer .kmg-footer-bottom p {
  margin: 0 !important;
  padding: 0 !important;
  width: auto !important;
  font-family: var(--kmg-sans) !important;
  font-size: .76rem !important;
  line-height: 1.6 !important;
  letter-spacing: .02em;
  text-align: center !important;
  color: rgba(246, 240, 227, .6) !important;
}
html body#top.home-page > footer .kmg-footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  column-gap: 10px;
  row-gap: 2px;
}
html body#top.home-page > footer .kmg-footer-legal a.footer-legal {
  margin: 0 !important;
  font-size: .76rem !important;
  font-weight: 400 !important;
  text-decoration: none;
  color: rgba(246, 240, 227, .78) !important;
  transition: color .25s ease;
}
html body#top.home-page > footer .kmg-footer-legal a.footer-legal:hover,
html body#top.home-page > footer .kmg-footer-legal a.footer-legal:focus-visible {
  color: var(--kmg-gold) !important;
}
html body#top.home-page > footer .kmg-footer-sep {
  color: rgba(232, 204, 128, .4);
}
html body#top.home-page > footer .kmg-footer-legal .footer-admin-link {
  margin-left: 0 !important;
}
/* téléphone : liens empilés et centrés, sans séparateur orphelin, texte lisible */
@media screen and (max-width: 480px) {
  html body#top.home-page > footer .kmg-footer-bottom p,
  html body#top.home-page > footer .kmg-footer-legal a.footer-legal {
    font-size: 12px !important;
  }
  html body#top.home-page > footer .kmg-footer-legal {
    flex-direction: column;
    row-gap: 4px;
  }
  html body#top.home-page > footer .kmg-footer-sep {
    display: none;
  }
}

/* Retour en haut */
html body#top.home-page #kmg-backtotop {
  background: rgba(45, 44, 41, .9) !important;
  border: 1.5px solid var(--kmg-gold) !important;
  color: var(--kmg-gold) !important;
  border-radius: 50% !important;
  box-shadow: 0 8px 22px rgba(20, 19, 17, .3) !important;
}

/* ==========================================================================
   12. RESPONSIVE
   ========================================================================== */

@media screen and (min-width: 1024px) and (max-width: 1199px) {
  html body#top.home-page > footer .kmg-footer-grid {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, .75fr) minmax(0, 1.2fr) minmax(0, .95fr);
    gap: 20px;
  }
}

@media screen and (max-width: 1023px) {
  html body#top.home-page > footer .kmg-footer-grid {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, .8fr) minmax(0, 1.2fr);
  }
}

/* Photo du footer masquée seulement entre 769 et 1023px (grille à 3 colonnes) ;
   sur téléphone elle réapparaît en pleine largeur (voir bloc 768px). */
@media screen and (min-width: 769px) and (max-width: 1023px) {
  html body#top.home-page > footer .kmg-footer-photo {
    display: none;
  }
}

@media screen and (max-width: 1023px) {
  html body#top.home-page {
    --kmg-header-h: 68px;
    --kmg-logo-h: 96px;
  }
  html body#top.home-page > header {
    padding-left: var(--kmg-edge) !important;
  }
  html body#top.home-page #zone-intervention .kmg-zone-intervention {
    grid-template-columns: 1fr !important;
  }
  html body#top.home-page #zone-intervention .kmg-zone-intervention__map {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
  }
  html body#top.home-page #zone-intervention .kmg-zone-map-frame {
    height: clamp(240px, 60vw, 340px) !important;
    max-height: none !important;
    aspect-ratio: auto !important;
  }
  html body#top.home-page #contact .kmg-contact-grid {
    grid-template-columns: 1fr;
  }
  html body#top.home-page #contact .devicontent {
    min-height: 240px !important;
  }
}

@media screen and (max-width: 768px) {
  html body#top.home-page {
    --kmg-header-h: 64px;
    --kmg-logo-h: 80px;
  }
  html body#top.home-page #top.hero {
    min-height: 100svh !important;
  }
  html body#top.home-page #top.hero .overlay {
    background:
      linear-gradient(180deg, rgba(38, 37, 35, .55) 0%, rgba(38, 37, 35, .82) 45%, rgba(38, 37, 35, .9) 100%) !important;
  }
  html body#top.home-page #top.hero .kmg-hero__inner {
    max-width: none;
    padding: calc(var(--kmg-header-h) + 74px) var(--kmg-gutter) 130px;
  }
  html body#top.home-page #top.hero h1 {
    font-size: clamp(2.5rem, 12vw, 3.4rem) !important;
  }
  html body#top.home-page #telephone-defilant {
    font-size: .76rem !important;
    padding: 5px 12px !important;
    top: calc(var(--kmg-header-h) + 12px) !important;
    right: var(--kmg-gutter) !important;
  }

  html body#top.home-page .kmg-features ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 18px;
  }
  html body#top.home-page .kmg-features li:nth-child(3) {
    border-left: 0;
  }


  html body#top.home-page #realisations .real-slider-wrap {
    padding: 0 40px 90px !important;
  }
  html body#top.home-page #realisations .real-slider::after {
    display: none;
  }

  html body#top.home-page #avis-clients {
    --kmg-avis-h: 360px;
    --kmg-avis-floor: 120px;
  }
  html body#top.home-page #avis-clients .slider-wrap {
    padding: 0 44px !important;
  }
  html body#top.home-page #avis-clients .slider .item {
    width: 270px !important;
    max-width: 270px !important;
    height: 200px !important;
    padding: 16px 16px !important;
  }
  html body#top.home-page #avis-clients .kmg-dots {
    margin-top: -84px;
  }

  html body#top.home-page #contact .contact-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  html body#top.home-page #contact .input-group,
  html body#top.home-page #contact .input-group:nth-of-type(5),
  html body#top.home-page #contact .input-group:nth-of-type(6) {
    grid-column: span 1;
  }
  html body#top.home-page #contact .input-group:nth-of-type(2) {
    grid-column: 1 / -1;
  }

  html body#top.home-page > footer .kmg-footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  html body#top.home-page > footer .kmg-footer-brand {
    grid-column: 1 / -1;
  }
  html body#top.home-page > footer .footer-nav {
    border-left: 0 !important;
    padding-left: 0 !important;
  }
  html body#top.home-page > footer .kmg-footer-photo {
    grid-column: 1 / -1;
    width: 100%;
    max-width: 560px;
    justify-self: center;
    aspect-ratio: 2 / 1;
    margin-top: 6px;
  }
}

@media screen and (max-width: 480px) {
  html body#top.home-page {
    --kmg-header-h: 62px;
    --kmg-logo-h: 74px;
  }
  html body#top.home-page .kmg-burger {
    width: 42px !important;
    height: 42px !important;
    top: calc((var(--kmg-header-h) - 42px) / 2) !important;
  }
  html body#top.home-page .kmg-head h1::before,
  html body#top.home-page .kmg-head h1::after,
  html body#top.home-page .kmg-head h2::before,
  html body#top.home-page .kmg-head h2::after {
    flex-basis: 34px;
  }
  html body#top.home-page .kmg-features li {
    font-size: .78rem;
  }
  html body#top.home-page #avis-clients .slider-wrap {
    padding: 0 30px !important;
  }
  html body#top.home-page #avis-clients .slider .item {
    width: 240px !important;
    max-width: 240px !important;
    height: 210px !important;
  }
  html body#top.home-page #avis-clients #prev,
  html body#top.home-page #avis-clients #next,
  html body#top.home-page #real-prev,
  html body#top.home-page #real-next {
    width: 38px !important;
    height: 38px !important;
    font-size: .95rem !important;
  }
  html body#top.home-page #contact .contact-form {
    grid-template-columns: 1fr;
  }
  html body#top.home-page #contact .input-group,
  html body#top.home-page #contact .input-group:nth-of-type(n) {
    grid-column: 1 / -1;
  }
  /* Navigation et Informations côte à côte sur téléphone */
  html body#top.home-page > footer .kmg-footer-grid {
    grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr);
    column-gap: 14px;
  }
  html body#top.home-page > footer .kmg-footer-info {
    padding-left: 12px;
  }
  html body#top.home-page > footer .kmg-footer-list li {
    display: flex;
    align-items: baseline;
    font-size: .74rem;
  }
  html body#top.home-page > footer .kmg-footer-list i {
    flex: 0 0 14px;
    width: 14px;
    margin-right: 6px;
  }
  html body#top.home-page > footer .kmg-footer-list a {
    min-width: 0;
    overflow-wrap: anywhere;
  }
  html body#top.home-page > footer .footer-social {
    gap: 8px !important;
  }
  html body#top.home-page > footer .footer-social a {
    width: 32px;
    height: 32px;
  }
}

@media screen and (max-width: 362px) {
  html body#top.home-page {
    --kmg-header-h: 58px;
    --kmg-logo-h: 64px;
  }
  html body#top.home-page .kmg-burger {
    width: 40px !important;
    height: 40px !important;
    top: calc((var(--kmg-header-h) - 40px) / 2) !important;
  }
  html body#top.home-page #avis-clients .slider .item {
    width: 220px !important;
    max-width: 220px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  html body#top.home-page #services .service,
  html body#top.home-page #services .service img,
  html body#top.home-page .kmg-btn {
    transition: none !important;
  }
}

/* ==========================================================================
   13. CORRECTIONS MAQUETTE (27/10/2026)
   Courbes entre sections, anthracite plus profond, cartes de prestations
   verticales, carrousel des réalisations aéré + halo doré, avis élargis.
   Bloc placé en dernier : il prime sur les règles précédentes.
   ========================================================================== */

:root {
  --kmg-edge-dark: #1f1e1c;      /* bord des sections anthracite (raccord des courbes) */
  --kmg-anth-a: #262421;         /* cœur des sections anthracite */
  --kmg-anth-b: #2c2a26;         /* reliefs / cartes */
  --kmg-footer: #1b1a18;         /* pied de page */
}

html body#top.home-page {
  background: var(--kmg-edge-dark) !important;
}

/* ---------- Titres de section plus grands (proportions maquette) ---------- */
html body#top.home-page .kmg-head h1,
html body#top.home-page .kmg-head h2,
html body#top.home-page .kmg-head h1 a {
  font-size: clamp(2.1rem, 3.8vw, 3.3rem) !important;
}
html body#top.home-page .kmg-head {
  margin-bottom: clamp(30px, 4vw, 50px);
}

/* ---------- Courbes de transition entre les sections ---------- */
html body#top.home-page .kmg-curve {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  height: clamp(38px, 6.5vw, 96px);
  margin: -1px 0;
  line-height: 0;
  pointer-events: none;
}
html body#top.home-page .kmg-curve svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}
html body#top.home-page .kmg-curve__line {
  fill: none;
  stroke: url(#kmgWaveGold);
  stroke-width: 3px;
  filter: drop-shadow(0 0 5px rgba(232, 204, 128, .55));
}
/* fond = section du dessus, remplissage = section du dessous */
html body#top.home-page .kmg-curve--fd {
  height: clamp(34px, 4.7vw, 68px);
  background: var(--kmg-cream);
}
html body#top.home-page .kmg-curve--fd .kmg-curve__fill { fill: var(--kmg-edge-dark); }
html body#top.home-page .kmg-curve--pr { background: var(--kmg-edge-dark); }
html body#top.home-page .kmg-curve--pr .kmg-curve__fill { fill: var(--kmg-edge-dark); }
html body#top.home-page .kmg-curve--pr .kmg-curve__line { stroke-width: 2px; }
html body#top.home-page .kmg-curve--rz { background: linear-gradient(var(--kmg-edge-dark) calc(100% - 2px), var(--kmg-cream) 0); }
html body#top.home-page .kmg-curve--rz .kmg-curve__fill { fill: var(--kmg-cream); }
html body#top.home-page .kmg-curve--za { background: var(--kmg-cream); }
html body#top.home-page .kmg-curve--za .kmg-curve__fill { fill: var(--kmg-edge-dark); }
html body#top.home-page .kmg-curve--ac { background: var(--kmg-edge-dark); }
html body#top.home-page .kmg-curve--ac .kmg-curve__fill { fill: var(--kmg-cream); }
html body#top.home-page .kmg-curve--cf { background: var(--kmg-cream); }
html body#top.home-page .kmg-curve--cf .kmg-curve__fill { fill: var(--kmg-footer); }
html body#top.home-page .kmg-curve--cf .kmg-curve__line { stroke-width: 4px; }

/* The SVG's lower edge must blend with its destination, not its source.
   Correct the container background itself; no covering pseudo-element. */
html body#top.home-page :is(.kmg-curve--cf, .kmg-service-curve--footer, .devis-wave--footer) {
  background: linear-gradient(var(--kmg-cream) calc(100% - 2px), var(--kmg-footer) 0);
}

html body#top.home-page .kmg-features {
  background: var(--kmg-cream) !important;
  padding-bottom: 18px;
}

/* ---------- Anthracite plus profond, éclairages localisés ---------- */
html body#top.home-page > header {
  background: linear-gradient(180deg, rgba(27, 26, 24, .97), rgba(33, 31, 29, .94)) !important;
}
html body#top.home-page #top.hero .overlay {
  background:
    linear-gradient(90deg,
      rgba(27, 26, 24, .96) 0%,
      rgba(27, 26, 24, .88) 28%,
      rgba(27, 26, 24, .5) 50%,
      rgba(27, 26, 24, .1) 70%,
      rgba(27, 26, 24, 0) 100%),
    linear-gradient(180deg, rgba(27, 26, 24, .4) 0%, rgba(27, 26, 24, 0) 25%) !important;
}

html body#top.home-page #services {
  background:
    radial-gradient(ellipse 45% 35% at 50% 18%, rgba(232, 204, 128, .09), transparent 70%),
    radial-gradient(ellipse 30% 40% at 12% 70%, rgba(232, 204, 128, .05), transparent 70%),
    linear-gradient(180deg, var(--kmg-edge-dark) 0%, var(--kmg-anth-a) 45%, var(--kmg-edge-dark) 100%) !important;
}

/* ---------- RÉALISATIONS : carrousel aéré, perspective, halo doré, reflet ---------- */
html body#top.home-page #realisations {
  --kmg-cw: 290px;          /* largeur de la carte centrale (format vertical) */
  --kmg-ch: 362px;          /* hauteur */
  --kmg-r1: 98px;          /* écart supplémentaire des voisines (léger chevauchement) */
  --kmg-r2: 116px;          /* écart supplémentaire des cartes éloignées */
  --kmg-tilt: 28deg;        /* orientation des voisines */
  --kmg-tilt2: 38deg;
  /* haut conservé : la courbe dorée du dessus chevauche le début de la section */
  padding: clamp(30px, 4vw, 50px) 0 clamp(10px, 1.4vw, 20px) !important;
  background:
    radial-gradient(ellipse 34% 40% at 50% 46%, rgba(232, 204, 128, .2) 0%, rgba(232, 204, 128, .06) 45%, transparent 72%),
    radial-gradient(ellipse 60% 22% at 50% 78%, rgba(232, 204, 128, .07), transparent 70%),
    linear-gradient(180deg, var(--kmg-edge-dark) 0%, var(--kmg-anth-a) 50%, var(--kmg-edge-dark) 100%) !important;
  border-top: 0 !important;
  overflow: hidden !important;
}
html body#top.home-page #realisations .kmg-head {
  margin-bottom: clamp(24px, 2.8vw, 40px);
}
html body#top.home-page #realisations .real-slider-wrap {
  max-width: none !important;
  width: 100% !important;
  /* hauteur visible du reflet (58 % de la carte) + marge avant le bouton */
  padding: 0 0 calc(var(--kmg-ch) * .58 + 14px) !important;
}
html body#top.home-page #realisations .real-slider {
  height: calc(var(--kmg-ch) + 40px) !important;
  perspective: 1600px !important;
  perspective-origin: 50% 50% !important;
}
/* spot doré fixe derrière la position centrale */
html body#top.home-page #realisations .real-slider::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: calc(var(--kmg-cw) * 1.9);
  height: calc(var(--kmg-ch) * 1.7);
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse at center, rgba(232, 204, 128, .32) 0%, rgba(232, 204, 128, .12) 38%, transparent 68%);
  pointer-events: none;
  z-index: 0;
}
/* sol miroir : ligne de lumière au pied des cartes */
html body#top.home-page #realisations .real-slider::after {
  display: block !important;
  left: 4% !important;
  right: 4% !important;
  top: calc(50% + var(--kmg-ch) / 2 + 4px) !important;
  height: calc(var(--kmg-ch) * .62) !important;
  background:
    radial-gradient(ellipse 42% 18% at 50% 0%, rgba(232, 204, 128, .28), transparent 75%),
    linear-gradient(90deg, transparent, rgba(232, 204, 128, .35) 30%, rgba(232, 204, 128, .5) 50%, rgba(232, 204, 128, .35) 70%, transparent) top / 100% 1px no-repeat !important;
}

@media screen and (min-width: 582px) {
  html body#top.home-page #realisations .real-card {
    width: var(--kmg-cw) !important;
    height: var(--kmg-ch) !important;
    margin-left: calc(var(--kmg-cw) / -2) !important;
    margin-top: calc(var(--kmg-ch) / -2) !important;
  }
}
html body#top.home-page #realisations .real-card {
  transition: transform .5s ease, opacity .5s ease, filter .5s ease,
              translate .5s ease, rotate .5s ease !important;
  -webkit-box-reflect: below 4px
    linear-gradient(to bottom, transparent 0%, transparent 52%, rgba(0, 0, 0, .34) 100%) !important;
}

/* voisines : écart + orientation (s'ajoutent au mouvement du script) */
html body#top.home-page #realisations .real-card:has(+ .real-card.is-active) {
  translate: calc(-1 * var(--kmg-r1)) 0;
  rotate: y var(--kmg-tilt);
}
html body#top.home-page #realisations .real-card.is-active + .real-card {
  translate: var(--kmg-r1) 0;
  rotate: y calc(-1 * var(--kmg-tilt));
}
html body#top.home-page #realisations .real-card:has(+ .real-card + .real-card.is-active) {
  translate: calc(-1 * var(--kmg-r2)) 0;
  rotate: y var(--kmg-tilt2);
}
html body#top.home-page #realisations .real-card.is-active + .real-card + .real-card {
  translate: var(--kmg-r2) 0;
  rotate: y calc(-1 * var(--kmg-tilt2));
}
/* halo doré venant de l'arrière de la carte centrale (suit la carte active) */
html body#top.home-page #realisations .real-card::before {
  content: "";
  position: absolute;
  inset: -16% -12%;
  z-index: -1;
  border-radius: 40%;
  background: radial-gradient(ellipse at center,
    rgba(245, 230, 163, .75) 0%,
    rgba(232, 204, 128, .45) 32%,
    rgba(232, 204, 128, .12) 58%,
    transparent 72%);
  filter: blur(22px);
  opacity: 0;
  transition: opacity .5s ease;
  pointer-events: none;
}
html body#top.home-page #realisations .real-card.is-active::before {
  opacity: 1;
}
html body#top.home-page #realisations .real-card-front {
  border: 1px solid rgba(232, 204, 128, .5) !important;
  box-shadow: 0 26px 46px rgba(12, 11, 10, .55) !important;
}
html body#top.home-page #realisations .real-card.is-active .real-card-front {
  border: 2px solid var(--kmg-gold) !important;
  box-shadow:
    0 0 0 1px rgba(255, 240, 200, .25),
    0 0 46px rgba(232, 204, 128, .55),
    0 30px 60px rgba(12, 11, 10, .55) !important;
}
/* cartes latérales nettes et lumineuses comme sur la maquette */
@media screen and (min-width: 582px) {
  html body#top.home-page #realisations .real-card:has(+ .real-card.is-active),
  html body#top.home-page #realisations .real-card.is-active + .real-card {
    opacity: .92 !important;
    filter: brightness(.82) !important;
  }
  html body#top.home-page #realisations .real-card:has(+ .real-card + .real-card.is-active),
  html body#top.home-page #realisations .real-card.is-active + .real-card + .real-card {
    opacity: .75 !important;
    filter: brightness(.62) !important;
  }
}
/* flèches aux extrémités, centrées sur les cartes */
html body#top.home-page #real-prev,
html body#top.home-page #real-next {
  top: calc((var(--kmg-ch) + 40px) / 2) !important;
  width: 52px !important;
  height: 52px !important;
  font-size: 1.15rem !important;
}
html body#top.home-page #real-prev { left: clamp(10px, 3vw, 48px) !important; }
html body#top.home-page #real-next { right: clamp(10px, 3vw, 48px) !important; }
html body#top.home-page #realisations .kmg-center {
  position: relative;
  z-index: 5;
  margin-top: 0;
}

/* ---------- ZONE : crème homogène, carte nette, encart anthracite lumineux ---------- */
html body#top.home-page #zone-intervention {
  padding: clamp(24px, 3.5vw, 44px) 0 clamp(36px, 4.5vw, 56px) !important;
  /* crème uni : plus de tache dorée semi-transparente derrière les colonnes */
  background: var(--kmg-cream) !important;
}
/* le conteneur (overflow:hidden hérité) coupait net l'ombre de l'encart :
   c'était le rectangle plus foncé visible derrière « Pourquoi nous choisir ? » */
html body#top.home-page #zone-intervention > .kmg-container {
  overflow: visible !important;
}
html body#top.home-page #zone-intervention .kmg-zone-intervention {
  grid-template-columns: minmax(0, 1.3fr) minmax(320px, 1fr) !important;
}
/* titre : même dégradé doré que « Nos services » / « Nos réalisations » ;
   fin liseré bronze pour rester lisible sur le crème */
html body#top.home-page #zone-intervention .kmg-head .kmg-gold {
  background: var(--kmg-gold-grad) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  filter: saturate(1.12) drop-shadow(0 1px 0 rgba(140, 122, 60, .55)) drop-shadow(0 0 5px rgba(232, 204, 128, .35));
}

/* carte Google Maps : nette, sans voile ni bords fondus */
html body#top.home-page #zone-intervention .kmg-zone-map-frame {
  height: clamp(300px, 30vw, 420px) !important;
  border: 1px solid rgba(232, 204, 128, .7) !important;
  border-radius: 22px !important;
  box-shadow:
    0 0 0 4px rgba(232, 204, 128, .12),
    0 16px 30px -14px rgba(45, 44, 41, .35) !important;
  -webkit-mask-image: none !important;
  mask-image: none !important;
}
/* courbe zone -> avis : sa dernière rangée de pixels laissait passer le crème
   (fine ligne claire en haut des avis) ; le bas du fond est anthracite, sous le tracé */
html body#top.home-page .kmg-curve--za {
  background: linear-gradient(180deg, var(--kmg-cream) calc(100% - 3px), var(--kmg-edge-dark) calc(100% - 3px)) !important;
}
/* effet carte ancienne (tons beiges), plus léger qu'avant et sans voile :
   le contraste est conservé pour garder routes et villes lisibles */
html body#top.home-page #zone-intervention .kmg-zone-map-frame iframe {
  filter: grayscale(.4) sepia(.35) saturate(1.1) contrast(1.02) !important;
}

/* encart anthracite : contour doré fin, ombre courte et localisée */
html body#top.home-page #zone-intervention .kmg-engagements {
  background:
    radial-gradient(ellipse at 80% 0%, rgba(232, 204, 128, .12), transparent 55%),
    linear-gradient(160deg, var(--kmg-anth-b) 0%, var(--kmg-edge-dark) 100%) !important;
  border: 1px solid rgba(240, 213, 127, .72) !important;
  border-radius: 16px !important;
  box-shadow:
    0 0 0 1px rgba(255, 244, 205, .06),
    inset 0 1px 0 rgba(255, 240, 200, .14),
    0 18px 34px -14px rgba(31, 30, 28, .5) !important;
}
html body#top.home-page #zone-intervention .kmg-engagements h2 {
  margin-bottom: 22px !important;
  filter: brightness(1.18) saturate(1.12) drop-shadow(0 0 5px rgba(232, 204, 128, .35));
}
html body#top.home-page #zone-intervention .kmg-engagements__list {
  gap: 18px !important;
}
html body#top.home-page #zone-intervention .kmg-engagement__icon {
  flex: 0 0 34px !important;
  width: 34px !important;
  height: 34px !important;
}
html body#top.home-page #zone-intervention .kmg-engagement__icon i {
  font-size: 1.35rem !important;
  filter: brightness(1.15) drop-shadow(0 0 6px rgba(232, 204, 128, .55));
}
html body#top.home-page #zone-intervention .kmg-engagement h3 {
  font-size: .95rem !important;
  font-weight: 600 !important;
  color: #fbf6ea !important;
  -webkit-text-fill-color: #fbf6ea !important;
}
html body#top.home-page #zone-intervention .kmg-engagement p {
  margin-top: 2px !important;
  font-size: .8rem !important;
  line-height: 1.5 !important;
  color: rgba(246, 240, 227, .82) !important;
  -webkit-text-fill-color: rgba(246, 240, 227, .82) !important;
}

/* ---------- AVIS : même univers que « Nos réalisations » ----------
   Cartes verticales en perspective, chevauchement léger, contour doré,
   reflet progressif. script.js déplace toujours les cartes et
   home-premium.js indique leur position (data-kmg-pos) : seul le rendu
   visuel est piloté ici. */
html body#top.home-page #avis-clients {
  --kmg-avis-cw: 290px;     /* largeur des cartes */
  --kmg-avis-ch: 330px;     /* hauteur des cartes */
  --kmg-avis-top: 16px;     /* marge au-dessus des cartes (halo) */
  --kmg-avis-mirror: calc(var(--kmg-avis-ch) * .58 + 10px); /* zone visible du reflet */
  --kmg-a1: 237px;          /* décalage des voisines (léger chevauchement) */
  --kmg-a2: 419px;          /* décalage des cartes éloignées */
  --kmg-avis-tilt: 38deg;   /* mêmes inclinaisons que les réalisations */
  --kmg-avis-tilt2: 50deg;
  --kmg-avis-s1: .8;
  --kmg-avis-s2: .63;
  padding: clamp(14px, 1.8vw, 26px) 0 clamp(8px, 1.2vw, 16px) !important;
  /* fond uniforme : même anthracite que les courbes voisines, halo central conservé */
  background:
    radial-gradient(ellipse 26% 30% at 50% 46%, rgba(232, 204, 128, .13) 0%, rgba(232, 204, 128, .045) 48%, transparent 76%),
    var(--kmg-edge-dark) !important;
}
html body#top.home-page #avis-clients .kmg-head {
  margin-bottom: clamp(20px, 2.4vw, 34px);
}
/* titre : même traitement doré lumineux que « Nos services » */
html body#top.home-page #avis-clients .kmg-head h1 .kmg-gold {
  filter: brightness(1.18) saturate(1.12) drop-shadow(0 0 5px rgba(232, 204, 128, .35));
}
html body#top.home-page #avis-clients .kmg-head__sub {
  color: rgba(255, 250, 240, .96) !important;
  -webkit-text-fill-color: rgba(255, 250, 240, .96) !important;
}

html body#top.home-page #avis-clients .slider-wrap {
  max-width: none !important;
  padding: 0 !important;
}
/* hauteur = halo + carte + reflet : la pagination vient ensuite, hors du reflet */
html body#top.home-page #avis-clients .slider {
  height: calc(var(--kmg-avis-top) + var(--kmg-avis-ch) + var(--kmg-avis-mirror)) !important;
  padding: var(--kmg-avis-top) 0 var(--kmg-avis-mirror) !important;
  overflow: visible !important;
  perspective: 1600px !important;
  perspective-origin: 50% 50% !important;
  transform-style: flat !important;
}
/* spot doré resserré derrière la carte centrale */
html body#top.home-page #avis-clients .slider::before {
  content: "" !important;
  display: block !important;
  position: absolute !important;
  left: 50% !important;
  right: auto !important;
  top: calc(var(--kmg-avis-top) + var(--kmg-avis-ch) / 2) !important;
  bottom: auto !important;
  width: calc(var(--kmg-avis-cw) * 1.5) !important;
  height: calc(var(--kmg-avis-ch) * 1.18) !important;
  transform: translate(-50%, -50%) !important;
  background: radial-gradient(ellipse at center,
    rgba(245, 230, 163, .22) 0%,
    rgba(232, 204, 128, .11) 38%,
    rgba(232, 204, 128, .035) 60%,
    transparent 76%) !important;
  filter: blur(8px);
  pointer-events: none;
  z-index: 0;
}
/* sol lumineux léger, ouvert en fondu (aucune ligne horizontale) */
html body#top.home-page #avis-clients .slider::after {
  content: "" !important;
  display: block !important;
  position: absolute !important;
  left: 4% !important;
  right: 4% !important;
  top: calc(var(--kmg-avis-top) + var(--kmg-avis-ch) - 24px) !important;
  bottom: auto !important;
  height: calc(var(--kmg-avis-ch) * .72) !important;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 12%, #000 55%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 12%, #000 55%, transparent 100%);
  background: radial-gradient(ellipse 54% 24% at 50% 9%,
    rgba(245, 230, 163, .24) 0%,
    rgba(232, 204, 128, .10) 34%,
    rgba(232, 204, 128, .025) 62%,
    transparent 78%) !important;
  pointer-events: none;
  z-index: 0;
}

/* carte d'avis verticale : pastille, nom, étoiles, commentaire, date */
html body#top.home-page #avis-clients .slider .item {
  grid-template-columns: 1fr !important;
  grid-template-areas:
    "av"
    "name"
    "stars"
    "txt"
    "meta" !important;
  justify-items: center;
  align-content: center;
  row-gap: 6px !important;
  width: var(--kmg-avis-cw) !important;
  max-width: var(--kmg-avis-cw) !important;
  height: var(--kmg-avis-ch) !important;
  padding: 30px 26px !important;
  background:
    linear-gradient(165deg, #3d3a34 0%, #2f2d29 55%, #282623 100%) !important;
  border: 1px solid rgba(240, 213, 127, .82) !important;
  border-radius: 12px !important;
  box-shadow:
    0 0 0 1px rgba(255, 244, 205, .18),
    0 0 13px rgba(232, 204, 128, .18),
    0 18px 32px rgba(8, 8, 7, .38),
    inset 0 1px 0 rgba(255, 240, 200, .14) !important;
  /* le script écrit un transform inline : la position visuelle est reprise
     ici par translate / rotate / scale selon data-kmg-pos */
  transform: none !important;
  transition: opacity .5s ease, filter .5s ease, translate .5s ease,
              rotate .5s ease, scale .5s ease, box-shadow .35s ease, border-color .35s ease !important;
  will-change: translate, rotate, scale;
  /* reflet : le masque s'applique avant retournement, 100 % = contact avec la carte */
  -webkit-box-reflect: below 5px
    linear-gradient(to bottom,
      transparent 0%,
      transparent 42%,
      rgba(0, 0, 0, .025) 52%,
      rgba(0, 0, 0, .10) 66%,
      rgba(0, 0, 0, .26) 84%,
      rgba(0, 0, 0, .46) 100%) !important;
}
html body#top.home-page #avis-clients .slider .item.active {
  border: 2px solid #f0d57f !important;
  box-shadow:
    0 0 0 1px rgba(255, 248, 220, .58),
    0 0 9px 2px rgba(255, 235, 164, .82),
    0 0 26px 7px rgba(232, 204, 128, .34),
    0 20px 34px rgba(8, 8, 7, .38),
    inset 0 1px 0 rgba(255, 240, 200, .16) !important;
}
html body#top.home-page #avis-clients .kmg-avatar {
  width: 62px;
  height: 62px;
  margin-bottom: 6px;
  font-size: 1.2rem;
  box-shadow: 0 0 0 4px rgba(232, 204, 128, .18), 0 0 14px rgba(232, 204, 128, .35);
}
html body#top.home-page #avis-clients .slider .item .name,
html body#top.home-page #avis-clients .slider .item .rating {
  align-self: center !important;
  text-align: center !important;
}
html body#top.home-page #avis-clients .slider .item .name,
html body#top.home-page #avis-clients .slider .item .name strong {
  font-size: 1.05rem !important;
  font-weight: 600 !important;
  color: #fbf6ea !important;
  -webkit-text-fill-color: #fbf6ea !important;
}
html body#top.home-page #avis-clients .slider .item .star {
  font-size: 19px !important;
  margin: 0 1.5px !important;
}
html body#top.home-page #avis-clients .slider .item .star.active {
  color: #f0d57f !important;
  -webkit-text-fill-color: #f0d57f !important;
  text-shadow: 0 0 6px rgba(240, 213, 127, .7) !important;
}
html body#top.home-page #avis-clients .slider .item .star:not(.active) {
  color: rgba(246, 240, 227, .28) !important;
  -webkit-text-fill-color: rgba(246, 240, 227, .28) !important;
  text-shadow: none !important;
}
html body#top.home-page #avis-clients .slider .item p:not(.name):not(.review-meta):not(.review-reply) {
  margin: 14px 0 0 !important;
  font-size: .98rem !important;
  line-height: 1.6 !important;
  color: #f6f0e3 !important;
  -webkit-text-fill-color: #f6f0e3 !important;
  -webkit-line-clamp: 6;
}
html body#top.home-page #avis-clients .slider .item .review-meta {
  margin: 10px 0 0 !important;
  font-size: .76rem !important;
  letter-spacing: .04em;
  color: rgba(246, 240, 227, .66) !important;
  -webkit-text-fill-color: rgba(246, 240, 227, .66) !important;
}

/* positions (posées par home-premium.js) : écart, orientation, profondeur */
html body#top.home-page #avis-clients .slider .item[data-kmg-pos="c"] {
  translate: 0 0;
  rotate: y 0deg;
  scale: 1;
}
html body#top.home-page #avis-clients .slider .item[data-kmg-pos="l1"] {
  translate: calc(-1 * var(--kmg-a1)) 0;
  rotate: y var(--kmg-avis-tilt);
  scale: var(--kmg-avis-s1);
}
html body#top.home-page #avis-clients .slider .item[data-kmg-pos="r1"] {
  translate: var(--kmg-a1) 0;
  rotate: y calc(-1 * var(--kmg-avis-tilt));
  scale: var(--kmg-avis-s1);
}
html body#top.home-page #avis-clients .slider .item[data-kmg-pos="l2"] {
  translate: calc(-1 * var(--kmg-a2)) 0;
  rotate: y var(--kmg-avis-tilt2);
  scale: var(--kmg-avis-s2);
}
html body#top.home-page #avis-clients .slider .item[data-kmg-pos="r2"] {
  translate: var(--kmg-a2) 0;
  rotate: y calc(-1 * var(--kmg-avis-tilt2));
  scale: var(--kmg-avis-s2);
}
/* voisines visibles mais en retrait, sans voile gris ni flou */
html body#top.home-page #avis-clients .slider .item[data-kmg-pos="l1"],
html body#top.home-page #avis-clients .slider .item[data-kmg-pos="r1"] {
  opacity: .97 !important;
  filter: brightness(.86) contrast(1.04) !important;
}
html body#top.home-page #avis-clients .slider .item[data-kmg-pos="l2"],
html body#top.home-page #avis-clients .slider .item[data-kmg-pos="r2"] {
  opacity: .85 !important;
  filter: brightness(.7) contrast(1.03) !important;
}

/* flèches centrées sur les cartes, aux extrémités */
html body#top.home-page #avis-clients #prev { left: clamp(10px, 3vw, 48px) !important; }
html body#top.home-page #avis-clients #next { right: clamp(10px, 3vw, 48px) !important; }
html body#top.home-page #avis-clients #prev,
html body#top.home-page #avis-clients #next {
  top: calc(var(--kmg-avis-top) + var(--kmg-avis-ch) / 2) !important;
  width: 52px !important;
  height: 52px !important;
}
/* pagination sous la zone des reflets */
html body#top.home-page #avis-clients .kmg-dots {
  margin: 0 0 22px !important;
}

@media screen and (max-width: 1199px) {
  html body#top.home-page #avis-clients {
    --kmg-avis-cw: 272px; --kmg-avis-ch: 320px; --kmg-a1: 216px; --kmg-a2: 370px;
  }
}
@media screen and (max-width: 1023px) {
  html body#top.home-page #avis-clients {
    --kmg-avis-cw: 256px; --kmg-avis-ch: 312px; --kmg-a1: 194px; --kmg-a2: 326px;
  }
}
@media screen and (max-width: 768px) {
  html body#top.home-page #avis-clients {
    --kmg-avis-cw: 230px; --kmg-avis-ch: 300px; --kmg-a1: 167px; --kmg-a2: 267px;
    --kmg-avis-tilt: 24deg;
  }
  html body#top.home-page #avis-clients .slider .item {
    padding: 24px 20px !important;
  }
  html body#top.home-page #avis-clients .slider .item.active {
    box-shadow:
      0 0 0 1px rgba(255, 248, 220, .52),
      0 0 8px 2px rgba(255, 235, 164, .72),
      0 0 20px 5px rgba(232, 204, 128, .28),
      0 16px 26px rgba(8, 8, 7, .34) !important;
  }
}
/* grand téléphone / petite tablette : transition progressive vers le mobile */
@media screen and (max-width: 680px) {
  html body#top.home-page #avis-clients {
    --kmg-avis-cw: 220px; --kmg-avis-ch: 296px; --kmg-a1: 156px; --kmg-a2: 244px;
  }
}
/* téléphone : version miniature du carrousel d'ordinateur.
   Toutes les distances suivent la largeur de carte (cw) ; la perspective
   est réduite dans la même proportion (5 x cw) pour garder le même relief. */
@media screen and (max-width: 581px) {
  html body#top.home-page #avis-clients {
    --kmg-avis-cw: clamp(168px, 48vw, 220px);
    --kmg-avis-ch: calc(var(--kmg-avis-cw) * 1.3 + 70px);
    --kmg-avis-top: 18px;
    --kmg-a1: calc(var(--kmg-avis-cw) * .55);
    --kmg-a2: calc(var(--kmg-avis-cw) * .92);
    --kmg-avis-tilt: 34deg;
    --kmg-avis-tilt2: 46deg;
    --kmg-avis-s1: .82;
    --kmg-avis-s2: .66;
  }
  html body#top.home-page #avis-clients .slider {
    perspective: calc(var(--kmg-avis-cw) * 5) !important;
  }
  html body#top.home-page #avis-clients .slider .item {
    row-gap: 3px !important;
    padding: 18px 12px !important;
    border-radius: 10px !important;
  }
  html body#top.home-page #avis-clients .kmg-avatar {
    width: 44px;
    height: 44px;
    margin-bottom: 4px;
    font-size: .95rem;
  }
  html body#top.home-page #avis-clients .slider .item .name,
  html body#top.home-page #avis-clients .slider .item .name strong {
    font-size: .95rem !important;
  }
  html body#top.home-page #avis-clients .slider .item .star {
    font-size: 15px !important;
    margin: 0 1px !important;
  }
  html body#top.home-page #avis-clients .slider .item p:not(.name):not(.review-meta):not(.review-reply) {
    margin: 10px 0 0 !important;
    font-size: .9rem !important;
    line-height: 1.45 !important;
  }
  html body#top.home-page #avis-clients .slider .item .review-meta {
    margin: 8px 0 0 !important;
    font-size: .74rem !important;
  }
  html body#top.home-page #avis-clients #prev,
  html body#top.home-page #avis-clients #next {
    width: 36px !important;
    height: 36px !important;
  }
  html body#top.home-page #avis-clients #prev { left: 6px !important; }
  html body#top.home-page #avis-clients #next { right: 6px !important; }
}


/* ---------- ZONES SEO + PIED DE PAGE : un seul bloc anthracite profond ---------- */
html body#top.home-page .kmg-zones-links {
  background: var(--kmg-footer) !important;
  border-top: 0 !important;
  padding: 18px var(--kmg-gutter) 30px !important;
}
/* fond uni (#1b1a18) : plus de halo doré en haut à gauche, et plus de marge haute
   (styles.css) qui laissait voir le fond plus clair du body entre les zones et le footer */
html body#top.home-page > footer {
  background: var(--kmg-footer) !important;
  margin-top: 0 !important;
  padding: 34px 0 18px !important;
}

/* ---------- RESPONSIVE des corrections ---------- */
@media screen and (max-width: 1199px) {
  html body#top.home-page #realisations {
    --kmg-cw: 270px; --kmg-ch: 338px; --kmg-r1: 86px; --kmg-r2: 100px;
  }
}
@media screen and (max-width: 1023px) {
  html body#top.home-page #realisations {
    --kmg-cw: 250px; --kmg-ch: 312px; --kmg-r1: 70px; --kmg-r2: 78px;
  }
  html body#top.home-page #zone-intervention .kmg-zone-intervention {
    grid-template-columns: 1fr !important;
  }
}
@media screen and (max-width: 768px) {
  html body#top.home-page #realisations {
    --kmg-cw: 220px; --kmg-ch: 275px; --kmg-r1: 56px; --kmg-r2: 36px; --kmg-tilt: 30deg;
  }
}
@media screen and (max-width: 581px) {
  /* petits écrans : carte centrale large, voisines qui dépassent sur les côtés */
  html body#top.home-page #realisations {
    --kmg-cw: min(58vw, 240px);
    --kmg-ch: calc(min(58vw, 240px) * 1.28);
    --kmg-r1: 14px; --kmg-r2: 0px; --kmg-tilt: 16deg; --kmg-tilt2: 0deg;
  }
  html body#top.home-page #realisations .real-card {
    width: var(--kmg-cw) !important;
    height: var(--kmg-ch) !important;
    margin-left: calc(var(--kmg-cw) / -2) !important;
    margin-top: calc(var(--kmg-ch) / -2) !important;
  }
  html body#top.home-page #realisations .real-slider-wrap {
    padding: 0 0 calc(var(--kmg-ch) * .58 + 12px) !important;
  }
  html body#top.home-page #realisations .real-slider {
    max-width: none !important;
  }
}
@media screen and (max-width: 480px) {
  html body#top.home-page #avis-clients #prev,
  html body#top.home-page #avis-clients #next,
  html body#top.home-page #real-prev,
  html body#top.home-page #real-next {
    width: 40px !important;
    height: 40px !important;
  }
}

/* ---------- 13b. Ajustements après comparaison visuelle ---------- */
/* le conteneur héritait d'un overflow:hidden qui coupait les carrousels */
html body#top.home-page #realisations .kmg-container,
html body#top.home-page #avis-clients .kmg-container {
  overflow: visible !important;
}
/* carrousels pleine largeur d'écran : flèches aux extrémités */
html body#top.home-page #realisations .real-slider-wrap,
html body#top.home-page #avis-clients .slider-wrap {
  width: 100vw !important;
  max-width: 100vw !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: 0 !important;
}
/* voisines plus petites et plus orientées (profondeur de la maquette) */
html body#top.home-page #realisations {
  --kmg-tilt: 34deg;
  --kmg-tilt2: 46deg;
  --kmg-s1: .9;
  --kmg-s2: .82;
}
html body#top.home-page #realisations .real-card:has(+ .real-card.is-active),
html body#top.home-page #realisations .real-card.is-active + .real-card {
  scale: var(--kmg-s1);
}
html body#top.home-page #realisations .real-card:has(+ .real-card + .real-card.is-active),
html body#top.home-page #realisations .real-card.is-active + .real-card + .real-card {
  scale: var(--kmg-s2);
}
html body#top.home-page #realisations .real-card {
  transition: transform .5s ease, opacity .5s ease, filter .5s ease,
              translate .5s ease, rotate .5s ease, scale .5s ease !important;
}
/* halo doré plus large et plus lumineux derrière la carte centrale */
html body#top.home-page #realisations .real-card::before {
  inset: -38% -26% !important;
  background: radial-gradient(ellipse at center,
    rgba(250, 236, 180, .95) 0%,
    rgba(232, 204, 128, .7) 26%,
    rgba(232, 204, 128, .28) 48%,
    rgba(232, 204, 128, .08) 62%,
    transparent 72%) !important;
  filter: blur(28px) !important;
}
@media screen and (max-width: 768px) {
  html body#top.home-page #realisations { --kmg-tilt: 30deg; --kmg-s1: .92; }
}
@media screen and (max-width: 581px) {
  html body#top.home-page #realisations { --kmg-tilt: 16deg; --kmg-s1: 1; --kmg-s2: 1; }
}

/* ---------- 13c. Halo doré marqué (réalisations) ---------- */
html body#top.home-page #realisations .real-card.is-active .real-card-front {
  box-shadow:
    0 0 0 1px rgba(255, 240, 200, .3),
    0 0 40px 6px rgba(245, 230, 163, .55),
    0 0 110px 40px rgba(232, 204, 128, .32),
    0 0 220px 90px rgba(232, 204, 128, .12),
    0 30px 60px rgba(12, 11, 10, .5) !important;
}
/* ==========================================================================
   14. CORRECTIONS MAQUETTE — 2e passe (27/10/2026)
   ========================================================================== */

/* ---------- 14.1 Hero : contenu calé à gauche, aligné sur le logo ---------- */
html body#top.home-page {
  --kmg-hero-x: clamp(20px, 5.4vw, 96px);
}
html body#top.home-page header .logo {
  left: var(--kmg-hero-x) !important;
}
html body#top.home-page > header {
  padding-left: calc(var(--kmg-hero-x) + var(--kmg-logo-h) + 48px) !important;
  padding-right: var(--kmg-hero-x) !important;
  /* fondu vers le hero : aucune ligne ni ombre de séparation */
  background: linear-gradient(180deg,
    rgba(27, 26, 24, .96) 0%,
    rgba(27, 26, 24, .82) 55%,
    rgba(27, 26, 24, 0) 100%) !important;
  border-bottom: 0 !important;
  box-shadow: none !important;
}
html body#top.home-page #telephone-defilant {
  right: var(--kmg-hero-x) !important;
}
html body#top.home-page .kmg-burger {
  right: var(--kmg-hero-x) !important;
}
html body#top.home-page #top.hero .kmg-hero__inner {
  max-width: 640px;
  padding-left: var(--kmg-hero-x) !important;
  padding-top: calc(var(--kmg-header-h) + clamp(64px, 12vh, 130px)) !important;
}
html body#top.home-page #top.hero .overlay {
  background:
    linear-gradient(90deg,
      rgba(27, 26, 24, .97) 0%,
      rgba(27, 26, 24, .9) 24%,
      rgba(27, 26, 24, .55) 40%,
      rgba(27, 26, 24, .12) 58%,
      rgba(27, 26, 24, 0) 72%),
    linear-gradient(180deg, rgba(27, 26, 24, .55) 0%, rgba(27, 26, 24, 0) 22%) !important;
}
html body#top.home-page #top.hero::before,
html body#top.home-page #top.hero::after {
  background-position: 70% center !important;
}

/* ---------- 14.3 Avis : conteneurs transparents (fond uniforme) ---------- */
html body#top.home-page #avis-clients .slider-wrap,
html body#top.home-page #avis-clients .kmg-container {
  border: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
}

/* ---------- 14.4 Réalisations : sol sans trait, voisines nettes partout ---------- */
html body#top.home-page #realisations .real-slider::after {
  top: calc(50% + var(--kmg-ch) / 2 - var(--kmg-ch) * .2) !important;
  height: calc(var(--kmg-ch) * .9) !important;
  background: radial-gradient(ellipse 40% 34% at 50% 40%,
    rgba(232, 204, 128, .2) 0%, rgba(232, 204, 128, .06) 55%, transparent 75%) !important;
}
html body#top.home-page #realisations .real-card {
  -webkit-box-reflect: below 4px
    linear-gradient(to bottom, transparent 0%, transparent 55%, rgba(0, 0, 0, .3) 100%) !important;
}
@media screen and (max-width: 581px) {
  html body#top.home-page #realisations .real-card:has(+ .real-card.is-active),
  html body#top.home-page #realisations .real-card.is-active + .real-card {
    opacity: .92 !important;
    filter: brightness(.85) !important;
  }
}

/* ---------- 14.5 Contact : grande photo nette ---------- */
html body#top.home-page #contact .devicontent-image img {
  object-fit: cover !important;
  object-position: center 60% !important;
  filter: none !important;
}

/* ---------- 14.6 Responsive ---------- */
@media screen and (max-width: 1023px) {
  html body#top.home-page > header {
    padding-left: var(--kmg-hero-x) !important;
  }
}
@media screen and (max-width: 768px) {
  html body#top.home-page { --kmg-hero-x: var(--kmg-gutter); }
  html body#top.home-page #top.hero .kmg-hero__inner {
    padding-top: calc(var(--kmg-header-h) + 70px) !important;
    padding-right: var(--kmg-gutter) !important;
  }
  html body#top.home-page #top.hero .overlay {
    background:
      linear-gradient(180deg, rgba(27, 26, 24, .6) 0%, rgba(27, 26, 24, .82) 45%, rgba(27, 26, 24, .92) 100%) !important;
  }
}

/* ---------- 14.7 Correctif : chevron du menu ---------- */
html body#top.home-page header nav.navbar .kmg-caret {
  display: inline-block !important;
  float: none !important;
  height: auto !important;
  line-height: 1 !important;
  font-size: .62rem !important;
  margin: 0 0 0 2px !important;
}


/* ---------- 14.9 Mobile : la carte centrale reste devant ses voisines ---------- */
@media screen and (max-width: 581px) {
  html body#top.home-page #realisations .real-slider {
    transform-style: flat !important;
  }
}

/* ========================================================================== 
   15. PHASE 1 — EN-TETE, HERO ET BANDE D'ATOUTS (27/10/2026)
   Ajustements mesures sur la maquette de reference, sans impact sur les
   sections suivantes.
   ========================================================================== */

@media screen and (min-width: 1025px) {
  html body#top.home-page {
    --kmg-header-h: 116px;
    --kmg-logo-h: 220px;
    --kmg-hero-x: clamp(52px, 5.4vw, 96px);
  }

  html body#top.home-page > header {
    padding-left: calc(var(--kmg-hero-x) + var(--kmg-logo-h) + 54px) !important;
    padding-right: clamp(20px, 2.5vw, 40px) !important;
    background: linear-gradient(180deg, rgba(16, 16, 14, .98) 0%, rgba(22, 21, 19, .95) 72%, rgba(22, 21, 19, .88) 100%) !important;
    overflow: visible !important;
  }

  html body#top.home-page:not(.kmg-out-hero) > header::after {
    content: "";
    position: absolute;
    left: calc(var(--kmg-hero-x) + var(--kmg-logo-h) + 34px);
    right: 0;
    bottom: 0;
    height: 1px;
    background: linear-gradient(90deg, rgba(232, 204, 128, .58), rgba(232, 204, 128, .22) 65%, transparent);
    pointer-events: none;
  }

  html body#top.home-page header .logo {
    top: 12px !important;
    left: var(--kmg-hero-x) !important;
  }

  html body#top.home-page header .logo img {
    filter: drop-shadow(0 9px 18px rgba(0, 0, 0, .62)) !important;
  }

  html body#top.home-page header nav.navbar > ul {
    gap: clamp(0px, .35vw, 6px) !important;
  }

  html body#top.home-page header nav.navbar > ul > li > a:not(.btn-contact) {
    padding: 10px 15px !important;
    font-size: .96rem !important;
  }

  html body#top.home-page header nav.navbar a.btn-contact {
    min-width: 228px !important;
    min-height: 54px !important;
    padding: 14px 28px !important;
    gap: 14px !important;
  }

  html body#top.home-page header nav.navbar a.btn-contact span {
    font-size: .96rem !important;
  }

  html body#top.home-page #top.hero {
    min-height: 740px !important;
    height: 740px !important;
  }

  html body#top.home-page #top.hero .kmg-hero__inner {
    max-width: 760px !important;
    padding: 236px 0 132px var(--kmg-hero-x) !important;
  }

  html body#top.home-page #top.hero h1 {
    margin-bottom: 10px !important;
    font-size: clamp(4.4rem, 5.8vw, 5.2rem) !important;
    line-height: .98 !important;
  }

  html body#top.home-page #top.hero .kmg-hero__sub {
    margin-bottom: 17px !important;
    font-size: clamp(1.7rem, 2.25vw, 2rem) !important;
    line-height: 1.23 !important;
  }

  html body#top.home-page #top.hero .kmg-hero__rule {
    width: 96px !important;
    height: 2px !important;
    margin-bottom: 17px !important;
  }

  html body#top.home-page #top.hero p {
    max-width: 590px !important;
    margin-bottom: 24px !important;
    font-size: 1.12rem !important;
    line-height: 1.42 !important;
  }

  html body#top.home-page #top.hero .kmg-btn--gold {
    min-width: 286px !important;
    min-height: 58px !important;
    padding: 14px 26px !important;
    font-size: 1rem !important;
  }

  html body#top.home-page #top.hero .kmg-hero__wave {
    height: 130px !important;
  }

  html body#top.home-page #top.hero .kmg-hero__down {
    bottom: 40px !important;
    width: 54px !important;
    height: 54px !important;
  }

  html body#top.home-page .kmg-features {
    min-height: 150px !important;
    padding: 14px 0 22px !important;
  }

  html body#top.home-page .kmg-features ul {
    min-height: 114px;
  }

  html body#top.home-page .kmg-features li {
    gap: 9px;
    padding: 8px 18px;
    font-size: 1rem;
    line-height: 1.28;
  }

  html body#top.home-page .kmg-features li i {
    font-size: 2.8rem;
  }
}

html body#top.home-page #top.hero .overlay {
  background:
    linear-gradient(90deg,
      rgba(15, 15, 13, .98) 0%,
      rgba(18, 18, 16, .94) 24%,
      rgba(20, 19, 17, .78) 38%,
      rgba(20, 19, 17, .30) 53%,
      rgba(20, 19, 17, .04) 68%,
      rgba(20, 19, 17, 0) 78%),
    linear-gradient(180deg, rgba(16, 16, 14, .45) 0%, rgba(16, 16, 14, 0) 24%) !important;
}

/* Le calque de fond doit rester hors du flux. Une ancienne règle mobile
   `.hero > *` le replaçait en relatif et poussait le contenu sous le hero. */
html body#top.home-page #top.hero .hero-background {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  z-index: 1 !important;
}

html body#top.home-page .kmg-features {
  align-self: stretch !important;
  width: 100% !important;
  max-width: none !important;
  box-sizing: border-box !important;
}

/* La maquette ne comporte pas de pastille téléphone séparée dans le hero.
   Le balisage est conservé pour ne pas retirer la donnée ou casser le JS. */
html body#top.home-page #telephone-defilant {
  display: none !important;
}

@media screen and (max-width: 1024px) {
  html body#top.home-page {
    --kmg-header-h: 72px;
    /* 375px ≈ 97px · 768px ≈ 106px · 1024px ≈ 113px */
    --kmg-logo-h: clamp(96px, calc(88px + 2.4vw), 114px);
    --kmg-hero-x: clamp(18px, 5vw, 32px);
  }

  html body#top.home-page > header {
    background: linear-gradient(180deg, rgba(16, 16, 14, .94), rgba(20, 19, 17, .62), transparent) !important;
  }

  html body#top.home-page header .logo {
    top: 10px !important;
    left: var(--kmg-hero-x) !important;
  }

  html body#top.home-page #top.hero {
    min-height: clamp(640px, 82svh, 760px) !important;
    height: clamp(640px, 82svh, 760px) !important;
    max-height: 760px !important;
  }

  html body#top.home-page #top.hero .kmg-hero__inner {
    max-width: 620px !important;
    padding: 136px var(--kmg-hero-x) 112px !important;
  }

  html body#top.home-page #top.hero h1 {
    margin-bottom: 18px !important;
    font-size: clamp(3rem, 12.8vw, 3.6rem) !important;
    line-height: .98 !important;
  }

  html body#top.home-page #top.hero .kmg-hero__sub {
    margin-bottom: 17px !important;
    font-size: clamp(1.05rem, 4.25vw, 1.35rem) !important;
    line-height: 1.3 !important;
  }

  html body#top.home-page #top.hero p {
    max-width: 520px !important;
    margin-bottom: 22px !important;
    font-size: clamp(.88rem, 2.8vw, 1rem) !important;
    line-height: 1.5 !important;
  }

  html body#top.home-page #top.hero .kmg-btn--gold {
    min-width: 214px !important;
    min-height: 48px !important;
    padding: 12px 20px !important;
    font-size: .88rem !important;
  }

  html body#top.home-page #top.hero .kmg-hero__wave {
    height: 92px !important;
  }

  html body#top.home-page #top.hero .kmg-hero__down {
    width: 48px !important;
    height: 48px !important;
    bottom: 34px !important;
  }

  html body#top.home-page .kmg-features {
    min-height: 150px !important;
    padding: 12px 0 18px !important;
  }

  html body#top.home-page .kmg-features li {
    gap: 8px;
    padding: 8px 10px;
    font-size: .88rem;
    line-height: 1.3;
  }

  html body#top.home-page .kmg-features li i {
    font-size: 2.25rem;
  }
}

@media screen and (max-width: 640px) {
  html body#top.home-page .kmg-features {
    min-height: 190px !important;
    padding-inline: 14px !important;
  }

  html body#top.home-page .kmg-features ul {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    row-gap: 12px !important;
    width: 100% !important;
  }

  html body#top.home-page .kmg-features li:nth-child(3) {
    border-left: 0 !important;
  }

  html body#top.home-page .kmg-features li {
    font-size: .82rem;
  }

  html body#top.home-page .kmg-features li i {
    font-size: 2rem;
  }
}

/* ==========================================================================
   16. PHASE 2 — ARC DORE ET CARROUSEL REALISATIONS (27/10/2026)
   ========================================================================== */

/* Arc : éclat concentré au centre, puis extinction continue vers les bords. */
html body#top.home-page .kmg-curve--pr .kmg-curve__line {
  stroke: url(#kmgPrArcGlow) !important;
  stroke-width: 2px !important;
  stroke-linecap: round;
  opacity: 1 !important;
  filter:
    drop-shadow(0 0 1px rgba(255, 248, 218, .95))
    drop-shadow(0 0 5px rgba(240, 213, 127, .72))
    drop-shadow(0 0 10px rgba(232, 204, 128, .3)) !important;
}

/* Le fond conserve une profondeur discrete, sans large tache claire. */
html body#top.home-page #realisations {
  --kmg-tilt: 38deg;
  --kmg-tilt2: 50deg;
  background:
    radial-gradient(ellipse 26% 26% at 50% 42%, rgba(232, 204, 128, .13) 0%, rgba(232, 204, 128, .045) 48%, transparent 76%),
    var(--kmg-edge-dark) !important;
}

/* Rendu a plat (la perspective du parent reste appliquee a chaque carte) :
   l'ordre d'affichage suit le z-index, la carte centrale reste devant
   ses voisines meme lorsqu'elles la chevauchent. */
html body#top.home-page #realisations .real-slider {
  transform-style: flat;
}

/* Spot central resserre : il soutient la carte active sans former une masse. */
html body#top.home-page #realisations .real-slider::before {
  width: calc(var(--kmg-cw) * 1.28) !important;
  height: calc(var(--kmg-ch) * 1.18) !important;
  background: radial-gradient(ellipse at center,
    rgba(245, 230, 163, .22) 0%,
    rgba(232, 204, 128, .11) 38%,
    rgba(232, 204, 128, .035) 60%,
    transparent 76%) !important;
  filter: blur(8px);
}

/* Sol lumineux leger : laisse les reflets lisibles au lieu de les noyer. */
html body#top.home-page #realisations .real-slider::after {
  top: calc(50% + var(--kmg-ch) / 2 - 24px) !important;
  height: calc(var(--kmg-ch) * .72) !important;
  /* le bord haut de la lueur s'ouvre en fondu : aucune ligne horizontale */
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 12%, #000 55%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 12%, #000 55%, transparent 100%);
  background: radial-gradient(ellipse 54% 24% at 50% 9%,
    rgba(245, 230, 163, .24) 0%,
    rgba(232, 204, 128, .10) 34%,
    rgba(232, 204, 128, .025) 62%,
    transparent 78%) !important;
}

html body#top.home-page #realisations .real-card {
  transform-style: preserve-3d;
  will-change: transform, filter, opacity;
  /* Le masque s'applique a la carte AVANT retournement : 100 % = bord du reflet
     au contact de la photo, 0 % = extremite basse. Reflet lumineux en haut,
     extinction progressive jusqu'a transparence totale a 58 % de sa hauteur. */
  -webkit-box-reflect: below 5px
    linear-gradient(to bottom,
      transparent 0%,
      transparent 42%,
      rgba(0, 0, 0, .025) 52%,
      rgba(0, 0, 0, .10) 66%,
      rgba(0, 0, 0, .26) 84%,
      rgba(0, 0, 0, .46) 100%) !important;
}

html body#top.home-page #realisations .real-card-inner {
  transform-style: preserve-3d;
}

/* Halo attache a la carte, volontairement court et net. */
html body#top.home-page #realisations .real-card::before {
  inset: -13% -9% !important;
  border-radius: 18px !important;
  background: radial-gradient(ellipse at center,
    rgba(255, 244, 202, .42) 0%,
    rgba(232, 204, 128, .24) 34%,
    rgba(232, 204, 128, .075) 58%,
    transparent 76%) !important;
  filter: blur(12px) !important;
}

html body#top.home-page #realisations .real-card-front {
  border-color: rgba(240, 213, 127, .82) !important;
  box-shadow:
    0 0 0 1px rgba(255, 244, 205, .18),
    0 0 13px rgba(232, 204, 128, .18),
    0 18px 32px rgba(8, 8, 7, .38) !important;
}

html body#top.home-page #realisations .real-card-front img {
  filter: contrast(1.06) saturate(1.04) brightness(1.015);
}

/* Lueur de la carte active : contour franc + halo court, inspire de la
   fenetre cookies, sans les anciennes ombres de 110 et 220 px. */
html body#top.home-page #realisations .real-card.is-active .real-card-front {
  border: 2px solid #f0d57f !important;
  box-shadow:
    0 0 0 1px rgba(255, 248, 220, .58),
    0 0 9px 2px rgba(255, 235, 164, .82),
    0 0 26px 7px rgba(232, 204, 128, .34),
    0 20px 34px rgba(8, 8, 7, .38) !important;
}

/* Les voisines restent en retrait, mais ne sont plus voilees de gris. */
@media screen and (min-width: 582px) {
  html body#top.home-page #realisations .real-card:has(+ .real-card.is-active),
  html body#top.home-page #realisations .real-card.is-active + .real-card {
    opacity: .97 !important;
    filter: brightness(.96) contrast(1.04) saturate(.98) !important;
  }

  html body#top.home-page #realisations .real-card:has(+ .real-card + .real-card.is-active),
  html body#top.home-page #realisations .real-card.is-active + .real-card + .real-card {
    opacity: .82 !important;
    filter: brightness(.78) contrast(1.03) saturate(.9) !important;
  }
}

@media screen and (max-width: 768px) {
  html body#top.home-page #realisations {
    --kmg-tilt: 24deg;
  }

  html body#top.home-page #realisations .real-card::before {
    inset: -11% -8% !important;
    filter: blur(9px) !important;
  }

  html body#top.home-page #realisations .real-card.is-active .real-card-front {
    box-shadow:
      0 0 0 1px rgba(255, 248, 220, .52),
      0 0 8px 2px rgba(255, 235, 164, .72),
      0 0 20px 5px rgba(232, 204, 128, .28),
      0 16px 26px rgba(8, 8, 7, .34) !important;
  }
}

@media screen and (max-width: 581px) {
  html body#top.home-page #realisations {
    --kmg-tilt: 19deg;
  }

  html body#top.home-page #realisations .real-card:has(+ .real-card.is-active),
  html body#top.home-page #realisations .real-card.is-active + .real-card {
    opacity: .96 !important;
    filter: brightness(.94) contrast(1.04) saturate(.98) !important;
  }
}


/* ==========================================================================
   17. REFLET LUMINEUX SUR LES BOUTONS (page d'accueil)
   Même balayage de gauche à droite que le bouton « retour en haut »
   (services.css) ; les .kmg-btn et .kmg-backtotop l'ont déjà.
   Pseudo-élément ::after, libre sur tous ces boutons.
   ========================================================================== */
html body#top.home-page header nav.navbar a.btn-contact,
html body#top.home-page #top.hero .kmg-hero__down,
html body#top.home-page #real-prev,
html body#top.home-page #real-next,
html body#top.home-page #avis-clients #prev,
html body#top.home-page #avis-clients #next,
html body#top.home-page #open-popupavis,
html body#top.home-page #contact .btn-submit,
html body#top.home-page .kmg-burger {
  overflow: hidden !important;
  isolation: isolate;
}
html body#top.home-page #contact .btn-submit {
  position: relative !important;
}
html body#top.home-page header nav.navbar a.btn-contact::after,
html body#top.home-page #top.hero .kmg-hero__down::after,
html body#top.home-page #real-prev::after,
html body#top.home-page #real-next::after,
html body#top.home-page #avis-clients #prev::after,
html body#top.home-page #avis-clients #next::after,
html body#top.home-page #open-popupavis::after,
html body#top.home-page #contact .btn-submit::after,
html body#top.home-page .kmg-burger::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;
  z-index: 1;
  animation: kmg-btn-mirror 3.8s ease-in-out infinite;
}
@keyframes kmg-btn-mirror {
  0% { left: -80%; opacity: 0; }
  18% { opacity: .75; }
  50% { left: 130%; opacity: .35; }
  100% { left: 130%; opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html body#top.home-page header nav.navbar a.btn-contact::after,
  html body#top.home-page #top.hero .kmg-hero__down::after,
  html body#top.home-page #real-prev::after,
  html body#top.home-page #real-next::after,
  html body#top.home-page #avis-clients #prev::after,
  html body#top.home-page #avis-clients #next::after,
  html body#top.home-page #open-popupavis::after,
  html body#top.home-page #contact .btn-submit::after,
  html body#top.home-page .kmg-burger::after {
    animation: none;
    opacity: 0;
  }
}

/* ==========================================================================
   18. CONTACT ET DEVIS — finitions premium (bloc unique, remplace les
   anciennes couches 13 / 13b / 14.5 / 14.6 / 14.8 sur cette section)
   Champs, noms, action du formulaire et honeypot inchangés.
   ========================================================================== */
html body#top.home-page #contact {
  padding: clamp(24px, 3.5vw, 44px) 0 clamp(36px, 4.5vw, 56px) !important;
  /* crème uni : plus de tache dorée semi-transparente */
  background: var(--kmg-cream) !important;
}
/* le conteneur (overflow hidden hérité) coupait net l'ombre de la photo devis */
html body#top.home-page #contact > .kmg-container {
  overflow: visible !important;
}

/* titre : même dégradé doré que les autres titres, liseré bronze pour le crème */
html body#top.home-page #contact .kmg-head {
  margin-bottom: clamp(24px, 3vw, 36px);
}
html body#top.home-page #contact .kmg-head .kmg-gold {
  background: var(--kmg-gold-grad) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  filter: saturate(1.12) drop-shadow(0 1px 0 rgba(140, 122, 60, .55)) drop-shadow(0 0 5px rgba(232, 204, 128, .35));
}
html body#top.home-page #contact .kmg-head__sub {
  font-size: 1rem !important;
  font-weight: 600 !important;
  color: var(--kmg-ink) !important;
  -webkit-text-fill-color: var(--kmg-ink) !important;
}
html body#top.home-page #contact .kmg-head__note {
  max-width: 680px !important;
  margin: 6px auto 0 !important;
  color: #5c564b !important;
  -webkit-text-fill-color: #5c564b !important;
}

/* deux colonnes de même hauteur */
html body#top.home-page #contact .kmg-contact-grid {
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.3fr);
  gap: clamp(20px, 2.6vw, 36px);
  align-items: stretch !important;
}

/* carte devis : contour doré fin, ombre courte, reflet en surface */
html body#top.home-page #contact .devicontent {
  min-height: 380px !important;
  height: auto !important;
  padding: 26px !important;
  border: 1px solid rgba(240, 213, 127, .75) !important;
  border-radius: 16px !important;
  box-shadow:
    0 0 0 4px rgba(232, 204, 128, .12),
    0 16px 30px -14px rgba(45, 44, 41, .45) !important;
}
html body#top.home-page #contact .devicontent::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255, 248, 225, .16) 0%, rgba(255, 248, 225, 0) 38%);
}
html body#top.home-page #contact .devicontent h5 {
  z-index: 2;
  margin-bottom: 14px !important;
  font-size: clamp(1.25rem, 1.7vw, 1.5rem) !important;
  color: #fbf6ea !important;
  -webkit-text-fill-color: #fbf6ea !important;
  text-shadow: 0 2px 10px rgba(12, 11, 10, .55) !important;
}
html body#top.home-page #contact .devicontent-actions {
  z-index: 2;
}

/* formulaire dans une carte claire : bordure dorée fine, ombre courte */
html body#top.home-page #contact .contact-row {
  align-self: stretch !important;
}
html body#top.home-page #contact .contact-form {
  height: 100% !important;
  min-height: 0 !important;   /* annule les 470 px imposés par home-contact-desktop.css */
  max-width: none !important;
  align-content: center !important;
  gap: 14px !important;
  padding: clamp(20px, 2.4vw, 30px) !important;
  background: linear-gradient(160deg, #fffdf8 0%, #fbf5e8 100%) !important;
  border: 1px solid rgba(201, 171, 98, .55) !important;
  border-radius: 16px !important;
  box-shadow:
    0 0 0 4px rgba(232, 204, 128, .10),
    inset 0 1px 0 rgba(255, 255, 255, .9),
    0 16px 30px -16px rgba(98, 91, 78, .4) !important;
}
/* titre du formulaire rendu visible : meilleure hiérarchie */
html body#top.home-page #contact .contact-form h5 {
  position: static !important;
  grid-column: 1 / -1;
  width: auto !important;
  height: auto !important;
  overflow: visible !important;
  clip: auto !important;
  margin: 0 0 4px !important;
  font-family: var(--kmg-serif) !important;
  font-weight: 500 !important;
  font-size: clamp(1.1rem, 1.4vw, 1.3rem) !important;
  letter-spacing: .04em !important;
  text-align: left !important;
  color: var(--kmg-ink) !important;
  -webkit-text-fill-color: var(--kmg-ink) !important;
  background: none !important;
}
html body#top.home-page #contact .contact-form h5::after {
  content: "";
  display: block;
  width: 64px;
  height: 2px;
  margin-top: 8px;
  background: var(--kmg-gold-grad);
}

/* champs : fond blanc, bordure fine, lueur dorée au focus */
html body#top.home-page #contact .input-group {
  background: #ffffff !important;
  border: 1px solid rgba(184, 156, 92, .42) !important;
  border-radius: 10px !important;
  box-shadow: inset 0 1px 2px rgba(98, 91, 78, .08) !important;
  transition: border-color .25s ease, box-shadow .25s ease !important;
}
html body#top.home-page #contact .input-group:hover {
  border-color: rgba(184, 156, 92, .7) !important;
}
html body#top.home-page #contact .input-group:focus-within {
  border-color: #d9b860 !important;
  box-shadow:
    inset 0 1px 2px rgba(98, 91, 78, .06),
    0 0 0 3px rgba(232, 204, 128, .38),
    0 0 12px rgba(232, 204, 128, .35) !important;
}
html body#top.home-page #contact .input-group input,
html body#top.home-page #contact .input-group textarea {
  padding: 13px 15px !important;
  font-size: .92rem !important;
}
html body#top.home-page #contact .input-group input::placeholder,
html body#top.home-page #contact .input-group textarea::placeholder {
  color: #7d7465 !important;
  -webkit-text-fill-color: #7d7465 !important;
}

/* boutons : dégradé doré, contour lumineux, relief, reflet balayant */
html body#top.home-page #contact .btn-submit,
html body#top.home-page #contact #btn-devis {
  position: relative !important;
  overflow: hidden !important;
  isolation: isolate;
  min-height: 46px;
  padding: 13px 32px !important;
  border: 1px solid rgba(255, 244, 210, .85) !important;
  background: var(--kmg-gold-fill) !important;
  font-size: .9rem !important;
  letter-spacing: .03em !important;
  color: var(--kmg-ink) !important;
  -webkit-text-fill-color: var(--kmg-ink) !important;
  box-shadow:
    0 0 0 1px rgba(201, 171, 98, .55),
    0 0 14px rgba(232, 204, 128, .35),
    0 10px 20px -8px rgba(98, 80, 30, .55),
    inset 0 1px 0 rgba(255, 255, 255, .7),
    inset 0 -2px 0 rgba(140, 122, 60, .25) !important;
  transition: transform .3s ease, box-shadow .3s ease, filter .3s ease !important;
}
html body#top.home-page #contact .btn-submit:hover,
html body#top.home-page #contact #btn-devis:hover,
html body#top.home-page #contact .btn-submit:focus-visible,
html body#top.home-page #contact #btn-devis:focus-visible {
  transform: translateY(-2px);
  filter: brightness(1.06) saturate(1.05);
  box-shadow:
    0 0 0 1px rgba(232, 204, 128, .8),
    0 0 22px rgba(240, 213, 127, .55),
    0 14px 26px -10px rgba(98, 80, 30, .6),
    inset 0 1px 0 rgba(255, 255, 255, .8),
    inset 0 -2px 0 rgba(140, 122, 60, .25) !important;
  outline: none;
}
/* même reflet balayant que les autres boutons du site (section 17) */
html body#top.home-page #contact #btn-devis::after {
  content: "";
  position: absolute;
  top: -35%;
  left: -80%;
  width: 62%;
  height: 170%;
  transform: skewX(-20deg);
  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%);
  pointer-events: none;
  z-index: 1;
  animation: kmg-btn-mirror 3.8s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) {
  html body#top.home-page #contact #btn-devis::after { animation: none; opacity: 0; }
}

/* tablette / téléphone */
@media screen and (max-width: 1023px) {
  html body#top.home-page #contact .kmg-contact-grid {
    grid-template-columns: 1fr;
  }
  html body#top.home-page #contact .devicontent {
    min-height: 300px !important;
  }
}
@media screen and (max-width: 768px) {
  html body#top.home-page #contact .devicontent {
    min-height: 260px !important;
    padding: 20px !important;
  }
  html body#top.home-page #contact .contact-form {
    padding: 18px !important;
    gap: 12px !important;
  }
}
@media screen and (max-width: 480px) {
  html body#top.home-page #contact .btn-submit,
  html body#top.home-page #contact #btn-devis {
    min-height: 48px;
    padding: 13px 18px !important;
    white-space: nowrap;
  }
  html body#top.home-page #contact .btn-submit {
    justify-self: stretch;
  }
  html body#top.home-page #contact .input-group input,
  html body#top.home-page #contact .input-group textarea {
    font-size: 16px !important;   /* évite le zoom automatique iOS au focus */
  }
}
