/* ============================================================
   AGTECHNO — Services TI gérés | Charte : navy #004080, orange #FF8C00
   ============================================================ */
:root {
  --navy: #004080;
  --navy-dark: #00305f;
  --navy-hover: #1E3A8A;
  --orange: #FF8C00;
  --orange-dark: #e07c00;
  --blue-pale: #e6f0ff;
  --blue-soft: #b3d4f0;
  --text: #333333;
  --text-soft: #475569;
  --grey-line: #e2e8f0;
  --white: #ffffff;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
}

img { max-width: 100%; }
a { color: var(--navy); }

/* ---------- Header / navigation ---------- */
header {
  background: var(--white);
  border-bottom: 1px solid var(--grey-line);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  max-width: 1150px;
  margin: auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  font-size: 1.5em;
  font-weight: 700;
  color: var(--navy);
  text-decoration: none;
  letter-spacing: 0.5px;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand-icon { width: 42px; height: 42px; display: block; }
.brand span { color: var(--orange); }
.brand small {
  display: block;
  font-size: 0.45em;
  font-weight: 400;
  color: var(--text-soft);
  letter-spacing: 0.3px;
}
nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}
nav a {
  color: var(--navy);
  text-decoration: none;
  font-size: 0.95em;
  padding: 4px 2px;
  border-bottom: 2px solid transparent;
}
nav a:hover { border-bottom-color: var(--orange); }
nav a.active { border-bottom-color: var(--orange); font-weight: 600; }
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--grey-line);
  border-radius: 6px;
  font-size: 1.4em;
  color: var(--navy);
  padding: 2px 10px;
  cursor: pointer;
}

/* ---------- Hero ---------- */
.hero {
  background: var(--navy);
  color: var(--white);
  text-align: center;
  padding: 70px 20px;
}
.hero h1 {
  font-size: 2.2em;
  line-height: 1.3;
  max-width: 820px;
  margin: 0 auto 18px;
}
.hero p {
  font-size: 1.15em;
  color: var(--blue-soft);
  max-width: 700px;
  margin: 0 auto 28px;
}
.hero-page { padding: 46px 20px; }
.hero-page h1 { font-size: 1.9em; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1em;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: background-color 0.25s ease;
}
.btn-primary { background: var(--orange); color: var(--white); }
.btn-primary:hover { background: var(--navy-hover); }
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--blue-soft);
}
.btn-outline:hover { background: rgba(255,255,255,0.12); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-hover); }
.btn + .btn { margin-left: 10px; }

/* ---------- Sections ---------- */
.section {
  max-width: 1150px;
  margin: auto;
  padding: 50px 20px;
}
.section-pale { background: var(--blue-pale); }
.section-pale > .section-inner {
  max-width: 1150px;
  margin: auto;
  padding: 50px 20px;
}
.section-title {
  text-align: center;
  color: var(--navy);
  font-size: 1.7em;
  margin: 0 0 10px;
}
.section-sub {
  text-align: center;
  color: var(--text-soft);
  max-width: 720px;
  margin: 0 auto 36px;
}
h2, h3 { color: var(--navy); }

/* ---------- Cartes ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
}
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.card {
  background: var(--white);
  border-radius: 14px;
  padding: 26px 22px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.07);
}
.card h3 { margin-top: 0; font-size: 1.15em; }
.card p { color: var(--text-soft); font-size: 0.95em; margin-bottom: 0; }
.card ul { color: var(--text-soft); font-size: 0.95em; padding-left: 20px; margin: 10px 0 0; }
.card li { margin-bottom: 6px; }
.card-icon {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background: var(--blue-pale);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4em;
  margin-bottom: 14px;
}

/* ---------- Tableau des forfaits ---------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
  align-items: stretch;
}
.plan {
  background: var(--white);
  border: 1px solid var(--grey-line);
  border-radius: 14px;
  padding: 28px 24px;
  text-align: center;
  position: relative;
  display: flex;
  flex-direction: column;
}
.plan.featured { border: 3px solid var(--orange); }
.plan-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--orange);
  color: var(--white);
  font-size: 0.8em;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: 14px;
  white-space: nowrap;
}
.plan h3 { margin: 0 0 4px; }
.plan .price {
  font-size: 2.3em;
  font-weight: 700;
  color: var(--navy);
  margin: 8px 0 0;
}
.plan .per { color: var(--text-soft); font-size: 0.9em; margin: 0 0 16px; }
.plan ul {
  list-style: none;
  padding: 0;
  margin: 0 0 22px;
  text-align: left;
  color: var(--text-soft);
  font-size: 0.93em;
  flex: 1;
}
.plan li { padding: 7px 0; border-bottom: 1px solid #f1f5f9; }
.plan li::before { content: "✓ "; color: var(--navy); font-weight: 700; }
.plan li.na { color: #b0b7c3; }
.plan li.na::before { content: "— "; color: #b0b7c3; }

table.compare {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 16px rgba(0,0,0,0.07);
  font-size: 0.93em;
}
table.compare th {
  background: var(--navy);
  color: var(--white);
  padding: 12px 14px;
  text-align: center;
}
table.compare th:first-child { text-align: left; }
table.compare td {
  padding: 10px 14px;
  border-bottom: 1px solid #f1f5f9;
  text-align: center;
  color: var(--text-soft);
}
table.compare td:first-child { text-align: left; color: var(--text); }
table.compare tr:nth-child(even) td { background: #f8fafc; }
.yes { color: var(--navy); font-weight: 700; }
.no { color: #b0b7c3; }

/* ---------- Bandeau CTA ---------- */
.cta-band {
  background: var(--navy);
  color: var(--white);
  text-align: center;
  padding: 46px 20px;
}
.cta-band h2 { color: var(--white); margin: 0 0 10px; font-size: 1.5em; }
.cta-band p { color: var(--blue-soft); max-width: 640px; margin: 0 auto 24px; }

