:root {
  --ink: #173044;
  --muted: #617282;
  --line: #dcebe8;
  --soft: #eef8f5;
  --soft-blue: #edf7fb;
  --green: #3b9b83;
  --green-dark: #247763;
  --blue: #357eac;
  --white: #ffffff;
  --shadow: 0 24px 70px rgba(23, 48, 68, .12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  color: var(--ink);
  background: #fbfefd;
  line-height: 1.6;
}

a {
  color: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 12px clamp(18px, 4vw, 56px);
  background: rgba(255, 255, 255, .92);
  border-bottom: 1px solid rgba(220, 235, 232, .9);
  backdrop-filter: blur(16px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  min-width: max-content;
}

.brand img {
  width: clamp(120px, 12vw, 188px);
  height: auto;
  max-height: 104px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: auto;
}

.nav-links a {
  color: var(--muted);
  font-size: .94rem;
  font-weight: 600;
  text-decoration: none;
}

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

.header-cta,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
  border: 1px solid transparent;
}

.header-cta,
.btn.primary {
  color: var(--white);
  background: var(--green-dark);
  box-shadow: 0 12px 28px rgba(36, 119, 99, .22);
}

.btn.secondary {
  color: var(--green-dark);
  background: var(--white);
  border-color: var(--line);
}

.menu-toggle {
  display: none;
  margin-left: auto;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  border-radius: 999px;
  min-height: 42px;
  padding: 0 16px;
  font-weight: 800;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(340px, .76fr);
  gap: clamp(30px, 6vw, 72px);
  align-items: center;
  min-height: calc(100vh - 82px);
  padding: clamp(42px, 8vw, 92px) clamp(20px, 6vw, 76px);
  background:
    linear-gradient(112deg, rgba(238, 248, 245, .96), rgba(237, 247, 251, .72) 58%, rgba(255, 255, 255, .95)),
    url("assets/equipe-ces.webp") center/cover;
}

.hero-content {
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--green-dark);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 20px;
  max-width: 720px;
  font-size: clamp(2.55rem, 6vw, 5.2rem);
  line-height: .98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.06;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.15rem;
  letter-spacing: 0;
}

.hero-text {
  max-width: 650px;
  color: #405567;
  font-size: clamp(1.08rem, 2vw, 1.32rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 30px 0;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.trust-row span,
.pill-grid span {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid rgba(59, 155, 131, .18);
  border-radius: 999px;
  background: rgba(255, 255, 255, .72);
  color: #315b68;
  font-weight: 700;
  font-size: .92rem;
}

.hero-card {
  position: relative;
}

.hero-photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 30px;
  box-shadow: var(--shadow);
}

.hero-note {
  position: absolute;
  left: -24px;
  right: 24px;
  bottom: 24px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: 22px;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 18px 50px rgba(23, 48, 68, .16);
  backdrop-filter: blur(12px);
}

.hero-note img {
  width: clamp(128px, 15vw, 188px);
  height: auto;
  object-fit: contain;
  border-radius: 0;
}

.hero-note span {
  display: block;
  color: var(--muted);
  font-size: .92rem;
}

.video-banner {
  width: 100%;
  margin: 0;
  padding: 0;
  background: #eaf7f3;
}

.video-banner video {
  display: block;
  width: 100%;
  max-width: none;
  aspect-ratio: 2122 / 976;
  height: auto;
  margin: 0;
  border-radius: 0;
  box-shadow: none;
  object-fit: contain;
  background: #eaf7f3;
}

.section,
.image-band,
.cta-section,
.footer {
  padding: clamp(56px, 8vw, 96px) clamp(20px, 6vw, 76px);
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1fr);
  gap: clamp(26px, 5vw, 64px);
}

.text-block {
  color: #405567;
  font-size: 1.08rem;
}

.profile-section {
  display: grid;
  grid-template-columns: minmax(260px, .48fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 58px);
  align-items: stretch;
  color: #fff;
  background: #06394d;
}

.profile-photo {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
  min-height: 520px;
  border: 3px solid rgba(99, 175, 101, .78);
  border-radius: 0 80px 80px 0;
  background: #eef3ef;
}

.profile-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-content {
  align-self: center;
}

.profile-content .eyebrow {
  color: #8fcb59;
}

.profile-content h2 {
  margin-bottom: 10px;
  font-size: clamp(2rem, 4vw, 3rem);
  text-transform: uppercase;
}

.profile-content p {
  max-width: 860px;
  color: rgba(255, 255, 255, .86);
}

.profile-lead {
  color: #fff;
  font-size: 1.08rem;
  font-weight: 800;
}

.profile-education {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 2px solid rgba(143, 203, 89, .72);
}

.profile-education h3 {
  color: #8fcb59;
  text-transform: uppercase;
}

.profile-education ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.profile-education li {
  position: relative;
  padding-left: 28px;
  color: rgba(255, 255, 255, .9);
  font-weight: 700;
  line-height: 1.35;
}

.profile-education li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 1px;
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  color: #06394d;
  background: #8fcb59;
  font-size: .78rem;
  font-weight: 900;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 34px;
}

