/* ===========================
   Thème et palette — refonte complète
   - Par défaut: clair
   - Variante sombre: html.dark
   =========================== */
:root {
  --bg: #f7f9fc;
  --bg-elev: #ffffff;
  --text: #0f172a;
  --muted: #475569;

  --primary: #2563eb;    /* Bleu */
  --primary-2: #1e40af;  /* Bleu foncé */
  --success: #16a34a;    /* Vert */
  --warn: #f59e0b;       /* Ambre */
  --danger: #ef4444;     /* Rouge */
  --accent-1: #06b6d4;   /* Cyan */
  --accent-2: #8b5cf6;   /* Violet */

  --card: #ffffff;
  --border: #e2e8f0;
  --chip: #eef2ff;

  --shadow-sm: 0 4px 12px rgba(0,0,0,.06);
  --shadow-md: 0 10px 24px rgba(0,0,0,.10);
  --shadow-lg: 0 16px 36px rgba(0,0,0,.14);

  --radius-sm: .5rem;
  --radius-md: .75rem;
  --radius-lg: 1rem;

  /* Hard Skills — cartes visibles (responsive) */
  --hs-slides-per-view: 2.4; /* ~2,4 cartes par défaut */
}

@media (min-width: 900px) { :root { --hs-slides-per-view: 3; } }     /* desktop: 3 cartes */
@media (max-width: 700px) { :root { --hs-slides-per-view: 2; } }     /* tablette: 2 cartes */
@media (max-width: 480px) { :root { --hs-slides-per-view: 1.35; } }  /* mobile: ~1,35 carte */

html.dark {
  --bg: #0e1423;
  --bg-elev: #111a2e;
  --text: #e6e8ee;
  --muted: #a9b0c3;

  --primary: #3b82f6;
  --primary-2: #1d4ed8;
  --success: #22c55e;
  --warn: #fbbf24;
  --danger: #f87171;
  --accent-1: #22d3ee;
  --accent-2: #a78bfa;

  --card: #0f1729;
  --border: #1e2a44;
  --chip: #1b2440;

  --shadow-sm: 0 4px 12px rgba(0,0,0,.22);
  --shadow-md: 0 10px 24px rgba(0,0,0,.26);
  --shadow-lg: 0 16px 36px rgba(0,0,0,.30);
}

/* ===========================
   Base & Accessibilité
   =========================== */
* { box-sizing: border-box; min-width: 0; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  line-height: 1.6;
  background:
    radial-gradient(1200px 600px at 10% -10%, color-mix(in oklab, var(--primary) 24%, transparent), transparent 52%) no-repeat,
    radial-gradient(1000px 500px at 90% -20%, color-mix(in oklab, var(--success) 18%, transparent), transparent 62%) no-repeat,
    var(--bg);
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  clip-path: inset(50%);
  white-space: nowrap; border: 0;
}
.skip-link { position: absolute; left: -9999px; top: auto; }
.skip-link:focus {
  left: 1rem; top: 1rem;
  background: var(--primary); color: #fff;
  padding: .5rem .75rem; border-radius: var(--radius-sm);
}

/* ===========================
   Layout global
   =========================== */
.container { width: min(1100px, 92%); margin: 0 auto; }
h1, h2, h3 { line-height: 1.25; }
h2 { margin: 0 0 .75rem; font-size: clamp(1.25rem, 2.2vw, 1.5rem); }
p { margin: 0 0 .75rem; color: var(--text); }

.card {
  position: relative;
  background: linear-gradient(180deg, color-mix(in oklab, var(--card) 96%, transparent), var(--card));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  margin: 1rem 0;
  box-shadow: var(--shadow-md);
}

/* Barre d’accent dégradée en haut de chaque section (modifiable par section) */
.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0; height: 4px;
  background: var(--accent, linear-gradient(90deg, var(--primary), color-mix(in oklab, var(--primary) 40%, var(--success))));
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  opacity: .95;
}

:target h2 {
  text-decoration: underline;
  text-decoration-color: var(--primary);
  text-underline-offset: .2rem;
}

/* ===========================
   Header & Navigation
   =========================== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(150%) blur(8px);
  background: color-mix(in oklab, var(--bg-elev) 85%, transparent);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: .75rem 0;
}

/* Brand cliquable */
.brand {
  text-decoration: none; color: inherit;
  display: flex; align-items: center; gap: .9rem;
}
.brand:hover { filter: brightness(1.04); }
.brand:focus-visible {
  outline: 2px solid var(--primary); outline-offset: 2px; border-radius: var(--radius-sm);
}
.name { font-size: 1.15rem; margin: 0; }
.tagline { margin: .15rem 0 0; color: var(--muted); font-size: .95rem; }

