/*!
Theme Name: LEB Communication
Theme URI: http://https://leb-theme.fr/
Author: Julien LE TIEC/ LEB communication
Author URI: https://leb-communication.fr/
Description: Thème WordPress premium et sur mesure développé pour LEB Communication. Conçu pour des performances optimales, une interface utilisateur intuitive, et une personnalisation totale.
Tags: responsive-layout, seo-friendly, accessible-ready, performance-optimized, custom-fields, block-editor-styles, translation-ready, advanced-custom-fields
Version: 1.0.0
Requires at least: 5.8
Tested up to: 6.3
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Support URI: https://leb-communication.fr/support
Text Domain: lebcommunication
*/
/* Global Reset */
/* Reset */
/* Navigation principale */
/* Global Reset */
/* Reset */
/* Reset */
/* Reset */
/* Reset */
/* Header Styles */
/* Header Styles */
/* Header Container Layout */

/* Header Container Layout */
/* Search Modal */

/* Supprimer tout le padding global */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Appliquer Karla à tous les titres */
h1,
h2,
h3,
h4,
h5,
h6 {
  /* font-family: 'Karla', sans-serif;  */
  font-family: "Nunito", sans-serif;
}

/* Appliquer Lora au reste du contenu */
body {
  /* font-family: 'Lora', serif;  */
  font-family: "Nunito", sans-serif;
}

/* Optionnel : Stylisation additionnelle pour les titres */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  /* Mettre les titres en gras pour les distinguer */
  line-height: 1.2;
  /* Espacement entre les lignes des titres */
  margin-bottom: 0.5em;
  /* Espacement inférieur */
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

li::marker {
  color: #e65f0d;
}

@media screen and (max-device-width: 768px) and (-webkit-min-device-pixel-ratio: 2) {
  body {
    font-size: 15px;
    /* taille de base stable sur iPhone */
  }

  .single-post-title {
    font-size: 1.4rem;
  }

  .single-post-content {
    font-size: 1rem;
    line-height: 1.6;
  }
}

/* Optionnel : Ajustements pour le texte général */
body {
  line-height: 1.6;
  /* Amélioration de la lisibilité pour les paragraphes */
  color: #333;
  /* Couleur du texte global */
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  overflow-x: hidden;
  width: 100%;
}

.search-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: rgba(17, 17, 17, 0.98);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-100%);
  transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out,
    visibility 0s linear 0.3s;
}

.search-modal.is-active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

/* Close Button */
.close-search {
  position: absolute;
  top: 2rem;
  right: 2rem;
  background: none;
  border: none;
  padding: 1rem;
  cursor: pointer;
  color: white;
  transition: transform 0.3s ease;
}

.close-search:hover {
  transform: rotate(90deg);
}

.close-search svg {
  width: 24px;
  height: 24px;
}

/* Search Form */
.search-form {
  width: 100%;
  max-width: 800px;
  padding: 0 2rem;
  position: relative;
}

.search-form input[type="search"] {
  width: 100%;
  background: none;
  border: none;
  border-bottom: 2px solid rgba(255, 255, 255, 0.2);
  padding: 1rem 3rem 1rem 0;
  color: white;
  font-size: 2rem;
  transition: border-color 0.3s ease;
}

.search-form input[type="search"]::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.search-form input[type="search"]:focus {
  outline: none;
  border-bottom-color: white;
}

.search-hint {
  font-size: 1.5rem;
  color: rgba(51, 51, 51, 0.6);
  /* Couleur subtile */
  transition: color 0.3s ease;
}

/* Option : Change de couleur au survol */
.search-wrapper:hover .search-hint {
  color: #e65f0d;
}

.search-submit {
  position: absolute;
  right: 2rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  padding: 0.5rem;
  opacity: 0.6;
  transition: opacity 0.3s ease;
}

