/*!
Theme Name: Foucarmont
Theme URI: http://underscores.me/
Author: Underscores.me
Author URI: http://underscores.me/
Description: Description
Version: 1.0.0
Tested up to: 5.4
Requires PHP: 5.6
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: foucarmont
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready 
*/
body.js-loading .sidebar,
body.js-loading .header {
	visibility: hidden;
	opacity: 0;
	transition: opacity 0.2s ease;
}

body.ready .sidebar,
body.ready .header {
	visibility: visible;
	opacity: 1;
}

.wp-block-kubio-navigation-section {
	display: none;
}

@media (min-width: 901px){
	
  .site {
    margin-left: 280px;
    z-index: 20;
  }

  .main-content {
    margin-left: 280px;
  }

  .sidebar-home-btn {
    left: calc(280px + 2.6em);
  }

}

@media (max-width: 900px){
	
.site {
	margin-left: 0;
	z-index: 20;
}

.main-content {
	margin: 0;
}

.footer {
  margin-left: 0;
}

}

/* MAIN  */

.site {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
}

.main-content {
  position: relative;
  min-height: 100vh;
  z-index: 10;
}

.main-content .vertical-text {
  left: 12.5%;
  position: absolute;
  top: 0;
  transform: translateY(70%);
  width: 75%;
  z-index: 2;
}

.main-content .slogan {
  position: absolute;
  left: 12.5%;
  width: 75%;
  z-index: 2;
  top: 0;
  /* transform: translateY(-190%); */
}

@media (max-width: 900px) {
  .main-content .vertical-text {
    width: 100%;
    left: 0;
  }

  .main-content .slogan {
    width: 100%;
    left: 0;
  }
}

.main-content .background-image {
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.full-background {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.full-background {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.background-image {
  position: relative;
}

.background-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.1);
  pointer-events: none;
  z-index: 1;
}

.full-background {
  position: relative;
  z-index: 0;
}


/* SIDEBAR */
* {
  
	box-sizing: border-box;
  font-family: 'Montserrat', sans-serif;
}

html, body {
  height: 0;
  background: transparent;
}

body {
	margin: 0;
  width: 100%;
	background-color: #f5f5f5;
  display: flex;
  flex-direction: column;
}

.sidebar {
	position: fixed;
	top: 0;
	left: 0;
	width: 280px;
	height: 100vh;
	background-color: #ffffff;
	border-right: 1px solid #e0e0e0;
	box-shadow: 2px 0 6px rgba(0, 0, 0, 0.05);
	display: flex;
	flex-direction: column;
	padding-top: 20px;
	padding-right: 15px;
	overflow: hidden;
}

.sidebar-top {
	display: flex;
	flex-direction: column;
	align-items: center;
  margin-top: -40px;
}

.sidebar-label {
    margin-top: -50px;
    font-size: 14px;
    font-weight: 300;
    color: #888888;
    text-align: center;
}

.logo-container {
    position: relative;
    z-index: 1000;
}

.logo-link {
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    width: 0px;
}

.logo {
    margin: 40px 0 60px 2px;
    pointer-events: auto;
    cursor: pointer;
    width: 240px;
}

.logo:hover {
    transform: scale(1.05);
    transition: transform 0.3s ease;
}

.sidebar-content {
    width: 100%;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-top: -100px;
}

.nav-menu {
	width: 100%;
	margin-top: 40px;
	margin-left: 5px;
	padding: 0;
	list-style: none;
	flex-shrink: 0;
	justify-content: center;
}

@media (min-width: 1000px) {
  .nav-menu {
    margin-top: 65px;
  }
}

.nav-item {
	width: 95%;
	margin: 5px 10px 5px 10px;
	position: relative;
}

.nav-link {
	display: flex;
	width: calc(100% - 16px);
	align-items: center;
	padding: 12px;
	color: #333;
	text-decoration: none;
	font-size: 17.2px;
	font-weight: 550;
	transition: all 0.3s ease;
	position: relative;
}

.nav-link div {
  margin-bottom: 2px;
}

.nav-link:hover {
	background-color: #EEEEEE;
	width: calc(100% - 16px);
	border-radius: 12px;
}

.nav-link.active {
	background-color: #FF8121;
	color: white;
	border-radius: 12px;
	box-shadow: 0 2px 5px rgba(255, 129, 33, 0.3);
	margin: 0 8px;
	padding-left: 12px;
	width: calc(100% - 16px);
}

.submenu-link.active {
    color: #FF8121;
    font-weight: 450;
}

.nav-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	margin-right: 12px;
	width: 24px;
	height: 24px;
  min-width: 24px;
  border-radius: 0;
}

