/* Réalisations v2 — agenceindexx.com — 10/11/2026.
   Section #projets (modèle Softriver #work), juste sous #cx-comparatif
   et au-dessus de #methode. Classes et variables préfixées rx- / --rx-.
   La fenêtre de détail (.rx-modal, .rx-modal-veil) est un enfant direct
   de body, hors de la section, pour le piège de focus et inert.
   Ne touche pas au reste du site (nav, comparatif, hero, secteurs, logos).
   Polices : Inter déjà fournie par assets/hero-v2/, Geist Mono par
   assets/secteurs-v1/ — pas de @font-face ni de fichier de police ici.
   Textes des projets repris mot pour mot du live. Onglets vides : textes
   de John, lien « parlez-nous » vers /demarrer/. Aucune ressource réseau. */

#projets.rx,
.rx-modal,
.rx-modal-veil{
  --rx-font:"Inter",Arial,sans-serif;
  --rx-mono:"Geist Mono",ui-monospace,SFMono-Regular,Menlo,monospace;
  --rx-bg:#f7f7f5;
  --rx-ink:#0b0b0f;
  --rx-ink-2:#51515a;
  --rx-ink-kicker:#8a8a94; /* gris Softriver, choix de Josué ; contraste sous AA */
  --rx-on-ink:#ffffff;
  --rx-line:#e7e7e2;
  --rx-line-2:#d6d6cf;
  --rx-frame:#e4e4de;
  --rx-fill-2:#e8e8e3;
  --rx-ctl-2:#efefeb;
  --rx-btn-hover:#23232b;
  --rx-focus:#243027;
  --rx-page:1320px;
  --rx-gut:16px;
  --rx-r-lg:22px;
  --rx-r-xl:28px;
  --rx-r-pill:999px;
  --rx-target:44px;
  --rx-ease:cubic-bezier(.2,.8,.2,1);
  --rx-spring:cubic-bezier(.16,1,.3,1);
  font-family:var(--rx-font);
  font-size:16px;
  font-weight:400;
  line-height:1.55;
  letter-spacing:-0.011em;
  color:var(--rx-ink);
  -webkit-font-smoothing:antialiased;
  font-optical-sizing:auto;
}

#projets.rx,
#projets.rx *,
#projets.rx *::before,
#projets.rx *::after,
.rx-modal,
.rx-modal *,
.rx-modal *::before,
.rx-modal *::after,
.rx-modal-veil{
  box-sizing:border-box;
}

#projets.rx p,
#projets.rx ul,
#projets.rx ol,
#projets.rx dl,
#projets.rx figure,
#projets.rx h2,
#projets.rx h3,
#projets.rx h4,
.rx-modal p,
.rx-modal ul,
.rx-modal ol,
.rx-modal dl,
.rx-modal figure,
.rx-modal h2,
.rx-modal h3,
.rx-modal h4{margin:0}
#projets.rx ul,
#projets.rx ol,
.rx-modal ul,
.rx-modal ol{padding:0}
#projets.rx a,
.rx-modal a{color:inherit}
#projets.rx button,
.rx-modal button{
  font:inherit;
  color:inherit;
  letter-spacing:inherit;
}
#projets.rx img,
.rx-modal img{display:block;max-width:100%;height:auto}

#projets.rx :focus-visible,
.rx-modal :focus-visible{
  outline:3px solid var(--rx-focus);
  outline-offset:3px;
}

#projets.rx{
  position:relative;
  z-index:1;
  margin:0;
  padding:76px 0;
  border-top:1px solid var(--rx-frame);
  background:var(--rx-bg);
  color:var(--rx-ink);
}

.rx-inner{
  width:100%;
  max-width:var(--rx-page);
  margin:0 auto;
  padding:0 var(--rx-gut);
}

.rx-head{
  margin:0 auto 44px;
  max-width:54rem;
  display:grid;
  gap:16px;
  justify-items:center;
  text-align:center;
}

#projets.rx h2{
  font-family:var(--rx-font);
  font-weight:380;
  font-size:clamp(30px, 18px + 2vw, 50px);
  line-height:1.05;
  letter-spacing:-0.042em;
  text-wrap:balance;
  color:var(--rx-ink);
}

