.header {
    background: #fff;
    color: #111;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 1rem;
  }
  
  .header-inner {
    max-width: 48rem;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .header-logo-link {
    flex-shrink: 0;
    display: flex;
    align-items: center;
  }
  
  .header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
  }
  
  .header-messages-link {
    display: none;
    position: relative;
    padding: 0.5rem;
    border-radius: 9999px;
    transition: background 0.2s;
  }
  .header-messages-link:hover {
    background: #f9fafb;
  }
  @media (min-width: 448px) {
    .header-messages-link { display: block; }
  }
  .header-messages-icon {
    font-size: 1.5rem;
    color: #4b5563;
    transition: color 0.2s;
  }
  .header-messages-link:hover .header-messages-icon {
    color: #111;
  }
  .header-messages-badge {
    position: absolute;
    top: -0.25rem;
    right: -0.25rem;
    height: 1.25rem;
    width: 1.25rem;
    background: #ef4444;
    color: #fff;
    font-size: 0.75rem;
    font-weight: bold;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .header-nav {
    display: none;
    align-items: center;
    gap: 1rem;
  }
  @media (min-width: 448px) {
    .header-nav { display: flex; }
  }
  .header-nav-link {
    font-size: 1rem;
    padding: 0.5rem 0.75rem;
    color: #111;
    border-radius: 9999px;
    text-decoration: none;
    transition: background 0.2s;
    margin-bottom: 0;
    background: none;
    border: none;
    cursor: pointer;
    white-space: nowrap;
  
  }
  .header-nav-link:hover {
    background: #f3f4f6;
  }
  .header-nav-link-logout {
    color: #ef4444;
  }
  .header-nav-form {
    display: inline;
  }
  
  .header-publish-btn2 {
        align-items: center;
    border: 2px solid #f97316;
    color: #f97316;
    background: #ffffff;
    border-radius: 9999px;
    padding: 0.2rem 0.75rem;
    font-size: 14.2px;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
  }
  
  .header-publish-btn {
    display: flex;
    align-items: center;
    border: none;
    color: #ffffff;
    background: #f97316;
    border-radius: 9999px;
    padding: 0.6rem 1rem;
    font-weight: bold;
    text-decoration: none;
    transition: background 0.2s, transform 0.2s;
    box-shadow: 0 2px 8px rgba(249, 115, 22, 0.3);
  }
  .header-publish-btn:hover {
    background: #ea580c;
    color: #fff;
    transform: translateY(-1px);
  }
  .header-publish-text {
    margin-right: 0rem;
    font-weight: bold;
    white-space: nowrap;
  
  }
  
  .gtranslate_wrapper {
    margin-left: 0.5rem;
    display: flex;
  }
  
  .header-mobile-menu-btn {
    background: none;
    border: none;
    color: #f97316;
    cursor: pointer;
    padding: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .hidden {
    display: none;
  }

  .header-mobile-menu-btn:focus {
    outline: none;
  }
  .header-mobile-menu-btn:hover {
    color: #ea580c;
  }

  .header-mobile-menu-icon {
    width: 2.5rem;
    height: 2.5rem;
    transition: opacity 0.15s ease-out, transform 0.15s ease-out;
  }

  /* Toggle hamburger / close icons */
  .icon-close {
    display: none;
  }

  .header-mobile-menu-btn.open .icon-hamburger {
    display: none;
  }

  .header-mobile-menu-btn.open .icon-close {
    display: block;
  }

  @media (min-width: 448px) {
    .header-mobile-menu-btn { display: none; }
  }
  
  
  @media (max-width: 767px) {

    .header-mobile-menu.active {
      display: block;
    }
  }

  /* Animation du menu mobile */
  .header-mobile-menu {
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transform: translateY(-8px);
    transition: max-height 0.2s ease-out, opacity 0.15s ease-out, transform 0.15s ease-out;
  }

  .header-mobile-menu.open {
    max-height: 300px;
    opacity: 1;
    transform: translateY(0);
  }

  .header-mobile-nav {
    margin-top: 0.5rem;
    padding: 0.5rem 1.4rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }
  .header-mobile-nav-link {
    display: block;
    font-size: 1rem;
    padding: 0.5rem 0.75rem;
    color: #111;
    border-radius: 9999px;
    text-decoration: none;
    background: none;
    border: none;
    transition: background 0.2s;
    cursor: pointer;
    text-align: left;
  }
  .header-mobile-nav-link:hover {
    background: #f3f4f6;
  }
  .header-nav-link-logout {
    color: #ef4444;
  }




  .mobile-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #fbf8f3;
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0.5rem 0;
    z-index: 50;
  }
  @media (min-width: 640px) {
    .mobile-nav {
      display: none;
    }
  }
  .mobile-nav-inner {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    width: 100%;
    max-width: 600px;
    padding: 0 0.5rem;
  }
  .mobile-nav-group {
    display: flex;
    gap: 2rem;
  }
  .mobile-nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #4b5563;
    text-decoration: none;
    transition: color 0.15s;
    position: relative;
  }
  .mobile-nav-link:hover {
    color: #f97316;
  }
  .mobile-nav-icon {
    font-size: 1.25rem;
  }
  .mobile-nav-label {
    font-size: 0.75rem;
    margin-top: 0.25rem;
  }
  .mobile-nav-publish {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    transform: translateY(-20px);
  }
  .mobile-nav-publish-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    background: #f97316;
    color: #fff;
    border-radius: 50%;
    width: 3.5rem;
    height: 3.5rem;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    transition: background 0.15s;
    font-size: 1.25rem;
  }
  .mobile-nav-publish-btn:hover {
    background: #ea580c;
  }
  .mobile-nav-publish-label {
    font-size: 0.75rem;
    margin-top: 0.25rem;
    color: #f97316;
    text-align: center;
  }
  .mobile-nav-badge {
    position: absolute;
    top: -0.3rem;
    right: -0.6rem;
    height: 1.25rem;
    width: 1.25rem;
    background: #ef4444;
    color: #fff;
    font-size: 0.75rem;
    font-weight: bold;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
  }