/* ============================================================
   STORES PLUS SERVICES — Design Override
   Style: Professionnel, sobre, touches terracotta
   ============================================================ */

/* --- Google Fonts Import --- */
/* Google Fonts loaded via <link> in HTML head for better performance */

/* --- CSS Custom Properties --- */
:root {
  /* Terracotta Palette */
  --sps-terracotta: #C4704B;
  --sps-terracotta-light: #E8C4B0;
  --sps-terracotta-lighter: #F5E6DB;
  --sps-terracotta-dark: #A85A3A;
  --sps-terracotta-10: rgba(196, 112, 75, 0.1);
  --sps-terracotta-20: rgba(196, 112, 75, 0.2);

  /* Neutral Palette */
  --sps-white: #FAFAF8;
  --sps-bg-alt: #F2EDE8;
  --sps-bg-card: #FFFFFF;
  --sps-text-primary: #2D2D2D;
  --sps-text-secondary: #6B6B6B;
  --sps-text-light: #9A9A9A;
  --sps-border: #E0DCD7;
  --sps-dark: #1E1E1E;

  /* Typography */
  --sps-font-heading: 'DM Serif Display', Georgia, serif;
  --sps-font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Spacing */
  --sps-section-padding: 80px;
  --sps-section-padding-sm: 50px;

  /* Transitions */
  --sps-transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);

  /* Shadows */
  --sps-shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --sps-shadow-md: 0 4px 20px rgba(0,0,0,0.08);
  --sps-shadow-lg: 0 8px 40px rgba(0,0,0,0.12);

  /* Border Radius */
  --sps-radius: 8px;
  --sps-radius-lg: 16px;
}

/* --- Base Reset & Typography --- */

.ko_Theme #website,
.ko_Theme #website p,
.ko_Theme #website a.btn,
.ko_Theme #website button.btn {
  font-family: var(--sps-font-body) !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--sps-white) !important;
  color: var(--sps-text-primary) !important;
  font-family: var(--sps-font-body) !important;
  line-height: 1.7;
  letter-spacing: -0.01em;
}

.ko_Theme #contentArea,
.ko_Theme .koThemeDark #contentArea .whiteShadowContainer {
  color: var(--sps-text-secondary) !important;
}

/* Headings */
.ko_Theme #website h1,
.ko_Theme #website h2,
.ko_Theme #website h3,
#contentArea h1, #contentArea h2, #contentArea h3,
#contentArea h1 a, #contentArea h2 a, #contentArea h3 a {
  font-family: var(--sps-font-heading) !important;
  font-weight: 400 !important;
  color: var(--sps-text-primary) !important;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.ko_Theme #website h4,
.ko_Theme #website h5,
.ko_Theme #website h6,
#contentArea h4, #contentArea h5, #contentArea h6 {
  font-family: var(--sps-font-body) !important;
  font-weight: 600 !important;
  color: var(--sps-text-primary) !important;
}

/* --- Header Menu Bar (Top banner) — HIDDEN --- */
#headerMenuBar {
  display: none !important;
}

/* --- Main Navigation --- */
.ko_Theme #headerMenu {
  background: #FFFFFF !important;
  padding: 10px 20px !important;
  box-shadow: 0 1px 10px rgba(0,0,0,0.06) !important;
  border: none !important;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.ko_Theme .logoHolder img {
  max-height: 100px !important;
  height: 100px !important;
  min-height: 100px !important;
  transition: transform var(--sps-transition);
}

.ko_Theme .logoHolder h2 {
  min-height: 100px !important;
}

/* Menu Items — Animated underline effect */
.ko_Theme .menuHolder li a {
  font-family: var(--sps-font-body) !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  color: var(--sps-text-primary) !important;
  text-transform: uppercase !important;
  letter-spacing: 0.08em !important;
  padding: 10px 16px 10px !important;
  margin: 0 4px !important;
  border-radius: 6px !important;
  border: none !important;
  background: transparent !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  position: relative !important;
}

