/* ============================================================
   KickOff Coach — Styles globaux
   Palette « néon vert » (cf. public/img/brand/README.md)
   Mobile-first absolu (touch ≥ 44px, lisible au soleil)
   ============================================================ */

:root {
  /* Palette néon */
  --bg:         #F7F2E7;  /* Crème (kit) */
  --surface:    #FFFFFF;
  --ink:        #0F172A;  /* Texte sombre (kit) */
  --ink-soft:   #475569;
  --ink-muted:  #94A3B8;
  --pitch:      #00C853;  /* Vert principal (texte « Off » du logo) — CTAs */
  --pitch-2:    #00A341;  /* Vert hover */
  --neon:       #00E676;  /* Vert néon (accent éclair) */
  --neon-soft:  #8CFFBC;  /* Vert néon clair (gradient) */
  --neon-border:#2BFF88;  /* Bordure néon */
  --field-dark: #06160E;  /* Fond « terrain » sombre (kit) */
  --field-dark-2: #0B2B1A;
  --line:       #FFFFFF;  /* Blanc des lignes de terrain */
  --accent:     #00E676;  /* Accent = néon (remplace l'orange) */
  --warn:       #E0A03B;
  --error:      #B33A3A;
  --ok:         #00C853;

  /* Géométrie */
  --radius:    12px;
  --radius-lg: 18px;
  --shadow-sm: 0 1px 2px rgba(10,15,13,.06);
  --shadow:    0 4px 12px rgba(10,15,13,.08);
  --shadow-lg: 0 12px 32px rgba(10,15,13,.12);

  /* Typo */
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Espacements */
  --tap: 44px;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  font-size: 16px;
  min-height: 100vh;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 .5em;
  color: var(--ink);
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2rem, 6vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 4.4vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 3vw, 1.6rem); }

p { margin: 0 0 1em; color: var(--ink-soft); }
a { color: var(--pitch); text-decoration: none; }
a:hover { color: var(--pitch-2); }

img { max-width: 100%; height: auto; display: block; }

/* ============================================================
   Layout
   ============================================================ */

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

section { padding: 4rem 0; }
@media (max-width: 640px) { section { padding: 2.5rem 0; } }

/* ============================================================
   Header
   ============================================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 242, 231, .92);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid rgba(10,15,13,.06);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  padding-top: .5rem;
  padding-bottom: .5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--ink);
  text-decoration: none;
}

.brand-logo {
  height: 38px;
  width: auto;
  display: block;
}
@media (max-width: 480px) {
  .brand-logo { height: 32px; }
}

.nav-links {
  display: none;
  gap: 1.5rem;
  font-size: .95rem;
}
.nav-links a {
  color: var(--ink-soft);
  font-weight: 500;
}
.nav-links a:hover { color: var(--ink); }

@media (min-width: 768px) {
  .nav-links { display: inline-flex; }
}

/* ============================================================
   Boutons
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: var(--tap);
  padding: .75rem 1.25rem;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  background: var(--ink);
  color: var(--bg);
  transition: transform .12s ease, filter .15s ease, box-shadow .15s ease;
  box-shadow: var(--shadow-sm);
  white-space: nowrap;
}
.btn:hover { filter: brightness(0.92); }
.btn:active { transform: scale(0.98); }

.btn-primary {
  background: var(--pitch);
  color: var(--line);
  border-color: var(--pitch);
}
.btn-primary:hover { background: var(--pitch-2); border-color: var(--pitch-2); }

.btn-accent {
  background: linear-gradient(135deg, var(--neon), var(--pitch));
  color: var(--field-dark);
  border-color: var(--pitch);
  font-weight: 700;
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: rgba(10,15,13,.18);
}
.btn-ghost:hover { background: rgba(10,15,13,.04); }

.btn-block { width: 100%; }

/* ============================================================
   Hero
   ============================================================ */

.hero {
  padding: 5rem 0 3.5rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  /* Halo néon en filigrane (subtil) */
  content: "";
  position: absolute;
  inset: -10% -10% auto -10%;
  height: 320px;
  background:
    radial-gradient(circle at 50% 60%, rgba(0,230,118,.10), transparent 60%),
    linear-gradient(180deg, rgba(0,200,83,.05) 0%, transparent 100%);
  z-index: 0;
}

.hero .container { position: relative; z-index: 1; }

.eyebrow {
  display: inline-block;
  padding: .35rem .8rem;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(0,230,118,.18), rgba(140,255,188,.18));
  color: var(--pitch-2);
  border: 1px solid rgba(43,255,136,.35);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}

.hero-title {
  max-width: 800px;
  margin-bottom: 1rem;
}

.hero-sub {
  max-width: 640px;
  font-size: 1.125rem;
  color: var(--ink-soft);
  margin-bottom: 2rem;
}

.hero-cta {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
}

