
/* Box sizing rules */
*,
*::before,
*::after {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

@import url('switzer.css');

/* Set core body defaults */
body {
  min-height: 100vh;
  scroll-behavior: smooth;
  text-rendering: optimizeLegibility;
  line-height: 1.5;
  font-family: 'Switzer-Variable';
  font-weight: 400;
  color: #363062;
  font-size: 16px;
  background-color: #fff;
  margin: 0;
  padding: 0;
}

/* Responsive font-size */
@media (max-width: 1024px) { body { font-size: 15px; } }
@media (max-width: 680px) { body { font-size: 14px; } }

/* Remove list styles on ul, ol elements with a class */
ul[class], ol[class] { list-style: none; }

.col-2.simple-page ul {
  list-style: none;
  padding: 0;
}

.col-2.simple-page li {
  margin-bottom: 10px;
}

/* Links */
a {
  text-decoration: none;
  color: inherit;
}

a:hover {
  text-decoration: underline;
}

/* Images */
img {
  max-width: 100%;
  display: block;
  height: auto;
}

/* Inherit fonts for inputs and buttons */
input, button, textarea, select { font: inherit; }

/* Improve font rendering */
html { 
  scroll-behavior: smooth;
  margin: 0 !important;
  -webkit-font-smoothing: antialiased; 
  
}

/* Scrollbar styling */
body {
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 0, 0, 0.3) transparent;
}

::-webkit-scrollbar {
  width: 7px;
}

::-webkit-scrollbar-thumb {
  border-radius: 4px;
  background-color: rgba(0, 0, 0, 0.3);
  box-shadow: 0 0 1px rgba(255, 255, 255, 0.5);
}

