/* ==========================================================================
   PORTFOLIO — Glassmorphism "Flutter × Laravel"
   Couleurs de marque en aplats uniquement (aucun dégradé avec elles)
   ========================================================================== */

:root {
  /* Marque */
  --flutter: #54c5f8;
  --flutter-deep: #02569b;
  --laravel: #ff2d20;

  /* Neutres */
  --bg: #070a10;
  --text: #f1f5fa;
  --text-soft: #c3cfdd;
  --muted: #8393a6;

  /* Verre */
  --glass: rgba(255, 255, 255, 0.05);
  --glass-strong: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.11);
  --glass-highlight: inset 0 1px 0 rgba(255, 255, 255, 0.16);
  --blur: blur(22px) saturate(170%);

  /* Teintes marque (aplats translucides) */
  --flutter-tint: rgba(84, 197, 248, 0.12);
  --flutter-line: rgba(84, 197, 248, 0.35);
  --laravel-tint: rgba(255, 45, 32, 0.12);
  --laravel-line: rgba(255, 45, 32, 0.38);

  --font-display: "Sora", "Manrope", sans-serif;
  --font-body: "Manrope", "Inter", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  --radius: 22px;
  --radius-sm: 14px;
  --max-width: 1180px;
  --shadow: 0 30px 70px -20px rgba(0, 0, 0, 0.65);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: transparent;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection {
  background: var(--flutter);
  color: #04121f;
}

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

button,
input,
textarea {
  font: inherit;
}

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

.container {
  width: min(var(--max-width), calc(100% - 32px));
  margin: 0 auto;
}

#projects,
#about,
#social-ads,
#contact {
  scroll-margin-top: 110px;
}

/* ==========================================================================
   FOND : orbes en aplat flouté + grille discrète
   ========================================================================== */

html::before {
  content: "";
  position: fixed;
  z-index: -1;
  width: 460px;
  height: 460px;
  left: -140px;
  bottom: -160px;
  border-radius: 50%;
  background: var(--flutter);
  filter: blur(150px);
  opacity: 0.2;
  pointer-events: none;
}

body::before {
  content: "";
  position: fixed;
  z-index: -1;
  width: 620px;
  height: 620px;
  top: -200px;
  left: -160px;
  border-radius: 50%;
  background: var(--flutter-deep);
  filter: blur(130px);
  opacity: 0.7;
  pointer-events: none;
}

body::after {
  content: "";
  position: fixed;
  z-index: -1;
  width: 480px;
  height: 480px;
  top: 28%;
  right: -180px;
  border-radius: 50%;
  background: var(--laravel);
  filter: blur(150px);
  opacity: 0.3;
  pointer-events: none;
}

html::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 75%);
}

@keyframes floaty {
  0%,
  100% {
    transform: translateY(0) rotateX(0deg) rotateY(0deg);
  }
  50% {
    transform: translateY(-14px) rotateX(2deg) rotateY(-3deg);
  }
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 45, 32, 0.6);
  }
  100% {
    box-shadow: 0 0 0 12px rgba(255, 45, 32, 0);
  }
}

/* ==========================================================================
   HEADER — pilule flottante en verre
   ========================================================================== */

.site-header {
  position: sticky;
  top: 12px;
  z-index: 20;
  width: min(var(--max-width), calc(100% - 32px));
  margin: 12px auto 0;
  background: rgba(14, 20, 30, 0.55);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  box-shadow: var(--glass-highlight), 0 20px 50px -20px rgba(0, 0, 0, 0.7);
}

.site-header .container {
  width: 100%;
  padding: 0 14px 0 22px;
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.brand__logo {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(84, 197, 248, 0.35), 0 12px 26px -14px rgba(84, 197, 248, 0.95);
}

.brand__name {
  line-height: 1;
}

.brand::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--laravel);
  animation: pulse 2s ease-out infinite;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 600;
}

.main-nav a {
  position: relative;
  padding: 0.55rem 0.95rem;
  border-radius: 12px;
  color: var(--text-soft);
  transition: color 0.2s ease, background 0.2s ease;
}

.main-nav a:hover {
  color: var(--text);
  background: var(--glass-strong);
}

/* ==========================================================================
   BOUTONS
   ========================================================================== */

.button {
  position: relative;
  border: 1px solid transparent;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  padding: 0.85rem 1.3rem;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease,
    border-color 0.25s ease;
}

.button:hover,
.action-button:hover,
.action-link:hover,
.filter-button:hover,
.detail-nav__button:hover {
  transform: translateY(-2px);
}

.button--small {
  padding: 0.7rem 1.1rem;
  font-size: 0.88rem;
}

