@media (max-width: 576px) {
  .gear-dropdown .dropdown-menu {
    left: 0 !important;
    right: auto !important;
    top: 100% !important;
    min-width: 180px;
    transform: none !important;
  }
}
/* Engrenage mobile en haut à gauche */
@media (max-width: 576px) {
  .gear-mobile-top-left {
    position: fixed;
    top: 7px;
    left: 7px;
    z-index: 99999;
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    padding: 8px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #764ba2;
    font-size: 1.3rem;
    transition: box-shadow 0.2s, transform 0.2s;
  }
}
@media (max-width: 576px) {
  .gear-mobile-fixed {
    position: fixed;
    top: 8px;
    left: 8px;
    z-index: 10000;
    display: flex !important;
    align-items: center;
    justify-content: center;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    padding: 8px;
  }
}
@media (min-width: 576px) {
  .gear-mobile-fixed {
    display: none !important;
  }
  /* Afficher header desktop sur tablette et plus */
  .header-social-top {
    display: flex !important;
  }
  .gear-mobile-fixed,
  .mobile-logo-row,
  .mobile-duo-actions {
    display: none !important;
  }
  .header-left,
  .header-right {
    display: flex !important;
  }
  .header-content {
    grid-template-columns: 1fr auto 1fr !important;
    row-gap: 0 !important;
  }
}
@media (min-width: 576px) {
  .gear-mobile-fixed {
    display: none !important;
  }
}


@media (max-width: 991px) {
  /* Styles tablette uniquement */
  /* ...regroupe ici toutes les règles tablette... */
  /* Masquer les boutons Articles et Menu en tablette */
  .mobile-actions-row .btn-chrome-articles,
  .mobile-actions-row .btn-chrome-menu,
  .mobile-actions-row .dropdown {
    display: none !important;
  }
}

@media (min-width: 992px) {
  /* Styles desktop uniquement */
  /* ...regroupe ici toutes les règles desktop... */
  /* Masquer les boutons Articles et Menu en desktop */
  .mobile-actions-row .btn-chrome-articles,
  .mobile-actions-row .btn-chrome-menu,
  .mobile-actions-row .dropdown {
    display: none !important;
  }
}
/* Stack des boutons à droite du header (connexion, contacts) */
.right-buttons-stack {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  align-items: center;
}

/* Bouton engrenage stylé */
/* Bouton engrenage stylé : background toujours transparent, même actif/show */
.stylish-gear-btn,
.stylish-gear-btn:focus,
.stylish-gear-btn:active,
.stylish-gear-btn.show,
.stylish-gear-btn:focus-visible,
.stylish-gear-btn[aria-expanded="true"] {
  background: transparent !important;
  box-shadow: none !important;
  outline: none;
  color: #fff;
  border: none;
  border-radius: 50%;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: box-shadow 0.2s, transform 0.2s;
}
/* Masquer la flèche du dropdown Bootstrap sur le bouton engrenage */
.stylish-gear-btn.dropdown-toggle::after {
  display: none !important;
}

.stylish-gear-btn:hover {
  box-shadow: 0 8px 24px rgba(154,79,24,0.22);
  transform: scale(1.08) rotate(-10deg);
}
.stylish-gear-icon svg {
  display: block;
}
/* Logo image centrale */
.logo-img {
  height: 250px;
  width: auto;
  position: relative;
  z-index: 2;
  display: block;
  margin: 0 auto;
}
/* Boutons icônes mobiles : image prend toute la place du bouton */
.mobile-icon-btn {
  padding: 0 !important;
  background: none !important;
  border: none !important;
  height: 48px;
  max-width: max-content;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* =========================================
   HEADER – STYLE SMEG 70–80 PREMIUM
========================================= */

:root {
  --bg-main: #f29a4a;
  --bg-light: #f7c992;
  --bg-dark: #6b3500;
  --bg-pill: #fff1cf;
  --text-dark: #4a2600;
  --radius-pill: 999px;
}

/* ----- HEADER WRAPPER ----- */
header-wrapper {
  max-width: 30%;
  margin: auto;
  display: flex;
  justify-content: center;
}

/* ----- HEADER GLOBAL ----- */
header {
  position: relative;
  display: flex;
  justify-content: center;
  padding: 1.25rem 0 2rem;
  background: transparent;

  margin: 2rem auto;
}

header::before {
  content: "";
  position: absolute;
  top: 0.55rem;
  left: 50%;
  transform: translateX(-50%);
  width: 130%;
  height: 190px;
  box-shadow: #000000 0 18px 36px rgba(2, 2, 2, 2);

  /* Dégradé plastique SMEG */
  background: radial-gradient(
    ellipse at center,
    #fff6df 0%,
    #f8ddb0 45%,
    #ebc58c 75%,
    #d4a468 100%
  );

  border-radius: 999px;

  /* Bordure principale (comme les cards) */
  border: 2px solid #7a3e00;
  /* Relief + double liseré */
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.18),
    inset 0 0 0 5px rgba(255, 245, 220, 0.9),
    inset 0 -6px 10px rgba(0, 0, 0, 0.1),
    inset 0 8px 14px rgba(255, 255, 255, 0.55),
    inset 0 0 0 10px rgba(122, 62, 0, 0.22);

  z-index: 0;
}

