/* ===========================================
   VARIABLES CSS & RESET
   =========================================== */

:root {
  --primary-color: #1b6069;
  --primary-variant-color: #4f8984;
  --text-color: #1b6069;
  --background-color: #ebebda;
  /* --background-color: #eeeccb; */
  --accent-color: #bac7a2;
  --brown-color: #28272b;
  --white-variant: #f5f5f0;
  --white-surface: #ffffff;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Nunito', sans-serif;
  color: var(--text-color);
  overflow: hidden;
  height: 100vh;
}

/* ===========================================
   LAYOUT & CONTAINERS
   =========================================== */

/* Hide scrollbar but keep functionality */
.snap-container {
  height: 100vh;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.snap-container::-webkit-scrollbar {
  display: none;
}

/* ===========================================
   HEADER
   =========================================== */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  padding: 1rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  /* background: rgba(255, 255, 255, 0.05); */
  /* backdrop-filter: blur(2px); */
  transition: all 0.3s ease;
}

header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.15) 0%,
    rgba(255, 255, 255, 0.04) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  backdrop-filter: blur(6px);
  mask: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 1) 0%,
    rgba(0, 0, 0, 0.7) 50%,
    rgba(0, 0, 0, 0.3) 100%
  );
  -webkit-mask: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 1) 0%,
    rgba(0, 0, 0, 0.7) 50%,
    rgba(0, 0, 0, 0.3) 100%
  );
  z-index: -1;
}

header.scrolled {
  padding: 0.4rem 1rem 0.2rem;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
}

.logo {
  padding: 0.5rem 1rem 0.2rem;
  border-radius: 15px;
  position: relative;
}

.logo-loader-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(255, 255, 255, 0.9);
  z-index: 3;
  transition: opacity 0.3s ease-out;
  border-radius: 15px;
}

.logo-loader-container.hidden {
  opacity: 0;
  pointer-events: none;
}

.logo-loader-container .loader {
  width: 30px;
  height: 30px;
  border: 3px solid var(--primary-color);
  border-bottom-color: transparent;
}

.logo img {
  height: 80px;
  transition: all 0.5s ease;
  opacity: 0;
}

.logo img.fade-in {
  opacity: 0;
  animation: fadeIn 0.8s ease-out forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.logo img.loaded {
  opacity: 1;
}

nav {
  padding: 0rem 2rem;
  margin: 0rem;
  transition: padding 0.3s ease;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 1rem;
  font-size: 1.8rem;
}

nav a {
  text-decoration: none;
  color: var(--white-surface);
  font-weight: 700;
  transition: all 0.3s ease;
  background-color: var(--primary-color);
  padding: 0.8rem 1.5rem;
  border-radius: 25px;
  text-transform: uppercase;
  font-size: 1rem;
  letter-spacing: 0.5px;
  justify-content: center;
  align-items: center;
  display: flex;
}

nav a:hover {
  background-color: var(--accent-color);
  color: var(--text-color);
  transform: translateY(-3px);
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.15);
}

/* ===========================================
   SECTIONS GÉNÉRALES
   =========================================== */

.snap-section {
  height: 100vh;
  scroll-snap-align: start;
  display: flex;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding-top: 6rem;
}

/* ===========================================
   SECTION ACCUEIL
   =========================================== */

#accueil {
  position: relative;
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  text-align: center;
  scroll-snap-align: start;
  overflow: hidden;
  padding-top: 6rem;
}

/* Hero Carousel */
.hero-carousel {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  display: flex;
  flex-direction: column;
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
}

.carousel-row {
  flex: 1;
  width: 100%;
  overflow: hidden;
  position: relative;
  margin: -0.8rem 0;
}

.carousel-track {
  display: flex;
  width: calc(200%);
  height: 100%;
  align-items: center;
  gap: 1rem;
  will-change: transform;
}

.carousel-track img {
  height: 85%;
  width: 280px;
  min-width: 280px;
  max-width: 280px;
  object-fit: cover;
  border-radius: 15px;
  filter: brightness(0.7) saturate(0.9) blur(0.5px);
  flex-shrink: 0;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

.carousel-track img[loading='eager'] {
  opacity: 1;
}

.carousel-track img.loaded {
  opacity: 1;
}

/* Effet de blur pendant le chargement */
.carousel-track img:not(.loaded) {
  filter: blur(10px);
  transform: scale(1.1);
}

/* Animation de fade-in une fois chargée */
.carousel-track img.loaded {
  filter: blur(0);
  transform: scale(1);
  transition: filter 0.5s ease-out, transform 0.5s ease-out,
    opacity 0.5s ease-out;
}

/* Animations */
.carousel-left {
  animation: slideLeftInfinite 100s linear infinite;
}

.carousel-right {
  animation: slideRightInfinite 105s linear infinite;
}

@keyframes slideLeftInfinite {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

@keyframes slideRightInfinite {
  0% {
    transform: translateX(-50%);
  }
  100% {
    transform: translateX(0);
  }
}

/* Hero Overlay */
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    ellipse at center,
    rgba(238, 236, 203, 0.95) 10%,
    rgba(238, 236, 203, 0.65) 60%,
    rgba(238, 236, 203, 0.65) 100%
  );
  z-index: 2;
}

#accueil .content {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.hero-center {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  padding-bottom: 2rem;
}

#accueil h1 {
  font-size: 4rem;
  font-weight: 700;
  margin: 0;
  line-height: 0.9;
  text-align: center;
  color: var(--text-color);
  position: relative;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  /* padding-top: 2rem; */
}

#accueil p {
  text-align: center;
  color: #2d2121;
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1.6;
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  padding-bottom: 1rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Hero image container */
.hero-image-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
}

.hero-image {
  width: 350px;
  height: 350px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--primary-color);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.hero-bottom {
  text-align: center;
  padding-bottom: 2rem;
}

.hero-subtitle {
  text-align: center;
  color: var(--text-color);
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.4;
  max-width: 600px;
  margin: 0 auto 1rem auto;
}

.hero-location {
  text-align: center;
  color: var(--brown-color);
  font-size: 1.1rem;
  font-weight: 500;
  margin: 0;
  opacity: 0.8;
}

.hero-cta-btn {
  display: inline-block;
  background-color: var(--primary-color);
  color: var(--background-color);
  text-decoration: none;
  border: none;
  padding: 0.8rem 1.5rem;
  border-radius: 35px;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s ease;
  margin: 0.5rem 0 1rem 0;
  font-family: 'Nunito', sans-serif;
  width: fit-content;
}

.hero-cta-btn:hover {
  background-color: #8bb399;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* Credit card */
.credit-card {
  position: absolute;
  right: -3rem;
  top: 25%;
  transform: translateY(-50%);
  background: var(--white-surface);
  border-radius: 40px;
  padding: 1.5rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
  text-align: left;
  max-width: 200px;
  z-index: 3;
  padding-right: 4rem;
  border: 2px solid rgba(27, 96, 105, 0.1);
}

.credit-percentage {
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary-color);
  line-height: 1;
}

.credit-percentage span {
  font-size: 1.9rem;
  font-weight: 600;
  color: var(--text-color);
}

.credit-text {
  color: var(--text-color);
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.3;
}

/* ===========================================
   SECTION SERVICES
   =========================================== */

#services {
  background: #4f8984;
  position: relative;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0;
  margin-top: 0;
  padding-top: 6rem;
  scroll-snap-align: start;
  overflow: hidden;
}

#services::before {
  display: none;
}

#services .content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1800px;
  margin: 0 auto;
  padding: 4rem;
  text-align: center;
}

.services-title {
  font-size: 4rem;
  font-weight: 700;
  color: #ebebda;
  margin: 0;
  letter-spacing: 2px;
  line-height: 1;
}