/* ---------- Listes à cocher (outils) ---------- */
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { padding: 8px 0; border-bottom: 1px solid #f1f5f9; }
.checklist label { cursor: pointer; color: var(--text-soft); }
.checklist input { margin-right: 10px; accent-color: var(--navy); }
.tool-result {
  margin-top: 18px;
  padding: 16px;
  border-radius: 10px;
  background: var(--blue-pale);
  color: var(--navy);
  font-weight: 600;
  display: none;
}

/* ---------- Formulaires ---------- */
form.contact-form { max-width: 640px; margin: auto; }
.form-row { margin-bottom: 16px; }
.form-row label {
  display: block;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 5px;
  font-size: 0.95em;
}
.form-row input, .form-row select, .form-row textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--grey-line);
  border-radius: 8px;
  font-family: inherit;
  font-size: 1em;
  color: var(--text);
  background: var(--white);
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
  outline: 2px solid var(--blue-soft);
  border-color: var(--navy);
}
.form-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ---------- Divers ---------- */
.steps { counter-reset: step; }
.step {
  display: flex;
  gap: 18px;
  margin-bottom: 22px;
  align-items: flex-start;
}
.step-num {
  flex: 0 0 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  font-weight: 700;
  font-size: 1.1em;
  display: flex;
  align-items: center;
  justify-content: center;
}
.step h3 { margin: 6px 0 6px; }
.step p { margin: 0; color: var(--text-soft); }

.notice {
  background: var(--blue-pale);
  border-left: 4px solid var(--navy);
  padding: 16px 20px;
  border-radius: 0 10px 10px 0;
  color: var(--text-soft);
  font-size: 0.95em;
}

.stat-band { text-align: center; }
.stat-band .stat h3 { font-size: 1.9em; color: var(--navy); margin: 0; }
.stat-band .stat p { color: var(--text-soft); margin: 6px 0 0; font-size: 0.95em; }

/* ---------- Footer ---------- */
footer {
  background: var(--navy-dark);
  color: var(--blue-soft);
  padding: 40px 20px 24px;
  font-size: 0.92em;
}
.footer-inner {
  max-width: 1150px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 28px;
}
footer h4 { color: var(--white); margin: 0 0 12px; font-size: 1em; }
footer ul { list-style: none; padding: 0; margin: 0; }
footer li { margin-bottom: 7px; }
footer a { color: var(--blue-soft); text-decoration: none; }
footer a:hover { color: var(--white); text-decoration: underline; }
.footer-bottom {
  max-width: 1150px;
  margin: 28px auto 0;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.15);
  text-align: center;
  font-size: 0.9em;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav-toggle { display: block; }
  nav { display: none; width: 100%; }
  nav.open { display: block; }
  nav ul { flex-direction: column; gap: 4px; padding: 10px 0; }
  .header-inner { flex-wrap: wrap; }
  .hero h1 { font-size: 1.6em; }
  .form-2col { grid-template-columns: 1fr; }
  .btn + .btn { margin-left: 0; margin-top: 10px; }
  table.compare { font-size: 0.8em; }
  table.compare th, table.compare td { padding: 8px 6px; }
}

/* ---------- Sélecteur de langue ---------- */
.lang-switch {
  border: 1px solid var(--grey-line);
  border-radius: 6px;
  padding: 3px 10px !important;
  font-weight: 600;
}
.lang-switch:hover { border-color: var(--orange); }