.ko_Theme .menuHolder li a::after {
  content: '' !important;
  position: absolute !important;
  bottom: 0 !important;
  left: 50% !important;
  width: 0 !important;
  height: 3px !important;
  background-color: var(--sps-terracotta) !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  transform: translateX(-50%) !important;
  border-radius: 2px !important;
}

.ko_Theme .menuHolder li a:hover,
.ko_Theme .menuHolder li.active a,
.ko_Theme .menuHolder li.item_active a {
  color: var(--sps-terracotta) !important;
  background: var(--sps-terracotta-10) !important;
}

.ko_Theme .menuHolder li a:hover::after,
.ko_Theme .menuHolder li.active a::after,
.ko_Theme .menuHolder li.item_active a::after {
  width: 80% !important;
}

/* Override accent1 buttons in nav — same border-bottom effect */
.ko_Theme .menuHolder li.accent1 a,
.ko_Theme .menuHolder li.accent1.active a {
  font-size: 15px !important;
  font-weight: 600 !important;
  color: var(--sps-text-primary) !important;
  background: transparent !important;
  padding: 10px 16px 10px !important;
  margin: 0 4px !important;
  border-radius: 6px !important;
  border: none !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  position: relative !important;
}

.ko_Theme .menuHolder li.accent1 a::after {
  content: '' !important;
  position: absolute !important;
  bottom: 0 !important;
  left: 50% !important;
  width: 0 !important;
  height: 3px !important;
  background-color: var(--sps-terracotta) !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  transform: translateX(-50%) !important;
  border-radius: 2px !important;
}

.ko_Theme .menuHolder li.accent1 a:hover,
.ko_Theme .menuHolder li.accent1.active a:hover,
.ko_Theme .menuHolder li.item_active.accent1 a {
  color: var(--sps-terracotta) !important;
  background: var(--sps-terracotta-10) !important;
}

.ko_Theme .menuHolder li.accent1 a:hover::after,
.ko_Theme .menuHolder li.accent1.active a:hover::after,
.ko_Theme .menuHolder li.item_active.accent1 a::after {
  width: 80% !important;
}

/* Dropdown menus */
.dropmenudiv {
  background: #FFFFFF !important;
  border: 1px solid var(--sps-border) !important;
  border-radius: var(--sps-radius) !important;
  box-shadow: var(--sps-shadow-md) !important;
  padding: 8px 0 !important;
}

.dropmenudiv li a {
  font-size: 14px !important;
  font-weight: 500 !important;
  padding: 10px 20px !important;
  color: var(--sps-text-primary) !important;
}

.dropmenudiv li a:hover {
  background: var(--sps-terracotta-10) !important;
  color: var(--sps-terracotta) !important;
}

/* Language dropdown */
.ko_Theme .menuHolder li.topmenuSocial a {
  color: var(--sps-text-secondary) !important;
}

/* --- Buttons --- */
.ko_Theme #website .btn-primary {
  background-color: var(--sps-terracotta) !important;
  border-color: var(--sps-terracotta) !important;
  color: #FFFFFF !important;
  font-family: var(--sps-font-body) !important;
  font-weight: 500 !important;
  font-size: 14px !important;
  letter-spacing: 0.04em !important;
  padding: 14px 32px !important;
  border-radius: var(--sps-radius) !important;
  transition: all var(--sps-transition) !important;
  text-transform: none !important;
  box-shadow: 0 2px 8px rgba(196, 112, 75, 0.25) !important;
}

.ko_Theme #website .btn-primary:hover {
  background-color: var(--sps-terracotta-dark) !important;
  border-color: var(--sps-terracotta-dark) !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(196, 112, 75, 0.35) !important;
}

.ko_Theme #website .btn-outline-primary {
  color: var(--sps-terracotta) !important;
  border-color: var(--sps-terracotta) !important;
  background: transparent !important;
  font-family: var(--sps-font-body) !important;
  font-weight: 500 !important;
  font-size: 14px !important;
  letter-spacing: 0.04em !important;
  padding: 14px 32px !important;
  border-radius: var(--sps-radius) !important;
  border-width: 2px !important;
  transition: all var(--sps-transition) !important;
}

