/* ============================================================
   MK ENGINEERING — Feuille de style principale
   ============================================================ */

/* ---------- Variables ---------- */
:root {
  --navy-900: #07192e;
  --navy-800: #0b2340;
  --navy-700: #123157;
  --navy-600: #1a4375;
  --steel: #e8eef6;
  --steel-2: #d3dfec;
  --ink: #10233c;
  --muted: #5a6b80;
  --line: #dce5ef;
  --accent: #1f8f6b;
  --accent-2: #179a72;
  --accent-dark: #166a52;
  --amber: #f5b04c;
  --white: #ffffff;
  --shadow-sm: 0 2px 10px rgba(7, 25, 46, 0.06);
  --shadow-md: 0 12px 34px rgba(7, 25, 46, 0.12);
  --shadow-lg: 0 24px 60px rgba(7, 25, 46, 0.18);
  --radius: 14px;
  --container: 1180px;
  --font-head: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 96px; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; margin: 0; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-family: var(--font-head);
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: transform 0.25s ease, box-shadow 0.25s ease,
    background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.btn svg { width: 17px; height: 17px; }

.btn--accent {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  color: var(--white);
  box-shadow: 0 10px 24px rgba(31, 143, 107, 0.35);
}
.btn--accent:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, var(--accent-dark) 0%, var(--accent-2) 100%);
  box-shadow: 0 16px 32px rgba(31, 143, 107, 0.4);
}

.btn--ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.45);
}
.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--white);
  transform: translateY(-2px);
}

.btn--sm { padding: 10px 18px; font-size: 0.9rem; }
.btn--block { width: 100%; }

/* ---------- Barre supérieure ---------- */
.topbar {
  background: var(--navy-900);
  color: #b8c8db;
  font-size: 0.86rem;
}
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 40px;
}
.topbar__contact { display: flex; gap: 22px; }
.topbar__contact a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: color 0.2s ease;
}
.topbar__contact a:hover { color: var(--amber); }
.topbar__contact svg { width: 13px; height: 13px; }
.topbar__note { margin: 0; color: #7f95ad; }

/* ---------- En-tête ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.3s ease;
}
.header.is-scrolled { box-shadow: var(--shadow-sm); }

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 78px;
}

.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand__mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--navy-800), var(--navy-600));
  color: var(--white);
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: var(--shadow-sm);
}
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__text strong {
  font-family: var(--font-head);
  font-size: 1.18rem;
  letter-spacing: 0.03em;
  color: var(--navy-800);
}
.brand__text small { font-size: 0.72rem; color: var(--muted); letter-spacing: 0.05em; }

.nav { display: flex; align-items: center; gap: 28px; }
.nav__link {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink);
  position: relative;
  padding: 6px 0;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
  transition: width 0.28s ease;
}
.nav__link:hover::after,
.nav__link.is-active::after { width: 100%; }
.nav__link.is-active { color: var(--accent-dark); }
.nav__cta { padding: 11px 20px; font-size: 0.86rem; }

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  background: none;
  border: 0;
}
.nav__toggle span {
  width: 26px;
  height: 2.5px;
  border-radius: 3px;
  background: var(--navy-800);
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav__toggle.is-open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav__toggle.is-open span:nth-child(2) { opacity: 0; }
.nav__toggle.is-open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Héro ---------- */
.hero {
  position: relative;
  color: var(--white);
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(26, 67, 117, 0.75), transparent 60%),
    linear-gradient(160deg, var(--navy-900) 0%, var(--navy-800) 55%, var(--navy-700) 100%);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(700px 500px at 15% 80%, rgba(31, 143, 107, 0.28), transparent 60%),
    radial-gradient(500px 380px at 95% 65%, rgba(245, 176, 76, 0.12), transparent 65%);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 1;
  padding-top: clamp(72px, 12vh, 128px);
  padding-bottom: clamp(96px, 16vh, 180px);
  max-width: 860px;
  margin-inline: auto;
  text-align: center;
}

.hero__kicker {
  display: inline-block;
  margin: 0 0 20px;
  padding: 8px 18px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 30px;
  font-size: 0.84rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber);
  background: rgba(255, 255, 255, 0.05);
}

.hero__title {
  font-size: clamp(2.6rem, 6vw, 4.5rem);
  font-weight: 700;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}
.hero__title span {
  color: var(--amber);
  position: relative;
}
.hero__title span:nth-of-type(1)::after,
.hero__title span:nth-of-type(2)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 2px;
  height: 10px;
  width: 100%;
  background: rgba(245, 176, 76, 0.22);
  z-index: -1;
}

