:root {
  --blue: #1f8fcc;
  --blue-dark: #1676aa;
  --sand: #d9b878;
  --text: #2f3640;
  --muted: #6c757d;
  --line: #e6e9ee;
  --bg-alt: #f5f7fa;
  --hero: #1d2b3a;
  --max: 1140px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: #fff; color: var(--text);
  font: 400 15px/1.6 "Montserrat", system-ui, sans-serif;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }

/* Barre de navigation */
.nav { position: sticky; top: 0; z-index: 20; background: #fff; box-shadow: 0 1px 8px rgba(0,0,0,.08); }
.nav-inner { max-width: var(--max); margin: 0 auto; padding: 0 16px; height: 68px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 10px; color: #12151c; }
.brand-mark { width: 46px; height: 46px; flex: none; }
.brand-name { display: flex; flex-direction: column; font-weight: 800; font-size: 20px; line-height: 1; letter-spacing: .01em; }
.brand-name small { font-size: 9.5px; font-weight: 600; letter-spacing: .55em; text-transform: uppercase; color: #5b6270; margin-top: 4px; }
.nav-links { display: flex; gap: 22px; }
.nav-links a { display: flex; align-items: center; gap: 6px; color: var(--text); font-size: 13px; font-weight: 500; text-transform: uppercase; }
.nav-links a:hover { color: var(--blue); }
.nav-links svg, .card-ico svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.nav-toggle { display: none; background: none; border: 0; font-size: 24px; color: var(--text); cursor: pointer; }

/* Bandeau */
.hero {
  position: relative; min-height: 420px; display: grid; place-items: center; text-align: center; color: #fff;
  background:
    linear-gradient(rgba(22, 34, 48, .72), rgba(22, 34, 48, .82)),
    url("img/belle-ile-relief.jpg") center 45% / cover fixed;
}
.hero::after {
  content: ""; position: absolute; left: 50%; bottom: -14px; transform: translateX(-50%);
  border: 14px solid transparent; border-top-color: #2a3644; border-bottom: 0;
}
.hero-inner { max-width: 680px; padding: 70px 16px; }
.hero h1 { margin: 0 0 18px; font-size: clamp(28px, 5vw, 44px); line-height: 1.2; font-weight: 700; text-transform: uppercase; }
.hero p { margin: 0 auto 28px; max-width: 520px; color: #d9e0e7; font-size: 16px; }
.btn {
  display: inline-block; background: var(--blue); color: #fff; padding: 12px 26px; border-radius: 4px;
  font-weight: 600; font-size: 14px; box-shadow: 0 4px 14px rgba(31,143,204,.35); transition: .2s;
}
.btn:hover { background: var(--blue-dark); transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--blue); border: 2px solid var(--blue); box-shadow: none; }
.btn-outline:hover { background: var(--blue); color: #fff; }

/* Sections */
.section { max-width: var(--max); margin: 0 auto; padding: 80px 16px; }
.section-alt { max-width: none; background: var(--bg-alt); }
.section-alt > * { max-width: var(--max); margin: 0 auto; }
.section-head { text-align: center; margin-bottom: 44px; }
.section-head h2 { margin: 0; font-size: 30px; font-weight: 400; text-transform: uppercase; color: #444; }
.section-head p { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.section-head::after { content: ""; display: block; width: 60px; height: 3px; background: var(--line); margin: 18px auto 0; border-radius: 2px; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.card { background: #fff; border-radius: 8px; padding: 28px 24px; box-shadow: 0 6px 24px rgba(30, 40, 60, .08); transition: .2s; }
.card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(30, 40, 60, .12); }
.card-ico {
  --c: var(--blue);
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 18px;
  color: var(--c); background: color-mix(in srgb, var(--c) 14%, #fff);
}
.card-ico svg { width: 20px; height: 20px; }
.card h3 { margin: 0 0 10px; font-size: 16px; font-weight: 700; color: #222; }
.card p { margin: 0; font-size: 13.5px; color: var(--muted); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split img { border-radius: 8px; box-shadow: 0 10px 30px rgba(30,40,60,.15); }
.h-left { margin: 0 0 12px; font-size: 30px; font-weight: 700; }
.muted { color: var(--muted); }
.small-title { margin: 28px 0 12px; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: #444; }
.roadmap { list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 8px; }
.roadmap li { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); }
.roadmap li::before { content: ""; width: 12px; height: 12px; border-radius: 50%; border: 2px solid #c8ced6; flex: none; }
.roadmap li.done { color: var(--text); }
.roadmap li.done::before { background: #2f9e5b; border-color: #2f9e5b; }
.roadmap li.current { color: var(--text); font-weight: 600; }
.roadmap li.current::before { background: var(--blue); border-color: var(--blue); box-shadow: 0 0 0 4px rgba(31,143,204,.2); }
.roadmap li.current::after { content: "en cours"; font-size: 11px; color: var(--blue); text-transform: uppercase; letter-spacing: .06em; }

/* Pied de page */
.footer { background: #eef1f5; color: var(--muted); font-size: 13px; }
.footer-inner { max-width: var(--max); margin: 0 auto; padding: 50px 16px 36px; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.footer-brand p { margin: 14px 0 0; max-width: 300px; }
.footer h4 { margin: 4px 0 12px; font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--blue-dark); }
.footer-inner > div > a:not(.brand) { display: block; color: var(--text); margin-bottom: 6px; }
.footer-inner a:hover { color: var(--blue); }
.footer-bottom { border-top: 1px solid #dde2e8; max-width: var(--max); margin: 0 auto; padding: 18px 16px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px);
  background: #2f3640; color: #fff; padding: 10px 16px; border-radius: 4px;
  opacity: 0; pointer-events: none; transition: .25s; max-width: calc(100% - 32px);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Pages de compte (connexion, inscription, profil) */
.page-compte { background: linear-gradient(rgba(18,21,28,.82), rgba(18,21,28,.92)), url("img/belle-ile-relief.jpg") center / cover fixed; min-height: 100vh; }
.auth { display: grid; place-items: center; padding: 48px 16px; min-height: calc(100vh - 68px); }
.auth-card { width: 100%; max-width: 420px; background: #fff; border-radius: 12px; padding: 32px 28px; box-shadow: 0 20px 60px rgba(0,0,0,.35); display: grid; gap: 16px; }
.auth-logo { width: 72px; margin: 0 auto; }
.auth-titre { margin: 0; font-size: 22px; text-align: center; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; background: var(--bg-alt); border-radius: 8px; padding: 4px; }
.auth-tabs button { border: 0; background: none; padding: 10px; border-radius: 6px; font: 600 14px "Montserrat", sans-serif; color: var(--muted); cursor: pointer; }
.auth-tabs button.on { background: #fff; color: #12151c; box-shadow: 0 1px 4px rgba(0,0,0,.1); }
.auth-form { display: grid; gap: 12px; }
.auth-form[hidden] { display: none; }
.auth-form label { display: grid; gap: 5px; font-size: 13px; font-weight: 600; color: #444; }
.auth-form input[type=text], .auth-form input[type=email], .auth-form input[type=password], .auth-form input[type=url] {
  font: 400 15px "Montserrat", sans-serif; padding: 11px 12px; border: 1px solid #d5dae2; border-radius: 6px; width: 100%;
}
.auth-form input:focus { outline: 2px solid var(--blue); outline-offset: 1px; border-color: transparent; }
.auth-form .check { display: flex; gap: 8px; align-items: flex-start; font-weight: 500; }
.auth-form .btn, .btn.large { width: 100%; text-align: center; border: 0; cursor: pointer; font-family: inherit; }
.btn-outline.large { padding: 10px; }
.lien { background: none; border: 0; color: var(--blue); font: 500 13px "Montserrat", sans-serif; cursor: pointer; justify-self: center; }
.btn-discord { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; border: 0; border-radius: 6px; padding: 12px; background: #5865f2; color: #fff; font: 700 14px "Montserrat", sans-serif; cursor: pointer; }
.btn-discord:hover { background: #4752c4; }
.btn-discord svg { width: 22px; height: 22px; }
.auth-sep { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 12px; }
.auth-sep::before, .auth-sep::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.auth-msg { margin: 0; padding: 10px 12px; border-radius: 6px; background: #fdecec; color: #a3242c; font-size: 13px; }
.auth-msg.ok { background: #e8f6ee; color: #1f7a45; }
.petit { margin: 0; font-size: 12px; color: var(--muted); }
.centre { text-align: center; }
.check-regles { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; font-weight: 500; color: #444; }
.profil-tete { display: flex; align-items: center; gap: 14px; }
.profil-tete .auth-titre { text-align: left; }
.avatar-xl { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: #1660aa center / cover; color: #fff; font-weight: 800; font-size: 26px; flex: none; }
.role { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; padding: 2px 8px; border-radius: 3px; background: #e7eefa; color: #1660aa; }
.role[data-role="staff"] { background: #fbf1dc; color: #9a6a10; }
.role[data-role="admin"] { background: #fde7e8; color: #c5202b; }

/* Mobile */
@media (max-width: 900px) {
  .cards { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none; position: absolute; top: 68px; left: 0; right: 0; background: #fff;
    flex-direction: column; gap: 0; box-shadow: 0 8px 16px rgba(0,0,0,.08);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 14px 16px; border-top: 1px solid var(--line); }
  .hero { background-attachment: scroll; min-height: 360px; }
  .section { padding: 56px 16px; }
}
@media (max-width: 560px) {
  .cards { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
}
