:root {
  --blue: #1d4ed8;
  --blue-deep: #0b2a6a;
  --orange: #f26b21;
  --gold: #f5c400;
  --green: #22c55e;
  --ged-blue: #0b63c6;
  --ink: #f7fbff;
  --muted: rgba(247, 251, 255, 0.74);
  --line: rgba(255, 255, 255, 0.16);
  --glass: rgba(6, 18, 48, 0.52);
}

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

html,
body {
  min-height: 100%;
}

body {
  font-family: Outfit, system-ui, sans-serif;
  color: var(--ink);
  background: var(--blue-deep);
  overflow-x: hidden;
}

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

.slideshow {
  position: fixed;
  inset: 0;
  z-index: 0;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 1s ease, transform 1.2s ease;
}

.slide.is-active {
  opacity: 1;
  transform: scale(1);
}

.slide::before,
.slide::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
}

.theme-blue {
  background:
    radial-gradient(circle at 78% 18%, rgba(245, 196, 0, 0.28), transparent 22%),
    radial-gradient(circle at 18% 82%, rgba(242, 107, 33, 0.28), transparent 28%),
    linear-gradient(135deg, #0836a0 0%, #1d4ed8 48%, #0ea5e9 100%);
}

.theme-orange {
  background:
    radial-gradient(circle at 80% 70%, rgba(245, 196, 0, 0.35), transparent 26%),
    linear-gradient(145deg, #c2410c 0%, #f26b21 46%, #fdba74 100%);
}

.theme-gold {
  background:
    radial-gradient(circle at 20% 20%, rgba(29, 78, 216, 0.35), transparent 30%),
    linear-gradient(140deg, #b45309 0%, #f5c400 55%, #fde68a 100%);
}

.theme-navy {
  background:
    radial-gradient(circle at 85% 15%, rgba(56, 189, 248, 0.28), transparent 24%),
    linear-gradient(160deg, #041433 0%, #123a8c 52%, #1d4ed8 100%);
}

.theme-network {
  background:
    radial-gradient(circle at 80% 18%, rgba(245, 196, 0, 0.3), transparent 24%),
    linear-gradient(135deg, #1e3a8a 0%, #0e7490 52%, #22d3ee 100%);
}

.theme-blue-alt {
  background:
    radial-gradient(circle at 70% 80%, rgba(242, 107, 33, 0.3), transparent 28%),
    linear-gradient(125deg, #075985 0%, #2563eb 50%, #38bdf8 100%);
}

.theme-orange-alt {
  background:
    radial-gradient(circle at 15% 75%, rgba(29, 78, 216, 0.32), transparent 26%),
    linear-gradient(150deg, #9a3412 0%, #ea580c 42%, #f5c400 100%);
}

.theme-ged {
  background:
    radial-gradient(circle at 82% 18%, rgba(74, 222, 128, 0.38), transparent 26%),
    linear-gradient(135deg, #0b63c6 0%, #0891b2 48%, #22c55e 100%);
}

.theme-ged::after {
  width: 420px;
  height: 420px;
  right: -40px;
  bottom: -80px;
  background: rgba(255, 255, 255, 0.08);
}

/* Illustrations du slideshow (domaines d'activité DIGITECH) */
.slide {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.slide[data-index="0"] { background-image: url("images/slides/slide-1-integration-it.svg"); }
.slide[data-index="1"] { background-image: url("images/slides/slide-2-developpement.svg"); }
.slide[data-index="2"] { background-image: url("images/slides/slide-3-digitalisation.svg"); }
.slide[data-index="3"] { background-image: url("images/slides/slide-4-cybersecurite.svg"); }
.slide[data-index="4"] { background-image: url("images/slides/slide-5-network.svg"); }
.slide[data-index="5"] { background-image: url("images/slides/slide-6-storage.svg"); }
.slide[data-index="6"] { background-image: url("images/slides/slide-7-support.svg"); }
.slide[data-index="7"] { background-image: url("images/slides/slide-8-digiged.svg"); }

.grid-noise {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(circle at 70% 40%, black, transparent 72%);
  pointer-events: none;
}

.veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(4, 16, 48, 0.78) 0%, rgba(4, 16, 48, 0.38) 48%, rgba(4, 16, 48, 0.22) 100%),
    linear-gradient(180deg, rgba(4, 16, 48, 0.28) 0%, transparent 38%, rgba(4, 16, 48, 0.5) 100%);
}

.topbar,
.stage,
.footer {
  position: relative;
  z-index: 1;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 32px 8px;
}

.brand {
  display: block;
  width: 148px;
  background: #fff;
  padding: 6px 8px 8px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
}

.brand-logo {
  width: 100%;
  height: auto;
}

.slide-mark {
  position: absolute;
  right: 6%;
  top: 12%;
  width: min(220px, 22vw);
  background: #fff;
  padding: 10px 12px;
  opacity: 0.96;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22);
}

.slide-mark-wide {
  width: min(280px, 22vw);
  top: 12%;
  right: 5%;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: auto;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.status {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.04em;
}

.contact-top {
  padding: 10px 14px;
}

.pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 0 rgba(242, 107, 33, 0.7);
  animation: pulse 1.8s infinite;
}

@keyframes pulse {
  70% {
    box-shadow: 0 0 0 8px rgba(242, 107, 33, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(242, 107, 33, 0);
  }
}

.stage {
  min-height: calc(100vh - 128px);
  display: grid;
  grid-template-columns: minmax(320px, 560px) 1fr;
  gap: 28px;
  align-items: end;
  padding: 0 32px 18px;
}

.panel {
  background: var(--glass);
  border: 1px solid var(--line);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  padding: 22px 24px 18px;
  max-width: 560px;
}

.kicker {
  color: var(--gold);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 11px;
  margin-bottom: 10px;
}

h1 {
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  font-weight: 600;
  line-height: 1.08;
  margin-bottom: 8px;
}

.lead {
  color: var(--muted);
  font-weight: 300;
  line-height: 1.5;
  font-size: 14px;
  margin-bottom: 14px;
}

.domains {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 14px;
  margin-bottom: 12px;
}

.domains li {
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.domains li.featured {
  border-top-color: var(--orange);
}

.domains strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 3px;
}

.domains .featured strong {
  color: var(--gold);
}

.domains span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 300;
  line-height: 1.45;
}

.ged-card {
  display: grid;
  grid-template-columns: 168px 1fr;
  gap: 12px;
  align-items: center;
  background: #fff;
  color: #1e293b;
  padding: 8px 12px;
  margin-bottom: 14px;
  border-left: 5px solid var(--green);
}

.ged-logo {
  width: 100%;
  height: 72px;
  object-fit: contain;
  object-position: left center;
}

.ged-card p {
  font-size: 13px;
  line-height: 1.5;
  font-weight: 400;
}

.ged-card strong {
  color: var(--ged-blue);
}

.contact {
  display: inline-flex;
  align-items: center;
  color: #fff;
  background: var(--orange);
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 12px 18px;
  font-weight: 600;
  transition: transform 0.2s ease, background 0.2s ease;
}

.contact:hover {
  transform: translateY(-1px);
  background: #ff7a33;
}

.mail {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
}

.caption {
  justify-self: end;
  max-width: 340px;
  padding-bottom: 8px;
}

.caption-label {
  color: var(--gold);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 11px;
  margin-bottom: 8px;
}

.caption-label:empty {
  display: none;
}

.caption.is-ged .caption-label {
  color: #bbf7d0;
}

.caption-logo {
  background: #fff;
  padding: 10px 12px;
  margin-bottom: 12px;
  max-width: 280px;
}

.caption-title {
  font-size: 1.7rem;
  font-weight: 600;
  line-height: 1.15;
  margin-bottom: 8px;
}

.caption-text {
  color: var(--muted);
  font-weight: 300;
  line-height: 1.55;
  min-height: 48px;
}

.dots {
  display: flex;
  gap: 8px;
  margin: 18px 0 12px;
}

.dot {
  width: 22px;
  height: 3px;
  border: 0;
  background: rgba(255, 255, 255, 0.28);
  cursor: pointer;
}

.dot.is-active {
  background: var(--gold);
}

.caption.is-ged .dot.is-active {
  background: var(--green);
}

.progress {
  height: 1px;
  background: rgba(255, 255, 255, 0.16);
  overflow: hidden;
}

.progress-bar {
  display: block;
  height: 100%;
  width: 0;
  background: var(--gold);
}

.caption.is-ged .progress-bar {
  background: var(--green);
}

.progress-bar.is-running {
  animation: fill 7s linear forwards;
}

@keyframes fill {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

.footer {
  padding: 0 32px 14px;
  color: var(--muted);
  font-size: 12px;
}

@media (max-width: 900px) {
  .topbar,
  .stage,
  .footer {
    padding-left: 18px;
    padding-right: 18px;
  }

  .stage {
    grid-template-columns: 1fr;
    min-height: auto;
    gap: 24px;
    padding-bottom: 20px;
  }

  .panel {
    padding: 22px;
  }

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

  .ged-card {
    grid-template-columns: 1fr;
  }

  .caption {
    justify-self: start;
    max-width: none;
  }

  .slide-mark {
    display: none;
  }

  .slide {
    background-position: 68% center;
  }
}
