:root {
  --accent: #ffc425;
  --azure: #ffc425;
  --tech-blue: #007aff;
  --anthracite: #323232;
  --midnight: #111827;
  --midnight-deep: #050812;
  --pearl: #f7f9fc;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
}

::selection {
  background: rgba(255, 196, 37, 0.34);
  color: var(--midnight);
}

.site-nav {
  transition: box-shadow 220ms ease, transform 220ms ease;
}

.site-nav.is-scrolled .main-nav-shell {
  box-shadow: 0 18px 44px rgba(5, 8, 18, 0.24);
}

.top-contact-bar {
  min-height: 42px;
  display: flex;
  align-items: center;
  background: var(--accent);
  color: #030712;
  font-size: 0.92rem;
  font-weight: 600;
}

.top-contact-inner {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 1.25rem;
}

.top-contact-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
}

.top-contact-link,
.top-social a,
.top-social span {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: #030712;
}

.top-contact-link,
.top-social a {
  transition: opacity 180ms ease, transform 180ms ease;
}

.top-contact-link:hover,
.top-social a:hover {
  opacity: 0.72;
  transform: translateY(-1px);
}

.top-social a {
  min-width: 1.15rem;
  justify-content: center;
  font-weight: 900;
  text-transform: uppercase;
}

.main-nav-shell {
  background: var(--midnight);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  color: #ffffff;
}

.brand-logo {
  display: inline-flex;
  flex-direction: column;
  line-height: 0.92;
}

.brand-line {
  display: inline-flex;
  align-items: center;
  gap: 0.18rem;
  color: #f8fafc;
  font-size: clamp(1.55rem, 4vw, 2.25rem);
  font-weight: 900;
  letter-spacing: -0.03em;
}

.brand-bars {
  display: inline-grid;
  gap: 0.18rem;
  padding-left: 0.05rem;
}

.brand-bars i {
  display: block;
  width: 1.35rem;
  height: 0.28rem;
  background: var(--accent);
}

.brand-connect {
  margin-left: 3.05rem;
  margin-top: -0.02rem;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.15em;
}

.brand-tagline {
  margin-top: 0.5rem;
  color: var(--accent);
  font-size: 0.52rem;
  font-weight: 900;
  letter-spacing: 0.07em;
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  font-size: 1.02rem;
  font-weight: 650;
  color: rgba(255, 255, 255, 0.88);
  transition: color 180ms ease;
}

.nav-link::after {
  position: absolute;
  bottom: 0.34rem;
  left: 0;
  height: 2px;
  width: 100%;
  transform: scaleX(0);
  transform-origin: left;
  background: var(--accent);
  content: "";
  transition: transform 180ms ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--accent);
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
}

.nav-cta,
.primary-button {
  background: var(--accent);
  color: var(--midnight);
  box-shadow: 0 14px 30px rgba(255, 196, 37, 0.28);
}

.nav-cta:hover,
.primary-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(255, 196, 37, 0.34);
}

.icon-button {
  display: inline-grid;
  height: 2.75rem;
  width: 2.75rem;
  place-items: center;
  border-radius: 8px;
  color: var(--midnight);
  transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.nav-menu-button {
  color: #ffffff;
}

.icon-button:hover {
  background: rgba(255, 196, 37, 0.12);
  color: var(--accent);
}

.icon-button-dark {
  background: var(--midnight);
  color: #ffffff;
}

.icon-button-dark:hover {
  background: var(--accent);
  color: var(--midnight);
}

.mobile-link {
  border-radius: 8px;
  padding: 0.95rem 1rem;
  font-weight: 750;
  color: rgba(255, 255, 255, 0.84);
}

.mobile-menu {
  background: var(--midnight);
}

.mobile-link:hover {
  background: rgba(255, 196, 37, 0.1);
  color: var(--accent);
}

.mobile-link-primary {
  background: var(--accent);
  color: var(--midnight);
}

.mobile-link-primary:hover {
  background: var(--accent);
  color: var(--midnight);
}

.hero-visual {
  background-color: var(--midnight-deep);
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
}

/* Vidéo en background */
.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  z-index: 0;
  pointer-events: none;
  display: block;
}

/* Masque sombre sur toute la surface de la vidéo */
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  background:
    linear-gradient(
      180deg,
      rgba(5, 8, 18, 0.55) 0%,
      rgba(5, 8, 18, 0.45) 40%,
      rgba(5, 8, 18, 0.70) 100%
    ),
    linear-gradient(
      90deg,
      rgba(5, 8, 18, 0.80) 0%,
      rgba(17, 24, 39, 0.45) 60%,
      rgba(17, 24, 39, 0.20) 100%
    );
}

