/* ==========================================================================
   Portfolio — Tyssia Malalatiana
   Univers repris du portfolio Canva : dégradé bleu → violet, titres serif,
   touches de pinceau jaune / rose / orange / cyan.
   ========================================================================== */

:root {
  --blue: #2440c4;
  --indigo: #4a4fd0;
  --violet: #7a56d8;
  --orchid: #a958d6;
  --ink: #1b1340;
  --white: #fff;

  --yellow: #f8de4b;
  --orange: #f8b445;
  --pink: #f47cc0;
  --blush: #fbd5de;
  --sky: #5ccaf2;
  --cyan: #55d9e3;
  --lime: #c9f27a;
  --plum: #5d2a93;
  --red: #e2403a;

  --font-display: "Gloock", Georgia, "Times New Roman", serif;
  --font-hand: "Patrick Hand", "Comic Sans MS", cursive;
  --font-ui: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 28px;
  --shadow: 0 18px 40px -18px rgba(18, 10, 60, .55);
  --container: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--white);
  /* Dégradé horizontal : identique à chaque hauteur, donc aucune couture entre sections */
  background: linear-gradient(90deg, var(--blue) 0%, var(--indigo) 30%, var(--violet) 65%, var(--orchid) 100%);
  background-color: var(--blue);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; height: auto; }
main { overflow-x: clip; }
a { color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p, figure, blockquote { margin: 0; }

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

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.hand { font-family: var(--font-hand); }
.script { font-family: var(--font-display); font-style: italic; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--yellow); color: var(--ink); padding: 10px 16px; border-radius: 999px;
  font-weight: 600; text-decoration: none; transition: top .2s;
}
.skip:focus { top: 16px; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .9em 1.6em; border-radius: 999px;
  font: 600 .95rem/1 var(--font-ui); text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
  cursor: pointer;
}
.btn--yellow { background: var(--yellow); color: var(--ink); box-shadow: 4px 4px 0 var(--ink); }
.btn--yellow:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.btn--ghost { border: 2px solid rgba(255,255,255,.85); color: var(--white); background: transparent; }
.btn--ghost:hover { background: rgba(255,255,255,.14); transform: translateY(-2px); }

/* ---------- Navigation ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  transition: background-color .3s, box-shadow .3s, backdrop-filter .3s;
}
.nav.is-scrolled {
  background: rgba(30, 30, 120, .55);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 6px 24px -12px rgba(0,0,0,.4);
}
.nav__inner {
  max-width: var(--container); margin-inline: auto; padding: 14px var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.nav__logo { font: 400 1.7rem/1 var(--font-display); text-decoration: none; }
.nav__logo span { color: var(--yellow); }
.nav__links { display: flex; align-items: center; gap: 4px; }
.nav__links a {
  padding: 8px 12px; border-radius: 999px; text-decoration: none;
  font-size: .9rem; font-weight: 500; opacity: .9; transition: background-color .2s, opacity .2s;
}
.nav__links a:hover, .nav__links a.is-active { background: rgba(255,255,255,.16); opacity: 1; }
.nav__links .nav__cta { background: var(--yellow); color: var(--ink); font-weight: 600; margin-left: 8px; opacity: 1; }
.nav__links .nav__cta:hover, .nav__links .nav__cta.is-active { background: var(--white); }

.nav__burger {
  display: none; width: 44px; height: 44px; border: 0; border-radius: 50%;
  background: rgba(255,255,255,.16); cursor: pointer; position: relative;
}
.nav__burger span {
  position: absolute; left: 12px; right: 12px; height: 2px; background: var(--white); border-radius: 2px;
  transition: transform .25s, top .25s;
}
.nav__burger span:first-child { top: 17px; }
.nav__burger span:last-child { top: 25px; }
.nav__burger[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.nav__burger[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

/* ---------- Titres de section ---------- */
.section { position: relative; padding: clamp(56px, 7.5vw, 96px) 0; overflow-x: clip; }
.section::before {
  content: ""; position: absolute; z-index: 0; pointer-events: none;
  width: 60vw; height: 60vw; max-width: 760px; max-height: 760px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 140, 230, .28), transparent 65%);
  top: -20%; right: -18%;
}
.section:nth-of-type(even)::before {
  background: radial-gradient(circle, rgba(70, 120, 255, .35), transparent 65%);
  left: -20%; right: auto; top: auto; bottom: -25%;
}
.section > .container { position: relative; z-index: 1; }

