/* ============================================================
   CMIT Modern UI – Complete Redesign
   ============================================================ */

/* ---------- CSS Variables ---------- */
:root {
  --primary: #c0392b;
  --primary-dark: #962d22;
  --primary-light: #e74c3c;
  --accent: #ff6b6b;
  --dark: #1a1a2e;
  --dark-light: #16213e;
  --gray-900: #212529;
  --gray-800: #343a40;
  --gray-700: #495057;
  --gray-600: #6c757d;
  --gray-400: #ced4da;
  --gray-200: #e9ecef;
  --gray-100: #f8f9fa;
  --white: #ffffff;
  --bg: #fafbfc;
  --shadow-sm: 0 2px 8px rgba(0,0,0,.06);
  --shadow: 0 4px 20px rgba(0,0,0,.08);
  --shadow-lg: 0 8px 40px rgba(0,0,0,.12);
  --shadow-xl: 0 20px 60px rgba(0,0,0,.15);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-xs: 6px;
  --transition: .3s cubic-bezier(.4,0,.2,1);
  --font: 'Poppins', sans-serif;
}

/* ---------- Reset & Base ---------- */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  color: var(--gray-800);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; }

a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-dark); text-decoration: none !important; }

::selection { background: var(--primary); color: var(--white); }

/* ---------- Typography ---------- */
h1,.h1,h2,.h2,h3,.h3,h4,.h4,h5,.h5,h6,.h6 {
  font-family: var(--font);
  font-weight: 700;
  color: var(--dark);
  line-height: 1.3;
  letter-spacing: -0.02em;
}

h1,.h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2,.h2 { font-size: clamp(1.6rem, 4vw, 2.5rem); }
h3,.h3 { font-size: clamp(1.2rem, 3vw, 1.5rem); }
h4,.h4 { font-size: 1.25rem; }
h5,.h5 { font-size: 1.1rem; }
h6,.h6 { font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.05em; font-weight: 600; }

p { margin-bottom: 1rem; color: var(--gray-700); }

/* ---------- Google Translate – Hidden ---------- */
#google_translate_element {
  visibility: hidden; position: absolute;
  width: 0; height: 0; overflow: hidden;
}
body > .skiptranslate, .goog-te-banner-frame { display: none !important; }
body { top: 0 !important; }

/* ==========================================================
   NAVIGATION
   ========================================================== */
.navigation {
  padding: 12px 0;
  transition: var(--transition);
  z-index: 1000;
}

.navigation .navbar-brand img {
  height: 42px;
  transition: var(--transition);
}

.navigation.scrolled,
.navigation.fixed-nav {
  background: rgba(26,26,46,.95) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 30px rgba(0,0,0,.15);
  padding: 6px 0;
}

.navigation .navbar-nav .nav-link {
  font-family: var(--font);
  color: rgba(255,255,255,.85);
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 8px 16px !important;
  border-radius: var(--radius-xs);
  transition: var(--transition);
  position: relative;
}

.navigation .navbar-nav .nav-link:hover,
.navigation .navbar-nav .nav-link:focus {
  color: var(--white) !important;
  background: rgba(255,255,255,.08);
}

.navigation .navbar-nav .nav-item.active .nav-link {
  color: var(--white) !important;
}

.navigation .navbar-nav .nav-item.active .nav-link::after {
  content: '';
  position: absolute;
  bottom: 2px; left: 16px; right: 16px;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
}

/* Dropdown */
.navigation .dropdown-menu {
  background: var(--white);
  border: none;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  padding: 12px 0;
  min-width: 260px;
  transform: translateY(10px);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  display: block;
}

.navigation .dropdown:hover .dropdown-menu {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.navigation .dropdown-item {
  color: var(--gray-700);
  font-size: 13px;
  font-weight: 500;
  padding: 10px 24px;
  letter-spacing: 0.02em;
  transition: var(--transition);
  text-transform: none;
}

.navigation .dropdown-item:hover,
.navigation .dropdown-item.active {
  color: var(--primary);
  background: rgba(192,57,43,.05);
  padding-left: 28px;
}

.navigation .dropdown-toggle::after { display: none; }

/* Translate button */
.btn-translate {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,.1);
  border: 1.5px solid rgba(255,255,255,.25);
  color: var(--white);
  padding: 6px 16px;
  border-radius: 50px;
  font-family: var(--font);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: var(--transition);
  text-transform: uppercase;
  white-space: nowrap;
}
.btn-translate:hover {
  background: rgba(255,255,255,.2);
  border-color: rgba(255,255,255,.5);
  transform: translateY(-1px);
}
.btn-translate:active { transform: scale(.96); }
.btn-translate .lang-icon { font-size: 14px; }

