/*=============== GOOGLE FONTS ===============*/
@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700&display=swap");

/*=============== VARIABLES CSS ===============*/
:root {
  --header-height: 3.5rem;
  /*========== Colors ==========*/
  /*Color mode HSL(hue, saturation, lightness)*/
  --first-color: HSL(250, 73%, 54%);
  --first-color-alt: HSL(250, 73%, 54%);
  --first-color-light: HSL(250, 73%, 54%);
  --title-color: hsl(228, 8%, 98%);
  --text-color: hsl(228, 8%, 70%);
  --white-color: hsl(228, 8%, 98%);
  --black-color: hsl(228, 6%, 4%);
  --body-color: hsl(271, 18%, 10%);
  --container-color: hsl(228, 6%, 12%);
  --shadow-img: 0 0 48px hsla(250, 74%, 54%, .4);
  --gradient-card: linear-gradient(180deg,
                                hsla(250, 8%, 8%),
                                hsla(250, 40%, 30%));

  /*========== Font and typography ==========*/
  /*.5rem = 8px | 1rem = 16px ...*/
  --body-font: "Montserrat", sans-serif;
  --biggest-font-size: 2rem;
  --h1-font-size: 1.5rem;
  --h2-font-size: 1.25rem;
  --h3-font-size: 1rem;
  --normal-font-size: .938rem;
  --small-font-size: .813rem;

  /*========== Font weight ==========*/
  --font-regular: 400;
  --font-semi-bold: 600;
  --font-bold: 700;

  /*========== z index ==========*/
  --z-tooltip: 10;
  --z-fixed: 100;
}

/*========== Responsive typography ==========*/
@media screen and (min-width: 1150px) {
  :root {
    --biggest-font-size: 4.25rem;
    --h1-font-size: 2.25rem;
    --h2-font-size: 1.5rem;
    --h3-font-size: 1.25rem;
    --normal-font-size: 1rem;
    --small-font-size: .875rem;
  }
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
  background-color: var(--body-color);
  color: var(--text-color);
}

h1, h2, h3, h4 {
  color: var(--title-color);
  font-weight: var(--font-semi-bold);
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

/*=============== REUSABLE CSS CLASSES ===============*/
.container {
  max-width: 1120px;
  margin-inline: 1.5rem;
}

.grid {
  display: grid;
  gap: 1.5rem;
}

.section {
  padding-block: 4rem 1rem;
}

.section__title {
  font-size: var(--h1-font-size);
  font-weight: var(--font-bold);
  text-align: center;
  margin-bottom: 2rem;
}

.main {
  overflow: hidden;
}

@media screen and (max-width: 768px) {
  .section {
    padding-block: 3rem 1rem;
  }
  
  .section__title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
  }
}

/*=============== HEADER & NAV ===============*/
.header {
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  background-color: transparent;
  z-index: var(--z-fixed);
}

