/*
Theme Name: Phenix Minimal
Theme URI: https://www.phenixevent.com
Description: Thème enfant minimaliste pour petites annonces
Author: Phenix Event
Template: twentytwentyfive
Version: 1.0
*/


:root {
  --bloc30:30px auto;
  --bloc50:3.125rem auto;
  --bloc100:6.25rem auto;
  --push30:0 auto 30px;
  --push50:0 auto 3.125rem;
  --push100:0 auto 6.25rem;
}
/*body {font-family:Arial,sans-serif;margin:0;padding:0;}*/

*, *::before, *::after {
  box-sizing: border-box;
}
html{font-size: 16px}
html, body {
	margin: 0;
  padding: 0;
  height: 100%;
}

body {
background:#f5f5f5;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  font-family: system-ui, sans-serif;
    font-size: clamp(0.875rem, 1.5vw, 1rem);
  line-height: 1.5; 
}

header {
  flex: 0 0 auto;
  padding: 1rem
}


main {
  flex: 1 0 auto;
  padding: 1rem;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}
.screen-reader{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}
footer {
 /* flex: 0 0 auto;*/
 /* padding: 1rem;*/
  background:#673698;
}

/*h1 { font-size: clamp(1.5rem, 4vw, 2.5rem); }*/
h1,.shield{/*font-size:var(--wp--preset--font-size--xx-large)*/margin:.625rem 0 2rem;}
h2 { font-size: clamp(1.25rem, 3vw, 2rem); }
/*h3 { font-size: clamp(1.1rem, 2.5vw, 1.5rem); }*/
h4 { font-size: clamp(1rem, 2vw, 1.25rem); }

.bloc-30{margin:var(--bloc30)}
.bloc-50{margin:var(--bloc50)}
.bloc-100{margin:var(--bloc100)}
.push-30{margin:var(--push30)}
.push-50{margin:var(--push50)}
.push-100{margin:var(--push100)}

img{display:block;max-width:100%;height:auto}
b {font-weight:600}


/*menu*/

.header-logo-img {
  /*! height: 48px; */ /* taille de base */
  aspect-ratio: 1 / 1;
  object-fit: contain;
  /*! display: block; */
  max-height: 52px; 
  transform: scale(1.5);
  width: auto;
}

/* Responsivité */

/*.menu-categories{display:flex;background: #485676;padding: 8px 16px;}*/



/*.menu-categories ul{
  display: flex;
  list-style: none;
  gap: 15px;
  flex-wrap: wrap;
  padding: 0;
font-size: inherit; }

*/
.menu-categories ul li{
  background: white;
 /* padding: 6px 10px; */
/*  font-weight: 600;*/

}

.phenix-category-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin: 30px auto;
}

.phenix-category-card {
    width: 250px;
    border: 1px solid #ddd;
   /* border-radius: 8px;*/
    overflow: hidden;
    text-align: center;
    background: #fff;
transition: filter 0.3s;
}

.phenix-category-card:hover {
  /*  transform: translateY(-5px);*/
   filter: drop-shadow(0 4px 5px rgba(0,0,0,.2));
}

.phenix-category-img {
    width: 100%;
    height: 150px;
    background-size: cover;
    background-position: center;
}

.phenix-category-card h2 {
    margin: 10px 0;
    font-size: 18px;
}

.phenix-category-card p {
    font-size: 14px;
    color: #666;
    padding: 0 10px 10px;
}

form input, form textarea, form select {
    width: 100%;
    margin-bottom: 10px;
    padding: 8px;
    border-radius: 4px;
    border: 1px solid #ccc;
}

form input[type="submit"] {
    width: auto;
    background: #111;
    color: #fff;
    border: none;
	 display: flex;
    width: 100%;
    font-size: 20px;
}
button{cursor:pointer}