/* Navbar right section */
.respo {
  display: flex;
  align-items: center;
  gap: 20px;
}
@media (max-width:991px) {
  .respo { flex-direction: column; gap: 12px; padding: 12px 0; }
}

/* Nav phone */
#contact {
  font-size: 15px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
}
#contact img { width: 16px; height: 16px; opacity: .8; }

/* Mobile toggler */
.navbar-toggler {
  background: rgba(255,255,255,.1);
  border: 1.5px solid rgba(255,255,255,.3);
  border-radius: var(--radius-xs);
  padding: 6px 10px;
  color: var(--white);
}
.navbar-collapse.collapse.show,
.navbar-collapse.collapsing {
  background: rgba(26,26,46,.98);
  border-radius: 0 0 var(--radius) var(--radius);
  padding: 12px 16px;
}
.navbar-collapse.collapse.show .nav-item { padding: 4px 0; }
.navbar-collapse.collapse.show .dropdown-menu {
  position: static !important;
  box-shadow: none;
  background: rgba(255,255,255,.05);
  border-radius: var(--radius-xs);
  padding: 6px 0;
  margin-top: 4px;
  transform: none;
  opacity: 1;
  visibility: visible;
}
.navbar-collapse.collapse.show .dropdown-item {
  color: rgba(255,255,255,.7);
  padding: 8px 20px;
}
.navbar-collapse.collapse.show .dropdown-item:hover,
.navbar-collapse.collapse.show .dropdown-item.active {
  color: var(--white);
  background: rgba(255,255,255,.08);
  padding-left: 24px;
}

/* ==========================================================
   HERO / SLIDER
   ========================================================== */
.hero-section,
.slider {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}

.slider {
  background-image: url('../images/testD/img2.jpg');
  padding: 0;
}

.slider::before, .hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26,26,46,.85) 0%, rgba(22,33,62,.7) 100%);
  z-index: 1;
}

.slider .containers, .hero-section .container { position: relative; z-index: 2; }

.slider .slider-content,
.hero-section .hero-content {
  text-align: center;
  padding: 40px 20px;
}

.title-slider, .hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  line-height: 1.1;
}

.hero-subtitle {
  color: rgba(255,255,255,.75);
  font-size: clamp(1rem, 2vw, 1.25rem);
  max-width: 600px;
  margin: 0 auto 32px;
  font-weight: 400;
}

/* ==========================================================
   PAGE HEADER (Sub-pages)
   ========================================================== */
.page-title {
  position: relative;
  padding: 160px 0 80px;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.page-title::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26,26,46,.9) 0%, rgba(22,33,62,.8) 100%);
}

.page-title .container { position: relative; z-index: 2; }

.page-title h1 {
  color: var(--white);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
}

.page-title .list-inline-item a {
  color: rgba(255,255,255,.7);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.05em;
}

/* ==========================================================
   BUTTONS
   ========================================================== */
.btn-main, .btn-main-custom {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: var(--white);
  border: none;
  border-radius: 50px;
  padding: 14px 36px;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: var(--transition);
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(192,57,43,.3);
}

.btn-main:hover, .btn-main-custom:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(192,57,43,.4);
  color: var(--white) !important;
}

.btn-main:active, .btn-main-custom:active { transform: translateY(-1px); }

.btn-outline-primary {
  border: 2px solid var(--primary);
  color: var(--primary);
  background: transparent;
  border-radius: 50px;
  padding: 12px 32px;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: var(--transition);
}
.btn-outline-primary:hover {
  background: var(--primary);
  color: var(--white) !important;
  transform: translateY(-2px);
}

.btn-small {
  padding: 8px 20px;
  font-size: 12px;
  border-radius: 50px;
}

.btn-solid-border {
  border: 2px solid var(--primary);
  background: transparent;
  color: var(--primary);
  border-radius: 50px;
  transition: var(--transition);
}
.btn-solid-border:hover {
  background: var(--primary);
  color: var(--white) !important;
}

/* ==========================================================
   SECTIONS
   ========================================================== */
.section { padding: 100px 0; }
.section-sm { padding: 60px 0; }

.section-title {
  margin-bottom: 60px;
  position: relative;
}

.section-title h2 {
  font-size: clamp(1.6rem, 4vw, 2.5rem);
  position: relative;
  display: inline-block;
}

