/*-----------------------------------*\
  #HÉRO
\*-----------------------------------*/

.hero {
  position: relative;
  padding-block: 20px; /* Reduced padding */
  min-height: 50vh;    /* Reduced height */
  overflow: hidden;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Élément de slide */
.hero .slider-item {
  position: absolute;
  top: 35%;
  left: 50%;
  transform: translate(-50%, -40%);
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease, visibility 0.8s ease;
  z-index: 1;
}

.hero .slider-item.active {
  opacity: 1;
  visibility: visible;
}

/* Arrière-plan du slider */
.hero .slider-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Titres et textes */
.hero .section-subtitle {
  color: var(--or-jaune);
  font-size: var(--fontSize-label-1);
  text-transform: uppercase;
  margin-bottom: 10px;
}

.hero .hero-title {
  color: var(--blanc);
  font-size: var(--fontSize-display-1);
  text-align: center;
  margin-bottom: 20px;
}

.hero .hero-text {
  color: var(--blanc);
  font-size: var(--fontSize-body-2);
  text-align: center;
  margin-bottom: 30px;
}

/* Bouton principal */
.hero .btn {
  padding: 10px 30px;
  font-size: var(--fontSize-label-1);
  background-color: var(--or-jaune);
  color: var(--blanc);
  border: none;
  border-radius: var(--radius-24);
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.hero .btn:hover {
  background-color: var(--blanc);
  color: var(--or-jaune);
  transform: scale(1.05);
}

/* Flèches du slider */
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: var(--or-jaune);
  color: var(--blanc);
  border: none;
  border-radius: var(--radius-circle);
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.slider-btn:hover {
  background-color: var(--blanc);
  color: var(--or-jaune);
  transform: scale(1.1);
}

.slider-btn.prev { left: 20px; }
.slider-btn.next { right: 20px; }

.slider-btn ion-icon {
  font-size: 1.5rem;
}

/*-----------------------------------*\
  #SLIDER D'IMAGES ACCUEIL
\*-----------------------------------*/

.image-slider {
  position: relative;
  width: 100%;
  max-width: 700px;
  margin: 40px auto 0 auto;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
  border-radius: 18px;
  background: rgba(241, 105, 105, 0.8);
}

/* Container d'images dans le fond */
.slider-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.slider-bg .slider-images {
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slider-bg .slider-img {
  display: none;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
  border-radius: 0;
  position: absolute;
  left: 0;
  top: 0;
  transition: opacity 0.5s;
}

.slider-bg .slider-img.active {
  display: block;
  position: absolute;
  opacity: 1;
  z-index: 2;
}

/* Flèches sur le slider de fond */
.slider-bg .slider-arrow {
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  border: none;
  font-size: 2.2rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 3;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

.slider-bg .slider-arrow-left { left: 24px; }
.slider-bg .slider-arrow-right { right: 24px; }

.slider-bg .slider-arrow:hover {
  background: rgba(241, 105, 105, 0.8);
}

/*-----------------------------------*\
  #CARDS DE VOITURES
\*-----------------------------------*/

.car-section {
  padding: 30px 20px; /* Reduced padding */
  margin-top: 100px;  /* Reduced margin */
  background-color: var(--noir-foncé-1);
  position: relative;
}

.car-section .headline-1 {
  color: var(--blanc);
  margin-bottom: 30px;
}

.car-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.car-card {
  background-color: var(--fumé-noir-2);
  border-radius: var(--radius-24);
  padding: 15px; /* Reduced padding */
  text-align: left;
  position: relative;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  margin-bottom: 10px; /* Reduced margin */
}

.car-title {
  color: var(--blanc);
  font-size: var(--fontSize-title-2);
}

.car-model {
  color: var(--mercure);
  font-size: var(--fontSize-label-1);
  margin-bottom: 15px;
}

.car-image {
  width: 50%;
  max-width: 250px;
  margin: 0 auto 15px;
  display: block;
}

.car-details {
  list-style: none;
  margin-bottom: 15px;
  color: var(--blanc);
  font-size: var(--fontSize-label-1);
}

.car-details li {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 5px;
}

.car-price {
  color: var(--or-jaune);
  font-size: var(--fontSize-title-3);
  font-weight: var(--weight-bold);
  margin-bottom: 15px;
}

.car-btn {
  position: absolute;
  bottom: 20px;
  right: 20px;
  background-color: var(--or-jaune);
  color: var(--noir);
  border: none;
  border-radius: var(--radius-circle);
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.car-btn:hover {
  background-color: var(--blanc);
  color: var(--or-jaune);
  transform: scale(1.1);
}

/*-----------------------------------*\
  #À PROPOS DE NOUS
\*-----------------------------------*/

.about-us {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  margin-top: 20px;
  color: var(--blanc);
  text-align: center;
  min-height: 600px;
  opacity: 0;
}

.about-us.visible {
  opacity: 1;
  transform: translateY(0);
}

.about-us .container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 100px; /* Plus d'espace entre image et texte */
  max-width: 1400px;
  margin: 0 auto;
}

/* Image de la section */
.about-image {
  position: relative;
  max-width: 55%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.about-image .img-cover {
  border-radius: var(--radius-24);
  box-shadow: var(--shadow-1);
  max-width: 500px;
  width: 100%;
  height: auto;
}

/* Contenu de texte */
.about-content {
  max-width: 600px;
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
}

.about-content .headline-1 {
  margin-bottom: 30px;
  font-size: 3.2rem;
}

.about-content .body-2 {
  margin-bottom: 40px;
  max-width: 500px;
  font-size: 2rem;
}

.about-content .btn {
  margin-right: 0;
  font-size: 1.2rem;
  padding: 10px 10px;
  border-radius: 30px;
}

/*-----------------------------------*\
  #AVIS CLIENTS
\*-----------------------------------*/

.avis-section {
  padding: 60px 0 40px 0;
  margin-top: 40px;
}




/*-----------------------------------*\
  #REQUÊTES MÉDIAS
\*-----------------------------------*/


/*==============================
  ÉCRANS SUPÉRIEURS À 575px
==============================*/
@media (min-width: 575px) {

  /* Propriétés personnalisées */
  :root {
    /* Typographie */
    --fontSize-body-2: 2rem;
  }

  /* Style réutilisé */
  :is(.service, .about) .section-text {
    max-width: 420px;
    margin-inline: auto;
  }

  .contact-number {
    --fontSize-body-1: 3rem;
  }

  /* Barre supérieure */
  .topbar {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding-block: 10px;
    border-block-end: 1px solid var(--blanc-gris-1);
    z-index: 4;
    transition: var(--transition-1);
  }

  .topbar:has(~ .header.active) {
    transform: translateY(-100%);
  }

  .topbar-item:not(.link),
  .topbar .separator {
    display: none;
  }

  .topbar .container,
  .topbar-item {
    display: flex;
    align-items: center;
  }

  .topbar .container {
    justify-content: center;
    gap: 30px;
  }

  .topbar-item {
    gap: 6px;
  }

  .topbar-item ion-icon {
    --ionicon-stroke-width: 60px;
  }

  .topbar-item .span {
    font-size: var(--fontSize-label-1);
  }

  .topbar .link {
    transition: var(--transition-1);
  }

  .topbar .link:is(:hover, :focus-visible) {
    color: var(--or-jaune);
  }

  /* En-tête */
  .header {
    top: 51px;
  }

  .header.active {
    top: 0;
  }

  .header .btn {
    display: block;
    margin-inline-start: auto;
  }

  /* Section Héros */
  .hero-btn {
    transform: scale(0.7);
  }

  /* Pied de page */
  .footer-brand > * {
    max-width: 460px;
    margin-inline: auto;
  }

  .footer .input-wrapper {
    position: relative;
  }

  .footer .input-field {
    margin-block-end: 0;
    padding-inline-end: 205px;
  }

  .footer-brand .btn {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    min-width: max-content;
  }
}


/*==============================
  ÉCRANS INFÉRIEURS À 700px
==============================*/
@media (max-width: 700px) {

  .contact-main {
    margin-top: 110px;
    padding-bottom: 18px;
  }

  .contact-section-modern,
  .map-section-modern {
    padding: 14px 2vw;
    width: 85vw;
    max-width: 99vw;
    margin: 0 10px;
  }

  .contact-image-top img {
    width: 60px;
  }

  .map-responsive {
    min-height: 180px;
    aspect-ratio: 16/10;
  }

  .topbar {
    display: none;
  }

  /* Header */
  .header {
    top: 0 !important;
    position: fixed;
    left: 0;
    width: 100%;
    background-color: var(--blanc);
    z-index: 99;
    transition: var(--transition-1);
  }

  .header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 15px;
    gap: 6px;
  }

  .header .logo img {
    width: 45px;
    height: auto;
  }

  .header .btn {
    display: inline-block !important;
    position: relative;
    z-index: 1100;
    font-size: 0.8rem;
    padding: 5px 12px;
    border-radius: 20px;
    background-color: var(--btn-bg, #333);
    color: var(--btn-color, #fff);
    margin-left: auto;
  }

  .nav-toggle-btn {
    display: block;
    position: fixed;
    top: 10px;
    left: 10px;
    background-color: #fff;
    border: none;
    border-radius: 12px;
    padding: 5px 8px;
    font-size: 1.8rem;
    cursor: pointer;
    color: #000;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    z-index: 1101;
    transition: background-color 0.3s ease;
  }

  .nav-toggle-btn:hover,
  .nav-toggle-btn:focus {
    background-color: #f0f0f0;
  }

  .navbar {
    position: fixed;
    top: 0;
    left: -100%;
    width: 250px;
    height: 100vh;
    background-color: #fff;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    padding: 80px 20px;
    transition: left 0.3s ease;
    z-index: 1100;
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .navbar.active {
    left: 0;
  }

  .navbar-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .navbar-item {
    border: none;
  }

  .navbar-link {
    font-weight: var(--weight-bold);
    letter-spacing: var(--letterSpacing-1);
    position: relative;
    padding: 8px 12px;
  }

  .navbar-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    height: 2px;
    width: 100%;
    background-color: var(--or-jaune);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0;
  }

  .navbar-link:is(:hover, :focus-visible, .active)::after {
    transform: scaleX(1);
    opacity: 1;
  }

  .overlay {
    display: none;
  }

  .navbar.active ~ .overlay {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1099;
  }

  .slider-bg {
    min-width: 8vw !important;
    min-height: 320px !important;
    width: 100vw !important;
    height: 0px !important;
    border-radius: 14px !important;
  }

  .slider-bg .slider-img {
    min-height: 320px !important;
    height: 100% !important;
    object-fit: cover !important;
  }

   .about-us {
    padding: 20px 0 60px 0; /* section plus proche du haut */
  }

  .about-us .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 16px;
    gap: 16px;
  }

  .about-image {
    margin-bottom: 10px;
  }

  .about-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
  }

  .about-content {
    text-align: center;
  }

  .about-content .headline-1 {
    font-size: 2rem;
    margin-bottom: 10px;
    text-align: center; /* centrage du titre */
  }

  .about-content .body-2 {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 20px;
  }

  .about-content .btn {
    font-size: 1rem;
    padding: 10px 24px;
    margin: 0 auto;
  }
}

/*==============================
  ÉCRANS INFÉRIEURS À 900px
==============================*/
@media (max-width: 900px) {
  .slider-bg .slider-arrow {
    font-size: 1.5rem;
    width: 36px;
    height: 36px;
  }
}

/*==============================
  ÉCRANS SUPÉRIEURS À 992px
==============================*/
@media (min-width: 992px) {

  /* Propriétés personnalisées */
  :root {
    --section-space: 100px;
  }

  /* Style réutilisé */
  :is(.service, .event) .container {
    max-width: unset;
  }

  :is(.service, .event) .grid-list {
    grid-template-columns: repeat(3, 1fr);
  }

  :is(.service, .event) .grid-list li:last-child {
    grid-column: auto;
    width: 100%;
  }

  /* Barre supérieure */
  .topbar-item:not(.link) {
    display: flex;
  }

  .topbar .item-2 {
    margin-inline-end: auto;
  }

  /* Barre supérieure, header, navbar transparent */
  .topbar,
  .header,
  .navbar {
    background-color: transparent !important;
    box-shadow: none !important;
    border: none !important;
  }

  /* Pied de page */
  .footer .grid-list {
    grid-template-columns: 0.45fr 1fr 0.45fr;
    align-items: center;
  }

  .footer-brand {
    grid-column: auto;
    order: 1;
    padding-block: 100px;
  }

  .footer-list:last-child {
    order: 2;
  }
}

/*==============================
  ÉCRANS SUPÉRIEURS À 1200px
==============================*/
@media (min-width: 1200px) {

  /* Propriétés personnalisées */
  :root {
    --fontSize-title-2: 2.5rem;
  }

  /* Conteneurs */
  .container,
  :is(.service, .event) .container {
    max-width: 1200px;
    width: 100%;
    margin-inline: auto;
  }

  /* Barre supérieure */
  .topbar .container {
    max-width: unset;
  }

  .topbar .separator {
    display: block;
  }

  /* En-tête */
  .nav-open-btn,
  .navbar > *:not(.navbar-list),
  .header .overlay {
    display: none;
  }

  .header .container {
    max-width: unset;
  }

  .navbar,
  .navbar.active,
  .navbar-list {
    all: unset;
  }

  .navbar,
  .navbar.active {
    margin-inline: auto 20px;
  }

  .navbar-list {
    display: flex;
    gap: 30px;
  }

  .navbar-item {
    border-block-start: none;
  }

  .navbar .separator {
    display: none;
  }

  .navbar-link:is(:hover, :focus-visible, .active) .span {
    transform: unset;
  }

  .navbar-link {
    font-weight: var(--weight-bold);
    letter-spacing: var(--letterSpacing-1);
  }

  .navbar-link::after {
    display: block;
  }

  .navbar-link.active::after {
    transform: scaleX(1);
    opacity: 1;
  }

  .header .btn {
    margin-inline-start: 0;
  }

  /* Héros */
  .hero {
    height: 880px;
  }

  .hero-btn {
    bottom: 50px;
    right: 50px;
    transform: scale(1);
  }
}

/*==============================
  ÉCRANS SUPÉRIEURS À 1400px
==============================*/
@media (min-width: 1400px) {

  /* En-tête */
  .navbar {
    margin-inline: auto;
  }

  /* À propos de nous */
  .about-content {
    padding-inline-end: 90px;
  }

  .about .shape {
    display: block;
    top: 46%;
    left: 0;
  }
}
