@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css');



body {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    background-color: #f0f0f0;
}


header {
    background-color: #ffffff;
    padding: 10px 0;
    text-align: center;
}
.header-top-line, .mobile-header {
    display: none;
}

header nav a {
    color: rgb(0, 0, 0);
    background: none;
    border: none;
    margin: 0 20px;
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.3s;
}

header nav a:hover {
    color: #f44336;
}


.image-pc {
    width: 100%;
    height: 350px;   
    background-size: cover;
    background-position: center;
}

.image-mobile {
    display: none;
}

@media screen and (max-width: 768px) {
    .image-pc {
        display: none;
    }
    .image-mobile {
        display: block;
        margin: 0 auto;
        width: 100%; 
    }
}


h2.section-title {
    text-align: center;
    margin: 20px 0 15px;
    font-size: 50px;
    font-weight: 700;
    letter-spacing: 3px;
    color: #000000;
}


.image-banner {
    width: 100%;
    max-height: 100px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.5);
}

.image-banner img {
    width: 100%;
    max-height: 100px;
    object-fit: cover;
    opacity: 0.9;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
}


@media screen and (max-width: 768px) {

    .image-banner img {
        display: block;
        margin: 0 auto;
        width: 100%;
    }
}

.pinned-image {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.pinned-image img {
    width: 95%;
    max-width: 900px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
}



.contact-container {
    width: 90%;
    max-width: 1600px;
    margin: 30px auto 10px auto; 
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contact-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    width: 100%;
}

.contact-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: #fff;
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.15);
    min-height: 250px;
    position: relative;
}

.boss {
    width: 260px;
    margin: 20px auto 10px auto;
}

.boss h4,
.employee h4 {
    font-size: 25px;
    font-weight: bold;
    color: #000;
    text-transform: uppercase;
    margin-bottom: 5px;
    margin-top: 5px;
    width: 220px;
}

.contact-card .image img {
    width: 180px;
    height: 180px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid #ccc;
    margin-bottom: 5px;
}

.contact-card .info h3 {
    font-size: 20px;
    font-weight: bold;
    color: #222;
    margin-top: 0px;
    margin-bottom: 2px;
}

.contact-card .content {
    font-size: 14px;
    color: #555;
    margin-bottom: 2px;
}

.contact-card .numero_tel {
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: #333;
    font-weight: bold;
    margin-top: 2px;
}

.contact-card .numero_tel i {
    font-size: 20px;
    color: #f44336;
}

.separator {
    width: 80%;
    height: 1px;
    background-color: #ddd;
    margin: 10px 0;
}



    .menu-toggle {
        background: none;
        border: none;
        color: rgb(0, 0, 0);
        font-size: 24px;
        cursor: pointer;
        display: none; 
    }
 
    @media (max-width: 768px) {
        .menu-toggle {
            display: block;
        }

        nav {
            display: none;
            flex-direction: column;
            position: center;
            top: 60px;
            left: 0;
            background: #ffffff;
            width: 100%;
            padding: 10px;
            z-index: 1000;
        }

        nav.active {
            display: flex;
        }

        nav a {
            padding: 10px;
            text-align: center;
            display: block;
        }
        .mobile-header {
            display: flex;
            margin-top: 45px;
            z-index: 1001;
        }
        .header-top-line {
            display: block;
            width: 100%;
            height: 45px;
            background-color: #ffffff;
            position: fixed;
            top: 0;
            left: 0;
            z-index: 1001;
        }
         .nava {
            display: none;
        } 
    }



