/* Base Styles */
:root {
  --primary-color: #556c9e;
  --primary-dark: #07235e;
  --primary-light: #2c5da0;
  --secondary-color: #2c3e50;
  --accent-color: #2c5da0;
  --accent-dark: #d35400;
  --success-color: #2ecc71;
  --warning-color: #f39c12;
  --error-color: #e74c3c;
  --text-light: #ecf0f1;
  --text-dark: #2c3e50;
  --text-gray: #7f8c8d;
  --bg-light: #f8f9fa;
  --bg-dark: #2c3e50;
  --bg-with: #fff;
  --spacing-xs: 8px;
  --spacing-sm: 16px;
  --spacing-md: 25px;
  --spacing-lg: 32px;
  --spacing-xl: 48px;
  --spacing-xxl: 64px;
  --border-radius: 4px;
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Montserrat", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--text-dark);
  background-color: var(--bg-with);
}

.margin-top{
  margin-top: 24px;
}
.container {
  width: 100%;
  /* max-width: 1200px; */
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

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

.btn {
  display: inline-block;
  padding: var(--spacing-xs) var(--spacing-md);
  border-radius: var(--border-radius);
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  font-size: 14px;
}

.btn-primary {
  background-color: var(--primary-color);
  color: var(--text-light);
}

.btn-primary:hover {
  background-color: var(--accent-dark);
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: transparent;
  color: var(--text-light);
  border: 1px solid var(--text-light);
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.btn-large {
  padding: var(--spacing-sm) var(--spacing-lg);
  font-size: 16px;
}

/* Header Styles */
#header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  padding: var(--spacing-sm) 0;
  z-index: 1000;
  transition: var(--transition);
}

#header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo a {
  display: flex;
  align-items: center;
  color: var(--text-light);
}

.logo img,
#logo-img ,#loader img {
  width: 200px;
    height: 40px;
    object-fit: contain;
    margin-right: var(--spacing-xs);
}

.logo span {
  font-size: 24px;
  font-weight: 400;
}

.logo strong {
  font-weight: 700;
}

nav {
  display: flex;
}

.nav-menu {
  display: flex;
  align-items: center;
}

.nav-menu li {
  margin-left: var(--spacing-md);
}

.nav-menu a {
  color: var(--text-light);
  font-weight: 600;
  padding: var(--spacing-xs);
  transition: var(--transition);
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--accent-color);
}

.contact-buttons {
  display: flex;
  align-items: center;
}

.phone-number {
  margin-right: var(--spacing-md);
  color: var(--text-light);
  font-weight: 600;
}

.contact-buttons .btn {
  margin-left: var(--spacing-xs);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  cursor: pointer;
}

.menu-toggle span {
  height: 3px;
  width: 100%;
  background-color: var(--text-light);
  border-radius: 10px;
  transition: var(--transition);
}

/* home Section */
#home {
  height: 100vh;
  min-height: 600px;
  background-image: url("../img/vehicle-move (1).jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  display: flex;
  align-items: center;
}

#home .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.2);
}

.home-content {
  position: relative;
  z-index: 1;
  color: var(--text-light);
  max-width: 700px;
}

.home-content h1 {
  font-size: 48px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--spacing-md);
}

.home-content p {
  font-size: 18px;
  margin-bottom: var(--spacing-lg);
  max-width: 500px;
}

/* Section Styles */
section {
  padding: var(--spacing-xxl) 0;
}

/* pour les engagement */

/* Engagement Section Styles */
.engagement-section {
  padding: var(--spacing-xxl) 0;
  background-color: #fff;
}

.engagement-header {
  margin: var(--spacing-xl) 0;
}

.section-tag {
  display: inline-block;
  color: var(--primary-color);
  font-weight: 600;
  font-size: 14px;
  margin-bottom: var(--spacing-sm);
  position: relative;
}

.section-tag::before {
  content: "";
  display: inline-block;
  width: 24px;
  height: 2px;
  background-color: var(--primary-color);
  margin-right: var(--spacing-xs);
  vertical-align: middle;
}
.t-title {
  color: var(--primary-color);
  font-weight: 600;
  font-size: 14px;
  margin-bottom: var(--spacing-sm);
  text-align: center;
  position: relative;
  text-align: center;
}

.t-title::before,
.t-title::after {
  content: "";
  display: inline-block;
  width: 24px;
  height: 2px;
  background-color: var(--primary-color);
  vertical-align: middle;
}

.t-title::before {
  margin-right: var(--spacing-xs);
}

.t-title::after {
  margin-left: var(--spacing-xs);
}

.engagement-header h2 {
  font-size: 42px;
  font-weight: 700;
  line-height: 1.2;
  margin: 0;
}

.engagement-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-xl);
  margin-bottom: var(--spacing-xl);
  height: 100%;
}

