/*
Theme Name: L'École et le temps long
Author: L'École et le temps long
Description: Thème éditorial pour présenter et diffuser l'ouvrage Pour remettre l'École au cœur du pacte républicain.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: ecole-temps-long
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

:root {
  --ink: #080808;
  --paper: #ffffff;
  --blue: #1437ff;
  --deep-blue: #071556;
  --line: #d9d9d9;
  --muted: #606060;
  --serif: "Source Serif 4", Georgia, serif;
  --sans: "Inter", Arial, sans-serif;
  --display: "Archivo Black", Impact, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 1rem; line-height: 1.6; }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
.skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 100; background: var(--paper); padding: .7rem 1rem; border: 2px solid var(--ink); }
.skip-link:focus { top: 1rem; }
.site-header { min-height: 92px; padding: 1rem clamp(1.25rem, 4vw, 4.5rem); display: flex; align-items: center; justify-content: space-between; gap: 2rem; border-bottom: 1px solid var(--ink); }
.wordmark { display: inline-flex; align-items: center; gap: .75rem; text-decoration: none; text-transform: uppercase; font-weight: 800; line-height: 1.05; letter-spacing: -.03em; }
.wordmark-mark { display: grid; place-items: center; width: 2.7rem; height: 2.7rem; color: var(--paper); background: var(--blue); font-family: var(--display); font-size: 1.5rem; }
.navigation { display: flex; gap: clamp(1rem, 2.7vw, 2.8rem); }
.navigation a { font-size: .92rem; font-weight: 700; text-decoration: none; border-bottom: 2px solid transparent; }
.navigation a:hover, .navigation a:focus-visible { border-color: var(--blue); }
.menu-button { display: none; }
.hero { min-height: calc(100vh - 92px); display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(330px, .85fr); }
.hero-copy { padding: clamp(3rem, 7vw, 7rem) clamp(1.25rem, 6vw, 7rem); display: flex; flex-direction: column; justify-content: center; }
.eyebrow, .section-kicker { margin: 0 0 1.4rem; color: var(--blue); font-size: .78rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.hero h1 { max-width: 900px; margin: 0; font-family: var(--display); font-size: clamp(3rem, 6.25vw, 6.8rem); line-height: .94; letter-spacing: -.06em; text-transform: uppercase; }
.hero-intro { max-width: 720px; margin: 2rem 0; font-family: var(--serif); font-size: clamp(1.15rem, 1.7vw, 1.55rem); line-height: 1.45; }
.hero-actions { display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap; }
.button { display: inline-flex; align-items: center; justify-content: space-between; gap: 2rem; min-height: 3.5rem; padding: .9rem 1.25rem; border: 2px solid currentColor; border-radius: 0; font: 700 .92rem/1 var(--sans); text-decoration: none; cursor: pointer; transition: transform .2s ease, background .2s ease, color .2s ease; }
.button:hover, .button:focus-visible { transform: translate(-3px, -3px); box-shadow: 4px 4px 0 currentColor; }
.button-primary { color: var(--paper); background: var(--blue); border-color: var(--blue); }
.button-primary:hover, .button-primary:focus-visible { box-shadow: 4px 4px 0 var(--ink); }
.file-note { color: var(--muted); font-size: .82rem; }
.cover-stage { position: relative; overflow: hidden; padding: clamp(3rem, 5vw, 6rem); display: grid; place-items: center; background: var(--deep-blue); }
.cover-stage::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, transparent 0 79px, rgba(255,255,255,.06) 80px); }
.cover-stage img { position: relative; width: min(100%, 480px); box-shadow: 20px 24px 0 rgba(0,0,0,.25); transform: rotate(-2deg); }
.cover-index { position: absolute; right: -1rem; bottom: -4rem; color: rgba(255,255,255,.09); font-family: var(--display); font-size: clamp(8rem, 18vw, 20rem); line-height: 1; }
.section { padding: clamp(4.5rem, 9vw, 9rem) clamp(1.25rem, 6vw, 7rem); }
.manifesto { display: grid; grid-template-columns: 1fr 3fr; gap: 3rem; border-top: 1px solid var(--ink); }
.manifesto-copy { max-width: 1000px; }
.manifesto h2, .section-heading h2, .collective h2, .contact h2, .content-page h1 { margin: 0 0 1.8rem; font-family: var(--display); font-size: clamp(2.2rem, 4.3vw, 5rem); line-height: 1.02; letter-spacing: -.045em; text-transform: uppercase; }
.manifesto-copy > p { max-width: 820px; font-family: var(--serif); font-size: clamp(1.1rem, 1.6vw, 1.4rem); }
.axes { color: var(--paper); background: var(--ink); }
.axes .section-kicker { color: #7590ff; }
.section-heading { max-width: 1050px; margin-bottom: 4rem; }
.axis-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid #555; }
.axis-card { padding: 2rem 2rem 1rem 0; border-right: 1px solid #555; }
.axis-card + .axis-card { padding-left: 2rem; }
.axis-card:last-child { border-right: 0; }
.axis-card > span { color: #7590ff; font-family: var(--display); font-size: 1rem; }
.axis-card h3 { max-width: 330px; margin: 3rem 0 1.2rem; font-size: 1.35rem; line-height: 1.25; }
.axis-card p { color: #c6c6c6; }
.collective { display: grid; grid-template-columns: minmax(280px, .9fr) minmax(440px, 1.1fr); gap: clamp(3rem, 8vw, 9rem); background: #f3f3f3; }
.collective-intro > p:last-child { font-family: var(--serif); font-size: 1.2rem; }
.contributors { margin: 0; padding: 0; list-style: none; border-top: 2px solid var(--ink); }
.contributors li { padding: .62rem 0; border-bottom: 1px solid #bdbdbd; font-weight: 600; }
.news-heading { display: flex; justify-content: space-between; align-items: end; gap: 2rem; max-width: none; }
.news-heading > p { max-width: 330px; color: var(--muted); }
.news-list { border-top: 2px solid var(--ink); }
.news-item { display: grid; grid-template-columns: 160px 1fr; gap: 2rem; padding: 2rem 0; border-bottom: 1px solid var(--line); }
.news-item time { color: var(--blue); font-weight: 700; }
.news-item h3 { margin: 0 0 .5rem; font-size: 1.45rem; }
.news-item h3 a { text-decoration-thickness: 1px; text-underline-offset: .18em; }
.news-item p { max-width: 760px; margin: 0; color: var(--muted); }
.contact { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(3rem, 9vw, 10rem); color: var(--paper); background: var(--blue); }
.contact .section-kicker { color: var(--paper); opacity: .72; }
.contact-copy > p:last-child { max-width: 460px; font-family: var(--serif); font-size: 1.2rem; }
.contact-form { display: grid; gap: 1.1rem; }
.contact-form label { display: grid; gap: .35rem; font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.contact-form input, .contact-form textarea { width: 100%; padding: .9rem 0; color: var(--paper); background: transparent; border: 0; border-bottom: 1px solid rgba(255,255,255,.7); border-radius: 0; font: 1rem/1.4 var(--sans); }
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid var(--paper); outline-offset: 4px; }
.button-light { width: fit-content; margin-top: 1rem; color: var(--blue); background: var(--paper); border-color: var(--paper); }
.button-light:hover, .button-light:focus-visible { box-shadow: 4px 4px 0 var(--deep-blue); }
.form-status { min-height: 1.5rem; margin: 0; font-weight: 600; }
.honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.site-footer { padding: 1.5rem clamp(1.25rem, 6vw, 7rem); display: flex; justify-content: space-between; gap: 1.5rem; border-top: 1px solid var(--ink); font-size: .82rem; font-weight: 600; }
.site-footer p { margin: 0; }
.content-page { min-height: calc(100vh - 180px); padding: clamp(4rem, 8vw, 8rem) clamp(1.25rem, 12vw, 12rem); }
.content-header, .single-post, .post-list, .comments-area { max-width: 900px; margin-inline: auto; }
.post-card { padding: 2rem 0; border-top: 1px solid var(--line); }
.post-card time { color: var(--blue); font-weight: 700; }
.post-card h2 { margin: .4rem 0; font-size: clamp(1.6rem, 3vw, 2.5rem); }
.single-post .entry-content { font-family: var(--serif); font-size: 1.2rem; }
.single-post .entry-content > * { max-width: 760px; }
.single-post .entry-content img { max-width: 100%; }
.comments-area { margin-top: 4rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.comment-list { padding-left: 1.5rem; }
.nav-links { display: flex; gap: 1rem; margin-top: 2rem; }

@media (max-width: 920px) {
  .hero { grid-template-columns: 1fr; }
  .cover-stage { min-height: 68vh; }
  .manifesto, .collective, .contact { grid-template-columns: 1fr; }
  .axis-grid { grid-template-columns: 1fr; }
  .axis-card, .axis-card + .axis-card { padding: 2rem 0; border-right: 0; border-bottom: 1px solid #555; }
  .axis-card:last-child { border-bottom: 0; }
  .axis-card h3 { margin-top: 1.5rem; }
}

@media (max-width: 700px) {
  .site-header { position: relative; min-height: 76px; }
  .menu-button { display: block; border: 0; background: transparent; font: 700 .9rem var(--sans); }
  .navigation { display: none; position: absolute; z-index: 20; top: 100%; left: 0; right: 0; padding: 1.5rem; flex-direction: column; background: var(--paper); border-bottom: 1px solid var(--ink); }
  .navigation.is-open { display: flex; }
  .hero { min-height: 0; }
  .hero-copy { padding-top: 4rem; padding-bottom: 4rem; }
  .hero h1 { font-size: clamp(2.65rem, 13vw, 4.8rem); }
  .cover-stage { min-height: 560px; padding: 3rem; }
  .news-heading, .site-footer { align-items: flex-start; flex-direction: column; }
  .news-item { grid-template-columns: 1fr; gap: .5rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button { transition: none; }
}
