/* ============================================
   MARIE ARDISSON — NEW HOME (refonte)
   Palette conservée : fond clair, noir, bleu #0707F5
   Typo : Plus Jakarta Sans
   ============================================ */

:root {
  --bg: #fef8f4;
  --ink: #0a0a0a;
  --ink-soft: #55554f;
  --accent: #0707f5;
  --accent-orange: #ea6730;
  --accent-dim: rgba(7, 7, 245, 0.08);
  --accent-dim-2: rgba(7, 7, 245, 0.16);
  --line: rgba(10, 10, 10, 0.12);
  --card: #ffffff;
  --radius: 22px;
  --nav-h: 92px;
  --nav-margin-top: 28px;
  --nav-margin-side: 28px;
  --nav-pill-h: 52px;
  --bg-margin: 0px;
}

html {
  scroll-behavior: smooth;
}

body.home2 {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Plus Jakarta Sans', 'Montserrat', sans-serif;
  cursor: none;
  overflow-x: hidden;
}

body.home2 * {
  font-family: 'Plus Jakarta Sans', 'Montserrat', sans-serif;
  box-sizing: border-box;
}

@media (hover: hover) {
  body.home2 *,
  body.home2 a,
  body.home2 button {
    cursor: none !important;
  }
}

.display {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* ---------- Watermark du script de fond (aidesigner.ai) ---------- */
[data-aifx-wm] {
  display: none !important;
}

@media (hover: none) {
  body.home2 { cursor: auto; }
  .cursor-dot { display: none; }
}

/* ---------- Custom cursor ---------- */
.cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999;
  will-change: transform;
  width: 28px;
  height: auto;
  transform-origin: 50% 50%;
  transform: translate(-50%, -50%) rotate(25deg) var(--cursor-sway, rotate(0deg));
  transition: filter .25s ease;
}

.cursor-dot.cursor-invert {
  filter: invert(1) brightness(1.15);
}

/* ---------- Curseur "fleur" ---------- */
.cursor-flower {
  position: fixed;
  top: 0;
  left: 0;
  width: 150px;
  height: 150px;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity .25s ease;
  will-change: transform;
}

.cursor-flower.is-active {
  opacity: 1;
}

