/* === AGT Minimal Theme – Version améliorée === */
:root {
  --primary: #1565c0;
  --primary-dark: #0d47a1;
  --accent: #2e7d32;
  --accent-soft: #e6f4ea;
  --text: #1d2939;
  --muted: #667085;
  --muted-light: #94a3b8;
  --bg: #f8fafc;
  --card: #ffffff;
  --border: #e2e8f0;
  --radius: 16px;
  --shadow-sm: 0 2px 4px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 10px 30px rgba(15, 23, 42, 0.12);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover {
  text-decoration: underline;
  color: var(--primary-dark);
}

/* === Layout global === */

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

/* === Navbar === */

.navbar {
  position: sticky;
  top: 0;
  z-index: 999;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #eef2f7;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 1.05rem;
  color: #000000;
}

.brand-logo {
  width: 220px;
  height: auto;
  max-height: 80px;
}

.nav-links a {
  margin-left: 18px;
  font-weight: 600;
  color: #000000;
  font-size: 0.95rem;
}

.nav-links a:hover {
  opacity: 0.85;
  text-decoration: none;
}

.nav-cta {
  margin-left: 24px;
  padding: 10px 16px;
  background: #20950e;
  color: #ffffff;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  border: none;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.nav-cta:hover {
  opacity: 0.96;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
  text-decoration: none;
}

/* === Hero === */

.hero {
  padding: 40px 0 56px;
  background:
    linear-gradient(
      180deg,
      rgba(0, 150, 136, 0.25) 0%,
      rgba(21, 101, 192, 0.96) 35%,
      rgba(10, 27, 58, 1) 70%,
      rgba(235, 240, 246, 1) 100%
    );
  color: #ffffff;
}

.hero h1 {
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.1;
  margin: 0 0 16px;
  letter-spacing: 0.02em;
}

.hero p {
  color: rgba(241, 245, 249, 0.9);
  font-size: clamp(15px, 2vw, 18px);
  max-width: 800px;
  margin: 0;
}

.hero-cta {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

/* === Boutons === */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 14px;
  font-weight: 700;
  border: 1px solid transparent;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.btn-primary {
  background: var(--primary);
  color: #ffffff;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: var(--primary-dark);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
  text-decoration: none;
}

.btn-ghost {
  background: #ffffff;
  color: var(--primary);
  border-color: #dbe2ea;
}

.btn-ghost:hover {
  background: #f8fafc;
  border-color: var(--primary);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
}

/* === Sections === */

.section {
  padding: 56px 0;
}

/* === KPIs === */

.kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 28px;
}

.kpi {
  background: var(--card);
  padding: 18px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.kpi .label {
  color: var(--muted);
  font-size: 13px;
}

.kpi .value {
  font-size: 26px;
  font-weight: 800;
}

/* === Cards services / cas d’usage === */

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card .cover {
  height: 140px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  opacity: 0.9;
}

.card .body {
  padding: 18px;
}

.card .body h3 {
  margin: 0 0 8px;
  font-size: 1.02rem;
}

.card .body p {
  color: var(--muted);
  margin: 0;
  font-size: 0.95rem;
}

.card .actions {
  padding: 0 18px 18px;
  margin-top: auto;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

/* === Footer === */

.footer {
  padding: 28px 0;
  border-top: 1px solid #eef2f7;
  background: #ffffff;
  color: #475569;
}

.footer .cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.footer h4 {
  margin-top: 0;
  font-size: 0.98rem;
}

.footer a {
  font-size: 0.9rem;
  color: var(--muted);
}

.footer a:hover {
  color: var(--primary);
}

.footer small {
  color: #94a3b8;
  font-size: 0.8rem;
}

/* === Badges === */

.badge {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  background: #c8c8c8;
  color: #1c6211;
  font-weight: 700;
  font-size: 12px;
}

/* Bandeau pleine largeur amélioré */
.badge2 {
  display: block;
  width: 100%;
  padding: 12px 0;
  background: linear-gradient(180deg, #D9D9D9, #C8C8C8);
  color: #000000 !important;      /* forcé noir */
  font-weight: 600;
  font-size: 15px;
  font-family: 'Poppins', sans-serif;
  text-align: center;
  border: 1.5px solid #A8A8A8;
  border-radius: 6px;
  box-sizing: border-box;
  letter-spacing: 0.3px;
  text-transform: none;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,0.08);
  opacity: 1;                     /* assure-toi qu'il n'y a pas de transparence */
}


/* Effet au survol bandeau */
.badge2:hover {
  background: linear-gradient(180deg, #bebebe, #afafaf);
  transform: scale(1.01);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  cursor: pointer;
}

/* === Carte embarquée === */

.map-embed {
  border: 0;
  width: 100%;
  height: 420px;
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
}

/* === Formulaire === */

.form {
  display: grid;
  gap: 12px;
}

input,
textarea {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  font: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 1px rgba(21, 101, 192, 0.2);
  background-color: #f9fafb;
}

textarea {
  min-height: 140px;
  resize: vertical;
}

button {
  cursor: pointer;
}

/* === Responsive === */

@media (max-width: 960px) {
  .cards {
    grid-template-columns: 1fr 1fr;
  }
  .kpis {
    grid-template-columns: 1fr 1fr;
  }
  .footer .cols {
    grid-template-columns: 1fr 1fr;
  }
  .navbar-inner {
    flex-wrap: wrap;
    gap: 10px;
  }
}

@media (max-width: 600px) {
  .cards {
    grid-template-columns: 1fr;
  }
  .kpis {
    grid-template-columns: 1fr;
  }
  .footer .cols {
    grid-template-columns: 1fr;
  }
  .hero {
    padding: 32px 0 40px;
  }
}
