:root {
  --bg: #141619;
  --bg-elevated: #1b1d20;
  --bg-card: #202225;
  --text: #f4f4f0;
  --text-muted: #9ca3af;
  --orange: #e49e45;
  --orange-dark: #c47f2d;
  --orange-light: #f5c789;
  --border: rgba(255,255,255,0.08);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --container: 1200px;
  --gutter: 24px;
  --radius: 8px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.55;
  color: var(--text); background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--text); text-decoration: none; transition: color .2s; }
a:hover { color: var(--orange); }
a:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }

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

/* Header */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  padding-block: 14px;
  transition: background .3s, box-shadow .3s;
}
.site-header.is-scrolled {
  background: rgba(20,22,25,0.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--border);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.site-header__logo { display: inline-flex; align-items: center; gap: 10px; }
.site-header__logo img { height: 44px; width: auto; }
.site-header__logo span { font-weight: 700; font-size: 1.15rem; letter-spacing: .02em; color: var(--text); }
.site-nav { display: flex; gap: 6px; align-items: center; }
.site-nav a { padding: 8px 14px; font-size: .92rem; font-weight: 500; color: rgba(255,255,255,0.85); }
.site-nav a:hover { color: var(--orange); }
.site-nav-toggle { display: none; width: 44px; height: 44px; background: none; border: 1px solid var(--border); border-radius: var(--radius); cursor: pointer; padding: 0; align-items: center; justify-content: center; }
.site-nav-toggle span { display: block; width: 20px; height: 2px; background: var(--text); position: relative; transition: .2s; }
.site-nav-toggle span::before, .site-nav-toggle span::after { content: ""; position: absolute; left: 0; width: 20px; height: 2px; background: var(--text); transition: .2s; }
.site-nav-toggle span::before { top: -6px; }
.site-nav-toggle span::after { top: 6px; }
.site-nav-toggle[aria-expanded="true"] span { background: transparent; }
.site-nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.site-nav-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }
@media (max-width: 899px) {
  .site-nav { position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch; background: var(--bg-elevated); border-bottom: 1px solid var(--border); padding: 12px var(--gutter); display: none; }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 14px 8px; border-top: 1px solid var(--border); }
  .site-nav a:first-child { border-top: none; }
  .site-nav-toggle { display: inline-flex; }
}

