/* --- Variables --- */
:root {
  --bg: #fafcf079; /* fond très clair jaune */
  --card: #ffffff;
  --accent: #f5c400ae; /* jaune/orange léger */
  --accent-light: #f9d966; /* jaune clair pour hover */
  --muted: #444;
  --radius: 12px;
  --shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  --container: 1360px;
  --primary: #fff9e6; /* header jaune très clair */
  --btn-valid: #f5da61; /* vert léger pour validation */
  --logo-color: #000000; /* logo en noir */
  --btn-text-color: #fff; /* texte boutons en blanc */
  --icon-color: #f5c400b9; /* icônes jaune/orange léger */
}

/* --- Reset & base --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

body {
  background: var(--bg);
  color: #0f1724;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* --- Header --- */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px max(5vw, 40px);
  background: var(--primary);
  color: var(--icon-color);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
  max-width: var(--container);
  margin: 0 auto;
  border-radius: 0 0 var(--radius) var(--radius);
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.logo img {
  height: 60px;
}

.logo span {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--logo-color);
  letter-spacing: 0.5px;
}

/* --- Navigation --- */
nav {
  display: flex;
  gap: 25px;
  transition: all 0.3s ease;
}

nav a {
  color: var(--logo-color);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

nav a:hover {
  text-decoration: underline;
  color: var(--accent);
}

/* --- Burger menu --- */
.burger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 25px;
  height: 18px;
  cursor: pointer;
  z-index: 1100;
}

.burger span {
  display: block;
  height: 3px;
  background-color: var(--icon-color);
  border-radius: 3px;
  transition: all 0.3s ease;
}

/* Burger animation */
.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;
  align-items: center;
  justify-content: space-between;
  max-width: var(--container);
  margin: 30px auto;
  padding: 40px 20px;
  background: linear-gradient(180deg, #fff, #fcf8ea);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  gap: 40px;
  flex-wrap: wrap;
}

.hero-text {
  flex: 1 1 400px;
  min-width: 280px;
  max-width: 600px;
  margin: 0 auto;
  padding: 40px 20px;
  background-color: #f8f5ec;
  border-radius: 8px;
  box-sizing: border-box;
  text-align: left;
  color: #1f2937;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.hero-text h1 {
  font-weight: 800;
  font-size: 2.8rem;
  margin-bottom: 20px;
  color: #06213b;
  line-height: 1.1;
}

.hero-text p {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 30px;
  color: #475569;
}

.hero-text .btn-primary {
  display: inline-block;
  background-color: var(--accent);
  color: var(--btn-text-color);
  padding: 14px 36px;
  font-size: 1.1rem;
  font-weight: 700;
  border-radius: 8px;
  text-decoration: none;
  transition: background-color 0.3s ease;
  box-shadow: 0 4px 8px rgba(245, 196, 0, 0.4);
  cursor: pointer;
}

.hero-text .btn-primary:hover,
.hero-text .btn-primary:focus {
  background-color: var(--accent-light);
  box-shadow: 0 6px 12px rgba(249, 217, 102, 0.6);
  outline: none;
}

.hero-slider {
  flex: 1 1 420px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  min-width: 250px;
}

.swiper-slide img {
  width: 100%;
  height: 450px;
  object-fit: cover;
  display: block;
}

