/* ============================================================
   CREO DIGITAL — site.css
   CSS complet fusionné (baseline + styles de index.html)
   ============================================================ */

/* ── RESET & BOX MODEL ── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

* {
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* ── VARIABLES ── */
:root {
  --primary: #F39221;
  --primary-dark: #D97C18;
  --accent: #F39221;
  --creo-blue: #0072ff;
  --creo-blue-light: #0650f3;
  --topbar-height: 42px;
  --navbar-height: 72px;

  /* MODE LIGHT */
  --bg: #ffffff;
  --dark: #FFF8F1;
  --dark2: #FFF0DC;
  --dark3: #FFE3BC;
  --white: #1A2340;
  --text: #111827;
  --muted: #6b7280;
  --gray: #5C6B8A;
  --card-bg: #FFFFFF;
  --text-light: #FFFFFF;
  --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);

  /* ANIMATION 3D light */
  --iso-top: #D6EEF8;
  --iso-left: #BDD8E8;
  --iso-right: #A0C2D4;
  --iso-base: #2a7a8a;
  --iso-panel: #2a7a8a;
  --iso-dot: #1E6070;
  --iso-shadow: rgba(30, 96, 112, 0.18);
  --shield-front-bg: #E8F5FA;
  --shield-front-edge: #2a8fa8;
  --shield-back-top: #4aadcc;
  --shield-back-bot: #1a5f75;
  --shield-key: #1E6070;
  --shield-glow: rgba(42, 130, 158, 0.22);
  --scan-color: rgba(42, 200, 225, 0.85);
  --particle-color: #2a9ab0;
  --anim-bg-grad1: rgba(0, 114, 255, 0.08);
  --anim-bg-grad2: rgba(243, 146, 33, 0.12);
}

/* MODE DARK */
[data-theme="dark"],
html[data-theme="dark"] {
  --creo-blue: #F39221;
  --creo-blue-light: #FFB35A;
  --bg: #0b1220;
  --dark: #0B0F19;
  --dark2: #141A28;
  --dark3: #1E2638;
  --white: #E8EDF8;
  --text: #e5e7eb;
  --muted: #9ca3af;
  --gray: #8B9BB8;
  --card-bg: #141A28;

  /* ANIMATION 3D dark */
  --iso-top: #1E2A3A;
  --iso-left: #172232;
  --iso-right: #101A28;
  --iso-base: #F39221;
  --iso-panel: #D97C18;
  --iso-dot: #FFB35A;
  --iso-shadow: rgba(243, 146, 33, 0.20);
  --shield-front-bg: #1C2840;
  --shield-front-edge: #F39221;
  --shield-back-top: #FFB35A;
  --shield-back-bot: #D97C18;
  --shield-key: #FFD080;
  --shield-glow: rgba(243, 146, 33, 0.30);
  --scan-color: rgba(255, 180, 80, 0.90);
  --particle-color: #FFB35A;
  --anim-bg-grad1: rgba(243, 146, 33, 0.10);
  --anim-bg-grad2: rgba(0, 114, 255, 0.06);
}

/* ── BASE ── */
html {
  height: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--navbar-height) + 16px);
}

body {
  height: 100%;
  margin: 0;
  font-family: 'Montserrat', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--dark);
  color: var(--white);
  overflow-x: hidden;
  transition: var(--transition);
}

a {
  color: inherit;
  text-decoration: none;
}

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

/* ── THEME TOGGLE ── */
.theme-toggle {
  background: transparent;
  border: 1px solid rgba(243, 146, 33, 0.3);
  color: var(--gray);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  font-size: 18px;
  margin-right: 10px;
}

.theme-toggle:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: rotate(15deg);
}

[data-theme="dark"] .logo img {
  filter: brightness(1.2);
}

/* ── TOP BAR ── */
.topbar {
  background: var(--dark2);
  padding: 8px 60px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid rgba(243, 146, 33, 0.1);
}

.topbar a {
  color: var(--gray);
  font-size: 15px;
  transition: color .3s;
}

.topbar a:hover {
  color: var(--primary);
}

.topbar a:focus-visible,
.theme-toggle:focus-visible,
.lang-btn:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

.topbar a:hover {
  color: var(--primary);
}

