:root {
  --b950: #071b33;
  --b900: #0a2d55;
  --b800: #0b376d;
  --b600: #145da0;
  --b100: #e7f0fb;
  --b50: #f3f8ff;

  --s900: #111827;
  --s700: #334155;
  --s600: #475569;
  --s500: #64748b;
  --s200: #e2e8f0;
  --s100: #f1f5f9;

  --white: #fff;
  --shadow: 0 24px 70px rgba(7, 27, 51, .12);
  --r: 28px;
  --max: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, system-ui, sans-serif;
  color: var(--s900);
  background: linear-gradient(180deg, #fff 0%, #f7fbff 45%, #fff 100%);
  line-height: 1.6;
}

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

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

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

h1 {
  color: var(--b950);
  font-size: clamp(2.55rem, 5vw, 5.4rem);
  line-height: .95;
  letter-spacing: -.075em;
  margin-bottom: 28px;
}

h2 {
  color: var(--b950);
  font-size: clamp(2rem, 3vw, 3.25rem);
  line-height: 1.05;
  letter-spacing: -.055em;
  margin-bottom: 18px;
}

h3 {
  color: var(--b950);
  font-size: 1.25rem;
  letter-spacing: -.03em;
  margin-bottom: 10px;
}

.container {
  width: min(var(--max), calc(100% - 40px));
  max-width: var(--max);
  margin: 0 auto;
  padding: 0;
  display: block;
}

.section {
  padding: 92px 0;
}

.compact-section {
  padding: 40px 0 80px;
}

.eyebrow,
.section-kicker,
.project-tag {
  margin: 0 0 14px;
  color: var(--b600);
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: .78rem;
}

.hero-text {
  color: var(--s700);
  font-size: 1.13rem;
  max-width: 720px;
  margin-bottom: 30px;
}

.hero-actions,
.project-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 22px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 900;
  transition: .2s;
}

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

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--b900), var(--b600));
  box-shadow: 0 16px 34px rgba(20, 93, 160, .25);
}

.btn-secondary {
  color: var(--b900);
  background: #fff;
  border: 1px solid var(--s200);
}

.full {
  width: 100%;
  margin-top: 12px;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .65s ease, transform .65s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* HEADER */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--s200);
}

.navbar {
  width: min(var(--max), calc(100% - 40px));
  min-height: 78px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0;
  color: var(--b950);
  font-weight: 900;
  letter-spacing: -.03em;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand-name,
.brand-sub {
  width: auto;
  height: auto;
  display: block;
  border-radius: 0;
  background: none;
  box-shadow: none;
}

.brand-name {
  color: var(--b600);
  font-weight: 900;
  font-size: 1rem;
}

.brand-sub {
  margin-top: 3px;
  color: var(--s500);
  font-size: .72rem;
  font-weight: 700;
}

.nav-menu {
  display: flex;
  list-style: none;
  margin: 0 0 0 auto;
  padding: 0;
  gap: 6px;
}

.nav-menu a {
  display: block;
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--s700);
  font-weight: 700;
  font-size: .94rem;
}

.nav-menu a:hover,
.nav-menu a.active {
  background: var(--b50);
  color: var(--b800);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: var(--b50);
  cursor: pointer;
}

.nav-toggle i {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--b900);
  margin: 5px auto;
  border-radius: 2px;
}

.nav-socials {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 12px;
}

.nav-socials a {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--b50);
  color: var(--b800);
  font-size: .78rem;
  font-weight: 900;
}

.nav-socials a:hover {
  background: var(--b100);
}

.nav-socials svg {
  width: 18px;
  height: 18px;
  fill: var(--s700);
}

/* HERO PAGES */

.page-hero {
  padding-bottom: 40px;
  background: linear-gradient(180deg, #fff, var(--b50));
}

.page-hero .container {
  max-width: 1100px;
}

.page-hero .eyebrow,
.page-hero h1,
.page-hero .hero-text {
  max-width: 760px;
}

/* ACCUEIL */

.home-recruit-hero {
  padding-top: 96px;
  padding-bottom: 76px;
  background:
    radial-gradient(circle at 82% 8%, rgba(20, 93, 160, .14), transparent 34%),
    linear-gradient(180deg, #fff 0%, var(--b50) 100%);
}

.home-recruit-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) 430px;
  gap: 58px;
  align-items: center;
}

.home-recruit-content h1 {
  max-width: 860px;
  margin-bottom: 24px;
}