.annonce-stats{display:flex;gap:15px;margin:.75rem 0 1rem;color:#444;align-items:center;margin:0}
.favori-count-static,.post-views{display:flex;align-items:center;gap:4px}

/*.favori-count-static svg{fill:gold}*/

.annonces-grid {
   /* display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;*/
	display: block;
}

.annonce-card {
    border: 1px solid #ddd;
  /*  padding: 1rem;*/

  margin:10px 0;
    background: #fff;
	display: flex;
	gap: 15px;
	min-height: 140px;
}
.annonce-thumbnail {
  align-content: center;
  position: relative
}
.annonce-thumbnail img {
  aspect-ratio: 4/3;
  object-fit: cover;
  width: 150px;
  height: 100%;
  min-width:200px
}

.btn-sold {
    background: #28a745;
    color: white;
    border: none;
    padding: 8px 16px;
    cursor: pointer;
}
.btn-sold:disabled {
    background: #6c757d;
    cursor: not-allowed;
}
.sold-banner {
    background: #d4edda;
    border: 1px solid #28a745;
    padding: 15px;
    border-radius: 8px;
    margin: 10px 0;
    text-align: center;
}
.sold-status {
    display:block;
	font-size: inherit;
  font-weight: bold;
}

.favoris-overlay {
display:flex;
align-items:center;
gap:4px;
    position: absolute;
    bottom: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 5px 10px;
    font-size: 0.9em;
    line-height: 1.2;
    z-index: 10;
	font-weight:initial
}
.fav-icon.static {
  stroke-width: 1;
  stroke: none;
  fill: gold;
  width: 16px;
  height: 16px;
}

.annonce-card h2 {
   font-size: 1.2rem;
	margin: 6px 0 .5rem;
  font-weight: 600;
}

.annonce-card a {
    text-decoration: none;
    color: #333;
}

.annonce-card a:hover {
    color: #0073aa;
}


.annonce-infos .annonce-prix {
font-size: 1.225rem;
color: rebeccapurple;
font-weight: bold;
margin-top:1rem
}

.annonce-infos div{
  margin: .3rem 0;
  font-size: .8125rem;
  display: flex;
  align-items:center;
  gap: 4px;
  
}
.annonce-infos svg{
  width: 16px;height: 16px;
  color: #be8500;
  fill: #be8500;
}
.annonce-infos .sold-status {
font-size: 1rem;
  background: #6247ae;
  padding: 2px 8px;
  color: white;
  font-style: oblique;
  letter-spacing: -.45px;
  font-weight: 600
}

/* Layout général */
.phenix-front-container { /*! max-width:1200px; */ margin:1rem auto; /*! padding:20px; */ }
.front-header { display:flex; align-items:center; gap:16px; justify-content:space-between; margin-bottom:18px; display: none;}
.btn-depot { background:#0b74de; color:#fff; padding:8px 12px; border-radius:6px; text-decoration:none; }

/* Grid : sidebar + content */
.phenix-front-grid { display:flex; gap:20px; /*! align-items:flex-start; */ }
.phenix-front-sidebar { width:260px; flex:0 0 260px;}

.menu-categories ul { list-style:none}

.categories-list {
	padding: 0;
  list-style: none;
  margin:0
}

.cat-parent { margin-bottom:10px;
	padding: 6px
}

.cat-parent > .cat-link { 
	text-decoration:none; 
	display:inline-block;
	font-weight: initial
}

.cat-children {
	margin:6px 0 0 0; 
	padding-left:15px;
	list-style:none
}

.cat-child {margin-bottom:6px}
.cat-child a { color:#444; text-decoration:none; font-size:0.95rem; }

/* cacher les enfants qui dépassent la limite */
.children-hidden { display:none; }

/* bouton "Afficher +" */
.show-more-children,
#toggle-categories{
	background:transparent;
	border:0;
	color:#0b74de;
	padding:4px;
	font-size:inherit
}


/* Content annonces */
.phenix-front-content { flex:1; }
.phenix-filters { display:flex; gap:8px;  /*margin-bottom:1rem;flex-wrap:wrap;*/ }
.phenix-filters input[type="search"],.phenix-filters input[type="text"] { padding:8px;margin-bottom:0}

/* cartes annonces */
.annonces-list { /*display:flex; flex-direction:column; gap:12px */}
.annonce-card { /*! display:flex; */ /*! gap:12px; */ /*! background:#fff; */ /*! border:1px solid #eee; */ /*! padding:10px; */ /*! border-radius:6px; */ /*! align-items:flex-start; */ }
.annonce-body {flex:1}
.annonce-title { margin:0 0 6px 0;word-break: break-word; /*font-size:1.05rem;*/ }
.annonce-meta-line { color:#666; font-size:0.9rem; margin-bottom:8px; }

/* petits écrans : bouton visible */
.mobile-cats-toggle{display:none;}

/* mobile */
@media (max-width: 768px) {
  .header-logo-img {
    /*! height: 109px; */
    max-height: 45px;
    transform: scale(1.4);
  }
  .phenix-front-grid { flex-direction:column; }
  .phenix-front-sidebar { position:relative; width:100%; top:0; order:2; }
  .mobile-cats-toggle{display:block;margin:10px 0}
  #categories-nav { display:none; } /* masqué par défaut sur mobile */
  #categories-nav.open { display:block; }
  .phenix-front-content { order:1; }

}


.breadcrumb{font-size:.875rem;padding:10px 1rem 0}
.breadcrumb a {color:rebeccapurple; text-decoration:none; margin-right:5px;font-weight:600}
.breadcrumb :last-child{font-weight:700}

.breadcrumb a:hover{text-decoration:underline}

.breadcrumb {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 20px;
  
}
.breadcrumb-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}
.breadcrumb-list li {
    position: relative;
    color: #666;
}
.breadcrumb-list li:not(:last-child)::after {
    content:'\203A'; /* Chevron */
    margin-left: 10px;
    color: #999;
    transition: transform 0.3s ease;
}
.breadcrumb-list li:hover:not(:last-child)::after {
    transform: translateX(5px); /* Animation chevron */
}
.breadcrumb-list a {
    color: #0073aa;
    text-decoration: none !important;
    position: relative;
    padding-bottom: 2px;
}
.breadcrumb-list a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: 0;
    left: 0;
    background-color: #0073aa;
    transition: width 0.3s ease;
}
.breadcrumb-list a:hover::after {
    width: 100%;
}



.annonce-gallery {display:flex;flex-wrap:wrap;gap:10px;margin-bottom:1rem;border-bottom:solid 1.5px #eee;padding:0}
.annonce-main-img img{width:100%}
.annonce-sub-img img{width:100px}
:is(.annonce-main-img img,.annonce-sub-img img){aspect-ratio:4/3;object-fit:cover;width:100%}
.annonce-content.bloc-30,.annonce-actions,.annonce-meta{background:#fff;padding:10px;border-radius: 6px}

.annonce-layout {
  display: flex;
  flex-direction: column;
  gap: 20px;
}


/* Desktop : réorganisation */
@media (min-width: 768px) {
  .annonce-layout {
    flex-direction: row;
    flex-wrap: wrap;
  }

  /* image et meta côte à côte */
  .annonce-gallery {
    order: 1;
    /*! flex: 0 0 65%; */
    min-width: 0;
    width: 65%;
  }

  .annonce-meta {
    order: 2;
    flex: 0 0 30%;
    min-width: 0;
    align-self: start;
  }

  /* h1 et stats passent en dessous */
  .ad-title-fav-it {
    order: 3;
    flex: 0 0 100%;
  }

  .annonce-stats {
    order: 4;
    flex: 0 0 100%;
  }
  .userinfo {
  flex-direction: column;
  text-align: center;
}
}


.annonce-content h2, .annonce-actions h2{
margin-top:0;
border-bottom:solid 1px #ddd;
padding-bottom:10px}

.ad-title-fav-it{display:flex;align-items:center}
.annonce-meta p {font-size:0.9rem; color:#555; margin:0.3rem 0; padding: 6px}
/*.annonce-content {margin-top:1rem; line-height:1.6}*/

.annonce-meta .price {
/*background: indianred;*/
  display: flex;
  border-radius: 6px;
  color: #fff;
  gap: 6px;
  font-weight:600;
  padding:15px;
  background:#6247ae
}


.userandprice {
display: flex;
  justify-content: space-between;
  border-bottom: dashed 1px #aaa;
  align-items: start;
  flex-wrap: wrap;
}
.userinfo{
	display:flex;
}

.etatville {
  border-bottom: dashed 1px #aaa;
}
.etatville div,.publidate-cat div{
  display: flex;
  align-items: center;
  gap:6px
}
.etatville svg, .publidate-cat svg,.livraison-info svg{
  height: 16px;
  width: 16px;
  color: #be8500;
}

.publidate-cat,.etatville,.userandprice {
  padding: 1rem 0
}

/*
.btn-contact, .btn-share {
    display:inline-block;
    margin-right:10px;
padding: 1rem 2.25rem;
  background: purple;
    color:#fff;
    border-radius:4px;
    text-decoration:none;
	border-width: 0;
}*/


.annonces-similaires {margin-top:3rem}
.annonces-similaires h2 {margin-bottom:1rem}

.annonce-card h3{
 /* font-size: 1.25rem;*/
  margin: 4px auto 10px

}
.annonce-card p {
  margin: .5rem 0;
  font-size:.8125rem
}




/*.annonces-similaires .annonces-grid {
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(200px,1fr));
    gap:1rem;
}
.annonces-similaires .annonce-card img { width:100%; height:auto; border-radius:4px; }*/



.annonce-description-wrapper {
    overflow: hidden;
    position: relative;
    transition: height 0.4s ease;
}


.annonce-description-wrapper::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3em;
    background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, rgba(255,255,255,1) 100%);
    pointer-events: none;
    display: block;
}

.annonce-description-wrapper.open::after {
    display: none;
}

/* Bouton */
.btn-post:hover,.btn-contact:hover, .btn-share:hover,.btn-confirm:hover,.btn-cancel:hover,.newsletter-form button:hover{opacity:.8}
.voir-plus-btn {
    display: inline-block;
    margin-top: 10px;
    padding: 0.4em 0.8em;
border-width: 0;
    background: #f0f0f0;

    border-radius: 4px;
}


.login-to-contact {
  font-size: 14px;
  color: #333;
  margin: 8px 0;
}

  /*  #phone_number{
	    background: #bcffc9;
	padding-left: 2.25rem;
  padding-right: 2.25rem;
  }*/


/* Mobile Adjustments */
@media (max-width: 768px) {
  .annonce-actions-conteneur {
    flex-direction: column;
gap: 20px;
  }

  .btn-contact, .btn-share, .btn-login button {
    width: 100%;
   justify-content: center;
padding: 1rem;
    text-align: left;
  }
  .btn-login {
  width: 100%;
  margin-right: auto;
}




 /*   #phone_number{
	    background: #ffffe1;
	padding: 20px;
    margin: 20px 0 0;
    align-content: center;
    text-align: center;
    width: 100%;
	font-weight:bold;
	font-size:initial
  }
  */
}


.annonce-description p{
padding-bottom:10px;
margin-top:0;
max-width:75%}
.livraison-info ul{list-style:none;padding:0}
.livraison-info ul li{margin:2px 0;display:flex;align-items:center;gap:6px}


.share-slider a {
  width: 100px;
  height: 100px;
  flex-shrink: 0;
  cursor: pointer;
  display: flex;
  /*! align-content: center; */
  align-items: center;
  margin-right: 20px; 
}

/* Arrows */

/* Responsive */
@media (max-width: 480px) {
 .annonce-card {
	flex-direction:column;
	margin:1.25rem 0
}
.favoris-overlay {
font-size:.8em;
padding:4px 8px;
left:unset;
right:0
}
  .annonce-thumbnail img{
    width: 100%;
    aspect-ratio: 16/9
  }
  .annonce-description p{max-width:100%}
  .annonce-body {
   padding: 0 10px;
  }

  .share-content { padding: 15px 50px; }
 /* .share-slider a{ width: 50px;height: 50px; }*/
.share-slider a{margin-right:0}

    .bloc-1{flex-direction:column}
}
	
	/* Layout header */
.site-header {
  background: #fff;
  border-bottom: 1px solid #eee;
  position: relative;
  z-index: 1000;
}

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

.header-logo h1 {
  margin: 0;
  font-size: 1.2rem;
}
.header-logo p {
  margin: 0;
  font-size: 0.8rem;
  color: #888;
}

/* --- Search --- */
.header-search {
  flex: 1;
  margin: 0 1rem;
}
.search-form {
  display: flex;
 /* border: 1px solid #ddd;*/
  border-radius: 4px;
  overflow: hidden;
}
.search-form input{
  margin:0
}

.search-submit {
  color: #fff;
  border: none;
  padding: 0 0.8rem;
  background:rebeccapurple;
  border-radius:0 4px 4px 0
}

/*Search-results*/
.word-underlined::before {
  content: '';
  position: absolute;
  top: 0.563em;
  left: 0;
  right: -3px;
  bottom: 3px;
  background-color: #32eba24f;
  z-index: -1;
transform: translate(5px,5px)}
.word-underlined {
  position:relative;
  font-weight:600;
  display:inline-block;
  width:fit-content
}

.search-results-content {
  /*background:#fff;
  padding: 10px;
  z-index: 0;
  position: relative;*/
}
.search-results-content h1{
margin: 0 auto 2rem;}

/* Navigation*/

.search-toggle, .burger-menu, #theme-toggle,.top-nav .nav-user-avatar-desktop {
padding: 0.5em;
border: var(--brd1, 1px solid #eee);
  border-radius: 50%;
  background-color: transparent;
  display: inline-flex;
  align-items: center;
  transition:.3s ease-in-out
}
  
  .icon-search {
  transition: transform .3s ease-in-out;
}


.top-nav {
  display: flex;
  gap: 1rem;
  align-items: center;
}
.top-nav a {
  text-decoration: none;
  display: flex;
  flex-wrap: wrap;
  gap:4px;
  align-items: center;
  align-content: center;
  justify-content: center;
  text-align: center;
  font-size: 1rem;
}
.top-nav svg{width:20px;height:20px}
.top-nav .btn-post,.btn-post,.btn-logout{
  /*background: #0073e6;*/
  color: #fff;
  padding:.4rem .8rem;
  border-radius:4px;
  background: #be8500;
  font-weight: initial;
  transition: .3s all ease-in-out;

}
.top-nav a.btn-login {
  width: 50px;
  height: 50px;
  aspect-ratio: 1/1;
  border-radius: 50%;
 /* background: linear-gradient(0deg, hsl(280, 70.4%, 15.9%) 0%, hsl(45.2, 100%, 40.6%) 100%);*/
}
a.btn-login svg {
  width: 30px;
  height: 30px;
 /* fill: white;*/
}

.nav-user-avatar-name {
  display: flex;
  justify-items: center;
  /*! gap: 10px; */
  flex-direction: column;
  align-items: center;
  padding: 15px;
}


.nav-user-avatar {
	width: 50px;
  aspect-ratio: 1/1;
  object-fit: cover;
  border-radius: 50%;
}
.top-nav .nav-user-avatar-desktop{
	width: 50px;
	height:50px
}

/* bouton burger (desktop planqué) */
.burger-menu {
  display: none;
  border: var(--brd1, 1px solid #eee);
  border-radius: 50%;
  width: 45px;
  height: 45px;
  background: transparent;

  align-items: center;
  justify-content: center;
}


.burger-menu .line {
  transition: transform 250ms cubic-bezier(.2,.9,.2,1), opacity 200ms ease;
  transform-origin: 12px 12px;
}
.burger-menu.open .line-top {
  transform: translateY(5px) rotate(45deg);
}
.burger-menu.open .line-mid {
  opacity: 0;
  transform: scaleX(0.2);
}
.burger-menu.open .line-bot {
  transform: translateY(-5px) rotate(-45deg);
}

@media (max-width: 768px) {
  .burger-menu {display: flex}

  .top-nav {
    position: fixed;
    top:78px;
    right: -100%;
    width: 70%;
    max-width: 360px;
    height: 100vh;
    background: #fff;
	background: var(--bg, #fff);
    padding:1.25rem;
    display: flex;
    flex-direction: column;
	align-items: start;
    gap: 1rem;
    transition: right 300ms cubic-bezier(.2,.9,.2,1);
    z-index: 1200;
    overflow-y: auto;
	filter: drop-shadow(-6px 0 3px rgba(0,0,0,0.25))}

  .top-nav.open {
    right: 0;
    display: block
    }
	.top-nav a.btn-account{
    justify-content: center;
	border-bottom: unset;
    border-radius: 6px;
    font-weight: initial
  }
	  .top-nav.open .btn-post{margin:2rem 0;border-bottom:unset}

.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 2;
  opacity: 0;
  visibility: hidden;
  transition: opacity 300ms ease, visibility 300ms ease;
}
.nav-overlay.active {
  opacity: 1;
  visibility: visible;
}
}


/*User NAV-menu*/
.btn-logout, .btn-account {
	background: #eee;
	color:#000
}
.btn-logout:hover, .btn-account:hover {
    background: #ddd;
}
.no-scroll {
    overflow: hidden;
}


.nav-user-info {
	display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 1.25rem;
  margin-bottom: 10px;
  padding: 15px;
 /* border-bottom: 1px solid #eee;*/
  font-weight:600
}

/* Mobile */
@media (max-width: 768px) {
    .burger-menu {
/*	border: var(--brd1, 1px solid #eee);*/
        display: block;
        background: none
    }
    .menu-toggle,a.btn-login {
        display: none;
    }
  .header-container svg {
    height: 30px;
    width: 30px;
    padding: .25em;
  }
  


    .top-nav a {
        padding: 10px;
        border-bottom: 1px solid #eee;
        justify-content: left;
    }
	.top-nav a.btn-post,.top-nav a.btn-logout{padding:10px 1rem;justify-content:center}

    .user-nav {
        /*! display: block; */
        justify-content: left;
    }
	.nav-user-info {
  flex-direction: column;
  border: unset
}
.user-nav .username {
font-size: 1.25rem;
font-weight: initial
}
.nav-user-avatar-desktop {
        display: none; /* Masquer l’image desktop dans le menu mobile */
    }
    .top-nav .nav-user-avatar-mobile {
        display: block; /* Afficher l’image mobile dans user-nav */
width:100px;
height: auto
	}
	
}

/* Desktop */
@media (min-width: 768px) {
.burger-menu /*, .user-nav .username, .nav-user-avatar-mobile*/ {
        display: none; /* Masquer burger, username et image mobile */
    }

    .menu-toggle {
        display: block;
        background: none;
        border: none;
        border-radius: 50px;
    }
 /*   .top-nav {
        display: flex; /* Afficher .btn-post et .btn-logout 
    }*/
    .user-nav {
        display: block;
        position: fixed;
        top:84px;
		right:-100%;
        background:#fff;
        border: 1px solid #ddd;
		filter:drop-shadow(-2px 2px 2px rgba(0, 0, 0, 0.2));
        min-width: 440px;
       transform: translatex(100%);
        transition:transform .3s ease, right .3s ease;
		overflow-y:auto;
        border-right: none;
    }
    .user-nav.open {
		transform:translatex(0);
		right:0;
    }
    .user-nav a {
        padding: 10px 15px;
        border-bottom: 1px solid #eee;
        transition: background .3s ease;
    }
    .user-nav a:hover {
        background: #f5f5f5;
    }
    .user-nav a:last-child {
        border-bottom: none;
    }
	.nav-username-icon{
		display:flex;
		flex-direction:column;
		align-items:center}
.top-nav .nav-username-icon img {
    border: unset;
    padding: unset;
  }
}
		
.nav-user-avatar-desktop {
        display: block;
    }
}


/* Accessibility focus ring */
.burger-menu:focus,.search-toggle:focus,#theme-toggle:focus {
outline: 1px solid #be8500;
outline-offset: 7px;
}


/* Conteneur de toast */
#fav-toast-container {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 9999;
}

