@import url('https://fonts.googleapis.com/css2?family=Raleway:wght@400;500;600;700;800&family=Varela+Round&display=swap');

:root {
  --bleu: #004461;
  --orange: #E94D2A;
  --orange-hero: #FF8F4D;
  --vert: #01C69C;
  --bg: #F8F7FA;
  --bg-alt: #E7EEF3;
  --text: #334155;
  --max: 1248px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

h1, h2, h3 {
  font-family: 'Raleway', sans-serif;
  color: var(--bleu);
  line-height: 1.25;
  margin: 0;
}

.meta, .tag, nav, button, .btn, .stat-label, .contact-row {
  font-family: 'Varela Round', sans-serif;
}

a { color: var(--bleu); }
a:hover { color: var(--orange); }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ---------- Top nav ---------- */

.topnav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #fff;
  border-bottom: 1px solid var(--bg-alt);
}

.topnav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 0.8rem 0;
}

.topnav-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  font-family: 'Raleway', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--bleu);
}

.topnav-logo {
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--bleu);
  color: #fff;
  font-family: 'Varela Round', sans-serif;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.topnav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem;
}

.topnav-links a {
  font-family: 'Varela Round', sans-serif;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--bleu);
  text-decoration: none;
  white-space: nowrap;
}
.topnav-links a:hover { color: var(--orange); }

.topnav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--orange);
  color: #fff;
  font-family: 'Varela Round', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.6rem 1.15rem;
  border-radius: 999px;
  text-decoration: none;
  white-space: nowrap;
}
.topnav-cta:hover { background: #cf3f20; color: #fff; }

@media (max-width: 760px) {
  .topnav-links { display: none; }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  background: #fff;
  color: var(--text);
  padding: 76px 0 68px;
  border-bottom: 1px solid var(--bg-alt);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}

.hero-text {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.eyebrow {
  font-family: 'Varela Round', sans-serif;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--orange);
  margin: 0 0 18px;
}

.hero h1 {
  color: var(--bleu);
  font-size: 60px;
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: -0.01em;
  margin: 0 0 14px;
}

.hero .role {
  font-family: 'Varela Round', sans-serif;
  font-size: 24px;
  font-weight: 400;
  color: var(--orange);
  line-height: 1.35;
  margin: 0 0 18px;
}

.availability {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  align-self: flex-start;
  background: rgba(1,198,156,0.12);
  border: none;
  color: #047a61;
  border-radius: 999px;
  padding: 10px 18px;
  font-family: 'Varela Round', sans-serif;
  font-size: 15px;
  font-weight: 400;
  margin: 0 0 30px;
}

.availability-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--vert);
  flex: none;
}

.contact-row {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 0;
  font-size: 14px;
}

.contact-row li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  background: var(--bg-alt);
  color: var(--bleu);
}

.contact-row a { color: var(--bleu); text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.contact-row a:hover { color: var(--orange); }
.contact-row svg { flex: none; opacity: 0.85; }

.hero-photo {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-photo-frame {
  position: absolute;
  inset: 14px 10px 6px 18px;
  border: 2px solid var(--orange);
  border-radius: 32px;
  transform: rotate(3deg);
  z-index: 0;
}

.hero .avatar-btn {
  position: relative;
  z-index: 1;
  flex: none;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  border-radius: 32px;
  width: 100%;
  max-width: 340px;
}
.hero .avatar-btn:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
}

.hero .avatar-photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  height: auto;
  border-radius: 32px;
  object-fit: cover;
  border: none;
  background: var(--bg-alt);
  display: block;
  box-shadow: 0 20px 45px -20px rgba(0,68,97,0.35);
}

@media (max-width: 760px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-photo { order: -1; margin-bottom: 1rem; }
  .hero .avatar-btn { max-width: 240px; }
}

/* ---------- Sections ---------- */

main { padding-bottom: 0; }

section {
  padding: 80px 0;
  border-top: 1px solid var(--bg-alt);
  scroll-margin-top: 76px;
}

.section-title {
  font-family: 'Varela Round', sans-serif;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--orange);
  margin: 0 0 12px;
}

.section-headline {
  font-size: 36px;
  font-weight: 500;
  line-height: 1.2;
  color: var(--bleu);
  margin: 0 0 32px;
}