/* Bouton mute / unmute */
#hero-sound-btn {
  position: absolute;
  bottom: 1.75rem;
  right: 1.75rem;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.30);
  background: rgba(0, 0, 0, 0.40);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  cursor: pointer;
  transition: background 200ms ease, border-color 200ms ease, transform 200ms ease;
}

#hero-sound-btn:hover {
  background: rgba(255, 196, 37, 0.25);
  border-color: rgba(255, 196, 37, 0.60);
  transform: scale(1.08);
}

#hero-sound-btn svg {
  flex-shrink: 0;
}

.primary-button,
.secondary-button {
  display: inline-flex;
  min-height: 3.35rem;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  border-radius: 8px;
  padding: 0.95rem 1.25rem;
  font-weight: 800;
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease, color 180ms ease, border-color 180ms ease;
}

.primary-button-dark {
  box-shadow: 0 16px 34px rgba(255, 196, 37, 0.24);
}

.secondary-button {
  border: 1px solid rgba(17, 24, 39, 0.16);
  color: var(--midnight);
}

.secondary-button:hover {
  border-color: var(--accent);
  color: var(--midnight);
  transform: translateY(-2px);
}

.secondary-button-light {
  border-color: rgba(255, 255, 255, 0.42);
  color: #ffffff;
}

.secondary-button-light:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.eyebrow,
.card-kicker {
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #b27d00;
}

.bg-pearl {
  background-color: var(--pearl);
}

.service-card,
.solution-card,
.capability,
.side-panel,
.project-form,
.article-card {
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 20px 55px rgba(17, 24, 39, 0.08);
}

.service-card,
.solution-card {
  padding: 2rem;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.service-card:hover,
.solution-card:hover,
.article-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 196, 37, 0.58);
  box-shadow: 0 28px 64px rgba(17, 24, 39, 0.12);
}

.service-card h3,
.solution-card h2,
.capability h3,
.side-panel h2,
.article-card h3 {
  color: var(--midnight);
  font-weight: 850;
  line-height: 1.2;
}

.service-card h3 {
  margin-top: 1.4rem;
  font-size: 1.22rem;
}

.service-card p,
.solution-card p,
.capability p,
.side-panel p,
.article-card p {
  color: rgba(50, 50, 50, 0.68);
  line-height: 1.75;
}

.service-card p {
  margin-top: 0.8rem;
}

.icon-chip {
  display: inline-grid;
  height: 3.2rem;
  width: 3.2rem;
  place-items: center;
  border-radius: 8px;
  background: rgba(255, 196, 37, 0.18);
  color: #a36b00;
}

.metric {
  border-top: 2px solid var(--accent);
  padding-top: 1.25rem;
}

.metric span {
  color: #a36b00;
  font-size: 0.86rem;
  font-weight: 850;
}

.metric strong {
  display: block;
  margin-top: 0.65rem;
  font-size: 1.2rem;
  color: var(--midnight);
}

.metric p {
  margin-top: 0.55rem;
  color: rgba(50, 50, 50, 0.66);
  line-height: 1.7;
}

.solution-card h2 {
  margin-top: 0.9rem;
  font-size: 1.5rem;
}

.solution-card p {
  margin-top: 1rem;
}

.solution-card ul {
  margin-top: 1.4rem;
  display: grid;
  gap: 0.8rem;
  color: rgba(50, 50, 50, 0.72);
  font-size: 0.95rem;
}

.solution-card li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
}

.solution-card li svg {
  flex: 0 0 auto;
  color: #a36b00;
  margin-top: 0.2rem;
}

.capability {
  padding: 1.5rem;
}

.capability svg,
.side-panel svg.text-azure {
  color: #a36b00;
}

.capability h3 {
  margin-top: 1rem;
  font-size: 1.08rem;
}

.capability p {
  margin-top: 0.55rem;
  font-size: 0.95rem;
}

.side-panel {
  padding: 2rem;
}

.side-panel h2 {
  margin-top: 1.25rem;
  font-size: 1.55rem;
}

.side-panel p {
  margin-top: 0.8rem;
}

.panel-line {
  height: 1px;
  margin: 1.6rem 0;
  background: rgba(50, 50, 50, 0.1);
}

.project-form {
  display: grid;
  gap: 1.4rem;
  padding: 1.4rem;
}

@media (min-width: 640px) {
  .project-form {
    padding: 2rem;
  }
}

.field {
  display: grid;
  gap: 0.65rem;
}

.field span {
  font-size: 0.88rem;
  font-weight: 750;
  color: rgba(50, 50, 50, 0.82);
}