.services-subtitle {
  font-size: 1.6rem;
  font-weight: 300;
  color: #ebebda;
  margin: 0;
  margin-bottom: 2rem;
  line-height: 1;
}

.services-grid-new {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.5rem;
  margin-bottom: 2rem;
  max-width: 1500px;
  margin-left: auto;
  margin-right: auto;
}

.service-card-container {
  /* aspect-ratio: 15/17; */
  perspective: 1000px;
  min-height: 367px;
  height: 400px;
  /* width: 300px; */
  /* cursor: pointer; */
}

.service-card-new {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.6s ease;
}

.service-card-container:hover .service-card-new {
  transform: rotateY(180deg);
}

.service-card-container.flipped .service-card-new {
  transform: rotateY(180deg);
}

.service-card-front,
.service-card-back {
  width: 100%;
  height: 100%;
  position: absolute;
  backface-visibility: hidden;
  border-radius: 25px;
  padding: 2.5rem 1.5rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.service-card-front {
  background: #ebebda;
}

.service-card-back {
  background: #ebebda;
  transform: rotateY(180deg);
  padding: 1.5rem;
  justify-content: flex-start;
}

.service-card-back h4 {
  color: #4f8984;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 0.5rem 0;
  text-align: center;
}

.service-card-back ul {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
  width: 100%;
}

.service-card-back li {
  color: #4f8984;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 0.8rem;
  padding-left: 1rem;
  position: relative;
}

.service-card-back li:before {
  content: '•';
  color: #4f8984;
  position: absolute;
  left: 0;
  top: 0;
  font-weight: bold;
}

.service-icon-new {
  width: 80px;
  height: 80px;
  background-color: #4f8984;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem auto;
  transition: all 0.3s ease;
}

.service-icon-new i {
  font-size: 36px;
  color: #ebebda;
}

.service-card-front h3 {
  color: #4f8984;
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0;
  line-height: 1.2;
}

.services-conclusion {
  max-width: 1000px;
  margin: 0 auto 2rem auto;
}

.services-conclusion p {
  font-size: 1.3rem;
  line-height: 1.6;
  color: #ebebda;
  font-weight: 400;
}

.services-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.services-button {
  background-color: var(--background-color);
  color: var(--brown-color);
  text-decoration: none;
  padding: 1rem 2.5rem;
  border-radius: 50px;
  font-size: 1.3rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease;
  border: 2px solid transparent;
}

.services-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.15);
  border-color: var(--accent-color);
}

.button-leaf {
  width: 30px;
  height: 30px;
}

.services-button-subtitle {
  color: var(--brown-color);
  font-size: 1rem;
  opacity: 0.8;
}

/* ===========================================
   ÉLÉMENTS FIXES & NAVIGATION
   =========================================== */

.fixed-buttons {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  display: flex;
  gap: 1rem;
  z-index: 1000;
  height: 90px;
  display: flex;
}

.fixed-buttons a {
  width: 60px;
  height: 60px;
  background: var(--text-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s;
  cursor: pointer;
  position: relative;
}

.fixed-buttons a:hover {
  transform: translateY(-10px);
}

.fixed-buttons img {
  width: 24px;
  height: 24px;
}

.fixed-buttons .img-box {
  background-color: var(--background-color);
  border-radius: 50%;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-extension {
  width: 60px;
  height: 120px;
  background-color: var(--text-color);
  position: absolute;
  top: 50%;
  z-index: -1;
  transition: height 0.3s ease;
}

.phone-button {
  align-self: flex-end;
}

/* Scroll indicators */
.scroll-indicators {
  position: fixed;
  right: 2rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  z-index: 1000;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  /* background: var(--primary-variant-color); */
  background: var(--brown-color);
  cursor: pointer;
  transition: all 0.3s;
  /* border: 1px solid black; */
}

.dot.active {
  background: white;
  transform: scale(1.2);
}

/* ===========================================
   SECTION À PROPOS
   =========================================== */

#a-propos {
  /* background: linear-gradient(
    to bottom,
    var(--accent-color) 0%,
    var(--accent-color) 55%,
    var(--white-surface) 55%,
    var(--white-surface) 100%
  ); */
  background-color: #ebebda;
  position: relative;
  overflow: hidden;
  padding-top: 6rem;
  min-height: 100vh;
  padding-right: 3rem;
  padding-left: 3rem;
}

#a-propos .content {
  max-width: 1600px;
  margin: 0 auto;
  text-align: center;
  padding: 1rem;
  justify-content: center;
  align-items: center;
  display: flex;
  flex-direction: column;
}

.about-title {
  font-size: 4rem;
  font-weight: 700;
  color: var(--text-color);
  margin: 0;
  line-height: 1;
  margin-bottom: 2rem;
}

.about-subtitle {
  font-size: 2.5rem;
  color: var(--text-color);
  margin: 0;
  margin-bottom: 1.5rem;
  font-weight: 300;
  line-height: 1;
}

.about-intro {
  font-size: 1.2rem;
  color: var(--text-color);
  max-width: 800px;
  margin: 0 auto 2rem;
  line-height: 1.4;
}

.comparison-container {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2rem;
  position: relative;
  margin-top: 2rem;
}

.comparison-column {
  flex: 1;
  padding: 1.5rem;
  border-radius: 25px;
  text-align: left;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  background-color: var(--white-surface);
  position: relative;
}

.comparison-column.classic {
  background-color: var(--white-surface);
  margin-top: 2rem;
}

.comparison-column.benevie {
  background-color: var(--primary-color);
  color: var(--white-surface);
  padding: 2rem;
  margin-top: 0;
  transform: scale(1.05);
}

