.cert-carousel {
  position: relative;
  width: clamp(280px, 55vw, 540px);
  height: clamp(360px, 60vw, 460px);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 30;
}

.cert-carousel__viewport {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: visible;
  perspective: 1200px;
}

.cert-carousel__track {
  list-style: none;
  margin: 0;
  padding: 0;
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transform-origin: center center;
  transition: transform 760ms cubic-bezier(.22,.68,.36,1);
}

.cert-carousel__slide {
  position: absolute;
  top: 50%;
  left: 50%;
  width: clamp(240px, 48vw, 420px);
  transform: translate(-50%, -50%);
  opacity: 0.28;
  filter: blur(3px);
  pointer-events: none;
  transition: opacity 240ms ease, filter 240ms ease;
}

.cert-carousel__slide.is-front {
  opacity: 1;
  filter: none;
  pointer-events: auto;
}

.cert-carousel__slide .certification-item {
  width: 100%;
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--surface-border);
  border-radius: 24px;
  padding: clamp(1.1rem, 2.5vw, 1.65rem);
  display: grid;
  gap: 1rem;
  box-shadow: var(--shadow-floating);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.cert-carousel__slide .certification-item .description,
.cert-carousel__slide .certification-item .issuer {
  color: var(--text-secondary);
}

.cert-carousel__slide:not(.is-front) .certification-item {
  filter: brightness(0.45) saturate(0.75);
  transition: filter 240ms ease;
}

.cert-carousel__slide.is-front .certification-item {
  filter: none;
}

.cert-carousel__controls {
  display: none !important;
}

