/* ============================================
   1. FOOTER - TEXTE, ICÔNES ET LIENS EN BLANC
   ============================================ */

.main-footer,
.main-footer .text,
.main-footer .widget-title,
.main-footer .contact-info .text,
.main-footer .contact-info .text a,
.main-footer .links-widget ul li a,
.main-footer .about-widget .text,
.main-footer .contact-info .icon,
.main-footer .contact-info .icon .fas,
.main-footer .contact-info .icon .fab,
.main-footer .contact-info .icon .far,
.main-footer .social-links a,
.main-footer .copyright .text,
.main-footer .copyright .text a,
.main-footer .footer-menu ul li a,
.main-footer .logo a img {
  color: #ffffff !important;
}

.main-footer a,
.main-footer a:link,
.main-footer a:visited,
.main-footer a:hover,
.main-footer a:active,
.main-footer a:focus,
.main-footer .contact-info .text a,
.main-footer .contact-info .text a:link,
.main-footer .contact-info .text a:visited,
.main-footer .contact-info .text a:hover,
.main-footer .contact-info .text a:active,
.main-footer .links-widget ul li a:link,
.main-footer .links-widget ul li a:visited,
.main-footer .links-widget ul li a:hover,
.main-footer .links-widget ul li a:active,
.main-footer .footer-menu ul li a:link,
.main-footer .footer-menu ul li a:visited,
.main-footer .footer-menu ul li a:hover,
.main-footer .footer-menu ul li a:active {
  color: #ffffff !important;
  text-decoration: none;
}

.main-footer .fas,
.main-footer .fab,
.main-footer .far,
.main-footer .contact-info .icon .fas,
.main-footer .contact-info .icon .fab,
.main-footer .contact-info .icon .far,
.main-footer .social-links a i {
  color: #ffffff !important;
}

/* ============================================
   2. BANNIÈRE SLIDER - VIDÉO DE FOND
   ============================================ */

.banner-section {
  position: relative;
}

.banner-section .swiper-slide {
  position: relative;
  overflow: hidden;
  background: #000;
}

.banner-section .swiper-slide video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.banner-section .swiper-slide::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  z-index: 2;
}

.banner-section .swiper-slide .content-outer {
  position: relative;
  z-index: 3;
}

