/*!
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,
body *:not([class*="fa-"]):not(.fa):not(.fas):not(.far):not(.fab):not(.fal):not(.fad) {
  /* font-family: 'Lora', serif;  */
  font-family: "Nunito", sans-serif !important;
}

/* 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: #01a29a;
}

@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.8rem;
  }

  .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: clip;
  width: 100%;
}

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

.section-title:before {
  content: "";
  display: inline-block;
  width: 5px;
  background-color: #01a29a;
  position: absolute;
  left: -5px;
  height: calc(100% - 0.45em);
  top: 47.8%;
  transform: translateY(-50%);
}

.section-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

.section-title a:hover {
  color: #01a29a;
}

@media (max-width: 768px) {
  .section-title {
    font-size: 1.5em;
    margin-bottom: 15px;
  }
}

.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: #01a29a;
}

.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: #01a29a;
}

/* 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 */
/* 40 % a gauche + 35 % a droite + 5 % d'ecart ne faisaient que 80 % : les
   20 % restants etaient pousses au milieu par le space-between, d'ou le
   grand vide signale par Nathalie (332 px en 1440, 369 en 1920). La partie
   gauche occupe maintenant la place disponible. */
.footer-left {
  flex: 1 1 auto;
}

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

.footer-content {
  color: #f5f5f5;
  font-size: 1em;
  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 #01a29a;
  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: #01a29a;
  border-color: #01a29a;
  transform: translateY(-2px);
}

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

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

.footer-column {
  flex: 1;
}

.footer-column h3 {
  color: #01a29a;
  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: 1em;
  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: #01a29a;
  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: 3px;
  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;
  }
}

/* Espace avant "Suivez-nous !" dans le pied de page. La regle mobile qui
   suit conserve sa propre valeur, elle est declaree apres celle-ci. */
.followme {
  /* RECETTAGE Nathalie : separer franchement ce bloc de la liste qui le
     precede. 28 px ne suffisaient pas a marquer la rupture. */
  margin-top: 48px;
}

@media (max-width: 768px) {

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

  .followme {
    margin-top: 32px;
  }

  .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: #01a29a;
  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: #01a29a;
}

/* 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%);
}

.main-nav .menu > 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: 1550px;
  margin: 0 auto;
  padding-bottom: 0.5%;
}

/* Header sticky : garder le style compact */
.main-nav.fixed .menu {
  max-width: 1200px;
}

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

.menu a {
  display: block;
  padding: 1.1rem 1.3rem;
  color: #333;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 0.95rem;
  font-weight: bold;
  letter-spacing: 0.2px;
  transition: color 0.3s ease;
}

/* Header sticky : style compact */
.main-nav.fixed .menu a {
  font-size: clamp(0.8rem, 0.9vw, 0.875rem);
  padding: 1.1rem 1.1rem;
}

.menu a:hover {
  color: #01a29a;
}

/* 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: #017c76;
}

/* RECETTAGE Nathalie : le bouton noir a un padding de 0.6rem la ou les autres
   items en ont 1.3rem. Le blanc avant lui tombait donc a 30,4 px contre 41,6 px
   entre deux items normaux. On compense la difference pour que l'oeil voie le
   meme ecart. Desktop uniquement : dans le burger les items sont empiles. */
@media (min-width: 1261px) {
  .menu li:last-child {
    margin-left: 0.7rem;
  }
}

/* RECETTAGE: Menu compact entre 930px et 1260px pour eviter retour a la ligne */
@media (min-width: 930px) and (max-width: 1260px) {
  .main-nav .menu a {
    font-size: 0.75rem !important;
    padding: 1rem 0.7rem !important;
  }
}

/* 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) {

  .main-nav .menu > li:last-child {
    margin-top: 5.5%;
  }

  .header-container {
    display: grid;
    /* burger et loupe à leur taille, le logo prend le reste */
    grid-template-columns: auto 1fr auto;
    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: stretch;
    text-align: center;
    min-width: 0;
    margin: 0;
    flex: none;
  }

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

  .logo img,
  .custom-logo {
    /* Largeur explicite : dans la grille mobile la colonne du logo se
       réduit à 0 avec un SVG en width:auto (max-width:100% => 0px). */
    width: 100%;
    max-width: 220px;
    max-height: 50px;
    height: auto;
  }

  .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: #01a29a;
  color: #fff;
  border-radius: 5px;
  text-decoration: none;
  transition: background 0.3s ease;
}