.sec-head { display: flex; align-items: flex-start; gap: clamp(14px, 3vw, 28px); margin-bottom: clamp(28px, 5vw, 56px); }
.sec-head--between { justify-content: space-between; }

.title {
  font: 400 clamp(2.9rem, 8.5vw, 7rem)/.95 var(--font-display);
  letter-spacing: -.01em;
  text-shadow: 4px 5px 0 rgba(27, 19, 64, .5);
}
.title--xl { font-size: clamp(3.4rem, 11vw, 9rem); }
.title em {
  font-style: normal; color: var(--orange);
  font-size: .62em; display: inline-block; transform: translateY(.25em) rotate(-4deg);
}

.num {
  flex: none;
  font: 800 clamp(2.6rem, 5vw, 4.2rem)/1 var(--font-ui);
  color: var(--white);
  -webkit-text-stroke: 3px var(--ink);
  paint-order: stroke fill;
  text-shadow: 4px 4px 0 var(--ink);
  transform: rotate(-6deg);
  margin-top: .1em;
}

.subtitle { font: 400 clamp(1.8rem, 3.6vw, 2.6rem)/1.1 var(--font-display); text-shadow: 3px 3px 0 rgba(27,19,64,.4); margin-bottom: 18px; }
.kicker { font-size: 1.6rem; margin-bottom: 8px; transform: rotate(-2deg); display: inline-block; }
.mini { font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; margin: 28px 0 12px; opacity: .9; }

/* ---------- Coups de pinceau ---------- */
.brush {
  --brush: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 100' preserveAspectRatio='none'%3E%3Cpath d='M12 14C60 6 140 10 210 7S340 9 392 6L384 18L398 26L386 36L396 48L388 60L399 72L385 82L394 94C320 97 250 92 180 95S60 93 6 96L16 84L3 72L14 60L2 48L15 36L4 24Z'/%3E%3C/svg%3E");
  position: relative; isolation: isolate;
  color: var(--ink);
  padding: clamp(22px, 3.5vw, 36px) clamp(26px, 4vw, 44px);
}
.brush::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--brush-color, var(--yellow));
  -webkit-mask: var(--brush) center / 100% 100% no-repeat;
  mask: var(--brush) center / 100% 100% no-repeat;
  filter: drop-shadow(0 10px 18px rgba(20, 10, 60, .25));
}
.brush--yellow { --brush-color: var(--yellow); }
.brush--pink { --brush-color: var(--pink); }
.brush--orange { --brush-color: var(--orange); }

/* ---------- Chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li {
  padding: 6px 14px; border-radius: 999px;
  background: var(--white); color: var(--ink);
  font-size: .88rem; font-weight: 500;
  box-shadow: 0 2px 0 rgba(27,19,64,.15);
}
.chips--light li { background: rgba(255,255,255,.16); color: var(--white); border: 1.5px solid rgba(255,255,255,.5); box-shadow: none; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative; min-height: 100svh; overflow: hidden;
  padding-top: clamp(92px, 12vh, 128px);
  display: flex; flex-direction: column;
}
.hero::before {
  content: ""; position: absolute; inset: auto -10% 10% auto; width: 55vw; height: 55vw; border-radius: 50%;
  background: radial-gradient(circle, rgba(230, 60, 255, .35), transparent 65%); pointer-events: none;
}
.hero__grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: clamp(24px, 5vw, 64px);
}
.hero__name {
  display: inline-flex; align-items: center; gap: 14px;
  font: 600 .95rem/1 var(--font-ui); letter-spacing: .2em; text-transform: uppercase;
  margin-bottom: 18px;
}
.hero__now {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 18px;
  padding: 8px 16px 8px 12px; border-radius: 999px;
  background: rgba(255,255,255,.14); border: 1.5px solid rgba(255,255,255,.35);
  font-size: .88rem; font-weight: 500; line-height: 1.3;
}
.hero__dot {
  flex: none; width: 10px; height: 10px; border-radius: 50%; background: #5eea8f;
  box-shadow: 0 0 0 0 rgba(94, 234, 143, .7); animation: pulse 2.2s ease-out infinite;
}
.hero__title {
  font: 400 clamp(3rem, 8vw, 6.6rem)/.9 var(--font-display);
  letter-spacing: -.02em;
  color: var(--white);
  text-shadow:
    -2px -2px 0 var(--ink), 2px -2px 0 var(--ink), -2px 2px 0 var(--ink), 2px 2px 0 var(--ink),
    6px 7px 0 var(--ink);
  margin-bottom: 26px;
}
.nowrap { white-space: nowrap; }
.hero__lead { font-size: clamp(1.25rem, 2vw, 1.5rem); line-height: 1.45; max-width: 34ch; margin-bottom: 30px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 26px; }
.hero__place { display: inline-flex; align-items: center; gap: 8px; font-size: .92rem; opacity: .9; }

.hero__visual { position: relative; justify-self: center; width: min(100%, 420px); aspect-ratio: 1; }
.hero__blob {
  position: absolute; inset: 6%;
  border-radius: 58% 42% 52% 48% / 46% 54% 46% 54%;
  overflow: hidden; background: #c418e8;
  box-shadow: 18px 22px 0 rgba(160, 20, 230, .55);
  animation: morph 14s ease-in-out infinite;
}
.hero__blob img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
/* Contour tracé à la main : il se dessine puis tourne lentement */
.hero__ring { position: absolute; inset: -3%; width: 106%; height: 106%; overflow: visible; animation: ring-spin 40s linear 2.2s infinite; }
.hero__ring path {
  fill: none; stroke: var(--white); stroke-width: 2.8; stroke-linecap: round;
  stroke-dasharray: 1; stroke-dashoffset: 1;
  animation: ring-draw 1.8s cubic-bezier(.65,0,.35,1) .45s forwards;
}