.nav {
  position: relative;
  height: var(--header-height);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav__logo, 
.nav__close, 
.nav__toggle, 
.nav__actions {
  display: flex;
  color: var(--title-color);
  cursor: pointer;
}

.nav__logo {
  font-weight: var(--font-semi-bold);
  column-gap: .25rem;
  align-items: center;
}

.nav__logo i {
  color: var(--first-color);
  font-size: 1.25rem;
  font-weight: initial;
}

.nav___logo_img {
   width: 14rem;
}

@media screen and (min-width: 768px) {
  .nav___logo_img {
     width: 16rem;
  }
}

.nav__actions {
  font-size: 1.25rem;
  column-gap: .5rem;
  align-items: center;
}

/* Navigation for mobile devices */
@media screen and (max-width: 1150px) {
  .nav__menu {
    position: fixed;
    top: 0;
    right: -100%;
    background-color: hsla(228, 24%, 6%, .2);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    width: 80%;
    height: 100%;
    padding: 6rem 3rem 0;
    transition: right .4s;
  }
}

.nav__list {
  display: flex;
  flex-direction: column;
  row-gap: 3rem;
}

.nav__link {
  color: var(--title-color);
  font-weight: var(--font-semi-bold);
  transition: color .4s;
}

.nav__link:hover {
  color: var(--first-color);
}

.nav__close {
  position: absolute;
  top: 1.15rem;
  right: 1.5rem;
  font-size: 1.25rem;
}

/* Show menu */
.show-menu {
  right: 0;
}

/* Add blur header */
.blur-header::after {
  content: "";
  position: absolute;
  width: 1000%;
  height: 100%;
  background-color: hsla(228, 24%, 6%, .2);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  top: 0;
  left: 0;
  z-index: -1;
}

/* Active link */
.active-link {
  color: var(--first-color);
}

/*=============== HOME ===============*/
.home__container {
  padding-top: 2.5rem;
  row-gap: 2rem;
}

.home__img {
  width: 370px;
  filter: drop-shadow(var(--shadow-img));
  justify-self: center;
}

.home__data {
  text-align: center;
}

.home__title {
  font-size: var(--biggest-font-size);
  font-weight: var(--font-bold);
  margin-bottom: 1rem;
}

.home__title span {
  color: var(--first-color);
}

.home__description {
  margin-bottom: 3rem;
}

.home__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

/*=============== BUTTON ===============*/
.button {
  display: inline-flex;
  align-items: center;
  column-gap: .5rem;
  background-color: var(--first-color);
  padding: .75rem 1.25rem;
  border-radius: .5rem;
  color: var(--white-color);
  font-weight: var(--font-semi-bold);
  transition: background .3s, transform .3s;
}

.button span {
  font-size: 1.25rem;
  background-color: var(--white-color);
  color: var(--first-color);
  padding: .25rem;
  border-radius: .25rem;
  transition: background .3s;
}

.button:hover {
  background-color: var(--first-color-alt);
  transform: translateY(-3px);
}

.button:hover span {
  background-color: var(--first-color-light);
}

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

.button--secondary:hover {
  background-color: var(--first-color);
  color: var(--white-color);
}

.button--secondary:hover span {
  background-color: var(--white-color);
}

.button--text {
  display: inline-flex;
  align-items: center;
  column-gap: .25rem;
  background-color: transparent;
  padding: .5rem;
  color: var(--first-color);
  font-weight: var(--font-semi-bold);
  border-radius: 0;
  position: relative;
  margin-top: 1rem;
  transition: all .3s ease;
}

.button--text i {
  font-size: 1.25rem;
  transition: transform .3s;
}

.button--text:hover {
  background-color: transparent;
  transform: translateY(-2px);
  color: var(--first-color-alt);
}

.button--text:hover i {
  transform: translateX(4px);
}

.button--text::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--first-color);
  transition: width .3s;
}

.button--text:hover::after {
  width: 100%;
}

@media screen and (max-width: 576px) {
  .home__buttons {
    flex-direction: column;
    width: 100%;
    gap: 1rem;
  }
  
  .button {
    width: 100%;
    justify-content: center;
  }
}

/*=============== NEWS ===============*/
.new__data {
  text-align: center;
}

.new__container {
  row-gap: 7.5rem;
}

.new__content {
  row-gap: 6rem;
}

.new__card {
  position: relative;
  width: 200px;
  background: var(--gradient-card);
  padding: 9rem .75rem 1.5rem .75rem;
  border: 2px solid var(--first-color-light);
  border-radius: 1.5rem;
}

.new__card.small{
  position: relative;
  width: 200px;
  background: var(--gradient-card);
  padding: 7rem .75rem 1.5rem .75rem;
  border: 2px solid var(--first-color-light);
  border-radius: 1.5rem;
}

.new__description_card{
  padding-top: 13px;
  text-align: center;

}

.new__img {
  position: absolute;
  top: -4.5rem;
  left: 0;
  border-radius: 30px;
  right: 0;
  width: 180px;
  margin: 0 auto;
  transition: transform .4s;
}

.new__title {
  font-size: var(--h2-font-size);
  text-align: center;
}

.new__card:nth-child(odd) {
  rotate: -5deg;
}

.new__card:nth-child(even) {
  justify-self: flex-end;
  rotate: 5deg;
}

.new__card:hover .new__img {
  transform: translateY(-.5rem);
}

/*=============== SLIDER ===============*/

 /* Styles pour le slider de logos */
 .logo-slider-container {
  overflow: hidden;
  width: 80%;
  padding: 20px 0;
  border-radius: 10px; /* Coins arrondis pour un style plus moderne */
  margin: 5rem auto 0px;
}

.logo-slider {
  display: flex;
  gap: 30px;
  animation: slide 30s linear infinite;
}

.logo-slider img {
  width: 120px;
  height: auto;
  display: block;
 
}

@keyframes slide {
  from {
      transform: translateX(0);
  }
  to {
      transform: translateX(-100%);
  }
}

/* Réplication des logos pour une animation fluide */
.logo-slider-wrapper {
  display: flex;
  width: max-content;
  user-select: none; 
}

.logo-slider-wrapper .logo-slider {
  flex: none;
  display: flex;
  gap: 30px;
}

