/* âÂÂâÂÂ RESET & VARIABLES âÂÂâÂÂ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:       #0D3F6B;
  --navy-mid:   #0D3F6B;
  --blue:       #0D3F6B;
  --cyan:       #1A9FD6;
  --cyan-light: #4BB8E8;
  --green:      #00FFB2;
  --green-dim:  rgba(0,255,178,0.12);
  --white:      #FFFFFF;
  --gray-bg:    #F0F4F8;
  --text:       #1A2B3C;
  --muted:      #607080;
  --border:     rgba(11,60,93,0.1);

  --font-d: 'Poppins', sans-serif;
  --font-b: 'Poppins', sans-serif;
  --r-sm: 6px; --r-md: 10px; --r-lg: 16px;
  --tr: 0.25s ease;
  --shadow: 0 2px 16px rgba(11,60,93,0.08);
  --shadow-h: 0 8px 32px rgba(11,60,93,0.14);
}
*{
  font-family: poppins, sans-serif;
  font-weight: 600;
}

html { scroll-behavior: smooth; overflow-x: hidden; max-width: 100vw; }
body { font-family: var(--font-b); color: var(--text); background: var(--white); overflow-x: hidden; line-height: 1.6; max-width: 100vw; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; font-family: var(--font-b); }

.container { max-width: 1100px; margin: 0 auto; padding: 0 2rem; }

/* Corrections mobile */
@media (max-width: 640px) {
  html, body { overflow-x: hidden; max-width: 100vw; }
  .container { padding: 0 1rem; width: 100%; box-sizing: border-box; max-width: 100vw; }
  section { width: 100%; overflow-x: hidden; max-width: 100vw; }
  * { max-width: 100vw; box-sizing: border-box; }
}

/* âÂÂâÂÂ LOADER âÂÂâÂÂ */
#loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.loader-content {
  text-align: center;
  color: white;
}

.loader-logo img {
  width: 120px;
  height: auto;
  margin-bottom: 2rem;
  animation: logo-grow 1.5s ease-out forwards;
}

@keyframes logo-grow {
  0% { transform: scale(0.5); opacity: 0; }
  50% { transform: scale(1.5); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

.loader-spinner {
  width: 50px;
  height: 50px;
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-top: 4px solid var(--cyan);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 1.5rem;
}

#loader p {
  font-size: 1.1rem;
  font-weight: 500;
  margin: 0;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

#loader.hidden {
  opacity: 0;
  visibility: hidden;
}

/* âÂÂâÂÂ BOUTONS âÂÂâÂÂ */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.75rem 1.75rem; border-radius: var(--r-sm);
  font-size: 0.9rem; font-weight: 500; border: none; transition: var(--tr);
  cursor: pointer;
}
.btn-primary { background: var(--cyan); color: white; }
.btn-primary:hover { background: var(--cyan-light); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(26,159,214,0.35); }
.btn-ghost { background: transparent; color: white; border: 1px solid rgba(255,255,255,0.25); }
.btn-ghost:hover { border-color: var(--green); color: var(--green); transform: translateY(-2px); }
.btn-outline-cyan { background: var(--cyan); color: white; border: 1px solid var(--cyan); }
.btn-outline-cyan:hover { background: white; color: var(--cyan); }
.btn-ghost-dark { background: white; color: var(--navy); border: 1px solid rgba(11,60,93,0.2); }
.btn-ghost-dark:hover { border-color: var(--navy); background: var(--navy); color: white; }

/* âÂÂâÂÂ SECTION COMMUNE âÂÂâÂÂ */
.section-header { text-align: center; margin-bottom: 3.5rem; }
.section-header .tag {
  display: inline-block; font-size: 0.72rem; letter-spacing: 2px;
  text-transform: uppercase; color: var(--cyan); font-weight: 600; margin-bottom: 0.75rem;
}
.section-header .light-tag { color: rgba(0,255,178,0.8); }
.section-header h2 {
  font-family: var(--font-d); font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 700; color: var(--navy); margin-bottom: 0.75rem; line-height: 1.25;
}
.section-header h2.light { color: var(--white); }
.section-header p { color: var(--muted); font-size: 0.95rem; max-width: 520px; margin: 0 auto; }
.section-header p.light { color: rgba(255,255,255,0.55); }
.accent-bar { width: 44px; height: 3px; background: linear-gradient(90deg, var(--cyan), var(--green)); margin: 1rem auto 0; border-radius: 2px; }
.section-cta { text-align: center; margin-top: 3rem; }

/* âÂÂâÂÂ TYPEWRITER EFFECT âÂÂâÂÂ */
#typewriter-text {
  display: inline-block;
  position: relative;
  color: var(--green);
  min-height: 1.2em;
}
#typewriter-text::after {
  content: '';
  position: absolute;
  right: -2px;
  height: 1.2em;
  border-right: 2px solid var(--green);
  animation: blink-cursor 0.7s infinite;
}
@keyframes blink-cursor {
  0%, 50% { border-color: var(--green); }
  51%, 100% { border-color: transparent; }
}


