/* IMD Sud-Ouest — Modern electric / signs website */
:root {
  --navy: #0b1c2d;
  --navy-light: #142a42;
  --blue: #0ea5e9;
  --blue-dark: #0284c7;
  --accent: #f59e0b;
  --white: #ffffff;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-400: #94a3b8;
  --gray-600: #475569;
  --gray-800: #1e293b;
  --radius: 12px;
  --shadow: 0 4px 24px rgba(11, 28, 45, 0.08);
  --shadow-lg: 0 12px 40px rgba(11, 28, 45, 0.12);
  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --max: 1120px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--gray-800);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

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

/* Header — transparent au scroll */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: transparent;
  backdrop-filter: none;
  border-bottom: 1px solid transparent;
  transition: background 0.25s ease, backdrop-filter 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.header.scrolled {
  background: rgba(11, 28, 45, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 88px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--navy);
}
.logo-img {
  height: 72px;
  width: auto;
  display: block;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.97);
  border-radius: 10px;
  padding: 6px 12px;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.14);
}
.logo-icon { font-size: 1.4rem; }
.logo strong { color: var(--blue); }

.nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}
.nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  transition: color 0.15s;
}
.nav a:hover { color: #fff; }
.nav a.btn-sm {
  color: var(--navy);
  background: #fff;
  border-color: #fff;
}
.nav a.btn-sm:hover {
  background: var(--gray-100);
  color: var(--navy);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy);
  border-radius: 1px;
  transition: 0.2s;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.35rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 8px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}
.btn-sm { padding: 0.5rem 1rem; font-size: 0.875rem; }
.btn-primary {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
}
.btn-primary:hover {
  background: var(--blue-dark);
  border-color: var(--blue-dark);
}
.btn-outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--gray-200);
}
.btn-outline:hover {
  border-color: var(--navy);
  background: var(--gray-50);
}
.btn-white {
  background: var(--white);
  color: var(--navy);
}
.btn-white:hover { background: var(--gray-100); }
.btn-outline-white {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.5);
}
.btn-outline-white:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--white);
}
.btn-full { width: 100%; }

/* Hero — fond plus chaleureux */
.hero {
  position: relative;
  padding: 120px 0 70px;
  overflow: hidden;
  background: linear-gradient(145deg, #1a3a5c 0%, #2a5080 35%, #3d6fa0 70%, #5b8ab8 100%);
  color: var(--white);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 90% 60% at 80% 30%, rgba(251, 191, 36, 0.22), transparent),
    radial-gradient(ellipse 70% 50% at 15% 70%, rgba(14, 165, 233, 0.2), transparent),
    radial-gradient(ellipse 50% 40% at 50% 100%, rgba(255, 255, 255, 0.08), transparent);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: center;
}
.hero-content { position: relative; max-width: none; }
.hero-visual {
  position: relative;
}
.hero-img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(26, 58, 92, 0.35), 0 4px 12px rgba(0,0,0,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  display: block;
}
.hero-badge {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 500;
  margin-bottom: 1.25rem;
  letter-spacing: 0.02em;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.25rem;
}
.hero h1 span {
  color: var(--blue);
  font-weight: 700;
}
.hero-lead {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: 2rem;
  max-width: 540px;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}
.hero-cta .btn-outline {
  color: var(--white);
  border-color: rgba(255,255,255,0.35);
}
.hero-cta .btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--white);
}
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.15);
}
.trust-item {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.trust-item strong {
  font-size: 1rem;
  color: var(--white);
}
.trust-item span {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.65);
}

/* Sections */
.section {
  padding: 5rem 0;
}
.section-alt {
  background: var(--gray-50);
}
.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 3rem;
}
.section-header h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.1rem);
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 0.75rem;
}
.section-header p {
  color: var(--gray-600);
  font-size: 1.05rem;
}
.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--blue);
  margin-bottom: 0.75rem;
}

/* Services grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: box-shadow 0.2s, transform 0.2s;
}
.service-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}
.service-card.featured {
  border-color: var(--blue);
  box-shadow: 0 0 0 1px var(--blue);
}
.service-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}
.service-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.5rem;
}
.service-card > p {
  color: var(--gray-600);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}
.service-card ul {
  margin-bottom: 1.25rem;
}
.service-card li {
  position: relative;
  padding-left: 1.1rem;
  font-size: 0.9rem;
  color: var(--gray-600);
  margin-bottom: 0.35rem;
}
.service-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--blue);
  font-weight: 700;
  font-size: 0.8rem;
}
.link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--blue);
}
.link:hover { text-decoration: underline; }

/* Split layout */
.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
}
.split.reverse { direction: rtl; }
.split.reverse > * { direction: ltr; }
.split-content h2 {
  font-size: clamp(1.5rem, 3vw, 1.9rem);
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 1rem;
}
.split-content > p {
  color: var(--gray-600);
  margin-bottom: 1.75rem;
}
.features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 2rem;
}
.feature h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.25rem;
}
.feature p {
  font-size: 0.875rem;
  color: var(--gray-600);
}
.visual-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
}
.visual-card.accent {
  background: linear-gradient(145deg, var(--navy) 0%, var(--navy-light) 100%);
  color: var(--white);
  border: none;
}
.visual-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  color: inherit;
}
.visual-card.accent h3 { color: rgba(255,255,255,0.9); }
.checklist li {
  padding: 0.4rem 0;
  padding-left: 1.4rem;
  position: relative;
  font-size: 0.95rem;
  border-bottom: 1px solid var(--gray-100);
}
.checklist li:last-child { border-bottom: none; }
.checklist li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--blue);
  font-weight: 700;
}
.big-text {
  font-size: 1.75rem;
  line-height: 1.3;
  margin-bottom: 1rem;
}
.big-text strong { color: var(--blue); }
.badge-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}
.badge-list span {
  padding: 0.3rem 0.75rem;
  background: rgba(255,255,255,0.12);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 500;
}

