/* ==========================================================================
   Groupe Nuvia - site.css
   Brand tokens below are the only place colours are defined.
   Do not hard-code hex values in the pages.
   ========================================================================== */

:root {
  --navy:        #122a5c;
  --navy-dark:   #0c1c3e;
  --navy-soft:   #1b3a78;
  --gold:        #f0a81e;
  --accent:      #d1740a;
  --accent-dark: #ab5d06;

  --ink:      #1b1f27;
  --muted:    #5b6472;
  --line:     #e3e6eb;
  --bg:       #ffffff;
  --bg-soft:  #f6f7f9;

  --container: 1180px;
  --radius: 6px;
  --shadow-sm: 0 1px 3px rgba(18, 42, 92, .08);
  --shadow-md: 0 10px 30px rgba(18, 42, 92, .10);

  --font: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--accent); }
a:hover { color: var(--accent-dark); }

h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--navy);
  margin: 0 0 .6em;
}
h1 { font-size: clamp(2rem, 4.2vw, 3.1rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.1rem; }
p  { margin: 0 0 1.1em; }

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

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--navy); color: #fff; padding: 12px 20px;
}
.skip-link:focus { left: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 14px 30px;
  border: 2px solid transparent;
  border-radius: var(--radius);
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }
.btn-ghost { background: transparent; border-color: #fff; color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--navy); }
.btn-navy { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-dark); border-color: var(--navy-dark); color: #fff; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; min-height: 84px;
}
.brand { display: flex; align-items: center; flex: 0 0 auto; }
.brand img { height: 52px; width: auto; }

.nav-toggle {
  display: none;
  background: none; border: 0; padding: 10px;
  color: var(--navy); cursor: pointer;
}
.nav-toggle svg { display: block; }

.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.main-nav a {
  display: block;
  padding: 10px 14px;
  color: var(--navy);
  font-size: .86rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: var(--radius);
}
.main-nav a:hover { color: var(--accent); background: var(--bg-soft); }
.main-nav a[aria-current="page"] { color: var(--accent); }

.has-sub { position: relative; }
.sub-toggle {
  display: flex; align-items: center; gap: 6px;
  background: none; border: 0;
  padding: 10px 14px;
  font-family: inherit;
  color: var(--navy);
  font-size: .86rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  cursor: pointer; border-radius: var(--radius);
}
.sub-toggle:hover { color: var(--accent); background: var(--bg-soft); }
.sub-toggle svg { transition: transform .2s ease; }
.sub-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.submenu {
  position: absolute; top: calc(100% + 6px); left: 0;
  min-width: 260px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 8px;
  display: none;
  flex-direction: column;
  gap: 2px;
}
.submenu a { text-transform: none; letter-spacing: 0; font-size: .95rem; }
.has-sub.open .submenu { display: flex; }

.nav-cta { margin-left: 10px; padding: 11px 22px; font-size: .82rem; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: #fff;
  background: var(--navy-dark) center / cover no-repeat;
  display: flex; align-items: center;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(8,18,40,.88) 0%, rgba(8,18,40,.68) 45%, rgba(8,18,40,.34) 100%);
}
.hero > .container { position: relative; z-index: 1; }
.hero-home { min-height: 640px; padding: 110px 0; }
.hero-page { min-height: 340px; padding: 80px 0; }
.hero h1 { color: #fff; max-width: 26ch; }
.hero-page h1 { max-width: none; }
.hero-lead { font-size: 1.2rem; max-width: 56ch; color: rgba(255,255,255,.92); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.eyebrow {
  display: inline-block;
  font-size: .78rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}

/* ---------- Sections ---------- */
.section { padding: 92px 0; }
.section-soft { background: var(--bg-soft); }
.section-head { max-width: 62ch; margin-bottom: 52px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.08rem; margin-bottom: 0; }
.rule { width: 64px; height: 4px; background: var(--gold); border: 0; margin: 0 0 22px; border-radius: 2px; }
.section-head.center .rule { margin-left: auto; margin-right: auto; }

/* ---------- Cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card-media { aspect-ratio: 1 / 1; overflow: hidden; background: var(--bg-soft); }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 26px 26px 30px; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { margin-bottom: .5em; }
.card-body p { color: var(--muted); flex: 1; }
.card-link {
  font-weight: 700; font-size: .85rem; letter-spacing: .06em; text-transform: uppercase;
  text-decoration: none; color: var(--accent);
}
.card-link:hover { text-decoration: underline; }
.card-link::after { content: " \2192"; }

/* ---------- Split (text + image) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split-media img { border-radius: var(--radius); box-shadow: var(--shadow-md); width: 100%; }
.split.reverse .split-media { order: 2; }

/* ---------- Lists ---------- */
.ticks { list-style: none; margin: 0 0 1.4em; padding: 0; }
.ticks li { position: relative; padding: 0 0 0 30px; margin-bottom: 12px; color: var(--muted); }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .62em;
  width: 9px; height: 9px; border-radius: 2px; background: var(--gold);
}
.ticks strong { color: var(--ink); }

.entity-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.entity-list li {
  background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--gold);
  border-radius: var(--radius); padding: 22px 26px;
}
.entity-list h3 { font-size: 1.12rem; margin-bottom: .35em; }
.entity-list p { margin: 0; color: var(--muted); }

