
:root{
  --ink:#10234f;
  --ink2:#26385f;
  --blue:#287df2;
  --blue-soft:#e9f3ff;
  --orange:#ff7a24;
  --orange-soft:#fff0e4;
  --green:#20a865;
  --green-soft:#e8f8ef;
  --pink:#ef5ca8;
  --pink-soft:#ffe8f4;
  --purple:#7c56d8;
  --purple-soft:#f0eaff;
  --yellow:#f8b931;
  --paper:#fffdfa;
  --line:#e4eaf4;
  --shadow:0 16px 45px rgba(32,52,89,.12);
  --radius:28px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body.home-manga{
  margin:0;
  font-family:"Trebuchet MS","Segoe UI",Arial,sans-serif;
  color:var(--ink);
  background:
    radial-gradient(circle at 16% 10%,rgba(255,181,82,.10) 0 100px,transparent 101px),
    radial-gradient(circle at 92% 28%,rgba(49,133,255,.08) 0 120px,transparent 121px),
    #f8fbff;
}
a{text-decoration:none;color:inherit}
button,input{font:inherit}
img{display:block;max-width:100%}

.manga-header{
  position:sticky;top:0;z-index:50;
  background:rgba(255,255,255,.94);
  backdrop-filter:blur(14px);
  border-bottom:1px solid rgba(16,35,79,.08);
}
.header-inner{
  max-width:1480px;margin:auto;padding:12px 22px;
  display:grid;grid-template-columns:auto 1fr auto;gap:26px;align-items:center;
}
.brand{
  display:flex;align-items:center;gap:10px;min-width:max-content;font-weight:1000;
  font-size:28px;letter-spacing:-1px;
}
.brand-badge{
  width:50px;height:50px;border-radius:16px;display:grid;place-items:center;
  background:linear-gradient(145deg,#2f8cff,#165ad8);
  color:#fff;font-size:22px;box-shadow:0 8px 18px rgba(40,125,242,.25);
  transform:rotate(-3deg);
}
.brand strong span{color:var(--orange)}
.topnav{display:flex;justify-content:center;gap:5px;flex-wrap:wrap}
.topnav a{
  padding:11px 14px;border-radius:14px;font-weight:800;color:#40506f;transition:.2s;
}
.topnav a:hover,.topnav a.active{background:#eaf3ff;color:#1769d7}
.header-actions{display:flex;align-items:center;gap:9px}
.search{
  position:relative;min-width:250px;
}
.search input{
  width:100%;border:1px solid #dbe3f1;background:#fff;border-radius:999px;
  padding:11px 40px 11px 16px;outline:none;color:var(--ink);
}
.search button{
  position:absolute;right:5px;top:5px;width:32px;height:32px;border:0;border-radius:50%;
  background:var(--ink);color:#fff;cursor:pointer;
}
.small-btn{
  border:1px solid #d7e0ef;border-radius:13px;background:#fff;padding:10px 13px;
  font-weight:900;color:#194d9d;cursor:pointer;white-space:nowrap;
}
.small-btn.orange{background:var(--orange);border-color:var(--orange);color:#fff}

.page{
  max-width:1480px;margin:auto;padding:22px 22px 60px;
}

.hero{
  position:relative;overflow:hidden;min-height:520px;
  border-radius:36px;background:#fff;box-shadow:var(--shadow);border:1px solid rgba(16,35,79,.07);
  display:grid;grid-template-columns:0.92fr 1.08fr;align-items:stretch;
}
.hero-copy{
  position:relative;z-index:4;padding:52px 26px 48px 50px;
  background:
    radial-gradient(circle at 8% 15%,rgba(255,122,36,.10) 0 70px,transparent 72px),
    linear-gradient(90deg,rgba(255,255,255,1) 0%,rgba(255,255,255,.96) 78%,rgba(255,255,255,.82) 100%);
}
.hero-kicker{
  display:inline-flex;align-items:center;gap:10px;padding:9px 15px;
  background:#eef0ff;color:#3d46b8;border-radius:999px;font-weight:1000;font-size:14px;
}
.hero h1{
  margin:18px 0 10px;font-size:clamp(48px,5.5vw,84px);line-height:.95;letter-spacing:-4px;
}
.hero h1 .orange{color:var(--orange)}
.hero p{
  font-size:20px;line-height:1.48;color:#43516c;max-width:690px;margin:0 0 18px;
}
.hero-pills{display:flex;gap:9px;flex-wrap:wrap;margin:22px 0}
.hero-pills span{
  display:inline-flex;align-items:center;gap:8px;padding:10px 13px;border-radius:999px;
  font-weight:900;background:#f5f7fb;border:1px solid #e4e9f2;
}
.hero-pills span:nth-child(1){background:#eaf3ff;color:#1769d7}
.hero-pills span:nth-child(2){background:#eaf8f0;color:#14874f}
.hero-pills span:nth-child(3){background:#fff0f4;color:#d43d7d}
.hero-pills span:nth-child(4){background:#fff5dd;color:#c87900}
.hero-pills span:nth-child(5){background:#f0eaff;color:#6840bb}
.hero-cta{display:flex;gap:12px;flex-wrap:wrap;margin-top:26px}
.cta{
  border:0;border-radius:16px;padding:14px 20px;font-weight:1000;cursor:pointer;
  display:inline-flex;align-items:center;justify-content:center;gap:9px;
}
.cta.primary{background:linear-gradient(135deg,#ff8a24,#ff671d);color:white;box-shadow:0 10px 20px rgba(255,122,36,.23)}
.cta.secondary{background:#edf4ff;color:#1769d7}
.hero-art{position:relative;min-height:520px}
.hero-art img{width:100%;height:100%;object-fit:cover;object-position:center}
.hero-art:after{
  content:"";position:absolute;inset:0;
  background:linear-gradient(90deg,rgba(255,255,255,.75) 0%,rgba(255,255,255,0) 24%);
}
.speech{
  position:absolute;right:28px;top:28px;z-index:5;max-width:230px;
  background:white;border:3px solid #1b315c;border-radius:24px;padding:16px 20px;
  font-weight:1000;font-size:20px;line-height:1.2;transform:rotate(2deg);box-shadow:0 10px 24px rgba(20,38,70,.14)
}
.speech:after{
  content:"";position:absolute;right:38px;bottom:-19px;border:11px solid transparent;border-top-color:#1b315c;transform:rotate(-12deg)
}

.section-head{
  display:flex;justify-content:space-between;align-items:end;gap:20px;margin:34px 0 16px;
}
.section-head h2{margin:0;font-size:34px;letter-spacing:-1.5px}
.section-head p{margin:5px 0 0;color:#66728b}
.link-arrow{font-weight:900;color:#246edc}

.role-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}
.role-card{
  position:relative;background:#fff;border-radius:28px;overflow:hidden;border:1px solid #e4eaf4;
  box-shadow:0 10px 30px rgba(27,48,85,.08);transition:.2s;
}
.role-card:hover{transform:translateY(-5px);box-shadow:0 18px 42px rgba(27,48,85,.14)}
.role-image{height:220px;overflow:hidden;background:#eef2f8}
.role-image img{width:100%;height:100%;object-fit:cover}
.role-body{padding:18px 18px 20px}
.role-label{display:flex;align-items:center;gap:10px}
.role-dot{width:42px;height:42px;border-radius:50%;display:grid;place-items:center;font-weight:1000}
.role-card h3{margin:0;font-size:26px;letter-spacing:-.8px}
.role-card p{color:#586780;line-height:1.5;min-height:68px}
.role-btn{
  width:100%;display:flex;justify-content:space-between;align-items:center;padding:12px 15px;border-radius:14px;
  font-weight:1000;
}
.blue .role-dot,.blue .role-btn{background:#e5f1ff;color:#146ddc}
.green .role-dot,.green .role-btn{background:#e6f7ed;color:#14874f}
.pink .role-dot,.pink .role-btn{background:#ffe5f1;color:#cf3575}
.purple .role-dot,.purple .role-btn{background:#efe6ff;color:#6e41c5}
.price-badge{
  position:absolute;top:13px;right:13px;background:#ef476f;color:white;border:3px solid white;
  border-radius:18px;padding:8px 10px;font-weight:1000;line-height:1;text-align:center;box-shadow:0 7px 18px rgba(239,71,111,.28)
}
.price-badge small{display:block;font-size:10px;margin-top:3px}

.subject-wrap{
  background:white;border:1px solid #e4eaf4;border-radius:30px;padding:24px;box-shadow:0 12px 32px rgba(28,45,78,.07)
}
.subject-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:14px}
.subject-card{
  position:relative;overflow:hidden;border-radius:20px;background:#f8fbff;border:1px solid #e3e9f3;
  transition:.18s;min-height:164px;
}
.subject-card:hover{transform:translateY(-3px);box-shadow:0 12px 28px rgba(31,51,87,.12)}
.subject-card img{width:100%;height:105px;object-fit:cover}
.subject-card strong{display:block;padding:12px;text-align:center;font-size:15px}

.feature-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:16px}
.feature-card{
  background:white;border:1px solid #e4eaf4;border-radius:23px;overflow:hidden;box-shadow:0 10px 24px rgba(28,45,78,.07)
}
.feature-card img{width:100%;height:160px;object-fit:cover}
.feature-card div{padding:14px}
.feature-card h3{margin:0 0 6px;font-size:20px}
.feature-card p{margin:0;color:#65738d;line-height:1.45}

.free-strip{
  margin-top:26px;border-radius:24px;padding:20px 24px;
  display:grid;grid-template-columns:repeat(4,1fr);gap:0;
  background:white;border:1px solid #e4eaf4;box-shadow:0 10px 25px rgba(28,45,78,.06)
}
.free-item{padding:4px 20px;border-right:1px solid #e4eaf4}
.free-item:last-child{border-right:0}
.free-item strong{display:block;margin-bottom:4px}
.free-item span{color:#6a7890;font-size:14px}

.footer{
  max-width:1480px;margin:0 auto 34px;padding:24px;border-top:1px solid #dfe6f1;color:#738098;text-align:center
}

/* Manga details */
.manga-pop{
  position:absolute;width:14px;height:14px;border-radius:50%;background:var(--orange);box-shadow:
  20px -10px 0 -3px var(--orange), 30px 6px 0 -5px var(--orange), 8px 22px 0 -5px var(--orange);
}
.hero-copy .manga-pop{right:50px;top:104px}

@media(max-width:1200px){
  .header-inner{grid-template-columns:auto 1fr}.header-actions{grid-column:1/-1;justify-content:center}
  .role-grid{grid-template-columns:repeat(2,1fr)}
  .subject-grid{grid-template-columns:repeat(4,1fr)}
  .feature-grid{grid-template-columns:repeat(3,1fr)}
}
@media(max-width:900px){
  .topnav{display:none}
  .header-inner{grid-template-columns:1fr auto}
  .header-actions{grid-column:1/-1}
  .search{flex:1}
  .hero{grid-template-columns:1fr}
  .hero-art{min-height:380px;order:-1}
  .hero-copy{padding:34px 28px}
  .hero h1{font-size:54px;letter-spacing:-2px}
  .subject-grid{grid-template-columns:repeat(3,1fr)}
  .feature-grid{grid-template-columns:repeat(2,1fr)}
  .free-strip{grid-template-columns:repeat(2,1fr)}
  .free-item:nth-child(2){border-right:0}.free-item{margin-bottom:14px}
}
@media(max-width:620px){
  .page{padding:14px 12px 42px}
  .header-inner{padding:10px 12px;gap:10px}
  .brand{font-size:22px}.brand-badge{width:42px;height:42px}
  .header-actions{display:grid;grid-template-columns:1fr 1fr}.search{grid-column:1/-1;min-width:0}
  .hero{border-radius:25px}.hero-art{min-height:300px}
  .speech{font-size:16px;right:15px;top:15px;max-width:180px}
  .hero-copy{padding:28px 20px}.hero h1{font-size:43px}
  .hero p{font-size:17px}
  .role-grid{grid-template-columns:1fr}.role-image{height:210px}
  .section-head{align-items:flex-start;flex-direction:column}.section-head h2{font-size:28px}
  .subject-grid{grid-template-columns:repeat(2,1fr)}
  .feature-grid{grid-template-columns:1fr}
  .free-strip{grid-template-columns:1fr}.free-item{border-right:0;border-bottom:1px solid #e4eaf4;padding:13px 4px}.free-item:last-child{border-bottom:0}
}


/* --- V2.2 : cartes matières plus manga --- */
.subject-wrap{
  padding:28px !important;
  background:
    linear-gradient(180deg,#ffffff 0%, #fbfdff 100%) !important;
}
.subject-grid{gap:18px !important}
.subject-card{
  border-radius:24px !important;
  overflow:hidden;
  background:#fff !important;
  border:2px solid #e6ebf4 !important;
  box-shadow:0 12px 28px rgba(28,45,78,.08) !important;
}
.subject-card img{
  height:165px !important;
  object-fit:cover !important;
  background:linear-gradient(135deg,#edf5ff,#fff4ea);
}
.subject-card strong{
  padding:14px 12px 6px !important;
  font-size:19px !important;
  letter-spacing:-.3px;
}
.subject-card .sub{
  display:block;
  padding:0 12px 14px;
  text-align:center;
  font-size:13px;
  color:#62718a;
  font-weight:700;
}
.subject-card::before{
  content:"";
  position:absolute;
  inset:auto 14px 58px auto;
  width:30px;height:30px;border-radius:50%;
  background:rgba(255,255,255,.92);
  box-shadow:
    -18px -6px 0 -8px rgba(255,255,255,.92),
    -5px -17px 0 -10px rgba(255,255,255,.92);
  z-index:2;
}
.subject-card::after{
  content:"";
  position:absolute;
  left:14px; top:14px;
  width:42px;height:8px;border-radius:999px;
  background:rgba(255,255,255,.68);
  box-shadow:0 14px 0 rgba(255,255,255,.48);
  z-index:2;
}
.subject-card:nth-child(6n+1) img{background:linear-gradient(135deg,#eef4ff,#eaf7ff)}
.subject-card:nth-child(6n+2) img{background:linear-gradient(135deg,#edf8ff,#eef8f2)}
.subject-card:nth-child(6n+3) img{background:linear-gradient(135deg,#fff6e8,#fff1e6)}
.subject-card:nth-child(6n+4) img{background:linear-gradient(135deg,#ecfbff,#eef5ff)}
.subject-card:nth-child(6n+5) img{background:linear-gradient(135deg,#f8f0ff,#fff2f8)}
.subject-card:nth-child(6n+6) img{background:linear-gradient(135deg,#eefdf2,#edf9ff)}
.role-card .role-btn{font-size:16px}


/* V2.3 - illustrations matières manga HD */
.subject-card img{
  height:170px !important;
  object-fit:cover !important;
  object-position:center !important;
  image-rendering:auto;
}
.subject-card .sub{min-height:34px}


/* ===================== V2.7 fix cartes matières ===================== */
.subject-grid{
  align-items:stretch !important;
}
.subject-card{
  display:flex !important;
  flex-direction:column !important;
  min-width:0 !important;
  overflow:hidden !important;
  isolation:isolate;
  contain:layout paint;
}
.subject-thumb{
  display:block;
  position:relative;
  width:100%;
  height:170px;
  overflow:hidden;
  border-bottom:1px solid #e8edf5;
  background:linear-gradient(135deg,#edf5ff,#fff4ea);
  flex:0 0 auto;
}
.subject-thumb img{
  display:block !important;
  width:100% !important;
  height:100% !important;
  max-width:none !important;
  object-fit:cover !important;
  object-position:center center !important;
  transform:scale(1.01);
}
.subject-card > img{
  display:block !important;
  width:100% !important;
  height:170px !important;
  max-width:none !important;
  object-fit:cover !important;
  object-position:center center !important;
}
.subject-card strong,
.subject-card .sub{
  position:relative;
  z-index:3;
  background:#fff;
  word-break:normal;
  overflow-wrap:anywhere;
}
.subject-card strong{
  min-height:58px;
  display:flex !important;
  align-items:center;
  justify-content:center;
  text-align:center;
  line-height:1.12;
}
.subject-card .sub{
  min-height:50px;
  display:flex;
  align-items:flex-start;
  justify-content:center;
  line-height:1.22;
}
@media(max-width:620px){
  .subject-thumb{height:145px}
}

/* V3.9 — Images matières indépendantes : aucun débordement */
.subject-card, .subject-card .subject-img, .subject-card figure,
.subjects-grid > *, .subject-grid > * { overflow:hidden !important; }
.subject-card img, .subject-img img,
.subjects-grid img, .subject-grid img {
  display:block !important;
  width:100% !important;
  height:100% !important;
  object-fit:cover !important;
  object-position:center !important;
  max-width:none !important;
}

/* V4.1 — une discipline = une vraie image séparée */
.subject-card,
.subject-card .subject-img,
.subjects-grid > *,
.subject-grid > *{
  overflow:hidden !important;
}
.subject-card img,
.subject-card .subject-img img,
.subjects-grid img,
.subject-grid img{
  display:block !important;
  width:100% !important;
  height:100% !important;
  object-fit:cover !important;
  object-position:center !important;
}
