/* ============================= */
/* ========== RESET ============ */
/* ============================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    font-size: 17px;
    background-color: #f8f8f8;
    padding: 8px;
}

/* ============================= */
/* ========== 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: 20px;
}

.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;
}

/* ============================= */
/* ========== BOUTONS ========== */
/* ============================= */
.btn {
    background-color: #04AA6D;
    color: white;
    padding: 12px;
    width: 100%;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-size: 17px;
}

.btn:hover {
    background-color: #45a;
}

/* ============================= */
/* ========== ALERTS =========== */
/* ============================= */
.alert {
    background-color: #ffdddd;
    color: red;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid red;
    border-radius: 5px;
    text-align: center;
}

/* ============================= */
/* ========== 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: 0 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;
}