/* ── NAVBAR ── */
nav,
#headerr {
  position: fixed;
  top: var(--header-offset, var(--topbar-height));
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 248, 241, 0.97);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 60px;
  height: var(--navbar-height);
  border-bottom: 1px solid rgba(243, 146, 33, 0.2);
  box-shadow: 0 2px 30px rgba(243, 146, 33, 0.1);
  transition: top 0.2s ease;
}

[data-theme="dark"] nav,
[data-theme="dark"] #headerr {
  background: rgba(11, 15, 25, 0.97);
  border-bottom: 1px solid rgba(243, 146, 33, 0.12);
  box-shadow: 0 2px 30px rgba(41, 50, 122, 0.08);
}

.logo {
  font-family: 'Rajdhani', sans-serif;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--white);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo span {
  color: var(--primary);
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 36px;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--gray);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  transition: color .3s;
  position: relative;
  padding-bottom: 4px;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transition: width .3s;
}

.nav-links a:hover {
  color: var(--white);
}

.nav-links a:hover::after {
  width: 100%;
}

.lang-btn {
  background: transparent;
  border: 1px solid rgba(243, 146, 33, 0.3);
  color: var(--gray);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all .3s;
  font-family: 'Montserrat', sans-serif;
}

.lang-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* ── HERO ── */
.hero {
  min-height: 100vh;
  background:
    radial-gradient(ellipse at 70% 50%, rgba(0, 114, 255, 0.10) 0%, transparent 60%),
    radial-gradient(ellipse at 20% 80%, rgba(243, 146, 33, 0.18) 0%, transparent 50%),
    linear-gradient(135deg, var(--dark) 0%, var(--dark2) 100%);
  display: flex;
  align-items: center;
  padding: 0 60px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    linear-gradient(rgba(243, 146, 33, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(243, 146, 33, 0.05) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
  0%   { transform: translateY(0); }
  100% { transform: translateY(60px); }
}

.hero-content {
  position: relative;
  z-index: 1;
  flex: 1;
  max-width: 600px;
}

.hero-tag {
  display: inline-block;
  background: rgba(243, 146, 33, 0.1);
  border: 1px solid rgba(243, 146, 33, 0.3);
  color: var(--primary);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  padding: 6px 18px;
  border-radius: 20px;
  margin-bottom: 28px;
  text-transform: uppercase;
}

.hero h1 {
  font-family: 'Rajdhani', sans-serif;
  font-size: clamp(38px, 5vw, 62px);
  font-weight: 700;
  line-height: 1.1;
  text-transform: uppercase;
  margin-bottom: 28px;
}

.hero h1 span {
  background: linear-gradient(90deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-typed {
  font-size: 16px;
  color: var(--gray);
  margin-bottom: 40px;
  min-height: 28px;
  font-weight: 500;
  letter-spacing: 1px;
}

.typed-text {
  color: var(--primary);
  font-weight: 700;
}

.cursor {
  display: inline-block;
  width: 2px;
  height: 18px;
  background: var(--primary);
  animation: blink 1s infinite;
  vertical-align: middle;
}

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

.btn-primary {
  color: var(--text-light) !important;
  display: inline-block;
  background: linear-gradient(90deg, var(--primary-dark), var(--primary));
  text-decoration: none;
  padding: 14px 36px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  transition: all .3s;
  box-shadow: 0 0 30px rgba(41, 50, 122, 0.3);
}

section.svc-cta a.btn-primary {
    background-color: #1a2340 !important;
    color: #ffffff !important;
}


.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 40px rgba(41, 50, 122, 0.5);
}

/* Hero graphic */
.hero-img {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-graphic {
  width: 420px;
  height: 420px;
  border: 1px solid rgba(243, 146, 33, 0.2);
  border-radius: 50%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

@keyframes rotate {
  to { transform: rotate(360deg); }
}

.hero-graphic::before {
  content: '';
  position: absolute;
  inset: 20px;
  border-radius: 50%;
  border: 1px dashed rgba(243, 146, 33, 0.15);
  animation: rotate 20s linear infinite;
}

.hero-graphic::after {
  content: '';
  position: absolute;
  inset: 60px;
  border-radius: 50%;
  border: 1px solid rgba(41, 50, 122, 0.2);
  animation: rotate 10s linear infinite reverse;
}

.orb {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, rgba(243, 146, 33, 0.4), rgba(41, 50, 122, 0.1) 60%, transparent);
  box-shadow: 0 0 60px rgba(243, 146, 33, 0.2), inset 0 0 40px rgba(41, 50, 122, 0.1);
  animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1);    }
  50%       { transform: scale(1.05); }
}

.orbit-dot {
  position: absolute;
  width: 10px;
  height: 10px;
  background: var(--primary);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--primary);
  top: 50%;
  left: 50%;
  margin: -5px;
  transform-origin: 0 0;
}

.orbit-dot:nth-child(1) {
  --orbit-radius: 150px;
  animation: dotOrbit 12s linear infinite;
}

.orbit-dot:nth-child(2) {
  --orbit-radius: 185px;
  animation: dotOrbit 16s linear infinite reverse;
  animation-delay: -5s;
}

.orbit-dot:nth-child(3) {
  --orbit-radius: 210px;
  animation: dotOrbit 10s linear infinite;
  animation-delay: -2.5s;
}

@keyframes dotOrbit {
  from {
    transform: rotate(0deg) translateX(var(--orbit-radius)) rotate(0deg);
  }

  to {
    transform: rotate(360deg) translateX(var(--orbit-radius)) rotate(-360deg);
  }
}

/* ── FEATURES STRIP ── */
.features-strip {
  background: var(--dark2);
  padding: 60px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  border-top: 1px solid rgba(243, 146, 33, 0.1);
  border-bottom: 1px solid rgba(243, 146, 33, 0.1);
}

.feature-card {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 30px;
  border-radius: 8px;
  background: var(--card-bg);
  border: 1px solid rgba(243, 146, 33, 0.2);
  box-shadow: 0 4px 20px rgba(0, 114, 255, 0.06);
  transition: all .3s;
}

.feature-card:hover {
  border-color: rgba(243, 146, 33, 0.45);
  transform: translateY(-4px);
  box-shadow: 0 10px 40px rgba(0, 114, 255, 0.12);
}

.feature-icon {
  width: 54px;
  height: 54px;
  min-width: 54px;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  border-radius: 12px;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-card h4 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 8px;
  color: var(--white);
}

.feature-card p {
  font-size: 13px;
  color: var(--gray);
  line-height: 1.7;
}

/* ── ABOUT ── */
.about {
  padding: 100px 60px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-img {
  position: relative;
}

.about-img-inner {
  width: 100%;
  background: linear-gradient(135deg, var(--anim-bg-grad1), var(--anim-bg-grad2));
  border: 1px solid rgba(243, 146, 33, 0.18);
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  min-height: 440px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-img-inner::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 40%, rgba(41, 50, 122, 0.25) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 70%, rgba(243, 146, 33, 0.15) 0%, transparent 50%);
}

.service-card-icon i,
.feature-icon i,
.approach-item-icon i {
  color: var(--primary);
  transition: color .4s;
}

.service-card:hover .service-card-icon i {
  color: #fff;
}

.about-big-icon i {
  font-size: 120px;
  color: rgba(243, 146, 33, 0.15);
  position: relative;
  z-index: 1;
}

.about-badge {
  color: var(--text-light) !important;
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  padding: 20px 28px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 10px 40px rgba(41, 50, 122, 0.4);
}

.about-badge .num {
  font-size: 36px;
  font-weight: 900;
  display: block;
}

.about-badge .lbl {
  color: var(--text-light) !important;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  opacity: .9;
}

/* Section labels */
.section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 14px;
}

