/*
 * Portfolio — design dashboard SaaS (soft UI)
 * Palette : bleu #2d68ff, fond #f8fafc, cartes flottantes
 */

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

:root {
  --page: #f4f7fb;
  --surface: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --border: #e2e8f0;
  --accent: #2d68ff;
  --accent-dark: #1d4edc;
  --accent-soft: #e8f0ff;
  --accent-soft-30: rgba(45, 104, 255, 0.12);
  --shadow: 0 2px 8px rgba(15, 23, 42, 0.06), 0 12px 32px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 10px 40px rgba(15, 23, 42, 0.07), 0 2px 8px rgba(15, 23, 42, 0.04);
  --radius: 18px;
  --radius-sm: 12px;
  --font-sans: "Inter", system-ui, sans-serif;
  --font-display: "Poppins", var(--font-sans);
  --sidebar-w: 280px;
  --mobile-toolbar-h: 56px;
  --dot-bg: rgba(148, 163, 184, 0.25);
  --dots: radial-gradient(var(--dot-bg) 1px, transparent 1px);
  --dots-cell: 22px;
  --dots-on-white: radial-gradient(rgba(148, 163, 184, 0.35) 1px, transparent 1px);
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background-color: var(--page);
  background-image: var(--dots);
  background-size: var(--dots-cell) var(--dots-cell);
  -webkit-font-smoothing: antialiased;
}

.skip-link {
  position: absolute;
  left: -9999px;
  z-index: 10000;
  padding: 0.75rem 1rem;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.wrap {
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 1.75rem);
}

.wrap--narrow {
  max-width: 640px;
}

.dashboard-shell {
  min-height: 100vh;
}

.app-shell {
  display: flex;
  min-height: 100vh;
  align-items: stretch;
}

.sidebar {
  position: sticky;
  top: 0;
  z-index: 200;
  display: flex;
  flex-direction: column;
  width: var(--sidebar-w);
  flex-shrink: 0;
  min-height: 100vh;
  min-width: 0;
  max-width: 100%;
  overflow-x: clip;
  padding: 1.35rem 1rem 1rem;
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  border-right: 1px solid var(--border);
  box-shadow: 4px 0 24px rgba(15, 23, 42, 0.04);
}

.sidebar__top {
  margin-bottom: 1.25rem;
}

.sidebar__brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text);
  padding: 0.35rem 0.5rem;
  border-radius: var(--radius-sm);
  transition: background 0.15s ease;
}

.sidebar__brand:hover {
  background: rgba(255, 255, 255, 0.7);
}

.sidebar__brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.sidebar__site {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
}

.sidebar__hint {
  font-size: 0.72rem;
  color: var(--muted);
}

.sidebar__nav {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow: visible;
}

.sidebar__nav-main {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  scrollbar-gutter: stable;
  padding-bottom: 0.35rem;
}

.sidebar__heading {
  display: block;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.6rem 0.5rem;
}

.sidebar__list {
  flex-direction: column;
  align-items: stretch;
  gap: 0.2rem;
}

.sidebar__link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 0.75rem;
  border-radius: 12px;
  color: #475569 !important;
  font-size: 0.9rem !important;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.sidebar__link:hover,
.sidebar__link:focus-visible {
  background: #fff;
  color: var(--accent) !important;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.06);
}

.sidebar__ico {
  font-size: 22px;
  opacity: 0.9;
}

.sidebar__cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  width: 100%;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent) 0%, #4f83ff 100%);
  color: #fff !important;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(45, 104, 255, 0.35);
  transition: transform 0.1s ease, box-shadow 0.15s ease;
}

.sidebar__cta-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 28px rgba(45, 104, 255, 0.4);
}

.sidebar__cta-btn .material-symbols-outlined {
  font-size: 22px;
}

.sidebar__aside {
  flex-shrink: 0;
  padding-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-width: 0;
  max-width: 100%;
  overflow-x: clip;
}

.sidebar__lang {
  flex-shrink: 0;
  position: relative;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  z-index: 5;
}

.sidebar .lang-switch.lang-switch--sidebar {
  min-width: 0;
}