.cursor-flower-shape,
.cursor-flower-text {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.cursor-flower-shape {
  fill: #ffffff;
  filter: drop-shadow(0 10px 24px rgba(10, 10, 10, 0.18));
}

.cursor-flower-text {
  animation: cursorFlowerSpin 9s linear infinite;
}

.cursor-flower-text text {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 600;
  font-size: 8px;
  letter-spacing: 0.04em;
  fill: var(--ink);
  text-transform: uppercase;
  transition: fill .15s ease;
}

.cursor-flower.is-light-text .cursor-flower-text text {
  fill: #ffffff;
}

@keyframes cursorFlowerSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@media (hover: none) {
  .cursor-flower { display: none; }
}

/* ---------- Nav ---------- */
.site-nav {
  position: fixed;
  top: var(--nav-margin-top);
  left: var(--nav-margin-side);
  right: var(--nav-margin-side);
  z-index: 500;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.site-nav {
  --nav-bg: rgba(10, 10, 10, 0.65);
  --nav-fg: var(--bg);
  --nav-border: rgba(255, 255, 255, 0.08);
  --nav-icon-bg: rgba(255, 255, 255, 0.08);
  --nav-hover-bg: rgba(255, 255, 255, 0.06);
  transition: color .3s ease;
}

.site-nav.nav-invert {
  --nav-bg: rgba(255, 255, 255, 0.92);
  --nav-fg: var(--ink);
  --nav-border: rgba(10, 10, 10, 0.08);
  --nav-icon-bg: rgba(10, 10, 10, 0.06);
  --nav-hover-bg: rgba(10, 10, 10, 0.05);
}

.site-nav .brand,
.nav-menu {
  background: var(--nav-bg);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid var(--nav-border);
  box-shadow: 0 12px 30px rgba(10, 10, 10, 0.2);
  transition: background .3s ease, border-color .3s ease;
}

.site-nav .brand {
  height: var(--nav-pill-h);
  display: flex;
  align-items: center;
  padding: 0 22px;
  border-radius: 18px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: -0.005em;
  text-decoration: none;
  color: var(--nav-fg);
  line-height: 1;
  transition: color .3s ease;
}

.nav-right {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.btn-contact {
  display: inline-flex;
  align-items: center;
  height: var(--nav-pill-h);
  background: var(--bg);
  color: var(--ink);
  text-decoration: none;
  padding: 0 20px;
  border-radius: 18px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
  border: 1px solid rgba(10, 10, 10, 0.08);
  box-shadow: 0 12px 30px rgba(10, 10, 10, 0.15);
  transition: background .25s ease, color .25s ease, transform .25s ease, backdrop-filter .25s ease, border-color .25s ease;
}

.site-nav.nav-invert .btn-contact {
  background: rgba(234, 103, 48, 0.8);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  color: #ffffff;
  border: none;
  box-shadow: none;
}

.btn-contact:hover {
  color: #ea6730;
  transform: translateY(-1px);
}

/* ---------- Menu déroulant (accordéon façon Vovi) ---------- */
.nav-menu {
  position: relative;
  width: 240px;
  border-radius: 18px;
  overflow: hidden;
}

.nav-menu-toggle {
  height: var(--nav-pill-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8px 0 20px;
  background: none;
  border: none;
  width: 100%;
  cursor: none;
  color: var(--nav-fg);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  transition: color .3s ease;
}

.nav-menu-letter {
  position: relative;
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: var(--nav-icon-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .3s ease;
}

.nav-menu-letter .icon-menu,
.nav-menu-letter .icon-close {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 16px;
  transform: translate(-50%, -50%) scale(1);
  color: var(--nav-fg);
  opacity: 1;
  transition: opacity .25s ease, transform .25s ease, color .3s ease;
}

.nav-menu-letter .icon-close {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.5) rotate(-90deg);
}

.nav-menu.open .nav-menu-letter .icon-menu {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.5) rotate(90deg);
}

.nav-menu.open .nav-menu-letter .icon-close {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1) rotate(0deg);
}

.nav-menu-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .45s cubic-bezier(.65,0,.35,1);
}

.nav-menu-body-inner {
  overflow: hidden;
}

.nav-menu.open .nav-menu-body {
  grid-template-rows: 1fr;
}

.nav-menu-links {
  padding: 10px 10px;
  display: flex;
  flex-direction: column;
}

.nav-menu-links a {
  display: block;
  color: var(--nav-fg);
  text-decoration: none;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 500;
  font-size: 1rem;
  padding: 14px 10px;
  transition: color .2s ease, background .2s ease;
}

.nav-menu-links a:hover {
  color: var(--nav-fg);
  background: var(--nav-hover-bg);
  border-radius: 12px;
}

.nav-menu-find {
  margin: 4px 10px 10px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 12px;
  background: var(--nav-hover-bg);
  padding: 14px 10px;
  text-decoration: none;
  color: var(--nav-fg);
  transition: background .3s ease, color .3s ease;
}

.nav-menu-find:hover {
  background: #cccaff;
  color: var(--ink);
}

.nav-menu-find strong {
  font-size: 0.9rem;
  font-weight: 500;
}

.nav-menu-find-icon {
  width: 16px;
  height: 16px;
  margin-left: auto;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  min-height: calc(100vh - var(--nav-margin-top));
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--nav-h) + 1.5vh) 6vw 6vh 6vw;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: var(--bg-margin);
  z-index: -1;
  border-radius: 32px;
  overflow: hidden;
  pointer-events: none;
}

.hero-title-wrap {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 0 auto;
  margin-top: -5vh;
  text-align: center;
}

.hero-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 600;
  font-size: clamp(2.1rem, 5vw, 4.2rem);
  line-height: 1.18;
  letter-spacing: -0.01em;
  margin: 0;
}

.hero-line {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  min-height: clamp(2.6rem, 5.8vw, 5rem);
  transform: translateX(0);
}

.hero-line:nth-child(odd) {
  transform: translateX(-3.2vw);
}

.hero-line:nth-child(even) {
  transform: translateX(3.2vw);
}

.hero-sticker {
  display: inline-flex;
  width: clamp(3.4rem, 7.4vw, 6.4rem);
  height: clamp(3.4rem, 7.4vw, 6.4rem);
  margin: 0 0 0 0.3em;
  vertical-align: middle;
  position: relative;
  top: -0.08em;
}

.hero-sticker img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(10, 10, 10, 0.15));
}