/* --- Services --- */
.services {
  max-width: var(--container);
  margin: 60px auto 40px;
  padding: 0 20px;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.services h2 {
  text-align: center;
  margin-bottom: 30px;
  font-size: 2em;
  color: #06213b;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  justify-items: center;
}

.card {
  background: var(--card);
  padding: 30px 20px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.3s ease;
  text-align: center;
  max-width: 320px;
  width: 100%;
  box-sizing: border-box;
}

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

.service-icon {
  font-size: 3em;
  color: var(--icon-color);
  margin-bottom: 20px;
}

.card h3 {
  font-size: 1.3rem;
  margin-bottom: 15px;
  color: #06213b;
  font-weight: 700;
}

.card p {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.5;
  margin: 0 auto;
  max-width: 280px;
}

/* --- Processus de travail --- */
.processus {
  max-width: var(--container);
  margin: 60px auto;
  padding: 0 20px;
}

.processus h2 {
  text-align: center;
  font-size: 2em;
  color: #06213b;
  margin-bottom: 30px;
}

.processus-image {
  text-align: center;
  margin-top: 20px;
}

.processus-image img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* --- Portfolio --- */
.portfolio {
  max-width: var(--container);
  margin: 60px auto;
  padding: 0 20px;
}

.portfolio h2 {
  text-align: center;
  margin-bottom: 10px;
  font-size: 2em;
  color: #06213b;
}

.portfolio p.muted {
  text-align: center;
  color: var(--muted);
  margin-bottom: 25px;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
}

.project {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: var(--shadow);
}

.project img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.project .meta {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 10px 12px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 14px;
  opacity: 0;
  transform: translateY(100%);
  transition: all 0.3s ease;
}

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

.project:hover .meta {
  opacity: 1;
  transform: translateY(0);
}

/* --- Valeurs --- */
.valeurs {
  padding: 40px 20px;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.valeurs h2 {
  font-size: 2.5rem;
  margin-bottom: 50px;
  color: #06213b;
  font-weight: 700;
}

.valeurs-icons {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 40px;
}

.valeur-item {
  flex: 1 1 220px;
  max-width: 260px;
  text-align: center;
}

.valeur-item i {
  font-size: 4rem;
  color: var(--icon-color);
  margin-bottom: 20px;
}

.valeur-item p {
  font-size: 1.1rem;
  color: #333;
  font-weight: 600;
  line-height: 1.4;
}

/* --- Contact --- */
.contact {
  display: flex;
  flex-wrap: wrap;
  max-width: var(--container);
  margin: 60px auto;
  padding: 0 20px;
  gap: 20px;
}

.contact-form {
  flex: 1 1 400px;
  background: var(--card);
  padding: 20px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.contact-form h2 {
  margin-bottom: 20px;
  color: #06213b;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 10px;
  margin-bottom: 12px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-family: inherit;
  font-size: 1rem;
}

.contact-form button {
  width: 100%;
  margin-top: 10px;
  padding: 12px;
  background-color: var(--btn-valid);
  color: var(--btn-text-color);
  border: none;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.3s ease;
  box-shadow: 0 4px 8px rgba(123, 196, 127, 0.4);
}

.contact-form button:hover {
  background-color: #5ea35a;
  box-shadow: 0 6px 12px rgba(94, 163, 90, 0.6);
}

.contact-info {
  flex: 1 1 300px;
  padding: 20px;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.contact-info h3 {
  margin-bottom: 10px;
  color: #06213b;
}

.contact-info p {
  margin-bottom: 6px;
  font-size: 1rem;
}

.contact-info .map {
  margin-top: 12px;
  border-radius: var(--radius);
  overflow: hidden;
}

/* --- Footer --- */
footer {
  max-width: var(--container);
  margin: 40px auto 20px;
  padding: 10px 20px;
  text-align: center;
  color: #444;
  font-size: 0.9rem;
}

.footer-links {
  margin-top: 10px;
}

.footer-links a {
  color: var(--accent);
  text-decoration: none;
  margin: 0 6px;
  font-weight: 600;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: #06213b;
}

.footer-links span {
  color: #aaa;
}

/* --- Scroll animation --- */
.scroll-animate {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease;
}

.scroll-animate.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 768px) {
  /* Header */
  .header {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    width: 100vw;
    max-width: 100%;
  }

  .logo img {
    height: 50px;
  }

  .burger {
    display: flex;
  }

  nav {
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    background: var(--card);
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 20px 0;
    box-shadow: var(--shadow);
    border-radius: 0 0 var(--radius) var(--radius);
    transform: translateY(-200%);
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0;
    pointer-events: none;
    z-index: 999;
  }

  nav.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  nav a {
    font-size: 1.1em;
    color: var(--logo-color);
  }

  /* Hero */
  .hero {
    flex-direction: column;
    padding: 20px 10px;
  }

  .hero-text,
  .hero-slider {
    flex: none;
    max-width: 100%;
    min-width: auto;
  }

  .hero-text h1 {
    font-size: 1.8rem;
  }

  .hero-slider img {
    height: auto;
  }

  /* Services */
  .cards {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  /* Processus */
  .processus-steps {
    flex-direction: column;
  }

  .processus-steps .step {
    flex: 1 1 100%;
  }

  /* Portfolio */
  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  /* Contact */
  .contact {
    flex-direction: column;
  }

  .contact-form,
  .contact-info {
    width: 100%;
    flex: none;
  }

  /* Offres */
  .offres .btn-primary {
    width: 100%;
    max-width: 320px;
  }

  /* Footer */
  footer {
    font-size: 0.9rem;
    padding: 15px;
  }
}
