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

html {
  scroll-behavior: smooth;
}

/* ===== THEME VARIABLES ===== */
:root {
  --bg: #0F0F0F;
  --text: #EFE4CD;
  --surface: #EFE4CD;
  --surface-text: #0F0F0F;
  --text-soft: rgba(239, 228, 205, 0.85);
  --text-muted: rgba(239, 228, 205, 0.7);
  --text-faint: rgba(239, 228, 205, 0.55);
  --border: rgba(239, 228, 205, 0.25);
  --placeholder: #2A2A2A;
  --surface-text-soft: rgba(15, 15, 15, 0.7);
  --surface-border: rgba(15, 15, 15, 0.4);
}

body.theme-light {
  --bg: #EFE4CD;
  --text: #0F0F0F;
  --surface: #0F0F0F;
  --surface-text: #EFE4CD;
  --text-soft: rgba(15, 15, 15, 0.85);
  --text-muted: rgba(15, 15, 15, 0.7);
  --text-faint: rgba(15, 15, 15, 0.5);
  --border: rgba(15, 15, 15, 0.25);
  --placeholder: #D4C9B0;
  --surface-text-soft: rgba(239, 228, 205, 0.7);
  --surface-border: rgba(239, 228, 205, 0.4);
}

body {
  font-family: "Libre Baskerville", serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  color: #1a1a1a;
  background: #FFFCEF;
  transition: background 0.3s ease, color 0.3s ease;
}

body.page-home,
body.page-profil,
body.page-project {
  background: var(--bg);
  color: var(--text);
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

img {
  display: block;
  max-width: 100%;
}

/* ===== TYPOGRAPHIE ===== */
.display {
  font-size: 64px;
  font-weight: 800;
  line-height: 1.1;
}

h1 {
  font-size: 48px;
  font-weight: 700;
  line-height: 1.15;
}

h2 {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.2;
}

h3 {
  font-size: 24px;
  font-weight: 600;
  line-height: 1.3;
}

.body-text {
  font-size: 16px;
  font-weight: 400;
}

.body-small {
  font-size: 14px;
  font-weight: 400;
  color: #666666;
}

.caption {
  font-size: 12px;
  font-weight: 400;
  color: #666666;
}

/* ===== BOUTONS ===== */
.btn {
  display: inline-block;
  font-family: "Libre Baskerville", serif;
  font-size: 16px;
  font-weight: 400;
  cursor: pointer;
  transition: all 0.25s ease;
  border: none;
  background: none;
}

.btn-primary {
  background: #333333;
  color: #ffffff;
  padding: 12px 24px;
  border-radius: 8px;
}

.btn-primary:hover {
  background: #1a1a1a;
}

.btn-secondary {
  background: transparent;
  color: #333333;
  padding: 12px 24px;
  border-radius: 8px;
  border: 1.5px solid #333333;
}

.btn-secondary:hover {
  background: #333333;
  color: #ffffff;
}

.btn-text {
  color: #333333;
  padding: 4px 0;
  border-bottom: 1px solid transparent;
}

.btn-text:hover {
  border-bottom-color: #333333;
}

/* ===== PLACEHOLDER ===== */
.placeholder {
  background: #e0e0e0;
  border-radius: 8px;
}

/* ===== LANGUAGE TOGGLE ===== */
.header__left {
  display: flex;
  align-items: center;
  gap: 24px;
}

.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: "Inter", sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: inherit;
}

.lang-toggle__opt {
  opacity: 0.45;
  transition: opacity 0.2s ease;
}

.lang-toggle__opt.is-active {
  opacity: 1;
}

.lang-toggle:hover .lang-toggle__opt {
  opacity: 0.75;
}

.lang-toggle:hover .lang-toggle__opt.is-active {
  opacity: 1;
}

.lang-toggle__sep {
  opacity: 0.35;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  color: inherit;
  transition: opacity 0.2s ease;
}

.theme-toggle:hover {
  opacity: 0.7;
}

.theme-toggle svg {
  width: 20px;
  height: 20px;
}

.theme-toggle__moon {
  display: none;
}

body.theme-light .theme-toggle__moon {
  display: block;
}

body.theme-light .theme-toggle__sun {
  display: none;
}

/* ===== HEADER ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 48px;
  z-index: 100;
  background: #FFFCEF;
  border-bottom: 1px solid rgba(43, 82, 136, 0.15);
  transition: background 0.4s ease, border-color 0.4s ease;
}

.page-home .header,
.page-profil .header,
.page-project .header {
  background: transparent;
  border-bottom-color: transparent;
}

.page-home .header .header__logo,
.page-home .header .header__nav a,
.page-profil .header .header__logo,
.page-profil .header .header__nav a,
.page-project .header .header__logo,
.page-project .header .header__nav a {
  color: var(--text);
  transition: color 0.4s ease;
}

.page-home .header.header--solid,
.page-profil .header.header--solid,
.page-project .header.header--solid {
  background: transparent;
  border-bottom-color: transparent;
}

.page-home .header.header--solid .header__logo,
.page-home .header.header--solid .header__nav a,
.page-profil .header.header--solid .header__logo,
.page-profil .header.header--solid .header__nav a,
.page-project .header.header--solid .header__logo,
.page-project .header.header--solid .header__nav a {
  color: var(--text);
}

.header.header--on-light .header__logo,
.header.header--on-light .header__nav a {
  color: var(--surface-text) !important;
}

.header__logo {
  font-family: "Inter", sans-serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #2B5288;
}

.header__nav {
  display: flex;
  gap: 32px;
}

.header__nav a {
  position: relative;
  font-family: "Inter", sans-serif;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: #2B5288;
  transition: color 0.2s ease;
  padding-bottom: 6px;
}

.header__nav a:hover {
  color: #1a3866;
}

.header__nav a.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1.5px;
  background: currentColor;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  background: var(--bg);
  overflow: hidden;
}

.hero__title,
.hero__title--outline {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: "League Gothic", sans-serif;
  font-weight: 400;
  font-size: clamp(10rem, 26vw, 32rem);
  letter-spacing: 0.01em;
  line-height: 1;
  white-space: nowrap;
  margin: 0;
  pointer-events: none;
  user-select: none;
}

.hero__title {
  color: var(--text);
  z-index: 1;
}

.hero__photo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  height: 100%;
  width: auto;
  filter: grayscale(100%) contrast(1.25) brightness(1.05) saturate(0);
  image-rendering: -webkit-optimize-contrast;
  z-index: 2;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 70%, transparent 95%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 70%, transparent 95%);
}

.hero__title--outline {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--text);
  z-index: 3;
}

.hero__name {
  position: absolute;
  bottom: 40px;
  left: 40px;
  font-family: "Manrope", sans-serif;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.15em;
  color: var(--text);
  margin: 0;
  z-index: 4;
}

.hero__arrow {
  position: absolute;
  bottom: 40px;
  right: 40px;
  width: 28px;
  height: 60px;
  z-index: 4;
}
.hero__arrow svg { width: 100%; height: 100%; stroke: var(--text); fill: none; stroke-width: 1.2; }

/* ===== PROJETS (liste editoriale) ===== */
.projects-list {
  padding: 120px 64px;
  background: var(--bg);
  color: var(--text);
}

