:root {
  --primary: #061327;
  --primary-light: #15365c;
  --accent: #00c8ff;
  --accent-light: #6ee7ff;
  --accent-glow: rgba(0,200,255,0.32);
  --gold: #f1c66a;
  --gold-light: #ffe09b;
  --bg: #f6f8fb;
  --bg-alt: #edf3f8;
  --bg-dark: #040b17;
  --text: #132033;
  --text-muted: #536174;
  --text-light: #d7e4ef;
  --white: #FFFFFF;
  --border: #d9e2ea;
  --radius: 8px;
  --radius-sm: 6px;
  --shadow: 0 14px 35px rgba(9,25,49,0.09);
  --shadow-lg: 0 28px 70px rgba(9,25,49,0.16);
  --transition: 0.3s cubic-bezier(0.4,0,0.2,1);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 90px; overflow-y: scroll; overflow-x: hidden; }

body {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(0,200,255,0.08), transparent 32rem),
    linear-gradient(180deg, #ffffff 0%, var(--bg) 46%, #ffffff 100%);
  line-height: 1.7;
  overflow-x: hidden;
}
body.light-mode {
  --bg: #ffffff;
  --bg-alt: #eef6fb;
  --bg-dark: #f6fbff;
  --text: #102039;
  --text-muted: #526173;
  --text-light: #27364a;
  background:
    radial-gradient(circle at top left, rgba(0,200,255,0.12), transparent 30rem),
    linear-gradient(180deg, #ffffff 0%, #f5f9fc 52%, #ffffff 100%);
}

img { max-width:100%; height:auto; display:block; }
a { text-decoration:none; color:inherit; }
ul { list-style:none; }
button { cursor:pointer; border:none; font-family:inherit; }

.container { max-width:1240px; margin:0 auto; padding:0 24px; }

/* ===== NAVBAR ===== */
.navbar {
  position:fixed; top:16px; left:50%; right:auto; z-index:1000;
  width:min(1180px, calc(100% - 48px));
  transform:translateX(-50%);
  padding:9px 0;
  transition: var(--transition);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.16), rgba(255,255,255,0.045)),
    rgba(4, 11, 23, 0.28);
  border: 1px solid rgba(255,255,255,0.22);
  border-radius:24px;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.22),
    0 22px 60px rgba(0,0,0,0.18);
  backdrop-filter: blur(24px) saturate(1.35);
  -webkit-backdrop-filter: blur(24px) saturate(1.35);
  overflow:visible;
  isolation:isolate;
}
.navbar::before {
  content:'';
  position:absolute;
  inset:0;
  border-radius:inherit;
  pointer-events:none;
  background:
    linear-gradient(105deg, transparent 0%, rgba(255,255,255,0.14) 34%, transparent 58%);
  opacity:0.52;
  z-index:-1;
}
.navbar.scrolled {
  top:10px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.13), rgba(255,255,255,0.035)),
    rgba(4,11,23,0.72);
  backdrop-filter: blur(28px) saturate(1.45);
  -webkit-backdrop-filter: blur(28px) saturate(1.45);
  padding: 7px 0;
  border-color:rgba(255,255,255,0.18);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.18),
    0 18px 52px rgba(0,0,0,0.32);
}
.navbar .container {
  display:flex; align-items:center; justify-content:space-between;
  position:relative;
  z-index:1;
  max-width:none;
  padding:0 16px 0 20px;
}
.nav-logo {
  display:flex;
  align-items:center;
  min-width:max-content;
}
.nav-logo img {
  height:50px;
  width:auto;
  filter: drop-shadow(0 10px 24px rgba(0,0,0,0.2));
}
.nav-links { display:flex; gap:16px; align-items:center; }
.nav-links a {
  color: var(--white);
  font-weight:600; font-size:0.88rem;
  position:relative; transition: var(--transition);
  white-space:nowrap;
}
.nav-links a::after {
  content:''; position:absolute; bottom:-4px; left:0; width:0; height:2px;
  background: var(--accent); transition: var(--transition);
}
.nav-links > a:not(.nav-cta).active::after { width:100%; }
.nav-links > a:not(.nav-cta):hover,
.nav-links > a:not(.nav-cta).active {
  color: var(--accent-light) !important;
}
.nav-cta {
  display:inline-flex;
  align-items:center;
  gap:9px;
  background: rgba(241,198,106,0.08);
  border: 1px solid rgba(241,198,106,0.76);
  color: var(--gold-light) !important;
  padding: 10px 18px; border-radius:999px;
  font-weight:700; font-size:0.86rem;
  transition: var(--transition);
}
.nav-cta::after { display:none !important; }
.nav-cta:hover {
  transform:translateY(-2px);
  background: var(--gold);
  color: var(--primary) !important;
  box-shadow:0 12px 32px rgba(241,198,106,0.32);
}
.nav-tools {
  display:flex;
  align-items:center;
  gap:8px;
  margin-left:2px;
}
.language-switcher {
  display:flex;
  align-items:center;
  gap:3px;
  padding:3px;
  border-radius:999px;
  background:rgba(255,255,255,0.08);
  border:1px solid rgba(255,255,255,0.14);
  box-shadow:inset 0 1px 0 rgba(255,255,255,0.1);
}
.language-btn,
.theme-toggle {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  min-height:34px;
  border-radius:999px;
  color:var(--text-light);
  background:transparent;
  font-weight:800;
  font-size:0.78rem;
  line-height:1;
  transition:var(--transition);
}
.language-btn {
  padding:7px 9px;
}
.language-btn.active {
  color:var(--primary);
  background:linear-gradient(135deg, var(--gold-light), var(--gold));
  box-shadow:0 8px 22px rgba(241,198,106,0.22);
}
.language-btn:not(.active):hover,
.theme-toggle:hover {
  color:var(--white);
  background:rgba(255,255,255,0.12);
}
.flag {
  font-size:0.95rem;
  line-height:1;
}
.theme-toggle {
  padding:7px 11px;
  border:1px solid rgba(255,255,255,0.16);
  background:rgba(255,255,255,0.07);
}
.theme-toggle-text {
  min-width:36px;
  text-align:center;
}
.theme-icon-moon,
body.light-mode .theme-icon-sun {
  display:none;
}
body.light-mode .theme-icon-moon {
  display:block;
}
body.light-mode .navbar {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.72), rgba(255,255,255,0.38)),
    rgba(255,255,255,0.52);
  border-color:rgba(255,255,255,0.76);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.86),
    0 20px 58px rgba(21,54,92,0.16);
}
body.light-mode .navbar.scrolled {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.82), rgba(255,255,255,0.5)),
    rgba(255,255,255,0.64);
  border-color:rgba(255,255,255,0.78);
}
body.light-mode .navbar .nav-links > a:not(.nav-cta) {
  color:#061327 !important;
}
body.light-mode .navbar .nav-links > a:not(.nav-cta):hover {
  color:#008ec2 !important;
}
body.light-mode .navbar .nav-links > a:not(.nav-cta).active {
  color:#007ba8 !important;
}
body.light-mode .nav-cta {
  color:#6d4c11 !important;
  background:rgba(241,198,106,0.18);
}
body.light-mode .language-switcher,
body.light-mode .theme-toggle {
  background:rgba(255,255,255,0.56);
  border-color:rgba(21,54,92,0.13);
  color:#102039;
}
body.light-mode .language-btn:not(.active):hover,
body.light-mode .theme-toggle:hover {
  color:#061327;
  background:rgba(0,200,255,0.12);
}
body.light-mode .hero-overlay {
  background:
    linear-gradient(90deg, rgba(255,255,255,0.98) 0%, rgba(246,251,255,0.9) 32%, rgba(246,251,255,0.36) 64%, rgba(246,251,255,0) 100%),
    linear-gradient(180deg, rgba(246,251,255,0.24) 0%, rgba(246,251,255,0.04) 46%, rgba(246,251,255,0.64) 100%);
}
body.light-mode .hero h1 {
  color:#061327;
  text-shadow:0 16px 40px rgba(255,255,255,0.3);
}
body.light-mode .hero-subtitle {
  color:#24364d;
}
body.light-mode .hero-slogan {
  color:#7d5200;
  text-shadow:0 8px 22px rgba(255,255,255,0.5);
}
body.light-mode .btn-outline {
  color:#6d4c11;
  background:rgba(255,255,255,0.52);
  border-color:rgba(173,121,21,0.62);
  box-shadow:0 14px 34px rgba(21,54,92,0.08);
}
body.light-mode .btn-outline:hover {
  color:#061327;
  background:var(--gold);
  border-color:var(--gold);
}
body.light-mode .hero-proof {
  background:#ffffff;
}
body.light-mode .hero-proof-item {
  color:#061327;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.86), rgba(255,255,255,0.58)),
    rgba(255,255,255,0.58);
  border-color:rgba(0,142,194,0.52);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.86),
    0 18px 42px rgba(21,54,92,0.13);
}
body.light-mode .hero-proof-item span {
  color:#526173;
}
body.light-mode .section-dark {
  background:
    radial-gradient(circle at 15% 0%, rgba(0,200,255,0.14), transparent 32rem),
    linear-gradient(180deg, #f7fbff 0%, #edf6fb 100%);
  color:var(--text);
}
body.light-mode .section-dark .section-header h2,
body.light-mode .service-card h3 {
  color:var(--primary);
}
body.light-mode .section-dark .section-header p,
body.light-mode .service-card p {
  color:var(--text-muted);
}
body.light-mode .service-card {
  background:linear-gradient(180deg, #ffffff, #f7fbff);
  border-color:rgba(0,142,194,0.45);
}
body.light-mode .footer {
  background:linear-gradient(135deg, #082f57 0%, #062749 50%, #061b35 100%);
  color:rgba(216,229,241,0.72);
  border-top-color:rgba(255,255,255,0.08);
}
body.light-mode .footer h4 {
  color:var(--accent);
}
body.light-mode .footer-links a,
body.light-mode .footer-desc,
body.light-mode .footer-contact-link,
body.light-mode .footer-bottom {
  color:rgba(216,229,241,0.72);
}
.hamburger {
  display:none; flex-direction:column; gap:5px;
  background:none; padding:8px;
}
.hamburger span {
  width:26px; height:2.5px; background:var(--white);
  border-radius:2px; transition:var(--transition);
}
.hamburger.active span:nth-child(1) { transform:rotate(45deg) translate(5px,5px); }
.hamburger.active span:nth-child(2) { opacity:0; }
.hamburger.active span:nth-child(3) { transform:rotate(-45deg) translate(5px,-5px); }

/* ===== HERO ===== */
.hero {
  position:relative; z-index: 5; min-height:clamp(640px, 48vw, 760px);
  display:flex; align-items:center; justify-content:flex-start;
  padding: clamp(112px, 10vw, 138px) 0 clamp(88px, 7vw, 116px);
  background: var(--bg-dark);
  overflow:hidden;
  isolation:isolate;
}
.hero-bg {
  position:absolute; inset:0; z-index:0; background:var(--bg-dark);
}
.hero-photo {
  position:absolute; top:0; left:0;
  width:100%; height:auto;
  max-width:none;
  filter:saturate(1.06) contrast(1.04);
}
#networkCanvas {
  position:absolute; inset:0;
  width:100%; height:100%;
  opacity:0.28;
  mix-blend-mode:screen;
}
.hero-overlay {
  position:absolute; inset:0;
  background:
    linear-gradient(90deg, rgba(4,11,23,0.99) 0%, rgba(4,13,30,0.9) 30%, rgba(4,13,30,0.42) 60%, rgba(4,13,30,0.02) 100%),
    linear-gradient(180deg, rgba(4,11,23,0.42) 0%, rgba(4,11,23,0.04) 48%, rgba(4,11,23,0.58) 100%);
  z-index:1;
}
.hero-content {
  position:relative; z-index:2;
  text-align:left; color:var(--white);
  width:min(100%, 1240px);
  margin:0 auto;
  padding:0 24px;
}
.hero h1 {
  font-size:clamp(2.75rem,5.45vw,5.35rem);
  font-weight:800; line-height:0.98;
  letter-spacing:0;
  max-width:960px;
  margin-bottom:18px;
  text-wrap:balance;
  text-shadow:0 18px 44px rgba(0,0,0,0.28);
  animation: fadeInUp 0.8s ease both;
}
.hero h1::after {
  content:'';
  display:block;
  width:98px;
  height:4px;
  margin-top:18px;
  background:linear-gradient(90deg, var(--gold), rgba(241,198,106,0));
  border-radius:999px;
}
.hero-lead {
  font-size:clamp(1.34rem,2.2vw,1.95rem);
  font-weight:800;
  line-height:1.18;
  max-width:680px;
  color:var(--gold-light);
  margin:0 0 12px;
  animation: fadeInUp 0.8s 0.18s ease both;
}
.hero-slogan {
  max-width:650px;
  margin:0 0 16px;
  color:var(--accent);
  font-size:clamp(1rem,1.35vw,1.16rem);
  font-weight:900;
  line-height:1.45;
  text-shadow:0 12px 28px rgba(0,0,0,0.26);
  animation: fadeInUp 0.8s 0.28s ease both;
}
.hero-subtitle {
  font-size:clamp(1rem,1.45vw,1.12rem);
  color:var(--text-light); max-width:640px;
  margin:0 0 28px; line-height:1.72;
  animation: fadeInUp 0.8s 0.4s ease both;
}
.hero-buttons {
  display:flex; gap:18px; justify-content:flex-start; flex-wrap:nowrap;
  animation: fadeInUp 0.8s 0.56s ease both;
}
.btn {
  display:inline-flex; align-items:center; gap:8px;
  padding:15px 30px; border-radius:999px;
  font-weight:700; font-size:0.98rem;
  transition: var(--transition); cursor:pointer;
  line-height:1;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent), #009bd6);
  color:var(--white);
  border:1px solid rgba(110,231,255,0.58);
  box-shadow:0 18px 45px rgba(0,200,255,0.25);
}
.btn-primary:hover { transform:translateY(-3px); box-shadow:0 24px 52px var(--accent-glow); }
.btn-outline {
  background:rgba(241,198,106,0.05); color:var(--gold-light);
  border:1px solid rgba(241,198,106,0.78);
}
.btn-outline:hover {
  background:var(--gold);
  border-color:var(--gold);
  color:var(--primary);
  transform:translateY(-3px);
  box-shadow:0 18px 44px rgba(241,198,106,0.22);
}
body.light-mode .hero .btn-outline {
  color:#061327;
  background:rgba(255,255,255,0.94);
  border-color:rgba(173,121,21,0.88);
  font-weight:900;
  box-shadow:0 14px 34px rgba(21,54,92,0.08);
}
body.light-mode .hero .btn-outline:hover {
  color:#061327;
  background:var(--gold);
  border-color:var(--gold);
}
.hero-proof {
  position:relative;
  z-index:6;
  margin-top:-50px;
  padding:0;
  background:transparent;
  pointer-events:none;
}
.hero-proof-grid {
  pointer-events:auto;
}

.hero-proof-grid {
  display:grid;
  grid-template-columns:repeat(4, minmax(190px, 1fr));
  gap:16px;
  align-items:center;
  justify-content:center;
  max-width:1120px;
}
.hero-proof-item {
  position:relative;
  display:grid;
  grid-template-columns:36px 1fr;
  grid-template-rows:auto auto;
  column-gap:14px;
  align-items:center;
  min-height:92px;
  padding:18px 20px;
  border-radius:18px;
  background:
    linear-gradient(180deg, #ffffff, #f8fbff);
  border:1.5px solid rgba(0,200,255,0.5);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.9),
    0 18px 44px rgba(9,25,49,0.1);
  backdrop-filter:blur(18px) saturate(1.22);
  -webkit-backdrop-filter:blur(18px) saturate(1.22);
  color:var(--primary);
}
.hero-proof-item svg {
  grid-row:1 / 3;
  color:var(--accent);
  filter:drop-shadow(0 0 12px rgba(0,200,255,0.32));
}
.hero-proof-item strong {
  font-size:clamp(1.45rem,2vw,2rem);
  font-weight:800;
  line-height:1;
}
.hero-proof-item span {
  color:var(--text-muted);
  font-size:0.86rem;
  line-height:1.25;
}
.hero-scroll {
  position:absolute;
  left:50%; bottom:112px; z-index:4;
  color:var(--accent);
  transform:translateX(-50%);
  opacity:0.95;
  animation: floatDown 2.4s ease-in-out infinite;
}

/* ===== SECTIONS ===== */
.section { padding:112px 0; position:relative; }
.section-dark {
  background:#061327;
  color:var(--white);
}
.section-alt {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.76), rgba(255,255,255,0)),
    var(--bg-alt);
}
.section-header { text-align:center; margin-bottom:64px; }
.section-badge {
  display:inline-flex; align-items:center; gap:6px;
  font-size:0.8rem; font-weight:700;
  text-transform:uppercase; letter-spacing:2px;
  color:var(--accent); margin-bottom:12px;
}
.section-badge-line { width:24px; height:2px; background:var(--accent); }
.section-header h2 {
  font-size:clamp(1.8rem,4vw,2.8rem);
  font-weight:800; margin-bottom:16px; line-height:1.2;
  color:var(--primary);
  letter-spacing:0;
}
.section-dark .section-header h2 { color:var(--white); }
.section-header p {
  font-size:1.1rem; color:var(--text-muted);
  max-width:650px; margin:0 auto;
}
.section-dark .section-header p { color:var(--text-light); }