.pagination a:hover {
  background: #017c76;
}

/* 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: 70%;
  max-width: 1200px;
}

.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;
}

/* RECETTAGE: ratio 3:2 pour toutes les images van */
.van-image img {
  width: 100%;
  height: auto;
  aspect-ratio: 3/2;
  object-fit: cover;
}

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

.van-title {
  font-size: 1.3rem;
  /* 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.3rem;
  }
}

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

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

@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: #01a29a;
  color: white;
  padding: 0.3rem 0.9rem;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  transition: background-color 0.3s;
  font-size: 1.1rem;
  font-weight: 600;
}

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

.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: #01a29a;
  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: #01a29a;
}

.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: #01a29a;
}

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

.has-white-background {
  padding: max(40px, 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: 1em;
  text-transform: initial;
  margin-bottom: 15px;
}

.link-footer-th {
  margin-top: 10px;
}

/* RECETTAGE Nathalie : « Le media reference » demarrait 10 px plus bas que
   « Actualites », parce que le premier element de cette colonne heritait du
   retrait applique aux suivants. On l'annule sur le premier seul : les deux
   colonnes commencent desormais a la meme hauteur, et l'espacement entre les
   elements suivants ne bouge pas. */
.link-footer-th:first-child {
  margin-top: 0;
}

.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;
  background-color: #01a29a;
  position: absolute;
  left: -5px;
  height: calc(100% - 0.4em);
  top: 50%;
  transform: translateY(-50%);
}

.hautburger {
  display: none !important;
}

.surtitretho {
  display: none;
}

.followme-burger {
  display: none;
}

.burger-socials {
  display: none;
}

@media (max-width: 768px) {
  h1.category-title {
   font-size: 1.5em;
  }
  .hautburger {
    display: flex !important;
  }

  .surtitretho {
    display: flex;
    color: #01a29a;
    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: #01a29a;
    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: #01a29a;
}

/* 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: 10px;
}

.articles-grid .article-content .article-title {
  margin-bottom: 0;
}

/* 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 #01a29a;
  padding: 30px 25px;
  margin: 0;
  background: #fafafa;
}

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

.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 #01a29a;
  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%;
  }
}


.single-post .single-post-content ul,
.single-post .single-post-content ol {
  padding-left: max(25px, 4%);
  margin-bottom: 2rem;
  /* RECETTAGE Nathalie : la liste se collait au texte qui la precede. La
     remise a zero generale des marges (* { margin: 0 }) n'etait rattrapee
     que pour le bas. On rend le blanc du haut, cale sur celui que sert le
     site actuel (16 px). */
  margin-top: 1rem;
}

.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.2em;
}

/* RECETTAGE Nathalie : le H4 n'avait aucun blanc au-dessus. La remise a zero
   generale des marges (* { margin: 0 }) est rattrapee pour H2 et H3 par les
   deux regles ci-dessus, mais rien ne la rattrapait pour les niveaux
   inferieurs : un titre de niveau 4 se collait au paragraphe precedent.
   Meme retrait que H2 et H3. */
.single-post .single-post-content h4,
.single-post .single-post-content h5,
.single-post .single-post-content h6 {
  margin-top: 1em;
}

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

/* RECETTAGE Nathalie : tous les styles de galerie doivent respirer comme la
   Visionneuse d'images, seule a tomber juste. La regle ci-dessus ne suffit
   pas : foogallery.min.css pose .fg-default.fg-gutter-10 { margin-bottom:
   -10px } pour rattraper sa gouttiere, et ce selecteur est plus specifique.
   On repasse donc devant avec trois classes. */
.single-post .single-post-content .foogallery {
  margin-top: 3%;
  margin-bottom: 3%;
}

/* RECETTAGE Nathalie : un tableau TablePress se collait au texte, sans aucune
   marge haute. Meme respiration qu'une image simple, 20 px de part et
   d'autre. */