/* Hero */
.hero {
  position: relative; min-height: 100svh; min-height: 100vh;
  display: grid; place-items: center;
  padding-block: 120px 80px; overflow: hidden;
  background: var(--bg);
}
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.hero__overlay { position: absolute; inset: 0; background: linear-gradient(105deg, rgba(20,22,25,0.96) 0%, rgba(20,22,25,0.75) 45%, rgba(20,22,25,0.55) 100%); }
.hero__accent { position: absolute; inset: 0; background: linear-gradient(to right, var(--orange) 0%, transparent 4px); opacity: .6; }
.hero__inner { position: relative; z-index: 2; width: 100%; max-width: var(--container); padding-inline: var(--gutter); }
.hero__label { display: inline-flex; align-items: center; gap: 10px; font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .12em; color: var(--orange); margin-bottom: 1.2em; }
.hero__label::before { content: ""; width: 28px; height: 2px; background: var(--orange); }
.hero h1 { font-size: clamp(2.8rem, 7vw, 5rem); font-weight: 800; line-height: 1; margin: 0 0 .25em; letter-spacing: -.02em; }
.hero h1 em { color: var(--orange); font-style: normal; }
.hero__subtitle { font-size: clamp(1.1rem, 2vw, 1.5rem); color: var(--text-muted); max-width: 560px; margin: 0 0 1.8em; }
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero__logo { position: absolute; top: 50%; right: 6vw; transform: translateY(-50%); height: clamp(140px, 22vw, 280px); width: auto; opacity: .18; filter: brightness(0) invert(1); pointer-events: none; }
@media (max-width: 899px) { .hero__logo { display: none; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 28px; border-radius: var(--radius); font-weight: 600; font-size: 1rem; transition: .2s; min-height: 48px; }
.btn--primary { background: var(--orange); color: #141619; }
.btn--primary:hover { background: var(--orange-light); color: #141619; }
.btn--ghost { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn--ghost:hover { border-color: var(--orange); color: var(--orange); }

/* Sections */
.section { padding-block: 100px; }
.section__head { max-width: 680px; margin-bottom: 56px; }
.section__label { display: inline-block; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; color: var(--orange); margin-bottom: 10px; }
.section h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 700; line-height: 1.15; margin: 0 0 .4em; }
.section__lead { color: var(--text-muted); font-size: 1.1rem; }

/* Stats strip */
.stats-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.stat { background: var(--bg-card); padding: 28px; text-align: center; }
.stat__num { display: block; font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; color: var(--orange); line-height: 1; }
.stat__label { display: block; margin-top: 8px; font-size: .9rem; color: var(--text-muted); }
@media (max-width: 639px) { .stats-strip { grid-template-columns: 1fr; } }

/* Missions */
.mission { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-bottom: 1px solid var(--border); }
.mission:first-child { border-top: 1px solid var(--border); }
.mission:nth-child(odd) .mission__img { order: 2; }
.mission__img { min-height: 340px; }
.mission__img img { width: 100%; height: 100%; object-fit: cover; }
.mission__body { display: flex; flex-direction: column; justify-content: center; padding: 48px; background: var(--bg-elevated); }
.mission__num { font-size: .9rem; font-weight: 700; color: var(--orange); text-transform: uppercase; letter-spacing: .1em; margin-bottom: 8px; }
.mission__body h3 { font-size: 1.6rem; margin: 0 0 .5em; }
.mission__body p { color: var(--text-muted); margin: 0; }
@media (max-width: 899px) {
  .mission { grid-template-columns: 1fr; }
  .mission:nth-child(odd) .mission__img { order: 0; }
  .mission__img { min-height: 260px; }
  .mission__body { padding: 32px; }
}

/* Galerie */
.gallery { display: grid; grid-template-columns: repeat(12, 1fr); gap: 14px; }
.gallery a { position: relative; overflow: hidden; border-radius: var(--radius); aspect-ratio: 4/3; }
.gallery a:nth-child(1) { grid-column: span 5; }
.gallery a:nth-child(2) { grid-column: span 7; }
.gallery a:nth-child(3) { grid-column: span 4; }
.gallery a:nth-child(4) { grid-column: span 4; }
.gallery a:nth-child(5) { grid-column: span 4; }
.gallery a img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.gallery a:hover img { transform: scale(1.05); }
.gallery a::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,0); transition: .3s; }
.gallery a:hover::after { background: rgba(228,158,69,0.15); }
@media (max-width: 899px) {
  .gallery { grid-template-columns: 1fr 1fr; }
  .gallery a:nth-child(n) { grid-column: span 1; }
}
@media (max-width: 479px) { .gallery { grid-template-columns: 1fr; } }

/* Video */
.video-facade { position: relative; max-width: 760px; margin: 56px auto 0; aspect-ratio: 16/9; border-radius: var(--radius); overflow: hidden; cursor: pointer; background: #000; border: 1px solid var(--border); }
.video-facade img { width: 100%; height: 100%; object-fit: cover; opacity: .8; }
.video-facade__play { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 76px; height: 76px; border-radius: 50%; background: var(--orange); color: #141619; border: none; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; transition: .2s; }
.video-facade__play:hover { transform: translate(-50%, -50%) scale(1.08); background: var(--orange-light); }
.video-facade__play svg { width: 28px; height: 28px; margin-left: 3px; }
.video-facade iframe { width: 100%; height: 100%; border: 0; }

/* Timeline agenda */
.timeline { position: relative; padding-left: 28px; }
.timeline::before { content: ""; position: absolute; left: 6px; top: 6px; bottom: 6px; width: 2px; background: var(--border); }
.timeline__item { position: relative; margin-bottom: 32px; }
.timeline__item::before { content: ""; position: absolute; left: -28px; top: 6px; width: 14px; height: 14px; border-radius: 50%; background: var(--bg); border: 2px solid var(--orange); }
.timeline__item strong { color: var(--orange); font-weight: 700; }

/* CTA banner */
.cta-banner { background: var(--orange); color: #141619; padding-block: 80px; text-align: center; }
.cta-banner__logos { display: flex; align-items: center; justify-content: center; gap: 24px; margin-bottom: 24px; }
.cta-banner__logos img { height: 90px; width: 90px; border-radius: 50%; object-fit: cover; background: #fff; box-shadow: 0 4px 14px rgba(0,0,0,0.12); }
@media (max-width: 479px) { .cta-banner__logos img { height: 72px; width: 72px; } }
.cta-banner h2 { color: #141619; font-size: clamp(1.8rem, 3.5vw, 2.6rem); margin: 0 0 .3em; }
.cta-banner p { margin: 0 auto 1.5em; max-width: 560px; font-size: 1.1rem; }
.cta-banner .btn--ghost { border-color: #141619; color: #141619; }
.cta-banner .btn--ghost:hover { background: #141619; color: var(--orange); border-color: #141619; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 48px; align-items: start; }
@media (max-width: 899px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-email a { color: var(--orange); font-size: 1.25rem; font-weight: 600; text-decoration: underline; }
.map-wrap { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3; }
.map-wrap iframe { width: 100%; height: 100%; border: 0; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding-block: 40px; color: var(--text-muted); font-size: .9rem; }
.site-footer__inner { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: center; }
.site-footer a { color: var(--text-muted); }
.site-footer a:hover { color: var(--orange); }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(0,0,0,0.92); display: none; align-items: center; justify-content: center; padding: 24px; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 90vw; max-height: 90vh; object-fit: contain; border-radius: var(--radius); }
.lightbox__close { position: absolute; top: 20px; right: 20px; width: 44px; height: 44px; border-radius: 50%; background: var(--orange); color: #141619; border: none; cursor: pointer; font-size: 1.5rem; }

/* HelloAsso pages */
.page-ha__header { background: var(--bg-elevated); border-bottom: 1px solid var(--border); padding-block: 18px; }
.page-ha__header .container { display: flex; align-items: center; gap: 16px; }
.page-ha__header img { height: 40px; }
.page-ha__title { padding-block: 48px 32px; text-align: center; }
.page-ha__title h1 { margin: 0 0 .3em; }
.page-ha__title p { margin: 0; color: var(--text-muted); }
.page-ha__frame { width: 100%; max-width: 900px; margin: 0 auto 80px; padding-inline: var(--gutter); }
.page-ha__frame iframe { width: 100%; border: 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}