.projects-list__heading {
  font-family: "Manrope", sans-serif;
  font-weight: 800;
  font-size: clamp(1.75rem, 3vw, 2.75rem);
  letter-spacing: 0.02em;
  color: var(--text);
  margin-bottom: 64px;
}

.projects-list__container {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
  gap: 80px;
  min-height: 640px;
}

.projects-list__stage {
  position: relative;
  width: 100%;
  max-width: 580px;
  aspect-ratio: 4 / 5;
  justify-self: start;
}

.projects-list__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
}

.projects-list__image.is-active {
  opacity: 1;
}

.projects-list__image--placeholder {
  background: var(--placeholder);
}

.projects-list__items {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-end;
  text-align: right;
}

.projects-list__items a {
  display: inline-block;
  font-family: "League Gothic", sans-serif;
  font-weight: 400;
  font-size: clamp(3.5rem, 7vw, 6.5rem);
  line-height: 1;
  letter-spacing: 0.01em;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--text);
  transition: color 0.25s ease;
}

.projects-list__items a:hover {
  color: var(--text);
}

@media (max-width: 900px) {
  .projects-list {
    padding: 80px 32px;
  }
  .projects-list__container {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .projects-list__stage {
    display: none;
  }
  .projects-list__items {
    align-items: flex-start;
    text-align: left;
  }
  .projects-list__items a {
    font-size: clamp(2.5rem, 12vw, 4.5rem);
  }
}

/* ===== PAGE PROJET DETAIL (sidebar + sections) ===== */
.project-detail {
  display: flex;
  align-items: flex-start;
  gap: 56px;
  max-width: 1320px;
  margin: 0 auto;
  padding: 140px 64px 120px;
}

.project-detail__sidebar {
  position: sticky;
  top: 120px;
  flex-shrink: 0;
  align-self: flex-start;
  width: 360px;
  max-height: calc(100vh - 140px);
  overflow-y: auto;
  padding-right: 28px;
  border-right: 1px solid var(--border);
  scrollbar-width: thin;
}

.project-detail__sidebar-inner {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.project-detail__title {
  font-family: "League Gothic", sans-serif;
  font-weight: 400;
  font-size: clamp(2.5rem, 4.5vw, 4rem);
  line-height: 1;
  color: var(--text);
  letter-spacing: 0.01em;
  margin: 0;
}

.project-detail__intro {
  font-family: "Manrope", sans-serif;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-muted);
  min-height: 80px;
  margin: 0;
}

.project-detail__menu {
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-family: "Inter", sans-serif;
}

.project-detail__menu a {
  font-size: 15px;
  font-weight: 400;
  color: var(--text-faint);
  letter-spacing: 0.01em;
  transition: color 0.2s ease, font-weight 0.2s ease;
}

.project-detail__menu a:hover {
  color: var(--text);
}

.project-detail__menu a.is-active {
  color: var(--text);
  font-weight: 700;
}

.project-detail__content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.project-detail__section {
  padding: 16px 0 40px;
  scroll-margin-top: 140px;
}

.project-detail__section-title {
  font-family: "Manrope", sans-serif;
  font-weight: 700;
  font-size: 28px;
  color: var(--text);
  margin: 0 0 24px;
}

.project-detail__section p {
  font-family: "Manrope", sans-serif;
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-soft);
  margin: 0 0 16px;
  max-width: 720px;
}

.project-detail__section p:last-child {
  margin-bottom: 0;
}

.project-detail__sub-title {
  font-family: "Manrope", sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin: 32px 0 14px;
}

.project-detail__section p strong {
  color: var(--text);
  font-weight: 700;
}

@media (max-width: 900px) {
  .project-detail {
    flex-direction: column;
    padding: 120px 32px 80px;
    gap: 0;
  }
  .project-detail__sidebar {
    display: none;
  }
  .project-detail__section {
    min-height: 0;
    padding: 16px 0 48px;
  }
}

/* ===== PAGE PROJET (legacy) ===== */
.project-page {
  padding: 160px 64px 120px;
  max-width: 1080px;
  margin: 0 auto;
}

.project-page__title {
  font-family: "League Gothic", sans-serif;
  font-weight: 400;
  font-size: clamp(3.5rem, 7vw, 6rem);
  color: #EFE4CD;
  margin-bottom: 56px;
  line-height: 1;
  letter-spacing: 0.01em;
}