.logo-slider-wrapper {
 overflow-x: auto;
 
}
/*=============== END SLIDER ===============*/
/*=============== SHOP ===============*/
.shop__container {
  padding-top: 6.5rem;
  grid-template-columns: repeat(2, 1fr);
  gap: 6rem 1.5rem;
}

.shop__card {
  position: relative;
  background: var(--gradient-card);
  padding: 5.75rem .75rem 1.25rem .75rem;
  border: 2px solid var(--first-color-light);
  border-radius: 1rem;
}

.shop__img {
  position: absolute;
  top: -4.5rem;
  left: 0;
  right: 0;
  border-radius: 30px;
  width: 130px;
  margin: 0 auto;
  transition: transform .4s;
}

.shop__title {
  font-size: var(--small-font-size);
  font-weight: var(--font-semi-bold);
  margin-bottom: .5rem;
}

.shop__price {
  color: var(--title-color);
  font-weight: var(--font-semi-bold);
}

.shop__button {
  position: absolute;
  right: .75rem;
  bottom: .75rem;
  outline: none;
  border: none;
  background-color: var(--white-color);
  padding: 6px;
  border-radius: 50%;
  font-size: 1.25rem;
  display: grid;
  cursor: pointer;
}

.shop__card:hover .shop__img {
  transform: translateY(-.5rem);
}

/*=============== CARE ===============*/
.care__container {
  padding-top: 2rem;
  row-gap: 2rem;
}

.care__img {
  width: 270px;
  filter: drop-shadow(var(--shadow-img));
  justify-self: center;
}

.care__list {
  display: grid;
  row-gap: 1rem;
}

.care__item {
  display: flex;
  column-gap: .5rem;
  align-items: flex-start;
}

.care__item i {
  font-size: 1.5rem;
  color: var(--first-color);
}

/*=============== CONTACT ===============*/
.contact__container {
  row-gap: 3.5rem;
}

.contact__img {
  width: 380px;
  justify-self: center;
  margin-top: 2rem;
}

.contact__content {
  display: grid;
  row-gap: 3rem;
}

.contact__title {
  font-size: var(--h3-font-size);
  margin-bottom: 1rem;
}

.contact__social {
  display: flex;
  column-gap: 1rem;
}

.contact__social a {
  font-size: 1.25rem;
  color: var(--first-color);
}

.contact__info {
  font-style: normal;
}

/* Nouveaux styles pour le formulaire de contact */
.contact__form-container {
  background-color: hsla(228, 24%, 6%, .3);
  border-radius: 1rem;
  padding: 2rem;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid hsla(228, 24%, 20%, .4);
}

.contact__subtitle {
  font-size: var(--h2-font-size);
  color: var(--white-color);
  margin-bottom: 1rem;
}

.contact__text {
  color: var(--text-color);
  margin-bottom: 2rem;
}

.contact__form {
  display: grid;
  row-gap: 1.5rem;
}

.contact__form-group {
  position: relative;
}

.contact__label {
  position: absolute;
  top: -0.75rem;
  left: 1rem;
  padding: 0 0.25rem;
  background-color: var(--body-color);
  color: var(--white-color);
  font-size: var(--small-font-size);
  font-weight: var(--font-semi-bold);
  z-index: 1;
}

.contact__input {
  width: 100%;
  background-color: hsla(228, 24%, 10%, .4);
  color: var(--white-color);
  padding: 1.25rem 1rem;
  border-radius: 0.5rem;
  border: 1px solid hsla(228, 24%, 30%, .3);
  transition: border .3s;
}

.contact__input::placeholder {
  color: var(--text-color);
}

.contact__input:focus {
  border: 1px solid var(--first-color);
}

.contact__textarea {
  height: 120px;
  resize: none;
}

.contact__form-checkbox {
  display: flex;
  align-items: center;
  column-gap: 0.5rem;
}

.contact__checkbox-label {
  font-size: var(--small-font-size);
  color: var(--text-color);
  cursor: pointer;
}

.contact__button {
  width: 100%;
  justify-content: center;
  margin-top: 1rem;
}

/* Styles pour les groupes de cases à cocher */
.contact__form-group--checkboxes {
  /* Conserve une structure similaire aux autres groupes mais sans input pleine largeur */
}

.contact__label--static {
  display: block; /* Pour qu'il prenne sa propre ligne ou pour le positionner */
  color: var(--white-color);
  font-size: var(--small-font-size);
  font-weight: var(--font-semi-bold);
  margin-bottom: 0.75rem; /* Espace avant la liste des checkboxes */
  padding-left: 0.25rem; /* Petit décalage pour alignement si besoin */
}

