/* Poppins self-hosted — latin subset only */
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/poppins-400.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/poppins-500.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/poppins-600.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/poppins-700.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('/assets/fonts/poppins-800.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ═══════════════════════════════════════════
   Xavier Kain — V6 Multi-Pages Dark Theme
   ═══════════════════════════════════════════ */

/* ── Variables ── */
:root {
  --bg: #0B0C10;
  --bg-light: #1F2833;
  --bg-card: #151922;
  --accent: #66FCF1;
  --accent-dark: #45A29E;
  --text: #C5C6C7;
  --text-light: #9A9C9F;
  --white: #FFFFFF;
  --border: rgba(102, 252, 241, 0.12);
  --border-subtle: rgba(255, 255, 255, 0.06);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 20px;
  --transition: 0.3s ease;
  --max-width: 1200px;
  --header-height: 72px;
}

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

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

body {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  font-family: inherit;
  border: none;
  background: none;
}

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

/* ── Utility ── */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.accent {
  color: var(--accent);
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all var(--transition);
  white-space: nowrap;
  text-align: center;
}

.btn-primary {
  background: var(--accent);
  color: var(--bg);
}

.btn-primary:hover {
  background: var(--white);
  color: #0B0C10;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(102, 252, 241, 0.25);
}

.btn-outline {
  border: 2px solid var(--accent);
  color: var(--accent);
  background: transparent;
}

.btn-outline:hover {
  background: var(--accent);
  color: var(--bg);
  transform: translateY(-2px);
}

/* ── Scroll Reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* ═══════════════════════════════════════════
   HEADER
   ═══════════════════════════════════════════ */
.header {
  position: fixed;
  z-index: 10000;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: transparent;
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  border-bottom: 1px solid transparent;
  transition: all 0.4s ease;
}

.header.scrolled {
  background: rgba(11, 12, 16, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom-color: var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
}

.logo {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.02em;
}

.logo span {
  color: var(--accent);
}

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

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  transition: color var(--transition);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-links a.external {
  color: var(--accent);
  font-weight: 600;
}

.nav-links a.external:hover {
  color: var(--white);
}

.nav-links a.external::after {
  display: none;
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  width: 28px;
  height: 20px;
  position: relative;
  padding: 0;
  border: none;
  background: none;
  outline: none;
  -webkit-tap-highlight-color: transparent;
  -webkit-appearance: none;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--white);
  border-radius: 0;
  transition: all 0.3s ease;
}

.menu-toggle span:nth-child(1) { top: 0; }
.menu-toggle span:nth-child(2) { top: 9px; }
.menu-toggle span:nth-child(3) { top: 18px; }

.menu-toggle.active span:nth-child(1) {
  top: 9px;
  transform: rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  top: 9px;
  transform: rotate(-45deg);
}

/* Mobile nav */
.mobile-nav {
  display: none;
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(11, 12, 16, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  z-index: 9998;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: auto;
  touch-action: none;
}

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

.mobile-nav a {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text);
  transition: color var(--transition);
}

.mobile-nav a:hover,
.mobile-nav a.active {
  color: var(--accent);
}

/* ═══════════════════════════════════════════
   HERO (index.html)
   ═══════════════════════════════════════════ */
/* ═══════════════════════════════════════════
   ABOVE FOLD WRAPPER — hero + slider sur une seule page
   ═══════════════════════════════════════════ */
.above-fold {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.above-fold .hero {
  flex: 1;
  min-height: 0;  /* override le min-height global du hero */
  display: flex;
  align-items: center;
  padding-top: var(--header-height);
}

.above-fold .clients-slider-section {
  padding: 48px 0 56px;  /* air généreux en haut et en bas */
}

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--header-height);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 900px;
  height: 900px;
  background: radial-gradient(circle, rgba(102, 252, 241, 0.07) 0%, transparent 55%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -15%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(69, 162, 158, 0.05) 0%, transparent 60%);
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding-top: 60px;
  padding-bottom: 60px;
  /* Note: pas de padding latéral ici — hérité de .container (0 24px) */
}

.hero-text {
  opacity: 0;
  transform: translateX(-40px);
  animation: heroSlideIn 1s ease 0.2s forwards;
}

@keyframes heroSlideIn {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.hero-text h1 {
  font-size: clamp(2.5rem, 5vw, 3.8rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 8px;
}

.hero-text .subtitle {
  font-size: clamp(1.1rem, 2.2vw, 1.5rem);
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 24px;
}

.hero-text .description {
  font-size: 1.05rem;
  color: var(--text);
  line-height: 1.8;
  margin-bottom: 36px;
  max-width: 520px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  opacity: 0;
  transform: translateX(40px);
  animation: heroSlideIn 1s ease 0.5s forwards;
}

.hero-photo {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--accent);
  box-shadow: 0 0 60px rgba(102, 252, 241, 0.15), 0 0 120px rgba(102, 252, 241, 0.05);
  transition: all 0.5s ease;
}

.hero-photo:hover {
  transform: scale(1.03);
  box-shadow: 0 0 80px rgba(102, 252, 241, 0.25), 0 0 160px rgba(102, 252, 241, 0.08);
}

.malt-notes {
  width: 280px;
  border-radius: var(--radius);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
  transition: transform var(--transition);
}

.malt-notes:hover {
  transform: scale(1.02);
}

/* ═══════════════════════════════════════════
   PAGE HERO (internal pages)
   ═══════════════════════════════════════════ */
.page-hero {
  padding: calc(var(--header-height) + 60px) 0 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -15%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(102, 252, 241, 0.05) 0%, transparent 60%);
  pointer-events: none;
}

.page-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 16px;
}

.page-hero .page-subtitle {
  font-size: 1.1rem;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ── Breadcrumb ── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  margin-bottom: 24px;
  font-size: 0.85rem;
  color: var(--text-light);
  flex-wrap: wrap;
}

.breadcrumb a {
  color: var(--accent);
  transition: color var(--transition);
}

.breadcrumb a:hover {
  color: var(--white);
}

.breadcrumb .sep {
  color: var(--text-light);
}

/* ═══════════════════════════════════════════
   SERVICES (index overview)
   ═══════════════════════════════════════════ */
