/* Base générale du site */
:root {
  --bg: #020611;
  --bg-soft: #071229;
  --bg-panel: #0a1830;
  --card: rgba(8, 20, 40, 0.8);
  --card-strong: #0b1b34;
  --text: #f7fbff;
  --muted: #b7c6d5;
  --line: rgba(160, 184, 210, 0.2);
  --blue: #00c2ff;
  --cyan: #d7f7ff;
  --blue-soft: #0b3b66;
  --orange: #ff5c35;
  --orange-soft: #5a170b;
  --glass: rgba(255, 255, 255, 0.055);
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.38);
  --radius: 8px;
  --header-height: 78px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: "Aptos", "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif;
  background:
    radial-gradient(circle at 78% 8%, rgba(0, 194, 255, 0.2), transparent 34vw),
    radial-gradient(circle at 16% 30%, rgba(255, 92, 53, 0.13), transparent 26vw),
    linear-gradient(180deg, rgba(8, 17, 30, 0.96), rgba(5, 7, 12, 0.98)),
    repeating-linear-gradient(
      90deg,
      rgba(0, 194, 255, 0.04) 0,
      rgba(0, 194, 255, 0.04) 1px,
      transparent 1px,
      transparent 90px
    ),
    var(--bg);
  line-height: 1.7;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -5;
  background:
    linear-gradient(rgba(0, 194, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 194, 255, 0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), transparent 82%);
  pointer-events: none;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 90;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--orange));
  box-shadow: 0 0 18px rgba(0, 194, 255, 0.65);
}

.page-ambient {
  position: fixed;
  inset: auto -12vw 8vh auto;
  z-index: -4;
  width: 36vw;
  height: 36vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 92, 53, 0.14), transparent 64%);
  filter: blur(22px);
  pointer-events: none;
}

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

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

ul {
  margin: 0;
  padding: 0;
}

li {
  list-style-position: inside;
}

.container {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.section {
  position: relative;
  padding: 110px 0;
  scroll-margin-top: var(--header-height);
}

.section-kicker {
  margin: 0 0 12px;
  color: var(--orange);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  line-height: 1.12;
  font-family: "Bahnschrift", "Aptos Display", "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif;
  letter-spacing: 0;
}

h1 {
  margin-bottom: 22px;
  font-size: clamp(3rem, 7vw, 5.7rem);
  letter-spacing: 0;
}

h1 span {
  display: block;
  color: transparent;
  background: linear-gradient(90deg, var(--blue), var(--cyan), var(--orange));
  background-clip: text;
  -webkit-background-clip: text;
}

h2 {
  margin-bottom: 18px;
  font-size: 2.4rem;
}

h3 {
  margin-bottom: 12px;
  font-size: 1.18rem;
}

p {
  color: var(--muted);
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 50;
  width: 100%;
  border-bottom: 1px solid rgba(123, 231, 255, 0.12);
  background: rgba(5, 10, 18, 0.72);
  backdrop-filter: blur(22px);
}

.navbar {
  position: relative;
  width: min(1180px, calc(100% - 36px));
  min-height: var(--header-height);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(123, 231, 255, 0.52);
  border-radius: var(--radius);
  color: var(--blue);
  background:
    linear-gradient(135deg, rgba(0, 194, 255, 0.16), rgba(255, 92, 53, 0.1)),
    rgba(0, 194, 255, 0.08);
  box-shadow: inset 0 0 20px rgba(0, 194, 255, 0.12);
}

.brand-text {
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-links li {
  list-style: none;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 12px;
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 0.95rem;
  position: relative;
  transition: color 220ms ease, background-color 220ms ease, transform 220ms ease;
}

.nav-links a:hover,
.nav-links a.is-active {
  color: var(--text);
  background: rgba(0, 194, 255, 0.12);
  transform: translateY(-1px);
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 4px;
  height: 2px;
  transform: scaleX(0);
  transform-origin: left;
  background: linear-gradient(90deg, var(--blue), var(--orange));
  transition: transform 220ms ease;
}

.nav-links a:hover::after,
.nav-links a.is-active::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.05);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--text);
  transition: transform 220ms ease, opacity 220ms ease;
}

