@tailwind base;
@tailwind components;
@tailwind utilities;

/* =========================
   RESET / BASE
   ========================= */

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    background-color: #f3f4f6;
    color: #111827;
}

/* =========================
   LIENS
   ========================= */

a {
    color: inherit;
    text-decoration: none;
}

/* =========================
   BOUTONS
   ========================= */

button {
    font-family: inherit;
}

/* =========================
   CONTENEUR PRINCIPAL
   ========================= */

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* =========================
   CARTES
   ========================= */

.card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* =========================
   BOUTONS
   ========================= */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 10px 16px;

    border: none;
    border-radius: 8px;

    font-weight: 600;
    cursor: pointer;

    transition:
        background-color 0.2s,
        transform 0.1s;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    background-color: #2563eb;
    color: white;
}

.btn-primary:hover {
    background-color: #1d4ed8;
}

.btn-danger {
    background-color: #dc2626;
    color: white;
}

.btn-danger:hover {
    background-color: #b91c1c;
}

.btn-secondary {
    background-color: #e5e7eb;
    color: #374151;
}

.btn-secondary:hover {
    background-color: #d1d5db;
}

/* =========================
   FORMULAIRES
   ========================= */

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 6px;

    font-size: 14px;
    font-weight: 600;
    color: #374151;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;

    padding: 10px 12px;

    border: 1px solid #d1d5db;
    border-radius: 8px;

    background-color: white;
    color: #111827;

    font-size: 15px;

    outline: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    border-color: #2563eb;

    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
}

/* =========================
   MESSAGES D'ERREUR
   ========================= */

.form-error {
    margin-top: 5px;

    font-size: 14px;
    color: #dc2626;
}

/* =========================
   TITRES
   ========================= */

.page-title {
    margin: 0;

    font-size: 30px;
    font-weight: 700;

    color: #111827;
}

.page-subtitle {
    margin-top: 8px;

    color: #6b7280;
}