.contact__checkbox-list {
  display: grid;
  row-gap: 0.75rem; /* Espace vertical entre les items de checkbox */
  margin-top: .5rem; /* Espace après le label static */
}

.contact__checkbox-item {
  display: flex;
  align-items: center;
  position: relative; /* Pour le positionnement de la checkbox custom */
}

.contact__checkbox-input {
  opacity: 0; /* Masquer la checkbox par défaut */
  position: absolute;
  width: 1px;
  height: 1px;
}

.contact__checkbox-label-item {
  color: var(--text-color);
  font-size: var(--normal-font-size);
  cursor: pointer;
  padding-left: 2rem; /* Espace pour la checkbox custom */
  position: relative;
  line-height: 1.4;
}

/* Style de la checkbox custom (avant) */
.contact__checkbox-label-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  border: 2px solid var(--first-color-light);
  border-radius: .25rem;
  background-color: hsla(228, 24%, 10%, .4);
  transition: background-color .3s, border-color .3s;
}

/* Style de la checkbox custom quand cochée (avant) */
.contact__checkbox-input:checked + .contact__checkbox-label-item::before {
  background-color: var(--first-color);
  border-color: var(--first-color);
}

/* Style du "check" (après) */
.contact__checkbox-label-item::after {
  content: '';
  position: absolute;
  left: 7px; /* Ajuster pour centrer le check */
  top: 50%;
  transform: translateY(-50%) rotate(45deg) scale(0);
  width: 6px;
  height: 12px;
  border: solid var(--white-color);
  border-width: 0 2px 2px 0;
  transition: transform .2s ease-in-out;
}

/* Afficher le "check" quand cochée */
.contact__checkbox-input:checked + .contact__checkbox-label-item::after {
  transform: translateY(-50%) rotate(45deg) scale(1);
}

/* Focus style pour l'accessibilité */
.contact__checkbox-input:focus + .contact__checkbox-label-item::before {
  outline: 2px solid var(--first-color);
  outline-offset: 2px;
}

/* Style pour le message de statut du formulaire */
.contact__status {
  width: 100%;
  padding: 1rem;
  border-radius: 0.5rem;
  font-weight: var(--font-semi-bold);
  text-align: center;
  transition: all 0.3s ease;
  animation: fadeIn 0.5s ease-in;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1.5;
}

.contact__status i {
  font-size: 1.5rem;
  margin-right: 0.75rem;
  flex-shrink: 0;
}

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

@media screen and (max-width: 576px) {
  .contact__form-container {
    padding: 1.5rem;
  }
}

@media screen and (min-width: 768px) {
  .contact__container {
    grid-template-columns: repeat(2, 1fr);
    align-items: start;
  }

  .contact__form-container {
    height: 100%;
  }
}

@media screen and (min-width: 1150px) {
  .contact__container {
    column-gap: 6rem;
  }
  
  .contact__content {
    row-gap: 4rem;
  }
  
  .contact__form {
    row-gap: 2rem;
  }
}

/*=============== FOOTER ===============*/
.footer {
  background-color: var(--body-color); /* Changement pour la couleur de fond principale */
  padding-top: 4rem;
  padding-bottom: 2rem;
}

.footer__container {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}

.footer__content--brand .footer__logo_img {
  width: 150px; /* Ajustez la taille du logo si besoin */
  margin-bottom: 1rem;
}

.footer__description {
  font-size: var(--small-font-size);
  margin-bottom: 1.5rem;
}

.footer__title {
  font-size: var(--h3-font-size);
  color: var(--title-color);
  margin-bottom: 1rem;
}

.footer__links-list {
  display: grid;
  row-gap: .5rem;
}

.footer__link {
  color: var(--text-color);
  font-size: var(--small-font-size);
  transition: color .3s;
}

.footer__link:hover {
  color: var(--first-color);
}

.footer__social {
  display: flex;
  column-gap: 1rem; /* Espacement entre les icônes sociales */
  flex-wrap: wrap; /* Permet le retour à la ligne si pas assez de place */
}

.footer__social-link {
  font-size: 1.5rem; /* Taille des icônes sociales */
  color: var(--text-color);
  transition: color .3s;
}

.footer__social-link:hover {
  color: var(--first-color);
}

.footer__bottom {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid hsla(228, 8%, 20%); /* Ligne de séparation */
  text-align: center;
}

.footer__copy {
  font-size: var(--small-font-size);
  color: var(--text-color);
}

