/**
 * Life'Scape - CSS Principal
 * Reproduction EXACTE du site original life-scape.fr
 * Date: 2026-02-08
 */

/* ========================================
   RESET & BASE STYLES
   ======================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html, body {
  width: 100% !important;
  background-color: var(--color-bg-secondary); /* #E0DDC7 */
  box-sizing: border-box;
  overflow-x: hidden !important;
}

body {
  font-family: var(--font-primary);
  color: var(--color-text-primary);
  line-height: 1.6;
  background: var(--color-bg-primary); /* #DEDBC3 */
  margin: 0;
  padding: 0;
  overflow-x: hidden !important;
  position: relative;
}

/* ========================================
   TYPOGRAPHY
   ======================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: 1.2;
  margin: 0 0 1rem;
  font-weight: normal;
  color: var(--color-text-primary);
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 2rem; }
h4 { font-size: 1.75rem; }
h5 { font-size: 1.5rem; }
h6 { font-size: 1.25rem; }

p {
  margin: 0 0 1rem;
  font-family: var(--font-body);
}

a {
  color: var(--color-text-secondary);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--color-primary);
}

/* Note: WordPress has img rules but they conflict - removing for now to avoid issues */
/* img {
  max-width: 100%;
  height: auto;
  display: block;
} */

/* ========================================
   CONTAINER & LAYOUT
   ======================================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

.wrapper {
  width: 100%;
}

/* ========================================
   HEADER
   ======================================== */
.site-header {
  background: var(--color-bg-primary);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  background: var(--color-bg-secondary);
  font-size: 0.9rem;
}

.phone_number {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--color-text-primary);
  font-weight: 500;
}

.phone_number i {
  color: var(--color-primary);
}

.trad-social {
  display: flex;
  align-items: center;
  gap: 20px;
}

.socials {
  display: flex;
  gap: 15px;
}

.socials a {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s ease;
}

.socials a:hover {
  opacity: 0.7;
}

.header__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
}

.logo img {
  height: 50px;
  width: auto;
}

.navigation-bar {
  flex: 1;
  display: flex;
  justify-content: flex-end;
}

.navigation-bar .menu {
  list-style: none;
  display: flex;
  gap: 30px;
  align-items: center;
  margin: 0;
  padding: 0;
}

.navigation-bar .menu > li {
  position: relative;
}

.navigation-bar .menu > li > a {
  color: var(--color-text-primary);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 8px 15px;
  display: block;
  transition: all 0.3s ease;
}

.navigation-bar .menu > li > a:hover {
  color: var(--color-nav-primary);
}

/* Sub-menu (dropdown) */
.sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--color-bg-primary);
  min-width: 250px;
  padding: 10px 0;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  list-style: none;
  margin: 5px 0 0 0;
  z-index: 100;
}

.menu li:hover .sub-menu {
  display: block;
}

.sub-menu li {
  margin: 0;
}

.sub-menu a {
  display: block;
  padding: 10px 20px;
  color: var(--color-text-primary);
  white-space: nowrap;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.sub-menu a:hover {
  background: var(--color-nav-light);
  color: var(--color-nav-primary);
}

/* Burger menu mobile */
.burger-menu {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.burger-menu div {
  width: 25px;
  height: 3px;
  background: var(--color-text-primary);
  margin: 5px 0;
  transition: 0.3s;
}

/* ========================================
   BUTTONS
   ======================================== */
.button,
.btn {
  display: inline-block;
  padding: 12px 30px;
  background: var(--color-primary);
  color: var(--color-text-primary);
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  font-family: var(--font-body);
}

.button:hover,
.btn:hover {
  background: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 200, 35, 0.4);
}

.button.secondary,
.btn-secondary {
  background: transparent;
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
}

.button.secondary:hover,
.btn-secondary:hover {
  background: var(--color-primary);
  color: var(--color-text-primary);
}

/* ========================================
   HOMEPAGE
   ======================================== */
.homepage {
  width: 100%;
}

.homepage__container {
  width: 100%;
}

.content-page-blocks {
  width: 100%;
}

/* HERO SECTION */
.homepage-first-section {
  position: relative;
  padding: 80px 20px;
  background: var(--color-bg-primary);
  overflow: hidden;
}

.homepage-first-section .left-picture,
.homepage-first-section .right-picture {
  position: absolute;
  top: 0;
  width: 300px;
  height: 100%;
  z-index: 1;
}

.homepage-first-section .left-picture {
  left: 0;
}

.homepage-first-section .right-picture {
  right: 0;
}

.homepage-first-section .left-picture img,
.homepage-first-section .right-picture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* opacity: 0.6; */ /* REMOVED - not in WordPress original */
}