.nav-toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.hero {
  min-height: 100vh;
  padding-top: 160px;
  display: flex;
  align-items: center;
  isolation: isolate;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(120deg, rgba(0, 194, 255, 0.12), transparent 32%),
    linear-gradient(240deg, rgba(255, 92, 53, 0.1), transparent 28%);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 5% 4% auto auto;
  z-index: -2;
  width: min(44vw, 600px);
  aspect-ratio: 1;
  border: 1px solid rgba(0, 194, 255, 0.14);
  border-radius: 50%;
  background:
    radial-gradient(circle, transparent 47%, rgba(0, 194, 255, 0.07) 48%, transparent 49%),
    conic-gradient(from 110deg, transparent, rgba(0, 194, 255, 0.12), transparent, rgba(255, 92, 53, 0.09), transparent);
  filter: blur(0.2px);
  opacity: 0.58;
  animation: slow-spin 26s linear infinite;
  pointer-events: none;
}

.hero-photo-bg {
  position: absolute;
  right: clamp(-70px, 5vw, 90px);
  bottom: clamp(190px, 24vh, 285px);
  z-index: -1;
  width: min(46vw, 560px);
  height: min(74vh, 710px);
  min-width: 340px;
  isolation: isolate;
  pointer-events: none;
  opacity: 0.58;
}

.hero-photo-bg img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: brightness(0.62) saturate(0.95) contrast(1.08);
  -webkit-mask-image: radial-gradient(
    ellipse 58% 78% at 50% 36%,
    #000 0%,
    #000 46%,
    rgba(0, 0, 0, 0.72) 62%,
    transparent 90%
  );
  mask-image: radial-gradient(
    ellipse 58% 78% at 50% 36%,
    #000 0%,
    #000 46%,
    rgba(0, 0, 0, 0.72) 62%,
    transparent 90%
  );
}

.hero-photo-bg::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 31%;
  z-index: -1;
  width: 108%;
  aspect-ratio: 1;
  border: 1px solid rgba(0, 194, 255, 0.22);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(214, 247, 255, 0.08) 0 30%, transparent 31%),
    radial-gradient(circle, transparent 47%, rgba(0, 194, 255, 0.16) 48%, transparent 49%),
    radial-gradient(circle at 38% 42%, rgba(0, 194, 255, 0.16), transparent 38%),
    radial-gradient(circle at 72% 44%, rgba(255, 92, 53, 0.1), transparent 34%),
    rgba(214, 247, 255, 0.045);
  box-shadow:
    inset 0 0 90px rgba(0, 194, 255, 0.08),
    0 0 80px rgba(0, 194, 255, 0.08);
  transform: translate(-50%, -50%);
}

.hero-photo-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(180deg, transparent 62%, rgba(2, 6, 17, 0.88));
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 760px);
  gap: 58px;
  align-items: center;
}

.hero-content {
  max-width: 760px;
  position: relative;
}

.hero-subtitle {
  max-width: 780px;
  color: #d8e5f2;
  font-size: clamp(1.04rem, 1.6vw, 1.28rem);
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45);
}

.hero-text {
  max-width: 690px;
  margin-bottom: 34px;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45);
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

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

.btn {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 700;
  position: relative;
  overflow: hidden;
  transition: transform 220ms ease, border-color 220ms ease, background-color 220ms ease, box-shadow 220ms ease;
}

.btn:hover {
  transform: translateY(-3px);
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-110%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.28), transparent);
  transition: transform 520ms ease;
}

.btn:hover::before {
  transform: translateX(110%);
}

.btn-primary {
  color: #04101b;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 16px 36px rgba(0, 194, 255, 0.22);
}

.btn-secondary {
  color: #17100a;
  background: linear-gradient(135deg, #ffc170, var(--orange));
  box-shadow: 0 16px 36px rgba(255, 92, 53, 0.2);
}

.btn-ghost {
  border-color: rgba(255, 255, 255, 0.18);
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.hero-visual {
  position: relative;
}

.image-card,
.stage-visual,
.tfe-panel,
.contact-panel {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
}

.image-card {
  position: relative;
  overflow: hidden;
}

.image-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: linear-gradient(135deg, var(--blue-soft), var(--orange-soft));
}

.image-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 48%, rgba(5, 7, 12, 0.82));
  pointer-events: none;
}