/* Nav */
.site-nav .nav-toggle {
  display: none;
  background: var(--card); border: 1px solid var(--border); color: var(--text);
  padding: .5rem .75rem; border-radius: var(--radius-sm);
}
.nav-list {
  display: flex; gap: .5rem; align-items: center;
  list-style: none; margin: 0; padding: 0;
}
.nav-list a, .nav-list .icon-btn {
  color: var(--text); text-decoration: none; padding: .45rem .6rem;
  border-radius: var(--radius-sm); border: 1px solid transparent;
}
.nav-list a:hover { background: var(--chip); border-color: var(--border); }
.icon-btn {
  background: transparent; border: 1px solid var(--border);
  border-radius: var(--radius-sm); color: var(--text); cursor: pointer;
}
.icon-btn:hover { background: var(--chip); }

/* Menu déroulant navigation */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-btn {
  background: transparent;
  border: 1px solid transparent;
  padding: .45rem .6rem;
  border-radius: var(--radius-sm);
  color: var(--text);
  cursor: pointer;
  font-size: .95rem;
  display: flex;
  align-items: center;
  gap: .35rem;
  transition: background .18s ease, border-color .18s ease;
  font-weight: 600;
}

.nav-dropdown-btn:hover {
  background: var(--chip);
  border-color: var(--border);
}

.nav-dropdown-btn[aria-expanded="true"] {
  background: var(--chip);
  border-color: var(--border);
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 180px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  list-style: none;
  margin: .5rem 0 0;
  padding: .5rem 0;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity .2s ease, visibility .2s ease, transform .2s ease;
  z-index: 100;
}

.nav-dropdown-btn[aria-expanded="true"] + .nav-dropdown-menu,
.nav-dropdown-menu:hover {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown-menu li {
  margin: 0;
}

.nav-dropdown-menu a {
  display: block;
  padding: .6rem .9rem;
  color: var(--text);
  text-decoration: none;
  transition: background .15s ease;
}

.nav-dropdown-menu a:hover {
  background: var(--chip);
}

@media (max-width: 860px) {
  .nav-dropdown {
    position: static;
  }

  .nav-dropdown-btn {
    width: 100%;
    text-align: left;
  }

  .nav-dropdown-menu {
    position: static;
    opacity: 0;
    visibility: hidden;
    max-height: 0;
    overflow: hidden;
    margin: 0;
    border: none;
    background: transparent;
    box-shadow: none;
    transform: none;
    transition: all .2s ease;
    padding: 0;
  }

  .nav-dropdown-btn[aria-expanded="true"] + .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    max-height: 500px;
    margin-top: .5rem;
  }

  .nav-dropdown-menu a {
    padding: .4rem .9rem .4rem 2rem;
    font-size: .9rem;
  }
}

@media (max-width: 860px) {
  .site-nav .nav-toggle { display: inline-block; }
  .nav-list {
    display: none; position: absolute; right: 4%; top: 64px;
    background: var(--bg-elev); padding: .5rem; border: 1px solid var(--border);
    border-radius: var(--radius-md); width: min(320px, 92%); flex-direction: column; gap: .25rem;
    box-shadow: var(--shadow-md);
  }
  .nav-list.show { display: flex; }
  .nav-list li { width: 100%; }
  .nav-list a, .nav-list .icon-btn { display: block; width: 100%; text-align: left; }
}

/* ===========================
   Boutons
   =========================== */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  border: 1px solid var(--border); background: var(--bg-elev); color: var(--text);
  padding: .6rem .9rem; border-radius: .6rem; text-decoration: none; cursor: pointer;
  transition: filter .18s ease, transform .18s ease;
}
.btn.primary { background: var(--primary); border-color: var(--primary-2); color: #fff; }
.btn.small { padding: .4rem .6rem; font-size: .9rem; }
.btn:hover { filter: brightness(1.06) saturate(1.03); }
.btn:active { transform: translateY(1px); }

/* ===========================
   À propos (image + texte côte à côte)
   =========================== */
#a-propos { --accent: linear-gradient(90deg, var(--accent-2), var(--accent-1)); }

.intro .intro-grid {
  display: grid; grid-template-columns: minmax(0, auto) minmax(0, 1fr); /* anti-overflow */
  align-items: center;
  gap: 1rem 1.25rem; margin-bottom: .75rem;
}

/* Avatar + Hover interactif */
.intro .avatar {
  width: clamp(200px, 40vw, 320px);
  height: clamp(200px, 40vw, 320px);
  border-radius: 50%; object-fit: cover;
  border: 2px solid var(--border); box-shadow: var(--shadow-sm);
  transition:
    transform .35s ease,
    box-shadow .35s ease,
    border-color .35s ease,
    filter .35s ease;
  will-change: transform, box-shadow, filter;
}
.intro .avatar:hover {
  transform: scale(1.04) rotate(-1deg);
  border-color: var(--primary);
  box-shadow:
    0 0 0 4px color-mix(in oklab, var(--primary) 20%, transparent),
    0 16px 36px color-mix(in oklab, var(--primary) 18%, rgba(0,0,0,.12));
  filter: saturate(1.06) contrast(1.02);
}
.intro .avatar:active {
  transform: scale(1.02) rotate(-0.5deg);
  filter: brightness(.99);
}
.intro .avatar:focus-visible {
  outline: none;
  border-color: var(--primary);
  box-shadow:
    0 0 0 4px color-mix(in oklab, var(--primary) 28%, transparent),
    0 10px 28px color-mix(in oklab, var(--primary) 18%, rgba(0,0,0,.12));
}
.intro .intro-grid p { margin: 0; }
.intro .cta-row { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: .75rem; }

.intro-hook {
  font-size: 1.1rem;
  background: linear-gradient(90deg, var(--primary), color-mix(in oklab, var(--primary) 40%, var(--success)));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
  letter-spacing: .3px;
}

@media (max-width: 640px) {
  .intro .intro-grid { grid-template-columns: 1fr; align-items: start; }
  .intro .avatar { width: 140px; height: 140px; }
}

/* ===========================
   Hard Skills — défilement continu (via JS), cartes étroites
   =========================== */
#hard-skills { --accent: linear-gradient(90deg, #3b82f6, #06b6d4); }
#hard-skills .carousel { position: relative; max-width: min(760px, 100%); margin-inline: auto; }
#hard-skills .carousel-viewport {
  position: relative; overflow: hidden; padding-inline: .5rem; /* compact */
  border-radius: var(--radius-md); contain: paint;
  background: color-mix(in oklab, var(--bg-elev) 95%, transparent);
  border: 1px solid var(--border);
}
/* caches opaques sur les bords (alignés avec le padding) */
#hard-skills .carousel-viewport::before,
#hard-skills .carousel-viewport::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: .5rem;
  background: var(--card); pointer-events: none; z-index: 2;
}
#hard-skills .carousel-viewport::before { left: 0; box-shadow: inset -6px 0 10px -8px rgba(0,0,0,.12); }
#hard-skills .carousel-viewport::after  { right: 0; box-shadow: inset  6px 0 10px -8px rgba(0,0,0,.12); }

