

.access-card a:hover, .text-end a:hover, .news-content a:hover {
    color: var(--primary-color);
    font-size: 0.9rem;
    transition: color 0.3s ease;
}
/* calandar Section */
/* Style pour le clendrier */
.calendar-wrapper {
    border-radius: 10px;
}

.calendar-table {
    margin-bottom: 20px;
    display: grid;
}

.calendar-days-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    margin-bottom: 10px;
}

.day-header {
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-light);
}
.event-detail {
    border: 1px solid #ddd;
    padding: 10px 10px;
    border-radius: 10px;
}

.event-detail-titre {
    font-family: 'Merriweather', serif;
    color: var(--text-color);
    font-size: 1rem;
    margin-bottom: 5px;
    font-weight: 600;
    line-height: 1.3;
}

.event-detail p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 10px;
    line-height: 1.5;
}

.event-info {
    color: var(--text-light);
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.event-time-detail,
.event-location {
    color: var(--text-light);
    font-size: 0.9rem;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0; /* plus de bordures internes */
    background-color: transparent;
    border-radius: 10px;
    overflow: hidden;
}

.calendar {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0;
    background-color: transparent;
    border: none;
    border-radius: 60px;
    overflow: hidden;
}

.calendar-day {
    background: white;
    min-height: 50px;
    font-size: 0.9rem;
    text-align: center;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border: none;
    padding: 5px;
}

.calendar-day.event {
    background-color: var(--accent-color);
    color: white;
    border-radius: 0;
}

.calendar-day.noevent {
    background-color: white;
    color: white;
    border-radius: 0;
}
.day-number {
    color: var(--text-color);
}
.calendar-day.event-range {
    background-color: #f0f0f0;
    color: var(--font-bg);
}


/* style pour les evenements affichés dans une case */
.event {
    font-size: 0.8rem;
    margin-top: 4px;
    border-radius: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    cursor: pointer;
}

/* Styles pour la fenêtre modale (dialog) */

/* Événements à venir (liste latérale) */
.events-sidebar {
    background-color: rgba(44, 52, 93, 0.05);
    padding: 15px;
    border: 1px solid var(--bg-light);
    border-radius: 10px;
    height: auto;
    overflow: visible;
    align-self: flex-start;
}


.event-item {
    border-left: 2px solid var(--text-color);
    padding: 10px 12px;
    margin-bottom: 10px;
    border-radius: 6px;
    transition: background-color 0.2s;
}

.event-item:hover {
    background-color: var(--hover-bg);
}

.text-error {
    color: #D71920;
    font-size: 0.9rem;
    margin-top: 4px;
}
/* Hero Section */
.hero {
    color: white;
    min-height: 60vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background-image: url("/static/images/siege_haute_cours_de_justice.jpg");
    background-size: cover;
    background-position: bottom;
}

.hero:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to right, rgba(0, 32, 91, 0.915), rgba(0, 32, 91, 0.185));
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.184); 
    z-index: 2;
}
.hero-content {
    position: relative;
    z-index: 3;
}

.hero-content span {
    font-family: 'Merriweather', serif;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.btn-primary-custom {
    background: var(--accent-color);
    border: none;
    padding: 12px 30px;
    border-radius: 10px;
    font-weight: 400;
    transition: all 0.3s ease;
    text-decoration: none;
    color: white;
    display: inline-block;
    margin-right: 15px;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.btn-primary-custom:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
    color: white;
}

.btn-secondary-custom {
    background: white;
    border: 2px solid white;
    color: var(--accent-color);
    padding: 8px 15px;
    border-radius: 10px;
    font-weight: 400;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    margin-right: 15px;
    margin-bottom: 15px;
}

.btn-secondary-custom:hover {
    background: #ffffffe6;
    transform: translateY(-2px);
}

/* Message Section */
.message-section {
    padding: 40px 0;
}

.message-content {
    display: flex;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
    background-color: #fff;
    border-radius: 16px;
}

.president-photo {
    flex: 1 1 200px;
    max-width: 400px;
}

.president-photo img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 2px 5px rgba(44, 52, 93, 0.359);
}
.message-text {
    flex: 2 1 300px;
    color: #212529;
}

.message-preeidente {
    font-family: 'Merriweather', serif;
    color: var(--text-color);
    margin-bottom: 20px;
    font-size: 2rem;
}

