/* =========================================================================
   Koncept Paysage - compléments à la feuille d'origine (css/main.css)
   Remplace les librairies jQuery (Revolution Slider, Colorbox, tooltips)
   et l'appel à Google Fonts. Aucune dépendance externe.
   ========================================================================= */

/* ---- Polices auto-hébergées (anciennement Google Fonts) ---------------- */
@font-face { font-family: 'Open Sans'; font-style: normal; font-weight: 300; font-display: swap; src: url('../fonts/open-sans/open-sans-latin-300-normal.woff2') format('woff2'); }
@font-face { font-family: 'Open Sans'; font-style: italic; font-weight: 300; font-display: swap; src: url('../fonts/open-sans/open-sans-latin-300-italic.woff2') format('woff2'); }
@font-face { font-family: 'Open Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/open-sans/open-sans-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Open Sans'; font-style: italic; font-weight: 400; font-display: swap; src: url('../fonts/open-sans/open-sans-latin-400-italic.woff2') format('woff2'); }
@font-face { font-family: 'Open Sans'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/open-sans/open-sans-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Open Sans'; font-style: italic; font-weight: 600; font-display: swap; src: url('../fonts/open-sans/open-sans-latin-600-italic.woff2') format('woff2'); }
@font-face { font-family: 'Open Sans'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/open-sans/open-sans-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Open Sans'; font-style: italic; font-weight: 700; font-display: swap; src: url('../fonts/open-sans/open-sans-latin-700-italic.woff2') format('woff2'); }
@font-face { font-family: 'Open Sans'; font-style: normal; font-weight: 800; font-display: swap; src: url('../fonts/open-sans/open-sans-latin-800-normal.woff2') format('woff2'); }
@font-face { font-family: 'Open Sans'; font-style: italic; font-weight: 800; font-display: swap; src: url('../fonts/open-sans/open-sans-latin-800-italic.woff2') format('woff2'); }

/* ---- Icônes Fontello ----------------------------------------------------- */
@font-face {
  font-family: 'fontello';
  src: url('../fonts/fontello/fontello.woff') format('woff'),
       url('../fonts/fontello/fontello.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

/* ---- Slider d'accueil (remplace Revolution Slider) ----------------------- */
.tp-banner-container { width: 100%; position: relative; padding: 0; background: #21252b; }
.kp-slider {
  position: relative;
  width: 100%;
  height: 500px;               /* hauteur de référence : 1130 x 500 */
  height: min(500px, 44.248vw);
  overflow: hidden;
}
.kp-slider ul { list-style: none; margin: 0; padding: 0; height: 100%; }
.kp-slider li {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  margin: 0;
  opacity: 0;
  z-index: 1;
  transition-property: opacity;
  transition-timing-function: ease-in-out;
  transition-duration: 500ms;
}
.kp-slider li.kp-active { opacity: 1; z-index: 2; }
.kp-slider li img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center top;
}
.kp-slider button { font: inherit; border: 0; padding: 0; background: none; }

/* Flèches (même rendu que le thème "round" d'origine) */
.kp-slider .tparrows { position: absolute; top: 50%; margin-top: -40px; z-index: 100; transition: opacity 0.2s ease-out; }
.kp-slider .tp-leftarrow { left: 20px; }
.kp-slider .tp-rightarrow { right: 20px; }
.tp-rightarrow, .tp-leftarrow {
  cursor: pointer; width: 40px; height: 80px; font-family: 'fontello';
  color: rgba(240, 241, 241, 0.45);
}
.tp-leftarrow:hover, .tp-rightarrow:hover { color: #fff; }
.tp-leftarrow:before, .tp-rightarrow:before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; bottom: 0; z-index: 1;
  background: transparent; border-radius: 3px; transition: background 0.2s ease-in-out;
}
.tp-leftarrow:hover:before, .tp-rightarrow:hover:before { background: rgba(63, 70, 74, 0.25); }
.tp-leftarrow:after, .tp-rightarrow:after {
  display: block; position: relative; z-index: 2; width: 40px; text-align: center;
  font-size: 40px; line-height: 80px; transition: color 0.2s ease-in-out;
}
.tp-leftarrow:after { content: "\e8c7"; }
.tp-rightarrow:after { content: "\e8c8"; }

/* Puces */
.kp-slider .tp-bullets {
  position: absolute; z-index: 100; bottom: 25px; left: 50%;
  transform: translateX(-50%); transition: opacity 0.2s ease-out;
}
.tp-bullets.simplebullets.round .bullet {
  cursor: pointer; position: relative; display: block; float: left;
  width: 11px; height: 11px; margin: 0 4px; border-radius: 50%;
  background: rgba(63, 70, 74, 0.5);
}
.tp-bullets.simplebullets .bullet.selected { background: rgba(255, 255, 255, 0.5); }
.kp-slider .hidearrows, .kp-slider .hidebullets { opacity: 0; }
.kp-slider .tparrows:focus-visible, .kp-slider .bullet:focus-visible { opacity: 1; outline: 2px solid #fff; }

/* ---- Carte (iframe à la place de l'API Google Maps JS) ------------------- */
.pi-google-map iframe { display: block; width: 100%; height: 100%; border: 0; }

/* ---- Boutons de contact (remplacent les formulaires) --------------------- */
.kp-contact-actions { margin: 20px 0 30px; }
.kp-contact-actions .btn { display: inline-block; margin: 0 10px 12px 0; }

/* ---- Visionneuse d'images (remplace Colorbox, même apparence) ------------ */
#cboxOverlay { display: none; opacity: 0; transition: opacity 0.3s ease; }
#cboxOverlay.kp-open { opacity: 0.9; }
#colorbox { position: fixed; display: none; }
#colorbox.kp-open { display: block; }
#cboxWrapper > div { clear: left; }
#cboxWrapper > div > div { float: left; }
#cboxLoadedContent img { display: block; width: 100%; height: 100%; }
#cboxPrevious, #cboxNext, #cboxClose { font: inherit; color: transparent; }
#cboxLoadingOverlay, #cboxLoadingGraphic { display: none; }
#colorbox.kp-loading #cboxLoadingOverlay, #colorbox.kp-loading #cboxLoadingGraphic { display: block; }
body.kp-lightbox-open { overflow: hidden; }

/* ---- Accessibilité ------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .kp-slider li, #cboxOverlay { transition-duration: 0s !important; }
  html { scroll-behavior: auto !important; }
}
