/*
 * L’Écho d’Eiffel — feuille de styles
 *
 * Mise en forme : indentation de quatre espaces et une déclaration par ligne.
 * Les sections suivent l’ordre de la page. Les adaptations aux écrans plus
 * petits et les préférences d’accessibilité sont regroupées à la fin.
 *
 * Variables de thème : voir :root (couleurs, police de texte et titres).
 * Points de rupture : 1500 px, 1100 px, 760 px et 480 px.
 */

/* 01. Police locale */

@font-face {
    font-family: Echo;
    src: url('../assets/echo-bold.woff2') format('woff2');
    font-weight: 900;
    font-display: swap;
}

/* 02. Palette, couleurs et typographies */

:root {
    --paper: #f6f5ef;
    --ink: #151515;
    --blue: #193df4;
    --line: #cfcec7;
    --muted: #5e5e58;
    --yellow: #e6f36b;
    --white: #fff;
    --body: Arial, Helvetica, sans-serif;
    --display: Echo, Arial, Helvetica, sans-serif;
}

/* 03. Styles de base et accessibilité */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 25px;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--body);
    font-size: 15px;
    line-height: 1.5;
}

button,
input,
select,
textarea {
    font: inherit;
    color: inherit;
}

button,
a,
input,
select,
textarea {
    -webkit-tap-highlight-color: transparent;
}

button,
a {
    touch-action: manipulation;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    cursor: pointer;
}

button:disabled {
    cursor: default;
}

button {
    border: 0;
    background: none;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid var(--blue);
    outline-offset: 4px;
}

a:hover {
    text-decoration: none;
}

svg {
    display: block;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

h1,
h2,
h3,
p {
    margin: 0;
}

h1,
h2,
h3 {
    line-height: 1.07;
}

::selection {
    background: var(--blue);
    color: #fff;
}

[hidden] {
    display: none !important;
}

.wrap {
    width: min(1280px, calc(100% - 96px));
    margin-inline: auto;
}

.blue {
    color: var(--blue);
}

.eyebrow {
    font-size: 10px;
    letter-spacing: 1.5px;
    font-weight: 800;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

.skip-link {
    position: fixed;
    top: -100px;
    left: 16px;
    background: var(--blue);
    color: white;
    padding: 12px;
    z-index: 100;
}

.skip-link:focus {
    top: 12px;
}

/* 04. Bandeau privé, en-tête et navigation */

.private-bar {
    min-height: 30px;
    background: var(--ink);
    color: var(--paper);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 11px;
    letter-spacing: .25px;
    padding: 5px 16px;
}

.private-dot,
.live-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--yellow);
    flex: none;
}

.private-extra {
    color: #b4b4b0;
    margin-left: 8px;
}

.masthead-meta {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding-top: 23px;
    font-size: 9px;
    letter-spacing: 1.2px;
    font-weight: 700;
}

.masthead {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-block: 16px 24px;
    font-family: var(--display);
    font-size: clamp(40px, 7.35vw, 110px);
    line-height: .9;
    font-weight: 900;
    letter-spacing: -.065em;
    white-space: nowrap;
}

.masthead > span {
    display: block;
}

.masthead-dot {
    color: var(--blue);
}

.masthead svg {
    width: clamp(32px, 6vw, 78px);
    height: auto;
    color: var(--blue);
    flex: none;
    margin-top: 5px;
}

.nav-shell {
    border-block: 1px solid var(--ink);
}

.main-nav,
.nav-links,
.nav-tools {
    display: flex;
    align-items: center;
}

.main-nav {
    min-height: 58px;
    justify-content: space-between;
    gap: 20px;
}

.nav-links {
    gap: 34px;
    align-self: stretch;
}

.nav-links > a {
    position: relative;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    font-weight: 700;
}

.nav-links > a.active:after {
    content: '';
    height: 3px;
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    background: var(--blue);
}