.sidebar .lang-switch.lang-switch--sidebar .gtranslate_wrapper,
.sidebar .lang-switch.lang-switch--sidebar #gt_float_wrapper,
.sidebar .lang-switch.lang-switch--sidebar .gt_float_switcher {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.sidebar .lang-switch .gt_float_switcher .gt_options.gt-open {
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
}

.sidebar .lang-switch .gt_float_switcher .gt_options.gt-open a {
  max-width: 100%;
  box-sizing: border-box;
}

.sidebar__social {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.sidebar__social-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.75rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--border);
  color: var(--text);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  transition: border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.sidebar__social-link:hover,
.sidebar__social-link:focus-visible {
  border-color: rgba(45, 104, 255, 0.45);
  color: var(--accent-dark);
  box-shadow: var(--shadow);
}

.sidebar__social-logo {
  display: block;
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.sidebar__progress {
  padding: 0.85rem 0.95rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.sidebar__progress-label {
  margin: 0 0 0.4rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.sidebar__meter {
  height: 6px;
  border-radius: 999px;
  background: rgba(45, 104, 255, 0.12);
  overflow: hidden;
  margin-bottom: 0.4rem;
}

.sidebar__meter span {
  display: block;
  width: 86%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), #60a5fa);
}

.sidebar__aside small {
  font-size: 0.73rem;
  color: var(--muted);
  line-height: 1.35;
}

@media (max-width: 1023px) {
  .sidebar__aside {
    margin-top: auto;
    padding-top: 0.85rem;
    border-top: 1px solid rgba(148, 163, 184, 0.35);
  }
}

@media (min-width: 1024px) {
  .sidebar {
    max-height: 100vh;
    overflow-y: auto;
    justify-content: flex-start;
  }

  .sidebar__nav {
    flex: 0 0 auto;
    overflow: visible;
  }

  .sidebar__nav-main {
    flex: 0 0 auto;
    overflow-y: visible;
    padding-bottom: 0;
  }

  .sidebar__aside {
    margin-top: 0;
    padding-top: 0.65rem;
    border-top: 1px solid rgba(148, 163, 184, 0.38);
  }
}

.main-column {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--page);
  background-image: var(--dots);
  background-size: var(--dots-cell) var(--dots-cell);
}

.mobile-toolbar {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.75rem;
  height: var(--mobile-toolbar-h);
  min-height: var(--mobile-toolbar-h);
  max-height: var(--mobile-toolbar-h);
  box-sizing: border-box;
  position: sticky;
  top: 0;
  z-index: 150;
  padding-inline: clamp(1rem, 4vw, 2.25rem);
  padding-block: 0;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05);
  overflow: visible;
}

.mobile-toolbar[data-scrolled="true"] {
  background: rgba(255, 255, 255, 0.98);
}

.mobile-toolbar__start {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  max-width: min(48%, 300px);
}

.mobile-toolbar__mini {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mobile-toolbar__spacer {
  flex: 1 1 auto;
  min-width: 0;
}

.lang-switch {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  align-self: center;
  max-width: 42%;
}

.lang-switch .gtranslate_wrapper {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  flex-shrink: 0;
  margin: 0;
  padding: 0;
  line-height: 0;
}

/* #gt_float_wrapper est injecté par GTranslate — ne doit pas changer la hauteur du header */
.lang-switch #gt_float_wrapper {
  margin-inline-start: 0;
  line-height: 0;
  flex-shrink: 0;
}

.lang-switch #gt_float_wrapper .gt_float_switcher {
  margin: 0 !important;
  vertical-align: middle !important;
  position: relative;
}

/* Ouverture : menu sous le bouton (ne pousse pas le layout) */
.lang-switch .gt_float_switcher .gt_options.gt-open {
  position: absolute !important;
  right: 0 !important;
  left: auto !important;
  top: calc(100% + 6px) !important;
  min-width: 220px !important;
  max-width: min(92vw, 280px);
  transform: none !important;
  opacity: 1 !important;
  z-index: 600 !important;
  max-height: min(280px, 72vh) !important;
  overflow-y: auto !important;
  white-space: normal !important;
  background: #fff !important;
  border: 1px solid var(--border) !important;
  border-radius: 12px !important;
  box-shadow: var(--shadow-lg) !important;
}

.lang-switch .gt_float_switcher .gt-selected {
  text-transform: none !important;
}

.lang-switch--sidebar {
  justify-content: flex-start;
  align-items: flex-start;
  max-width: 100%;
  width: 100%;
}

.lang-switch--sidebar .gtranslate_wrapper {
  justify-content: flex-start;
}

@media (min-width: 1024px) {
  .mobile-toolbar {
    display: none;
  }
}

@media (max-width: 1023px) {
  .mobile-toolbar__start {
    max-width: none;
    flex: 1 1 auto;
    min-width: 0;
  }
}

.sidebar-backdrop {
  display: none;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 0.55rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  box-shadow: var(--shadow);
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav__list {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
}

.sidebar .nav__list {
  flex-direction: column;
  align-items: stretch;
}

.app-main {
  flex: 1;
}

/* Hero — ambiance « futuriste » (profondeur, flou, couches) sans dupliquer la palette hors thème */
.hero {
  position: relative;
  padding-top: clamp(1.75rem, 4vw, 2.75rem);
  padding-bottom: clamp(3.25rem, 12vw, 4.75rem);
  overflow: visible;
}

.hero__bg--soft {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(
      155deg,
      rgba(248, 250, 252, 0.98) 0%,
      rgba(241, 245, 249, 0.88) 38%,
      rgba(238, 242, 248, 0.75) 100%
    ),
    radial-gradient(ellipse 120% 80% at 100% -20%, rgba(45, 104, 255, 0.11), transparent 52%),
    radial-gradient(ellipse 90% 70% at 0% 110%, rgba(15, 23, 42, 0.06), transparent 55%),
    var(--dots);
  background-size: auto, auto, auto, var(--dots-cell) var(--dots-cell);
}

.hero__bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(64px);
  opacity: 0.55;
  mix-blend-mode: multiply;
}

.hero__bg-orb--a {
  width: min(480px, 70vw);
  height: min(380px, 55vw);
  top: -12%;
  right: -8%;
  background: radial-gradient(circle at 40% 40%, rgba(45, 104, 255, 0.35), rgba(232, 240, 255, 0.15) 55%, transparent 72%);
}

.hero__bg-orb--b {
  width: min(420px, 65vw);
  height: min(340px, 50vw);
  bottom: -15%;
  left: -12%;
  background: radial-gradient(circle at 60% 60%, rgba(100, 116, 139, 0.22), rgba(241, 245, 249, 0.2) 58%, transparent 75%);
}

.hero__bg-grid {
  position: absolute;
  inset: 0;
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(15, 23, 42, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 85% 75% at 50% 45%, #000 20%, transparent 72%);
}

@media (prefers-reduced-motion: reduce) {
  .hero__bg-orb {
    filter: blur(48px);
  }

  .hero__deck-layer {
    opacity: 0.35 !important;
    transform: rotate(-5deg) translate(-10px, 8px) !important;
  }

  .hero__deck-layer:nth-child(2),
  .hero__deck-layer:nth-child(3) {
    display: none;
  }
}

.hero .wrap {
  position: relative;
  z-index: 1;
}

.hero__grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 920px) {
  .hero__grid {
    grid-template-columns: 1.05fr 0.92fr;
  }
}