/* ---------- Profil ---------- */

#profil { border-top: none; }

.profil p { margin: 0 0 22px; font-size: 18px; line-height: 1.8; color: var(--text); max-width: 62ch; }

.profil-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
  align-items: center;
}

.profil-illustration-wrap {
  background: var(--bg);
  border: 1px solid var(--bg-alt);
  border-radius: 32px;
  padding: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.profil-illustration { width: 100%; max-width: 300px; height: auto; }

@media (max-width: 720px) {
  .profil-grid { grid-template-columns: 1fr; }
  .profil-illustration-wrap { max-width: 260px; margin: 0 auto; }
}

.badge {
  display: block;
  border-left: 4px solid var(--orange);
  padding-left: 20px;
  font-size: 18px;
  line-height: 1.75;
  color: var(--bleu);
  font-family: inherit;
  margin: 0;
}
.badge svg { display: none; }

/* ---------- Compétences ---------- */

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

@media (max-width: 900px) {
  .skills-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .skills-grid { grid-template-columns: 1fr; }
}

.skill-card {
  background: #fff;
  border: 1px solid var(--bg-alt);
  border-radius: 28px;
  padding: 30px;
}

.skill-card h3 {
  font-family: 'Varela Round', sans-serif;
  font-weight: 400;
  font-size: 19px;
  color: var(--bleu);
  line-height: 1.35;
  margin: 0 0 12px;
}

.skill-card p { margin: 0; font-size: 16px; line-height: 1.75; color: var(--text); }
.skill-card .chip-list { margin-top: 16px; }

.skill-card--featured {
  background: var(--bleu);
  border-color: var(--bleu);
  color: rgb(199,218,227);
}
.skill-card--featured h3 { color: #fff; }
.skill-card--featured p { color: rgb(199,218,227); }
.skill-card--featured .icon-badge { background: rgba(255,255,255,0.14) !important; }
.skill-card--featured .icon-badge svg { color: var(--vert) !important; }

/* ---------- Expérience ---------- */

.timeline { position: relative; padding-left: 52px; }
.timeline-rail {
  position: absolute;
  left: 19px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--bg-alt);
}

.job {
  position: relative;
  margin-bottom: 28px;
}
.job:last-child { margin-bottom: 0; }

.job-marker {
  position: absolute;
  left: -52px;
  top: 26px;
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: var(--bleu);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 6px #fff;
}
.job:first-child .job-marker { background: var(--orange); }
.job-marker--muted { background: var(--bg-alt); color: var(--bleu); }

.job-card {
  background: var(--bg);
  border: 1px solid var(--bg-alt);
  border-radius: 28px;
  padding: 32px;
}
.job-card--plain { background: #fff; padding: 30px 32px; }

.job-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 6px;
}

.job-title {
  font-family: 'Raleway', sans-serif;
  font-weight: 600;
  font-size: 26px;
  color: var(--bleu);
  margin: 0;
}
.job-card--plain .job-title { font-size: 22px; margin-bottom: 16px; }

.job-dates {
  font-family: 'Varela Round', sans-serif;
  font-size: 13px;
  color: var(--bleu);
  background: var(--bg-alt);
  padding: 6px 14px;
  border-radius: 999px;
  white-space: nowrap;
}

.job-role {
  font-family: 'Varela Round', sans-serif;
  font-style: normal;
  font-size: 16px;
  color: var(--orange);
  margin: 0 0 20px;
}

.job ul {
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.job ul:last-child { margin-bottom: 0; }

.job li {
  position: relative;
  padding-left: 19px;
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
  margin: 0;
}
.job li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--vert);
}

.compact-entry { font-size: 17px; line-height: 1.7; color: var(--text); margin-bottom: 10px; }
.compact-entry:last-child { margin-bottom: 0; }
.compact-entry .job-dates { background: none; padding: 0; color: var(--bleu); font-weight: 700; }

/* ---------- Projets ---------- */

.project {
  background: #fff;
  border: 1px solid var(--bg-alt);
  border-radius: 32px;
  padding: 40px;
  margin-bottom: 24px;
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 44px;
  align-items: start;
}
.project:last-child { margin-bottom: 0; }