.button--primary {
  background: var(--flutter);
  color: #04121f;
  box-shadow: 0 0 0 1px rgba(84, 197, 248, 0.5), 0 12px 30px -10px rgba(84, 197, 248, 0.7),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.button--primary:hover {
  box-shadow: 0 0 0 1px rgba(84, 197, 248, 0.8), 0 16px 44px -8px rgba(84, 197, 248, 0.9),
    inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.button--secondary {
  background: var(--glass);
  border-color: var(--glass-border);
  color: var(--text);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: var(--glass-highlight);
}

.button--secondary:hover {
  background: var(--glass-strong);
  border-color: var(--flutter-line);
}

.button--restaurant {
  isolation: isolate;
  overflow: visible;
}

.button--restaurant::before {
  content: "";
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--flutter);
  box-shadow: 0 0 10px var(--flutter), 0 0 24px rgba(84, 197, 248, 0.8);
  opacity: 0.85;
  animation: restaurant-blue-light 4.2s linear infinite;
  transition: opacity 0.25s ease;
}

.button--restaurant::after {
  content: "";
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--laravel);
  box-shadow: 0 0 10px var(--laravel), 0 0 24px rgba(255, 45, 32, 0.8);
  opacity: 0.85;
  animation: restaurant-red-light 4.2s linear infinite reverse;
  transition: opacity 0.25s ease;
}

.button--restaurant:hover {
  border-color: var(--flutter);
  box-shadow: 0 0 0 1px rgba(84, 197, 248, 0.55), 0 0 24px rgba(84, 197, 248, 0.28),
    0 14px 32px -12px rgba(0, 0, 0, 0.8), var(--glass-highlight);
}

.button--restaurant:hover::before,
.button--restaurant:hover::after {
  opacity: 0.25;
  animation-play-state: paused;
}

@keyframes restaurant-blue-light {
  0% {
    transform: translate(-50%, -50%) rotate(0deg) translateX(124px) rotate(0deg);
  }

  100% {
    transform: translate(-50%, -50%) rotate(360deg) translateX(124px) rotate(-360deg);
  }
}

@keyframes restaurant-red-light {
  0% {
    transform: translate(-50%, -50%) rotate(180deg) translateX(124px) rotate(-180deg);
  }

  100% {
    transform: translate(-50%, -50%) rotate(540deg) translateX(124px) rotate(-540deg);
  }
}

/* ==========================================================================
   HERO
   ========================================================================== */

.hero {
  padding: 78px 0 72px;
}

.hero-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 40px;
}

.hero-copy,
.hero-visual {
  min-width: 0;
}

.hero-copy > * {
  animation: fadeUp 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.hero-copy > *:nth-child(2) {
  animation-delay: 0.08s;
}
.hero-copy > *:nth-child(3) {
  animation-delay: 0.16s;
}
.hero-copy > *:nth-child(4) {
  animation-delay: 0.24s;
}
.hero-copy > *:nth-child(5) {
  animation-delay: 0.32s;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  padding: 0.45rem 0.85rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-soft);
  line-height: 1.4;
  max-width: 100%;
  overflow-wrap: anywhere;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--flutter);
  box-shadow: 0 0 10px var(--flutter);
}

.hero h1,
.section-heading h2,
.about-section h2,
.contact-copy h2,
.cta-box h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.hero h1 {
  font-size: clamp(2.4rem, 4.4vw, 4.4rem);
  max-width: 680px;
  background: linear-gradient(180deg, #ffffff 30%, #8fa1b6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.lead {
  margin: 22px 0 0;
  max-width: 600px;
  color: var(--text-soft);
  font-size: 1.05rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero-points {
  list-style: none;
  margin: 30px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-points li {
  padding: 0.6rem 0.95rem;
  border-radius: 999px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  color: var(--text-soft);
  font-size: 0.82rem;
  font-weight: 600;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.hero-points li:hover {
  transform: translateY(-3px);
}

.hero-points .tech-pill--flutter {
  background: var(--flutter-tint);
  border-color: var(--flutter-line);
  color: var(--flutter);
}

.hero-points .tech-pill--laravel {
  background: var(--laravel-tint);
  border-color: var(--laravel-line);
  color: #ff7a70;
}

/* Panneau visuel en verre, flottant en 3D */

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  perspective: 1200px;
}

.hero-platforms {
  position: absolute;
  right: 0;
  bottom: -66px;
  z-index: 4;
  display: flex;
  gap: 8px;
}

.hero-platform-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  padding: 3px;
  color: var(--flutter);
  background: rgba(12, 18, 27, 0.96);
  border: 1px solid var(--flutter-line);
  border-radius: 9px;
  box-shadow: var(--glass-highlight), 0 8px 22px rgba(0, 0, 0, 0.28);
  animation: platform-float 4s ease-in-out infinite;
}

.hero-platform-badge--play {
  border-color: rgba(84, 197, 248, 0.5);
  box-shadow: var(--glass-highlight), 0 0 16px rgba(84, 197, 248, 0.18);
}

.hero-platform-badge--appstore,
.hero-platform-badge--apple {
  color: #f1f5fa;
}

.hero-platform-badge--android {
  color: #86d6b5;
  border-color: rgba(134, 214, 181, 0.4);
}

.hero-platform-badge:nth-child(even) {
  animation-delay: -2s;
}

.hero-platform-badge img {
  display: block;
  width: 50px;
  height: 50px;
  object-fit: contain;
  border-radius: 4px;
}

@keyframes platform-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-4px);
  }
}