.comparison-column h4 {
  font-size: 1.4rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.comparison-column.classic h4 {
  color: var(--brown-color);
}

.comparison-column.benevie h4 {
  color: var(--white-surface);
}

.comparison-column ul {
  list-style: none;
  padding: 0;
}

.comparison-column li {
  margin-bottom: 1rem;
  font-size: 1rem;
  line-height: 1.3;
}

.comparison-column.classic li {
  color: var(--text-color);
}

.comparison-column.classic strong {
  color: #cc4444;
}

.comparison-column.benevie strong {
  color: var(--white-surface);
}

.arrow-down,
.arrow-up {
  width: 24px;
  height: auto;
}

.about-conclusion {
  font-size: 1.1rem;
  color: var(--text-color);
  max-width: 900px;
  margin: 0 auto;
  line-height: 1.4;
}

/* Nouveaux styles pour la section À propos */
.about-new-content {
  max-width: 1200px;
  margin: 0 auto;
  text-align: left;
  /* padding: 2rem 0; */
}

.about-content-wrapper {
  display: flex;
  flex-direction: row;
  gap: 3rem;
  align-items: stretch;
}

.about-text {
  flex: 2;
  margin-bottom: 0;
}

.about-image-container {
  flex-shrink: 0;
  width: 380px;
  margin-left: 2rem;
  display: flex;
  align-items: start;
}

.about-image {
  width: 100%;
  height: 80%;
  /* aspect-ratio: 1 / 1; */
  /* border-radius: 50%; */
  border-radius: 25px;
  object-fit: cover;
  border: 4px solid var(--primary-color);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

/* Styles pour les boutons accordéon */
.about-accordion-buttons {
  display: flex;
  gap: 1rem;
  padding-top: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.about-accordion-btn {
  background: var(--primary-color);
  /* color: var(--white-surface); */
  color: #ebebda;
  border: none;
  padding: 0.8rem 1.5rem;
  border-radius: 25px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  z-index: 10;
}

.about-accordion-btn:hover {
  background: var(--accent-color);
  color: var(--text-color);
  transform: translateY(-3px);
}

/* Styles pour les boutons avec feuilles (balises img) */
.btn-with-leaf {
  position: relative;
  display: inline-block;
}

.leaf-decoration {
  position: absolute;
  width: 80px;
  height: 80px;
  pointer-events: none;
  z-index: 1;
  /* opacity: 0.3; */
  object-fit: contain;
}

.leaf-left {
  bottom: 2px;
  left: -30px;
}

.leaf-right {
  top: 2px;
  right: -30px;
  transform: rotate(180deg);
}

/* Styles pour la modale et accordéon - déplacés vers la section principale */

.founder-title {
  font-size: 2.2rem;
  color: var(--text-color);
  margin-bottom: 2.5rem;
  line-height: 1.3;
  font-weight: 600;
}

.founder-title em {
  font-style: italic;
  color: var(--primary-color);
  font-weight: 700;
}

.about-text p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--brown-color);
  margin-bottom: 1.5rem;
  text-align: justify;
}

.about-text strong {
  font-weight: 700;
  color: var(--text-color);
}

.values-section {
  margin-top: 3rem;
}

.values-divider {
  height: 1px;
  background: var(--text-color);
  margin-bottom: 2rem;
  opacity: 0.3;
}

.values-header {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.values-icon {
  font-size: 2rem;
  font-weight: 300;
  color: var(--text-color);
  line-height: 1;
}

.values-title {
  font-size: 1.8rem;
  color: var(--text-color);
  margin: 0;
  font-weight: 600;
}

/* Accordéons */
.accordion-container {
  margin-top: 2rem;
}

.accordion-item {
  margin-bottom: 1rem;
  border: 1px solid rgba(27, 96, 105, 0.2);
  border-radius: 15px;
  overflow: hidden;
  background: var(--white-surface);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.accordion-header {
  padding: 1.2rem 1.5rem;
  background: var(--white-surface);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s ease;
  border-bottom: 1px solid transparent;
}

.accordion-header:hover {
  background: rgba(186, 199, 162, 0.1);
}

.accordion-header.active {
  background: rgba(186, 199, 162, 0.15);
  border-bottom-color: rgba(27, 96, 105, 0.1);
}

.accordion-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-color);
  margin: 0;
}

.accordion-icon {
  font-size: 1.5rem;
  color: var(--text-color);
  font-weight: 300;
  transition: transform 0.3s ease;
  line-height: 1;
}

.accordion-header.active .accordion-icon {
  transform: rotate(45deg);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background: var(--white-surface);
}

.accordion-content.active {
  max-height: 200px;
}

.accordion-content p {
  padding: 1.5rem;
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--brown-color);
}

/* ===========================================
   SECTION AVIS VÉRIFIÉS
   =========================================== */

#avis-verifies {
  /* background: linear-gradient(
    to bottom,
    var(--accent-color) 0%,
    var(--accent-color) 50%,
    var(--white-surface) 50%,
    var(--white-surface) 100%
  ); */
  background-color: var(--accent-color);
  position: relative;
  overflow: hidden;
  padding-top: rem;
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding-left: 4rem;
  padding-right: 4rem;
}

#avis-verifies h2 {
  color: var(--text-color);
  font-size: 4rem;
  font-weight: 700;
  text-align: center;
  margin: 0;
  line-height: 1;
}

#avis-verifies .content {
  padding-bottom: 4rem;
  text-align: center;
}

.avis-subtitle {
  color: var(--text-color);
  font-size: 2rem;
  font-weight: lighter;
  text-align: center;
  line-height: 1;
  margin: 0;
  /* padding-bottom: 1.5rem; */
}

/* Avis Carousel Styles */
.avis-carousel-container {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin-top: 2rem;
}

.avis-carousel-wrapper {
  overflow: hidden;
  position: relative;
  margin: 0 auto;
}

.avis-carousel-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.avis-card {
  flex-shrink: 0;
  background: var(--white-surface);
  border-radius: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  position: relative;
  overflow: hidden;
}

.avis-photo {
  display: flex;
  justify-content: center;
  margin: 0 auto 1rem;
  position: relative;
}

.avis-client-img {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--primary-color);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  display: block;
  position: relative;
  z-index: 2;
}

.avis-name {
  color: var(--text-color);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
  text-align: center;
}

.avis-text {
  color: var(--text-color);
  font-size: 0.95rem;
  line-height: 1.4;
  margin-bottom: 0.4rem;
  text-align: center;
}

.avis-text:last-of-type {
  margin-bottom: 0;
}

.avis-carousel-btn {
  background: var(--white-surface);
  border: none;
  border-radius: 50%;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  flex-shrink: 0;
  z-index: 10;
}

/* Très petits écrans */
@media (max-width: 375px) {
  .avis-carousel-btn {
    width: 32px;
    height: 32px;
  }

  .avis-photo {
    margin-bottom: 0.6rem;
  }

  .avis-client-img {
    width: 80px;
    height: 80px;
  }

  .avis-name {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
  }

  .avis-text {
    font-size: 0.85rem;
    line-height: 1.3;
  }
}

/* Petits écrans mobiles */
@media (min-width: 376px) and (max-width: 420px) {
  .avis-carousel-btn {
    width: 32px;
    height: 32px;
  }

  .avis-photo {
    margin-bottom: 0.7rem;
  }

  .avis-client-img {
    width: 90px;
    height: 90px;
  }

  .avis-name {
    font-size: 1.2rem;
    margin-bottom: 0.6rem;
  }

  .avis-text {
    font-size: 0.9rem;
    line-height: 1.35;
  }
}

.avis-carousel-btn:hover {
  background: var(--primary-color);
  color: var(--white-surface);
  transform: scale(1.05);
}

.avis-carousel-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  transform: none;
}

.avis-carousel-btn:disabled:hover {
  background: var(--white-surface);
  transform: none;
}

.avis-carousel-btn i {
  font-size: 1.2rem;
  color: var(--text-color);
}

.avis-carousel-btn:hover i {
  color: var(--white-surface);
}

.avis-carousel-btn:disabled i {
  color: var(--text-color);
}

.avis-card {
  min-width: 320px;
  max-width: 320px;
  width: 320px;
  flex-shrink: 0;
  background: var(--white-surface);
  border-radius: 20px;
  padding: 1.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  position: relative;
  overflow: hidden;
}

.avis-photo {
  display: flex;
  justify-content: center;
  width: 110px;
  height: 110px;
  margin: 0 auto;
  position: relative;
}

.avis-client-img {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--primary-color);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  display: block;
  position: relative;
  z-index: 2;
}

/* Ajout d'un fallback pour les images qui ne se chargent pas */
.avis-client-img::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--primary-color);
  border-radius: 50%;
  opacity: 0.1;
  z-index: 1;
}

.avis-name {
  color: var(--text-color);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
}

.avis-text {
  color: var(--text-color);
  font-size: 0.95rem;
  line-height: 1.4;
  margin-bottom: 0.4rem;
}

.avis-text:last-of-type {
  margin-bottom: 0;
}

.avis-carousel-btn {
  background: var(--white-surface);
  border: none;
  border-radius: 50%;
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  z-index: 10;
  flex-shrink: 0;
}

.avis-carousel-btn:hover:not(:disabled) {
  background: var(--primary-color);
  color: var(--white-surface);
  transform: scale(1.05);
}

.avis-carousel-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  transform: none;
}

.avis-carousel-btn:disabled:hover {
  background: var(--white-surface);
  transform: none;
}

.avis-carousel-btn i {
  font-size: 1.2rem;
  color: var(--text-color);
}

.avis-carousel-btn:hover:not(:disabled) i {
  color: var(--white-surface);
}

.avis-carousel-btn:disabled i {
  color: var(--text-color);
}