.latest-news-container,
.latest-scoop-container {
    width: calc(100% - 800px);
    margin: 50px auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.latest-news-card,
.latest-scoop-card {
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    border-radius: 8px;
    background-color: #fff;
}

.latest-news-card img,
.latest-scoop-card img  {
    width: 100%;
    height: auto;
    display: block;

}

.latest-news-content,
.latest-scoop-content {
    padding: 10px;
}

.latest-news-card .news-summary,
.latest-scoop-card .scoop-summary {
    position: absolute;
    bottom: 70px;
    left: 10px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.9em;
    max-width: 90%;
}

.latest-news-card .news-title, 
.latest-scoop-card .scoop-title {
    margin-top: 40px;
    font-size: 1.2em;
    text-align: center;
}

.latest-news-card .news-date,
.latest-scoop-card .scoop-date {
    text-align: center;
    color: #777;
    margin-top: 5px;
    font-size: 0.8em;
}

.other-news-container,
.other-scoop-container {
    width: calc(100% - 800px);
    grid-template-columns: repeat(2, 1fr);
    margin: 30px auto;
    display: grid;
    gap: 20px;
}

.other-news-card,
.other-scoop-card {
    display: flex;
    align-items: center;
    gap: 15px;
    background-color: #fff;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.other-news-card img,
.other-scoop-card img {
    width: 25%;
    border-radius: 8px;
    object-fit: cover;
}

.other-news-content,
.other-scoop-content {
    flex-grow: 1;
}

.other-news-title,
.other-scoop-title {
    font-size: 1.1em;
    margin: 0;
    color: #000000;
}

.news-date,
.scoop-date {
    font-size: 0.8em;
    color: #777;
}

@media (max-width: 1024px) {
    .latest-news-container, .other-news-container {
        width: 90%;
        margin: 30px auto;
    }

    .latest-news-container {
        grid-template-columns: 1fr;
    }

    .other-news-card {
        flex-direction: column;
        text-align: center;
    }

    .other-news-card img {
        width: 50%;
        margin-bottom: 10px;
    }
}

@media (max-width: 1024px) {
    .latest-scoop-container, .other-scoop-container {
        width: 90%;
        margin: 30px auto;
    }

    .latest-scoop-container {
        grid-template-columns: 1fr;
    }

    .other-scoop-card {
        flex-direction: column;
        text-align: center;
    }

    .other-scoop-card img {
        width: 50%;
        margin-bottom: 10px;
    }
}
nav#navMenu a.active {
        color: red;
/*     border-bottom: 3px solid rgb(0, 0, 0);
    padding-bottom: 8px; */ 
}

.active-page-name {
    display: none; 
    font-size: 18px;
    font-weight: bold;
    align-content: center;
    color: #000000; 
}

@media (max-width: 768px) {
    .active-page-name {
        display: inline-block;
    }
    nav#navMenu a.active {
        color: rgb(0, 0, 0);
}
}

.pubs-container1 {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: 20px;
    margin-bottom: 20px;
}

.pubs-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px; 
}


.pub-long {
    width: 45%;
    border-radius: 15px; 
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}


@media (max-width: 768px) {
    .pub-top{
        flex-direction: column;
        align-items: center;
    }
    .pub-long{
        width: 55%;
    }
}

.latest-events-container {
    width: calc(100% - 800px);
    margin: 50px auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.latest-event-card {
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    border-radius: 8px;
    background-color: #fff;
}

.latest-event-card img {
    width: 100%;
    height: auto;
    display: block;
}

.latest-event-content {
    padding: 10px;
}

.latest-event-card .event-title {
    margin-top: 10px;
    font-size: 1.3em;
    text-align: center;
    font-weight: bold;
}

.latest-event-card .event-date {
    text-align: center;
    color: #777;
    margin-top: 5px;
    font-size: 0.8em;
}

.other-events-container {
    width: calc(100% - 800px);
    grid-template-columns: repeat(2, 1fr);
    margin: 30px auto;
    display: grid;
    gap: 20px;
}

.other-event-card {
    display: flex;
    align-items: center;
    gap: 15px;
    background-color: #fff;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.other-event-card img {
    width: 25%;
    border-radius: 8px;
    object-fit: cover;
}

.other-event-content {
    flex-grow: 1;
}

.other-event-title {
    font-size: 1.1em;
    margin: 0;
    color: #000000;
}

.event-date {
    font-size: 0.8em;
    color: #777;
}

@media (max-width: 1024px) {
    .latest-events-container, .other-events-container {
        width: 90%;
        margin: 30px auto;
    }

    .latest-events-container {
        grid-template-columns: 1fr;
    }

    .other-event-card {
        flex-direction: column;
        text-align: center;
    }

    .other-event-card img {
        width: 50%;
        margin-bottom: 10px;
    }

}

.latest-journal-container {
    width: calc(100% - 800px);
    margin: 50px auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr); 
    gap: 25px;
}

.latest-journal-card {
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    border-radius: 8px;
    background-color: #fff;
}

.latest-journal-card img {
    width: 100%;
    height: auto;
    display: block;
}

.latest-journal-content {
    padding: 10px;
}

.latest-journal-content .journal-title {
    margin-top: 10px;
    font-size: 1.3em;
    text-align: center;
    font-weight: bold;
}

.latest-journal-card .journal-date {
    text-align: center;
    color: #777;
    margin-top: 5px;
    font-size: 0.8em;
}

@media (max-width: 1024px) {
    .latest-journal-container {
        width: 90%;
        grid-template-columns: 1fr; 
        margin: 30px auto;
    }

    .latest-journal-content {
        text-align: center;
    }
}

.events_program {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
    margin: 50px auto;
    max-width: 1200px;
    padding: 0 20px;
}

.date-group {
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    padding: 20px;
}