.cert-carousel__control {
  background: var(--nav-btn-bg);
  border: 1px solid var(--nav-btn-border);
  color: var(--text-primary);
  font-size: 1.4rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.cert-carousel__control:hover,
.cert-carousel__control:focus-visible {
  transform: translateY(-2px);
  background: var(--nav-btn-hover);
  border-color: var(--nav-btn-border-active);
}

.cert-carousel__control:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.cert-carousel__control { display: none; }

.cert-carousel.flat {
  width: 100%;
  height: auto;
}

.cert-carousel.flat .cert-carousel__viewport {
  perspective: none;
}

.cert-carousel.flat .cert-carousel__track {
  position: static;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.4rem;
  transform: none !important;
}

.cert-carousel.flat .cert-carousel__slide {
  position: relative;
  top: auto;
  left: auto;
  width: 100%;
  margin: 0 auto;
  transform: none !important;
  opacity: 1 !important;
  filter: none !important;
  pointer-events: auto;
}

.cert-carousel.flat .cert-carousel__slide .certification-item {
  width: 100%;
  filter: none !important;
}

.cert-carousel.two-d {
  width: 100%;
  height: auto;
}

.cert-carousel.two-d .cert-carousel__viewport {
  overflow: hidden;
  perspective: none;
  height: auto;
}

.cert-carousel.two-d .cert-carousel__track {
  position: relative;
  inset: auto;
  display: flex;
  transform: translateX(0);
  transform-style: flat;
}

.cert-carousel.two-d .cert-carousel__slide {
  position: relative;
  top: auto;
  left: auto;
  transform: none !important;
  width: 100%;
  flex: 0 0 100%;
  opacity: 1 !important;
  filter: none !important;
  pointer-events: auto;
}

.cert-carousel.two-d .cert-carousel__slide .certification-item {
  filter: none !important;
}

@media (max-width: 720px) {
  .cert-carousel {
    width: 100%;
    height: auto;
  }
  .cert-carousel__slide {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    width: 100%;
    opacity: 1;
    filter: none;
    pointer-events: auto;
  }
  .cert-carousel__slide .certification-item {
    filter: none;
  }
}
.hero-scroll {
  cursor: none;
}
.audio-card h3 {
  font-size: 1.1rem;
  color: var(--text-primary);
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  color-scheme: dark;
  --bg-color: #181828;
  --surface-primary: rgba(255, 255, 255, 0.05);
  --surface-secondary: rgba(255, 255, 255, 0.08);
  --surface-border: rgba(255, 255, 255, 0.12);
  --surface-border-soft: rgba(255, 255, 255, 0.1);
  --surface-border-strong: rgba(255, 255, 255, 0.4);
  --surface-elevated: rgba(30, 30, 45, 0.78);
  --surface-elevated-border: rgba(255, 255, 255, 0.12);
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.72);
  --text-muted: rgba(255, 255, 255, 0.6);
  --text-subdued: #888888;
  --text-subtle: #666666;
  --accent: #82c2f7;
  --accent-strong: #b5dffe;
  --nav-bg: rgba(255, 255, 255, 0.05);
  --nav-border: rgba(255, 255, 255, 0.12);
  --nav-btn-bg: rgba(255, 255, 255, 0.08);
  --nav-btn-hover: rgba(255, 255, 255, 0.15);
  --nav-btn-active: rgba(255, 255, 255, 0.22);
  --nav-btn-border: rgba(255, 255, 255, 0.15);
  --nav-btn-border-hover: rgba(255, 255, 255, 0.3);
  --nav-btn-border-active: rgba(255, 255, 255, 0.4);
  --chip-bg: rgba(255, 255, 255, 0.1);
  --cursor-base: rgba(255, 255, 255, 0.5);
  --cursor-strong: rgba(255, 255, 255, 0.8);
  --shadow-strong: 0 24px 60px rgba(0, 0, 0, 0.45);
  --shadow-floating: 0 8px 32px rgba(0, 0, 0, 0.3);
  --shadow-chip: 0 14px 32px rgba(0, 0, 0, 0.35);
  --shadow-button-hover: 0 4px 12px rgba(255, 255, 255, 0.1);
  --shadow-button-active: 0 4px 16px rgba(255, 255, 255, 0.13);
  --auth-glow: rgba(130, 194, 247, 0.35);
  --toggle-bg: rgba(255, 255, 255, 0.12);
  --toggle-border: rgba(255, 255, 255, 0.2);
  --toggle-hover: rgba(255, 255, 255, 0.22);
  --placeholder-start: rgba(120, 60, 255, 0.28);
  --placeholder-end: rgba(55, 205, 255, 0.18);
  --placeholder-border: rgba(255, 255, 255, 0.16);
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg-color: #d8dee8;
  --surface-primary: rgba(16, 22, 40, 0.12);
  --surface-secondary: rgba(16, 22, 40, 0.2);
  --surface-border: rgba(15, 23, 42, 0.22);
  --surface-border-soft: rgba(15, 23, 42, 0.16);
  --surface-border-strong: rgba(15, 23, 42, 0.36);
  --surface-elevated: rgba(252, 253, 255, 0.88);
  --surface-elevated-border: rgba(15, 23, 42, 0.2);
  --text-primary: #181b28;
  --text-secondary: rgba(24, 27, 40, 0.7);
  --text-muted: rgba(24, 27, 40, 0.58);
  --text-subdued: rgba(24, 27, 40, 0.48);
  --text-subtle: rgba(24, 27, 40, 0.44);
  --accent: #28479f;
  --accent-strong: #1a3279;
  --nav-bg: rgba(244, 246, 252, 0.78);
  --nav-border: rgba(24, 27, 40, 0.22);
  --nav-btn-bg: rgba(24, 27, 40, 0.14);
  --nav-btn-hover: rgba(24, 27, 40, 0.22);
  --nav-btn-active: rgba(24, 27, 40, 0.28);
  --nav-btn-border: rgba(24, 27, 40, 0.24);
  --nav-btn-border-hover: rgba(24, 27, 40, 0.32);
  --nav-btn-border-active: rgba(24, 27, 40, 0.38);
  --chip-bg: rgba(24, 27, 40, 0.12);
  --cursor-base: rgba(10, 13, 24, 0.68);
  --cursor-strong: rgba(6, 9, 20, 0.88);
  --shadow-strong: 0 16px 36px rgba(24, 27, 40, 0.14);
  --shadow-floating: 0 8px 24px rgba(24, 27, 40, 0.14);
  --shadow-chip: 0 12px 24px rgba(24, 27, 40, 0.15);
  --shadow-button-hover: 0 4px 12px rgba(24, 27, 40, 0.16);
  --shadow-button-active: 0 4px 14px rgba(24, 27, 40, 0.18);
  --auth-glow: rgba(60, 90, 170, 0.18);
  --toggle-bg: rgba(24, 27, 40, 0.14);
  --toggle-border: rgba(24, 27, 40, 0.22);
  --toggle-hover: rgba(24, 27, 40, 0.3);
  --placeholder-start: rgba(48, 76, 182, 0.18);
  --placeholder-end: rgba(102, 176, 240, 0.16);
  --placeholder-border: rgba(24, 27, 40, 0.24);
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme]) {
    color-scheme: light;
    --bg-color: #d8dee8;
    --surface-primary: rgba(16, 22, 40, 0.12);
    --surface-secondary: rgba(16, 22, 40, 0.2);
    --surface-border: rgba(15, 23, 42, 0.22);
    --surface-border-soft: rgba(15, 23, 42, 0.16);
    --surface-border-strong: rgba(15, 23, 42, 0.36);
    --surface-elevated: rgba(252, 253, 255, 0.88);
    --surface-elevated-border: rgba(15, 23, 42, 0.2);
    --text-primary: #181b28;
    --text-secondary: rgba(24, 27, 40, 0.7);
    --text-muted: rgba(24, 27, 40, 0.58);
    --text-subdued: rgba(24, 27, 40, 0.48);
    --text-subtle: rgba(24, 27, 40, 0.44);
    --accent: #28479f;
    --accent-strong: #1a3279;
    --nav-bg: rgba(244, 246, 252, 0.78);
    --nav-border: rgba(24, 27, 40, 0.22);
    --nav-btn-bg: rgba(24, 27, 40, 0.14);
    --nav-btn-hover: rgba(24, 27, 40, 0.22);
    --nav-btn-active: rgba(24, 27, 40, 0.28);
    --nav-btn-border: rgba(24, 27, 40, 0.24);
    --nav-btn-border-hover: rgba(24, 27, 40, 0.32);
    --nav-btn-border-active: rgba(24, 27, 40, 0.38);
    --chip-bg: rgba(24, 27, 40, 0.18);
    --cursor-base: rgba(24, 27, 40, 0.32);
    --cursor-strong: rgba(24, 27, 40, 0.58);
    --shadow-strong: 0 16px 36px rgba(24, 27, 40, 0.14);
    --shadow-floating: 0 8px 24px rgba(24, 27, 40, 0.14);
    --shadow-chip: 0 12px 24px rgba(24, 27, 40, 0.15);
    --shadow-button-hover: 0 4px 12px rgba(24, 27, 40, 0.16);
    --shadow-button-active: 0 4px 14px rgba(24, 27, 40, 0.18);
    --auth-glow: rgba(60, 90, 170, 0.18);
    --toggle-bg: rgba(24, 27, 40, 0.14);
    --toggle-border: rgba(24, 27, 40, 0.22);
    --toggle-hover: rgba(24, 27, 40, 0.3);
    --placeholder-start: rgba(48, 76, 182, 0.18);
    --placeholder-end: rgba(102, 176, 240, 0.16);
    --placeholder-border: rgba(24, 27, 40, 0.24);
  }
}

