/* ──────────────────────────────────────────────────────────────
   ASECNA — Palette & base
   ────────────────────────────────────────────────────────────── */
:root{
  --brand-red:#E53935;      /* rouge du logo */
  --brand-green:#2E7D32;    /* vert du logo */
  --brand-green-dark:#1B5E20;
  --ink:#14213d;            /* texte principal */
  --bg:#f7f8fb;
  --card:#ffffff;
  --muted:#667085;
  --border:#e5e7eb;
  --shadow:0 1px 4px rgba(0,0,0,.08);
  --radius:12px;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  color:var(--ink);
  background:var(--bg);
  line-height:1.55;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}
img{max-width:100%;height:auto;display:block}
a{color:inherit;text-underline-offset:2px}
a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible{
  outline:3px solid rgba(2,136,209,.45); outline-offset:2px;
}

.container{max-width:1100px;margin:0 auto;padding:24px}
.muted{color:var(--muted)}
.list{padding-left:1.2rem}
.list li{margin:.35rem 0}

/* ──────────────────────────────────────────────────────────────
   Header (fond vert foncé + logo seul)
   ────────────────────────────────────────────────────────────── */
.site-header{
  position:sticky; top:0; z-index:10;
  background:var(--brand-green-dark); color:#fff;
}
.site-header .wrap{
  display:flex; align-items:center; justify-content:space-between;
  max-width:1100px; margin:0 auto; padding:10px 24px;
}
.brand{display:inline-flex; align-items:center; gap:10px}
.brand img{height:44px}
nav a{
  color:#fff; text-decoration:none; margin:0 12px; opacity:.95; padding:6px 0;
  border-bottom:2px solid transparent; transition:opacity .15s ease, border-color .15s ease;
}
nav a:hover, nav a:focus-visible{opacity:1}
nav a.active{border-color:#fff}

/* ──────────────────────────────────────────────────────────────
   Hero & cartes
   ────────────────────────────────────────────────────────────── */
.hero{padding:56px 0}
.hero h1{font-size:42px; margin:0 0 8px}
.hero p{font-size:18px; margin:0 0 20px}

.cards{
  display:grid; gap:16px;
  grid-template-columns:repeat(auto-fit,minmax(240px,1fr));
  margin:24px 0;
}
.card{
  background:var(--card); border-radius:var(--radius); padding:16px;
  box-shadow:var(--shadow); border:1px solid var(--border);
}
.card h3{margin:.2rem 0 .5rem}
.link{color:var(--brand-green); text-decoration:underline}
.link:hover{opacity:.9}

/* ──────────────────────────────────────────────────────────────
   Boutons (primaire rouge, ghost vert)
   ────────────────────────────────────────────────────────────── */
.btn{
  display:inline-block; padding:10px 16px; border-radius:10px; border:0;
  background:var(--brand-red); color:#fff; text-decoration:none; cursor:pointer;
  transition:filter .15s ease, transform .02s ease-in-out;
}
.btn:hover{filter:brightness(.96)}
.btn:active{transform:translateY(1px)}
.btn.ghost{
  background:#fff; color:var(--brand-green); border:2px solid var(--brand-green);
}

/* ──────────────────────────────────────────────────────────────
   Formulaires
   ────────────────────────────────────────────────────────────── */
.form .grid{
  display:grid; gap:12px;
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
}
.form label{display:flex; flex-direction:column; font-size:14px; gap:6px}
.form input,.form select,.form textarea{
  padding:10px; border:1px solid var(--border); border-radius:8px; background:#fff;
}
.form input:focus,.form select:focus,.form textarea:focus{
  border-color:var(--brand-green);
  box-shadow:0 0 0 3px rgba(46,125,50,.12);
}
.form .check{display:flex; align-items:center; gap:10px; margin:12px 0}

/* ──────────────────────────────────────────────────────────────
   Tableaux & cartes admin
   ────────────────────────────────────────────────────────────── */
.table{
  width:100%; border-collapse:collapse; background:#fff; border-radius:var(--radius);
  overflow:hidden; border:1px solid var(--border);
}
.table th,.table td{padding:10px; border-bottom:1px solid #eee; text-align:left; vertical-align:top}
.auth-card{
  max-width:360px; margin:80px auto; background:#fff; border-radius:var(--radius);
  padding:20px; box-shadow:0 2px 8px rgba(0,0,0,.08); border:1px solid var(--border);
}
.error{color:#c62828}

/* ──────────────────────────────────────────────────────────────
   Footer
   ────────────────────────────────────────────────────────────── */
.site-footer{
  margin-top:40px; border-top:1px solid #eaeaea; padding:24px; background:#fff; color:var(--muted);
}
.site-footer a{color:var(--brand-green); text-decoration:underline}

/* ──────────────────────────────────────────────────────────────
   Utilitaires
   ────────────────────────────────────────────────────────────── */
.alert{padding:12px 14px; border-radius:10px; margin-bottom:16px}
.alert.error{background:#ffebee; color:#b71c1c; border:1px solid #ffcdd2}
.alert.note{background:#fffde7; color:#795548; border:1px solid #fff9c4}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

/* ──────────────────────────────────────────────────────────────
   Responsive
   ────────────────────────────────────────────────────────────── */
@media (max-width:720px){
  .hero h1{font-size:32px}
  nav a{margin:0 8px}
  .brand img{height:38px}
}





