
/* =====================================================
   CYLABS — Pro/Tech Unified Styles (for index.html)
   Palette sombre, glass, parallax-ready, responsive
   Targets only existing classes/tags in the provided file
   Author: CYLABS
===================================================== */

/* ---------- Root + Reset ---------- */
:root{
  --bg:#0a0f15;
  --bg-2:#0e151d;
  --surface:#121a26;
  --glass:rgba(18,26,38,.55);
  --text:#e9f2ff;
  --muted:#b8cbe3;
  --accent:#19d3ff;
  --accent-2:#6af0ff;
  --border:rgba(255,255,255,.08);
  --shadow:0 12px 40px rgba(0,0,0,.45);
  --radius:18px;
  --radius-sm:12px;
  --gap:clamp(16px,2.6vw,28px);
  --maxw:1280px;
}

*,
*::before,
*::after{ box-sizing:border-box; }

html{ scroll-behavior:smooth; }
body{
  margin:0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, "Helvetica Neue", Arial, sans-serif;
  color:var(--text);
  background: radial-gradient(1200px 700px at 10% 0%, rgba(25,211,255,.08), transparent 55%) ,
              radial-gradient(1100px 600px at 90% 10%, rgba(106,240,255,.06), transparent 60%) ,
              linear-gradient(180deg, var(--bg), #070b10 60%, var(--bg));
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}

img{ max-width:100%; height:auto; display:block; }
a{ color:var(--accent); text-decoration:none; }
a:hover{ filter:brightness(1.12); }

/* ---------- Utilities ---------- */
.container{ width:100%; max-width:var(--maxw); margin-inline:auto; padding-inline:clamp(16px,4vw,28px); }
.wrap{ max-width:1200px; margin-inline:auto; }
.content{ text-align:center; }
.sr-only{ position:absolute !important; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }

/* ---------- Header (sticky) ---------- */
.has-fixed-header .site-header{
  position:sticky; top:0; z-index:40;
  backdrop-filter:saturate(140%) blur(10px);
  background:linear-gradient(180deg, rgba(6,10,16,.85), rgba(6,10,16,.6));
  border-bottom:1px solid var(--border);
  box-shadow: 0 0 0 transparent; /* dynamic shadow may be added by JS later */
  height:68px;
}
.site-header .container{
  display:flex; align-items:center; justify-content:space-between; height:68px;
}
.site-header a{ color:var(--muted); }
.site-header a:hover{ color:var(--text); background:rgba(255,255,255,.04); border-radius:10px; }

/* ---------- Hero ---------- */
.hero{
  position:relative; min-height:70svh;
  display:grid; place-items:center; overflow:hidden;
}
.hero .layer{
  position:absolute; inset:-10%; pointer-events:none;
  background:
    radial-gradient(600px 320px at 60% 10%, rgba(25,211,255,.20), transparent 60%),
    radial-gradient(700px 380px at 30% 20%, rgba(106,240,255,.10), transparent 70%);
  opacity:.7;
  will-change:transform;
}
.hero .container{ position:relative; z-index:1; text-align:center; }

.kicker{
  display:inline-block;
  padding:6px 12px;
  border-radius:999px;
  border:1px solid rgba(25,211,255,.25);
  background:rgba(25,211,255,.1);
  color:var(--accent);
  letter-spacing:.3px;
  font-weight:600;
}

.title{ margin:14px 0 8px; }

.hero-logo{
  width:min(340px, 42vw);
  filter: drop-shadow(0 18px 40px rgba(0,0,0,.55));
}
.subtitle{
  max-width:900px; margin:12px auto 22px;
  color:var(--muted);
  font-size:clamp(16px,1.7vw,18px);
  line-height:1.6;
}
.cta-row{ display:flex; gap:12px; justify-content:center; flex-wrap:wrap; }



/*-----------------hero small--------------------*/

    /* --- Compact layout overrides (hero + section) --- */
    .hero.hero--small{min-height:auto;padding:28px 0 8px;}
    .hero .titles{margin:0 0 6px;}
    .hero .subtitles{margin:0;opacity:.9}

    .sections{padding:10px 0 14px;} /* bring content up */

    /* Contact grid */
    .contact-grid{display:grid;grid-template-columns:1fr 1.1fr;gap:28px;align-items:start}
    .contact-visual img{width:100%;height:auto;border-radius:16px;box-shadow:0 10px 30px rgba(0,0,0,.25)}

    /* Form card */
    .contact-form.card{background:rgba(11,22,32,.6);backdrop-filter:saturate(140%) blur(6px);border-radius:18px;padding:20px;box-shadow:0 8px 24px rgba(0,0,0,.25)}
    .contact-form .grid-2{display:grid;grid-template-columns:1fr 1fr;gap:14px}
    .contact-form .form-field{display:flex;flex-direction:column;gap:6px}
    .contact-form label{font-weight:600;color:#cfe8ff}
    .contact-form input,.contact-form select,.contact-form textarea{width:100%;background:#0b1620;border:1px solid rgba(255,255,255,.15);color:#eaf3ff;border-radius:12px;padding:12px 14px}
    .contact-form input:focus,.contact-form select:focus,.contact-form textarea:focus{outline:2px solid #3aa0ff;border-color:#3aa0ff;box-shadow:0 0 0 3px rgba(58,160,255,.25)}
    .contact-form .form-foot{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px;margin-top:10px}
    .contact-form .checkbox{display:flex;align-items:center;gap:5px;color:#cfe8ff}
    .contact-form .helper{margin-top:6px;color:#a7c7ff;font-size:.95rem}
    .req{margin-left:4px}

    /* Mobile */
    @media (max-width:980px){
      .contact-grid{grid-template-columns:1fr}
      .section{padding-top:12px}
      .contact-form.card{padding:16px}
      .hero.hero--small{padding:20px 0 4px}
    }
  
/* ---------- Buttons ---------- */
.btn{
  display:inline-flex; align-items:center; gap:10px;
  padding:12px 18px;
  border-radius:14px;
  border:1px solid var(--border);
  background:transparent;
  color:var(--text);
  font-weight:700;
  cursor:pointer;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.btn:hover{ transform:translateY(-1px); box-shadow: var(--shadow); border-color: rgba(255,255,255,.14); }
.btn.ghost{ background:rgba(255,255,255,.02); }
.btn.primary{ background:linear-gradient(135deg, var(--accent), var(--accent-2)); color:#00141a; border-color:transparent; }

/* ---------- Panels (grid of products/entries) ---------- */
.panels{ padding:clamp(48px,8vw,100px) 0; }
.grid-3{
  display:grid; gap:var(--gap);
  grid-template-columns: repeat(3, minmax(0,1fr));
}

.grid-2{
  display:grid; gap:var(--gap);
  grid-template-columns: repeat(2, minmax(0,1fr));
}

/* Variante avec hauteur égale pour les images */
.grid-2-equal-height{
  display:grid; gap:var(--gap);
  grid-template-columns: repeat(2, minmax(0,1fr));
  align-items: stretch;
}
.grid-2-equal-height img{
  width: 100%;
  height: 100%;
  object-fit: cover; /* Changez en 'contain' pour éviter le recadrage */
}

/* Images avec effet professionnel (glass + bordure) */
.grid-2-images{
  display:grid; gap:var(--gap);
  grid-template-columns: repeat(2, minmax(0,1fr));
  align-items: start; /* Permet des hauteurs différentes si besoin */
}
.grid-2-images > div{
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px;
  background: var(--glass);
  backdrop-filter: saturate(140%) blur(10px);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.grid-2-images > div:hover{
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(0,0,0,.4);
  border-color: rgba(255,255,255,.15);
}
.grid-2-images img{
  width: 100%;
  height: auto; /* Garde le ratio naturel de l'image */
  display: block;
  border-radius: calc(var(--radius) - 4px);
}

/* Variante asymétrique : 2/3 gauche, 1/3 droite */
.grid-2-asymmetric{
  display:grid; gap:var(--gap);
  grid-template-columns: 2fr 1fr; /* 2/3 et 1/3 */
  align-items: start;
     align-items: center;
  justify-content: center;
}
.grid-2-asymmetric > div{
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px;
  background: var(--glass);
  backdrop-filter: saturate(140%) blur(10px);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;

}
.grid-2-asymmetric > div:hover{
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(0,0,0,.4);
  border-color: rgba(255,255,255,.15);
}
.grid-2-asymmetric img{
  width: 100%;
  height: auto;
  display: block;
  border-radius: calc(var(--radius) - 4px);
}

/* Responsive mobile : passe en 1 colonne */
@media (max-width: 768px){
  .grid-2-asymmetric{
    grid-template-columns: 1fr;
  }
}

/* Variante avec hauteur forcée (pour images de même taille) */
.grid-2-images-equal{
  display:grid; gap:var(--gap);
  grid-template-columns: repeat(2, minmax(0,1fr));
  align-items: stretch;
}
.grid-2-images-equal > div{
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px;
  background: var(--glass);
  backdrop-filter: saturate(140%) blur(10px);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.grid-2-images-equal > div:hover{
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(0,0,0,.4);
  border-color: rgba(255,255,255,.15);
}
.grid-2-images-equal img{
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: calc(var(--radius) - 4px);
  display: block;
}

.grid-1{
  display:grid; gap:var(--gap);
  grid-template-columns: repeat(1, minmax(0,1fr));
}

.grid-1 > div{
  position: relative;
   overflow: hidden;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  
}
.grid-1 > div:hover{
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(0,0,0,.4);
  border-color: rgba(255,255,255,.15);
}
.grid-1 img{
  width: 70%;
  height: auto;
  display: block;
  align-items: center;
  justify-content: center;
  border-radius: calc(var(--radius) - 4px);
}
@media (max-width:1000px){ .grid-3{ grid-template-columns: repeat(2, 1fr); } }
@media (max-width:700px){ .grid-3{ grid-template-columns: 1fr; } }

.panel{
  position:relative; display:block; overflow:hidden;
  border:1px solid var(--border);
  border-radius:var(--radius);
  background:linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,.00));
  box-shadow: var(--shadow);
  min-height:320px;
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}
.panel:hover{ transform: translateY(-4px); box-shadow: 0 22px 60px rgba(0,0,0,.5); border-color: rgba(255,255,255,.18); }

.panel-media{
  position:absolute; inset:0;
  background-position:center; background-size:cover; background-repeat:no-repeat;
  transform: scale(1.02);
  transition: transform 1.2s ease;
}
.panel:hover .panel-media{ transform: scale(1.07); }

.panel-overlay{
  position:absolute; inset:0;
  background: radial-gradient(60% 60% at 60% 20%, rgba(0,0,0,.0), rgba(0,0,0,.55) 70%),
              linear-gradient(180deg, rgba(0,0,0,.0), rgba(0,0,0,.65));
  mix-blend-mode: normal;
}

.panel-body{
  position:relative; z-index:1;
  display:flex; flex-direction:column; justify-content:flex-end;
  gap:10px;
  min-height:320px;
  padding:24px;
  color:#eaf5ff;
  text-shadow: 0 2px 18px rgba(0,0,0,.5);
}
.panel h3{ margin:0; font-size:clamp(18px,1.8vw,22px); line-height:1.3; }
.panel p{ margin:0 0 6px; color:#cfe2ff; }

.tag{
  align-self:flex-start;
  display:inline-block; padding:6px 10px;
  border-radius:999px;
  border:1px solid rgba(25,211,255,.28);
  background:rgba(25,211,255,.14);
  color:var(--accent);
  font-weight:700; letter-spacing:.2px;
}



/* ---------- Contact ---------- */
.contact{
  position:relative;
  padding:clamp(54px,9vw,110px) 0;
  overflow:hidden;
  background: linear-gradient(180deg, var(--bg-2), transparent);
  text-align:center;
}
.contact .parallax-bg{
  position:absolute; inset:-10%;
  background:
    radial-gradient(800px 420px at 20% 10%, rgba(25,211,255,.15), transparent 65%),
    radial-gradient(600px 300px at 80% 20%, rgba(106,240,255,.10), transparent 70%);
  opacity:.7;
  pointer-events:none;
  will-change:transform;
}
.contact h2{ margin:0 0 10px; font-size:clamp(24px,2.6vw,36px); }
.contact p{ color:var(--muted); margin:10px auto 18px; max-width:720px; }
.contact .mail{
  display:inline-block;
  margin-top:10px;
  font-weight:800;
  letter-spacing:.2px;
  color:var(--accent);
  border-bottom:1px dashed rgba(25,211,255,.35);
}
.contact .mail:hover{ filter:brightness(1.15); border-bottom-style:solid; }

/* ---------- Footer ---------- */
.site-footer{
  border-top:1px solid var(--border);
  background: linear-gradient(180deg, rgba(255,255,255,.02), transparent);
  padding: 18px 0;
  color:var(--muted);
}
.foot-flex{ display:flex; align-items:center; justify-content:space-between; gap:16px; }
@media (max-width:720px){ .foot-flex{ flex-direction:column; text-align:center; } }
.site-footer a{ color:var(--muted); }
.site-footer a:hover{ color:var(--text); }

/* ---------- Motion safety ---------- */
@media (prefers-reduced-motion:reduce){
  *{ animation:none !important; transition:none !important; }
}


/* === Hotfix: tighten hero spacing + center logo + bring cards closer === */
@media (min-width: 901px){
  .hero{ min-height:56svh; }                /* was 70svh */
}
.hero .container{ padding-top: clamp(24px, 6vh, 56px); padding-bottom: clamp(10px, 4vh, 28px); }
.subtitle{ margin: 8px auto 12px; }         /* reduce bottom space */
 
.cta-row{ margin-bottom: 6px; }

/* Panels section: reduce top padding to bring it closer to hero */
.panels{ padding-top: clamp(24px, 5vw, 48px); padding-bottom: clamp(40px, 7vw, 90px); }

/* Force-center the logo even if DOM differs */
.hero .container > img,
.hero img.hero-logo{
  display:block;
  margin-inline:auto;
}

/* Optional: slightly reduce default grid gap on wide screens */
@media (min-width: 1100px){
  :root{ --gap: 24px; }
}


/* === Responsive Nav (brand + menu) === */
.site-header .brand { display:flex; align-items:center; gap:10px; font-weight:800; letter-spacing:.3px; }
.site-header .brand img { height:36px; width:auto; display:block; }

.nav__menu{ display:flex; gap:18px; align-items:center; }
.nav__menu .nav__link{ color:var(--muted); padding:10px 12px; border-radius:10px; }
.nav__menu .nav__link[aria-current="page"], .nav__menu .nav__link:hover{ color:var(--text); background:rgba(255,255,255,.06); }

.menu-btn{ display:none; }
@media (max-width: 900px){
  .menu-btn{ display:inline-flex; }
  .nav__menu{
    position:fixed; inset:68px 0 auto 0;
    background:rgba(6,10,16,.96);
    border-top:1px solid var(--border);
    flex-direction:column;
    padding:16px;
    transform: translateY(-6px);
    opacity:0; pointer-events:none;
    transition: opacity .2s ease, transform .2s ease;
  }
  .nav__menu.is-open{ opacity:1; pointer-events:auto; transform: none; }
}
/* Inputs minimal styling to match dark theme */
.form-control{
  width:100%; padding:10px 12px; border-radius:10px;
  border:1px solid var(--border);
  background:rgba(255,255,255,.03); color:var(--text);
  outline:none;
}
.form-control::placeholder{ color:var(--muted); opacity:.8; }


/* === Header transparency on scroll (with transition) === */
.has-fixed-header .site-header{
  transition: background .25s ease, box-shadow .25s ease;
  background: linear-gradient(180deg, rgba(6,10,16,.92), rgba(6,10,16,.72));
}
.has-fixed-header .site-header.is-scrolled{
  background: linear-gradient(180deg, rgba(6,10,16,.70), rgba(6,10,16,.45));
  box-shadow: 0 10px 30px rgba(0,0,0,.45);
}

/* === Visualization frame (light, 90% width) ===
   Use:
   <section class="viz-frame">
     <div class="viz-chrome">
       <span></span><span></span><span></span>
       <strong class="viz-title">Couverture MITRE ATT&CK — Q2</strong>
     </div>
     <div class="viz-content">
       <!-- Graph/D3/iframe -->
     </div>
   </section>
*/
.viz-frame{
  width:min(90%, var(--maxw));
  margin: clamp(20px, 4vw, 34px) auto;
  color:#0b1621;
  background: linear-gradient(180deg,#f6f9fc,#eef3f9);
  border:1px solid rgba(0,20,40,.1);
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(0,0,0,.25);
  overflow:hidden;
}
.viz-chrome{
  display:flex; align-items:center; gap:10px;
  padding: 10px 14px;
  background: linear-gradient(180deg,#ffffff,#f2f6fb);
  border-bottom:1px solid rgba(0,20,40,.08);
}
.viz-chrome > span{
  width:10px; height:10px; border-radius:50%;
  background:#e0e6ee; display:inline-block;
  box-shadow: inset 0 0 0 1px #d2dbe5;
}
.viz-title{ margin-left:6px; font-weight:700; color:#0f2236; }
.viz-content{
  padding: clamp(10px, 2vw, 18px);
  min-height: 360px;
  background: repeating-linear-gradient(
              0deg, rgba(6,30,60,.04) 0, rgba(6,30,60,.04) 1px,
                    transparent 1px, transparent 24px),
              linear-gradient(180deg,#f6f9fc,#eef3f9);
}
.viz-content .chart, .viz-content canvas, .viz-content svg{
  display:block; width:100%; height: auto;
}
/* optional: full-bleed variant */
.viz-frame.is-bleed{ width: min(96%, 1400px); }

/* Dark-site compatibility: ensure links inside viz are readable */
.viz-frame a{ color:#0b4e74; }
.viz-frame a:hover{ color:#083a57; }

/* Iframe responsive */
    .iframe-container {
      position: relative;
      width: 100%;
      padding-top: 56.25%;
      border: 1px solid var(--border);
      border-radius: var(--radius);
      overflow: hidden;
      background: var(--bg-2);
      margin: 24px 0;
    }
    
    .iframe-container iframe {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      border: none;
    }
	
	/* Grid pour images et vidéos */
    .media-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
      gap: var(--gap);
      margin: 24px 0;
    }
    
    .media-item {
      border: 1px solid var(--border);
      border-radius: var(--radius);
      padding: 8px;
      background: var(--glass);
      backdrop-filter: saturate(140%) blur(10px);
      overflow: hidden;
      transition: all .3s ease;
    }
    
    .media-item:hover {
      transform: translateY(-4px);
      box-shadow: 0 20px 50px rgba(0,0,0,.4);
      border-color: rgba(255,255,255,.15);
    }
    
    .media-item img,
    .media-item video {
      width: 100%;
      height: auto;
      display: block;
      border-radius: calc(var(--radius) - 4px);
    }

/* Burger icon */
.menu-btn{ position:relative; }
.menu-btn .burger{ display:inline-block; width:24px; height:18px; position:relative; }
.menu-btn .burger i{
  position:absolute; left:0; right:0; height:2px; background:var(--text);
  border-radius:2px; transition:transform .2s ease, opacity .2s ease, top .2s ease, bottom .2s ease;
}
.menu-btn .burger i:nth-child(1){ top:0; }
.menu-btn .burger i:nth-child(2){ top:8px; }
.menu-btn .burger i:nth-child(3){ bottom:0; }

/* État ouvert (aria-expanded=true) => ☰ devient ✕ */
.menu-btn[aria-expanded="true"] .burger i:nth-child(1){
  top:8px; transform:rotate(45deg);
}
.menu-btn[aria-expanded="true"] .burger i:nth-child(2){
  opacity:0;
}
.menu-btn[aria-expanded="true"] .burger i:nth-child(3){
  bottom:auto; top:8px; transform:rotate(-45deg);
}

/* Menu mobile (déjà présent, rappel + z-index pour passer devant) */
.menu-btn{ display:none; }
@media (max-width:900px){
  .menu-btn{ display:inline-flex; }
  .nav__menu{
    position:fixed; inset:68px 0 auto 0; z-index:60;
    background:rgba(6,10,16,.96);
    border-top:1px solid var(--border);
    flex-direction:column; padding:16px;
    transform:translateY(-6px); opacity:0; pointer-events:none;
    transition:opacity .2s ease, transform .2s ease;
  }
  .nav__menu.is-open{ opacity:1; pointer-events:auto; transform:none; }
}
/* === Graphe ontologie D3 (namespacé, compatible thème) === */
.cylg { --cylg-text:#e9f2ff; --cylg-muted:#b8cbe3; --cylg-border:rgba(255,255,255,.10);
        --cylg-glass:rgba(18,26,38,.55); --cylg-shadow:0 16px 40px rgba(0,0,0,.45);
        --cylg-link:#6aa7ffcc; --cylg-link-hover:#6af0ff; font-family: inherit; color:var(--cylg-text); }
.cylg .cylg-stage{ width:100%; height:680px; display:block; } /* hauteur du graphe dans la viz */

.cylg .cylg-link{ fill:none; stroke:var(--cylg-link); stroke-width:4; }
.cylg .cylg-edge:hover .cylg-link{ stroke:var(--cylg-link-hover); stroke-width:5; }
.cylg .cylg-link-label{ font-size:12px; fill:#cfe2ff; pointer-events:none; }

.cylg .cylg-card{
  font-size:14px; line-height:1.5; color:var(--cylg-text);
  background:var(--cylg-glass); border:1px solid var(--cylg-border);
  border-radius:16px; box-shadow:var(--cylg-shadow);
  width:360px; padding:14px 16px; backdrop-filter:saturate(140%) blur(10px);
}
.cylg .cylg-eyebrow{
  display:inline-block; font-size:12px; color:var(--cylg-muted);
  border:1px solid rgba(255,255,255,.18); border-radius:999px; padding:4px 10px; margin-bottom:10px;
  background:rgba(255,255,255,.05);
}
.cylg .cylg-title{ font-weight:800; margin:2px 0 8px; }
.cylg .cylg-kv{ display:grid; grid-template-columns:auto 1fr; gap:6px 12px; }
.cylg .cylg-k{ color:var(--cylg-muted); }
.cylg .cylg-v{ color:#fff; word-break:break-word; }

/* Barre outils du graphe (réutilise .btn & .form-control du thème) */
.viz-tools{ display:flex; gap:8px; align-items:center; flex-wrap:wrap; margin-bottom:10px; }
.viz-tools .spacer{ flex:1 1 auto; }

.intro-onto.wide .container {
  max-width: 90%;
  margin: auto;
}
 .intro-onto .container {
      max-width: 65vw !important;
      width: 65vw !important;
    }

.flow-node.is-active {
  background: #0078d4;
  color: #ff78f;
  border-color: #0078d4;
}

/* ====== Intro Ontologie (compacte & digeste) ====== */
.intro-onto{
  padding: clamp(22px, 5vw, 44px) 0;
  background: linear-gradient(180deg, var(--bg-2), transparent);
}
.intro-title{
  margin: 8px 0 12px;
  font-size: clamp(22px, 3.4vw, 32px);
  line-height: 1.2;
}
.intro-tldr{
  margin: 10px 0 18px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(25,211,255,.10), rgba(25,211,255,.04));
  box-shadow: var(--shadow);
}
.intro-tldr strong{ color: var(--accent); }

.intro-card{
  margin: 12px 0 16px;
  padding: 16px 16px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--glass);
  backdrop-filter: saturate(140%) blur(10px);
  box-shadow: var(--shadow);
}
.intro-badge{
  display: inline-block;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  color: var(--accent);
  border: 1px solid rgba(25,211,255,.25);
  background: rgba(25,211,255,.10);
  margin-bottom: 8px;
}
.intro-badge2{
  display: inline-block;
  font-size: 16px;
  padding: 4px 10px;
  border-radius: 200px;
  color: var(--accent);
  border: 1px solid rgba(25,211,255,.25);
  background: rgba(25,211,255,.10);
  margin-bottom: 8px;
}

.intro-callout{
  margin-top: 10px;
  padding: 10px 12px;
  border-left: 4px solid var(--accent);
  background: rgba(25,211,255,.08);
  border-radius: 10px;
  color: var(--text);
}

/* Accordéons (details/summary) */
.intro-accordions{
  display: grid;
  gap: 10px;
  margin: 14px 0 12px;
}
.intro-accordions details{
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255,255,255,.03);
  padding: 8px 12px;
  transition: box-shadow .2s ease, background .2s ease;
}
.intro-accordions details[open]{
  box-shadow: var(--shadow);
  background: rgba(255,255,255,.05);
}
.intro-accordions summary{
  cursor: pointer;
  font-weight: 700;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
  user-select: none;
  position: relative;
  padding-right: 30px;
  transition: color .2s ease;
}
.intro-accordions summary:hover{
  color: var(--accent);
}
.intro-accordions summary::-webkit-details-marker{ display:none; }

/* Chevron indicateur cliquable */
.intro-accordions summary::after{
  content: "▼";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  color: var(--accent);
  transition: transform .3s ease;
}

/* Rotation du chevron quand ouvert */
.intro-accordions details[open] summary::after{
  transform: translateY(-50%) rotate(180deg);
}

/* Animation d'ouverture */
.intro-accordions details[open] summary{
  margin-bottom: 8px;
}

.intro-accordions ul{ margin: 8px 0 2px 18px; color: var(--muted); }

.intro-roi{
  margin-top: 6px;
  padding: 10px 12px;
  border: 1px dashed var(--border);
  border-radius: 12px;
  background: linear-gradient(90deg, rgba(16,185,129,0.12), transparent);
  color: var(--text);
  font-size: 14px;
}
<style>
    /* Styles spécifiques pour les diagrammes de flux */
    .flow-diagram {
      width: 100%;
      max-width: 1200px;
      margin: 0 auto;
      padding: 20px;
    }
    
    .flow-node {
      padding: 15px 20px;
      border-radius: 12px;
      margin: 10px;
      font-size: 14px;
      text-align: center;
      box-shadow: 0 4px 12px rgba(0,0,0,.15);
      min-width: 180px;
    }
    
    .flow-node.detection {
      background: linear-gradient(135deg, #f8d7da, #f5c6cb);
      color: #721c24;
      border: 2px solid #f5c2c7;
    }
    
    .flow-node.scoring {
      background: linear-gradient(135deg, #cfe2ff, #b6d4fe);
      color: #084298;
      border: 2px solid #9ec5fe;
    }
    
    .flow-node.mapping {
      background: linear-gradient(135deg, #fff3cd, #ffe69c);
      color: #664d03;
      border: 2px solid #ffe066;
    }
    
    .flow-node.reference {
      background: linear-gradient(135deg, #f8f9fa, #e9ecef);
      color: #212529;
      border: 2px solid #dee2e6;
    }
    
    .flow-node.recommendation {
      background: linear-gradient(135deg, #d1e7dd, #badbcc);
      color: #0f5132;
      border: 2px solid #a3cfbb;
    }
    
    .flow-container {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin: 40px 0;
      flex-wrap: wrap;
      gap: 15px;
    }
    
    .flow-arrow {
      font-size: 32px;
      color: #6c867d;
      margin: 0 10px;
    }
    
    .use-case {
      background: var(--glass);
      border: 1px solid var(--border);
      border-radius: 16px;
      padding: 20px;
      margin: 20px 0;
      backdrop-filter: saturate(140%) blur(10px);
    }
    
    .use-case-title {
      color: var(--accent);
      font-weight: 700;
      margin-bottom: 15px;
      font-size: 18px;
    }
    
    .reference-list {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
      gap: 15px;
      margin: 20px 0;
    }
    
    .reference-card {
      background: rgba(255,255,255,.05);
      border: 1px solid var(--border);
      border-radius: 12px;
      padding: 15px;
      text-align: center;
    }
    
    .reference-card strong {
      color: var(--accent);
      display: block;
      margin-bottom: 8px;
    }
    
    @media (max-width: 768px) {
      .flow-container {
        flex-direction: column;
      }
      .flow-arrow {
        transform: rotate(90deg);
      }
    }
	
	/* Centrage et transition du toggle Navigator/Sankey */
.view-switcher .flow-node {
  margin: 0 8px;
  padding: 10px 24px;
  font-weight: 600;
  border-radius: 8px;
  background: var(--button-bg, #1a1f25);
  color: #e4e7eb;
  border: 1px solid #2e3640;
  transition: all 0.2s ease;
}
.view-switcher .flow-node:hover {
  background: #0078d4;
  color: #fff;
}
.view-switcher .flow-node.is-active {
  background: #0078d4;
  color: #fff;
  border-color: #0078d4;
}

/* Zoom (scrollable iframe wrapper) */
.iframe-wrapper {
  overflow: auto;
  resize: both;
  border-radius: 12px;
}
/* Style sobre et professionnel */
.clean-block {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 40px;
}

.section-title {
  margin: 0 0 24px;
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--text-primary, #eaeaea);
}

.grid-advantages {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.advantage-block {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 20px;
  transition: background 0.3s, border-color 0.3s;
}

.advantage-block:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.15);
}

.advantage-block h3 {
  color: var(--accent, #29b6f6);
  font-size: 1.1rem;
  margin: 0 0 12px;
  font-weight: 600;
}

.advantage-block ul {
  margin: 0;
  padding-left: 20px;
  color: var(--muted, #c9c9c9);
  line-height: 1.7;
}

.summary-block {
  margin-top: 32px;
  padding: 16px 20px;
  border-left: 4px solid var(--accent, #29b6f6);
  background: rgba(41, 182, 246, 0.1);
  border-radius: 6px;
  color: var(--text-secondary, #ddd);
  font-size: 0.95rem;
}


