figcaption {text-align:center;line-height:2}
button {display:contents}
span {all:inherit}
html, body {
    margin: 0;
}
p {text-align:start}
* {
    box-sizing: border-box;
}
button span, body {
    background: #F0F0D8;
    color: #49281F;
    font-size: 20px;
	font-family: 'Roboto', sans-serif;
}
#header {
    height: 101px;
    background: #F0F0D8 url("/bg-header.jpg") repeat-x top left;
}
#header .wrapper {
    padding: 12px 15px;
}
.wrapper {
    max-width: 30cm;
    padding: 0 15px;
}
#header .slogan {
    margin-top: 2px;
    margin-left: 25px;
    font-family: Tahoma, Geneva, sans-serif;
    font-size: smaller;
}
button span,a {
    color: #D64541;
    text-decoration: none;
    transition: 0.2s;
}
img {
    width: auto;
    text-align:center;
    max-width: 100%;
    height: auto;
    }
figure {
	justify-self:center;
}
#header #logo {
	margin-left:25px;
    display: block;
    width: 300px;
    height: 59px;
    background: url("/logo-egh.png") center bottom no-repeat;
}
:is(button span,a, .menu a):hover {
    color: #AA2422;
    text-shadow: 1px 1px;
    scale:1.2;
}

#header-mobile {
    display: none;
    height: 80px;
    background: rgba(255, 240, 217,0.5);
    border-bottom: 2px solid #AF8849;
    box-shadow: 0 0 5px rgba(0,0,0,0.3);
}
#toggle-mobile-nav {
    float: right;
    width: 46px;
    height: 46px;
    margin: 17px 15px 0 0;
    background: #FFF url("/icon-nav-mobile.png") center no-repeat;
    border: 1px solid #D5D0CA;
    border-radius: 2px;
    transition: 0.2s;
    background-size: cover;
}
#logo-mobile {
    float: left;
    display: block;
    width: 245px;
    height: 40px;
    margin: 20px 0 0 15px;
    background: url("/logo-egh-mobile.png") center no-repeat;
    background-size: cover;
}
body>nav {
  padding: 2px;
  overflow: hidden;
  background:
    linear-gradient(to bottom,
      #dbe59a 0%,
      #d9e39a 14%,
      #cfe089 15%,
      #bfd56f 38%,
      #b6cb61 62%,
      #d8ca79 80%,
      #ccb86a 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.65),
    inset 0 -1px 0 rgba(120,95,35,.28);
}

body>nav .menu {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13ch, 1fr));
  margin: 0;
  padding: 0;
  /* Removed height: 1.5lh — fixed height prevents wrapping */
}

body>nav .menu li {
  display: contents
}

body>nav .menu a {
  outline: 1px solid white;
  align-content: center;
  display: block;
  text-align: center;
  font-family: Tahoma, Geneva, sans-serif;
  color: #5E3929;
  font-size: smaller;
  transition: 0.2s;
  min-height: 1.5lh; /* Move height here so each cell has minimum height */
}

