/* ==========================================================================
   SOUTH PACIFIC SECURITE (SPS) — Feuille de style principale
   Charte graphique basée sur le logo : Bleu marine / Rouge / Or
   ========================================================================== */

:root {
  --navy: #172983;
  --navy-dark: #0f1d5e;
  --navy-darker: #0a1440;
  --red: #bd0926;
  --red-dark: #900719;
  --gold: #f6a619;
  --gold-light: #fcd88a;
  --lagoon: #0e93a0;
  --lagoon-dark: #0a6b75;
  --white: #ffffff;
  --gray-50: #f6f7fb;
  --gray-100: #eceef5;
  --gray-300: #c7cce0;
  --gray-600: #5b6280;
  --gray-800: #2a2f4a;
  --radius: 10px;
  --shadow: 0 10px 30px rgba(15, 29, 94, 0.12);
  --shadow-sm: 0 4px 14px rgba(15, 29, 94, 0.08);
  --container: 1180px;
  font-size: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  color: var(--gray-800);
  background: var(--white);
  line-height: 1.65;
}

h1, h2, h3, h4 {
  font-family: "Montserrat", "Segoe UI", Arial, sans-serif;
  color: var(--navy);
  line-height: 1.25;
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 800; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 1em; color: var(--gray-600); }
a { color: var(--red); text-decoration: none; }
a:hover { color: var(--navy); }
ul { padding-left: 1.2em; color: var(--gray-600); }
img { max-width: 100%; display: block; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 72px 0;
}
.section--tight { padding: 48px 0; }
.bg-light { background: var(--gray-50); }
.bg-navy { background: var(--navy); color: var(--white); }
.bg-navy h2, .bg-navy h3 { color: var(--white); }
.bg-navy p { color: var(--gray-300); }

.eyebrow {
  display: inline-block;
  color: var(--red);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.8rem;
  margin-bottom: 10px;
}
.bg-navy .eyebrow { color: var(--gold); }

.section-head {
  max-width: 720px;
  margin: 0 auto 40px;
  text-align: center;
}
.section-head.left { margin: 0 0 40px; text-align: left; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-primary { background: var(--red); color: var(--white); }
.btn-primary:hover { background: var(--red-dark); color: var(--white); }
.btn-gold { background: var(--gold); color: var(--navy-darker); }
.btn-gold:hover { background: var(--gold-light); color: var(--navy-darker); }
.btn-outline { background: transparent; border-color: var(--white); color: var(--white); }
.btn-outline:hover { background: var(--white); color: var(--navy); }
.btn-outline-navy { background: transparent; border-color: var(--navy); color: var(--navy); }
.btn-outline-navy:hover { background: var(--navy); color: var(--white); }

/* ---------- Top bar ---------- */
.topbar {
  background: var(--navy-darker);
  color: var(--gray-300);
  font-size: 0.82rem;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 8px;
  padding-bottom: 8px;
  flex-wrap: wrap;
  gap: 6px;
}
.topbar a { color: var(--gold-light); font-weight: 600; }
.topbar strong { color: var(--white); }
.topbar .urgence { display: flex; align-items: center; gap: 8px; }
.topbar .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #35d07f; box-shadow: 0 0 0 3px rgba(53,208,127,0.25);
}

