/* =========================================================
   DOWBZ PORTFOLIO - style.css
   Design system : Syne (display) + DM Sans (body)
   Palette : Deep Navy · Electric Blue · Warm Cream · Slate
   ========================================================= */

/* ── Custom Properties ──────────────────────────────────── */
:root {
  /* Colors */
  --clr-bg:          #F8F6F1;
  --clr-bg-alt:      #EFECE4;
  --clr-surface:     #FFFFFF;
  --clr-surface-2:   #F2EFE8;
  --clr-navy:        #0B1F3A;
  --clr-navy-mid:    #1A3558;
  --clr-blue-text:   #004e91;
  --clr-blue:        #1C6EF2;
  --clr-blue-light:  #E8F0FD;
  --clr-accent:      #E8480C;
  --clr-text:        #0B1F3A;
  --clr-text-2:      #4A5568;
  --clr-text-3:      #718096;
  --clr-border:      #DDD9CF;
  --clr-border-2:    #C8C4BA;
  --clr-border-green:#9ac597;
  --clr-bkg-grey:    #f3f3f3;
  --clr-green:       #1F8028;
  --clr-bkg-green:   #f1fdec;
  --clr-error:       #dd1d1d;

  /* Typography */
  /*--font-display:    'Syne', sans-serif;*/
  --font-display:    'Fugaz One', sans-serif;
  --font-body:       'DM Sans', sans-serif;

  /* Spacing */
  --space-xs:  0.25rem;
  --space-sm:  0.5rem;
  --space-md:  1rem;
  --space-lg:  1.5rem;
  --space-xl:  2.5rem;
  --space-2xl: 4rem;
  --space-3xl: 6rem;

  /* Radius */
  --radius-sm:  4px;
  --radius-md:  8px;
  --radius-lg:  16px;
  --radius-xl:  24px;
  --radius-pill: 999px;

  /* Shadows */
  --shadow-sm:  0 1px 3px rgba(11,31,58,0.06), 0 1px 2px rgba(11,31,58,0.04);
  --shadow-md:  0 4px 16px rgba(11,31,58,0.08), 0 2px 6px rgba(11,31,58,0.06);
  --shadow-lg:  0 12px 40px rgba(11,31,58,0.12), 0 4px 12px rgba(11,31,58,0.08);

  /* Transitions */
  --ease-out:   cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.45, 0, 0.55, 1);
  --dur-fast:   150ms;
  --dur-mid:    300ms;
  --dur-slow:   500ms;

  /* Layout */
  --max-w: 1200px;
  --header-h: 68px;
}

/* ── Reset & Base ──────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background-color: var(--clr-bg);
  color: var(--clr-text);
  line-height: 1.60;
  overflow-x: hidden;
}

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

/* Focus styles — WCAG 2.2 */
:focus-visible {
  outline: 3px solid var(--clr-blue);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--clr-blue);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  z-index: 9999;
  transition: top var(--dur-fast);
  text-decoration: none;
}
.skip-link:focus { top: 0; }

img, video { display: block; max-width: 100%; height: auto; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-display); line-height: 1.15; color: var(--clr-navy); font-weight: 500; }

.panel-gallery ul li::before
Spécificité : (0,1,2)
 {
    content: "—";
    position: absolute;
    left: 0px;
    color: var(--clr-blue);
    font-size: 0.8em;
}

/* ── Container ─────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

/* ── HEADER ─────────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  /*background: rgba(248, 246, 241, 0.88);*/
  background: var(--clr-navy);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--clr-border);
  z-index: 100;
  transition: box-shadow var(--dur-mid);
}
.site-header.scrolled { box-shadow: var(--shadow-md); }

.header-inner {
  height: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--space-xl);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  text-decoration: none;
  flex-shrink: 0;
}
.logo-mark {
  width: 36px; height: 36px;
  background: var(--clr-navy);
  color: #fff;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.875rem;
  letter-spacing: 0.02em;
  transition: background var(--dur-fast);
  flex-shrink: 0;
}
.logo:hover .logo-mark { background: var(--clr-blue); }
.logo-text {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.2rem;
  /*color: var(--clr-navy);*/
  color: var(--clr-surface);
}

