/* ============================================================
   CDLM header bureau, navigation a deux niveaux (23/09/2026)
   Rendu au-dessus de 768 px ; en dessous c est cdlm-mobile-nav qui sert.
   Le header Creative Elements (elementor-12170101) et le mega-menu iqit
   sont masques ici, pas supprimes : retirer ce fichier les fait revenir.
   ============================================================ */
.cdlm-dn { display: none; }
@media (min-width: 769px) {
  .elementor-12170101, .iqitmegamenu-wrapper { display: none !important; }
  .cdlm-dn { display: block; position: sticky; top: 0; z-index: 120; background: #fff; border-bottom: 1px solid #ebebeb; font-family: var(--cdlm-font-sans, 'DM Sans', Arial, sans-serif); }
  .cdlm-dn__bar { display: flex; align-items: center; gap: 18px; max-width: 1480px; margin: 0 auto; padding: 0 24px; height: 84px; }
  .cdlm-dn__logo { flex: 0 0 auto; display: block; line-height: 0; }
  .cdlm-dn__logo img { width: auto; height: 52px; }
  .cdlm-dn__rayons { display: flex; align-items: center; gap: 0; margin: 0; padding: 0; list-style: none; flex: 1 1 auto; min-width: 0; height: 100%; }
  .cdlm-dn__item { position: relative; height: 100%; display: flex; align-items: center; }
  .cdlm-dn__top { display: flex; align-items: center; height: 100%; padding: 0 10px; font-size: 12.5px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: #111; text-decoration: none; white-space: nowrap; border-bottom: 2px solid transparent; transition: border-color .15s; }
  .cdlm-dn__item.is-open > .cdlm-dn__top, .cdlm-dn__item.is-current > .cdlm-dn__top, .cdlm-dn__top:hover { border-bottom-color: #111; color: #111; text-decoration: none; }
  .cdlm-dn__list { display: none; }
  .cdlm-dn__search { flex: 0 1 240px; display: flex; align-items: center; height: 44px; border: 1px solid #111; background: #fff; }
  .cdlm-dn__search input { flex: 1 1 auto; min-width: 0; height: 100%; border: 0; outline: 0; padding: 0 14px; font: 14px/1 var(--cdlm-font-sans, 'DM Sans', Arial, sans-serif); color: #111; background: transparent; }
  .cdlm-dn__search input::placeholder { color: #777; }
  .cdlm-dn__search button { flex: 0 0 44px; height: 100%; border: 0; background: transparent; color: #111; cursor: pointer; display: flex; align-items: center; justify-content: center; }
  .cdlm-dn__tools { display: flex; align-items: center; gap: 18px; flex: 0 0 auto; }
  .cdlm-dn__ico { position: relative; display: flex; align-items: center; color: #111; text-decoration: none; }
  .cdlm-dn__ico:hover { color: #c8a96e; }
  .cdlm-dn__badge { position: absolute; top: -8px; right: -9px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: #c8a96e; color: #fff; font-size: 10px; font-weight: 700; line-height: 17px; text-align: center; }
  .cdlm-dn__badge:empty { display: none; }
  .cdlm-dn__tools .weglot-container { margin: 0 6px 0 0; }
  .cdlm-dn__sub { position: absolute; left: 0; right: 0; top: 100%; background: #f4f4f4; border-bottom: 1px solid #e6e6e6; box-shadow: 0 10px 24px rgba(0,0,0,.08); }
  .cdlm-dn__sub[hidden] { display: none; }
  .cdlm-dn__sublist { display: flex; flex-wrap: wrap; align-items: center; gap: 0 8px; max-width: 1440px; margin: 0 auto; padding: 4px 28px; list-style: none; }
  .cdlm-dn__sublist li { margin: 0; }
  .cdlm-dn__sublist a { display: block; padding: 14px 12px; font-size: 14.5px; font-weight: 500; color: #111; text-decoration: none; white-space: nowrap; border-bottom: 2px solid transparent; }
  .cdlm-dn__sublist a:hover { border-bottom-color: #111; text-decoration: none; }
}
/* Sous 1360 px le champ de recherche devient une loupe, le champ s ouvre au clic (classe is-open posee par le script) */
@media (min-width: 1600px) {
  .cdlm-dn__search { flex-basis: 280px; }
  .cdlm-dn__bar { gap: 24px; }
}
@media (min-width: 769px) and (max-width: 1359px) {
  .cdlm-dn__bar { gap: 16px; padding: 0 18px; }
  .cdlm-dn__top { padding: 0 9px; font-size: 12px; letter-spacing: .05em; }
  .cdlm-dn__logo img { height: 50px; }
  .cdlm-dn__search { flex: 0 0 auto; width: 44px; border-color: transparent; overflow: hidden; transition: width .2s, border-color .2s; }
  .cdlm-dn__search input { width: 0; padding: 0; opacity: 0; }
  .cdlm-dn__search.is-open { width: 260px; border-color: #111; }
  .cdlm-dn__search.is-open input { width: auto; padding: 0 12px; opacity: 1; }
}
@media (min-width: 769px) and (max-width: 1100px) {
  .cdlm-dn__bar { gap: 10px; padding: 0 12px; height: 74px; }
  .cdlm-dn__top { padding: 0 6px; font-size: 11px; letter-spacing: .03em; }
  .cdlm-dn__logo img { height: 44px; }
  .cdlm-dn__tools { gap: 12px; }
}
