* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: #f6f9fc;
  color: #172033;
  font-family: "Segoe UI", Arial, sans-serif;
  line-height: 1.7;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

a,
button {
  -webkit-tap-highlight-color: transparent;
}

header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 8%;
  background: rgba(8, 25, 48, 0.96);
  color: white;
  box-shadow: 0 12px 30px rgba(8, 25, 48, 0.12);
}

.site-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
}

.control-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  padding: 7px 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: #dce8f5;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  transition: 0.2s ease;
}

.control-btn:hover,
.control-btn:focus-visible {
  background: rgba(21, 184, 212, 0.2);
  border-color: #15b8d4;
  color: #ffffff;
  outline: none;
}

.control-btn.is-active,
.control-btn[aria-pressed="true"] {
  background: #15b8d4;
  color: #06172b;
  border-color: #15b8d4;
}

/* ----- Bouton thème (icône soleil/lune) ----- */
.icon-btn {
  width: 38px;
  padding: 7px;
}

.icon-btn svg {
  width: 18px;
  height: 18px;
}

.icon-btn .icon-sun { display: block; }
.icon-btn .icon-moon { display: none; }

body.dark-mode .icon-btn .icon-sun { display: none; }
body.dark-mode .icon-btn .icon-moon { display: block; }

/* ----- Sélecteur de langue ----- */
.lang-switcher {
  position: relative;
}

.lang-trigger {
  padding: 7px 10px;
  gap: 6px;
}

.lang-flag {
  display: inline-flex;
  width: 22px;
  height: 16px;
  border-radius: 2px;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.15);
  flex-shrink: 0;
}

.lang-flag svg {
  width: 100%;
  height: 100%;
  display: block;
}

.lang-current-label {
  display: none;
}

.lang-caret {
  width: 10px;
  height: 6px;
  transition: transform 0.2s ease;
  opacity: 0.8;
}

.lang-switcher.is-open .lang-caret {
  transform: rotate(180deg);
}

.lang-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 160px;
  margin: 0;
  padding: 4px;
  list-style: none;
  background: #0f1d33;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  z-index: 50;
}

.lang-switcher.is-open .lang-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-option {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 10px;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: #dce8f5;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  text-align: left;
}

.lang-option:hover,
.lang-option:focus-visible {
  background: rgba(21, 184, 212, 0.15);
  color: #ffffff;
  outline: none;
}

.lang-option.is-active {
  background: rgba(21, 184, 212, 0.25);
  color: #ffffff;
}

.lang-option.is-active::after {
  content: "✓";
  margin-left: auto;
  font-weight: 700;
  color: #15b8d4;
}

/* Light mode adjustments */
body:not(.dark-mode) .lang-menu {
  background: #ffffff;
  border-color: rgba(15, 29, 51, 0.12);
}

body:not(.dark-mode) .lang-option {
  color: #1c2a44;
}

body:not(.dark-mode) .lang-option:hover,
body:not(.dark-mode) .lang-option:focus-visible {
  background: rgba(21, 184, 212, 0.15);
  color: #06172b;
}

body:not(.dark-mode) .lang-option.is-active {
  background: rgba(21, 184, 212, 0.2);
  color: #06172b;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: white;
  font-size: 18px;
  font-weight: 800;
  text-decoration: none;
  min-width: 0;
}

