/* =========================================================================
   Page-vitrine de prospection (ProductFusion)
   Le prospect voit SON site tourner dans un ordinateur + un telephone,
   puis les 3 offres (sans prix). Design "agence" premium : charbon + cuivre.
   Independant de la palette du salon (celle-ci vit dans l'iframe du site).
   ========================================================================= */

:root {
  --pf-ink: #16130f;         /* charbon chaud (fond scene) */
  --pf-ink-2: #211c17;
  --pf-cream: #f7f1ea;       /* fond section offres */
  --pf-card: #ffffff;
  --pf-gold: #c9a06b;        /* cuivre / or */
  --pf-gold-soft: #e7cfa8;
  --pf-text: #2b2521;
  --pf-muted: #8a7f74;
  --pf-line: #e7ddd3;
  --pf-line-dark: rgba(255, 255, 255, 0.12);

  --pf-font-title: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --pf-font-body: "Jost", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --pf-maxw: 1120px;
  --pf-radius: 18px;
  --pf-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.6);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--pf-font-body);
  font-weight: 300;
  color: var(--pf-text);
  background: var(--pf-cream);
  line-height: 1.6;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3 {
  font-family: var(--pf-font-title);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: 0.2px;
}

.wrap { max-width: var(--pf-maxw); margin: 0 auto; padding: 0 22px; }

/* ---------- Barre haute ---------- */
.pf-top {
  position: absolute; top: 0; left: 0; right: 0; z-index: 5;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 26px;
  color: #fff;
}
.pf-logo {
  font-family: var(--pf-font-title); font-weight: 700; font-size: 22px;
  letter-spacing: 0.4px;
}
.pf-logo span { color: var(--pf-gold); }
.pf-top-tag {
  font-size: 12.5px; letter-spacing: 2px; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}

/* =========================================================================
   1. SCENE  (fond charbon, mockups)
   ========================================================================= */
.stage {
  position: relative;
  background:
    radial-gradient(1200px 600px at 50% -10%, #34291f 0%, transparent 60%),
    linear-gradient(180deg, var(--pf-ink) 0%, var(--pf-ink-2) 100%);
  color: #fff;
  padding: 104px 0 90px;
  overflow: hidden;
}
.stage::after { /* halo cuivre sous les devices */
  content: ""; position: absolute; left: 50%; bottom: 4%;
  width: 900px; height: 340px; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(201, 160, 107, 0.28), transparent 72%);
  pointer-events: none;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12.5px; letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--pf-gold); margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--pf-gold); }

.stage h1 {
  font-size: clamp(34px, 6.4vw, 62px);
  max-width: 16ch;
}
.stage h1 em { color: var(--pf-gold); font-style: normal; }
.stage .sub {
  font-size: clamp(16px, 2.4vw, 19px);
  color: rgba(255, 255, 255, 0.78);
  max-width: 46ch; margin: 16px 0 6px;
}
.stage-head { text-align: center; display: flex; flex-direction: column; align-items: center; }

/* ---------- Ensemble des appareils ---------- */
.devices {
  position: relative;
  margin: 54px auto 0;
  width: min(880px, 100%);
  padding-bottom: 40px; /* place pour le telephone qui deborde */
}

/* Overlay cliquable : tout l'appareil ouvre le vrai site */
.device-open {
  position: absolute; inset: 0; z-index: 4;
  display: block; cursor: pointer;
}