.visual-panel {
  width: min(100%, 500px);
  max-width: 100%;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 26px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  -webkit-backdrop-filter: blur(26px) saturate(180%);
  backdrop-filter: blur(26px) saturate(180%);
  box-shadow: var(--glass-highlight), var(--shadow);
  transform-style: preserve-3d;
  animation: floaty 9s ease-in-out infinite;
}

.visual-topbar {
  display: flex;
  gap: 8px;
  padding: 15px 18px;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid var(--glass-border);
}

.visual-topbar span {
  display: block;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
}

.visual-topbar span:nth-child(1) {
  background: var(--laravel);
}
.visual-topbar span:nth-child(2) {
  background: var(--flutter);
}

.visual-body {
  padding: 24px 20px 22px;
}

.stat-card {
  position: relative;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 18px 20px;
  color: var(--text);
  box-shadow: var(--glass-highlight);
}

.stat-card::after {
  content: "";
  position: absolute;
  top: 20px;
  right: 20px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--laravel);
  animation: pulse 2s ease-out infinite;
}

.stat-card small {
  display: block;
  margin-bottom: 8px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.stat-card strong {
  font-family: var(--font-display);
  font-size: 1.1rem;
}

.mini-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.mini-box {
  min-width: 0;
  min-height: 108px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border);
  color: var(--text);
  padding: 15px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}

.mini-box:hover {
  transform: translateY(-4px);
  border-color: var(--laravel-line);
  background: var(--laravel-tint);
}

.mini-box span {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.mini-box strong {
  display: block;
  margin-top: 8px;
  font-family: var(--font-display);
  font-size: 0.98rem;
  overflow-wrap: anywhere;
}

.mini-box.highlight {
  background: var(--flutter-tint);
  border-color: var(--flutter-line);
}

.mini-box.highlight:hover {
  background: rgba(84, 197, 248, 0.2);
  border-color: var(--flutter);
}

/* ==========================================================================
   SECTIONS
   ========================================================================== */

.projects-section,
.about-section,
.social-ads-section,
.contact-section {
  padding: 84px 0;
}

.section-heading {
  margin-bottom: 32px;
}

.section-heading h2,
.about-section h2,
.social-ads-heading h2,
.contact-copy h2,
.cta-box h2 {
  font-size: clamp(1.9rem, 3.3vw, 2.9rem);
  max-width: 840px;
}

.section-heading--small {
  margin-top: 54px;
}

.section-heading--small h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.6vw, 2.2rem);
  letter-spacing: -0.03em;
}

/* Filtres */

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 34px;
}

.filter-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--glass-border);
  background: var(--glass);
  color: var(--text-soft);
  border-radius: 999px;
  padding: 0.65rem 1.1rem;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--glass-highlight);
  transition: all 0.25s ease;
}

.filter-button:hover {
  border-color: var(--flutter-line);
  color: var(--text);
}

.filter-button.is-active {
  background: var(--flutter);
  color: #04121f;
  border-color: var(--flutter);
  box-shadow: 0 10px 28px -10px rgba(84, 197, 248, 0.8);
}

.filter-button.is-active::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--laravel);
}

/* ==========================================================================
   CARTES PROJETS
   ========================================================================== */

.featured-grid,
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.featured-grid {
  margin-bottom: 20px;
}

.featured-carousel__controls {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-bottom: 12px;
}

.featured-carousel__controls button {
  display: grid;
  place-items: center;
  min-width: 40px;
  height: 40px;
  padding: 0 10px;
  color: var(--text-soft);
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  box-shadow: var(--glass-highlight);
  cursor: pointer;
}

.featured-carousel__controls button:hover {
  color: var(--text);
  border-color: var(--flutter-line);
}

.featured-grid.featured-grid--carousel {
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 72px) / 4);
  grid-template-columns: none;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  padding: 2px 2px 14px;
}

.featured-grid--carousel > * {
  scroll-snap-align: start;
}

