/* Fonts & Color Variables */
:root {
  --default-font: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  --heading-font: "Montserrat", sans-serif; /* Force Montserrat pour les titres aussi */
  --nav-font: "Montserrat", sans-serif; /* Force Montserrat pour nav */
}

/* Définition des couleurs de la charte graphique */
:root { 
  --background-color: #f5f5f5; /* Gris très clair pour le fond général */
  --default-color: #444444; /* Gris foncé pour le texte par défaut */
  --heading-color: #273d4e; /* Bleu/gris très foncé pour les titres */
  --accent-color: #ff0000; /* Rouge principal */
  --secondary-accent-color: #33cc33; /* Vert secondaire */
  --surface-color: #ffffff; /* Blanc pour les surfaces (cartes, etc.) */
  --contrast-color: #ffffff; /* Blanc pour le contraste sur les accents */
}

/* Ces variables peuvent être surchargées par .light-background ou .dark-background */
:root {
  --nav-color: #e5eaee;
  --nav-hover-color: var(--accent-color);
  --nav-mobile-background-color: #ffffff;
  --nav-dropdown-background-color: #ffffff;
  --nav-dropdown-color: var(--default-color);
  --nav-dropdown-hover-color: var(--accent-color);
}

.light-background {
  --background-color: #f1f4fa;
  --surface-color: #ffffff;
}

.dark-background {
  --background-color: #1A1A3A; /* Fond sombre pour les sections avec cette classe */
  --default-color: #ffffff;
  --heading-color: #ffffff;
  --surface-color: #1A1A3A; /* Surface sombre pour les cartes dans les sections sombres */
  --contrast-color: #ffffff;
}

/*--------------------------------------------------------------
# General - Application de la police Montserrat partout avec !important
--------------------------------------------------------------*/
html, body,
.header .logo .sitename,
.welcome-message,
.navmenu a,
.navmenu .dropdown-menu a,
.navmenu .sub-dropdown a,
.cta-btn,
h1, h2, h3, h4, h5, h6,
p, span, div, label, input, select, textarea, button,
.form-control, .form-select,
.btn-green, .btn-secondary,
.summary-content p,
.step-title,
.swiper-caption h3, .swiper-caption p,
.footer p, .footer span, .footer strong, .footer a {
  font-family: var(--default-font) !important; /* Force Montserrat pour TOUT le document */
}


body {
  color: var(--default-color);
  background-color: var(--background-color);
  overflow-x: hidden; /* Empêche le défilement horizontal global */
}

a {
  color: var(--accent-color);
  text-decoration: none;
  transition: 0.3s;
}

a:hover {
  color: color-mix(in srgb, var(--accent-color), black 25%);
  text-decoration: none;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--heading-color);
}

/*--------------------------------------------------------------
# Sections (Ces styles sont généralement définis dans main.css, mais je les garde pour assurer la cohérence si custom.css est chargé après)
----------------------------------------------------------------*/
.section {
  color: var(--default-color);
  background-color: var(--background-color); /* Utilise le background-color pour un léger contraste */
  padding: 60px 0;
  scroll-margin-top: 80px;
  overflow: hidden;
}

.section-bg {
  background-color: var(--background-color);
}

.section-title {
  text-align: center;
  padding-bottom: 30px;
}

.section-title h2 {
  font-size: 38px; /* Augmenté pour plus d'impact */
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 20px;
  position: relative;
  color: var(--accent-color);
  text-transform: uppercase; /* Mettre en majuscules */
}

.section-title h2::after {
  content: "";
  position: absolute;
  display: block;
  width: 80px; /* Plus large */
  height: 4px; /* Plus épais */
  background: linear-gradient(to right, var(--accent-color), var(--secondary-accent-color));
  left: 0;
  right: 0;
  bottom: 0;
  margin: auto;
  border-radius: 2px; /* Bords légèrement arrondis */
}

.section-title p {
  margin-bottom: 0;
  color: var(--default-color);
  max-width: 800px; /* Limiter la largeur pour une meilleure lisibilité */
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
  font-size: 18px; /* Légèrement plus grand */
}

/*--------------------------------------------------------------
# Breadcrumbs
--------------------------------------------------------------*/
.breadcrumbs {
  padding: 15px 0;
  background: var(--background-color);
  min-height: 40px;
  margin-top: 80px;
}

.breadcrumbs h2 {
  font-size: 24px;
  font-weight: 400;
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 14px;
  font-weight: 600;
}

.breadcrumbs ol li + li {
  padding-left: 10px;
}

.breadcrumbs ol li + li::before {
  content: "/";
  padding-right: 10px;
  color: var(--default-color);
}