.hero__subtitle {
  max-width: 640px;
  margin: 24px auto 0;
  color: #c6d5e6;
  font-size: 1.06rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 38px;
}

.hero__stats {
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(7, 25, 46, 0.55);
  backdrop-filter: blur(6px);
}
.hero__stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding-block: 26px;
}
.stat { text-align: center; }
.stat strong {
  display: block;
  font-family: var(--font-head);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--amber);
  line-height: 1;
}
.stat span { font-size: 0.86rem; color: #b8c8db; }

/* ---------- Sections ---------- */
.section { padding-block: clamp(64px, 9vw, 110px); }
.section--dark {
  background:
    radial-gradient(1000px 460px at 10% 0%, rgba(26, 67, 117, 0.55), transparent 60%),
    linear-gradient(180deg, var(--navy-900), var(--navy-800));
  color: var(--white);
}

.section__head { max-width: 720px; }
.section__head { margin-bottom: clamp(38px, 6vw, 56px); }
.section__kicker {
  margin: 0 0 12px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}
.section--dark .section__kicker { color: var(--amber); }
.section__title {
  font-size: clamp(1.9rem, 3.6vw, 2.9rem);
  font-weight: 700;
  text-transform: uppercase;
  color: var(--ink);
}
.section--dark .section__title { color: var(--white); }
.section__title span { color: var(--accent); }
.section--dark .section__title span { color: var(--amber); }
.section__desc { margin: 18px 0 0; color: var(--muted); }
.section--dark .section__desc { color: #b8c8db; }

/* ---------- Grilles ---------- */
.grid { display: grid; gap: 26px; }
.grid--services { grid-template-columns: repeat(3, 1fr); }
.grid--domaines { grid-template-columns: repeat(4, 1fr); gap: 20px; }
.grid--apps { grid-template-columns: repeat(4, 1fr); gap: 20px; }

/* ---------- Cartes services ---------- */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  padding: 32px 28px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--amber));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: rgba(31, 143, 107, 0.35); }
.card:hover::before { transform: scaleX(1); }

.card__icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: rgba(31, 143, 107, 0.1);
  color: var(--accent);
}
.card__icon svg { width: 27px; height: 27px; }
.card h3 { font-size: 1.34rem; color: var(--navy-800); text-transform: uppercase; letter-spacing: 0.02em; }
.card p { margin: 0; font-size: 0.94rem; color: var(--muted); }

