/* =============================================
   VARIABLES & RESET
   ============================================= */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* PRO MODE */
  --pro-bg: #F7F5F0;
  --pro-bg-alt: #EEECE6;
  --pro-text: #1A1A18;
  --pro-text-secondary: #5C5C56;
  --pro-accent: #1A1A18;
  --pro-accent-light: #E8E4DA;
  --pro-border: #D8D4CA;
  --pro-tag-bg: #1A1A18;
  --pro-tag-text: #F7F5F0;

  /* PREST MODE */
  --prest-bg: #0D0D0B;
  --prest-bg-alt: #141410;
  --prest-text: #F0EDE4;
  --prest-text-secondary: #8A8A7E;
  --prest-accent: #C8F050;
  --prest-accent-dim: rgba(200, 240, 80, 0.08);
  --prest-border: #2A2A24;

  /* TYPOGRAPHY */
  --font-display: 'Cormorant Garamond', serif;
  --font-title: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;

  /* SPACING */
  --section-gap: 120px;
  --container-max: 1100px;
  --container-pad: 48px;
}

html {
  scroll-behavior: smooth;
}

/* =============================================
   ACCESSIBILITY
   ============================================= */

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 2000;
  padding: 12px 20px;
  background: var(--pro-text);
  color: var(--pro-bg);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  border-radius: 4px;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 16px;
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
  border-radius: 2px;
}

body.mode-prest :focus-visible {
  outline-color: var(--prest-accent);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
  transition: background 0.7s ease, color 0.7s ease;
}

/* =============================================
   MODE STATES
   ============================================= */

body.mode-pro {
  background: var(--pro-bg);
  color: var(--pro-text);
}

body.mode-prest {
  background: var(--prest-bg);
  color: var(--prest-text);
}

body.mode-pro #pagePrestation {
  display: none;
  pointer-events: none;
}

body.mode-prest #pagePro {
  display: none;
  pointer-events: none;
}

.page {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.page.visible {
  opacity: 1;
  transform: translateY(0);
}

body.mode-pro #pagePro {
  display: block;
}

body.mode-prest #pagePrestation {
  display: block;
}

/* =============================================
   MODE SWITCH
   ============================================= */

.mode-switch {
  position: fixed;
  top: 28px;
  right: 36px;
  z-index: 1000;
}

.switch-track {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(26, 26, 24, 0.06);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(26, 26, 24, 0.1);
  border-radius: 100px;
  padding: 8px 16px;
  transition: background 0.5s ease, border-color 0.5s ease;
}

body.mode-prest .switch-track {
  background: rgba(240, 237, 228, 0.06);
  border-color: rgba(240, 237, 228, 0.12);
}

.switch-label {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color 0.4s ease, opacity 0.4s ease;
  user-select: none;
}

body.mode-pro .switch-label.left {
  color: var(--pro-text);
  opacity: 1;
}

body.mode-pro .switch-label.right {
  color: var(--pro-text-secondary);
  opacity: 0.4;
}

body.mode-prest .switch-label.left {
  color: var(--prest-text-secondary);
  opacity: 0.4;
}

body.mode-prest .switch-label.right {
  color: var(--prest-accent);
  opacity: 1;
}

.switch-thumb {
  width: 36px;
  height: 20px;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  position: relative;
  transition: background 0.4s ease;
  background: var(--pro-text);
  flex-shrink: 0;
}

body.mode-prest .switch-thumb {
  background: var(--prest-accent);
}

.switch-thumb::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: white;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

body.mode-prest .switch-thumb::after {
  transform: translateX(16px);
  background: var(--prest-bg);
}

/* =============================================
   CONTAINER
   ============================================= */

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

/* =============================================
   REVEAL ANIMATIONS
   ============================================= */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 { transition-delay: 0.12s; }
.delay-2 { transition-delay: 0.24s; }
.delay-3 { transition-delay: 0.36s; }
.delay-4 { transition-delay: 0.48s; }

/* =============================================
   HERO — PRO
   ============================================= */

.hero-pro {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px var(--container-pad) 80px;
  position: relative;
  overflow: hidden;
  background: var(--pro-bg);
}

.hero-deco {
  position: absolute;
  top: -200px;
  right: -200px;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200,190,170,0.18) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  width: 100%;
}

.hero-eyebrow {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pro-text-secondary);
  margin-bottom: 32px;
}

.hero-pro .hero-name {
  font-family: var(--font-display);
  font-size: clamp(72px, 10vw, 140px);
  font-weight: 300;
  line-height: 0.95;
  color: var(--pro-text);
  margin-bottom: 32px;
  letter-spacing: -0.02em;
}

.hero-pro .hero-name em {
  font-style: italic;
  font-weight: 300;
}

.hero-title {
  font-family: var(--font-body);
  font-size: clamp(16px, 2vw, 20px);
  font-weight: 300;
  color: var(--pro-text-secondary);
  line-height: 1.5;
  margin-bottom: 16px;
}

.hero-sub {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--pro-text-secondary);
  margin-bottom: 48px;
  opacity: 0.7;
}

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

