:root {
  --bg: #0d0b14;
  --bg-2: #15121f;
  --card: #1b1727;
  --line: #2c2640;
  --text: #ece9f4;
  --muted: #a49dba;
  --accent: #c026d3;
  --accent-2: #8b5cf6;
  --grad: linear-gradient(135deg, #8b5cf6 0%, #c026d3 55%, #ec4899 100%);
  --radius: 14px;
  --wrap: 1180px;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
img { max-width: 100%; height: auto; display: block; }
a { color: #e7a8f3; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #fff; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.01em; margin: 0 0 .6em; }
h1 { font-size: clamp(1.8rem, 4vw, 2.9rem); font-weight: 750; }
h2 { font-size: 1.35rem; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 700px) { .wrap { padding: 0 28px; } }

/* header */
.site-header { position: sticky; top: 0; z-index: 10; background: rgba(13, 11, 20, .88); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 62px; flex-wrap: wrap; }
.brand { display: flex; align-items: baseline; gap: .45em; color: var(--text); text-decoration: none; font-weight: 800; letter-spacing: .04em; }
.brand-name { font-size: 1.02rem; }
.brand-sep { color: var(--accent); }
.brand-sub { font-weight: 500; color: var(--muted); letter-spacing: .02em; }
.top-nav { display: flex; align-items: center; gap: 4px 16px; flex-wrap: wrap; font-size: .95rem; }
.top-nav a { color: var(--muted); text-decoration: none; }
.top-nav a:hover { color: var(--text); }
.top-nav .btn-www { color: #fff; padding: 6px 14px; border-radius: 999px; background: var(--grad); }
@media (max-width: 560px) { .top-nav a:not(.btn-www) { display: none; } .brand-sub { display: none; } }

/* breadcrumb */
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 18px 0 0; margin: 0; font-size: .88rem; color: var(--muted); }
.crumbs li + li::before { content: "›"; margin-right: 6px; color: var(--line); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--text); }

/* page head */
.kicker { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #e879f9; margin: 0 0 .7em; }
.page-head { padding-top: 26px; padding-bottom: 6px; }
.page-head h1 { max-width: 22ch; max-width: 900px; }
.intro-grid { display: grid; gap: 28px; grid-template-columns: 1fr; margin-bottom: 40px; }
@media (min-width: 960px) { .intro-grid { grid-template-columns: minmax(0, 1fr) 320px; align-items: start; } }
.prose p { margin: 0 0 1.05em; color: #d9d4e6; max-width: 72ch; }
.side-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
@media (min-width: 960px) { .side-card { position: sticky; top: 84px; } }
.side-card h2 { font-size: 1rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.link-list { list-style: none; padding: 0; margin: 0 0 18px; }
.link-list li { padding: 8px 0; border-bottom: 1px solid var(--line); }
.link-list li:last-child { border-bottom: 0; }
.link-list a { text-decoration: none; color: var(--text); }
.link-list a::after { content: " →"; color: var(--accent); }
.link-list a:hover { color: #f0abfc; }

/* buttons */
.btn-cta, .btn-ghost { display: inline-block; padding: 11px 20px; border-radius: 999px; font-weight: 650; text-decoration: none; font-size: .98rem; }
.btn-cta { background: var(--grad); color: #fff; box-shadow: 0 6px 24px rgba(192, 38, 211, .28); }
.btn-cta:hover { color: #fff; filter: brightness(1.08); }
.btn-ghost { border: 1px solid var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); color: #fff; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* gallery (CSS columns : aucune dépendance JS) */
.sec-title { display: flex; align-items: baseline; gap: 12px; font-size: 1.3rem; margin: 10px 0 18px; }
.sec-title span { font-size: .85rem; font-weight: 500; color: var(--muted); }
.gallery { columns: 1; column-gap: 14px; }
@media (min-width: 640px) { .gallery { columns: 2; } }
@media (min-width: 1100px) { .gallery { columns: 3; } }
.g-item { break-inside: avoid; margin: 0 0 14px; background: var(--card); border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
.g-item a { display: block; }
.g-item img { width: 100%; transition: opacity .2s; }
.g-item a:hover img { opacity: .9; }
.g-item figcaption { padding: 9px 12px 11px; font-size: .86rem; color: var(--muted); }

/* cards */
.cards { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--text); transition: border-color .2s, transform .2s; }
.card:hover { border-color: var(--accent); transform: translateY(-2px); color: var(--text); }
.card-img { aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg-2); }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-body { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px 16px; }
.card-body .kicker { margin: 0; font-size: .7rem; }
.card-title { font-weight: 650; line-height: 1.3; }
.card-count { font-size: .85rem; color: var(--muted); }
.more { margin-top: 56px; }

/* hero (accueil) */
.hero { display: grid; gap: 28px; padding-top: 36px; padding-bottom: 26px; align-items: center; }
@media (min-width: 960px) { .hero { grid-template-columns: 1fr 1.1fr; padding-top: 56px; } }
.hero h1 { font-size: clamp(2rem, 5vw, 3.4rem); background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 1.12rem; color: #d9d4e6; }
.hero-img { margin: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.hero-img figcaption { padding: 8px 12px; font-size: .85rem; color: var(--muted); background: var(--card); }
.home-intro { margin-bottom: 30px; }
.about-img { margin-top: 0; margin-bottom: 0; }
.about-img img { border-radius: var(--radius); }

/* CTA */
.cta { margin-top: 56px; margin-bottom: 56px; display: grid; gap: 18px; padding-top: 28px; padding-bottom: 28px; border-radius: var(--radius); background: radial-gradient(120% 140% at 0% 0%, rgba(139, 92, 246, .22), transparent 60%), radial-gradient(120% 140% at 100% 100%, rgba(192, 38, 211, .22), transparent 60%), var(--bg-2); border: 1px solid var(--line); }
@media (min-width: 860px) { .cta { grid-template-columns: 1fr auto; align-items: center; padding: 34px 40px; } }
.cta p { margin: 0; color: #d9d4e6; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* footer */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-2); color: var(--muted); font-size: .92rem; padding: 34px 0; }
.footer-inner { display: grid; gap: 18px; }
@media (min-width: 760px) { .footer-inner { grid-template-columns: 1fr 1fr; } }
.site-footer p { margin: 0 0 .5em; }
.site-footer a { color: var(--text); }
.foot-brand { color: var(--text); font-weight: 800; letter-spacing: .05em; }
.small { font-size: .82rem; }

.notfound { padding-top: 60px; padding-bottom: 60px; min-height: 50vh; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
