/* =====================================================
   PORTFOLIO BTS SIO SISR – style.css
   Thème dark tech / réseau
   ===================================================== */

/* ---- Variables ---- */
:root {
  --bg:         #0f0f0f;
  --bg-alt:     #141414;
  --bg-card:    #1a1a1a;
  --border:     #262626;
  --accent:     #f0f0f0;
  --accent-2:   #888888;
  --accent-3:   #4a4a4a;
  --text:       #b0b0b0;
  --text-muted: #5a5a5a;
  --text-head:  #f5f5f5;
  --radius:     10px;
  --shadow:     0 4px 24px rgba(0,0,0,.4);
  --transition: 0.25s ease;
  --font:       'Inter', system-ui, sans-serif;
  --font-mono:  'JetBrains Mono', monospace;
  --nav-h:      64px;
}

/* ---- Mode Clair ---- */
body.light-mode {
  --bg:         #eef5ff;
  --bg-alt:     #e3eeff;
  --bg-card:    #ffffff;
  --border:     #c8d8f4;
  --accent:     #3b5bdb;
  --accent-2:   #4c6ef5;
  --accent-3:   #c5d0f7;
  --text:       #3d3a52;
  --text-muted: #7a7590;
  --text-head:  #1a1f4b;
  --shadow:     0 2px 6px rgba(45,53,97,.06), 0 10px 24px rgba(45,53,97,.09), 0 28px 56px rgba(45,53,97,.07);
  --float-shadow: 0 1px 3px rgba(45,53,97,.05), 0 6px 14px rgba(45,53,97,.07), 0 18px 36px rgba(45,53,97,.06);
  --float-shadow-hover: 0 3px 8px rgba(45,53,97,.08), 0 12px 28px rgba(45,53,97,.11), 0 32px 64px rgba(45,53,97,.08);
}
/* Dégradé blanc → bleu sur les sections */
body.light-mode .section {
  background: linear-gradient(160deg, #f8fcff 0%, #e8f2ff 100%);
}
body.light-mode .section-alt {
  background: linear-gradient(160deg, #eef6ff 0%, #ddeaff 100%);
}
body.light-mode #navbar {
  background: rgba(255,255,255,.09);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border-color: rgba(255,255,255,.42);
  box-shadow: 0 4px 30px rgba(0,0,0,.1);
}
body.light-mode .nav-links a { color: var(--text-head); }
body.light-mode .hero-tag {
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.3);
}
body.light-mode .hero-name,
body.light-mode .hero-sub { filter: drop-shadow(0 1px 2px rgba(0,0,0,.15)); }
body.light-mode .tl-dot { border-color: var(--bg-alt); }
body.light-mode .tl-item:first-child .tl-dot { border-color: var(--bg-alt); }
body.light-mode .about-panel,
body.light-mode .profile-card { box-shadow: 0 4px 24px rgba(0,0,0,.07); }
body.light-mode .sort-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2020/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%237a7590' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
}
body.light-mode .chip-blue   { background: rgba(59,91,219,.08); border-color: rgba(59,91,219,.3); color: #3b5bdb; }
body.light-mode .chip-green  { background: rgba(22,163,74,.08); border-color: rgba(22,163,74,.3); color: #16a34a; }
body.light-mode .chip-red    { background: rgba(220,38,38,.08); border-color: rgba(220,38,38,.3); color: #dc2626; }
body.light-mode .chip-yellow { background: rgba(217,119,6,.08); border-color: rgba(217,119,6,.3); color: #d97706; }
body.light-mode .badge-reseau   { background: rgba(59,91,219,.1);  color: #3b5bdb; }
body.light-mode .badge-systeme  { background: rgba(22,163,74,.1);  color: #16a34a; }
body.light-mode .badge-securite { background: rgba(220,38,38,.1);  color: #dc2626; }
body.light-mode .badge-projet   { background: rgba(217,119,6,.1);  color: #d97706; }
body.light-mode .badge-stage    { background: rgba(168,85,247,.1); color: #7c3aed; }
body.light-mode .dot-r { background: #ff5f57; }
body.light-mode .dot-y { background: #febc2e; }
body.light-mode .dot-g { background: #28c840; }
body.light-mode .ppt-arrow:hover { box-shadow: 0 0 14px rgba(59,91,219,.2); }
body.light-mode .ppt-thumb.active { box-shadow: 0 0 10px rgba(59,91,219,.25); }
body.light-mode .theme-toggle { border-color: var(--border); color: var(--text-muted); }
body.light-mode .panel-icon {
  background: rgba(59,91,219,.08);
  border-color: rgba(59,91,219,.2);
}

/* Navbar sur le hero — fond sombre léger pour que le texte reste lisible */
#navbar.hero-mode {
  background: rgba(10,10,20,.88);
  border-color: rgba(255,255,255,.12);
  box-shadow: none;
}
#navbar.hero-mode .nav-links a { color: rgba(255,255,255,.82); }
#navbar.hero-mode .nav-links a:hover,
#navbar.hero-mode .nav-links a.active { color: #ffffff; }
#navbar.hero-mode .nav-logo { color: rgba(255,255,255,.92); }
#navbar.hero-mode .nav-toggle span { background: rgba(255,255,255,.75); }

body.light-mode #navbar.hero-mode {
  background: rgba(10,10,20,.88);
  border-color: rgba(255,255,255,.12);
  box-shadow: none;
}
body.light-mode #navbar.hero-mode .nav-links a { color: rgba(255,255,255,.82); }
body.light-mode #navbar.hero-mode .nav-links a:hover,
body.light-mode #navbar.hero-mode .nav-links a.active { color: #ffffff; }
body.light-mode #navbar.hero-mode .nav-logo { color: rgba(255,255,255,.92); }
body.light-mode #navbar.hero-mode .logo-bracket { color: #818cf8; }
body.light-mode #navbar.hero-mode .nav-toggle span { background: rgba(255,255,255,.75); }

/* Mobile : le menu déroulant a son propre fond clair → liens sombres même en hero-mode */
@media (max-width: 768px) {
  body.light-mode #navbar.hero-mode .nav-links.open a { color: var(--text-head); }
  body.light-mode #navbar.hero-mode .nav-links.open a:hover,
  body.light-mode #navbar.hero-mode .nav-links.open a.active { color: var(--accent); }
}



#contact {
  position: relative;
  z-index: 1;
  background: #0a0a0a;
  border-top-color: transparent;
  border-bottom-color: transparent;
}
#contact .section-title { color: #ffffff; }
#contact .section-title::after { background: #818cf8; }
#contact .accent { color: #818cf8; }
#contact .section-subtitle { color: rgba(255,255,255,.5); }
#contact .contact-item strong { color: #ffffff; }
#contact .contact-item p { color: rgba(255,255,255,.55); }
#contact .contact-item a { color: #818cf8; }
#contact .form-group label { color: rgba(255,255,255,.6); }
#contact .form-group input,
#contact .form-group textarea {
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.12);
  color: #ffffff;
}
#contact .form-group input::placeholder,
#contact .form-group textarea::placeholder { color: rgba(255,255,255,.35); }
#contact .form-group input:focus,
#contact .form-group textarea:focus { border-color: #818cf8; }
#contact .form-note { color: #818cf8; }
#contact .btn-primary { background: #818cf8; color: #0a0a0a; border-color: #818cf8; }
#contact .btn-primary:hover { background: transparent; color: #818cf8; opacity: 1; }

/* ── Effet apesanteur : élévation 3D subtile sur toutes les cartes ── */
body.light-mode .skill-item,
body.light-mode .doc-card,
body.light-mode .veille-slide,
body.light-mode .bento-anim,
body.light-mode .ppt-stage,
body.light-mode .feedly-step,
body.light-mode .pdf-modal-box {
  box-shadow: var(--float-shadow);
  border-top-color: rgba(255,255,255,.92);
}
body.light-mode .skill-item:hover,
body.light-mode .doc-card:hover,
body.light-mode .veille-slide:hover {
  box-shadow: var(--float-shadow-hover);
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}
a { color: var(--accent); text-decoration: none; transition: opacity var(--transition); }
a:hover { opacity: 0.8; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: var(--font); }
sup { font-size: 0.65em; vertical-align: super; }

/* ---- Utilitaires ---- */
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.accent { color: var(--accent); }
.section { padding: 96px 0; position: relative; z-index: 1; background: var(--bg); }
.section-alt {
  position: relative;
  z-index: 1;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--text-head);
  margin-bottom: 16px;
  position: relative;
  display: inline-block;
}
.section-title::after {
  content: '';
  position: absolute;
  left: 0; bottom: -8px;
  width: 48px; height: 3px;
  background: var(--accent);
  border-radius: 2px;
}
.section-subtitle {
  color: var(--text-muted);
  margin-top: 24px;
  margin-bottom: 40px;
  max-width: 560px;
}

/* ============================================================
   BARRE DE PROGRESSION
   ============================================================ */
.scroll-progress-bar {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-3));
  z-index: 9999;
  border-radius: 0 2px 2px 0;
  transition: width .08s linear;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
#navbar {
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 48px);
  max-width: 1100px;
  height: var(--nav-h);
  background: rgba(15,15,15,.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 16px;
  z-index: 1000;
  box-shadow: 0 8px 32px rgba(0,0,0,.35), 0 2px 8px rgba(0,0,0,.2);
  transition: background var(--transition), box-shadow var(--transition);
}
.nav-container {
  max-width: 100%; margin: 0; padding: 0 24px;
  height: 100%; display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-head);
}
.logo-bracket { color: var(--accent); }

.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-links a {
  color: var(--text-head);
  font-size: .9rem;
  font-weight: 500;
  position: relative;
  padding-bottom: 2px;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--accent);
  transition: width var(--transition);
}
.nav-links a:hover,
.nav-links a.active { color: var(--text-head); opacity: 1; }
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

/* Burger (mobile) */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 4px;
}
.nav-toggle span {
  display: block; width: 24px; height: 2px;
  background: var(--text-muted);
  border-radius: 2px;
  transition: var(--transition);
}

/* Theme toggle */
.theme-toggle {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 15px;
  height: 40px;
  border-radius: 20px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 1.05rem;
  transition: all var(--transition);
  flex-shrink: 0;
}
.theme-toggle:hover {
  border-color: rgba(255,255,255,.3);
  color: var(--text-head);
}
.toggle-label {
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.icon-sun, .icon-moon { font-size: 1.1rem; line-height: 1; }
.icon-sun  { display: none; }
.icon-moon { display: block; }
body.light-mode .icon-sun  { display: block; }
body.light-mode .icon-moon { display: none; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--nav-h) + 28px) 24px 0;
  overflow: hidden;
  background: #0a0a0a;
  z-index: 0;
}
/* ── Virtual scroll ────────────────────────────────────── */
#smooth-clip {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100vh;
  overflow: hidden;
  z-index: 1;
  pointer-events: none;
}
#smooth-wrapper {
  will-change: transform;
  pointer-events: none;
}
/* Réactive les interactions sur tout le contenu (pointer-events est hérité) */
#smooth-wrapper > *:not(.hero-spacer) {
  pointer-events: auto;
}
/* ─────────────────────────────────────────────────────── */

