/* Folio Engine: account pages (sign-up, log-in, member area), after the book-en-ligne.com mock-ups. */

@font-face { font-family: "Montserrat"; src: url("../fonts/montserrat-latin.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Palanquin Dark"; src: url("../fonts/palanquin-dark-700-latin.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Playfair Display"; src: url("../fonts/playfair-display-latin.woff2") format("woff2"); font-weight: 400 900; font-display: swap; }

:root {
	--fa-blue: #3c52ff;
	--fa-blue-dark: #2c3fe0;
	--fa-blue-soft: #eef1ff;
	--fa-navy: #0a0f5a;
	--fa-text: #1d2350;
	--fa-muted: #66728a;
	--fa-sky: #e7f4ff;
	--fa-bg: #f7fafd;
	--fa-white: #fff;
	--fa-line: #dce4ee;
	--fa-line-soft: #e9eef5;
	--fa-green: #18745b;
	--fa-green-soft: #eaf7f0;
	--fa-red: #c0392b;
	--fa-red-soft: #fdeeee;
	--fa-orange-soft: #fff4e5;
	--fa-radius: 14px;
	--fa-radius-sm: 8px;
	--fa-shadow: 0 1px 2px rgba(10, 15, 90, .04), 0 8px 24px rgba(10, 15, 90, .05);
	--fa-title: "Palanquin Dark", "Montserrat", system-ui, sans-serif;
	--fa-text-font: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.fa { margin: 0; font: 400 15px/1.55 var(--fa-text-font); color: var(--fa-text); background: var(--fa-white); }
.fa img { max-width: 100%; height: auto; display: block; }
.fa a { color: var(--fa-blue); }
.fa h1, .fa h2, .fa h3, .fa p { margin: 0; }
.fa-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.fa-icon { width: 1.15em; height: 1.15em; flex: none; display: inline-block; vertical-align: -0.2em; }
[hidden] { display: none !important; }

/* --- Layouts --- */
.fa--public { min-height: 100vh; display: flex; flex-direction: column; background: linear-gradient(180deg, var(--fa-sky) 0, #f4faff 28rem, var(--fa-white) 46rem); }
.fa-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.5rem 2.5rem; }
.fa-top__center { flex: 1; text-align: center; }
.fa-top__right { display: flex; align-items: center; gap: 1rem; color: var(--fa-muted); font-size: 14px; }
.fa-logo { display: inline-flex; align-items: center; gap: .6rem; color: var(--fa-navy) !important; font: 700 21px/1 var(--fa-text-font); text-decoration: none; letter-spacing: -.01em; }
.fa-logo img { width: auto; height: 40px; }
.fa-logo b { color: var(--fa-blue); font-weight: 700; }
.fa-back { display: inline-flex; align-items: center; gap: .55rem; color: var(--fa-navy) !important; font-weight: 600; text-decoration: none; }
.fa-main { flex: 1; width: min(100% - 2.5rem, 1200px); margin: 0 auto; padding: 1rem 0 4rem; }
.fa-main--narrow { width: min(100% - 2.5rem, 520px); }
.fa-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding: 1.5rem max(1.25rem, calc((100% - 1200px) / 2)); border-top: 1px solid var(--fa-line); color: var(--fa-muted); font-size: 13px; }
.fa-foot nav { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.fa-foot a { color: var(--fa-navy); text-decoration: none; }

/* Account area: sidebar + content */
.fa--account { background: var(--fa-bg); }
.fa-app { display: grid; grid-template-columns: 260px minmax(0, 1fr); min-height: 100vh; }
.fa-side { position: sticky; top: 0; display: flex; flex-direction: column; height: 100vh; padding: 1.6rem 1.25rem 1rem; border-right: 1px solid var(--fa-line); background: var(--fa-white); }
.fa-side__label { margin: 1.4rem 0 1.6rem .5rem; color: var(--fa-muted); font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.fa-nav { display: flex; flex-direction: column; gap: .35rem; }
.fa-nav a { display: flex; align-items: center; gap: .85rem; padding: .8rem .9rem; border-radius: 10px; color: var(--fa-navy); font-weight: 500; text-decoration: none; }
.fa-nav a:hover { background: var(--fa-bg); }
.fa-nav a[aria-current="page"] { background: var(--fa-sky); color: var(--fa-blue); font-weight: 600; }
.fa-nav .fa-icon { width: 20px; height: 20px; color: var(--fa-muted); }
.fa-nav a[aria-current="page"] .fa-icon { color: var(--fa-blue); }
.fa-nav--bottom { margin-top: auto; padding-bottom: 1rem; }
.fa-me { display: flex; align-items: center; gap: .75rem; padding-top: 1rem; border-top: 1px solid var(--fa-line); }
.fa-me__avatar { width: 38px; height: 38px; overflow: hidden; border-radius: 9px; background: var(--fa-sky); color: var(--fa-blue); font-weight: 700; display: flex; align-items: center; justify-content: center; }
.fa-me__avatar img { width: 100%; height: 100%; object-fit: cover; }
.fa-me strong { display: block; color: var(--fa-navy); font-size: 14px; }
.fa-me span { color: var(--fa-muted); font-size: 12px; }
.fa-content { min-width: 0; }
.fa-bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.1rem 2.5rem; border-bottom: 1px solid var(--fa-line); background: var(--fa-white); font-size: 14px; }
.fa-crumbs { display: flex; align-items: center; gap: .6rem; color: var(--fa-muted); }
.fa-crumbs strong { color: var(--fa-navy); }
.fa-bar a { color: var(--fa-navy); text-decoration: none; display: inline-flex; align-items: center; gap: .4rem; }
.fa-page { padding: 2.2rem 2.5rem 4rem; max-width: 1240px; }
.fa-page__head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 1.6rem; }
.fa-page__head h1 { font: 700 34px/1.15 var(--fa-title); color: var(--fa-navy); }
.fa-page__head p { margin-top: .3rem; color: var(--fa-muted); }
.fa-menu-toggle { display: none; }

/* --- Titles --- */
.fa-hero { margin: 1rem 0 2.5rem; text-align: center; }
.fa-hero h1 { font: 700 clamp(2rem, 4.5vw, 2.6rem)/1.15 var(--fa-title); color: var(--fa-navy); }
.fa-hero p { max-width: 42rem; margin: .8rem auto 0; color: var(--fa-muted); font-size: 16px; }
.fa-mark { display: inline-block; padding: 0 .3rem; background: var(--fa-blue); color: #fff; line-height: 1.2; }
.fa-kicker { color: var(--fa-blue); font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.fa-h2 { font: 700 23px/1.25 var(--fa-title); color: var(--fa-navy); }
.fa-h3 { font: 700 18px/1.3 var(--fa-title); color: var(--fa-navy); }
.fa-muted { color: var(--fa-muted); }
.fa-small { font-size: 13px; }

/* --- Cards & grids --- */
.fa-card { padding: 1.8rem 2rem; border: 1px solid var(--fa-line); border-radius: var(--fa-radius); background: var(--fa-white); box-shadow: var(--fa-shadow); }
.fa-card + .fa-card { margin-top: 1.5rem; }
.fa-card--sky { border-color: transparent; background: var(--fa-sky); box-shadow: none; }
.fa-card--dashed { border: 1.5px dashed var(--fa-line); box-shadow: none; }
.fa-card__head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1.3rem; }
.fa-card__section + .fa-card__section { margin-top: 1.8rem; padding-top: 1.8rem; border-top: 1px solid var(--fa-line); }
.fa-grid { display: grid; gap: 1.5rem; }
.fa-grid--2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.fa-grid--main-side { grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); align-items: start; }
.fa-grid--side-main { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); align-items: start; }
.fa-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.fa-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.fa-stack > * + * { margin-top: 1.5rem; }

/* --- Forms --- */
.fa-required-note { color: var(--fa-muted); font-size: 12px; }
.fa-required-note::before, .fa-req::before { content: "*"; color: var(--fa-blue); margin-right: .2rem; }
.fa-field { margin-bottom: 1.3rem; }
.fa-field:last-child { margin-bottom: 0; }
.fa-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.fa-label { display: block; margin-bottom: .55rem; color: var(--fa-navy); font-weight: 600; font-size: 14px; }
.fa-label .fa-req { margin-left: .2rem; }
.fa-label .fa-req::before { margin: 0; }
.fa-input, .fa-select, .fa-textarea { width: 100%; padding: .9rem 1rem; border: 1px solid var(--fa-line); border-radius: var(--fa-radius-sm); background: var(--fa-white); color: var(--fa-text); font: inherit; font-size: 15px; transition: border-color .15s, box-shadow .15s; }
.fa-textarea { min-height: 7rem; resize: vertical; line-height: 1.6; }
.fa-select { appearance: none; padding-right: 2.6rem; background: var(--fa-white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231d2350' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 1rem center / 18px; }
.fa-input::placeholder, .fa-textarea::placeholder { color: #9aa3b5; }
.fa-input:focus, .fa-select:focus, .fa-textarea:focus { outline: 0; border-color: var(--fa-blue); box-shadow: 0 0 0 3px rgba(60, 82, 255, .15); }
.is-invalid > .fa-input, .is-invalid > .fa-select, .is-invalid > .fa-textarea, .is-invalid > .fa-password > .fa-input, .is-invalid > .fa-address, .is-invalid > .fa-choices .fa-choice { border-color: var(--fa-red); }
.fa-help { margin-top: .5rem; color: var(--fa-muted); font-size: 13px; }
.fa-error { margin-top: .45rem; color: var(--fa-red); font-size: 13px; font-weight: 500; }
.fa-password { position: relative; }
.fa-password .fa-input { padding-right: 3rem; }
.fa-eye { position: absolute; top: 50%; right: .6rem; display: flex; padding: .4rem; border: 0; background: none; color: var(--fa-navy); cursor: pointer; transform: translateY(-50%); }
.fa-check { display: flex; align-items: flex-start; gap: .65rem; cursor: pointer; font-size: 14px; }
.fa-check input { width: 18px; height: 18px; margin: .1rem 0 0; accent-color: var(--fa-blue); flex: none; }
.fa-inline { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.fa-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Radio and choice cards */
.fa-choices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; }
.fa-choice { position: relative; display: flex; align-items: center; gap: .7rem; padding: .85rem 1rem; border: 1px solid var(--fa-line); border-radius: var(--fa-radius-sm); background: var(--fa-white); cursor: pointer; font-size: 14px; }
.fa-choice input { position: absolute; opacity: 0; pointer-events: none; }
.fa-choice::before { content: ""; width: 18px; height: 18px; flex: none; border: 1.5px solid #a7afc2; border-radius: 50%; }
.fa-choice:has(input:checked) { border-color: var(--fa-blue); background: var(--fa-blue-soft); color: var(--fa-blue); font-weight: 600; }
.fa-choice:has(input:checked)::before { border: 5px solid var(--fa-blue); }
.fa-choice:has(input:focus-visible) { box-shadow: 0 0 0 3px rgba(60, 82, 255, .2); }
.fa-swatches { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; }
.fa-swatch { position: relative; display: flex; align-items: center; gap: .6rem; padding: .75rem 1rem; border: 1px solid var(--fa-line); border-radius: var(--fa-radius-sm); cursor: pointer; font-size: 14px; }
.fa-swatch input { position: absolute; opacity: 0; }
.fa-swatch i { width: 18px; height: 18px; border-radius: 50%; }
.fa-swatch:has(input:checked) { border-color: var(--fa-blue); background: var(--fa-blue-soft); font-weight: 600; }
.fa-swatch:has(input:checked)::after { content: "✓"; color: var(--fa-blue); font-weight: 700; }
.fa-swatch:has(input:focus-visible) { box-shadow: 0 0 0 3px rgba(60, 82, 255, .2); }
.fa-fonts .fa-swatch { flex-direction: column; justify-content: center; padding: 1rem .5rem; text-align: center; }
.fa-fonts .fa-swatch b { font-size: 26px; font-weight: 400; line-height: 1; color: var(--fa-navy); }
.fa-fonts .fa-swatch span { font-size: 12px; color: var(--fa-muted); }
.fa-fonts .fa-swatch:has(input:checked) span { color: var(--fa-blue); }
.fa-fonts .fa-swatch::after { display: none; }

/* Switch */
.fa-switch { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; cursor: pointer; }
.fa-switch + .fa-switch { margin-top: 1.4rem; padding-top: 1.4rem; border-top: 1px solid var(--fa-line); }
.fa-switch strong { display: block; color: var(--fa-navy); font-size: 14px; }
.fa-switch span { color: var(--fa-muted); font-size: 13px; }
.fa-switch input { appearance: none; width: 42px; height: 24px; flex: none; margin: 0; border-radius: 999px; background: #c9d1df; cursor: pointer; transition: background .2s; position: relative; }
.fa-switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .2); transition: transform .2s; }
.fa-switch input:checked { background: var(--fa-blue); }
.fa-switch input:checked::after { transform: translateX(18px); }
.fa-switch input:focus-visible { box-shadow: 0 0 0 3px rgba(60, 82, 255, .25); }

/* --- Buttons --- */
.fa-btn { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; padding: .85rem 1.4rem; border: 1px solid var(--fa-line); border-radius: var(--fa-radius-sm); background: var(--fa-white); color: var(--fa-navy) !important; font: 700 15px/1.2 var(--fa-text-font); text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s, transform .1s; white-space: nowrap; }
.fa-btn:hover { border-color: #c3cddb; }
.fa-btn:active { transform: translateY(1px); }
.fa-btn--primary { border-color: var(--fa-blue); background: var(--fa-blue); color: #fff !important; }
.fa-btn--primary:hover { border-color: var(--fa-blue-dark); background: var(--fa-blue-dark); }
.fa-btn--soft { border-color: transparent; background: var(--fa-sky); }
.fa-btn--danger { border-color: #f0c9c4; color: var(--fa-red) !important; font-weight: 600; font-size: 14px; }
.fa-btn--block { width: 100%; padding: 1rem; font-size: 16px; }
.fa-btn--small { padding: .55rem .95rem; font-size: 14px; }
.fa-btn[disabled], .fa-btn.is-busy { opacity: .6; cursor: progress; }
.fa-link { display: inline-flex; align-items: center; gap: .4rem; padding: 0; border: 0; background: none; color: var(--fa-blue); font: 600 14px/1.4 var(--fa-text-font); text-decoration: none; cursor: pointer; }
.fa-link:hover { text-decoration: underline; }
.fa-link--danger { color: var(--fa-red); }
.fa-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.fa-actions--between { justify-content: space-between; }

/* --- Notes, badges, chips --- */
.fa-note { display: flex; gap: .75rem; padding: .95rem 1.1rem; border-radius: var(--fa-radius-sm); background: var(--fa-bg); color: var(--fa-muted); font-size: 13px; }
.fa-note--sky { background: var(--fa-sky); }
.fa-note--success { background: var(--fa-green-soft); color: var(--fa-green); }
.fa-note--error { background: var(--fa-red-soft); color: var(--fa-red); }
.fa-note--warn { background: var(--fa-orange-soft); color: #8a5a00; }
.fa-note .fa-icon { margin-top: .1rem; }
.fa-badge { display: inline-flex; align-items: center; gap: .4rem; padding: .3rem .7rem; border-radius: 999px; background: var(--fa-sky); color: var(--fa-navy); font-size: 12px; font-weight: 600; }
.fa-badge--green { background: var(--fa-green-soft); color: var(--fa-green); }
.fa-badge--green::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.fa-badge--grey { background: #eef1f5; color: var(--fa-muted); }
.fa-badge--premium { background: #fff1d6; color: #8a5a00; }
.fa-chip { display: inline-block; padding: .3rem .7rem; border-radius: 999px; background: var(--fa-sky); color: var(--fa-navy); font-size: 12px; }

/* --- Stepper --- */
.fa-steps { display: flex; justify-content: center; align-items: center; gap: 1rem; margin: .5rem 0 2.5rem; padding: 0; list-style: none; color: var(--fa-navy); font-size: 15px; }
.fa-steps li { display: flex; align-items: center; gap: .7rem; }
.fa-steps li + li::before { content: ""; width: 4.2rem; height: 1px; margin-right: .6rem; background: var(--fa-line); }
.fa-steps li.is-done + li::before { background: var(--fa-blue); opacity: .6; }
.fa-steps__n { display: inline-flex; width: 32px; height: 32px; align-items: center; justify-content: center; border: 1px solid var(--fa-line); border-radius: 50%; background: var(--fa-white); font-size: 13px; font-weight: 700; }
.fa-steps .is-current { color: var(--fa-blue); font-weight: 700; }
.fa-steps .is-current .fa-steps__n, .fa-steps .is-done .fa-steps__n { border-color: var(--fa-blue); background: var(--fa-blue); color: #fff; }
.fa-steps .is-done { color: var(--fa-blue); }

/* --- Sign-up --- */
.fa-signup-grid { display: grid; grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr); gap: 2rem; align-items: start; width: min(100%, 1120px); margin: 0 auto; }
.fa-promo { padding: 1.5rem; border-radius: var(--fa-radius); background: var(--fa-sky); }
.fa-promo__img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; margin-bottom: 1.3rem; background: linear-gradient(135deg, #c9d6ff, #e8eeff); }
.fa-promo h2 { margin: .5rem 0 .8rem; font: 700 26px/1.2 var(--fa-title); color: var(--fa-navy); }
.fa-promo ul { margin: 1.5rem 0 0; padding: 1.5rem 0 0; border-top: 1px solid rgba(10, 15, 90, .1); list-style: none; }
.fa-promo li { display: flex; gap: .9rem; }
.fa-promo li + li { margin-top: 1.25rem; }
.fa-promo li .fa-icon-box { display: flex; width: 34px; height: 34px; flex: none; align-items: center; justify-content: center; border-radius: 8px; background: #fff; color: var(--fa-blue); }
.fa-promo strong { display: block; color: var(--fa-navy); }
.fa-promo li span { color: var(--fa-muted); font-size: 14px; }

/* Template cards (step 2, Mon book) */
.fa-templates { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; }
.fa-template { position: relative; display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--fa-line); border-radius: var(--fa-radius); background: var(--fa-white); }
.fa-template:has(input:checked) { border: 2px solid var(--fa-blue); box-shadow: 0 10px 30px rgba(60, 82, 255, .12); }
.fa-template__top { display: flex; justify-content: space-between; padding: 1rem 1rem .75rem; color: var(--fa-muted); font-size: 12px; background: var(--fa-bg); }
.fa-template__top b { color: var(--fa-blue); letter-spacing: .06em; }
.fa-template__shot { margin: 0 1rem; aspect-ratio: 25 / 26; overflow: hidden; border: 1px solid var(--fa-line-soft); border-radius: 10px; background: var(--fa-bg); }
.fa-template__shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.fa-template__body { display: flex; flex: 1; flex-direction: column; gap: .8rem; padding: 1.3rem 1.25rem 1.25rem; }
.fa-template__body h3 { font: 700 21px/1.25 var(--fa-title); color: var(--fa-navy); }
.fa-template__body p { color: var(--fa-muted); font-size: 13.5px; }
.fa-template__tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: auto; }
.fa-template__pick { display: flex; align-items: center; justify-content: center; gap: .6rem; padding: .75rem; border: 1px solid var(--fa-line); border-radius: var(--fa-radius-sm); cursor: pointer; color: var(--fa-navy); font-weight: 700; font-size: 14px; }
.fa-template__pick input { width: 18px; height: 18px; margin: 0; accent-color: var(--fa-blue); }
.fa-template:has(input:checked) .fa-template__pick { border-color: var(--fa-blue); background: var(--fa-blue-soft); color: var(--fa-blue); }
.fa-template__pick .when-on, .fa-template:has(input:checked) .fa-template__pick .when-off { display: none; }
.fa-template:has(input:checked) .fa-template__pick .when-on { display: inline; }
.fa-template:has(input:checked) .fa-template__top .when-off { display: none; }
.fa-template__top .when-on { display: none; color: var(--fa-blue); font-weight: 700; }
.fa-template:has(input:checked) .fa-template__top .when-on { display: inline; }
.fa-skeleton { display: flex; flex-direction: column; gap: 6%; height: 100%; padding: 8%; }
.fa-skeleton i { display: block; border-radius: 4px; background: currentColor; opacity: .18; }
.fa-summary { display: flex; align-items: center; gap: 1rem; margin-top: 2rem; padding: 1.25rem 1.5rem; border-radius: var(--fa-radius); background: var(--fa-sky); }
.fa-summary__icon { display: flex; width: 42px; height: 42px; flex: none; align-items: center; justify-content: center; border-radius: 9px; background: #fff; color: var(--fa-blue); }
.fa-summary strong { color: var(--fa-navy); }
.fa-summary span { display: block; color: var(--fa-muted); font-size: 14px; }
.fa-summary__step { margin-left: auto; color: var(--fa-blue); font-weight: 600; font-size: 14px; }
.fa-wizard-nav { display: flex; align-items: center; gap: 1rem; margin-top: 1.8rem; padding-top: 1.8rem; border-top: 1px solid var(--fa-line); color: var(--fa-muted); font-size: 14px; }
.fa-wizard-nav .fa-spacer { flex: 1; }

/* Address field */
.fa-address { display: flex; align-items: stretch; border: 1px solid var(--fa-line); border-radius: var(--fa-radius-sm); background: var(--fa-white); overflow: hidden; }
.fa-address:focus-within { border-color: var(--fa-blue); box-shadow: 0 0 0 3px rgba(60, 82, 255, .15); }
.fa-address .fa-input { border: 0; box-shadow: none !important; min-width: 0; }
.fa-address span { display: flex; align-items: center; padding: 0 1rem; background: var(--fa-bg); color: var(--fa-muted); font-size: 14px; white-space: nowrap; border-left: 1px solid var(--fa-line); }
.fa-availability { margin-top: .5rem; font-size: 13px; font-weight: 500; }
.fa-availability.is-ok { color: var(--fa-green); }
.fa-availability.is-ko { color: var(--fa-red); }
.fa-url { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; padding: .7rem .9rem; border: 1px solid var(--fa-line); border-radius: var(--fa-radius-sm); background: var(--fa-bg); font-size: 14px; }
.fa-url a { flex: 1; min-width: 0; overflow: hidden; color: var(--fa-navy); text-overflow: ellipsis; white-space: nowrap; text-decoration: none; }

/* Preview frame */
.fa-preview { overflow: hidden; border: 1px solid var(--fa-line); border-radius: 12px; background: #1b1d22; }
.fa-preview__frame { position: relative; width: 100%; aspect-ratio: 4 / 5; overflow: hidden; background: #fff; }
.fa-preview iframe { position: absolute; top: 0; left: 0; width: 250%; height: 250%; border: 0; transform: scale(.4); transform-origin: 0 0; pointer-events: none; }
.fa-preview__bar { display: flex; justify-content: space-between; align-items: center; padding: .9rem 1.1rem; background: var(--fa-white); border-bottom: 1px solid var(--fa-line); font-size: 14px; }

/* --- Uploads and photos --- */
.fa-drop { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .35rem; padding: 1.5rem; border: 1.5px dashed #c8d2e0; border-radius: 10px; background: var(--fa-bg); color: var(--fa-muted); text-align: center; font-size: 13px; cursor: pointer; transition: border-color .15s, background .15s; }
.fa-drop strong { color: var(--fa-blue); font-size: 14px; }
.fa-drop .fa-icon { width: 24px; height: 24px; color: var(--fa-blue); }
.fa-drop.is-over { border-color: var(--fa-blue); background: var(--fa-blue-soft); }
.fa-drop--row { flex-direction: row; justify-content: flex-start; gap: 1rem; text-align: left; }
.fa-drop--row .fa-drop__thumb { width: 54px; height: 54px; flex: none; overflow: hidden; border-radius: 9px; background: var(--fa-sky); display: flex; align-items: center; justify-content: center; color: var(--fa-blue); }
.fa-drop--row .fa-drop__thumb img { width: 100%; height: 100%; object-fit: cover; }
.fa-drop--row .fa-drop__text { flex: 1; }
.fa-progress { height: 4px; margin-top: .6rem; overflow: hidden; border-radius: 4px; background: var(--fa-line-soft); }
.fa-progress i { display: block; height: 100%; width: 0; background: var(--fa-blue); transition: width .2s; }
.fa-quota { display: flex; align-items: center; gap: .75rem; font-size: 13px; color: var(--fa-muted); }
.fa-quota__bar { width: 8rem; height: 6px; overflow: hidden; border-radius: 6px; background: var(--fa-line-soft); }
.fa-quota__bar i { display: block; height: 100%; background: var(--fa-blue); }
.fa-quota.is-full .fa-quota__bar i { background: #e09b1b; }

.fa-projects { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
.fa-project { padding: 1.4rem 1.25rem 1.1rem; border: 1px solid var(--fa-line); border-radius: var(--fa-radius); background: var(--fa-white); }
.fa-project.is-dragging { opacity: .5; }
.fa-project.is-target { border-color: var(--fa-blue); box-shadow: 0 0 0 3px rgba(60, 82, 255, .15); }
.fa-project__head { display: flex; align-items: flex-start; gap: .5rem; }
.fa-project__title { flex: 1; min-width: 0; padding: .1rem .3rem; margin-left: -.3rem; border: 1px solid transparent; border-radius: 6px; background: none; color: var(--fa-navy); font: 700 20px/1.3 var(--fa-title); }
.fa-project__title:hover { border-color: var(--fa-line); }
.fa-project__title:focus { outline: 0; border-color: var(--fa-blue); }
.fa-project__desc { width: 100%; margin: .3rem 0 .9rem; padding: .35rem .3rem; border: 1px solid transparent; border-radius: 6px; resize: vertical; background: none; color: var(--fa-muted); font: inherit; font-size: 13px; min-height: 2.2rem; }
.fa-project__desc:hover { border-color: var(--fa-line); }
.fa-project__desc:focus { outline: 0; border-color: var(--fa-blue); color: var(--fa-text); }
.fa-handle { display: flex; padding: .3rem; border: 0; background: none; color: var(--fa-muted); cursor: grab; }
.fa-photos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; min-height: 4rem; }
.fa-photo { position: relative; display: flex; flex-direction: column; gap: .35rem; cursor: grab; }
.fa-photo.is-dragging { opacity: .4; }
.fa-photo__img { position: relative; aspect-ratio: 3 / 4; overflow: hidden; border-radius: 9px; background: var(--fa-bg); }
.fa-photo__img img { width: 100%; height: 100%; object-fit: cover; }
.fa-photo__cover { position: absolute; left: .5rem; bottom: .5rem; padding: .2rem .5rem; border-radius: 5px; background: #fff; color: var(--fa-navy); font-size: 11px; font-weight: 700; }
.fa-photo__title { width: 100%; padding: .2rem .25rem; border: 1px solid transparent; border-radius: 5px; background: none; color: var(--fa-navy); font: 600 12.5px/1.3 var(--fa-text-font); }
.fa-photo__title:hover { border-color: var(--fa-line); }
.fa-photo__title:focus { outline: 0; border-color: var(--fa-blue); }
.fa-photo__actions { display: flex; justify-content: space-between; font-size: 12px; }
.fa-photo__actions button { padding: 0; border: 0; background: none; color: var(--fa-blue); font: 600 12px var(--fa-text-font); cursor: pointer; }
.fa-photo__actions button.is-remove { color: var(--fa-muted); font-weight: 500; }
.fa-photo.is-hidden-free .fa-photo__img::after { content: "Masquée (Gratuit)"; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(10, 15, 90, .55); color: #fff; font-size: 11px; font-weight: 700; }
.fa-project__foot { display: flex; justify-content: space-between; margin-top: 1rem; padding-top: .9rem; border-top: 1px solid var(--fa-line); }

/* --- Dashboard --- */
.fa-hero-card { display: grid; grid-template-columns: 170px minmax(0, 1fr) minmax(0, 260px); gap: 1.75rem; align-items: start; }
.fa-hero-card > * { min-width: 0; }
.fa-hero-card__cover { aspect-ratio: 4 / 5; overflow: hidden; border-radius: 10px; background: var(--fa-sky); display: flex; align-items: center; justify-content: center; color: var(--fa-blue); font-size: 13px; text-align: center; padding: .5rem; }
.fa-hero-card__cover img { width: 100%; height: 100%; object-fit: cover; }
.fa-hero-card h2 { margin: .2rem 0 .1rem; font: 700 28px/1.2 var(--fa-title); color: var(--fa-navy); }
.fa-hero-card__side { padding-left: 1.75rem; border-left: 1px solid var(--fa-line); }
.fa-hero-card__side h3 { color: var(--fa-navy); font-size: 14px; font-weight: 700; margin: 0 0 .5rem; }
.fa-stat { padding: 1.25rem 1.3rem; border: 1px solid var(--fa-line); border-radius: var(--fa-radius); background: var(--fa-white); }
.fa-stat__top { display: flex; justify-content: space-between; color: var(--fa-navy); font-size: 14px; font-weight: 500; }
.fa-stat__top .fa-icon { color: var(--fa-blue); }
.fa-stat b { display: block; margin: .6rem 0 .3rem; font: 700 30px/1 var(--fa-title); color: var(--fa-navy); }
.fa-stat span { color: var(--fa-muted); font-size: 12px; }
.fa-todo { display: flex; align-items: center; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid rgba(10, 15, 90, .08); text-decoration: none; }
.fa-todo:last-child { border-bottom: 0; }
.fa-todo__icon { display: flex; width: 40px; height: 40px; flex: none; align-items: center; justify-content: center; border-radius: 9px; background: #fff; color: var(--fa-blue); }
.fa-todo strong { display: block; color: var(--fa-blue); font-size: 14px; }
.fa-todo span { color: var(--fa-muted); font-size: 12.5px; }
.fa-todo .fa-icon:last-child { margin-left: auto; color: var(--fa-blue); }
.fa-empty { padding: 2.5rem 1.5rem; text-align: center; color: var(--fa-muted); }
.fa-empty .fa-h3 { margin-bottom: .5rem; }

/* Views chart */
.fa-chart { position: relative; display: grid; grid-template-columns: 2.2rem 1fr; gap: .5rem; height: 15rem; }
.fa-chart__grid { display: flex; flex-direction: column; justify-content: space-between; padding-bottom: 1.6rem; color: var(--fa-muted); font-size: 11px; text-align: right; }
.fa-chart__bars { display: flex; align-items: stretch; gap: 1rem; border-bottom: 1px solid var(--fa-line); background: linear-gradient(var(--fa-line-soft) 1px, transparent 1px) 0 0 / 100% 50%; margin-bottom: 1.6rem; }
.fa-chart__col { position: relative; display: flex; flex: 1; flex-direction: column; justify-content: flex-end; align-items: center; }
.fa-chart__bar { width: min(100%, 3.6rem); min-height: 2px; border-radius: 3px 3px 0 0; background: var(--fa-blue); }
.fa-chart__value { margin-bottom: .3rem; color: var(--fa-navy); font-size: 12px; font-weight: 700; }
.fa-chart__label { position: absolute; bottom: -1.5rem; color: var(--fa-muted); font-size: 11px; white-space: nowrap; }
@media (max-width: 640px) { .fa-chart__bars { gap: .3rem; } .fa-chart__label { font-size: 9px; transform: rotate(-20deg); } }

/* Premium */
.fa-plan { display: flex; flex-direction: column; gap: .4rem; transition: border-color .15s, box-shadow .15s; }
.fa-plan:has(input:checked) { border: 2px solid var(--fa-blue); box-shadow: 0 10px 30px rgba(60, 82, 255, .12); }
.fa-plan:has(input:focus-visible) { box-shadow: 0 0 0 3px rgba(60, 82, 255, .25); }
.fa-plan__price { font: 700 34px/1.1 var(--fa-title); color: var(--fa-navy); }
.fa-plan__price small { font: 500 15px var(--fa-text-font); color: var(--fa-muted); }
.fa-compare { width: 100%; border-collapse: collapse; font-size: 14px; }
.fa-compare th, .fa-compare td { padding: .8rem .6rem; border-bottom: 1px solid var(--fa-line); text-align: center; }
.fa-compare th[scope="row"] { color: var(--fa-navy); font-weight: 500; text-align: left; }
.fa-compare thead th { color: var(--fa-navy); font-weight: 700; }
.fa-compare thead th:last-child, .fa-compare td:last-child { background: var(--fa-blue-soft); color: var(--fa-blue); font-weight: 600; }
.fa-compare .fa-icon { color: var(--fa-green); }
#fa-checkout { min-height: 20rem; }

/* Help */
.fa-faq details { padding: 1rem 0; border-bottom: 1px solid var(--fa-line); }
.fa-faq details:last-child { border-bottom: 0; }
.fa-faq summary { color: var(--fa-navy); font-weight: 700; font-size: 14px; cursor: pointer; list-style: none; }
.fa-faq summary::-webkit-details-marker { display: none; }
.fa-faq details p { margin-top: .6rem; color: var(--fa-muted); font-size: 13.5px; }
.fa-topics { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1rem; }
.fa-topic { display: flex; align-items: center; gap: .7rem; padding: 1.2rem 1rem; border: 1px solid var(--fa-line); border-radius: 12px; background: #fff; color: var(--fa-navy) !important; font-size: 14px; font-weight: 600; text-decoration: none; }
.fa-topic .fa-icon { color: var(--fa-blue); }
.fa-search { position: relative; }
.fa-search .fa-icon { position: absolute; top: 50%; left: 1rem; color: var(--fa-muted); transform: translateY(-50%); }
.fa-search .fa-input { padding-left: 2.8rem; }

/* Toast and dialog */
.fa-toast { position: fixed; right: 1.5rem; bottom: 1.5rem; z-index: 100; max-width: 26rem; padding: .9rem 1.2rem; border-radius: 10px; background: var(--fa-navy); color: #fff; font-size: 14px; box-shadow: 0 10px 30px rgba(0, 0, 0, .2); opacity: 0; pointer-events: none; transform: translateY(1rem); transition: opacity .2s, transform .2s; }
.fa-toast.is-on { opacity: 1; pointer-events: auto; transform: none; }
.fa-toast.is-error { background: var(--fa-red); }
.fa-dialog { width: min(100% - 2rem, 30rem); padding: 1.8rem; border: 0; border-radius: var(--fa-radius); box-shadow: 0 20px 60px rgba(0, 0, 0, .25); }
.fa-dialog::backdrop { background: rgba(10, 15, 90, .45); }
.fa-dialog h2 { margin-bottom: .6rem; }
.fa-dialog .fa-actions { justify-content: flex-end; margin-top: 1.5rem; }

/* --- Responsive --- */
@media (max-width: 1100px) {
	.fa-templates { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.fa-topics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.fa-hero-card { grid-template-columns: 140px minmax(0, 1fr); }
	.fa-hero-card__side { grid-column: 1 / -1; padding: 1.25rem 0 0; border-left: 0; border-top: 1px solid var(--fa-line); }
}
@media (max-width: 900px) {
	.fa-app { grid-template-columns: 1fr; }
	.fa-side { position: fixed; inset: 0 auto 0 0; z-index: 50; width: 280px; transform: translateX(-100%); transition: transform .25s; box-shadow: 0 0 40px rgba(0, 0, 0, .15); }
	.fa-side.is-open { transform: none; }
	.fa-menu-toggle { display: inline-flex; padding: .4rem; border: 0; background: none; color: var(--fa-navy); cursor: pointer; }
	.fa-bar, .fa-page { padding-left: 1.25rem; padding-right: 1.25rem; }
	.fa-grid--2, .fa-grid--main-side, .fa-grid--side-main, .fa-signup-grid, .fa-grid--3 { grid-template-columns: 1fr; }
	.fa-projects { grid-template-columns: 1fr; }
	.fa-top { padding: 1rem 1.25rem; }
	.fa-top__center { display: none; }
}
@media (max-width: 640px) {
	.fa-logo { font-size: 18px; white-space: nowrap; }
	.fa-bar { padding-top: .8rem; padding-bottom: .8rem; }
	.fa-bar > a { font-size: 0; }
	.fa-bar > a .fa-icon { width: 20px; height: 20px; }
	.fa-crumbs > a, .fa-crumbs > span { display: none; }
	.fa-logo img { height: 32px; }
	.fa-back { white-space: nowrap; font-size: 14px; }
	.fa--public .fa-top > .fa-back { font-size: 0; gap: 0; }
	.fa--public .fa-top > .fa-back .fa-icon { font-size: 15px; width: 22px; height: 22px; }
	.fa-row, .fa-choices, .fa-swatches, .fa-templates, .fa-grid--4 { grid-template-columns: 1fr; }
	.fa-choices { grid-template-columns: 1fr 1fr; }
	.fa-topics { grid-template-columns: 1fr 1fr; }
	.fa-card { padding: 1.3rem 1.2rem; }
	.fa-steps { gap: .4rem; font-size: 12px; }
	.fa-steps li + li::before { width: 1.2rem; margin-right: .2rem; }
	.fa-steps__label { display: none; }
	.fa-steps .is-current .fa-steps__label { display: inline; }
	.fa-page__head h1 { font-size: 28px; }
	.fa-top__right > span { display: none; }
	.fa-photos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.fa-wizard-nav { flex-wrap: wrap; }
	.fa-wizard-nav .fa-muted { display: none; }
	.fa-hero-card { grid-template-columns: 1fr; }
	.fa-hero-card__cover { max-width: 180px; }
}

/* Contacts inbox */
.fa-inbox { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); min-height: 32rem; overflow: hidden; }
.fa-inbox__list { border-right: 1px solid var(--fa-line); padding-top: 1rem; }
.fa-inbox__tabs { display: flex; gap: .5rem; padding: 0 1rem 1rem; }
.fa-inbox__tabs button { padding: .45rem .8rem; border: 0; border-radius: 8px; background: none; color: var(--fa-muted); font: 600 14px var(--fa-text-font); cursor: pointer; }
.fa-inbox__tabs button.is-on { background: var(--fa-sky); color: var(--fa-blue); }
.fa-inbox ul { margin: 0; padding: 0; list-style: none; max-height: 36rem; overflow: auto; }
.fa-inbox li button { position: relative; display: grid; grid-template-columns: 1fr auto; gap: .2rem 1rem; width: 100%; padding: .9rem 1.2rem .9rem 2rem; border: 0; border-top: 1px solid var(--fa-line-soft); background: none; text-align: left; cursor: pointer; font: inherit; }
.fa-inbox li button[aria-current="true"] { background: var(--fa-sky); box-shadow: inset 3px 0 var(--fa-blue); }
.fa-inbox li strong { color: var(--fa-navy); font-size: 14px; }
.fa-inbox li span { color: var(--fa-muted); font-size: 12.5px; }
.fa-inbox li .is-unread::before { content: ""; position: absolute; left: 1rem; top: 1.3rem; width: 6px; height: 6px; border-radius: 50%; background: var(--fa-blue); }
.fa-inbox__detail { padding: 1.8rem 2rem; }
.fa-inbox__detail h2 { margin: .3rem 0 1rem; font: 700 24px/1.25 var(--fa-title); color: var(--fa-navy); }
.fa-inbox__from { display: flex; align-items: center; gap: .8rem; padding-bottom: 1.2rem; border-bottom: 1px solid var(--fa-line); }
.fa-inbox__avatar { display: flex; width: 42px; height: 42px; align-items: center; justify-content: center; border-radius: 10px; background: var(--fa-sky); color: var(--fa-blue); font-weight: 700; }
.fa-inbox__body { margin: 1.4rem 0; white-space: pre-line; line-height: 1.7; }
@media (max-width: 900px) { .fa-inbox { grid-template-columns: 1fr; } .fa-inbox__list { border-right: 0; border-bottom: 1px solid var(--fa-line); } }

/* Quality score */
.fa-score { display: flex; align-items: center; gap: 2rem; }
.fa-score__gauge { position: relative; display: flex; flex: none; flex-direction: column; align-items: center; justify-content: center; width: 8.5rem; height: 8.5rem; border-radius: 50%; background: conic-gradient(var(--fa-blue) calc(var(--p) * 1%), var(--fa-line-soft) 0); }
.fa-score__gauge::before { content: ""; position: absolute; inset: 11px; border-radius: 50%; background: #fff; }
.fa-score__gauge b, .fa-score__gauge span { position: relative; }
.fa-score__gauge b { font: 700 34px/1 var(--fa-title); color: var(--fa-navy); }
.fa-score__gauge span { color: var(--fa-muted); font-size: 13px; }
.fa-score__tips { margin: 0; padding: 0; list-style: none; display: grid; gap: .45rem; font-size: 14px; }
.fa-score__tips li::before { content: "→ "; color: var(--fa-blue); }
.fa-score__tips strong { color: var(--fa-green); }
@media (max-width: 640px) { .fa-score { flex-direction: column; align-items: flex-start; gap: 1rem; } }
