/* /features/ — mockups/pages/fonctionnalites */

/* Hero */
.f-hero .hero-split { grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); }
.f-hero h1.t-display { max-width: none; font-size: clamp(2.75rem, 6.6vw, 5.4rem); white-space: nowrap; }
.f-hero .hero-live { display: flex; flex-direction: column; justify-content: flex-end; align-self: stretch; }
.f-hero .hero-art { position: relative; z-index: -1; width: calc(100% + 110px); max-width: none; max-height: none; margin-top: 130px; margin-left: -110px; object-position: bottom left; -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 84%, transparent); mask-image: linear-gradient(90deg, transparent, #000 7%, #000 84%, transparent); }
.f-hero .m-wavecard { top: 40px; right: 1%; }
.f-hero .f-spark { position: absolute; top: 2%; left: 22%; width: 60px; height: 60px; }
.f-spark { position: absolute; display: block; width: 44px; height: 44px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 44 44' fill='none' stroke='%23ff6e61' stroke-width='3.4' stroke-linecap='round'%3E%3Cpath d='M6 21 18 25M14 6l9 13M33 4l-3 15'/%3E%3C/svg%3E") no-repeat center / contain; pointer-events: none; }

/* Grid */
.f-grid { gap: var(--s-6); }
.f-card { min-height: 0; }
.f-card .m-title { font-size: clamp(1.75rem, 2.9vw, 2.4rem); }
.f-card .m-p { max-width: 24em; font-size: 1.125rem; }

/* 01 langues */
.f-card--langues { grid-template-columns: minmax(0, 1fr) 220px; padding-bottom: var(--s-8); }
.f-card--langues .mpanel-visual { display: grid; justify-items: center; margin: -8px -8px -8px 0; }
.f-langues-art { width: 190px; margin-bottom: -46px; margin-left: -30px; }
.f-langs { position: relative; z-index: 1; display: grid; gap: 2px; width: 210px; margin: 0; padding: 10px; list-style: none; border: 1px solid rgba(255,255,255,.12); border-radius: 16px; background: #15171c; box-shadow: 0 24px 40px -24px rgba(0,0,0,.9); }
.f-langs li { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 10px; font-size: .95rem; }
.f-langs li:first-child { background: #22252c; }
.f-langs-more { padding-top: 10px !important; color: #e6e3de; }
.f-flag { width: 22px; height: 22px; flex: none; border-radius: 50%; background-size: cover; box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); }
.f-flag--fr { background: linear-gradient(90deg, #2b4ea2 33%, #fff 33% 66%, #e4343e 66%); }
.f-flag--es { background: linear-gradient(180deg, #c8102e 26%, #ffc400 26% 74%, #c8102e 74%); }
.f-flag--de { background: linear-gradient(180deg, #1b1b1b 33%, #dd0000 33% 66%, #ffce00 66%); }
.f-flag--it { background: linear-gradient(90deg, #009246 33%, #fff 33% 66%, #ce2b37 66%); }
.f-flag--gb { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 60'%3E%3Crect width='60' height='60' fill='%23012169'/%3E%3Cpath d='M0 0 60 60M60 0 0 60' stroke='%23fff' stroke-width='12'/%3E%3Cpath d='M0 0 60 60M60 0 0 60' stroke='%23C8102E' stroke-width='5'/%3E%3Cpath d='M30 0v60M0 30h60' stroke='%23fff' stroke-width='18'/%3E%3Cpath d='M30 0v60M0 30h60' stroke='%23C8102E' stroke-width='10'/%3E%3C/svg%3E") center / cover; }

/* 02 formatage */
.f-card--format { position: relative; align-content: start; }
.f-format { margin-top: var(--s-4); }
.f-format-body { display: grid; grid-template-columns: minmax(0, 1fr) 56px minmax(0, 1fr); align-items: center; gap: 4px; padding: 14px; }
.f-raw { margin: 0; padding: 14px 18px; border-radius: 12px; background: #1b1d23; color: #a9a59f; font-size: .85rem; line-height: 1.6; }
.f-arrow { color: var(--coral); justify-self: center; }
.f-clean { padding: 14px 18px; border: 1px solid rgba(255,255,255,.14); border-radius: 12px; background: #121418; font-size: .875rem; font-weight: 600; }
.f-clean p { margin: 0 0 8px; }
.f-clean ol { display: grid; gap: 6px; margin: 0; padding-left: 1.4em; }
.f-card--format .f-spark { top: 26%; right: 30px; }

/* 03 dictionnaire */
.f-card--dico { grid-template-columns: minmax(0, 1fr) 188px; column-gap: 8px; }
.f-card--dico .mpanel-visual, .f-card--cmd .mpanel-visual { margin-right: -22px; }
.f-dico { padding-bottom: 6px; overflow: visible; }
.f-dico .ui-win-bar { border-bottom: 0; }
.f-dico-panel { position: relative; margin: 0 -16px 0 14px; padding: 12px 14px 6px; border: 1px solid rgba(255,255,255,.12); border-radius: 14px; background: #17191e; box-shadow: 0 24px 40px -20px rgba(0,0,0,.9); }
.f-dico-head { display: flex; justify-content: space-between; margin: 0 0 6px; font-size: .9rem; font-weight: 600; }
.f-dico-head span { color: var(--muted); }
.f-dico-add { position: absolute; top: 36px; right: 4px; padding: 7px 12px; border: 1px solid rgba(255,255,255,.14); border-radius: 10px; background: #23262d; font-size: .82rem; font-weight: 600; }
.f-dico-panel ul { display: grid; margin: 34px 0 0; padding: 0; list-style: none; }
.f-dico-panel li { display: flex; align-items: center; gap: 12px; padding: 8px 2px; border-top: 1px solid var(--line); font-size: .85rem; }
.f-x { margin-left: auto; color: var(--muted); }
.f-doc { display: grid; place-items: center; width: 26px; height: 28px; border-radius: 6px; color: #fff; }
.f-doc svg { width: 16px; height: 16px; }
.f-doc--violet { background: #7a5af5; } .f-doc--blue { background: #3d8ef0; } .f-doc--green { background: #2fae67; } .f-doc--red { background: #ec5a52; }
.f-card--dico .f-spark { top: 22px; right: 28px; }

/* 04 commandes */
.f-card--cmd { grid-template-columns: minmax(0, 1fr) 236px; padding-bottom: 0; }
.f-card--cmd .mpanel-copy { display: flex; flex-direction: column; align-self: stretch; }
.f-cmd-art { width: 240px; margin-top: auto; padding-top: var(--s-4); }
.f-cmds { display: grid; gap: 16px; margin: 24px 0 0; padding: 0; list-style: none; }
.f-cmds li { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 14px; border: 1px solid rgba(255,255,255,.16); border-radius: 14px; background: #16181d; font-size: .8125rem; white-space: nowrap; box-shadow: 0 18px 30px -22px rgba(0,0,0,.9); }
.f-cmds li:nth-child(odd) { transform: rotate(-2deg); }
.f-cmds li:nth-child(even) { transform: rotate(1.5deg) translateX(8px); }
.f-cmds svg { flex: none; color: #e9e6e1; }
.f-card--cmd .f-spark { top: -14px; right: -6px; }

/* 05 raccourci */
.f-card--keys { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.f-keys { position: relative; display: flex; align-items: center; gap: 14px; margin: -4px 0 18px; color: #e9e6e1; font-size: 1.4rem; }
.f-keys .ui-key { min-width: 88px; height: 88px; font-size: 2rem; transform: rotate(-4deg); }
.f-keys .ui-key--wide { min-width: 0; padding: 0 26px; font-size: 1.45rem; transform: rotate(-3deg) translateY(-6px); }
.f-keys .f-spark { left: -44px; top: -24px; }
.f-os { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.f-os li { display: flex; align-items: center; gap: 14px; width: max-content; min-width: 180px; min-height: 52px; padding: 0 20px; border-radius: 12px; background: #1a1c22; font-size: 1rem; }
.f-os li svg { width: 22px; height: 22px; }
.f-os li:last-child svg { color: #2f9bf0; }

/* 06 mode local */
.f-card--local { position: relative; min-height: 300px; align-content: start; }
.f-card--local .mpanel-copy { position: relative; z-index: 1; }
.f-card--local .m-title { max-width: 10.5em; }
.f-card--local .m-p { max-width: 17em; }
.f-local-art { position: absolute; right: -6px; bottom: 0; width: 64%; max-width: 420px; opacity: .95; }

@media (max-width: 1100px) {
  .f-card--langues, .f-card--dico, .f-card--cmd, .f-card--keys { grid-template-columns: 1fr; }
  .f-card--langues .mpanel-visual, .f-card--dico .mpanel-visual, .f-card--cmd .mpanel-visual { margin: 0; }
  .f-cmd-art { order: 2; }
  .f-local-art { position: static; width: 80%; justify-self: end; margin-top: -24px; }
}
@media (max-width: 900px) {
  .f-hero .hero-split { grid-template-columns: 1fr; }
  .f-hero h1.t-display { white-space: normal; }
  .f-hero .hero-live { margin-right: 0; }
  .f-hero .hero-art { width: 100%; margin: -24px 0 0; }
  .f-hero .m-wavecard { position: relative; top: auto; right: auto; order: -1; align-self: flex-end; width: min(80%, 320px); margin-top: 0; }
  .f-hero .f-spark { display: none; }
}
@media (max-width: 560px) {
  .f-format-body { grid-template-columns: 1fr; }
  .f-arrow { transform: rotate(90deg); }
  .f-dico-panel { margin-right: 0; }
  .f-dico-add { right: 6px; }
  .f-keys .ui-key { min-width: 60px; height: 60px; }
  .f-os li { width: auto; }
  .f-cmds li { white-space: normal; }
}
