/* Blinkit — calque photo : hero plein écran, sections imagées, logo.
   Palette premium : vert sapin profond + beige doré, repris de la marque. */

:root {
  --sapin: #1f4d3a;
  --sapin-deep: #122e22;
  --dore: #c9a961;
  --dore-soft: rgba(201, 169, 97, 0.16);
}

/* ── Logo / marque ──────────────────────────────────────────── */
.brand-mark {
  width: 50px;
  height: 50px;
  border-radius: 13px;
  object-fit: cover;
  display: block;
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(10, 24, 14, 0.22);
  transition: width 0.35s ease, height 0.35s ease, box-shadow 0.35s ease;
}
.nav.scrolled .brand-mark { width: 42px; height: 42px; }

/* ── Nav posée sur le hero sombre (état haut, texte clair) ──── */
.nav:not(.scrolled) .name { color: #f7f8f4; }
.nav:not(.scrolled) .sub { color: rgba(247, 248, 244, 0.6); }
.nav:not(.scrolled) .nav-links a { color: rgba(247, 248, 244, 0.82); }
.nav:not(.scrolled) .nav-links a:hover { color: #fff; }
.nav:not(.scrolled) .nav-links a::after { background: var(--dore); }
.nav:not(.scrolled) .nav-cta {
  color: #f7f8f4;
  border-color: rgba(247, 248, 244, 0.5);
}
.nav:not(.scrolled) .nav-cta:hover {
  background: #f7f8f4;
  color: var(--sapin);
  border-color: #f7f8f4;
}

/* ── Hero plein écran ───────────────────────────────────────── */
.hero {
  position: relative;
  min-height: min(96vh, 920px);
  display: flex;
  align-items: center;
  margin-top: -92px;            /* remonte sous la nav transparente */
  padding-top: 132px;
  padding-bottom: 76px;
  overflow: hidden;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-media img,
.hero-media .hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 66% center;
  animation: hero-zoom 18s var(--ease) forwards;
}
@keyframes hero-zoom {
  from { transform: scale(1.06); }
  to   { transform: scale(1); }
}
.hero-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(98deg,
      rgba(18, 46, 34, 0.95) 0%,
      rgba(20, 50, 36, 0.82) 30%,
      rgba(20, 50, 36, 0.36) 54%,
      rgba(20, 50, 36, 0.05) 78%),
    linear-gradient(0deg, rgba(9, 24, 16, 0.62) 0%, rgba(9, 24, 16, 0) 46%),
    linear-gradient(225deg, rgba(6, 16, 10, 0.97) 0%, rgba(6, 16, 10, 0.82) 7%, rgba(6, 16, 10, 0) 18%),
    radial-gradient(120% 80% at 50% 120%, rgba(9, 24, 16, 0.4), rgba(9, 24, 16, 0) 60%);
}
.hero-inner {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 720px;
}
.hero h1 { color: #f7f8f4; }
.hero .hero-eyebrow .rule { background: var(--dore); }
.hero .hero-eyebrow .mono-tag { color: var(--dore); }
.hero h1 .tw {
  color: var(--dore);
  border-right-color: var(--dore);
}
.hero-sub {
  font-size: 19px;
  line-height: 1.66;
  color: rgba(247, 248, 244, 0.86);
  max-width: 50ch;
  margin: 34px 0 0;
}
.hero .hero-actions {
  justify-content: flex-start;
  margin-top: 44px;
}
.hero .btn-primary {
  background: #f7f8f4;
  color: var(--sapin);
}
.hero .btn-primary::before { background: var(--accent); }
.hero .btn-primary:hover { color: #fff; }
.hero .btn-ghost {
  color: #f7f8f4;
  border-bottom-color: rgba(247, 248, 244, 0.6);
}
.hero .btn-ghost:hover { color: var(--dore); border-bottom-color: var(--dore); }
.hero .hero-trust {
  margin-top: 52px;
  color: rgba(247, 248, 244, 0.72);
}
.hero .hero-trust .sep { background: rgba(247, 248, 244, 0.34); }

/* tracking : trajet pointillé + colis qui suit la ligne + pins (SVG) */
.hero-route {
  position: absolute;
  z-index: 2;
  top: 7%;
  left: 33%;
  width: 60%;
  aspect-ratio: 600 / 280;
  height: auto;
  overflow: visible;
  pointer-events: none;
}
.route-line {
  fill: none;
  stroke: rgba(247, 248, 244, 0.62);
  stroke-width: 1.4;
  stroke-dasharray: 2.5 7;
  stroke-linecap: round;
  clip-path: inset(0 100% 0 0);
  animation: hero-path-reveal 2.4s var(--ease) 0.4s forwards,
             hero-path-march 1.6s linear 2.8s infinite;
}
@keyframes hero-path-reveal { to { clip-path: inset(0 0 0 0); } }
@keyframes hero-path-march { to { stroke-dashoffset: -19; } }

.rpin .dot { fill: var(--dore); }
.rpin-end .dot { fill: #fffdf6; }
.rpin .ripple {
  fill: none;
  stroke: var(--dore);
  stroke-width: 1.4;
  transform-box: fill-box;
  transform-origin: center;
  opacity: 0;
  animation: route-ripple 2.8s ease-out infinite;
  animation-delay: var(--d, 0s);
}
.rpin-end .ripple { stroke: #fffdf6; }
@keyframes route-ripple {
  0%   { transform: scale(0.5); opacity: 0.7; }
  70%  { transform: scale(3.2); opacity: 0; }
  100% { opacity: 0; }
}

/* le colis */
.parcel .p-box {
  fill: var(--dore);
  stroke: #fffdf6;
  stroke-width: 0.9;
}
.parcel .p-seam {
  stroke: rgba(255, 253, 246, 0.75);
  stroke-width: 0.8;
}
.parcel {
  filter: drop-shadow(0 2px 4px rgba(10, 24, 14, 0.45));
}

/* ── Widget téléphone redesign — hero ── */
.hero-phone {
  position: absolute;
  z-index: 4;
  right: 72px;
  top: 54%;
  transform: translateY(-50%);
  opacity: 0;
  animation: phone-in 0.9s var(--ease) 1s forwards;
}
@keyframes phone-in { to { opacity: 1; } }

.hp-frame {
  position: relative;
  width: 202px;
  background:
    radial-gradient(ellipse at 50% 55%, rgba(31, 157, 58, 0.07) 0%, transparent 62%),
    linear-gradient(162deg, rgba(16, 40, 26, 0.70) 0%, rgba(5, 14, 9, 0.88) 100%);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-top-color: rgba(255, 255, 255, 0.28);
  border-radius: 40px;
  padding: 14px 13px 20px;
  display: flex;
  flex-direction: column;
  gap: 0;
  box-shadow:
    0 40px 88px -22px rgba(2, 8, 4, 0.9),
    0 12px 32px -12px rgba(2, 8, 4, 0.6),
    inset 0 1.5px 0 rgba(255, 255, 255, 0.22),
    inset 0 -1px 0 rgba(255, 255, 255, 0.05),
    inset 1px 0 0 rgba(255, 255, 255, 0.06);
  -webkit-backdrop-filter: blur(24px) saturate(1.6);
  backdrop-filter: blur(24px) saturate(1.6);
}
/* Boutons volume */
.hp-frame::before {
  content: "";
  position: absolute;
  left: -3.5px; top: 76px;
  width: 3.5px; height: 26px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 2px 0 0 2px;
  box-shadow: 0 36px 0 rgba(255, 255, 255, 0.15);
}
/* Bouton power */
.hp-frame::after {
  content: "";
  position: absolute;
  right: -3.5px; top: 96px;
  width: 3.5px; height: 40px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 0 2px 2px 0;
}

/* Dynamic Island */
.hp-island {
  width: 44px; height: 11px;
  background: rgba(4, 12, 7, 0.97);
  border-radius: 10px;
  margin: 0 auto 10px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

/* Status bar */
.hp-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 5px;
  margin-bottom: 10px;
}
.hp-clock {
  font-family: var(--sans);
  font-size: 11.5px;
  font-weight: 600;
  color: #fffdf6;
  letter-spacing: 0.02em;
}
.hp-icons { display: flex; align-items: center; gap: 5px; }

/* Separateur */
.hp-sep {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1) 30%, rgba(255,255,255,0.1) 70%, transparent);
  margin: 0 4px 10px;
}

/* Label lock screen */
.hp-lock-label {
  text-align: center;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dore);
  margin-bottom: 10px;
  opacity: 0.85;
}

/* Zone notifications */
.hp-notifs {
  position: relative;
  height: 152px;
  overflow: hidden;
  border-radius: 16px;
  margin-bottom: 14px;
}
.hp-notif {
  position: absolute;
  top: 0; left: 0; right: 0;
  display: flex;
  gap: 11px;
  align-items: flex-start;
  background: rgba(16, 44, 28, 0.78);
  border: 1px solid rgba(201, 169, 97, 0.2);
  border-top-color: rgba(201, 169, 97, 0.32);
  border-radius: 16px;
  padding: 12px 13px;
  opacity: 0;
  transform: translateY(-118%);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  animation: notif-cycle 9s ease-in-out infinite;
  box-shadow:
    0 8px 28px -8px rgba(2, 8, 4, 0.7),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}
/* Carte fantôme en dessous (effet stack) */
.hp-notif::after {
  content: "";
  position: absolute;
  bottom: -7px; left: 8px; right: 8px;
  height: 100%;
  background: rgba(16, 44, 28, 0.45);
  border: 1px solid rgba(201, 169, 97, 0.1);
  border-radius: 15px;
  z-index: -1;
}
.hp-n1 { animation-delay: 0.6s; }
.hp-n2 { animation-delay: 3.6s; }
.hp-n3 { animation-delay: 6.6s; }
@keyframes notif-cycle {
  0%   { transform: translateY(-118%); opacity: 0; }
  6%   { transform: translateY(0);      opacity: 1; }
  27%  { transform: translateY(0);      opacity: 1; }
  34%  { transform: translateY(-118%);  opacity: 0; }
  100% { transform: translateY(-118%);  opacity: 0; }
}
.hp-notif-icon {
  width: 32px; height: 32px;
  border-radius: 10px;
  background: linear-gradient(138deg, #2cc15e 0%, #178038 100%);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  box-shadow: 0 4px 14px rgba(28, 157, 74, 0.5),
              inset 0 1px 0 rgba(255,255,255,0.25);
  letter-spacing: -0.02em;
}
.hp-notif-content { flex: 1; min-width: 0; }
.hp-notif-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 4px;
}
.hp-notif-app {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--dore);
}
.hp-notif-time {
  font-family: var(--mono);
  font-size: 8.5px;
  color: rgba(247, 248, 244, 0.4);
}
.hp-notif-msg {
  font-family: var(--sans);
  font-size: 12px;
  line-height: 1.42;
  color: rgba(247, 248, 244, 0.94);
}

/* Barre de progression livraison */
.hp-progress { padding: 0 3px; }
.hp-prog-track {
  display: flex;
  align-items: center;
  margin-bottom: 6px;
}
.hp-prog-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  flex-shrink: 0;
  border: 1.5px solid rgba(255, 255, 255, 0.12);
}
.hp-prog-dot.done {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 6px rgba(31, 157, 58, 0.5);
}
.hp-prog-dot.active {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 0 0 rgba(31, 157, 58, 0.55);
  animation: prog-pulse 2s ease-out infinite;
}
.hp-prog-line {
  flex: 1;
  height: 1.5px;
  background: rgba(255, 255, 255, 0.12);
}
.hp-prog-line.done {
  background: linear-gradient(90deg, var(--accent), rgba(31,157,58,0.7));
}
@keyframes prog-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(31, 157, 58, 0.55); }
  70%  { box-shadow: 0 0 0 7px rgba(31, 157, 58, 0); }
  100% { box-shadow: 0 0 0 0 rgba(31, 157, 58, 0); }
}
.hp-prog-labels {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 7.5px;
  letter-spacing: 0.04em;
  color: rgba(247, 248, 244, 0.36);
}
.hp-prog-labels span:nth-child(2) { color: var(--dore); opacity: 0.9; }

