:root {
  --blue-dark: #002b45;
  --green-main: #0a7e5c;
  --green-light: #13a678;
  --gray-light: #f4f4f4;
  --white: #ffffff;
  --text-dark: #222;
  --font-main: 'Montserrat', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: var(--font-main);
  color: var(--text-dark);
  background-color: var(--white);
  line-height: 1.6;
}

/* ===== HEADER CLAIR ===== */
.header.light {
  background-color: var(--white);
  color: var(--blue-dark);
  position: fixed;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 5%;
}

.logo {
  height: 55px;
}

nav a {
  color: var(--blue-dark);
  text-decoration: none;
  margin-left: 25px;
  font-weight: 500;
  transition: color 0.3s ease;
}

nav a:hover {
  color: var(--green-main);
}

/* ===== HERO ===== */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  color: var(--white);
  text-align: center;
  position: relative;
  transition: background-image 1s ease-in-out;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.25);
}

.hero-overlay {
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: 2.8em;
}

.hero p {
  font-size: 1.3em;
  font-weight: 500;
  margin-top: 10px;
}

/* ===== SECTIONS ===== */
.section {
  padding: 80px 10%;
  text-align: center;
}

.section.dark {
  background: var(--blue-dark);
  color: var(--white);
}

.section h2 {
  font-size: 2em;
  margin-bottom: 30px;
}

.section h2::after {
  content: "";
  display: block;
  width: 80px;
  height: 3px;
  background: var(--green-light);
  margin: 10px auto 0;
}

/* ===== SERVICES ===== */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
}

.card {
  background: var(--gray-light);
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
}

/* ===== GALERIE ===== */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.gallery-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 8px;
  transition: transform 0.4s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

/* ===== VALEURS ===== */
.values {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 25px;
  margin-top: 25px;
}

.values div {
  background: var(--gray-light);
  border-left: 5px solid var(--green-light);
  padding: 20px;
  border-radius: 8px;
  width: 280px;
}

/* ===== CONTACT ===== */
.contact-form {
  max-width: 500px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-form input, .contact-form textarea {
  padding: 12px;
  border-radius: 5px;
  border: none;
  outline: none;
}

.contact-form button {
  background: var(--green-main);
  color: var(--white);
  border: none;
  padding: 12px;
  border-radius: 5px;
  cursor: pointer;
}

.contact-form button:hover {
  background: var(--green-light);
}

/* ===== FOOTER ===== */
.footer {
  background: #001a2a;
  color: var(--white);
  text-align: center;
  padding: 20px;
  font-size: 0.9em;
}
/* ===== CAROUSEL 3 ITEMS ===== */
.carousel-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  max-width: 1200px;
  margin: 0 auto;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.carousel-item {
  min-width: calc(100% / 3);
  padding: 10px;
  text-align: center;
}

.carousel-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 8px;
  transition: 0.3s;
}

.carousel-item:hover img {
  transform: scale(1.05);
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.85);
  color: var(--blue-dark);
  border: none;
  padding: 12px;
  font-size: 2rem;
  cursor: pointer;
  border-radius: 6px;
  z-index: 5;
}

.carousel-btn:hover {
  background: var(--green-main);
  color: white;
}

.carousel-btn.left { left: 10px; }
.carousel-btn.right { right: 10px; }

/* Responsive : 2 items */
@media (max-width: 900px) {
  .carousel-item { min-width: 50%; }
}

/* Responsive : 1 item */
@media (max-width: 600px) {
  .carousel-item { min-width: 100%; }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .hero h1 { font-size: 2em; }
  nav a { margin-left: 15px; }
  .values { flex-direction: column; align-items: center; }
}