.hero-media {
  display: inline-flex;
  width: clamp(56px, 7vw, 96px);
  height: clamp(36px, 4.4vw, 58px);
  border-radius: 14px;
  overflow: hidden;
  vertical-align: middle;
  margin: 0 0.25em;
  position: relative;
  top: -0.08em;
  box-shadow: 0 12px 30px rgba(10, 10, 10, 0.18);
}

.hero-media img,
.hero-media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: mediaFade 4.5s infinite;
}

.hero-media img:nth-child(2) { animation-delay: 1.5s; }
.hero-media img:nth-child(3) { animation-delay: 3s; }

.hero-media--single {
  position: relative;
  top: 0.2em;
  width: clamp(80px, 9.6vw, 132px);
  height: clamp(44px, 5.2vw, 72px);
  margin: 0 0.3em 0 0;
  border-radius: 8px;
}

.hero-media--single img:nth-child(2) { animation-delay: 1.5s; }
.hero-media--single img:nth-child(3) { animation-delay: 3s; }

@keyframes mediaFade {
  0%, 33% { opacity: 1; }
  33.1%, 100% { opacity: 0; }
}

.hero-arrow {
  display: inline-block;
  width: clamp(42px, 4.6vw, 64px);
  height: auto;
  vertical-align: middle;
  margin: 0 0.15em 0 0;
  position: relative;
  top: -0.05em;
}

.hero-down-arrow {
  display: none;
  justify-content: center;
  padding: 2vh 0;
}

.hero-down-arrow img {
  width: 44px;
  height: auto;
}

/* ---------- Pillars (3 blocs filtre) ---------- */
.pillars {
  padding: 26vh 6vw 10vh 6vw;
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}

.pillar {
  position: relative;
  isolation: isolate;
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  text-align: left;
  overflow: hidden;
  background: var(--card);
  box-shadow: 0 4px 8px rgba(10, 10, 10, 0.06);
  transition: transform .4s cubic-bezier(.2,.8,.2,1), box-shadow .4s ease;
  cursor: none;
}

.pillar:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 28px rgba(10, 10, 10, 0.1);
}

.pillar.is-active {
  box-shadow: 0 14px 28px rgba(10, 10, 10, 0.1);
}

.pillar-visual {
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.pillar-visual svg {
  width: 100%;
  height: 100%;
  max-width: 150px;
  transition: transform .5s cubic-bezier(.2,.8,.2,1);
}

.pillar:hover .pillar-visual svg {
  transform: scale(1.04) rotate(-2deg);
}

.pillar-visual--blue { background: #cccaff; }
.pillar-visual--dark { background: #24242b; }
.pillar-visual--orange { background: #ffd9b8; }

.pillar-content {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 1.8rem;
}

.pillar-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: clamp(1.5rem, 2.1vw, 1.85rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 0.8rem 0;
  color: var(--ink);
}

.pillar-desc {
  font-size: 1.02rem;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 32ch;
}

.pillar-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-end;
  width: 32px;
  height: 32px;
  margin-top: auto;
  border-radius: 50%;
  background: rgba(234, 103, 48, 0.12);
  color: var(--accent-orange);
}

.pillar-cta i {
  width: 14px;
  height: 14px;
}

/* ---------- Intro / photo ---------- */
.about-intro {
  padding: 22vh 6vw 14vh 6vw;
}

.about-intro-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr 1fr;
  align-items: flex-end;
  gap: 2vw;
}

.about-intro-photo {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 3 / 4;
  max-width: 320px;
  margin: 0 auto;
  transition: box-shadow .4s ease, transform .5s cubic-bezier(.2,.8,.2,1);
  transform: rotate(0deg);
  will-change: transform;
}

.about-intro-photo:hover {
  box-shadow: 0 20px 40px rgba(10, 10, 10, 0.18);
  transform: rotate(-4deg) scale(1.03);
}

.about-intro-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.about-intro-text p {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 600;
  font-size: clamp(1.05rem, 1.4vw, 1.3rem);
  line-height: 1.45;
  letter-spacing: -0.01em;
  margin: 0 0 1rem 0;
  color: var(--ink);
}

.about-intro-text--left {
  align-self: flex-start;
}

.about-intro-text--left p {
  font-weight: 700;
  font-size: clamp(1.3rem, 1.9vw, 1.65rem);
  letter-spacing: -0.015em;
}

.intro-badges {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 1.4rem;
}

.intro-badge {
  display: inline-flex;
  align-items: center;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: clamp(0.9rem, 1.35vw, 1.1rem);
  letter-spacing: -0.01em;
  color: var(--ink);
  padding: 0.5em 1.05em;
  border-radius: 14px;
  white-space: nowrap;
}

.intro-badge--blue {
  background: #cccaff;
  position: relative;
  z-index: 2;
}

.intro-badge--orange {
  background: var(--accent-orange);
  position: relative;
  z-index: 1;
  margin-top: -4px;
  margin-left: 32px;
}

.about-intro-text--right p:last-of-type {
  margin-bottom: 1.4rem;
}

.about-intro-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-orange);
  text-decoration: none;
  font-weight: 500;
  font-size: 1.08rem;
  padding-bottom: 4px;
  border-bottom: 2px solid var(--accent-orange);
  transition: opacity .25s ease;
}