.hero__main-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 2.85rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.12;
  color: var(--text);
}

.hero__tagline {
  margin: 0.65rem 0 0;
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.55;
}

.hero__founder {
  margin: 0.45rem 0 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
}

.hero__founder strong {
  color: var(--accent-dark);
  font-weight: 700;
}

.hero__founder-link {
  color: inherit;
  text-decoration: none;
  text-underline-offset: 0.12em;
  transition: color 0.15s ease, text-decoration-color 0.15s ease;
}

.hero__founder-link:hover {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: rgba(45, 104, 255, 0.45);
}

.hero__founder-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}

.hero__lead {
  margin: 1rem 0 0;
  max-width: 36rem;
  color: var(--text);
}

.hero__lead-head {
  display: block;
  margin-bottom: 0.55rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: -0.02em;
  color: var(--accent-dark);
}

.hero__cta-row {
  gap: 0.65rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.72rem 1.35rem;
  border-radius: 999px;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.93rem;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.05s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn--primary {
  background: var(--accent);
  color: #fff;
  border-color: transparent;
}

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

.btn__arrow {
  font-weight: 400;
}

.btn--outline {
  background: #fff;
  color: var(--accent-dark);
  border-color: rgba(45, 104, 255, 0.45);
}

.btn--outline:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.btn--ghost-dark {
  background: transparent;
  color: var(--muted);
  border-color: var(--border);
}

.btn--ghost-dark:hover {
  border-color: var(--accent);
  color: var(--accent-dark);
}

.samap-mini-stats {
  margin: 2rem 0 0;
}

.hero__visual {
  justify-self: center;
}

.hero__visual--deck {
  position: relative;
  width: 100%;
  max-width: min(720px, 100%);
  padding-block: clamp(1.5rem, 4vw, 2rem);
  overflow: visible;
}

.hero__deck {
  position: absolute;
  inset: 8% 6% 6% 6%;
  z-index: 0;
  pointer-events: none;
}

.hero__deck-layer {
  position: absolute;
  inset: 0;
  border-radius: 28px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.92) 0%, rgba(238, 244, 255, 0.55) 100%);
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.08);
}

.hero__deck-layer:nth-child(1) {
  transform: rotate(-9deg) translate(-18px, 14px) scale(0.96);
  opacity: 0.45;
}

.hero__deck-layer:nth-child(2) {
  transform: rotate(-4deg) translate(-8px, 6px) scale(0.98);
  opacity: 0.65;
}

.hero__deck-layer:nth-child(3) {
  transform: rotate(2deg) translate(6px, -4px) scale(0.99);
  opacity: 0.78;
}

