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

:root {
  --navy: #042c53;
  --blue: #0c447c;
  --blue-mid: #185fa5;
  --blue-bright: #378add;
  --blue-soft: #e6f1fb;
  --blue-pale: #b5d4f4;
  --blue-text: #85b7eb;
  --ink: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --surface: #f9fafb;
  --white: #fff;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  background: var(--white);
  color: var(--ink);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

svg {
  display: block;
  width: 1em;
  height: 1em;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid #f3f4f6;
  background: #fff;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100%, 1008px);
  height: 64px;
  margin: 0 auto;
  padding: 0 24px;
  gap: 18px;
}

.logo,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
}

.logo {
  color: var(--blue);
  font-size: 17px;
  white-space: nowrap;
}

.logo-box {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--blue);
  color: var(--white);
  font-size: 18px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  color: var(--muted);
  font-size: 14px;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--blue);
}

.nav-cta,
.btn,
.contact-form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-weight: 500;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.nav-cta {
  background: var(--blue);
  color: var(--white);
  padding: 10px 20px;
  font-size: 14px;
  min-height: 42px;
  white-space: nowrap;
}

.nav-cta:hover,
.btn-primary:hover,
.contact-form button:hover {
  background: var(--navy);
}

.hero {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  color: var(--white);
  padding: 96px 24px 72px;
}

.hero::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(4, 44, 83, 0.98) 0%, rgba(4, 44, 83, 0.9) 42%, rgba(4, 44, 83, 0.58) 100%),
    url("https://images.unsplash.com/photo-1519389950473-47ba0277781c?auto=format&fit=crop&w=1800&q=80") center / cover;
}

.hero-inner,
.formations,
.why,
.contact {
  width: min(100%, 1008px);
  margin: 0 auto;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.82fr);
  align-items: center;
  max-width: 1080px;
  gap: 52px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 28px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--blue-pale);
  padding: 6px 16px;
  font-size: 13px;
}

.hero-copy {
  text-align: left;
}

.hero-badge svg {
  width: 13px;
  height: 13px;
}

.hero h1 {
  max-width: 640px;
  font-size: clamp(2.25rem, 5vw, 2.625rem);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0;
}

.hero p {
  max-width: 560px;
  margin-top: 18px;
  color: var(--blue-text);
  font-size: 17px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}

.hero-media {
  position: relative;
  min-height: 440px;
}

.hero-media > img,
.hero-photo-small img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-media > img {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.28);
}

.hero-photo-small {
  position: absolute;
  right: -24px;
  bottom: -26px;
  width: min(58%, 240px);
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 8px solid var(--navy);
  border-radius: 18px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.32);
}

.btn {
  padding: 13px 28px;
  font-size: 15px;
  min-height: 48px;
}

.btn-white {
  background: var(--white);
  color: var(--blue);
}

.btn-white:hover {
  background: var(--blue-soft);
}

.btn-ghost {
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.2);
}

.hero-stats {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 56px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 40px;
}

.hero-stats strong,
.why-stats strong {
  display: block;
  font-size: 26px;
  font-weight: 500;
  line-height: 1.2;
}

.hero-stats span {
  display: block;
  margin-top: 4px;
  color: var(--blue-text);
  font-size: 12px;
}

.section-muted {
  background: var(--surface);
}

.about,
.formations,
.why,
.contact {
  padding: 80px 24px;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 64px;
  width: min(100%, 960px);
  margin: 0 auto;
}

.about-visual {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  border-radius: 20px;
  background: var(--blue-soft);
  box-shadow: 0 24px 60px rgba(12, 68, 124, 0.16);
}

.about-visual::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, rgba(4, 44, 83, 0) 40%, rgba(4, 44, 83, 0.82) 100%);
}

.about-visual img {
  width: 100%;
  height: 100%;
  min-height: 430px;
  display: block;
  object-fit: cover;
}

.about-visual figcaption {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  z-index: 1;
  color: var(--white);
}

.about-visual strong,
.about-visual span {
  display: block;
}

.about-visual strong {
  font-size: 18px;
  font-weight: 500;
}

.about-visual span {
  max-width: 360px;
  margin-top: 6px;
  color: var(--blue-pale);
  font-size: 13px;
  line-height: 1.6;
}

