/*
* Plugin Name: Comptes Rendus
* Description: Gestion des comptes rendus pour Mairie
* Version: 1.0
* Author: Saturne Innovations
* File type : css style for front-office
* File name : comptes-rendus
* File: assets/css/comptes-rendus.css
*/

/* imports */
@import "comptes-rendus-loader.css";

:root {
   --green-compte-rendu-color: #24bab2;
    --green-light-compte-rendu-color: #436f5b;
    --blue-compte-rendu-color: #4e846b;
    --blue-light-compte-rendu-color: #eaeaea;
    --yellow-compte-rendu-color: #c5d045;
    --yellow-light-compte-rendu-color: #d9d92cbf;
}

.comptes-rendus-container, .comptes-rendus-filter-container {
    display: flex;
    flex-direction: column;
    width: 92%;
    max-width: 1500px;
    margin: auto;
    font-size: 14px;
    line-height: 1.5;
}

.comptes-rendus-filters-container {
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

.comptes-rendus-filter-container > br {
    display: none;
}
.comptes-rendus-results .comptes-rendus-container {
    width: 100%;
}

.comptes-rendus-bloc-label {
    font-size: 18px;
    text-transform: uppercase;
    font-weight: 700;
    padding: 1rem;
    background-color: var(--green-compte-rendu-color);
    color: white;
}

.comptes-rendus-filters {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding: 1.25rem;
    background-color: var(--green-light-compte-rendu-color);
    border-radius: 8px;
    border-bottom: solid 5px #BFCE01;
    transition: all 0.3s ease;
}

.comptes-rendus-filters input,
.comptes-rendus-filters select {
    padding: .5rem .75rem;
    border-radius: 5px;
    border: solid 1px #f5f5f5;
    font-size: 14px;
    min-width: 48%;
    height: 40px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.comptes-rendus-filters input:focus,
.comptes-rendus-filters select:focus {
    outline: none;
    border-color: var(--blue-compte-rendu-color);
    box-shadow: 0 0 0 2px rgba(78, 132, 107, 0.2);
}

.comptes-rendus-filters > div {
    min-width: 20%;
    padding: 0 .5rem;
}

.comptes-rendus-filter-by {
    display: flex;
    flex-direction: column;
    color: white;
}

.comptes-rendus-filter-by-seance-date {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
}

.comptes-rendus-filter-by-seance-date label {
    display: block;
    width: 100%;
}

.comptes-rendus-list {
    margin-bottom: 1.5rem;
    border: solid 1px #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.comptes-rendus-list:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.comptes-rendus-list-header {
    display: flex;
    align-items: center;
    background: var(--blue-light-compte-rendu-color);
    color: #4e846b;
}

.comptes-rendus-list-header > div,
.comptes-rendus-item > div {
    padding: .5rem;
}

.comptes-rendus-category {
    color: white;
    font-weight: 700;
    background: var(--blue-compte-rendu-color);
    padding: .5rem;
    font-size: 16px;
}

.comptes-rendus-list-title {
    width: 35%;
}

.comptes-rendus-list-date {
    width: 15%;
}

.comptes-rendus-list-category {
    width: 25%;
}

.comptes-rendus-list-category-badge {
    background-color: var(--yellow-compte-rendu-color);
    color: #5d5b5b;
    padding: 2px 5px;
    border-radius: 3px;
    margin: 0 5px 5px 0;
    text-wrap: nowrap;
    display: inline-block;;
}

.comptes-rendus-list-annexe,
.comptes-rendus-list-valide {
    width: 10%;
}

.comptes-rendus-list-document {
    width: 10%;
}

.comptes-rendus-list-document-number {
    font-size: 11px;
    color: #c3c3c3;
}

.comptes-rendus-list-document a {
    font-size: 32px;
    color: #FF9800;
    display: block;
    text-align: center;
    transition: all 300ms ease;
}

.comptes-rendus-list-document a:hover {
    color: #b8ecf3;
}

.comptes-rendus-item {
    display: flex;
    transition: all 300ms ease;
}

.comptes-rendus-item:hover {
    background-color: #b8ecf359;
}

.comptes-rendus-item:not(:last-child) {
    border-bottom: solid 1px #ccc;
}

.comptes-rendus-filter-by.comptes-rendus-filter-submit {
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
}

.comptes-rendus-filter-submit button {
    padding: 0.5rem 0.75rem;
    border: none;
    border-radius: 5px;
    width: 48%;
    height: 40px;
    margin: auto;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.comptes-rendus-filter-do-submit {
    background-color: var(--yellow-compte-rendu-color);
}

.comptes-rendus-filter-do-submit:hover {
    background-color: #b1ba01;
    transform: translateY(-2px);
}

.comptes-rendus-filter-do-reset {
    background-color: white;
}

.comptes-rendus-filter-do-reset:hover {
    background-color: #f5f5f5;
}

.comptes-rendus-error-message {
    font-size: 20px;
    text-align: center;
    margin: 2rem auto;
    color: #F44336;
}

/* Pagination */
.comptes-rendus-pagination {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 2rem 0;
    padding: 1.25rem;
    background-color: var(--blue-light-compte-rendu-color);
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.comptes-rendus-pagination-info {
    margin-bottom: 1rem;
    color: var(--blue-compte-rendu-color);
    font-weight: 600;
}

.comptes-rendus-pagination-controls {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}

.comptes-rendus-pagination-controls a {
    display: inline-block;
    padding: 0.5rem 0.75rem;
    background-color: white;
    color: var(--blue-compte-rendu-color);
    border: 1px solid var(--blue-compte-rendu-color);
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s ease;
    min-width: 40px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.comptes-rendus-pagination-controls a:hover {
    background-color: var(--yellow-compte-rendu-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 3px 5px rgba(0, 0, 0, 0.15);
}

.comptes-rendus-pagination-controls a:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(78, 132, 107, 0.4);
}

.comptes-rendus-pagination-current {
    display: inline-block;
    padding: 0.5rem 0.75rem;
    background-color: var(--blue-compte-rendu-color);
    color: white;
    border-radius: 4px;
    font-weight: bold;
}

.comptes-rendus-pagination-dots {
    padding: 0.5rem 0.25rem;
    color: var(--blue-compte-rendu-color);
}

.comptes-rendus-pagination-prev,
.comptes-rendus-pagination-next {
    font-weight: bold;
}

/* Responsive */


/*Small devices (landscape phones, less than 768px)*/
@media (max-width: 768px) {

    /* Displays */
    .comptes-rendus-md-d-none {
        display: none;
    }

    /* Columns */
    .comptes-rendus-list-date {
        width: 20%;
    }

    .comptes-rendus-list-category {
        width: 35%;
    }

    .comptes-rendus-list-document {
        width: 15%;
        text-align: center;
    }

    .comptes-rendus-list-category-badge {
        text-wrap: unset;
    }
}

/* Medium devices (tablets, less than 920px) */
@media (max-width: 920px) {
    /* Filters */
    .comptes-rendus-filters {
        flex-direction: column;
        align-items: center;
        padding: .5rem;
    }

    .comptes-rendus-filters > div {
        min-width: 100%;
    }

    .comptes-rendus-filter-by {
        margin-bottom: .5rem;
    }

    .comptes-rendus-filter-by-title {
        margin-bottom: 1rem;
    }

    .comptes-rendus-filter-submit button {
        margin: 0;
    }

    .comptes-rendus-filter-by.comptes-rendus-filter-submit {
        justify-content: space-between;
    }
}

/*Large devices (desktops, less than 1200px)*/
@media (max-width: 1200px) {
    /* Displays */
    .comptes-rendus-lg-d-none {
        display: none;
    }

    .comptes-rendus-list-category {
        width: 30%;
    }

    /* Filters */
    .comptes-rendus-filters {
        padding: 1.5rem .25rem;
    }

}

/*X-Small devices (portrait phones, less than 576px)*/
@media (max-width: 576px) {

    /* Displays */
    .comptes-rendus-sm-d-none {
        display: none;
    }

    /* Containers */
    .comptes-rendus-container, .comptes-rendus-filter-container {
        width: 98%;
    }

    /* Header */
    .comptes-rendus-list-header {
        font-size: 12px;
    }

    .comptes-rendus-list-header > div, .comptes-rendus-item > div {
        padding: .35rem;
    }

    /* Columns */
    .comptes-rendus-item {
        font-size: 13px;
    }

    .comptes-rendus-list-title {
        width: 50%;
    }

    .comptes-rendus-list-date {
        width: 30%;
    }

    .comptes-rendus-list-document {
        width: 20%;
        text-align: center;
    }

    .comptes-rendus-list-document a {
        font-size: 22px;
    }

    .comptes-rendus-list-category-badge {
        text-wrap: unset;
    }

    .comptes-rendus-filter-by.comptes-rendus-filter-by-seance-date input, 
    .comptes-rendus-filter-by.comptes-rendus-filter-by-seance-date select {
        min-width: 100%;
        margin-bottom: 1rem;
    }

    /* Pagination for mobile */
    .comptes-rendus-pagination-controls {
        gap: 0.3rem;
    }

    .comptes-rendus-pagination-controls a {
        padding: 0.4rem 0.6rem;
        min-width: 35px;
    }
}
