/* Root theme */
:root {
  --bg: #f7fafc;
  --surface: #ffffff;
  --text: #0f172a;
  --muted: #475569;
  --border: #e2e8f0;
  --accent: #08b6d4;
  --accent-2: #22c55e;
  --shadow: 0 10px 30px rgba(2, 6, 23, 0.08);
  --radius: 14px;
  --container: 1120px;
}

/* Base reset */
* { box-sizing: border-box; }
html, body { height: 100%; }
html { scroll-padding-top: 76px; }
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Helvetica Neue, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--text);
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Animated pattern only on selected sections */
.section.section-animated {
  position: relative;
  overflow: hidden;
}

.section.section-animated::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(180deg, var(--section-tint-from, rgba(238, 250, 255, 0.65)) 0%, var(--section-tint-to, rgba(230, 255, 242, 0.65)) 100%),
    url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAIAAACRXR/mAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAIGNIUk0AAHolAACAgwAA+f8AAIDpAAB1MAAA6mAAADqYAAAXb5JfxUYAAABnSURBVHja7M5RDYAwDEXRDgmvEocnlrQS2SwUFST9uEfBGWs9c97nbGtDcquqiKhOImLs/UpuzVzWEi1atGjRokWLFi1atGjRokWLFi1atGjRokWLFi1af7Ukz8xWp8z8AAAA//8DAJ4LoEAAlL1nAAAAAElFTkSuQmCC");
  background-repeat: no-repeat, repeat;
  background-size: 100% 100%, 50px 50px;
  background-position: 0 0, 0 0;
  animation: section-bg-scrolling 6s linear infinite;
  opacity: 0.8;
}

.section.section-animated > .container {
  position: relative;
  z-index: 1;
}

@keyframes section-bg-scrolling {
  100% { background-position: 0 0, 50px 50px; }
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 20px; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.75);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--border);
}
/* Ensure header isn't affected by reveal transform/opacity */
.site-header[data-animate] { opacity: 1; transform: none; }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { font-weight: 800; letter-spacing: 1px; color: var(--text); display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 10px; background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: white; }

.nav { position: relative; }
.nav-toggle { display: none; background: transparent; border: none; padding: 8px; cursor: pointer; }
.nav-toggle-bar { display: block; width: 24px; height: 2px; background: var(--text); margin: 5px 0; transition: transform .3s cubic-bezier(.22,.61,.36,1), opacity .3s cubic-bezier(.22,.61,.36,1); }
.nav-list { display: flex; gap: 20px; list-style: none; padding: 0; margin: 0; }
.nav-list a { padding: 10px 12px; border-radius: 10px; color: var(--muted); transition: color .25s cubic-bezier(.22,.61,.36,1), background .25s cubic-bezier(.22,.61,.36,1); }
.nav-list a:hover { color: var(--text); background: #eef2f7; }

/* Sections */
.section { padding: 88px 0; }
.section { scroll-margin-top: 76px; }
.section.alt { background: var(--surface); box-shadow: inset 0 1px 0 var(--border), inset 0 -1px 0 var(--border); }


.section h2 { font-size: 32px; margin: 0 0 20px; }
.subtitle, .eyebrow { color: var(--muted); }
.eyebrow { text-transform: uppercase; font-size: 13px; letter-spacing: .18em; }
.accent { color: var(--accent); }

/* Hero */
.hero { padding-top: 40px; }
.hero-grid { display: grid; grid-template-columns: 1.2fr 1fr; align-items: center; gap: 40px; }
.hero-copy h1 { font-size: 42px; line-height: 1.1; margin: 8px 0 10px; }
.hero-copy .subtitle { font-size: 18px; }
.hero-actions { display: flex; gap: 12px; margin-top: 18px; }
.project-demo-top { margin-top: 0; margin-bottom: 24px; flex-wrap: wrap; }

/* Démo Flutter web embarquée (pages projet) */
.flutter-demo-card h2 {
  margin-bottom: 8px;
}

.flutter-demo-lead {
  color: var(--muted);
  margin: 0 0 18px;
  max-width: 68ch;
}

.flutter-demo-wrap {
  position: relative;
  width: min(100%, 390px);
  margin: 0 auto;
  aspect-ratio: 9 / 19;
  max-height: min(78vh, 760px);
  border-radius: 28px;
  overflow: hidden;
  border: 2px solid var(--border);
  box-shadow:
    0 28px 56px rgba(2, 6, 23, 0.22),
    inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  background: #0f172a;
}

.flutter-demo-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: #0f172a;
}

.flutter-demo-actions {
  margin-top: 16px;
  justify-content: center;
}

.page-project .flutter-demo-lead {
  color: var(--proj-muted);
}

.page-project .flutter-demo-wrap {
  border-color: var(--proj-border);
  box-shadow:
    0 28px 56px rgba(0, 0, 0, 0.32),
    0 0 48px var(--proj-glow, transparent);
}

.section-lead {
  max-width: 640px;
  margin: -8px 0 28px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.6;
}

.project-status-badge {
  display: inline-block;
  margin-bottom: 12px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.35);
  color: #166534;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.current-project {
  padding: 28px;
  overflow: hidden;
}

.current-project-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 32px;
  align-items: center;
}

.current-project-copy h3 {
  margin: 0 0 12px;
  font-size: 1.6rem;
}

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

.mockup-frame {
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #0f172a;
  box-shadow: var(--shadow);
}

.mockup-frame img {
  display: block;
  width: 100%;
  height: auto;
}

.mockup-frame-featured {
  background: #0a0a0f;
  border-color: rgba(225, 29, 72, 0.25);
  box-shadow: 0 24px 48px rgba(2, 6, 23, 0.18);
}

.mockup-frame-featured img {
  width: 100%;
  height: auto;
}

.mockup-frame figcaption {
  padding: 10px 12px;
  font-size: 13px;
  color: var(--muted);
  background: var(--surface);
  border-top: 1px solid var(--border);
}

/* CueMind DJ — thème section */
.section-cuemind,
.page-cuemind #project-detail {
  --cuemind-bg: #0a0a10;
  --cuemind-surface: #12121c;
  --cuemind-surface-2: #181824;
  --cuemind-text: #f1f5f9;
  --cuemind-muted: #94a3b8;
  --cuemind-pink: #e91e63;
  --cuemind-pink-soft: #ff4081;
  --cuemind-pink-dim: rgba(233, 30, 99, 0.14);
  --cuemind-border: rgba(233, 30, 99, 0.28);
  --cuemind-glow: rgba(233, 30, 99, 0.22);
}

.section-cuemind {
  background: var(--cuemind-bg);
  color: var(--cuemind-text);
  box-shadow: none;
}

