/*
Theme Name: LoveTravel Child
Theme URI:  ---
Description: Thème enfant de LoveTravel
Author:      Ton Nom
Author URI:  --
Template:    lovetravel       
Version:     1.0.0
Text Domain: lovetravel-child
*/
/* ===== STYLES MOBILE SEULEMENT ===== */

/* Variables CSS pour les styles mobile */
:root {
  --primary-color: #007cba;
  --text-color: #333;
  --bg-color: #fff;
  --border-color: #eee;
  --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}
.header-search,
.close-menu-btn__container,
.close-search-btn,
.header-burger {
  display: none !important;
}

.custom-page-header{
    width: 100%;
    height: 115px;
    display: flex;
}
/* ===== STYLES MOBILE UNIQUEMENT ===== */

/* Mobile (max-width: 768px) */
@media (max-width: 768px) {
  .container-top {
    width: 100%;
    display: flex;
    justify-content: center;
    margin: 0;
    padding: 0;
  }
  .sidebar-left.active {
    margin: 0;
    padding-top: 0 !important;
    z-index: 9999 !important;
  }
  .products-list-bloq form {
    width: 100%;
    margin: 0;
    display: flex;
  }
  .products-list-bloq form button {
    margin-left: 20px;
  }
  .header-menu.active .menu-items li {
    height: auto;
  }
  .close-menu-btn__container {
    display: flex !important;
    justify-content: end;
    padding-right: 30px;
  }
  .close-menu-btn__container svg,
  .close-search-btn {
    height: 32px;
    z-index: 1 !important;
  }
  .close-search-btn {
    display: block !important;
    position: absolute;
    right: 30px;
    top: 10px;
  }
  .header-menu.active {
    margin: 0;
    padding: 15px !important;
  }
  .custom-page-header {
    height: 190px!important;
  }
  /* Header responsive pour mobile */
  .header-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
    position: relative;
  }

  .container-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
  }

  /* Menu Burger - visible seulement sur mobile */
  .header-burger {
    order: 1;
    display: block !important;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 10px;
  }

  .burger-menu-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 30px;
    transition: var(--transition);
  }

  .burger-line {
    width: 100%;
    height: 3px;
    background-color: var(--text-color);
    border-radius: 2px;
    transition: var(--transition);
    transform-origin: center;
  }

  .burger-menu-toggle:hover .burger-line {
    background-color: var(--primary-color);
  }

  .burger-menu-toggle.active .burger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
  }

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

  .burger-menu-toggle.active .burger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
  }

  /* Logo centré sur mobile */
  .header-logo {
    order: 2;
    flex: 1;
    text-align: center;
  }

  .header-logo img {
    max-height: 50px;
    width: auto;
  }

  /* Icône de recherche - visible seulement sur mobile */
  .header-search {
    order: 3;
    display: block !important;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 10px;
  }

  .search-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: var(--transition);
  }

  .search-toggle:hover {
    background-color: #f8f9fa;
  }

  .search-toggle i {
    font-size: 18px;
    color: var(--text-color);
    transition: var(--transition);
  }

  .search-toggle:hover i {
    color: var(--primary-color);
  }

  /* Menu de navigation caché par défaut sur mobile */
  .header-menu {
    display: none !important;
    order: 4;
  }

  /* Menu de navigation - styles pour mobile quand activé */
  .header-menu.active {
    display: block !important;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-color);
    z-index: 999;
    padding: 80px 20px 20px;
    overflow-y: auto;
  }

  .header-menu.active .menu-items {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .header-menu.active .menu-items li {
    margin: 0;
  }

  .header-menu.active .menu-items li a {
    display: block;
    padding: 15px 0;
    color: var(--text-color);
    text-decoration: none;
    font-size: 18px;
    font-weight: 500;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
  }

  .header-menu.active .menu-items li a:hover {
    color: var(--primary-color);
  }

  .header-menu.active .sub-menu {
    display: none;
    margin-top: 10px;
    padding-left: 20px;
  }

  .header-menu.active .menu-item-has-children:hover .sub-menu {
    display: block;
  }

  .header-menu.active .sub-menu li a {
    font-size: 16px;
    color: #666;
    border-bottom: none;
    padding: 10px 0;
  }

  /* Sidebar cachée par défaut sur mobile */
  .sidebar-left {
    display: none;
  }

  /* Sidebar - styles pour mobile quand activée */
  .sidebar-left.active {
    display: block;
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-color);
    z-index: 999;
    padding: 80px 20px 20px;
    overflow-y: auto;
    box-shadow: var(--shadow);
  }

  /* Contenu principal sur mobile */
  .content-right {
    margin-left: 0;
    width: 100% !important;
  }
  .product-card img {
    object-fit: cover;
  }

  .container {
    padding: 0 15px;
  }

  .products-list.grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* Améliorations UX pour mobile */
  .product-card {
    transition: var(--transition);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  }

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

