/* ==========================================================================
   LA MINE : landing. Blocs pleine couleur aux couleurs du logo, titres au
   comptoir, un écran réel par bloc. Aucune dépendance, polices auto-hébergées.
   ========================================================================== */

@font-face {
  font-family: 'Montserrat';
  font-weight: 800;
  font-style: normal;
  font-display: swap;
  src: url('../fonts/montserrat-800.woff2') format('woff2');
}
@font-face {
  font-family: 'Instrument Sans';
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  src: url('../fonts/instrument-sans-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Instrument Sans';
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  src: url('../fonts/instrument-sans-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Instrument Sans';
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  src: url('../fonts/instrument-sans-700.woff2') format('woff2');
}

/* --- Tokens ------------------------------------------------------------- */
:root {
  --navy: #0a0b4f;
  --navy-deep: #06073a;
  --navy-shadow: #050632;
  --orange: #fd7500;
  --orange-shadow: #c85c00;
  --orange-soft: #ffecdb;
  --white: #ffffff;
  --white-78: rgba(255, 255, 255, 0.78);
  --white-55: rgba(255, 255, 255, 0.55);
  --navy-72: rgba(10, 11, 79, 0.72);
  --font-display: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
  --font-text: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --shell: 1280px;
  --gutter: 24px;
  --block: 96px;
  --radius: 18px;
}
@media (min-width: 768px) {
  :root {
    --gutter: 48px;
    --block: 128px;
  }
}

/* --- Base --------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--navy);
  color: var(--white);
  font: 500 18px/1.55 var(--font-text);
  -webkit-font-smoothing: antialiased;
}
h1,
h2,
p {
  margin: 0;
}
h1,
h2 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.045em;
  text-wrap: balance;
}
h1 {
  font-size: clamp(46px, 7.2vw, 104px);
}
h2 {
  font-size: clamp(36px, 4.8vw, 66px);
}
a {
  color: inherit;
  text-decoration: none;
}
img,
svg {
  display: block;
  max-width: 100%;
}
.shell {
  width: min(100% - 2 * var(--gutter), var(--shell));
  margin-inline: auto;
}
:focus-visible {
  outline: 3px solid currentColor;
  outline-offset: 4px;
  border-radius: 6px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 14px 20px;
  border-radius: var(--radius);
  background: var(--white);
  color: var(--navy);
  font-weight: 700;
  transform: translateY(-200%);
}
.skip-link:focus {
  transform: none;
}

/* --- Marque --------------------------------------------------------------- */
.brand {
  display: inline-block;
}
.logo {
  height: 64px;
  width: auto;
}
.footer .logo {
  height: 48px;
}

/* --- Boutons épais ---------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 64px;
  padding: 0 30px;
  border-radius: var(--radius);
  border: 2.5px solid transparent;
  font: 700 18px/1 var(--font-text);
  white-space: nowrap;
  cursor: pointer;
  transition:
    translate 140ms ease-out,
    box-shadow 140ms ease-out,
    background-color 140ms ease-out,
    border-color 140ms ease-out;
}
.btn__icon {
  width: 24px;
  height: 24px;
  flex: none;
}
.btn--orange {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--navy);
  box-shadow: 0 6px 0 var(--orange-shadow);
}
.btn--orange:hover {
  translate: 0 -2px;
  box-shadow: 0 8px 0 var(--orange-shadow);
}
.btn--orange:active {
  translate: 0 4px;
  box-shadow: 0 2px 0 var(--orange-shadow);
}
.btn--navy {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
  box-shadow: 0 6px 0 var(--navy-shadow);
}
.btn--navy:hover {
  translate: 0 -2px;
  box-shadow: 0 8px 0 var(--navy-shadow);
}
.btn--navy:active {
  translate: 0 4px;
  box-shadow: 0 2px 0 var(--navy-shadow);
}
.btn--ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.55);
  color: var(--white);
}
.btn--ghost:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

/* --- Cadres téléphone --------------------------------------------------------- */
.phone {
  width: var(--phone-w, 340px);
  padding: 11px;
  border-radius: 48px;
  background: var(--navy-deep);
  box-shadow: 0 40px 80px rgba(6, 7, 58, 0.35);
  flex: none;
}
.phone img {
  width: 100%;
  height: auto;
  border-radius: 38px;
}
.block--navy .phone {
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.16),
    0 40px 80px rgba(0, 0, 0, 0.45);
}
/* L'inclinaison de repos (data-rotate) est posée en CSS pour le no-JS ;
   avec GSAP, c'est lui qui la porte. */
.js .phone {
  rotate: none;
}

/* --- Blocs pleine couleur -------------------------------------------------- */
.block {
  position: relative;
  overflow: hidden;
  padding-block: var(--block);
}
.block--navy {
  background: var(--navy);
  color: var(--white);
}
.block--white {
  background: var(--white);
  color: var(--navy);
}
.block__grid {
  display: grid;
  gap: 48px;
  align-items: center;
}
.block__text {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 640px;
}
.block__text p {
  font-size: 20px;
  line-height: 1.55;
}
.block--navy .block__text p {
  color: var(--white-78);
}
.block--white .block__text p {
  color: var(--navy-72);
}
.list {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.4;
}
.list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.list li::before {
  content: '';
  width: 10px;
  height: 10px;
  margin-top: 9px;
  border-radius: 50%;
  background: currentColor;
  flex: none;
  opacity: 0.9;
}
.block__phone {
  --phone-w: 300px;
  justify-self: center;
  rotate: -4deg;
}
.block__grid--flip .block__phone {
  rotate: 4deg;
}
.duo {
  --phone-w: 240px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 20px;
}
.duo .phone:first-child {
  rotate: -6deg;
  margin-top: 56px;
}
.duo .phone:last-child {
  rotate: 5deg;
}
@media (min-width: 900px) {
  .block__grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 64px;
  }
  .block__grid--flip {
    grid-template-columns: 0.85fr 1.15fr;
  }
  .block__grid--flip .block__text {
    order: 2;
  }
  .block__phone {
    --phone-w: 340px;
  }
  .duo {
    --phone-w: 260px;
    gap: 24px;
  }
}