/* Piste: animée en continu par JS, pas d'animation CSS par slide */
#hard-skills .skills {
  position: relative; z-index: 1; display: flex; gap: 0; padding: 0; margin: 0; list-style: none;
  will-change: transform;
}

/* Cartes: étroites, 1 / var(--hs-slides-per-view) */
#hard-skills .skills li {
  flex: 0 0 calc(100% / var(--hs-slides-per-view));
  box-sizing: border-box;
  padding: .6rem .75rem; min-height: 150px; margin-top: .4rem;
  background: linear-gradient(180deg, color-mix(in oklab, var(--card) 96%, transparent), var(--card));
  border: 1px solid color-mix(in oklab, var(--border) 80%, transparent);
  border-radius: .6rem; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: .35rem;
}

/* Icône/logo compact */
#hard-skills .skill-icon {
  display: block; width: clamp(38px, 8vw, 64px); height: clamp(38px, 8vw, 64px);
  aspect-ratio: 1 / 1; object-fit: contain;
  background: var(--bg-elev); border: 1px solid var(--border);
  border-radius: .6rem; padding: .35rem; box-shadow: var(--shadow-sm);
}
#hard-skills .skills li > span { font-size: .95rem; letter-spacing: .2px; font-weight: 650; }

/* Désactive tout hover/focus visuel sur le carrousel et masque d'anciens boutons */
#hard-skills .skills li:hover,
#hard-skills .skills li:focus-within { transform: none; box-shadow: var(--shadow-sm); border-color: color-mix(in oklab, var(--border) 80%, transparent); }
#hard-skills .skills li:hover .skill-icon,
#hard-skills .skills li:focus-within .skill-icon { transform: none; box-shadow: var(--shadow-sm); border-color: var(--border); filter: none; }
#hard-skills .carousel-btn { display: none; }

/* ===========================
   Soft Skills & Loisirs — grilles 2x2
   =========================== */
#soft-skills { --accent: linear-gradient(90deg, var(--warn), var(--danger)); }
#loisirs     { --accent: linear-gradient(90deg, #14b8a6, #f43f5e); }

.soft-grid {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .9rem;
}
.soft-grid li {
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  padding: 1rem; gap: .55rem; min-height: 170px; overflow: hidden;
  background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease, background-color .25s ease, filter .25s ease;
}

/* Pastille image */
.soft-grid li > img:first-child {
  display: block; width: clamp(60px, 14vw, 90px); height: clamp(60px, 14vw, 90px);
  aspect-ratio: 1 / 1; object-fit: contain;
  background: var(--bg-elev); border: 1px solid var(--border);
  border-radius: .75rem; padding: .5rem; box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease, filter .25s ease;
}

/* Pastille icône (si utilisée en premier enfant) */
.soft-grid li > i:first-child {
  width: clamp(60px, 14vw, 90px); height: clamp(60px, 14vw, 90px);
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--bg-elev); border: 1px solid var(--border); border-radius: .75rem;
  box-shadow: var(--shadow-sm); color: var(--primary); font-size: clamp(28px, 6vw, 36px);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease, filter .25s ease;
}

/* Hover interactif */
.soft-grid li:hover, .soft-grid li:focus-within {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: color-mix(in oklab, var(--primary) 35%, var(--border));
}
.soft-grid li:hover > img:first-child,
.soft-grid li:focus-within > img:first-child,
.soft-grid li:hover > i:first-child,
.soft-grid li:focus-within > i:first-child {
  transform: scale(1.06);
  border-color: var(--primary);
  box-shadow: 0 12px 26px color-mix(in oklab, var(--primary) 28%, transparent);
  filter: saturate(1.04);
}

/* Si un <i> suit l’image (HTML actuel), on évite la double pastille */
#soft-skills .soft-grid li > i:not(:first-child),
#loisirs .soft-grid li > i:not(:first-child) {
  display: none;
}

/* ===========================
   Timeline, Projets, Chips
   =========================== */
.timeline {
  list-style: none;
  padding: 0;
  margin: 0;
  border-left: 3px solid var(--border);
  transition: border-color .25s ease;
}

.timeline:hover {
  border-left-color: var(--primary);
}

.timeline li {
  position: relative;
  margin: 0 0 2rem 1.5rem;
  padding-left: 1.15rem;
}

.timeline li::before {
  content: "";
  position: absolute;
  /* Légèrement plus à droite pour laisser un vrai espace avec la ligne */
  left: -1.2rem;
  top: 1rem;
  width: .8rem;
  height: .8rem;
  border-radius: 50%;
  background: var(--primary);
  border: 3px solid var(--bg);
  box-shadow: 0 0 0 3px var(--primary);
  transform: translateY(-50%);
  transition: transform .25s ease, box-shadow .25s ease;
}

.timeline li:hover::before {
  transform: scale(1.2);
  box-shadow: 0 0 0 3px var(--primary), 0 4px 12px color-mix(in oklab, var(--primary) 40%, rgba(0,0,0,.15));
}

.timeline .time {
  color: var(--primary);
  font-size: .9rem;
  margin-bottom: .35rem;
  font-weight: 700;
}

.timeline .content h3 {
  margin: 0 0 .35rem;
  font-size: 1.1rem;
  color: var(--text);
  font-weight: 700;
}

.timeline .content p {
  margin: 0 0 .5rem;
  font-size: .95rem;
  color: var(--muted);
  line-height: 1.5;
}

.projects-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.2rem; }
.project {
  border: 1px solid var(--border);
  background: linear-gradient(180deg, color-mix(in oklab, var(--card) 98%, transparent), var(--card));
  border-radius: 1rem;
  padding: 1.3rem;
  display: flex;
  flex-direction: column;
  gap: .8rem;
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  position: relative;
}

.project:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: color-mix(in oklab, var(--primary) 35%, var(--border));
}

.project-badge {
  display: inline-block;
  background: linear-gradient(90deg, color-mix(in oklab, var(--primary) 20%, transparent), color-mix(in oklab, var(--success) 15%, transparent));
  color: var(--primary);
  padding: .35rem .75rem;
  border-radius: .5rem;
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .3px;
  border: 1px solid color-mix(in oklab, var(--primary) 30%, var(--border));
  width: fit-content;
}

.project h3 {
  margin: .25rem 0 .35rem;
  font-size: 1.1rem;
  color: var(--text);
}

.project > p:first-of-type {
  margin: 0;
  font-size: .95rem;
  color: var(--muted);
}

.project-highlight {
  background: color-mix(in oklab, var(--primary) 8%, transparent);
  border-left: 3px solid var(--primary);
  padding: .6rem;
  border-radius: .5rem;
  font-size: .9rem;
  color: var(--text);
  margin: .4rem 0;
}

.project-highlight strong {
  color: var(--primary);
}
.badge {
  background: linear-gradient(90deg,
  color-mix(in oklab, var(--primary) 28%, transparent),
  color-mix(in oklab, var(--success) 20%, transparent)
  );
  color: var(--text);
  padding: .12rem .45rem; border-radius: .45rem; font-size: .8rem;
  border: 1px solid color-mix(in oklab, var(--primary) 55%, var(--success));
}
.actions { display: flex; gap: .5rem; flex-wrap: wrap; }

.chips { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: .6rem; }
.chip {
  background: linear-gradient(180deg,
  color-mix(in oklab, var(--primary) 14%, transparent),
  color-mix(in oklab, var(--chip) 88%, transparent)
  );
  color: var(--text);
  border: 1px solid color-mix(in oklab, var(--primary) 28%, var(--border));
  padding: .28rem .6rem; border-radius: 999px; font-size: .85rem;
}

/* ===========================
   Contact — cartes (sans formulaire)
   =========================== */
#contact { --accent: linear-gradient(90deg, var(--primary), var(--success)); }

.contact-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.2rem;
}
.contact-card {
  background: linear-gradient(135deg, color-mix(in oklab, var(--card) 98%, transparent), color-mix(in oklab, var(--card) 96%, transparent));
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: .8rem;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  text-align: center;
}
.contact-card:hover,
.contact-card:focus-within {
  transform: translateY(-6px) scale(1.02);
  box-shadow: var(--shadow-md);
  border-color: color-mix(in oklab, var(--primary) 35%, var(--border));
}
.contact-card .contact-icon,
.contact-card > img {
  width: 80px;
  height: 80px;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  border-radius: .8rem;
  border: 1px solid var(--border);
  background: color-mix(in oklab, var(--primary) 4%, transparent);
  margin: 0 auto;
  padding: .5rem;
}

.contact-card h3 {
  margin: .5rem 0;
  font-size: 1.05rem;
  color: var(--text);
}

.contact-card p {
  margin: 0;
  font-size: .9rem;
  color: var(--muted);
}

/* ===========================
   Back to top & Footer
   =========================== */
.back-to-top {
  position: fixed; right: 1rem; bottom: 1rem;
  display: none; padding: .6rem; border-radius: 999px; border: 1px solid var(--border);
  background: var(--bg-elev); color: var(--text); cursor: pointer; box-shadow: var(--shadow-sm);
}
.back-to-top.show { display: inline-flex; }
.site-footer { padding: 2rem 0; color: var(--muted); text-align: center; }

/* ===========================
   Sections: couleurs d’accent
   =========================== */
#formations  { --accent: linear-gradient(90deg, var(--success), #3b82f6); }
#experiences { --accent: linear-gradient(90deg, var(--danger), var(--warn)); }
#projets     { --accent: linear-gradient(90deg, var(--accent-1), var(--accent-2)); }

/* ===========================
   Préférences de mouvement réduit
   =========================== */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* ===========================
   Sections réfactorisées (Positionnement, Expériences, Skills, Soft, Auto-analyse)
   =========================== */

/* Section Positionnement */
#positionnement { --accent: linear-gradient(90deg, var(--primary), var(--accent-1)); }
#positionnement h3 { margin: .75rem 0 .5rem; font-size: 1.15rem; }
#positionnement h4 { margin: 1rem 0 .5rem; font-size: 1rem; color: var(--primary); }

.positioning-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.positioning-content ul.positioning-list {
  list-style: none;
  padding: 0;
  margin: 0 0 .75rem;
}
.positioning-content ul.positioning-list li {
  padding: .35rem 0 .35rem 1.5rem;
  position: relative;
  color: var(--text);
}
.positioning-content ul.positioning-list li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}

/* Section Expériences */
#experiences { --accent: linear-gradient(90deg, var(--danger), var(--warn)); }
.section-intro {
  color: var(--muted);
  font-size: .95rem;
  margin: -0.5rem 0 1rem;
  font-style: italic;
}

.experiences-list {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.experience-item {
  border: 1px solid var(--border);
  background: linear-gradient(180deg,
    color-mix(in oklab, var(--card) 98%, transparent),
    color-mix(in oklab, var(--card) 94%, transparent)
  );
  border-radius: .9rem;
  padding: 1.1rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .22s ease, border-color .22s ease;
}
.experience-item:hover {
  box-shadow: var(--shadow-md);
  border-color: color-mix(in oklab, var(--primary) 30%, var(--border));
}

.exp-header { margin-bottom: .8rem; }
.exp-header h3 { margin: 0 0 .35rem; font-size: 1.1rem; }
.exp-meta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: .9rem;
  color: var(--muted);
}
.exp-duration::before,
.exp-location::before { margin-right: .35rem; }

/* Onglets d'expérience */
.exp-tabs {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  margin-bottom: .8rem;
  border-bottom: 2px solid var(--border);
  padding-bottom: .5rem;
}
.exp-tab-btn {
  padding: .45rem .75rem;
  border: none;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: .9rem;
  border-radius: .45rem 0 0 .45rem;
  transition: color .18s ease, background .18s ease;
  font-weight: 600;
}
.exp-tab-btn:hover {
  background: var(--chip);
  color: var(--text);
}
.exp-tab-btn.active {
  background: color-mix(in oklab, var(--primary) 18%, transparent);
  color: var(--primary);
  border-bottom: 3px solid var(--primary);
}

/* Contenu des onglets (masqué par défaut) */
.exp-tab-content {
  display: none;
  animation: fadeIn .22s ease;
}
.exp-tab-content.active {
  display: block;
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.exp-tab-content h4 {
  margin: .75rem 0 .5rem;
  color: var(--primary);
  font-size: 1rem;
}
.exp-content {
  padding-top: .5rem;
}
.missions-list,
.interactions-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.missions-list li,
.interactions-list li {
  padding: .5rem 0 .5rem 1.5rem;
  position: relative;
  margin-bottom: .5rem;
}
.missions-list li::before,
.interactions-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}
.missions-list li strong,
.interactions-list li strong {
  color: var(--text);
}