html {
  height: 100%;
}

body {
  font-family: 'Arial', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-primary);
  min-height: 100%;
  cursor: none;
}

.portfolio-container {
  min-height: 100vh;
  overflow-x: hidden;
}

/* Page d'accueil / connexion */
.auth-wrapper {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem;
  opacity: 0;
  animation: authFadeIn 0.85s ease forwards 0.25s;
}

.auth-card {
  width: min(420px, 100%);
  background: var(--surface-elevated);
  border: 1px solid var(--surface-elevated-border);
  border-radius: 24px;
  padding: 2.75rem 2.25rem;
  box-shadow: var(--shadow-strong);
  backdrop-filter: blur(26px);
  position: relative;
  overflow: hidden;
  transform: translateY(28px);
  opacity: 0;
  animation: authCardIn 1s cubic-bezier(0.25, 0.9, 0.3, 1.2) forwards 0.35s;
}

.auth-card::after {
  content: '';
  position: absolute;
  inset: -40% 40% 50% -40%;
  background: radial-gradient(circle at top, var(--auth-glow), transparent 60%);
  opacity: 0.6;
  pointer-events: none;
}

.auth-card > * {
  position: relative;
  z-index: 1;
}

.auth-portrait {
  width: clamp(140px, 28vw, 220px);
  height: clamp(140px, 28vw, 220px);
  margin: 0 auto 2rem;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--surface-border);
  box-shadow: var(--shadow-floating);
  background: var(--surface-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.auth-title {
  font-size: clamp(2rem, 5vw, 2.8rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-align: center;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.auth-subtitle {
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.5;
}

.auth-actions {
  margin-top: 2.5rem;
  display: grid;
  gap: 1.25rem;
  text-align: center;
}


.axis-content {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(260px, 0.85fr);
  gap: clamp(1.4rem, 3vw, 2.4rem);
  align-items: start;
}

.axis-left {
  display: grid;
  gap: clamp(1.2rem, 2.6vw, 2rem);
  max-width: 640px;
}

.axis-story {
  display: grid;
  gap: 1rem;
  color: var(--text-secondary);
}

.axis-story em {
  color: var(--text-primary);
  font-style: normal;
  font-weight: 600;
}

.audio-intro {
  margin-top: 0.8rem;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.axis-right {
  display: grid;
  gap: 0.65rem;
  align-content: start;
  justify-items: stretch;
  align-self: start;
}

/* Two-column layout for Certifications: text left, carousel right */
.certifications-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 540px); /* left flexible text column + right responsive column for carousel */
  gap: clamp(1.2rem, 3vw, 2.5rem);
  align-items: start;
}
.cert-left { padding-right: 1rem; }
.cert-left .section-header + .section-kicker {
  margin-top: clamp(1.2rem, 2.8vh, 2.3rem);
}
.cert-left .section-kicker + .journey-grid {
  margin-top: clamp(1.5rem, 3vh, 2.2rem);
}
.cert-right { display: flex; align-items: start; justify-content: center; }

/* Keep controls hidden per user request */
.cert-carousel__control, .cert-modal__close { display: none !important; }

/* Let Contact section regain space */
#certifications { padding-bottom: clamp(1.5rem, 3vw, 2.25rem); }

@media (max-width: 900px) {
  .certifications-layout { grid-template-columns: 1fr; }
  .cert-right { justify-content: center; }
}

/* Fallback: if JS doesn't initialize the carousel (no .js-ready), show slides as a stacked grid so they're visible */
.cert-carousel:not(.js-ready) {
  height: auto;
}
.cert-carousel:not(.js-ready) .cert-carousel__viewport {
  perspective: none;
}
.cert-carousel:not(.js-ready) .cert-carousel__track {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.2rem;
  padding: 1rem;
}
.cert-carousel:not(.js-ready) .cert-carousel__slide {
  position: relative;
  opacity: 1;
  filter: none;
  padding: 0;
}
.cert-carousel:not(.js-ready) .cert-carousel__slide .certification-item {
  width: 100%;
  height: auto;
}

.stream-lead {
  font-size: 0.9rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

.stream-title {
  font-size: 1rem;
  color: var(--text-primary);
  text-align: left;
}

.stream-title em {
  font-style: normal;
  font-weight: 600;
}

.stream-wrapper {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  align-items: flex-start;
  justify-self: start;
}

.stream-wrapper iframe {
  width: min(100%, 320px);
  height: clamp(220px, 62vw, 320px);
}

.stream-note {
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-align: left;
}
.auth-cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.95rem 1.85rem;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #ffffff;
  box-shadow: 0 18px 38px rgba(13, 29, 58, 0.38);
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-position 0.45s ease;
  background-size: 180% 180%;
}

.ac-trigger-group {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
}

.auth-cta::after {
  content: '→';
  font-size: 1.1rem;
  transform: translateX(0);
  transition: transform 0.3s ease;
}

.auth-cta:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-button-hover);
  background-position: 85% 15%;
}
.auth-cta:focus {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(42, 46, 120, 0.55);
  outline: none;
}