.nav-links > a:hover,
.nav-tools a:hover,
.nav-tools button:hover {
    color: var(--blue);
}

.arrow {
    font-weight: 400;
}

.nav-tools {
    gap: 26px;
}

.icon-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 700;
    padding: 0;
    white-space: nowrap;
}

.icon-label svg,
.search-field svg,
.favorites-filter svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    flex: none;
}

.saved-count {
    min-width: 18px;
    height: 18px;
    display: inline-grid;
    place-items: center;
    background: #e5e4dd;
    font-size: 10px;
    border-radius: 50%;
}

.menu-button {
    display: none;
}

/* 05. Identification des contenus de démonstration */

.demo-note {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-top: 20px;
    font-size: 11px;
    color: var(--muted);
    padding: 10px 12px;
    background: #eeeee6;
    line-height: 1.5;
}

.demo-label {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .6px;
    color: var(--ink);
    border: 1px solid #b5b5ac;
    padding: 2px 5px;
    white-space: nowrap;
}

/* 06. Article à la une */

.section-kicker {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 28px;
    margin-bottom: 18px;
}

.section-kicker h1 {
    font-size: 12px;
    letter-spacing: 1.6px;
    font-weight: 800;
}

.section-kicker > span {
    font-size: 11px;
    color: var(--muted);
}

.section-kicker .issue-number {
    margin-left: auto;
    font-family: monospace;
    font-size: 12px;
}

.front-grid {
    display: grid;
    grid-template-columns: minmax(0, 2.35fr) minmax(260px, 1fr);
    gap: 36px;
}

.cover-art-link {
    display: block;
    position: relative;
    overflow: hidden;
    background: var(--blue);
}

.cover-art {
    width: 100%;
    aspect-ratio: 1000/560;
    object-fit: cover;
    transition: transform .5s;
}

.cover-art-link:hover .cover-art {
    transform: scale(1.025);
}

.cover-sticker {
    position: absolute;
    left: 22px;
    bottom: 20px;
    background: var(--yellow);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .5px;
    padding: 9px 12px;
    transform: rotate(-3deg);
    box-shadow: 3px 3px 0 #10183d;
}

.story-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
    font-size: 10px;
    color: var(--muted);
}

.category-label {
    color: var(--blue);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .7px;
}

.demo-mini {
    font-size: 8px;
    letter-spacing: .6px;
    color: #565650;
    border: 1px solid #c2c2b8;
    padding: 1px 4px;
    line-height: 1.6;
}

.cover-story h2 {
    font-family: var(--display);
    font-size: clamp(28px, 3.15vw, 45px);
    letter-spacing: -1.2px;
    margin-top: 13px;
    font-weight: 900;
}

.cover-story h2 a:hover,
.article-card h3 a:hover {
    color: var(--blue);
}

.cover-excerpt {
    color: var(--muted);
    font-size: 14px;
    max-width: 680px;
    line-height: 1.7;
    margin-top: 15px;
}

.text-link {
    display: inline-flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    font-size: 12px;
    font-weight: 700;
    border-bottom: 1px solid var(--ink);
    padding: 0 0 5px;
    margin-top: 18px;
}

.text-link:hover {
    color: var(--blue);
    border-color: var(--blue);
}

/* 07. Fil des actualités et invitation à contribuer */

.news-wire {
    border-left: 1px solid var(--line);
    padding-left: 30px;
}

.wire-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    border-bottom: 2px solid var(--ink);
    padding-bottom: 13px;
}

.wire-heading h2 {
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: 1px;
    white-space: nowrap;
}

.live-dot {
    background: var(--blue);
    width: 7px;
    height: 7px;
}

.wire-heading > span {
    font-size: 8px;
    color: var(--muted);
    letter-spacing: .5px;
}

.wire-item {
    display: block;
    border-bottom: 1px solid var(--line);
    padding: 18px 0;
}