@media (max-width: 1000px) {
  .featured-grid.featured-grid--carousel {
    grid-auto-columns: calc((100% - 24px) / 2);
  }
}

@media (max-width: 640px) {
  .featured-grid.featured-grid--carousel {
    grid-auto-columns: 88%;
  }
}

.project-grid {
  counter-reset: projet;
}

.project-card,
.featured-project {
  position: relative;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(15, 21, 31, 0.88);
  box-shadow: var(--glass-highlight), 0 24px 50px -28px rgba(0, 0, 0, 0.8);
  transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1), border-color 0.3s ease,
    box-shadow 0.4s ease, background 0.3s ease;
}

.project-card::before,
.featured-project::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 3;
  background: var(--flutter);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.featured-project::before {
  background: var(--laravel);
}

.project-card:hover,
.featured-project:hover {
  transform: translateY(-8px);
  background: var(--glass-strong);
  border-color: var(--flutter-line);
  box-shadow: var(--glass-highlight), 0 34px 70px -26px rgba(0, 0, 0, 0.9),
    0 0 0 1px rgba(84, 197, 248, 0.1), 0 0 60px -20px rgba(84, 197, 248, 0.45);
}

.featured-project:hover {
  border-color: var(--laravel-line);
  box-shadow: var(--glass-highlight), 0 34px 70px -26px rgba(0, 0, 0, 0.9),
    0 0 60px -20px rgba(255, 45, 32, 0.45);
}

.project-card:hover::before,
.featured-project:hover::before {
  transform: scaleX(1);
}

/* Numéro de carte */
.project-card::after {
  counter-increment: projet;
  content: counter(projet, decimal-leading-zero);
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  padding: 0.3rem 0.65rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--text);
  background: rgba(7, 10, 16, 0.55);
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.project-card__media,
.featured-project__media {
  position: relative;
  aspect-ratio: 16 / 10;
  background: rgba(255, 255, 255, 0.03);
  overflow: hidden;
}

.project-card__media img,
.featured-project__media img,
.modal-gallery__item img,
.project-hero {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.project-card:hover .project-card__media img,
.featured-project:hover .featured-project__media img {
  transform: scale(1.07);
}

.project-card__media--mobile,
.project-card__media--pos {
  display: grid;
  place-items: center;
}

.project-card__media--mobile > img {
  width: auto;
  height: 84%;
  max-width: 46%;
  object-fit: contain;
  border-radius: 16px;
  box-shadow: 0 18px 36px -22px rgba(0, 0, 0, 0.95), 0 0 0 1px rgba(255, 255, 255, 0.13);
}

.project-card__media--pos > img {
  width: min(82%, 440px);
  height: 88%;
  object-fit: contain;
  border-radius: 12px;
}

.project-card:hover .project-card__media--mobile > img,
.project-card:hover .project-card__media--pos > img {
  transform: none;
}

.scroll-preview {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: rgba(7, 10, 16, 0.52);
}

.project-preview-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.project-preview-pair > * {
  min-width: 0;
}

.scroll-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 0%;
  transform: none;
  transition: object-position var(--preview-scroll-duration, 7s) cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.35s ease;
  will-change: object-position;
}

.scroll-preview::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(7, 10, 16, 0.28), transparent 16%, transparent 74%, rgba(7, 10, 16, 0.46)),
    linear-gradient(90deg, rgba(84, 197, 248, 0.12), transparent 18%, transparent 82%, rgba(255, 45, 32, 0.12));
  opacity: 0.92;
  transition: opacity 0.35s ease;
}

.project-card:hover .scroll-preview img,
.featured-project:hover .scroll-preview img,
.project-hero.scroll-preview:hover img,
.modal-gallery__item.scroll-preview:hover img {
  object-position: 50% 100%;
  transform: none;
}

.project-card:hover .scroll-preview::after,
.featured-project:hover .scroll-preview::after,
.project-hero.scroll-preview:hover::after,
.modal-gallery__item.scroll-preview:hover::after {
  opacity: 0.62;
}

.project-card__placeholder,
.featured-project__placeholder,
.project-hero--placeholder {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  padding: 16px;
  overflow: hidden;
  text-align: center;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  background-color: rgba(255, 255, 255, 0.025);
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 28px 28px;
}

.project-card__placeholder::before,
.featured-project__placeholder::before,
.project-hero--placeholder::before {
  content: "";
  position: absolute;
  width: 120px;
  height: 120px;
  right: -30px;
  bottom: -40px;
  border: 2px solid var(--flutter);
  border-radius: 28px;
  opacity: 0.3;
  transform: rotate(18deg);
  transition: transform 0.6s ease, opacity 0.4s ease;
}