/* ===== HEADER STYLES ===== */

/* --- TOPBAR --- */
.custom-header{
    position: fixed;
    z-index: 9999;
    width: 100%;
}

.header-top {
    background-color: #06a6e3;
    color: #fff;
    font-size: 14px;
    padding: 8px 0;
}

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

.header-top-left span {
    margin-right: 15px;
}

.header-top-right .social-icon {
    color: #fff;
    margin-left: 15px;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s;
}

.header-top-right .social-icon:hover {
    opacity: 0.7;
}

/* --- MAIN HEADER --- */
.header-logo{
    height: 30px;
}

.header-logo img{
    width: 60px;
}

.header-main {
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    height: 80px;
}

.container-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    /*align-items: center;*/
}



.header-menu .menu-items {
    list-style: none;
    display: flex;
    gap: 25px;
    margin: 0;
    padding: 0;
}

.header-menu .menu-items li a {
    color: #222;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.header-menu .menu-items li a:hover {
    color: #06a6e3;
}
/* --- MENU PRINCIPAL --- */

.header-menu {
    height: 75px;
    width: auto;
    margin-top: -40px;
display: flex;
    margin: 15px;
    /*
  background-color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  position: relative;
  z-index: 100;
  padding: 15px 20px;
  border-bottom: 1px solid #eee;
  */
  
}
  

.header-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.header-menu li {
  position: relative;
  height: 45px;
}

.header-menu a {
  color: #333;
  text-decoration: none;
  font-weight: 500;
  padding: 10px 15px;
  display: block;
  transition: color 0.3s;
}

.header-menu a:hover {
  color: #0073aa;
}

/* --- SOUS-MENU (DROPDOWN) --- */
.header-menu ul.sub-menu {
  display: none;
  position: absolute;
  top: 100%; /* directement sous le parent */
  left: 0;
  background-color: #fff;
  min-width: 200px;
  padding: 10px 0;
  margin: 0;
  list-style: none;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  z-index: 999;
}

/* --- Affichage au survol du LI parent --- */
.header-menu li:hover > ul.sub-menu,
.header-menu li:focus-within > ul.sub-menu {
  display: block;
}

/* --- Style des liens du sous-menu --- */
.header-menu ul.sub-menu li a {
  color: #555;
  display: block;
  padding: 8px 15px;
  transition: all 0.2s ease;
}

.header-menu ul.sub-menu li a:hover {
  background-color: #f8f8f8;
  color: #0073aa;
}

/* --- Empêche les trous de survol (important !) --- */
.header-menu li {
  position: relative;
}
.header-menu li > ul.sub-menu {
  pointer-events: auto;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .header-menu {
    flex-direction: column;
    align-items: flex-start;
  }
  .header-menu ul.sub-menu {
    position: relative;
    box-shadow: none;
    border: none;
  }

  
  
}

@media (max-width: 767px) {
    .elementor-section:first-child{
      top: 170px!important;
      height: 617px;
    }
}


.menu-item-has-children{
    cursor: pointer;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .header-menu {
    flex-direction: column;
    align-items: flex-start;
  }
  .header-menu ul.sub-menu {
    position: relative;
    box-shadow: none;
    border: none;
  }
}


/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .container-top, .container-main {
        flex-direction: column;
        align-items: center;
    }

    .header-menu .menu-items {
        flex-direction: column;
        gap: 10px;
        margin-top: 10px;
    }
}

.product-search-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 30px;
}
.product-search-form {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}
.product-search-form input[type="text"] {
  flex: 1;
  padding: 8px;
}
.products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 15px;
}
.product-item {
  border: 1px solid #ddd;
  padding: 10px;
  text-align: center;
}

.product-card{
    height: 200px;
    border:1px solid #ccc; 
    padding:15px; 
    border-radius:10px;
}

.product-card h2{
    margin-top:10px;
    font-size: 13px!important;
    color: #06a6e3!important;
}

.product-card h3{
    margin-top:10px;
    font-size: 13px!important;
}

.product-card img{
    width: 100%;
    max-height: 65%;
    min-height: 65%;
    border-radius: 5px;
}

.products-list-bloq{
    margin: 50px;
    
}

.products-list-bloq form{
    
    text-align: center;
    background: #fff;
    border-radius: 15px 15px;
    box-shadow: 5px 5px 10px grey;
    align-content: flex-start;
    flex-wrap: wrap;
    position: relative;
    
}

