
/*Events Layout */
.agenda-main {
    padding: 10px 0 -20px;
    width: 100%;
    background: var(--bg-light);
}

.agenda-layout {
    display: flex;
    gap: 20px;
    flex-direction: row;
    position: relative;
    max-width: 100%;
    margin: 0 auto;
}

/* Filter Section */
.filter-card {
    background: white;
    flex-direction: column;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    padding: 30px;
}

.filter-row {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.filter-group {
    display: flex;
    flex-direction: column;
}
.filter-entity {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}
.filter-group label {
    margin-bottom: 5px;
    font-weight: 600;
    line-height: 1.3;
    font-size: 0.95rem;
    color: var(--text-light);
}

.filter-group select,
.filter-group input {
    padding: 5px 15px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.filter-group select:focus,
.filter-group input:focus {
    outline: none;
    border-color: var(--accent-color);
}

.search-input {
    position: relative;
}

.search-input input {
    padding-right: 45px;
}

.search-input i {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--border-color);
}

.filter-actions {
    display: flex;
    flex-direction: column-reverse;
}

.btn-filter {
    background: var(--accent-color);
    color: white;
    border: none;
    padding: 8px 25px;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s;
    position: relative;
}

.btn-filter:hover {
    background: var(--hover-color);
}

.btn-reset {
    background: transparent;
    color: var(--dark-text);
    border: 1px solid var(--border-color);
    padding: 2px 8px;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    outline: none;
    position: relative;
    top: -10px;
}

.btn-reset:hover {
    background: var(--border-color);
}

/* Hero Section */
.hero-section {
    width: 100%;
    position: relative;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    overflow: hidden;
    z-index: 1;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 100" fill="rgba(255,255,255,0.03)"><path d="M0,50 C150,80 350,20 500,50 C650,80 850,20 1000,50 L1000,100 L0,100 Z"/></svg>');
    background-size: cover;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-family: 'Merriweather', serif;
    font-size: 2.1rem;
    margin-top: 10px;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: -0.5px;
}

.hero-subtitle {
    font-size: 0.9rem;
    font-weight: 300;
    opacity: 0.9;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.breadcrumb-section {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    z-index: 2;
}

.breadcrumb {
    background: transparent;
    margin-bottom: 0;
    padding: 0;
}

.breadcrumb-item {
    font-size: 0.9rem;
    font-family: 'Merriweather', serif;
    color: rgba(255, 255, 255, 0.8);
    padding: 0 .6em;
}

.breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    content: ">" !important;
    color: rgba(255, 255, 255, 0.6);
    font-weight: bold;
}

.breadcrumb-item a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
}

.breadcrumb-item.active {
    color: white;
    font-weight: 500;
}
.breadcrumb-section .breadcrumb-item.active,
.breadcrumb-section .breadcrumb-item.active i {
    color: #fff !important;
}
/* Events Sidebar */
.events-sidebar {
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 1em;
    padding: 10px;
    max-width: 520%;
}

.events-sidebars-row {
    display: block;
    flex-direction: row;
    gap: 30px;
    width: 100%;
    overflow-x: auto;
}

.sidebar-title {
    font-family: 'Merriweather', serif;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--primary-color);
}
.sidebar-grid{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    overflow-y: auto;
    outline: none;
    max-height: 430px;
    scrollbar-width: none;     /* Firefox */
    -ms-overflow-style: none;  /* Internet Explorer 10+ */
}

.sidebar-grid::-webkit-scrollbar {
  display: none;             /* Chrome, Safari, Edge */
}
.event-item {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 5px;
    transition: all 0.3s;
    background: #c3c4ea3e;
}

