:root {
  --navy: #004052;
  --navy-deep: #012833;
  --teal: #00a7b5;
  --teal-dark: #00838f;
  --ink: #1a2b3c;
  --muted: #5a6b7a;
  --paper: #f6f8fa;
  --white: #ffffff;
  --line: #d7e1e8;
  --radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 18px; }
body {
  margin: 0;
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--white);
  font-size: 1.125rem;
  line-height: 1.75;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.skip-link { position: absolute; left: -999px; top: 8px; }
.skip-link:focus { left: 12px; background: #fff; padding: 8px 12px; z-index: 20; }

.wrap { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }

.topbar {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  z-index: 40;
}
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; position: relative; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; min-width: 0; }
.brand img { width: 52px; height: 52px; object-fit: contain; }
.brand strong { display: block; letter-spacing: .08em; font-size: 17px; color: var(--navy); }
.brand span { display: block; font-size: 14px; color: var(--teal-dark); }
.nav-main { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.nav-main a:not(.btn) { text-decoration: none; font-size: 17px; color: var(--navy); }
.nav-main a:not(.btn):hover { color: var(--teal); }
.nav-cta { color: #fff; }
.burger {
  display: none;
  width: 44px; height: 44px; padding: 10px 9px;
  border: 0; background: transparent; cursor: pointer;
  flex-direction: column; justify-content: space-between;
}
.burger span {
  display: block; height: 3px; width: 100%;
  background: var(--navy); border-radius: 99px; transition: .2s transform, .2s opacity, .2s background;
}
.burger:hover span,
.burger:focus-visible span { background: var(--teal); }
body.nav-open { overflow: hidden; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 15px 26px; border-radius: 999px;
  text-decoration: none; font-weight: 700; border: 0; cursor: pointer; font-size: 1.05rem;
}
.btn.nav-cta { display: none; }
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover,
.btn-primary:focus-visible { background: var(--navy); color: #fff; }
.btn-ghost { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.4); }
.btn-ghost:hover,
.btn-ghost:focus-visible { background: #fff; color: var(--navy); border-color: #fff; }
.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover,
.btn-dark:focus-visible { background: var(--teal); color: #fff; }
.nav-main .btn-primary,
.nav-main .btn-primary:hover { color: #fff; }

.hero {
  background: linear-gradient(135deg, var(--navy-deep), var(--navy) 55%, #0e4d5c);
  color: #fff; padding: 56px 0 0; position: relative; overflow: hidden;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 28px; align-items: stretch; }
.kicker { color: var(--teal); letter-spacing: .16em; font-weight: 700; font-size: 15px; text-transform: uppercase; }
.hero h1 { font-family: "Fraunces", Georgia, serif; font-size: clamp(34px, 5vw, 50px); line-height: 1.15; margin: 12px 0 16px; }
.hero h1 em { font-style: normal; color: var(--teal); }
.hero p.lead { font-size: 1.28rem; max-width: 42ch; color: #d7e8ee; line-height: 1.7; }
.hero-copy { padding: 28px 0 64px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.hero-photo {
  position: relative; min-height: 420px;
  background: #123 url("../images/etudiante.png") center / cover no-repeat;
  clip-path: polygon(12% 0, 100% 0, 100% 100%, 0 100%);
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; display: none; }

.hero-hybrid {
  padding: 28px 0 0;
}
.hero-hybrid .hero-grid {
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 440px);
  align-items: center;
  gap: 12px;
  min-height: 0;
}
.hero-hybrid .hero-copy {
  padding: 48px 12px 48px 0;
  position: relative;
  z-index: 2;
}
.hero-photo-hybrid {
  background: none;
  clip-path: none;
  min-height: 0;
  margin: 0 0 0 -40px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  position: relative;
  z-index: 1;
}
.hero-photo-hybrid img {
  display: block;
  width: min(100%, 420px);
  height: auto;
  max-height: 520px;
  object-fit: contain;
  object-position: right bottom;
}

.services { padding: 72px 0; }
.section-title { text-align: center; max-width: 820px; margin: 0 auto 40px; }
.section-title h2 { font-family: "Fraunces", Georgia, serif; font-size: clamp(30px, 4vw, 42px); color: var(--navy); margin: 8px 0; }
.grid-4, .grid-3, .grid-2, .grid-5, .grid-6 { display: grid; gap: 18px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-5 { grid-template-columns: repeat(5, 1fr); }
.grid-6 { grid-template-columns: repeat(6, 1fr); }
.card, .icon-card { background: var(--paper); border-radius: var(--radius); padding: 24px; }
.icon-card { text-align: center; }
.ico {
  width: 78px; height: 78px; margin: 0 auto 14px;
  object-fit: contain; display: block;
}
.ico-sm { width: 42px; height: 42px; object-fit: contain; flex-shrink: 0; }
.ico-md { width: 56px; height: 56px; object-fit: contain; }
.icon-card h3, .card h3 { margin: 0 0 8px; font-size: 1.15rem; color: var(--navy); }
.icon-card p, .card p, .panel p, .pill p { font-size: 1.08rem; }

.approach { padding: 20px 0 80px; }
.panel { background: var(--navy); color: #fff; border-radius: 28px; padding: 40px; }
.panel h2 { font-family: "Fraunces", Georgia, serif; margin-top: 0; }
.panel.light { background: var(--paper); color: var(--ink); }
.check { list-style: none; padding: 0; }
.check li { padding: 10px 0 10px 28px; position: relative; font-size: 1.1rem; }
.check li::before { content: "✓"; position: absolute; left: 0; color: var(--teal); font-weight: 800; }
.hand { font-family: "Caveat", cursive; font-style: italic; color: var(--teal); font-size: 2rem; }

.subjects { padding: 0 0 80px; }
.subject {
  background: var(--navy); color: #fff; border-radius: 16px; padding: 20px;
  display: flex; align-items: center; gap: 14px;
}
.subject h3 { font-size: 1.2rem; margin: 6px 0 0; }
.subject small { color: var(--teal); letter-spacing: .08em; text-transform: uppercase; font-size: 0.95rem; }

.who { padding: 0 0 80px; }
.who-list { display: grid; gap: 12px; }
.who-item {
  display: flex; gap: 12px; align-items: center;
  background: var(--paper); padding: 16px 18px; border-radius: 14px; font-size: 1.08rem;
}
.desk { border-radius: 16px; margin-top: 16px; width: 100%; height: 180px; object-fit: cover; }

.distinct { padding: 0 0 80px; }
.pill { background: #e8f7f8; border-radius: 16px; padding: 20px; color: var(--navy); font-size: 1.05rem; text-align: center; }
.pill h3 { font-size: 1.02rem; margin: 10px 0 0; text-transform: uppercase; letter-spacing: .03em; }

.faq { padding: 20px 0 90px; }
details { background: var(--paper); border-radius: 14px; padding: 18px 20px; margin-bottom: 10px; }
summary { cursor: pointer; font-weight: 700; color: var(--navy); font-size: 1.15rem; }
details p { color: var(--muted); margin: 10px 0 0; font-size: 1.08rem; }

.cta-band {
  background: linear-gradient(90deg, var(--teal), var(--teal-dark));
  color: #fff; padding: 48px 0; text-align: center;
}
.cta-band h2 { font-family: "Fraunces", Georgia, serif; margin: 0 0 12px; font-size: clamp(26px, 3vw, 36px); }
.cta-band p { font-size: 1.15rem; }

.site-footer {
  background: var(--navy-deep);
  color: #fff;
  padding: 36px 0 18px;
}
.footer-banner {
  display: grid;
  grid-template-columns: 1fr 1px 1.1fr 1px 1.15fr;
  gap: 0 28px;
  align-items: center;
}
.footer-rule {
  width: 1px;
  align-self: stretch;
  background: repeating-linear-gradient(to bottom, rgba(255,255,255,.55) 0 4px, transparent 4px 9px);
}
.footer-col { display: flex; gap: 16px; align-items: flex-start; }
.footer-col svg { flex-shrink: 0; color: var(--teal); }
.footer-brand { color: var(--teal); font-weight: 800; letter-spacing: .06em; margin: 0 0 6px; }
.footer-col p { margin: 0; line-height: 1.45; }
.footer-contact { flex-direction: column; gap: 12px; }
.footer-row { display: flex; align-items: center; gap: 12px; text-decoration: none; color: #fff; }
.footer-row:hover { color: var(--teal); }
.footer-qr { display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: center; }
.footer-script {
  font-family: "Caveat", cursive;
  color: var(--teal);
  font-size: 2.2rem;
  line-height: 1;
  margin: 0 0 8px;
}
.footer-qr p { margin: 0; max-width: 16ch; }
.qr {
  width: 108px; height: 108px; background: #fff; padding: 6px; border-radius: 4px;
}
.tiny { margin-top: 22px; font-size: 0.92rem; color: #8aa0ad; }

@media (max-width: 980px) {
  .hero-grid, .grid-4, .grid-3, .grid-5, .grid-6 { grid-template-columns: 1fr 1fr; }
  .hero-hybrid .hero-grid { grid-template-columns: 1fr; }
  .hero-hybrid .hero-copy { padding: 32px 0 16px; }
  .hero-photo-hybrid {
    margin: 0 auto;
    justify-content: center;
    max-width: 340px;
  }
  .hero-photo-hybrid img { width: 100%; max-height: 420px; }
  .footer-banner { grid-template-columns: 1fr; gap: 28px; }
  .footer-rule { display: none; }
  .hero-photo { clip-path: none; min-height: 280px; }
  .topbar.is-open {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .burger { display: flex; z-index: 21; }
  .btn-header { display: none; }
  .btn.nav-cta { display: inline-flex; width: 100%; margin-top: 8px; }
  .nav-main {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    max-width: none;
    margin: 0;
    min-height: 100dvh;
    z-index: 20;
    background: #fff;
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: stretch;
    gap: 8px;
    padding: 88px max(28px, calc((100vw - 1180px) / 2)) 40px;
    box-sizing: border-box;
  }
  .topbar.is-open .nav-main { display: flex; }
  .nav-main a:not(.btn) {
    font-size: 1.35rem;
    font-weight: 700;
    padding: 12px 4px;
    border-bottom: 1px solid var(--line);
    color: var(--navy);
  }
  .topbar.is-open .burger span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
  .topbar.is-open .burger span:nth-child(2) { opacity: 0; }
  .topbar.is-open .burger span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }
  .hero-actions .btn { width: 100%; }
  .footer-qr { grid-template-columns: 1fr; justify-items: start; }
}
@media (max-width: 640px) {
  .hero-grid, .grid-4, .grid-3, .grid-5, .grid-6, .grid-2 { grid-template-columns: 1fr; }
  .brand strong { font-size: 15px; }
  .brand span { display: none; }
  .wrap { width: min(1180px, calc(100% - 28px)); }
}
