/* ===========================================================
   S360 Sécurité · feuille de style
   Palette tirée du logo et de la carte : sarcelle + bleu nuit
   Typographie : Saira Condensed (titres) / Saira (texte)
   =========================================================== */

:root {
  --teal:        #1791a8;
  --teal-deep:   #0e7184;
  --teal-soft:   #e6f2f4;
  --navy:        #16242e;
  --navy-2:      #1d3340;
  --navy-3:      #24404f;
  --ink:         #16242e;
  --muted:       #56676f;
  --muted-light: #8a99a0;
  --bg:          #ffffff;
  --bg-soft:     #f3f6f7;
  --bg-soft-2:   #eaf0f1;
  --line:        #e1e7e9;
  --line-dark:   rgba(255,255,255,.12);
  --radius:      4px;
  --radius-lg:   8px;
  --maxw:        1180px;
  --shadow-sm:   0 1px 2px rgba(22,36,46,.06), 0 4px 14px rgba(22,36,46,.05);
  --shadow-md:   0 8px 30px rgba(22,36,46,.10);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Saira", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }

a { color: var(--teal-deep); text-decoration: none; }
a:hover { color: var(--teal); }

h1, h2, h3, h4 {
  font-family: "Saira Condensed", "Saira", sans-serif;
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: .01em;
  color: var(--navy);
  margin: 0 0 .4em;
  text-transform: uppercase;
}

h1 { font-size: clamp(2.5rem, 5.6vw, 4.1rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.35rem; letter-spacing: .02em; }

p { margin: 0 0 1.1em; text-wrap: pretty; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
}

.eyebrow {
  font-family: "Saira Condensed", sans-serif;
  text-transform: uppercase;
  letter-spacing: .22em;
  font-weight: 600;
  font-size: .82rem;
  color: var(--teal-deep);
  display: inline-block;
  margin: 0 0 18px;
}
.eyebrow.on-dark { color: #6fd0e0; }

.lead {
  font-size: 1.18rem;
  color: var(--muted);
  max-width: 56ch;
}

.section { padding: 96px 0; }
.section--soft { background: var(--bg-soft); }
.section--navy { background: var(--navy); color: #d7e0e4; }
.section--navy h2, .section--navy h3 { color: #fff; }

.section-head { max-width: 64ch; margin-bottom: 52px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "Saira Condensed", sans-serif;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 600;
  font-size: 1rem;
  padding: 14px 26px;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background .18s, color .18s, border-color .18s, transform .18s;
}
.btn--primary { background: var(--teal); color: #fff; }
.btn--primary:hover { background: var(--teal-deep); color: #fff; transform: translateY(-2px); }
.btn--ghost { border-color: var(--line); color: var(--navy); background: #fff; }
.btn--ghost:hover { border-color: var(--teal); color: var(--teal-deep); }
.btn--on-dark { border-color: rgba(255,255,255,.28); color: #fff; background: transparent; }
.btn--on-dark:hover { border-color: #fff; background: rgba(255,255,255,.08); color: #fff; }
.btn svg { width: 18px; height: 18px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 78px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 46px; width: auto; }
.brand .brand-name {
  font-family: "Saira Condensed", sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  font-size: 1.4rem;
  color: var(--navy);
  line-height: 1;
}
.brand .brand-name small {
  display: block;
  font-size: .58rem;
  letter-spacing: .26em;
  color: var(--teal-deep);
  font-weight: 600;
}

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  font-family: "Saira Condensed", sans-serif;
  text-transform: uppercase;
  letter-spacing: .07em;
  font-weight: 600;
  font-size: 1rem;
  color: var(--navy);
  padding: 10px 14px;
  border-radius: var(--radius);
  position: relative;
  white-space: nowrap;
}
.nav a:hover { color: var(--teal-deep); }
.nav a.active { color: var(--teal-deep); }
.nav a.active::after {
  content: "";
  position: absolute;
  left: 16px; right: 16px; bottom: 2px;
  height: 2px; background: var(--teal);
}
.header-cta { display: flex; align-items: center; gap: 14px; }
.header-phone {
  font-family: "Saira Condensed", sans-serif;
  font-weight: 700;
  letter-spacing: .03em;
  font-size: 1.1rem;
  color: var(--navy);
  white-space: nowrap;
}
.header-phone span { display: block; font-size: .62rem; letter-spacing: .18em; color: var(--muted); text-transform: uppercase; }

.nav-toggle {
  display: none;
  width: 46px; height: 46px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: var(--radius);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: "";
  display: block;
  width: 20px; height: 2px;
  background: var(--navy);
  position: relative;
  transition: .2s;
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--navy);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 90% at 85% 12%, rgba(23,145,168,.32), transparent 55%),
    linear-gradient(160deg, #1b2d39 0%, #16242e 55%, #11202a 100%);
  z-index: -2;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(120% 100% at 70% 0%, #000 30%, transparent 80%);
  z-index: -1;
}
.hero-emblem-bg {
  position: absolute;
  right: -60px; top: 50%;
  transform: translateY(-50%);
  width: min(46vw, 540px);
  opacity: .10;
  z-index: -1;
  pointer-events: none;
}
.hero-inner { padding: 100px 0 106px; max-width: 800px; }
.hero h1 { color: #fff; margin-bottom: 34px; line-height: 1.14; }
.hero h1 .accent { color: #6fd0e0; }
.hero .lead { color: #b9c6cc; font-size: 1.25rem; max-width: 52ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }

.hero-strip {
  border-top: 1px solid var(--line-dark);
  background: rgba(0,0,0,.18);
}
.hero-strip ul {
  display: flex; flex-wrap: wrap;
  gap: 14px 44px;
  list-style: none; margin: 0; padding: 22px 0;
}
.hero-strip li {
  display: flex; align-items: center; gap: 12px;
  font-family: "Saira Condensed", sans-serif;
  text-transform: uppercase; letter-spacing: .08em;
  font-weight: 600; font-size: .96rem; color: #c4d0d5;
}
.hero-strip li .dot { width: 8px; height: 8px; background: var(--teal); transform: rotate(45deg); }

/* ---------- Chevron accent (rappel de la carte) ---------- */
.chev-divider {
  height: 6px;
  background: var(--teal);
  -webkit-mask: linear-gradient(135deg, #000 25%, transparent 0) -14px 0 / 28px 100%;
  mask: linear-gradient(135deg, #000 25%, transparent 0) -14px 0 / 28px 100%;
}

/* ---------- Service cards ---------- */
.grid { display: grid; gap: 22px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px 30px;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.card:hover { border-color: #c7d6da; box-shadow: var(--shadow-md); transform: translateY(-3px); }
.card .ico {
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  background: var(--teal-soft);
  color: var(--teal-deep);
  border-radius: var(--radius);
  margin-bottom: 20px;
}
.card .ico svg { width: 28px; height: 28px; }
.card h3 { margin-bottom: .35em; }
.card p { color: var(--muted); margin: 0; font-size: .98rem; }

/* number tag for grouped services */
.svc-block { display: grid; grid-template-columns: 280px 1fr; gap: 40px; align-items: start; }
.svc-block + .svc-block { margin-top: 64px; padding-top: 64px; border-top: 1px solid var(--line); }
.svc-block .svc-head .num {
  font-family: "Saira Condensed", sans-serif;
  font-size: 3.4rem; font-weight: 700; color: var(--teal);
  line-height: 1;
}
.svc-block .svc-head h2 { font-size: 2rem; margin-top: 10px; }
.svc-block .svc-head p { color: var(--muted); font-size: 1rem; }

.svc-list { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.svc-item {
  display: flex; gap: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 3px solid var(--teal);
  border-radius: var(--radius);
  padding: 20px 22px;
}
.svc-item .ico { color: var(--teal-deep); flex: none; margin-top: 2px; }
.svc-item .ico svg { width: 24px; height: 24px; }
.svc-item h4 { font-size: 1.12rem; margin: 0 0 4px; text-transform: none; font-family: "Saira", sans-serif; font-weight: 600; color: var(--navy); letter-spacing: 0; }
.svc-item p { margin: 0; font-size: .94rem; color: var(--muted); line-height: 1.55; }

/* ---------- Feature / why list ---------- */
.feature-row { display: grid; grid-template-columns: 1.05fr 1fr; gap: 60px; align-items: center; }
.feature-list { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 22px; }
.feature-list li { display: flex; gap: 18px; }
.feature-list .mark {
  flex: none; width: 42px; height: 42px;
  border: 1px solid var(--line); border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  color: var(--teal-deep); background: var(--bg-soft);
}
.feature-list .mark svg { width: 22px; height: 22px; }
.feature-list h4 { font-family: "Saira", sans-serif; text-transform: none; letter-spacing: 0; font-size: 1.1rem; font-weight: 600; margin: 2px 0 4px; color: var(--navy); }
.feature-list p { margin: 0; color: var(--muted); font-size: .96rem; }

/* media panel (placeholder photo zone) */
.media-panel {
  position: relative;
  border-radius: var(--radius-lg);
  min-height: 420px;
  background:
    repeating-linear-gradient(135deg, var(--bg-soft) 0 14px, var(--bg-soft-2) 14px 28px);
  border: 1px solid var(--line);
  display: flex; align-items: flex-end;
  overflow: hidden;
}
.media-panel .tag {
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: .72rem; letter-spacing: .04em;
  color: var(--muted-light);
  background: rgba(255,255,255,.85);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 6px 10px;
  margin: 16px;
}
.media-panel.navy {
  background:
    repeating-linear-gradient(135deg, #1b2d39 0 14px, #1f3340 14px 28px);
  border-color: var(--navy-3);
}
.media-panel.navy .tag { background: rgba(0,0,0,.35); color: #8aa0a8; border-color: var(--navy-3); }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--teal);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.cta-band::after {
  content: "";
  position: absolute; right: -40px; top: -40px; bottom: -40px; width: 320px;
  background: var(--teal-deep);
  -webkit-mask: linear-gradient(135deg, #000 40%, transparent 0) 0 0 / 60px 100%;
  mask: linear-gradient(135deg, #000 40%, transparent 0) 0 0 / 60px 100%;
  opacity: .6;
}
.cta-band .container { position: relative; z-index: 1; padding-top: 64px; padding-bottom: 64px; display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin: 0; }
.cta-band p { color: rgba(255,255,255,.85); margin: 8px 0 0; }
.cta-band .btn--primary { background: #fff; color: var(--teal-deep); }
.cta-band .btn--primary:hover { background: var(--navy); color: #fff; }

/* ---------- Page hero (interior pages) ---------- */
.page-hero {
  background: var(--navy);
  color: #fff;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(100% 120% at 90% 0%, rgba(23,145,168,.30), transparent 55%),
    linear-gradient(160deg, #1b2d39, #14222b);
}
.page-hero .container { padding-top: 78px; padding-bottom: 78px; }
.page-hero h1 { color: #fff; max-width: 18ch; }
.page-hero p { color: #b9c6cc; max-width: 56ch; margin-bottom: 0; }
.breadcrumb { font-family:"Saira Condensed",sans-serif; text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; color: #6fd0e0; margin-bottom: 18px; }
.breadcrumb a { color: #93c9d4; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: start; }
.info-card { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px; background: #fff; }
.info-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.info-list li { display: flex; gap: 18px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.info-list li:last-child { border-bottom: 0; }
.info-list .ico { flex: none; width: 44px; height: 44px; border-radius: var(--radius); background: var(--teal-soft); color: var(--teal-deep); display: flex; align-items: center; justify-content: center; }
.info-list .ico svg { width: 22px; height: 22px; }
.info-list .k { font-family:"Saira Condensed",sans-serif; text-transform: uppercase; letter-spacing: .12em; font-size: .72rem; color: var(--muted); }
.info-list .v { font-size: 1.08rem; color: var(--navy); font-weight: 500; }
.info-list a.v:hover { color: var(--teal-deep); }

.form { display: grid; gap: 18px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 7px; }
.field label { font-family:"Saira Condensed",sans-serif; text-transform: uppercase; letter-spacing: .1em; font-size: .76rem; color: var(--navy); font-weight: 600; }
.field input, .field select, .field textarea {
  font-family: "Saira", sans-serif; font-size: 1rem;
  padding: 13px 15px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: #fff; color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(23,145,168,.15);
}
.field textarea { resize: vertical; min-height: 130px; }
.form-note { font-size: .86rem; color: var(--muted); margin: 0; }

.map-wrap { border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; margin-top: 28px; }
.map-wrap iframe { width: 100%; height: 320px; border: 0; display: block; filter: grayscale(.2); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #aebbc1; padding: 64px 0 28px; }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; padding-bottom: 44px; border-bottom: 1px solid var(--line-dark); }
.footer-brand { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.footer-brand .badge { background: #fff; border-radius: var(--radius); padding: 7px; display: inline-flex; }
.footer-brand .badge img { height: 38px; }
.footer-brand .name { font-family:"Saira Condensed",sans-serif; text-transform: uppercase; font-weight: 700; font-size: 1.3rem; color: #fff; letter-spacing: .04em; line-height: 1; }
.footer-brand .name small { display:block; font-size:.56rem; letter-spacing:.24em; color:#6fd0e0; }
.site-footer p { color: #92a2a9; font-size: .96rem; max-width: 40ch; }
.footer-col h4 { font-family:"Saira Condensed",sans-serif; text-transform: uppercase; letter-spacing: .1em; font-size: .82rem; color: #fff; margin-bottom: 16px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-col a, .footer-col li { color: #aebbc1; font-size: .98rem; }
.footer-col a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding-top: 22px; font-size: .85rem; color: #7e8e95; }
.footer-bottom .sep { color: #6fd0e0; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .svc-block { grid-template-columns: 1fr; gap: 24px; }
  .feature-row { grid-template-columns: 1fr; gap: 36px; }
  .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand-col { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .section { padding: 68px 0; }
  .nav-toggle { display: flex; }
  .nav, .header-phone { display: none; }
  .header-cta .btn { display: none; }
  .nav {
    position: absolute; top: 78px; left: 0; right: 0;
    flex-direction: column; align-items: stretch;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 12px 18px 18px; gap: 2px;
    box-shadow: var(--shadow-md);
  }
  .nav.open { display: flex; }
  .nav a { padding: 14px 12px; border-radius: var(--radius); }
  .nav a.active::after { display: none; }
  .nav a.active { background: var(--teal-soft); }
  .grid--3, .grid--2, .svc-list { grid-template-columns: 1fr; }
  .hero-inner { padding: 72px 0 78px; }
  .cta-band .container { flex-direction: column; align-items: flex-start; }
  .footer-top { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto; }
  .card:hover, .btn:hover { transform: none; }
}