.section-cuemind.section-animated::before {
  background-image:
    radial-gradient(ellipse 90% 70% at 85% 20%, rgba(233, 30, 99, 0.18) 0%, transparent 55%),
    radial-gradient(ellipse 60% 50% at 10% 80%, rgba(190, 24, 93, 0.12) 0%, transparent 50%),
    linear-gradient(180deg, #0a0a10 0%, #100810 50%, #0c0c12 100%),
    url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAIAAACRXR/mAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAIGNIUk0AAHolAACAgwAA+f8AAIDpAAB1MAAA6mAAADqYAAAXb5JfxUYAAABnSURBVHja7M5RDYAwDEXRDgmvEocnlrQS2SwUFST9uEfBGWs9c97nbGtDcquqiKhOImLs/UpuzVzWEi1atGjRokWLFi1atGjRokWLFi1atGjRokWLFi1af7Ukz8xWp8z8AAAA//8DAJ4LoEAAlL1nAAAAAElFTkSuQmCC");
  background-repeat: no-repeat, no-repeat, no-repeat, repeat;
  background-size: 100% 100%, 100% 100%, 100% 100%, 50px 50px;
  opacity: 1;
}

.section-cuemind h2 {
  color: var(--cuemind-text);
}

.section-cuemind h2::after {
  content: "";
  display: block;
  width: 56px;
  height: 3px;
  margin-top: 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--cuemind-pink), var(--cuemind-pink-soft));
  box-shadow: 0 0 16px var(--cuemind-glow);
}

.section-cuemind .section-lead {
  color: var(--cuemind-muted);
}

.section-cuemind .current-project {
  padding: 32px;
  background: linear-gradient(155deg, var(--cuemind-surface) 0%, var(--cuemind-surface-2) 100%);
  border: 1px solid var(--cuemind-border);
  box-shadow:
    0 28px 64px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.03) inset,
    0 0 80px rgba(233, 30, 99, 0.06);
}

.section-cuemind .current-project:hover {
  border-color: rgba(233, 30, 99, 0.4);
  box-shadow:
    0 32px 72px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 0 100px rgba(233, 30, 99, 0.1);
}

.section-cuemind .cuemind-brand-accent {
  background: linear-gradient(135deg, #fff 0%, var(--cuemind-pink-soft) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-cuemind .current-project-copy h3 {
  font-size: 1.85rem;
  letter-spacing: -0.02em;
}

.section-cuemind .current-project-copy p {
  color: var(--cuemind-muted);
  line-height: 1.7;
}

.section-cuemind .project-status-badge {
  background: var(--cuemind-pink-dim);
  border: 1px solid var(--cuemind-border);
  color: #fbcfe8;
  box-shadow: 0 0 20px rgba(233, 30, 99, 0.12);
}

.section-cuemind .project-tech span {
  display: inline-flex;
  background: rgba(233, 30, 99, 0.12) !important;
  border: 1px solid rgba(233, 30, 99, 0.35) !important;
  color: #fda4af !important;
}

.section-cuemind .btn-primary {
  background: linear-gradient(135deg, #be185d, var(--cuemind-pink));
  border-color: transparent;
  color: #fff;
  box-shadow: 0 10px 28px rgba(233, 30, 99, 0.35);
}

.section-cuemind .btn-primary:hover {
  box-shadow: 0 14px 36px rgba(233, 30, 99, 0.45);
  filter: brightness(1.05);
}

.section-cuemind .mockup-frame-featured {
  background: #050508;
  border-color: rgba(233, 30, 99, 0.35);
  box-shadow:
    0 24px 48px rgba(0, 0, 0, 0.55),
    0 0 60px rgba(233, 30, 99, 0.12);
}

.section-cuemind .current-project-mockups {
  position: relative;
}

.section-cuemind .current-project-mockups::before {
  content: "";
  position: absolute;
  inset: 10% 5%;
  background: radial-gradient(circle, rgba(233, 30, 99, 0.25) 0%, transparent 70%);
  filter: blur(40px);
  pointer-events: none;
  z-index: 0;
}

.section-cuemind .current-project-mockups .mockup-frame {
  position: relative;
  z-index: 1;
}

/* BB-Rank — thème section (projet de fin de BTS) */
.section-bbrank,
.page-bbrank #project-detail {
  --bbrank-bg: #0f1729;
  --bbrank-surface: #1a2744;
  --bbrank-surface-2: #243352;
  --bbrank-text: #f8fafc;
  --bbrank-muted: #94a3b8;
  --bbrank-orange: #ff6b00;
  --bbrank-orange-soft: #ff8c33;
  --bbrank-orange-dim: rgba(255, 107, 0, 0.14);
  --bbrank-border: rgba(255, 107, 0, 0.28);
  --bbrank-glow: rgba(255, 107, 0, 0.22);
}

.section-bbrank {
  background: var(--bbrank-bg);
  color: var(--bbrank-text);
  box-shadow: none;
}

.section-bbrank.section-animated::before {
  background-image:
    radial-gradient(ellipse 90% 70% at 85% 20%, rgba(255, 107, 0, 0.16) 0%, transparent 55%),
    radial-gradient(ellipse 60% 50% at 10% 80%, rgba(26, 39, 68, 0.5) 0%, transparent 50%),
    linear-gradient(180deg, #0f1729 0%, #121c30 50%, #0f1729 100%),
    url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAIAAACRXR/mAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAIGNIUk0AAHolAACAgwAA+f8AAIDpAAB1MAAA6mAAADqYAAAXb5JfxUYAAABnSURBVHja7M5RDYAwDEXRDgmvEocnlrQS2SwUFST9uEfBGWs9c97nbGtDcquqiKhOImLs/UpuzVzWEi1atGjRokWLFi1atGjRokWLFi1atGjRokWLFi1af7Ukz8xWp8z8AAAA//8DAJ4LoEAAlL1nAAAAAElFTkSuQmCC");
  background-repeat: no-repeat, no-repeat, no-repeat, repeat;
  background-size: 100% 100%, 100% 100%, 100% 100%, 50px 50px;
  opacity: 1;
}

.section-bbrank h2 {
  color: var(--bbrank-text);
}

.section-bbrank h2::after {
  content: "";
  display: block;
  width: 56px;
  height: 3px;
  margin-top: 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--bbrank-orange), var(--bbrank-orange-soft));
  box-shadow: 0 0 16px var(--bbrank-glow);
}

.section-bbrank .section-lead {
  color: var(--bbrank-muted);
}

.section-bbrank .current-project {
  padding: 32px;
  background: linear-gradient(155deg, var(--bbrank-surface) 0%, var(--bbrank-surface-2) 100%);
  border: 1px solid var(--bbrank-border);
  box-shadow:
    0 28px 64px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.03) inset,
    0 0 80px rgba(255, 107, 0, 0.06);
}

.section-bbrank .current-project:hover {
  border-color: rgba(255, 107, 0, 0.4);
  box-shadow:
    0 32px 72px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 0 100px rgba(255, 107, 0, 0.1);
}