.services {
  background: var(--bg-light);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

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

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 36px 28px;
  text-align: center;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.service-card-link {
  display: block;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 36px 28px;
  text-align: center;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.service-card::before,
.service-card-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-dark));
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.service-card:hover,
.service-card-link:hover {
  border-color: var(--border);
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3), 0 0 30px rgba(102, 252, 241, 0.06);
}

.service-card:hover::before,
.service-card-link:hover::before {
  transform: scaleX(1);
}

.service-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
  color: var(--accent);
}

.service-icon svg {
  width: 100%;
  height: 100%;
}

.service-card h3,
.service-card-link h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
}

.service-card p,
.service-card-link p {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.6;
}

/* ═══════════════════════════════════════════
   SERVICES DETAIL PAGE
   ═══════════════════════════════════════════ */
.service-detail {
  padding: 60px 0;
  border-bottom: 1px solid var(--border-subtle);
}

.service-detail:last-child {
  border-bottom: none;
}

.service-detail-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.service-detail:nth-child(even) .service-detail-inner {
  direction: rtl;
}

.service-detail:nth-child(even) .service-detail-inner > * {
  direction: ltr;
}

.service-detail-icon {
  width: 80px;
  height: 80px;
  color: var(--accent);
  margin-bottom: 24px;
}

.service-detail-icon svg {
  width: 100%;
  height: 100%;
}

.service-detail-content h2 {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
}

.service-detail-content p {
  font-size: 1rem;
  color: var(--text);
  line-height: 1.8;
  margin-bottom: 24px;
}

.service-detail-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.service-detail-features li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.6;
}

.service-detail-features li::before {
  content: '✓';
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}

.service-detail-visual {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
}

.service-detail-visual .service-icon {
  width: 120px;
  height: 120px;
  margin: 0;
}

/* ═══════════════════════════════════════════
   STATS / EN CHIFFRES
   ═══════════════════════════════════════════ */
.stats {
  padding: 56px 0 80px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}

.stat-item {
  padding: 36px 16px;
  border-radius: var(--radius);
  background: rgba(102, 252, 241, 0.03);
  border: 1px solid var(--border-subtle);
  transition: all var(--transition);
}

.stat-item:hover {
  border-color: var(--border);
  background: rgba(102, 252, 241, 0.06);
  transform: translateY(-4px);
}

.stat-number {
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-light);
  font-weight: 500;
}

/* ═══════════════════════════════════════════
   SECTION TITLES
   ═══════════════════════════════════════════ */
.section {
  padding: 100px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 16px;
}

.section-header p {
  font-size: 1.05rem;
  color: var(--text-light);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.7;
}

.section-header p a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--transition);
}

.section-header p a:hover {
  color: var(--white);
}

/* ═══════════════════════════════════════════
   PORTFOLIO GRID (index.html - lightbox)
   ═══════════════════════════════════════════ */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.portfolio-item {
  display: block;
  position: relative;
  height: 400px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: all var(--transition);
}

.portfolio-item:hover {
  border-color: var(--accent);
  box-shadow: 0 12px 40px rgba(102, 252, 241, 0.12);
}

.portfolio-item img {
  width: 100%;
  height: auto;
  min-height: 100%;
  object-fit: cover;
  object-position: top;
  transition: object-position 2.5s ease;
}

.portfolio-item:hover img {
  object-position: bottom;
}

.portfolio-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px;
  background: linear-gradient(transparent, rgba(11, 12, 16, 0.92));
  opacity: 0;
  transition: opacity var(--transition);
  display: flex;
  align-items: flex-end;
}

.portfolio-item:hover .portfolio-overlay {
  opacity: 1;
}

.portfolio-overlay span {
  color: var(--white);
  font-weight: 600;
  font-size: 1rem;
}

.portfolio-item-mobile {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
}

.portfolio-item-mobile .phone-mockup {
  width: 160px;
  border-radius: 28px;
  padding: 10px 8px;
}

.portfolio-item-mobile .phone-mockup::before {
  width: 60px;
  height: 16px;
  top: 5px;
  border-radius: 0 0 10px 10px;
}

.portfolio-item-mobile .phone-mockup-screen {
  border-radius: 18px;
}

.portfolio-item-mobile:hover img {
  object-position: top;
}

/* ═══════════════════════════════════════════
   PORTFOLIO PAGE (portfolio.html - cards)
   ═══════════════════════════════════════════ */
.portfolio-filters {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.filter-btn {
  padding: 10px 24px;
  border-radius: 50px;
  border: 1px solid var(--border-subtle);
  background: transparent;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  font-family: inherit;
}

.filter-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.filter-btn.active {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
  font-weight: 600;
}

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

.portfolio-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.4s ease;
  display: block;
}

.portfolio-card:hover {
  border-color: var(--accent);
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3), 0 0 30px rgba(102, 252, 241, 0.08);
}

.portfolio-card-img {
  height: 220px;
  overflow: hidden;
}

.portfolio-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform 0.5s ease;
}

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

.portfolio-card-info {
  padding: 20px;
}

.portfolio-card-category {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.portfolio-card-info h3 {
  color: var(--white);
  font-size: 1.05rem;
  font-weight: 600;
  margin: 8px 0 12px;
}

.portfolio-card-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.portfolio-card-tags span {
  font-size: 0.75rem;
  padding: 4px 10px;
  background: rgba(102, 252, 241, 0.08);
  border-radius: 50px;
  color: var(--text-light);
}

.portfolio-card.hidden {
  display: none;
}

/* ═══════════════════════════════════════════
   PROJECT DETAIL PAGE
   ═══════════════════════════════════════════ */
.project-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 48px;
  align-items: start;
}

.project-layout aside {
  position: -webkit-sticky;
  position: sticky;
  top: calc(var(--header-height) + 24px);
  align-self: start;
}

.project-image {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  margin-bottom: 40px;
}

.project-description h2 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--white);
  margin: 32px 0 16px;
}

.project-description h2:first-child {
  margin-top: 0;
}

.project-description p {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--text);
  margin-bottom: 16px;
}

.project-description ul {
  padding-left: 24px;
  list-style: disc;
  margin-bottom: 16px;
}

.project-description li {
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 8px;
}

.project-info-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 32px;
}