.section-heading p {
  color: var(--muted);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.service-grid article {
  min-height: 240px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--white);
  box-shadow: 0 18px 48px rgba(23, 48, 68, .07);
}

.service-grid p {
  color: var(--muted);
}

.icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin-bottom: 26px;
  border-radius: 50%;
  background: var(--soft);
  color: var(--green-dark);
  font-weight: 900;
}

.service-note {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: .9rem;
}

.courses {
  background: #fbfefd;
}

.courses-title {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 14px;
  margin-bottom: 26px;
  text-align: center;
}

.courses-title span {
  height: 1px;
  background: linear-gradient(90deg, rgba(59, 155, 131, 0), rgba(59, 155, 131, .58));
}

.courses-title span:last-child {
  background: linear-gradient(90deg, rgba(59, 155, 131, .58), rgba(59, 155, 131, 0));
}

.courses-title h2 {
  margin: 0;
  color: #10384d;
  font-size: clamp(1.75rem, 4vw, 2.55rem);
  text-transform: uppercase;
}

.course-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}

.course-card {
  position: relative;
  display: grid;
  grid-template-rows: auto auto auto 1fr auto;
  min-height: 330px;
  padding: 10px;
  border: 1px solid rgba(23, 48, 68, .14);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 14px 36px rgba(23, 48, 68, .08);
  text-align: center;
}

.course-card > img {
  width: 100%;
  aspect-ratio: 1 / .9;
  object-fit: cover;
  border-radius: 12px;
}

.course-icon {
  display: grid;
  place-items: center;
  justify-self: center;
  width: 58px;
  height: 58px;
  margin-top: -28px;
  border: 5px solid #fff;
  border-radius: 50%;
  color: #fff;
  font-weight: 900;
  box-shadow: 0 12px 26px rgba(23, 48, 68, .16);
}

.course-icon img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.course-card h3 {
  margin: 10px 0 8px;
  color: var(--course-color);
  font-size: .98rem;
  line-height: 1.08;
  text-transform: uppercase;
}

.course-card p {
  margin: 0 4px 14px;
  color: #33495a;
  font-size: .82rem;
  line-height: 1.38;
}

.course-meta {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  overflow: hidden;
  min-height: 32px;
  border: 1px solid rgba(23, 48, 68, .1);
  border-radius: 9px;
  background: #eef6fa;
}

.course-meta span {
  display: flex;
  align-items: center;
  align-self: stretch;
  padding: 0 8px;
  color: #fff;
  background: var(--course-color);
  font-size: .68rem;
  font-weight: 800;
}

.course-meta strong {
  padding: 0 8px;
  color: #173044;
  font-size: .84rem;
}

.course-teal {
  --course-color: #047a82;
}

.course-green {
  --course-color: #4d9b37;
}

.course-blue {
  --course-color: #0b75b8;
}

.course-purple {
  --course-color: #7f3f98;
}

.course-orange {
  --course-color: #f28a17;
}

.course-pink {
  --course-color: #d73885;
}

.course-teal .course-icon,
.course-green .course-icon,
.course-blue .course-icon,
.course-purple .course-icon,
.course-orange .course-icon,
.course-pink .course-icon {
  background: var(--course-color);
}

.course-note {
  display: flex;
  justify-content: center;
  margin: 18px 0 0;
  color: #315b68;
  font-weight: 800;
  text-align: center;
}

.image-band {
  display: grid;
  grid-template-columns: minmax(260px, .75fr) minmax(0, 1fr);
  gap: clamp(28px, 6vw, 76px);
  align-items: center;
  background: var(--soft-blue);
}

.image-band img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 26px;
  box-shadow: var(--shadow);
}

.image-band p {
  color: #405567;
  font-size: 1.05rem;
}

.media-section {
  overflow: hidden;
  background: #fff;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 34px;
}

.video-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff, #f5fbf9);
  box-shadow: 0 16px 42px rgba(23, 48, 68, .07);
}

.video-card span {
  display: inline-flex;
  margin-bottom: 12px;
  color: var(--green-dark);
  font-size: .76rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.video-card video {
  width: 100%;
  aspect-ratio: 9 / 16;
  margin-top: 12px;
  border-radius: 16px;
  background: #102536;
  object-fit: cover;
}

.carousel-3d {
  position: relative;
  overflow: hidden;
  min-height: clamp(420px, 52vw, 620px);
  margin-top: 10px;
  border-radius: 28px;
  background:
    radial-gradient(circle at 50% 58%, rgba(59, 155, 131, .18), rgba(255, 255, 255, 0) 42%),
    linear-gradient(180deg, #f3fbf8, #ffffff);
}

.carousel-3d::before {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: 42px;
  height: 34px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(23, 48, 68, .18), rgba(23, 48, 68, 0) 70%);
  pointer-events: none;
}

.carousel-3d-stage {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  perspective: 1200px;
}

.carousel-3d-track {
  --radius: clamp(250px, 34vw, 470px);
  position: relative;
  width: clamp(190px, 23vw, 310px);
  height: clamp(270px, 33vw, 430px);
  transform-style: preserve-3d;
  animation: ces-carousel-3d 30s linear infinite;
}

.carousel-3d:hover .carousel-3d-track {
  animation-play-state: paused;
}

.carousel-3d-track img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 7px solid #fff;
  border-radius: 22px;
  box-shadow: 0 24px 64px rgba(23, 48, 68, .24);
  transform: rotateY(calc(var(--i) * 36deg)) translateZ(var(--radius));
  backface-visibility: hidden;
}