/* Quote section */
.quote-section {
  background-color: var(--white-surface);
  padding: 2rem 0;
  width: 100vw;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.quote-content {
  max-width: 1000px;
  text-align: center;
  position: relative;
  padding: 0 3rem;
}

.quote-text {
  font-size: 1.2rem;
  line-height: 1.4;
  color: var(--brown-color);
  font-weight: 300;
}

.quote-text em {
  font-style: italic;
  font-weight: 400;
}

.quote-icon {
  color: var(--accent-color);
  font-size: 6rem;
  position: absolute;
}

.fa-quote-left {
  left: -40px;
  top: -40px;
}

.fa-quote-right {
  right: -40px;
  bottom: -40px;
}

.quote-button-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.quote-button {
  background-color: var(--background-color);
  border: none;
  padding: 1rem 2.5rem;
  border-radius: 50px;
  color: var(--text-color);
  font-size: 1.2rem;
  cursor: pointer;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(0, 0, 0, 0.04);
  transition: transform 0.3s ease;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.button-subtitle {
  font-size: 0.9rem;
  color: var(--brown-color);
  opacity: 0.8;
  text-align: center;
}

.quote-leaf {
  position: absolute;
  width: 80px;
  height: auto;
  right: -60px;
  bottom: -20px;
  transform: rotate(45deg);
}

/* ===========================================
   SECTION CONTACT
   =========================================== */

#contact {
  /* background: linear-gradient(135deg, #4F8984 0%, #5A9590 100%); */
  background: var(--primary-color);
  /* background: var(--primary-variant-color); */
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding-top: 6rem;
  scroll-snap-align: start;
}

.contact-container {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  padding-bottom: 2rem;
  padding-right: 2rem;
  padding-left: 2rem;
  height: 100%;
  flex: 1;
  align-items: center;
  justify-content: center;
  display: flex;
  flex-direction: column;
}

.contact-title {
  font-size: 4rem;
  line-height: 1;
  color: #ebebda;
  /* margin: 0 0 0.5rem 0; */
  font-weight: 700;
  letter-spacing: 2px;
  text-align: center;
}

.contact-subtitle {
  font-size: 1.1rem;
  color: #ebebda;
  line-height: 1.6;
  margin: 0 0 1rem 0;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  font-weight: 400;
  text-align: center;
}

.contact-form-wrapper {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-form {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}

.form-left {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 180px;
  width: 100%;
  gap: 1rem;
}

.form-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  height: 180px;
  width: 100%;
}

.form-group {
  /* margin-bottom: 1rem; */
  text-align: left;
}

.form-group.full-height {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.form-label {
  display: block;
  font-size: 1.1rem;
  color: #ebebda;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.required {
  font-size: 0.9rem;
  opacity: 0.8;
}

.name-fields {
  display: flex;
  gap: 0.5rem;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 0.8rem 1em;
  border: 2px solid #ebebda;
  border-radius: 25px;
  background: transparent;
  color: #ebebda;
  font-size: 1rem;
  font-family: 'Nunito', sans-serif;
  transition: all 0.3s ease;
  outline: none;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: rgba(235, 235, 218, 0.7);
}

.form-input:focus,
.form-textarea:focus {
  border-color: #ebebda;
  box-shadow: 0 0 0 3px rgba(235, 235, 218, 0.2);
}

.form-textarea {
  resize: none;
  min-height: 150px;
  height: 150px;
  border-radius: 20px;
  flex: 1;
}

.contact-submit-btn {
  background-color: #7ea08c;
  color: #ebebda;
  border: none;
  padding: 0.8rem 1.5rem;
  border-radius: 35px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 0.5rem;
  font-family: 'Nunito', sans-serif;
  align-self: center;
  width: fit-content;
}

.contact-submit-btn:hover {
  background-color: #8bb399;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* ===========================================
   SECTION FOOTER
   =========================================== */

#footer {
  /* background: rgba(79, 137, 132, 0.95); */
  backdrop-filter: blur(10px);
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem;
  scroll-snap-align: start;
}

.footer-container {
  width: 100vw;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  /* background: var(--accent-color); */
  /* margin-top: 3rem; */
  padding-top: 2rem;
  background: var(--primary-variant-color);
}

.footer-inner {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

.footer-top {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  padding: 0 0 1rem 0;
  align-items: start;
}

.footer-left {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-left h4 {
  color: #ebebda;
  font-size: 1.8rem;
  margin: 0;
}

.footer-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.footer-btn {
  display: inline-block;
  background: #7ea08c;
  color: #ebebda;
  text-decoration: none;
  padding: 0.8rem 1.5rem;
  border-radius: 30px;
  font-size: 1rem;
  font-weight: 600;
  transition: all 0.3s ease;
  text-align: center;
  letter-spacing: 0.5px;
}

.footer-btn:hover {
  background: #8bb399;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.footer-logo {
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.footer-logo img {
  width: 140px;
  height: auto;
}

.footer-menu h4,
.footer-social h4 {
  color: #ebebda;
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.footer-menu-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-menu ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-menu a {
  color: #ebebda;
  text-decoration: none;
  font-size: 1rem;
  transition: color 0.3s;
  opacity: 0.9;
}

.footer-menu a:hover {
  opacity: 1;
  color: rgba(235, 235, 218, 1);
}

.social-icons {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
}

.social-icon {
  width: 45px;
  height: 45px;
  background: #ebebda;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s;
  color: #4f8984;
  font-size: 1.3rem;
  text-decoration: none;
}

.social-icon:hover {
  transform: scale(1.1);
}

.location {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #ebebda;
  font-size: 1rem;
}

.location i {
  font-size: 1.2rem;
}

.footer-bottom {
  padding: 0;
}

.divider {
  height: 1px;
  background: rgba(235, 235, 218, 0.3);
  margin-bottom: 1rem;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #ebebda;
  font-size: 0.9rem;
  padding-bottom: 1rem;
  padding-right: 16%;
}

.footer-left-content {
  display: flex;
  gap: 2rem;
}

.copyright,
.credits {
  color: #ebebda;
  opacity: 0.8;
}

.legal-links {
  display: flex;
  gap: 2rem;
}

.legal-links a {
  color: #ebebda;
  text-decoration: none;
  transition: color 0.3s;
  opacity: 0.8;
}

.legal-links a:hover {
  opacity: 1;
}

@keyframes slideUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes itemSlideUp {
  from {
    transform: translateY(100px);
  }

  to {
    transform: translateY(0);
  }
}

.text-animate {
  opacity: 0;
  animation: slideUp 0.5s forwards;
}

/* Empêcher l'animation text-animate sur les avis */
#avis-verifies .text-animate {
  opacity: 1 !important;
  animation: none !important;
}

/* Forcer tous les éléments des avis à être visibles */
#avis-verifies h2,
#avis-verifies h3,
#avis-verifies p,
#avis-verifies .content,
#avis-verifies .avis-name,
#avis-verifies .avis-text {
  opacity: 1 !important;
  animation: none !important;
}

.tile-animate {
  animation: itemSlideUp 0.5s forwards;
}

/* Modale à propos */
.about-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1002;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all 0.3s ease;
}

.about-modal.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.about-accordion-buttons.column {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
  margin: 2.5rem 0 0 0;
}

/* Styles pour le contenu de la modale */
.about-modal-content {
  background: var(--white-surface);
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  padding: 2.5rem 2rem 2rem 2rem;
  max-width: 600px;
  width: 90vw;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
  transform: scale(0.8) translateY(20px);
  transition: transform 0.3s ease;
}

.about-modal.open .about-modal-content {
  transform: scale(1) translateY(0);
}

.about-modal-close {
  position: absolute;
  top: 1rem;
  right: 1.2rem;
  background: none;
  border: none;
  font-size: 2.5rem;
  color: var(--primary-color);
  cursor: pointer;
  z-index: 10;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s;
}

.about-modal-close:hover {
  background-color: rgba(0, 0, 0, 0.1);
  color: var(--brown-color);
}

.about-modal-content h4 {
  font-size: 1.8rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.about-modal-content ul {
  list-style: none;
  padding: 0;
}

.about-modal-content li {
  margin-bottom: 1.2rem;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--brown-color);
}

.about-modal-content strong {
  color: var(--text-color);
  font-weight: 700;
}

.about-modal-content p {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--brown-color);
  margin-bottom: 1rem;
}

body.about-modal-open {
  overflow: hidden;
}

/* Panneau à propos désactivé */
.about-panel {
  display: none !important;
}
@media (max-width: 1440px) {
  .services-grid-new {
    gap: 1rem;
  }
  .service-card-back ul li {
    font-size: 0.9rem;
  }
}

/* ===========================================
   RESPONSIVE DESIGN - MOBILE ONLY
   =========================================== */

/* Tablette - Avis carousel */
@media (min-width: 769px) and (max-width: 1024px) {
  .avis-carousel-wrapper {
    width: calc(2 * 320px + 24px); /* 2 cartes + 1 gap pour tablette */
    max-width: calc(2 * 320px + 24px);
  }
}

/* Media Query pour les écrans de faible hauteur mais pas en mode smartphone */
@media (min-width: 577px) and (max-height: 820px) {
  .contact-title {
    font-size: 3.2rem; /* 20% plus petit que 4rem */
  }

  .footer-menu-list {
    flex-direction: row;
    gap: 1rem;
  }

  .footer-btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
  }

  .footer-left h4 {
    font-size: 1.2rem;
  }

  .credits {
    font-size: 0.8rem;
  }

  .divider {
    margin-bottom: 0.2rem;
  }
  .contact-container {
    padding-bottom: 0.5rem;
  }

  .contact-submit-btn {
    margin: 0;
  }

  .footer-menu h4,
  .footer-social h4 {
    font-size: 1rem;
  }

  .footer-container {
    padding-top: 1.2rem;
  }

  #contact {
    padding-top: 5rem;
  }
}

