/*
Theme Name: Bien Réviser Studio
Theme URI: https://bien-reviser.fr/
Author: Bien Réviser
Description: Thème éditorial clair et responsive pour Bien Réviser.
Version: 2.0.4
Text Domain: bien-reviser
Requires at least: 6.4
Requires PHP: 7.4
*/

:root {
  --navy: #062650;
  --navy-deep: #031a38;
  --blue: #0878f9;
  --blue-soft: #e9f4ff;
  --lime: #d5ff3f;
  --coral: #ff8e7e;
  --ink: #09254a;
  --muted: #53647b;
  --line: #dce8f4;
  --surface: #ffffff;
  --surface-soft: #f3f9ff;
  --max: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 0;
  min-height: 100vh;
  color: var(--ink);
  background: #fff;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; }
.site-shell { overflow: hidden; }

.site-header {
  height: 86px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
}

.brand { display: flex; align-items: center; gap: 12px; color: var(--navy); }
.brand-mark { color: var(--navy); }
.brand strong { display: block; font-family: Georgia, "Times New Roman", serif; font-size: 25px; line-height: 1; }
.brand small { display: block; margin-top: 4px; font-size: 10px; color: #65758a; }

.main-nav { display: flex; align-items: center; gap: 32px; font-size: 14px; font-weight: 750; }
.main-nav .menu { display: flex; align-items: center; gap: 32px; margin: 0; padding: 0; list-style: none; }
.main-nav a { transition: color .2s ease; }
.main-nav a:hover, .main-nav a:focus-visible { color: var(--blue); }
.search-button, .menu-toggle { border: 0; background: none; color: var(--ink); cursor: pointer; padding: 9px; }
.menu-toggle { display: none; }

.hero {
  min-height: 650px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(520px, 1fr);
  background: var(--navy-deep);
  color: #fff;
}
.hero > * { min-width: 0; }

.hero-copy { padding: 76px max(38px, calc((100vw - var(--max)) / 2 + 28px)) 48px; padding-right: 36px; align-self: stretch; display: flex; flex-direction: column; justify-content: center; }
.hero-image { min-height: 650px; background: url('assets/images/hero-bien-reviser.png') center center / cover no-repeat; }
.eyebrow, .section-kicker { margin: 0 0 22px; color: #65c5ff; font-size: 12px; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; }
.hero h1 { margin: 0; font-size: clamp(48px, 4.05vw, 64px); line-height: .98; letter-spacing: -.045em; max-width: 650px; }
.hero h1 span { color: var(--lime); }
.hero-text { max-width: 620px; margin: 30px 0; font-size: 19px; line-height: 1.55; color: #e1ebf7; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 13px; width: fit-content; min-height: 56px; padding: 0 28px; border-radius: 9px; font-weight: 800; transition: transform .2s ease, filter .2s ease; }
.button:hover, .button:focus-visible { transform: translateY(-2px); filter: brightness(1.08); }
.button-primary { color: #fff; background: var(--blue); }
.hero-benefits { display: flex; gap: 24px; margin-top: 44px; }
.hero-benefits span { display: flex; align-items: center; gap: 9px; max-width: 130px; font-size: 12px; line-height: 1.25; color: #eef6ff; }
.hero-benefits svg { color: #fff; flex: 0 0 auto; }

.section { max-width: var(--max); margin: 0 auto; padding: 88px 28px; }
.method-section { display: grid; grid-template-columns: .82fr 1.5fr; gap: 80px; align-items: center; }
.method-section > * { min-width: 0; }
.section-kicker { color: #66809d; margin-bottom: 14px; }
.method-intro h2, .resources h2, .about h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; color: var(--navy); font-size: clamp(36px, 4vw, 54px); line-height: 1.05; letter-spacing: -.025em; }
.method-intro h2 span { color: var(--blue); }
.method-intro > p:not(.section-kicker) { margin: 24px 0 30px; color: var(--muted); font-size: 17px; line-height: 1.55; }
.method-steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.method-steps li { position: relative; }
.step-arrow { position: absolute; right: -20px; top: 32px; color: var(--blue); }
.step-icon { width: 82px; height: 82px; display: grid; place-items: center; border-radius: 50%; margin-bottom: 20px; color: var(--navy); position: relative; }
.step-icon b { position: absolute; width: 25px; height: 25px; display: grid; place-items: center; border-radius: 50%; top: -5px; left: -4px; background: var(--blue); color: #fff; font-size: 12px; }
.step-1 { background: #dceeff; } .step-2 { background: #fff0bb; } .step-3 { background: #ffe1df; } .step-4 { background: #dff8e8; }
.method-steps h3 { margin: 0 0 9px; font-family: Georgia, "Times New Roman", serif; font-size: 20px; }
.method-steps p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.45; }

.resources { max-width: none; background: var(--surface-soft); }
.resources > * { max-width: calc(var(--max) - 56px); margin-left: auto; margin-right: auto; }
.section-heading { display: flex; justify-content: space-between; gap: 30px; align-items: end; margin-bottom: 34px; }
.section-heading h2 { font-size: clamp(36px, 3.6vw, 50px); }
.section-heading > a, .text-link { display: inline-flex; align-items: center; gap: 8px; color: #006eea; font-weight: 800; font-size: 14px; }
.resource-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.resource-card { overflow: hidden; background: #fff; border: 1px solid #dfeaf5; border-radius: 10px; box-shadow: 0 12px 28px rgba(20, 62, 104, .08); }
.resource-image { display: block; height: 210px; position: relative; overflow: hidden; }
.resource-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.resource-card:hover img { transform: scale(1.025); }
.tag { position: absolute; top: 14px; left: 14px; padding: 7px 11px; border-radius: 999px; color: #062650; font-size: 11px; font-weight: 900; text-transform: uppercase; }
.tag.blue { background: #cde8ff; } .tag.lime { background: #dfff8a; } .tag.coral { background: #ffc3ba; }
.resource-body { padding: 24px; }
.resource-body h3 { margin: 0; font-family: Georgia, "Times New Roman", serif; color: var(--navy); font-size: 23px; line-height: 1.15; }
.resource-body p { min-height: 66px; margin: 15px 0; color: var(--muted); line-height: 1.45; }

.about { max-width: none; display: grid; grid-template-columns: minmax(240px, .85fr) minmax(320px, 1fr) minmax(260px, .8fr); align-items: center; gap: 52px; background: #eef8ff; }
.about > *:first-child { justify-self: end; }
.about img { width: min(100%, 430px); border-radius: 18px; mix-blend-mode: multiply; }
.about > div { max-width: 520px; }
.about h2 { font-size: clamp(32px, 3.3vw, 46px); }
.about p:not(.section-kicker) { color: var(--muted); font-size: 18px; line-height: 1.55; }
.about blockquote { margin: 0; padding-left: 38px; border-left: 1px solid #bfd6e9; color: #0867d7; font-family: Georgia, "Times New Roman", serif; font-size: 27px; line-height: 1.4; font-style: italic; }

.site-footer { min-height: 150px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 32px; text-align: center; background: #fff; color: var(--navy); }
.site-footer strong { font-family: Georgia, "Times New Roman", serif; font-size: 25px; }
.site-footer span { color: var(--muted); }

:focus-visible { outline: 3px solid var(--lime); outline-offset: 4px; }

@media (max-width: 960px) {
  .site-header { height: 72px; }
  .menu-toggle { display: block; }
  .main-nav { display: none; position: absolute; z-index: 20; top: 72px; left: 0; right: 0; padding: 24px; background: #fff; box-shadow: 0 15px 30px rgba(2, 29, 63, .12); flex-direction: column; align-items: stretch; }
  .main-nav.is-open { display: flex; }
  .main-nav .menu { flex-direction: column; align-items: stretch; gap: 0; }
  .main-nav .menu a { display: block; padding: 13px 0; }
  .main-nav .search-button { display: none; }
  .hero { grid-template-columns: minmax(0, 1fr); }
  .hero-copy { min-height: 590px; padding: 70px 28px 54px; }
  .hero-image { min-height: 420px; background-position: 55% center; }
  .method-section { grid-template-columns: 1fr; gap: 50px; }
  .about { grid-template-columns: .8fr 1.2fr; }
  .about blockquote { grid-column: 1 / -1; padding: 28px 0 0; border-left: 0; border-top: 1px solid #bfd6e9; text-align: center; }
}

@media (max-width: 720px) {
  .brand small { display: none; }
  .brand strong { font-size: 22px; }
  .hero-copy { min-height: 520px; }
  .hero h1 { font-size: 49px; }
  .hero-text { font-size: 17px; }
  .hero-benefits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .hero-benefits span { flex-direction: column; align-items: flex-start; }
  .hero-image { min-height: 330px; }
  .section { padding: 64px 20px; }
  .method-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .method-steps li { display: flex; gap: 16px; }
  .step-arrow { display: none; }
  .step-icon { flex: 0 0 64px; width: 64px; height: 64px; }
  .section-heading { align-items: flex-start; flex-direction: column; }
  .resource-grid { grid-template-columns: 1fr; }
  .resource-image { height: 230px; }
  .resource-body p { min-height: 0; }
  .about { grid-template-columns: 1fr; gap: 30px; }
  .about > * { justify-self: center !important; text-align: center; }
  .about img { width: min(100%, 360px); }
}

@media (max-width: 480px) {
  .method-steps { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

/* WordPress content templates */
.admin-bar .site-header { margin-top: 32px; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.screen-reader-text:focus { z-index: 100000; width: auto; height: auto; padding: 12px 18px; margin: 12px; clip: auto; background: #fff; color: var(--navy); }
.search-panel { display: none; position: absolute; z-index: 25; top: 86px; left: 0; right: 0; padding: 20px max(28px, calc((100vw - var(--max)) / 2)); background: #fff; box-shadow: 0 18px 35px rgba(2,29,63,.14); }
.search-panel.is-open { display: block; }
.search-form { display: flex; gap: 10px; max-width: 720px; margin: 0 auto; }
.search-field { flex: 1; min-width: 0; min-height: 48px; padding: 0 16px; border: 2px solid var(--line); border-radius: 8px; font-size: 16px; }
.search-submit { min-height: 48px; padding: 0 20px; border: 0; border-radius: 8px; background: var(--blue); color: #fff; font-weight: 800; cursor: pointer; }

.page-hero { padding: 76px 28px; background: var(--navy-deep); color: #fff; }
.page-hero-inner { max-width: 900px; margin: 0 auto; }
.page-hero h1 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(42px, 5vw, 70px); line-height: 1.04; }
.page-hero p { max-width: 720px; margin: 22px 0 0; color: #d9e7f6; font-size: 18px; line-height: 1.55; }
.archive-shell { max-width: var(--max); margin: 0 auto; padding: 72px 28px 96px; }
.archive-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 25px; }
.pagination { margin-top: 42px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.pagination a, .pagination span { min-width: 42px; min-height: 42px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 7px; }
.pagination .current { background: var(--navy); color: #fff; }

.article-hero { background: var(--navy-deep); color: #fff; }
.article-hero-inner { max-width: var(--max); min-height: 500px; margin: 0 auto; padding: 72px 28px; display: grid; grid-template-columns: minmax(0,1fr) minmax(420px,.9fr); align-items: center; gap: 56px; }
.article-kicker { color: #75caff; font-size: 12px; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; }
.article-hero h1 { margin: 16px 0 22px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(42px, 5vw, 68px); line-height: 1.03; letter-spacing: -.03em; }
.article-meta { color: #cddbed; font-size: 14px; }
.article-meta a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.article-hero-media img { width: 100%; max-height: 380px; object-fit: cover; border-radius: 14px; box-shadow: 0 25px 55px rgba(0,0,0,.25); }
.article-layout { max-width: 840px; margin: 0 auto; padding: 72px 28px 100px; }
.entry-content { color: #263e58; font-size: 18px; line-height: 1.75; }
.entry-content > *:first-child { margin-top: 0; }
.entry-content h2 { margin: 2.2em 0 .7em; color: var(--navy); font-family: Georgia, "Times New Roman", serif; font-size: clamp(30px, 4vw, 42px); line-height: 1.15; }
.entry-content h3 { margin: 1.8em 0 .6em; color: var(--navy); font-size: 24px; }
.entry-content a { color: #006eea; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.entry-content img { height: auto; border-radius: 12px; }
.entry-content figure { margin: 36px 0; }
.entry-content figcaption { margin-top: 10px; color: var(--muted); font-size: 14px; text-align: center; }
.entry-content blockquote { margin: 34px 0; padding: 24px 28px; border-left: 5px solid var(--blue); background: var(--blue-soft); color: var(--navy); }
.entry-content table { width: 100%; border-collapse: collapse; min-width: 620px; }
.entry-content .wp-block-table, .entry-content .br-table-scroll { overflow-x: auto; margin: 30px 0; -webkit-overflow-scrolling: touch; }
.entry-content th, .entry-content td { padding: 14px 16px; border: 1px solid #ccdbea; text-align: left; vertical-align: top; }
.entry-content th { background: var(--navy); color: #fff; }
.entry-content tr:nth-child(even) td { background: #f4f9fe; }
.article-taxonomy { margin-top: 55px; padding-top: 25px; border-top: 1px solid var(--line); color: var(--muted); }
.related-section { padding: 75px 28px 95px; background: var(--surface-soft); }
.related-inner { max-width: var(--max); margin: 0 auto; }
.related-inner > h2 { margin: 0 0 32px; color: var(--navy); font-family: Georgia, "Times New Roman", serif; font-size: 40px; }
.empty-state { max-width: 760px; margin: 0 auto; padding: 90px 28px; text-align: center; }

@media (max-width: 960px) {
  .search-panel { top: 72px; }
  .article-hero-inner { grid-template-columns: 1fr; }
  .article-hero-media { order: -1; }
  .archive-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (max-width: 782px) { .admin-bar .site-header { margin-top: 46px; } }
@media (max-width: 720px) {
  .archive-grid { grid-template-columns: 1fr; }
  .article-hero-inner { min-height: auto; padding: 42px 20px 54px; gap: 34px; }
  .article-hero h1 { font-size: 42px; }
  .article-layout { padding: 52px 20px 72px; }
  .entry-content { font-size: 17px; line-height: 1.7; }
}
