/* =====================================================================
   simonboissonnet.fr — Feuille de styles partagée
   Palette "Terminal Rouge"
   ===================================================================== */

:root {
  --bg-primary:     #0A0A0A;
  --bg-surface:     #141414;
  --bg-elevated:    #1E1E1E;
  --border:         #2A2A2A;
  --text-primary:   #EDEDED;
  --text-secondary: #9E9E9E;
  --accent:         #E53935;
  --accent-dark:    #B71C1C;
  --accent-glow:    rgba(229, 57, 53, 0.15);
  --font-body:      'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-mono:      'JetBrains Mono', 'Fira Code', ui-monospace, monospace;
  --max-width:      1140px;
  --nav-height:     64px;
}

/* ═══════════════════════════════════════════
   RESET & BASE
   ═══════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--text-primary);
  background: var(--bg-primary);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--accent); text-decoration: none; transition: color .2s; }
a:hover { color: #ff5252; }
img { max-width: 100%; display: block; height: auto; }
ul { list-style: none; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

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

/* Skip link — accessibilité WCAG 2.2 AA */
.skip-link {
  position: absolute;
  top: -48px;
  left: 16px;
  padding: 10px 16px;
  background: var(--accent);
  color: #fff;
  border-radius: 6px;
  font-size: .9rem;
  font-weight: 500;
  z-index: 10000;
  transition: top .2s ease;
}
.skip-link:focus { top: 12px; color: #fff; }

/* ═══════════════════════════════════════════
   CUSTOM CURSOR (desktop only)
   ═══════════════════════════════════════════ */
@media (pointer: fine) {
  body { cursor: none; }
  a, button, input, textarea, label, [role="button"] { cursor: none; }
}

#cursor-dot {
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 99999;
  transition: transform .15s ease, opacity .15s ease;
  transform: translate(-50%, -50%);
}
#cursor-dot.hover { transform: translate(-50%, -50%) scale(2.5); opacity: .5; }

/* ═══════════════════════════════════════════
   SECTION SHARED STYLES
   ═══════════════════════════════════════════ */
.section {
  padding: 100px 0;
}

.section-label {
  font-family: var(--font-mono);
  font-size: .75rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 600;
  margin-bottom: 48px;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 48px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .7s cubic-bezier(.22,1,.36,1), transform .7s cubic-bezier(.22,1,.36,1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ═══════════════════════════════════════════
   NAVBAR
   ═══════════════════════════════════════════ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-height);
  background: rgba(10,10,10,.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  display: flex;
  align-items: center;
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-mono);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: -1px;
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  color: var(--text-secondary);
  font-size: .875rem;
  font-weight: 500;
  transition: color .2s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width .3s ease;
}

.nav-links a:hover,
.nav-links a.active,
.nav-links a[aria-current="page"] {
  color: var(--text-primary);
}

.nav-links a:hover::after,
.nav-links a.active::after,
.nav-links a[aria-current="page"]::after {
  width: 100%;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: all .3s ease;
  border-radius: 2px;
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 768px) {
  .hamburger { display: flex; }

  .nav-links {
    position: fixed;
    top: 0; right: 0;
    width: 260px;
    height: 100vh;
    background: var(--bg-surface);
    border-left: 1px solid var(--border);
    flex-direction: column;
    padding: 96px 32px 32px;
    gap: 24px;
    transform: translateX(100%);
    transition: transform .35s cubic-bezier(.22,1,.36,1);
  }

  .nav-links.open { transform: translateX(0); }

  .nav-links a { font-size: 1rem; }
}