/*--------------------------------------------------------------
# Preloader
--------------------------------------------------------------*/
#preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  overflow: hidden;
  background: var(--surface-color);
  transition: all 0.6s ease-out;
  width: 100%;
  height: 100vh;
}

#preloader:before {
  content: "";
  position: absolute;
  border: 4px solid var(--accent-color);
  border-top: 4px solid transparent;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  animation: animate-preloader 1s linear infinite;
  top: calc(50% - 30px);
  left: calc(50% - 30px);
}

@keyframes animate-preloader {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/*--------------------------------------------------------------
# Disable aos animation delay on mobile
--------------------------------------------------------------*/
@media screen and (max-width: 768px) {
  [data-aos-delay] {
    transition-delay: 0 !important;
  }
}

/* --- HERO SECTION STYLES --- */
#hero {
  /* Image de fond avec overlay et flou */
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('/assets/img/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 100vh; /* Prend toute la hauteur de la fenêtre */
  display: flex;
  flex-direction: column; /* Empile le contenu et les widgets */
  align-items: center;
  justify-content: center; /* Centre le contenu principal verticalement */
  position: relative;
  z-index: 1;
  padding: 80px 0 20px 0; /* Padding pour éviter que le contenu ne touche les bords */
}

#hero .container {
  background: transparent !important;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 2; /* Au-dessus de l'image de fond */
  width: 100%; /* Prend toute la largeur disponible */
  max-width: 960px; /* Limite la largeur du contenu principal */
  margin: 0 auto; /* Centre horizontalement */
  padding: 20px;
  flex-grow: 1; /* Permet au conteneur de prendre l'espace disponible */
}

#hero h1 {
  font-family: var(--default-font);
  font-weight: 700;
  font-size: 52px; /* Taille plus grande pour un impact visuel */
  margin-bottom: 20px;
  color: var(--contrast-color); /* Blanc */
  line-height: 1.2;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7); /* Ombre pour la lisibilité */
}

#hero p {
  font-family: var(--default-font);
  font-size: 22px; /* Taille plus grande */
  margin-bottom: 40px; /* Plus d'espace sous le paragraphe */
  color: #e0e0e0; /* Gris clair */
  max-width: 700px; /* Limite la largeur du texte */
  line-height: 1.6;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
}

#hero .btn-get-quote {
  background-color: var(--secondary-accent-color); /* Vert pour le bouton */
  border: none;
  padding: 15px 40px; /* Plus grand bouton */
  font-family: var(--default-font);
  font-weight: 600;
  font-size: 18px;
  color: var(--contrast-color); /* Texte blanc */
  border-radius: 50px;
  transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

#hero .btn-get-quote:hover {
  background-color: color-mix(in srgb, var(--secondary-accent-color), black 15%);
  transform: translateY(-5px); /* Effet de soulèvement plus prononcé */
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

#hero .widgets-container {
  width: 100%;
  max-width: 1200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 0 10px;
  box-sizing: border-box;
  z-index: 3; /* Au-dessus du contenu principal */
  margin-top: auto; /* Pousse les widgets vers le bas de la section hero */
}

#hero .clocks-container,
#hero .exchange-rates-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  width: 100%;
}

#hero .clock-card,
#hero .exchange-card,
#hero .weather-card {
  width: 200px;
  padding: 15px;
  background-color: rgba(255, 255, 255, 0.15); /* Fond semi-transparent */
  backdrop-filter: blur(8px); /* Effet de flou sur l'arrière-plan */
  border: 1px solid rgba(255, 255, 255, 0.2); /* Bordure légère */
  border-left: 5px solid var(--accent-color); /* Bordure gauche rouge */
  color: var(--contrast-color); /* Texte blanc */
  border-radius: 15px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#hero .clock-card:hover, #hero .exchange-card:hover, #hero .weather-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.5);
}

#hero .clock-card h4, #hero .exchange-card h4, #hero .weather-card h4 {
  font-family: var(--default-font);
  font-size: 16px;
  margin-bottom: 10px;
  color: var(--contrast-color);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

#hero .clock-card h4 i, #hero .exchange-card h4 i, #hero .weather-card h4 i {
  color: var(--secondary-accent-color); /* Icônes vertes */
  font-size: 18px;
  transition: transform 0.3s ease;
}

#hero .clock-card:hover h4 i, #hero .exchange-card:hover h4 i, #hero .weather-card:hover h4 i {
  transform: scale(1.2);
}

#hero .clock-card p, #hero .exchange-card p, #hero .weather-card p {
  font-family: 'Inter', sans-serif;
  font-size: 20px; /* Taille plus grande pour les valeurs */
  font-weight: 500;
  margin: 0;
  color: #d1d1d1;
}