/* ===== ABOUT ===== */
.about-grid { display:grid; grid-template-columns:minmax(0, 1fr) minmax(0, 1fr); gap:72px; align-items:center; }
.about-copy,
.about-image {
  width:100%;
  min-width:0;
}
.about-text { margin-bottom:20px; font-size:1.05rem; color:var(--text-muted); }
.about-image {
  position:relative; border-radius:var(--radius); overflow:hidden;
  box-shadow:var(--shadow-lg);
  border:1px solid rgba(255,255,255,0.8);
}
.about-image img { width:100%; height:400px; object-fit:cover; }

/* ===== EXPERTISE ===== */
.expertise-section {
  overflow:hidden;
  isolation:isolate;
  position:relative;
  background:#04101f;
  color:var(--white);
}
.expertise-section::before {
  content:'';
  position:absolute;
  inset:0;
  z-index:0;
  background-image:url('background section domaine expertise .webp');
  background-size:100% 100%;
  background-position:center center;
  background-repeat:no-repeat;
  opacity:0.78;
}
.expertise-section::after {
  content:'';
  position:absolute;
  inset:0;
  z-index:1;
  background:
    linear-gradient(180deg,
      rgba(4,16,31,0.45) 0%,
      rgba(4,16,31,0.20) 40%,
      rgba(4,16,31,0.25) 60%,
      rgba(4,16,31,0.55) 100%);
}
.expertise-section .container {
  position:relative;
  z-index:2;
}
.expertise-section .section-badge {
  color:rgba(200,220,255,0.9);
  font-size:0.82rem;
  letter-spacing:0.18em;
  text-transform:uppercase;
  font-weight:700;
}
.expertise-section .section-badge-line {
  background:linear-gradient(90deg, #bd861f, rgba(189,134,31,0.4));
}
.expertise-section .section-header h2 {
  color:#ffffff;
  font-size:clamp(2rem, 3.5vw, 3rem);
  font-weight:900;
  text-shadow:0 4px 24px rgba(0,0,0,0.4);
}
.expertise-section .section-header p {
  color:rgba(200,220,255,0.78);
  font-size:1.04rem;
}
.expertise-grid {
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:22px;
  align-items:stretch;
}
.expertise-card {
  position:relative;
  overflow:hidden;
  display:flex;
  flex-direction:row;
  align-items:stretch;
  gap:0;
  min-height:auto;
  padding:0;
  border-radius:20px;
  border:1px solid rgba(255,255,255,0.1);
  background:rgba(6,18,46,0.76);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.08),
    0 16px 48px rgba(0,0,0,0.4);
  backdrop-filter:blur(20px) saturate(1.3);
  -webkit-backdrop-filter:blur(20px) saturate(1.3);
  transition:transform 0.32s ease, border-color 0.32s ease, box-shadow 0.32s ease;
  cursor:pointer;
}
.expertise-card::before {
  display:none;
}
.expertise-card::after {
  display:none;
}
.expertise-card:hover {
  transform:translateY(-6px);
  border-color:rgba(10,156,255,0.45);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.14),
    0 24px 64px rgba(0,0,0,0.48),
    0 0 30px rgba(10,156,255,0.1);
}
.expertise-icon {
  position:relative;
  z-index:1;
  flex-shrink:0;
  width:108px;
  align-self:stretch;
  display:flex;
  align-items:center;
  justify-content:center;
  margin-bottom:0;
  border-radius:18px 0 0 18px;
  background:rgba(4,12,32,0.88);
  border:none;
  border-right:1px solid rgba(255,255,255,0.07);
  box-shadow:none;
  color:rgba(100,185,255,0.92);
}
.expertise-icon::after {
  display:none;
}
.expertise-icon svg {
  width:50px;
  height:50px;
  filter:drop-shadow(0 0 16px rgba(10,156,255,0.5));
}
.expertise-icon img {
  width:88px;
  height:88px;
  object-fit:contain;
  display:block;
}
.expertise-divider {
  flex-shrink:0;
  width:1.5px;
  align-self:stretch;
  margin:18px 0;
  background:linear-gradient(180deg, transparent, rgba(10,156,255,0.7) 30%, rgba(10,156,255,0.7) 70%, transparent);
  display:block;
}
.expertise-content {
  flex:1;
  padding:26px 22px 26px 24px;
  min-width:0;
  display:flex;
  flex-direction:column;
  justify-content:center;
}
.expertise-card h3 {
  position:relative;
  z-index:1;
  color:#ffffff;
  font-size:1.15rem;
  font-weight:800;
  line-height:1.22;
  margin-bottom:10px;
}
.expertise-card p {
  position:relative;
  z-index:1;
  color:rgba(180,205,235,0.76);
  font-size:0.88rem;
  line-height:1.62;
  margin:0;
}
.expertise-arrow {
  display:none;
}
.expertise-card:hover .expertise-arrow {
  background:rgba(10,156,255,0.2);
  border-color:rgba(10,156,255,0.6);
  color:#ffffff;
}
.expertise-card:nth-child(1),
.expertise-card:nth-child(2) {
  border:1.8px solid rgba(10,156,255,0.55);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.08),
    0 16px 48px rgba(0,0,0,0.4),
    0 0 18px rgba(10,156,255,0.08);
}
.expertise-card:nth-child(3),
.expertise-card:nth-child(4) {
  border:1.8px solid rgba(241,160,50,0.55);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.08),
    0 16px 48px rgba(0,0,0,0.4),
    0 0 18px rgba(241,160,50,0.08);
}
.expertise-card:nth-child(1) .expertise-icon,
.expertise-card:nth-child(2) .expertise-icon {
  color:rgba(100,185,255,0.92);
  border-right:none;
}
.expertise-card:nth-child(1) .expertise-divider,
.expertise-card:nth-child(2) .expertise-divider {
  background:linear-gradient(180deg, transparent, rgba(10,156,255,0.75) 25%, rgba(10,156,255,0.75) 75%, transparent);
}
.expertise-card:nth-child(1) .expertise-icon svg,
.expertise-card:nth-child(2) .expertise-icon svg {
  filter:drop-shadow(0 0 14px rgba(10,156,255,0.55));
}
.expertise-card:nth-child(3) .expertise-icon,
.expertise-card:nth-child(4) .expertise-icon {
  color:rgba(241,198,106,0.92);
  border-right:none;
}
.expertise-card:nth-child(3) .expertise-divider,
.expertise-card:nth-child(4) .expertise-divider {
  background:linear-gradient(180deg, transparent, rgba(241,160,50,0.75) 25%, rgba(241,160,50,0.75) 75%, transparent);
}
.expertise-card:nth-child(3) .expertise-icon svg,
.expertise-card:nth-child(4) .expertise-icon svg {
  filter:drop-shadow(0 0 14px rgba(241,198,106,0.55));
}
.expertise-card:nth-child(3):hover,
.expertise-card:nth-child(4):hover {
  border-color:rgba(241,160,50,0.75);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.14),
    0 24px 64px rgba(0,0,0,0.48),
    0 0 30px rgba(241,160,50,0.14);
}

/* ===== SERVICES ===== */

/* ===== ABOUT BACKGROUND ===== */
#about {
  position:relative;
  overflow:hidden;
  isolation:isolate;
  margin-top: -150px; /* Pull it up more to hide the white gap behind hero */
  padding-top: 250px; /* Add extra padding so content doesn't get hidden */
}
#about::before {
  content:'';
  position:absolute;
  inset:0;
  z-index:0;
  background-image:url('decor general.webp');
  background-size:100% 100%;
  background-position:center center;
  background-repeat:no-repeat;
  opacity:1;
}
#about::after {
  content:'';
  position:absolute;
  inset:0;
  z-index:1;
  background:radial-gradient(ellipse at center,
    rgba(255,255,255,0.10) 20%,
    rgba(255,255,255,0.0) 100%);
}
#about .container {
  position:relative;
  z-index:2;
}

#services.section-dark {
  background:#f4f7fb;
  color:#061327;
  position:relative;
  overflow:hidden;
  isolation:isolate;
}
#services.section-dark::before {
  content:'';
  position:absolute;
  inset:0;
  z-index:0;
  background-image:url('decor general.webp');
  background-size:100% 100%;
  background-position:center center;
  background-repeat:no-repeat;
  opacity:1;
}
#services.section-dark::after {
  content:'';
  position:absolute;
  inset:0;
  z-index:1;
  background:radial-gradient(ellipse at center,
    rgba(244,247,251,0.15) 20%,
    rgba(244,247,251,0.0) 100%);
}
#services .container {
  position:relative;
  z-index:2;
}
#services .section-header h2 { color:#061327; }
#services .section-header p { color:#4a6180; }
#services .section-badge { color:var(--accent); }
#services .section-badge-line { background:var(--accent); }
#services .service-card {
  background:#ffffff;
  border:2px solid rgba(10,156,255,0.55);
  box-shadow:0 4px 20px rgba(6,19,39,0.06), 0 0 0 1px rgba(10,156,255,0.08);
}
#services .service-card:hover {
  background:#f0f6ff;
  border-color:rgba(10,156,255,0.45);
}
#services .service-card h3 { color:#061327; }
#services .service-card p { color:#4a6180; }
.services-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:24px; }
.service-card {
  background:linear-gradient(180deg, rgba(255,255,255,0.07), rgba(255,255,255,0.035));
  border:1.5px solid rgba(0,200,255,0.42);
  border-radius:var(--radius); padding:32px 24px;
  text-align:center; transition:var(--transition); cursor:pointer;
}
.service-card:hover {
  background:rgba(0,180,216,0.08); border-color:rgba(0,200,255,0.78);
  transform:translateY(-6px);
}
.service-icon {
  width:56px; height:56px; border-radius:14px;
  background:linear-gradient(135deg, var(--accent), rgba(0,180,216,0.6));
  display:flex; align-items:center; justify-content:center;
  margin:0 auto 16px; color:var(--white);
}
.service-icon svg { width:26px; height:26px; }
.service-card h3 { font-size:1.05rem; font-weight:700; margin-bottom:8px; color:var(--white); }
.service-card p { font-size:0.9rem; color:var(--text-light); line-height:1.6; }