.ko_Theme #website .btn-outline-primary:hover {
  background-color: var(--sps-terracotta) !important;
  color: #FFFFFF !important;
  border-color: var(--sps-terracotta) !important;
  transform: translateY(-2px);
}

.btn-outline-light {
  border-width: 2px !important;
  border-radius: var(--sps-radius) !important;
  font-family: var(--sps-font-body) !important;
  font-weight: 500 !important;
  font-size: 14px !important;
  letter-spacing: 0.04em !important;
  padding: 14px 32px !important;
  transition: all var(--sps-transition) !important;
}

.btn-outline-light:hover {
  background: rgba(255,255,255,0.15) !important;
  transform: translateY(-2px);
}

.btn-color1 {
  background-color: var(--sps-terracotta) !important;
  border-color: var(--sps-terracotta) !important;
  color: #FFFFFF !important;
  border-radius: var(--sps-radius) !important;
}

/* --- Separators --- */
.koSeparator,
.koSeparatorBlock {
  background: var(--sps-terracotta) !important;
  height: 3px !important;
  width: 80px !important;
  border-radius: 2px;
}

/* --- Pre-titles / Subtitles --- */
.koPreTitle {
  font-family: var(--sps-font-body) !important;
  font-weight: 500 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.15em !important;
  font-size: 13px !important;
  color: var(--sps-terracotta) !important;
}

.koPreTitle span {
  color: var(--sps-terracotta) !important;
  font-size: 13px !important;
}

/* --- Icon Holders (Service cards) --- */
.koIconHolder {
  background: var(--sps-terracotta-10) !important;
  color: var(--sps-terracotta) !important;
  border-color: var(--sps-terracotta) !important;
  transition: all var(--sps-transition);
}

.koIconHolder .koIcon {
  color: var(--sps-terracotta) !important;
}

.koIconHolder:hover {
  background: var(--sps-terracotta) !important;
}

.koIconHolder:hover .koIcon {
  color: #FFFFFF !important;
}

/* --- Service Grid Cards --- */
.koGrid > div {
  padding: 30px 20px !important;
  border-radius: var(--sps-radius-lg);
  transition: all var(--sps-transition);
  position: relative;
}

.koGrid > div:hover {
  background: var(--sps-bg-card);
  box-shadow: var(--sps-shadow-md);
  transform: translateY(-4px);
}

.koGrid h2 {
  font-size: 1.1rem !important;
  margin-top: 16px !important;
}

/* --- Sections --- */
section.kedit {
  transition: background-color 0.5s ease;
}

/* Alternate section backgrounds */
section.kedit[data-bgcolor="rgb(222, 222, 222)"] {
  background: var(--sps-bg-alt) !important;
}

/* --- Hero / Parallax Sections (Products) --- */
section.keditDark {
  position: relative;
}

section.keditDark::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to bottom,
    rgba(30, 30, 30, 0.55) 0%,
    rgba(30, 30, 30, 0.4) 50%,
    rgba(30, 30, 30, 0.6) 100%
  );
  z-index: 1;
}

section.keditDark > .container,
section.keditDark > .no-container {
  position: relative;
  z-index: 2;
}

section.keditDark h1 {
  color: #FFFFFF !important;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
  font-size: 3rem !important;
}

/* --- Images --- */
.kimgRatio img,
.kimgRatio1 img {
  border-radius: var(--sps-radius-lg) !important;
  box-shadow: var(--sps-shadow-md);
  transition: transform var(--sps-transition), box-shadow var(--sps-transition);
  object-fit: cover;
}

.kimgRatio img:hover,
.kimgRatio1 img:hover {
  transform: scale(1.02);
  box-shadow: var(--sps-shadow-lg);
}

/* --- Dark Section Content (intro bars) --- */
.keditDark .p-5 {
  background: var(--sps-dark) !important;
  border-radius: var(--sps-radius-lg) !important;
  box-shadow: var(--sps-shadow-lg) !important;
}

.keditDark .keditable.koPreTitle span {
  color: var(--sps-terracotta-light) !important;
}

/* --- Footer --- */
#footerContent {
  background: var(--sps-dark) !important;
  color: rgba(255,255,255,0.6) !important;
  border-top: none !important;
  font-family: var(--sps-font-body) !important;
  font-size: 14px !important;
  line-height: 1.7 !important;
}