.hero__frame {
  position: relative;
  z-index: 1;
  padding: 6px;
  border-radius: 26px;
  background: linear-gradient(135deg, #fff 0%, #eef4ff 100%);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(226, 232, 240, 0.8);
}

.hero__frame--glass {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.95) 0%,
    rgba(241, 245, 249, 0.55) 45%,
    rgba(232, 240, 255, 0.75) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow:
    0 0 0 1px rgba(45, 104, 255, 0.08),
    0 24px 48px rgba(15, 23, 42, 0.1),
    0 4px 16px rgba(15, 23, 42, 0.04);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.hero__frame-ring {
  display: none;
}

.hero__sheets {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: min(720px, 100%);
  margin-inline: auto;
  display: block;
  overflow: visible;
  min-height: clamp(400px, 118vw, 500px);
}

.hero__sheet {
  position: absolute;
  z-index: 1;
  left: auto;
  right: auto;
  top: auto;
  bottom: auto;
  width: auto;
  border-radius: 18px;
  background: linear-gradient(
    162deg,
    rgba(255, 255, 255, 0.96) 0%,
    rgba(241, 247, 255, 0.84) 45%,
    rgba(238, 244, 255, 0.72) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow:
    0 0 0 1px rgba(45, 104, 255, 0.07),
    0 20px 50px rgba(15, 23, 42, 0.12),
    0 2px 10px rgba(15, 23, 42, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  overflow: hidden;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  opacity: 0;
  transform-origin: 50% 60%;
  transition:
    transform 0.4s cubic-bezier(0.2, 0.82, 0.24, 1),
    box-shadow 0.35s ease;
  animation: hero-sheet-pop 0.82s cubic-bezier(0.2, 0.82, 0.24, 1) forwards;
}

.hero__sheet-motion {
  display: flex;
  flex-direction: column;
  will-change: transform;
}

.hero__sheet:nth-child(1) {
  animation-delay: 0.04s;
}

.hero__sheet:nth-child(2) {
  animation-delay: 0.16s;
}

.hero__sheet:nth-child(3) {
  animation-delay: 0.28s;
}

.hero__sheet:nth-child(4) {
  animation-delay: 0.4s;
}

.hero__sheet:nth-child(5) {
  animation-delay: 0.52s;
}

.hero__sheet--main {
  left: clamp(10px, 3.2vw, 40px);
  right: clamp(88px, 24vw, 168px);
  top: clamp(40px, 12vw, 96px);
  z-index: 6;
  transform: rotate(-0.8deg) scale(1.02);
  border-color: rgba(255, 255, 255, 0.92);
  box-shadow:
    0 0 0 1px rgba(45, 104, 255, 0.14),
    0 28px 64px rgba(45, 104, 255, 0.18),
    0 8px 24px rgba(15, 23, 42, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.98);
}

.hero__sheet--main .hero__sheet-motion {
  animation: hero-sheet-drift-a 11s ease-in-out 0.85s infinite;
}

.hero__sheet--ms {
  width: clamp(200px, 52vw, 300px);
  left: clamp(2px, 1vw, 16px);
  top: clamp(2px, 1vw, 14px);
  z-index: 5;
  transform: rotate(-5.5deg) scale(1.03);
  border-color: rgba(255, 255, 255, 0.88);
  box-shadow:
    0 0 0 1px rgba(45, 104, 255, 0.12),
    0 24px 56px rgba(45, 104, 255, 0.16),
    0 6px 20px rgba(15, 23, 42, 0.09),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
  filter: saturate(1.05);
}

.hero__sheet--ms .hero__sheet-motion {
  animation: hero-sheet-drift-b 9.2s ease-in-out 0.95s infinite;
}

.hero__sheet--plat {
  left: clamp(56px, 18vw, 196px);
  right: clamp(4px, 1.5vw, 22px);
  bottom: clamp(8px, 2.5vw, 28px);
  top: auto;
  z-index: 4;
  max-width: min(412px, 94%);
  transform: rotate(3.25deg) scale(1.02);
  border-color: rgba(255, 255, 255, 0.9);
  box-shadow:
    0 0 0 1px rgba(45, 104, 255, 0.12),
    0 30px 62px rgba(15, 23, 42, 0.16),
    0 6px 18px rgba(15, 23, 42, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.94);
}

.hero__sheet--plat .hero__sheet-motion {
  animation: hero-sheet-drift-c 10.4s ease-in-out 1.05s infinite;
}

.hero__sheet--phy {
  width: clamp(200px, 54vw, 292px);
  left: clamp(2px, 1.5vw, 18px);
  right: auto;
  bottom: clamp(4px, 1.8vw, 20px);
  top: auto;
  z-index: 3;
  transform: rotate(-2.4deg) scale(0.99);
  border-color: rgba(255, 255, 255, 0.9);
  box-shadow:
    0 0 0 1px rgba(45, 104, 255, 0.11),
    0 22px 52px rgba(15, 23, 42, 0.13),
    0 5px 16px rgba(15, 23, 42, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.93);
}

.hero__sheet--phy .hero__sheet-motion {
  animation: hero-sheet-drift-c 10.4s ease-in-out 1.12s infinite;
}

.hero__sheet--itsm {
  width: clamp(188px, 56vw, 328px);
  right: clamp(0px, 1vw, 18px);
  top: clamp(0px, 1vw, 12px);
  left: auto;
  bottom: auto;
  z-index: 1;
  transform: rotate(4deg) scale(0.96);
  border-color: rgba(226, 232, 240, 0.95);
  box-shadow:
    0 0 0 1px rgba(148, 163, 184, 0.35),
    0 14px 36px rgba(15, 23, 42, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.55);
  filter: saturate(0.88) brightness(0.97);
}

.hero__sheet--itsm .hero__sheet-motion {
  animation: hero-sheet-drift-d 9.8s ease-in-out 1.08s infinite;
}

@media (hover: hover) {
  .hero__sheet:hover {
    z-index: 8;
    box-shadow:
      0 0 0 1px rgba(45, 104, 255, 0.2),
      0 40px 72px rgba(45, 104, 255, 0.16),
      0 8px 20px rgba(15, 23, 42, 0.1),
      inset 0 1px 0 rgba(255, 255, 255, 0.98);
  }

  .hero__sheet--main:hover {
    transform: rotate(-0.8deg) translate3d(-3px, -12px, 0) scale(1.012);
  }

  .hero__sheet--ms:hover {
    transform: rotate(-5.5deg) translate3d(-4px, -11px, 0) scale(1.03);
  }

  .hero__sheet--plat:hover {
    transform: rotate(3.25deg) translate3d(-6px, -14px, 0) scale(1.02);
  }

  .hero__sheet--phy:hover {
    transform: rotate(-2.4deg) translate3d(-5px, -12px, 0) scale(1.01);
  }

  .hero__sheet--itsm:hover {
    transform: rotate(4deg) translate3d(5px, -12px, 0) scale(1);
    filter: saturate(1.02) brightness(1);
    box-shadow:
      0 0 0 1px rgba(45, 104, 255, 0.12),
      0 26px 56px rgba(15, 23, 42, 0.12),
      0 6px 18px rgba(15, 23, 42, 0.08),
      inset 0 1px 0 rgba(255, 255, 255, 0.88);
  }

  .hero__sheet:hover .hero__sheet-motion {
    animation-play-state: paused;
  }
}

.hero__sheet-chrome {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 0.65rem;
  padding: 0.6rem 0.72rem 0.45rem;
  border-bottom: 1px solid rgba(226, 232, 240, 0.85);
  background: rgba(248, 250, 255, 0.65);
}

.hero__sheet:not(.hero__sheet--itsm) .hero__sheet-chrome {
  padding: 0.68rem 0.78rem 0.5rem;
  border-bottom: 1px solid rgba(45, 104, 255, 0.14);
  background: linear-gradient(
    165deg,
    rgba(255, 255, 255, 0.92) 0%,
    rgba(238, 244, 255, 0.75) 55%,
    rgba(232, 240, 255, 0.55) 100%
  );
}

.hero__sheet-dots {
  display: inline-flex;
  gap: 0.35rem;
  align-items: center;
}

.hero__sheet-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.hero__sheet-dot--r {
  background: #ff6058;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.12);
}

.hero__sheet-dot--y {
  background: #ffc031;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.1);
}

.hero__sheet-dot--g {
  background: #2bcd4b;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.1);
}

.hero__sheet-title {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: right;
}

.hero__sheet:not(.hero__sheet--itsm) .hero__sheet-title {
  color: var(--accent-dark);
  font-weight: 800;
  letter-spacing: 0.09em;
}

.hero__sheet-body {
  padding: clamp(0.65rem, 2vw, 0.95rem);
}

.hero__sheet:not(.hero__sheet--itsm) .hero__sheet-body {
  padding-top: clamp(0.78rem, 2.4vw, 1.05rem);
}

@keyframes hero-sheet-pop {
  from {
    opacity: 0;
    filter: blur(12px);
  }

  to {
    opacity: 1;
    filter: none;
  }
}

@keyframes hero-sheet-drift-a {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }

  50% {
    transform: translate3d(2px, -9px, 0);
  }
}

@keyframes hero-sheet-drift-b {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }

  50% {
    transform: translate3d(4px, -11px, 0);
  }
}

@keyframes hero-sheet-drift-c {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }

  50% {
    transform: translate3d(-5px, -10px, 0);
  }
}

