/* ============================================================
   iDAKTO Presentation — Isolated Styles
   Prefix: ip-  (no conflicts with existing project)
   Target: 1920×1080 fullscreen touchscreen
   ============================================================ */

/* ─── Poppins fonts ───────────────────────────────────────── */
@font-face {
  font-family: 'Poppins';
  src: url('../assets/fonts/Poppins-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Poppins';
  src: url('../assets/fonts/Poppins-Italic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Poppins';
  src: url('../assets/fonts/Poppins-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Poppins';
  src: url('../assets/fonts/Poppins-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ─── Tokens spécifiques iDAKTO presentation ─────────────── */
:root {
  --ip-bg:           #15085f;
  --ip-orange:       #fd7709;
  --ip-text:         #ffffff;
  --ip-text-muted:   #a8a6b1;
  --ip-text-blue:    #cbecff;
  --ip-glass-bg:     rgba(12, 8, 55, 0.58);
  --ip-glass-border: rgba(120, 140, 230, 0.2);
  --ip-card-blur:    rgba(25, 25, 25, 0.53);
  --ip-stats-blur:   rgba(105, 100, 100, 0.2);
}

/* ─── App container ─────────────────────────────────────── */
.ip-body {
  margin: 0;
  padding: 0;
  background: var(--ip-bg);
  overflow: hidden;
  width: 100vw;
  height: 100vh;
  font-family: 'Poppins', sans-serif;
}

.ip-app {
  position: fixed;
  inset: 0;
  background: var(--ip-bg);
  overflow: hidden;
}

/* Stage : 1920×1080, mis à l'échelle via JS */
.ip-stage {
  position: absolute;
  width: 1920px;
  height: 1080px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transform-origin: center center;
  overflow: hidden;
}

/* ─── Slides ─────────────────────────────────────────────── */
.ip-slide {
  position: absolute;
  inset: 0;
  width: 1920px;
  height: 1080px;
  background: var(--ip-bg);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s ease, transform 0.45s ease;
  transform: translateX(40px);
}

.ip-slide.is-active {
  opacity: 1;
  pointer-events: all;
  transform: translateX(0);
}

.ip-slide.is-prev {
  opacity: 0;
  transform: translateX(-40px);
}

/* ─────────────────────────────────────────────────────────
   SLIDE 1 — WELCOME / SCREEN SAVER
───────────────────────────────────────────────────────── */
.ip-welcome-bg {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  z-index: 0;
  opacity: 0;
  transition: opacity 0.45s ease;
  pointer-events: none;
}

.ip-app.is-welcome .ip-welcome-bg { opacity: 1; }

/* Slide 0 transparent pour laisser voir le bg viewport */
.ip-slide[data-slide="0"] { background: transparent; }

/* Overlay sombre sur la vidéo splash pour lisibilité des textes */
.ip-welcome-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.30);
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  transition: opacity 0.45s ease;
}
.ip-app.is-welcome .ip-welcome-overlay { opacity: 1; }

/* Flèche flottante slide 3 — au-dessus du globe (hors stage) */
.ip-nav-arrow-floating {
  position: fixed;
  background: none;
  border: none;
  cursor: pointer;
  padding: 16px;
  z-index: 20;
  display: none;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s;
}

.ip-app.is-global .ip-nav-arrow-floating { display: flex; }

.ip-nav-arrow-floating svg {
  width: 28px;
  height: 52px;
  fill: none;
}

.ip-nav-arrow-floating:hover { opacity: 0.8; }
.ip-nav-arrow-floating:active { opacity: 0.6; }

.ip-welcome-logo {
  position: absolute;
  left: 692px;
  top: 35px;
  width: 536px;
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ip-welcome-logo img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* Boutons glassmorphism (Back + Lang) */
.ip-btn-glass {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 91px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(9.5px);
  -webkit-backdrop-filter: blur(9.5px);
  border: 1px solid var(--ip-orange);
  border-radius: 21px;
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  font-size: 34px;
  color: var(--ip-text-blue);
  cursor: pointer;
  text-decoration: none;
  padding: 0 31px;
  white-space: nowrap;
  transition: background 0.2s, transform 0.15s;
}

.ip-btn-glass:active { transform: scale(0.97); }

.ip-btn-back {
  left: 50px;
  top: 70px;
  width: 189px;
  gap: 6px;
}

.ip-btn-lang {
  right: 50px;
  left: auto;
  top: 70px;
  width: 189px;
  gap: 8px;
}

/* Welcome buttons — fixed to viewport edges (outside stage) */
.ip-btn-welcome {
  position: fixed;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s ease;
  z-index: 50;
  height: 58px;
  font-size: 22px;
  padding: 0 20px;
  width: auto;
}
.ip-app.is-welcome .ip-btn-welcome {
  opacity: 1;
  pointer-events: all;
}

.ip-lang-btn {
  background: none;
  border: none;
  color: var(--ip-text-blue);
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  font-size: 28px;
  cursor: pointer;
  padding: 0;
  opacity: 0.5;
  transition: opacity 0.2s;
}

.ip-lang-btn.active {
  opacity: 1;
  color: var(--ip-orange);
}

.ip-lang-sep {
  color: rgba(255, 255, 255, 0.4);
  font-size: 28px;
}

.ip-welcome-title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 472px;
  width: 1254px;
  font-size: 77px;
  font-weight: 600;
  line-height: 82px;
  color: var(--ip-text);
  margin: 0;
  text-align: center;
}

.ip-btn-start {
  position: absolute;
  left: 750px;
  top: 820px;
  width: 421px;
  height: 91px;
  background: var(--ip-orange);
  border: none;
  border-radius: 999px;
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  font-size: 41px;
  color: var(--ip-text-blue);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s, box-shadow 0.15s;
}

.ip-btn-start:active {
  transform: scale(0.97);
  box-shadow: 0 0 40px rgba(253, 119, 9, 0.5);
}

/* ─────────────────────────────────────────────────────────
   GLASS PANEL — Shared (slides 2–7)
───────────────────────────────────────────────────────── */

/* Conteneur positionné à 69,75 dans le slide */
.ip-glass-wrap {
  position: absolute;
  left: 69px;
  top: 75px;
  width: 1783px;
  height: 931px;
  overflow: hidden;
}

/* Fond glass : rectangle arrondi simple */
.ip-glass-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* Flèches de navigation : fines, intégrées dans l'arrondi */
.ip-nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  padding: 16px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s;
}

.ip-nav-arrow:hover { opacity: 0.8; }
.ip-nav-arrow:active { opacity: 0.6; }

.ip-nav-arrow svg {
  width: 28px;
  height: 52px;
  fill: none;
}

.ip-nav-arrow--left  { left: 10px; }
.ip-nav-arrow--right { right: 10px; }

/* Icône burger (slides 3-7, à 36,41 dans le slide) */
.ip-burger-btn {
  position: absolute;
  left: 36px;
  top: 41px;
  width: 49px;
  height: 49px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 9px;
  transition: opacity 0.2s;
}

.ip-burger-btn:hover { opacity: 0.75; }

.ip-burger-btn span {
  display: block;
  width: 49px;
  height: 3px;
  background: white;
  border-radius: 2px;
}

/* Labels de section (ex: "Who we are", "Our clients") */
.ip-section-label {
  position: absolute;
  left: 219px;
  top: 153px;
  font-size: 37px;
  font-weight: 400;
  color: var(--ip-text-muted);
  margin: 0;
  white-space: nowrap;
}

/* ─────────────────────────────────────────────────────────
   SLIDE 2 — HOME
───────────────────────────────────────────────────────── */

/* Blobs décoratifs */
.ip-blob {
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
}

/* Halo bottom-left géré globalement par .ip-corner-glow (pinné au viewport) */

.ip-blob--tr {
  right: -540px;
  top: -238px;
  width: 785px;
  height: 785px;
  background-image: url('../assets/idakto-presentation/img-blur-ball.png');
  background-size: cover;
  opacity: 0.6;
}

.ip-home-menu-label {
  position: absolute;
  left: 219px;
  top: 153px;
  font-size: 37px;
  font-weight: 400;
  color: var(--ip-text-muted);
  margin: 0;
}

/* Texte gauche dans la glass (coordonnées relatives au glass-wrap 1783px) */
.ip-home-text {
  position: absolute;
  left: 150px;
  top: 0;
  width: 600px;
  height: 100%;
}

.ip-home-title {
  position: absolute;
  left: 150px;
  top: 212px;
  width: 582px;
  font-size: 63px;
  font-weight: 500;
  line-height: 82px;
  color: var(--ip-text);
  margin: 0;
}

.ip-home-desc {
  position: absolute;
  left: 150px;
  top: 447px;
  width: 526px;
  font-size: 25px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--ip-text);
  margin: 0;
}

/* Grille des 4 cartes (droite du panneau) */
.ip-home-card {
  position: absolute;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  background: rgba(0,0,0,0.3);
  border: none;
  padding: 0;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ip-home-card:hover {
  transform: scale(1.02);
  box-shadow: 0 12px 48px rgba(0,0,0,0.5);
}

.ip-home-card:active { transform: scale(0.99); }

.ip-home-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

/* "Who we are" : image bg agrandie pour matcher le ratio Figma (image 472px tall dans card 417px, offset top -55) */
.ip-home-card--about > img:first-of-type {
  position: absolute;
  top: -55px;
  left: 0;
  width: 100%;
  height: calc(100% + 55px);
  object-fit: cover;
  object-position: center top;
}

/* Bar du bas de chaque card */
.ip-card-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 92px;
  background: var(--ip-card-blur);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 16px 0 24px;
}

.ip-card-bar span {
  font-size: 30px;
  font-weight: 400;
  color: var(--ip-text);
  white-space: nowrap;
}

.ip-card-arrow-icon {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ip-card-arrow-icon svg {
  width: 28px;
  height: 28px;
}

/* Positions des 4 cartes dans le glass-wrap */
.ip-home-card--platform {
  left: 818px;
  top: 58px;
  width: 354px;
  height: 354px;
}

.ip-home-card--clients {
  left: 1261px;
  top: -10px;
  width: 336px;
  height: 451px;
}

.ip-home-card--about {
  left: 1257px;
  top: 528px;
  width: 340px;
  height: 403px;
}

.ip-home-card--usecases {
  left: 814px;
  top: 454px;
  width: 354px;
  height: 477px;
}

/* ─────────────────────────────────────────────────────────
   SLIDE 3 — WHO WE ARE (ABOUT)
───────────────────────────────────────────────────────── */

/* Glow décoratif slide About (blur ball en bas-gauche) */
/* Halo coin inférieur-gauche — pinné au viewport (hors stage)
   Centré sur (0,0) du viewport, masqué sur le slide Welcome */
.ip-corner-glow {
  position: fixed;
  left: -450px;
  bottom: -450px;
  width: 900px;
  height: 900px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(80, 160, 255, 0.55) 0%,
    rgba(80, 160, 255, 0.25) 35%,
    rgba(80, 160, 255, 0) 70%
  );
  filter: blur(40px);
  opacity: 1;
  pointer-events: none;
  z-index: 1;
  transition: opacity 0.45s ease;
}

.ip-app.is-welcome .ip-corner-glow { opacity: 0; }

/* Photo overlay sur la carte "Who we are" (Home) */
.ip-home-card img.ip-who-photo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  height: auto;
  max-height: 80%;
  object-fit: contain;
  pointer-events: none;
}

