/* =========================================================
BASE
========================================================= */

.ep-inv-page,
.ep-inv-page *{
  box-sizing:border-box;
}

.ep-inv-page{
  --green:#071915;
  --green2:#102820;

  --gold:#d8b66a;
  --gold2:#e7c878;

  --cream:#fbf7ef;
  --white:#fff;

  --text:#344054;
  --muted:#667085;

  --line:rgba(7,25,21,.10);

  --title-font:"Noto Kufi Arabic","Noto Sans Arabic",Arial,sans-serif;
  --body-font:"Noto Sans Arabic",Arial,sans-serif;

  width:100%;
  overflow:hidden;

  direction:rtl;
  text-align:right;

  font-family:var(--body-font);

  background:var(--cream);
  color:var(--text);
}

.ep-inv-page *{
  min-width:0;
}

.ep-inv-page a{
  text-decoration:none;
}

.ep-inv-page img{
  display:block;
  max-width:100%;
}

.ep-inv-wrap{
  width:min(1200px,calc(100% - 80px));
  margin:auto;
}

.ep-inv-section{
  padding:90px 0;
}

.ep-inv-h2{
  margin:0 0 25px!important;

  font-family:var(--title-font)!important;

  font-size:clamp(32px,4vw,50px)!important;

  font-weight:500!important;

  line-height:1.45!important;

  color:var(--green)!important;
}

.ep-inv-p{
  margin:0 0 20px;

  font-size:17px;

  line-height:2;

  color:#344054;
}


/* =========================================================
HERO
IMAGE BIEN VISIBLE
========================================================= */

.ep-inv-hero{
  min-height:850px;

  display:flex;
  align-items:center;

  position:relative;

  overflow:hidden;
  isolation:isolate;

  color:#fff;

  background:#071915;
}


/* IMAGE */

.ep-inv-hero picture{
  position:absolute;
  inset:0;

  width:100%;
  height:100%;

  z-index:-3;
}

.ep-inv-hero picture img{
  width:100%;
  height:100%;

  object-fit:cover;

  /*
  On conserve le sujet / visage visible.
  */
  object-position:72% 28%;
}


/* =========================================================
OVERLAY TRÈS LÉGER
========================================================= */

.ep-inv-overlay{
  position:absolute;
  inset:0;

  z-index:-2;

  pointer-events:none;

  /*
  Le noir se concentre à gauche,
  derrière le texte.

  La personne reste visible
  sur la droite.
  */
  background:

    radial-gradient(
      circle at 15% 18%,
      rgba(216,182,106,.10),
      transparent 28%
    ),

    linear-gradient(
      90deg,
      rgba(7,25,21,.80) 0%,
      rgba(7,25,21,.67) 22%,
      rgba(7,25,21,.46) 38%,
      rgba(7,25,21,.26) 51%,
      rgba(7,25,21,.10) 62%,
      rgba(7,25,21,.03) 72%,
      rgba(7,25,21,0) 81%,
      rgba(7,25,21,0) 100%
    ),

    linear-gradient(
      180deg,
      rgba(7,25,21,0) 0%,
      rgba(7,25,21,0) 62%,
      rgba(7,25,21,.16) 82%,
      rgba(7,25,21,.30) 100%
    );
}


/* =========================================================
HERO POSITION
========================================================= */

.ep-inv-hero .ep-inv-wrap{
  position:relative;

  z-index:2;

  /*
  sert uniquement à placer physiquement
  le texte à gauche de la photo
  */
  direction:ltr;
}

.ep-inv-content{
  width:min(650px,50vw);

  max-width:650px;

  margin-left:0;
  margin-right:auto;

  direction:rtl;
  text-align:right;
}


/* KICKER */

.ep-inv-kicker{
  display:flex;

  align-items:center;

  gap:12px;

  margin-bottom:20px;

  color:#e5c77b;

  font-size:11px;

  font-weight:700;

  line-height:1.7;
}

.ep-inv-kicker::before{
  content:"";

  width:34px;
  height:1px;

  flex:0 0 34px;

  background:currentColor;
}


/* H1 */

.ep-inv-hero h1{
  max-width:650px;

  margin:0 0 26px!important;

  font-family:var(--title-font)!important;

  font-size:clamp(42px,4.6vw,69px)!important;

  font-weight:600!important;

  line-height:1.32!important;

  letter-spacing:0!important;

  color:#fff!important;
}

