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

@import url("https://fonts.googleapis.com/css2?family=Noto+Kufi+Arabic:wght@400;500;600;700&family=Noto+Sans+Arabic:wght@400;500;600;700&display=swap");

.epg-page{
  --navy:#071426;
  --navy2:#102a49;
  --gold:#d7b878;
  --paper:#fffaf2;
  --soft:#f6efe4;
  --text:#132238;
  --muted:#667184;

  width:100%;
  max-width:100%;

  overflow:hidden;

  background:var(--paper);

  color:var(--text);

  font-family:"Noto Sans Arabic",Tahoma,Arial,sans-serif;

  direction:rtl;
  text-align:right;

  -webkit-font-smoothing:antialiased;
}


.epg-page *,
.epg-page *::before,
.epg-page *::after{
  box-sizing:border-box;
}


.epg-page img,
.epg-page svg{
  max-width:100%;
  display:block;
}


.epg-page a{
  color:inherit;
}


.epg-wrap{
  width:min(1160px,calc(100% - 44px));
  margin:0 auto;
}



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

.epg-hero{
  position:relative;

  min-height:820px;

  display:flex;
  align-items:center;

  overflow:hidden;

  background:var(--navy);

  color:#fff;
}


.epg-hero-media{
  position:absolute;
  inset:0;
}


.epg-hero-media img{
  width:100%;
  height:100%;

  object-fit:cover;

  /*
    La composition physique de l'image
    est conservée telle quelle.
  */
  object-position:67% center;
}


.epg-hero-overlay{
  position:absolute;
  inset:0;

  /*
    On ne retourne pas le dégradé
    simplement parce que la page est RTL.
    La composition de l'image reste identique.
  */
  background:
    radial-gradient(
      circle at 15% 20%,
      rgba(215,184,120,.22),
      transparent 34%
    ),
    linear-gradient(
      90deg,
      rgba(7,20,38,.97),
      rgba(7,20,38,.82) 42%,
      rgba(7,20,38,.22)
    );
}


.epg-hero-content{
  position:relative;
  z-index:2;

  max-width:720px;

  padding:128px 0 90px;

  text-align:right;
}



/* =========================================================
 TYPOGRAPHY
========================================================= */

.epg-kicker{
  margin:0 0 16px;

  color:var(--gold);

  font-size:12px;
  font-weight:700;

  line-height:1.8;

  letter-spacing:0;

  text-transform:none;
}


.epg-hero h1,
.epg-page h2{

  margin:0;

  font-family:"Noto Kufi Arabic",Tahoma,Arial,sans-serif;

  font-weight:500;

  letter-spacing:0;
}


.epg-hero h1{

  color:#fff;

  font-size:clamp(45px,5.8vw,78px);

  line-height:1.48;
}


.epg-hero h1 span{

  display:block;

  color:var(--gold);

  font-weight:400;
}


.epg-lead{

  max-width:660px;

  margin:24px 0 0;

  color:rgba(255,255,255,.9);

  font-size:19px;

  line-height:2;
}



/* =========================================================
 TAGS
========================================================= */

.epg-tags{

  display:flex;

  flex-wrap:wrap;

  gap:10px;

  margin:28px 0;
}


.epg-tags span{

  padding:9px 14px;

  border:1px solid rgba(215,184,120,.36);

  border-radius:999px;

  background:rgba(255,255,255,.08);

  color:#fff;

  font-size:12px;

  font-weight:700;
}



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

.epg-actions{

  display:flex;

  flex-wrap:wrap;

  gap:12px;
}


.epg-btn{

  display:inline-flex;

  align-items:center;

  justify-content:center;

  min-height:52px;

  padding:14px 24px;

  border-radius:999px;

  font-size:12px;

  font-weight:700;

  letter-spacing:0;

  text-transform:none;

  text-decoration:none!important;

  transition:.25s ease;
}


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