/* WP Admin bar fix */
#wpadminbar { top: 0; bottom: auto; }
@media screen and (max-width: 600px) { #wpadminbar { position: fixed; } }

ul{
  list-style-position: inside;
}

main{
  margin: 0 0 120px 0;
}

.simple-page-main{
  margin: 0 0 120px 0;
}

.container {
  max-width: 1420px;
  margin: auto;
  width: 100%;
}

/* Gestion de Flexbox */
.flex {
  display: flex;
}

.column {
  flex-direction: column;
}

.wrap {
  flex-wrap: wrap;
}

/* Ajout d'un gap entre les colonnes */
.row {
  gap: 20px; /* Espacement entre colonnes */
  flex-direction: row;
  width: 100%;
  display: flex;
}

.column {
  flex-direction: column;
  gap: 20px;
}

.align-items-center{
  align-items: center;
}

.jc-center{
  justify-content: center;
}

/* Définition des colonnes en 12 parts égales */
[class^="col-"] {
  flex: 0 0 auto;
  width: 100%; /* Par défaut, prend toute la largeur */
}

/* Gestion des colonnes en fonction du ratio 12 colonnes */
.col-1  { width: 8.33%; }
.col-2  { width: 16.66%; }
.col-3  { width: 25%; }
.col-4  { width: 33.33%; }
.col-5  { width: 41.66%; }
.col-6  { width: 50%; }
.col-7  { width: 58.33%; }
.col-8  { width: 66.66%; }
.col-9  { width: 75%; }
.col-10 { width: 83.33%; }
.col-11 { width: 91.66%; }
.col-12 { width: 100%; }

/* Responsive : passage en colonne sur mobile */
@media (max-width: 1024px) {
  .col-md-12 { width: 100%; } /* Permet de forcer les colonnes en full-width sur tablette */
}

@media (max-width: 768px) {
  .col-sm-12 { width: 100%; } /* Sur mobile, tout s'empile */
}

/* hn */
h1 {
  font-size: clamp(2rem, 5vw, 3.5rem); /* 32px → 56px */
  font-weight: 600;
  line-height: 1.2;
}

h1.home-page{
  font-size: 44px;
  font-weight: 600;
}

h2 {
  font-size: clamp(1.75rem, 4vw, 2.75rem); /* 28px → 44px */
  font-weight: 600;
  line-height: 1.3;
}

h3 {
  font-size: clamp(1.5rem, 3.5vw, 2.25rem); /* 24px → 36px */
  font-weight: 600;
  line-height: 1.4;
}

h4 {
  font-size: clamp(1.25rem, 3vw, 1.875rem); /* 20px → 30px */
  font-weight: 600;
  line-height: 1.5;
}

h5 {
  font-size: clamp(1.125rem, 2.5vw, 1.5rem); /* 18px → 24px */
  font-weight: 500;
  line-height: 1.5;
}

h6 {
  font-size: clamp(1rem, 2vw, 1.25rem); /* 16px → 20px */
  font-weight: 500;
  line-height: 1.6;
}

/* Petites optimisations */
p {
  margin-bottom: 1rem;
}

.strong {
  font-weight: 600;
}

.small {
  font-size: 0.875rem; /* 14px */
}

.wp-block-post-title{
  margin-bottom: 20px !important;
}
/* BTN */

a{
  cursor: pointer;
}
a:hover{
  text-decoration: none;
  color: #D0A025
}

.btn{
  background-color: #435585;
  border-radius: 3px;
  padding: 10px 12px;
  color: #ffff;
  cursor: pointer;
  width: max-content;
  transition: background-color 0.3s ease;
}

.btn:hover{
  background-color: #363062;
}

/* NAVIGATION */
header{
  padding: 20px 0 0 0;
}
.container-nav-logo{
  align-items: center;
}
.container-nav-btn{
  justify-content: end;
  align-items: center;
  gap: 20px;
  flex: 1;
}

.nav-level-2{
  position: relative;
  position: relative;
  max-width: unset;
  width: 100%;
}

.menu-menu-1-container{
  width: 100%;
  max-width: 1420px;
  margin: auto;
}

.nav-level-2 ul{
  list-style: none;
  display: inline-flex;
  gap: 20px;
  margin: 0;
  padding: 0;
  width: 100%;
}

.text-logo{
  font-family: 'Switzer-Variable';
  font-size: 18px;
  font-weight: 600;
  margin-bottom: unset;
}

.hero{
  min-height: 452px;
  background-color: #435585;
  display: flex;
  justify-content: center;
  margin-bottom: 80px;
}

.hero.free{
  background-color: unset;
  justify-content: center;
  align-items: center;
  text-align: center;
  min-height: 200px;
  color: #363062;
  margin-bottom: 20px;
}

.responsive-hero {
  height: 51vh; /* Valeur par défaut sur grand écran */
  background-position-x: 52%;
}

.hero.page{
  min-height: 250px;
}

.hero > .container > h1{
  color: #F5E8C7;
  margin-left: -125px;
  z-index: 2;
}

.hero.free > .container > h1{
  margin-left: 0;
  color: #363062;
}

.hero > .container.page > h1{
  color: #F5E8C7;
  margin: unset;
  z-index: 2;
}

.hero > .container{
  display: inline-flex;
  align-items: center;
  gap: 0;
}

.hero-form{
  background-color: #363062;
  height: 220px;
  width: 220px;
  display: block;
  border-radius: 100%;
  position: relative;
  top: 0;
  left: 0;
}
.col-2.simple-page{
 padding-right: 20px; 
}
.main-content.simple-page{
  padding-left: calc(8.33% + 20px);
  border-left: 1px solid #363062;
}

.main-content.simple-page.col-10 .home.actu-recent{
  margin: 0 0 160px 0;
}

/* FOOTER */
footer{
  background-color: #363062;
  padding: 80px 0 0 0;
  color: #ffff;
}

footer .nav-level-2{
  margin: 20px auto;
  max-width: 1420px;
}

footer hr{
  max-width: 1420px;
  margin: 0 auto;
  width: 100%;
  border-top: 0.5px solid #fff;
  margin-top: 20px;
}
footer .nav-level-3{
  padding: 20px 0 0 0;
  background-color: #ffff;
  max-width: 100%;
  color: #363062;
}

footer .text-logo{
  margin-left: 10px;
}

footer .menu-menu-1-container{
  display: flex;
  justify-content: end;
}

/* Style du menu principal */
.menu {
  list-style: none;
  display: flex;
  gap: 0px;
  padding: 0;
}

/* Chaque élément parent */
.menu > li, .sub-menu li {
  padding: 0 35px 20px 5px;
}

.menu > li:first-child, .sub-menu li:first-child {
  padding: 0 40px 20px 0px;
}

/* Masquer les sous-menus par défaut */
.menu li > div {
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
  pointer-events: none;
}

/* Affichage du sous-menu au clic (classe ajoutée par JS) */
.menu li.submenu-open > div {
  opacity: 1;
  display: flex;
  background: #EAEBEF;
  color: #363062;
  width: 100%;
  margin: auto;
  position: absolute;
  left: 0;
  padding: 20px 0 0px 0;
  margin-top: 20px;
  pointer-events: auto;
}

.menu li.submenu-open > div > ul {
  display: flex;
  max-width: 1420px;
  margin: auto;
}

.menu-item-has-children a{
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.menu-item-has-children a:hover{
  color: #D0A025;
}

.menu-item-has-children > a .fa-chevron-right {
  transition: transform 0.3s ease;
}

/* Rotation du chevron quand le sous-menu est ouvert */
.menu-item-has-children.submenu-open > a .fa-chevron-right {
  transform: rotate(90deg);
}

/* Sous-menus de niveau 3 (imbriqués) */
.sub-menu .menu-item-has-children > .sub-menu-wrapper {
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

.sub-menu .menu-item-has-children.submenu-open > .sub-menu-wrapper {
  display: block;
  opacity: 1;
  background: #fff;
  padding: 10px 0;
  margin-top: 20px;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.sub-menu .menu-item-has-children.submenu-open > .sub-menu-wrapper > ul {
  display: flex;
}

.sub-menu .menu-item-has-children.submenu-open > .sub-menu-wrapper > ul > li {
  padding: 5px 0px;
}

.news-container {
  max-width: 1200px;
  margin: auto;
  padding: 20px;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(460px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.news-item {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.3s ease-in-out;
}

.news-item:hover {
  transform: translateY(-5px);
}

.news-thumbnail img {
  width: 100%;
  height: auto;
  display: block;
}

.news-title {
  font-size: 20px;
  margin: 15px 0 10px 0;
  font-weight: 600;
}

.news-excerpt {
  color: #363062;
  line-height: 1.9em;
}

.pagination {
  margin-top: 40px;
  text-align: center;
  margin-bottom: 160px;
  font-weight: 600;
}

.cat-title{
  text-transform: uppercase;
  background-color: #F5E8C7;
  color: #363062;
  padding: 7px 10px;
  width: max-content;
  border-radius: 3px;
  font-size: 12px;
}

select {
  appearance: none; 
  -webkit-appearance: none; 
  -moz-appearance: none;
  background-color: #fff;
  border: 1px solid #363062;
  border-radius: 3px;
  padding: 8px 12px;
  font-size: 16px;
  cursor: pointer;
}

select {
  background-image: url('../images/chevron-down-solid.svg'); 
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 12px;
  padding-right: 30px;
  margin-left: 10px;
  margin-right: 40px;
}

.container.actu{
  margin-top: 20px;
  justify-content: space-between;
}

.news-form{
  justify-content: end;
}

.search-form > input.search-field{
  appearance: none; 
  -webkit-appearance: none; 
  -moz-appearance: none;
  background-color: #fff;
  border: 1px solid #363062;
  border-radius: 3px;
  padding: 8px 12px;
  font-size: 16px;
  cursor: pointer;
}

.actu-recent{
  margin: 40px 0 60px 0;
}

.latest-news{
  margin-top: 40px;
  min-height: 656px;
}

.news-content{
  display: flex;
  flex-direction: column;
  justify-content: end;
  padding: 60px;
  height: 100%;
  box-sizing: border-box;
}

.news-content > h3{
  font-size: 36px;
  font-weight: 600;
  color: #fff;
}

.latest-news-right.col-4{
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-left: 40px;
}

article.small-news{
  flex: 1;
}

.home.actu-recent{
  margin: 160px 0;
}

.arbo-card-page{
  margin-bottom: 368px;
  gap: unset;
}
.page-card {
  background-color: #363062; 
  border-radius: 100%; 
  color: white; 
  height: 340px; 
  padding: 60px; 
  gap: 10px;
  z-index: 2;
}

.container-shape{
  position: relative;
}

.intro-shape{
  padding: 40px;
  box-sizing: border-box;
  margin-bottom: 80px;
}
.custom-shape-1 {
  width: 62px;
  height: 62px;
  background-color: #F5E8C7;
  clip-path: polygon(0 50%, 0 0, 100% 0, 100% 100%, 50% 100%, 50% 50%);
  position: absolute;
  transform: rotate(-90deg);
  left: -31px;
}

.custom-shape-2 {
  width: 62px;
  height: 62px;
  background-color: #F5E8C7;
  clip-path: polygon(0 50%, 0 0, 100% 0, 100% 100%, 50% 100%, 50% 50%);
  position: absolute; 
  right: -31px;
}

.custom-shape-3 {
  width: 450px;
  height: 210px;
  background-color: #435585;
  position: absolute; 
  left: -122px;
  top: -60px;
}

.custom-shape-4 {
  width: 210px;
  height: 283px;
  background-color: #818FB4;
  position: absolute; 
  right: -40px;
  top: -75px;
}

.container-page-card{
  position: relative;
}
.container-page-card hr{
  position: absolute;
  border: 5px solid #363062;
  width: 100%;
  top: 50%;
  z-index: 1;
}

.CTA-container{
  background-color: #363062;
  color: #fff;
  text-align: center;
  margin-bottom: 160px;
  border-radius: 14px;
  padding: 90px 200px;
}

.container-sortie-content{
  margin-top: 40px;
  gap: 140px;
  box-sizing: border-box;
  overflow: hidden;
  justify-content: space-between;
}

.container-sortie-content .col-6{
  width: calc(50% - 140px);
}

.container-sortie-content img{
  height: 100%;
  border-radius: 14px;
  object-fit: cover;
}

.container-sortie-content .btn{
  width: max-content;
}

.sortie-meta-data{
  padding: 20px;
  border-left: 8px solid #F5E8C7;
  gap: 10px;
}

.sortie-meta-data p{
  margin-bottom: unset;
} 

.sortie-content{
  gap: 10px;
}

.main-content.simple-page h2 {
  font-size: clamp(1.25rem, 3vw, 1.875rem); /* 20px → 30px */
  line-height: var(--line-height-base);
  font-weight: 600;
  margin-bottom: 10px; /* Espace entre les paragraphes */
  margin-top: 40px;
}
.main-content.simple-page h2:first-child {
  margin-top: unset;
}
.main-content.simple-page p {
  font-size: clamp(0.875rem, 2vw, 1rem); /* Min 14px - Max 16px */
  line-height: var(--line-height-base);
  font-weight: 400;
  margin-bottom: 1.2em; /* Espace entre les paragraphes */
  text-wrap: balance;
}

/* LISTES */
.main-content.simple-page ul,
.main-content.simple-page ol {
  margin-bottom: 1.2em;
  padding-left: 1.5em;
}

.main-content.simple-page ul {
  list-style-type: disc;
}

.main-content.simple-page ol {
  list-style-type: decimal;
}

.main-content.simple-page li {
  margin-bottom: 0.5em;
}

/* LIENS */
.main-content.simple-page a {
  color: var(--has-secondary-color, #363062);
  text-decoration: none;
}

.main-content.simple-page a:hover {
  text-decoration: underline;
}

.ajax-link.active {
  font-weight: bold;
}

.container-login-page{
  height: 100vh;
  width: 100vw;
  display: flex;
}

.c-9{
  flex: 7;
}
.c-9 img{
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.c-3{
  flex: 5;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
}

.c-3 .pmpro{
  width: 40%;
}

.c-3 .pmpro_section{
  margin: unset;
}

.c-3 .pmpro_card{
  border: none;
  box-shadow: none;
  padding: unset;
}

.c-3 .pmpro_section:has(#loginform) .pmpro_card_content:not(.widget .pmpro_section:has(#loginform) .pmpro_card_content){
  padding: unset;
}

.c-3 .pmpro_card_content + .pmpro_card_actions{
  text-align: center;
  background-color: transparent;
  border: none;
}

.dash-intro .container{
  background-color: rgba(129, 143, 180, 0.1);
  padding: 40px;
  border-radius: 14px;
  margin: 60px auto;
}

.dash-intro p{
  margin: 0;
}

.president-word{
  padding: 40px;
  box-sizing: border-box;
  border-radius: 14px;
  border: 1px solid #363062;
}

.president-img{
  height: 160px;
  width: 160px;
  border-radius: 100px;
  margin-bottom: 20px;
}

.main-bento-content, .list-member{
  margin-bottom: 60px;
}

.main-bento-content .container{
  justify-content: space-between;
}

.main-bento-content .col-4{
  display: flex;
  flex-direction: column;
  gap: 60px;
}

.pmpro-active-members li{
  display: flex;
  border-bottom: 1px solid rgba(54, 48, 98, 0.10);
  padding: 24px 0;
  align-items: center;
  gap: 10px;
}

.pmpro-active-members li p{
  margin: unset;
}

.pmpro-active-members li p:first-child{
  font-weight: 600;
}

.pmpro-active-members img{
  height: 40px;
  width: 40px;
  border-radius: 100px;
}


.genre-folders.container{
  display: flex; 
  gap: 1rem; 
  margin-top: 2rem; 
  flex-wrap: wrap;
  padding: 12px 1rem;
  background-color: rgba(129, 143, 180, 0.10);
}

.genre-folder{
  flex: auto;
  display: flex;
  justify-content: start;
  padding: 12px 1rem;
  background-color: #ffffff;
  border-radius: 8px;
  align-items: center;
  gap: 8px;
}

.genre-folder:hover{
  background-color: rgba(129, 143, 180, 0.05);
}

.folder-title h6{
  font-weight: 600;
  margin: unset;
}

.folder-title p{
  font-size: 14px;
  font-weight: 400;
  margin: 0;
}

.items-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.media-item_text{
  display: flex;
  padding: 16px 0 0 0;
  justify-content: space-between;
  align-items: center;
}

.media-item_text p{
  margin: 0;
}

.media-item_text span{
  padding: 6px 12px;
  background-color: #F5E8C7;
  color: #D0A025;
  border-radius: 6px;
  margin: unset;
}

.open-media, .download-media{
  width: 100%;
  text-align: center;
  display: block;
  background-color: rgba(129, 143, 180, 0.10);
  padding: 6px 3px;
  border-radius: 6px;
  font-weight: 500;
  font-size: 14px;
}

#menu-toggle{
  display: none;
}
.wp-block-contact-form-7-contact-form-selector{
  width: 1000px;
    justify-content: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: auto;
}
#wpcf7-f329-o1{
  width: 100%;
}
#wpcf7-f329-o1 input, #wpcf7-f329-o1 textarea{
  width: 100%;
  border-radius: 8px;
  border: 1px solid #818fb433;
  padding: 8px 12px;
}

#wpcf7-f329-o1 input[type=submit]{
  background-color: #435585;
  border-radius: 3px;
  padding: 10px 12px;
  color: #ffff;
  cursor: pointer;
  width: max-content;
  transition: background-color 0.3s ease;
}

#wpcf7-f329-o1 input[type=submit]:hover{
  background-color: #363062;
}

.hero-page-single h1{
  text-align: center;
  width: 75%;
}

.hero-page-single .container{
  min-height: 400px;
  flex-direction: column;
  gap: 20px;
}

.thumbnail-single{
  height: 550px;
}

.post-content {
  line-height: 1.7;
  font-size: 1.1rem;
  color: #212121;
  max-width: 750px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.post-content p {
  margin-bottom: 1.5em;
  line-height: 190%;
}

.post-content a {
  color: #1C77C3;
  text-decoration: underline;
  transition: color 0.3s;
}
.post-content a:hover {
  color: #E97C16;
}

.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5,
.post-content h6 {
  font-weight: 600;
  margin: 2.5rem 0 1rem;
  line-height: 1.4;
}

.post-content h1 { font-size: 2.2rem; }
.post-content h2 { font-size: 1.8rem; }
.post-content h3 { font-size: 1.6rem; }
.post-content h4 { font-size: 1.4rem; }
.post-content h5 { font-size: 1.2rem; }
.post-content h6 { font-size: 1rem; }

.post-content ul,
.post-content ol {
  margin: 1.5rem 0 1.5rem 1.5rem;
  padding-left: 1rem;
}

.post-content li {
  margin-bottom: 0.6rem;
}

.post-content hr {
  margin: 2.5rem auto;
  border: none;
  border-top: 1px solid #ccc;
  width: 100%;
}

.post-content img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 2rem auto;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.post-content blockquote {
  font-style: italic;
  padding: 1rem 1.5rem;
  margin: 2rem 0;
  border-left: 4px solid #E97C16;
  background: #f9f9f9;
  color: #555;
}

.meta-info {
  margin-top: 1rem;
  gap: 1rem;
  font-size: 0.875rem;
  color: #666;
}

.hero-page-single img{
  border-radius: 14px;
  width: 100%;
  object-fit: cover;
  object-position: center;
  max-height: 550px;
  margin-bottom: 100px;
}

.president-word ul{
  list-style-type: circle;
  list-style-position: inside;
  padding-left: 15px;
}

@media (max-width: 1024px) {
  .responsive-hero {
    height: 60vh;
    background-position-y: 60%;
  }
}

@media (max-width: 768px) {

  #menu-toggle{
    display: block;
  }

  .responsive-hero {
    height: 50dvh;
    min-height: unset;
    background-position-y: 50%;
    margin-bottom: 40px;
  }

  .nav-level-2.open{
    padding-top: 20px;
  }
  .nav-level-2 ul {
    flex-direction: column;
    display: none;
  }
  .nav-level-2.open ul {
    display: flex;
  }
  .nav-level-1{
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
  }

  .container-nav-logo{
    width: 100%;
    justify-content: center;
    gap: 10px;
  }

  .nav-level-1 .col-10{
    width: max-content;
  }

  .container-nav-btn{
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
  }

  #menu-toggle{
    padding: 8px 12px;
  }

  header.column{
    gap: unset;
  }
  .simple-page-main .container.row .col-7, 
  .simple-page-main .container.row .col-5{
    width: 100%;
  }
  section > .container, .container.special{
    margin: auto 4%;
    max-width: 92%;
  }
  .simple-page-main .container.row{
    flex-wrap: wrap;
    flex-direction: row-reverse;
    justify-content: start;

  }

  .container.row.margin-responsive,
  .container.row.align-items-center.margin-responsive{ 
    margin: 0 !important;
  }

  h1.home-page{
    font-size: 2rem;
    text-wrap: balance;
  }
  .responsive-br {
    display: none;
  }

  .home.actu-recent{
    margin: 80px 0;
  }

  article.col-8{
    width: 100%;
  }

  .latest-news-right.col-4{
    padding: unset;
    width: 100%;
  }

  .container-sortie-content{
    flex-wrap: wrap;
  }

  .container-shape.container{
    display: none;
  }

  .container.row.intro-shape{
    padding: unset;
  }

  .container.row.container-page-card{
    flex-direction: column;
  }

  .container.row.container-page-card > .col-3{
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
  }

  .container-page-card hr{
    display: none;
  }

  .arbo-card-page{
    margin-bottom: 80px;
  }

  .CTA-container{
    box-sizing: border-box;
    padding: 30px;
    width: 92%;
    text-align: left;
    text-wrap: balance;
    margin-bottom: 80px;
  }

  .news-content{
    padding: 30px;
    min-height: 350px;
  }

  .news-content > h3{
    font-size: 24px;
  }

  .small-news{
    padding-left: 30px;
    padding-right: 30px;
  }

  .latest-news-right.col-4 > hr{
    margin: 0 8%;
  }

  .sortie-content{
    width: 100%;
  }

  .container-sortie-content{
    gap: 20px;
  }

  .container-sortie-content .col-5{
    width: 100%;
  }

  .container-sortie-content img{
    height: auto;
    width: 100%;
  }

  footer{
    padding: 40px 0 0;
  }

  footer .col-4.flex.container-nav-logo{
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: auto;
    text-align: center;
  }

  .footer .text-logo{
    margin: unset;
  }

  footer .menu-menu-1-container{
    justify-content: center;
    align-items: center;
    text-align: center;
  }

  footer #menu-menu-2{
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: auto;
  }

  footer .menu > li, .sub-menu li, footer .menu > li:first-child, .sub-menu li:first-child{
    padding: unset;
  }
  footer hr{
    display: none;
  }

  footer .nav-level-2.container.flex.row{
    display: none;
  }

  footer .nav-level-3 .container{
    text-align: center;
    margin: auto 6%;
    max-width: 88%;
  }

  .simple-page-main .content.container.flex.row{
    flex-wrap: wrap-reverse;
  }

  .col-2.simple-page{
    width: 88%;
    box-sizing: border-box;
    margin: 0 6%;
    border: none;
    padding: 40px;
    background-color: #818fb42c;
    border-radius: 14px;
  }

  .main-content.simple-page{
    width: 88%;
    box-sizing: border-box;
    margin: 0 6%;
    border: none;
    padding: unset;
  }

  .hero-form{
    aspect-ratio: 1/1;
  }

  .hero{
    min-height: 350px;
  }

  .hero > .container > h1{
    margin-left: -170px;
  }

  .dash-intro .container {
    margin: 30px auto;
    flex-wrap: wrap;
  }

  .dash-intro .col-8, .dash-intro .col-4{
    width: 100%;
  }

  .dash-intro .col-4{
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
  }
  
  .main-bento-content .container.flex.row{
    flex-wrap: wrap;
  }

  .main-bento-content .col-4, .main-bento-content .col-7{
    width: 100%;
  }

  .genre-folder{
    width: 100%;
  }

  .items-grid {
    grid-template-columns: repeat(1, 1fr);
  }

  .latest-news.container.flex.row{
    flex-wrap: wrap;
  }

  .content.container.flex.row{
    margin: auto 4%;
    max-width: 92%;
  }

  .container.actu{
    flex-wrap: wrap;
  }

  select{
    margin-left: unset;
  }

  .news-grid{
    grid-template-columns: repeat(1, 1fr);
  }

  .pagination{
    margin-bottom: unset;
  }

  .menu > li:first-child, .sub-menu li:first-child, .menu > li, .sub-menu li{
    padding: 20px;
  }
}

@media (max-width: 420px) {

}

/* ========================================
   POP-UP MOT DU PRÉSIDENT
   ======================================== */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(54, 48, 98, 0.85);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  opacity: 0;
  animation: popupFadeIn 0.3s ease forwards;
}

