:root {
  --bg: #050505;
  --bg-soft: #0d0d0f;
  --text: #f5f5f5;
  --muted: #a7a7a7;
  --line: rgba(255,255,255,0.12);
  --gold: #d6b46a;
  --blue: #7aa8ff;
  --radius: 28px;
  --max: 1180px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 72% 0%, rgba(122,168,255,0.18), transparent 34%),
    radial-gradient(circle at 8% 18%, rgba(14,90,111,0.34), transparent 38%),
    var(--bg);
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.container {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

/* HEADER */

.topbar {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  width: min(var(--max), calc(100% - 28px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 14px 12px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(5,5,5,0.68);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  box-shadow: 0 18px 60px rgba(0,0,0,0.32);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(14,90,111,0.95), rgba(122,168,255,0.28));
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.16), 0 14px 30px rgba(14,90,111,0.26);
  flex: 0 0 auto;
  font-weight: 800;
  letter-spacing: -0.08em;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.brand:hover .brand-mark {
  transform: rotate(-4deg) scale(1.04);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.18), 0 18px 42px rgba(14,90,111,0.36);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand-text strong {
  font-size: 15px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand-text span {
  color: var(--muted);
  font-size: 11px;
  margin-top: 4px;
  letter-spacing: 0.04em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: rgba(245,245,245,0.74);
  font-size: 13px;
  font-weight: 500;
}

.nav a {
  transition: color 0.2s ease;
}

.nav a:hover {
  color: var(--gold);
}

/* BOUTONS */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid rgba(214,180,106,0.45);
  background: linear-gradient(135deg, rgba(214,180,106,0.22), rgba(214,180,106,0.06));
  color: #fff;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.02em;
  box-shadow: 0 14px 40px rgba(214,180,106,0.12);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  border-color: rgba(214,180,106,0.8);
  box-shadow: 0 18px 48px rgba(214,180,106,0.18);
}

.btn:active {
  transform: translateY(0) scale(0.98);
}

.btn.secondary {
  border-color: var(--line);
  background: rgba(255,255,255,0.05);
  box-shadow: none;
}

/* HERO */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 150px 0 90px;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(5,5,5,0.96) 0%, rgba(5,5,5,0.72) 48%, rgba(5,5,5,0.28) 100%);
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  opacity: 0.55;
  filter: saturate(0.9) contrast(1.08);
  transform: scale(1.02);
  animation: heroBreath 14s ease-in-out infinite alternate;
}

@keyframes heroBreath {
  from { transform: scale(1.02); }
  to { transform: scale(1.06); }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.72fr;
  gap: 54px;
  align-items: end;
}

.eyebrow,
.kicker {
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 22px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.eyebrow::before {
  content: "";
  width: 34px;
  height: 1px;
  background: var(--gold);
}

h1 {
  max-width: 900px;
  font-size: clamp(48px, 7vw, 92px);
  line-height: 0.92;
  letter-spacing: -0.08em;
  font-weight: 800;
}

.hero p {
  max-width: 660px;
  margin-top: 28px;
  color: rgba(245,245,245,0.76);
  font-size: clamp(17px, 1.5vw, 21px);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}

.hero-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,0.09), rgba(255,255,255,0.04));
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  padding: 28px;
  box-shadow: 0 28px 90px rgba(0,0,0,0.34);
}

.hero-panel strong {
  display: block;
  font-size: 20px;
  letter-spacing: -0.03em;
  margin-bottom: 14px;
}

.hero-panel ul {
  list-style: none;
  display: grid;
  gap: 13px;
  color: rgba(245,245,245,0.76);
  font-size: 14px;
  line-height: 1.45;
}

.hero-panel li {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
}

.hero-panel li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  margin-top: 6px;
  background: var(--gold);
  box-shadow: 0 0 20px rgba(214,180,106,0.45);
}

/* SECTIONS */

section {
  padding: 105px 0;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 36px;
}

