/* Couche de présentation indépendante : logique et outils d'origine conservés. */
:root{--text-1:#18313e;--text-2:#526772;--text-3:#607582;--bg-1:#f4f8fa;--bg-card:#fff;--bg-card-hover:#f6fbff;--border:#cedee7;--border-soft:#dfE8ee;--accent-blue:#137eaf;--accent-orange:#ac621e;--accent-green:#247d68;--accent-red:#ae4c65;--accent-violet:#7354ad;--radius:18px;--shadow-card:0 5px 18px -12px #24445540}
body{background:#edf4f7;isolation:isolate;min-height:100vh;overflow-x:hidden}

/* Animation d'entrée : uniquement à la toute première ouverture du portail
   (pilotée par la classe .rgc-intro posée sur <html>, voir index.html).
   1s de temps mort où seule la photo est visible, puis le voile et les
   cartes arrivent doucement depuis la gauche. Aucune animation ensuite,
   y compris en naviguant entre les catégories : comportement inchangé. */
@keyframes rgc-slide-in{
  from{transform:translateX(-72px);opacity:0}
  to{transform:translateX(0);opacity:1}
}
@keyframes rgc-slide-in-card{
  from{transform:translateX(-640px);opacity:0}
  to{transform:translateX(0);opacity:1}
}
html.rgc-intro body::after,
html.rgc-intro .hero-top{
  animation:rgc-slide-in 1.15s cubic-bezier(.16,.8,.24,1) 1s both;
}
html.rgc-intro .category-tile,
html.rgc-intro .tool-card{
  animation:rgc-slide-in-card .9s cubic-bezier(.16,.8,.24,1) both;
  animation-delay:1.35s;
}
html.rgc-intro .category-grid .category-tile:nth-child(1){animation-delay:1.35s}
html.rgc-intro .category-grid .category-tile:nth-child(2){animation-delay:1.47s}
html.rgc-intro .category-grid .category-tile:nth-child(3){animation-delay:1.59s}
html.rgc-intro .category-grid .category-tile:nth-child(4){animation-delay:1.71s}
html.rgc-intro .category-grid .category-tile:nth-child(5){animation-delay:1.83s}
@media (prefers-reduced-motion: reduce){
  html.rgc-intro body::after,html.rgc-intro .hero-top,
  html.rgc-intro .category-tile,html.rgc-intro .tool-card{animation:none}
}
body::before{content:"";position:fixed;inset:0;z-index:-2;background:#94cbea url('../train.png') center center/cover no-repeat}
body::after{content:"";position:fixed;inset:0;z-index:-1;background:linear-gradient(90deg,#edf4f7 0%,#edf4f7fa 29%,#edf4f7eb 36%,#edf4f780 43%,transparent 54%);pointer-events:none}
.top-bar{height:76px;padding:0 40px;background:#ffffffde;border-bottom:1px solid #ffffff90;backdrop-filter:blur(16px)}
.brand{gap:12px}.brand-mark{color:#173747;font-size:22px;letter-spacing:3px;font-style:italic}.brand-sub{color:#486475;font-size:10px;letter-spacing:1.3px}.local-pill{background:#fff9;color:#375b56;border-color:#cbddd7;font-size:11px}.local-pill .dot{background:#348974;box-shadow:none}.version-tag{color:#526772}
.hero{width:40%;max-width:610px;margin:0;padding:38px 0 0 40px}.hero-rail{display:none}.hero-top{display:block}.eyebrow{font-size:10px;letter-spacing:2.5px;font-weight:700;color:#547785;margin:0 0 15px}.hero h1{font-size:26px;letter-spacing:-.3px;font-weight:600;margin:0 0 14px}.hero h1 .hero-suffix{font-size:14px;letter-spacing:1px;background:#d9e9f0;padding:5px 9px;border-radius:6px;color:#375d70;margin-left:7px}.intro{font-size:clamp(32px,3.1vw,48px);font-weight:700;letter-spacing:-1.8px;line-height:1.08;margin:0 0 14px}.hero-description{font-size:13px;line-height:1.7;max-width:350px;color:var(--text-2);margin:0}.quick-access{display:flex;align-items:center;gap:18px;border-top:1px solid #b8cfdb80;margin-top:23px;padding-top:16px;min-height:55px}.quick-label{font-size:9px;font-weight:700;letter-spacing:1.6px;white-space:nowrap}.favorites-row{gap:8px}.favorites-row .favorites-hint{font-size:11px;max-width:230px;color:#607582}.favorite-tile{width:37px;height:37px;border-radius:11px}.favorite-tile svg{width:19px;height:19px}
.content{width:40%;max-width:610px;margin:0;padding:24px 0 25px 40px}.category-grid{grid-template-columns:1fr 1fr;gap:11px}.category-tile{min-height:144px;padding:16px;gap:9px;background:#ffffffed;border:1px solid #fff;position:relative;border-radius:15px;box-shadow:0 4px 18px #294b6410}.category-tile:hover{background:#fff;box-shadow:0 8px 24px #294b6420;transform:translateY(-3px)}.category-tile .icon-wrap{width:33px;height:33px;border-radius:10px;background:color-mix(in srgb,var(--tile-color) 9%,white)}.category-tile .icon-wrap svg{width:19px;height:19px}.category-tile h3{font-size:14px;margin-bottom:3px}.category-tile p{font-size:11px;line-height:1.5;max-width:190px}.category-tile .tile-footer{font-size:0;position:absolute;right:15px;top:25px}.category-tile .tile-footer svg{width:16px;height:16px}.category-tile:last-child{grid-column:1/-1;min-height:84px;flex-direction:row;align-items:center;gap:14px}.category-tile:last-child p{max-width:none}.category-tile:last-child .tile-footer{top:33px}.category-tile:last-child>div:nth-child(2){padding-right:24px}
.site-footer{width:40%;max-width:610px;padding:0 0 24px 40px;margin:0;border:0;gap:12px}.site-footer .notice{font-size:10px;line-height:1.6;color:#536c79;gap:7px}.site-footer .notice svg{width:13px;color:#65818f}.site-footer .meta{font-size:9px;color:#617c8b;letter-spacing:.4px}.scene-caption{position:fixed;right:35px;bottom:30px;display:flex;align-items:center;gap:12px;padding:13px 18px;color:white;border:1px solid #ffffff40;background:#173747c9;backdrop-filter:blur(12px);border-radius:14px;font-size:13px;pointer-events:none;perspective:400px}.scene-caption small{display:block;font-size:9px;letter-spacing:1.5px;margin-top:3px;color:#d3e7ef}.line-badge{padding:4px 9px;background:#e9cc53;color:#263b39;border-radius:7px;font-weight:800}

/* Rotation décorative T4 / T11 / T14 du badge — voir assets/js/line-badge.js */
.line-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:36px;
  height:22px;
  padding:0;
  font-size:11px;
  backface-visibility:hidden;
}
@keyframes line-badge-flip{
  0%{transform:rotateY(0deg);}
  100%{transform:rotateY(360deg);}
}
.line-badge.is-flipping{animation:line-badge-flip .6s ease-in-out;}
@media (prefers-reduced-motion: reduce){.line-badge.is-flipping{animation:none;}}
.back-row{gap:8px;margin-bottom:17px}.btn-back{padding:9px 11px;font-size:11px;background:#fff}.search-field{min-width:130px;flex:1;padding:8px 10px;background:#fffffff0}.search-field input{font-size:12px}.category-heading h2{font-size:17px}.reset-order-link{font-size:10px}.dnd-hint{font-size:10px;line-height:1.5}.card-grid{grid-template-columns:1fr 1fr;gap:10px}.tool-card{min-height:185px;padding:15px;gap:12px;border-radius:14px;background:#fffffff5}.tool-card h3{font-size:12px;line-height:1.5;margin-bottom:5px;overflow-wrap:anywhere}.tool-card p{font-size:11px;line-height:1.6;overflow-wrap:anywhere}.tool-card .icon-wrap{width:30px;height:30px}.tool-card .icon-wrap svg{width:17px;height:17px}.status-tag{font-size:9px}.fav-star{right:34px}.drag-handle{right:11px}.tool-card::before{width:2px}button:focus-visible,.favorite-tile:focus-visible{outline:3px solid #147eaf;outline-offset:3px}
@media(min-width:1700px){.hero,.content,.site-footer{margin-left:3vw}body::after{background:linear-gradient(90deg,#edf4f7 0%,#edf4f7f5 30%,#edf4f7a0 39%,transparent 52%)}}
@media(max-width:1100px) and (min-width:761px){.hero,.content,.site-footer{width:43%;padding-left:25px}.top-bar{padding:0 25px}.category-tile{padding:13px}.category-tile p{font-size:10px}.intro{font-size:36px}body::after{background:linear-gradient(90deg,#edf4f7 0%,#edf4f7f5 35%,transparent 57%)}}
@media(max-width:760px){body::before{position:absolute;top:65px;height:280px;bottom:auto;background-position:64% center}body::after{position:absolute;top:235px;height:110px;bottom:auto;background:linear-gradient(0deg,#edf4f7,transparent)}.top-bar{height:65px;padding:0 20px}.brand-mark{font-size:18px}.brand-sub{font-size:8px}.local-pill{font-size:0;padding:8px}.local-pill .dot{width:6px;height:6px}.version-tag{display:none}.hero{width:100%;max-width:none;padding:300px 22px 0}.intro{font-size:38px}.hero-description{max-width:440px}.content{width:100%;max-width:none;padding:22px}.site-footer{width:100%;max-width:none;padding:0 22px 25px}.scene-caption{display:none}.category-tile{min-height:145px}.category-tile p{font-size:11px}.quick-access{margin-top:20px}.card-grid{grid-template-columns:1fr 1fr}}
@media(max-width:380px){.card-grid{grid-template-columns:1fr}.category-tile{padding:12px}.category-tile h3{font-size:13px}.brand{gap:6px}}

/* Identité STRETTO : présentation d’origine, sur son fond bleu nuit. */
.top-bar .brand{display:flex;align-items:baseline;gap:10px;background:#16213a;padding:8px 12px;border-radius:6px;flex-shrink:0}
.top-bar .brand-mark{font-weight:900;letter-spacing:3px;font-size:16px;color:#ffffff;font-style:normal}
.top-bar .brand-sub{font-weight:600;letter-spacing:2px;font-size:11px;color:#a6b5cc;text-transform:uppercase}

/* Tram défilant dans la barre supérieure, derrière le logo — décoratif */
.top-bar{overflow:hidden}
.top-bar .brand,.top-bar-right{position:relative;z-index:2}
.tram-track{position:absolute;left:0;right:0;bottom:2px;height:54px;z-index:1;pointer-events:none}
.tram-track img{position:absolute;top:0;left:0;height:54px;width:auto;animation:tram-scroll 31s linear infinite}
@keyframes tram-scroll{
  0%{transform:translateX(-170px)}
  67.74%{transform:translateX(calc(100vw + 170px))}
  100%{transform:translateX(calc(100vw + 170px))}
}
@media (prefers-reduced-motion: reduce){.tram-track{display:none}}
@media(max-width:760px){.tram-track{display:none}}