.section-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 24px;
  line-height: 1.1;
}

.section-title span {
  color: var(--primary);
}

.about-text {
  color: var(--gray);
  line-height: 1.9;
  font-size: 14px;
  margin-bottom: 36px;
}

/* ── SERVICES ── */
.services {
  padding: 100px 60px;
  background: var(--dark2);
  text-align: center;
}

.services .section-label,
.services .section-title {
  text-align: left;
}

.services-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 60px;
}

.services-subtitle {
  color: var(--gray);
  font-size: 14px;
  max-width: 420px;
  text-align: right;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--card-bg);
  border: 1px solid rgba(243, 146, 33, 0.18);
  border-radius: 10px;
  padding: 40px 30px;
  transition: all .4s;
  position: relative;
  overflow: hidden;
  text-align: left;
  box-shadow: 0 4px 20px rgba(0, 114, 255, 0.05);
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-dark), var(--accent));
  transform: scaleX(0);
  transition: transform .4s;
}

.service-card:hover {
  border-color: rgba(243, 146, 33, 0.3);
  transform: translateY(-6px);
  box-shadow: 0 16px 50px rgba(0, 114, 255, 0.12);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card-icon {
  width: 64px;
  height: 64px;
  background: rgba(243, 146, 33, 0.08);
  border: 1px solid rgba(243, 146, 33, 0.2);
  border-radius: 14px;
  font-size: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  transition: all .4s;
}

.service-card:hover .service-card-icon {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  border-color: transparent;
}

.service-card h3 {
  font-family: 'Rajdhani', sans-serif;
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 12px;
}

.service-card p {
  font-size: 13px;
  color: var(--gray);
  line-height: 1.75;
}

/* ── APPROACH ── */
.approach {
  padding: 100px 60px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}

.approach-text .section-title {
  margin-bottom: 30px;
}

.approach-text p {
  color: var(--gray);
  font-size: 14px;
  line-height: 1.9;
  margin-bottom: 50px;
}

.approach-items {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.approach-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 24px;
  background: var(--card-bg);
  border: 1px solid rgba(243, 146, 33, 0.18);
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(0, 114, 255, 0.05);
  transition: all .3s;
}

.approach-item:hover {
  border-color: rgba(243, 146, 33, 0.4);
  box-shadow: 0 8px 30px rgba(0, 114, 255, 0.1);
}

.approach-item-icon {
  width: 50px;
  height: 50px;
  min-width: 50px;
  background: rgba(243, 146, 33, 0.1);
  border: 1px solid rgba(243, 146, 33, 0.25);
  border-radius: 10px;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.approach-item h4 {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.approach-item p {
  font-size: 13px;
  color: var(--gray);
  line-height: 1.7;
}

.approach-visual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.stat-box {
  background: var(--card-bg);
  border: 1px solid rgba(243, 146, 33, 0.12);
  border-radius: 10px;
  padding: 30px 24px;
  text-align: center;
  transition: all .3s;
}

.stat-box:hover {
  border-color: rgba(243, 146, 33, 0.3);
}

.stat-box:first-child {
  grid-column: span 2;
}

.stat-num {
  font-family: 'Rajdhani', sans-serif;
  font-size: 48px;
  font-weight: 700;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 12px;
  color: var(--gray);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

/* ── CONTACT ── */
.contact-section {
  padding: 100px 60px;
  background: var(--dark2);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.contact-form-wrap h3 {
  font-family: 'Rajdhani', sans-serif;
  font-size: 28px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 10px;
  letter-spacing: 2px;
}

.contact-form-wrap p {
  color: var(--gray);
  font-size: 13px;
  margin-bottom: 36px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  background: #FFFFFF;
  border: 1px solid rgba(243, 146, 33, 0.25);
  border-radius: 6px;
  padding: 13px 16px;
  color: var(--white);
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  transition: border-color .3s;
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 15px rgba(243, 146, 33, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.btn-submit {
  color: var(--text-light) !important;
  width: 100%;
  background: linear-gradient(90deg, var(--primary-dark), var(--primary));
  border: none;
  cursor: pointer;
  padding: 15px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-family: 'Montserrat', sans-serif;
  transition: all .3s;
  box-shadow: 0 0 30px rgba(41, 50, 122, 0.2);
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 40px rgba(41, 50, 122, 0.4);
}

.contact-info {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  height: 100%;
  min-height: 500px;
  box-shadow: 0 10px 40px rgba(41, 50, 122, 0.08);
}

/* ── CONTACT PAGE OVERRIDES ── */
/* Formulaire x1.3 : colonne formulaire élargie */
.contact-inner {
  grid-template-columns: 1fr 2.86fr !important;
}

/* Cartes info x2 hauteur */
.info-card {
  padding: 32px 20px !important;
}

/* Map section : suppression espace inutile en haut */
.map-section {
  padding-top: 24px !important;
}

/* map-embed index.html: absolute dans .contact-info */
.contact-info .map-embed {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* map-embed contact.html: standalone, reset position */
.map-section .map-embed {
  position: relative !important;
  inset: auto !important;
  width: 100% !important;
  height: auto !important;
}

.map-embed {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.map-embed iframe {
  width: 100%;
  height: 100%;
  border: none;
  filter: grayscale(0.5);
  transition: filter 0.3s;
}

.map-embed iframe:hover {
  filter: grayscale(0);
}

[data-theme="dark"] .map-embed iframe {
  filter: grayscale(0.5) invert(90%) hue-rotate(180deg) contrast(1.1);
}

[data-theme="dark"] .map-embed iframe:hover {
  filter: grayscale(0) invert(90%) hue-rotate(180deg) contrast(1.1);
}

.contact-info-overlay {
  position: absolute;
  top: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 2;
}

.contact-info-item {
  display: flex;
  gap: 16px;
  align-items: center;
  width: 320px;
  max-width: 100%;
  padding: 12px 20px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(243, 146, 33, 0.15);
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(41, 50, 122, 0.1);
  backdrop-filter: blur(8px);
  transition: transform 0.3s ease;
}

[data-theme="dark"] .contact-info-item {
  background: rgba(22, 27, 34, 0.95);
}

.contact-info-item:hover {
  transform: translateX(5px);
}

.contact-info-icon {
  width: 32px;
  height: 32px;
  background: var(--primary);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 14px;
}

.contact-info-item p {
  font-size: 13px;
  color: var(--gray);
  font-weight: 600;
  margin: 0;
}

/* ── PARTNERS ── */
.partners {
  padding: 60px;
  background: var(--dark);
  border-top: 1px solid rgba(243, 146, 33, 0.08);
  overflow: hidden;
}

.partners-label {
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 36px;
}

.partners-track-wrap {
  overflow: hidden;
}

.partners-track {
  display: flex;
  gap: 50px;
  animation: scroll 20s linear infinite;
  width: max-content;
}

@keyframes scroll {
  to { transform: translateX(-50%); }
}

.partner-logo {
  padding: 14px 32px;
  background: var(--card-bg);
  border: 1px solid rgba(243, 146, 33, 0.1);
  border-radius: 8px;
  min-width: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Rajdhani', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--gray);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  transition: all .3s;
  text-decoration: none;
}

.partner-logo:hover {
  color: var(--primary);
  border-color: rgba(243, 146, 33, 0.3);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(243, 146, 33, 0.12);
}

.partner-logo img {
  height: 35px;
  max-width: 110px;
  object-fit: contain;
  filter: grayscale(1) opacity(0.5);
  transition: all 0.3s ease;
}

[data-theme="dark"] .partner-logo img {
  filter: grayscale(1) invert(1) opacity(0.5);
}

.partner-logo:hover img {
  filter: grayscale(0) opacity(1);
}

[data-theme="dark"] .partner-logo:hover img {
  filter: grayscale(0) invert(0) opacity(1);
}

/* ── FOOTER ── */
footer {
  background: var(--dark2);
  padding: 70px 60px 0;
  border-top: 1px solid rgba(243, 146, 33, 0.1);
}

html[data-theme="dark"] footer {
  border-top-color: rgba(255, 255, 255, 0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 60px;
  padding-bottom: 60px;
}

.footer-logo {
  font-family: 'Rajdhani', sans-serif;
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: default;
  user-select: none;
}

.footer-logo-creo {
  background: none;
  -webkit-text-fill-color: #383897;
  color: #383897;
  -webkit-background-clip: border-box;
  background-clip: border-box;
  animation: none;
}

.footer-logo-digital {
  color: var(--primary);
  animation: footerDigitalGlow 3s ease-in-out infinite;
}

@keyframes footerLogoShimmer {
  0%, 100% {
    background-position: 0% 50%;
    filter: drop-shadow(0 0 0px rgba(41, 50, 122, 0));
  }
  50% {
    background-position: 100% 50%;
    filter: drop-shadow(0 0 8px rgba(41, 50, 122, 0.4));
  }
}

@keyframes footerDigitalGlow {
  0%, 100% { filter: drop-shadow(0 0 0px rgba(243, 146, 33, 0));   }
  50%       { filter: drop-shadow(0 0 10px rgba(243, 146, 33, 0.5)); }
}

@keyframes footerLogoPulse {
  0%, 100% { transform: scale(1);    }
  50%       { transform: scale(1.04); }
}

/* footer-logo-creo is now solid dark blue in both light and dark mode (see above) */

.footer-col {
  transition: var(--transition);
}

.footer-col:hover {
  transform: translateY(-10px);
}

.footer-desc {
  color: var(--gray);
  font-size: 13px;
  line-height: 1.8;
  margin-bottom: 24px;
}

.social-links {
  display: flex;
  gap: 12px;
}

.social-link {
  width: 36px;
  height: 36px;
  background: rgba(243, 146, 33, 0.08);
  border: 1px solid rgba(243, 146, 33, 0.2);
  border-radius: 8px;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray);
  text-decoration: none;
  transition: all .3s;
}

.social-link:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

.footer-col h5 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(243, 146, 33, 0.15);
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 12px;
}

.footer-col ul li a {
  color: var(--gray);
  text-decoration: none;
  font-size: 13px;
  transition: color .3s;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-col ul li a:hover {
  color: var(--primary);
  transform: translateX(5px);
  transition: color .3s, transform .3s;
}

.footer-col ul li a::before {
  content: '›';
  color: var(--primary);
  font-size: 16px;
}

.footer-contact-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 16px;
}

.footer-contact-item:hover {
  background-color: rgba(243, 146, 33, 0.08);
  transform: translateY(-2px);
  transition: background-color .3s, transform .3s;
}

.footer-contact-item i {
  color: var(--primary);
  font-size: 14px;
  margin-top: 2px;
}

.footer-contact-item span {
  color: var(--gray);
  font-size: 13px;
  line-height: 1.6;
}

.footer-bottom {
  border-top: 1px solid rgba(243, 146, 33, 0.08);
  padding: 20px 0;
  text-align: center;
  color: var(--gray);
  font-size: 12px;
  letter-spacing: 1px;
}

.footer-bottom span {
  color: var(--primary);
}

/* ── ANIMATION 3D ISO (section About) ── */
#iso-scene {
  position: relative;
  width: 100%;
  height: 440px;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1200px;
  overflow: hidden;
}

#iso-scene-content {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transition: transform 0.35s ease-out;
  will-change: transform;
}

#iso-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 35%, var(--anim-bg-grad1) 0%, transparent 60%),
    radial-gradient(ellipse at 75% 70%, var(--anim-bg-grad2) 0%, transparent 55%),
    radial-gradient(circle at 50% 55%, var(--shield-glow) 0%, transparent 70%);
  transition: background 0.4s;
  animation: bgBreathe 6s ease-in-out infinite;
}

@keyframes bgBreathe {
  0%, 100% { opacity: 0.85; }
  50%       { opacity: 1; }
}

#iso-box {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  width: 260px;
  height: 220px;
  filter: drop-shadow(0 8px 24px var(--iso-shadow));
  transition: filter 0.4s;
}

.iso-top        { fill: var(--iso-top);   }
.iso-left       { fill: var(--iso-left);  }
.iso-right      { fill: var(--iso-right); }
.iso-base-face  { fill: var(--iso-base);  opacity: 0.65; }
.iso-panel      { fill: var(--iso-panel); opacity: 0.7;  }
.iso-panel-bar  { fill: var(--iso-panel); opacity: 0.9;  }
.iso-dot        { fill: var(--iso-dot);   }

.cline {
  fill: none;
  stroke: var(--iso-dot);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.35;
}

/* Pulse d'énergie qui parcourt les circuits */
.cline-flow {
  fill: none;
  stroke: var(--scan-color);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 14 160;
  filter: drop-shadow(0 0 4px var(--scan-color));
  animation: circuitFlow 3.2s linear infinite;
}

.cline-flow.cf2 { animation-delay: 0.9s; }
.cline-flow.cf3 { animation-delay: 1.8s; }

@keyframes circuitFlow {
  0%   { stroke-dashoffset: 174; opacity: 0; }
  8%   { opacity: 1; }
  92%  { opacity: 1; }
  100% { stroke-dashoffset: 0; opacity: 0; }
}

#iso-glow {
  position: absolute;
  bottom: 176px;
  left: 50%;
  transform: translateX(-50%);
  width: 150px;
  height: 32px;
  border-radius: 50%;
  background: var(--shield-glow);
  filter: blur(14px);
  animation: glowPulse 3s ease-in-out infinite;
  transition: background 0.4s;
}

@keyframes glowPulse {
  0%, 100% { opacity: .55; transform: translateX(-50%) scaleX(1);    }
  50%       { opacity: 1;   transform: translateX(-50%) scaleX(1.32); }
}

#iso-scan {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 140px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--scan-color), transparent);
  opacity: 0;
  bottom: 240px;
  animation: scanBeam 3s ease-in-out infinite;
  transition: background 0.4s;
}

@keyframes scanBeam {
  0%   { bottom: 248px; opacity: 0; }
  14%  { opacity: 1; }
  86%  { opacity: 1; }
  100% { bottom: 160px; opacity: 0; }
}

/* Shield 3D */
#shield-stage {
  position: absolute;
  bottom: 202px;
  left: 50%;
  transform: translateX(-50%);
  width: 130px;
  height: 148px;
  perspective: 600px;
  perspective-origin: 50% 60%;
}

#shield-spin {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  animation: shieldSpin 5s cubic-bezier(0.4, 0, 0.6, 1) infinite;
  filter: drop-shadow(0 10px 22px var(--shield-glow));
}