.auth-cta:active {
  transform: translateY(0);
  box-shadow: var(--shadow-button-active);
}

.auth-cta:hover::after,
.auth-cta:focus::after {
  transform: translateX(3px);
}

.auth-note {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

.auth-note strong {
  color: var(--accent-strong);
}

.auth-wrapper.leaving {
  animation: authFadeOut 0.5s ease forwards;
  pointer-events: none;
}

.auth-wrapper.leaving .auth-card {
  animation: authCardOut 0.55s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}

body.auth-leaving #bg-particles {
  opacity: 0;
}

@media (max-width: 520px) {
  .auth-card {
    padding: 2.2rem 1.6rem;
    border-radius: 18px;
  }
  .auth-title {
    font-size: 1.9rem;
  }
}

@keyframes authFadeIn {
  from { opacity: 0; filter: blur(16px); }
  to { opacity: 1; filter: blur(0); }
}

@keyframes authCardIn {
  0% { opacity: 0; transform: translateY(40px) scale(0.96); }
  60% { opacity: 1; transform: translateY(-6px) scale(1.01); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes authFadeOut {
  from { opacity: 1; }
  to { opacity: 0; }
}

@keyframes authCardOut {
  0% { opacity: 1; transform: translateY(0) scale(1); }
  100% { opacity: 0; transform: translateY(-40px) scale(0.9); }
}

/* CAROUSEL ET CONTENU PRINCIPAL */
.carousel-wrapper {
  width: 100%;
  position: relative;
}

/* Site sections (vertical) */
.site-sections {
  scroll-behavior: smooth;
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding-top: calc(5rem + 48px);
  padding-inline: clamp(1.25rem, 5vw, 3.25rem);
  display: flex;
  flex-direction: column;
  gap: clamp(3.5rem, 10vh, 6rem);
}

.site-section {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: clamp(3.5rem, 10vh, 5.5rem) 0;
  scroll-margin-top: 120px;
}

/* Reduce extra space specifically after the Certifications section */
#certifications {
  padding-bottom: clamp(2rem, 4vw, 3rem);
}

.site-section::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--surface-border-soft), transparent);
  opacity: 0.65;
}

.site-section:last-of-type::after {
  display: none;
}

.site-section.hero::after {
  display: none;
}


[data-reveal] {
  --reveal-translate-x: 0;
  --reveal-translate-y: 36px;
  --reveal-duration: 0.6s;
  --reveal-delay: 0s;
  --reveal-easing: cubic-bezier(0.25, 0.1, 0.25, 1);
  opacity: 0;
  transform: translate3d(var(--reveal-translate-x), var(--reveal-translate-y), 0);
  will-change: opacity, transform;
  transition-property: opacity, transform;
  transition-duration: var(--reveal-duration);
  transition-timing-function: var(--reveal-easing);
  transition-delay: var(--reveal-delay);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

[data-reveal-from="left"] {
  --reveal-translate-x: -42px;
  --reveal-translate-y: 0;
}

[data-reveal-from="right"] {
  --reveal-translate-x: 42px;
  --reveal-translate-y: 0;
}

[data-reveal-from="top"] {
  --reveal-translate-y: -36px;
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}


.content {
  flex: 1;
  max-width: 800px;
  width: 100%;
  margin: 0 auto;
  padding: 0 1.6rem 5rem;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s, transform 0.6s;
}

.carousel-item.active .content {
  opacity: 1;
  transform: translateY(0);
}

.content h2 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  color: var(--text-primary);
  text-align: center;
}

/* global section styling */
.section-header {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 760px;
}

.section-header h2 {
  font-size: clamp(2.1rem, 4vw, 2.9rem);
  text-align: left;
}

.section-intro {
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: 1.05rem;
}

.section-kicker {
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.75rem;
  color: var(--accent);
  font-weight: 700;
}

.site-section.hero {
  padding-top: clamp(4.5rem, 12vh, 6.5rem);
  min-height: calc(100vh - 80px);
  justify-content: center;
}

.hero-grid {
  display: grid;
  gap: 2.5rem;
  align-items: flex-start;
  grid-template-columns: minmax(0, 1fr);
  min-height: calc(100vh - 160px);
}

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

.hero-content h1 {
  font-size: clamp(2rem, 4.8vw, 3.8rem);
  line-height: 1.08;
  color: var(--text-primary);
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0.75rem;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.85rem 1.45rem;
  border-radius: 999px;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--accent-strong);
  background: linear-gradient(135deg, rgba(130, 194, 247, 0.18), rgba(185, 65, 255, 0.12));
  border: 1px solid var(--surface-border);
  box-shadow: var(--shadow-chip);
  letter-spacing: 0.01em;
}

.hero-tag::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(130, 194, 247, 0.18);
}

.hero-discover-text {
  margin-top: 1.9rem;
  color: var(--text-subdued);
  font-size: clamp(1.1rem, 3.4vw, 1.9rem);
  line-height: 1.25;
  font-weight: 600;
  letter-spacing: 0.01em;
  max-width: clamp(36rem, 74vw, 54rem);
}