.divider {
  width: 50px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 2px;
  margin: 0 auto 16px;
}

.text-color { color: var(--primary); }

/* ==========================================================
   CARDS – Modern Style
   ========================================================== */
.modern-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 32px;
  transition: var(--transition);
  border: 1px solid rgba(0,0,0,.04);
  height: 100%;
}

.modern-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.modern-card h3 {
  font-size: 1.15rem;
  margin-bottom: 12px;
  color: var(--dark);
}

.modern-card p {
  color: var(--gray-600);
  font-size: 0.92rem;
  line-height: 1.7;
}

.modern-card .card-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(192,57,43,.08) 0%, rgba(255,107,107,.08) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 24px;
  color: var(--primary);
}

/* Service index cards */
.card-index2, .cardPerso {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 32px 24px;
  text-align: center;
  transition: var(--transition);
  border: 1px solid rgba(0,0,0,.04);
}
.card-index2:hover, .cardPerso:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.card-index2 h3 {
  font-size: 1rem;
  color: var(--dark);
  margin-bottom: 16px;
}

/* Hover style cards */
.hover-style-1, .hover-style-2, .hover-style-3 {
  position: relative;
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  overflow: hidden;
  border: 1px solid rgba(0,0,0,.04);
}

.hover-style-1::before, .hover-style-2::before, .hover-style-3::before {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transition: height .4s ease;
  border-radius: 0 0 var(--radius) var(--radius);
  z-index: 0;
}

.hover-style-1:hover, .hover-style-2:hover, .hover-style-3:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.hover-style-1:hover::before, .hover-style-2:hover::before, .hover-style-3:hover::before {
  height: 100%;
  border-radius: var(--radius);
}

.hover-style-1:hover h3, .hover-style-2:hover h3, .hover-style-3:hover h3,
.hover-style-1:hover h4, .hover-style-2:hover h4, .hover-style-3:hover h4,
.hover-style-1:hover p, .hover-style-2:hover p, .hover-style-3:hover p,
.hover-style-1:hover a, .hover-style-2:hover a, .hover-style-3:hover a {
  color: var(--white) !important;
  position: relative;
  z-index: 1;
}
.hover-style-1 h3, .hover-style-2 h3, .hover-style-3 h3,
.hover-style-1 h4, .hover-style-2 h4, .hover-style-3 h4,
.hover-style-1 p, .hover-style-2 p, .hover-style-3 p,
.hover-style-1 a, .hover-style-2 a, .hover-style-3 a,
.hover-style-1 img, .hover-style-2 img, .hover-style-3 img {
  position: relative;
  z-index: 1;
  transition: var(--transition);
}

/* ==========================================================
   ABOUT / INFO CARDS
   ========================================================== */
.back-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
  border: 1px solid rgba(0,0,0,.04);
  transition: var(--transition);
}
.back-card:hover {
  box-shadow: var(--shadow);
}

.about-item h2 {
  font-size: 1.4rem;
  margin-bottom: 16px;
}

/* ==========================================================
   HOMEPAGE WRAPPER SECTIONS (Alternating content)
   ========================================================== */
.wrappercustom {
  padding: 80px 0;
}

.wrapper, .wrapper2 {
  display: flex;
  align-items: center;
  max-width: 1140px;
  margin: 0 auto;
  padding: 40px 15px;
  gap: 40px;
}

.wrapper2 { flex-direction: row-reverse; }

@media (max-width:991px) {
  .wrapper, .wrapper2 {
    flex-direction: column;
    padding: 20px 15px;
  }
}

.wrap-img-container, .wrap-img-container2 {
  flex: 1;
}

.wrap-content {
  flex: 1;
}

.imageHome {
  width: 100%;
  max-width: 500px;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.headercustom h1 {
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  margin-bottom: 16px;
  color: var(--dark);
}

.headercustom p {
  color: var(--gray-600);
  line-height: 1.8;
  margin-bottom: 24px;
}

/* ==========================================================
   CTA SECTION
   ========================================================== */
.cta {
  background: url('../images/cmit.png') fixed center / cover no-repeat;
  position: relative;
}
.cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26,26,46,.9) 0%, rgba(192,57,43,.6) 100%);
}
.cta .container, .cta .containers { position: relative; z-index: 2; }
.cta h2 { color: var(--white); }
.cta p, .cta span { color: rgba(255,255,255,.8); }

/* ==========================================================
   SERVICES SECTION (Solutions grid)
   ========================================================== */
.services {
  background: var(--white);
}

