@charset "UTF-8";
/* accueil.css — page d'accueil publique */

@font-face { font-family: "Walgreens"; src: url("/fonts/walgreensscriptfreeversion.ttf") format("truetype"); font-display: swap; }

/* Concept : les blocs de minte.be (fond translucide, bordure cuivre à droite, rayon 8px) assemblés en tableau de bord de la collection */
:root {
  color-scheme: dark;
  --fond: #4c514c;                         /* rgba(76,81,76) de description.css */
  --fond-fonce: #3f443f;
  --bloc: rgba(191,186,183,0.1);
  --bloc-fort: rgba(191,186,183,0.2);
  --cuivre: rgba(198,146,115,0.5);
  --cuivre-plein: #c69273;
  --texte: #e4e4e4;
  --texte-doux: #bfbab7;
  --accent: #2c4531;
  --marron: #cdab8f;
  --creme: #f0ead9;
  --vert-lien: #2ec27e;
  --rayon: 8px;
  --police: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --signature: "Walgreens", "Brush Script MT", cursive;
}
* { box-sizing: border-box; }
body {
  background: linear-gradient(145deg, var(--fond) 0%, var(--fond) 50%, #575c57 100%);
  color: var(--texte);
  font-family: var(--police);
  font-size: 16px;
  line-height: 1.45;
  margin: 0;
  padding-inline: 16px;
  padding-block: 0 40px;
  min-height: 100vh;
  background-attachment: fixed;
}
a { color: var(--texte); text-decoration: none; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid var(--marron); outline-offset: 2px; }
.page { max-width: 1200px; margin: 0 auto; display: grid; gap: 28px; }

/* En-tête */
header {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px;
  padding-block: 18px 14px; border-bottom: 0.1rem solid rgba(255,255,255,0.1);
}
.logo { font-family: var(--signature); font-size: 40px; line-height: 1; color: var(--marron); text-shadow: 1px 1px 0 #000; }
nav { display: flex; flex-wrap: wrap; gap: 6px; }
nav a { padding: 6px 12px; border-radius: var(--rayon); font-size: 15px; }
nav a:hover { background: var(--bloc-fort); }
nav a.actif { background: var(--cuivre); }
nav a.admin { border: 1px solid var(--cuivre); }

/* Accroche + recherche */
.accroche { display: grid; gap: 16px; justify-items: center; text-align: center; padding-top: 8px; }
.accroche h1 { font-size: clamp(22px, 3.2vw, 30px); font-weight: 600; margin: 0; text-wrap: balance; }
.accroche p { margin: 0; color: var(--texte-doux); max-width: 60ch; }
.recherche { display: flex; width: min(560px, 100%); }
.recherche input {
  flex: 1; min-width: 0; font: inherit; color: var(--texte);
  background: var(--bloc-fort); border: 0; border-radius: var(--rayon) 0 0 var(--rayon); padding: 12px 14px;
}
.recherche input::placeholder { color: var(--texte-doux); }
.recherche button {
  font: inherit; font-weight: 600; color: var(--creme); cursor: pointer;
  background: var(--accent); border: 0; border-right: 1rem solid var(--cuivre);
  border-radius: 0 var(--rayon) var(--rayon) 0; padding: 0 18px;
}

/* Chiffres : style .prixRef de la fiche pièce */
.chiffres { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; }
.chiffre {
  border-radius: var(--rayon);
  background: linear-gradient(to left, var(--cuivre), rgba(198,146,115,0.4));
  border-bottom: 0.1rem solid rgba(255,255,255,0.1); border-top: 0.1rem solid rgba(0,0,0,0.2);
  text-align: center; padding: 12px 8px; display: grid; gap: 2px;
}
.chiffre .val { color: var(--accent); font-size: 26px; font-weight: 900; font-variant-numeric: tabular-nums; }
.chiffre .lib { font-size: 14px; font-weight: 600; }

/* Titres de section */
h2 { font-size: 20px; margin: 0 0 12px; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
h2 a { font-size: 14px; font-weight: 400; color: var(--vert-lien); }

/* Cartes pièces : style .moeda de la liste */
.pieces { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 16px; }
.piece {
  display: grid; grid-template-columns: 110px 1fr; align-items: center; gap: 14px;
  background: var(--bloc); border-right: 1rem solid var(--cuivre); border-radius: var(--rayon);
  overflow: hidden; transition: background .2s;
}
.piece:hover { background: var(--bloc-fort); }
.piece img { width: 110px; height: 110px; object-fit: cover; display: block; }
.piece .info { min-width: 0; display: grid; gap: 6px; padding-right: 10px; padding-block: 8px; }
.piece .titre { font-size: 15px; font-weight: 600; }
.piece .meta { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--texte-doux); }
.piece .meta img { width: 22px; height: auto; border-radius: 2px; }
.piece .prix { margin-left: auto; color: var(--creme); font-weight: 700; font-variant-numeric: tabular-nums; }

/* Deux colonnes */
.duo { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 28px; align-items: start; }
.bloc { background: var(--bloc); border-right: 1rem solid var(--cuivre); border-radius: var(--rayon); padding: 16px; }

.pays { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.pays li { display: grid; grid-template-columns: 26px 110px 1fr 36px; align-items: center; gap: 10px; font-size: 15px; }
.pays img { width: 24px; height: auto; border-radius: 2px; }
.barre { height: 8px; border-radius: 4px; background: var(--bloc-fort); overflow: hidden; }
.barre span { display: block; height: 100%; background: var(--cuivre-plein); border-radius: 4px; }
.pays .n { text-align: right; font-variant-numeric: tabular-nums; color: var(--texte-doux); }

.precieuses { display: grid; gap: 10px; }
.precieuse { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center; }
.precieuse img.coin { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; }
.precieuse .titre { font-size: 15px; min-width: 0; }
.precieuse .titre small { display: flex; align-items: center; gap: 6px; color: var(--texte-doux); font-size: 13px; }
.precieuse .titre small img { width: 18px; height: auto; }
.precieuse .prix { color: var(--accent); background: var(--marron); font-weight: 900; border-radius: 6px; padding: 4px 8px; font-variant-numeric: tabular-nums; white-space: nowrap; }

.rarete { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.rarete a { padding: 6px 14px; border-radius: 20px; background: var(--bloc-fort); font-size: 14px; }
.rarete a b { color: var(--marron); margin-left: 4px; font-variant-numeric: tabular-nums; }

/* Espace connecté */
.espace { border: 1px solid var(--cuivre); border-radius: var(--rayon); padding: 16px; display: grid; gap: 16px; background: rgba(44,69,49,0.25); }
.espace h2 .badge { font-size: 12px; font-weight: 600; color: var(--creme); background: var(--accent); border-radius: 20px; padding: 3px 10px; }
.outils { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.outil { background: var(--bloc); border-right: 1rem solid var(--cuivre); border-radius: var(--rayon); padding: 14px; display: grid; gap: 4px; }
.outil strong { font-size: 16px; }
.outil span { font-size: 14px; color: var(--texte-doux); }
.outil code { font-size: 13px; color: var(--vert-lien); }
.albums { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.albums td, .albums th { padding: 8px; text-align: left; border-bottom: 1px solid rgba(221,221,221,0.25); font-size: 15px; }
.albums th { color: var(--texte-doux); font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: .05em; }
.albums td.num, .albums th.num { text-align: right; }
.albums tr.total td { font-weight: 800; color: var(--marron); border-bottom: 0; }
.tableau { overflow-x: auto; }

footer { text-align: center; font-size: 13px; color: var(--texte-doux); border-top: 0.1rem solid rgba(255,255,255,0.1); padding-top: 16px; }
footer .logo { font-size: 26px; }

@media (max-width: 720px) {
  .piece { grid-template-columns: 90px 1fr; }
  .piece img { width: 90px; height: 90px; }
  .pays li { grid-template-columns: 26px 90px 1fr 32px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }


/* Ajouts accueil public : une ligne de catégories, mots simples */
.connexion { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: var(--rayon); font-size: 15px; font-weight: 600; color: var(--creme); background: var(--accent); border-right: 0.5rem solid var(--cuivre); }
.connexion:hover { background: #355a3c; }
.connexion svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }
header { border-bottom: 0; padding-bottom: 6px; }
.menu { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 22px; padding-bottom: 12px; }
.menu a { font-size: 14px; color: var(--texte-doux); padding: 2px 0; border-bottom: 2px solid transparent; }
.menu a:hover { color: var(--texte); border-bottom-color: var(--cuivre-plein); }
.contenu { display: grid; gap: 28px; min-width: 0; }
.precieuse .annee { color: var(--creme); background: var(--accent); font-weight: 900; border-radius: 6px; padding: 4px 8px; font-variant-numeric: tabular-nums; }

/* Frise : plus anciennes (sans bloc) */
.frise { list-style: none; margin: 0; padding: 0 0 0 4px; display: grid; gap: 14px; position: relative; }
.frise::before { content: ""; position: absolute; left: 30px; top: 6px; bottom: 6px; width: 2px; background: var(--cuivre); }
.frise li { display: grid; grid-template-columns: 54px 52px 1fr; gap: 12px; align-items: center; position: relative; }
.frise .an { font-family: var(--signature); font-size: 22px; color: var(--marron); background: var(--fond); text-align: center; position: relative; z-index: 1; line-height: 1.6; }
.frise img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px rgba(205,171,143,0.35); }
.frise a { font-size: 15px; min-width: 0; }
.frise a small { display: block; font-size: 13px; color: var(--texte-doux); }
.frise a:hover { color: var(--creme); }

/* Pièce à la une */
.une { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 28px; align-items: center;
  background: linear-gradient(120deg, rgba(44,69,49,0.55), rgba(44,69,49,0.15)); border-radius: var(--rayon); padding: 24px; border-left: 0.3rem solid var(--marron); }
.une-images { display: flex; gap: 12px; }
.une-images img { width: 180px; height: 180px; border-radius: 50%; object-fit: cover; box-shadow: 0 6px 18px rgba(0,0,0,0.35); }
.une-texte { display: grid; gap: 12px; min-width: 0; }
.surtitre { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--marron); font-weight: 700; }
.une h2 { margin: 0; font-size: 22px; text-wrap: balance; }
.une p { margin: 0; color: var(--texte); max-width: 68ch; }
.une dl { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px 16px; }
.une dt { font-size: 12px; color: var(--texte-doux); text-transform: uppercase; letter-spacing: .05em; }
.une dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.refs { font-variant-numeric: tabular-nums; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.refs .sigle { font: 600 12px ui-monospace, Menlo, Consolas, monospace; color: var(--accent); background: var(--marron); border-radius: 4px; padding: 1px 6px; margin-left: 6px; }
.refs .sigle:first-child { margin-left: 0; }
.voir { color: var(--vert-lien); font-size: 15px; justify-self: start; }

/* Plus petits tirages : le nombre en avant */
.tirages { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; }
.tirages a { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "nombre img" "ex img" "t t"; gap: 2px 12px; padding: 14px 16px;
  border-top: 3px solid var(--marron); background: rgba(0,0,0,0.12); border-radius: 0 0 var(--rayon) var(--rayon); }
.tirages a:hover { background: rgba(0,0,0,0.2); }
.tirages .nombre { grid-area: nombre; font-size: 34px; font-weight: 900; color: var(--creme); line-height: 1; font-variant-numeric: tabular-nums; }
.tirages .ex { grid-area: ex; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--marron); }
.tirages img { grid-area: img; width: 72px; height: 72px; border-radius: 50%; object-fit: cover; }
.tirages .t { grid-area: t; font-size: 14px; margin-top: 10px; }
.tirages .t small { display: block; color: var(--texte-doux); font-size: 12px; }

/* Par métal : pastilles */
.metaux { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.metaux a { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; }
.metaux i { width: 18px; height: 18px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff8, transparent 55%), var(--m); box-shadow: inset 0 0 0 1px rgba(0,0,0,0.25); }
.metaux b { color: var(--texte-doux); font-weight: 400; font-size: 13px; font-variant-numeric: tabular-nums; }
.metaux a:hover { color: var(--creme); }

@media (max-width: 720px) {
  .une { grid-template-columns: 1fr; padding: 16px; }
  .une-images { justify-content: center; }
  .une-images img { width: 130px; height: 130px; }
}

/* Le saviez-vous : citation */
.savoir { position: relative; padding: 8px 0 8px 64px; max-width: 860px; margin: 0 auto; }
.savoir .guillemet { position: absolute; left: 0; top: -18px; font-family: Georgia, serif; font-size: 110px; line-height: 1; color: var(--cuivre-plein); }
.savoir blockquote { margin: 0; display: grid; gap: 10px; }
.savoir p { margin: 0; font-family: Georgia, "Times New Roman", serif; font-style: italic; font-size: 21px; line-height: 1.5; color: var(--creme); text-wrap: pretty; }
.savoir footer { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: baseline; font-size: 14px; }
.savoir footer a { color: var(--vert-lien); }

/* Commémoratives : bande défilante */
.bande { display: flex; gap: 18px; overflow-x: auto; padding-bottom: 10px; scroll-snap-type: x mandatory; scrollbar-color: var(--cuivre-plein) transparent; scrollbar-width: thin; }
.bande a { flex: 0 0 140px; display: grid; justify-items: center; gap: 4px; text-align: center; scroll-snap-align: start; }
.bande img { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; box-shadow: 0 4px 14px rgba(0,0,0,0.35); transition: transform .2s; }
.bande a:hover img { transform: scale(1.05); }
.bande .a { font-size: 13px; font-weight: 700; color: var(--marron); margin-top: 6px; }
.bande .t { font-size: 13px; color: var(--texte-doux); }

/* Émetteurs : mosaïque de drapeaux */
.mosaique { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 0; border-radius: var(--rayon); overflow: hidden; border: 1px solid rgba(255,255,255,0.08); }
.mosaique a { display: grid; justify-items: center; gap: 4px; padding: 12px 6px; background: var(--fond-fonce); text-align: center; font-size: 13px; box-shadow: inset -1px -1px 0 rgba(255,255,255,0.08); }
.mosaique a:hover { background: var(--fond); }
.mosaique img { width: 40px; height: auto; border-radius: 3px; box-shadow: 0 1px 3px rgba(0,0,0,0.4); }
.mosaique b { font-size: 12px; color: var(--marron); font-variant-numeric: tabular-nums; }

/* Par siècle : barre segmentée */
.siecles { display: grid; gap: 12px; }
.barre-siecle { display: flex; height: 18px; border-radius: 9px; overflow: hidden; gap: 2px; }
.s18 { background: var(--creme); } .s19 { background: var(--marron); } .s20 { background: var(--cuivre-plein); }
.legende { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 15px; }
.legende a { display: inline-flex; align-items: center; gap: 8px; }
.legende i { width: 12px; height: 12px; border-radius: 3px; }
.legende b { color: var(--texte-doux); font-weight: 400; font-variant-numeric: tabular-nums; }

/* Graveurs : monogrammes */
.graveurs { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.graveurs li { display: grid; grid-template-columns: 40px 1fr auto; gap: 12px; align-items: center; }
.mono { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-family: Georgia, serif; font-size: 15px; color: var(--marron); border: 1.5px solid var(--marron); }
.graveurs a { font-size: 15px; min-width: 0; }
.graveurs b { font-size: 13px; color: var(--texte-doux); font-weight: 400; white-space: nowrap; }

/* Ateliers : fils fins */
.ateliers { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.ateliers li { display: grid; grid-template-columns: 1fr 34px; grid-template-areas: "nom n" "fil fil"; gap: 4px 10px; }
.ateliers a { grid-area: nom; font-size: 15px; }
.ateliers b { grid-area: n; text-align: right; color: var(--texte-doux); font-weight: 400; font-size: 13px; font-variant-numeric: tabular-nums; }
.fil { grid-area: fil; height: 3px; background: rgba(255,255,255,0.08); border-radius: 2px; }
.fil span { display: block; height: 100%; background: var(--marron); border-radius: 2px; }

@media (max-width: 720px) {
  .savoir { padding-left: 44px; }
  .savoir .guillemet { font-size: 80px; }
  .savoir p { font-size: 18px; }
}

/* Barre du haut foncée, pleine largeur */
:root { --barre: #1a1a19; }
.barre-haut { background: var(--barre); margin-inline: -16px; padding-inline: 16px; position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10; box-shadow: 0 2px 10px rgba(0,0,0,0.35); }
.barre-int { max-width: 1400px; margin: 0 auto; }
.barre-haut header { padding-block: 10px 6px; border-bottom: 0; }
.barre-haut .logo { font-size: 34px; }
.barre-haut nav a { color: var(--texte); }
.barre-haut nav a:hover { background: rgba(255,255,255,0.08); }
.barre-haut .menu { margin-top: 0; padding-block: 2px 10px; border: 0; }
.barre-haut .menu a { color: #a9a49f; }
.barre-haut .menu a:hover { color: var(--creme); }
.page { padding-top: 24px; }

/* Une seule ligne : logo, Accueil + catégories, connexion */
.barre-haut header { padding-block: 10px; flex-wrap: nowrap; gap: 20px; }
.barre-haut header nav { flex: 1; min-width: 0; justify-content: center; gap: 2px 0; flex-wrap: nowrap; }
.barre-haut header nav a { font-size: 14px; padding: 5px 8px; color: #c9c4bf; white-space: nowrap; }
.barre-haut header nav a.actif { color: var(--texte); }
.barre-haut header nav a:hover { color: var(--creme); }
.barre-haut .connexion { white-space: nowrap; }
@media (max-width: 1240px) {
  .barre-haut header { flex-wrap: wrap; }
  .barre-haut header nav { order: 3; flex-basis: 100%; flex-wrap: wrap; }
}

.chiffres.publics { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }

/* Ajustements de la vraie page (éléments sans lien) */
section[id] { scroll-margin-top: 80px; }
.nb-cat { font-size: 14px; font-weight: 400; color: var(--texte-doux); }
.mosaique > div { display: grid; justify-items: center; gap: 4px; padding: 12px 6px; background: var(--fond-fonce); text-align: center; font-size: 13px; box-shadow: inset -1px -1px 0 rgba(255,255,255,0.08); }
.mosaique > div img { width: 40px; height: auto; border-radius: 3px; box-shadow: 0 1px 3px rgba(0,0,0,0.4); }
.mosaique > div b { font-size: 12px; color: var(--marron); font-variant-numeric: tabular-nums; }
.legende > span { display: inline-flex; align-items: center; gap: 8px; }
.graveurs li > span:nth-child(2) { font-size: 15px; min-width: 0; }
.ateliers .nom { grid-area: nom; font-size: 15px; }
.metaux > span { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; }
.page > *, .contenu > *, .duo > * { min-width: 0; }

/* Bannière : remonte avec la page, la barre reste collée en haut */
.banniere { margin-inline: -16px; height: 240px; background-color: #1a1a19; background-position: center; background-size: cover; background-repeat: no-repeat; display: grid; place-items: center; }
.banniere-texte { display: grid; justify-items: center; gap: 4px; text-align: center; }
.logo-grand { font-family: var(--signature); font-size: 76px; line-height: 1; color: var(--marron); text-shadow: 2px 2px 0 #000, 0 0 30px rgba(0,0,0,0.8); }
.devise { font-size: 13px; text-transform: uppercase; letter-spacing: .18em; color: var(--creme); opacity: .85; }
.barre-haut .logo { transition: opacity .3s, transform .3s; }
.avec-banniere .barre-haut .logo { opacity: 0; transform: translateY(-6px); pointer-events: none; }
@media (max-width: 720px) {
  .banniere { height: 160px; background-size: auto 100%; }
  .logo-grand { font-size: 52px; }
}
.mosaique > a { display: grid; justify-items: center; gap: 4px; padding: 12px 6px; background: var(--fond-fonce); text-align: center; font-size: 13px; box-shadow: inset -1px -1px 0 rgba(255,255,255,0.08); }
.mosaique > a:hover { background: var(--fond); }
.mosaique > a img { width: 40px; height: auto; border-radius: 3px; box-shadow: 0 1px 3px rgba(0,0,0,0.4); }
.mosaique > a b { font-size: 12px; color: var(--marron); font-variant-numeric: tabular-nums; }

/* Recherche dans la barre du haut : une loupe qui s'ouvre au clic */
.cherche-barre { position: relative; width: 38px; height: 36px; flex: none; }
.cherche-barre input { position: absolute; right: 0; top: 0; width: 38px; height: 36px; box-sizing: border-box; padding: 0 0 0 36px; border: 1px solid transparent; border-radius: 18px; background: rgba(255,255,255,0.06) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23cdab8f' stroke-width='2.2'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-4-4'/%3E%3C/svg%3E") no-repeat 10px center / 18px; color: var(--creme); font-size: 14px; cursor: pointer; transition: width .25s ease, background-color .25s; }
.cherche-barre input::placeholder { color: transparent; }
.cherche-barre input:hover { background-color: rgba(255,255,255,0.12); }
.cherche-barre input:focus, .cherche-barre input:not(:placeholder-shown) { width: 260px; cursor: text; outline: none; border-color: var(--cuivre-plein); background-color: #262624; z-index: 5; padding-right: 12px; }
.cherche-barre input:focus::placeholder { color: var(--texte-doux); }
.cherche-barre input::-webkit-search-cancel-button { filter: invert(.7); }

/* ===== Téléphone ===== */
/* Une colonne ne s'élargit jamais au-delà de l'écran à cause d'un élément trop large */
.page { grid-template-columns: minmax(0, 1fr); }
.page > *, .contenu > * { min-width: 0; }
/* Le fil d'Ariane est un <nav> : il ne prend pas le style des liens du menu */
.ariane a { padding: 0; font-size: inherit; border-radius: 0; }
.ariane a:hover { background: none; }

@media (max-width: 700px) {
  /* Barre du haut : logo, loupe et compte sur une ligne ; le menu défile sur une seule ligne en dessous */
  .barre-haut header { flex-wrap: wrap; gap: 6px 10px; padding-block: 8px 4px; }
  .barre-haut .logo { font-size: 28px; margin-right: auto; }
  .barre-haut .connexion { padding: 7px 10px; font-size: 0; gap: 0; border-right-width: .3rem; }
  .barre-haut .connexion svg { width: 18px; height: 18px; }
  .barre-haut header nav { order: 3; flex-basis: 100%; flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; margin-inline: -16px; padding: 2px 12px 6px; -webkit-mask-image: linear-gradient(to right, transparent 0, #000 12px, #000 calc(100% - 24px), transparent 100%); mask-image: linear-gradient(to right, transparent 0, #000 12px, #000 calc(100% - 24px), transparent 100%); }
  .barre-haut header nav::-webkit-scrollbar { display: none; }
  .barre-haut header nav a { flex: none; padding: 6px 10px; }
  .cherche-barre input:focus, .cherche-barre input:not(:placeholder-shown) { width: min(240px, calc(100vw - 150px)); }
  /* Recherche de l'accueil : le bouton reste dans l'écran */
  .recherche button { border-right-width: .4rem; padding: 0 12px; }
  h1 { overflow-wrap: anywhere; }
}
.recherche { box-sizing: border-box; max-width: 100%; }
.recherche input { width: 0; }
.recherche button { flex: none; }
@media (max-width: 700px) {
  .accroche { justify-items: stretch; }
  .recherche { width: 100%; }
}

/* La page ne défile jamais de gauche à droite sur téléphone
   (clip ne casse pas la barre collée en haut, contrairement à hidden) */
html, body { max-width: 100%; overflow-x: clip; }
@supports not (overflow-x: clip) { html { overflow-x: hidden; } }
.banniere, .barre-haut { max-width: 100vw; box-sizing: border-box; }

/* Accueil sur téléphone : les trois chiffres restent sur une seule ligne */
@media (max-width: 700px) {
  .chiffres.publics { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .chiffres.publics .chiffre { padding: 10px 4px; gap: 2px; }
  .chiffres.publics .val { font-size: clamp(16px, 5.4vw, 24px); line-height: 1.1; }
  .chiffres.publics .lib { font-size: 12px; }
}
@media (max-width: 700px) {
  .chiffres.publics .val { font-size: clamp(14px, 4.4vw, 22px); white-space: nowrap; letter-spacing: -0.02em; }
  .chiffres.publics .chiffre { align-content: center; }
}

/* Choix de la langue dans la barre du haut */
.barre-haut .langues { display: flex; flex: none; gap: 2px; padding: 3px; border-radius: 18px; background: rgba(255,255,255,0.06); }
.barre-haut .langues a { padding: 4px 8px; border-radius: 14px; font: 700 12px ui-monospace, Menlo, Consolas, monospace; color: #c9c4bf; }
.barre-haut .langues a:hover { color: var(--creme); background: rgba(255,255,255,0.08); }
.barre-haut .langues a.actif { background: var(--cuivre-plein); color: #22251f; }
@media (max-width: 700px) {
  /* Téléphone : les langues avant la loupe ; loupe ouverte, elles s'effacent */
  .barre-haut .langues { order: 0; flex: 0 1 auto; min-width: 0; overflow-x: auto; scrollbar-width: none; background: none; }
  .barre-haut .langues a { flex: none; padding: 4px 6px; font-size: 11px; }
  .barre-haut header:has(.cherche-barre input:focus) .langues,
  .barre-haut header:has(.cherche-barre input:not(:placeholder-shown)) .langues { display: none; }
}

/* Bandeau : page traduite automatiquement */
.bandeau-trad { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 10px 14px; border-radius: var(--rayon); background: rgba(0,0,0,0.18); border-left: 3px solid #9fb4d0; font-size: 14px; color: var(--texte-doux); }
.bandeau-trad .pastille { font: 700 11px ui-monospace, Menlo, Consolas, monospace; letter-spacing: .04em; text-transform: uppercase; padding: 2px 8px; border-radius: 10px; background: rgba(159,180,208,0.18); color: #9fb4d0; }
.bandeau-trad a { color: var(--vert-lien); margin-left: auto; }

.cours-cases { --hausse: #6fd39b; --baisse: #f08a7a;
  --chiffres: ui-monospace, "SF Mono", "Cascadia Mono", "DejaVu Sans Mono", monospace; }
/* Cases des cours du jour (accueil et page /cours) : un lien ou un bouton par métal */
.cours-cases { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.cours-metal { background: var(--bloc); border: 0; border-right: 3px solid var(--cuivre); border-radius: var(--rayon); padding: 12px 12px 10px;
  display: grid; gap: 4px; text-align: left; cursor: pointer; color: var(--texte); font: inherit; }
.cours-metal:hover { background: var(--bloc-fort); }
.cours-metal[aria-pressed="true"] { background: var(--bloc-fort); box-shadow: inset 0 -3px 0 var(--couleur); }
.cours-metal .nom { display: flex; align-items: center; gap: 7px; font-size: 13px; text-transform: uppercase; letter-spacing: .07em; color: var(--texte-doux); }
.cours-metal .nom i { width: 10px; height: 10px; border-radius: 50%; background: var(--couleur); flex: none; }
.cours-metal .nom small { margin-left: auto; text-transform: none; letter-spacing: 0; font-family: var(--chiffres); font-size: 11px; }
.cours-metal .prix { font-family: var(--chiffres); font-size: 22px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cours-metal .prix small { font-size: 12px; color: var(--texte-doux); margin-left: 3px; }
.cours-metal .var { font-family: var(--chiffres); font-size: 12px; }
.cours-metal .var span { color: var(--texte-doux); }
.cours-metal .hausse { color: var(--hausse); }
.cours-metal .baisse { color: var(--baisse); }
.cours-metal svg { width: 100%; height: 30px; display: block; }
a.cours-metal { text-decoration: none; }
@media (max-width: 980px) { .cours-cases { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 520px) {
  .cours-cases { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .cours-metal .prix { font-size: 19px; }
}

/* Ligne des cours qui défile en haut de l'accueil : petites cases au style des cours, métaux et devises mélangés */
.defile { display: flex; align-items: center; gap: 12px; min-width: 0; }
.defile-piste { flex: 1; min-width: 0; overflow: hidden; display: flex; gap: 10px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 24px), transparent);
          mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 24px), transparent); }
.defile-liste { display: flex; gap: 10px; flex: none; animation: defiler 60s linear infinite; }
.defile:hover .defile-liste, .defile:focus-within .defile-liste { animation-play-state: paused; }
@keyframes defiler { to { transform: translateX(calc(-100% - 10px)); } }
.cours-tic { flex: none; display: grid; gap: 1px; background: var(--bloc); border-right: 3px solid var(--cuivre); border-radius: var(--rayon);
  padding: 7px 12px 6px; color: var(--texte); text-decoration: none; }
.cours-tic:hover { background: var(--bloc-fort); }
.cours-tic .nom { display: flex; align-items: center; gap: 6px; font-size: 11px; text-transform: uppercase; letter-spacing: .07em; color: var(--texte-doux); white-space: nowrap; }
.cours-tic .nom i { width: 8px; height: 8px; border-radius: 50%; background: var(--couleur, transparent); border: 1px solid var(--cuivre); flex: none; }
.cours-tic .nom small { text-transform: none; letter-spacing: 0; font-family: var(--chiffres, ui-monospace, monospace); font-size: 10px; margin-left: 4px; }
.cours-tic .val { display: flex; align-items: baseline; gap: 8px; white-space: nowrap; font-family: ui-monospace, "SF Mono", "Cascadia Mono", "DejaVu Sans Mono", monospace; font-variant-numeric: tabular-nums; }
.cours-tic b { font-size: 16px; font-weight: 500; }
.cours-tic em { font-style: normal; font-size: 12px; }
.cours-tic .hausse { color: #6fd39b; }
.cours-tic .baisse { color: #f08a7a; }
/* Animations réduites : pas de défilement, la ligne se fait glisser au doigt */
@media (prefers-reduced-motion: reduce) {
  .defile-liste { animation: none; }
  .defile-liste[aria-hidden] { display: none; }
  .defile-piste { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
}

/* Recherche de l'accueil : même barre que la page Recherche (règles reprises de recherche.css) */
.accroche .grande-recherche { width: min(760px, 100%); max-width: 100%; box-sizing: border-box; text-align: left; }
.accroche .grande-recherche input { width: 0; } /* sinon le champ garde sa largeur minimale et pousse le bouton hors de l'écran */
.accroche .grande-recherche button { flex: none; }
.grande-recherche { display: flex; align-items: center; gap: 0; background: rgba(0,0,0,0.22); border: 1px solid var(--cuivre); border-radius: 14px; padding-left: 16px; }
.grande-recherche:focus-within { border-color: var(--marron); background: rgba(0,0,0,0.3); }
.grande-recherche svg { width: 22px; height: 22px; fill: none; stroke: var(--marron); stroke-width: 2.2; flex: none; }
.grande-recherche input { flex: 1; min-width: 0; padding: 16px 14px; border: 0; background: none; color: var(--creme); font-size: 18px; }
.grande-recherche input:focus { outline: none; }
.grande-recherche input::placeholder { color: var(--texte-doux); }
.grande-recherche button { margin: 6px; padding: 11px 20px; border: 0; border-radius: 10px; background: var(--accent); color: var(--creme); font-size: 15px; font-weight: 700; cursor: pointer; }
.grande-recherche button:hover { background: #355a3c; }
@media (max-width: 640px) { .grande-recherche button { padding: 11px 12px; } .grande-recherche input { font-size: 16px; } }
/* Titre lu par Google et les lecteurs d'écran, mais pas affiché */
.cache-visuel { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Connecté : lien Gestion au bout du menu, encadré ; le menu passe sur sa propre ligne dès 1440 px pour qu'il tienne */
.barre-haut nav a.menu-gestion { border: 1px solid var(--cuivre); }
@media (min-width: 701px) and (max-width: 1440px) {
  .barre-haut header:has(.menu-gestion) { flex-wrap: wrap; }
  .barre-haut header:has(.menu-gestion) nav { order: 3; flex-basis: 100%; flex-wrap: wrap; }
  .barre-haut header:has(.menu-gestion) .connexion, .barre-haut header:has(.menu-gestion) .deconnexion { margin-left: auto; }
}

/* Connecté : bouton Se déconnecter (petit formulaire POST vers /deconnexion), au style du bouton de compte */
.deconnexion { margin: 0; flex: none; }
.deconnexion button { font: inherit; font-size: 15px; font-weight: 600; border: 0; border-right: .5rem solid var(--cuivre); cursor: pointer; }
@media (max-width: 700px) {
  .barre-haut .deconnexion button { padding: 7px 10px; font-size: 0; gap: 0; border-right-width: .3rem; }
  .barre-haut .deconnexion svg { width: 18px; height: 18px; }
}