h2 {
  max-width: 820px;
  font-size: clamp(34px, 4.5vw, 62px);
  line-height: 0.98;
  letter-spacing: -0.065em;
}

.section-head p,
.large-text {
  color: rgba(245,245,245,0.74);
  line-height: 1.65;
}

.section-head p {
  max-width: 410px;
}

.large-text {
  max-width: 960px;
  font-size: clamp(18px, 2vw, 27px);
  line-height: 1.48;
  margin-top: 28px;
}

/* CARTES AVANTAGES */

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

.card {
  min-height: 275px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,0.09), rgba(255,255,255,0.035));
  padding: 26px;
  position: relative;
  overflow: hidden;
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,0.08) 45%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.7s ease;
  pointer-events: none;
}

.card:hover {
  transform: translateY(-5px);
  border-color: rgba(122,168,255,0.34);
  background: linear-gradient(180deg, rgba(122,168,255,0.11), rgba(255,255,255,0.035));
}

.card:hover::before {
  transform: translateX(120%);
}

.number {
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.13em;
  margin-bottom: 58px;
}

.card h3 {
  font-size: 22px;
  letter-spacing: -0.04em;
  margin-bottom: 12px;
}

.card p {
  color: var(--muted);
  line-height: 1.55;
  font-size: 14px;
}

/* FORMATS */

.event-list {
  list-style: none;
}

.event-list li {
  position: relative;
  padding-left: 34px;
  margin-bottom: 16px;
}

.event-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 15px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 24px rgba(214,180,106,0.45);
}

/* CITATION */

.quote-section {
  background: radial-gradient(circle at center, rgba(122,168,255,0.14), transparent 38%), var(--bg-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

blockquote {
  max-width: 1100px;
  margin: auto;
  text-align: center;
  font-size: clamp(31px, 5vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.075em;
  font-weight: 800;
}

/* GALERIE — MOBILE D'ABORD : 1 COLONNE PAR DÉFAUT */

.gallery-section {
  overflow: hidden;
  padding-top: 60px;
}

.gallery-grid {
  width: min(100% - 28px, var(--max));
  margin: 46px auto 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.gallery-card,
.gallery-card.large {
  position: relative;
  grid-column: auto;
  width: 100%;
  height: 350px;
  min-width: 0;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.14);
  background: #111;
  box-shadow: 0 20px 60px rgba(0,0,0,0.35);
  transition: transform 0.35s ease, border-color 0.35s ease;
}

.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.78;
  transition: transform 0.5s ease, opacity 0.3s ease;
}

.gallery-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to top, rgba(0,0,0,0.9), rgba(0,0,0,0.35), transparent);
  pointer-events: none;
}