.ip-about-logo {
  position: absolute;
  left: 219px;
  top: 534px;
  width: 315px;
  height: 94px;
}

.ip-about-logo img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.ip-about-desc,
.ip-about-inner-desc {
  position: absolute;
  left: 494px;
  top: 466px;
  width: 634px;
  font-size: 23px;
  font-weight: 400;
  line-height: 1.55;
  color: var(--ip-text);
  margin: 0;
}

.ip-about-biometry {
  position: absolute;
  left: 1283px;
  top: 538px;
  width: 779px;
  height: 438px;
  border-radius: 34px;
  overflow: hidden;
}

.ip-about-biometry img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Barre de stats en bas */
.ip-stats-bar {
  position: absolute;
  left: 127px; /* 69+58 dans le slide */
  bottom: 75px; /* 1080 - 75 - 931 + (931-244) = slide bottom minus height */
  width: 1674px;
  height: 244px;
  background: var(--ip-stats-blur);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border-radius: 18px;
  display: flex;
  align-items: flex-start;
  padding-top: 53px;
  gap: 0;
  box-sizing: border-box;
}

/* Dans le glass-wrap, la barre stats est à left=61, top=687 dans le wrap (1783px) */
.ip-glass-wrap .ip-stats-bar {
  position: absolute;
  left: 54px;
  top: 687px;
  width: 1674px;
  height: 244px;
  bottom: auto;
}

