/* ========== VARIABLES ========== */
:root {
  --primary: #00695c;        /* vert profond élégant */
  --secondary: #ffb300;      /* doré pour l'accent */
  --text-dark: #333;
  --text-light: #1dad10;
  --bg-light: #fafafa;
  --shadow: 0 8px 20px rgba(0,0,0,0.1);
  --transition: all 0.3s ease;
  --max-width: 1200px;
  --radius: 12px;
  font-size: 16px;
}

/* Reset moderne */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Poppins", "Segoe UI", sans-serif;
  color: var(--text-dark);
  background: var(--bg-light);
  line-height: 1.6;
}

/* ========== HEADER ========== */
header {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  background: rgba(0,105,92,0.95);
  color: var(--text-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  z-index: 1000;
  backdrop-filter: blur(6px);
  box-shadow: var(--shadow);
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: 1px;
}
.logo span {
  color: var(--secondary);
}

nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
}
nav a {
  color: var(--text-light);
  text-decoration: none;
  font-weight: 500;
  position: relative;
  transition: var(--transition);
}
nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0%;
  height: 2px;
  background: var(--secondary);
  transition: var(--transition);
}
nav a:hover::after {
  width: 100%;
}

/* ========== HERO ========== */
.hero {
  height: 100vh;
  background: url("hero.jpg") center/cover no-repeat;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 1rem;
  color: var(--text-light);
}
.hero-text h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 1rem;
  text-shadow: 0 2px 6px rgba(0,0,0,0.4);
}
.hero-text p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}
.btn {
  background: var(--secondary);
  color: var(--text-dark);
  padding: 0.9rem 2rem;
  border-radius: 40px;
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
}
.btn:hover {
  background: #ffa000;
  transform: translateY(-3px);
}

/* ========== SECTIONS GÉNÉRALES ========== */
section {
  padding: 5rem 1rem;
}
.container {
  max-width: var(--max-width);
  margin: auto;
}
h2 {
  text-align: center;
  font-size: 2.2rem;
  margin-bottom: 3rem;
  color: var(--primary);
  position: relative;
}
h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  background: var(--secondary);
  margin: 1rem auto 0;
  border-radius: 2px;
}

/* ========== CIRCUITS (Cards) ========== */
.grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
}
.card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
.card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}
.card h3 {
  padding: 1rem;
  font-size: 1.3rem;
  color: var(--primary);
}
.card p {
  padding: 0 1rem 1.5rem;
  flex-grow: 1;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0,0,0,0.15);
}

/* ========== SERVICES ========== */
.services ul {
  max-width: 700px;
  margin: auto;
  list-style: none;
}
.services li {
  background: #fff;
  margin: 1rem 0;
  padding: 1rem 1.2rem;
  border-left: 5px solid var(--secondary);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: var(--transition);
}
.services li:hover {
  background: #fef4e0;
}

/* ========== CONTACT ========== */
.contact form {
  max-width: 600px;
  margin: auto;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
.contact input,
.contact textarea {
  width: 100%;
  padding: 0.9rem;
  border: 1px solid #ccc;
  border-radius: var(--radius);
  font-size: 1rem;
  transition: var(--transition);
}
.contact input:focus,
.contact textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0,105,92,0.15);
}
.contact button {
  background: var(--primary);
  color: var(--text-light);
  border: none;
  padding: 1rem;
  border-radius: var(--radius);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}
.contact button:hover {
  background: #004d40;
}

/* ========== FOOTER ========== */
footer {
  background: #222;
  color: #ccc;
  text-align: center;
  padding: 2rem 1rem;
}
footer p {
  margin: 0.5rem 0;
}

/* ========== RESPONSIVE HEADER ========== */
@media (max-width: 768px) {
  nav ul {
    flex-direction: column;
    background: var(--primary);
    position: absolute;
    right: 0;
    top: 100%;
    width: 200px;
    display: none;
    padding: 1rem;
  }
  nav ul.active {
    display: flex;
  }
}