.search-submit:hover {
  opacity: 1;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* Social Icons */
.social-icons {
  order: 1;
  display: flex;
  gap: 1rem;
  flex: 1.2;
  flex-direction: column;
}

.social-icon {
  color: #333;
  font-size: 1.8rem;
  transition: color 0.3s ease;
}

.social-icons-list {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 5%;
}

.social-icon:hover {
  color: #e65f0d;
}

/* Logo */
.logo {
  order: 2;
  flex: 2;
  text-align: center;
}

.logo img,
.custom-logo {
  max-width: 450px;
  max-height: 110px;
  width: auto;
  height: auto;
}

/*footer*/
.site-footer {
  width: 100%;
  background-color: #030303;
  color: #fff;
  padding: 100px 2% 40px;
  font-family: "Nunito", sans-serif;
  position: relative;
  overflow: hidden;
}

.footer-logo {
  z-index: 1;
  position: relative;
}

.fusion-grass-candy-sep.fusion-section-separator-svg-bg {
  width: 100%;
  height: 5vh;
  position: absolute;
  top: -32px;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  max-width: 1550px;
  margin: 0 auto;
  gap: 5%;
  padding: 0 2%;
}

/* Partie gauche */
.footer-left {
  flex: 0 0 40%;
}

.footer-logo img {
  max-width: 220px;
  height: auto;
  margin-bottom: 30px;
}

.footer-content {
  color: #f5f5f5;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 30px;
}

.footer-content ul {
  margin: 7px 0 10px 20px
}

.footer-button {
  display: inline-flex;
  align-items: center;
  padding: 12px 25px;
  background-color: transparent;
  border: 2px solid #e65f0d;
  color: #fff;
  text-decoration: none;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  transition: all 0.3s ease;
  margin-top: 5%;
}

.footer-button:hover {
  background-color: #e65f0d;
  border-color: #e65f0d;
  transform: translateY(-2px);
}

/* Partie droite */
.footer-right {
  flex: 0 0 35%;
}

.footer-columns {
  display: flex;
  justify-content: space-between;
  gap: 40px;
}

.footer-column {
  flex: 1;
}

.footer-column h3 {
  color: #e65f0d;
  font-size: 1.1rem;
  margin-bottom: 20px;
  font-weight: 600;
  text-transform: uppercase;
  position: relative;
}

.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-column li {
  margin-bottom: 12px;
}

.footer-column a {
  color: #f5f5f5;
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  display: inline-block;
}

.footer-column a:hover {
  color: white;
  transform: translateX(5px);
}

/* Réseaux sociaux */
.footer-socials {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.footer-socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transition: all 0.3s ease;
}

.footer-socials a:hover {
  background-color: #e65f0d;
  transform: translateY(-3px);
}

.footer-socials i {
  font-size: 1.2rem;
}

/* Images partenaires et autres sites */
.footer-partners {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}

.footer-other-sites {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-direction: column;
}

.footer-partners img,
.footer-other-sites img {
  width: 90%;
  height: 85px;
  object-fit: contain;
  /* padding: 10px; */
  border-radius: 8px;
  transition: all 0.3s ease;
}

.footer-other-sites li:not(:first-child) img {
  height: auto;
  width: 85px;
}

.footer-partners a:hover img,
.footer-other-sites a:hover img {
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 992px) {
  .footer-container {
    flex-direction: column;
    gap: 40px;
  }

  .footer-left,
  .footer-right {
    flex: 0 0 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
  }

  .footer-columns {
    gap: 30px;
  }
}

@media (max-width: 768px) {

  .footer-socials i {
    font-size: 2.4rem;
    margin-right: 5px;
  }

  .followme {
    margin-top: 20px;
  }

  .footer-column h3 {
    margin-bottom: 12px;
  }

  .footer-column li {
    text-transform: uppercase;
    border-bottom: solid 1px grey;
  }

  .footer-button {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 8.5px 25px;
  }

  .footer-columns {
    flex-direction: column;
    gap: 30px;

  }

  .footer-partners,
  .footer-other-sites {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-logo img {
    max-width: 180px;
    margin-bottom: 12px;
  }
}

/*fin du footer*/

/* Search and Burger Container */
.search-wrapper {
  order: 3;
  display: flex;
  gap: 1rem;
  align-items: center;
  flex: 1;
  justify-content: flex-end;
}

.search-toggle {
  background: #e65f0d;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
  color: #333;
  border-radius: 5px;
}

a.si-news {
  font-weight: bold;
  text-decoration: underline;
  cursor: pointer;
}

.search-toggle:hover {
  color: #e65f0d;
}

/* Main Navigation */
.main-nav {
  border-top: 1px solid #eee;
  background: white;
  padding-top: 0.5%;
  position: static;
  /* Comportement par défaut */
  transition: transform 0.3s ease, position 0.3s ease;
}

.main-nav.fixed {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 999;
  background-color: white;
  /* Couleur de fond pour ne pas chevaucher */
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  /* Optionnel : ajout d'un ombrage */
}

.main-nav.hidden {
  transform: translateY(-100%);
}

#menu-menu-principal li:last-child {
  display: flex;
  justify-content: center;
  align-items: center;

}

.menu {
  display: flex;
  justify-content: center;
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 1200px;
  margin: 0 auto;
  padding-bottom: 0.5%;
}

.menu li {
  margin: 0;
  padding: 0;
}

.menu a {
  display: block;
  padding: 1.1rem 1.1rem;
  color: #333;
  text-decoration: none;
  text-transform: uppercase;
  font-size: clamp(0.8rem, 0.9vw, 0.875rem);
  font-weight: bold;
  letter-spacing: 0.2px;
  transition: color 0.3s ease;
}

.menu a:hover {
  color: #e65f0d;
}

/* WeVan Market Button */
.menu li:last-child a {
  background: #000000;
  color: white;

  padding: 0.6rem 0.6rem;
  border-radius: 4px;
}

.menu li:last-child a:hover {
  background: #d35400;
}

/* Burger Menu */
.burger-menu {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.burger-menu span {
  display: block;
  width: 25px;
  height: 2px;
  background: #333;
  margin: 5px 0;
  transition: 0.3s;
}

/* Mobile Styles */
@media (max-width: 926px) {

  #menu-menu-principal li:last-child {
    margin-top: 5.5%;
  }

  .header-container {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    align-items: center;
    padding: 0.5rem 1rem;
    gap: 10px;
  }

  .social-icons {
    display: none;
  }

  .search-wrapper {
    order: 3;
    justify-self: end;
    margin: 0;
  }

  .logo {
    order: 2;
    justify-self: center;
    margin: 0;
    flex: none;
  }

  .burger-wrapper {
    order: 1;
    justify-self: start;
    margin: 0;
  }

  .logo img,
  .custom-logo {
    max-width: 240px;
    max-height: 50px;
  }

  .burger-menu {
    display: block;
    margin-left: 1rem;
  }

  .main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 390px;
    height: 100vh;
    background: white;
    transition: 0.3s;
    z-index: 1000;
  }

  .main-nav.is-active {
    left: 0;
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.1);
  }

  .menu {
    flex-direction: column;
    padding: 0 2rem;
    margin-left: 0;
    width: 100%;
  }

  .menu a {
    padding: 0.8rem 0;
  }

  /* Burger Animation */
  .burger-menu.is-active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .burger-menu.is-active span:nth-child(2) {
    opacity: 0;
  }

  .burger-menu.is-active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
  }

  /* Prevent scroll when menu is open */
  body.menu-open {
    overflow: hidden;
  }

  /* Mobile WeVan Market button */
  .menu li:last-child a {
    margin: 0;
    text-align: left;
    border-radius: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 10%;
  }

  .menu li {
    border-bottom: solid 1px #e2d7d7;
  }

  .menu li:last-child {
    border-bottom: none;
  }
}