.message-text p {
    color: var(--text-light);
    font-size: 0.96rem;
    line-height: 1.6;
    letter-spacing: 0.8px;
    margin-bottom: 15px;
}

.signature {
    margin-top: 35px;
    font-weight: 500;
    color: var(--primary-color);
}

/* Quick Access */
.quick-access {
    padding: 20px 0;
    background: var(--bg-light);
}

.section-title {
    font-family: 'Merriweather', serif;
    text-align: center;
    font-size: 1.7rem;
    color: var(--text-color);
    font-weight: 600;
}

.access-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
    margin-top: 30px;
}

.access-card {
    background-color: white;
    padding: 30px 20px;
    border-radius: 15px;
    transition: transform 0.3s;
    margin-bottom: 30px;
    box-shadow: 0 2px 7px rgba(0, 0, 0, 0.138);
}

.access-card:hover {
    box-shadow: 0 9px 26px rgba(0,0,0,0.1);
    transform: translateY(-5px);
}

.access-icon {
    width: 60px;
    height: 60px;
    margin: 5px;
    background: #c3c4ea62;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #232f51ef;
    font-size: 1.2rem;
    margin-bottom: 20px;
}
.access-icon i {
    font-size: 1.3rem;
}
.access-card span {
    font-family: 'Merriweather', serif;
    color: var(--text-color);
    margin-bottom: 15px;
    font-size: 1.2rem;
    font-weight: 600;
}

.access-card p {
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.4;
    font-size: 0.9rem;
}

.access-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 400;
    font-size: 0.9rem;
    line-height: 1.8;
    display: flex;
    align-items: center;
    gap: 4px;
}

.access-link:hover{
    text-decoration: underline;
}
.fa{
    font-size: 0.9rem;
}

/* News Section */
.news-section {
    padding: 10px 0;
}
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.news-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.news-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-content {
    padding: 1.5rem;
}

.news-single {
    background: var(--font-bg);
    color: #232f51ef;
    width: fit-content;
    padding: 2px 12px;
    font-size: 0.75rem;
    margin-bottom: 10px;
    text-align: center;
    font-weight: 500;
    border-radius: 10px;
    display: inline-block;
}

.news-title {
    font-family: 'Merriweather', serif;
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text-color);
    line-height: 1.4;
    font-weight: 600;
}

.news-excerpt {
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.4;
    font-size: 0.9rem;
}

.news-date {
    color: var(--text-light);
    font-size: 0.9rem;
    margin: 0;
}

/* Calendar Section */
.agenda-section {
    padding: 40px 0;
    background: var(--bg-light);
}

.agenda-content {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 30px;
    padding: 30px 30px;
    background: white;
    margin-top: 30px;
    border-radius: 10px;
}

.events-sidebar {
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 20px;
    background: #c3c4ea3e;
}

.events-sidebar-titre {
    font-family: 'Merriweather', serif;
    color: var(--text-color);
    margin-bottom: 5px;
    font-size: 1.2rem;
    font-weight: 600;
}

.event-item {
    display: flex;
    gap: 15px;
    padding: 15px;
}

.event-date {
    text-align: center;
    background: white;
    padding: 15px 22px;
    border-radius: 15px;
}

.event-date .day {
    display: block;
    color: var(--text-color);
    font-size: 0.8rem;
    font-weight: bold;
    line-height: 1;
}

.event-date .month {
    display: block;
    font-size: 0.7rem;
    margin-top: 2px;
}

.event-details-titre {
    font-family: 'Merriweather', serif;
    font-size: 0.95rem;
    margin-bottom: 5px;
    font-weight: 600;
    line-height: 1.3;
    color: #1b1e23e2;
}

.event-time {
    color: #666;
    font-size: 0.85rem;
    margin: 0;
}

.view-more-events {
    text-align: center;
}

.btn-view-more {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s;
    width: 100%;
    text-decoration: none;
    display: inline-block;
}

.btn-view-more:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
    color: white;
}

/* Styles pour les dialogues */
dialog {
    padding: 25px;
    border: none;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    max-width: 450px;
    width: 90%;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
}

dialog[open] {
    display: flex;
    flex-direction: column;
}

.dialog-titre {
    font-family: 'Merriweather', serif;
    margin-top: 0;
    margin-bottom: 15px;
    color: var(--primary-color);
    font-size: 1.3rem;
}