/* ---------- Header / Nav ---------- */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  box-shadow: 0 2px 14px rgba(15,29,94,0.08);
}
header.site-header .container {
  max-width: 1440px;
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand img { height: 56px; width: auto; }
.brand-text { line-height: 1.15; }
.brand-text strong {
  display: block;
  font-family: "Montserrat", sans-serif;
  color: var(--navy);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}
.brand-text span {
  display: block;
  color: var(--red);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

nav.main-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  margin: 0;
  padding: 0;
}
nav.main-nav a {
  display: inline-flex;
  align-items: center;
  color: var(--navy);
  font-weight: 700;
  font-size: 0.82rem;
  padding: 9px 13px;
  border-radius: 999px;
  border: 2px solid var(--gray-100);
  background: var(--gray-50);
  white-space: nowrap;
  transition: all 0.2s ease;
}
nav.main-nav a:hover {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}
nav.main-nav a.active {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
}

.header-actions { display: flex; align-items: center; gap: 16px; }
.header-actions .btn { white-space: nowrap; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  margin: 5px 0;
  background: var(--navy);
  border-radius: 3px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: var(--white);
  background: linear-gradient(120deg, var(--navy) 0%, var(--navy-darker) 100%);
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  object-fit: cover;
  object-position: center 25%;
  width: 100%;
  height: 100%;
  opacity: 1;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(15,29,94,0.48) 30%, rgba(15,29,94,0.18) 100%);
}
.hero-content {
  position: relative;
  padding: 110px 0 90px;
  max-width: 680px;
}
.hero-content .eyebrow { color: var(--gold); text-shadow: 0 2px 10px rgba(0,0,0,0.35); }
.hero-content h1 { color: var(--white); text-shadow: 0 2px 14px rgba(0,0,0,0.4); }
.hero-content p.lead { color: var(--gray-100); font-size: 1.1rem; text-shadow: 0 1px 8px rgba(0,0,0,0.35); }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 28px; }

.page-hero {
  position: relative;
  color: var(--white);
  min-height: 260px;
  display: flex;
  align-items: center;
}
.page-hero-bg {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  object-position: center 25%;
}
/* Réglages fins de cadrage : ajouter une de ces classes sur l'image du bandeau
   (ou ajuster le pourcentage) pour remonter/descendre la zone visible de la photo. */
.pos-top    { object-position: center 0%   !important; }
.pos-upper  { object-position: center 20%  !important; }
.pos-center { object-position: center 50%  !important; }
.pos-lower  { object-position: center 75%  !important; }
.pos-bottom { object-position: center 100% !important; }
.page-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(15,29,94,0.50) 20%, rgba(15,29,94,0.20) 100%);
}
.page-hero-overlay--light {
  background: linear-gradient(100deg, rgba(15,29,94,0.32) 20%, rgba(15,29,94,0.12) 100%);
}
.page-hero-content { position: relative; }
.page-hero-content h1 { color: var(--white); margin-bottom: 8px; text-shadow: 0 2px 14px rgba(0,0,0,0.4); }
.breadcrumb { color: var(--gray-300); font-size: 0.9rem; text-shadow: 0 1px 8px rgba(0,0,0,0.4); }
.breadcrumb a { color: var(--gold-light); }

/* ---------- Stats strip ---------- */
.stats-strip {
  background: var(--white);
  margin-top: -46px;
  position: relative;
  z-index: 5;
}
.stats-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  overflow: hidden;
}
.stat {
  text-align: center;
  padding: 28px 12px;
  border-right: 1px solid var(--gray-100);
}
.stat:last-child { border-right: none; }
.stat .num {
  display: block;
  font-family: "Montserrat", sans-serif;
  font-weight: 800;
  font-size: 2rem;
  color: var(--red);
  line-height: 1.2;
}
.stat .label {
  display: block;
  margin-top: 6px;
  font-size: 0.82rem;
  color: var(--gray-600);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* ---------- Cards / Grids ---------- */
.grid {
  display: grid;
  gap: 28px;
}
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-6 { grid-template-columns: repeat(6, 1fr); }

.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  border: 1px solid var(--gray-100);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card img { aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.card-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.card-body h3 { margin-bottom: 8px; }
.card-body p { flex: 1; }
.card-link { font-weight: 700; font-size: 0.9rem; display: inline-block; margin-top: 6px; }

.service-icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--navy), var(--navy-dark));
  display: flex; align-items: center; justify-content: center;
  color: var(--gold);
  font-size: 1.5rem;
  margin-bottom: 16px;
  flex-shrink: 0;
}

.tile {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--gray-100);
  padding: 22px 16px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.tile .icon { font-size: 1.8rem; margin-bottom: 10px; display: block; }
.tile h4 { margin: 0; font-size: 0.95rem; color: var(--navy); }

/* ---------- Values list ---------- */
.value-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 26px;
}
.value-item .bullet {
  flex-shrink: 0;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy-darker);
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.value-item h4 { margin: 0 0 4px; color: var(--navy); }
.value-item p { margin: 0; }