#hero .weather-card img {
  width: 40px;
  height: 40px;
  margin-bottom: 5px;
}

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

/* --- GENERAL CARD STYLES (Values, About, Services, Blog) --- */
#values .values-grid,
#about .about-grid,
#services .services-grid,
#blog .blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* 3 colonnes sur desktop, ajustement */
  gap: 30px; /* Espacement entre les cartes */
  padding: 0 15px;
  justify-items: center;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto; /* Centre la grille */
}

#values .value-card,
#about .about-card,
#services .service-card,
#blog .blog-card {
  background-color: var(--surface-color); /* Fond blanc pour les cartes */
  border-radius: 15px; /* Coins plus arrondis */
  padding: 30px;
  text-align: center;
  transition: all 0.4s ease-in-out;
  border: 1px solid rgba(0, 0, 0, 0.1); /* Bordure légère */
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1); /* Ombre plus prononcée */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start; /* Aligne le contenu en haut */
  height: 100%; /* Assure une hauteur égale dans la grille */
}

#values .value-card:hover,
#about .about-card:hover,
#services .service-card:hover,
#blog .blog-card:hover {
  transform: translateY(-15px) scale(1.02); /* Soulèvement et léger agrandissement */
  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.25); /* Ombre plus intense */
  border-color: var(--secondary-accent-color); /* Bordure verte au survol */
}

#values .value-card i,
#about .about-card i,
#services .service-card i,
#blog .blog-card i {
  font-size: 56px; /* Icônes plus grandes */
  color: var(--secondary-accent-color); /* Vert pour les icônes */
  margin-bottom: 25px;
  transition: transform 0.3s ease;
}

#values .value-card:hover i,
#about .about-card:hover i,
#services .service-card:hover i,
#blog .blog-card:hover i {
  transform: scale(1.15);
}

#values .value-card h4,
#about .about-card h4,
#services .service-card h4,
#blog .blog-card h4 {
  font-family: var(--default-font);
  font-weight: 700;
  font-size: 26px; /* Taille de police augmentée */
  color: var(--heading-color);
  margin-bottom: 15px;
}

#values .value-card p,
#about .about-card p,
#services .service-card p,
#blog .blog-card p {
  font-family: var(--default-font);
  font-size: 16px; /* Taille de police légèrement augmentée */
  color: var(--default-color);
  line-height: 1.7;
}

/* Specific Service Card Backgrounds (if desired, based on previous code) */
#services .service-card:nth-child(1) { background-color: rgba(30, 60, 90, 0.03); }
#services .service-card:nth-child(2) { background-color: rgba(40, 80, 110, 0.03); }
#services .service-card:nth-child(3) { background-color: rgba(50, 100, 130, 0.03); }
#services .service-card:nth-child(4) { background-color: rgba(60, 120, 150, 0.03); }
#services .service-card:nth-child(5) { background-color: rgba(70, 140, 170, 0.03); }
#services .service-card:nth-child(6) { background-color: rgba(80, 160, 190, 0.03); }

/* --- BUTTONS & LINKS --- */
#about .download-btn,
#blog .btn-see-all {
  background-color: var(--accent-color); /* Rouge */
  color: var(--contrast-color); /* Blanc */
  padding: 12px 30px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 10px rgba(255, 0, 0, 0.2);
}

#about .download-btn:hover,
#blog .btn-see-all:hover {
  background-color: color-mix(in srgb, var(--accent-color), black 15%);
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(255, 0, 0, 0.4);
}

#blog .blog-card .read-more {
  color: var(--accent-color);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s ease;
  margin-top: 15px; /* Espace au-dessus du lien */
  display: inline-block;
}

#blog .blog-card .read-more:hover {
  color: var(--secondary-accent-color);
}

/* --- CONTACT SECTION STYLES --- */
#contact .contact-grid {
  display: flex;
  flex-wrap: wrap; /* Permet aux éléments de passer à la ligne */
  justify-content: center; /* Centre les cartes horizontalement */
  gap: 40px; /* Espacement généreux entre les éléments */
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

#contact .contact-form-card,
#contact .contact-info-card {
  flex: 1; /* Permet aux cartes de prendre l'espace disponible */
  min-width: 300px; /* Largeur minimale pour éviter l'écrasement */
  max-width: 500px; /* Largeur maximale pour le formulaire/info */
  background-color: var(--surface-color);
  border-radius: 15px;
  padding: 40px; /* Plus de padding */
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.4s ease-in-out;
  border: 1px solid rgba(0, 0, 0, 0.1);
  text-align: left; /* Texte aligné à gauche dans les cartes de contact */
}

