/* ============================================================
   PAGE D’ACCUEIL (index.php). Utilise les tokens de site.css.
   ============================================================ */


.home h3 { margin: 0; }
.home-hero { position: relative; overflow: hidden; min-height: 760px; display: flex; align-items: center; }
.home-hero > img { position: absolute; top: 0; left: 28%; width: 83%; height: 100%; object-fit: cover; -webkit-mask-image: linear-gradient(90deg, transparent, #000 26%); mask-image: linear-gradient(90deg, transparent, #000 26%); }
.home-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--bg) 17%, rgba(10,10,9,.82) 38%, rgba(10,10,9,0) 64%), linear-gradient(0deg, var(--bg) 0, rgba(10,10,9,0) 26%); }
.home-hero .container { position: relative; z-index: 1; }
.home-hero h1 { max-width: 680px; margin: 0; }
.home-hero p { max-width: 460px; margin: 28px 0 34px; font-size: 19px; line-height: 1.6; color: var(--muted); }
.home-row { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 30px; }
.home-link { font-size: 15px; line-height: 1.4; }
.home-who { padding-top: 90px; padding-bottom: 130px; }
.home-who h2 { margin: 0; }
.home-list { margin-top: 46px; border-top: 1px solid var(--border); }
.home-list a { display: grid; grid-template-columns: 540px 1fr 40px; align-items: center; gap: 0 20px; padding: 26px 0; border-bottom: 1px solid var(--border); transition: background .2s ease; }
.home-list b { font-size: 34px; letter-spacing: -.03em; }
.home-list p { margin: 0; font-size: 20px; color: var(--muted); }
.home-list i { font-style: normal; font-size: 32px; color: var(--brand); transition: transform .2s ease; }
.home-list a:hover i { transform: translateX(8px); }
.home-list a:hover { background: rgba(255, 255, 255, .03); }
.home-shop { display: grid; grid-template-columns: 1fr 1fr; }
.home-item { position: relative; overflow: hidden; height: 760px; }
.home-item img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.home-item::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, var(--bg) 2%, rgba(10,10,9,.72) 20%, rgba(10,10,9,0) 46%), linear-gradient(180deg, var(--bg) 0, rgba(10,10,9,0) 14%); }
.home-item > div { position: absolute; z-index: 1; left: clamp(20px, 4vw, 56px); right: clamp(20px, 4vw, 56px); bottom: 44px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; }
.home-item h3 { font-size: clamp(34px, 4vw, 52px); }
.home-item p { margin: 10px 0 0; font-size: 18px; color: #d3cfc0; }

/* Comparateur avant/après : poignée or qui révèle la version personnalisée. */
@property --p { syntax: '<percentage>'; inherits: true; initial-value: 50%; }
.home-item.cmp { --p: 50%; --zoom: 1; cursor: ew-resize; touch-action: pan-y; }
/* la photo est agrandie de --zoom : la coupure est ramenée à son échelle pour tomber pile sous la barre */
.home-item.cmp .perso { clip-path: inset(0 calc(50% - (var(--p) - 50%) / var(--zoom)) 0 0); }
.home-item.cmp > div { z-index: 3; }
.home-item.cmp .cmp-bar { position: absolute; top: 0; bottom: 0; left: var(--p); z-index: 2; width: 2px; background: var(--brand); transform: translateX(-1px); box-shadow: 0 0 18px rgba(243,210,79,.55); pointer-events: none; }
.home-item.cmp .cmp-grip { position: absolute; top: 46%; left: 50%; transform: translate(-50%, -50%); width: 52px; height: 52px; border-radius: 50%; background: var(--brand); color: var(--on-brand); display: grid; place-items: center; font-size: 22px; font-weight: 800; box-shadow: 0 6px 20px rgba(0,0,0,.45); }
.home-item.cmp.nudge { animation: homeCmpNudge 2.4s ease-in-out 1; }
@keyframes homeCmpNudge { 0% { --p: 50%; } 22% { --p: 63%; } 48% { --p: 38%; } 100% { --p: 50%; } }
@media (prefers-reduced-motion: reduce) { .home-item.cmp.nudge { animation: none; } }
.home-plus { position: relative; overflow: hidden; min-height: 820px; display: flex; align-items: center; }
.home-plus > img { position: absolute; left: 0; top: 0; width: 56%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.home-plus::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,10,9,0) 24%, var(--bg) 55%), linear-gradient(180deg, var(--bg) 0, rgba(10,10,9,0) 16%, rgba(10,10,9,0) 84%, var(--bg) 100%); }
.home-plus .container { position: relative; z-index: 1; display: flex; justify-content: flex-end; }
.home-plus-txt { width: 540px; max-width: 100%; }
.home-plus h2 { margin: 0; }
.home-plus ul { list-style: none; margin: 40px 0; padding: 0; }
.home-plus li { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 18px 0; border-top: 1px solid var(--border); font-size: 22px; font-weight: 700; }
.home-plus li span { font-size: 16px; font-weight: 400; color: var(--muted-2); }
.home-proof { padding: 100px 0 0; }
.home-proof-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px 40px; margin-bottom: 44px; }
.home-proof h2 { margin: 0; }
.home-proof-head p { margin: 18px 0 0; max-width: 460px; font-size: 19px; line-height: 1.6; color: var(--muted); }
.home-socials { display: flex; flex-wrap: wrap; gap: 12px; }
.home-social { display: inline-flex; align-items: center; gap: 10px; padding: 15px 22px; border: 1px solid var(--border-gold); color: var(--text); font-weight: 500; transition: transform .2s ease, border-color .2s ease; border-radius: 8px; font-size: 14px; line-height: 1; }
.home-social:hover { transform: translateY(-3px); border-color: #fff; }
.home-wall { display: grid; grid-template-columns: 7fr 5fr; grid-template-rows: 380px 380px; gap: 6px; padding: 0 6px; }
.home-wall figure { position: relative; overflow: hidden; margin: 0; }
.home-wall > figure:first-child { grid-row: span 2; }
.home-duo { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 380px; gap: 6px; min-height: 0; }
.home-wall img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.home-wall figure::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10,10,9,.86), rgba(10,10,9,0) 38%); }
.home-wall figcaption { position: absolute; z-index: 1; left: 24px; bottom: 20px; right: 12px; font-size: 22px; letter-spacing: -.02em; }
.home-pro { position: relative; overflow: hidden; min-height: 640px; margin-top: 130px; display: flex; align-items: center; }
.home-pro > img { position: absolute; right: 0; top: 0; width: 70%; height: 100%; object-fit: cover; object-position: 62% 60%; }
.home-pro::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--bg) 32%, rgba(10,10,9,0) 72%), linear-gradient(180deg, var(--bg) 0, rgba(10,10,9,0) 20%, rgba(10,10,9,0) 80%, var(--bg)); }
.home-pro .container { position: relative; z-index: 1; }
.home-pro h2 { max-width: 640px; margin: 0; }
.home-pro p { max-width: 480px; margin: 26px 0 32px; font-size: 19px; line-height: 1.6; color: var(--muted); }

