/* ─── RESET & BASE ─── */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Dark (default) */
  --black: #0a0a0a;
  --dark: #111111;
  --dark2: #1a1a1a;
  --dark3: #222222;

  /* Accent (dark = orange) */
  --orange: #e8600a;
  --orange2: #ff7920;
  --color-tag: rgba(232, 96, 10, 0.45);
  --hover-color: rgba(232, 96, 10, 0.12);
  --hover-color-deriv: rgba(232, 96, 10, 0.05);

  /* Text */
  --white: #f0f0f0;
  --grey: #999999;
  --grey2: #555555;

  /* UI helpers */
  --font: 'Segoe UI', system-ui, sans-serif;
  --header-bg: rgba(40, 40, 40, 0.92);
  --header-bg-scrolled: rgba(10, 10, 10, 0.98);
  --shadow-accent: rgba(232, 96, 10, 0.35);

  /* Wave colors */
  --wave-1: rgba(0, 0, 0, 0.70);
  --wave-2: rgba(0, 0, 0, 0.50);
  --wave-3: rgba(0, 0, 0, 0.30);
  --wave-4: var(--dark);
}

/* Light theme overrides */
:root[data-theme="light"] {
  /* White + soft violet */
  --black: #f7f6fb;
  /* page background */
  --dark: #ffffff;
  /* section-dark becomes white */
  --dark2: #f1effa;
  /* cards */
  --dark3: #eae7f8;
  /* inner surfaces */

  /* Accent becomes violet */
  --orange: #6d28d9;
  /* violet */
  --orange2: #8b5cf6;
  /* violet lighter */
  --color-tag: rgba(162, 10, 232, 0.45);
  --hover-color: rgba(158, 10, 232, 0.12);
  --hover-color: rgba(158, 10, 232, 0.05);

  /* Text */
  --white: #14131a;
  /* main text (dark) */
  --grey: #4b4a57;
  /* muted */
  --grey2: #7b7990;
  /* lighter muted */

  /* Header */
  --header-bg: rgba(156, 123, 123, 0.78);
  --header-bg-scrolled: rgba(205, 205, 205, 0.92);
  --shadow-accent: rgba(109, 40, 217, 0.26);

  /* Waves become violet-tinted (soft) */
  --wave-1: rgba(109, 40, 217, 0.18);
  --wave-2: rgba(109, 40, 217, 0.12);
  --wave-3: rgba(109, 40, 217, 0.08);
  --wave-4: rgba(109, 40, 217, 0.18);
}

i {
  color: var(--orange);
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--black);
  color: var(--white);
  font-family: var(--font);
  overflow-x: hidden;
  line-height: 1.6;
}

/* ─── THEME SMOOTH TRANSITION ─── */
body,
header,
.section-base,
.section-dark,
footer,
.flagship,
.proj-card,
.expertise-cat,
.social-link,
.btn-cta,
.btn-outline,
.stack-tag,
.hero-bg,
.apropos-img-placeholder,
.flagship-visual-inner {
  transition:
    background-color 420ms ease,
    color 420ms ease,
    border-color 420ms ease,
    box-shadow 420ms ease,
    filter 420ms ease;
}

header {
  background: var(--header-bg);
}

header.scrolled {
  background: var(--header-bg-scrolled);
}

/* Light theme readability tweaks */
:root[data-theme="light"] .btn-outline.secondary {
  border-color: rgba(20, 19, 26, 0.14);
  color: var(--white);
}

:root[data-theme="light"] .stack-tag {
  background: rgba(20, 19, 26, 0.04);
  border-color: rgba(20, 19, 26, 0.08);
}

/* ─── Floating Theme Toggle ─── */
.theme-toggle {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 54px;
  height: 54px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(20, 20, 20, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: grid;
  place-items: center;
  z-index: 2000;
  cursor: pointer;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.35);
  transition: transform 220ms ease, background-color 420ms ease, border-color 420ms ease;
}