.logo span {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 10px;
  background: linear-gradient(135deg, #15b8d4, #2f80ed);
  font-size: 14px;
  letter-spacing: 1px;
}

nav {
  display: flex;
  align-items: center;
  gap: 28px;
  min-width: 0;
}

nav a {
  color: #dce8f5;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
}

nav a:hover {
  color: #30d5e8;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 21px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  color: #dce8f5;
  transition: 0.25s ease;
}

.menu-toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.hero {
  min-height: 82vh;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 60px;
  align-items: center;
  padding: 92px 8%;
  background:
    radial-gradient(circle at 82% 28%, rgba(48, 213, 232, 0.22), transparent 32%),
    linear-gradient(135deg, #071b34 0%, #0e345e 55%, #115b78 100%);
  color: white;
}

.hero-text {
  max-width: 690px;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  color: #30d5e8;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.hero h1,
.page-hero h1,
.section-heading h2 {
  line-height: 1.12;
  letter-spacing: 0;
}

.hero h1 {
  margin-bottom: 22px;
  font-size: clamp(40px, 6vw, 64px);
}

.hero p {
  max-width: 620px;
  margin-bottom: 30px;
  color: #c8d8e8;
  font-size: 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 24px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: #15b8d4;
  color: #06172b;
  font-weight: 800;
  text-decoration: none;
  transition: 0.25s ease;
  text-align: center;
}

.btn:hover {
  background: #30d5e8;
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  color: white;
  border-color: rgba(255, 255, 255, 0.35);
}

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

.hero-visual {
  position: relative;
  min-height: 390px;
  overflow: hidden;
  isolation: isolate;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(12px);
}

.hero-digital-image {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.03);
  animation: heroFloat 8s ease-in-out infinite;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(90deg, rgba(3, 12, 28, 0.48), transparent 46%),
    radial-gradient(circle at 72% 34%, rgba(48, 213, 232, 0.24), transparent 36%);
  pointer-events: none;
}

.hero-visual-glow,
.hero-visual-orbit,
.hero-visual-scan {
  position: absolute;
  z-index: 3;
  pointer-events: none;
}

.hero-visual-glow {
  inset: 14%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(48, 213, 232, 0.2), transparent 64%);
  filter: blur(18px);
  animation: heroPulse 5.5s ease-in-out infinite;
}

.hero-visual-orbit {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #30d5e8;
  box-shadow: 0 0 22px rgba(48, 213, 232, 0.9);
}

.orbit-one {
  top: 21%;
  right: 18%;
  animation: orbitDriftOne 7s ease-in-out infinite;
}

.orbit-two {
  right: 33%;
  bottom: 20%;
  background: #9cf56a;
  box-shadow: 0 0 22px rgba(156, 245, 106, 0.78);
  animation: orbitDriftTwo 8s ease-in-out infinite;
}

.hero-visual-scan {
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(143, 243, 255, 0.22) 50%, transparent 100%);
  transform: translateY(-100%);
  animation: heroScan 6s ease-in-out infinite;
}

.visual-toolbar {
  display: flex;
  gap: 8px;
  margin-bottom: 22px;
}

.visual-toolbar span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #30d5e8;
}

.visual-panel,
.visual-grid div,
.visual-line {
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.78);
}

.visual-panel.large {
  height: 145px;
  margin-bottom: 18px;
  background: linear-gradient(135deg, #ffffff, #d7f6fb);
}

.visual-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 22px;
}

.visual-grid div {
  height: 78px;
}

.visual-line {
  height: 14px;
  margin-bottom: 12px;
}

.visual-line.short {
  width: 62%;
}

@keyframes heroFloat {
  0%,
  100% {
    transform: scale(1.03) translate3d(0, 0, 0);
  }

  50% {
    transform: scale(1.07) translate3d(-8px, -6px, 0);
  }
}

@keyframes heroPulse {
  0%,
  100% {
    opacity: 0.54;
    transform: scale(0.96);
  }

  50% {
    opacity: 0.92;
    transform: scale(1.08);
  }
}

@keyframes orbitDriftOne {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }

  50% {
    transform: translate3d(-34px, 28px, 0);
  }
}

@keyframes orbitDriftTwo {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }

  50% {
    transform: translate3d(30px, -22px, 0);
  }
}

@keyframes heroScan {
  0%,
  42% {
    opacity: 0;
    transform: translateY(-100%);
  }

  56% {
    opacity: 0.7;
  }

  76% {
    opacity: 0;
    transform: translateY(100%);
  }

  100% {
    opacity: 0;
    transform: translateY(100%);
  }
}

.about-section,
.values-section,
.process-section,
.services,
.contact-section {
  padding: 78px 8%;
}