/* ===== PROJECTS ===== */
.projects-carousel {
  position:relative;
  overflow:hidden;
  padding:4px 0 10px;
}
.projects-carousel::before,
.projects-carousel::after {
  content:'';
  position:absolute;
  top:0;
  bottom:0;
  width:56px;
  pointer-events:none;
  z-index:3;
}
.projects-carousel::before {
  left:0;
  background:linear-gradient(90deg, #ffffff, rgba(255,255,255,0));
}
.projects-carousel::after {
  right:0;
  background:linear-gradient(270deg, #ffffff, rgba(255,255,255,0));
}
.projects-grid {
  display:flex;
  gap:24px;
  will-change:transform;
}
.projects-grid.is-moving-right {
  animation:projectsMarqueeRight var(--projects-duration, 22s) linear infinite;
}
.projects-grid.is-moving-right:hover {
  animation-play-state:paused;
}
.project-card {
  position:relative; border-radius:var(--radius); overflow:hidden;
  cursor:pointer; height:280px;
  flex:0 0 calc((100% - 48px) / 3);
  box-shadow:var(--shadow);
  border:1px solid rgba(255,255,255,0.85);
}
.project-card img {
  width:100%; height:100%; object-fit:cover;
  transition: transform 0.6s ease;
}
.project-card:hover img { transform:scale(1.08); }
.project-overlay {
  position:absolute; left:0; right:0; bottom:0;
  height:auto;
  background:
    linear-gradient(180deg, rgba(4,11,23,0.0) 0%, rgba(4,11,23,0.58) 30%, rgba(4,11,23,0.96) 100%);
  display:flex; flex-direction:column; justify-content:flex-end;
  padding:20px 24px; transition:var(--transition);
}
.project-card:hover .project-overlay {
  background:
    linear-gradient(180deg, rgba(4,11,23,0.0) 0%, rgba(4,11,23,0.62) 25%, rgba(4,11,23,0.98) 100%);
}
.project-overlay h3 {
  color:var(--white);
  font-size:1rem;
  font-weight:800;
  margin-bottom:6px;
  text-shadow:0 3px 12px rgba(0,0,0,0.75);
  line-height:1.3;
  min-height:1.3em;
}
.project-overlay p {
  color:rgba(255,255,255,0.92);
  font-size:0.82rem;
  font-weight:700;
  line-height:1.45;
  text-shadow:0 3px 12px rgba(0,0,0,0.82);
  min-height:2.9em;
  max-height:2.9em;
  overflow:hidden;
  margin:0;
}


/* ===== QSSE BACKGROUND ===== */
#qsse {
  position:relative;
  overflow:hidden;
  isolation:isolate;
}
#qsse::before {
  content:'';
  position:absolute;
  inset:0;
  z-index:0;
  background-image:url('decor general.webp');
  background-size:100% 100%;
  background-position:center center;
  background-repeat:no-repeat;
  opacity:1;
}
#qsse::after {
  content:'';
  position:absolute;
  inset:0;
  z-index:1;
  background:radial-gradient(ellipse at center,
    rgba(255,255,255,0.10) 20%,
    rgba(255,255,255,0.0) 100%);
}
#qsse .container {
  position:relative;
  z-index:2;
}
/* ===== QSSE ===== */
.qsse-grid {
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:24px;
}
.qsse-card {
  background:#ffffff;
  border-radius:18px;
  padding:36px 28px 32px;
  text-align:center;
  border:2px solid rgba(10,156,255,0.45);
  box-shadow:0 4px 18px rgba(10,156,255,0.07);
  transition:all 0.28s ease;
  cursor:pointer;
  position:relative;
}
.qsse-card:hover {
  transform:translateY(-5px);
  box-shadow:0 12px 36px rgba(10,156,255,0.14);
  border-color:#0a9cff;
}
/* Icône dans cercle bleu clair centré */
.qsse-icon {
  width:68px;
  height:68px;
  border-radius:50%;
  background:rgba(10,156,255,0.08);
  display:flex;
  align-items:center;
  justify-content:center;
  margin:0 auto 20px;
  color:#0a9cff;
  box-shadow:inset 0 6px 18px rgba(10,156,255,0.35), inset 0 -3px 8px rgba(255,255,255,0.6), inset 2px 2px 8px rgba(10,156,255,0.20);
}
.qsse-icon svg {
  width:30px;
  height:30px;
  stroke:#0a9cff;
}
/* Titre */
.qsse-card h3 {
  font-size:1.08rem;
  font-weight:800;
  color:#061327;
  margin-bottom:10px;
  line-height:1.3;
}
/* Trait bleu sous le titre */
.qsse-card h3::after {
  content:'';
  display:block;
  width:32px;
  height:2.5px;
  background:#0a9cff;
  border-radius:999px;
  margin:10px auto 0;
}
/* Description */
.qsse-card p {
  color:#5a7080;
  font-size:0.9rem;
  line-height:1.6;
  margin-top:14px;
}

/* ===== METHOD TIMELINE ===== */
/* ===== METHOD BACKGROUND ===== */
#method {
  position:relative;
  overflow:hidden;
  isolation:isolate;
}
#method::before {
  content:'';
  position:absolute;
  inset:0;
  z-index:0;
  background-image:url('sectionNotreméthode.webp');
  background-size:100% 100%;
  background-position:center center;
  background-repeat:no-repeat;
  opacity:1;
}
#method::after {
  content:'';
  position:absolute;
  inset:0;
  z-index:1;
  background:radial-gradient(ellipse at center,
    rgba(255,255,255,0.10) 20%,
    rgba(255,255,255,0.0) 100%);
}
#method .container {
  position:relative;
  z-index:2;
}

.timeline {
  position:relative;
  max-width:860px;
  margin:0 auto;
}
/* Ligne centrale verticale animée */
.timeline::before {
  content:'';
  position:absolute;
  left:50%;
  top:0;
  bottom:0;
  width:22px;
  transform:translateX(-50%);
  border-radius:999px;
  background:
    linear-gradient(90deg,
      transparent 0 2px,
      rgba(0,200,255,0.92) 2px 4px,
      transparent 4px 7px,
      rgba(110,231,255,0.74) 7px 9px,
      rgba(255,255,255,0.7) 9px 10px,
      rgba(241,198,106,0.78) 10px 12px,
      transparent 12px 15px,
      rgba(0,142,194,0.9) 15px 18px,
      transparent 18px 100%),
    repeating-linear-gradient(180deg,
      rgba(255,255,255,0) 0 54px,
      rgba(255,255,255,0.62) 54px 58px,
      rgba(255,255,255,0) 58px 116px),
    linear-gradient(180deg, rgba(0,200,255,0.2), rgba(241,198,106,0.18));
  box-shadow:
    0 0 0 1px rgba(0,200,255,0.18),
    0 0 28px rgba(0,200,255,0.28),
    inset 0 0 12px rgba(255,255,255,0.24);
  z-index:0;
}
.timeline::after {
  content:'';
  position:absolute;
  left:50%;
  top:0;
  bottom:0;
  width:34px;
  transform:translateX(-50%);
  border-radius:999px;
  pointer-events:none;
  background:
    radial-gradient(circle at 50% 0%, rgba(255,255,255,0.95) 0 3px, rgba(0,200,255,0.75) 4px 7px, transparent 9px),
    radial-gradient(circle at 50% 38%, rgba(110,231,255,0.86) 0 3px, transparent 8px),
    radial-gradient(circle at 50% 72%, rgba(241,198,106,0.76) 0 3px, transparent 8px);
  background-size:100% 190px;
  animation:fiberPulse 5.6s linear infinite;
  opacity:0.82;
  z-index:1;
  display:block;
}

.timeline-item {
  display:grid;
  grid-template-columns:1fr 60px 1fr;
  align-items:center;
  gap:32px;
  margin-bottom:40px;
  position:relative;
}
/* Petite ligne horizontale reliant dot à la carte */
.timeline-item::before {
  content:'';
  position:absolute;
  top:50%;
  left:calc(50% + 30px);
  width:32px;
  height:2px;
  transform:translateY(-50%);
  background:rgba(10,156,255,0.45);
  border-radius:999px;
  z-index:1;
}
.timeline-item:nth-child(even)::before {
  left:auto;
  right:calc(50% + 30px);
  background:rgba(10,156,255,0.45);
}
.timeline-spacer { min-width:0; }

/* Carte */
.timeline-content {
  position:relative;
  z-index:2;
  min-width:0;
  background:#ffffff;
  border-radius:16px;
  padding:20px 20px 20px 16px;
  border:1.5px solid rgba(210,225,240,0.9);
  box-shadow:0 4px 20px rgba(6,19,39,0.07);
  transition:all 0.26s ease;
  display:flex;
  align-items:flex-start;
  gap:16px;
}
/* Cartes droite (impaires) = orange */
.timeline-item:nth-child(odd) .timeline-content {
  border:1.5px solid rgba(241,160,32,0.65);
  box-shadow:0 4px 20px rgba(241,160,32,0.10);
}
.timeline-item:nth-child(odd) .timeline-content h3::after {
  background:#f1a020;
}
/* Cartes gauche (paires) = bleu */
.timeline-item:nth-child(even) .timeline-content {
  border:1.5px solid rgba(10,156,255,0.55);
  box-shadow:0 4px 20px rgba(10,156,255,0.10);
}
.timeline-item:nth-child(even) .timeline-content h3::after {
  background:#0a9cff;
}
.timeline-content:hover {
  transform:translateY(-4px);
  border-color:rgba(10,156,255,0.5);
  box-shadow:0 12px 36px rgba(10,156,255,0.14);
}

/* Connecteur bullet */
.timeline-content::before { display:none; }
.timeline-item:nth-child(even) .timeline-content::before { display:none; }

/* Icône dans la carte */
.timeline-card-icon {
  position:static;
  flex-shrink:0;
  width:52px;
  height:52px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:14px;
  color:#c89328;
  background:rgba(241,198,106,0.13);
  border:1.5px solid rgba(241,198,106,0.55);
  box-shadow:inset 0 3px 8px rgba(241,198,106,0.18), inset 0 -2px 5px rgba(255,255,255,0.7);
}
.timeline-item:nth-child(even) .timeline-card-icon {
  color:#0a9cff;
  background:rgba(10,156,255,0.09);
  border-color:rgba(10,156,255,0.45);
  box-shadow:inset 0 3px 8px rgba(10,156,255,0.15), inset 0 -2px 5px rgba(255,255,255,0.7);
}
.timeline-card-icon svg {
  width:24px;
  height:24px;
}

/* Texte dans la carte */
.timeline-text { flex:1; min-width:0; }
.timeline-content h3 {
  font-size:1.05rem;
  font-weight:800;
  color:#061327;
  margin-bottom:0;
  line-height:1.3;
}
.timeline-content h3::after {
  content:'';
  display:block;
  width:28px;
  height:2.5px;
  background:#0a9cff;
  border-radius:999px;
  margin:8px 0 10px;
}
.timeline-content p {
  color:#5a7080;
  font-size:0.88rem;
  line-height:1.55;
  margin:0;
}

/* Cercle numéroté */
.timeline-dot {
  position:relative;
  width:50px; height:50px; min-width:50px;
  border-radius:50%;
  background:linear-gradient(135deg, #0d2247, #0a3060);
  display:flex; align-items:center; justify-content:center;
  color:#ffffff;
  font-weight:800;
  font-size:1.1rem;
  z-index:3;
  box-shadow:
    0 0 0 4px #ffffff,
    0 0 0 7px rgba(10,156,255,0.45),
    0 6px 20px rgba(10,156,255,0.25);
}
.timeline-dot::before {
  display:none;
}
.section-alt .timeline-dot {
  box-shadow:
    0 0 0 4px var(--bg-alt),
    0 0 0 7px rgba(10,156,255,0.45),
    0 6px 20px rgba(10,156,255,0.25);
}
/* Impairs (1,3,5) = orange */
.timeline-item:nth-child(odd) .timeline-dot {
  background:linear-gradient(135deg, #f1a020, #d4860a);
  box-shadow:
    0 0 0 4px #ffffff,
    0 0 0 7px rgba(241,160,32,0.55),
    0 6px 20px rgba(241,160,32,0.30);
}
/* Pairs (2,4) = bleu */
.timeline-item:nth-child(even) .timeline-dot {
  background:linear-gradient(135deg, #0a9cff, #006fcc);
  box-shadow:
    0 0 0 4px #ffffff,
    0 0 0 7px rgba(10,156,255,0.55),
    0 6px 20px rgba(10,156,255,0.30);
}

/* ===== EQUIPMENT BACKGROUND ===== */
#equipment {
  position:relative;
  overflow:hidden;
  isolation:isolate;
}
#equipment::before {
  content:'';
  position:absolute;
  inset:0;
  z-index:0;
  background-image:url('decor general.webp');
  background-size:100% 100%;
  background-position:center center;
  background-repeat:no-repeat;
  opacity:1;
}
#equipment::after {
  content:'';
  position:absolute;
  inset:0;
  z-index:1;
  background:radial-gradient(ellipse at center,
    rgba(255,255,255,0.10) 20%,
    rgba(255,255,255,0.0) 100%);
}
#equipment .container {
  position:relative;
  z-index:2;
}

/* ===== EQUIPMENT ===== */
.equipment-slider { display:grid; grid-template-columns:repeat(3,1fr); gap:20px; }
.equipment-card {
  border-radius:var(--radius); overflow:hidden;
  position:relative; height:240px; cursor:pointer;
  box-shadow:var(--shadow);
  border:1px solid rgba(255,255,255,0.82);
}
.equipment-card img { width:100%; height:100%; object-fit:cover; transition:transform 0.6s ease; }
.equipment-card:hover img { transform:scale(1.06); }
.equipment-label {
  position:absolute; bottom:0; left:0; right:0;
  background:linear-gradient(transparent, rgba(10,22,40,0.9));
  padding:40px 16px 16px; color:var(--white);
  font-weight:600; font-size:0.9rem;
}