.image-card-info {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;
  z-index: 2;
  display: grid;
  gap: 4px;
}

.image-card-info span {
  color: var(--orange);
  font-size: 0.9rem;
  font-weight: 700;
}

.image-card-info strong {
  font-size: 1.35rem;
}

.two-column {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 46px;
  align-items: start;
}

.section-copy p {
  font-size: 1.06rem;
}

.focus-grid,
.skills-grid,
.swot-grid,
.info-grid,
.visits-grid,
.digital-layout {
  display: grid;
  gap: 18px;
}

.focus-grid {
  grid-template-columns: repeat(3, 1fr);
}

.mini-card,
.skill-card,
.swot-card,
.cv-card,
.timeline-card,
.info-card,
.visit-card,
.service-highlight,
.proof-card,
.certification-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.018)),
    var(--card);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(14px);
  transition:
    transform 260ms ease,
    border-color 260ms ease,
    background-color 260ms ease,
    box-shadow 260ms ease;
}

.mini-card::before,
.skill-card::before,
.swot-card::before,
.cv-card::before,
.timeline-card::before,
.info-card::before,
.visit-card::before,
.service-highlight::before,
.proof-card::before,
.certification-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(0, 194, 255, 0.44), transparent 38%, rgba(255, 92, 53, 0.28));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  opacity: 0;
  pointer-events: none;
  transition: opacity 260ms ease;
}

.mini-card::after,
.skill-card::after,
.swot-card::after,
.cv-card::after,
.timeline-card::after,
.info-card::after,
.visit-card::after,
.service-highlight::after,
.proof-card::after,
.certification-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at var(--glow-x, 80%) var(--glow-y, 120%),
    rgba(0, 194, 255, 0.18),
    transparent 34%
  );
  opacity: 0;
  transition: opacity 260ms ease;
  pointer-events: none;
}

.mini-card,
.skill-card,
.swot-card,
.cv-card,
.service-highlight,
.proof-card,
.certification-panel {
  padding: 24px;
}

.mini-card {
  min-height: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.card-number {
  display: inline-grid;
  place-items: center;
  min-width: 42px;
  min-height: 42px;
  margin-bottom: 26px;
  color: var(--blue);
  border: 1px solid rgba(0, 194, 255, 0.26);
  border-radius: var(--radius);
  background: rgba(0, 194, 255, 0.07);
  font-weight: 800;
}

.section-heading {
  position: relative;
  max-width: 760px;
  margin-bottom: 62px;
}

.section-heading::after,
.section-copy::after {
  content: "";
  display: block;
  width: 92px;
  height: 3px;
  margin-top: 22px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue), var(--orange));
  box-shadow: 0 0 18px rgba(0, 194, 255, 0.3);
}

.timeline-section {
  background:
    radial-gradient(circle at 50% 12%, rgba(0, 194, 255, 0.11), transparent 30vw),
    linear-gradient(180deg, rgba(8, 17, 30, 0.72), rgba(5, 7, 12, 0.3)),
    var(--bg);
}

.timeline {
  position: relative;
  display: grid;
  gap: 34px;
}

.timeline-track {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  overflow: hidden;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.16), transparent);
  transform: translateX(-50%);
}

.timeline-progress {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleY(0);
  transform-origin: top;
  background: linear-gradient(180deg, var(--blue), var(--orange));
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 58px;
  align-items: center;
}

.timeline-item:nth-child(odd) .timeline-card {
  grid-column: 2;
}

.timeline-item:nth-child(even) .timeline-card {
  grid-column: 1;
}

.timeline-dot {
  position: absolute;
  top: 32px;
  left: 50%;
  z-index: 2;
  width: 16px;
  height: 16px;
  border: 3px solid var(--bg);
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 6px rgba(255, 92, 53, 0.16);
  transform: translateX(-50%);
  animation: pulse-dot 2.8s ease-in-out infinite;
}

.timeline-card {
  padding: 24px;
  transform-origin: center;
}

.timeline-card span,
.info-card span {
  display: block;
  margin-bottom: 8px;
  color: var(--orange);
  font-size: 0.88rem;
  font-weight: 700;
}

