@font-face {
  font-family: 'Artonex';
  src: url('../fonts/Artonex.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
}

:root {
  --color-bg: #FFFBF5;
  --color-bg-alt: #FFFFFF;
  --color-primary: #F97316;
  --color-secondary: #F59E0B;
  --color-accent-warm: #FB7185;
  --color-peach: #FDBA74;
  --color-sky: #7DD3FC;
  --color-ice: #BAE6FD;
  --color-bg-frost: #EFF9FF;
  --color-text: #1C1410;
  --color-text-muted: #78716C;
  --color-text-sky: #0369A1;
  --color-border-warm: #E7D5B8;
  --color-border-cool: #BAE6FD;
  --shadow-warm: rgba(249, 115, 22, 0.12);
  --shadow-cool: rgba(125, 211, 252, 0.18);
  --gradient-primary: linear-gradient(135deg, #F97316 0%, #F59E0B 45%, #FB7185 75%, #7DD3FC 100%);
  --gradient-text: linear-gradient(90deg, #F97316 0%, #F59E0B 40%, #FB7185 70%, #7DD3FC 100%);
  --gradient-text-warm: linear-gradient(90deg, #F97316, #F59E0B, #FB7185);
  --gradient-warm: linear-gradient(160deg, #FFF7ED 0%, #FFF1E6 100%);
  --gradient-cool: linear-gradient(160deg, #EFF9FF 0%, #F0F9FF 100%);
  --font-display: 'Syne', sans-serif;
  --font-heading: 'Bricolage Grotesque', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'DM Mono', monospace;
  --font-artonex: 'Artonex', sans-serif;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-pill: 100px;
  --transition-default: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s ease;
  --z-background: -3;
  --z-nav: 100;

  /* Couleurs Optix */
  --color-optix-blue: #002BFF;
  --color-optix-purple: #AE00FF;
  --gradient-optix: linear-gradient(90deg, var(--color-optix-blue), var(--color-optix-purple));
}

.optix-brand {
  font-family: var(--font-artonex);
  background: var(--gradient-optix);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
  font-weight: normal;
}

/* Application du dégradé Optix aux icônes SVG dans la zone Optix */
.optix-section svg {
  stroke: url(#optix-gradient);
}

/* --- Scroll Reveal System --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1.2s cubic-bezier(0.25, 1, 0.5, 1),
              transform 1.2s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: opacity, transform;
}

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

.reveal-left {
  transform: translateX(-40px);
}

.reveal-right {
  transform: translateX(40px);
}

.reveal-scale {
  transform: scale(0.94);
}

.reveal.active.reveal-left,
.reveal.active.reveal-right {
  transform: translateX(0);
}

.reveal.active.reveal-scale {
  transform: scale(1);
}

/* Staggered delays for child components */
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  width: 100%;
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  position: relative;
  isolation: isolate;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background: url('../bg/bg.avif') center center / cover no-repeat;
}

body::after {
  content: none;
}

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

picture {
  display: block;
}

picture > img {
  display: block;
}

main {
  position: relative;
  isolation: isolate;
}

main > section {
  position: relative;
  z-index: 1;
}

main > section:not(.hero) {
  content-visibility: auto;
  contain-intrinsic-size: 1200px;
}

.hero {
  background: var(--color-bg);
  z-index: 2;
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: var(--z-nav);
  max-width: min(1280px, calc(100% - 2rem));
  margin: 1rem auto 0;
  padding: 0.8rem 1rem;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.glass-nav {
  background: rgba(255, 251, 245, 0.64);
  backdrop-filter: blur(4px) saturate(110%);
  -webkit-backdrop-filter: blur(4px) saturate(110%);
  border: 1px solid rgba(231, 213, 184, 0.55);
  box-shadow: 0 6px 16px rgba(28, 20, 16, 0.06);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.75);
  box-shadow: 0 8px 20px rgba(28, 20, 16, 0.12);
}

.brand-name {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-link {
  font-size: 0.93rem;
  color: var(--color-text-muted);
  transition: color var(--transition-default);
}

.nav-link:hover {
  color: var(--color-primary);
}

.dropdown {
  position: relative;
}

.dropdown-trigger {
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(249, 115, 22, 0.25);
  color: var(--color-text);
  border-radius: 999px;
  padding: 0.62rem 0.88rem;
  font-size: 0.85rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: transform var(--transition-default), box-shadow var(--transition-default);
}

.dropdown-trigger:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px var(--shadow-warm);
}

.dropdown-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 0.6rem);
  list-style: none;
  min-width: 230px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(186, 230, 253, 0.65);
  box-shadow: none;
  border-radius: 14px;
  padding: 0.45rem;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity var(--transition-default), transform var(--transition-default);
}

.dropdown.open .dropdown-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.dropdown-menu a {
  display: block;
  padding: 0.58rem 0.68rem;
  border-radius: 10px;
  font-size: 0.92rem;
  color: #3a2d25;
}

.dropdown-menu a:hover {
  background: rgba(249, 115, 22, 0.1);
  color: var(--color-primary);
}

.hero {
  position: relative;
  height: calc(100dvh - 5rem);
  min-height: calc(100dvh - 5rem);
  padding: 1rem 1rem 1.25rem;
  isolation: isolate;
  display: grid;
  place-items: center;
  background: transparent;
  overflow: hidden;
}

.hero-rivers {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
  pointer-events: none;
  padding: 2.5rem 0;
  opacity: 0;
  transform: scale(1.03);
  transition: opacity 0.85s ease, transform 0.9s ease;
  overflow: hidden; /* Empêche le débordement horizontal */
  contain: layout paint;
}

.river {
  /* Retrait de overflow: hidden pour ne pas couper l'ombre et l'inclinaison des cartes */
  padding: 1.5rem 0; 
  transform: rotate(-3deg);
  transform-origin: center;
  mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}

.river:nth-child(1) {
  margin-left: -4vw;
}

.river:nth-child(2) {
  margin-left: -1vw;
}

.river:nth-child(3) {
  margin-left: -6vw;
}

.river-track {
  display: flex;
  gap: 1rem;
  width: max-content;
  animation: riverMove var(--duration) linear infinite;
  animation-direction: var(--direction);
}

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

.river-card {
  width: clamp(140px, 14vw, 228px);
  aspect-ratio: 16/10;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(28, 20, 16, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.22);
  opacity: 0.62;
}

.river-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.river--depth-1 {
  opacity: 0.82;
}

.river--depth-2 {
  opacity: 0.7;
}

.glass-card {
  background: rgba(255, 251, 245, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: var(--radius-lg);
  box-shadow: none;
}

.hero-overlay {
  width: min(840px, 100%);
  padding: clamp(1rem, 2.5vw, 1.7rem);
  display: flex; /* Passage de grid à flex pour un meilleur alignement vertical interne */
  flex-direction: column;
  align-items: flex-start;
  gap: 0.8rem;
  position: relative;
  z-index: 3;
  opacity: 0;
  transform: translateY(10px) scale(0.94);
}

.hero .glass-card {
  background: rgba(255, 251, 245, 0.62);
  backdrop-filter: blur(6px) saturate(115%);
  -webkit-backdrop-filter: blur(6px) saturate(115%);
  box-shadow: 0 5px 14px rgba(28, 20, 16, 0.07);
}

.hero-actions {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  width: 100%;
  opacity: 0;
  transform: translateY(10px);
}

.portrait-wrap {
  width: clamp(120px, 16vw, 180px);
  aspect-ratio: 1;
  border-radius: 39% 61% 54% 46% / 43% 37% 63% 57%;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.82);
  box-shadow: 0 14px 28px rgba(28, 20, 16, 0.12);
  opacity: 0;
  transform: translateY(10px);
}

.hero-portrait {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.badge-warm,
.badge-cool {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
}

.badge-warm {
  background: rgba(249, 115, 22, 0.1);
  color: #EA580C;
  border: 1px solid rgba(249, 115, 22, 0.22);
  opacity: 0;
  transform: translateY(10px);
}

.badge-cool {
  background: rgba(125, 211, 252, 0.12);
  color: #0369A1;
  border: 1px solid rgba(125, 211, 252, 0.3);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 4.8rem);
  line-height: 1;
  letter-spacing: -0.03em;
  opacity: 0;
  transform: translateY(10px);
}

.text-gradient {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-intro {
  max-width: 58ch;
  font-size: clamp(0.95rem, 1.5vw, 1.04rem);
  line-height: 1.58;
  color: #3f3229;
  opacity: 0;
  transform: translateY(10px);
}

.hero-intro strong {
  color: #1f130e;
  font-weight: 700;
}

.btn-primary {
  background: linear-gradient(135deg, #F97316, #F59E0B);
  color: white;
  padding: 0.8rem 1.2rem;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  box-shadow: 0 4px 20px rgba(249, 115, 22, 0.38);
  transition: transform var(--transition-default), box-shadow var(--transition-default);
  cursor: pointer;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 0.58rem;
  opacity: 0;
  transform: translateY(10px);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(249, 115, 22, 0.5);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.28);
  color: #4a3c33;
  padding: 0.8rem 1.2rem;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid rgba(231, 213, 184, 0.6);
  transition: all var(--transition-default);
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.58rem;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.6);
  border-color: #E7D5B8;
  color: #1C1410;
  transform: translateY(-2px);
}

.network-card {
  background: linear-gradient(180deg, rgba(226, 240, 252, 0.92), rgba(199, 226, 248, 0.78));
  border: 1px solid rgba(10, 102, 194, 0.18);
}

.network-card h3,
.network-card h3 i {
  color: #0a66c2;
}

.network-card .btn-secondary {
  background: rgba(10, 102, 194, 0.16);
  color: #0a66c2;
  border-color: rgba(10, 102, 194, 0.28);
}

.network-card .btn-secondary:hover {
  background: rgba(10, 102, 194, 0.24);
  border-color: rgba(10, 102, 194, 0.42);
  color: #084d93;
}

.glass-card-cool {
  background: rgba(239, 249, 255, 0.34);
  border: 1px solid rgba(186, 230, 253, 0.6);
  border-radius: var(--radius-lg);
  box-shadow: none;
}

.optix-section {
  position: relative;
  padding: 5.6rem 1rem 7rem;
  overflow: hidden;
  background: transparent;
}

.optix-section::before {
  content: none;
}

.optix-section::after {
  content: none;
}

/* Animations de fond Optix (Particules et Triangles) */
.optix-bg-effects {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.optix-particle, .optix-triangle {
  position: absolute;
  opacity: 0;
  animation: optixFlyRight linear infinite;
}

.optix-particle {
  width: 4px;
  height: 4px;
  background: var(--color-sky, #7DD3FC);
  border-radius: 50%;
  box-shadow: none;
}

.optix-particle.small {
  width: 2px;
  height: 2px;
  box-shadow: none;
}

.optix-particle.dash {
  width: 45px;
  height: 2px;
  background: var(--color-optix-purple, #AE00FF);
  border-radius: 2px;
  box-shadow: none;
}

.optix-triangle {
  width: 0; 
  height: 0; 
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-left: 24px solid rgba(0, 43, 255, 0.45);
  filter: none;
}

@keyframes optixFlyRight {
  0% { transform: translateX(-150px); opacity: 0; }
  10% { opacity: 0.7; }
  90% { opacity: 0.7; }
  100% { transform: translateX(100vw); opacity: 0; }
}

/* Distribution et Timing (Spawn plus fréquent et désordonné) */
.optix-bg-effects > :nth-child(1)  { top: 5%;  animation-duration: 8s;  animation-delay: -1s; }
.optix-bg-effects > :nth-child(2)  { top: 15%; animation-duration: 12s; animation-delay: -5s; }
.optix-bg-effects > :nth-child(3)  { top: 25%; animation-duration: 6s;  animation-delay: -2s; }
.optix-bg-effects > :nth-child(4)  { top: 35%; animation-duration: 15s; animation-delay: -10s; }
.optix-bg-effects > :nth-child(5)  { top: 45%; animation-duration: 9s;  animation-delay: -4s; }
.optix-bg-effects > :nth-child(6)  { top: 55%; animation-duration: 11s; animation-delay: -7s; }
.optix-bg-effects > :nth-child(7)  { top: 65%; animation-duration: 7s;  animation-delay: -3s; }
.optix-bg-effects > :nth-child(8)  { top: 75%; animation-duration: 14s; animation-delay: -9s; }
.optix-bg-effects > :nth-child(9)  { top: 85%; animation-duration: 10s; animation-delay: -6s; }
.optix-bg-effects > :nth-child(10) { top: 95%; animation-duration: 13s; animation-delay: -11s; }
.optix-bg-effects > :nth-child(11) { top: 10%; animation-duration: 5s;  animation-delay: -1s; }
.optix-bg-effects > :nth-child(12) { top: 20%; animation-duration: 16s; animation-delay: -4s; }
.optix-bg-effects > :nth-child(13) { top: 30%; animation-duration: 9s;  animation-delay: -8s; }
.optix-bg-effects > :nth-child(14) { top: 40%; animation-duration: 12s; animation-delay: -2s; }
.optix-bg-effects > :nth-child(15) { top: 50%; animation-duration: 6s;  animation-delay: -10s; }
.optix-bg-effects > :nth-child(16) { top: 60%; animation-duration: 14s; animation-delay: -5s; }
.optix-bg-effects > :nth-child(17) { top: 70%; animation-duration: 8s;  animation-delay: -3s; }
.optix-bg-effects > :nth-child(18) { top: 80%; animation-duration: 11s; animation-delay: -1s; }
.optix-bg-effects > :nth-child(19) { top: 90%; animation-duration: 7s;  animation-delay: -6s; }
.optix-bg-effects > :nth-child(20) { top: 12%; animation-duration: 15s; animation-delay: -9s; }
.optix-bg-effects > :nth-child(21) { top: 38%; animation-duration: 5s;  animation-delay: -2s; }
.optix-bg-effects > :nth-child(22) { top: 88%; animation-duration: 12s; animation-delay: -4s; }

.optix-shell {
  position: relative;
  z-index: 1;
  width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 1.35rem;
}

.optix-header {
  padding: clamp(1.4rem, 2.4vw, 2rem);
  position: relative;
}

.optix-header-logo {
  position: absolute;
  bottom: 1.5rem;
  right: 1.5rem;
  width: clamp(60px, 8vw, 100px);
  height: auto;
  opacity: 0.9;
  filter: none;
}

.optix-title {
  margin-top: 0.86rem;
  font-family: var(--font-heading);
  font-size: clamp(1.7rem, 4.4vw, 3rem);
  line-height: 1.08;
  color: #1f130f;
}

.optix-intro {
  margin-top: 0.7rem;
  max-width: 72ch;
  color: #4a3c33;
  line-height: 1.74;
}

.optix-actions {
  margin-top: 1.8rem;
  display: flex;
  gap: 1rem;
}

.optix-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.75rem 1.6rem;
  background: linear-gradient(135deg, #002BFF, #AE00FF);
  color: #FFFFFF !important;
  text-decoration: none;
  font-weight: 600;
  border-radius: 50px;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
  box-shadow: 0 4px 15px rgba(174, 0, 255, 0.25);
}

.optix-btn-primary i {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2.2px;
}

.optix-btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 10px 25px rgba(174, 0, 255, 0.4);
  filter: brightness(1.1);
}

.optix-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: 1.1rem;
  align-items: start;
}

.optix-story {
  padding: clamp(1.2rem, 2.3vw, 1.95rem);
}

.optix-story h3 {
  font-family: var(--font-heading);
  font-size: clamp(1.2rem, 2.2vw, 1.7rem);
  line-height: 1.2;
}

.optix-pillars {
  margin-top: 1rem;
  display: grid;
  gap: 0.8rem;
}

.optix-pillar {
  padding: 0.88rem 0.9rem;
  border-radius: 14px;
  border: 1px solid rgba(249, 115, 22, 0.18);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.62), rgba(255, 241, 230, 0.5));
}

.optix-pillar h4 {
  font-family: var(--font-heading);
  font-size: 1rem;
  color: #261814;
}

.optix-pillar p {
  margin-top: 0.35rem;
  color: #56463c;
  line-height: 1.65;
  font-size: 0.96rem;
}

.optix-proof {
  padding: clamp(1rem, 2vw, 1.45rem);
  display: grid;
  gap: 0.88rem;
}

.optix-neon-card {
  border-radius: 16px;
  border: 1px solid rgba(128, 161, 255, 0.34);
  background: linear-gradient(160deg, rgba(12, 10, 28, 0.9), rgba(8, 8, 21, 0.94));
  box-shadow: 0 8px 18px rgba(9, 9, 20, 0.22);
}

.optix-main-shot {
  margin: 0;
  overflow: hidden;
}

.optix-main-shot img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
}

.optix-main-shot figcaption {
  padding: 0.7rem 0.82rem 0.86rem;
  color: rgba(232, 242, 255, 0.86);
  font-size: 0.84rem;
  line-height: 1.45;
}

.optix-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.66rem;
}

.optix-metric {
  padding: 0.85rem 0.8rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: transform 0.3s ease, background 0.3s ease;
}

.optix-metric:hover {
  transform: translateY(-4px);
  background: linear-gradient(160deg, rgba(20, 18, 50, 0.95), rgba(15, 15, 35, 0.98));
}

.optix-metric-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #7DD3FC; /* Bleu ciel plus vif pour le label */
}