/* âÂÂâÂÂ HERO âÂÂâÂÂ */
#hero {
  min-height: 100vh; background: var(--navy);
  display: flex; align-items: center; position: relative;
  overflow: hidden; padding: 8rem 2rem 5rem;
}
.hero-bg { 
  position: absolute; inset: 0; overflow: hidden; pointer-events: none; 
  background: linear-gradient(135deg, rgba(6,15,30,0.85) 0%, rgba(11,60,93,0.75) 100%), url('../images/bginex.jpg') no-repeat;
  background-size: cover;
  background-position: center;
}
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(26,159,214,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26,159,214,0.05) 1px, transparent 1px);
  background-size: 60px 60px;
}
.orb { position: absolute; border-radius: 50%; filter: blur(80px); }
.orb-1 { width: 500px; height: 500px; background: rgba(26,159,214,0.12); top: -100px; right: -100px; }
.orb-2 { width: 300px; height: 300px; background: rgba(0,255,178,0.07); bottom: 0; left: 30%; }

.hero-content {
  position: relative; z-index: 2;
  max-width: 1100px; margin: 0 auto; width: 100%;
  display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center;
}

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 0.6rem;
  background: var(--green-dim); border: 1px solid rgba(0,255,178,0.3);
  color: var(--green); padding: 0.35rem 1rem; border-radius: 20px;
  font-size: 0.72rem; letter-spacing: 1.5px; text-transform: uppercase;
  font-weight: 600; margin-bottom: 1.75rem;
}
.hero-eyebrow::before {
  content: ''; width: 6px; height: 6px; background: var(--green);
  border-radius: 50%; animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.5; transform: scale(0.7); } }

.hero-title {
  font-family: var(--font-d); font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 900; color: white; line-height: 1.15; margin-bottom: 1.5rem;
}
.hero-title .highlight { color: var(--green); }

.hero-desc {
  color: rgba(255,255,255,0.65); font-size: 1rem; line-height: 1.8;
  margin-bottom: 2.25rem; max-width: 460px;
}

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 3rem; }

.hero-stats {
  display: flex; gap: 0; border-top: 1px solid rgba(255,255,255,0.08); padding-top: 2rem;
}
.hero-stats {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.stat-item {
  flex: 1;
  text-align: center;
  background: rgba(255, 255, 255, 0.08);
  padding: 1rem 1.5rem;
  border-radius: 0;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.stat-item:last-child {
  border-right: 2px solid rgba(255, 255, 255, 0.2);
}

.stat-item:nth-child(2) {
  border-left: 2px solid rgba(255, 255, 255, 0.2);
  border-right: 2px solid rgba(255, 255, 255, 0.2);
}

.stat-item:last-child {
  border-right: none;
  padding-right: 0;
  padding-left: 1.5rem;
}

.stat-item:nth-child(2) {
  padding: 0 1.5rem;
}

.stat-num {
  font-family: var(--font-d);
  font-size: 2.5rem;
  font-weight: 900;
  color: #ffffff !important;
  display: block;
  line-height: 1;
  margin-bottom: 0.3rem;
}

.stat-label {
  font-size: 1rem;
  font-weight: 600;
  color: rgba(255,255,255,0.8);
}

/* Cartes hero droite */
.hero-right { display: flex; flex-direction: column; gap: 1rem; }
.hero-card {
  background: rgba(255,255,255,0.04); border: 1px solid rgba(26,159,214,0.2);
  border-radius: var(--r-md); padding: 1.25rem 1.5rem;
  display: flex; align-items: center; gap: 1rem; transition: var(--tr);
  animation: slide-in-right 0.6s ease both;
  text-decoration: none;
}
.hero-card:hover { background: rgba(26,159,214,0.08); border-color: rgba(26,159,214,0.4); transform: translateX(-4px); }
@keyframes slide-in-right { from { opacity: 0; transform: translateX(30px); } to { opacity: 1; transform: translateX(0); } }
.hero-card:nth-child(1) { animation-delay: 0.2s; }
.hero-card:nth-child(2) { animation-delay: 0.35s; }
.hero-card:nth-child(3) { animation-delay: 0.5s; }
.hero-card:nth-child(4) { animation-delay: 0.65s; }

.hc-icon { width: 48px; height: 48px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; flex-shrink: 0; }
.hc-cyber { background: rgba(26,159,214,0.15); }
.hc-track { background: rgba(0,255,178,0.12); }
.hc-elec  { background: rgba(245,166,35,0.12); }
.hc-btp   { background: rgba(200,100,50,0.12); }
.hc-text h4 { font-size: 0.9rem; font-weight: 600; color: white; margin-bottom: 0.2rem; }
.hc-text p  { font-size: 0.78rem; color: rgba(255,255,255,0.45); }
.hc-arrow { margin-left: auto; color: var(--cyan); font-size: 1rem; opacity: 0; transition: var(--tr); }
.hero-card:hover .hc-arrow { opacity: 1; transform: translateX(3px); }

/* âÂÂâÂÂ SERVICES APERÇU âÂÂâÂÂ */
#director-note { padding: 4.5rem 0; background: #f5f9fb; margin-top: 0; }
#director-note .director-grid { display: grid; grid-template-columns: 1fr; gap: 0; align-items: center; justify-content: center; }
#director-note .director-text { background: white; border: 1px solid var(--border); border-radius: var(--r-lg); padding: 2rem 2.2rem; box-shadow: var(--shadow); max-width: 800px; margin: 0 auto; text-align: center; }
#director-note .director-text .tag { display: inline-block; font-size: 0.75rem; letter-spacing: 2px; text-transform: uppercase; color: var(--cyan); font-weight: 700; margin-bottom: 0.65rem; }
#director-note .director-text h2 { font-family: var(--font-d); font-size: clamp(1.4rem, 3vw, 2rem); margin-bottom: 1rem; color: var(--navy); }
#director-note .director-text p { color: var(--text); line-height: 1.8; margin-bottom: 1rem; }
#director-note .director-text strong { display: block; margin-top: 1rem; color: var(--blue); }

#services-apercu { padding: 6rem 0; position: relative; overflow: hidden; }

.services-video-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.services-video-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.services-video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 25, 47, 0.3);
}