.ko_Theme #website #footerContent {
  color: rgba(255,255,255,0.6) !important;
  font-size: 14px !important;
  font-family: var(--sps-font-body) !important;
}

/* Footer top accent line */
.sps-footer__accent {
  height: 3px;
  background: linear-gradient(90deg, var(--sps-terracotta), var(--sps-terracotta-dark));
}

/* Footer main content area */
.sps-footer__main {
  padding: 56px 0 40px 0;
}

.sps-footer__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 40px;
  align-items: start;
}

/* Footer headings */
.sps-footer__heading {
  color: #FFFFFF !important;
  font-family: var(--sps-font-body) !important;
  font-weight: 600 !important;
  font-size: 13px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.12em !important;
  margin-bottom: 20px !important;
  position: relative;
  padding-bottom: 12px;
}

.sps-footer__heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 24px;
  height: 2px;
  background: var(--sps-terracotta);
  border-radius: 1px;
}

/* Footer brand */
.sps-footer__brand-name {
  color: #FFFFFF !important;
  font-family: var(--sps-font-heading) !important;
  font-size: 1.3rem !important;
  font-weight: 400 !important;
  margin-bottom: 14px !important;
  letter-spacing: -0.01em;
}

.sps-footer__brand-desc {
  color: rgba(255,255,255,0.5);
  font-size: 13.5px;
  line-height: 1.7;
  margin-bottom: 20px;
}

/* Footer links */
#footerContent a {
  color: rgba(255,255,255,0.6) !important;
  text-decoration: none !important;
  transition: color 0.25s ease !important;
}

#footerContent a:hover {
  color: var(--sps-terracotta-light) !important;
}

.sps-footer__links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sps-footer__links li {
  margin-bottom: 10px;
}

.sps-footer__links a {
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.sps-footer__links a::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 4px;
  background: var(--sps-terracotta);
  border-radius: 50%;
  flex-shrink: 0;
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.sps-footer__links a:hover::before {
  opacity: 1;
  transform: translateX(0);
}

/* Footer contact info */
.sps-footer__contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 14px;
}

.sps-footer__contact-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--sps-terracotta);
  font-size: 14px;
  transition: background 0.25s ease;
}

.sps-footer__contact-item:hover .sps-footer__contact-icon {
  background: rgba(196, 112, 75, 0.15);
}

.sps-footer__contact-text {
  color: rgba(255,255,255,0.7);
}

.sps-footer__contact-text a {
  color: rgba(255,255,255,0.7) !important;
}

.sps-footer__contact-text a:hover {
  color: var(--sps-terracotta-light) !important;
}

/* Social links */
.sps-footer__social {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.sps-footer__social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06) !important;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.6) !important;
  font-size: 16px;
  transition: all 0.25s ease !important;
  text-decoration: none !important;
}

.sps-footer__social a:hover {
  background: var(--sps-terracotta) !important;
  color: #FFFFFF !important;
  transform: translateY(-2px);
}

/* Footer bottom bar */
.sps-footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.sps-footer__copyright {
  color: rgba(255,255,255,0.4);
  font-size: 13px;
  margin: 0;
}

.sps-footer__legal {
  display: flex;
  gap: 20px;
  align-items: center;
}

.sps-footer__legal a {
  color: rgba(255,255,255,0.4) !important;
  font-size: 13px;
}

.sps-footer__legal a:hover {
  color: rgba(255,255,255,0.7) !important;
}

/* Override old footer styles */
.ko_Theme #website #footerContent h1,
.ko_Theme #website #footerContent h2,
.ko_Theme #website #footerContent h3,
.ko_Theme #website #footerContent h4,
.ko_Theme #website #footerContent h5,
.ko_Theme #website #footerContent h6 {
  color: #FFFFFF !important;
  font-family: var(--sps-font-body) !important;
}