.project-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 20px;
}

.project-title {
  font-family: 'Raleway', sans-serif;
  font-weight: 600;
  font-size: 28px;
  line-height: 1.2;
  color: var(--bleu);
  margin: 0;
}

.project ul {
  list-style: none;
  margin: 0 0 26px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.project li {
  position: relative;
  padding-left: 19px;
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
  margin: 0;
}
.project li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--orange);
}

.project-media {
  background: var(--bg);
  border: 1px solid var(--bg-alt);
  border-radius: 28px;
  padding: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.project-illustration { width: 100%; height: auto; }

@media (max-width: 760px) {
  .project { grid-template-columns: 1fr; }
  .project-media { order: -1; max-width: 260px; margin: 0 auto; }
}

.job-link, .cta-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 1rem;
  font-family: 'Varela Round', sans-serif;
  font-size: 15px;
  font-weight: 400;
  color: #fff;
  border: 2px solid var(--orange);
  background: var(--orange);
  border-radius: 999px;
  padding: 13px 22px;
  text-decoration: none;
  transition: background 300ms, color 300ms;
}
.job-link:hover, .cta-link:hover { background: #cf3f20; color: #fff; }

.job-link--outline-bleu {
  border-color: var(--bleu);
  background: #fff;
  color: var(--bleu);
}
.job-link--outline-bleu:hover { background: var(--bg-alt); color: var(--bleu); }

.cta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}
.cta-row .cta-link, .cta-row .job-link { margin-top: 0; }

.aside-box {
  background: var(--bg-alt);
  border-radius: 20px;
  padding: 24px;
  margin-top: 1rem;
  font-size: 0.9rem;
}
.aside-box p { margin: 0 0 0.6rem; }
.aside-box p:last-child { margin-bottom: 0; }
.aside-box strong { color: var(--bleu); }

/* ---------- Callouts projet ---------- */

.project-callouts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.project-callout {
  background: var(--bg);
  border-radius: 20px;
  padding: 22px;
  border-left: 4px solid var(--bleu);
}
.project-callout--orange { border-left-color: var(--orange); }
.project-callout--vert { border-left-color: var(--vert); }

.project-callout-label {
  display: block;
  font-family: 'Varela Round', sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--orange);
  margin-bottom: 10px;
}
.project-callout p { font-size: 16px; line-height: 1.7; color: var(--text); margin: 0; }

.project-callout--pill {
  grid-column: 1 / -1;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  margin: 20px 0 0;
  font-family: 'Varela Round', sans-serif;
  font-size: 15px;
  color: #047a61;
  background: rgba(1,198,156,0.12);
  padding: 12px 20px;
  border-radius: 999px;
  border: none;
}

@media (max-width: 640px) {
  .project-callouts { grid-template-columns: 1fr; }
}

/* ---------- Projet vedette ---------- */

