/* =========================================================
   IMC Telecom : maquette bespoke (Timy Studio)
   Theme sombre, PME electrique. Accent ambre electrique.
   ========================================================= */

:root {
  --bg:       #15171C;
  --bg-2:     #1B1E25;
  --surface:  #232831;
  --ink:      #F1EEE8;
  --ink-soft: #9AA1AD;
  --ink-dim:  #6B7280;

  --amber:      #F4B740;
  --amber-deep: #D99A22;
  --amber-soft: rgba(244, 183, 64, 0.12);

  --line:   rgba(241, 238, 232, 0.10);
  --line-2: rgba(241, 238, 232, 0.20);

  --display: 'Space Grotesk', system-ui, sans-serif;
  --body:    'Inter', system-ui, sans-serif;

  --r-sm: 10px;
  --r:    16px;
  --r-lg: 22px;
  --wrap: 1200px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }

h1, h2, h3, h4 { font-family: var(--display); font-weight: 700; line-height: 1.05; letter-spacing: -0.02em; color: var(--ink); }

.eyebrow { display: inline-block; font-weight: 600; font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--amber); }

/* Boutons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  font-family: var(--body); font-weight: 600; font-size: 1rem;
  padding: 0.95em 1.6em; border-radius: 999px; text-decoration: none; border: 1px solid transparent;
  cursor: pointer; white-space: nowrap;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn-amber { background: var(--amber); color: #15171C; box-shadow: 0 12px 28px -14px rgba(244,183,64,0.6); }
.btn-amber:hover { background: var(--amber-deep); transform: translateY(-2px); box-shadow: 0 18px 34px -16px rgba(244,183,64,0.7); }
.btn-line { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-line:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); transform: translateY(-2px); }
.btn-block { width: 100%; }
.btn .arr { display: inline-block; transition: transform 0.25s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }

/* Marqueur maquette */
.pitch { display: flex; align-items: center; justify-content: center; gap: 0.6em; background: #000; color: var(--ink); font-size: 0.82rem; font-weight: 500; text-align: center; padding: 0.55em 1.2em; }
.pitch-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--amber); animation: pulse 2.4s infinite; flex: none; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(244,183,64,0.6);} 70% { box-shadow: 0 0 0 8px rgba(244,183,64,0);} 100% { box-shadow: 0 0 0 0 rgba(244,183,64,0);} }

/* Nav */
.nav { position: sticky; top: 0; z-index: 50; transition: background 0.3s var(--ease), border-color 0.3s var(--ease); border-bottom: 1px solid transparent; }
.nav.scrolled { background: rgba(21,23,28,0.86); backdrop-filter: blur(12px); border-bottom-color: var(--line); }
.nav-in { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 0.6em; text-decoration: none; color: var(--ink); }
.brand-mark { width: 38px; height: 38px; flex: none; display: block; }
.brand-name { font-family: var(--display); font-weight: 700; font-size: 1.05rem; letter-spacing: -0.01em; }
.nav-links { display: flex; gap: 28px; }
.nav-links a { text-decoration: none; color: var(--ink-soft); font-weight: 500; font-size: 0.95rem; position: relative; padding: 4px 0; }
.nav-links a::after { content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 2px; background: var(--amber); transition: width 0.3s var(--ease); }
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { width: 100%; }
.nav-tel { display: flex; flex-direction: column; align-items: flex-end; text-decoration: none; line-height: 1.1; }
.nav-tel-label { font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-dim); }
.nav-tel-num { font-family: var(--display); font-weight: 700; font-size: 1.05rem; color: var(--amber); }