.nav-list {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}
.nav-link {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  /*color: var(--clr-text-2);*/
  color: var(--clr-surface);
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-pill);
  transition: color var(--dur-fast), background var(--dur-fast);
  position: relative;
  white-space: nowrap;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 4px; left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 16px; height: 2px;
  background: var(--clr-blue);
  border-radius: 2px;
  transition: transform var(--dur-mid) var(--ease-out);
}
.nav-link:hover, .nav-link.active { /*color: var(--clr-navy);*/ color: var(--clr-surface);}
.nav-link:hover::after, .nav-link.active::after { transform: translateX(-50%) scaleX(1); }

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 32px; height: 32px;
  align-items: center;
  justify-content: center;
  padding: 4px;
  border-radius: var(--radius-sm);
  transition: background var(--dur-fast);
}
.burger:hover { /*background: var(--clr-bg-alt);*/ background: var(--clr-blue); }
.burger-line {
  display: block;
  width: 20px; height: 2px;
  /*background: var(--clr-navy);*/
  background:  var(--clr-surface); 
  border-radius: 2px;
  transition: transform var(--dur-mid) var(--ease-out), opacity var(--dur-fast);
}
.burger[aria-expanded="true"] .burger-line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] .burger-line:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] .burger-line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  position: fixed;
  top: var(--header-h); left: 0; right: 0;
  background: var(--clr-navy);
  border-bottom: 1px solid var(--clr-border);
  padding: var(--space-md) var(--space-xl);
  z-index: 99;
  animation: slideDown var(--dur-mid) var(--ease-out);
}
.mobile-nav ul { display: flex; flex-direction: column; gap: var(--space-xs); }
.mobile-nav .nav-link {
  display: block;
  padding: 0.75rem 1rem;
  font-size: 1.05rem;
  border-radius: var(--radius-md);
}
.mobile-nav .nav-link:hover { /*background: var(--clr-bg-alt);*/ background: var(--clr-blue); }

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── SECTIONS ────────────────────────────────────────────── */
.section {
  padding: var(--space-3xl) 0;
}
.section:first-of-type { padding-top: calc(var(--header-h) + var(--space-3xl)); }

.section-header {
  text-align: center;
  margin-bottom: var(--space-xl);
}
#contact {
  padding: var(--space-xl) 0;
}

.section-eyebrow {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--clr-blue);
  margin-bottom: var(--space-sm);
}
.section-title {
  font-size: clamp(1.75rem, 3vw + 1rem, 2.75rem);
  font-weight: 400;
  color: var(--clr-navy);
  line-height: 1.1;
  margin-bottom: var(--space-md);
}
.section-intro {
  font-size: 1.05rem;
  color: var(--clr-text-2);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.7;
}

.subsection {
  margin-bottom: var(--space-2xl);
}
.subsection-title {
  font-size: 1.8rem;
  font-weight: 400;
  color: var(--clr-navy);
  margin-bottom: var(--space-lg);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.subsection .client-item:hover {
    box-shadow: none;
    border: 1px solid var(--clr-border);
}
.subsection .bkg-grey{
    border-radius: 4px;
    padding: 0.8em;
    background: var(--clr-bkg-grey);
    display: inline-block!important;  
}

.subsection .panel-img img {
    box-shadow: none;
    border: 1px solid var(--clr-border);

    margin: 0 auto;
}
.subsection .panel-img img:hover {
    box-shadow: var(--shadow-md);
    border: 1px solid var(--clr-blue);
}
.valid {
    color: var(--clr-green);
    font-size: 1em;
}


.sub-tag {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--clr-blue);
  background: var(--clr-blue-light);
  padding: 0.3rem 0.6rem 0.2rem 0.6rem;
  border-radius: var(--radius-pill);
  letter-spacing: 0.04em;
}