.products-list-bloq form .search-btn{
    font-family: "Poppins", Sans-serif;
    font-size: 14px;
    font-weight: bold;
    color: #FFFFFF;
    background-color: #06A6E3;
    padding: 20px 20px 20px 20px;
    border-style: solid;
    border-width: 0px 0px 0px 0px;
    border-radius: 10px;
    width: 20%;
}
.products-list{
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(250px,1fr));
    gap:20px;
}

.search-input{
    padding:10px;
    border: 1px solid #F1F1F1;
    border-radius: 5px 5px 5px 5px;
    width: 80%;
}

.products-list .address{
    color:#858282;
}

.text-center{
    text-align: center;
}

.pagination {
  margin-top: 30px;
  text-align: center;
}

.pagination a,
.pagination span {
  display: inline-block;
  margin: 0 5px;
  padding: 8px 12px;
  border-radius: 4px;
  background: #f8f8f8;
  text-decoration: none;
  color: #0073aa;
}

.pagination .current {
  background: #0073aa;
  color: #fff;
}

.product-rating {
    display: inline-block;
    font-size: 18px;
    color: #ffc107; /* couleur étoile */
}

.product-rating .star {
    margin-right: 2px;
}

.product-rating .star.filled {
    color: #ffc107; /* étoile pleine */
}

.product-rating .star {
    color: #ddd; /* étoile vide */
}


.product-filter {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    
}

.product-filter select {
    /*padding: 5px 10px;*/
    border: 1px solid #ccc;
    background-color: #FFFFFF;
    border-style: solid;
    border-width: 1px 1px 1px 1px;
    border-color: #F1F1F1;
    border-radius: 5px 5px 5px 5px;
    padding: 15px 30px 15px 30px;
}

.product-filter button {
    padding: 5px 15px;
    border: none;
    background-color: #0073aa;
    color: #fff;
    border-radius: 5px;
    cursor: pointer;
}

.product-filter button:hover {
    background-color: #005f8d;
}

.float-left{
    float: left;
}



/* ASIDE + FIELDSET*/
/* Conteneur du formulaire */
.filter-sidebar {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-family: sans-serif;
}

/* Titres des sections */
.filter-sidebar fieldset {
    border: none;
    margin-bottom: 15px;
    text-align: justify;
    width: 100%;
}

.filter-sidebar legend {
    font-weight: bold;
    margin-bottom: 10px;
    display: block;
}

/* Checkbox label */
.filter-sidebar label {
    display: block;
    margin-bottom: 5px;
    cursor: pointer;
    font-size: 13px;
}

/* Input checkbox */
.filter-sidebar input[type="checkbox"] {
    margin-right: 8px;
}

/* Bouton filtrer */
.filter-sidebar button[type="submit"] {
    background-color: #333;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
}

.filter-sidebar button[type="submit"]:hover {
    background-color: #555;
}

/* Pour la sidebar flottante à gauche */
.sidebar-left {
    float: left;
    width: 25%;
    margin-right: 2%;
}

.content-right {
    float: left;
    width: 73%;
}

/* Nettoyage des floats */
.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

/* Container Flex */
.filter-container {
    display: flex;
    flex-wrap: wrap; /* permet le retour à la ligne sur petit écran */
    gap: 20px;
}

/* Sidebar (filtres) */
.filter-sidebar {
    flex: 1 1 250px; /* minimum 250px, prend l’espace restant */
    background: #f9f9f9;
    padding: 20px;
    border-radius: 10px;
}

/* Contenu des posts */
.filter-content {
    flex: 3 1 600px; /* minimum 600px, prend 3x plus d’espace que la sidebar */
}

/* Style des fieldset et checkbox */
.filter-form fieldset {
    border: none;
    margin-bottom: 15px;
}

.filter-form legend {
    font-weight: bold;
    margin-bottom: 10px;
}

.filter-form label {
    display: block;
    margin-bottom: 5px;
    cursor: pointer;
}

.filter-form input[type="checkbox"] {
    margin-right: 8px;
}

/* Bouton filtrer */
.filter-form button {
    background-color: #333;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
}

.filter-form button:hover {
    background-color: #555;
}

/* Responsive pour petits écrans */
@media (max-width: 768px) {
    .filter-container {
        flex-direction: column;
    }

    .filter-sidebar, .filter-content {
        flex: 1 1 100%;
    }
}


/*Single post*/
/* Slider simple */
.page-slider .slider { display: flex; overflow-x: auto; gap: 10px; }
.page-slider .slide img { width: 100%; border-radius: 10px; }

/* Description */
.page-description { margin: 20px 0; }

/* Flexbox pour filter + content */
.filter-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.filter-sidebar {
    flex: 1 1 250px;
    background: #f9f9f9;
    padding: 20px;
    border-radius: 10px;
}