#services-apercu .container { position: relative; z-index: 1; }

.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; }

/* âÂÂâÂÂ NOS DOMAINES D'EXPERTISES âÂÂâÂÂ */
#expertises { padding: 6rem 0; position: relative; overflow: hidden; background: #39393a; margin-top: 0; }

.expertises-video-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.5;
}

.expertises-video-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.expertises-video-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.expertises-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(11,60,93,0.5);
  z-index: 1;
  pointer-events: none;
}

#expertises .container { position: relative; z-index: 2; }

.expertises-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.expertise-card {
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.4s ease;
  display: flex;
  flex-direction: column;
  text-decoration: none;
}

.expertise-card:hover {
  transform: translateY(-8px);
  border-color: #1a9fd6;
  box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}
.ec-image-wrap {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  padding: 10px;
  box-sizing: border-box;
  background: #f5f5f5;
}
.ec-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  border-radius: 14px;
}
.expertise-card:hover .ec-image {
  transform: scale(1.1);
}
.ec-overlay {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  bottom: 10px;
  background: linear-gradient(180deg, transparent 45%, rgba(11,60,93,0.85) 100%);
  border-radius: 14px;
}

.ec-link-icon {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 40px;
  height: 40px;
  background: rgba(26,159,214,0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.1rem;
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.3s ease;
}

.expertise-card:hover .ec-link-icon {
  opacity: 1;
  transform: translateY(0);
}

.ec-content {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.ec-title {
  font-family: var(--font-d);
  font-size: 1.4rem;
  font-weight: 700;
  color: #0b3c5d;
  margin-bottom: 0.5rem;
}

.ec-subtitle {
  font-size: 0.85rem;
  color: #1a9fd6;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1rem;
}

.ec-desc {
  color: #444444;
  font-size: 0.95rem;
  line-height: 1.7;
  flex: 1;
}

.ec-targets {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #eeeeee;
  font-size: 0.8rem;
  color: #666666;
}

.ec-targets i {
  color: #1a9fd6;
  margin-right: 5px;
}

@media (max-width: 768px) {
  .expertises-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .ec-image-wrap {
    height: 180px;
  }
}

.service-card {
  background: white; border-radius: var(--r-lg); padding: 2rem 1.75rem;
  border: 1px solid var(--border); transition: var(--tr);
  position: relative; overflow: hidden; display: block; text-decoration: none;
}
.service-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--cyan), var(--green));
  transform: scaleX(0); transform-origin: left; transition: transform 0.3s ease;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-h); }
.service-card:hover::before { transform: scaleX(1); }

.service-icon-wrap { width: 56px; height: 56px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 1.6rem; margin-bottom: 1.5rem; }
.si-cyber { background: rgba(11,60,93,0.07); }
.si-track { background: rgba(26,159,214,0.1); }
.si-elec  { background: rgba(0,200,150,0.1); }
.si-btp   { background: rgba(245,166,35,0.1); }

.service-card h3 { font-size: 1.05rem; font-weight: 600; color: var(--navy); margin-bottom: 0.75rem; }
.service-card p { font-size: 0.85rem; color: var(--muted); line-height: 1.7; margin-bottom: 1.25rem; }
.service-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 1.25rem; }
.tag-pill { background: var(--gray-bg); color: var(--blue); font-size: 0.72rem; padding: 0.25rem 0.65rem; border-radius: 20px; font-weight: 500; }
.service-link { color: var(--cyan); font-size: 0.83rem; font-weight: 500; display: inline-flex; align-items: center; gap: 0.4rem; transition: gap var(--tr); }
.service-card:hover .service-link { gap: 0.7rem; }