/* ── BUTTONS ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  padding: 0.65rem 1.5rem;
  border-radius: var(--radius-pill);
  transition: transform var(--dur-fast) var(--ease-out),
              box-shadow var(--dur-fast),
              background var(--dur-fast),
              color var(--dur-fast);
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
}
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--clr-navy);
  color: #fff;
}
.btn-primary:hover {
  background: var(--clr-blue);
  box-shadow: 0 6px 20px rgba(28,110,242,0.3);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--clr-navy);
  border-color: var(--clr-border-2);
}
.btn-ghost:hover {
  background: var(--clr-surface);
  border-color: var(--clr-navy);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

/* ── HERO ────────────────────────────────────────────────── */
.hero-section {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  background: var(--clr-bg);
  overflow: hidden;
}
.hero-inner {
  position: relative;
  z-index: 2;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-pill);
  padding: 0.35rem 1rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--clr-text-2);
  margin-bottom: var(--space-xl);
  box-shadow: var(--shadow-sm);
}
.badge-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #22C55E;
  animation: pulse 2s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.3); }
}

.hero-title {
  display: flex;
  flex-direction: column;
  gap: 0.1em;
  font-size: clamp(3rem, 8vw + 1rem, 7rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: 0.02em;
  color: var(--clr-navy);
  margin-bottom: var(--space-xl);
}
.hero-title .accent {
  color: var(--clr-blue);
  position: relative;
  display: inline-block;
}
.hero-title-line {
  display: block;
  animation: fadeUp 0.7s var(--ease-out) both;
}
.hero-title-line:nth-child(1) { animation-delay: 0.1s; }
.hero-title-line:nth-child(2) { animation-delay: 0.2s; }
.hero-title-line:nth-child(3) { animation-delay: 0.3s; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-desc {
  font-size: clamp(1rem, 1.5vw + 0.5rem, 1.2rem);
  color: var(--clr-text-2);
  max-width: 560px;
  margin: 0 auto var(--space-xl);
  line-height: 1.7;
  animation: fadeUp 0.7s var(--ease-out) 0.4s both;
}
.hero-actions {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: var(--space-2xl);
  animation: fadeUp 0.7s var(--ease-out) 0.5s both;
}
.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xl);
  flex-wrap: wrap;
  animation: fadeUp 0.7s var(--ease-out) 0.6s both;
}
.stat { text-align: center; }
.stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--clr-navy);
  line-height: 1;
}
.stat-label {
  display: block;
  font-size: 0.75rem;
  color: var(--clr-text-3);
  margin-top: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.stat-sep {
  width: 1px;
  height: 40px;
  background: var(--clr-border);
}

/* Deco */
.hero-deco {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}
.deco-circle {
  position: absolute;
  border-radius: 50%;
}
.deco-c1 {
  width: 600px; height: 600px;
  top: -200px; right: -200px;
  background: radial-gradient(circle, rgba(28,110,242,0.06) 0%, transparent 70%);
}
.deco-c2 {
  width: 400px; height: 400px;
  bottom: -100px; left: -100px;
  background: radial-gradient(circle, rgba(11,31,58,0.04) 0%, transparent 70%);
}
.deco-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--clr-border) 1px, transparent 1px),
    linear-gradient(90deg, var(--clr-border) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: 0.3;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 0%, transparent 100%);
}

/* ── ATOUTS ──────────────────────────────────────────────── */
.atouts-section {
  background: var(--clr-surface);
  border-top: 1px solid var(--clr-border);
  border-bottom: 1px solid var(--clr-border);
}
.atouts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}
.atout-card {
  background: var(--clr-bg);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  position: relative;
  transition: transform var(--dur-mid) var(--ease-out),
              box-shadow var(--dur-mid),
              border-color var(--dur-mid);
}
.atout-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--clr-border-2);
}
.atout-card.featured {
  background: var(--clr-navy);
  border-color: var(--clr-navy);
  color: rgba(255,255,255,0.9);
}
.atout-card.featured h3,
.atout-card.featured .atout-desc { color: rgba(255,255,255,0.9); }
.atout-card.featured .atout-list li { color: rgba(255,255,255,0.7); }
.atout-card.featured .atout-icon { color: #7EB5FA; margin: 0 auto;}
.atout-card.featured .atout-icon img {margin: 0 auto;}

.card-badge {
  position: absolute;
  top: var(--space-lg); right: var(--space-lg);
  background: var(--clr-blue);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-pill);
}