@keyframes popupFadeIn {
  to { opacity: 1; }
}

.popup-content {
  background: #fff;
  border-radius: 14px;
  max-width: 600px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  animation: popupSlideIn 0.3s ease forwards;
}

/* Style spécifique pour le pop-up mot du président */
.popup-content.popup-president-word {
  max-width: 700px;
  border: 1px solid #363062;
}

@keyframes popupSlideIn {
  from {
    transform: translateY(-20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.popup-close {
  position: absolute;
  top: 15px;
  right: 20px;
  background: none;
  border: none;
  font-size: 2rem;
  color: #363062;
  cursor: pointer;
  line-height: 1;
  transition: color 0.3s ease;
  z-index: 1;
}

.popup-close:hover {
  color: #435585;
}

.popup-header {
  padding: 30px 30px 20px;
  border-bottom: 1px solid #eee;
}

.popup-header h3 {
  margin: 0;
  color: #363062;
  padding-right: 40px;
  font-size: 1.5rem;
}

/* Header style président */
.popup-president-header {
  padding: 40px 40px 20px;
}

.popup-president-header .president-img {
  height: 100px;
  width: 100px;
  border-radius: 100px;
  margin-bottom: 15px;
}

.popup-president-header .popup-label {
  font-size: 0.9rem;
  color: #818FB4;
  margin-bottom: 5px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.popup-president-header h3 {
  margin: 0;
  color: #363062;
  font-size: 1.5rem;
  padding-right: 40px;
}

.popup-body {
  padding: 20px 30px;
  color: #363062;
  line-height: 1.7;
}

/* Style du contenu président - inspiré de .president-word */
.popup-body.president-content {
  padding: 20px 40px;
}

.popup-body.president-content p {
  margin-bottom: 1rem;
  line-height: 1.8;
}

.popup-body.president-content ul {
  list-style-type: circle;
  list-style-position: inside;
  padding-left: 15px;
  margin-bottom: 1rem;
}

.popup-body.president-content li {
  margin-bottom: 0.5rem;
}

.popup-body.president-content h2,
.popup-body.president-content h3,
.popup-body.president-content h4 {
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  color: #363062;
}

.popup-body.president-content a {
  color: #435585;
  text-decoration: underline;
}

.popup-body.president-content a:hover {
  color: #D0A025;
}

.popup-body p {
  margin-bottom: 1rem;
}

.popup-body p:last-child {
  margin-bottom: 0;
}

.popup-footer {
  padding: 20px 40px 40px;
  text-align: left;
}

/* Responsive pop-up */
@media (max-width: 768px) {
  .popup-content {
    width: 95%;
    max-height: 90vh;
    margin: 10px;
  }

  .popup-header,
  .popup-body,
  .popup-footer,
  .popup-president-header,
  .popup-body.president-content {
    padding-left: 20px;
    padding-right: 20px;
  }

  .popup-header h3,
  .popup-president-header h3 {
    font-size: 1.25rem;
  }

  .popup-president-header .president-img {
    height: 80px;
    width: 80px;
  }
}

/* ========================================
   FILTRES MÉDIATHÈQUE
   ======================================== */
.mediatheque-filters {
  padding: 20px;
  background-color: rgba(129, 143, 180, 0.05);
  border-radius: 8px;
  margin-top: 2rem;
}

.filters-row {
  gap: 30px;
  flex-wrap: wrap;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.filter-group label {
  font-weight: 600;
  color: #363062;
  white-space: nowrap;
}

.filter-group select {
  min-width: 200px;
  margin-left: 0;
  margin-right: 0;
}

/* Responsive filtres médiathèque */
@media (max-width: 768px) {
  .filters-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }

  .filter-group {
    width: 100%;
  }

  .filter-group select {
    flex: 1;
    min-width: unset;
  }
}

/* ========================================
   ALBUM CARDS
   ======================================== */
a.album-card:hover {
  border-color: #363062 !important;
  box-shadow: 0 2px 8px rgba(54, 48, 98, 0.12);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

a.album-card .media-item_text {
  flex-wrap: wrap;
  gap: 8px;
}

/* ========================================
   MODAL NAVIGATION
   ======================================== */
#media-modal-prev,
#media-modal-next {
  z-index: 10;
}

@media (max-width: 768px) {
  #media-modal-prev {
    left: 5px !important;
  }
  #media-modal-next {
    right: 5px !important;
  }
}
