/*
 * Ajustements d’identité et d’interaction — version 1.3.
 */

/* Les trois points n’étaient pas interactifs et pouvaient évoquer un carrousel. */
.hero::after {
  display: none !important;
  content: none !important;
}

/* Le slogan synthétise le positionnement dès le premier écran. */
.hero-slogan {
  margin: 25px 0 0;
  color: var(--brand);
  font-size: clamp(20px, 1.65vw, 27px);
  font-weight: 760;
  line-height: 1.25;
  letter-spacing: -0.025em;
}

.hero-slogan:empty {
  display: none;
}

.hero-slogan + .hero-intro {
  margin-top: 17px;
}

/* Le libellé devient un repère immédiatement lisible. */
.method-panel .panel-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 31px;
  margin-bottom: 8px;
  padding: 6px 12px;
  color: #fff;
  background: var(--brand);
  border-radius: 999px;
  font-size: 13px;
  line-height: 1;
  letter-spacing: 0.1em;
  box-shadow: 0 6px 18px rgba(185, 1, 64, 0.2);
}

/* Chaque étape réagit au survol et au focus clavier. */
.method-panel li {
  cursor: default;
  border-radius: 14px;
  outline: none;
  transition:
    background-color 180ms ease,
    transform 180ms ease;
}

.method-panel li:hover,
.method-panel li:focus-visible {
  background: rgba(255, 255, 255, 0.055);
  transform: translateY(-2px);
}

.method-panel li .step-dot {
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.method-panel li.is-active .step-dot,
.method-panel li:hover .step-dot,
.method-panel li:focus-visible .step-dot {
  border-color: #dce66f !important;
  background: #dce66f !important;
  box-shadow:
    0 0 0 4px rgba(220, 230, 111, 0.15),
    0 0 22px rgba(220, 230, 111, 0.62) !important;
  transform: scale(1.08);
  animation: method-dot-pulse 850ms ease-out;
}

.method-panel li.is-active strong,
.method-panel li:hover strong,
.method-panel li:focus-visible strong {
  color: #fff;
}

@keyframes method-dot-pulse {
  0% {
    box-shadow:
      0 0 0 0 rgba(220, 230, 111, 0.6),
      0 0 12px rgba(220, 230, 111, 0.4);
  }
  65% {
    box-shadow:
      0 0 0 8px rgba(220, 230, 111, 0),
      0 0 24px rgba(220, 230, 111, 0.7);
  }
  100% {
    box-shadow:
      0 0 0 4px rgba(220, 230, 111, 0.15),
      0 0 22px rgba(220, 230, 111, 0.62);
  }
}

/* « Impact » devient un vrai repère graphique. */
.career-impact {
  grid-template-columns: max-content minmax(0, 1fr);
  align-items: start;
  gap: 22px;
}

.career-impact strong {
  display: inline-flex;
  align-items: center;
  min-height: 29px;
  padding: 6px 11px;
  color: #fff !important;
  background: var(--brand);
  border-radius: 999px;
  font-size: 12px;
  line-height: 1;
  letter-spacing: 0.09em;
  box-shadow: 0 5px 15px rgba(185, 1, 64, 0.2);
}

/* Numérotation harmonisée : même police, même corps et espace réservé. */
.achievement-number {
  align-self: start;
  padding-top: 0 !important;
  font-family: var(--font-geist-sans), Arial, Helvetica, sans-serif;
  font-size: 40px !important;
  font-weight: 780;
  line-height: 1;
  letter-spacing: -0.045em;
  opacity: 1;
  transition:
    color 220ms ease,
    transform 220ms ease;
}

.achievement-row:first-child .achievement-number {
  color: rgba(255, 255, 255, 0.95);
}

.achievement-row {
  grid-template-columns: 64px minmax(0, 1fr) !important;
  column-gap: 20px !important;
  row-gap: 18px !important;
}

.achievement-row .achievement-detail {
  grid-column: 2;
}

.achievement-row:first-child {
  grid-template-columns:
    64px
    minmax(250px, 0.8fr)
    minmax(0, 1.2fr) !important;
  column-gap: clamp(26px, 3.5vw, 54px) !important;
}

.achievement-row:first-child .achievement-detail {
  grid-column: 3;
}

.achievement-row:hover .achievement-number {
  transform: translateY(-3px);
}

.expertise-item > span {
  position: relative;
  align-self: center;
  padding: 0 0 15px;
  border: 0;
  font-family: var(--font-geist-sans), Arial, Helvetica, sans-serif;
  font-size: 40px;
  font-weight: 780;
  line-height: 1;
  letter-spacing: -0.045em;
  text-align: center;
  transition:
    color 220ms ease,
    transform 220ms ease;
}

.expertise-item > span::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 34px;
  height: 3px;
  background: var(--brand);
  border-radius: 999px;
  transform: translateX(-50%);
  transition: width 220ms ease;
}