.project-info-card h3 {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
  margin-top: 24px;
}

.project-info-card h3:first-child {
  margin-top: 0;
}

.project-info-card p {
  color: var(--text);
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.project-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.project-tags span {
  font-size: 0.8rem;
  padding: 6px 14px;
  background: rgba(102, 252, 241, 0.08);
  border: 1px solid var(--border);
  border-radius: 50px;
  color: var(--text);
}

.project-info-card .btn {
  width: 100%;
  justify-content: center;
  margin-top: 24px;
}

.back-link {
  display: flex;
  justify-content: center;
  margin-top: 16px;
  width: 100%;
}

/* ═══════════════════════════════════════════
   ABOUT PAGE
   ═══════════════════════════════════════════ */
.about-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 48px;
  align-items: start;
}

.about-photo-wrapper {
  position: sticky;
  top: calc(var(--header-height) + 24px);
}

.about-photo {
  width: 100%;
  border-radius: var(--radius);
  border: 3px solid var(--accent);
  box-shadow: 0 0 40px rgba(102, 252, 241, 0.1);
}

.about-badges {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
}

.about-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  color: var(--text);
}

.about-badge .badge-icon {
  color: var(--accent);
  font-size: 1.1rem;
  flex-shrink: 0;
}

.about-content h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--white);
  margin: 36px 0 16px;
}

.about-content h2:first-child {
  margin-top: 0;
}

.about-content p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text);
  margin-bottom: 16px;
}

.skills-grid {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
  margin-bottom: 24px;
}

.skill-tag {
  padding: 8px 18px;
  background: rgba(102, 252, 241, 0.08);
  border: 1px solid var(--border);
  border-radius: 50px;
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 500;
  transition: all var(--transition);
}

.skill-tag:hover {
  background: rgba(102, 252, 241, 0.15);
  color: var(--white);
}

.languages-list {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.language-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 0.9rem;
}

/* ═══════════════════════════════════════════
   REVIEWS / AVIS CLIENTS
   ═══════════════════════════════════════════ */
.reviews {
  background: var(--bg-light);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.carousel-wrapper {
  position: relative;
  overflow: hidden;
  margin: 0 -24px;
  padding: 0 24px;
}

.carousel-track {
  display: flex;
  gap: 0;
  transition: transform 0.5s ease;
  will-change: transform;
}

.carousel-slide {
  flex: 0 0 100%;
  border-radius: var(--radius);
  border: 1px solid var(--border-subtle);
  transition: all var(--transition);
  cursor: pointer;
}

.carousel-slide:hover {
  border-color: var(--accent);
  transform: scale(1.02);
  box-shadow: 0 8px 30px rgba(102, 252, 241, 0.1);
}

.carousel-slide img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 40px;
}

.carousel-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--bg-card);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  font-size: 1.2rem;
}

.carousel-btn:hover {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
}

.carousel-dots {
  display: flex;
  gap: 8px;
}

.carousel-dot {
  pointer-events: all;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border);
  border: none;
  transition: width var(--transition), border-radius var(--transition), background var(--transition);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.carousel-dot.active {
  background: var(--accent);
  width: 28px;
  border-radius: 5px;
}

/* ═══════════════════════════════════════════
   FAQ
   ═══════════════════════════════════════════ */
.faq {
  background: var(--bg);
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--transition);
}

.faq-item.open {
  border-color: var(--border);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  background: var(--bg-card);
  color: var(--white);
  font-size: 1rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: all var(--transition);
}

.faq-question:hover {
  background: rgba(21, 25, 34, 0.8);
  color: var(--accent);
}

.faq-item.open .faq-question {
  color: var(--accent);
}

.faq-chevron {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--accent);
  transition: transform 0.3s ease;
}

.faq-item.open .faq-chevron {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-item.open .faq-answer {
  max-height: 300px;
}

.faq-answer p {
  padding: 0 24px 20px;
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.7;
}

/* ═══════════════════════════════════════════
   CONTACT
   ═══════════════════════════════════════════ */
.contact {
  background: var(--bg-light);
  border-top: 1px solid var(--border-subtle);
}

.contact-form {
  max-width: 700px;
  margin: 0 auto;
}

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

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

.form-group.full {
  grid-column: 1 / -1;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
}

.form-group label .required {
  color: var(--accent);
  margin-left: 2px;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 14px 16px;
  background: var(--bg);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--white);
  font-size: 0.95rem;
  transition: all var(--transition);
  outline: none;
}

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

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(102, 252, 241, 0.1);
}

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2366FCF1' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.form-group select option {
  background: var(--bg);
  color: var(--white);
}

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

.form-submit {
  width: 100%;
  padding: 16px;
  margin-top: 8px;
  font-size: 1rem;
  justify-content: center;
  text-align: center;
}

.form-success {
  text-align: center;
  padding: 60px 24px;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

.form-success h3 {
  font-size: 1.5rem;
  color: var(--accent);
  margin-bottom: 12px;
}

.form-success p {
  color: var(--text);
}

.form-error {
  text-align: center;
  padding: 20px;
  background: rgba(255, 80, 80, 0.1);
  border: 1px solid rgba(255, 80, 80, 0.3);
  border-radius: var(--radius);
  color: #ff6b6b;
  margin-bottom: 24px;
}

/* ═══════════════════════════════════════════
   BLOG
   ═══════════════════════════════════════════ */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.blog-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.4s ease;
  display: block;
}

.blog-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3), 0 0 20px rgba(102, 252, 241, 0.06);
}

.blog-card-content {
  padding: 28px;
}

.blog-card-meta {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-bottom: 12px;
  display: flex;
  gap: 16px;
}

.blog-card-content h3 {
  color: var(--white);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 12px;
  line-height: 1.4;
}

.blog-card-content p {
  color: var(--text);
  font-size: 0.9rem;
  line-height: 1.6;
}

.blog-card-tags {
  display: flex;
  gap: 8px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.blog-card-tags span {
  font-size: 0.75rem;
  padding: 4px 10px;
  background: rgba(102, 252, 241, 0.08);
  border-radius: 50px;
  color: var(--accent);
}

/* Blog article */
.article-content {
  max-width: 760px;
  margin: 0 auto;
}

.article-meta {
  display: flex;
  gap: 16px;
  color: var(--text-light);
  font-size: 0.85rem;
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-subtle);
  flex-wrap: wrap;
}