/* STYLE POUR LA PAGE CATEGORIE.PHP */
.category-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.category-header {
  text-align: center;
  margin-bottom: 30px;
}

.category-header h1 {
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 10px;
}

.category-header .category-description {
  font-size: 1rem;
  color: #666;
}

.category-articles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.category-article {
  background: #f9f9f9;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.category-article:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.article-link {
  text-decoration: none;
  color: inherit;
}

.article-thumbnail img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.article-content {
  padding: 15px;
}

.article-title {
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 10px;
  color: #333;
}

.article-excerpt {
  font-size: 1rem;
  color: #666;
  margin-bottom: 15px;
}

.article-date {
  font-size: 0.9rem;
  color: #999;
}

/* Pagination styles */
.pagination {
  text-align: center;
  margin: 30px 0;
}

.pagination a {
  padding: 10px 15px;
  margin: 0 5px;
  background: #e65f0d;
  color: #fff;
  border-radius: 5px;
  text-decoration: none;
  transition: background 0.3s ease;
}

.pagination a:hover {
  background: #d35400;
}

/* Responsive */
@media (max-width: 768px) {
  .category-header h1 {
    font-size: 2rem;
  }

  .article-thumbnail img {
    height: 150px;
  }
}

/* STYLE POUR LES PAGES CATEGORIES CARREFOUR D ARTICLES */
.category-wrapper {
  padding: 30px 15px;
  background: #f8f9fa;
  width: 65%;
}

.category-container {
  max-width: 1250px;
  margin: 0 auto;
}

/* Liste des véhicules - Style par défaut en une colonne */
.vans-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.van-card {
  display: flex;
  flex-direction: column;
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.van-image {
  /* padding: 0 4%; */
  display: flex;
  justify-content: center;
  align-items: center;
}

.search-page .van-image img {
  aspect-ratio: 16/9;
}

.van-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.van-content {
  padding: 2% 6%;
}

.van-title {
  font-size: 1.25rem;
  /* margin: 0 0 15px; */
}

.van-details {
  display: flex;
  gap: 15px;
  margin-bottom: 15px;
}

.van-price {
  font-weight: bold;
  color: #2c3e50;
}

.van-mileage {
  color: #666;
}

.van-excerpt {
  color: #666;
  margin-bottom: 15px;
  line-height: 1.5;
}

/* Style du bouton van-link */
.van-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: white;
  text-decoration: none;
  font-weight: 500;
  background-color: #000;
  padding: 8px 16px;
  border-radius: 4px;
  transition: background-color 0.3s;
}

.van-link:hover {
  background-color: #333;
}

.van-link svg {
  stroke: white;
}

/* Correction de la pagination pour prix-du-neuf */
.prix-du-neuf-category .pagination {
  grid-column: 1 / -1;
  /* Prend toute la largeur du grid */
  text-align: center;
  margin-top: 30px;
}

.pagination ul {
  display: flex;
  justify-content: center;
  gap: 10px;
  list-style: none;
  padding: 5%;
  margin: 0;
}

.pagination li {
  display: inline-block;
}

.pagination a,
.pagination span {
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  color: #000;
  text-decoration: none;
}

.pagination span.current {
  background-color: #000;
  color: white;
  border-color: #000;
}

