/* ==========================================================
   Accueil EHBH Digital : « Imaginez votre Instagram » + construction en direct
   ========================================================== */

/* ---------- 1. Configurateur ---------- */
.cfg { position: relative; min-height: 100vh; min-height: 100svh; padding: 110px 0 60px; display: flex; align-items: center; overflow: hidden; }
.cfg::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse 50% 60% at 72% 45%, rgba(198, 164, 103, .14), transparent 70%); }
.cfg__inner { position: relative; width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.cfg__inner > * { min-width: 0; }
.cfg h1 { font-size: clamp(44px, min(6vw, 10.5vh), 96px); line-height: .98; }
.cfg .lead { margin: min(24px, 2.6vh) 0 min(34px, 3.6vh); font-size: 17px; }
.cfg__group { margin-bottom: min(22px, 2.4vh); }
.cfg__label { font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--gold); margin-bottom: 10px; }
.cfg__choices { display: flex; flex-wrap: wrap; gap: 8px; }
.cfg__choices button { background: transparent; border: 1px solid var(--line); color: var(--ink); padding: 11px 18px; font-size: 14px; display: inline-flex; align-items: baseline; gap: 6px; transition: border-color .3s, background .3s, color .3s; }
.cfg__choices button b { font-weight: 500; }
.cfg__choices button:hover { border-color: var(--muted); }
.cfg__choices button[aria-checked="true"] { border-color: var(--gold); background: rgba(198, 164, 103, .1); color: var(--gold-soft); }
.cfg__actions { margin-top: min(30px, 3.4vh); align-items: center; gap: 24px; }
.cfg__note { margin-top: 18px; font-size: 12px; color: #5d5a54; }
.cfg__preview { display: flex; align-items: center; justify-content: flex-start; padding-left: 7%; }

/* Téléphone (bordure fine) */
.pv-phone { position: relative; aspect-ratio: 9 / 18.6; border-radius: 13% / 6.3%; padding: 1.6%; background: #0c0d0f;
  box-shadow: 0 0 0 1px #4a4c52, 0 0 0 2px #1a1b1e, inset 0 0 0 1px rgba(255, 255, 255, .08), 0 50px 90px -24px rgba(0, 0, 0, .95); }
.pv-phone__island { position: absolute; z-index: 5; left: 50%; top: 2.6%; width: 28%; height: 2.6%; margin-left: -14%; background: #000; border-radius: 20px; }
.pv-phone__screen { position: relative; height: 100%; border-radius: 11.5% / 5.5%; overflow: hidden; background: #fff; }
.pv-phone--hero { width: min(310px, 25vw, 36vh); }

/* La scène : étiquette « Aujourd'hui / Avec EHBH Digital » + notifications */
.ig-stage { position: relative; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.ig-stage__tag { font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line); padding: 7px 16px; transition: color .4s, border-color .4s; }
.ig-stage__tag.is-gold { color: var(--gold-soft); border-color: var(--gold); }
.ig-notif { position: absolute; z-index: 6; display: flex; gap: 10px; align-items: center; width: 232px; background: rgba(20, 21, 25, .92); backdrop-filter: blur(10px); border: 1px solid rgba(198, 164, 103, .35);
  padding: 11px 14px; font-size: 12px; color: var(--ink); box-shadow: 0 24px 40px -16px rgba(0, 0, 0, .9); opacity: 0; transform: translateY(14px); transition: opacity .5s, transform .6s cubic-bezier(.2, .8, .2, 1); pointer-events: none; }
.ig-notif.is-on { opacity: 1; transform: none; }
.ig-notif i { width: 30px; height: 30px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--gold-soft), var(--gold)); color: #111; font-style: normal; font-size: 14px; }
.ig-notif b { display: block; font-weight: 500; color: var(--gold-soft); }
.ig-notif span { color: var(--muted); line-height: 1.4; }
.ig-notif--1 { top: 31%; left: calc(50% + 110px); }
.ig-notif--2 { top: 67%; left: calc(50% + 130px); }

/* ---------- Le profil Instagram ---------- */
.ig { height: 100%; background: #fff; color: #111; font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; font-size: 10px; line-height: 1.35; overflow: hidden; }
.ig__status { display: flex; justify-content: space-between; padding: 9% 9% 1%; font-size: 10px; }
.ig__status span { font-size: 7px; letter-spacing: 1px; }
.ig__top { display: flex; justify-content: space-between; align-items: center; padding: 2% 5% 3%; font-size: 13px; }
.ig__top > span { font-size: 13px; letter-spacing: 6px; }
.ig__head { display: grid; grid-template-columns: 30% repeat(3, 1fr); align-items: center; padding: 0 5%; text-align: center; }
.ig__head p { font-size: 9px; color: #333; }
.ig__head p b { display: block; font-size: 12px; color: #111; font-weight: 600; }
.ig__avatar { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: #cfcfcf; transition: background .5s, box-shadow .5s; }
.ig__avatar b { font-family: Arial, sans-serif; font-size: 22px; color: #fff; font-weight: 400; transition: all .5s; }
.ig__bio { padding: 3% 5% 0; }
.ig__bio > b { display: block; font-size: 10.5px; }
.ig__bio small { display: block; color: #737373; font-size: 9px; }
.ig__bio p { font-size: 9.5px; min-height: 3.9em; }
.ig__bio a { display: block; color: #00376b; font-weight: 600; font-size: 9.5px; min-height: 1.3em; }
.ig__btns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 3% 5%; }
.ig__btns span { text-align: center; background: #efefef; border-radius: 6px; padding: 5px 0; font-weight: 600; font-size: 9px; }
.ig__btns span:first-child { background: #0095f6; color: #fff; }
.ig__hl { list-style: none; display: flex; gap: 9px; padding: 1% 5% 3%; min-height: 66px; }
.ig__hl li { width: 44px; text-align: center; font-size: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; animation: tileIn .5s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--d, 0) * 80ms); }
.ig__hl i { display: block; width: 44px; height: 44px; border-radius: 50%; margin-bottom: 3px; background: #e6e6e6; border: 1.5px solid #d4d4d4; }
.ig[data-etat="apres"] .ig__hl i { background: var(--img) center / cover; border: 2px solid #fff; box-shadow: 0 0 0 1px #c6a467; }
.ig__tabs { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid #efefef; }
.ig__tabs i { font-style: normal; text-align: center; padding: 5px 0; color: #999; font-size: 11px; }
.ig__tabs i.is-on { color: #111; box-shadow: inset 0 -1px 0 #111; }
.ig__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5px; }
.ig__tile { position: relative; aspect-ratio: 1; overflow: hidden; background: #eee; animation: tileIn .55s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--d) * 90ms); }
.ig__tile::before { content: ""; position: absolute; inset: 0; background: var(--img) var(--pos, 50% 50%) / cover; transform: scale(var(--z, 1)); transform-origin: var(--pos, 50% 50%); transition: filter .5s; }
.ig__tile i { position: absolute; top: 5px; right: 6px; color: #fff; font-style: normal; font-size: 9px; text-shadow: 0 1px 3px rgba(0, 0, 0, .6); }
@keyframes tileIn { from { opacity: 0; transform: scale(.85); } to { opacity: 1; transform: none; } }

/* Le compte d'aujourd'hui : négligé */
.ig[data-etat="avant"] .ig__tile:nth-child(1)::before { filter: saturate(2.4) contrast(1.3); transform: rotate(6deg) scale(1.35); }
.ig[data-etat="avant"] .ig__tile:nth-child(3)::before { filter: brightness(.55) sepia(.5); }
.ig[data-etat="avant"] .ig__tile:nth-child(4)::before { filter: hue-rotate(40deg) saturate(1.8); transform: scale(2.4); }
.ig[data-etat="avant"] .ig__tile:nth-child(6)::before { filter: brightness(1.5) contrast(.7) blur(1.2px); }
.ig[data-etat="avant"] .ig__tile:nth-child(8)::before { filter: grayscale(.7) contrast(1.6); transform: rotate(-8deg) scale(1.5); }
.ig[data-etat="avant"] .ig__tile:nth-child(9)::before { filter: saturate(3) hue-rotate(-30deg); }
.ig__tile--junk { display: grid; place-items: center; text-align: center; padding: 6px; background: var(--bg); color: #111; font-family: Impact, "Arial Black", sans-serif; font-size: 13px; line-height: 1.05; text-transform: uppercase; }
.ig__tile--junk:nth-child(5) { color: #fff; text-shadow: 2px 2px 0 #c00; transform: rotate(-3deg); }

/* Le compte avec EHBH Digital : soigné */
.ig[data-etat="apres"] .ig__avatar { background: #13283a; box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px #c6a467; }
.ig[data-etat="apres"] .ig__avatar b { font-family: Georgia, serif; font-style: italic; color: #e8d3a3; }

/* ---------- 2. Méthode : le compte se construit ---------- */
.bs { display: grid; grid-template-columns: .8fr 1.2fr; gap: 70px; }
.bs > * { min-width: 0; }
.bs__stage { grid-column: 2; grid-row: 1; position: sticky; top: 12vh; align-self: start; height: 76vh; min-height: 460px; display: flex; flex-direction: column; }
.bs__steps { grid-column: 1; grid-row: 1; }
.bs__step { min-height: 70vh; display: flex; flex-direction: column; justify-content: center; opacity: .25; transition: opacity .5s; }
.bs__step.is-active { opacity: 1; }
.bs__step .num { font-family: var(--serif); font-style: italic; color: var(--gold); font-size: 24px; }
.bs__step h3 { font-size: clamp(40px, 4.4vw, 64px); margin: 10px 0 16px; }
.bs__step p { color: var(--muted); font-size: 17px; max-width: 430px; }
.bs__step .result { margin-top: 18px; color: var(--gold-soft); font-size: 14px; }
.bs__screen { position: relative; flex: 1; border: 1px solid var(--line); background: radial-gradient(ellipse 70% 60% at 50% 40%, rgba(198, 164, 103, .08), transparent 70%), var(--bg2); overflow: hidden; }
.bs__progress { list-style: none; display: flex; margin-top: 16px; border-top: 1px solid var(--line); }
.bs__progress li { flex: 1; padding-top: 10px; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: #5d5a54; position: relative; transition: color .4s; }
.bs__progress li::before { content: ""; position: absolute; top: -1px; left: 0; width: 0; height: 1px; background: var(--gold); transition: width .5s; }
.bs__progress li.is-done { color: var(--muted); } .bs__progress li.is-done::before { width: 100%; }
.bs__progress li.is-active { color: var(--gold); } .bs__progress li.is-active::before { width: 100%; }

.mk { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 0 7%; opacity: 0; transform: translateY(16px) scale(.98); transition: opacity .6s, transform .7s cubic-bezier(.2, .8, .2, 1); pointer-events: none; }
.bs__screen[data-stage="1"] .mk--audit, .bs__screen[data-stage="2"] .mk--plan, .bs__screen[data-stage="3"] .mk--brand,
.bs__screen[data-stage="4"] .mk--shoot, .bs__screen[data-stage="5"] .mk--post, .bs__screen[data-stage="6"] .mk--report { opacity: 1; transform: none; }
.mk__title { font-family: var(--serif); font-size: 26px; margin-bottom: 16px; text-align: center; }
.mk__title span { color: var(--gold-soft); font-style: italic; }
.mk__note { margin-top: 18px; font-size: 13px; color: var(--muted); text-align: center; }

/* 1. Audit : des notes sur 5 */
.au { width: min(420px, 100%); display: grid; gap: 4px; }
.au p { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.au i { --on: 0; width: 86px; height: 10px; background: radial-gradient(circle 4.5px, #4a4741 92%, transparent) 0 0 / 18px 10px repeat-x; position: relative; }
.au i::after { content: ""; position: absolute; inset: 0; width: calc(var(--on) * 18px); background: radial-gradient(circle 4.5px, var(--gold) 92%, transparent) 0 0 / 18px 10px repeat-x; transition: width .8s .3s cubic-bezier(.2, .8, .2, 1); }
.bs__screen[data-stage="1"] .au i { --on: var(--n); }

/* 2. Calendrier */
.pl { width: min(470px, 100%); display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.pl b { text-align: center; font-size: 11px; color: var(--muted); font-weight: 400; letter-spacing: .1em; }
.pl span { height: 48px; border: 1px solid var(--line); }
.pl__c { display: grid; place-items: center; font-size: 11px; background: #22242a; color: var(--ink); }
.pl__c--reel { background: linear-gradient(135deg, var(--gold), var(--gold-soft)); color: #111; border-color: transparent !important; }
.pl__c--story { background: transparent; color: var(--gold-soft); border-color: rgba(198, 164, 103, .5) !important; }
.bs__screen[data-stage="2"] .pl__c { animation: tileIn .5s cubic-bezier(.2, .8, .2, 1) both; }
.bs__screen[data-stage="2"] .pl span:nth-of-type(n+4) { animation-delay: .15s; } .bs__screen[data-stage="2"] .pl span:nth-of-type(n+8) { animation-delay: .3s; } .bs__screen[data-stage="2"] .pl span:nth-of-type(n+11) { animation-delay: .45s; }

/* 3. Identité visuelle */
.br { display: grid; grid-template-columns: auto auto; gap: 18px 26px; align-items: center; }
.br__sw { display: flex; gap: 8px; }
.br__sw i { width: 54px; height: 54px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 1px rgba(255, 255, 255, .12); }
.br__type { display: flex; gap: 20px; align-items: baseline; }
.br__serif { font-family: var(--serif); font-size: 52px; line-height: 1; color: var(--gold-soft); }
.br__sans { font-family: var(--sans); font-size: 40px; line-height: 1; }
.br__tpl { grid-column: 1 / -1; justify-self: center; width: 220px; background: #f3ede2; padding: 8px 8px 12px; color: #13283a; font-family: var(--serif); font-size: 17px; text-align: center; box-shadow: 0 24px 40px -18px rgba(0, 0, 0, .9); }
.br__tpl span { display: block; aspect-ratio: 4 / 3; background: var(--img) center / cover; margin-bottom: 8px; }
.bs__screen[data-stage="3"] .br > * { animation: tileIn .6s cubic-bezier(.2, .8, .2, 1) both; }
.bs__screen[data-stage="3"] .br > :nth-child(2) { animation-delay: .2s; } .bs__screen[data-stage="3"] .br > :nth-child(3) { animation-delay: .4s; }

/* 4. Tournage : le viseur */
.sh { position: relative; width: min(250px, 60%); aspect-ratio: 9 / 16; background: var(--img) center / cover; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .9); }
.sh::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 33%, rgba(255, 255, 255, .25) 33.3%, transparent 33.6%, transparent 66.4%, rgba(255, 255, 255, .25) 66.6%, transparent 67%),
  linear-gradient(transparent 33%, rgba(255, 255, 255, .25) 33.3%, transparent 33.6%, transparent 66.4%, rgba(255, 255, 255, .25) 66.6%, transparent 67%); }
.sh__c { position: absolute; width: 18px; height: 18px; border: 2px solid #fff; z-index: 1; }
.sh__c--1 { top: 10px; left: 10px; border-right: 0; border-bottom: 0; } .sh__c--2 { top: 10px; right: 10px; border-left: 0; border-bottom: 0; }
.sh__c--3 { bottom: 10px; left: 10px; border-right: 0; border-top: 0; } .sh__c--4 { bottom: 10px; right: 10px; border-left: 0; border-top: 0; }
.sh__rec, .sh__fmt { position: absolute; z-index: 1; top: 34px; font-size: 10px; color: #fff; letter-spacing: .08em; text-shadow: 0 1px 3px rgba(0, 0, 0, .7); }
.sh__rec { left: 16px; } .sh__fmt { right: 16px; }
.bs__screen[data-stage="4"] .sh__rec { animation: blink 1.2s steps(2) infinite; }
@keyframes blink { 50% { opacity: .2; } }

/* 5. Publication */
.po { width: min(280px, 70%); background: #fff; color: #111; font-family: -apple-system, "Segoe UI", Roboto, Arial, sans-serif; font-size: 11px; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .9); }
.po__head { display: flex; align-items: center; gap: 8px; padding: 8px 10px; }
.po__head i { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: #13283a; color: #e8d3a3; font-family: Georgia, serif; font-size: 12px; box-shadow: 0 0 0 1.5px #fff, 0 0 0 2.5px #c6a467; }
.po__img { display: block; aspect-ratio: 1; background: var(--img) center / cover; }
.po__caption { padding: 8px 10px 4px; line-height: 1.45; }
.po__ok { padding: 6px 10px 10px; color: #2f8a52; font-size: 10.5px; opacity: 0; transition: opacity .5s 1s; }
.bs__screen[data-stage="5"] .po__ok { opacity: 1; }

/* 6. Le point du mois */
.rp { width: min(440px, 100%); display: grid; gap: 14px; }
.rp p { display: grid; grid-template-columns: 170px 1fr; align-items: center; gap: 12px; font-size: 14px; }
.rp i { display: block; height: 12px; width: 0; border-radius: 3px; background: linear-gradient(90deg, var(--gold), var(--gold-soft)); transition: width 1s .2s cubic-bezier(.2, .8, .2, 1); }
.bs__screen[data-stage="6"] .rp i { width: var(--w); }
.rp__next { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; width: min(440px, 100%); margin-top: 24px; }
.rp__next p { border: 1px solid var(--line); padding: 12px 14px; font-size: 14px; }
.rp__next small { display: block; font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin-bottom: 4px; }

/* ---------- 4. Formules ---------- */
.fm { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.fm > * { min-width: 0; }
.fm__card { position: relative; border: 1px solid var(--line); background: var(--bg2); padding: 42px 32px 34px; display: flex; flex-direction: column; transition: border-color .4s, transform .4s; }
.fm__card:hover { border-color: rgba(198, 164, 103, .5); transform: translateY(-4px); }
.fm__card--featured { border-color: var(--gold); background: linear-gradient(180deg, rgba(198, 164, 103, .09), var(--bg2) 55%); }
.fm__badge { position: absolute; top: -12px; left: 32px; background: var(--gold); color: var(--bg); font-size: 10px; letter-spacing: .2em; text-transform: uppercase; font-weight: 500; padding: 5px 12px; }
.fm__name { font-family: var(--serif); font-size: 36px; line-height: 1; }
.fm__pitch { color: var(--muted); font-size: 15px; margin: 14px 0 22px; }
.fm__card ul { list-style: none; border-top: 1px solid var(--line); flex: 1; }
.fm__card li { padding: 11px 0 11px 22px; border-bottom: 1px solid var(--line); font-size: 15px; position: relative; }
.fm__card li::before { content: "✦"; position: absolute; left: 0; color: var(--gold); font-size: 11px; top: 14px; }
.fm__price { margin-top: 22px; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }

/* ---------- Écrans moyens et téléphones ---------- */
@media (max-width: 1280px) {
  .ig-notif { width: 210px; }
}
@media (max-width: 1020px) {
  .cfg { min-height: 0; padding-top: 120px; }
  .cfg__inner { grid-template-columns: 1fr; gap: 40px; }
  .cfg__preview { justify-content: center; padding-left: 0; }
  .pv-phone--hero { width: min(290px, 70vw); }
  .fm { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
}
@media (max-width: 960px) {
  .bs { display: block; }
  .bs__stage { position: sticky; top: 84px; z-index: 2; height: 46vh; min-height: 300px; background: var(--bg); padding-bottom: 8px; }
  .bs__step { min-height: 90vh; justify-content: flex-end; padding-bottom: 8vh; }
  .bs__step h3 { font-size: 40px; }
  .mk__title { font-size: 20px; margin-bottom: 8px; }
  .mk__note { margin-top: 8px; font-size: 11px; }
  .au p { padding: 5px 0; font-size: 12px; }
  .pl span { height: 30px; } .pl__c { font-size: 9px; }
  .br__sw i { width: 34px; height: 34px; } .br__serif { font-size: 34px; } .br__sans { font-size: 26px; } .br__tpl { width: 150px; font-size: 13px; }
  .sh { width: auto; height: 82%; }
  .po { width: auto; height: 88%; aspect-ratio: auto; display: flex; flex-direction: column; } .po__img { flex: 1; aspect-ratio: auto; } .po__caption { font-size: 10px; }
  .rp p { grid-template-columns: 120px 1fr; font-size: 12px; } .rp__next { margin-top: 12px; } .rp__next p { font-size: 12px; padding: 8px 10px; }
}
@media (max-width: 760px) {
  /* Les notifications passent par-dessus le téléphone */
  .ig-notif { width: min(270px, 84vw); left: 50% !important; right: auto !important; margin-left: calc(min(270px, 84vw) / -2); }
  .ig-notif--1 { top: 18%; } .ig-notif--2 { top: auto; bottom: 8%; }
}
@media (max-width: 640px) {
  .cfg__choices button { padding: 9px 13px; font-size: 13px; }
  .bs__progress li { font-size: 7.5px; letter-spacing: .02em; text-align: center; }
  .po__caption { display: none; }
}
@media (prefers-reduced-motion: reduce) { .bs__step { opacity: 1; } .ig__tile, .ig__hl li { animation: none; } }

/* Liens « en savoir plus » sous les formules */
.fm__more { margin-top: 14px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; align-self: flex-start; }
.fm__also { margin-top: 40px; text-align: center; color: var(--muted); font-size: 15px; }
