/* ========================================
   PORTFOLIO - SAMY ALBISSER
   Style moderne, professionnel, responsive
   ======================================== */

/* ===== VARIABLES ===== */
:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #3b82f6;
  --primary-glow: rgba(37, 99, 235, 0.15);
  --accent: #06b6d4;
  --accent-light: #22d3ee;

  --bg-dark: #0f172a;
  --bg-section: #1e293b;
  --bg-card: #1e293b;
  --bg-card-hover: #263548;
  --bg-alt: #0f172a;

  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  --border: #334155;
  --border-light: #475569;

  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;

  --shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.4);

  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-main: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "JetBrains Mono", monospace;
}

/* ===== RESET & BASE ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-main);
  background: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}

/* Sécurité : empêcher tout débordement horizontal */
.container,
.section,
.ap-body,
.exp-body,
.career-tree {
  overflow-wrap: break-word;
  word-break: break-word;
}

/* Empêcher les grilles de forcer un overflow */
.skills-grid,
.procedures-grid,
.competence-grid,
.mission-grid,
.ap-realisation-grid,
.ap-services-grid,
.ap-lots-grid,
.doc-grid,
.learned-grid,
.veille-grid,
.career-options,
.contact-layout,
.contact-direct-list,
.hero-stats,
.exp-card-group,
.about-grid,
.ap-overview {
  overflow: visible;
  min-width: 0;
}

/* Chaque enfant de grille ne doit pas déborder horizontalement */
.skills-grid > *,
.procedures-grid > *,
.competence-grid > *,
.mission-grid > *,
.ap-realisation-grid > *,
.ap-services-grid > *,
.ap-lots-grid > *,
.doc-grid > *,
.learned-grid > *,
.veille-grid > *,
.career-options > *,
.contact-layout > *,
.contact-direct-list > *,
.hero-stats > *,
.exp-card-group > *,
.about-grid > *,
.ap-overview > * {
  min-width: 0;
}

a {
  color: var(--primary-light);
  text-decoration: none;
  transition: var(--transition);
}
a:hover {
  color: var(--accent-light);
}

img {
  max-width: 100%;
  display: block;
}

/* ===== CONTAINER ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== NAVBAR ===== */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
  transition: var(--transition);
  padding: 0 24px;
}

#navbar.scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.nav-logo {
  font-family: var(--font-mono);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary) !important;
}

.logo-bracket {
  color: var(--primary-light);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-links a {
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 500;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary-light);
  background: var(--primary-glow);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition);
}

/* ===== HERO ===== */
#hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 120px 24px 60px;
  overflow: hidden;
}

.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(37, 99, 235, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 99, 235, 0.05) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}

.hero-content {
  text-align: center;
  max-width: 800px;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-block;
  background: var(--primary-glow);
  border: 1px solid rgba(37, 99, 235, 0.3);
  color: var(--primary-light);
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 32px;
  animation: fadeInDown 0.6s ease;
}

.hero-greeting {
  display: block;
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--text-secondary);
  margin-bottom: 8px;
  animation: fadeInDown 0.6s ease 0.1s both;
}

.hero-name {
  display: block;
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  background: linear-gradient(
    135deg,
    var(--text-primary) 0%,
    var(--primary-light) 50%,
    var(--accent) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
  animation: fadeInDown 0.6s ease 0.2s both;
}

.hero-title {
  display: block;
  font-size: clamp(1.2rem, 3vw, 1.6rem);
  font-weight: 500;
  color: var(--accent);
  min-height: 2em;
  margin-top: 8px;
  font-family: var(--font-mono);
  animation: fadeInDown 0.6s ease 0.3s both;
}

.hero-description {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin: 24px 0 32px;
  line-height: 1.8;
  animation: fadeInUp 0.6s ease 0.4s both;
}

.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 48px;
  animation: fadeInUp 0.6s ease 0.5s both;
}

/* Boutons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(37, 99, 235, 0.4);
  color: white;
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--primary-light);
  background: var(--primary-glow);
  color: var(--primary-light);
}

.btn-lg {
  padding: 16px 36px;
  font-size: 1.05rem;
}

/* Stats */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 24px 40px;
  max-width: 600px;
  margin: 0 auto;
  animation: fadeInUp 0.6s ease 0.6s both;
}

.stat {
  text-align: center;
}

.stat-number {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--primary-light);
  font-family: var(--font-mono);
}

.stat-plus {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-light);
}

.stat-value {
  display: block;
}

.stat-label {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 4px;
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--text-muted);
  font-size: 1.2rem;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(8px);
  }
}

/* ===== SECTIONS ===== */
.section {
  padding: 100px 0;
}

.section-alt {
  background: var(--bg-section);
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 700;
  margin-bottom: 16px;
  text-align: center;
}

.section-number {
  color: var(--primary-light);
  font-family: var(--font-mono);
  font-size: 0.8em;
}

.section-subtitle {
  text-align: center;
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-bottom: 48px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== À PROPOS ===== */
.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 48px;
  margin-top: 48px;
  align-items: start;
}

.about-text p {
  color: var(--text-secondary);
  margin-bottom: 16px;
  font-size: 1.05rem;
}

.about-text strong {
  color: var(--text-primary);
}

.info-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 16px;
  transition: var(--transition);
}

.info-card:hover {
  border-color: var(--primary-light);
  background: var(--bg-card-hover);
}

.info-card h3 {
  font-size: 1rem;
  margin-bottom: 12px;
  color: var(--primary-light);
}

.info-card h3 i {
  margin-right: 8px;
}

.info-list {
  list-style: none;
}

.info-list li {
  padding: 4px 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.info-list li strong {
  color: var(--text-primary);
}

.info-list.certifications li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.info-list.certifications li i {
  color: var(--accent);
  font-size: 0.8rem;
}

.qualities-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  background: var(--primary-glow);
  color: var(--primary-light);
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 500;
  border: 1px solid rgba(37, 99, 235, 0.2);
}

/* ===== TIMELINE (FORMATION) ===== */
.timeline {
  position: relative;
  max-width: 700px;
  margin: 48px auto 0;
  padding-left: 40px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 15px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--primary), var(--border));
}

.timeline-item {
  position: relative;
  margin-bottom: 40px;
}

.timeline-marker {
  position: absolute;
  left: -33px;
  top: 24px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--border);
  border: 3px solid var(--bg-section);
  z-index: 1;
}

.timeline-marker.current {
  background: var(--primary);
  box-shadow:
    0 0 0 4px var(--primary-glow),
    0 0 16px var(--primary-glow);
}

.timeline-content {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: var(--transition);
}

.timeline-content:hover {
  border-color: var(--primary-light);
  transform: translateX(4px);
}