.hero-subtitle {
  color: var(--text-secondary);
  font-size: clamp(0.95rem, 2.8vw, 1.05rem);
  line-height: 1.7;
  max-width: 32rem;
}

.hero-location {
  font-size: 0.95rem;
  color: var(--text-subdued);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hero-scroll {
  margin-top: clamp(2.6rem, 6vw, 4.4rem);
  display: flex;
  justify-content: center;
  text-decoration: none;
  cursor: none;
}

.hero-scroll--large {
  width: 72px;
  height: 72px;
  margin: 0 auto;
}

.hero-scroll__arrow {
  width: 34px;
  height: 34px;
  border-left: 4px solid var(--surface-border-strong);
  border-bottom: 4px solid var(--surface-border-strong);
  transform: rotate(-45deg);
  animation: heroArrowLarge 2.2s ease-in-out infinite;
}

@keyframes heroArrowLarge {
  0% { transform: translateY(0) rotate(-45deg); opacity: 0; }
  25% { opacity: 1; }
  55% { transform: translateY(36px) rotate(-45deg); opacity: 1; }
  100% { transform: translateY(52px) rotate(-45deg); opacity: 0; }
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.8rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
  text-decoration: none;
}

.hero-cta.primary {
  background: linear-gradient(130deg, rgba(130, 194, 247, 0.95), rgba(112, 150, 255, 0.85));
  color: #0b0b14;
  box-shadow: 0 12px 32px rgba(68, 112, 220, 0.35);
}

.hero-cta.secondary {
  border-color: var(--nav-btn-border-active);
  background: transparent;
  color: var(--text-primary);
}

.hero-cta:hover,
.hero-cta:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(68, 112, 220, 0.25);
}

.hero-cta.secondary:hover,
.hero-cta.secondary:focus-visible {
  background: var(--nav-btn-hover);
  border-color: var(--nav-btn-border-active);
}

.hero-highlights {
  display: grid;
  gap: 1.1rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.highlight-card {
  background: var(--surface-primary);
  border: 1px solid var(--surface-border);
  padding: 1.2rem 1.4rem;
  border-radius: 16px;
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-floating);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.highlight-card:hover {
  transform: translateY(-4px);
  border-color: var(--nav-btn-border-active);
}

.highlight-title {
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  display: block;
  margin-bottom: 0.6rem;
}

.axis-audio {
  margin-top: clamp(1.2rem, 3vw, 2rem);
  display: grid;
  gap: 0.8rem 1.2rem;
  max-width: 420px;
}

.axis-audio {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.audio-card {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  align-items: flex-start;
  background: transparent;
  border: none;
  padding: 0;
  box-shadow: none;
}

.axis-audio .audio-card {
  width: 100%;
}

.audio-title {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
}

.composition-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
  text-align: center;
  margin-top: clamp(2rem, 4vw, 3rem);
}

.composition-title {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  color: var(--text-primary);
}

.composition-video {
  width: min(800px, 100%);
  aspect-ratio: 16 / 9;
  height: auto;
  border-radius: 20px;
  border: 1px solid var(--surface-border);
  box-shadow: var(--shadow-floating);
  background: #000;
}

.media-fallback {
  margin-top: 0.75rem;
  font-size: 0.92rem;
  color: var(--text-secondary);
}

.media-fallback a {
  color: var(--accent);
  text-decoration: underline;
}

.media-fallback a:hover,
.media-fallback a:focus-visible {
  text-decoration: none;
}

.audio-card h3 {
  font-size: 1.1rem;
  color: var(--text-primary);
}

.audio-card__body {
  width: 100%;
  display: flex;
  align-items: center;
}

.audio-player {
  width: 100%;
  min-width: 220px;
  height: 44px;
  display: block;
}

.audio-disclaimer {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-subdued);
  justify-self: start;
  margin-top: 0.4rem;
}

.beatstars-text,
.beatstars-highlight {
  margin-top: 1rem;
  color: var(--text-secondary);
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%; /* Ensure full width */
  color: var(--text-primary);
  font-style: normal;
  font-weight: 600;
}

.beatstars-block a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.beatstars-block a:hover,
.beatstars-block a:focus-visible {
  color: var(--accent-strong);
  text-decoration: underline;
}

/* projects */
.projects-grid {
  display: grid;
  gap: 1.8rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.project-card {
  background: var(--surface-primary);
  border: 1px solid var(--surface-border);
  border-radius: 20px;
  padding: 1.8rem;
  display: grid;
  gap: 0.9rem;
  box-shadow: var(--shadow-floating);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.project-card:hover {
  transform: translateY(-6px);
  border-color: var(--nav-btn-border-active);
}

.project-card h3 {
  font-size: 1.3rem;
}

.project-year {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.7rem;
  color: var(--text-subdued);
}

.project-location {
  color: var(--text-subtle);
  font-size: 0.9rem;
}

.project-description {
  color: var(--text-secondary);
  line-height: 1.6;
}

.project-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--chip-bg);
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  color: var(--text-secondary);
}

