
/* Technical site-master layer: common navigation/footer and mobile menu only. */
.master-header .master-menu-toggle{display:none;border:0;background:transparent;color:#082F5B;font-size:1.8rem;line-height:1;cursor:pointer;padding:.35rem .45rem}
.master-header nav a[aria-current="page"],.master-header nav a.active{color:#082F5B;font-weight:700}
.master-footer{background:#082F5B;color:#fff;padding:42px 0 28px;margin:0;font-family:'Manrope',Arial,sans-serif}
.master-footer .master-footer-grid{display:grid;grid-template-columns:1.25fr 1fr 1fr;gap:42px}
.master-footer strong{display:block;color:#fff;margin-bottom:10px}
.master-footer p{margin:0;color:#b9cad3;font-size:.9rem;line-height:1.55}
.master-footer a{display:block;color:#d9e6ec;text-decoration:none;font-size:.9rem;margin:.36rem 0}
.master-footer a:hover{text-decoration:underline}
.master-footer .master-copyright{border-top:1px solid rgba(255,255,255,.18);margin-top:28px;padding-top:18px;color:#9eb2bd;font-size:.78rem}
@media(max-width:900px){
  .master-header .nav{position:relative}
  .master-header .master-menu-toggle{display:inline-flex;align-items:center;justify-content:center;margin-left:auto}
  .master-header .master-contact{display:none!important}
  .master-header .master-nav{display:none!important;position:absolute;top:76px;left:0;right:0;z-index:1000;background:#FAF7F3;border:1px solid rgba(8,47,91,.10);box-shadow:0 18px 40px rgba(8,47,91,.12);padding:12px 16px 16px;flex-direction:column!important;align-items:stretch!important;gap:0!important}
  .master-header .master-nav.master-open{display:flex!important}
  .master-header .master-nav a{display:block;width:100%;padding:.78rem .25rem;border-bottom:1px solid rgba(8,47,91,.08)}
  .master-header .master-nav a:last-child{border-bottom:0}
  .master-header .master-nav .master-mobile-contact{margin-top:10px;background:#082F5B;color:#fff!important;border-radius:8px;padding:.82rem 1rem;text-align:center;border-bottom:0}
  .master-footer .master-footer-grid{grid-template-columns:1fr;gap:26px}
}


/* =========================================================
   ERGONOMIE MOBILE CONSOLIDÉE
   Couche commune uniquement : aucun contenu éditorial modifié.
   ========================================================= */
html{
  -webkit-text-size-adjust:100%;
  text-size-adjust:100%;
  scroll-behavior:smooth;
  overflow-x:hidden;
}
body{overflow-x:hidden}
*,*::before,*::after{box-sizing:border-box}
img,svg,video,iframe{max-width:100%}
img{height:auto}
[id]{scroll-margin-top:96px}

.master-menu-toggle,button,input,select,textarea{font:inherit}
.master-menu-toggle,button,.btn{min-height:44px}
input,select,textarea{max-width:100%}

@media(max-width:900px){
  .master-header .nav{min-height:76px}
  .master-header .master-menu-toggle{
    width:44px;height:44px;min-width:44px;padding:0;touch-action:manipulation
  }
  .master-header .master-nav{
    max-height:calc(100vh - 84px);
    overflow-y:auto;
    -webkit-overflow-scrolling:touch
  }
  .master-header .master-nav a{
    min-height:44px;
    display:flex!important;
    align-items:center
  }
  .master-header .master-nav .master-mobile-contact{justify-content:center}
  .master-footer a{padding:.18rem 0;line-height:1.5}
}

@media(max-width:620px){
  .master-header .wrap,
  .master-footer .wrap{width:calc(100% - 32px)!important}

  .master-header .nav{gap:12px!important}
  .master-header .brand{min-width:0!important;gap:9px!important}
  .master-header .brand img{
    width:42px!important;
    flex:0 0 42px!important
  }
  .master-header .brand span{min-width:0}
  .master-header .brand strong{
    font-size:.9rem!important;
    line-height:1.08!important
  }
  .master-header .brand small{
    font-size:.54rem!important;
    line-height:1.2!important;
    letter-spacing:.055em!important;
    white-space:normal!important
  }

  .master-header .master-nav{
    top:76px;left:-2px;right:-2px;
    padding:10px 14px 14px
  }

  input,select,textarea{font-size:16px!important}
  textarea{min-height:150px}

  .master-footer{padding:34px 0 24px}
  .master-footer .master-footer-grid{gap:22px}
  .master-footer .master-copyright{
    margin-top:22px;
    line-height:1.5
  }
}

@media(max-width:380px){
  .master-header .wrap,
  .master-footer .wrap{width:calc(100% - 24px)!important}
  .master-header .brand img{
    width:38px!important;
    flex-basis:38px!important
  }
  .master-header .brand strong{font-size:.86rem!important}
  .master-header .brand small{font-size:.5rem!important}
}

@media(prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
}

.hp-field{position:absolute!important;left:-9999px!important;width:1px!important;height:1px!important;overflow:hidden!important}

.form-success{font-weight:700}.form-error{font-weight:700}


/* =========================================================
   CORRECTION HEADER UNIFIÉ — DESKTOP + TABLETTE + MOBILE
   Cette couche est volontairement autoritaire afin d'éviter
   les conflits avec les anciens styles locaux des pages.
   ========================================================= */

.master-header{
  position:sticky!important;
  top:0!important;
  z-index:1000!important;
  background:rgba(250,247,243,.97)!important;
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
  border-bottom:1px solid rgba(8,47,91,.08)!important;
}

.master-header .wrap.nav{
  width:min(calc(100% - 48px),1180px)!important;
  margin:0 auto!important;
  height:76px!important;
  min-height:76px!important;
  padding:0!important;
  display:flex!important;
  align-items:center!important;
  justify-content:flex-start!important;
  gap:24px!important;
}

.master-header .brand{
  display:flex!important;
  align-items:center!important;
  gap:11px!important;
  flex:0 0 auto!important;
  min-width:0!important;
  text-decoration:none!important;
}

.master-header .brand img{
  display:block!important;
  width:46px!important;
  height:auto!important;
  max-width:46px!important;
  max-height:56px!important;
  object-fit:contain!important;
  flex:0 0 46px!important;
}

.master-header .brand span{
  display:block!important;
  min-width:0!important;
}

.master-header .brand strong{
  display:block!important;
  margin:0!important;
  color:#082F5B!important;
  font-family:'Manrope',Arial,sans-serif!important;
  font-size:.98rem!important;
  font-weight:700!important;
  line-height:1.08!important;
  white-space:nowrap!important;
}

.master-header .brand small{
  display:block!important;
  margin-top:4px!important;
  color:#60727d!important;
  font-family:'Manrope',Arial,sans-serif!important;
  font-size:.61rem!important;
  font-weight:500!important;
  line-height:1.2!important;
  letter-spacing:.065em!important;
  white-space:nowrap!important;
}

.master-header .master-nav{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-end!important;
  gap:28px!important;
  margin-left:auto!important;
  padding:0!important;
  position:static!important;
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
  flex:0 1 auto!important;
  flex-wrap:nowrap!important;
  white-space:nowrap!important;
}

.master-header .master-nav > a{
  display:inline-flex!important;
  align-items:center!important;
  width:auto!important;
  min-height:44px!important;
  padding:0!important;
  margin:0!important;
  border:0!important;
  color:#42555f!important;
  background:transparent!important;
  font-family:'Manrope',Arial,sans-serif!important;
  font-size:.92rem!important;
  font-weight:600!important;
  line-height:1.2!important;
  text-decoration:none!important;
  white-space:nowrap!important;
}

.master-header .master-nav > a:hover,
.master-header .master-nav > a.active,
.master-header .master-nav > a[aria-current="page"]{
  color:#082F5B!important;
}

.master-header .master-nav .master-mobile-contact{
  display:none!important;
}

.master-header .master-contact{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  flex:0 0 auto!important;
  min-height:48px!important;
  margin-left:4px!important;
  padding:.82rem 1.15rem!important;
  border-radius:8px!important;
  background:#082F5B!important;
  color:#fff!important;
  font-family:'Manrope',Arial,sans-serif!important;
  font-size:.9rem!important;
  font-weight:700!important;
  line-height:1.1!important;
  text-decoration:none!important;
  white-space:nowrap!important;
}

.master-header .master-menu-toggle{
  display:none!important;
}

/* Passage en menu mobile avant que le header ne devienne trop serré. */
@media(max-width:1120px){
  .master-header .wrap.nav{
    width:min(calc(100% - 36px),1180px)!important;
  }

  .master-header .master-nav{
    display:none!important;
    position:absolute!important;
    top:76px!important;
    left:0!important;
    right:0!important;
    z-index:1100!important;
    margin:0!important;
    padding:12px 16px 16px!important;
    background:#FAF7F3!important;
    border:1px solid rgba(8,47,91,.10)!important;
    box-shadow:0 18px 40px rgba(8,47,91,.12)!important;
    flex-direction:column!important;
    align-items:stretch!important;
    gap:0!important;
    white-space:normal!important;
    max-height:calc(100vh - 84px)!important;
    overflow-y:auto!important;
    -webkit-overflow-scrolling:touch;
  }

  .master-header .master-nav.master-open{
    display:flex!important;
  }

  .master-header .master-nav > a{
    display:flex!important;
    width:100%!important;
    min-height:48px!important;
    padding:.78rem .25rem!important;
    border-bottom:1px solid rgba(8,47,91,.08)!important;
    white-space:normal!important;
  }

  .master-header .master-nav .master-mobile-contact{
    display:flex!important;
    justify-content:center!important;
    margin-top:10px!important;
    padding:.82rem 1rem!important;
    background:#082F5B!important;
    color:#fff!important;
    border-radius:8px!important;
    border-bottom:0!important;
  }

  .master-header .master-contact{
    display:none!important;
  }

  .master-header .master-menu-toggle{
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    width:44px!important;
    height:44px!important;
    min-width:44px!important;
    margin-left:auto!important;
    padding:0!important;
    border:0!important;
    background:transparent!important;
    color:#082F5B!important;
    font-size:1.8rem!important;
    line-height:1!important;
    cursor:pointer!important;
  }
}

@media(max-width:620px){
  .master-header .wrap.nav{
    width:calc(100% - 28px)!important;
    gap:10px!important;
  }

  .master-header .brand img{
    width:40px!important;
    max-width:40px!important;
    flex-basis:40px!important;
  }

  .master-header .brand strong{
    font-size:.9rem!important;
  }

  .master-header .brand small{
    font-size:.52rem!important;
    white-space:normal!important;
    max-width:190px!important;
  }
}