/* ===========================================
   RESPONSIVE MOBILE - NOUVELLES RÈGLES
   =========================================== */

/* Bannière crédit d'impôt mobile */
.mobile-credit-banner {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--primary-variant-color)
  );
  color: white;
  padding: 0.5rem 1rem;
  text-align: center;
  z-index: 1001;
  display: none;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.mobile-credit-content {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
}

.mobile-credit-percentage {
  font-size: 1.5rem;
  font-weight: 700;
}

.mobile-credit-text {
  font-size: 0.9rem;
  font-weight: 600;
}

/* Navigation burger mobile */
.mobile-nav {
  display: none;
}

.burger-menu {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0.5rem;
}

.burger-menu span {
  width: 25px;
  height: 3px;
  background: var(--primary-color);
  transition: all 0.3s ease;
}

.burger-menu.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.burger-menu.active span:nth-child(2) {
  opacity: 0;
}

.burger-menu.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

.mobile-menu {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
  border-radius: 0 0 15px 15px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.mobile-menu.active {
  transform: translateY(0);
  opacity: 1;
  pointer-events: all;
}

.mobile-menu ul {
  list-style: none;
  padding: 1rem;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mobile-menu a {
  display: block;
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  padding: 0.7rem 1rem;
  border-radius: 25px;
  text-align: center;
  background: rgba(var(--primary-color), 0.1);
  transition: all 0.3s ease;
}

.mobile-menu a:hover,
.mobile-menu a:active,
.mobile-menu a:focus {
  background: var(--primary-color);
  color: white;
}

/* Service Modal */
.service-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  padding: 1rem;
}

.service-modal.active {
  display: flex;
}

.service-modal-content {
  background: white;
  border-radius: 20px;
  padding: 2rem;
  max-width: 500px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
}

.service-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #666;
}

.service-modal h4 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.service-modal ul {
  list-style: none;
  padding: 0;
}

.service-modal li {
  margin-bottom: 0.8rem;
  padding-left: 1.5rem;
  position: relative;
  line-height: 1.4;
}

.service-modal li:before {
  content: '•';
  color: var(--primary-color);
  position: absolute;
  left: 0;
  font-weight: bold;
}

