/* ══════════════════════════════════════════════════════
   apropos.css — Studio Quarante Sept
══════════════════════════════════════════════════════ */

/* ── RESET ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

/* ── TOKENS ── */
:root {
  --white: #f8fafc;
  --black: #0A0D20;
  --blue:   #3b63fb;
}

/* ── COL-CONNECT (colonne Réseaux footer) ── */
.col-connect .col-label {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #999;
  margin-bottom: 24px;
}

/* ── HOVER ICÔNES RS ── */
.social-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--black);
  font-size: 14px;
  transition: border-color .2s, background .2s, transform .2s cubic-bezier(0.16,1,0.3,1);
}

.social-icon:hover {
  border-color: var(--blue);
  background: transparent;
  color: var(--blue);
  transform: scale(1.18);
}


/* ── BASE ── */
body {
  cursor: none;
  background: var(--white);
  color: var(--black);
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  overflow-x: hidden;
  width: 100%;
}

img {
  display: block;
}

/* ── CURSEUR ── */
#cursor {
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  width: 72px;
  height: 72px;
}

/* ── NAV ── */
nav {
  position: fixed;
  mix-blend-mode: difference;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 5.5%;
  z-index: 100;
}

.logo {
  display: flex;
  align-items: center;
  height: 120px;
  width: 120px;
}

.nav-links {
  display: flex;
  gap: 8px;
  list-style: none;
}

.nav-links a {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 10px;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.22);
  padding: 9px 20px;
  border-radius: 4px;
  display: block;
  transition: background .2s, color .2s, border-color .2s;
}

.nav-links a:hover {
  color: var(--white);
  border-color: var(--white);
}

/* ── HERO ── */

.ap-hero {
  padding: 160px 5.5% 120px;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.ap-hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  width: 100%;
}

/* H1 typewriter */
h1 {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight: 900;
  font-size: 56px;
  color: var(--black);
  line-height: 1.15;
  letter-spacing: -0.02em;
  height: 5lh;        /* hauteur FIXE (plus min-height) : le bloc ne grandit plus */
  overflow: visible;  /* si un mot dépasse, il ne pousse pas le texte du dessous */
}
  

#type {
  font-family: Georgia, serif;
  font-style: italic;
  font-weight: 400;
  transition: color 0.3s ease;
}

#type::after {
  content: '|';
  animation: cligno .7s infinite;
  color: inherit;
  font-style: normal;
  font-family: 'Britanica-Black', serif;
}

@keyframes cligno {
  50% { opacity: 0; }
}

/* ── INTRO ── */

.ap-intro {
  padding: 0px 5.5%;
  padding-bottom: 0;
  background: var(--white);
  max-width: 760px;
}

.ap-intro-tagline {
  font-family: Georgia, serif;
  font-style: italic;
  font-size: clamp(28px, 3vw, 42px);
  color: var(--black);
  margin-bottom: 48px;
  line-height: 1.2;
}

.ap-intro-tagline em {
  color: var(--blue);
}

.ap-intro-body {
  font-size: 16px;
  font-weight: 300;
  color: var(--black);
  line-height: 1.8;
  margin-top: 48px;
}

.ap-cta {
  background: none;
  border: 1.5px solid var(--blue);
  color: var(--blue);
  font-family: inherit;
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  padding: 10px 28px;
  border-radius: 100px;
  cursor: pointer;
  transition: all .2s;
  font-weight: 500;
}

.ap-cta:hover {
 background: var(--blue);
  color: var(--white); }

/* ── HEADER - PRESTA ── */

.presta-header {
  text-align: center;
  padding: 80px 5.5% 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.presta-header h2 {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight: 900;
  font-size: 80px;
  color: var(--black);
  line-height: 1.05;
}

.presta-header h2 strong {
  font-weight: 500;
  font-style: italic;
  color: var(--blue);
}

h2 {
  font-size: clamp(32px, 5vw, 56px);
  color: var(--black);
  font-weight: 300;
}

h2 strong {
 font-family: "georgia", sans-serif;
font-weight: 400;
font-style: italic;
color: var(--blue);
}

.sub {
  font-size: 10px;
  color: var(--black);
  letter-spacing: .22em;
  text-transform: uppercase;
  margin-top: 10px;
}

/* ── SCENE ── */
.scene {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  justify-items: center;
  gap: 60px;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding-top: 40px;
}

/* ── SHELF ── */
.shelf-wrap {
  justify-self: center;
}

.shelf-label {
  font-size: 10px;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--black);
  margin-bottom: 16px;
  text-align: center;
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, 80px);
  gap: 14px;
}

.tool {
  width: 80px;
  height: 80px;
  background: var(--white);
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  box-shadow: 0 4px 16px rgba(59, 99, 251, 0.15), 0 1px 3px rgba(10, 13, 32, 0.1);
  border: 1.5px solid rgba(59, 99, 251, 0.15);
  cursor: grab;
  transition: transform .25s cubic-bezier(.34,1.56,.64,1), box-shadow .2s;
  user-select: none;
  position: relative;
  overflow: hidden;
}

.tool:active { cursor: grabbing; }