/* =============================================
   BUTTONS — PRO
   ============================================= */

.btn-primary {
  display: inline-flex;
  align-items: center;
  padding: 14px 28px;
  background: var(--pro-text);
  color: var(--pro-bg);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  border-radius: 4px;
  transition: background 0.25s ease, transform 0.2s ease;
}

.btn-primary:hover {
  background: #333330;
  transform: translateY(-1px);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  padding: 14px 28px;
  background: transparent;
  color: var(--pro-text);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  text-decoration: none;
  border: 1px solid var(--pro-border);
  border-radius: 4px;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.btn-ghost:hover {
  background: var(--pro-accent-light);
  border-color: var(--pro-text);
}

/* =============================================
   ACCROCHE — PRO
   ============================================= */

.accroche {
  padding: var(--section-gap) 0 80px;
  border-top: 1px solid var(--pro-border);
}

.accroche-text {
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 300;
  line-height: 1.5;
  color: var(--pro-text);
  max-width: 760px;
}

/* =============================================
   STATS
   ============================================= */

.stats {
  padding: 80px 0 var(--section-gap);
  background: var(--pro-bg-alt);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 48px;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.stat-number {
  font-family: var(--font-title);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 700;
  color: var(--pro-text);
  line-height: 1;
}

.stat-label {
  font-size: 13px;
  color: var(--pro-text-secondary);
  line-height: 1.4;
}

/* =============================================
   EXPÉRIENCES
   ============================================= */

.experiences {
  padding: var(--section-gap) 0;
}

.section-title {
  font-family: var(--font-title);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--pro-text-secondary);
  margin-bottom: 64px;
}

.exp-item {
  padding: 52px 0;
  border-top: 1px solid var(--pro-border);
}

.exp-item:last-child {
  border-bottom: 1px solid var(--pro-border);
}

.exp-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 20px;
}

.exp-role {
  font-family: var(--font-title);
  font-size: clamp(18px, 2.2vw, 24px);
  font-weight: 600;
  color: var(--pro-text);
  margin-bottom: 4px;
}

.exp-company {
  font-size: 14px;
  color: var(--pro-text-secondary);
}

.exp-date {
  font-size: 13px;
  color: var(--pro-text-secondary);
  white-space: nowrap;
  flex-shrink: 0;
  padding-top: 4px;
}

.exp-context {
  font-size: 15px;
  color: var(--pro-text-secondary);
  margin-bottom: 32px;
  max-width: 700px;
  line-height: 1.7;
}

.exp-missions {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.mission {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 24px;
  align-items: start;
}

.mission-tag {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--pro-tag-bg);
  color: var(--pro-tag-text);
  padding: 5px 10px;
  border-radius: 2px;
  display: inline-block;
  margin-top: 2px;
}

.mission p {
  font-size: 15px;
  color: var(--pro-text);
  line-height: 1.7;
}

/* =============================================
   FORMATIONS
   ============================================= */

.formations {
  padding: var(--section-gap) 0;
  background: var(--pro-bg-alt);
}

.formations-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.formation {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 32px;
  align-items: start;
  padding: 32px 0;
  border-top: 1px solid var(--pro-border);
}

.formation:last-child {
  border-bottom: 1px solid var(--pro-border);
}

.formation-year {
  font-size: 13px;
  color: var(--pro-text-secondary);
  padding-top: 3px;
}

.formation-title {
  font-family: var(--font-title);
  font-size: 18px;
  font-weight: 600;
  color: var(--pro-text);
  margin-bottom: 4px;
}

.formation-school {
  font-size: 14px;
  color: var(--pro-text-secondary);
}

/* =============================================
   COMPÉTENCES
   ============================================= */

.competences {
  padding: var(--section-gap) 0;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--pro-border);
  border: 1px solid var(--pro-border);
}

.skill-block {
  padding: 32px;
  background: var(--pro-bg);
}

.skill-domain {
  font-family: var(--font-title);
  font-size: 14px;
  font-weight: 600;
  color: var(--pro-text);
  margin-bottom: 10px;
}

.skill-tags {
  font-size: 14px;
  color: var(--pro-text-secondary);
  line-height: 1.6;
}

/* =============================================
   CONTACT PRO
   ============================================= */

.contact-pro {
  padding: var(--section-gap) 0;
  background: var(--pro-bg-alt);
}

.contact-inner {
  text-align: center;
}

.contact-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 300;
  color: var(--pro-text);
  margin-bottom: 8px;
}

.contact-sub {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.5vw, 28px);
  font-style: italic;
  color: var(--pro-text-secondary);
  margin-bottom: 40px;
}

.contact-links {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* =============================================
   HERO — PRESTATION
   ============================================= */

.hero-prest {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px var(--container-pad) 80px;
  position: relative;
  overflow: hidden;
  background: var(--prest-bg);
}

.hero-deco-dark {
  position: absolute;
  bottom: -100px;
  left: -100px;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200,240,80,0.05) 0%, transparent 70%);
  pointer-events: none;
}

.hero-prest .hero-eyebrow {
  color: var(--prest-text-secondary);
}