/* Zones */
.zones-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}
.zone-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 1.75rem;
}
.zone-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--blue);
}
.zone-card li {
  padding: 0.35rem 0;
  font-size: 0.95rem;
  color: var(--gray-600);
}
.zone-card li strong { color: var(--navy); }
.zones-note {
  text-align: center;
  color: var(--gray-600);
  font-size: 0.95rem;
  max-width: 560px;
  margin: 0 auto;
}

/* CTA band */
.cta-band {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
  color: var(--white);
  padding: 3.5rem 0;
  text-align: center;
}
.cta-band h2 {
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  font-weight: 800;
  margin-bottom: 0.5rem;
}
.cta-band p {
  opacity: 0.9;
  margin-bottom: 1.5rem;
}
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 2.5rem;
  align-items: start;
}
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.info-block h4 {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gray-400);
  margin-bottom: 0.35rem;
}
.info-block p, .info-block a {
  font-size: 1rem;
  color: var(--navy);
  font-weight: 500;
}
.info-block a:hover { color: var(--blue); }

.contact-cta-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 2.25rem 2rem;
  box-shadow: var(--shadow);
  text-align: center;
}
.cta-card-icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
  line-height: 1;
}
.contact-cta-card h3 {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 0.75rem;
}
.contact-cta-card > p {
  color: var(--gray-600);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  max-width: 320px;
  margin-left: auto;
  margin-right: auto;
}
.form-note {
  font-size: 0.85rem;
  color: var(--gray-400);
  margin-top: 1rem;
  text-align: center;
}
.form-note a {
  color: var(--blue);
  font-weight: 600;
}
.form-note a:hover { text-decoration: underline; }
.hidden { display: none; }

/* Footer */
.footer {
  background: var(--navy);
  color: rgba(255,255,255,0.75);
  padding: 3.5rem 0 1.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}
.footer-brand-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.6rem;
}
.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.55;
  max-width: 280px;
}
.footer-links h4 {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.85rem;
}
.footer-links a, .footer-links p {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
  transition: color 0.15s;
}
.footer-links a:hover { color: var(--blue); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.8rem;
}
.footer-bottom a:hover { color: var(--blue); }

/* Mentions page */
.legal {
  padding: 120px 0 4rem;
}
.legal h1 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 2rem;
}
.legal h2 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy);
  margin: 1.75rem 0 0.5rem;
}
.legal p, .legal li {
  color: var(--gray-600);
  margin-bottom: 0.5rem;
  max-width: 720px;
}
.legal ul { margin: 0.5rem 0 1rem 1.25rem; list-style: disc; }

/* Responsive */
@media (max-width: 900px) {
  .services-grid { grid-template-columns: 1fr; }
  .split, .split.reverse { grid-template-columns: 1fr; direction: ltr; }
  .zones-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .features { grid-template-columns: 1fr; }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .hero-visual { order: -1; max-width: 420px; margin: 0 auto; }
}

@media (max-width: 700px) {
  .nav {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 1rem;
    gap: 0;
    border-bottom: 1px solid var(--gray-200);
    box-shadow: var(--shadow);
  }
  .nav.open { display: flex; }
  .nav a {
    padding: 0.85rem 1rem;
    width: 100%;
    border-bottom: 1px solid var(--gray-100);
    color: var(--gray-600);
  }
  .nav a:hover { color: var(--navy); }
  .nav a.btn-sm {
    color: #fff;
    background: var(--blue);
    border-color: var(--blue);
  }
  .nav .btn { margin: 0.75rem 1rem; text-align: center; }
  .nav-toggle { display: flex; }
  .nav-toggle span { background: #fff; }
  .header.scrolled .nav-toggle span { background: #fff; }
  .hero { padding: 100px 0 50px; }
  .hero-trust { gap: 1.25rem; }
  .logo-img { height: 52px; }
  .header-inner { height: 72px; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 3.5rem 0; }
}

@media (max-width: 480px) {
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; }
}