/* Trèfle à quatre feuilles : pivote autour de sa tige (le JS l'oriente vers la souris) */
.hero__clover {
  position: absolute; width: 88px; right: -7%; bottom: -3%;
  transform-origin: 43% 95%; filter: drop-shadow(0 6px 8px rgba(20, 10, 60, .3));
}
.clover__sway { transform-box: view-box; transform-origin: 43px 114px; animation: clover-sway 3.8s ease-in-out infinite; }
.clover__leaf, .clover__heart { fill: var(--white); }
.clover__vein { fill: none; stroke: rgba(122, 86, 216, .35); stroke-width: 1.6; stroke-linecap: round; }
.clover__heart { fill: #efe6ff; }
.clover__stem { fill: none; stroke: var(--white); stroke-width: 5; stroke-linecap: round; }

.hero__mail {
  position: absolute; right: clamp(8px, 1.5vw, 24px); top: 50%; z-index: 2;
  writing-mode: vertical-rl; transform: translateY(-50%);
  font-size: .9rem; letter-spacing: .06em; text-decoration: none; opacity: .85; padding: 0 10px;
}
.hero__mail:hover { opacity: 1; text-decoration: underline; }

.hero__word {
  position: relative; z-index: 0; margin-top: auto;
  font: 800 clamp(3rem, 18vw, 22rem)/.8 var(--font-ui);
  text-transform: uppercase; letter-spacing: -.04em; text-align: center; white-space: nowrap;
  color: var(--white);
  text-shadow: .035em .035em 0 rgba(255,255,255,.28), .07em .07em 0 rgba(36, 64, 196, .45);
  transform: translateY(calc(.12em + var(--py, 0px)));
  user-select: none;
}

/* ==========================================================================
   1. À propos
   ========================================================================== */
.about__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.arch {
  position: relative; aspect-ratio: 5 / 5.6; max-width: 440px; margin-inline: auto;
  border-radius: 999px 999px 32px 32px; overflow: hidden;
  border: 3px solid var(--ink);
  background: linear-gradient(180deg, rgba(255,255,255,.18), rgba(255,255,255,.04));
  box-shadow: 0 0 0 10px rgba(251, 213, 222, .9), 0 0 0 13px var(--ink), var(--shadow);
}
.arch img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 44% 100%; }
.about__text .brush { font-size: clamp(1.25rem, 2vw, 1.55rem); line-height: 1.45; transform: rotate(-1deg); margin-bottom: 36px; }

.toc { counter-reset: toc; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 24px; max-width: 520px; }
.toc li { counter-increment: toc; }
.toc a {
  display: flex; align-items: baseline; gap: 10px; padding: 6px 0;
  text-decoration: none; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; font-size: .85rem;
  border-bottom: 1px dashed rgba(255,255,255,.35); transition: color .2s, padding .2s;
}
.toc a::before { content: counter(toc) "."; font: 400 1.3rem/1 var(--font-display); color: var(--yellow); }
.toc a:hover { color: var(--yellow); padding-left: 6px; }

/* ==========================================================================
   2. Expériences
   ========================================================================== */