/* Ajustements responsifs spécifiques au footer si besoin */
@media screen and (max-width: 767px) {
  .footer__container {
    grid-template-columns: 1fr; /* Une seule colonne sur mobile */
    text-align: center; /* Centrer le texte dans les colonnes */
  }

  .footer__content--brand .footer__logo_img {
    margin-left: auto;
    margin-right: auto;
  }

  .footer__social {
    justify-content: center; /* Centrer les icônes sociales sur mobile */
  }
}

@media screen and (min-width: 768px) {
  .footer__container {
    /* Conserve la grille auto-fit, mais on peut forcer 4 colonnes si on préfère */
    /* grid-template-columns: repeat(4, 1fr); */
  }
}

/*=============== SCROLL BAR ===============*/
::-webkit-scrollbar {
  width: .6rem;
  background-color: hsl(228, 4%, 15%);
}

::-webkit-scrollbar-thumb {
  background-color: hsl(228, 4%, 25%);
}

::-webkit-scrollbar-thumb:hover {
  background-color: hsl(228, 4%, 35%);
}

/*=============== SCROLL UP ===============*/
.scrollup {
  position: fixed;
  right: 1rem;
  bottom: -50%;
  background-color: var(--container-color);
  color: var(--title-color);
  box-shadow: 0 12px 24px hsla(228, 48%, 4%, .5);
  display: inline-flex;
  padding: 6px;
  font-size: 1.25rem;
  z-index: var(--z-tooltip);
  transition: bottom .4s, transform .4s;
}

.scrollup:hover {
  transform: translateY(-.5rem);
}

/* Show Scroll Up */
.show-scroll {
  bottom: 3rem;
}

/*=============== BREAKPOINTS ===============*/
/* For small devices */
@media screen and (max-width: 576px) {
  .container {
    margin-inline: 1rem;
  }

  .home__title {
    font-size: 2rem;
  }
  .home__buttons {
    flex-direction: column;
    width: 100%;
  }

  .shop__container {
    grid-template-columns: 150px;
    justify-content: center;
  }

  .logo-slider-container {
    width: 90%;
    margin: 5rem auto 0px;
  }

  .footer__content {
    grid-template-columns: max-content;
  }

  .button-outline, 
  .button-accent {
    margin-left: 0;
    margin-top: 1rem;
  }
  
  .new__buttons {
    flex-direction: column;
  }
}

/* For medium devices */
@media screen and (min-width: 576px) {
  .home__container,
  .new__container,
  .care__container {
    grid-template-columns: 400px;
    justify-content: center;
  }

  .shop__container {
    grid-template-columns: repeat(2, 160px);
    justify-content: center;
  }

  .logo-slider-container {
    margin: 5rem auto 0px;
  }

  .footer__content {
    grid-template-columns: repeat(3, max-content);
  }
}

@media screen and (min-width: 768px) {
  .nav__menu {
    width: 50%;
  }

  .new__content {
    grid-template-columns: repeat(2, 1fr);
    column-gap: 4rem;
  }
  .new__card:nth-child(even) {
    transform: translateY(10rem);
  }

  .logo-slider-container {
    margin: 8rem auto 0px;
  }

  .shop__container {
    grid-template-columns: repeat(3, 160px);
  }

  .footer__container {
    grid-template-columns: repeat(2, max-content);
    justify-content: space-between;
  }
}

