/* The Rogue Intern : la une d'un journal posée sur un bureau bleu nuit. Papier = celui du dessin (#f4f1e9), encres
   noire et bleu marine, un peu de rouge pour l'« exclusive ». Des filets comme dans un vrai journal, pas de cartes. */

@font-face { font-family: "UnifrakturMaguntia"; src: url("/fonts-journal/unifrakturmaguntia-400.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Old Standard TT"; src: url("/fonts-journal/old-standard-tt-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Old Standard TT"; src: url("/fonts-journal/old-standard-tt-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Libre Caslon Text"; src: url("/fonts-journal/libre-caslon-text-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Libre Caslon Text"; src: url("/fonts-journal/libre-caslon-text-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Libre Caslon Text"; src: url("/fonts-journal/libre-caslon-text-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --bureau: #0b1220;
  --papier: #f4f1e9;
  --encre: #16171b;
  --marine: #1c2c55;
  --rouge: #a8221d;
  --gris: #5b5d63;
  --filet-clair: #c9c4b6;
  --gothique: "UnifrakturMaguntia", "Old English Text MT", serif;
  --titre: "Old Standard TT", "Times New Roman", Times, serif;
  --texte: "Libre Caslon Text", Georgia, "Times New Roman", serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bureau); color: var(--encre); font: 17px/1.55 var(--texte); }
a { color: inherit; text-underline-offset: 3px; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 700; }
:focus-visible { outline: 3px solid var(--marine); outline-offset: 2px; }

.journal { max-width: 1140px; margin: 40px auto 56px; background: var(--papier); padding-block: 22px 32px;
  padding-left: max(40px, env(safe-area-inset-left, 0px)); padding-right: max(40px, env(safe-area-inset-right, 0px));
  box-shadow: 0 30px 90px rgba(0, 0, 0, .55); }

/* ---------- en-tête du journal */
.oreilles, .sous-titre { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font: italic 400 14px/1.4 var(--texte); }
.titre-journal { text-align: center; font: 400 clamp(52px, 10.5vw, 128px)/1 var(--gothique); color: var(--marine); padding-block: 10px 6px; }
.titre-journal a { text-decoration: none; }
.sous-titre { border-top: 3px double var(--encre); border-bottom: 1px solid var(--encre); padding-block: 6px; }
.rubriques { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px 26px; padding-block: 9px; border-bottom: 3px double var(--encre);
  font: 700 13px/1.3 var(--titre); letter-spacing: .08em; text-transform: uppercase; }
.rubriques a { text-decoration: none; }
.rubriques a:hover { text-decoration: underline; }

/* ---------- la une */
.une { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 3.6fr); margin-top: 22px; }
.article { padding-right: 28px; }
.colonne-droite { border-left: 1px solid var(--encre); padding-left: 24px; display: grid; gap: 22px; align-content: start; }

.surtitre { font: 700 13px/1 var(--titre); letter-spacing: .14em; text-transform: uppercase; color: var(--rouge); }
.manchette { font: 700 clamp(44px, 7.4vw, 100px)/0.93 var(--titre); text-transform: uppercase; letter-spacing: -.01em; margin-top: 8px; }
.chapeau { font: italic 400 clamp(20px, 2.2vw, 25px)/1.35 var(--texte); margin-top: 14px; max-width: 34em; }
.signature { margin-top: 14px; padding-block: 6px; border-top: 1px solid var(--encre); border-bottom: 1px solid var(--encre); font: 700 12.5px/1.3 var(--titre); letter-spacing: .1em; text-transform: uppercase; }

.photo { float: right; width: 34%; margin: 18px 0 10px 24px; }
.photo img { display: block; width: 100%; height: auto; }
.photo figcaption { font: italic 400 13px/1.4 var(--texte); color: var(--gris); padding-top: 6px; border-top: 1px solid var(--encre); }

.colonnes { margin-top: 18px; columns: 2 15em; column-gap: 26px; column-rule: 1px solid var(--filet-clair); text-align: justify; hyphens: auto; }
.colonnes p { margin-bottom: .8em; }
.lettrine::first-letter { float: left; font: 700 4.1em/0.82 var(--titre); padding: .06em .05em 0 0; color: var(--marine); }
.phrase-seule { font-weight: 700; font-size: 1.15em; text-align: left; }

/* ---------- colonne de droite */
.encart h3 { font: 700 15px/1.2 var(--titre); letter-spacing: .12em; text-transform: uppercase; padding-bottom: 6px; border-bottom: 2px solid var(--encre); margin-bottom: 10px; }
.cotes { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.cotes th, .cotes td { padding: 5px 0; border-bottom: 1px dotted #a29d90; text-align: left; vertical-align: top; }
.cotes th { font-weight: 700; padding-right: 10px; }
.cotes td { text-align: right; font-style: italic; }
.avertissement { margin-top: 10px; font-size: 14.5px; font-weight: 700; line-height: 1.45; }
.minutes { list-style: none; margin: 0; padding: 0; font-size: 15.5px; }
.minutes li { padding: 5px 0; border-bottom: 1px dotted #a29d90; }
.minutes time { font: 700 15.5px/1 var(--titre); margin-right: 8px; }
.enter p { font-size: 15.5px; }
.touche { margin: 14px 0 10px; display: inline-flex; align-items: center; gap: 10px; padding: 18px 26px 16px; cursor: pointer;
  font: 600 17px/1 Arial, "Helvetica Neue", sans-serif; letter-spacing: .04em; color: #222;
  background: linear-gradient(#f7f7f5, #e2e1dc); border: 1px solid #b8b6ae; border-radius: 8px;
  box-shadow: 0 5px 0 #a9a69d, 0 7px 12px rgba(0, 0, 0, .18); transition: transform .05s ease, box-shadow .05s ease; }
.touche span { font-size: 22px; }
.touche:active, .touche.enfoncee { transform: translateY(4px); box-shadow: 0 1px 0 #a9a69d, 0 2px 4px rgba(0, 0, 0, .2); }
.total { font: 700 15.5px/1.3 var(--titre); }
.total span { font-size: 30px; display: block; color: var(--marine); font-variant-numeric: tabular-nums; }
.perso { font-style: italic; font-size: 14px; color: var(--gris); min-height: 2.8em; }

/* ---------- avis officiel */
.avis { clear: both; margin-top: 30px; border-top: 3px double var(--encre); border-bottom: 3px double var(--encre); padding-block: 16px 18px; }
.avis h3 { text-align: center; font: 700 clamp(24px, 3vw, 32px)/1.1 var(--titre); text-transform: uppercase; letter-spacing: .06em; }
.avis-de { text-align: center; font-style: italic; margin-top: 4px; }
.avis ol { margin: 14px auto 0; max-width: 46em; padding-left: 1.4em; columns: 2 18em; column-gap: 34px; }
.avis li { margin-bottom: .45em; break-inside: avoid; }
.risque { max-width: 46em; margin: 14px auto 0; font-size: 15px; }

/* ---------- petites annonces */
.annonces { margin-top: 26px; }
.annonces h3 { font: 700 15px/1.2 var(--titre); letter-spacing: .12em; text-transform: uppercase; padding-bottom: 6px; border-bottom: 2px solid var(--encre); }
.annonces-grille { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.annonce { padding: 14px 16px 16px; border-right: 1px solid var(--filet-clair); border-bottom: 1px solid var(--filet-clair); display: grid; gap: 8px; align-content: start; font-size: 15px; line-height: 1.45; }
.annonce:nth-child(4n) { border-right: 0; }
.annonce-titre { font: 700 15px/1.2 var(--titre); text-transform: uppercase; letter-spacing: .06em; }
.recherche { grid-row: span 2; text-align: center; }
.recherche .annonce-titre { font-size: 20px; }
.recherche img { width: 100%; height: auto; display: block; border: 1px solid var(--encre); }
.officiel { grid-column: span 2; }

/* ---------- pied */
.pied { margin-top: 26px; padding-top: 12px; border-top: 1px solid var(--encre); display: grid; gap: 8px; font-size: 12.5px; line-height: 1.5; color: var(--gris); }

/* page introuvable */
.introuvable { text-align: center; padding-block: 40px 30px; display: grid; gap: 18px; justify-items: center; }
.introuvable .manchette { font-size: clamp(40px, 7vw, 84px); }
.retour { font: 700 14px/1 var(--titre); letter-spacing: .1em; text-transform: uppercase; }

/* ---------- écrans moyens et petits */
@media (max-width: 900px) {
  .une { grid-template-columns: minmax(0, 1fr); }
  .article { padding-right: 0; }
  .colonne-droite { border-left: 0; padding-left: 0; border-top: 3px double var(--encre); padding-top: 18px; margin-top: 18px; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 26px; }
  .enter { grid-column: span 2; }
  .annonces-grille { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .annonce:nth-child(4n) { border-right: 1px solid var(--filet-clair); }
  .annonce:nth-child(2n) { border-right: 0; }
}
@media (max-width: 600px) {
  body { font-size: 16.5px; }
  .journal { margin: 0; padding-left: max(18px, env(safe-area-inset-left, 0px)); padding-right: max(18px, env(safe-area-inset-right, 0px)); box-shadow: none; }
  .oreilles span:nth-child(3), .sous-titre span:first-child { display: none; }
  .photo { float: none; width: 62%; margin: 18px auto 6px; }
  .colonnes { columns: 1; text-align: left; }
  .colonne-droite { grid-template-columns: minmax(0, 1fr); }
  .enter { grid-column: auto; }
  .annonces-grille { grid-template-columns: minmax(0, 1fr); }
  .annonce, .annonce:nth-child(4n), .annonce:nth-child(2n) { border-right: 0; }
  .recherche { grid-row: auto; }
  .recherche img { width: 70%; margin: 0 auto; }
  .officiel { grid-column: auto; }
}
@media (prefers-reduced-motion: reduce) { .touche { transition: none; } }