.wire-item .story-meta {
    margin: 0;
    font-size: 9px;
    gap: 8px;
}

.wire-item h3 {
    font-size: 16px;
    line-height: 1.3;
    letter-spacing: -.3px;
    margin: 8px 0;
}

.wire-item:hover h3 {
    color: var(--blue);
}

.wire-item .wire-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 9px;
    color: var(--muted);
}

.wire-item .wire-bottom span:last-child {
    font-size: 20px;
    line-height: 1;
}

.all-news {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    font-weight: 700;
    padding: 15px 0;
}

.all-news:hover {
    color: var(--blue);
}

.contribution-mini {
    padding: 23px;
    background: var(--yellow);
    margin-top: 9px;
    position: relative;
}

.contribution-mini h3 {
    font-family: var(--display);
    font-size: 31px;
    letter-spacing: -1px;
    margin-top: 13px;
}

.contribution-mini p {
    font-size: 12px;
    line-height: 1.6;
    margin-top: 12px;
}

.button {
    display: inline-flex;
    justify-content: space-between;
    align-items: center;
    gap: 25px;
    min-height: 44px;
    padding: 12px 17px;
    font-size: 12px;
    font-weight: 700;
    transition: background .2s, transform .2s;
}

.button:hover {
    transform: translateY(-2px);
}

.button-dark {
    background: var(--ink);
    color: var(--paper);
}

.button-dark:hover {
    background: var(--blue);
}

.contribution-mini .button {
    margin-top: 18px;
    width: 100%;
}

.mini-note {
    font-size: 9px;
    display: block;
    margin-top: 8px;
}

/* 08. Catalogue : recherche, tri, rubriques et favoris */

.article-section {
    margin-top: 66px;
    border-top: 1px solid var(--ink);
    padding-top: 28px;
    padding-bottom: 70px;
    scroll-margin-top: 25px;
}

.section-title-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
}

.section-title-row h2 {
    font-family: var(--display);
    font-weight: 900;
    font-size: 44px;
    letter-spacing: -1.7px;
    margin-top: 8px;
}

.edition-tag {
    font-size: 9px;
    font-family: monospace;
    letter-spacing: 1px;
    color: var(--muted);
    padding-bottom: 6px;
}

.browse-toolbar {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    margin-top: 27px;
}

.search-field {
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid #bcbcb3;
    background: transparent;
    min-height: 46px;
    max-width: 510px;
    width: 100%;
    padding: 10px 14px;
}

.search-field:focus-within {
    border-color: var(--blue);
    box-shadow: 0 0 0 1px var(--blue);
}

.search-field input {
    min-width: 0;
    width: 100%;
    background: transparent;
    border: 0;
    outline: none !important;
    font-size: 12px;
}

.search-field kbd {
    font-size: 11px;
    color: #666;
    border: 1px solid var(--line);
    padding: 0 5px;
}

.sort-control {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 11px;
    white-space: nowrap;
}

.sort-control > span {
    color: var(--muted);
}

.sort-control select {
    border: 0;
    border-bottom: 1px solid var(--ink);
    padding: 10px 22px 10px 3px;
    background: transparent;
    font-weight: 700;
    font-size: 11px;
    max-width: 100%;
}

.filter-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-top: 20px;
    padding-bottom: 19px;
    border-bottom: 1px solid var(--line);
}

.category-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.filter-button {
    font-size: 10px;
    font-weight: 700;
    border: 1px solid #c6c6bc;
    padding: 8px 12px;
    min-height: 35px;
    background: transparent;
    transition: background .15s;
}

.filter-button:hover {
    border-color: var(--blue);
    color: var(--blue);
}

.filter-button[aria-pressed=true] {
    background: var(--blue);
    border-color: var(--blue);
    color: white;
}

.favorites-filter {
    display: flex;
    align-items: center;
    gap: 7px;
    white-space: nowrap;
    font-size: 10px;
    min-height: 35px;
    padding: 6px 0;
}