.nav-icon img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	transition: filter 0.3s ease;
}

.nav-link.active .nav-icon img {
	filter: brightness(0) invert(1);
}

.submenu {
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.2s cubic-bezier(0.4,0,0.2,1);
	opacity: 0;
	padding-left: 20px;
	position: relative;
}

.submenu.active {
	margin-top: 10px;
	max-height: 500px;
	opacity: 1;
}

.submenu::before {
	margin-top: 7px;
	content: '';
	position: absolute;
	top: 0;
	left: 30px;
	height: 90%;
	width: 2px;
	background-color: #e0e0e0;
}

.submenu-item {
	list-style: none;
	position: relative;
}

.submenu-link {
	display: block;
	padding: 0.8vh 0px 0.8vh 40px;
	color: #666;
	text-decoration: none;
	transition: all 0.2s ease;
	font-weight: 350;
	font-size: 16px;
  margin-left: -10px;
}

.submenu-link:hover {
	color: #FF8121;
}

.content {
	margin-left: 270px;
	padding: 20px;
}

@keyframes slideDown {
	from {
		opacity: 0;
		transform: translateY(-5px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.submenu.animating .submenu-item {
	animation: slideDown 0.3s forwards;
	animation-delay: calc(var(--item-index) * 0.05s);
	opacity: 0;
}

.sidebar-home-btn {
  position: fixed;
  top: 1em;
  z-index: 2000;
  width: 50px;
  height: 50px;
  background: #e0e0e0;
  border-radius: 50%;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: box-shadow 0.2s, border-color 0.2s, background 0.2s, transform 0.2s, left 0.3s;
  cursor: pointer;
  overflow: hidden;
}

body.single-post .sidebar-home-btn {
  margin-top: -5px;;
}


.sidebar-home-btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: linear-gradient(120deg, rgba(255,255,255,0.55) 0%, rgba(255,255,255,0.12) 60%, rgba(255,255,255,0) 100%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  z-index: 2;
}

.sidebar-home-btn:hover {
  transform: scale(1.12);
  box-shadow: 0 4px 24px rgba(255,129,33,0.15);
}

.sidebar-home-btn:hover::after {
  opacity: 1;
}

.sidebar-home-btn img {
  margin-top: -2px;
  width: 32px;
  height: 32px;
  transition: transform 0.2s;
}


.burger-menu {
  display: none;
  position: fixed;
  top: 1em;
  right: 10px;
  z-index: 999;
  width: 50px;
  height: 50px;
  background: transparent;
  border: none;
  outline: none;
  cursor: pointer;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  transition: left 0.3s;
}

.burger-menu span {
  display: block;
  width: 30px;
  height: 4px;
  margin: 2.5px auto;
  background: #FF8121;
  border-radius: 2px;
  transition: all 0.3s;
}

.burger-menu.open span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}
.burger-menu.open span:nth-child(2) {
  opacity: 0;
}
.burger-menu.open span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

body.single-post .burger-menu {
  margin-top: -8px;
}

/* --- Sidebar mobile --- */
@media (max-width: 900px) {
  .burger-menu {
    display: flex;
    right: 3em;
    top: 1.4em;
  }

  .sidebar {
    left: -280px;
    transition: left 0.3s;
    z-index: 1000;
    box-shadow: 2px 0 16px rgba(0,0,0,0.12);
    border-right: 1px solid #fff;
  }
  .sidebar.open {
    left: 0;
  }
  .main-content {
    flex: 1 0 auto;
    margin-left: 0;
    transition: margin-left 0.3s;
  }

  .sidebar-home-btn {
    left: 2.7em;
    transition: left 0.3s cubic-bezier(.4,0,.2,1);
  }
  body.sidebar-open .sidebar-home-btn {
    left: calc(280px + 2.7em);
  }
}

/* ARTICLE */

body {
  margin: 0;
  padding: 0;
  font-family: 'Montserrat', sans-serif;
  font-size: 18px;
  color: #333;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.site-main, .main-content {
  flex: 1 0 auto;
}
/* TITRES */

h1 {
  font-size: 3rem;
  font-weight: bold;
  margin-top: 0.2em;
  margin-bottom: -5px;
  color: #222;
  line-height: 1.1;
}

.page-title {
  margin-bottom: 30px;
  padding-bottom: 0.4em;
  border-bottom: 2px solid #ddd;
  align-self: center;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  display: block;
  padding-left: 50px;
  padding-right: 50px;
}

h2 {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 0.5em;
  color: #333;
}

h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.5em;
  color: #444;
}

/* ARTICLE */
article {
  margin: 50px 15% 50px 15%;
  max-width: calc(70%);
  padding: 0.5em 2.5em 1.5em 2.5em;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.05);
}

