:root {
  --blue: #285ba2;
  --blue-dark: #1a3e72;
  --blue-light: #e8f0fc;
  --blue-mid: #4a7fc1;
  --accent: #f0a500;
  --text: #1a1a2e;
  --text-muted: #6b7280;
  --bg: #ffffff;
  --bg-alt: #f8fafd;
  --border: #e2e8f0;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.65;
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: .75rem;
  text-decoration: none;
}
.nav-logo .logo-icon {
  width: 38px; height: 38px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
}
.nav-logo .logo-icon svg { width: 22px; height: 22px; fill: white; }
.nav-logo span {
  font-size: .95rem;
  font-weight: 700;
  color: var(--blue);
  letter-spacing: -.01em;
  line-height: 1.2;
}
.nav-logo small { display: block; font-weight: 400; color: var(--text-muted); font-size: .75rem; }

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}
.nav-links a {
  text-decoration: none;
  color: var(--text);
  font-size: .88rem;
  font-weight: 500;
  transition: color .2s;
}
.nav-links a:hover { color: var(--blue); }

.nav-cta {
  background: var(--blue);
  color: white !important;
  padding: .5rem 1.25rem;
  border-radius: 6px;
  font-size: .85rem !important;
  transition: background .2s !important;
}
.nav-cta:hover { background: var(--blue-dark) !important; color: white !important; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all .3s;
}

/* ── HERO ── */
.hero {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 60%, var(--blue-mid) 100%);
  display: flex;
  align-items: center;
  padding: 6rem 2rem 4rem;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -30%; right: -10%;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: rgba(255,255,255,.04);
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -20%; left: 5%;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: rgba(255,255,255,.03);
}
.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative; z-index: 1;
}
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(255,255,255,.12);
  color: rgba(255,255,255,.9);
  border: 1px solid rgba(255,255,255,.2);
  padding: .35rem .9rem;
  border-radius: 20px;
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.hero h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  color: white;
  line-height: 1.15;
  letter-spacing: -.02em;
  margin-bottom: 1.25rem;
}
.hero h1 em {
  font-style: normal;
  color: var(--accent);
}
.hero-desc {
  color: rgba(255,255,255,.8);
  font-size: 1.05rem;
  margin-bottom: 2rem;
  max-width: 480px;
}
.hero-btns {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.btn-primary {
  background: var(--accent);
  color: var(--text);
  padding: .85rem 2rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: .95rem;
  text-decoration: none;
  transition: transform .2s, box-shadow .2s;
  display: inline-block;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.2); }
.btn-ghost {
  background: rgba(255,255,255,.12);
  color: white;
  padding: .85rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: .95rem;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,.25);
  transition: background .2s;
  display: inline-block;
}
.btn-ghost:hover { background: rgba(255,255,255,.2); }

.hero-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.hero-card {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 12px;
  padding: 1.5rem;
  backdrop-filter: blur(10px);
  transition: transform .2s;
}
.hero-card:hover { transform: translateY(-4px); }
.hero-card .hc-icon {
  width: 42px; height: 42px;
  background: rgba(255,255,255,.15);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: .9rem;
}
.hero-card .hc-icon svg { width: 22px; height: 22px; stroke: white; fill: none; }
.hero-card h3 { color: white; font-size: .92rem; font-weight: 700; margin-bottom: .3rem; }
.hero-card p { color: rgba(255,255,255,.7); font-size: .8rem; line-height: 1.5; }

/* ── ZONE ── */
.zone-bar {
  background: var(--blue-dark);
  color: rgba(255,255,255,.85);
  padding: 1rem 2rem;
  text-align: center;
  font-size: .88rem;
}
.zone-bar strong { color: white; }

/* ── SECTIONS ── */
section { padding: 5rem 2rem; }
.section-inner { max-width: 1200px; margin: 0 auto; }
.section-label {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: .75rem;
}
.section-title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--text);
  margin-bottom: 1rem;
  line-height: 1.2;
}
.section-sub {
  color: var(--text-muted);
  max-width: 600px;
  font-size: 1rem;
  margin-bottom: 3rem;
}

/* ── FORMATIONS ── */
#formations { background: var(--bg-alt); }
.formations-tabs {
  display: flex;
  gap: .5rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}
.tab-btn {
  padding: .55rem 1.2rem;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: white;
  color: var(--text-muted);
  font-size: .85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
  font-family: Helvetica, Arial, sans-serif;
}
.tab-btn.active, .tab-btn:hover {
  background: var(--blue);
  color: white;
  border-color: var(--blue);
}
.tab-pane { display: none; }
.tab-pane.active { display: block; }

.formation-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
}
.formation-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.75rem;
  transition: box-shadow .25s, transform .25s;
  position: relative;
  overflow: hidden;
}
.formation-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--blue);
}
.formation-card:hover {
  box-shadow: 0 8px 30px rgba(40, 91, 162, .12);
  transform: translateY(-3px);
}
.fc-tag {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--blue);
  background: var(--blue-light);
  padding: .2rem .65rem;
  border-radius: 4px;
  margin-bottom: .9rem;
}
.formation-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: .6rem;
  color: var(--text);
}
.formation-card p {
  font-size: .88rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1rem;
}
.fc-meta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.fc-meta span {
  display: flex;
  align-items: center;
  gap: .35rem;
  font-size: .8rem;
  color: var(--text-muted);
  font-weight: 500;
}
.fc-meta svg { width: 14px; height: 14px; stroke: var(--blue); fill: none; }