.timeline-badge {
  display: inline-block;
  background: var(--primary);
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 12px;
  border-radius: 50px;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.timeline-date {
  color: var(--primary-light);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
}

.timeline-content h3 {
  font-size: 1.15rem;
  margin: 8px 0;
}

.timeline-place {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.timeline-place i {
  margin-right: 6px;
}

.timeline-content p:last-of-type {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.timeline-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.timeline-tags span {
  background: rgba(6, 182, 212, 0.1);
  color: var(--accent);
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 500;
}

/* ===== EXPERIENCE ===== */
.experience-cards {
  max-width: 900px;
  margin: 48px auto 0;
}

.exp-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-bottom: 24px;
  transition: var(--transition);
}

.exp-card:hover {
  border-color: var(--primary-light);
}

.exp-card-main {
  border-left: 4px solid var(--primary);
}

.exp-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 16px;
}

.exp-company h3 {
  font-size: 1.3rem;
  margin-bottom: 4px;
}

.exp-role {
  color: var(--primary-light);
  font-weight: 500;
}

.exp-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.exp-date,
.exp-location {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.exp-date i,
.exp-location i {
  margin-right: 6px;
  color: var(--primary-light);
}

.exp-description {
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.exp-missions h4 {
  font-size: 1.05rem;
  margin-bottom: 16px;
  color: var(--primary-light);
}

.exp-missions h4 i {
  margin-right: 8px;
}

.mission-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
  gap: 16px;
}

.mission-item {
  background: rgba(37, 99, 235, 0.05);
  border: 1px solid rgba(37, 99, 235, 0.1);
  border-radius: var(--radius-sm);
  padding: 20px;
  transition: var(--transition);
}

.mission-item:hover {
  background: rgba(37, 99, 235, 0.1);
  transform: translateY(-2px);
}

.mission-item i {
  font-size: 1.5rem;
  color: var(--primary-light);
  margin-bottom: 12px;
}

.mission-item h5 {
  font-size: 0.95rem;
  margin-bottom: 8px;
}

.mission-item p {
  color: var(--text-secondary);
  font-size: 0.85rem;
  line-height: 1.5;
}

.exp-card-group {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
  gap: 16px;
}

.exp-card-small {
  padding: 20px;
  text-align: center;
}

.exp-card-small h3 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.exp-card-small .exp-role {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 4px;
}

.exp-card-small .exp-date {
  font-size: 0.8rem;
}

/* ===== COMPÉTENCES ===== */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 24px;
  margin-top: 48px;
}

.skill-category {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: var(--transition);
}

.skill-category:hover {
  border-color: var(--primary-light);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.skill-icon {
  width: 48px;
  height: 48px;
  background: var(--primary-glow);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.skill-icon i {
  font-size: 1.3rem;
  color: var(--primary-light);
}

.skill-category h3 {
  font-size: 1.05rem;
  margin-bottom: 20px;
}

.skill-item {
  margin-bottom: 14px;
}

.skill-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
  gap: 8px;
}

.skill-header > span {
  font-size: 0.88rem;
  color: var(--text-secondary);
  white-space: nowrap;
}

.skill-origins {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.skill-origin {
  font-size: 0.65rem;
  font-weight: 700;
  font-family: var(--font-mono);
  padding: 2px 7px;
  border-radius: 4px;
  letter-spacing: 0.3px;
  cursor: default;
  transition: var(--transition);
  white-space: nowrap;
}

.skill-origin:hover {
  transform: scale(1.1);
}

/* Couleurs par origine */
.origin-ap1 {
  background: rgba(16, 185, 129, 0.12);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.origin-ap2 {
  background: rgba(59, 130, 246, 0.12);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.25);
}

.origin-ap3 {
  background: rgba(6, 182, 212, 0.12);
  color: #22d3ee;
  border: 1px solid rgba(6, 182, 212, 0.25);
}

.origin-ap4 {
  background: rgba(251, 146, 60, 0.12);
  color: #fb923c;
  border: 1px solid rgba(251, 146, 60, 0.25);
}

.origin-carsat {
  background: rgba(168, 85, 247, 0.12);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.25);
}

.origin-formation {
  background: rgba(148, 163, 184, 0.12);
  color: #94a3b8;
  border: 1px solid rgba(148, 163, 184, 0.25);
}

/* Légende des origines */
.skills-legend {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 36px;
  padding: 14px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.legend-item {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.legend-item i {
  font-size: 0.5rem;
}

.legend-ap1 i {
  color: #10b981;
}
.legend-ap2 i {
  color: #60a5fa;
}
.legend-ap3 i {
  color: #22d3ee;
}
.legend-ap4 i {
  color: #fb923c;
}
.legend-carsat i {
  color: #c084fc;
}
.legend-formation i {
  color: #94a3b8;
}

.skill-item span {
  font-size: 0.88rem;
  color: var(--text-secondary);
  display: block;
  margin-bottom: 6px;
}

.skill-bar {
  height: 6px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
}

.skill-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 3px;
  width: 0%;
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== ATELIERS PROFESSIONNELS ===== */

.ap-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  transition:
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

.ap-card:hover {
  border-color: var(--primary-light);
  box-shadow: 0 4px 24px rgba(37, 99, 235, 0.08);
}

.ap-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  cursor: pointer;
  user-select: none;
}

.ap-header-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.ap-number {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 6px 14px;
  border-radius: 6px;
  white-space: nowrap;
}

.ap-header h3 {
  font-size: 1.15rem;
  margin-bottom: 2px;
}

.ap-context {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.ap-header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.ap-status {
  font-size: 0.8rem;
  font-weight: 600;
  padding: 4px 14px;
  border-radius: 50px;
  white-space: nowrap;
}

.ap-done {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.ap-progress {
  background: rgba(251, 191, 36, 0.1);
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.2);
}

.ap-toggle {
  color: var(--text-muted);
  font-size: 1rem;
  transition: transform 0.3s ease;
}

.ap-card.open .ap-toggle {
  transform: rotate(180deg);
}

/* AP Body (accordéon) */
.ap-body {
  display: none;
  padding: 0 20px 20px;
}

.ap-card.open .ap-body {
  display: block;
}

/* Empêcher les enfants cachés de créer un espace fantôme */
.ap-body .fade-in {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}

.ap-overview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
  gap: 28px;
  margin-bottom: 24px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

.ap-desc h4,
.ap-tech-section h4 {
  font-size: 1rem;
  margin-bottom: 12px;
  color: var(--primary-light);
}

.ap-desc h4 i,
.ap-tech-section h4 i {
  margin-right: 8px;
}

.ap-desc p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.7;
  margin-bottom: 8px;
}

.ap-infos {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ap-info-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-section);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.ap-info-item i {
  color: var(--accent);
  font-size: 1rem;
  width: 18px;
  text-align: center;
}

/* Réalisations AP1 */
.ap-realisation-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
  gap: 16px;
  margin-top: 12px;
}

.ap-realisation {
  background: var(--bg-section);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 20px;
}

.ap-real-icon {
  width: 40px;
  height: 40px;
  background: var(--primary-glow);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.ap-real-icon i {
  font-size: 1.1rem;
  color: var(--primary-light);
}

.ap-realisation h5 {
  font-size: 0.9rem;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.ap-realisation ul {
  list-style: none;
  padding: 0;
}

.ap-realisation li {
  color: var(--text-secondary);
  font-size: 0.82rem;
  padding: 3px 0;
  padding-left: 14px;
  position: relative;
}

.ap-realisation li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--accent);
}

/* Services Grid (AP2, AP4) */
.ap-services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(140px, 100%), 1fr));
  gap: 12px;
  margin-top: 12px;
}

.ap-service {
  background: var(--bg-section);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
  text-align: center;
  transition: var(--transition);
}

.ap-service:hover {
  border-color: var(--primary-light);
  transform: translateY(-3px);
}

.ap-service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--primary-glow);
  border-radius: 8px;
  margin-bottom: 8px;
}

.ap-service-icon i {
  font-size: 1rem;
  color: var(--primary-light);
}

.ap-service strong {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 4px;
}

.ap-service small {
  color: var(--text-muted);
  font-size: 0.75rem;
}

/* Lots Grid (AP3) */
.ap-lots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr));
  gap: 16px;
  margin-top: 12px;
}

.ap-lot {
  background: var(--bg-section);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 20px;
  transition: var(--transition);
}

.ap-lot:hover {
  border-color: var(--accent);
}

.ap-lot-header {
  margin-bottom: 12px;
}

.ap-lot-number {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.7rem;
  padding: 3px 10px;
  border-radius: 4px;
  margin-bottom: 6px;
}

.ap-lot h5 {
  font-size: 0.95rem;
}

.ap-lot ul {
  list-style: none;
  padding: 0;
}

.ap-lot li {
  color: var(--text-secondary);
  font-size: 0.82rem;
  padding: 3px 0;
  padding-left: 14px;
  position: relative;
}

.ap-lot li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--accent);
}

/* Tech Tags & Compétences (communs) */
.ap-tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 20px 0 16px;
}

.ap-tech-tags span {
  background: rgba(37, 99, 235, 0.08);
  color: var(--primary-light);
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.78rem;
  font-family: var(--font-mono);
}

.ap-competences-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.ap-competences-bar span {
  background: rgba(6, 182, 212, 0.06);
  color: var(--accent);
  border: 1px solid rgba(6, 182, 212, 0.15);
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 500;
}

.ap-competences-bar span i {
  margin-right: 6px;
}

/* Compétences E5 officielles */
.ap-competences-e5 {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px dashed var(--border);
}

.ap-competences-e5 h4 {
  font-size: 0.82rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 10px;
  font-weight: 600;
}

.ap-competences-e5 h4 i {
  margin-right: 8px;
  color: var(--primary-light);
}

.e5-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.e5-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(37, 99, 235, 0.06);
  color: var(--primary-light);
  border: 1px solid rgba(37, 99, 235, 0.18);
  padding: 5px 14px;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 500;
  transition: var(--transition);
}

.e5-badge:hover {
  background: rgba(37, 99, 235, 0.12);
  border-color: var(--primary-light);
}

.e5-code {
  background: var(--primary);
  color: #fff;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.7rem;
  padding: 2px 7px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

/* Livrables AP */
.ap-livrables {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.ap-livrables h4 {
  font-size: 0.95rem;
  margin-bottom: 14px;
  color: var(--text-primary);
}

.ap-livrables h4 i {
  color: var(--accent);
  margin-right: 8px;
}

.ap-livrables-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.ap-livrable-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: rgba(6, 182, 212, 0.08);
  border: 1px solid rgba(6, 182, 212, 0.2);
  border-radius: var(--radius-sm);
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 500;
  text-decoration: none;
  transition: var(--transition);
}

.ap-livrable-btn:hover {
  background: rgba(6, 182, 212, 0.15);
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(6, 182, 212, 0.15);
  color: var(--accent-light);
}

.ap-livrable-btn i {
  font-size: 1rem;
}

/* ===== PROCÉDURES CARSAT ===== */
.filter-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.filter-btn {
  padding: 8px 20px;
  border: 1px solid var(--border);
  border-radius: 50px;
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font-main);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.procedures-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 20px;
}

