/* ============================
   AP.css — Accueil Public (scopé AP-*)
   Palette StopSolo et UI minimaliste
   ============================ */

:root{
  --ap-blue:#20466e;            /* bleu nuit StopSolo */
  --ap-blue-hover:#163152;
  --ap-header-bg:#2c3e50;       /* barre haute */
  --ap-header-text:#ffffff;
  --ap-text:#1f2a44;
  --ap-muted:#667085;
  --ap-card:#ffffff;
  --ap-bg:#f6f8fb;
  --ap-bd:rgba(16,24,40,.10);
  --ap-alert:#b42318;
}

/* Page */
.AP-page{
  background:var(--ap-bg);
  color:var(--ap-text);
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}

/* Mini Header */
.AP-mini-header{
  background:var(--ap-header-bg);
  color:var(--ap-header-text);
  display:flex; align-items:center; justify-content:center;
  padding:12px 16px;
  box-shadow:0 2px 8px rgba(0,0,0,.08);
}
.AP-sticky{ position:sticky; top:0; z-index:1000; }
.AP-brand{
  color:var(--ap-header-text);
  text-decoration:none;
  font-weight:800;
  letter-spacing:.2px;
  font-size:clamp(1.1rem,1rem + 1vw,1.4rem);
  line-height:1;
}
.AP-brand:focus-visible{
  outline:2px solid #fff; outline-offset:3px; border-radius:6px;
}

/* Layout */
.AP-layout{
  display:grid;
  grid-template-columns:minmax(0,1fr);
  gap:16px;
  max-width:1100px;
  margin:24px auto;
  padding:0 16px;
}
.AP-side{ display:none; }
.AP-content{ min-width:0; }
.AP-auth-container{ display:grid; gap:16px; }

/* Card */
.AP-card{
  background:var(--ap-card);
  border:1px solid var(--ap-bd);
  border-radius:16px;
  padding:20px;
  box-shadow:0 1px 2px rgba(16,24,40,.04);
}
.AP-card--center{ text-align:center; }

/* Titles */
.AP-title{ margin:0 0 12px 0; font-size:1.25rem; font-weight:800; }
.AP-title--h2{ font-size:1.1rem; margin-bottom:8px; }

/* Small text */
.AP-small{ margin:0 0 12px 0; color:var(--ap-muted); }

/* Form */
.AP-form{ display:grid; gap:10px; }
.AP-label{ font-size:.9rem; color:var(--ap-muted); }
.AP-input{
  width:100%;
  border:1px solid var(--ap-bd);
  border-radius:10px;
  padding:10px 12px;
  font-size:1rem;
  background:#fff;
}
.AP-switch-row{
  display:flex; gap:16px; align-items:center; justify-content:space-between;
  flex-wrap:wrap;
}
.AP-check{ display:flex; gap:8px; align-items:center; }

/* Actions & Buttons */
.AP-actions{ display:flex; flex-wrap:wrap; gap:10px; align-items:center; }
.AP-btn{
  display:inline-flex; align-items:center; justify-content:center;
  gap:8px;
  border-radius:12px;
  padding:10px 14px;
  border:1px solid transparent;
  font-weight:700;
  text-decoration:none;
  cursor:pointer;
  line-height:1.1;
}
.AP-btn--primary{ background:var(--ap-blue); color:#fff; }
.AP-btn--primary:hover{ background:var(--ap-blue-hover); }
.AP-btn--secondary{
  background:#fff; color:var(--ap-blue); border-color:var(--ap-bd);
}
.AP-btn--secondary:hover{ background:#e6eaf0; }

/* Alert */
.AP-alert{
  background:#fff4f3; color:var(--ap-alert);
  border:1px solid #ffd7d3; border-radius:10px; padding:10px 12px; margin-bottom:8px;
}

/* Highlights */
.AP-highlights{ display:grid; gap:12px; }
.AP-highlight-card{
  background:var(--ap-card);
  border:1px solid var(--ap-bd);
  border-radius:16px;
  padding:16px;
}
.AP-h3{ margin:0 0 6px 0; font-size:1.05rem; }

/* Footer */
.AP-footer{
  margin-top:24px;
  border-top:1px solid var(--ap-bd);
  background:#fff;
}
.AP-footer-inner{
  max-width:1100px; margin:0 auto; padding:12px 16px;
  display:flex; align-items:center; justify-content:space-between; gap:12px;
}
.AP-footer-nav{ display:flex; gap:12px; flex-wrap:wrap; }
.AP-footer-nav a{ color:var(--ap-blue); text-decoration:none; }
.AP-footer-nav a:hover{ text-decoration:underline; }

/* Responsive: colonnes latérales sur desktop */
@media (min-width: 1024px){
  .AP-layout{
    grid-template-columns:260px minmax(0,1fr) 260px;
  }
  .AP-side{ display:block; }
}
