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

body {
    font-family: Arial, sans-serif;
    font-size: 15px;
    background-color: #f0f4f8;
    color: #333;
}

/* ----------------------------------------------------------------
   Container
---------------------------------------------------------------- */
.container {
    max-width: 900px;
    margin: 30px auto;
    padding: 0 20px;
}

h1 {
    text-align: center;
    font-size: 26px;
    color: #5983b0;
    margin-bottom: 25px;
}

h2 {
    font-size: 18px;
    color: #456486;
    margin-bottom: 20px;
    padding-bottom: 8px;
    border-bottom: 2px solid #98bee7;
}

h3 {
    font-size: 16px;
    color: #456486;
    margin: 20px 0 10px 0;
}

/* ----------------------------------------------------------------
   Card
---------------------------------------------------------------- */
.card {
    background-color: white;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

/* ----------------------------------------------------------------
   Grille
---------------------------------------------------------------- */
.grille-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.grille-plein {
    grid-column: span 2;
}

@media (max-width: 600px) {
    .grille-2 {
        grid-template-columns: 1fr;
    }
    .grille-plein {
        grid-column: span 1;
    }
}

/* ----------------------------------------------------------------
   Champs
---------------------------------------------------------------- */
.champ {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.champ label {
    font-size: 13px;
    font-weight: bold;
    color: #555;
}

.champ input,
.champ select {
    padding: 9px 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 14px;
    background-color: white;
    transition: border-color 0.2s;
}

.champ input:focus,
.champ select:focus {
    outline: none;
    border-color: #5983b0;
    box-shadow: 0 0 0 2px rgba(89, 131, 176, 0.2);
}

.champ input[readonly] {
    background-color: #f5f5f5;
    color: #666;
    cursor: not-allowed;
}

input.montant {
    background-color: #f9cfb5;
    font-weight: bold;
    text-align: right;
}

/* ----------------------------------------------------------------
   Boutons
---------------------------------------------------------------- */
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.1s;
}

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

.btn:active {
    transform: translateY(0);
}

.btn-valider {
    background-color: #b3ffb3;
    color: #333;
    width: 100%;
    padding: 12px;
    font-size: 16px;
    margin-top: 10px;
}

.btn-ajouter {
    background-color: #5983b0;
    color: white;
    margin-top: 15px;
}

.btn-supprimer {
    background-color: #ff7d7d;
    color: white;
    padding: 4px 10px;
    font-size: 12px;
}

/* ----------------------------------------------------------------
   Choix statut (index.html)
---------------------------------------------------------------- */
.choix-statut {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.btn-choix {
    flex: 1;
    background-color: #eeeeee;
    color: #333;
    padding: 12px;
    font-size: 15px;
}

.btn-choix.actif {
    background-color: #5983b0;
    color: white;
}

/* ----------------------------------------------------------------
   Tableau abonnements
---------------------------------------------------------------- */
table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    margin-top: 10px;
}

thead tr {
    background-color: #eeeeee;
}

thead th {
    padding: 8px 10px;
    text-align: left;
    font-weight: bold;
    color: #456486;
    border-bottom: 2px solid #98bee7;
}

tbody tr:nth-child(even) {
    background-color: #f7f7f7;
}

tbody td {
    padding: 8px 10px;
    border-bottom: 1px solid #eee;
}

tfoot tr {
    background-color: #f0f4f8;
    font-weight: bold;
}

tfoot td {
    padding: 8px 10px;
}

.total-label {
    text-align: right;
    color: #456486;
}

.total-montant {
    color: #333;
    font-size: 15px;
}

/* ----------------------------------------------------------------
   Messages
---------------------------------------------------------------- */
.info {
    background-color: #e8f0fb;
    border-left: 4px solid #5983b0;
    padding: 10px 15px;
    border-radius: 4px;
    margin-bottom: 15px;
    font-size: 14px;
    color: #456486;
}

.erreur {
    background-color: #ffe0e0;
    border-left: 4px solid #ff7d7d;
    padding: 10px 15px;
    border-radius: 4px;
    margin: 10px 0;
    font-size: 14px;
    color: #cc0000;
}

.hidden {
    display: none;
}

/* ----------------------------------------------------------------
   Page confirmation
---------------------------------------------------------------- */
.confirmation {
    text-align: center;
    padding: 50px 25px;
}

.icone-ok {
    font-size: 60px;
    color: #b3ffb3;
    background-color: #5983b0;
    width: 90px;
    height: 90px;
    line-height: 90px;
    border-radius: 50%;
    margin: 0 auto 25px auto;
}

.confirmation h1 {
    color: #5983b0;
    margin-bottom: 15px;
}

.confirmation p {
    color: #666;
    margin-bottom: 10px;
    font-size: 15px;
}

.confirmation .btn-valider {
    display: inline-block;
    width: auto;
    padding: 12px 30px;
    margin-top: 25px;
    text-decoration: none;
}