.theme-toggle:hover {
  transform: translateY(-2px);
  border-color: var(--color-tag);
}

.theme-toggle i {
  color: var(--orange);
  font-size: 18px;
  transition: transform 260ms ease, opacity 260ms ease;
}

/* Light theme button surface */
:root[data-theme="light"] .theme-toggle {
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(20, 19, 26, 0.12);
  box-shadow: 0 14px 36px rgba(20, 19, 26, 0.14);
}

::selection {
  background: var(--orange);
  color: #fff;
}

::-webkit-scrollbar {
  width: 4px;
}

::-webkit-scrollbar-track {
  background: var(--black);
}

::-webkit-scrollbar-thumb {
  background: var(--orange);
  border-radius: 2px;
}

/* ─── HEADER ─── */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  padding: 0 60px;
  height: 70px;
  /*background: rgba(40, 40, 40, 0.92);*/
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  /*transition: background 0.4s ease;*/
}

header.scrolled {
  /*background: rgba(10, 10, 10, 0.98);*/
  border-bottom-color: rgba(255, 154, 92, 0.15);
}

.nav-left,
.nav-right {
  display: flex;
  gap: 40px;
  list-style: none;
}

.nav-left a,
.nav-right a {
  color: var(--grey);
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color 0.3s;
  position: relative;
}

.nav-left a::after,
.nav-right a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--orange);
  transition: width 0.3s;
}

.nav-left a:hover,
.nav-right a:hover {
  color: var(--white);
}

.nav-left a:hover::after,
.nav-right a:hover::after {
  width: 100%;
}

header a.active {
  color: var(--orange) !important;
}

.logo {
  color: var(--white);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 70px;
  /* respecte la hauteur du header */
}

/* Dark visible par défaut */
.logo-dark {
  opacity: 1;
  transform: translateY(0);
}

.logo-light {
  opacity: 0;
  transform: translateY(4px);
}

/* Quand light theme actif */
:root[data-theme="light"] .logo-dark {
  opacity: 0;
  transform: translateY(-4px);
}

:root[data-theme="light"] .logo-light {
  opacity: 1;
  transform: translateY(0);
}

/* Si jamais tu gardes une version texte ailleurs */
.logo span {
  color: var(--orange);
}

/* Version image du logo */
.logo-img img {
  display: block;
  height: 90%;
  /* visible mais pas trop (dans un header 70px) */
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 6px 18px rgba(232, 96, 10, 0.25));
  /* glow subtil */
  transition: transform 0.25s ease, filter 0.25s ease;
}

.header-logo img {
  position: absolute;
  inset: 0;
  margin: auto;

  display: block;
  transition: opacity 420ms ease, transform 420ms ease;
}

/* Hover subtil */
.logo-img:hover img {
  transform: translateY(-1px) scale(1.02);
  filter: drop-shadow(0 10px 26px var(--color-tag));
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.3s;
}

/* Mobile nav */
.nav-mobile {
  display: none;
  position: fixed;
  inset: 70px 0 0;
  background-color: var(--dark3);
  backdrop-filter: blur(18px);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
  list-style: none;
}

.nav-mobile.open {
  display: flex;
}

.nav-mobile a {
  color: var(--white);
  text-decoration: none;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.05em;
}

/* ─── HERO ─── */
#accueil {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 0 60px;
  padding-top: 70px;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 60% at 70% 50%, rgba(232, 96, 10, 0.06) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 20% 80%, rgba(232, 96, 10, 0.04) 0%, transparent 60%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  position: relative;
  z-index: 1;
}

.hero-content {
  opacity: 0;
  animation: fadeSlideUp 0.9s ease 0.2s forwards;
}

.hero-tag {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--orange);
  border: 1px solid var(--orange);
  padding: 5px 14px;
  border-radius: 2px;
  margin-bottom: 28px;
}

.hero-word {
  font-size: clamp(30px, 7vw, 60px);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 24px;
  min-height: 1.1em;
}