.tool:hover {
  transform: translateY(-8px) scale(1.07);
  box-shadow: 0 16px 32px rgba(59, 99, 251, 0.3);
}

.tool.used {
  opacity: .22;
  pointer-events: none;
  transform: scale(.9);
  filter: grayscale(1);
}

.tool .icon {
  font-size: 28px;
  line-height: 1;
  transition: transform .2s;
}

.tool:hover .icon {
  transform: translateY(-6px);
}

/* Texte apparaît au hover */
.tool .lbl {
  font-size: 9px;
  font-weight: 600;
  color: var(--black);
  text-align: center;
  line-height: 1.3;
  letter-spacing: .02em;
  max-width: 84px;
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  opacity: 0;
  transition: opacity .2s ease, transform .2s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tool:hover .lbl {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ── POÊLE ── */
.poele-wrap {
  position: relative;
  width: 100%;
  max-width: 640px;
  aspect-ratio: 4 / 3;
  justify-self: center;
  margin: 0 auto;
}

.poele-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  pointer-events: none;
  position: relative;
  z-index: 1;
}

.drop-zone {
  position: absolute;
  top: 18%;
  left: 12%;
  width: 58%;
  height: 68%;
  border-radius: 50%;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-content: center;
  justify-content: center;
  padding: 16px;
  z-index: 2;
  transition: background .2s;
}

.drop-zone.over {
  outline: 2.5px dashed var(--blue);
  outline-offset: -4px;
}

.hint {
  font-size: 32px;
  opacity: .35;
  user-select: none;
  pointer-events: none;
}

/* Items dans la poêle */
.ci {
  width: 44px;
  height: 44px;
  background: var(--white);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px var(--black);
  position: relative;
  font-size: 24px;
  animation: panJump .6s cubic-bezier(.34,1.56,.64,1);
  cursor: default;
}

@keyframes panJump {
  0%   { transform: translateY(0) scale(.5); opacity:0; }
  40%  { transform: translateY(-40px) scale(1.2) rotate(-8deg); opacity:1; }
  70%  { transform: translateY(-10px) scale(1.04) rotate(3deg); }
  100% { transform: translateY(0) scale(1); }
}

.ci .x {
  position: absolute;
  top: -6px; right: -6px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
  border: none;
  font-size: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .2s;
}

.ci:hover .x { opacity: 1; }

/* Badge */
.badge {
  position: absolute;
  top: 10px;
  right: 20px;
  background: var(--blue);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  width: 26px; height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 10px rgba(130,8,22,.4);
  z-index: 10;
}

.badge.bump { animation: bump .3s cubic-bezier(.34,1.56,.64,1); }
@keyframes bump { 50% { transform: scale(1.6); }
 }

/* ── BOUTON VIDER ── */
.clear {
  background: none;
  border: 1.5px solid var(--blue);
  color: var(--blue);
  font-family: inherit;
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  padding: 10px 28px;
  border-radius: 4px;
  cursor: pointer;
  transition: all .2s;
  font-weight: 500;
}

.clear:hover {background: var(--blue);
  color: var(--white); }

  .btn-group {
    display: flex;
    gap: 16px;
    justify-content: center;
    padding-top: 40px;
  }

/* Ghost drag */
.ghost {
  position: fixed;
  pointer-events: none;
  z-index: 999;
  width: 60px; height: 60px;
  border-radius: 16px;
  background: var(--white);
  box-shadow: 0 16px 40px rgba(232,127,160,.4);
  display: none;
  align-items: center;
  justify-content: center;
  transform: translate(-50%,-50%) rotate(7deg) scale(1.1);
  font-size: 30px;
}

/* Smoke */
.smoke {
  position: fixed;
  pointer-events: none;
  font-size: 18px;
  animation: smokeUp .9s ease forwards;
  z-index: 999;
}

@keyframes smokeUp {
  0%   { opacity:.9; transform:translateY(0) scale(1); }
  100% { opacity:0;  transform:translateY(-60px) scale(1.8); }
}

/* FOOTER */

footer {
  width: 100%;
  background: var(--white);
  padding-top: 80px;
  overflow: hidden;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.8fr 0.2fr 1fr 1fr 1fr;
  padding: 0 5.5% 72px;
}

.col-text p {
  display: block;
  font-family: 'Britanica-Black', serif;
  font-size: 20px;
  font-weight: 400;
  color: var(--blue);
  line-height: 1.55;
  margin-bottom: 32px;
  max-width: 320px;
}

.col-text p em {
  font-family: 'Britanica-Black', serif;
  font-style: italic;
}

.cta-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.cta-label-f {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--black);
}

.cta-arrow {
  width: 36px;
  height: 36px;
  background: var(--blue);
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--white);
  font-size: 16px;
  transition: background .2s, transform .2s;
}

.cta-arrow:hover {
  background:var(--blue);
  transform: translateX(3px);
}

.col-label {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #999;
  margin-bottom: 24px;
}

.col-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.col-nav a {
  font-family: 'Britanica-Black', serif;
  font-size: 32px;
  font-weight: 900;
  color: var(--black);
  text-decoration: none;
  letter-spacing: -0.02em;
  line-height: 1.1;
  display: inline-block;
  transition: color .2s, border-color .2s;
}