.article-content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  margin: 40px 0 16px;
}

.article-content h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--white);
  margin: 32px 0 12px;
}

.article-content p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text);
  margin-bottom: 16px;
}

.article-content ul,
.article-content ol {
  padding-left: 24px;
  margin-bottom: 20px;
  list-style: disc;
}

.article-content ol {
  list-style: decimal;
}

.article-content li {
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 8px;
  font-size: 0.95rem;
}

.article-content strong {
  color: var(--white);
  font-weight: 600;
}

.article-content a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.article-content a:hover {
  color: var(--white);
}

/* ── Tables dans les articles ── */
.table-wrapper {
  overflow-x: auto;
  margin: 24px 0;
  border-radius: var(--radius);
  border: 1px solid var(--border-subtle);
}

.table-wrapper table,
.article-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.table-wrapper th,
.article-content th {
  background: var(--bg-card);
  color: var(--white);
  font-weight: 600;
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.table-wrapper td,
.article-content td {
  padding: 10px 16px;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text);
  vertical-align: top;
}

.table-wrapper tr:last-child td,
.article-content tr:last-child td {
  border-bottom: none;
}

.table-wrapper tr:hover td,
.article-content tr:hover td {
  background: var(--bg-card);
}

.article-cta {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  text-align: center;
  margin-top: 48px;
}

.article-cta h3 {
  color: var(--white);
  font-size: 1.3rem;
  margin-bottom: 12px;
}

.article-cta p {
  color: var(--text);
  margin-bottom: 24px;
}

/* ═══════════════════════════════════════════
   MENTIONS LEGALES PAGE
   ═══════════════════════════════════════════ */
.legal-content {
  max-width: 760px;
  margin: 0 auto;
}

.legal-content h2 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--accent);
  margin: 36px 0 12px;
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content p {
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.8;
  margin-bottom: 12px;
}

/* ═══════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════ */
.footer {
  padding: 48px 0 32px;
  border-top: 1px solid var(--border-subtle);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
}

.footer-links {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  font-size: 0.9rem;
  color: var(--text-light);
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-bottom {
  color: var(--text-light);
  font-size: 0.85rem;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

.footer-bottom a {
  color: var(--text-light);
  font-size: 0.85rem;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--transition);
}

.footer-bottom a:hover {
  color: var(--accent);
}

/* ═══════════════════════════════════════════
   MENTIONS LEGALES MODAL (legacy, index)
   ═══════════════════════════════════════════ */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal-backdrop.open {
  display: flex;
}

.modal {
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  max-width: 640px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 40px;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--border-subtle);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: all var(--transition);
}

.modal-close:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.modal h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 32px;
}

.modal h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 8px;
  margin-top: 24px;
}

.modal h3:first-of-type {
  margin-top: 0;
}

.modal p {
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.7;
}

/* ═══════════════════════════════════════════
   LIGHTBOX
   ═══════════════════════════════════════════ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 3000;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px;
  cursor: zoom-out;
}

.lightbox.open {
  display: flex;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--white);
  font-size: 1.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  cursor: pointer;
  z-index: 3001;
  line-height: 1;
}

.lightbox-close:hover {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
}

.lightbox-img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
  cursor: default;
  animation: lightboxZoomIn 0.3s ease;
}

@keyframes lightboxZoomIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* ═══════════════════════════════════════════
   CTA SECTION
   ═══════════════════════════════════════════ */
.cta-section {
  padding: 80px 0;
  text-align: center;
}

.cta-section h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 16px;
}

.cta-section p {
  font-size: 1.05rem;
  color: var(--text-light);
  margin-bottom: 32px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* ═══════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════ */
@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 48px;
  }

  .hero-text {
    order: 1;
  }

  .hero-visual {
    order: 0;
    margin-top: 20px;
  }

  .hero-text .description {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-photo {
    width: 240px;
    height: 240px;
  }

  .malt-notes {
    width: 220px;
  }

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

  .portfolio-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .project-layout {
    grid-template-columns: 1fr;
  }

  .project-layout {
    display: flex;
    flex-direction: column;
  }
  
  .project-layout aside {
    order: -1;
    position: static;
    width: 100%;
  }
  
  .project-info-card {
    width: 100%;
  }
  
  .project-layout aside .btn {
    width: 100%;
  }
  
  .project-layout > div {
    order: 1;
  }
  
  .project-info-card {
    position: static;
  }

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

  .about-photo-wrapper {
    position: static;
    text-align: center;
  }

  .about-photo {
    max-width: 300px;
    margin: 0 auto;
  }

  .service-detail-inner {
    grid-template-columns: 1fr;
  }

  .service-detail:nth-child(even) .service-detail-inner {
    direction: ltr;
  }

  .service-detail-visual {
    display: block;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 16px;
  }

  .nav-links {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

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

  .portfolio-item {
    height: 300px;
  }

  .portfolio-cards {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 72px 0;
  }

  .carousel-slide {
    flex: 0 0 100%;
  }

  .hero-inner {
    padding-top: 40px;
    padding-bottom: 40px;
  }

  .hero-photo {
    width: 200px;
    height: 200px;
  }

  .malt-notes {
    width: 200px;
  }

  .btn {
    padding: 12px 24px;
    font-size: 0.9rem;
  }

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

  .service-card {
    padding: 28px 24px;
  }

  .faq-question {
    padding: 16px 20px;
    font-size: 0.95rem;
  }

  .faq-answer p {
    padding: 0 20px 16px;
  }

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

  .page-hero {
    padding: calc(var(--header-height) + 40px) 0 40px;
  }

  .page-hero h1 {
    font-size: 1.8rem;
  }

  .filter-btn {
    padding: 8px 18px;
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .hero {
    padding-left: 16px;
    padding-right: 16px;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .stat-item {
    padding: 24px 12px;
  }

  .carousel-slide {
    flex: 0 0 100%;
  }

  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }

  .hero-buttons .btn {
    width: 100%;
    justify-content: center;
  }

  .footer-links {
    flex-direction: column;
    gap: 16px;
  }

  .portfolio-item {
    height: 260px;
  }

  .lightbox {
    padding: 16px;
  }

  .portfolio-filters {
    gap: 8px;
  }
}

/* ═══════════════════════════════════════════
   AVIS PAGE
   ═══════════════════════════════════════════ */
.avis-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.avis-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 28px;
  transition: all 0.3s ease;
}

.avis-card:hover {
  border-color: var(--border);
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.avis-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  gap: 12px;
}

.avis-avatar {
  width: 48px;
  height: 96px;
  min-width: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  color: #fff;
  letter-spacing: 1px;
}

.avis-stars {
  color: #FFD700;
  font-size: 1.2rem;
  letter-spacing: 2px;
}

.avis-date {
  font-size: 0.8rem;
  color: var(--text-light);
}

.avis-text {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text);
  font-style: italic;
  margin-bottom: 16px;
}

