@import url("https://fonts.googleapis.com/css2?family=Baloo+2&display=swap");

@font-face {
    font-family: 'Ampire';
    src: url('police/ampireexpand.ttf') format('truetype'); 
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Manolette';
    src: url('police/MANOLETE.ttf') format('truetype'); 
    font-weight: normal;
    font-style: normal;
}

header {
    background: white;
    padding: 1em 0;
    color: black;
}

body {
    overflow-x: hidden;
}

@media (max-width: 768px) {
    html, body {
        overflow-x: hidden !important;
        margin: 0; 
        padding: 0;
    }

    * {
        box-sizing: border-box; 
    }
}

.containernav {
  display: flex;
  align-items: center;
  justify-content: flex-start; 
  gap: 200px; 
  width: 90%;
  max-width: 1200px;
  margin: 0 auto; 
}

.logo-nav {
    display: flex;
    align-items: center; 
    gap: 20px;
    height: 100%; 
}

.logo-nav a {
    text-decoration: none;
}

nav {
    display: flex;
    align-items: center; 
    justify-content: center;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
    align-items: center; 
}

nav ul li {
    position: relative; 
}

nav ul li a {
    color: black;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.3em;
    transition: color 0.3s;
    line-height: 1; 
    display: flex; 
    align-items: center;
    font-family: 'Poppins', 'sans-serif';
}

nav ul li:nth-child(1) a {
    color: #9307ED;
}

nav ul li:nth-child(2) a {
    color: #FF0000;
}

nav ul li:nth-child(3) a {
    color: #FFD700;
}

nav ul li:nth-child(4) a {
    color: #9307ED;
}

nav ul li:nth-child(5) a {
    color: #FF0000;
}

nav ul li:nth-child(6) a {
    color: #FFD700;
}

nav ul li:nth-child(1) a:hover {
    color: #FF0000;
}

nav ul li:nth-child(2) a:hover {
    color: #FFD700;
}

nav ul li:nth-child(3) a:hover {
    color: #9307ED;
}

nav ul li:nth-child(4) a:hover {
    color: #FF0000;
}

nav ul li:nth-child(5) a:hover {
    color: #FFD700;
}

nav ul li:nth-child(6) a:hover {
    color: #9307ED;
}

.menu-toggle {
    display: none;
    cursor: pointer;
    font-size: 30px;
    padding: 10px;
}

@media (max-width: 768px) {
    .containernav {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 10px 20px;
    }

    .menu-toggle {
        display: block;
        margin-right: 14px;
    }

    .logo-nav {
        display: flex;
        align-items: center;
        white-space: nowrap;
    }

    nav {
        width: 100%;
        background-color: white;
        position: relative;
        z-index: 1000;
    }

    nav ul {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 115%; 
        right: 15%;
        background-color: white;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        z-index: 999;
        padding: 0;
        margin-top: 0;
    }

    nav ul.active {
        display: flex; 
    }

    nav ul li {
        margin: 0;
        text-align: center;
    }

    nav ul li a {
        display: block;
        padding: 15px;
        color: #fff;
        text-decoration: none;
    }

    .dropdown-menu {
        display: none;
        flex-direction: column;
        background-color: white;  
        padding-left: 0;
        margin-top: 5px;
    }

    nav ul.active .dropdown-menu {
        display: flex; 
    }

    .dropdown-menu li a {
        color: #fff; 
        padding: 10px 15px;
        text-decoration: none;
        display: block;
        background-color: transparent;
        text-align: center;
        margin-left: 25px;
    }

    .dropdown-menu li a:hover {
        background-color: #444; 
    }

    nav ul li:nth-child(4) {
        margin-top: 80px; 
    }
}

.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 46%;
    transform: translateX(-50%); 
    margin-left: 0px;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu li {
    padding: 5px;
}

.dropdown-menu li a {
    text-decoration: none;
    color: black;
    display: block;
}

.dropdown-menu li a:hover {
    background-color: white;
}

.dropdown-menu {
    background-color: white !important; 
    border: none !important; 
    box-shadow: none !important; 
}

.dropdown-menu li a {
    text-align: center !important;
    color: #fff; 
    background-color: transparent; 
    padding: 10px 15px; 
    text-decoration: none; 
}

.dropdown-menu li a:hover {
    background-color: white; 
}

.bandeauprogrammationculturelle {
    background-image: url('photo/programmationculturelle.jpg'); 
    background-size: cover; 
    background-position: center center; 
    background-repeat: no-repeat; 
    height: 350px; 
    width: 100%; 
    position: relative; 
}

.programmation-culturelle {
    max-width: 1200px;
    margin: 2rem auto;
}

.programmation-culturelle h1 {
    font-size: 4rem;
    color: #9307ED;
    text-align: center;
    margin-bottom: 1.5rem;
    font-weight: bold;
    font-family: 'Manolette', serif;
}