#contact .contact-form-card:hover,
#contact .contact-info-card:hover {
  transform: translateY(-10px) scale(1.01);
  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.25);
  border-color: var(--secondary-accent-color);
}

#contact .contact-form-card h4,
#contact .contact-info-card h4 {
  color: var(--heading-color);
  font-size: 28px; /* Titre plus grand */
  margin-bottom: 25px;
  text-align: center; /* Titre centré */
}

#contact .contact-form-card .form-group {
  position: relative;
  margin-bottom: 20px;
}

#contact .contact-form-card .form-group i {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--secondary-accent-color);
  font-size: 18px;
}

#contact .contact-form-card textarea + i {
  top: 15px;
  transform: translateY(0);
}

#contact .contact-form-card input,
#contact .contact-form-card textarea {
  background-color: var(--background-color);
  border: 1px solid #ced4da;
  color: var(--default-color);
  border-radius: 8px;
  padding: 12px 15px 12px 45px; /* Padding à gauche pour l'icône */
  font-size: 16px;
  width: 100%;
  box-sizing: border-box;
  transition: border-color 0.3s, box-shadow 0.3s;
}

#contact .contact-form-card textarea {
  min-height: 120px;
  resize: vertical;
}

#contact .contact-form-card input:focus,
#contact .contact-form-card textarea:focus {
  border-color: var(--secondary-accent-color);
  box-shadow: 0 0 0 0.25rem rgba(51, 204, 51, 0.25);
  outline: none;
}

#contact .contact-form-card button[type="submit"] {
  background-color: var(--accent-color);
  color: var(--contrast-color);
  padding: 15px 30px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 18px;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.3s, box-shadow 0.3s;
  width: auto; /* Ajuste la largeur au contenu */
  margin-top: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 10px rgba(255, 0, 0, 0.2);
}

#contact .contact-form-card button[type="submit"]:hover {
  background-color: color-mix(in srgb, var(--accent-color), black 15%);
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(255, 0, 0, 0.4);
}

#contact .contact-info-card p {
  color: var(--default-color);
  margin-bottom: 15px;
  font-size: 16px;
}

#contact .contact-info-card strong {
    color: var(--heading-color); /* Couleur plus foncée pour les titres d'info */
}

#contact .contact-info-card a {
  color: var(--secondary-accent-color);
  font-weight: 600;
  text-decoration: none; /* Enlève le soulignement par défaut */
}

#contact .contact-info-card a:hover {
  color: var(--accent-color);
  text-decoration: underline; /* Ajoute le soulignement au survol */
}

#contact .map-container {
  margin: 40px auto 0; /* Centre la carte */
  width: 100%;
  max-width: 1200px; /* Prend toute la largeur disponible */
  height: 450px; /* Hauteur fixe pour la carte */
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

#contact .map-container iframe {
    width: 100%;
    height: 100%;
    border: 0; /* Supprime la bordure par défaut de l'iframe */
}