/* =========================================
   HEADER – STYLE SMEG 70–80 PREMIUM
========================================= */

:root {
  --bg-main: #f29a4a;
  --bg-light: #f7c992;
  --bg-dark: #6b3500;
  --bg-pill: #fff1cf;
  --text-dark: #4a2600;
  --radius-pill: 999px;
}

/* ----- HEADER WRAPPER ----- */
header-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
}

/* ----- HEADER GLOBAL ----- */
header {
  position: relative;
  display: flex;
  justify-content: center;
  padding: 1.25rem 0 2rem;
  background: transparent;
  max-width: 1120px;
  margin: 1rem auto;
}

header::before {
  content: "";
  position: absolute;
  top: 0.55rem;
  left: 50%;
  transform: translateX(-50%);
  width: 130%;
  height: 210px;
  box-shadow: #000000 0 18px 36px rgba(2, 2, 2, 2);

  /* Dégradé plastique SMEG */
  background: radial-gradient(
    ellipse at center,
    #fff6df 0%,
    #f8ddb0 45%,
    #ebc58c 75%,
    #d4a468 100%
  );

  border-radius: 999px;

  /* Bordure principale (comme les cards) */
  border: 2px solid #7a3e00;

  /* Relief + double liseré */
  box-shadow:
    /* Ombre portée externe douce */ 0 18px 36px
      rgba(0, 0, 0, 0.18),
    /* Liseré clair intérieur */ inset 0 0 0 5px rgba(255, 245, 220, 0.9),
    /* Creux bas (volume) */ inset 0 -6px 10px rgba(0, 0, 0, 0.1),
    /* Highlight haut (plastique laqué) */ inset 0 8px 14px
      rgba(255, 255, 255, 0.55),
    /* Deuxième trait brun intérieur (signature cards) */ inset 0 0 0 10px
      rgba(122, 62, 0, 0.22);

  z-index: 0;
}

/* ----- LOGOS SOCIAUX EN HAUT À GAUCHE ----- */
.header-social-top {
  position: absolute;
  top: 1.75rem;
  left: 1.5rem;
  display: flex;
  gap: 0.65rem;
  z-index: 3;
  
}

.header-social-top .social-icon {
  width: 48px;
  height: 48px;
  font-size: 2.1rem;
  background: transparent;
  box-shadow: none;
  border: none;
  
}

/* ----- LAYOUT ----- */
.header-content {
  width: 100%;
  max-width: 1150px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  column-gap: 0.9rem;
  align-items: center;
  padding: 1rem 1.1rem 1.4rem;
  box-sizing: border-box;
  position: relative;
  z-index: 1;
}

.header-left {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
}

/* Ligne réseaux + engrenage */
.header-left-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.gear-dropdown {
  display: flex;
  align-items: center;
}

.left-buttons-stack {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  align-items: center;
}

.header-left-actions .social-icon {
  margin: 0; /* neutralise le margin-bottom précédent */
}

.header-right {
  display: flex;

  gap: 0.65rem;
  justify-content: center;
  align-items: center;
}

.header-right-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  align-items: center;
}

.header-right-actions {
  display: flex;

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

.gear-dropdown {
  display: flex;
  justify-content: center;
  width: 100%;
  transform: none;
}

.header-right-actions .social-icon {
  margin: 0; /* neutralise le margin-top précédemment appliqué */
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: transparent !important;
  
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  font-size: 1.25rem;
}

.social-icon:hover {
  transform: translateY(-1px);
 
  
}

.social-icon-fb {
  color: #1877f2;
}

.social-icon-ig {
  color: #e4405f;
}

  .mobile-duo-actions .dropdown {
    flex: 1;
  }
.header-left .social-icon {
  margin-bottom: 0.2rem;
}

.header-right .social-icon {
  margin-top: 0.2rem;
}

.header-center {
  display: flex;
  justify-content: center;
}

/* Logo + recherche */
.header-center-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  max-width: 85%;
}

