/* ============================================================
   Portfolio Maxime COUDE — Design System (d'après Figma)
   Typo : Gilroy (titres) / Montserrat (texte)
   Accent : #4975E9
   ============================================================ */

@font-face {
  font-family: 'Gilroy';
  src: url('../fonts/gilroy-extrabold.woff2') format('woff2');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --blue: #4975E9;
  --black: #0A0A0A;
  --white: #FFFFFF;
  --grey-1: #F7F7F9;
  --grey-2: #EDEDF2;
  --grey-3: #8A8A93;
  --radius-card: 32px;
  --radius-pill: 999px;
  --max-w: 1440px;
  --pad-x: clamp(20px, 4.2vw, 80px);
  --font-title: 'Gilroy', 'Montserrat', system-ui, sans-serif;
  --font-body: 'Montserrat', system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: clamp(16px, 1.25vw, 24px);
  line-height: 1.66;
  color: var(--black);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--pad-x); }

/* ---------- Titres ---------- */
h1, h2, h3, .h-like { font-family: var(--font-title); font-weight: 800; line-height: 1.18; }
h1 { font-size: clamp(40px, 5.2vw, 100px); letter-spacing: 0; }
h2 { font-size: clamp(30px, 3.75vw, 72px); line-height: 1.25; }
h3 { font-size: clamp(20px, 1.66vw, 32px); }

.section-title { margin-bottom: clamp(28px, 3vw, 56px); }
.accent { color: var(--blue); }

/* ---------- Navigation ---------- */
.nav-wrap {
  position: sticky; top: 0; z-index: 50;
  padding: clamp(12px, 2vw, 40px) var(--pad-x);
  display: flex; justify-content: center;
  pointer-events: none;
}
.nav {
  pointer-events: auto;
  display: flex; align-items: center; gap: clamp(6px, 1.2vw, 28px);
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(14px);
  border: 1px solid var(--grey-2);
  border-radius: var(--radius-pill);
  padding: clamp(8px, 0.9vw, 16px) clamp(14px, 1.4vw, 28px);
  box-shadow: 0 8px 30px rgba(10,10,10,.06);
}
.nav a {
  font-size: clamp(14px, 1vw, 20px); font-weight: 600;
  padding: 8px clamp(10px, 1vw, 18px);
  border-radius: var(--radius-pill);
  white-space: nowrap;
  transition: background .2s, color .2s;
}
.nav a:hover { background: var(--grey-1); }
.nav .nav-cta { background: var(--black); color: var(--white); }
.nav .nav-cta:hover { background: var(--blue); }
.nav .nav-lang { border: 1px solid var(--grey-2); }
/* Desktop : les liens participent au flex de .nav comme avant ; burger masqué */
.nav-links { display: contents; }
.nav-burger { display: none; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-body); font-weight: 600;
  font-size: clamp(15px, 1.05vw, 22px);
  padding: clamp(12px, 1vw, 18px) clamp(22px, 2vw, 38px);
  border-radius: var(--radius-pill);
  border: none; cursor: pointer;
  transition: transform .2s, box-shadow .2s, background .2s;
}
.btn-dark { background: var(--black); color: var(--white); }
.btn-light { background: var(--white); color: var(--black); }
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(10,10,10,.18); }

/* ---------- Hero (landing) ---------- */
.hero { text-align: center; padding: clamp(40px, 6vw, 120px) var(--pad-x) 0; }
.hero h1 { max-width: 1440px; margin: 0 auto; }
.hero .sub {
  margin-top: clamp(20px, 3vw, 60px);
  font-size: clamp(17px, 1.66vw, 32px);
  color: var(--grey-3);
}
.hero .avatar {
  width: min(520px, 64vw); margin: clamp(28px, 4vw, 64px) auto 0;
}

/* ---------- Section présentation ---------- */
.landing-body { background: var(--grey-1); }
.about { padding-block: clamp(64px, 9vw, 200px); background: transparent; }
.about-grid {
  display: grid; grid-template-columns: minmax(300px, 574fr) minmax(300px, 986fr);
  gap: clamp(40px, 6vw, 200px);
}
.quote-block { position: relative; padding: 0 clamp(24px, 2vw, 32px); }
.quote-mark {
  font-family: var(--font-title); font-weight: 800;
  font-size: clamp(40px, 3.5vw, 64px); color: var(--blue); line-height: 1;
}
.quote-mark.end { text-align: right; }
.quote-block h3 { margin-bottom: 16px; }
.quote-block p { font-size: clamp(15px, 1.05vw, 20px); }
.about-stats {
  display: flex; gap: 0; margin-top: clamp(32px, 4vw, 72px);
  padding: 0 clamp(24px, 2vw, 32px);
}
.about-stats .stat { width: 170px; text-align: center; }
.about-stats .emoji { font-size: clamp(36px, 3.3vw, 64px); line-height: 1; }
.about-stats .label { margin-top: 14px; font-weight: 600; font-size: clamp(14px, 1vw, 20px); }

/* Pour me connaître : citation + stats dans une carte blanche (toutes tailles) */
.about-intro {
  background: #fff; border-radius: var(--radius-card);
  padding: clamp(28px, 3vw, 48px);
  box-shadow: 0 12px 40px rgba(10, 10, 10, .05);
  align-self: start;
}
.about-intro .quote-block { padding: 0; }
.about-intro .about-stats {
  margin-top: clamp(28px, 3vw, 40px); padding: clamp(28px, 3vw, 40px) 0 0;
  border-top: 1px solid var(--grey-2);
}