.expertise-item h3 {
  margin-top: 30px;
  text-align: center;
}

.expertise-item ul {
  justify-content: center;
  width: 100%;
}

.expertise-item:hover > span {
  transform: translateY(-3px);
}

.expertise-item:hover > span::after {
  width: 52px;
}

/* Les mad skills expriment la singularité du profil, au-delà des outils. */
.mad-skills {
  max-width: 1180px;
  margin: 76px auto 0;
}

.mad-skills-intro {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: clamp(38px, 6vw, 92px);
  align-items: end;
  min-height: 360px;
  padding: clamp(38px, 5vw, 68px);
  color: #fff;
  background:
    radial-gradient(
      circle at 92% 8%,
      rgba(220, 230, 111, 0.2),
      transparent 25%
    ),
    radial-gradient(circle at 4% 96%, rgba(185, 1, 64, 0.32), transparent 30%),
    var(--ink);
  border-radius: 30px 30px 12px 12px;
  overflow: hidden;
  isolation: isolate;
}

.mad-skills-intro::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -105px;
  right: -45px;
  width: 270px;
  height: 270px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 50%;
  box-shadow:
    0 0 0 38px rgba(255, 255, 255, 0.025),
    0 0 0 78px rgba(255, 255, 255, 0.018);
}

.mad-skills-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  margin: 0 0 22px;
  padding: 7px 13px;
  color: #fff;
  background: var(--brand);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.mad-skills-intro h3 {
  max-width: 560px;
  margin: 0;
  font-size: clamp(35px, 3.5vw, 55px);
  font-weight: 690;
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.mad-skills-statement {
  position: relative;
  z-index: 1;
  max-width: 560px;
  margin: 0;
  padding-top: 25px;
  color: #d8dce3;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  font-size: clamp(21px, 1.8vw, 27px);
  line-height: 1.5;
}

.mad-skills-statement strong {
  color: #fff;
  font-weight: 720;
}

.mad-skills-count {
  position: absolute;
  right: clamp(30px, 4vw, 62px);
  bottom: -0.16em;
  color: rgba(255, 255, 255, 0.055);
  font-size: clamp(115px, 15vw, 220px);
  font-weight: 820;
  line-height: 1;
  letter-spacing: -0.09em;
  pointer-events: none;
  user-select: none;
}

.mad-skills-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.mad-skill-card {
  position: relative;
  grid-column: span 2;
  min-height: 385px;
  padding: 32px;
  background: var(--surface);
  border: 1px solid rgba(20, 29, 44, 0.1);
  border-radius: 12px;
  overflow: hidden;
  transition:
    transform 240ms cubic-bezier(0.22, 1, 0.36, 1),
    border-color 240ms ease,
    box-shadow 240ms ease;
}

.mad-skill-card:nth-child(4),
.mad-skill-card:nth-child(5) {
  grid-column: span 3;
  min-height: 345px;
}

.mad-skill-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--brand);
  transform: scaleX(0.14);
  transform-origin: left;
  transition: transform 260ms cubic-bezier(0.22, 1, 0.36, 1);
}

.mad-skill-card::after {
  content: "";
  position: absolute;
  right: -70px;
  bottom: -70px;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(185, 1, 64, 0.07), transparent 68%);
  border-radius: 50%;
  opacity: 0;
  transform: scale(0.7);
  transition:
    opacity 260ms ease,
    transform 360ms cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