.hero-spacer { height: 100vh; display: block; pointer-events: none; }
body.light-mode .hero .hero-welcome { color: rgba(255,255,255,.65); filter: none; }
body.light-mode .hero .hero-name { color: #ffffff; filter: none; }
body.light-mode .hero .hero-name .accent { color: #818cf8; }
body.light-mode .hero .hero-sub { color: rgba(255,255,255,.55); }
body.light-mode .hero .hero-tag { color: #818cf8; background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.2); }
body.light-mode .hero .typing-text,
body.light-mode .hero .typing-cursor { color: #818cf8; }
body.light-mode .hero .hero-scroll-hint span { border-color: rgba(255,255,255,.25); }
body.light-mode .hero .btn-outline { border-color: rgba(255,255,255,.25); color: rgba(255,255,255,.75); }
body.light-mode .hero .btn-outline:hover { border-color: #818cf8; color: #818cf8; opacity: 1; }

/* Canvas animation réseau */
#heroCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* Spotlight qui suit la souris */
.hero-spotlight {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    circle 420px at var(--mx, 50%) var(--my, 40%),
    rgba(255,255,255,.10) 0%,
    transparent 70%
  );
  transition: background 0.05s linear;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
}
.hero-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: .8rem;
  color: var(--accent);
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.25);
  padding: 5px 16px;
  border-radius: 20px;
  margin-bottom: 24px;
  letter-spacing: .04em;
}
.hero-welcome {
  font-size: clamp(1.1rem, 2.2vw, 1.5rem);
  font-weight: 300;
  color: var(--text);
  margin-bottom: 8px;
  letter-spacing: .03em;
}
.hero-name {
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 700;
  color: var(--text-head);
  line-height: 1.1;
  margin-bottom: 16px;
}
.hero-sub {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: var(--text-muted);
  margin-bottom: 40px;
}
.hero-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* Scroll hint */
.hero-scroll-hint {
  margin-top: 64px;
  display: flex;
  justify-content: center;
}
.hero-scroll-hint span {
  display: block;
  width: 24px; height: 40px;
  border: 2px solid var(--border);
  border-radius: 12px;
  position: relative;
}
.hero-scroll-hint span::after {
  content: '';
  position: absolute;
  top: 6px; left: 50%; transform: translateX(-50%);
  width: 4px; height: 8px;
  background: var(--accent);
  border-radius: 2px;
  animation: scrollDot 1.6s infinite;
}
@keyframes scrollDot {
  0%,100% { opacity: 1; top: 6px; }
  50%      { opacity: 0; top: 20px; }
}

/* Typing effect */
.hero-sub {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: var(--text-muted);
  margin-bottom: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}
.typing-wrapper {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}
.typing-text {
  color: var(--accent);
  font-weight: 600;
  min-width: 2ch;
}
.typing-cursor {
  color: var(--accent);
  font-weight: 300;
  animation: blink .75s step-end infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }

/* ============================================================
   ANIMATIONS D'ENTRÉE – chargement de page
   ============================================================ */
@keyframes pageReveal {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes navbarDrop {
  from { opacity: 0; transform: translateX(-50%) translateY(-28px) scale(.97); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0)     scale(1);   }
}
@keyframes heroUp {
  from { opacity: 0; transform: translateY(36px); }
  to   { opacity: 1; transform: translateY(0);    }
}
@keyframes heroFade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

body     { animation: pageReveal 0.35s ease both; }
#navbar  { animation: navbarDrop 0.75s cubic-bezier(0.34,1.3,0.64,1) 0.05s both; }

.hero-tag         { animation: heroUp   0.65s ease 0.22s  both; }
.hero-welcome     { animation: heroUp   0.65s ease 0.38s  both; }
.hero-name        { animation: heroUp   0.60s ease 0.54s  both; }
.hero-sub         { animation: heroUp   0.65s ease 0.72s  both; }
.hero-btns        { animation: heroUp   0.65s ease 0.90s  both; }
.hero-scroll-hint { animation: heroFade 0.80s ease 1.15s  both; }

/* Respect du paramètre "réduire les animations" */
@media (prefers-reduced-motion: reduce) {
  body, #navbar,
  .hero-tag, .hero-welcome, .hero-name,
  .hero-sub, .hero-btns, .hero-scroll-hint { animation: none; }
}

/* Matrix scramble (appliqué via JS sur les lettres du nom) */
.hero-name .matrix-char {
  display: inline-block;
  font-family: var(--font-mono);
  transition: color .08s;
}
.hero-name .matrix-char.scrambling       { color: var(--accent-2); }
.hero-name .matrix-char.settled          { color: var(--text-head); }
.hero-name .matrix-char.settled.accent   { color: var(--accent); }

/* ============================================================
   BOUTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-size: .95rem;
  font-weight: 600;
  border: 2px solid transparent;
  transition: all var(--transition);
}
.btn-primary {
  background: var(--accent);
  color: var(--bg);
}
.btn-primary:hover {
  background: transparent;
  border-color: var(--accent);
  color: var(--accent);
  opacity: 1;
}
.btn-outline {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  opacity: 1;
}
.btn-full { width: 100%; justify-content: center; white-space: nowrap; }

/* ============================================================
   À PROPOS – NOUVEAU LAYOUT
   ============================================================ */

/* ── Bento Grid À propos ── */
.about-bento {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 56px;
  margin-top: 48px;
  align-items: center;
  grid-template-areas: "qui anim";
}
.bento-qui  { grid-area: qui;  display: flex; flex-direction: column; }
.bento-anim {
  grid-area: anim;
  height: 400px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  position: relative;
  will-change: transform;
  transform-style: preserve-3d;
  transition: transform .6s cubic-bezier(0.34,1.3,0.64,1), box-shadow .6s ease;
  cursor: default;
}
.bento-anim-img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Reflet lumineux (créé dynamiquement en JS) */
.bento-anim-shine {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 2;
  opacity: 0;
  transition: opacity .3s ease;
}

.bento-qui > p {
  font-size: .93rem;
  color: var(--text);
  line-height: 1.8;
  margin-bottom: 14px;
}
.bento-qui > p:last-of-type { margin-bottom: 0; }


/* Tuile Stats – 2×2 sans titre */
.bento-stats {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
}
.bento-stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 28px 12px;
  gap: 8px;
  transition: background var(--transition);
}
.bento-stat-item:hover { background: rgba(255,255,255,.04); }
.bento-stat-item:nth-child(1),
.bento-stat-item:nth-child(2) { border-bottom: 1px solid var(--border); }
.bento-stat-item:nth-child(odd) { border-right: 1px solid var(--border); }

/* ── Carte Profil (colonne gauche) ── */
.profile-card {
  background: var(--bg-card);
  border-radius: 16px;
  padding: 32px 24px;
  text-align: center;
  border: 1px solid var(--border);
}

/* Photo avec anneau dégradé */
.profile-photo-wrap {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-3));
  padding: 3px;
  margin: 0 auto 18px;
}
.profile-photo {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
}