/* journey */
.journey-grid {
  display: grid;
  gap: 1.8rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.ac-panel {
  background: linear-gradient(135deg, rgba(130, 194, 247, 0.12), rgba(185, 65, 255, 0.08));
  border: 1px solid var(--surface-border);
  box-shadow: var(--shadow-floating);
  padding: 1.6rem;
  gap: 1.1rem;
}

.ac-panel[hidden] {
  display: none;
}

.ac-panel h3 {
  font-size: 1.2rem;
  color: var(--text-primary);
}

.ac-panel .hero-tag {
  display: inline-flex;
  margin-bottom: 0.4rem;
}

.journey-card {
  background: var(--surface-primary);
  border: 1px solid var(--surface-border);
  border-radius: 20px;
  padding: 1.8rem;
  display: grid;
  gap: 1rem;
  box-shadow: var(--shadow-floating);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.journey-card:hover {
  transform: translateY(-6px);
  border-color: var(--nav-btn-border-active);
}

.journey-card.ac-trigger {
  cursor: pointer;
  background: linear-gradient(135deg, rgba(130, 194, 247, 0.16), rgba(185, 65, 255, 0.1));
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: var(--shadow-strong);
  align-content: start;
  text-align: left;
}

.journey-card.ac-trigger:hover,
.journey-card.ac-trigger:focus-visible {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 18px 46px rgba(130, 194, 247, 0.28);
}

.journey-card.ac-trigger h3 {
  font-size: 1.25rem;
  color: var(--text-primary);
}

.journey-card.ac-trigger .journey-description {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.journey-card h3 {
  font-size: 1.25rem;
}

.journey-period {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-subdued);
}

.journey-school {
  color: var(--text-secondary);
  font-weight: 600;
}

.journey-description {
  color: var(--text-muted);
  line-height: 1.6;
}

.journey-location {
  display: grid;
  gap: 0.8rem;
}

.journey-location iframe {
  width: 100%;
  min-height: 200px;
  border: none;
  border-radius: 14px;
  box-shadow: var(--shadow-chip);
}

.profile-card {
  background: var(--surface-secondary);
}

.profile-list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 0.6rem;
  color: var(--text-secondary);
}

.profile-list strong {
  color: var(--text-primary);
}

/* certifications */
.certification-grid {
  display: grid;
  gap: 1.6rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.certification-item {
  background: var(--surface-primary);
  border: 1px solid var(--surface-border);
  border-radius: 20px;
  padding: 1.8rem;
  box-shadow: var(--shadow-floating);
  display: grid;
  gap: 1rem;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.certification-item:hover {
  transform: translateY(-6px);
  border-color: var(--nav-btn-border-active);
}

.certification-item h3 {
  font-size: 1.25rem;
  color: var(--text-primary);
}

.certification-badge {
  width: 100%;
  max-width: 220px; /* slightly larger badge for better visual balance */
  height: auto;
  display: block;
  margin: 0.25rem 0 0.5rem 0;
  border-radius: 16px;
  box-shadow: var(--shadow-chip);
}

/* hide modal close button (still closable via Escape) */
.cert-modal__close { display: none !important; }

.certification-date {
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-subdued);
}

/* contact */
.contact-grid {
  display: grid;
  gap: 1.6rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.contact-card {
  background: var(--surface-primary);
  border: 1px solid var(--surface-border);
  border-radius: 18px;
  padding: 1.6rem;
  display: grid;
  gap: 0.6rem;
  box-shadow: var(--shadow-floating);
}

.contact-card h3 {
  font-size: 1.1rem;
  color: var(--text-primary);
}

.contact-card a,
.contact-card p {
  color: var(--text-secondary);
  text-decoration: none;
}

.contact-card a:hover,
.contact-card a:focus-visible {
  color: var(--accent);
}

.site-footer {
  margin-top: 2.4rem;
  color: var(--text-subtle);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
}

/* Hero / Accueil */
.carousel-item[data-section="accueil"] {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 6vh;
  padding-bottom: 6vh;
}
.carousel-item[data-section="accueil"] .content {
  max-width: 920px;
  text-align: center;
  padding: 3rem 1.2rem;
}
.carousel-item[data-section="accueil"] h2 {
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  letter-spacing: 0.02em;
  margin-bottom: 0.6rem;
}
.carousel-item[data-section="accueil"] p {
  margin: 0 auto;
  max-width: 760px;
  color: var(--text-secondary);
  font-size: 1.05rem;
}

/* subtle accent line under hero title */
.carousel-item[data-section="accueil"] .content::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  margin: 18px auto 0;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--accent-strong), var(--accent));
  opacity: 0.95;
}

.certification-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1rem;
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color 0.2s ease, transform 0.2s ease;
}

.certification-link::after {
  content: '↗';
  font-size: 0.95rem;
  transition: transform 0.2s ease;
}

.certification-link:hover,
.certification-link:focus {
  color: var(--accent-strong);
  transform: translateY(-1px);
}

.certification-link:hover::after,
.certification-link:focus::after {
  transform: translate(2px, -2px);
}

.company, .school, .issuer { color: var(--text-subdued); font-style: italic; margin-bottom: 0.3rem;}
.period, .date { color: var(--text-subtle); font-size: 0.9rem; margin-bottom: 0.8rem;}
.description { line-height: 1.6; color: var(--text-muted); }
.locations { margin-top: 1rem;}
.location {
  display: inline-block;
  background: var(--chip-bg);
  padding: 0.3rem 0.8rem;
  border-radius: 15px;
  margin-right: 0.5rem;
  font-size: 0.8rem;
}

.formation-map {
  margin-top: 1.4rem;
  display: grid;
  gap: 0.7rem;
}