@media (max-width: 768px) { 
    .programmation-culturelle h1 {
        font-size: 3rem; 
    }
}

@media (max-width: 480px) { 
    .programmation-culturelle h1 {
        font-size: 2.5rem; 
    }
}

.programmation-culturelle p {
    font-size: 1.2rem;
    line-height: 1.6;
    text-align: justify; 
    margin-bottom: 1.5rem;
    font-family: 'poppins', serif;
    max-width: 1000px;
    align-items: center;
    margin-left: auto;  
    margin-right: auto; 
}

@media (max-width: 768px) {
    .programmation-culturelle p {
        padding-left: 15px;
        padding-right: 15px;
    }
}

.titrreavenirprogrammation{
    text-align: center;
    font-family: 'Ampire', sans-serif;
    color: #FF0000;
    font-size: 2.5rem;
}

.postcard {
  display: flex;
  flex-direction: column;   
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform 0.2s, box-shadow 0.2s;
  margin: 0;
  font-size: 0.9rem;
  overflow: hidden;
}

.postcard:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.postcard__img_link {
  width: 100%;
}

.postcard__img {
  width: 100%;
  height: 200px; 
  object-fit: cover;  
  display: block;
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
}

.postcard__text {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;  
}

.postcard__title {
  font-size: 1.4rem;
  margin-bottom: 5px;
  color: #222;
  text-align: center;
}

.postcard__title a {
  text-decoration: none;
  color: inherit;
}

.postcard__subtitle {
  font-size: 0.9rem;
  color: #666;
  text-align: center;
}

.postcard__bar {
  height: 2px;
  background: #f8d210;
  width: 60px;
  margin: 10px auto;
  border-radius: 2px;
}

.postcard__preview-txt {
  font-size: 1rem;
  color: #333;
  line-height: 1.6;
  text-align: justify;
}

.postcard__tagbox {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.tag__item {
  background: #f8d210;
  color: #000;
  font-size: 0.8rem;
  padding: 5px 10px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.events-section {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr); 
  gap: 20px;
  align-items: start;
}

.events-section.hidden {
  display: none !important;
}

@media screen and (max-width: 1024px) {
  .events-section {
    grid-template-columns: repeat(2, 1fr); 
  }
}

@media screen and (max-width: 768px) {
  .events-section {
    grid-template-columns: 1fr; 
  }
}

.rejoindre-section {
  display: flex;
  justify-content: center;
  margin-top: 20px;
  background-color: #ffff00;
}

.rejoindre-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 80%; 
  padding: 20px;
}

.text-side {
  flex: 1;
}

.card-title {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 10px;
  color: #9307ED;
  font-family: 'Ampire', sans-serif;
  text-align: center;
}

.adhesionqr {
  font-size: 1.1rem;
  margin-bottom: 10px;
  text-align: center;
  font-family: 'Poppins', sans-serif;
}

.adhesionqrr{
    font-size: 1.1rem;
    margin-bottom: 10px;
    text-align: center;
    font-family: 'Poppins', 'sans-serif';
}

.adhesionqr::after {
  content: " 👉"; 
}

@media (max-width: 768px) {
  .adhesionqr::after {
    content: " 👇"; 
  }
}

.card-link {
  color: #FF0000;
  text-decoration: none;
}

.card-link:hover {
  text-decoration: underline;
}

.image-side {
    flex: 0 0 40%; 
}

.image-side img {
    width: 300px; 
    height: 200px;
}

@media screen and (max-width: 768px) {
    .rejoindre-content {
        flex-direction: column;
        align-items: center;
    }

    .text-side, .image-side {
        width: 100%; 
    }

    .image-side img {
        max-width: 100%; 
        height: auto; 
        margin-top: 20px; 
    }
}

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #333;
    color: #fff;
    padding: 15px;
    text-align: center;
    font-family: Arial, sans-serif;
    z-index: 9999;
    display: none; 
}

.cookie-banner p {
    margin: 0;
    font-size: 14px;
}

.cookie-banner a {
    color: #FFD700;
    text-decoration: none;
}

.cookie-banner a:hover {
    text-decoration: underline;
}

.cookie-banner button {
    background-color: #FFD700;
    color: #333;
    border: none;
    padding: 8px 15px;
    margin: 10px;
    cursor: pointer;
    font-size: 14px;
    border-radius: 5px;
}

.cookie-banner button:hover {
    background-color: #FFB400;
}

.cookie-banner button#accept-cookies {
    background-color: #4CAF50; 
}

.cookie-banner button#accept-cookies:hover {
    background-color: #45a049;
}

.cookie-banner button#decline-cookies {
    background-color: #F44336; 
}

.cookie-banner button#decline-cookies:hover {
    background-color: #da190b;
}