/* --- FOOTER STYLES --- */
.footer {
  background: linear-gradient(135deg, #1A1A3A, #2A2A5A);
  color: #d1d1d1;
  padding: 40px 0;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(to right, var(--accent-color), var(--secondary-accent-color));
}

.footer .footer-top {
  display: grid; /* Utilisation de Grid pour une meilleure disposition */
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Colonnes responsives */
  gap: 30px; /* Espacement entre les colonnes */
  width: 100%;
  max-width: 1200px;
  margin: 0 auto 20px auto; /* Centrer et espacer du copyright */
  padding: 0 15px;
}

.footer .footer-about {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer .footer-about .logo {
  margin-bottom: 15px;
}

.footer .logo img {
  max-height: 50px; /* Taille du logo ajustée */
  margin-right: 10px;
}

.footer .sitename {
  font-family: var(--default-font);
  font-size: 26px; /* Taille du texte du sitename */
  color: var(--contrast-color);
  font-weight: 700;
}

.footer .footer-about p {
  font-size: 15px;
  line-height: 1.6;
  color: #a0a0a0;
  max-width: 400px;
  margin: 0 auto;
}

.footer .social-links {
  margin-top: 20px;
  display: flex;
  gap: 15px; /* Espacement entre les icônes */
}

.footer .social-links a {
  color: var(--contrast-color);
  font-size: 22px; /* Taille des icônes sociales */
  transition: color 0.3s ease, transform 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
}

.footer .social-links a:hover {
  color: var(--accent-color) !important;
  transform: translateY(-3px);
  border-color: var(--accent-color);
}

.footer .footer-links,
.footer .footer-contact {
  text-align: left;
}

.footer .footer-links h4,
.footer .footer-contact h4 {
  color: var(--contrast-color);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 8px;
}

.footer .footer-links h4::after,
.footer .footer-contact h4::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 2px;
  background-color: var(--secondary-accent-color);
}

.footer .footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer .footer-links ul li {
  margin-bottom: 10px;
}

.footer .footer-links ul li a {
  color: #a0a0a0;
  font-size: 15px;
  transition: color 0.3s ease;
}

.footer .footer-links ul li a:hover {
  color: var(--accent-color);
  padding-left: 5px; /* Petit effet de glissement */
}

.footer .footer-contact p {
  font-size: 15px;
  line-height: 1.8;
  color: #a0a0a0;
}

.footer .footer-contact strong {
  color: var(--heading-color);
}

.footer .footer-contact span {
  color: var(--secondary-accent-color);
}

.footer .copyright {
  width: 100%;
  max-width: 1200px;
  margin-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  font-size: 14px;
  color: #a0a0a0;
}

.footer .copyright p {
  margin: 5px 0;
  font-family: var(--default-font);
}

.footer .copyright a {
  color: var(--secondary-accent-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer .copyright a:hover {
  color: var(--accent-color) !important;
}

/* Custom Alert Popup */
.custom-alert-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    font-family: var(--default-font) !important; /* Assure Montserrat pour l'alerte */
}

.custom-alert-overlay.show {
    opacity: 1;
    visibility: visible;
}

.custom-alert-content {
    background-color: var(--surface-color);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    text-align: center;
    max-width: 400px;
    width: 90%;
    transform: scale(0.9);
    animation: alertPopIn 0.3s forwards ease-out;
}

@keyframes alertPopIn {
    from {
        transform: scale(0.7);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.custom-alert-content h3 {
    color: var(--heading-color);
    margin-bottom: 15px;
    font-size: 1.8rem;
    font-weight: 700;
}

.custom-alert-content p {
    color: var(--default-color);
    margin-bottom: 25px;
    line-height: 1.6;
}

.custom-alert-content button {
    background-color: var(--accent-color);
    color: var(--contrast-color);
    border: none;
    padding: 10px 25px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.custom-alert-content button:hover {
    background-color: #e60000; /* Darker red */
    transform: translateY(-1px);
}

/* --- Styles spécifiques à quotation.html --- */

/* Section Hero */
#quote-hero {
    width: 100%;
    height: 60vh; /* Moins haut que le hero de l'accueil */
    background: linear-gradient(rgba(26, 26, 58, 0.7), rgba(26, 26, 58, 0.9)), url('/assets/img/hero-bg.jpg') center center;
    background-size: cover;
    position: relative;
    color: var(--contrast-color);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-top: 80px; /* Espace sous la navbar */
}

#quote-hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--contrast-color);
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.6);
}

#quote-hero p {
    font-size: 1.3rem;
    max-width: 800px;
    margin: 0 auto 30px auto;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
}

#quote-hero .btn-get-quote {
    background-color: var(--secondary-accent-color);
    border: none;
    padding: 15px 40px;
    font-family: var(--default-font);
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--contrast-color);
    border-radius: 50px;
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

#quote-hero .btn-get-quote:hover {
    background-color: color-mix(in srgb, var(--secondary-accent-color), black 15%);
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

/* Form Container */
.quote-form-container {
    max-width: 900px;
    margin: 50px auto;
    padding: 30px;
    background-color: var(--surface-color);
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    animation: fadeIn 0.8s ease-out;
}

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

.quote-form h3 { /* Sub-titles for each step */
    text-align: center;
    color: var(--accent-color); /* Rouge pour les titres d'étape */
    margin-bottom: 30px;
    font-size: 2rem;
    font-weight: 700;
    position: relative;
    padding-bottom: 10px;
}

.quote-form h3::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    width: 60px;
    height: 3px;
    background-color: var(--secondary-accent-color); /* Ligne verte sous le titre */
    border-radius: 2px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--default-color);
}

.form-group .form-control,
.form-group .form-select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1rem;
    color: var(--default-color);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group .form-control:focus,
.form-group .form-select:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(255, 0, 0, 0.2);
    outline: none;
}
/* Validation styles for Bootstrap classes */
.form-control.is-invalid {
    border-color: #dc3545;
    padding-right: calc(1.5em + 0.75rem);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.radio-group, .checkbox-group {
    margin-top: 15px;
    margin-bottom: 20px;
    padding: 15px;
    border: 1px solid #eee;
    border-radius: 8px;
    background-color: #f9f9f9;
}

.radio-group p, .checkbox-group p {
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--heading-color);
    font-size: 1.1rem;
}