.hero-word .cursor {
  display: inline-block;
  width: 4px;
  height: 0.8em;
  background: var(--orange);
  margin-left: 4px;
  vertical-align: middle;
  animation: blink 0.7s step-end infinite;
}

@keyframes blink {

  0%,
  100% {
    opacity: 1
  }

  50% {
    opacity: 0
  }
}

.hero-tagline {
  font-size: 14px;
  color: var(--orange);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 20px;
  font-weight: 500;
}

.hero-desc {
  font-size: 16px;
  color: var(--grey);
  max-width: 420px;
  line-height: 1.8;
  margin-bottom: 40px;
}

.btn-cta {
  display: inline-block;
  background: var(--orange);
  color: #fff;
  text-decoration: none;
  padding: 14px 36px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 3px;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.btn-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.1);
  transform: translateX(-100%);
  transition: transform 0.3s;
}

.btn-cta:hover {
  background: var(--orange2);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px var(--color-tag);
}

.btn-cta:hover::before {
  transform: translateX(0);
}

.hero-photo-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  opacity: 0;
  animation: fadeSlideRight 1s ease 0.4s forwards;
}

.hero-photo-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(transparent 20%, var(--black) 80%);
  z-index: 2;
}

.hero-photo-wrap::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 45%;
  background: linear-gradient(to top, var(--black), transparent);
  z-index: 3;
}

.hero-photo {
  width: 100%;
  max-width: 480px;
  height: 560px;
  object-fit: cover;
  object-position: top center;
  filter: grayscale(100%) contrast(1.05);
  display: block;
  position: relative;
  z-index: 1;
  mask-image: radial-gradient(ellipse 90% 100% at 50% 40%, black 50%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 90% 100% at 50% 40%, black 50%, transparent 100%);
}

.hero-photo-placeholder {
  width: 100%;
  max-width: 480px;
  height: 560px;
  background: linear-gradient(160deg, var(--dark2), var(--dark3));
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  border-radius: 4px;
  overflow: hidden;
  mask-image: radial-gradient(ellipse 90% 100% at 50% 40%, black 50%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 90% 100% at 50% 40%, black 50%, transparent 100%);
}

.hero-photo-placeholder svg {
  width: 180px;
  height: 180px;
  opacity: 0.2;
}

/* ─── WAVES ─── */
.wave {
  line-height: 0;
}

.wave svg {
  display: block;
  width: 100%;
}

.wave-1 {
  background: var(--black);
  margin-top: -2px;
}

.wave-2 {
  background: var(--dark);
}

.wave-3 {
  background: var(--black);
}

.wave-4 {
  background: var(--dark);
}

.wave-5 {
  background: var(--black);
}

/* ─── SECTIONS COMMON ─── */
.section-base {
  padding: 100px 60px;
  max-width: 100%;
}

.section-dark {
  background: var(--dark);
  max-width: 100%;
  padding: 100px 60px;
}

.section-label {
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-label::before {
  content: '';
  display: inline-block;
  width: 30px;
  height: 1px;
  background: var(--orange);
}

.section-title {
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 60px;
}

/* ─── A PROPOS ─── */
.apropos-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 420px 80px 1fr;
  gap: 60px;
  align-items: center;
}

.apropos-image-stack {
  position: relative;
  height: 520px;
  padding-left: 26px;
}

.img-rail {
  position: absolute;
  left: 8px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--color-tag);
  border-radius: 2px;
  z-index: 50;
  pointer-events: none;
}

.apropos-image-frame {
  height: 100%;
  position: relative;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 4px;
  overflow: hidden;
}

.apropos-img {
  width: 100%;
  max-width: 480px;
  height: 560px;
  object-fit: cover;
  object-position: top center;
  display: block;
  position: relative;
  z-index: 99;
  /* mask-image: radial-gradient(ellipse 90% 100% at 50% 40%, black 50%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 90% 100% at 50% 40%, black 50%, transparent 100%); */
}