.project-card__placeholder::after,
.featured-project__placeholder::after,
.project-hero--placeholder::after {
  content: "";
  position: absolute;
  width: 64px;
  height: 64px;
  left: 22px;
  top: 22px;
  border: 2px solid var(--laravel);
  border-radius: 50%;
  opacity: 0.3;
  transition: transform 0.6s ease, opacity 0.4s ease;
}

.project-card:hover .project-card__placeholder::before,
.featured-project:hover .featured-project__placeholder::before {
  transform: rotate(60deg) scale(1.15);
  opacity: 0.6;
}

.project-card:hover .project-card__placeholder::after,
.featured-project:hover .featured-project__placeholder::after {
  transform: scale(1.4);
  opacity: 0.6;
}

.project-card__placeholder span,
.featured-project__placeholder span,
.project-hero--placeholder span {
  position: relative;
  z-index: 1;
}

.project-card__content,
.featured-project__content {
  padding: 22px 22px 24px;
}

.project-card__meta,
.project-card__tags,
.project-detail__actions,
.detail-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.project-card__meta {
  justify-content: space-between;
  margin-bottom: 14px;
  font-family: var(--font-mono);
  color: var(--muted);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project-card h3,
.featured-project h3 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 1.45rem;
  letter-spacing: -0.03em;
}

.project-card p,
.featured-project p,
.project-detail__summary,
.project-detail__grid p,
.about-content p,
.about-intro,
.contact-list,
.contact-form label {
  color: var(--text-soft);
  line-height: 1.7;
}

.contact-honeypot[hidden] {
  display: none !important;
}

.contact-toast {
  --toast-color: #8ce0bf;
  position: fixed;
  z-index: 1200;
  top: 24px;
  right: 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 16px;
  width: min(440px, calc(100vw - 48px));
  padding: 16px 18px;
  color: var(--text);
  background: var(--glass-strong);
  border: 1px solid var(--glass-border);
  border-left: 3px solid var(--toast-color);
  border-radius: 12px;
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  box-shadow: var(--glass-highlight), var(--shadow);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.contact-toast--error {
  --toast-color: #ffaaa4;
}

.contact-toast p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.55;
}

.contact-toast button {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 6px;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}

.contact-toast button:hover {
  color: var(--text);
  background: var(--glass);
}

.contact-toast.is-dismissed {
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
}

.contact-honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.project-card p,
.featured-project p {
  margin: 0;
  font-size: 0.94rem;
}

.project-card__tags {
  margin: 18px 0 0;
}