.rx-tabs{
  display:flex;
  gap:6px;
  flex-wrap:wrap;
  margin-bottom:22px;
  padding:5px;
  border-radius:var(--rx-r-pill);
  background:var(--rx-ctl-2);
  width:100%;
}
.rx-tabs button{
  flex:1 1 auto;
  border:0;
  background:transparent;
  padding:9px 16px;
  border-radius:var(--rx-r-pill);
  font-family:var(--rx-font);
  font-weight:400;
  font-size:14.5px;
  line-height:1.55;
  color:var(--rx-ink-2);
  cursor:pointer;
  white-space:nowrap;
  transition:background-color .25s,color .25s,box-shadow .25s;
}
.rx-tabs button[aria-selected="true"]{
  background:#fff;
  color:var(--rx-ink);
  box-shadow:rgba(11,11,15,.08) 0 1px 2px, rgba(11,11,15,.04) 0 0 0 1px;
}
.rx-tabs button:focus-visible{
  outline:3px solid var(--rx-focus);
  outline-offset:2px;
  z-index:1;
}

.rx-panels{position:relative}
.rx-showcase{display:grid;gap:40px}
.rx-slides{display:grid;gap:40px}
.rx-row{display:grid;gap:16px}
.rx-pics{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:16px;
}
.rx-pic{
  position:relative;
  margin:0;
  aspect-ratio:16/10;
  border-radius:18px;
  overflow:hidden;
  background:var(--rx-fill-2);
}
.rx-pic img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  opacity:0;
  transform:scale(1.035);
  filter:blur(10px);
  transition:opacity .9s var(--rx-ease),transform 1.3s var(--rx-spring),filter .9s var(--rx-ease);
}
.rx-pic img.rx-on{opacity:1;transform:none;filter:none}
.rx-pic img.rx-off{opacity:0;transform:scale(.99);filter:blur(8px)}

#projets.rx .rx-pic--phone{
  display:flex;
  align-items:center;
  justify-content:center;
  padding:20px 16px;
  container-type:size;
}
#projets.rx .rx-phone{
  box-sizing:border-box;
  display:flex;
  flex:0 0 auto;
  height:min(100cqb, calc(100cqi * 844 / 390));
  aspect-ratio:390/844;
  width:auto;
  max-width:100%;
  padding:7px;
  border-radius:22px;
  background:#1a1a1e;
  box-shadow:0 10px 24px rgba(11,11,15,.16);
}
#projets.rx .rx-pic--phone img,
#projets.rx .rx-pic--phone img.rx-on,
#projets.rx .rx-pic--phone img.rx-off{
  position:static;
  inset:auto;
  width:100%;
  height:100%;
  max-width:none;
  max-height:none;
  object-fit:contain;
  object-position:center;
  border-radius:15px;
}
@media (hover:hover){
  #projets.rx .rx-pic--phone:hover img.rx-on{transform:none}
}
@media (max-width:699px){
  #projets.rx .rx-pic--phone{padding:12px 10px}
  #projets.rx .rx-phone{padding:5px;border-radius:16px}
  #projets.rx .rx-pic--phone img,
  #projets.rx .rx-pic--phone img.rx-on,
  #projets.rx .rx-pic--phone img.rx-off{border-radius:11px}
}
.rx-cap{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:10px;
  padding-top:14px;
  border-top:1px solid var(--rx-line);
  font-size:15.5px;
  color:var(--rx-ink-2);
  transition:opacity .3s;
}
.rx-cap.rx-swap{opacity:0}
.rx-cap::before{content:"→";color:var(--rx-ink)}
.rx-name{color:var(--rx-ink);font-weight:500}
.rx-kind::before{content:"·";margin-right:10px;color:var(--rx-ink-kicker)}
.rx-kind{color:var(--rx-ink-kicker)}
.rx-badge{
  display:inline-flex;
  align-items:center;
  padding:3px 9px;
  border:1px solid var(--rx-line-2);
  border-radius:var(--rx-r-pill);
  background:#fff;
  font:500 11px/1.2 var(--rx-mono);
  letter-spacing:0.04em;
  text-transform:uppercase;
  color:var(--rx-ink);
  white-space:nowrap;
}