.gallery-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(circle at 50% 20%, rgba(214,180,106,0.16), transparent 38%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.gallery-card:hover {
  transform: translateY(-6px) scale(1.02);
  border-color: rgba(214,180,106,0.5);
}

.gallery-card:hover img {
  transform: scale(1.05);
  opacity: 0.95;
}

.gallery-card:hover::after {
  opacity: 1;
}

.gallery-info {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 24px;
}

.gallery-info h3 {
  font-size: clamp(26px, 8vw, 38px);
  line-height: 1;
  margin-bottom: 10px;
  color: #fff;
  text-shadow: 0 4px 18px rgba(0,0,0,0.75);
}

.gallery-info p {
  max-width: 560px;
  font-size: 16px;
  line-height: 1.4;
  color: rgba(255,255,255,0.84);
  text-shadow: 0 3px 14px rgba(0,0,0,0.8);
}

/* GALERIE DESKTOP SEULEMENT */

@media (min-width: 900px) {
  .gallery-grid {
    width: min(var(--max), calc(100% - 40px));
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .gallery-card,
  .gallery-card.large {
    height: 340px;
  }

  .gallery-card.large {
    grid-column: span 2;
  }
}

/* CONTACT */

.cta {
  padding-bottom: 110px;
}

.cta-box {
  border: 1px solid rgba(214,180,106,0.3);
  border-radius: 44px;
  background:
    radial-gradient(circle at 80% 20%, rgba(214,180,106,0.20), transparent 28%),
    radial-gradient(circle at 15% 60%, rgba(122,168,255,0.16), transparent 32%),
    rgba(255,255,255,0.055);
  padding: clamp(34px, 6vw, 72px);
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 44px;
  align-items: center;
  box-shadow: 0 30px 100px rgba(0,0,0,0.34);
}

.cta-box p {
  color: var(--muted);
  line-height: 1.65;
  margin-top: 24px;
  font-size: 18px;
  max-width: 620px;
}

.contact-card {
  padding: 30px;
  border-radius: 28px;
  border: 1px solid var(--line);
  background: rgba(0,0,0,0.28);
}

.contact-card a {
  display: block;
  color: var(--gold);
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 20px;
  word-break: break-word;
}

.contact-card p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 15px;
}

/* FOOTER */

footer {
  border-top: 1px solid var(--line);
  padding: 30px 0;
  color: var(--muted);
  font-size: 13px;
}

/* BOUTON RETOUR */

.top-btn {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(5,5,5,0.72);
  color: var(--text);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: all 0.25s ease;
}

.top-btn.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* ANIMATIONS */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(.2,.8,.2,1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.services-grid .reveal:nth-child(2) { transition-delay: 0.08s; }
.services-grid .reveal:nth-child(3) { transition-delay: 0.16s; }
.services-grid .reveal:nth-child(4) { transition-delay: 0.24s; }

/* RESPONSIVE TABLETTE */

@media (max-width: 980px) {
  .nav {
    display: none;
  }

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

  .hero-panel {
    max-width: 560px;
  }

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

  .cta-box {
    grid-template-columns: 1fr;
  }
}

/* RESPONSIVE MOBILE */

@media (max-width: 640px) {
  .container {
    width: min(100% - 28px, var(--max));
  }

  .topbar {
    top: 10px;
    padding: 10px 12px;
    gap: 10px;
  }

  .brand {
    gap: 10px;
  }

  .brand-text span {
    display: none;
  }

  .brand-text strong {
    font-size: 13px;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
    border-radius: 11px;
  }

  .topbar .btn {
    min-height: 38px;
    padding: 0 12px;
    font-size: 11px;
    white-space: nowrap;
  }

  .hero {
    padding: 120px 0 70px;
    min-height: auto;
  }

  .hero-grid {
    gap: 28px;
  }

  h1 {
    font-size: clamp(42px, 15vw, 58px);
    letter-spacing: -0.075em;
  }

  h2 {
    font-size: clamp(34px, 12vw, 52px);
  }

  .hero p,
  .large-text {
    font-size: 16px;
  }

  section {
    padding: 72px 0;
  }

  .section-head {
    display: block;
  }

  .section-head p {
    margin-top: 18px;
  }

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

  .card {
    min-height: 230px;
  }

  .number {
    margin-bottom: 42px;
  }

  .gallery-card,
  .gallery-card.large {
    height: 350px;
  }

  .gallery-info {
    padding: 22px;
  }

  .gallery-info h3 {
    font-size: 27px;
  }

  .gallery-info p {
    max-width: 100%;
    font-size: 15px;
    line-height: 1.42;
  }

  .cta-box {
    border-radius: 32px;
  }
}

/* TRÈS PETITS SMARTPHONES */

@media (max-width: 420px) {
  .topbar .btn {
    font-size: 10px;
    padding: 0 10px;
  }

  .gallery-card,
  .gallery-card.large {
    height: 330px;
  }

  .gallery-info h3 {
    font-size: 25px;
  }

  .gallery-info p {
    font-size: 14px;
  }
}

/* ACCESSIBILITÉ */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