.project-card__tags span,
.featured-project__tag,
.project-status {
  display: inline-flex;
  align-items: center;
  background: var(--flutter-tint);
  color: var(--flutter);
  border: 1px solid var(--flutter-line);
  border-radius: 999px;
  padding: 0.38rem 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.project-card__tags span:nth-child(2n),
.featured-project__tag:nth-child(2n) {
  background: var(--laravel-tint);
  color: #ff8a80;
  border-color: var(--laravel-line);
}

.featured-project__tag {
  margin-bottom: 14px;
  background: var(--laravel-tint);
  color: #ff8a80;
  border-color: var(--laravel-line);
}

.project-status {
  white-space: nowrap;
}

.project-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.featured-project__content .action-button {
  margin-top: 20px;
}

.action-button,
.action-link,
.detail-nav__button {
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 0.72rem 1.1rem;
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease,
    border-color 0.25s ease;
}

.action-button {
  background: var(--laravel);
  color: #fff;
  box-shadow: 0 10px 26px -10px rgba(255, 45, 32, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.action-button:hover {
  box-shadow: 0 14px 36px -8px rgba(255, 45, 32, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.action-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--glass);
  color: var(--text);
  border-color: var(--glass-border);
  box-shadow: var(--glass-highlight);
}

.action-link:hover {
  border-color: var(--flutter-line);
  color: var(--flutter);
}

.action-link--ghost {
  background: var(--flutter-tint);
  color: var(--flutter);
  border-color: var(--flutter-line);
}

/* ==========================================================================
   CTA
   ========================================================================== */

.cta-block {
  padding: 16px 0 84px;
}

.cta-box {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  background: var(--glass);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  border-radius: 28px;
  padding: 40px 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  box-shadow: var(--glass-highlight), var(--shadow);
}

.cta-box::before {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  right: -60px;
  top: -80px;
  border-radius: 50%;
  background: var(--flutter);
  filter: blur(90px);
  opacity: 0.35;
  pointer-events: none;
}

.cta-box::after {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  left: -50px;
  bottom: -90px;
  border-radius: 50%;
  background: var(--laravel);
  filter: blur(90px);
  opacity: 0.25;
  pointer-events: none;
}

.cta-box > * {
  position: relative;
  z-index: 1;
}

/* ==========================================================================
   À PROPOS / CONTACT
   ========================================================================== */

.about-layout,
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 48px;
  align-items: start;
}

.about-content {
  display: grid;
  gap: 18px;
  padding: 30px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  box-shadow: var(--glass-highlight), var(--shadow);
}

.about-summary {
  display: grid;
  align-content: start;
}

.about-content p,
.about-intro {
  margin: 0;
}

.about-brand-lockup {
  width: min(100%, 480px);
  margin-top: 26px;
}

.about-brand-lockup > img {
  width: 100%;
  aspect-ratio: 942 / 518;
  object-fit: cover;
  border: 1px solid var(--glass-border);
  border-radius: 18px;
  box-shadow: var(--glass-highlight), 0 22px 54px -26px rgba(84, 197, 248, 0.75);
}

.about-platforms {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}

.about-platforms img {
  flex: 0 0 100px;
  width: 100px;
  height: 100px;
  object-fit: contain;
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  background: rgba(12, 18, 27, 0.88);
  box-shadow: var(--glass-highlight), 0 12px 28px -18px rgba(84, 197, 248, 0.55);
}

.social-ads-section {
  position: relative;
}

.social-ads-heading p:not(.eyebrow) {
  max-width: 780px;
  margin: 18px 0 0;
  color: var(--text-soft);
  line-height: 1.7;
}

.social-ads-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.social-ads-card {
  --service-color: var(--flutter);
  position: relative;
  display: grid;
  align-content: start;
  gap: 18px;
  min-height: 260px;
  padding: 24px;
  overflow: hidden;
  background: rgba(15, 21, 31, 0.88);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow: var(--glass-highlight), 0 24px 50px -28px rgba(0, 0, 0, 0.8);
  transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1), border-color 0.25s ease,
    box-shadow 0.35s ease, background 0.25s ease;
}

.social-ads-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: var(--service-color);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.social-ads-card::after {
  content: "";
  position: absolute;
  width: 150px;
  height: 150px;
  right: -76px;
  top: -70px;
  border-radius: 50%;
  background: var(--service-color);
  filter: blur(70px);
  opacity: 0.2;
  pointer-events: none;
}

.social-ads-card:hover {
  transform: translateY(-8px);
  background: var(--glass-strong);
  border-color: color-mix(in srgb, var(--service-color) 52%, transparent);
  box-shadow: var(--glass-highlight), 0 34px 70px -26px rgba(0, 0, 0, 0.9),
    0 0 58px -24px color-mix(in srgb, var(--service-color) 72%, transparent);
}

.social-ads-card:hover::before {
  transform: scaleX(1);
}

.social-ads-card--facebook {
  --service-color: #1877f2;
}

.social-ads-card--instagram {
  --service-color: #e4405f;
}

.social-ads-card--google {
  --service-color: #4285f4;
}

.social-ads-card--tiktok {
  --service-color: #00f2ea;
}

.social-ads-card__icon {
  position: relative;
  z-index: 1;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  color: var(--service-color);
  background: color-mix(in srgb, var(--service-color) 16%, transparent);
  border: 1px solid color-mix(in srgb, var(--service-color) 42%, transparent);
  border-radius: 16px;
  box-shadow: var(--glass-highlight);
}

.social-ads-card__icon svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}

.social-ads-card h3 {
  position: relative;
  z-index: 1;
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: -0.03em;
}

.social-ads-card p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--text-soft);
  line-height: 1.7;
  font-size: 0.94rem;
}

.social-ads-process {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.social-ads-process span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.65rem 1rem;
  color: var(--text-soft);
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: var(--glass-highlight);
}

.social-ads-process span::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--laravel);
  animation: pulse 2s ease-out infinite;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  display: grid;
  gap: 12px;
}

.contact-list li {
  display: inline-flex;
  width: fit-content;
}

.contact-list li:first-child {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--text);
}

.contact-list a {
  padding: 0.6rem 1rem;
  border-radius: 999px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  font-weight: 600;
  transition: all 0.25s ease;
}

.contact-list a:hover {
  border-color: var(--flutter-line);
  color: var(--flutter);
  transform: translateX(4px);
}

.contact-layout {
  gap: 32px;
}