.engagement-text {
  font-size: 18px;
  line-height: 1.6;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.engagement-text p {
  margin-bottom: var(--spacing-md);
}

.engagement-image {
  position: relative;
}

.engagement-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
}

.experience-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  background-color: #fff;
  padding: var(--spacing-sm);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
  text-align: center;
}

.badge-number {
  display: block;
  font-size: 32px;
  font-weight: 700;
  color: var(--primary-color);
  line-height: 1;
}

.badge-text {
  display: block;
  font-size: 12px;
  font-weight: 600;
  margin-top: 4px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-lg);
  margin-top: auto;
}

.feature-card {
  background-color: #670c14;
  color: #fff;
  padding: var(--spacing-lg);
  border-radius: var(--border-radius);
  transition: transform 0.3s ease;
}

/* .features-grid {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 1rem;
  flex-grow: 1;
  margin-top: auto;
}

.feature-card {
  background-color: #8b0000;
  color: #fff;
  max-width: 290px;
  padding: var(--spacing-lg);
  border-radius: var(--border-radius);
  transition: transform 0.3s ease;
} */

.feature-card:hover {
  transform: translateY(-5px);
}

.feature-icon {
  width: 48px;
  height: 48px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--spacing-md);
}

.feature-icon svg {
  width: 24px;
  height: 24px;
  stroke: #fff;
}

.feature-card h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: var(--spacing-sm);
}

.feature-card p {
  font-size: 16px;
  line-height: 1.5;
  opacity: 0.9;
}

/* ---------------------- */
/* partenaires */
#partner{
  margin-bottom: var(--spacing-sm);
}

.parnter-card {
  position: relative;
  border-radius: 12px;
  text-align: center;
  width: 330px;
  height: 65px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}

/* ---------------------- */

/* pour les services */
.service-section{
  margin-top: var(--spacing-sm) 0;
}
 
.section-titlesx {
  text-align: center;
  color: #000;
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 15px;
}

.section-subtitlesx {
  text-align: center;
  font-weight: bold;
  color: var(--primary-color);
  font-size: 16px;
  margin-bottom: 30px;
}

.services-gridsx {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
  margin: auto;
}
.cardsx {
  position: relative;
  width: 100%;
  height: 300px;
  overflow: hidden;
  border-radius: 10px;
  cursor: pointer;
}

.cardsx img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  filter: brightness(90%);
  border-radius: 10px;
  transition: transform 0.4s ease;
}

.cardsx:hover img {
  transform: scale(1.05);
}

/* Overlay semi-transparent */
.cardsx::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(2, 48, 97, 0.8);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
  border-radius: 10px;
}

.cardsx:hover::before {
  opacity: 1;
}

.text-cont {
  position: absolute;
  bottom: 10px;
  left: 10px;
  z-index: 2;
  color: var(--bg-with);
  transition: all 0.3s ease;
}

.text-cont h3 {
  font-size: 1.2rem;
  text-transform: uppercase;
  margin: 0 0 5px;
}

.text_p {
  display: none;
  color: #fff;
  font-size: 0.9rem;
  margin-top: 5px;
  max-width: 90%;
}

.cardsx:hover .text_p {
  display: block;
}

/* ------------------- */

/* les equipes */

.about-section{
  margin-top: 70px;
}

.section-titlexc {
  text-align: center;
  margin-top: 50px;
}

.section-titlexc .subtitle {
  color: #1a3e7c;
  text-transform: uppercase;
  font-weight: bold;
  letter-spacing: 1px;
  font-size: 14px;
}

.section-titlexc h2 {
  font-size: 26px;
  font-weight: bold;
  color: #000;
  margin-top: 5px;
}

.swiper {
  padding: 40px 0;
  width: 100%;
}

.swiper-slide {
  display: flex;
  justify-content: center;
}

.team-card {
  position: relative;
  border-radius: 12px;
  text-align: center;
  width: 380px;
  height: 350px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}

.team-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  margin-bottom: 15px;
  border-radius: 12px;
}

.loc {
  position: absolute;
  bottom: 10px;
  left: 0;
  background-color: #fff;
  padding: 10px;
  margin: 0 10px;
  border-radius: 10px;
}