/* ===== CONTACT ===== */
.contact-grid { display:grid; grid-template-columns:1.5fr 1fr; gap:40px; align-items: stretch; }
.contact-info-card {
  display:flex; align-items:flex-start; gap:16px;
  padding:20px; border-radius:var(--radius-sm);
  background:rgba(0,200,255,0.06); margin-bottom:16px;
  border:1px solid rgba(0,200,255,0.12);
}
.contact-info-icon {
  width:44px; height:44px; min-width:44px;
  border-radius:12px; background:linear-gradient(135deg, var(--accent), var(--primary-light));
  display:flex; align-items:center; justify-content:center; color:var(--white);
}
.contact-info-icon svg { width:20px; height:20px; }
.contact-info-card h4 { font-size:0.95rem; font-weight:700; margin-bottom:4px; }
.contact-info-card p { font-size:0.9rem; color:var(--text-muted); }
.contact-form {
  background:linear-gradient(180deg, #ffffff, #f8fbff);
  border-radius:var(--radius);
  padding:40px;
  box-shadow:var(--shadow-lg);
  border:1px solid rgba(217,226,234,0.92);
}
.form-row { display:grid; grid-template-columns:1fr 1fr; gap:16px; margin-bottom:16px; }
.form-group { margin-bottom:16px; }
.form-group label { display:block; font-size:0.88rem; font-weight:600; margin-bottom:6px; color:var(--text); }
.form-group input, .form-group textarea, .form-group select {
  width:100%; padding:12px 16px; border:1px solid var(--border);
  border-radius:var(--radius-sm); font-family:inherit; font-size:0.95rem;
  transition:var(--transition); background:var(--bg);
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  outline:none; border-color:var(--accent);
  box-shadow:0 0 0 3px var(--accent-glow);
}
.form-group textarea { resize:vertical; min-height:120px; }
.btn-submit {
  width:100%; padding:16px; border-radius:var(--radius-sm);
  background:linear-gradient(135deg, var(--accent), #009bd6);
  color:var(--white); font-weight:700; font-size:1rem;
  transition:var(--transition); border:none; cursor:pointer;
}
.btn-submit:hover { transform:translateY(-2px); box-shadow:0 8px 24px var(--accent-glow); }

/* ===== FOOTER ===== */
.footer {
  position:relative;
  background:#011638; /* Very dark blue */
  color:rgba(255,255,255,0.7);
  padding:80px 0 30px;
  overflow:hidden;
  font-family: 'Montserrat', sans-serif;
}
.footer-bg {
  position:absolute; inset:0; z-index:0;
  background: url('footer.webp') no-repeat right bottom / cover;
}
.footer .container {
  position:relative; z-index:1;
}

.footer-grid {
  display:grid;
  grid-template-columns: 1.5fr 1fr 1.2fr;
  gap:80px;
  align-items:start;
  margin-bottom:60px;
}

/* Brand Column */
.footer-brand {
  max-width:440px;
}
.footer-logo-lockup {
  display:flex;
  align-items:center;
  gap:16px;
  margin-bottom:16px;
}
.footer-logo {
  width:86px;
  height:86px;
  background:#ffffff;
  border-radius:14px;
  display:grid;
  place-items:center;
  padding:6px;
  box-shadow:0 12px 30px rgba(0,0,0,0.15);
}
.footer-logo img {
  width:100%;
  height:100%;
  object-fit:contain;
}
.footer-brand-text {
  display:flex;
  flex-direction:column;
  font-size:2rem;
  font-weight:800;
  line-height:1.1;
  letter-spacing:0.04em;
}
.brand-sgt { color:#ffffff; }
.brand-const { color:#f1c66a; font-size:1.3rem; letter-spacing:0.18em; font-weight:600; margin-top:4px; }

.footer-brand-line {
  display: flex;
  gap: 6px;
  margin-bottom:24px;
}
.footer-brand-line::before {
  content: '';
  width: 40px;
  height: 3px; /* Slightly thicker so it's more visible */
  background: #00c8ff;
  border-radius: 2px;
}
.footer-brand-line::after {
  content: '';
  width: 40px;
  height: 3px;
  background: #f1c66a;
  border-radius: 2px;
}

.footer-desc {
  font-size:0.95rem;
  line-height:1.6;
  margin-bottom:32px;
  color:rgba(255,255,255,0.75);
}

.footer-domains {
  display:flex;
  align-items:center;
  gap:20px;
}
.footer-domain {
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:10px;
}
.footer-domain span {
  font-size:0.75rem;
  font-weight:600;
  color:rgba(255,255,255,0.6);
  line-height:1.3;
  letter-spacing:0.05em;
}
.domain-divider {
  width:1px;
  height:40px;
  background:rgba(255,255,255,0.15);
}

/* Headings */
.footer-heading {
  display:flex;
  align-items:center;
  gap:12px;
  color:#00c8ff;
  font-size:0.85rem;
  font-weight:700;
  letter-spacing:0.15em;
  margin-bottom:30px;
  text-transform:uppercase;
}

/* Links */
.footer-links {
  display:flex;
  flex-direction:column;
}
.footer-links a {
  display:flex;
  align-items:center;
  gap:10px;
  color:rgba(255,255,255,0.85);
  font-size:1rem;
  padding:14px 0;
  border-bottom:1px solid rgba(255,255,255,0.08);
  transition:all 0.3s ease;
}
.footer-links a:hover {
  color:#ffffff;
  padding-left:6px;
  border-bottom-color:rgba(255,255,255,0.25);
}

/* Contact Column */
.footer-contact-list {
  display:flex;
  flex-direction:column;
  gap:24px;
}
.footer-contact-link {
  display:flex;
  align-items:center;
  gap:16px;
  color:rgba(255,255,255,0.85);
  transition:color 0.3s ease;
  font-size:0.95rem;
}
.footer-contact-link:hover {
  color:#ffffff;
}
.footer-contact-link .icon-circle {
  width:42px;
  height:42px;
  border-radius:50%;
  border:1px solid rgba(255,255,255,0.2);
  display:flex;
  align-items:center;
  justify-content:center;
  color:#00c8ff;
  position:relative;
  flex-shrink:0;
}

.footer-phone-line span:last-child {
  letter-spacing:0.03em;
}

/* Bottom */
.footer-bottom-separator {
  height:2px;
  background:linear-gradient(90deg, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0.15) 40%, rgba(0,200,255,0.9) 50%, rgba(241,198,106,0.9) 52%, rgba(255,255,255,0.15) 60%, rgba(255,255,255,0.15) 100%);
  margin-bottom:24px;
}
.footer-bottom {
  display:flex;
  justify-content:space-between;
  align-items:center;
  font-size:0.85rem;
  color:rgba(255,255,255,0.5);
}
.footer-bottom-left {
  display:flex;
  align-items:center;
  gap:10px;
}
.footer-bottom-right {
  letter-spacing:0.02em;
}


/* ===== LIGHTBOX ===== */
.lightbox {
  position:fixed; inset:0; z-index:9999;
  background:rgba(0,0,0,0.92); display:none;
  align-items:center; justify-content:center; cursor:pointer;
}
.lightbox.active { display:flex; }
.lightbox img { max-width:90vw; max-height:85vh; object-fit:contain; border-radius:12px; }
.lightbox-close {
  position:absolute; top:24px; right:24px;
  width:48px; height:48px; border-radius:50%;
  background:rgba(255,255,255,0.1); color:var(--white);
  display:flex; align-items:center; justify-content:center;
  font-size:1.4rem; cursor:pointer; border:none;
  transition:var(--transition);
}
.lightbox-close:hover { background:rgba(255,255,255,0.2); }

/* ===== RESPONSIVE ===== */
@media(max-width:1024px) {
  .hero {
    min-height:clamp(650px, 62vw, 760px);
    padding-bottom:104px;
  }
  .hero h1 {
    max-width: 760px;
  }
  .hero-proof-grid {
    grid-template-columns:repeat(2, minmax(220px, 1fr));
    gap:14px;
    padding-top:0;
    padding-bottom:0;
  }
  .hero-proof-item {
    padding:16px 18px;
  }
  .expertise-grid { grid-template-columns:repeat(2,1fr); }
  .services-grid { grid-template-columns:repeat(2,1fr); }
  .project-card { flex-basis:calc((100% - 24px) / 2); }
  .equipment-slider { grid-template-columns:repeat(2,1fr); }
  .footer-grid {
    grid-template-columns:1.1fr 0.9fr;
    gap:46px;
  }
  .footer-contact-column {
    grid-column:1 / -1;
    max-width:520px;
  }
}
@media(max-width:768px) {
  .navbar {
    padding:12px 0;
    background:
      linear-gradient(180deg, rgba(255,255,255,0.13), rgba(255,255,255,0.04)),
      rgba(4,11,23,0.7);
    backdrop-filter:blur(22px) saturate(1.35);
    -webkit-backdrop-filter:blur(22px) saturate(1.35);
    border-bottom-color:rgba(255,255,255,0.16);
  }
  .nav-logo img { height:46px; }
  .nav-links { 
    display:none; position:absolute; top:calc(100% + 10px); left:0; right:0;
    width:100%;
    background:
      linear-gradient(180deg, rgba(255,255,255,0.14), rgba(255,255,255,0.045)),
      rgba(4,11,23,0.92);
    backdrop-filter:blur(24px) saturate(1.35);
    -webkit-backdrop-filter:blur(24px) saturate(1.35);
    border:1px solid rgba(255,255,255,0.18);
    border-radius:22px;
    box-shadow:0 24px 54px rgba(0,0,0,0.28);
    padding:24px 18px;
    flex-direction:column; align-items:center; justify-content:center; gap:18px;
  }
  .nav-links.active { display:flex; }
  .nav-links a { font-size:1.2rem; }
  .nav-tools {
    flex-direction:column;
    margin-left:0;
    gap:12px;
  }
  .language-switcher {
    gap:6px;
  }
  .language-btn,
  .theme-toggle {
    min-height:40px;
  }
  body.light-mode .nav-links {
    background:
      linear-gradient(180deg, rgba(255,255,255,0.86), rgba(255,255,255,0.62)),
      rgba(255,255,255,0.72);
    border-color:rgba(21,54,92,0.12);
  }
  .hamburger { display:flex; }
  .hero {
    display:block;
    min-height:auto;
    padding:118px 0 0;
  }
  .hero-photo {
    height:100%;
    object-fit:cover;
    object-position:68% center;
  }
  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(4,11,23,0.99) 0%, rgba(4,13,30,0.9) 56%, rgba(4,13,30,0.42) 100%),
      linear-gradient(180deg, rgba(4,11,23,0.62) 0%, rgba(4,11,23,0.28) 48%, rgba(4,11,23,0.78) 100%);
  }
  .hero-content {
    padding-bottom:42px;
  }
  .hero h1 {
    font-size:clamp(2.55rem, 11.6vw, 3.62rem);
    line-height:0.98;
    max-width: 100%;
    margin-bottom:20px;
  }
  .hero h1::after {
    width:92px;
    height:4px;
    margin-top:20px;
  }
  .hero-lead {
    font-size:clamp(1.26rem, 6.2vw, 1.74rem);
  }
  .hero-slogan {
    max-width:100%;
    font-size:1rem;
  }
  .hero-subtitle {
    max-width: 100%;
    margin-bottom:28px;
  }
  .hero-proof {
    position:relative;
    margin-top:-6px;
    padding:12px 0 38px;
    background:#ffffff;
  }
  .hero-proof-grid {
    grid-template-columns:repeat(2, minmax(0, 1fr));
    min-height:auto;
    gap:12px;
    padding-top:0;
    padding-bottom:0;
  }
  .hero-proof-item {
    grid-template-columns:26px 1fr;
    min-height:86px;
    padding:14px 13px;
    border-radius:16px;
  }
  .hero-proof-item strong {
    font-size:1.28rem;
  }
  .hero-scroll {
    display:none;
  }
  .about-grid { grid-template-columns:1fr; gap:40px; }
  .about-image { order:-1; }
  .expertise-grid { grid-template-columns:1fr; }
  .expertise-card {
    min-height:auto;
    padding:0;
    align-items:stretch;
  }
  .expertise-card::after {
    right:20px;
    top:16px;
    font-size:3.5rem;
  }
  .expertise-icon {
    width:90px;
    min-height:100px;
    height:auto;
    align-self:stretch;
    flex-shrink:0;
    border-radius:18px 0 0 18px;
    margin-bottom:0;
  }
  .expertise-icon img {
    width:72px;
    height:72px;
  }
  .expertise-content {
    padding:22px 18px 22px 20px;
    justify-content:center;
  }
  .expertise-icon::after {
    width:86px;
  }
  .services-grid { grid-template-columns:1fr; }
  .projects-carousel::before,
  .projects-carousel::after {
    width:24px;
  }
  .project-card {
    flex-basis:100%;
    height:260px;
  }
  .qsse-grid { grid-template-columns:1fr; }
  .contact-grid { grid-template-columns:1fr; gap:32px; }
  .form-row { grid-template-columns:1fr; }
  .equipment-slider { grid-template-columns:1fr 1fr; }
  .footer {
    padding:54px 0 22px;
  }
  .footer-grid {
    grid-template-columns:1fr;
    gap:34px;
    margin-bottom:38px;
  }
  .footer-logo-lockup {
    margin-bottom:22px;
  }
  .footer-column h4 {
    margin-bottom:22px;
  }
  .footer-contact-column {
    max-width:none;
  }
  .footer-bottom {
    align-items:flex-start;
    flex-direction:column;
    gap:10px;
  }
  .footer-legal {
    text-align:left;
  }
  .timeline::before {
    left:20px;
    width:18px;
  }
  .timeline::after {
    left:20px;
    width:30px;
  }
  .timeline-item {
    grid-template-columns:40px 1fr;
    gap:20px;
    align-items:start;
  }
  .timeline-item::before,
  .timeline-item:nth-child(even)::before {
    left:39px;
    right:auto;
    width:22px;
    height:8px;
    background:
      linear-gradient(90deg, rgba(0,200,255,0.9), rgba(110,231,255,0.55), rgba(241,198,106,0.28)),
      repeating-linear-gradient(90deg, transparent 0 9px, rgba(255,255,255,0.7) 9px 11px, transparent 11px 20px);
  }
  .timeline-spacer { display:none; }
  .timeline-dot { grid-column:1; grid-row:1; }
  .timeline-content {
    grid-column:2;
    text-align:left !important;
    padding:28px 72px 26px 22px;
  }
  .timeline-card-icon {
    top:18px;
    right:18px;
    width:40px;
    height:40px;
    border-radius:12px;
  }
  .timeline-card-icon svg {
    width:20px;
    height:20px;
  }
  .timeline-content::before,
  .timeline-item:nth-child(even) .timeline-content::before {
    left:-7px;
    right:auto;
  }
  .timeline-dot { min-width:40px; width:40px; height:40px; font-size:0.9rem; }
  .section { padding:64px 0; }
}
@media(max-width:480px) {
  .container { padding:0 18px; }
  .hero-buttons {
    flex-direction:column;
    align-items:stretch;
  }
  .btn {
    justify-content:center;
    width:100%;
  }
  .hero-proof-grid {
    grid-template-columns:1fr;
  }
  .hero-proof-item {
    padding:14px 16px;
    grid-template-columns:26px 1fr;
  }
  .equipment-slider { grid-template-columns:1fr; }
}

@media(prefers-reduced-motion:reduce) {
  *, *::before, *::after { animation-duration:0.01ms !important; transition-duration:0.01ms !important; }
  html { scroll-behavior:auto; }
  .reveal { opacity:1; transform:none; }
}

/* ===== SECTION 1 - REFERENCE RESTYLE ===== */
.navbar {
  top:30px;
  width:min(1476px, calc(100% - 96px));
  padding:12px 0;
  border-radius:30px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.92), rgba(255,255,255,0.72)),
    rgba(255,255,255,0.72);
  border:1px solid rgba(6,19,39,0.08);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.95),
    0 22px 54px rgba(6,19,39,0.12);
  backdrop-filter:blur(26px) saturate(1.25);
  -webkit-backdrop-filter:blur(26px) saturate(1.25);
}
.navbar::before {
  opacity:0.46;
  background:linear-gradient(105deg, transparent 0%, rgba(255,255,255,0.7) 38%, transparent 62%);
}
.navbar.scrolled {
  top:14px;
  padding:9px 0;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.9), rgba(255,255,255,0.68)),
    rgba(255,255,255,0.74);
  border-color:rgba(6,19,39,0.1);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.95),
    0 20px 46px rgba(6,19,39,0.15);
}
.navbar .container {
  padding:0 28px 0 30px;
}
.nav-logo img {
  height:94px;
  filter:none;
}
.nav-links {
  gap:26px;
}
.nav-links a {
  color:#061327;
  font-size:1.05rem;
  font-weight:700;
}
.nav-links > a:not(.nav-cta):hover,
.nav-links > a:not(.nav-cta).active {
  color:#007fc2 !important;
}
.nav-links > a:not(.nav-cta).active::after {
  width:100%;
}
.nav-links a::after {
  bottom:-9px;
  height:3px;
  background:#00c8ff;
}
.nav-cta {
  gap:10px;
  padding:15px 24px;
  color:#b37c14 !important;
  background:rgba(255,255,255,0.58);
  border:1.5px solid rgba(188,132,23,0.74);
  font-size:1.02rem;
  box-shadow:0 12px 30px rgba(188,132,23,0.08);
}
.nav-cta:hover {
  background:var(--gold);
  border-color:var(--gold);
  color:#061327 !important;
}
.language-switcher,
.theme-toggle {
  background:rgba(255,255,255,0.58);
  border:1px solid rgba(6,19,39,0.09);
  color:#061327;
  box-shadow:0 12px 30px rgba(6,19,39,0.05), inset 0 1px 0 rgba(255,255,255,0.9);
}
.language-btn,
.theme-toggle {
  min-height:48px;
  font-size:1rem;
  font-weight:800;
}
.language-btn {
  padding:10px 13px;
}
.language-btn.active {
  color:#061327;
  background:#ffffff;
  box-shadow:0 10px 24px rgba(6,19,39,0.08);
}
.language-btn:not(.active):hover,
.theme-toggle:hover {
  color:#061327;
  background:#ffffff;
}
.flag {
  font-size:1.08rem;
}
.theme-toggle {
  padding:10px 18px;
}
.theme-icon-sun {
  color:#d59618;
}

