/* =========================================================================
   GTFR — Menu et pied de page unifiés (design « Futur ») v1.0.1
   Marquage produit par gtfr-unifie.php, identique sur tous les gabarits
   (GTFR et Astra). Tout est scopé sous html.gt-futur.

   !important : uniquement contre les règles globales du « CSS additionnel »
   (style#wp-custom-css), toutes en !important :
     - p, li, span, div { color:… !important }                  (0,0,1)
     - body, p, li { font-family:'DM Sans' !important }          (0,0,1)
     - a:not(.btn-p)…:not([class*="btn"]) { color:#1A6EF7 !important } (0,6,1)
     - a:hover { color:#E8EDF5 !important }                      (0,1,1)
   Le :not(#gt-boost) (ID fictif, jamais présent) donne un poids d'ID
   pour passer devant, et seulement sur nos propres éléments .gtu-*.
   ========================================================================= */

/* ---------- Masquage des anciens en-tête / pied Astra --------------------
   Seulement quand notre bloc a bien été inséré juste avant eux. */
html.gt-futur .gtu-header + #masthead,
html.gt-futur .gtu-footer + #colophon{display:none!important}

/* ============================== EN-TÊTE ================================= */
html.gt-futur .gtu-header{
  position:sticky;top:0;z-index:9990;
  width:100%;margin:0;padding:0;box-sizing:border-box;
  background:rgba(5,8,15,.86);
  -webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);
  border-bottom:1px solid rgba(120,150,255,.1);
  font-family:'DM Sans',system-ui,sans-serif;line-height:1.2;
}
html.gt-futur body.admin-bar .gtu-header{top:32px}
@media (max-width:782px){html.gt-futur body.admin-bar .gtu-header{top:46px}}
html.gt-futur .gtu-header *,html.gt-futur .gtu-footer *{box-sizing:border-box}

html.gt-futur .gtu-in{
  max-width:1240px;margin:0 auto;padding:14px 28px;
  display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px 24px;
}

