
/* =========================
   VARIABLES
   ========================= */
:root{
  --bg-dark: #0f172a;
  --overlay: rgba(10,15,25,0.65);
  --text-light: #ffffff;

  /* espace stable ~1cm visuel */
  --gap-1cm-px: 38px;

  /* rotateur: hauteur stable */
  --rotator-h: 420px;
  --rotator-h-mobile: 260px;
}

/* =========================
   RESET / BASE
   ========================= */
*{ box-sizing:border-box; margin:0; padding:0; }

html, body{ height:100%; }

body{
  font-family: Arial, Helvetica, sans-serif;
  background: var(--bg-dark);
  color: var(--text-light);
  display:flex;
  flex-direction:column;
}

/* =========================
   BACKGROUND
   ========================= */
.bg-video{
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  z-index: -3;
  pointer-events:none;
}

.page-overlay{
  position: fixed;
  inset: 0;
  background: rgb(28, 33, 42);
  z-index: -2;
}

.bg-logo{
  position: fixed;
  right: 0;
  bottom: 0;
  width: 60vw;
  opacity: 0.035;
  z-index: -1;
  pointer-events:none;
}

/* Home: pas de video */
.page-home .bg-video{ display:none; }

/* =========================
   IMAGE FIXE FULLSCREEN
   ========================= */
.imagexxx{
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;

  object-fit: cover;
  object-position: center;

  z-index: -0;
  pointer-events: none;
}

/* =========================
   CONTENT WRAPPER
   ========================= */
.page-content{
  max-width: 1200px;
  margin: 0 auto;
  padding: 110px 6% 60px;
  flex: 1 0 auto;
}

/* =========================
   I18N VISIBILITY
   ========================= */
[data-lang]{ display:inline; }
/* défaut FR */
[data-lang]:not([data-lang="fr"]){ display:none; }

/* actions */
.page-contact .form-actions{
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.page-contact .btn-primary{
  padding: 16px 34px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.35);
  background: rgba(255,255,255,0.10);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}

.page-contact .btn-primary:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,0.14);
  border-color: rgba(255,255,255,0.6);
}

.page-contact .form-success{
  font-weight: 700;
  color: #7CFC9A;
  }
/* =========================
   SERVICES GRID (3 colonnes)
   ========================= */

.svc-grid{
  width: 100%;
  padding: 35px 5vw 10px; /* juste après le header */
}

.svc-container{
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

/* carte */
.svc-card{
  position: relative;
  height: 320px;
  border-radius: 14px;
  overflow: hidden;
  background: #000;
}

/* image en fond */
.svc-img{
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
  transition: transform 0.8s ease;
}

/* overlay sombre (toujours présent) */
.svc-card::after{
  content:"";
  position:absolute;
  inset:0;
  background: rgba(0,0,0,0.35);
  transition: background 0.35s ease;
  z-index: 1;
}

/* Titre visible par défaut */
.svc-front{
  position: relative;
  z-index: 2;
  height: 100%;
  display:flex;
  align-items:flex-end;
  padding: 22px;
}

.svc-front h3{
  margin:0;
  color:#fff;
  font-size: 1.25rem;
  line-height: 1.2;
  text-shadow: 0 8px 30px rgba(0,0,0,0.6);
}

/* zone hover (cachée au départ) */
.svc-hover{
  position:absolute;
  inset:0;
  z-index: 3;
  padding: 22px;
  display:flex;
  flex-direction: column;
  justify-content: space-between;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.35s ease, transform 0.35s ease;
  pointer-events: none; /* important: évite clic quand caché */
}

.svc-hover p{
  margin:0;
  color:#fff;
  opacity: 0.95;
  font-size: 1.3rem;
  line-height: 1.35;
  max-width: 90%;
}

/* flèche cliquable */
.svc-arrow{
  pointer-events: auto; /* réactive le clic uniquement sur la flèche */
  width: 46px;
  height: 46px;
  border-radius: 999px;
  display:flex;
  align-items:center;
  justify-content:center;
  text-decoration:none;
  color:#fff;
  border: 1px solid rgba(255,255,255,0.75);
  background: rgba(0,0,0,0.25);
  backdrop-filter: blur(8px);
  font-size: 20px;
  align-self: flex-end;
  transition: transform 0.2s ease, background 0.2s ease;
}

.svc-arrow:hover{
  transform: translateX(2px);
  background: rgba(0,0,0,0.4);
}

/* HOVER: image + overlays + texte */
.svc-card:hover .svc-img{
  transform: scale(1.10);
}
.svc-card:hover::after{
  background: rgba(0,0,0,0.68);
}
.svc-card:hover .svc-hover{
  opacity: 1;
  transform: translateY(0);
}

/* Quand hover: on peut atténuer le titre */
.svc-card:hover .svc-front{
  opacity: 0.15;
  transition: opacity 0.25s ease;
}

/* responsive */
@media (max-width: 1000px){
  .svc-container{ grid-template-columns: 1fr; }
  .svc-card{ height: 260px; }
}
/* Arabic RTL niceness */
html[dir="rtl"] .svc-hover p,
html[dir="rtl"] .svc-front h3{
  text-align: right;
}

html[dir="rtl"] .svc-arrow{
  align-self: flex-start; /* flèche à gauche en RTL */
}

/* =========================
   MODAL SERVICES (3/4 écran)
   ========================= */

.svc-modal{
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none; /* ouvert via .is-open */
}

.svc-modal.is-open{ display:block; }

.svc-modal-overlay{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.65);
}