/* Mobile - Ajustements essentiels uniquement */
@media (max-width: 768px) {
  .dot {
    display: none;
  }

  /* Bannière crédit d'impôt visible */
  .mobile-credit-banner {
    display: block;
  }

  /* Header avec navigation burger */
  .desktop-nav {
    display: none;
  }

  .mobile-nav {
    display: block;
  }

  .logo img {
    height: 50px;
  }

  header {
    padding-top: 2.5rem !important;
  }

  /* Header scrolled sur mobile */
  header.scrolled {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
  }

  /* Hero - Textes plus petits */
  #accueil h1 {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.2rem;
  }

  .hero-cta-btn {
    font-size: 1rem;
    padding: 0.7rem 1.3rem;
  }

  /* Cacher COMPLÈTEMENT le crédit d'impôt original sur mobile */
  #accueil .credit-card,
  .credit-card {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    position: absolute !important;
    left: -9999px !important;
  }

  /* Services - Ajustements */
  #services {
    height: auto;
    min-height: 100vh;
    overflow: visible;
  }

  #services .content {
    padding: 2rem; /* Réduit de 4rem à 2rem */
    z-index: 1;
  }

  .services-grid-new {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }

  .service-card-container:hover .service-card-new {
    transform: none;
  }
  .service-card-container:hover {
    transform: none;
  }

  /* Désactiver complètement les effets de flip sur mobile et tablette */
  @media (max-width: 1200px) {
    .service-card-container {
      perspective: none !important;
    }

    .service-card-new {
      transform-style: flat !important;
      transition: none !important;
    }

    .service-card-container.flipped .service-card-new {
      transform: none !important;
    }

    .service-card-back {
      transform: none !important;
      backface-visibility: visible !important;
      opacity: 0 !important;
      pointer-events: none !important;
    }

    .service-card-front {
      transform: none !important;
      backface-visibility: visible !important;
    }

    .service-card-container:hover .service-card-new {
      transform: none !important;
    }
  }

  /* Icônes services aspect ratio 1/1 */
  .service-icon-new {
    width: 50px;
    height: 50px;
    aspect-ratio: 1/1;
    margin: 1rem;
  }

  /* Titres services plus petits */
  .service-card-front h3 {
    font-size: 0.9rem;
  }

  /* Texte conclusion plus petit */
  .services-conclusion p {
    font-size: 0.9rem;
  }

  /* About - Section mobile complète */
  #a-propos {
    padding: 2rem 0;
    min-height: 100vh;
    position: relative;
    z-index: 1;
    padding-top: 8rem;
  }

  #a-propos .content {
    padding: 0 1rem;
    max-width: 100%;
  }

  .about-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
  }

  /* About - Nouveau contenu mobile */
  .about-new-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
  }

  .about-content-wrapper {
    flex-direction: column;
    text-align: center;
    gap: 2rem;
  }

  .about-text {
    order: 2;
    text-align: left;
  }

  .founder-title {
    font-size: 1.8rem;
    line-height: 1.3;
    margin-bottom: 1.5rem;
    text-align: center;
  }

  .founder-title strong {
    color: var(--primary-color);
  }

  .founder-title em {
    color: var(--primary-variant-color);
    font-style: italic;
  }

  .about-text p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.2rem;
    text-align: left;
  }

  .about-text strong {
    color: var(--primary-color);
    font-weight: 600;
  }

  .about-image-container {
    order: 1;
    width: 200px;
    margin: 0 auto;
    /* margin-bottom: 1rem; */
  }

  .about-image {
    width: 100%;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  }

  /* Boutons accordéon mobile */
  .about-accordion-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    /* margin-top: 2rem; */
    align-items: center;
    padding: 0;
  }

  .about-accordion-btn {
    font-size: 0.9rem;
    padding: 0.8rem 1.5rem;
    width: 100%;
    max-width: 280px;
    text-align: center;
    white-space: normal;
    line-height: 1.3;
  }

  .btn-with-leaf {
    position: relative;
    width: 100%;
    max-width: 280px;
    display: flex;
    justify-content: center;
  }

  .btn-with-leaf .about-accordion-btn {
    width: 100%;
  }

  .leaf-decoration {
    display: none;
  }

  /* Modale À propos mobile */
  .about-modal-content {
    margin: 1rem;
    max-width: calc(100vw - 2rem);
    max-height: 80vh;
    padding: 1.5rem;
  }

  #about-modal-content {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
  }

  .about-modal-content h4 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    text-align: center;
    max-width: 80%;
  }

  .about-modal-content p {
    font-size: 0.95rem;
    line-height: 1.5;
    text-align: left;
    margin-bottom: 1rem;
  }

  .about-modal-content ul {
    list-style: none;
    padding: 0;
  }

  .about-modal-content li {
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1rem;
    padding-left: 1.2rem;
    position: relative;
    text-align: left;
  }

  .about-modal-content li:before {
    content: '•';
    color: var(--primary-color);
    font-weight: bold;
    position: absolute;
    left: 0;
  }

  .about-modal-content strong {
    color: var(--primary-color);
  }

  .about-modal-close {
    top: 0.5rem;
    right: 0.8rem;
    font-size: 2rem;
    width: 35px;
    height: 35px;
  }

  /* Avis - Carousel mobile complet */
  #avis-verifies {
    padding: 2rem 0 0 0;
    overflow-x: hidden;
    width: 100%;
    min-height: auto;
  }

  #avis-verifies .content {
    padding: 0 1rem;
    width: 100%;
    max-width: 100%;
  }

  #avis-verifies h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
  }

  .avis-subtitle {
    font-size: 1.2rem;
    padding-bottom: 2rem;
  }

  .avis-carousel-container {
    width: 100%;
    max-width: 100vw;
    padding: 0 1rem;
    gap: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
  }

  .avis-carousel-wrapper {
    width: 320px; /* 1 carte pour mobile */
    max-width: 320px;
    overflow: hidden;
    position: relative;
  }

  .avis-carousel-track {
    display: flex;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    gap: 1rem;
    will-change: transform;
  }

  .avis-card {
    min-width: 320px;
    max-width: 320px;
    width: 320px;
    flex-shrink: 0;
    background: var(--white-surface);
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
  }

  .avis-photo {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
    width: 110px;
    height: 110px;
    margin: 0 auto 1rem;
    position: relative;
  }

  .avis-client-img {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: block;
    position: relative;
    z-index: 2;
  }

  /* Ajout d'un fallback pour les images qui ne se chargent pas */
  .avis-client-img::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-color);
    border-radius: 50%;
    opacity: 0.1;
    z-index: 1;
  }

  .avis-name {
    color: var(--text-color);
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
  }

  .avis-text {
    color: var(--text-color);
    font-size: 0.95rem;
    line-height: 1.4;
    margin-bottom: 0.4rem;
  }

  .avis-text:last-of-type {
    margin-bottom: 0;
  }

  .avis-carousel-btn {
    background: var(--white-surface);
    border: none;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    z-index: 10;
    flex-shrink: 0;
  }

  .avis-carousel-btn:hover:not(:disabled) {
    background: var(--primary-color);
    color: var(--white-surface);
    transform: scale(1.05);
  }

  .avis-carousel-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: none;
  }

  .avis-carousel-btn:disabled:hover {
    background: var(--white-surface);
    transform: none;
  }

  .avis-carousel-btn i {
    font-size: 1.2rem;
    color: var(--text-color);
  }

  .avis-carousel-btn:hover:not(:disabled) i {
    color: var(--white-surface);
  }

  .avis-carousel-btn:disabled i {
    color: var(--text-color);
  }

  /* Contact - Section hauteur auto sur mobile */
  #contact {
    min-height: auto;
    height: auto;
    padding-bottom: 0;
    padding-top: 4rem;
  }

  /* Contact - Formulaire centré */
  .contact-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .contact-form-wrapper {
    width: 100%;
    max-width: 400px;
  }

  .contact-form {
    flex-direction: column;
    align-items: center;
  }

  .name-fields {
    flex-direction: column;
  }

  .contact-submit-btn {
    width: 100%;
    max-width: 200px;
    margin: 1rem auto 0;
  }

  /* Footer mobile - Supprimer les transformations et améliorer l'apparence */
  .footer-container {
    width: 100%;
    left: auto;
    transform: none;
    margin: 0;
    padding: 2rem 1rem;
  }

  .footer-inner {
    padding: 0;
    max-width: 100%;
  }

  /* Footer - Colonnes empilées */
  .footer-top {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
    padding: 1rem 0;
  }

  /* Footer sections mobiles */
  .footer-left,
  .footer-menu,
  .footer-social {
    width: 100%;
  }

  .footer-left h4,
  .footer-menu h4,
  .footer-social h4 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
  }

  .footer-buttons {
    flex-direction: column;
    gap: 0.8rem;
    align-items: center;
  }

  .footer-btn {
    width: 100%;
    max-width: 250px;
    text-align: center;
  }

  .footer-logo {
    order: -1;
    margin-bottom: 1rem;
  }

  .footer-logo img {
    width: 120px;
  }

  .footer-menu-list {
    align-items: center;
  }

  .social-icons {
    justify-content: center;
    margin-bottom: 1rem;
  }

  .location {
    justify-content: center;
  }

  .footer-content {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
    padding-right: 0;
  }

  .footer-left-content {
    flex-direction: column;
    gap: 0.8rem;
    align-items: center;
  }

  .legal-links {
    flex-direction: column;
    gap: 0.8rem;
    align-items: center;
  }

  /* Cacher les boutons fixes */
  .fixed-buttons {
    display: none;
  }

  /* Éléments fixes plus petits */
  .dot {
    width: 10px;
    height: 10px;
  }

  .burger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .burger-menu.active span:nth-child(2) {
    opacity: 0;
  }

  .burger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  /* Amélioration de la croix de fermeture sur mobile */
  .burger-menu span {
    transition: all 0.3s ease;
  }

  .mobile-menu-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-color);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
  }

  .mobile-menu-close:hover {
    background: var(--accent-color);
    transform: rotate(90deg);
  }

  /* Style de la croix du menu mobile */
  .mobile-nav .burger-menu.active {
    position: relative;
    z-index: 1001;
  }

  /* Style amélioré pour la croix de fermeture des modales */
  .about-modal-close,
  .service-modal-close {
    position: absolute;
    top: 0.8rem;
    right: 0.8rem;
    width: 35px;
    height: 35px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.8rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    padding-bottom: 4px;
  }

  .about-modal-close:hover,
  .service-modal-close:hover {
    background: var(--accent-color);
    transform: rotate(90deg);
  }
}

