
.home-exemple-container {
    padding: 0% 5% 8% 5%;
}

.home-exemple-title{
   font-family: "Mona Sans", sans-serif;
    font-size: 50px;
    line-height: 45px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #000000;
    text-align: center;
}

.home-exemple-items{
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2%;
}

.home-exemple-content-item{
    width: 48%;
    height: 400px;
    margin-top: 2%;
}



.home-exemple-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 999; /* plus haut que les autres */
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    background-color: var(--wp--preset--color--white);
    transition: opacity 0.3s ease;
    padding: 3% 4% 3% 4%;
    gap: 2%;
    display: none;
}

.home-exemple-modal.able {
    opacity: 1;
    display: unset;
    visibility: visible;
    pointer-events: unset;
    display: flex;
}



.home-exemple-item{
    position: relative;
    width: 100%;
    height: 100%;
}

.home-exemple-item-hover{
    position:absolute;
    top: 0;
    left:0;
    width: 100%;
    height: 100%;
    opacity: 0;
    z-index: -3;
    transition:  opacity .4s ease;
}

.home-exemple-item-hover svg{
    width: 15%;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%,-50%);
}

.home-exemple-shadow{
    background-color: rgba(0, 0, 0, 0.4);
    width: 100%;
    height: 100%;
}

.home-exemple-content-item:hover .home-exemple-item-hover{
    opacity: 1;
    display: unset;
    z-index: 3;
    cursor: pointer;
}

.home-exemple-frame{
    width: 100%;
    height: 100%;
    position: relative;
}

.home-exemple-frame img{
    position: absolute;
    top: 0;
    left: 0;
    object-fit: cover;
    width: 100%;
    height: 100%;
}

.home-exemple-modal-left{
    width:75%;
    height: 100%;
    position: relative;
}

.home-exemple-modal-left img{
    position: absolute;
    top:0;
    left: 0;
    object-fit: cover;
    width: 100%;
    height: 100%;
}

.home-exemple-modal-right{
    text-align: right;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 25%;
    position: relative;
}

.home-exemple-modal-right h2{
    font-family: 'Mona sans', sans-serif;
    line-height: 90%;
    font-weight: bold;
    margin-bottom: 0;
    margin-top: 0;
}

.home-exemple-modal-right p {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    color: var(--wp--preset--color--dark);
    margin: 0;
    margin-top: .5em;
}

.home-exemple-modal-link{
    display: block;
    margin-top: .5em;
    text-transform: none;
    text-decoration: none;
    white-space: nowrap;
    font-family: 'Mona sans', sans-serif;
    line-height: 90%;
    padding: 10px 25px;
    font-weight: bold;
    background-color: var(--wp--preset--color--orange);
    color: white;
    text-decoration: none;
    border-radius: 20px;
    width: fit-content;
    margin-left: auto;
}

.home-exemple-cta-text{
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    color: var(--wp--preset--color--dark);
    margin: 0;
    margin-top: .5em;
    line-height: 125%;
    font-size: 16px;
}

.home-exemple-cta-text span{
    font-size: 60px;
}

.home-exemple-cta{
    display: block;
    margin-top: .5em;
    text-transform: none;
    text-decoration: none;
    white-space: nowrap;
    font-family: 'Mona sans', sans-serif;
    line-height: 90%;
    padding: 10px 25px;
    font-weight: bold;
    color: var(--wp--preset--color--orange);
    background-color: white;
    border: solid 2px var(--wp--preset--color--orange);
    text-decoration: none;
    border-radius: 20px;
    width: fit-content;
    margin-left: auto;
    transition: color ease .3s, background-color ease .3s;
}

.home-exemple-cta:hover{
    background-color: var(--wp--preset--color--orange);
    color: white;
}


.home-exemple-modal-right svg{
    position: absolute;
    top: 0;
    right: 0;
    transform: translateY(-125%);
    width: 20px;
    z-index: 99999999;
    cursor: pointer;
}

.home-exemple-full-cta{
  text-decoration:underline;
  color: var(--wp--preset--color--orange);
  font-family: 'Montserrat';
  font-size: 22px;
  font-weight: bold;
  text-align: center;
   display: block;
   width: fit-content;
   margin: 0 auto;
  margin-top: 1em;
}


@media (min-width: 1680px) {
  .home-exemple-content-item {
    height: 450px;
  }
}


@media (max-width: 1440px) {
  .home-exemple-title {
    font-size: 45px;
  }
}

/* ≤1280px */
@media (max-width: 1280px) {
  .home-exemple-content-item {
    height: 350px;
  }

  .home-exemple-title {
    font-size: 40px;
    line-height: 42px;
  }
}

/* ≤1024px (tablette paysage) */
@media (max-width: 1024px) {
  .home-exemple-content-item {
    width: 100%;
    height: 400px;
  }

  .home-exemple-modal{
    flex-direction: column-reverse;
  }

  .home-exemple-modal {
    flex-direction: column-reverse;
    padding: 5%;
    justify-content: flex-end;
  }

  .home-exemple-modal-left {
    width: 100%;
    height: 570px;
  }

  .home-exemple-modal-right {
    margin-top: 20px;
    width: 100%;
  }

  .home-exemple-modal-right svg {
    top: -30px;
    right: 10px;
    transform: none;
  }
}

/* ≤768px (tablette portrait / mobile large) */
@media (max-width: 768px) {
  .home-exemple-title {
    font-size: 32px;
    line-height: 38px;
  }

  .home-exemple-content-item {
    height: 300px;
  }

  .home-exemple-modal-left {
    width: 100%;
    height: 470px;
  }

  .home-exemple-items {
    flex-direction: column;
    gap: 3%;
  }

  .home-exemple-cta-text span {
    font-size: 45px;
  }
}

/* ≤640px (mobile) */
@media (max-width: 640px) {
  .home-exemple-title {
    font-size: 26px;
  }

  .home-exemple-cta-text span {
    font-size: 36px;
  }

  .home-exemple-cta,
  .home-exemple-modal-link {
    padding: 8px 18px;
    font-size: 14px;
  }
}

/* ≤480px (petit mobile) */
@media (max-width: 480px) {
  .home-exemple-title {
    font-size: 22px;
  }

  .home-exemple-cta-text {
    font-size: 14px;
  }

  .home-exemple-modal-right h2 {
    font-size: 18px;
  }

  .home-exemple-modal-right p {
    font-size: 14px;
  }

      .home-exemple-modal-left {
        width: 100%;
        height: 285px;
    }
}

/* ≤360px (très petit mobile) */
@media (max-width: 360px) {
  .home-exemple-title {
    font-size: 20px;
  }

  .home-exemple-cta-text span {
    font-size: 28px;
  }

  .home-exemple-modal-link,
  .home-exemple-cta {
    padding: 6px 14px;
    font-size: 12px;
  }
}