/* Innovate Community — articles complets dans la fenêtre Actualités */

/* Cartes et états de base */
html body .news-tool-panel .news-card[data-news-article]{
  width:100%;
  color:inherit;
  text-align:left;
  cursor:pointer;
}
html body .news-tool-panel .news-card[data-news-article]:focus-visible{
  outline:2px solid #ccff00 !important;
  outline-offset:-3px;
}
html body .news-tool-panel .news-card[hidden]{display:none !important;}

/* Défilement stable et transitions plus douces */
html body .news-tool-panel{
  scroll-behavior:smooth;
  scrollbar-gutter:stable;
  overscroll-behavior:contain;
  transition:
    opacity .28s ease,
    transform .38s cubic-bezier(.16,1,.3,1),
    border-color .24s ease !important;
}
html body .news-tool-panel::-webkit-scrollbar{width:10px;}
html body .news-tool-panel::-webkit-scrollbar-track{background:transparent;}
html body .news-tool-panel::-webkit-scrollbar-thumb{
  border:3px solid transparent;
  border-radius:999px;
  background:rgba(255,255,255,.25);
  background-clip:padding-box;
}
html body .news-tool-panel.is-reading::-webkit-scrollbar-thumb{background:rgba(21,21,21,.28);background-clip:padding-box;}

/* La lecture passe explicitement sur un fond clair, même sur l'index dont
   les styles globaux forcent normalement tous les <article> en noir. */
html body .news-tool-panel.is-reading,
html body .news-tool-panel.is-reading .news-tool-inner,
html body .news-tool-panel.is-reading .news-article-view,
html body .news-tool-panel.is-reading article.news-article-view{
  background:#f6f2eb !important;
  background-color:#f6f2eb !important;
  color:#151515 !important;
}
html body .news-tool-panel.is-reading{
  border-color:rgba(21,21,21,.18) !important;
  box-shadow:0 34px 120px rgba(0,0,0,.48) !important;

  /* Certaines pages, notamment what-we-build.html, appliquent ensuite
     overflow:hidden au panneau de liste. La vue article doit toujours
     rester son propre conteneur de défilement. */
  overflow-x:hidden !important;
  overflow-y:auto !important;
  -webkit-overflow-scrolling:touch;
  scroll-behavior:smooth;
}
html body .news-tool-panel.is-reading .news-tool-inner{
  min-height:100% !important;
}

/* Bouton de fermeture toujours visible pendant le défilement */
html body .news-tool-panel .news-tool-close{
  position:sticky !important;
  top:12px !important;
  z-index:80 !important;
  float:right;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  margin:12px 12px -58px 0 !important;
  width:44px !important;
  height:44px !important;
  border-radius:999px !important;
  background:rgba(255,255,255,.09) !important;
  border:1px solid rgba(255,255,255,.20) !important;
  color:#fff !important;
  -webkit-text-fill-color:#fff !important;
  box-shadow:0 8px 28px rgba(0,0,0,.18) !important;
}
html body .news-tool-panel .news-tool-close:hover,
html body .news-tool-panel .news-tool-close:focus-visible{
  background:#ccff00 !important;
  border-color:#ccff00 !important;
  color:#050505 !important;
  -webkit-text-fill-color:#050505 !important;
}
html body .news-tool-panel.is-reading .news-tool-close{
  background:rgba(21,21,21,.07) !important;
  border-color:rgba(21,21,21,.18) !important;
  color:#151515 !important;
  -webkit-text-fill-color:#151515 !important;
}
html body .news-tool-panel.is-reading .news-tool-close:hover,
html body .news-tool-panel.is-reading .news-tool-close:focus-visible{
  background:#ccff00 !important;
  border-color:#ccff00 !important;
  color:#050505 !important;
  -webkit-text-fill-color:#050505 !important;
}

/* Vues liste / article */
html body .news-tool-panel .news-article-view{
  --news-article-pad-x:clamp(22px,4vw,46px);
  display:none;
  position:relative;
  min-height:100%;
  padding:0 var(--news-article-pad-x) 48px !important;
  background:#f6f2eb !important;
  background-color:#f6f2eb !important;
  color:#151515 !important;
}
html body .news-tool-panel.is-reading .news-article-view{display:block !important;}
html body .news-tool-panel.is-reading .news-tool-left,
html body .news-tool-panel.is-reading .news-tool-grid,
html body .news-tool-panel.is-reading .news-spotify,
html body .news-tool-panel.is-reading .news-tool-all{display:none !important;}