.about-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(300px, 1.2fr);
  gap: 48px;
  align-items: center;
  background: white;
}

.section-heading h2,
.about-section h2 {
  color: #0c2747;
  font-size: clamp(30px, 4vw, 44px);
}

.about-section p {
  color: #596a7e;
  font-size: 18px;
}

.values-section {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.value-card,
.service-card,
.contact-info,
.process-grid div {
  background: white;
  border: 1px solid #e2ebf4;
  border-radius: 10px;
  box-shadow: 0 14px 36px rgba(13, 42, 72, 0.08);
}

.value-card {
  padding: 30px;
}

.value-card h3,
.service-card h2,
.process-grid h3,
.contact-info h2 {
  margin-bottom: 12px;
  color: #0c2747;
}

.value-card p,
.service-card p,
.process-grid p,
.contact-info p {
  color: #596a7e;
}

.process-section {
  background: #eef5fb;
}

.process-grid,
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 34px;
}

.process-grid div {
  padding: 30px;
}

.process-grid span {
  display: inline-block;
  margin-bottom: 18px;
  color: #15b8d4;
  font-size: 28px;
  font-weight: 900;
}

.page-hero {
  padding: 88px 8%;
  text-align: center;
  background:
    radial-gradient(circle at 50% 0%, rgba(48, 213, 232, 0.18), transparent 34%),
    linear-gradient(135deg, #071b34, #0e345e);
  color: white;
}

.page-hero h1 {
  max-width: 820px;
  margin: 0 auto 18px;
  font-size: clamp(34px, 5vw, 52px);
}

.page-hero p {
  max-width: 760px;
  margin: 0 auto;
  color: #c8d8e8;
  font-size: 18px;
}

.service-grid {
  max-width: 980px;
  grid-template-columns: repeat(2, 1fr);
  margin: 0 auto;
}

.service-card {
  position: relative;
  padding: 34px;
  overflow: hidden;
}

.service-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, #15b8d4, #2f80ed);
}

.service-card:hover {
  transform: translateY(-6px);
}

.service-icon {
  display: inline-grid;
  width: 58px;
  height: 58px;
  place-items: center;
  margin-bottom: 22px;
  border-radius: 12px;
  background: #e8f9fc;
  color: #0b7890;
  font-weight: 900;
}

.service-card ul {
  margin-top: 22px;
  list-style: none;
}

.service-card li {
  position: relative;
  margin: 12px 0;
  padding-left: 24px;
  color: #263b52;
}

.service-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #15b8d4;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(280px, 720px);
  justify-content: center;
}

.contact-info {
  padding: 38px;
  min-width: 0;
}

.info-box {
  display: grid;
  gap: 14px;
  margin-top: 26px;
}

.info-box div {
  padding: 18px;
  border-radius: 8px;
  background: #f6f9fc;
  border: 1px solid #e2ebf4;
}