.pagination a:hover {
  background-color: #f5f5f5;
}

/* Styles spécifiques pour la catégorie prix-du-neuf */
.prix-du-neuf-category .category-container {
  max-width: 1200px;
}

.prix-du-neuf-category .vans-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* Styles des filtres */
.prix-neuf-filters {
  display: flex;
  gap: 15px;
  margin-bottom: 30px;
  justify-content: flex-start;
}

.prix-neuf-select {
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: white;
  min-width: 200px;
  cursor: pointer;
  color: black;
  font-size: 15px;
}

.prix-neuf-select:focus {
  outline: none;
  border-color: #2c3e50;
}

/* État de chargement */
.vans-list.loading {
  opacity: 0.5;
  pointer-events: none;
}

/* Media queries */
@media (min-width: 1250px) and (max-width: 1500px) {
  .van-title {
    font-size: 1.05rem;
  }
}

@media (max-width: 1250px) {
  .prix-du-neuf-category .vans-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .van-title {
    font-size: 1.05rem;
  }
}

@media (max-width: 768px) {
  .category-wrapper {
    width: 100%;
  }

  .van-title {
    font-size: 1.1rem;
  }

  .article-title {
    font-size: 1.1rem;
  }

  .prix-neuf-filters {
    flex-direction: column;
    align-items: stretch;
  }

  .prix-neuf-select {
    width: 100%;
  }
}

@media (max-width: 576px) {
  .prix-du-neuf-category .vans-list {
    grid-template-columns: 1fr;
  }

  .category-container {
    max-width: 100%;
  }
}

.load-more-container {
  text-align: center;
  margin: 30px 0;
}

.load-more-button {
  background-color: #e65f0d;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s;
  text-transform: uppercase;
}

.load-more-button:hover {
  background-color: #ca6f1f;
}

.newsletter-block {
  max-width: 1050px;
  margin: 0 auto;
  z-index: 1;
  padding: 2% 1%;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  top: 40px;
  position: relative;
  width: 100%;
}

.newsletter-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.newsletter-content p {
  text-wrap: balance;
}

/* .newsletter-logo {
  max-width: 170px;

} */

.newsletter-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 20px;
}

.newsletter-form input[type="email"] {
  width: 85%;
  max-width: 400px;
  padding: 12px 16px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 16px;
  background: white;
}

.newsletter-form input[type="email"]::placeholder {
  color: #99999986;
  /* Remplacez par la couleur souhaitée */
  opacity: 1;
  /* Force l'opacité pour Firefox */
}

.newsletter-form button[type="submit"] {
  background-color: #e65f0d;
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 12px 24px;
  font-size: 16px;
  cursor: pointer;
  width: max-content;
}

.newsletter-form p {
  font-size: 14px;
  color: #666;
  margin-top: 12px;
}

.form-footer-sub {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  flex-direction: column;
}

.close-popup {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  font-size: 16px;
  cursor: pointer;
  color: #999;
}

.newsletter-popup-content .close-popup {
  position: absolute;
  top: 0px;
  right: 5px;
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: #000000;
}

/* .newsletter-logo {
  max-width: 150px;
  margin-bottom: 15px;
} */
#newsl {
  max-width: 350px;
  margin-bottom: 15px;
}

.newsletter-popup h3 {
  margin-top: 0;
  margin-bottom: 15px;
}

