:root {
  --ink: #2d1717;
  --red: #a91517;
  --red-dark: #811014;
  --pink: #fde7e7;
  --pink-deep: #f7cfcf;
  --paper: #fffdfb;
  --muted: #746b69;
  --line: #eadfdb;
  --chip: #f8f4f2;
  --shadow: 0 18px 45px rgba(91, 26, 26, 0.06);
  --radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--paper);
  font-family: "Inter", sans-serif;
  font-size: 16px;
  line-height: 1.55;
}

a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button { color: inherit; }

.container {
  width: min(1200px, calc(100% - 48px));
  margin-inline: auto;
}

h1, h2, h3, p { margin-top: 0; }
h1, h2, .project-card h3, .skill-number, .contact-callout h3 {
  font-family: "Londrina Solid", sans-serif;
  font-weight: 400;
  letter-spacing: 0.01em;
}
h2 {
  margin-bottom: 34px;
  color: var(--red);
  font-size: clamp(2.15rem, 4vw, 3.7rem);
  line-height: 0.95;
}

.site-header {
  padding: 18px 0 12px;
}

.header-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
}

.brand {
  display: inline-flex;
  width: max-content;
  height: 54px;
  align-items: center;
  gap: 12px;
  color: var(--red-dark);
  font-family: "Londrina Solid", sans-serif;
  font-size: 2rem;
  line-height: 1;
}

.brand img {
  display: block;
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.main-nav {
  justify-self: start;
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 8px 18px;
  background: #fde7e7;
  border-radius: 999px;
}

.main-nav a {
  padding: 13px 24px;
  border-radius: 999px;
  color: var(--red-dark);
  font-size: .9rem;
  font-weight: 800;
  white-space: nowrap;
  transition: background .2s ease, transform .2s ease;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  background: rgba(255, 255, 255, .72);
  transform: translateY(-1px);
}

.language-switch {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #b47b76;
  font-size: .76rem;
  font-weight: 600;
}

.language-switch a {
  padding: 4px 1px;
}

.language-switch .is-active {
  color: var(--red);
  font-weight: 800;
}

.hero {
  padding-top: 4px;
  padding-bottom: 14px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: #a6726e;
  font-size: .68rem;
  font-weight: 500;
}

.breadcrumb a:first-child {
  color: var(--red);
  font-weight: 800;
}

.breadcrumb a:hover,
.breadcrumb a:focus-visible {
  color: var(--red);
}

.breadcrumb span {
  opacity: .7;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 577px) 288px 288px;
  gap: 23px;
  align-items: start;
}

.hero-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.hero h1 {
  max-width: 570px;
  margin-bottom: 24px;
  color: var(--red-dark);
  font-size: clamp(3.35rem, 4vw, 4rem);
  line-height: 1.02;
}

.hero figure {
  margin: 0;
}

.hero img {
  display: block;
}

.hero-campus {
  overflow: hidden;
  width: 100%;
  margin-top: auto;
  border-radius: 48px;
}

.hero-campus img {
  width: 100%;
  height: auto;
}

.hero-phone {
  overflow: hidden;
  width: 100%;
  border-radius: 52px;
}

.hero-phone img {
  width: 100%;
  height: auto;
}

.hero-side {
  display: grid;
  gap: 28px;
  align-content: start;
}

.hero-photo {
  overflow: hidden;
  width: 100%;
  border-radius: 58px;
}

.hero-photo img {
  width: 100%;
  height: auto;
}

.hero-character {
  display: flex;
  width: 100%;
  height: 340px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-character img {
  width: auto;
  max-width: 100%;
  height: 100%;
  object-fit: contain;
}

.hero-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 14px 0 0;
  color: var(--red);
  font-family: "Londrina Solid", sans-serif;
  font-size: 1.28rem;
  font-weight: 400;
  line-height: 1.1;
  text-align: center;
}

.hero-note img {
  flex: 0 0 auto;
  width: 24px;
  height: 19px;
}


.wave-section { position: relative; isolation: isolate; }
.wave-section::before {
  content: "";
  position: absolute;
  inset: 0 -4%;
  z-index: -1;
  background: var(--pink);
  border-radius: 50% 50% 48% 52% / 5% 7% 6% 5%;
}