.hero {
  min-height:0;
  height:clamp(720px, 56.28vw, 941px);
  display:block;
  padding:0;
  background:#ffffff;
}
.hero-bg {
  background:#ffffff;
}
.hero-photo {
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center top;
  filter:none;
}
#networkCanvas {
  opacity:0.18;
  mix-blend-mode:normal;
  mask-image:linear-gradient(90deg, #000 0%, #000 18%, transparent 46%);
  -webkit-mask-image:linear-gradient(90deg, #000 0%, #000 18%, transparent 46%);
}
.hero-overlay,
body.light-mode .hero-overlay {
  background:
    radial-gradient(circle at 4% 84%, rgba(0,142,214,0.12), transparent 22rem),
    linear-gradient(90deg, rgba(255,255,255,0.34) 0%, rgba(255,255,255,0.16) 29%, rgba(255,255,255,0.02) 60%, rgba(255,255,255,0) 100%);
}
.hero-content {
  position:relative;
  z-index:2;
  width:min(100%, 1540px);
  margin:0 auto;
  padding:clamp(154px, 12.3vw, 206px) 48px 0 clamp(60px, 6vw, 120px);
  color:#061327;
}
.hero h1,
body.light-mode .hero h1 {
  max-width:900px;
  margin:0 0 18px;
  color:#061943;
  font-size:clamp(3.4rem, 4.6vw, 5.6rem);
  line-height:0.98;
  font-weight:900;
  letter-spacing:0;
  text-shadow:none;
}
.hero h1::after {
  width:132px;
  height:4px;
  margin-top:28px;
  background:linear-gradient(90deg, #bd861f, rgba(189,134,31,0));
}
.hero-lead {
  max-width:none;
  margin:0 0 10px;
  color:#0a9cff;
  font-size:clamp(1.6rem, 2.2vw, 2.3rem);
  font-weight:900;
  line-height:1.16;
  text-shadow:none;
  white-space:nowrap;
}
.hero-tagline {
  max-width:none;
  margin:0 0 22px;
  color:#c2902e;
  font-size:clamp(1.05rem, 1.35vw, 1.45rem);
  font-weight:700;
  line-height:1.2;
  text-shadow:none;
  white-space:nowrap;
}
.hero-slogan {
  display:none;
}
.hero-subtitle,
body.light-mode .hero-subtitle {
  max-width:660px;
  margin:0 0 38px;
  color:#061943;
  font-size:clamp(1.06rem, 1.23vw, 1.28rem);
  line-height:1.48;
  font-weight:500;
}
.hero-buttons {
  gap:30px;
}
.btn {
  min-height:52px;
  padding:13px 24px;
  border-radius:999px;
  font-size:1rem;
  font-weight:800;
}
.btn-primary {
  min-width:160px;
}
.btn-outline {
  min-width:190px;
}
.btn-primary {
  background:linear-gradient(135deg, #0a9cff, #064bdf);
  border:0;
  color:#ffffff;
  box-shadow:0 18px 32px rgba(3,75,216,0.22);
}
.btn-primary:hover {
  box-shadow:0 22px 44px rgba(3,75,216,0.28);
}
.btn-outline,
body.light-mode .hero .btn-outline {
  color:#061943;
  background:#ffffff;
  border:1.4px solid rgba(6,25,67,0.28);
  box-shadow:0 4px 14px rgba(6,19,39,0.08);
}
.btn-outline:hover,
body.light-mode .hero .btn-outline:hover {
  color:#061327;
  background:#ffffff;
  border-color:#0a9cff;
}
.hero-scroll {
  display:none;
}
.btn-gold {
  display:inline-flex;
  align-items:center;
  gap:10px;
  min-height:52px;
  min-width:200px;
  padding:13px 24px;
  border-radius:999px;
  font-size:1rem;
  font-weight:800;
  color:#b37c14;
  background:#ffffff;
  border:1.5px solid rgba(188,132,23,0.55);
  box-shadow:0 4px 14px rgba(188,132,23,0.08);
  transition:all 0.25s ease;
  cursor:pointer;
  text-decoration:none;
}
.btn-gold:hover {
  background:linear-gradient(135deg, #d4960e, #b37c14);
  border-color:#d4960e;
  color:#ffffff;
  box-shadow:0 12px 32px rgba(188,132,23,0.28);
}


.hero-proof {
  z-index:5;
  margin-top:clamp(-170px, -9.5vw, -112px);
  padding:0 0 clamp(32px, 2.5vw, 46px);
  background:transparent !important;
}
.hero-proof-grid {
  max-width:1280px;
  grid-template-columns:repeat(4, minmax(0, 1fr));
  gap:18px;
  padding:0 32px;
}
.hero-proof-item {
  display:flex;
  flex-direction:row;
  align-items:center;
  gap:18px;
  min-height:108px;
  padding:22px 24px;
  border-radius:16px;
  border:2.5px solid rgba(10,156,255,0.55);
  background:#ffffff;
  box-shadow:0 8px 32px rgba(6,19,39,0.09), 0 0 0 1px rgba(10,156,255,0.06);
  color:#061327;
  position:relative;
}
.hero-proof-item::after {
  display:none;
}
/* Cercle icône bleu clair */
.proof-icon {
  flex-shrink:0;
  width:64px;
  height:64px;
  border-radius:50%;
  background:rgba(10,156,255,0.10);
  display:flex;
  align-items:center;
  justify-content:center;
  color:#0a9cff;
}
.proof-icon svg {
  width:30px;
  height:30px;
  color:#0a9cff;
}
/* Texte : chiffre + label + trait */
.proof-text {
  display:flex;
  flex-direction:column;
  gap:2px;
  min-width:0;
  overflow:hidden;
}
.hero-proof-item strong {
  color:#061327;
  font-size:clamp(1.6rem, 2vw, 2.2rem);
  font-weight:900;
  line-height:1;
}
.hero-proof-item span {
  color:#4a6180;
  font-size:0.88rem;
  line-height:1.3;
  font-weight:500;
  padding-bottom:6px;
  position:relative;
}
.hero-proof-item span::after {
  content:'';
  position:absolute;
  bottom:0;
  left:0;
  width:36px;
  height:2.5px;
  border-radius:999px;
  background:#c2902e;
}
.hero-proof-item:last-child span {
  font-size:0.86rem;
  word-break:break-word;
  overflow-wrap:break-word;
}

body.light-mode .navbar,
body.light-mode .navbar.scrolled {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.92), rgba(255,255,255,0.72)),
    rgba(255,255,255,0.72);
  border-color:rgba(6,19,39,0.08);
}
body.light-mode .navbar .nav-links > a:not(.nav-cta) {
  color:#061327 !important;
}
body.light-mode .navbar .nav-links > a:not(.nav-cta):hover,
body.light-mode .navbar .nav-links > a:not(.nav-cta).active {
  color:#007fc2 !important;
}
body.light-mode .nav-cta {
  color:#b37c14 !important;
  background:rgba(255,255,255,0.58);
}
body.light-mode .language-switcher,
body.light-mode .theme-toggle {
  background:rgba(255,255,255,0.58);
  border-color:rgba(6,19,39,0.09);
  color:#061327;
}
body.light-mode .hero-proof-item {
  color:#061327;
  background:rgba(255,255,255,0.86);
  border-color:transparent;
}

@media(max-width:1280px) {
  .navbar {
    top:22px;
    width:calc(100% - 48px);
  }
  .navbar .container {
    padding:0 18px 0 22px;
  }
  .nav-logo img {
    height:72px;
  }
  .nav-links {
    gap:16px;
  }
  .nav-links a {
    font-size:0.91rem;
  }
  .nav-cta {
    padding:12px 18px;
    font-size:0.9rem;
  }
  .language-btn,
  .theme-toggle {
    min-height:40px;
    font-size:0.86rem;
  }
  .hero-content {
    padding-left:42px;
    padding-right:42px;
  }
}

@media(max-width:1024px) {
  .navbar {
    width:calc(100% - 32px);
    border-radius:24px;
  }
  .nav-logo img {
    height:60px;
  }
  .hero {
    height:auto;
    min-height:760px;
  }
  .hero-photo {
    object-position:62% top;
  }
  .hero-content {
    padding:150px 30px 190px;
  }
  .hero h1,
  body.light-mode .hero h1 {
    font-size:clamp(2.4rem, 6.5vw, 4rem);
  }
  .hero-lead {
    font-size:clamp(1.1rem, 4.5vw, 1.85rem);
    white-space:normal;
    overflow-wrap:break-word;
  }
  .hero-lead br.lead-break {
    display:none;
  }
  .hero-tagline {
    font-size:clamp(0.9rem, 3.4vw, 1.45rem);
    white-space:normal;
    overflow-wrap:break-word;
    line-height:1.3;
  }
  .hero-subtitle,
  body.light-mode .hero-subtitle {
    max-width:620px;
  }
  .hero-proof {
    margin-top:-170px;
  }
  .hero-proof-grid {
    grid-template-columns:repeat(2, minmax(0, 1fr));
    padding:0 30px;
  }
}

@media(max-width:768px) {
  .navbar {
    top:12px;
    width:calc(100% - 24px);
    padding:8px 0;
  }
  .nav-links {
    top:calc(100% + 10px);
    background:rgba(255,255,255,0.9);
    border-color:rgba(6,19,39,0.1);
  }
  .nav-links a {
    color:#061327;
  }
  .hamburger span {
    background:#061327;
  }
  .hero {
    min-height:820px;
  }
  .hero-photo {
    object-position:66% top;
  }
  .hero-overlay,
  body.light-mode .hero-overlay {
    background:
      linear-gradient(90deg, rgba(255,255,255,0.94) 0%, rgba(255,255,255,0.76) 55%, rgba(255,255,255,0.22) 100%),
      linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.82));
  }
  #networkCanvas {
    opacity:0.12;
  }
  .hero-content {
    padding:130px 24px 230px;
  }
  .hero h1,
  body.light-mode .hero h1 {
    font-size:clamp(2rem, 10vw, 3.2rem);
  }
  .hero-lead {
    font-size:clamp(1.05rem, 5vw, 1.7rem);
    white-space:normal;
    overflow-wrap:break-word;
  }
  .hero-tagline {
    font-size:clamp(0.9rem, 3.8vw, 1.45rem);
    white-space:normal;
    overflow-wrap:break-word;
    line-height:1.3;
  }
  .hero-subtitle,
  body.light-mode .hero-subtitle {
    font-size:1rem;
  }
  .hero-buttons {
    gap:14px;
  }
  .btn {
    min-height:56px;
    font-size:1rem;
  }
  .hero-proof {
    margin-top:-210px;
  }
  .hero-proof-grid {
    grid-template-columns:1fr;
    gap:14px;
    padding:0 24px;
  }
  .hero-proof-item {
    min-height:96px;
    grid-template-columns:44px 1fr;
    padding:18px 22px;
  }
  .hero-proof-item::after {
    left:calc(22px + 44px + 18px);
    bottom:14px;
  }
  .hero-proof-item svg {
    width:34px;
    height:34px;
  }
  .hero-proof-item strong {
    font-size:2rem;
  }
}

@media(max-width:1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 50px;
  }
  .footer-brand {
    grid-column: 1 / -1;
    max-width: 100%;
  }
}
@media(max-width:768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }
  .footer-domains {
    flex-wrap: wrap;
  }
}

.gradient-circle-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  vertical-align: middle;
  margin-right: 12px;
  border-radius: 50%;
  position: relative;
  z-index: 1;
}
.gradient-circle-icon::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  padding: 2px; /* Epaisseur augmentée un peu */
  background: linear-gradient(135deg, #00c8ff, #f1c66a);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  z-index: -1;
}
.gradient-circle-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 10px;
  box-sizing: border-box;
}

/* === NEW CONTACT SECTION STYLES === */
.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}
.input-wrapper .input-icon {
  position: absolute;
  left: 16px;
  color: #94a3b8; /* Slate 400 */
  pointer-events: none;
}
.input-wrapper input, .input-wrapper textarea {
  padding-left: 48px; /* Room for icon */
  width: 100%;
}

