/* ========================================================= */
/* 📐 LAYOUT — GLOBAL STRUCTURE & PAGE WRAPPERS             */
/* ========================================================= */


/* ----------------------------- */
/* 1) ORNAMENT FRAME STRUCTURE  */
/* ----------------------------- */

.frame02 {
  position: relative;
  box-sizing: border-box;
  width: 100%;
  padding: 10px;

  border-width: 100px;
  border-image-source: url(/assets/ORNAMENTS_frame_0001.webp);
  border-image-slice: 25%;
  border-image-width: 150px;
  border-image-outset: 10px;
  border-image-repeat: stretch;
}


/* ----------------------------- */
/* 2) PAGE WRAPPER SYSTEM       */
/* ----------------------------- */

#page-wrapper {
  position: relative;
  width: 100%;
  min-height: 60vh;
}

#page-container {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 60vh;
  opacity: 1;
  transition: opacity 320ms ease;
}

#page-preloader {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 320ms ease;
}


/* ----------------------------- */
/* 3) LOADING STATE             */
/* ----------------------------- */

#page-wrapper.is-loading #page-container {
  opacity: 0;
  pointer-events: none; /* bloque uniquement le contenu injecté */
}

#page-wrapper.is-loading #page-preloader {
  opacity: 1;
}


/* ----------------------------- */
/* 4) FOOTER STRUCTURE          */
/* ----------------------------- */

.site-footer {
  position: relative;
  z-index: 5;
}


/* ----------------------------- */
/* 5) GENERIC CONTAINERS        */
/* ----------------------------- */

.container {
  width: 100%;
  margin: auto;
}

.containercadre {
  position: relative;
  width: 100%;
  margin: 50px auto;
  padding: 0;
  box-sizing: border-box;
  box-shadow:
    rgba(0, 0, 0, 0.1) 0px 0px 5px 0px,
    rgba(0, 0, 0, 0.1) 0px 0px 1px 0px;
}

.containercadre img {
  position: absolute;
  width: 100%;
  height: auto;
}


/* ----------------------------- */
/* 6) IMAGE POSITION HELPERS    */
/* ----------------------------- */

.top-center {
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
}

.bottom-center {
  bottom: 0;
  left: 50%;
  transform: translate(-50%, 50%);
}


/* ----------------------------- */
/* 7) ALIGNMENT BLOCK SYSTEM    */
/* ----------------------------- */

.div-block {
  box-sizing: border-box !important;
  padding: 10px !important;
  border: 0 solid transparent !important;
}

.div-block.div-left {
  display: block !important;
  width: 100% !important;
  margin-left: 0 !important;
  margin-right: auto !important;
  text-align: left !important;
}

.div-block.div-center {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
  text-align: center !important;
  position: relative !important;
}

.div-block.div-right {
  display: block !important;
  width: 100% !important;
  margin-left: auto !important;
  margin-right: 0 !important;
  text-align: right !important;
}


/* ----------------------------- */
/* 8) FLOAT IMAGE UTILITIES     */
/* ----------------------------- */

.image-left {
  float: left;
  max-width: 50%;
  margin-right: 15px;
  margin-bottom: 10px;
}

.image-right {
  float: right;
  max-width: 50%;
  margin-left: 15px;
  margin-bottom: 10px;
}

.inline-image-left {
  display: inline-block;
  vertical-align: middle;
  margin-right: 10px;
}

.inline-image-right {
  display: inline-block;
  vertical-align: middle;
  margin-left: 10px;
}

.clearfix::after {
  content: "";
  display: table;
  clear: both;
}


/* ----------------------------- */
/* 9) FULLSCREEN LINK OVERLAY   */
/* ----------------------------- */

#menu-link-full-screen {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);

  display: none;           /* caché par défaut */
  opacity: 0;
  transition: opacity 0.5s ease-in-out;

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  justify-content: center;
  align-items: center;

  z-index: 999999;
}

body.menu-link-loading {
  overflow: hidden;
}