.diplomas {
  min-height: 720px;
  padding: 105px 0 125px;
}

.diplomas::before {
  inset-block: 18px 35px;
  border-radius: 50% 50% 46% 54% / 7% 10% 8% 6%;
}

.diplomas-inner {
  max-width: 440px;
}

.diplomas h2 {
  margin-bottom: 36px;
  color: var(--red-dark);
  font-size: clamp(2.75rem, 4.8vw, 3.6rem);
  text-align: center;
}

.timeline-wrap {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  width: min(100%, 390px);
  min-height: 390px;
  margin: 0 auto;
}

.timeline-visual {
  display: flex;
  justify-content: center;
  padding-top: 29px;
  padding-right: 4px;
}

.timeline-visual img {
  display: block;
  width: 58px;
  height: auto;
  object-fit: contain;
}

.timeline-items {
  display: grid;
  grid-template-rows: repeat(3, 1fr);
  min-height: 390px;
}

.diploma-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 72px;
  align-items: center;
  column-gap: 2px;
  min-width: 0;
}

.diploma-copy {
  min-width: 0;
}

/* Les trois textes n'ont pas la même hauteur : ces décalages optiques
   les alignent avec les repères du fil comme sur le mockup. */
.diploma-item:first-child .diploma-copy {
  transform: translateY(-11px);
}

.diploma-item:last-child .diploma-copy {
  transform: translateY(24px);
}

.diploma-item p {
  margin-bottom: 0;
  color: #392d2b;
  font-size: .81rem;
  line-height: 1.42;
}

.diploma-item .year {
  margin-bottom: 1px;
  color: var(--red);
  font-family: "Londrina Solid", sans-serif;
  font-size: 1.65rem;
  line-height: .95;
  text-transform: uppercase;
}

.diploma-item h3 {
  margin: 0 0 2px;
  color: #392d2b;
  font-family: "Inter", sans-serif;
  font-size: .79rem;
  font-weight: 500;
  line-height: 1.2;
  text-transform: uppercase;
  white-space: nowrap;
}

.diploma-logo {
  display: block;
  justify-self: center;
  width: auto;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.diploma-logo-pix {
  width: 88px;
  transform: translateY(-14px);
}

.diploma-logo-ozanam {
  width: 70px;
}

.diploma-logo-iut {
  width: 68px;
  transform: translateY(18px);
}

.projects {
  padding-top: 88px;
  padding-bottom: 92px;
}

.section-heading-projects {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 34px;
}

.section-heading-projects h2 {
  margin-bottom: 0;
  color: var(--red-dark);
}

.project-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 9px;
}

.project-filters button {
  padding: 7px 16px;
  border: 1px solid #ddd5d2;
  background: transparent;
  border-radius: 999px;
  color: #9f9794;
  font-size: .72rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: color .2s ease, background-color .2s ease, border-color .2s ease, transform .2s ease;
}

.project-filters button:hover { transform: translateY(-1px); }

.project-filters .is-active {
  border-color: transparent;
  color: var(--red);
  background: #fde3e3;
  font-weight: 800;
}

.project-filters button:focus-visible,
.action-btn:focus-visible,
.contact-list a:focus-visible,
.footer-brand:focus-visible {
  outline: 3px solid var(--pink-deep);
  outline-offset: 3px;
}

.project-card[hidden] { display: none; }

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.project-card {
  position: relative;
  min-height: 254px;
  padding: 22px 20px 20px;
  border: 1px solid #e5dedd;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  overflow: hidden;
}

.project-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--red);
}

.project-card-wide {
  grid-column: span 2;
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1fr);
  padding: 0;
}

.project-panel {
  padding: 22px 20px 20px;
}

.project-panel-main {
  border-right: 1px solid #e5dedd;
}

.project-index {
  margin-bottom: 10px;
  color: #bbb1af;
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.project-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  padding: 6px 12px;
  border: 1px solid currentColor;
  border-radius: 9px;
  font-size: .70rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .04em;
}

.badge-app {
  color: #f4682c;
  background: #fff3ec;
}