/* ---------- Timeline ---------- */
.timeline { border-left: 3px solid var(--gold); padding-left: 26px; margin-left: 6px; }
.timeline-item { position: relative; margin-bottom: 32px; }
.timeline-item::before {
  content: "";
  position: absolute;
  left: -33px; top: 4px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--red);
  border: 3px solid var(--white);
  box-shadow: 0 0 0 2px var(--red);
}
.timeline-item .year {
  font-family: "Montserrat", sans-serif;
  font-weight: 800;
  color: var(--red);
  display: block;
  margin-bottom: 4px;
}

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--navy), var(--navy-darker));
  color: var(--white);
  border-radius: var(--radius);
  padding: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}
.cta-band::after {
  content: "";
  position: absolute;
  right: -60px; top: -60px;
  width: 220px; height: 220px;
  background: var(--gold);
  opacity: 0.12;
  border-radius: 50%;
}
.cta-band h2, .cta-band p { color: var(--white); margin: 0; }
.cta-band p { color: var(--gray-300); margin-top: 6px; }

/* ---------- Partner block ---------- */
.partner-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-100);
  padding: 36px;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 32px;
  align-items: center;
  margin-bottom: 28px;
}
.partner-card img { border-radius: 8px; }
.partner-card h3 { margin-bottom: 10px; }

/* ---------- Contact page ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.contact-info-item {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
}
.contact-info-item .ic {
  width: 46px; height: 46px;
  border-radius: 10px;
  background: var(--gray-50);
  color: var(--red);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}
.contact-info-item h4 { margin: 0 0 4px; color: var(--navy); }
.contact-info-item p { margin: 0; }

form.contact-form {
  background: var(--gray-50);
  padding: 32px;
  border-radius: var(--radius);
  border: 1px solid var(--gray-100);
}
form.contact-form label {
  display: block;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--navy);
  margin: 16px 0 6px;
}
form.contact-form label:first-child { margin-top: 0; }
form.contact-form input,
form.contact-form select,
form.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--gray-300);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.95rem;
  background: var(--white);
}
form.contact-form textarea { resize: vertical; min-height: 120px; }
form.contact-form .btn { margin-top: 22px; width: 100%; justify-content: center; }
.form-note { font-size: 0.8rem; color: var(--gray-600); margin-top: 10px; }

/* ---------- Footer ---------- */
footer.site-footer {
  background: var(--navy-darker);
  color: var(--gray-300);
  padding: 64px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 32px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-grid h4 {
  color: var(--gold);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 18px;
}
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.footer-brand img { height: 46px; }
.footer-brand strong { color: var(--white); font-family: "Montserrat", sans-serif; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 10px; }
.footer-grid a { color: var(--gray-300); }
.footer-grid a:hover { color: var(--gold); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 0;
  font-size: 0.82rem;
  color: var(--gray-600);
  flex-wrap: wrap;
  gap: 8px;
}
.footer-bottom a { color: var(--gray-600); }

/* ---------- Utilities ---------- */
.mt-0 { margin-top: 0; }
.text-center { text-align: center; }
.tag {
  display: inline-block;
  background: rgba(246,166,25,0.15);
  color: var(--gold);
  border: 1px solid rgba(246,166,25,0.4);
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  margin: 3px 4px 3px 0;
}
.tag-navy {
  background: rgba(23,41,131,0.08);
  color: var(--navy);
  border-color: rgba(23,41,131,0.2);
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-6 { grid-template-columns: repeat(3, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .partner-card { grid-template-columns: 1fr; }
  .stats-card { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: none; }
}

@media (max-width: 1200px) {
  nav.main-nav {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--white);
    box-shadow: var(--shadow);
    display: none;
    padding: 10px 24px 20px;
  }
  nav.main-nav.open { display: block; }
  nav.main-nav ul { flex-direction: column; gap: 8px; }
  nav.main-nav a { display: block; text-align: center; padding: 12px 0; }
  .nav-toggle { display: block; }
  header.site-header { position: static; }
}

@media (max-width: 780px) {
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
  .grid-6 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
}