/* ── ACCOMPAGNEMENT ── */
.accomp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}
.accomp-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  transition: all .25s;
}
.accomp-card:hover {
  border-color: var(--blue);
  box-shadow: 0 4px 20px rgba(40,91,162,.1);
}
.accomp-icon {
  width: 48px; height: 48px;
  background: var(--blue-light);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.25rem;
}
.accomp-icon svg { width: 24px; height: 24px; stroke: var(--blue); fill: none; }
.accomp-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: .5rem; }
.accomp-card p { font-size: .88rem; color: var(--text-muted); }

/* ── CERTIFICATIONS ── */
#certifications { background: var(--bg-alt); }
.certs-grid {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  align-items: stretch;
}
.cert-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  flex: 1;
  min-width: 260px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
}
.cert-badge {
  width: 56px; height: 56px;
  background: var(--blue);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
}
.cert-badge svg { width: 30px; height: 30px; stroke: white; fill: none; }
.cert-card h3 { font-size: 1.05rem; font-weight: 700; }
.cert-card p { font-size: .88rem; color: var(--text-muted); line-height: 1.6; }

/* Qualianor badge placeholder */
.qualianor-placeholder {
  background: white;
  border: 2px dashed var(--border);
  border-radius: 12px;
  padding: 2rem;
  flex: 1;
  min-width: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  text-align: center;
}
.qualianor-placeholder .ql-logo {
  width: 80px; height: 80px;
  background: var(--blue-light);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 900;
  font-size: 1.1rem;
  color: var(--blue);
  letter-spacing: -.02em;
}
.qualianor-placeholder p { font-size: .82rem; color: var(--text-muted); }

/* ── SAFETY DAY ── */
.safeday {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
  border-radius: 16px;
  padding: 3rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: center;
}
.safeday h3 { font-size: 1.6rem; font-weight: 800; color: white; margin-bottom: .75rem; }
.safeday p { color: rgba(255,255,255,.8); font-size: .95rem; max-width: 500px; }
.safeday a {
  background: var(--accent);
  color: var(--text);
  padding: .9rem 2rem;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: transform .2s;
  display: inline-block;
}
.safeday a:hover { transform: scale(1.03); }

/* ── CONTACT ── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
.contact-info h2 {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  letter-spacing: -.02em;
}
.contact-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.25rem;
  align-items: flex-start;
}
.ci-icon {
  width: 40px; height: 40px;
  background: var(--blue-light);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.ci-icon svg { width: 18px; height: 18px; stroke: var(--blue); fill: none; }
.contact-item p { font-size: .88rem; color: var(--text-muted); }
.contact-item strong { display: block; font-size: .95rem; color: var(--text); margin-bottom: .15rem; }
.contact-item a { color: var(--blue); text-decoration: none; }

form { display: flex; flex-direction: column; gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: .35rem; }
.form-group label { font-size: .85rem; font-weight: 600; color: var(--text); }
.form-group input, .form-group textarea, .form-group select {
  padding: .75rem 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: Helvetica, Arial, sans-serif;
  font-size: .9rem;
  color: var(--text);
  background: var(--bg);
  transition: border-color .2s, box-shadow .2s;
  outline: none;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(40,91,162,.1);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.submit-btn {
  background: var(--blue);
  color: white;
  border: none;
  padding: .9rem 2rem;
  border-radius: 8px;
  font-size: .95rem;
  font-weight: 700;
  cursor: pointer;
  font-family: Helvetica, Arial, sans-serif;
  transition: background .2s, transform .2s;
  margin-top: .5rem;
}
.submit-btn:hover { background: var(--blue-dark); transform: translateY(-1px); }

/* ── FOOTER ── */
footer {
  background: var(--text);
  color: rgba(255,255,255,.7);
  padding: 3rem 2rem 2rem;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
  margin-bottom: 2rem;
}
footer h4 { color: white; font-size: .9rem; font-weight: 700; margin-bottom: 1rem; }
footer p, footer a { font-size: .82rem; line-height: 1.7; }
footer a { color: rgba(255,255,255,.6); text-decoration: none; display: block; transition: color .2s; }
footer a:hover { color: white; }
footer ul { list-style: none; }
footer ul li { margin-bottom: .4rem; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-bottom p { font-size: .78rem; color: rgba(255,255,255,.4); }
.footer-dreets {
  font-size: .75rem;
  color: rgba(255,255,255,.4);
  margin-top: .75rem;
}

/* ── MOBILE ── */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-cards { display: none; }
  .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .safeday { grid-template-columns: 1fr; }
  .safeday a { align-self: flex-start; }
}
@media (max-width: 640px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .footer-top { grid-template-columns: 1fr; gap: 2rem; }
  .form-row { grid-template-columns: 1fr; }
  section { padding: 3.5rem 1.5rem; }
  .hero { padding: 5rem 1.5rem 3rem; }
}
@media (max-width: 480px) {
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 68px; left: 0; right: 0;
    background: white;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 8px 24px rgba(0,0,0,.08);
    gap: 1.25rem;
  }
}