.favorites-filter svg {
    width: 15px;
    height: 15px;
}

.favorites-filter[aria-pressed=true] {
    color: var(--blue);
    font-weight: 700;
}

.favorites-filter[aria-pressed=true] svg {
    fill: var(--blue);
}

.results-line {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    min-height: 47px;
    font-size: 10px;
    color: var(--muted);
}

.reset-filters {
    font-size: 10px;
    text-decoration: underline;
}

.article-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 34px 26px;
}

.article-card {
    min-width: 0;
    position: relative;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--line);
}

.card-art-link {
    display: block;
    overflow: hidden;
    position: relative;
    background: #ddddd1;
}

.card-art {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    transition: transform .4s;
}

.card-art-link:hover .card-art {
    transform: scale(1.04);
}

.card-art-label {
    position: absolute;
    bottom: 10px;
    left: 10px;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: .5px;
    background: var(--paper);
    padding: 3px 6px;
}

.article-card .story-meta {
    margin-top: 13px;
    gap: 7px;
}

.article-card h3 {
    font-family: var(--display);
    font-size: 23px;
    font-weight: 900;
    letter-spacing: -.65px;
    line-height: 1.15;
    margin-top: 9px;
    padding-right: 5px;
}

.card-excerpt {
    font-size: 12px;
    line-height: 1.65;
    color: var(--muted);
    margin-top: 10px;
}

.card-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-top: 14px;
}

.card-bottom > span {
    font-size: 9px;
    color: var(--muted);
}

.save-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 36px;
    min-height: 36px;
    font-size: 10px;
    padding: 6px 8px;
    border: 1px solid transparent;
}

.save-button svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
}

.save-button:hover {
    border-color: var(--line);
    color: var(--blue);
}

.save-button[aria-pressed=true] {
    color: var(--blue);
}

.save-button[aria-pressed=true] svg {
    fill: var(--blue);
}

.empty-state {
    padding: 50px 20px 60px;
    text-align: center;
    border: 1px dashed #bcbcb0;
}

.empty-state > span {
    font-size: 42px;
    color: var(--blue);
}

.empty-state h3 {
    font-family: var(--display);
    font-size: 28px;
    letter-spacing: -.8px;
    margin-top: 10px;
}

.empty-state p {
    font-size: 13px;
    color: var(--muted);
    margin-top: 12px;
}

.empty-state .button {
    margin-top: 20px;
}

/* 09. Présentation de la rédaction */

.editorial-section {
    background: var(--blue);
    color: var(--paper);
    padding-block: 62px 65px;
    scroll-margin-top: 0;
}

.editorial-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 70px;
}

.editorial-section .eyebrow {
    color: #d7ddff;
}

.editorial-section h2 {
    font-family: var(--display);
    font-size: clamp(60px, 7.5vw, 105px);
    letter-spacing: -5px;
    line-height: .95;
    margin-top: 22px;
}

.editorial-section h2 span {
    color: var(--yellow);
}

.editorial-copy {
    max-width: 500px;
}

.editorial-lead {
    font-size: 22px;
    line-height: 1.3;
    font-weight: 700;
    letter-spacing: -.5px;
}

.editorial-copy p+p {
    font-size: 13px;
    line-height: 1.85;
    margin-top: 17px;
    color: #e5e8ff;
}

.button-paper {
    color: var(--ink);
    background: var(--paper);
    margin-top: 25px;
}

.button-paper:hover {
    background: var(--yellow);
}

.charter-link {
    display: block;
    font-size: 11px;
    text-decoration: underline;
    text-underline-offset: 4px;
    padding: 0;
    margin-top: 20px;
    color: var(--paper);
}

/* 10. Pied de page et notifications */

.site-footer {
    padding-block: 28px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px 25px;
    align-items: center;
}

.footer-brand {
    font-family: var(--display);
    font-size: 24px;
    font-weight: 900;
    letter-spacing: -1px;
}

