/* =========================================================================
   Nos dernières réalisations — un projet à la fois.
   Remplace le rail horizontal et la grille d'archives. Chaque projet occupe
   une bande complète : grand visuel d'un côté, fiche de l'autre, les côtés
   alternent d'un projet au suivant. Tout repose sur les tokens existants.
   ========================================================================= */
.rprj { padding: 108px 0 0; }
.rprj__head { max-width: 720px; margin-bottom: 34px; }
.rprj__eyebrow {
  display: inline-block; font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 12.5px; font-weight: 600; letter-spacing: .06em; color: var(--blue); margin-bottom: 12px;
}
.rprj__title {
  font-family: "Sora","Inter",sans-serif; font-size: clamp(28px, 3.4vw, 42px);
  font-weight: 800; line-height: 1.1; letter-spacing: -.03em; color: var(--l-txt); margin: 0 0 12px;
}
.rprj__sub { font-size: 16.5px; line-height: 1.62; color: var(--l-soft); max-width: 580px; margin: 0; }

/* Filtres : volontairement discrets, les projets restent le sujet. */
.rprj__filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 56px; }
.rprj__filter {
  font-family: inherit; font-size: 13.5px; font-weight: 500; color: var(--l-soft);
  background: none; border: 1px solid var(--l-brd); border-radius: 999px;
  padding: 9px 16px; cursor: pointer;
  transition: border-color .2s var(--ease), color .2s var(--ease), background .2s var(--ease);
}
.rprj__filter:hover { border-color: rgba(63,95,230,.35); color: var(--blue); }
.rprj__filter[aria-pressed="true"] { background: var(--l-txt); border-color: var(--l-txt); color: #fff; }
.rprj__filter:focus-visible { outline: 2px solid var(--blue-2); outline-offset: 2px; }

/* ---- Une réalisation ---- */
.rprj__list { display: grid; gap: clamp(64px, 8vw, 128px); }
.rprj__item {
  display: grid; grid-template-columns: 1.18fr 1fr;
  gap: clamp(28px, 4vw, 56px); align-items: center;
}
/* alternance : un projet sur deux inverse visuel et fiche */
.rprj__item--flip .rprj__vis { order: 2; }
.rprj__item--flip .rprj__body { order: 1; }
.rprj__item[hidden] { display: none; }

.rprj__vis {
  position: relative; overflow: hidden;
  border-radius: 24px; border: 1px solid var(--l-brd);
  background: linear-gradient(180deg, #0b1024, #070b18);
  aspect-ratio: 16 / 10;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.rprj__vis img {
  width: 100%; height: 100%; object-fit: cover; object-position: center;
  display: block;
  transition: transform .6s var(--ease);
}
.rprj__item:hover .rprj__vis { transform: translateY(-3px); box-shadow: 0 34px 66px -40px rgba(11,16,32,.5); }
.rprj__item:hover .rprj__vis img { transform: scale(1.018); }

/* projet sans capture : motif de la charte, jamais une image cassée */
.rprj__wait { position: absolute; inset: 0; display: grid; place-items: center; }
.rprj__wait::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask: radial-gradient(60% 56% at 50% 50%, #000 20%, transparent 76%);
          mask: radial-gradient(60% 56% at 50% 50%, #000 20%, transparent 76%);
}
.rprj__wait span {
  position: relative; font-size: 13px; color: rgba(255,255,255,.5);
  border: 1px solid rgba(255,255,255,.14); border-radius: 999px; padding: 8px 15px;
}

.rprj__id { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.rprj__logo {
  width: 44px; height: 44px; flex: none; border-radius: 12px; background: #fff;
  border: 1px solid var(--l-brd); display: grid; place-items: center; overflow: hidden;
}
.rprj__logo img { max-width: 68%; max-height: 68%; object-fit: contain; display: block; }
.rprj__name { display: block; margin: 0; font-family: "Sora","Inter",sans-serif; font-size: clamp(23px, 2.4vw, 30px); font-weight: 800; letter-spacing: -.025em; color: var(--l-txt); line-height: 1.15; }
.rprj__year { display: block; font-size: 13.5px; color: var(--l-soft); margin-top: 3px; }

.rprj__tags { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 16px; }
.rprj__tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12.6px; font-weight: 500; color: var(--blue);
  background: rgba(63,95,230,.06); border: 1px solid rgba(63,95,230,.16);
  border-radius: 999px; padding: 6px 12px;
}
.rprj__tag svg { width: 13px; height: 13px; }
.rprj__desc { font-size: 15.8px; line-height: 1.62; color: var(--l-soft); margin: 0 0 22px; max-width: 46ch; }

.rprj__cta {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 15px; font-weight: 600; color: var(--l-txt);
  border: 1px solid var(--l-brd); border-radius: 999px; padding: 12px 22px;
  transition: border-color .22s var(--ease), color .22s var(--ease), background .22s var(--ease);
}
.rprj__cta:hover { border-color: rgba(63,95,230,.4); color: var(--blue); background: rgba(63,95,230,.04); }
.rprj__cta:focus-visible { outline: 2px solid var(--blue-2); outline-offset: 2px; }
.rprj__cta svg { width: 15px; height: 15px; transition: transform .22s var(--ease); }
.rprj__cta:hover svg { transform: translateX(3px); }
/* deux boutons côte à côte sous une bande projet */
.rprj__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
/* variante « témoignage vidéo » : même gabarit, accent bleu discret */
.rprj__cta--video { border-color: rgba(63,95,230,.28); color: var(--blue); }
.rprj__cta--video svg { width: 16px; height: 16px; }
.rprj__cta--video:hover svg { transform: none; }
/* état d'attente : le lien n'existe pas encore, le libellé reste inerte
   plutôt que de publier un bouton qui ne mène nulle part. */
.rprj__cta--wait {
  border-style: dashed; opacity: .5; cursor: default; pointer-events: none;
}

/* ---------------- Responsive ---------------- */
@media (max-width: 900px) {
  /* une colonne : le visuel passe toujours en premier, l'alternance n'a plus d'objet */
  .rprj__item, .rprj__item--flip { grid-template-columns: 1fr; gap: 24px; }
  .rprj__item--flip .rprj__vis { order: 0; }
  .rprj__item--flip .rprj__body { order: 0; }
  .rprj__desc { max-width: none; }
}
@media (max-width: 760px) {
  .rprj { padding-top: 74px; }
  .rprj__list { gap: 62px; }
  .rprj__filters { margin-bottom: 40px; }
  .rprj__vis { border-radius: 18px; aspect-ratio: 16 / 11; }
  .rprj__actions { width: 100%; }
  .rprj__cta { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .rprj__vis, .rprj__vis img, .rprj__cta, .rprj__cta svg, .rprj__filter { transition: none; }
  .rprj__item:hover .rprj__vis { transform: none; }
  .rprj__item:hover .rprj__vis img { transform: none; }
}

/* =========================================================================
   Signature d'ouverture de /realisations/ — « Conçu par Envision IA ».
   Rangée de logos clients dont la mise en avant tourne, puis la signature,
   une phrase et un bouton. Aucune dépendance : la rotation est une animation
   CSS décalée, les positions ne bougent pas (seuls l'échelle, l'opacité et la
   désaturation varient), donc rien ne saute pendant le cycle.
   ========================================================================= */
.mby { position: relative; padding: 148px 0 0; text-align: center; overflow: hidden; }
/* trame très fine sur les côtés, comme sur la référence : elle s'efface au
   centre pour ne jamais passer derrière le texte */
.mby::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(11,16,32,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11,16,32,.05) 1px, transparent 1px);
  background-size: 34px 34px;
  -webkit-mask: linear-gradient(90deg, #000 0%, transparent 26%, transparent 74%, #000 100%);
          mask: linear-gradient(90deg, #000 0%, transparent 26%, transparent 74%, #000 100%);
}
.mby__in { position: relative; z-index: 1; }

/* ---- rangée de logos, sous le bouton ----
   Les logos sont posés directement sur le fond, sans pastille : ce sont des
   logotypes de largeurs très différentes (du carré au format 5:1), on les
   aligne donc sur une HAUTEUR commune et non dans un carré, sinon les uns
   seraient minuscules et les autres écrasés. */
.mby__logos {
  display: flex; align-items: center; justify-content: center;
  gap: clamp(30px, 5vw, 66px); flex-wrap: wrap;
  margin-top: clamp(40px, 4.4vw, 62px);
}
.mby__logo { display: block; flex: none; }
.mby__logo img {
  height: clamp(30px, 3vw, 40px); width: auto; max-width: 240px;
  object-fit: contain; display: block;
}
/* Les trois logotypes n'ont pas la même densité visuelle à hauteur égale :
   AXILAB est un bandeau très large qui pèse lourd dans la ligne, AULUGA est
   presque carré et paraît au contraire minuscule. On les corrige chacun. */
.mby__logo--large img { height: clamp(26px, 2.6vw, 34px); }
.mby__logo--carre img { height: clamp(45px, 4.5vw, 62px); }

/* ---- signature ---- */
.mby__sign {
  display: flex; align-items: center; justify-content: center; gap: clamp(10px, 1.2vw, 18px);
  font-family: "Sora","Inter",sans-serif; font-weight: 800;
  font-size: clamp(30px, 4.4vw, 54px); letter-spacing: -.03em; line-height: 1.1;
  color: var(--l-txt); margin: 0 0 16px; flex-wrap: wrap;
}
.mby__bracket { color: var(--blue-2); font-weight: 700; }
.mby__by { color: #7a8499; }   /* atténué mais lisible : #9aa4bf tombait à 2,5:1 */
.mby__mark {
  width: clamp(44px, 4.6vw, 60px); aspect-ratio: 1; flex: none; border-radius: 16px;
  background: linear-gradient(180deg, var(--blue-2), var(--blue));
  display: grid; place-items: center;
  box-shadow: 0 14px 30px -14px var(--blue-glow);
}
.mby__mark i {
  width: 52%; height: 52%; display: block; background: #fff;
  -webkit-mask: url(../images/e-mark.png?v=2) center / contain no-repeat;
          mask: url(../images/e-mark.png?v=2) center / contain no-repeat;
}
.mby__sub { font-size: clamp(15.5px, 1.4vw, 17px); line-height: 1.6; color: var(--l-soft); max-width: 480px; margin: 0 auto 26px; }
.mby__cta {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 15px; font-weight: 600; color: var(--l-txt);
  background: #fff; border: 1px solid var(--l-brd); border-radius: 999px; padding: 13px 24px;
  box-shadow: 0 10px 26px -18px rgba(11,16,32,.4);
  transition: border-color .22s var(--ease), color .22s var(--ease), transform .22s var(--ease);
}
.mby__cta:hover { border-color: rgba(63,95,230,.4); color: var(--blue); transform: translateY(-1px); }
.mby__cta:focus-visible { outline: 2px solid var(--blue-2); outline-offset: 2px; }
.mby__cta svg { width: 15px; height: 15px; }

@media (max-width: 760px) {
  .mby { padding-top: 116px; }
  .mby__logos { gap: 26px; margin-top: 34px; }
  .mby__logo img { height: 26px; max-width: 160px; }
  .mby__logo--large img { height: 22px; }
  .mby__logo--carre img { height: 40px; }
  .mby__sign { font-size: clamp(26px, 8vw, 34px); gap: 10px; }
  .mby__mark { width: 40px; border-radius: 13px; }
  .mby__cta { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .mby__cta { transition: none; }
}