/* Hard Skills (restructuré) */
.skills-by-category {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.skill-category {
  border: 1px solid var(--border);
  border-radius: .9rem;
  background: linear-gradient(180deg,
    color-mix(in oklab, var(--card) 98%, transparent),
    color-mix(in oklab, var(--card) 94%, transparent)
  );
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .25s ease, border-color .25s ease;
}

.skill-category:hover {
  box-shadow: var(--shadow-md);
  border-color: color-mix(in oklab, var(--primary) 25%, var(--border));
}

.category-title {
  font-size: 1.1rem;
  margin: 0 0 1rem;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: .5px;
  font-weight: 700;
  display: flex;
  align-items: center;
}

.skill-item {
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
  transition: background .2s ease, padding .2s ease;
}

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

.skill-item:hover {
  background: color-mix(in oklab, var(--primary) 3%, transparent);
  padding: 1rem 0.75rem;
  border-radius: .5rem;
}

.skill-header {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: .5rem;
  flex-wrap: wrap;
}

.skill-header h4 {
  margin: 0;
  font-size: 1rem;
  color: var(--text);
  font-weight: 700;
}

.level-badge {
  display: inline-block;
  padding: .25rem .6rem;
  border-radius: .4rem;
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .3px;
}

.level-badge.expert {
  background: linear-gradient(90deg, #16a34a, #22c55e);
  color: #fff;
}

.level-badge.advanced {
  background: linear-gradient(90deg, #2563eb, #3b82f6);
  color: #fff;
}

.level-badge.intermediate {
  background: linear-gradient(90deg, #f59e0b, #fbbf24);
  color: var(--text);
}

.level-badge.beginner {
  background: linear-gradient(90deg, #9ca3af, #d1d5db);
  color: var(--text);
}

.skill-item p {
  margin: .35rem 0;
  font-size: .95rem;
  color: var(--text);
  line-height: 1.5;
}

.skill-item strong {
  color: var(--primary);
  font-weight: 700;
}

/* Soft Skills (restructuré) */
.soft-skills-by-category {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.soft-skill-category {
  border: 1px solid var(--border);
  border-radius: .9rem;
  background: linear-gradient(180deg,
    color-mix(in oklab, var(--card) 98%, transparent),
    color-mix(in oklab, var(--card) 94%, transparent)
  );
  padding: 1rem;
  box-shadow: var(--shadow-sm);
}

.category-icon-title {
  font-size: 1.05rem;
  margin: 0 0 1rem;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: .5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: .5rem;
}

.soft-skill-item {
  padding: .75rem 0;
  border-bottom: 1px solid var(--border);
}
.soft-skill-item:last-child {
  border-bottom: none;
}

.soft-skill-item h4 {
  margin: .5rem 0 .35rem;
  font-size: 1rem;
  color: var(--text);
}
.soft-skill-item p {
  margin: .2rem 0;
  font-size: .95rem;
  color: var(--text);
  line-height: 1.5;
}
.soft-skill-item strong {
  color: var(--primary);
}

/* Auto-analyse */
#auto-analyse { --accent: linear-gradient(90deg, var(--accent-2), var(--accent-1)); }

.self-analysis-content {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.analysis-block {
  border: 1px solid var(--border);
  border-radius: .9rem;
  background: linear-gradient(180deg,
    color-mix(in oklab, var(--card) 98%, transparent),
    color-mix(in oklab, var(--card) 94%, transparent)
  );
  padding: 1rem;
  box-shadow: var(--shadow-sm);
}

.analysis-block h3 {
  margin: 0 0 .75rem;
  font-size: 1.05rem;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: .5rem;
}

.analysis-list,
.analysis-strengths,
.analysis-improvements,
.analysis-needs,
.analysis-company {
  list-style: none;
  padding: 0;
  margin: 0;
}

.analysis-list li,
.analysis-strengths li,
.analysis-improvements li,
.analysis-needs li,
.analysis-company li {
  padding: .5rem 0 .5rem 1.5rem;
  position: relative;
  margin-bottom: .35rem;
  color: var(--text);
  font-size: .95rem;
  line-height: 1.5;
}

.analysis-list li::before,
.analysis-strengths li::before,
.analysis-improvements li::before,
.analysis-needs li::before,
.analysis-company li::before {
  content: "◆";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}

.analysis-block p {
  margin: 0 0 .75rem;
  font-size: .95rem;
  color: var(--text);
  line-height: 1.5;
}

/* ===========================
   Hard Skills - Grid visuel
   =========================== */

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.2rem;
  margin-top: 1rem;
}

.skill-card {
  background: linear-gradient(180deg, color-mix(in oklab, var(--card) 98%, transparent), var(--card));
  border: 1px solid var(--border);
  border-radius: .9rem;
  padding: 1.2rem;
  text-align: center;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
  display: flex;
  flex-direction: column;
  gap: .6rem;
}

.skill-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: color-mix(in oklab, var(--primary) 35%, var(--border));
}

.skill-icon {
  font-size: 2rem;
  color: var(--primary);
  min-height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.skill-card h4 {
  margin: 0;
  font-size: .95rem;
  color: var(--text);
}

.skill-bar {
  height: 6px;
  background: color-mix(in oklab, var(--border) 70%, transparent);
  border-radius: 999px;
  overflow: hidden;
}

.skill-progress {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), color-mix(in oklab, var(--primary) 40%, var(--success)));
  border-radius: 999px;
  transition: width .4s ease;
}

.skill-level {
  font-size: .8rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: .3px;
}

.skill-meta {
  font-size: .8rem;
  color: var(--muted);
  margin: 0;
}

/* ===========================
   AMÉLIORATIONS GRAPHIQUES - Timeline & Positioning
   =========================== */

/* Positioning Cards - 3 colonnes avec icônes grands */
.positioning-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.2rem;
  margin: 1.5rem 0;
}

.pos-card {
  background: linear-gradient(135deg, color-mix(in oklab, var(--card) 98%, transparent), color-mix(in oklab, var(--card) 96%, transparent));
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.5rem;
  text-align: center;
  transition: transform .25s cubic-bezier(.34,.1,.64,1), box-shadow .25s ease, border-color .25s ease;
  display: flex;
  flex-direction: column;
  gap: .8rem;
  position: relative;
  overflow: hidden;
}

.pos-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, color-mix(in oklab, var(--primary) 10%, transparent), transparent 70%);
  opacity: 0;
  transition: opacity .25s ease;
  pointer-events: none;
}

.pos-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 12px 32px color-mix(in oklab, var(--primary) 22%, rgba(0,0,0,.1));
  border-color: color-mix(in oklab, var(--primary) 45%, var(--border));
}