.card--accent {
  background: linear-gradient(150deg, var(--navy-800), var(--navy-600));
  border-color: transparent;
  color: var(--white);
}
.card--accent .card__icon { background: rgba(255, 255, 255, 0.12); color: var(--amber); }
.card--accent h3 { color: var(--white); }
.card--accent p { color: #c6d5e6; }
.card--accent .btn { margin-top: auto; }

.card--wide {
  grid-column: 1 / -1;
  flex-direction: row;
  align-items: center;
  gap: 24px;
}
.card--wide .card__body { flex: 1; }
.card--wide .btn { margin-top: 0; flex-shrink: 0; }

@media (max-width: 640px) {
  .card--wide { flex-direction: column; align-items: flex-start; }
}

/* ---------- Domaines ---------- */
.domaine {
  padding: 26px 24px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
  transition: transform 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}
.domaine:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(245, 176, 76, 0.4);
}
.domaine__num {
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--amber);
}
.domaine h3 { font-size: 1.28rem; margin: 10px 0 8px; color: var(--white); text-transform: uppercase; }
.domaine p { margin: 0; font-size: 0.9rem; color: #b8c8db; }

/* ---------- Applications ---------- */
.app {
  padding: 26px 24px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: 10px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.app:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.app h4 {
  margin: 0 0 8px;
  font-size: 1.18rem;
  color: var(--navy-800);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.app p { margin: 0; font-size: 0.9rem; color: var(--muted); }
.app .app__dl { margin-top: 14px; }
.app .app__dl .btn { font-size: 0.85rem; }
.app .app__dl a { text-decoration: none; }

.apps-note {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin-top: 40px;
  padding: 26px 28px;
  border-radius: var(--radius);
  background: rgba(31, 143, 107, 0.07);
  border: 1px solid rgba(31, 143, 107, 0.25);
}
.apps-note svg { width: 34px; height: 34px; color: var(--accent); flex-shrink: 0; }
.apps-note p { margin: 0; color: var(--ink); font-size: 0.98rem; }
.apps-note strong { color: var(--accent-dark); }

/* ---------- Expertise ---------- */
.expertise {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 48px;
  align-items: center;
}
.expertise__items { display: grid; gap: 26px; }
.expertise__item { display: flex; gap: 16px; align-items: flex-start; }
.expertise__check {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(245, 176, 76, 0.15);
  color: var(--amber);
}
.expertise__check svg { width: 16px; height: 16px; }
.expertise__item h4 { font-size: 1.2rem; color: var(--white); text-transform: uppercase; letter-spacing: 0.02em; }
.expertise__item p { margin: 4px 0 0; font-size: 0.92rem; color: #b8c8db; }

.expertise__quote {
  padding: 36px 32px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  position: relative;
}
.expertise__quote::before {
  content: "\201C";
  position: absolute;
  top: -30px;
  left: 22px;
  font-family: var(--font-head);
  font-size: 6rem;
  line-height: 1;
  color: var(--amber);
  opacity: 0.5;
}
.expertise__quote blockquote {
  margin: 0 0 18px;
  font-family: var(--font-head);
  font-size: 1.45rem;
  line-height: 1.45;
  color: var(--white);
}
.expertise__quote p { margin: 0; font-size: 0.86rem; color: var(--amber); letter-spacing: 0.1em; text-transform: uppercase; }

/* ---------- Contact ---------- */
.contact {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 48px;
  align-items: start;
}

.contact__form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  background: var(--white);
}
.field { display: flex; flex-direction: column; gap: 7px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 0.86rem; font-weight: 600; color: var(--ink); }
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 9px;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  background: #fbfcfd;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(31, 143, 107, 0.15);
}
.field textarea { resize: vertical; min-height: 130px; }
.form__note { margin: 12px 0 0; font-size: 0.9rem; font-weight: 600; text-align: center; }
.form__note.is-error { color: #c0392b; }
.form__note.is-success { color: var(--accent-dark); }

.contact__info {
  padding: 34px;
  border-radius: var(--radius);
  background: linear-gradient(160deg, var(--navy-800), var(--navy-700));
  color: var(--white);
  box-shadow: var(--shadow-md);
}
.contact__info h3 { font-size: 1.5rem; text-transform: uppercase; margin-bottom: 24px; }
.contact__info li { display: flex; gap: 14px; align-items: flex-start; padding: 13px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.contact__info li:last-child { border-bottom: 0; }
.contact__ico {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(245, 176, 76, 0.14);
  color: var(--amber);
}
.contact__ico svg { width: 18px; height: 18px; }
.contact__info li div { display: flex; flex-direction: column; }
.contact__info li strong { font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--amber); }
.contact__info li a,
.contact__info li span { color: #e6eef6; font-size: 0.96rem; }
.contact__info li a:hover { color: var(--amber); }

/* ---------- Pied de page ---------- */
.footer { background: var(--navy-900); color: #b8c8db; border-top: 1px solid rgba(255, 255, 255, 0.08); }
.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding-block: 48px;
  text-align: center;
}
.footer__brand { color: var(--white); }
.footer__slogan { margin: 0; font-size: 0.9rem; max-width: 560px; }
.footer__nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; }
.footer__nav a { font-size: 0.88rem; transition: color 0.2s ease; }
.footer__nav a:hover { color: var(--amber); }
.footer__copy { margin: 0; font-size: 0.82rem; color: #7f95ad; }

/* ---------- Retour en haut ---------- */
.to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 40;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--accent);
  color: var(--white);
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease, background-color 0.3s ease;
}
.to-top svg { width: 20px; height: 20px; }
.to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--accent-dark); }

/* ---------- Animations d'apparition ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .card:hover, .app:hover, .domaine:hover, .btn:hover { transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .grid--services { grid-template-columns: repeat(2, 1fr); }
  .grid--domaines { grid-template-columns: repeat(2, 1fr); }
  .grid--apps { grid-template-columns: repeat(2, 1fr); }
  .expertise { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 860px) {
  .topbar__note { display: none; }
  .nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(320px, 82vw);
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 96px 32px 32px;
    background: var(--white);
    box-shadow: var(--shadow-lg);
    transform: translateX(100%);
    transition: transform 0.35s ease;
    overflow-y: auto;
  }
  .nav.is-open { transform: translateX(0); }
  .nav__link { width: 100%; padding: 12px 0; font-size: 1.05rem; border-bottom: 1px solid var(--line); }
  .nav__link::after { display: none; }
  .nav__cta { margin-top: 16px; width: 100%; }
  .nav__toggle { display: flex; z-index: 60; }
}

@media (max-width: 640px) {
  .grid--services,
  .grid--domaines,
  .grid--apps { grid-template-columns: 1fr; }
  .hero__stats-grid { grid-template-columns: repeat(2, 1fr); grid-template-rows: auto auto; gap: 20px; }
  .contact { grid-template-columns: 1fr; }
  .contact__form { grid-template-columns: 1fr; padding: 26px 22px; }
  .topbar__contact { gap: 14px; }
  .hero__actions .btn { width: 100%; }
}


/* ============================================================
   GALERIE
   ============================================================ */