@keyframes shieldSpin {
  0%   { transform: rotateY(0deg)   translateY(0px);   }
  10%  { transform: rotateY(0deg)   translateY(-18px); }
  25%  { transform: rotateY(90deg)  translateY(-12px); }
  50%  { transform: rotateY(180deg) translateY(0px);   }
  60%  { transform: rotateY(180deg) translateY(-18px); }
  75%  { transform: rotateY(270deg) translateY(-12px); }
  100% { transform: rotateY(360deg) translateY(0px);   }
}

.s-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
}

.s-face svg { width: 100%; height: 100%; }

.s-right {
  width: 28px;
  left: auto;
  right: -14px;
  transform: rotateY(90deg);
  transform-origin: left center;
}

.s-left {
  width: 28px;
  left: -14px;
  transform: rotateY(-90deg);
  transform-origin: right center;
}

.s-back { transform: rotateY(180deg); }

/* Status dots */
.sd1 { animation: dotBlink 1.8s ease-in-out infinite 0s;   }
.sd2 { animation: dotBlink 1.8s ease-in-out infinite 0.3s; }
.sd3 { animation: dotBlink 1.8s ease-in-out infinite 0.6s; }

@keyframes dotBlink {
  0%, 100% { opacity: .3; }
  50%       { opacity: 1;  }
}