/* ═══════════════════════════════════════════
   HERO (#hero)
   ═══════════════════════════════════════════ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-height);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, var(--border) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: .4;
  pointer-events: none;
}

.hero .container {
  display: flex;
  align-items: center;
  gap: 64px;
  position: relative;
  z-index: 1;
}

.hero-photo {
  flex-shrink: 0;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--accent);
  box-shadow: 0 0 40px var(--accent-glow);
  position: relative;
  background: var(--bg-elevated);
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-photo .placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 3rem;
  font-weight: 600;
  color: var(--accent);
  background: var(--bg-elevated);
}

.hero-content { flex: 1; }

.hero-greeting {
  font-size: .95rem;
  color: var(--text-secondary);
  margin-bottom: 4px;
  font-weight: 500;
}

.hero-name {
  font-size: clamp(2rem, 5.5vw, 3.4rem);
  font-weight: 600;
  line-height: 1.15;
  margin-bottom: 8px;
}

.hero-typewriter {
  font-family: var(--font-mono);
  font-size: clamp(.85rem, 2vw, 1.05rem);
  color: var(--accent);
  min-height: 1.8em;
  margin-bottom: 16px;
}

.hero-typewriter .cursor {
  display: inline-block;
  width: 2px;
  height: 1.15em;
  background: var(--accent);
  margin-left: 2px;
  vertical-align: text-bottom;
  animation: blink .7s step-end infinite;
}

@keyframes blink { 50% { opacity: 0; } }

.hero-bio {
  color: var(--text-secondary);
  font-size: .95rem;
  max-width: 540px;
  margin-bottom: 28px;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: .9rem;
  font-weight: 500;
  border: none;
  transition: all .25s ease;
  text-align: center;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover {
  background: var(--accent-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--accent-glow);
}

.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 1.5px solid var(--accent);
}
.btn-outline:hover {
  background: var(--accent-glow);
  color: var(--accent);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.hero-socials {
  display: flex;
  gap: 16px;
}

.hero-socials a,
.hero-socials span.social-disabled {
  width: 42px; height: 42px;
  border-radius: 10px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all .25s ease;
}

.hero-socials a:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-glow);
  transform: translateY(-2px);
}

.hero-socials span.social-disabled {
  opacity: .35;
  cursor: not-allowed;
}

.hero-socials svg { width: 20px; height: 20px; fill: currentColor; }

/* Hero fadeUp animation */
.hero-anim {
  opacity: 0;
  transform: translateY(24px);
  animation: heroFadeUp .8s cubic-bezier(.22,1,.36,1) forwards;
}
.hero-anim:nth-child(1) { animation-delay: .1s; }
.hero-anim:nth-child(2) { animation-delay: .25s; }
.hero-anim:nth-child(3) { animation-delay: .4s; }
.hero-anim:nth-child(4) { animation-delay: .55s; }
.hero-anim:nth-child(5) { animation-delay: .65s; }
.hero-anim:nth-child(6) { animation-delay: .75s; }

@keyframes heroFadeUp {
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
  .hero .container {
    flex-direction: column;
    text-align: center;
    gap: 32px;
    padding-top: 32px;
    padding-bottom: 48px;
  }
  .hero-photo { width: 150px; height: 150px; }
  .hero-actions { justify-content: center; }
  .hero-socials { justify-content: center; }
}

/* ═══════════════════════════════════════════
   EXPERIENCE (#experience)
   ═══════════════════════════════════════════ */
#experience { background: var(--bg-primary); }

.timeline {
  position: relative;
  padding-left: 40px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border);
}

.timeline-item {
  position: relative;
  margin-bottom: 40px;
}

.timeline-item:last-child { margin-bottom: 0; }

.timeline-item::before {
  content: '';
  position: absolute;
  left: -40px;
  top: 6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 3px solid var(--accent);
  background: var(--bg-primary);
  z-index: 1;
}

.timeline-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  transition: all .3s ease;
}

.timeline-card:hover {
  border-color: var(--accent);
  transform: translateX(4px);
  box-shadow: -4px 0 0 var(--accent);
}

.timeline-header {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 8px;
}

.timeline-date {
  font-family: var(--font-mono);
  font-size: .78rem;
  color: var(--accent);
}

.badge {
  font-family: var(--font-mono);
  font-size: .68rem;
  padding: 3px 10px;
  border-radius: 4px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .5px;
}

.badge-info {
  background: var(--accent-dark);
  color: #fff;
}

.badge-commerce {
  background: var(--bg-elevated);
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

.timeline-title {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 2px;
}

.timeline-company {
  font-size: .88rem;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.timeline-missions {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.timeline-missions li {
  font-size: .88rem;
  color: var(--text-secondary);
  padding-left: 18px;
  position: relative;
  line-height: 1.6;
}

.timeline-missions li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 600;
}

@media (max-width: 768px) {
  .timeline { padding-left: 32px; }
  .timeline-item::before { left: -32px; width: 14px; height: 14px; }
  .timeline::before { left: 6px; }
}

/* ═══════════════════════════════════════════
   PROJETS (#projets)
   ═══════════════════════════════════════════ */
#projets { background: var(--bg-surface); }

.projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 768px) {
  .projects-grid { grid-template-columns: 1fr 1fr; }
  .project-main { grid-column: 1 / -1; }
}

.project-card {
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px;
  transition: all .3s ease;
}

.project-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,.3);
}

.project-main {
  border-left: 4px solid var(--accent);
}

.project-card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.project-card p {
  font-size: .9rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
  line-height: 1.7;
}

.tag-group { margin-bottom: 12px; }

.tag-group-label {
  font-size: .72rem;
  color: var(--text-secondary);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  font-family: var(--font-mono);
  font-size: .72rem;
  padding: 4px 10px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text-secondary);
  transition: all .2s ease;
}

