/* ============================= */
/* ========== RESET ============ */
/* ============================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    font-size: 17px;
    background-color: #f8f8f8;
    padding: 8px;
}

p, h1, h2, h3, h4 {
text-align: center;}

/* ============================= */
/* BOUTONS UNIFIÉS AVEC VARIANTES ALERTES */
/* ============================= */

/* Style de base pour tous les boutons */
.btn,
.btn.alert-success,
.btn.alert-warning,
.btn.alert-danger {
    font-weight: bold;
    font-size: 17px;
    padding: 10px ;
    border-radius: 5px;
    border: 1px solid transparent;
    cursor: pointer;
    display: block;              /* centrage via margin auto */
    width: fit-content;          /* adapte la largeur au contenu */
    margin: 10px auto;    /* centre horizontalement */
    transition: background-color 0.3s ease, color 0.3s ease;
}




/* Bouton principal par défaut (vert) */
.btn {
    background-color: #04AA6D;
    color: white;
    border: 1px solid #038a5a;
}
.btn:hover {
    background-color: #038a5a;
}

/* Bouton succès (vert clair) */
.btn.alert-success {
    background-color: #ddffdd;
    color: #107e00;
    border: 1px solid #4CAF50;
}
.btn.alert-success:hover {
    background-color: #c6f1c6;
}

/* Bouton alerte (jaune) */
.btn.alert-warning {
    background-color: #fff4cc;
    color: #b38f00;
    border: 1px solid #ffcc00;
}
.btn.alert-warning:hover {
    background-color: #ffec99;
}

/* Bouton danger (rouge clair) */
.btn.alert-danger {
    background-color: #ffdddd;
    color: #a10000;
    border: 1px solid #f44336;
}
.btn.alert-danger:hover {
    background-color: #fcbcbc;
}

form.center-button {
    text-align: center;
}

form.center-button .btn {
    display: inline-block;
    width: auto;
}

.form-listing {
    padding: 0 !important;
    margin: 0 !important;
    background: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    max-width: 100% !important;
}

/* ============================= */
/* ========== listes =========== */
/* ============================= */
.liste-centree {
    list-style: none; /* optionnel : enlève les puces */
    padding: 0;
    text-align: center;
}

.liste-centree li {
    margin: 4px 0;
}

.text-center {
    text-align: center;
}

ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
}


/* ============================= */
/* ========== chat_card card =========== */
/* ============================= */

.liste-chats {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 15px;
}

.chat-card {
    background: #f9f9f9;
    border: 2px solid #2196F3;
    border-radius: 8px;
    padding: 15px 20px;
    text-align: left;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}
.chat-card p {
    margin: 4px 0;
}




.card {
    background: white;
    padding: 20px 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin: 20px auto;
    max-width: 600px;
    text-align: center;
}

.card h4 {
    margin-top: 0;
    color: #333;
}

.card + .card {
    margin-top: 30px; /* espace entre les cartes */
}

.chat-card-container {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-top: 10px;
}

.chat-card:hover {
    transform: scale(1.01);
}

.chat-info {
    font-size: 16px;
    line-height: 1.4;
}


.chat-actions {
    display: flex;
    flex-direction: column; /* empilé verticalement */
    gap: 1px;
}

.chat-actions .btn {
    padding: 6px 10px;
    font-size: 15px;
    width: 100%;
    box-shadow: none;
}

.chat-actions form button {
    display: block;
    width: 100%;
}



/* ============================= */
/* ========== HEADER =========== */
/* ============================= */


.logo a {
    color: white;
    text-decoration: none;
    font-size: 20px;
    font-weight: bold;
}


/* ========== HEADER PUBLIC ========== */
header {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-image: url(../img/bkg-1.png);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: top-left;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-bottom: 5px solid #aaa;
}

/* R�partition fluide des images */
.hero_public {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
    gap: 10px;
    width: 100%;
    margin-bottom: 15px;
}

.hero_public img {
    flex: 1 1 auto;
    max-width: 150px;
    height: 100px;
    object-fit: cover;
    border: 3px solid #999;
    border-radius: 12px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
}

.hero_public img:hover {
    transform: scale(1.05);
}

/* Logo */
.logo img {
    height: 80px;
    width: auto;
    display: block;
    margin: 0 auto;
    border-radius: 10px;
}

/* Responsive : masquer des images */
.hero_public img:nth-child(5),
.hero_public img:nth-child(4),
.hero_public img:nth-child(3) {
    display: none;
}

@media (min-width: 500px) {
    .hero_public img:nth-child(3) {
        display: inline;
    }
}

@media (min-width: 600px) {
    .hero_public img:nth-child(4) {
        display: inline;
    }
}

@media (min-width: 768px) {
    header {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .hero_public img:nth-child(5) {
        display: inline;
    }

    .logo img {
        height: 100px;
    }
}


/* ============================= */
/* ===== Expositions =========== */
/* ============================= */

.expos {
    margin: 15px;
}

.expos-list, .ajout {
    margin: 40px auto;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
}

.expo-item {
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
    text-decoration: none;
}

.expo-item:hover {
    background-color: #FFCC66;
}

/* ============================= */
/* ========== FORMULAIRES ====== */
/* ============================= */
h1 {
    text-align: center;
    margin-bottom: 20px;
}

form {
    background: white;
    padding: 20px;
    max-width: 600px;
    margin: 0 auto;
    border-radius: 5px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 15px;
}

label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
}

input, select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 3px;
    font-size: 16px;
    margin-bottom: 10px;
}



/* ============================= */
/* ========== CONTAINER ======== */
/* ============================= */
.container {
    background-color: #f2f2f2;
    padding: 20px;
    border-radius: 3px;
}

/* ============================= */
/* ========== FOOTER =========== */
/* ============================= */
footer {
    text-align: center;
    background-color: #888;
    color: white;
    padding: 15px 0;
    margin-top: 20px;
    font-size: 16px;
}

/* ============================= */
/* ========== RESPONSIVE ======= */
/* ============================= */
@media (max-width: 800px) {


    /* Formulaires */
    form {
        width: 90%;
    }

    /* Footer */
    footer {
        font-size: 14px;
    }
}

/* ============================= */
/* ========== FLEXBOX GRID ===== */
/* ============================= */
.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -16px;
}

.col-25 {
    flex: 25%;
}

.col-50 {
    flex: 50%;
}

.col-75 {
    flex: 75%;
}

.col-25, .col-50, .col-75 {
    padding: 16px;
}

/* Responsive Layout */
@media (max-width: 800px) {
    .row {
        flex-direction: column-reverse;
    }
    .col-25 {
        margin-bottom: 20px;
    }
}

/* ============================= */
/* ========== AUTRES =========== */
/* ============================= */
.icon-container {
    margin-bottom: 20px;
    padding: 7px 0;
    font-size: 24px;
}

a {
    color: #2196F3;
}

hr {
    border: 1px solid lightgrey;
}

span.price {
    float: right;
    color: grey;
}

