/* AMA Base Styles — shared across fiche & projet pages */

/* Reset */
* { margin: 0; padding: 0; box-sizing: border-box; }

/* Body */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #0a0a0f;
    color: #fff;
    min-height: 100vh;
    padding: 20px;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.5;
}

/* Back link */
.back {
    display: inline-block;
    margin-bottom: 12px;
    font-size: .8rem;
    color: #818cf8;
    text-decoration: none;
}
.back:hover { text-decoration: underline; }

/* Typography */
h1 {
    font-size: 1.5rem;
    margin-bottom: 2px;
    color: #818cf8;
}

.tagline {
    color: #888;
    font-size: .85rem;
    margin-bottom: 16px;
}

/* Meta & Badges */
.meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.badge {
    padding: 4px 10px;
    border-radius: 6px;
    font-size: .7rem;
    font-weight: 600;
}

.b-purple { background: rgba(129,140,248,.2); color: #818cf8; }
.b-green  { background: rgba(34,197,94,.2);   color: #22c55e; }
.b-orange { background: rgba(245,158,11,.2);  color: #f59e0b; }
.b-blue   { background: rgba(56,189,248,.2);  color: #38bdf8; }
.b-pink   { background: rgba(236,72,153,.2);  color: #ec4899; }
.b-red    { background: rgba(239,68,68,.2);   color: #ef4444; }

/* Sections */
.section { margin-bottom: 20px; }
.section-title {
    font-size: .7rem;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: #555;
    margin-bottom: 8px;
}

/* Cards */
.card {
    background: #12121a;
    border: 1px solid #2a2a3a;
    border-radius: 10px;
    padding: 14px;
    margin-bottom: 8px;
}

.card-title {
    font-size: .9rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.card-text {
    font-size: .8rem;
    color: #999;
}

.card-text strong { color: #ccc; }

/* Grids */
.grid2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.grid3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
}

/* Card variants */
.warn {
    border-color: rgba(245,158,11,.3);
    background: linear-gradient(135deg, #12121a, rgba(245,158,11,.05));
}

/* External links */
a.ext {
    color: #818cf8;
    text-decoration: none;
    font-size: .8rem;
}

a.ext:hover { text-decoration: underline; }

/* Lists */
ul { list-style: none; padding: 0; }

ul li {
    font-size: .8rem;
    color: #999;
    padding: 4px 0;
    padding-left: 16px;
    position: relative;
}

ul li::before {
    content: "\203A";
    position: absolute;
    left: 2px;
    color: #555;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    font-size: .78rem;
    margin-top: 8px;
}

th, td {
    padding: 8px 6px;
    text-align: left;
    border-bottom: 1px solid #1e1e2e;
}

th {
    color: #818cf8;
    font-weight: 600;
    background: #1a1a2a;
}

td { color: #999; }

/* Stats */
.stat { text-align: center; padding: 14px 8px; }
.stat-num { font-size: 1.2rem; font-weight: 700; color: #818cf8; }
.stat-label { font-size: .68rem; color: #666; margin-top: 2px; }

/* Footer */
footer {
    text-align: center;
    margin-top: 24px;
    padding-top: 12px;
    border-top: 1px solid #1a1a2a;
    color: #444;
    font-size: .7rem;
}

/* Responsive */
@media (max-width: 500px) {
    .grid2 { grid-template-columns: 1fr; }
    .grid3 { grid-template-columns: 1fr 1fr; }
}