.project-page__content {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 760px;
  margin-bottom: 80px;
  font-family: "Manrope", sans-serif;
}

.project-page__content p {
  font-size: 16px;
  line-height: 1.75;
  color: rgba(239, 228, 205, 0.85);
}

.project-page__gallery {
  position: relative;
  width: 50%;
  min-height: 780px;
}

.project-page__image {
  position: absolute;
  background: #2A2A2A;
  border-radius: 6px;
}

.project-page__image--1 {
  top: 0;
  left: 0;
  width: 360px;
  height: 360px;
}

.project-page__image--2 {
  top: 230px;
  left: 400px;
  width: 300px;
  height: 340px;
}

.project-page__image--3 {
  top: 430px;
  left: 70px;
  width: 250px;
  height: 250px;
}

@media (max-width: 1100px) {
  .project-page__gallery {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .project-page__title {
    font-size: 40px;
  }
  .project-page__gallery {
    min-height: 0;
  }
  .project-page__image {
    position: relative;
    top: auto;
    left: auto;
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    margin-bottom: 24px;
  }
}

/* ===== A PROPOS (section courte index) ===== */
.about-short {
  padding: 100px 64px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  background: #0F0F0F;
  color: #EFE4CD;
}

.about-short__content {
  max-width: 560px;
  text-align: right;
  align-items: flex-end;
}

.about-short__content p {
  color: #EFE4CD;
}

.about-short .btn-primary {
  background: transparent;
  color: #EFE4CD;
  border: 1.5px solid #EFE4CD;
  border-radius: 0;
  align-self: flex-start;
}

.about-short .btn-primary:hover {
  background: #EFE4CD;
  color: #0F0F0F;
}

.about-short__image {
  flex-shrink: 0;
  width: 280px;
  height: 320px;
  border-radius: 12px;
  object-fit: cover;
  object-position: 78% 40%;
}

.about-short__content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.about-short__content p {
  color: #EFE4CD;
  max-width: 480px;
}

/* ===== FOOTER ===== */
.footer {
  padding: 48px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 32px;
  background: var(--surface);
  color: var(--surface-text);
}

.footer__nav a,
.footer__contact a {
  color: var(--surface-text);
}

.footer__nav a:hover,
.footer__contact a:hover {
  color: var(--surface-text);
}

.footer__credits .caption {
  color: var(--surface-text);
}


.footer__nav {
  display: flex;
  gap: 24px;
}

.footer__nav a {
  font-size: 14px;
  color: #666666;
  transition: color 0.2s ease;
}

.footer__nav a:hover {
  color: #1a1a1a;
}


.footer__contact {
  display: flex;
  flex-direction: row;
  gap: 18px;
  align-items: center;
}

.footer__contact a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: var(--surface-text);
  transition: opacity 0.2s ease;
}

.footer__contact a:hover {
  opacity: 0.6;
}

.footer__contact svg {
  width: 24px;
  height: 24px;
}

.footer__cv {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "Inter", sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--surface-text);
  transition: opacity 0.2s ease;
}

.footer__cv svg {
  width: 22px;
  height: 22px;
}

.footer__cv:hover {
  opacity: 0.6;
}


.footer__credits {
  width: 100%;
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid #cccccc;
  margin-top: 16px;
}

/* ===== INTRO OVERLAY ===== */
#intro-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #FFFCEF;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 1s ease;
}

#intro-overlay.is-fading {
  opacity: 0;
  pointer-events: none;
}

.intro-stage {
  position: relative;
  width: 300px;
  height: 300px;
}

.intro-letter {
  position: absolute;
  left: 0;
  right: 0;
  text-align: center;
  font-family: "Manrope", sans-serif;
  font-weight: 300;
  font-size: 108px;
  line-height: 1;
  color: #1a1a1a;
  opacity: 0;
  animation-duration: 1.4s;
  animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  animation-fill-mode: both;
}

.intro-letter--l { animation-name: intro-l; }
.intro-letter--g { animation-name: intro-g; }

@keyframes intro-l {
  0%   { top: 10px;  opacity: 0; }
  7%   { top: 10px;  opacity: 1; }
  72%  { top: 96px;  opacity: 1; }
  100% { top: 96px;  opacity: 0; }
}

@keyframes intro-g {
  0%   { top: 186px; opacity: 0; }
  7%   { top: 186px; opacity: 1; }
  72%  { top: 96px;  opacity: 1; }
  100% { top: 96px;  opacity: 0; }
}

.intro-line {
  position: absolute;
  left: 24px;
  right: 24px;
  top: 50%;
  height: 1px;
  background: #1a1a1a;
  transform: translateY(-50%) scaleX(0);
  transform-origin: center;
  opacity: 0;
  animation: intro-line 0.9s ease forwards;
  animation-delay: 1.0s;
}

@keyframes intro-line {
  0%   { transform: translateY(-50%) scaleX(0); opacity: 0; }
  18%  { opacity: 1; }
  55%  { transform: translateY(-50%) scaleX(1); opacity: 1; }
  85%  { transform: translateY(-50%) scaleX(1); opacity: 0.4; }
  100% { transform: translateY(-50%) scaleX(1); opacity: 0; }
}

.intro-name {
  position: absolute;
  left: 0;
  right: 0;
  text-align: center;
  font-family: "Manrope", sans-serif;
  font-weight: 300;
  font-size: 26px;
  line-height: 1.2;
  letter-spacing: 7px;
  text-transform: uppercase;
  color: #1a1a1a;
  opacity: 0;
  animation-duration: 0.9s;
  animation-timing-function: cubic-bezier(0.2, 0, 0.1, 1);
  animation-fill-mode: both;
}

.intro-name--top {
  animation-name: intro-name-top;
  animation-delay: 1.2s;
}