.section-label {
  display: block;
  margin-bottom: 10px;
  color: var(--blue-mid);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.section-copy h2,
.section-header h2 {
  color: var(--ink);
  font-size: 28px;
  font-weight: 500;
  line-height: 1.25;
}

.section-copy p,
.section-header p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.section-copy p {
  margin-top: 14px;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.btn-primary {
  background: var(--blue);
  color: var(--white);
}

.btn-outline {
  border: 1.5px solid var(--blue);
  color: var(--blue);
}

.btn-outline:hover {
  background: var(--blue-soft);
}

.section-header {
  max-width: 540px;
  margin: 0 auto 48px;
  text-align: center;
}

.section-header p {
  margin-top: 12px;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

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

.formation-card {
  display: flex;
  flex-direction: column;
  min-height: 310px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
  overflow: hidden;
  padding: 0 0 28px;
  transition: border-color 0.2s ease;
}

.formation-card:hover,
.formation-card.featured {
  border-color: var(--blue-bright);
}

.formation-image {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: var(--blue-soft);
}

.tag {
  width: fit-content;
  margin: 22px 28px 14px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue-mid);
  padding: 4px 12px;
  font-size: 11px;
  font-weight: 500;
}

.tag.action {
  background: #eef7f2;
  color: #176a3d;
}

.card-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin: 0 28px 18px;
  border-radius: 12px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 24px;
}

.card-icon svg {
  stroke-width: 1.8;
}

.formation-card h3 {
  margin: 0 28px;
  font-size: 15px;
  font-weight: 500;
}

.formation-card p {
  flex: 1;
  margin: 10px 28px 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.formation-card .rncp-meta {
  flex: 0;
  margin-top: 8px;
  color: var(--blue-mid);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.45;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  width: fit-content;
  margin: 18px 28px 0;
  color: var(--blue-mid);
  font-size: 13px;
  font-weight: 500;
}

.text-link:hover {
  color: var(--blue);
}

.detail-hero {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(4, 44, 83, 0.96) 0%, rgba(4, 44, 83, 0.86) 54%, rgba(4, 44, 83, 0.72) 100%),
    url("https://images.unsplash.com/photo-1556761175-b413da4baf72?auto=format&fit=crop&w=1800&q=82") center / cover;
  color: var(--white);
  padding: 86px 24px 68px;
}

.detail-hero-inner,
.detail-main {
  width: min(100%, 960px);
  margin: 0 auto;
}

.breadcrumb {
  display: inline-flex;
  margin-bottom: 28px;
  color: var(--blue-pale);
  font-size: 13px;
  font-weight: 500;
}

.breadcrumb:hover {
  color: var(--white);
}

.detail-hero .tag {
  margin-bottom: 18px;
  background: rgba(255, 255, 255, 0.12);
  color: var(--blue-pale);
}

.detail-hero h1 {
  max-width: 760px;
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: 0;
}

.detail-hero p {
  max-width: 680px;
  margin-top: 20px;
  color: var(--blue-pale);
  font-size: 17px;
  line-height: 1.75;
}

.detail-hero .detail-rncp {
  width: fit-content;
  margin-top: 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  padding: 7px 14px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.45;
}

.detail-cover {
  display: block;
  width: min(100%, 860px);
  margin-top: 34px;
  aspect-ratio: 16 / 7;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 18px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

.detail-main {
  padding: 72px 24px 88px;
}

.legal-hero {
  background: var(--navy);
  color: var(--white);
  padding: 78px 24px 64px;
}

.legal-inner,
.legal-content {
  width: min(100%, 900px);
  margin: 0 auto;
}

.legal-hero h1 {
  max-width: 720px;
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  font-weight: 500;
  line-height: 1.12;
}

.legal-hero p {
  max-width: 680px;
  margin-top: 18px;
  color: var(--blue-pale);
  font-size: 17px;
  line-height: 1.75;
}

.legal-content {
  display: grid;
  gap: 18px;
  padding: 64px 24px 86px;
}

.legal-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
  padding: 28px;
}

.legal-card h2 {
  margin-bottom: 12px;
  color: var(--ink);
  font-size: 20px;
  font-weight: 500;
}

.legal-card p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}

.legal-card a {
  color: var(--blue);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  padding-left: 20px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}

.highlight-card {
  border-color: var(--blue-pale);
  background: var(--blue-soft);
}

.highlight-card p {
  color: var(--ink);
}

.program-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 42px;
  align-items: start;
}

.program-content {
  display: grid;
  gap: 18px;
}

.program-card,
.program-side-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
  padding: 28px;
}

.program-card h2,
.program-side-card h2 {
  margin-bottom: 14px;
  color: var(--ink);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.3;
}

.program-card p,
.program-card li,
.program-side-card p,
.program-side-card li {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}