.timeline { margin-bottom: clamp(36px, 5vw, 56px); }
.timeline__list { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 46px 16px; position: relative; padding-top: 28px; }
.timeline__item {
  position: relative; padding: 18px 18px 20px; border-radius: 22px;
  background: rgba(255,255,255,.12); border: 1.5px solid rgba(255,255,255,.28);
  transition: transform .3s ease, background-color .3s ease;
}
.timeline__item:hover { transform: translateY(-4px); background: rgba(255,255,255,.18); }
.timeline__item::before {
  content: ""; position: absolute; z-index: 1; top: -27px; left: 20px; width: 14px; height: 14px; border-radius: 50%;
  background: var(--white); border: 3px solid var(--ink);
}
.timeline__item::after {
  content: ""; position: absolute; top: -21px; left: 0; right: -16px; height: 3px;
  background: rgba(255,255,255,.35);
}
.timeline__item:nth-child(5n)::after { right: 0; }
.timeline__item.is-current::after { background: linear-gradient(90deg, var(--yellow), rgba(255,255,255,.35)); }
.timeline__item.is-current { background: var(--yellow); color: var(--ink); border-color: var(--ink); box-shadow: 4px 4px 0 var(--ink); }
.timeline__item.is-current::before { background: var(--yellow); width: 18px; height: 18px; top: -29px; }
.timeline__date { display: block; font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--orange); margin-bottom: 8px; }
.is-current .timeline__date { color: var(--plum); }
.timeline__role { font: 400 1.2rem/1.2 var(--font-display); margin-bottom: 6px; }
.timeline__company { font-family: var(--font-hand); font-size: 1.2rem; line-height: 1.2; }
.timeline__meta { font-size: .8rem; opacity: .8; margin-top: 4px; }
.timeline__badge {
  display: inline-block; margin-top: 12px; padding: 4px 12px; border-radius: 999px;
  background: var(--ink); color: var(--yellow); font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
}

.timeline__toggle { display: none; margin: 28px auto 0; gap: 12px; flex-wrap: wrap; }
.js .timeline__toggle { display: flex; width: fit-content; }
.timeline__toggle-hint { font-weight: 400; font-size: .82rem; opacity: .8; }
.timeline__toggle[aria-expanded="true"] .timeline__toggle-hint { display: none; }
.js .timeline__list:not(.is-expanded) .timeline__item--more { display: none; }

.exp__side { display: flex; flex-direction: column; gap: clamp(16px, 2.5vw, 24px); }
.exp__side .card { flex: 1; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.stats li {
  display: flex; flex-direction: column; gap: 6px; padding: 16px 18px; border-radius: 20px;
  background: rgba(255,255,255,.12); border: 1.5px solid rgba(255,255,255,.28);
}
.stats b { font: 400 2.8rem/1 var(--font-display); color: var(--yellow); text-shadow: 2px 2px 0 var(--ink); }
.stats span { font-size: .82rem; line-height: 1.3; }

.exp__grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(20px, 3vw, 32px); align-items: stretch; }
.card { position: relative; border-radius: var(--radius); padding: clamp(26px, 4vw, 42px); box-shadow: var(--shadow); }
.card--blush {
  background: var(--blush); color: var(--ink);
  border-radius: 34px 120px 34px 90px;
}
.tag {
  display: inline-block; margin-bottom: 22px;
  font: 800 1.35rem/1 var(--font-ui); letter-spacing: .06em; text-transform: uppercase;
  background: #fde7c8; padding: 10px 22px 10px 16px; border-radius: 6px 40px 40px 6px;
  box-shadow: 3px 3px 0 var(--ink);
}
.task + .task { margin-top: 20px; }
.task h4 { font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--plum); margin-bottom: 10px; }
.card--blush .chips li { box-shadow: 2px 2px 0 var(--ink); border: 1.5px solid var(--ink); }

.card--plum { background: var(--plum); padding: 0; display: flex; overflow: hidden; }
.sectors__band {
  flex: none; width: 58px; display: flex; flex-direction: column; justify-content: space-around; align-items: center;
  background: var(--orange); color: var(--ink); padding: 18px 0;
  font: 800 1.5rem/1 var(--font-ui);
}
.sectors__body { padding: clamp(22px, 3.5vw, 36px); flex: 1; }
.sectors__list li { padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.16); display: grid; gap: 4px; }
.sectors__list li:first-child { padding-top: 0; }
.sectors__list li:last-child { border-bottom: 0; padding-bottom: 0; }
.sector { font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--orange); }
.brands { font-family: var(--font-hand); font-size: 1.2rem; line-height: 1.25; }
.brands small { font-size: .95rem; opacity: .78; }
.brands small::before { content: " — "; }

