/* Site vitrine Borin'Old Cars — mêmes tons que l'application (papier beige, brun et or du logo, Georgia). */
:root {
  --bg: #e5decf;
  --surface: #f4efe5;
  --surface-2: #d8ceb9;
  --ink: #222222;
  --muted: #5c5244;
  --line: #cdc1a8;
  --dark: #2f2118;
  --dark-2: #3d2c20;
  --dark-ink: #f1e4cc;
  --brass: #8a6538;
  --gold: #d9bb8d;
  --btn-bg: #2f2118;
  --btn-ink: #f1e4cc;
  --rose: #d6457a;
  --shadow: 0 1px 2px rgba(47, 33, 24, .08), 0 6px 20px rgba(47, 33, 24, .12);
  --radius: 12px;
  --serif: Georgia, "Times New Roman", serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #18120d;
    --surface: #231a13;
    --surface-2: #2f241a;
    --ink: #efe6d6;
    --muted: #b3a48c;
    --line: #3c2f22;
    --dark: #0f0b08;
    --dark-2: #1d1610;
    --brass: #d9bb8d;
    --btn-bg: #d9bb8d;
    --btn-ink: #2f2118;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #18120d;
  --surface: #231a13;
  --surface-2: #2f241a;
  --ink: #efe6d6;
  --muted: #b3a48c;
  --line: #3c2f22;
  --dark: #0f0b08;
  --dark-2: #1d1610;
  --brass: #d9bb8d;
  --btn-bg: #d9bb8d;
  --btn-ink: #2f2118;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.6 var(--serif); overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 700px) { .wrap { padding: 0 28px; } }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.kicker { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; color: var(--brass); margin-bottom: .6em; font-weight: 700; }

/* Boutons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4em;
  padding: .75em 1.4em; border-radius: 999px; border: 2px solid var(--btn-bg);
  background: var(--btn-bg); color: var(--btn-ink); text-decoration: none; font-weight: 700;
  font-family: inherit; font-size: .95rem; cursor: pointer; transition: transform .15s, filter .15s;
}
.btn:hover { transform: translateY(-1px); filter: brightness(1.1); }
.btn.outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn.gold { background: var(--gold); border-color: var(--gold); color: #2f2118; }
.btn.ghost { background: transparent; border-color: var(--gold); color: var(--gold); }
.link { color: var(--brass); font-weight: 700; text-decoration: none; white-space: nowrap; }
.link:hover { text-decoration: underline; }

/* Navigation */
.nav { position: sticky; top: 0; z-index: 20; background: #2f2118; color: #f1e4cc; box-shadow: 0 2px 10px rgba(0, 0, 0, .25); }
.nav-in { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: .6em; text-decoration: none; font-weight: 700; font-size: 1.1rem; }
.brand img { width: 40px; height: auto; }
.nav nav { display: flex; gap: 1.4em; align-items: center; }
.nav nav a { text-decoration: none; font-size: .95rem; opacity: .9; }
.nav nav a:hover { opacity: 1; color: #d9bb8d; }
.nav .nav-cta { border: 1.5px solid #d9bb8d; color: #d9bb8d; padding: .35em 1em; border-radius: 999px; }
.menu-btn { display: none; background: none; border: 0; color: inherit; padding: 8px; cursor: pointer; }
.menu-btn svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
@media (max-width: 860px) {
  .menu-btn { display: block; }
  .nav nav {
    position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: #2f2118; padding: 8px 16px 16px; display: none; border-top: 1px solid rgba(255, 255, 255, .08);
  }
  .nav nav.open { display: flex; }
  .nav nav a { padding: .8em 0; border-bottom: 1px solid rgba(255, 255, 255, .08); }
  .nav .nav-cta { margin-top: 12px; text-align: center; border-bottom: 1.5px solid #d9bb8d; }
}

/* Hero */
.hero {
  background:
    radial-gradient(ellipse at 75% 40%, rgba(217, 187, 141, .22), transparent 60%),
    linear-gradient(160deg, #3d2c20 0%, #2f2118 55%, #1e140d 100%);
  color: #f1e4cc; padding: 56px 0 0; overflow: hidden;
}
.hero-in { display: grid; gap: 24px; align-items: center; }
@media (min-width: 900px) { .hero-in { grid-template-columns: 1.05fr 1fr; padding-bottom: 24px; } }
.hero .kicker { color: #d9bb8d; }
.hero h1 { font-size: clamp(2.6rem, 7vw, 4.6rem); letter-spacing: -.01em; margin-bottom: .15em; }
.slogan { font-style: italic; color: #d9bb8d; font-size: clamp(1.1rem, 2.4vw, 1.4rem); }
.lead { max-width: 34em; opacity: .9; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.4em; }
.hero-art { position: relative; }
/* Logo du club : flotte doucement, un reflet doré le traverse de temps en temps. */
.hero-logo {
  position: relative; width: min(100%, 480px); max-width: 100%; aspect-ratio: 378 / 333; margin: 0 auto;
  filter: drop-shadow(0 26px 26px rgba(0, 0, 0, .5));
  animation: logo-float 6s ease-in-out infinite;
}
.hero-logo img { width: 100%; height: 100%; }
.hero-logo .shine {
  position: absolute; inset: 0; pointer-events: none;
  -webkit-mask: url(logo-hero.webp) center / contain no-repeat; mask: url(logo-hero.webp) center / contain no-repeat;
  background: linear-gradient(110deg, transparent 35%, rgba(255, 244, 220, .55) 50%, transparent 65%) no-repeat;
  background-size: 300% 100%; background-position: 150% 0;
  animation: logo-shine 7s ease-in-out infinite 1s;
}
@media (min-width: 900px) { .hero-logo { margin-right: 0; } }
@keyframes logo-float {
  0%, 100% { transform: translateY(0) rotate(-1.5deg); }
  50% { transform: translateY(-14px) rotate(1.5deg); }
}
@keyframes logo-shine {
  0% { background-position: 150% 0; }
  35%, 100% { background-position: -50% 0; }
}
.stats {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; margin-top: 32px;
  background: rgba(217, 187, 141, .25); border-top: 1px solid rgba(217, 187, 141, .25);
}
@media (min-width: 700px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stats > div { background: #2a1d14; padding: 20px 12px; text-align: center; }
.stats strong { display: block; font-size: 2rem; color: #d9bb8d; line-height: 1.1; }
.stats span { font-size: .9rem; opacity: .85; }

/* Sections */
.section { padding: 72px 0; }
.section.alt { background: var(--surface); }
.section.dark { background: #2f2118; color: #f1e4cc; }
.section.dark .kicker, .section.dark .link { color: #d9bb8d; }
.head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.head h2 { margin: 0; }
.two { display: grid; gap: 40px; }
@media (min-width: 900px) { .two { grid-template-columns: 1fr 1fr; gap: 64px; } }
.sub { margin: 56px 0 20px; font-size: 1.3rem; }

.pillars { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.pillars li { display: flex; gap: 16px; background: var(--surface); padding: 18px; border-radius: var(--radius); box-shadow: var(--shadow); }
.pillars p { margin: .2em 0 0; color: var(--muted); font-size: .95rem; }
.ico { flex: none; width: 44px; height: 44px; border-radius: 50%; background: #2f2118; display: grid; place-items: center; }
.ico svg { width: 22px; height: 22px; fill: none; stroke: #d9bb8d; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.committee { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.member { background: var(--surface); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); border-top: 3px solid var(--gold); }
.member.has-photo { text-align: center; }
.member-photo { display: block; width: 110px; height: 110px; margin: 0 auto 12px; border-radius: 50%; object-fit: cover; background: var(--surface-2); box-shadow: 0 0 0 3px var(--gold); }
.member.has-photo .member-cars { justify-items: center; }
.member strong { display: block; font-size: 1.05rem; }
.member span { color: var(--brass); font-size: .9rem; }
.member-cars { list-style: none; margin: .6em 0 0; padding: .6em 0 0; border-top: 1px solid var(--line); display: grid; gap: .25em; }
.member-cars li { font-size: .88rem; font-style: italic; color: var(--muted); }
.member-cars a { color: inherit; text-decoration: none; }
.member-cars a:hover { color: var(--brass); text-decoration: underline; }

/* Agenda */
.events { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.event { background: var(--bg); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; position: relative; }
/* Miniature de l'affiche à droite, comme dans l'application. */
.event .top { display: flex; gap: 14px; align-items: flex-start; }
.event .info { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: .4em; }
.event .thumb { flex: none; width: 76px; aspect-ratio: 3 / 4; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); background: var(--surface-2); box-shadow: 0 2px 6px rgba(0, 0, 0, .12); }
.event .thumb img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 700px) { .event .thumb { width: 90px; } }
.event .body { padding: 18px; display: flex; flex-direction: column; gap: .4em; flex: 1; }
.event .date { display: inline-block; align-self: flex-start; background: #2f2118; color: #d9bb8d; font-weight: 700; padding: .25em .8em; border-radius: 6px; font-size: .88rem; }
.event h3 { margin: .2em 0 0; font-size: 1.25rem; }
.event .meta { color: var(--muted); font-size: .92rem; }
.event .desc { font-size: .95rem; margin: .3em 0 0; }
.event .price { font-weight: 700; color: var(--brass); font-size: .92rem; }
.event .actions { margin-top: auto; padding-top: .8em; display: flex; gap: 8px; flex-wrap: wrap; }
.event .actions .btn { padding: .55em 1.1em; font-size: .88rem; }
.event .rose { align-self: flex-start; background: var(--rose); color: #fff; font-size: .78rem; font-weight: 700; padding: .25em .7em; border-radius: 999px; }
.event.next { outline: 2px solid var(--gold); }

/* Garage */
.cars { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.car { background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); text-decoration: none; transition: transform .2s; }
.car:hover { transform: translateY(-3px); }
.car .ph { aspect-ratio: 4 / 3; display: grid; place-items: center; padding: 12px; background: radial-gradient(ellipse at 50% 70%, var(--surface-2), var(--surface) 70%); }
.car .ph img { width: 100%; height: 100%; min-height: 0; object-fit: contain; filter: drop-shadow(0 10px 10px rgba(0, 0, 0, .25)); }
.car .ph { overflow: hidden; }
.car .info { padding: 12px 16px 16px; }
.car strong { display: block; }
.car span { color: var(--muted); font-size: .88rem; }
.car .role { display: block; color: var(--brass); font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; margin-bottom: .2em; }
.more { text-align: center; margin-top: 28px; }

/* Albums */
.albums { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.album { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; text-decoration: none; color: #fff; background: #1e140d; display: block; }
.album img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.album:hover img { transform: scale(1.05); }
.album .cap { position: absolute; inset: auto 0 0 0; padding: 40px 16px 14px; background: linear-gradient(transparent, rgba(0, 0, 0, .8)); }
.album .cap strong { display: block; font-size: 1.1rem; }
.album .cap span { font-size: .85rem; opacity: .85; }

/* Boutique */
.shop { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.item { background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.item .ph { aspect-ratio: 1; background: #fff; display: grid; place-items: center; padding: 12px; }
.item .ph img { max-height: 100%; object-fit: contain; }
.item .info { padding: 12px 16px 16px; }
.item strong { display: block; }
.item .price { color: var(--brass); font-weight: 700; }
.item .sizes { display: block; color: var(--muted); font-size: .82rem; }
#shop-note { margin-top: 20px; }

/* Contact */
.contact-card { background: var(--bg); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.contact-card h3 { font-size: 1.2rem; }
.contact-card hr { border: 0; border-top: 1px solid var(--line); margin: 24px 0; }
.contact-card a[data-mail-text] { font-weight: 700; color: var(--brass); font-size: 1.1rem; word-break: break-all; }
.social { display: flex; gap: 10px; flex-wrap: wrap; }
.social a { display: inline-flex; align-items: center; gap: .5em; padding: .5em 1em; border-radius: 999px; border: 1.5px solid var(--line); text-decoration: none; font-size: .92rem; }
.social a:hover { border-color: var(--brass); }
.social svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.social svg .fill { fill: currentColor; stroke: none; }

/* Pied de page */
.footer { background: #1e140d; color: #f1e4cc; padding: 28px 0; font-size: .9rem; }
.foot-in { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; }
.footer p { margin: 0; opacity: .8; }
.footer a { color: #d9bb8d; text-decoration: none; }

/* Visionneuse */
.lightbox { position: fixed; inset: 0; z-index: 50; background: rgba(0, 0, 0, .92); display: grid; place-items: center; padding: 16px; }
.lightbox[hidden] { display: none; }
.lightbox img { max-height: 90vh; max-width: 100%; object-fit: contain; }
.lb-close { position: absolute; top: 12px; right: 16px; background: none; border: 0; color: #fff; font-size: 2.4rem; cursor: pointer; line-height: 1; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .car, .album img { transition: none; }
  .hero-logo, .hero-logo .shine { animation: none; }
}

/* Téléphone : deux colonnes pour le garage et la boutique. */
@media (max-width: 560px) {
  .section { padding: 56px 0; }
  .cars, .shop { grid-template-columns: 1fr 1fr; gap: 10px; }
  .car .info, .item .info { padding: 10px 12px 12px; font-size: .92rem; }
}

/* Pages internes (agenda complet, fiches, albums) */
.page { padding: 28px 0 72px; min-height: 70vh; }
.back { display: inline-block; color: var(--brass); font-weight: 700; text-decoration: none; margin-bottom: 18px; }
.back:hover { text-decoration: underline; }
.page-head { margin-bottom: 28px; }
.page-head h1 { font-size: clamp(1.9rem, 5vw, 2.8rem); text-wrap: balance; }
.list-title { font-size: 1.35rem; margin: 40px 0 18px; }
.wide { grid-column: 1 / -1; }
.empty { padding: 24px; background: var(--surface); border-radius: var(--radius); color: var(--muted); }
.more { grid-column: 1 / -1; text-align: center; margin-top: 12px; }
.event h3 a { text-decoration: none; }
.event h3 a:hover { text-decoration: underline; }
.event.past { opacity: .85; }
.event.past .date { background: var(--surface-2); color: var(--muted); }
.car-ico { width: 56px; height: 56px; fill: none; stroke: var(--muted); stroke-width: 1.4; opacity: .6; }

.search input {
  width: 100%; max-width: 520px; font: inherit; padding: .7em 1em; border-radius: 999px;
  border: 1.5px solid var(--line); background: var(--surface); color: var(--ink);
}
.search input:focus { outline: 2px solid var(--brass); outline-offset: 1px; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 14px 0 22px; scrollbar-width: none; }
.chip {
  flex: none; font: inherit; font-size: .9rem; padding: .4em 1em; border-radius: 999px; cursor: pointer;
  border: 1.5px solid var(--line); background: transparent; color: var(--ink);
}
.chip.on { background: var(--btn-bg); border-color: var(--btn-bg); color: var(--btn-ink); }

.detail { display: grid; gap: 28px; align-items: start; }
@media (min-width: 860px) { .detail { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 48px; } }
.detail-body { min-width: 0; }
.detail-body h1 { font-size: clamp(1.8rem, 4.5vw, 2.6rem); text-wrap: balance; margin-top: .3em; }
.detail-poster { padding: 0; border: 0; background: var(--surface-2); border-radius: var(--radius); overflow: hidden; cursor: zoom-in; box-shadow: var(--shadow); width: 100%; }
.detail-poster img { width: 100%; }
.pill { display: inline-block; font-size: .8rem; font-weight: 700; padding: .25em .8em; border-radius: 999px; background: var(--surface-2); color: var(--muted); margin-right: 6px; }
.rose-pill { background: var(--rose); color: #fff; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 10px 20px; margin: 20px 0; padding: 18px 20px; background: var(--surface); border-radius: var(--radius); }
.facts dt { color: var(--muted); font-size: .9rem; }
.facts dd { margin: 0; font-weight: 700; min-width: 0; }
.facts a { color: var(--brass); }
.story { max-width: 62ch; }
.detail .actions { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; margin: 8px 0 12px; }
.version { font-style: italic; color: var(--brass); font-size: 1.15rem; margin-top: -.3em; }
.car-hero { display: grid; place-items: center; aspect-ratio: 4 / 3; max-width: 100%; padding: 16px; border-radius: var(--radius); background: radial-gradient(ellipse at 50% 70%, var(--surface-2), var(--surface) 70%); }
.car-hero img { max-height: 100%; object-fit: contain; filter: drop-shadow(0 14px 14px rgba(0, 0, 0, .3)); }
.car-hero .car-ico { width: 96px; height: 96px; }

.mosaic { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; }
.mosaic button { padding: 0; border: 0; background: var(--surface-2); aspect-ratio: 1; overflow: hidden; border-radius: 6px; cursor: zoom-in; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 560px) { .mosaic { grid-template-columns: repeat(3, 1fr); gap: 4px; } }

.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(0, 0, 0, .4); color: #fff; border: 0; font-size: 2.4rem; width: 48px; height: 64px; cursor: pointer; border-radius: 8px; }
.lb-prev { left: 8px; }
.lb-next { right: 8px; }
.lb-count { position: absolute; bottom: 14px; left: 0; right: 0; text-align: center; color: #fff; font-size: .9rem; opacity: .8; }
body.noscroll { overflow: hidden; }
.foot-links { display: flex; gap: 20px; }
.btn:focus-visible, .chip:focus-visible, a:focus-visible, button:focus-visible { outline: 2px solid var(--brass); outline-offset: 2px; }
.address { font-style: normal; font-weight: 700; margin-bottom: 1.2em; }

/* Formulaire d'adhésion (Tally intégré) */
/* Le formulaire Tally reprend les couleurs du site (texte brun foncé, fond transparent) :
   il se pose directement sur le fond beige. En thème sombre, il garde un fond clair pour rester lisible. */
.tally-box { max-width: 760px; margin-bottom: 16px; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .tally-box { background: #e5decf; border-radius: var(--radius); padding: 16px 12px 4px; }
}
:root[data-theme="dark"] .tally-box { background: #e5decf; border-radius: var(--radius); padding: 16px 12px 4px; }
.tally-box iframe { display: block; width: 100%; border: 0; min-height: 400px; }
.page-head a:not(.btn) { color: var(--brass); }

/* Rappel des articles au-dessus du bon de commande */
.order-items { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 20px; max-width: 760px; }
.order-item { flex: none; width: 120px; background: var(--surface); border-radius: var(--radius); padding: 8px; text-align: center; font-size: .85rem; }
.order-item img { width: 100%; aspect-ratio: 1; object-fit: contain; background: #fff; border-radius: 6px; margin-bottom: 6px; }
.order-item span { display: block; line-height: 1.25; }
.order-item strong { color: var(--brass); }

/* Dessin de voiture d'un seul trait, au-dessus du sous-titre de l'accueil */
.hero-sketch { width: min(65%, 260px); height: auto; margin: 0 0 18px; opacity: .95; }

/* Road book (PDF Google Drive) */
.page-head .actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.pdf-box { max-width: 900px; height: min(80vh, 1100px); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--surface-2); margin-bottom: 12px; }
.pdf-box iframe { width: 100%; height: 100%; border: 0; display: block; }

/* Partenaires */
.sponsors { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; }
.sponsor { flex: 0 1 220px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; text-decoration: none; color: inherit; }
.sponsor img { width: 100%; max-width: 220px; aspect-ratio: 1; object-fit: contain; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 8px; transition: transform .2s; }
a.sponsor:hover img { transform: translateY(-3px); }
.sp-name { font-weight: 700; }
.sp-desc { color: var(--muted); font-size: .88rem; }
@media (max-width: 560px) { .sponsors { gap: 14px; } .sponsor { flex-basis: calc(50% - 7px); } }
