/* ==== FONDATIONS === */
body {
  font-family: 'Poppins', sans-serif;
}

:root {
  --pink: #FF80B9;
  --teal: #59BCA4;
  --teal-hover: #49b895;
  --footer-bg: #34525D;
  --section1-bg: #FFF6FA;
  --section2-bg: #FCFEFE;
  --section3-bg: #FFFFFF;
  --card-text-color: #555;
}

/* ==== SECTIONS === */
.section1 { background-color: var(--section1-bg); }
.section2 { background-color: var(--section2-bg); }
.section3 { background-color: var(--section3-bg); }

/* ==== TYPOGRAPHIE === */
h1 {
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.4);
  animation: fadeInUp 1.2s ease-in-out;
}
h2, .section2 h2, .display-5 {
  font-weight: 700;
  font-size: 2rem;
  letter-spacing: -0.5px;
}

/* ==== BOUTONS === */
.btn-custom {
  background-color: var(--teal);
  color: white;
}
.download-btn {
  background-color: #5fd3ad;
  color: white;
  border: none;
  padding: 12px 30px;
  font-size: 18px;
  border-radius: 25px;
  margin-top: 20px;
  transition: background-color 0.3s ease;
}
.download-btn:hover {
  background-color: var(--teal-hover);
}

/* ==== MISSIONS === */
.mission1 { background-color: var(--pink); color: white; }
.mission2 { background-color: var(--footer-bg); color: white; }
.mission-card {
  min-height: 70px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.3s ease;
}

/* ==== CARTES === */
.card, .mission-card {
  border-radius: 4px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover, .testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}
.card-title {
  font-weight: 600;
  font-size: 1.1rem;
}
.card-text {
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--card-text-color);
  max-height: 50px;
  overflow: hidden;
  transition: max-height 0.3s ease-in-out, opacity 0.3s ease;
}
.card-text.show {
  max-height: 200px;
  opacity: 1;
}
.border-card {
  border-color: var(--pink);
}
.read-more {
  font-size: 0.9rem;
  color: #333;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s ease;
}
.read-more:hover {
  color: #003366;
  text-decoration: underline;
}

/* ==== CAROUSEL === */
.carousel-wrapper {
  overflow: hidden;
  white-space: nowrap;
}
.carousel-client {
  display: inline-block;
  animation: scroll-horizontal 20s linear infinite;
}
.carousel-client .slide {
  display: inline-block;
  margin: 0 20px;
}

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

/* ==== FOOTER === */
.footer {
  padding: 20px;
  margin-top: 5px;
  background-color: var(--footer-bg);
  color: white;
}
.footer h6 {
  color: var(--pink);
}
.footer p {
  color: white;
}

/* ==== TESTIMONIAL === */
.testimonial-card {
  transition: transform 0.3s ease;
}
.testimonial-card .card-up {
  height: 120px;
  overflow: hidden;
  border-top-left-radius: 0.25rem;
  border-top-right-radius: 0.25rem;
}
.testimonial-card .avatar {
  width: 110px;
  margin-top: -60px;
  overflow: hidden;
  border: 3px solid #fff;
  border-radius: 50%;
}

/* ==== ICONES === */
.icon {
  font-size: 2.5rem;
  background: #e6f7f3;
  padding: 15px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ==== ANIMATIONS === */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==== DPE === */
.dpe-class {
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: bold;
  color: white;
}
.dpe-a { background-color: #28a745; }
.dpe-b { background-color: #5cb85c; }
.dpe-c { background-color: #5cc28a; }
.dpe-d { background-color: #ffc107; }
.dpe-e { background-color: #fd7e14;}
.dpe-f { background-color: #dc3545; }
.dpe-g { background-color: #b30000; }

.dpe-scale {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.25rem;
}
.dpe-scale-item {
  padding: 0.25rem;
  text-align: center;
  border-radius: 0.25rem;
  font-size: 0.875rem;
}

/* ==== IMAGES === */
.app-mockup img {
  max-width: 100%;
  height: auto;
}

/* ==== RESPONSIVE === */
@media (min-width: 768px) {
  .content h2 {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  .dpe-scale {
    grid-template-columns: repeat(3, 1fr);
  }
  .card-text {
    max-height: none;
  }
}
.carousel-client .slide img {
  max-width: 200px; /* Réduit la largeur */
  height: auto;     /* Garde les proportions */
  object-fit: contain;
}
.border-pink {
  border-color: #FF80B9 !important;
}

.section3 .card {
  border-radius: 1rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.section3 .card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}
#cookie-banner {
    position: fixed;
    bottom: 0;
    width: 100%;
    background-color: #007bff; /* Fond bleu */
    color: white;
    padding: 15px;
    text-align: center;
}

#cookie-banner button {
    background-color: #28a745; /* Bouton vert pour accepter */
    border: none;
    color: white;
    padding: 10px 20px;
    cursor: pointer;
}

#cookie-banner button#reject-cookies {
    background-color: #dc3545; /* Bouton rouge pour refuser */
}