/* --- Comment ça marche ------------------------------------------------------- */
h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 28px;
  line-height: 1.05;
  letter-spacing: -0.03em;
}
.steps {
  list-style: none;
  margin: 48px 0 0;
  padding: 0;
  display: grid;
  gap: 32px;
}
.step {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 24px;
  border-top: 3px solid var(--navy);
}
.step p {
  font-size: 19px;
  line-height: 1.5;
  color: var(--navy-72);
}
@media (min-width: 768px) {
  .steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 40px;
    margin-top: 64px;
  }
}

/* --- Héro --------------------------------------------------------------------- */
.hero {
  padding-top: 40px;
  padding-bottom: 0;
}
.hero__grid {
  display: grid;
  gap: 48px;
  align-items: end;
}
.hero__text {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding-bottom: var(--block);
}
.hero__text .brand {
  margin-bottom: 20px;
}
.hero h1 {
  color: var(--white);
}
.lede {
  max-width: 600px;
  font-size: 20px;
  line-height: 1.5;
  color: var(--white);
}
.hero__phone {
  --phone-w: 280px;
  justify-self: center;
  rotate: 6deg;
  margin-bottom: -140px;
}
@media (min-width: 900px) {
  .hero {
    padding-top: 56px;
  }
  .hero__grid {
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
  }
  .hero__text {
    gap: 34px;
    padding-block: 60px var(--block);
  }
  .hero h1 {
    max-width: 12ch;
  }
  .lede {
    font-size: 23px;
  }
  .hero__phone {
    --phone-w: 380px;
    margin-bottom: -120px;
  }
}
@media (min-width: 1200px) {
  .hero__grid {
    grid-template-columns: 1.3fr 0.7fr;
  }
}

/* --- Téléchargement ---------------------------------------------------------- */
.download__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 24px;
}
.download p {
  max-width: 560px;
  font-size: 20px;
  color: var(--white-78);
}
.stores {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 8px;
}
.store {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  padding: 0 26px;
  border-radius: var(--radius);
  border: 2.5px solid rgba(255, 255, 255, 0.55);
  color: var(--white-78);
  font: 700 18px/1 var(--font-text);
  cursor: not-allowed;
  user-select: none;
}
.store svg {
  width: 26px;
  height: 26px;
}

/* --- Pied de page ------------------------------------------------------------- */
.footer {
  background: var(--navy-deep);
  color: var(--white);
  padding-block: 48px;
}
.footer__inner {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  font-size: 15px;
  color: var(--white-55);
}
.footer__nav a {
  color: var(--white-78);
  padding: 8px 0;
  margin: -8px 0;
}
.footer__nav a:hover {
  color: var(--white);
  text-decoration: underline;
}
@media (min-width: 768px) {
  .footer__inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

/* --- Mobile : les blocs s'empilent, texte puis écran --------------------------- */
@media (max-width: 899px) {
  .hero__phone {
    margin-bottom: -180px;
  }
  .block__grid--flip .block__text {
    order: 0;
  }
  .actions .btn {
    flex: 1 1 auto;
  }
}

/* --- États initiaux des animations GSAP (classe .js posée dans <head>) --------- */
.js [data-reveal],
.js .split,
.js .phone {
  opacity: 0;
}

/* --- Mouvement réduit et impression ------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .btn {
    transition: none;
  }
}
@media print {
  .skip-link,
  .phone {
    display: none;
  }
  .block {
    padding-block: 32px;
  }
  [data-reveal],
  .split {
    opacity: 1 !important;
  }
}
