/* Carte « drop » : produit a date de sortie (teaser floute, compte a rebours,
   inscription email). Les visuels nets ne sont servis par /api/drop/ qu'a l'heure. */

.project-card.drop-card {
  display: flex; flex-direction: column;
  grid-column: 1 / -1;
  border-color: rgba(120,255,0,.6);
  background: rgba(16,21,16,.92);
}
.project-card.drop-card:hover,
.project-card.drop-card:active { transform: none; }
.drop-card [hidden] { display: none !important; }

/* ---------- Visuel ---------- */
.drop-card .card-image { aspect-ratio: 4 / 3; }
.drop-card .card-image img { transition: opacity .45s ease, transform .45s ease; }
.drop-card .drop-img--hover { opacity: 0; }
.drop-card.is-teaser .card-image img { transform: scale(1.08); }
.drop-card.is-teaser .card-image::after {
  content: '?';
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--display); font-weight: 900;
  font-size: clamp(72px, 22vw, 120px); line-height: 1;
  color: rgba(255,255,255,.9);
  text-shadow: 0 0 34px rgba(120,255,0,.75);
  pointer-events: none;
}
@media (hover: hover) {
  .drop-card:hover .drop-img--hover { opacity: 1; }
  .drop-card.is-teaser:hover .card-image img { transform: scale(1.12); }
}
/* Tactile : pas de survol, les deux visuels alternent */
@media (hover: none) {
  .drop-card .drop-img--hover { animation: dropSwap 7s ease-in-out infinite; }
}
@keyframes dropSwap {
  0%, 42%  { opacity: 0; }
  50%, 92% { opacity: 1; }
  100%     { opacity: 0; }
}
/* Sortie : l'image nette arrive floutee puis se revele */
.drop-card .card-image img.is-revealing { animation: dropReveal 1.5s cubic-bezier(.16,1,.3,1) both; }
@keyframes dropReveal {
  from { filter: blur(26px); transform: scale(1.1); }
  to   { filter: blur(0);    transform: scale(1); }
}

/* ---------- Texte ---------- */
.drop-card .card-body { padding: 12px 20px 16px 16px; }
.drop-card .card-tags {
  position: absolute; top: 12px; left: 22px; z-index: 2;
  flex-direction: column; align-items: flex-start;
  margin: 0;
}
.drop-card .card-title { font-size: clamp(28px, 8.4vw, 36px); }
.drop-card .card-desc { font-size: 14px; }

/* ---------- Compte a rebours ---------- */
.drop-timer {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin-top: 12px;
}
.drop-unit {
  display: flex; flex-direction: column; align-items: center;
  padding: 7px 2px 6px;
  background: var(--black);
  box-shadow: inset 0 0 0 1px rgba(120,255,0,.32);
  clip-path: polygon(6px 0%, 100% 0%, calc(100% - 6px) 100%, 0% 100%);
}
.drop-unit b {
  font-family: var(--display); font-weight: 900;
  font-size: clamp(26px, 8vw, 34px); line-height: 1;
  color: var(--axis);
  font-variant-numeric: tabular-nums;
}
.drop-unit span {
  margin-top: 3px;
  font-size: 11px; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--ash);
}