.profile-role {
  font-size: .85rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 20px;
  letter-spacing: .02em;
}

.profile-contacts {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
  text-align: left;
}
.profile-contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .82rem;
  color: var(--text-muted);
}
.profile-contact-item .pci-icon { font-size: 1rem; flex-shrink: 0; }
.profile-contact-item a { color: var(--text-muted); }
.profile-contact-item a:hover { color: var(--accent); opacity: 1; }

/* Grille de stats 2×2 */
.profile-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 22px;
}
.profile-stat {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.stat-val {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}
.stat-lbl {
  font-size: .68rem;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.3;
}

/* ── Panneaux Info (colonne droite) ── */
.about-panels {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.about-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px 28px;
  transition: border-color var(--transition);
}
.about-panel:hover {
  border-color: var(--accent);
}
.panel-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.panel-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}
/* Centres d'intérêt */
.about-interests {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.about-interests .panel-sub-title {
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.interests-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.interest-item {
  font-size: .88rem;
  color: var(--text);
  font-weight: 500;
}
.btn-cv {
  margin-top: 20px;
  align-self: flex-start;
}
.cv-btns-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
}
.cv-btns-row .btn {
  flex: 1 1 0;
  justify-content: center;
  font-family: inherit;
  min-width: 160px;
  cursor: pointer;
}
.panel-header h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-head);
}
.about-panel p {
  font-size: .88rem;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 10px;
}
.about-panel p:last-child { margin-bottom: 0; }

/* Ligne avec deux panneaux côte à côte */
.about-panel-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.panel-sub-title {
  font-size: .9rem;
  font-weight: 700;
  margin-bottom: 14px;
}
.panel-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.panel-list li {
  font-size: .84rem;
  color: var(--text-head);
  display: flex;
  align-items: center;
  gap: 8px;
}
.panel-list li::before {
  content: '';
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}
.panel-interests .panel-list li::before,
.panel-list-green li::before { background: var(--accent-2); }

/* Timeline Formation + Expériences */
.about-exp-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-top: 56px;
  padding-top: 48px;
  border-top: 1px solid var(--border);
  align-items: start;
}

.about-exp-col {
  background: rgba(255,255,255,.72);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 24px;
}