.pos-card:hover::before {
  opacity: 1;
}

.pos-card-icon {
  font-size: 2.5rem;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  background: linear-gradient(135deg, color-mix(in oklab, var(--primary) 12%, transparent), color-mix(in oklab, var(--success) 8%, transparent));
  border-radius: .75rem;
  margin-bottom: .25rem;
  transition: transform .25s ease;
}

.pos-card:hover .pos-card-icon {
  transform: scale(1.12) rotate(3deg);
}

.pos-card h3 {
  margin: .25rem 0 .5rem;
  font-size: 1.05rem;
  color: var(--text);
}

.pos-card p {
  margin: 0;
  font-size: .9rem;
  color: var(--muted);
  line-height: 1.5;
}

/* Timeline expériences - design moderne */
.experiences-timeline {
  position: relative;
  padding: 1.5rem 0;
}

.experiences-timeline::before {
  content: "";
  position: absolute;
  left: 1rem;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--primary), color-mix(in oklab, var(--primary) 50%, transparent));
}

.timeline-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
  position: relative;
}

.timeline-marker {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
}

.timeline-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  border: 3px solid var(--bg);
  box-shadow: 0 0 0 4px var(--primary);
  transition: transform .25s ease, background .25s ease;
  z-index: 2;
}

.timeline-item.timeline-main .timeline-icon {
  width: 60px;
  height: 60px;
  font-size: 1.5rem;
  box-shadow: 0 0 0 4px var(--primary), 0 4px 12px color-mix(in oklab, var(--primary) 40%, rgba(0,0,0,.15));
}

.timeline-item:hover .timeline-icon {
  transform: scale(1.1);
}

.timeline-date {
  font-size: .85rem;
  font-weight: 700;
  text-align: center;
  color: var(--primary);
  letter-spacing: .3px;
}

.timeline-content {
  background: linear-gradient(180deg, color-mix(in oklab, var(--card) 98%, transparent), color-mix(in oklab, var(--card) 96%, transparent));
  border: 1px solid var(--border);
  border-radius: .9rem;
  padding: 1.2rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .25s ease, border-color .25s ease;
}

.timeline-item.timeline-main .timeline-content {
  border-left: 4px solid var(--primary);
  background: linear-gradient(180deg, color-mix(in oklab, var(--primary) 4%, var(--card)), var(--card));
}

.timeline-item:hover .timeline-content {
  box-shadow: var(--shadow-md);
  border-color: color-mix(in oklab, var(--primary) 35%, var(--border));
}

.timeline-content h3 {
  margin: 0 0 .35rem;
  font-size: 1.1rem;
  color: var(--text);
}

.timeline-subtitle {
  margin: 0 0 .75rem;
  font-size: .9rem;
  color: var(--muted);
  font-style: italic;
}

.exp-spotlight {
  background: color-mix(in oklab, var(--primary) 6%, transparent);
  border-left: 3px solid var(--primary);
  padding: .8rem;
  border-radius: .6rem;
  margin: .75rem 0;
  display: flex;
  flex-direction: column;
  gap: .4rem;
}

.spotlight-item {
  font-size: .9rem;
  color: var(--text);
}

.spotlight-item strong {
  color: var(--primary);
}

/* Timeline toggle button */
.timeline-toggle {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  padding: .5rem .75rem;
  border-radius: .5rem;
  cursor: pointer;
  font-size: .85rem;
  margin-top: .75rem;
  transition: background .2s ease, border-color .2s ease;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
}