.team-name {
  color: #0c1e57;
  font-weight: bold;
  text-transform: uppercase;
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.team-desc {
  font-size: 13px;
  color: #444;
  line-height: 1.4;
}

.swiper-button-next,
.swiper-button-prev {
  color: #0c1e57;
}

/* ---------------- */

/* pour fondamental */

.fondements {
  padding: 40px 20px;
}

.titless {
  font-size: 28px;
  font-weight: 800;
  color: #001860;
  margin-bottom: 20px;
  text-transform: uppercase;
}

.titless span {
  color: #001860;
}

.intro {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 30px;
  color: #3d4d6a;
}

.content {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.imagess img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}

.carddds {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.carddd {
  background-color: #0a1633;
  color: white;
  padding: 20px;
  border-radius: 12px;
}

.carddd .icon {
  font-size: 28px;
  margin-bottom: 10px;
}

.carddd h3 {
  font-size: 20px;
  margin-bottom: 10px;
}

.carddd ul {
  list-style: disc;
  padding-left: 20px;
  font-size: 15px;
  line-height: 1.6;
}

.bgs {
  padding: 20px;
  background-color: #f0f5ff;
}

/* ---------------------- */

/* a propos de nous  */
#apropos {
  background: var(--primary-dark);
  padding: 0;
  color: var(--bg-with);
}
#apropos .container {
  padding: 0;
}

#apropos .engagement-text {
  display: block;
  padding: 25px;
}
#apropos .engagement-image img {
  border-radius: 0;
}

/* pour la page de service */

.service-container {
  width: 100%;
  /* max-width: 1200px; */
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

/* Hero Section */
.service-hero {
  position: relative;
  padding: 120px 0 60px;
  background: url("../img/top-view-man-repairing-car.jpg") no-repeat center;
  background-size: cover;
  color: var(--text-light);
}

.service-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(5, 74, 164, 0.6);
}

.service-hero .service-container {
  position: relative;
  z-index: 1;
}

.service-breadcrumb {
  margin-bottom: var(--spacing-md);
}

.service-breadcrumb a {
  color: var(--text-light);
  text-decoration: none;
}

.service-hero h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: var(--spacing-md);
  line-height: 1.2;
}

.service-hero p {
  font-size: 1.2rem;
  max-width: 800px;
}

/* Main Content */
.service-expertise {
  padding: var(--spacing-xl) 0;
  background-color: #f0f5ff;
}

.service-content {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: var(--spacing-xl);
}

.service-info h2 {
  color: var(--primary-light);
  margin-bottom: var(--spacing-md);
  font-size: 1.5rem;
}

.service-info p {
  margin-bottom: var(--spacing-md);
}

.service-workshop-image {
  margin: var(--spacing-lg) 0;
}

.service-workshop-image img {
  width: 100%;
  height: 450px;
  object-fit: cover;
  border-radius: var(--border-radius);
}

.service-commitments {
  list-style: none;
  margin-top: var(--spacing-md);
}

.service-commitments li {
  padding: var(--spacing-xs) 0;
  padding-left: var(--spacing-md);
  position: relative;
}

.service-commitments li::before {
  content: "•";
  color: var(--primary-light);
  position: absolute;
  left: 0;
}
.paras {
  margin-top: 30px;
}

/* Form */
.service-form {
  /* background: white; */
  padding: var(--spacing-lg);
  border-radius: var(--border-radius);
  /* box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); */
  position: sticky;
  top: 100px;
}

.service-form h3 {
  margin-bottom: var(--spacing-lg);
  color: var(--primary-light);
}

.forms {
  background-color: white;
  padding: 15px;
  border-radius: 10px;
}

.forms h3 {
  background-color: #1a4b8c;
  padding: 10px;
  color: white;
  margin-bottom: 10px;
}

.form-group {
  margin-bottom: var(--spacing-md);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-md);
}

.form-group label {
  display: block;
  margin-bottom: var(--spacing-xs);
  font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: var(--spacing-sm);
  border: 1px solid #ddd;
  border-radius: var(--border-radius);
}

.upload-zone {
  border: 2px dashed #ddd;
  padding: var(--spacing-lg);
  text-align: center;
  border-radius: var(--border-radius);
}

.upload-btn {
  background: var(--bg-dark);
  color: white;
  border: none;
  padding: var(--spacing-xs) var(--spacing-md);
  border-radius: var(--border-radius);
  cursor: pointer;
  margin-top: var(--spacing-sm);
}

.service-btn {
  display: inline-block;
  padding: var(--spacing-sm) var(--spacing-lg);
  border-radius: var(--border-radius);
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: background-color 0.3s;
}

.service-btn-primary {
  background-color: var(--primary-light);
  color: var(--text-light);
}

.service-btn-primary:hover {
  background-color: #15407a;
}

/* pour la carte */

#map {
  width: 100%;
  height: 30vh;
  border-radius: 10px;
  margin-top: 50px;
}

/* Footer */
.service-footer {
  background-color: var(--bg-dark);
  color: var(--text-light);
  padding: var(--spacing-md) 0;
}

.service-footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.service-footer a {
  color: var(--text-light);
  text-decoration: none;
}

/* --------------------- */
/* Footer Styles */
footer {
  background-color: rgba(8, 15, 32, 0.95);
  color: var(--text-light);
  padding: var(--spacing-xl) 0;
  position: relative;
  overflow: hidden;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--spacing-xl);
}

.footer-left {
  padding-right: var(--spacing-xl);
}