.footer-brand span {
    color: var(--blue);
}

.site-footer p {
    font-size: 10px;
    color: var(--muted);
    grid-column: 1;
}

.site-footer > div {
    grid-row: 1/3;
    grid-column: 2;
    display: flex;
    align-items: flex-end;
    flex-direction: column;
    gap: 10px;
    font-size: 9px;
    color: var(--muted);
}

.site-footer button {
    font-size: 10px;
    text-decoration: underline;
    padding: 0;
}

.toast {
    position: fixed;
    bottom: 25px;
    left: 50%;
    transform: translate(-50%, 20px);
    padding: 13px 20px;
    background: var(--ink);
    color: var(--paper);
    box-shadow: 0 4px 30px #0003;
    font-size: 12px;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s, transform .2s;
    z-index: 100;
    max-width: calc(100% - 32px);
    width: max-content;
}

.toast.visible {
    opacity: 1;
    transform: translate(-50%, 0);
}

/* 11. Fenêtres de lecture, informations et formulaires */

dialog {
    border: 0;
    color: var(--ink);
    background: var(--paper);
    padding: 0;
    max-height: calc(100dvh - 40px);
    overflow-y: auto;
    box-shadow: 0 20px 100px #0004;
}

dialog::backdrop {
    background: #111624bb;
    backdrop-filter: blur(4px);
}

body:has(dialog[open]) {
    overflow: hidden;
}

.article-dialog {
    width: min(850px, calc(100% - 40px));
    max-width: 850px;
}

.reader-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    position: sticky;
    top: 0;
    z-index: 3;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 13px 24px;
    font-size: 10px;
    font-weight: 800;
}

.close-button {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 11px;
    min-height: 34px;
    min-width: 34px;
    justify-content: center;
    padding: 4px;
}

.close-button span {
    font-size: 25px;
    font-weight: 400;
}

.close-button:hover {
    color: var(--blue);
}

.reader-main {
    padding: 32px 50px 45px;
}

.reader-main .story-meta {
    margin-top: 0;
}

.reader-main h1 {
    font-family: var(--display);
    font-size: clamp(28px, 4vw, 44px);
    letter-spacing: -1.4px;
    line-height: 1.08;
    margin-top: 17px;
    overflow-wrap: anywhere;
}

.reader-deck {
    font-size: 17px;
    line-height: 1.65;
    margin-top: 18px;
    color: #4c4c46;
}

.reader-byline {
    font-size: 10px;
    color: var(--muted);
    margin-top: 18px;
}

.reader-demo {
    font-size: 11px;
    line-height: 1.6;
    margin-block: 23px 20px;
    padding: 12px 15px;
    border-left: 3px solid var(--blue);
    background: #ebedfa;
}

.reader-image {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    margin-top: 22px;
}

.reader-body {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 18px;
    line-height: 1.85;
    margin-top: 26px;
}

.reader-body p {
    margin-top: 19px;
}

.reader-body h2 {
    font-family: var(--body);
    font-size: 21px;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -.5px;
    margin-top: 32px;
}

.reader-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 35px;
    border-block: 1px solid var(--line);
    padding: 15px 0;
}

.reader-actions button {
    margin: 0;
}

.reader-actions .save-button {
    font-size: 12px;
}

.reader-related {
    margin-top: 28px;
}

.reader-related > span {
    display: block;
    font-size: 10px;
    letter-spacing: 1px;
    color: var(--blue);
    font-weight: 700;
}

.reader-related a {
    display: block;
    font-family: var(--display);
    font-size: 23px;
    letter-spacing: -.6px;
    margin-top: 10px;
    line-height: 1.2;
}

.reader-related a:hover {
    color: var(--blue);
}

.small-dialog {
    width: min(560px, calc(100% - 32px));
    padding: 26px 30px 32px;
}

