/* ==================================================================
   Header unifié Cloudino — cloudino.pro (Elementor, modèle 29) et
   my.cloudino.pro (thème WHMCS « cloudino », enfant de Nexus).
   Une seule source : ce fichier. Maquette : artefact « Header unifié Cloudino ».
   Aucun JavaScript : menus au survol / focus, recherche et menu mobile
   en éléments details. Préfixe .clh- pour ne rien casser autour.
   ===================================================================== */

.clh {
  --clh-blue: #226AE9;
  --clh-blue-dark: #1A55BF;
  --clh-cyan: #08B1D5;
  --clh-navy: #052758;
  --clh-navy-deep: #031A3D;
  --clh-text: #2E2E2E;
  --clh-muted: #5B6678;
  --clh-on-navy: #C9D6EC;
  --clh-border: #DCE4F0;
  --clh-line: #EEF2F8;
  --clh-tint: #F2F6FC;
  --clh-tint-blue: #E9F0FD;
  --clh-green: #23782F;
  --clh-green-dot: #61CE70;
  font-family: Poppins, "Open Sans", Arial, sans-serif;
  color: var(--clh-text);
  position: relative;
  z-index: 1000;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
}
.clh *, .clh *::before, .clh *::after { box-sizing: border-box; }
.clh a { text-decoration: none; }
.clh svg { flex: none; }
.clh .clh-wrap { max-width: 1344px; margin: 0 auto; padding: 0 24px; }

/* ---------- Barre du haut ---------- */
.clh .clh-top { background: var(--clh-navy-deep); color: var(--clh-on-navy); font-size: 13px; }
.clh .clh-top .clh-wrap { min-height: 40px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.clh .clh-top-l, .clh .clh-top-r { display: flex; align-items: center; gap: 22px; }
.clh .clh-tag { color: #FFFFFF; font-weight: 500; }
.clh .clh-top a { color: var(--clh-on-navy); display: inline-flex; align-items: center; gap: 6px; }
.clh .clh-top a:hover, .clh .clh-top a:focus-visible { color: #FFFFFF; }
.clh .clh-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--clh-green-dot); display: inline-block; }

/* ---------- Barre principale ---------- */
.clh .clh-bar { background: #FFFFFF; border-bottom: 1px solid var(--clh-border); }
.clh .clh-bar-in { position: relative; min-height: 76px; display: flex; align-items: center; gap: 32px; }
.clh .clh-logo { display: flex; align-items: center; flex: none; }
.clh .clh-logo img { display: block; height: 52px; width: auto; }

.clh .clh-nav { display: flex; align-items: center; gap: 2px; align-self: stretch; }
.clh .clh-item { display: flex; align-items: center; }
.clh .clh-link {
  height: 44px; padding: 0 13px; border: 0; border-radius: 8px; background: none;
  font: inherit; font-size: 15px; font-weight: 500; color: var(--clh-navy);
  display: inline-flex; align-items: center; gap: 6px; cursor: pointer; white-space: nowrap;
}
.clh .clh-link:hover, .clh .clh-item:hover > .clh-link, .clh .clh-item:focus-within > .clh-link { background: var(--clh-tint-blue); color: var(--clh-blue-dark); }
.clh .clh-link svg { transition: transform .15s ease; }
.clh .clh-item:hover > .clh-link svg, .clh .clh-item:focus-within > .clh-link svg { transform: rotate(180deg); }
.clh .clh-link.is-active { color: var(--clh-blue-dark); font-weight: 600; }

/* Panneau déroulant */
.clh .clh-panel {
  position: absolute; inset-block-start: 100%; left: 24px; width: min(960px, calc(100% - 48px));
  padding-top: 8px; display: none; z-index: 20;
}
.clh .clh-item:hover > .clh-panel, .clh .clh-item:focus-within > .clh-panel { display: block; }
.clh .clh-panel-in {
  background: #FFFFFF; border: 1px solid var(--clh-border); border-radius: 14px;
  box-shadow: 0 18px 40px rgba(3, 26, 61, .18); overflow: hidden;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) 260px;
}
.clh .clh-card { padding: 22px; display: flex; flex-direction: column; gap: 6px; border-right: 1px solid var(--clh-line); color: var(--clh-text); }
.clh .clh-card:hover, .clh .clh-card:focus-visible { background: var(--clh-tint); }
.clh .clh-ico { width: 40px; height: 40px; border-radius: 10px; background: var(--clh-tint-blue); color: var(--clh-blue); display: flex; align-items: center; justify-content: center; margin-bottom: 4px; }
.clh .clh-t { font-size: 16px; font-weight: 600; color: var(--clh-navy); }
.clh .clh-d { font-size: 14px; color: var(--clh-muted); line-height: 1.5; }
.clh .clh-p { font-size: 13px; font-weight: 600; color: var(--clh-green); margin-top: auto; padding-top: 4px; }
.clh .clh-aside { padding: 22px; background: var(--clh-tint); display: flex; flex-direction: column; gap: 10px; }
.clh .clh-kicker { font-size: 12px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: var(--clh-blue-dark); }
.clh .clh-aside p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--clh-text); }
.clh .clh-more { margin-top: auto; font-size: 14px; font-weight: 600; color: var(--clh-blue-dark); display: inline-flex; align-items: center; gap: 6px; }
.clh .clh-more:hover { color: var(--clh-blue); }