.badge-figma {
  color: #9c6ce9;
  background: #f3ebff;
}

.badge-web {
  color: #5f74ff;
  background: #edf1ff;
}

.badge-sae {
  color: #2d9267;
  background: #edf9f1;
}

.badge-javafx {
  color: #f09040;
  background: #fff3e8;
}

.type-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.type-row .project-badge {
  margin-bottom: 0;
}

.project-card h3 {
  margin-bottom: 12px;
  color: #171414;
  font-size: 2.45rem;
  line-height: .95;
}

.project-card-simple h3 {
  font-size: 2.05rem;
}

.project-card p:not(.project-index):not(.feature-title) {
  margin-bottom: 0;
  color: #a89d98;
  font-size: .80rem;
  line-height: 1.85;
}

.project-panel-main p {
  max-width: 355px;
  font-size: .82rem;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
  margin-bottom: 18px;
}

.tag-list span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border: 1px solid #ddd6d4;
  border-radius: 7px;
  background: #f6f4f3;
  color: #b8aeaa;
  font-size: .66rem;
  font-weight: 500;
  line-height: 1;
}

.tag-list-bottom {
  margin-top: 14px;
  margin-bottom: 0;
}

.feature-title {
  margin-bottom: 14px;
  color: #b0a6a2;
  font-size: .66rem;
  font-weight: 500;
  letter-spacing: .25em;
  text-transform: uppercase;
}

.feature-list {
  display: grid;
  gap: 9px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.feature-list li {
  display: flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid #ddd6d3;
  border-radius: 9px;
  background: #f7f3f2;
  color: #9d928e;
  font-size: .72rem;
  font-weight: 600;
}

.feature-list li::before {
  content: "✓";
  margin-right: 10px;
  color: #f06d59;
  font-size: .9rem;
  line-height: 1;
}

.project-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: .90rem;
  font-weight: 700;
  line-height: 1;
}

.action-btn img {
  display: block;
  width: auto;
  height: 14px;
  object-fit: contain;
}

.action-btn-red {
  color: var(--red);
  background: #fde8e8;
}

.action-btn-dark {
  color: #151212;
  background: #efefef;
}

.action-btn-light {
  color: #151212;
  background: #eeeeee;
}

.action-btn-wide {
  padding-inline: 16px;
}