.cnode { animation: dotBlink 2.4s ease-in-out infinite; }

#iso-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

@keyframes particleFly {
  0%   { opacity: 0; transform: translate(0, 0) scale(0.3) rotate(0deg); }
  18%  { opacity: .9; }
  100% { opacity: 0; transform: translate(var(--ptx), var(--pty)) scale(0) rotate(180deg); }
}

/* ── CHATBOT ── */
#chatbot-toggle {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 9999;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  border: none;
  cursor: pointer;
  box-shadow: 0 6px 30px rgba(243, 146, 33, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  color: #fff;
  transition: transform 0.3s, box-shadow 0.3s;
}

#chatbot-toggle:hover {
  transform: scale(1.1);
  box-shadow: 0 10px 40px rgba(243, 146, 33, 0.6);
}

#chatbot-window {
  position: fixed;
  bottom: 106px;
  right: 32px;
  z-index: 9998;
  width: 370px;
  max-height: 560px;
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
  background: var(--card-bg);
  border: 1px solid rgba(243, 146, 33, 0.25);
  opacity: 0;
  transform: translateY(20px) scale(0.95);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

#chatbot-window.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: all;
}

.cb-header {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
}

.cb-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.cb-header-info { flex: 1; }

.cb-header-info strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
}

.cb-header-info span {
  font-size: 11px;
  opacity: 0.85;
  display: flex;
  align-items: center;
  gap: 5px;
}