.events_program_text {
    color: rgb(255, 255, 255);
    background-color :#f44336;
    text-align: center;
    font-size: 1.2em;
    font-weight: bold;
    border-radius: 5px;
    
}

.event_flex {
    color: rgb(0, 0, 0);
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    background-color: #ffffff;
    border-radius: 5px;
    padding: 5px;
    margin-bottom: 5px;
    font-size: 1.0em;
}

.img_program {
    width: 15%;
    border-radius: 5px;
}

@media (max-width: 1024px) {
.events_program {
    max-width: 100%;  
    grid-template-columns: 1fr;
    margin: 0px;
    padding: 0 5px;
}
}

#imageModal {
    display: none;
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    flex-direction: column;
    justify-content: center;
    align-items: center;    
    cursor: grab;
    z-index: 9999;
}

.zoom-container {
    display: flex; 
    justify-content: center;
    align-items: center;
    overflow: hidden; 
    max-width: 97%;
    max-height: 97%;
}

.modal-instruction {
    color: #fff;
    font-size: 12px;
    margin-top: 4px;
    text-align: center;
}

#imageModal .modal-content {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.close {
    position: absolute;
    top: 40px;
    right: 30px;
    font-size: 30px;
    color: white;
    cursor: pointer;
}

.close:hover {
    color: red;
}

/* .loupe {
    position: absolute;
    border: 3px solid #000;
    cursor: pointer;
    width: 200px;
    height: 100px;
    display: none;
    background-repeat: no-repeat;
    background-size: 200% 200%;
    z-index: 10;
} */
 /* === DARK MODE OVERRIDES === */
body.dark-mode {
    background-color: #1e1e1e;
    color: #e0e0e0;
}

body.dark-mode header,
body.dark-mode .header-top-line,
body.dark-mode .mobile-header {
    background-color: #2c2c2c;
}

body.dark-mode nav a {
    color: #e0e0e0;
}

body.dark-mode nav a:hover,
body.dark-mode nav#navMenu a.active {
    color: #f44336;
}

body.dark-mode .image-banner,
body.dark-mode .contact-card,
body.dark-mode .latest-news-card,
body.dark-mode .other-news-card,
body.dark-mode .latest-scoop-card,
body.dark-mode .other-scoop-card,
body.dark-mode .latest-event-card,
body.dark-mode .other-event-card,
body.dark-mode .latest-journal-card,
body.dark-mode .date-group,
body.dark-mode .event_flex {
    background-color: #2a2a2a;
    color: #f0f0f0;
}

body.dark-mode .contact-card .numero_tel i,
body.dark-mode .events_program_text {
    color: #ffffff;
}

body.dark-mode .separator {
    background-color: #444;
}

body.dark-mode .pub-long {
    background-color: #2b2b2b;
}

body.dark-mode .modal-content h3,
body.dark-mode .modal-content p,
body.dark-mode .modal-content button {
    color: #f0f0f0;
}

body.dark-mode .modal-content button.btn-cancel {
    background-color: #555;
    color: white;
}

body.dark-mode .modal-content button.btn-confirm {
    background-color: #f44336;
    color: white;
}

body.dark-mode .toolbar button {
    background-color: #444;
    color: white;
    border: 1px solid #777;
}
body.dark-mode h3.name,
body.dark-mode p.numero_tel,
body.dark-mode h3.other-news-title,
body.dark-mode h3.other-scoop-title,
body.dark-mode .boss h4, 
body.dark-mode .employee h4 {
    color: white;
}
body.dark-mode .contact-card .numero_tel i {
    color: #f44336;
}

body.dark-mode .mobile-header i,
body.dark-mode .mobile-header span {
    color: white;
}
body.dark-mode #navMenu {
    background-color: #2c2c2c
}
button#toggleDarkMode {
    position: fixed;
    top: 10px;
    right: 10px;
    background: none;
    border: 2px solid currentColor;
    padding: 5px 10px;
    border-radius: 8px;
    cursor: pointer;
  }
  .icondarkmobile {
    display: none;
  }
  @media (max-width: 1024px) {
    .icondarkmobile {
      display: block;
      margin-left: auto;
      margin-right: 10px;
      cursor: pointer;
    }
    .icondarkmobile:hover, 
    body.dark-mode .icondarkmobile:hover i {
      color: #f44336;
    }
    .icondarkmobile i {
        font-size: 20px ;
        vertical-align: bottom;
    }
    .icondark {
        display: none;
      }
}