.hero-foot {
  margin-top: 2rem;
  font-size: .85rem;
  color: var(--ink-muted);
  display: inline-flex;
  align-items: center;
  gap: .5rem;
}

/* ============================================================
   Cards / grilles
   ============================================================ */

.section-head {
  text-align: center;
  margin-bottom: 2.5rem;
}
.section-head h2 { margin-bottom: .5rem; }
.section-head p { color: var(--ink-soft); }

.grid {
  display: grid;
  gap: 1rem;
}
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr; }

@media (min-width: 640px) {
  .grid { gap: 1.25rem; }
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

.card {
  background: var(--surface);
  border: 1px solid rgba(10,15,13,.06);
  border-radius: var(--radius-lg);
  padding: 1.4rem;
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }

.card-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(0,230,118,.15), rgba(140,255,188,.18));
  color: var(--pitch-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: .8rem;
  border: 1px solid rgba(43,255,136,.25);
}
.card h3 { font-size: 1.15rem; margin-bottom: .4rem; }
.card p { font-size: .95rem; margin: 0; }

/* ============================================================
   Roles grid (4 publics)
   ============================================================ */

.roles {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 2rem 1.4rem;
  box-shadow: var(--shadow);
  border: 1px solid rgba(10,15,13,.06);
}
.role-item h4 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  margin: 0 0 .25rem;
  color: var(--ink);
}
.role-item .role-tag {
  display: inline-block;
  font-size: .7rem;
  padding: .2rem .55rem;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(0,230,118,.18), rgba(140,255,188,.18));
  color: var(--pitch-2);
  border: 1px solid rgba(43,255,136,.3);
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: .4rem;
}
.role-item p { font-size: .92rem; margin: 0; }

/* ============================================================
   CTA / Footer
   ============================================================ */

.cta-band {
  background: linear-gradient(135deg, var(--field-dark) 0%, var(--field-dark-2) 100%);
  color: var(--line);
  border-radius: var(--radius-lg);
  padding: 3rem 1.4rem;
  text-align: center;
  box-shadow: var(--shadow);
  border: 1px solid rgba(43,255,136,.2);
  position: relative;
  overflow: hidden;
}
.cta-band::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(0,230,118,.18), transparent 50%);
  pointer-events: none;
}
.cta-band > * { position: relative; z-index: 1; }
.cta-band .btn-accent {
  background: linear-gradient(135deg, #00E676, #00C853);
  color: #06160E;
  font-weight: 700;
}
.cta-band h2 { color: var(--line); }
.cta-band p { color: rgba(255,255,255,.85); margin-bottom: 1.5rem; }
.cta-band .btn-accent { box-shadow: var(--shadow-lg); }

.site-footer {
  padding: 2.5rem 0;
  font-size: .9rem;
  color: var(--ink-muted);
  text-align: center;
  border-top: 1px solid rgba(10,15,13,.06);
}
.site-footer a { color: var(--ink-soft); }

/* ============================================================
   Forms
   ============================================================ */

.field {
  display: block;
  margin-bottom: 1rem;
}
.field label {
  display: block;
  font-size: .75rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  font-weight: 600;
  margin-bottom: .4rem;
}
.input, .select, .textarea {
  display: block;
  width: 100%;
  min-height: var(--tap);
  padding: .65rem .9rem;
  border: 1px solid rgba(10,15,13,.15);
  border-radius: var(--radius);
  font: inherit;
  background: #fff;
  color: var(--ink);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--neon);
  box-shadow: 0 0 0 3px rgba(0,230,118,.20);
}

/* ============================================================
   Toast
   ============================================================ */

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(env(safe-area-inset-bottom, 0) + 1.2rem);
  transform: translateX(-50%);
  background: var(--ink);
  color: var(--bg);
  padding: .9rem 1.2rem;
  border-radius: var(--radius);
  font-size: .95rem;
  font-weight: 500;
  z-index: 9999;
  box-shadow: var(--shadow-lg);
  max-width: 92vw;
  text-align: center;
  animation: toastIn .25s ease both;
}
@keyframes toastIn {
  from { opacity: 0; transform: translate(-50%, 12px); }
  to   { opacity: 1; transform: translate(-50%, 0); }
}

/* ============================================================
   App shell (post-login placeholders)
   ============================================================ */

.app-shell {
  padding: 1.5rem 1.25rem calc(env(safe-area-inset-bottom, 0) + 5rem);
  max-width: 720px;
  margin: 0 auto;
}
.app-shell .role-badge {
  display: inline-block;
  font-size: .72rem;
  padding: .25rem .6rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.app-shell .placeholder {
  background: var(--surface);
  border: 1px dashed rgba(10,15,13,.18);
  border-radius: var(--radius-lg);
  padding: 2rem 1.4rem;
  text-align: center;
  color: var(--ink-soft);
}
.app-shell .placeholder h2 { margin-top: 0; }

/* ============================================================
   Accessibilité — focus visible clavier
   ============================================================ */

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}