.procedure-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: var(--transition);
  animation: fadeInUp 0.4s ease both;
  cursor: pointer;
}

.procedure-card.hidden {
  display: none;
}

.procedure-card:hover {
  border-color: var(--primary-light);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  color: inherit;
}

.procedure-icon {
  width: 44px;
  height: 44px;
  background: var(--primary-glow);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.procedure-icon i {
  font-size: 1.1rem;
  color: var(--primary-light);
}

.procedure-card h3 {
  font-size: 1rem;
  margin-bottom: 8px;
}

.procedure-card p {
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.6;
  margin-bottom: 12px;
}

.procedure-meta {
  margin-bottom: 12px;
}

.procedure-source {
  color: var(--text-muted);
  font-size: 0.78rem;
  font-family: var(--font-mono);
}

.procedure-source i {
  margin-right: 4px;
}

.procedure-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.procedure-tags span {
  background: rgba(6, 182, 212, 0.08);
  color: var(--accent);
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 500;
}

/* ===== ÉPREUVE E5 ===== */
.e5-intro {
  max-width: 800px;
  margin: 48px auto 40px;
}

.e5-description {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius);
  padding: 28px;
}

.e5-description h3 {
  color: var(--primary-light);
  margin-bottom: 12px;
}

.e5-description h3 i {
  margin-right: 8px;
}

.e5-description p {
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.e5-competences {
  margin: 48px 0;
}

.e5-competences > h3 {
  text-align: center;
  margin-bottom: 32px;
  font-size: 1.3rem;
}

.e5-competences > h3 i {
  color: var(--accent);
  margin-right: 8px;
}

.competence-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 20px;
}

.competence-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.competence-card:hover {
  border-color: var(--primary-light);
  transform: translateY(-4px);
}

.competence-number {
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 800;
  color: rgba(37, 99, 235, 0.15);
  position: absolute;
  top: 12px;
  right: 16px;
}

.competence-card h4 {
  font-size: 1rem;
  margin-bottom: 8px;
  padding-right: 40px;
}

.competence-card > p {
  color: var(--text-secondary);
  font-size: 0.85rem;
  margin-bottom: 16px;
  line-height: 1.5;
}

.competence-realisation span {
  display: block;
  color: var(--accent);
  font-size: 0.82rem;
  padding: 3px 0;
}

.competence-realisation i {
  margin-right: 6px;
  font-size: 0.75rem;
}

/* Documents E5 */
.e5-documents {
  margin-top: 48px;
}

.e5-documents > h3 {
  text-align: center;
  margin-bottom: 24px;
  font-size: 1.2rem;
}

.e5-documents > h3 i {
  color: var(--accent);
  margin-right: 8px;
}

.doc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(160px, 100%), 1fr));
  gap: 16px;
  max-width: 800px;
  margin: 0 auto;
}

.doc-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 24px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: var(--transition);
  color: var(--text-primary) !important;
}

.doc-card:hover {
  border-color: var(--primary-light);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.doc-card i {
  font-size: 2rem;
  margin-bottom: 12px;
  color: var(--primary-light);
}

.doc-card span {
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 4px;
}

.doc-card small {
  color: var(--text-muted);
  font-size: 0.78rem;
}

/* Tableau de synthèse E5 */
.e5-synthese {
  margin-top: 48px;
}

.e5-synthese > h3 {
  font-size: 1.3rem;
  margin-bottom: 8px;
}

.e5-synthese > h3 i {
  color: var(--accent);
  margin-right: 10px;
}

.synthese-subtitle {
  color: var(--text-secondary);
  font-size: 0.92rem;
  margin-bottom: 24px;
}

.synthese-table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  -webkit-overflow-scrolling: touch;
}

.synthese-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 700px;
  font-size: 0.88rem;
}

.synthese-table thead {
  background: rgba(37, 99, 235, 0.1);
}

.synthese-table th {
  padding: 14px 12px;
  font-weight: 600;
  text-align: center;
  color: var(--text-primary);
  font-size: 0.82rem;
  border-bottom: 2px solid var(--border);
  white-space: nowrap;
}

.synthese-table th:first-child {
  text-align: left;
  min-width: 250px;
}

.synthese-table th:nth-child(2) {
  text-align: center;
  min-width: 90px;
}

.synthese-table td {
  padding: 12px;
  border-bottom: 1px solid var(--border);
  text-align: center;
  vertical-align: middle;
}

.synthese-table td:first-child {
  text-align: left;
  font-weight: 500;
  color: var(--text-primary);
}

.synthese-table tbody tr {
  transition: background 0.2s ease;
}

.synthese-table tbody tr:hover {
  background: rgba(37, 99, 235, 0.05);
}

.synthese-check {
  color: var(--accent);
  font-size: 0.9rem;
}

.ctx-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.ctx-ap {
  background: rgba(37, 99, 235, 0.12);
  color: var(--primary-light);
}

.ctx-carsat {
  background: rgba(6, 182, 212, 0.12);
  color: var(--accent);
}

.ctx-perso {
  background: rgba(139, 92, 246, 0.12);
  color: #a78bfa;
}

/* ===== VEILLE ===== */

/* Intro veille */
.veille-intro {
  max-width: 800px;
  margin: 48px auto 40px;
}

.veille-intro-text {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 28px 32px;
}

.veille-intro-text h3 {
  color: var(--accent);
  margin-bottom: 12px;
  font-size: 1.15rem;
}

.veille-intro-text h3 i {
  margin-right: 8px;
}

.veille-intro-text p {
  color: var(--text-secondary);
  margin-bottom: 12px;
  line-height: 1.8;
}

.veille-intro-text strong {
  color: var(--text-primary);
}

/* Méthodologie Pipeline */
.veille-methodology {
  margin: 48px 0;
}

.veille-methodology > h3 {
  text-align: center;
  margin-bottom: 36px;
  font-size: 1.25rem;
}

.veille-methodology > h3 i {
  color: var(--accent);
  margin-right: 8px;
}

.method-pipeline {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.method-step {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  text-align: center;
  width: 100%;
  max-width: 380px;
  min-width: 0;
  position: relative;
  transition: var(--transition);
}

/* Desktop large : layout horizontal */
@media (min-width: 900px) {
  .method-pipeline {
    flex-direction: row;
    align-items: stretch;
    justify-content: center;
  }

  .method-step {
    flex: 1;
    max-width: 300px;
  }

  .method-arrow {
    transform: rotate(-90deg);
  }
}

.method-step:hover {
  border-color: var(--primary-light);
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.method-step-number {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: 28px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  font-size: 0.85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
}

.method-step-icon {
  width: 56px;
  height: 56px;
  background: var(--primary-glow);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.method-step-icon i {
  font-size: 1.4rem;
  color: var(--primary-light);
}

.method-step h4 {
  font-size: 1rem;
  margin-bottom: 8px;
  color: var(--primary-light);
}

.method-step p {
  color: var(--text-secondary);
  font-size: 0.88rem;
  margin-bottom: 16px;
  line-height: 1.5;
}

.method-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.tool-badge {
  background: rgba(6, 182, 212, 0.1);
  color: var(--accent);
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 500;
  border: 1px solid rgba(6, 182, 212, 0.15);
}

.tool-badge i {
  margin-right: 4px;
}

.method-arrow {
  display: flex;
  align-items: center;
  padding: 0 12px;
  color: var(--primary-light);
  font-size: 1.3rem;
  animation: pulseArrow 2s infinite;
  flex-shrink: 0;
}

@keyframes pulseArrow {
  0%,
  100% {
    opacity: 0.4;
  }
  50% {
    opacity: 1;
  }
}

/* Évolution des LLM */
.veille-evolution {
  margin: 56px 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
}

.veille-evolution > h3 {
  text-align: center;
  margin-bottom: 8px;
  font-size: 1.25rem;
}

.veille-evolution > h3 i {
  color: var(--accent);
  margin-right: 8px;
}

.evolution-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 36px;
}

.evolution-tracks {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.evolution-track {
  display: flex;
  align-items: center;
  gap: 20px;
}

.track-label {
  min-width: 100px;
  text-align: right;
}

.track-logo {
  font-weight: 700;
  font-size: 0.95rem;
  padding: 6px 16px;
  border-radius: 50px;
  display: inline-block;
}

.track-logo.openai {
  background: rgba(16, 163, 127, 0.12);
  color: #10a37f;
  border: 1px solid rgba(16, 163, 127, 0.25);
}

.track-logo.anthropic {
  background: rgba(204, 139, 75, 0.12);
  color: #cc8b4b;
  border: 1px solid rgba(204, 139, 75, 0.25);
}

.track-logo.google {
  background: rgba(66, 133, 244, 0.12);
  color: #4285f4;
  border: 1px solid rgba(66, 133, 244, 0.25);
}

.track-bar {
  flex: 1;
  min-width: 0;
}

.track-progress {
  display: flex;
  align-items: center;
  gap: 0;
  height: 44px;
  background: linear-gradient(
    90deg,
    rgba(37, 99, 235, 0.15),
    rgba(6, 182, 212, 0.2)
  );
  border-radius: 22px;
  padding: 0 16px;
  border: 1px solid rgba(37, 99, 235, 0.2);
  width: 0%;
  transition: width 1.8s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.track-progress.animated {
  width: 100%;
}

.track-start,
.track-end {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}

.track-start {
  color: var(--text-muted);
}

.track-end {
  color: var(--accent-light);
  background: rgba(6, 182, 212, 0.15);
  padding: 3px 10px;
  border-radius: 50px;
  border: 1px solid rgba(6, 182, 212, 0.3);
}

.track-milestones {
  display: flex;
  align-items: center;
  justify-content: space-around;
  flex: 1;
  min-width: 0;
  gap: 2px;
}

.milestone {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-secondary);
  white-space: nowrap;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(37, 99, 235, 0.1);
  cursor: default;
  transition: var(--transition);
  flex-shrink: 1;
  overflow: hidden;
  text-overflow: ellipsis;
}

.milestone:hover {
  background: rgba(37, 99, 235, 0.25);
  color: var(--primary-light);
}

/* Thématiques */
.veille-themes {
  margin: 48px 0;
}

.veille-card-accent {
  border-left: 3px solid var(--accent) !important;
}

/* Ce que j'ai appris */
.veille-learned {
  margin-top: 48px;
}

.veille-learned > h3 {
  text-align: center;
  margin-bottom: 28px;
  font-size: 1.2rem;
}

.veille-learned > h3 i {
  color: var(--accent);
  margin-right: 8px;
}

.learned-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(140px, 100%), 1fr));
  gap: 16px;
}

