/* Administration Delcourt & Sagnier — sobre, clair, mobile-first */
:root {
  --fond: #f6f5f2; --encre: #1c1b22; --nuit: #26252e;
  --laiton: #a8834e; --lin: #e6e2d8; --blanc: #fff;
  --rouge: #a13a3a; --vert: #3e6b4a;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: "Segoe UI", system-ui, sans-serif; background: var(--fond); color: var(--encre); line-height: 1.6; font-size: 16px; }
a { color: var(--nuit); }

.a-entete { background: var(--nuit); color: #f3f1ec; }
.a-entete-int { width: min(1150px, 94%); margin-inline: auto; padding: .9rem 0; display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1.4rem; }
.a-nom { font-weight: 600; }
.a-nom small { font-weight: 300; opacity: .65; }
.a-nav { display: flex; flex-wrap: wrap; gap: .2rem 1rem; }
.a-nav a { color: rgba(243,241,236,.85); text-decoration: none; font-size: .92rem; padding: .3rem 0; }
.a-nav a:hover, .a-nav a.actif { color: #d8b98a; }
.a-sortie { margin-left: auto; }

.a-main { width: min(1150px, 94%); margin: 1.6rem auto 4rem; }
h1 { font-size: 1.5rem; margin-bottom: .8rem; }
h2 { font-size: 1.1rem; margin-bottom: .9rem; color: var(--nuit); }
.a-intro { color: #6b675f; margin-bottom: 1.4rem; max-width: 50rem; }

.a-carte { background: var(--blanc); border: 1px solid var(--lin); border-radius: 6px; padding: 1.4rem; margin-bottom: 1.4rem; position: relative; }
.a-carte-ajout { border-style: dashed; }
.a-grille { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.2rem; }

label { display: block; font-size: .85rem; font-weight: 600; margin: .9rem 0 .3rem; color: #55524b; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], input[type=url], textarea, select {
  width: 100%; padding: .7rem .8rem; font-size: 1rem; border: 1px solid var(--lin); border-radius: 4px; background: var(--fond); font-family: inherit;
}
input:focus, textarea:focus, select:focus { outline: 2px solid var(--laiton); outline-offset: 1px; border-color: var(--laiton); }
textarea { min-height: 110px; resize: vertical; }
.a-deux-colonnes { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.a-trois-colonnes { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1rem; }
.a-case { display: flex; align-items: center; gap: .5rem; font-weight: 400; margin-top: 1rem; }
.a-case input { width: 20px; height: 20px; accent-color: var(--nuit); }

button, .a-btn { margin-top: 1.1rem; background: var(--nuit); color: #f3f1ec; border: 0; border-radius: 4px; padding: .75rem 1.4rem; font-size: .95rem; cursor: pointer; text-decoration: none; display: inline-block; }
button:hover, .a-btn:hover { background: var(--laiton); }
.a-btn-danger, button.a-btn-danger { background: transparent; color: var(--rouge); border: 1px solid var(--rouge); }
.a-btn-danger:hover { background: var(--rouge); color: #fff; }
.a-btn-ligne { background: transparent; color: var(--nuit); border: 1px solid var(--lin); }
.a-actions { display: flex; gap: .8rem; flex-wrap: wrap; align-items: center; }

.a-flash { background: #e7efe4; border: 1px solid #c9dcc4; color: #2f4d34; padding: .8rem 1rem; border-radius: 4px; margin-bottom: 1.2rem; }
.a-flash-erreur { background: #f7e6e4; border-color: #e4c4c0; color: #7c3128; }

.a-langues { margin-bottom: 1.2rem; font-size: .9rem; color: #6b675f; }
.a-langues a { margin-right: .3rem; padding: .2rem .6rem; border: 1px solid var(--lin); border-radius: 3px; text-decoration: none; }
.a-langues a.actif { background: var(--nuit); color: #fff; border-color: var(--nuit); }
.a-langues small { display: block; margin-top: .3rem; }

table.a-table { width: 100%; border-collapse: collapse; background: var(--blanc); border: 1px solid var(--lin); border-radius: 6px; overflow: hidden; }
.a-table th, .a-table td { padding: .7rem .9rem; text-align: left; border-bottom: 1px solid var(--lin); font-size: .93rem; vertical-align: top; }
.a-table th { background: var(--fond); font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: #6b675f; }
.a-badge { display: inline-block; font-size: .74rem; padding: .15rem .55rem; border-radius: 20px; background: var(--lin); }
.a-badge-attente { background: #f3e3c3; color: #7a5a1e; }
.a-badge-ok { background: #e0ecdd; color: #2f4d34; }

.a-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; margin-bottom: 1.6rem; }
.a-stat { background: var(--blanc); border: 1px solid var(--lin); border-radius: 6px; padding: 1.1rem 1.2rem; }
.a-stat b { display: block; font-size: 1.7rem; color: var(--laiton); }
.a-stat span { font-size: .84rem; color: #6b675f; }

.a-connexion-page { display: flex; min-height: 100vh; align-items: center; justify-content: center; background: var(--nuit); }
.a-connexion { background: var(--blanc); border-radius: 8px; padding: 2.2rem; width: min(420px, 92%); }
.a-connexion-titre { font-size: 1.3rem; font-weight: 600; margin-bottom: 1rem; }
.a-connexion-info { color: #6b675f; margin-bottom: 1rem; font-size: .95rem; }
.a-connexion-note { font-size: .84rem; color: #8a867d; margin-top: .4rem; }
.a-connexion-oubli { margin-top: 1.2rem; font-size: .9rem; }
.a-connexion button { width: 100%; }

@media (max-width: 700px) { .a-deux-colonnes, .a-trois-colonnes { grid-template-columns: 1fr; } }