.positioning-note {
  margin-top: 16px;
  border-left: 3px solid var(--blue-bright);
  background: var(--blue-soft);
  padding: 12px 14px;
  color: var(--ink);
  font-weight: 500;
}

.program-card ul,
.program-side-card ul {
  display: grid;
  gap: 8px;
  padding-left: 18px;
}

.program-aside {
  position: sticky;
  top: 88px;
  display: grid;
  gap: 14px;
}

.program-side-card {
  background: var(--surface);
}

.program-side-card dl {
  display: grid;
  gap: 14px;
}

.program-side-card dt {
  color: var(--blue-mid);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.program-side-card dd {
  margin-top: 3px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
}

.side-cta {
  display: grid;
  gap: 10px;
}

.why-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 16px;
}

.why-stats article {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
  padding: 22px;
  text-align: center;
}

.why-stats strong {
  color: var(--blue);
  font-size: 28px;
}

.why-stats span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.feature {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  padding: 18px;
}

.feature-icon,
.info-block > span {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 16px;
  font-weight: 600;
}

.feature h3,
.info-block h3 {
  font-size: 14px;
  font-weight: 500;
}

.feature p,
.info-block p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  outline: none;
  padding: 11px 14px;
  transition: border-color 0.2s ease;
}

.contact-form input,
.contact-form select {
  min-height: 46px;
}

.contact-form select {
  color: #9ca3af;
}

.contact-form textarea {
  min-height: 120px;
  resize: vertical;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--blue-bright);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #9ca3af;
}

.contact-form button {
  width: 100%;
  border: 0;
  background: var(--blue);
  color: var(--white);
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  padding: 13px;
  transition: background 0.2s, opacity 0.2s;
}

.contact-form button:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

#contact-feedback {
  display: none;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.5;
}

#contact-feedback.success {
  display: block;
  border: 1px solid #bbf7d0;
  background: #f0fdf4;
  color: #166534;
}

#contact-feedback.error {
  display: block;
  border: 1px solid var(--blue-pale);
  background: var(--blue-soft);
  color: var(--blue);
}