.section-bbrank .bbrank-brand-accent {
  background: linear-gradient(135deg, #fff 0%, var(--bbrank-orange-soft) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-bbrank .current-project-copy h3 {
  font-size: 1.85rem;
  letter-spacing: -0.02em;
}

.section-bbrank .current-project-copy p,
.section-bbrank .bts-situations-list {
  color: var(--bbrank-muted);
  line-height: 1.7;
}

.section-bbrank .bts-situations-list {
  margin: 0 0 16px;
  padding-left: 18px;
}

.section-bbrank .bts-situations-list li {
  margin-bottom: 8px;
}

.section-bbrank .bts-situations-list strong {
  color: var(--bbrank-orange-soft);
  font-weight: 700;
}

.section-bbrank .project-status-badge {
  background: var(--bbrank-orange-dim);
  border: 1px solid var(--bbrank-border);
  color: #fed7aa;
  box-shadow: 0 0 20px rgba(255, 107, 0, 0.12);
}

.section-bbrank .project-tech span {
  display: inline-flex;
  background: rgba(255, 107, 0, 0.12) !important;
  border: 1px solid rgba(255, 107, 0, 0.35) !important;
  color: #fdba74 !important;
}

.section-bbrank .btn-primary {
  background: linear-gradient(135deg, #e85d00, var(--bbrank-orange));
  border-color: transparent;
  color: #fff;
  box-shadow: 0 10px 28px rgba(255, 107, 0, 0.35);
}

.section-bbrank .btn-primary:hover {
  box-shadow: 0 14px 36px rgba(255, 107, 0, 0.45);
  filter: brightness(1.05);
}

.section-bbrank .btn-ghost {
  color: #fdba74;
  border-color: var(--bbrank-border);
  background: rgba(255, 107, 0, 0.08);
}

.section-bbrank .btn-ghost:hover {
  background: rgba(255, 107, 0, 0.14);
  color: #ffedd5;
}

.section-bbrank .mockup-frame-featured {
  background: #0a1020;
  border-color: rgba(255, 107, 0, 0.35);
  box-shadow:
    0 24px 48px rgba(0, 0, 0, 0.55),
    0 0 60px rgba(255, 107, 0, 0.12);
}

.section-bbrank .current-project-mockups {
  position: relative;
}

.section-bbrank .current-project-mockups::before {
  content: "";
  position: absolute;
  inset: 10% 5%;
  background: radial-gradient(circle, rgba(255, 107, 0, 0.22) 0%, transparent 70%);
  filter: blur(40px);
  pointer-events: none;
  z-index: 0;
}

.section-bbrank .current-project-mockups .mockup-frame {
  position: relative;
  z-index: 1;
}

@media (max-width: 900px) {
  .current-project-grid { grid-template-columns: 1fr; }
  .mockup-grid { grid-template-columns: 1fr; }
}
.hero-socials { display: flex; gap: 18px; margin-top: 16px; }
.hero-socials a { display: inline-flex; align-items: center; justify-content: center; width: 72px; height: 72px; border-radius: 16px; border: 1px solid var(--border); background: var(--surface); color: var(--text); box-shadow: var(--shadow); transition: transform .3s cubic-bezier(.22,.61,.36,1), box-shadow .3s cubic-bezier(.22,.61,.36,1), background .3s cubic-bezier(.22,.61,.36,1), color .3s cubic-bezier(.22,.61,.36,1), border-color .3s cubic-bezier(.22,.61,.36,1); }
.hero-socials a:hover { transform: translateY(-3px); box-shadow: 0 24px 44px rgba(2,6,23,.10); background: var(--surface); }
.hero-socials a .social-icon { transition: transform .3s cubic-bezier(.22,.61,.36,1); }
.hero-socials a:hover .social-icon { transform: scale(1.06); }
.social-icon { width: 32px; height: 32px; display: block; }

/* Brand styles */
.hero-socials a.instagram { color: #d62976; border-color: rgba(214,41,118,0.35); }
.hero-socials a.instagram:hover { border-color: #d62976; color: #d62976; }
.hero-socials a.linkedin { color: #0a66c2; border-color: rgba(10,102,194,0.35); }
.hero-socials a.linkedin:hover { border-color: #0a66c2; color: #0a66c2; }
.hero-socials a.github { color: #111827; border-color: rgba(17,24,39,0.35); }
.hero-socials a.github:hover { border-color: #111827; color: #111827; }
.hero-socials a.cv { color: #0f766e; border-color: rgba(15,118,110,0.35); }
.hero-socials a.cv:hover { border-color: #0f766e; color: #0f766e; }
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 12px 18px; border-radius: 12px; border: 1px solid var(--border); color: var(--text); background: var(--surface); box-shadow: var(--shadow); cursor: pointer; transition: transform .3s cubic-bezier(.22,.61,.36,1), box-shadow .3s cubic-bezier(.22,.61,.36,1), background .3s cubic-bezier(.22,.61,.36,1), color .3s cubic-bezier(.22,.61,.36,1), border-color .3s cubic-bezier(.22,.61,.36,1), filter .3s cubic-bezier(.22,.61,.36,1); }
.btn:hover { transform: translateY(-2px); box-shadow: 0 18px 36px rgba(2,6,23,.10); }
.btn:active { transform: translateY(0); box-shadow: var(--shadow); filter: brightness(.98); transition-duration: .15s; }
.btn:focus-visible { outline: none; box-shadow: 0 0 0 4px rgba(8,182,212,.18), 0 18px 36px rgba(2,6,23,.10); }
.btn-primary { background: linear-gradient(135deg, var(--accent), var(--accent-2)); border-color: transparent; color: white; }
.btn-ghost { background: transparent; box-shadow: none; }
.hero-visual { display: grid; place-items: center; }
.hero-avatar-wrap {
  position: relative;
  width: 100%;
  max-width: 480px;
  aspect-ratio: 1 / 1;
  animation: float 6s ease-in-out infinite;
}
.hero-avatar-wrap .blob {
  width: 100%;
  height: 100%;
  max-width: none;
  animation: none;
}
.hero-avatar {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 78%;
  height: 78%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  border: 5px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 16px 36px rgba(2, 6, 23, 0.18);
}
.blob { width: 100%; max-width: 360px; filter: drop-shadow(0 24px 40px rgba(2,6,23,.12)); animation: float 6s ease-in-out infinite; }
@keyframes float { 0%,100% { transform: translateY(0) } 50% { transform: translateY(-8px) } }

/* Two columns */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.about-avatar .avatar-wrap { border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--border); background: var(--surface); aspect-ratio: 1 / 1; }
.about-avatar img { width: 100%; height: 100%; display: block; object-fit: cover; }

/* Cards and grids */
.grid { display: grid; gap: 20px; }
.cards { grid-template-columns: repeat(3, 1fr); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; transition: transform .3s cubic-bezier(.22,.61,.36,1), box-shadow .3s cubic-bezier(.22,.61,.36,1), border-color .3s cubic-bezier(.22,.61,.36,1), background .3s cubic-bezier(.22,.61,.36,1); }
.card:hover { transform: translateY(-4px); box-shadow: 0 24px 44px rgba(2,6,23,.10); border-color: rgba(8, 182, 212, 0.25); }
.skill .icon { font-size: 32px; width: 72px; height: 72px; display: grid; place-items: center; border-radius: 16px; background: linear-gradient(135deg, #f8fafc, #e2e8f0); margin-bottom: 14px; color: var(--accent); border: 2px solid rgba(8, 182, 212, 0.1); transition: all 0.3s ease; }
.svg-icon { width: 40px; height: 40px; display: block; }
.projects-grid .project.card {
  padding: 0;
  overflow: hidden;
  background: transparent;
}

.projects-grid .project > a {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.projects-grid .project .thumb {
  height: 172px;
  flex-shrink: 0;
  border-radius: 0;
  overflow: hidden;
  background-color: #0f172a;
  border: none;
  box-shadow: none;
}

.projects-grid .project .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.04);
  transform-origin: center center;
  transition: transform 0.55s cubic-bezier(0.22, 0.61, 0.36, 1), filter 0.4s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.projects-grid .project:hover .thumb {
  transform: none;
  filter: none;
}

.projects-grid .project:hover .thumb img {
  transform: scale(1.08);
  filter: saturate(1.04);
}
.card.skill:hover .icon, .card.tool:hover .icon { 
  background: linear-gradient(135deg, #e6faff, #e8ffeF); 
  border-color: var(--accent);
  transform: scale(1.05);
  box-shadow: 0 8px 25px rgba(8, 182, 212, 0.25);
}

/* Tools icons same style as skills */
.tool .icon { 
  font-size: 32px; 
  width: 72px; 
  height: 72px; 
  display: grid; 
  place-items: center; 
  border-radius: 16px; 
  background: linear-gradient(135deg, #f8fafc, #e2e8f0); 
  margin-bottom: 14px; 
  color: var(--accent); 
  border: 2px solid rgba(8, 182, 212, 0.1); 
  transition: all 0.3s ease; 
}

/* Icon animations */
@keyframes pulseIcon { 
  0%, 100% { transform: scale(1); filter: brightness(1); }
  50% { transform: scale(1.15); filter: brightness(1.2) drop-shadow(0 0 10px rgba(8, 182, 212, 0.4)); }
}
@keyframes rotateIcon { 
  0% { transform: rotate(0deg) scale(1); }
  25% { transform: rotate(90deg) scale(1.1); }
  50% { transform: rotate(180deg) scale(1); }
  75% { transform: rotate(270deg) scale(1.1); }
  100% { transform: rotate(360deg) scale(1); }
}
@keyframes wiggleIcon { 
  0%, 100% { transform: rotate(0deg) scale(1); }
  15% { transform: rotate(8deg) scale(1.05); }
  30% { transform: rotate(-6deg) scale(1.1); }
  45% { transform: rotate(4deg) scale(1.05); }
  60% { transform: rotate(-2deg) scale(1.08); }
  75% { transform: rotate(1deg) scale(1.03); }
}
@keyframes floatIcon { 
  0%, 100% { transform: translateY(0) scale(1); filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1)); }
  33% { transform: translateY(-6px) scale(1.05); filter: drop-shadow(0 8px 15px rgba(0,0,0,0.15)); }
  66% { transform: translateY(-2px) scale(1.02); filter: drop-shadow(0 4px 8px rgba(0,0,0,0.12)); }
}
@keyframes bounceIcon { 
  0%, 100% { transform: translateY(0) scaleY(1); }
  25% { transform: translateY(-8px) scaleY(1.1); }
  50% { transform: translateY(-12px) scaleY(0.95) scaleX(1.05); }
  75% { transform: translateY(-4px) scaleY(1.05); }
}
@keyframes glowIcon {
  0%, 100% { filter: drop-shadow(0 0 5px rgba(8, 182, 212, 0.3)); }
  50% { filter: drop-shadow(0 0 20px rgba(8, 182, 212, 0.8)) drop-shadow(0 0 30px rgba(34, 197, 94, 0.4)); }
}

.anim-pulse { animation: pulseIcon 2.5s ease-in-out infinite, glowIcon 2.5s ease-in-out infinite; transform-origin: center; }
.anim-rotate { animation: rotateIcon 6s ease-in-out infinite; transform-origin: center; }
.anim-wiggle { animation: wiggleIcon 3s ease-in-out infinite; transform-origin: center; }
.anim-float { animation: floatIcon 4s ease-in-out infinite; transform-origin: center; }
.anim-bounce { animation: bounceIcon 2s ease-in-out infinite; transform-origin: center; }

/* Custom logo animations */
.anim-git-flow { animation: gitFlowAnimation 4s ease-in-out infinite; transform-origin: center; }
.anim-docker-whale { animation: dockerWhaleAnimation 3s ease-in-out infinite; transform-origin: center; }
.anim-cursor-ai { animation: cursorAiAnimation 2.5s ease-in-out infinite; transform-origin: center; }
.anim-vmware-layers { animation: vmwareLayersAnimation 3.5s ease-in-out infinite; transform-origin: center; }
.anim-server-pulse { animation: serverPulseAnimation 2.8s ease-in-out infinite; transform-origin: center; }
.anim-notion-pages { animation: notionPagesAnimation 3.2s ease-in-out infinite; transform-origin: center; }
.anim-rss-waves { animation: rssWavesAnimation 4s ease-in-out infinite; transform-origin: center; }

/* IA Generation icon animation */
.anim-gen .gen-bg { animation: genBgPulse 2.8s ease-in-out infinite; transform-origin: center; }
.anim-gen .gen-plus {
  stroke: white;
  stroke-width: 2;
  stroke-linecap: round;
  fill: none;
  stroke-dasharray: 60; /* total approximate length of both segments */
  stroke-dashoffset: 60;
  animation: genDraw 1.6s ease forwards, genBlink 2.8s ease-in-out 1.6s infinite;
}

@keyframes genBgPulse {
  0%, 100% { transform: scale(1); filter: brightness(1); }
  50% { transform: scale(1.06); filter: brightness(1.08) drop-shadow(0 0 8px rgba(8, 182, 212, 0.35)); }
}
@keyframes genDraw {
  0% { stroke-dashoffset: 60; opacity: 0.2; }
  60% { stroke-dashoffset: 12; opacity: 1; }
  100% { stroke-dashoffset: 0; opacity: 1; }
}
@keyframes genBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.75; }
}

@keyframes gitFlowAnimation {
  0%, 100% { transform: scale(1); }
  25% { transform: scale(1.05) rotate(2deg); }
  50% { transform: scale(1.1) rotate(-1deg); }
  75% { transform: scale(1.05) rotate(1deg); }
}

@keyframes dockerWhaleAnimation {
  0%, 100% { transform: scale(1) translateY(0); }
  33% { transform: scale(1.08) translateY(-3px); }
  66% { transform: scale(1.05) translateY(-1px); }
}

@keyframes cursorAiAnimation {
  0%, 100% { transform: scale(1) rotate(0deg); }
  25% { transform: scale(1.1) rotate(2deg); }
  50% { transform: scale(1.15) rotate(-1deg); }
  75% { transform: scale(1.05) rotate(1deg); }
}

/* Individual element animations within logos */
.git-node-1 { animation: gitNode1 3s ease-in-out infinite; }
.git-node-2 { animation: gitNode2 3s ease-in-out infinite 0.5s; }
.git-node-3 { animation: gitNode3 3s ease-in-out infinite 1s; }
.git-merge { animation: gitMerge 2s ease-in-out infinite; }
.git-branch { animation: gitBranch 4s ease-in-out infinite; }

@keyframes gitNode1 {
  0%, 100% { r: 4; opacity: 1; }
  50% { r: 5; opacity: 0.8; }
}
@keyframes gitNode2 {
  0%, 100% { r: 4; opacity: 1; }
  50% { r: 5.5; opacity: 0.7; }
}
@keyframes gitNode3 {
  0%, 100% { r: 4; opacity: 1; }
  50% { r: 4.5; opacity: 0.9; }
}
@keyframes gitMerge {
  0%, 100% { r: 2; opacity: 1; }
  50% { r: 3; opacity: 0.6; }
}
@keyframes gitBranch {
  0%, 100% { stroke-width: 3; opacity: 1; }
  50% { stroke-width: 4; opacity: 0.8; }
}

.docker-container-1 { animation: dockerContainer 2s ease-in-out infinite; }
.docker-container-2 { animation: dockerContainer 2s ease-in-out infinite 0.2s; }
.docker-container-3 { animation: dockerContainer 2s ease-in-out infinite 0.4s; }
.docker-container-4 { animation: dockerContainer 2s ease-in-out infinite 0.6s; }
.docker-container-5 { animation: dockerContainer 2s ease-in-out infinite 0.8s; }
.docker-whale { animation: dockerWhaleBody 3s ease-in-out infinite; }
.docker-spout { animation: dockerSpout 2s ease-in-out infinite; }

@keyframes dockerContainer {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.1); opacity: 0.8; }
}
@keyframes dockerWhaleBody {
  0%, 100% { transform: scaleY(1); }
  50% { transform: scaleY(1.1); }
}
@keyframes dockerSpout {
  0%, 100% { opacity: 0.6; stroke-width: 2; }
  50% { opacity: 1; stroke-width: 3; }
}

.ai-node-1 { animation: aiMainNode 2s ease-in-out infinite; }
.ai-node-2, .ai-node-3, .ai-node-4, .ai-node-5 { animation: aiSecondaryNodes 2.5s ease-in-out infinite; }
.ai-connections { animation: aiConnections 3s ease-in-out infinite; }
.ai-sparkles { animation: aiSparkles 1.5s ease-in-out infinite; }
.cursor-arrow { animation: cursorArrow 2s ease-in-out infinite; }

@keyframes aiMainNode {
  0%, 100% { r: 3; opacity: 1; }
  50% { r: 4; opacity: 0.7; }
}
@keyframes aiSecondaryNodes {
  0%, 100% { r: 1.5; opacity: 0.8; }
  50% { r: 2; opacity: 1; }
}
@keyframes aiConnections {
  0%, 100% { opacity: 0.6; stroke-width: 1; }
  50% { opacity: 1; stroke-width: 1.5; }
}
@keyframes aiSparkles {
  0%, 100% { opacity: 0.8; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.2); }
}
@keyframes cursorArrow {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.8; }
}

/* VMware animations */
@keyframes vmwareLayersAnimation {
  0%, 100% { transform: scale(1); }
  33% { transform: scale(1.05) translateY(-2px); }
  66% { transform: scale(1.02) translateY(-1px); }
}

.vm-layer-1 { animation: vmLayer1 3s ease-in-out infinite; }
.vm-layer-2 { animation: vmLayer2 3s ease-in-out infinite 0.3s; }
.vm-layer-3 { animation: vmLayer3 3s ease-in-out infinite 0.6s; }
.vm-connections { animation: vmConnections 2s ease-in-out infinite; }
.vm-status-1, .vm-status-2, .vm-status-3 { animation: vmStatus 1.5s ease-in-out infinite; }

@keyframes vmLayer1 {
  0%, 100% { opacity: 0.9; transform: translateZ(0); }
  50% { opacity: 1; transform: translateZ(2px); }
}
@keyframes vmLayer2 {
  0%, 100% { opacity: 0.7; transform: translateZ(0); }
  50% { opacity: 0.9; transform: translateZ(4px); }
}
@keyframes vmLayer3 {
  0%, 100% { opacity: 0.5; transform: translateZ(0); }
  50% { opacity: 0.8; transform: translateZ(6px); }
}
@keyframes vmConnections {
  0%, 100% { opacity: 0.8; stroke-width: 2; }
  50% { opacity: 1; stroke-width: 3; }
}
@keyframes vmStatus {
  0%, 100% { r: 2; opacity: 1; }
  50% { r: 2.5; opacity: 0.7; }
}

/* Server animations */
@keyframes serverPulseAnimation {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

.server-rack { animation: serverRack 3s ease-in-out infinite; }
.server-slot-1 { animation: serverSlot 2s ease-in-out infinite; }
.server-slot-2 { animation: serverSlot 2s ease-in-out infinite 0.2s; }
.server-slot-3 { animation: serverSlot 2s ease-in-out infinite 0.4s; }
.server-slot-4 { animation: serverSlot 2s ease-in-out infinite 0.6s; }
.status-light-1 { animation: statusLight1 1.5s ease-in-out infinite; }
.status-light-2 { animation: statusLight2 1.8s ease-in-out infinite; }
.status-light-3 { animation: statusLight3 2.1s ease-in-out infinite; }
.status-light-4 { animation: statusLight4 2.4s ease-in-out infinite; }
.data-flow { animation: dataFlow 2s ease-in-out infinite; }

@keyframes serverRack {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.1); }
}
@keyframes serverSlot {
  0%, 100% { opacity: 0.9; }
  50% { opacity: 1; }
}
@keyframes statusLight1 {
  0%, 100% { r: 1.5; opacity: 1; }
  50% { r: 2; opacity: 0.8; }
}
@keyframes statusLight2 {
  0%, 100% { r: 1.5; opacity: 1; }
  50% { r: 2.2; opacity: 0.7; }
}
@keyframes statusLight3 {
  0%, 100% { r: 1.5; opacity: 1; }
  50% { r: 1.8; opacity: 0.9; }
}
@keyframes statusLight4 {
  0%, 100% { r: 1.5; opacity: 1; }
  50% { r: 2.5; opacity: 0.6; }
}
@keyframes dataFlow {
  0%, 100% { opacity: 0.8; stroke-width: 2; }
  50% { opacity: 1; stroke-width: 3; }
}

/* Notion animations */
@keyframes notionPagesAnimation {
  0%, 100% { transform: scale(1); }
  33% { transform: scale(1.03) rotate(1deg); }
  66% { transform: scale(1.06) rotate(-0.5deg); }
}

.notion-page-1 { animation: notionPage1 3s ease-in-out infinite; }
.notion-page-2 { animation: notionPage2 3s ease-in-out infinite 0.3s; }
.notion-page-3 { animation: notionPage3 3s ease-in-out infinite 0.6s; }
.notion-line-1, .notion-line-2, .notion-line-3, .notion-line-4 { animation: notionLines 2.5s ease-in-out infinite; }
.notion-accent { animation: notionAccent 2s ease-in-out infinite; }

@keyframes notionPage1 {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(2px); }
}
@keyframes notionPage2 {
  0%, 100% { transform: translateX(0); opacity: 0.8; }
  50% { transform: translateX(1px); opacity: 0.9; }
}
@keyframes notionPage3 {
  0%, 100% { transform: translateX(0); opacity: 0.6; }
  50% { transform: translateX(0.5px); opacity: 0.8; }
}
@keyframes notionLines {
  0%, 100% { opacity: 0.9; }
  50% { opacity: 1; }
}
@keyframes notionAccent {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(1.1); }
}

/* RSS animations */
@keyframes rssWavesAnimation {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.rss-source { animation: rssSource 2s ease-in-out infinite; }
.rss-wave-1 { animation: rssWave1 3s ease-in-out infinite; }
.rss-wave-2 { animation: rssWave2 3s ease-in-out infinite 0.5s; }
.rss-wave-3 { animation: rssWave3 3s ease-in-out infinite 1s; }
.data-particle-1 { animation: dataParticle1 2s ease-in-out infinite; }
.data-particle-2 { animation: dataParticle2 2s ease-in-out infinite 0.3s; }
.data-particle-3 { animation: dataParticle3 2s ease-in-out infinite 0.6s; }
.data-particle-4 { animation: dataParticle4 2s ease-in-out infinite 0.9s; }
.feed-icon { animation: feedIcon 2.5s ease-in-out infinite; }

@keyframes rssSource {
  0%, 100% { r: 4; opacity: 1; }
  50% { r: 5; opacity: 0.8; }
}
@keyframes rssWave1 {
  0%, 100% { opacity: 1; stroke-width: 3; }
  50% { opacity: 0.7; stroke-width: 4; }
}
@keyframes rssWave2 {
  0%, 100% { opacity: 1; stroke-width: 3; }
  50% { opacity: 0.6; stroke-width: 4.5; }
}
@keyframes rssWave3 {
  0%, 100% { opacity: 1; stroke-width: 3; }
  50% { opacity: 0.5; stroke-width: 5; }
}
@keyframes dataParticle1 {
  0%, 100% { r: 1.5; opacity: 1; }
  50% { r: 2; opacity: 0.6; }
}
@keyframes dataParticle2 {
  0%, 100% { r: 1.5; opacity: 1; }
  50% { r: 2.2; opacity: 0.5; }
}
@keyframes dataParticle3 {
  0%, 100% { r: 1.5; opacity: 1; }
  50% { r: 1.8; opacity: 0.7; }
}
@keyframes dataParticle4 {
  0%, 100% { r: 1.5; opacity: 1; }
  50% { r: 2.5; opacity: 0.4; }
}
@keyframes feedIcon {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.1); opacity: 0.9; }
}

