
:root {
  --green: #008037;
  --orange: #ff8c00;
  --text: #092410;
  --shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
  font-family: 'Inter', system-ui, sans-serif;
}

/* Structure globale */
body {
  margin: 0;
  background: white;
  color: var(--text);
  line-height: 1.6;
}

.header {
  background: linear-gradient(90deg, var(--green), #00a14b);
  color: white;
  padding: 22px 20px;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand img {
  width: 64px;
  height: auto;
  border-radius: 8px;
}
h1 {
  margin: 0;
  font-size: 28px;
}
h2, h3 {
  color: var(--green);
}
.nav {
  margin-top: 12px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.nav a {
  color: white;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  transition: all 0.2s ease;
}
.nav a:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* Navigation orange sur les sous-catégories */
.nav a[href$="index.html"],
.nav a[href*="videosurveillance"],
.nav a[href*="controle_acces"],
.nav a[href*="cablage"],
.nav a[href*="alarmes"],
.nav a[href*="telephonie"],
.nav a[href*="electricite"] {
  background: var(--orange);
  color: white;
  font-weight: 600;
  box-shadow: 0 6px 12px rgba(255, 140, 0, 0.2);
}
.nav a:not([href$="index.html"]):not([href*="videosurveillance"]):not([href*="controle_acces"]):not([href*="cablage"]):not([href*="alarmes"]):not([href*="telephonie"]):not([href*="electricite"]) {
  background: rgba(255, 255, 255, 0.08);
}

/* Cartes et grilles */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  margin-top: 18px;
}
.card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}
.card {
  background: white;
  color: var(--text);
  border-left: 5px solid var(--orange);
  border-radius: 10px;
  padding: 18px;
  box-shadow: var(--shadow);
  transition: transform 0.12s ease;
}
.card h3 {
  color: var(--green);
  margin-top: 0;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 24px rgba(0, 128, 55, 0.15);
}

/* Boutons */
.btn {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--orange);
  color: white;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.2s ease;
}
.btn:hover {
  background: #ffa733;
}

/* Formulaire */
form {
  background: #f9faf9;
  color: var(--text);
  padding: 22px;
  border-radius: 12px;
  box-shadow: var(--shadow);
  max-width: 600px;
  margin: auto;
}
input, textarea {
  width: 100%;
  padding: 10px;
  margin: 6px 0 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 15px;
}
label {
  font-weight: 600;
  color: var(--green);
}

/* Pied de page */
.footer {
  background: var(--green);
  color: white;
  padding: 22px;
  text-align: center;
  margin-top: 32px;
}

@media (max-width: 600px) {
  .brand img {
    width: 50px;
  }
}