.ep-inv-hero h1 span{
  display:block;

  margin-top:8px;

  color:#e7c878;

  font-size:.70em;

  font-weight:400;

  line-height:1.6;
}


/* INTRO */

.ep-inv-lead{
  max-width:610px;

  margin:0;

  font-size:clamp(17px,1.3vw,20px);

  line-height:1.95;

  color:rgba(255,255,255,.90);
}


/* =========================================================
BUTTONS
========================================================= */

.ep-inv-buttons{
  display:flex;

  gap:12px;

  flex-wrap:wrap;

  margin-top:32px;
}

.ep-inv-btn{
  min-height:55px;

  padding:15px 26px;

  border-radius:50px;

  display:inline-flex;

  align-items:center;
  justify-content:center;

  font-size:12px;

  font-weight:700;

  line-height:1.5;

  transition:.25s ease;
}

.ep-inv-btn:hover{
  transform:translateY(-2px);
}

.ep-inv-primary{
  background:#d8b66a;

  color:#071915!important;
}

.ep-inv-secondary{
  border:1px solid rgba(255,255,255,.45);

  color:#fff!important;

  background:rgba(7,25,21,.15);

  backdrop-filter:blur(5px);
}


/* =========================================================
PROOF
========================================================= */

.ep-inv-proof{
  display:grid;

  grid-template-columns:repeat(3,minmax(0,1fr));

  margin-top:36px;

  max-width:630px;

  border-top:1px solid rgba(255,255,255,.22);
  border-bottom:1px solid rgba(255,255,255,.16);
}

.ep-inv-proof div{
  padding:17px 14px;

  border-right:1px solid rgba(255,255,255,.14);
}

.ep-inv-proof div:first-child{
  border-right:0;

  padding-right:0;
}

.ep-inv-proof strong{
  display:block;

  margin-bottom:4px;

  font-family:var(--title-font);

  font-size:19px;

  font-weight:500;

  color:#e7c878;
}

.ep-inv-proof span{
  font-size:11px;

  color:rgba(255,255,255,.75);
}


/* =========================================================
TWO COLUMNS
========================================================= */

.ep-inv-intro-grid{
  display:grid;

  grid-template-columns:1fr 1fr;

  gap:60px;

  align-items:center;
}

.ep-inv-intro-grid img{
  width:100%;

  border-radius:25px;

  box-shadow:0 20px 50px rgba(0,0,0,.12);
}


/* =========================================================
CARDS
========================================================= */

.ep-patient-grid{
  display:grid;

  grid-template-columns:repeat(3,1fr);

  gap:24px;

  margin-top:38px;
}

.ep-patient-card{
  height:100%;

  padding:30px;

  border-radius:22px;

  background:#fff;

  border:1px solid rgba(7,25,21,.08);

  box-shadow:0 12px 35px rgba(7,25,21,.06);

  transition:.25s ease;
}

.ep-patient-card:hover{
  transform:translateY(-3px);

  border-color:rgba(216,182,106,.45);
}

.ep-patient-card h3{
  margin:0 0 15px!important;

  font-family:var(--title-font)!important;

  font-size:23px!important;

  line-height:1.5!important;

  font-weight:500!important;

  color:#071915!important;
}

.ep-patient-card p{
  margin:0;

  color:#56606c;

  font-size:15px;

  line-height:1.9;
}


/* =========================================================
TABLE
========================================================= */

.ep-inv-table-wrap{
  overflow:auto;

  margin-top:40px;

  border:1px solid var(--line);
}

.ep-inv-table{
  width:100%;

  border-collapse:collapse;

  min-width:650px;

  background:#fff;
}

.ep-inv-table th{
  padding:18px;

  text-align:right;

  background:#071915;

  color:#fff;
}

.ep-inv-table td{
  padding:18px;

  border-bottom:1px solid #ddd;

  line-height:1.8;
}


/* =========================================================
FAQ
========================================================= */

.ep-faq details{
  background:#fbf7ef;

  border-radius:18px;

  padding:25px;

  margin-bottom:15px;

  box-shadow:0 10px 30px rgba(0,0,0,.06);
}

