/* ═══════════════════════════════════════════
   RESET & BASE
═══════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a   { color: inherit; text-decoration: none; }
ul  { list-style: none; }
button { border: none; background: none; cursor: pointer; font: inherit; }

/* ═══════════════════════════════════════════
   LAYOUT UTILITIES
═══════════════════════════════════════════ */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

section { padding-block: var(--pad-section); }

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}

.section-label::before {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: var(--accent);
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(30px, 3.8vw, 52px);
  font-weight: 700;
  line-height: 1.1;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.section-sub {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 540px;
  line-height: 1.75;
}

/* ═══════════════════════════════════════════
   NAVIGATION
═══════════════════════════════════════════ */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition:
    background-color var(--t-base),
    backdrop-filter var(--t-base),
    border-color var(--t-base);
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  background-color: var(--bg-nav);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-color: var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

.nav-logo img { height: 30px; width: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav-links a {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
  transition: color var(--t-fast);
}

.nav-links a:hover { color: var(--text-primary); }

.nav-cta {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  padding: 10px 22px !important;
  background: var(--accent) !important;
  color: var(--accent-text) !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  letter-spacing: 0.05em !important;
  border-radius: var(--r-sm) !important;
  transition: opacity var(--t-fast), transform var(--t-fast) !important;
}

.nav-cta:hover { opacity: 0.88 !important; transform: translateY(-1px) !important; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--t-base);
}

.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ═══════════════════════════════════════════
   HERO
═══════════════════════════════════════════ */
.hero {
  position: relative;
  height: 100svh;
  min-height: 600px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../images/hero.png');
  background-size: cover;
  background-position: center 30%;
  transform: scale(1.06);
  transition: transform 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hero.loaded .hero-bg { transform: scale(1); }

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(8, 10, 15, 0.55) 0%,
    rgba(8, 10, 15, 0.25) 45%,
    rgba(8, 10, 15, 0.90) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--pad-x);
  padding-top: var(--nav-h);
}

.hero-eyebrow {
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.hero-eyebrow::before {
  content: '';
  display: block;
  width: 36px;
  height: 1px;
  background: var(--accent);
  flex-shrink: 0;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(44px, 7vw, 100px);
  line-height: 0.88;
  letter-spacing: 0.02em;
  color: var(--text-primary);
  margin-bottom: 36px;
}

.hero-title em {
  color: var(--accent);
  font-style: normal;
}

.hero-desc {
  font-size: clamp(14px, 1.4vw, 17px);
  color: var(--text-secondary);
  max-width: 440px;
  line-height: 1.75;
  margin-bottom: 48px;
}

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

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  background: var(--accent);
  color: var(--accent-text);
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.05em;
  border-radius: var(--r-sm);
  transition: opacity var(--t-fast), transform var(--t-fast), box-shadow var(--t-fast);
}

.btn-primary:hover {
  opacity: 0.88;
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(0, 170, 255, 0.32);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 30px;
  border: 1px solid var(--border-accent);
  color: var(--text-primary);
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.05em;
  border-radius: var(--r-sm);
  transition: background-color var(--t-fast), border-color var(--t-fast);
}

.btn-secondary:hover {
  background-color: var(--accent-dim);
  border-color: var(--accent);
}

.hero-scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 2;
  color: var(--text-muted);
  font-family: var(--font-heading);
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  animation: scrollBounce 2.4s ease-in-out infinite;
}

.hero-scroll svg { width: 14px; height: 14px; }

@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.5; }
  50%       { transform: translateX(-50%) translateY(7px); opacity: 1; }
}

/* ═══════════════════════════════════════════
   TICKER STRIP
═══════════════════════════════════════════ */
.ticker {
  background: var(--accent);
  padding-block: 13px;
  overflow: hidden;
  white-space: nowrap;
  user-select: none;
}

.ticker-track {
  display: inline-flex;
  align-items: center;
  gap: 48px;
  animation: tickerScroll 28s linear infinite;
}

.ticker-track span {
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-text);
  flex-shrink: 0;
}

.ticker-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  flex-shrink: 0;
}

@keyframes tickerScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ═══════════════════════════════════════════
   SERVICES
═══════════════════════════════════════════ */
.services { background: var(--bg-primary); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  margin-top: 60px;
}