.learned-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  transition: var(--transition);
}

.learned-item:hover {
  border-color: var(--primary-light);
  transform: translateY(-4px);
}

.learned-item i {
  font-size: 1.5rem;
  color: var(--primary-light);
  margin-bottom: 12px;
}

.learned-item p {
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.5;
}

/* ===== PROJET PROFESSIONNEL ===== */
.career-tree {
  max-width: 900px;
  margin: 48px auto 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.career-goal {
  background: linear-gradient(
    135deg,
    rgba(37, 99, 235, 0.15),
    rgba(6, 182, 212, 0.1)
  );
  border: 2px solid var(--primary);
  border-radius: var(--radius-lg);
  padding: 32px 48px;
  text-align: center;
  position: relative;
  animation: goalPulse 3s infinite;
}

@keyframes goalPulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.2);
  }
  50% {
    box-shadow: 0 0 0 12px rgba(37, 99, 235, 0);
  }
}

.career-goal-icon {
  width: 60px;
  height: 60px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.career-goal-icon i {
  font-size: 1.5rem;
  color: white;
}

.career-goal h3 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.career-goal-title {
  font-size: 1.4rem;
  font-weight: 700;
  background: linear-gradient(
    135deg,
    var(--text-primary),
    var(--primary-light)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Connecteurs */
.career-connector {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0;
  width: 100%;
}

.connector-line {
  width: 2px;
  height: 40px;
  background: linear-gradient(to bottom, var(--primary), var(--accent));
}

.connector-split {
  width: min(80%, 500px);
  height: 2px;
  background: linear-gradient(
    90deg,
    var(--primary),
    var(--accent),
    var(--primary)
  );
  position: relative;
}

.connector-split::before,
.connector-split::after {
  content: "";
  position: absolute;
  top: 0;
  width: 2px;
  height: 30px;
  background: var(--primary);
}

.connector-split::before {
  left: 0;
}
.connector-split::after {
  right: 0;
}

.career-connector-reverse .connector-split::before,
.career-connector-reverse .connector-split::after {
  top: auto;
  bottom: 0;
  height: 30px;
}

.career-connector-reverse {
  flex-direction: column-reverse;
}

/* Options */
.career-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 32px;
  width: 100%;
  margin-top: 28px;
}

.career-option {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
  transition: var(--transition);
}

.career-option:hover {
  border-color: var(--primary-light);
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.option-badge {
  position: absolute;
  top: -12px;
  left: 24px;
  background: var(--primary);
  color: white;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.option-2 .option-badge {
  background: var(--accent);
}

.option-icon {
  width: 48px;
  height: 48px;
  background: var(--primary-glow);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.option-icon i {
  font-size: 1.2rem;
  color: var(--primary-light);
}

.career-option h4 {
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.option-speciality {
  color: var(--accent);
  font-weight: 500;
  font-size: 0.92rem;
  margin-bottom: 20px;
}

.option-schools {
  margin-bottom: 20px;
}

.school-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  background: rgba(37, 99, 235, 0.05);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
}

.school-item i {
  color: var(--primary-light);
  margin-top: 3px;
}

.school-item strong {
  display: block;
  font-size: 0.92rem;
}

.school-item span {
  color: var(--text-muted);
  font-size: 0.82rem;
}

.school-divider {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-style: italic;
  padding: 4px 0;
}

.option-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.option-tags span {
  background: rgba(6, 182, 212, 0.08);
  color: var(--accent);
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.78rem;
  font-weight: 500;
}

/* Situation actuelle */
.career-current {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 48px;
  text-align: center;
  margin-top: 28px;
}

.career-current-icon {
  width: 48px;
  height: 48px;
  background: rgba(6, 182, 212, 0.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
}

.career-current-icon i {
  font-size: 1.2rem;
  color: var(--accent);
}

.career-current h3 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.career-current span {
  display: block;
  font-weight: 600;
  font-size: 1rem;
}

.career-current-date {
  color: var(--accent) !important;
  font-family: var(--font-mono);
  font-size: 0.85rem !important;
  margin-top: 4px;
}

.veille-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 24px;
  margin-top: 48px;
}

.veille-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: var(--transition);
}

.veille-card:hover {
  border-color: var(--primary-light);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.veille-icon {
  width: 52px;
  height: 52px;
  background: var(--primary-glow);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.veille-icon i {
  font-size: 1.3rem;
  color: var(--primary-light);
}

.veille-card h3 {
  font-size: 1.15rem;
  margin-bottom: 12px;
}

.veille-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 16px;
}

.veille-sources {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.veille-sources span {
  background: rgba(6, 182, 212, 0.08);
  color: var(--accent);
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 0.82rem;
  font-weight: 500;
}

.veille-sources i {
  margin-right: 4px;
}

/* ===== CONTACT — FORMULAIRE PROFESSIONNEL ===== */
.contact-layout {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 32px;
  margin-top: 48px;
  align-items: start;
}

/* --- Formulaire --- */
.contact-form-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  transition: var(--transition);
}

.contact-form-card:hover {
  border-color: var(--primary-light);
  box-shadow: 0 8px 32px rgba(37, 99, 235, 0.08);
}

.contact-form-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.contact-form-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-form-icon i {
  color: #fff;
  font-size: 1.2rem;
}

.contact-form-header h3 {
  font-size: 1.15rem;
  margin-bottom: 2px;
}

.contact-form-header p {
  color: var(--text-muted);
  font-size: 0.82rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.form-group label i {
  margin-right: 6px;
  color: var(--primary-light);
  font-size: 0.78rem;
}

.form-optional {
  font-weight: 400;
  color: var(--text-muted);
  font-size: 0.75rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-section);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.9rem;
  font-family: var(--font-main);
  transition: var(--transition);
  outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
  opacity: 0.6;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.form-group select {
  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 d='M6 8L1 3h10z' fill='%2394a3b8'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-submit {
  width: 100%;
  justify-content: center;
  font-size: 1rem;
  padding: 14px 28px;
  margin-top: 4px;
}

/* --- Panneau latéral --- */
.contact-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-alert {
  background: linear-gradient(
    135deg,
    rgba(37, 99, 235, 0.1),
    rgba(6, 182, 212, 0.06)
  );
  border: 1px solid rgba(37, 99, 235, 0.25);
  border-radius: var(--radius-lg);
  padding: 28px;
  text-align: center;
}

.contact-alert-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--primary);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 50px;
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.contact-alert h3 {
  font-size: 1.2rem;
  margin-bottom: 4px;
}

.contact-alert > p {
  color: var(--text-secondary);
  font-size: 0.88rem;
}

.contact-alert-date {
  margin-top: 12px;
  font-size: 0.82rem !important;
  color: var(--primary-light) !important;
  font-weight: 600;
}

.contact-alert-date i {
  margin-right: 4px;
}

/* Coordonnées directes */
.contact-direct {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.contact-direct h4 {
  font-size: 0.9rem;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.contact-direct h4 i {
  margin-right: 8px;
  color: var(--primary-light);
}

.contact-direct-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contact-direct-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  background: var(--bg-section);
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: var(--transition);
  border: 1px solid transparent;
}

a.contact-direct-item:hover {
  border-color: var(--primary-light);
  background: var(--primary-glow);
  transform: translateX(4px);
}

.contact-direct-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-direct-icon i {
  color: #fff;
  font-size: 0.85rem;
}

.contact-direct-label {
  display: block;
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.contact-direct-value {
  display: block;
  font-size: 0.85rem;
  color: var(--text-primary);
  margin-top: 1px;
}

/* Documents CV */
.contact-docs {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.contact-docs h4 {
  font-size: 0.9rem;
  margin-bottom: 14px;
  color: var(--text-primary);
}

.contact-docs h4 i {
  margin-right: 8px;
  color: var(--accent);
}

.contact-docs-btns {
  display: flex;
  gap: 10px;
}

.contact-doc-btn {
  flex: 1;
  justify-content: center;
  font-size: 0.82rem;
  padding: 10px 14px;
}

/* ===== FOOTER ===== */
footer {
  background: var(--bg-section);
  border-top: 1px solid var(--border);
  padding: 48px 0 32px;
}

.footer-content {
  text-align: center;
}

.footer-logo {
  font-family: var(--font-mono);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.footer-content > p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 16px;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 24px;
}

.footer-links a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: var(--transition);
}

.footer-links a:hover {
  border-color: var(--primary-light);
  color: var(--primary-light);
  background: var(--primary-glow);
}

.footer-copy {
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* AP cards: no transform animation to prevent phantom space */
.ap-card.fade-in {
  transform: none;
}

.ap-card.fade-in.visible {
  transform: none;
}

/* ===== RESPONSIVE ===== */

/* ---------- TABLETTE (≤ 1024px) ---------- */
@media (max-width: 1024px) {
  .container {
    padding: 0 20px;
  }

  .track-label {
    min-width: 80px;
  }
}

/* ---------- MOBILE (≤ 768px) ---------- */
@media (max-width: 768px) {
  /* --- Navigation mobile plein écran --- */
  #navbar {
    background: #0f172a;
    backdrop-filter: none;
    padding: 0 16px;
  }

  .nav-container {
    height: 56px;
  }

  .nav-logo {
    font-size: 1.2rem;
    z-index: 1002;
    position: relative;
  }

  .nav-links {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    background: #0f172a;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0 32px;
    gap: 4px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
      opacity 0.3s ease,
      visibility 0.3s ease;
    z-index: 1000;
  }

  .nav-links.open {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
  }

  .nav-links li {
    width: 100%;
    text-align: center;
  }

  .nav-links a {
    font-size: 1.05rem;
    padding: 12px 20px;
    display: block;
    width: 100%;
    text-align: center;
    border-radius: var(--radius-sm);
  }

  .nav-links a:hover,
  .nav-links a.active {
    background: rgba(37, 99, 235, 0.12);
  }

  .nav-toggle {
    display: flex;
    z-index: 1002;
    position: relative;
    padding: 12px;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
  }

  .nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  /* --- Hero mobile --- */
  #hero {
    min-height: 100svh;
    padding: 80px 20px 32px;
  }

  .hero-badge {
    font-size: 0.78rem;
    padding: 6px 16px;
    margin-bottom: 24px;
  }

  .hero-greeting {
    font-size: 0.95rem;
  }

  .hero-name {
    font-size: clamp(2rem, 9vw, 3rem);
  }

  .hero-title {
    font-size: clamp(1rem, 4vw, 1.3rem);
    min-height: 1.8em;
  }

  .hero-description {
    font-size: 0.95rem;
    margin: 16px 0 24px;
    line-height: 1.7;
  }

  .hero-cta {
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-bottom: 36px;
  }

  .hero-cta .btn {
    width: 100%;
    max-width: 280px;
    justify-content: center;
    padding: 14px 24px;
  }

  .hero-stats {
    gap: 16px 24px;
    max-width: 340px;
  }

  .stat-number {
    font-size: 1.8rem;
  }

  .stat-plus {
    font-size: 1.2rem;
  }

  .stat-label {
    font-size: 0.68rem;
    letter-spacing: 0.5px;
  }

  .scroll-indicator {
    bottom: 16px;
  }

  /* --- Sections globales --- */
  .section {
    padding: 64px 0;
  }

  .section-title {
    font-size: 1.5rem;
    margin-bottom: 12px;
  }

  .section-subtitle {
    font-size: 0.92rem;
    margin-bottom: 32px;
    padding: 0 8px;
  }

  .container {
    padding: 0 16px;
  }

  /* --- À propos --- */
  .about-grid {
    grid-template-columns: 1fr;
    gap: 28px;
    margin-top: 32px;
  }

  .about-text p {
    font-size: 0.95rem;
  }

  .info-card {
    padding: 20px;
  }

  .qualities-tags {
    justify-content: center;
  }

  /* --- Timeline formation --- */
  .timeline {
    padding-left: 32px;
    margin-top: 32px;
  }

  .timeline::before {
    left: 11px;
  }

  .timeline-marker {
    left: -29px;
    width: 12px;
    height: 12px;
  }

  .timeline-content {
    padding: 20px;
  }

  .timeline-content h3 {
    font-size: 1.05rem;
  }

  .timeline-tags span {
    font-size: 0.72rem;
  }

  /* --- Expérience --- */
  .exp-card {
    padding: 20px;
    border-radius: var(--radius);
  }

  .exp-header {
    flex-direction: column;
    gap: 8px;
  }

  .exp-meta {
    align-items: flex-start;
    flex-direction: row;
    gap: 12px;
  }

  .exp-company h3 {
    font-size: 1.1rem;
  }

  .mission-grid {
    gap: 12px;
  }

  .mission-item {
    padding: 16px;
  }

  .exp-card-group {
    gap: 12px;
  }

  /* --- Compétences --- */
  .skills-grid {
    gap: 16px;
    margin-top: 32px;
  }

  .skill-category {
    padding: 20px;
  }

  .skill-category:hover {
    transform: none;
  }

  .skills-legend {
    gap: 8px 12px;
    padding: 12px 14px;
    margin-bottom: 24px;
  }

  .legend-item {
    font-size: 0.7rem;
  }

  .skill-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .skill-origins {
    justify-content: flex-start;
  }

  .skill-origin {
    font-size: 0.62rem;
    padding: 2px 6px;
  }

  /* --- Ateliers Pro --- */
  .ap-card {
    border-radius: var(--radius);
    margin-bottom: 14px;
  }

  .ap-card:hover {
    box-shadow: none;
  }

  .ap-header {
    flex-wrap: wrap;
    gap: 6px;
    padding: 12px 14px;
  }

  .ap-header-left {
    flex: 1;
    min-width: 0;
  }

  .ap-header-left > div {
    min-width: 0;
  }

  .ap-header h3 {
    font-size: 0.95rem;
    white-space: normal;
    word-wrap: break-word;
  }

  .ap-context {
    font-size: 0.78rem;
  }

  .ap-header-right {
    flex-shrink: 0;
  }

  .ap-number {
    font-size: 0.75rem;
    padding: 4px 10px;
  }

  .ap-body {
    padding: 0 16px 16px;
  }

  .ap-desc p {
    font-size: 0.88rem;
  }

  .ap-services-grid,
  .ap-lots-grid {
    gap: 8px;
  }

  .ap-service {
    padding: 12px 8px;
  }

  .ap-service strong {
    font-size: 0.78rem;
  }

  .ap-service small {
    font-size: 0.68rem;
  }

  .ap-realisation-grid {
    gap: 12px;
  }

  .ap-realisation {
    padding: 16px;
  }

  .ap-competences-bar {
    flex-direction: column;
    gap: 8px;
  }

  .ap-competences-bar span {
    font-size: 0.75rem;
    padding: 5px 12px;
  }

  .e5-badges {
    flex-direction: column;
    gap: 6px;
  }

  .e5-badge {
    font-size: 0.72rem;
    padding: 5px 12px;
  }

  .ap-tech-tags span {
    font-size: 0.72rem;
    padding: 3px 8px;
  }

  /* --- Procédures / Réalisations CARSAT --- */
  .filter-tabs {
    gap: 6px;
    margin-bottom: 24px;
  }

  .filter-btn {
    padding: 8px 14px;
    font-size: 0.8rem;
  }

  .procedures-grid {
    gap: 14px;
  }

  .procedure-card {
    padding: 20px;
  }

  .procedure-card:hover {
    transform: none;
  }

  /* --- Épreuve E5 --- */
  .e5-intro {
    margin: 32px auto 28px;
  }

  .e5-description {
    padding: 20px;
  }

  .e5-description h3 {
    font-size: 1.05rem;
  }

  .competence-grid {
    gap: 14px;
  }

  .competence-card {
    padding: 20px;
  }

  .competence-card:hover {
    transform: none;
  }

  .competence-number {
    font-size: 1.6rem;
  }

  .doc-grid {
    gap: 12px;
  }

  .doc-card {
    padding: 18px 12px;
  }

  .doc-card i {
    font-size: 1.6rem;
    margin-bottom: 8px;
  }

  .doc-card span {
    font-size: 0.82rem;
  }

  /* --- Veille --- */
  .veille-intro-text {
    padding: 20px;
  }

  .veille-intro-text h3 {
    font-size: 1.05rem;
  }

  .veille-intro-text p {
    font-size: 0.9rem;
  }

  .veille-grid {
    gap: 14px;
    margin-top: 32px;
  }

  .veille-card {
    padding: 20px;
  }

  .veille-card:hover {
    transform: none;
  }

  .veille-evolution {
    padding: 20px;
    margin: 36px 0;
  }

  .veille-evolution > h3 {
    font-size: 1.1rem;
  }

  /* Évolution LLM mobile */
  .evolution-tracks {
    gap: 20px;
  }

  .evolution-track {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .track-label {
    text-align: left;
    min-width: auto;
  }

  .track-logo {
    font-size: 0.82rem;
    padding: 4px 12px;
  }

  .track-progress {
    height: 36px;
    padding: 0 10px;
    border-radius: 18px;
  }

  .track-start,
  .track-end {
    font-size: 0.65rem;
  }

  .milestone {
    font-size: 0.58rem;
    padding: 1px 4px;
  }

  .learned-grid {
    gap: 12px;
  }

  .learned-item {
    padding: 18px 12px;
  }

  .learned-item i {
    font-size: 1.2rem;
    margin-bottom: 8px;
  }

  .learned-item p {
    font-size: 0.82rem;
  }

  /* --- Projet Pro : layout vertical simple --- */
  .career-tree {
    margin-top: 32px;
    gap: 0;
  }

  .career-goal {
    padding: 24px 20px;
    width: 100%;
    animation: none;
    box-shadow: none;
  }

  .career-goal-title {
    font-size: 1.15rem;
  }

  /* Connecteurs simplifiés en ligne verticale */
  .career-connector {
    padding: 0;
    align-self: center;
  }

  .connector-line {
    height: 32px;
    width: 2px;
  }

  .connector-split {
    width: min(70%, 300px);
  }

  .career-connector-reverse {
    flex-direction: column;
  }

  .career-options {
    gap: 16px;
    margin-top: 0;
  }

  .career-option {
    padding: 24px 20px;
  }

  .career-option:hover {
    transform: none;
  }

  .option-badge {
    position: static;
    display: inline-block;
    margin-bottom: 12px;
  }

  .career-current {
    padding: 20px;
    width: 100%;
  }

  /* --- Contact --- */
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 32px;
  }

  .contact-form-card {
    padding: 24px 20px;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .contact-form-header h3 {
    font-size: 1.05rem;
  }

  .contact-alert {
    padding: 24px 20px;
  }

  .contact-direct {
    padding: 20px;
  }

  .contact-docs-btns {
    flex-direction: column;
  }

  /* --- Footer --- */
  footer {
    padding: 32px 0 24px;
  }

  .footer-links a {
    width: 44px;
    height: 44px;
  }

  /* --- Livrables AP responsive --- */
  .ap-livrables-grid {
    flex-direction: column;
  }

  .ap-livrable-btn {
    font-size: 0.78rem;
    padding: 8px 14px;
  }

  /* --- Tableau synthèse responsive --- */
  .e5-synthese > h3 {
    font-size: 1.1rem;
  }

  .synthese-table {
    font-size: 0.78rem;
  }

  .synthese-table th,
  .synthese-table td {
    padding: 8px 6px;
  }

  .synthese-table th:first-child {
    min-width: 180px;
  }
}

/* ---------- PETIT MOBILE (≤ 480px) ---------- */
@media (max-width: 480px) {
  /* Hero encore plus compact */
  #hero {
    padding: 70px 16px 24px;
  }

  .hero-badge {
    font-size: 0.72rem;
    padding: 5px 14px;
  }

  .hero-name {
    font-size: clamp(1.8rem, 10vw, 2.4rem);
  }

  .hero-description {
    font-size: 0.88rem;
    margin: 12px 0 20px;
  }

  .hero-cta .btn {
    font-size: 0.88rem;
    padding: 12px 20px;
  }

  .hero-stats {
    gap: 12px 16px;
    max-width: 300px;
  }

  .stat-number {
    font-size: 1.5rem;
  }

  .stat-plus {
    font-size: 1rem;
  }

  .stat-label {
    font-size: 0.62rem;
  }

  /* Sections */
  .section {
    padding: 48px 0;
  }

  .section-title {
    font-size: 1.3rem;
  }

  .section-subtitle {
    font-size: 0.85rem;
    margin-bottom: 24px;
  }

  .container {
    padding: 0 14px;
  }

  /* Légende compacte */
  .skills-legend {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 12px 16px;
  }

  .legend-item {
    font-size: 0.7rem;
  }

  .skill-origin {
    font-size: 0.58rem;
    padding: 1px 5px;
  }

  /* AP Cards */
  .ap-header {
    padding: 10px 12px;
    gap: 4px;
  }

  .ap-header h3 {
    font-size: 0.88rem;
  }

  .ap-header-left {
    gap: 8px;
  }

  .ap-number {
    font-size: 0.7rem;
    padding: 3px 8px;
  }

  .ap-status {
    font-size: 0.7rem;
    padding: 3px 10px;
  }

  .ap-toggle {
    font-size: 0.85rem;
  }

  .ap-body {
    padding: 0 14px 14px;
  }

  .ap-services-grid,
  .ap-lots-grid {
    gap: 8px;
  }

  .ap-info-item {
    padding: 10px 12px;
    font-size: 0.82rem;
  }

  /* Procédures */
  .procedure-card {
    padding: 16px;
  }

  .procedure-card h3 {
    font-size: 0.92rem;
  }

  .procedure-card p {
    font-size: 0.82rem;
  }

  /* E5 */
  .doc-grid {
    gap: 10px;
  }

  .doc-card {
    flex-direction: row;
    padding: 14px 16px;
    gap: 12px;
    text-align: left;
  }

  .doc-card i {
    font-size: 1.3rem;
    margin-bottom: 0;
  }

  .competence-card h4 {
    font-size: 0.92rem;
  }

  .competence-card > p {
    font-size: 0.8rem;
  }

  /* Veille */
  .veille-evolution {
    padding: 16px;
    border-radius: var(--radius);
  }

  .milestone {
    font-size: 0.5rem;
    padding: 1px 3px;
  }

  .track-start,
  .track-end {
    font-size: 0.58rem;
  }

  .track-progress {
    height: 30px;
    padding: 0 8px;
  }

  .learned-grid {
    gap: 10px;
  }

  /* Projet Pro */
  .career-goal {
    padding: 20px 16px;
  }

  .career-goal-icon {
    width: 48px;
    height: 48px;
  }

  .career-goal-title {
    font-size: 1.05rem;
  }

  .career-option {
    padding: 20px 16px;
  }

  .option-badge {
    font-size: 0.7rem;
    padding: 3px 12px;
  }

  .school-item {
    padding: 10px;
  }

  .school-item strong {
    font-size: 0.85rem;
  }

  .school-item span {
    font-size: 0.75rem;
  }

  /* connecteurs déjà masqués en 768px */

  /* Contact */
  .contact-form-card {
    padding: 20px 16px;
  }

  .contact-form-header {
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 16px;
  }

  .contact-form-icon {
    width: 40px;
    height: 40px;
  }

  .contact-form-header h3 {
    font-size: 0.95rem;
  }

  .contact-submit {
    font-size: 0.9rem;
    padding: 12px 20px;
  }

  .contact-direct-item {
    padding: 10px 12px;
    gap: 10px;
  }

  .contact-direct-icon {
    width: 32px;
    height: 32px;
  }

  /* Exp */
  .exp-card {
    padding: 16px;
  }

  .exp-company h3 {
    font-size: 1rem;
  }

  .exp-meta {
    flex-direction: column;
    gap: 4px;
  }

  /* Timeline */
  .timeline {
    padding-left: 28px;
  }

  .timeline-content {
    padding: 16px;
  }

  .timeline-content h3 {
    font-size: 0.95rem;
  }

  .timeline-date {
    font-size: 0.78rem;
  }

  /* Footer */
  .footer-content > p {
    font-size: 0.8rem;
  }
}

/* ---------- TRÈS PETIT ÉCRAN (≤ 360px) ---------- */
@media (max-width: 360px) {
  .hero-name {
    font-size: 1.7rem;
  }

  .hero-title {
    font-size: 0.9rem;
  }

  .hero-stats {
    grid-template-columns: 1fr 1fr;
    gap: 10px 12px;
  }

  .stat-number {
    font-size: 1.3rem;
  }

  .nav-links a {
    font-size: 1rem;
    padding: 12px 20px;
  }

  .section-title {
    font-size: 1.15rem;
  }

  .ap-header h3 {
    font-size: 0.85rem;
  }

  .ap-number {
    font-size: 0.68rem;
    padding: 3px 8px;
  }
}

/* ===== TECH STACK BAR ===== */
.tech-stack-bar {
  background: var(--bg-section);
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.tech-stack-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  min-width: max-content;
}

.tech-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: default;
  transition: var(--transition);
  opacity: 0.65;
}

.tech-item:hover {
  opacity: 1;
  transform: translateY(-3px);
}

.tech-item i {
  font-size: 1.6rem;
  color: var(--primary-light);
}

.tech-item span {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .tech-stack-inner {
    justify-content: flex-start;
    gap: 24px;
  }

  .tech-item i {
    font-size: 1.3rem;
  }

  .tech-item span {
    font-size: 0.6rem;
  }
}

/* ===== AP RESULTS / KPI ===== */
.ap-results {
  margin-top: 24px;
  padding: 20px;
  background: linear-gradient(
    135deg,
    rgba(37, 99, 235, 0.06),
    rgba(6, 182, 212, 0.06)
  );
  border: 1px solid rgba(37, 99, 235, 0.15);
  border-radius: var(--radius);
}

.ap-results h4 {
  font-size: 0.9rem;
  color: var(--primary-light);
  margin-bottom: 16px;
}

.ap-results h4 i {
  margin-right: 8px;
  color: #f59e0b;
}

.ap-results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
}

.ap-result {
  text-align: center;
  padding: 12px 8px;
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.result-value {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary-light);
  font-family: var(--font-mono);
  line-height: 1.2;
}

.result-label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-top: 4px;
  line-height: 1.3;
}

@media (max-width: 480px) {
  .ap-results-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .result-value {
    font-size: 1.2rem;
  }
}

/* ===== COMPETENCE REALISATION LINKS ===== */
.competence-realisation a {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--text-secondary);
  font-size: 0.85rem;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  text-decoration: none;
  border: 1px solid transparent;
}

.competence-realisation a:hover {
  color: var(--primary-light);
  background: var(--primary-glow);
  border-color: rgba(37, 99, 235, 0.2);
}

.competence-realisation a i {
  color: var(--accent);
  margin-top: 2px;
  flex-shrink: 0;
}

/* ===== ENHANCED FOOTER ===== */
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding: 48px 0 32px;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 12px;
  line-height: 1.6;
}

.footer-nav h4 {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.footer-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-nav a {
  color: var(--text-muted);
  font-size: 0.85rem;
  transition: var(--transition);
}

.footer-nav a:hover {
  color: var(--primary-light);
  padding-left: 4px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-tech {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.footer-tech a {
  color: var(--primary-light);
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
    padding: 32px 0 24px;
  }

  .footer-nav ul {
    align-items: center;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .footer-links {
    justify-content: center;
  }
}

/* ===== LIGHT THEME ===== */
:root[data-theme="light"] {
  --bg-dark: #f8fafc;
  --bg-section: #f1f5f9;
  --bg-card: #ffffff;
  --bg-card-hover: #f8fafc;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --border: #cbd5e1;
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #2563eb;
  --accent: #0891b2;
  --accent-light: #06b6d4;
  --primary-glow: rgba(37, 99, 235, 0.08);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.08);
}

:root[data-theme="light"] #navbar {
  background: rgba(248, 250, 252, 0.9);
}

:root[data-theme="light"] #navbar.scrolled {
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

:root[data-theme="light"] .nav-toggle span {
  background: var(--text-primary);
}

:root[data-theme="light"] .hero-bg-grid {
  opacity: 0.04;
}

:root[data-theme="light"] .hero-name {
  background: linear-gradient(135deg, #2563eb, #0891b2);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

:root[data-theme="light"] .timeline::before {
  background: #cbd5e1;
}

:root[data-theme="light"] .timeline-marker {
  border-color: #cbd5e1;
  background: #f1f5f9;
}

:root[data-theme="light"] .timeline-marker.current {
  background: #2563eb;
  border-color: #2563eb;
}

:root[data-theme="light"] .tag,
:root[data-theme="light"] .timeline-tags span {
  background: rgba(37, 99, 235, 0.08);
  color: #2563eb;
}

:root[data-theme="light"] .cert-card {
  background: #ffffff;
  border-color: #e2e8f0;
}

:root[data-theme="light"] .cert-card:hover {
  border-color: #2563eb;
  box-shadow: 0 8px 30px rgba(37, 99, 235, 0.1);
}

:root[data-theme="light"] .tech-stack-bar {
  background: #f1f5f9;
  border-bottom-color: #e2e8f0;
}

:root[data-theme="light"] .ap-results {
  background: linear-gradient(
    135deg,
    rgba(37, 99, 235, 0.04),
    rgba(6, 182, 212, 0.04)
  );
  border-color: rgba(37, 99, 235, 0.12);
}

:root[data-theme="light"] .ap-result {
  background: #ffffff;
  border-color: #e2e8f0;
}

:root[data-theme="light"] .footer-bottom {
  border-top-color: rgba(255, 255, 255, 0.1);
}

:root[data-theme="light"] footer {
  background: #0f172a;
  color: #f1f5f9;
}

:root[data-theme="light"] footer p,
:root[data-theme="light"] footer a {
  color: #94a3b8;
}

/* ===== THEME TOGGLE BUTTON ===== */
.theme-toggle {
  background: none;
  border: 2px solid var(--border);
  color: var(--text-secondary);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1rem;
  transition: var(--transition);
  margin-right: 8px;
  flex-shrink: 0;
}

.theme-toggle:hover {
  border-color: var(--primary-light);
  color: var(--primary-light);
  transform: rotate(30deg);
}

/* ===== HERO AVAILABILITY BADGE ===== */
.hero-availability {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(16, 185, 129, 0.12);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-top: 12px;
  animation: fadeInUp 0.6s ease 0.2s both;
}

.availability-dot {
  width: 8px;
  height: 8px;
  background: #34d399;
  border-radius: 50%;
  display: inline-block;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(1.4);
  }
}

:root[data-theme="light"] .hero-availability {
  background: rgba(16, 185, 129, 0.1);
  color: #059669;
  border-color: rgba(16, 185, 129, 0.3);
}

:root[data-theme="light"] .availability-dot {
  background: #059669;
}

/* ===== CERTIFICATIONS ===== */
.certifications-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr));
  gap: 24px;
  margin-top: 48px;
}

.cert-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: var(--transition);
  position: relative;
}