@media (max-width: 600px) {
    .cookie-banner p {
        font-size: 12px;
    }
    
    .cookie-banner button {
        padding: 6px 12px;
        font-size: 12px;
    }
}

.switch-buttons {
  text-align: center;
  margin: 20px 0;
}

.switch-btn {
  background: #fdfdfd; 
  color: #111; 
  border: 2px solid #9307ED; 
  padding: 10px 20px;
  margin: 0 5px;
  font-size: 1rem;
  cursor: pointer;
  border-radius: 8px;
  transition: 0.3s;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.switch-btn:hover {
  background: #9307ED; 
  color: #fff; 
  border-color: #9307ED;
}

.switch-btn.active {
  background: #FFD700; 
  color: #111; 
  border-color: #FFD700;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    align-items: start;
    text-align: center;
    padding: 20px 10px;
    border-bottom: 1px solid black; 
}

.footer-section {
    min-width: 180px;
}

.footer-logo img {
    width: 100px;
    height: auto;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.footer-links ul li a {
    color: black;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: bold;
    transition: color 0.3s ease;
}

.footer-links ul li:nth-child(1) a {
    color: #9307ED; 
}

.footer-links ul li:nth-child(2) a {
    color: #FF0000; 
}

.footer-links ul li:nth-child(3) a {
    color: #FFD700; 
}

.footercontact{
    padding-top: 16px;
}

.footercontact a {
    color: black;              
    text-decoration: underline;
    transition: color 0.3s ease;
}

.footercontact a:hover {
    color: #FF0000;   
}

.footer-links ul li a:hover {
    color: #FFD700;
}

.footer-map iframe {
    width: 100%;
    max-width: 250px;
    height: 150px;
    border-radius: 8px;
    padding-top: 10px;
}

.footer-socials p {
    font-size: 1rem;
    margin-top: 10px;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 8px;
}

.social-icons a {
    color: black;
    font-size: 1.5rem;
    transition: color 0.3s ease, transform 0.3s ease;
}

.social-icons a:hover {
    color: #FFD700;
    transform: scale(1.2);
}

@media (max-width: 900px) {
    .footer-container {
        grid-template-columns: repeat(2, 1fr);
        text-align: center;
    }

    .footer-map iframe {
        max-width: 100%;
    }
}

@media (max-width: 600px) {
    .footer-container {
        grid-template-columns: 1fr;
    }

    .footer-map iframe {
        margin: 0 auto;
    }
}

.textefooterbas{
    text-align: center;
    padding-top: 5px;
}

.calendar-section {
  margin: 2rem auto;
  padding: 1rem;
  max-width: 800px;
  background: #fdfdfd; 
  color: #111; 
  border-radius: 12px;
  font-family: sans-serif;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1); 
  border: 1px solid #e0e0e0; 
}

.calendar-section h2{
    text-align: center;
    color: #FF0000;
    font-family: "Manolette", sans-serif;
}

.calendar-header-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.calendar-header-controls h2 {
  font-size: 1.5rem;
  color: #9307ED; 
}

.calendar-header-controls button {
  background: #fff;
  color: #9307ED;
  border: 1px solid #9307ED;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.2s;
}

.calendar-header-controls button:hover {
  background: #9307ED;
  color: #fff;
  border-color: #9307ED;
}

.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  margin-bottom: 6px;
  font-weight: bold;
  color: #9307ED; 
}

.calendar {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}

.day {
  background: #fff; 
  padding: 10px;
  text-align: center;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
  font-size: 0.95rem;
  color: #111;
  border: 1px solid #e0e0e0; 
  transition: 0.2s;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.day.event {
  cursor: pointer;
  font-weight: bold;
  border: 2px solid #9307ED; 
}

.day.event img {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.15; 
  z-index: 0;
  border-radius: 8px;
}

.day span {
  position: relative;
  z-index: 1;
}

.day.event:hover {
  background: #f0f0ff; 
  color: #FFD700; 
}

.day.event:hover img {
  opacity: 0.3;
}

.day.weekend {
  color: #FF0000; 
}

.day.today {
  border: 2px solid #FFD700; 
  background: #fffbe6; 
}

.arrow-btn {
  background: #fdfdfd; 
  color: #9307ED; 
  border: 2px solid #9307ED;
  padding: 6px 12px;
  font-size: 1.2rem;
  cursor: pointer;
  border-radius: 8px;
  transition: 0.3s;
}

.arrow-btn:hover {
  background: #9307ED;
  color: #fff;
  border-color: #9307ED;
}

.pagination {
  width: 100%;
  display: flex;
  justify-content: center; 
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 20px;
  text-align: center; 
}

.pagination button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 6px 12px;
  background: #fff;
  color: black;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  border: 1px solid black;
}

.pagination button.active {
  background: #e63946;
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
}

.pagination button.arrow {
  font-size: 16px;
  width: 40px;
}

.pagination button[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
}