/* ---------- Actions à droite ---------- */
.clh .clh-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.clh .clh-icon-btn {
  position: relative; width: 44px; height: 44px; border: 1px solid var(--clh-border); border-radius: 10px;
  background: #FFFFFF; color: var(--clh-navy); display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; list-style: none;
}
.clh .clh-icon-btn::-webkit-details-marker { display: none; }
.clh .clh-icon-btn:hover { border-color: var(--clh-blue); color: var(--clh-blue); }
.clh .clh-badge { position: absolute; inset-block-start: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--clh-cyan); color: var(--clh-navy-deep); font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.clh .clh-expert { height: 44px; padding: 0 12px; border-radius: 10px; font-size: 15px; font-weight: 500; color: var(--clh-blue-dark); display: inline-flex; align-items: center; white-space: nowrap; }
.clh .clh-expert:hover { background: var(--clh-tint-blue); color: var(--clh-blue-dark); }
.clh .clh-cta {
  height: 44px; padding: 0 18px; border-radius: 10px; background: var(--clh-blue); color: #FFFFFF;
  font-size: 15px; font-weight: 600; display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  border: 0; cursor: pointer; font-family: inherit; list-style: none;
}
.clh .clh-cta::-webkit-details-marker { display: none; }
.clh .clh-cta:hover, .clh .clh-cta:focus-visible { background: var(--clh-blue-dark); color: #FFFFFF; }
.clh a:focus-visible, .clh button:focus-visible, .clh summary:focus-visible, .clh input:focus-visible { outline: 3px solid var(--clh-cyan); outline-offset: 2px; }

/* ---------- Recherche ---------- */
.clh .clh-search > summary .clh-x, .clh .clh-search[open] > summary .clh-loupe { display: none; }
.clh .clh-search[open] > summary .clh-x { display: inline; }
.clh .clh-search[open] > summary { border-color: var(--clh-blue); color: var(--clh-blue); }
.clh .clh-search-panel { position: absolute; left: 24px; right: 24px; inset-block-start: 100%; padding-top: 8px; z-index: 30; }
.clh .clh-search-in { background: #FFFFFF; border: 1px solid var(--clh-border); border-radius: 14px; box-shadow: 0 18px 40px rgba(3, 26, 61, .18); padding: 20px; display: flex; flex-direction: column; gap: 18px; }
.clh .clh-sform { display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 6px 0 16px; border: 2px solid var(--clh-blue); border-radius: 12px; }
.clh .clh-sform input { flex: 1; min-width: 0; height: 100%; border: 0; outline: none; background: transparent; font: inherit; font-size: 16px; color: var(--clh-navy); }
.clh .clh-sform button { height: 40px; padding: 0 16px; border: 0; border-radius: 8px; background: var(--clh-blue); color: #FFFFFF; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.clh .clh-sform button:hover { background: var(--clh-blue-dark); }
.clh .clh-sgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.clh .clh-scol { display: flex; flex-direction: column; gap: 4px; }
.clh .clh-scol a { padding: 8px 10px; border-radius: 8px; color: var(--clh-navy); font-size: 14px; display: flex; justify-content: space-between; gap: 10px; }
.clh .clh-scol a:hover { background: var(--clh-tint); color: var(--clh-blue-dark); }
.clh .clh-scol a span { color: var(--clh-green); font-weight: 600; font-size: 13px; white-space: nowrap; }
.clh .clh-dform { display: flex; gap: 8px; }
.clh .clh-dform input { flex: 1; min-width: 0; height: 44px; padding: 0 12px; border: 1px solid var(--clh-border); border-radius: 10px; font: inherit; font-size: 14px; color: var(--clh-navy); }
.clh .clh-dform button { height: 44px; padding: 0 14px; border: 1px solid var(--clh-blue); border-radius: 10px; background: #FFFFFF; color: var(--clh-blue-dark); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.clh .clh-dform button:hover { background: var(--clh-tint-blue); }
.clh .clh-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Compte (espace client connecté) ---------- */
.clh .clh-acc { position: relative; }
.clh .clh-acc > summary { list-style: none; height: 44px; padding: 0 12px 0 6px; border: 1px solid var(--clh-border); border-radius: 10px; background: #FFFFFF; font-size: 15px; font-weight: 600; color: var(--clh-navy); display: inline-flex; align-items: center; gap: 10px; cursor: pointer; white-space: nowrap; }
.clh .clh-acc > summary::-webkit-details-marker { display: none; }
.clh .clh-av { width: 32px; height: 32px; border-radius: 8px; background: var(--clh-blue); color: #FFFFFF; font-size: 13px; display: flex; align-items: center; justify-content: center; text-transform: uppercase; }
.clh .clh-menu { position: absolute; right: 0; inset-block-start: calc(100% + 8px); min-width: 240px; background: #FFFFFF; border: 1px solid var(--clh-border); border-radius: 12px; box-shadow: 0 18px 40px rgba(3, 26, 61, .18); padding: 8px; display: flex; flex-direction: column; z-index: 40; }
.clh .clh-menu a { padding: 10px 12px; border-radius: 8px; color: var(--clh-navy); font-size: 14px; }
.clh .clh-menu a:hover { background: var(--clh-tint); color: var(--clh-blue-dark); }
.clh .clh-menu hr { border: 0; border-top: 1px solid var(--clh-line); margin: 6px 0; }

/* Barre propre à l'espace client */
.clh .clh-sub { background: #FFFFFF; border-bottom: 1px solid var(--clh-border); }
.clh .clh-sub .clh-wrap { display: flex; align-items: stretch; gap: 4px; min-height: 52px; overflow-x: auto; }
.clh .clh-sub a { display: inline-flex; align-items: center; gap: 8px; padding: 0 12px; font-size: 14px; font-weight: 500; color: var(--clh-text); border-bottom: 3px solid transparent; white-space: nowrap; }
.clh .clh-sub a:hover { color: var(--clh-blue-dark); }
.clh .clh-sub a.is-active { color: var(--clh-blue-dark); font-weight: 600; border-bottom-color: var(--clh-blue); }
.clh .clh-sub .clh-sub-cta { margin-left: auto; color: var(--clh-blue-dark); font-weight: 600; }
.clh .clh-pill { background: #FFF2C2; color: #6B5200; border-radius: 10px; padding: 1px 8px; font-size: 12px; font-weight: 600; }

/* ---------- Menu mobile ---------- */
.clh .clh-burger { display: none; }
.clh .clh-burger > summary .clh-x, .clh .clh-burger[open] > summary .clh-bars { display: none; }
.clh .clh-burger[open] > summary .clh-x { display: inline; }
.clh .clh-mnav { position: absolute; left: 0; right: 0; inset-block-start: 100%; background: #FFFFFF; border-bottom: 1px solid var(--clh-border); box-shadow: 0 18px 30px rgba(3, 26, 61, .14); padding: 8px 16px 20px; max-height: calc(100vh - 64px); overflow-y: auto; z-index: 50; display: flex; flex-direction: column; gap: 2px; }
.clh .clh-mnav details > summary { list-style: none; min-height: 52px; padding: 0 14px; border-radius: 10px; font-size: 16px; font-weight: 500; color: var(--clh-navy); display: flex; align-items: center; justify-content: space-between; cursor: pointer; }
.clh .clh-mnav details > summary::-webkit-details-marker { display: none; }
.clh .clh-mnav details[open] > summary { background: var(--clh-tint-blue); color: var(--clh-blue-dark); font-weight: 600; }
.clh .clh-mnav details[open] > summary svg { transform: rotate(180deg); }
.clh .clh-mnav details > div { display: flex; flex-direction: column; padding: 4px 0 8px 14px; }
.clh .clh-mnav details a, .clh .clh-mnav > a { min-height: 48px; padding: 0 12px; border-radius: 8px; display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--clh-navy); font-size: 15px; }
.clh .clh-mnav > a { padding: 0 14px; font-size: 16px; font-weight: 500; }
.clh .clh-mnav details a span { font-size: 13px; color: var(--clh-green); font-weight: 600; white-space: nowrap; }
.clh .clh-mcta { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.clh .clh-mcta a { min-height: 52px; border-radius: 12px; font-weight: 600; display: flex; align-items: center; justify-content: center; gap: 8px; }
.clh .clh-mcta .clh-m1 { background: var(--clh-blue); color: #FFFFFF; }
.clh .clh-mcta .clh-m2 { border: 1px solid var(--clh-blue); color: var(--clh-blue-dark); }
.clh .clh-mlinks { margin-top: 14px; padding: 14px 16px; border-radius: 12px; background: var(--clh-tint); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 12px; font-size: 14px; }
.clh .clh-mlinks a { color: var(--clh-navy); display: inline-flex; align-items: center; gap: 6px; }

/* ---------- Points de rupture ---------- */
@media (max-width: 1240px) {
  .clh .clh-expert { display: none; }
  .clh .clh-bar-in { gap: 20px; }
  .clh .clh-link { padding: 0 10px; font-size: 14px; }
}
@media (max-width: 1080px) {
  .clh .clh-nav { display: none; }
  .clh .clh-burger { display: block; }
  .clh .clh-top-l .clh-tel, .clh .clh-top-l .clh-mail { display: none; }
}
@media (max-width: 760px) {
  .clh .clh-top { display: none; }
  .clh .clh-bar-in { min-height: 64px; gap: 8px; }
  .clh .clh-wrap { padding: 0 16px; }
  .clh .clh-logo img { height: 44px; }
  .clh .clh-actions { gap: 8px; }
  .clh .clh-cta { width: 44px; padding: 0; justify-content: center; }
  .clh .clh-cta .clh-cta-txt, .clh .clh-acc .clh-acc-txt { display: none; }
  .clh .clh-search-panel { left: 0; right: 0; padding: 0; }
  .clh .clh-search-in { border-radius: 0; border-left: 0; border-right: 0; }
  .clh .clh-sgrid { grid-template-columns: minmax(0, 1fr); }
  .clh .clh-sform button { display: none; }
}
@media print { .clh-top, .clh-actions, .clh-nav { display: none; } }

/* Remise à zéro des boutons : le kit Elementor (et Bootstrap sur WHMCS) stylent tous les boutons. */
.clh button, .clh summary { font-family: inherit; text-transform: none; letter-spacing: normal; box-shadow: none; min-height: 0; line-height: normal; }
.clh button:not(.clh-cta) { background-image: none; }

/* Menus déroulants : chaque entrée occupe toute la hauteur de la barre ; le panneau reste ouvert quand la souris descend vers lui. */
.clh .clh-nav { align-items: stretch; }
.clh .clh-nav > .clh-item { align-items: center; }
.clh .clh-nav > .clh-link { align-self: center; }

/* Note : « inset-block-start » remplace la propriété « top » (même effet) : le pare-feu de
   l'hébergeur refuse « top: » placé après « ; » ou « { » dans le CSS enregistré par Elementor. */
