/* ==========================================================================
   PACOMAK — Feuille de style
   Fabricant marocain de pièces mécaniques de précision
   ========================================================================== */

:root {
  /* Palette de marque */
  --white:      #ffffff;
  --navy:       #272b3c;
  --navy-deep:  #1a1d29;
  --steel:      #3e5f6d;
  --teal:       #55939e;
  --cyan:       #6dc7d0;
  --ink:        #1c1f27;
  --ink-soft:   #565b6b;
  --line:       #dfe4e8;
  --paper:      #f6f8f9;
  --whatsapp:   #25d366;
  --whatsapp-dark: #1da851;

  /* Typographie */
  --font-display: "Big Shoulders Display", "Arial Narrow", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Rythme */
  --gap: clamp(1.25rem, 2vw, 2.5rem);
  --section-pad: clamp(4rem, 8vw, 7.5rem);
  --radius: 3px;

  /* Élévation — système d'ombres cohérent */
  --shadow-xs: 0 1px 2px rgba(19, 22, 32, 0.06);
  --shadow-sm: 0 2px 8px rgba(19, 22, 32, 0.08);
  --shadow-md: 0 8px 24px rgba(19, 22, 32, 0.10);
  --shadow-lg: 0 20px 48px rgba(19, 22, 32, 0.16);
  --shadow-navy: 0 12px 30px rgba(20, 45, 60, 0.28);

  /* Transitions */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --fast: 0.18s;
  --med: 0.32s;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

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

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "kern" 1, "liga" 1;
}

img { max-width: 100%; display: block; }
img { image-rendering: -webkit-optimize-contrast; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 700; }
p { margin: 0; }
section { position: relative; }

::selection {
  background: var(--cyan);
  color: var(--navy-deep);
}

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

/* Scrollbar — cohérente avec la marque (Webkit + Firefox) */
html { scrollbar-color: var(--steel) var(--paper); scrollbar-width: thin; }
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: var(--paper); }
::-webkit-scrollbar-thumb {
  background: var(--steel);
  border-radius: 999px;
  border: 3px solid var(--paper);
}
::-webkit-scrollbar-thumb:hover { background: var(--teal); }

.wrap {
  width: min(1180px, 92%);
  margin-inline: auto;
}

.eyebrow-num {
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--teal);
  letter-spacing: 0.02em;
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.98rem;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform var(--fast) var(--ease), box-shadow var(--fast) var(--ease),
              background-color var(--fast) var(--ease), border-color var(--fast) var(--ease),
              color var(--fast) var(--ease);
  white-space: nowrap;
  will-change: transform;
}
.btn:active { transform: translateY(1px) scale(0.99); }

.btn-primary {
  background: var(--cyan);
  color: var(--navy-deep);
  box-shadow: 0 1px 0 rgba(255,255,255,0.5) inset, 0 6px 16px rgba(85, 147, 158, 0.28);
}
.btn-primary:hover {
  background: var(--teal);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(62, 95, 109, 0.32);
}

.btn-outline {
  background: transparent;
  border-color: rgba(255,255,255,0.35);
  color: var(--white);
}
.btn-outline:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  transform: translateY(-2px);
  background: rgba(109, 199, 208, 0.08);
}

.btn-outline-dark {
  background: transparent;
  border-color: var(--steel);
  color: var(--navy);
}
.btn-outline-dark:hover {
  border-color: var(--teal);
  color: var(--teal);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.btn-whatsapp {
  background: var(--whatsapp);
  color: var(--white);
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.35);
}
.btn-whatsapp:hover {
  background: var(--whatsapp-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(29, 168, 81, 0.4);
}
.btn-whatsapp svg { width: 20px; height: 20px; fill: currentColor; }

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow var(--med) var(--ease), border-color var(--med) var(--ease);
}
.site-header.is-scrolled {
  box-shadow: var(--shadow-sm);
  border-bottom-color: transparent;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 0.6rem;
}
.brand-mark img { height: 40px; width: auto; }
.brand-mark { display: flex; align-items: center; }

