/* -----------------------------
   VARIABLES ET BASE GLOBALE
----------------------------- */
:root {
  --blue: #4399C4;
  --black: #000000;
  --gray: #f5f5f5;
  --light-gray: #f9f9f9;
}

body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: var(--black);
  line-height: 1.6;
  scroll-behavior: smooth;
  background: linear-gradient(135deg, rgba(67, 153, 196, 0.1), rgba(67, 153, 196, 0.3));
}

a {
  text-decoration: none;
  color: var(--blue);
}

/* -----------------------------
   NAVIGATION FIXE
----------------------------- */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  background: white;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  z-index: 1000;
}

nav ul {
  display: flex;
  justify-content: center;
  margin: 0;
  padding: 15px 0;
  list-style: none;
  gap: 30px;
}

nav ul li a {
  font-weight: bold;
  color: var(--black);
  transition: color 0.3s;
}

nav ul li a:hover {
  color: var(--blue);
}

/* -----------------------------
   HERO
----------------------------- */
header {
  background-color: var(--gray);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  padding: 120px 40px 80px;
  position: relative;
  overflow: hidden;
  color: white;
}

header h1 {
  font-size: 2.5rem;
  margin: 0;
}

header p {
  font-size: 1.2rem;
  margin-top: 10px;
  color: #000;
}

.cta-button {
  display: inline-block;
  margin-top: 25px;
  padding: 14px 30px;
  background-color: var(--blue);
  color: white;
  font-weight: bold;
  border-radius: 5px;
  transition: background-color 0.3s;
  position: relative;
  z-index: 1;
}

.cta-button:hover {
  background-color: #2d7ca1;
}

/* -----------------------------
   SECTIONS
----------------------------- */
section {
  padding: 80px 20px;
  max-width: 1000px;
  margin: auto;
}

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

/* -----------------------------
   SERVICES
----------------------------- */
.services-container {
  display: flex;
  flex-wrap: wrap;
  gap: 25px;
  justify-content: center;
}

.service-card {
      box-sizing: border-box;

  flex: 1 1 300px;
  background-color: white;
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 3px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

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

.service-card h3 {
  margin-top: 0;
  color: var(--blue);
  display: flex;
  align-items: center;
  gap: 10px;
}

.service-card h3 svg {
  width: 24px;
  height: 24px;
  fill: var(--blue);
}

/* -----------------------------
   FORMULAIRE CONTACT
----------------------------- */
form {
  max-width: 600px;
  margin: auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

input, textarea {
          box-sizing: border-box;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 1rem;
  width: 100%;
}

button {
  padding: 14px 30px;
  border: none;
  background-color: var(--blue);
  color: white;
  font-size: 1rem;
  border-radius: 5px;
  cursor: pointer;
}

button:hover {
  background-color: #2d7ca1;
}

/* -----------------------------
   FOOTER
----------------------------- */
footer {
  text-align: center;
  padding: 25px;
  background-color: var(--gray);
  color: var(--black);
}

/* -----------------------------
   RESPONSIVE DESIGN
----------------------------- */

/* TABLETTES */
@media (max-width: 1024px) {
  header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  nav ul {
    gap: 20px;
  }

  header h1 {
    font-size: 2.2rem;
  }

  header p {
    font-size: 1.1rem;
  }
}

/* MOBILES */
@media (max-width: 768px) {
  nav ul {
    flex-direction: column;
    background: white;
    padding: 20px 0;
    gap: 15px;
  }

  header {
    height: auto;
    padding: 100px 20px 60px;
  }

  header h1 {
    font-size: 1.8rem;
  }

  header p {
    font-size: 1rem;
  }

  .services-container {
    flex-direction: column;
  }

  .service-card {
    width: 100%;
  }

  .cta-button {
    width: 100%;
    text-align: center;
  }
}

/* ---------- NAVIGATION MODERNE ---------- */
.nav-container {
  max-width: 1200px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
}

.logo img {
  height: 50px;
}

/* Icône burger */
.burger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 25px;
  height: 20px;
  cursor: pointer;
}

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

/* Menu mobile caché par défaut */
#nav-menu {
  display: flex;
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
}

#nav-menu li a {
  font-weight: bold;
  color: var(--blue);
  text-decoration: none;
}

/* --------- VERSION MOBILE --------- */
@media (max-width: 768px) {
  .burger {
    display: flex;
  }

  #nav-menu {
    position: absolute;
    top: 70px;
    right: 0;
    width: 100%;
    background: white;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 20px 0;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transform: translateY(-200%);
    transition: transform 0.3s ease;
  }

  #nav-menu.active {
    transform: translateY(0);
  }

  /* Animation du burger en croix */
  .burger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  .burger.active span:nth-child(2) {
    opacity: 0;
  }
  .burger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }
}