.service-card {
  background: var(--bg-card);
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: background-color var(--t-base);
}

.service-card:hover { background: var(--bg-card-hover); }

.service-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--r-md);
  background: var(--accent-dim);
  border: 1px solid var(--accent-mid);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}

.service-icon svg { width: 22px; height: 22px; }

.service-name {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}

.service-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.75;
  flex: 1;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 8px;
}

.tag {
  font-family: var(--font-heading);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: 100px;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  color: var(--text-muted);
}

/* ═══════════════════════════════════════════
   PORTFOLIO
═══════════════════════════════════════════ */
.portfolio { background: var(--bg-secondary); }

.portfolio-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 56px;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.prestation-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color var(--t-base), transform var(--t-base), box-shadow var(--t-base);
}

.prestation-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-5px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
}

.prestation-card:hover .prestation-img img { transform: scale(1.05); }

.prestation-img {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  position: relative;
  background: var(--bg-secondary);
}

.prestation-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow);
}

.prestation-cat {
  position: absolute;
  top: 14px;
  left: 14px;
  font-family: var(--font-heading);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 5px 11px;
  border-radius: 100px;
  background: rgba(8, 10, 15, 0.7);
  border: 1px solid var(--border-accent);
  color: var(--accent);
  backdrop-filter: blur(8px);
}

.prestation-body {
  padding: 26px 26px 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 6px;
}

.prestation-client {
  font-family: var(--font-heading);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.prestation-title {
  font-family: var(--font-heading);
  font-size: 19px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}

.prestation-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.prestation-date {
  font-size: 11px;
  color: var(--text-muted);
  font-family: var(--font-heading);
}

.prestation-link {
  margin-left: auto;
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: gap var(--t-fast);
}

.prestation-card:hover .prestation-link { gap: 9px; }

/* ═══════════════════════════════════════════
   CLIENTS
═══════════════════════════════════════════ */
.clients { background: var(--bg-primary); }

.clients-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  margin-top: 56px;
}

.client-logo {
  padding: 44px 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: 1px solid var(--border);
  transition: background-color var(--t-base);
}

.client-logo:last-child { border-right: none; }

.client-logo:hover { background: var(--bg-card); }

.client-logo img {
  max-height: 96px;
  max-width: 210px;
  width: auto;
  opacity: 0.55;
  filter: brightness(0) invert(1);
  transition: opacity var(--t-base);
  object-fit: contain;
}

.client-logo:hover img { opacity: 0.95; }

/* ═══════════════════════════════════════════
   ABOUT
═══════════════════════════════════════════ */
.about { background: var(--bg-secondary); }

.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-visual { position: relative; padding-bottom: 48px; }