@media (max-width: 1400px) {
  article {
    margin: 70px 5% 50px 5%;
    max-width: calc(90%);
  }

  .page-title {
    padding-left: 70px;
    padding-right: 70px;
  }
}

.post-header {
  margin-bottom: 0em;
}

.post-meta {
  font-size: 0.95em;
  color: #777;
}

.post-content {
  font-size: 1.125rem;
  color: #333;
  margin-top: 1.5em;
}

/* IMAGES */

.wp-block-list {
  margin: 10px 0 10px 0;
}

.site-main li {
  margin-left: 1.2em;
}

/* CITATIONS */
.single-post blockquote {
  border-left: 4px solid #FF8121;
  padding: 1em;
  background: #fff7f2;
  font-style: italic;
  margin: 2em 0;
  color: #444;
}

/* NAVIGATION ARTICLES */
.post-nav {
  display: flex;
  justify-content: space-between;
  padding-top: 1.5em;
  border-top: 1px solid #eee;
  margin-top: 30px;
}

.single-article-tags {
    display: flex;
    gap: 8px;
    align-items: center;
    margin: 0 16px;
}



.nav-arrow {
  width: 30px !important;
  height: 30px !important;
  cursor: pointer;
  object-fit: contain;
  aspect-ratio: 1 / 1;
}

.prev .nav-arrow {
  transform: rotate(180deg);
}

.prev .nav-arrow:hover {
  transform: scale(1.1) rotate(180deg);
}

.next .nav-arrow:hover {
  transform: scale(1.1);
}

.post-nav a { 
  transition: color 0.2s;
}

/* TAGS */
.post-tags {
  margin-top: 3em;
  font-size: 0.95em;
  color: #666;
}

.post-tags a {
  background: #FF8121;
  color: #fff;
  padding: 0.3em 0.7em;
  border-radius: 20px;
  margin-right: 0.5em;
  text-decoration: none;
  display: inline-block;
  transition: background 0.3s;
}

.post-tags a:hover {
  background: #cc4b00;
}

/* RESPONSIVE */
@media (max-width: 800px) {
  .post-title {
    font-size: 2.2rem;
  }

  .post-content {
    font-size: 1rem;
  }

  h1 {
    font-size: 2.2rem;
  }

  h2 {
    font-size: 1.8rem;
  }

  h3 {
    font-size: 1.3rem;
  }

  .sidebar-home-btn {
    height: 40px;
    width: 40px;
    top: 0.8em;
  }

  .sidebar-home-btn img {
    margin-top: -2px;
    width: 25px;
    height: 25px;
    transition: transform 0.2s;
  }

  .burger-menu {
    top: 0.8em;
  }

  body.single-post .sidebar-home-btn {
    margin-top: 2px;
  }

  body.single-post .burger-menu {
    margin-top: 0px;
  }
}


/* FOOTER */
.footer {
  position: relative;
  display: flex;
  flex-shrink: 0;
  flex-wrap: wrap;
  background-color: #2d2d2d;
  color: white;
  padding: 20px;
  overflow: hidden;
  margin-top: auto;
}

.footer-section {
    flex: 1 1 390px;
    padding: 10px 20px;
    min-width: 250px;
    max-height: 350px;
}

.footer-section:last-child {
  min-height: 350px;
}

@media (max-width: 1500px) {
    .vertical-text-container {
      display: none;
    }

    .map-container {
      margin-right: 0;
    }
}