.optix-metric-value {
  margin-top: 0.32rem;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  line-height: 1;
  font-weight: 700;
  color: #FFFFFF; /* Blanc pur pour un contraste maximal sur fond sombre */
  text-shadow: none;
}

.optix-metric-note {
  margin-top: 0.28rem;
  font-size: 0.8rem;
  color: #CBD5E1; /* Gris clair bleuté plus lisible */
}

.optix-ai-tools {
  padding: clamp(1.2rem, 2.3vw, 1.95rem);
  margin-top: 0.8rem;
}

.optix-ai-header {
  margin-bottom: 1.4rem;
}

.optix-ai-header h3 {
  font-family: var(--font-heading);
  font-size: clamp(1.2rem, 2.2vw, 1.7rem);
  line-height: 1.2;
}

.optix-ai-header p {
  color: var(--color-text-muted);
  max-width: 65ch;
  margin-top: 0.4rem;
  line-height: 1.6;
}

.optix-tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.8rem;
  list-style: none;
}

.optix-tool-item {
  padding: 1rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  transition: transform var(--transition-default), box-shadow var(--transition-default);
}

.optix-tool-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(9, 9, 20, 0.4), 0 0 0 1px rgba(111, 120, 255, 0.3) inset;
}

.optix-tool-icon {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(128, 161, 255, 0.2);
}

