:root {
  --red: #e30613;
  --red-dark: #ad0010;
  --ink: #121212;
  --muted: #5d5d5d;
  --paper: #f5f5f2;
  --white: #fff;
  --yellow: #ffd500;
  --line: #d8d8d3;
  --shadow: 0 16px 42px rgba(18, 18, 18, .10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.6 Arial, Helvetica, sans-serif;
}
a { color: inherit; }
img { display: block; max-width: 100%; }
.container { width: min(1160px, calc(100% - 36px)); margin-inline: auto; }
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 100; background: #fff; padding: .75rem 1rem; }
.skip-link:focus { left: 1rem; top: 1rem; }

.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--line); }
.header-inner { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand { display: flex; align-items: center; gap: .8rem; text-decoration: none; font-weight: 900; line-height: 1.05; letter-spacing: -.02em; }
.brand-mark { display: grid; place-items: center; width: 50px; height: 50px; background: var(--red); color: #fff; font-size: 1.15rem; transform: rotate(-2deg); }
.brand small { display: block; color: var(--red); font-size: .72rem; letter-spacing: .12em; margin-top: .25rem; }
.nav-toggle { display: none; border: 0; background: var(--ink); color: #fff; min-width: 46px; min-height: 46px; font-size: 1.3rem; cursor: pointer; }
.site-nav { display: flex; align-items: center; gap: .25rem; }
.site-nav a { padding: .65rem .7rem; font-size: .9rem; font-weight: 700; text-decoration: none; border-bottom: 3px solid transparent; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--red); border-color: var(--red); }
.site-nav .nav-join { margin-left: .4rem; background: var(--red); color: #fff; border: 0; padding-inline: 1rem; }
.site-nav .nav-join:hover, .site-nav .nav-join[aria-current="page"] { background: var(--red-dark); color: #fff; border: 0; }

.hero { position: relative; overflow: hidden; background: var(--ink); color: #fff; }
.hero::after { content: ""; position: absolute; inset: -20% -8% auto 56%; height: 145%; background: var(--red); transform: rotate(11deg); }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.4fr .7fr; gap: 4rem; align-items: center; min-height: 550px; padding-block: 5rem; }
.eyebrow { color: var(--red); font-weight: 900; letter-spacing: .14em; text-transform: uppercase; font-size: .78rem; }
.hero .eyebrow { color: var(--yellow); }
h1, h2, h3 { line-height: 1.08; margin-top: 0; }
h1 { max-width: 820px; margin-bottom: 1.2rem; font-size: clamp(2.7rem, 7vw, 5.8rem); letter-spacing: -.055em; }
h2 { font-size: clamp(2rem, 4vw, 3.35rem); letter-spacing: -.035em; }
h3 { font-size: 1.25rem; }
.lead { max-width: 700px; font-size: 1.2rem; color: #dedede; }
.hero-actions, .actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }
.home-shortcuts { padding: 2rem 0 2.3rem; background: var(--white); border-bottom: 1px solid var(--line); }
.home-shortcuts .eyebrow { margin: 0 0 .8rem; }
.shortcut-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: .8rem; }
.shortcut { min-height: 132px; padding: 1rem 1.1rem; display: flex; flex-direction: column; justify-content: space-between; text-decoration: none; color: var(--ink); border: 1px solid var(--line); border-top: 4px solid var(--red); background: #fff; transition: transform .16s ease, box-shadow .16s ease; }
.shortcut:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.shortcut > span { color: var(--red); font-size: .78rem; font-weight: 900; letter-spacing: .1em; }
.shortcut strong { font-size: 1.1rem; }
.shortcut small { color: var(--muted); line-height: 1.4; }
.shortcut-primary { background: var(--red); color: #fff; border-color: var(--red); }
.shortcut-primary > span, .shortcut-primary small { color: #fff; }
.shortcut-note { margin: 1rem 0 0; color: var(--muted); font-size: .92rem; }
.featured-news {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.featured-article {
    max-width: none;
    height: 100%;
    box-sizing: border-box;
    padding: clamp(1.2rem, 2vw, 1.6rem);
    border-left: 5px solid var(--red);
    background: #fff;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
}

.featured-article h3 {
    margin: .85rem 0;
    font-size: clamp(1.25rem, 2vw, 1.7rem);
}

.featured-article p {
    flex: 1;
}

.featured-article .card-link {
    margin-top: 1rem;
}

@media (max-width: 900px) {
    .featured-news {
        grid-template-columns: 1fr;
    }
}
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: .7rem 1.1rem; border: 2px solid var(--ink); background: var(--ink); color: #fff; text-decoration: none; font-weight: 800; cursor: pointer; }
.btn:hover { transform: translateY(-2px); }
.btn-red { background: var(--red); border-color: var(--red); }
.btn-white { background: #fff; border-color: #fff; color: var(--ink); }
.btn-outline { background: transparent; color: var(--ink); }
.hero-stamp { position: relative; display: grid; place-items: center; aspect-ratio: 1; border: 10px solid #fff; border-radius: 50%; text-align: center; font-weight: 900; font-size: clamp(1.8rem, 4vw, 3.2rem); line-height: .95; transform: rotate(5deg); }
.hero-stamp small { display: block; font-size: .8rem; line-height: 1.4; margin-top: .8rem; }

.section { padding-block: 5rem; }
.section-white { background: #fff; }
.section-dark { background: var(--ink); color: #fff; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 2rem; margin-bottom: 2rem; }
.section-head p { max-width: 580px; color: var(--muted); }
.section-dark .section-head p { color: #cfcfcf; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.card { background: #fff; border: 1px solid var(--line); padding: 1.55rem; box-shadow: var(--shadow); }
.card p { color: var(--muted); }
.card .tag, .tag { display: inline-block; margin-bottom: 1rem; background: var(--yellow); color: var(--ink); padding: .2rem .55rem; font-weight: 900; font-size: .76rem; text-transform: uppercase; letter-spacing: .08em; }
.card-link { font-weight: 800; color: var(--red-dark); }
.number { color: var(--red); font-size: 3rem; font-weight: 900; line-height: 1; }
.band { background: var(--red); color: #fff; }
.band-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding-block: 2.2rem; }
.band h2 { margin: 0; font-size: clamp(1.8rem, 4vw, 3rem); }

.page-hero { background: var(--ink); color: #fff; padding-block: 4.5rem; border-bottom: 10px solid var(--red); }
.page-hero h1 { font-size: clamp(2.6rem, 6vw, 5rem); margin-bottom: .7rem; }
.page-hero p { max-width: 720px; color: #ddd; font-size: 1.15rem; }
.breadcrumbs { margin-bottom: 1.2rem; color: #bbb; font-size: .9rem; }
.breadcrumbs a { color: #fff; }
.list-clean { padding: 0; margin: 0; list-style: none; }
.news-list { display: grid; gap: 1rem; }
.news-item { display: grid; grid-template-columns: 130px 1fr; gap: 1.5rem; padding: 1.5rem 0; border-top: 1px solid var(--line); }
.news-item time { font-weight: 900; color: var(--red); }
.news-item h2 { margin-bottom: .4rem; font-size: 1.6rem; }
.news-item p { margin: 0; color: var(--muted); }

.documents-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.document-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden; }
.document-preview { aspect-ratio: 210/160; background: linear-gradient(135deg, #ececea, #d5d5d0); overflow: hidden; }
.document-preview img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.document-fallback { display: grid; place-items: center; height: 100%; padding: 1rem; text-align: center; color: var(--muted); font-weight: 800; }
.document-body { display: flex; flex: 1; flex-direction: column; padding: 1.25rem; }
.document-body p { color: var(--muted); }
.document-body .actions { margin-top: auto; }
.filter-bar { display: flex; gap: .8rem; margin-bottom: 2rem; }
.filter-bar input { width: min(100%, 520px); min-height: 50px; border: 2px solid var(--ink); padding: .7rem 1rem; font: inherit; }

.steps { counter-reset: step; display: grid; gap: 1rem; }
.step { position: relative; padding: 1.6rem 1.6rem 1.6rem 5rem; background: #fff; border: 1px solid var(--line); }
.step::before { counter-increment: step; content: counter(step); position: absolute; left: 1.2rem; top: 1.25rem; display: grid; place-items: center; width: 2.7rem; height: 2.7rem; border-radius: 50%; background: var(--red); color: #fff; font-weight: 900; }
.join-layout { display: grid; grid-template-columns: 1fr 360px; gap: 2rem; align-items: start; }
.qr-card { position: sticky; top: 105px; background: #fff; border-top: 8px solid var(--red); padding: 1.4rem; text-align: center; box-shadow: var(--shadow); }
.qr-card img { width: 230px; margin: 1rem auto; }

.rights-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.right-card { background: #fff; border-left: 8px solid var(--red); padding: 1.5rem; }
.right-card p { color: var(--muted); }
.notice { background: #fff4b5; border: 2px solid var(--ink); padding: 1.2rem; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.contact-card { background: #fff; padding: 2rem; border-top: 8px solid var(--red); box-shadow: var(--shadow); }
.contact-email { display: inline-block; margin-block: .7rem; font-size: clamp(1.4rem, 4vw, 2rem); color: var(--red-dark); font-weight: 900; word-break: break-word; }

.site-footer { background: #080808; color: #fff; padding-block: 3rem 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 2rem; }
.site-footer h2, .site-footer h3 { font-size: 1.1rem; }
.site-footer a { color: #ddd; }
.footer-bottom { margin-top: 2rem; padding-top: 1.4rem; border-top: 1px solid #333; color: #aaa; font-size: .85rem; }
.muted { color: var(--muted); }
.hidden { display: none !important; }

@media (max-width: 920px) {
  .nav-toggle { display: block; }
  .site-nav { display: none; position: absolute; inset: 78px 0 auto; flex-direction: column; align-items: stretch; padding: 1rem 18px; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: .8rem; }
  .site-nav .nav-join { margin: .3rem 0 0; text-align: center; }
  .hero-grid { grid-template-columns: 1fr; min-height: auto; gap: 2.5rem; }
  .hero::after { inset: auto -35% -30% 52%; height: 70%; }
  .hero-stamp { width: min(300px, 75%); }
  .grid-3, .documents-grid { grid-template-columns: repeat(2, 1fr); }
  .shortcut-grid { grid-template-columns: repeat(2, 1fr); }
  .join-layout { grid-template-columns: 1fr; }
  .qr-card { position: static; }
}

@media (max-width: 650px) {
  .container { width: min(100% - 24px, 1160px); }
  .section { padding-block: 3.5rem; }
  .hero-grid { padding-block: 3.5rem; }
  .grid-3, .grid-2, .documents-grid, .rights-grid, .contact-grid, .footer-grid { grid-template-columns: 1fr; }
  .shortcut-grid { grid-template-columns: 1fr 1fr; }
  .shortcut { min-height: 128px; padding: .9rem; }
  .section-head, .band-inner { align-items: flex-start; flex-direction: column; }
  .news-item { grid-template-columns: 1fr; gap: .3rem; }
  .brand span:last-child { font-size: .92rem; }
}

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

/* Charte inspirée de la Fédération CGT des Sociétés d’Études. */
:root{--red:#d11313;--red-dark:#a30f0f;--ink:#171717;--paper:#faf8f4;--yellow:#ffdc00;--line:#e7e1db;--shadow:0 8px 28px rgba(40,15,15,.07)}
body{font-family:Inter,system-ui,-apple-system,"Segoe UI",Arial,sans-serif}
.site-header{background:var(--red);color:white;border-bottom:1px solid rgba(255,255,255,.2)}
.brand-mark{background:white;color:var(--red);transform:none;border-radius:7px;font-size:1.3rem;font-style:italic}
.brand small{color:white}.site-nav a:hover,.site-nav a[aria-current="page"]{color:white;border-color:var(--yellow)}
.site-nav .nav-join{background:white;color:var(--red);border-radius:999px}.site-nav .nav-join:hover,.site-nav .nav-join[aria-current="page"]{background:var(--yellow);color:#171717}
.hero{background:var(--red)}.hero::after{background:rgba(110,0,0,.12);border-radius:70px;transform:rotate(15deg)}
h1{font-size:clamp(2.5rem,5.5vw,4.6rem);letter-spacing:-.04em;line-height:1.08}
h2{font-size:clamp(1.8rem,3.5vw,2.7rem);line-height:1.15}.lead{color:white}
.hero-grid{min-height:500px}.hero-stamp{border-width:5px;background:#fff8ec;color:var(--red);box-shadow:0 18px 45px #7b090929;transform:rotate(-4deg)}
.btn{border-radius:999px;transition:background .15s,transform .15s}.hero .btn-red{background:var(--yellow);border-color:var(--yellow);color:#171717}.hero .btn-white{color:var(--red)}
.page-hero{background:var(--red);border-bottom:6px solid var(--yellow)}.page-hero p,.breadcrumbs,.page-hero .eyebrow{color:white}
.card,.document-card,.contact-card,.qr-card,.right-card,.step{border-radius:16px}.card{border-top:4px solid var(--red)}
.tag,.card .tag{border-radius:5px;background:#fff1b8;color:#6e2900;letter-spacing:.025em;font-weight:750}
.news-item{background:white;padding:1.7rem;border:1px solid var(--line);border-left:4px solid var(--red);border-radius:14px}.news-item p+p{margin-top:.85rem}.news-item h2{line-height:1.25}
.document-preview{background:#f5efe6}.filter-bar input{border-radius:999px;border-color:var(--line)}
.site-footer{background:#9f1010}.site-footer a,.footer-bottom{color:#fff}.footer-bottom{border-color:#ffffff40}
:focus-visible{outline:3px solid #b65a00;outline-offset:4px}.site-header :focus-visible,.hero :focus-visible{outline-color:var(--yellow)}
@media(max-width:920px){.site-nav{background:var(--red)}.nav-toggle{background:white;color:var(--red);border-radius:8px}.hero-grid{min-height:auto}}
@media(max-width:650px){.news-item{padding:1.2rem}.hero-stamp{font-size:2rem}.site-header .brand span:last-child{font-size:.9rem}}
@media(max-width:420px){.shortcut-grid{grid-template-columns:1fr}.shortcut{min-height:100px}}

/* Bloc 03 et fenêtre de synthèse des statuts */
.card-priority-03 { border-top: 7px solid var(--red); }
.card-priority-03 .number { color: var(--red); }
.card-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .7rem 1rem; margin-top: 1.2rem; }
.button-link { border: 0; background: transparent; padding: .35rem 0; font: inherit; text-align: left; cursor: pointer; }
.button-link:hover { text-decoration: underline; }
.statutes-dialog { width: min(760px, calc(100% - 24px)); max-height: min(86vh, 850px); padding: 0; border: 0; border-top: 9px solid var(--red); color: var(--ink); box-shadow: 0 24px 80px rgba(0,0,0,.35); }
.statutes-dialog::backdrop { background: rgba(0,0,0,.72); }
.statutes-dialog-head, .statutes-dialog-foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.25rem 1.5rem; background: #fff; }
.statutes-dialog-head { border-bottom: 1px solid var(--line); }
.statutes-dialog-head .eyebrow { margin: 0 0 .4rem; }
.statutes-dialog-head h2 { margin: 0; font-size: clamp(1.6rem, 4vw, 2.3rem); }
.dialog-close { width: 44px; height: 44px; border: 0; background: var(--red); color: #fff; font-size: 2rem; line-height: 1; cursor: pointer; }
.statutes-intro { margin: 0; padding: 1rem 1.5rem; background: #fff4b5; font-weight: 700; }
.statutes-content { max-height: 55vh; overflow-y: auto; padding: .5rem 1.5rem 1rem; background: #fff; }
.statutes-content section { padding: 1rem 0; border-bottom: 1px solid var(--line); }
.statutes-content section:last-child { border-bottom: 0; }
.statutes-content h3 { margin-bottom: .45rem; color: var(--red-dark); }
.statutes-content p { margin: 0; color: var(--muted); }
.statutes-dialog-foot { justify-content: flex-start; border-top: 1px solid var(--line); }
.statutes-dialog :focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }

/* Rubrique « Vos questions » : aucune donnée privée n'est affichée ici. */
.question-form { max-width: 780px; margin-inline: auto; background: #fff; border: 1px solid var(--line); border-top: 7px solid var(--red); border-radius: 16px; padding: clamp(1.25rem, 4vw, 2rem); box-shadow: var(--shadow); }
.question-form label { display: block; margin: 1.1rem 0; font-weight: 800; }
.question-form input:not([type="checkbox"]), .question-form textarea { display: block; width: 100%; margin-top: .45rem; padding: .8rem 1rem; border: 1px solid var(--line); border-radius: 8px; font: inherit; }
.question-form textarea { min-height: 150px; resize: vertical; }
.question-consent { display: flex !important; align-items: flex-start; gap: .7rem; line-height: 1.5; }
.question-consent input { flex: none; width: 1.15rem; height: 1.15rem; margin: .25rem 0 0; }
.question-honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.question-answer { background: #fff; border: 1px solid var(--line); border-left: 6px solid var(--red); border-radius: 12px; padding: 1.4rem; margin: 1rem 0; }
.question-answer p { white-space: pre-line; overflow-wrap: anywhere; }