.banner-section .swiper-slide .content-box {
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.banner-section .swiper-slide .inner {
  position: relative;
  z-index: 3;
}

/* ============================================
   3. SLIDER - FLÈCHES VISIBLES
   ============================================ */

.banner-section .banner-slider-nav {
  position: absolute;
  bottom: 40px;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 20px;
  z-index: 10;
  pointer-events: none;
}

.banner-section .banner-slider-control {
  pointer-events: auto;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  cursor: pointer;
  transition: 0.3s;
}

.banner-section .banner-slider-control:hover {
  background: rgba(255, 255, 255, 0.4);
}

.banner-section .banner-slider-control span i {
  color: #ffffff;
  font-size: 20px;
}

.banner-section .banner-slider-button-next span i {
  transform: rotate(180deg);
}

/* ============================================
   4. SLIDER - FLÈCHES RESPONSIVE
   ============================================ */

@media (max-width: 767px) {
  .banner-section .banner-slider-nav {
    bottom: 20px;
    gap: 15px;
  }

  .banner-section .banner-slider-control {
    width: 40px;
    height: 40px;
  }

  .banner-section .banner-slider-control span i {
    font-size: 16px;
  }
}

/* ============================================
   5. MENU MOBILE - CORRECTION AFFICHAGE
   ============================================ */

.mobile-menu .menu-box .menu-outer ul {
  display: block !important;
}

.mobile-menu .menu-box .menu-outer ul li {
  display: block !important;
  width: 100% !important;
}

.mobile-menu .menu-box .menu-outer ul li a {
  display: block !important;
  padding: 10px 20px !important;
  color: #fff !important;
}

.mobile-menu .menu-box .menu-outer .dropdown .dropdown-btn {
  display: block !important;
  position: absolute;
  right: 0;
  top: 0;
  width: 50px;
  height: 44px;
  line-height: 44px;
  text-align: center;
  cursor: pointer;
  color: #fff;
  font-size: 14px;
}

.mobile-menu .menu-box .menu-outer .dropdown ul {
  display: none;
  padding-left: 20px;
}

.mobile-menu .menu-box .menu-outer .dropdown ul.open {
  display: block;
}

/* ============================================
   6. SERVICES - BLOCS
   ============================================ */

.services-section {
  background: transparent !important;
}

.service-block-one .inner-box {
  position: relative;
  overflow: hidden;
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
  display: flex;
  flex-direction: column;
  min-height: 400px;
  padding: 40px 20px;
  transition: none !important;
  margin-bottom: 0px;
}

.service-block-one .inner-box:hover {
  transform: none !important;
  transition: none !important;
}

.service-block-one .lower-content {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 200px !important;
  padding: 20px 15px;
}

.service-block-one .lower-content .text {
  font-size: 16px;
  line-height: 28px;
  font-weight: 400;
  color: #ffffff !important;
  margin: 0 0 15px;
  min-height: 84px;
  max-height: 150px;
  overflow: hidden;
  display: none;
}

.service-block-one .inner-box.active .lower-content .text,
.service-block-one .inner-box:hover .lower-content .text {
  display: block;
}

.service-block-one .lower-content h4 {
  display: inline-block;
  padding: 10px 20px;
  border: 2px solid #ffffff;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.4);
  color: #ffffff !important;
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 15px;
  min-width: 200px;
  text-align: center;
  line-height: 1.4;
}

.service-block-one .inner-box.active h4,
.service-block-one .inner-box:hover h4 {
  color: #ffffff !important;
  border-color: #ffffff;
  background: rgba(0, 0, 0, 0.4);
}

.service-block-one .read-more-btn {
  display: none !important;
}

/* Image de fond */
.service-block-one .inner-box:before {
  position: absolute;
  content: "";
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  opacity: 1;
  transition: 0.8s;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
  transform: none !important;
}

/* Voile noir */
.service-block-one .inner-box::after {
  position: absolute;
  content: "";
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1;
  transition: 0.8s;
  transform: none !important;
}

.service-block-one .inner-box.active::after,
.service-block-one .inner-box:hover::after {
  background: rgba(0, 0, 0, 0.8);
}

/* Attribution des images */
.service-block-one:nth-child(1) .inner-box:before {
  background-image: url(assets/images/fond01.jpg);
}
.service-block-one:nth-child(2) .inner-box:before {
  background-image: url(assets/images/fond02.jpg);
}
.service-block-one:nth-child(3) .inner-box:before {
  background-image: url(assets/images/fond03.jpg);
}
.service-block-one:nth-child(4) .inner-box:before {
  background-image: url(assets/images/fond04.jpg);
}

/* Annulation agrandissement */
.service-block-one .inner-box:hover .icon img {
  transform: none !important;
  transition: none !important;
}
.service-block-one .inner-box:hover .lower-content h4 {
  transform: none !important;
  transition: none !important;
}
.service-block-one .inner-box:hover .lower-content .text {
  transform: none !important;
  transition: none !important;
}
.service-block-one .inner-box:hover .lower-content .read-more-btn {
  transform: none !important;
  transition: none !important;
}
.service-block-one .inner-box:hover .hover-icon {
  transform: none !important;
  opacity: 0 !important;
}
.service-block-one .inner-box.active .lower-content,
.service-block-one .inner-box:hover .lower-content {
  padding-bottom: 0 !important;
  margin-bottom: 0 !important;
}

/* ============================================
   7. SERVICES - OMBRE SUR L'ENSEMBLE
   ============================================ */

.services-wrapper {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
  overflow: hidden;
  padding: 0;
}

/* ============================================
   8. PANNEAUX DE CIRCULATION - CAROUSEL
   ============================================ */

:root {
  --panneau-width: 120px;
  --panneau-height: 120px;
  --panneau-gap: 10px;
}

.brand-logo .theme_carousel {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.brand-logo .theme_carousel .owl-stage-outer {
  width: 100%;
  padding: 10px 0;
  min-height: calc(var(--panneau-height) + 20px);
}

.brand-logo .theme_carousel .owl-stage {
  display: flex;
  align-items: center;
  gap: var(--panneau-gap);
}

.brand-logo .theme_carousel .owl-item {
  padding: 0 !important;
  margin: 0 !important;
  width: calc(var(--panneau-width) + var(--panneau-gap)) !important;
  flex: 0 0 calc(var(--panneau-width) + var(--panneau-gap)) !important;
}

.brand-logo .single-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 !important;
  margin: 0 !important;
}

.brand-logo .single-logo img {
  width: var(--panneau-width);
  height: var(--panneau-height);
  object-fit: contain;
  display: block;
  margin: 0 auto;
  transition: transform 0.3s ease;
}

.brand-logo .single-logo img:hover {
  transform: scale(1.05);
}

.brand-logo .auto-container {
  padding: 0 !important;
  margin: 0 auto !important;
}

/* ============================================
   9. COURSES
   ============================================ */

.course-block .separated {
  min-height: 80px;
  margin: 15px 0 20px;
}

.course-block .text {
  margin-bottom: 1px !important;
}

.course-block .inner-box {
  margin-bottom: 2px !important;
  box-shadow: 0px 4px 14px 0px rgba(0, 0, 0, 0.1);
}

/* ============================================
   10. SIDEBAR - CADRE "NOS FORMATIONS"
   ============================================ */

.widget.widget_categories {
  background: #ffffff;
  border-radius: 8px;
  box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
  overflow: hidden;
  height: 100%;
}

.widget.widget_categories .widget-title {
  padding: 18px 20px;
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  border-bottom: 1px solid #eee;
}

.widget.widget_categories .widget-content {
  padding: 5px 0;
}

.widget.widget_categories .categories-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.widget.widget_categories .categories-list li {
  border-bottom: 1px solid #f0f0f0;
}

.widget.widget_categories .categories-list li:last-child {
  border-bottom: none;
}

.widget.widget_categories .categories-list li a {
  display: block;
  padding: 14px 20px;
  color: #333;
  font-size: 17px;
  transition: 0.3s;
  text-decoration: none;
  font-weight: 500;
}

.widget.widget_categories .categories-list li a:hover {
  background: #f5f5f5;
  color: #1a5c9e;
}

.widget.widget_categories .categories-list li.current a {
  background: #1a5c9e;
  color: #ffffff;
}

/* Suppression des flèches */
.widget.widget_categories .categories-list li a::before,
.widget.widget_categories .categories-list li a::after,
.widget.widget_categories .categories-list li a .arrow,
.widget.widget_categories .categories-list li a i.fa-chevron-right,
.widget.widget_categories .categories-list li a i.fa-angle-right,
.widget.widget_categories .categories-list li a .flaticon-right-arrow,
.sidebar .widget_categories .categories-list li a i,
.sidebar .widget_categories .categories-list li a span.flaticon {
  display: none !important;
  content: none !important;
}

/* ============================================
   11. COURSE DETAILS
   ============================================ */

.course-details .group-title h4,
.course-details h3 {
  color: #1a5c9e !important;
}

.course-details .group-title h4 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 15px;
}