.about-exp-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-head);
  text-align: center;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.info-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 18px;
}
.info-label {
  display: block;
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.info-value {
  font-weight: 600;
  color: var(--text-head);
  font-size: .9rem;
}

/* ============================================================
   COMPÉTENCES – layout lignes + chips
   ============================================================ */
.skills-rows {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 48px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.skill-row {
  display: grid;
  grid-template-columns: 180px 1fr;
  align-items: center;
  gap: 0;
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}
.skill-row:last-child { border-bottom: none; }
.skill-row:hover { background: rgba(255,255,255,.03); }

.skill-row-label {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 24px;
  font-weight: 600;
  font-size: .95rem;
  color: var(--text-head);
  border-right: 1px solid var(--border);
  background: var(--bg-card);
  height: 100%;
}
.skill-row-icon { font-size: 1.4rem; flex-shrink: 0; }

.skill-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 16px 24px;
}
.chip {
  display: inline-block;
  font-size: .78rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 20px;
  border: 1px solid transparent;
  transition: transform var(--transition), box-shadow var(--transition);
  cursor: default;
}
.chip:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,.3); }
.chip-blue   { background: rgba(220,220,220,.08); border-color: rgba(220,220,220,.25); color: #d0d0d0; }
.chip-green  { background: rgba(190,190,190,.08); border-color: rgba(190,190,190,.25); color: #b0b0b0; }
.chip-red    { background: rgba(160,160,160,.08); border-color: rgba(160,160,160,.25); color: #909090; }
.chip-yellow { background: rgba(130,130,130,.08); border-color: rgba(130,130,130,.25); color: #707070; }

/* ============================================================
   COMPÉTENCES – conteneurs avec grille de skills
   ============================================================ */
.skill-containers {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-top: 48px;
}
.skill-container {
  padding-bottom: 12px;
}
.skill-container-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 0 20px 0;
  border-bottom: 2px solid var(--border);
  margin-bottom: 24px;
}
.sc-icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}
.skill-container-header h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-head);
}

.skill-items-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.skill-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  cursor: default;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}
.skill-item:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
}
.skill-item:hover .skill-item-name { color: var(--accent); }
.skill-item-header {
  display: flex;
  align-items: center;
  gap: 14px;
}
.skill-item-logo {
  width: 40px; height: 40px;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 8px;
}
.skill-item-name {
  font-size: .93rem;
  font-weight: 700;
  color: var(--text-head);
  line-height: 1.3;
  transition: color var(--transition);
}
.skill-item-desc {
  font-size: .8rem;
  color: var(--text);
  line-height: 1.65;
}

/* Placeholder quand pas d'image */
.skill-logo-icon {
  width: 40px; height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

/* ============================================================
   DOCUMENTATIONS
   ============================================================ */
.docs-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin: 32px 0 36px;
}
.filter-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.filter-bar::-webkit-scrollbar { display: none; }

/* Select de tri */
.sort-select {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 7px 36px 7px 16px;
  border-radius: 20px;
  font-size: .85rem;
  font-family: var(--font);
  font-weight: 500;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%238b949e' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  transition: border-color var(--transition), color var(--transition);
}
.sort-select:focus {
  outline: none;
  border-color: var(--accent);
  color: var(--text-head);
}
.filter-btn {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 7px 18px;
  border-radius: 20px;
  font-size: .85rem;
  font-weight: 500;
  transition: all var(--transition);
}
.filter-btn:hover,
.filter-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
}

.docs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

/* ============================================================
   CERTIFICATIONS
   ============================================================ */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 40px;
}
.cert-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  transform-style: preserve-3d;
  transition: transform .6s cubic-bezier(0.34,1.3,0.64,1), box-shadow .6s ease, border-color var(--transition);
  cursor: default;
}
.cert-card:hover {
  border-color: var(--accent);
  box-shadow: 0 12px 32px rgba(0,0,0,.25);
}
.cert-badge-img {
  background: #0f172a;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
  border-bottom: 1px solid var(--border);
}
.cert-badge-img img {
  width: 130px;
  height: 130px;
  object-fit: contain;
}
.cert-info {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.cert-issuer {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--accent);
  margin-bottom: 6px;
}
.cert-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-head);
  margin: 0 0 10px;
}
.cert-desc {
  font-size: .84rem;
  color: var(--text-muted);
  line-height: 1.55;
  flex: 1;
  margin: 0 0 16px;
}
.cert-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.cert-date {
  font-size: .78rem;
  font-weight: 600;
  color: var(--text-muted);
}
.cert-verify-btn {
  font-size: .78rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
  text-decoration: none;
  transition: background var(--transition), color var(--transition);
  white-space: nowrap;
}
.cert-verify-btn:hover {
  background: var(--accent);
  color: #fff;
}
/* Pagination docs */
.docs-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 36px;
  flex-wrap: wrap;
}
.docs-page-btn {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-head);
  font-size: .88rem;
  font-weight: 600;
  padding: 10px 22px;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
  white-space: nowrap;
}
.docs-page-btn:hover:not(:disabled) {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.docs-page-btn:disabled {
  opacity: .35;
  cursor: default;
}
.docs-page-info {
  font-size: .88rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
}
/* ── Carte document – style "fichier technique" ── */
.doc-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  cursor: default;
}
.doc-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: var(--shadow);
}

/* Bande colorée en haut selon la catégorie */
.doc-card-stripe {
  height: 4px;
  background: var(--cat-color, var(--accent));
  flex-shrink: 0;
}

