/* =====================================================================
   NDO UI 1.0 — socle commun
   Les variables --ndo-* sont définies sur :root : elles traversent aussi
   le Shadow DOM d'Explorer, qui s'aligne dessus.
   ===================================================================== */
:root{
  --ndo-font:"Barlow Condensed",Arial,sans-serif;

  --ndo-navy:#071A46;
  --ndo-navy-2:#0B2C6B;
  --ndo-blue:#0879E8;
  --ndo-cyan:#35D3FF;
  --ndo-pink:#F61A83;
  --ndo-orange:#F4692B;
  --ndo-teal:#06A6A8;
  --ndo-violet:#6331E6;
  --ndo-green:#08A85A;
  --ndo-ink:#142349;
  --ndo-muted:#6B7793;
  --ndo-line:#E4EAF3;
  --ndo-soft:#F5F7FB;

  --ndo-hero-photo:url("https://nuitdelorientation18.fr/wp-content/uploads/2026/10/IMG_5322.jpg");
  --ndo-hero-bg:
    linear-gradient(180deg,rgba(7,26,70,.74),rgba(7,26,70,.94)),
    var(--ndo-hero-photo) center/cover no-repeat;

  /* Échelle typographique commune (Barlow Condensed demande des tailles généreuses) */
  --ndo-fs-hero:clamp(36px,3.5vw,54px);
  --ndo-fs-hero-copy:18px;
  --ndo-fs-kicker:15px;
  --ndo-fs-h3:26px;
  --ndo-fs-card-title:18px;
  --ndo-fs-body:15px;
  --ndo-fs-small:13px;
  --ndo-fs-chip:13px;

  --ndo-radius-card:18px;
  --ndo-radius-chip:999px;
  --ndo-shadow:0 18px 50px -28px rgba(6,26,75,.38);

}
/* Hauteurs : header, tab bar et décalage total utilisé par tous les éléments sticky.
   Déclarées sur body pour que les variantes (sans header, mobile) recalculent --ndo-top. */
body{
  --ndo-header-h:0px;
  --ndo-tabbar-h:0px;
  --ndo-adminbar-h:var(--wp-admin--admin-bar--height,0px);
  --ndo-top:calc(var(--ndo-header-h) + var(--ndo-adminbar-h));
  --ndo-bottom:calc(var(--ndo-tabbar-h) + env(safe-area-inset-bottom,0px));
}
body.ndo-ui--header{--ndo-header-h:76px}
@media (max-width:900px){
  :root{--ndo-fs-hero-copy:15px;--ndo-fs-h3:24px}
  body.ndo-ui--header{--ndo-header-h:58px}
  body.ndo-ui--tabbar{--ndo-tabbar-h:62px}
}
@media (max-width:600px){
  /* WordPress ne fixe plus la barre d'admin sous 600px */
  body{--ndo-adminbar-h:0px}
}

/* ---------------------------------------------------------------------
   Ancien header Elementor / ancienne tab bar : masqués quand le code prend le relais
   --------------------------------------------------------------------- */
body.ndo-ui--header .elementor-location-header,
body.ndo-ui--header .ekit-template-content-header,
body.ndo-ui--header #site-header,
body.ndo-ui--header #masthead{display:none!important}
body.ndo-ui--tabbar #ndoMobileNavHostV9{display:none!important}

/* Le contenu ne passe plus sous la tab bar */
body.ndo-ui--tabbar{padding-bottom:var(--ndo-bottom)!important}

/* ---------------------------------------------------------------------
   Header
   --------------------------------------------------------------------- */
