/* ============================================================
   Ecclipse SRL — feuille de style
   Palette issue du logo : noir, bleu ciel, jaune soleil,
   rouge éclipse, vert écologie.
   ============================================================ */

:root {
  --blue: #1b9cd8;
  --blue-dark: #0e6ea3;
  --navy: #0c2b3e;
  --yellow: #ffd400;
  --red: #c1272d;
  --green: #58b947;
  --ink: #14202b;
  --muted: #52616e;
  --bg: #ffffff;
  --bg-soft: #f2f8fc;
  --line: #dce8f0;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(12, 43, 62, 0.10);
  --shadow-soft: 0 4px 14px rgba(12, 43, 62, 0.07);
  --header-h: 76px;
  --font: "Outfit", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 0.6em; font-weight: 700; }
h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }

a { color: var(--blue-dark); }
a:hover { color: var(--blue); }

.container {
  width: min(1140px, 100% - 2.5rem);
  margin-inline: auto;
}

.section { padding: clamp(3.5rem, 7vw, 5.5rem) 0; }

.section-head {
  max-width: 720px;
  margin: 0 auto 3rem;
  text-align: center;
}

.section-kicker {
  display: inline-block;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue-dark);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.3em 1em;
  margin-bottom: 1rem;
}

.section-lead { color: var(--muted); font-size: 1.1rem; }

/* piège anti-spam : hors écran mais lisible par les robots */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px; height: 1px;
  overflow: hidden;
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: 999px;
  padding: 0.62em 1.4em;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.btn svg { width: 1.15em; height: 1.15em; flex: none; }
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }

.btn-primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 6px 18px rgba(27, 156, 216, 0.35);
}
.btn-primary:hover { background: var(--blue-dark); color: #fff; }

.btn-outline {
  border-color: var(--blue);
  color: var(--blue-dark);
  background: #fff;
}
.btn-outline:hover { background: var(--bg-soft); }

.btn-ghost {
  border-color: rgba(255, 255, 255, 0.6);
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.18); color: #fff; }

.btn-lg { padding: 0.8em 1.8em; font-size: 1.05rem; }

.btn-facebook {
  background: #1877f2;
  color: #fff;
  width: 100%;
  margin-top: 1.25rem;
}
.btn-facebook:hover { background: #145fcc; color: #fff; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.site-header.scrolled {
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-soft);
}

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

.brand img { width: 170px; height: auto; }

.main-nav { margin-left: auto; }
.main-nav ul {
  display: flex;
  gap: 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.main-nav a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 500;
  padding: 0.4em 0;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.main-nav a:hover,
.main-nav a.active { color: var(--blue-dark); border-bottom-color: var(--yellow); }

.header-actions { display: flex; align-items: center; gap: 0.75rem; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(255, 212, 0, 0.18), transparent 60%),
    linear-gradient(160deg, #1b9cd8 0%, #0e6ea3 55%, #0c2b3e 100%);
  padding: clamp(4rem, 9vw, 7rem) 0 clamp(5rem, 10vw, 7.5rem);
}

.hero-decor { position: absolute; inset: 0; pointer-events: none; }
.hero-decor .sun {
  position: absolute;
  top: -80px; right: -60px;
  width: 320px; height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, var(--yellow), #f5b800 70%);
  opacity: 0.9;
  filter: blur(2px);
}
.hero-decor .crescent {
  position: absolute;
  top: -40px; right: 60px;
  width: 260px; height: 260px;
  border-radius: 50%;
  background: var(--red);
  opacity: 0.85;
  clip-path: circle(50% at 30% 50%);
  mix-blend-mode: multiply;
}

.hero-inner { position: relative; }
.hero-content { max-width: 640px; }

.hero-kicker {
  display: inline-block;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 0.75rem;
}

.hero h1 .accent { color: var(--yellow); }

.hero-lead {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 1.75rem;
}

.hero-cta { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-bottom: 2.25rem; }

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.6rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.9);
}
.hero-badges li { display: flex; align-items: center; gap: 0.5em; }
.hero-badges svg { width: 1.2em; height: 1.2em; color: var(--yellow); flex: none; }

.hero-wave {
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  line-height: 0;
}
.hero-wave svg { width: 100%; height: clamp(40px, 6vw, 90px); display: block; }

