/* Style sobre, inspiré d'apple.com : beaucoup de blanc, grandes photos, typographie système */
:root {
  --fond: #f5f5f7; --carte: #fff; --texte: #1d1d1f; --doux: #6e6e73; --ligne: #d2d2d7;
  --accent: #0066cc; --vert: #1a7f37; --orange: #b25000; --gris: #86868b;
  --rayon: 18px; --max: 1120px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 17px/1.5 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif; color: var(--texte); background: var(--fond); }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
h1, h2, h3 { letter-spacing: -0.02em; line-height: 1.15; }

/* barre */
.barre { position: sticky; top: 0; z-index: 10; background: rgba(255,255,255,.85); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid var(--ligne); }
.barre-in { max-width: var(--max); margin: 0 auto; padding: 12px 20px; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.logo { font-weight: 600; color: var(--texte); font-size: 18px; }
.langues a { margin-left: 12px; font-size: 14px; color: var(--doux); }
.langues a[aria-current] { color: var(--texte); font-weight: 600; }
.cats { max-width: var(--max); margin: 0 auto; padding: 0 20px 10px; display: flex; gap: 18px; overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
.cats a { font-size: 13px; color: var(--doux); }
.cats a[aria-current] { color: var(--texte); font-weight: 600; }

main { max-width: var(--max); margin: 0 auto; padding: 0 20px 60px; }
.hero { text-align: center; padding: 64px 0 24px; }
.hero h1 { font-size: clamp(36px, 6vw, 56px); margin: 0 0 12px; }
.hero p { font-size: 21px; color: var(--doux); max-width: 720px; margin: 0 auto; }
.hero-petit { padding-top: 32px; }
.hero-petit h1 { font-size: clamp(30px, 5vw, 44px); }
.bloc { margin-top: 40px; }
.bloc h2 { font-size: 28px; }
.fil { font-size: 13px; color: var(--doux); margin: 20px 0 0; }

/* tuiles catégories */
.tuiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.tuile { background: var(--carte); border-radius: var(--rayon); padding: 22px; color: var(--texte); display: flex; flex-direction: column; gap: 4px; transition: transform .2s; }
.tuile:hover { transform: scale(1.02); text-decoration: none; }
.tuile span { color: var(--doux); font-size: 14px; }

/* cartes article */
.grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.carte { background: var(--carte); border-radius: var(--rayon); overflow: hidden; color: var(--texte); transition: transform .2s, box-shadow .2s; }
.carte:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(0,0,0,.08); text-decoration: none; }
.carte-img { position: relative; aspect-ratio: 4 / 3; background: #e8e8ed; }
.carte-img img { width: 100%; height: 100%; object-fit: cover; }
.carte-txt { padding: 14px 18px 18px; }
.carte-txt h3 { font-size: 17px; margin: 4px 0 6px; font-weight: 600; }
.carte .prix { margin: 0; font-weight: 600; }
.etat-vendu .carte-img img, .etat-donne .carte-img img { filter: grayscale(1); opacity: .6; }
.ref { font-size: 12px; color: var(--doux); letter-spacing: .04em; text-transform: uppercase; }
.badge { position: absolute; top: 12px; left: 12px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; color: #fff; }
.badge-option { background: var(--orange); }
.badge-vendu, .badge-donne { background: var(--gris); }

/* fiche */
.fiche-haut { display: grid; grid-template-columns: 1.4fr 1fr; gap: 36px; margin-top: 16px; align-items: start; }
@media (max-width: 860px) { .fiche-haut { grid-template-columns: 1fr; } }
.galerie-vue { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; border-radius: var(--rayon); background: var(--carte); scrollbar-width: thin; }
.galerie-vue a { flex: 0 0 100%; scroll-snap-align: start; }
.galerie-vue img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; background: #fff; }
.galerie-vignettes { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; }
.galerie-vignettes img { width: 76px; height: 57px; object-fit: cover; border-radius: 8px; opacity: .85; }
.galerie-vignettes a:hover img { opacity: 1; }
.resume h1 { font-size: clamp(28px, 4vw, 40px); margin: 6px 0 10px; }
.statut { display: inline-block; padding: 3px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; margin: 0 0 8px; }
.statut-disponible { background: #e3f4e8; color: var(--vert); }
.statut-option { background: #fdeedc; color: var(--orange); }
.statut-vendu, .statut-donne { background: #ececf0; color: var(--doux); }
.prix-grand { font-size: 28px; font-weight: 600; margin: 4px 0 14px; }
.lieu { color: var(--doux); }
.acheter { background: var(--carte); border-radius: var(--rayon); padding: 18px 20px; margin-top: 18px; }
.acheter h2 { font-size: 17px; margin: 0 0 6px; }
.acheter p { margin: 0; font-size: 15px; color: var(--doux); }
.texte { background: var(--carte); border-radius: var(--rayon); padding: 8px 28px 20px; margin-top: 24px; }
.texte h2 { font-size: 22px; margin: 22px 0 10px; }
.specs { width: 100%; border-collapse: collapse; font-size: 15px; }
.specs th, .specs td { text-align: left; padding: 10px 0; border-bottom: 1px solid var(--ligne); vertical-align: top; }
.specs th { width: 38%; color: var(--doux); font-weight: 500; padding-right: 16px; }
.docs { padding-left: 18px; }
.docs li { margin: 6px 0; }
.source { font-size: 12px; padding: 2px 8px; border-radius: 999px; background: #ececf0; color: var(--doux); margin-left: 6px; white-space: nowrap; }
.source-officiel { background: #e3f4e8; color: var(--vert); }
.source-forum { background: #fdeedc; color: var(--orange); }
.note { list-style: none; margin-left: -18px; color: var(--doux); font-size: 15px; }
.video { position: relative; aspect-ratio: 16 / 9; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: 12px; }

.pied { text-align: center; color: var(--doux); font-size: 13px; padding: 30px 20px 50px; border-top: 1px solid var(--ligne); }

/* page racine */
.racine { display: grid; place-items: center; min-height: 100vh; }
.choix-langue { text-align: center; }
.choix-langue h1 { font-size: 40px; }
.choix-langue h1 span { font-size: 22px; color: var(--doux); font-weight: 400; }
.choix-langue a { display: inline-block; margin: 8px; padding: 12px 26px; border-radius: 999px; background: var(--texte); color: #fff; }