.course-details h3 {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 20px;
}

/* ============================================
   12. WIDGET BANNER
   ============================================ */

.widget.banner-widget {
  background: #ffffff;
  border-radius: 8px;
  box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
  overflow: hidden;
  padding: 30px 20px;
  text-align: center;
}

.widget.banner-widget .contact-number a {
  border: 2px solid #ffffff;
  background: transparent;
  padding: 10px 20px;
  border-radius: 14px;
  display: inline-block;
  color: #ffffff;
  font-weight: 600;
  transition: 0.3s;
  text-decoration: none;
}

.widget.banner-widget .contact-number a:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

/* ============================================
   13. BANNER WIDGET - SLIDER FONDU
   ============================================ */

.banner-slider-container {
  position: relative;
  width: 100%;
  height: 100px;
  overflow: hidden;
  margin-bottom: 15px;
}

.banner-slider-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
}

.banner-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  animation: fadeSlider 15s infinite;
  border-radius: 4px;
}

.banner-slide:nth-child(1) {
  animation-delay: 0s;
}
.banner-slide:nth-child(2) {
  animation-delay: 3s;
}
.banner-slide:nth-child(3) {
  animation-delay: 6s;
}
.banner-slide:nth-child(4) {
  animation-delay: 9s;
}
.banner-slide:nth-child(5) {
  animation-delay: 12s;
}