.timeline-toggle:hover {
  background: var(--chip);
  border-color: var(--primary);
}

.timeline-details {
  margin-top: .75rem;
  padding-top: .75rem;
  border-top: 1px solid var(--border);
  animation: slideDown .25s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    max-height: 0;
  }
  to {
    opacity: 1;
    max-height: 800px;
  }
}

.timeline-details h4 {
  margin: 1rem 0 .5rem;
  color: var(--primary);
  font-size: 1rem;
}

.timeline-details p, .timeline-details ul {
  margin: 0 0 .5rem;
  font-size: .9rem;
  color: var(--text);
}

.bullet-list {
  list-style: none;
  padding: 0;
  margin: 0 0 .5rem;
}

.bullet-list li {
  display: flex;
  align-items: flex-start;
  gap: .5rem;
  padding: .35rem 0;
  font-size: .9rem;
  line-height: 1.5;
  color: var(--text);
}

.bullet-list li::before {
  content: "→";
  flex: 0 0 1rem;
  width: 1rem;
  text-align: center;
  margin-top: .02rem;
  color: var(--primary);
  font-weight: 700;
}

/* Analysis Grid amélioré */
.analysis-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.2rem;
  margin-top: 1.5rem;
}

.analysis-card {
  background: linear-gradient(135deg, color-mix(in oklab, var(--card) 98%, transparent), color-mix(in oklab, var(--card) 96%, transparent));
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.2rem;
  text-align: center;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  display: flex;
  flex-direction: column;
  gap: .6rem;
  position: relative;
}

.analysis-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: color-mix(in oklab, var(--primary) 35%, var(--border));
}

.card-icon {
  font-size: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 2.5rem;
  color: var(--primary);
  margin: 0 auto;
}

.analysis-card h3 {
  margin: .25rem 0 .5rem;
  font-size: 1rem;
  color: var(--text);
}

.analysis-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
}

.analysis-card li {
  padding: .35rem 0 .35rem 1rem;
  position: relative;
  font-size: .85rem;
  color: var(--muted);
}

.analysis-card li::before {
  content: "◆";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-size: .6rem;
}

/* Soft Skills Card amélioré */
.soft-skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
}

.soft-skill-card {
  background: linear-gradient(135deg, color-mix(in oklab, var(--card) 98%, transparent), color-mix(in oklab, var(--card) 96%, transparent));
  border: 2px solid var(--border);
  border-radius: 1rem;
  padding: 1.2rem;
  transition: all .25s cubic-bezier(.34,.1,.64,1);
  display: flex;
  flex-direction: column;
  gap: .6rem;
  position: relative;
  overflow: hidden;
}

.soft-skill-card::before {
  content: "";
  position: absolute;
  top: -100%;
  right: -100%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, color-mix(in oklab, var(--skill-color) 8%, transparent), transparent 70%);
  opacity: 0;
  transition: opacity .3s ease;
  pointer-events: none;
}

.soft-skill-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 12px 32px color-mix(in oklab, var(--skill-color) 20%, rgba(0,0,0,.12));
  border-color: var(--skill-color);
}

.soft-skill-card:hover::before {
  opacity: 1;
}

.card-header {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin-bottom: .2rem;
}

.card-header i {
  font-size: 1.4rem;
  color: var(--skill-color, var(--primary));
  min-width: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-header h4 {
  margin: 0;
  font-size: .95rem;
  color: var(--text);
  font-weight: 700;
}

.card-situation {
  font-size: .85rem;
  color: var(--text);
  margin: 0;
  line-height: 1.5;
  background: color-mix(in oklab, var(--skill-color) 6%, transparent);
  padding: .6rem;
  border-radius: .5rem;
  border-left: 2px solid var(--skill-color, var(--primary));
}

.card-badge {
  display: inline-block;
  background: linear-gradient(90deg, color-mix(in oklab, var(--skill-color, var(--primary)) 15%, transparent), color-mix(in oklab, var(--skill-color, var(--primary)) 8%, transparent));
  color: var(--skill-color, var(--primary));
  padding: .3rem .6rem;
  border-radius: .4rem;
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .2px;
  border: 1px solid color-mix(in oklab, var(--skill-color, var(--primary)) 25%, transparent);
  align-self: flex-start;
}

/* Mobile responsif */
@media (max-width: 768px) {
  .experiences-timeline::before {
    left: 8px;
  }

  .timeline-item {
    grid-template-columns: 70px 1fr;
    gap: 1rem;
  }

  .positioning-cards {
    grid-template-columns: 1fr;
  }

  .analysis-grid {
    grid-template-columns: 1fr;
  }

  .soft-skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .soft-skills-grid {
    grid-template-columns: 1fr;
  }

  .pos-card {
    padding: 1rem;
  }

  .pos-card-icon {
    font-size: 2rem;
    min-height: 2.5rem;
  }

  .timeline-icon {
    width: 45px;
    height: 45px;
    font-size: 1.1rem;
  }

  .timeline-item.timeline-main .timeline-icon {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
  }
}

