/* ============================= */
/*        Variables globales     */
/* ============================= */
:root {
  --primary-color: #003366;      /* bleu institutionnel */
  --secondary-color: #f0a500;    /* doré */
  --tertiary-color: #f2f2f2;     /* gris clair */
  --text-color: #333;
  --heading-color: #003366;
  --background-color: #ffffff;
  --card-background: #f9f9f9;
  --border-radius: 12px;
  --transition-speed: 0.3s;
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Open Sans', sans-serif;
}

/* ============================= */
/*        Reset global           */
/* ============================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  color: var(--text-color);
  background-color: var(--background-color);
  line-height: 1.6;
}

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

h1, h2, h3 {
  font-family: var(--font-heading);
  color: var(--heading-color);
}

/* ============================= */
/*           Header              */
/* ============================= */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background-color: var(--background-color);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

header .logo img {
  height: 50px;
}

nav#menu {
  display: flex;
  gap: 1.5rem;
  font-weight: 600;
}

nav#menu a {
  transition: color var(--transition-speed);
}

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

/* Burger menu mobile */
.burger {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 22px;
  background: transparent;
  border: none;
  cursor: pointer;
}

.burger span {
  width: 100%;
  height: 3px;
  background: var(--primary-color);
  border-radius: 2px;
  transition: all 0.3s;
}

.burger.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.burger.open span:nth-child(2) {
  opacity: 0;
}

.burger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================= */
/*           Hero                */
/* ============================= */
.hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 5rem 2rem;
  background: linear-gradient(135deg, #003366 0%, #0059b3 100%);
  color: #fff;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.animated-title,.animated-subtitle{opacity:0;transform:translateY(10px);animation:fadeMove 5s ease-in-out infinite;text-align:center;text-shadow:1px 1px 4px rgba(0,0,0,0.5)}
@keyframes fadeMove{0%{opacity:0;transform:translateY(10px)}20%{opacity:1;transform:translateY(0)}80%{opacity:1;transform:translateY(0)}100%{opacity:0;transform:translateY(-10px)}}
.animated-title{font-family:Georgia,serif;font-size:2.5rem;color:#fff;margin-bottom:.5rem}
.animated-subtitle{font-family:Arial,sans-serif;font-size:1.2rem;color:rgba(255,255,255,0.85)}

.hero .cta {
  padding: 0.8rem 2.5rem;
  background-color: var(--secondary-color);
  border: none;
  border-radius: var(--border-radius);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-speed);
}

.hero .cta:hover {
  background-color: #e69500;
}

/* ============================= */
/* Hero Accueil avec background pro */
/* ============================= */
.home-hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  background: url('/assets/images/projects-bg.jpg') center/cover no-repeat;
  color: #fff;
}

.home-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5); /* overlay sombre pour contraste */
}

.hero-overlay {
  position: relative;
  text-align: center;
  max-width: 900px;
  padding: 0 2rem;
  z-index: 1;
}

.hero-overlay h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  text-shadow: 1px 1px 5px rgba(0,0,0,0.7);
}

.hero-overlay p {
  font-size: 1.3rem;
  margin-bottom: 2rem;
  text-shadow: 1px 1px 5px rgba(0,0,0,0.6);
}

.hero-overlay .cta {
  padding: 0.8rem 2.5rem;
  font-size: 1.1rem;
  background-color: var(--secondary-color);
  border: none;
  border-radius: var(--border-radius);
  cursor: pointer;
  font-weight: 600;
  transition: background 0.3s;
}

.hero-overlay .cta:hover {
  background-color: #e69500;
}

/* Responsive Hero */
@media (max-width: 768px) {
  .hero-overlay h1 {
    font-size: 2rem;
  }
  .hero-overlay p {
    font-size: 1rem;
  }
  .hero-overlay .cta {
    font-size: 1rem;
  }
}

.projects {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.card {
  flex: 1 1 300px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  background: #fff;
  text-align: center;
}

.slideshow-container {
  position: relative;
}

.slide {
  display: none;
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.dots {
  margin-top: 8px;
}

.dot {
  height: 12px;
  width: 12px;
  margin: 0 4px;
  display: inline-block;
  border-radius: 50%;
  background-color: #bbb;
  cursor: pointer;
  transition: 0.3s;
}

.dot.active {
  background-color: #007BFF;
}



/* ============================= */
/*          Sections             */
/* ============================= */
section {
  padding: 4rem 2rem;
}

section h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2rem;
  color: var(--primary-color);
}

/* Cards (services / projets / valeurs) */
.services, .projects, .cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.card {
  background-color: var(--card-background);
  padding: 2rem 1.5rem;
  border-radius: var(--border-radius);
  text-align: center;
  font-weight: 600;
  cursor: pointer;
  transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.services-section {
  padding: 80px 20px;
  background: #f7f9fc;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.section-subtitle {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 50px;
  color: #555;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
}

.service-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}

.service-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.service-card h3 {
  margin: 20px 20px 10px;
  font-size: 1.3rem;
}

.service-card p {
  margin: 0 20px 25px;
  color: #666;
  font-size: 0.95rem;
}

.services {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.card {
  flex: 1 1 300px;
  padding: 20px;
  border-radius: 10px;
  background: #f9f9f9;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card-header {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.card-header i {
  font-size: 24px;
  color: #007BFF; /* Bleu pro */
}

.cta-button {
  margin-top: 15px;
  padding: 12px 25px;
  background-color: #007BFF;
  color: white;
  text-decoration: none;
  font-weight: bold;
  border-radius: 8px;
  text-align: center;
  transition: 0.3s;
}

.cta-button:hover {
  background-color: #0056b3;
  transform: scale(1.05);
}


#modelisation-list {
  margin-top: 50px;
}

#modelisation-list h2 {
  text-align: center;
  margin-bottom: 20px;
}

