/* ============================================================
   app-landing.css — Styles partagés pour les pages apps
   Utilisé par SailLog, StayLog, ASBLeasy (et futurs apps)
   Complète style.css sans le dupliquer.
   ============================================================ */

/* ---------- Surcharges couleur par app (via CSS vars) ---------- */
/* Chaque app définit dans un <style> inline :
   --app-primary, --app-primary-dark, --app-secondary,
   --app-gradient-from, --app-gradient-to
   Ces vars remplacent les couleurs du thème e-neoSolutions. */

/* ---------- App Nav ---------- */
.app-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
  transition: box-shadow .2s ease;
}

.app-nav.scrolled { box-shadow: var(--shadow-md); }

.app-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
  gap: 1rem;
}

.app-nav__back {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .8rem;
  font-weight: 500;
  color: var(--color-text-muted);
  transition: color .2s;
  white-space: nowrap;
}

.app-nav__back:hover { color: var(--app-primary, var(--color-primary)); }

.app-nav__brand {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--app-secondary, var(--color-secondary));
  letter-spacing: -.02em;
}

.app-nav__icon {
  width: 2rem; height: 2rem;
  border-radius: .5rem;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  background: var(--app-gradient-from, var(--color-primary));
}

.app-nav__cta {
  background: var(--app-primary, var(--color-primary));
}

.app-nav__cta:hover {
  background: var(--app-primary-dark, var(--color-primary-dark));
}