.linkly {
  text-decoration: none;
  color: var(--dark);
  display: block;
  transition: var(--transition);
}
.linkly:hover { color: var(--primary); }
.linkly img {
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.linkly:hover img {
  transform: scale(1.05);
}

/* ==========================================================
   TEAM SECTION
   ========================================================== */
.team-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid rgba(0,0,0,.04);
}
.team-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.team-card .team-img {
  overflow: hidden;
  aspect-ratio: 1;
}
.team-card .team-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}
.team-card:hover .team-img img {
  transform: scale(1.05);
}
.team-card .team-info {
  padding: 24px;
}
.team-card .team-info h3 {
  font-size: 1.1rem;
  color: var(--primary);
  margin-bottom: 4px;
}
.team-card .team-info h6 {
  font-size: .82rem;
  color: var(--gray-600);
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
}

/* Legacy team (equipe) */
.equipe-bg { overflow: hidden; border-radius: var(--radius-sm); }
.equipe-bg img { transition: var(--transition); }
.equipe-bg:hover img { transform: scale(1.05); }
.team-wrap .card-title { color: var(--primary); font-size: 1.1rem; }
.team-wrap .card-subtitle { color: var(--gray-600); font-size: .85rem; font-weight: 500; }
.team-wrap .card-subtitle::after { display: none; }
.img-respo { height: auto; max-height: 320px; object-fit: cover; }

/* ==========================================================
   STUDENT / STAGE SECTION
   ========================================================== */
.stage-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 30px;
  border: 1px solid rgba(0,0,0,.04);
  transition: var(--transition);
}
.stage-card:hover {
  box-shadow: var(--shadow);
}
.stage-card h3 { font-size: 1.2rem; margin-bottom: 16px; color: var(--dark); }
.stage-card ul { padding-left: 20px; }
.stage-card ul li { color: var(--gray-700); margin-bottom: 6px; font-size: .92rem; }

/* ==========================================================
   COURSE / SERVICE DETAIL PAGES
   ========================================================== */
.course-single .feature-img {
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 30px;
}
.course-single .feature-img img {
  width: 100%;
  height: auto;
}

.stat-card {
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 20px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0,0,0,.04);
  transition: var(--transition);
}
.stat-card:hover { box-shadow: var(--shadow); }
.stat-card h5 { font-size: .85rem; margin-bottom: 4px; }
.stat-card p { font-size: 1rem; font-weight: 600; color: var(--primary); margin: 0; }

.sidebar-widget {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
  border: 1px solid rgba(0,0,0,.04);
}
.sidebar-widget h5 {
  font-size: 1rem;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--gray-200);
}

/* ==========================================================
   PROCESS STEPS (process&develop)
   ========================================================== */
.process-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px 28px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0,0,0,.04);
  transition: var(--transition);
  height: 100%;
  position: relative;
  overflow: hidden;
}
.process-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  opacity: 0;
  transition: var(--transition);
}
.process-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.process-card:hover::after { opacity: 1; }
.process-card .step-number {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: var(--white);
  font-size: 1.1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}
.process-card h4 { font-size: 1.1rem; margin-bottom: 12px; }
.process-card p { font-size: .9rem; color: var(--gray-600); }

/* ==========================================================
   TECH & TOOLS (techno&tools)
   ========================================================== */
.tech-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0,0,0,.04);
  transition: var(--transition);
  height: 100%;
}
.tech-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.tech-card h4 {
  font-size: 1rem;
  color: var(--primary);
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--gray-200);
}
.tech-card p, .tech-card li {
  font-size: .9rem;
  color: var(--gray-700);
}
.tech-card-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 18px;
}
.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.tech-tag {
  display: inline-block;
  background: var(--gray-100);
  color: var(--gray-700);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: .8rem;
  font-weight: 500;
  transition: var(--transition);
}
.tech-tag:hover {
  background: var(--primary);
  color: var(--white);
}

/* ==========================================================
   PROJECT / PORTFOLIO
   ========================================================== */
.project-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0,0,0,.04);
  transition: var(--transition);
  text-align: center;
}
.project-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.project-card .project-img {
  overflow: hidden;
  position: relative;
}
.project-card .project-img img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: var(--transition);
}
.project-card:hover .project-img img { transform: scale(1.05); }
.project-card .project-info { padding: 24px; }
.project-card .project-info h4 {
  font-size: 1.05rem;
  margin: 0;
  transition: var(--transition);
}
.project-card:hover .project-info h4 { color: var(--primary); }

