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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-title);
  color: var(--navy);
  line-height: 1.2;
  margin: 0 0 var(--space-sm);
}

h1 { font-size: clamp(2rem, 5vw, 3.25rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); font-weight: 700; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); font-weight: 600; }

p { margin: 0 0 var(--space-sm); }

a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--accent); }

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

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.section {
  padding: var(--space-xl) 0;
}
.section--alt { background: var(--bg-alt); }

/* ============================================================= Buttons */
.btn {
  display: inline-block;
  font-family: var(--font-title);
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-pill);
  background: var(--accent);
  color: var(--navy);
  border: 2px solid var(--accent);
  cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease);
}
.btn:hover { transform: translateY(-2px); color: var(--navy); }
.btn--ghost {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}
.btn--outline {
  background: transparent;
  color: var(--navy);
  border: 1px solid var(--navy);
  font-weight: 600;
}
.btn--outline:hover {
  background: var(--navy);
  color: var(--white);
}

/* ============================================================= Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy);
  transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.site-header.is-scrolled {
  background: var(--navy-2);
  box-shadow: var(--shadow-md);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
}
.site-header__logo img {
  height: 44px;
  width: auto;
}

.main-nav { display: none; }
.main-nav__list {
  display: flex;
  gap: var(--space-md);
  list-style: none;
  margin: 0;
  padding: 0;
}
.main-nav__item { position: relative; }
.main-nav__link {
  display: block;
  padding: 0.5rem 0;
  color: var(--white);
  font-family: var(--font-title);
  font-weight: 500;
}
.main-nav__link:hover { color: var(--accent); }

.main-nav__submenu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: var(--navy-2);
  list-style: none;
  margin: 0;
  padding: var(--space-xs) 0;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.2s var(--ease);
}
.main-nav__item.has-children:hover .main-nav__submenu,
.main-nav__item.has-children:focus-within .main-nav__submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.main-nav__submenu a {
  display: block;
  padding: 0.5rem var(--space-md);
  color: var(--white);
}
.main-nav__submenu a:hover { background: var(--navy-3); color: var(--accent); }

/* Burger */
.burger {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 0;
  cursor: pointer;
}
.burger span {
  display: block;
  height: 2px;
  width: 24px;
  background: var(--white);
  transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav */
.mobile-nav {
  background: var(--navy-2);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.mobile-nav[hidden] { display: none; }
.mobile-nav__list,
.mobile-nav__submenu {
  list-style: none;
  margin: 0;
  padding: 0;
}
.mobile-nav__link {
  display: block;
  padding: 0.85rem var(--space-md);
  color: var(--white);
  font-family: var(--font-title);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.mobile-nav__submenu a {
  display: block;
  padding: 0.6rem var(--space-md) 0.6rem var(--space-lg);
  color: rgba(255, 255, 255, 0.85);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* ============================================================= Hero */
.hero {
  position: relative;
  min-height: 72vh;
  display: flex;
  align-items: center;
  color: var(--white);
  background: var(--navy) center / cover no-repeat;
  overflow: hidden;
}
.hero__media {
  position: absolute;
  inset: 0;
  object-fit: cover;
  width: 100%;
  height: 100%;
  z-index: 0;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 35, 91, 0.35), var(--overlay));
  z-index: 1;
}
.hero__content {
  position: relative;
  z-index: 2;
}
.hero h1 { color: var(--white); }
.hero p { font-size: 1.2rem; max-width: 46ch; }

/* ============================================================= Grids */
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card__body { padding: var(--space-md); }

/* Feature block: image + text */
.feature {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  align-items: center;
  margin: var(--space-lg) 0;
}

/* Team */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: var(--space-md);
}
.team-card { text-align: center; }
.team-card img {
  border-radius: var(--radius-md);
  aspect-ratio: 3 / 4;
  object-fit: cover;
  width: 100%;
}

/* Gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-xs);
}
.gallery img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
  cursor: pointer;
  border-radius: var(--radius-sm);
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 35, 91, 0.9);
  padding: var(--space-md);
}
.lightbox.is-open { display: flex; }
.lightbox img { max-width: 90vw; max-height: 85vh; border-radius: var(--radius-sm); }
.lightbox__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: 0;
  color: var(--white);
  font-size: 2.5rem;
  cursor: pointer;
  padding: var(--space-sm);
}
.lightbox__btn--prev { left: 1rem; }
.lightbox__btn--next { right: 1rem; }
.lightbox__close { position: absolute; top: 1rem; right: 1rem; }

/* ============================================================= Contact form */
.contact-form {
  display: grid;
  gap: var(--space-sm);
  max-width: 560px;
}
.contact-form label { font-weight: 600; }
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font: inherit;
}
.contact-form textarea { min-height: 140px; resize: vertical; }

/* ============================================================= Footer */
.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.85);
  padding: var(--space-xl) 0 var(--space-md);
}
.site-footer h3 { color: var(--white); font-size: 1.1rem; }
.site-footer a { color: var(--accent); }
.site-footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}
.footer-block__list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-block__list li { padding: 0.15rem 0; }
.site-footer__meta {
  display: grid;
  gap: var(--space-md);
  margin-top: var(--space-lg);
  padding-top: var(--space-md);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.footer-addresses {
  display: grid;
  gap: var(--space-sm);
}
.footer-address { font-style: normal; line-height: 1.5; }
.footer-partners__list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin: var(--space-xs) 0 0;
  padding: 0;
}
.site-footer__copyright {
  margin-top: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}