/* RECETTAGE Nathalie : quand une photo est bridee en hauteur, elle retrecit
   en largeur, mais le cadre garde la largeur ecrite dans l'article (un style
   en dur pose par le shortcode caption). La legende s'etalait donc plus large
   que la photo. Le cadre se cale maintenant sur son contenu.
   La legende, elle, ne doit pas elargir le cadre a son tour : largeur nulle
   et largeur minimale de 100 % la font compter pour rien dans le calcul du
   cadre, tout en occupant ensuite toute sa largeur. On evite ainsi le
   display:table, qui transforme une hauteur en minimum et etire la photo. */
.single-post .single-post-content figure.wp-caption {
  width: fit-content !important;
  max-width: 100% !important;
  margin-left: auto;
  margin-right: auto;
}

.single-post .single-post-content figure.wp-caption .wp-caption-text {
  width: 0;
  min-width: 100%;
}

/* RECETTAGE Nathalie : respiration des tableaux, 20 px de part et d'autre.

   Il faut viser DEUX elements, et c'est ce qui bloquait. Un tableau dont le
   tri est actif est enveloppe au chargement par DataTables, et TablePress
   pose alors :

       .dt-container .dt-layout-cell.dt-layout-full > :only-child { margin: auto }

   Quatre niveaux de specificite : cette regle passe devant la notre et
   ramene la marge du tableau a zero. Changer la valeur sur .tablepress
   n'avait donc aucun effet sur les tableaux tries, seulement sur les
   autres. Pour un tableau enveloppe la marge doit etre portee par le
   conteneur, d'autant qu'il porte aussi la barre « Afficher N elements »
   et le champ de recherche, qui se collaient au texte precedent. */
.single-post .single-post-content .tablepress,
.single-post .single-post-content .dt-container {
  margin-top: 20px;
  margin-bottom: 20px;
}

/* RECETTAGE Nathalie : alignement par defaut des tableaux dans un article.
   Premiere colonne ferree a gauche, colonnes suivantes centrees.

   Jusqu'ici l'alignement dependait d'un detail invisible pour la redaction :
   TablePress aligne tout a gauche, et le thema centrait via
   « .dt-container td », un conteneur que DataTables n'ajoute qu'aux tableaux
   dont le tri est actif. Un tableau trie etait donc centre, un tableau non
   trie restait a gauche, sur les deux sites. D'ou 13 tableaux a gauche sur
   FLS et 26 sur CCLS, sans logique editoriale.

   Les deux regles ci-dessous ne dependent plus du tri. Trois classes pour
   passer devant « .dt-container td », et :first-child pour la colonne de
   gauche. En-tetes compris, pour que la colonne et son titre s'alignent.
   Hors article, le comportement precedent ne change pas. */
.single-post .single-post-content .tablepress th,
.single-post .single-post-content .tablepress td {
  text-align: center;
}

.single-post .single-post-content .tablepress th:first-child,
.single-post .single-post-content .tablepress td:first-child {
  text-align: left;
}

/* RECETTAGE Nathalie : sur un tableau trie, le libelle d'en-tete n'est pas
   pose directement dans la cellule. DataTables l'enveloppe dans un
   div.dt-column-header en flex, avec le titre dans un span.dt-column-title
   qui prend toute la place restante a cote de la fleche de tri. C'est donc
   ce span qui decide de l'alignement du texte, pas la cellule : « Modeles »
   restait centre alors que la cellule, elle, etait bien ferree a gauche. */
.single-post .single-post-content .tablepress th .dt-column-title {
  text-align: center;
}

.single-post .single-post-content .tablepress th:first-child .dt-column-title {
  text-align: left;
}

/* 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;
  /* RECETTAGE Nathalie : c'est le paragraphe qui porte la respiration de la
     video, pas l'iframe. Sinon la marge du paragraphe s'ajoute a celle de
     l'iframe et le total differe d'un site a l'autre. */
  margin: 20px 0;
}

/* 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: 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,
.adv-link {
  display: flex;
}

.a2t-link img,
.adv-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: auto !important;

}

/* 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;
  /* margin-top: 1%; */
}


.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: #01a29a;
}