.contact-details > p {
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.info-block {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 20px;
}

.info-block > span {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

.footer {
  background: var(--navy);
  color: var(--blue-text);
  padding: 28px 24px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: min(100%, 960px);
  margin: 0 auto;
  font-size: 12px;
}

.footer-brand {
  color: var(--white);
  font-size: 14px;
}

.footer-logo {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: var(--blue-mid);
  color: var(--white);
  font-size: 14px;
}

.footer-legal {
  text-align: center;
  line-height: 1.7;
}

.footer a {
  color: var(--white);
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.35);
  text-underline-offset: 3px;
}

.footer a:hover {
  text-decoration-color: var(--white);
}

@media (max-width: 820px) {
  .nav-links {
    display: none;
  }

  .split,
  .hero-inner,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about,
  .formations,
  .why,
  .contact {
    padding-top: 68px;
    padding-bottom: 68px;
  }

  .hero {
    text-align: center;
  }

  .hero::before {
    background:
      linear-gradient(180deg, rgba(4, 44, 83, 0.94) 0%, rgba(4, 44, 83, 0.92) 52%, rgba(4, 44, 83, 0.78) 100%),
      url("https://images.unsplash.com/photo-1519389950473-47ba0277781c?auto=format&fit=crop&w=1400&q=80") center / cover;
  }

  .hero-copy {
    text-align: center;
  }

  .hero p,
  .hero h1 {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-media {
    min-height: 360px;
    width: min(100%, 560px);
    margin: 0 auto;
  }

  .hero-photo-small {
    right: 12px;
  }

  .cards-grid,
  .cards-grid.expanded {
    grid-template-columns: repeat(2, 1fr);
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .formation-card {
    max-width: none;
    width: auto;
    margin: 0;
  }

  .program-layout {
    grid-template-columns: 1fr;
  }

  .program-aside {
    position: static;
  }

  .why-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 15px;
  }

  .nav-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    height: auto;
    min-height: 64px;
    padding: 12px 18px;
    gap: 10px;
  }

  .logo {
    font-size: 15px;
  }

  .logo-box {
    width: 34px;
    height: 34px;
  }

  .nav-cta {
    padding: 9px 12px;
    font-size: 12px;
    min-height: 38px;
  }

  .hero,
  .about,
  .formations,
  .why,
  .contact {
    padding-left: 18px;
    padding-right: 18px;
  }

  .hero {
    padding-top: 64px;
    padding-bottom: 58px;
  }

  .hero-badge {
    max-width: 100%;
    justify-content: center;
    white-space: normal;
    line-height: 1.45;
  }

  .hero h1,
  .detail-hero h1,
  .legal-hero h1 {
    font-size: 32px;
    line-height: 1.15;
  }

  .hero p,
  .detail-hero p,
  .legal-hero p {
    font-size: 15px;
    line-height: 1.75;
  }

  .hero-media {
    min-height: 300px;
  }

  .hero-media > img,
  .hero-photo-small {
    border-radius: 14px;
  }

  .hero-photo-small {
    bottom: -18px;
    width: 52%;
    border-width: 6px;
  }

  .hero-actions,
  .button-row {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions .btn,
  .button-row .btn {
    width: 100%;
  }

  .hero-stats,
  .why-stats,
  .form-row {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    gap: 18px;
    margin-top: 44px;
    padding-top: 30px;
  }

  .section-header {
    margin-bottom: 34px;
  }

  .section-copy h2,
  .section-header h2 {
    font-size: 26px;
  }

  .formation-image {
    aspect-ratio: 4 / 3;
  }

  .tag {
    margin: 20px 22px 12px;
  }

  .card-icon {
    margin: 0 22px 16px;
  }

  .formation-card h3,
  .formation-card p,
  .text-link {
    margin-left: 22px;
    margin-right: 22px;
  }

  .program-card,
  .program-side-card,
  .legal-card {
    padding: 22px;
  }

  .detail-hero,
  .detail-main,
  .legal-hero,
  .legal-content {
    padding-left: 18px;
    padding-right: 18px;
  }

  .detail-hero {
    padding-top: 56px;
    padding-bottom: 50px;
  }

  .detail-cover {
    margin-top: 28px;
    aspect-ratio: 4 / 3;
    border-radius: 14px;
  }

  .about-visual,
  .about-visual img {
    min-height: 340px;
  }

  .about-visual figcaption {
    left: 18px;
    right: 18px;
    bottom: 18px;
  }

  .footer {
    padding: 28px 18px;
  }
}

@media (max-width: 420px) {
  .nav-inner {
    grid-template-columns: 1fr auto;
  }

  .hero,
  .about,
  .formations,
  .why,
  .contact {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero h1,
  .detail-hero h1,
  .legal-hero h1 {
    font-size: 29px;
  }

  .hero-media {
    min-height: 260px;
  }

  .hero-photo-small {
    display: none;
  }

  .about-visual,
  .about-visual img {
    min-height: 300px;
  }

  .feature,
  .info-block {
    gap: 12px;
  }

  .footer-legal {
    max-width: 280px;
  }
}

/* ─── Navigation : wrapper droite ───────────────────── */

.nav-end {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* ─── Hamburger ──────────────────────────────────────── */

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--blue);
  cursor: pointer;
  transition: background 0.18s;
}

.nav-toggle:hover {
  background: var(--blue-soft);
}

.nav-toggle svg {
  width: 22px;
  height: 22px;
}

.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-menu { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

/* CTA dans le menu mobile (masqué sur desktop) */
.nav-cta-mobile { display: none; }

/* ─── Grilles responsives supplémentaires ───────────── */

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

.feature--vertical {
  flex-direction: column;
  gap: 12px;
}

/* ─── Menu mobile overlay ────────────────────────────── */

@media (max-width: 820px) {
  .nav-toggle { display: flex; }

  .nav-links.open {
    display: flex !important;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 200;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border-top: 1px solid #e5e7eb;
    overflow-y: auto;
    padding-bottom: 24px;
  }

  .nav-links.open a {
    display: block;
    padding: 15px 24px;
    font-size: 16px;
    color: #111827;
    border-bottom: 1px solid #e5e7eb;
    transition: background 0.12s, color 0.12s;
  }

  .nav-links.open a:last-child { border-bottom: 0; }

  .nav-links.open a:hover {
    background: #f9fafb;
    color: #0c447c;
  }

  .nav-cta-mobile {
    display: block !important;
    margin: 16px 24px 0;
    padding: 14px 24px !important;
    border: 0 !important;
    border-radius: 8px;
    background: var(--blue);
    color: var(--white) !important;
    font-weight: 500;
    font-size: 15px !important;
    text-align: center;
    transition: background 0.18s;
  }

  .nav-cta-mobile:hover { background: var(--navy); }

  .features-grid--three {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ─── Mobile < 560px ─────────────────────────────────── */

@media (max-width: 560px) {
  .nav-cta { display: none; }

  .cards-grid,
  .cards-grid.expanded {
    grid-template-columns: 1fr;
  }

  .features-grid--three {
    grid-template-columns: 1fr;
  }
}