/* ---------- Services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.service-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}
.service-card p { margin: 0; color: var(--muted); font-size: 0.98rem; }

.service-icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  margin-bottom: 1.1rem;
}
.service-icon svg { width: 28px; height: 28px; }
.icon-yellow { background: #fff7cc; color: #b78900; }
.icon-red    { background: #fbe4e5; color: var(--red); }
.icon-blue   { background: #dff1fb; color: var(--blue-dark); }
.icon-green  { background: #e4f5df; color: #3a8c2c; }

/* ---------- Bande acronyme ---------- */
.acronym {
  background: var(--navy);
  color: #fff;
  padding: 2.5rem 0;
  text-align: center;
}
.acronym-intro {
  margin-bottom: 1rem;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.acronym-letters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 2.25rem;
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  font-weight: 500;
}
.acronym-letters strong { font-weight: 800; font-size: 1.35em; }
.l-black  { color: #fff; }
.l-red    { color: #ff6b6b; }
.l-blue   { color: #5fc5f2; }
.l-yellow { color: var(--yellow); }
.l-green  { color: #8ade79; }

/* ---------- À propos ---------- */
.about { background: var(--bg-soft); }

.about-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 3rem;
  align-items: start;
}

.about-content .section-kicker { background: #fff; }

.about-points {
  list-style: none;
  margin: 1.75rem 0 0;
  padding: 0;
  display: grid;
  gap: 1.1rem;
}
.about-points li { display: flex; gap: 0.9rem; align-items: flex-start; }
.about-points .point-icon {
  flex: none;
  width: 28px; height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--green);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  margin-top: 2px;
}

.about-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem;
  display: grid;
  gap: 1.5rem;
  position: sticky;
  top: calc(var(--header-h) + 1.5rem);
}
.stat { display: grid; gap: 0.15rem; }
.stat-value {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--blue-dark);
  line-height: 1;
}
.stat-label { color: var(--muted); font-size: 0.95rem; }
.stat + .stat { border-top: 1px dashed var(--line); padding-top: 1.4rem; }

/* ---------- Zone ---------- */
.zone { padding-bottom: clamp(2.5rem, 5vw, 4rem); }

.zone-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.7rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.zone-chips li {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.45em 1.2em;
  font-weight: 500;
  color: var(--navy);
  transition: background 0.15s ease, border-color 0.15s ease;
}
.zone-chips li:hover { background: #dff1fb; border-color: var(--blue); }

/* ---------- Contact ---------- */
.contact { background: var(--bg-soft); }

.contact-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 2rem;
  align-items: start;
}

.contact-form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
}

.form-field { margin-bottom: 1.1rem; }
.form-field label {
  display: block;
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.35rem;
}
.form-field .req { color: var(--red); }

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 0.65em 0.9em;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.form-field textarea { resize: vertical; min-height: 120px; }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(27, 156, 216, 0.18);
}

.btn-submit { width: 100%; margin-top: 0.4rem; }
.btn-submit[disabled] { opacity: 0.6; cursor: wait; transform: none; }

.form-status {
  margin: 0.9rem 0 0;
  font-weight: 600;
  min-height: 1.4em;
}
.form-status.ok { color: #2e7d22; }
.form-status.err { color: var(--red); }

.form-note {
  margin: 0.75rem 0 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.contact-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 1.75rem;
}
.contact-card h3 { margin-bottom: 1.2rem; }

.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.1rem;
}
.contact-list li { display: flex; gap: 0.9rem; align-items: flex-start; }
.contact-list svg {
  flex: none;
  width: 22px; height: 22px;
  color: var(--blue);
  margin-top: 3px;
}
.contact-list a { font-weight: 600; text-decoration: none; }
.contact-list a:hover { text-decoration: underline; }

.map-wrap {
  margin-top: 1.5rem;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}
.map-wrap iframe {
  display: block;
  width: 100%;
  height: 280px;
  border: 0;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.85);
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
  padding: 3.5rem 0 2.5rem;
}
.footer-logo {
  display: inline-block;
  background: #fff;
  border-radius: 12px;
  padding: 0.9rem 1.2rem;
  margin-bottom: 1.1rem;
}
.footer-logo img { width: 180px; }
.footer-brand p { max-width: 34ch; font-size: 0.95rem; }

.footer-col h4 {
  color: #fff;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}
.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
  font-size: 0.95rem;
}
.footer-col a { color: rgba(255, 255, 255, 0.85); text-decoration: none; }
.footer-col a:hover { color: var(--yellow); }

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

/* ---------- Animations d'apparition ----------
   Appliquées uniquement si JavaScript est actif (classe "js" sur <html>),
   pour ne jamais masquer le contenu sans lui. */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.js .reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover, .service-card:hover { transform: none; }
}

/* ---------- Ancres sous le header collant ---------- */
section[id] { scroll-margin-top: calc(var(--header-h) + 12px); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .about-inner,
  .contact-grid,
  .footer-inner { grid-template-columns: 1fr; }
  .about-card { position: static; }
}

@media (max-width: 820px) {
  .btn-phone span { display: none; }
  .btn-phone { padding: 0.62em 0.85em; }

  /* Le menu passe en position fixed (hors flux) : c'est donc aux
     actions de se caler à droite. */
  .header-actions { margin-left: auto; }

  .nav-toggle { display: flex; }

  .main-nav {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    transform: translateY(-130%);
    transition: transform 0.25s ease;
    z-index: 40;
  }
  .main-nav.open { transform: translateY(0); }
  .main-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 1.25rem 1rem;
  }
  .main-nav a {
    display: block;
    padding: 0.85em 0;
    border-bottom: 1px solid var(--line);
    font-size: 1.05rem;
  }
}

@media (max-width: 560px) {
  .form-row { grid-template-columns: 1fr; }
  .btn-quote { display: none; }
  .hero-cta .btn { width: 100%; }
  .brand img { width: 140px; }
}