.offers h3.offers-title {
  font-family: var(--font-title); font-size: clamp(24px, 1.9vw, 37px);
  margin-bottom: clamp(28px, 3.8vw, 72px);
}
.offers-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(28px, 3vw, 60px) clamp(24px, 3vw, 60px);
}
.offer-icon {
  width: clamp(60px, 5vw, 90px); height: clamp(60px, 5vw, 90px);
  object-fit: contain; object-position: left center; display: block;
  margin-bottom: clamp(16px, 1.25vw, 24px);
}
.offer h4 {
  font-family: var(--font-title); font-weight: 800;
  font-size: clamp(17px, 1.25vw, 24px); line-height: 1.33;
  margin-bottom: 12px; min-height: 2.6em;
}
.offer p { font-size: clamp(14px, 0.95vw, 18px); color: #3d3d44; }

/* ---------- Cartes projets (thumbnails) ---------- */
.projects { display: grid; gap: clamp(40px, 8.3vw, 160px); padding-bottom: clamp(64px, 8vw, 160px); max-width: 1160px; margin-inline: auto; width: 100%; }
/* Logos des cards projets : doublés (~+100%) */
.project-card .brand-logo { height: clamp(44px, 3.6vw, 66px); }
.project-card {
  border-radius: var(--radius-card);
  overflow: hidden;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  height: clamp(380px, 47.5vw, 700px);
  max-height: 700px;
  min-height: 0;
  box-shadow: 0 12px 40px rgba(10,10,10,.06);
  transition: transform .25s ease, box-shadow .25s ease;
}
.project-card:hover { transform: translateY(-6px); box-shadow: 0 24px 60px rgba(10,10,10,.14); }
.project-card .card-content {
  padding: clamp(28px, 4.5vw, 88px);
  display: flex; flex-direction: column; justify-content: center; gap: clamp(16px, 1.6vw, 32px);
}
.project-card .brand { font-weight: 700; font-size: clamp(14px, 1vw, 20px); opacity: .85; display:flex; align-items:center; gap:10px; }
.brand-logo { height: clamp(24px, 2vw, 40px); width: auto; display: block; }
.case-hero .brand-logo { margin: 0 auto; height: clamp(28px, 2.4vw, 48px); }
.project-card h3 { font-size: clamp(26px, 2.9vw, 56px); line-height: 1.2; }
.project-card p { font-size: clamp(14px, 1.05vw, 20px); opacity: .85; max-width: 36em; }
.project-card .card-visual { position: relative; display:flex; align-items:flex-end; justify-content:center; overflow:hidden; }
.project-card .card-visual img { width: 88%; height: auto; max-height: 100%; object-fit: contain; object-position: bottom; }
.project-card .btn { align-self: flex-start; margin-top: 8px; }
.project-card .btn-dark { background: var(--cta, var(--black)); }
.brand-logo-alt { display: none; }

.project-card.card-split-left {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.project-card.card-split-left .card-visual {
  align-items: flex-end;
  justify-content: flex-start;
  order: 0;
}
.project-card.card-split-left .card-content {
  order: 1;
}
.project-card.card-split-left .card-visual img {
  width: 96%;
  max-height: 86%;
  object-position: left bottom;
}
.project-card.card-sincro-mobile.card-split-left .card-content {
  align-items: flex-start;
  text-align: left;
}

/* ---------- Cartes à visuel de fond ---------- */
.project-card.card-bg { display: flex; align-items: center; }
.project-card.card-bg .card-content { width: 50%; }
.project-card.card-bg.text-right { justify-content: flex-end; }
.project-card.card-bg.text-center { justify-content: center; text-align: center; }
.project-card.card-bg.text-center .card-content { width: min(720px, 50%); align-items: center; }
.project-card.card-bg.text-center .btn { align-self: center; }
.desktop-break { display: none; }
.mobile-space { display: inline; }
@media (max-width: 760px) {
  .project-card.card-bg .card-content { width: 100%; }
  .project-card.card-bg.text-center .card-content { width: 100%; }
}

/* ---------- Section feedbacks ---------- */
.feedbacks-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 8.3vw, 160px);
}
.feedback-card {
  border-radius: var(--radius-card);
  padding: clamp(28px, 4vw, 80px);
  min-height: clamp(360px, 47.5vw, 913px);
  display: flex; flex-direction: column; justify-content: space-between;
  color: var(--white);
}
.feedback-card.purple { background: linear-gradient(157deg, #0094FF 0%, #8B4AF0 100%); }
.feedback-card.red { background: linear-gradient(167deg, #D80D0D 0%, #B71D1D 100%); }
.feedback-card.red {
  align-items: center;
  justify-content: center;
  text-align: center;
}
.feedback-card h3 { font-size: clamp(26px, 2.5vw, 48px); margin-bottom: 24px; }
.feedback-quote { font-size: clamp(15px, 1.15vw, 22px); line-height: 1.7; }
.big-stats {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: clamp(20px, 2.5vw, 48px);
  height: 100%;
  justify-content: center;
  width: 100%;
}
.big-stats .v { font-family: var(--font-title); font-weight: 800; font-size: clamp(48px, 5.2vw, 100px); line-height: 1; }
.big-stats .l { font-size: clamp(14px, 1.05vw, 20px); opacity: .9; margin-top: 8px; }

/* ---------- Auteur du feedback ---------- */
.feedback-author { display: flex; align-items: center; gap: 14px; margin-top: 28px; }
.feedback-author img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex: none; }
.feedback-author span { display: flex; flex-direction: column; line-height: 1.35; }
.feedback-author strong { font-weight: 700; }
.feedback-author em { font-style: normal; opacity: .85; font-size: .92em; }
.feedback-card.purple {
  align-items: center;
  gap: clamp(20px, 2.6vw, 52px);
  justify-content: flex-start;
  text-align: center;
}
.feedback-card.purple h3 { margin-bottom: 0; }
.feedback-card.purple .feedback-author {
  flex-direction: column;
  gap: 14px;
  margin-top: 0;
  order: 1;
}
.feedback-card.purple .feedback-author img {
  height: clamp(84px, 8vw, 160px);
  width: clamp(84px, 8vw, 160px);
}
.feedback-card.purple .feedback-author span {
  align-items: center;
}
.feedback-card.purple .feedback-quote {
  font-weight: 700;
  order: 2;
  text-align: left;
}

/* ---------- Autres clients ---------- */
.clients { padding-block: clamp(64px, 8vw, 160px); text-align: center; }
.clients h2 { margin-bottom: clamp(36px, 6vw, 120px); }
.clients-row {
  display: flex; flex-wrap: nowrap; align-items: center; justify-content: center;
  gap: clamp(28px, 5vw, 100px);
  overflow-x: auto; scroll-snap-type: x proximity;
  scrollbar-width: none; -ms-overflow-style: none;
  padding-bottom: 8px;
}
.clients-row::-webkit-scrollbar { display: none; }
.clients-row .client-logo {
  height: clamp(40px, 5.2vw, 100px); flex: none; display:flex; align-items:center;
  scroll-snap-align: center;
  filter: none; opacity: 1; transition: filter .2s, opacity .2s;
  font-family: var(--font-title); font-weight: 800; font-size: clamp(18px, 1.6vw, 30px);
  color: #555;
}
.clients-row .client-logo:hover { filter: none; opacity: 1; }
.clients-row img { height: 100%; width: auto; object-fit: contain; }

/* ---------- Contact ---------- */
.contact {
  background: var(--grey-1); color: var(--black);
  padding: clamp(64px, 8vw, 150px) var(--pad-x) 0;
  position: relative; overflow: hidden;
}
.contact-inner { max-width: var(--max-w); margin: 0 auto; text-align: center; }
.contact h2 { font-size: clamp(32px, 4.6vw, 89px); }
.contact .socials {
  display: flex; gap: clamp(20px, 4.1vw, 80px); justify-content: center;
  margin: clamp(36px, 5vw, 100px) 0 clamp(28px, 3vw, 60px);
}
.contact .socials a {
  width: clamp(44px, 3.3vw, 64px); height: clamp(44px, 3.3vw, 64px);
  display:flex; align-items:center; justify-content:center;
  border: none; border-radius: 18px;
  transition: background .2s, transform .2s;
}
.contact .socials a:hover { background: rgba(10,10,10,.05); transform: translateY(-3px); }
.contact .socials img { width: 52%; height: 52%; object-fit: contain; filter: none; }
.contact .coords { font-size: clamp(14px, 1.05vw, 20px); line-height: 2; opacity: .9; padding-bottom: clamp(48px, 6vw, 120px); }
.contact .coords strong { font-size: 1.1em; }
.contact .avatar-corner {
  position: absolute; right: clamp(-40px, 2vw, 60px); bottom: 0;
  width: clamp(140px, 26vw, 509px); pointer-events: none;
}
@media (max-width: 900px) { .contact .avatar-corner { display:none; } }

/* ---------- Ajustements desktop Figma 1920 / rendu 80% ---------- */
@media (min-width: 761px) {
  :root {
    --max-w: 1152px;
    --pad-x: clamp(20px, 3.36vw, 64px);
    --radius-card: 26px;
  }

  body { font-size: clamp(15px, 1vw, 19px); }
  h1 { font-size: clamp(32px, 4.16vw, 80px); }
  h2 { font-size: clamp(24px, 3vw, 58px); }
  h3 { font-size: clamp(18px, 1.33vw, 26px); }

  .section-title { margin-bottom: clamp(22px, 2.4vw, 45px); }
  .container { max-width: var(--max-w); }

  .nav-wrap { padding: clamp(10px, 1.6vw, 32px) var(--pad-x); }
  .nav {
    gap: clamp(5px, .96vw, 22px);
    padding: clamp(6px, .72vw, 13px) clamp(11px, 1.12vw, 22px);
  }
  .nav a {
    font-size: clamp(12px, .8vw, 16px);
    padding: 6px clamp(8px, .8vw, 14px);
  }

  .btn {
    gap: 10px;
    font-size: clamp(12px, .84vw, 18px);
    padding: clamp(10px, .8vw, 14px) clamp(18px, 1.6vw, 30px);
  }

  .hero { padding: clamp(32px, 4.8vw, 96px) var(--pad-x) 0; }
  .hero h1 { max-width: 1152px; }
  .hero .sub {
    margin-top: clamp(16px, 2.4vw, 48px);
    font-size: clamp(14px, 1.33vw, 26px);
  }
  .hero .avatar {
    width: min(416px, 51vw);
    margin-top: clamp(22px, 3.2vw, 51px);
  }

  .about { padding-block: clamp(51px, 7.2vw, 160px); }
  .about-grid {
    grid-template-columns: minmax(260px, 574fr) minmax(340px, 986fr);
    gap: clamp(32px, 4.8vw, 160px);
  }
  .quote-block { padding: 0 clamp(19px, 1.6vw, 26px); }
  .quote-mark { font-size: clamp(32px, 2.8vw, 51px); }
  .quote-block p { font-size: clamp(13px, .84vw, 16px); }
  .about-stats { margin-top: clamp(26px, 3.2vw, 58px); }
  .about-stats .stat { width: 136px; }
  .about-stats .emoji { font-size: clamp(29px, 2.64vw, 51px); }
  .about-stats .label { font-size: clamp(12px, .8vw, 16px); }

  .offers h3.offers-title {
    font-size: clamp(19px, 1.52vw, 30px);
    margin-bottom: clamp(22px, 3vw, 58px);
  }
  .offers-grid { gap: clamp(22px, 2.4vw, 48px) clamp(19px, 2.4vw, 48px); }
  .offer-icon {
    width: clamp(48px, 4vw, 72px);
    height: clamp(48px, 4vw, 72px);
  }
  .offer h4 { font-size: clamp(14px, 1vw, 19px); }
  .offer p { font-size: clamp(12px, .76vw, 15px); }

  .projects {
    gap: clamp(32px, 6.64vw, 128px);
    padding-bottom: clamp(51px, 6.4vw, 128px);
  }
  .project-card {
    height: clamp(304px, 38vw, 700px);
    max-height: 700px;
    min-height: 0;
  }
  .project-card .card-content {
    padding: clamp(22px, 3.6vw, 70px);
    gap: clamp(13px, 1.28vw, 26px);
    position: relative;
    z-index: 1;
  }
  .project-card h3 { font-size: clamp(21px, 2.32vw, 45px); }
  .project-card p { font-size: clamp(12px, .84vw, 16px); }
  .brand-logo { height: clamp(19px, 1.6vw, 32px); }

  .project-card.card-sincro-saas {
    background-size: auto 100%, cover !important;
    background-position: right center, center !important;
  }
  .project-card.card-bg.card-sincro-mobile {
    background-size: auto 100%, cover !important;
    background-position: left center, center !important;
  }
  .project-card.card-bg.card-sincro-mobile .card-content {
    width: 50%;
  }
  .project-card.card-afnor .card-visual {
    align-items: center;
  }
  .project-card.card-afnor .card-visual img {
    width: 112%;
    max-width: none;
    max-height: 86%;
    object-position: center;
  }
  .project-card.card-hello-promo {
    background-size: auto 84%, cover !important;
    background-position: 112% center, center !important;
  }
  .project-card.card-hello-promo .card-content {
    width: 50%;
  }

  .feedbacks-grid { gap: clamp(22px, 6.64vw, 128px); }
  .feedback-card {
    min-height: clamp(280px, 30vw, 520px);
    padding: clamp(22px, 3.2vw, 64px);
  }
  .feedback-card h3 { font-size: clamp(21px, 2vw, 38px); }
  .feedback-quote { font-size: clamp(12px, .92vw, 18px); }
  .big-stats { gap: clamp(16px, 2vw, 38px); }
  .big-stats .v { font-size: clamp(38px, 4.16vw, 80px); }
  .big-stats .l { font-size: clamp(12px, .84vw, 16px); }

  .clients { padding-block: clamp(51px, 6.4vw, 128px); }
  .clients h2 { margin-bottom: clamp(29px, 4.8vw, 96px); }
  .clients-row { gap: clamp(22px, 4vw, 80px); }
  .clients-row .client-logo { height: clamp(32px, 4.16vw, 80px); }

  .contact { padding: clamp(51px, 6.4vw, 120px) var(--pad-x) 0; }
  .contact h2 { font-size: clamp(26px, 3.68vw, 72px); }
  .contact .socials { margin: clamp(29px, 4vw, 80px) 0 clamp(22px, 2.4vw, 48px); }
  .contact .coords {
    font-size: clamp(12px, .84vw, 16px);
    padding-bottom: clamp(38px, 4.8vw, 96px);
  }
  .contact .avatar-corner { width: clamp(112px, 20.8vw, 407px); }
}

@media (min-width: 1024px) {
  .project-card:not(.card-bg):not(.card-split-left) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .project-card.card-split-left {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .project-card.card-sincro-mobile.card-split-left {
    background-color: #fff !important;
    background-image: url("../img/sincro-mobile-thumb.png") !important;
    background-position: left center !important;
    background-repeat: no-repeat !important;
    background-size: auto 100% !important;
    grid-template-columns: minmax(0, 50%) minmax(0, 50%);
  }

  .project-card.card-sincro-mobile.card-split-left .card-visual img {
    opacity: 0;
  }

  .project-card.card-bg:not(.text-center) .card-content {
    width: 50%;
  }

  .project-card.card-bg.text-center .card-content {
    width: min(720px, 50%);
  }

  .desktop-break {
    display: inline;
  }

  .mobile-space {
    display: none;
  }

  .project-card.card-bg.card-sincro-mobile {
    background-position: calc(0% - 50px) center, center !important;
  }

  .project-card.card-sincro-saas {
    background-size: auto 100%, cover !important;
  }

  .project-card.card-mma .card-visual img {
    height: 94%;
    max-height: none;
    object-position: right bottom;
    width: auto;
  }

  .project-card.card-afnor .card-visual img {
    width: 94%;
    max-height: 82%;
  }

  .project-card.card-hello-promo {
    background-position: calc(100% + 100px) bottom, center !important;
  }
}

/* ============================================================
   PAGES PROJETS
   ============================================================ */
.case-hero {
  border-radius: 0 0 var(--radius-card) var(--radius-card);
  padding: clamp(48px, 6vw, 120px) var(--pad-x) 0;
  text-align: center; overflow: hidden;
}
.case-hero .brand { font-weight: 700; opacity: .8; margin-bottom: 20px; display: flex; justify-content: center; align-items: center; gap: 12px; }
.case-hero h1 { font-size: clamp(34px, 4.2vw, 80px); max-width: 22ch; margin: 0 auto; }
.case-hero p { max-width: 60ch; margin: clamp(18px, 2vw, 36px) auto 0; font-size: clamp(15px, 1.15vw, 22px); opacity: .85; }
.case-hero .hero-visual { margin: clamp(36px, 4.5vw, 88px) auto 0; max-width: 1100px; position: relative; }
/* AFNOR : visuel desktop remonté de 40px par rapport au bas du background */
.case-hero.case-afnor .hero-visual { margin-bottom: 40px; }
.case-hero .hero-visual img { margin: 0 auto; }
.case-hero .hero-visual .hero-shadow {
  position: absolute; inset: -10% -10% -20% -10%; width: 120%; height: auto;
  z-index: -1; pointer-events: none; opacity: .5; border-radius: 0;
}
/* Alignement du hero selon la maquette Figma (desktop) */
.case-hero.align-left { text-align: left; }
.case-hero.align-left .brand { justify-content: flex-start; }
.case-hero.align-left h1 { margin-left: 0; margin-right: auto; }
.case-hero.align-left p { margin-left: 0; margin-right: auto; }
.case-hero.align-right { text-align: right; }
.case-hero.align-right .brand { justify-content: flex-end; }
.case-hero.align-right h1 { margin-left: auto; margin-right: 0; }
.case-hero.align-right p { margin-left: auto; margin-right: 0; }
/* Hero côte à côte : texte à gauche, visuel aligné au bord droit (ex. Sincro Saas) */
.case-hero.hero-split {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  grid-template-rows: auto auto auto; column-gap: clamp(24px, 4vw, 72px);
  align-items: center; text-align: left; padding-bottom: 0;
}
.case-hero.hero-split .brand { grid-area: 1 / 1; justify-content: flex-start; }
/* Logo aligné à gauche avec le texte (le margin auto par défaut le recentrait) */
.case-hero.hero-split .brand-logo { margin: 0; }
/* MMA : mockup 2 smartphones affiché entièrement, sans crop */
.case-hero.case-mma .hero-visual img { object-fit: contain; }
.case-hero.hero-split h1 { grid-area: 2 / 1; margin: 0; }
.case-hero.hero-split p { grid-area: 3 / 1; margin: clamp(16px, 2vw, 28px) 0 0; }
.case-hero.hero-split .hero-visual {
  grid-area: 1 / 2 / 4 / 3; margin: 0; max-width: none;
  align-self: center; justify-self: end; width: 100%;
}
.case-hero.hero-split .hero-visual img { margin: 0 0 0 auto; width: 100%; filter: drop-shadow(0 26px 55px rgba(10, 10, 10, .3)); }

@media (min-width: 761px) {
  .case-hero {
    width: 100%;
    padding: clamp(38px, 4.8vw, 96px) var(--pad-x) 0;
  }
  .case-hero .brand { margin-bottom: 16px; }
  .case-hero h1 { font-size: clamp(27px, 3.36vw, 64px); }
  .case-hero p { font-size: clamp(12px, .92vw, 18px); }
  .case-hero .hero-visual {
    max-width: 880px;
    margin-top: clamp(29px, 3.6vw, 70px);
  }
  .case-hero.hero-split {
    grid-template-columns: minmax(0, .95fr) minmax(320px, .9fr);
    column-gap: clamp(22px, 3.2vw, 58px);
  }
  .case-hero.hero-split .hero-visual {
    margin: 0;
    max-width: 760px;
  }
  .case-hero.hero-split .hero-visual img {
    filter: drop-shadow(0 21px 44px rgba(10, 10, 10, .28));
  }
  .case-hero.case-mma.hero-split .hero-visual {
    max-width: 430px;
    justify-self: center;
  }
  .case-hero.case-mma.hero-split .hero-visual img {
    margin: 0 auto;
  }
}

.case-section { padding-block: clamp(56px, 7vw, 150px); }
.case-section.tight { padding-top: 0; }
.case-section h2 { margin-bottom: clamp(24px, 2.6vw, 50px); }
.case-section .lead { max-width: 70ch; font-size: clamp(15px, 1.15vw, 22px); }
.case-section .lead + .lead { margin-top: 1.2em; }

.challenges {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(28px, 3.5vw, 70px);
  margin-top: clamp(36px, 4vw, 80px);
}
.challenges.two { grid-template-columns: repeat(2, 1fr); max-width: 1100px; }
.challenge .num {
  font-family: var(--font-title); font-weight: 800;
  font-size: clamp(40px, 4.2vw, 80px); line-height: 1;
  color: var(--blue);
}
.challenge h4 { font-family: var(--font-title); font-weight: 800; font-size: clamp(17px, 1.25vw, 24px); margin: 14px 0 10px; }
.challenge p { font-size: clamp(14px, 0.99vw, 19px); color: #3d3d44; }

.role-grid { display: grid; grid-template-columns: 1fr; gap: clamp(36px, 5vw, 100px); max-width: 980px; }
.role-grid h4, .toolkit h4 { font-family: var(--font-title); font-weight: 800; font-size: clamp(17px, 1.25vw, 24px); margin-bottom: 18px; }
.task-list li {
  padding: 14px 0 14px 36px; position: relative;
  border-bottom: 1px solid var(--grey-2);
  font-size: clamp(14px, 1.05vw, 20px);
}
.task-list li::before {
  content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 12px; height: 12px; border-radius: 50%; background: var(--blue);
}
.task-list.secondary li::before { background: var(--grey-3); }
.task-list + .task-list { margin-top: 32px; }

.toolkit-chips { display: flex; flex-wrap: wrap; gap: 14px; }
.chip {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 24px; border-radius: var(--radius-pill);
  background: var(--grey-1); border: 1px solid var(--grey-2);
  font-weight: 600; font-size: clamp(13px, 0.95vw, 18px);
}
.chip-icon { width: 22px; height: 22px; object-fit: contain; flex: none; }

.phases {
  display: flex; flex-wrap: wrap; gap: 14px;
  counter-reset: phase;
  margin: clamp(28px, 3vw, 56px) 0;
}
.phase {
  counter-increment: phase;
  background: var(--grey-1); border: 1px solid var(--grey-2);
  border-radius: 16px; padding: 18px 24px;
  font-weight: 600; font-size: clamp(13px, 0.95vw, 18px);
  display: flex; align-items: center; gap: 12px;
}
.phase::before {
  content: counter(phase);
  width: 32px; height: 32px; flex: none;
  background: var(--blue); color: #fff; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-title); font-weight: 800; font-size: 15px;
}
.dpis { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.dpis span {
  font-size: clamp(12px, 0.85vw, 16px); font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; color: var(--grey-3);
  padding: 8px 18px; border: 1px dashed var(--grey-2); border-radius: var(--radius-pill);
}

.sub-block { margin-top: clamp(40px, 4.5vw, 90px); }
.sub-block h3 { margin-bottom: 18px; }
.sub-block .lead { margin-bottom: 1.2em; }

.insights { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 3vw, 60px); margin-top: clamp(28px, 3vw, 56px); }
.insight {
  background: var(--grey-1); border-radius: 24px; padding: clamp(24px, 2.5vw, 48px);
}
.insight .num { font-family: var(--font-title); font-weight: 800; font-size: clamp(28px, 2.5vw, 48px); color: var(--blue); }
.insight h4 { font-family: var(--font-title); font-weight: 800; font-size: clamp(17px, 1.25vw, 24px); margin: 10px 0; }
.insight p { font-size: clamp(14px, 0.99vw, 19px); color: #3d3d44; }

.impacts-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: clamp(28px, 3vw, 60px); margin-top: clamp(36px, 4vw, 80px);
}
.impact { text-align: center; }
.impact .v {
  font-family: var(--font-title); font-weight: 800;
  font-size: clamp(44px, 4.7vw, 90px); line-height: 1; color: var(--black);
}
.impact .l { margin-top: 14px; font-size: clamp(13px, 0.95vw, 18px); color: #3d3d44; }

.thanks-group { margin-top: clamp(28px, 3vw, 56px); }
.thanks-group h4 { font-family: var(--font-title); font-weight: 800; font-size: clamp(17px, 1.25vw, 24px); margin-bottom: 20px; }
.people { display: flex; flex-wrap: wrap; gap: 16px; }
.person {
  display: flex; align-items: center; gap: 12px;
  background: var(--grey-1); border-radius: var(--radius-pill);
  padding: 10px 22px 10px 10px; font-weight: 600; font-size: clamp(13px, 0.95vw, 18px);
}
.person .pp {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--blue); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-title); font-weight: 800; font-size: 15px;
  object-fit: cover; flex: none;
}

/* ---------- Images / placeholders ---------- */
.fig { margin: clamp(28px, 3vw, 56px) 0 0; }
.fig img { border-radius: 24px; width: 100%; }
.fig figcaption { margin-top: 12px; font-size: clamp(12px, 0.85vw, 16px); color: var(--grey-3); }
.img-ph {
  border: 2px dashed var(--grey-2); border-radius: 24px;
  background: repeating-linear-gradient(45deg, #fafafc, #fafafc 14px, #f3f3f7 14px, #f3f3f7 28px);
  display: flex; align-items: center; justify-content: center; text-align: center;
  color: var(--grey-3); font-size: clamp(13px, 0.95vw, 17px); font-weight: 600;
  padding: 24px; min-height: 220px;
}
.img-ph.tall { min-height: 420px; }

/* ---------- Footer nav projet ---------- */
.case-footer-nav {
  display: flex; justify-content: space-between; gap: 20px;
  padding: 0 0 clamp(48px, 5vw, 100px);
}
.case-footer-nav a { font-weight: 700; font-size: clamp(15px, 1.15vw, 22px); color: var(--black); }

@media (min-width: 761px) {
  .case-section { padding-block: clamp(45px, 5.6vw, 120px); }
  .case-section.container { max-width: 1080px; }
  .case-section h2 { margin-bottom: clamp(26px, 2.8vw, 52px); }
  .case-section .lead {
    max-width: 76ch;
    font-size: clamp(14px, 1.02vw, 20px);
    line-height: 1.78;
  }
  .challenges {
    gap: clamp(22px, 2.8vw, 56px);
    margin-top: clamp(29px, 3.2vw, 64px);
  }
  .challenge .num { font-size: clamp(32px, 3.36vw, 64px); }
  .challenge h4,
  .role-grid h4,
  .toolkit h4,
  .insight h4,
  .thanks-group h4 {
    font-size: clamp(14px, 1vw, 19px);
  }
  .challenge p, .insight p { font-size: clamp(13px, .9vw, 17px); }
  .role-grid {
    grid-template-columns: 1fr;
    gap: clamp(34px, 4vw, 76px);
    max-width: 1080px;
  }
  .role-grid > .reveal:first-child { max-width: 76ch; }
  .role-grid > .reveal:nth-child(2) { max-width: 940px; }
  .task-list li {
    padding: 16px 0 16px 34px;
    font-size: clamp(14px, .95vw, 18px);
    line-height: 1.6;
  }
  .task-list + .task-list { margin-top: 42px; }
  .role-grid h4[style] { margin-top: clamp(38px, 3.6vw, 68px) !important; }
  .role-grid .toolkit { margin-top: clamp(40px, 4vw, 76px) !important; }
  .toolkit-chips { gap: 16px; }
  .chip {
    padding: 11px 21px;
    font-size: clamp(13px, .82vw, 16px);
  }
  .phase {
    padding: 14px 19px;
    font-size: clamp(12px, .76vw, 15px);
  }
  .insight { padding: clamp(19px, 2vw, 38px); }
  .impact .v { font-size: clamp(35px, 3.76vw, 72px); }
  .case-footer-nav {
    padding-bottom: clamp(38px, 4vw, 80px);
  }
  .case-footer-nav a { font-size: clamp(12px, .92vw, 18px); }

  .case-hero.case-sincro-saas.hero-split,
  .case-hero.case-sincro-mobile.hero-split {
    min-height: clamp(360px, 30vw, 560px);
    background-position: center bottom !important;
  }
  .case-hero.case-sincro-saas.hero-split .brand,
  .case-hero.case-sincro-saas.hero-split h1,
  .case-hero.case-sincro-saas.hero-split p {
    transform: translateY(clamp(-56px, -2.4vw, -36px));
  }
  .case-hero.case-sincro-saas.hero-split p,
  .case-hero.case-sincro-mobile.hero-split p {
    display: none;
  }
  .case-hero.case-sincro-mobile.hero-split {
    grid-template-columns: minmax(560px, .98fr) minmax(520px, 1fr);
    grid-template-rows: auto auto auto;
    column-gap: clamp(16px, 1.6vw, 32px);
    align-items: center;
    min-height: clamp(620px, 43vw, 840px);
    padding: clamp(70px, 5.8vw, 116px) clamp(28px, 3.8vw, 76px) 0;
    background-position: center calc(100% + clamp(84px, 6vw, 124px)) !important;
  }
  .case-hero.case-sincro-mobile.hero-split .brand,
  .case-hero.case-sincro-mobile.hero-split h1 {
    grid-column: 2;
    justify-self: center;
    text-align: center;
    transform: translateY(clamp(-92px, -4.2vw, -64px));
  }
  .case-hero.case-sincro-mobile.hero-split .brand {
    margin-bottom: clamp(28px, 2.6vw, 52px);
  }
  .case-hero.case-sincro-mobile.hero-split .brand-logo {
    height: clamp(54px, 3.7vw, 74px);
  }
  .case-hero.case-sincro-mobile.hero-split h1 {
    width: min(100%, 840px);
    max-width: 21ch;
    font-size: clamp(42px, 3.35vw, 66px);
    line-height: 1.18;
  }
  .case-hero.case-sincro-mobile.hero-split p {
    display: block;
    grid-column: 2;
    justify-self: center;
    max-width: 44ch;
    margin: clamp(30px, 3vw, 58px) auto 0;
    text-align: center;
    font-size: clamp(18px, 1.35vw, 27px);
    line-height: 1.55;
    transform: translateY(clamp(-92px, -4.2vw, -64px));
  }
  .case-hero.case-sincro-mobile.hero-split .hero-visual {
    grid-area: 1 / 1 / 4 / 2;
    align-self: end;
    justify-self: start;
    max-width: clamp(760px, 47vw, 980px);
    transform: translate(clamp(42px, 3.5vw, 76px), clamp(18px, 3vw, 58px));
  }
  .case-hero.case-sincro-mobile.hero-split .hero-visual img {
    margin: 0;
  }
  .case-hero.case-sincro-saas.hero-split h1,
  .case-hero.case-sincro-mobile.hero-split h1 {
    text-shadow: 0 10px 28px rgba(21, 34, 92, .22);
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .about-grid, .role-grid { grid-template-columns: 1fr; }
  .offers-grid, .challenges { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .offers-grid, .challenges, .insights, .feedbacks-grid { grid-template-columns: 1fr; }
  .offer h4 { min-height: 0; }

  /* Menu burger */
  .nav { position: relative; gap: 8px; }
  .nav-burger {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 44px; height: 44px; padding: 0 11px; background: none; border: none; cursor: pointer;
  }
  .nav-burger span { display: block; width: 22px; height: 2px; background: var(--black); border-radius: 2px; transition: transform .25s, opacity .2s; }
  .nav.open .nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav.open .nav-burger span:nth-child(2) { opacity: 0; }
  .nav.open .nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav-links {
    display: none; position: absolute; top: calc(100% + 12px); right: 0;
    flex-direction: column; align-items: stretch; gap: 4px; min-width: 210px;
    background: #fff; border: 1px solid var(--grey-2); border-radius: 20px; padding: 10px;
    box-shadow: 0 14px 34px rgba(10,10,10,.14);
  }
  .nav.open .nav-links { display: flex; }
  .nav-links a { padding: 13px 18px; border-radius: 12px; }

  /* H1 accueil : réduit pour tenir sur 3 lignes max */
  .hero h1 { font-size: clamp(19px, 5.2vw, 32px); }

  /* Cartes projets : visuel masqué, logo mis en avant */
  .project-card {
    grid-template-columns: 1fr;
    height: auto;
    max-height: none;
    min-height: 0;
  }
  .project-card .card-visual { display: none; }
  .project-card.card-bg { background: var(--card-bg) !important; }
  .project-card.card-bg .card-content { width: 100%; }
  .brand-logo { height: clamp(40px, 11vw, 56px); }

  /* Hero pages projets : centré sur mobile pour la lisibilité */
  .case-hero.align-left, .case-hero.align-right { text-align: center; }
  .case-hero.align-left .brand, .case-hero.align-right .brand { justify-content: center; }
  .case-hero.align-left h1, .case-hero.align-right h1,
  .case-hero.align-left p, .case-hero.align-right p { margin-left: auto; margin-right: auto; }

  /* Hero côte à côte : repli empilé et centré sur mobile */
  .case-hero.hero-split { display: block; text-align: center; }
  .case-hero.hero-split .brand { justify-content: center; }
  .case-hero.hero-split h1, .case-hero.hero-split p { margin-left: auto; margin-right: auto; }
  .case-hero.hero-split p { margin-bottom: 0; }
  .case-hero.hero-split .hero-visual { justify-self: auto; margin: clamp(28px, 4vw, 64px) auto 0; }
  .case-hero.hero-split .hero-visual img { margin: 0 auto; }
  .case-hero.case-sincro-mobile.hero-split h1 {
    max-width: 350px;
    font-size: clamp(24px, 6.8vw, 28px);
    line-height: 1.16;
  }
  .case-hero.case-sincro-mobile.hero-split p {
    max-width: 350px;
    font-size: clamp(11px, 3vw, 13px);
    line-height: 1.4;
  }
  .case-hero.case-sincro-mobile.hero-split .hero-visual {
    margin-top: clamp(18px, 2.6vw, 36px);
    transform: translateY(-16px);
  }

  /* Planning : mini-cartes légèrement réduites */
  .phases { gap: 10px; }
  .phase { padding: 12px 16px; font-size: 12px; border-radius: 12px; gap: 9px; }
  .phase::before { width: 26px; height: 26px; font-size: 13px; }

  /* Impacts : 2 colonnes */
  .impacts-grid { grid-template-columns: repeat(2, 1fr); gap: clamp(20px, 5vw, 40px); }
  .impact .v { font-size: clamp(32px, 9vw, 46px); }

  /* Pour me connaître : bloc stats sans débordement */
  .about-stats { padding-inline: 0; gap: 8px; }
  .about-stats .stat { width: auto; flex: 1; min-width: 0; }

  /* Footer projet : marges horizontales sur les 2 liens */
  .case-footer-nav { gap: 16px; }
  .case-footer-nav a { padding-inline: 6px; }

  /* Pour me connaître : citation + stats dans une même carte blanche */
  .about .about-intro {
    background: #fff; border-radius: 24px;
    padding: clamp(24px, 6vw, 32px);
    box-shadow: 0 10px 30px rgba(10, 10, 10, .05);
  }
  .about .about-intro .quote-block { padding: 0; }
  .about .about-intro .about-stats {
    margin-top: clamp(22px, 5vw, 30px); padding: clamp(22px, 5vw, 30px) 0 0;
    border-top: 1px solid var(--grey-2);
  }
  /* Ce que je peux vous apporter : indenté pour s'aligner sur le texte de la carte */
  .about .offers { margin-top: clamp(28px, 6vw, 48px); padding-inline: clamp(24px, 6vw, 32px); }

  /* Footer contact : titre aligné sur l'échelle du H1 */
  .contact h2 { font-size: clamp(21px, 6vw, 34px); }

  /* Cartes projets : contenu centré (logo, titre, description, CTA) */
  .project-card .card-content { text-align: center; align-items: center; }
  .project-card .card-content .brand { justify-content: center; }
  .project-card .card-content .btn { align-self: center; }

  /* Sincro App : carte sur fond blanc, titre bleu, texte noir, logo couleur */
  .project-card.card-bg.card-sincro-mobile {
    background-color: #fff !important;
    background-image: url("../img/sincro-mobile-thumb.png") !important;
    background-position: left center !important;
    background-repeat: no-repeat !important;
    background-size: auto 100% !important;
    color: #000 !important;
  }
  .project-card.card-bg.card-sincro-mobile h3 { color: #6482D4 !important; }
  .project-card.card-bg.card-sincro-mobile .btn { background: var(--black) !important; color: #fff !important; }
  .project-card.card-bg.card-sincro-mobile .brand-logo-main { display: none; }
  .project-card.card-bg.card-sincro-mobile .brand-logo-alt { display: block; }

  /* KPI : contenu centré */
  .big-stats { align-items: center; text-align: center; }

  /* AFNOR : pas de border-radius inférieur sur le hero en mobile */
  .case-hero.case-afnor { border-radius: 0; }
}

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }
