/* ==========================================================================
   Electronic Power Group — Feuille de styles principale
   Palette : bleu profond (identité), jaune orangé (énergie)
   ========================================================================== */

:root {
  --navy-900: #061a33;
  --navy-800: #0a2540;
  --navy-700: #123a63;
  --navy-600: #1b5288;
  --blue-500: #1f7fd1;
  --blue-400: #3f9ce8;
  --blue-100: #e6f2fc;

  --gold-600: #e2951a;
  --gold-500: #f5a623;
  --gold-400: #ffc148;

  --ink: #14243a;
  --body: #4a5a6e;
  --muted: #7b8a9c;
  --line: #e2e9f1;
  --bg: #ffffff;
  --bg-alt: #f5f8fc;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;

  --shadow-sm: 0 2px 8px rgba(10, 37, 64, .06);
  --shadow: 0 12px 30px rgba(10, 37, 64, .09);
  --shadow-lg: 0 24px 60px rgba(10, 37, 64, .16);

  --container: 1180px;
  --header-h: 76px;
  --ease: cubic-bezier(.4, 0, .2, 1);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--body);
  background: var(--bg);
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  margin: 0 0 .6em;
  color: var(--navy-800);
  line-height: 1.22;
  font-weight: 800;
  letter-spacing: -.015em;
}

h1 { font-size: clamp(2rem, 4.4vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.35rem); }
h3 { font-size: 1.15rem; font-weight: 700; }

p { margin: 0 0 1rem; }

a { color: var(--blue-500); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--navy-700); }

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

ul { margin: 0; padding: 0; list-style: none; }

address { font-style: normal; }