.intro-name--bottom {
  animation-name: intro-name-bottom;
  animation-delay: 1.2s;
}

@keyframes intro-name-top {
  0%   { top: 134px; opacity: 0; clip-path: inset(100% 0 0 0); }
  25%  { opacity: 1; }
  100% { top: 106px; opacity: 1; clip-path: inset(0% 0 0 0); }
}

@keyframes intro-name-bottom {
  0%   { top: 150px; opacity: 0; clip-path: inset(0 0 100% 0); }
  25%  { opacity: 1; }
  100% { top: 162px; opacity: 1; clip-path: inset(0 0 0% 0); }
}

@media (prefers-reduced-motion: reduce) {
  #intro-overlay { display: none; }
}

/* ===== PAGE PROFIL — INTRO ===== */
.profil-intro {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 160px 64px 40px;
  max-width: 1400px;
  margin: 0 auto;
}

.profil-intro__text {
  text-align: center;
}

.profil-intro__scroll {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-family: 'Courier New', Courier, monospace;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: rgba(239, 228, 205, 0.5);
}

.profil-intro__scroll-line {
  width: 1px;
  height: 36px;
  background: linear-gradient(to bottom, rgba(239, 228, 205, 0.25), transparent);
  position: relative;
  overflow: hidden;
}

.profil-intro__scroll-line::after {
  content: '';
  position: absolute;
  top: -16px;
  left: 0;
  width: 1px;
  height: 16px;
  background: #EFE4CD;
  animation: scroll-cue 1.8s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}

@keyframes scroll-cue {
  0%   { top: -16px; opacity: 0; }
  20%  { opacity: 1; }
  80%  { opacity: 1; }
  100% { top: 36px; opacity: 0; }
}

.profil-intro__title {
  font-family: "League Gothic", sans-serif;
  font-weight: 400;
  font-size: clamp(5rem, 10vw, 11rem);
  line-height: 0.9;
  margin-bottom: 28px;
  letter-spacing: 0.01em;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.profil-intro__moi {
  display: block;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--text);
}

.profil-intro__name {
  position: relative;
  display: inline-block;
  color: var(--text);
  white-space: nowrap;
}

.profil-intro__letter {
  display: inline-block;
  transition: color 0.3s ease;
  will-change: transform;
}

.profil-intro__underline {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -10px;
  width: 100%;
  height: 18px;
  pointer-events: none;
  stroke-dasharray: 260;
  stroke-dashoffset: 260;
  animation: underline-draw 0.9s cubic-bezier(0.65, 0, 0.35, 1) forwards;
  animation-delay: 0.6s;
}

@keyframes underline-draw {
  to { stroke-dashoffset: 0; }
}

.profil-intro__pronunciation {
  font-family: "Manrope", sans-serif;
  font-style: italic;
  color: rgba(239, 228, 205, 0.7);
  font-size: 18px;
  letter-spacing: 0.02em;
}

.profil-intro__pronunciation[data-typewriter] {
  display: inline-block;
  overflow: hidden;
  white-space: nowrap;
  border-right: 2px solid rgba(239, 228, 205, 0.7);
  max-width: 0;
  animation:
    typewriter 2.4s steps(15) forwards,
    caret-blink 0.75s step-end infinite;
  animation-delay: 0.6s, 0.6s;
}

@media (max-width: 900px) {
  .profil-intro {
    padding: 120px 32px 80px;
    min-height: 0;
  }
}

@keyframes typewriter {
  to { max-width: 18em; }
}

@keyframes caret-blink {
  50% { border-color: transparent; }
}

/* ===== CURSEUR CUSTOM (page profil) ===== */
.page-profil,
.page-profil a,
.page-profil button {
  cursor: none;
}

.cursor__dot,
.cursor__halo {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999;
  border-radius: 50%;
  will-change: transform;
}

.cursor__dot {
  width: 8px;
  height: 8px;
  background: var(--text);
  transform: translate(-100px, -100px);
}

.cursor__halo {
  width: 36px;
  height: 36px;
  border: 1.5px solid var(--text);
  background: transparent;
  opacity: 0.55;
  transform: translate(-100px, -100px);
  transition: width 0.3s ease, height 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}

.cursor.is-hover .cursor__halo {
  width: 56px;
  height: 56px;
  opacity: 0.75;
}

.cursor.is-on-light .cursor__dot {
  background: var(--surface-text);
}

.cursor.is-on-light .cursor__halo {
  border-color: var(--surface-text);
}

@media (hover: none), (pointer: coarse) {
  .page-profil,
  .page-profil a,
  .page-profil button {
    cursor: auto;
  }
  .cursor__dot,
  .cursor__halo {
    display: none;
  }
}

.profil-intro__passport-wrapper,
.profil-intro__boarding-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: visible;
}

/* ===== BOARDING PASS ===== */
.boarding-pass {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 480px;
  background: #faf2dd;
  border-radius: 4px;
  overflow: hidden;
  flex-shrink: 0;
  transform: rotate(4deg);
  border: 1px solid rgba(80, 60, 30, 0.18);
  box-shadow:
    0 40px 90px rgba(60, 40, 20, 0.28),
    0 14px 32px rgba(60, 40, 20, 0.16),
    0 3px 8px rgba(60, 40, 20, 0.1);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  font-family: "Manrope", sans-serif;
  color: #1a1a1a;
  text-decoration: none;
}

.boarding-pass::after {
  content: 'BOARDING';
  position: absolute;
  top: 38%;
  right: -10px;
  transform: rotate(-14deg);
  font-family: 'Courier New', Courier, monospace;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 4px;
  color: rgba(192, 57, 43, 0.16);
  border: 3px solid rgba(192, 57, 43, 0.16);
  padding: 6px 12px;
  pointer-events: none;
  z-index: 2;
}