.project-card-img {
  overflow: hidden;
  position: relative;
}
.project-card-img img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: var(--transition);
}
.project-card:hover .project-card-img img { transform: scale(1.05); }
.project-card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(26, 26, 46, .6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
}
.project-card:hover .project-card-overlay { opacity: 1; }
.project-card-body {
  padding: 24px;
  text-align: left;
}
.project-card-body h4 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  transition: var(--transition);
}
.project-card:hover .project-card-body h4 { color: var(--primary); }
.project-card-body p {
  font-size: .9rem;
  color: var(--gray-600);
  margin-bottom: 12px;
}

/* ==========================================================
   CONTACT / FORMS
   ========================================================== */
.form-modern .form-control {
  background: var(--gray-100);
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  font-size: .92rem;
  transition: var(--transition);
  box-shadow: none;
  color: var(--gray-800);
}
.form-modern .form-control:focus {
  background: var(--white);
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(192,57,43,.1);
}
.form-modern .form-control::placeholder { color: var(--gray-400); }
.form-modern label {
  font-size: .85rem;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 6px;
}
.form-modern select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M6 8L1 3h10z' fill='%23495057'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

/* Contact info styling */
.contact-info-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0,0,0,.04);
}
.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
}
.contact-info-item .icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(192,57,43,.08), rgba(255,107,107,.08));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
}

/* ==========================================================
   CLIENT LOGIN (beClient)
   ========================================================== */
.login-section {
  padding: 100px 0 80px;
  background: var(--bg);
}

.login-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  max-width: 1000px;
  width: 100%;
  margin: 0 auto;
}

.login-visual {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 36px;
  text-align: center;
  position: relative;
  overflow: hidden;
  height: 100%;
  min-height: 480px;
}
.login-visual::before {
  content: '';
  position: absolute;
  width: 280px; height: 280px;
  border-radius: 50%;
  background: rgba(255,255,255,.06);
  top: -70px; right: -70px;
}
.login-visual::after {
  content: '';
  position: absolute;
  width: 180px; height: 180px;
  border-radius: 50%;
  background: rgba(255,255,255,.04);
  bottom: -40px; left: -40px;
}
.login-visual img {
  max-width: 160px;
  margin-bottom: 28px;
  position: relative;
  z-index: 1;
  filter: brightness(0) invert(1);
  opacity: .9;
}
.login-visual h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}
.login-visual p {
  font-size: .88rem;
  color: rgba(255,255,255,.8);
  line-height: 1.7;
  position: relative;
  z-index: 1;
  max-width: 300px;
}

.login-form-wrap {
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.login-form-wrap h3 {
  font-size: 1.5rem;
  margin-bottom: 6px;
  color: var(--dark);
}

.login-form-wrap .login-subtitle {
  font-size: .85rem;
  color: var(--gray-600);
  margin-bottom: 28px;
}

.login-form-wrap .form-modern .form-control {
  padding: 13px 16px 13px 44px;
  background: var(--gray-100);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
}
.login-form-wrap .form-modern .form-control:focus {
  border-color: var(--primary);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(192,57,43,.1);
}

.login-input-group {
  position: relative;
  margin-bottom: 18px;
}
.login-input-group .input-icon {
  position: absolute;
  left: 14px;
  top: 42px;
  width: 17px;
  height: 17px;
  opacity: .4;
}

.login-form-wrap .btn-main {
  width: 100%;
  justify-content: center;
  min-height: 48px;
  border-radius: var(--radius-sm);
  margin-top: 6px;
}

.login-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
}
.login-links a {
  font-size: .85rem;
  color: var(--primary);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.login-links a:hover { color: var(--primary-dark); }
.login-links a img { height: 14px; width: 14px; }

/* Form toggle */
.formJs2 { display: block; }
.formJs2.active { display: none; }
.fromJs1.active { display: none; }

/* Auth loaders */
.loader1, .loader2 {
  height: 26px; width: 26px;
  border: 3px solid rgba(255,255,255,.3);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: authSpin .6s linear infinite;
}
@keyframes authSpin { to { transform: rotate(360deg); } }

/* ==========================================================
   404 PAGE
   ========================================================== */
.error-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-light) 100%);
  padding: 40px 20px;
}
.error-page .error-code {
  font-size: clamp(6rem, 15vw, 12rem);
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}
.error-page h2 { color: var(--white); font-size: 1.5rem; margin: 20px 0 12px; }
.error-page p { color: rgba(255,255,255,.6); margin-bottom: 32px; }

/* ==========================================================
   FOOTER
   ========================================================== */