.optix-tool-icon img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.optix-tool-text h5 {
  font-family: var(--font-heading);
  color: #e8f2ff;
  font-size: 0.95rem;
  margin-bottom: 0.2rem;
}

.optix-tool-text p {
  color: rgba(216, 232, 255, 0.7);
  font-size: 0.78rem;
  line-height: 1.4;
}

/* --- Icones Lucide --- */
[data-lucide] {
  width: 1.25rem;
  height: 1.25rem;
  stroke-width: 2px;
  vertical-align: middle;
  margin-top: -2px;
  stroke: var(--color-primary); /* Remplace le dégradé Optix par la couleur primaire du thème */
}

.badge-cool [data-lucide],
.badge-warm [data-lucide] {
  width: 1rem;
  height: 1rem;
  margin-right: 0.25rem;
}

h3 [data-lucide],
h4 [data-lucide] {
  margin-right: 0.5rem;
  color: var(--color-primary);
}

.optix-metric-label [data-lucide] {
  width: 0.9rem;
  height: 0.9rem;
  margin-right: 0.35rem;
}

.optix-gallery {
  display: flex;
  flex-direction: column;
  gap: 4rem;
  margin-top: 2rem;
}

.optix-gallery-section {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.optix-section-header {
  max-width: 75ch;
  position: relative;
  padding-left: 1.5rem;
  border-left: 3px solid transparent;
  border-image: var(--gradient-optix) 1;
  background: linear-gradient(90deg, rgba(0, 43, 255, 0.03) 0%, transparent 100%);
  padding: 1.5rem 1.5rem 1.5rem 2rem;
  border-radius: 0 16px 16px 0;
  margin-bottom: 0.5rem;
}

.optix-section-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: -3px;
  width: 3px;
  height: 100%;
  background: var(--gradient-optix);
  box-shadow: none;
}

.optix-section-header h4 {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  color: #1a1512; /* Plus sombre pour ressortir */
  margin: 0.8rem 0 0.5rem;
  letter-spacing: -0.01em;
  font-weight: 700;
}

.optix-section-header p {
  color: #2d2621; /* Passage d'un gris muet à un brun/noir profond très lisible */
  line-height: 1.7;
  font-size: 1.1rem;
  font-weight: 400; /* Légèrement plus épais pour la lisibilité */
  margin: 0;
}

.optix-gallery-grid-large {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1.25rem;
  align-items: start;
}

.optix-gallery-grid-large .optix-tile:not(.optix-tile-featured) {
  height: auto;
  align-self: start;
}

.optix-gallery-grid-large .optix-tile:not(.optix-tile-featured) .optix-tile-img {
  height: auto;
  aspect-ratio: 16 / 10;
}

.optix-gallery-grid-mixed {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1.25rem;
}