.ip-stat-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-left: 107px;
  gap: 0;
}

.ip-stat-item + .ip-stat-item {
  padding-left: 0;
}

.ip-stat-num {
  font-size: 68px;
  font-weight: 500;
  line-height: 90px;
  color: var(--ip-text);
  margin: 0;
}

.ip-stat-num em {
  font-style: normal;
  color: var(--ip-orange);
}

.ip-stat-label {
  font-size: 38px;
  font-weight: 400;
  line-height: 46px;
  color: var(--ip-text);
  margin: 0;
}

.ip-about-title {
  position: absolute;
  left: 219px;
  top: 288px;
  width: 1544px;
  font-size: 56px;
  font-weight: 500;
  line-height: 78px;
  color: var(--ip-text);
  margin: 0;
}

.ip-about-title em {
  font-style: normal;
  color: var(--ip-orange);
}

/* ─────────────────────────────────────────────────────────
   SLIDE 4 — GLOBAL PRESENCE
───────────────────────────────────────────────────────── */

.ip-global-title {
  position: absolute;
  left: 219px;
  top: 262px;
  width: 858px;
  font-size: 63px;
  font-weight: 500;
  line-height: 82px;
  color: var(--ip-text);
  margin: 0;
}

.ip-global-desc {
  position: absolute; /* in glass-wrap */
  left: 150px;
  top: 424px;
  width: 616px;
  font-size: 25px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--ip-text);
  margin: 0;
}