.main-nav ul { display: flex; gap: 2rem; align-items: center; }
.main-nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink-soft);
  padding: 0.4rem 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.main-nav a:hover { color: var(--navy); border-color: var(--cyan); }

.header-actions { display: flex; align-items: center; gap: 1rem; }
.header-actions .btn-primary span.short { display: none; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  margin: 5px 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

@media (max-width: 900px) {
  .main-nav {
    position: fixed;
    inset: 64px 0 auto 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    transform: translateY(-120%);
    transition: transform 0.3s ease;
    padding: 1.5rem 0;
  }
  .main-nav.open { transform: translateY(0); }
  .main-nav ul { flex-direction: column; gap: 0; width: 100%; }
  .main-nav li { width: 100%; text-align: center; }
  .main-nav a { display: block; padding: 0.9rem 0; }
  .nav-toggle { display: block; }
  .header-actions .btn-primary span.long { display: none; }
  .header-actions .btn-primary span.short { display: inline; }
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  background: var(--navy-deep);
  color: var(--white);
  overflow: hidden;
  position: relative;
  padding-top: clamp(3rem, 8vh, 5rem);
  padding-bottom: clamp(3rem, 8vh, 5rem);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse at 70% 40%, black 10%, transparent 70%);
  pointer-events: none;
}
.hero .wrap {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: var(--gap);
  align-items: center;
  position: relative;
  z-index: 2;
}
.hero-tagline {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--cyan);
  font-size: 0.92rem;
  font-weight: 600;
  margin-bottom: 1.1rem;
  letter-spacing: 0.01em;
}
.hero-tagline::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--cyan);
  display: inline-block;
}
.hero h1 {
  font-size: clamp(3.2rem, 8vw, 5.6rem);
  line-height: 0.92;
  letter-spacing: -0.01em;
  color: var(--white);
}
.hero h1 em {
  font-style: normal;
  color: var(--cyan);
}
.hero-lede {
  margin-top: 1.5rem;
  max-width: 46ch;
  font-size: 1.1rem;
  color: rgba(255,255,255,0.78);
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.2rem;
}
.hero-stats {
  display: flex;
  gap: clamp(1.5rem, 4vw, 3rem);
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.14);
}
.hero-stats .stat b {
  display: block;
  font-family: var(--font-display);
  font-size: 2.4rem;
  color: var(--white);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.hero-stats .stat span {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
}

.hero-mark {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
}
.hero-mark .ring {
  position: absolute;
  border: 1px dashed rgba(255,255,255,0.18);
  border-radius: 50%;
}
.hero-mark .ring--outer { inset: 0%; }
.hero-mark .ring--inner { inset: 14%; border-color: rgba(255,255,255,0.28); }
.hero-mark .tick {
  position: absolute;
  width: 1px;
  height: 14px;
  background: rgba(255,255,255,0.35);
  left: 50%;
  top: 0;
  transform-origin: 50% calc(50vw);
}
.hero-mark .gear-wrap {
  width: 34%;
  animation: spin-slow 34s linear infinite;
}
@keyframes spin-slow {
  to { transform: rotate(360deg); }
}
.hero-mark img.gear-svg { width: 100%; height: auto; opacity: 0.95; filter: drop-shadow(0 18px 40px rgba(0,0,0,0.45)); }

/* ==========================================================================
   SECTION SCAFFOLDING
   ========================================================================== */
.section { padding-block: var(--section-pad); }
.section--paper { background: var(--paper); }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
  flex-wrap: wrap;
}
.section-head h2 {
  font-size: clamp(2.2rem, 4.4vw, 3.2rem);
  color: var(--navy);
  line-height: 1.02;
  max-width: 18ch;
}
.section-head .lede {
  max-width: 42ch;
  color: var(--ink-soft);
  font-size: 1.03rem;
}
.section-num {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--teal);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  display: inline-block;
  margin-bottom: 1rem;
}

/* ==========================================================================
   HISTOIRE / TIMELINE
   ========================================================================== */