/* --- Ordinateur portable --- */
.laptop { position: relative; width: 100%; }
.laptop-screen {
  position: relative;
  border: 12px solid #0c0b0a;
  border-radius: 16px 16px 0 0;
  background: #000;
  box-shadow: var(--pf-shadow);
  aspect-ratio: 16 / 10;
  overflow: hidden;
}
.laptop-screen iframe {
  position: absolute; top: 0; left: 0;
  border: 0; background: #fff;
  transform-origin: top left; /* la taille + scale sont poses par JS */
}
.laptop-base {
  position: relative;
  height: 15px; margin: 0 auto;
  width: 116%; left: -8%;
  background: linear-gradient(180deg, #d7d7db 0%, #a9a9af 55%, #7f7f86 100%);
  border-radius: 0 0 12px 12px;
  box-shadow: 0 18px 30px -14px rgba(0, 0, 0, 0.7);
}
.laptop-base::after { /* encoche du clavier */
  content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 120px; height: 7px; background: #6d6d73;
  border-radius: 0 0 8px 8px;
}

/* --- Telephone (deborde en bas a droite) --- */
.phone {
  position: absolute; z-index: 3;
  right: -8px; bottom: 0;
  width: clamp(140px, 22vw, 208px);
  border: 9px solid #0c0b0a;
  border-radius: 30px;
  background: #000;
  box-shadow: var(--pf-shadow);
  aspect-ratio: 9 / 19;
  overflow: hidden;
}
.phone::before { /* encoche */
  content: ""; position: absolute; z-index: 2; top: 8px; left: 50%; transform: translateX(-50%);
  width: 46%; height: 15px; background: #0c0b0a; border-radius: 0 0 12px 12px;
}
.phone iframe {
  position: absolute; top: 0; left: 0;
  border: 0; background: #fff;
  transform-origin: top left;
}

/* ---------- CTA principal sous la scene ---------- */
.stage-cta { text-align: center; margin-top: 52px; }
.hint { font-size: 13.5px; color: rgba(255, 255, 255, 0.55); margin-top: 14px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--pf-font-body); font-weight: 500; font-size: 16px;
  letter-spacing: 0.3px; cursor: pointer;
  padding: 16px 34px; border-radius: 999px;
  border: 1.5px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.btn:active { transform: translateY(1px); }
.btn-gold { background: var(--pf-gold); color: #1a140d; box-shadow: 0 14px 30px -12px rgba(201, 160, 107, 0.7); }
.btn-gold:hover { background: #d9b483; }
.btn-lg { font-size: 17px; padding: 18px 40px; }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.4); }
.btn-outline-light:hover { background: rgba(255, 255, 255, 0.1); border-color: #fff; }
.btn-dark { background: var(--pf-text); color: #fff; }
.btn-dark:hover { background: #000; }
.btn-outline-dark { background: transparent; color: var(--pf-text); border-color: var(--pf-line); }
.btn-outline-dark:hover { background: var(--pf-text); color: #fff; border-color: var(--pf-text); }
.btn-block { display: flex; width: 100%; }

/* =========================================================================
   2. OFFRES  (fond creme)
   ========================================================================= */
.offers { padding: 84px 0 70px; }
.offers-head { text-align: center; max-width: 640px; margin: 0 auto 50px; }
.offers-head .eyebrow { color: #b98d54; justify-content: center; }
.offers-head .eyebrow::before { background: #b98d54; }
.offers h2 { font-size: clamp(30px, 5vw, 46px); color: var(--pf-text); }
.offers-head p { color: var(--pf-muted); margin-top: 12px; font-size: 17px; }

.offer-grid {
  display: grid; gap: 22px;
  grid-template-columns: repeat(3, 1fr);
  align-items: start;
}

.offer {
  position: relative;
  background: var(--pf-card);
  border: 1px solid var(--pf-line);
  border-radius: var(--pf-radius);
  padding: 34px 28px 30px;
  display: flex; flex-direction: column;
  box-shadow: 0 18px 44px -30px rgba(43, 37, 33, 0.4);
}
.offer-featured {
  border-color: var(--pf-gold);
  box-shadow: 0 30px 60px -28px rgba(201, 160, 107, 0.6);
  transform: translateY(-10px);
}
.offer-badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--pf-gold); color: #1a140d;
  font-size: 12px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase;
  padding: 7px 16px; border-radius: 999px; white-space: nowrap;
}
.offer-name {
  font-size: 15px; letter-spacing: 3px; text-transform: uppercase;
  color: var(--pf-muted); font-family: var(--pf-font-body); font-weight: 500;
}
.offer-featured .offer-name { color: #b98d54; }
.offer-claim {
  font-family: var(--pf-font-title); font-weight: 600;
  font-size: 25px; line-height: 1.15; color: var(--pf-text);
  margin: 10px 0 22px; min-height: 84px;
}
.offer-list { list-style: none; display: flex; flex-direction: column; gap: 13px; margin-bottom: 26px; }
.offer-list li {
  position: relative; padding-left: 30px;
  font-size: 15px; color: #4a4038; line-height: 1.45;
}
.offer-list li::before {
  content: ""; position: absolute; left: 0; top: 3px;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--pf-gold) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a140d' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>") center / 12px no-repeat;
}
.offer-list li.plus { font-weight: 500; color: var(--pf-text); }
.offer-list li.plus::before {
  background-color: var(--pf-text);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'><line x1='12' y1='5' x2='12' y2='19'/><line x1='5' y1='12' x2='19' y2='12'/></svg>");
}
.offer-cta { margin-top: auto; }

.offers-foot { text-align: center; margin-top: 46px; color: var(--pf-muted); font-size: 15px; }
.offers-foot a { color: #b98d54; font-weight: 500; border-bottom: 1px solid currentColor; }

/* =========================================================================
   3. Pied de page
   ========================================================================= */
.pf-footer {
  background: var(--pf-ink); color: rgba(255, 255, 255, 0.75);
  text-align: center; padding: 46px 22px;
}
.pf-footer .pf-logo { color: #fff; font-size: 24px; margin-bottom: 8px; }
.pf-footer p { font-size: 14px; }
.pf-footer a { color: var(--pf-gold); }
.pf-footer .fine { margin-top: 14px; font-size: 12.5px; color: rgba(255, 255, 255, 0.45); }

/* =========================================================================
   Responsive
   ========================================================================= */
@media (max-width: 860px) {
  .offer-grid { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
  .offer-featured { transform: none; }
  .offer-claim { min-height: 0; }
}

@media (max-width: 560px) {
  .stage { padding: 92px 0 70px; }
  .devices { margin-top: 40px; }
  .phone { width: 34vw; right: -4px; }
  .pf-top-tag { display: none; }
}