.ip-global-offices-label {
  position: absolute; /* in glass-wrap */
  left: 150px;
  top: 611px;
  font-size: 25px;
  font-weight: 400;
  color: var(--ip-text);
  margin: 0;
}

.ip-offices-list {
  position: absolute; /* in glass-wrap */
  left: 150px;
  top: 668px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.ip-office-item {
  margin-bottom: 6px;
}

.ip-office-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.ip-office-icon {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ip-office-icon svg {
  width: 34px;
  height: 34px;
}

.ip-office-name {
  font-size: 25px;
  font-weight: 400;
  color: var(--ip-text);
  white-space: nowrap;
  margin: 0;
}

.ip-office-cities {
  font-size: 20px;
  font-weight: 400;
  font-style: italic;
  color: var(--ip-text);
  margin: 0;
  padding-left: 40px;
  margin-top: 2px;
}

/* Carte mondiale — positionnée directement dans le slide (hors glass-wrap pour éviter overflow:hidden)
   En coordonnées slide: glass left=69 + Figma left=1013 = 1082px ; glass top=75 */
.ip-global-map {
  position: absolute;
  left: 1082px;
  top: 75px;
  width: 719px;
  height: 931px;
  overflow: hidden;
  pointer-events: none;
  border-radius: 0 37px 37px 0;
}

.ip-global-map img {
  position: absolute;
  top: -40px;
  right: 0;
  left: auto;
  width: 719px;
  height: calc(100% + 40px);
  object-fit: cover;
  display: block;
}

/* ─────────────────────────────────────────────────────────
   SLIDE 5 — CLIENTS
───────────────────────────────────────────────────────── */

.ip-clients-title {
  position: absolute;
  left: 207px;
  top: 243px;
  width: 912px;
  font-size: 63px;
  font-weight: 500;
  line-height: 82px;
  color: var(--ip-text);
  margin: 0;
}

/* Rangée de 3 cartes clients */
.ip-clients-row {
  position: absolute;
  left: 244px;
  top: 462px;
  display: flex;
  gap: 99px;
  align-items: flex-end;
}

.ip-client-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  cursor: pointer;
}

.ip-client-card--france  { width: 444px; }
.ip-client-card--morocco { width: 471px; }
.ip-client-card--egypt   { width: 390px; }

.ip-client-img {
  width: 100%;
  border-radius: 8px;
  object-fit: cover;
  display: block;
}

.ip-client-card--france  .ip-client-img { height: 203px; }
.ip-client-card--morocco .ip-client-img { height: 202px; }
.ip-client-card--egypt   .ip-client-img { height: 238px; }

.ip-client-country {
  margin-top: 28px;
  text-align: center;
}

.ip-client-country-name {
  display: block;
  font-size: 34px;
  font-weight: 600;
  color: var(--ip-orange);
  margin: 0;
}

.ip-client-country-sub {
  display: block;
  font-size: 34px;
  font-weight: 400;
  color: var(--ip-text);
  margin: 0;
}

.ip-client-cta {
  margin-top: 32px;
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 30px;
  font-weight: 500;
  color: var(--ip-text);
  background: none;
  border: none;
  cursor: default;
  padding: 0;
}

/* ─────────────────────────────────────────────────────────
   SLIDE 6 — PLATFORM
───────────────────────────────────────────────────────── */

/* Logo iDCluster (centré +37px par rapport au centre, glass top=61 → slide top=136) */
.ip-platform-logo {
  position: absolute;
  left: 50%;
  transform: translateX(calc(-50% + 37px));
  top: 136px;
  width: 341px;
  height: 102px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Poppins', sans-serif;
  font-size: 54px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -1px;
  pointer-events: none;
}

.ip-platform-logo-id em {
  font-style: normal;
  color: #fd7709;
}

.ip-platform-title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 236px;
  font-size: 63px;
  font-weight: 500;
  line-height: 82px;
  color: var(--ip-text);
  margin: 0;
  text-align: center;
  white-space: nowrap;
}

