/* Style personnalisé */

.dc-surbrillance {
	background-color: #fffae6;
	border-left: 4px solid #ffc107;
	padding: 1em;
	margin: 1em 0;
}
.dc-hero {
  background: url('/wp-content/uploads/hero-moteur.jpg') center/cover no-repeat;
  padding: 100px 20px;
  color: white;
  text-align: center;
}
.dc-btn {
  background: #e60000;
  color: white;
  padding: 1em 2em;
  border-radius: 5px;
  text-decoration: none;
  display: inline-block;
  margin-top: 1em;
}

.dc-services {
  padding: 60px 20px;
  text-align: center;
}
.dc-grid-3 {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}
.dc-card {
  background: #f8f8f8;
  padding: 20px;
  width: 300px;
  border-radius: 10px;
  text-align: center;
}
.dc-card i {
  font-size: 2em;
  color: #e60000;
  margin-bottom: 10px;
}

.dc-performances table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}
.dc-performances th,
.dc-performances td {
  padding: 10px;
  border: 1px solid #ccc;
  text-align: center;
}

.dc-temoignages blockquote {
  font-style: italic;
  margin: 20px auto;
  max-width: 600px;
  position: relative;
}
.dc-faq .dc-faq-item {
  margin-bottom: 20px;
}
.dc-contact {
  background: #efefef;
  padding: 60px 20px;
  text-align: center;
}

/* ----------- Formulaire ------------- */
/* === FORMULAIRE CASCADE - VOITURES === */

#filtre-voitures {
    background: #f9f9f9;
    border: 2px solid #e0e0e0;
    padding: 20px;
    border-radius: 12px;
    max-width: 600px;
    margin: 30px auto;
    font-family: "Segoe UI", Roboto, sans-serif;
    color: #333333;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    gap: 15px;
}

#filtre-voitures h3,
#filtre-voitures label {
    font-family: 'Khand', sans-serif;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: #0251B8;
    margin-bottom: 5px;
    font-size: 18px;
}

#filtre-voitures select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 16px;
    background-color: white;
    color: #333;
    transition: border-color 0.3s ease;
}

#filtre-voitures select:focus {
    border-color: #0C71C3;
    outline: none;
    box-shadow: 0 0 0 2px rgba(12, 113, 195, 0.2);
}

/* Groupe boutons */
#filtre-voitures .actions {
    display: flex;
    gap: 10px;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-top: 10px;
}

#filtre-voitures button {
    flex: 1;
    background-color: #0251B8;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    min-width: 48%;
    font-family: 'Khand', sans-serif;
}

#filtre-voitures button:hover:not([disabled]) {
    background-color: #0C71C3;
}

#filtre-voitures button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

/* Style du bouton "Réinitialiser" */
#filtre-voitures .reset-button {
    background-color: #F71635;
}

#filtre-voitures .reset-button:hover {
    background-color: #d0132d;
}

/* === RÉSULTATS === */

#resultats-filtre {
    margin: 30px auto;
    padding: 20px;
    border: 2px solid #e0e0e0;
    border-left: 8px solid #0251B8;
    background: #fff;
    border-radius: 10px;
    color: #333333;
    max-width: 700px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    animation: fadeIn 0.5s ease-in-out;
    font-family: "Segoe UI", Roboto, sans-serif;
}

#resultats-filtre h3 {
    color: #0251B8;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 20px;
    font-family: 'Khand', sans-serif;
}

#resultats-filtre ul {
    list-style: none;
    padding-left: 0;
}

#resultats-filtre li {
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
    line-height: 1.5em;
}

#resultats-filtre li::before {
    content: '✔';
    position: absolute;
    left: 0;
    color: #0C71C3;
    font-weight: bold;
}

/* Accent rouge pour erreurs ou messages spéciaux */
#resultats-filtre p {
    color: #F71635;
    font-weight: bold;
}

/* Animation d'apparition douce */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}




/* ------------ Animation accueil ---------------- */
#intro-image {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #000;
  z-index: 9999;
  opacity: 1;
  transition: opacity 2s ease;
  overflow: hidden;
}

/* Logos PNG superposés */
.logo {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  opacity: 0;
  transition: transform 2s ease, opacity 1s ease;
  z-index: 10000;
}
.logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Animation départ (hors écran) */
.logo-left {
  transform: translateX(-100vw);
}
.logo-right {
  transform: translateX(100vw);
}

/* Animation active */
.slide-to-center-left {
  transform: translateX(0);
  opacity: 1;
}
.slide-to-center-right {
  transform: translateX(0);
  opacity: 1;
}

/* ------------ Menu supérieur (header Divi) ---------------- */
/* Logo et menu pas collés ; menu aligné à droite ; en réduction le menu passe à la ligne au lieu d’être masqué */
#main-header .container.et_menu_container {
  width: 80%;
  max-width: 1675px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
  padding-top: 18px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 24px;
  min-width: 0;
}
/* Logo : espace au-dessus fixe pour ne pas bouger quand le menu passe sur 2 lignes */
body.et_header_style_left #main-header .logo_container {
  position: relative;
  width: auto;
  max-width: 50%;
  height: auto;
  flex-shrink: 0;
}
/* Espace au-dessus du logo + hauteur logo desktop */
#main-header #logo {
  padding-top: 10px;
}
#main-header #logo {
    max-height: 77%;
}

/* Bloc nav peut rétrécir pour que le menu reste visible (glisse à gauche au lieu de sortir) */
/* padding-left inline surchargé pour garder l’espacement via le gap du conteneur */
body.et_header_style_left #main-header #et-top-navigation {
  float: none;
  flex-shrink: 1;
  min-width: 0;
  margin-left: auto;
  padding-left: 0 !important;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}
body.et_header_style_left #et-top-navigation {
  padding-top: 20px;
}
body.et_header_style_left #et-top-navigation nav > ul > li > a {
  padding-bottom: 20px;
}
#main-header #et-top-navigation nav,
#main-header #top-menu-nav {
  float: none;
  min-width: 0;
}
#main-header .container.et_menu_container{
	padding-top: 0px;
}
/* Menu : peut passer à la ligne, reste aligné à droite, ne dépasse pas l’écran */
#main-header #top-menu {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 4px 8px;
  float: none;
  max-width: 100%;
}
#main-header #top-menu li {
  flex-shrink: 0;
}
/* Recherche et panier dans la barre */
#main-header #et-top-navigation .et-cart-info,
#main-header #et_top_search {
  flex-shrink: 0;
}

/* Tablette : même logique, espacements un peu réduits */
@media all and (max-width: 1100px) and (min-width: 981px) {
  #main-header .container.et_menu_container {
    padding-left: 16px;
    padding-right: 16px;
    gap: 16px;
  }
  #main-header #top-menu li {
    padding-right: 12px;
  }
}

/* Mobile / menu hamburger : ne pas appliquer le flex du desktop */
@media all and (max-width: 980px) {
  #main-header .container.et_menu_container {
    display: block;
    flex-wrap: wrap;
    padding-left: 15px;
    padding-right: 15px;
  }
  body.et_header_style_left #main-header .logo_container {
    position: absolute;
    width: 100%;
    max-width: none;
    height: 100%;
  }
  body.et_header_style_left #main-header #et-top-navigation {
    float: right;
    margin-left: 0;
  }
  #main-header #top-menu {
    display: none;
  }
}

/* Très petits écrans */
@media all and (max-width: 479px) {
  #main-header .container.et_menu_container {
    padding-left: 10px;
    padding-right: 10px;
  }
}