@media (max-width: 860px) {
  /* téléphone : la photo occupe le haut de l'écran et le titre mord dessus */
  .home-hero { display: block; min-height: 0; }
  .home-hero > img { position: static; display: block; width: 100%; height: 62vh; min-height: 420px; max-height: 620px; object-fit: cover; object-position: 58% 50%;
    -webkit-mask-image: linear-gradient(180deg, #000 62%, transparent 97%); mask-image: linear-gradient(180deg, #000 62%, transparent 97%); }
  .home-hero::after { display: none; }
  .home-hero .container { margin-top: -72px; padding-bottom: 30px; }
  .home-who { padding-top: 40px; padding-bottom: 70px; }
  .home-list a { grid-template-columns: 1fr 30px; }
  .home-list p { grid-column: 1; grid-row: 2; font-size: 16px; margin-top: 6px; }
  .home-list i { grid-column: 2; grid-row: 1 / span 2; }
  .home-shop { grid-template-columns: 1fr; }
  .home-item { height: 520px; }
  .home-plus, .home-pro { display: block; min-height: 0; margin-top: 0; }
  .home-plus > img, .home-pro > img { position: static; display: block; width: 100%; height: 360px; }
  .home-plus::after, .home-pro::after { display: none; }
  .home-plus .container, .home-pro .container { padding-top: 34px; padding-bottom: 50px; }
  .home-plus .container { display: block; }
  .home-proof { padding-top: 50px; }
  .home-wall { grid-template-columns: 1fr; grid-template-rows: 460px 300px 240px; }
  .home-wall > figure:first-child { grid-row: auto; }
  .home-duo { grid-template-rows: 240px; }
  .home-wall figcaption { left: 14px; bottom: 12px; }
}

/* photo « carte en main » : remontée pour que toute la carte reste au-dessus du titre, et laissée lumineuse */
.home-item.is-card { --zoom: 1.04; }
.home-item.is-card img { transform: translateY(-9%) scale(var(--zoom)); -webkit-mask-image: linear-gradient(180deg, #000 80%, transparent); mask-image: linear-gradient(180deg, #000 80%, transparent); }

/* vraies proportions : la plaque (10 × 10 cm) doit paraître plus grosse que la carte (5,4 × 8,6 cm) */
@media (max-width: 480px), (min-width: 561px) {
  .home-item.is-plaque { --zoom: 1.45; }
}
@media (min-width: 861px) {
  .home-item.is-plaque img { transform-origin: 50% 56.6%; transform: translateY(-11%) scale(var(--zoom)); }
}
@media (max-width: 480px) {
  .home-item.is-plaque img { transform-origin: 50% 53%; transform: translateY(-20%) scale(var(--zoom)); }
}
/* tablette et petite fenêtre : les deux produits restent côte à côte, aux mêmes proportions qu'à l'ordinateur */
@media (min-width: 561px) and (max-width: 860px) {
  .home-shop { grid-template-columns: 1fr 1fr; }
  .home-item { height: 620px; }
  .home-item > div { left: 20px; right: 20px; bottom: 28px; }
  .home-item.is-plaque img { transform-origin: 50% 56.6%; transform: translateY(-13%) scale(var(--zoom)); }
}
