/* Formulaire */
form {
    background: white;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 6px;
    max-width: 600px;
    margin-bottom: 30px;
    margin-left: auto;
    margin-right: auto;
}

form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color:midnightblue;
}

form input[type="text"],
form input[type="email"],
form input[type="tel"],
form input[type="date"],
form input[type="number"],
form textarea,
form select {
    width: 100%;
    padding: 8px 10px;
    margin-top: 4px;
    margin-bottom: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 15px;
    box-sizing: border-box;
    transition: border-color 0.3s;
    color: rgb(51, 51, 51);
}

form input[type="text"]:focus,
form input[type="email"]:focus,
form input[type="tel"]:focus,
form input[type="date"]:focus,
form input[type="number"]:focus,
form textarea:focus,
form select:focus {
    border-color: #3498db;
    outline: none; 
}

form input[readonly] {
    background-color: #eee;
    color: #666;
    cursor: not-allowed;
}

.valid-button {
    background-color: #3498db;
    border: none;
    color: white;
    padding: 12px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    font-size: 16px;
    transition: background-color 0.3s;
    margin: auto;
    display: block;
    min-width: 350px;
    text-align: center;
}

.valid-button:hover {
    background-color: #2980b9;
    color: wheat;
}

.trash-button {
    background-color: transparent;
    font-size: 1.2em;
    color: red;
}

.trash-button:hover {
    color:brown;
    background-color: transparent;
}

.blank {
    padding-bottom: 13px;
    border: none;
    max-width: max-content;
    background-color: transparent;
    height: 0px;
    padding-top: 0px;
    margin-top: -28px;
}

form a {
    background-color: #3498db;
    border: none;
    color: white;
    padding: 12px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    font-size: 16px;
    transition: background-color 0.3s;
    margin: auto;
    display: block;
    text-decoration: none;
    color: white;
    max-width: 310px;
    text-align: center;
}

form a:hover {
    color: #c9c9c9;
    text-decoration: none;
}

.text-min {
    font-size: 0.7em;
    color: #666;
    text-align: center;
}

.link-min {
    font-size: 0.9em;
    color: wheat;
    text-decoration: none;
    margin-top: -25px;
    margin-right: 2px;
    text-align: right;
    display: block;
}

.link-min:hover {
    color: white;
    font-style: bold;
}

/* Tableaux */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 6px;
    overflow: hidden;
}

table thead {
    background-color: #3498db;
    color: white;
}

table thead th {
    padding: 10px 15px;
    text-align: left;
    font-weight: 700;
}

table tbody tr:nth-child(even) {
    background-color: #f2f6fa;
}

table tbody td {
    padding: 10px 15px;
    border-top: 1px solid #ddd;
    vertical-align: top;
    color:#666;
}

table th a {
    color: white;
    text-decoration: none;
    margin: 5px 4px 0px 4px;
    font-size: 1.5em;
}

table th a:hover {
    color: wheat;
}

p.success {
    color: green;
    font-weight: bold;
    text-align: center;
    background-color: white;
    max-width: max-content;
    margin-left: auto;
    margin-right: auto;
    padding: 20px 15px 10px 15px;
    margin-bottom: -1px;
    border-radius: 10px 10px 0px 0px;
    border-bottom: 2px solid gray;
} 

p.error {
    color: red;
    font-weight: bold;
    text-align: center;
    background-color: white;
    max-width: max-content;
    margin-left: auto;
    margin-right: auto;
    padding: 20px 15px 10px 15px;
    margin-bottom: -1px;
    border-radius: 10px 10px 0px 0px;
    border-bottom: 2px solid gray;
}

/* Messages cotisation */
.cotisation-paid {
    color: green;
    font-weight: bold;
}

.cotisation-pending {
    color: orange;
    font-weight: bold;
}

.cotisation-overdue {
    color: red;
    font-weight: bold;
}

.pay-val {
    background-color: #dadada;
    border-radius: 8px;
    border: 2px solid green;
    height: 30px;
    padding-top: 8px;
    padding-left: 10px;
}

.pay-wait {
    background-color: #dadada;
    border-radius: 8px;
    border: 2px solid orange;
    height: 30px;
    padding-top: 8px;
    padding-left: 10px;
}

.pay-fail {
    background-color: #dadada;
    border-radius: 8px;
    border: 2px solid red;
    height: 30px;
    padding-top: 8px;
    padding-left: 10px;
}

.pay-what {
    background-color: #dadada;
    border-radius: 8px;
    border: 2px solid orangered;
    height: 30px;
    padding-top: 8px;
    padding-left: 10px;
}

.ico_center {
    text-align: center;
}
.ico_stat {
    margin: auto;
    padding-left: 7px;
    padding-right: 7px;
}

.encart-ag-cotisation {
    border-radius: 8px;
    border: 1px solid #ccc;
    padding: 15px;
    margin-bottom: 20px;
    width: 65%;
    margin: auto;
}

.encart-ag-cotisation b {
    color: wheat;
}