.mad-skill-card:hover {
  z-index: 1;
  border-color: rgba(185, 1, 64, 0.26);
  transform: translateY(-6px);
  box-shadow: 0 22px 52px rgba(20, 29, 44, 0.12);
}

.mad-skill-card:hover::before {
  transform: scaleX(1);
}

.mad-skill-card:hover::after {
  opacity: 1;
  transform: scale(1);
}

.mad-skill-topline {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
}

.mad-skill-number {
  color: var(--brand);
  font-size: 40px;
  font-weight: 780;
  line-height: 1;
  letter-spacing: -0.045em;
  transition: transform 220ms ease;
}

.mad-skill-icon {
  width: 44px;
  height: 44px;
  color: var(--blue-grey);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.55;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition:
    color 220ms ease,
    transform 280ms cubic-bezier(0.22, 1, 0.36, 1);
}

.mad-skill-card:hover .mad-skill-number {
  transform: translateY(-3px);
}

.mad-skill-card:hover .mad-skill-icon {
  color: var(--brand);
  transform: rotate(-4deg) scale(1.08);
}

.mad-skill-card h4 {
  max-width: 430px;
  margin: 42px 0 0;
  font-size: clamp(24px, 2vw, 31px);
  font-weight: 690;
  line-height: 1.12;
  letter-spacing: -0.035em;
}

.mad-skill-card > p {
  max-width: 510px;
  margin: 19px 0 0;
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.65;
}

.mad-skill-card ul {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.mad-skill-card li {
  padding: 8px 10px;
  color: var(--ink-soft);
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 720;
  transition:
    color 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease;
}

.mad-skill-card:hover li {
  border-color: rgba(185, 1, 64, 0.18);
}

.mad-skill-card-ai {
  color: #fff;
  background:
    radial-gradient(
      circle at 88% 10%,
      rgba(220, 230, 111, 0.18),
      transparent 28%
    ),
    var(--brand);
  border-color: transparent;
}

.mad-skill-card-ai::before {
  background: #dce66f;
}

.mad-skill-card-ai::after {
  background: radial-gradient(
    circle,
    rgba(220, 230, 111, 0.2),
    transparent 68%
  );
}

.mad-skill-card-ai .mad-skill-number,
.mad-skill-card-ai .mad-skill-icon,
.mad-skill-card-ai h4 {
  color: #fff;
}

.mad-skill-card-ai > p {
  color: rgba(255, 255, 255, 0.82);
}

.mad-skill-card-ai li {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.28);
}

.mad-skill-card-ai:hover {
  border-color: transparent;
  box-shadow: 0 24px 58px rgba(185, 1, 64, 0.26);
}

.mad-skill-card-ai:hover .mad-skill-icon {
  color: #dce66f;
}