/* Marque (logo + nom) — partagée en-tête / pied */
html.gt-futur .gtu-brand{display:inline-flex;align-items:center;gap:12px;flex:0 0 auto;text-decoration:none;border:0}
html.gt-futur .gtu-logo{display:block;flex:0 0 auto;border-radius:50%;background:#05080f;box-shadow:0 0 18px rgba(61,123,250,.45);max-width:none}
html.gt-futur .gtu-mark{
  display:inline-grid;place-items:center;flex:0 0 auto;width:36px;height:36px;border-radius:10px;
  background:linear-gradient(135deg,#3d7bfa,#9b7bff);box-shadow:0 0 24px rgba(61,123,250,.5);
  font:800 14px/1 'Syne',sans-serif;
}
html.gt-futur:not(#gt-boost) .gtu-mark{color:#fff!important}
html.gt-futur .gtu-name{font-family:'Syne',sans-serif;font-weight:800;font-size:19px;letter-spacing:.02em;white-space:nowrap}
html.gt-futur:not(#gt-boost) .gtu-name{color:#e8ecf5!important}
html.gt-futur .gtu-name b{font-weight:800;color:#7ea6ff}

/* Liste de pilules — tous les liens au style du bouton « Commencer » */
html.gt-futur .gtu-menu{display:block;margin:0;padding:0}
html.gt-futur .gtu-list{display:flex;flex-wrap:wrap;align-items:center;gap:8px;list-style:none;margin:0;padding:0}
html.gt-futur .gtu-list li{margin:0;padding:0;list-style:none;background:none;border:0}
html.gt-futur .gtu-list li::before,html.gt-futur .gtu-list li::marker{content:none}
html.gt-futur .gtu-btn{
  display:inline-block;padding:10px 18px;border-radius:999px;white-space:nowrap;
  background:#3d7bfa;font-weight:600;font-size:14px;line-height:1.2;letter-spacing:0;text-decoration:none;border:0;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.15),0 8px 30px rgba(61,123,250,.45);
  transition:background .2s,box-shadow .2s;
}
html.gt-futur:not(#gt-boost) .gtu-btn,
html.gt-futur:not(#gt-boost) .gtu-btn:hover,
html.gt-futur:not(#gt-boost) .gtu-btn:focus,
html.gt-futur:not(#gt-boost) .gtu-btn:visited{color:#fff!important}
html.gt-futur .gtu-btn:hover,html.gt-futur .gtu-btn:focus-visible{background:#5a8fff}
html.gt-futur .gtu-btn[aria-current="page"]{box-shadow:inset 0 0 0 2px rgba(255,255,255,.6),0 8px 30px rgba(61,123,250,.55)}
html.gt-futur .gtu-btn:focus-visible{outline:2px solid #b39cff;outline-offset:3px}

/* Bouton burger (mobile) — case à cocher, aucun JavaScript */
html.gt-futur .gtu-toggle{position:absolute;width:1px;height:1px;margin:-1px;padding:0;border:0;overflow:hidden;clip:rect(0 0 0 0);opacity:0}
html.gt-futur .gtu-burger{display:none}

/* ============================ PIED DE PAGE ============================== */
html.gt-futur .gtu-footer{
  position:relative;z-index:1;width:100%;margin:0;padding:0;
  background:transparent;border-top:1px solid rgba(120,150,255,.1);
  font-family:'DM Sans',system-ui,sans-serif;font-size:14px;line-height:1.6;
}
html.gt-futur .gtu-f-in{
  max-width:1240px;margin:0 auto;padding:48px 28px 32px;
  display:grid;grid-template-columns:1.5fr repeat(4,minmax(0,1fr));gap:32px;
}
html.gt-futur .gtu-f-brand .gtu-name{font-size:18px}
html.gt-futur .gtu-f-desc{margin:14px 0 0;max-width:320px;font-size:14px;line-height:1.7}
html.gt-futur .gtu-f-h{
  margin:0 0 14px;font-family:'JetBrains Mono',ui-monospace,monospace;font-weight:500;font-size:12px;
  letter-spacing:.16em;text-transform:uppercase;
}
html.gt-futur .gtu-f-col ul,html.gt-futur .gtu-f-legal ul{list-style:none;margin:0;padding:0}
html.gt-futur .gtu-f-col li,html.gt-futur .gtu-f-legal li{margin:0;padding:0;list-style:none}
html.gt-futur .gtu-f-col li + li{margin-top:9px}
html.gt-futur .gtu-footer a{text-decoration:none;border:0;transition:color .2s}
html.gt-futur .gtu-f-legal{max-width:1240px;margin:0 auto;padding:18px 28px;border-top:1px solid rgba(120,150,255,.08)}
html.gt-futur .gtu-f-legal ul{display:flex;flex-wrap:wrap;gap:8px 22px}
html.gt-futur .gtu-f-legal a{font-size:13px}
html.gt-futur .gtu-f-bottom{
  max-width:1240px;margin:0 auto;padding:24px 28px 36px;border-top:1px solid rgba(120,150,255,.08);
  display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:16px 24px;font-size:13px;
}
html.gt-futur .gtu-f-copy{display:flex;align-items:center;gap:10px}
html.gt-futur .gtu-f-copy .gtu-logo{box-shadow:0 0 10px rgba(61,123,250,.35)}
html.gt-futur .gtu-f-copy .gtu-mark{width:26px;height:26px;border-radius:8px;font-size:10px}
html.gt-futur .gtu-f-risk{margin:0;max-width:640px;font-size:13px;line-height:1.6}

/* Couleurs (contre le CSS additionnel global en !important) */
html.gt-futur:not(#gt-boost) .gtu-footer p,
html.gt-futur:not(#gt-boost) .gtu-footer li,
html.gt-futur:not(#gt-boost) .gtu-footer div,
html.gt-futur:not(#gt-boost) .gtu-footer .gtu-f-copy span{color:#6b7690!important}
html.gt-futur:not(#gt-boost) .gtu-footer .gtu-f-h{color:#7ea6ff!important}
html.gt-futur:not(#gt-boost) .gtu-footer .gtu-name{color:#e8ecf5!important}
html.gt-futur:not(#gt-boost) .gtu-footer a{color:#7ea6ff!important}
html.gt-futur:not(#gt-boost) .gtu-footer a:hover,
html.gt-futur:not(#gt-boost) .gtu-footer a:focus-visible{color:#b39cff!important}
html.gt-futur .gtu-footer a:focus-visible,html.gt-futur .gtu-brand:focus-visible{outline:2px solid #b39cff;outline-offset:3px;border-radius:4px}

/* ============================== RESPONSIVE ============================== */
/* ≤ 1100 px : les pilules passent sur leur propre rangée sous le logo */
@media (max-width:1100px){
  html.gt-futur .gtu-menu{flex:0 0 100%}
}
@media (max-width:1024px){
  html.gt-futur .gtu-f-in{grid-template-columns:repeat(2,minmax(0,1fr))}
  html.gt-futur .gtu-f-brand{grid-column:1 / -1}
  html.gt-futur .gtu-f-desc{max-width:520px}
}
/* ≤ 768 px : menu burger (case à cocher), pilules empilées pleine largeur */
@media (max-width:768px){
  html.gt-futur .gtu-in{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;padding:10px 16px;gap:0 12px}
  html.gt-futur .gtu-brand{min-width:0}
  html.gt-futur .gtu-menu{grid-column:1 / -1}
  html.gt-futur .gtu-logo{width:38px;height:38px}
  html.gt-futur .gtu-name{font-size:18px}
  html.gt-futur .gtu-burger{
    display:inline-flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;
    width:44px;height:44px;margin:0;border:1px solid rgba(120,150,255,.28);border-radius:12px;
    background:rgba(12,17,32,.6);cursor:pointer;-webkit-tap-highlight-color:transparent;
  }
  html.gt-futur .gtu-burger span{display:block;width:18px;height:2px;border-radius:2px;background:#e8ecf5;transition:transform .2s,opacity .2s}
  html.gt-futur .gtu-toggle:checked + .gtu-burger span:nth-child(1){transform:translateY(7px) rotate(45deg)}
  html.gt-futur .gtu-toggle:checked + .gtu-burger span:nth-child(2){opacity:0}
  html.gt-futur .gtu-toggle:checked + .gtu-burger span:nth-child(3){transform:translateY(-7px) rotate(-45deg)}
  html.gt-futur .gtu-toggle:focus-visible + .gtu-burger{outline:2px solid #b39cff;outline-offset:2px}
  html.gt-futur .gtu-menu{display:none}
  html.gt-futur .gtu-toggle:checked ~ .gtu-menu{display:block;max-height:calc(100vh - 80px);overflow-y:auto}
  html.gt-futur .gtu-list{flex-direction:column;align-items:stretch;gap:8px;padding:14px 0 8px}
  html.gt-futur .gtu-btn{display:block;text-align:center;padding:12px 18px;font-size:15px}

  html.gt-futur .gtu-f-in{padding:40px 16px 24px;gap:28px 20px}
  html.gt-futur .gtu-f-legal{padding:16px}
  html.gt-futur .gtu-f-bottom{padding:20px 16px 32px}
}
@media (max-width:400px){
  html.gt-futur .gtu-name{font-size:16px;letter-spacing:.01em}
  html.gt-futur .gtu-brand{gap:10px}
}
@media (max-width:340px){
  html.gt-futur .gtu-f-in{grid-template-columns:1fr}
}
@media (prefers-reduced-motion:reduce){
  html.gt-futur .gtu-header *,html.gt-futur .gtu-footer *{transition:none!important}
}