.timeline {
  position: relative;
  display: grid;
  gap: 2.5rem;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 27px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  background: repeating-linear-gradient(to bottom, var(--line) 0 8px, transparent 8px 14px);
}
.timeline-item {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 1.75rem;
  position: relative;
}
.timeline-node {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.3rem;
  z-index: 1;
  border: 4px solid var(--white);
  box-shadow: 0 0 0 1px var(--line);
}
.timeline-body {
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 3px solid var(--teal);
  padding: 1.6rem 1.9rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-xs);
  transition: box-shadow var(--med) var(--ease), transform var(--med) var(--ease);
}
.timeline-item:hover .timeline-body {
  box-shadow: var(--shadow-md);
  transform: translateX(4px);
}
.timeline-node {
  transition: box-shadow var(--med) var(--ease), transform var(--med) var(--ease);
}
.timeline-item:hover .timeline-node {
  box-shadow: 0 0 0 1px var(--line), 0 6px 16px rgba(85, 147, 158, 0.35);
  transform: scale(1.06);
}
.timeline-body .gen-label {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--teal);
  font-weight: 700;
}
.timeline-body h3 {
  font-size: 1.5rem;
  color: var(--navy);
  margin-top: 0.35rem;
  margin-bottom: 0.6rem;
  font-family: var(--font-body);
  font-weight: 700;
}
.timeline-body p { color: var(--ink-soft); max-width: 65ch; }

/* ==========================================================================
   A PROPOS
   ========================================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.about-copy p { color: var(--ink-soft); font-size: 1.05rem; margin-bottom: 1.2rem; }
.about-copy p:last-child { margin-bottom: 0; }
.pillar-list {
  display: grid;
  gap: 0.9rem;
}
.pillar-list li {
  display: flex;
  align-items: baseline;
  gap: 0.8rem;
  padding-block: 0.55rem;
  border-bottom: 1px dashed var(--line);
  color: var(--navy);
  font-weight: 600;
}
.pillar-list li:last-child { border-bottom: none; }
.pillar-list .idx {
  font-family: var(--font-display);
  color: var(--cyan);
  font-size: 1.1rem;
  min-width: 1.6em;
}
.about-frame {
  position: relative;
  border: 1px solid var(--line);
  padding: 1.4rem;
  background: var(--white);
  box-shadow: var(--shadow-md);
  transition: box-shadow var(--med) var(--ease), transform var(--med) var(--ease);
}
.about-frame:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}
.about-frame::before, .about-frame::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border: 2px solid var(--cyan);
}
.about-frame::before { top: -1px; left: -1px; border-right: none; border-bottom: none; }
.about-frame::after { bottom: -1px; right: -1px; border-left: none; border-top: none; }
.about-frame img { border-radius: 2px; }
.about-frame figcaption {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--ink-soft);
  display: flex;
  justify-content: space-between;
}

/* ==========================================================================
   SERVICES — grille bento asymétrique
   ========================================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.25rem;
}
.service-card {
  grid-column: span 3;
  border: 1px solid var(--line);
  background: var(--white);
  padding: 2rem;
  position: relative;
  transition: border-color var(--med) var(--ease), box-shadow var(--med) var(--ease), transform var(--med) var(--ease);
}
.service-card::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: transparent;
  transition: background var(--fast) var(--ease);
}
.service-card:hover {
  border-color: var(--steel);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.service-card:hover::before { background: var(--teal); }
.service-card--wide { grid-column: span 4; }
.service-card--narrow { grid-column: span 2; }
.service-card .num {
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--cyan);
  display: block;
  margin-bottom: 1rem;
}
.service-card h3 {
  font-size: 1.35rem;
  color: var(--navy);
  font-family: var(--font-body);
  margin-bottom: 0.9rem;
}
.service-card ul { display: grid; gap: 0.5rem; }
.service-card ul li {
  color: var(--ink-soft);
  font-size: 0.95rem;
  padding-left: 1.1rem;
  position: relative;
}
.service-card ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 6px;
  height: 1px;
  background: var(--teal);
}

@media (max-width: 820px) {
  .services-grid { grid-template-columns: 1fr; }
  .service-card, .service-card--wide, .service-card--narrow { grid-column: span 1; }
}

/* ==========================================================================
   POURQUOI PACOMAK
   ========================================================================== */