/* ----- LOGO CENTRAL ----- */
.blog-header-logo {
  width: 350px;
  height: 124px;
  border-radius: var(--radius-pill);
  background: linear-gradient(145deg, #ffeccc, #f5c98f);
  border: 2px solid #7a3e00;
  box-shadow: inset 0 6px 10px rgba(255, 255, 255, 0.62),
    inset 0 -4px 6px rgba(0, 0, 0, 0.05), 0 14px 24px rgba(0, 0, 0, 0.16);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  text-decoration: none;
  overflow: hidden;
}

/* Anneau intérieur */
.blog-header-logo::before {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: var(--radius-pill);
  border: 2px solid rgba(107, 53, 0, 0.28);
}

/* Reflet supérieur */
.blog-header-logo::after {
  content: "";
  position: absolute;
  top: 8px;
  left: 26px;
  width: calc(100% - 52px);
  height: 42%;
  border-radius: var(--radius-pill);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.7),
    rgba(255, 255, 255, 0)
  );
  pointer-events: none;
}


/* Logo image centrale */
.logo-img {
  height: 350px;
  width: auto;
  position: relative;
  z-index: 2;
  display: block;
  margin: 0 auto;
}

/* ----- BOUTONS PILULE ----- */
header .btn,
.nav-link {
  background: linear-gradient(135deg, #f7e3bc, #e9c897);
  color: #6a3200;
  border-radius: var(--radius-pill);
  padding: 0.6rem 1.55rem;
  border: 1.8px solid rgba(107, 53, 0, 0.32);
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: inset 0 3px 6px rgba(255, 255, 255, 0.75),
    inset 0 -2px 4px rgba(0, 0, 0, 0.07), 0 10px 18px rgba(0, 0, 0, 0.16);
  transition: all 0.2s ease;
  text-decoration: none;
  white-space: nowrap;
  min-width: 150px;
  justify-content: center;
}

header .btn:hover,
.nav-link:hover {
  transform: translateY(-1px);
  box-shadow: inset 0 3px 6px rgba(255, 255, 255, 0.82),
    0 12px 20px rgba(0, 0, 0, 0.18);
}

header .btn:active,
.nav-link:active {
  transform: translateY(0);
  box-shadow: inset 0 3px 6px rgba(0, 0, 0, 0.12),
    0 7px 14px rgba(0, 0, 0, 0.16);
}

/* ----- BOUTON ENGRENAGE ----- */
.btn-gear {
  background: transparent;
  border: none;
  cursor: pointer;
  opacity: 0.75;
  
  transform: rotate(180deg);
}
.img-gear {
  display: block;
  pointer-events: none;
  transition: transform 0.3s ease;
  border-radius: 50%;
  width: 200px;
  height: 200px;
}
.btn-gear:hover .img-gear {
  transform: rotate(360deg);
}

/* ----- BARRE DE RECHERCHE CENTRÉE ----- */
.search-form-center {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 430px;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius-pill);
  background: rgb(163, 119, 71);
  box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.38),
    0 10px 18px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.search-form-center:focus-within {
  transform: translateY(-1px);
  box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.45),
    0 13px 20px rgba(0, 0, 0, 0.22);
}

.search-form-center input {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  color: white;
  font-size: 0.95rem;
  font-weight: 600;
}

.search-form-center input::placeholder {
  color: rgba(255, 255, 255, 0.92);
}

.btn-search-center {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  cursor: pointer;
  color: white;
  padding: 0.4rem 0.65rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}


/* ----- DROPDOWN ----- */
.dropdown-menu {
  border-radius: 20px;
  border: 1px solid rgba(107, 53, 0, 0.12);
  padding: 0.6rem;
  background: #fff7ec;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.14);
  position: absolute;
  left: 0;
  top: 100%;
  min-width: 180px;
  z-index: 1000;
  display: none;
}
.dropdown-menu.show {
  display: block !important;
}

