/* ==================================================
   SÉCURITÉ GLOBALE — Charte graphique
   Bleu marine : #27346E (C100 M90 J27 N8)
   Gris        : #878787 (N60)
   Noir        : #000000
   Typographie : Jost (Google Fonts)
   ================================================== */

:root {
  --bleu: #27346E;
  --bleu-fonce: #1c2650;
  --gris: #878787;
  --noir: #000000;
  --texte: #1d2333;
  --texte-clair: #5b6070;
  --bg: #ffffff;
  --bg-soft: #f4f5f8;
  --border: #e4e6ee;
  --radius: 8px;
  --maxw: 1080px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "Jost", "Segoe UI", system-ui, sans-serif;
  color: var(--texte);
  background: var(--bg);
  line-height: 1.65;
}

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ---------- En-tête / navigation ---------- */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 1.25rem;
  max-width: var(--maxw);
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

.logo svg { height: 42px; width: auto; display: block; }

.logo-text {
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  line-height: 1.15;
  text-transform: uppercase;
}

.logo-text .l1 { color: var(--bleu); display: block; }
.logo-text .l2 { color: var(--gris); display: block; }

.nav ul {
  display: flex;
  gap: 1.6rem;
  list-style: none;
}

.nav ul a {
  color: var(--texte);
  text-decoration: none;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-size: 0.92rem;
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.nav ul a:hover,
.nav ul a.active {
  color: var(--bleu);
  border-bottom-color: var(--bleu);
}

/* ---------- Section héros ---------- */
.hero {
  background: linear-gradient(150deg, var(--bleu-fonce) 0%, var(--bleu) 60%, #34448c 100%);
  color: #fff;
  padding: 5rem 0 4.5rem;
  text-align: center;
}

.hero h1 {
  font-size: clamp(1.8rem, 4.2vw, 2.9rem);
  line-height: 1.25;
  margin-bottom: 1.2rem;
  font-weight: 600;
}

.hero p {
  font-size: 1.12rem;
  color: #cfd4e6;
  max-width: 680px;
  margin: 0 auto 2rem;
}

.btn {
  display: inline-block;
  border: none;
  cursor: pointer;
  font: inherit;
  background: #fff;
  color: var(--bleu);
  padding: 0.8rem 1.9rem;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: opacity 0.2s, transform 0.15s;
}

.btn:hover { opacity: 0.88; transform: translateY(-2px); }

.btn.secondary {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.7);
  margin-left: 0.75rem;
}

.btn.secondary:hover { border-color: #fff; opacity: 1; }

/* Boutons sur fond clair */
.btn.dark {
  background: var(--bleu);
  color: #fff;
}

/* ---------- Sections ---------- */
section { padding: 4rem 0; }

.section-title {
  text-align: center;
  font-size: 1.75rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--bleu);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.section-sub {
  text-align: center;
  color: var(--texte-clair);
  max-width: 640px;
  margin: 0 auto 2.5rem;
}

/* ---------- Cartes ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: box-shadow 0.2s, transform 0.15s;
}

.card:hover {
  box-shadow: 0 10px 28px rgba(39, 52, 110, 0.12);
  transform: translateY(-3px);
}

.card .icon { font-size: 1.9rem; margin-bottom: 0.7rem; }

.card h3 {
  margin-bottom: 0.5rem;
  color: var(--bleu);
  font-weight: 600;
}

.card p { color: var(--texte-clair); font-size: 0.97rem; }

.alt { background: var(--bg-soft); }

/* ---------- Bandeau chiffres ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
  text-align: center;
}

.stats .num {
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--bleu);
  line-height: 1.1;
}

.stats .lbl { color: var(--texte-clair); font-size: 0.95rem; }

/* ---------- Citation mission ---------- */
.quote {
  background: var(--bleu);
  color: #fff;
  border-radius: var(--radius);
  padding: 2.5rem;
  font-size: 1.15rem;
  font-style: italic;
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}

/* ---------- Page À propos ---------- */
.prose { max-width: 760px; margin: 0 auto; }

.prose h2 {
  margin: 2.2rem 0 0.75rem;
  color: var(--bleu);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: 1.25rem;
}

.prose p { margin-bottom: 1rem; }

.values {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.values div {
  background: var(--bg-soft);
  border-radius: var(--radius);
  padding: 1.25rem;
}

.values strong { color: var(--bleu); display: block; margin-bottom: 0.3rem; }

.team {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.team .card h3 { margin-bottom: 0.15rem; }

.team .role { color: var(--gris); font-weight: 500; margin-bottom: 0.6rem; }

/* ---------- Page contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.contact-info h2, .contact-form h2 {
  color: var(--bleu);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: 1.25rem;
  margin-bottom: 1.2rem;
}

.contact-info p { margin-bottom: 0.9rem; color: var(--texte-clair); }

.contact-info strong { color: var(--texte); }

.contact-info a { color: var(--bleu); }

form .field { margin-bottom: 1.1rem; }

label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.3rem;
  font-size: 0.95rem;
}

input, textarea {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font: inherit;
  background: var(--bg);
}

input:focus, textarea:focus {
  outline: 2px solid var(--bleu);
  border-color: var(--bleu);
}

/* ---------- Pied de page ---------- */
footer {
  background: var(--noir);
  color: #b9b9b9;
  padding: 2.5rem 0;
  text-align: center;
  font-size: 0.95rem;
}

footer a { color: #9fb0e8; text-decoration: none; }

footer a:hover { text-decoration: underline; }

/* ---------- Mobile ---------- */
@media (max-width: 640px) {
  .nav { flex-direction: column; gap: 0.6rem; }
  .nav ul { gap: 1rem; }
  .hero { padding: 3.5rem 0 3rem; }
  .contact-grid { grid-template-columns: 1fr; }
  .btn.secondary { margin-left: 0; margin-top: 0.75rem; }
}