#overlay-annonce {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.85);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
  }
  
  .overlay-text {
    font-size: 28px;
    font-weight: bold;
    color: #111;
    max-width: 90%;
    padding: 20px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
  }
  


  .maire-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 99997;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.8s ease-in-out;
  }
  
  .maire-popup-content {
    background: #fff;
    color: #111;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    max-width: 425px;
    width: 80%;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.4);
    animation: popIn 0.5s ease-out;
    position: relative;
  }
  
  .maire-popup-content .title {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 25px;
    color: #000;
  }
  
  .candidate {
    margin-bottom: 20px;
    animation: fadeUp 0.6s ease-in-out;
  }
  
  .candidate img {
    width: 140px;
    height: 140px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid #444;
    margin-bottom: 10px;
  }
  
  .candidate.winner img {
    transform: scale(1.2);
    border-color: gold;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.6);
  }
  .candidate.loser img {
    margin-bottom: 1px;
  }
  .candidate h2 {
    margin: 5px 0;
    font-size: 20px;
    color: #222;
  }
  .candidate.loser h2 {
  margin-top: 5px;
  }
  .percent {
    font-size: 24px;
    margin: 5px;
    font-weight: bold;
    color: #f44336;
  }
  
  .blanc {
    margin-top: 15px;
    font-size: 16px;
    color: #333;
  }
  
  .close-btn {
    background: #f44336;
    color: #fff;
    padding: 10px 20px;
    border: none;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 20px;
    transition: background 0.3s;
  }
  
  .close-btn:hover {
    background: #c62828;
  }
  
  @keyframes fadeIn {
    from { opacity: 0 }
    to { opacity: 1 }
  }
  
  @keyframes popIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
  }
  
  @keyframes fadeUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
  }
  
  #confetti-canvas {
    position: fixed;
    pointer-events: none;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99998;
  }
.sondage {
text-align: center;
  }
.poll-public {
    margin: 30px auto;
    padding: 20px;
    max-width: 350px;
    background: #f7f7f7;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    font-family: 'Poppins', sans-serif;
}
.poll-title {
    font-size: 20px;
    margin-bottom: 15px;
}
.poll-option {
    margin-bottom: 10px;
}
.vote-button {
    margin-top: 10px;
    padding: 8px 16px;
    background: #ff0000;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

body.dark-mode .poll-public {
    background: #2c2c2c;
    color: #ffffff;
}
.already-voted-message {
    margin-top: 10px;
    font-weight: bold;
    color: #28a745;
}
.youtube-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px 15px;
    max-width: 1280px;
    margin: 40px auto 60px auto;
    padding: 0 10px;
}
.youtube-card {
    border-radius: 11px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 12px;
}
.youtube-thumb {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    cursor: pointer;
    transition: filter 0.2s;
}
.youtube-thumb:hover {
    filter: brightness(0.93);
}
.youtube-title {
    font-size: 1.0em;
    font-weight: 600;
    margin-top: 10px;
    text-align: center;
    color: #232323;
    padding: 0 8px;
    word-break: break-word;
}

body.dark-mode .youtube-title {
   color: #ffffff 
}

.slider-images {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 15px;
}
.slider-img {
    width: 95%;
    max-width: 900px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
}
.slider-img[style*="display:none"] {
    opacity: 0;
    transition: none;
}
.slider-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 10px 0 5px 0;
    gap: 12px;
}
.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #bbb;
    display: inline-block;
    cursor: pointer;
    transition: background 0.2s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.12);
}
.slider-dot.active {
    background: #fe4e4a;
}

 .magazine-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 28px;
    padding: 32px;
    margin: auto;
}
.magazine-card {
    background: #232323;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 16px #0004;
    text-align: center;
    transition: transform 0.2s;
}
.magazine-card:hover {
    transform: scale(1.04);
}
.magazine-thumb {
    width: 100%;
    object-fit: cover;
    display: block;
}
.magazine-title {
    color: #fff;
    font-size: 1.2rem;
    padding: 12px 0 16px 0;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
}


.magazine-detail-container {
    width: 95%;
    border-radius: 24px;
}
.magazine-images {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    justify-content: center;
    margin-top: 5px;
}
.magazine-page {
    width: 95%;
    object-fit: cover;
    border-radius: 8px;
}
@media (max-width: 600px) {
    .magazine-detail-container {padding: 10px;}
    .magazine-images {gap: 8px;}
    .magazine-page {width: 95%;}
}
.retrun_magazines {
    margin: 55px 0 0px 5%;
}

.retrun_magazines a {
    color: #fff;
    text-decoration: none;
    font-weight: 900;
    font-size: 1.05em;
    display: inline-flex;
    align-items: center;
    gap: 8px; 
    transition: color 0.2s;
}

.retrun_magazines a:hover {
    color: red;
}

.retrun_magazines a i {
    color: inherit;
}