.formation-map iframe {
  width: 100%;
  min-height: 220px;
  border: none;
  border-radius: 14px;
  box-shadow: var(--shadow-chip);
  filter: saturate(1.1) contrast(1.05);
}

.formation-address {
  font-size: 0.9rem;
  color: var(--text-secondary);
  letter-spacing: 0.01em;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.contact-method {
  background: var(--surface-primary);
  padding: 1rem;
  border-radius: 8px;
  border: 1px solid var(--surface-border-soft);
}

.contact-method h3 {margin-bottom: 0.5rem; color: var(--text-primary); font-size: 1rem;}
.contact-method p, .contact-method a { color: var(--text-muted); text-decoration: none;}
.contact-method a:hover { color: var(--text-primary);}

/* Navigation menu principal */
/* La barre toujours ouverte ! */
.navigation {
  position: fixed;
  left: 50%;
  bottom: 2rem;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  z-index: 100;
  opacity: 1;
  transition: all 0.6s ease;
  backdrop-filter: blur(10px);
  background: var(--nav-bg);
  padding: 0.8rem 1.2rem;
  border-radius: 30px;
  border: 1px solid var(--nav-border);
  box-shadow: var(--shadow-floating);
}

.navigation .nav-btn {
  display: inline-block;
  opacity: 1;
  pointer-events: auto;
  transition: opacity 0.25s;
}

.nav-btn {
  padding: 0.6rem 1.2rem;
  background: var(--nav-btn-bg);
  border: 1px solid var(--nav-btn-border);
  color: var(--text-primary);
  border-radius: 20px;
  cursor: none;
  transition: all 0.3s;
  font-size: 0.85rem;
  font-weight: 500;
  white-space: nowrap;
  text-align: center;
  min-width: fit-content;
}

.nav-btn:hover {
  background: var(--nav-btn-hover);
  border-color: var(--nav-btn-border-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-button-hover);
}

.nav-btn.active {
  background: var(--nav-btn-active);
  border-color: var(--nav-btn-border-active);
  color: var(--text-primary);
  box-shadow: var(--shadow-button-active);
}

/* Flèches */
.nav-arrow {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  background: var(--toggle-bg);
  border: 1px solid var(--toggle-border);
  border-radius: 50%;
  cursor: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--text-primary);
  transition: all 0.25s;
  z-index: 200;
  box-shadow: 0 4px 14px rgba(0,0,0,0.18);
  user-select: none;
}

.nav-arrow:hover {
  background: var(--toggle-hover);
  color: var(--text-primary);
  transform: translateY(-50%) scale(1.12);
  border-color: var(--nav-btn-border-active);
}

.prev-arrow { left: 2rem; }
.next-arrow { right: 2rem; }

.theme-toggle {
  position: fixed;
  top: 4px;
  right: 1.5rem;
  z-index: 220;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--toggle-border);
  background: var(--toggle-bg);
  color: var(--text-primary);
  cursor: none;
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}

/* Top header */
.top-header {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  top: 1rem;
  width: min(1100px, 95%);
  z-index: 400;
  pointer-events: auto;
}
.top-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
  border: 1px solid var(--nav-border);
  padding: 0.45rem 0.75rem;
  border-radius: 14px;
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-floating);
}
.top-header--scrolled .top-header__inner {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.25), rgba(15, 23, 42, 0.08));
  border-color: var(--nav-btn-border-active);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.34);
}
.brand-link {
  color: var(--text-primary);
  font-weight: 700;
  text-decoration: none;
  font-size: 1rem;
  padding-left: 6px;
}
.top-nav {
  display: flex;
  gap: 0.6rem;
  align-items: center;
}
.top-nav .nav-btn {
  background: transparent;
  border: none;
  padding: 0.4rem 0.7rem;
  border-radius: 10px;
  color: var(--text-secondary);
  font-weight: 600;
  cursor: none;
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
    padding-top: 1px;
  border-radius: 12px;
  border: 1px solid var(--nav-btn-border);
  background: var(--surface-secondary);
  color: var(--text-primary);
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
  box-shadow: var(--shadow-floating);
  cursor: none;
}

.nav-toggle__bar,
.nav-toggle__bar::before,
.nav-toggle__bar::after {
  display: block;
  width: 16px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 0.25s ease, opacity 0.25s ease;
  content: '';
}

.nav-toggle__bar {
  position: relative;
}

.nav-toggle__bar::before {
  position: absolute;
  top: -5px;
}

.nav-toggle__bar::after {
  position: absolute;
  bottom: -5px;
}

.nav-toggle:hover,
.nav-toggle:focus-visible {
  background: var(--nav-btn-hover);
  border-color: var(--nav-btn-border-hover);
  transform: translateY(-2px);
  outline: none;
}

.nav-toggle.nav-toggle--open .nav-toggle__bar {
  background: transparent;
}