.boarding-pass:hover {
  transform: rotate(-1.5deg) scale(1.02);
  box-shadow:
    0 50px 120px rgba(60, 40, 20, 0.32),
    0 18px 40px rgba(60, 40, 20, 0.2),
    0 4px 10px rgba(60, 40, 20, 0.12);
}

.boarding-pass__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #1f3e6a;
  color: #faf2dd;
  padding: 14px 22px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.boarding-pass__airline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.boarding-pass__plane {
  font-size: 14px;
  transform: rotate(-45deg);
  display: inline-block;
}

.boarding-pass__label {
  font-weight: 400;
  opacity: 0.85;
}

.boarding-pass__route {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 24px 22px;
  gap: 14px;
}

.boarding-pass__city {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex-shrink: 0;
}

.boarding-pass__city:last-child {
  text-align: right;
}

.boarding-pass__code {
  font-family: 'Courier New', Courier, monospace;
  font-size: 44px;
  font-weight: 700;
  color: #1f3e6a;
  line-height: 1;
  letter-spacing: 1px;
}

.boarding-pass__name {
  font-family: 'Courier New', Courier, monospace;
  font-size: 10px;
  font-weight: 400;
  color: #6b5a40;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.boarding-pass__arrow {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: #1f3e6a;
}

.boarding-pass__arrow-line {
  flex: 1;
  height: 1px;
  background: repeating-linear-gradient(
    to right,
    #1f3e6a 0,
    #1f3e6a 3px,
    transparent 3px,
    transparent 6px
  );
  opacity: 0.7;
}

.boarding-pass__arrow-icon {
  font-size: 18px;
  transform: rotate(-45deg);
}

.boarding-pass__passenger {
  padding: 4px 24px 16px;
  border-bottom: 1px dashed rgba(80, 60, 30, 0.28);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.boarding-pass__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  padding: 16px 24px;
  border-bottom: 1px dashed rgba(80, 60, 30, 0.28);
}

.boarding-pass__field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.boarding-pass__field-label {
  font-family: 'Courier New', Courier, monospace;
  font-size: 9px;
  font-weight: 400;
  color: #8a7656;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.boarding-pass__field-value {
  font-family: 'Courier New', Courier, monospace;
  font-size: 15px;
  font-weight: 700;
  color: #1a1a1a;
  letter-spacing: 0.4px;
  white-space: nowrap;
}

.boarding-pass__field-value--big {
  font-size: 22px;
  white-space: normal;
  letter-spacing: 1px;
}

.boarding-pass__field-value--accent {
  color: #b8341f;
  animation: boarding-pulse 1.6s ease-in-out infinite;
}

@keyframes boarding-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.55; }
}

.boarding-pass__perforation {
  position: relative;
  height: 18px;
  margin: 0;
}

.boarding-pass__perforation::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 18px;
  right: 18px;
  height: 1px;
  border-top: 1.5px dashed rgba(80, 60, 30, 0.4);
  transform: translateY(-50%);
}

.boarding-pass__perforation::after {
  content: '';
  position: absolute;
  top: 50%;
  left: -9px;
  width: 18px;
  height: 18px;
  background: #FFFCEF;
  border-radius: 50%;
  transform: translateY(-50%);
  box-shadow: 480px 0 0 0 #FFFCEF;
}

.boarding-pass__stub {
  padding: 20px 24px 26px;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto auto;
  gap: 14px 20px;
  align-items: start;
}

.boarding-pass__bagage {
  display: flex;
  flex-direction: column;
  gap: 8px;
  grid-column: 1;
  grid-row: 1 / span 2;
}

.boarding-pass__bagage-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.boarding-pass__bagage-list li {
  font-family: 'Courier New', Courier, monospace;
  font-size: 13px;
  font-weight: 700;
  color: #1a1a1a;
  padding: 0;
  border: none;
  border-radius: 0;
  letter-spacing: 0.3px;
}

.boarding-pass__bagage-list li::before {
  content: '› ';
  color: #1f3e6a;
  font-weight: 700;
}

.boarding-pass__barcode {
  height: 70px;
  width: 140px;
  background: repeating-linear-gradient(
    to right,
    #1a1a1a 0,
    #1a1a1a 1.5px,
    transparent 1.5px,
    transparent 4px,
    #1a1a1a 4px,
    #1a1a1a 5px,
    transparent 5px,
    transparent 7.5px,
    #1a1a1a 7.5px,
    #1a1a1a 10.5px,
    transparent 10.5px,
    transparent 13px
  );
  grid-column: 2;
  grid-row: 1;
}

.boarding-pass__scan {
  font-family: 'Courier New', Courier, monospace;
  font-size: 9px;
  font-weight: 700;
  color: #6b5a40;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-align: center;
  grid-column: 2;
  grid-row: 2;
  margin-top: -6px;
}

.boarding-pass__tagline {
  font-family: "Libre Baskerville", serif;
  font-style: italic;
  font-size: 13px;
  color: #1f3e6a;
  text-align: center;
  line-height: 1.5;
  grid-column: 1 / span 2;
  grid-row: 3;
  padding-top: 10px;
  border-top: 1px dashed rgba(80, 60, 30, 0.22);
}