.tag:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-size: .9rem;
  font-weight: 500;
}

.project-placeholder {
  border-style: dashed;
  border-color: rgba(229,57,53,.3);
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 160px;
  text-align: center;
}

.project-placeholder:hover {
  border-color: var(--accent);
  background: var(--accent-glow);
  transform: translateY(-4px);
}

.project-placeholder span {
  font-size: .95rem;
  color: var(--text-secondary);
  font-style: italic;
}

/* ═══════════════════════════════════════════
   CERTIFICATIONS (#certifications)
   ═══════════════════════════════════════════ */
#certifications { background: var(--bg-primary); }

.cert-message {
  text-align: center;
  margin-bottom: 40px;
}

.cert-message svg {
  display: block;
  margin: 0 auto 16px;
}

.cert-message p {
  color: var(--text-secondary);
  font-size: .95rem;
  font-style: italic;
}

.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.cert-placeholder {
  border: 2px dashed rgba(229,57,53,.25);
  border-radius: 12px;
  padding: 40px 24px;
  text-align: center;
  transition: all .3s ease;
  min-height: 140px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.cert-placeholder:hover {
  border-color: var(--accent);
  background: var(--accent-glow);
}

.cert-placeholder span {
  font-size: .82rem;
  color: var(--text-secondary);
}

.cert-placeholder .cert-name {
  font-weight: 500;
  color: var(--text-primary);
  font-size: .9rem;
}

/* ═══════════════════════════════════════════
   INFORMATIONS (#infos)
   ═══════════════════════════════════════════ */
#infos { background: var(--bg-surface); }

.infos-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}

@media (min-width: 768px) {
  .infos-grid { grid-template-columns: 1fr 1fr; gap: 64px; }
}

.about-text p {
  color: var(--text-secondary);
  font-size: .93rem;
  margin-bottom: 16px;
  line-height: 1.8;
}

.info-items {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: .9rem;
}

.info-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}

.info-icon svg { width: 18px; height: 18px; }

.info-item .info-label {
  font-size: .72rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: .5px;
}

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

.info-item .info-value a {
  color: var(--text-primary);
}
.info-item .info-value a:hover {
  color: var(--accent);
}

.soft-skills {
  margin-top: 28px;
}

.soft-skills h4 {
  font-size: .82rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.soft-skills .tags { gap: 8px; }

.soft-tag {
  font-size: .82rem;
  padding: 6px 14px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 20px;
  color: var(--text-secondary);
  transition: all .2s ease;
}

.soft-tag:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ═══════════════════════════════════════════
   CONTACT (#contact)
   ═══════════════════════════════════════════ */
#contact { background: var(--bg-primary); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}

@media (min-width: 768px) {
  .contact-grid { grid-template-columns: 1fr 1.3fr; gap: 64px; }
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text-primary);
  transition: all .25s ease;
}

.contact-link:hover {
  border-color: var(--accent);
  background: var(--accent-glow);
  color: var(--text-primary);
  transform: translateX(4px);
}

.contact-link .cl-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: var(--bg-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
  transition: all .25s ease;
}

.contact-link:hover .cl-icon {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 0 20px var(--accent-glow);
}

.contact-link svg { width: 20px; height: 20px; }

.cl-info .cl-label {
  font-size: .72rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: .5px;
}

.cl-info .cl-value {
  font-size: .9rem;
  font-weight: 500;
}

.contact-link.is-disabled {
  opacity: .55;
  cursor: not-allowed;
  pointer-events: none;
}

/* Form */
.contact-form {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: .82rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: .9rem;
  transition: border-color .2s;
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-group textarea { resize: vertical; min-height: 120px; }

.form-consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 20px;
  font-size: .78rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.form-consent input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin-top: 3px;
  flex-shrink: 0;
  accent-color: var(--accent);
}

.form-consent a { color: var(--accent); }

.form-note {
  font-size: .78rem;
  color: var(--text-secondary);
  margin-top: 16px;
  text-align: center;
  font-style: italic;
}

/* ═══════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════ */
.footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  padding: 32px 0;
  text-align: center;
}

.footer p {
  font-size: .82rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

.footer a {
  color: var(--text-secondary);
  transition: color .2s;
}

.footer a:hover { color: var(--accent); }

.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.footer-links a { font-size: .82rem; }

/* ═══════════════════════════════════════════
   MOBILE OVERLAY
   ═══════════════════════════════════════════ */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.6);
  z-index: 998;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}

.nav-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

/* =====================================================================
   STYLES PAGES INTÉRIEURES (alternance, projet, mentions légales)
   ===================================================================== */