/* Barre de navigation de l'article */
html body .news-article-toolbar{
  position:sticky !important;
  top:0;
  z-index:50;
  display:flex !important;
  align-items:center !important;
  min-height:70px;
  margin:0 calc(var(--news-article-pad-x) * -1) 28px !important;
  padding:12px 72px 12px var(--news-article-pad-x) !important;
  border-bottom:1px solid rgba(21,21,21,.14) !important;
  background:rgba(246,242,235,.96) !important;
  color:#151515 !important;
  backdrop-filter:blur(12px);
  -webkit-backdrop-filter:blur(12px);
}
html body .news-article-progress{
  position:absolute;
  left:0;
  right:0;
  bottom:-1px;
  height:2px;
  overflow:hidden;
  background:rgba(21,21,21,.08) !important;
}
html body .news-article-progress > span{
  display:block !important;
  width:100%;
  height:100%;
  background:#d9ff00 !important;
  transform:scaleX(var(--news-article-progress,0));
  transform-origin:left center;
  transition:transform .08s linear;
}

html body .news-article-back{
  appearance:none;
  display:inline-flex !important;
  align-items:center !important;
  min-height:42px;
  margin:0;
  padding:0;
  border:0 !important;
  border-bottom:1px solid rgba(21,21,21,.35) !important;
  border-radius:0 !important;
  background:transparent !important;
  color:#151515 !important;
  -webkit-text-fill-color:#151515 !important;
  font-family:"Space Grotesk",Arial,sans-serif !important;
  font-size:13px !important;
  font-weight:600 !important;
  letter-spacing:.04em !important;
  cursor:pointer;
  transition:color .18s ease,border-color .18s ease,transform .18s ease;
}
html body .news-article-back:hover{
  border-bottom-color:#d9ff00 !important;
  color:#d9ff00 !important;
  -webkit-text-fill-color:#d9ff00 !important;
  transform:translateX(-3px);
}
html body .news-article-back:focus-visible{outline:2px solid #d9ff00 !important;outline-offset:5px;}

/* Typographie de lecture : sélecteurs volontairement très spécifiques pour
   résister aux règles globales de la page d'accueil. */
html body .news-tool-panel.is-reading .news-article-category{
  display:block !important;
  margin:0 0 12px !important;
  color:#151515 !important;
  -webkit-text-fill-color:#151515 !important;
  font-family:"Space Grotesk",Arial,sans-serif !important;
  font-size:11px !important;
  font-weight:700 !important;
  letter-spacing:.14em !important;
  text-transform:uppercase;
  text-shadow:none !important;
  filter:none !important;
  opacity:1 !important;
}
html body .news-tool-panel.is-reading .news-article-view h2{
  margin:0 !important;
  max-width:18ch;
  color:#151515 !important;
  -webkit-text-fill-color:#151515 !important;
  font-family:"Space Grotesk",Arial,sans-serif !important;
  font-size:clamp(31px,4vw,52px) !important;
  font-weight:600 !important;
  line-height:.98 !important;
  letter-spacing:-.055em !important;
  text-shadow:none !important;
}
html body .news-tool-panel.is-reading .news-article-dek{
  margin:22px 0 0 !important;
  max-width:43rem;
  color:rgba(21,21,21,.72) !important;
  -webkit-text-fill-color:rgba(21,21,21,.72) !important;
  font-family:"Space Grotesk",Arial,sans-serif !important;
  font-size:clamp(17px,2vw,21px) !important;
  line-height:1.35 !important;
  letter-spacing:-.02em !important;
}
html body .news-tool-panel.is-reading .news-article-meta{
  display:flex !important;
  flex-wrap:wrap;
  gap:8px 18px;
  margin:24px 0 34px !important;
  padding:14px 0 !important;
  border-top:1px solid rgba(21,21,21,.14) !important;
  border-bottom:1px solid rgba(21,21,21,.14) !important;
  color:rgba(21,21,21,.62) !important;
  -webkit-text-fill-color:rgba(21,21,21,.62) !important;
  font-family:"Space Grotesk",Arial,sans-serif !important;
  font-size:12px !important;
  letter-spacing:.08em !important;
  text-transform:uppercase;
}
html body .news-tool-panel.is-reading .news-article-meta span{
  color:inherit !important;
  -webkit-text-fill-color:inherit !important;
}
html body .news-tool-panel.is-reading .news-article-body{max-width:46rem;}
html body .news-tool-panel.is-reading .news-article-body p,
html body .news-tool-panel.is-reading .news-article-body li{
  color:#252525 !important;
  -webkit-text-fill-color:#252525 !important;
  font-family:"Space Grotesk",Arial,sans-serif !important;
  font-size:16px !important;
  line-height:1.68 !important;
  letter-spacing:-.012em !important;
  opacity:1 !important;
}
html body .news-tool-panel.is-reading .news-article-body p{margin:0 0 22px !important;}
html body .news-tool-panel.is-reading .news-article-body h3{
  margin:42px 0 16px !important;
  color:#151515 !important;
  -webkit-text-fill-color:#151515 !important;
  font-family:"Space Grotesk",Arial,sans-serif !important;
  font-size:clamp(23px,2.5vw,31px) !important;
  font-weight:600 !important;
  line-height:1.08 !important;
  letter-spacing:-.04em !important;
}
html body .news-tool-panel.is-reading .news-article-body ul,
html body .news-tool-panel.is-reading .news-article-body ol{
  margin:0 0 24px 1.25rem !important;
  padding:0 !important;
}
html body .news-tool-panel.is-reading .news-article-body li{margin:0 0 10px !important;padding-left:4px;}
html body .news-tool-panel.is-reading .news-article-body strong{
  color:#151515 !important;
  -webkit-text-fill-color:#151515 !important;
  font-weight:700 !important;
}
html body .news-tool-panel.is-reading .news-article-body blockquote{
  margin:34px 0 !important;
  padding:22px 24px !important;
  border-left:4px solid #d9ff00 !important;
  background:#ebe5dc !important;
  color:#151515 !important;
  -webkit-text-fill-color:#151515 !important;
  font-family:"Space Grotesk",Arial,sans-serif !important;
  font-size:clamp(19px,2vw,24px) !important;
  line-height:1.35 !important;
  letter-spacing:-.025em !important;
}
html body .news-tool-panel.is-reading .news-article-end{
  margin-top:40px !important;
  padding-top:22px !important;
  border-top:1px solid rgba(21,21,21,.14) !important;
}
html body .news-tool-panel.is-reading .news-article-end .news-article-back{margin-bottom:0 !important;}

/* Animations internes : la fenêtre reste ouverte pendant le changement de vue. */
@keyframes icNewsArticleIn{
  from{opacity:0;transform:translate3d(18px,0,0)}
  to{opacity:1;transform:translate3d(0,0,0)}
}
@keyframes icNewsArticleOut{
  from{opacity:1;transform:translate3d(0,0,0)}
  to{opacity:0;transform:translate3d(16px,0,0)}
}
@keyframes icNewsListIn{
  from{opacity:0;transform:translate3d(-12px,0,0)}
  to{opacity:1;transform:translate3d(0,0,0)}
}
html body .news-tool-panel.is-reading:not(.is-article-leaving) .news-article-view{
  animation:icNewsArticleIn .32s cubic-bezier(.16,1,.3,1) both;
}
html body .news-tool-panel.is-article-leaving .news-article-view{
  animation:icNewsArticleOut .17s ease both;
}
html body .news-tool-panel.is-returning .news-tool-left,
html body .news-tool-panel.is-returning .news-tool-grid,
html body .news-tool-panel.is-returning .news-spotify,
html body .news-tool-panel.is-returning .news-tool-all{
  animation:icNewsListIn .3s cubic-bezier(.16,1,.3,1) both;
}

@media (min-width:901px){
  html body .news-tool-panel.is-reading{
    width:min(760px,calc(100vw - 96px)) !important;
    max-height:calc(100dvh - 136px) !important;
  }
}

@media (max-width:900px){
  html body .news-tool-panel .news-article-view{
    --news-article-pad-x:20px;
    padding-bottom:38px !important;
  }
  html body .news-article-toolbar{
    min-height:64px;
    margin-bottom:24px !important;
    padding-right:66px !important;
  }
  html body .news-tool-panel.is-reading .news-article-view h2{font-size:clamp(28px,8vw,42px) !important;}
  html body .news-tool-panel.is-reading .news-article-body p,
  html body .news-tool-panel.is-reading .news-article-body li{font-size:15.5px !important;line-height:1.62 !important;}
}

@media (prefers-reduced-motion:reduce){
  html body .news-tool-panel,
  html body .news-tool-panel *{
    scroll-behavior:auto !important;
    animation:none !important;
    transition:none !important;
  }
}

/* Step 15: inactive third-party audio/Spotify controls are not exposed. */
.news-play,.news-spotify{display:none!important}

/* Teaser du livre — repère visuel dans Dernières nouvelles */
html body .news-tool-panel .news-thumb--book{
  position:relative;
  background:linear-gradient(145deg,#f6f2eb 0 48%,#9d1000 48% 54%,#151515 54% 100%) !important;
  border:1px solid rgba(246,242,235,.25);
}
html body .news-tool-panel .news-thumb--book::after{
  content:'2003 → IA';
  position:absolute;
  left:8px;
  right:8px;
  bottom:9px;
  color:#f6f2eb;
  font-family:'Space Grotesk',Arial,sans-serif;
  font-size:9px;
  font-weight:700;
  letter-spacing:.08em;
  text-align:center;
}
