:root {
  --sp3-primary: #003c90;
  --sp3-primary-light: #0060cc;
  --sp3-primary-dark: #002478;
  --sp3-blue: #35bcdc;
  --sp3-blue-dark: #147998;
  --sp3-blue-darker: #135669;
  --sp3-green: #6db961;
  --sp3-green-dark: #179839;
  --sp3-green-darker: #14602d;
  --sp3-gray: #a6a8a9;
  --sp3-navy: #203668;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  color: #1a1a1a;
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-family: inherit;
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 0.5em;
}

p {
  margin: 0 0 1em;
}

a {
  color: inherit;
}

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

.container {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container--narrow {
  max-width: 48rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid rgba(166, 168, 169, 0.2);
  backdrop-filter: blur(6px);
}

.site-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1.5rem;
}

.site-header__logo img {
  height: 3rem;
  width: 3rem;
  object-fit: contain;
}

.site-nav {
  display: none;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.9rem;
  font-weight: 600;
}

.site-nav a:hover {
  color: var(--sp3-primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.phone-pill {
  display: none;
  border-radius: 999px;
  background: var(--sp3-primary);
  color: #fff;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.phone-pill:hover {
  background: var(--sp3-primary-dark);
}

.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid rgba(166, 168, 169, 0.4);
  border-radius: 0.5rem;
  background: none;
  cursor: pointer;
}

.menu-toggle span {
  width: 1.25rem;
  height: 2px;
  background: #1a1a1a;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  border-top: 1px solid rgba(166, 168, 169, 0.2);
  padding: 1rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 600;
}

.mobile-nav[hidden] {
  display: none;
}

.mobile-nav a {
  padding: 0.5rem;
  border-radius: 0.5rem;
  text-decoration: none;
}

.mobile-nav a:hover {
  background: #fafafa;
  color: var(--sp3-primary);
}

@media (min-width: 768px) {
  .site-nav {
    display: flex;
  }

  .mobile-nav {
    display: none;
  }

  .menu-toggle {
    display: none;
  }
}

@media (min-width: 640px) {
  .phone-pill {
    display: inline-block;
  }
}

/* Buttons */
.btn {
  display: inline-block;
  border-radius: 999px;
  padding: 0.75rem 1.5rem;
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.btn-primary {
  background: var(--sp3-primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--sp3-primary-dark);
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Hero (home) */
.home-hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 26rem;
  overflow: hidden;
  text-align: center;
  color: #fff;
}

.home-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(0, 60, 144, 0.92) 0%, rgba(0, 36, 120, 0.94) 55%, rgba(0, 20, 60, 0.94) 100%);
}

.home-hero__content {
  position: relative;
  max-width: 48rem;
  padding: 4rem 1.5rem;
}