.timeline-card h3 {
  color: var(--text);
}

.timeline-date {
  margin-bottom: 10px;
  color: var(--blue);
  font-weight: 700;
}

.service-section {
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 92, 53, 0.12), transparent 28vw),
    linear-gradient(180deg, rgba(5, 10, 18, 0.72), rgba(8, 17, 30, 0.38)),
    var(--bg);
}

.service-highlight {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 26px;
  align-items: center;
  margin-bottom: 26px;
}

.service-highlight .card-number {
  margin-bottom: 14px;
}

.service-highlight h3 {
  margin-bottom: 0;
}

.service-highlight p {
  margin-bottom: 0;
  font-size: 1.02rem;
}

.visits-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.visit-card {
  display: grid;
  grid-template-rows: auto 1fr;
}

.visit-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: linear-gradient(135deg, var(--bg-panel), var(--blue-soft));
  filter: saturate(1.02) contrast(1.02);
  transition: transform 700ms ease, filter 700ms ease;
}

.visit-card:nth-child(2) img {
  object-position: center 56%;
}

.visit-card:nth-child(3) img {
  object-position: center 42%;
}

.visit-card:nth-child(4) img {
  object-position: center 48%;
}

.visit-card:nth-child(5) {
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr);
  grid-template-rows: 1fr;
}

.visit-card:nth-child(5) img {
  height: 100%;
  min-height: 360px;
  object-position: center 58%;
}

.visit-card:hover img {
  transform: scale(1.05);
  filter: saturate(1.12) contrast(1.06);
}

.visit-card-body {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 230px;
  flex-direction: column;
  justify-content: center;
  padding: 24px;
  text-align: center;
}

.visit-card-body p {
  margin-bottom: 0;
}

.stage-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

.info-grid {
  grid-template-columns: repeat(3, 1fr);
  margin-top: 28px;
}

.info-card {
  padding: 20px;
  display: grid;
  align-content: center;
  justify-items: center;
  text-align: center;
}

.info-card strong {
  display: block;
  line-height: 1.35;
}

.stage-visual {
  overflow: hidden;
}

.stage-visual img {
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  background: linear-gradient(135deg, var(--bg-panel), var(--blue-soft));
  transform: scale(1.01);
  transition: transform 700ms ease, filter 700ms ease;
}

.stage-visual:hover img {
  transform: scale(1.055);
  filter: contrast(1.05) saturate(1.06);
}

.tfe-panel {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  gap: 28px;
  max-width: 980px;
  padding: 48px;
  overflow: hidden;
  text-align: center;
  background:
    radial-gradient(circle at 50% 0%, rgba(0, 194, 255, 0.16), transparent 46%),
    linear-gradient(180deg, rgba(13, 23, 38, 0.92), rgba(7, 15, 26, 0.96)),
    repeating-linear-gradient(
      90deg,
      rgba(0, 194, 255, 0.08) 0,
      rgba(0, 194, 255, 0.08) 1px,
      transparent 1px,
      transparent 56px
    ),
    var(--card-strong);
}

.tfe-panel::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(123, 231, 255, 0.12);
  border-radius: var(--radius);
  pointer-events: none;
}

.tfe-copy {
  max-width: 820px;
}

.tfe-copy h3 {
  color: var(--blue);
  font-size: 1.35rem;
}

.tfe-copy p {
  max-width: 760px;
  margin-right: auto;
  margin-left: auto;
}

.protocol-list,
.language-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.protocol-list span,
.language-list span {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  padding: 0 14px;
  border: 1px solid rgba(0, 194, 255, 0.24);
  border-radius: var(--radius);
  color: #dbefff;
  background: rgba(0, 194, 255, 0.08);
  font-weight: 700;
  transition: transform 220ms ease, border-color 220ms ease, background-color 220ms ease;
}

.language-list span {
  min-width: 170px;
  min-height: 72px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 12px 16px;
  text-align: center;
}

.language-list strong {
  color: var(--text);
  font-family: "Bahnschrift", "Aptos Display", "Segoe UI Variable Display", system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1;
}

.language-list small {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
}