/* Skills list styles */
.skills-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.skill-category {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  transition: box-shadow .2s ease;
}

.skill-category:hover {
  box-shadow: 0 24px 44px rgba(2,6,23,.10);
}

.skill-category h3 {
  margin: 0 0 16px 0;
  font-size: 18px;
  color: var(--text);
  border-bottom: 2px solid var(--accent);
  padding-bottom: 8px;
}

.skill-items {
  list-style: none;
  padding: 0;
  margin: 0;
}

.skill-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  transition: all 0.2s ease;
}

.skill-item:last-child {
  border-bottom: none;
}

.skill-item:hover {
  background: rgba(8, 182, 212, 0.05);
  padding-left: 8px;
  border-radius: 6px;
}

.skill-name {
  font-weight: 500;
  color: var(--text);
}

.skill-level {
  font-size: 14px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.skill-level.mastered {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: white;
}

.skill-level.comfortable {
  background: linear-gradient(135deg, #08b6d4, #0891b2);
  color: white;
}

.skill-level.working {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: white;
}

.project .card-body h3 { margin: 12px 0 6px; font-size: 18px; }
.project .card-body p { margin: 0; color: var(--muted); }
.project-tech {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.project-tech span {
  display: inline-flex;
  align-items: center;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid var(--tech-border, rgba(8, 182, 212, 0.28));
  background: var(--tech-bg, rgba(8, 182, 212, 0.10));
  color: var(--tech-text, #0e7490);
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
}

/* Timeline */
.timeline { list-style: none; padding: 0; margin: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 16px; top: 0; bottom: 0; width: 2px; background: linear-gradient(180deg, var(--accent), var(--accent-2)); opacity: .4; }
.timeline li { position: relative; padding-left: 48px; margin: 20px 0; }
.timeline .dot { position: absolute; left: 8px; width: 18px; height: 18px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--accent-2)); box-shadow: 0 6px 16px rgba(2,6,23,.12); }
.timeline .content h3 { margin: 0 0 6px; }
.timeline .content p { margin: 0; color: var(--muted); }

.parcours-future-heading {
  margin: 48px 0 8px;
  font-size: 1.25rem;
  color: var(--muted);
  font-weight: 600;
}

.timeline-future::before {
  background: linear-gradient(180deg, rgba(139, 92, 246, 0.5), rgba(8, 182, 212, 0.35));
  opacity: 0.6;
}

.timeline-future .dot {
  background: linear-gradient(135deg, #8b5cf6, #08b6d4);
  box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.12);
}

.timeline-future .content h3 {
  color: var(--text);
}

.timeline-future .content p {
  font-style: italic;
}

/* Forms */
.form { padding: 22px; }
.field { display: grid; gap: 6px; margin-bottom: 14px; }
label { font-weight: 600; }
input, textarea { font: inherit; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); color: var(--text); outline: none; }
input:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(8,182,212,.15); }
.form select { font: inherit; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); color: var(--text); outline: none; }
.form select:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(8,182,212,.15); }
.error { color: #b91c1c; min-height: 1em; }
.form-note { color: var(--muted); font-size: 12px; margin-top: 6px; }

/* Footer */
.site-footer { padding: 30px 0; border-top: 1px solid var(--border); text-align: center; color: var(--muted); background: rgba(255,255,255,0.6); }

/* Section background themes (single background per section) */
#hero { background: linear-gradient(180deg, #eefaff 0%, #e6fff2 100%); }
#about { background: var(--surface); }
#tools { background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%); }
#skills { background: var(--surface); }
#projects { background: linear-gradient(180deg, #f7fcff 0%, #f0fff7 100%); }
#parcours { background: var(--surface); }
#stage { background: linear-gradient(180deg, #f7fbff 0%, #f6fff9 100%); }
#e5 { background: var(--surface); }
#veille { background: linear-gradient(180deg, #f7fbff 0%, #f6fff9 100%); }
#contact { background: var(--surface); }

/* Per-section animated tint mapping */
#hero { --section-tint-from: rgba(238, 250, 255, 0.72); --section-tint-to: rgba(230, 255, 242, 0.72); }
#about { --section-tint-from: rgba(248, 251, 255, 0.52); --section-tint-to: rgba(239, 255, 248, 0.52); }
#bts { --section-tint-from: rgba(242, 251, 255, 0.58); --section-tint-to: rgba(236, 255, 246, 0.58); }
#tableau-e4 { --section-tint-from: rgba(245, 250, 255, 0.55); --section-tint-to: rgba(238, 252, 245, 0.55); }
#projects { --section-tint-from: rgba(240, 252, 255, 0.65); --section-tint-to: rgba(235, 255, 244, 0.65); }
#parcours { --section-tint-from: rgba(250, 253, 255, 0.5); --section-tint-to: rgba(245, 255, 249, 0.5); }
#stage { --section-tint-from: rgba(243, 250, 255, 0.6); --section-tint-to: rgba(238, 255, 246, 0.6); }
#e5 { --section-tint-from: rgba(248, 252, 255, 0.52); --section-tint-to: rgba(243, 255, 248, 0.52); }
#skills { --section-tint-from: rgba(246, 251, 255, 0.55); --section-tint-to: rgba(240, 255, 247, 0.55); }

/* E5 – Situations professionnelles */
#e5 .container { display: grid; gap: 20px; }
#e5 h2 { position: relative; padding-left: 14px; }
#e5 h2::before { content: ""; position: absolute; left: 0; top: 6px; bottom: 6px; width: 4px; border-radius: 4px; background: linear-gradient(180deg, var(--accent), var(--accent-2)); }
.e5-dossier { text-align: center; margin: 0; }
.e5-projects { display: grid; gap: 32px; margin-top: 8px; }
.e5-project { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px; }
.e5-project h3 { margin: 0 0 8px; font-size: 22px; }
.e5-lead { color: var(--muted); margin: 0 0 20px; max-width: 72ch; }
.e5-project .two-col { align-items: start; gap: 28px; }
.e5-competences-title { margin: 12px 0 8px; }
.e5-competences {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.e5-competences span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(8, 182, 212, 0.25);
  background: rgba(8, 182, 212, 0.10);
  color: #0e7490;
  font-size: 12px;
  font-weight: 700;
}
.e5-actions { margin-top: 20px; flex-wrap: wrap; }
.e5-visual { align-self: start; }
.e5-figure { padding: 0; overflow: hidden; margin: 0; }
.e5-figure-body {
  display: flex;
  align-items: center;
  justify-content: center;
  max-height: min(400px, 50vh);
  padding: 16px;
  background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
}
.e5-figure img {
  display: block;
  margin: 0 auto;
  max-width: 100%;
  max-height: min(368px, 46vh);
  width: auto;
  height: auto;
  object-fit: contain;
}
.e5-figure figcaption { padding: 12px 16px; font-size: 13px; color: var(--muted); text-align: center; border-top: 1px solid var(--border); }
@media (max-width: 720px) {
  .e5-project { padding: 20px; }
}
#veille { --section-tint-from: rgba(244, 251, 255, 0.62); --section-tint-to: rgba(239, 255, 246, 0.62); }
#contact { --section-tint-from: rgba(248, 252, 255, 0.56); --section-tint-to: rgba(242, 255, 248, 0.56); }

/* Veille – pages détaillées */
#veille-detail .container { display: grid; gap: 22px; max-width: 960px; }
#veille-detail h2 { margin-top: 0; }
#veille-detail .subtitle { max-width: 65ch; }
.veille-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  font-size: 14px;
  color: var(--muted);
  margin: 0;
  padding: 0;
  list-style: none;
}
.veille-meta li::before { content: "• "; color: var(--accent); }
.veille-resume {
  padding: 20px 22px;
  background: linear-gradient(135deg, rgba(8, 182, 212, 0.08), rgba(34, 197, 94, 0.08));
  border: 1px solid rgba(8, 182, 212, 0.22);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.veille-resume h2 { margin: 0 0 12px; font-size: 20px; }
.veille-resume p { margin: 0 0 10px; line-height: 1.65; color: var(--text); }
.veille-resume p:last-child { margin-bottom: 0; }
.veille-order-note { font-size: 14px; color: var(--muted); margin: 0 0 16px; font-style: italic; }
.veille-tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: rgba(8, 182, 212, 0.12);
  color: #0e7490;
  margin-right: 6px;
  margin-bottom: 6px;
}
.veille-news { display: grid; gap: 18px; }
.veille-news-item {
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  box-shadow: var(--shadow);
}
.veille-news-item time {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #0e7490;
  letter-spacing: 0.02em;
  margin-bottom: 6px;
}
.veille-news-item h3 { margin: 0 0 10px; font-size: 18px; line-height: 1.35; }
.veille-news-item p { margin: 0 0 10px; color: var(--text); line-height: 1.6; }
.veille-news-item p:last-child { margin-bottom: 0; }
.veille-news-item .veille-analysis {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--border);
  font-size: 14px;
  color: var(--muted);
}
.veille-news-item a { word-break: break-word; }
.veille-sources li { margin-bottom: 8px; }
.veille-toc { margin: 0; padding-left: 20px; color: var(--muted); }
.veille-toc a { color: var(--text); }
@media (max-width: 720px) {
  #veille-detail .grid[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
  }
}