.home-recruit-content h1 span {
  display: block;
  margin-top: 12px;
  color: var(--b600);
}

.alternance-banner {
  display: grid;
  gap: 4px;
  max-width: 720px;
  margin: 26px 0 28px;
  padding: 18px 20px;
  border-radius: 22px;
  background: #fff;
  border: 1px solid var(--s200);
  box-shadow: 0 14px 40px rgba(15,23,42,.06);
}

.alternance-banner strong {
  color: var(--b800);
  font-size: .95rem;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.alternance-banner span {
  color: var(--s700);
  font-weight: 800;
}

.home-recruit-card {
  position: relative;
  padding: 16px;
  border-radius: 34px;
  background: linear-gradient(180deg, #fff, #eef6ff);
  border: 1px solid var(--s200);
  box-shadow: var(--shadow);
}

.home-recruit-photo {
  overflow: hidden;
  border-radius: 26px;
  background: var(--s100);
  aspect-ratio: 4 / 5;
}

.home-recruit-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.home-recruit-info {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  position: absolute;
  left: 34px;
  right: 34px;
  bottom: 34px;
  padding: 16px;
  border-radius: 20px;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(14px);
  box-shadow: 0 18px 40px rgba(7,27,51,.18);
}

.status-dot {
  width: 12px;
  height: 12px;
  margin-top: 6px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 6px rgba(34,197,94,.14);
  flex: 0 0 auto;
}

.home-recruit-info p {
  margin: 4px 0 0;
  color: var(--s600);
  font-size: .9rem;
}

.home-about-minimal {
  padding-top: 90px;
}

.home-two-columns {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 48px;
  align-items: start;
}

.home-text-block {
  padding: 30px;
  border-radius: var(--r);
  background: #fff;
  border: 1px solid var(--s200);
  box-shadow: 0 14px 40px rgba(15,23,42,.06);
}

.home-text-block p:last-child {
  margin-bottom: 0;
}

.home-featured-projects {
  background: linear-gradient(180deg, transparent, var(--b50), transparent);
}

.home-projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.home-project-card {
  overflow: hidden;
  border: 1px solid var(--s200);
  border-radius: var(--r);
  background: #fff;
  box-shadow: 0 14px 40px rgba(15,23,42,.06);
  transition: .2s;
}

.home-project-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.home-project-card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  background: var(--s100);
}

.home-project-card div {
  padding: 26px;
}

.home-project-card p {
  color: var(--s600);
}

.home-skills-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.home-skills-minimal {
  background: linear-gradient(180deg, transparent, var(--b50));
}

.center-action {
  display: flex;
  justify-content: center;
  margin-top: 36px;
}

.home-final-cta {
  padding-top: 40px;
}

.home-cta-box {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 34px;
  align-items: center;
  padding: 38px;
  border-radius: 34px;
  background: linear-gradient(135deg, var(--b950), var(--b800));
  color: #fff;
  box-shadow: var(--shadow);
}

.home-cta-box h2 {
  color: #fff;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.05;
  margin-bottom: 16px;
}

.home-cta-box p {
  color: rgba(255,255,255,.78);
  margin-bottom: 0;
}

.home-cta-box .section-kicker {
  color: #fff;
}

.home-cta-actions {
  padding: 22px;
  border-radius: 26px;
  background: #fff;
}

.home-cta-actions a:not(.btn) {
  display: block;
  padding: 13px 0;
  border-bottom: 1px solid var(--s200);
  color: var(--b900);
  font-weight: 900;
}

.home-cta-actions .btn {
  width: 100%;
  margin-top: 16px;
}

/* CARTES COMPÉTENCES */

.skill-card {
  padding: 26px;
  border: 1px solid var(--s200);
  border-radius: var(--r);
  background: rgba(255,255,255,.82);
  box-shadow: 0 14px 40px rgba(15,23,42,.06);
  transition: .2s;
}

.skill-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.skill-card span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: var(--b100);
  color: var(--b800);
  font-weight: 900;
  margin-bottom: 22px;
}

.skill-card p {
  color: var(--s600);
  margin-bottom: 0;
}

/* LISTE PROJETS */

.projects-list-section {
  padding-top: 40px;
}

.projects-list {
  display: grid;
  gap: 24px;
}

.project-list-card {
  display: grid;
  grid-template-columns: 380px 1fr;
  overflow: hidden;
  border: 1px solid var(--s200);
  border-radius: var(--r);
  background: #fff;
  box-shadow: var(--shadow);
}