.project--featured {
  background: var(--bleu);
  border: none;
  color: rgb(199,218,227);
}
.project--featured .project-title { color: #fff; }
.project--featured .eyebrow { color: #f7bfad; }
.project--featured li { color: rgb(226,237,242); }
.project--featured li::before { background: var(--vert); }
.project--featured p { color: rgb(199,218,227); }
.project--featured .aside-box { background: rgba(255,255,255,0.08); }
.project--featured .aside-box strong { color: #fff; }
.project--featured .aside-box p { color: rgb(226,237,242); }
.project--featured .project-callout-label { color: #f7bfad; }
.project--featured .project-media { background: rgba(255,255,255,0.08); border: none; }

.job-link--outline {
  background: transparent;
  border: 2px solid rgba(255,255,255,0.5);
  color: #fff;
}
.job-link--outline:hover { background: rgba(255,255,255,0.12); color: #fff; }

/* ---------- Diplômes / Certifications ---------- */

.formations-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

@media (max-width: 720px) {
  .formations-grid { grid-template-columns: 1fr; gap: 48px; }
}

.diploma-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.diploma-list li {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  background: #fff;
  border: 1px solid var(--bg-alt);
  border-radius: 20px;
  padding: 20px 22px;
}
.diploma-list li span:last-child { font-size: 17px; line-height: 1.65; color: var(--text); }
.diploma-year {
  flex: none;
  font-family: 'Varela Round', sans-serif;
  font-size: 14px;
  color: var(--bleu);
  background: var(--bg-alt);
  border-radius: 999px;
  padding: 6px 12px;
}
.diploma-list li:first-child .diploma-year { color: #fff; background: var(--orange); }

/* ---------- Chips (outils) ---------- */

.chip-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chip-list li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--bg);
  border: 1px solid var(--bg-alt);
  color: var(--bleu);
  border-radius: 999px;
  padding: 7px 13px;
  font-size: 13px;
}
.chip-list li::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--orange);
  flex: none;
}

/* ---------- Icon badge (stats / compétences) ---------- */

.icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  margin-bottom: 18px;
  background: rgba(0,68,97,0.1);
}
.icon-badge svg { color: var(--bleu); }

.skill-card:nth-of-type(3n+2) .icon-badge { background: rgba(233,77,42,0.1); }
.skill-card:nth-of-type(3n+2) .icon-badge svg { color: var(--orange); }
.skill-card:nth-of-type(3n) .icon-badge { background: rgba(1,198,156,0.12); }
.skill-card:nth-of-type(3n) .icon-badge svg { color: #01a583; }

.platform-card:nth-of-type(2) .icon-badge,
.platform-card:nth-of-type(3) .icon-badge { background: rgba(233,77,42,0.1); }
.platform-card:nth-of-type(2) .icon-badge svg,
.platform-card:nth-of-type(3) .icon-badge svg { color: var(--orange); }

/* ---------- Chiffres ---------- */

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

@media (max-width: 900px) {
  .stats-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 560px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 380px) {
  .stats-grid { grid-template-columns: 1fr; }
}

.moodle-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
  margin-bottom: 1.25rem;
}
@media (max-width: 760px) {
  .moodle-layout { grid-template-columns: 1fr; }
}
.moodle-layout .carousel { margin-bottom: 0; }

.stat-card {
  background: #fff;
  border-radius: 24px;
  padding: 26px 24px;
  text-align: left;
}

.stat-value {
  font-family: 'Raleway', sans-serif;
  font-weight: 600;
  font-size: 42px;
  line-height: 1;
  color: var(--orange);
  margin: 14px 0 4px;
}

.stat-label {
  font-family: 'Varela Round', sans-serif;
  font-size: 14px;
  color: var(--text);
  margin: 0;
}

#chiffres {
  background: var(--bleu);
  color: rgba(255,255,255,0.85);
  border-top: none;
  padding: 66px 0 70px;
}
#chiffres .section-title { color: #f7bfad; }
#chiffres .section-headline { color: #fff; }
#chiffres .stat-card { background: rgba(255,255,255,0.08); }
#chiffres .stat-value { color: #fff; }
#chiffres .stat-label { color: rgb(188,211,222); }
#chiffres .icon-badge { background: rgba(255,255,255,0.14); border-radius: 50%; }
#chiffres .icon-badge svg { color: var(--vert); }

/* ---------- Alternance des fonds de section (accueil) ---------- */

#competences, #projets, #formations { background: var(--bg); }
#profil, #experience, #realisations { background: #fff; }

/* ---------- Alternance des fonds de section (mes réalisations) ---------- */

#intro, #elearning, #moodle, #videos { background: #fff; }
#intro { padding: 36px 0; }
#plateformes, #lms, #sites { background: var(--bg); }

/* ---------- Grille d'embeds (vidéo / e-learning) ---------- */

.embed-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-bottom: 1.75rem;
}

.embed-grid .video-embed { margin-bottom: 0; }

/* ---------- Processus de fabrication ---------- */

.process {
  margin-top: 0;
}
.process-lead {
  max-width: 62ch;
  margin: 0 0 1.75rem;
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--text);
}

