/* ============================================================
   AdminTools.fr — design system partagé
   Variables, base, et composants communs à tous les outils.
   Chaque page peut ajouter ses styles spécifiques après cet import.
   ============================================================ */

:root{
  --bg:#f7f6f3;
  --surface:#ffffff;
  --border:#e7e4dd;
  --text:#1c1b19;
  --text-soft:#6b6862;
  --text-faint:#9b9790;
  --accent:#9c7b3a;
  --accent-soft:#f1e9d8;
  --danger:#a23b3b;
  --danger-soft:#f7e9e9;
  --radius:14px;
  --radius-sm:8px;
  --shadow:0 1px 2px rgba(20,18,14,0.04), 0 8px 24px rgba(20,18,14,0.05);
}

*{box-sizing:border-box;}
html,body{margin:0;padding:0;}
body{
  background:var(--bg);
  color:var(--text);
  font-family:'Inter',-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  line-height:1.5;
  -webkit-font-smoothing:antialiased;
}
@media (prefers-reduced-motion: no-preference){
  *{transition:background-color .2s ease, border-color .2s ease, color .2s ease, transform .15s ease, opacity .2s ease;}
}

.wrap{
  max-width:1080px;
  margin:0 auto;
  padding:48px 24px 96px;
}
.wrap.narrow{max-width:760px;}
@media (max-width:480px){
  .wrap{padding:32px 16px 64px;}
}

/* ---------- top nav ---------- */
.top-nav{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:8px;
  gap:10px;
  flex-wrap:wrap;
}
.top-nav .brand{
  font-size:14px;
  font-weight:700;
  color:var(--text);
  text-decoration:none;
  display:flex;
  align-items:center;
  gap:8px;
}
.top-nav .brand img{
  height:26px;
  width:26px;
  border-radius:6px;
  display:block;
}
.top-nav .links{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}
.top-nav a.nav-link{
  font-size:13px;
  font-weight:600;
  color:var(--text-soft);
  text-decoration:none;
  padding:8px 14px;
  border-radius:999px;
  border:1px solid var(--border);
  background:var(--surface);
}
.top-nav a.nav-link:hover{
  color:var(--accent);
  border-color:var(--accent);
}

/* ---------- nav dropdown (menu "Outils") ---------- */
.nav-dropdown{
  position:relative;
}
.nav-dropdown-btn{
  display:inline-flex;
  align-items:center;
  gap:6px;
  font-size:13px;
  font-weight:600;
  color:var(--text-soft);
  background:var(--surface);
  border:1px solid var(--border);
  padding:8px 14px;
  border-radius:999px;
  cursor:pointer;
  font-family:inherit;
}
.nav-dropdown-btn:hover{
  color:var(--accent);
  border-color:var(--accent);
}
.nav-dropdown-btn svg{
  width:12px;height:12px;
  transition:transform .15s ease;
}
.nav-dropdown.open .nav-dropdown-btn svg{
  transform:rotate(180deg);
}
.nav-dropdown-menu{
  position:absolute;
  top:calc(100% + 8px);
  right:0;
  left:auto;
  max-width:calc(100vw - 32px);
  min-width:240px;
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:var(--radius-sm);
  box-shadow:var(--shadow);
  padding:8px;
  display:none;
  z-index:50;
}
.nav-dropdown.open .nav-dropdown-menu{
  display:block;
}
.nav-dropdown-menu a{
  display:flex;
  align-items:center;
  gap:10px;
  padding:9px 10px;
  border-radius:6px;
  text-decoration:none;
  color:var(--text);
  font-size:13.5px;
  font-weight:600;
}
.nav-dropdown-menu a:hover{
  background:var(--accent-soft);
  color:var(--accent);
}
.nav-dropdown-menu a.current{
  color:var(--accent);
}
.nav-dropdown-menu .nav-dropdown-sep{
  height:1px;
  background:var(--border);
  margin:6px 4px;
}
.nav-dropdown-menu .icon-wrap{
  width:18px;height:18px;
  flex-shrink:0;
  color:var(--text-faint);
}
.nav-dropdown-menu a:hover .icon-wrap{color:var(--accent);}
.nav-dropdown-menu .icon-wrap svg{width:100%;height:100%;}

.back-link{
  display:inline-block;
  margin-bottom:24px;
  font-size:14px;
  font-weight:600;
  color:var(--text-soft);
  text-decoration:none;
}
.back-link:hover{color:var(--accent);}

/* ---------- header / hero ---------- */
header.page{
  text-align:center;
  margin-bottom:40px;
}
.tag{
  display:inline-block;
  font-size:12px;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:var(--accent);
  background:var(--accent-soft);
  padding:6px 14px;
  border-radius:999px;
  font-weight:600;
  margin-bottom:18px;
}
h1{
  font-size:clamp(28px, 4vw, 40px);
  font-weight:700;
  letter-spacing:-0.02em;
  margin:0 0 12px;
}
.subtitle{
  color:var(--text-soft);
  font-size:16px;
  max-width:560px;
  margin:0 auto;
}

/* ---------- panel ---------- */
.panel{
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  padding:32px;
  margin-bottom:24px;
}
@media (max-width:480px){
  .panel{padding:20px;}
}

.section-title{
  font-size:13px;
  font-weight:700;
  letter-spacing:.04em;
  text-transform:uppercase;
  color:var(--text-faint);
  margin:0 0 14px;
}

/* ---------- focus ---------- */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible{
  outline:2px solid var(--accent);
  outline-offset:2px;
}

/* ---------- buttons ---------- */
.btn-cta{
  display:inline-block;
  padding:13px 26px;
  background:var(--text);
  color:#fff;
  text-decoration:none;
  border-radius:999px;
  font-weight:600;
  font-size:15px;
}
.btn-cta:hover{background:var(--accent);}

/* ---------- footer ---------- */
footer.note{
  text-align:center;
  color:var(--text-faint);
  font-size:12px;
  margin-top:56px;
}
footer.note a{
  color:var(--accent);
  text-decoration:none;
  font-weight:600;
}

/* ---------- tool cards (hub homepage) ---------- */
.tool-grid{
  display:grid;
  grid-template-columns:repeat(2, 1fr);
  gap:20px;
}
@media (max-width:600px){
  .tool-grid{grid-template-columns:1fr;}
}
.tool-card{
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  padding:28px;
  text-decoration:none;
  color:var(--text);
  display:flex;
  flex-direction:column;
  gap:10px;
}
.tool-card:hover{
  border-color:var(--accent);
  transform:translateY(-2px);
}
.tool-card .tool-icon{
  width:40px;height:40px;
  color:var(--accent);
}
.tool-card .tool-name{
  font-size:18px;
  font-weight:700;
}
.tool-card .tool-desc{
  font-size:14px;
  color:var(--text-soft);
}
.tool-card .tool-status{
  margin-top:auto;
  font-size:12px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.03em;
  color:var(--accent);
}
.tool-card.soon{
  opacity:.55;
  pointer-events:none;
}
.tool-card.soon .tool-status{color:var(--text-faint);}