/* âÂÂâÂÂ FORMATIONS APERÇU âÂÂâÂÂ */
#formations-apercu { padding: 6rem 0; background: #f0f4f8; }

.formations-grid { 
  display: grid; 
  grid-template-columns: repeat(2, 1fr); 
  gap: 2rem; 
  max-width: 1000px;
  margin: 0 auto;
}

.formation-card {
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.4s ease;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  animation: fadeInUp 0.6s ease forwards;
  opacity: 0;
}

.formation-card:nth-child(1) { animation-delay: 0.1s; }
.formation-card:nth-child(2) { animation-delay: 0.2s; }
.formation-card:nth-child(3) { animation-delay: 0.3s; }
.formation-card:nth-child(4) { animation-delay: 0.4s; }

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

.formation-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
  border-color: #1a9fd6;
}

.f-header {
  padding: 0;
  position: relative;
  overflow: hidden;
  height: 180px;
}

.fh-off, .fh-def, .fh-net, .fh-grc {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.f-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(11,60,93,0.9) 100%);
  z-index: 1;
}

.f-header img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.formation-card:hover .f-header img {
  transform: scale(1.15);
}

.f-header-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
  z-index: 2;
}

.f-level { 
  display: inline-block; 
  background: rgba(26,159,214,0.9);
  color: white; 
  font-size: 0.7rem; 
  letter-spacing: 1px; 
  text-transform: uppercase; 
  padding: 0.3rem 0.7rem; 
  border-radius: 20px; 
  margin-bottom: 0.5rem; 
  font-weight: 600;
}

.f-header h3 { 
  color: white; 
  font-size: 1.3rem; 
  font-weight: 700; 
  line-height: 1.3;
  margin: 0;
}

.f-body { 
  padding: 1.5rem; 
  flex: 1; 
  background: #ffffff;
}

.f-body ul { 
  display: flex; 
  flex-direction: column; 
  gap: 0.6rem; 
  margin: 0;
  padding: 0;
  list-style: none;
}

.f-body li { 
  font-size: 0.9rem; 
  color: #444444; 
  display: flex; 
  align-items: flex-start; 
  gap: 0.6rem;
}

.f-body li::before { 
  content: '\f00c'; 
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  color: #1a9fd6; 
  font-size: 0.8rem;
  margin-top: 3px;
}

.f-footer { 
  display: flex; 
  align-items: center; 
  justify-content: space-between; 
  padding: 1rem 1.5rem; 
  border-top: 1px solid #eeeeee;
  background: #fafafa;
}

.f-duration { 
  font-size: 0.8rem; 
  color: #666666;
}

.f-duration i {
  color: #1a9fd6;
  margin-right: 5px;
}

.f-btn { 
  background: #0b3c5d; 
  color: white; 
  border: none; 
  padding: 0.6rem 1.2rem; 
  border-radius: 8px; 
  font-size: 0.85rem; 
  font-weight: 600;
  transition: all 0.3s ease;
}

.formation-card:hover .f-btn { 
  background: #1a9fd6;
}

.f-header-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 25%, rgba(11,60,93,0.9) 100%);
  z-index: 1;
}

.f-header-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.25rem;
  z-index: 2;
}

@media (max-width: 768px) {
  .formations-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .f-header {
    height: 150px;
  }
}

