/*
Theme Name: Sima Web
Theme URI: simaweb.ca
Description: Un theme personalisé
Version: 1.5
Author: Sima Web Conception
Author URI:
Tags: base, personnalisé, entreprise
*/

:root {
  --white: white;
  --black: black;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body, html {
  height: 100%;
  width: 100%;
  overflow: hidden; /* Optionnel si tu veux que seul .main scroll */
  font-family: 'Montserrat', sans-serif;
}



.w-layout-layout {
  grid-row-gap: 20px;
  grid-column-gap: 20px;
  grid-auto-columns: 1fr;
  justify-content: center;
  padding: 20px;
}

.w-layout-cell {
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  display: flex;
}

.header_menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 20%;
  height: 100vh;
  border-right: 1px solid #f8a200;
  background-color: #fff;
  z-index: 1000;
}

.main {
  position: relative;
  margin-left: 20%;
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  background-color: #fff;    /* à ajuster selon ton design */
}


.header {
  text-align: center;
  background-position: 0 0, 50%;
  background-size: auto, cover;
  justify-content: center;
  align-items: center;
  height: 100vh;
  display: flex;
}

.fab-search-popup {
    background: #151C4D !important;
  }

.header.single_header {
  background-position: 50%;
  height: 25vh;
}

.header_row {
  background-color: #fff;
  height: 100vh;
  display: flex;
}

.header_content_cell {
  width: 80%;
}

.header_logo {
  border-bottom: 1px solid #f8a200;
}

/* Le bouton burger */
.menu-button {
    display: none;
    position: absolute;
    top: 20px;
    right: 20px;
    width: 75px;
    height: 70px;
    flex-direction: column;
    justify-content: space-around;
    align-items: end;
    cursor: pointer;
    z-index: 1100;
    background: #121c4d;
    padding: 15px;
    border-radius: 6px;
}

.menu-button span {
  display: block;
  height: 5px;
  width: 100%;
  background-color: #f8a200;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.menu-button span:last-child {
  width: 70%;
}

.menu-button.open span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 11px);
}

.menu-button.open span:nth-child(2) {
  opacity: 0;
}

.menu-button.open span:nth-child(3) {
  transform: rotate(-45deg) translate(10px, -10px);
    width: 100%;
}

.mobile-submenu-panel {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  height: 100vh;
  background: #121c4d;
  padding:20px;
  z-index: 1060;
  transition: right 0.3s ease;
  overflow-y: auto;
}

.mobile-submenu-panel.open {
  right: 0;
}

.mobile-submenu-item {
  display: block;
  padding: 15px;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
}

.mobile-submenu-item:hover {
  color: #f8a200;
}

.back-to-main {
  display: block;
  margin-bottom: 20px;
  font-weight: 700;
  color: #f8a200;
  text-decoration: none;
}

/* Le panneau mobile */
.mobile-menu-panel {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  height: 100vh;
  background-color: #fff;
  box-shadow: -2px 0 10px rgba(0, 0, 0, 0.2);
  transition: right 0.3s ease;
  z-index: 1050;
  overflow-y: auto;
  border-left: 1px #f8a200 solid;
}

/* Quand actif */
.mobile-menu-panel.open {
  right: 0;
  padding:100px 0;
}

.menu-item-parent.active {
  background-color: #121c4d;
  color: #fff;
}

.floating-submenu {
  position: fixed;
  background: #f9f9f9; /* Fond plus doux */
  border: 1px solid #ccc;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15); /* Ombre moderne */
  width: 250px;
  z-index: 10000;
  display: none;
  padding: 15px;
  transition: all 0.3s ease;
}

/* Petite flèche pointant vers le menu */
.floating-submenu::before {
  content: '';
  position: absolute;
  top: 20px;
  left: -10px;
  border-width: 5px;
  border-style: solid;
  border-color: transparent #f9f9f9 transparent transparent;
}

/* Les liens du sous-menu */
.submenu-item {
  display: block;
  padding: 10px 15px;
  color: #121c4d;
  font-family: Montserrat, sans-serif;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
  border-radius: 6px;
}

/* Animation sur hover */
.submenu-item:hover {
  transform: translateX(5px);
  background-color: #f0f0f0;
  color: #f8a200;
}