.footer-heading {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--spacing-md);
  text-transform: uppercase;
}

.footer-subheading {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--spacing-lg);
  color: var(--accent-color);
  text-transform: uppercase;
}

.footer-description {
  color: #fff;
  margin-bottom: var(--spacing-lg);
  line-height: 1.6;
}

.footer-contact-link {
  color: #4a90e2;
  text-decoration: underline;
}

.footer-info-section {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: var(--spacing-xl);
}

.footer-info-heading {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: var(--spacing-md);
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
}

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

.footer-info-item {
  margin-bottom: var(--spacing-xs);
  color: #fff;
}

.footer-form {
  background-color: #fff;
  padding: var(--spacing-lg);
  border-radius: var(--border-radius);
}

.footer-form-heading {
  font-size: 24px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: var(--spacing-lg);
}

.footer-form-group {
  margin-bottom: var(--spacing-md);
}

.footer-form-input {
  width: 100%;
  padding: var(--spacing-sm);
  border: 1px solid #e5e5e5;
  border-radius: var(--border-radius);
  font-size: 16px;
}

.footer-form-input::placeholder {
  color: #a0a0a0;
}

.footer-form-textarea {
  min-height: 120px;
  resize: vertical;
}

.footer-form-button {
  background-color: #4a90e2;
  color: #fff;
  border: none;
  padding: var(--spacing-sm) var(--spacing-xl);
  border-radius: var(--border-radius);
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.footer-form-button:hover {
  background-color: #357abd;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: center;
  padding-top: var(--spacing-lg);
  margin-top: var(--spacing-xl);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.language-selector {
  display: inline-flex;
  align-items: center;
  padding: var(--spacing-xs) var(--spacing-sm);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--border-radius);
  color: #fff;
  font-size: 14px;
  cursor: pointer;
  transition: border-color 0.3s ease;
  background-color: transparent;
}

/* la modal */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.5);
}

/* Contenu de la modal */
.modal-content {
  position: relative;
  background-color: #fff;
  margin: 50px auto;
  /* padding: 20px; */
  border-radius: 12px;
  width: 100%;
  max-width: 600px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease-in-out;
}

/* Bouton de fermeture */
.close {
  position: absolute;
  top: -10px;
  right: -10px;
  color: #aaa;
  float: right;
  font-size: 2rem;
  font-weight: bold;
  cursor: pointer;
  background-color: red;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.close:hover {
  color: #000;
}

.language-selector option {
  color: #000;
}

/* ---------------------------------------- */
#loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #111;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  z-index: 9999;
}

#loader-logo {
  max-width: 150px;
  margin-bottom: 20px;
  opacity: 1;
}
.sk-chase {
  width: 40px;
  height: 40px;
  position: relative;
  animation: sk-chase 2.5s infinite linear both;
}

.sk-chase-dot {
  width: 100%;
  height: 100%;
  position: absolute;
  left: 0;
  top: 0;
  animation: sk-chase-dot 2s infinite ease-in-out both;
}

.sk-chase-dot:before {
  content: "";
  display: block;
  width: 25%;
  height: 25%;
  background-color: var(--bg-with);
  border-radius: 100%;
  animation: sk-chase-dot-before 2s infinite ease-in-out both;
}

.sk-chase-dot:nth-child(1) {
  animation-delay: -1.1s;
}
.sk-chase-dot:nth-child(2) {
  animation-delay: -1s;
}
.sk-chase-dot:nth-child(3) {
  animation-delay: -0.9s;
}
.sk-chase-dot:nth-child(4) {
  animation-delay: -0.8s;
}
.sk-chase-dot:nth-child(5) {
  animation-delay: -0.7s;
}
.sk-chase-dot:nth-child(6) {
  animation-delay: -0.6s;
}
.sk-chase-dot:nth-child(1):before {
  animation-delay: -1.1s;
}
.sk-chase-dot:nth-child(2):before {
  animation-delay: -1s;
}
.sk-chase-dot:nth-child(3):before {
  animation-delay: -0.9s;
}
.sk-chase-dot:nth-child(4):before {
  animation-delay: -0.8s;
}
.sk-chase-dot:nth-child(5):before {
  animation-delay: -0.7s;
}
.sk-chase-dot:nth-child(6):before {
  animation-delay: -0.6s;
}

@keyframes sk-chase {
  100% {
    transform: rotate(360deg);
  }
}

@keyframes sk-chase-dot {
  80%,
  100% {
    transform: rotate(360deg);
  }
}

@keyframes sk-chase-dot-before {
  50% {
    transform: scale(0.4);
  }
  100%,
  0% {
    transform: scale(1);
  }
}

.hd {
  display: none;
}
.leaflet-control-attribution {
  display: none !important;
}

.mb {
  margin-bottom: 10px;
}