.avis-author {
  font-size: 0.85rem;
  color: var(--text-light);
}

.avis-author strong {
  color: var(--white);
}

.accent-link {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.accent-link:hover {
  color: var(--white);
}

.google-reviews-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.google-reviews-grid .carousel-slide {
  flex: none;
  cursor: pointer;
}

@media (max-width: 768px) {
  .avis-list {
    grid-template-columns: 1fr;
  }

  .google-reviews-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .google-reviews-grid {
    grid-template-columns: 1fr;
  }
}

/* ═══════════════════════════════════════════
   PHONE MOCKUP (PWA apps)
   ═══════════════════════════════════════════ */
.phone-mockup {
  position: relative;
  width: 200px;
  margin: 0 auto;
  background: #1a1a2e;
  border-radius: 36px;
  padding: 12px 10px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4), inset 0 0 0 2px #333;
  border: 3px solid #2a2a3e;
}

.phone-mockup::before {
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 20px;
  background: #1a1a2e;
  border-radius: 0 0 14px 14px;
  z-index: 2;
}

.phone-mockup-screen {
  border-radius: 24px;
  overflow: hidden;
  position: relative;
  aspect-ratio: 9 / 19.5;
}

.phone-mockup-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
}

.portfolio-card .phone-mockup {
  width: 160px;
  border-radius: 28px;
  padding: 10px 8px;
  margin: 20px auto;
}

.portfolio-card .phone-mockup::before {
  width: 60px;
  height: 16px;
  top: 5px;
  border-radius: 0 0 10px 10px;
}

.portfolio-card .phone-mockup-screen {
  border-radius: 18px;
}

.portfolio-card-img.is-mobile {
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 0;
  background: linear-gradient(135deg, var(--bg) 0%, var(--bg-card) 100%);
}

/* ═══════════════════════════════════════════
   TABLE OF CONTENTS (Blog articles)
   ═══════════════════════════════════════════ */
.toc {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 24px 32px;
  margin-bottom: 40px;
}

.toc h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin: 0 0 16px;
}

.toc ol {
  padding-left: 20px;
  margin: 0;
  list-style: decimal;
}

.toc li {
  margin-bottom: 8px;
  font-size: 0.9rem;
  line-height: 1.5;
}

.toc a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition);
}

.toc a:hover {
  color: var(--white);
  text-decoration: underline;
}

/* ═══════════════════════════════════════════
   BLOG CTA FIX
   ═══════════════════════════════════════════ */
.article-cta .btn {
  color: var(--bg) !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.article-cta .btn:hover {
  color: #0B0C10 !important;
}

.article-content .btn-primary,
.article-content .btn-primary:hover {
  color: #0B0C10 !important;
}

/* ═══════════════════════════════════════════
   SERVICE DETAIL — real project images
   ═══════════════════════════════════════════ */
.service-detail-visual img {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  object-position: top;
  border-radius: var(--radius);
  border: 1px solid var(--border-subtle);
}

.service-detail-visual .service-screenshots {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.service-detail-visual .service-screenshots img {
  height: 140px;
  object-fit: cover;
  object-position: top;
}

.service-detail-content .btn {
  margin-top: 24px;
}

/* ═══════════════════════════════════════════
   HOMEPAGE CONTACT FORM SECTION
   ═══════════════════════════════════════════ */
.contact-home {
  background: var(--bg-light);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

/* ═══════════════════════════════════════════
   V10: CENTER MODE CAROUSEL
   ═══════════════════════════════════════════ */
.carousel-wrapper.center-mode {
  overflow: visible;
}

.carousel-wrapper.center-mode .carousel-track {
  overflow: visible;
}

.carousel-wrapper.center-mode .carousel-slide {
  flex: 0 0 70%;
  transition: all 0.5s ease;
  opacity: 0.5;
  transform: scale(0.85);
  filter: brightness(0.6);
}

.carousel-wrapper.center-mode .carousel-slide.active {
  opacity: 1;
  transform: scale(1);
  filter: brightness(1);
  z-index: 2;
}

@media (max-width: 768px) {
  .carousel-wrapper.center-mode .carousel-slide {
    flex: 0 0 85%;
  }
}

/* ═══════════════════════════════════════════
   V10: SERVICE IMAGE SCROLL ANIMATIONS
   ═══════════════════════════════════════════ */
.service-detail-visual.scroll-anim {
  overflow: hidden;
  border-radius: 12px;
  max-height: 600px;
}

.service-detail-visual.scroll-anim img {
  animation: scrollReveal 15s ease-in-out infinite;
  max-height: none;
  height: auto;
  min-height: 100%;
}

.service-detail-visual.scroll-anim:hover img {
  animation-play-state: paused;
}

@keyframes scrollReveal {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, -15%, 0); }
}

/* ═══════════════════════════════════════════
   V11: SERVICE SLIDESHOW (CSS crossfade)
   ═══════════════════════════════════════════ */
.service-slideshow {
  position: relative;
  height: 600px;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
}

.service-slideshow img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  opacity: 0;
}
.service-slideshow img:first-child {
  opacity: 1;
}

/* 3-image slideshow (WordPress: 12s total, 4s per image) */
.service-slideshow.slides-3 img {
  animation: slideshow3 12s ease-in-out infinite;
}
.service-slideshow.slides-3 img:nth-child(1) { animation-delay: 0s; }
.service-slideshow.slides-3 img:nth-child(2) { animation-delay: 4s; }
.service-slideshow.slides-3 img:nth-child(3) { animation-delay: 8s; }