.optix-gallery-col-stack {
  grid-column: span 4;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.optix-gallery-col-stack .optix-tile {
  grid-column: auto;
  flex: 1;
  height: auto;
  min-height: 200px;
}

.optix-tile {
  margin: 0;
  position: relative;
  overflow: hidden;
  grid-column: span 4;
  height: 380px;
  display: flex;
  flex-direction: column;
  border-radius: 12px;
}

.optix-tile-featured {
  grid-column: span 8;
  height: 380px;
}

.optix-span-2 {
  grid-column: span 8 !important;
}

.optix-tile-img {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.optix-tile-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.optix-tile-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem 1.8rem;
  background: rgba(10, 10, 20, 0.38);
  border-top: 1px solid rgba(140, 170, 255, 0.15);
  color: #e8f2ff;
  transform: translateY(0); /* always visible */
  opacity: 1;
  transition: all 0.4s ease;
  z-index: 10;
}

.optix-tile:hover .optix-tile-content {
  background: rgba(12, 12, 25, 0.55);
  padding-bottom: 2rem;
  border-top: 1px solid rgba(180, 200, 255, 0.35);
  box-shadow: none;
}

.optix-tile:hover .optix-tile-img img {
  transform: scale(1.08);
}

.optix-tile-content h5 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  margin: 0.5rem 0 0.4rem;
  color: #ffffff;
  text-shadow: none;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.optix-tile-content p {
  font-size: 0.95rem;
  color: rgba(232, 242, 255, 0.95);
  line-height: 1.55;
  margin: 0;
  text-shadow: none;
}

.optix-tile-content .badge-cool,
.optix-tile-content .badge-warm {
  font-size: 0.6rem;
  padding: 3px 8px;
  margin-bottom: 0.5rem;
}

.optix-footer {
  padding: 1.2rem 1.28rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.optix-footer p {
  max-width: 66ch;
  color: #4a3c33;
  line-height: 1.65;
}

.optix-footer .btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.48rem;
  white-space: nowrap;
}

.pytech-section {
  position: relative;
  padding: 5.6rem 1rem 7rem;
  overflow: hidden;
  background: transparent;
}

.pytech-section::before {
  content: none;
}

.pytech-section::after {
  content: none;
}

.pytech-shell {
  position: relative;
  z-index: 1;
  width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 1.35rem;
}

.pytech-header {
  padding: clamp(1.4rem, 2.4vw, 2rem);
}

.pytech-title {
  margin-top: 0.86rem;
  font-family: var(--font-heading);
  font-size: clamp(1.7rem, 4.4vw, 3rem);
  line-height: 1.08;
  color: #1f130f;
}

.pytech-intro {
  margin-top: 0.7rem;
  max-width: 72ch;
  color: #4a3c33;
  line-height: 1.74;
}

.pytech-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: 1.1rem;
  align-items: start;
  position: relative;
}

.pytech-story {
  padding: clamp(1.2rem, 2.3vw, 1.95rem);
  grid-column: 1;
  grid-row: 1 / span 3;
  z-index: 10; /* Toujours au-dessus du caroussel */
  height: 100%; /* S'assurer qu'elle couvre bien la gauche du caroussel */
}

.pytech-proof {
  padding: clamp(1.2rem, 2.3vw, 1.95rem);
  grid-column: 2;
  grid-row: 1;
  z-index: 5;
}

.pytech-header.glass-card,
.pytech-story.glass-card,
.pytech-proof.glass-card-cool {
  background: rgba(255, 251, 245, 0.54);
  backdrop-filter: blur(6px) saturate(112%);
  -webkit-backdrop-filter: blur(6px) saturate(112%);
  box-shadow: 0 6px 18px rgba(28, 20, 16, 0.07);
}

.pytech-gallery {
  grid-column: 1 / 3;
  grid-row: 2 / span 2;
  z-index: 1;
  width: 100vw;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  overflow: hidden;
  border-radius: 0; /* Plus d'arrondis si ça va jusqu'aux bords de l'écran */
  margin-top: 1rem;
}



.pytech-story h3 {
  font-family: var(--font-heading);
  font-size: clamp(1.15rem, 2.2vw, 1.65rem);
  color: #2a1a14;
}

.pytech-pillars {
  margin-top: 1rem;
  display: grid;
  gap: 0.8rem;
}

.pytech-pillar {
  padding: 0.88rem 0.9rem;
  border-radius: 14px;
  border: 1px solid rgba(245, 158, 11, 0.22);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.6), rgba(255, 247, 237, 0.52));
}

.pytech-pillar h4 {
  font-family: var(--font-heading);
  font-size: 1rem;
  color: #6a3a0e;
  display: inline-flex;
  align-items: center;
  gap: 0.48rem;
}

.pytech-pillar p {
  margin-top: 0.35rem;
  color: #4a3c33;
  line-height: 1.65;
  font-size: 0.96rem;
}

.pytech-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.66rem;
}

.pytech-card {
  border-radius: 16px;
  border: 1px solid rgba(245, 158, 11, 0.3);
  background: linear-gradient(160deg, rgba(255, 248, 236, 0.88), rgba(255, 243, 226, 0.94));
  box-shadow:
    0 10px 24px rgba(249, 115, 22, 0.12),
    0 0 0 1px rgba(245, 158, 11, 0.14) inset;
}

.pytech-metric {
  padding: 0.85rem 0.8rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: transform var(--transition-default), box-shadow var(--transition-default);
}

.pytech-metric:hover {
  transform: translateY(-3px);
  box-shadow:
    0 16px 30px rgba(249, 115, 22, 0.16),
    0 0 0 1px rgba(245, 158, 11, 0.22) inset;
}

.pytech-metric-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #a16207;
}

.pytech-metric-value {
  margin-top: 0.32rem;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  line-height: 1;
  color: #1f130f;
}

.pytech-metric-note {
  margin-top: 0.28rem;
  font-size: 0.8rem;
  color: #5e4c42;
}

/* on a déjà défini ça en haut */



.pytech-section-header h4 {
  margin-top: 0.42rem;
  font-family: var(--font-heading);
  font-size: clamp(1.28rem, 2.2vw, 1.85rem);
  color: #2a1a14;
  display: inline-flex;
  align-items: center;
  gap: 0.54rem;
}

.pytech-section-header p {
  margin-top: 0.42rem;
  color: #4a3c33;
}


.pytech-carousel {
  position: relative;
  width: 100%;
  min-width: 0;
  overflow: hidden;
  contain: layout paint;
  border-radius: 18px;
  padding: 0.2rem 0;
  mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}

.pytech-carousel-track {
  display: flex;
  width: max-content;
  animation: riverMove 40s linear infinite;
  will-change: transform;
}

.pytech-carousel-group {
  display: flex;
  align-items: stretch;
  gap: 1rem;
  flex: 0 0 auto;
  width: max-content;
  min-width: 0;
}

.pytech-slide {
  flex: 0 0 clamp(220px, 22vw, 330px);
  aspect-ratio: 4 / 3;
  border-radius: 16px;
  overflow: hidden;
  margin-right: 1rem; /* Remplace le gap de flex pour un calcul -50% parfait */
  position: relative;
}

.pytech-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(255, 255, 255, 0.4); /* Grise légèrement en blanc */
  mix-blend-mode: lighten;
  pointer-events: none; /* Ne bloque pas le clic si on veut rajouter du hover un jour */
}

