/* LIP Outils — autotest et formulaire de contact */
.lipf-quiz, .lipf-form { --n: #0F1D2D; --g: #5A6065; --f: #E6E1D8; --b: #B08A45; --bt: #7A5C26; --c: #F8F6F1; font-size: 1rem; }
.lipf-quiz { background: #fff; border: 1px solid var(--f); border-radius: 18px; box-shadow: 0 1px 2px rgba(15,29,45,.04), 0 16px 40px rgba(15,29,45,.06); overflow: hidden; }
.lipf-top { display: flex; justify-content: space-between; gap: 1rem; padding: 1rem clamp(1.25rem, 1rem + 1.5vw, 2rem); font-size: .8125rem; color: var(--g); }
.lipf-phase { font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--bt); }
.lipf-progress { height: 3px; background: var(--c); }
.lipf-progress__bar { height: 100%; width: 0; background: var(--b); transition: width .3s ease; }
.lipf-body { padding: clamp(1.5rem, 1rem + 3vw, 3rem) clamp(1.25rem, 1rem + 1.5vw, 2rem); min-height: 21rem; }
.lipf-step { display: none; }
.lipf-step.is-active { display: block; animation: lipf-in .28s ease both; }
@keyframes lipf-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.lipf-quiz fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.lipf-quiz legend, .lipf-h { font: 600 clamp(1.5rem, 1.2rem + 1.2vw, 2rem)/1.25 "Cormorant Garamond", Georgia, serif; color: var(--n); margin: 0 0 1.75rem; padding: 0; }
.lipf-count { display: block; font: 600 .75rem/1.3 "IBM Plex Sans", system-ui, sans-serif; letter-spacing: .14em; text-transform: uppercase; color: var(--bt); margin-bottom: .75rem; }
.lipf-nav { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem clamp(1.25rem, 1rem + 1.5vw, 2rem); border-top: 1px solid var(--f); }
.lipf-hint, .lipf-muted { font-size: .8125rem; color: var(--g); }
.lipf-small { font-size: .8125rem; }
.lipf-checks { list-style: none; padding: 0; margin: 1.25rem 0 0; }
.lipf-checks li { position: relative; padding: .5rem 0 .5rem 1.9rem; }
.lipf-checks li::before { content: "✓"; position: absolute; left: 0; top: .62rem; width: 1.1rem; height: 1.1rem; border-radius: 50%; background: var(--n); color: #fff; display: grid; place-items: center; font: 700 .65rem/1 system-ui, sans-serif; }

.lipf-likert { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: .4rem; }
.lipf-likert input, .lipf-choices input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.lipf-likert label { display: grid; place-items: center; min-height: 3.1rem; border: 1px solid #D9D3C8; border-radius: 12px; background: #fff; font: 500 1.1rem/1 "IBM Plex Sans", system-ui, sans-serif; color: var(--n); cursor: pointer; transition: all .15s ease; }
.lipf-likert label:hover, .lipf-choices label:hover { border-color: var(--n); }
.lipf-likert input:checked + label { background: var(--n); border-color: var(--n); color: #fff; }
.lipf-likert input:focus-visible + label, .lipf-choices input:focus-visible + label { outline: 2px solid var(--b); outline-offset: 2px; }
.lipf-ends { display: flex; justify-content: space-between; margin-top: .6rem; font-size: .75rem; color: var(--g); }
.lipf-choices { display: grid; gap: .6rem; }
@media (min-width: 640px) { .lipf-choices--2 { grid-template-columns: 1fr 1fr; } }
.lipf-choices label { display: flex; align-items: center; gap: .85rem; min-height: 3.4rem; padding: .8rem 1rem; border: 1px solid #D9D3C8; border-radius: 12px; background: #fff; cursor: pointer; transition: all .15s ease; }
.lipf-choices label::before { content: ""; flex: none; width: 1.1rem; height: 1.1rem; border-radius: 50%; border: 1px solid #A9A398; transition: all .15s ease; }
.lipf-choices input:checked + label { border-color: var(--n); background: var(--c); }
.lipf-choices input:checked + label::before { border: 5px solid var(--n); }

.lipf-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 3rem; padding: .85rem 1.5rem; border: 1px solid var(--n); border-radius: 999px; background: var(--n); color: #fff; font: 500 .9375rem/1.2 "IBM Plex Sans", system-ui, sans-serif; text-decoration: none; cursor: pointer; transition: background .2s ease, color .2s ease; }
.lipf-btn:hover { background: #243A57; border-color: #243A57; color: #fff; }
.lipf-btn--ghost { background: transparent; color: var(--n); }
.lipf-btn--ghost:hover { background: var(--n); color: #fff; }
.lipf-btn--sm { min-height: 2.6rem; padding: .6rem 1.2rem; }
.lipf-btn--block { width: 100%; }
.lipf-btn[disabled] { opacity: .45; cursor: not-allowed; }
.lipf-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }

.lipf-form { display: grid; gap: 1.2rem; }
.lipf-card { background: #fff; border: 1px solid var(--f); border-radius: 18px; padding: clamp(1.5rem, 1rem + 2vw, 2.5rem); }
.lipf-row { display: grid; gap: 1.2rem; }
@media (min-width: 640px) { .lipf-row { grid-template-columns: 1fr 1fr; } }
.lipf-field { display: grid; gap: .4rem; }
.lipf-field label { font-weight: 500; font-size: .9375rem; color: var(--n); }
.lipf-opt { font-weight: 400; color: var(--g); }
.lipf-input { width: 100%; min-height: 3rem; padding: .75rem .9rem; border: 1px solid #CFC8BC; border-radius: 10px; background: #fff; color: var(--n); font: 400 1rem/1.4 "IBM Plex Sans", system-ui, sans-serif; box-sizing: border-box; }
textarea.lipf-input { min-height: 7rem; resize: vertical; }
select.lipf-input { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%230F1D2D' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .9rem center; background-size: .7rem; padding-right: 2.4rem; }
.lipf-input:focus { outline: none; border-color: var(--n); box-shadow: 0 0 0 3px rgba(176,138,69,.35); }
.lipf-input[aria-invalid="true"] { border-color: #9B2C2C; }
.lipf-error { font-size: .8125rem; color: #9B2C2C; font-weight: 500; }
.lipf-error:empty { display: none; }
.lipf-check { display: grid; grid-template-columns: auto 1fr; gap: .7rem; align-items: start; font-size: .9375rem; }
.lipf-check input { width: 1.2rem; height: 1.2rem; margin: .15rem 0 0; accent-color: var(--n); }
.lipf-check .lipf-error { grid-column: 1 / -1; }
.lipf-hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.lipf-status { display: none; font-size: .9375rem; padding: 1rem 1.2rem; border-radius: 10px; }
.lipf-status.is-visible { display: block; }
.lipf-status--ok { background: rgba(110,143,134,.14); }
.lipf-status--err { background: rgba(155,44,44,.07); }

.lipf-result { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 760px) { .lipf-result { grid-template-columns: 15rem 1fr; } }
.lipf-result__compass { max-width: 15rem; margin-inline: auto; width: 100%; }
.lipf-compass { width: 100%; height: auto; display: block; }
.lipf-needle { transform: rotate(45deg); transform-origin: 160px 160px; transition: transform 1.2s cubic-bezier(.2,.8,.2,1); }
@media (prefers-reduced-motion: no-preference) {
	.lipf-needle--idle { animation: lipf-sway 7s ease-in-out infinite; }
	@keyframes lipf-sway { 0%, 100% { transform: rotate(38deg); } 50% { transform: rotate(52deg); } }
}
.lipf-result__dir { font: 600 .75rem/1.3 "IBM Plex Sans", system-ui, sans-serif; letter-spacing: .14em; text-transform: uppercase; color: var(--bt); margin: 0; }
.lipf-result__name { font: 600 clamp(2.4rem, 1.8rem + 2.5vw, 3.4rem)/1 "Cormorant Garamond", Georgia, serif; color: var(--n); margin: .3rem 0 .8rem; }
.lipf-lead { font-size: 1.0625rem; color: var(--g); }
.lipf-gauge__track { height: .5rem; border-radius: 99px; background: linear-gradient(90deg, #243A57 0 40%, #6E8F86 40% 60%, #B08A45 60% 80%, #D4B67A 80% 100%); position: relative; }
.lipf-gauge__dot { position: absolute; top: 50%; width: 1.1rem; height: 1.1rem; border-radius: 50%; background: #fff; border: 3px solid var(--n); transform: translate(-50%, -50%); left: 0; transition: left .9s ease; }
.lipf-gauge__labels { display: flex; justify-content: space-between; font-size: .75rem; color: var(--g); margin-top: .5rem; }
.lipf-notice { background: var(--c); border-radius: 12px; padding: 1rem 1.25rem; font-size: .9375rem; margin-top: 1.25rem; }
.lipf-notice p { margin: 0; }
[hidden] { display: none !important; }
@media (prefers-reduced-motion: reduce) { .lipf-step.is-active { animation: none; } .lipf-needle { transition: none; } }
.lipf-quiz .screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.lipf-nav [data-next] { margin-left: auto; }