/* Breadcrumb */
.breadcrumb {
  font-family: var(--font-mono);
  font-size: .78rem;
  color: var(--text-secondary);
  padding: calc(var(--nav-height) + 32px) 0 0;
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
}

.breadcrumb li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.breadcrumb li + li::before {
  content: '/';
  color: var(--border);
}

.breadcrumb a {
  color: var(--text-secondary);
}
.breadcrumb a:hover { color: var(--accent); }

.breadcrumb [aria-current="page"] {
  color: var(--text-primary);
}

/* Page hero (pages intérieures) */
.page-hero {
  padding: 48px 0 64px;
  border-bottom: 1px solid var(--border);
}

.page-hero .tagline {
  font-family: var(--font-mono);
  color: var(--accent);
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 16px;
}

.page-hero h1 {
  font-size: clamp(1.8rem, 4.5vw, 2.8rem);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 16px;
}

.page-hero .lead {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 720px;
  line-height: 1.75;
}

/* Contenu long (alternance, projet, mentions) */
.content {
  padding: 64px 0 96px;
}

.content h2 {
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  font-weight: 600;
  margin: 48px 0 16px;
  position: relative;
  padding-left: 16px;
}
.content h2::before {
  content: '';
  position: absolute;
  left: 0; top: 8px; bottom: 8px;
  width: 3px;
  background: var(--accent);
  border-radius: 2px;
}
.content h2:first-child { margin-top: 0; }

.content h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 32px 0 12px;
  color: var(--text-primary);
}

.content p {
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.8;
  font-size: .95rem;
}

.content ul:not(.tags):not(.nav-links):not(.footer-links):not(.breadcrumb ol) {
  margin: 8px 0 24px;
  padding-left: 24px;
}
.content ul:not(.tags):not(.nav-links):not(.footer-links):not(.breadcrumb ol) li {
  color: var(--text-secondary);
  margin-bottom: 8px;
  line-height: 1.75;
  font-size: .95rem;
  list-style: none;
  position: relative;
}
.content ul:not(.tags):not(.nav-links):not(.footer-links):not(.breadcrumb ol) li::before {
  content: '›';
  position: absolute;
  left: -18px;
  color: var(--accent);
  font-weight: 600;
}

.content strong { color: var(--text-primary); font-weight: 600; }

.content a:not(.btn):not(.contact-link):not(.tag) {
  color: var(--accent);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.content a:not(.btn):not(.contact-link):not(.tag):hover {
  border-bottom-color: var(--accent);
}

/* Info card (utilisé sur /alternance) */
.info-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: 12px;
  padding: 24px 28px;
  margin: 24px 0;
}
.info-card p:last-child { margin-bottom: 0; }

/* Grid key-values (profil, contacts, métadonnées projet) */
.kv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin: 24px 0;
}

.kv-grid .kv {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 20px;
}

.kv-grid .kv .kv-label {
  font-size: .72rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-family: var(--font-mono);
  margin-bottom: 6px;
}
.kv-grid .kv .kv-value {
  font-size: .95rem;
  color: var(--text-primary);
  font-weight: 500;
  line-height: 1.5;
}

/* Call-to-action final des pages intérieures */
.page-cta {
  margin: 48px 0 0;
  padding: 32px;
  background: linear-gradient(135deg, var(--bg-surface) 0%, var(--bg-elevated) 100%);
  border: 1px solid var(--border);
  border-radius: 16px;
  text-align: center;
}
.page-cta h2 {
  padding-left: 0;
  margin-top: 0;
}
.page-cta h2::before { display: none; }
.page-cta p {
  margin-bottom: 24px;
}
.page-cta .hero-actions {
  justify-content: center;
  margin-bottom: 0;
}

/* Retour page d'accueil */
.back-home {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: .85rem;
  color: var(--text-secondary);
  margin-top: 32px;
}
.back-home:hover { color: var(--accent); }

/* ═══════════════════════════════════════════
   prefers-reduced-motion — accessibilité
   ═══════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }

  .reveal { opacity: 1; transform: none; }
  .hero-anim { opacity: 1; transform: none; animation: none; }
  .hero-typewriter .cursor { animation: none; }

  @media (pointer: fine) {
    body { cursor: auto; }
    a, button, input, textarea, label, [role="button"] { cursor: auto; }
  }
}

/* Print styles — le CV PDF suffit, on cache ce qui n'a aucun sens en impression */
@media print {
  .navbar, .nav-overlay, #cursor-dot, .hero-actions, .hero-socials,
  .contact-form, .page-cta, .footer { display: none !important; }
  body { background: #fff; color: #000; }
  a { color: #000; text-decoration: underline; }
}