/* Home bar */
.hp-home {
  width: 54px; height: 4px;
  background: rgba(255, 255, 255, 0.28);
  border-radius: 2px;
  margin: 16px auto 0;
}

@media (max-width: 1024px) {
  .hero-phone { right: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-phone { animation: none; opacity: 1; }
  .hp-notif { animation: none; opacity: 1; transform: translateY(0); position: relative; margin-bottom: 6px; }
  .hp-n2, .hp-n3 { top: auto; }
  .hp-prog-dot.active { animation: none; }
}

/* ── Photos d'ambiance dans les sections claires ────────────── */
/* ── Photos / vidéos d'ambiance dans les sections claires ── */
img.about-media,
.about-media {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 11;
  object-fit: cover;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 26px 60px -28px rgba(18, 46, 34, 0.5);
}
.about-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ── Section Suivi / technologie ────────────────────────────── */
.track { padding-top: 96px; padding-bottom: 100px; }
.track-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 64px;
  align-items: center;
  margin-top: 48px;
}
.track-media {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 30px 70px -30px rgba(18, 46, 34, 0.55);
}
.track-media img,
.track-media video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  aspect-ratio: 16 / 10;
}
.track-steps { list-style: none; margin: 8px 0 0; padding: 0; }
.track-steps li {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 22px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}
.track-steps li:last-child { border-bottom: 1px solid var(--line); }
.track-steps .st-num {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--accent);
  padding-top: 5px;
}
.track-steps h4 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 22px;
  letter-spacing: -0.01em;
  margin: 0 0 6px;
}
.track-steps p {
  color: var(--sub);
  font-size: 14.5px;
  line-height: 1.6;
  margin: 0;
  max-width: 46ch;
}