/* =============================================
   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: #99e0dc;
  padding: 2px 6px;
}

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

/* Encadré (BDC #2) - encadré generique aux couleurs charte FLS.
   Marges internes harmonisees : premier enfant sans margin-top,
   dernier sans margin-bottom. */
.encadre {
  background: #e6f6f5;
  border: 2px solid #01a29a;
  padding: 25px 30px;
  margin: 3rem auto;
  max-width: 800px;
  border-radius: 15px;
}

.encadre > *:first-child { margin-top: 0; }
.encadre > *:last-child { margin-bottom: 0; }

.encadre h2,
.encadre h3 {
  color: #01a29a;
  margin-top: 0;
}

/* Fiche technique (BDC #3) - bloc de specs / donnees.
   Meme forme (coins arrondis) que Encadré, marges harmonisees.
   Le titre est un vrai H3 dans le DOM (plus de libelle CSS ::before). */
.fiche-technique {
  background: #f0f4f8;
  border: 2px solid #2c3e50;
  padding: 25px 30px;
  margin: 3rem auto;
  max-width: 800px;
  border-radius: 15px;
}

.fiche-technique > *:first-child { margin-top: 0; }
.fiche-technique > *:last-child { margin-bottom: 0; }

.fiche-technique h3 {
  margin-top: 0;
  padding-bottom: 10px;
  border-bottom: 1px solid #c0d0e0;
}

/* Espacement entre sous-sections (h4) et le paragraphe precedent */
.fiche-technique h4 {
  margin-top: 1.8em;
  margin-bottom: 0.5em;
}