.pytech-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pytech-tile {
  position: relative;
  min-height: 0;
  overflow: hidden;
}

.pytech-tile-img {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.pytech-tile-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.pytech-tile:hover .pytech-tile-img img {
  transform: scale(1.08);
}

.pytech-tile-content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1rem 1.12rem;
  background: rgba(28, 20, 16, 0.64);
  color: #fef3e2;
  border-top: 1px solid rgba(255, 219, 170, 0.24);
}

.pytech-tile-content h5 {
  font-family: var(--font-heading);
  font-size: 1.08rem;
}

.pytech-tile-content p {
  margin-top: 0.25rem;
  font-size: 0.88rem;
  color: rgba(254, 243, 226, 0.92);
}

.pytech-footer {
  padding: 1.2rem 1.28rem;
}

.pytech-footer p {
  max-width: 66ch;
  color: #4a3c33;
  line-height: 1.65;
}

.school-teaser-section {
  position: relative;
  padding: 4.2rem 1rem 5rem;
}

.school-teaser-shell {
  position: relative;
  z-index: 1;
  width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 1rem;
}

.school-teaser-header {
  padding: clamp(1rem, 2vw, 1.4rem);
}

.school-teaser-title {
  margin-top: 0.45rem;
  font-family: var(--font-heading);
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  color: #1f130f;
}

.school-teaser-intro {
  margin-top: 0.45rem;
  max-width: 68ch;
  color: #4a3c33;
  line-height: 1.62;
}

.school-teaser-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.school-teaser-card {
  padding: 0.7rem;
  display: grid;
  gap: 0.72rem;
  border-radius: 18px;
}

.school-teaser-figure {
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
}

.school-teaser-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.school-teaser-content {
  padding: 0 0.14rem 0.14rem;
}

.school-teaser-content h3 {
  margin-top: 0.45rem;
  font-family: var(--font-heading);
  font-size: 1.02rem;
  color: #2a1a14;
  line-height: 1.3;
}

.school-teaser-content p {
  margin-top: 0.35rem;
  color: #4a3c33;
  font-size: 0.92rem;
  line-height: 1.54;
}

.school-teaser-link {
  margin-top: 0.72rem;
  padding: 0.62rem 0.95rem;
  font-size: 0.83rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.reshade-section {
  position: relative;
  padding: 3rem 1rem 4rem;
}

.reshade-shell {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1rem;
}

.reshade-header {
  grid-column: span 12;
  padding: clamp(1rem, 1.5vw, 1.5rem);
}

.reshade-title {
  margin-top: 0.55rem;
  font-family: var(--font-heading);
  font-size: clamp(1.45rem, 2.8vw, 2.25rem);
  line-height: 1.12;
  color: #1f130f;
}

.reshade-intro {
  margin-top: 0.55rem;
  max-width: 72ch;
  color: #4a3c33;
  line-height: 1.65;
}

.reshade-top-montage {
  grid-column: span 12;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 0.8rem;
  align-items: stretch;
}

.reshade-montage-main {
  padding: 0.45rem;
  border-radius: 14px;
}

.reshade-montage-side {
  padding: 0.4rem;
  border-radius: 14px;
}

.reshade-montage-main img,
.reshade-montage-side img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 14px;
}

.reshade-montage-main img {
  aspect-ratio: 16 / 9;
}

.reshade-montage-side img {
  aspect-ratio: 4 / 3;
}

.reshade-block {
  padding: 1rem;
}

.reshade-block:nth-of-type(1) { grid-column: span 4; }
.reshade-block:nth-of-type(2) { grid-column: span 4; }
.reshade-block:nth-of-type(3) { grid-column: span 4; }

.reshade-block-header h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: #2a1a14;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.reshade-block-header p {
  margin-top: 0.34rem;
  color: #4a3c33;
  line-height: 1.45;
  font-size: 0.9rem;
}

.reshade-setup-grid,
.reshade-explain-grid {
  margin-top: 0.8rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.7rem;
}

.reshade-tile {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(245, 158, 11, 0.24);
  background: rgba(255, 255, 255, 0.65);
}

.reshade-tile img {
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

/* --- Lightbox & Zoom System --- */
.reshade-tile.zoomable {
  position: relative;
  cursor: pointer;
}

.zoom-trigger {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 10px;
  color: white;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: none;
  z-index: 10;
}

.reshade-tile.zoomable:hover .zoom-trigger {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  pointer-events: auto;
}

.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 8, 7, 0.88);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  padding: 2rem;
}

.lightbox-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-content {
  position: relative;
  width: min(1200px, 100%);
  transform: scale(0.95);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.lightbox-overlay.active .lightbox-content {
  transform: scale(1);
}

.lightbox-content img {
  width: 100%;
  height: auto;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 14px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
  position: absolute;
  top: -1.2rem;
  right: -1.2rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-primary);
  color: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}

.lightbox-close:hover {
  transform: scale(1.1) rotate(90deg);
}

.reshade-compare-body {
  margin-top: 0.8rem;
}

.reshade-compare-cta {
  padding: 8px 16px;
  font-size: 0.85rem;
  margin-top: 0.6rem;
  width: 100%;
  text-align: center;
}

@media (max-width: 1024px) {
  .reshade-block:nth-of-type(n) { grid-column: span 6; }
  .reshade-top-montage { grid-template-columns: 1fr 1fr; }
  .reshade-montage-main { grid-column: span 2; }
}

@media (max-width: 640px) {
  .reshade-block:nth-of-type(n) { grid-column: span 12; }
  .reshade-top-montage { grid-template-columns: 1fr; }
  .reshade-montage-main { grid-column: span 1; }
}

.compare-slider {
  --position: 50%;
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(245, 158, 11, 0.24);
  aspect-ratio: 4 / 3;
}

.compare-before,
.compare-after {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.compare-after-wrap {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  overflow: hidden;
  clip-path: inset(0 0 0 var(--position)); /* Decoupe dynamique de l'image 'apres' */
}

.compare-range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: ew-resize;
  z-index: 10;
}

.compare-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--position);
  width: 2px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: none;
  transform: translateX(-1px);
  pointer-events: none;
  z-index: 5;
}

.compare-handle::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(249, 115, 22, 0.35);
  box-shadow: 0 8px 18px rgba(28, 20, 16, 0.22);
}

/* Boutons du comparateur */
.reshade-compare-full-trigger {
  padding: 4px 10px;
  font-size: 0.75rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #a3a3a3;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  width: fit-content;
  margin-left: auto; /* Aligné à droite par défaut si dans un flex */
}

.reshade-compare-full-trigger:hover {
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

.reshade-compare-full-trigger i {
  width: 14px;
  height: 14px;
}

.btn-details-large {
  display: block;
  width: 100%;
  padding: 12px;
  background: var(--amber-500);
  color: rgb(0, 0, 0);
  text-align: center;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease;
  margin-top: 12px;
}

.btn-details-large:hover {
  background: var(--amber-600);
  transform: translateY(-2px);
}

/* Modal de Comparaison Pleine Écran */
.compare-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 10, 10, 0.95);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  padding: 40px;
}

.compare-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.compare-modal-content {
  width: 95%;
  max-width: 1600px;
  height: 85vh;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  background: #111;
}