/* Breakpoints conventionnels */
@media (max-width: 576px) {
  .snap-section {
    height: auto;
  }

  /* SM - Smartphones */
  .mobile-credit-banner {
    padding: 0.4rem 0.8rem;
  }

  .services-title,
  .about-title,
  .contact-title {
    font-size: 2.5rem;
  }

  .services-subtitle,
  .contact-subtitle {
    font-size: 1.2rem;
  }

  .service-card-container {
    height: auto;
    min-height: 140px;
    /* aspect-ratio: 1/1; */
  }

  .service-icon-new {
    margin: 1rem;
  }

  .service-icon-new .fas {
    font-size: 1.5rem;
  }

  .mobile-credit-percentage {
    font-size: 1.3rem;
  }

  .mobile-credit-text {
    font-size: 0.8rem;
  }

  /* Header avec espace pour la bannière */
  header {
    padding-top: 2.5rem !important;
  }

  /* Désactiver le scroll snap sur petits écrans */
  .snap-container {
    scroll-snap-type: none;
  }

  .snap-section {
    scroll-snap-align: none;
    min-height: auto;
  }

  /* Contact - Assurer scroll jusqu'au footer */
  #contact {
    min-height: auto !important;
    height: auto !important;
    padding-top: 8rem;
  }

  /* Assurer scroll libre */
  body {
    overflow: auto !important;
  }

  .snap-container {
    height: auto !important;
    overflow-y: auto !important;
  }

  /* Footer encore plus compact sur très petits écrans */
  .footer-container {
    padding: 1.5rem 0.8rem;
  }

  .footer-top {
    gap: 1.5rem;
  }

  .footer-btn {
    max-width: 200px;
    font-size: 0.9rem;
    padding: 0.7rem 1.2rem;
  }

  .footer-logo img {
    width: 100px;
  }

  .social-icons {
    gap: 0.8rem;
  }

  .social-icon {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
  }

  /* Carousel avis encore plus compact */
  .avis-carousel-wrapper {
    width: 280px;
    max-width: 280px;
  }

  .avis-card {
    min-width: 280px;
    max-width: 280px;
    width: 280px;
    padding: 1.2rem;
  }

  .avis-carousel-btn {
    width: 40px;
    height: 40px;
  }

  .avis-carousel-btn i {
    font-size: 1rem;
  }

  /* About section très compacte */
  #a-propos {
    min-height: 100vh;
    position: relative;
    z-index: 1;
  }

  /* .about-title {
    font-size: 2rem;
    margin-bottom: 1rem;
  } */

  .founder-title {
    font-size: 1.5rem;
    line-height: 1.2;
    margin-bottom: 1rem;
  }

  .about-text p {
    font-size: 0.9rem;
    margin-bottom: 1rem;
    text-align: center;
  }

  .about-image-container {
    width: 180px;
  }

  .about-image {
    height: 180px;
    border-width: 2px;
  }

  .about-accordion-btn {
    font-size: 0.8rem;
    padding: 0.7rem 1.2rem;
    max-width: 250px;
  }

  .about-modal-content {
    padding: 1rem;
    margin: 0.5rem;
  }

  .about-modal-content h4 {
    font-size: 1.3rem;
  }

  .about-modal-content p {
    font-size: 0.9rem;
  }

  .about-modal-content li {
    font-size: 0.85rem;
    margin-bottom: 0.8rem;
  }
}

/* Spécifique pour les très petits écrans (iPhone SE, etc.) */
@media (max-width: 400px) {
  .avis-carousel-container {
    padding: 0 0.5rem;
  }

  .avis-carousel-wrapper {
    width: 280px;
    max-width: 280px;
  }

  .avis-card {
    min-width: 280px;
    max-width: 280px;
    width: 280px;
    padding: 0.8rem;
  }

  .avis-carousel-btn {
    width: 28px;
    height: 28px;
  }

  .avis-carousel-btn i {
    font-size: 0.7rem;
  }

  .avis-name {
    font-size: 1rem;
  }

  .avis-text {
    font-size: 0.85rem;
  }

  .avis-client-img {
    width: 100px;
    height: 100px;
  }

  /* Ajustements pour les autres sections */
  .services-title,
  .about-title,
  .contact-title {
    font-size: 2.2rem;
  }

  .services-subtitle,
  .contact-subtitle {
    font-size: 1.1rem;
  }

  .about-accordion-btn {
    font-size: 0.75rem;
    padding: 0.6rem 1rem;
    max-width: 200px;
  }
}

@media (min-width: 577px) and (max-width: 768px) {
  /* MD - Tablettes portrait */
  .services-grid-new {
    grid-template-columns: 1fr 1fr;
  }

  /* About section tablette */
  #a-propos {
    min-height: 100vh;
    position: relative;
    z-index: 1;
  }

  .about-title {
    font-size: 3rem;
  }

  .founder-title {
    font-size: 2rem;
  }

  .about-image-container {
    width: 220px;
  }

  .about-image {
    height: 220px;
  }

  .about-accordion-btn {
    max-width: 320px;
    font-size: 1rem;
  }

  /* Carousel pour écrans moyens (577px à 768px) */
  .avis-carousel-wrapper {
    width: 280px;
    max-width: 280px;
  }

  .avis-card {
    min-width: 280px;
    max-width: 280px;
    width: 280px;
    padding: 1.2rem;
  }
}

@media (min-width: 769px) and (max-width: 992px) {
  /* LG - Tablettes paysage */
  .services-grid-new {
    grid-template-columns: repeat(3, 1fr);
  }

  /* About section grande tablette */
  #a-propos {
    min-height: 100vh;
    position: relative;
    z-index: 1;
  }

  .about-content-wrapper {
    flex-direction: row;
    align-items: flex-start;
    gap: 3rem;
    text-align: left;
  }

  .about-text {
    order: 2;
    flex: 1;
  }

  .about-image-container {
    order: 1;
    width: 280px;
    margin: 0;
    flex-shrink: 0;
  }

  .about-image {
    height: 280px;
  }

  .founder-title {
    text-align: left;
  }
}

/* ===========================================
   NOTIFICATIONS
   =========================================== */

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideOut {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(100%);
    opacity: 0;
  }
}

.notification {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 15px 20px;
  border-radius: 8px;
  color: white;
  font-weight: 600;
  z-index: 1000;
  max-width: 350px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  font-size: 14px;
  line-height: 1.4;
}

.notification-success {
  background-color: #28a745;
  border: 1px solid #1e7e34;
}

.notification-error {
  background-color: #dc3545;
  border: 1px solid #c82333;
}

/* ===========================================
   CURSOR TRAIL - FEUILLES VOLANTES
   =========================================== */

/* .cursor-trail {
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  will-change: transform;
  transform: translateZ(0);
  transition: none;
}

.cursor-trail img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.15));
}

.cursor-trail-1 {
  width: 40px;
  height: 40px;
  opacity: 0.9;
}

.cursor-trail-2 {
  width: 32px;
  height: 32px;
  opacity: 0.7;
}

.cursor-trail-3 {
  width: 24px;
  height: 24px;
  opacity: 0.5;
}

.cursor-trail-4 {
  width: 18px;
  height: 18px;
  opacity: 0.3;
} */

/* Animation des feuilles qui voltigent */
/* @keyframes leafFloat {
  0% { transform: translateY(0px) rotate(0deg); }
  25% { transform: translateY(-2px) rotate(2deg); }
  50% { transform: translateY(-1px) rotate(-1deg); }
  75% { transform: translateY(-3px) rotate(1deg); }
  100% { transform: translateY(0px) rotate(0deg); }
}

.cursor-trail {
  animation: leafFloat 3s ease-in-out infinite;
}

.cursor-trail-1 { animation-delay: 0s; animation-duration: 2.8s; }
.cursor-trail-2 { animation-delay: 0.3s; animation-duration: 3.2s; }
.cursor-trail-3 { animation-delay: 0.6s; animation-duration: 2.5s; }
.cursor-trail-4 { animation-delay: 0.9s; animation-duration: 3.5s; } */

/* ===========================================
   MEDIA QUERIES - RESPONSIVE DESIGN
   =========================================== */

/* Mobile adjustments for notifications */
@media (max-width: 768px) {
  .notification {
    top: 10px;
    right: 10px;
    left: 10px;
    max-width: none;
    font-size: 13px;
    padding: 12px 16px;
  }
}

/* ===========================================
   PAGE DES MENTIONS LÉGALES
   =========================================== */