/* HTML tag decorations */
.tag-deco {
  position: absolute;
  font-family: 'Courier New', monospace;
  font-size: 12px;
  color: var(--color-tag);
  letter-spacing: 0.05em;
  z-index: 10;
}

.tag-deco.tl {
  top: -22px;
  left: 26px;
}

.tag-deco.bl {
  bottom: -22px;
  left: 26px;
}

.apropos-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  position: absolute;
  inset: 0;
  transition: opacity 1.2s ease;
}

.apropos-img-placeholder {
  width: 100%;
  height: 100%;
  /* background: linear-gradient(160deg, var(--dark2), var(--dark3)); */
  display: flex;
  align-items: center;
  justify-content: center;
}

.apropos-img-placeholder svg {
  width: 100px;
  height: 100px;
  opacity: 0.15;
}

.code-deco {
  font-family: 'Courier New', monospace;
  font-weight: bold;
  font-size: 3rem;
  color: var(--color-tag);
  letter-spacing: 0.1em;
}

.apropos-text {
  padding-top: 10px;
}

.apropos-text .section-title {
  margin-bottom: 40px;
}

.apropos-para {
  margin-bottom: 28px;
}

.apropos-para h4 {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 10px;
  font-weight: 600;
}

.apropos-para p {
  font-size: 15px;
  color: var(--grey);
  line-height: 1.85;
}

/* ─── PROJETS ─── */
.projets-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.flagship {
  background: var(--dark2);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 0;
  margin-bottom: 60px;
  transition: box-shadow 0.4s;
  position: relative;
}

/* .flagship::before {
  content: 'FLAGSHIP';
  position: absolute;
  top: 20px; right: 20px;
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--orange);
  border: 1px solid rgba(232,96,10,0.3);
  padding: 3px 10px;
  border-radius: 2px;
  z-index: 5;
} */

.flagship:hover {
  box-shadow: 0 0 60px var(--hover-color), 0 0 120px var(--hover-color-deriv);
}

.flagship-visual {
  background: var(--dark3);
  min-height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.flagship-visual-inner {
  width: 85%;
  height: 85%;
  background: var(--dark);
  border-radius: 6px;
  border: 1px solid rgba(232, 96, 10, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Courier New', monospace;
  font-size: 13px;
  color: rgba(232, 96, 10, 0.4);
  text-align: center;
  padding: 20px;
  line-height: 2;
}

.flagship-visual-img {
  height: 100%;
  width: 100%;
  object-fit: cover;
}

.mockup-sub {
  font-size: 10px;
  opacity: 0.6;
}

.flagship-info {
  padding: 50px 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.flagship-info .proj-type {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 16px;
}

.flagship-info h3 {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 18px;
  letter-spacing: -0.02em;
}

.flagship-info p {
  font-size: 14px;
  color: var(--grey);
  line-height: 1.8;
  margin-bottom: 28px;
}

.stack-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 36px;
}

.stack-tag {
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--grey);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 4px 12px;
  border-radius: 2px;
}

.proj-btns {
  display: flex;
  gap: 14px;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  text-decoration: none;
  padding: 11px 24px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 3px;
  transition: all 0.3s;
}

.btn-outline.primary {
  background: var(--orange);
  color: #fff;
}

.btn-outline.primary:hover {
  background: var(--orange2);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--hover-color);
}

.btn-outline.secondary {
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--white);
}

.btn-outline.secondary:hover {
  border-color: var(--orange);
  color: var(--orange);
}

/* Project grid */
.projets-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.proj-card {
  background: var(--dark2);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  padding: 32px;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.proj-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s;
}

.proj-card:hover {
  border-color: var(--color-tag);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.proj-card:hover::before {
  transform: scaleX(1);
}

.proj-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}

.proj-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 0;
}