.compare-modal-close {
  position: absolute;
  top: 30px;
  right: 30px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: white;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 1001;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.compare-modal-close:hover {
  background: #F97316;
  transform: rotate(90deg);
}

.compare-modal .compare-slider {
  width: 100%;
  height: 100%;
  border-radius: 0;
}

.handle-label {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  padding: 4px 8px;
  background: rgba(0, 0, 0, 0.5);
  color: white;
  font-size: 0.65rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 4px;
  pointer-events: none;
  white-space: nowrap;
  opacity: 0.8;
}

.handle-label.avant {
  right: 20px;
}

.handle-label.apres {
  left: 20px;
}

.reshade-compare-cta {
  width: fit-content;
  padding: 0.66rem 1rem;
  font-size: 0.84rem;
}

.reshade-compare-page {
  width: min(1180px, calc(100% - 1.6rem));
  margin: 1.2rem auto 2.4rem;
  display: grid;
  gap: 1rem;
}

.reshade-compare-hero {
  padding: clamp(1rem, 2vw, 1.4rem);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.reshade-compare-title {
  margin-top: 0.46rem;
  font-family: var(--font-heading);
  font-size: clamp(1.38rem, 2.4vw, 2rem);
  color: #1f130f;
}

.reshade-compare-intro {
  margin-top: 0.45rem;
  color: #4a3c33;
  max-width: 72ch;
}

.reshade-compare-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.reshade-compare-card {
  padding: 0.9rem;
  display: grid;
  gap: 0.55rem;
}

.reshade-compare-card h3 {
  font-family: var(--font-heading);
  color: #2a1a14;
}

body.is-ready .hero-rivers {
  opacity: 1;
  transform: scale(1);
}

body.is-ready .hero-overlay {
  animation: reveal 0.72s 0.22s forwards;
}

body.is-ready .portrait-wrap {
  animation: reveal 0.62s 0.56s forwards;
}

body.is-ready .badge-warm {
  animation: reveal 0.62s 0.74s forwards;
}

body.is-ready .hero-title {
  animation: reveal 0.66s 0.86s forwards;
}

body.is-ready .hero-intro {
  animation: reveal 0.66s 0.6s forwards;
}

body.is-ready .hero-actions,
body.is-ready .cta-button,
body.is-ready .btn-secondary-hero {
  animation: reveal 0.66s 0.7s forwards;
}

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

@media (max-width: 1024px) {
  .site-nav {
    margin-top: 0.7rem;
  }

  .hero {
    height: calc(100dvh - 4.6rem);
    min-height: calc(100dvh - 4.6rem);
  }

  .hero-rivers {
    gap: 0.8rem;
  }

  .river-card {
    width: clamp(128px, 23vw, 188px);
  }

  .hero-overlay {
    justify-items: center;
    text-align: center;
  }

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

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

  .pytech-story {
    grid-column: 1;
    grid-row: 1;
  }

  .pytech-proof {
    grid-column: 1;
    grid-row: 2;
  }

  .pytech-gallery {
    grid-column: 1;
    grid-row: 3;
    margin-top: 1rem;
    width: 100vw;
    left: 50%;
    transform: translateX(-50%);
  }

  .optix-title {
    max-width: 24ch;
  }

  .pytech-title {
    max-width: 24ch;
  }

  .optix-gallery-grid-large,
  .optix-gallery-grid-mixed {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pytech-slide {
    flex-basis: clamp(200px, 34vw, 300px);
  }

  .pytech-carousel {
    width: 100%;
    max-width: 100%;
  }

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

  .reshade-top-montage,
  .reshade-setup-grid,
  .reshade-explain-grid,
  .reshade-compare-grid {
    grid-template-columns: 1fr;
  }

  .optix-tile,
  .optix-tile-featured,
  .optix-span-2,
  .optix-gallery-col-stack {
    grid-column: span 1 !important;
  }
}

@media (max-width: 640px) {
  .site-nav {
    max-width: calc(100% - 1rem);
    padding: 0.65rem 0.75rem;
    gap: 0.65rem;
  }

  .brand-name {
    font-size: 0.88rem;
  }

  .nav-link {
    display: none;
  }

  .dropdown-trigger {
    font-size: 0.74rem;
    padding: 0.54rem 0.65rem;
  }

  .hero {
    padding-top: 0.95rem;
    padding-bottom: 1.2rem;
    height: calc(100dvh - 4rem);
    min-height: calc(100dvh - 4rem);
  }

  .hero-rivers {
    gap: 0.55rem;
    padding: 2.8rem 0;
  }

  .hero-overlay {
    padding: 1.2rem;
    border-radius: 16px;
  }

  .hero-intro {
    line-height: 1.62;
  }

  .optix-section {
    padding: 4.4rem 0.76rem 5.2rem;
  }

  .pytech-section {
    padding: 4.4rem 0.76rem 5.2rem;
  }

  .school-teaser-section {
    padding: 3.6rem 0.76rem 4.2rem;
  }

  .reshade-section {
    padding: 3.6rem 0.76rem 4.2rem;
  }

  .optix-header,
  .optix-story,
  .optix-proof,
  .optix-footer {
    padding: 1rem;
  }

  .pytech-header,
  .pytech-story,
  .pytech-proof,
  .pytech-footer {
    padding: 1rem;
  }

  .optix-metrics {
    grid-template-columns: 1fr;
  }

  .pytech-metrics {
    grid-template-columns: 1fr;
  }



  .pytech-slide {
    flex-basis: min(82vw, 330px);
  }

  .school-teaser-grid {
    grid-template-columns: 1fr;
  }

  .reshade-compare-cta {
    width: 100%;
    justify-content: center;
  }

  .optix-gallery-grid-large,
  .optix-gallery-grid-mixed {
    grid-template-columns: 1fr !important;
  }

  .optix-gallery-col-stack {
    grid-column: span 1 !important;
  }

  .optix-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .optix-footer .btn-primary {
    width: 100%;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto !important;
  }

  .hero-portrait,
  .hero-overlay,
  .portrait-wrap,
  .badge-warm,
  .hero-title,
  .hero-intro,
  .cta-button,
  .optix-tile,
  .pytech-tile {
    animation: none !important;
    transition-duration: 0.01ms !important;
  }

  /* Ensure content stays visible when reveal animations are disabled */
  .hero-overlay,
  .portrait-wrap,
  .badge-warm,
  .hero-title,
  .hero-intro,
  .cta-button {
    opacity: 1 !important;
    transform: none !important;
  }

  /* Keep the project rivers moving even in reduced motion mode */
  .river-track {
    animation-name: riverMove !important;
    animation-duration: 48s !important;
    animation-timing-function: linear !important;
    animation-iteration-count: infinite !important;
    animation-play-state: running !important;
  }
}

/* --- Section Benchmarks (Version Compacte) --- */
.benchmarks-section {
  padding: 60px 0;
  position: relative;
}

.benchmarks-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: auto;
  gap: 15px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Hero Preview Benchmarks */
.bench-hero-preview {
  grid-column: span 12;
  height: 250px;
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 20px;
}

.bench-hero-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.bench-hero-preview:hover img {
  transform: scale(1.03);
}

.preview-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 30px;
  background: linear-gradient(transparent, rgba(0,0,0,0.8));
  color: white;
}

.preview-overlay p {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  margin-top: 8px;
  opacity: 0.8;
}

.bench-card {
  position: relative;
  padding: 20px;
  display: flex;
  flex-direction: column;
}

.bench-intro { grid-column: span 12; margin-bottom: 10px; }
.bench-score-main {
  grid-column: span 5;
  animation: none;
  border-color: rgba(220, 38, 38, 0.3); /* Bordure rouge subtile par défaut */
}

.bench-tech-stack { grid-column: span 7; }

.bench-rankings-box {
  grid-column: span 12;
  margin-top: 15px;
}

.rankings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 15px;
}

.ranking-card {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
  cursor: pointer;
}

.ranking-card:hover {
  border-color: var(--color-primary);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(249, 115, 22, 0.1);
}

.ranking-img-wrap {
  height: 150px;
  overflow: hidden;
  position: relative;
}

.ranking-img-wrap::after {
  content: "🔍";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  font-size: 1.5rem;
  opacity: 0;
  transition: all 0.2s ease;
  z-index: 2;
  filter: none;
}

.ranking-card:hover .ranking-img-wrap::after {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.ranking-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease, filter 0.3s ease;
}

.ranking-card:hover .ranking-img-wrap img {
  transform: scale(1.05);
  filter: brightness(0.6);
}

.ranking-info {
  padding: 12px;
}

.ranking-title {
  display: block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-text);
  margin-bottom: 2px;
}