.cert-card:hover {
  border-color: var(--primary-light);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.cert-logo {
  width: 72px;
  height: 72px;
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cert-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.cert-logo.anssi-logo {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  font-size: 2rem;
}

.cert-content h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
}

.cert-issuer {
  font-size: 0.85rem;
  color: var(--primary-light);
  margin-top: 4px;
}

.cert-issuer i,
.cert-date i {
  margin-right: 6px;
  width: 14px;
}

.cert-date {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.cert-description {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.6;
}

.cert-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.cert-tags span {
  background: var(--primary-glow);
  color: var(--primary-light);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.cert-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary-light);
  padding: 8px 16px;
  border: 1px solid var(--primary-light);
  border-radius: var(--radius-sm);
  transition: var(--transition);
  align-self: flex-start;
}

.cert-link:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* ===== CV MODAL ===== */
.cv-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
}

.cv-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.cv-modal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  width: 90vw;
  height: 90vh;
  max-width: 900px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: scale(0.9) translateY(20px);
  transition: transform 0.3s ease;
}

.cv-modal-overlay.active .cv-modal {
  transform: scale(1) translateY(0);
}

.cv-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.cv-modal-header h3 {
  font-size: 1rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.cv-modal-header h3 i {
  color: #ef4444;
}

.cv-modal-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-sm {
  font-size: 0.8rem;
  padding: 6px 14px;
}

.cv-modal-close {
  background: none;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1rem;
  transition: var(--transition);
}

.cv-modal-close:hover {
  border-color: #ef4444;
  color: #ef4444;
  background: rgba(239, 68, 68, 0.1);
}

.cv-modal-body {
  flex: 1;
  min-height: 0;
}

.cv-modal-body iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* CV Modal mobile */
@media (max-width: 768px) {
  .cv-modal {
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    border-radius: 0;
    max-width: none;
  }

  .cv-modal-header h3 {
    font-size: 0.85rem;
  }

  .cv-modal-actions .btn-sm {
    display: none;
  }

  .cv-modal-header {
    padding: 12px 16px;
  }
}

/* ===== LEGAL MODALS (Mentions légales & CGU) ===== */
.legal-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
  padding: 20px;
}

