/*
Theme Name: NORUBI Blog
Theme URI: https://www.norubi.com/
Author: NORUBI
Description: Thème WordPress léger et responsive pour le blog NORUBI / L’ÉCOLE.
Version: 8.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: norubi-blog
*/
:root{
  --ink:#111;
  --muted:#4d4d4d;
  --blue:#6aa8ef;
  --blue-deep:#4f81d7;
  --line:#43c548;
  --paper:rgba(255,255,255,.92);
  --paper-strong:#fff;
  --shadow:0 20px 50px rgba(0,0,0,.14);
  --soft:0 10px 26px rgba(0,0,0,.10);
  --radius:32px;
}
*{box-sizing:border-box;min-width:0}
html{width:100%;max-width:100%;overflow-x:hidden;-webkit-text-size-adjust:100%;text-size-adjust:100%}
body{
  margin:0; width:100%; max-width:100%; overflow-x:hidden; min-height:100%;
  font-family:"Hiragino Kaku Gothic ProN","Yu Gothic","Meiryo",system-ui,-apple-system,BlinkMacSystemFont,sans-serif;
  color:var(--ink); line-height:1.75;
  background:
    linear-gradient(rgba(239,248,248,.88),rgba(255,248,240,.90)),
    url('assets/etretat-bg.jpg') center top / cover fixed no-repeat;
}
a{color:inherit;text-decoration:none}
a:hover{color:#2359b7}
img,svg,video,canvas,iframe{max-width:100%}
img{display:block;height:auto;-webkit-user-drag:none;user-drag:none;-webkit-touch-callout:none;-webkit-user-select:none;user-select:none}
input,button,textarea,select{font:inherit}
.norubi-shell{width:min(1220px,calc(100% - 28px));margin:0 auto;padding:22px 0 36px}
.norubi-topbar{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:26px}
.norubi-brand{
  display:inline-flex;align-items:center;gap:14px;min-height:72px;padding:14px 24px;border-radius:999px;
  background:rgba(255,255,255,.84);border:1px solid rgba(255,255,255,.84);box-shadow:0 12px 30px rgba(0,0,0,.08);
}
.norubi-brand img{height:40px;width:auto;object-fit:contain}
.norubi-brand span{font-family:Georgia,"Times New Roman",serif;font-size:24px;font-weight:1000;letter-spacing:.18em}
.norubi-menu{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:10px;align-items:center}
.norubi-menu a,.menu a{
  display:inline-flex;align-items:center;justify-content:center;min-height:56px;padding:12px 20px;border-radius:999px;white-space:nowrap;
  background:rgba(255,255,255,.86);border:1px solid rgba(255,255,255,.84);box-shadow:0 12px 24px rgba(0,0,0,.07);
  font-size:15px;font-weight:950;letter-spacing:.03em;color:#111;
}
.norubi-menu a.contact{background:linear-gradient(180deg,var(--blue),var(--blue-deep));color:#fff}
.norubi-menu a.line{background:linear-gradient(180deg,#06C755,#05AE49);color:#fff}
.norubi-hero{
  margin:0 auto 34px;
  padding:clamp(28px,5vw,72px) clamp(18px,4vw,58px);
  border-radius:40px; overflow:hidden; position:relative;
  background:
    linear-gradient(rgba(245,251,251,.88),rgba(255,248,242,.90)),
    url('assets/etretat-bg.jpg') center center / cover no-repeat;
  border:1px solid rgba(255,255,255,.82); box-shadow:var(--shadow); text-align:center;
}
.norubi-hero::before{
  content:""; position:absolute; inset:0;
  background:radial-gradient(circle at 18% 20%, rgba(255,255,255,.64), transparent 30%), radial-gradient(circle at 85% 25%, rgba(175,239,241,.40), transparent 28%);
  pointer-events:none;
}
.norubi-hero > *{position:relative;z-index:1}
.norubi-hero-brand{display:flex;justify-content:center;align-items:center;margin:0 auto 18px}
.norubi-hero-brand img{width:min(520px,88%);height:auto;object-fit:contain;filter:drop-shadow(0 4px 14px rgba(255,255,255,.45))}
.norubi-eyebrow{
  display:inline-flex;align-items:center;justify-content:center;padding:10px 20px;min-height:52px;border-radius:999px;background:rgba(255,255,255,.88);
  border:1px solid rgba(255,255,255,.86);box-shadow:0 14px 30px rgba(0,0,0,.08);font-size:15px;font-weight:1000;letter-spacing:.18em;color:#333;margin-bottom:16px;
}
.norubi-hero h1{margin:0;font-size:clamp(38px,7vw,74px);line-height:1.1;letter-spacing:.02em;font-weight:1000;color:#111}
.norubi-hero p{margin:16px auto 0;width:min(880px,100%);font-size:clamp(17px,2vw,23px);font-weight:850;line-height:1.9;color:#262626}
.norubi-cta-row{margin-top:28px;display:flex;flex-wrap:wrap;justify-content:center;gap:14px}
.norubi-btn{display:inline-flex;align-items:center;justify-content:center;text-align:center;min-height:58px;padding:14px 22px;border-radius:20px;color:#fff;font-weight:1000;box-shadow:0 16px 34px rgba(0,0,0,.14)}
.norubi-btn.blue{background:linear-gradient(180deg,var(--blue),var(--blue-deep))}
.norubi-btn.line{background:linear-gradient(180deg,#06C755,#05AE49)}
.norubi-btn.dark{background:linear-gradient(180deg,#0a0a0a,#2d2d2d)}
.norubi-layout{display:grid;grid-template-columns:minmax(0,1fr) 310px;gap:28px;align-items:start}
.norubi-post-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px}
.norubi-card,.norubi-panel,.norubi-article{background:var(--paper);backdrop-filter:blur(10px);border:1px solid rgba(255,255,255,.84);box-shadow:var(--shadow);border-radius:var(--radius)}
.norubi-card{overflow:hidden;transition:transform .18s ease, box-shadow .18s ease}
.norubi-card:hover{transform:translateY(-4px);box-shadow:0 28px 70px rgba(0,0,0,.16)}
.norubi-card-image,.wp-block-post-featured-image,.post-thumbnail,.entry-media,.elementor-post__thumbnail,.norubi-featured{
  display:block;width:100%;aspect-ratio:1/1;overflow:hidden;background:#eef7f7;
}
.norubi-card-image img,.wp-block-post-featured-image img,.post-thumbnail img,.entry-media img,.elementor-post__thumbnail img,.norubi-featured img{
  width:100%!important;height:100%!important;object-fit:cover!important;object-position:center center!important;display:block!important;
}
.norubi-card-body{padding:22px}
.norubi-cat{color:#2f72b7;font-size:13px;font-weight:1000;letter-spacing:.04em}
.norubi-card h2{margin:10px 0 10px;font-size:clamp(24px,2.2vw,32px);line-height:1.34}
.norubi-meta{margin:0 0 12px;color:#5579b7;font-weight:900;font-size:14px}
.norubi-excerpt{margin:0;color:#303030;font-weight:750;line-height:1.85}
.norubi-readmore{margin-top:18px;display:inline-flex;align-items:center;justify-content:center;min-height:42px;padding:8px 14px;border-radius:999px;color:#fff;background:linear-gradient(180deg,var(--blue),var(--blue-deep));font-weight:950}
.norubi-sidebar{display:grid;gap:18px;position:sticky;top:18px}
.norubi-panel{padding:24px}
.norubi-panel h3{margin:0 0 12px;font-size:21px;line-height:1.4}
.norubi-panel p{margin:0 0 14px;color:var(--muted);font-weight:800}
.norubi-panel ul{list-style:none;padding:0;margin:0;display:grid;gap:10px}
.norubi-panel li a{display:flex;padding:10px 12px;border-radius:14px;background:rgba(255,255,255,.76);font-weight:900}
.norubi-panel .socials{display:flex;flex-wrap:wrap;gap:10px}
.norubi-social{display:inline-flex;align-items:center;justify-content:center;width:46px;height:46px;border-radius:14px;background:#fff;box-shadow:0 8px 18px rgba(0,0,0,.08);color:#fff;flex:0 0 auto}
.norubi-social svg{width:22px;height:22px;display:block}
.norubi-social.youtube{background:#ff0000}
.norubi-social.spotify{background:#1db954}
.norubi-social.instagram{background:linear-gradient(135deg,#833ab4,#fd1d1d,#fcb045)}
.norubi-social.tiktok{background:#111}
.norubi-article{overflow:hidden}
.norubi-article-header{padding:28px 30px 16px}
.norubi-article h1{margin:8px 0 12px;font-size:clamp(34px,5vw,60px);line-height:1.18;letter-spacing:.02em}
.norubi-content{padding:28px 30px 34px;background:rgba(255,255,255,.96)}
.norubi-content > *:first-child{margin-top:0}
.norubi-content h2{font-size:clamp(25px,3vw,38px);line-height:1.35;margin:1.7em 0 .55em;border-bottom:2px solid rgba(90,160,223,.20);padding-bottom:.2em}
.norubi-content p,.norubi-content li{font-size:clamp(16px,1.8vw,19px);color:#1f1f1f;line-height:1.95;font-weight:720}
.norubi-content a{color:#2f72b7;font-weight:950;text-decoration:underline;text-underline-offset:4px}
.norubi-content img{border-radius:22px;box-shadow:var(--soft);max-width:100%;height:auto!important}
.norubi-post-nav{display:grid;grid-template-columns:1fr 1fr;gap:12px;padding:0 30px 30px;background:rgba(255,255,255,.96)}
.norubi-post-nav a{display:flex;min-height:58px;align-items:center;justify-content:center;text-align:center;padding:12px 16px;border-radius:18px;color:#fff;background:linear-gradient(180deg,#080808,#2c2c2c);font-weight:950}
.pagination,.nav-links{display:flex;justify-content:center;gap:8px;flex-wrap:wrap;margin:28px 0 0}
.page-numbers{display:inline-flex;align-items:center;justify-content:center;min-width:42px;min-height:42px;border-radius:999px;background:#fff;box-shadow:0 10px 22px rgba(0,0,0,.06);font-weight:950}
.page-numbers.current{background:var(--blue-deep);color:#fff}
.norubi-empty{padding:34px;text-align:center}
.norubi-footer{margin:34px 0 0;padding:18px 0 4px;text-align:center;color:rgba(0,0,0,.76);font-size:12px;font-weight:800}
.norubi-footer-links{display:flex;justify-content:center;align-items:center;flex-wrap:wrap;gap:10px;margin-top:10px}
.norubi-footer-links a{text-decoration:underline;text-underline-offset:4px}
.screen-reader-text{border:0;clip:rect(1px,1px,1px,1px);clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute!important;width:1px;word-wrap:normal!important}
@media(max-width:980px){.norubi-layout{grid-template-columns:1fr}.norubi-sidebar{position:static;grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){
  .norubi-shell{width:min(100% - 16px,100%);padding:14px 0 28px}
  .norubi-topbar{display:grid}
  .norubi-menu{justify-content:flex-start}
  .norubi-menu a,.menu a{width:100%;white-space:normal}
  .norubi-brand{justify-content:center}
  .norubi-brand span{font-size:20px}
  .norubi-hero{text-align:left;border-radius:28px;padding:26px 16px}
  .norubi-hero-brand{justify-content:flex-start}
  .norubi-hero-brand img{width:min(340px,92%)}
  .norubi-eyebrow{min-height:48px;padding:8px 14px;font-size:13px}
  .norubi-hero h1{font-size:clamp(34px,12vw,48px)}
  .norubi-cta-row{justify-content:flex-start}
  .norubi-btn{width:100%}
  .norubi-post-grid,.norubi-sidebar{grid-template-columns:1fr}
  .norubi-card,.norubi-panel,.norubi-article{border-radius:24px}
  .norubi-post-nav{grid-template-columns:1fr;padding:0 20px 20px}
  .norubi-article-header,.norubi-content{padding-left:20px;padding-right:20px}
  .norubi-footer-links span{display:none}
  .norubi-footer-links a{width:100%;display:inline-flex;justify-content:center}
  input,select,textarea,button{font-size:16px}
}


/* V4: remove duplicated NORUBI branding */
.norubi-brand img{
  height:48px;
  max-width:min(360px,70vw);
  width:auto;
}
.norubi-brand span{
  display:inline-flex;
}
.norubi-hero{
  padding-top:clamp(44px,6vw,88px);
  padding-bottom:clamp(44px,6vw,88px);
}
.norubi-hero h1{
  font-size:clamp(40px,6vw,72px);
}
.norubi-hero-brand,
.norubi-hero-logo{
  display:none!important;
}
@media(max-width:760px){
  .norubi-brand{
    width:100%;
    justify-content:center;
  }
  .norubi-brand img{
    max-width:82vw;
    height:auto;
  }
}


/* V5: blog landing simplifiée */
.norubi-topbar{
  margin-bottom:clamp(18px,3vw,34px);
}
.blog .norubi-layout,
.home .norubi-layout{
  margin-top:clamp(16px,3vw,32px);
}
.norubi-menu a.line{
  background:linear-gradient(180deg,#06C755,#05AE49);
  color:#fff;
}
.norubi-menu a.contact{
  background:linear-gradient(180deg,var(--blue),var(--blue-deep));
  color:#fff;
}
@media(min-width:761px){
  .norubi-topbar{
    align-items:flex-start;
  }
  .norubi-menu{
    max-width:720px;
  }
}
@media(max-width:760px){
  .blog .norubi-layout,
  .home .norubi-layout{
    margin-top:14px;
  }
}


/* V6: mobile-first blog hub */
.norubi-mobile-hub{
  width:min(920px,100%);
  margin:clamp(12px,3vw,30px) auto 0;
  display:grid;
  gap:clamp(16px,3vw,26px);
}
.norubi-hub-section{
  background:rgba(255,255,255,.94);
  border:1px solid rgba(255,255,255,.86);
  border-radius:30px;
  box-shadow:0 18px 46px rgba(0,0,0,.12);
  backdrop-filter:blur(10px);
  overflow:hidden;
}
.norubi-hub-head{
  padding:clamp(18px,3vw,26px) clamp(18px,3vw,28px);
  border-bottom:1px solid rgba(0,0,0,.06);
  background:linear-gradient(180deg,rgba(255,255,255,.94),rgba(245,252,252,.90));
}
.norubi-hub-head h2{
  margin:0;
  font-size:clamp(24px,4.8vw,36px);
  line-height:1.35;
  font-weight:1000;
  letter-spacing:.02em;
}
.norubi-hub-head p{
  margin:5px 0 0;
  color:var(--muted);
  font-size:clamp(13px,3.4vw,16px);
  font-weight:850;
  line-height:1.7;
}
.norubi-hub-list{
  display:grid;
}
.norubi-hub-item{
  display:grid;
  gap:14px;
  padding:clamp(15px,3vw,20px) clamp(18px,3vw,28px);
  border-bottom:1px solid rgba(0,0,0,.07);
  background:rgba(255,255,255,.72);
}
.norubi-hub-item:last-child{
  border-bottom:none;
}
.norubi-hub-item:hover{
  background:#fff;
}
.norubi-hub-list.with-images .norubi-hub-item{
  grid-template-columns:72px minmax(0,1fr);
  align-items:center;
}
.norubi-hub-thumb{
  width:72px;
  height:72px;
  border-radius:20px;
  overflow:hidden;
  background:linear-gradient(135deg,#d9f4f4,#fff7ec);
  box-shadow:0 10px 22px rgba(0,0,0,.08);
  display:grid;
  place-items:center;
}
.norubi-hub-thumb img{
  width:100%!important;
  height:100%!important;
  object-fit:cover!important;
  display:block!important;
}
.norubi-hub-thumb-fallback{
  font-family:Georgia,"Times New Roman",serif;
  font-weight:1000;
  font-size:30px;
}
.norubi-hub-title{
  display:block;
  color:#111;
  font-size:clamp(18px,4.5vw,23px);
  line-height:1.48;
  font-weight:1000;
}
.norubi-hub-meta{
  display:block;
  margin-top:4px;
  color:#2f72b7;
  font-size:clamp(12px,3.3vw,14px);
  font-weight:900;
  line-height:1.5;
}
.norubi-hub-empty{
  padding:18px 28px 24px;
  color:var(--muted);
  font-weight:850;
}
.norubi-hub-empty p{
  margin:0;
}
.norubi-hub-latest .norubi-hub-head{
  background:linear-gradient(180deg,rgba(255,255,255,.96),rgba(235,248,255,.92));
}
@media(min-width:900px){
  .norubi-mobile-hub{
    grid-template-columns:1fr 1fr;
    align-items:start;
  }
  .norubi-hub-latest{
    grid-column:1 / -1;
  }
  .norubi-hub-latest .norubi-hub-list{
    grid-template-columns:repeat(5,minmax(0,1fr));
  }
  .norubi-hub-latest .norubi-hub-list.with-images .norubi-hub-item{
    grid-template-columns:1fr;
    align-items:start;
  }
  .norubi-hub-latest .norubi-hub-thumb{
    width:100%;
    height:auto;
    aspect-ratio:1/1;
    border-radius:22px;
  }
}
@media(max-width:760px){
  .norubi-mobile-hub{
    gap:16px;
  }
  .norubi-hub-section{
    border-radius:24px;
  }
  .norubi-hub-list.with-images .norubi-hub-item{
    grid-template-columns:64px minmax(0,1fr);
  }
  .norubi-hub-thumb{
    width:64px;
    height:64px;
    border-radius:18px;
  }
}


/* V7: Japanese readability polish — less heavy text */
body{
  font-weight:500;
  color:#151515;
}

/* Menu/buttons stay strong but not ultra-black */
.norubi-menu a,
.menu a,
.norubi-btn,
.norubi-readmore{
  font-weight:800;
}

/* Section/category headings remain the strongest visual anchor */
.norubi-hub-head h2,
.norubi-panel h3{
  font-weight:900;
  letter-spacing:.01em;
}

/* Post titles are important, but less aggressive than section titles */
.norubi-hub-title,
.norubi-card h2,
.norubi-article h1{
  font-weight:760;
  letter-spacing:.005em;
}

/* Metadata and category labels: readable, not shouting */
.norubi-cat,
.norubi-meta,
.norubi-hub-meta{
  font-weight:700;
}

/* Article body: much lighter for Japanese reading comfort */
.norubi-content p,
.norubi-content li{
  font-weight:500;
  line-height:2.05;
  color:#202020;
}

/* Article subtitles: clear but softer */
.norubi-content h2{
  font-weight:760;
  letter-spacing:.005em;
}

.norubi-content h3{
  font-weight:720;
}

/* Hub descriptions and excerpts no longer over-bold */
.norubi-hub-head p,
.norubi-excerpt,
.norubi-panel p{
  font-weight:560;
}

/* Mobile: reduce headline pressure even more */
@media(max-width:760px){
  .norubi-hub-title{
    font-weight:740;
  }
  .norubi-content p,
  .norubi-content li{
    font-size:17px;
    font-weight:500;
    line-height:2.08;
  }
  .norubi-content h2{
    font-size:28px;
    font-weight:750;
  }
  .norubi-article h1{
    font-weight:760;
  }
}


/* V8: lecture mobile plus douce — titres moins lourds et sections plus lisibles */
:root{
  --hub-head-a: rgba(230,248,255,.96);
  --hub-head-b: rgba(255,252,244,.96);
  --hub-border: rgba(74,139,204,.18);
}

/* Boîte de titre de catégorie plus visible, mais pas agressive */
.norubi-hub-head{
  background:linear-gradient(135deg,var(--hub-head-a),var(--hub-head-b))!important;
  border-bottom:1px solid var(--hub-border)!important;
}
.norubi-hub-head h2{
  color:#111;
  font-size:clamp(22px,4.2vw,32px);
  font-weight:820!important;
  line-height:1.35;
}
.norubi-hub-head p{
  color:#555;
  font-weight:540!important;
  line-height:1.65;
}

/* Titres des articles : plus lisibles, moins “gros bloc noir” */
.norubi-hub-title,
.norubi-card h2,
.entry-title,
h1.entry-title,
h2.entry-title,
.wp-block-post-title,
.post-title{
  font-weight:620!important;
  letter-spacing:0!important;
  color:#191919;
}
.norubi-hub-title{
  font-size:clamp(16px,3.9vw,20px)!important;
  line-height:1.58!important;
}
.norubi-card h2{
  font-size:clamp(20px,4.5vw,28px)!important;
  line-height:1.48!important;
}

/* Liste blog : respiration + séparation plus claire */
.norubi-hub-item{
  background:rgba(255,255,255,.86)!important;
  padding-top:clamp(16px,3.2vw,21px)!important;
  padding-bottom:clamp(16px,3.2vw,21px)!important;
}
.norubi-hub-item:hover,
.norubi-hub-item:focus{
  background:#fff!important;
}
.norubi-hub-meta,
.norubi-cat,
.norubi-meta{
  color:#3575b7;
  font-weight:650!important;
}

/* Articles : lecture japonaise plus confortable */
.norubi-article h1{
  font-size:clamp(28px,6.8vw,48px)!important;
  font-weight:640!important;
  line-height:1.38!important;
}
.norubi-content h2{
  font-size:clamp(23px,5.8vw,34px)!important;
  font-weight:660!important;
  line-height:1.45!important;
}
.norubi-content h3{
  font-weight:620!important;
}
.norubi-content p,
.norubi-content li{
  font-weight:470!important;
  color:#242424;
}

/* Mobile : encore plus calme */
@media(max-width:760px){
  .norubi-hub-head{
    padding:18px 18px!important;
  }
  .norubi-hub-head h2{
    font-size:25px!important;
    font-weight:800!important;
  }
  .norubi-hub-head p{
    font-size:14px!important;
  }
  .norubi-hub-title{
    font-size:18px!important;
    font-weight:600!important;
    line-height:1.62!important;
  }
  .norubi-hub-list.with-images .norubi-hub-item{
    grid-template-columns:58px minmax(0,1fr)!important;
    gap:13px!important;
  }
  .norubi-hub-thumb{
    width:58px!important;
    height:58px!important;
    border-radius:17px!important;
  }
  .norubi-card h2{
    font-size:22px!important;
    font-weight:620!important;
  }
  .norubi-article h1{
    font-size:29px!important;
    font-weight:620!important;
  }
  .norubi-content h2{
    font-size:25px!important;
    font-weight:650!important;
  }
  .norubi-content p,
  .norubi-content li{
    font-size:16.5px!important;
    font-weight:470!important;
  }
}