.event-item:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.event-date {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.event-date-box {
    background: white;
    padding: 8px 12px;
    border-radius: 6px;
    text-align: center;
    min-width: 50px;
}

.event-date-box .day {
    display: block;
    color: #2f437cef;
    font-size: 0.8rem;
    font-weight: bold;
    line-height: 1;
}

.event-date-box .month {
    display: block;
    font-size: 0.7rem;
    margin-top: 2px;
}

.event-title {
    font-size: 0.9rem;
    margin-bottom: 5px;
    font-weight: 600;
    line-height: 1.3;
    color: #1b1e23e2;
}

.event-meta {
    display: flex;
    flex-direction: column;
    color: #666;
    font-size: 0.8rem;
    margin: 0;
}

.event-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.event-category {
    background: var(--font-bg);
    color: #232f51ef;
    width: fit-content;
    padding: 2px 12px;
    font-size: 0.75rem;
    text-align: center;
    font-weight: 500;
    border-radius: 10px;
    display: inline-block;
}

.category-audience {
    background: #e3f2fd;
    color: #1976d2;
}

.category-conference {
    background: #f3e5f5;
    color: #7b1fa2;
}

.category-porte-ouverte {
    background: #e8f5e8;
    color: #388e3c;
}

.category-international {
    background: #fff3e0;
    color: #f57c00;
}

/* Events List */
.events-list {
    padding: 40px 0;
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.event-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s;
}

.event-card:hover {
    transform: translateY(-5px);
}

.event-card-header {
    background: var(--primary-color);
    color: white;
    padding: 20px;
    text-align: center;
}

.event-card-date {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.event-card-month {
    font-size: 1rem;
    opacity: 0.9;
}

.event-card-content {
    padding: 25px;
}

.event-card-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.event-card-description {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
}

.event-card-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.event-card-info span {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: #666;
}

.event-card-footer {
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Calendar Styles */
.calendar-container {
    display: none;
    background: rgb(255, 255, 255);
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    padding: 20px;
    position: fixed;
    bottom: 20px;
    right: 20px;
    cursor: move;
    z-index: 999;
    transition: box-shadow 0.2s;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.calendar-title {
    font-family: 'Merriweather', serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-color);
}

.calendar-nav {
    display: inline-block;
    gap: 10px;
}

.nav-btn {
    position: relative;
    top: -5px;
    left: -15px;
    background: var(--light-bg);
    border: none;
    padding: 4px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.nav-btn:hover {
    background: var(--border-color);
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    background: var(--border-color);
    border-radius: 8px;
    overflow: hidden;
}

.calendar-day-header {
    background: var(--primary-color);
    color: white;
    text-align: center;
    font-weight: 600;
    font-size: 0.9rem;
}

.calendar-day {
    background: white;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.3s;
    position: relative;
    min-height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.calendar-day:hover {
    background: var(--light-bg);
}

.calendar-day.other-month {
    color: #ccc;
    background: #f9f9f9;   
}

.calendar-day.today {
    background: var(--accent-color);
    color: white;
    font-weight: 600;
}

.calendar-day.has-event {
    background: #e3f2fd;
    color: var(--primary-color);
    font-weight: 600;
}

.calendar-day.selected {
    background: var(--secondary-color);
    color: white;
}
.calendar-toggle-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #183168;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    z-index: 900;
    font-size: 1.2rem;
}

.calendar-close-btn {
    position: absolute;
    top: -5px;
    right: 12px;
    background: none;
    border: none;
    font-size: 1.6rem;
    cursor: pointer;
    color: #666;
}

/* Evenement Banners */
.modals {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}
.modal-contents {
    position: fixed;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2000;
    width: 90%;
    height: 90%;
    max-width: 1200px;
    background-color: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    padding: 20px;
    overflow-y: auto;
    max-height: 570px;
    animation: fadeIn 0.3s ease-out;
    scrollbar-width: none;     /* Firefox */
    -ms-overflow-style: none;  /* Internet Explorer 10+ */
}

.event-banner::-webkit-scrollbar {
  display: none;             /* Chrome, Safari, Edge */
}

.EventsContent{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 5px;
}

.event-banner-title {
    font-family: 'Merriweather', serif;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--primary-color);
    display: flex;
    gap: 5px;
    align-items: center;
}

.close-banner {
    background: none;
    border: none;
    font-size: 1.1rem;
    cursor: pointer;
    color: #666;
    position: relative;
    top: -10px;
}
.btn-details {
    background: var(--accent-color);
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.8rem;
}
.btn-details :hover {
    color: var(--bg-light);
}
/* details Styles */
.event-details-container{
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
}

.event-details-banner {
    position: fixed;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2000;
    width: 90%;
    max-width: 500px;
    background-color: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    animation: fadeIn 0.4s ease-out;
    padding: 20px;
    overflow-y: auto;
    max-height: 550px;
    scrollbar-width: none;     /* Firefox */
    -ms-overflow-style: none;  /* Internet Explorer 10+ */
}

.event-banner::-webkit-scrollbar {
  display: none;             /* Chrome, Safari, Edge */
}

.event-details {
    background: var(--light-bg);
    padding: 15px;
}

.event-details-title {
    font-family: 'Merriweather', serif;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.event-details p {
    margin-bottom: 8px;
    color: var(--dark-text);
    font-size: 0.85rem;
}

/* Footer */
.footer {
    width: 100%;
    position: relative;
    background: var(--bg-footer);
    color: rgba(255, 255, 255, 0.664);
    padding: 3rem 0 0rem;
    box-sizing: border-box;
    overflow-x: hidden;
    z-index: 1000;
}

.footer-section-titre{
    font-family: 'Merriweather', serif;
    color: white;
    margin-bottom: 15px;
    font-size: 1.2rem;
    font-weight: 600;
}
.footer p{
    line-height: 1.4;
    font-size: 0.9rem;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.664);
    line-height: 1.4;
    font-size: 0.9rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: white;
}

.newsletter {
    display: flex;
    margin-top: 1rem;
}

.newsletter input {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 5px 0 0 5px;
}

.newsletter button {
    background: var(--accent-color);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    transition: background 0.3s ease;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1rem;
    margin-top: 2rem;
}

.form-icon {
    display: flex;
    gap: 15px;
    list-style: none;
    margin-top: 20px;
}
.form-icon a {
    list-style: none;
    margin-bottom: 5px;
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

.form-icon  a:hover {
    color: white;
}
.footer-bottom {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid #333333;
    padding-top: 20px;
    text-align: center;
    color: rgba(255, 255, 255, 0.664);;
}
.bottom{
    display: flex;
    gap: 15px;
}
.bottom a{
    color: rgba(255, 255, 255, 0.664);;
    text-decoration: none;
    transition: color 0.3s;
    line-height: 1.4;
    font-size: 0.9rem;
}
.bottom a:hover{
     color: white;
}
/* Responsive Design */
@media (max-width: 950px) {
    .event-meta{
        flex-direction: column;
        
    }  
}
@media (max-width: 880px) {
    .contact-info {
        position: relative;
        max-width: 700px;
        margin: 0 auto;
    }
    .footer-bottom, .bottom {
        flex-direction: column;
        align-items: center;
    }
    .agenda-layout {
        display: grid;
        flex-wrap: wrap;
        gap: 20px;
        justify-content: center;
        position: relative;
    }
    .sidebar-grid{
        display: grid;
        grid-template-columns: 1fr 1fr;
    }
}
@media (max-width: 768px) {
    .agenda-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .filter-row {
        grid-template-columns: 1fr;
    }

    .calendar-day {
        min-height: 30px;
        padding: 5px 5px;
    }

    .events-grid {
        grid-template-columns: 1fr;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .filter-actions {
        justify-content: center;
    }
    .agenda-layout {
      flex-direction: column;
      align-items: center;
    }
}
@media screen and (max-width: 600px) {
    .sidebar-grid{
        display: grid;
        grid-template-columns: 1fr ;
    }
    .calendar-container{
        display: block !important; 
        position: static;
    }

    .calendar-toggle-btn {
      display: none;
    }
    .event-banner-title{
        font-size: 0.95rem;
    }
    .event-details-title{
        font-size: 0.91rem;
    }
    .event-details-title p{
        font-size: 0.85rem;
    }
    .calendar-grid {
        display: grid;
        grid-template-columns: repeat(7, 1fr);
        gap: 1px;
        background: var(--border-color);
        border-radius: 8px;
        overflow: hidden;
    }

    .calendar-close-btn {
        display: none; /* Pas de bouton close sur petit écran */
    }
}
 @media (max-width: 480px) {
    .calendar-container {
        background: white;
        border-radius: 12px;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
        padding: 30px;
    }

    .calendar-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .calendar-title {
        font-size: 1.2rem;
        font-weight: 600;
        color: var(--primary-color);
    }

    .calendar-nav {
        display: flex;
        gap: 10px;
    }

    .nav-btn {
        background: var(--light-bg);
        border: none;
        padding: 8px 12px;
        border-radius: 6px;
        cursor: pointer;
        transition: background-color 0.3s;
    }

    .nav-btn:hover {
        background: var(--border-color);
    }

    .calendar-grid {
        display: grid;
        grid-template-columns: repeat(7, 1fr);
        gap: 1px;
        background: var(--border-color);
        border-radius: 8px;
        overflow: hidden;
    }

    .calendar-day-header {
        background: var(--primary-color);
        color: white;
        text-align: center;
        font-weight: 600;
    }

    .calendar-day {
        background: white;
        text-align: center;
        cursor: pointer;
        transition: background-color 0.3s;
        position: relative;
        min-height: -40px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .calendar-day:hover {
        background: var(--light-bg);
    }

    .calendar-day.other-month {
        color: #ccc;
        background: #f9f9f9;
    }

    .calendar-day.today {
        background: var(--accent-color);
        color: white;
        font-weight: 600;
    }

    .calendar-day.has-event {
        background: #e3f2fd;
        color: var(--primary-color);
        font-weight: 600;
    }

    .calendar-day.selected {
        background: var(--secondary-color);
        color: white;
    }
}
/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(10);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-out;
}

.no-events {
    text-align: center;
    padding: 40px;
    color: #666;
}

.no-events i {
    font-size: 4rem;
    margin-bottom: 20px;
    color: var(--border-color);
}
body.noscroll {
  overflow: hidden;
}

/* decisons */

/* Barre de recherche claire, visible */
.search-box-decision {
    display: flex;
    align-items: center;
    position: relative;
    width: 100%;
}

.search-box-decision input {
    flex: 1;
    padding: 10px 15px;
    margin-right: 12px;
    margin-left: 10px;
    font-size: 1rem;
    border: 2px solid var(--border-color);
    border-right: none; /* empêche double bordure avec le bouton */
    border-radius: 8px 0 0 8px;
    outline: none;
    background: white;
    color: #222;
    box-sizing: border-box;
}


.search-box-decision .search-btn {
    background: var(--accent-color);
    color: white;
    padding: 10px 16px;
    border-radius: 0 8px 8px 0;
    cursor: pointer;
    margin-left: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--accent-color);
    border-left: none;
    height: 100%;
}

.decision-actions a:hover{
    color: white;
    transition: color 0.3s ease;
}

main {
    max-width: 90%;
    margin-left: 5%;
    margin-top: 3px;
}