/* âÂÂâÂÂ POURQUOI NOUS âÂÂâÂÂ */
#why { padding: 6rem 0; background: var(--navy); position: relative; overflow: hidden; }
#why::before {
  content: ''; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(26,159,214,0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(26,159,214,0.04) 1px, transparent 1px);
  background-size: 50px 50px;
}
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.25rem; position: relative; z-index: 1; }
.why-card { background: rgba(255,255,255,0.03); border: 1px solid rgba(26,159,214,0.15); border-radius: var(--r-md); padding: 1.75rem 1.5rem; transition: var(--tr); }
.why-card:hover { background: rgba(26,159,214,0.07); border-color: rgba(26,159,214,0.35); transform: translateY(-4px); }
.why-icon { font-size: 1.75rem; margin-bottom: 1rem; display: block; color: #ffffff; }
.why-card h4 { font-size: 1rem; font-weight: 700; color: #ffffff; margin-bottom: 0.5rem; }
.why-card p { font-size: 0.85rem; color: #ffffff; line-height: 1.7; opacity: 0.85; }

/* âÂÂâÂÂ TÉMOIGNAGES âÂÂâÂÂ */
#testimonials { padding: 6rem 0; background: var(--gray-bg); }

.testi-carousel { position: relative; max-width: 900px; margin: 0 auto; overflow: hidden; touch-action: pan-y; }

.testi-track { display: flex; transition: transform 0.5s ease-in-out; }

.testi-card { 
  background: white; border-radius: var(--r-lg); padding: 2rem; border: 1px solid var(--border); 
  position: relative; transition: var(--tr); flex: 0 0 100%; box-sizing: border-box; overflow: hidden;
}
.testi-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-h); }
.quote-mark { font-size: 4rem; line-height: 1; color: var(--cyan); opacity: 0.2; font-family: var(--font-d); position: absolute; top: 1rem; right: 1.5rem; }
.stars { color: #F5A623; font-size: 0.85rem; letter-spacing: 2px; margin-bottom: 1rem; }
.testi-text { font-size: 0.87rem; color: var(--muted); line-height: 1.8; font-style: italic; margin-bottom: 1.5rem; }
.testi-author { display: flex; align-items: center; gap: 0.75rem; border-top: 1px solid var(--border); padding-top: 1.25rem; }
.testi-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--cyan); color: white; font-weight: 700; font-size: 0.85rem; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.testi-name { font-weight: 600; font-size: 0.87rem; color: var(--navy); }
.testi-role { font-size: 0.75rem; color: var(--muted); }

.testi-controls { display: flex; align-items: center; justify-content: center; gap: 1.5rem; margin-top: 2rem; }
.testi-btn { background: var(--cyan); color: white; border: none; width: 40px; height: 40px; border-radius: 50%; cursor: pointer; transition: var(--tr); display: flex; align-items: center; justify-content: center; }
.testi-btn:hover { background: var(--navy); transform: scale(1.1); }
.testi-dots { display: flex; gap: 0.5rem; }
.testi-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--border); border: none; cursor: pointer; transition: var(--tr); }
.testi-dot.active { background: var(--cyan); transform: scale(1.2); }

/* âÂÂâÂÂ PARTENAIRES (Grille animée) âÂÂâÂÂ */
#partners { padding: 5rem 0; background: var(--white); }

.partners-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
  justify-items: center;
  align-items: center;
}

.partner-card {
  background: white;
  border-radius: var(--r-lg);
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: var(--tr);
  height: 100px;
  width: 100%;
  max-width: 160px;
}

.partner-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-h);
  border-color: var(--cyan);
}

.partner-card img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(0%);
  transition: var(--tr);
}

.partner-card:hover img {
  transform: scale(1.05);
}

@media (max-width: 992px) {
  .partners-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }
  .partner-card {
    height: 90px;
    max-width: 140px;
  }
}

@media (max-width: 576px) {
  .partners-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
  .partner-card {
    padding: 0.75rem;
    height: 80px;
    max-width: 120px;
  }
}

/* âÂÂâÂÂ CLIENTS (Défilement auto) âÂÂâÂÂ */
#clients { padding: 5rem 0; background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%); }
#clients .light-tag { background: rgba(255,255,255,0.15); color: white; }
#clients .light { color: white; }
#clients p.light { color: rgba(255,255,255,0.8); }

.clients-scroll-wrapper {
  overflow: hidden;
  margin-top: 3rem;
}

.clients-scroll-track {
  display: flex;
  gap: 3rem;
  width: max-content;
  animation: scroll-clients 25s linear infinite;
}

.clients-scroll-track:hover {
  animation-play-state: paused;
}

@keyframes scroll-clients {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.client-item {
  flex-shrink: 0;
  width: 200px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--tr);
}

.client-item:hover {
  transform: scale(1.08);
}

.client-item img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.client-item:hover img {
  opacity: 1;
}

@media (max-width: 768px) {
  .client-item { width: 160px; height: 100px; }
}

/* âÂÂâÂÂ CTA CONTACT âÂÂâÂÂ */
#cta-contact { 
  padding: 5rem 0; 
  background: linear-gradient(135deg, rgba(6,15,30,0.9) 0%, rgba(11,60,93,0.85) 100%), url('../images/Cybersécurité\ Offensive.jpg');
  background-size: cover;
  background-position: center;
}
.cta-box {
  background: linear-gradient(135deg, var(--navy-mid), var(--blue));
  border-radius: var(--r-lg); padding: 3rem;
  display: flex; align-items: center; justify-content: space-between;
  gap: 2rem; flex-wrap: wrap;
  border: 1px solid rgba(26,159,214,0.2);
}
.cta-box-text h2 { font-family: var(--font-d); font-size: clamp(1.2rem, 2.5vw, 1.6rem); font-weight: 700; color: white; margin-bottom: 0.6rem; }
.cta-box-text p { color: rgba(255,255,255,0.55); font-size: 0.92rem; }
.cta-box-actions { display: flex; gap: 1rem; flex-wrap: wrap; flex-shrink: 0; }