.contact-guarantees-card {
  background: #ffffff;
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(217,226,234,0.92);
  border-top: 4px solid #f1c66a;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.guarantee-main {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 30px;
}
.guarantee-main-icon {
  width: 60px;
  height: 60px;
  min-width: 60px;
  border-radius: 50%;
  background: #f0f9ff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.guarantee-main-content h3 {
  font-size: 1.3rem;
  color: #0f172a;
  margin: 0 0 8px 0;
}
.guarantee-main-line {
  display: block;
  width: 30px;
  height: 2px;
  background: #f1c66a;
  margin-bottom: 12px;
}
.guarantee-main-content p {
  color: #64748b;
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0;
}

.guarantee-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  flex-grow: 1;
  padding-bottom: 30px;
  border-bottom: 1px solid #e2e8f0;
  margin-bottom: 30px;
}
.guarantee-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.guarantee-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 50%;
  background: #f0f9ff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.guarantee-icon svg {
  width: 20px;
  height: 20px;
}
.guarantee-text h4 {
  font-size: 1.05rem;
  color: #0f172a;
  margin: 0 0 4px 0;
}
.guarantee-text p {
  color: #64748b;
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0;
}

.guarantee-footer {
  display: flex;
  align-items: center;
  gap: 16px;
}
.guarantee-footer-icon {
  width: 50px;
  height: 50px;
  min-width: 50px;
  border-radius: 50%;
  background: #fffbeb; /* Light yellow background for phone */
  display: flex;
  align-items: center;
  justify-content: center;
}
.guarantee-footer-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.g-subtitle {
  font-size: 0.85rem;
  color: #64748b;
  font-weight: 500;
}
.g-phone {
  font-size: 1.1rem;
  font-weight: 700;
  color: #0f172a;
}
.g-email {
  font-size: 0.9rem;
  color: #0f172a;
  font-weight: 500;
}

/* Adjust contact section background slightly as in mockup */
#contact {
  position: relative;
  overflow: hidden;
  background: url('sectionNotrem%C3%A9thode.webp') no-repeat center center;
  background-size: cover;
}
#contact::before {
  display: none;
}

.contact-grid > .reveal {
  height: 100%;
  display: flex;
  flex-direction: column;
}
.contact-form {
  flex-grow: 1;
}
.contact-guarantees-card {
  flex-grow: 1;
}

#contact::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 280px;
  height: 350px;
  background: url('image%20contact.webp') no-repeat top right;
  background-size: contain;
  pointer-events: none;
  z-index: 0;
}

@media(max-width: 1024px) {
  #contact::after {
    width: 200px;
    height: 250px;
  }
}

@media(max-width: 768px) {
  #contact::after {
    display: none; /* Masqué sur téléphone pour ne pas gêner */
  }
}

/* ===== NAVBAR - VERSION PRECEDENTE ONLY ===== */
.navbar {
  top:16px;
  width:min(1180px, calc(100% - 48px));
  padding:9px 0;
  border-radius:24px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.16), rgba(255,255,255,0.045)),
    rgba(4, 11, 23, 0.28);
  border:1px solid rgba(255,255,255,0.22);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.22),
    0 22px 60px rgba(0,0,0,0.18);
  backdrop-filter:blur(24px) saturate(1.35);
  -webkit-backdrop-filter:blur(24px) saturate(1.35);
}
.navbar::before {
  opacity:0.52;
  background:linear-gradient(105deg, transparent 0%, rgba(255,255,255,0.14) 34%, transparent 58%);
}
.navbar.scrolled {
  top:10px;
  padding:7px 0;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.13), rgba(255,255,255,0.035)),
    rgba(4,11,23,0.72);
  border-color:rgba(255,255,255,0.18);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.18),
    0 18px 52px rgba(0,0,0,0.32);
}
.navbar .container {
  padding:0 16px 0 20px;
}
.nav-logo img {
  height:50px;
  filter:drop-shadow(0 10px 24px rgba(0,0,0,0.2));
}
.nav-links {
  gap:16px;
}
.nav-links a {
  color:var(--white);
  font-size:0.88rem;
  font-weight:600;
}
.nav-links a::after {
  bottom:-4px;
  height:2px;
  background:var(--accent);
}
.nav-links > a:not(.nav-cta):hover,
.nav-links > a:not(.nav-cta).active {
  color:var(--accent-light) !important;
}
.nav-links > a:not(.nav-cta).active::after {
  width:100%;
}
.nav-cta {
  gap:9px;
  padding:10px 18px;
  color:var(--gold-light) !important;
  background:rgba(241,198,106,0.08);
  border:1px solid rgba(241,198,106,0.76);
  font-size:0.86rem;
  box-shadow:none;
}
.nav-cta:hover {
  background:var(--gold);
  border-color:var(--gold);
  color:var(--primary) !important;
}
.language-switcher,
.theme-toggle {
  background:rgba(255,255,255,0.08);
  border:1px solid rgba(255,255,255,0.14);
  color:var(--text-light);
  box-shadow:inset 0 1px 0 rgba(255,255,255,0.1);
}
.language-btn,
.theme-toggle {
  min-height:34px;
  font-size:0.78rem;
  font-weight:800;
}
.language-btn {
  padding:7px 9px;
}
.language-btn.active {
  color:var(--primary);
  background:linear-gradient(135deg, var(--gold-light), var(--gold));
  box-shadow:0 8px 22px rgba(241,198,106,0.22);
}
.language-btn:not(.active):hover,
.theme-toggle:hover {
  color:var(--white);
  background:rgba(255,255,255,0.12);
}
.flag {
  font-size:0.95rem;
}
.theme-toggle {
  padding:7px 11px;
}
.theme-icon-sun {
  color:currentColor;
}
body.light-mode .navbar,
body.light-mode .navbar.scrolled {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.72), rgba(255,255,255,0.38)),
    rgba(255,255,255,0.52);
  border-color:rgba(255,255,255,0.76);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.86),
    0 20px 58px rgba(21,54,92,0.16);
}
body.light-mode .navbar .nav-links > a:not(.nav-cta) {
  color:#061327 !important;
}
body.light-mode .navbar .nav-links > a:not(.nav-cta):hover,
body.light-mode .navbar .nav-links > a:not(.nav-cta).active {
  color:#008ec2 !important;
}
body.light-mode .nav-cta {
  color:#6d4c11 !important;
  background:rgba(241,198,106,0.18);
}
body.light-mode .language-switcher,
body.light-mode .theme-toggle {
  background:rgba(255,255,255,0.56);
  border-color:rgba(21,54,92,0.13);
  color:#102039;
}
body.light-mode .language-btn:not(.active):hover,
body.light-mode .theme-toggle:hover {
  color:#061327;
  background:rgba(0,200,255,0.12);
}
@media(max-width:768px) {
  .navbar {
    top:12px;
    width:calc(100% - 24px);
    padding:8px 0;
    border-radius:22px;
  }
  .navbar .container {
    padding:0 14px 0 16px;
  }
  .nav-logo img {
    height:46px;
  }
  .nav-links {
    display:none;
    position:absolute;
    top:calc(100% + 10px);
    left:0;
    right:0;
    width:100%;
    background:
      linear-gradient(180deg, rgba(255,255,255,0.14), rgba(255,255,255,0.045)),
      rgba(4,11,23,0.92);
    backdrop-filter:blur(24px) saturate(1.35);
    -webkit-backdrop-filter:blur(24px) saturate(1.35);
    border:1px solid rgba(255,255,255,0.18);
    border-radius:22px;
    box-shadow:0 24px 54px rgba(0,0,0,0.28);
    padding:24px 18px;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:18px;
  }
  .nav-links.active {
    display:flex;
  }
  .nav-links a {
    color:var(--white);
    font-size:1.2rem;
  }
  .nav-tools {
    flex-direction:column;
    margin-left:0;
    gap:12px;
  }
  .language-btn,
  .theme-toggle {
    min-height:40px;
  }
  .hamburger span {
    background:var(--white);
  }
  body.light-mode .nav-links {
    background:
      linear-gradient(180deg, rgba(255,255,255,0.86), rgba(255,255,255,0.62)),
      rgba(255,255,255,0.72);
    border-color:rgba(21,54,92,0.12);
  }
  body.light-mode .nav-links a {
    color:#061327;
  }
  body.light-mode .hamburger span {
    background:#061327;
  }
}

/* ===== NAV LIGHT + ANIMATION RESTORE ===== */
body.light-mode .navbar,
body.light-mode .navbar.scrolled {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.98), rgba(255,255,255,0.9)),
    rgba(255,255,255,0.96);
  border-color:rgba(6,19,39,0.08);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.98),
    0 20px 58px rgba(21,54,92,0.14);
}
body.light-mode .navbar::before {
  opacity:0.72;
  background:linear-gradient(105deg, transparent 0%, rgba(255,255,255,0.78) 38%, transparent 62%);
}
body.light-mode .language-switcher,
body.light-mode .theme-toggle {
  background:rgba(255,255,255,0.92);
  border-color:rgba(6,19,39,0.1);
  color:#102039;
  box-shadow:0 10px 24px rgba(6,19,39,0.06), inset 0 1px 0 rgba(255,255,255,0.98);
}
body.light-mode .language-btn.active {
  background:linear-gradient(135deg, var(--gold-light), var(--gold));
  color:var(--primary);
  box-shadow:0 8px 22px rgba(241,198,106,0.22);
}
body.light-mode .nav-cta {
  background:#ffffff;
  color:#6d4c11 !important;
}

@keyframes fiberPulse {
  from { background-position:0 -190px; }
  to { background-position:0 190px; }
}
@keyframes projectsMarqueeRight {
  from { transform:translateX(calc(-1 * var(--projects-shift, 0px))); }
  to { transform:translateX(0); }
}
.projects-grid.is-moving-right {
  animation:projectsMarqueeRight var(--projects-duration, 22s) linear infinite;
}
.projects-grid.is-moving-right:hover {
  animation-play-state:paused;
}
.timeline::after {
  animation:fiberPulse 5.6s linear infinite;
}

/* ===== CONTACT FORM TOP BORDER ===== */
.contact-form {
  border:1px solid rgba(217,226,234,0.92);
  border-top:4px solid var(--accent);
  box-shadow:var(--shadow-lg);
}

/* ===== FOOTER CONTACT ONE LINE ===== */
@media (min-width: 1025px) {
  .footer-grid {
    grid-template-columns:minmax(330px, 1.25fr) minmax(180px, 0.75fr) minmax(500px, 1.55fr);
    gap:56px;
  }
  .footer-contact-column {
    min-width:500px;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .footer-contact-column {
    width:100%;
    max-width:100%;
  }
}

@media (min-width: 769px) {
  .footer-contact-link {
    min-width:0;
  }
  .footer-contact-link span:last-child {
    min-width:0;
  }
  .footer-phone-line span:last-child,
  .footer-contact-link[href*="maps.google.com"] span:last-child {
    white-space:nowrap;
  }
}

/* ===== QUICK CONTACT PHONE ONE LINE ===== */
@media (min-width: 769px) {
  .g-phone {
    white-space:nowrap;
  }
}

/* ===== PHONE COUNTRY SELECT ===== */
.contact-form .form-row {
  grid-template-columns:minmax(0, 1fr) minmax(0, 1fr);
}
.contact-form .form-group {
  min-width:0;
}
.phone-wrapper {
  position:relative;
  width:100%;
  min-width:0;
  min-height:48px;
  gap:0;
  border:1px solid var(--border);
  border-radius:var(--radius-sm);
  background:var(--bg);
  overflow:visible;
  transition:var(--transition);
  box-sizing:border-box;
  z-index:5;
}
.phone-wrapper:focus-within {
  border-color:var(--accent);
  box-shadow:0 0 0 3px var(--accent-glow);
}
.phone-wrapper .input-icon {
  display:none;
}
.country-code-box {
  position:relative;
  flex:0 0 116px;
  width:116px;
  height:46px;
  border-right:1px solid var(--border);
  order:0;
}
.country-code-toggle {
  width:100%;
  height:46px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  padding:0 12px 0 16px;
  border:0;
  background:transparent;
  color:var(--text);
  font:inherit;
  font-weight:700;
  cursor:pointer;
}
.country-code-display {
  white-space:nowrap;
}
.country-code-caret {
  width:0;
  height:0;
  border-left:4px solid transparent;
  border-right:4px solid transparent;
  border-top:5px solid currentColor;
  opacity:0.8;
  flex:0 0 auto;
}
.country-code-menu {
  position:absolute;
  top:calc(100% + 8px);
  left:0;
  width:min(360px, calc(100vw - 36px));
  max-height:min(252px, calc(100vh - 170px));
  overflow-y:auto;
  overscroll-behavior:contain;
  padding:8px;
  border:1px solid rgba(15,23,42,0.12);
  border-radius:14px;
  background:#ffffff;
  box-shadow:0 24px 60px rgba(15,23,42,0.18);
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transform:translateY(-6px);
  transition:opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
  z-index:80;
}
.country-code-box.is-open .country-code-menu {
  opacity:1;
  visibility:visible;
  pointer-events:auto;
  transform:translateY(0);
}
.country-code-option {
  width:100%;
  min-height:28px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:4px 10px;
  border:0;
  border-radius:8px;
  background:transparent;
  color:#102039;
  font:inherit;
  font-size:0.82rem;
  line-height:1.2;
  text-align:left;
  cursor:pointer;
}
.country-code-option:hover,
.country-code-option.is-active {
  background:rgba(0,200,255,0.12);
  color:#064f73;
}
.country-option-name {
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.country-option-code {
  flex:0 0 auto;
  font-weight:700;
  white-space:nowrap;
}
.phone-wrapper input#phone {
  order:1;
  flex:1 1 auto;
  width:auto;
  min-width:0;
  height:46px;
  border:0 !important;
  box-shadow:none !important;
  background:transparent !important;
  padding-left:16px;
  padding-right:16px;
}
.phone-wrapper input#phone.phone-invalid {
  color:#991b1b;
}
.phone-wrapper:has(input#phone.phone-invalid) {
  border-color:#ef4444;
  box-shadow:0 0 0 3px rgba(239,68,68,0.12);
}
@media(max-width:520px) {
  .country-code-box {
    flex-basis: 88px;
    width: 88px;
  }
  .country-code-toggle {
    padding-left: 8px;
    padding-right: 6px;
    gap: 4px;
    font-size: 0.78rem;
  }
  .country-code-display {
    font-size: 0.78rem;
  }
  .country-code-menu {
    width: min(320px, calc(100vw - 28px));
    max-height: min(252px, calc(100vh - 150px));
  }
  .phone-wrapper input#phone {
    padding-left: 10px;
    padding-right: 10px;
    font-size: 0.9rem;
  }
}