.legal-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.legal-modal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 700px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: scale(0.9) translateY(20px);
  transition: transform 0.3s ease;
}

.legal-modal-overlay.active .legal-modal {
  transform: scale(1) translateY(0);
}

.legal-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 28px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.legal-modal-header h2 {
  font-size: 1.25rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}

.legal-modal-header h2 i {
  color: var(--primary-light);
}

.legal-modal-close {
  background: none;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1rem;
  transition: var(--transition);
  flex-shrink: 0;
}

.legal-modal-close:hover {
  border-color: #ef4444;
  color: #ef4444;
  background: rgba(239, 68, 68, 0.1);
}

.legal-modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 28px;
}

.legal-modal-body::-webkit-scrollbar {
  width: 6px;
}

.legal-modal-body::-webkit-scrollbar-track {
  background: transparent;
}

.legal-modal-body::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
}

.legal-modal-body::-webkit-scrollbar-thumb:hover {
  background: var(--border-light);
}

.legal-section {
  margin-bottom: 24px;
}

.legal-section:last-child {
  margin-bottom: 0;
}

.legal-section h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.legal-section p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 6px;
}

.legal-section p:last-child {
  margin-bottom: 0;
}

.legal-section a {
  color: var(--primary-light);
  text-decoration: none;
  transition: var(--transition);
}