.small-dialog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.small-dialog-header .eyebrow {
    font-size: 9px;
}

.small-dialog h2 {
    font-family: var(--display);
    font-size: 34px;
    letter-spacing: -1px;
    margin-top: 12px;
}

.small-dialog p {
    font-size: 13px;
    line-height: 1.8;
    margin-top: 18px;
    color: var(--muted);
}

.small-dialog h3 {
    font-size: 17px;
    margin-top: 23px;
}

.small-dialog ul {
    padding-left: 20px;
    font-size: 13px;
    line-height: 1.8;
    color: var(--muted);
}

#proposal-form {
    display: grid;
    gap: 17px;
    margin-top: 24px;
}

#proposal-form label,
#proposal-output label {
    display: grid;
    gap: 7px;
    font-size: 11px;
    font-weight: 700;
}

#proposal-form input,
#proposal-form select,
#proposal-form textarea,
#proposal-text {
    background: #fff8;
    border: 1px solid #c5c5bb;
    padding: 11px;
    width: 100%;
    min-width: 0;
    border-radius: 0;
    font-size: 13px;
    line-height: 1.5;
}

textarea {
    resize: vertical;
}

.button-blue {
    background: var(--blue);
    color: white;
}

#proposal-output {
    border-top: 1px solid var(--line);
    padding-top: 20px;
    margin-top: 24px;
}

#proposal-text {
    margin-top: 10px;
}

.small-dialog .form-note {
    font-size: 10px;
}

.noscript {
    position: fixed;
    bottom: 0;
    background: var(--ink);
    color: white;
    padding: 20px;
    width: 100%;
    text-align: center;
}

/* 12. Très grands écrans — à partir de 1500 px */

@media (min-width: 1500px) {
    .masthead {
        font-size: 110px;
    }
}

/* 13. Ordinateurs et petites fenêtres — jusqu’à 1100 px */

@media (max-width: 1100px) {
    .wrap {
        width: calc(100% - 64px);
    }

    .front-grid {
        gap: 25px;
        grid-template-columns: minmax(0, 1.9fr) minmax(245px, 1fr);
    }

    .news-wire {
        padding-left: 24px;
    }

    .wire-heading > span {
        display: none;
    }

    .nav-links {
        gap: 23px;
    }

    .nav-tools {
        gap: 18px;
    }

    .contribution-mini {
        padding: 19px;
    }

    .contribution-mini h3 {
        font-size: 28px;
    }

    .card-art-label {
        font-size: 7px;
    }

    .filter-row {
        flex-wrap: wrap;
    }

    .favorites-filter {
        margin-left: auto;
    }

    .article-card h3 {
        font-size: 21px;
    }

    .cover-story h2 {
        font-size: 32px;
    }

    .masthead-meta > span:nth-child(2) {
        display: none;
    }

    .editorial-grid {
        gap: 45px;
    }
}

/* 14. Tablettes et navigation mobile — jusqu’à 760 px */