/* Couleur par phase */
.is-conception { --phase: var(--bleu); --phase-ink: var(--bleu); }
.is-production { --phase: var(--orange); --phase-ink: var(--orange); }
.is-validation { --phase: var(--vert); --phase-ink: #00997a; }

/* Vue d'ensemble : frise 01 → 06 + bandeau des phases */
.process-overview {
  background: #fff;
  border: 1px solid var(--bg-alt);
  border-radius: 28px;
  padding: 30px 28px;
  margin-bottom: 24px;
}
.process-timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
}
.process-timeline-step {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 0 6px;
  text-align: center;
}
.process-timeline-step::before {
  content: "";
  position: absolute;
  top: 22px;
  left: 50%;
  width: 100%;
  height: 2px;
  background: var(--phase);
  opacity: 0.28;
}
.process-timeline-step:last-child::before { display: none; }
.process-dot {
  position: relative;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  background: var(--phase);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Varela Round', sans-serif;
  font-size: 16px;
}
.process-dot-label {
  font-family: 'Varela Round', sans-serif;
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--bleu);
}
.process-phases {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 30px;
}
.process-phase {
  border-radius: 16px;
  padding: 13px 18px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.process-phase.is-conception { background: var(--bg-alt); }
.process-phase.is-production { background: rgba(233,77,42,0.10); }
.process-phase.is-validation { background: rgba(1,198,156,0.12); }
.process-phase span {
  font-family: 'Varela Round', sans-serif;
  font-size: 10.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--phase-ink);
  opacity: 0.85;
}
.process-phase strong {
  font-family: 'Varela Round', sans-serif;
  font-weight: 400;
  font-size: 15px;
  color: var(--phase-ink);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 900px) {
  .process-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .process-grid { grid-template-columns: 1fr; }
}
.process-step {
  background: #fff;
  border: 1px solid var(--bg-alt);
  border-radius: 24px;
  padding: 26px 24px;
  transition: transform .3s, border-color .3s;
}
.process-step:hover { transform: translateY(-4px); border-color: var(--vert); }
.process-step-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.process-num {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Varela Round', sans-serif;
  font-size: 15px;
  color: var(--phase-ink);
  background: rgba(0,68,97,0.10);
}
.process-step.is-production .process-num { background: rgba(233,77,42,0.10); }
.process-step.is-validation .process-num { background: rgba(1,198,156,0.14); }
.process-tag {
  font-family: 'Varela Round', sans-serif;
  font-size: 10.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #94a3b8;
}
.process-step h4 {
  font-family: 'Varela Round', sans-serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 1.25;
  color: var(--orange);
  margin: 0 0 10px;
}
.process-step p { font-size: 14.5px; line-height: 1.7; color: var(--text); margin: 0; }