/* For large devices */
@media screen and (min-width: 1150px) {
  .container {
    margin-inline: auto;
  }

  .section {
    padding-block: 7rem 2rem;
  }
  .section__title {
    margin-bottom: 1.5rem;
  }

  .logo-slider-container {
    margin: 10rem auto 0px;
  }

  .nav {
    height: calc(var(--header-height) + 2rem);
  }
  .nav__toggle, 
  .nav__close {
    display: none;
  }
  .nav__logo i {
    font-size: 1.5rem;
  }
  .nav__menu {
    width: initial;
  }
  .nav__list {
    flex-direction: row;
    column-gap: 3.5rem;
  }
  .nav__actions {
    font-size: 1.5rem;
    column-gap: 1rem;
  }

  .home__container {
    grid-template-columns: 480px 535px;
    align-items: center;
    column-gap: 4rem;
    padding-top: 4rem;
  }
  .home__img {
    width: 480px;
  }
  .home__data {
    text-align: initial;
  }
  .home__description {
    margin-bottom: 4.5rem;
  }
  .home__buttons {
    justify-content: initial;
    column-gap: 1.5rem;
  }

  .new__container {
    grid-template-columns: 412px 490px;
    align-items: center;
    column-gap: 7.5rem;
  }
  .new__data, 
  .new__data .section__title {
    text-align: initial;
  }
  .new__content {
    row-gap: 8.5rem;
  }
  .new__title {
    font-size: var(--h3-font-size);
  }

  .shop__container {
    grid-template-columns: repeat(3, 240px);
    gap: 8.5rem 4rem;
    padding-top: 7.5rem;
  }
  .shop__card {
    padding: 10.5rem 1.5rem 2rem;
    border-radius: 1.5rem;
  }
  .shop__img {
    width: 210px;
    top: -5.5rem;
  }
  .shop__title {
    font-size: var(--h3-font-size);
  }
  .shop__price {
    font-size: var(--h2-font-size);
  }
  .shop__button {
    right: 1.5rem;
    bottom: 2rem;
    font-size: 1.5rem;
  }

  .care__container {
    grid-template-columns: 480px 385px;
    align-items: center;
    column-gap: 8rem;
    padding-top: 3rem;
  }
  .care__img {
    width: 480px;
  }
  .care__list {
    row-gap: 1.5rem;
  }

  .contact__container {
    grid-template-columns: 280px 480px;
    justify-content: center;
    align-items: center;
    column-gap: 8rem;
    padding-block: 3rem;
  }
  .contact__content {
    order: -1;
    text-align: initial;
    row-gap: 2.5rem;
  }
  .contact__social {
    justify-content: initial;
  }
  .contact__img {
    width: 480px;
  }

  .footer__logo {
    margin-bottom: 1.5rem;
  }
  .footer__logo i {
    font-size: 2rem;
  }
  .footer__content {
    column-gap: 5.5rem;
  }
  .footer__title {
    font-size: var(--h3-font-size);
    margin-bottom: 1.5rem;
  }
  .footer__social {
    column-gap: 1rem;
  }
  .footer__copy {
    margin-top: 7.5rem;
  }

  .scrollup {
    right: 3rem;
  }
}

/*=============== LAZY LOADING ANIMATION ===============*/
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

img.loaded {
  animation: fadeIn 0.5s ease-in;
}

/* Style des liens dans le footer */
.footer__links {
  margin-top: 1rem;
  text-align: center;
}

.footer__link {
  color: var(--text-color);
  font-size: var(--small-font-size);
  transition: color .3s;
}

.footer__link:hover {
  color: var(--first-color);
}

@media screen and (min-width: 768px) {
  .footer__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .footer__links {
    margin-top: 0;
    text-align: right;
  }
}

/*=============== GALLERY ===============*/
.gallery__filters {
  display: flex;
  justify-content: center;
  column-gap: .5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  row-gap: .5rem;
  padding: 0 .5rem;
}

.gallery__filter {
  color: var(--text-color);
  font-size: var(--small-font-size);
  font-weight: var(--font-semi-bold);
  padding: .25rem .75rem;
  border-radius: 4rem;
  cursor: pointer;
  transition: .3s;
}

.gallery__filter:hover {
  background-color: var(--first-color);
  color: var(--white-color);
}

.active-filter {
  background-color: var(--first-color);
  color: var(--white-color);
}

.gallery__container {
  row-gap: 1.5rem;
  padding: 1rem .5rem;
}