.proj-card-link {
  color: var(--grey2);
  text-decoration: none;
  font-size: 18px;
  transition: color 0.3s;
}

.proj-card-link:hover {
  color: var(--orange);
}

.proj-card p {
  font-size: 13px;
  color: var(--grey);
  line-height: 1.75;
  margin-bottom: 20px;
}

/* ─── EXPERIENCE ─── */
.experience-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.timeline {
  position: relative;
  padding-left: 32px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: linear-gradient(to bottom, var(--orange), transparent);
}

.timeline-item {
  position: relative;
  padding-bottom: 52px;
  padding-left: 36px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -5px;
  top: 8px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 12px rgba(232, 96, 10, 0.6);
}

.timeline-date {
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 8px;
}

.timeline-item h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 4px;
}

.timeline-company {
  font-size: 13px;
  color: var(--grey);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.timeline-company span {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--grey2);
  display: inline-block;
}

.timeline-item p {
  font-size: 14px;
  color: var(--grey);
  line-height: 1.8;
  max-width: 620px;
}

.exp-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.exp-col-title {
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--grey2);
  margin-bottom: 18px;
}

.title-right {
  text-align: right;
}

/* COLONNE DROITE : version miroir */
.timeline--mirror {
  padding-left: 0;
  padding-right: 32px;
}

.timeline--mirror::before {
  left: auto;
  right: 0;
}

/* Chaque item à droite : padding inversé + point inversé */
.timeline--mirror .timeline-item {
  padding-left: 0;
  padding-right: 36px;
  text-align: right;
}

.timeline--mirror .timeline-item::before {
  left: auto;
  right: -5px;
}

/* La ligne "company" en miroir (puce au milieu) */
.timeline--mirror .timeline-company {
  justify-content: flex-end;
}

/* ─── EXPERTISE ─── */
.expertise-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.expertise-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.expertise-cat {
  background: var(--dark2);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  padding: 32px 24px;
  transition: all 0.3s;
}

.expertise-cat:hover {
  border-color: var(--color-tag);
  transform: translateY(-4px);
}

.expertise-cat-icon {
  width: 40px;
  height: 40px;
  background: rgba(232, 96, 10, 0.1);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 18px;
}

.expertise-cat h4 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 18px;
  letter-spacing: 0.02em;
}

.skill-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.skill-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--grey);
}

.skill-item::before {
  content: '';
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--orange);
  flex-shrink: 0;
}

/* ─── CONTACT ─── */
.contact-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.contact-left h2 {
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.contact-left h2 span {
  color: var(--orange);
}

.contact-left p {
  font-size: 15px;
  color: var(--grey);
  line-height: 1.8;
  margin-bottom: 36px;
}

.contact-email {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--white);
  font-size: 16px;
  font-weight: 600;
  border-bottom: 1px solid rgba(232, 96, 10, 0.3);
  padding-bottom: 6px;
  transition: all 0.3s;
}

.contact-email:hover {
  color: var(--orange);
  border-bottom-color: var(--orange);
}

.contact-right {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 20px;
  text-decoration: none;
  padding: 22px 28px;
  background: var(--dark2);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  transition: all 0.3s;
  color: var(--white);
}

.social-link:hover {
  border-color: var(--orange);
  transform: translateX(8px);
  background: rgba(232, 96, 10, 0.06);
}

.social-link-icon {
  width: 44px;
  height: 44px;
  background: rgba(232, 96, 10, 0.1);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.social-link-icon.gh {
  font-size: 16px;
  font-family: monospace;
}

.social-link-icon.mail {
  font-size: 16px;
}

.social-link-text h4 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 2px;
}

.social-link-text p {
  font-size: 12px;
  color: var(--grey);
}

.social-link-arrow {
  margin-left: auto;
  color: var(--grey2);
  transition: color 0.3s;
  font-size: 18px;
}

.social-link:hover .social-link-arrow {
  color: var(--orange);
}