/* Carte finale sur fond sombre */
.process-step--featured { background: var(--bleu); border-color: var(--bleu); }
.process-step--featured:hover { border-color: var(--bleu); }
.process-step--featured .process-num { background: rgba(255,255,255,0.14); color: #fff; }
.process-step--featured .process-tag { color: #fed7aa; }
.process-step--featured h4 { color: #fff; }
.process-step--featured p { color: rgba(255,255,255,0.86); }

/* Encadré « la chaîne se boucle » */
.process-loop {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--bg-alt);
  border-radius: 20px;
  padding: 18px 24px;
  margin-top: 24px;
}
.process-loop-icon {
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: #fff;
  color: var(--bleu);
  display: flex;
  align-items: center;
  justify-content: center;
}
.process-loop p {
  margin: 0;
  font-family: 'Varela Round', sans-serif;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--bleu);
}
@media (max-width: 760px) {
  .process-timeline { grid-template-columns: repeat(3, 1fr); row-gap: 24px; }
  .process-timeline-step:nth-child(3)::before { display: none; }
  .process-phases { grid-template-columns: 1fr; }
}
@media (max-width: 460px) {
  .process-timeline { grid-template-columns: repeat(2, 1fr); }
  .process-timeline-step::before { display: none; }
}

/* ---------- Onéduc.fr (fiche réalisation) ---------- */

/* 1a — bandeau bleu éditorial */
.oneduc-hero {
  background: var(--bleu);
  border-radius: 32px;
  padding: 56px 52px;
  overflow: hidden;
}
.oneduc-hero-grid {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 48px;
  align-items: start;
}
.oneduc-hero-text { display: flex; flex-direction: column; gap: 20px; }
.oneduc-kicker {
  font-family: 'Varela Round', sans-serif;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #FED7AA;
}
.oneduc-hero h3 {
  margin: 0;
  font-family: 'Raleway', sans-serif;
  font-weight: 500;
  font-size: 42px;
  line-height: 1.12;
  color: #fff;
}
.oneduc-hero-lead {
  margin: 0;
  font-family: 'Varela Round', sans-serif;
  font-size: 21px;
  line-height: 1.4;
  color: #FDBA9B;
}
.oneduc-hero-desc {
  margin: 0;
  font-size: 16px;
  line-height: 1.75;
  color: rgba(255,255,255,0.86);
  max-width: 54ch;
}
.oneduc-facts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 4px;
}
.oneduc-fact {
  background: rgba(255,255,255,0.08);
  border-radius: 20px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.oneduc-fact strong {
  font-family: 'Varela Round', sans-serif;
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #FED7AA;
}
.oneduc-fact span {
  font-size: 14.5px;
  line-height: 1.6;
  color: rgba(255,255,255,0.86);
}
.oneduc-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 6px;
}
.oneduc-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 999px;
  border: 2px solid var(--orange);
  background: var(--orange);
  color: #fff;
  font-family: 'Varela Round', sans-serif;
  font-size: 15px;
  transition: background .3s, color .3s, border-color .3s;
}
.oneduc-btn:hover { background: transparent; color: #fff; }
.oneduc-btn--ghost {
  border-color: rgba(255,255,255,0.55);
  background: transparent;
}
.oneduc-btn--ghost:hover { background: #fff; color: var(--bleu); border-color: #fff; }

.oneduc-hero-shots { display: flex; flex-direction: column; gap: 16px; }
.oneduc-hero-shots .shot-zoom {
  box-shadow: 0 18px 40px -18px rgba(0,0,0,0.45);
}
.oneduc-hero-shots img { height: 100%; }
.oneduc-shot-lg img { height: 340px; }
.oneduc-shot-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.oneduc-shot-row img { height: 190px; }
.oneduc-shot-wide img { height: 210px; }
.oneduc-hero-caption {
  margin: 0;
  font-family: 'Varela Round', sans-serif;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
}

/* Vignette cliquable (zoom modale) — commune aux deux blocs */
.shot-zoom {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  cursor: zoom-in;
}
.shot-zoom img {
  display: block;
  width: 100%;
  object-fit: cover;
  object-position: top left;
}

/* 1b — fiche projet claire */
.oneduc-card {
  background: #fff;
  border: 1px solid var(--bg-alt);
  border-radius: 32px;
  padding: 52px 48px;
}
.oneduc-card-head {
  display: grid;
  grid-template-columns: 0.62fr 0.38fr;
  gap: 48px;
  align-items: end;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--bg-alt);
}
.oneduc-card-head-main { display: flex; flex-direction: column; gap: 16px; }
.oneduc-card-eyebrow {
  font-family: 'Varela Round', sans-serif;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--bleu);
}
.oneduc-logo { display: block; height: 56px; width: auto; align-self: flex-start; }
.oneduc-card-head h3 {
  margin: 0;
  font-family: 'Raleway', sans-serif;
  font-weight: 500;
  font-size: 34px;
  line-height: 1.15;
  color: var(--bleu);
}
.oneduc-card-head-aside { display: flex; flex-direction: column; gap: 16px; }
.oneduc-card-head-aside p { margin: 0; font-size: 16px; line-height: 1.75; color: var(--text); }
.oneduc-card-actions { display: flex; flex-wrap: wrap; gap: 8px; }