@keyframes fadeSlider {
  0% {
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  25% {
    opacity: 1;
  }
  35% {
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}

/* ============================================
   14. MÉDAILLON
   ============================================ */

.medaillon-block {
  background: #ffffff;
  border-radius: 8px;
  box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
  padding: 20px 25px;
  margin-top: 30px;
}

.medaillon-block .group-title {
  background: transparent;
  box-shadow: none;
  padding: 0;
  margin: 0;
}

.medaillon-block .group-title h4 {
  margin-bottom: 10px;
}

.medaillon-block .text {
  background: transparent;
  box-shadow: none;
  padding: 0;
  margin: 0;
}

/* ============================================
   15. FOND DE SITE - IMAGE AVEC VOILE BLANC
   ============================================ */

body {
  background-image: url(assets/images/fond.jpg);
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.95);
  z-index: -1;
}

.page-wrapper {
  position: relative;
  z-index: 1;
}

/* ============================================
   16. FORMATIONS - EN-TÊTE AVEC OMBRE ET FOND
   ============================================ */

.driving-courses-section .formations-header {
  background: rgba(0, 0, 0, 0.6) !important;
  border-radius: 12px !important;
  box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px !important;
  padding: 30px 40px !important;
  margin-bottom: 30px !important;
}

/* ============================================
   17. ÉLÉMENTS GÉNÉRAUX
   ============================================ */

.sec-title .sub-title {
  position: relative;
  font-size: 15px;
  padding-bottom: 15px !important;
  color: #1a5c9e;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
  font-weight: 600 !important;
}

.text {
  font-size: 18px;
  line-height: 28px;
  font-weight: 400;
  color: #333;
  margin: 0px 0px 15px;
}

.page-title h1:before {
  background-image: none !important;
}

/* ============================================
   18. CONTACT - STYLE UNIFIÉ
   ============================================ */

/* Suppression des icônes */
.contact-info-block .icon {
  display: none !important;
}

/* Suppression des traits */
.contact-info-block {
  border: none !important;
}
.contact-info-block .inner-box {
  border: none !important;
  box-shadow: none !important;
  background: transparent !important;
  padding-top: 20px;
}
.contact-section .row {
  border: none !important;
}
.contact-section .row > div {
  border: none !important;
}
.contact-info-block .inner-box::before,
.contact-info-block .inner-box::after {
  display: none !important;
}

/* Encapsulation */
.contact-wrapper {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
  padding: 20px;
}

.form-wrapper {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
  padding: 30px;
}

/* Cartes */
.contact-map {
  margin-top: 30px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Ligne sous onglets */
.nav-tabs {
  border-bottom: none !important;
}

/* Détails contact */
.tab-content .contact-details-row {
  border: 1px solid #333 !important;
  border-radius: 5px !important;
  padding: 15px 0 !important;
  margin: 15px 100px !important;
}

.tab-content .contact-details-row .contact-info-block {
  padding: 0 15px !important;
}

.tab-content .contact-details-row .contact-info-block .inner-box {
  padding: 5px 0 !important;
  text-align: center !important;
}

.tab-content .contact-details-row .contact-info-block h4 {
  font-size: 20px !important;
  font-weight: 700 !important;
  margin-bottom: 8px !important;
}

.tab-content .contact-details-row .contact-info-block .text,
.tab-content .contact-details-row .contact-info-block ul {
  font-size: 20px !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
  line-height: 1.6 !important;
}

.tab-content .contact-details-row .contact-info-block ul li {
  padding: 0 !important;
}

.tab-content .contact-details-row .contact-info-block ul li a,
.tab-content .contact-details-row .contact-info-block ul li a:link,
.tab-content .contact-details-row .contact-info-block ul li a:visited,
.tab-content .contact-details-row .contact-info-block ul li a:hover,
.tab-content .contact-details-row .contact-info-block ul li a:active,
.tab-content .contact-details-row .contact-info-block ul li a:focus {
  font-size: 18px !important;
  color: #000000 !important;
  text-decoration: none !important;
  background: transparent !important;
}

/* Responsive contact-details-row */
@media (max-width: 992px) {
  .tab-content .contact-details-row {
    margin: 15px 40px !important;
  }
}

@media (max-width: 768px) {
  .tab-content .contact-details-row {
    margin: 15px 10px !important;
  }
}

/* ============================================
   19. CONTACT - ONGLETS STYLE BOUTON INDEX
   ============================================ */

.tab-btn-style-one {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
}

.tab-btn-style-one .nav-link {
  display: inline-block;
  padding: 12px 30px;
  background: #ffffff;
  border: 2px solid #1a5c9e;
  border-radius: 8px !important;
  color: #1a5c9e !important;
  font-weight: 600;
  transition: 0.3s;
  text-decoration: none;
  width: 250px;
  text-align: center;
}

.tab-btn-style-one .nav-link:hover {
  background: #1a5c9e;
  color: #ffffff !important;
}

.tab-btn-style-one .nav-link.active {
  background: #1a5c9e;
  color: #ffffff !important;
}

.tab-btn-style-one .nav-link h4 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: inherit !important;
}

/* Tablette */
@media (max-width: 768px) {
  .tab-btn-style-one .nav-link {
    padding: 10px 20px;
    width: 200px;
  }
  .tab-btn-style-one .nav-link h4 {
    font-size: 14px;
  }
}

/* Mobile */
@media (max-width: 480px) {
  .tab-btn-style-one .nav-link {
    padding: 8px 10px;
    width: 120px;
  }
  .tab-btn-style-one .nav-link h4 {
    font-size: 11px;
  }
}
/* ============================================
   BANNER WIDGET - SLIDER FONDU (HAUTEUR CONSERVÉE)
   ============================================ */

.banner-slider-container {
  position: relative;
  width: 100%;
  height: 400px !important; /* Hauteur fixe */
  overflow: hidden;
  margin-bottom: 15px;
  border-radius: 4px;
}

.banner-slider-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
}