/* ==========================================================================
   3. Personal skills
   ========================================================================== */
.skills__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.skills__col .brush--pink { font-size: clamp(1.2rem, 1.9vw, 1.45rem); line-height: 1.45; transform: rotate(-.8deg); }
.skills__col--right { display: flex; flex-direction: column; align-items: center; text-align: center; }
.skills__illus { width: min(260px, 70%); margin-bottom: 16px; filter: drop-shadow(0 18px 24px rgba(20,10,60,.3)); }
.creds { display: grid; grid-template-columns: 1fr 1.25fr .75fr; gap: clamp(16px, 2.5vw, 26px); margin-top: clamp(48px, 7vw, 80px); align-items: stretch; }
.cred {
  background: var(--white); color: var(--ink); border: 2px solid var(--ink); border-radius: 24px;
  padding: clamp(22px, 3vw, 30px); box-shadow: 5px 5px 0 var(--ink);
}
.cred__title { font: 400 1.7rem/1.1 var(--font-display); margin-bottom: 16px; }
.cred__list { display: grid; gap: 14px; }
.cred__list b { display: block; font-weight: 600; line-height: 1.3; }
.cred__list span { display: block; font-size: .85rem; opacity: .75; line-height: 1.4; margin-top: 2px; }
.cred__checks { display: grid; gap: 10px; }
.cred__checks li { position: relative; padding-left: 32px; font-size: .92rem; line-height: 1.4; }
.cred__checks li::before {
  content: ""; position: absolute; left: 0; top: 0; width: 22px; height: 22px; border-radius: 50%;
  background: var(--yellow) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 12 4 4 8-8' fill='none' stroke='%231b1340' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
  border: 1.5px solid var(--ink);
}
.cred--langs { background: var(--cyan); overflow: hidden; }
.cred--langs .chips { display: grid; grid-template-columns: repeat(auto-fit, minmax(92px, 1fr)); position: relative; z-index: 1; }
.cred--langs .chips li { padding: 6px 10px; font-size: .85rem; text-align: center; }
.cred__deco { position: absolute; right: -10px; bottom: -12px; width: 112px; fill: var(--ink); opacity: .12; pointer-events: none; transform: rotate(-8deg); }
.cred--langs .chips li { border: 1.5px solid var(--ink); box-shadow: 2px 2px 0 var(--ink); }

.qualities {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 22px;
  font: 400 1.6rem/1.3 var(--font-hand);
  transform: rotate(-2deg);
}

/* ==========================================================================
   4. Vision
   ========================================================================== */
.vision .sec-head { align-items: flex-end; }
.vision__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.vision__blob {
  background: var(--sky); color: var(--ink);
  padding: clamp(44px, 6vw, 72px) clamp(40px, 6.5vw, 84px);
  border-radius: 58% 42% 52% 48% / 46% 54% 46% 54%;
  box-shadow: var(--shadow);
  font-size: clamp(1.2rem, 1.9vw, 1.45rem); line-height: 1.5;
}
.vision__blob p + p { margin-top: .6em; }
.vision__art svg { width: 100%; overflow: visible; }
.vision__caption { text-align: center; font-size: 1.4rem; margin-top: 8px; transform: rotate(-2deg); }

/* ==========================================================================
   5. Passions
   ========================================================================== */
.passions__grid {
  display: grid; grid-template-columns: 1fr 1fr 1fr; grid-template-rows: auto auto;
  gap: clamp(16px, 2.5vw, 26px);
}
.passion {
  position: relative; border-radius: var(--radius); padding: 22px;
  background: rgba(255,255,255,.12); border: 1.5px solid rgba(255,255,255,.25);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  transition: transform .3s ease;
}
.passion:hover { transform: translateY(-6px) rotate(-.6deg); }
.passion figcaption { font: 800 1.1rem/1 var(--font-ui); text-transform: uppercase; letter-spacing: .06em; }
.passion--dessin { grid-row: span 2; background: rgba(255,255,255,.08); }
.passion__frame { border: 6px solid var(--white); border-radius: 8px; box-shadow: var(--shadow); transform: rotate(-2deg); overflow: hidden; }
.passion__frame img { width: 100%; }
.passion--nature svg, .passion--road img { width: min(100%, 240px); }
.passion--nature .script { font-size: 2.4rem; text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--lime); text-shadow: 2px 2px 0 var(--ink); }
.passion--sport { background: var(--orange); border: 0; color: var(--ink); border-radius: 18px 60px 18px 60px; }
.passion--sport svg, .passion--lecture svg { width: min(100%, 190px); }
.passion--lecture { background: var(--cyan); border: 0; color: var(--ink); border-radius: 60px 18px 60px 18px; }

