/* RESET */
* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0d1220;
  --card: #141b2e;
  --card2: #1a2338;
  --text: #e9ecf5;
  --accent: #ff8f3d;
  --accent2: #5fb0ff;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Manrope', sans-serif;
  overflow-x: hidden;
}

a { color: var(--text); text-decoration: none; }
a:hover { color: var(--accent); }
::selection { background: var(--accent); color: var(--bg); }

img { max-width: 100%; }

.heading { font-family: 'Syne', sans-serif; font-weight: 800; }

@keyframes floatnote {
  0%, 100% { transform: translateY(0) rotate(-6deg); }
  50% { transform: translateY(-16px) rotate(8deg); }
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@keyframes introLetter {
  0% { opacity: 0; transform: translateY(60px) rotate(8deg) scale(.6); }
  60% { opacity: 1; transform: translateY(-6px) rotate(-2deg) scale(1.05); }
  100% { opacity: 1; transform: translateY(0) rotate(0) scale(1); }
}
@keyframes introNote {
  0% { opacity: 0; transform: translate(0, 40px) rotate(0); }
  30% { opacity: 1; }
  100% { opacity: 0; transform: translate(-40px, -140px) rotate(30deg); }
}
@keyframes introFade {
  from { opacity: 1; visibility: visible; }
  to { opacity: 0; visibility: hidden; }
}

/* ===== INTRO ===== */
.intro-splash {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 26px;
  cursor: pointer;
}
.intro-splash.is-leaving {
  animation: introFade .7s ease both;
}
.intro-notes {
  position: relative;
  height: 60px;
  width: 300px;
}
.intro-notes span {
  position: absolute;
  animation: introNote 2.2s ease both;
}
.intro-notes span:nth-child(1) { left: 40px; top: 10px; font-size: 30px; color: var(--accent); animation-delay: .2s; }
.intro-notes span:nth-child(2) { left: 150px; top: 20px; font-size: 24px; color: var(--accent2); animation-delay: .7s; animation-duration: 2.4s; }
.intro-notes span:nth-child(3) { left: 240px; top: 0; font-size: 20px; color: var(--text); animation-delay: 1.1s; animation-duration: 2s; }
.intro-title { display: flex; gap: 4px; }
.intro-title span {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(34px, 7vw, 64px);
  letter-spacing: 1px;
  color: var(--text);
  opacity: 0;
  animation: introLetter .55s cubic-bezier(.2,1.4,.4,1) both;
}
.intro-title span.accent { color: var(--accent); }
.intro-tagline {
  font-size: 15px;
  opacity: .55;
  letter-spacing: 3px;
  opacity: 0;
  animation: introLetter .5s ease 1.9s both;
}
.intro-skip {
  position: absolute;
  bottom: 30px;
  font-size: 12px;
  opacity: .4;
}

/* ===== HEADER ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 5vw;
  background: rgba(13, 18, 32, .85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(233, 236, 245, .08);
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 14px;
}
.brand .back-arrow { color: var(--accent); font-size: 18px; }
.brand img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
}
.brand-name {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  letter-spacing: 1px;
  font-size: 17px;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 14px;
  font-weight: 600;
}

.lang-switch { position: relative; }
.lang-current {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--card2);
  border-radius: 10px;
  padding: 8px 14px;
  cursor: pointer;
  user-select: none;
}
.lang-current .caret { opacity: .6; font-size: 11px; }
.lang-menu {
  position: absolute;
  top: 46px;
  right: 0;
  background: var(--card2);
  border-radius: 12px;
  padding: 6px;
  display: none;
  flex-direction: column;
  gap: 2px;
  box-shadow: 0 12px 34px rgba(0, 0, 0, .6);
  min-width: 140px;
  z-index: 5;
}
.lang-switch.is-open .lang-menu { display: flex; }
.lang-option {
  display: flex;
  gap: 9px;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
}
.lang-option:hover { background: rgba(95, 176, 255, .12); }
.lang-option.is-active { background: rgba(255, 143, 61, .15); color: var(--accent); }

@media (max-width: 720px) {
  .brand-name, .site-nav .nav-link { display: none; }
  .site-nav { gap: 12px; }
}

/* ===== HERO ===== */
.hero {
  position: relative;
  height: 82vh;
  min-height: 560px;
  overflow: hidden;
}
.hero video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .5;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(13, 18, 32, .15) 0%, rgba(13, 18, 32, .96) 80%);
}
.hero-content {
  position: absolute;
  left: 5vw;
  right: 5vw;
  bottom: 9vh;
  max-width: 1200px;
  z-index: 5;
}
.hero-title-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}
@media (min-width: 1150px) {
  .hero-title-row {
    flex-direction: row;
    align-items: center;
    gap: 28px;
  }
  .hero-title-row h1 { flex: 1 1 auto; min-width: 0; }
  .hero-logo { flex: 0 0 auto; }
}
.hero-logo {
  width: 240px;
  height: 240px;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 14px 26px rgba(0, 0, 0, .5));
}
.hero-content h1 {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(38px, 6.5vw, 84px);
  line-height: 1;
  letter-spacing: -1px;
}
.hero-content h1 .accent { color: var(--accent); }