/* Article embed card (BDC #1) - renvoi vers un autre article */
.article-embed-card {
  display: block;
  margin: 2rem auto;
  max-width: 800px;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.article-embed-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.article-embed-card a {
  display: flex;
  gap: 0;
  align-items: stretch;
  text-decoration: none;
  color: inherit;
}

.article-embed-image {
  flex: 0 0 220px;
  overflow: hidden;
}

.article-embed-image img {
  width: 100%;
  height: 100%;
  aspect-ratio: 3/2;
  object-fit: cover;
  display: block;
  margin: 0;
}

.article-embed-content {
  padding: 18px 22px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1;
  min-width: 0;
}

.article-embed-label {
  display: inline-block;
  align-self: flex-start;
  background: #01a29a;
  color: #ffffff;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 4px;
  margin-bottom: 10px;
  line-height: 1.2;
}

.article-embed-title {
  font-size: 1.2rem;
  color: #1a1a1a;
  font-weight: 700;
  margin: 0 0 6px 0;
  line-height: 1.3;
}

.article-embed-card:hover .article-embed-title {
  color: #01a29a;
}

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

/* Responsive mobile : image pleine largeur au-dessus, contenu en dessous.
   Le label "LIRE AUSSI" est deplace tout en haut de la carte via ::before
   (au-dessus de l'image) et le label original a l'interieur du contenu
   est masque. Aucune modification HTML necessaire. */
@media (max-width: 768px) {
  .article-embed-card {
    margin: 1.5rem auto;
    max-width: 100%;
  }

  .article-embed-card a {
    flex-direction: column;
  }

  .article-embed-card a::before {
    content: "Lire aussi";
    display: inline-block;
    align-self: flex-start;
    background: #01a29a;
    color: #ffffff;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 4px;
    margin: 15px 18px 12px 18px;
    line-height: 1.2;
  }

  .article-embed-image {
    flex: 0 0 auto;
    width: 100%;
  }

  .article-embed-image picture,
  .article-embed-image img {
    display: block;
    width: 100%;
  }

  .article-embed-image img {
    aspect-ratio: 3/2;
  }

  .article-embed-content {
    padding: 8px 18px 14px 18px;
  }

  /* Le label "LIRE AUSSI" est deja affiche en haut via ::before, on masque
     le doublon dans le contenu. */
  .article-embed-content .article-embed-label {
    display: none;
  }

  .article-embed-title {
    font-size: 1.1rem;
    margin-top: 0;
  }
}

/* Tableau */
/* Pas de white-space: nowrap sur la colonne Porteur. Un nom long, par exemple
   "Ford Custom Hybrid PHEV", elargissait la colonne au point de faire deborder
   la table hors de son conteneur : la colonne Prix etait rognee (10 px de trop
   en desktop, 15 px en mobile). Signale le 2026-11-04 par un client de Rapido
   sur la page Campereve. Les valeurs courtes tiennent sur une ligne d'elles-memes,
   les 60 autres pages de prix sont inchangees au pixel. */

/* Le centrage portait sur un span interne qui ne remplit pas la cellule :
   les intitules restaient cales a gauche. On centre la cellule elle-meme.
   Demande de Nathalie (recette). */
.dt-container th,
.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,
.foogallery .fg-caption-title,
.fbx-caption-title,
.foogallery .fgcaption-desc {
  white-space: wrap !important;
  overflow: visible !important;
  height: auto !important;
  font-size: 1.125rem;
  line-height: 1.2;
  font-style: italic;
  color: #fff;
}

.fbx-caption-desc {
  display: none !important;
}

@media (max-width: 768px) {
  .foogallery .fg-caption,
  .foogallery .fg-caption-title,
  .fbx-caption-title,
  .foogallery .fgcaption-desc {
    font-size: 0.9rem;
  }
}

/* Légende image mise en avant */
.featured-image-caption {
  font-size: 1.125rem;
  color: #666;
  text-align: left;
  font-style: italic;
  align-self: flex-start;
  margin-top: 8px;
}

.featured-image-caption::before {
  content: "";
  background: #eceeef none repeat scroll 0 0;
  display: inline-block;
  height: 1px;
  margin-right: 0.5rem;
  vertical-align: middle;
  width: 2.5rem;
}

@media (max-width: 768px) {
  .featured-image-caption {
    font-size: 0.9rem;
  }
}

/* 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;
}

/* Centraliser la grid de rendu des résultats de rechercher, category et tags */

/* Grille 2 colonnes */
.achat-fourgon-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

/* ------------------------------------------------------------------------
 * Logo du header collant (point 5 de la recette, signale par Simon).
 *
 * Au scroll vers le haut, la barre de navigation revient mais sans son logo.
 * Meme cause que dans le menu burger : sur FLS le logo est un PNG pose par
 * the_custom_logo(), il porte ses dimensions. Sur CCLS c'est un SVG en
 * width: 100%, sans largeur intrinseque, dans un conteneur flex qui n'en
 * impose aucune : le wrapper se reduit a 0 px et le logo disparait.
 *
 * Largeur calee sur celle mesuree sur FLS (225 px).
 * ------------------------------------------------------------------------ */
.main-nav .sticky-logo-wrapper:not(.hautburger) {
  width: 225px;
  flex: 0 0 225px;
}

.main-nav .sticky-logo-wrapper:not(.hautburger) img {
  width: 100%;
  max-width: 225px;
  height: auto;
}

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

/* Cards uniformisées */
.achat-fourgon-grid .van-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* RECETTAGE: images en ratio 3:2 au lieu de hauteur fixe */
.achat-fourgon-grid .van-image-link {
  display: block;
  overflow: hidden;
}

.achat-fourgon-grid .van-image {
  overflow: hidden;
}

.achat-fourgon-grid .van-image img {
  width: 100%;
  height: auto;
  aspect-ratio: 3/2;
  object-fit: cover;
}

.achat-fourgon-grid .van-content {
  height: 80px;
  display: flex;
  align-items: center;
  padding: 15px;
}

.achat-fourgon-grid .van-title {
  margin: 0;
  line-height: 1.3;
  overflow: hidden;
  display: -webkit-box;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  /* Le titre est un element flex dans une .van-content a hauteur contrainte.
     Sans ceci il est ecrase sous la hauteur de ses propres lignes, et
     l'overflow hidden rogne le bas de la derniere ligne : les jambages des
     q, g et p disparaissent. Signale par Regis et Nathalie (recette CCLS).
     La hauteur des cartes est inchangee. */
  flex-shrink: 0;
}

@media (max-width: 768px) {
  /* RECETTAGE: hauteur fixe supprimee, ratio 3:2 applique via aspect-ratio */
  .achat-fourgon-grid .van-content {
    height: 70px;
  }
}

.van-title a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s ease;
}