/* En-tête : barre style "terminal" */
.doc-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px 8px;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}
.doc-card-header-dots { display: flex; gap: 5px; }
.dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  opacity: .5;
}
.dot-r { background: #888888; }
.dot-y { background: #666666; }
.dot-g { background: #444444; }

.doc-type-badge {
  font-family: var(--font-mono);
  font-size: .68rem;
  font-weight: 600;
  text-transform: uppercase;
  padding: 2px 9px;
  border-radius: 4px;
  letter-spacing: .04em;
}
.badge-reseau   { background: rgba(220,220,220,.1); color: #d0d0d0; }
.badge-systeme  { background: rgba(190,190,190,.1); color: #b0b0b0; }
.badge-securite { background: rgba(160,160,160,.1); color: #909090; }
.badge-projet   { background: rgba(130,130,130,.1); color: #707070; }
.badge-stage    { background: rgba(168,85,247,.15);  color: #c084fc; }

/* Image d'aperçu */
.doc-card-img {
  width: 100%;
  height: 190px;
  overflow: hidden;
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
}
.doc-card-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transition: transform 0.4s ease;
}
.doc-card:hover .doc-card-img img {
  transform: scale(1.04);
}

/* Corps */
.doc-card-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px 18px 14px;
  flex: 1;
}
.doc-card-body .doc-type-badge {
  align-self: flex-start;
  margin-bottom: 2px;
}
.doc-card h3 {
  font-size: .95rem;
  color: var(--text-head);
  font-weight: 600;
  line-height: 1.35;
}
.doc-card p {
  font-size: .81rem;
  color: var(--text-muted);
  line-height: 1.55;
  flex-grow: 1;
}

/* Pied */
.doc-card-footer {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
  padding: 10px 18px 14px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}
.doc-actions { display: flex; gap: 8px; align-items: center; }
.doc-btn {
  font-size: .78rem;
  font-weight: 600;
  padding: 6px 13px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition);
  font-family: var(--font);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.doc-btn:hover { border-color: var(--accent); color: var(--accent); opacity: 1; }
.doc-btn-primary {
  background: transparent;
  border-color: var(--accent);
  color: var(--accent);
  text-decoration: none;
}
.doc-btn-primary:hover { background: var(--accent); color: var(--bg); opacity: 1; }
.doc-btn-secondary {
  background: transparent;
  border-color: var(--border);
  color: var(--text-muted);
}
.doc-btn-secondary:hover { border-color: var(--accent); color: var(--accent); }

/* ============================================================
   TIMELINE
   ============================================================ */
.timeline {
  margin-top: 0;
  position: relative;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 20px;
  bottom: 20px;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent) 0%, var(--border) 70%);
  border-radius: 2px;
}
.tl-item {
  display: flex;
  gap: 20px;
  padding-bottom: 0;
  margin-bottom: 16px;
  align-items: flex-start;
}
.tl-item:last-child { margin-bottom: 0; }

.tl-left {
  flex-shrink: 0;
  width: 16px;
  display: flex;
  justify-content: center;
  margin-top: 17px;
  position: relative;
  z-index: 1;
}
.tl-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--border);
  border: 2px solid var(--bg-alt);
  flex-shrink: 0;
}
.tl-item:first-child .tl-dot {
  background: var(--accent);
  border-color: var(--bg-alt);
  box-shadow: 0 0 0 4px rgba(255,255,255,.15);
}

/* ── Couleur de bordure gauche par type de carte ── */
.tl-card:has(.tl-logo-cyber) { --tl-bar: #7c3aed; }
.tl-card:has(.tl-logo-it)    { --tl-bar: #2563eb; }
.tl-card:has(.tl-logo-net)   { --tl-bar: #0284c7; }
.tl-card:has(.tl-logo-bac)   { --tl-bar: #d97706; }
.tl-card:has(.tl-logo-chu)   { --tl-bar: #059669; }
.tl-card:has(.tl-logo-cystm) { --tl-bar: #6366f1; }

.tl-card {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--tl-bar, #6366f1);
  border-radius: 14px;
  padding: 20px 20px 20px 18px;
  box-shadow: var(--shadow);
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}
.tl-card:hover {
  border-color: var(--border);
  border-left-color: var(--tl-bar, #6366f1);
  transform: translateX(4px);
  box-shadow: var(--float-shadow);
}

/* ── En-tête carte ── */
.tl-card-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: -20px -20px 14px -18px;
  padding: 16px 20px 14px 18px;
  border-radius: 12px 12px 0 0;
  border-bottom: 1px solid var(--border);
  background: rgba(0,0,0,.025);
}
.tl-logo {
  width: 46px; height: 46px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; flex-shrink: 0;
  border: 1px solid rgba(255,255,255,.12);
}
.tl-logo-cyber { background: linear-gradient(135deg,#2d1b69,#6d28d9); }
.tl-logo-it    { background: linear-gradient(135deg,#1e3a5f,#2563eb); }
.tl-logo-net   { background: linear-gradient(135deg,#0c4a6e,#0284c7); }
.tl-logo-bac   { background: linear-gradient(135deg,#78350f,#d97706); }
.tl-logo-chu   { background: linear-gradient(135deg,#064e3b,#059669); }
.tl-logo-cystm { background: linear-gradient(135deg,#1f2937,#4b5563); }

.tl-card-meta { flex: 1; min-width: 0; }
.tl-period-badge {
  flex-shrink: 0;
  font-size: .68rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .05em;
  color: #fff;
  background: #1e293b;
  padding: 5px 11px; border-radius: 20px;
  white-space: nowrap;
}

/* ── Pied de carte (statut + progression) ── */
.tl-card-foot {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
.tl-status-line {
  display: flex; align-items: center; gap: 8px;
  font-size: .8rem; font-weight: 600;
  color: var(--text-head); margin-bottom: 10px;
}
.tl-status-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #22c55e; flex-shrink: 0;
  box-shadow: 0 0 6px #22c55e;
  animation: tlPulse 2s infinite;
}
.tl-status-dot.tl-status-future {
  background: #818cf8;
  box-shadow: 0 0 6px #818cf8;
}
.tl-card-foot:has(.tl-status-future) {
  background: rgba(34, 197, 94, .07);
  border-top: 1px solid rgba(34, 197, 94, .2);
  border-radius: 0 0 12px 10px;
  margin-top: 14px;
  margin-left:   -18px;
  margin-right:  -20px;
  margin-bottom: -20px;
  padding: 12px 20px 20px 18px;
}
@keyframes tlPulse {
  0%,100% { opacity:1; transform:scale(1); }
  50%      { opacity:.6; transform:scale(1.25); }
}
.tl-progress-wrap {
  display: flex; align-items: center; gap: 10px;
}
.tl-progress-label {
  font-size: .62rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .07em;
  color: var(--text-muted); white-space: nowrap;
}
.tl-progress-track {
  flex: 1; height: 5px;
  background: #334155; border-radius: 3px; overflow: hidden;
}
body.light-mode .tl-progress-track { background: #cbd5e1; }
.tl-progress-fill {
  height: 100%; border-radius: 3px;
  background: linear-gradient(90deg, #6366f1, #22c55e);
}
.tl-progress-pct {
  font-size: .72rem; font-weight: 700;
  color: #6366f1; white-space: nowrap;
}

/* ── Ancien .tl-top conservé pour compatibilité ── */
.tl-top { display: none; }
.tl-period {
  font-family: var(--font-mono);
  font-size: .75rem;
  color: var(--accent);
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  padding: 2px 10px;
  border-radius: 20px;
}
.tl-tag {
  font-size: .68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  padding: 2px 9px;
  border-radius: 20px;
}
.tl-tag-current {
  background: rgba(170,170,170,.12);
  border: 1px solid rgba(170,170,170,.25);
  color: var(--accent-2);
}
.tl-tag-future {
  background: rgba(99,112,255,.14);
  border: 1px solid rgba(99,112,255,.35);
  color: var(--accent);
}
.tl-tag-duration {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  color: var(--accent);
}
.tl-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-head);
  margin-bottom: 4px;
  line-height: 1.3;
}
.tl-school {
  font-size: .8rem;
  color: var(--text-muted);
  margin-bottom: 0;
}
.tl-desc {
  font-size: .82rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 12px;
}
.tl-missions-label {
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.tl-missions {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.tl-missions li {
  font-size: .82rem;
  color: var(--text-muted);
  line-height: 1.5;
  padding-left: 14px;
  position: relative;
}
.tl-missions li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--tl-bar, #6366f1);
  font-size: .7rem;
  top: 2px;
}

/* ============================================================
   MODAL PDF
   ============================================================ */
.pdf-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.pdf-modal.open { display: flex; }

.pdf-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.82);
  backdrop-filter: blur(8px);
  cursor: pointer;
}
.pdf-modal-box {
  position: relative;
  z-index: 1;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent);
  border-radius: 16px;
  width: 100%;
  max-width: 980px;
  height: 92vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 32px 80px rgba(0,0,0,.7), 0 0 60px rgba(255,255,255,.08);
  overflow: hidden;
  animation: modalIn .28s cubic-bezier(0.34, 1.3, 0.64, 1);
}
@keyframes modalIn {
  from { opacity: 0; transform: scale(.93) translateY(28px); }
  to   { opacity: 1; transform: none; }
}
.pdf-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(255,255,255,.08), rgba(0,0,0,.12));
  gap: 16px;
  flex-shrink: 0;
}
.pdf-modal-title-area {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  flex: 1;
}
.pdf-modal-doc-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.28);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}
.pdf-modal-title-text { min-width: 0; }
.pdf-modal-header h3 {
  font-size: 1rem;
  color: var(--text-head);
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pdf-modal-subtitle {
  font-size: .74rem;
  color: var(--text-muted);
  margin-top: 2px;
}
.pdf-modal-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.btn-sm { padding: 8px 18px; font-size: .8rem; }
.pdf-modal-close {
  background: none;
  border: 1.5px solid var(--border);
  color: var(--text-muted);
  width: 40px; height: 40px;
  border-radius: 8px;
  font-size: 1.3rem;
  line-height: 1;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition);
}
.pdf-modal-close:hover {
  border-color: #f85149;
  color: #f85149;
  background: rgba(248,81,73,.1);
}
.pdf-modal-body { flex: 1; overflow: hidden; }
.pdf-modal-body iframe {
  width: 100%;
  height: 100%;
  border: none;
  background: #fff;
}
.pdf-modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 24px;
  border-top: 1px solid var(--border);
  background: rgba(0,0,0,.08);
  flex-shrink: 0;
  font-size: .76rem;
  color: var(--text-muted);
}
.pdf-kbd {
  display: inline-block;
  padding: 1px 7px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--bg-alt);
  font-size: .7rem;
  font-family: var(--font-mono);
  color: var(--text);
}
.pdf-modal-type {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 6px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  color: var(--accent);
  font-size: .72rem;
  font-weight: 700;
  font-family: var(--font-mono);
  letter-spacing: .06em;
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 56px;
  margin-top: 40px;
  align-items: start;
}
.contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 28px;
}
.contact-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
  margin-top: 2px;
}
.contact-item strong { color: var(--text-head); display: block; margin-bottom: 2px; }
.contact-item p { font-size: .9rem; color: var(--text-muted); margin: 0; }
.contact-item a { color: var(--accent); }

.contact-form { display: flex; flex-direction: column; gap: 18px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: .85rem; color: var(--text-muted); font-weight: 500; }
.form-group input,
.form-group textarea {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-head);
  border-radius: var(--radius);
  padding: 12px 16px;
  font-family: var(--font);
  font-size: .9rem;
  transition: border-color var(--transition);
  resize: vertical;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-muted); }
.form-note { font-size: .82rem; color: var(--accent-2); margin-top: 4px; min-height: 1.2em; }

/* ============================================================
   VEILLE TECHNOLOGIQUE
   ============================================================ */

/* --- Slides structure (présentation type PowerPoint) --- */
.veille-slide {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 32px;
  margin-bottom: 20px;
}
.veille-slide-feedly {
  border-top: 3px solid var(--accent-2);
}
.veille-slide-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}
.veille-slide-num {
  font-size: 2.8rem;
  font-weight: 800;
  font-family: var(--font-mono);
  color: var(--accent);
  opacity: .18;
  line-height: 1;
  flex-shrink: 0;
  user-select: none;
}
.veille-slide-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-head);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.veille-slide-badge {
  font-size: .65rem;
  font-weight: 600;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 20px;
  padding: 2px 8px;
  letter-spacing: .04em;
  vertical-align: middle;
}
.veille-slide-subtitle {
  font-size: .88rem;
  color: var(--text-muted);
}

/* Slide 01 – Définition & Pourquoi */
.veille-def-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.veille-def-label {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--accent);
  margin-bottom: 10px;
}
.veille-def-text {
  font-size: .9rem;
  color: var(--text-muted);
  line-height: 1.75;
}

/* Slide 02 – Note Feedly RSS/IA */
.feedly-note {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: rgba(130,130,130,.06);
  border: 1px solid rgba(130,130,130,.2);
  border-radius: 8px;
  padding: 14px 16px;
  margin-top: 20px;
  font-size: .84rem;
  color: var(--text-muted);
  line-height: 1.65;
}
.feedly-note-icon { font-size: 1.1rem; flex-shrink: 0; margin-top: 1px; }

/* Slide 03 – Types de sources */
.veille-types-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 14px;
}
.veille-type-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.veille-type-icon { font-size: 1.4rem; line-height: 1; }
.veille-type-name { font-size: .84rem; font-weight: 600; color: var(--text-head); }
.veille-type-examples { font-size: .76rem; color: var(--text-muted); }

/* Schéma flux */
.feedly-flow {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.feedly-step {
  flex: 1;
  min-width: 130px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px 14px;
  text-align: center;
}
.feedly-step-accent {
  border-color: rgba(255,255,255,.5);
  background: rgba(255,255,255,.05);
}
.feedly-step-num {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--bg);
  font-size: .78rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px;
}
.feedly-step-title {
  font-size: .88rem;
  font-weight: 600;
  color: var(--text-head);
  margin-bottom: 8px;
}
.feedly-step-desc {
  font-size: .78rem;
  color: var(--text-muted);
  line-height: 1.5;
}
.feedly-step-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  justify-content: center;
}
.feedly-step-tags span {
  font-size: .66rem;
  background: rgba(255,255,255,.1);
  color: var(--accent);
  border: 1px solid rgba(255,255,255,.25);
  padding: 2px 7px;
  border-radius: 10px;
}
.feedly-flow-arrow {
  font-size: 1.4rem;
  color: var(--text-muted);
  flex-shrink: 0;
}
.feedly-legend {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.feedly-legend-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .8rem;
  color: var(--text-muted);
}
.feedly-legend-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* Slide 04 – Lecteur de présentation (style PowerPoint) */
.ppt-player {
  user-select: none;
}

/* Scène principale */
.ppt-stage {
  position: relative;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  height: 300px;
  overflow: hidden;
  margin-bottom: 0;
}

/* Diapositive individuelle */
.ppt-slide {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 32px 48px 44px;
  text-align: center;
  overflow: hidden;
}
.ppt-slide-logo {
  height: 60px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  margin-bottom: 4px;
}
.ppt-slide-icon {
  font-size: 3.2rem;
  line-height: 1;
  margin-bottom: 4px;
}
.ppt-slide-tag {
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  border: 1px solid;
  padding: 3px 10px;
  border-radius: 12px;
}
.ppt-slide-name {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-head);
  margin: 0;
}
.ppt-slide-desc {
  font-size: .86rem;
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 460px;
  margin: 0;
}

/* Barre de progression */
.ppt-progress-bar {
  height: 3px;
  background: var(--border);
  border-radius: 0 0 var(--radius) var(--radius);
  overflow: hidden;
  margin-bottom: 14px;
}
.ppt-progress-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
  transition: width .45s ease;
  width: 10%; /* updated by JS */
}

/* Barre de navigation */
.ppt-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 16px;
}
.ppt-arrow {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: var(--bg-card);
  color: var(--text-muted);
  font-size: .9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  cursor: pointer;
  flex-shrink: 0;
}
.ppt-arrow:hover {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 0 14px rgba(255,255,255,.2);
}
.ppt-counter {
  font-family: var(--font-mono);
  font-size: .88rem;
  color: var(--text-muted);
  min-width: 52px;
  text-align: center;
}

