/* FRSite – free trial request: modal + inline form. Dark, gold accents. */

.frs-modal-open, .frs-modal-open body { overflow: hidden; }

.frs-modal { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 1rem; }
.frs-modal[hidden] { display: none; }
.frs-modal__backdrop { position: absolute; inset: 0; background: rgba(3, 3, 6, .72); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); opacity: 0; transition: opacity .25s ease; }
.frs-modal__dialog {
	position: relative; width: min(100%, 560px); max-height: calc(100vh - 2rem); overflow-y: auto; overscroll-behavior: contain;
	padding: 2rem 1.5rem 1.5rem;
	color: #e5e7eb;
	background:
		radial-gradient(120% 60% at 50% -10%, rgba(255, 197, 61, .12), transparent 60%),
		linear-gradient(180deg, #14141c, #0b0b10);
	border: 1px solid rgba(255, 255, 255, .1);
	border-radius: 24px;
	box-shadow: 0 0 0 1px rgba(255, 197, 61, .18), 0 30px 80px -20px rgba(0, 0, 0, .8), 0 20px 60px -30px rgba(255, 186, 48, .35);
	opacity: 0; transform: translateY(16px) scale(.98);
	transition: opacity .25s ease, transform .3s cubic-bezier(.2, .8, .2, 1);
	scrollbar-width: thin;
}
@media (min-width: 640px) { .frs-modal__dialog { padding: 2.25rem 2.25rem 1.75rem; } }
.frs-modal.is-open .frs-modal__backdrop { opacity: 1; }
.frs-modal.is-open .frs-modal__dialog { opacity: 1; transform: none; }
.frs-modal__glow { position: absolute; inset: 0 0 auto; height: 1px; background: linear-gradient(90deg, transparent, rgba(255, 207, 90, .8), transparent); }
.frs-modal__close { position: absolute; top: .85rem; right: .85rem; display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 12px; background: rgba(255, 255, 255, .06); color: #d1d5db; cursor: pointer; transition: background-color .2s, color .2s; }
.frs-modal__close:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.frs-modal__close svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.frs-modal__head { margin-bottom: 1.5rem; padding-right: 2.5rem; }
.frs-modal__eyebrow { display: inline-flex; align-items: center; gap: .5rem; margin: 0 0 .75rem; padding: .3rem .8rem; border-radius: 999px; background: rgba(34, 197, 94, .14); color: #4ade80; font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.frs-modal__dot { width: 7px; height: 7px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 0 rgba(34, 197, 94, .6); animation: frsPulse 1.8s infinite; }
@keyframes frsPulse { 70% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); } 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); } }
.frs-modal__title { margin: 0 0 .4rem; color: #fff; font-size: clamp(1.4rem, 3vw, 1.75rem); font-weight: 800; line-height: 1.2; letter-spacing: -.01em; }
.frs-modal__lead { margin: 0; color: #9ca3af; font-size: .95rem; }

/* Form */
.frs-tform { margin: 0; }
.frs-tform[hidden] { display: none; }
.frs-tform__grid { display: grid; gap: 1rem; }
@media (min-width: 560px) { .frs-tform__grid { grid-template-columns: 1fr 1fr; } .frs-tfield--full { grid-column: 1 / -1; } }
.frs-tfield { display: flex; flex-direction: column; gap: .4rem; min-width: 0; }
.frs-tfield label { color: #e5e7eb; font-size: .875rem; font-weight: 600; }
.frs-tfield .req { color: #fbbf24; }
.frs-tfield .opt { color: #6b7280; font-weight: 400; }
.frs-tfield__control { position: relative; display: block; }
.frs-tfield__icon { position: absolute; left: .9rem; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); fill: none; stroke: #6b7280; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; transition: stroke .2s; }
.frs-tfield input, .frs-tfield select, .frs-tfield textarea {
	width: 100%; min-height: 50px; margin: 0; padding: .75rem 1rem .75rem 2.7rem;
	border: 1px solid rgba(255, 255, 255, .12); border-radius: 14px;
	background: rgba(255, 255, 255, .04); color: #fff;
	font: inherit; font-size: 1rem; line-height: 1.4;
	transition: border-color .2s, box-shadow .2s, background-color .2s;
	-webkit-appearance: none; appearance: none;
}
.frs-tfield textarea { padding-left: 1rem; min-height: 96px; resize: vertical; }
.frs-tfield select { padding-right: 2.5rem; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .9rem center; background-size: 18px; cursor: pointer; }
.frs-tfield select option { background: #14141c; color: #fff; }
.frs-tfield input::-webkit-calendar-picker-indicator { display: none !important; opacity: 0; }
.frs-tfield input::placeholder, .frs-tfield textarea::placeholder { color: #6b7280; }
.frs-tfield input:hover, .frs-tfield select:hover, .frs-tfield textarea:hover { border-color: rgba(255, 255, 255, .22); }
.frs-tfield input:focus, .frs-tfield select:focus, .frs-tfield textarea:focus { outline: none; border-color: rgba(255, 197, 61, .7); background: rgba(255, 255, 255, .06); box-shadow: 0 0 0 4px rgba(255, 197, 61, .14); }
.frs-tfield__control:focus-within .frs-tfield__icon { stroke: #ffc53d; }
.frs-tfield__error { display: none; margin: 0; color: #fca5a5; font-size: .8rem; }
.frs-tfield.is-invalid input, .frs-tfield.is-invalid select, .frs-tfield.is-invalid textarea { border-color: rgba(248, 113, 113, .8); box-shadow: 0 0 0 3px rgba(248, 113, 113, .12); }
.frs-tfield.is-invalid .frs-tfield__error { display: block; }

.frs-tform__alert { margin: 0 0 1rem; padding: .75rem 1rem; border-radius: 12px; background: rgba(248, 113, 113, .12); border: 1px solid rgba(248, 113, 113, .35); color: #fecaca; font-size: .9rem; }
.frs-tform__alert[hidden] { display: none; }

.frs-tform__submit {
	position: relative; display: flex; align-items: center; justify-content: center; gap: .6rem;
	width: 100%; min-height: 56px; margin-top: 1.5rem; padding: .9rem 1.5rem;
	border: 0; border-radius: 14px; cursor: pointer; overflow: hidden;
	background: linear-gradient(90deg, #22c55e, #059669); color: #fff;
	font: inherit; font-size: 1.05rem; font-weight: 800; letter-spacing: .01em;
	box-shadow: 0 12px 30px -8px rgba(34, 197, 94, .55);
	transition: transform .2s, box-shadow .2s, opacity .2s;
}
.frs-tform__submit::after { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .35), transparent); transform: skewX(-20deg); transition: left .7s; }
.frs-tform__submit:hover { transform: translateY(-1px); box-shadow: 0 16px 36px -8px rgba(34, 197, 94, .7); }
.frs-tform__submit:hover::after { left: 120%; }
.frs-tform__submit:focus-visible { outline: 2px solid #ffc53d; outline-offset: 3px; }
.frs-tform__submit:disabled { opacity: .75; cursor: progress; transform: none; }
.frs-tform__spinner { display: none; width: 18px; height: 18px; border: 2px solid rgba(255, 255, 255, .35); border-top-color: #fff; border-radius: 50%; animation: frsSpin .7s linear infinite; }
.frs-tform.is-busy .frs-tform__spinner { display: inline-block; }
@keyframes frsSpin { to { transform: rotate(360deg); } }
.frs-tform__note { display: flex; align-items: flex-start; justify-content: center; gap: .4rem; margin: .9rem 0 0; color: #9ca3af; font-size: .8rem; text-align: center; }
.frs-tform__note svg { flex: none; width: 14px; height: 14px; margin-top: .15rem; fill: none; stroke: #4ade80; stroke-width: 2; }
.frs-tform__note a { color: #d1d5db; text-decoration: underline; }
.frs-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* Success */
.frs-tsuccess { text-align: center; padding: .5rem 0; outline: none; animation: frsIn .4s ease both; }
.frs-tsuccess[hidden] { display: none; }
@keyframes frsIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.frs-tsuccess__icon { display: inline-grid; place-items: center; width: 72px; height: 72px; margin-bottom: 1rem; border-radius: 50%; background: radial-gradient(circle at 30% 30%, #4ade80, #059669); box-shadow: 0 0 0 8px rgba(34, 197, 94, .12), 0 16px 40px -10px rgba(34, 197, 94, .6); }
.frs-tsuccess__icon svg { width: 34px; height: 34px; fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 30; stroke-dashoffset: 30; animation: frsDraw .5s .2s ease forwards; }
@keyframes frsDraw { to { stroke-dashoffset: 0; } }
.frs-tsuccess__title { margin: 0 0 .6rem; color: #fff; font-size: 1.35rem; font-weight: 800; }
.frs-tsuccess__text { margin: 0 auto 1rem; max-width: 30rem; color: #9ca3af; }
.frs-tsuccess__ref { margin: 0 0 1.25rem; color: #d1d5db; font-size: .9rem; }
.frs-tsuccess__ref strong { color: #ffdf8a; }
.frs-tsuccess__ref[hidden] { display: none; }
.frs-tsuccess__actions { display: grid; gap: .75rem; }
.frs-tsuccess__wa { display: flex; align-items: center; justify-content: center; gap: .6rem; min-height: 54px; border-radius: 14px; background: #16a34a; color: #fff !important; font-weight: 800; text-decoration: none !important; box-shadow: 0 12px 30px -8px rgba(34, 197, 94, .55); transition: background-color .2s, transform .2s; }
.frs-tsuccess__wa:hover { background: #22c55e; transform: translateY(-1px); }
.frs-tsuccess__wa svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.frs-tsuccess__link { color: #d1d5db !important; font-size: .9rem; text-decoration: underline; text-underline-offset: 3px; }

/* Inline version (free trial page) */
.frs-tbox { position: relative; margin: 2rem 0; padding: 1.75rem 1.5rem; border-radius: 24px; background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .02)); border: 1px solid rgba(255, 255, 255, .1); box-shadow: 0 0 0 1px rgba(255, 197, 61, .12); }
@media (min-width: 640px) { .frs-tbox { padding: 2.25rem; } }
.prose .frs-tbox ul, .prose .frs-tbox ol { padding: 0; }

@media (prefers-reduced-motion: reduce) {
	.frs-modal__backdrop, .frs-modal__dialog, .frs-tform__submit, .frs-tform__submit::after { transition: none; }
	.frs-modal__dot, .frs-tsuccess, .frs-tsuccess__icon svg { animation: none; stroke-dashoffset: 0; }
}

/* Phone with country / dialing code picker */
.frs-flag { display: inline-block; flex: none; width: 20px; height: 15px; border-radius: 3px; background-image: url(flags.png); background-size: 320px auto; background-repeat: no-repeat; box-shadow: 0 0 0 1px rgba(255, 255, 255, .12); }
.frs-phone { position: relative; display: flex; align-items: stretch; min-height: 50px; border: 1px solid rgba(255, 255, 255, .12); border-radius: 14px; background: rgba(255, 255, 255, .04); transition: border-color .2s, box-shadow .2s, background-color .2s; }
.frs-phone:hover { border-color: rgba(255, 255, 255, .22); }
.frs-phone:focus-within, .frs-phone.is-open { border-color: rgba(255, 197, 61, .7); background: rgba(255, 255, 255, .06); box-shadow: 0 0 0 4px rgba(255, 197, 61, .14); }
.frs-tfield.is-invalid .frs-phone { border-color: rgba(248, 113, 113, .8); box-shadow: 0 0 0 3px rgba(248, 113, 113, .12); }
.frs-phone__btn { flex: none; display: inline-flex; align-items: center; gap: .45rem; margin: 0; padding: 0 .7rem 0 .85rem; border: 0; border-right: 1px solid rgba(255, 255, 255, .1); border-radius: 13px 0 0 13px; background: transparent; color: #fff; font: inherit; font-size: .95rem; font-weight: 600; cursor: pointer; transition: background-color .2s; }
.frs-phone__btn:hover, .frs-phone.is-open .frs-phone__btn { background: rgba(255, 255, 255, .06); }
.frs-phone__btn:focus-visible { outline: 2px solid #ffc53d; outline-offset: -2px; }
.frs-phone__chev { width: 16px; height: 16px; fill: none; stroke: #9ca3af; stroke-width: 2; stroke-linecap: round; transition: transform .2s; }
.frs-phone.is-open .frs-phone__chev { transform: rotate(180deg); }
.frs-tfield .frs-phone input[type="tel"] { flex: 1; min-width: 0; min-height: 48px; padding: .75rem .9rem; border: 0; border-radius: 0 13px 13px 0; background: transparent; box-shadow: none !important; }
.frs-tfield .frs-phone input[type="tel"]:focus { background: transparent; }
.frs-phone__menu { position: absolute; left: 0; right: 0; top: calc(100% + .4rem); z-index: 30; min-width: 280px; padding: .5rem; background: #15151f; border: 1px solid rgba(255, 255, 255, .14); border-radius: 16px; box-shadow: 0 24px 50px -16px rgba(0, 0, 0, .85); animation: frsMenu .15s ease-out; }
.frs-phone__menu[hidden] { display: none; }
@keyframes frsMenu { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.frs-tfield .frs-phone__menu .frs-phone__search { min-height: 40px; margin-bottom: .4rem; padding: .5rem .8rem; border-radius: 10px; font-size: .9rem; }
.frs-phone__list { max-height: 240px; margin: 0; padding: 0; overflow-y: auto; overscroll-behavior: contain; list-style: none; scrollbar-width: thin; }
.frs-phone__list li { display: flex; align-items: center; gap: .65rem; padding: .5rem .6rem; border-radius: 9px; color: #e5e7eb; font-size: .9rem; cursor: pointer; }
.frs-phone__list li[hidden] { display: none; }
.frs-phone__list li:hover, .frs-phone__list li.is-active { background: rgba(255, 197, 61, .12); }
.frs-phone__list li[aria-selected="true"] { color: #ffc53d; font-weight: 600; }
.frs-phone__list li.is-sep { margin-top: .35rem; padding-top: .75rem; border-top: 1px solid rgba(255, 255, 255, .08); border-radius: 0 0 9px 9px; }
.frs-phone__list.is-filtered li.is-sep { margin-top: 0; padding-top: .5rem; border-top: 0; border-radius: 9px; }
.frs-phone__name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.frs-phone__code { color: #9ca3af; font-variant-numeric: tabular-nums; }

/* Plan selector ("Choisissez votre formule d'essai") */
.frs-plans { margin: 0; padding: 0; border: 0; min-width: 0; }
.frs-plans legend { margin: 0 0 .55rem; padding: 0; color: #e5e7eb; font-size: .875rem; font-weight: 600; }
.frs-plans .req { color: #fbbf24; }
.frs-plans__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
@media (min-width: 860px) { .frs-tbox .frs-plans__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.frs-plan { position: relative; display: block; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.frs-plan input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.frs-plan__card { position: relative; display: flex; flex-direction: column; height: 100%; overflow: hidden; border-radius: 14px; border: 1px solid rgba(255, 255, 255, .1); background: rgba(255, 255, 255, .03); transition: transform .3s cubic-bezier(.2, .8, .2, 1), border-color .3s, box-shadow .3s, background-color .3s; }
.frs-plan__media { position: relative; display: block; aspect-ratio: 16 / 7; overflow: hidden; background: radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--pc) 35%, transparent), transparent 70%), #101018; }
.frs-plan__media img { width: 100%; height: 100%; object-fit: cover; object-position: center 38%; filter: saturate(.75) brightness(.8); transition: transform .5s cubic-bezier(.2, .8, .2, 1), filter .4s; }
.frs-plan__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(11, 11, 16, .85), transparent 65%); }
.frs-plan__body { display: flex; flex-direction: column; gap: .1rem; padding: .55rem .7rem .65rem; }
.frs-plan__name { color: #fff; font-size: .9rem; font-weight: 700; line-height: 1.25; }
.frs-plan__tag { color: #8b93a7; font-size: .74rem; line-height: 1.3; }
.frs-plan__check { position: absolute; top: .45rem; right: .45rem; z-index: 1; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .55); background: rgba(10, 10, 16, .55); transition: background-color .25s, border-color .25s, transform .35s cubic-bezier(.2, .9, .3, 1.5); }
.frs-plan__check svg { width: 13px; height: 13px; fill: none; stroke: #0b0b10; stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; opacity: 0; transform: scale(.4); transition: opacity .2s, transform .3s cubic-bezier(.2, .9, .3, 1.5); }
.frs-plan:hover .frs-plan__card { transform: translateY(-2px); border-color: color-mix(in srgb, var(--pc) 45%, transparent); }
.frs-plan:hover .frs-plan__media img { filter: none; transform: scale(1.06); }
.frs-plan input:focus-visible + .frs-plan__card { outline: 2px solid var(--pc); outline-offset: 2px; }
.frs-plan input:checked + .frs-plan__card { border-color: var(--pc); background: color-mix(in srgb, var(--pc) 9%, #101018); box-shadow: 0 0 0 1px var(--pc), 0 12px 30px -12px color-mix(in srgb, var(--pc) 70%, transparent); transform: translateY(-2px); }
.frs-plan input:checked + .frs-plan__card .frs-plan__media img { filter: none; transform: scale(1.04); }
.frs-plan input:checked + .frs-plan__card .frs-plan__name { color: var(--pc); }
.frs-plan input:checked + .frs-plan__card .frs-plan__check { background: var(--pc); border-color: var(--pc); transform: scale(1.1); }
.frs-plan input:checked + .frs-plan__card .frs-plan__check svg { opacity: 1; transform: none; }
.frs-plan--vip .frs-plan__card { background: linear-gradient(160deg, rgba(245, 196, 81, .06), rgba(168, 85, 247, .05)); }
.frs-plans.is-invalid .frs-plan__card { border-color: rgba(248, 113, 113, .55); }
.frs-plans.is-invalid .frs-tfield__error { display: block; margin-top: .45rem; }
@media (max-width: 380px) { .frs-plan__tag { display: none; } }
@media (prefers-reduced-motion: reduce) { .frs-plan__card, .frs-plan__media img, .frs-plan__check, .frs-plan__check svg { transition: none; } }