@media (max-width: 760px) {
    .wrap {
        width: calc(100% - 40px);
    }

    .masthead {
        padding-block: 20px 23px;
        font-size: 7.4vw;
        gap: 10px;
    }

    .masthead svg {
        width: 6vw;
    }

    .masthead-meta {
        font-size: 7px;
        letter-spacing: .6px;
        padding-top: 18px;
        gap: 10px;
    }

    .main-nav {
        min-height: 54px;
        position: relative;
    }

    .menu-button {
        display: flex;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 55px;
        left: -20px;
        right: -20px;
        z-index: 10;
        background: var(--paper);
        padding: 10px 20px 20px;
        border-bottom: 1px solid var(--ink);
        box-shadow: 0 12px 18px #0001;
    }

    .nav-links.open {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
    }

    .nav-links > a {
        min-height: 44px;
        width: 100%;
    }

    .nav-links > a.active:after {
        right: auto;
        width: 30px;
    }

    .nav-tools {
        gap: 16px;
    }

    .search-toggle span {
        display: none;
    }

    .icon-label {
        font-size: 11px;
    }

    .demo-note {
        gap: 10px;
        align-items: flex-start;
        padding: 10px;
        margin-top: 15px;
        font-size: 10px;
    }

    .demo-label {
        font-size: 8px;
        margin-top: 1px;
    }

    .section-kicker {
        margin-top: 24px;
        margin-bottom: 14px;
        gap: 12px;
    }

    .section-kicker > span {
        font-size: 10px;
    }

    .section-kicker h1 {
        font-size: 11px;
    }

    .front-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 30px;
    }

    .cover-sticker {
        font-size: 8px;
        bottom: 16px;
        left: 16px;
        padding: 8px 10px;
    }

    .cover-story h2 {
        font-size: clamp(29px, 5vw, 38px);
        letter-spacing: -1px;
    }

    .cover-excerpt {
        font-size: 13px;
    }

    .news-wire {
        border-left: 0;
        border-top: 1px solid var(--ink);
        padding-left: 0;
        padding-top: 20px;
        display: grid;
        grid-template-columns: 1.2fr 1fr;
        gap: 0 24px;
    }

    .wire-heading {
        grid-column: 1;
    }

    .wire-heading > span {
        display: block;
        font-size: 7px;
    }

    .contribution-mini {
        grid-column: 2;
        grid-row: 1/4;
        margin-top: 0;
        align-self: start;
        padding: 20px;
    }

    .contribution-mini h3 {
        font-size: 29px;
    }

    .wire-item {
        padding: 15px 0;
    }

    .wire-item h3 {
        font-size: 14px;
    }

    .all-news {
        grid-column: 1;
    }

    .article-section {
        margin-top: 40px;
        padding-top: 23px;
        padding-bottom: 45px;
    }

    .section-title-row h2 {
        font-size: 37px;
    }

    .article-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 28px 20px;
    }

    .browse-toolbar {
        gap: 15px;
    }

    .search-field {
        max-width: none;
        min-height: 44px;
    }

    .search-field kbd {
        display: none;
    }

    .sort-control > span {
        display: none;
    }

    .category-filters {
        gap: 6px;
    }

    .filter-button {
        font-size: 10px;
        padding: 7px 10px;
    }

    .favorites-filter {
        margin-left: 0;
    }

    .filter-row {
        gap: 8px;
        padding-bottom: 12px;
        margin-top: 15px;
    }

    .article-card h3 {
        font-size: 22px;
    }

    .card-excerpt {
        font-size: 11px;
    }

    .card-bottom {
        margin-top: 10px;
    }

    .card-art-label {
        font-size: 7px;
    }

    .editorial-grid {
        gap: 30px;
        grid-template-columns: 1fr 1.2fr;
    }

    .editorial-section {
        padding-block: 42px;
    }

    .editorial-section h2 {
        font-size: 64px;
        letter-spacing: -3px;
    }

    .editorial-section .eyebrow {
        font-size: 8px;
    }

    .editorial-lead {
        font-size: 19px;
    }

    .editorial-copy p+p {
        font-size: 12px;
    }

    .editorial-copy .button {
        gap: 12px;
        font-size: 11px;
    }

    .site-footer {
        padding-block: 24px;
    }

    .footer-brand {
        font-size: 21px;
    }

    .reader-main {
        padding: 25px 27px 32px;
    }

    .reader-toolbar {
        padding: 10px 18px;
    }

    .reader-main h1 {
        font-size: 34px;
    }

    .reader-body {
        font-size: 17px;
    }
}

/* 15. Téléphones — jusqu’à 480 px */