.oneduc-pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 32px 0;
}
.oneduc-pillar {
  background: #fff;
  border: 1px solid var(--bg-alt);
  border-radius: 24px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform .3s, border-color .3s;
}
.oneduc-pillar:hover { transform: translateY(-4px); border-color: var(--vert); }
.oneduc-pillar .icon-badge {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  margin-bottom: 0;
  background: rgba(0,68,97,0.10);
  color: var(--bleu);
}
.oneduc-pillar .icon-badge svg { color: inherit; }
.oneduc-pillar:nth-child(2) .icon-badge { background: rgba(233,77,42,0.10); color: var(--orange); }
.oneduc-pillar:nth-child(3) .icon-badge { background: rgba(1,198,156,0.12); color: #00997a; }
.oneduc-pillar h4 {
  margin: 0;
  font-family: 'Varela Round', sans-serif;
  font-weight: 400;
  font-size: 16px;
  color: var(--bleu);
}
.oneduc-pillar p { margin: 0; font-size: 14.5px; line-height: 1.65; color: var(--text); }

.oneduc-figs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.oneduc-figs figure { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.oneduc-figs .shot-zoom {
  border: 1px solid var(--bg-alt);
  box-shadow: 0 10px 30px -10px rgba(0,68,97,0.10);
}
.oneduc-figs img { height: 148px; }
.oneduc-figs figcaption {
  font-family: 'Varela Round', sans-serif;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #64748B;
}

@media (max-width: 900px) {
  .oneduc-hero-grid { grid-template-columns: 1fr; }
  .oneduc-card-head { grid-template-columns: 1fr; align-items: start; gap: 24px; }
  .oneduc-pillars { grid-template-columns: repeat(2, 1fr); }
  .oneduc-figs { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .oneduc-hero { padding: 40px 26px; }
  .oneduc-card { padding: 36px 24px; }
  .oneduc-hero h3 { font-size: 32px; }
  .oneduc-facts { grid-template-columns: 1fr; }
  .oneduc-pillars { grid-template-columns: 1fr; }
  .oneduc-figs { grid-template-columns: 1fr; }
}

.tool-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--bg);
  border: 1px solid var(--bg-alt);
  color: var(--bleu);
  border-radius: 999px;
  padding: 5px 12px;
  font-family: 'Varela Round', sans-serif;
  font-size: 12px;
  margin: 0 0 0.8rem;
}
.tool-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange);
}

/* ---------- Carrousel ---------- */

.carousel { margin-bottom: 1.25rem; }

.carousel-viewport {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  aspect-ratio: 1600 / 1072;
  background: var(--bg-alt);
}

.carousel-track {
  display: flex;
  height: 100%;
  transition: transform 0.4s ease;
}

.carousel-slide { flex: 0 0 100%; height: 100%; }

.carousel-zoom {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.carousel-prev, .carousel-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(0,20,30,0.55);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  line-height: 1;
}

.carousel-prev:hover, .carousel-next:hover { background: var(--orange); }
.carousel-prev { left: 0.6rem; }
.carousel-next { right: 0.6rem; }

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.carousel-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: rgba(0,68,97,0.25);
  cursor: pointer;
}
.carousel-dot:hover { background: rgba(0,68,97,0.45); }

.carousel-dot[aria-current="true"] { background: var(--orange); }

/* ---------- Certifications ---------- */

.cert-list { display: flex; flex-direction: column; gap: 14px; margin-bottom: 32px; }
.cert-item {
  background: #fff;
  border: 1px solid var(--bg-alt);
  border-radius: 24px;
  padding: 24px;
  display: flex;
  gap: 18px;
  align-items: flex-start;
}
.cert-item p { font-size: 17px; line-height: 1.65; color: var(--text); margin: 0; }
.cert-code {
  font-family: 'Varela Round', sans-serif;
  font-size: 14px;
  color: var(--bleu);
  background: rgba(1,198,156,0.14);
  border-radius: 12px;
  padding: 8px 14px;
  flex: none;
}

/* ---------- Réalisations en ligne ---------- */

.platform-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

@media (max-width: 900px) {
  .platform-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .platform-grid { grid-template-columns: 1fr; }
}

.platform-card {
  background: #fff;
  border: 1px solid var(--bg-alt);
  border-radius: 28px;
  padding: 28px;
  display: block;
  text-decoration: none;
}
.platform-card-zoom {
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 18px;
}
.platform-card-image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
  transition: transform 0.25s ease;
}
.platform-card-zoom:hover .platform-card-image,
.platform-card-zoom:focus-visible .platform-card-image {
  transform: scale(1.04);
}
.platform-card h3 { font-family: 'Varela Round', sans-serif; font-weight: 400; font-size: 18px; color: var(--bleu); margin: 0 0 10px; }
.platform-card p { font-size: 16px; line-height: 1.7; color: var(--text); margin: 0 0 14px; }
.platform-card > a, .platform-card > span.platform-link {
  font-family: 'Varela Round', sans-serif;
  font-size: 14px;
  color: var(--orange);
}