.atout-icon {
  color: var(--clr-blue);
  margin-bottom: var(--space-lg);
}
.atout-title {
  font-size: 1.2rem;
  font-weight: 400;
  margin-bottom: var(--space-sm);
  color: var(--clr-navy);
}
.atout-card.featured .atout-title { color: #fff; }
.atout-desc {
  font-size: 0.9rem;
  color: var(--clr-text-2);
  line-height: 1.65;
  margin-bottom: var(--space-md);
}
.atout-list {
  border-top: 1px solid var(--clr-border);
  padding-top: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.atout-card.featured .atout-list { border-color: rgba(255,255,255,0.15); }
.atout-list li {
  font-size: 0.85rem;
  color: var(--clr-text-3);
  padding-left: 1.1em;
  position: relative;
}
.atout-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--clr-blue);
  font-size: 0.8em;
  line-height: 1.4rem;
}
.atout-card.featured .atout-list li::before { color: #7EB5FA; }

/* ── PRODUCT DESIGN ──────────────────────────────────────── */
.pd-section { background: var(--clr-bg); }

/* Gallery grids */
.gallery-grid {
  display: grid;
  gap: var(--space-md);
}
.gallery-maquettes {
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}
.gallery-illus, .gallery-dessins {
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
}

.gallery-item {
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: zoom-in;
}
.gallery-item-multi-img {
    display: inline-block!important;
    margin: 0.2em 0.4em;
    text-decoration: none;
    color: inherit;
    cursor: zoom-in;
}
.gallery-img-wrap {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--clr-border);
  aspect-ratio: 4/3;
  background: #ffffff;
  /*background: var(--clr-bg-alt);*/
}
.gallery-illus .gallery-img-wrap,
.gallery-dessins .gallery-img-wrap {
  aspect-ratio: 1;
}
.gallery-img-wrap img {
  width: auto;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease-out);
  margin: 0 auto;
}
.gallery-item:hover .gallery-img-wrap img { transform: scale(1.05); }

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(11,31,58,0);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--dur-mid);
}
.gallery-overlay span {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity var(--dur-mid), transform var(--dur-mid) var(--ease-out);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.gallery-item:hover .gallery-overlay { background: rgba(11,31,58,0.5); }
.gallery-item:hover .gallery-overlay span { opacity: 1; transform: translateY(0); }

.gallery-caption {
  font-size: 0.8rem;
  color: var(--clr-text-3);
  margin-top: 0.4rem;
  text-align: center;
}

/* Use cases */
.usecases-list { display: flex; flex-direction: column; gap: var(--space-md); }

.usecase-card {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: box-shadow var(--dur-mid), border-color var(--dur-mid);
}
.usecase-card:hover { box-shadow: var(--shadow-md); border-color: var(--clr-blue); }

.usecase-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  padding: var(--space-lg) var(--space-xl);
  text-align: left;
  cursor: pointer;
  transition: background var(--dur-fast);
}
.usecase-trigger:hover { /*background: var(--clr-bg);*/ background: var( --clr-surface);}

.uc-logo-wrap {
  flex-shrink: 0;
  width: 80px;
  height: 56px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--clr-border);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--clr-bg-alt);
}
.uc-logo-wrap img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.uc-info { flex: 1; min-width: 0; }
.uc-name {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--clr-navy);
  margin-bottom: 0.2rem;
}
.uc-subtitle {
  font-size: 0.85rem;
  color: var(--clr-text-3);
}
.uc-arrow {
  font-size: 1.6rem;
  color: var(--clr-blue);
  transition: transform var(--dur-mid) var(--ease-out), color var(--dur-fast);
  flex-shrink: 0;
}
.usecase-trigger[aria-expanded="true"] .uc-arrow {
  transform: rotate(90deg);
  color: var(--clr-blue);
}