@media (min-width: 1501px) {
    .map-container {
      margin-right: 80px;
    }
}
/* Styles responsifs */
@media (max-width: 768px) {
    
  .footer-section {
      width: 100%;
      padding: 15px;
  }
  
  .vertical-text-container {
      width: 30px;
  }

  .entry-search-content {
    margin: 0 60px 30px 70px !important;
  }

  .single-article-tags {
    flex-wrap: wrap;
    gap: 4px;
    justify-content: flex-start;
  }

  article {
    padding: 0.5em 1em 1em 1em;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.05);
  }

  .content-section {
    padding: 0.7rem 1.5rem 1.5rem 1.5rem !important;
  }
    
  .post-meta {
    font-size: 16px;
    color: #777;
    font-style: italic;
  }

  body.single-post .burger-menu {
    margin-top: -3px;
  }
}

@media (max-width: 480px) {
    .footer {
        padding: auto 10px auto 15px;
        font-size: 0.8rem;
    }

    .hours {
        padding-left: 10px;
        width: auto;
        white-space: normal;
        overflow: visible;
        text-overflow: unset;
    }

    article {
      margin: 50px 5% 50px 5%;
      max-width: calc(90%);
    }
    
    .vertical-text-container {
        width: 20px;
    }
      
    .post-title {
      font-size: 20px;
    }

    h1 {
      font-size: 24px;
    }

    .page-title {
      padding-bottom: 0.6em;
    }

    h2 {
      font-size: 16px;
    }

    h3 {
      font-size: 14px;
    }

    .no-results p {
      font-size: 18px;
    }

    .burger-menu {
      top: 0.3em !important;
    }

    .sidebar-home-btn {
      top: 0.6em !important;
      left: 1.3em !important;
      width: 35px !important;
      height: 35px !important;
      z-index: 900;
    }

    .sidebar-home-btn {
      transition: left 0.3s cubic-bezier(.4,0,.2,1)!important;
    }

    body.sidebar-open .sidebar-home-btn {
      left: auto !important;
      right: 1.5em !important;
      top: 3.5em !important;
    }

    body.single-post .burger-menu {
      margin-top: -3px;
    }
    
    body.single-post .sidebar-home-btn {
      margin-top: -3px;
    }
}     

.footer-heading {
    color: #FF8121;
    font-size: 20px;
    margin-bottom: 15px;
    font-weight: 500;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.mail-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    font-style: italic;
    
}

.contact-icon {
    width: 20px;
    height: 20px;
    min-width: 20px;
    margin-right: 10px;
    display: inline-block;
    vertical-align: middle;
}

.contact-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.schedule-row {
    display: flex;
    margin-bottom: 5px;
}

.day {
    width: 100px;
    flex-shrink: 0; /* Ne pas rétrécir */
    white-space: nowrap; /* Empêche le retour à la ligne dans le jour */
}

.hours {
    flex: 1 1 0;
    min-width: 0;
    white-space: nowrap; /* Empêche le retour à la ligne dans les horaires */
    overflow: hidden;
    text-overflow: ellipsis; /* Ajoute ... si trop long */
}

.more-links a {
    display: block;
    color: white;
    text-decoration: none;
    margin-bottom: 8px;
}

.more-links a:hover {
    text-decoration: underline;
}

.map-container {
    border: 4px solid #fff;
    border-radius: 5px;
    height: 250px;
    background-color: rgba(255, 255, 255, 0.1);
    margin-bottom: 10px;
    position: relative;
}

.map-error {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f5f5f5;
    color: #333;
    text-align: center; 
    padding: 10px;
}

.map-error-icon {
    font-size: 24px;
    margin-bottom: 10px;
    color: #666;  
}

.vertical-text-container {
  pointer-events: none; 
}

.vertical-text-container img {
  position: absolute;
  top: 0;
  right: 0;
  width: 361px;
  transform: rotate(-90deg) translateY(-100%);
  transform-origin: top right;
}

/* CONTENU PAGE */

.content-section {
  padding: 0.5rem 3rem 3rem 3rem;
  line-height: 1.6;
  background: #fdfdfd;
  height: 100%;
}

.main-page {
  margin: 0 auto;
  width: auto;
  margin: 0 0 0 0;
}

.tagged-articles {
  margin-top: 1rem;
}

.tagged-articles ul {
  list-style: disc inside;
}

/* PREVIEW ARTICLE */
.articles-title {
    font-style: italic;
    font-size: 30px;
    font-weight: 550;
    color: #999999;
    margin: 30px 0 10px 0;
}