.gallery__card {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  margin-bottom: 0;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.gallery__insta-button {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  background-color: var(--first-color);
  color: var(--white-color);
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.25rem;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .3s, transform .3s;
  z-index: 10;
}

.gallery__card:hover .gallery__insta-button {
  opacity: 1;
  transform: translateY(0);
}

.gallery__img {
  width: 100%;
  height: 450px;
  object-fit: cover;
  transition: transform .9s;
}

.gallery__data {
  position: absolute;
  top: 0;
  width: 100%;
  padding: 1.25rem 1rem;
  background: linear-gradient(180deg, 
              hsla(228, 66%, 7%, .9) 0%,
              hsla(228, 66%, 15%, 0) 95%);
  z-index: 5;
}

.gallery__title {
  font-size: var(--h3-font-size);
  color: var(--white-color);
  margin-bottom: .25rem;
}

.gallery__description {
  font-size: var(--small-font-size);
  color: var(--white-color);
}

.gallery__card:hover .gallery__data {
  /* Supprimez cette règle ou remplacez-la si vous souhaitez un effet hover différent */
}

.gallery__card:hover .gallery__img {
  transform: scale(1.05);
}

/* Hide gallery items by filter type */
.gallery__card.hide {
  display: none;
}

/*=============== FAQ ===============*/
.faq__container {
  row-gap: 1.5rem;
  padding: 1rem .5rem;
}

.faq__content {
  row-gap: 1rem;
}

.faq__item {
  background-color: var(--container-color);
  border-radius: 1rem;
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.faq__header {
  display: flex;
  align-items: center;
  column-gap: .5rem;
  cursor: pointer;
}

.faq__icon {
  font-size: 1.25rem;
  color: var(--first-color);
  transition: transform .3s;
}

.faq__title {
  font-size: var(--normal-font-size);
  margin: 0;
  flex: 1;
}

.faq__item .faq__content {
  overflow: hidden;
  height: 0;
  transition: height .3s ease;
}

.faq__description {
  padding: 1rem 0 .5rem 1.75rem;
  font-size: var(--small-font-size);
}

.faq__item.open-faq .faq__icon {
  transform: rotate(45deg);
}

.faq__item.open-faq .faq__content {
  height: max-content;
}

/* MOBILE OPTIMIZATION */
@media screen and (max-width: 575px) {
  .gallery__container {
    grid-template-columns: 1fr;
    justify-items: center;
  }
  
  .gallery__card {
    width: 100%;
    max-width: 320px;
  }
  
  .nav__list {
    gap: 1.5rem;
  }
  
  .nav__link {
    font-size: .85rem;
  }
  
  .gallery__filters {
    column-gap: .3rem;
  }
  
  .gallery__filter {
    font-size: .7rem;
    padding: .2rem .5rem;
  }
  
  .faq__title {
    font-size: .85rem;
  }
  
  .faq__description {
    font-size: .8rem;
    padding: 1rem 0 .5rem 1.5rem;
  }
  
  .faq__item {
    padding: .75rem 1rem;
  }
  
  .section__title {
    font-size: 1.3rem;
    padding: 0 .5rem;
  }
}

@media screen and (min-width: 576px) {
  .gallery__container {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  
  .gallery__card {
    width: 100%;
  }
}

@media screen and (min-width: 992px) {
  .gallery__container {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
  
  .gallery__img {
    height: 250px;
  }
  
  .faq__container {
    width: 80%;
    margin: 0 auto;
  }
  
  .nav__list {
    column-gap: 2rem;
  }
  
  .nav__link {
    font-size: .95rem;
  }
}

/*=============== GALLERY CAROUSEL ===============*/
.gallery__carousel {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  height: 230px;
}

.gallery__carousel-inner {
  width: 100%;
  height: 100%;
  position: relative;
}

.gallery__carousel-item {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease;
}

.gallery__carousel-item.active {
  opacity: 1;
  z-index: 1;
}

.gallery__carousel-indicators {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 2;
}

.indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: background-color 0.3s;
}

.indicator.active {
  background-color: white;
}

/*=============== GALLERY VIDEO ===============*/
.gallery__video-container {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  height: 230px;
}

.gallery__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
}

.gallery__video-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 3rem;
  z-index: 2;
  opacity: 0.8;
  cursor: pointer;
  transition: opacity 0.3s, transform 0.3s;
}

.gallery__video-play:hover {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.1);
}

.gallery__video-container.playing .gallery__video-play {
  display: none;
}

@media screen and (min-width: 992px) {
  .gallery__carousel,
  .gallery__video-container {
    height: 250px;
  }
}

/* Nouveaux styles pour les boutons CTA */
.new__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.new__cta {
  display: inline-flex;
  align-items: center;
  column-gap: .25rem;
  color: var(--first-color);
  font-weight: var(--font-semi-bold);
  margin-top: 1rem;
  transition: all .3s ease;
}

.new__cta i {
  font-size: 1.25rem;
  transition: transform .3s;
}

.new__cta:hover {
  color: var(--first-color-alt);
}

.new__cta:hover i {
  transform: translateX(4px);
}

@media screen and (max-width: 576px) {
  .new__buttons {
    flex-direction: column;
  }
}

/*=============== TESTIMONIALS ===============*/
.testimonials__container {
  position: relative;
  padding: 2rem 1rem;
  overflow: hidden;
}

.testimonials__slider {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  position: relative;
}

.testimonial__card {
  background-color: hsla(228, 24%, 6%, .3);
  border-radius: 1rem;
  padding: 2rem;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid hsla(228, 24%, 20%, .4);
  transition: all .5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  height: 100%;
  display: flex;
  flex-direction: column;
  will-change: transform, opacity;
}

.testimonial__card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 32px hsla(250, 73%, 15%, .25);
  border-color: hsla(250, 73%, 54%, .3);
}

.testimonial__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.testimonial__rating {
  display: flex;
  color: hsl(45, 100%, 51%);
  font-size: 1.25rem;
}

.testimonial__date {
  font-size: var(--small-font-size);
  color: var(--text-color);
}

.testimonial__description {
  color: var(--text-color);
  margin-bottom: 2rem;
  font-style: italic;
  line-height: 1.6;
  flex: 1;
}