/* ---------- Inscription ---------- */
.drop-card .card-cta { padding-top: 12px; }
.drop-card button.cta-chip {
  width: 100%;
  border: 0; cursor: pointer;
  min-height: 52px;
  font-size: clamp(17px, 5vw, 20px);
}
.drop-card button.cta-chip:hover { background: var(--axis-300); }
.drop-card .cta-chip:focus-visible,
.drop-form input:focus-visible { outline: 2px solid #fff; outline-offset: -4px; }
.drop-card .cta-dest { display: block; }

.drop-form { display: flex; gap: 6px; }
.drop-form input[type="email"] {
  flex: 1; min-width: 0;
  min-height: 52px;
  padding: 0 14px;
  background: var(--black);
  border: 1px solid rgba(120,255,0,.55);
  border-radius: 0;
  color: #fff;
  font-family: var(--body); font-size: 16px; /* 16px : pas de zoom auto sur iOS */
}
.drop-form input[type="email"]::placeholder { color: #7d867a; }
.drop-card .drop-form button.cta-chip { width: auto; flex: none; padding: 0 20px; }
.drop-form button[disabled] { opacity: .6; cursor: wait; }
.drop-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.drop-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.drop-msg {
  margin-top: 8px;
  font-size: 13px; line-height: 1.35; font-weight: 600;
  text-align: center;
  color: var(--axis-300);
}
.drop-msg:empty { display: none; }
.drop-msg.is-error { color: #fff; }
.drop-done {
  display: flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 6px 12px;
  box-shadow: inset 0 0 0 1px rgba(120,255,0,.55);
  color: var(--axis-300);
  font-weight: 700; font-size: 14px; text-align: center;
  clip-path: polygon(7px 0%, 100% 0%, calc(100% - 7px) 100%, 0% 100%);
}
.drop-card a.cta-chip { text-decoration: none; min-height: 52px; font-size: clamp(17px, 5vw, 20px); }

/* ---------- Tablette et plus : bandeau pleine largeur en tete de grille ---------- */
@media (min-width: 700px) {
  .project-card.drop-card {
    display: grid;
    grid-template-columns: minmax(240px, 34%) minmax(0, 1fr);
  }
  .drop-card .card-image { aspect-ratio: auto; min-height: 300px; }
  .drop-card .card-body { justify-content: center; padding: 22px 40px 22px 28px; }
  .drop-card .card-title { font-size: clamp(34px, 5vw, 46px); }
  .drop-card .card-desc { font-size: 16px; margin-top: 8px; }
  .drop-card .card-cta { margin-top: 0; padding-top: 16px; }
  .drop-timer { gap: 10px; margin-top: 16px; }
  .drop-unit b { font-size: clamp(34px, 4.6vw, 46px); }
  .drop-card.is-teaser .card-image::after { font-size: 120px; }
}
@media (min-width: 1000px) {
  .project-card.drop-card { grid-template-columns: minmax(260px, 24%) minmax(0, 1fr); }
  .project-card.drop-card::before {
    content: '';
    position: absolute; left: 0; right: 0; top: 0; height: 3px; z-index: 3;
    background: var(--axis);
  }
  .drop-card .card-image { min-height: 250px; }
  .drop-card .card-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(340px, 42%);
    column-gap: 40px; align-items: center;
    padding: 20px 46px 20px 32px;
  }
  .drop-info { min-width: 0; }
  .drop-timer { margin-top: 0; }
  .drop-card .cta-chip, .drop-card button.cta-chip, .drop-card a.cta-chip { min-height: 52px; font-size: 19px; }
}

/* ---------- Telephone en paysage : bandeau compact ---------- */
@media (orientation: landscape) and (max-height: 500px) {
  .project-card.drop-card {
    display: grid; grid-column: 1 / -1;
    grid-template-columns: 24% minmax(0, 1fr);
  }
  .drop-card .card-image { aspect-ratio: auto; min-height: 0; }
  .drop-card .card-body {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
    column-gap: 16px; align-items: center;
    padding: 10px 24px 10px 14px;
  }
  .drop-card .card-kicker, .drop-card .card-desc { display: none; }
  .drop-card .card-title { font-size: 24px; }
  .drop-timer { margin-top: 0; gap: 5px; }
  .drop-unit { padding: 4px 2px; }
  .drop-unit b { font-size: 22px; }
  .drop-card .card-cta { padding-top: 8px; }
  .drop-card .cta-chip, .drop-card button.cta-chip, .drop-form input[type="email"], .drop-done { min-height: 40px; font-size: 15px; }
  .drop-card .cta-dest { display: none; }
  .drop-card.is-teaser .card-image::after { font-size: 64px; }
}

/* ---------- Barre de la page demo ---------- */
.demo-bar {
  position: sticky; top: 0; z-index: 1000;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 8px 10px;
  padding: 10px 14px;
  background: #fff; color: #050705;
  font-family: var(--body); font-size: 13px; font-weight: 600;
}
.demo-bar strong { text-transform: uppercase; letter-spacing: .08em; }
.demo-bar button {
  padding: 8px 14px;
  border: 0; cursor: pointer;
  background: #050705; color: #fff;
  font: inherit; font-weight: 700;
}
.demo-bar button[aria-pressed="true"] { background: #3E8500; }
.demo-bar span { flex-basis: 100%; text-align: center; font-weight: 500; }

.project-card:nth-child(5) { animation-delay: .44s; }