@media (max-width: 480px) {
    .private-bar {
        font-size: 10px;
    }

    .private-extra {
        display: none;
    }

    .masthead-meta {
        font-size: 6px;
        letter-spacing: .4px;
    }

    .masthead {
        font-size: 7.25vw;
        letter-spacing: -.07em;
    }

    .masthead svg {
        width: 5.7vw;
    }

    .nav-tools {
        gap: 14px;
    }

    .nav-tools .icon-label {
        gap: 5px;
    }

    .saved-count {
        width: 16px;
        min-width: 16px;
        height: 16px;
        font-size: 9px;
    }

    .demo-note {
        flex-direction: column;
        gap: 6px;
    }

    .section-kicker > span:not(.issue-number) {
        font-size: 9px;
    }

    .section-kicker {
        gap: 10px;
    }

    .cover-story h2 {
        font-size: 29px;
        letter-spacing: -1px;
    }

    .cover-story .story-meta {
        gap: 7px;
        font-size: 9px;
    }

    .news-wire {
        display: block;
    }

    .wire-heading > span {
        display: block;
    }

    .wire-item h3 {
        font-size: 17px;
    }

    .wire-item {
        padding-block: 16px;
    }

    .contribution-mini {
        margin-top: 10px;
    }

    .contribution-mini h3 {
        font-size: 34px;
    }

    .contribution-mini h3 br {
        display: none;
    }

    .contribution-mini .button {
        width: auto;
        min-width: 210px;
    }

    .mini-note {
        font-size: 10px;
    }

    .section-title-row h2 {
        font-size: 34px;
    }

    .edition-tag {
        font-size: 7px;
        letter-spacing: .4px;
    }

    .browse-toolbar {
        flex-direction: column;
        gap: 10px;
        margin-top: 22px;
    }

    .sort-control {
        align-self: flex-end;
    }

    .sort-control > span {
        display: block;
        font-size: 10px;
    }

    .sort-control select {
        font-size: 10px;
        padding-block: 5px;
    }

    .article-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 28px;
    }

    .article-card h3 {
        font-size: 26px;
    }

    .card-excerpt {
        font-size: 13px;
    }

    .article-card .story-meta {
        font-size: 10px;
    }

    .card-art-label {
        font-size: 8px;
    }

    .card-bottom > span {
        font-size: 10px;
    }

    .article-card .save-button {
        font-size: 11px;
    }

    .results-line {
        font-size: 10px;
        gap: 7px;
    }

    .reset-filters {
        font-size: 9px;
    }

    .editorial-grid {
        grid-template-columns: 1fr;
        gap: 27px;
    }

    .editorial-section h2 {
        font-size: 75px;
        margin-top: 18px;
    }

    .editorial-section h2 br {
        display: none;
    }

    .editorial-section .eyebrow {
        font-size: 9px;
    }

    .editorial-copy {
        max-width: none;
    }

    .editorial-lead {
        font-size: 23px;
    }

    .editorial-copy p+p {
        font-size: 13px;
    }

    .site-footer {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .site-footer > div {
        align-items: flex-start;
        gap: 10px;
    }

    .footer-brand {
        font-size: 24px;
    }

    .article-dialog {
        width: calc(100% - 16px);
        max-height: calc(100dvh - 16px);
    }

    .reader-main {
        padding: 22px 20px 30px;
    }

    .reader-toolbar {
        padding: 8px 12px;
        font-size: 8px;
    }

    .reader-main h1 {
        font-size: 30px;
        letter-spacing: -1px;
    }

    .reader-deck {
        font-size: 16px;
    }

    .reader-body {
        font-size: 17px;
    }

    .reader-body h2 {
        font-size: 20px;
    }

    .reader-actions {
        gap: 12px;
    }

    .small-dialog {
        padding: 22px 20px 25px;
    }

    .small-dialog h2 {
        font-size: 30px;
    }

    .small-dialog-header .eyebrow {
        font-size: 8px;
        max-width: 85%;
    }
}

/* 16. Accessibilité — réduction des animations */

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

    *,
    *:before,
    *:after {
        transition: none !important;
        animation: none !important;
    }
}