@keyframes slideshow3 {
  0%, 28% { opacity: 1; }
  33%, 95% { opacity: 0; }
  100% { opacity: 1; }
}

/* 2-image slideshow (E-commerce: 8s total, 4s per image) */
.service-slideshow.slides-2 img {
  animation: slideshow2 8s ease-in-out infinite;
}
.service-slideshow.slides-2 img:nth-child(1) { animation-delay: 0s; }
.service-slideshow.slides-2 img:nth-child(2) { animation-delay: 4s; }

@keyframes slideshow2 {
  0%, 45% { opacity: 1; }
  50%, 95% { opacity: 0; }
  100% { opacity: 1; }
}

@media (max-width: 768px) {
  .service-slideshow {
    height: 400px;
  }
}

/* Apps side-by-side in services */
.service-apps-duo {
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: center;
}

.service-apps-duo .phone-mockup {
  width: 160px;
}

@media (max-width: 768px) {
  .service-apps-duo .phone-mockup {
    width: 130px;
  }
}

/* ═══════════════════════════════════════════
   V10: GOOGLE REVIEW CARDS
   ═══════════════════════════════════════════ */
.google-review-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 24px;
  transition: all 0.3s ease;
  position: relative;
}

.google-review-card:hover {
  border-color: var(--border);
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.google-review-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.google-review-avatar {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  color: #fff;
  letter-spacing: 1px;
}

.google-review-info {
  flex: 1;
}

.google-review-name {
  font-weight: 600;
  color: var(--white);
  font-size: 0.95rem;
  margin-bottom: 2px;
}

.google-review-date {
  font-size: 0.78rem;
  color: var(--text-light);
}

.google-review-stars {
  color: #FFD700;
  font-size: 1rem;
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.google-review-text {
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--text);
}

.google-review-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 4px;
}

.google-review-badge svg {
  width: 16px;
  height: 16px;
}

.google-reviews-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

@media (max-width: 768px) {
  .google-reviews-cards {
    grid-template-columns: 1fr;
  }
}

/* ═══════════════════════════════════════════
   V10: BLOG CALLOUT BOXES
   ═══════════════════════════════════════════ */
.callout {
  border-radius: var(--radius);
  padding: 24px 28px;
  margin: 32px 0;
  position: relative;
  border-left: 4px solid;
}

.callout-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.callout-icon {
  font-size: 1.3rem;
  flex-shrink: 0;
}

.callout h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0;
}

.callout ul {
  padding-left: 20px;
  list-style: disc;
  margin: 0;
}

.callout li {
  margin-bottom: 6px;
  font-size: 0.93rem;
  line-height: 1.6;
  color: var(--text);
}

.callout p {
  font-size: 0.93rem;
  line-height: 1.6;
  margin-bottom: 0;
  color: var(--text);
}

/* Takeaway */
.callout-takeaway {
  background: rgba(102, 252, 241, 0.06);
  border-color: var(--accent);
}

.callout-takeaway h3 {
  color: var(--accent);
}

/* Pro Tip */
.callout-tip {
  background: rgba(255, 193, 7, 0.06);
  border-color: #FFC107;
}

.callout-tip h3 {
  color: #FFC107;
}

/* CTA mid-article */
.callout-cta {
  background: rgba(102, 252, 241, 0.04);
  border-color: var(--accent);
  text-align: center;
  border-left: none;
  border: 2px solid var(--accent);
}

.callout-cta h3 {
  color: var(--white);
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.callout-cta p {
  color: var(--text-light);
  margin-bottom: 16px;
}

.callout-cta .btn {
  color: var(--bg) !important;
}

/* ═══════════════════════════════════════════
   V10: DARK / LIGHT MODE
   ═══════════════════════════════════════════ */
:root[data-theme="light"] {
  --bg: #FFFFFF;
  --bg-light: #F5F5F5;
  --bg-card: #FAFAFA;
  --accent: #0a7f8a;
  --accent-dark: #0B7A85;
  --text: #333333;
  --text-light: #666666;
  --white: #1F2833;
  --border: rgba(14, 154, 167, 0.25);
  --border-subtle: rgba(0, 0, 0, 0.08);
}

:root[data-theme="light"] .btn-primary {
  background: var(--accent);
  color: #FFFFFF;
}

:root[data-theme="light"] .btn-primary:hover {
  background: #0B0C10;
  color: #FFFFFF;
  box-shadow: 0 8px 30px rgba(14, 154, 167, 0.25);
}

:root[data-theme="light"] .btn-outline {
  border-color: var(--accent);
  color: var(--accent);
}

:root[data-theme="light"] .btn-outline:hover {
  background: var(--accent);
  color: #FFFFFF;
}

:root[data-theme="light"] .header.scrolled {
  background: rgba(255, 255, 255, 0.95);
}

:root[data-theme="light"] .mobile-nav {
  background: rgba(255, 255, 255, 0.98);
}

:root[data-theme="light"] .hero::before,
:root[data-theme="light"] .hero::after {
  opacity: 0.3;
}

:root[data-theme="light"] .menu-toggle span {
  background: #333;
}

:root[data-theme="light"] .phone-mockup {
  background: #e0e0e0;
  border-color: #ccc;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.15), inset 0 0 0 2px #ddd;
}

:root[data-theme="light"] .phone-mockup::before {
  background: #e0e0e0;
}

:root[data-theme="light"] .stat-item {
  background: rgba(102, 252, 241, 0.06);
}

:root[data-theme="light"] .portfolio-overlay {
  background: linear-gradient(transparent, rgba(255, 255, 255, 0.92));
}

:root[data-theme="light"] .portfolio-overlay span {
  color: #1F2833;
}

:root[data-theme="light"] .portfolio-item-mobile {
  background: #F5F5F5;
}

:root[data-theme="light"] .portfolio-card-img.is-mobile {
  background: linear-gradient(135deg, #fff 0%, #f0f0f0 100%);
}

:root[data-theme="light"] .faq-question {
  background: #FAFAFA;
  color: #1F2833;
}

:root[data-theme="light"] .faq-question:hover {
  background: #F0F0F0;
}

:root[data-theme="light"] .lightbox {
  background: rgba(255, 255, 255, 0.95);
}

:root[data-theme="light"] .article-cta {
  background: #F5F5F5;
  border-color: rgba(0, 0, 0, 0.08);
}

:root[data-theme="light"] .toc {
  background: #FAFAFA;
}

:root[data-theme="light"] .callout-takeaway {
  background: rgba(102, 252, 241, 0.08);
}

:root[data-theme="light"] .callout-tip {
  background: rgba(255, 193, 7, 0.08);
}

:root[data-theme="light"] .callout-cta {
  background: rgba(102, 252, 241, 0.06);
}

/* Theme toggle button */
.theme-toggle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--border-subtle);
  background: transparent;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
  font-size: 1.1rem;
  flex-shrink: 0;
}