/* Contact section enhancements */
#contact { position: relative; overflow: hidden; }
#contact::before {
  content: "";
  position: absolute;
  right: -120px;
  top: -120px;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(8,182,212,.12), rgba(34,197,94,.10) 60%, transparent 70%);
  filter: blur(2px);
  pointer-events: none;
}
#contact .two-col { align-items: flex-start; }
#contact h2 { margin-top: 0; margin-bottom: 10px; position: relative; padding-left: 12px; }
#contact h2::before { content: ""; position: absolute; left: 0; top: 6px; bottom: 6px; width: 4px; border-radius: 4px; background: linear-gradient(180deg, var(--accent), var(--accent-2)); }
#contact .col:first-child { background: linear-gradient(180deg, #ffffff, #f8fbff); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; }
#contact .col:first-child p { color: var(--muted); font-size: 15px; }
#contact .hero-socials { justify-content: center; gap: 16px; margin-top: 14px; }
#contact .hero-socials a { width: 64px; height: 64px; }
#contact .contact-actions { margin-top: 16px; display: grid; place-items: center; }
#contact .form.card { border-color: rgba(8, 182, 212, 0.18); box-shadow: 0 12px 32px rgba(2,6,23,.07); }
#contact .form.card .btn { width: 100%; }
@media (max-width: 720px) {
  #contact::before { width: 260px; height: 260px; right: -100px; top: -100px; }
  #contact .hero-socials { justify-content: center; }
}