/* ---------- App Hero ---------- */
.app-hero {
  padding: 5rem 0 4rem;
  background: linear-gradient(
    135deg,
    #f8fafc 0%,
    color-mix(in srgb, var(--app-gradient-from, #dbeafe) 15%, #fff) 60%,
    color-mix(in srgb, var(--app-gradient-from, #bfdbfe) 25%, #fff) 100%
  );
  overflow: hidden;
  position: relative;
}

.app-hero::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 500px; height: 500px;
  background: radial-gradient(circle,
    color-mix(in srgb, var(--app-gradient-from, #3b82f6) 12%, transparent) 0%,
    transparent 70%);
  pointer-events: none;
}

.app-hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.app-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: color-mix(in srgb, var(--app-primary, var(--color-primary)) 10%, transparent);
  color: var(--app-primary, var(--color-primary));
  padding: .375rem .875rem;
  border-radius: 2rem;
  font-size: .8rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.app-hero__icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: block;
}

.app-hero__title {
  font-size: 3.25rem;
  font-weight: 900;
  line-height: 1.05;
  color: var(--app-secondary, var(--color-secondary));
  letter-spacing: -.04em;
  margin-bottom: .5rem;
}

.app-hero__tagline {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--app-primary, var(--color-primary));
  margin-bottom: 1.25rem;
  line-height: 1.4;
}

.app-hero__desc {
  font-size: 1rem;
  color: var(--color-text-muted);
  line-height: 1.75;
  margin-bottom: 2rem;
  max-width: 520px;
}

.app-hero__platforms {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin-bottom: 1.75rem;
}

.app-hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  align-items: center;
}

/* Boutons de téléchargement hero */
.dl-btn {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .7rem 1.4rem;
  border-radius: .5rem;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: .9rem;
  transition: transform .2s, box-shadow .2s, background .2s;
  border: 1.5px solid transparent;
}

.dl-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

.dl-btn--play {
  background: #1a1a2e;
  color: #fff;
}
.dl-btn--play:hover { background: #0f0f1a; }

.dl-btn--apple {
  background: var(--color-secondary);
  color: #fff;
}
.dl-btn--apple:hover { background: #000; }

.dl-btn--web {
  background: color-mix(in srgb, var(--app-primary, #0ea5e9) 12%, transparent);
  color: var(--app-primary, #0ea5e9);
  border-color: color-mix(in srgb, var(--app-primary, #0ea5e9) 30%, transparent);
}
.dl-btn--web:hover {
  background: var(--app-primary, #0ea5e9);
  color: #fff;
}

.dl-btn--windows {
  background: rgba(0,120,212,.1);
  color: #0070c0;
  border-color: rgba(0,120,212,.3);
}
.dl-btn--windows:hover {
  background: #0070c0;
  color: #fff;
}

/* ---------- Phone mockup ---------- */
.phone-visual {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: -1.5rem;
  position: relative;
}

.phone-frame {
  width: 220px;
  border-radius: 2.5rem;
  background: var(--color-secondary);
  padding: .75rem .5rem;
  box-shadow: 0 30px 60px rgba(0,0,0,.2), 0 10px 20px rgba(0,0,0,.1);
  position: relative;
  flex-shrink: 0;
}

.phone-frame--offset { margin-top: 2.5rem; opacity: .7; transform: scale(.9); }

.phone-notch {
  width: 70px;
  height: 8px;
  background: rgba(255,255,255,.15);
  border-radius: 4px;
  margin: 0 auto .5rem;
}

.phone-screen {
  background: linear-gradient(
    160deg,
    color-mix(in srgb, var(--app-gradient-from, #0ea5e9) 90%, #000) 0%,
    color-mix(in srgb, var(--app-gradient-to, #0369a1) 90%, #000) 100%
  );
  border-radius: 1.75rem;
  aspect-ratio: 9/19;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  gap: .75rem;
  overflow: hidden;
  position: relative;
}

.phone-screen::before {
  content: '';
  position: absolute;
  top: -30%; left: -30%;
  width: 160%; height: 160%;
  background: radial-gradient(circle at 40% 40%, rgba(255,255,255,.12) 0%, transparent 60%);
}

.phone-screen__icon {
  font-size: 2.5rem;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,.3));
}

.phone-screen__name {
  font-weight: 800;
  font-size: 1.1rem;
  color: #fff;
  letter-spacing: -.02em;
}

.phone-screen__bar {
  width: 80%;
  height: 6px;
  background: rgba(255,255,255,.2);
  border-radius: 3px;
}

.phone-screen__bar--short { width: 55%; }

.phone-screen__card {
  width: 90%;
  background: rgba(255,255,255,.15);
  border-radius: .75rem;
  padding: .6rem .75rem;
  backdrop-filter: blur(4px);
}

.phone-screen__card-label {
  font-size: .6rem;
  color: rgba(255,255,255,.6);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: .25rem;
}

.phone-screen__card-value {
  font-size: .85rem;
  font-weight: 700;
  color: #fff;
}

/* ---------- Section features ---------- */
.app-features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.feature-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}

.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--app-primary, var(--color-primary));
}

.feature-card__icon {
  width: 2.75rem; height: 2.75rem;
  border-radius: .625rem;
  background: color-mix(in srgb, var(--app-primary, var(--color-primary)) 10%, transparent);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.feature-card__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--app-secondary, var(--color-secondary));
  margin-bottom: .5rem;
}

.feature-card__desc {
  font-size: .85rem;
  color: var(--color-text-muted);
  line-height: 1.65;
}

/* ---------- Section "Comment ça marche" ---------- */
.app-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  position: relative;
}

.app-steps::before {
  content: '';
  position: absolute;
  top: 1.75rem;
  left: calc(12.5% + 1rem);
  right: calc(12.5% + 1rem);
  height: 2px;
  background: linear-gradient(
    to right,
    var(--app-primary, var(--color-primary)),
    color-mix(in srgb, var(--app-primary, var(--color-primary)) 40%, transparent)
  );
}

.app-step {
  text-align: center;
  padding: 0 .5rem;
  position: relative;
}

.app-step__num {
  width: 3.5rem; height: 3.5rem;
  border-radius: 50%;
  background: var(--app-primary, var(--color-primary));
  color: #fff;
  font-size: 1.1rem;
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1rem;
  position: relative;
  z-index: 1;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--app-primary, var(--color-primary)) 15%, transparent);
}

.app-step__title {
  font-size: .9rem;
  font-weight: 700;
  color: var(--app-secondary, var(--color-secondary));
  margin-bottom: .4rem;
  line-height: 1.3;
}

.app-step__desc {
  font-size: .8rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* ---------- Section screenshots (placeholders) ---------- */
.screenshots__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.screenshot-placeholder {
  border-radius: 1.5rem;
  background: linear-gradient(
    160deg,
    color-mix(in srgb, var(--app-gradient-from, var(--color-primary)) 85%, #fff) 0%,
    color-mix(in srgb, var(--app-gradient-to, var(--color-primary-dark)) 85%, #000) 100%
  );
  aspect-ratio: 9/19;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  box-shadow: 0 20px 40px rgba(0,0,0,.15);
  position: relative;
  overflow: hidden;
}

.screenshot-placeholder::before {
  content: '';
  position: absolute;
  top: -40%; left: -40%;
  width: 180%; height: 180%;
  background: radial-gradient(circle at 40% 35%, rgba(255,255,255,.15) 0%, transparent 55%);
}

.screenshot-placeholder:nth-child(even) { margin-top: 1.5rem; }

.screenshot-placeholder__icon { font-size: 2rem; }
.screenshot-placeholder__label {
  font-size: .7rem;
  font-weight: 600;
  color: rgba(255,255,255,.7);
  text-transform: uppercase;
  letter-spacing: .06em;
}

/* ---------- CTA de téléchargement final ---------- */
.download-cta {
  text-align: center;
  padding: 5rem 0;
  background: linear-gradient(
    135deg,
    var(--app-secondary, var(--color-secondary)) 0%,
    color-mix(in srgb, var(--app-secondary, var(--color-secondary)) 70%, var(--app-primary, var(--color-primary))) 100%
  );
  color: #fff;
}

.download-cta__title {
  font-size: 2.25rem;
  font-weight: 800;
  margin-bottom: .75rem;
  letter-spacing: -.03em;
}

.download-cta__subtitle {
  font-size: 1rem;
  color: rgba(255,255,255,.75);
  margin-bottom: 2.5rem;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

.download-cta__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

/* ---------- Footer app ---------- */
.app-footer {
  background: var(--app-secondary, var(--color-secondary));
  color: #64748b;
  padding: 1.5rem 0;
  border-top: 1px solid rgba(255,255,255,.06);
}

.app-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: .8rem;
}

.app-footer__copy { color: #94a3b8; }

.app-footer__links {
  display: flex;
  gap: 1.5rem;
}

.app-footer__link {
  color: #94a3b8;
  transition: color .2s;
}
.app-footer__link:hover { color: #fff; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .app-hero__inner { grid-template-columns: 1fr; gap: 3rem; }
  .phone-visual { flex-direction: row; justify-content: center; }
  .phone-frame--offset { display: none; }
  .app-features__grid { grid-template-columns: repeat(2, 1fr); }
  .app-steps { grid-template-columns: repeat(2, 1fr); }
  .app-steps::before { display: none; }
  .screenshots__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .app-hero__title { font-size: 2.25rem; }
  .app-features__grid { grid-template-columns: repeat(2, 1fr); }
  .app-steps { grid-template-columns: repeat(2, 1fr); }
  .screenshots__grid { grid-template-columns: repeat(2, 1fr); }
  .screenshots__grid .screenshot-placeholder:nth-child(even) { margin-top: 0; }
  .download-cta__title { font-size: 1.75rem; }
}

@media (max-width: 480px) {
  .app-hero__title { font-size: 1.9rem; }
  .app-hero__ctas { flex-direction: column; }
  .app-hero__ctas .dl-btn { width: 100%; justify-content: center; }
  .app-features__grid { grid-template-columns: 1fr; }
  .app-steps { grid-template-columns: 1fr; }
  .screenshots__grid { grid-template-columns: 1fr; }
  .download-cta__buttons { flex-direction: column; align-items: center; }
  .download-cta__buttons .dl-btn { width: 100%; max-width: 280px; justify-content: center; }
}