/* ===== PASSEPORT (portrait, ouvert verticalement) ===== */
.passport {
  display: flex;
  flex-direction: column;
  width: 500px;
  border-radius: 5px;
  overflow: hidden;
  flex-shrink: 0;
  transform: rotate(5deg);
  border: 1px solid rgba(0,0,0,0.15);
  box-shadow:
    0 40px 100px rgba(0,0,0,0.32),
    0 12px 32px rgba(0,0,0,0.16),
    0 3px 8px rgba(0,0,0,0.1);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.passport:hover {
  transform: rotate(-2deg) scale(1.02);
  box-shadow:
    0 48px 120px rgba(0,0,0,0.36),
    0 16px 40px rgba(0,0,0,0.18),
    0 4px 10px rgba(0,0,0,0.1);
}

/* Pages — papier crème légèrement jauni */
.passport__page {
  position: relative;
  width: 100%;
  background-color: #f7f3e4;
  overflow: hidden;
  font-family: 'Courier New', Courier, monospace;
}

/* Pattern losange fin */
.passport__page::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(45deg, rgba(150,120,50,0.08) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(150,120,50,0.08) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(150,120,50,0.08) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(150,120,50,0.08) 75%);
  background-size: 10px 10px;
  background-position: 0 0, 0 5px, 5px -5px, -5px 0px;
  pointer-events: none;
  z-index: 0;
}

/* ── Page tampons ── */
.passport__page--stamps {
  height: 300px;
}

/* Filigrane RF */
.passport__page--stamps::after {
  content: 'RF';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-20deg);
  font-size: 140px;
  font-weight: 800;
  letter-spacing: 10px;
  color: rgba(20,50,120,0.035);
  pointer-events: none;
  z-index: 0;
  user-select: none;
}

/* Pli horizontal / reliure */
.passport__fold {
  height: 14px;
  flex-shrink: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.2) 0%,
    rgba(200,190,160,0.4) 50%,
    rgba(0,0,0,0.16) 100%
  );
  position: relative;
  z-index: 2;
}

/* ── Tampons ── */
.passport__stamp {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 2.5px solid currentColor;
  z-index: 1;
  mix-blend-mode: multiply;
  text-align: center;
  line-height: 1.3;
  filter: blur(0.3px);
}

/* Anneau intérieur */
.passport__stamp::after {
  content: '';
  position: absolute;
  inset: 5px;
  border: 1.5px solid currentColor;
  border-radius: inherit;
  opacity: 0.45;
}

.stamp__icon {
  font-size: 10px;
  position: relative;
  z-index: 1;
  line-height: 1;
  margin-bottom: 2px;
  font-family: 'Courier New', Courier, monospace;
}

.stamp__city {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  position: relative;
  z-index: 1;
  font-family: 'Courier New', Courier, monospace;
}

.stamp__sub {
  font-size: 6.5px;
  font-weight: 400;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  position: relative;
  z-index: 1;
  opacity: 0.72;
  margin-top: 1px;
  font-family: 'Courier New', Courier, monospace;
}

.stamp__date {
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.3px;
  margin-top: 2px;
  position: relative;
  z-index: 1;
  opacity: 0.85;
  font-family: 'Courier New', Courier, monospace;
}

.stamp__time {
  font-size: 7.5px;
  font-weight: 700;
  letter-spacing: 0.5px;
  position: relative;
  z-index: 1;
  margin-top: 1px;
  font-family: 'Courier New', Courier, monospace;
}

.stamp__label-top {
  font-size: 6px;
  font-weight: 400;
  letter-spacing: 1px;
  text-transform: uppercase;
  position: relative;
  z-index: 1;
  margin-bottom: 2px;
  opacity: 0.65;
  font-family: 'Courier New', Courier, monospace;
}

.stamp__label-bottom {
  font-size: 5.5px;
  font-weight: 400;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  position: relative;
  z-index: 1;
  margin-top: 3px;
  opacity: 0.65;
  font-family: 'Courier New', Courier, monospace;
}

.stamp__plane-box {
  border: 1.5px solid currentColor;
  padding: 2px 6px;
  margin-bottom: 4px;
  font-size: 12px;
  position: relative;
  z-index: 1;
  font-family: 'Courier New', Courier, monospace;
}

/* 1. Paris — SVG cercle, no border CSS */
.passport__stamp--1 {
  top: -14px;
  left: -16px;
  transform: rotate(-18deg);
  opacity: 0.74;
  border: none;
  padding: 0;
  background: transparent;
}
.passport__stamp--1::after { display: none; }
.passport__stamp--1 svg { display: block; width: 140px; height: 140px; }

/* 2. Nantes — rectangle type Malmö */
.passport__stamp--2 {
  color: #1a5234;
  width: 112px;
  height: 76px;
  border-radius: 4px;
  top: 13%;
  left: 22%;
  transform: rotate(10deg);
  opacity: 0.68;
  padding: 6px 10px;
}

/* 3. Faro — SVG hexagone type Kyoto */
.passport__stamp--3 {
  top: -10px;
  right: -10px;
  transform: rotate(-9deg);
  opacity: 0.70;
  border: none;
  padding: 0;
  background: transparent;
}
.passport__stamp--3::after { display: none; }
.passport__stamp--3 svg { display: block; width: 110px; height: 96px; }

/* 4. Cannes — SVG ellipse pointillée type Vienna */
.passport__stamp--4 {
  top: 40%;
  left: -10px;
  transform: rotate(-11deg);
  opacity: 0.28;
  border: none;
  padding: 0;
  background: transparent;
}
.passport__stamp--4::after { display: none; }
.passport__stamp--4 svg { display: block; width: 114px; height: 72px; }

/* 5. Milan — petit rect très effacé type Macau */
.passport__stamp--5 {
  color: #1a3a5c;
  width: 88px;
  height: 54px;
  border-radius: 4px;
  top: 37%;
  left: 34%;
  transform: rotate(16deg);
  opacity: 0.20;
  padding: 5px 9px;
}

/* 6. Londres — rectangle avec avion type London Airport */
.passport__stamp--6 {
  color: #0d2260;
  width: 132px;
  height: 86px;
  border-radius: 4px;
  top: 26%;
  right: -16px;
  transform: rotate(-14deg);
  opacity: 0.68;
  padding: 8px 12px;
}