/* Fond d'overlay pour fermer au clic extérieur */
.submenu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 998;
  background: rgba(0, 0, 0, 0); /* Transparent mais capturable */
}


.menu-item {
  color: #121c4d;
  border-bottom: 1px solid #f8a200;
  width: 100%;
  padding: 20px;
  font-family: Montserrat, sans-serif;
  font-size: 19px;
  font-weight: 800;
  line-height: 20px;
  text-decoration: none;
  transition: background-color .2s;
  display: block;
}

.menu-item:hover {
  color: #fff;
  background-color: #121c4d;
}

.main-navigation {
  position: relative;
  display: flex;
  gap: 20px;
}

.menu-item-container {
  position: relative;
}

.menu-toggle {
  display: block;
  padding: 10px 15px;
  text-decoration: none;
  color: inherit;
}

.main_menu_cell {
  background-color: #fff;
  width: 20%;
}

.main_content_cell {
  width: 100%;
}

.armoirie {
  width: 350px;
}

.single_header_title .armoirie {
  width: 120px;
}

.slogan_title {
  color: #fff;
  font-family: Montserrat, sans-serif;
  font-size: 85px;
  font-weight: 900;
  line-height: 80px;
}

.slogan_title.h2 {
  color: #f8a200;
  font-size: 30px;
  line-height: 40px;
}

.text-span {
  color: #fff;
  font-weight: 300;
}

.tools_row {
  border: 1px solid #121c4d;
  display: flex;
}

.tools_cell {
  text-align: center;
  border-right: 1px solid #121c4d;
  width: 25%;
  padding: 0;
}

.tool {
  background-color: #ececec;
  padding: 60px 20px;
}

.tools_wrapper {
  background-color: #fff;
  padding: 40px 20px;
  text-decoration: none;
  display: block;
  min-height: 100%;
}

.tools_title {
  color: #121c4d;
  margin-bottom: 0;
  font-family: Montserrat, sans-serif;
  font-size: 22px;
  font-weight: 400;
  line-height: 25px;
}

.tools_img {
  width: 90px;
}

.actu_row {
  display: flex;
}

.actu_col {
  width: 70%;
  padding:25px 0px;
}

.actu_page {width: 100%;}