/* Toast individuel */
.fav-toast {
    background: rgba(0,0,0,0.75);
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.5s, transform 0.5s;
}

.fav-toast.show {
    opacity: 1;
    transform: translateY(0);
}

/* Conteneur de toast - maintenant en fullscreen overlay */
#fav-toast-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
}

/* Toast individuel */
.fav-toast {
    position: fixed;
    background: rgba(0, 0, 0, 0.85);
    color: #fff;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    min-width: 200px;
    max-width: 280px;
    width: 250px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transform: translateY(-10px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    line-height: 1.4;
    word-wrap: break-word;
}

.fav-toast.show {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Animation pour toast qui apparaît en dessous */
.fav-toast.below {
    transform: translateY(10px) scale(0.95);
}

.fav-toast.below.show {
    transform: translateY(0) scale(1);
}

/* Flèche du toast */
.toast-arrow {
    position: absolute;
    width: 12px;
    height: 12px;
    background: rgba(0, 0, 0, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.1);
}


.toast-arrow.arrow-down {
    bottom: -6px;
    transform: rotate(45deg);
    border-top: none;
    border-left: none;
}


.toast-arrow.arrow-up {
    top: -6px;
    transform: rotate(45deg);
    border-bottom: none;
    border-right: none;
}

.ad-title-fav-it {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
}

.ad-title-fav-it h1 {
    flex: 1;
    margin: 0;
    line-height: 1.3;
}

.btn-fav {
    flex-shrink: 0;
    background: none;
    border: none;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.2s ease;
    position: relative;
}

.btn-fav:hover {
    background: rgba(0, 0, 0, 0.05);
    transform: scale(1.1);
}

.btn-fav:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-fav svg {
    width: 24px;
    height: 24px;
    transition: all 0.2s ease;
}

/* États du fav */
.fav-icon {
    fill: #ddd;
    stroke: #999;
    stroke-width: 1;
}

.fav-icon.active {
    fill: #ffd700;
    stroke: #ffb700;
}

/* Responsive  */
@media (max-width: 768px) {
    .fav-toast {
        width: 220px;
        min-width: 180px;
        max-width: calc(100vw - 40px);
        padding: 10px 14px;
        font-size: 13px;
    }
    
    .ad-title-fav-it {
        gap: 8px;
    }
    
    .btn-fav svg {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 480px) {
    .fav-toast {
        width: 200px;
        min-width: 160px;
        padding: 8px 12px;
        font-size: 12px;
    }
}



/*---*/


/* Animation sur l'étoile lors de l'activation
.fav-icon.active {
    animation: pop-fav 0.3s ease forwards;
}
 */
@keyframes pop-fav {
    0%   { transform: scale(1); }
    50%  { transform: scale(1.4); }
    100% { transform: scale(1); }
}

.btn-fav {
  background: none;
  border: none;
  padding: 6px;
  transition: transform 0.2s ease;
  display: flex
}

.fav-icon {
  fill: none;
  stroke: #777;
  stroke-width: 2;
  transition: all .5s ease;
}

.fav-icon.active {
  fill: gold;
  stroke: darkorange;
  transform: scale(1.2);
  stroke-width: 1;
}

.fav-icon.active {
  animation: pop 0.5s ease;
}

@keyframes pop {
  0%   { transform: scale(1); }
  50%  { transform: scale(3.9); }
  100% { transform: scale(1.2); }
}


.share-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.3s ease;
}

.share-overlay[style*="display: flex"] {
  opacity: 1;
}

.share-content {
  background: #fff;
  border-radius: 12px;
  padding: 20px 60px;
  max-width: 500px;
  width: 90%;
  position: relative;
  min-height: 200px;
  display: flex;
  align-items: center;
/*  filter: drop-shadow(0 4px 11px rgba(172, 172, 172, 0.85)); */
  animation: slideIn 0.3s ease;
  height: auto;
}

/* Animation ouverture */
@keyframes slideIn {
  from { transform: translateY(-20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* Close button */
.share-close {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 24px;
  border: none;
  background: transparent;

  color: #333;
  transition: color 0.2s;
}

.share-close:hover {
  color: #e63946;
}

/* Slider */
.share-slider {
  display: flex;
  flex-wrap: nowrap;
  gap: 20px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 15px 0;
  cursor: grab;
  -webkit-overflow-scrolling: touch;
  align-items: center;
  scrollbar-width: none;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
}

.share-slider::-webkit-scrollbar {
  display: none;
}

.share-slider:active {
  cursor: grabbing;
}

.share-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
width: 100px;
  height: 100px;
  text-decoration: none;
  transition: transform 0.2s, background-color 0.2s;
  border-radius: 8px;
  /*! padding: 10px; */
  scroll-snap-align: start;
  flex-shrink: 0;
}

.share-option:hover {
  /*! transform: scale(1.1); */
}

.share-option svg {
  width: 32px;
  height: 32px;
}

.share-option span {
  margin-top: 8px;
  font-size: 14px;
/*  color: #333;*/
  text-align: center;
}

.share-list{
display: flex;
align-items: center;
gap: 4px;
flex-wrap:wrap;
width:300px
}

.share-count {
  display: flex;
  gap: 2px;
  align-items: center;
  border: solid 1px #eee;
  padding: 2px 6px;
  border-radius: 2px;
  font-size: .875em;
}
.share-count svg {
  width: 14px;
  height: 14px;
  color: #be8500;
}

/* Couleurs bg réseau */
.share-facebook { background-color: #e6f0fa; }
.share-facebook:hover { background-color: #d0e0f5; }
.share-twitter { background-color: #e5e7eb; }
.share-twitter:hover { background-color: #d1d5db; }
.share-mail { background-color: #f3f4f6; }
.share-mail:hover { background-color: #e5e7eb; }
.share-sms { background-color: #f3f4f6; }
.share-sms:hover { background-color: #e5e7eb; }
.share-whatsapp { background-color: #e6f7ec; }
.share-whatsapp:hover { background-color: #d0f0e0; }
.share-linkedin { background-color: #e8f1fa; }
.share-linkedin:hover { background-color: #d2e3f5; }
.share-telegram { background-color: #e6f3fa; }
.share-telegram:hover { background-color: #d0e6f5; }
.share-tumblr{background-color:#3e596e2e} 
.share-tumblr:hover{background-color:#3e596e66}
.share-copy { background-color: #f3f4f6; }
.share-copy:hover { background-color: #e5e7eb}

/* fleches */
.share-arrow {
  position: absolute;
  padding: 10px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.9);
  border: none;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.3));
  transition: background 0.2s;
}

.share-arrow:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.share-arrow.left { left: 10px; }
.share-arrow.right { right: 10px; }

.share-arrow svg {
  width: 20px;
  height: 20px;
}

/* Responsive */
@media (max-width: 480px) {
  .share-content {
    padding: 15px 60px;
	min-height:220px
  }
  .share-option {
   /* width: 60px;
    height: 80px;*/
  }
  .share-option svg {
    width: 24px;
    height: 24px;
  }
  .share-option span {
    font-size: 12px;
  }
  .share-arrow {
    padding: 6px;
  }

}


/*img gllri*/


/* Galerie img */
.annonce-sub-imgs {
  display: flex;
  gap: 10px;
  margin-top: 10px;
padding: 0 0 10px;
}

.annonce-sub-imgs img {
aspect-ratio:1/1;
  width: 100px;
  height: 100px;
  object-fit: cover;
  cursor: pointer;
}

.annonce-sub-imgs img:hover {
/*  transform: scale(1.05);*/
  opacity:.7;
}





.lightbox-overlay {
  position:fixed;
  inset:0;
  background:rgba(0,0,0,1);
  display:flex;
  justify-content:center;
  align-items:center;
  z-index:9999;
  overflow:hidden;
  opacity:0;
  transition:opacity 0.3s ease
}
.lightbox-overlay.show {
  opacity:1
}
.lightbox-close {
	position:absolute;
  top:20px;
  right:30px;
  font-size:30px;
  color:white;
  cursor:pointer;
  z-index:10000;
  user-select:none
}
.lightbox-slider-container {
  width:90%;
  max-width:1000px;
  overflow:hidden;
  position:relative
}
.lightbox-slider {
  display:flex;
  transition:transform .4s ease
}
.lightbox-slide {
  flex:0 0 100%;
  display:flex;
  justify-content:center;
  align-items:center
}
.lightbox-slide img {
  max-width:100%;
  max-height:90vh
}
.lightbox-nav {
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  font-size:40px;
  color:white;
  cursor:pointer;
  user-select:none;
  z-index:10000;
  padding:10px;
  background: #3d3d3d7d;
}
.lightbox-prev {
  left:0
}
.lightbox-next {
  right:0
}
.lightbox-nav:hover {
  color:#ccc
}




/* Overlay de la galerie 
.gallery-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  transition: opacity .3s ease;
  animation: comeIn .4s ease
}

.gallery-overlay[style*="display: flex"] {
  opacity: 1;
}

.gallery-content {
/*  background: #fff;
/*  border-radius: 12px;
  max-width: 90%;
  max-height: 90vh;
  width: 800px;
  position: relative;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  animation: slideIn 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

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

@keyframes comeIn {
	from { transform: scaleZ(0); opacity: 0; }
  to { transform: scalez(1); opacity: 1; }
}

.gallery-close {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 24px;
  border: none;
  background: transparent;

  color: #333;
  transition: color 0.2s;
}

.gallery-close:hover {
  color: #e63946;
}

.gallery-slider {
  width: 100%;
  height: 100%;
  max-height: 600px;
  overflow: hidden;
  position: relative;
}

.gallery-slide {
  width: 100%;
  height: auto;
  max-height: 600px;
  object-fit: contain;
  display: none;
  border-radius: 8px;
}

.gallery-slide.active {
  display: block;
}

.gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.9);
  border: none;

  padding: 10px;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  transition: background 0.2s;
}
/*
.gallery-arrow:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.gallery-arrow.left {
  left: 10px;
}

.gallery-arrow.right {
  right: 10px;
}

.gallery-arrow svg {
  width: 24px;
  height: 24px;
}

/* Responsive */
@media (max-width: 768px) {

  .annonce-sub-imgs img {
    width: 80px;
    height: 80px;
  }
  .gallery-content {
    width: 95%;
    padding: 15px;
  }
  .gallery-slide {
    max-height: 400px;
  }
 /* .gallery-arrow {
    padding: 8px;
  }
  .gallery-arrow svg {
    width: 20px;
    height: 20px;
  }*/
}




/*Test FAQ*/

.page-faq .page-wrapper {
    /* Structure sans mini-hub : pleine largeur */
}

.page-faq .account-layout {
    max-width: 100%; /* Ou ajustez selon besoin */
}
/*
@media (min-width: 769px) {
    .page-faq .account-layout {
        margin-left: 200px;  Espace pour mini-hub si connecté 
    }
}
*/




/* Block phone - Premier bouton */
.block-phone {
	  display: flex;
	  column-gap: 10px;
/*align-items: center; */
  /*  align-items: flex-start;*/
    margin-bottom: 10px;
    min-height: 50px;
}


#show_phone_btn {
    background: #007cba;
    display: flex;
    /*! transition: all 0.3s ease; */
    flex-shrink: 0;
	width: 300px;
}




/* Phone number - Desktop */
#phone_number {
    color: #fff;
    padding: 0 20px;
    border-radius: 4px;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    background: #be8500;
	max-width: 100%;
  width: 300px;
  align-content: center;
  text-align: center;
  font-weight: bold;
  font-size: initial;
}

#phone_number.active {
    opacity: 1;
    padding: 12px 20px;
    max-height: 50px;
	max-width:300px;
}

 /*Actions container*/ 
.annonce-actions-conteneur {
    display: flex;
   transition: margin-top 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  padding: 10px 0;
  column-gap: 10px;
  
}
.btn-contact, .btn-share, .btn-login button {
display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #e85c00;
  background: rebeccapurple;
  color: #fff;
  border-width: 0;
  text-decoration: none;
  width: 300px;
  margin-right: 10px;
  padding: 1rem 2.25rem;
  border-radius: 4px;
}
.signaler {
  display:flex;
  justify-content:right
}
.btn.btn-report{
  display:flex;
  align-items:center;
  padding:10px;
  transition:all .3s ease-in-out;
}
.btn-report:hover {
  fill: yellow;
  background: #ffd700;
}

/* Boutons existants - ajustements */
.btn-contact svg, .btn-share svg, .btn-login button svg {
  width: 16px;
  height: 16px;
  color: currentColor;
}

.btn-contact,.btn-share{
	transition: all 0.3s ease;
}

.btn-login {
  /*  flex: 1;*/
  margin-right: 0;
  text-decoration: none
}

/* RESPONSIVE - Mobile */
@media (max-width: 768px) {
    /* Block phone en mode stack */
    .block-phone {
        flex-direction: column;
        align-items: stretch;
        margin-bottom: 0;
    }

    #show_phone_btn {
        width: 100%; 
        /*! justify-content: center; */
        /*! margin-bottom: 0; */
    }

    /* Phone number - Mobile */
    #phone_number {
        margin-left: 0;
        margin-top: 0;
        width: 100%;
        justify-content: center;
        text-align: center;
		max-width:100%
    }

    #phone_number.active {
        margin-top: 10px;
        max-height: 60px;
		max-width: 100%;
    }

    /* Actions container - Stack vertical */
    .annonce-actions-conteneur {
        flex-direction: column;
        margin-top: 10px;
    }

    /* Ajustement de marge quand phone_number est actif */
    .phone-active .annonce-actions-conteneur {
        margin-top: 10px;
    }
.btn-login button,
    .btn-contact,
    .btn-share {
        width: 100%;
        justify-content: center;
		max-width:100%;
		margin-right: unset;
    }

    .btn-login {
        width: 100%;
    }
	  .profil-contact .btn-contact {
    flex-direction: column;
  }
	
}


/*Utilisateur edit-public-page*/

.profile-header {
    display: flex;
   /* align-items: center;*/
   /* gap: 10px; */
    margin-bottom: 20px;
  /*  padding: 10px;*/
    background: #f8f8f8;
    border-radius: 8px;
}
.profile-info h1{margin:0;text-align:left}
.profile-avatar{flex-shrink:0}
.author-avatar, .phenix-avatar-svg,.profile-avatar img,.profile-avatar .avatar-fallback{width:100px;height:100px;border-radius:50%;object-fit:cover;aspect-ratio:1/1}
.profile-info .bio{margin:1rem 0/*;color:indigo*/}
.stats,.profile-views{font-size:.75rem}

.profile-info {
  display: flex;
  flex-direction: column;
  /*! flex: 0; */
  flex-basis: 50%;
  /*! width: 50%; */
  align-content: center;
  padding-right: 10px;
}
.profil-info-contact {
  width: 100%;
  border-right: solid 1px #dad7d7;
}
.profil-contact {
  display: flex;
  flex-basis: 50%;
  flex-direction: column;

  justify-content: center;
  padding: 0 10px;
}
.profil-contact .btn-contact{
margin: inherit;
  text-align: center;
  background: #5b126f;
 /* width: inherit;*/
  font-weight:initial
}

.bloc-1 {
  display: flex;
  flex: 75%;
  gap: 20px;
  align-items: center;
  padding: 10px;
}
.bloc-2 {
  flex: 50%;
  padding:10px;
  align-content: center;
}
.profile-views{margin: 1rem 0;display: flex;align-items: center;gap: 6px;}
.profile-views{margin:0}
.post-views svg{width: 1rem;height: 1rem}
.profile-views svg{width:.75rem;height:.75rem}

.page-template-author-annonce .favoris-count {
  align-items: center;
  display: flex;
  gap: 2px;
}
.page-template-author-annonce .vues-count {
  display: flex;
  align-items: center;
  gap: 4px;
}

.page-template-author-annonce .stats-overlay {
  display: flex;
  align-items: center;
  gap: 10px;
  position: absolute;
  bottom: 0;
  left: 0;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  padding: 5px 10px;
  font-size: 0.9em;
  z-index: 10;

}

.login-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity .2s ease, visibility 0.3s ease;
}

.login-overlay.show {
    opacity: 1;
    visibility: visible;
}

.login-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
/*background: url('/wp-content/plugins/phenix-petites-annonces/img/site-bg.jpg') no-repeat center center;*/
background-size: cover;
  /*  filter: blur(1px);*/
  background-color: rgba(0, 0, 0, 0.7); 
    /*z-index: -1;*/
}

.login-modal {
align-content: center;
min-height: 250px;
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    filter: drop-shadow(0 4px 10px rgba(46, 46, 46, 0.85));
    transform: translateY(-80px); /* Position initiale pour le glissement */
    opacity: 0; /* Invisible initialement */
    transition: transform .3s ease, opacity .3s ease; /* Transition pour slideIn */
}

.login-overlay.show .login-modal {
transform: translateY(40px);
  opacity:1;
}

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

.login-modal p {
font-size: inherit;
  font-weight: 400;
}

.btn-confirm {
    background: #be8500;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
font-weight: initial;
    margin-right: 10px;
}
.btn-cancel {
    background: #ccc;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;

}
/*Pagination*/
.nav-links {
  display: flex;
  gap: 10px;
  font-weight: initial
}
.nav-links a, .nav-links .current{
  border: solid 1px #ddd;
  padding: 4px 16px;
  transition: .3s ease-in-out
}
.nav-links .current{
  font-weight: bold;
  background: indigo;
  color: #fff
}
.nav-links a:hover{
  background: #be8500;
  color:#fff;
  font-weight: initial;
}

/*Footer*/
.site-footer {
    background: linear-gradient(225deg, hsl(280, 70.4%, 15.9%) 0%, hsl(192.7, 52.9%, 36.7%) 100%);
    color: #fff;
    padding: 40px 20px;

}

.footer-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:20px;max-width:1200px;margin:0 auto}
.footer-column h3{font-size: var(--wp--preset--font-size--large);margin-bottom:15px}
.footer-column ul{list-style:none;padding:0}
.footer-column ul li{margin-bottom:10px}
.footer-column p,.social-links a,.footer-column ul li a{color: #ccc;text-decoration:none;display:flex;align-items:center;gap:2px}
.social-links a:hover,.footer-column ul li a:hover{color:#fff;text-decoration:underline}
.footer-column p{font-size:.75rem}
.social-links ul{display:flex;gap:15px}
.social-links svg{width:30px;height:30px}
.newsletter-form{max-width: 12.5rem;margin-bottom:1.25rem}


.newsletter-form button {
    padding: 8px 16px;
    background: #ffd700;
    color: #222;
    border: none;
    border-radius: 4px;
   
}

.newsletter-form button:hover {
    background: #e6c200;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #ddd;
    margin-top: 20px;
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr)
    }
}



/*SEARCH BAR*/


#mobile-search-form {
    display: flex;
    align-items: center;
}

#mobile-search-form .search-wrapper {
    display: flex;
    /*! align-items: center; */
    width: 100%;
   /* padding: 15px;*/
}

.search-field {
   border: solid 1px var(--brd, #eee);
	border-radius: 6px 0 0 6px;
    background: white;
    width: 100%;
  padding: 0.6rem;
    flex: 1;
  /*border: none;*/
}

.search-submit {
    display: inline-flex;
    align-items: center;
}

#search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: -1;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

#search-overlay.visible {
    opacity: 1;
    pointer-events: all;
}

.darkmode-container {
    flex: 0 0 auto;
}

.burger-menu {
    flex: 0 0 auto;
    display: none;
}

@media (min-width: 768px) {
    .burger-menu {
        display: none;
    }
    .top-nav {
        order: 3;
    }
    .darkmode-container {
        order: 4;
    }
    .btn-post, .menu-toggle, .btn-login {
        display: inline-flex;
        align-items: center;
    }
    #search-toggle {
        display: none;
    }
    #mobile-search-form {
        display: flex;
    }
    #search-overlay {
        display: none;
    }
}

@media (max-width: 767px) {
    .btn-post, .menu-toggle, .btn-login, .nav-logout-icon {
        display: none;
    }
    .burger-menu {
        display: inline-flex;
        align-items: center;
    }
    .darkmode-container {
        order: 2;
    }

    #search-toggle {
        display: inline-flex;
        align-items: center;
    }
.search-toggle.active >.icon-search{
transform: rotate(-18deg) scale(.9)
}
	#mobile-search-form .search-wrapper{
		padding:15px
		}
    #mobile-search-form {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        transform: translate(-100%,78px);
        transition: transform 0.3s ease;
        background: var(--bg, #fff);
        z-index: 10;
        border: none;
        border-radius: unset;
    }
    #mobile-search-form.visible {
  /*      transform: translateY(70px);*/
        transform: translate(0, 78px);
    }

}