/* Footer responsive */
@media (max-width: 991px) {
  .sps-footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 575px) {
  .sps-footer__grid {
    grid-template-columns: 1fr;
    gap: 28px;
    text-align: center;
  }

  .sps-footer__heading::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .sps-footer__contact-item {
    justify-content: center;
  }

  .sps-footer__social {
    justify-content: center;
  }

  .sps-footer__bottom {
    flex-direction: column;
    text-align: center;
  }

  .sps-footer__legal {
    justify-content: center;
  }

  .sps-footer__main {
    padding: 40px 0 28px 0;
  }
}

/* --- Contact Form --- */
.ContactForm {
  background: var(--sps-bg-card) !important;
  border-radius: var(--sps-radius-lg) !important;
  padding: 40px !important;
  box-shadow: var(--sps-shadow-md) !important;
}

.ContactForm h3 {
  color: var(--sps-text-primary) !important;
  margin-bottom: 24px !important;
  font-size: 1.8rem !important;
}

.ContactForm .form-control {
  border: 1px solid var(--sps-border) !important;
  border-radius: var(--sps-radius) !important;
  padding: 12px 16px !important;
  font-family: var(--sps-font-body) !important;
  font-size: 14px !important;
  transition: border-color var(--sps-transition), box-shadow var(--sps-transition);
  background: var(--sps-white) !important;
}

.ContactForm .form-control:focus {
  border-color: var(--sps-terracotta) !important;
  box-shadow: 0 0 0 3px var(--sps-terracotta-20) !important;
  outline: none !important;
}

.ContactForm .form-label {
  font-weight: 500 !important;
  font-size: 13px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  color: var(--sps-text-secondary) !important;
  margin-bottom: 6px !important;
}

.ContactForm .form-check-label {
  font-size: 14px !important;
  color: var(--sps-text-primary) !important;
}

.ContactForm .form-check-input:checked {
  background-color: var(--sps-terracotta) !important;
  border-color: var(--sps-terracotta) !important;
}

/* --- Cookie Consent --- */
.cookie-consent {
  background: var(--sps-bg-card) !important;
  border-top: 3px solid var(--sps-terracotta) !important;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.1) !important;
  font-family: var(--sps-font-body) !important;
}

/* --- Scroll to Top --- */
#scrollToTop {
  background: var(--sps-terracotta) !important;
  color: #FFFFFF !important;
  border-radius: 50% !important;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--sps-shadow-md);
  transition: all var(--sps-transition);
}

#scrollToTop:hover {
  background: var(--sps-terracotta-dark) !important;
  transform: translateY(-3px);
}

/* --- Gallery Page Enhancements --- */
.lightbox img,
a.lightbox img {
  border-radius: var(--sps-radius) !important;
  transition: all var(--sps-transition);
}

a.lightbox:hover img {
  transform: scale(1.03);
  box-shadow: var(--sps-shadow-lg);
}

/* --- Responsive --- */
@media (max-width: 992px) {
  :root {
    --sps-section-padding: 50px;
  }

  section.keditDark h1 {
    font-size: 2rem !important;
  }

  .ContactForm {
    padding: 24px !important;
  }
}

@media (max-width: 768px) {
  .ko_Theme .logoHolder img {
    max-height: 70px !important;
    height: 70px !important;
    min-height: 70px !important;
  }

  .ko_Theme .logoHolder h2 {
    min-height: 70px !important;
  }

  .ko_Theme #headerMenu {
    padding: 8px 12px !important;
  }

  .koGrid > div {
    padding: 20px 16px !important;
  }

  section.keditDark h1 {
    font-size: 1.6rem !important;
  }
}

/* --- Smooth Scroll --- */
html {
  scroll-behavior: smooth;
}

/* --- Selection Color --- */
::selection {
  background: var(--sps-terracotta-light);
  color: var(--sps-text-primary);
}

/* --- Focus Visible (Accessibility) --- */
*:focus-visible {
  outline: 2px solid var(--sps-terracotta) !important;
  outline-offset: 2px;
}

/* --- Utility: Terracotta text --- */
.text-terracotta {
  color: var(--sps-terracotta) !important;
}

.bg-terracotta {
  background-color: var(--sps-terracotta) !important;
}

.bg-terracotta-light {
  background-color: var(--sps-terracotta-lighter) !important;
}