.info-box span {
  display: block;
  margin-bottom: 4px;
  color: #0b7890;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.info-box a,
.info-box p {
  color: #172033;
  font-weight: 700;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.cta {
  padding: 74px 8%;
  text-align: center;
  background: #071b34;
  color: white;
}

.cta h2 {
  margin-bottom: 12px;
  font-size: clamp(30px, 4vw, 42px);
}

.cta p {
  margin-bottom: 26px;
  color: #c8d8e8;
}

footer {
  padding: 24px 8%;
  background: #041225;
  color: #aab8c8;
  text-align: center;
  font-size: 14px;
  margin-top: auto;
}

body:not(.dark-mode) {
  background: #f6f9fc;
  color: #172033;
}

body:not(.dark-mode) header {
  background: rgba(255, 255, 255, 0.96);
  color: #0c2747;
  box-shadow: 0 12px 30px rgba(13, 42, 72, 0.1);
}

body:not(.dark-mode) .logo {
  color: #0c2747;
}

body:not(.dark-mode) .logo span {
  background: linear-gradient(135deg, #15b8d4, #2f80ed);
  color: #ffffff;
}

body:not(.dark-mode) nav a {
  color: #263b52;
}

body:not(.dark-mode) nav a:hover {
  color: #0b7890;
}

body:not(.dark-mode) .menu-toggle {
  background: #eef5fb;
  border-color: #d7e4ef;
}

body:not(.dark-mode) .menu-toggle span {
  color: #0c2747;
}

body:not(.dark-mode) .control-btn {
  background: #eef5fb;
  color: #0c2747;
  border-color: #d7e4ef;
}

body:not(.dark-mode) .control-btn:hover,
body:not(.dark-mode) .control-btn.is-active {
  background: #15b8d4;
  color: #06172b;
  border-color: #15b8d4;
}

body:not(.dark-mode) .hero,
body:not(.dark-mode) .page-hero {
  background:
    radial-gradient(circle at 80% 22%, rgba(21, 184, 212, 0.26), transparent 34%),
    linear-gradient(135deg, #e8f9fc 0%, #f6f9fc 52%, #dfeeff 100%);
  color: #0c2747;
}

body:not(.dark-mode) .hero h1,
body:not(.dark-mode) .page-hero h1 {
  color: #0c2747;
}

body:not(.dark-mode) .hero p,
body:not(.dark-mode) .page-hero p {
  color: #40556d;
}

body:not(.dark-mode) .hero-visual {
  background: rgba(255, 255, 255, 0.8);
  border-color: #d7e4ef;
  box-shadow: 0 26px 70px rgba(13, 42, 72, 0.16);
}

body:not(.dark-mode) .hero-visual::before {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.28), transparent 48%),
    radial-gradient(circle at 72% 34%, rgba(21, 184, 212, 0.18), transparent 36%);
}

body:not(.dark-mode) .visual-panel,
body:not(.dark-mode) .visual-grid div,
body:not(.dark-mode) .visual-line {
  background: linear-gradient(135deg, #ffffff, #dff7fb);
}

body:not(.dark-mode) .about-section,
body:not(.dark-mode) .value-card,
body:not(.dark-mode) .service-card,
body:not(.dark-mode) .contact-info,
body:not(.dark-mode) .process-grid div {
  background: #ffffff;
}

body:not(.dark-mode) .process-section,
body:not(.dark-mode) .services,
body:not(.dark-mode) .contact-section {
  background: #eef5fb;
}

body:not(.dark-mode) .cta {
  background:
    radial-gradient(circle at 50% 0%, rgba(48, 213, 232, 0.22), transparent 32%),
    linear-gradient(135deg, #0e345e, #071b34);
}

body:not(.dark-mode) footer {
  background: #071b34;
  color: #c8d8e8;
}

.dark-mode {
  background: #07111f;
  color: #e7edf5;
}

.dark-mode header {
  background: rgba(3, 10, 22, 0.97);
  color: #f4f8fc;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.45);
}

.dark-mode .logo {
  color: #f4f8fc;
}

.dark-mode .logo span {
  background: linear-gradient(135deg, #8b5cf6, #30d5e8);
  color: #ffffff;
}

.dark-mode nav a {
  color: #c8d8e8;
}

.dark-mode nav a:hover {
  color: #8ff3ff;
}

.dark-mode .menu-toggle {
  background: #10243b;
  border-color: #28435f;
}

.dark-mode .menu-toggle span {
  color: #dce8f5;
}

.dark-mode .control-btn {
  background: #10243b;
  color: #dce8f5;
  border-color: #28435f;
}

.dark-mode .control-btn:hover,
.dark-mode .control-btn.is-active {
  background: #8b5cf6;
  color: #ffffff;
  border-color: #8b5cf6;
}

.dark-mode .hero,
.dark-mode .page-hero {
  background:
    radial-gradient(circle at 78% 24%, rgba(139, 92, 246, 0.28), transparent 34%),
    radial-gradient(circle at 16% 76%, rgba(21, 184, 212, 0.18), transparent 28%),
    linear-gradient(135deg, #020816 0%, #07111f 48%, #11143a 100%);
  color: #f4f8fc;
}

.dark-mode .hero h1,
.dark-mode .page-hero h1 {
  color: #f4f8fc;
}

.dark-mode .hero p,
.dark-mode .page-hero p {
  color: #b8c6d6;
}

.dark-mode .hero-visual {
  background: rgba(12, 24, 42, 0.72);
  border-color: #28435f;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.48);
}

.dark-mode .visual-panel,
.dark-mode .visual-grid div,
.dark-mode .visual-line {
  background: linear-gradient(135deg, #243b5a, #12243b);
}

.dark-mode .visual-toolbar span {
  background: #8b5cf6;
}

.dark-mode .btn {
  background: #8b5cf6;
  color: #ffffff;
}

.dark-mode .btn:hover {
  background: #a78bfa;
}

.dark-mode .btn-secondary {
  background: transparent;
  color: #f4f8fc;
  border-color: #46617f;
}

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

.dark-mode .about-section,
.dark-mode .value-card,
.dark-mode .service-card,
.dark-mode .contact-info,
.dark-mode .process-grid div {
  background: #0d1c2f;
  border-color: #1f3550;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.24);
}

.dark-mode .process-section,
.dark-mode .services,
.dark-mode .contact-section {
  background: #07111f;
}

.dark-mode .section-heading h2,
.dark-mode .about-section h2,
.dark-mode .value-card h3,
.dark-mode .service-card h2,
.dark-mode .process-grid h3,
.dark-mode .contact-info h2,
.dark-mode .info-box a,
.dark-mode .info-box p {
  color: #f4f8fc;
}

.dark-mode .about-section p,
.dark-mode .value-card p,
.dark-mode .service-card p,
.dark-mode .process-grid p,
.dark-mode .contact-info p,
.dark-mode .service-card li {
  color: #b8c6d6;
}

.dark-mode .info-box div,
.dark-mode .service-icon {
  background: #10243b;
  border-color: #1f3550;
}

.dark-mode .service-card::before {
  background: linear-gradient(90deg, #8b5cf6, #30d5e8);
}

.dark-mode .service-card li::before {
  background: #8b5cf6;
}

.dark-mode .eyebrow,
.dark-mode .process-grid span,
.dark-mode .info-box span {
  color: #8ff3ff;
}

.dark-mode .cta {
  background:
    radial-gradient(circle at 50% 0%, rgba(139, 92, 246, 0.22), transparent 32%),
    linear-gradient(135deg, #020816, #11143a);
}

.dark-mode footer {
  background: #020816;
  color: #94a8bd;
}

@media (max-width: 1100px) {
  header {
    padding: 16px 5%;
    gap: 18px;
  }

  nav {
    gap: 18px;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 46px;
    min-height: auto;
  }

  .hero-text {
    max-width: 760px;
  }

  .values-section,
  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 860px) {
  header {
    position: static;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 18px;
  }

  .menu-toggle {
    display: inline-flex;
    justify-self: end;
  }

  nav {
    display: none;
    grid-column: 1 / -1;
    flex-wrap: wrap;
    justify-content: center;
    gap: 18px;
  }

  .site-controls {
    display: none;
    grid-column: 1 / -1;
    flex-wrap: wrap;
    justify-content: center;
  }

  header.menu-open nav,
  header.menu-open .site-controls {
    display: flex;
  }

  .hero,
  .about-section,
  .values-section,
  .process-grid,
  .service-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 70px;
    text-align: center;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-visual {
    min-height: 310px;
  }

  .about-section,
  .values-section,
  .process-section,
  .services,
  .contact-section {
    padding: 58px 6%;
  }

  .page-hero {
    padding: 70px 6%;
  }

  .about-section {
    gap: 24px;
  }

  .service-card,
  .value-card,
  .process-grid div,
  .contact-info {
    padding: 26px;
  }
}

@media (max-width: 560px) {
  header {
    padding: 14px 5%;
  }

  .logo {
    justify-content: flex-start;
    font-size: 16px;
    text-align: left;
  }

  .logo span {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
  }

  nav {
    width: 100%;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }

  header.menu-open nav {
    display: grid;
  }

  nav a,
  .control-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 8px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.08);
    font-size: 13px;
    text-align: center;
  }

  body:not(.dark-mode) nav a {
    background: #eef5fb;
  }

  .site-controls {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 10px;
    align-items: stretch;
  }

  .site-controls .control-btn {
    width: 100%;
    justify-content: center;
  }

  .lang-switcher { width: 100%; }
  .lang-trigger { width: 100%; justify-content: center; }
  /* En mode mobile on remontre le libellé pour donner du contexte */
  .lang-current-label { display: inline; font-size: 14px; }
  .lang-menu { right: 0; left: 0; }

  header.menu-open .site-controls {
    display: flex;
  }

  .hero {
    padding: 54px 5%;
  }

  .hero h1 {
    font-size: clamp(32px, 10vw, 42px);
  }

  .hero p,
  .page-hero p,
  .about-section p {
    font-size: 16px;
  }

  .hero-actions {
    width: 100%;
  }

  .hero-actions .btn,
  .cta .btn {
    width: 100%;
  }

  .hero-visual {
    min-height: 250px;
    padding: 0;
  }

  .visual-panel.large {
    height: 105px;
  }

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

  .visual-grid div {
    height: 38px;
  }

  .hero-visual-orbit {
    width: 8px;
    height: 8px;
  }

  .about-section,
  .values-section,
  .process-section,
  .services,
  .contact-section,
  .cta {
    padding: 48px 5%;
  }

  .page-hero {
    padding: 58px 5%;
  }

  .page-hero h1,
  .section-heading h2,
  .about-section h2,
  .cta h2 {
    font-size: clamp(28px, 9vw, 36px);
  }

  .service-card,
  .value-card,
  .process-grid div,
  .contact-info {
    padding: 22px;
  }

  .service-icon {
    width: 50px;
    height: 50px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-digital-image,
  .hero-visual-glow,
  .hero-visual-orbit,
  .hero-visual-scan {
    animation: none;
  }
}

@media (max-width: 360px) {
  .logo {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  nav,
  .site-controls {
    grid-template-columns: 1fr;
  }

  .btn {
    padding-inline: 16px;
  }
}

/* ===========================================================
   Chatbot widget (bouton flottant + panel iframe)
   =========================================================== */
.chatbot-widget {
  position: fixed;
  bottom: 22px;
  right: 22px;
  z-index: 100;
}

.chatbot-fab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border: none;
  border-radius: 50%;
  background: linear-gradient(135deg, #15b8d4, #2f80ed);
  color: #ffffff;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(13, 42, 72, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.chatbot-fab:hover,
.chatbot-fab:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(13, 42, 72, 0.45);
  outline: none;
}

.chatbot-fab svg {
  width: 26px;
  height: 26px;
}

.chatbot-fab .icon-close { display: none; }
.chatbot-widget.is-open .chatbot-fab .icon-chat { display: none; }
.chatbot-widget.is-open .chatbot-fab .icon-close { display: block; }

.chatbot-panel {
  position: absolute;
  bottom: 72px;
  right: 0;
  width: 440px;
  height: 680px;
  max-width: calc(100vw - 32px);
  max-height: calc(100vh - 110px);
  background: #0f1d33;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  animation: chatbot-pop 0.18s ease-out;
}

@keyframes chatbot-pop {
  from { opacity: 0; transform: translateY(8px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.chatbot-panel iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: #ffffff;
}

body:not(.dark-mode) .chatbot-panel {
  background: #ffffff;
  border-color: rgba(15, 29, 51, 0.12);
}

@media (max-width: 480px) {
  .chatbot-widget {
    bottom: 16px;
    right: 16px;
  }
  .chatbot-panel {
    width: calc(100vw - 32px);
    height: calc(100vh - 110px);
    bottom: 70px;
  }
}