.footer {
  background: var(--dark);
  color: rgba(255,255,255,.7);
  padding: 80px 0 0;
}

.footer h4 {
  color: var(--white);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 24px;
  letter-spacing: 0.03em;
}

.footer .footer-links a {
  display: block;
  color: rgba(255,255,255,.6);
  padding: 6px 0;
  font-size: .9rem;
  transition: var(--transition);
}
.footer .footer-links a:hover {
  color: var(--white) !important;
  padding-left: 6px;
}

.footer .footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 24px 0;
  margin-top: 50px;
}
.footer .footer-bottom p {
  margin: 0;
  font-size: .85rem;
  color: rgba(255,255,255,.4);
}

/* Legacy footer classes */
.bg-black-50 { background: var(--dark); }
.bg-black { background: rgba(0,0,0,.3); }
.soalt { padding-top: 20px; }
.content-menu {
  display: block;
  color: rgba(255,255,255,.6) !important;
  padding: 6px 0;
  font-size: .9rem;
  transition: var(--transition);
  text-decoration: none;
  margin: 0;
}
.content-menu:hover {
  color: var(--white) !important;
  padding-left: 6px;
}
.menu { list-style: none; }

/* ==========================================================
   UTILITY CLASSES
   ========================================================== */
.text-color { color: var(--primary) !important; }
.text-color2 { color: var(--primary); }
.text-sm { font-size: .85rem; }
.text-md { font-size: 1.4rem; line-height: 1.6; }
.text-lg { font-size: clamp(2rem, 5vw, 3rem); line-height: 1.2; }
.text-white { color: var(--white) !important; }
.text-black { color: var(--dark); }
.font-size-13 { font-size: 13px; }
.letter-spacing { letter-spacing: 0.05em; }
.font-weight-bold { font-weight: 700; }
.bg-gray { background: var(--bg); }
.bg-primary { background: var(--primary) !important; }
.bg-shadow {
  background: var(--white);
  box-shadow: var(--shadow);
  padding: 20px;
  border-radius: var(--radius);
}

.lh-35 { line-height: 35px; }
.no-spacing { letter-spacing: 0; }
.w-40 { width: 40%; }

.mt-80px { margin-top: -80px; position: relative; z-index: 10; }
.mt--45 { margin-top: -45px; }
.mt--170 { margin-top: -170px; }

/* containers override */
.containers {
  width: 100%;
  max-width: 1200px;
  padding: 0 15px;
  margin: 0 auto;
}

/* Background images */
.bg-2 {
  background: url('../images/bg/service.jfif') center / cover no-repeat;
}

/* ==========================================================
   ANIMATIONS
   ========================================================== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-in {
  animation: fadeInUp .6s ease forwards;
}

/* Staggered animations */
.delay-1 { animation-delay: .1s; }
.delay-2 { animation-delay: .2s; }
.delay-3 { animation-delay: .3s; }
.delay-4 { animation-delay: .4s; }

/* ==========================================================
   SLICK CAROUSEL overrides
   ========================================================== */
.slick-dots li button::before { color: var(--gray-400); font-size: 10px; }
.slick-dots li.slick-active button::before { color: var(--primary); }

/* MAP */
.map { width: 100%; height: 400px; border-radius: var(--radius); overflow: hidden; }

/* ==========================================================
   RESPONSIVENESS
   ========================================================== */

/* --- Large desktop → Desktop --- */
@media (max-width: 1199px) {
  .section { padding: 80px 0; }
  .containers { padding: 0 20px; }
}

/* --- Tablet landscape --- */
@media (max-width: 991px) {
  .section { padding: 60px 0; }
  .page-title { padding: 130px 0 60px; }
  .page-title h1 { font-size: 2rem; }
  .section-title { margin-bottom: 40px; }
  .login-section { padding: 80px 0 60px; }
  .login-visual { min-height: 400px; padding: 36px 28px; }
  .login-visual img { max-width: 130px; margin-bottom: 20px; }
  .login-visual h2 { font-size: 1.25rem; }
  .login-visual p { font-size: .82rem; }
  .login-form-wrap { padding: 36px 28px; }
  .login-form-wrap h3 { font-size: 1.3rem; }
  .footer { padding: 60px 0 0; }
  .footer h4 { font-size: .92rem; margin-bottom: 18px; }
  .map { height: 300px; }
  .project-card .project-img img,
  .project-card-img img { height: 180px; }
  .process-card { padding: 28px 22px; }
  .tech-card { padding: 22px; }
  .stage-card { padding: 28px; }
  .back-card { padding: 28px; }
  .contact-info-card { padding: 28px; }
  .sidebar-widget { padding: 22px; }
}