/* Vignettes */
.ppt-thumbs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}
.ppt-thumb {
  width: 52px; height: 40px;
  border-radius: 6px;
  border: 1.5px solid var(--border);
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
  overflow: hidden;
  padding: 5px;
  flex-shrink: 0;
}
.ppt-thumb img {
  width: 100%; height: 100%;
  object-fit: contain;
}
.ppt-thumb span { font-size: 1.1rem; }
.ppt-thumb:hover { border-color: var(--accent); transform: translateY(-2px); }
.ppt-thumb.active {
  border-color: var(--accent);
  box-shadow: 0 0 10px rgba(255,255,255,.25);
  transform: translateY(-2px);
}

/* ============================================================
   MODAL VUE ÉCLATÉE – SOURCE VEILLE
   ============================================================ */
.veille-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.65);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}
.veille-modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}
.veille-modal-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 36px;
  max-width: 560px;
  width: 100%;
  margin: auto;
  position: relative;
  transform: translateY(24px) scale(.96);
  transition: transform .3s cubic-bezier(0.34,1.1,0.64,1);
}
.veille-modal-overlay.open .veille-modal-box {
  transform: translateY(0) scale(1);
}
.veille-modal-close {
  position: absolute;
  top: 14px; right: 14px;
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  font-size: .85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}
.veille-modal-close:hover { border-color: var(--accent); color: var(--accent); }
.veille-modal-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.veille-modal-media { flex-shrink: 0; }
.veille-modal-media img {
  height: 56px; width: auto; max-width: 130px;
  object-fit: contain;
}
.veille-modal-media span { font-size: 2.8rem; line-height: 1; }
.veille-modal-tag {
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  border: 1px solid;
  padding: 3px 10px;
  border-radius: 12px;
  display: inline-block;
  margin-bottom: 10px;
}
.veille-modal-name {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-head);
  margin: 0;
}
.veille-modal-body { font-size: .88rem; color: var(--text-muted); line-height: 1.8; }
.veille-modal-body ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.veille-modal-body li {
  padding-left: 20px;
  position: relative;
}
.veille-modal-body li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: .75rem;
  top: 4px;
}