/* FAQ (Veille) */
.faq { display: grid; gap: 12px; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; transition: box-shadow .25s ease, border-color .25s ease, background .25s ease; }
.faq-item > summary { list-style: none; cursor: pointer; padding: 16px 18px; font-weight: 600; position: relative; user-select: none; }
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-item > summary::after { content: "+"; position: absolute; right: 16px; top: 50%; transform: translateY(-50%) rotate(0deg); color: var(--muted); transition: transform .25s ease, color .25s ease; }
.faq-item:hover { border-color: rgba(8, 182, 212, 0.35); box-shadow: 0 16px 32px rgba(2,6,23,.08); }
.faq-item[open] { border-color: rgba(8, 182, 212, 0.5); }
.faq-item[open] > summary::after { content: "–"; transform: translateY(-50%) rotate(180deg); color: var(--accent); }
.faq-item .answer { padding: 0 18px; color: var(--muted); max-height: 0; overflow: hidden; opacity: 0; transition: max-height .45s cubic-bezier(.22,.61,.36,1), padding .45s cubic-bezier(.22,.61,.36,1), opacity .38s cubic-bezier(.22,.61,.36,1); }
.faq-item[open] .answer { max-height: 400px; padding: 0 18px 16px; opacity: 1; }

/* Veille section styles aligned with tool cards */
#veille .container { display: grid; gap: 22px; }
#veille h2 { position: relative; padding-left: 14px; }
#veille h2::before { content: ""; position: absolute; left: 0; top: 6px; bottom: 6px; width: 4px; border-radius: 4px; background: linear-gradient(180deg, var(--accent), var(--accent-2)); }
#veille .faq { margin-bottom: 8px; }
.veille-grid { grid-template-columns: repeat(3, 1fr); }
.veille-grid .tool .icon { margin-bottom: 12px; }
.veille-grid .tool h3 { margin: 0 0 6px; font-size: 18px; }
.veille-grid .tool p { margin: 0; color: var(--muted); }
.veille-card-has-doc { display: flex; flex-direction: column; }
.veille-card-has-doc > a { flex: 1; display: block; text-decoration: none; color: inherit; }
.veille-card-download {
  margin: 0;
  padding: 12px 18px 18px;
  border-top: 1px solid var(--border);
  text-align: center;
}
.veille-card-download .btn { width: 100%; }
.veille-download-actions { flex-wrap: wrap; margin-bottom: 4px; }
.btn-sm { padding: 10px 14px; font-size: 14px; }
@media (max-width: 1000px) { .veille-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 720px) { .veille-grid { grid-template-columns: 1fr; } }