/* ---------- Bandeau de page ---------- */
.page-hero {
  position: relative;
  color: var(--white);
  background:
    radial-gradient(900px 480px at 90% -20%, rgba(26, 67, 117, 0.8), transparent 60%),
    linear-gradient(155deg, var(--navy-900) 0%, var(--navy-800) 60%, var(--navy-700) 100%);
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 78%);
}
.page-hero__overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(600px 420px at 12% 85%, rgba(31, 143, 107, 0.28), transparent 60%);
  pointer-events: none;
}
.page-hero__inner {
  position: relative;
  z-index: 1;
  padding-top: clamp(56px, 9vh, 96px);
  padding-bottom: clamp(64px, 10vh, 120px);
  max-width: 860px;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 26px;
  font-size: 0.84rem;
  color: #8fa6bd;
  letter-spacing: 0.04em;
}
.breadcrumb a { color: #c6d5e6; transition: color 0.2s ease; }
.breadcrumb a:hover { color: var(--amber); }
.page-hero__kicker {
  margin: 0 0 14px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--amber);
}
.page-hero__title {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 700;
  text-transform: uppercase;
}
.page-hero__title span { color: var(--amber); }
.page-hero__desc { margin: 18px 0 0; color: #c6d5e6; font-size: 1.05rem; max-width: 640px; }

/* ---------- Filtres ---------- */
.section--gallery { background: #f6f9fc; }
.gallery-note {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  max-width: 760px;
  margin: 0 0 32px;
  padding: 16px 20px;
  border-radius: 12px;
  background: rgba(245, 176, 76, 0.12);
  border: 1px solid rgba(245, 176, 76, 0.45);
  color: var(--ink);
  font-size: 0.92rem;
}
.gallery-note svg { width: 22px; height: 22px; color: #b06a2b; flex-shrink: 0; margin-top: 2px; }
.gallery-note strong { color: #7a4f1f; }
.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
}
.gallery-filter {
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: var(--white);
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.2s ease;
}
.gallery-filter:hover { transform: translateY(-2px); border-color: rgba(31, 143, 107, 0.4); color: var(--accent-dark); }
.gallery-filter.is-active {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-color: transparent;
  color: var(--white);
  box-shadow: 0 8px 20px rgba(31, 143, 107, 0.3);
}

/* ---------- Grille ---------- */
.gallery-grid { columns: 3; column-gap: 26px; }
.gallery__item {
  break-inside: avoid;
  margin-bottom: 26px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s ease, box-shadow 0.3s ease, opacity 0.4s ease;
}
.gallery__item:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.gallery__item.is-hidden { display: none; }

.gallery__media {
  position: relative;
  aspect-ratio: 16 / 10.5;
  overflow: hidden;
  cursor: zoom-in;
}
.gallery__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(7, 25, 46, 0.35));
  pointer-events: none;
}
.gallery__ph {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.85);
}
.gallery__ph svg { width: 54px; height: 54px; opacity: 0.85; }
.gallery__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.gallery__item:hover .gallery__media img { transform: scale(1.06); }

