/* ============================================================
   Eclat Net Service — Styles
   Design system: Trust & Authority (navy / blue / fresh cyan)
   Fonts: Poppins (headings) + Open Sans (body)
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  --color-primary: #0F172A;
  --color-secondary: #334155;
  --color-accent: #0369A1;
  --color-accent-2: #0E7490;
  --color-accent-soft: #E0F2FE;
  --color-fresh: #059669;
  --color-bg: #F8FAFC;
  --color-surface: #FFFFFF;
  --color-foreground: #020617;
  --color-muted: #475569;
  --color-border: #E2E8F0;
  --color-ring: #0F172A;
  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Open Sans', sans-serif;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 10px 25px -5px rgba(15, 23, 42, 0.10), 0 4px 10px -6px rgba(15, 23, 42, 0.05);
  --shadow-lg: 0 24px 50px -12px rgba(15, 23, 42, 0.18);
  --transition: 200ms ease;
  --header-h: 76px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--color-foreground);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--color-primary); }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3 { font-family: var(--font-heading); color: var(--color-primary); line-height: 1.2; letter-spacing: -0.015em; }

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

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

.container { width: min(1180px, 100% - 40px); margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-heading); font-weight: 600; font-size: 15.5px;
  padding: 13px 26px; border-radius: 999px; border: 0; line-height: 1.2;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition);
  text-align: center;
}
.btn:active { transform: scale(0.98); }
.btn-lg { padding: 16px 34px; font-size: 16.5px; }
.btn-block { width: 100%; }

.btn-primary { background: var(--color-accent); color: #fff; box-shadow: 0 8px 20px -6px rgba(3, 105, 161, 0.5); }
.btn-primary:hover { background: #035891; color: #fff; box-shadow: 0 12px 26px -6px rgba(3, 105, 161, 0.55); }

.btn-ghost {
  background: transparent; color: var(--color-primary);
  box-shadow: inset 0 0 0 1.6px var(--color-border);
}
.btn-ghost:hover { box-shadow: inset 0 0 0 1.6px var(--color-accent); color: var(--color-accent); }

.btn-light { background: #fff; color: var(--color-primary); }
.btn-light:hover { background: var(--color-accent-soft); color: var(--color-primary); }

.btn-whatsapp { background: #25D366; color: #062b16; }
.btn-whatsapp:hover { background: #1fbb5a; color: #062b16; }
.btn-whatsapp svg { width: 19px; height: 19px; }

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

.btn-nav { padding: 10px 20px; font-size: 14px; flex-shrink: 0; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(248, 250, 252, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.site-header.scrolled { border-bottom-color: var(--color-border); box-shadow: var(--shadow-sm); }

.header-inner { display: flex; align-items: center; gap: 24px; min-height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--color-primary); }
.brand:hover { color: var(--color-primary); }
.brand-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 12px; background: var(--color-primary); color: #7DD3FC;
  flex-shrink: 0;
}
.brand-mark svg { width: 24px; height: 24px; }
.brand-text { font-family: var(--font-heading); font-weight: 500; font-size: 17px; letter-spacing: -0.01em; white-space: nowrap; }
.brand-text strong { font-weight: 700; color: var(--color-accent); }
.brand-logo { height: 44px; width: auto; max-width: 160px; object-fit: contain; flex-shrink: 0; display: block; }
.brand-logo-light { height: 40px; }

.main-nav { margin-left: auto; }
.main-nav ul { display: flex; gap: 6px; }
.main-nav a {
  display: block; padding: 10px 14px; border-radius: 10px;
  color: var(--color-secondary); font-weight: 500; font-size: 15px;
}
.main-nav a:hover { color: var(--color-primary); background: #EDF2F7; }

.nav-toggle {
  display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--color-border);
  background: #fff; align-items: center; justify-content: center; color: var(--color-primary); flex-shrink: 0;
}
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-menu { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

.header-inner > .btn-nav { margin-left: auto; }
.main-nav { margin-left: 0; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 88px 0 0; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(720px 420px at 85% -10%, rgba(14, 116, 144, 0.10), transparent 65%),
    radial-gradient(600px 380px at -10% 20%, rgba(3, 105, 161, 0.08), transparent 60%);
}

.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; position: relative; }

.badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--color-accent-soft); color: var(--color-accent);
  font-weight: 600; font-size: 13.5px; padding: 8px 16px; border-radius: 999px;
  margin-bottom: 22px;
}
.badge svg { width: 15px; height: 15px; }

.hero h1 { font-size: clamp(2.3rem, 4.6vw, 3.6rem); margin-bottom: 20px; }
.accent-text { color: var(--color-accent); }

.hero .lead { font-size: 18px; color: #334155; max-width: 34em; margin-bottom: 30px; }

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

.hero-media { position: relative; }
.hero-frame {
  border-radius: 24px; overflow: hidden; box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-border);
}
.hero-frame img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; filter: saturate(1.06) contrast(1.03); }

.hero-card {
  position: absolute; display: flex; align-items: center; gap: 12px;
  background: #fff; border: 1px solid var(--color-border); border-radius: 14px;
  box-shadow: var(--shadow-md); padding: 12px 18px;
}
.hero-card svg { width: 30px; height: 30px; color: var(--color-accent); flex-shrink: 0; }
.hero-card strong { display: block; font-family: var(--font-heading); font-size: 14.5px; color: var(--color-primary); }
.hero-card span { font-size: 13px; color: var(--color-muted); }
.hero-card-1 { top: 20px; left: -26px; }
.hero-card-2 { bottom: 24px; right: -18px; }

/* Trust strip */
.trust-strip { position: relative; margin-top: 76px; padding: 22px 0; border-top: 1px solid var(--color-border); }
.trust-label { font-family: var(--font-heading); font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; color: #334155; margin-bottom: 14px; }
.trust-list { display: flex; flex-wrap: wrap; gap: 10px 26px; }
.trust-list li { font-weight: 600; color: var(--color-secondary); font-size: 15px; display: inline-flex; align-items: center; gap: 8px; }
.trust-list li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--color-accent); }

