#entete{
top:0;
left: 50%;
position:fixed;
text-align:center;
transform: translateX(-50%);
transition:all ease 0.5s;
width:100%;
height:auto;
display:block;
z-index:998;
background:white;
overflow:visible;
}

.entete{
max-width:1280px;
margin:auto;
height:120px;
display:flex;
align-items:end;
position:relative;
}

/*bandeau adresse*/
.enteteSup{
width:100%;
background:var(--bleu); 
padding:8px 0;
}
.bandeauHaut{
padding:0px;
display:flex;
justify-content:right;  
align-items:center;      
gap:10px;                
max-width:1280px;
margin:auto
}
.bandeauHaut a.btn{
background:white;
border-radius:1em;  
color:white;
font-weight:700;
font-size:1em;
text-decoration:none;
background:var(--rouge);
margin-right:6px;
transition:all ease .2s;
position:relative;
padding:4px 12px;
box-sizing:border-box;
position:relative;
top:0;
}
.bandeauHaut a.langSwitch{
background:white;
border-radius:1em;  
color:var(--bleu);
font-weight:700;
font-size:1em;
text-decoration:none;
background:var(--gris);
margin-right:6px;
transition:all ease .2s;
position:relative;
padding:4px 12px;
box-sizing:border-box;
position:relative;
top:0;
}
.bandeauHaut a.btn:hover,
.bandeauHaut a.langSwitch:hover{
transform:translateY(6px);
}
/* language button: flag + name (name hidden on mobile) */
.bandeauHaut a.langSwitch{
display:inline-flex;
align-items:center;
gap:6px;
}
.bandeauHaut a.langSwitch .flag{
display:block;
flex:none;
width:22px;
height:14px;
border-radius:3px;
overflow:hidden;
}
.bandeauHaut a.langSwitch .flag svg{
display:block;
width:100%;
height:100%;
}
/* white logo (footer version) : only in the mobile bar */
.bandeauHaut .logoBandeau{
display:none;
}

/* social */
.bandeauHaut .social{
display:flex;
align-items:center;
}
.bandeauHaut .social a{
display:block;
width:28px;
height:28px;
border:none;
padding:0;
margin:0 3px 0 0;
transition:all ease .2s;
}
.bandeauHaut .social a:hover{
transform:translateY(6px); 
}
.bandeauHaut .social a svg{    
fill:var(--gris);
display:block;
}

.entete .logo{
position:absolute;
left:80px;                             /* clears the corner shape (65px) */
height:100%;
display:flex;

align-items:center;
}
.entete .logo .img2{
height:auto;
width:300px; 
align-content:center;
}
.entete .logo span{
display:none;
font-weight:500;
margin-left:10px; 
margin-bottom:10px;
width:360px;
text-align:left;
}
.entete .logo span p{
font-size:1.2em;
font-weight:800;
margin-bottom:0;    
}

.entete .logo svg{
max-width:100%;
max-height:100%;
object-fit:fill;
}

.entete .menu{
box-sizing:border-box;
transition:all ease 0.5s;
position:absolute;
z-index:999;
width:auto;
right:0;
top:50%;
transform:translateY(-50%);
}
.menu ul{
list-style:none;
padding:0;
margin:0;
display:flex;
align-items:center;
}
.menu li{
padding:0 .75vw;
}
.menu li.homeBtn a svg{
width:24px;
height:24px;  
vertical-align:middle;
}
.menu li a{
font-optical-sizing: auto;
font-style: normal;
font-weight:500;
text-decoration:none;
white-space:nowrap;
transition:all 0.3s ease;
line-height:50px;
display:inline-block;
position:relative;
color:var(--bleu);
letter-spacing: 0px;
font-size: clamp(0.5vw, 1.1em, 1.3vw);
}
.menu li a::after,
.menu li.open a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 5px;
    background:linear-gradient(to right, #ffffff00, var(--rouge));
    border-radius: 5px;
    width: 0;
    transition: width 0.5s ease;
}
.menu li a:hover::after,
.menu li.open a::after {
    width: 100%;
    background:linear-gradient(to right, #ffffff00, var(--rouge));
}
 .menu li.open a,
.menu li a:hover{
color:var(--rouge);
}

/* Burger (<button>) + smart menu: hidden on desktop */
#smart-icon{
display:none;
-webkit-appearance:none;
appearance:none;
background:none;
border:0;
padding:0;
margin:0;
}
#smart-menu{
display:none;
}

/* ==========================================================
   RESPONSIVE
   Header switches to burger at 860px (matches the 861px
   min-width guard below). All breakpoints live here.
   ========================================================== */

/* ---------- Desktop guard ---------- */
@media screen and (min-width: 861px) {
  #smart-icon { display: none; }
  #smart-menu { display: none !important; }

  /* Compact header once scrolled: lower bar, smaller logo */
  .entete { transition: height ease .4s; }
  .entete .logo .img2 { transition: width ease .4s; }
  #entete.scrolled .entete { height: 76px; }
  #entete.scrolled .entete .logo .img2 { width: 180px; }
}