.project-list-image {
  min-height: 320px;
  background: var(--s100);
  overflow: hidden;
}

.project-list-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-list-content {
  padding: 34px;
}

.project-topline {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 12px;
}

.project-type {
  font-weight: 900;
  color: var(--s500);
  font-size: .85rem;
}

.project-link {
  display: inline-flex;
  margin-top: 6px;
  color: var(--b800);
  font-weight: 900;
}

.project-link::after {
  content: " →";
}

/* PAGES PROJETS DÉTAILLÉES */

.project-detail-hero {
  padding-bottom: 55px;
  background:
    radial-gradient(circle at 80% 0%, rgba(20,93,160,.16), transparent 34%),
    linear-gradient(180deg, #fff, var(--b50));
}

.project-detail-hero h1 {
  max-width: 900px;
}

.project-detail-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 44px;
  align-items: center;
}

.project-detail-cover {
  overflow: hidden;
  border-radius: 34px;
  border: 1px solid var(--s200);
  background: #fff;
  box-shadow: var(--shadow);
}

.project-detail-cover img {
  width: 100%;
  height: 430px;
  object-fit: cover;
}

.back-link {
  display: inline-flex;
  margin-bottom: 24px;
  color: var(--b800);
  font-weight: 900;
}

.detail-section {
  padding-top: 50px;
}

.detail-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 28px;
  align-items: start;
}

.project-summary-card {
  position: sticky;
  top: 100px;
  padding: 26px;
  border-radius: var(--r);
  background: var(--b950);
  color: #fff;
}

.project-summary-card h2 {
  color: #fff;
  font-size: 1.45rem;
}

.project-summary-card ul {
  padding-left: 18px;
  margin: 0;
}

.project-summary-card li {
  margin: 10px 0;
  color: rgba(255,255,255,.78);
}

.detail-content {
  display: grid;
  gap: 22px;
}

.detail-block {
  padding: 32px;
  border: 1px solid var(--s200);
  border-radius: var(--r);
  background: #fff;
  box-shadow: 0 14px 40px rgba(15,23,42,.06);
}

.detail-block p:last-child {
  margin-bottom: 0;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.feature-grid div {
  padding: 20px;
  border-radius: 22px;
  background: var(--b50);
  border: 1px solid var(--s200);
}

.feature-grid p {
  margin-bottom: 0;
  color: var(--s600);
}

.architecture-flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 22px;
}

.architecture-flow span {
  display: grid;
  place-items: center;
  text-align: center;
  min-height: 72px;
  padding: 14px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--b900), var(--b600));
  color: #fff;
  font-weight: 900;
}

.clean-list {
  margin: 0;
  padding-left: 20px;
}

.clean-list li {
  margin: 10px 0;
  color: var(--s600);
}

.tech-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0;
}

.tech-pills span {
  padding: 9px 12px;
  border-radius: 999px;
  background: var(--b50);
  color: var(--b800);
  font-weight: 900;
  font-size: .86rem;
  border: 1px solid var(--s200);
}

.tech-pills.big span {
  font-size: .95rem;
  padding: 11px 14px;
}

.screenshots-section {
  padding-top: 40px;
  margin-top: 10px;
  background: linear-gradient(180deg, transparent, var(--b50));
}

.screenshots-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

.screenshots-section h2 {
  font-size: 2rem;
  margin-bottom: 28px;
  color: #0b1f4d;
}

.screenshot-block {
  margin-bottom: 42px;
}

.screenshot-block h3 {
  font-size: 1.15rem;
  margin-bottom: 12px;
  color: #1f2937;
}

.screenshot-block img {
  width: 100%;
  max-width: 1000px;
  display: block;
  border-radius: 14px;
  border: 1px solid #dbe3f0;
  box-shadow: 0 14px 35px rgba(15,23,42,.12);
}

.screenshot-block.mobile img {
  max-width: 320px;
  margin: 0 auto;
}

.world-timeline {
  position: relative;
  display: grid;
  gap: 18px;
  margin-top: 24px;
}

.world-timeline::before {
  content: "";
  position: absolute;
  left: 25px;
  top: 18px;
  bottom: 18px;
  width: 2px;
  background: var(--b100);
}

.world-step {
  position: relative;
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 18px;
  padding: 18px;
  border-radius: 22px;
  background: var(--b50);
  border: 1px solid var(--s200);
}