.contact-details {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.contact-details__identity {
  display: grid;
  gap: 3px;
  color: var(--text-soft);
  font-size: 0.9rem;
}

.contact-details__identity strong {
  color: var(--text);
  font-family: var(--font-display);
  font-size: 1.08rem;
}

.contact-details__links {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.contact-details__link {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  max-width: 100%;
  padding: 0.35rem 0.65rem;
  overflow-wrap: anywhere;
  border: 1px solid var(--glass-border);
  border-radius: 9px;
  background: var(--glass);
  color: var(--text-soft);
  font-size: 0.82rem;
  font-weight: 600;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.contact-details__link:hover {
  color: var(--flutter);
  border-color: var(--flutter-line);
  background: var(--flutter-tint);
}

.contact-details__service {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 5px 10px;
  max-width: 440px;
  padding: 11px 12px;
  border: 1px solid var(--glass-border);
  border-left: 2px solid var(--laravel);
  border-radius: 9px;
  background: var(--glass);
}

.contact-details__service-label {
  grid-column: 1 / -1;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  text-transform: uppercase;
}

.contact-details__service strong {
  font-size: 0.88rem;
}

.contact-list li:last-child a:hover {
  border-color: var(--laravel-line);
  color: #ff8a80;
}

.contact-form {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 26px;
  padding: 28px;
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  box-shadow: var(--glass-highlight), var(--shadow);
}

.contact-form label {
  display: grid;
  gap: 10px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 18px;
  color: var(--text);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  background: rgba(7, 10, 16, 0.45);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  padding: 0.95rem 1.05rem;
  resize: vertical;
  color: var(--text);
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

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

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--flutter);
  background: rgba(7, 10, 16, 0.65);
  box-shadow: 0 0 0 4px rgba(84, 197, 248, 0.16);
}

.contact-form .button {
  width: 100%;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.site-footer {
  border-top: 1px solid var(--glass-border);
  background: rgba(7, 10, 16, 0.5);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.footer-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 24px 0;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.78rem;
}

/* ==========================================================================
   MODAL
   ========================================================================== */

.modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 7, 12, 0.72);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.modal-dialog {
  position: relative;
  width: min(1100px, calc(100% - 32px));
  max-height: 92vh;
  overflow: auto;
  background: rgba(14, 20, 30, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 28px;
  -webkit-backdrop-filter: blur(30px) saturate(180%);
  backdrop-filter: blur(30px) saturate(180%);
  box-shadow: var(--glass-highlight), 0 40px 100px rgba(0, 0, 0, 0.7);
  transform: translateY(24px) scale(0.97);
  transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1);
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

.modal.is-visible .modal-dialog {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 5;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: var(--text);
  background: rgba(7, 10, 16, 0.6);
  border: 1px solid var(--glass-border);
  border-radius: 50%;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: all 0.25s ease;
}

.modal-close:hover {
  background: var(--laravel);
  border-color: var(--laravel);
  transform: rotate(90deg);
}

.project-detail {
  padding: 30px 28px 32px;
}

.project-hero {
  border-radius: 20px;
  aspect-ratio: 16 / 9;
  margin-bottom: 24px;
  border: 1px solid var(--glass-border);
}

.project-hero.scroll-preview {
  height: auto;
}

.project-hero.scroll-preview img {
  display: block;
}

.project-hero--mobile {
  display: grid;
  place-items: center;
  width: min(100%, 320px);
  height: auto;
  aspect-ratio: auto;
  margin-inline: auto;
  padding: 14px;
  background: rgba(7, 10, 16, 0.52);
}

.project-hero__phone-frame {
  display: block;
  width: min(100%, 260px);
  max-height: min(68vh, 560px);
  aspect-ratio: 9 / 19.5;
  overflow: hidden;
  border-radius: 18px;
  box-shadow: 0 24px 54px -28px rgba(0, 0, 0, 0.95), 0 0 0 1px rgba(255, 255, 255, 0.13);
}

.project-hero__phone-frame img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
}

.project-detail__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.project-detail__header h2 {
  margin: 4px 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  letter-spacing: -0.04em;
}

.project-detail__summary {
  font-size: 1.04rem;
}

.project-detail__actions {
  margin: 20px 0 32px;
}

.project-detail__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 20px;
}

.project-detail__grid section,
.meta-section {
  padding: 22px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 18px;
}

.project-detail__grid h3,
.gallery-section h3,
.meta-section h3 {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}

.project-detail__grid p {
  margin: 0;
}

.detail-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
}

.detail-list li {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  padding: 0.45rem 0.85rem;
  color: var(--text-soft);
  font-size: 0.82rem;
  font-weight: 600;
  transition: all 0.25s ease;
}

.detail-list li:hover {
  background: var(--flutter-tint);
  border-color: var(--flutter-line);
  color: var(--flutter);
}

.detail-list li:nth-child(2n):hover {
  background: var(--laravel-tint);
  border-color: var(--laravel-line);
  color: #ff8a80;
}

.detail-list--muted li {
  color: var(--muted);
}

.meta-section {
  margin-top: 20px;
}

.gallery-section {
  margin-top: 32px;
}

.modal-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.modal-gallery__item {
  margin: 0;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid var(--glass-border);
  background: var(--glass);
  cursor: zoom-in;
}