.testimonial__footer {
  display: flex;
  flex-direction: column;
  gap: .25rem;
  margin-top: auto;
}

.testimonial__name {
  font-size: var(--h3-font-size);
  color: var(--white-color);
}

.testimonial__car {
  font-size: var(--small-font-size);
  color: var(--first-color);
}

.testimonials__buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
  z-index: 10;
  position: relative;
}

.testimonial__button {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background-color: var(--first-color);
  color: var(--white-color);
  font-size: 1.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: all .3s;
  box-shadow: 0 8px 16px hsla(250, 73%, 15%, .2);
}

.testimonial__button:hover {
  background-color: var(--first-color-alt);
  transform: translateY(-3px);
  box-shadow: 0 12px 20px hsla(250, 73%, 15%, .3);
}

.testimonial__button:active {
  transform: translateY(-1px);
}

.testimonial__cta {
  display: flex;
  justify-content: center;
  margin-top: 3rem;
}

/* Responsive styles */
@media screen and (max-width: 768px) {
  .testimonials__slider {
    grid-template-columns: 1fr;
    gap: 0;
    overflow: hidden;
    position: relative;
    height: 380px; /* Hauteur fixe pour contenir les cartes */
  }
  
  .testimonial__card {
    padding: 1.75rem;
    margin: 0 auto;
    max-width: 350px;
    width: 100%;
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    will-change: transform, opacity;
    transform-origin: center;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
                opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  }
  
  /* S'assurer que la première carte est visible par défaut */
  .testimonial__card:first-child {
    opacity: 1;
    transform: translateX(0);
    z-index: 1;
  }
  
  /* Les autres cartes sont masquées par défaut */
  .testimonial__card:not(:first-child) {
    opacity: 0;
    transform: translateX(100%);
    z-index: 0;
  }
  
  .testimonial__button {
    width: 3rem;
    height: 3rem;
    font-size: 1.25rem;
  }
  
  .testimonials__buttons {
    margin-top: 1.5rem;
  }
  
  /* Ajouter un espace pour les boutons */
  .testimonials__container {
    padding-bottom: 5rem;
  }
}

/* Écrans moyens */
@media screen and (min-width: 769px) and (max-width: 1149px) {
  .testimonials__slider {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Deux colonnes côte à côte */
    gap: 1.5rem; /* Espacement entre les cartes */
    max-width: 750px; /* Largeur maximale pour le conteneur des deux cartes */
    margin: 0 auto;
  }
  
  .testimonial__card {
    position: relative;
    height: 100%; /* Les cartes sur la même ligne auront la même hauteur */
    display: flex;
    flex-direction: column;
    padding: 2rem; 
    transform: none !important; 
    box-shadow: 0 12px 24px hsla(250, 73%, 15%, .2) !important; 
    margin-bottom: 0; /* Le gap de la grille gère l'espacement */
  }

  .testimonial__card:not(:last-child) {
    margin-bottom: 0; /* Inutile car le gap de la grille gère l'espacement */
  }
  
  .testimonial__description {
    font-size: 0.95rem;
    line-height: 1.7;
  }
  
  .testimonial__header {
    margin-bottom: 1.25rem;
  }
  
  .testimonial__rating {
    font-size: 1.15rem;
  }
}

/* Grands écrans */
@media screen and (min-width: 1150px) {
  .testimonials__container {
    padding: 3rem 2rem;
  }
  
  .testimonials__slider {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
  }
  
  .testimonial__card {
    padding: 2.5rem;
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
  }
  
  .testimonial__description {
    font-size: 1rem;
  }
}

/*=============== FLOATING CTA ===============*/
.floating-cta {
  position: fixed;
  bottom: 2rem;
  right: 1.5rem;
  z-index: var(--z-tooltip);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  pointer-events: none;
}

.floating-cta.show-cta {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.floating-cta__call {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background-color: var(--first-color);
  color: var(--white-color);
  font-size: 1.5rem;
  box-shadow: 0 4px 20px hsla(250, 73%, 15%, 0.3);
  transition: all 0.3s ease;
  animation: pulse 2s infinite;
}

.floating-cta__call:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px hsla(250, 73%, 15%, 0.4);
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 hsla(250, 73%, 54%, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px hsla(250, 73%, 54%, 0);
  }
  100% {
    box-shadow: 0 0 0 0 hsla(250, 73%, 54%, 0);
  }
}

@media screen and (max-width: 576px) {
  .floating-cta {
    bottom: 1.5rem;
    right: 1rem;
  }
  
  .new__buttons {
    flex-direction: column;
  }
}