button { font-family: inherit; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  background: var(--navy-800);
  color: #fff;
  padding: 12px 20px;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; color: #fff; }

:focus-visible {
  outline: 3px solid var(--gold-500);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.site-header.is-scrolled {
  box-shadow: var(--shadow-sm);
  border-bottom-color: var(--line);
}

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo {
  width: 46px; height: 46px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: var(--shadow-sm);
  flex: 0 0 auto;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong {
  font-size: .82rem;
  letter-spacing: .04em;
  color: var(--navy-800);
  font-weight: 800;
}
.brand-text small { font-size: .7rem; color: var(--muted); letter-spacing: .05em; }

.main-nav ul { display: flex; align-items: center; gap: 4px; }
.main-nav a {
  display: block;
  padding: 9px 13px;
  font-size: .9rem;
  font-weight: 600;
  color: var(--navy-700);
  border-radius: 8px;
  transition: background .2s var(--ease), color .2s var(--ease);
}
.main-nav a:hover { background: var(--blue-100); color: var(--navy-800); }

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

.lang-switch {
  display: flex;
  padding: 3px;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 999px;
}
.lang-btn {
  border: 0;
  background: transparent;
  color: var(--navy-700);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .06em;
  padding: 7px 13px;
  border-radius: 999px;
  cursor: pointer;
  transition: background .2s var(--ease), color .2s var(--ease), box-shadow .2s var(--ease);
}
.lang-btn.is-active {
  background: var(--navy-800);
  color: #fff;
  box-shadow: 0 3px 10px rgba(10, 37, 64, .25);
}

.menu-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--navy-800);
  border-radius: 10px;
  font-size: 1.05rem;
  cursor: pointer;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 14px 26px;
  border: 0;
  border-radius: 999px;
  font-size: .95rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease), color .2s var(--ease);
}
.btn-primary {
  background: linear-gradient(135deg, var(--gold-500), var(--gold-600));
  color: var(--navy-900);
  box-shadow: 0 10px 24px rgba(226, 149, 26, .32);
}
.btn-primary:hover {
  color: var(--navy-900);
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(226, 149, 26, .4);
}
.btn-ghost {
  background: rgba(255, 255, 255, .1);
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, .42);
}
.btn-ghost:hover { background: rgba(255, 255, 255, .2); color: #fff; transform: translateY(-2px); }
.btn-block { width: 100%; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: calc(var(--header-h) + 68px) 0 84px;
  background: radial-gradient(1100px 620px at 78% 12%, #1b4f86 0%, transparent 62%),
              linear-gradient(150deg, var(--navy-900) 0%, var(--navy-800) 45%, var(--navy-700) 100%);
  color: #dce8f4;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(70% 70% at 50% 40%, #000 20%, transparent 100%);
  -webkit-mask-image: radial-gradient(70% 70% at 50% 40%, #000 20%, transparent 100%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 56px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 20px;
  padding: 8px 16px;
  background: rgba(245, 166, 35, .13);
  border: 1px solid rgba(245, 166, 35, .35);
  border-radius: 999px;
  color: var(--gold-400);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .01em;
}
.hero h1 { color: #fff; margin-bottom: .55em; }
.hero-subtitle {
  font-size: 1.06rem;
  color: #b9cde0;
  max-width: 62ch;
  margin-bottom: 2rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-card {
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: var(--radius-lg);
  padding: 30px 28px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: var(--shadow-lg);
  text-align: center;
}
.hero-logo {
  width: min(230px, 68%);
  margin: 0 auto 22px;
  border-radius: var(--radius);
  background: #fff;
  padding: 10px;
}
.hero-facts { display: grid; gap: 12px; text-align: left; }
.hero-facts li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: .92rem;
  font-weight: 500;
  color: #dbe7f3;
}
.hero-facts i {
  width: 34px; height: 34px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: rgba(245, 166, 35, .16);
  color: var(--gold-400);
  font-size: .9rem;
}

/* ---------- Strip (chiffres) ---------- */
.strip {
  background: var(--navy-900);
  color: #fff;
  border-top: 1px solid rgba(255, 255, 255, .08);
}
.strip-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  padding-top: 30px;
  padding-bottom: 30px;
}
.strip-item {
  text-align: center;
  padding: 6px 12px;
  border-right: 1px solid rgba(255, 255, 255, .1);
}
.strip-item:last-child { border-right: 0; }
.strip-item strong {
  display: block;
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--gold-400);
  letter-spacing: -.02em;
  line-height: 1.2;
}
.strip-item span { font-size: .84rem; color: #9fb6cc; }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section-alt { background: var(--bg-alt); }

.eyebrow {
  margin: 0 0 10px;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--blue-500);
}
.eyebrow.light { color: var(--gold-400); }

.section-head { max-width: 760px; margin: 0 auto 54px; text-align: center; }
.section-sub { font-size: 1.02rem; color: var(--body); margin: 0; }

.lead { font-size: 1.06rem; color: var(--navy-700); font-weight: 500; }

/* ---------- About ---------- */
.split {
  display: grid;
  grid-template-columns: 1.35fr .9fr;
  gap: 56px;
  align-items: start;
}
.split-text h2 { margin-bottom: .5em; }

.check-list { display: grid; gap: 12px; margin-top: 24px; }
.check-list li { display: flex; align-items: flex-start; gap: 11px; font-weight: 500; color: var(--navy-700); }
.check-list i { color: var(--gold-500); margin-top: 5px; }

.info-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px 28px;
  box-shadow: var(--shadow);
  position: sticky;
  top: calc(var(--header-h) + 24px);
}
.info-card h3 { margin-bottom: 1.1em; font-size: 1.05rem; }
.info-list { display: grid; gap: 18px; }
.info-list div { border-bottom: 1px dashed var(--line); padding-bottom: 16px; }
.info-list div:last-child { border-bottom: 0; padding-bottom: 0; }
.info-list dt {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}
.info-list dt i { color: var(--blue-500); }
.info-list dd { margin: 0; font-weight: 600; color: var(--navy-800); word-break: break-word; }

/* ---------- Services cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: #cfe3f6;
}
.card-icon {
  display: grid;
  place-items: center;
  width: 54px; height: 54px;
  border-radius: 15px;
  background: linear-gradient(135deg, var(--blue-100), #d8ebfb);
  color: var(--navy-600);
  font-size: 1.35rem;
  margin-bottom: 20px;
}
.card:hover .card-icon {
  background: linear-gradient(135deg, var(--gold-400), var(--gold-600));
  color: var(--navy-900);
}
.card h3 { margin-bottom: .5em; }
.card p { margin: 0; font-size: .94rem; }

/* ---------- Pillars ---------- */
.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.pillar {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold-500);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.pillar:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.pillar-icon {
  display: grid;
  place-items: center;
  width: 50px; height: 50px;
  border-radius: 14px;
  background: var(--navy-800);
  color: var(--gold-400);
  font-size: 1.15rem;
  margin-bottom: 18px;
}
.pillar p { margin: 0; font-size: .94rem; }

/* ---------- Coverage ---------- */
.coverage {
  background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-700) 100%);
  color: #cadcee;
}
.coverage-inner {
  display: grid;
  grid-template-columns: 1.4fr .6fr;
  gap: 48px;
  align-items: center;
}
.coverage h2 { color: #fff; }
.coverage-tags { display: grid; gap: 14px; margin-top: 26px; }
.coverage-tags li {
  display: flex;
  align-items: center;
  gap: 13px;
  font-weight: 500;
  color: #d7e5f2;
}
.coverage-tags i {
  width: 38px; height: 38px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: rgba(245, 166, 35, .16);
  color: var(--gold-400);
}
.coverage-visual {
  display: grid;
  place-items: center;
  font-size: 8rem;
  color: rgba(245, 166, 35, .3);
}

/* ---------- Team ---------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 22px;
}
.team-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.team-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.team-num {
  display: block;
  font-size: 2.7rem;
  font-weight: 800;
  line-height: 1;
  color: var(--navy-800);
  letter-spacing: -.03em;
  margin-bottom: 12px;
}
.team-card h3 { margin-bottom: .35em; }
.team-card p { margin: 0; font-size: .9rem; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 34px;
  align-items: start;
}
.contact-cards { display: grid; gap: 14px; }
.contact-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  color: inherit;
  transition: transform .22s var(--ease), box-shadow .22s var(--ease), border-color .22s var(--ease);
}
a.contact-card:hover { transform: translateX(5px); box-shadow: var(--shadow); border-color: #cfe3f6; color: inherit; }
.contact-icon {
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  flex: 0 0 auto;
  border-radius: 13px;
  background: var(--blue-100);
  color: var(--navy-600);
  font-size: 1.05rem;
}
.contact-card span { min-width: 0; }
.contact-card small {
  display: block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}
.contact-card strong { color: var(--navy-800); font-size: .97rem; word-break: break-word; }

.contact-form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 34px 32px;
  box-shadow: var(--shadow);
}
.contact-form h3 { margin-bottom: 1.3em; }
.form-row { margin-bottom: 18px; }
.form-row label {
  display: block;
  margin-bottom: 7px;
  font-size: .82rem;
  font-weight: 700;
  color: var(--navy-700);
}
.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 13px 15px;
  font-size: .95rem;
  font-family: inherit;
  color: var(--ink);
  background: var(--bg-alt);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  transition: border-color .2s var(--ease), background .2s var(--ease), box-shadow .2s var(--ease);
}
.form-row textarea { resize: vertical; min-height: 120px; }
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  background: #fff;
  border-color: var(--blue-400);
  box-shadow: 0 0 0 4px rgba(63, 156, 232, .16);
}
.form-row input.is-invalid,
.form-row textarea.is-invalid { border-color: #d9534f; background: #fdf5f5; }

.form-note { margin: 14px 0 0; font-size: .8rem; color: var(--muted); }
.form-status { margin: 10px 0 0; font-size: .88rem; font-weight: 600; color: #1e7a45; min-height: 1.2em; }
.form-status.is-error { color: #c0392b; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-900);
  color: #9fb6cc;
  padding: 60px 0 26px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 36px;
}
.footer-brand { display: flex; gap: 16px; align-items: flex-start; }
.footer-brand img { width: 50px; height: 50px; border-radius: 12px; background: #fff; padding: 4px; flex: 0 0 auto; }
.footer-brand strong { display: block; color: #fff; font-size: .9rem; letter-spacing: .04em; margin-bottom: 6px; }
.footer-brand p { margin: 0; font-size: .88rem; }

.footer-nav { display: flex; flex-direction: column; gap: 11px; }
.footer-nav a { color: #9fb6cc; font-size: .92rem; font-weight: 500; }
.footer-nav a:hover { color: var(--gold-400); }

.footer-contact { display: flex; flex-direction: column; gap: 12px; font-size: .92rem; }
.footer-contact a, .footer-contact span { color: #9fb6cc; display: flex; align-items: center; gap: 10px; word-break: break-word; }
.footer-contact a:hover { color: var(--gold-400); }
.footer-contact i { color: var(--gold-500); width: 16px; flex: 0 0 auto; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .1);
  padding-top: 22px;
  text-align: center;
}
.footer-bottom p { margin: 0; font-size: .85rem; }

/* ---------- To top ---------- */
.to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 48px; height: 48px;
  border: 0;
  border-radius: 50%;
  background: var(--navy-800);
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s var(--ease), background .2s var(--ease);
  z-index: 90;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--blue-500); }

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 44px; }
  .hero-card { max-width: 460px; }
  .split, .coverage-inner, .contact-grid { grid-template-columns: 1fr; gap: 38px; }
  .info-card { position: static; }
  .coverage-visual { font-size: 6rem; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  :root { --header-h: 68px; }
  .menu-toggle { display: grid; place-items: center; }

  .main-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    padding: 12px 20px 20px;
    display: none;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
  }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .main-nav a { padding: 13px 14px; font-size: .96rem; border-radius: 10px; }

  .section { padding: 68px 0; }
  .hero { padding: calc(var(--header-h) + 48px) 0 64px; }
  .strip-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .strip-item { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.1); padding: 10px 8px 16px; }
  .strip-item:nth-child(3), .strip-item:nth-child(4) { border-bottom: 0; padding-bottom: 6px; }
  .brand-text strong { font-size: .74rem; }
  .brand-text small { font-size: .64rem; }
  .contact-form { padding: 28px 22px; }
  .footer-inner { grid-template-columns: 1fr; gap: 30px; }
}

@media (max-width: 520px) {
  .container { padding: 0 18px; }
  .brand-text { display: none; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .hero-card { padding: 24px 20px; }
  .section-head { margin-bottom: 38px; }
  .to-top { right: 16px; bottom: 16px; }
}

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

/* ---------- Print ---------- */
@media print {
  .site-header, .to-top, .hero-actions, .contact-form { display: none !important; }
  body { color: #000; }
  .hero, .coverage, .site-footer { background: #fff !important; color: #000 !important; }
  .hero h1, .coverage h2, .site-footer strong { color: #000 !important; }
}
