.logo {
    display: flex;
    align-items: center;
    margin-right: auto; /* pousse tout le reste à droite */
}

.logo img {
    width: 3cm;
    height: 3cm;
    object-fit: contain;
    margin-right: 10px;
}


head {
    text-align: center;
    }
    
body {
    font-family: Arial, sans-serif;
    background-color: Darkgray;
    color: white;
    text-align: center;
    margin: 0;
    padding: 0;
}


h1 {
    font-size: 2.5rem;
    color: white;
    margin-top: 20px;
}

h2 {
    display: inline-block;
    font-size: 3.5rem;
    color: white;
    margin-top: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    width: 450px;
}

h3 {
    font-size: 1.5rem;
    color: white;
    margin-top: 20px;
}
.img-limitee {
    max-width: 150px;
    max-height: 150px;
    width: auto;
    height: auto;
}

a {
    color: white;
    
}
p {
    font-size: 1.2rem;
    color: white;
    margin: 20px;
}

button {
    padding: 10px 20px;
    background-color: #006400;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    margin: 10px;
}

button:hover {
    background-color: #004d00;
}

.logo {
    width: 100px;
    height: auto;
    display: block;
    margin: 20px auto;
}

.styled-table thead tr {
    color: white; /* Texte blanc */
    text-align: left; /* Alignement du texte */
}

.styled-table th {
    background-color: #006400;
    padding: 10px; /* Espacement intérieur des cellules */
    border: 1px solid #dddddd; /* Bordure légère */
}

.styled-table td {
    padding: 10px;
    border: 1px solid #dddddd;
}

table { 
        background: slategrey;
        display:inline-table;
        border-color: white;
        border: 1px solid #dddddd;
        align-items: center;
}

th {
    border: 1px solid #dddddd;
}

tr {
    border: 1px solid #dddddd;
}

lb {
    display:inline-flex;
    width: fit-content;
}
 

bodyF {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: black;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 350px;
}
bodyp {
    display:block;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: darkgrey;
    color: red;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 450px;
}

label {
    display: inline-block;
    margin-bottom: 5px;
    font-weight: bold;
}

from {

    margin-bottom: 5px;
    font-weight: bold;
    Width:300px;
}

input {
    background: lightgray;
    color: #009688;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
    width: fit-content;
}

input:focus {
    border-color: #006400;
    outline: none;
    box-shadow: 0 0 5px rgba(0, 100, 0, 0.3);
}

.success-message { 
    color: green; font-weight: bold;
}

.error-message {
    color: red; font-weight: bold; 
}


.highlighted {
    background-color: yellow; /* Fond jaune */
    color: black; /* Texte noir */
    font-weight: bold; /* Texte en gras pour meilleure visibilité */
}

select {
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
    width: -webkit-fill-available;
}
form-text1 {
    color:white;
}

 .clignotant {
            padding: 15px;
            border: 3px solid gold; /* Bordure initiale */
            animation: clignoter 1s infinite; /* Durée : 1 seconde, répétée à l'infini */
            border-radius: 5px; /* Coins arrondis pour un style plus esthétique */
            background-color: darkred; /* Couleur de fond légèrement rouge */
            font-size: 16px;
            color: #fff;
        }
        
.error-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px auto;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
}

.error-table th, .error-table td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: center;
}
/* Toast en haut */
#avis-toast{
  position:fixed;
  top:12px;
  left:50%;
  transform:translateX(-50%);
  background:#222;
  color:#fff;
  padding:8px 12px;
  border-radius:8px;
  box-shadow:0 4px 18px rgba(0,0,0,.25);
  z-index:9999;
  display:none;
}

/* Lignes avec avis */


/* Bouton Avis */
.btn-avis{
  display:inline-block;
  background:#dc3545;       /* rouge CFL */
  color:#fff;
  border:none;
  padding:5px 12px;
  border-radius:6px;
  font-size:13px;
  font-weight:600;
  cursor:pointer;
  transition:background-color .2s, transform .15s;
}
.btn-avis:hover{
  background:#bb2d3b;
  transform:scale(1.05);
}
.btn-avis.disabled{
  background:#ccc;
  color:#666;
  cursor:default;
  pointer-events:none;
}
/* Bandeau rouge (cohérent site) */
.banner-danger{
  background:#dc3545; color:#fff; padding:10px 14px;
  display:flex; justify-content:space-between; align-items:center;
  border-radius:8px; margin:10px 0;
}
.banner-danger .btn-light-ghost{
  color:#fff; border:1px solid rgba(255,255,255,.7);
  padding:6px 10px; border-radius:6px; text-decoration:none; font-weight:600;
}
.banner-danger .btn-light-ghost:hover{ background:rgba(255,255,255,.15); }
.bg-danger-page{ background:#dc3545; }
.bg-danger-page * { color:#fff; }


/* ========== BOUTONS GLOBAUX ========== */
.btn {
  display:inline-block;
  font-weight:600;
  padding:8px 14px;
  border-radius:6px;
  border:1px solid transparent;
  cursor:pointer;
  transition:all .15s ease-in-out;
  text-decoration:none;
  text-align:center;
  font-size:14px;
  line-height:1.2;
}

/* Rouge CFL (action principale, danger, suppression) */
.btn-danger {
  background:#dc3545;
  border-color:#dc3545;
  color:#fff;
}
.btn-danger:hover {
  background:#bb2d3b;
}

/* Bleu (action positive, enregistrer, confirmer) */
.btn-primary {
  background:#0d6efd;
  border-color:#0d6efd;
  color:#fff;
}
.btn-primary:hover {
  background:#0b5ed7;
}

/* Gris clair (neutre, annuler, retour) */
.btn-soft {
  background:#e9ecef;
  color:#333;
  border-color:#dee2e6;
}
.btn-soft:hover {
  background:#dee2e6;
}

/* Vert (valider, publier, succès) */
.btn-success {
  background:#198754;
  border-color:#198754;
  color:#fff;
}
.btn-success:hover {
  background:#157347;
}

/* Orange (avertissement, archiver, attention) */
.btn-warning {
  background:#ffc107;
  border-color:#ffc107;
  color:#212529;
}
.btn-warning:hover {
  background:#e0a800;
}

/* Fantôme clair (sur fond rouge foncé, liens d’en-tête) */
.btn-light-ghost {
  color:#fff;
  border:1px solid rgba(255,255,255,.7);
  background:transparent;
}
.btn-light-ghost:hover {
  background:rgba(255,255,255,.15);
}

/* Boutons désactivés */
.btn:disabled,
.btn.disabled {
  opacity:0.6;
  cursor:not-allowed;
}

.pill-avis{
  display:inline-block;
  padding:3px 10px;
  border-radius:999px;
  background:#dc3545;
  color:#fff;
  font-weight:600;
  font-size:12px;
  text-decoration:none;
  transition:transform .15s ease-in-out, background .15s;
}
.pill-avis:hover{ background:#bb2d3b; transform:scale(1.05); }
.row-avis{ background:darkgrey; }