/* Indice "cliquer" sur la scène */
.ppt-stage {
  cursor: pointer;
}
.ppt-stage::after {
  content: "↗ Voir le détail";
  position: absolute;
  bottom: 10px;
  right: 12px;
  font-size: .68rem;
  font-family: var(--font-mono);
  color: var(--accent);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 3px 10px;
  opacity: 0.65;
  transition: opacity var(--transition), transform var(--transition);
  pointer-events: none;
  letter-spacing: .03em;
}
.ppt-stage:hover::after {
  opacity: 1;
  transform: translateY(-2px);
}
.ppt-thumb { position: relative; }
.ppt-thumb::after {
  content: attr(title);
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-head);
  font-size: .65rem;
  white-space: nowrap;
  padding: 3px 8px;
  border-radius: 6px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .15s ease, transform .15s ease;
  z-index: 10;
}
.ppt-thumb:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ============================================================
   ACTUALITÉS EN DIRECT
   ============================================================ */
.actu-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 24px;
}
.actu-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.actu-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,.1);
  border-color: var(--accent);
}
.actu-card[data-source="Dark Reading"]      { --actu-c: #dc2626; }
.actu-card[data-source="Krebs on Security"] { --actu-c: #2563eb; }
.actu-card[data-source="Bleeping Computer"] { --actu-c: #ea580c; }
.actu-card[data-source="The Hacker News"]   { --actu-c: #7c3aed; }
.actu-card[data-source="The Register"]      { --actu-c: #0f766e; }

/* Ligne source + thème */
.actu-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
/* Badge source — clairement identifié comme revue */
.actu-source {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: .68rem;
  font-weight: 700;
  color: var(--actu-c, var(--accent));
  flex-shrink: 0;
}
.actu-source-icon { font-size: .75rem; }
.actu-source-logo {
  width: 16px;
  height: 16px;
  object-fit: contain;
  border-radius: 3px;
  flex-shrink: 0;
}
/* Badge thème — fond léger */
.actu-theme {
  font-size: .63rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  padding: 2px 8px;
  border-radius: 20px;
  background: rgba(99,102,241,.1);
  color: var(--accent);
  border: 1px solid rgba(99,102,241,.2);
  white-space: nowrap;
}
/* Filtres thèmes */
.actu-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 16px 0 14px;
}
.actu-filter-btn {
  padding: 5px 14px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-muted);
  font-size: .76rem;
  font-weight: 500;
  cursor: pointer;
  font-family: var(--font-sans, 'Inter', sans-serif);
  transition: all .18s;
}
.actu-filter-btn:hover  { border-color: var(--accent); color: var(--accent); }
.actu-filter-btn.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.actu-title {
  font-size: .93rem;
  font-weight: 600;
  color: var(--text-head);
  line-height: 1.45;
  margin: 0;
  flex: 1;
}
.actu-time {
  font-size: .75rem;
  color: var(--text-muted);
  margin-top: 4px;
}
.actu-more-btn {
  display: block;
  width: 100%;
  margin-top: 20px;
  text-align: center;
  font-size: .82rem;
  letter-spacing: .08em;
  font-weight: 700;
  padding: 16px 0;
  border-radius: 12px;
  box-sizing: border-box;
  transition: background .22s, color .22s, border-color .22s, transform .15s;
}
.actu-more-btn:hover {
  background: var(--accent, #6366f1) !important;
  color: #fff !important;
  border-color: var(--accent, #6366f1) !important;
  transform: translateY(-2px);
}
.actu-loading,
.actu-error {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--text-muted);
  padding: 40px 20px;
  font-size: .9rem;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  position: relative;
  z-index: 1;
  background: #0a0a0a;
  border-top: 1px solid rgba(255,255,255,.08);
  text-align: center;
  padding: 36px 24px;
  font-size: .85rem;
  color: rgba(255,255,255,.45);
}
.footer-sub { margin-top: 4px; font-size: .8rem; color: rgba(255,255,255,.28); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  .section { padding: 72px 0; }

  /* Skills containers → 2 colonnes sur tablette */
  .skill-items-grid { grid-template-columns: repeat(2, 1fr); }

  /* Nav flottante mobile */
  #navbar { width: calc(100% - 24px); }
  .nav-links {
    display: none;
    position: absolute;
    top: calc(var(--nav-h) + 4px);
    left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px 0;
    box-shadow: 0 8px 24px rgba(0,0,0,.3);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 14px 24px; width: 100%; }
  .nav-links a::after { display: none; }
  .nav-toggle { display: flex; }

  /* About – Bento tablette */
  .about-bento {
    grid-template-columns: 1fr;
    gap: 32px;
    grid-template-areas:
      "qui"
      "anim";
  }
  .bento-anim { height: 300px; }
  .about-exp-grid { grid-template-columns: 1fr; gap: 40px; }

  /* Contact */
  .contact-grid { grid-template-columns: 1fr; gap: 36px; }

  /* Veille – slides */
  .veille-slide { padding: 20px 18px; }
  .veille-slide-num { font-size: 2rem; }
  .veille-def-grid { grid-template-columns: 1fr; }
  .veille-types-grid { grid-template-columns: repeat(2, 1fr); }

  /* Actualités – 1 colonne sur mobile */
  .actu-grid { grid-template-columns: 1fr; }

  /* Veille – flux Feedly colonne */
  .feedly-flow { flex-direction: column; align-items: stretch; }
  .feedly-flow-arrow { transform: rotate(90deg); text-align: center; }
  .feedly-step { width: 100%; }

  /* Veille – présentation mobile */
  .ppt-stage { height: 260px; }
  .ppt-slide { padding: 24px 20px; }
  .ppt-slide-logo { height: 48px; }
  .ppt-slide-icon { font-size: 2.4rem; }
  .ppt-slide-name { font-size: 1.1rem; }
  .ppt-thumb { width: 44px; height: 34px; }
  .ppt-arrow { width: 32px; height: 32px; font-size: .8rem; }

  /* Timeline – icône légèrement réduite */
  .tl-logo { width: 38px; height: 38px; font-size: 1.05rem; }

  /* Timeline – pleine largeur sur mobile : on cache dot + ligne verticale */
  .timeline::before { display: none; }
  .tl-left { display: none; }
  .tl-item { display: block; margin-bottom: 20px; }
  .tl-card { width: 100%; }
  .about-exp-title { text-align: center; margin-bottom: 20px; }

  /* En-tête de carte : colonne centrée sur mobile */
  .tl-card-head {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
  }
  .tl-card-meta { text-align: center; }
  .tl-period-badge { margin-top: 4px; }

  /* Modal PDF – en-tête compact */
  .pdf-modal-header { padding: 14px 18px; }
}

@media (max-width: 480px) {
  .section { padding: 56px 0; }
  .hero-name { font-size: 2rem; }
  .hero-btns { flex-direction: column; align-items: center; }
  .skill-items-grid { grid-template-columns: 1fr; gap: 20px 24px; }

  /* About – Bento mobile : une colonne */
  .about-bento {
    grid-template-columns: 1fr;
    gap: 24px;
    grid-template-areas:
      "qui"
      "anim";
  }
  .bento-anim { height: 240px; }

  /* Boutons CV empilés */
  .cv-btns-row { flex-direction: column; }
  .cv-btns-row .btn { width: 100%; min-width: unset; justify-content: center; }

  /* Veille – numéro de slide et types */
  .veille-slide { padding: 18px 14px; }
  .veille-slide-num { font-size: 1.6rem; }
  .veille-types-grid { grid-template-columns: 1fr; }

  /* Timeline – icône et badge */
  .tl-logo { width: 34px; height: 34px; font-size: .9rem; }
  .tl-period-badge { font-size: .62rem; letter-spacing: .03em; }

  /* Docs – 1 colonne forcée + pagination adaptée */
  .docs-grid { grid-template-columns: 1fr; }
  .docs-page-btn { padding: 10px 16px; font-size: .82rem; }
  .docs-pagination { gap: 10px; margin-top: 24px; }

  /* Modal PDF compact */
  .pdf-modal-header { padding: 12px 14px; }
  .pdf-modal-doc-icon { width: 36px; height: 36px; font-size: 1rem; }

  /* Intérêts – tags plus petits */
  .interest-item { font-size: .8rem; padding: 4px 10px; }
}

@media (max-width: 360px) {
  .container { padding: 0 14px; }
  .section { padding: 40px 0; }

  /* Hero */
  .hero-name { font-size: 1.6rem; }
  .hero-tag  { font-size: .72rem; letter-spacing: .02em; }

  /* Nav */
  #navbar { width: calc(100% - 12px); }

  /* About */
  .bento-anim { height: 190px; }

  /* Veille */
  .veille-slide { padding: 14px 12px; }
  .veille-slide-num { font-size: 1.2rem; }

  /* Timeline */
  .tl-card-head { gap: 8px; }
  .tl-logo { width: 30px; height: 30px; font-size: .8rem; }
  .tl-period-badge { font-size: .58rem; }
  .tl-title { font-size: .88rem; }
}

/* ============================================================
   ANIMATIONS D'ENTRÉE AU SCROLL
   ============================================================ */
.fade-in,
.reveal,
.reveal-up {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .65s ease, transform .65s ease;
}
.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity .65s ease, transform .65s ease;
}
.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity .65s ease, transform .65s ease;
}
.reveal-scale {
  opacity: 0;
  transform: scale(.93);
  transition: opacity .6s ease, transform .6s ease;
}
.fade-in.visible,
.reveal.visible,
.reveal-up.visible,
.reveal-left.visible,
.reveal-right.visible,
.reveal-scale.visible {
  opacity: 1;
  transform: none;
}

/* Décoration dégradée sur les sections */
.section-deco {
  position: relative;
}
.section-deco::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  pointer-events: none;
  z-index: 0;
}
.section-deco > .container { position: relative; z-index: 1; }

/* Flèches de navigation du modal (PC uniquement) */
.veille-modal-arrow {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2001;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.3);
  background: rgba(255,255,255,.12);
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), border-color var(--transition);
  line-height: 1;
}
.veille-modal-arrow:hover {
  background: rgba(255,255,255,.28);
  border-color: rgba(255,255,255,.55);
}
/* Positionnées juste à côté du modal centré (max-width 560px) */
.veille-modal-prev { left: calc(50% - 340px); }
.veille-modal-next { right: calc(50% - 340px); }

/* ============================================================
   MODAL VEILLE – RESPONSIVE MOBILE (doit être après les règles de base)
   ============================================================ */
@media (max-width: 700px) {
  /* Cacher les flèches sur mobile/tablette (navigation par swipe) */
  .veille-modal-arrow { display: none; }
}
@media (max-width: 560px) {
  .veille-modal-overlay { padding: 16px; }
  .veille-modal-box { padding: 20px 18px; }

  /* En-tête : logo au-dessus du texte */
  .veille-modal-header { flex-direction: column; align-items: flex-start; gap: 10px; }
  .veille-modal-media img { height: 40px; }
  .veille-modal-media span { font-size: 2rem; }
  .veille-modal-name { font-size: 1.1rem; }
  .veille-modal-tag { font-size: .65rem; }
}