.ribbon {
  display: inline-block; padding: 8px 18px; border-radius: 4px;
  box-shadow: 3px 3px 0 var(--ink); transform: rotate(-3deg);
}
.ribbon--red { background: var(--white); color: var(--red); font-size: 1.2rem; }
.ribbon--lime { background: var(--lime); color: var(--ink); }

/* ==========================================================================
   6. Objectifs
   ========================================================================== */
.goals__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 3vw, 32px); align-items: stretch; }
.goal {
  display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 18px;
  padding: 26px 24px 32px; border-radius: var(--radius); color: var(--ink); box-shadow: var(--shadow);
  text-align: center; transition: transform .3s ease;
}
.goal:hover { transform: translateY(-6px); }
.goal img { width: 100%; max-height: 220px; object-fit: contain; }
.goal p { font-size: clamp(1.3rem, 2vw, 1.6rem); line-height: 1.3; text-wrap: balance; }
.goal--yellow { background: var(--yellow); border-radius: 40px 40px 90px 40px; padding-right: 44px; padding-bottom: 40px; }
.goal--white { background: var(--white); border-radius: 50% 50% 40px 40px / 30% 30% 40px 40px; }
.goal--lime { background: var(--lime); border-radius: 40px 40px 40px 90px; padding-left: 44px; padding-bottom: 40px; }
.goal__badge {
  width: 180px; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle at 35% 30%, #ff74c9, #e6339f);
  box-shadow: 0 0 0 6px var(--white), 0 0 0 8px var(--pink);
  margin-top: 10px;
}
.goal__badge svg { width: 72%; }
.amp { font-family: var(--font-display); color: var(--plum); font-size: 1.4em; }

/* ==========================================================================
   7. Contact
   ========================================================================== */
.contact__grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: 40px; align-items: center; }
.contact .sec-head { margin-bottom: 24px; }
.contact__intro { font-size: 1.1rem; margin-bottom: 30px; max-width: 46ch; opacity: .95; }
.contact__list { display: grid; gap: 14px; margin-bottom: 34px; max-width: 520px; }
.contact__list a, .contact__static {
  display: flex; align-items: center; gap: 16px; padding-bottom: 14px;
  font-size: clamp(1.05rem, 2vw, 1.3rem); font-weight: 600; text-decoration: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='10' viewBox='0 0 40 10'%3E%3Cpath d='M0 5Q10 0 20 5T40 5' fill='none' stroke='white' stroke-opacity='.75' stroke-width='2'/%3E%3C/svg%3E") repeat-x left bottom / 40px 10px;
  word-break: break-word;
}
.contact__list a:hover { color: var(--yellow); }
.contact__static .script { font-weight: 400; font-size: 1.5rem; }
.contact__icon {
  flex: none; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  background: var(--white); color: var(--blue); box-shadow: 3px 3px 0 var(--ink);
}
.contact__icon svg { width: 22px; height: 22px; }
.contact__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.contact__sun { justify-self: center; width: min(100%, 300px); }
.sun__rays { transform-origin: 120px 120px; animation: spin 40s linear infinite; }

.footer { padding: 28px 0; border-top: 1px solid rgba(255,255,255,.18); font-size: .88rem; }
.footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; opacity: .85; }
.footer__links { display: flex; gap: 20px; }
.footer a { text-decoration: none; display: inline-block; padding: 10px 0; }
.footer a:hover { text-decoration: underline; }

/* ==========================================================================
   Animations
   ========================================================================== */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); transition-delay: var(--d, 0s); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .brush.reveal.is-in, .js .qualities.reveal.is-in { transform: rotate(-1deg); }

/* Barre de progression de lecture */
.progress {
  position: fixed; inset: 0 0 auto; height: 4px; z-index: 60; pointer-events: none;
  background: linear-gradient(90deg, var(--yellow), var(--pink), var(--cyan));
  transform-origin: 0 50%; transform: scaleX(var(--progress, 0));
}