.ndo-header{
  position:sticky;
  top:var(--ndo-adminbar-h);
  z-index:9990;
  height:var(--ndo-header-h);
  background:rgba(255,255,255,.97);
  backdrop-filter:blur(12px);
  -webkit-backdrop-filter:blur(12px);
  border-bottom:1px solid var(--ndo-line);
  font-family:var(--ndo-font);
}
.ndo-header *{box-sizing:border-box}
.ndo-header__inner{
  height:100%;
  max-width:1440px;
  margin:0 auto;
  padding:0 clamp(16px,3vw,40px);
  display:flex;
  align-items:center;
  gap:24px;
}
.ndo-header__logo{display:block;flex:0 0 auto;line-height:0}
.ndo-header__logo img{display:block;height:52px;width:auto;max-width:none}
.ndo-header__nav{display:flex;align-items:center;gap:clamp(14px,2.2vw,34px);margin-left:auto}
.ndo-header a{text-decoration:none!important;box-shadow:none!important}
.ndo-header__link{
  position:relative;
  padding:8px 0;
  color:var(--ndo-navy)!important;
  font-size:20px;
  font-weight:700;
  letter-spacing:.01em;
  text-transform:uppercase;
  white-space:nowrap;
  transition:color .15s ease;
}
.ndo-header__link::after{
  content:"";
  position:absolute;
  left:0;right:0;bottom:0;
  height:3px;
  border-radius:3px;
  background:var(--ndo-pink);
  transform:scaleX(0);
  transition:transform .2s ease;
}
.ndo-header__link:hover{color:var(--ndo-pink)!important}
.ndo-header__link.is-active{color:var(--ndo-pink)!important}
.ndo-header__link.is-active::after{transform:scaleX(1)}