/* --- Tablet portrait --- */
@media (max-width: 767px) {
  .section { padding: 50px 0; }
  .section-sm { padding: 40px 0; }
  .page-title { padding: 120px 0 50px; }
  .title-slider { font-size: 2rem; }
  .slider, .hero-section { min-height: 60vh; }
  .hero-subtitle { max-width: 90%; font-size: .95rem; }
  .back-card { padding: 24px; }
  .modern-card { padding: 24px; }
  .footer { padding: 50px 0 0; }
  .footer .footer-bottom { padding: 18px 0; margin-top: 30px; }
  .footer h4 { font-size: .88rem; margin-bottom: 14px; }
  .footer .footer-links a { font-size: .82rem; padding: 4px 0; }
  .login-card { margin: 0 10px; }
  .login-visual { display: none; }
  .login-form-wrap { padding: 32px 24px; }
  .login-form-wrap h3 { font-size: 1.2rem; }
  .login-form-wrap .login-subtitle { font-size: .82rem; margin-bottom: 20px; }
  .login-input-group { margin-bottom: 14px; }
  .login-input-group .input-icon { top: 38px; }
  .login-links a { font-size: .8rem; }
  .form-modern .form-control { padding: 12px 14px; font-size: .85rem; }
  .project-card .project-img img,
  .project-card-img img { height: 160px; }
  .project-card .project-info { padding: 18px; }
  .project-card .project-info h4 { font-size: .95rem; }
  .project-card-body { padding: 18px; }
  .project-card-body h4 { font-size: 1rem; }
  .project-card-body p { font-size: .82rem; }
  .process-card { padding: 24px 18px; }
  .process-card .step-number { width: 42px; height: 42px; font-size: 1rem; }
  .process-card h4 { font-size: 1rem; }
  .process-card p { font-size: .82rem; }
  .tech-card { padding: 20px; }
  .tech-card h4 { font-size: .92rem; }
  .tech-card p, .tech-card li { font-size: .82rem; }
  .tech-card-icon { width: 48px; height: 48px; font-size: 1.2rem; }
  .tech-tag { font-size: .72rem; padding: 3px 10px; }
  .team-card .team-info { padding: 18px; }
  .team-card .team-info h3 { font-size: 1rem; }
  .stage-card { padding: 24px; }
  .stage-card h3 { font-size: 1.05rem; }
  .stage-card ul li { font-size: .82rem; }
  .stat-card { padding: 16px; }
  .stat-card h5 { font-size: .78rem; }
  .contact-info-card { padding: 24px; }
  .contact-info-item .icon { width: 38px; height: 38px; }
  .map { height: 250px; }
  .wrappercustom { padding: 50px 0; }
  .genie-card { padding: 24px; }
  .genie-card h3 { font-size: 1rem; }
  .genie-card p { font-size: .82rem; }
  .section-title h2 { font-size: 1.5rem; }
  .containers { padding: 0 15px; }
  .back-to-top { bottom: 20px; right: 20px; width: 38px; height: 38px; }
  .card-index2, .cardPerso { padding: 24px 18px; }
  .card-index2 h3 { font-size: .92rem; }
  .hover-style-1, .hover-style-2, .hover-style-3 { padding: 22px; }
  .about-item h2 { font-size: 1.2rem; }
  .sliders { padding: 120px 0 60px; }
  .error-page h2 { font-size: 1.2rem; }
  .error-page p { font-size: .85rem; }
}