.legal-section a:hover {
  color: var(--accent-light);
  text-decoration: underline;
}

/* Footer legal links */
.footer-legal {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.8rem;
}

.footer-legal-link {
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 5px;
}

.footer-legal-link:hover {
  color: var(--primary-light);
}

.footer-legal-sep {
  color: var(--text-muted);
  opacity: 0.4;
}

@media (max-width: 768px) {
  .legal-modal {
    max-height: 90vh;
    border-radius: var(--radius);
  }

  .legal-modal-header {
    padding: 16px 20px;
  }

  .legal-modal-header h2 {
    font-size: 1.05rem;
  }

  .legal-modal-body {
    padding: 20px;
  }

  .legal-section p {
    font-size: 0.85rem;
  }

  .footer-legal {
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
  }
}

/* Theme toggle mobile */
@media (max-width: 768px) {
  .theme-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1001;
    background: var(--bg-card);
    border: 1px solid var(--border);
    width: 44px;
    height: 44px;
    box-shadow: var(--shadow-md);
  }
}

/* Certifications responsive */
@media (max-width: 480px) {
  .cert-card {
    padding: 20px;
  }

  .cert-logo {
    width: 56px;
    height: 56px;
  }

  .cert-content h3 {
    font-size: 1rem;
  }
}

/* ===== SCROLL PROGRESS BAR ===== */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  z-index: 9999;
  transition: width 0.1s linear;
  box-shadow: 0 0 8px rgba(37, 99, 235, 0.4);
}