.usecase-panel {
  border-top: 1px solid var(--clr-border);
  animation: panelOpen var(--dur-mid) var(--ease-out);
}
@keyframes panelOpen {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.panel-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  padding: var(--space-xl);
}
.panel-col h5 {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--clr-blue-text);
  margin: var(--space-lg) 0 var(--space-sm);
}
.panel-col h5:first-child { margin-top: 0; }
.panel-col p {
  font-size: 0.8rem;
  color: var(--clr-text);
  line-height: 1.7;
  margin-bottom: var(--space-sm);
}
.panel-col ul {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.panel-col li {
  font-size: 0.8rem;
  color: var(--clr-text);
  padding-left: 1em;
  position: relative;
}
.panel-col li::before {
  content: '–';
  position: absolute; left: 0;
  color: var(--clr-text-3);
}
.results-list { 
  margin-bottom : 0.8rem; 
  border: solid 1px var(--clr-border-green);
  padding: 0.2rem; 
  background-color: var(--clr-bkg-green); 
}
.results-list li::before { content: ''; display: none; }
.results-list li { padding-left: 0; color: var(--clr-text); }

.panel-gallery {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.panel-img .gallery-img-wrap { aspect-ratio: auto; }
.panel-img img {
  /*width: 100%;*/
  border-radius: var(--radius-md);
  border: 1px solid var(--clr-border);
  object-fit: cover;
}

/* Clients grid */
.clients-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: var(--space-md);
}
.client-item {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg) var(--space-md);
  text-align: center;
  transition: transform var(--dur-mid) var(--ease-out), box-shadow var(--dur-mid), border-color var(--dur-mid);
}
.client-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--clr-border-2);
}
.client-item img {
  width: 100%;
  max-height: 48px;
  object-fit: contain;
  margin: 0 auto var(--space-sm);
  filter: grayscale(30%);
  transition: filter var(--dur-mid);
}
.client-item:hover img { filter: none; }
.client-item p {
  font-size: 0.8rem;
  color: var(--clr-text-3);
  margin: 0;
  line-height: 1.3;
}

/* ── GRAPHISME ───────────────────────────────────────────── */
.graphisme-section {
  background: var(--clr-surface);
  border-top: 1px solid var(--clr-border);
}

.icons-grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
}
.icon-item {
  background: var(--clr-bg);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-md);
  padding: var(--space-sm);
  width: 80px; height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--dur-fast), box-shadow var(--dur-fast), border-color var(--dur-fast);
}
.icon-item:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: var(--shadow-md);
  border-color: var(--clr-blue);
}
.icon-item img { width: 56px; height: 56px; object-fit: contain; border-radius: 4px; }