.vitrine-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 40px;
}
.vitrine-head .section-headline,
.vitrine-head .section-title { margin-bottom: 0; }
.vitrine-head .job-link { margin-top: 0; flex: none; }

.video-embed {
  background: #fff;
  border-radius: 24px;
  padding: 1.4rem;
  margin-bottom: 1.75rem;
  box-shadow: 0 1px 2px rgba(0,68,97,0.06);
}

.video-frame {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  border-radius: 20px;
  overflow: hidden;
  background: var(--bg-alt);
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-frame video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
}

.embed-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: none;
  cursor: pointer;
  background: #000;
}

.embed-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.embed-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(0,20,30,0.65);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease;
}

.embed-poster:hover .embed-play,
.embed-poster:focus-visible .embed-play {
  background: var(--orange);
  transform: translate(-50%, -50%) scale(1.08);
}

.video-caption p { font-size: 0.9rem; margin: 1rem 0 0; }

.sites-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 0.6rem 1.5rem;
}
.sites-list li {
  font-size: 0.93rem;
  padding-left: 1rem;
  position: relative;
}
.sites-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange);
}

/* ---------- Centres d'intérêt ---------- */

.interest-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.interest-tags span {
  font-family: 'Varela Round', sans-serif;
  background: #fff;
  border: 1px solid var(--bg-alt);
  color: var(--bleu);
  border-radius: 999px;
  padding: 0.5rem 1.1rem;
  font-size: 0.9rem;
}

/* ---------- Footer ---------- */

footer {
  background: var(--bleu);
  color: rgba(255,255,255,0.85);
  font-family: 'Varela Round', sans-serif;
}
footer .wrap {
  padding: 56px 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.footer-name {
  font-family: 'Raleway', sans-serif;
  font-weight: 500;
  font-size: 24px;
  color: #fff;
  margin: 0 0 8px;
}
.footer-role { font-size: 15px; color: rgb(188,211,222); margin: 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: 12px; font-size: 15px; margin: 0; padding: 0; list-style: none; }
.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 20px;
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
  color: #fff;
  text-decoration: none;
  transition: background 250ms;
}
.footer-links a:hover { background: rgba(255,255,255,0.22); color: #fff; }

/* ---------- Modale photo ---------- */

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0,20,30,0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.modal-overlay[hidden] { display: none; }

.modal-image {
  max-width: min(1100px, 92vw);
  max-height: 85vh;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  object-fit: contain;
}

.embed-modal-frame {
  width: min(1100px, 92vw);
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  background: #000;
}

.embed-modal-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.modal-close {
  position: fixed;
  top: 1.25rem;
  right: 1.5rem;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.modal-close:hover { background: var(--orange); }

@media (max-width: 560px) {
  .hero h1 { font-size: 2.2rem; }
  .hero .role { font-size: 1.15rem; }
  section { padding: 48px 0; }
  .job-head, .project-head { flex-direction: column; align-items: flex-start; }
  .timeline { padding-left: 44px; }
  .timeline-rail { left: 15px; }
  .job-marker { left: -44px; width: 32px; height: 32px; }
}

@media print {
  .hero { background: none !important; color: var(--bleu) !important; padding-top: 0; }
  .hero .role { color: var(--orange) !important; text-shadow: none !important; }
  .contact-row li, .contact-row a { color: var(--text) !important; }
  #chiffres { background: none !important; }
  #chiffres .section-headline, #chiffres .stat-value { color: var(--bleu) !important; }
  #chiffres .stat-label { color: var(--text) !important; }
  .avatar-photo { border-color: var(--bg-alt); }
  .availability { color: var(--bleu) !important; background: none !important; border-color: var(--vert) !important; }
  .hero .cta-link, .cta-row { display: none; }
  .topnav { display: none; }
  footer { display: none; }
  .job-card, .project, .skill-card, .stat-card, .platform-card, .cert-item, .video-embed, .diploma-list li { box-shadow: none !important; border: 1px solid var(--bg-alt); }
  .video-frame { display: none; }
}