.rx-foot{
  display:flex;
  align-items:center;
  gap:20px;
  flex-wrap:wrap;
}
.rx-cs-nav{
  display:flex;
  gap:10px;
  flex:0 0 auto;
}
.rx-arrow{
  width:52px;
  height:52px;
  border:0;
  padding:0;
  border-radius:50%;
  display:grid;
  place-items:center;
  background:#fff;
  color:var(--rx-ink);
  box-shadow:0 0 0 1px var(--rx-line);
  cursor:pointer;
  transition:background-color .25s,color .25s,box-shadow .25s,opacity .25s;
}
.rx-arrow svg{
  width:20px;height:20px;
  fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;
}
.rx-arrow:hover:not([aria-disabled="true"]){
  background:var(--rx-ink);
  color:var(--rx-on-ink);
  box-shadow:none;
}
.rx-arrow[aria-disabled="true"]{
  opacity:.35;
  cursor:default;
}
.rx-count{
  margin:0;
  font:400 13px/1 var(--rx-mono);
  color:var(--rx-ink-kicker);
}
.rx-count b{font-weight:400;color:var(--rx-ink)}
.rx-bar{
  flex:1 1 0;
  max-width:240px;
  height:2px;
  border-radius:2px;
  background:var(--rx-line);
  overflow:hidden;
}
.rx-bar i{
  display:block;
  height:100%;
  width:100%;
  background:var(--rx-ink);
  transform:scaleX(0);
  transform-origin:left center;
}
.rx-bar i.rx-run{animation:3s linear 0s 1 normal forwards rx-scbar}
.rx-bar i.rx-static{animation:none}
@keyframes rx-scbar{100%{transform:scaleX(1)}}

.rx-detail{
  display:grid;
  gap:16px;
  padding:28px 26px;
  border-radius:var(--rx-r-lg);
  background:#fff;
  box-shadow:0 0 0 1px var(--rx-line);
}
.rx-detail-top{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}
.rx-eyebrow{
  font:400 12px/1.2 var(--rx-mono);
  letter-spacing:0.06em;
  text-transform:uppercase;
  color:var(--rx-ink-kicker);
}
.rx-detail h3,
.rx-modal h3{
  font-family:var(--rx-font);
  font-weight:500;
  font-size:clamp(21px, 17px + 0.6vw, 25px);
  line-height:1.25;
  letter-spacing:-0.03em;
  color:var(--rx-ink);
}
.rx-intro{font-size:16px;color:var(--rx-ink)}
.rx-facts{
  display:grid;
  gap:14px;
  margin:0;
}
.rx-facts div{min-width:0;display:block}
.rx-facts dt{
  font:400 12px/1.2 var(--rx-mono);
  letter-spacing:0.06em;
  text-transform:uppercase;
  color:var(--rx-ink-kicker);
  margin-bottom:4px;
}
.rx-facts dd{margin:0;font-size:15.5px;line-height:1.45;color:var(--rx-ink)}
.rx-claim{
  display:grid;
  grid-template-columns:24px 1fr;
  gap:10px 12px;
  align-items:flex-start;
  padding:16px 18px;
  border:0;
  border-radius:16px;
  background:var(--rx-bg);
  box-shadow:0 0 0 1px var(--rx-line);
}
.rx-claim svg,
.rx-ic{
  width:22px;height:22px;margin-top:2px;color:var(--rx-ink);flex:0 0 auto;
}
.rx-claim p{font-size:15.5px;line-height:1.45;color:var(--rx-ink-2)}
.rx-claim strong{display:block;color:var(--rx-ink);font-weight:500;margin-bottom:4px}
.rx-choice{
  display:grid;
  gap:12px;
  padding:4px 0 0;
  background:transparent;
  border:0;
  border-radius:0;
}
.rx-choice h4{
  font-family:var(--rx-font);
  font-weight:500;
  font-size:17px;
  letter-spacing:-0.02em;
  color:var(--rx-ink);
  margin:0;
}
.rx-choice ol{
  margin:0;
  padding-left:1.2em;
  display:grid;
  gap:8px;
  font-size:15.5px;
  line-height:1.45;
}
.rx-choice .rx-muted{color:var(--rx-ink-2);font-size:15px}
.rx-shots-note{
  font-size:13px;
  color:var(--rx-ink-2);
}
.rx-detail-links a,
a.rx-lnk{
  display:inline-flex;
  align-items:center;
  gap:8px;
  min-height:var(--rx-target);
  font-weight:500;
  text-decoration:none;
  border-bottom:1px solid var(--rx-line-2);
  background:none;
}
.rx-detail-links a:hover,
a.rx-lnk:hover{border-bottom-color:var(--rx-ink)}
.rx-detail-links svg,
a.rx-lnk svg{width:16px;height:16px}