/* ── CONTACT ─────────────────────────────────────────────── */
.contact-section {
  background: var(--clr-navy);
  color: rgba(255,255,255,0.9);
}
.contact-section .section-eyebrow { color: #7EB5FA; }
.contact-section .section-title { color: #fff; }
.contact-section .section-intro { color: rgba(255,255,255,0.65); }

.contact-inner {
  display: flex;
  justify-content: center;
  padding-top: var(--space-md);
}
.contact-info { text-align: center; }
.contact-tagline {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: var(--space-xl);
  letter-spacing: 0.04em;
}

/* ── FOOTER ──────────────────────────────────────────────── */
.site-footer {
  background: var(--clr-navy);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: var(--space-lg) 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-md);
}
.footer-copy {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
  margin: 0;
}
.footer-nav {
  display: flex;
  gap: var(--space-lg);
}
.footer-nav a {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
  transition: color var(--dur-fast);
}
.footer-nav a:hover { color: rgba(255,255,255,0.8); }

/* ── PAGE 404 ────────────────────────────────────────────── */

.page {
  font-size: 4em;
  text-align: center;
}
.frame-gif, .message {
  margin: 5em auto 0 auto;
  text-align: center;
}
.frame-gif img {
  max-width: 160px;
  border-radius: 100px;
  margin: 0 auto;
  display: inline-block;
  border: 2px solid var(--clr-text);
}
.frame-gif span {
  font-size: 14em;
}
.message {
  margin: 0 auto;
  padding: 0;
  line-height: 1;
}
.def-404{
  background: var(--clr-surface);
  border-top: 1px solid var(--clr-border);
  padding: 2em 0;
}
.headline{
  max-width: var(--max-w);
  margin: 0 auto;
}
.intro{
  text-align: center;
  margin: 0 auto;
}


/* ── LIGHTBOX ────────────────────────────────────────────── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox[hidden] { display: none; }

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8,16,30,0.92);
  backdrop-filter: blur(6px);
  cursor: pointer;
}
.lightbox-content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: var(--space-md);
  max-width: calc(100vw - 2rem);
  max-height: calc(100svh - 2rem);
}
.lightbox-img-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
  max-width: 90vw;
}
.lightbox-img {
  max-width: 85vw;
  max-height: 80svh;
  object-fit: contain;
  border-radius: var(--radius-lg);
  box-shadow: 0 32px 80px rgba(0,0,0,0.5);
  transition: opacity var(--dur-fast);
}
.lightbox-title {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
  text-align: center;
  margin: 0;
}
.lightbox-close, .lightbox-prev, .lightbox-next {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--dur-fast), transform var(--dur-fast);
  flex-shrink: 0;
  cursor: pointer;
}
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover {
  background: rgba(255,255,255,0.2);
  transform: scale(1.05);
}
.lightbox-close {
  position: absolute;
  top: -3rem; right: 0;
}
.lightbox-counter {
  position: absolute;
  bottom: -2.5rem; left: 50%;
  transform: translateX(-50%);
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
  white-space: nowrap;
}

/* Lightbox open animation */
.lightbox:not([hidden]) .lightbox-img {
  animation: lbIn var(--dur-mid) var(--ease-out);
}
@keyframes lbIn {
  from { opacity: 0; transform: scale(0.95); }
  to   { opacity: 1; transform: scale(1); }
}

/* ── SCROLL ANIMATIONS ───────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 1024px) {
  .atouts-grid { grid-template-columns: 1fr 1fr; }
  .panel-inner { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  :root { --space-3xl: 4rem; --space-2xl: 2.5rem; }
  .container { padding: 0 var(--space-lg); }
  .header-inner { padding: 0 var(--space-lg); }

  .main-nav { display: none; }
  .burger { display: flex; }

  .atouts-grid { grid-template-columns: 1fr; }
  .hero-title { font-size: clamp(2.5rem, 12vw, 4rem); }
  .hero-stats { gap: var(--space-lg); }
  .stat-sep { display: none; }
  .def-404 { padding: 2em;}

  .gallery-maquettes { grid-template-columns: repeat(2, 1fr); }
  .clients-grid { grid-template-columns: repeat(3, 1fr); }

  .usecase-trigger { gap: var(--space-md); padding: var(--space-md); }
  .uc-logo-wrap { width: 60px; height: 44px; }

  .footer-inner { flex-direction: column; text-align: center; }
  .footer-nav { justify-content: center; }

  .lightbox-prev, .lightbox-next { display: none; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; align-items: center; }
  .gallery-maquettes { grid-template-columns: 1fr; }
  .gallery-illus, .gallery-dessins { grid-template-columns: repeat(2, 1fr); }
  .clients-grid { grid-template-columns: repeat(2, 1fr); }
  .icons-grid { gap: var(--space-sm); }
  .icon-item { width: 68px; height: 68px; }
  .def-404 { padding: 2em;}
}

/* ── Print ───────────────────────────────────────────────── */
@media print {
  .site-header, .lightbox, .hero-deco { display: none; }
  .section { padding: 1.5rem 0; }
}
