/*
 * PARALIB.net — page « Boutique 3D » (vitrine de présentation de https://boutique.paralib.net)
 * Toutes les classes commencent par « b3d- » pour ne gêner aucun style existant de PARALIB.net.
 * Aucune bibliothèque, aucun script : la galerie 3D n'est chargée qu'après le clic sur le bouton vert.
 */
:root {
  --b3d-creme: #f8f5ee;
  --b3d-creme-fonce: #efe8d8;
  --b3d-encre: #15171a;
  --b3d-texte: #34383d;
  --b3d-doux: #5c6168;
  --b3d-vert: #1d6b35;
  --b3d-vert-fonce: #124f25;
  --b3d-vert-clair: #2e8a47;
  --b3d-pastille: #ece5d3;
  --b3d-serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --b3d-sans: Inter, "Segoe UI", Roboto, Arial, sans-serif;
}

/* ---------------------------------------------------------------- base de la page de démonstration */
.b3d-page { margin: 0; background: var(--b3d-creme); color: var(--b3d-texte); font-family: var(--b3d-sans); -webkit-text-size-adjust: 100%; }
.b3d-page *, .b3d-page *::before, .b3d-page *::after { box-sizing: border-box; }
.b3d-page img { display: block; max-width: 100%; height: auto; }

/* ---------------------------------------------------------------- menu (démonstration : à remplacer par celui de PARALIB.net) */
.b3d-entete { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 10px clamp(16px, 4vw, 40px); background: #fff; box-shadow: 0 1px 0 rgba(0, 0, 0, .06); position: relative; z-index: 3; }
.b3d-entete-logo img { width: 150px; }
.b3d-menu { display: flex; flex-wrap: wrap; gap: 4px 6px; font-size: 15px; }
.b3d-menu a { color: var(--b3d-encre); text-decoration: none; padding: 8px 16px; border-radius: 999px; }
.b3d-menu a:hover { background: var(--b3d-creme); }
.b3d-menu a[aria-current="page"] { background: var(--b3d-vert); color: #fff; font-weight: 600; }

/* ---------------------------------------------------------------- 1. accueil immersif */
.b3d-hero {
  position: relative; overflow: hidden; isolation: isolate;
  min-height: min(874px, 100vh);
  padding: clamp(32px, 4.5vw, 52px) clamp(20px, 5.6vw, 64px) 150px;
  background: var(--b3d-creme);
}
/* feuillage flou à gauche (version très floutée de l'illustration) sous un voile blanc : lisibilité des textes */
.b3d-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background: url("images/hero-flou.webp") left center / cover no-repeat;
  opacity: .55; transform: scaleX(-1);
}
.b3d-hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, rgba(250, 248, 242, .97) 0%, rgba(250, 248, 242, .88) 29%, rgba(250, 248, 242, 0) 43%),
              linear-gradient(0deg, rgba(248, 245, 238, .9) 0%, rgba(248, 245, 238, 0) 16%);
}
/* illustration à ses proportions d'origine (ni recadrée ni agrandie), calée à droite ; le reste = feuillage flou */
.b3d-hero-image { position: absolute; z-index: -1; top: 0; right: 0; height: 100%; aspect-ratio: 635 / 759; max-width: 74%; }
.b3d-hero-image img {
  width: 100%; height: 100%; object-fit: cover; object-position: 100% 40%;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 11%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 11%);
}
.b3d-hero-texte { position: relative; max-width: 400px; }
.b3d-marque { margin: 0 0 16px; }
.b3d-marque img { width: clamp(170px, 22vw, 236px); }
.b3d-hero h1 {
  margin: 0 0 18px; font-family: var(--b3d-serif); font-weight: 700; color: var(--b3d-encre);
  font-size: clamp(40px, 6.1vw, 70px); line-height: .98; letter-spacing: -.012em;
}
.b3d-hero h1 span { color: var(--b3d-vert-fonce); }
.b3d-sous-titre { margin: 0 0 20px; font-size: clamp(18px, 2.05vw, 23px); font-weight: 500; line-height: 1.35; color: var(--b3d-encre); }
.b3d-intro { max-width: 340px; margin: 0 0 22px; font-size: clamp(16px, 1.7vw, 18.5px); line-height: 1.38; color: var(--b3d-texte); }
.b3d-atouts { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.b3d-atouts li { display: flex; align-items: center; gap: 18px; font-size: clamp(16px, 1.75vw, 19px); font-weight: 500; color: var(--b3d-encre); white-space: nowrap; }
.b3d-pastille { flex: none; width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: var(--b3d-pastille); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .04); }
.b3d-pastille svg { width: 28px; height: 28px; fill: var(--b3d-vert-fonce); }