/* 7. Lyon — SVG triangle type Hong Kong */
.passport__stamp--7 {
  bottom: 2%;
  left: 2%;
  transform: rotate(7deg);
  opacity: 0.64;
  border: none;
  padding: 0;
  background: transparent;
}
.passport__stamp--7::after { display: none; }
.passport__stamp--7 svg { display: block; width: 120px; height: 106px; }

/* 8. Pornichet — petit rect vertical effacé type Vienna */
.passport__stamp--8 {
  color: #3a5060;
  width: 72px;
  height: 92px;
  border-radius: 4px;
  bottom: -8px;
  right: 4%;
  transform: rotate(-20deg);
  opacity: 0.28;
  padding: 8px 8px;
}

/* ── Page identité ── */
.passport__page--identity {
  display: flex;
  flex-direction: column;
  height: 350px;
}

.passport__page-label {
  display: block;
  padding: 12px 20px 6px;
  font-family: 'Special Elite', 'Courier New', monospace;
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #999999;
  position: relative;
  z-index: 1;
}

.passport__id-area {
  display: flex;
  gap: 20px;
  padding: 4px 20px 14px;
  flex: 1;
  position: relative;
  z-index: 1;
}

.passport__photo {
  width: 126px;
  height: 162px;
  flex-shrink: 0;
  border-radius: 3px;
  border: 1px solid rgba(0,0,0,0.14);
}

.passport__fields {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 4px;
  justify-content: center;
}

.passport__field {
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: #ffffff;
  border-radius: 0;
  padding: 7px 10px;
}

.passport__field-row--split {
  display: flex;
  gap: 4px;
}

.passport__field-row--split .passport__field {
  flex: 1;
}

.passport__field-label {
  font-family: 'Special Elite', 'Courier New', monospace;
  font-size: 6.5px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #888888;
  font-weight: 400;
}

.passport__field-value {
  font-family: 'Special Elite', 'Courier New', monospace;
  font-size: 12px;
  font-weight: 400;
  color: #1a1a1a;
  line-height: 1.3;
}

.passport__field-sub {
  font-family: 'Special Elite', 'Courier New', monospace;
  font-size: 9px;
  color: #666666;
  font-weight: 400;
  line-height: 1.3;
  margin-top: 1px;
}

/* MRZ — sans container, directement dans la page */
.passport__mrz {
  padding: 10px 20px 18px;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.passport__mrz-code {
  font-family: 'Courier New', Courier, monospace;
  font-size: 7px;
  color: #aaaaaa;
  letter-spacing: 0.6px;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
}

.passport__mrz-main {
  font-family: 'Courier New', Courier, monospace;
  font-size: 13px;
  font-weight: 700;
  color: #1a1a1a;
  letter-spacing: 0.5px;
  line-height: 1.5;
  margin-top: 6px;
  white-space: nowrap;
  overflow: hidden;
}

/* ===== MANIFESTO (La version non-LinkedIn) ===== */
.manifesto {
  padding: 40px 48px 100px;
  font-family: "Manrope", sans-serif;
}

.manifesto__inner {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.manifesto__label {
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-faint);
}

.manifesto__hook {
  font-family: "Manrope", sans-serif;
  font-size: 48px;
  font-weight: 800;
  line-height: 1.1;
  color: var(--text);
}

.manifesto__intro {
  font-size: 18px;
  font-weight: 400;
  color: var(--text-soft);
  line-height: 1.7;
  max-width: 620px;
}

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

.manifesto__block {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-left: 20px;
  border-left: 2px solid var(--text);
}

.manifesto__block-label {
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text);
  font-weight: 600;
}

.manifesto__block p {
  font-size: 16px;
  color: var(--text-soft);
  line-height: 1.7;
  max-width: 580px;
}

.manifesto__secondary {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 8px;
}

.manifesto__secondary p {
  font-size: 13px;
  color: var(--text-faint);
  line-height: 1.6;
}

.manifesto__secondary-label {
  font-weight: 600;
  color: var(--text-soft);
}

/* ===== INTERETS ===== */
.interests {
  padding: 40px 48px 120px;
}

.interests__inner {
  max-width: 1080px;
  margin: 0 auto;
}

.interests__title {
  font-family: "Manrope", sans-serif;
  font-weight: 800;
  font-size: clamp(1.75rem, 3vw, 2.75rem);
  letter-spacing: 0.02em;
  color: var(--text);
  margin-bottom: 40px;
}

.interests__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.interest-card {
  perspective: 1200px;
  aspect-ratio: 4 / 5;
}

.interest-card__inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.interest-card:hover .interest-card__inner,
.interest-card.is-flipped .interest-card__inner {
  transform: rotateY(180deg);
}

.interest-card__face {
  position: absolute;
  inset: 0;
  border-radius: 24px;
  overflow: hidden;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.interest-card__face--front {
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 28px 32px;
  background: var(--surface);
  color: var(--surface-text);
}

.interest-card__num {
  font-family: "Inter", sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.15em;
  color: var(--surface-text-soft);
  align-self: start;
}

.interest-card__icon {
  width: 56px;
  height: 56px;
  align-self: end;
  justify-self: start;
  margin-bottom: 16px;
}

.interest-card__title {
  font-family: "Manrope", sans-serif;
  font-weight: 700;
  font-size: clamp(1.5rem, 2.4vw, 2.2rem);
  margin: 0;
  grid-row: 3;
  grid-column: 1;
}

.interest-card__hint {
  font-family: "Inter", sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--surface-text-soft);
  position: absolute;
  top: 28px;
  right: 32px;
}

.interest-card__face--back {
  transform: rotateY(180deg);
  background: var(--bg);
}

.interest-card__face--back img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.interest-card--music .interest-card__face--back img {
  object-fit: contain;
  background: var(--bg);
}