.filter-content {
    flex: 3 1 600px;
}

/* Fieldset / checkbox */
.filter-form fieldset { border: none; margin-bottom: 15px; }
.filter-form legend { font-weight: bold; margin-bottom: 10px; display: block; }
.filter-form label { display: block; margin-bottom: 5px; cursor: pointer; }
.filter-form input[type="checkbox"] { margin-right: 8px; }

/* Button */
.filter-form button {
    background-color: #333;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
}
.filter-form button:hover { background-color: #555; }

/* Responsive */
@media (max-width: 768px) {
    .filter-container { flex-direction: column; }
    .filter-sidebar, .filter-content { flex: 1 1 100%; }
}

.page-slider  {
    width: 80%;
    margin: auto;
}

.page-slider .slider {
    width: 100%;
    height: 300px; /* hauteur fixe du slider */
    overflow: hidden;
    position: relative;
}

.page-slider .slide img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* l'image remplit le slide sans déformation */
    display: block;
}

.page-content{
    width: 80%;
    margin: auto;
    text-align: justify;
}


.tags-list {
    list-style: none;   /* supprime les puces */
    padding: 0;
    margin: 0;
    display: flex;      /* les éléments sont sur la même ligne */
    flex-wrap: wrap;    /* si trop de tags, passe à la ligne suivante */
    gap: 8px;           /* espace entre les tags */
}

.tags-list li {
    display: inline-block;
    background: #06a6e3;
    width: auto;
    height: auto;
    padding: 10px 10px 10px 10px;
    margin: 5px;
    border-radius: 15px 15px;
    color: #FFF;
    font-weight: bold;
}

.tags-list li a {
    display: inline-block;
    color: #fff;
    padding: 4px 10px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.875rem;
    transition: background-color 0.3s;
}

.tags-list li:hover {
    background-color: #1c1c1c;
}

#content-map{
    width: 100%; height: 400px;
}

.elementor-widget-woocommerce-product-add-to-cart, .sku_wrapper, .posted_in{
    display: none!important;
}

.woocommerce:where(body:not(.woocommerce-uses-block-theme)) div.product p.price, .woocommerce:where(body:not(.woocommerce-uses-block-theme)) div.product span.price{
    color: #112542;
    font-size: 25px;
}

.elementor-widget-woocommerce-product-price:not(:last-child){
    display: none!important;
}

/* PRODUCT SINGLE DIAPORAMA*/
.custom-product-slider img {
    width: 100%;
    height: auto;
    display: block;
}
.custom-product-thumbnails {
    margin-top: 10px;
}
.custom-product-thumbnails .thumb {
    cursor: pointer;
    padding: 2px;
}
.custom-product-thumbnails .thumb img {
    width: 60px;
    height: 60px;
    object-fit: cover;
}


.custom-product-slider {
    display: flex;
    justify-content: center;
    align-items: center;
}

.custom-product-slider .slide {
    display: flex !important; /* Important pour slick */
    justify-content: center;
    align-items: center;
    height: 500px; /* hauteur max du slider */
    background-color: #f8f8f8; /* optionnel, fond clair */
}

.custom-product-slider .slide img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain; /* garde le ratio et centre */
}

.custom-product-thumbnails {
    display: flex;
    justify-content: center;
    margin-top: 15px;
}

.custom-product-thumbnails .thumb {
    cursor: pointer;
    padding: 3px;
}

.custom-product-thumbnails .thumb img {
    width: 60px!important;
    height: 60px!important;
    object-fit: cover;
    border: 1px solid #ccc;
}

.custom-product-thumbnails .thumb {
    width: 60px!important;
}


.slick-next:before {
    content: '→'!important;
    color: #06A6E3!important;
}

.slick-prev:before {
    content: '←'!important;
    color: #06A6E3!important;
}

.slick-prev, .slick-next {
    background-color: transparent!important;
}

.custom-product-slider {
    position: relative; /* IMPORTANT pour que les flèches soient positionnées par rapport au slider */
}

.custom-product-slider .slick-prev,
.custom-product-slider .slick-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0,0,0,0.5);
    color: transparent;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    z-index: 1000; /* s'assurer qu'elles soient au-dessus des images */
    display: flex !important;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    cursor: pointer;
}

.custom-product-slider .slick-prev {
    left: -10px; /* Ajuste la distance depuis le bord gauche */
}

.custom-product-slider .slick-next {
    right: -76px; /* Ajuste la distance depuis le bord droit */
}

.custom-product-slider .slick-prev:before,
.custom-product-slider .slick-next:before {
    content: ''; /* supprime les flèches par défaut */
}

.product-item-gallery .slick-track{
  width: 100%!important;
}