@media (max-width: 720px) {
  .hero-logo { width: 140px; height: 140px; }
}
.hero-sub {
  font-size: 17px;
  opacity: .82;
  margin-top: 16px;
  line-height: 1.6;
  max-width: 560px;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 26px;
}
.btn {
  text-decoration: none;
  font-weight: 800;
  padding: 14px 28px;
  border-radius: 30px;
  cursor: pointer;
  transition: background .2s, transform .2s;
  display: inline-block;
}
.btn-primary { background: var(--accent); color: var(--bg); }
.btn-primary:hover { background: #ffa35e; color: var(--bg); transform: translateY(-2px); }
.btn-outline {
  border: 1.5px solid rgba(233, 236, 245, .4);
  color: var(--text);
  font-weight: 700;
}
.btn-outline:hover { color: var(--accent); border-color: var(--accent); }

/* ===== NOTES FLOTTANTES ===== */
.notes-layer {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
.notes-layer .note {
  position: absolute;
  display: inline-block;
  opacity: .35;
  text-shadow: 0 0 18px rgba(255, 143, 61, .3);
  animation: floatnote ease-in-out infinite;
}

/* ===== MARQUEE ===== */
.marquee-band {
  overflow: hidden;
  border-top: 1px solid rgba(233, 236, 245, .14);
  border-bottom: 1px solid rgba(233, 236, 245, .14);
  position: relative;
  z-index: 2;
  background: var(--bg);
}
.marquee-track {
  display: flex;
  white-space: nowrap;
  animation: marquee 26s linear infinite;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 2px;
  padding: 12px 0;
  color: var(--accent2);
}
.marquee-track span { padding-right: 50px; }

/* ===== PROJETS ===== */
.projects {
  position: relative;
  z-index: 2;
  padding: 70px 5vw 30px;
  background: var(--bg);
}
.projects-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 36px;
}
.projects-head h2 { font-size: 42px; }
.projects-sub { font-size: 14px; color: var(--accent2); }
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
}
.project-card {
  color: var(--text);
  background: var(--card);
  border-radius: 18px;
  overflow: hidden;
  display: block;
  transition: transform .3s, box-shadow .3s;
}
.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .5);
  color: var(--text);
}
.project-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
}
.project-card-body {
  padding: 16px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.project-card-body h3 {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 19px;
}
.project-card-body .kind { font-size: 13px; opacity: .6; margin-top: 3px; }
.project-card-body .arrow { color: var(--accent); font-size: 19px; }
.project-card.is-soon {
  border: 1px dashed rgba(95, 176, 255, .4);
}
.project-card.is-soon .placeholder {
  width: 100%;
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  justify-content: center;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  color: var(--accent2);
  font-size: 15px;
  letter-spacing: 3px;
}
.project-card.is-soon .placeholder span {
  font-size: 30px;
  animation: floatnote ease-in-out infinite;
}
.project-card.is-soon .arrow { color: var(--accent2); }

/* ===== L'AME ===== */
.ame {
  position: relative;
  z-index: 2;
  padding: 90px 5vw 60px;
  text-align: center;
  background: var(--bg);
}
.ame-quote {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(26px, 3.2vw, 38px);
  line-height: 1.3;
  max-width: 800px;
  margin: 0 auto;
}
.ame-quote .accent { color: var(--accent); }
.ame p {
  font-size: 16px;
  line-height: 1.85;
  opacity: .75;
  max-width: 660px;
  margin: 26px auto 0;
}

/* ===== HISTOIRE ===== */
.history {
  position: relative;
  z-index: 2;
  padding: 30px 5vw 60px;
  background: var(--bg);
}
.history h2 { font-size: 38px; margin-bottom: 30px; }
.history-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.history-item { padding: 22px; background: var(--card2); }
.history-item:nth-child(1) { border-radius: 16px 0 0 16px; background: linear-gradient(90deg, var(--card), var(--card2)); }
.history-item:nth-child(3) { background: #1c2740; }
.history-item:nth-child(4) { border-radius: 0 16px 16px 0; background: linear-gradient(90deg, #1c2740, #2a2030); }
.history-item .year { font-family: 'Syne', sans-serif; font-weight: 800; font-size: 28px; color: var(--accent2); }
.history-item:nth-child(4) .year { color: var(--accent); }
.history-item .place { font-weight: 700; font-size: 15px; margin-top: 8px; }
.history-item .desc { font-size: 13.5px; opacity: .65; margin-top: 4px; line-height: 1.5; }

.links-row {
  display: flex;
  gap: 16px;
  margin-top: 26px;
  flex-wrap: wrap;
}
.link-card {
  flex: 1;
  min-width: 280px;
  background: var(--card);
  border-radius: 16px;
  padding: 22px 26px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: transform .3s;
}
.link-card:hover { transform: translateY(-4px); color: var(--text); }
.link-card .label { font-size: 12px; letter-spacing: 2px; color: var(--accent2); }
.link-card .name { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 21px; margin-top: 5px; }
.link-card .go { font-size: 20px; color: var(--accent); }

/* ===== FOOTER ===== */
.site-footer {
  position: relative;
  z-index: 2;
  border-top: 1px solid rgba(233, 236, 245, .12);
  padding: 22px 5vw;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  opacity: .85;
  background: var(--bg);
}
.footer-langs { display: flex; gap: 10px; }
.footer-langs span { cursor: pointer; font-size: 17px; opacity: .45; }
.footer-langs span.is-active { opacity: 1; }

.ahu-badge {
  margin: 0;
  font-size: 0.7em;
  font-family: inherit;
  opacity: 0.55;
  transition: opacity 0.2s ease;
}
.ahu-badge:hover {
  opacity: 0.85;
}
.ahu-badge a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}

/* ===== FICHE PROJET (album / service) ===== */
.project-fiche {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(300px, 460px) 1fr;
  gap: 6vw;
  padding: 70px 5vw 40px;
  align-items: start;
  background: var(--bg);
}
.project-fiche-cover { position: relative; }
.project-fiche-cover img {
  width: 100%;
  border-radius: 20px;
  display: block;
  box-shadow: 0 26px 60px rgba(0, 0, 0, .6);
}
.project-fiche-cover .note {
  position: absolute;
  top: -18px;
  right: -14px;
  font-size: 30px;
  color: var(--accent);
  animation: floatnote 5s ease-in-out infinite;
}
.fiche-kind { font-size: 13px; letter-spacing: 3px; color: var(--accent2); font-weight: 700; }
.fiche-title {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(44px, 5.5vw, 72px);
  line-height: 1;
  margin-top: 12px;
}
.fiche-desc { font-size: 16px; line-height: 1.8; opacity: .8; margin-top: 22px; max-width: 560px; }
.fiche-label { font-size: 14px; font-weight: 700; letter-spacing: 2px; color: var(--accent2); margin-top: 36px; }

.streaming-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 14px; }
.streaming-links a {
  text-decoration: none;
  background: var(--card);
  border-radius: 30px;
  padding: 12px 22px;
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: transform .25s;
}
.streaming-links a:hover { transform: translateY(-3px); color: var(--accent); }
.streaming-links svg { flex-shrink: 0; }

.service-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  margin-top: 32px;
  max-width: 560px;
}
.service-feature { background: var(--card); border-radius: 16px; padding: 18px 20px; }
.service-feature .icon { font-size: 22px; }
.service-feature .label { font-weight: 700; margin-top: 8px; font-size: 15px; }

.fiche-actions { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }

/* ===== TEASER (bientôt) ===== */
.teaser {
  position: relative;
  z-index: 2;
  flex: 1;
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 90px 5vw;
  gap: 20px;
  background: var(--bg);
}
.teaser-notes { display: flex; gap: 22px; }
.teaser-notes span:nth-child(1) { font-size: 34px; color: var(--accent); animation: floatnote 4.5s ease-in-out infinite; }
.teaser-notes span:nth-child(2) { font-size: 26px; color: var(--accent2); animation: floatnote 6s ease-in-out infinite; }
.teaser-notes span:nth-child(3) { font-size: 20px; opacity: .7; animation: floatnote 5.2s ease-in-out infinite; }
.teaser-badge {
  font-size: 13px;
  letter-spacing: 4px;
  color: var(--accent2);
  font-weight: 700;
  border: 1px dashed rgba(95, 176, 255, .5);
  border-radius: 20px;
  padding: 8px 18px;
}
.teaser h1 {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(42px, 5.5vw, 68px);
  line-height: 1.05;
  max-width: 800px;
}
.teaser-sub { font-size: 17px; opacity: .75; max-width: 520px; line-height: 1.7; }
.teaser-notify { color: var(--accent); font-weight: 700; margin-top: 8px; }
.teaser .link-card { max-width: 420px; margin-top: 10px; }

.page-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ===== SCROLL REVEAL ===== */
[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s ease, transform .7s ease;
}
[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 720px) {
  .project-fiche { grid-template-columns: 1fr; }
}