.protocol-list span:hover,
.language-list span:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 92, 53, 0.5);
  background: rgba(255, 92, 53, 0.1);
}

.skills-grid {
  grid-template-columns: repeat(3, 1fr);
}

.skill-card {
  min-height: 240px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.skill-card:nth-child(4),
.skill-card:nth-child(5) {
  min-height: 190px;
}

.certification-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  margin-top: 22px;
  background:
    radial-gradient(circle at 10% 20%, rgba(0, 194, 255, 0.18), transparent 34%),
    linear-gradient(135deg, rgba(0, 194, 255, 0.1), rgba(255, 92, 53, 0.075)),
    var(--card);
}

.certification-panel .card-number {
  margin-bottom: 18px;
}

.certification-panel h3 {
  margin-bottom: 10px;
}

.certification-panel p {
  max-width: 700px;
  margin-bottom: 0;
}

.certification-panel .btn {
  min-width: 190px;
}

.digital-section {
  background:
    radial-gradient(circle at 82% 18%, rgba(0, 194, 255, 0.14), transparent 30vw),
    linear-gradient(180deg, rgba(8, 17, 30, 0.3), rgba(5, 10, 18, 0.72)),
    var(--bg);
}

.digital-layout {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
}

.proof-card {
  min-height: 300px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 26px;
  align-items: center;
}

.proof-card .card-number {
  margin-bottom: 20px;
}

.proof-card p {
  margin-bottom: 0;
}

.pix-proof {
  background:
    radial-gradient(circle at 78% 42%, rgba(0, 194, 255, 0.2), transparent 36%),
    linear-gradient(155deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.018)),
    var(--card);
}

.safety-proof {
  background:
    radial-gradient(circle at 78% 38%, rgba(255, 92, 53, 0.16), transparent 34%),
    linear-gradient(155deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.018)),
    var(--card);
}

.pix-badge {
  position: relative;
  width: 168px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  padding: 24px 18px;
  color: #071229;
  text-align: center;
  clip-path: polygon(24% 7%, 76% 7%, 98% 50%, 76% 93%, 24% 93%, 2% 50%);
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 18px 40px rgba(0, 194, 255, 0.24);
}

.pix-badge::before {
  content: "";
  position: absolute;
  inset: 6px;
  z-index: 0;
  clip-path: inherit;
  background: rgba(255, 255, 255, 0.92);
}

.pix-badge span,
.pix-badge strong,
.pix-badge small {
  position: relative;
  z-index: 1;
  display: block;
}

.pix-badge span {
  color: #17233a;
  font-size: 0.78rem;
  font-weight: 800;
}

.pix-badge strong {
  color: #071229;
  font-family: "Bahnschrift", "Aptos Display", "Segoe UI Variable Display", system-ui, sans-serif;
  font-size: 2.75rem;
  line-height: 1;
}

.pix-badge small {
  max-width: 112px;
  color: #44546a;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.25;
}

.score-list {
  display: grid;
  gap: 10px;
  min-width: 220px;
}

.proof-evidence {
  display: grid;
  gap: 12px;
  justify-items: stretch;
}

.pix-evidence {
  justify-items: center;
}

.pix-evidence .proof-link {
  width: 100%;
}

.score-list span {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 58px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 92, 53, 0.22);
  border-radius: var(--radius);
  color: var(--muted);
  background: rgba(255, 92, 53, 0.08);
  font-weight: 700;
}

.score-list strong {
  color: var(--orange);
  font-family: "Bahnschrift", "Aptos Display", "Segoe UI Variable Display", system-ui, sans-serif;
  font-size: 1.35rem;
  line-height: 1;
}

.proof-link {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border: 1px solid rgba(255, 92, 53, 0.38);
  border-radius: var(--radius);
  color: var(--text);
  background:
    linear-gradient(135deg, rgba(255, 92, 53, 0.16), rgba(0, 194, 255, 0.08)),
    rgba(255, 255, 255, 0.035);
  font-size: 0.9rem;
  font-weight: 800;
  transition: transform 220ms ease, border-color 220ms ease, background-color 220ms ease;
}

.proof-link:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 194, 255, 0.52);
  background: rgba(0, 194, 255, 0.11);
}