.why-section {
  background: var(--navy-deep);
  color: var(--white);
}
.why-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2rem, 5vw, 4rem);
}
.why-grid .section-head h2 { color: var(--white); }
.why-grid .lede-large {
  font-size: 1.2rem;
  color: rgba(255,255,255,0.75);
  max-width: 44ch;
}
.why-list { display: grid; gap: 1px; background: rgba(255,255,255,0.12); }
.why-list li {
  background: var(--navy-deep);
  padding: 1.3rem 0;
  display: flex;
  align-items: center;
  gap: 1.2rem;
  color: rgba(255,255,255,0.88);
  font-weight: 500;
}
.why-list .mono {
  font-family: var(--font-display);
  color: var(--cyan);
  font-size: 1.1rem;
  min-width: 2.4em;
}

/* ==========================================================================
   DOMAINES — tags techniques
   ========================================================================== */
.domain-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}
.domain-tags li {
  border: 1px dashed var(--steel);
  color: var(--navy);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.65rem 1.25rem;
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--white);
  transition: border-style var(--fast) var(--ease), box-shadow var(--fast) var(--ease), transform var(--fast) var(--ease);
}
.domain-tags li:hover {
  border-style: solid;
  border-color: var(--teal);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}
.domain-tags li::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--teal);
  border-radius: 50%;
  display: inline-block;
}

/* ==========================================================================
   GALERIE PRODUITS
   ========================================================================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.gallery-item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
  background: var(--paper);
  border: 1px solid var(--line);
  cursor: pointer;
  transition: box-shadow var(--med) var(--ease), border-color var(--med) var(--ease);
}
.gallery-item:hover {
  box-shadow: var(--shadow-lg);
  border-color: transparent;
  z-index: 2;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.gallery-item:hover img { transform: scale(1.08); }
.gallery-cap {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 0.9rem 1rem;
  background: linear-gradient(to top, rgba(20,22,30,0.88), transparent);
  color: var(--white);
  font-size: 0.88rem;
  font-weight: 600;
  transform: translateY(6px);
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.gallery-item:hover .gallery-cap { opacity: 1; transform: translateY(0); }

@media (max-width: 900px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ==========================================================================
   VISION
   ========================================================================== */
.vision-section {
  background: linear-gradient(135deg, var(--teal), var(--steel));
  color: var(--white);
  text-align: center;
}
.vision-section .wrap { max-width: 800px; }
.vision-section .section-num { border-color: rgba(255,255,255,0.4); color: var(--white); }
.vision-section h2 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  margin-bottom: 1.4rem;
}
.vision-section p {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.9);
  margin-bottom: 2.2rem;
}
.vision-tags {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.7rem;
}
.vision-tags span {
  border: 1px solid rgba(255,255,255,0.5);
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
}