.svc-modal-box{
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 75vw;
  height: 75vh;
  max-width: 1200px;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 40px 120px rgba(0,0,0,0.55);
}

.svc-modal-bg{
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.05);
}

.svc-modal-bg-overlay{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.80);
}

.svc-modal-close{
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 5;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.35);
  background: rgba(0,0,0,0.35);
  color: #fff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

.svc-modal-content{
  position: relative;
  z-index: 4;
  height: 100%;
  padding: 34px;
  overflow-y: auto; /* ✅ scroll interne */
  color: #fff;
}

.svc-modal-content h2{
  margin: 0 0 18px;
  font-size: clamp(24px, 2.4vw, 42px);
}

.svc-modal-text{
  font-size: 1.4rem;
  line-height: 1.65;
  max-width: 900px;
  opacity: 0.95;
}

/* scrollbar clean */
.svc-modal-content::-webkit-scrollbar{ width: 6px; }
.svc-modal-content::-webkit-scrollbar-thumb{
  background: rgba(255,255,255,0.25);
  border-radius: 10px;
}

/* RTL */
html[dir="rtl"] .svc-modal-content{ text-align: right; }

/* mobile */
@media (max-width: 900px){
  .svc-modal-box{
    width: 92vw;
    height: 80vh;
  }
  .svc-modal-content{ padding: 22px; }
}






:root{
  --bg: #07111f;
  --bg-soft: #0c1a2d;
  --card: rgba(255,255,255,0.06);
  --card-border: rgba(255,255,255,0.10);
  --text: #f4f7fb;
  --muted: #b8c3d6;
  --accent: #2ec5ff;
  --accent-2: #78e1ff;
  --gold: #d6b15f;
  --shadow: 0 20px 60px rgba(0,0,0,0.28);
  --radius: 22px;
  --container: 1180px;
}

*{ box-sizing: border-box; }

html{
  scroll-behavior: smooth;
}