.cb-header-info span::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4ade80;
  display: inline-block;
}

.cb-close {
  background: transparent;
  border: none;
  color: #fff;
  cursor: pointer;
  font-size: 18px;
  opacity: 0.8;
  transition: opacity 0.2s;
  line-height: 1;
}

.cb-close:hover { opacity: 1; }

.cb-messages {
  flex: 1;
  overflow-y: auto;
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--dark);
}

.cb-messages::-webkit-scrollbar { width: 4px; }

.cb-messages::-webkit-scrollbar-thumb {
  background: rgba(243, 146, 33, 0.3);
  border-radius: 4px;
}

.cb-msg {
  max-width: 82%;
  padding: 11px 15px;
  border-radius: 14px;
  font-size: 13px;
  line-height: 1.6;
  word-break: break-word;
}

.cb-msg.bot {
  background: var(--dark2);
  border: 1px solid rgba(243, 146, 33, 0.15);
  color: var(--white);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}

.cb-msg.user {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: #fff;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

.cb-msg.typing span {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary);
  margin: 0 2px;
  animation: typingBounce 1s infinite;
}

.cb-msg.typing span:nth-child(2) { animation-delay: 0.15s; }
.cb-msg.typing span:nth-child(3) { animation-delay: 0.3s;  }

@keyframes typingBounce {
  0%, 80%, 100% { transform: translateY(0);   opacity: 0.5; }
  40%           { transform: translateY(-6px); opacity: 1;   }
}

