/* Même cadre et mêmes destinations sur toutes les pages web. */
.cwn-header,.cwn-header *{box-sizing:border-box}
.cwn-header{position:relative;z-index:50;color:#082333;background:#fffdf9f5;border-bottom:1px solid #e5ded2;font:500 15px/1.35 system-ui,sans-serif;width:var(--cf-layout-width,calc(100% - 32px));margin-inline:auto;flex:none}
.cwn-inner{min-height:84px;display:flex;align-items:center;justify-content:space-between;gap:24px;padding:8px 10px}
.cwn-brand{display:block;flex:0 0 160px;max-width:50%;text-decoration:none}
.cwn-brand img{display:block;width:100%;height:auto;object-fit:contain}
.cwn-menu{min-width:0}.cwn-menu summary{display:none;list-style:none;cursor:pointer;border:1px solid #087a77;border-radius:12px;background:#e2f4ee;color:#082333;padding:10px 12px;min-height:44px;align-items:center;gap:12px;font-weight:650}
.cwn-menu summary::-webkit-details-marker{display:none}
.cwn-links{display:flex;align-items:center;justify-content:flex-end;gap:4px}
.cwn-header .cwn-link{display:flex;align-items:center;min-height:44px;padding:10px 9px;border-radius:11px;color:#082333;background:transparent;white-space:nowrap;text-decoration:none;font:600 14px/1.35 system-ui,sans-serif;border:0}
.cwn-header .cwn-link:hover,.cwn-header .cwn-link[aria-current=page]{background:#e0f5ed}
.cwn-header .cwn-play{background:#d9f6e9;color:#00624f}
.cwn-header a:focus-visible,.cwn-menu summary:focus-visible{outline:3px solid #008f91;outline-offset:3px}
@media(max-width:1199px){
 .cwn-inner{min-height:72px;gap:12px;padding:4px 0;align-items:center}
 .cwn-brand{flex-basis:136px;max-width:calc(100% - 110px)}
 .cwn-menu summary{display:flex}
 .cwn-menu[open] .cwn-links{position:absolute;top:100%;left:0;right:0;background:#fffdf9;border:1px solid #e5ded2;border-radius:0 0 16px 16px;box-shadow:0 10px 20px #08233312;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));padding:10px;gap:6px;max-height:calc(100dvh - 88px);overflow:auto}
 .cwn-menu:not([open]) .cwn-links{display:none}
 .cwn-header .cwn-link{white-space:normal;font-size:15px;padding:10px}
}
/* Le custom element historique conserve ses événements et ses gardes de
   sortie. Seule sa présentation web devient un en-tête en haut du contenu. */
html.cf-web-navigation body cf-bottom-nav{display:block!important;position:static!important;top:auto!important;bottom:auto!important;left:auto!important;right:auto!important;order:-100;flex:none;width:100%!important;max-width:none!important;height:auto!important;min-height:0!important;border:0!important;border-radius:0!important;padding:0!important;margin:0!important;background:transparent!important;box-shadow:none!important;z-index:50}
html.cf-web-navigation cf-bottom-nav .cwn-header{width:100%;margin:0}
html.cf-web-navigation cf-bottom-nav .cwn-inner{padding-inline:10px}
html.cf-web-navigation .status{display:none!important}
@media(max-width:1023px){
 html.cf-web-navigation body .shell{padding-bottom:0!important}
 html.cf-web-navigation cf-bottom-nav .cwn-header{width:calc(100% - 32px);margin-inline:16px}
 html.cf-web-navigation cf-bottom-nav .cwn-inner{padding-inline:0}
 html.cf-web-navigation body>cf-bottom-nav{width:100%!important}
}
html.cf-web-navigation .shell:is([data-phase=quart],[data-phase=demi],[data-phase=finale]) cf-bottom-nav{display:none!important}
/* L'ancien décalage desktop réservait une barre fixe séparée. Le header vit
   maintenant dans la coque ; ne pas réserver sa hauteur une seconde fois. */
html.cf-web-navigation body .stage{padding-top:0!important}
html.cf-web-navigation body .shell{height:100dvh!important}
/* Sans JavaScript, le menu natif details reste utilisable, même sur desktop. */
.cwn-header:not([data-web-header-ready]) .cwn-menu summary{display:flex}
html.cf-web-navigation body cf-bottom-nav{min-height:72px!important}
@media(min-width:1200px){html.cf-web-navigation body cf-bottom-nav{min-height:84px!important}}
@media(min-width:1024px){
 html.cf-web-navigation body>cf-bottom-nav{width:var(--cf-layout-width)!important;margin-left:var(--cf-layout-gutter)!important;margin-right:0!important}
}