/* About section FAQ theming */
#about .faq { margin-top: 8px; }
#about .faq-item { background: linear-gradient(180deg, #ffffff, #f8fbff); border-color: rgba(8, 182, 212, 0.25); }
#about .faq-item > summary { padding: 14px 18px; }
#about .faq-item > summary:hover { background: rgba(8, 182, 212, 0.06); }

/* Légende des compétences */
.competence-legend {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  margin-bottom: 24px;
}

.competence-legend h3 {
  margin: 0 0 16px 0;
  font-size: 16px;
  color: var(--text);
  font-weight: 600;
}

.legend-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 12px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  background: rgba(8, 182, 212, 0.05);
  border-radius: 8px;
  border: 1px solid rgba(8, 182, 212, 0.15);
}

.legend-code {
  font-weight: 700;
  font-size: 14px;
  color: var(--accent);
  background: rgba(8, 182, 212, 0.1);
  padding: 4px 8px;
  border-radius: 6px;
  min-width: 32px;
  text-align: center;
}

.legend-text {
  font-size: 13px;
  color: var(--text);
  line-height: 1.4;
}

@media (max-width: 720px) {
  .legend-grid {
    grid-template-columns: 1fr;
  }
  .legend-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .legend-code {
    align-self: flex-start;
  }
}