/* Hero */
.hero { position: relative; min-height: 90vh; min-height: 90dvh; display: flex; align-items: center; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-scrim { position: absolute; inset: 0; background:
  linear-gradient(100deg, rgba(15,16,20,0.96) 0%, rgba(15,16,20,0.88) 36%, rgba(15,16,20,0.62) 70%, rgba(15,16,20,0.5) 100%),
  linear-gradient(0deg, rgba(15,16,20,0.85), transparent 55%); }
.hero-content { position: relative; z-index: 1; padding: 132px 28px 92px; }
.hero h1 { font-size: clamp(3rem, 8vw, 6rem); font-weight: 700; margin: 0.4em 0 0.45em; max-width: 14ch; }
.hero h1 .hl { color: var(--amber); }
.hero-lede { font-size: clamp(1.05rem, 2vw, 1.3rem); color: rgba(241,238,232,0.82); max-width: 48ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 2.2rem; }

/* Facts */
.facts { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.facts-in { display: grid; grid-template-columns: repeat(4, 1fr); }
.fact { padding: 28px 24px; display: flex; flex-direction: column; gap: 2px; border-left: 1px solid var(--line); }
.fact:first-child { border-left: none; }
.fact strong { font-family: var(--display); font-weight: 700; font-size: 1.5rem; color: var(--amber); letter-spacing: -0.02em; }
.fact span { font-size: 0.88rem; color: var(--ink-soft); }

/* Section heads */
.sec-head { max-width: 48ch; margin-bottom: clamp(32px, 4vw, 56px); }
.sec-head h2 { font-size: clamp(2rem, 4.2vw, 3rem); }
.sec-head p { margin-top: 0.8em; font-size: 1.1rem; color: var(--ink-soft); }

section.services, section.entreprise, section.contact { padding: clamp(64px, 8vw, 120px) 0; }

/* Services */
.svc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; border-top: 1px solid var(--line); }
.svc { padding: clamp(24px, 3vw, 40px) clamp(20px, 3vw, 40px); border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); transition: background 0.35s var(--ease); }
.svc:nth-child(2n) { border-right: none; }
.svc:hover { background: var(--amber-soft); }
.svc-k { font-family: var(--display); font-weight: 700; color: var(--amber); font-size: 0.95rem; }
.svc h3 { font-size: clamp(1.35rem, 2.4vw, 1.7rem); margin: 0.6em 0 0.4em; }
.svc p { color: var(--ink-soft); max-width: 44ch; }
.svc-illu { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 40px; }
.svc-illu figure { position: relative; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 16/10; }
.svc-illu img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); filter: saturate(0.92); }
.svc-illu figure:hover img { transform: scale(1.05); }
.svc-illu figcaption { position: absolute; left: 14px; bottom: 12px; font-size: 0.82rem; font-weight: 600; color: var(--ink); background: rgba(15,16,20,0.7); backdrop-filter: blur(4px); padding: 0.35em 0.8em; border-radius: 999px; }

/* Avis */
.avis { background: var(--bg-2); padding: clamp(64px, 8vw, 110px) 0; }
.avis-head { text-align: center; max-width: 44ch; margin: 0 auto clamp(36px, 4vw, 52px); }
.avis-head h2 { font-size: clamp(2rem, 4vw, 2.8rem); }
.avis-head p { color: var(--ink-soft); margin-top: 0.5em; }
.avis-head p a { color: var(--amber); text-decoration: underline; text-underline-offset: 3px; }
.stars { color: var(--amber); font-size: 1.15rem; letter-spacing: 0.15em; display: block; margin-bottom: 0.7em; }
.avis-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.avis blockquote { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 28px; }
.avis blockquote p { font-family: var(--display); font-weight: 500; font-size: 1.12rem; line-height: 1.45; color: var(--ink); }
.avis cite { display: block; margin-top: 1.2rem; font-style: normal; font-weight: 600; }
.avis cite span { display: block; font-weight: 400; font-size: 0.82rem; color: var(--ink-dim); margin-top: 0.15em; }

/* Entreprise */
.ent-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.ent-text h2 { font-size: clamp(1.9rem, 3.8vw, 2.7rem); margin-top: 0.7em; }
.ent-text .lede { margin-top: 0.9em; font-size: 1.12rem; color: var(--ink-soft); max-width: 52ch; }
.ent-points { list-style: none; margin-top: 2rem; display: grid; gap: 1.1rem; }
.ent-points li { display: grid; gap: 0.15rem; padding-left: 1.1rem; border-left: 2px solid var(--amber); }
.ent-points strong { font-family: var(--display); font-weight: 600; }
.ent-points span { color: var(--ink-soft); font-size: 0.98rem; }
.ent-photo { border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4/5; border: 1px solid var(--line); cursor: pointer; }
.ent-photo img { width: 100%; height: 112%; object-fit: cover; filter: saturate(0.92); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 0.85fr; gap: clamp(36px, 5vw, 72px); align-items: start; }
.contact-info h2 { font-size: clamp(2rem, 4vw, 2.8rem); }
.contact-lede { margin-top: 0.7em; font-size: 1.1rem; color: var(--ink-soft); }
.contact-tel { display: inline-block; margin-top: 1.2rem; font-family: var(--display); font-weight: 700; font-size: clamp(2rem, 4.5vw, 2.7rem); color: var(--amber); text-decoration: none; letter-spacing: -0.02em; }
.contact-meta { margin-top: 1.8rem; display: grid; gap: 1rem; }
.contact-meta > div { display: grid; grid-template-columns: 110px 1fr; gap: 1rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.contact-meta dt { font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-dim); padding-top: 0.15em; }
.contact-meta dd { color: var(--ink-soft); }
.contact-meta dd.ph { color: var(--ink-dim); font-style: italic; }
.gmaps { display: inline-flex; align-items: center; gap: 0.4em; margin-top: 1.5rem; font-weight: 600; color: var(--amber); text-decoration: none; border-bottom: 1px solid var(--amber-soft); padding-bottom: 2px; transition: border-color 0.2s var(--ease); }
.gmaps:hover { border-bottom-color: var(--amber); }