/* ---------- Sections génériques ---------- */
.section { padding: 104px 0; }
.section-alt { background: #fff; }

.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); margin-bottom: 14px; }
.section-head p { color: var(--color-muted); font-size: 17px; }

.eyebrow {
  display: inline-block; font-family: var(--font-heading); font-weight: 600;
  font-size: 13px; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--color-accent); margin-bottom: 12px;
}

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

.card {
  background: var(--color-surface); border: 1px solid #D8DEE9;
  border-radius: var(--radius); padding: 30px 28px;
  box-shadow: var(--shadow-sm); transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #94A3B8; }

.service-icon {
  width: 54px; height: 54px; border-radius: 14px; background: var(--color-accent-soft); color: var(--color-accent);
  display: inline-flex; align-items: center; justify-content: center; margin-bottom: 18px;
}
.service-icon svg { width: 28px; height: 28px; }

.service-card h3, .activite-card h3 { font-size: 17.5px; margin-bottom: 10px; }
.service-card p, .activite-card p { color: #334155; font-size: 15px; }

.card-featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 22px;
  align-items: center;
  background: linear-gradient(160deg, var(--color-primary), #1E293B);
  border-color: var(--color-primary);
}
.card-featured .service-icon {
  background: rgba(125, 211, 252, 0.15); color: #7DD3FC;
  width: 64px; height: 64px; margin-bottom: 0;
}
.card-featured .service-icon svg { width: 34px; height: 34px; }
.card-featured h3 { color: #fff; margin-bottom: 6px; }
.card-featured p { color: #CBD5E1; margin-bottom: 0; }

/* ---------- Split sections (images) ---------- */
.split-section { padding: 96px 0; background: #fff; }
.split-section + .split-section { border-top: 1px solid var(--color-border); }

.split-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split-reverse .split-copy { order: 2; }
.split-reverse .split-media { order: 1; }

.split-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 24px; box-shadow: var(--shadow-lg); border: 1px solid var(--color-border); filter: saturate(1.06) contrast(1.03); }

.split-copy h2 { font-size: clamp(1.6rem, 2.8vw, 2.2rem); margin: 4px 0 16px; }
.split-copy > p { color: #334155; font-size: 17px; margin-bottom: 24px; }

.check-list li {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 9px 0; font-weight: 500; color: var(--color-secondary); font-size: 16px;
}
.check-list svg { width: 22px; height: 22px; color: var(--color-fresh); flex-shrink: 0; margin-top: 2px; }

/* ---------- Activités connexes ---------- */
.grid-activites { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }

/* ---------- Garanties ---------- */
.grid-garanties { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }

.garantie-card { position: relative; padding: 30px 28px 26px; overflow: hidden; }
.garantie-card h3 { font-size: 17px; margin-bottom: 8px; }
.garantie-card p { color: var(--color-muted); font-size: 15px; }
.garantie-num {
  font-family: var(--font-heading); font-weight: 700; font-size: 42px; line-height: 1;
  color: transparent; -webkit-text-stroke: 1.4px #CBD5E1; margin-bottom: 16px;
}

/* ---------- Process ---------- */
.process-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: step; }

.process-step {
  position: relative; background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius); padding: 34px 26px 26px; box-shadow: var(--shadow-sm);
}
.process-step h3 { font-size: 16.5px; margin-bottom: 8px; margin-top: 14px; }
.process-step p { color: var(--color-muted); font-size: 14.5px; }
.process-step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--color-accent); color: #fff;
  font-family: var(--font-heading); font-weight: 600; font-size: 19px;
  box-shadow: 0 8px 18px -6px rgba(3, 105, 161, 0.5);
}

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--color-primary) 0%, #0B2545 60%, var(--color-accent-2) 130%);
  padding: 84px 0; text-align: center; position: relative; overflow: hidden;
}
.cta-band::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(480px 260px at 15% 120%, rgba(125, 211, 252, 0.14), transparent 60%);
  pointer-events: none;
}
.cta-inner { position: relative; }
.cta-inner h2 { color: #fff; font-size: clamp(1.8rem, 3.2vw, 2.6rem); margin-bottom: 12px; }
.cta-inner p { color: #BFD7EA; font-size: 17.5px; margin-bottom: 30px; }
.cta-inner .hero-actions { justify-content: center; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: start; }
.contact-info h2 { font-size: clamp(1.6rem, 2.8vw, 2.2rem); margin: 4px 0 14px; }
.contact-info > p { color: #334155; font-size: 17px; margin-bottom: 30px; }

.contact-list li { display: flex; align-items: center; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--color-border); }
.contact-icon {
  width: 46px; height: 46px; border-radius: 12px; background: var(--color-accent-soft); color: var(--color-accent);
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.contact-icon svg { width: 22px; height: 22px; }
.contact-list strong { display: block; font-family: var(--font-heading); font-size: 15px; color: var(--color-primary); }
.contact-list span { color: var(--color-muted); font-size: 15px; }

.contact-form-wrap { background: #fff; border: 1px solid var(--color-border); border-radius: 20px; padding: 36px; box-shadow: var(--shadow-md); }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-weight: 600; font-size: 14px; color: var(--color-primary); margin-bottom: 7px; font-family: var(--font-heading); }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 12px 14px; font-size: 15px; font-family: var(--font-body);
  color: var(--color-foreground); background: var(--color-bg);
  border: 1.5px solid var(--color-border); border-radius: var(--radius-sm);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--color-accent); box-shadow: 0 0 0 3px rgba(3, 105, 161, 0.15); background: #fff;
}
.form-group textarea { resize: vertical; min-height: 110px; }
.form-group input::placeholder, .form-group textarea::placeholder { color: #94A3B8; }

.form-status { min-height: 22px; font-size: 14px; font-weight: 600; margin: 4px 0 10px; }
.form-status.error { color: #B91C1C; }
.form-status.success { color: var(--color-fresh); }

.form-note { font-size: 12.5px; color: #94A3B8; margin-top: 10px; text-align: center; }

/* ---------- Footer ---------- */
.site-footer { background: var(--color-primary); color: #C7D4E2; margin-top: 0; }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1.2fr 1fr; gap: 40px;
  padding: 72px 0 48px;
}
.footer-brand .brand { color: #fff; }
.footer-brand .brand-mark { background: rgba(255, 255, 255, 0.08); color: #7DD3FC; }
.footer-brand .brand-text strong { color: #7DD3FC; }
.footer-tagline { margin-top: 18px; color: #9FB3C8; font-size: 15px; line-height: 1.7; }

.footer-col h3 { color: #fff; font-size: 15px; margin-bottom: 18px; text-transform: uppercase; letter-spacing: 0.06em; }
.footer-col ul li { margin-bottom: 11px; font-size: 14.5px; }
.footer-col a { color: #C7D4E2; }
.footer-col a:hover { color: #fff; }
.footer-contact li { color: #C7D4E2; }

.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.08); padding: 22px 0; }
.footer-bottom-inner { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 13.5px; color: #8CA3B8; }
.footer-made { opacity: 0.85; }

/* ---------- Animations reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 650ms ease, transform 650ms ease; }
.reveal.visible { opacity: 1; transform: none; }

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

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .card-featured { grid-column: 1 / -1; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-media { max-width: 640px; margin-inline: auto; }
  .hero-card-1 { left: 8px; }
  .hero-card-2 { right: 8px; }
  .grid-services, .grid-activites, .grid-garanties { grid-template-columns: repeat(2, 1fr); }
  .process-steps { grid-template-columns: repeat(2, 1fr); }
  .split-grid { grid-template-columns: 1fr; gap: 36px; }
  .split-reverse .split-copy { order: 1; }
  .split-reverse .split-media { order: 2; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .main-nav {
    position: fixed; inset: var(--header-h) 0 auto 0; z-index: 99;
    background: #fff; border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
    transform: translateY(-8px); opacity: 0; pointer-events: none;
    transition: transform var(--transition), opacity var(--transition);
    padding: 18px 20px 26px;
  }
  .main-nav.open { transform: none; opacity: 1; pointer-events: auto; }
  .main-nav ul { flex-direction: column; gap: 2px; }
  .main-nav a { padding: 13px 12px; font-size: 16.5px; }
  .nav-toggle { display: inline-flex; }
  .header-inner > .btn-nav { display: none; }
}

@media (max-width: 640px) {
  .card-featured { grid-template-columns: 1fr; gap: 14px; }
  .card-featured .service-icon { margin-bottom: 0; }
  .container { width: calc(100% - 32px); }
  .hero { padding: 60px 0 0; }
  .hero-actions .btn { width: 100%; }
  .grid-services, .grid-activites, .grid-garanties, .process-steps, .form-row, .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 72px 0; }
  .split-section { padding: 64px 0; }
  .contact-form-wrap { padding: 24px; }
  .hero-card { padding: 10px 14px; }
  .hero-card-1 { top: 10px; }
  .footer-bottom-inner { flex-direction: column; text-align: center; }
}

/* ---------- Ajouts i18n & formulaire 2 canaux (additif) ---------- */

/* Sélecteur de langue FR | EN */
.lang-switch {
  display: inline-flex; align-items: center; gap: 2px;
  background: #EDF2F7; border: 1px solid var(--color-border); border-radius: 999px;
  padding: 3px; flex-shrink: 0;
}
.lang-btn {
  border: 0; background: transparent; cursor: pointer;
  font-family: var(--font-heading); font-weight: 600; font-size: 12.5px; line-height: 1;
  padding: 7px 11px; border-radius: 999px; color: var(--color-muted);
  transition: background var(--transition), color var(--transition);
}
.lang-btn:hover { color: var(--color-primary); }
.lang-btn.is-active { background: var(--color-primary); color: #fff; }

/* Placement dans le header : le sélecteur pousse la paire [lang | CTA] à droite */
.header-inner .lang-switch { margin-left: auto; }
.header-inner > .btn-nav { margin-left: 0; }

/* Formulaire : deux boutons côte à côte (email | WhatsApp) */
.form-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-actions .btn { width: 100%; padding: 14px 18px; font-size: 15px; }
.form-actions .btn svg { width: 18px; height: 18px; flex-shrink: 0; }

@media (max-width: 640px) {
  .form-actions { grid-template-columns: 1fr; }
}

/* ---------- Slogan héro ---------- */
.hero-slogan {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  color: var(--color-accent);
  margin: 0.35rem 0 0.9rem;
  text-transform: none;
}

/* ---------- Bouton WhatsApp flottant (toujours accessible) ---------- */
.wa-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 999;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 18px;
  border-radius: 999px;
  background: #25D366;
  color: #062b16;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  box-shadow: 0 8px 24px -6px rgba(37, 211, 102, 0.55), 0 4px 10px -4px rgba(15, 23, 42, 0.25);
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}
.wa-float:hover {
  background: #1fbb5a;
  color: #062b16;
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 12px 28px -6px rgba(37, 211, 102, 0.65), 0 6px 14px -4px rgba(15, 23, 42, 0.3);
}
.wa-float svg { width: 24px; height: 24px; flex-shrink: 0; }
.wa-float-text { white-space: nowrap; }

@media (max-width: 640px) {
  .wa-float { right: 16px; bottom: 16px; padding: 0; width: 56px; height: 56px; justify-content: center; }
  .wa-float svg { width: 28px; height: 28px; }
  .wa-float-text { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .wa-float { transition: none; }
}

/* Petits écrans : éviter le débordement du header (brand + lang + toggle) */
@media (max-width: 420px) {
  .header-inner { gap: 12px; }
  .brand-text { font-size: 15px; }
  .lang-btn { padding: 6px 9px; font-size: 11.5px; }
}
@media (max-width: 360px) {
  .header-inner { gap: 10px; }
  .brand-mark { width: 36px; height: 36px; }
  .brand-text { font-size: 13.5px; }
}