.about-intro-link:hover {
  opacity: 0.75;
}

.about-intro-link i {
  color: var(--accent-orange);
}

.about-intro-link i {
  width: 16px;
  height: 16px;
}

/* ---------- 3 spécialités ---------- */
.specialties {
  padding: 20vh 6vw 14vh 6vw;
}

.specialties-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 4vw;
  align-items: center;
}

.specialties-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: clamp(2rem, 3.4vw, 3rem);
  letter-spacing: -0.02em;
  margin: 0 0 1.4rem 0;
  color: var(--ink);
}

.specialties-text {
  font-size: 1.18rem;
  font-weight: 500;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 38ch;
  margin: 0 0 2rem 0;
}

.specialties-cta {
  display: inline-flex;
  align-items: center;
  height: 52px;
  padding: 0 24px;
  border-radius: 18px;
  background: rgba(10, 10, 10, 0.9);
  color: var(--bg);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: background .25s ease, color .25s ease;
}

.specialties-cta:hover {
  background: #cccaff;
  color: var(--ink);
}

.specialties-cards {
  display: flex;
  flex-direction: column;
}

.specialty-card {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: stretch;
  border-radius: var(--radius);
  overflow: hidden;
  height: 190px;
  transform-origin: left center;
  transform: rotate(0deg);
  transition: transform .45s cubic-bezier(.2,.8,.2,1), box-shadow .45s ease;
}

.specialty-card + .specialty-card {
  margin-top: -36px;
}

.specialties-cards:hover .specialty-card {
  box-shadow: 0 20px 40px rgba(10, 10, 10, 0.2);
}

.specialties-cards:hover .specialty-card--orange {
  transform: rotate(-6deg);
}

.specialties-cards:hover .specialty-card--blue {
  transform: rotate(6deg);
}

.specialty-card figure {
  flex: 0 0 34%;
  margin: 0;
  padding: 14px;
}

.specialty-card figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 14px;
}

.specialty-card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  padding: 1.4rem 1.8rem;
}

.specialty-card-label {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 600;
  font-size: clamp(1.4rem, 2.3vw, 2.05rem);
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: #ffffff;
}

.specialty-card--orange {
  background: #f5a074;
}

.specialty-card--dark {
  background: #24242b;
}

.specialty-card--dark .specialty-card-label {
  color: #f2f1ed;
}

.specialty-card--blue {
  background: #a7a5fd;
}

.specialty-card--blue .specialty-card-label,
.specialty-card--orange .specialty-card-label {
  color: var(--ink);
}

.specialty-card--blue .specialty-badge,
.specialty-card--orange .specialty-badge {
  background: rgba(255, 255, 255, 0.85);
  color: var(--ink);
}

.specialty-card-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.specialty-badge {
  padding: 8px 16px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
}

@media (max-width: 900px) {
  .specialties { padding: 8vh 5vw 10vh 5vw; }
  .specialties-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .specialty-card { height: 150px; transform: none !important; }
  .specialty-card + .specialty-card { margin-top: -24px; }
  .specialty-card-label { font-size: clamp(1.3rem, 5vw, 1.8rem); }
  .specialty-card-content { padding: 1rem 1.2rem; }
}

/* ---------- Compétences (sticky scroll) ---------- */
.competences {
  background: var(--ink);
  color: var(--bg);
  margin: 16vh 0 0 0;
  border-radius: 32px;
  padding: 28vh 6vw 32vh 6vw;
}