.epg-btn-main{

  background:var(--gold);

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


.epg-btn-soft{

  border:1px solid rgba(255,255,255,.38);

  background:rgba(255,255,255,.08);

  color:#fff!important;
}


.epg-btn-dark{

  background:var(--navy);

  color:#fff!important;
}


.epg-note{

  max-width:620px;

  margin:20px 0 0;

  color:rgba(255,255,255,.68);

  font-size:12px;

  line-height:1.9;
}



/* =========================================================
 TRUST
========================================================= */

.epg-trust{

  background:#fff;

  border-bottom:1px solid rgba(7,20,38,.1);
}


.epg-trust-grid{

  display:grid;

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


.epg-trust article{

  padding:28px 24px;

  border-left:1px solid rgba(7,20,38,.1);
}


.epg-trust article:last-child{
  border-left:0;
}


.epg-trust strong{

  display:block;

  margin-bottom:8px;

  color:rgba(164,125,60,.55);

  font-family:"Noto Kufi Arabic",Tahoma,sans-serif;

  font-size:30px;

  font-weight:400;
}


.epg-trust span{

  display:block;

  color:var(--text);

  font-size:13px;

  font-weight:800;
}


.epg-trust p{

  margin:6px 0 0;

  color:var(--muted);

  font-size:12px;

  line-height:1.75;
}



/* =========================================================
 SECTIONS
========================================================= */

.epg-section{
  padding:92px 0;
}


.epg-soft{
  background:var(--soft);
}


.epg-dark{

  background:var(--navy);

  color:#fff;
}


.epg-page h2{

  color:var(--navy);

  font-size:clamp(34px,4.3vw,58px);

  line-height:1.55;
}


.epg-dark h2{
  color:#fff;
}


.epg-two{

  display:grid;

  grid-template-columns:.9fr 1.1fr;

  gap:70px;

  align-items:start;
}


.epg-text p,
.epg-head p,
.epg-card p,
.epg-steps p,
.epg-link-card p,
.epg-faq p,
.epg-cta p{

  color:var(--muted);

  font-size:16px;

  line-height:1.95;
}


.epg-text a{

  color:#365f86;

  font-weight:700;

  text-decoration:underline;

  text-decoration-color:rgba(54,95,134,.3);

  text-underline-offset:4px;
}


.epg-dark p{
  color:rgba(255,255,255,.76);
}


.epg-head{

  max-width:820px;

  margin:0 auto 52px;

  text-align:center;
}



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

.epg-grid{

  display:grid;

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

  gap:18px;
}


#epg-tratamientos .epg-grid{

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


.epg-card,
.epg-link-card{

  padding:30px;

  border:1px solid rgba(7,20,38,.1);

  border-radius:22px;

  background:#fff;

  box-shadow:0 18px 48px rgba(7,20,38,.07);
}


.epg-link-card{

  display:block;

  text-decoration:none!important;

  transition:.25s ease;
}


.epg-link-card:hover{

  transform:translateY(-4px);

  border-color:rgba(215,184,120,.5);
}


.epg-dark .epg-link-card{

  border-color:rgba(255,255,255,.14);

  background:rgba(255,255,255,.06);

  box-shadow:none;
}


.epg-card span,
.epg-link-card span{

  color:var(--gold);

  font-family:"Noto Kufi Arabic",Tahoma,sans-serif;

  font-size:27px;
}


.epg-card h3,
.epg-link-card h3,
.epg-steps h3{

  margin:18px 0 10px;

  color:var(--navy);

  font-family:"Noto Kufi Arabic",Tahoma,sans-serif;

  font-size:22px;

  line-height:1.65;

  font-weight:500;
}


.epg-dark h3{
  color:#fff;
}



/* =========================================================
 STEPS
========================================================= */

.epg-steps{

  display:grid;

  gap:14px;
}


.epg-steps article{

  display:grid;

  grid-template-columns:58px 1fr;

  gap:18px;

  padding:24px;

  border:1px solid rgba(7,20,38,.1);

  border-radius:20px;

  background:#fff;
}


.epg-steps strong{

  color:var(--gold);

  font-family:"Noto Kufi Arabic",Tahoma,sans-serif;

  font-size:27px;

  font-weight:400;
}



/* =========================================================
 INTERNAL HUB
========================================================= */

.epg-hub{

  display:grid;

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

  gap:14px;
}


.epg-hub a{

  min-height:210px;

  display:flex;

  flex-direction:column;

  padding:25px;

  border:1px solid rgba(7,20,38,.1);

  border-radius:20px;

  background:#fff;

  text-decoration:none!important;

  transition:.25s ease;
}


.epg-hub a:hover{

  transform:translateY(-4px);

  border-color:rgba(215,184,120,.55);

  box-shadow:0 18px 40px rgba(7,20,38,.08);
}


.epg-hub span{

  color:var(--gold);

  font-size:11px;

  font-weight:800;
}


.epg-hub strong{

  display:block;

  margin-top:24px;

  color:var(--navy);

  font-family:"Noto Kufi Arabic",Tahoma,sans-serif;

  font-size:21px;

  line-height:1.65;

  font-weight:500;
}


.epg-hub small{

  display:block;

  margin-top:auto;

  padding-top:25px;

  color:#365f86;

  font-size:11px;

  font-weight:700;
}



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

.epg-faq{

  display:grid;

  gap:12px;
}


.epg-faq details{

  padding:22px 24px;

  border:1px solid rgba(7,20,38,.1);

  border-radius:18px;

  background:#fff;
}


.epg-faq summary{

  cursor:pointer;

  color:var(--navy);

  font-size:18px;

  font-weight:800;

  line-height:1.8;
}



/* =========================================================
 CTA
========================================================= */

.epg-cta{

  padding:78px 0;

  background:
    linear-gradient(
      135deg,
      var(--navy),
      var(--navy2)
    );

  color:#fff;

  text-align:center;
}


.epg-cta h2{
  color:#fff;
}


.epg-cta p{

  max-width:680px;

  margin:20px auto 28px;
}



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

@media(max-width:900px){

  .epg-trust-grid,
  .epg-grid,
  #epg-tratamientos .epg-grid,
  .epg-hub{

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


  .epg-two{

    grid-template-columns:1fr;

    gap:34px;
  }

}



/* =========================================================
 MOBILE
========================================================= */

@media(max-width:767px){

  html,
  body{
    overflow-x:hidden;
  }


  .epg-page{

    width:100%;

    max-width:100%;

    overflow-x:hidden;
  }


  .epg-wrap{

    width:100%;

    max-width:100%;

    padding-left:18px;

    padding-right:18px;
  }


  .epg-hero{

    width:100%;

    min-height:760px;

    align-items:flex-start;

    border-radius:0 0 24px 24px;
  }


  .epg-hero-media img{

    object-position:center top;
  }


  .epg-hero-overlay{

    background:
      linear-gradient(
        180deg,
        rgba(7,20,38,.18) 0%,
        rgba(7,20,38,.58) 42%,
        rgba(7,20,38,.96) 100%
      );
  }


  .epg-hero-content{

    width:100%;

    max-width:100%;

    padding:118px 18px 48px;
  }


  .epg-kicker{

    margin-bottom:13px;

    font-size:10.5px;
  }


  .epg-hero h1{

    font-size:clamp(36px,10vw,51px);

    line-height:1.55;
  }


  .epg-lead{

    margin-top:18px;

    font-size:16px;

    line-height:1.9;
  }


  .epg-tags{

    width:100%;

    gap:7px;

    margin:22px 0;
  }


  .epg-tags span{

    max-width:100%;

    padding:8px 10px;

    font-size:10.5px;

    white-space:normal;
  }


  .epg-actions{

    width:100%;

    display:grid;

    grid-template-columns:1fr;
  }


  .epg-btn{

    width:100%;

    max-width:100%;

    min-height:50px;

    padding:13px 16px;

    font-size:11px;

    white-space:normal;
  }


  .epg-note{
    font-size:11px;
  }


  .epg-section{
    padding:68px 0;
  }


  .epg-page h2{

    font-size:clamp(30px,8.5vw,43px);

    line-height:1.55;
  }


  .epg-trust-grid,
  .epg-grid,
  #epg-tratamientos .epg-grid,
  .epg-hub{

    grid-template-columns:1fr;
  }


  .epg-trust article{

    border-left:0;

    border-bottom:1px solid rgba(7,20,38,.1);
  }


  .epg-card,
  .epg-link-card,
  .epg-steps article,
  .epg-faq details,
  .epg-hub a{

    width:100%;

    max-width:100%;

    padding:22px;

    border-radius:18px;
  }


  .epg-steps article{

    grid-template-columns:44px 1fr;

    gap:14px;
  }


  .epg-text p,
  .epg-head p,
  .epg-card p,
  .epg-steps p,
  .epg-link-card p,
  .epg-faq p,
  .epg-cta p{

    font-size:15px;

    line-height:1.95;
  }


  .epg-faq summary{

    font-size:17px;
  }

}