/* ── Section Confiance / remise du colis ────────────────────── */
.trust-band {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: #f7f8f4;
}
.trust-band .tb-media { position: absolute; inset: 0; z-index: 0; }
.trust-band .tb-media img,
.trust-band .tb-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 38%;
}
.trust-band .tb-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, rgba(12, 32, 21, 0.9) 0%, rgba(12, 32, 21, 0.32) 38%, rgba(12, 32, 21, 0) 64%);
}
.trust-band .tb-inner {
  position: relative;
  z-index: 2;
  padding: 0 72px 72px;
  max-width: 760px;
}
.trust-band .tb-tag {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dore);
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}
.trust-band .tb-tag::before {
  content: "";
  width: 48px;
  height: 1px;
  background: var(--dore);
}
.trust-band h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(34px, 3.6vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 22px;
  text-wrap: balance;
}
.trust-band h2 em { font-style: italic; color: var(--dore); }
.trust-band p {
  font-size: 17px;
  line-height: 1.7;
  color: rgba(247, 248, 244, 0.86);
  max-width: 54ch;
  margin: 0;
}

/* ── Engagement : emblème circulaire (cœur émotionnel) ──────── */
.engage-emblem {
  justify-self: center;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid rgba(201, 169, 97, 0.5);
  box-shadow: inset 0 0 0 8px rgba(201, 169, 97, 0.08);
  position: relative;
}
.engage-emblem::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 50%;
  border: 1px solid transparent;
  border-top-color: var(--dore);
  border-right-color: var(--dore);
  animation: emblem-spin 9s linear infinite;
}
@keyframes emblem-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .engage-emblem::after { animation: none; }
}
.engage-emblem .big {
  font-family: var(--serif);
  font-size: 74px;
  line-height: 1;
  color: var(--dore);
  letter-spacing: -0.02em;
}
.engage-emblem .big i { font-style: italic; font-size: 0.5em; }
.engage-emblem .lbl {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(247, 248, 244, 0.7);
}

/* ── Footer : logo ──────────────────────────────────────────── */
.footer-logo {
  width: 64px;
  height: 64px;
  border-radius: 15px;
  object-fit: cover;
  flex-shrink: 0;
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero { min-height: 86vh; margin-top: -84px; padding-top: 120px; }
  .hero-inner { max-width: none; }
  .hero-live { right: 40px; bottom: 40px; }
  .hero-phone { right: 28px; bottom: 44px; }
  .track-grid { grid-template-columns: 1fr; gap: 40px; }
  .trust-band .tb-inner { padding: 0 40px 56px; }
  .trust-band { min-height: 70vh; }
}
@media (max-width: 640px) {
  .hero-route { left: 8%; width: 88%; top: 5%; }
  .hero-live { display: none; }
  .hero-phone { display: none; }
  .hero-veil {
    background:
      linear-gradient(0deg, rgba(14, 38, 25, 0.92) 0%, rgba(16, 42, 28, 0.6) 50%, rgba(16, 42, 28, 0.35) 100%);
  }
  .trust-band .tb-inner { padding: 0 22px 44px; }
  .engage-emblem { width: 200px; height: 200px; }
  .engage-emblem .big { font-size: 60px; }
}