.about-img-main {
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.about-img-main img { width: 100%; height: 100%; object-fit: cover; }

.about-img-accent {
  position: absolute;
  bottom: 0;
  right: -24px;
  width: 46%;
  border-radius: var(--r-md);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border: 4px solid var(--bg-secondary);
  box-shadow: var(--accent-glow);
}

.about-img-accent img { width: 100%; height: 100%; object-fit: cover; }

.about-text { display: flex; flex-direction: column; gap: 28px; }

.about-list { display: flex; flex-direction: column; gap: 14px; }

.about-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.about-list li::before {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════
   CONTACT
═══════════════════════════════════════════ */
.contact { background: var(--bg-primary); }

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 80px;
  align-items: start;
}

.contact-info { display: flex; flex-direction: column; gap: 36px; }

.contact-item { display: flex; gap: 18px; align-items: flex-start; }

.contact-icon {
  width: 42px;
  height: 42px;
  background: var(--accent-dim);
  border: 1px solid var(--accent-mid);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}

.contact-icon svg { width: 18px; height: 18px; }

.contact-item-label {
  font-family: var(--font-heading);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 5px;
}

.contact-item-value {
  font-size: 15px;
  color: var(--text-primary);
}

.contact-item-value a {
  transition: color var(--t-fast);
}

.contact-item-value a:hover { color: var(--accent); }

.contact-form { display: flex; flex-direction: column; gap: 14px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.form-group { display: flex; flex-direction: column; gap: 7px; }

.form-label {
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
}

.form-input,
.form-textarea {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 12px 16px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 14px;
  outline: none;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
  width: 100%;
}

.form-input:focus,
.form-textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}

.form-input::placeholder,
.form-textarea::placeholder { color: var(--text-muted); }

.form-textarea { resize: vertical; min-height: 140px; }

.form-submit {
  align-self: flex-start;
  padding: 14px 36px;
  background: var(--accent);
  color: var(--accent-text);
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.05em;
  border-radius: var(--r-sm);
  transition: opacity var(--t-fast), transform var(--t-fast);
}

.form-submit:hover  { opacity: 0.88; transform: translateY(-1px); }
.form-submit:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.form-feedback {
  font-size: 0.875rem;
  border-radius: 6px;
  padding: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}
.form-feedback--ok,
.form-feedback--err {
  padding: 12px 16px;
  max-height: 120px;
}
.form-feedback--ok  { background: rgba(52, 211, 153, 0.12); color: #34d399; border: 1px solid rgba(52, 211, 153, 0.3); }
.form-feedback--err { background: rgba(248, 113, 113, 0.12); color: #f87171; border: 1px solid rgba(248, 113, 113, 0.3); }

/* ═══════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════ */
footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding-block: 52px 32px;
}

.footer-inner { display: flex; flex-direction: column; gap: 48px; }

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 48px;
}

.footer-brand { display: flex; flex-direction: column; gap: 18px; max-width: 300px; }

.footer-logo img { height: 26px; width: auto; }

.footer-tagline {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.65;
}

.footer-links { display: flex; gap: 64px; }

.footer-col { display: flex; flex-direction: column; gap: 14px; }

.footer-col-title {
  font-family: var(--font-heading);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.footer-col a {
  font-size: 14px;
  color: var(--text-secondary);
  transition: color var(--t-fast);
}

.footer-col a:hover { color: var(--text-primary); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  gap: 24px;
  flex-wrap: wrap;
}

.footer-copy { font-size: 12px; color: var(--text-muted); }

.footer-social { display: flex; gap: 12px; }

.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: var(--r-md);
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: background-color var(--t-fast), border-color var(--t-fast), color var(--t-fast);
}

.footer-social a svg { width: 16px; height: 16px; }

.footer-social a:hover {
  background: var(--accent-dim);
  border-color: var(--accent-mid);
  color: var(--accent);
}

/* ═══════════════════════════════════════════
   PORTFOLIO – VOIR TOUT
═══════════════════════════════════════════ */
.portfolio-voir-tout {
  text-align: center;
  margin-top: 48px;
}

.portfolio-error {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 0;
  color: var(--text-muted);
  font-family: var(--font-heading);
  font-size: 14px;
}

/* ═══════════════════════════════════════════
   SCROLL ANIMATIONS
═══════════════════════════════════════════ */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity var(--t-slow), transform var(--t-slow);
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-up:nth-child(2) { transition-delay: 90ms; }
.fade-up:nth-child(3) { transition-delay: 180ms; }
.fade-up:nth-child(4) { transition-delay: 270ms; }

/* ═══════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════ */
@media (max-width: 1100px) {
  .services-grid    { grid-template-columns: 1fr; }
  .portfolio-grid   { grid-template-columns: repeat(2, 1fr); }
  .clients-grid     { grid-template-columns: repeat(2, 1fr); }
  .about-inner      { grid-template-columns: 1fr; }
  .about-img-accent { display: none; }
  .about-visual     { padding-bottom: 0; }
  .contact-inner    { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .portfolio-grid  { grid-template-columns: 1fr; }
  .clients-grid    { grid-template-columns: repeat(2, 1fr); }
  .portfolio-header { flex-direction: column; align-items: flex-start; }
  .form-row        { grid-template-columns: 1fr; }
  .footer-top      { flex-direction: column; }
  .footer-links    { flex-direction: column; gap: 28px; }

  .nav-links {
    display: none;
    position: fixed;
    inset: 0;
    top: var(--nav-h);
    background: var(--bg-primary);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 36px;
    z-index: 99;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links.open a {
    font-size: 22px;
    font-weight: 600;
  }

  .nav-toggle { display: flex; }

  .hero-title { font-size: clamp(36px, 12vw, 64px); }
}

@media (max-width: 480px) {
  .clients-grid { grid-template-columns: 1fr 1fr; }
  .client-logo  { padding: 28px 20px; }
}