.hero__kicker {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.home-hero__content h1 {
  margin: 0 auto 1.5rem;
  font-size: 2.5rem;
}

.home-hero__content p {
  margin: 0 auto 2rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.15rem;
}

/* Métier cards */
.metier-grid {
  display: grid;
  gap: 1.5rem;
  padding: 4rem 1.5rem;
  max-width: 72rem;
  margin: 0 auto;
}

@media (min-width: 640px) {
  .metier-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.metier-card {
  position: relative;
  display: block;
  height: 16rem;
  border-radius: 1rem;
  overflow: hidden;
  text-decoration: none;
  color: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
  transition: box-shadow 0.2s ease;
}

.metier-card:hover {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.metier-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.metier-card:hover img {
  transform: scale(1.05);
}

.metier-card__overlay {
  position: absolute;
  inset: 0;
  opacity: 0.85;
}

.metier-card__body {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  padding: 1.25rem;
}

.metier-card__tagline {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 0.25rem;
}

.metier-card__label {
  font-size: 1.25rem;
  margin: 0;
}

/* Page hero (métier pages) */
.page-hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  height: 20rem;
  overflow: hidden;
  color: #fff;
}

.page-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-hero__overlay {
  position: absolute;
  inset: 0;
}

.page-hero__content {
  position: relative;
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1.5rem 3rem;
}

.page-hero__tagline {
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.8);
}

.page-hero__title {
  font-size: 2.25rem;
}

/* Content sections */
.section {
  padding: 4.5rem 1.5rem;
}

.section--muted {
  background: #fafafa;
}

.section--brand {
  background: var(--sp3-primary-dark);
  color: #fff;
}

.section--brand h2 {
  color: #fff;
}

.section--brand p {
  color: rgba(255, 255, 255, 0.88);
}

.columns {
  display: grid;
  gap: 2.5rem;
  max-width: 72rem;
  margin: 0 auto;
}

@media (min-width: 640px) {
  .columns--2 {
    grid-template-columns: repeat(2, 1fr);
  }

  .columns--3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.item-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.item-list li {
  display: flex;
  gap: 0.5rem;
}

/* Certification band */
.cert-band {
  background: linear-gradient(160deg, #eaf1fb 0%, #dde8f8 100%);
  padding: 2rem 1.5rem;
  text-align: center;
  color: #1a1a1a;
}

.cert-band__label {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--sp3-primary-dark);
  margin: 0;
}

/* Footer */
.site-footer__columns {
  display: grid;
  gap: 2rem;
  max-width: 72rem;
  margin: 0 auto;
  padding: 3.5rem 1.5rem;
}

@media (min-width: 640px) {
  .site-footer__columns {
    grid-template-columns: repeat(3, 1fr);
  }
}

.site-footer__columns h3 {
  font-size: 0.9rem;
  color: var(--sp3-primary-dark);
  margin-bottom: 0.75rem;
}

.site-footer__logo {
  display: block;
  width: 4rem;
  height: 4rem;
  object-fit: contain;
  margin-bottom: 1rem;
}

.site-footer__columns ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: #4b4b4b;
}

.site-footer__columns p {
  font-size: 0.9rem;
  color: #4b4b4b;
}

.site-footer__bottom {
  border-top: 1px solid rgba(166, 168, 169, 0.2);
  text-align: center;
  padding: 1rem;
  font-size: 0.8rem;
  color: #6b6b6b;
}

.site-footer__legal {
  display: inline-flex;
  gap: 0.5rem;
  margin-left: 0.5rem;
}

.site-footer__legal a {
  color: #6b6b6b;
  text-decoration: underline;
}

.site-footer__legal a:hover {
  color: var(--sp3-primary-dark);
}

/* Forms */
.form-field {
  margin-bottom: 1rem;
}

.form-field label {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.9rem;
  font-weight: 600;
}

.form-field input,
.form-field textarea {
  width: 100%;
  border: 1px solid rgba(166, 168, 169, 0.5);
  border-radius: 0.5rem;
  padding: 0.5rem 1rem;
  font: inherit;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--sp3-primary);
}

.form-row {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .form-row--2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.flash {
  font-size: 0.9rem;
  font-weight: 600;
  margin-top: 0.75rem;
}

.flash--success {
  color: var(--sp3-green-darker);
}

.flash--error {
  color: var(--sp3-primary);
}

/* Contact page */
.contact-layout {
  display: grid;
  gap: 3rem;
  max-width: 64rem;
  margin: 0 auto;
  padding: 4rem 1.5rem;
}

@media (min-width: 640px) {
  .contact-layout {
    grid-template-columns: repeat(2, 1fr);
  }
}

.contact-info {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.contact-info a:hover {
  color: var(--sp3-primary);
}

/* Home split section */
.split-section {
  display: grid;
  gap: 2.5rem;
  align-items: center;
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

@media (min-width: 640px) {
  .split-section {
    grid-template-columns: repeat(2, 1fr);
  }
}

.split-section__image {
  position: relative;
  height: 18rem;
  border-radius: 1rem;
  overflow: hidden;
}

.split-section__image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Error pages */
.error-page {
  max-width: 640px;
  margin: 0 auto;
  padding: 5rem 1.5rem;
  text-align: center;
}

.error-page__code {
  font-size: 5rem;
  font-weight: 800;
  line-height: 1;
  color: var(--sp3-primary);
  margin: 0 0 0.5rem;
}

.error-page h1 {
  margin: 0 0 0.75rem;
}

.error-page p {
  color: #555;
  margin: 0 0 1.75rem;
}
