
/* =========================================================
   E5B PREMIUM — couche visuelle uniquement
   Aucun lien ni comportement modifié
   ========================================================= */

/* Page E5B */
body:has(a[href*="#/e5b"]) .box{
  border-radius:22px;
}

/* Bloc principal du choix des laboratoires */
body:has(a[href*="#/e5b"]) main{
  background:#f6f8fc;
}

/* Titres */
body:has(a[href*="#/e5b"]) h1{
  letter-spacing:-.03em;
}

body:has(a[href*="#/e5b"]) .eyebrow{
  display:inline-flex;
  align-items:center;
  width:max-content;
  padding:7px 11px;
  margin-bottom:8px;
  border-radius:999px;
  background:#eef2f8;
  color:#65738c;
  font-size:11px;
  font-weight:900;
  letter-spacing:.08em;
  text-transform:uppercase;
}

/* Les cartes existantes deviennent de vrais parcours */
body:has(a[href*="#/e5b"]) .grid .box{
  position:relative;
  overflow:hidden;
  min-height:330px;
  padding:28px !important;
  border:1px solid #e4e8f1;
  background:#fff;
  box-shadow:0 12px 35px rgba(20,32,60,.06);
  transition:
    transform .22s ease,
    box-shadow .22s ease,
    border-color .22s ease;
}

body:has(a[href*="#/e5b"]) .grid .box:hover{
  transform:translateY(-5px);
  border-color:#d6ddeb;
  box-shadow:0 22px 55px rgba(20,32,60,.11);
}

/* bande décorative supérieure */
body:has(a[href*="#/e5b"]) .grid .box:before{
  content:"";
  position:absolute;
  left:0;
  right:0;
  top:0;
  height:5px;
  background:linear-gradient(90deg,#7657ff,#e3273d);
}

/* WordPress */
body:has(a[href*="lab=wordpress"]) .box{
  background:
    radial-gradient(circle at 95% 0,rgba(33,117,155,.09),transparent 35%),
    #fff;
}

/* PrestaShop */
body:has(a[href*="lab=prestashop"]) .box{
  background:
    radial-gradient(circle at 95% 0,rgba(227,39,61,.09),transparent 35%),
    #fff;
}

/* Titres laboratoires */
body:has(a[href*="#/e5b"]) .grid .box h2{
  margin:8px 0 5px;
  color:#17213a;
  font-size:27px;
  line-height:1.1;
}

body:has(a[href*="#/e5b"]) .grid .box h3{
  margin:0 0 10px;
  color:#17213a;
  font-size:17px;
}

/* Descriptions */
body:has(a[href*="#/e5b"]) .grid .box p{
  color:#63708a;
  line-height:1.6;
}

/* Notes / listes de compétences */
body:has(a[href*="#/e5b"]) .note{
  margin:18px 0;
  padding:18px 19px;
  border:0;
  border-radius:16px;
  background:#f7f9fc;
}

body:has(a[href*="#/e5b"]) .note b{
  display:block;
  margin-bottom:9px;
  color:#17213a;
  font-size:14px;
}

body:has(a[href*="#/e5b"]) .note ul{
  display:grid;
  gap:8px;
  margin:0;
  padding:0;
  list-style:none;
}

body:has(a[href*="#/e5b"]) .note li{
  position:relative;
  padding-left:27px;
  color:#536079;
  line-height:1.45;
}

body:has(a[href*="#/e5b"]) .note li:before{
  content:"✓";
  position:absolute;
  left:0;
  top:1px;
  display:grid;
  place-items:center;
  width:19px;
  height:19px;
  border-radius:6px;
  background:#e9faf3;
  color:#15946b;
  font-size:11px;
  font-weight:900;
}

/* Boutons existants : href INCHANGÉ */
body:has(a[href*="#/e5b"]) .btn-red{
  min-height:48px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:12px;
  box-shadow:0 8px 20px rgba(227,39,61,.18);
  transition:.18s ease;
}

body:has(a[href*="#/e5b"]) .btn-red:hover{
  transform:translateY(-2px);
  box-shadow:0 12px 27px rgba(227,39,61,.25);
}

/* Missions WordPress / PrestaShop */
body:has(a[href*="#/e5b"]) .box > .note.info{
  border-left:4px solid #7657ff;
}

/* Bouton vers environnement réel */
body:has(a[href*="51.254.219.127"]) {
  font-weight:800;
}

/* Responsive */
@media(max-width:850px){
  body:has(a[href*="#/e5b"]) .grid{
    grid-template-columns:1fr !important;
  }

  body:has(a[href*="#/e5b"]) .grid .box{
    min-height:auto;
  }
}