/* --- Large phone --- */
@media (max-width: 576px) {
  .section { padding: 40px 0; }
  .page-title { padding: 110px 0 40px; }
  .page-title h1 { font-size: 1.6rem; }
  .page-title .list-inline-item a { font-size: 11px; }
  .slider, .hero-section { min-height: 55vh; }
  .slider .slider-content, .hero-section .hero-content { padding: 30px 15px; }
  .hero-subtitle { font-size: .85rem; margin-bottom: 24px; }
  .btn-main, .btn-main-custom { padding: 12px 28px; font-size: 12px; }
  .btn-outline-primary { padding: 10px 24px; font-size: 12px; }
  .section-title { margin-bottom: 30px; }
  .section-title h2 { font-size: 1.3rem; }
  .divider { width: 40px; margin-bottom: 12px; }
  .modern-card { padding: 20px; }
  .modern-card h3 { font-size: 1rem; }
  .modern-card p { font-size: .82rem; }
  .modern-card .card-icon { width: 48px; height: 48px; font-size: 20px; margin-bottom: 16px; }
  .login-form-wrap { padding: 24px 18px; }
  .login-form-wrap h3 { font-size: 1.1rem; }
  .login-form-wrap .btn-main { min-height: 42px; font-size: 12px; }
  .form-modern .form-control { padding: 11px 12px; font-size: .82rem; height: auto; }
  .form-modern label { font-size: .78rem; }
  .footer h4 { font-size: .82rem; }
  .footer .footer-links a { font-size: .78rem; }
  .footer .footer-bottom p { font-size: .75rem; }
  .containers { padding: 0 12px; }
  .project-card .project-img img,
  .project-card-img img { height: 140px; }
  .genie-card { padding: 20px; }
  .back-card { padding: 20px; }
  .sliders { padding: 100px 0 50px; }
  .error-page { padding: 30px 15px; }
  .wrappercustom { padding: 40px 0; }
  .navigation .navbar-brand img { height: 34px; }
}

/* --- Small phone --- */
@media (max-width: 480px) {
  .title-slider { font-size: 1.6rem; }
  .btn-main, .btn-main-custom { padding: 11px 22px; font-size: 11px; }
  .back-card { padding: 16px; }
  .section { padding: 32px 0; }
  .page-title { padding: 100px 0 35px; }
  .page-title h1 { font-size: 1.4rem; }
  .login-form-wrap { padding: 20px 14px; }
  .login-input-group { margin-bottom: 12px; }
  .footer { padding: 40px 0 0; }
  .back-to-top { bottom: 16px; right: 16px; width: 34px; height: 34px; }
  .map { height: 200px; }
  .project-card .project-info { padding: 14px; }
  .project-card .project-info h4 { font-size: .88rem; }
  .card-index2, .cardPerso { padding: 20px 14px; }
  .hover-style-1, .hover-style-2, .hover-style-3 { padding: 18px; }
}

/* --- Very small phone --- */
@media (max-width: 360px) {
  .title-slider { font-size: 1.35rem; }
  .hero-subtitle { font-size: .78rem; }
  .btn-main, .btn-main-custom { padding: 10px 18px; font-size: 10px; letter-spacing: .04em; }
  .section { padding: 28px 0; }
  .containers { padding: 0 10px; }
  .login-form-wrap { padding: 18px 12px; }
  .login-form-wrap h3 { font-size: 1rem; }
  .login-form-wrap .btn-main { min-height: 38px; padding: 10px; }
  .modern-card { padding: 16px; }
  .footer h4 { font-size: .78rem; }
}

/* ==========================================================
   Genie.html specific
   ========================================================== */
.genie-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0,0,0,.04);
  height: 100%;
  transition: var(--transition);
}
.genie-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}
.genie-card h3 {
  font-size: 1.1rem;
  color: var(--primary);
  margin-bottom: 12px;
}
.genie-card p {
  font-size: .9rem;
  color: var(--gray-700);
}

/* Subtitle hero link */
.subtitle-hero {
  font-size: 12px;
  color: var(--primary);
  font-weight: 600;
  letter-spacing: 0.05em;
  transition: var(--transition);
}
.subtitle-hero:hover { color: var(--primary-dark) !important; }

/* ==========================================================
   SCROLL BAR
   ========================================================== */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--gray-100); }
::-webkit-scrollbar-thumb {
  background: var(--gray-400);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover { background: var(--gray-600); }

/* ==========================================================
   BACK TO TOP
   ========================================================== */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(192,57,43,.3);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 999;
  border: none;
}
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(192,57,43,.4); }

/* keep old .position classes but make them work with new design */
.position, .position2, .position3, .btn-position { position: static; }

/* h3-size */
.h3-size { font-size: 1rem; }

/* number (from old design, now hidden) */
.number { display: none; }

.sliders {
  background-size: cover;
  background-repeat: no-repeat;
  padding: 160px 0 80px;
}

/* Forms validation */
.form-valide { border-color: #28a745 !important; }
.form-invalide { border-color: #dc3545 !important; }

/* Active introCube animation classes - make compatible */
.introCube, .introImg, .introText,
.introImg2, .introText2,
.introImg3, .introText3 {
  opacity: 1;
  transform: translateY(0);
  transition: opacity .6s ease, transform .6s ease;
}
.introCube.active, .introImg.active, .introText.active,
.introImg2.active, .introText2.active,
.introImg3.active, .introText3.active {
  opacity: 0;
  transform: translateY(40px);
}