.legal-html {
  overflow-x: hidden;
  overflow-y: auto !important;
  height: auto !important;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

.legal-body {
  overflow-x: hidden;
  overflow-y: auto !important;
  min-height: 100vh;
  position: relative;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  height: auto !important;
}

.legal-html,
.legal-body,
.legal-body * {
  scroll-snap-type: none !important;
  scroll-snap-align: none !important;
}

/* Force scroll on all screen sizes */
.legal-html,
.legal-body {
  overflow-y: auto !important;
  height: auto !important;
  max-height: none !important;
}

/* Desktop scroll fix */
@media (min-width: 769px) {
  .legal-html {
    overflow-y: auto !important;
    height: auto !important;
    max-height: none !important;
  }

  .legal-body {
    overflow-y: auto !important;
    height: auto !important;
    max-height: none !important;
  }

  .legal-page {
    overflow-y: visible !important;
    height: auto !important;
    max-height: none !important;
  }

  .legal-container {
    overflow-y: visible !important;
    height: auto !important;
    max-height: none !important;
  }
}

.legal-header-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #e9ecef;
  transition: all 0.3s ease;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
}

.legal-header-nav .logo a {
  display: block;
}

.legal-header-nav .desktop-nav {
  display: flex;
}

.legal-header-nav .mobile-nav {
  display: none;
}

/* Navigation mobile pour la page légale */
@media (max-width: 768px) {
  .legal-header-nav .desktop-nav {
    display: none;
  }

  .legal-header-nav .mobile-nav {
    display: block;
  }

  .legal-header-nav .logo img {
    height: 45px;
  }
}

.legal-page {
  min-height: calc(100vh - 80px);
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  padding: 2rem 0 4rem 0;
  margin-top: 80px;
  overflow-y: visible !important;
  height: auto !important;
  scroll-snap-type: none !important;
  scroll-snap-align: none !important;
}

.legal-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  width: 100%;
  height: auto !important;
  overflow: visible !important;
}

.legal-header {
  text-align: center;
  margin-bottom: 3rem;
  padding-top: 2rem;
}

.legal-header h1 {
  font-size: clamp(2rem, 5vw, 2.5rem);
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 1rem;
  font-family: 'Nunito', sans-serif;
  line-height: 1.2;
}

.legal-header p {
  font-size: clamp(1rem, 2.5vw, 1.1rem);
  color: #6c757d;
  margin-bottom: 0;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.legal-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

/* Responsive grid breakpoints */
@media (max-width: 1024px) {
  .legal-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.legal-section {
  background: white;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  border: 1px solid #e9ecef;
  height: fit-content;
}

.legal-section h2 {
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #8eb776;
  font-family: 'Nunito', sans-serif;
  line-height: 1.3;
}

.legal-subsection {
  margin-bottom: 2rem;
}

.legal-subsection:last-child {
  margin-bottom: 0;
}

.legal-subsection h3 {
  font-size: clamp(1.1rem, 2.5vw, 1.3rem);
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 1rem;
  font-family: 'Nunito', sans-serif;
  line-height: 1.4;
}

.legal-subsection p {
  font-size: clamp(0.9rem, 2vw, 1rem);
  line-height: 1.6;
  color: #495057;
  margin-bottom: 1rem;
}

.legal-subsection ul {
  list-style: none;
  padding: 0;
  margin-bottom: 1rem;
}

.legal-subsection li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
  font-size: clamp(0.9rem, 2vw, 1rem);
  line-height: 1.6;
  color: #495057;
}

.legal-subsection li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: #8eb776;
  font-weight: bold;
  font-size: 1.2em;
}

.legal-subsection a {
  color: #8eb776;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
  word-break: break-word;
}

.legal-subsection a:hover {
  color: #6d9954;
  text-decoration: underline;
}

.legal-subsection a:focus {
  outline: 2px solid #8eb776;
  outline-offset: 2px;
  border-radius: 2px;
}

.legal-footer {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid #e9ecef;
}

.back-home-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  background: #8eb776;
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.back-home-btn:hover {
  background: #6d9954;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(142, 183, 118, 0.3);
  color: white;
}

.back-home-btn:active {
  transform: translateY(0);
}

.back-home-btn::before {
  content: '← ';
  margin-right: 0.5rem;
  transition: transform 0.3s ease;
}

.back-home-btn:hover::before {
  transform: translateX(-3px);
}

/* Tablet responsiveness */
@media (max-width: 1024px) and (min-width: 769px) {
  .legal-container {
    padding: 0 1.5rem;
  }

  .legal-header {
    margin-bottom: 2.5rem;
  }

  .legal-content {
    gap: 2.5rem;
  }
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .legal-header-nav {
    background: rgba(255, 255, 255, 0.98);
    height: 90px;
    padding: 2rem 1rem;
  }

  .legal-page {
    padding: 1.5rem 0 3rem 0;
    margin-top: 70px;
    min-height: calc(100vh - 70px);
  }

  .legal-container {
    padding: 0 1rem;
  }

  .legal-header {
    margin-bottom: 2rem;
    padding-top: 1rem;
  }

  .legal-content {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .legal-section {
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  }

  .legal-subsection {
    margin-bottom: 1.5rem;
  }

  .legal-subsection li {
    padding-left: 1.2rem;
    margin-bottom: 0.4rem;
  }

  .legal-footer {
    padding-top: 1.5rem;
    margin-top: 2rem;
  }

  .back-home-btn {
    padding: 0.8rem 1.5rem;
    font-size: 0.9rem;
    width: 100%;
    max-width: 280px;
  }
}

/* Very small screens */
@media (max-width: 480px) {
  .legal-header-nav {
    height: 95px;
    padding: 0 0.8rem;
  }

  .legal-page {
    padding: 1rem 0 2rem 0;
    margin-top: 85px;
    min-height: calc(100vh - 65px);
  }

  .legal-container {
    padding: 0 0.8rem;
  }

  .legal-header {
    margin-bottom: 1.5rem;
    padding-top: 0.5rem;
  }

  .legal-content {
    gap: 1rem;
  }

  .legal-section {
    border-radius: 6px;
  }

  .legal-subsection {
    margin-bottom: 1.2rem;
  }

  .legal-subsection li {
    padding-left: 1rem;
  }

  .legal-subsection li::before {
    font-size: 1em;
  }
}

/* Loader styles */
.loader-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(238, 236, 203, 0.9);
  z-index: 3;
  transition: opacity 0.3s ease-out;
}

.loader-container.hidden {
  opacity: 0;
  pointer-events: none;
}

.loader {
  width: 48px;
  height: 48px;
  border: 5px solid var(--primary-color);
  border-bottom-color: transparent;
  border-radius: 50%;
  animation: loader 1s linear infinite;
}

@keyframes loader {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Loader pour les images individuelles */
.carousel-track img {
  opacity: 0;
  transition: opacity 0.3s ease-out;
}

.carousel-track img.loaded {
  opacity: 1;
}

/* Loader pour les avis */
.avis-client-img {
  opacity: 0;
  transition: opacity 0.3s ease-out;
}

.avis-client-img.loaded {
  opacity: 1;
}

.avis-loader-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(238, 236, 203, 0.3);
  backdrop-filter: blur(4px);
  z-index: 10;
  transition: all 0.5s ease-out;
  border-radius: 20px;
}

.avis-loader-container.hidden {
  opacity: 0;
  pointer-events: none;
}

.avis-loader {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  backdrop-filter: blur(8px);
}

.avis-loader-content {
  display: flex;
  gap: 0.5rem;
}

.avis-loader-dot {
  width: 8px;
  height: 8px;
  background: var(--primary-color);
  border-radius: 50%;
  animation: loaderDot 1.4s infinite ease-in-out;
}

.avis-loader-dot:nth-child(1) {
  animation-delay: -0.32s;
}

.avis-loader-dot:nth-child(2) {
  animation-delay: -0.16s;
}

@keyframes loaderDot {
  0%,
  80%,
  100% {
    transform: scale(0);
  }
  40% {
    transform: scale(1);
  }
}
