:root {
  --bg: #b8d9f5;
  --bg-deep: #dbeafe;
  --paper: #ffffff;
  --paper-blue: #f7fbff;
  --ink: #102033;
  --muted: #5a6a7f;
  --line: #c7dcf2;
  --accent: #0b63ce;
  --accent-strong: #073b7a;
  --accent-2: #16a3d8;
  --pastel-mint: #c8f7dc;
  --pastel-pink: #f9c7df;
  --pastel-yellow: #fde9a9;
  --radius: 22px;
  --shadow: 0 24px 70px rgba(13, 63, 125, .14);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background-color: var(--bg);
  background-image:
    radial-gradient(circle at 8% 4%, rgba(22, 163, 216, .30), transparent 30rem),
    radial-gradient(circle at 92% 10%, rgba(249, 199, 223, .18), transparent 24rem),
    linear-gradient(180deg, #b8d9f5 0%, #cae3f8 48%, #a9cfee 100%);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}

a { color: inherit; text-decoration-thickness: .08em; text-underline-offset: .18em; }
a:hover { color: var(--accent); }

.container { width: min(1120px, calc(100% - 32px)); margin-inline: auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(178, 215, 245, .92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(7, 59, 122, .24);
}

.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 850; text-decoration: none; letter-spacing: -.03em; color: var(--accent-strong); }
.brand-mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 14px; color: #fff; background: linear-gradient(135deg, var(--accent-strong), var(--accent-2)); box-shadow: 0 14px 32px rgba(11, 99, 206, .25); font-size: 22px; }
.main-nav { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 8px 16px; font-size: .94rem; }
.main-nav a { text-decoration: none; color: var(--muted); font-weight: 720; padding: .45rem .15rem; }
.main-nav a:hover { color: var(--accent-strong); }
.nav-item { position: relative; display: inline-flex; align-items: stretch; }
.nav-dropdown > a { display: inline-flex; align-items: center; }
.nav-dropdown > a::after { content: "▾"; margin-left: .32rem; font-size: .72em; opacity: .72; }
.nav-submenu { position: absolute; z-index: 80; top: 100%; left: 50%; transform: translateX(-50%) translateY(-6px); min-width: 190px; display: grid; gap: 4px; padding: 12px; border: 1px solid rgba(7, 59, 122, .18); border-radius: 18px; background: rgba(247, 251, 255, .98); box-shadow: 0 24px 60px rgba(13, 63, 125, .20); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .16s ease, transform .16s ease, visibility .16s ease; }
.nav-submenu::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.nav-submenu a { display: block; padding: .62rem .78rem; border-radius: 12px; white-space: nowrap; color: var(--accent-strong); }
.nav-submenu a:hover { background: #e6f2ff; }
.nav-dropdown:hover .nav-submenu, .nav-dropdown:focus-within .nav-submenu { opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(-50%) translateY(0); }

.hero {
  padding: 76px 0 50px;
  border-bottom: 1px solid rgba(11, 99, 206, .14);
  background:
    linear-gradient(135deg, rgba(7, 59, 122, .96), rgba(11, 99, 206, .86) 48%, rgba(22, 163, 216, .72)),
    radial-gradient(circle at top left, #c8f7dc, transparent 28rem);
  color: #f8fbff;
  overflow: hidden;
}

.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) 350px; gap: 38px; align-items: end; }
.eyebrow { text-transform: uppercase; letter-spacing: .15em; font-size: .78rem; font-weight: 850; color: #b8f7ff; margin: 0 0 12px; }
.hero h1, .page-hero h1, .article-header h1 { font-family: Georgia, "Times New Roman", serif; line-height: .98; letter-spacing: -.05em; margin: 0; }
.hero h1 { font-size: clamp(3.1rem, 8vw, 7rem); max-width: 940px; text-shadow: 0 22px 55px rgba(2, 12, 32, .25); }
.hero-subtitle { font-size: clamp(1.15rem, 2.4vw, 1.58rem); max-width: 780px; color: #e8f7ff; margin: 22px 0 0; }
.hero-intro { max-width: 760px; margin: 16px 0 0; color: #d8ecff; font-size: 1.04rem; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.button { display: inline-flex; align-items: center; border: 1px solid #f8fbff; background: #f8fbff; color: var(--accent-strong); border-radius: 999px; padding: .85rem 1.1rem; text-decoration: none; font-weight: 850; box-shadow: 0 18px 36px rgba(2, 12, 32, .22); }
.button:hover { color: var(--accent-strong); transform: translateY(-1px); }
.button-ghost { background: rgba(255,255,255,.10); color: #fff; border-color: rgba(255,255,255,.54); box-shadow: none; }
.button-ghost:hover { color: #fff; background: rgba(255,255,255,.16); }
.hero-card { position: relative; padding: 26px; border: 1px solid rgba(255,255,255,.34); border-radius: var(--radius); background: linear-gradient(160deg, rgba(255,255,255,.22), rgba(255,255,255,.08)); box-shadow: 0 30px 80px rgba(2,12,32,.24); backdrop-filter: blur(12px); }
.hero-card::before { content: ""; position: absolute; inset: -30px -22px auto auto; width: 140px; height: 140px; border-radius: 999px; background: var(--pastel-pink); opacity: .48; filter: blur(2px); }
.hero-card strong { position: relative; display: block; font-size: 1.45rem; line-height: 1.15; }
.hero-card p { position: relative; color: #eaf6ff; margin-bottom: 0; }
.hero-badge { position: relative; display: inline-flex; margin-bottom: 16px; padding: .32rem .65rem; border-radius: 999px; background: var(--pastel-mint); color: #073b7a; font-weight: 850; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; }

.layout-with-sidebar { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 34px; padding: 48px 0 64px; }
.home-layout { padding: 48px 0 64px; }
.content-column { min-width: 0; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.section-heading h2 { margin: 0; font-size: clamp(1.65rem, 3vw, 2.25rem); letter-spacing: -.04em; color: var(--accent-strong); }
.section-heading a { font-weight: 800; color: var(--accent); text-decoration: none; }
.section-heading.compact h2 { font-size: 1.35rem; }

.card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.post-card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid rgba(11, 99, 206, .16); border-radius: var(--radius); background: rgba(255,255,255,.88); box-shadow: var(--shadow); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.post-card:hover { transform: translateY(-3px); border-color: rgba(11, 99, 206, .34); box-shadow: 0 28px 76px rgba(13, 63, 125, .20); }
.post-card-body { padding: 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.post-card h2, .post-card h3 { margin: 0; line-height: 1.15; letter-spacing: -.03em; }
.post-card h2 a, .post-card h3 a { text-decoration: none; }
.post-card p { color: var(--muted); margin: 0; }
.meta { color: #6b7d92; font-size: .9rem; margin-top: auto; }

.card-cover { position: relative; display: block; min-height: 172px; overflow: hidden; text-decoration: none; background: linear-gradient(135deg, #0f4c81, #2d9cdb); }
.card-cover img { display: block; width: 100%; height: 100%; min-height: 172px; object-fit: cover; }
.card-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 42%, rgba(4, 23, 48, .24)); pointer-events: none; }
.card-cover--articles { background: linear-gradient(135deg, #0f4c81, #2d9cdb 68%, #c8f7dc); }
.card-cover--carnets { background: linear-gradient(135deg, #123c69, #4f8cc9 62%, #fde9a9); }
.card-cover--lab { background: linear-gradient(135deg, #0b1f45, #2563eb 58%, #93c5fd); }
.card-cover--ressources { background: linear-gradient(135deg, #075985, #38bdf8 62%, #c4b5fd); }
.card-cover--humeur { background: linear-gradient(135deg, #082f49, #1d4ed8 58%, #f9c7df); }
.cover-orb { position: absolute; border-radius: 999px; opacity: .72; }
.cover-orb-one { width: 120px; height: 120px; right: 24px; top: 22px; background: var(--pastel-mint); }
.cover-orb-two { width: 170px; height: 170px; left: -38px; bottom: -54px; background: var(--pastel-pink); }
.cover-lines { position: absolute; left: 28px; top: 42px; width: 56%; height: 92px; border-top: 16px solid rgba(255,255,255,.78); border-bottom: 16px solid rgba(255,255,255,.55); }
.cover-lines::after { content: ""; position: absolute; left: 0; top: 34px; width: 74%; border-top: 16px solid rgba(255,255,255,.68); }

.section-pill { align-self: flex-start; display: inline-flex; border-radius: 999px; background: #e6f2ff; color: var(--accent-strong); padding: .28rem .64rem; font-weight: 850; font-size: .78rem; text-decoration: none; text-transform: uppercase; letter-spacing: .08em; }

.feature-sections { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 32px; }
.feature-block, .sidebar-box { border: 1px solid rgba(11, 99, 206, .16); border-radius: var(--radius); background: rgba(255,255,255,.84); padding: 22px; box-shadow: 0 18px 48px rgba(13, 63, 125, .09); }
.sidebar { display: grid; gap: 20px; align-content: start; }
.sidebar-box-blue { color: #f8fbff; background: linear-gradient(150deg, var(--accent-strong), var(--accent)); border-color: transparent; }
.sidebar-box-blue a { color: #fff; font-weight: 850; }
.sidebar-box h2 { margin: 0 0 10px; color: inherit; }
.sidebar-box p { margin-top: 0; color: inherit; opacity: .88; }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-cloud a { border: 1px solid rgba(11, 99, 206, .16); border-radius: 999px; padding: .34rem .62rem; text-decoration: none; color: var(--accent-strong); background: #f4f9ff; font-weight: 720; }
.clean-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.mini-item + .mini-item { border-top: 1px solid var(--line); padding-top: 16px; margin-top: 16px; }
.mini-item h3 { margin: 0 0 6px; line-height: 1.2; }
.mini-item h3 a { text-decoration: none; }
.mini-item p, .muted { color: var(--muted); margin: 0; }

.page-hero { padding: 54px 0 36px; background: linear-gradient(135deg, #dbeafe, #f7fbff 55%, #eef6ff); border-bottom: 1px solid rgba(11, 99, 206, .14); }
.page-hero h1 { font-size: clamp(2.4rem, 5vw, 4.6rem); color: var(--accent-strong); }
.page-hero p:not(.eyebrow) { max-width: 720px; color: var(--muted); font-size: 1.08rem; }
.list-layout { padding: 42px 0 70px; }
.list-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.subsection-grid { margin-bottom: 34px; }
.pagination { display: flex; justify-content: center; gap: 14px; margin-top: 30px; }
.pagination a { border: 1px solid var(--line); border-radius: 999px; padding: .65rem .9rem; background: #fff; text-decoration: none; font-weight: 800; }

.search-layout { padding: 42px 0 76px; }
.search-box { border: 1px solid rgba(11, 99, 206, .18); border-radius: 28px; background: rgba(255,255,255,.86); box-shadow: var(--shadow); padding: clamp(22px, 4vw, 34px); margin-bottom: 32px; }
.search-box label { display: block; color: var(--accent-strong); font-weight: 900; font-size: 1.15rem; margin-bottom: 10px; }
.search-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; }
.search-row input { width: 100%; border: 1px solid rgba(11, 99, 206, .24); border-radius: 999px; padding: .95rem 1.1rem; font: inherit; color: var(--ink); background: #f8fbff; outline: none; }
.search-row input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(11, 99, 206, .12); }
.search-row button { border: 0; border-radius: 999px; padding: .95rem 1.2rem; font: inherit; font-weight: 900; color: #fff; background: linear-gradient(135deg, var(--accent-strong), var(--accent)); cursor: pointer; box-shadow: 0 16px 32px rgba(11, 99, 206, .22); }
.search-heading { margin-top: 10px; }
.search-results:empty { display: none; }

.article-shell { padding: 54px 0 76px; max-width: 850px; }
.article-header { margin-bottom: 28px; }
.article-header h1 { font-size: clamp(2.5rem, 5vw, 4.7rem); margin-top: 14px; color: var(--accent-strong); }
.article-header p { color: var(--muted); font-size: 1.18rem; }
.article-cover { margin: 0 0 32px; overflow: hidden; border-radius: 28px; box-shadow: var(--shadow); border: 1px solid rgba(11, 99, 206, .16); }
.article-cover img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.article-content { font-size: 1.08rem; background: rgba(255,255,255,.82); border: 1px solid rgba(11, 99, 206, .14); border-radius: 28px; padding: clamp(24px, 4vw, 42px); box-shadow: 0 18px 55px rgba(13, 63, 125, .09); }
.article-content h2 { color: var(--accent-strong); margin-top: 1.6em; }
.article-content blockquote { margin: 1.5em 0; padding: 1rem 1.25rem; border-left: 5px solid var(--accent-2); background: #edf7ff; border-radius: 0 16px 16px 0; color: #24415f; }

.site-footer { border-top: 1px solid rgba(11, 99, 206, .16); padding: 28px 0; background: #082f49; color: #dbeafe; }
.footer-grid { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.site-footer a { color: #fff; }

@media (max-width: 920px) {
  .hero-grid, .layout-with-sidebar { grid-template-columns: 1fr; }
  .hero-card { max-width: 560px; }
  .list-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
  .header-inner { align-items: flex-start; flex-direction: column; padding: 14px 0; }
  .main-nav { justify-content: flex-start; }
  .nav-item { display: grid; width: 100%; }
  .nav-submenu { position: static; transform: none; min-width: 0; display: flex; flex-wrap: wrap; opacity: 1; visibility: visible; pointer-events: auto; padding: 0 0 0 10px; border: 0; background: transparent; box-shadow: none; }
  .nav-dropdown:hover .nav-submenu, .nav-dropdown:focus-within .nav-submenu { transform: none; }
  .hero { padding-top: 50px; }
  .card-grid, .feature-sections, .list-grid { grid-template-columns: 1fr; }
  .card-cover, .card-cover img { min-height: 190px; }
  .search-row { grid-template-columns: 1fr; }
}