.dropdown-item {
  border-radius: 14px;
  color: #6a3200;
  padding: 0.35rem 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.dropdown-item:hover {
  background: var(--bg-light);
  color: #4a2600;
}

/* Duo de boutons mobile (sous la recherche) */
.mobile-duo-actions {
  display: none; /* visible uniquement en mobile via media query */
  width: 100%;
}
.mobile-duo-actions .dropdown {
  flex: 1;
}
.mobile-duo-actions .btn {
    display: flex !important;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    
    width: 100%;
    margin: 0.7rem auto 0 auto;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0.2em;
  }
  .mobile-duo-actions .btn-chrome-articles,
  .mobile-duo-actions .btn-chrome-menu {
    min-width: 180px;
    min-height: 68px;
    font-size: 1.15rem;
    border-radius: 999px;
    padding: 0.7em 1.5em;
    background: linear-gradient(135deg, #f7e3bc, #e9c897);
    color: #6a3200;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
  }
  
  .mobile-duo-actions .stylish-gear-btn {
    margin-left: 0.7rem;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: transparent !important;
    box-shadow: none !important;
    
    padding: 8px;
    color: #764ba2;
    font-size: 1.3rem;
    transition: box-shadow 0.2s, transform 0.2s;
  justify-content: center;
}
.mobile-duo-actions .btn img {
  height: 1.3em;
  width: auto;
  max-height: 32px;
  margin-right: 0.5em;
}
.mobile-duo-actions .dropdown {
  margin-right: 0.7em;
}
.mobile-duo-actions .dropdown:last-child {
  margin-right: 0;
}

.mobile-duo-actions .dropdown-menu {
  width: 100%;
  position: absolute;
  left: 0;
  top: 100%;
  z-index: 9999;
  display: none;
}
.mobile-duo-actions .dropdown-menu.show {
  display: block !important;
}
.mobile-duo-actions {
  position: relative;
  overflow: visible;
  z-index: 9999;
}

/* Rangée logo + réseaux en mobile : masquée par défaut (desktop) */
.mobile-logo-row {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.mobile-logo-row .blog-header-logo.mobile {
  width: 240px;
  height: 90px;
}

.mobile-logo-row .social-icon {
  width: 48px;
  height: 48px;
  font-size: 2.1rem;
  background: transparent;
  box-shadow: none;
  border: none;
}


/* ============================================
   RESPONSIVE – MOBILE (≤ 576px)
============================================ */

@media (max-width: 576px) {

  /* ----- HEADER ----- */
  header {
    
    max-width: 540px;
    margin: 0 auto;
  }

  header::before {
    
    margin: 0.5rem auto;
    top: 0.55rem;
    width: 100%;
    height: 145px;
    border-radius: 999px;
    z-index: 1;
    background:
      radial-gradient(
        ellipse at center,
        #fff6df 0%,
        #f8ddb0 45%,
        #ebc58c 75%,
        #d4a468 100%
      );
    
    background-position: cover 30px;
    background-size: auto;
    
  }

  /* ----- STRUCTURE ----- */
  .header-content {
    grid-template-columns: 1fr;
    row-gap: 0.75rem;
    
  }

  .header-left,
  .header-right,
  .header-social-top {
    display: none !important;
  }

  /* ----- LOGO ----- */
  .blog-header-logo {
    width: 300px;
    height: 70px;
  }

  .logo-desktop {
    display: flex !important;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
  }

  /* ----- SEARCH ----- */
  .search-form-center {
    display: flex;
    align-items: center;
    max-width: 90vw !important;
    width: 100%;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-pill);
    background: rgb(163, 119, 71);
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    position: relative;
  }
  .search-form-center input {
    flex: 1;
    border: none;
    background: transparent;
    outline: none;
    color: white;
    font-size: 0.95rem;
    font-weight: 600;
    padding-right: 2.2rem;
  }
  .search-form-center input::placeholder {
    color: rgba(255, 255, 255, 0.92);
  }
  .btn-search-center {
    position: absolute;
    right: 0.7rem;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 999px;
    cursor: pointer;
    color: white;
    padding: 0.4rem 0.65rem;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 2.2rem;
    width: 2.2rem;
    min-width: 2.2rem;
    box-shadow: none;
  }
  .btn-search-center svg {
    width: 1.3em;
    height: 1.3em;
    display: block;
  }

  /* ----- SEARCH + ACTIONS STACK ----- */
  .header-search-and-actions {
    display: flex;
    flex-direction: column;
    width: 80%;
   
  }

  .header-search-bottom {
    width: 100%;
    max-width: 90vw;
    padding: 0.4rem 0.5rem;
    border-radius: 999px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  }

  /* ----- ACTION BUTTONS ----- */
  .header-actions-bottom {
    display: flex;
    
    width: 100%;
    justify-content: center;
    
  }

  .header-actions-bottom .dropdown {
    flex: 1;
    min-width: 0;
  }

  .header-actions-bottom .mobile-icon-btn {
    width: 100%;
    height: 38px;
    border-radius: 999px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  }

  .mobile-duo-actions {
    display: flex;
  
  margin-left: 0.5rem;
  align-self: center;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0.2em;
  width: 48px;
  height: 48px;
  display: inline-flex !important;
  justify-content: center;
  align-items: center;
  }
}
