/* ───────────────────────────────────────────────────────────────────────────
   SLA Valloire — feuille de styles partagée de l'espace dynamique.
   Reprend le design system des pages statiques (palette, polices, navbar,
   footer, boutons) + composants de formulaire. Responsive d'emblée.
   ─────────────────────────────────────────────────────────────────────────── */
* { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --sla-pink: #D4226E;
  --sla-pink-light: #F5C0D8;
  --sla-blue: #5B8FA8;
  --sla-blue-dark: #2D5F78;
  --sla-yellow: #F5C400;
  --sla-gray: #F2F4F6;
  --sla-dark: #1A2535;
}
body { font-family: 'Nunito', sans-serif; background: #F5F7FA; color: var(--sla-dark); display: flex; flex-direction: column; min-height: 100vh; }
a { text-decoration: none; }

/* ── NAVBAR ── */
.navbar { background: var(--sla-dark); padding: 0 2rem; display: flex; align-items: center; justify-content: space-between; height: 64px; position: sticky; top: 0; z-index: 200; }
.navbar-brand { display: flex; align-items: center; gap: 12px; }
.brand-text { font-family: 'Barlow Condensed', sans-serif; font-weight: 900; font-size: 20px; color: white; letter-spacing: 0.5px; line-height: 1.1; }
.brand-sub { font-size: 11px; color: var(--sla-pink-light); font-weight: 400; letter-spacing: 1px; text-transform: uppercase; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-link { padding: 8px 14px; border-radius: 6px; font-size: 13px; font-weight: 600; color: rgba(255,255,255,0.7); transition: all 0.18s; background: none; border: none; font-family: 'Nunito', sans-serif; cursor: pointer; }
.nav-link:hover { color: white; background: rgba(255,255,255,0.08); }
.nav-link.active { color: white; background: var(--sla-pink); }
.nav-link.gold { color: var(--sla-yellow); }
.nav-link.gold:hover { background: rgba(245,196,0,0.12); }
.nav-sep { width: 1px; height: 24px; background: rgba(255,255,255,0.15); margin: 0 6px; }
.nav-burger { display: none; background: none; border: none; cursor: pointer; color: white; font-size: 22px; line-height: 1; padding: 4px 8px; align-items: center; }
.nav-burger::before { content: "\2630"; }
.navbar.open .nav-burger::before { content: "\2715"; }

/* Menu déroulant de navigation (sans JS : survol / focus) */
.nav-dropdown { position: relative; }
.nav-dropdown-btn { padding: 8px 14px; border-radius: 6px; font-size: 13px; font-weight: 600; cursor: pointer; color: rgba(255,255,255,0.7); transition: all 0.18s; border: none; background: none; font-family: 'Nunito', sans-serif; display: flex; align-items: center; gap: 6px; }
.nav-dropdown:hover .nav-dropdown-btn, .nav-dropdown:focus-within .nav-dropdown-btn { color: white; background: rgba(255,255,255,0.08); }
.nav-dropdown-btn .chevron { font-size: 10px; transition: transform 0.2s; }
.nav-dropdown:hover .chevron, .nav-dropdown:focus-within .chevron { transform: rotate(180deg); }
.dropdown-menu { display: none; position: absolute; top: calc(100% + 8px); left: 0; background: #243040; border-radius: 10px; min-width: 200px; padding: 6px; box-shadow: 0 8px 24px rgba(0,0,0,0.3); z-index: 300; }
.nav-dropdown:hover .dropdown-menu, .nav-dropdown:focus-within .dropdown-menu { display: block; }
.dropdown-item { display: block; width: 100%; padding: 9px 14px; border-radius: 7px; font-size: 13px; font-weight: 600; color: rgba(255,255,255,0.75); text-align: left; transition: all 0.15s; font-family: 'Nunito', sans-serif; text-decoration: none; }
.dropdown-item:hover { background: rgba(255,255,255,0.08); color: white; }
.dropdown-item.active { background: var(--sla-pink); color: white; }

/* ── FOOTER ── */
footer { background: var(--sla-dark); color: rgba(255,255,255,0.6); padding: 2.5rem 3rem; margin-top: auto; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1.5rem; }
.footer-brand-text { font-family: 'Barlow Condensed', sans-serif; font-weight: 900; font-size: 18px; color: white; }
.footer-brand-sub { font-size: 11px; color: rgba(255,255,255,0.45); letter-spacing: 1px; text-transform: uppercase; margin-top: 2px; }
.footer-copy { font-size: 12px; color: rgba(255,255,255,0.3); width: 100%; text-align: center; border-top: 1px solid rgba(255,255,255,0.07); padding-top: 1.25rem; margin-top: 0.5rem; }
.footer-cta { width: 100%; text-align: center; }
.footer-cta a { display: inline-block; background: var(--sla-pink); color: white; padding: 11px 26px; border-radius: 8px; font-weight: 700; font-size: 14px; text-decoration: none; transition: background 0.18s; }
.footer-cta a:hover { background: #b8195c; }

/* ── BOUTONS ── */
.btn-primary { display: inline-block; background: var(--sla-pink); color: white; border: none; padding: 13px 28px; border-radius: 8px; font-family: 'Nunito', sans-serif; font-weight: 700; font-size: 15px; cursor: pointer; transition: all 0.18s; }
.btn-primary:hover { background: #b8195c; transform: translateY(-1px); }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.btn-outline-dark { display: inline-block; background: transparent; color: var(--sla-dark); border: 1.5px solid var(--sla-dark); padding: 11px 24px; border-radius: 8px; font-family: 'Nunito', sans-serif; font-weight: 700; font-size: 14px; cursor: pointer; transition: all 0.18s; }
.btn-outline-dark:hover { background: var(--sla-dark); color: white; }
.btn-danger { display: inline-block; background: transparent; color: var(--sla-pink); border: 1.5px solid var(--sla-pink); padding: 11px 24px; border-radius: 8px; font-family: 'Nunito', sans-serif; font-weight: 700; font-size: 14px; cursor: pointer; transition: all 0.18s; }
.btn-danger:hover { background: var(--sla-pink); color: white; }

/* ── PAGE / CARTES ── */
.auth-hero { background: var(--sla-dark); padding: 3rem; color: white; }
.auth-hero h1 { font-family: 'Barlow Condensed', sans-serif; font-weight: 900; font-size: 44px; text-transform: uppercase; line-height: 1; }
.auth-hero h1 span { color: var(--sla-yellow); }
.auth-hero p { opacity: 0.8; margin-top: 0.5rem; max-width: 560px; line-height: 1.6; }
.wrap { width: 100%; max-width: 760px; margin: 0 auto; padding: 2.5rem 1.5rem 4rem; }
.card { background: white; border: 1px solid #E2E6EA; border-radius: 14px; padding: 2rem; margin-bottom: 1.5rem; }
.card h2 { font-family: 'Barlow Condensed', sans-serif; font-weight: 900; font-size: 26px; text-transform: uppercase; margin-bottom: 1.25rem; }
.card h2 span { color: var(--sla-pink); }

/* ── FORMULAIRES ── */
.field { margin-bottom: 1rem; }
.field label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 5px; color: #444; }
.field input, .field select, .field textarea { width: 100%; padding: 11px 13px; border: 1.5px solid #DDE2E8; border-radius: 8px; font-family: 'Nunito', sans-serif; font-size: 15px; background: white; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--sla-blue); }
.field textarea { min-height: 90px; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.check { display: flex; align-items: flex-start; gap: 9px; font-size: 14px; color: #444; line-height: 1.45; }
.check input { width: auto; margin-top: 3px; flex-shrink: 0; }
.hint { font-size: 12px; color: #888; margin-top: 4px; }

/* ── ONGLETS ── */
.tabs { display: flex; gap: 6px; background: var(--sla-gray); padding: 5px; border-radius: 10px; margin-bottom: 1.5rem; }
.tab { flex: 1; padding: 10px; border: none; background: none; border-radius: 7px; font-family: 'Nunito', sans-serif; font-weight: 700; font-size: 14px; color: #777; cursor: pointer; }
.tab.active { background: white; color: var(--sla-dark); box-shadow: 0 1px 4px rgba(0,0,0,0.08); }

/* ── MESSAGES / AVATAR ── */
.msg { padding: 11px 14px; border-radius: 8px; font-size: 14px; margin-bottom: 1rem; display: none; }
.msg.show { display: block; }
.msg.error { background: #FCEEF2; color: #B8195C; border: 1px solid #F3C6D7; }
.msg.ok { background: #EAF3DE; color: #3B6D11; border: 1px solid #CDE3AE; }
.avatar { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; background: var(--sla-gray); border: 2px solid #E2E6EA; }

/* ── MODALE (engagement adhésion) ── */
.modal-overlay { display: none; position: fixed; inset: 0; background: rgba(20,30,45,0.6); z-index: 500; align-items: center; justify-content: center; padding: 1.5rem; }
.modal-overlay.show { display: flex; }
.modal { background: white; border-radius: 14px; padding: 2rem; max-width: 460px; width: 100%; }
.modal h3 { font-family: 'Barlow Condensed', sans-serif; font-weight: 900; font-size: 24px; text-transform: uppercase; margin-bottom: 0.75rem; }
.modal p { font-size: 14px; color: #555; line-height: 1.6; margin-bottom: 1rem; }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 1.25rem; flex-wrap: wrap; }

.muted { color: #888; font-size: 14px; }

/* ── RESPONSIVE ── */
@media (max-width: 860px) {
  .navbar { padding: 0 1rem; }
  .nav-burger { display: flex; }
  .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; background: var(--sla-dark); padding: 8px; gap: 2px; box-shadow: 0 10px 24px rgba(0,0,0,0.35); }
  .navbar.open .nav-links { display: flex; }
  .nav-sep { display: none; }
  .nav-link { width: 100%; text-align: left; }
  .nav-dropdown { width: 100%; }
  .nav-dropdown-btn { width: 100%; justify-content: flex-start; }
  .dropdown-menu { display: block; position: static; background: none; box-shadow: none; padding: 0 0 4px 14px; min-width: 0; }
  .auth-hero { padding: 2.5rem 1.25rem; }
  .auth-hero h1 { font-size: 34px; }
  footer { padding: 2rem 1.25rem; justify-content: center; text-align: center; }
}
@media (max-width: 520px) {
  .field-row { grid-template-columns: 1fr; }
  .card { padding: 1.5rem; }
}