/* bouton principal : vrai lien, nouvel onglet */
.b3d-entrer {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%);
  display: inline-flex; align-items: center; justify-content: center; gap: 18px;
  width: min(570px, calc(100% - 40px)); min-height: 84px; padding: 14px 34px;
  border-radius: 999px; text-decoration: none; color: #fff;
  font-family: var(--b3d-serif); font-weight: 600; font-size: clamp(22px, 2.6vw, 30px); letter-spacing: .005em;
  background: linear-gradient(180deg, var(--b3d-vert-clair) 0%, var(--b3d-vert) 55%, var(--b3d-vert-fonce) 100%);
  box-shadow: 0 10px 24px rgba(18, 79, 37, .35), inset 0 1px 0 rgba(255, 255, 255, .25);
  transition: transform .15s, box-shadow .15s, filter .15s;
}
.b3d-entrer:hover { filter: brightness(1.06); box-shadow: 0 14px 30px rgba(18, 79, 37, .42), inset 0 1px 0 rgba(255, 255, 255, .25); }
.b3d-entrer:active { transform: translateX(-50%) translateY(1px); }
.b3d-entrer:focus-visible { outline: 3px solid #ea7a5c; outline-offset: 4px; }
.b3d-pas { width: 40px; height: 40px; fill: #fff; flex: none; }
.b3d-fleche { width: 28px; height: 28px; fill: #fff; flex: none; }
.b3d-masque { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------------------------------------------------------------- 2. tous les écrans */
.b3d-ecrans { padding: clamp(40px, 6vw, 56px) clamp(16px, 4vw, 40px) 24px; text-align: center; background: linear-gradient(180deg, var(--b3d-creme) 0%, #f3efe5 100%); }
.b3d-ecrans h2 { margin: 0 0 8px; font-family: var(--b3d-serif); font-weight: 700; font-size: clamp(28px, 3.6vw, 40px); color: var(--b3d-encre); }
.b3d-ecrans-sous { margin: 0 0 36px; font-size: clamp(16px, 1.7vw, 19px); color: var(--b3d-texte); }
.b3d-appareils { list-style: none; margin: 0 auto; padding: 0; max-width: 1080px; display: flex; align-items: flex-end; justify-content: center; gap: clamp(16px, 3vw, 36px); }
.b3d-appareil { display: flex; flex-direction: column; align-items: center; }
.b3d-appareil h3 { margin: 16px 0 2px; font-size: 17px; font-weight: 600; color: var(--b3d-encre); }
.b3d-appareil p { margin: 0; font-size: 14px; color: var(--b3d-doux); }
.b3d-cadre { position: relative; overflow: hidden; background: #0d0f12; border: 7px solid #121417; box-shadow: 0 14px 28px rgba(0, 0, 0, .22), inset 0 0 0 1px rgba(255, 255, 255, .06); }
.b3d-cadre img { width: 100%; height: 100%; object-fit: cover; }
.b3d-smartphone .b3d-cadre { width: 104px; height: 186px; border-width: 5px; border-radius: 18px; }
.b3d-smartphone .b3d-cadre::after { content: ""; position: absolute; top: 5px; left: 50%; width: 30px; height: 8px; transform: translateX(-50%); border-radius: 6px; background: #0d0f12; }
.b3d-tablette .b3d-cadre { width: 206px; height: 146px; border-width: 8px; border-radius: 14px; }
.b3d-ordinateur .b3d-cadre { width: 276px; height: 172px; border-width: 8px; border-bottom-width: 12px; border-radius: 10px 10px 0 0; }
.b3d-socle { display: block; width: 340px; height: 12px; margin-top: -1px; border-radius: 0 0 14px 14px; background: linear-gradient(180deg, #d7d9dd 0%, #a9adb3 100%); box-shadow: 0 6px 12px rgba(0, 0, 0, .18); }
.b3d-television .b3d-cadre { width: 300px; height: 182px; border-width: 8px; border-radius: 4px; }
.b3d-pied { display: block; width: 120px; height: 10px; border-radius: 4px; background: #1b1d21; box-shadow: 0 6px 12px rgba(0, 0, 0, .2); }
.b3d-pied::before { content: ""; display: block; width: 14px; height: 12px; margin: -12px auto 0; background: #1b1d21; }
.b3d-note { max-width: 760px; margin: 22px auto 0; font-size: 13px; color: var(--b3d-doux); }

/* ---------------------------------------------------------------- 3. les quatre avantages */
.b3d-cartes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; max-width: 1120px; margin: 0 auto; padding: 24px clamp(16px, 2vw, 20px) 48px; }
.b3d-carte { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 18px 14px 20px; border-radius: 18px; }
.b3d-carte h3 { margin: 8px 0 12px; min-height: 2.6em; display: flex; align-items: center; font-size: 16px; font-weight: 600; line-height: 1.3; }
.b3d-carte img { width: 100%; aspect-ratio: 2.1 / 1; object-fit: cover; border-radius: 12px; }
.b3d-carte p { margin: 14px 0 0; font-size: 14.5px; line-height: 1.45; color: var(--b3d-texte); }
.b3d-icone { width: 40px; height: 40px; }
.b3d-lavande { background: #f0ebf8; } .b3d-lavande .b3d-icone { fill: #6b3fb1; color: #6b3fb1; } .b3d-lavande h3 { color: #3a2470; }
.b3d-menthe { background: #e9f3e4; } .b3d-menthe .b3d-icone { fill: #1d5b31; color: #1d5b31; } .b3d-menthe h3 { color: #1c2b1f; }
.b3d-sable { background: #f6eee2; } .b3d-sable .b3d-icone { color: #a8482a; } .b3d-sable h3 { color: #8f3a1f; }
.b3d-ciel { background: #e7f0f8; } .b3d-ciel .b3d-icone { color: #245ea3; } .b3d-ciel h3 { color: #1d4c86; }

/* ---------------------------------------------------------------- tablettes */
@media (max-width: 1000px) {
  .b3d-appareils { display: grid; grid-template-columns: repeat(2, auto); justify-content: center; align-items: end; gap: 32px 48px; }
  .b3d-cartes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------------------------------------------------------------- smartphones : contenu vertical, bouton juste sous le titre */
@media (max-width: 760px) {
  .b3d-entete { flex-direction: column; gap: 8px; padding: 10px 16px; }
  .b3d-menu { justify-content: center; font-size: 14px; }
  .b3d-menu a { padding: 6px 11px; }
}
/* tablettes en portrait et smartphones : image en haut, textes dessous (jamais de texte sur l'image) */
@media (max-width: 900px) {
  .b3d-hero { display: flex; flex-direction: column; min-height: 0; padding: 0 16px 36px; }
  .b3d-hero::before, .b3d-hero::after { display: none; }
  .b3d-hero-image { position: relative; z-index: 0; order: 1; width: auto; max-width: none; aspect-ratio: auto; height: min(68vh, 520px); margin: 0 -16px; }
  .b3d-hero-image img {
    object-position: 45% 30%;
    -webkit-mask-image: linear-gradient(180deg, #000 62%, transparent 100%);
    mask-image: linear-gradient(180deg, #000 62%, transparent 100%);
  }
  .b3d-hero-texte { display: contents; }
  .b3d-marque { order: 2; position: relative; margin: -86px 0 12px; }
  .b3d-hero h1 { order: 3; position: relative; margin-bottom: 14px; }
  .b3d-sous-titre { order: 4; margin-bottom: 20px; }
  .b3d-entrer { order: 5; position: relative; left: auto; bottom: auto; transform: none; width: 100%; min-height: 70px; padding: 12px 16px; gap: 10px; margin-bottom: 26px; font-size: clamp(18px, 5.3vw, 22px); white-space: nowrap; }
  .b3d-entrer:active { transform: translateY(1px); }
  .b3d-pas { width: 32px; height: 32px; }
  .b3d-fleche { width: 24px; height: 24px; }
  .b3d-intro { order: 6; }
  .b3d-atouts { order: 7; }
  .b3d-pastille { width: 46px; height: 46px; }
  .b3d-pastille svg { width: 24px; height: 24px; }
}
@media (min-width: 761px) and (max-width: 900px) {
  .b3d-hero { padding: 0 48px 44px; }
  .b3d-hero-image { height: min(60vh, 560px); margin: 0 -48px; }
  .b3d-entrer { width: min(570px, 100%); align-self: center; }
}
@media (max-width: 760px) {
  .b3d-appareils { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 12px; align-items: end; }
  .b3d-smartphone .b3d-cadre { width: 84px; height: 150px; }
  .b3d-tablette .b3d-cadre { width: min(150px, 40vw); height: 108px; border-width: 6px; }
  .b3d-ordinateur .b3d-cadre { width: min(150px, 38vw); height: 96px; border-width: 5px; border-bottom-width: 8px; }
  .b3d-socle { width: min(184px, 45vw); height: 9px; }
  .b3d-television .b3d-cadre { width: min(164px, 42vw); height: 100px; border-width: 5px; }
  .b3d-pied { width: 70px; }
  .b3d-appareil h3 { font-size: 15px; margin-top: 12px; }
  .b3d-appareil p { font-size: 13px; }
}
@media (max-width: 480px) {
  .b3d-cartes { grid-template-columns: 1fr; }
  .b3d-carte img { aspect-ratio: 2.4 / 1; }
}

@media (prefers-reduced-motion: reduce) { .b3d-entrer { transition: none; } }