#langs {
  grid-column: span 1; /* Replaced invalid special-end / special-end */
  display: flex;
  justify-content: center;
  padding: 0;
  margin-inline: 3px;
  width: 10ch;

  li>a {
    margin-inline: 3px;
    outline: unset;
    width: 100%;
    background: var(--background-image) center/contain no-repeat;
  }
}
media screen and (min-width: 768px) {
	#page {
    		min-height: 300px;
	}
}
.wrapper {
    margin: auto;
}
.clear {
    clear: both;
}
#bg-featured {
    background-color: #BC9E5F;
    margin: 0 auto;
    padding: 15px 0 0px 0;
    display:flex;
    aspect-ratio:3;
    width:100%;
    max-height:300px;
    
}
video {max-width:100%;align-content:center}
body.home #content {
    padding-top: 20px;
    background: #F0F0D8 url("/bg-content.jpg") repeat-x left top;
}
#page {
    min-height: 300px;
}
#page {
    position: relative;
    padding: 25px 30px;
    background: #FFF;
    border: 1px solid #E2CE97;
}
#page {container: about-sidebar / inline-size }
@container about-sidebar (width > 70ch) {
.has-sidebar {
    float: left;
    width: calc(100% - 260px);
}
.sidebar {
    float: right;
    width: 20%;
}
}
.sidebar h3 {
    margin-bottom: 5px;
}
.sidebar .search .field {
    float: left;
    width: 80%;
}
.sidebar ul {
    margin-top: 5px;
    padding: 0;
    padding-left: 15px;
    text-align: left;
}
.sidebar ul li {
    margin-bottom: 3px;
}
input[type="text"], input[type="email"], input[type="password"], select, textarea, select {
    height: 35px;
    padding: 8px 10px;
    border: 1px solid #CCC;
    box-shadow: 0 0 2px rgba(0, 0, 0, 0.1) inset;
    color: #333;
    width: 100%;
    box-sizing: border-box;
    transition: 0.2s;
}
.sidebar .search .submit {
    float: left;
    width: 20%;
    height: 35px;
    border: 0;
    color: #FFF;
    font-size: 20px;
    background: rgba(214, 69, 65, 0.9);
    cursor: pointer;
}
.clearfix::after {
    content: "";
    display: block;
    clear: both;
}
h1, h1 span {
	margin: 0 0 20px 0;
    font-size: 2.5rem;
    text-align: left;
    line-height: .8;
    font-weight:bold;
    font-family: 'Courgette', cursive;
}
h2, h2 span {
    margin: 25px 0 5px 0;
    padding-bottom: 2px;
    font-size: 1.8em;
    font-weight: normal;
    text-align: left;
    line-height: 1.3em;
    font-family: 'Courgette', cursive;
    border-bottom: 1px solid rgba(0,0,0,0.3);
}
h3 {text-align:left}
.videoWrapper {
    position: relative;
    padding-bottom: 56.25%;
    padding-top: 25px;
    height: 0;
}
.videoWrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
.text-center {
    text-align: center;
}
.read-more {
    padding: 2px 15px;
    background: rgba(214, 69, 65, 0.9);
    border-radius: 2px;
    text-transform: uppercase;
    font-size: 13px;
    color: #FFF;
}
#footer {
    padding: 20px 0;
}
#black-overlay {
    position: fixed;
    display: none;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    opacity: 0;
}
#glossaire {
    position: fixed;
    display: none;
    top: 100%;
    left: 50%;
    width: 768px;
    height: 85%;
    margin-left: -384px;
    background: #FFF;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
    border-radius: 3px;
    overflow: hidden;
}
article {
  block-size: 85vh;
  max-block-size:fit-content;
  font-size:20px;
  padding:0;
  font-weight:normal;
  inline-size: min(80vw,600px);
  scrollbar-width: none;
  > * {padding-inline: max(1vw,60px);}
  h1 {margin:unset}
  header {
    display: flex;
    position:sticky;
  	background-color: #E4D09B;
    top:0;
    min-height:2lh;
    justify-content: space-between;
    align-items: center;
  }
	section {
		background-size: contain;
		overflow-y: auto;
		max-height: 85%;
		padding-bottom:2rem;
		scrollbar-width: none;
  	  }
     footer::before {
  	    content: "";
  	    position: absolute;
  	    left: 4px;
  	    right: 4px;
  	    bottom: 0;
  	    height: 4rem;
  	    background: white;
  	    mask-image: linear-gradient(
  	      to top,
  	      rgb(0, 0, 0, 1) 0%,
  	      rgb(0, 0, 0, 0) 100%
  	    );
  	  }
  button  {
    background: none;
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
  }
  
  &::backdrop {
 	transition: background-color .2s;
 	background-color:rgb(0, 0, 0, 0.8);
 	starting-style {background-color:rgb(0, 0, 0, 0)}
	}
   transition: opacity .2s;
    opacity:0;
   &:popover-open {opacity:1}
 }