.rx-mini-cta{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:12px;
  margin-top:44px;
  text-align:center;
}
.rx-btn{
  display:inline-flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  min-height:46px;
  padding:5px 5px 5px 20px;
  border:0;
  border-radius:var(--rx-r-pill);
  font-family:var(--rx-font);
  font-weight:500;
  font-size:15px;
  line-height:1.2;
  letter-spacing:-0.014em;
  text-decoration:none;
  cursor:pointer;
  color:var(--rx-ink);
  background:#fff;
  box-shadow:0 0 0 1px var(--rx-line);
  transition:transform .2s var(--rx-spring),background-color .2s,box-shadow .2s;
}
.rx-btn-primary{
  background:var(--rx-ink);
  color:var(--rx-on-ink);
  box-shadow:0 10px 30px -12px rgba(11,11,15,.55);
}
#projets.rx a.rx-btn-primary{
  color:var(--rx-on-ink);
}
.rx-btn-primary:hover{background:var(--rx-btn-hover);box-shadow:rgba(11,11,15,.6) 0 14px 34px -12px}
.rx-btn:focus-visible{border-radius:var(--rx-r-pill)}
.rx-btn:active{transform:scale(.975)}
.rx-arr{
  display:grid;
  place-items:center;
  width:36px;
  height:36px;
  border-radius:50%;
  background:rgba(255,255,255,.14);
  color:var(--rx-ink);
  transition:transform .25s var(--rx-spring);
}
.rx-btn-primary .rx-arr{color:var(--rx-ink);background:#fff}
.rx-arr svg{
  width:18px;height:18px;
  fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;
}
.rx-mini-cta small{
  font:400 12px/1.4 var(--rx-mono);
  color:var(--rx-ink-kicker);
  letter-spacing:0.01em;
}

.rx-row{cursor:pointer}
.rx-empty{
  margin:0;
  padding:28px 8px;
  text-align:center;
  font-size:14.5px;
  line-height:1.45;
  color:var(--rx-ink-kicker);
}
.rx-empty a{
  color:var(--rx-ink);
  font-weight:500;
  text-decoration:underline;
  text-underline-offset:3px;
}
.rx-empty a:hover{color:var(--rx-ink)}

.rx-vh{
  position:absolute!important;
  width:1px;height:1px;
  padding:0;margin:-1px;
  overflow:hidden;clip:rect(0,0,0,0);
  white-space:nowrap;border:0;
}

@media (max-width:899px){
  .rx-tabs{
    flex-wrap:nowrap;
    overflow-x:auto;
    overflow-y:hidden;
    border-radius:18px;
    scrollbar-width:none;
    width:auto;
    scroll-snap-type:x mandatory;
    -webkit-overflow-scrolling:touch;
  }
  .rx-tabs::-webkit-scrollbar{display:none}
  .rx-tabs button{scroll-snap-align:start;flex:0 0 auto}
}

@media (max-width:699px){
  #projets.rx{padding:60px 0}
  .rx-head{margin-bottom:30px}
  .rx-tabs{mask-image:linear-gradient(90deg,#000 82%,transparent)}
  .rx-showcase,.rx-slides{gap:28px}
  .rx-pics{gap:8px}
  .rx-pic{aspect-ratio:1/1;border-radius:14px}
  .rx-cap{font-size:14.5px;padding-top:12px}
  .rx-mini-cta{margin-top:32px}
  .rx-arrow{width:44px;height:44px}
  .rx-detail{padding:22px 18px}
}

@media (hover:hover) and (pointer:fine){
  .rx-tabs button:not([aria-selected="true"]):hover{background:rgba(11,11,15,.05)}
}

.rx-panels{transition:height .55s var(--rx-spring)}
.rx-panels.rx-sizing{overflow:hidden}
.rx-panels > *{transition:opacity .25s var(--rx-ease)}
.rx-panels.rx-fading > *{opacity:0}

@media (hover:hover){
  .rx-btn:hover .rx-arr{transform:translateX(3px)}
  .rx-pic:hover img.rx-on{transform:scale(1.03)}
}

@media (prefers-reduced-motion:no-preference) and (min-width:900px){
  #projets.rx-ready [data-reveal]{
    opacity:0;
    transform:translateY(12px);
    transition:opacity .8s var(--rx-ease),transform .8s var(--rx-spring);
    transition-delay:var(--d,0s);
  }
  #projets.rx-ready [data-reveal].rx-in{opacity:1;transform:none}
}

@media (max-width:899px){
  .rx-pic img,
  .rx-pic img.rx-off{transform:none;filter:none;transition:opacity .8s var(--rx-ease)}
}

@media (prefers-reduced-motion:reduce){
  .rx-pic img,
  .rx-cap,
  .rx-tabs button,
  .rx-arrow,
  .rx-btn,
  .rx-arr,
  .rx-panels,
  .rx-panels > *{transition:none}
  .rx-pic img{transform:none;filter:none}
  .rx-bar i{animation:none!important}
  .rx-btn:active{transform:none}
  .rx-btn:hover .rx-arr{transform:none}
  #projets.rx-ready [data-reveal]{opacity:1;transform:none;transition:none}
}

/* --- Fenêtre de détail (hors section, enfant de body) --- */
body.rx-modal-open{overflow:hidden}

.rx-modal-veil{
  position:fixed;
  inset:0;
  z-index:80;
  background:rgba(11,11,15,.45);
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
  opacity:0;
  transition:opacity .25s var(--rx-ease);
}
.rx-modal-veil.rx-open{opacity:1}

.rx-modal{
  position:fixed;
  z-index:81;
  left:50%;
  top:50%;
  width:min(720px, calc(100vw - 48px));
  max-height:84vh;
  overflow:auto;
  background:#fff;
  color:var(--rx-ink);
  border-radius:var(--rx-r-xl);
  box-shadow:0 0 0 1px #e7e7e2;
  padding:28px 26px;
  opacity:0;
  transform:translate(-50%, calc(-50% + 12px));
  transition:opacity .55s var(--rx-spring), transform .55s var(--rx-spring);
}
.rx-modal.rx-open{
  opacity:1;
  transform:translate(-50%, -50%);
}
.rx-modal.rx-closing{
  opacity:0;
  transform:translate(-50%, calc(-50% + 12px));
  transition:opacity .25s var(--rx-ease), transform .25s var(--rx-ease);
}
.rx-modal-handle{
  display:none;
  width:36px;
  height:4px;
  margin:0 auto 16px;
  border-radius:999px;
  background:#e7e7e2;
}
.rx-modal-close{
  position:absolute;
  top:16px;
  right:16px;
  z-index:2;
  width:44px;
  height:44px;
  padding:0;
  border:0;
  border-radius:999px;
  background:#efefeb;
  color:#0b0b0f;
  display:grid;
  place-items:center;
  cursor:pointer;
  transition:transform .2s var(--rx-spring);
}
.rx-modal-close svg{
  width:16px;
  height:16px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.8;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.rx-modal-close:active{transform:scale(.975)}
.rx-modal-body{min-width:0}
.rx-modal .rx-detail{
  padding:0;
  box-shadow:none;
  border-radius:0;
  background:transparent;
}
.rx-modal .rx-detail-top{padding-right:52px}

@media (max-width:699px){
  .rx-modal{
    left:0;
    right:0;
    top:auto;
    bottom:0;
    width:100vw;
    max-width:none;
    max-height:86vh;
    border-radius:22px 22px 0 0;
    padding:22px 18px calc(22px + env(safe-area-inset-bottom, 0px));
    box-shadow:0 0 0 1px #e7e7e2, 0 18px 40px -16px rgba(11,11,15,.4);
    opacity:1;
    transform:translateY(100%);
    transition:transform .55s var(--rx-spring);
  }
  .rx-modal.rx-open{
    opacity:1;
    transform:translateY(0);
  }
  .rx-modal.rx-closing{
    opacity:1;
    transform:translateY(100%);
    transition:transform .25s var(--rx-ease);
  }
  .rx-modal-handle{display:block}
}

@media (prefers-reduced-motion:reduce){
  .rx-modal-veil,
  .rx-modal,
  .rx-modal.rx-open,
  .rx-modal.rx-closing,
  .rx-modal-close{transition:none}
  .rx-modal{
    opacity:1;
    transform:translate(-50%, -50%);
  }
  .rx-modal.rx-closing{opacity:1;transform:translate(-50%, -50%)}
  .rx-modal-close:active{transform:none}
}
@media (prefers-reduced-motion:reduce) and (max-width:699px){
  .rx-modal,
  .rx-modal.rx-open,
  .rx-modal.rx-closing{
    opacity:1;
    transform:translateY(0);
    transition:none;
  }
}

.rx-detail-shots{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
  margin:16px 0 8px;
}
.rx-detail-shots .rx-pic{aspect-ratio:16/10;border-radius:14px}
.rx-detail-shots .rx-pic--phone{aspect-ratio:auto;min-height:200px}
.rx-detail-links{display:flex;flex-wrap:wrap;gap:4px 16px;align-items:center}
.rx-cap .rx-case-lnk{
  margin-left:auto;
  font-size:13px;
  font-weight:500;
}
@media (max-width:699px){
  .rx-detail-shots{grid-template-columns:1fr}
  .rx-cap .rx-case-lnk{margin-left:0}
}