.theme-toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(102, 252, 241, 0.06);
}

.theme-toggle .icon-sun,
.theme-toggle .icon-moon {
  display: none;
}

:root[data-theme="dark"] .theme-toggle .icon-sun,
:root:not([data-theme]) .theme-toggle .icon-sun {
  display: block;
}

:root[data-theme="light"] .theme-toggle .icon-moon {
  display: block;
}

/* Header adjustment for theme toggle */
.header-inner {
  gap: 16px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Light mode comprehensive button fixes */
:root[data-theme="light"] .btn {
  text-decoration: none !important;
}
:root[data-theme="light"] .btn-primary {
  background: #0a7f8a;
  color: #FFFFFF !important;
  text-decoration: none !important;
}
:root[data-theme="light"] .btn-primary:hover {
  background: #0B0C10;
  color: #FFFFFF !important;
  text-decoration: none !important;
}
:root[data-theme="light"] .btn-outline {
  border-color: #0a7f8a;
  color: #0a7f8a;
  text-decoration: none !important;
}
:root[data-theme="light"] .btn-outline:hover {
  background: #0a7f8a;
  color: #FFFFFF !important;
  text-decoration: none !important;
}
:root[data-theme="light"] .callout-cta .btn,
:root[data-theme="light"] .callout-cta .btn:hover,
:root[data-theme="light"] .article-cta .btn,
:root[data-theme="light"] .article-cta .btn:hover,
:root[data-theme="light"] .cta-section .btn,
:root[data-theme="light"] .cta-section .btn:hover {
  color: #FFFFFF !important;
  text-decoration: none !important;
}
:root[data-theme="light"] a.btn {
  text-decoration: none !important;
}

/* GLOBAL BUTTON FIX — no underline, always visible text */
.btn, a.btn, .callout-cta a, .article-cta a, .cta-section a {
  text-decoration: none !important;
}
.btn:hover, a.btn:hover {
  text-decoration: none !important;
}

/* Dark mode CTA buttons */
.callout-cta .btn-primary,
.article-cta .btn-primary,
.cta-section .btn-primary {
  color: #0B0C10 !important;
  text-decoration: none !important;
}
.callout-cta .btn-primary:hover,
.article-cta .btn-primary:hover,
.cta-section .btn-primary:hover {
  background: #FFFFFF;
  color: #0B0C10 !important;
  text-decoration: none !important;
}

/* Light mode — ALL CTA buttons white text on accent */
:root[data-theme="light"] .callout-cta .btn-primary,
:root[data-theme="light"] .article-cta .btn-primary,
:root[data-theme="light"] .cta-section .btn-primary {
  background: #0a7f8a;
  color: #FFFFFF !important;
  text-decoration: none !important;
}
:root[data-theme="light"] .callout-cta .btn-primary:hover,
:root[data-theme="light"] .article-cta .btn-primary:hover,
:root[data-theme="light"] .cta-section .btn-primary:hover {
  background: #0B0C10;
  color: #FFFFFF !important;
  text-decoration: none !important;
}

/* Google review cards grid */
.google-reviews-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
@media (max-width: 480px) {
  .google-reviews-cards {
    grid-template-columns: 1fr;
  }
}

/* NUCLEAR FIX: light mode buttons — text always white on colored/dark backgrounds */
:root[data-theme="light"] .callout .btn-primary,
:root[data-theme="light"] .callout-cta .btn-primary,
:root[data-theme="light"] .callout-cta .btn,
:root[data-theme="light"] .article-cta .btn-primary,
:root[data-theme="light"] .cta-section .btn-primary,
:root[data-theme="light"] .callout .btn-primary:hover,
:root[data-theme="light"] .callout-cta .btn-primary:hover,
:root[data-theme="light"] .callout-cta .btn:hover,
:root[data-theme="light"] .article-cta .btn-primary:hover,
:root[data-theme="light"] .cta-section .btn-primary:hover {
  color: #FFFFFF !important;
  text-decoration: none !important;
}
:root[data-theme="light"] .btn-primary:hover {
  background: #0B0C10 !important;
  color: #FFFFFF !important;
}

/* ══════════ MOBILE FIXES (2026-03-03) ══════════ */

/* Prevent horizontal scroll everywhere */
html, body {
  overflow-x: hidden !important;
  max-width: 100vw;
}



/* Malt notes image bigger on mobile */
@media (max-width: 768px) {
  .malt-notes {
    width: 220px !important;
    max-width: 80% !important;
    margin: 0 auto;
    display: block;
  }
  
  /* Hero buttons - add margin bottom */
  .hero-buttons {
    margin-bottom: 2rem;
  }
  
  /* Service cards - show images, more height for mockups */
  .service-card img,
  .service-card .service-visual,
  .service-card .service-image {
    display: block !important;
    max-width: 100%;
    height: auto;
  }
  
  /* Portfolio cards - ensure images show */
  .portfolio-card img,
  .project-card img {
    display: block !important;
    width: 100%;
    height: auto;
    min-height: 150px;
    object-fit: cover;
  }
  
  /* App mockup cards - taller to avoid cut off */
  .portfolio-card.app-card,
  .project-card.app-card {
    min-height: 350px;
  }
  
  /* Reviews carousel - prevent overflow */
  .reviews-carousel,
  .reviews-slider,
  .avis-carousel {
    overflow: hidden !important;
    max-width: 100vw;
  }
  
  /* CTA section - prevent word orphans */
  .cta-section h2,
  .cta h2,
  section h2 {
    word-break: keep-all;
    overflow-wrap: break-word;
    hyphens: none;
  }
  
  /* Buttons spacing from next section */
  .section-cta,
  .hero-buttons,
  .portfolio-cta {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
  }
  
  /* Service section images */
  .services-section img,
  .service-visual img {
    max-width: 100%;
    height: auto;
    display: block;
  }
}

@media (max-width: 480px) {
  /* Even smaller screens */
  .malt-notes {
    width: 200px !important;
  }
  
  /* Prevent text orphans on small screens */
  h2 {
    font-size: 1.5rem;
  }
}

/* Fallback: ensure reveal elements become visible even if JS observer misses */
@media (max-width: 768px) {
  .reveal {
    opacity: 1 !important;
    transform: translateY(0) !important;
  }
}

/* Fix service images on mobile - ensure they display */
@media (max-width: 768px) {
  .service-mockup,
  .service-img,
  .service-visual {
    display: block !important;
    max-width: 100%;
    margin: 1rem auto;
  }
  
  .service-mockup img,
  .service-img img {
    max-width: 280px;
    margin: 0 auto;
    display: block;
  }
  
  /* App mockups - don't cut off */
  .service-card .iphone-mockup,
  .portfolio-card .app-mockup {
    max-height: none !important;
    overflow: visible !important;
  }
}


/* FAQ spacing fixes */
.faq.section .section-title,
.faq .section-title,
h2.section-title + .faq-list {
  margin-top: 2rem;
}

.faq-item .faq-answer {
  padding: 0;
}

.faq-item.open .faq-answer {
  padding: 8px 0 0;
}

.faq-item.open .faq-answer p {
  padding-top: 8px;
}

.faq-item .faq-question {
  padding: 18px 20px;
}

/* Mobile menu: prevent body scroll when open */




/* Mobile nav overlay - ensure full coverage */
.mobile-nav.open {
  overflow-y: auto;
}




/* Don't apply reveal transform to project-layout (breaks sticky) */
.project-layout.reveal {
  opacity: 1 !important;
  transform: none !important;
}

/* Don't animate article-content — it's the main page content, visible immediately */
.article-content.reveal {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}

/* Language Switcher */
.lang-switch {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 4px;
  transition: all 0.3s ease;
  letter-spacing: 0.05em;
}

.lang-switch:hover {
  color: var(--accent);
  background: rgba(102, 252, 241, 0.1);
}

.mobile-lang-switch {
  display: flex;
  gap: 16px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
}

@media (max-width: 768px) {
  .header-actions .lang-switch {
    display: none;
  }
}

/* Project screenshot */
.project-screenshot {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  margin-bottom: 2rem;
}

/* Portfolio double filter rows */
.portfolio-filters {
  text-align: center;
  margin-bottom: 2rem;
}
.filter-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}
.filter-row:last-child {
  margin-bottom: 0;
}
.filter-label {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-right: 4px;
}
.filter-btn {
  padding: 6px 16px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font-size: 0.85rem;
  transition: all 0.2s;
}
.filter-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.filter-btn.active {
  background: transparent;
  border-color: var(--accent);
  color: var(--accent);
}
.portfolio-card-domain {
  display: inline-block;
  font-size: 0.7rem;
  color: var(--accent);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-left: 8px;
}
.portfolio-count {
  text-align: center;
  margin: 1.5rem 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
}
@media (max-width: 600px) {
  .filter-row {
    gap: 6px;
  }
  .filter-btn {
    padding: 5px 12px;
    font-size: 0.8rem;
  }
  .filter-label {
    width: 100%;
    text-align: center;
    margin-bottom: 2px;
  }
}