.middle-container {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
}

.text-section {
  /* text-align: center; */
  margin-bottom: 60px;
}

.text-section h1 {
  font-size: 3rem;
  margin-bottom: 30px;
  font-family: var(--font-heading);
}

.text-section p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 30px;
  color: var(--color-text-secondary);
}

.text-section .buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

/* KEY NUMBERS */
.key-numbers {
  text-align: center;
  padding: 40px 0;
}

.key-numbers h2 {
  font-size: 2rem;
  margin-bottom: 40px;
  font-family: var(--font-heading);
}

.key-numbers-container {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  max-width: 900px;
  margin: 0 auto;
}

.background-frame {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.1;
}

.background-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.key-number {
  position: relative;
  z-index: 1;
  text-align: center;
}

.icon-container {
  width: 80px;
  height: 80px;
  margin: 0 auto 15px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-container img {
  width: 60px;
  height: 60px;
  object-fit: contain;
}

.key-number .text {
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  font-family: var(--font-body);
}

/* HOMEPAGE OVERLAY */
.homepage-overlay {
  text-align: center;
  margin: -50px 0 50px;
}

.small-image {
  display: inline-block;
}

.small-image img {
  width: 150px;
  height: auto;
  border-radius: 8px;
  /* box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2); */ /* REMOVED - not in WordPress original */
}

/* SLIDER SECTION */
.slider-container {
  padding: 80px 20px;
  background: var(--color-bg-secondary);
}

.buttons-and-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
}

.buttons-and-title h2 {
  font-size: 2.5rem;
  font-family: var(--font-heading);
  margin: 0;
}

.sliders_buttons {
  display: flex;
  gap: 15px;
}

.custom-prev,
.custom-next {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--color-primary);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.custom-prev:hover,
.custom-next:hover {
  background: var(--color-primary-dark);
  transform: scale(1.1);
}

.custom-prev i,
.custom-next i {
  color: var(--color-text-primary);
  font-size: 1.2rem;
}

/* SWIPER CAROUSEL */
.slider-section.swiper {
  overflow: visible;
}

.swiper-slide {
  height: auto;
  display: flex;
}

.slide-background {
  position: absolute;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.slide-background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-link {
  display: block;
  text-decoration: none;
  width: 100%;
  position: relative;
  z-index: 1;
}

.card-elements {
  padding: 20px;
}

.slider-picture {
  margin-bottom: 20px;
  border-radius: 8px;
  overflow: hidden;
}

.slider-picture img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.card-link:hover .slider-picture img {
  transform: scale(1.05);
}

.title-icons h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: var(--color-text-primary);
  font-family: var(--font-heading-secondary);
}

.icons {
  display: flex;
  gap: 20px;
  justify-content: center;
}

.slider-icon {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--color-text-secondary);
}

.slider-icon img {
  width: 20px;
  height: 20px;
}

/* ========================================
   FOOTER
   ======================================== */
.site-footer {
  background: var(--color-bg-dark);
  color: var(--color-text-light);
  padding: 60px 20px 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto 40px;
}

.footer-section h3 {
  color: var(--color-primary);
  margin-bottom: 20px;
  font-size: 1.25rem;
  font-family: var(--font-heading-secondary);
}

.footer-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-section ul li {
  margin-bottom: 10px;
}

.footer-section a {
  color: var(--color-text-light);
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.footer-section a:hover {
  opacity: 1;
  color: var(--color-primary);
}

.footer-bottom {
  padding-top: 20px;
  text-align: center;
  /* opacity: 0.7; */ /* REMOVED - not in WordPress original */
  font-size: 0.9rem;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 1024px) {
  .key-numbers-container {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-content {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .navigation-bar {
    display: none;
  }

  .burger-menu {
    display: block;
  }

  .header__top {
    flex-direction: column;
    gap: 10px;
  }

  h1 { font-size: 2rem; }
  .text-section h1 { font-size: 2.5rem; }

  .homepage-first-section .left-picture,
  .homepage-first-section .right-picture {
    display: none;
  }

  .key-numbers-container {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .buttons-and-title {
    flex-direction: column;
    gap: 20px;
  }

  .footer-content {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .text-section h1 {
    font-size: 2rem;
  }

  .text-section .buttons {
    flex-direction: column;
  }
}