.modal-gallery__item img {
  aspect-ratio: 16 / 11;
}

.modal-gallery__item:hover img {
  transform: scale(1.06);
}

.modal-gallery__item.scroll-preview {
  aspect-ratio: 16 / 11;
}

.modal-gallery__item.scroll-preview img {
  aspect-ratio: auto;
}

.modal-gallery__item--mobile,
.modal-gallery__item--pos {
  display: grid;
  justify-self: center;
  place-items: center;
  padding: 8px;
}

.modal-gallery__item--mobile {
  width: min(100%, 180px);
  height: 320px;
}

.modal-gallery__item--pos {
  width: min(100%, 320px);
  height: 190px;
}

.modal-gallery__item--mobile img,
.modal-gallery__item--pos img {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: contain;
  border-radius: 12px;
}

.empty-state {
  margin: 0;
  color: var(--text-soft);
  background: var(--glass);
  padding: 18px 20px;
  border-radius: 16px;
  border: 1px dashed var(--glass-border);
}

.empty-state--small {
  padding: 12px 16px;
}

.detail-nav {
  justify-content: space-between;
  margin-top: 28px;
}

.detail-nav__button {
  background: var(--glass);
  color: var(--text);
  border-color: var(--glass-border);
  box-shadow: var(--glass-highlight);
}

.detail-nav__button:hover {
  border-color: var(--flutter-line);
  color: var(--flutter);
}

/* ==========================================================================
   RÉVÉLATION AU SCROLL (amélioration progressive, CSS pur)

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 1000px) {
  .featured-grid,
  .project-grid,
  .social-ads-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .hero-layout,
  .about-layout,
  .contact-layout,
  .featured-grid,
  .project-grid,
  .social-ads-grid,
  .project-detail__grid,
  .modal-gallery {
    grid-template-columns: 1fr;
  }

  .social-ads-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cta-box {
    flex-direction: column;
    align-items: flex-start;
    padding: 32px 24px;
  }

  .visual-panel {
    animation: none;
  }
}

@media (max-width: 640px) {
  #projects,
  #about,
  #social-ads,
  #contact {
    scroll-margin-top: 175px;
  }

  .site-header {
    top: 8px;
    border-radius: 18px;
  }

  .site-header .container {
    padding: 0 14px;
  }

  .nav-wrap {
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    padding: 14px 0;
  }

  .main-nav {
    width: 100%;
    justify-content: center;
  }

  .button,
  .button--small {
    width: 100%;
  }

  .hero {
    padding-top: 48px;
  }

  .hero h1 {
    font-size: clamp(1.85rem, 8vw, 2.2rem);
    overflow-wrap: anywhere;
  }

  .lead {
    font-size: 0.98rem;
    overflow-wrap: anywhere;
  }

  .eyebrow {
    padding: 0.4rem 0.7rem;
    font-size: 0.62rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .visual-panel {
    width: 100%;
  }

  .visual-body {
    padding: 20px 16px;
  }

  .mini-grid {
    gap: 10px;
  }

  .mini-box {
    min-height: 98px;
    padding: 12px;
  }

  .mini-box span {
    font-size: 0.62rem;
  }

  .mini-box strong {
    font-size: 0.9rem;
  }

  .section-heading h2,
  .about-section h2,
  .social-ads-heading h2,
  .contact-copy h2,
  .cta-box h2 {
    font-size: clamp(1.65rem, 7vw, 2rem);
    overflow-wrap: anywhere;
  }

  .social-ads-card {
    min-height: auto;
    padding: 22px 18px;
  }

  .social-ads-grid {
    grid-template-columns: 1fr;
  }

  .social-ads-process span {
    width: 100%;
  }

  .contact-toast {
    top: 12px;
    right: 12px;
    left: 12px;
    width: auto;
  }

  .modal-dialog {
    width: calc(100% - 18px);
    border-radius: 22px;
  }

  .project-detail {
    padding: 22px 16px 24px;
  }

  .project-hero--mobile {
    width: min(100%, 260px);
    padding: 10px;
  }

  .project-hero__phone-frame {
    width: min(100%, 220px);
    max-height: min(62vh, 480px);
  }

  .project-detail__header {
    flex-direction: column;
  }

  .detail-nav {
    flex-direction: column;
  }

  .detail-nav__button {
    width: 100%;
  }

  .footer-wrap {
    flex-direction: column;
    text-align: center;
  }
}

/* Repli si backdrop-filter n'est pas supporté */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-header,
  .project-card,
  .featured-project,
  .visual-panel,
  .cta-box,
  .contact-form,
  .about-content,
  .modal-dialog {
    background: rgba(18, 26, 38, 0.95);
  }
}

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