.nav-toggle.nav-toggle--open .nav-toggle__bar::before {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle.nav-toggle--open .nav-toggle__bar::after {
  transform: translateY(-6px) rotate(-45deg);
}
.top-nav .nav-btn:hover,
.top-nav .nav-btn:focus {
  color: var(--text-primary);
  background: var(--nav-btn-hover);
}
.top-nav .nav-btn.active {
  color: var(--text-primary);
  background: var(--nav-btn-active);
  box-shadow: var(--shadow-button-active);
}

/* give top header space so sections aren't hidden beneath it */
/* spacing handled in primary .site-sections rule */

.theme-toggle:hover,
.theme-toggle:focus-visible {
  background: var(--toggle-hover);
  border-color: var(--nav-btn-border-active);
  transform: translateY(-2px);
  outline: none;
}

.theme-toggle__icon {
  font-size: 1.2rem;
  line-height: 1;
}

.theme-toggle__icon--sun {
  display: none;
}

:root[data-theme="light"] .theme-toggle__icon--sun {
  display: inline;
}

:root[data-theme="light"] .theme-toggle__icon--moon {
  display: none;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .theme-toggle__icon--sun {
    display: inline;
  }
}

@media (max-width: 840px) {
  .top-header__inner {
    position: relative;
    padding: 0.75rem 0.9rem;
    min-height: 56px;
  }

  .top-actions {
    gap: 0.5rem;
  }

  .nav-toggle {
    display: inline-flex;
    position: static;
    transform: none;
  }

  .top-header .theme-toggle {
    position: static;
    transform: none;
  }

  .top-nav {
    position: absolute;
    top: calc(100% + 0.75rem);
    right: 0;
    left: 0;
    flex-direction: column;
    gap: 0.45rem;
    padding: 0.9rem;
    border-radius: 16px;
    background: var(--surface-elevated);
    border: 1px solid var(--surface-elevated-border);
    box-shadow: var(--shadow-floating);
    display: none;
    z-index: 410;
  }

  .top-nav.top-nav--open {
    display: flex;
  }

  .top-nav .nav-btn {
    width: 100%;
    justify-content: flex-start;
    text-align: left;
    padding: 0.55rem 0.75rem;
  }
}

/* Curseur custom */
.custom-cursor {
  position: fixed;
  width: 20px;
  height: 20px;
  left: 0;
  top: 0;
  background: transparent;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  opacity: 0;
  transition: transform 0.1s, opacity 0.2s, background 0.2s;
  mix-blend-mode: difference;
}

.custom-cursor.active {
  background: var(--cursor-base);
  opacity: 1;
}

:root[data-theme="light"] .custom-cursor {
  mix-blend-mode: normal;
}

:root[data-theme="light"] .custom-cursor.active {
  background: var(--cursor-base);
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.18);
}


body.touch-enabled {
  cursor: auto;
}

body.touch-enabled .custom-cursor {
  display: none;
}

body.touch-enabled .nav-btn,
body.touch-enabled .nav-toggle,
body.touch-enabled .theme-toggle {
  cursor: pointer;
}

/* Responsive */
@media (max-width: 900px) {
  .axis-content {
    grid-template-columns: 1fr;
  }
  .axis-right {
    justify-items: start;
  }
  .stream-wrapper {
    justify-self: start;
    align-items: flex-start;
  }
  .axis-audio {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .site-section {
    padding-block: clamp(2.6rem, 7vh, 3.3rem);
    gap: 1.65rem;
    scroll-margin-top: 96px;
  }

  .hero-grid {
    min-height: auto;
    gap: 2rem;
  }

  .hero-actions {
    justify-content: flex-start;
  }

  .section-header {
    text-align: center;
    align-items: center;
    max-width: 100%;
  }

  .section-header h2,
  .section-intro {
    text-align: center;
  }

  .axis-right {
    justify-items: stretch;
  }

  .certifications-layout {
    gap: 1.8rem;
  }
}

@media (max-width: 600px) {
  .theme-toggle {
    top: 0.8rem;
    right: 0.8rem;
    left: auto;
    width: 36px;
    height: 36px;
  }
  .content h2 {
    font-size: 2rem;
  }
  body:not(.auth-leaving) .custom-cursor {
    display: none;
  }
  .hero-tags {
    gap: 0.65rem;
  }
  .hero-tag {
    font-size: 0.95rem;
    padding: 0.7rem 1.1rem;
  }
  .hero-actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }
  .hero-cta {
    width: 100%;
  }
  .hero-highlights {
    grid-template-columns: 1fr;
  }
  .axis-grid,
  .projects-grid,
  .journey-grid,
  .certification-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 1.3rem;
  }
  .journey-location iframe,
  .formation-map iframe {
    min-height: 180px;
  }
  .section-header h2 {
    font-size: 1.95rem;
  }
  .composition-block {
    margin-top: 1.6rem;
  }
}

@media (max-width: 480px) {
  .hero-content h1 {
    font-size: clamp(1.7rem, 8vw, 2.4rem);
  }

  .hero-discover-text {
    font-size: 1rem;
    line-height: 1.4;
  }

  .hero-scroll--large {
    width: 60px;
    height: 60px;
  }

  .hero-scroll__arrow {
    width: 28px;
    height: 28px;
    border-width: 3px;
  }

  .project-card,
  .journey-card,
  .certification-item,
  .contact-card {
    padding: 1.45rem;
  }

  .certification-item h3,
  .journey-card h3,
  .project-card h3 {
    font-size: 1.15rem;
  }
}
#bg-particles {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  /* Optionnel : transition douce au resize */
  transition: opacity 0.28s;
}
body {
  background: var(--bg-color);
  /* ou #1d1d21 #111 pour fond sombre, sinon adapte la couleur au besoin */
}
button, a, audio {
  cursor: none;
}
iframe {
  border-radius: 14px;
}