body{
  margin: 0;
  background:
    radial-gradient(circle at top right, rgba(46,197,255,0.09), transparent 25%),
    radial-gradient(circle at top left, rgba(214,177,95,0.08), transparent 20%),
    linear-gradient(180deg, #050c16 0%, #07111f 100%);
  color: var(--text);
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  line-height: 1.6;
}

img{
  max-width: 100%;
  display: block;
}

.container{
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
}

.narrow{
  width: min(900px, calc(100% - 40px));
  margin: 0 auto;
}

/* header */
.site-header{
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
  background: rgba(7,17,31,0.78);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.header-inner{
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand{
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
}

.brand-logo{
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.brand-name{
  font-weight: 800;
  letter-spacing: 0.04em;
}

.main-nav{
  display: flex;
  align-items: center;
  gap: 22px;
}

.main-nav a{
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  transition: 0.25s ease;
}

.main-nav a:hover,
.main-nav a.active{
  color: var(--text);
}

/* multi-lang */
[data-lang]{
  display: none;
}

html[lang="fr"] [data-lang="fr"],
html[lang="en"] [data-lang="en"],
html[lang="ar"] [data-lang="ar"]{
  display: inline;
}

html[lang="ar"] body{
  direction: rtl;
  font-family: "Tahoma", "Arial", sans-serif;
}

/* hero */
.exp-hero{
  padding: 84px 0 56px;
}

.exp-hero-grid{
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  align-items: center;
}

.exp-kicker,
.section-kicker{
  margin: 0 0 10px;
  color: var(--accent-2);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 12px;
  font-weight: 800;
}

.exp-title{
  margin: 0 0 18px;
  font-size: clamp(34px, 4.5vw, 58px);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.exp-subtitle{
  margin: 0;
  max-width: 760px;
  color: var(--muted);
  font-size: 18px;
}

.exp-hero-cta{
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.btn-primary,
.btn-secondary{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  transition: 0.25s ease;
}

.btn-primary{
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #03111d;
  box-shadow: 0 12px 30px rgba(46,197,255,0.28);
}

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

.btn-secondary{
  color: var(--text);
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.04);
}

.btn-secondary:hover{
  background: rgba(255,255,255,0.08);
}

.exp-hero-card{
  display: flex;
  justify-content: flex-end;
}

.hero-mini-card{
  width: min(440px, 100%);
  padding: 28px;
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.04));
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow);
}

.hero-mini-card h3{
  margin: 0 0 16px;
  font-size: 24px;
}

.hero-mini-card ul{
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

html[lang="ar"] .hero-mini-card ul{
  padding-left: 0;
  padding-right: 18px;
}

/* intro */
.exp-intro{
  padding: 10px 0 18px;
}

.exp-intro-text{
  margin: 0;
  text-align: center;
  color: var(--muted);
  font-size: 18px;
}

/* sections */
.exp-section{
  padding: 72px 0;
}

.exp-section-alt{
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.03));
  border-top: 1px solid rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.section-head{
  max-width: 860px;
  margin-bottom: 30px;
}

.section-head.centered{
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-head h2{
  margin: 0 0 14px;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.12;
}

.section-head p{
  margin: 0;
  color: var(--muted);
  font-size: 17px;
}

/* cards */
.exp-cards-grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.exp-card{
  padding: 24px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow);
  transition: 0.25s ease;
}

.exp-card:hover{
  transform: translateY(-4px);
  border-color: rgba(46,197,255,0.28);
}

.exp-card h3{
  margin: 0 0 10px;
  font-size: 22px;
}

.exp-card p{
  margin: 0;
  color: var(--muted);
}

/* benefits */
.exp-benefits{
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 18px;
  margin-top: 22px;
}

.benefit-box{
  padding: 22px;
  border-radius: var(--radius);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
}

.benefit-box h4{
  margin: 0 0 12px;
  font-size: 19px;
  color: var(--gold);
}

.benefit-box ul{
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

html[lang="ar"] .benefit-box ul{
  padding-left: 0;
  padding-right: 18px;
}

/* sectors */
.sector-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.sector-card{
  padding: 24px 20px;
  text-align: center;
  font-weight: 700;
  border-radius: 20px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  transition: 0.25s ease;
}

.sector-card:hover{
  transform: translateY(-4px);
  border-color: rgba(214,177,95,0.3);
}

/* method */
.method-grid{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.method-step{
  position: relative;
  padding: 24px;
  border-radius: 22px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
}

.step-no{
  display: inline-block;
  margin-bottom: 14px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--accent-2);
}

.method-step h3{
  margin: 0 0 10px;
  font-size: 22px;
}

.method-step p{
  margin: 0;
  color: var(--muted);
}

/* cta */
.exp-cta{
  padding: 80px 0 90px;
}

.exp-cta-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 32px;
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(46,197,255,0.12), rgba(214,177,95,0.08)),
    rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.09);
  box-shadow: var(--shadow);
}

.exp-cta-inner h2{
  margin: 0 0 10px;
  font-size: clamp(28px, 3vw, 42px);
}

.exp-cta-inner p{
  margin: 0;
  color: var(--muted);
  max-width: 760px;
}