.ndo-header__actions{display:flex;align-items:center;gap:10px;flex:0 0 auto}
.ndo-parcours-btn,
.ndo-header__contact{
  display:inline-flex;
  align-items:center;
  gap:8px;
  height:46px;
  padding:0 16px;
  border-radius:14px;
  font-size:17px;
  font-weight:800;
  text-transform:uppercase;
  white-space:nowrap;
  transition:transform .15s ease,background .15s ease,border-color .15s ease;
}
.ndo-parcours-btn{
  position:relative;
  border:1px solid var(--ndo-line);
  background:#fff;
  color:var(--ndo-navy)!important;
}
.ndo-parcours-btn:hover{border-color:var(--ndo-pink)}
.ndo-parcours-btn svg,.ndo-header__contact svg{
  width:20px;height:20px;flex:0 0 20px;
  fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;
}
.ndo-parcours-btn svg{color:var(--ndo-pink)}
.ndo-parcours-btn.has-favs svg{fill:var(--ndo-pink)}
.ndo-count{
  min-width:22px;height:22px;
  padding:0 6px;
  display:inline-grid;
  place-items:center;
  border-radius:999px;
  background:#EEF2F8;
  color:var(--ndo-muted);
  font-size:13px;
  font-weight:900;
  line-height:1;
}
.ndo-parcours-btn.has-favs .ndo-count{background:var(--ndo-pink);color:#fff}
.ndo-parcours-btn.is-bump .ndo-count{animation:ndoBump .45s ease}
@keyframes ndoBump{0%{transform:scale(1)}40%{transform:scale(1.35)}100%{transform:scale(1)}}

.ndo-header__contact{
  border:0;
  background:var(--ndo-blue);
  color:#fff!important;
  box-shadow:0 10px 22px -12px rgba(8,121,232,.8)!important;
}
.ndo-header__contact:hover{transform:translateY(-1px);background:#0567C9}

@media (max-width:1180px){
  .ndo-parcours-btn__label{display:none}
  .ndo-header__link{font-size:18px}
}
@media (max-width:900px){
  .ndo-header__inner{gap:10px;padding:0 16px}
  .ndo-header__nav{display:none}
  .ndo-header__logo img{height:38px}
  .ndo-header__actions{margin-left:auto;gap:8px}
  .ndo-parcours-btn,.ndo-header__contact{height:40px;padding:0 11px;border-radius:12px;font-size:15px}
  .ndo-header__contact span{display:none}
  .ndo-count{min-width:20px;height:20px;font-size:12px}
}

/* ---------------------------------------------------------------------
   Tab bar mobile
   --------------------------------------------------------------------- */
.ndo-tabbar{display:none}
@media (max-width:900px){
  .ndo-tabbar{
    position:fixed;
    left:0;right:0;bottom:0;
    z-index:9995;
    display:grid;
    grid-template-columns:repeat(5,minmax(0,1fr));
    height:calc(var(--ndo-tabbar-h) + env(safe-area-inset-bottom,0px));
    padding:0 4px env(safe-area-inset-bottom,0px);
    background:rgba(255,255,255,.98);
    border-top:1px solid var(--ndo-line);
    box-shadow:0 -6px 20px rgba(7,26,70,.08);
    font-family:var(--ndo-font);
  }
  .ndo-tabbar a.ndo-tabbar__tab,
  .ndo-tabbar a.ndo-tabbar__tab:visited,
  .ndo-tabbar a.ndo-tabbar__tab:hover,
  .ndo-tabbar a.ndo-tabbar__tab:focus{
    position:relative;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:3px;
    height:var(--ndo-tabbar-h);
    padding:0;
    margin:0;
    border:0;
    background:transparent;
    box-shadow:none;
    color:var(--ndo-muted);
    text-decoration:none;
    -webkit-tap-highlight-color:transparent;
  }
  .ndo-tabbar a.ndo-tabbar__tab::before{
    content:"";
    position:absolute;
    top:-1px;left:50%;
    width:28px;height:3px;
    border-radius:0 0 4px 4px;
    background:var(--ndo-pink);
    transform:translateX(-50%) scaleX(0);
    transition:transform .2s ease;
  }
  .ndo-tabbar a.ndo-tabbar__tab.is-active{color:var(--ndo-navy)}
  .ndo-tabbar a.ndo-tabbar__tab.is-active::before{transform:translateX(-50%) scaleX(1)}
  .ndo-tabbar a.ndo-tabbar__tab:focus-visible{outline:2px solid var(--ndo-pink);outline-offset:-4px;border-radius:10px}
  .ndo-tabbar__icon{display:block;width:24px;height:24px}
  .ndo-tabbar__icon svg{display:block;width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
  .ndo-tabbar a.is-active .ndo-tabbar__icon svg{stroke-width:2.4}
  .ndo-tabbar__label{font-size:13px;line-height:1;font-weight:700;letter-spacing:.02em;text-transform:uppercase;white-space:nowrap}
  .ndo-tabbar a.is-active .ndo-tabbar__label{font-weight:900}
}
@media (max-width:360px){.ndo-tabbar__label{font-size:12px}}

/* ---------------------------------------------------------------------
   Bouton cookies : plus discret, jamais sur la tab bar
   (sélecteurs des principaux plugins : CookieYes, Complianz, Cookie Notice,
   Axeptio, tarteaucitron, Real Cookie Banner, Moove GDPR)
   --------------------------------------------------------------------- */
.cky-btn-revisit-wrapper,
#cmplz-manage-consent .cmplz-manage-consent,
#tarteaucitronIcon,
#axeptio_main_button,
.cn-revoke-cookie.cn-revoke-inline,
.rcb-revisit,
#moove_gdpr_save_popup_settings_button{
  transform:scale(.78)!important;
  transform-origin:left bottom!important;
}
@media (max-width:900px){
  .cky-btn-revisit-wrapper,
  #cmplz-manage-consent .cmplz-manage-consent,
  #tarteaucitronIcon,
  #axeptio_main_button,
  .rcb-revisit,
  #moove_gdpr_save_popup_settings_button{
    bottom:calc(var(--ndo-bottom) + 10px)!important;
    left:auto!important;
    right:10px!important;
    transform-origin:right bottom!important;
  }
}

/* ---------------------------------------------------------------------
   Briques réutilisables dans Elementor (classes CSS à ajouter aux widgets)
   .ndo-kicker      → sur-titre « PRATIQUE » avec trait cyan
   .ndo-hero-title  → titre de bandeau ; mettre la partie colorée dans <span>
   .ndo-hero-copy   → chapô
   --------------------------------------------------------------------- */
.ndo-kicker,
.ndo-kicker .elementor-heading-title{
  display:flex;align-items:center;gap:10px;
  margin:0 0 14px;
  color:var(--ndo-cyan)!important;
  font-family:var(--ndo-font)!important;
  font-size:var(--ndo-fs-kicker)!important;
  font-weight:900!important;
  letter-spacing:.14em!important;
  text-transform:uppercase!important;
  line-height:1!important;
}
.ndo-kicker::before{content:"";flex:0 0 38px;height:4px;border-radius:999px;background:currentColor}
.ndo-hero-title,
.ndo-hero-title .elementor-heading-title{
  margin:0;
  font-family:var(--ndo-font)!important;
  font-size:var(--ndo-fs-hero)!important;
  font-weight:900!important;
  line-height:.9!important;
  letter-spacing:-.025em!important;
  text-transform:uppercase!important;
}
.ndo-hero-title span{color:var(--ndo-cyan)}
.ndo-hero-copy,
.ndo-hero-copy p{font-family:var(--ndo-font);font-size:var(--ndo-fs-hero-copy);line-height:1.3}