/* Section CTA (portfolio, etc.) */
.section-cta {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg, 12px);
  padding: 48px 40px;
  text-align: center;
  margin-top: 48px;
}
.section-cta h3 {
  font-size: 1.4rem;
  margin-bottom: 12px;
}
.section-cta p {
  color: var(--text-secondary);
  margin-bottom: 24px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* ═══════════════════════════════════════════
   CLIENTS SLIDER (infinite scroll)
   ═══════════════════════════════════════════ */
.clients-slider-section {
  padding: 32px 0;
  background: #66fcf1;
  overflow: hidden;
  /* Animation d'apparition après le hero */
  opacity: 0;
  transform: translateY(20px);
  animation: sliderFadeIn 0.6s ease 0.8s forwards;
}

@keyframes sliderFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Dark mode : fond légèrement éclairci mais cohérent */
@media (prefers-color-scheme: light) {
  .clients-slider-section {
    background: rgba(69, 162, 158, 0.15);
  }
}

.clients-track-wrapper {
  overflow: hidden;
  cursor: grab;
  position: relative;
  user-select: none;
  mask-image: linear-gradient(to right, transparent 0%, black 6%, black 94%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 6%, black 94%, transparent 100%);
}

.clients-track-wrapper:active {
  cursor: grabbing;
}

.clients-track {
  display: flex;
  align-items: center;
  gap: 60px;
  width: max-content;
  padding: 0 40px;
  will-change: transform;
  transform: translateZ(0);
  backface-visibility: hidden;
}

.client-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.client-logo a {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.client-logo img {
  height: 96px;
  width: auto;
  max-width: 280px;
  object-fit: contain;
  /* Fond clair → grayscale simple suffit */
  filter: none;
  opacity: 1;
  transition: opacity 0.3s ease, filter 0.3s ease;
}

.client-logo:hover img,
.client-logo a:hover img {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .clients-track {
    animation: none;
  }
}

@media (max-width: 768px) {
  .clients-track {
    gap: 40px;
    animation-duration: 20s;
  }
  .client-logo img {
    height: 36px;
    max-width: 110px;
  }
}

/* Responsive classes — pages secteur & cross */
@media(max-width:768px){
  .profile-grid{grid-template-columns:1fr!important;text-align:center;justify-items:center;}
  .reviews-grid-3{grid-template-columns:1fr!important;}
}
@media(max-width:600px){
  .projects-grid-2{grid-template-columns:1fr!important;}
}