/* Hero : titre mot par mot, PORTFOLIO lettre par lettre, étincelles */
.hero__title .w { display: inline-block; animation: word-in .9s cubic-bezier(.2,.9,.25,1.2) backwards; animation-delay: calc(.25s + var(--i) * .12s); }
.hero__word span { display: inline-block; animation: letter-in .9s cubic-bezier(.2,.9,.25,1.15) backwards; animation-delay: calc(.55s + var(--i) * .06s); }
.sparkle { position: absolute; width: 34px; fill: var(--yellow); animation: sparkle 2.8s ease-in-out infinite; }
.sparkle--1 { top: 2%; left: 4%; }
.sparkle--2 { top: 16%; right: -3%; width: 22px; fill: var(--white); animation-delay: .9s; }
.sparkle--3 { bottom: 12%; left: -5%; width: 26px; fill: var(--pink); animation-delay: 1.6s; }

/* Bandeau défilant */
.marquee {
  position: relative; z-index: 2; overflow: hidden;
  margin: -18px -3% 0; padding: 16px 0;
  background: var(--yellow); color: var(--ink);
  border-block: 3px solid var(--ink);
  transform: rotate(-2deg);
  box-shadow: 0 16px 30px -16px rgba(18, 10, 60, .65);
}
.marquee__track { display: flex; width: max-content; animation: marquee 34s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee span {
  display: inline-flex; align-items: center; white-space: nowrap;
  font: 800 clamp(1rem, 1.6vw, 1.3rem)/1 var(--font-ui); text-transform: uppercase; letter-spacing: .04em;
}
.marquee span::after { content: "✦"; color: var(--plum); margin: 0 1.1em; }

/* Titres de section : révélés par le bas (on observe .sec-head, car un élément entièrement rogné ne déclenche pas l'IntersectionObserver) */
.js .sec-head .title {
  clip-path: inset(100% -10% -25% -10%); transform: translateY(.35em);
  transition: clip-path .9s cubic-bezier(.7,0,.2,1), transform .9s cubic-bezier(.2,.8,.2,1);
}
.js .sec-head.is-in .title { clip-path: inset(-20% -10% -25% -10%); transform: none; }

/* Numéros de section : arrivée en rotation */
.js .sec-head .num { transform: scale(0) rotate(-140deg); transition: transform .8s cubic-bezier(.34,1.56,.64,1) .2s; }
.js .sec-head.is-in .num { transform: rotate(-6deg); }

/* Coups de pinceau peints de gauche à droite */
.js .brush.reveal::before { clip-path: inset(0 100% 0 0); transition: clip-path .9s cubic-bezier(.65,0,.35,1) .15s; }
.js .brush.reveal.is-in::before { clip-path: inset(-15% -10% -25% -10%); }

/* Bulle Vision qui rebondit */
.js .vision__blob.reveal { transform: scale(.7) rotate(-6deg); transition: opacity .6s ease, transform .9s cubic-bezier(.34,1.56,.64,1); }
.js .vision__blob.reveal.is-in { transform: none; }

/* Cascades : chaque enfant arrive l'un après l'autre */
.js [data-stagger]:not(.is-in) > * { opacity: 0; }
.js [data-stagger].is-in > * { animation: pop-in .65s cubic-bezier(.2,.8,.25,1.1) backwards; animation-delay: calc(var(--i, 0) * var(--step, 80ms)); }
.js .timeline__list.is-expanded.is-in > .timeline__item--more { animation-delay: calc((var(--i, 5) - 5) * 70ms); }
.chips { --step: 40ms; }
.sectors__list { --step: 50ms; }

/* Cartes inclinables avec reflet */
[data-tilt] { position: relative; transition: transform .25s ease-out; }
[data-tilt]::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(circle at var(--gx, 50%) var(--gy, 50%), rgba(255,255,255,.4), transparent 55%);
  opacity: 0; transition: opacity .3s;
}
[data-tilt].is-tilting::after { opacity: 1; }

/* Reflet sur les boutons jaunes */
.btn--yellow { position: relative; overflow: hidden; isolation: isolate; }
.btn--yellow::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 35%, rgba(255,255,255,.8) 50%, transparent 65%);
  transform: translateX(-110%); transition: transform .7s ease;
}
.btn--yellow:hover::after { transform: translateX(110%); }
.hero__actions .btn--yellow::after { animation: shine 4.5s ease-in-out 2.2s infinite; }

.float { animation: float 5s ease-in-out infinite; }
.float-slow { animation: float 7s ease-in-out infinite; }
.twinkle { transform-box: fill-box; transform-origin: center; animation: twinkle 3.2s ease-in-out infinite; animation-delay: var(--d, 0s); }
.spin-slow { animation: spin 30s linear infinite; }