.cv-section {
  background:
    radial-gradient(circle at 86% 12%, rgba(255, 92, 53, 0.1), transparent 28vw),
    linear-gradient(180deg, rgba(8, 17, 30, 0.2), rgba(8, 17, 30, 0.76)),
    var(--bg);
}

.cv-layout {
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  align-items: start;
  gap: 18px;
}

.cv-profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 28px;
  text-align: center;
}

.cv-card {
  text-align: center;
}

.cv-card p {
  max-width: 560px;
  margin-right: auto;
  margin-left: auto;
}

.cv-card ul {
  display: grid;
  gap: 10px;
}

.cv-card li {
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.035);
  list-style: none;
  text-align: center;
}

.cv-languages {
  width: min(100%, 430px);
  justify-self: center;
}

.cv-languages .language-list span {
  min-height: 72px;
}

.swot-card li {
  color: var(--muted);
  list-style-position: outside;
  margin-left: 20px;
  margin-bottom: 10px;
}

.swot-grid {
  grid-template-columns: repeat(4, 1fr);
}

.swot-card h3 {
  color: var(--blue);
}

.swot-card:nth-child(2) h3,
.swot-card:nth-child(4) h3 {
  color: var(--orange);
}

.swot-reflection {
  max-width: 860px;
  margin: 22px auto 0;
  padding: 20px 24px;
  border: 1px solid rgba(0, 194, 255, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
  text-align: center;
}

.swot-reflection p {
  margin-bottom: 0;
}

.contact-panel {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  padding: 38px;
  background:
    linear-gradient(135deg, rgba(0, 194, 255, 0.12), rgba(255, 92, 53, 0.08)),
    var(--card-strong);
}

.contact-panel h2 {
  margin-bottom: 10px;
}

.contact-details {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.contact-details a,
.contact-details span {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
}

.contact-details a:hover {
  color: var(--text);
  border-color: rgba(0, 194, 255, 0.45);
}

/* Animations déclenchées par IntersectionObserver */
.reveal {
  opacity: 0;
  transition: opacity 720ms ease, transform 720ms ease;
  will-change: opacity, transform;
}

.fade-up {
  transform: translateY(28px);
}

.slide-left {
  transform: translateX(42px);
}

.slide-right {
  transform: translateX(-42px);
}

.reveal.is-visible {
  opacity: 1;
  transform: translate(0, 0);
}

.mini-card:hover,
.skill-card:hover,
.swot-card:hover,
.cv-card:hover,
.timeline-card:hover,
.info-card:hover,
.visit-card:hover,
.service-highlight:hover,
.proof-card:hover,
.certification-panel:hover {
  border-color: rgba(0, 194, 255, 0.28);
  background: rgba(18, 34, 54, 0.95);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
  transform: translateY(-6px);
}

.mini-card:hover::before,
.skill-card:hover::before,
.swot-card:hover::before,
.cv-card:hover::before,
.timeline-card:hover::before,
.info-card:hover::before,
.visit-card:hover::before,
.service-highlight:hover::before,
.proof-card:hover::before,
.certification-panel:hover::before,
.mini-card:hover::after,
.skill-card:hover::after,
.swot-card:hover::after,
.cv-card:hover::after,
.timeline-card:hover::after,
.info-card:hover::after,
.visit-card:hover::after,
.service-highlight:hover::after,
.proof-card:hover::after,
.certification-panel:hover::after {
  opacity: 1;
}

@keyframes slow-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes pulse-dot {
  0%,
  100% {
    box-shadow: 0 0 0 6px rgba(255, 92, 53, 0.14), 0 0 0 0 rgba(0, 194, 255, 0.24);
  }

  50% {
    box-shadow: 0 0 0 8px rgba(255, 92, 53, 0.11), 0 0 0 13px rgba(0, 194, 255, 0);
  }
}

@media (max-width: 1080px) {
  .brand-text {
    display: none;
  }

  .nav-toggle {
    display: inline-block;
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 1px);
    left: 14px;
    right: 14px;
    display: grid;
    gap: 4px;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
    background: rgba(5, 7, 12, 0.96);
    box-shadow: var(--shadow);
    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 220ms ease, transform 220ms ease;
  }

  .nav-links.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links a {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 980px) {
  :root {
    --header-height: 72px;
  }

  h1 {
    font-size: 3rem;
  }

  h2 {
    font-size: 2rem;
  }

  .section {
    padding: 88px 0;
  }

  .hero {
    min-height: auto;
    padding-top: 132px;
  }

  .hero::after {
    right: -10%;
    width: min(62vw, 430px);
    opacity: 0.44;
  }

  .hero-photo-bg {
    right: -110px;
    bottom: 145px;
    width: min(58vw, 460px);
    opacity: 0.42;
  }

  .hero-grid,
  .two-column,
  .stage-grid,
  .tfe-panel,
  .cv-layout {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    max-width: 520px;
  }

  .focus-grid,
  .skills-grid,
  .swot-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .digital-layout,
  .proof-card,
  .certification-panel {
    grid-template-columns: 1fr;
  }

  .pix-badge,
  .score-list {
    justify-self: center;
  }

  .timeline-track {
    left: 8px;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 0;
    padding-left: 36px;
  }

  .timeline-item:nth-child(odd) .timeline-card,
  .timeline-item:nth-child(even) .timeline-card {
    grid-column: 1;
  }

  .timeline-dot {
    left: 8px;
  }
}

@media (max-width: 760px) {
  .container,
  .navbar {
    width: min(100% - 28px, 1120px);
  }

  .brand-text {
    display: none;
  }

  .nav-toggle {
    display: inline-block;
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 1px);
    left: 14px;
    right: 14px;
    display: grid;
    gap: 4px;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
    background: rgba(5, 7, 12, 0.96);
    box-shadow: var(--shadow);
    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 220ms ease, transform 220ms ease;
  }

  .nav-links.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links a {
    width: 100%;
    justify-content: center;
  }

  h1 {
    font-size: 2.45rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  h3 {
    font-size: 1.08rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero::after {
    inset: 20% auto auto 50%;
    width: min(82vw, 420px);
    transform: translateX(-50%);
  }

  .hero-content {
    max-width: 100%;
  }

  .language-list span {
    width: 100%;
    min-width: 0;
  }

  .hero-actions,
  .contact-actions {
    display: grid;
  }

  .btn {
    width: 100%;
  }

  .focus-grid,
  .skills-grid,
  .swot-grid,
  .info-grid,
  .visits-grid {
    grid-template-columns: 1fr;
  }

  .service-highlight {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .service-highlight .card-number {
    margin-right: auto;
    margin-left: auto;
  }

  .visit-card-body {
    min-height: auto;
  }

  .visit-card:nth-child(5) {
    grid-column: auto;
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
  }

  .visit-card:nth-child(5) img {
    height: auto;
    min-height: 0;
  }

  .proof-card {
    text-align: center;
  }

  .certification-panel {
    text-align: center;
  }

  .proof-card .card-number {
    margin-right: auto;
    margin-left: auto;
  }

  .certification-panel .card-number {
    margin-right: auto;
    margin-left: auto;
  }

  .score-list {
    width: 100%;
  }

  .mini-card,
  .skill-card,
  .skill-card:nth-child(4),
  .skill-card:nth-child(5) {
    min-height: auto;
  }

  .tfe-panel,
  .contact-panel {
    padding: 24px;
  }

  .section-heading {
    margin-bottom: 38px;
  }
}

@media (max-width: 430px) {
  body {
    line-height: 1.62;
  }

  .section {
    padding: 74px 0;
  }

  .hero {
    padding-top: 116px;
  }

  .hero-photo-bg {
    right: 50%;
    bottom: 88px;
    width: min(88vw, 360px);
    height: 56vh;
    min-width: 0;
    opacity: 0.22;
    transform: translateX(50%);
  }

  h1 {
    font-size: 2.1rem;
  }

  .timeline-card,
  .mini-card,
  .skill-card,
  .swot-card,
  .cv-card,
  .info-card,
  .service-highlight,
  .proof-card,
  .certification-panel {
    padding: 20px;
  }

  .contact-details {
    display: grid;
  }

  .contact-details a,
  .contact-details span {
    justify-content: center;
    text-align: center;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