/* Container */
.mag-articles { margin: 24px 0 48px; }
.mag-articles__head{
  display:flex; align-items:center; justify-content:space-between; gap:16px; margin-top:20px;
}
.mag-articles__title{ font-size:40px; line-height:1.1; margin:0; }
.mag-articles__all{ text-decoration:none; color:#121c4d; font-weight:600; letter-spacing:.02em; }
.mag-articles__all:hover{ opacity:.8; }

/* Grid */
.mag-articles__grid{
  display:grid; grid-template-columns:1fr; gap:28px;
}
@media(min-width:980px){
  .mag-articles__grid{ grid-template-columns:1fr 1fr; gap:36px; }
}

/* Card */
.mag-card{ display:flex; flex-direction:column; gap:14px; }
.mag-card__media{
  display:block; overflow:hidden; background:#f3f4f6; border: 1px solid #121c4d;
}
.mag-card__media img{
  width:100%; height:100%; object-fit:cover; aspect-ratio: 16/9; display:block; transition: transform .35s ease;
}
.mag-card__media:hover img{ transform:scale(1.02); }

.mag-card__meta{ display:grid; grid-template-columns:80px 1fr; align-items:start;  }
@media(max-width:520px){ .mag-card__meta{ grid-template-columns:68px 1fr; } }

.mag-card__date{ text-align:left; }
.mag-card__day{ font-size:56px; font-weight:700; line-height:.9; color: #f8a200;}
.mag-card__month{ margin-top:6px; font-size:14px; color:#555; text-transform:capitalize; }
.mag-card__year{ font-size:14px; color:#777; }

.mag-card__title{ margin:0 0 8px; font-size:26px; line-height:1.15; font-weight:700; }
.mag-card__title a{ color:#121c4d; text-decoration:none; font-family: Montserrat, sans-serif; font-size: 22px; font-weight: 400; line-height: 25px;}
.mag-card__title a:hover{ text-decoration:underline; }

.mag-card__cat{ font-size:15px; color:#6b7280; }

/* Placeholder si pas d'image */
.mag-card__placeholder{ width:100%; aspect-ratio:16/9; background:linear-gradient(135deg,#eee,#f7f7f7); }

.event_col {
  width: 30%;
  padding:50px 25px;
}

.events-list{
  display:flex;
  flex-direction:column;
  gap:20px;
}

.event-card{
  display:flex;
  align-items:center;
  gap:20px;
  padding:18px;
  background:#fff;
  text-decoration:none;
  font-family: Montserrat, sans-serif;
}


.event-date-box{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  min-width:100px;
  padding:10px 12px;
  border:1px solid #121c4d;
  background:#fff;
}

.event-day{
  font-size:52px;
  font-weight:800;
  color:#f8a200;
  line-height:1;
  margin-bottom:6px;
}

.event-month{
  font-size:16px;
  color:#4b5563;
}

.event-year{
  font-size:14px;
  color:#9ca3af;
}

.event-title{
  flex:1;
  font-size:22px;
  font-weight:700;
  color:#121c4d;
  margin:0;
}

.search_button_wrapper {
  background-color: #121c4d;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  display: flex;
}

.search_text {
  color: #f8a200;
  font-family: Montserrat, sans-serif;
  font-size: 16px;
  font-weight: 700;
}

.search_button {
  margin-top: 55px;
  padding-left: 40px;
  padding-right: 40px;
  cursor: pointer;
}

.search_icon {
  width: 30px;
}

.recherche-item {
  margin-top:20px;
}

.menu_rs {
  justify-content: space-around;
  width: 100%;
  padding-top: 20px;
  padding-bottom: 20px;
  display: flex;
  position: absolute;
  inset: auto 0% 0%;
}

.rs_icon {
  width: 25px;
}

.poi_wrapper {
  width: 100%;
  height: 100%;
  padding-top: 100px;
  padding-bottom: 100px;
  display: flex;
}

.grid {
  grid-template-areas: "Area-2 Area"
                       "Area-2 .";
}

.poi_cell {
  flex-flow: wrap;
  width: 50%;
  display: flex;
}

.poi_item_block {
  width: 100%;
}

.poi_item_block.long_item {
  min-height: 100%;
  padding-top: 0;
  padding-bottom: 20px;
  padding-left: 20px;
  text-decoration: none;
  display: block;
}

.poi_item_block.short_item {
  min-height: 450px;
  padding: 0 20px 20px;
  display: block;
}

.poi_item_block_wrapper {
  grid-column-gap: 16px;
  grid-row-gap: 16px;
  background-position: 0 0, 50%;
  background-repeat: no-repeat;
  background-size: auto, cover;
  grid-template-rows: auto auto;
  grid-template-columns: 1fr 1fr;
  grid-auto-columns: 1fr;
  height: 100%;
  min-height: 100%;
  display: block;
  position: relative;
}

.poi_item_block_wrapper._2 {
  background-image: linear-gradient(#0000, #0000), url('../images/janvier-2011-013.jpg');
}

.poi_item_block_wrapper._3 {
  background-image: linear-gradient(#0000, #0000), url('../images/St-Henri-de-Taillon-69.JPG');
}

.poi_item_titlew_rapper {
  padding: 220px 20px 20px;
  position: absolute;
  inset: auto 0% 0%;
}

.poi_title {
  color: #fff;
  margin-top: 0;
  margin-bottom: 0;
  font-family: Montserrat, sans-serif;
  font-weight: 400;
}

.line_orange {
  background-color: #f8a200;
  width: 75px;
  height: 5px;
  margin-bottom: 10px;
}

.footer {
  background-color: #161616;
  padding: 140px 20px;
  display: block;
}

.footer_row {
  justify-content: flex-start;
  align-items: center;
  display: flex;
}

.footer_cell {
  width: 50%;
}

.footer_cell_logo {
  text-align: center;
  width: 35%;
  padding-left: 35px;
}

.footer_cell_menu {
  width: 65%;
}

.footer_img {
  width: 250px;
}

.footer_menu_row {
  display: flex;
}

.footer_menu_main_title {
  color: #f8a200;
  margin-top: 0;
  font-family: Montserrat, sans-serif;
  font-size: 20px;
  font-weight: 700;
}

.footer_menu_wrapper {
  margin-right: 0;
  padding-left: 15px;
  padding-right: 15px;
}

.footer_menu_item {
  color: #fff;
  font-family: Montserrat, sans-serif;
}

.footer_adress {
  color: #fff;
  margin-bottom: 20px;
  font-family: Montserrat, sans-serif;
  font-size: 15px;
}

.bold-text {
  color: #f8a200;
}

.footer_coord_link {
  color: #f8a200;
  margin-left: 10px;
  font-size: 16px;
}

.footer_link_wrapper {
  justify-content: flex-start;
  align-items: center;
  margin-bottom: 10px;
  font-family: Montserrat, sans-serif;
  display: flex;
}

.footer_link_icon {
  background-color: #fff;
}

.footer_link_icon_img {
  width: 30px;
  padding: 5px;
}

.copyright {
  color: #fff;
  text-align: center;
  font-family: Montserrat, sans-serif;
  font-weight: 200;
}

.link {
  color: #02b3da;
  font-weight: 700;
  text-decoration: underline;
}

.utilities {
  background-position: 0 0, 50%;
  background-size: auto, cover;
  padding-top: 0;
  padding-bottom: 100px;
}

.uti_row {
  justify-content: space-between;
  align-items: center;
  padding-left: 140px;
  padding-right: 140px;
  display: flex;
}

.uti_cell {
  text-align: center;
  margin-left: 10px;
  margin-right: 10px;
  padding-left: 0;
}

.uti_wrapper {
  background-color: #f8a200;
  border: 1px solid #000;
  padding: 10px;
  border-radius: 30px;
}

.uti_icon_img {
  width: 80px;
}

.uti_title {
  color: #fff;
  text-align: center;
  font-family: Montserrat, sans-serif;
  font-size: 20px;
  font-weight: 200;
}

.uti_date_wrapper {
  text-align: right;
}

.uti_date {
  color: #fff;
  background-color: #f8a200;
  margin-top: 0;
  margin-bottom: 100px;
  padding: 10px 20px;
  font-family: Montserrat, sans-serif;
  font-size: 22px;
  font-weight: 500;
  display: inline-flex;
}

.right_arrow {
  width: 30px;
}

.single_header_title {
  text-align: center;
  background-color: #121c4d;
  background-image: linear-gradient(133deg, #121c4ddb 9%, #02b7dde6 85%), url('../images/gite-au-bonheur-du-voyageur-1024x576.webp');
  background-position: 0 0, 50%;
  background-size: auto, cover;
  padding-top: 40px;
  padding-bottom: 40px;
  width: 100%;
}

.single_title {
  color: #fff;
  text-align: center;
  margin-top: 0;
  margin-bottom: 0;
  font-family: Montserrat, sans-serif;
  text-transform: uppercase;
}

.single_page.side_col {
  display: flex;
}

.single_page {
  padding:40px;
  font-size:1.2em;
  line-height: 1.4em;
}

.single_page a {
  color: #f8a200;
}

.check_img {
  margin-top: 10px;
  width: 250px;
}

/*MEMBRE DU CONSEIL*/

.board-members-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 colonnes de largeur égale */
    gap: 20px; /* Espace entre les cartes */
    margin-top: 30px;
}

.board-member-card {
    text-align: center;
}

.board-member-photo {
    width: 80%; /* Rendre l'image responsive */
    height: auto;
    object-fit: cover; /* Conserve le rapport d'aspect de l'image */
    border-radius: 50%; /* Optionnel : pour des photos circulaires */
}

.board-member-name {
    margin-top: 10px !important;
    font-size: 1.2em;
    font-weight: bold;
}

.board-member-title {
    font-size: 1em;
    color: #f8a200;
}

/*SEANCE_DU_CONSEIL*/

.seance_row {
  display: flex;
}

.seance_timeline_cell {
  width: 100%;
  padding: 40px 20px;
}

.seance_content_cell {
  width: 80%;
}

.seance_timeline_wrapper {
  flex-flow: wrap;
  justify-content: center;
  align-items: center;
  width: 20%;
  display: block;
}

.seance_bar {
  background-color: #dfdfdf;
  width: 8px;
  height: 70px;
  margin-left: auto;
  margin-right: auto;
}

.seance_bar.bar_up {
  height: 25px;
}

.seance_timeline_month {
  color: #dfdfdf;
  text-align: center;
  margin-top: 5px;
  margin-bottom: 5px;
  font-family: Montserrat, sans-serif;
  font-size: 18px;
  font-weight: 900;
}

.seance_timeline_month.seance_years {
  color: #f8a200;
  text-align: left;
  font-size: 35px;
  line-height: 30px;
}

.text-block {
  text-align: center;
}

.seance_timeline_row {
  display: flex;
}

.seance_timeline_content_cell {
  justify-content: flex-start;
  align-items: center;
  width: 80%;
  display: flex;
}

.arrow_timeline_icon {
  width: 50px;
  margin-top: 5px;
}

.seance_content_row {
  width: 100%;
  display: flex;
}

.seance_content_wrapper {
  width: 50%;
  padding: 20px;
}

.seance_content_block {
  background-color: #e7e7e7;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  display: flex;
}

.s-ance_title {
  color: #121c4d;
  margin-top: 0;
  margin-bottom: 0;
  font-family: Montserrat, sans-serif;
  font-weight: 700;
}

.seance_type {
  color: #f8a200;
  font-family: Montserrat, sans-serif;
  font-weight: 500;
}

.seance_video_img {
  width: 45px;
}

.seance_file_wrapper {
  background-color: #121c4d;
  justify-content: space-around;
  padding: 10px;
  display: flex;
}

.seance_file_wrapper a {
  text-decoration: none;
}

.day-order_wrapper {
  width: 50%;
}

.sesnce_file_img {
  width: 32px;
  margin-right: 10px;
}

.seance_file_title {
  color: #fff8f8;
  font-family: Montserrat, sans-serif;
  font-weight: 600;
  display: inline-flex;
}

.pv_wrapper {
  width: 50%;
  text-align: center;
}

.single_page_content {
  width: 100%;
  padding: 40px;
}

.single_page h3 {
  color: #000;
  margin-top: 0;
  margin-bottom: 0;
  font-family: Montserrat, sans-serif;
  font-size: 21px;
  font-weight: 600;
}

.bold-text-2 {
  font-family: Montserrat, sans-serif;
  font-weight: 600;
}

.single_page_text {
  color: #303030;
  margin-top: 20px;
  font-family: Montserrat, sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 22px;
}

.quick-stack {
  padding-left: 0;
  padding-right: 0;
}

.cell {
  text-align: left;
}

.facebook_logo_orange {
  width: 43px;
  margin-top: 10px;
  margin-bottom: 20px;
  display: block;
}

.lightbox-link {
  width: 25%;
  display: block;
  background-position: 50%;
  background-size: cover;
  min-height: 250px;
}

.lightbox-link.muni_img {
  background-image: url('../images/gite-au-bonheur-du-voyageur-1024x576.webp');
  background-position: 50%;
  background-size: cover;
}

.lightbox-link.muni_img._3 {
  background-image: url('../images/août-2011-020.jpg');
}

.lightbox-link.muni_img._4 {
  background-image: url('../images/St-Henri-de-Taillon-69.JPG');
}

.gallery_row {
  margin-top: 20px;
  display: flex;
}

.image {
  width: 100%;
}

.img_banner {
  background-image: url('../images/IMG_4022-5-1024x731.jpg');
  background-position: 0%;
  background-size: cover;
  min-height: 300px;
}

.single_img_col_wrapper {
  background-image: url('../images/IMG_4022-5-1024x731.jpg');
  background-position: 50%;
  background-size: cover;
  width: 30%;
}

.link-2 {
  color: #fff;
  text-decoration: none;
  transition: 0.5s;
}

.link-2:hover {
  color: #f8a200;
}

/*CONTACT FORM 7*/

/* Container général du formulaire */
.wpcf7 form {
  display: grid;
  gap: 1.2rem; /* espace entre les champs */
  background: #fff;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

/* Labels */
.wpcf7 form label {
  font-size: 0.95rem;
  font-weight: 500;
  color: #333;
  margin-bottom: 0.3rem;
  display: block;
}

/* Champs texte, email, textarea, select */
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 input[type="number"],
.wpcf7 textarea,
.wpcf7 select {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #fafafa;
  font-size: 1rem;
  margin-bottom: 10px;
  transition: all 0.2s ease-in-out;
}

/* Effet focus */
.wpcf7 input[type="text"]:focus,
.wpcf7 input[type="email"]:focus,
.wpcf7 input[type="tel"]:focus,
.wpcf7 input[type="number"]:focus,
.wpcf7 textarea:focus,
.wpcf7 select:focus {
  border-color: #0077ff;
  background: #fff;
  outline: none;
  box-shadow: 0 0 0 3px rgba(0,119,255,0.15);
}

/* Bouton d’envoi */
.wpcf7 input[type="submit"] {
  background: #F8A200;
  color: #fff;
  padding: 0.9rem 1.5rem;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease-in-out;
}

.wpcf7 input[type="submit"]:hover {
  background: #005fcc;
}

/* Messages d’erreur ou de succès */
.wpcf7-response-output {
  margin-top: 1rem;
  padding: 0.8rem 1rem;
  border-radius: 8px;
  font-size: 0.9rem;
}

.wpcf7-response-output.wpcf7-validation-errors {
  background: #ffecec;
  border: 1px solid #f5c2c2;
  color: #b10000;
}

.wpcf7-response-output.wpcf7-mail-sent-ok {
  background: #e7f8ee;
  border: 1px solid #b8e6c9;
  color: #155724;
}

.permis_list {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 4 colonnes */
  gap: 1.5rem;
  margin-top: 50px;
}

.permis_list_col {
  background: #f9f9f9;
  border: 1px solid #eee;
  border-radius: 10px;
  padding: 1.5rem;
  display: flex;              /* flex pour centrer */
  align-items: center;        /* centre vertical */
  justify-content: center;    /* centre horizontal */
  text-align: center;
  min-height: 100%;          /* fixe une hauteur minimum */
  transition: all 0.2s ease-in-out;
  cursor: pointer;
}

.permis_list_col:hover {
  background: #e6e6e6;
  box-shadow: 0 3px 12px rgba(0,0,0,0.05);
  transform: translateY(-3px);
}

.permis_list_col h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #222;
  margin: 0;
}

.permis_popup {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  justify-content: center;
  align-items: flex-start; /* on aligne en haut */
  overflow-y: auto; /* important pour scroller si le contenu est trop long */
  padding: 2rem 1rem; /* marge top/bottom + côté */
  z-index: 9999;
}

.permis_popup_content {
  background: #fff;
  padding: 2rem;
  border-radius: 12px;
  max-width: 900px;
  width: 100%;
  position: relative;
  margin: auto; /* pour centrer verticalement si petit contenu */
  max-height: calc(100vh - 4rem); /* garde une marge top/bottom */
  overflow-y: auto; /* scroll interne si le formulaire est plus grand que l'écran */
}

.permis_popup_header h2 {
  font-family: Montserrat, sans-serif;
  margin-top:5px;
  font-weight: 800;
}

.permis_subtitle {
  color:#f8a200;
  font-family: Montserrat, sans-serif;
  font-weight: 400;
}

.permis_popup_close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  border: none;
  background: none;
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
}

@media screen and (max-width: 1200px) {

  .search_button {
    padding:0px 20px;
  }

  .search_text {
    font-size: 15px;
  }

  .menu-item {
    font-size: 15px;
    padding:13px;
  }

  .uti_row {
    padding:0px 90px;
  }

  .footer {
    padding: 100px 20px;
  }

  .footer_row  {
    flex-wrap: wrap;
    margin-bottom: 30px;
  }

  .footer_cell_logo {
    margin-bottom: 50px;
  }

  .footer_cell_logo, .footer_cell_menu {
    width: 100%;
  }

  .actu_row {
    flex-wrap: wrap;
  }

  .actu_col, .event_col {
    width: 100%;
  }

  .event_col {
    padding:0px;
  }
}


@media screen and (max-width: 991px) {
  .header_menu {
    text-align: left;
    background-color: #fff;
    width: 100%;
    display: none;
  }

  .header_logo {
    border-bottom-style: none;
    width: 350px;
  }

  .main {
    margin-left: 0;
    padding-right:0;
  }

  .menu-button {
    display: flex;
  }

  .header_menu {
    display: none;
  }

  .main_menu_cell, .main_content_cell, .link-block {
    width: 100%;
  }

  .link-block.w--current {
    text-align: center;
    border-bottom: 1px solid #f8a200;
  }

  .utilities {
    padding-bottom: 50px;
  }

  .uti_row {
    justify-content: space-around;
    padding:0;
    flex-wrap: wrap;
  }

  .uti_cell {
    margin-bottom:40px;
  }

  .uti_title {
    font-size: 15px;
  }

  .footer_row {
    flex-flow: wrap;
  }

  .footer_cell_logo {
    width: 100%;
    margin-bottom: 40px;
  }

.footer_cell_menu {
    width: 100%;
  }

  .footer_menu_row {
    flex-flow: wrap;
    justify-content: center;
    align-items: flex-start;
  }

  .footer_menu_wrapper {
    text-align: center;
  }

  .armoirie {
    width: 130px;
  }

  .board-members-container {
        grid-template-columns: repeat(2, 1fr);
    }

  .seance_timeline_wrapper {
    width: 17%;
  }

  .seance_content_wrapper {
    padding: 10px;
  }

  .s-ance_title {
    font-size: 20px;
  }

  .seance_type {
    font-size: 12px;
  }

  .day-order_wrapper {
    text-align: center;
  }

  .sesnce_file_img {
    width: 25px;
  }

  .seance_file_title {
    font-size: 12px;
  }

  .pv_wrapper {
    text-align: center;
  }

  .permis_list { grid-template-columns: repeat(2, 1fr); }
}

@media screen and (max-width: 479px) {
  .header {
    display: flex;
  }

  .header_logo {
    border-bottom-style: none;
    width: 170px;
}

    .menu_rs {
      padding-bottom: 80px;
    }

    .search_button {
      margin-top:20px;
    }

  .armoirie {
    width: 121px;
    max-width: 100%;
    font-size: 5px;
  }

  .slogan_title {
    font-size: 50px;
    line-height: 52px;
  }

  .slogan_title.h2 {
    font-size: 22px;
    line-height: 29px;
  }

  .tools_row {
    flex-flow: wrap;
  }

  .tools_cell {
    border-right-style: none;
    width: 50%;
  }

  .tool {
    display: block;
  }

  .tools_title {
    font-size: 15px;
    line-height: 20px;
  }

  .poi_wrapper {
    flex-flow: wrap;
    display: flex;
  }

  .poi_cell {
    width: 100%;
  }

  .poi_item_block.long_item {
    min-height: 450px;
    padding-right: 20px;
  }

  .poi_title {
    font-size: 22px;
    line-height: 30px;
  }

  .footer_cell.footer_cell_logo {
    padding-left: 0;
  }

  .footer_coord_link {
    text-align: left;
    font-size: 12px;
  }

  .footer_link_icon_img {
    width: 25px;
  }

  .single_title {
    font-size: 25px;
  }

  .check_img {
    width: 150px;
  }

  .board-members-container {
       grid-template-columns: 1fr;
   }

  .seance_bar {
    display: none;
  }

  .seance_timeline_month {
    margin-top: 60px;
    margin-bottom: 40px;
    transform: rotate(-90deg);
  }

  .seance_timeline_month.seance_years {
    transform: none;
  }

  .seance_timeline_row {
    justify-content: flex-start;
    align-items: center;
    margin-bottom: 30px;
  }

  .arrow_timeline_icon {
    width: 23px;
  }

  .seance_content_row {
    flex-flow: wrap;
  }

  .seance_content_wrapper {
    width: 100%;
  }

  .seance_content_block {
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .s-ance_title {
    font-size: 17px !important;
  }

  .seance_timeline_cell {
    padding:0;
  }

  .permis_list { grid-template-columns: 1fr;

  }
}

#w-node-_28e5ecd3-5962-0de5-7d6a-1116cea7e144-be6f5476 {
  grid-template-rows: auto;
  grid-template-columns: .5fr 1fr;
}