/* Entrées progressives et micro-interactions. */
.motion-ready .reveal-item {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 620ms cubic-bezier(0.22, 1, 0.36, 1) var(--reveal-delay, 0ms),
    transform 620ms cubic-bezier(0.22, 1, 0.36, 1) var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

.motion-ready .reveal-item.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.achievement-row,
.expertise-item,
.formation-list article,
.career-card {
  transition:
    transform 220ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 220ms ease,
    border-color 220ms ease,
    background-color 220ms ease;
}

.achievement-row:hover,
.expertise-item:hover,
.formation-list article:hover,
.career-card:hover {
  position: relative;
  z-index: 2;
  border-color: rgba(185, 1, 64, 0.24);
  transform: translateY(-5px);
  box-shadow: 0 18px 46px rgba(20, 29, 44, 0.11);
}

.achievement-row:first-child:hover {
  box-shadow: 0 22px 52px rgba(185, 1, 64, 0.22);
}

.achievement-detail li,
.expertise-item li,
.formation-list article {
  transition:
    color 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease,
    transform 180ms ease;
}

.achievement-row:hover .achievement-detail li,
.expertise-item:hover li {
  border-color: rgba(185, 1, 64, 0.22);
}

.achievement-detail li:hover,
.expertise-item li:hover {
  color: var(--brand);
  background: var(--brand-soft);
  transform: translateY(-2px);
}

.identity-signature > span {
  opacity: 0;
  transform: translateY(8px);
  animation: signature-in 520ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.identity-signature > span:nth-of-type(1) {
  animation-delay: 180ms;
}

.identity-signature > span:nth-of-type(2) {
  animation-delay: 330ms;
}

.identity-signature > span:nth-of-type(3) {
  animation-delay: 480ms;
}

.identity-signature > i {
  transform: scaleX(0);
  transform-origin: left;
  animation: signature-line 440ms ease-out forwards;
}

.identity-signature > i:nth-of-type(1) {
  animation-delay: 280ms;
}

.identity-signature > i:nth-of-type(2) {
  animation-delay: 430ms;
}

.contact-mark {
  transition:
    opacity 700ms ease,
    transform 900ms cubic-bezier(0.22, 1, 0.36, 1);
}

.contact-section .contact-mark {
  opacity: 0.05;
  transform: translate(-52%, -51%) scale(0.94);
}

.contact-section:has(.is-visible) .contact-mark {
  opacity: 0.09;
  transform: translate(-52%, -55%) scale(1);
}

.button {
  position: relative;
  overflow: hidden;
}

.button::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    110deg,
    transparent 20%,
    rgba(255, 255, 255, 0.22) 50%,
    transparent 80%
  );
  transform: translateX(-120%);
  transition: transform 520ms ease;
  pointer-events: none;
}

.button:hover::before {
  transform: translateX(120%);
}

@keyframes signature-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes signature-line {
  to {
    transform: scaleX(1);
  }
}

@media (max-width: 1100px) {
  .mad-skills-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mad-skill-card,
  .mad-skill-card:nth-child(4),
  .mad-skill-card:nth-child(5) {
    grid-column: span 1;
    min-height: 365px;
  }

  .mad-skill-card:nth-child(5) {
    grid-column: 1 / -1;
    min-height: 320px;
  }
}

@media (max-width: 760px) {
  .method-panel li {
    padding-right: 8px;
    padding-left: 8px;
  }

  .achievement-number {
    font-size: 34px !important;
  }

  .expertise-item > span {
    font-size: 34px;
  }

  .achievement-row,
  .achievement-row:first-child {
    grid-template-columns: 52px minmax(0, 1fr) !important;
    column-gap: 15px !important;
  }

  .achievement-row .achievement-detail,
  .achievement-row:first-child .achievement-detail {
    grid-column: 2;
  }

  .career-impact {
    grid-template-columns: 1fr;
    gap: 13px;
  }

  .career-impact strong {
    justify-self: start;
  }

  .hero-slogan {
    font-size: 20px;
  }

  .mad-skills {
    margin-top: 54px;
  }

  .mad-skills-intro {
    grid-template-columns: 1fr;
    gap: 30px;
    min-height: 0;
    padding: 36px 26px 42px;
    border-radius: 24px 24px 10px 10px;
  }

  .mad-skills-count {
    right: 22px;
    bottom: -0.08em;
    font-size: 120px;
  }

  .mad-skills-statement {
    padding-top: 22px;
  }

  .mad-skills-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 12px;
  }

  .mad-skill-card,
  .mad-skill-card:nth-child(4),
  .mad-skill-card:nth-child(5) {
    grid-column: auto;
    min-height: 0;
    padding: 28px 25px;
  }

  .mad-skill-number {
    font-size: 34px;
  }

  .mad-skill-icon {
    width: 40px;
    height: 40px;
  }

  .mad-skill-card h4 {
    margin-top: 32px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .method-panel li,
  .method-panel li .step-dot {
    animation: none !important;
    transition: none !important;
  }

  .motion-ready .reveal-item,
  .identity-signature > span,
  .identity-signature > i,
  .contact-mark,
  .button::before {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
    transition: none !important;
  }

  .mad-skill-card,
  .mad-skill-card::before,
  .mad-skill-card::after,
  .mad-skill-number,
  .mad-skill-icon {
    transform: none !important;
    transition: none !important;
  }
}