.service-groups { display: grid; grid-template-columns: repeat(2, 1fr); gap: 34px; }
.service-group {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px;
}
.service-group h3 { display: flex; align-items: baseline; gap: 12px; }
.service-group .num { color: var(--gold); font-size: .95rem; font-weight: 700; }
.service-group .ticks { margin-bottom: 0; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.stat { text-align: center; padding: 30px 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.stat-num { display: block; font-size: 2.6rem; font-weight: 700; color: var(--navy); line-height: 1.1; }
.stat-label { color: var(--muted); font-size: .98rem; }

/* ---------- Certifications ---------- */
.cert-row {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 28px;
}
.cert {
  display: flex; align-items: center; justify-content: center;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 34px; min-height: 130px; box-shadow: var(--shadow-sm);
}
.cert img { max-height: 72px; width: auto; }
.cert-note { text-align: center; color: var(--muted); font-size: .95rem; margin-top: 30px; margin-bottom: 0; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--navy); color: #fff; padding: 72px 0; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.85); max-width: 58ch; margin: 0 auto; }
.cta-inner { text-align: center; }
.cta-inner .btn { margin-top: 30px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 64px; align-items: start; }
.field { margin-bottom: 20px; }
.field label { display: block; font-weight: 700; font-size: .9rem; margin-bottom: 8px; color: var(--navy); }
.field input, .field textarea {
  width: 100%; font-family: inherit; font-size: 1rem; color: var(--ink);
  padding: 13px 15px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: #fff;
}
.field input:focus, .field textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.field textarea { min-height: 170px; resize: vertical; }
.hp { position: absolute; left: -9999px; }
.form-note { color: var(--muted); font-size: .88rem; margin-top: 16px; }

.info-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; }
.info-card + .info-card { margin-top: 26px; }
.info-card h3 { font-size: 1.15rem; }
.info-list { list-style: none; margin: 0; padding: 0; }
.info-list li { display: flex; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.info-list li:last-child { border-bottom: 0; }
.info-list .k { color: var(--muted); min-width: 108px; flex: 0 0 auto; font-size: .95rem; }
.info-list .v { font-weight: 600; }
.info-list a { text-decoration: none; }
.info-list a:hover { text-decoration: underline; }

.alert { border-radius: var(--radius); padding: 16px 20px; margin-bottom: 26px; font-size: .97rem; }
.alert-ok  { background: #eaf6ee; border: 1px solid #bcdfc8; color: #1d5b31; }
.alert-err { background: #fdecea; border: 1px solid #f5c2bd; color: #8c2018; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-dark); color: rgba(255,255,255,.75); padding: 66px 0 0; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; padding-bottom: 48px; }
.site-footer h4 { color: #fff; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 18px; }
.site-footer a { color: rgba(255,255,255,.75); text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 10px; }
.footer-logo { height: 54px; width: auto; margin-bottom: 20px; background: #fff; padding: 8px 14px; border-radius: var(--radius); }
.footer-about p { max-width: 42ch; margin-bottom: 0; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.14);
  padding: 22px 0 26px;
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between;
  font-size: .88rem; color: rgba(255,255,255,.6);
}
.footer-bottom p { margin: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .cards { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .split.reverse .split-media { order: 0; }
  .service-groups { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 44px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .stats { grid-template-columns: 1fr; }

  .nav-toggle { display: block; }
  .main-nav {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    background: #fff;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    padding: 14px 24px 24px;
    max-height: calc(100vh - 84px);
    overflow-y: auto;
  }
  .site-header.nav-open .main-nav { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .main-nav a, .sub-toggle { padding: 14px 4px; width: 100%; text-align: left; }
  .has-sub { position: static; }
  .sub-toggle { justify-content: space-between; }
  .submenu {
    position: static; border: 0; box-shadow: none; padding: 0 0 8px 18px;
    min-width: 0; border-left: 2px solid var(--line); margin-left: 4px;
  }
  .nav-cta { margin: 16px 0 0; text-align: center; }
  .section { padding: 68px 0; }
  .hero-home { min-height: 520px; padding: 84px 0; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .container { padding: 0 18px; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; text-align: center; }
  .cert { padding: 18px 24px; min-height: 110px; }
  .cert img { max-height: 58px; }
  .info-list li { flex-direction: column; gap: 2px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}