.competences-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4vw;
  align-items: start;
}

.competences-info {
  position: sticky;
  top: 30vh;
  align-self: start;
  margin-top: 24px;
}

.competences-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: clamp(2rem, 3.4vw, 3rem);
  letter-spacing: -0.02em;
  margin: 0 0 1.4rem 0;
  color: var(--bg);
}

.competences-text {
  font-size: 1.15rem;
  line-height: 1.6;
  color: rgba(254, 248, 244, 0.75);
  max-width: 38ch;
  margin: 0 0 2rem 0;
}

.competences-text + .competences-text {
  margin-top: -1.6rem;
}

.competences-cta {
  display: inline-flex;
  align-items: center;
  height: 52px;
  padding: 0 24px;
  border-radius: 18px;
  background: var(--bg);
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: background .25s ease, color .25s ease;
}

.competences-cta:hover {
  background: #f5a074;
  color: var(--ink);
}

.competences-cards {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.competence-card-stage {
  display: flex;
  align-items: center;
}

.competence-card {
  width: 100%;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--bg);
  padding: 2.4rem 2.6rem;
  transition: background .4s ease, color .4s ease, border-color .4s ease;
}

.competence-card.is-active {
  background: rgba(204, 202, 255, 0.85);
  border-color: rgba(10, 10, 10, 0.08);
  color: var(--ink);
}

.competence-card-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: clamp(1.6rem, 2.4vw, 2.1rem);
  letter-spacing: -0.02em;
  margin: 0 0 1.4rem 0;
}

.competence-card-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.competence-card-badges span {
  padding: 8px 16px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.1);
  color: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
}

.competence-card.is-active .competence-card-badges span {
  background: rgba(10, 10, 10, 0.08);
}

@media (max-width: 900px) {
  .competences { padding: 8vh 5vw 4vh 5vw; }
  .competences-grid { grid-template-columns: 1fr; gap: 2rem; }
  .competences-info { position: static; }
  .competence-card-stage { padding: 0; }
  .competence-card { padding: 1.6rem 1.8rem; }
}

/* ---------- Projets à la une ---------- */
.featured-projects {
  padding: 28vh 6vw 10vh 6vw;
}

.featured-projects-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.8rem;
  margin-bottom: 14vh;
}

.featured-projects-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: clamp(2.2rem, 4.4vw, 3.6rem);
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--ink);
}

.featured-projects-btn {
  display: inline-flex;
  align-items: center;
  height: 52px;
  padding: 0 26px;
  border-radius: 18px;
  background: rgba(10, 10, 10, 0.9);
  color: var(--bg);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: background .25s ease, color .25s ease;
}

.featured-projects-btn:hover {
  background: #cccaff;
  color: var(--ink);
}

.featured-projects-list {
  display: flex;
  flex-direction: column;
  gap: 6vh;
}

.featured-project {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem;
}

.featured-project--reverse .featured-project-text {
  order: 2;
}

.featured-project--reverse .featured-project-media {
  order: 1;
}

.featured-project-text {
  aspect-ratio: 1 / 1;
  border-radius: var(--radius);
  padding: 2.6rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.featured-project-cta {
  align-self: flex-end;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #ffffff;
  color: var(--ink);
}

.featured-project-cta i {
  width: 20px;
  height: 20px;
}

.featured-project--orange .featured-project-cta {
  background: var(--accent-orange);
  color: #ffffff;
}

.featured-project--blue .featured-project-cta {
  background: #6a69fa;
  color: #ffffff;
}

.featured-project--orange .featured-project-text {
  background: #f5a074;
}

.featured-project--dark .featured-project-text {
  background: #24242b;
}

.featured-project--blue .featured-project-text {
  background: #a7a5fd;
}

.featured-project-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 1.6rem;
}

.featured-badge {
  padding: 8px 16px;
  border-radius: 100px;
  border: none;
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
}

.featured-project--orange .featured-badge,
.featured-project--blue .featured-badge {
  background: rgba(10, 10, 10, 0.08);
  color: var(--ink);
}

.featured-badge--fill {
  background: #ffffff;
  color: var(--ink);
}

.featured-project--dark .featured-badge--fill {
  background: #ffffff;
  color: var(--ink);
}