.radio-group label, .checkbox-group label {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    font-weight: 500;
    cursor: pointer;
    color: var(--default-color);
}

.radio-group input[type="radio"],
.checkbox-group input[type="checkbox"] {
    margin-right: 10px;
    transform: scale(1.1); /* Slightly larger checkboxes/radios */
    accent-color: var(--secondary-accent-color); /* Couleur verte pour les radios/checkboxes */
}

.btn-green {
    background-color: var(--secondary-accent-color);
    color: var(--contrast-color);
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    display: inline-flex; /* Pour aligner icône et texte */
    align-items: center;
    gap: 8px;
}

.btn-green:hover {
    background-color: #28a745; /* A slightly darker green */
    transform: translateY(-2px);
    color: var(--contrast-color);
    box-shadow: 0 4px 10px rgba(51, 204, 51, 0.4);
}

.btn-secondary {
    background-color: #6c757d;
    color: var(--contrast-color);
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    display: inline-flex; /* Pour aligner icône et texte */
    align-items: center;
    gap: 8px;
}

.btn-secondary:hover {
    background-color: #5a6268;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(108, 117, 125, 0.4);
}

.summary-content {
    background-color: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    font-size: 1rem;
    line-height: 1.6;
}

.summary-content p {
    margin-bottom: 8px;
}

.success-message, .error-message {
    text-align: center;
    padding: 40px;
    border-radius: 12px;
    margin-top: 50px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.success-message {
    background-color: #e6ffe6;
    color: #28a745;
    border: 1px solid #28a745;
}

.error-message {
    background-color: #ffe6e6;
    color: #dc3545;
    border: 1px solid #dc3545;
}

.success-message h2, .error-message h2 {
    margin-bottom: 20px;
    font-size: 2rem;
    font-weight: 700;
}

.success-message p, .error-message p {
    font-size: 1.1rem;
    margin-bottom: 30px;
}

/* Step Indicator Styles (Tunnel Design) */
.step-indicator {
    display: flex;
    justify-content: space-between; /* Distribue les éléments uniformément */
    align-items: center;
    margin-bottom: 40px;
    position: relative;
    padding: 0 20px; /* Espace sur les côtés pour le "tunnel" */
}

/* Base line for the tunnel */
.step-indicator::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 20px; /* Aligné avec le padding */
    right: 20px; /* Aligné avec le padding */
    height: 4px; /* Épaisseur de la ligne de base */
    background-color: #e0e0e0; /* Couleur de la ligne non-progressée */
    transform: translateY(-50%);
    z-index: 1;
}

/* Progress line with gradient */
.step-indicator .progress-line {
    position: absolute;
    top: 50%;
    left: 20px; /* Aligné avec le padding */
    height: 4px;
    background: linear-gradient(to right, var(--secondary-accent-color), #28a745); /* Dégradé vert */
    transform: translateY(-50%);
    z-index: 2;
    transition: width 0.6s ease-in-out;
    width: 0%; /* Initial width, controlled by JS */
}

.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 3; /* Au-dessus de la ligne de progression */
    cursor: pointer;
    transition: transform 0.3s ease;
    flex-shrink: 0;
    padding: 0 5px; /* Petit padding pour éviter le chevauchement des titres */
}

.step-item:hover {
    transform: translateY(-3px);
}

.step-circle {
    width: 20px; /* Plus petit */
    height: 20px; /* Plus petit */
    border-radius: 50%;
    background-color: var(--accent-color); /* Rouge sans contour */
    color: var(--contrast-color); /* Blanc pour le chiffre/checkmark */
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    font-size: 0.8rem; /* Plus petite police pour le chiffre */
    border: none; /* Pas de bordure */
    transition: background-color 0.3s ease, transform 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); /* Ombre légère */
}

.step-item.active .step-circle {
    background-color: var(--accent-color); /* Reste rouge pour l'étape active */
    transform: scale(1.2); /* Légèrement plus grand pour l'étape active */
}

/* Styles pour les étapes complétées */
.step-item.completed .step-circle {
    background-color: var(--secondary-accent-color); /* Vert pour les étapes complétées */
    font-size: 1rem; /* Taille du checkmark */
    transform: scale(1); /* Revert size for completed */
    position: relative;
}
.step-item.completed .step-circle span { /* Hide original number */
    display: none;
}
.step-item.completed .step-circle::after {
    content: '\2713'; /* Checkmark character */
    position: absolute;
    color: white;
    font-size: 0.8rem;
    line-height: 1; /* Adjust line height for vertical centering */
}


