:root {
  --bg: #0f172a;
  --bg-light: #f7f7f7;
  --primary: #d00000;
  --primary-dark: #a10303;
  --text: #111827;
  --muted: #6b7280;
  --radius: 1.25rem;
  --shadow: 0 10px 30px rgba(0,0,0,.08);
  --container: 1180px;
  --white: #ffffff;
  --accent: #ffd60a;
  --line: rgba(0,0,0,.06);
}

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

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  color: var(--text);
  background: #fff;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
.container { width: min(100% - 2rem, var(--container)); margin-inline: auto; }

.topbar {
  background: #0f172a;
  color: #fff;
  font-size: .85rem;
  padding: .4rem 0;
}
.topbar .flex { display: flex; gap: 1rem; }
.topbar a { color: #fff; }
.topbar .divider { opacity: .3; margin-inline: .5rem; }

.navbar {
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(0,0,0,.03);
  box-shadow: 0 6px 20px rgba(0,0,0,.02);
}

.nav-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 68px;
}

.logo { display: flex; align-items: center; gap: .7rem; }
.logo-icon {
  background: rgba(208,0,0,.1);
  width: 40px; height: 40px;
  border-radius: 1rem;
  display: grid; place-items: center;
  font-size: 1.2rem;
}
.logo-text small { display: block; font-size: .7rem; color: #6b7280; margin-top: -.3rem; }

.nav-links { display: flex; gap: 1rem; list-style: none; }
.nav-links a { padding: .35rem .6rem; border-radius: .4rem; transition: .2s; font-weight: 500; }
.nav-links a:hover { background: rgba(208,0,0,.07); color: var(--primary); }

.btn {
  background: var(--primary);
  color: #fff;
  padding: .65rem 1.3rem;
  border-radius: .7rem;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-weight: 600;
  transition: .2s;
  border: none;
  cursor: pointer;
}
.btn:hover { background: var(--primary-dark); }
.btn-secondary { background: rgba(208,0,0,.08); color: var(--primary); font-weight: 600; }
.btn-small { padding: .4rem .8rem; font-size: .85rem; }

.hero {
  padding: 4.5rem 0 5rem;
  background: radial-gradient(circle at top, rgba(208,0,0,.12), #fff 45%);
}
.hero-small { padding: 3.5rem 0 3.5rem; background: #f9fafb; }
.hero h1 { font-size: clamp(2.4rem, 5vw, 3.2rem); margin-bottom: 1.2rem; }
.hero p { max-width: 42rem; color: #4b5563; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr .8fr;
  gap: 2rem;
  align-items: center;
}
.hero-text h1 { line-height: 1.1; }
.hero-text p { font-size: 1.05rem; max-width: 38rem; }
.hero-actions { display: flex; gap: 1rem; margin: 1.5rem 0 1rem; flex-wrap: wrap; }
.hero-badges { display: flex; gap: .75rem; flex-wrap: wrap; }
.badge {
  background: #fff;
  border-radius: 999px;
  padding: .35rem .85rem;
  font-size: .8rem;
  border: 1px solid rgba(208,0,0,.12);
}

.hero-card {
  background: #fff;
  border-radius: 1.4rem;
  padding: 1.5rem 1.6rem;
  box-shadow: var(--shadow);
  border: 1px solid rgba(208,0,0,.05);
}

.section { padding: 4rem 0; }
.section-alt { background: #f9fafb; }
.section-header { text-align: center; margin-bottom: 2.4rem; }
.section-header p { max-width: 45rem; margin: 0 auto; color: var(--muted); }

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.5rem;
}
.card {
  background: #fff;
  border-radius: 1.2rem;
  padding: 1.4rem 1.5rem 1.2rem;
  box-shadow: var(--shadow);
  border: 1px solid rgba(0,0,0,.025);
}
.card-icon {
  width: 45px; height: 45px;
  background: rgba(208,0,0,.12);
  border-radius: 1rem;
  display: grid; place-items: center;
  font-size: 1.4rem;
  margin-bottom: 1rem;
}
.card p { color: var(--muted); }

.formation-grid {
  display: grid;
  grid-template-columns: 1.3fr .7fr;
  gap: 2rem;
  align-items: center;
}

.list-check { list-style: none; padding: 0; margin: 1rem 0; }
.list-check li { padding-left: 1.4rem; position: relative; margin-bottom: .6rem; }
.list-check li::before {
  content: "✔"; position: absolute; left: 0; top: 0;
  color: var(--primary); font-size: .7rem; margin-top: .2rem;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 2.5rem;
  align-items: center;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 1rem;
}
.stat { background: #fff; border-radius: 1.1rem; padding: 1.3rem 1.1rem; text-align: center; box-shadow: var(--shadow); }
.stat-number { display: block; font-size: 1.8rem; font-weight: 700; color: var(--primary); }
.stat-label { color: var(--muted); font-size: .8rem; }

.contact-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 2.2rem;
  align-items: start;
}
.contact-form { background: #fff; border-radius: 1.2rem; padding: 1.5rem; box-shadow: var(--shadow); }

.form-group { margin-bottom: 1rem; }
label { display: block; margin-bottom: .35rem; font-weight: 500; }
input, select, textarea {
  width: 100%;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: .6rem;
  padding: .5rem .6rem;
  font-size: .9rem;
  font-family: inherit;
  transition: .15s;
  background: #fff;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: rgba(208,0,0,.6);
  box-shadow: 0 0 0 3px rgba(208,0,0,.08);
}

.footer {
  background: #0f172a;
  color: #fff;
  padding: 1.5rem 0;
  margin-top: 3rem;
}
.footer-flex { display: flex; justify-content: space-between; align-items: center; gap: 1rem; font-size: .85rem; }
.footer a { color: rgba(255,255,255,.8); }

.burger { display: none; background: none; border: none; width: 42px; height: 36px; flex-direction: column; justify-content: space-between; padding: 5px 4px; cursor: pointer; }
.burger span { height: 3px; background: #0f172a; border-radius: 999px; transition: .2s; }

@media (max-width: 1000px) {
  .hero-grid, .formation-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 880px) {
  .nav-links {
    position: absolute;
    top: 66px;
    left: 0; right: 0;
    background: #fff;
    flex-direction: column;
    gap: 0;
    border-bottom: 1px solid rgba(0,0,0,.05);
    transform: translateY(-200%);
    transition: .2s;
  }
  .nav-links li { border-top: 1px solid rgba(0,0,0,.03); }
  .nav-links a { display: block; padding: .8rem 1rem; }
  .burger { display: flex; }
  .nav-links.open { transform: translateY(0); }
  .topbar { display: none; }
  .hero { padding-top: 3.5rem; }
  .footer-flex { flex-direction: column; text-align: center; }
}

@media (max-width: 500px) {
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .cards-grid { grid-template-columns: 1fr; }
}