.field input,
.field textarea {
  width: 100%;
  border: 1px solid rgba(50, 50, 50, 0.14);
  border-radius: 8px;
  background: #ffffff;
  padding: 0.95rem 1rem;
  color: var(--anthracite);
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.field textarea {
  min-height: 11rem;
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(255, 196, 37, 0.22);
}

.field input::placeholder,
.field textarea::placeholder {
  color: rgba(50, 50, 50, 0.4);
}

.form-message {
  border-radius: 8px;
  padding: 0.95rem 1rem;
  font-size: 0.95rem;
  font-weight: 650;
}

.form-message.success {
  background: rgba(255, 196, 37, 0.18);
  color: #7c5300;
}

.form-message.error {
  background: rgba(190, 18, 60, 0.09);
  color: #be123c;
}

.blog-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.blog-toolbar h2 {
  font-size: 1.35rem;
  font-weight: 850;
  color: var(--midnight);
}

.blog-toolbar p {
  margin-top: 0.25rem;
  color: rgba(50, 50, 50, 0.6);
}

.article-card {
  display: flex;
  min-height: 18rem;
  flex-direction: column;
  padding: 1.6rem;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.article-card time {
  display: inline-flex;
  color: #a36b00;
  font-size: 0.82rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.article-card h3 {
  margin-top: 1rem;
  font-size: 1.28rem;
}

.article-card p {
  margin-top: 0.85rem;
}

.article-card .read-more {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding-top: 1.2rem;
  color: #a36b00;
  font-weight: 850;
}

.empty-state {
  grid-column: 1 / -1;
  border: 1px dashed rgba(17, 24, 39, 0.18);
  border-radius: 8px;
  background: #ffffff;
  padding: 2rem;
  color: rgba(50, 50, 50, 0.68);
}

.article-skeleton {
  min-height: 18rem;
  border-radius: 8px;
  background: linear-gradient(90deg, #ffffff 0%, #f4ebc7 50%, #ffffff 100%);
  background-size: 200% 100%;
  animation: shimmer 1.25s ease-in-out infinite;
}

.site-footer {
  position: relative;
  border-top: 4px solid var(--accent);
  background: var(--midnight);
  color: #ffffff;
}

.footer-logo .brand-line {
  font-size: 2.05rem;
}

.footer-heading {
  color: #ffffff;
  font-size: 1.25rem;
  font-weight: 850;
}

.footer-link,
.footer-contact {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  transition: color 180ms ease, transform 180ms ease;
}

.footer-link svg,
.footer-contact svg {
  color: var(--accent);
}

.footer-link:hover,
.footer-contact:hover {
  color: var(--accent);
  transform: translateX(3px);
}

.footer-bottom {
  background: #020617;
}

.scroll-top-button {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 60;
  display: grid;
  height: 3.6rem;
  width: 3.6rem;
  place-items: center;
  border-radius: 999px;
  background: var(--accent);
  color: var(--midnight);
  box-shadow: 0 18px 44px rgba(5, 8, 18, 0.24);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.scroll-top-button.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.scroll-top-button:hover {
  transform: translateY(-3px);
}

.reveal {
  opacity: 0 !important;
  transform: translateY(40px) scale(0.95);
  transition: opacity 800ms cubic-bezier(0.4, 0, 0.2, 1), 
              transform 800ms cubic-bezier(0.4, 0, 0.2, 1);
  will-change: opacity, transform;
}

.reveal.in-view {
  opacity: 1 !important;
  transform: translateY(0) scale(1);
}

/* Délais d'animation pour les cartes - effet cascade */
.reveal-delay-1 { 
  transition-delay: 200ms;
}
.reveal-delay-2 { 
  transition-delay: 400ms;
}
.reveal-delay-3 { 
  transition-delay: 600ms;
}
.reveal-delay-4 { 
  transition-delay: 800ms;
}
.reveal-delay-5 { 
  transition-delay: 1000ms;
}

@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

@media (max-width: 640px) {
  .top-contact-bar {
    min-height: 38px;
    font-size: 0.78rem;
  }

  .top-contact-inner {
    padding: 0 0.75rem;
  }

  .top-contact-group {
    gap: 0.85rem;
  }

  .top-contact-link:nth-child(2) {
    display: none;
  }

  .brand-connect {
    margin-left: 2.25rem;
  }

  .brand-tagline {
    font-size: 0.45rem;
  }

  .scroll-top-button {
    height: 3.15rem;
    width: 3.15rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* Images in publications cards */
.article-card.has-image {
  min-height: 28rem;
}

.article-card-image {
  width: 100%;
  height: 12rem;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 1.2rem;
}
