/* ============================================================
   ASTERA CODE — Styles specifiques landing page
   ============================================================ */

.short {
  display: none;
}
@media (max-width: 760px) {
  .short {
    display: inline;
  }
  .nav-actions .btn-primary .long {
    display: none;
  }
}
@media (min-width: 761px) {
  .nav-actions .burger ~ * {
  }
}

/* ---- Reveal au scroll ----------------------------------------*/
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 700ms ease,
    transform 700ms ease;
}
[data-reveal].revealed {
  opacity: 1;
  transform: none;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  overflow: hidden;
  padding: var(--sp-xxxl) 0 var(--sp-xxl);
}
.hero-glow {
  position: absolute;
  inset: -10% -10% auto -10%;
  height: 560px;
  background:
    radial-gradient(
      60% 60% at 30% 20%,
      color-mix(in srgb, var(--primary) 28%, transparent),
      transparent 70%
    ),
    radial-gradient(
      50% 50% at 80% 10%,
      color-mix(in srgb, var(--secondary) 22%, transparent),
      transparent 70%
    );
  filter: blur(40px);
  pointer-events: none;
  transition: background var(--anim-slow) ease;
}
.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: var(--sp-xxl);
  align-items: center;
  padding-top: var(--sp-xl);
}
.hero-text h1 {
  margin-bottom: var(--sp-md);
}
.grad-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  font-size: 1.05rem;
  max-width: 480px;
  margin-bottom: var(--sp-xl);
}
.hero-cta {
  display: flex;
  gap: var(--sp-md);
  flex-wrap: wrap;
  margin-bottom: var(--sp-xl);
}
.hero-meta {
  display: flex;
  gap: var(--sp-xl);
}
.hero-meta div {
  display: flex;
  flex-direction: column;
}
.hero-meta strong {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary);
}
.hero-meta span {
  font-size: 0.78rem;
  color: var(--text-hint);
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 480px;
}
.phone-frame {
  width: 230px;
  border-radius: 32px;
  overflow: hidden;
  border: 6px solid var(--card-elevated);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.5);
  background: var(--card);
}
.phone-dark {
  position: relative;
  z-index: 2;
  transform: rotate(-4deg) translateY(10px);
}
.phone-float {
  position: absolute;
  right: -6%;
  bottom: -4%;
  z-index: 1;
  transform: rotate(7deg);
  opacity: 0.92;
}

@media (max-width: 980px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-sub {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-cta {
    justify-content: center;
  }
  .hero-meta {
    justify-content: center;
  }
  .hero-visual {
    margin-top: var(--sp-lg);
    min-height: 380px;
  }
  .phone-frame {
    width: 200px;
  }
}
@media (max-width: 480px) {
  .hero-meta {
    gap: var(--sp-lg);
  }
  .phone-frame {
    width: 170px;
  }
}

/* ============================================================
   FEATURES
   ============================================================ */
.features {
  padding: var(--sp-xxl) 0;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-lg);
}
.feature-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--sp-lg);
}
.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-short);
  color: #fff;
  margin-bottom: var(--sp-md);
}
.feature-icon svg {
  width: 22px;
  height: 22px;
}
.feature-item h3 {
  margin-bottom: var(--sp-xs);
  font-size: 1.02rem;
}
.feature-item p {
  font-size: 0.86rem;
}

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

/* ============================================================
   SECTION HEAD generique
   ============================================================ */
.section-head {
  max-width: 620px;
  margin: 0 auto var(--sp-xl);
  text-align: center;
}
.section-head .eyebrow {
  display: block;
  margin-bottom: var(--sp-sm);
}
.section-head h2 {
  margin-bottom: var(--sp-sm);
}

/* ============================================================
   LANGAGES
   ============================================================ */
.languages {
  padding: var(--sp-xxl) 0;
}
.lang-grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-sm);
  justify-content: center;
}
.lang-chip {
  padding: 10px 18px;
  border-radius: var(--radius-circle);
  background: var(--card);
  border: 1px solid var(--border);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--anim-fast) ease;
}
.lang-chip:hover {
  color: #fff;
  border-color: transparent;
  background: var(--gradient-short);
  transform: translateY(-2px);
}

/* ============================================================
   PROJETS
   ============================================================ */
.projects {
  padding: var(--sp-xxl) 0;
}
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-lg);
  margin-bottom: var(--sp-lg);
}
.project-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--sp-lg);
  transition:
    transform var(--anim-fast) ease,
    border-color var(--anim-fast) ease;
}
.project-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(
    in srgb,
    var(--pc, var(--primary)) 50%,
    var(--border)
  );
}
.project-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--sp-md);
}
.project-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--pc, var(--primary)) 16%, transparent);
  color: var(--pc, var(--primary));
}
.project-icon svg {
  width: 22px;
  height: 22px;
}
.project-card h3 {
  margin-bottom: var(--sp-xs);
}
.project-card p {
  font-size: 0.88rem;
}

.projects-note {
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
  flex-wrap: wrap;
  background: color-mix(in srgb, var(--primary) 10%, var(--card));
  border: 1px solid color-mix(in srgb, var(--primary) 30%, var(--border));
  border-radius: var(--radius-lg);
  padding: var(--sp-md) var(--sp-lg);
  font-size: 0.88rem;
  color: var(--text-secondary);
}
.projects-note svg {
  flex-shrink: 0;
  color: var(--primary);
}
.projects-note a {
  color: var(--primary);
  font-weight: 600;
  margin-left: auto;
}

@media (max-width: 900px) {
  .project-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 600px) {
  .project-grid {
    grid-template-columns: 1fr;
  }
  .projects-note a {
    margin-left: 0;
  }
}

/* ============================================================
   SHOWCASE (captures d'ecran)
   ============================================================ */
.showcase {
  padding: var(--sp-xxl) 0;
}
.showcase-row {
  display: flex;
  gap: var(--sp-md);
  justify-content: center;
  margin-bottom: var(--sp-md);
}
.shot-wide {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  width: 50%;
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.4);
}
.showcase-phones img {
  width: 160px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: 0 20px 40px -18px rgba(0, 0, 0, 0.4);
}
@media (max-width: 760px) {
  .showcase-row {
    flex-wrap: wrap;
  }
  .shot-wide {
    width: 100%;
  }
  .showcase-phones img {
    width: 30%;
    min-width: 100px;
  }
}

/* ============================================================
   CTA FINAL
   ============================================================ */
.cta-final {
  padding: var(--sp-xxl) 0;
}
.cta-inner {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--sp-xxl) var(--sp-xl);
}
.cta-inner h2 {
  margin-bottom: var(--sp-sm);
}
.cta-inner p {
  margin-bottom: var(--sp-lg);
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact {
  padding: var(--sp-xxl) 0;
}
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-md);
}
.contact-card {
  display: flex;
  align-items: center;
  gap: var(--sp-md);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--sp-md) var(--sp-lg);
  transition: all var(--anim-fast) ease;
}
.contact-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
}
.contact-img {
  width: 30px;
  height: 30px;
}
.contact-card h3 {
  font-size: 0.92rem;
  margin-bottom: 2px;
}
.contact-card span {
  font-size: 0.8rem;
  color: var(--text-hint);
  word-break: break-word;
}

@media (max-width: 760px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}