.step-title {
    margin-top: 10px;
    font-size: 0.8rem; /* Plus petit pour la discrétion */
    font-weight: 600;
    color: #555;
    text-align: center;
    transition: color 0.3s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 80px; /* Limite la largeur du titre d'étape */
}

.step-item.active .step-title {
    color: var(--accent-color);
}

.step-item.completed .step-title {
    color: var(--secondary-accent-color);
}


/* Styles for the Swiper Carousel on quotation.html */
#image-carousel-section {
    background-color: var(--background-color);
    padding: 60px 0;
}

#image-carousel-section .swiper {
    width: 100%;
    height: 400px; /* Hauteur fixe pour le carrousel */
    border-radius: 12px; /* Coins arrondis pour le carrousel */
    overflow: hidden; /* Assure que les coins arrondis sont respectés */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15); /* Ombre subtile */
}

#image-carousel-section .swiper-slide {
    text-align: center;
    font-size: 18px;
    background: var(--surface-color);
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative; /* Pour positionner la légende */
}

#image-carousel-section .swiper-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Couvre toute la slide */
    filter: brightness(0.7); /* Assombrit légèrement l'image pour la lisibilité du texte */
}

.swiper-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.6); /* Fond semi-transparent */
    color: white;
    padding: 20px;
    text-align: left;
    transition: background-color 0.3s ease;
}

.swiper-caption h3 {
    color: var(--contrast-color); /* Blanc pour le titre */
    font-size: 1.8rem;
    margin-bottom: 5px;
    font-weight: 700;
}

.swiper-caption p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    margin-bottom: 0;
}

/* Navigation Arrows */
#image-carousel-section .swiper-button-next,
#image-carousel-section .swiper-button-prev {
    color: var(--contrast-color); /* Couleur des flèches */
    background-color: rgba(0, 0, 0, 0.4); /* Fond semi-transparent */
    border-radius: 50%;
    width: 44px;
    height: 44px;
    transition: background-color 0.3s ease;
}

#image-carousel-section .swiper-button-next:hover,
#image-carousel-section .swiper-button-prev:hover {
    background-color: var(--accent-color); /* Couleur d'accent au survol */
}

/* Pagination Dots */
#image-carousel-section .swiper-pagination-bullet {
    background-color: rgba(255, 255, 255, 0.6); /* Couleur des points inactifs */
    opacity: 1;
}

#image-carousel-section .swiper-pagination-bullet-active {
    background-color: var(--accent-color); /* Couleur d'accent pour le point actif */
}

/* --- MEDIA QUERIES FOR RESPONSIVENESS --- */