.cb-quick-replies {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding: 8px 16px 4px;
  background: var(--dark);
}

.cb-quick-btn {
  background: transparent;
  border: 1px solid rgba(243, 146, 33, 0.35);
  color: var(--primary);
  font-size: 11px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s;
  font-family: 'Montserrat', sans-serif;
}

.cb-quick-btn:hover {
  background: rgba(243, 146, 33, 0.1);
  border-color: var(--primary);
}

.cb-input-row {
  display: flex;
  gap: 8px;
  padding: 12px 14px;
  border-top: 1px solid rgba(243, 146, 33, 0.12);
  background: var(--card-bg);
}

.cb-input-row input {
  flex: 1;
  background: var(--dark2);
  border: 1px solid rgba(243, 146, 33, 0.2);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13px;
  color: var(--white);
  font-family: 'Montserrat', sans-serif;
  outline: none;
  transition: border-color 0.2s;
}

.cb-input-row input:focus        { border-color: var(--primary); }
.cb-input-row input::placeholder { color: var(--gray); }

.cb-send {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  border: none;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s, box-shadow 0.2s;
  flex-shrink: 0;
}

.cb-send:hover {
  transform: scale(1.08);
  box-shadow: 0 4px 16px rgba(243, 146, 33, 0.4);
}