.tagged-articles h3 {
    font-size: 24px;
    color: #333;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, max-content));
    gap: 25px;
    justify-content: start;
    margin-bottom: 40px;
    grid-auto-flow: dense;
}

.preview-article-link,
.preview-event-link {
  cursor: pointer;
}


.preview-article,
.preview-event {
  height: 100%;
}


@media (max-height: 650px) {
  .sidebar {
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow-y: auto;
  }
  .sidebar-top {
    flex-shrink: 0;
    min-height: 140px;
  }

  .sidebar-content {
    flex: 1 1 auto;
    min-height: 0;
    margin-top: 200px;
    padding-bottom: 250px;
    padding-top: 0 !important;
  }

  .nav-link {
    font-size: 15px;
  }

  .logo {
    margin-left: 20px;
  }
}

.preview-article {
    grid-column: span 1;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    background-color: #fff;
    transition: transform 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%; 
}

.preview-article-link,
.preview-event-link {
  position: absolute;
  inset: 0;
  z-index: 10;
  background: transparent;
  cursor: pointer;/
}

.preview-article-thumbnail {
    height: 180px;
    overflow: hidden;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}
.preview-article-thumbnail img {
    width: 100%;
    height: 100%;
    margin-top: 0;
    object-fit: cover;
    transition: transform 0.3s ease;

}

.preview-article:hover {
    transform: scale(1.03);
}

.preview-article-date {
    padding: 15px 15px 0;
    font-size: 14px;
    color: #666;
}

.preview-article-title {
    padding: 0 15px 10px;
    margin: 0;
    font-size: 18px;
    line-height: 1.3;
}

.preview-article-title a {
    color: #333;
    text-decoration: none;
}

.preview-article-excerpt {
    padding: 0 15px;
    font-size: 14px;
    color: #666;
    flex-grow: 1; /* Permet à l'extrait de prendre l'espace disponible */
}

.preview-article-tags {
    display: flex;
    flex-wrap: wrap;
    margin: 15px;
    gap: 8px;
    z-index: 100;
}

.custom-tag {
    display: inline-block;
    background: #FF8121;
    border: 1px solid #FF8121;
    color: #fff;
    border-radius: 16px;
    padding: 3px 8px;
    font-size: 0.70em;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
    box-shadow: 0 1px 4px rgba(0,0,0,0.07);
}

.custom-tag:hover,
.custom-tag:focus {
    background: #fff;
    color: #FF8121;
    border: 1px solid #FF8121;
    box-shadow: 0 2px 8px rgba(255,129,33,0.15);
}

/* Style pour les événements à venir (exactement comme l'image) */
.preview-event {
    grid-column: span 2; /* Prend exactement 2 fois plus d'espace (4 fractions vs 2) */
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    height: 100%;
    min-height: 280px;
}

@media (max-width: 1280px) {
    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .preview-event {
        grid-column: span 1;
    }
}

/* Si 1 colonne (mobile) */
@media (max-width: 768px) {
    .articles-grid {
        grid-template-columns: 1fr;
    }
    .preview-event {
        grid-column: span 1;
    }
}

.preview-event:hover {
    transform: scale(1.03);
}

.preview-event-inner {
    position: relative;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.preview-event-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.8) 100%);
    z-index: 1;
}

.preview-event-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background-color: transparent;
    color: #ffffff;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 14px;
    text-transform: uppercase;
    z-index: 2;
    letter-spacing: 1px;
    font-weight: 600;
    border: 2px solid rgba(255, 255, 255, 1);
}

.preview-event-content {
    position: relative;
    z-index: 2;
    padding: 20px;
    color: #fff;
}

.preview-event-date {
    font-size: 16px;
    margin-bottom: 5px;
    text-transform: capitalize;
    opacity: 0.9;
}

.preview-event h3 {
    color: #fff;
    font-size: 30px;
    margin: 0;
    line-height: 1.2;
    text-transform: uppercase;
    font-weight: bold;
}

.preview-article,
.preview-event {
    width: auto;
    height: auto;
    display: flex;
    flex-direction: column;
}