.newsletter-popup p {
  margin-bottom: 15px;
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.newsletter-form input[type="email"] {
  padding: 12px;
  margin-bottom: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  background: #e6600d;
}

.newsletter-form input[type="email"]::placeholder {
  color: white !important;
  opacity: 1;
}

.newsletter-form button[type="submit"] {
  background-color: black;
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 12px;
  cursor: pointer;
  margin-bottom: 10px;
}

.newsletter-form p {
  font-size: 13px;
  color: #777;
  line-height: 1.4;
}

/* Adaptation pour mobile - sans scroll */
@media screen and (max-width: 480px) {
  .form-footer-sub {
    gap: 3%;
  }

  .newsletter-block {
    background-color: #e9e5e5;
  }

  .newsletter-popup {
    /* Conserver la largeur mais réduire la hauteur */
    padding: 15px;
    /* Supprimer la hauteur max et le scroll */
    max-height: none;
    overflow-y: visible;
  }

  /* Réduire la taille du logo */
  /* .newsletter-logo {
    max-width: 100px;
    margin-bottom: 10px;
  } */

  /* Réduire la taille du titre */
  .newsletter-popup h3 {
    font-size: 14px;
    margin-bottom: 8px;
    line-height: 1.2;
  }

  /* Réduire la taille du texte */
  .newsletter-popup p {
    font-size: 12px;
    line-height: 1.2;
    margin-bottom: 8px;
  }

  /* Réduire la hauteur des champs et boutons */
  .newsletter-form input[type="email"] {
    padding: 6px 8px;
    margin-bottom: 1px;
    font-size: 12px;
    height: 32px;
  }

  .newsletter-form button[type="submit"] {
    padding: 6px 8px;
    font-size: 12px;
    height: 32px;
    margin-bottom: -10px;
  }

  /* Réduire encore plus la dernière note */
  .newsletter-form p {
    font-size: 10px;
    line-height: 1.2;
    margin-bottom: 0;
  }

  /* Positionner le bouton de fermeture pour gagner de l'espace */
  .close-popup {
    top: 5px;
    right: 5px;
    font-size: 14px;
  }
}

/* advanced ads image

/* Ciblage des conteneurs de publicité Lebar */
/* .lebar-banniere-home img,
.lebar-highlight-wrapper img,
.lebar-target img,
[id^="lebar-"] img,
/* [class*="lebar-"] img  */
/* {
  max-width: 100% !important;
  height: auto !important;
  display: inline-block;
} */
*/
/* Ciblage spécifique de votre div publicitaire */
/* #cbaa5a32ca50f26b4e1f93dc7fc216f65 img {
    max-width: 100% !important;
    height: auto !important;
} */

/* Si vous voulez limiter la largeur du conteneur lui-même */
.lebar-banniere-home,
.lebar-highlight-wrapper,
.lebar-target {
  max-width: 100% !important;
  overflow: hidden;
}

.lebar-target .adv-link img {
  max-width: 100% !important;
  height: auto !important;
  display: inline-block;
}

.single-post-wrapper p a {
  color: #e65e0c;
}

.tablepress> :where(thead, tfoot)>tr>* {
  background-color: black !important;
  color: white;
}

.has-white-background {
  padding: 2% max(20px, 1%);
}

.has-white-background+.has-white-background {
  margin-top: -2%;
}

.has-white-background+.has-grey-background.has-white-background,
.has-white-background+.videos-section.has-white-background,
.has-white-background+#ailleurs2.has-white-background,
.has-white-background#ailleurs2+.has-white-background,
.has-white-background.has-grey-background+.has-white-background,
.has-white-background.videos-section+.has-white-background,
.has-white-background#cbaa5a32ca50f26b4e1f93dc7fc216f65+.has-white-background {
  margin-top: 0;
}

#cbaa5a32ca50f26b4e1f93dc7fc216f65:empty {
  display: none;
}

@media (max-width: 768px) {
  .footer-bottom-nav {
    display: flex;
    justify-content: center;
    align-items: center;

  }

  .footer-bottom-menu {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
    width: 100%;
  }

  .footer-bottom-menu li {
    border-bottom: solid 1px grey;
    width: 100%;
    text-align: left;
  }

  .footer-bottom-menu li a {
    width: 100%;
  }

  .titlespecth {
    margin-top: -20px;
    margin-bottom: 10px !important;
  }

  .camper-section.has-white-background {
    margin-top: 4%;
  }

  .footer-column a {
    width: 100%;
  }

  #liresox li {
    border-bottom: none !important;
  }
}

.link-footer-th {
  margin-bottom: 0;
  border-bottom: none !important;
  color: white;
}

.link-footer-th p {
  font-size: 0.75rem;
  text-transform: initial;
}

.single-post-content p a img {
  height: auto;
  max-width: 100%;
  display: block;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.single-post-content img {
  height: auto;
  max-width: 100%;
}

.single-post-content img.aligncenter {
  margin-left: auto;
  margin-right: auto;
  display: block;
}

@media (min-width: 768px) {
  .single-post-content .alignright {
    float: right;
    margin-top: .5rem;
    margin-left: 2rem;
    margin-bottom: 2rem;
  }
}

/* .single-post-content .content-styled-div .alignright {
  float: none;
  margin-left: auto;
  width: auto;
  margin-right: 0;
}

.single-post-content .content-styled-div .alignleft {
  float: none;
  margin-right: auto;
  width: auto;
  margin-left: 0;
} */

.single-post-content p iframe {
  max-width: 100%;
  height: 100vh;
}

.newlinkth {
  text-decoration: none;
  color: black;
}

h1.category-title {
  font-size: 2.2rem;
  font-weight: bold;
  margin-bottom: 25px;
  position: relative;
  padding-left: 15px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
}

h1.category-title::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 85%;
  background-color: #e65f0d;
  position: absolute;
  left: -5px;
  top: 0;
}

.hautburger {
  display: none !important;
}

.surtitretho {
  display: none;
}

.followme-burger {
  display: none;
}

.burger-socials {
  display: none;
}

@media (max-width: 768px) {
  .hautburger {
    display: flex !important;
  }

  .surtitretho {
    display: flex;
    color: #e65f0d;
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    position: relative;
    width: 100%;
    margin-bottom: 12px;
    padding: 0 2rem;
  }

  .followme-burger {
    display: flex;
    color: #e65f0d;
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    position: relative;
    width: 100%;
    margin-bottom: 12px;
    padding: 0 2rem;
  }

  .burger-socials {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 15px;
    /* margin-top: 20px; */
    width: 100%;
    margin-bottom: 12px;
    padding: 0 2rem;
  }

  .burger-socials a {
    color: black;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: inline-block;
  }

  .burger-socials li {
    margin-bottom: 12px;
  }
}