.exp-cta-actions{
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* footer */
.site-footer{
  padding: 26px 0 34px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.footer-inner{
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}

/* responsive */
@media (max-width: 1100px){
  .exp-hero-grid,
  .exp-benefits,
  .exp-cta-inner{
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: flex-start;
  }

  .exp-hero-card{
    justify-content: flex-start;
  }

  .method-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 780px){
  .header-inner{
    flex-direction: column;
    justify-content: center;
    padding: 14px 0;
  }

  .main-nav{
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
  }

  .exp-hero{
    padding: 64px 0 40px;
  }

  .exp-cards-grid,
  .sector-grid,
  .method-grid{
    grid-template-columns: 1fr;
  }

  .exp-subtitle,
  .exp-intro-text,
  .section-head p{
    font-size: 16px;
  }

  .exp-card,
  .benefit-box,
  .method-step,
  .sector-card{
    padding: 20px;
  }
}

@media (max-width: 520px){
  .container{
    width: min(var(--container), calc(100% - 24px));
  }

  .exp-title{
    font-size: 32px;
  }

  .btn-primary,
  .btn-secondary{
    width: 100%;
  }

  .hero-mini-card{
    padding: 22px;
  }

  .exp-cta-inner{
    padding: 24px;
  }
}



.it-modal-overlay{
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.35);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 9998;
}

.it-modal-overlay.is-active{
  opacity: 1;
  visibility: visible;
}



/* =========================================================
   IT VISUAL MODAL - VERSION COMPLETE
   ========================================================= */

/* ---------- OVERLAY ---------- */
.it-modal-overlay{
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 9998;
}

.it-modal-overlay.is-active{
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* ---------- CONTENEUR GLOBAL DE LA MODALE ---------- */
.it-visual-modal{
  position: fixed;
  inset: 0;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.32s ease, visibility 0.32s ease;
}

.it-visual-modal.is-active{
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* ---------- IMAGE DE FOND GLOBALE (ETAPE 1) ---------- */

/* ---------- BLOC DE CONTENU (ETAPE 1) ---------- */
.it-visual-content{
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(1120px, calc(100% - 44px));
  height: min(82vh, 760px);
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow:
    0 28px 80px rgba(0,0,0,0.55),
    0 0 0 1px rgba(255,255,255,0.06);
  background: rgba(5, 12, 24, 0.58);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  transition:
    opacity 0.28s ease,
    transform 0.28s ease,
    visibility 0.28s ease;
  z-index: 2;
}

.it-visual-content.is-hidden{
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.96);
}

.it-visual-content-body{
  position: relative;
  height: 100%;
  overflow-y: auto;
  padding: 42px 48px 34px;
  color: #ffffff;
}

/* Scrollbar */
.it-visual-content-body::-webkit-scrollbar{
  width: 10px;
}

.it-visual-content-body::-webkit-scrollbar-track{
  background: transparent;
}

.it-visual-content-body::-webkit-scrollbar-thumb{
  background: rgba(255,255,255,0.22);
  border-radius: 999px;
}

.it-visual-content-body::-webkit-scrollbar-thumb:hover{
  background: rgba(255,255,255,0.32);
}

/* ---------- TYPO ---------- */
.it-visual-content h2{
  margin: 0 0 18px;
  padding-right: 74px;
  font-size: clamp(1.8rem, 2.8vw, 2.7rem);
  line-height: 1.12;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.01em;
}

.it-visual-content p{
  margin: 0 0 22px;
  max-width: 860px;
  font-size: 1.05rem;
  line-height: 1.8;
  color: rgba(255,255,255,0.94);
}

.it-visual-content ul{
  margin: 0;
  padding: 0;
  list-style: none;
  max-width: 900px;
}

.it-visual-content li{
  position: relative;
  margin-bottom: 16px;
  padding-left: 24px;
  font-size: 1rem;
  line-height: 1.72;
  color: rgba(255,255,255,0.95);
}

.it-visual-content li::before{
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2ec5ff, #0ea5e9);
  box-shadow: 0 0 14px rgba(46,197,255,0.40);
}

/* ---------- ACTIONS ---------- */
.it-visual-actions{
  margin-top: 28px;
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}

.it-continue-btn{
  min-width: 170px;
  padding: 14px 22px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #2ec5ff, #0ea5e9);
  color: #ffffff;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 14px 36px rgba(0,0,0,0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.it-continue-btn:hover{
  transform: translateY(-1px);
  box-shadow: 0 18px 42px rgba(0,0,0,0.34);
}

/* ---------- BOUTON FERMER DE LA MODALE DE CONTENU ---------- */
.it-modal-close-top{
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 3;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 999px;
  background: rgba(255,255,255,0.14);
  color: #ffffff;
  font-size: 1.45rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.22s ease, background 0.22s ease;
}

.it-modal-close-top:hover{
  transform: scale(1.06) rotate(90deg);
  background: rgba(255,255,255,0.22);
}

/* =========================================================
   ETAPE 2 : IMAGE SEULE CENTREE, NON COUPEE
   ========================================================= */

.it-image-stage{
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}

.it-image-stage.is-active{
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Cadre de l'image seule */
.it-image-frame{
  position: relative;
  width: min(1120px, calc(100% - 44px));
  height: min(82vh, 760px);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 24px;
  overflow: hidden;
  background: rgba(8, 15, 28, 0.18);
  box-shadow:
    0 28px 80px rgba(0,0,0,0.50),
    0 0 0 1px rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.08);
}

/* Image non coupée */
.it-stage-image{
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

/* ---------- BOUTON FERMER DE L'IMAGE ---------- */
.it-image-close{
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 3;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 999px;
  background: rgba(255,255,255,0.14);
  color: #ffffff;
  font-size: 1.45rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;

  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: scale(0.86);

  transition:
    opacity 0.28s ease,
    visibility 0.28s ease,
    transform 0.28s ease,
    background 0.22s ease;
}

.it-image-close.is-active{
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: scale(1);
}

.it-image-close:hover{
  background: rgba(255,255,255,0.22);
  transform: scale(1.06) rotate(90deg);
}

/* ---------- RTL ---------- */
html[dir="rtl"] .it-visual-content-body{
  text-align: right;
}

html[dir="rtl"] .it-visual-content h2{
  padding-right: 0;
  padding-left: 74px;
}

html[dir="rtl"] .it-visual-content li{
  padding-left: 0;
  padding-right: 24px;
}

html[dir="rtl"] .it-visual-content li::before{
  left: auto;
  right: 0;
}

html[dir="rtl"] .it-modal-close-top{
  right: auto;
  left: 18px;
}

html[dir="rtl"] .it-image-close{
  right: auto;
  left: 18px;
}

/* ---------- RESPONSIVE TABLET ---------- */
@media (max-width: 991px){
  .it-visual-content{
    width: calc(100% - 24px);
    height: min(84vh, 760px);
    border-radius: 20px;
  }

  .it-image-frame{
    width: calc(100% - 24px);
    height: min(84vh, 760px);
    border-radius: 20px;
  }

  .it-visual-content-body{
    padding: 30px 24px 24px;
  }

  .it-visual-content h2{
    padding-right: 62px;
    font-size: 1.75rem;
  }

  html[dir="rtl"] .it-visual-content h2{
    padding-left: 62px;
  }
}

/* ---------- RESPONSIVE MOBILE ---------- */
@media (max-width: 768px){
  .it-visual-content{
    width: calc(100% - 14px);
    height: 86vh;
    border-radius: 18px;
  }

  .it-image-frame{
    width: calc(100% - 14px);
    height: 86vh;
    border-radius: 18px;
  }

  .it-visual-content-body{
    padding: 22px 18px 18px;
  }

  .it-visual-content h2{
    margin-bottom: 14px;
    padding-right: 54px;
    font-size: 1.45rem;
    line-height: 1.2;
  }

  .it-visual-content p{
    margin-bottom: 18px;
    font-size: 0.98rem;
    line-height: 1.68;
  }

  .it-visual-content li{
    margin-bottom: 12px;
    font-size: 0.95rem;
    line-height: 1.6;
    padding-left: 20px;
  }

  .it-visual-content li::before{
    top: 10px;
    width: 8px;
    height: 8px;
  }

  .it-modal-close-top,
  .it-image-close{
    top: 12px;
    right: 12px;
    width: 42px;
    height: 42px;
    font-size: 1.2rem;
  }

  html[dir="rtl"] .it-visual-content h2{
    padding-left: 54px;
  }

  html[dir="rtl"] .it-modal-close-top,
  html[dir="rtl"] .it-image-close{
    right: auto;
    left: 12px;
  }
}

.it-image-close{
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 5;

  width: 44px;
  height: 44px;

  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.25);

  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(6px);

  color: #fff;
  font-size: 1.4rem;

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

  cursor: pointer;

  transition: all 0.25s ease;
}
.it-image-close{
  box-shadow:
    0 8px 20px rgba(0,0,0,0.45),
    0 0 0 1px rgba(255,255,255,0.1);
}

.it-image-close:hover{
  transform: scale(1.1) rotate(90deg);
  background: rgba(0, 0, 0, 0.65);
}