@keyframes hero-sheet-drift-d {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }

  50% {
    transform: translate3d(3px, -8px, 0);
  }
}

.hero__logo-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.hero__logo-grid--sheet {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 400px) {
  .hero__logo-grid--sheet {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hero__logo-grid--phy {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.hero__logo-grid--phy {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
}

.hero__sheet--phy .hero__logo-cell {
  min-height: 58px;
  padding: 0.42rem 0.35rem;
}

.hero__logo-cell--phy {
  background: linear-gradient(163deg, rgba(255, 255, 255, 0.98) 0%, rgba(241, 245, 249, 0.9) 52%, rgba(226, 232, 240, 0.75) 100%);
}

.hero__phy-icon {
  display: block;
  width: clamp(30px, 6.5vw, 38px);
  height: clamp(30px, 6.5vw, 38px);
  color: var(--accent-dark);
  opacity: 0.92;
}

.hero__phy-icon--mini {
  width: clamp(38px, 8.2vw, 50px);
  height: clamp(42px, 9vw, 54px);
  opacity: 1;
}

.hero__phy-icon--dc {
  width: clamp(76px, 30vw, 108px);
  height: auto;
  aspect-ratio: 72 / 40;
}

.hero__sheet--phy .hero__logo-label {
  font-size: 0.58rem;
  letter-spacing: 0.04em;
}

.hero__logo-grid--phy .hero__logo-item--phy-span {
  grid-column: 1 / -1;
}

.hero__logo-grid--phy .hero__logo-item--phy-span .hero__logo-cell {
  max-width: min(13rem, 100%);
  margin-inline: auto;
}

.hero__logo-cell--phy-wide {
  padding-inline: 0.5rem;
}
/* Feuilles compacts : éviter trop de colonnes pour les bandeaux ITSM */
.hero__sheet--itsm .hero__logo-grid--sheet {
  grid-template-columns: 1fr;
}

@media (min-width: 420px) {
  .hero__sheet--itsm .hero__logo-grid--sheet {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.hero__logo-grid li.hero__logo-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  text-align: center;
  opacity: 0;
  transform: translate3d(0, 14px, 0);
  animation: hero-logo-rise 0.78s cubic-bezier(0.2, 0.82, 0.24, 1) forwards;
}

.hero__logo-grid .hero__logo-item:nth-child(1) {
  animation-delay: 0.05s;
}
.hero__logo-grid .hero__logo-item:nth-child(2) {
  animation-delay: 0.11s;
}
.hero__logo-grid .hero__logo-item:nth-child(3) {
  animation-delay: 0.17s;
}
.hero__logo-grid .hero__logo-item:nth-child(4) {
  animation-delay: 0.23s;
}
.hero__logo-grid .hero__logo-item:nth-child(5) {
  animation-delay: 0.29s;
}
.hero__logo-grid .hero__logo-item:nth-child(6) {
  animation-delay: 0.35s;
}
.hero__logo-grid .hero__logo-item:nth-child(7) {
  animation-delay: 0.41s;
}
.hero__logo-grid .hero__logo-item:nth-child(8) {
  animation-delay: 0.47s;
}
.hero__logo-grid .hero__logo-item:nth-child(9) {
  animation-delay: 0.53s;
}
.hero__logo-grid .hero__logo-item:nth-child(10) {
  animation-delay: 0.59s;
}
.hero__logo-grid .hero__logo-item:nth-child(11) {
  animation-delay: 0.65s;
}
.hero__logo-grid .hero__logo-item:nth-child(12) {
  animation-delay: 0.71s;
}
.hero__logo-grid .hero__logo-item:nth-child(13) {
  animation-delay: 0.77s;
}
.hero__logo-grid .hero__logo-item:nth-child(14) {
  animation-delay: 0.83s;
}
.hero__logo-grid .hero__logo-item:nth-child(15) {
  animation-delay: 0.89s;
}
.hero__logo-grid .hero__logo-item:nth-child(16) {
  animation-delay: 0.95s;
}
.hero__logo-grid .hero__logo-item:nth-child(17) {
  animation-delay: 1.01s;
}

@keyframes hero-logo-rise {
  from {
    opacity: 0;
    transform: translate3d(0, 14px, 0) scale(0.96);
    filter: blur(2px);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
    filter: none;
  }
}

@keyframes hero-panel-float {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }

  50% {
    transform: translate3d(0, -5px, 0);
  }
}

@keyframes hero-frame-glow {
  0%,
  100% {
    box-shadow:
      0 0 0 1px rgba(45, 104, 255, 0.08),
      0 18px 40px rgba(15, 23, 42, 0.09),
      0 2px 10px rgba(15, 23, 42, 0.04),
      inset 0 1px 0 rgba(255, 255, 255, 0.55);
  }

  50% {
    box-shadow:
      0 0 0 1px rgba(45, 104, 255, 0.16),
      0 26px 56px rgba(45, 104, 255, 0.14),
      0 4px 14px rgba(15, 23, 42, 0.05),
      inset 0 1px 0 rgba(255, 255, 255, 0.65);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__sheet-motion {
    animation: none !important;
  }

  .hero__sheet {
    opacity: 1 !important;
    filter: none !important;
    transform: none !important;
    animation: none !important;
  }

  .hero__logo-grid .hero__logo-item {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
}

.hero__logo-cell {
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 68px;
  padding: 0.5rem 0.4rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(226, 232, 240, 0.92);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.96) inset,
    0 4px 14px rgba(15, 23, 42, 0.05);
  transition:
    transform 0.2s cubic-bezier(0.2, 0.82, 0.24, 1),
    box-shadow 0.22s ease;
}

.hero__sheet:not(.hero__sheet--itsm) .hero__logo-cell {
  border-color: rgba(45, 104, 255, 0.14);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.96) inset,
    0 6px 20px rgba(45, 104, 255, 0.1),
    0 0 0 1px rgba(45, 104, 255, 0.06);
}

.hero__logo-cell--banner {
  min-height: 54px;
  padding-block: 0.35rem;
}

.hero__logo-cell--banner.hero__logo-cell--tall {
  min-height: 64px;
  padding-block: 0.45rem;
}

@media (prefers-reduced-motion: reduce) {
  .hero__logo-cell {
    transition: none;
  }
}

.hero__logo-grid li:focus-within .hero__logo-cell,
.hero__logo-grid li:hover .hero__logo-cell {
  transform: translateY(-4px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.96) inset,
    0 14px 32px rgba(45, 104, 255, 0.16),
    0 0 0 1px rgba(45, 104, 255, 0.12);
}

.hero__logo-img {
  display: block;
  width: clamp(34px, 7vw, 44px);
  height: clamp(34px, 7vw, 44px);
  object-fit: contain;
  pointer-events: none;
}

.hero__logo-img--brand {
  width: auto;
  max-width: min(132px, 100%);
  height: clamp(26px, 5vw, 34px);
}

.hero__logo-img--aruba {
  max-width: min(220px, 100%);
  max-height: 40px;
  width: auto;
  height: auto;
}

.hero__logo-img--fortinet {
  max-width: min(110px, 100%);
  max-height: 52px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.hero__logo-img--zabbix {
  max-width: min(190px, 100%);
  height: clamp(22px, 4vw, 30px);
  width: auto;
}

.hero__logo-img--wordmark {
  max-width: min(200px, 100%);
}

.hero__logo-img--glpi {
  max-width: min(200px, 100%);
  max-height: 40px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.hero__logo-img--easyvista {
  max-width: min(280px, 100%);
  max-height: 56px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.hero__logo-img--osticket {
  max-width: min(260px, 100%);
  max-height: 54px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.hero__logo-label {
  font-size: 0.595rem;
  font-weight: 600;
  line-height: 1.28;
  color: var(--muted);
}

.hero__stats,
.samap-mini-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 152px), 1fr));
  gap: 0.75rem;
  max-width: 100%;
}

@media (min-width: 920px) {
  .hero__stats.samap-mini-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.hero__stats > div {
  padding: 1rem 0.85rem;
  border-radius: var(--radius);
  border: 1px solid rgba(226, 232, 240, 0.95);
  background: rgba(255, 255, 255, 0.78);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    var(--shadow);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.hero__stats dt {
  margin: 0;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
}

.hero__stats dd {
  margin: 0.2rem 0 0;
  font-size: 0.8rem;
  font-weight: 600;
}

/* Bloc chiffres type Samapiece */
.samap-overview {
  padding: 2rem 0 3rem;
  border-bottom: 1px solid var(--border);
  background-color: #fff;
  background-image: var(--dots-on-white);
  background-size: var(--dots-cell) var(--dots-cell);
}

.samap-overview__heading {
  margin: 0 0 1.5rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.35rem, 3vw, 1.65rem);
  text-align: center;
  letter-spacing: -0.02em;
}

.samap-stat-board {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.samap-stat-board__cell {
  text-align: center;
  padding: 1.5rem 1rem;
}

.samap-stat-board__number {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.4rem, 5vw, 3.2rem);
  color: var(--accent);
  line-height: 1;
}

.samap-stat-board__text {
  display: inline;
  font-size: 0.95rem;
  color: var(--muted);
}

.samap-overview__footnote {
  margin: 1.5rem 0 0;
  text-align: center;
  font-size: 0.82rem;
  color: var(--muted);
}

.samap-overview__footnote a {
  color: var(--accent-dark);
}

/* Sections */
.section {
  padding-block: clamp(2.75rem, 6vw, 4rem);
}

.section--dim {
  background-color: #f1f5f9;
  background-image: var(--dots);
  background-size: var(--dots-cell) var(--dots-cell);
  border-block: 1px solid var(--border);
}

.section--cta {
  background-color: #fff;
  background-image:
    linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(238, 245, 255, 0.9) 100%),
    var(--dots-on-white);
  background-size: auto, var(--dots-cell) var(--dots-cell);
  padding-bottom: 4rem;
}

.section-head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem 1.5rem;
  margin-bottom: clamp(2rem, 4.5vw, 2.85rem);
}

.section-head--center {
  grid-template-columns: 1fr;
  text-align: center;
  justify-items: center;
}

.section-head__label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2.25rem;
  color: rgba(45, 104, 255, 0.12);
  line-height: 1;
  user-select: none;
}

.section-head__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.5rem, 2.8vw, 1.85rem);
}