.col-nav a:hover {
  color: var(--blue);
  border-color: var(--blue);
}

.col-contact a {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 14px;
  color: var(--black);
  text-decoration: underline;
  text-underline-offset: 3px;
  display: block;
  margin-bottom: 16px;
  transition: color .2s;
}

.col-contact a:hover {
  color: var(--blue);
}

.col-contact address {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 13px;
  font-weight: 300;
  color: #999;
  font-style: normal;
  line-height: 1.7;
}

.social-icons {
  display: flex;
  gap: 8px;
  margin-top: 4px;
  align-items: center;
}

.social-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--black);
  font-size: 14px;
  transition: border-color .2s, background .2s, transform .2s cubic-bezier(0.16,1,0.3,1);
}

.social-icon:hover {
  border-color: var(--blue);
  color: var(--blue);
  transform: scale(1.18);
}

.dot-live {
  width: 8px;
  height: 8px;
  background: var(--blue);
  border-radius: 50%;
  margin-left: auto;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1);   opacity: 1;   }
  50%       { transform: scale(1.4); opacity: 0.6; }
}

.footer-mid {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px 5.5%;
  gap: 40px;
}

.footer-mid span {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #999;
}

.footer-mid a {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #999;
}

.footer-name {
  width: 100%;
  overflow: hidden;
  padding: 20 20;
}

.footer-name img {
  width: 100%;
  height: auto;
  display: block;
  padding-left: 20px;
  padding-right: 20px;
  padding-bottom: 20px;
  padding-top: 60px;
}

/* ═══════════════════════════════════════════
   RESPONSIVE — TABLET (≤ 1024px)
═══════════════════════════════════════════ */
@media (max-width: 1024px) {

  .ap-hero-inner {
    gap: 48px;
  }

  h1 {
    font-size: 46px;
  }

  .presta-header h2 {
    font-size: 60px;
  }

  .poele-wrap {
    max-width: 480px;
  }

  .scene {
    gap: 48px;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding: 0 5.5% 48px;
  }

  .footer-top > div:nth-child(2) {
    display: none;
  }
}


/* ═══════════════════════════════════════════
   RESPONSIVE — MOBILE (≤ 768px)
═══════════════════════════════════════════ */
@media (max-width: 768px) {

  body {
    cursor: auto;
  }

  #cursor {
    display: none;
  }

  nav {
    padding: 20px 5.5%;
  }

  .logo {
    width: 80px;
    height: 80px;
  }

  .nav-links a {
    font-size: 9px;
    padding: 7px 12px;
    letter-spacing: 0.1em;
  }

  .ap-hero {
    padding: 120px 5.5% 80px;
    min-height: auto;
  }

  .ap-hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .ap-hero-right {
    display: none;
  }

  h1 {
    font-size: 28px;
    height: 5lh;
    overflow: visible;
  }

  .ap-intro-body {
    font-size: 15px;
    margin-top: 24px;
  }

  .presta-header {
    padding: 64px 5.5% 80px;
  }

  .presta-header h2 {
    font-size: clamp(36px, 9vw, 56px);
  }

  .scene {
    grid-template-columns: 1fr;
    gap: 40px;
    padding-top: 32px;
  }

  .shelf-wrap {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-self: center;
  }

  .grid {
    grid-template-columns: repeat(3, 64px);
    gap: 8px;
    justify-content: center;
  }

  .tool {
    width: 64px;
    height: 64px;
    border-radius: 16px;
  }

  .tool .icon {
    font-size: 22px;
  }

  .poele-wrap {
    width: 100%;
    max-width: 360px;
  }

  .btn-group {
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding-top: 24px;
  }

  footer {
    padding-top: 60px;
  }

  .footer-top {
    grid-template-columns: 1fr;
    padding: 0 5.5% 48px;
    gap: 40px;
  }

  .footer-top > div:nth-child(2) {
    display: none;
  }

  .col-text p {
    font-size: 18px;
    max-width: 100%;
  }

  .col-nav a {
    font-size: 24px;
  }

  .footer-mid {
    flex-direction: column;
    gap: 12px;
    text-align: center;
    padding: 16px 5.5%;
  }

  .footer-name img {
    padding-top: 16px;
    padding-bottom: 12px;
    padding-left: 12px;
    padding-right: 12px;
  }

  .footer-name {
    padding: 0;
    overflow: hidden;
  }
}

/* ═══════════════════════════════════════════
   RESPONSIVE — PETIT MOBILE (≤ 480px)
═══════════════════════════════════════════ */
@media (max-width: 480px) {

  h1 {
    font-size: 24px;
  }

  .presta-header h2 {
    font-size: clamp(30px, 10vw, 40px);
  }

  .grid {
    grid-template-columns: repeat(3, 54px);
    gap: 6px;
  }

  .tool {
    width: 54px;
    height: 54px;
    border-radius: 14px;
  }

  .tool .icon {
    font-size: 18px;
  }

  .poele-wrap {
    max-width: 300px;
  }

  .hint {
    font-size: 26px;
  }
}