/* Tableau de synthèse E4 */
.table-wrapper {
  overflow-x: auto;
  margin-top: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: var(--surface);
  -webkit-overflow-scrolling: touch;
}

.table-synthesis {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.table-synthesis thead {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: white;
  position: sticky;
  top: 0;
  z-index: 10;
}

.table-synthesis th {
  padding: 12px 8px;
  text-align: center;
  font-weight: 600;
  white-space: nowrap;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.table-synthesis th.col-realisations,
.table-synthesis th.col-periode {
  background: linear-gradient(135deg, #0891b2, #059669);
  text-align: left;
}

.table-synthesis th.competence-header {
  font-size: 10px;
  line-height: 1.3;
}

.table-synthesis .sub-header th {
  background: linear-gradient(135deg, #0891b2, #059669);
  padding: 8px 4px;
  font-size: 11px;
  font-weight: 700;
}

.table-synthesis .sub-columns {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 2px;
}

.table-synthesis .sub-columns span {
  padding: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  text-align: center;
  font-size: 10px;
}

.table-synthesis tbody tr {
  border-bottom: 1px solid var(--border);
  transition: background 0.2s ease;
}

.table-synthesis tbody tr:hover {
  background: rgba(8, 182, 212, 0.04);
}

.table-synthesis td {
  padding: 10px 8px;
  color: var(--text);
  vertical-align: middle;
  text-align: center;
  border: 1px solid var(--border);
  font-size: 12px;
}

.table-synthesis td:first-child {
  font-weight: 500;
  text-align: left;
  max-width: 300px;
}

.table-synthesis td:nth-child(2) {
  text-align: center;
  font-size: 11px;
}

.table-synthesis td.check {
  color: var(--accent);
  font-weight: 700;
  font-size: 16px;
}

.table-synthesis tr.section-header {
  background: linear-gradient(135deg, #f8fafc, #e2e8f0);
  border-bottom: 2px solid var(--accent);
}

.table-synthesis tr.section-header td {
  font-weight: 700;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.5px;
  padding: 14px;
  color: var(--text);
  border: none;
}

@media (max-width: 720px) {
  .table-synthesis {
    font-size: 11px;
  }
  .table-synthesis th,
  .table-synthesis td {
    padding: 8px 6px;
  }
  .table-synthesis th.competence-header {
    font-size: 9px;
  }
  .table-synthesis .sub-header th {
    padding: 6px 3px;
    font-size: 9px;
  }
}

/* Toast */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--text); color: white; padding: 10px 14px; border-radius: 10px; box-shadow: var(--shadow); opacity: 0; pointer-events: none; transition: opacity .25s ease, transform .25s ease; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(-6px); }

/* Back to top (inline in contact) */
.contact-actions { margin-top: 14px; display: grid; place-items: start; }
.back-to-top {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow);
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  transition: transform .3s cubic-bezier(.22,.61,.36,1), box-shadow .3s cubic-bezier(.22,.61,.36,1), border-color .3s cubic-bezier(.22,.61,.36,1);
}
.back-to-top:hover { transform: translateY(-2px); box-shadow: 0 18px 36px rgba(2,6,23,.10); border-color: rgba(8, 182, 212, 0.25); }

/* Reveal on scroll */
[data-animate] { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
[data-animate].in-view { opacity: 1; transform: translateY(0); }

/* Responsive */
@media (max-width: 1000px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .hero-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .two-col { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
  .nav-toggle { display: inline-block; }
  .nav-list { position: absolute; right: 0; top: 52px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 10px; flex-direction: column; gap: 6px; box-shadow: var(--shadow); width: 220px; display: none; }
  .nav-list.open { display: flex; }
}


