header {
    display: flex;
    justify-content : space-between;
}
.name {
    margin-left: 5%;
}
.menu {
    display: flex;
    list-style-type: none;
}
.menu > li {
    margin-right : 100px;
}
.menu > li > a {
    text-decoration: none;
    color: rgb(42, 42, 42);
}
.menu > li > a:hover {
    color: rgb(131, 0, 42);
}
.subnav-content {
    display: none;
    border: 2px; 
    border-color: rgb(131,0,42);
    border-style:solid none none none;
    margin-top: 10px;
    background-color: rgb(247, 247, 247);
    position: absolute;
    z-index:1000;
}
.subnav:hover .subnav-content{
    display:flex;
}
.subnav-menu {
    list-style-type: none;
    padding: 10px;
    padding-left: 15px;
}
.subnav-menu > li{
    margin-top : 10px;
    margin-bottom: 10px;
}
.subnav-menu > li > a {
    text-decoration: none;
    color: rgb(42, 42, 42);
}
.subnav-menu > li > a:hover {
    color: rgb(131, 0, 42);
}
.subnavbtn{
    display: flex;
    justify-content: right;
}

.subsubnav-menu{
    display: none;
    list-style-type: none;
    position: absolute;
    margin-left: 110px;
    background-color: rgb(247, 247, 247);
    border: 2px; 
    border-color: rgb(131,0,42);
    border-style:solid none none none;
    padding: 10px;
    width: 100px;
}
.subsubnav-menu > li > a {
    text-decoration: none;
    color: rgb(42, 42, 42);
}
.subsubnav-menu > li > a:hover {
    color: rgb(131, 0, 42);
}
.subsubnav-aa:hover .subsubnav-menu{
    display: block;
}
img {
  display: block;
  margin: auto;
  width: 70%;
  height: 70vh;
  object-fit: cover;
}
header {
    margin-bottom : 50px;
}
.subsubnav-aa{
    display: flex;
    padding-right: 30px;
    margin-right: -30px;
}

footer {
    display: flex;
    justify-content: center;
}
.foot {
    display: flex;
    justify-content: center;
    border: 2px; 
    border-color: rgb(42, 42, 42);
    border-style:solid none none none;
    margin-top: 20px;
    width: 70%;
}

.image {
  position: relative;

}
.imtip {
  position: absolute;
  bottom: 0;
  right: 0;
  left: 0;
  opacity: 0;
}

@keyframes spin1 { 100% { opacity: 1; } }

.mosaic-wrap{
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 1.4rem 6rem;
  }

  .mosaic{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 130px;
    grid-auto-flow: dense;
    gap: 6px;
    background: var(--grout);
    padding: 6px;
    border-radius: 3px;
  }

  .tile{
    position: relative;
    overflow: hidden;
    background: var(--stone);
    cursor: pointer;
    opacity: 0;
    transform: translate(var(--fx), var(--fy)) rotate(var(--fr)) scale(0.86);
    opacity: 1;
    transform: translate(0,0) rotate(0deg) scale(1);
    animation-delay: var(--delay);
  }

  .tile img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: grayscale(45%) contrast(1.02) brightness(0.92);
    transform: scale(1.06);
    transition: filter 0.55s ease, transform 0.7s cubic-bezier(.2,.7,.2,1);
  }

  .tile::after{
    content:"";
    position: absolute;
    inset: 0;
    box-shadow: inset 0 0 0 1px rgba(237,230,214,0.06);
    pointer-events: none;
    transition: box-shadow 0.4s ease;
  }

  .tile:hover img{
    filter: grayscale(0%) contrast(1.05) brightness(1);
    transform: scale(1.12);
  }

  .tile:hover::after{
    box-shadow: inset 0 0 0 2px var(--gold);
  }

  .tile .label{
    position: absolute;
    left: 0.7rem;
    bottom: 0.6rem;
    font-size: 1rem;
    letter-spacing: 0.18em;
    font-weight: bold;
    color: var(--bone);
    background: rgba(23,20,15,0.55);
    padding: 0.25rem 0.55rem;
    border: 1px solid rgba(237,230,214,0.18);
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.35s ease, transform 0.35s ease;
    backdrop-filter: blur(2px);
  }

  .tile:hover .label{
    opacity: 1;
    transform: translateY(0);
  }

  /* tailles des tesselles */
  .w2{ grid-column: span 2; }
  .w3{ grid-column: span 3; }
  .h2{ grid-row: span 2; }
  .h3{ grid-row: span 3; }

  @media (prefers-reduced-motion: reduce){
    .tile{ animation: none; opacity: 1; transform: none; }
  }

  footer span.gold{ color: var(--gold); }

  @media (max-width: 720px){
    .mosaic{ grid-auto-rows: 68px; grid-template-columns: repeat(4,1fr); }
    header{ padding: 4rem 1.4rem 2.4rem; }
  }

  /* The Modal (background) */
.modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 1; /* Sit on top */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%;
  overflow: auto; /* Enable scroll if needed */
  background-color: rgb(0,0,0); /* Fallback color */
  background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}

/* Modal Content/Box */
.modal-content {
  background-color: #fefefe;
  margin: 2% auto; /* 15% from the top and centered */
  padding: 20px;
  border: 1px solid #888;
  width: 80%;
}

/* The Close Button */
.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
}
.image-container {
  display: flex;
  align-items: center;
  margin: 0 auto;
  justify-content: center;
  
}
.close:hover,
.close:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}
#modal-image {
  width: auto;
  height: auto;
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  display: block;
  margin: 0;
}
.button-modal {
  all: unset;
  cursor: pointer;
}
.univers{
  margin-bottom: 100px;
  text-align: center;
  opacity: 1;
}


.univers p {
  max-width: 50%;
  margin: 0 auto;
  
  font-size: 20px;
}

.univers a {
  text-decoration: none;
  font-weight: bold;
  color: rgb(0, 31, 78);
 
}
.demarche {
  padding: 20px;
  max-width: 70%;
  margin: auto;
}