.glossaire-close {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 999;
    width: 61px;
    height: 61px;
    background: #EBEBEB url("/icon-close.png") center no-repeat;
    border-left: 1px solid #DDD;
    cursor: pointer;
    transition: 0.2s;
}
#glossaire-title {
    position: absolute;
    display: table;
    z-index: 10;
    top: 0;
    left: 0;
    width: 100%;
    height: 62px;
    padding: 0 75px 0 20px;
    background: #F4F4F4;
    border-bottom: 1px solid #DDD;
    font-family: 'Courgette', cursive;
    font-size: 16px;
    color: #555;
}
#glossaire-title .text {
    display: table-cell;
    vertical-align: middle;
}
#glossaire-content {
    position: relative;
    height: 100%;
    padding-top: 62px;
}
#glossaire-content .text {
    height: 100%;
    padding: 20px;
    overflow-y: scroll;
    text-align: justify;
}
#fancybox-tmp {
    padding: 0;
    margin: 0;
    border: 0;
    overflow: auto;
    display: none;
}
#fancybox-loading {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin-top: -20px;
    margin-left: -20px;
    cursor: pointer;
    overflow: hidden;
    z-index: 111104;
    display: none;
}
#fancybox-loading div {
    position: absolute;
    top: 0;
    left: 0;
    width: 40px;
    height: 480px;
    background-image: url('/fancybox.png');
}
#fancybox-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 111100;
    display: none;
}
#fancybox-wrap {
    position: absolute;
    top: 0;
    left: 0;
    padding: 20px;
    z-index: 111101;
    display: none;
}
#fancybox-outer {
    position: relative;
    width: 100%;
    height: 100%;
    background: #fff;
    box-shadow: 0 0 20px #111;
    -moz-box-shadow: 0 0 20px #111;
    -webkit-box-shadow: 0 0 20px #111;
}
#fancybox-loading, #fancybox-loading div, #fancybox-overlay, #fancybox-wrap, .fancybox-bg, #fancybox-outer, #fancybox-content, #fancybox-content>div, #fancybox-content>div>div, #fancybox-frame, #fancybox-close, #fancybox-title, #fancybox-title div, #fancybox-left, #fancybox-right, .fancy-ico {
    box-sizing: content-box;
    -moz-box-sizing: content-box;
}
#fancybox-content {
    width: 0;
    height: 0;
    padding: 0;
    position: relative;
    -webkit-overflow-scrolling: touch;
    overflow-y: auto;
    z-index: 111102;
    border: 0 solid #fff;
    background: #fff;
    -moz-background-clip: padding;
    -webkit-background-clip: padding;
    background-clip: padding-box;
}
#fancybox-close {
    position: absolute;
    top: -15px;
    right: -15px;
    width: 30px;
    height: 30px;
    background: transparent url('/fancybox.png') -40px 0;
    cursor: pointer;
    z-index: 111103;
    display: none;
}
#fancybox-title {
    z-index: 111102;
}
#fancybox-left, #fancybox-right {
    position: absolute;
    bottom: 0;
    height: 100%;
    width: 35%;
    cursor: pointer;
    background: initial;
    z-index: 111102;
    display: none;
}
#fancybox-left-ico, #fancybox-right-ico {
    position: absolute;
    top: 50%;
    left: -9999px;
    width: 30px;
    height: 30px;
    margin-top: -15px;
    cursor: pointer;
    z-index: 111102;
    display: block;
}
#fancybox-left-ico {
    background-image: url('/fancybox.png');
    background-position: -40px -30px;
}
#fancybox-right {
    right: 0;
}
#fancybox-right-ico {
    background-image: url('/fancybox.png');
    background-position: -40px -60px;
}
#fancybox-left {
    left: 0;
}
#content ~ article {
	>:last-child {margin-bottom: 3rem}
	mask-image: linear-gradient(to bottom, black 90%, transparent 100%);
	h1 {padding-block:1rem;
		position: sticky;
		top:0;
		background: inherit}
}
view-transition {navigation: auto}