.ranking-category {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--color-primary);
  text-transform: uppercase;
}

@media (max-width: 1024px) {
  .bench-score-main, .bench-tech-stack { grid-column: span 12; }
}

@media (max-width: 640px) {
  .bench-img-tile { grid-column: span 12; }
}

.score-badge {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
  margin: 10px 0;
  color: var(--color-primary);
  text-shadow: none;
}

.score-label {
  font-family: var(--font-mono);
  font-size: var(--font-label);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
}

.config-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.config-item:last-child { border-bottom: none; }
.config-name { font-weight: 600; color: var(--color-text); }
.config-specs { font-family: var(--font-mono); font-size: 0.8rem; color: var(--color-primary); }

/* Style spécifique pour la preview dans la méthodologie */
.methodology-preview {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.methodology-preview img {
  width: 100%;
  display: block;
}

.methodology-preview:hover {
  transform: scale(1.02);
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.bench-img-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.bench-img-tile:hover img {
  transform: scale(1.05);
}

/* --- Global Zoomable Indicator --- */
.zoomable {
  cursor: pointer !important;
  position: relative;
}

.zoomable::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(249, 115, 22, 0.1);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 5;
}

.zoomable:hover::after {
  opacity: 1;
}

/* --- Section Various Projects (Bento Hub) --- */
.misc-section {
  padding: 80px 0;
  position: relative;
}

.misc-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.misc-header {
  text-align: center;
  margin-bottom: 40px;
}

.misc-bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
  gap: 20px;
}

.misc-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  text-decoration: none;
  color: inherit;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.misc-card:hover {
  transform: translateY(-8px) scale(1.02);
  z-index: 10;
}

.misc-card-img {
  width: 100%;
  height: 55%;
  position: relative;
  overflow: hidden;
}

.misc-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.misc-card:hover .misc-card-img img {
  transform: scale(1.1);
}

.misc-large { grid-column: span 2; grid-row: span 2; }
.misc-tall { grid-column: span 1; grid-row: span 2; }
.misc-compact { grid-column: span 1; grid-row: span 2; }

.misc-card-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
  background: rgba(255, 255, 255, 0.02);
}

.misc-card-content h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.misc-card-content p {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  line-height: 1.5;
  margin-bottom: 15px;
}

.misc-card-footer {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.explore-link {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  gap: 5px;
}

.misc-card:hover .explore-link {
  text-decoration: underline;
}

@media (max-width: 1024px) {
  .misc-bento-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: auto;
  }
  .misc-large, .misc-tall, .misc-compact { grid-column: span 1; grid-row: span 1; height: 400px; }
}

@media (max-width: 640px) {
  .misc-bento-grid { grid-template-columns: 1fr; }
  .misc-large, .misc-tall, .misc-compact { height: auto; min-height: 350px; }
}

/* --- Section Py Tech PC --- */
.pytech-section {
  padding: 100px 0;
  background: transparent;
}

.pytech-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin: 40px auto;
  max-width: 1280px;
  padding: 0 20px;
}

.stat-card {
  padding: 30px;
  text-align: center;
}

.stat-value {
  display: block;
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: var(--color-text-sky);
  margin-bottom: 5px;
}

.pytech-carousel-wrap {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  display: flex;
  gap: 20px;
  padding: 40px 20px;
  scrollbar-width: none;
}

.pytech-carousel-wrap::-webkit-scrollbar { display: none; }

.carousel-item {
  flex: 0 0 clamp(280px, 35vw, 450px);
  scroll-snap-align: start;
  height: 300px;
  border-radius: 20px;
  overflow: hidden;
  cursor: zoom-in;
}

.carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.carousel-item:hover img { transform: scale(1.05); }


/* --- Section Various Projects (Bento Hub) --- */
.misc-section {
  padding: 80px 0;
}

.misc-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.misc-header {
  text-align: center;
  padding: 30px;
  margin-bottom: 30px;
}

.misc-bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 240px;
  gap: 20px;
}

.misc-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  padding: 0;
  cursor: pointer;
}

.misc-card:hover {
  transform: translateY(-4px);
}

.misc-card-img {
  width: 100%;
  height: 50%;
  position: relative;
  overflow: hidden;
}

.misc-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

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

.misc-large {
  grid-column: span 2;
  grid-row: span 2;
}

.misc-tall {
  grid-column: span 1;
  grid-row: span 2;
}

.misc-compact {
  grid-column: span 1;
  grid-row: span 2;
}

/* Layout adaptations based on design */
.misc-large .misc-card-img { height: 60%; }
.misc-tall .misc-card-img { height: 40%; }
.misc-compact .misc-card-img { height: 40%; }

.misc-card-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.misc-card-content h3 {
  margin: 10px 0 5px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.misc-card-content p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  flex-grow: 1;
}

@media (max-width: 900px) {
  .misc-bento-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .misc-large { grid-column: span 2; }
  .misc-tall { grid-column: span 1; }
  .misc-compact { grid-column: span 1; }
}

@media (max-width: 600px) {
  .misc-bento-grid {
    grid-template-columns: 1fr;
  }
  .misc-large, .misc-tall, .misc-compact { grid-column: span 1; }
}


/* --- SITE FOOTER --- */
.site-footer {
  margin-top: 5rem;
  padding: 4rem 1rem 3rem;
  background: linear-gradient(180deg, transparent, rgba(231, 213, 184, 0.1));
  border-top: 1px solid var(--color-border-warm);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
}

.footer-brand h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.footer-brand p {
  color: var(--color-text-muted);
  max-width: 320px;
  font-size: 0.95rem;
  line-height: 1.6;
}

.footer-links h3 {
  font-family: var(--font-heading);
  font-size: 1rem;
  margin-bottom: 1.2rem;
  color: var(--color-text);
}

.footer-links ul {
  list-style: none;
  display: grid;
  gap: 0.8rem;
}