/* ===== SIDE NAV DOTS ===== */
.side-nav-dots {
  position: fixed;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 900;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.side-nav-dots.visible {
  opacity: 1;
}

.side-dot {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  cursor: pointer;
  text-decoration: none;
}

.side-dot span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
  transition: all 0.3s ease;
  display: block;
}

.side-dot:hover span,
.side-dot.active span {
  background: var(--primary);
  transform: scale(1.5);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.side-dot.active span {
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.2);
}

/* Tooltip */
.side-dot::before {
  content: attr(data-tooltip);
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%) translateX(8px);
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border);
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s ease;
  box-shadow: var(--shadow-sm);
}

.side-dot:hover::before {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

@media (max-width: 1024px) {
  .side-nav-dots {
    display: none;
  }
}

/* ===== TESTIMONIALS ===== */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr));
  gap: 28px;
  margin-top: 48px;
}

.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  transition: var(--transition);
  position: relative;
}

.testimonial-card:hover {
  border-color: var(--primary-light);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.testimonial-quote {
  position: relative;
}

.testimonial-icon {
  font-size: 1.8rem;
  color: var(--primary);
  opacity: 0.2;
  position: absolute;
  top: -4px;
  left: -4px;
}

.testimonial-quote p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.8;
  font-style: italic;
  padding-left: 28px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.testimonial-avatar {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.testimonial-avatar i {
  color: #fff;
  font-size: 1rem;
}

.testimonial-author strong {
  display: block;
  font-size: 0.9rem;
  color: var(--text-primary);
}

.testimonial-author span {
  display: block;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.testimonial-note {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.82rem;
  font-style: italic;
  margin-top: 24px;
  padding: 12px 20px;
  background: var(--bg-card);
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
  display: inline-block;
  margin-left: auto;
  margin-right: auto;
  width: fit-content;
}

.testimonial-note i {
  margin-right: 6px;
  color: var(--accent);
}

/* Center the note */
.testimonials-grid + .testimonial-note {
  display: block;
  margin: 24px auto 0;
  text-align: center;
}

@media (max-width: 768px) {
  .testimonials-grid {
    margin-top: 32px;
    gap: 16px;
  }

  .testimonial-card {
    padding: 24px 20px;
  }

  .testimonial-card:hover {
    transform: none;
  }
}

/* ===== POURQUOI ME CHOISIR ===== */
.why-me-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: 24px;
  margin-top: 48px;
}

.why-me-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  text-align: center;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.why-me-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.why-me-item:hover {
  border-color: var(--primary-light);
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.why-me-item:hover::before {
  opacity: 1;
}

.why-me-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.why-me-icon i {
  font-size: 1.3rem;
  color: #fff;
}

.why-me-item h4 {
  font-size: 1.05rem;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.why-me-item p {
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .why-me-grid {
    margin-top: 32px;
    gap: 16px;
  }

  .why-me-item {
    padding: 24px 20px;
  }

  .why-me-item:hover {
    transform: none;
  }
}

/* ===== BACK TO TOP ===== */
.back-to-top {
  position: fixed;
  bottom: 24px;
  left: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  z-index: 1001;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.3);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 6px 24px rgba(37, 99, 235, 0.4);
}

@media (max-width: 768px) {
  .back-to-top {
    bottom: 20px;
    left: 20px;
    width: 40px;
    height: 40px;
    font-size: 0.9rem;
  }
}

/* ===== AP CARD GLOW EFFECT ===== */
.ap-header {
  position: relative;
  overflow: hidden;
}

.ap-glow {
  position: absolute;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.12), transparent 70%);
  pointer-events: none;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 0;
}

.ap-header:hover .ap-glow {
  opacity: 1;
}

.ap-header > *:not(.ap-glow) {
  position: relative;
  z-index: 1;
}

:root[data-theme="light"] .ap-glow {
  background: radial-gradient(circle, rgba(37, 99, 235, 0.08), transparent 70%);
}

:root[data-theme="light"] .testimonial-card {
  background: #fff;
}

:root[data-theme="light"] .why-me-item {
  background: #fff;
}

:root[data-theme="light"] .back-to-top {
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.2);
}

:root[data-theme="light"] .contact-form-card,
:root[data-theme="light"] .contact-direct,
:root[data-theme="light"] .contact-docs {
  background: #fff;
}

:root[data-theme="light"] .form-group input,
:root[data-theme="light"] .form-group select,
:root[data-theme="light"] .form-group textarea {
  background: #f8fafc;
  border-color: #e2e8f0;
}

:root[data-theme="light"] .contact-direct-item {
  background: #f8fafc;
}

:root[data-theme="light"] a.contact-direct-item:hover {
  background: rgba(37, 99, 235, 0.04);
}

/* ===== PRINT ===== */
@media print {
  * {
    color: #000 !important;
    background: #fff !important;
    box-shadow: none !important;
    text-shadow: none !important;
    border-color: #ccc !important;
  }

  #navbar,
  .nav-toggle,
  .theme-toggle,
  .scroll-indicator,
  .hero-bg-grid,
  .hero-cta,
  .hero-availability,
  .filter-tabs,
  .cv-modal-overlay,
  .cert-link,
  footer,
  .contact-form-card,
  .scroll-progress,
  .side-nav-dots,
  .back-to-top,
  .testimonial-note {
    display: none !important;
  }

  body {
    font-size: 11pt;
    line-height: 1.5;
  }

  .section {
    padding: 24px 0;
    page-break-inside: avoid;
  }

  #hero {
    min-height: auto;
    padding: 32px 0;
  }

  .ap-card.open .ap-body,
  .ap-body {
    display: block !important;
    padding: 16px !important;
  }

  .ap-card {
    page-break-inside: avoid;
  }

  .synthese-table-wrapper {
    overflow: visible;
  }

  .synthese-table {
    min-width: auto;
  }

  a[href]::after {
    content: none;
  }

  .procedure-card,
  .competence-card,
  .doc-card {
    break-inside: avoid;
  }
}