.banner-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  animation: fadeSlider 15s infinite;
}

.banner-slide:nth-child(1) {
  animation-delay: 0s;
}
.banner-slide:nth-child(2) {
  animation-delay: 3s;
}
.banner-slide:nth-child(3) {
  animation-delay: 6s;
}
.banner-slide:nth-child(4) {
  animation-delay: 9s;
}
.banner-slide:nth-child(5) {
  animation-delay: 12s;
}

@keyframes fadeSlider {
  0% {
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  25% {
    opacity: 1;
  }
  35% {
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}
/* ============================================
   BLOCS DE CONTENU - FOND BLANC AVEC OMBRE
   ============================================ */

/* Bloc générique pour tout contenu */
.content-block-box,
.medaillon-block,
.course-details .group-title,
.course-details .group-title + .text,
.course-details .group-title + .text.mb-40,
.widget.widget_categories,
.widget.banner-widget,
.form-wrapper,
.contact-wrapper {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
  padding: 25px 30px;
  margin-bottom: 25px;
}

/* Adaptation pour les éléments déjà encadrés */
.course-details .group-title {
  margin-bottom: 0;
  border-radius: 12px 12px 0 0;
  padding-bottom: 5px;
}

.course-details .group-title + .text,
.course-details .group-title + .text.mb-40 {
  border-radius: 0 0 12px 12px;
  padding-top: 5px;
  margin-top: 0;
}

/* Exclusion pour les listes dans les blocs */
.content-block-box ul,
.medaillon-block ul {
  padding-left: 20px;
}

/* Services section déjà gérée */
.services-wrapper {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
  overflow: hidden;
  padding: 0;
}