/* ==========================================================================
   CONTACT
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: stretch;
}
.contact-info {
  border: 1px solid var(--line);
  padding: 2.2rem;
  background: var(--white);
}
.contact-row {
  display: flex;
  gap: 1rem;
  padding-block: 1.1rem;
  border-bottom: 1px solid var(--line);
  align-items: flex-start;
}
.contact-row:last-child { border-bottom: none; }
.contact-row .ico {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--paper);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: var(--teal);
}
.contact-row .ico svg { width: 18px; height: 18px; fill: currentColor; }
.contact-row .label {
  font-size: 0.8rem;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.contact-row .value {
  font-weight: 600;
  color: var(--navy);
  font-size: 1.05rem;
}
.contact-cta {
  background: var(--navy-deep);
  color: var(--white);
  padding: 2.4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.2rem;
  position: relative;
  overflow: hidden;
}
.contact-cta::before {
  content: "";
  position: absolute;
  right: -60px; top: -60px;
  width: 220px; height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(109,199,208,0.25), transparent 70%);
}
.contact-cta h3 { font-size: 1.7rem; position: relative; }
.contact-cta p { color: rgba(255,255,255,0.72); max-width: 40ch; position: relative; }
.contact-cta .btn { align-self: flex-start; position: relative; font-size: 1.05rem; padding: 1rem 1.9rem; }

@media (max-width: 820px) {
  .about-grid, .why-grid, .contact-grid { grid-template-columns: 1fr; }
  .about-frame { order: -1; }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background: var(--navy-deep);
  color: rgba(255,255,255,0.65);
  padding-block: 3.5rem 2rem;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-brand img { height: 34px; margin-bottom: 1rem; }
.footer-brand p { max-width: 34ch; font-size: 0.92rem; }
.footer-col h4 {
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.95rem;
  margin-bottom: 1.1rem;
}
.footer-col ul { display: grid; gap: 0.65rem; }
.footer-col a { font-size: 0.92rem; transition: color 0.2s ease; }
.footer-col a:hover { color: var(--cyan); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 1.6rem;
  font-size: 0.85rem;
}

@media (max-width: 820px) {
  .footer-top { grid-template-columns: 1fr; }
}

/* ==========================================================================
   WHATSAPP FLOTTANT
   ========================================================================== */
.wa-float {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 900;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--whatsapp);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 28px rgba(0,0,0,0.28);
  transition: transform var(--fast) var(--ease), box-shadow var(--fast) var(--ease);
}
.wa-float:hover {
  transform: scale(1.08) translateY(-2px);
  box-shadow: 0 16px 34px rgba(0,0,0,0.34);
}
.wa-float svg { width: 30px; height: 30px; fill: var(--white); }
.wa-float .pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--whatsapp);
  animation: pulse-ring 2.4s ease-out infinite;
  z-index: -1;
}
@keyframes pulse-ring {
  0% { transform: scale(1); opacity: 0.55; }
  100% { transform: scale(1.9); opacity: 0; }
}

/* ==========================================================================
   RESPONSIVE — HERO
   ========================================================================== */
@media (max-width: 980px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-mark { max-width: 280px; margin-inline: auto; order: -1; }
  .hero-stats { flex-wrap: wrap; }
}

@media (max-width: 480px) {
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { justify-content: center; }
}

/* ==========================================================================
   DÉTAILS PROFESSIONNELS — nav, liens, cartes contact
   ========================================================================== */
.main-nav a { position: relative; }
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: -1px;
  height: 2px;
  background: var(--cyan);
  transition: right var(--med) var(--ease);
}
.main-nav a:hover::after { right: 0; }

.contact-info, .about-frame, .timeline-body, .service-card {
  transition-property: border-color, box-shadow, transform, background-color;
}

.contact-row .ico { transition: background-color var(--fast) var(--ease), color var(--fast) var(--ease); }
.contact-row:hover .ico { background: var(--cyan); color: var(--navy-deep); }

.footer-col a { position: relative; }
.footer-col a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0;
  height: 1px;
  background: var(--cyan);
  transition: width var(--fast) var(--ease);
}
.footer-col a:hover::after { width: 100%; }

/* Image d'arrière-plan nette sur écrans HiDPI */
@media (min-resolution: 2dppx) {
  img { image-rendering: auto; }
}

/* ==========================================================================
   IMPRESSION
   ========================================================================== */
@media print {
  .site-header, .wa-float, .hero-mark, .nav-toggle, .hero::before { display: none !important; }
  .hero { background: none !important; color: #000 !important; padding-block: 1rem; }
  .hero h1, .hero-lede, .hero-tagline, .hero-stats .stat span { color: #000 !important; }
  .why-section, .vision-section, .contact-cta, .site-footer { background: none !important; color: #000 !important; }
  a { text-decoration: underline; }
  .btn { border: 1px solid #000 !important; box-shadow: none !important; color: #000 !important; background: none !important; }
  .section { padding-block: 1.5rem; }
  .gallery-item, .service-card, .about-frame, .timeline-body { box-shadow: none !important; break-inside: avoid; }
}