.world-number {
  position: relative;
  z-index: 1;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--b900), var(--b600));
  color: #fff;
  font-weight: 900;
  box-shadow: 0 12px 26px rgba(20,93,160,.22);
}

.world-step h3 {
  margin-bottom: 6px;
}

.world-step p {
  margin-bottom: 0;
  color: var(--s600);
}

/* COMPÉTENCES */

.skills-matrix {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.skills-matrix div {
  padding: 22px;
  border-radius: 22px;
  background: var(--b50);
  border: 1px solid var(--s200);
}

.skills-matrix p {
  margin-bottom: 0;
  color: var(--s600);
}

/* PARCOURS */

.parcours-section > .container {
  display: block;
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 56px;
}

.section-header h2 {
  margin-bottom: 14px;
}

.section-header p:not(.eyebrow) {
  color: var(--s600);
  margin-bottom: 0;
}

.section-formation {
  background: #fff;
}

.section-experience {
  background: linear-gradient(180deg, var(--b50), #fff);
  border-top: 1px solid var(--s200);
  position: relative;
}

.section-experience::before {
  content: "";
  display: block;
  width: 86px;
  height: 4px;
  background: linear-gradient(90deg, var(--b900), var(--b600));
  border-radius: 999px;
  margin: 0 auto 52px;
}

/* CONTACT */

.contact-page {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.contact-info {
  padding: 30px;
  background: #fff;
  border-radius: 28px;
  border: 1px solid var(--s200);
  box-shadow: var(--shadow);
}

.contact-item {
  margin-bottom: 20px;
}

.contact-item strong {
  display: block;
  margin-bottom: 5px;
  color: var(--s600);
}

.contact-item a {
  font-weight: 800;
  color: var(--b800);
}

.contact-photo {
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-photo img {
  width: 100%;
  max-width: 320px;
  border-radius: 24px;
  border: 4px solid #fff;
  object-fit: cover;
  box-shadow: 0 20px 40px rgba(0,0,0,.15);
}

/* FOOTER */

.footer {
  background: #f8fafc;
  border-top: 1px solid var(--s200);
  margin-top: 80px;
  padding-top: 50px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.footer-col h4 {
  font-size: 1.1rem;
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
  padding: 0;
}

.footer-col li {
  margin-bottom: 10px;
}

.footer-col a {
  color: var(--s700);
  transition: .2s;
}

.footer-col a:hover {
  color: var(--b600);
}

.footer-bottom {
  margin-top: 40px;
  padding: 20px 0;
  text-align: center;
  border-top: 1px solid var(--s200);
  color: var(--s500);
  font-size: .9rem;
}

.footer-bottom p {
  margin: 0;
}

/* RESPONSIVE */

@media (max-width: 980px) {
  .home-recruit-grid,
  .home-two-columns,
  .home-projects-grid,
  .project-list-card,
  .project-detail-grid,
  .detail-layout,
  .contact-page {
    grid-template-columns: 1fr;
  }

  .home-recruit-card {
    max-width: 520px;
    margin: 0 auto;
  }

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

  .project-summary-card {
    position: static;
  }

  .project-detail-cover img {
    height: auto;
  }

  .architecture-flow {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .home-cta-box,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    text-align: center;
  }

  .home-cta-box {
    padding: 28px;
  }
}

@media (max-width: 760px) {
  .section {
    padding: 70px 0;
  }

  .container,
  .navbar {
    width: min(100% - 28px, var(--max));
  }

  .nav-toggle {
    display: block;
  }

  .nav-menu {
    position: fixed;
    inset: 78px 14px auto;
    display: grid;
    gap: 8px;
    padding: 16px;
    border-radius: 24px;
    background: #fff;
    box-shadow: var(--shadow);
    border: 1px solid var(--s200);
    transform: translateY(-18px);
    opacity: 0;
    pointer-events: none;
    transition: .2s;
  }

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

  .nav-menu a {
    padding: 14px 16px;
    border-radius: 16px;
  }

  .home-recruit-hero {
    padding-top: 70px;
  }

  .home-recruit-info {
    position: static;
    margin-top: 14px;
  }

  .home-skills-grid,
  .feature-grid,
  .architecture-flow,
  .skills-matrix {
    grid-template-columns: 1fr;
  }

  .project-list-content,
  .detail-block {
    padding: 24px;
  }

  .project-topline {
    align-items: flex-start;
    flex-direction: column;
  }

  .world-step {
    grid-template-columns: 1fr;
  }

  .world-timeline::before {
    display: none;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: .01ms !important;
  }

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