#modelisation-list .card {
  flex: 1 1 300px;
  padding: 20px;
  border-radius: 10px;
  background: #f9f9f9;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  margin-bottom: 20px;
}

#modelisation-list .card-header {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

#modelisation-list .card-header i {
  font-size: 24px;
  color: #007BFF;
}

#modelisation-list .cta-button {
  margin-top: 15px;
  padding: 12px 25px;
  background-color: #28a745; /* Vert pour différencier des services classiques */
  color: white;
  text-decoration: none;
  font-weight: bold;
  border-radius: 8px;
  text-align: center;
  transition: 0.3s;
}

#modelisation-list .cta-button:hover {
  background-color: #1e7e34;
  transform: scale(1.05);
}

#mission-values {
  margin-top: 50px;
  text-align: center;
}

#mission-values h2 {
  margin-bottom: 20px;
}

.cards-slideshow {
  position: relative;
  max-width: 600px;
  margin: 0 auto;
  overflow: hidden;
}

.card-slide {
  display: none;
  padding: 20px;
  border-radius: 10px;
  background: #f9f9f9;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  transition: 0.5s ease-in-out;
}

.card-slide i {
  font-size: 40px;
  color: #007BFF;
  margin-bottom: 10px;
}

.card-slide h3 {
  margin: 10px 0;
}

.card-slide p {
  font-size: 16px;
  color: #555;
}


/* ============================= */
/*           Form                */
/* ============================= */
form {
  max-width: 500px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

form label {
  font-weight: 600;
  margin-top: 1rem;
}

form input, form textarea {
  width: 100%;
  padding: 0.8rem;
  margin-top: 0.3rem;
  border: 1px solid #ccc;
  border-radius: var(--border-radius);
  font-family: var(--font-body);
}

form button.cta {
  margin-top: 1.5rem;
  padding: 0.8rem;
  background-color: var(--primary-color);
  color: #fff;
  border: none;
  border-radius: var(--border-radius);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-speed);
}

form button.cta:hover {
  background-color: #002244;
}

/* ============================= */
/*        Section Partenaires    */
/* ============================= */
.partners-section {
  padding: 4rem 2rem;
  background-color: var(--tertiary-color);
  text-align: center;
}

.partners-section h2 {
  margin-bottom: 2rem;
  font-size: 2rem;
  color: var(--primary-color);
}

/* Slider */
.partners-slider {
  overflow: hidden;
  position: relative;
}

.partners-track {
  display: flex;
  width: calc(200%); /* car on duplique les logos */
  animation: scrollPartners 20s linear infinite;
}

.partner-slide {
  flex: 0 0 auto;
  width: 150px;
  margin: 0 1rem;
}

.partner-slide img {
  width: 100%;
  object-fit: contain;
  filter: grayscale(80%);
  transition: all 0.3s ease;
}

.partner-slide img:hover {
  filter: grayscale(0%);
  transform: scale(1.1);
}

/* Animation infinie */
@keyframes scrollPartners {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Responsive */
@media (max-width: 768px) {
  .partner-slide {
    width: 100px;
    margin: 0 0.5rem;
  }
}

.bi-whatsapp {
  color: #25D366;
  font-size: 1.2rem;
  margin-right: 6px;
  vertical-align: middle;
}

.contact-info a {
  text-decoration: none;
  font-weight: 600;
}

.contact-info a:hover {
  text-decoration: underline;
}


/* ============================= */
/*         Contact Info          */
/* ============================= */
.contact-section {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.contact-form, .contact-info {
  flex: 1 1 400px;
}

.map-container iframe {
  width: 100%;
  height: 300px;
  border: 0;
  border-radius: var(--border-radius);
}

/* ============================= */
/*           Footer              */
/* ============================= */
footer {
  text-align: center;
  padding: 2rem;
  background-color: var(--tertiary-color);
  font-size: 0.9rem;
  color: var(--text-color);
}

/* ============================= */
/*       Responsive Design       */
/* ============================= */
@media (max-width: 768px) {
  nav#menu {
    display: none;
    flex-direction: column;
    gap: 1rem;
    background-color: var(--background-color);
    position: absolute;
    top: 70px;
    right: 0;
    width: 200px;
    padding: 1rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  }

  nav#menu.active {
    display: flex;
  }

  .burger {
    display: flex;
  }

  .contact-section {
    flex-direction: column;
  }
}