.cb-send:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* ── HAMBURGER MENU ── */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: all .3s;
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  :root {
    --topbar-height: 40px;
    --navbar-height: 72px;
  }

  nav,
  #headerr {
    padding: 0 24px;
  }

  .topbar {
    padding: 0 24px;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--dark2);
    padding: 24px;
    gap: 20px;
  }

  .nav-links.open {
    display: flex;
  }

  .hamburger {
    display: flex;
  }

  .hero {
    flex-direction: column;
    padding: 100px 24px 60px;
    text-align: center;
  }

  .hero-img {
    display: none;
  }

  .features-strip {
    grid-template-columns: 1fr;
    padding: 40px 24px;
  }

  .about,
  .approach,
  .contact-section {
    grid-template-columns: 1fr;
    padding: 60px 24px;
  }

  .services {
    padding: 60px 24px;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .services-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .partners {
    padding: 40px 24px;
  }

  footer {
    padding: 60px 24px 0;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .topbar {
    padding: 8px 24px;
  }

  .approach-visual {
    grid-template-columns: 1fr;
  }

  .stat-box:first-child {
    grid-column: span 1;
  }
}

@media (max-width: 480px) {
  #chatbot-window {
    width: calc(100vw - 32px);
    right: 16px;
    bottom: 96px;
  }

  #chatbot-toggle {
    right: 16px;
    bottom: 20px;
  }
}