/* ============================================================= Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ============================================================= Video poster (opens modal) */
.video-poster {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  aspect-ratio: 16 / 9;
  background: var(--navy-2) center / cover no-repeat;
  cursor: pointer;
  border-radius: var(--radius-md);
  overflow: hidden;
}
.video-poster::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 35, 91, 0.25);
  transition: background 0.2s ease;
}
.video-poster:hover::before,
.video-poster:focus-visible::before { background: rgba(0, 35, 91, 0.4); }
.video-poster__play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease, background 0.2s ease;
}
.video-poster__play::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 54%;
  transform: translate(-50%, -50%);
  border-style: solid;
  border-width: 14px 0 14px 24px;
  border-color: transparent transparent transparent var(--navy, #00235b);
}
.video-poster:hover .video-poster__play,
.video-poster:focus-visible .video-poster__play {
  transform: translate(-50%, -50%) scale(1.08);
  background: #fff;
}

/* ============================================================= Video modal (popup) */
.video-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: var(--space-md);
}
.video-modal[hidden] { display: none; }
.video-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 10, 30, 0.82);
  backdrop-filter: blur(2px);
}
.video-modal__dialog {
  position: relative;
  width: min(960px, 100%);
}
.video-modal__frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}
.video-modal__frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.video-modal__close {
  position: absolute;
  top: -48px;
  right: 0;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 2.4rem;
  line-height: 1;
  cursor: pointer;
}
.video-modal__close:hover { color: var(--accent, #7ebec5); }
@media (max-width: 560px) {
  .video-modal__close { top: -44px; }
}

/* ============================================================= FEAT-002 layout helpers */
.container--narrow { max-width: 820px; }

.section__title {
  text-align: center;
  margin-bottom: var(--space-lg);
}

.lead {
  font-size: 1.15rem;
}

/* Page hero (inner pages) */
.page-hero {
  background: var(--navy);
  color: var(--white);
  padding: var(--space-xl) 0 var(--space-lg);
}
.page-hero h1 { color: var(--white); margin: 0; }

/* Home hero taglines + questions */
.hero__taglines {
  list-style: none;
  margin: 0 0 var(--space-md);
  padding: 0;
}
.hero__taglines li {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: clamp(1.6rem, 4vw, 2.75rem);
  line-height: 1.15;
  margin: 0 0 0.25rem;
}
.hero__question {
  font-size: 1.1rem;
  max-width: 54ch;
  margin: 0.25rem 0;
}

/* Clickable activity cards */
.card--link { color: inherit; }
.card--link:hover { color: inherit; }
.card--link h3 { color: var(--navy); }

/* Activity cards with filigrane background illustration */
.card--activity {
  position: relative;
  background-color: var(--navy);
  background-repeat: no-repeat;
  background-position: bottom center;
  background-size: 65%;
  border-color: transparent;
  color: var(--white);
}
.card--activity::before {
  /* Dim the illustration into a subtle watermark behind the text. */
  content: "";
  position: absolute;
  inset: 0;
  background: var(--navy);
  opacity: 0.82;
  z-index: 0;
}
.card--activity .card__body {
  position: relative;
  z-index: 1;
}
.card--activity h3,
.card--activity p { color: var(--white); }

/* removed: home partners grid (section deleted) */

/* Launch section: photo + text two columns */
.launch {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  align-items: center;
}
.launch__media .video-poster--round {
  border-radius: 48% 48% 48% 48% / 42% 42% 42% 42%;
  aspect-ratio: 3 / 2;
}
.launch__body {
  text-align: center;
}
.launch__btn {
  margin-top: var(--space-sm);
}

/* Feature block media/body */
.feature__media img { border-radius: var(--radius-md); width: 100%; }
.feature:nth-child(even) .feature__media { order: 2; }

/* Two-feature intro image */
.intro-image {
  max-width: 320px;
  margin: 0 auto var(--space-md);
}

/* Simple-text blocks */
.text-block { margin: 0 0 var(--space-lg); }
.text-block img {
  border-radius: var(--radius-md);
  margin-top: var(--space-md);
}

/* Specialties grid */
.specialty-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}
.specialty__media {
  aspect-ratio: 16 / 10;
  background: var(--bg-alt);
}
.specialty__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Perfectionner benefits */
.benefit { margin: 0 0 var(--space-md); }
.benefit h3 { margin-bottom: 0.25rem; }

/* Team */
.team-group {
  border-radius: var(--radius-md);
  margin: var(--space-md) 0 0;
  width: 100%;
}
.team-card__role {
  font-weight: 600;
  color: var(--accent-ink, var(--navy));
  margin: 0.15rem 0;
}
.team-card__tagline {
  font-size: 0.95rem;
  margin: 0.1rem 0;
}

/* Contact */
.form-row { display: grid; gap: 0.35rem; }
.form-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.contact-phones { margin-top: var(--space-lg); }
.contact-phones__list {
  list-style: none;
  margin: 0 0 var(--space-sm);
  padding: 0;
}
.contact-phones__list li { padding: 0.15rem 0; }
.contact-phones__name { font-weight: 600; }
.gallery-intro { font-weight: 600; }

/* ============================================================= Responsive */
@media (min-width: 900px) {
  .main-nav { display: block; }
  .burger { display: none; }
  .mobile-nav { display: none !important; }

  .card-grid { grid-template-columns: repeat(3, 1fr); }
  .feature { grid-template-columns: 1fr 1fr; }
  .feature--reverse > :first-child { order: 2; }
  .gallery { grid-template-columns: repeat(4, 1fr); }
  .site-footer__grid { grid-template-columns: repeat(4, 1fr); }
  .site-footer__meta { grid-template-columns: 1fr auto; align-items: start; }
  .specialty-grid { grid-template-columns: repeat(3, 1fr); }
  .launch { grid-template-columns: 1fr 1fr; }
}