/* Image principale (centrée, glass top=259 → slide top=334, width=1018, height=672) */
.ip-platform-img {
  position: absolute;
  left: 451px;
  top: 334px;
  width: 1018px;
  height: 672px;
  object-fit: contain;
  pointer-events: none;
}

/* Bouton CTA (glass left=1462 → slide=1531, glass top=781 → slide=856) */
.ip-platform-cta {
  position: absolute;
  left: 1531px;
  top: 856px;
  background: #fd7709;
  color: #cbecff;
  border: none;
  padding: 18px 33px;
  border-radius: 22px;
  font-family: 'Poppins', sans-serif;
  font-size: 23px;
  font-weight: 500;
  line-height: 41px;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.15s;
}

.ip-platform-cta:active { transform: scale(0.97); }

/* ─────────────────────────────────────────────────────────
   SLIDE 7 — USE CASES
───────────────────────────────────────────────────────── */


.ip-usecases-title {
  position: absolute; /* in glass-wrap */
  left: 135px;
  top: 224px;
  width: 636px;
  font-size: 63px;
  font-weight: 500;
  line-height: 82px;
  color: var(--ip-text);
  margin: 0;
}

.ip-usecases-desc {
  position: absolute; /* in glass-wrap */
  left: 135px;
  top: 474px;
  width: 428px;
  font-size: 25px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--ip-text);
  margin: 0;
}

/* 4 cartes use cases : 2×2 */
.ip-usecase-card {
  position: absolute;
  border-radius: 12px;
  overflow: hidden;
}

.ip-usecase-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* positions dans le glass-wrap (1783px) */
.ip-usecase-card--health  { left: 745px;  top: 50px;  width: 354px; height: 354px; }
.ip-usecase-card--finance { left: 1188px; top: -18px; width: 336px; height: 451px; }
.ip-usecase-card--events  { left: 745px;  top: 461px; width: 354px; height: 491px; }
.ip-usecase-card--social  { left: 1188px; top: 480px; width: 340px; height: 472px; }

/* ─────────────────────────────────────────────────────────
   RESPONSIVE — Ajustements tactile
───────────────────────────────────────────────────────── */
/* Les touch targets sont déjà grands (boutons ≥ 64×64 au scale 1) */
/* Les animations évitent hover-only */
@media (hover: none) {
  .ip-home-card:hover { transform: none; box-shadow: none; }
  .ip-nav-arrow:hover { opacity: 1; }
  .ip-burger-btn:hover { opacity: 1; }
}