.section-head__subtitle {
  margin: 0.35rem 0 0;
  color: var(--muted);
  max-width: min(54rem, 100%);
  line-height: 1.65;
}

.section-head__subtitle a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}

.section-head__subtitle a:hover {
  text-decoration: underline;
}

/* Blocs repère — même gabarit que la section Pharma (barre verte, dégradé, survol) */
.about-card,
.project-card,
.edu-card,
.cert-grid,
.contact-tile,
.samap-stat-board__cell,
.pharma-pillar,
.timeline__body {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  border-left: 3px solid var(--accent);
  background: linear-gradient(165deg, rgba(232, 240, 255, 0.45) 0%, #fff 42%);
  box-shadow: var(--shadow);
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.about-card:hover,
.project-card:hover,
.edu-card:hover,
.cert-grid:hover,
.contact-tile:hover,
.samap-stat-board__cell:hover,
.pharma-pillar:hover,
.timeline__body:hover {
  border-color: rgba(45, 104, 255, 0.28);
  box-shadow: 0 8px 24px -8px rgba(15, 23, 42, 0.12);
  transform: translateY(-2px);
}

@media (prefers-reduced-motion: reduce) {
  .about-card:hover,
  .project-card:hover,
  .edu-card:hover,
  .cert-grid:hover,
  .contact-tile:hover,
  .samap-stat-board__cell:hover,
  .pharma-pillar:hover,
  .timeline__body:hover,
  .skill-domain:hover {
    transform: none;
  }
}

.about-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 860px) {
  .about-grid {
    grid-template-columns: 1.3fr 1fr;
  }
}

.about-card {
  padding: 1.35rem 1.5rem;
}

.about-card__title {
  margin: 0 0 0.75rem;
  font-size: 1.05rem;
  font-family: var(--font-display);
}

.about-card p {
  margin: 0;
  color: var(--text);
}

.facts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.facts__label {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.facts__value {
  font-size: 0.95rem;
}

.facts li .facts__value + .facts__value {
  display: block;
  margin-top: 0.35rem;
}

/* Domaines d’expertise (présentation non type CV) */
.skill-domains {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
}

.skill-domain {
  position: relative;
  overflow: hidden;
  border-radius: calc(var(--radius) + 4px);
  border: 1px solid var(--border);
  background: linear-gradient(165deg, rgba(232, 240, 255, 0.22) 0%, #fff 42%);
  box-shadow: var(--shadow);
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.skill-domain:hover {
  transform: translateY(-2px);
  border-color: rgba(45, 104, 255, 0.28);
  box-shadow: 0 8px 24px -8px rgba(15, 23, 42, 0.12);
}

.skill-domain__accent {
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
}

.skill-domain--net .skill-domain__accent {
  background: linear-gradient(180deg, #2563eb, #60a5fa);
}

.skill-domain--virt .skill-domain__accent {
  background: linear-gradient(180deg, #2563eb, #818cf8);
}

.skill-domain--dc .skill-domain__accent {
  background: linear-gradient(180deg, #475569, #64748b);
}

.skill-domain--sec .skill-domain__accent {
  background: linear-gradient(180deg, #b91c1c, #f97316);
}

.skill-domain--sys .skill-domain__accent {
  background: linear-gradient(180deg, #0d9488, #6366f1);
}

.skill-domain--support .skill-domain__accent {
  background: linear-gradient(180deg, #ca8a04, #2563eb);
}

.skill-domain__head {
  padding: 1.35rem 1.5rem 0.25rem 2rem;
}

.skill-domain__pill {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-dark);
  background: var(--accent-soft);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 0.65rem;
}

.skill-domain__title {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: clamp(1.12rem, 2.2vw, 1.35rem);
  letter-spacing: -0.02em;
}

.skill-domain__pitch {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
  max-width: 52rem;
  font-style: italic;
}

.skill-domain__body {
  display: grid;
  gap: 1rem 1.75rem;
  padding: 1.1rem 1.5rem 1.5rem 2rem;
  border-top: 1px dashed rgba(148, 163, 184, 0.55);
  margin-top: 1rem;
}

@media (min-width: 720px) {
  .skill-domain__body {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1000px) {
  .skill-domain--sys .skill-domain__body {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 999px) {
  .skill-domain--sys .skill-domain__body {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 719px) {
  .skill-domain__body {
    grid-template-columns: 1fr;
  }

  .skill-domain--sys .skill-domain__body {
    grid-template-columns: 1fr;
  }
}

.skill-cluster--full {
  grid-column: 1 / -1;
}

.skill-cluster {
  min-width: 0;
}

.skill-cluster__title {
  margin: 0 0 0.5rem;
  font-size: clamp(0.68rem, 1vw + 0.55rem, 0.8rem);
  line-height: 1.35;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-dark);
  word-wrap: break-word;
  overflow-wrap: anywhere;
  hyphens: auto;
}

@media (min-width: 640px) {
  .skill-cluster__title {
    letter-spacing: 0.1em;
  }
}

.skill-tags {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.skill-tags li {
  font-size: 0.82rem;
  padding: 0.32rem 0.55rem;
  border-radius: 8px;
  background: rgba(45, 104, 255, 0.07);
  border: 1px solid rgba(45, 104, 255, 0.16);
  color: var(--text);
  line-height: 1.35;
}

.skill-cluster p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.55;
}

.skill-cluster code {
  font-size: 0.85em;
  padding: 0.1em 0.35em;
  border-radius: 4px;
  background: rgba(15, 23, 42, 0.06);
}

/* Pharma / GMP — grille et listes */
.pharma-pillars {
  display: grid;
  gap: clamp(1.1rem, 2.5vw, 1.4rem);
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .pharma-pillars {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.pharma-pillar {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 1.35rem 1.4rem 1.4rem 1.25rem;
}

.pharma-pillar__title {
  margin: 0 0 1rem;
  padding-bottom: 0.65rem;
  font-size: clamp(1rem, 2vw, 1.0625rem);
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--accent-dark);
  border-bottom: 1px solid rgba(45, 104, 255, 0.15);
  letter-spacing: -0.01em;
}

.pharma-list {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: clamp(0.82rem, 1.35vw, 0.895rem);
  color: var(--text);
  line-height: 1.55;
  flex: 1;
}

.pharma-list li {
  position: relative;
  margin-bottom: 0.55rem;
  padding-left: 1.2rem;
}

.pharma-list li:last-child {
  margin-bottom: 0;
}

.pharma-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  box-shadow: 0 0 0 2px rgba(45, 104, 255, 0.12);
}

/* Projets — 1 colonne sur mobile, 2 colonnes fixes sur écrans larges */
.project-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 720px) {
  .project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

#projets > .wrap + .wrap {
  margin-top: clamp(2rem, 5vw, 3.25rem);
  padding-top: clamp(1.25rem, 2.5vw, 2rem);
}

.project-card {
  padding: 1.25rem;
}

.project-card--accent {
  background: linear-gradient(165deg, rgba(232, 240, 255, 0.58) 0%, #fff 46%);
}

.project-card__tag {
  margin: 0 0 0.4rem;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.project-card__title {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.02rem;
}

.project-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.project-card strong {
  color: var(--text);
}

/* Timeline */
.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
}

.timeline__row {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: minmax(0, 190px) 1fr;
  align-items: start;
  padding-bottom: 2rem;
  margin-left: 0.15rem;
  padding-left: 1.5rem;
  border-left: 2px solid var(--border);
  position: relative;
}

.timeline__row:last-child {
  border-left-color: transparent;
  padding-bottom: 0;
}

.timeline__row::before {
  content: "";
  position: absolute;
  left: -6px;
  top: 4px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--accent);
}

.timeline__date {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-dark);
}

.timeline__place {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.timeline__title {
  margin: 0 0 0.2rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
}

.timeline__org {
  margin: 0 0 0.65rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.timeline__modalite {
  font-style: italic;
  font-weight: 400;
}

.timeline__org a {
  color: var(--accent-dark);
  font-weight: 500;
  text-decoration: none;
}

.timeline__org a:hover {
  text-decoration: underline;
}

.timeline__body {
  padding: 1rem 1.2rem 1.15rem 1rem;
}

.timeline__list {
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--text);
}

.timeline__list li {
  position: relative;
  margin-bottom: 0.45rem;
  padding-left: 1.2rem;
}

.timeline__list li:last-child {
  margin-bottom: 0;
}

.timeline__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  box-shadow: 0 0 0 2px rgba(45, 104, 255, 0.12);
}

@media (max-width: 720px) {
  .timeline__row {
    grid-template-columns: 1fr;
    border-left: none;
    margin-left: 0;
    padding-left: 0;
  }
  .timeline__row::before {
    display: none;
  }
  .timeline__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: baseline;
  }

  .timeline__body {
    padding: 1rem 1.1rem;
  }
}

/* Formation — 1 colonne sur mobile, 2 colonnes sur écrans larges */
.edu-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 720px) {
  .edu-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
  }
}

.edu-card {
  padding: 1.35rem;
}

.edu-card--highlight {
  border-color: rgba(45, 104, 255, 0.32);
  background: linear-gradient(165deg, rgba(232, 240, 255, 0.58) 0%, #fff 46%);
}

.edu-card__tag {
  display: inline-block;
  margin-bottom: 0.65rem;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-dark);
}

.edu-card__tag--quiet {
  color: var(--muted);
}

.edu-card h3 {
  margin: 0 0 0.45rem;
  font-size: 0.98rem;
  font-family: var(--font-display);
}

.edu-card__meta {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.edu-card__note {
  font-size: 0.78rem;
  color: var(--muted);
}

/* Certifications */
.cert-grid {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.cert-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  padding: 0.9rem 1.2rem;
  border-bottom: 1px solid var(--border);
}

.cert-row:last-child {
  border-bottom: none;
}

.cert-row__name {
  font-weight: 600;
  font-size: 0.9rem;
}

.cert-row__meta {
  font-size: 0.84rem;
  color: var(--muted);
}

/* Contact */
.contact-shell {
  display: grid;
  gap: 0.75rem;
}

@media (min-width: 520px) {
  .contact-shell {
    grid-template-columns: repeat(2, 1fr);
  }
}

.contact-tile {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 1.05rem 1.15rem;
  text-decoration: none;
  color: inherit;
}

.contact-tile__label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.contact-tile__value {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--accent-dark);
  word-break: break-word;
}

/* Footer type produit */
.site-footer {
  padding: 2.5rem 0 1.5rem;
  background-color: #fff;
  background-image: var(--dots-on-white);
  background-size: var(--dots-cell) var(--dots-cell);
  border-top: 1px solid var(--border);
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-footer__copy {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.site-footer__link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}

.site-footer__link:hover {
  text-decoration: underline;
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 1023px) {
  .sidebar-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 480;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(3px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease;
  }

  .sidebar-backdrop.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: min(300px, 88vw);
    transform: translateX(-102%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 500;
    box-shadow: none;
  }

  .sidebar.is-open {
    transform: translateX(0);
    box-shadow: 16px 0 48px rgba(15, 23, 42, 0.12);
  }

  .nav-toggle {
    display: flex;
  }

  body.nav-locked {
    overflow: hidden;
  }
}