.gallery__media--s1 { background: linear-gradient(135deg, #1a4375, #2563a8 55%, #1f8f6b); }
.gallery__media--s2 { background: linear-gradient(135deg, #123157, #1a4375 55%, #24579b); }
.gallery__media--s3 { background: linear-gradient(135deg, #0b6e52, #1f8f6b 55%, #2aa57e); }
.gallery__media--s4 { background: linear-gradient(135deg, #2c4a63, #44687f 55%, #5d8aa4); }
.gallery__media--h1 { background: linear-gradient(135deg, #14507a, #1f7aa8 55%, #2aa7c4); }
.gallery__media--h2 { background: linear-gradient(135deg, #0a3d62, #1e6f9e 55%, #2f9bc4); }
.gallery__media--h3 { background: linear-gradient(135deg, #2e5a4a, #1f8f6b 55%, #37b594); }
.gallery__media--h4 { background: linear-gradient(135deg, #14424b, #1f7a77 55%, #2fb3a5); }
.gallery__media--g1 { background: linear-gradient(135deg, #4a4f5c, #6d7482 55%, #929bac); }
.gallery__media--g2 { background: linear-gradient(135deg, #3b3f4d, #5b6270 55%, #7a8292); }
.gallery__media--a1 { background: linear-gradient(135deg, #743f1f, #b06a2b 55%, #d98f4a); }
.gallery__media--a2 { background: linear-gradient(135deg, #5b3a7a, #7a4f9e 55%, #9c6cc6); }

/* Bouton lecture (vidéos) */
.gallery__play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.9);
  background: rgba(7, 25, 46, 0.45);
  backdrop-filter: blur(3px);
  color: var(--white);
  box-shadow: 0 8px 24px rgba(7, 25, 46, 0.4);
  transition: transform 0.28s ease, background-color 0.28s ease, box-shadow 0.28s ease;
}
.gallery__play::after {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.5);
  animation: play-pulse 2s ease-out infinite;
}
.gallery__play svg { width: 24px; height: 24px; margin-left: 3px; }
.gallery__item:hover .gallery__play {
  transform: translate(-50%, -50%) scale(1.12);
  background: rgba(245, 176, 76, 0.55);
  box-shadow: 0 12px 32px rgba(7, 25, 46, 0.5);
}
@keyframes play-pulse {
  0%   { transform: scale(0.9); opacity: 0.9; }
  70%  { transform: scale(1.25); opacity: 0; }
  100% { transform: scale(1.25); opacity: 0; }
}

.gallery__caption { padding: 20px 22px 24px; }
.gallery__tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  background: rgba(31, 143, 107, 0.1);
  color: var(--accent-dark);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.gallery__caption h3 {
  margin: 12px 0 6px;
  font-size: 1.3rem;
  text-transform: uppercase;
  color: var(--navy-800);
}
.gallery__caption p { margin: 0; font-size: 0.92rem; color: var(--muted); }

.gallery-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--muted);
  font-size: 1.02rem;
}
.is-hidden { display: none !important; }

.gallery-cta {
  margin-top: 48px;
  padding: 40px 34px;
  border-radius: var(--radius);
  background: linear-gradient(150deg, var(--navy-800), var(--navy-600));
  color: var(--white);
  text-align: center;
  box-shadow: var(--shadow-md);
}
.gallery-cta p { margin: 0 0 20px; font-family: var(--font-head); font-size: 1.5rem; text-transform: uppercase; }

/* ---------- Visionneuse ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 24px;
  background: rgba(7, 25, 46, 0.94);
  backdrop-filter: blur(4px);
}
.lightbox[hidden] { display: none; }
.lightbox__figure {
  margin: 0;
  max-width: 960px;
  max-height: 86vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.lightbox__media--img {
  max-width: 100%;
  max-height: 74vh;
  border-radius: 10px;
  box-shadow: var(--shadow-lg);
  background: var(--navy-800);
  object-fit: contain;
}
.lightbox__media--iframe,
.lightbox__media--video {
  width: min(980px, 92vw);
  max-height: 74vh;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 10px;
  background: #000;
  box-shadow: var(--shadow-lg);
}
.lightbox__figure figcaption {
  color: #c6d5e6;
  font-size: 0.94rem;
  text-align: center;
}
.lightbox__close {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
  font-size: 1.6rem;
  line-height: 1;
  transition: background-color 0.2s ease, transform 0.2s ease;
}
.lightbox__close:hover { background: rgba(255, 255, 255, 0.16); transform: rotate(90deg); }
.lightbox__nav {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
  font-size: 2rem;
  line-height: 1;
  transition: background-color 0.2s ease, transform 0.2s ease;
}
.lightbox__nav:hover { background: rgba(255, 255, 255, 0.16); transform: scale(1.08); }

/* ---------- Responsive galerie ---------- */
@media (max-width: 1024px) { .gallery-grid { columns: 2; } }
@media (max-width: 640px) {
  .gallery-grid { columns: 1; }
  .lightbox { flex-direction: column; gap: 12px; }
  .lightbox__nav--prev { order: 2; }
  .lightbox__nav--next { order: 3; }
}