/* ─── FOOTER ─── */
footer {
  background: var(--black);
  border-top: 1px solid rgba(255,255,255,0.04);
  padding: 32px 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}


footer p { 
  font-size: 12px; 
  color: var(--grey2); 
  margin: 0;
}

.footer-logo {
  height: auto;
  /* footer n'a pas besoin de 70px */
}

.footer-logo img {
  height: 50px;
  /* footer compact */
  filter: drop-shadow(0 6px 14px rgba(232, 96, 10, 0.18));
}

.footer-tag { 
  font-size: 11px; 
  color: var(--grey2);
}

/* ─── SCROLL ANIMATIONS ─── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* ─── KEYFRAMES ─── */
@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeSlideRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
  header {
    padding: 0 30px;
  }

  #accueil {
    padding: 70px 30px 60px;
  }

  .section-base,
  .section-dark {
    padding: 80px 30px;
  }

  footer {
    padding: 28px 30px;
  }

  .hero-grid {
    gap: 40px;
  }

  .apropos-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .code-deco {
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    font-size: 1rem;
  }

  .apropos-image-stack {
    height: 360px;
    width: 100%;
  }

  .flagship {
    grid-template-columns: 1fr;
  }

  .flagship-visual {
    min-height: 260px;
  }

  .expertise-grid {
    grid-template-columns: 1fr 1fr;
  }

  .contact-inner {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .exp-split {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .title-right {
    text-align: left;
  }

  /* En mobile, on enlève le miroir (plus lisible) */
  .timeline--mirror {
    padding-right: 0;
    padding-left: 32px;
  }

  .timeline--mirror::before {
    right: auto;
    left: 0;
  }

  .timeline--mirror .timeline-item {
    text-align: left;
    padding-right: 0;
    padding-left: 36px;
  }

  .timeline--mirror .timeline-item::before {
    right: auto;
    left: -5px;
  }

  .timeline--mirror .timeline-company {
    justify-content: flex-start;
  }
}

@media (max-width: 768px) {

  header {
    position: sticky;
    /* IMPORTANT pour centrer le logo en absolute */
    justify-content: space-between;
    /* au lieu de space-evenly */
    padding: 0 16px;
    /* plus tight */
  }

  .nav-left,
  .nav-right {
    display: none;
  }

  .hamburger {
    display: flex;
    margin-left: auto;
  }

  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-photo-wrap {
    display: none;
  }

  .section-base,
  .section-dark {
    padding: 70px 16px;
    /* tu as 80px 30px en tablet, ici c’est plus clean mobile */
  }


  .projets-grid {
    grid-template-columns: 1fr;
  }

  .expertise-grid {
    grid-template-columns: 1fr;
  }

  /* Flagship: boutons en colonne */
  .proj-btns {
    flex-direction: column;
    gap: 12px;
  }

  .proj-btns .btn-outline {
    width: 100%;
    justify-content: center;
    text-align: center;
    padding: 13px 18px;
  }

  .flagship-info {
    padding: 22px 18px;
    /* mobile friendly */
  }

  .flagship-info h3 {
    font-size: 26px;
    /* un peu plus petit sur mobile */
  }

  .flagship-info p {
    font-size: 13.5px;
    margin-bottom: 18px;
  }

  .stack-list {
    margin-bottom: 18px;
    /* moins d'espace avant boutons */
  }

  .flagship-visual {
    min-height: auto;
    padding: 14px;
  }

  .flagship-visual-inner {
    width: 100%;
    height: auto;
    padding: 0;
  }

  .flagship-visual-img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    /* rendu constant */
    object-fit: cover;
    border-radius: 6px;
    display: block;
  }

    footer{
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px 16px;
    gap: 10px;
  }

  .footer-logo img{
    height: 26px; /* plus compact sur téléphone */
  }

}

/* @media (max-width: 560px){
  footer{
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px 16px;
    gap: 10px;
  }

  .footer-logo img{
    height: 26px; 
  }
} */