@media (max-width: 800px) {
  .interests__list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 500px) {
  .interests__list {
    grid-template-columns: 1fr;
  }
}

/* ===== COMPETENCES ===== */
.skills {
  padding: 80px 48px 120px;
}

.skills__inner {
  max-width: 1080px;
  margin: 0 auto;
}

.skills__title {
  font-family: "Manrope", sans-serif;
  font-weight: 800;
  font-size: clamp(1.75rem, 3vw, 2.75rem);
  letter-spacing: 0.02em;
  color: var(--text);
  margin-bottom: 40px;
}

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

.skill-card {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 32px 36px;
  background: var(--surface);
  color: var(--surface-text);
  border-radius: 24px;
  min-height: 140px;
}

.skill-card__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
}

.skill-card__icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  color: var(--surface-text);
}

.skill-card__title {
  font-family: "Manrope", sans-serif;
  font-weight: 700;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  line-height: 1.2;
  margin: 0;
  text-align: right;
}

.skill-card__tags {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.skill-card__tags li {
  font-family: "Manrope", sans-serif;
  font-size: 14px;
  font-weight: 500;
  padding: 6px 14px;
  border: 1px solid var(--surface-border);
  border-radius: 999px;
  color: var(--surface-text);
}

@media (max-width: 600px) {
  .skill-card__head {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .skill-card__title {
    text-align: left;
  }
}

/* ===== EXPERIENCES (dans manifesto) ===== */
.manifesto__section-title {
  font-family: "Manrope", sans-serif;
  font-weight: 800;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  letter-spacing: 0.02em;
  color: var(--text);
  margin-top: 24px;
}

.manifesto__experiences {
  display: flex;
  flex-direction: column;
  gap: 56px;
}

.experience {
  padding-left: 24px;
  border-left: 2px solid var(--text);
}

.experience__company {
  display: inline-block;
  font-family: "Manrope", sans-serif;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 8px;
}

.experience__company--link {
  text-decoration: underline dotted var(--text);
  text-underline-offset: 4px;
  text-decoration-thickness: 1.5px;
  transition: opacity 0.2s ease;
}

.experience__company--link:hover {
  opacity: 0.7;
}

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

.experience__role {
  font-family: "Manrope", sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
  margin: 0;
  white-space: nowrap;
}

.experience__date {
  font-family: "Manrope", sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
  flex-shrink: 0;
}

@media (max-width: 600px) {
  .experience__header {
    flex-direction: column;
    gap: 6px;
  }
}

.experience__text {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

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

/* ===== BASSINE / MES INDISPENSABLES ===== */
.tray-section {
  padding: 60px 48px 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  background: #2B5288;
}

html, body {
  overflow-x: hidden;
}

.tray-section__title {
  font-family: "Libre Baskerville", serif;
  font-weight: 400;
  font-size: 48px;
  color: #FFFCEF;
  letter-spacing: 0.02em;
  text-align: center;
}

.tray {
  position: relative;
  width: min(880px, 82vw);
  aspect-ratio: 7 / 5;
  margin: 20px 0 30px;
}

.tray__bac {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  z-index: 1;
  pointer-events: none;
  user-select: none;
}

.tray__item {
  position: absolute;
  z-index: 2;
  cursor: pointer;
  transition: transform 1.4s cubic-bezier(0.22, 1, 0.36, 1);
  transform-origin: center;
  will-change: transform;
}

.tray__item img {
  width: 100%;
  height: auto;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
  transition: transform 0.3s ease;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.15));
}

.tray__item:hover img {
  animation: tray-breathe 2.4s ease-in-out infinite;
}

@keyframes tray-breathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

/* Etat initial = objets dans le bac
   (proportions extraites de ciaragan.com/about — ratio item:bac w 31-43%) */
.tray__item--livre {
  width: 18%;
  top: 20%;
  left: 8%;
  transform: rotate(-4deg);
}

.tray__item--cafe {
  width: 26%;
  top: 22%;
  left: 26%;
  transform: rotate(-3deg);
}

.tray__item--lunettes {
  width: 22%;
  top: 24%;
  left: 52%;
  transform: rotate(2deg);
}

.tray__item--casque {
  width: 27%;
  top: 20%;
  left: 70%;
  transform: rotate(8deg);
}

.tray__item--macbook {
  width: 44%;
  top: 48%;
  left: 6%;
  transform: rotate(0deg);
}

/* Etat disperse = objets autour du bac (au scroll-in) */
.tray.is-scattered .tray__item--livre {
  transform: translate(-110%, 10%) rotate(-15deg);
  transition-delay: 0s;
}

.tray.is-scattered .tray__item--cafe {
  transform: translate(130%, 50%) rotate(-10deg);
  transition-delay: 0.08s;
}

.tray.is-scattered .tray__item--lunettes {
  transform: translate(-40%, -90%) rotate(8deg);
  transition-delay: 0.16s;
}

.tray.is-scattered .tray__item--casque {
  transform: translate(80%, -45%) rotate(15deg);
  transition-delay: 0.24s;
}

.tray.is-scattered .tray__item--macbook {
  transform: translate(-30%, 45%) rotate(-5deg);
  transition-delay: 0.32s;
}

@media (max-width: 720px) {
  .tray { margin: 30px 0; }
  .tray.is-scattered .tray__item--livre { transform: translate(-50%, -40%) rotate(-18deg); }
  .tray.is-scattered .tray__item--lunettes { transform: translate(-15%, -90%) rotate(10deg); }
  .tray.is-scattered .tray__item--casque { transform: translate(55%, -55%) rotate(18deg); }
  .tray.is-scattered .tray__item--cafe { transform: translate(-110%, 35%) rotate(-10deg); }
  .tray.is-scattered .tray__item--macbook { transform: translate(40%, 60%) rotate(6deg); }
}