@media(max-width:380px) {
  .country-code-box {
    flex-basis: 78px;
    width: 78px;
  }
  .country-code-toggle {
    padding-left: 6px;
    padding-right: 4px;
    font-size: 0.72rem;
  }
  .country-code-display {
    font-size: 0.72rem;
  }
}

/* ======================================================================
   DARK MODE — Vrai mode nuit sombre
   ====================================================================== */

/* --- Base --- */
body.dark-mode {
  --bg: #0a1628;
  --bg-alt: #0d1b30;
  --bg-dark: #040b17;
  --text: #d7e4ef;
  --text-muted: #8fa3b8;
  --text-light: #c5d6e5;
  --primary: #d7e4ef;
  --border: rgba(255,255,255,0.1);
  --shadow: 0 14px 35px rgba(0,0,0,0.35);
  --shadow-lg: 0 28px 70px rgba(0,0,0,0.5);
  background:
    radial-gradient(circle at top left, rgba(0,200,255,0.06), transparent 32rem),
    linear-gradient(180deg, #040b17 0%, #0a1628 46%, #040b17 100%) !important;
  color: #d7e4ef !important;
}

/* --- Sections --- */
body.dark-mode .section {
  background: #0a1628 !important;
}
body.dark-mode .section-alt {
  background:
    linear-gradient(180deg, rgba(10,22,40,0.9), rgba(10,22,40,0)),
    #0d1b30 !important;
}
body.dark-mode .section-header h2 {
  color: #ffffff !important;
}
body.dark-mode .section-header p {
  color: #8fa3b8 !important;
}

/* --- About, Services, QSSE, Equipment background decorations --- */
body.dark-mode #about,
body.dark-mode #services,
body.dark-mode #qsse,
body.dark-mode #equipment {
  background: #0a1628 !important;
}
body.dark-mode #about::before,
body.dark-mode #services::before,
body.dark-mode #qsse::before,
body.dark-mode #equipment::before {
  background-image: url('decor general-modeNuit.webp');
  opacity: 1;
  filter: none;
}
body.dark-mode #about::after,
body.dark-mode #services::after,
body.dark-mode #qsse::after,
body.dark-mode #equipment::after {
  background: radial-gradient(ellipse at center,
    rgba(0,200,255,0.03) 20%,
    rgba(0,0,0,0) 100%);
}

/* --- Method & Contact background decorations --- */
body.dark-mode #method {
  background: #0a1628 !important;
}
body.dark-mode #method::before {
  background-image: url('sectionNotreméthode_ModeNuit.webp');
  opacity: 1;
  filter: none;
}
body.dark-mode #method::after {
  background: radial-gradient(ellipse at center,
    rgba(0,200,255,0.03) 20%,
    rgba(0,0,0,0) 100%);
}

body.dark-mode #contact {
  background: url('sectionNotreméthode_ModeNuit.webp') no-repeat center center !important;
  background-size: cover !important;
}
body.dark-mode #about .about-text {
  color: #8fa3b8;
}
body.dark-mode #about h2,
body.dark-mode #about h2 span,
body.dark-mode .about-copy h2,
body.dark-mode .about-copy h2 span {
  color: #ffffff !important;
}
body.dark-mode .about-image {
  border-color: rgba(0,200,255,0.2);
}

/* --- Expertise Cards --- */
body.dark-mode .expertise-card {
  background: linear-gradient(160deg, #0d1b30 0%, #111f38 100%);
  border-color: rgba(0,200,255,0.15);
}
body.dark-mode .expertise-card:hover {
  border-color: rgba(0,200,255,0.35);
  box-shadow: 0 12px 40px rgba(0,200,255,0.1);
}
body.dark-mode .expertise-card h3 {
  color: #ffffff;
}
body.dark-mode .expertise-card p {
  color: #8fa3b8;
}
body.dark-mode .expertise-card:nth-child(1),
body.dark-mode .expertise-card:nth-child(2) {
  background: linear-gradient(160deg, #0d1b30 0%, #0f2240 100%);
}
body.dark-mode .expertise-card:nth-child(3),
body.dark-mode .expertise-card:nth-child(4) {
  background: linear-gradient(160deg, #0d1b30 0%, #0f2240 100%);
}

/* --- Service Cards --- */
body.dark-mode .service-card {
  background: linear-gradient(180deg, #0d1b30, #111f38);
  border-color: rgba(0,200,255,0.15);
}
body.dark-mode .service-card:hover {
  border-color: rgba(0,200,255,0.35);
}
body.dark-mode .service-card h3 {
  color: #ffffff;
}
body.dark-mode .service-card p {
  color: #8fa3b8;
}

/* --- QSSE Section --- */
body.dark-mode #qsse {
  background: #0a1628;
}
body.dark-mode .qsse-card {
  background: linear-gradient(180deg, #0d1b30, #111f38);
  border-color: rgba(0,200,255,0.12);
}
body.dark-mode .qsse-card:hover {
  border-color: rgba(0,200,255,0.3);
}
body.dark-mode .qsse-card h3 {
  color: #ffffff;
}
body.dark-mode .qsse-card p {
  color: #8fa3b8;
}

/* --- Method Section --- */
body.dark-mode #method {
  background: #0a1628;
}
body.dark-mode .method-step,
body.dark-mode .step-card {
  background: linear-gradient(180deg, #0d1b30, #111f38);
  border-color: rgba(0,200,255,0.12);
}
body.dark-mode .method-step h3,
body.dark-mode .step-card h3 {
  color: #ffffff;
}
body.dark-mode .method-step p,
body.dark-mode .step-card p {
  color: #8fa3b8;
}

/* --- Equipment Section --- */
body.dark-mode #equipment {
  background: #0d1b30;
}
body.dark-mode .equipment-label {
  color: #ffffff;
  background: rgba(4,11,23,0.85);
}

/* --- Contact Section --- */
body.dark-mode #contact {
  background: #0a1628;
}
body.dark-mode .contact-form {
  background: linear-gradient(180deg, #0d1b30, #111f38);
  border-color: rgba(0,200,255,0.12);
}
body.dark-mode .form-group label {
  color: #c5d6e5;
}
body.dark-mode .form-group input,
body.dark-mode .form-group textarea,
body.dark-mode .form-group select {
  background: #0a1628;
  border-color: rgba(0,200,255,0.15);
  color: #d7e4ef;
}
body.dark-mode .form-group input::placeholder,
body.dark-mode .form-group textarea::placeholder {
  color: #536174;
}
body.dark-mode .form-group input:focus,
body.dark-mode .form-group textarea:focus,
body.dark-mode .form-group select:focus {
  border-color: var(--accent);
  background: #0d1b30;
}

/* --- Guarantees --- */
body.dark-mode .guarantee-card,
body.dark-mode .g-card {
  background: linear-gradient(180deg, #0d1b30, #111f38);
  border-color: rgba(0,200,255,0.12);
}
body.dark-mode .guarantee-card h3,
body.dark-mode .guarantee-card h4,
body.dark-mode .g-card h3,
body.dark-mode .g-card h4 {
  color: #ffffff;
}
body.dark-mode .guarantee-card p,
body.dark-mode .g-card p {
  color: #8fa3b8;
}
body.dark-mode .g-subtitle {
  color: #8fa3b8;
}

/* --- Projects Section --- */
body.dark-mode #projects {
  background: #0a1628;
}

/* --- Country Code Dropdown --- */
body.dark-mode .country-code-toggle {
  background: #0a1628;
  border-color: rgba(0,200,255,0.15);
  color: #d7e4ef;
}
body.dark-mode .country-code-menu {
  background: #0d1b30;
  border-color: rgba(0,200,255,0.15);
}
body.dark-mode .country-code-option {
  color: #d7e4ef;
}
body.dark-mode .country-code-option:hover,
body.dark-mode .country-code-option.is-active {
  background: rgba(0,200,255,0.1);
  color: #ffffff;
}

/* --- Footer (keep dark as-is) --- */
body.dark-mode .footer {
  background: linear-gradient(135deg, #040b17 0%, #061327 50%, #040b17 100%);
  border-top-color: rgba(0,200,255,0.08);
}

/* --- Navbar in dark mode --- */
body.dark-mode .navbar {
  background:
    linear-gradient(180deg, rgba(4,11,23,0.5), rgba(4,11,23,0.4)),
    rgba(4, 11, 23, 0.65);
  border: 1px solid rgba(0, 200, 255, 0.4);
  box-shadow: 0 4px 20px rgba(0, 200, 255, 0.1), inset 0 0 10px rgba(0, 200, 255, 0.05);
}
body.dark-mode .navbar.scrolled {
  background:
    linear-gradient(180deg, rgba(4,11,23,0.85), rgba(4,11,23,0.75)),
    rgba(4, 11, 23, 0.9);
  border: 1px solid rgba(0, 200, 255, 0.5);
  box-shadow: 0 4px 24px rgba(0, 200, 255, 0.15), inset 0 0 12px rgba(0, 200, 255, 0.08);
}

/* --- Misc --- */
body.dark-mode .section-badge {
  color: var(--accent);
}
body.dark-mode .btn-outline {
  border-color: rgba(255,255,255,0.25);
  color: #ffffff;
}
body.dark-mode .btn-outline:hover {
  background: rgba(255,255,255,0.08);
  border-color: var(--accent);
}
body.dark-mode hr {
  border-color: rgba(255,255,255,0.08);
}

/* --- Hero Section dark mode --- */
body.dark-mode .hero-overlay {
  background:
    linear-gradient(90deg, rgba(4,11,23,0.99) 0%, rgba(4,13,30,0.95) 30%, rgba(4,13,30,0.6) 60%, rgba(4,13,30,0.25) 100%),
    linear-gradient(180deg, rgba(4,11,23,0.5) 0%, rgba(4,11,23,0.1) 48%, rgba(4,11,23,0.7) 100%);
}
body.dark-mode .hero-proof-item {
  background: linear-gradient(180deg, rgba(10,22,40,0.92), rgba(13,27,48,0.95));
  border-color: rgba(0,200,255,0.25);
  color: #ffffff;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.06),
    0 18px 44px rgba(0,0,0,0.35);
}
body.dark-mode .hero-proof-item strong {
  color: #ffffff;
}
body.dark-mode .hero-proof-item span {
  color: #8fa3b8;
}
body.dark-mode .hero-subtitle {
  color: #c5d6e5;
}

/* --- Hero title & buttons dark mode --- */
body.dark-mode .hero h1 {
  color: #ffffff;
  text-shadow: 0 4px 24px rgba(0,0,0,0.7), 0 1px 3px rgba(0,0,0,0.5);
}
body.dark-mode .hero .btn-outline {
  color: var(--gold-light);
  border-color: rgba(241,198,106,0.78);
  background: rgba(241,198,106,0.08);
}
body.dark-mode .hero .btn-outline:hover {
  background: var(--gold);
  color: #061327;
  border-color: var(--gold);
}

/* --- Logo white background in dark mode --- */
body.dark-mode .nav-logo img {
  background: rgba(255,255,255,0.92);
  border-radius: 10px;
  padding: 3px;
}

/* --- Language buttons dark mode --- */
body.dark-mode .language-btn {
  color: rgba(255,255,255,0.85);
}
body.dark-mode .language-btn.active {
  color: #061327;
}

/* ===== CHATBOT ===== */
.chatbot-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
}

.chatbot-toggle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  border: none;
  box-shadow: 0 4px 14px rgba(0,200,255,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.3s ease, background 0.3s;
}

.chatbot-toggle:hover {
  transform: scale(1.05);
  background: var(--accent-light);
}

.chatbot-window {
  position: absolute;
  bottom: 80px;
  right: 0;
  width: 350px;
  height: 450px;
  max-height: calc(100vh - 120px);
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.15);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  border: 1px solid rgba(0,0,0,0.05);
}

.chatbot-window.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.chatbot-header {
  background: var(--primary);
  color: #fff;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chatbot-header-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.chatbot-avatar {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chatbot-header h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
  line-height: 1.2;
}

.chatbot-status {
  font-size: 0.75rem;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 4px;
}
.chatbot-status::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  background: #28c76f;
  border-radius: 50%;
}

.chatbot-close {
  background: transparent;
  border: none;
  color: rgba(255,255,255,0.7);
  cursor: pointer;
  padding: 4px;
  display: flex;
}
.chatbot-close:hover {
  color: #fff;
}

.chatbot-messages {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #f6f8fb;
}

.chatbot-message {
  display: flex;
  max-width: 85%;
}

.chatbot-message-bot {
  align-self: flex-start;
}

.chatbot-message-user {
  align-self: flex-end;
}

.chatbot-message-content {
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 0.9rem;
  line-height: 1.5;
}

.chatbot-message-bot .chatbot-message-content {
  background: #fff;
  color: var(--text);
  border: 1px solid rgba(0,0,0,0.05);
  border-bottom-left-radius: 4px;
}

.chatbot-message-user .chatbot-message-content {
  background: var(--accent);
  color: #fff;
  border-bottom-right-radius: 4px;
}

.chatbot-input-container {
  padding: 12px;
  background: #fff;
  border-top: 1px solid rgba(0,0,0,0.05);
  display: flex;
  gap: 8px;
}

.chatbot-input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 20px;
  font-size: 0.9rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
}

.chatbot-input:focus {
  border-color: var(--accent);
}

.chatbot-send {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
}
.chatbot-send:hover {
  background: var(--primary-light);
}

.dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--text-muted);
  border-radius: 50%;
  margin: 0 2px;
  animation: typing 1.4s infinite ease-in-out both;
}
.dot:nth-child(1) { animation-delay: -0.32s; }
.dot:nth-child(2) { animation-delay: -0.16s; }

@keyframes typing {
  0%, 80%, 100% { transform: scale(0); }
  40% { transform: scale(1); }
}