@media (max-width: 768px) {
    .articles-grid {
        grid-template-columns: 1fr;
    }

    .preview-article,
    .preview-event {
        grid-column: span 1;
    }

  .search-field {
    font-size: 14px !important;
    padding: 6px 26px 6px 14px !important;
    width: 100%;
    min-width: 0;
    margin: 0;
  }
  .search-icon {
    width: 18px !important;
    height: 18px !important;
  }

  body.search .search-label,
  body.search .search-field {
    width: 120% !important;
    max-width: none !important;
    font-size: 14px !important;
  }

  body.search .search-form {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 30px 0;
    width: 105%;
    max-width: 400px;
    left: 50%;
    transform: translateX(-50%);
    position: relative;
  }

  body.single .search-form {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 30px 0;
    width: 80%;
    max-width: 400px;
    left: 50%;
    transform: translateX(-50%);
    position: relative;
  }

  .burger-menu {
    top: 1em;
    right: 1.5em;
  }

  .sidebar-home-btn {
    left: 1.5em;
    top: 1em;
  }
}



/*FICHIERS PDF*/

.wp-block-file embed,
.wp-block-file iframe,
.wp-block-file object {
  display: none;
  margin-top: 1em;
  width: 100%;
}

.wp-block-file.show-preview embed,
.wp-block-file.show-preview iframe,
.wp-block-file.show-preview object {
  display: block;
}

.wp-block-file a:not(.wp-block-file__button) {
  color: #FF8121;
  text-decoration: underline;
  font-size: 1.2em;
  font-weight: 500;
}
.wp-block-file a:not(.wp-block-file__button):hover {
  color: #FF8121;
}

.wp-block-file .pdf-embed {
  display: none;
  margin-top: 1em;
}

.wp-block-file .pdf-toggle-btn {
  display: inline-block;
  background: #2a5d9f;
  color: #fff;
  border-radius: 5px;
  padding: 0.4em 1em;
  cursor: pointer;
  border: none;
  font-size: 1em;
  max-width: 50px;
}

.wp-block-file .pdf-toggle-btn.active {
  background: #FF8121;
}

.pdf-toggle-icon,
.pdf-download-icon {
  width: 32px;
  height: 32px;
  vertical-align: middle;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  display: inline-block;
  margin-left: 8px;
}


.pdf-toggle-icon.active {
  filter: brightness(1.2);
}

.wp-block-file .wp-block-file__wrapper {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 0.5em;
}