.skills { padding: 118px 0 132px; }
.skills::before { inset-block: 12px 20px; border-radius: 50% 50% 48% 52% / 7% 6% 8% 6%; }
.skills h2 { margin-bottom: 30px; color: var(--red-dark); text-align: center; }
.skills-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.skill-card {
  min-height: 350px;
  padding: 26px 22px 22px;
  border: 1px solid #eee6e4;
  border-radius: 17px;
  background: white;
  box-shadow: 0 10px 28px rgba(91, 26, 26, .035);
}
.skill-number { margin-bottom: 9px; color: var(--red); font-size: 2rem; line-height: 1; }
.skill-card h3 { margin-bottom: 6px; font-family: "Inter", sans-serif; font-size: .78rem; font-weight: 800; }
.skill-subtitle { margin-bottom: 16px; color: #a9a09d; font-size: .54rem; font-weight: 600; letter-spacing: .15em; }
.skill-card ul { padding: 0; margin: 0; list-style: none; }
.skill-card li {
  display: flex;
  min-height: 34px;
  align-items: center;
  gap: 9px;
  border-bottom: 1px solid #eee9e7;
  color: #171414;
  font-size: .67rem;
  font-weight: 600;
}
.skill-card li:last-child { border-bottom: 0; }
.skill-card li img,
.skill-icon-text {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  object-fit: contain;
}
.skill-icon-text {
  display: grid;
  place-items: center;
  border: 1.5px solid #171414;
  border-radius: 3px;
  font-size: .5rem;
  font-weight: 900;
  line-height: 1;
}

.contact { padding-top: 72px; padding-bottom: 94px; }
.contact-grid { display: grid; grid-template-columns: 1.12fr .88fr; gap: 25px; }
.contact-callout {
  min-height: 408px;
  padding: 50px 47px 42px;
  border-radius: 18px;
  background: radial-gradient(circle at 88% 88%, #ffd3cc 0, transparent 36%), linear-gradient(145deg, #fdebec, #fde5e5);
}
.contact-callout h3 { margin-bottom: 26px; color: #050303; font-size: clamp(3.4rem, 5vw, 4.9rem); line-height: .82; }
.contact-callout h3 span { color: var(--red); }
.contact-callout p { max-width: 410px; margin-bottom: 0; color: #493f3c; font-size: .80rem; line-height: 1.75; }
.outline-button { display: inline-flex; width: min(100%, 400px); min-height: 50px; align-items: center; gap: 9px; margin-top: 28px; padding: 12px 24px; border: 1.5px solid #b92122; border-radius: 999px; color: var(--red); background: #f8cdcd; font-size: .72rem; font-weight: 800; transition: background-color .2s ease, transform .2s ease; }
.outline-button:hover { background: #f5bfc0; transform: translateY(-1px); }
.outline-button img { width: 15px; height: auto; object-fit: contain; }
.contact-list { overflow: hidden; align-self: stretch; border: 1px solid var(--line); border-radius: 18px; background: white; }
.contact-list a { display: flex; min-height: 101px; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 32px; border-bottom: 1px solid var(--line); font-size: .84rem; font-weight: 800; transition: background .2s ease; }
.contact-list a:last-child { border-bottom: 0; }
.contact-list a:hover { background: #fff7f6; }
.contact-list small { display: block; margin-bottom: 7px; color: #aaa09d; font-size: .52rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; }
.contact-arrow {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  object-fit: contain;
  opacity: .7;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--red);
  font-size: .9rem;
  font-weight: 800;
}

.footer-arrow {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  object-fit: contain;
}

.footer-pin {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  object-fit: contain;
}

.brand-avatar {
  display: grid;
  width: 38px;
  aspect-ratio: 1;
  place-items: center;
  color: white;
  background: var(--red);
  border: 4px solid #f7b7ab;
  border-radius: 50% 50% 46% 54%;
  font-size: .66rem;
  box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .12);
}

.site-footer { position: relative; padding: 56px 0 28px; }
.site-footer::before { content: ""; position: absolute; inset: 14px -4% 0; z-index: -1; background: var(--pink); border-radius: 50% 50% 0 0 / 28% 32% 0 0; }
.footer-inner { display: flex; max-width: 760px; align-items: center; justify-content: space-between; gap: 20px; padding-top: 24px; }
.footer-inner p { margin: 0; color: var(--red); font-size: .76rem; font-weight: 700; }
.footer-brand .brand-avatar { width: 30px; border-width: 3px; }

/* Page des mentions légales */
.legal-page { background: var(--paper); }
.legal-header-inner { grid-template-columns: 64px 1fr; }
.legal-back {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
  color: var(--red);
  font-size: .76rem;
  font-weight: 800;
}
.legal-back img { width: 23px; height: 13px; flex: 0 0 auto; object-fit: contain; }
.legal-main { overflow: hidden; }
.legal-container { max-width: 900px; }
.legal-hero {
  position: relative;
  isolation: isolate;
  padding: 105px 0 100px;
  text-align: center;
}
.legal-hero::before {
  inset-block: 10px 18px;
  border-radius: 50% 50% 48% 52% / 12% 10% 11% 9%;
}
.legal-eyebrow {
  margin-bottom: 14px;
  color: var(--red);
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .22em;
}
.legal-hero h1 {
  margin: 0;
  color: var(--red-dark);
  font-family: "Londrina Solid", sans-serif;
  font-size: clamp(3.8rem, 8vw, 6.8rem);
  font-weight: 400;
  line-height: .9;
}
.legal-intro {
  max-width: 560px;
  margin: 22px auto 0;
  color: #6d5c59;
  font-size: .9rem;
}
.legal-content { display: grid; gap: 14px; padding-top: 70px; padding-bottom: 90px; }
.legal-card {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 22px;
  padding: 30px 34px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: white;
  box-shadow: var(--shadow);
}
.legal-number {
  margin: 0;
  color: var(--red);
  font-family: "Londrina Solid", sans-serif;
  font-size: 2rem;
  line-height: 1;
}
.legal-card h2 {
  margin-bottom: 14px;
  color: var(--ink);
  font-size: 1.75rem;
}
.legal-card p:not(.legal-number) {
  margin-bottom: 12px;
  color: #655956;
  font-size: .8rem;
  line-height: 1.75;
}
.legal-card p:last-child { margin-bottom: 0; }
.legal-card a { color: var(--red); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.legal-update { margin: 18px 0 0; color: #988b87; font-size: .7rem; text-align: center; }
.legal-footer { margin-top: 0; }

@media (max-width: 980px) {
  .header-inner { grid-template-columns: minmax(0, 1fr) auto; }
  .brand { width: max-content; height: 54px; }
  .main-nav { justify-self: stretch; justify-content: center; padding-inline: 10px; }
  .main-nav a { padding-inline: 13px; font-size: .78rem; }
  .hero-grid { grid-template-columns: minmax(0, 1.1fr) minmax(230px, .55fr); }
  .hero-side { grid-column: 1 / -1; grid-template-columns: repeat(2, minmax(0, 288px)); justify-content: center; }
  .hero-character { height: 342px; }
  .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .project-card-wide { grid-column: 1 / -1; }
  .skills-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 700px) {
  .container { width: min(100% - 28px, 1200px); }
  .site-header { padding-top: 12px; }
  .header-inner { grid-template-columns: minmax(0, 1fr) auto; }
  .brand { width: max-content; height: 48px; font-size: 1.7rem; }
  .brand img { width: 42px; height: 42px; }
  .language-switch { justify-self: end; }
  .main-nav { order: 3; grid-column: 1 / -1; overflow-x: auto; justify-content: flex-start; padding: 6px; }
  .main-nav a { padding: 10px 13px; white-space: nowrap; }
  .breadcrumb { margin-top: 4px; font-size: .62rem; }
  .hero-grid { grid-template-columns: 1fr; gap: 18px; }
  .hero h1 { font-size: clamp(3rem, 14vw, 4.25rem); }
  .hero-campus, .hero-phone, .hero-photo { width: min(100%, 577px); justify-self: center; }
  .hero-phone { display: none; }
  .hero-side { grid-column: auto; grid-template-columns: 1fr 1fr; gap: 14px; }
  .hero-photo { width: 100%; border-radius: 38px; }
  .hero-character { width: 100%; height: auto; aspect-ratio: 1 / 1.2; }
  .hero-note { font-size: 1.05rem; }
  .diplomas { min-height: 0; padding: 86px 0 100px; }
  .diplomas h2 { margin-bottom: 28px; }
  .timeline-wrap { grid-template-columns: minmax(0, 328px); justify-content: center; width: 100%; }
  .timeline-visual { display: none; }
  .diploma-item { grid-template-columns: minmax(0, 1fr) 62px; gap: 3px; }
  .diploma-item .year { font-size: 1.4rem; }
  .diploma-item h3 { font-size: .68rem; white-space: normal; }
  .diploma-item p { font-size: .72rem; }
  .diploma-logo-pix { width: 72px; }
  .diploma-logo-ozanam { width: 58px; }
  .diploma-logo-iut { width: 56px; }
  .section-heading-projects { align-items: flex-start; flex-direction: column; margin-bottom: 24px; }
  .project-filters { justify-content: flex-start; padding-top: 0; }
  .project-grid { grid-template-columns: 1fr; }
  .project-card-wide { grid-column: auto; grid-template-columns: 1fr; }
  .project-panel-main { border-right: 0; border-bottom: 1px solid #e5dedd; }
  .skills-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-callout { min-height: 330px; padding: 34px 28px; }
  .contact-callout h3 { font-size: 4rem; }
  .footer-inner { align-items: flex-start; flex-direction: column; }
  .legal-header-inner { grid-template-columns: 48px 1fr; }
  .legal-hero { padding: 80px 0 72px; }
  .legal-content { padding-top: 45px; }
  .legal-card { grid-template-columns: 1fr; gap: 12px; padding: 25px 22px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