.footer-links a {
  text-decoration: none;
  color: var(--color-text-muted);
  font-size: 0.9rem;
  transition: var(--transition-default);
  display: inline-flex;
  align-items: center;
}

.footer-links a:hover {
  color: var(--color-primary);
  transform: translateX(4px);
}

.footer-bottom {
  max-width: 1200px;
  margin: 4rem auto 0;
  padding-top: 2rem;
  border-top: 1px solid rgba(231, 213, 184, 0.3);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--color-text-muted);
  font-size: 0.85rem;
}

.footer-socials {
  display: flex;
  gap: 1.5rem;
}

.footer-socials a {
  color: var(--color-text-muted);
  transition: var(--transition-default);
}

.footer-socials a:hover {
  color: var(--color-primary);
  transform: translateY(-2px);
}

/* --- Global Mobile Compression (Ultra-Compact) --- */
@media (max-width: 768px) {
  /* Metrics Scaling */
  :root {
    --radius-md: 8px;
    --radius-lg: 14px;
    --radius-xl: 18px;
  }
  
  html, body {
    font-size: 14px; /* Global scale down */
  }

  p, li, div, span, a, label, figcaption {
    line-height: 1.35 !important;
  }

  h1, h2, h3, h4, h5, h6 {
    letter-spacing: -0.02em !important;
    line-height: 1.15 !important;
    margin-bottom: 0.25rem !important;
  }

  /* Universal Layout Compression */
  main > section {
    padding: 2.5rem 1rem !important;
  }

  .glass-card, .optix-pillar, .glass-card-cool {
    padding: 1rem !important;
    border-radius: 12px !important;
  }

  /* Grid & Gap Reductions */
  .optix-layout, .projets-grid, .project-full-display, .cv-section, .footer-content, .bricobox-grid, .sys-metrics, .reshade-layout, .school-teaser-grid, .benchmarks-grid {
    grid-template-columns: 1fr !important;
    gap: 1.25rem !important;
  }

  /* Navbar */
  .site-nav {
    margin: 0.5rem 0.5rem 0;
    padding: 0.4rem 0.6rem;
    border-radius: 12px;
  }
  .brand-name { display: none; }
  .brand-avatar { width: 32px; height: 32px; }
  .nav-link { font-size: 0.85rem; }
  .dropdown-trigger { padding: 0.45rem 0.6rem; font-size: 0.75rem; }

  /* Hero Restructuring */
  .hero {
    height: auto;
    min-height: 85dvh;
    padding: 1rem 0.5rem !important;
  }
  .hero-overlay {
    padding: 1rem 0;
    width: 100%;
    align-items: center;
    text-align: center;
  }
  .portrait-wrap {
    width: 120px;
    margin: 0 auto;
  }
  .hero-title {
    font-size: clamp(2.4rem, 10vw, 3.2rem) !important;
  }
  .hero-intro {
    font-size: 0.95rem;
    margin: 0 auto;
  }
  .hero-actions {
    flex-direction: column;
    width: 100%;
    gap: 0.6rem;
  }
  .btn-primary, .btn-secondary {
    width: 100%;
    justify-content: center;
    padding: 0.7rem 1rem;
    font-size: 0.9rem;
  }

  /* Carousel Density */
  .river-card {
    width: clamp(120px, 30vw, 160px);
    border-radius: 10px;
  }
  .river { padding: 0.5rem 0; }

  /* Modals and Sliders */
  .compare-slider {
    height: 35vh !important;
  }
  .handle-label {
    font-size: 0.6rem !important;
    padding: 3px 6px !important;
  }

  /* CV & Profil */
  .cv-iframe {
    min-height: 55vh !important;
  }
  .qr-code-wrap {
    width: 120px;
    height: 120px;
    padding: 6px;
    margin: 1rem auto;
  }

  /* Footer & Intro Compression */
  .pytech-footer {
    padding: 0.5rem 0.8rem !important;
  }
  .hero-intro, .optix-intro, .school-teaser-intro, .reshade-intro, .bench-intro {
    font-size: 0.88rem !important;
    margin-top: 0.4rem !important;
    line-height: 1.4 !important;
  }

  /* --- School Teaser & Bento Compression --- */
  .school-teaser-header, .misc-header {
    padding: 0.5rem !important;
  }
  .misc-card {
    padding: 0 !important;
    gap: 0 !important;
    height: auto !important;
    min-height: auto !important;
  }
  .misc-bento-grid {
    grid-template-columns: 1fr !important;
    gap: 0.8rem !important;
  }
  .misc-large, .misc-tall, .misc-compact {
    grid-column: span 1 !important;
    grid-row: auto !important;
  }
  .misc-card-img {
    height: 140px !important;
    width: 100% !important;
  }
  .misc-card-content {
    padding: 0.6rem 0.8rem !important;
    gap: 0.2rem !important;
  }
  .misc-card-content h3 {
    font-size: 0.95rem !important;
    margin: 0 !important;
  }
  .misc-card-content p {
    font-size: 0.82rem !important;
    margin: 0 0 0.4rem 0 !important;
  }
  .tech-tags {
    gap: 0.3rem !important;
  }
  .school-teaser-content h3 {
    font-size: 0.95rem !important;
    margin-top: 0.2rem !important;
  }
  .school-teaser-content p {
    font-size: 0.85rem !important;
    margin-top: 0.15rem !important;
  }
  .school-teaser-link {
    margin-top: 0.4rem !important;
    padding: 0.4rem 0.6rem !important;
    font-size: 0.75rem !important;
  }

  /* --- Compact Images & Figures --- */
  .pytech-slide {
    flex: 0 0 140px !important;
    aspect-ratio: 1 / 1 !important;
  }

  .school-teaser-figure, .optix-main-shot img {
    aspect-ratio: 16 / 7 !important;
  }

  .optix-tile, .optix-tile-featured {
    height: 180px !important; /* Compression radicale de la hauteur */
    min-height: auto !important;
  }

  .optix-gallery-grid-large .optix-tile-img, 
  .optix-tile-img, 
  .reshade-tile img {
    aspect-ratio: 16 / 6 !important;
    height: auto !important;
  }

  .reshade-top-montage {
    grid-template-columns: 1fr !important;
    gap: 0.5rem !important;
  }

  .reshade-montage-main img, 
  .reshade-montage-side img {
    aspect-ratio: 16 / 5 !important;
  }

  .river-card {
    width: 100px !important;
  }
  
  .compare-slider {
    aspect-ratio: 16 / 9 !important;
    height: auto !important;
  }

  /* Footer Adjustment */
  .footer-bottom {
    flex-direction: column;
    gap: 1.5rem;
  }
  .footer-links {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  /* Extreme tight fit for small phones */
  main > section {
    padding: 1.5rem 0.5rem !important;
  }
  .hero-title {
    font-size: 2rem !important;
  }
  .cv-iframe {
    min-height: 40vh !important;
  }
  p { font-size: 0.88rem !important; }
  
  .pytech-slide {
    flex: 0 0 110px !important;
  }
  
  .optix-tile, .optix-tile-featured {
    height: 140px !important;
  }
  
  .school-teaser-figure, .optix-main-shot img, .reshade-montage-main img, .reshade-montage-side img, .optix-tile-img, .reshade-tile img {
    aspect-ratio: 16 / 5 !important;
  }
}