.wp-block-file {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* CONTENU ARTICLE */

/* Paragraphes */
.single-post p {
  margin: 0.75em 0;
}

article img {
margin : 10px auto;
max-width: 100%;
border-radius: 8px;
}

.wp-block-image img {
  border-radius: 8px;
}

/* RECHERCHES */

.search-form {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 60px 0;
}

.search-label {
    position: relative;
    width: 100%;
    max-width: 400px; /* Ajuste selon ton design */
    margin: 0 auto;
    display: flex;
    align-items: center;
}

.search-field {
    width: 100%;
    padding: 8px 40px 8px 20px;
    border: 2.5px solid #FF8121;
    border-radius: 30px;
    font-size: 18px;
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.search-field:focus {
    border-color: #e76b00;
    box-shadow: 0 0 5px rgba(255, 129, 33, 0.5);
}

.search-icon-button {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-icon {
    width: 24px;
    height: 24px;
    display: block;
}

.search-icon-button:hover .search-icon {
    transform: scale(1.1);
}

.search-field::-webkit-search-cancel-button {
    -webkit-appearance: none;
    height: 22px;
    width: 22px;
    background: url("data:image/svg+xml;utf8,<svg width='18' height='18' viewBox='0 0 18 18' fill='none' xmlns='http://www.w3.org/2000/svg'><line x1='5' y1='5' x2='13' y2='13' stroke='%23FF8121' stroke-width='2'/><line x1='13' y1='5' x2='5' y2='13' stroke='%23FF8121' stroke-width='2'/></svg>") no-repeat center center;
    background-size: 18px 18px;
    cursor: pointer;
}

.no-results {
  margin: 80px 20px 80px 20px; 
  display: flex; 
  justify-content: center; 
  font-size: 24px;
}

.index-page-content img {
    display: block;
    max-width: 50px !important;
    height: auto;
    margin: 20px auto;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.3s;
    cursor: pointer;
}

.index-page-content img:hover {
    transform: scale(1.03);
}

/* Lightbox backdrop */
.image-lightbox-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.image-lightbox-backdrop img {
    max-width: 90%;
    max-height: 90%;
    box-shadow: 0 0 20px white;
    border-radius: 12px;
}

.entry-search-content {
  margin: 0 0 30px 70px;
}

.wp-block-gallery .wp-block-image {
  max-width: calc(100% + 10px) !important;
  width: auto !important;
  padding: 0 !important;
}

.wp-block-image img {
  max-width: 100%;
  display: block;
  margin-bottom: 15px !important;
}

.wp-block-cover {
  margin: 20px auto !important;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  min-width: 400px !important;
}

.wp-block-list {
  margin-left: 25px !important;
}

.wp-block-gallery {
  width: max-content;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.wp-block-gallery .wp-block-image {
  margin: 0 !important;
  padding: 0 !important;
  width: auto !important;
  max-width: 100% !important;
  box-sizing: border-box;
}




/* MODULES MÉTÉO & CAROUSSEL  */

.weather-prospectus-container {
    width: calc(100% + 6rem);
    margin: -10px -3rem 0 -3rem;
    display: flex;
    gap: 20px;
    padding: 20px;
    background: linear-gradient(135deg, #FF8121 0%, #ffba3a 100%);
    min-height: 400px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Quand il n'y a que la météo */
.weather-prospectus-container.weather-only {
    justify-content: center;
    align-items: center;
}

.weather-prospectus-container.weather-only .weather-module {
    flex: 0 0 400px;
    max-width: 500px;
}

.prospectus-carousel {
    flex: 1;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.carousel-container {
    display: flex;
    transition: transform 0.5s ease;
    height: 100%;
}
.prospectus-item {
    min-width: 100%;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
}

.prospectus-item img {
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #333;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
    max-width: 280px !important;
    max-height: 100%;
    object-fit: contain;
}

.prospectus-item img:hover {
    transform: scale(1.07) rotate(-2deg);
    box-shadow: 0 8px 32px rgba(0,0,0,0.18);
    z-index: 2;
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.carousel-nav:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
}

.carousel-nav.prev {
    left: 10px;
}

.carousel-nav.next {
    right: 10px;
}

.carousel-indicators {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: white;
    transform: scale(1.2);
}

/* Module météo - droite */
.weather-module {
    flex: 0 0 300px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 25px;
    color: white;
    position: relative;
    overflow: hidden;
}

.weather-module::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.weather-header {
    text-align: center;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
}

.city-name {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 5px;
}

.weather-date {
    font-size: 14px;
    opacity: 0.8;
}

.weather-main {
    text-align: center;
    margin-bottom: 25px;
    position: relative;
    z-index: 2;
}

.weather-icon {
    font-size: 60px;
    margin-bottom: 10px;
    display: block;
}

.temperature {
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 5px;
}

.weather-description {
    font-size: 16px;
    text-transform: capitalize;
    opacity: 0.9;
}

.weather-details {
    position: relative;
    z-index: 2;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-label {
    font-size: 14px;
    opacity: 0.8;
}

.detail-value {
    font-size: 14px;
    font-weight: bold;
}

.loading {
    text-align: center;
    opacity: 0.7;
    font-style: italic;
}

.error {
    text-align: center;
    color: #ffcccb;
    font-size: 14px;
}

.prospectus-lightbox img {
    display: block;
    margin: auto;
    max-width: 98vw;
    max-height: 98vh;
    width: auto;
    height: auto;
    object-fit: contain;
    background: none;
    border-radius: 8px !important;
    box-shadow: 0 0 32px #fff;
    padding: 0;
}

/* Responsivité */
@media (max-width: 768px) {
    .weather-prospectus-container {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
        width: calc(100% + 3rem) !important;
        margin: -0.7rem -1.5rem 0 -1.5rem !important;
    }
    
    .weather-prospectus-container.weather-only .weather-module {
        flex: none;
        max-width: none;
    }
    
    .weather-module {
        flex: none;
        max-width: none;
        width: 100% !important;
    }

    .prospectus-image {
        width: 120px;
        height: 160px;
    }

    .prospectus-item img {
      max-width: 180px !important;
      height: auto !important;
    }

    .prospectus-lightbox img {
        width: 85vw;
        height: auto;
    }
}

@media (max-width: 1100px) {
  .prospectus-item img {
    max-width: 60% !important;
    height: auto !important;
  }
}