.ep-faq summary{
  cursor:pointer;

  font-family:var(--title-font);

  font-size:18px;

  font-weight:600;

  line-height:1.7;

  color:#071915;

  list-style:none;
}

.ep-faq summary::-webkit-details-marker{
  display:none;
}

.ep-faq p{
  margin:18px 0 0;

  font-size:15.5px;

  line-height:1.95;

  color:#555;
}


/* =========================================================
INTERNAL / EXTERNAL LINKS
========================================================= */

.ep-related{
  margin:30px 0 0;

  padding:0;

  list-style:none;

  font-size:16px;

  line-height:2;
}

.ep-related li{
  margin-bottom:9px;
}

.ep-related a{
  color:#927044!important;

  font-weight:700;

  text-decoration:underline!important;

  text-underline-offset:4px;
}


/* EXTERNAL RESOURCE */

.ep-inv-source{
  margin-top:35px;

  padding:24px;

  border:1px solid rgba(7,25,21,.10);

  border-right:3px solid #d8b66a;

  background:#fff;
}

.ep-inv-source strong{
  display:block;

  margin-bottom:7px;

  color:#071915;
}

.ep-inv-source p{
  margin:0 0 11px;

  color:#667085;

  line-height:1.9;
}

.ep-inv-source a{
  color:#927044!important;

  font-weight:700;

  text-decoration:underline!important;
}


/* =========================================================
TABLET
========================================================= */

@media(min-width:1200px){

  .ep-inv-hero picture img{
    object-position:70% 28%;
  }

}

@media(min-width:768px) and (max-width:1199px){

  .ep-inv-hero picture img{
    object-position:76% 28%;
  }

  .ep-inv-content{
    width:min(580px,55vw);
  }

}

@media(max-width:900px){

  .ep-patient-grid{
    grid-template-columns:1fr 1fr;
  }

}


/* =========================================================
MOBILE
VISAGE / IMAGE D'ABORD
========================================================= */

@media(max-width:768px){

  .ep-inv-wrap{
    width:calc(100% - 36px);
  }


  .ep-inv-section{
    padding:65px 0;
  }


  .ep-inv-hero{
    min-height:100svh;

    align-items:flex-start;
  }


  /*
  Photo visible en haut.
  */
  .ep-inv-hero picture img{
    object-position:center top;
  }


  /*
  Pratiquement aucun voile sur le visage.
  Le sombre commence sous l'image.
  */
  .ep-inv-overlay{
    background:
      linear-gradient(
        180deg,
        rgba(7,25,21,0) 0%,
        rgba(7,25,21,0) 27%,
        rgba(7,25,21,.02) 35%,
        rgba(7,25,21,.09) 43%,
        rgba(7,25,21,.26) 51%,
        rgba(7,25,21,.56) 61%,
        rgba(7,25,21,.84) 71%,
        rgba(7,25,21,.96) 82%,
        #071915 100%
      );
  }


  .ep-inv-hero .ep-inv-wrap{
    width:calc(100% - 36px);

    /*
    Réserve une grande zone
    uniquement pour la photo.
    */
    padding:
      clamp(350px,51svh,480px)
      0
      45px;

    direction:rtl;
  }


  .ep-inv-content{
    width:100%;

    max-width:100%;

    margin:0;

    padding:0;
  }


  .ep-inv-kicker{
    margin-bottom:13px;

    font-size:9.5px;
  }


  .ep-inv-kicker::before{
    width:25px;

    flex-basis:25px;
  }


  .ep-inv-hero h1{
    max-width:100%;

    font-size:clamp(35px,9.6vw,48px)!important;

    line-height:1.4!important;
  }


  .ep-inv-lead{
    font-size:15.5px;

    line-height:1.9;
  }


  .ep-inv-proof{
    grid-template-columns:1fr;
  }


  .ep-inv-proof div{
    padding:12px 0;

    border-right:0;

    border-bottom:1px solid rgba(255,255,255,.15);
  }


  .ep-inv-proof div:last-child{
    border-bottom:0;
  }


  .ep-inv-intro-grid{
    grid-template-columns:1fr;

    gap:35px;
  }


  .ep-patient-grid{
    grid-template-columns:1fr;
  }


  .ep-inv-buttons{
    display:grid;

    grid-template-columns:1fr;
  }


  .ep-inv-btn{
    width:100%;
  }

}