/* TDPNet sur la template Hostick : police du site, logo, bandeau d'annonce, petits ajustements. */
body.hk { font-family: "Montserrat", "Nunito Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
.hk h1, .hk h2, .hk h3, .hk h4, .hk h5, .hk h6, .hk .h1, .hk .h2, .hk .h3, .hk .h4, .hk .h5, .hk .h6 { font-family: inherit; }

/* Logo : emblème TD + texte, clair sur le bandeau, sombre une fois l'en-tête collé */
.hk-logo { display: inline-flex !important; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 1.35rem; letter-spacing: -.02em; line-height: 1; color: #fff; }
.hk-logo .logo__mark { width: 36px; height: 36px; }
.hk-logo .logo__cream { fill: #f2e8d5; }
.hk-logo .logo__red { fill: #c4264a; }
.hk-logo b { color: #c4264a; font-weight: 800; }
#topnav .hk-logo { padding: 18px 0; }
#topnav .hk-logo, #topnav .hk-logo:hover { color: #fff !important; }
#topnav.nav-sticky .hk-logo, #topnav.bg-white .hk-logo { color: #161c2d !important; }
#topnav.nav-sticky .hk-logo .logo__cream, #topnav.bg-white .hk-logo .logo__cream { fill: #3c4858; }
.hk-logo--pied { color: #fff; }
@media (max-width: 991px) { #topnav .hk-logo { color: #161c2d !important; padding: 14px 0; } #topnav .hk-logo .logo__cream { fill: #3c4858; } }

/* Bouton connexion lisible sur le bandeau */
#topnav:not(.nav-sticky):not(.bg-white) .hk-connexion { color: #fff !important; border-color: rgba(255,255,255,.4) !important; background: rgba(255,255,255,.14) !important; box-shadow: none !important; }

/* Bandeau d'annonce du site (réglages admin) */
.hk .announce { position: relative; z-index: 1000; padding: 9px 16px; text-align: center; font-size: .9rem; font-weight: 600; color: #fff; background: #5368f1; }
.hk .announce--alerte { background: #c4264a; }
.hk .announce + #topnav { top: auto; }

/* Mot animé du titre */
[data-mots] { display: inline-block; transition: opacity .25s, transform .25s; }
[data-mots].hk-sort { opacity: 0; transform: translateY(8px); }

/* Petites aides */
.hk .hk-ico { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 16px; font-size: 32px; }
.hk .hk-ico--sm { width: 48px; height: 48px; border-radius: 12px; font-size: 24px; }
.hk .badge-soon { font-size: .7rem; vertical-align: middle; }
.hk .faq-tdp .accordion-button { font-weight: 600; }
.hk .back-to-top { display: none; z-index: 99; }
.hk .card.services .icon .mdi { line-height: 1; }
.hk .table-tdp td, .hk .table-tdp th { vertical-align: middle; }

/* Pages intérieures */
.hk .hk-banniere { padding-bottom: 120px; }
.hk .hk-banniere .position-breadcrumb { position: relative; z-index: 1; margin-top: 40px; text-align: center; }
.hk .hk-legal h2 { font-size: 1.25rem; margin-top: 2rem; }
.hk .hk-legal h2:first-child { margin-top: 0; }
.hk .hk-legal ul.checklist { padding-left: 1.2rem; }
.hk .hk-legal p, .hk .hk-legal li { color: #5a6d90; }
.hk .sticky-bar { position: sticky; top: 100px; }
.hk .hk-appel .btn-outline-light:hover { color: #5368f1; }

/* Documentation : icônes du site et contenu des guides */
.hk .hk-doc-ico { display: inline-grid; place-items: center; }
.hk .hk-doc-ico svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.hk .hk-docs-nav a.is-active { color: #5368f1 !important; font-weight: 700; }
.hk .hk-docs-nav { max-height: calc(100vh - 120px); overflow-y: auto; }
.hk .hk-doc { scroll-margin-top: 100px; }
.hk .doc__body { color: #5a6d90; }
.hk .doc__body pre { background: #161c2d; color: #e9ecef; border-radius: 8px; padding: 14px 16px; position: relative; }
.hk .doc__body code { color: #c4264a; }
.hk .doc__body pre code { color: inherit; }
.hk .doc-steps { counter-reset: s; list-style: none; padding-left: 0; }
.hk .doc-steps > li { counter-increment: s; position: relative; padding-left: 44px; margin-bottom: 12px; }
.hk .doc-steps > li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; background: rgba(83, 104, 241, .1); color: #5368f1; }
.hk .doc-note { border-left: 3px solid #5368f1; background: rgba(83, 104, 241, .06); padding: 12px 16px; border-radius: 0 8px 8px 0; margin: 16px 0; }
.hk .doc-note--warn { border-left-color: #f17425; background: rgba(241, 116, 37, .08); }
.hk .doc-defs dt { color: #161c2d; font-weight: 700; margin-top: 10px; }
.hk .doc-defs dd { margin-left: 0; }
.hk .doc-list { padding-left: 1.2rem; }

/* Bouton de thème */
.hk-theme { display: inline-grid !important; place-items: center; }
.hk-theme .mdi { font-size: 18px; line-height: 1; }
[data-theme="light"] .hk-theme__clair, [data-theme="dark"] .hk-theme__sombre { display: none; }
#topnav:not(.nav-sticky):not(.bg-white) .hk-theme { color: #fff !important; background: rgba(255,255,255,.14) !important; border-color: rgba(255,255,255,.4) !important; box-shadow: none !important; }

/* Ajustements du thème sombre */
[data-theme="dark"] #topnav.nav-sticky .hk-logo, [data-theme="dark"] #topnav.bg-white .hk-logo { color: #fff !important; }
[data-theme="dark"] #topnav.nav-sticky .hk-logo .logo__cream { fill: #f2e8d5; }
@media (max-width: 991px) { [data-theme="dark"] #topnav .hk-logo { color: #fff !important; } [data-theme="dark"] #topnav .hk-logo .logo__cream { fill: #f2e8d5; } }
[data-theme="dark"] .hk .doc__body, [data-theme="dark"] .hk .hk-legal p, [data-theme="dark"] .hk .hk-legal li { color: #adb5bd; }
[data-theme="dark"] .hk .doc-defs dt { color: #fff; }
[data-theme="dark"] .hk .alert-light { background: #1f2d3d; color: #dee2e6; border-color: #2c3e50 !important; }

/* Bas du pied de page : copyright à gauche, liens légaux à droite */
.hk .footer { padding-bottom: 0; }
.hk-pied-bas { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin-top: 48px; padding: 24px 0; border-top: 1px solid rgba(255, 255, 255, .08); }
.hk-pied-legal { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.hk-pied-legal a:hover { color: #fff !important; }
@media (max-width: 575px) { .hk-pied-bas { flex-direction: column; align-items: flex-start; } }
.hk .hk-puce { opacity: .92; }

/* Garry's Mod : étiquettes blanches sur le dégradé, code aux couleurs du site */
.hk .hk-badge-clair { color: #fff !important; background: rgba(255, 255, 255, .14) !important; border: 1px solid rgba(255, 255, 255, .28); font-weight: 600; }
.hk code { color: #5368f1; }
.hk .title code, .hk h4 code { color: #5368f1; background: rgba(83, 104, 241, .12); padding: 2px 10px; border-radius: 8px; font-size: .9em; }
.hk .hk-code { display: inline-block; margin-top: 8px; padding: 8px 14px; border-radius: 8px; color: #5368f1 !important; background: rgba(83, 104, 241, .12) !important; font-weight: 600; }

/* En-tête entre 992 et 1279 px : menu plus serré pour ne pas chevaucher le logo */
@media (min-width: 992px) and (max-width: 1279px) {
  #topnav .navigation-menu > li > a { padding-left: 9px !important; padding-right: 9px !important; font-size: 13px; }
  #topnav .navigation-menu > li .menu-arrow { right: -2px; }
  #topnav .hk-logo span { font-size: 1.15rem; }
  #topnav .buy-button .d-sm-inline-block { display: none !important; }
}

/* Logo image : bleu par défaut, blanc sur le dégradé du haut de page (en-tête transparent) */
.hk-logo .logo__mark { width: auto !important; height: 40px !important; }
.hk-logo .logo__mark--blanc { display: none; }
#topnav:not(.nav-sticky):not(.bg-white) .hk-logo .logo__mark--bleu { display: none; }
#topnav:not(.nav-sticky):not(.bg-white) .hk-logo .logo__mark--blanc { display: inline; }
#topnav .hk-logo b { color: #5368f1; }
#topnav:not(.nav-sticky):not(.bg-white) .hk-logo b { color: #fff; opacity: .85; }
@media (max-width: 991px) {
  #topnav .hk-logo .logo__mark--bleu { display: inline !important; }
  #topnav .hk-logo .logo__mark--blanc { display: none !important; }
  #topnav .hk-logo b { color: #5368f1 !important; opacity: 1 !important; }
}
.hk-logo--pied .logo__mark { height: 44px !important; }
.hk-logo--pied b { color: #5368f1; }

/* En-tête : libellés du menu sur une seule ligne, boutons plus grands */
#topnav .navigation-menu > li > a { white-space: nowrap; }
#topnav .buy-button .btn { font-size: 15px !important; padding: 9px 20px !important; border-radius: 8px; line-height: 1.4; }
#topnav .buy-button .hk-theme { width: 42px !important; height: 42px !important; padding: 0 !important; }
#topnav .buy-button .hk-theme .mdi { font-size: 22px; }
#topnav .buy-button { display: flex; align-items: center; gap: 4px; }
#topnav .buy-button .list-inline-item { margin: 0 !important; }
@media (min-width: 992px) and (max-width: 1279px) {
  #topnav .buy-button .btn { font-size: 14px !important; padding: 8px 14px !important; }
}
@media (min-width: 992px) and (max-width: 1439px) {
  #topnav .navigation-menu > li > a { padding-left: 10px !important; padding-right: 10px !important; font-size: 13.5px; }
  #topnav .buy-button .btn { font-size: 14px !important; padding: 8px 14px !important; }
  #topnav .buy-button .hk-theme { width: 38px !important; height: 38px !important; }
  #topnav .hk-logo span { font-size: 1.15rem; }
  #topnav .hk-logo .logo__mark { height: 34px !important; }
}
@media (min-width: 992px) and (max-width: 1199px) {
  #topnav .buy-button .d-sm-inline-block { display: none !important; }
  #topnav .navigation-menu > li > a { padding-left: 7px !important; padding-right: 7px !important; font-size: 13px; }
}

/* En-tête ordinateur : trois zones qui ne se chevauchent jamais (logo | menu | boutons) */
@media (min-width: 992px) {
  #topnav > .container { display: flex; align-items: center; gap: 16px; }
  #topnav .hk-logo { order: 0; float: none; flex: none; margin: 0; }
  #topnav #navigation { order: 1; flex: 1 1 auto; display: flex !important; justify-content: center; position: static; min-width: 0; float: none; margin: 0; }
  #topnav .navigation-menu { display: flex; float: none; margin: 0; padding: 0; }
  #topnav .buy-button { order: 2; float: none; flex: none; margin: 0; padding: 0; line-height: normal; }
  #topnav .menu-extras { display: none; }
  /* Flèche des sous-menus dans le lien (et non dans la marge) : espacement régulier entre les éléments */
  #topnav .navigation-menu > li.has-submenu > a { padding-right: 24px !important; }
  #topnav .navigation-menu > li.has-submenu > .menu-arrow { right: 10px !important; }
}
@media (min-width: 1440px) {
  #topnav .navigation-menu > li > a { padding-left: 10px !important; padding-right: 10px !important; font-size: 14px; }
  #topnav .buy-button .btn { font-size: 14.5px !important; padding: 9px 16px !important; }
}

/* Icônes centrées dans leur carré (cartes de services) */
.hk .card.services .icon { display: grid !important; place-items: center; }
.hk .card.services .icon .hk-ico { margin: 0 !important; }
.hk .hk-ico { line-height: 1; }
.hk .hk-ico .mdi::before { display: block; line-height: 1; }

/* Bouton de thème : icône parfaitement centrée */
#topnav .hk-theme { display: inline-flex !important; align-items: center !important; justify-content: center !important; padding: 0 !important; }
#topnav .hk-theme .mdi { margin: 0 !important; width: auto; height: auto; line-height: 1 !important; display: inline-flex; }
#topnav .hk-theme .mdi::before { line-height: 1; }
[data-theme="light"] #topnav .hk-theme .hk-theme__clair, [data-theme="dark"] #topnav .hk-theme .hk-theme__sombre { display: none !important; }

/* Bandeau bleu : liste en blanc dans les deux thèmes */
.hk .hk-puce, .hk .hk-puce .mdi { color: #fff !important; opacity: 1; }


/* Logo Discord : les Material Design Icons 7 n'ont plus les logos de marques. Masque SVG à la couleur du texte. */
.mdi-discord::before { content: "" !important; display: inline-block; width: 1em; height: 1em; vertical-align: -0.125em; background-color: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cpath%20d%3D%22M20.317%204.37a19.79%2019.79%200%200%200-4.885-1.515.074.074%200%200%200-.079.037c-.21.375-.444.865-.608%201.25a18.27%2018.27%200%200%200-5.487%200%2012.64%2012.64%200%200%200-.617-1.25.077.077%200%200%200-.079-.037A19.74%2019.74%200%200%200%203.677%204.37a.07.07%200%200%200-.032.028C.533%209.046-.32%2013.58.099%2018.058a.082.082%200%200%200%20.031.056%2019.9%2019.9%200%200%200%205.993%203.03.078.078%200%200%200%20.084-.028c.462-.63.874-1.295%201.226-1.994a.076.076%200%200%200-.041-.106%2013.1%2013.1%200%200%201-1.872-.892.077.077%200%200%201-.008-.128c.126-.094.252-.192.372-.291a.074.074%200%200%201%20.078-.01c3.928%201.793%208.18%201.793%2012.062%200a.074.074%200%200%201%20.078.009c.12.099.246.198.373.292a.077.077%200%200%201-.006.127%2012.3%2012.3%200%200%201-1.873.892.077.077%200%200%200-.041.107c.36.698.772%201.362%201.225%201.993a.076.076%200%200%200%20.084.028%2019.84%2019.84%200%200%200%206.002-3.03.077.077%200%200%200%20.032-.054c.5-5.177-.838-9.674-3.549-13.66a.061.061%200%200%200-.031-.03zM8.02%2015.33c-1.182%200-2.157-1.085-2.157-2.419%200-1.333.956-2.419%202.157-2.419%201.21%200%202.176%201.096%202.157%202.42%200%201.333-.956%202.418-2.157%202.418zm7.975%200c-1.183%200-2.157-1.085-2.157-2.419%200-1.333.955-2.419%202.157-2.419%201.21%200%202.176%201.096%202.157%202.42%200%201.333-.946%202.418-2.157%202.418z%22/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cpath%20d%3D%22M20.317%204.37a19.79%2019.79%200%200%200-4.885-1.515.074.074%200%200%200-.079.037c-.21.375-.444.865-.608%201.25a18.27%2018.27%200%200%200-5.487%200%2012.64%2012.64%200%200%200-.617-1.25.077.077%200%200%200-.079-.037A19.74%2019.74%200%200%200%203.677%204.37a.07.07%200%200%200-.032.028C.533%209.046-.32%2013.58.099%2018.058a.082.082%200%200%200%20.031.056%2019.9%2019.9%200%200%200%205.993%203.03.078.078%200%200%200%20.084-.028c.462-.63.874-1.295%201.226-1.994a.076.076%200%200%200-.041-.106%2013.1%2013.1%200%200%201-1.872-.892.077.077%200%200%201-.008-.128c.126-.094.252-.192.372-.291a.074.074%200%200%201%20.078-.01c3.928%201.793%208.18%201.793%2012.062%200a.074.074%200%200%201%20.078.009c.12.099.246.198.373.292a.077.077%200%200%201-.006.127%2012.3%2012.3%200%200%201-1.873.892.077.077%200%200%200-.041.107c.36.698.772%201.362%201.225%201.993a.076.076%200%200%200%20.084.028%2019.84%2019.84%200%200%200%206.002-3.03.077.077%200%200%200%20.032-.054c.5-5.177-.838-9.674-3.549-13.66a.061.061%200%200%200-.031-.03zM8.02%2015.33c-1.182%200-2.157-1.085-2.157-2.419%200-1.333.956-2.419%202.157-2.419%201.21%200%202.176%201.096%202.157%202.42%200%201.333-.956%202.418-2.157%202.418zm7.975%200c-1.183%200-2.157-1.085-2.157-2.419%200-1.333.955-2.419%202.157-2.419%201.21%200%202.176%201.096%202.157%202.42%200%201.333-.946%202.418-2.157%202.418z%22/%3E%3C/svg%3E") center / contain no-repeat; }

/* Thème sombre : plus de blocs blancs */
[data-theme="dark"] .hk .list-group-item { background: #253649; color: #dee2e6; border-color: rgba(255, 255, 255, .08); }
[data-theme="dark"] .hk .list-group-item .text-muted { color: #adb5bd !important; }
[data-theme="dark"] .hk .form-select, [data-theme="dark"] .hk .form-control { background-color: #253649; color: #fff; border-color: rgba(255, 255, 255, .12); }
[data-theme="dark"] .hk .input-group-text.bg-white, [data-theme="dark"] .hk .bg-white { background-color: #253649 !important; }
[data-theme="dark"] .hk .doc__copy { background: #2c3e55; color: #dee2e6; border-color: rgba(255, 255, 255, .12); }
[data-theme="dark"] .hk .breadcrumb.bg-white { background: #253649 !important; }

/* Bandeaux d'état : vert et rouge lisibles, en style doux (fond teinté, texte coloré) */
.hk .alert-success { background: rgba(46, 202, 139, .14) !important; color: #11865a !important; border: 1px solid rgba(46, 202, 139, .4) !important; }
.hk .alert-danger { background: rgba(228, 63, 82, .12) !important; color: #c22a3c !important; border: 1px solid rgba(228, 63, 82, .35) !important; }
[data-theme="dark"] .hk .alert-success { color: #4fdba3 !important; }
[data-theme="dark"] .hk .alert-danger { color: #ff7a8a !important; }
.hk .alert-success strong, .hk .alert-danger strong { color: inherit; }

/* En-tête fixe sous le bandeau d'annonce : se recolle en haut dès qu'on défile */
.hk .announce + #topnav.nav-sticky { top: 0; }

/* Thème sombre : textes des cartes et des formulaires lisibles (Bootstrap force #212529) */
[data-theme="dark"] .card { --bs-card-color: #e9ecef; color: #e9ecef; }
[data-theme="dark"] .form-label, [data-theme="dark"] .form-check-label, [data-theme="dark"] .card label { color: #e9ecef; }
[data-theme="dark"] .form-control::placeholder { color: #8492a6; opacity: 1; }

/* Page Partenaires */
.hk .hk-partenaire { display: flex; flex-direction: column; transition: transform .2s ease; }
.hk .hk-partenaire:hover { transform: translateY(-4px); }
.hk .hk-partenaire__logo { height: 110px; display: flex; align-items: center; justify-content: center; }
.hk .hk-partenaire__logo img { max-height: 110px; max-width: 100%; object-fit: contain; }
.hk .hk-partenaires-bande__item { display: flex; align-items: center; justify-content: center; height: 80px; filter: grayscale(1); opacity: .7; transition: filter .2s, opacity .2s; }
.hk .hk-partenaires-bande__item:hover { filter: none; opacity: 1; }
.hk .hk-partenaires-bande__item img { max-height: 70px; max-width: 100%; object-fit: contain; }
/* Pages légales : sommaire et sous-articles */
.hk .hk-legal h2[id] { scroll-margin-top: 90px; }
.hk .hk-legal h3 { font-size: 1.02rem; margin: 1.4rem 0 .5rem; }
.hk .hk-sommaire { margin-bottom: 2rem; padding: 1.1rem 1.4rem; border-radius: 10px; background: rgba(83, 104, 241, .07); border: 1px solid rgba(83, 104, 241, .18); }
.hk .hk-sommaire__titre { font-weight: 600; margin-bottom: .5rem; }
.hk .hk-sommaire ol { columns: 2 240px; column-gap: 2rem; margin: 0; padding-left: 1.3rem; }
.hk .hk-sommaire li { break-inside: avoid; margin-bottom: .2rem; }
.hk .hk-sommaire a { text-decoration: none; }
.hk .hk-sommaire a:hover { text-decoration: underline; }
.hk .hk-docs { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin-bottom: 1.6rem; padding-bottom: 1.2rem; border-bottom: 1px solid rgba(128, 128, 128, .2); }
.hk .hk-docs__titre { font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; opacity: .7; margin-right: .4rem; }
.hk .hk-docs a { padding: .3rem .8rem; border-radius: 999px; border: 1px solid rgba(83, 104, 241, .3); font-size: .9rem; text-decoration: none; }
.hk .hk-docs a.is-active { background: #5368f1; border-color: #5368f1; color: #fff; }
.hk .hk-legal .hk-encart { padding: 1rem 1.3rem; border-left: 3px solid #5368f1; background: rgba(83, 104, 241, .06); border-radius: 0 8px 8px 0; margin: 1rem 0 1.5rem; }
/* Pub d'un partenaire (copiée depuis Discord) */
.hk .hk-pub { line-height: 1.7; overflow-wrap: anywhere; }
.hk .hk-pub h4, .hk .hk-pub h5, .hk .hk-pub h6 { margin: 1.6rem 0 .6rem; }
.hk .hk-pub > :first-child { margin-top: 0; }
.hk .hk-pub ul { padding-left: 1.3rem; margin-bottom: 1rem; }
.hk .hk-pub li { margin-bottom: .25rem; }
.hk .hk-pub blockquote { margin: .8rem 0; padding: .4rem 1rem; border-left: 3px solid #5368f1; border-radius: 0; opacity: .9; }
.hk .hk-pub code { padding: .1em .35em; border-radius: 4px; background: rgba(83, 104, 241, .1); }
.hk .hk-pub .hk-pub__petit { font-size: .85rem; opacity: .7; }
.hk .hk-pub__logo { width: 72px; height: 72px; object-fit: contain; border-radius: 12px; }
.hk .hk-pub .hk-emoji { width: 1.375em; height: 1.375em; object-fit: contain; vertical-align: -.3em; margin: 0 .05em; }
.hk .hk-pub__media { margin: 1rem 0; }
.hk .hk-pub .hk-pub__image { display: block; max-width: min(100%, 480px); height: auto; border-radius: 8px; }
.hk .hk-pub .hk-pub__sous { margin-left: 1.3rem; }
.hk .hk-pub pre { padding: .8rem 1rem; border-radius: 8px; background: rgba(83, 104, 241, .08); white-space: pre-wrap; }
.hk .hk-pub pre code { padding: 0; background: none; }
.hk .hk-pub time { padding: .05em .3em; border-radius: 4px; background: rgba(83, 104, 241, .1); }
.hk .hk-spoiler { padding: 0 .2em; border-radius: 4px; background: currentColor; cursor: pointer; transition: background .2s; }
.hk .hk-spoiler:hover, .hk .hk-spoiler:focus { background: rgba(83, 104, 241, .15); outline: none; }
/* Partenaires sur l'accueil : cartes avec logo en grand */
.hk .hk-partenaire-carte { transition: transform .2s ease; }
.hk .hk-partenaire-carte:hover { transform: translateY(-4px); }
.hk .hk-partenaire-carte__logo { flex: none; display: grid; place-items: center; width: 120px; height: 120px; border-radius: 16px; background: rgba(83, 104, 241, .08); overflow: hidden; font-size: 2.6rem; color: #5368f1; }
.hk .hk-partenaire-carte__logo img { width: 100%; height: 100%; object-fit: contain; }
.hk .hk-partenaire-carte__nom { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.3; overflow-wrap: anywhere; }
.hk .hk-partenaire-carte__desc { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.hk .min-w-0 { min-width: 0; }
@media (max-width: 575px) { .hk .hk-partenaire-carte__logo { width: 88px; height: 88px; } }
.hk .hk-partenaires-accueil { padding-bottom: 120px !important; }

/* Ordinateur : marges du menu réduites pour laisser la place au logo et aux boutons
   (les polices de macOS sont plus larges : le menu débordait sur le logo à 1366 px) */
@media (min-width: 992px) {
  #topnav .navigation-menu > li { margin-left: 0 !important; margin-right: 0 !important; }
  #topnav #navigation { justify-content: safe center !important; }
}
@media (min-width: 992px) and (max-width: 1279px) {
  #topnav .navigation-menu > li.has-submenu > a { padding-right: 20px !important; }
  #topnav .navigation-menu > li.has-submenu > .menu-arrow { right: 7px !important; }
}

/* Page équipe : organigramme (même principe que hmncloud.fr/equipe) */
.organigramme { --trait: rgba(83, 104, 241, .35); --haut: 34px; display: flex; flex-direction: column; align-items: center; padding: 10px 0 20px; }
.org-noeud { position: relative; display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 22px 22px 24px; background: rgba(83, 104, 241, .04); border: 1px solid rgba(83, 104, 241, .18); border-radius: 16px; box-shadow: 0 10px 30px -18px rgba(23, 31, 107, .45); }
.org-noeud--racine { background: linear-gradient(180deg, rgba(83, 104, 241, .12), transparent 65%); }
.org-noeud--racine::after { content: ""; position: absolute; left: 50%; bottom: calc(-1 * var(--haut) - 1px); height: var(--haut); border-left: 2px solid var(--trait); }
.org-pole { display: inline-block; padding: 6px 16px; border-radius: 30px; background: linear-gradient(135deg, #5368f1, #7b5cf5); color: #fff; font-size: .85rem; font-weight: 600; letter-spacing: .02em; box-shadow: 0 10px 22px -12px rgba(83, 104, 241, .9); }
.org-membres { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.org-membre { width: 170px; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 18px 12px 16px; border-radius: 12px; background: rgba(83, 104, 241, .05); border: 1px solid rgba(83, 104, 241, .15); color: inherit; text-decoration: none; transition: transform .2s, box-shadow .2s; }
.org-membre:hover { transform: translateY(-3px); box-shadow: 0 10px 30px -18px rgba(23, 31, 107, .45); color: inherit; }
.org-avatar { width: 64px; height: 64px; margin-bottom: 10px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.35rem; font-weight: 700; color: #fff; background: linear-gradient(135deg, #5368f1, #7b5cf5); }
.org-avatar--vide { background: transparent; color: #5368f1; border: 2px dashed rgba(83, 104, 241, .5); }
.org-membre strong { font-weight: 600; }
.org-membre span { color: #8492a6; font-size: .85rem; line-height: 1.4; margin-top: 2px; }
.org-membre--vous { background: transparent; border-style: dashed; }
.org-branches { list-style: none; margin: var(--haut) 0 0; padding: 0; display: flex; justify-content: center; }
.org-branches > li { position: relative; padding: var(--haut) 14px 0; display: flex; justify-content: center; }
.org-branches > li::before, .org-branches > li::after { content: ""; position: absolute; top: 0; width: 50%; height: var(--haut); border-top: 2px solid var(--trait); }
.org-branches > li::before { right: 50%; }
.org-branches > li::after { left: 50%; border-left: 2px solid var(--trait); }
.org-branches > li:first-child::before, .org-branches > li:last-child::after { border-top: 0; }
.org-branches > li:last-child::before { border-right: 2px solid var(--trait); border-top-right-radius: 12px; right: calc(50% - 2px); }
.org-branches > li:first-child::after { border-top-left-radius: 12px; }
.org-branches > li:only-child::before { display: none; }
.org-branches > li:only-child::after { border-top: 0; border-radius: 0; }
@media (max-width: 760px) {
  .org-branches { flex-direction: column; align-items: center; }
  .org-branches > li { padding: var(--haut) 0 0; }
  .org-branches > li::before { display: none; }
  .org-branches > li::after { left: 50%; width: 0; border-top: 0; border-radius: 0; }
  .org-branches > li:first-child::after { top: calc(-1 * var(--haut)); height: calc(2 * var(--haut)); }
  .org-membre { width: 140px; }
}
.org-avatar--photo { width: 72px; height: 72px; object-fit: cover; background: none; }

/* ---------- Méga-menu « Offres » (includes/header-hostick.php) ---------- */
#topnav .navigation-menu .hk-mega .hk-mega__lien { display: flex; align-items: center; padding: 12px 18px; font-size: .95rem; font-weight: 600; cursor: pointer; color: var(--bs-body-color, #3c4858); border-bottom: 1px solid rgba(128, 138, 160, .18); }
.hk-mega__fleche { margin-left: auto; opacity: .6; }
.hk-mega__titre { margin: 0 0 14px; padding-left: 12px; border-left: 3px solid var(--bs-primary, #2f55d4); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; font-size: .9rem; }
.hk-mega__grille { display: grid; gap: 0 28px; }
.hk-mega__gamme { display: block; padding: 12px 0; border-bottom: 1px solid rgba(128, 138, 160, .22); text-decoration: none; }
.hk-mega__nom { display: flex; align-items: center; gap: 10px; font-weight: 700; text-transform: uppercase; font-size: .82rem; letter-spacing: .02em; color: var(--bs-body-color, #161c2d); }
.hk-mega__nom .mdi { font-size: 1.15rem; color: var(--bs-primary, #2f55d4); }
.hk-mega__gamme small { display: block; margin-top: 3px; color: #8492a6; font-size: .85rem; }
.hk-mega__gamme:hover .hk-mega__nom { color: var(--bs-primary, #2f55d4); }
.hk-mega__pied .sub-menu-item { font-size: .9rem; }
[data-theme="dark"] .hk-mega__nom, [data-theme="dark"] #topnav .navigation-menu .hk-mega .hk-mega__lien { color: #e9edf4; }
@media (min-width: 992px) {
  #topnav .navigation-menu > li .submenu.hk-mega { width: 920px; min-height: 290px; padding: 18px 0; left: 0; }
  #topnav .navigation-menu .hk-mega > li.hk-mega__cat { width: 290px; position: static; }
  .hk-mega__panneau { display: none; position: absolute; top: 0; bottom: 0; left: 290px; right: 0; padding: 18px 24px 18px 30px; }
  .hk-mega__grille { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* La catégorie survolée en dernier reste affichée (classe is-actif posée par tdpnet.js) : le panneau ne disparaît pas
     quand le curseur passe de la catégorie à ses gammes ; sans JavaScript, le survol suffit. */
  .hk-mega > .hk-mega__cat.is-actif > .hk-mega__panneau, .hk-mega > .hk-mega__cat:focus-within > .hk-mega__panneau { display: block; }
  .hk-mega > .hk-mega__cat.is-actif > .hk-mega__lien { color: var(--bs-primary, #2f55d4); }
  .hk-mega__pied { width: 290px; padding-top: 6px; }
}
@media (max-width: 991.98px) {
  .hk-mega__fleche, .hk-mega__titre { display: none; }
  #topnav .navigation-menu .hk-mega .hk-mega__lien { padding: 10px 15px 4px; border: 0; text-transform: uppercase; font-size: .78rem; opacity: .7; }
  .hk-mega__panneau { padding: 0 15px 8px 30px; }
  .hk-mega__gamme { padding: 8px 0; }
  .hk-mega__nom { font-size: .78rem; }
}
#topnav .navigation-menu .hk-mega .hk-mega__gamme, #topnav .navigation-menu .hk-mega .hk-mega__gamme * { white-space: normal; }
#topnav .navigation-menu .hk-mega .hk-mega__gamme small { text-transform: none; letter-spacing: 0; font-weight: 400; }
@media (max-width: 991.98px) {
  #topnav .navigation-menu .hk-mega > li.hk-mega__cat:not(.is-ouvert) > .hk-mega__panneau { display: none; }
  #topnav .navigation-menu .hk-mega .hk-mega__fleche { display: inline-block; transition: transform .15s; }
  #topnav .navigation-menu .hk-mega > li.is-ouvert .hk-mega__fleche { transform: rotate(90deg); }
}
@media (min-width: 992px) {
  #topnav .navigation-menu > li.hk-mega-ouvert > .submenu.hk-mega { visibility: visible; opacity: 1; margin-top: 0; }
  #topnav .navigation-menu > li > .submenu.hk-mega::after { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; } /* zone tampon sous « Offres » (::before = flèche du thème) */
}
@media (min-width: 992px) {
  #topnav .navigation-menu > li:focus-within > .submenu.hk-mega { visibility: visible; opacity: 1; margin-top: 0; } /* navigation au clavier */
}
@media (min-width: 992px) {
  #topnav .navigation-menu .hk-mega:focus-within > .hk-mega__cat:not(:focus-within) > .hk-mega__panneau { display: none; } /* un seul panneau à la fois au clavier */
}

/* Méga-menu : animations (catégories, panneau, cartes de gamme, ouverture) ; coupées si prefers-reduced-motion */
#topnav .navigation-menu .hk-mega .hk-mega__lien { position: relative; transition: background-color .18s ease, color .18s ease; border-radius: 6px; }
#topnav .navigation-menu .hk-mega .hk-mega__lien::before { content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 3px; border-radius: 3px; background: var(--bs-primary, #2f55d4); transform: scaleY(0); transition: transform .18s ease; }
#topnav .navigation-menu .hk-mega .hk-mega__lien > .mdi:first-child { transition: color .18s ease; }
.hk-mega__fleche { transition: transform .18s ease, opacity .18s ease; }
.hk-mega__gamme { position: relative; transition: background-color .18s ease, box-shadow .18s ease; border-radius: 6px; }
.hk-mega__nom, .hk-mega__nom .mdi { transition: color .18s ease, transform .18s ease; }
@media (min-width: 992px) {
  #topnav .navigation-menu > li > .submenu.hk-mega { transform: translateY(8px); transition: opacity .2s ease, transform .2s ease, visibility .2s; }
  #topnav .navigation-menu > li.has-submenu:hover > .submenu.hk-mega, #topnav .navigation-menu > li.hk-mega-ouvert > .submenu.hk-mega,
  #topnav .navigation-menu > li:focus-within > .submenu.hk-mega { transform: none; }
  #topnav .navigation-menu .hk-mega > li.hk-mega__cat > .hk-mega__lien:hover,
  #topnav .navigation-menu .hk-mega > li.hk-mega__cat.is-actif > .hk-mega__lien { background-color: rgba(47, 85, 212, .1); color: var(--bs-primary, #2f55d4); }
  #topnav .navigation-menu .hk-mega > li.hk-mega__cat > .hk-mega__lien:hover::before,
  #topnav .navigation-menu .hk-mega > li.hk-mega__cat.is-actif > .hk-mega__lien::before { transform: scaleY(1); }
  #topnav .navigation-menu .hk-mega > li.hk-mega__cat > .hk-mega__lien:hover > .mdi:first-child,
  #topnav .navigation-menu .hk-mega > li.hk-mega__cat.is-actif > .hk-mega__lien > .mdi:first-child { color: var(--bs-primary, #2f55d4); }
  .hk-mega > .hk-mega__cat.is-actif .hk-mega__fleche, .hk-mega > .hk-mega__cat > .hk-mega__lien:hover .hk-mega__fleche { transform: translateX(4px); opacity: 1; }
  .hk-mega > .hk-mega__cat.is-actif > .hk-mega__panneau, .hk-mega > .hk-mega__cat:focus-within > .hk-mega__panneau { animation: hk-mega-entree .2s ease both; }
  .hk-mega > .hk-mega__cat.is-actif .hk-mega__gamme, .hk-mega > .hk-mega__cat:focus-within .hk-mega__gamme { animation: hk-mega-entree .2s ease both; }
  .hk-mega__gamme:nth-child(2) { animation-delay: 40ms !important; } .hk-mega__gamme:nth-child(3) { animation-delay: 80ms !important; } .hk-mega__gamme:nth-child(4) { animation-delay: 120ms !important; }
  .hk-mega__gamme:hover, .hk-mega__gamme:focus-visible { background-color: rgba(47, 85, 212, .07); box-shadow: inset 3px 0 0 var(--bs-primary, #2f55d4); padding-left: 10px; padding-right: 10px; }
  .hk-mega__gamme:hover .hk-mega__nom, .hk-mega__gamme:focus-visible .hk-mega__nom { color: var(--bs-primary, #2f55d4); }
  .hk-mega__gamme:hover .hk-mega__nom .mdi, .hk-mega__gamme:focus-visible .hk-mega__nom .mdi { transform: translateY(-2px); }
}
@keyframes hk-mega-entree { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  #topnav .navigation-menu .hk-mega *, #topnav .navigation-menu .hk-mega *::before, #topnav .navigation-menu > li > .submenu.hk-mega { transition: none !important; animation: none !important; transform: none !important; }
}

/* Méga-menu : libellé, badge « Bientôt » et flèche alignés sur une ligne */
#topnav .navigation-menu .hk-mega .hk-mega__lien { gap: 10px; }
.hk-mega__lien > .mdi:first-child { flex: 0 0 auto; font-size: 1.05rem; }
.hk-mega__lib { white-space: nowrap; }
#topnav .navigation-menu .hk-mega .hk-mega__lien { gap: 8px; }
#topnav .navigation-menu .hk-mega .hk-mega__bientot { flex: 0 0 auto; display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: .02em; line-height: 1.4; text-transform: none; background: rgba(245, 158, 11, .16); color: #d97706; }
[data-theme="dark"] #topnav .navigation-menu .hk-mega .hk-mega__bientot { color: #fbbf24; background: rgba(251, 191, 36, .15); }
.hk-mega__nom { flex-wrap: wrap; row-gap: 4px; }
.hk-mega__nom .hk-mega__bientot { margin-left: 0; }
#topnav .navigation-menu .hk-mega .hk-mega__lien .hk-mega__fleche { margin-left: auto; }
@media (max-width: 991.98px) { #topnav .navigation-menu .hk-mega .hk-mega__lien { display: flex; align-items: center; } }
@media (min-width: 992px) { .hk-mega__grille > .hk-mega__gamme:only-child { grid-column: 1 / -1; } }
.hk-mega__nom { flex-wrap: nowrap; }
.hk-mega__nom > span:not(.hk-mega__bientot) { min-width: 0; }