@keyframes morph {
  0%, 100% { border-radius: 58% 42% 52% 48% / 46% 54% 46% 54%; }
  33% { border-radius: 44% 56% 40% 60% / 56% 42% 58% 44%; }
  66% { border-radius: 52% 48% 62% 38% / 42% 60% 40% 58%; }
}
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes twinkle { 0%, 100% { transform: scale(1) rotate(0); } 50% { transform: scale(1.12) rotate(8deg); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes ring-draw { to { stroke-dashoffset: 0; } }
@keyframes ring-spin { to { transform: rotate(360deg); } }
@keyframes clover-sway { 0%, 100% { transform: rotate(-4deg); } 50% { transform: rotate(4deg); } }
@keyframes word-in { from { opacity: 0; transform: translateY(.6em) rotate(5deg) scale(.9); } }
@keyframes letter-in { from { opacity: 0; transform: translateY(70%) rotate(-8deg); } }
@keyframes sparkle { 0%, 100% { transform: scale(.4) rotate(0); opacity: .3; } 50% { transform: scale(1) rotate(90deg); opacity: 1; } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes pop-in { from { opacity: 0; transform: translateY(22px) scale(.96); } }
@keyframes shine { 0% { transform: translateX(-110%); } 25%, 100% { transform: translateX(110%); } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(94, 234, 143, .7); } 70%, 100% { box-shadow: 0 0 0 10px rgba(94, 234, 143, 0); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .js .sec-head .title, .js .brush.reveal::before { clip-path: none; transform: none; }
  .js .sec-head .num { transform: rotate(-6deg); }
  .hero__ring path { stroke-dashoffset: 0; }
  .js [data-stagger]:not(.is-in) > * { opacity: 1; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1020px) {
  .nav__burger { display: block; }
  .nav__links {
    position: fixed; inset: 72px 16px auto 16px;
    flex-direction: column; align-items: stretch; gap: 4px; padding: 14px;
    background: rgba(36, 40, 150, .96); border-radius: 22px; box-shadow: var(--shadow);
    opacity: 0; visibility: hidden; transform: translateY(-10px);
    transition: opacity .25s, transform .25s, visibility .25s;
  }
  .nav__links.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav__links a { padding: 12px 16px; font-size: 1rem; }
  .nav__links .nav__cta { margin: 6px 0 0; text-align: center; }
  .nav.menu-open { background: rgba(30, 30, 120, .7); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
}

@media (max-width: 1100px) {
  .timeline__list { grid-template-columns: repeat(3, minmax(0, 1fr)); padding-top: 0; }
  .timeline__item::before, .timeline__item::after { display: none; }
}

@media (max-width: 900px) {
  .hero__grid, .about__grid, .exp__grid, .skills__grid, .vision__grid, .contact__grid, .creds { grid-template-columns: 1fr; }
  .cred__deco { width: 84px; }
  .cred--langs .chips { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 320px; }
  .hero__visual { width: min(78%, 340px); order: -1; }
  .hero__text { text-align: left; }
  .hero__mail { display: none; }
  .about__visual { max-width: 360px; margin-inline: auto; width: 100%; }
  .passions__grid { grid-template-columns: 1fr 1fr; }
  .passion--dessin { grid-row: auto; grid-column: span 2; }
  .passion--dessin .passion__frame { max-width: 340px; }
  .goals__grid { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
  .contact__sun { width: 200px; order: -1; justify-self: start; }
}

@media (max-width: 640px) {
  .timeline__list { grid-template-columns: 1fr; padding-left: 26px; }
  .timeline__list::before { content: ""; position: absolute; border-radius: 3px; top: 0; bottom: 0; left: 6px; right: auto; width: 3px; height: auto; background: linear-gradient(180deg, var(--yellow), rgba(255,255,255,.35)); }
  .timeline__item::before { display: block; top: 22px; left: -27px; }
  .timeline__item.is-current::before { top: 20px; left: -29px; }
  .stats { grid-template-columns: 1fr; }
  .stats li { flex-direction: row; align-items: center; gap: 14px; padding: 12px 18px; }
  .stats b { font-size: 2.2rem; min-width: 1.4em; }
  .vision__blob { border-radius: 48px 90px 56px 96px; padding: 36px 28px; }
  .toc { grid-template-columns: 1fr; }
  .passions__grid { grid-template-columns: 1fr; }
  .passion--dessin { grid-column: auto; }
  .sectors__band { width: 40px; font-size: 1.1rem; }
  .sec-head { gap: 12px; }
  .hero__actions .btn { flex: 1 1 auto; }
  .contact__actions .btn { flex: 1 1 100%; }
}