.van-title a:hover {
  color: #01a29a;
}
/* pb foogallery hauteur de bouton a 100% */
.fg-image-viewer .fiv-inner .fiv-ctrls .fiv-next, .fg-image-viewer .fiv-inner .fiv-ctrls .fiv-prev {
  height: auto;
}
/* ==========================================================================
   VIGNETTES VIDÉO — surcouche "lecture" unifiée (inc/video-thumbnails.php)
   Un seul visuel partout : cercle sombre + triangle, centré sur la vignette.
   ========================================================================== */
:has(> .fls-play) {
  position: relative;
}
a:not([class]):has(> .fls-play) {
  display: inline-block;
}
.fls-thumb {
  display: block;
  position: relative;
}
.fls-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 28%;
  max-width: 90px;
  min-width: 34px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 2;
  transition: background 0.2s ease, transform 0.2s ease;
}
.fls-play__icon {
  width: 48%;
  height: 48%;
  margin-left: 6%; /* recentrage optique du triangle */
}
a:hover .fls-play,
.post:hover .fls-play,
.van-card:hover .fls-play,
.video-card:hover .fls-play {
  background: rgba(0, 0, 0, 0.65);
  transform: translate(-50%, -50%) scale(1.06);
}

/* ------------------------------------------------------------------------
 * Tableaux Prix du neuf : colonne Type masquee en mobile.
 *
 * Les tableaux CCLS comptent sept colonnes la ou FLS en a six. Sur un
 * telephone, cette colonne supplementaire suffisait a pousser la colonne
 * Prix hors du cadre : 386 px de tableau pour 350 de conteneur. En la
 * masquant, le tableau tombe a 350 px et le prix redevient visible.
 * Signale par Nathalie (recette CCLS). A confirmer avec elle : on troque
 * l'affichage du type contre celui du prix sur petit ecran.
 *
 * Media query en fin de fichier a dessein, pour primer sur les regles
 * desktop declarees plus haut.
 * ------------------------------------------------------------------------
 */
@media (max-width: 768px) {
  .dt-container .column-1 {
    display: none;
  }
}

/* ------------------------------------------------------------------------
 * Largeur du header alignee sur celle de Fourgon Le Site.
 *
 * Le body est en flex column avec align-items: center : chaque enfant direct
 * se reduit a la largeur de son contenu puis se centre. Le header suit donc
 * la largeur de son menu, soit 1049 px sur CCLS contre 1237 sur FLS, dont le
 * menu compte une entree de plus et des libelles plus longs. Ce n'est pas une
 * divergence de code entre les deux themes, seulement une difference de menu.
 *
 * On fige ici la largeur pour que les deux sites s'alignent visuellement, et
 * pour que le header cesse de bouger des qu'on modifie le menu.
 * Demande de Nathalie (recette CCLS du 2026-11-05).
 *
 * POUR REVENIR EN ARRIERE : supprimer ce bloc. Le header reprendra
 * automatiquement la largeur de son menu, sans autre effet de bord.
 *
 * Limite a partir de 769 px : en mobile le header doit continuer de suivre
 * la largeur de l'ecran.
 * ------------------------------------------------------------------------
 */
@media (min-width: 769px) {
  .site-header {
    width: 100%;
    max-width: 1237px;
  }
}

/* ------------------------------------------------------------------------
 * Logo du menu burger.
 *
 * Meme piege que celui deja documente plus haut pour le logo du header :
 * le SVG est en width: 100%, et son conteneur .sticky-logo-wrapper n'a
 * aucune largeur propre. Dans le menu burger, le conteneur se reduisait
 * donc a 0 px et le logo n'apparaissait pas du tout, alors qu'il est bien
 * present dans le gabarit. Signale par Nathalie (recette CCLS).
 *
 * On donne une largeur explicite, calee sur celle de FLS (204 px).
 * ------------------------------------------------------------------------
 */
@media (max-width: 768px) {
  .nav-container .hautburger {
    width: 204px;
  }

  .nav-container .hautburger img.custom-logo {
    width: 100%;
    max-width: 204px;
    height: auto;
  }

  /* RECETTAGE Nathalie : le logo touchait le premier item du menu. */
  .nav-container .hautburger {
    margin-bottom: 18px;
  }
}