@media (max-width: 768px) {
  .burger-socials li {
    text-transform: uppercase;
    border-bottom: solid 1px grey;
  }
}

@media (max-width: 768px) {
  #liresoxburg li {
    border-bottom: none !important;
  }
}

@media (max-width: 768px) {
  .burger-socials i {
    font-size: 2.4rem;
    margin-right: 5px;
  }
}

/* Croix de fermeture du menu mobile */
.main-nav .nav-close {
  position: absolute;
  top: 15px;
  right: 20px;
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: #333;
  z-index: 1001;
}

.main-nav .nav-close:hover {
  color: #e65f0d;
}

/* Masquer la croix par défaut */
.nav-close {
  display: none;
}

#search-button {
  padding: 1% 5%;
  color: white;
  background: black;
}

/* Afficher la croix seulement quand le menu est ouvert sur mobile */
@media (max-width: 926px) {
  .main-nav.is-active .nav-close {
    display: block;
  }

  #search-button {
    padding: 3% 5%;
    color: white;
    background: black;
  }
}

.amenageur-content {
  margin-bottom: 1.5rem;
}

.tablepress thead .dt-orderable-asc .dt-column-order,
.tablepress thead .dt-orderable-desc .dt-column-order,
.tablepress thead .dt-ordering-asc .dt-column-order,
.tablepress thead .dt-ordering-desc .dt-column-order {
  color: white !important;
}

.tablepress thead .dt-orderable-asc:hover,
.tablepress thead .dt-orderable-desc:hover,
.tablepress thead .dt-ordering-asc,
.tablepress thead .dt-ordering-desc {
  color: white !important;
  ;
}

.tag .van-details {
  margin-bottom: 0;
}

.tag .van-link {
  margin-bottom: 3%;
}

.articles-grid .article-content {
  padding: 15px 0 0 15px;

}


/* formulaire  */
/* Container principal centré */
.col-12 {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
}

/* Style pour l'intro du formulaire */
.formulaire-amenageur-intro {
  background: #f8f9fa;
  padding: 25px;
  border-radius: 8px;
  margin-bottom: 30px;
  text-align: left;
}

.formulaire-amenageur-intro p {
  margin-bottom: 15px;
  line-height: 1.6;
}

/* Container du formulaire Contact Form 7 */
.wpcf7 {
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

/* Fieldsets stylisés */
.wpcf7-form fieldset.section-infos-perso,
.wpcf7-form fieldset.section-profil-public {
  border: none;
  border-top: 3px solid #e65f0d;
  padding: 30px 25px;
  margin: 0;
  background: #fafafa;
}

.wpcf7-form fieldset.section-profil-public {
  border-top-color: #e65f0d;
}

.wpcf7-form fieldset legend {
  background: white;
  padding: 10px 20px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-weight: bold;
  font-size: 1.1em;
  color: #333;
  margin-bottom: 20px;
}

.wpcf7-form .section-description {
  font-style: italic;
  color: #666;
  margin-bottom: 25px;
  padding: 15px;
  background: white;
  border-left: 4px solid #e65f0d;
  border-radius: 4px;
}

/* Amélioration des champs de formulaire */
.wpcf7-form p {
  margin-bottom: 20px;
}

.wpcf7-form label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #333;
}

.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form input[type="url"],
.wpcf7-form input[type="file"],
.wpcf7-form textarea {
  width: 100%;
  padding: 12px;
  border: 2px solid #e0e0e0;
  border-radius: 6px;
  font-size: 16px;
  transition: border-color 0.3s, box-shadow 0.3s;
  box-sizing: border-box;
}

.wpcf7-form input:focus,
.wpcf7-form textarea:focus {
  border-color: #007cba;
  outline: none;
  box-shadow: 0 0 8px rgba(0, 124, 186, 0.2);
}

.wpcf7-form textarea {
  min-height: 120px;
  resize: vertical;
}

/* Style pour les checkboxes et radios */
.wpcf7-form .wpcf7-list-item {
  margin-bottom: 12px;
  display: block;
}

.wpcf7-form .wpcf7-list-item label {
  display: flex;
  align-items: flex-start;
  font-weight: normal;
  cursor: pointer;
  margin-bottom: 0;
}

.wpcf7-form .wpcf7-list-item input[type="checkbox"],
.wpcf7-form .wpcf7-list-item input[type="radio"] {
  margin-right: 12px;
  margin-top: 2px;
  width: auto;
  flex-shrink: 0;
}

/* Grille pour les services */
.wpcf7-form .wpcf7-checkbox {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 10px;
  margin-top: 10px;
}

/* Info caractères */
.wpcf7-form .caracteres-info {
  font-size: 0.9em;
  color: #666;
  font-style: italic;
}