.hero-prest .hero-name {
  font-family: var(--font-display);
  font-size: clamp(52px, 8vw, 110px);
  font-weight: 300;
  line-height: 1.05;
  color: var(--prest-text);
  margin-bottom: 32px;
  letter-spacing: -0.02em;
}

.hero-prest .hero-name em {
  font-style: italic;
  color: var(--prest-accent);
}

.hero-prest .hero-sub {
  color: var(--prest-text-secondary);
  margin-bottom: 48px;
}

/* =============================================
   BUTTONS — PRESTATION
   ============================================= */

.btn-primary-dark {
  display: inline-flex;
  align-items: center;
  padding: 14px 28px;
  background: var(--prest-accent);
  color: var(--prest-bg);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  border-radius: 4px;
  transition: opacity 0.25s ease, transform 0.2s ease;
}

.btn-primary-dark:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

.btn-ghost-dark {
  display: inline-flex;
  align-items: center;
  padding: 14px 28px;
  background: transparent;
  color: var(--prest-text);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  text-decoration: none;
  border: 1px solid var(--prest-border);
  border-radius: 4px;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.btn-ghost-dark:hover {
  border-color: var(--prest-text-secondary);
  background: rgba(255,255,255,0.03);
}

/* =============================================
   SECTIONS — PRESTATION SHARED
   ============================================= */

.section-prest {
  background: var(--prest-bg);
}

.section-title-dark {
  font-family: var(--font-title);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--prest-text-secondary);
  margin-bottom: 64px;
}

/* =============================================
   CE QUE JE FAIS — PRESTATION
   ============================================= */

.ce-que-je-fais {
  padding: var(--section-gap) 0 80px;
  border-top: 1px solid var(--prest-border);
}

.intro-prest p {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.8vw, 30px);
  font-weight: 300;
  line-height: 1.55;
  color: var(--prest-text);
  max-width: 740px;
  margin-bottom: 24px;
}

.intro-prest p:last-child {
  margin-bottom: 0;
  color: var(--prest-text-secondary);
  font-size: clamp(16px, 2vw, 22px);
}

/* =============================================
   DOMAINES — PRESTATION
   ============================================= */

.domaines {
  padding: 80px 0 var(--section-gap);
  background: var(--prest-bg-alt);
}

.domaines-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--prest-border);
  border: 1px solid var(--prest-border);
}

.domaine {
  padding: 48px;
  background: var(--prest-bg-alt);
  position: relative;
  transition: background 0.25s ease;
}

.domaine:hover {
  background: var(--prest-accent-dim);
}

.domaine-number {
  font-family: var(--font-title);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--prest-accent);
  display: block;
  margin-bottom: 20px;
}

.domaine-title {
  font-family: var(--font-title);
  font-size: 20px;
  font-weight: 600;
  color: var(--prest-text);
  margin-bottom: 16px;
}

.domaine p {
  font-size: 15px;
  color: var(--prest-text-secondary);
  line-height: 1.7;
}

/* =============================================
   POURQUOI MOI — PRESTATION
   ============================================= */

.pourquoi {
  padding: var(--section-gap) 0;
}

.pourquoi-inner {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 80px;
  align-items: start;
}

.pourquoi-text p {
  font-size: 16px;
  color: var(--prest-text);
  line-height: 1.75;
  margin-bottom: 20px;
}

.pourquoi-text p:last-child {
  margin-bottom: 0;
}

.pourquoi-stats {
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding-top: 8px;
}

.pstat {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--prest-border);
}

.pstat:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.pstat-num {
  font-family: var(--font-title);
  font-size: 40px;
  font-weight: 700;
  color: var(--prest-accent);
  line-height: 1;
}

.pstat-label {
  font-size: 13px;
  color: var(--prest-text-secondary);
}

/* =============================================
   CONTACT — PRESTATION
   ============================================= */

.contact-prest {
  padding: var(--section-gap) 0;
  background: var(--prest-bg-alt);
  border-top: 1px solid var(--prest-border);
}

.contact-prest-inner {
  text-align: center;
}

.contact-title-dark {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 300;
  color: var(--prest-text);
  margin-bottom: 16px;
}

.contact-sub-dark {
  font-size: 16px;
  color: var(--prest-text-secondary);
  margin-bottom: 40px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.65;
}

/* =============================================
   RESPONSIVE
   ============================================= */

@media (max-width: 900px) {
  :root {
    --container-pad: 28px;
    --section-gap: 80px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }

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

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

  .pourquoi-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .pourquoi-stats {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 32px;
  }

  .pstat {
    border-bottom: none;
    padding-bottom: 0;
  }

  .mission {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

@media (max-width: 640px) {
  .mode-switch {
    top: 16px;
    right: 16px;
  }

  .switch-label {
    display: none;
  }

  .hero-pro,
  .hero-prest {
    padding-top: 96px;
    padding-bottom: 60px;
  }

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

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

  .exp-header {
    flex-direction: column;
    gap: 4px;
  }

  .formation {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .hero-cta {
    flex-direction: column;
  }

  .contact-links {
    flex-direction: column;
    align-items: center;
  }
}