/* Mobile (jusqu'à 991px pour inclure les tablettes) */
@media (max-width: 991px) {
  #hero h1 {
    font-size: 36px; /* Réduire la taille du titre */
  }

  #hero p {
    font-size: 18px; /* Réduire la taille du texte */
    margin-bottom: 30px;
  }

  #hero .btn-get-quote {
    padding: 12px 30px;
    font-size: 16px;
  }

  #hero .clocks-container,
  #hero .exchange-rates-container {
    flex-direction: row; /* Garder en ligne mais avec wrap */
    gap: 10px; /* Réduire l'espacement */
  }

  #hero .clock-card,
  #hero .exchange-card,
  #hero .weather-card {
    width: calc(50% - 10px); /* Deux cartes par ligne */
    max-width: 180px;
    padding: 10px;
    font-size: 12px;
  }
  
  #hero .clock-card h4, #hero .exchange-card h4, #hero .weather-card h4 {
    font-size: 14px;
    margin-bottom: 5px;
  }
  #hero .clock-card p, #hero .exchange-card p, #hero .weather-card p {
    font-size: 16px;
  }
  #hero .weather-card img {
    width: 30px;
    height: 30px;
  }

  .section {
    padding: 40px 0;
  }

  .section-title h2 {
    font-size: 28px;
  }

  .section-title p {
    font-size: 15px;
  }

  #values .values-grid,
  #about .about-grid,
  #services .services-grid,
  #blog .blog-grid {
    grid-template-columns: 1fr; /* Une colonne sur mobile */
    gap: 25px;
  }

  #values .value-card,
  #about .about-card,
  #services .service-card,
  #blog .blog-card {
    width: 90%; /* Prend plus de largeur */
    max-width: 350px; /* Limite la largeur */
    margin: 0 auto; /* Centre */
  }

  #contact .contact-grid {
    flex-direction: column;
    align-items: center;
    gap: 30px;
  }

  #contact .contact-form-card,
  #contact .contact-info-card {
    width: 90%;
    max-width: 400px;
    padding: 30px;
  }

  #contact .map-container {
    height: 300px; /* Réduire la hauteur de la carte */
  }

  .footer .footer-top {
    grid-template-columns: 1fr; /* Une colonne pour le footer sur mobile */
    text-align: center;
  }

  .footer .footer-about,
  .footer .footer-links,
  .footer .footer-contact {
    align-items: center;
  }

  .footer .footer-links h4::after,
  .footer .footer-contact h4::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .footer .footer-links ul li a:hover {
    padding-left: 0; /* Désactiver l'effet de glissement sur mobile */
  }

    /* Styles for the Swiper Carousel on quotation.html */
    #image-carousel-section .swiper {
        height: 300px; /* Réduire la hauteur sur mobile */
    }
    .swiper-caption h3 {
        font-size: 1.4rem;
    }
    .swiper-caption p {
        font-size: 0.9rem;
    }
    #image-carousel-section .swiper-button-next,
    #image-carousel-section .swiper-button-prev {
        width: 30px;
        height: 30px;
        font-size: 1.2rem;
    }

    /* Quotation form responsive */
    #quote-hero h1 {
        font-size: 2.5rem;
    }
    #quote-hero p {
        font-size: 1rem;
    }
    .quote-form-container {
        margin: 30px 15px;
        padding: 20px;
    }
    .quote-form h3 {
        font-size: 1.6rem;
    }
    .step-indicator {
        gap: 10px;
    }
    .step-indicator::before {
        width: calc(100% - 60px); /* Ajustement pour mobile */
    }
    .step-circle {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    .step-item.completed .step-circle {
        font-size: 1.2rem;
    }
    .step-title {
        font-size: 0.8rem;
        max-width: 80px;
    }
    .form-navigation {
        flex-direction: column;
        gap: 15px;
    }
    .btn-green, .btn-secondary {
        width: 100%;
        padding: 10px 20px;
        font-size: 1rem;
    }
}

/* Très petits écrans (jusqu'à 480px) */
@media (max-width: 480px) {
  #hero h1 {
    font-size: 30px;
  }

  #hero p {
    font-size: 16px;
    margin-bottom: 25px;
  }

  #hero .btn-get-quote {
    padding: 10px 25px;
    font-size: 15px;
  }

  #hero .clocks-container,
  #hero .exchange-rates-container {
    gap: 8px;
  }

  #hero .clock-card,
  #hero .exchange-card,
  #hero .weather-card {
    width: calc(33.33% - 8px); /* Trois cartes par ligne */
    max-width: 120px;
    padding: 8px;
    font-size: 10px;
  }
  #hero .clock-card h4, #hero .exchange-card h4, #hero .weather-card h4 {
    font-size: 12px;
    gap: 5px;
  }
  #hero .clock-card h4 i, #hero .exchange-card h4 i, #hero .weather-card h4 i {
    font-size: 14px;
  }
  #hero .clock-card p, #hero .exchange-card p, #hero .weather-card p {
    font-size: 14px;
  }
  #hero .weather-card img {
    width: 25px;
    height: 25px;
  }

  .section-title h2 {
    font-size: 24px;
  }

  .section-title p {
    font-size: 14px;
  }

  #values .value-card,
  #about .about-card,
  #services .service-card,
  #blog .blog-card,
  #contact .contact-form-card,
  #contact .contact-info-card {
    padding: 25px;
  }

  #contact .map-container {
    height: 250px;
  }

    #image-carousel-section .swiper {
        height: 200px; /* Réduire encore la hauteur sur très petits écrans */
    }
    .swiper-caption {
        padding: 10px;
    }
    .swiper-caption h3 {
        font-size: 1.2rem;
    }
    .swiper-caption p {
        font-size: 0.8rem;
    }

    /* Quotation form responsive */
    #quote-hero h1 {
        font-size: 2rem;
    }
    #quote-hero p {
        font-size: 0.9rem;
    }
    .quote-form-container {
        padding: 15px;
    }
    .quote-form h3 {
        font-size: 1.4rem;
    }
    .step-indicator {
        gap: 5px;
    }
    .step-indicator::before {
        width: calc(100% - 40px);
    }
    .step-circle {
        width: 30px;
        height: 30px;
        font-size: 0.9rem;
    }
    .step-item.completed .step-circle {
        font-size: 1rem;
    }
    .step-title {
        font-size: 0.7rem;
        max-width: 60px;
    }
    .btn-green, .btn-secondary {
        padding: 8px 15px;
        font-size: 0.9rem;
    }
}
