/* Styles communs aux sites d'exemple. Chaque page définit sa palette via les variables --bg, --surface, --primary, --accent, --text. */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: "Inter", system-ui, sans-serif; line-height: 1.6; }
img { max-width: 100%; display: block; }
a { color: var(--accent); }
h1, h2, h3 { font-family: var(--title-font, "Bebas Neue"), sans-serif; font-weight: 400; letter-spacing: .03em; line-height: 1.05; margin: 0 0 .5em; }
h1 { font-size: clamp(2.8rem, 8vw, 5.5rem); }
h2 { font-size: clamp(2rem, 5vw, 3rem); }
h3 { font-size: 1.5rem; }
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 16px; }
.sec { padding: 72px 0; }
.sec-alt { background: var(--surface); }
.muted { opacity: .78; }

/* Bandeau "exemple" */
.demo-bar { background: #0b0a10; color: #cfc8dd; font-size: .85rem; text-align: center; padding: 8px 16px; }
.demo-bar a { color: #ff9a4d; font-weight: 600; }

/* Navigation */
.nav { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid color-mix(in srgb, var(--text) 10%, transparent); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 12px; }
.logo { font-family: var(--title-font, "Bebas Neue"), sans-serif; font-size: 1.7rem; color: var(--primary); text-decoration: none; letter-spacing: .04em; white-space: nowrap; }
.nav ul { list-style: none; display: flex; gap: 22px; margin: 0; padding: 0; }
.nav ul a { color: var(--text); text-decoration: none; font-weight: 500; opacity: .85; }
.nav ul a:hover { color: var(--primary); opacity: 1; }
@media (max-width: 760px) { .nav ul { display: none; } }

.btn { display: inline-block; padding: 13px 26px; border-radius: var(--btn-radius, 999px); background: var(--primary); color: var(--on-primary, #fff); font-weight: 700; text-decoration: none; border: 2px solid var(--primary); }
.btn:hover { filter: brightness(1.1); }
.btn-out { background: transparent; color: var(--text); border-color: color-mix(in srgb, var(--text) 50%, transparent); }

/* Hero avec photo */
.hero { position: relative; min-height: 78vh; display: flex; align-items: flex-end; padding: 0 0 72px; background: var(--hero-img) center / cover no-repeat; }
.hero::before { content: ""; position: absolute; inset: 0; background: var(--hero-overlay, linear-gradient(0deg, var(--bg) 0%, rgba(0,0,0,.35) 55%, rgba(0,0,0,.15) 100%)); }
.hero .wrap { position: relative; width: 100%; }
.hero .tag { display: inline-block; background: var(--accent); color: var(--on-accent, #111); font-weight: 700; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; padding: 5px 12px; border-radius: 4px; margin-bottom: 14px; }
.hero p { font-size: 1.2rem; max-width: 560px; text-shadow: 0 2px 12px rgba(0,0,0,.6); }
.hero h1 { text-shadow: 0 4px 24px rgba(0,0,0,.5); }
.hero .row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }

/* Grilles */
.grid { display: grid; gap: 20px; }
.g2 { grid-template-columns: 1fr 1fr; align-items: center; }
.g3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 760px) { .g2, .g3 { grid-template-columns: 1fr; } }
.photo { border-radius: 14px; overflow: hidden; aspect-ratio: 16 / 10; }
.photo img { width: 100%; height: 100%; object-fit: cover; }

/* Cartes produits / services */
.item { background: var(--card, var(--surface)); border-radius: 14px; padding: 22px; border-top: 4px solid var(--accent); }
.sec-alt .item { background: var(--bg); }
.item .price { font-family: var(--title-font, "Bebas Neue"), sans-serif; font-size: 2rem; color: var(--primary); }
.item h3 { margin-bottom: .2em; }
.item p { margin: 0; }

/* Infos pratiques */
.infos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 760px) { .infos { grid-template-columns: 1fr; } }
.info { padding: 20px; border-radius: 12px; border: 1px solid color-mix(in srgb, var(--text) 15%, transparent); }
.info strong { display: block; color: var(--accent); text-transform: uppercase; font-size: .8rem; letter-spacing: .08em; margin-bottom: 4px; }

/* Galerie */
.gallery { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 220px 220px; gap: 12px; }
.gallery div { border-radius: 12px; overflow: hidden; }
.gallery div:first-child { grid-row: span 2; }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 760px) { .gallery { grid-template-columns: 1fr; grid-template-rows: 220px 160px 160px; } .gallery div:first-child { grid-row: auto; } }

/* Recrutement / CTA */
.cta { text-align: center; padding: 56px 24px; border-radius: 18px; background: var(--cta-bg, var(--primary)); color: var(--on-primary, #fff); }
.cta .btn { background: var(--on-primary, #fff); color: var(--primary); border-color: var(--on-primary, #fff); }

footer { padding: 32px 0; text-align: center; font-size: .85rem; opacity: .7; }

/* Formulaire de candidature (envoi vers un webhook Discord) */
.apply { display: grid; gap: 10px; max-width: 520px; margin: 22px auto 0; text-align: left; }
.apply input, .apply select, .apply textarea { width: 100%; padding: 12px 14px; border-radius: 10px; border: 0; font: inherit; background: rgba(255,255,255,.95); color: #1a1a1a; }
.apply textarea { min-height: 90px; resize: vertical; }
.apply .btn { justify-self: center; }