/* Chatbot Dark Mode */
body.dark-mode .chatbot-window {
  background: #0a1628;
  border-color: rgba(0,200,255,0.15);
  box-shadow: 0 10px 40px rgba(0,0,0,0.4);
}
body.dark-mode .chatbot-header {
  background: #040d1a;
  border-bottom: 1px solid rgba(0,200,255,0.1);
}
body.dark-mode .chatbot-messages {
  background: #06101d;
}
body.dark-mode .chatbot-message-bot .chatbot-message-content {
  background: #0d1b30;
  color: #d7e4ef;
  border-color: rgba(255,255,255,0.05);
}
body.dark-mode .chatbot-input-container {
  background: #0a1628;
  border-top-color: rgba(255,255,255,0.05);
}
body.dark-mode .chatbot-input {
  background: #06101d;
  color: #fff;
  border-color: rgba(255,255,255,0.1);
}
body.dark-mode .chatbot-input:focus {
  border-color: var(--accent);
}
body.dark-mode .chatbot-send {
  background: var(--accent);
}

/* ── Chatbot overlay (fond flou) — mobile uniquement ── */
.chatbot-overlay {
  display: none;
}

@media(max-width:600px) {
  /* Overlay fond flouté */
  .chatbot-overlay {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 9998;
    background: rgba(6, 19, 39, 0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }
  .chatbot-overlay.active {
    opacity: 1;
    pointer-events: auto;
  }

  /* Fenêtre centrée sur l'écran */
  .chatbot-window {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    bottom: auto !important;
    right: auto !important;
    transform: translate(-50%, -40%) scale(0.95) !important;
    width: calc(100vw - 28px) !important;
    max-width: 400px !important;
    height: auto !important;
    max-height: 75vh !important;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.16,1,0.3,1) !important;
  }
  .chatbot-window.active {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, -50%) scale(1) !important;
  }
}


/* ===== EXTRAORDINARY SCROLL ANIMATIONS ===== */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  background: linear-gradient(90deg, #00c8ff, #f1c66a);
  width: 0%;
  z-index: 9999;
  box-shadow: 0 0 10px rgba(0,200,255,0.5);
}

.reveal {
  opacity: 0;
  transform: translateY(60px) rotateX(5deg);
  transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1), opacity 1s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}
.reveal-left {
  opacity: 0;
  transform: translateX(-60px);
  transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1), opacity 1s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}
.reveal-right {
  opacity: 0;
  transform: translateX(60px);
  transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1), opacity 1s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}
.reveal-scale {
  opacity: 0;
  transform: scale(0.85);
  transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1), opacity 1s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}
.reveal-blur {
  opacity: 0;
  filter: blur(15px);
  transform: translateY(20px);
  transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1), opacity 1s cubic-bezier(0.16, 1, 0.3, 1), filter 1s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity, filter;
}

.visible,
.reveal-left.visible,
.reveal-right.visible,
.reveal-scale.visible,
.reveal-blur.visible {
  opacity: 1;
  transform: none;
  filter: none;
  will-change: auto;
}

[data-parallax] {
  will-change: transform;
}

/* ===== MOBILE LANDSCAPE & SMALL HEIGHT ADJUSTMENTS ===== */
@media (max-height: 600px) and (orientation: landscape) {
  .navbar {
    top: 5px;
    padding: 5px 0;
  }
  .nav-logo img {
    height: 36px;
  }
  .hero {
    min-height: 100vh;
    padding-top: 60px;
    padding-bottom: 30px;
  }
  .hero-content {
    padding-top: 80px;
  }
  .hero h1 {
    font-size: clamp(2rem, 5vw, 3rem);
  }
  .chatbot-window {
    height: 80vh !important;
    max-height: 350px !important;
  }
  .chatbot-body {
    height: calc(100% - 110px) !important;
  }
}

/* ===== TWEAKS MODE NUIT ===== */
body.dark-mode .chatbot-window {
  border: 1px solid rgba(255, 255, 255, 0.8) !important;
}

body.dark-mode .contact-form input,
body.dark-mode .contact-form textarea,
body.dark-mode .contact-form select {
  border: 1px solid rgba(255, 255, 255, 0.4) !important;
}

body.dark-mode .contact-form {
  border: 1px solid #ffffff !important;
  border-top: 4px solid #00c8ff !important;
}

/* ===== MOBILE TEXT & CARD SCALING ===== */
@media(max-width: 768px) {
  /* Text */
  html, body { font-size: 14px; }
  h2 { font-size: clamp(1.5rem, 5vw, 2rem) !important; }
  h3 { font-size: 1.15rem !important; }
  p, .about-text, .service-desc, .project-desc, .qsse-card p { font-size: 0.95rem !important; }
  
  /* Cards padding */
  .service-card { padding: 20px 16px !important; }
  .expertise-card { align-items: stretch !important; }
  .project-content { padding: 16px !important; }
  .qsse-card { padding: 20px 16px !important; }
  .contact-form { padding: 24px 16px !important; }
  
  /* Timeline text */
  .timeline-content { padding: 20px 50px 20px 16px !important; }
  .timeline-text h3 { font-size: 1.1rem !important; margin-bottom: 6px !important; }
  .timeline-text p { font-size: 0.9rem !important; }
}

/* =====================================================================
   RESPONSIVE UNIVERSEL — SGT Construction
   Breakpoints : 1280 · 900 · 768 · 600 · 480 · 380
   Orientation : paysage téléphone & tablette
   ===================================================================== */

/* ── Sécurité overflow global ──────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html, body { max-width: 100%; overflow-x: hidden; }
img, video, canvas { max-width: 100%; height: auto; }

/* ── 1280px — grands portables / petits desktops ───────────────────── */
@media (max-width: 1280px) {
  .services-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ── 900px — tablettes intermédiaires ─────────────────────────────── */
@media (max-width: 900px) {
  .services-grid    { grid-template-columns: repeat(2, 1fr); }
  .qsse-grid        { grid-template-columns: repeat(2, 1fr); }
  .equipment-slider { grid-template-columns: repeat(2, 1fr); }
  #about { margin-top: -70px; padding-top: 160px; }
  .about-grid { gap: 40px; }
  .about-image img { height: 300px; }
  .section-header { margin-bottom: 44px; }
}

/* ── 768px — corrections supplémentaires ──────────────────────────── */
@media (max-width: 768px) {
  /* Boutons hero : autoriser le retour à la ligne */
  .hero-buttons { flex-wrap: wrap; gap: 12px; }

  /* Supprimer le grand décalage négatif About sur mobile */
  #about { margin-top: 0 !important; padding-top: 68px !important; }

  /* btn-gold pleine largeur */
  .btn-gold { min-width: 0; width: 100%; justify-content: center; }

  /* Menu mobile : scroll si contenenu trop grand */
  .nav-links.active { max-height: 80vh; overflow-y: auto; }

  /* Footer domains : retour à la ligne */
  .footer-domains { flex-wrap: wrap; gap: 12px; }

  /* Supprimer le saut de ligne forcé dans la description */
  .section-header p br { display: none; }

  /* Padding sections */
  .section { padding: 52px 0; }

  /* About image */
  .about-image img { height: 260px; }

  /* Section header */
  .section-header { margin-bottom: 36px; }

  /* Garanties contact */
  .contact-guarantees-card { padding: 28px 20px; }
}

/* ── 600px — grands téléphones / petites tablettes ─────────────────── */
@media (max-width: 600px) {
  /* QSSE reste 2 colonnes */
  .qsse-grid { grid-template-columns: repeat(2, 1fr) !important; }

  /* Hero proof : 2 colonnes */
  .hero-proof-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    padding: 0 16px;
  }

  /* Boutons hero en colonne */
  .hero-buttons { flex-direction: column; align-items: stretch; }
  .btn { width: 100%; justify-content: center; text-align: center; min-width: 0; }
  .btn-gold { min-width: 0; }

  /* Expertise card : icon réduit, centrage vertical conservé */
  .expertise-icon {
    width: 80px !important;
    align-self: stretch !important;
    border-radius: 16px 0 0 16px !important;
  }
  .expertise-icon img { width: 62px !important; height: 62px !important; }
  .expertise-content { padding: 18px 14px 18px 16px !important; }

  /* Padding sections */
  .section { padding: 44px 0; }
  .section-header { margin-bottom: 30px; }
  .container { padding: 0 18px; }
}

/* ── 480px — téléphones standards ─────────────────────────────────── */
@media (max-width: 480px) {
  /* QSSE 1 colonne */
  .qsse-grid { grid-template-columns: 1fr !important; }

  /* Equipment 1 colonne */
  .equipment-slider { grid-template-columns: 1fr !important; }

  /* Hero proof 1 colonne */
  .hero-proof-grid { grid-template-columns: 1fr !important; }

  /* Chatbot repositionné */
  .chatbot-window {
    width: calc(100vw - 20px) !important;
    right: -4px !important;
    bottom: 74px;
  }

  /* Footer domains en colonne */
  .footer-domains {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 0;
    width: 100%;
  }
  .footer-domain {
    flex: 1 1 0;
    flex-direction: column;
    align-items: center;
    gap: 6px;
  }
  .footer-domain img { width: 38px !important; height: 38px !important; }
  .footer-domain span { font-size: 0.58rem; text-align: center; margin-left: 0 !important; }
  .domain-divider { display: block; width: 1px; height: 40px; flex-shrink: 0; }

  /* Footer brand texte */
  .footer-brand-text { font-size: 1.6rem; }
  .brand-const { font-size: 1.1rem; }

  /* Garanties */
  .contact-guarantees-card { padding: 22px 14px; }
  .guarantee-main { gap: 12px; margin-bottom: 20px; }
  .guarantee-main-icon { width: 46px; height: 46px; min-width: 46px; }
  .guarantee-list { gap: 18px; }

  /* Section */
  .section { padding: 40px 0; }
  .section-header { margin-bottom: 26px; }
}

/* ── 380px — très petits téléphones (iPhone SE, Galaxy S) ─────────── */
@media (max-width: 380px) {
  .container { padding: 0 14px; }

  h2 { font-size: clamp(1.3rem, 8vw, 1.65rem) !important; }
  h3 { font-size: 1rem !important; }

  .hero h1 { font-size: clamp(1.85rem, 11vw, 2.5rem) !important; }

  .btn { padding: 12px 16px; font-size: 0.9rem; }
  .btn-gold { padding: 12px 16px; font-size: 0.9rem; min-width: 0; }

  .nav-logo img { height: 38px; }

  .expertise-icon { width: 68px !important; align-self: stretch !important; border-radius: 14px 0 0 14px !important; }
  .expertise-icon img { width: 52px !important; height: 52px !important; }
  .expertise-content { padding: 16px 12px 16px 14px !important; }

  .qsse-card { padding: 18px 10px 16px; }
  .qsse-icon { width: 54px; height: 54px; }

  .footer-logo { width: 64px; height: 64px; }
  .footer-brand-text { font-size: 1.35rem; }

  .section { padding: 34px 0; }
  .section-header { margin-bottom: 22px; }

  .timeline-content { padding: 14px 12px !important; }
  .timeline-card-icon { width: 36px; height: 36px; flex-shrink: 0; }
  .timeline-card-icon svg { width: 18px; height: 18px; }

  .form-group input,
  .form-group textarea,
  .form-group select { font-size: 0.9rem; }
}

/* ── Paysage téléphone (hauteur ≤ 500px) ──────────────────────────── */
@media (max-height: 500px) and (orientation: landscape) {
  .navbar {
    top: 4px !important;
    padding: 4px 0 !important;
    border-radius: 16px !important;
  }
  .nav-logo img { height: 34px !important; }
  .nav-links.active {
    max-height: 75vh;
    overflow-y: auto;
    gap: 10px;
    padding: 14px 16px;
  }
  .nav-links a { font-size: 1rem !important; }

  .hero {
    min-height: 100svh !important;
    height: auto !important;
    padding-top: 50px !important;
    padding-bottom: 10px !important;
  }
  .hero-content { padding: 56px 20px 16px !important; }
  .hero h1 {
    font-size: clamp(1.5rem, 4vw, 2rem) !important;
    margin-bottom: 6px;
    line-height: 1.1;
  }
  .hero h1::after { margin-top: 10px; height: 3px; }
  .hero-lead { font-size: clamp(0.92rem, 2.2vw, 1.1rem) !important; margin-bottom: 6px; }
  .hero-tagline { font-size: 0.85rem !important; margin-bottom: 8px; }
  .hero-subtitle { display: none !important; }

  .hero-buttons { flex-wrap: wrap; gap: 8px; flex-direction: row; }
  .btn { min-height: 40px !important; padding: 8px 16px !important; font-size: 0.88rem !important; width: auto; }
  .btn-gold { min-height: 40px !important; padding: 8px 16px !important; font-size: 0.88rem !important; width: auto; min-width: 0; }

  .hero-proof { display: none; }

  .section { padding: 32px 0; }
  .section-header { margin-bottom: 22px; }

  .expertise-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid  { grid-template-columns: repeat(2, 1fr); }
  .qsse-grid      { grid-template-columns: repeat(3, 1fr); }
  .equipment-slider { grid-template-columns: repeat(2, 1fr); }
  .contact-grid   { grid-template-columns: 1.4fr 1fr; }

  .chatbot-window {
    max-height: 80vh !important;
    height: 300px !important;
  }
}

/* ── Paysage tablette (768px–1024px landscape) ────────────────────── */
@media (min-width: 768px) and (max-width: 1024px) and (orientation: landscape) {
  .hero {
    height: auto !important;
    min-height: clamp(520px, 58vh, 680px) !important;
  }
  .services-grid  { grid-template-columns: repeat(4, 1fr); }
  .qsse-grid      { grid-template-columns: repeat(3, 1fr); }
  .equipment-slider { grid-template-columns: repeat(3, 1fr); }
  .contact-grid   { grid-template-columns: 1.5fr 1fr; }
}

/* ── Grands écrans (≥ 1440px) ─────────────────────────────────────── */
@media (min-width: 1440px) {
  .container { max-width: 1380px; }
}

/* ── Overlay blur derrière le menu mobile ────────────────────────── */
.nav-overlay {
  display: none;
}
@media (max-width: 768px) {
  .nav-overlay {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 999;
    background: rgba(4, 11, 23, 0.5);
    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }
  .nav-overlay.active {
    opacity: 1;
    pointer-events: auto;
  }
}

/* ── Cibles tactiles — accessibilité ────────────────────────────────── */
@media (pointer: coarse) {
  .nav-links a { min-height: 44px; display: flex; align-items: center; }
  .hamburger { padding: 10px; }
  .language-btn, .theme-toggle { min-height: 44px !important; }
  .btn, .btn-gold, .btn-submit { min-height: 48px; }
  .footer-links a { min-height: 44px; }
  .chatbot-toggle { width: 54px; height: 54px; }
  .country-code-option { min-height: 36px; }
}