/* Bouton de soumission */
.wpcf7-form .submit-section {
  text-align: center;
  margin-top: 40px;
  padding: 30px;
  background: white;
  border-top: 1px solid #eee;
}

.wpcf7-form .wpcf7-submit {
  background: black;
  color: white;
  padding: 15px 40px;
  border: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 4px 15px rgba(0, 124, 186, 0.3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.wpcf7-form .wpcf7-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 124, 186, 0.4);
}

/* Messages d'erreur et de succès */
.wpcf7-response-output {
  margin-top: 20px;
  padding: 15px;
  border-radius: 6px;
}

.wpcf7-validation-errors {
  background: #f8d7da;
  border: 1px solid #f5c6cb;
  color: #721c24;
}

.wpcf7-mail-sent-ok {
  background: #d4edda;
  border: 1px solid #c3e6cb;
  color: #155724;
}

/* Responsivité */
@media (max-width: 768px) {
  .col-12 {
    padding: 15px;
  }

  .formulaire-amenageur-intro {
    padding: 20px;
  }

  .wpcf7-form fieldset.section-infos-perso,
  .wpcf7-form fieldset.section-profil-public {
    padding: 20px 15px;
  }

  .wpcf7-form .wpcf7-checkbox {
    grid-template-columns: 1fr;
  }

  .wpcf7-form .wpcf7-submit {
    width: 100%;
    padding: 15px 20px;
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .col-12 {
    padding: 10px;
  }

  .formulaire-amenageur-intro {
    padding: 15px;
    font-size: 14px;
  }

  .wpcf7-form fieldset legend {
    padding: 8px 15px;
    font-size: 1em;
  }

  .wpcf7-form input,
  .wpcf7-form textarea {
    font-size: 16px;
    /* Évite le zoom sur iOS */
  }
}

.search-results .van-link {
  margin-bottom: 2%;
}

@media (max-width: 768px) {
  .newsletter-form input[type="email"] {
    width: 77%;
  }

  .search-results .van-link {
    margin-bottom: 4%;
  }

  .articles-grid .article-content {
    padding: 15px 0 15px 15px;
  }
}


.single-post .single-post-content ul {
  padding-left: max(25px, 4%);
  margin-bottom: 2rem;
}

.single-post .single-post-content h2 {
  margin-top: 1em;
  font-size: 1.5em;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 0.5em;
}

.single-post .single-post-content h1 {
  margin-top: 1em;
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 10px;
  color: #1a1a1a;
}

.single-post .single-post-content h3 {
  margin-top: 1em;
  font-size: 1.3em;
}

.foogallery {
  margin-top: 3%;
  margin-bottom: 3%;
}

/* Cibler le paragraphe contenant em */
.single-post .single-post-content p em {
  display: inline;
  /* Pas de flex */
  font-style: normal;
  font-style: italic;
}

.single-post .single-post-content p em a {
  /* float: left; */
  /* Float l'image à gauche */
  margin-right: 4px;
  /* Espacement entre image et texte */
  margin-bottom: 0;
  /* Espacement en bas si le texte est court */

}

.single-post .single-post-content p em a img {
  display: block;
  border-radius: 8px;
  /* Optionnel */
}

/* Centrer le paragraphe SEULEMENT s'il contient une iframe */
.single-post .single-post-content p:has(iframe) {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Optionnel : styles pour l'iframe elle-même */
.single-post .single-post-content p:has(iframe) iframe {
  max-width: 100%;
  width: 100%;
  height: auto;
  aspect-ratio: 16/9;
  margin: 30px 0;
  /* min-height: 770px; */
}

.single-post .single-post-content iframe[data-orientation="vertical"] {
  aspect-ratio: 9 / 16;
  min-height: unset;
  max-width: 400px;
  margin-inline: auto;
}


/* test */
/* Garder tous les éléments inline dans les citations */


/* Ou plus spécifiquement pour ce type de citation */
.single-post .single-post-content p:has(em strong) em,
.single-post .single-post-content p:has(em strong) strong {
  display: inline;
}

.single-post .single-post-thumbnail img {
  width: 100% !important;
  object-fit: cover;
  overflow: hidden;
  text-align: center;
  height: auto;
}

.tag-amenagement .van-content {
  margin-top: 1%;
}


/* attention dynamisation de l affichage des pubs pavé grid pour mobile ou desktop  */
/* ========== GESTION AUTOMATIQUE DESKTOP/MOBILE GRIDS ========== */

/* Par défaut (Desktop) : Afficher les grids avec 3+ pubs, masquer ceux avec 2 pubs */
/* ul[id^="lebar-grid-"] {
  display: flex !important;
} */

/* Masquer les grids avec exactement 2 pubs (version mobile) */
/* ul[id^="lebar-grid-"]:has(> li:nth-child(2)):not(:has(> li:nth-child(3))) {
  display: none !important;
} */

.lebar-article-fix-2 {
  display: none;
}

/* ========== MOBILE (≤ 768px) ========== */
@media (max-width: 768px) {

  .lebar-article-fix-2 {
    display: block;
  }

  /* .lebar-article-fix {
    display: none;
  } */

  /* Masquer les grids avec 3+ pubs (version desktop) */
  /* ul[id^="lebar-grid-"]:has(> li:nth-child(3)) {
    display: none !important;
  } */

  /* Afficher les grids avec exactement 2 pubs (version mobile) */
  /* ul[id^="lebar-grid-"]:has(> li:nth-child(2)):not(:has(> li:nth-child(3))) {
    display: flex !important;
    flex-direction: column !important;
  } */

  /* Adapter les li en mobile */
  ul[id^="lebar-grid-"]>li {
    width: 100% !important;
    max-width: 300px !important;
    margin: 10px auto !important;
    float: none !important;
  }

  /* Images responsives */
  ul[id^="lebar-grid-"] img {
    max-width: 100%;
    height: auto;
  }
}

.a2t-link {
  display: flex;
}

.a2t-link img {
  width: 100%;
  height: auto;
}

/* ========== LINE-HEIGHT 0 SUR LES CONTENEURS LEBAR ========== */
div[data-lebar-trackid] {
  line-height: 0 !important;
}

/* Alternative : cibler aussi par l'ID */
div[id^="lebar-"] {
  line-height: 0 !important;
}

/* pub dans les articles  */

/* Forcer 100% de largeur pour les images des pubs Advanced Ads */
div[data-lebar-trackid] img,
div[class*="lebar-"] img,
.lebar-highlight-wrapper img {
  width: auto !important;
  height: auto !important;
  max-width: 100% !important;
  display: block !important;
  margin: 10px auto;
}

/* Spécifiquement pour les conteneurs */
div[data-lebar-trackid],
div[class*="lebar-"],
.lebar-highlight-wrapper {
  width: auto !important;
  max-width: 100% !important;
  line-height: 0 !important;
  font-size: 0 !important;
}


.single-post-content p+p {
  margin-top: 20px
}

/* -- AJOUTS FLO -- DEBUG -- */
/* ---------------------------- */
@media (max-width:80em) {
  .tablepress>:not(caption)>*>* {
    font-size: 12px
  }
}

@media (max-width:60em) {
  .tablepress>:not(caption)>*>* {
    font-size: 10px
  }
}

@media (max-width:45em) {
  .tablepress>:not(caption)>*>* {
    font-size: 7.5px;
    padding: 4px
  }
}

/* très petites résols on met un overflow pas le choix
sinon faut faire un vrai tableau responsive
 */
@media (max-width:400px) {
  .dt-layout-cell.dt-layout-full:has(.tablepress) {
    max-width: 100%;
    overflow-x: scroll
  }
}

/* ---------------------------- */
.single-post-content ul li a {
  color: #e65f0d;
}

/* =============================================
   STYLES POUR L'ÉDITEUR TINYMCE (preview)
   ============================================= */

/* Style Titre XL */
.style-titre-xl {
  display: block;
  font-weight: 700;
  font-size: 42px;
  line-height: 1.2;
  color: #1a1a1a;
  margin: 15px 0;
}

/* Style Titre L */
.style-titre-l {
  display: block;
  font-weight: 700;
  font-size: 32px;
  line-height: 1.3;
  color: #1a1a1a;
  margin: 12px 0;
}

/* Style Titre M */
.style-titre-m {
  display: block;
  font-weight: 600;
  font-size: 24px;
  line-height: 1.4;
  color: #1a1a1a;
  margin: 10px 0;
}

/* Style Titre S */
.style-titre-s {
  display: block;
  font-weight: 600;
  font-size: 18px;
  line-height: 1.4;
  color: #1a1a1a;
  margin: 8px 0;
}

/* Surlignages */
.surligne-jaune {
  background-color: #fff59d;
  padding: 2px 6px;
}

.surligne-orange {
  background-color: #ffcc80;
  padding: 2px 6px;
}

/* Encadré info */
.encadre-info {
  background: #f5f5f5;
  border-left: 4px solid #e65f0d;
  padding: 20px;
  margin: 20px 0;
  border-radius: 0 8px 8px 0;
}

/* Tableau */
.dt-container .column-2 {
  white-space: nowrap;
}

.dt-container th .dt-column-title {
  text-align: center;
}

.dt-container td {
  text-align: center;
}

hr[align="CENTER"] {
  margin: 2rem auto;
}

.lebar-article-fix,
.lebar-article-fix-2,
.lebar-article-fix-2-3,
.lebar-article-fix-2-3-3 {
  margin: 3rem 0;
}

/* Foogallery */

.foogallery .fg-caption-title {
  white-space: wrap !important;
  overflow: visible !important;
  height: auto !important;
  max-width: 90%;
}

/* Images dans les divs stylés du contenu - forcer max-width */
.content-styled-div img {
  height: auto;
  max-width: 100%;
  margin-top: 2rem;
  margin-bottom: 2rem;
}

#banniere-fixe img {
  margin: 0;
}