dialog p {
    margin-bottom: 20px;
    line-height: 1.6;
    color: #555;
}

dialog button {
    background: var(--primary-color);
    color: white;
    border: none;
    outline: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s;
}

dialog button:hover {
    background: var(--primary-color);
    transform: translateY(-1px);
}

dialog::backdrop {
    background: rgba(106, 121, 160, 0.4);
}

/* Documentation Section */
.documentation {
    padding: 40px 0;
}

.doc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 30px;
}

.doc-category{
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 25px;
}
.doc-category-titre{
    font-family: 'Merriweather', serif;
    color: var(--text-color);
    margin-bottom: 15px;
    font-size: 1.2rem;
    font-weight: 600;
}
.doc-list {
    list-style: none;
    padding-left: 0px;
}
.doc-list i  {
    color: var(--accent-color);
}


select {
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 10px;
    color: black;
    font-size: 0.9rem;
    outline: none;
    box-sizing: border-box;
    transition: all 0.3s ease-in-out;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    gap: 15px;
    margin-bottom: 10px;
    padding: 12px 15px;
    background-color: white;
    cursor: pointer;
}
select:focus {
    border: 1px solid #334f9b;
}
.doc-list a {
    background: white;
    padding: 1px 12px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.3s ease;
    max-width: 700px;
    margin: 10px auto;
}

.doc-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #c3c4ea62;
    color: #232f51ef;
    flex-shrink: 0;
}

.doc-text{
    flex-grow: 1;
}

.doc-titre {
    font-size: 1.02rem;
    font-weight: 600;
    color: #1b1e23e2;
    line-height: 1;
    margin-top: 20px;
}

.doc-list a:hover {
    color: #2c5530;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.doc-meta {
    font-size: 0.8rem;
    color: var(--text-light);
    line-height: 1;
}
.doc-info{
    display: flex;
    justify-content: space-between;
    gap: 30px;
    align-items: center;
    padding: 10px;
    border-radius: 8px;
    transition: background 0.3s ease;
}
.doc-info > div:first-child {
    flex: 1;
}
.doc-download {
    font-size: 1.2rem;
    color: #1f3d93;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.doc-download:hover {
    transform: scale(1.2);
}

/* Contact Section */
.contact-section {
    padding: 10px 0;
    background: var(--bg-light);
}

.contact-ensemble{
    display: grid;
    align-items: center;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.contact-form {
    background: white;
    padding: 40px;
    border-top-left-radius: 15px;
    border-bottom-left-radius: 15px;
}

.contact-form-titre,
.contact-info-titre {
    font-family: 'Merriweather', serif;
    color: var(--text-color);
    margin-bottom: 15px;
    font-size: 1.2rem;
    font-weight: 600;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #333;
    font-weight: 500;
    font-size: 0.8rem;
}

.form-group input,
.form-group textarea {
    font-family: 'Merriweather', serif;
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
    outline: none;
}
.form-group textarea {
    height: 120px;
    resize: vertical;
}
.form-group input:focus {
    border: 1px solid #334f9b;
}
.form-group textarea:focus {
    border: 1px solid #334f9b;
}

.contact-info{
    position: relative;
    margin-top: 40px;
}
.suivez-nous{
    font-family: 'Merriweather', serif;
    color: var(--text-color);
    margin-bottom: 15px;
    font-size: 1.2rem;
    font-weight: 600;
}
.contact-item {
    display: flex;
    align-items: start;
    gap: 15px;
    margin-bottom: 25px;
}

.contact-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: #c3c4ea62;
    color: #232f51ef;
}

.contact-details-titre {
    font-family: 'Merriweather', serif;
    font-size: 1.02rem;
    margin-bottom: 5px;
    font-weight: 600;
    line-height: 1.3;
    color: #1b1e23e2;
}

.contact-details p {
    color: var(--text-light);
    margin-bottom: 1rem;
    font-size: 0.92rem;
    margin: 0;
}
.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: background 0.3s;
    background: var(--accent-color);
    color: white;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background:var(--primary-color);
    transform: translateY(-2px);
}
.agenda-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.events-sidebar,
.calendar-wrapper {
  width: 100%;
}

@media (min-width: 992px) {
  .agenda-content {
    flex-direction: row;
  }

  .events-sidebar {
    width: 30%;
  }

  .calendar-wrapper {
    width: 70%;
  }
}