.compact-carousel {
  min-height: clamp(360px, 38vw, 520px);
  margin-top: 0;
}

.compact-carousel .carousel-3d-track {
  --radius: clamp(185px, 21vw, 320px);
  width: clamp(150px, 18vw, 230px);
  height: clamp(220px, 27vw, 340px);
}

@keyframes ces-carousel-3d {
  from {
    transform: rotateY(0deg);
  }

  to {
    transform: rotateY(-360deg);
  }
}

.differentials {
  background: #fff;
}

.pill-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  max-width: 980px;
}

.cta-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  margin: 0 clamp(20px, 6vw, 76px);
  border-radius: 30px;
  background: linear-gradient(135deg, #dff4ef, #eff8fb);
  box-shadow: var(--shadow);
}

.cta-section div {
  max-width: 720px;
}

.cta-section p {
  color: #405567;
}

.contact {
  display: grid;
  grid-template-columns: minmax(280px, .7fr) minmax(320px, 1fr);
  gap: 28px;
  align-items: stretch;
}

address {
  margin: 0 0 20px;
  color: #405567;
  font-style: normal;
}

.contact-info {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--white);
}

.contact-info a {
  color: var(--green-dark);
  font-weight: 800;
}

.map-wrap {
  min-height: 380px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--soft);
}

.map-wrap iframe {
  width: 100%;
  height: 100%;
  min-height: 380px;
  border: 0;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.footer strong,
.footer span {
  display: block;
}

.footer a {
  color: var(--green-dark);
  font-weight: 800;
  text-decoration: none;
}

.floating-whatsapp {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 30;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 22px;
  border-radius: 999px;
  color: #fff;
  background: #1f8d61;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 18px 44px rgba(31, 141, 97, .32);
}

@media (max-width: 980px) {
  .site-header {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    justify-items: center;
    flex-wrap: initial;
    gap: 10px;
  }

  .menu-toggle {
    grid-column: 3;
    justify-self: end;
    display: inline-flex;
    align-items: center;
    margin-left: 0;
  }

  .nav-links,
  .header-cta {
    display: none;
  }

  .site-header.is-open .nav-links {
    grid-column: 1 / -1;
    display: grid;
    width: 100%;
    gap: 0;
    margin-left: 0;
    padding-top: 8px;
  }

  .site-header.is-open .nav-links a {
    padding: 12px 0;
    border-top: 1px solid var(--line);
  }

  .hero,
  .intro,
  .profile-section,
  .image-band,
  .contact {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-card {
    max-width: 520px;
  }

  .brand {
    grid-column: 2;
    flex-direction: column;
    gap: 6px;
    text-align: center;
  }

  .brand img {
    width: clamp(95px, 29vw, 150px);
    height: auto;
    max-height: none;
  }

  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .profile-photo {
    min-height: 420px;
    max-width: 460px;
    border-radius: 40px;
  }

  .profile-education ul {
    grid-template-columns: 1fr;
  }

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

  .cta-section {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 620px) {
  .site-header {
    padding: 12px 16px 14px;
  }

  .brand img {
    width: clamp(110px, 36vw, 165px);
    height: auto;
  }

  .hero,
  .section,
  .image-band,
  .cta-section,
  .footer {
    padding-left: 18px;
    padding-right: 18px;
  }

  h1 {
    font-size: 2.55rem;
  }

  .hero-actions,
  .hero-actions .btn,
  .cta-section .btn {
    width: 100%;
  }

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

  .courses-title {
    grid-template-columns: 1fr;
  }

  .courses-title span {
    display: none;
  }

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

  .course-card {
    min-height: auto;
  }

  .carousel-3d {
    min-height: 420px;
    margin-inline: -8px;
  }

  .carousel-3d-stage {
    perspective: 900px;
  }

  .carousel-3d-track {
    --radius: 250px;
    width: 172px;
    height: 248px;
  }

  .compact-carousel {
    min-height: 390px;
  }

  .compact-carousel .carousel-3d-track {
    --radius: 220px;
  }

  .hero-note {
    position: static;
    margin-top: -48px;
    margin-left: 14px;
    margin-right: 14px;
  }

  .cta-section {
    margin: 0 18px;
    border-radius: 22px;
  }

  .footer {
    display: block;
    padding-bottom: 92px;
  }

  .footer a {
    display: inline-block;
    margin-top: 18px;
  }

  .floating-whatsapp {
    left: 18px;
    right: 18px;
    bottom: 16px;
  }
}
