/* Site de présentation Trideal : bandeau jaune en haut, tuiles sombres en dessous (maquette docs/design/site-accueil.png). */

:root {
  --yellow: #ffd23f;
  --on-yellow: #15202b;
  --on-yellow-soft: #2b3440;
  --bg: #0b1117;
  --tile: #141d26;
  --line: #22303c;
  --ink: #e8eef3;
  --ink2: #c9d3dc;
  --muted: #93a1ae;
  --new: #8fa8ff;
  --used: #4dc9a8;
  --local: #f29e68;
}

* { box-sizing: border-box; }
html { font-size: 16px; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: "Segoe UI", system-ui, -apple-system, Roboto, sans-serif; line-height: 1.5; }
img { max-width: 100%; }
a { color: var(--ink); }
a:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 10px; }
.hero a:focus-visible { outline-color: var(--on-yellow); }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 28px; }
.skip { position: absolute; left: -9999px; top: 12px; z-index: 10; background: var(--yellow); color: var(--on-yellow); font-weight: 800; padding: 12px 16px; border-radius: 12px; }
.skip:focus { left: 16px; }

/* En-tête (sur le bandeau jaune à l'accueil, sur fond sombre ailleurs) */
header.site { display: flex; align-items: center; gap: 18px; padding: 18px 0; font-weight: 800; font-size: 15px; }
header.site nav { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
header.site nav a { text-decoration: none; padding: 12px 8px; min-height: 44px; display: inline-flex; align-items: center; }
header.site nav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--yellow); }
.brand { display: flex; gap: 10px; align-items: center; font-size: 20px; font-weight: 900; margin-right: auto; text-decoration: none; min-height: 44px; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
header.site .lang { border: 2px solid currentColor; border-radius: 999px; padding: 6px 14px; }

/* Bandeau jaune de l'accueil */
.hero { background: var(--yellow); color: var(--on-yellow); border-radius: 0 0 44px 44px; }
.hero a { color: var(--on-yellow); }
.hero .brand img { box-shadow: 0 0 0 2px var(--on-yellow); }
.hero-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; align-items: end; gap: 30px; padding-top: 22px; }
.status { display: inline-block; font-size: 14px; font-weight: 900; background: var(--on-yellow); color: var(--yellow); border-radius: 999px; padding: 6px 14px; }
h1 { font-size: 64px; line-height: 0.98; letter-spacing: -2px; margin: 18px 0 16px; font-weight: 900; }
.lead { font-size: 19px; margin: 0 0 22px; max-width: 30em; color: var(--on-yellow-soft); }
.fake-search { display: flex; align-items: center; gap: 12px; max-width: 540px; background: var(--on-yellow); color: var(--muted); border-radius: 18px; padding: 8px 8px 8px 18px; font-size: 17px; margin-bottom: 18px; }
.fake-search span { flex: 1; min-width: 0; }
.fake-search b { background: var(--yellow); color: var(--on-yellow); border-radius: 12px; padding: 11px 16px; font-size: 15px; white-space: nowrap; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; padding-bottom: 40px; }
.btn { display: inline-flex; align-items: center; min-height: 48px; border-radius: 16px; padding: 0 22px; font-weight: 900; text-decoration: none; }
.hero .btn-dark { background: var(--on-yellow); color: var(--yellow); }
.hero .btn-line { border: 2px solid var(--on-yellow); }
.phone { justify-self: center; width: 270px; height: 430px; overflow: hidden; border-radius: 36px 36px 0 0; border: 9px solid var(--on-yellow); border-bottom: 0; background: var(--bg); }
.phone img { width: 100%; height: auto; display: block; }

/* Tuiles « Bento » */
h2 { font-size: 32px; letter-spacing: -0.5px; margin: 44px 0 6px; }
.sub { color: var(--ink2); margin: 0 0 20px; font-size: 17px; }
.bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 160px; gap: 14px; }
.tile { background: var(--tile); border: 1px solid var(--line); border-radius: 22px; padding: 20px; overflow: hidden; }
.tile h3 { margin: 0 0 6px; font-size: 19px; }
.tile p { margin: 0; color: var(--ink2); }
.tile-big { grid-column: span 2; grid-row: span 2; display: flex; gap: 18px; }
.tile-big img { width: 175px; height: auto; border-radius: 22px; border: 6px solid var(--bg); align-self: flex-end; margin-bottom: -50px; }
.tile-wide { grid-column: span 2; }
.num { font-size: 46px; font-weight: 900; color: var(--yellow); line-height: 1; margin-bottom: 6px; }
.tabs { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.tabs span { border-radius: 999px; padding: 6px 12px; font-weight: 800; font-size: 14px; color: var(--bg); }
.tab-new { background: var(--new); }
.tab-used { background: var(--used); }
.tab-local { background: var(--local); }
.tile-yellow { background: var(--yellow); border-color: var(--yellow); color: var(--on-yellow); }
.tile-yellow p { color: var(--on-yellow-soft); }
.tile a { color: inherit; font-weight: 800; }

/* Pages de texte (confidentialité, mentions légales, page introuvable) */
.page-head { border-bottom: 1px solid var(--line); }
header.site.dark a { color: var(--ink); }
/* Colonne de texte alignée sur le logo ; seules les marges du haut et du bas, pour garder celles de .wrap */
.prose { padding-top: 20px; padding-bottom: 10px; }
.prose > * { max-width: 68ch; }
.prose h1 { font-size: 44px; line-height: 1.05; letter-spacing: -1px; }
.prose h2 { font-size: 24px; margin: 32px 0 8px; }
.prose p, .prose li { color: var(--ink2); }
.prose a { color: var(--yellow); }
.updated { color: var(--muted); }

/* Pied de page */
footer.site { border-top: 1px solid var(--line); margin-top: 34px; padding-top: 22px; padding-bottom: 36px; display: flex; gap: 8px 20px; flex-wrap: wrap; color: var(--muted); font-size: 15px; }
footer.site a { color: var(--ink2); display: inline-flex; align-items: center; min-height: 44px; }
footer.site span { display: inline-flex; align-items: center; min-height: 44px; }

@media (max-width: 760px) {
  .wrap { padding: 0 16px; }
  header.site nav a:not(.lang) { display: none; }
  .hero { border-radius: 0 0 32px 32px; }
  .hero-grid { grid-template-columns: 1fr; gap: 10px; }
  h1 { font-size: 40px; }
  .prose h1 { font-size: 34px; }
  .lead { font-size: 17px; }
  .fake-search { font-size: 15px; }
  .actions { padding-bottom: 8px; }
  .phone { width: 230px; height: 330px; }
  h2 { font-size: 26px; }
  .bento { grid-template-columns: 1fr 1fr; grid-auto-rows: auto; }
  .tile-big, .tile-wide { grid-column: span 2; }
  .tile-big { grid-row: auto; }
  .tile-big img { width: 140px; margin-bottom: -40px; }
}

@media (max-width: 360px) {
  .fake-search { flex-wrap: wrap; }
  .fake-search b { margin-left: auto; }
}