.contact-form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(24px, 3vw, 36px); }
.field { display: grid; gap: 0.45rem; margin-bottom: 1.1rem; }
.field label { font-size: 0.85rem; font-weight: 600; color: var(--ink); }
.field input, .field textarea { font-family: var(--body); font-size: 1rem; color: var(--ink); background: var(--bg); border: 1px solid var(--line-2); border-radius: var(--r-sm); padding: 0.8em 0.9em; width: 100%; resize: vertical; transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease); }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-dim); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--amber); box-shadow: 0 0 0 3px var(--amber-soft); }
.form-note { margin-top: 0.9rem; font-size: 0.82rem; color: var(--ink-dim); text-align: center; }

/* Footer */
.foot { background: #0F1115; padding: 48px 0; border-top: 1px solid var(--line); }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.foot-brand { display: flex; align-items: center; gap: 0.8em; }
.foot-brand .brand-mark { width: 36px; height: 36px; }
.foot-brand strong { display: block; font-family: var(--display); font-weight: 700; }
.foot-brand span { font-size: 0.85rem; color: var(--ink-dim); }
.foot-links { display: flex; flex-wrap: wrap; gap: 22px; }
.foot-links a { color: var(--ink-soft); text-decoration: none; font-size: 0.92rem; }
.foot-links a:hover { color: var(--ink); }
.foot-cred { font-size: 0.82rem; color: var(--ink-dim); }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(8,9,11,0.95); display: none; align-items: center; justify-content: center; padding: 5vh 6vw; }
.lightbox.open { display: flex; }
.lb-img { max-width: 88vw; max-height: 86vh; object-fit: contain; border-radius: 8px; box-shadow: 0 40px 90px rgba(0,0,0,0.7); }
.lb-close, .lb-nav { position: absolute; background: rgba(241,238,232,0.12); color: var(--ink); border: 1px solid rgba(241,238,232,0.28); border-radius: 50%; width: 50px; height: 50px; font-size: 1.7rem; line-height: 1; cursor: pointer; display: grid; place-items: center; transition: background 0.2s var(--ease); }
.lb-close:hover, .lb-nav:hover { background: rgba(241,238,232,0.26); }
.lb-close { top: 4vh; right: 5vw; }
.lb-prev { left: 3vw; top: 50%; transform: translateY(-50%); }
.lb-next { right: 3vw; top: 50%; transform: translateY(-50%); }

/* Reveal */
.js .reveal { opacity: 0; transform: translateY(26px); }
.js .reveal.is-in { opacity: 1; transform: none; transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }

/* Responsive */
@media (max-width: 980px) {
  .ent-grid { grid-template-columns: 1fr; }
  .ent-photo { max-width: 460px; }
  .contact-grid { grid-template-columns: 1fr; }
  .facts-in { grid-template-columns: repeat(2, 1fr); }
  .fact:nth-child(3) { border-left: none; }
  .avis-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .nav-links { display: none; }
  .nav-tel-label { display: none; }
  .svc-grid { grid-template-columns: 1fr; }
  .svc { border-right: none; }
  .svc-illu { grid-template-columns: 1fr; }
}
@media (max-width: 480px) { .facts-in { grid-template-columns: 1fr 1fr; } }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .pitch-dot { animation: none; }
  .svc-illu img, .ent-photo img { transition: none; }
}