/* ---------- <= 1100px : tighten the desktop nav ---------- */
@media screen and (max-width: 1100px) {
  /* The desktop clamp() caps at 1.3vw, which is unreadable below ~1100px */
  .menu li a { font-size: 1em; }
  .menu li { padding: 0 .5vw; }
  .menu li.homeBtn a svg{width:20px;height:20px;}
  .entete .logo .img2 { width: 260px; }
}
@media screen and (max-width: 980px) {
  .menu li a { font-size: .92em; }
  .menu li { padding: 0 .4vw; }
  .menu li.homeBtn a svg{width:16px;height:16px;}
  .entete .logo .img2 { width: 200px; }
}

/* ---------- <= 860px : one compact blue bar ----------
   white logo (left) · quote button · language flag · burger (right).
   The white header row (big logo + desktop menu) is removed to save height. */
@media screen and (max-width: 860px) {

  .enteteSup { padding: 0; }
  .bandeauHaut {
    height: 56px;
    padding: 0 6px 0 16px;
    gap: 8px;
    justify-content: flex-end;
    box-sizing: border-box;
  }
  .bandeauHaut .logoBandeau {
    display: block;
    margin-right: auto;
    width: 150px;
    flex: 0 1 auto;
  }
  .bandeauHaut .logoBandeau svg,
  .bandeauHaut .logoBandeau img {
    display: block;
    width: 100%;
    height: auto;
  }
  .bandeauHaut .social { display: none; }
  .bandeauHaut a.btn {
    margin: 0;
    font-size: .85em;
    padding: 4px 10px;
    white-space: nowrap;
  }
  .bandeauHaut a.langSwitch {
    background: none;
    padding: 4px;
    margin: 0;
  }
  .bandeauHaut a.langSwitch .langLabel { display: none; }
  .bandeauHaut a.langSwitch .flag { width: 26px; height: 17px; }
  .bandeauHaut a.btn:hover,
  .bandeauHaut a.langSwitch:hover { transform: none; }

  .entete {
    height: 0;
    padding: 0;
  }
  .entete .logo,
  .entete .menu { display: none; }

  /* --- Burger (pure CSS lines, white on the blue bar) --- */
  #smart-icon {
    display: flex;
    position: relative;
    flex: none;
    width: 44px;
    height: 44px;
    z-index: 1003;
    cursor: pointer;
    align-items: center;
    justify-content: center;
  }
  #smart-icon::before,
  #smart-icon::after {
    content: "";
    position: absolute;
    width: 26px;
    height: 3px;
    border-radius: 2px;
    background: white;
    transition: all ease 0.3s;
  }
  #smart-icon::before {
    transform: translateY(-8px);
    box-shadow: 0 8px 0 white;
  }
  #smart-icon::after {
    transform: translateY(8px);
  }
  #smart-icon.open::before,
  #smart-icon.active::before {
    transform: rotate(45deg);
    box-shadow: none;
  }
  #smart-icon.open::after,
  #smart-icon.active::after {
    transform: rotate(-45deg);
  }

  /* --- Smart menu: right under the bar, JS toggles .open / .active --- */
  #smart-menu {
    display: none;
    position: fixed;
    top: 56px;                         /* = bar height */
    left: 0;
    width: 100%;
    height: calc(100dvh - 56px);
    overflow-y: auto;
    background: var(--bleu);
    z-index: 997;
    padding: 10px 20px 40px 20px;
    box-sizing: border-box;
    border-top: 1px solid #ffffff2e;
  }
  #smart-menu.open,
  #smart-menu.active {
    display: block;
  }
  #smart-menu ul {
    display: block;
    list-style: none;
    margin: 0;
    padding: 0;
  }
  #smart-menu li {
    display: block;
    padding: 0;
    margin: 0;
    border-bottom: 1px solid #ffffff1f;
  }
  #smart-menu li:last-child {
    border-bottom: none;
  }
  #smart-menu li a {
    display: block;
    padding: 13px 0;
    color: var(--blanc);
    text-decoration: none;
    font-weight: 700;
    line-height: 1.5em;
    white-space: normal;
    text-transform: uppercase;
    transition: all ease 0.3s;
  }
  #smart-menu li a:hover,
  #smart-menu li.open > a,
  #smart-menu li.active > a {
    color: var(--blanc);
    padding-left: 10px;
    opacity: .8;
  }
  #smart-menu li a::after {
    content: none;
  }
  #smart-menu li li a {
    font-weight: 400;
    text-transform: none;
    padding: 8px 0 8px 20px;
  }
}

/* ---------- <= 380px : small phone ---------- */
@media screen and (max-width: 380px) {
  .bandeauHaut { height: 52px; padding: 0 4px 0 12px; gap: 6px; }
  .bandeauHaut .logoBandeau { width: 118px; }
  .bandeauHaut a.btn { font-size: .78em; padding: 4px 8px; }
  #smart-icon { width: 40px; height: 40px; }
  #smart-menu {
    top: 52px;                         /* = bar height */
    height: calc(100dvh - 52px);
  }
}