/* âÂÂâÂÂ FOOTER âÂÂâÂÂ */
footer { background: var(--navy); color: rgba(255,255,255,0.45); padding: 4rem 0 2rem; border-top: 1px solid rgba(26,159,214,0.12); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.footer-logo { font-family: var(--font-d); font-size: 1.2rem; font-weight: 900; color: #fff; letter-spacing: 3px; display: block; margin-bottom: 1rem; }
.footer-brand p { font-size: 0.82rem; line-height: 1.8; color: rgba(255,255,255,0.4); }
.footer-col h4 { color: #fff; font-size: 0.85rem; font-weight: 600; margin-bottom: 1.25rem; }
.footer-col ul { display: flex; flex-direction: column; gap: 0.65rem; }
.footer-col li a { font-size: 0.82rem; color: rgba(255,255,255,0.4); transition: color var(--tr); display: flex; align-items: center; gap: 0.4rem; }
.footer-col li a i { color: var(--cyan); font-size: 0.75rem; width: 14px; }
.footer-col li a:hover { color: var(--cyan); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.06); padding-top: 1.5rem; display: flex; align-items: center; justify-content: space-between; font-size: 0.78rem; }
.footer-social { display: flex; gap: 0.75rem; }
.social-btn { width: 34px; height: 34px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.1); background: rgba(255,255,255,0.04); display: flex; align-items: center; justify-content: center; font-size: 0.85rem; transition: var(--tr); color: #ffffff; cursor: pointer; }
.social-btn i { font-size: 0.9rem; }
.social-btn:hover { background: rgba(255,255,255,0.1); }
.social-btn.social-facebook { color: #1877F2; }
.social-btn.social-facebook:hover { background: #1877F2; color: #ffffff; }
.social-btn.social-whatsapp { color: #25D366; }
.social-btn.social-whatsapp:hover { background: #25D366; color: #ffffff; }
.social-btn.social-linkedin { color: #0A66C2; }
.social-btn.social-linkedin:hover { background: #0A66C2; color: #ffffff; }

/* Footer contact info */
.footer-contact-info { margin-top: 1.25rem; display: flex; flex-direction: row; flex-wrap: wrap; gap: 0.75rem; justify-content: flex-start; }
.fci-item { display: flex; align-items: center; gap: 0.5rem; font-size: 0.8rem; color: rgba(255,255,255,0.85); background: rgba(255,255,255,0.08); padding: 0.5rem 0.75rem; border-radius: 6px; border: 1px solid rgba(26,159,214,0.2); white-space: nowrap; }
.fci-item a { color: rgba(255,255,255,0.85); }
.fci-item a:hover { color: var(--cyan); }
.fci-item i { color: var(--cyan); }
.fci-item span { white-space: nowrap; }


/* âÂÂâÂÂ WHATSAPP FLOAT âÂÂâÂÂ */
.wa-float {
  position: fixed; bottom: 2rem; right: 2rem; z-index: 999;
  width: 56px; height: 56px; background: #25D366; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; cursor: pointer;
  box-shadow: 0 4px 20px rgba(37,211,102,0.45);
  animation: float-bounce 3s ease-in-out infinite;
}
.wa-float:hover { transform: scale(1.1); }
@keyframes float-bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

/* âÂÂâÂÂ ANIMATIONS AOS âÂÂâÂÂ */
[data-aos] { opacity: 0; transform: translateY(28px); transition: opacity 0.6s ease, transform 0.6s ease; }
[data-aos].aos-animate { opacity: 1; transform: translateY(0); }
[data-aos-delay="100"] { transition-delay: 0.1s; }
[data-aos-delay="200"] { transition-delay: 0.2s; }
[data-aos-delay="300"] { transition-delay: 0.3s; }
[data-aos-delay="400"] { transition-delay: 0.4s; }

/* âÂÂâÂÂ MOBILE NAV âÂÂâÂÂ */
.nav-links.mobile-open {
  display: flex; flex-direction: column;
  position: fixed; top: 68px; left: 0; right: 0;
  background: rgba(6,15,30,0.98); backdrop-filter: blur(12px);
  padding: 1.5rem 2rem; gap: 1.25rem; z-index: 999;
  border-bottom: 1px solid rgba(26,159,214,0.2);
}
.nav-links.mobile-open a { color: rgba(255,255,255,0.85); font-size: 1rem; }
/* Mobile dropdown - click to toggle */
.nav-links.mobile-open .dropdown > a { justify-content: space-between; }
.nav-links.mobile-open .dropdown > a::after { content: '\f107'; font-family: 'Font Awesome 6 Free'; font-weight: 900; margin-left: auto; }
.nav-links.mobile-open .dropdown.dropdown-open > a::after { transform: rotate(180deg); }
.nav-links.mobile-open .dropdown-menu { display: none; position: static; background: transparent; box-shadow: none; border: none; padding-left: 1rem; padding: 0.5rem 0; }
.nav-links.mobile-open .dropdown-menu li { padding: 0; }
.nav-links.mobile-open .dropdown-menu a { padding: 0.5rem 0.75rem; font-size: 0.9rem; border-left: none; }
.nav-links.mobile-open .dropdown-menu a:hover { background: rgba(26,159,214,0.15); padding-left: 0.75rem; }
.nav-links.mobile-open .dropdown-section-title { font-size: 0.7rem; padding: 0.5rem 0.75rem; }

/* âÂÂâÂÂ RESPONSIVE âÂÂâÂÂ */
@media (max-width: 1024px) {
  .hero-content { gap: 2rem; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 2.5rem; }
}

@media (max-width: 900px) {
  .hero-content { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-right { display: flex; flex-direction: column; gap: 1rem; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
  .cta-box { flex-direction: column; text-align: center; }
  .cta-box-actions { justify-content: center; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .formations-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-hamburger { display: flex; }
  .nav-links.mobile-open { display: flex !important; }
  #hero { padding: 6rem 1.5rem 4rem; }
  .hero-title { font-size: 1.8rem; line-height: 1.2; margin-bottom: 1rem; }
  .hero-desc { font-size: 0.95rem; }
  .hero-eyebrow { font-size: 0.65rem; margin-bottom: 1.25rem; }
  .hero-stats { flex-wrap: wrap; gap: 1rem; padding-top: 1.5rem; text-align: center; justify-content: center; }
  .stat-item { flex: 0 0 calc(33.333% - 0.75rem); padding: 1rem 0.75rem !important; border: 2px solid rgba(255, 255, 255, 0.2) !important; border-radius: 0; }
  .stat-item:nth-child(2) { border: 2px solid rgba(255, 255, 255, 0.2) !important; }
  .stat-num { font-size: 2rem; }
  .hero-card { padding: 1rem 1.25rem; }
  .hc-icon { width: 40px; height: 40px; font-size: 1.2rem; }
  .hc-text h4 { font-size: 0.85rem; }
  .hc-text p { font-size: 0.75rem; }
  .services-grid { grid-template-columns: 1fr; }
  .formations-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
  .cta-box { padding: 2rem 1.5rem; }
  .section-header h2 { font-size: 1.5rem; }
  #services-apercu { padding: 4rem 1.5rem; }
  #formations-apercu { padding: 4rem 1.5rem; }
  #why { padding: 4rem 1.5rem; }
  #testimonials { padding: 4rem 1.5rem; }
  #cta-contact { padding: 3.5rem 1.5rem; }
  #director-note .director-grid { grid-template-columns: 1fr; }
  #director-note .director-text { padding: 1.5rem 1.5rem; }
  #director-note .director-text h2 { font-size: 1.3rem; }
  #director-note .director-text p { font-size: 0.94rem; }
}

@media (max-width: 640px) {
  .nav-inner { padding: 0 1rem; }
  .logo img { height: 32px; }
  #hero { padding: 5rem 1rem 2rem; min-height: auto; }
  .hero-left { width: 100%; }
  .hero-title { font-size: 1.5rem; margin-bottom: 0.75rem; }
  .hero-desc { font-size: 0.9rem; margin-bottom: 1.25rem; }
  .hero-actions { flex-direction: column; gap: 0.75rem; }
  .btn { padding: 0.65rem 1.5rem; font-size: 0.85rem; width: 100%; }
  .hero-stats { flex-direction: column; gap: 1.25rem; border-top: 1px solid rgba(255,255,255,0.08); padding-top: 1.25rem; margin-top: 1.5rem; text-align: center; }
  .stat-item { flex: 1 0 calc(50% - 0.5rem); padding: 1rem; border: 2px solid rgba(255, 255, 255, 0.2); border-radius: 0; margin-bottom: 0; }
  .stat-num { font-size: 2rem; }
  .stat-label { font-size: 0.9rem; }
  .hero-right { flex-direction: column; gap: 0.75rem; margin-top: 1.5rem; }
  .hero-card { padding: 0.9rem 1rem; gap: 0.75rem; }
  .hc-icon { width: 36px; height: 36px; font-size: 1.1rem; }
  #director-note .director-text { padding: 1.5rem 1.5rem; }
  #director-note .director-text h2 { font-size: 1.3rem; }
  #director-note .director-text p { font-size: 0.94rem; }
  .hc-text h4 { font-size: 0.8rem; margin-bottom: 0.1rem; }
  .hc-text p { font-size: 0.7rem; }
  .hc-arrow { font-size: 0.9rem; }
  .container { padding: 0 1rem; }
  .section-header { margin-bottom: 2.5rem; }
  .section-header h2 { font-size: 1.3rem; }
  .section-header p { font-size: 0.9rem; }
  .service-card { padding: 1.5rem; }
  .f-header { padding: 1.25rem; }
  .f-body { padding: 1rem; }
  .f-body li { font-size: 0.78rem; }
  .why-grid { grid-template-columns: repeat(3, 1fr); gap: 1rem; }
  .why-card { padding: 1.5rem; }
  .testi-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-brand .footer-logo { font-size: 1rem; }
  .footer-brand p { font-size: 0.85rem; }
  .footer-col h4 { font-size: 1rem; }
  .footer-col li a { font-size: 0.85rem; }
  footer { padding: 2rem 1rem 1rem; }
  .footer-bottom { font-size: 0.8rem; flex-direction: column; gap: 1rem; text-align: center; }
  .footer-col { padding: 0.5rem 0; }
  .fci-item { font-size: 0.8rem; gap: 0.5rem; }
  .footer-contact-info { gap: 0.5rem; }
  /* Tailles de police générales réduites pour mobile */
  p, li, span, a { font-size: 0.85rem; word-wrap: break-word; }
  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.4rem; }
  h3 { font-size: 1.1rem; }
  h4 { font-size: 0.95rem; }
  /* Footer spécifique */
  .footer-col h4 { font-size: 1rem; font-weight: 600; }
  .footer-col ul li a { font-size: 0.85rem; }
  .footer-brand p { font-size: 0.85rem; line-height: 1.5; }
  .fci-item { font-size: 0.75rem; padding: 0.4rem 0.6rem; }
  .expertises-grid { grid-template-columns: 1fr; }
  .formations-grid { grid-template-columns: 1fr; }
  .ec-image-wrap { height: 160px; }
  .ec-content { padding: 1.25rem; }
  .ec-title { font-size: 1.2rem; }
  .ec-desc { font-size: 0.88rem; }
  /* Loader centré sur mobile */
  #loader { left: 0; width: 100%; }
  .loader-content { padding: 0 1rem; }
  /* WhatsApp flottant bien positionné */
  .wa-float { bottom: 1.5rem; right: 1rem; }
  /* Sections bien centrées */
  section { overflow-x: hidden; max-width: 100vw; }
  .section-header { padding: 0 0.5rem; }
  /* Éviter tout débordement */
  img, video, iframe, embed, object { max-width: 100%; height: auto; }
  .hero-bg { background-size: cover; background-position: center; }
  .hero-content { max-width: 100%; padding: 0; }
  .hero-card { width: 100%; }
  .expertises-grid, .formations-grid { width: 100%; }
  .expertise-card, .formation-card { width: 100%; }
  .service-card-dark { width: 100%; }
  .scd-image-wrap { width: 100%; }
  .clients-scroll-wrapper { width: 100%; }
  .testimonials-wrapper { width: 100%; }
  .cta-box { width: 100%; }
  .why-grid { width: 100%; }
}

/* âÂÂâÂÂ SERVICES GRILLE NOIRE (4 COLONNES) âÂÂâÂÂ */
#services-apercu { background: #000000; padding: 5rem 0; }
.services-main-title { color: #003366; font-family: 'Poppins', sans-serif; font-size: clamp(1.2rem, 2.5vw, 1.8rem); font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 1rem; }
.services-grid-dark { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; margin-bottom: 3rem; }
@media(max-width: 1024px) { .services-grid-dark { grid-template-columns: repeat(2, 1fr); } }
@media(max-width: 600px) { 
  .services-grid-dark { grid-template-columns: 1fr; }
  .scd-title { font-size: 0.9rem; }
  .scd-desc { font-size: 0.8rem; }
  #services-apercu { padding: 3rem 1rem; }
}

.service-card-dark { display: block; background: transparent; border-radius: 0; overflow: hidden; transition: transform 0.3s ease; }
.service-card-dark:hover { transform: translateY(-5px); }
.scd-image-wrap { position: relative; width: 100%; height: 200px; overflow: hidden; }
.scd-image { width: 100%; height: 100%; object-fit: cover; filter: grayscale(100%); transition: filter 0.3s ease; }
.service-card-dark:hover .scd-image { filter: grayscale(0%); }
.scd-accent { position: absolute; top: 0; right: 0; width: 50px; height: 50px; border-radius: 0 0 0 100%; background: linear-gradient(135deg, #003366 50%, #ffffff 50%); }
.scd-title { font-family: 'Poppins', sans-serif; font-size: 1rem; font-weight: 700; color: #FFFFFF; text-transform: uppercase; margin: 1rem 0 0.5rem; padding: 0 0.5rem; }
.scd-date { display: block; font-family: 'Poppins', sans-serif; font-size: 0.85rem; font-weight: 600; color: #003366; padding: 0 0.5rem; margin-bottom: 0.5rem; }
.scd-desc { font-family: 'Poppins', sans-serif; font-size: 0.85rem; color: #CCCCCC; padding: 0 0.5rem 1rem; line-height: 1.5; }

/* âÂÂâÂÂ SERVICES GRILLE NOIRE (4 COLONNES) âÂÂâÂÂ */