.featured-project--orange .featured-badge--fill {
  background: var(--accent-orange);
  color: #ffffff;
}

.featured-project--blue .featured-badge--fill {
  background: #6a69fa;
  color: #ffffff;
}

.featured-project-name {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0 0 1.2rem 0;
  color: #ffffff;
}

.featured-project-desc {
  font-size: 1.15rem;
  font-weight: 500;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
  max-width: 34ch;
  margin: 0;
}

.featured-project--orange .featured-project-name,
.featured-project--blue .featured-project-name {
  color: var(--ink);
}

.featured-project--orange .featured-project-desc,
.featured-project--blue .featured-project-desc {
  color: rgba(10, 10, 10, 0.65);
}

.featured-project-media {
  aspect-ratio: 1 / 1;
  border-radius: var(--radius);
  background: var(--accent-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-soft);
  font-size: 0.85rem;
}

.featured-projects-btn--bottom {
  display: flex;
  width: fit-content;
  margin: 6vh auto 0 auto;
}

@media (max-width: 900px) {
  .featured-projects { padding: 8vh 5vw 6vh 5vw; }
  .featured-projects-head { margin-bottom: 6vh; }
  .featured-project {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .featured-project-text { padding: 1.8rem; }
  .featured-project--reverse .featured-project-text,
  .featured-project--reverse .featured-project-media {
    order: 0;
  }
  .featured-projects-list { gap: 5vh; }
}

/* ---------- Scroll fill text ---------- */
.scroll-text {
  padding: 20vh 6vw;
  text-align: center;
}

.scroll-text h2 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 600;
  font-size: clamp(2rem, 5.4vw, 4.2rem);
  line-height: 1.15;
  margin: 0;
  background-image: linear-gradient(90deg, var(--ink) 0%, var(--ink) var(--fill, 0%), rgba(10,10,10,0.16) var(--fill, 0%), rgba(10,10,10,0.16) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.scroll-text h2 .accent {
  background-image: none;
  -webkit-background-clip: initial;
  background-clip: initial;
  color: var(--accent);
}

/* ---------- Companies banner ---------- */
.companies {
  padding: 4vh 6vw 8vh 6vw;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.companies-note {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  white-space: nowrap;
}

.companies-note .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #17c964;
  box-shadow: 0 0 0 4px rgba(23, 201, 100, 0.18);
}

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

.companies-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.logo-chip {
  padding: 10px 20px;
  border: 1px dashed var(--line);
  border-radius: 100px;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* ---------- Footer ---------- */
.site-footer {
  background: #24242b;
  border-radius: 32px 32px 0 0;
  margin: 6vh 0 0 0;
  padding: 14px;
}

.footer-contact {
  position: relative;
  background: #cccaff;
  border-radius: 24px;
  padding: 3rem;
  display: flex;
  align-items: center;
  gap: 3rem;
  margin-bottom: 14px;
  overflow: visible;
}

.footer-contact-text {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-contact-eyebrow {
  font-weight: 700;
  font-size: clamp(1.5rem, 2.3vw, 1.9rem);
  letter-spacing: -0.01em;
  color: var(--ink);
}

.footer-contact-body {
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.6;
  color: rgba(10, 10, 10, 0.7);
  max-width: 46ch;
  margin: 0;
}

.footer-contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 0.5rem;
}

.footer-btn {
  display: inline-flex;
  align-items: center;
  height: 52px;
  padding: 0 24px;
  border-radius: 18px;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: background .25s ease, color .25s ease, transform .25s ease;
}

.footer-btn--light {
  background: var(--bg);
  color: var(--ink);
}

.footer-btn--light:hover {
  background: var(--accent-orange);
  color: #ffffff;
}

.footer-btn--dark {
  background: rgba(10, 10, 10, 0.9);
  color: var(--bg);
}

.footer-btn--dark:hover {
  background: var(--accent-orange);
}

.footer-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
  padding: 7rem 1rem 4.5rem 1rem;
}

.footer-identity {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.footer-name {
  font-weight: 800;
  font-size: clamp(1.7rem, 2.8vw, 2.3rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--bg);
}

.footer-role {
  font-size: 1.05rem;
  color: rgba(254, 248, 244, 0.85);
  margin-top: 0.4rem;
}

.footer-email {
  font-size: 1.05rem;
  color: rgba(254, 248, 244, 0.85);
  text-decoration: none;
  transition: color .2s ease;
}

.footer-email:hover {
  color: var(--bg);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
  align-items: flex-start;
}

.footer-links a {
  color: rgba(254, 248, 244, 0.85);
  text-decoration: none;
  font-size: 1.2rem;
  transition: color .2s ease;
}

.footer-links a:hover {
  color: var(--accent-orange);
  text-decoration: underline;
}

.footer-cv-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--bg);
  padding: 0 22px;
  height: 52px;
  border-radius: 18px;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  transition: background .25s ease, color .25s ease;
}

.footer-cv-btn:hover {
  background: #cccaff;
  color: var(--ink);
}

.footer-cv-btn i {
  width: 16px;
  height: 16px;
}

@media (max-width: 900px) {
  .site-footer { margin: 4vh 0 0 0; padding: 10px; border-radius: 28px 28px 0 0; }
  .footer-contact { flex-direction: column; align-items: flex-start; padding: 1.8rem; gap: 1.6rem; }
  .footer-bottom { flex-direction: column; align-items: flex-start; padding: 3rem 0 1.5rem 0; }
  .footer-cv-btn { width: 100%; justify-content: center; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .pillars-grid, .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  :root {
    --nav-margin-side: 18px;
  }

  .site-nav .brand {
    background: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: none;
    box-shadow: none;
    color: var(--ink);
    height: 52px;
    padding: 0 8px;
    white-space: nowrap;
    flex-shrink: 0;
  }
  .nav-menu { width: 196px; }
  .nav-menu-toggle { height: 52px; padding: 0 8px 0 18px; }
  .btn-contact { display: none; }

  .hero {
    min-height: auto;
    height: 68vh;
    max-height: 68vh;
    margin-top: calc(var(--nav-margin-top) + 52px + 20px);
    padding-top: 4vh;
    padding-bottom: 3vh;
    overflow: visible;
  }

  .hero-bg {
    position: absolute;
    top: calc(-1 * (var(--nav-margin-top) + 52px + 20px));
    left: 0;
    right: 0;
    width: 100%;
    height: 92vh;
    height: 92dvh;
    border-radius: 32px;
  }

  .hero-down-arrow {
    display: block;
    position: absolute;
    left: 6%;
    bottom: -1.4rem;
    padding: 0;
  }

  .hero-down-arrow img {
    width: 64px;
  }

  .hero-arrow,
  .hero-media {
    display: none;
  }

  .hero-title-wrap {
    position: relative;
    margin-top: 0;
    text-align: left;
    padding-bottom: 8rem;
  }

  .hero-sticker {
    position: absolute;
    top: auto;
    right: 4vw;
    bottom: 1rem;
    margin: 0;
    width: clamp(4.6rem, 24vw, 7rem);
    height: clamp(4.6rem, 24vw, 7rem);
  }

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

  .hero-line:nth-child(odd),
  .hero-line:nth-child(even) {
    transform: none;
  }

  .pillars { padding-top: 18vh; padding-left: 5vw; padding-right: 5vw; }
  .pillars-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
  }
  .pillar {
    position: sticky;
    top: 90px;
    margin-bottom: 24px;
  }
  .projects-grid {
    grid-template-columns: 1fr;
  }
  .companies { padding-left: 5vw; padding-right: 5vw; flex-direction: column; align-items: flex-start; }
  .scroll-text { padding: 12vh 5vw; }

  .about-intro { padding: 2vh 5vw 8vh 5vw; }
  .about-intro-grid {
    grid-template-columns: 1fr;
    align-items: stretch;
    gap: 2rem;
  }
  .about-intro-photo { order: -1; max-width: 100%; }
}

/* ---------- Scrollbar : visible seulement pendant le scroll ---------- */
html::-webkit-scrollbar {
  width: 8px;
}

html::-webkit-scrollbar-track {
  background: transparent;
}

html::-webkit-scrollbar-thumb {
  background: transparent;
  border-radius: 10px;
  transition: background .5s ease;
}

html.is-scrolling::-webkit-scrollbar-thumb {
  background: rgba(7, 7, 245, 0.45);
}

html {
  scrollbar-width: none;
}

html.is-scrolling {
  scrollbar-width: thin;
  scrollbar-color: rgba(7, 7, 245, 0.45) transparent;
}
