@charset "UTF-8";

/*
	CFDT-SG - nouvelle version : formulaires publics (abonnement, rendez-vous, pré-adhésion ; site et mobile)
	Avec pages/contact.css (carte, étapes, champs, vérification, pied, « Envoyé », colonne de droite, démarches) ; ici, ce qui leur est propre :
	listes déroulantes - pastilles à choix unique - abonnement (fil d'étapes, code à 6 chiffres, déjà abonné) - rendez-vous (dates) - simulateur
*/

.nl-hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }

/* ---------- listes déroulantes (dans .ct-input) ---------- */
.ct-input { width: 100%; }
.ct-input select { width: 100%; height: 48px; padding: 0 40px 0 40px; border: 1px solid transparent; border-radius: 12px; background: var(--bg-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236E7178' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 14px center / 16px no-repeat; color: var(--ink); font: inherit; font-size: .95rem; -webkit-appearance: none; appearance: none; cursor: pointer; transition: border-color .2s, box-shadow .2s, background-color .2s; }
.ct-input select:hover { border-color: var(--line); }
.ct-input select:focus { border-color: var(--orange); outline: none; background-color: var(--bg); box-shadow: 0 0 0 4px rgba(231, 89, 28, .12); }
/* liste moderne du site (static/front/js/front.js : .select, .select-btn, .select-list) dans un champ */
.ct-input .select { display: flex; width: 100%; }
.ct-input > .ic { z-index: 2; }	/* l’icône du champ reste visible au-dessus du bouton de la liste */
.ct-input .select-btn { min-height: 48px; padding-left: 40px; border-color: transparent; border-radius: 12px; background: var(--bg-soft); font-size: .95rem; }
.ct-input .select-btn:hover { border-color: var(--line); }
.ct-input .select.is-open .select-btn, .ct-input .select-btn:focus-visible { border-color: var(--orange); outline: none; background: var(--bg); box-shadow: 0 0 0 4px rgba(231, 89, 28, .12); }
.ct-input .select-list { width: 100%; }

/* ---------- pastilles à choix unique ---------- */
.ct-choices { display: flex; flex-wrap: wrap; gap: 8px; }
.ct-choices.is-segment { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.ct-field.is-error .ct-chip { border-color: color-mix(in srgb, var(--ko) 45%, #FFF); }

/* ---------- abonnement ---------- */
.nl-steps { display: flex; gap: 6px; margin: 0; padding: 4px 32px 0; list-style: none; counter-reset: none; }
.nl-steps li { position: relative; display: flex; flex: 1; align-items: center; gap: 8px; padding: 10px 0 12px; border-bottom: 3px solid var(--line); color: var(--mute); font-size: .82rem; font-weight: 600; transition: border-color .3s, color .3s; }
.nl-steps li i { font-style: normal; }
.nl-steps li i + i { display: none; }
.nl-steps li span { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; background: var(--bg-soft); color: var(--mute); font-size: .72rem; font-weight: 700; transition: background .3s, color .3s; }
.nl-steps li.is-on { border-color: var(--orange); color: var(--ink); }
.nl-steps li.is-on span { background: var(--orange); color: #FFF; }
.nl-steps li.is-past { border-color: color-mix(in srgb, var(--orange) 45%, #FFF); color: var(--ink-2); }
.nl-steps li.is-past span { background: var(--orange-soft); color: var(--orange-dark); }

.nl-code { padding: 30px 32px 26px; text-align: center; }
.nl-code-ic { display: inline-flex; align-items: center; justify-content: center; width: 60px; height: 60px; border-radius: 50%; background: var(--orange-soft); color: var(--orange); }
.nl-code-ic .ic { width: 28px; height: 28px; }
.nl-code h3 { margin-top: 14px; font-size: 1.3rem; letter-spacing: -0.02em; }
.nl-code > p { margin-top: 6px; color: var(--ink-2); }
.nl-code > p b { color: var(--ink); overflow-wrap: anywhere; }
.nl-boxes { display: flex; justify-content: center; gap: 10px; margin: 22px 0 8px; }
.nl-boxes input { width: 52px; height: 62px; padding: 0; border: 2px solid var(--line); border-radius: 14px; background: var(--bg); color: var(--ink); font: inherit; font-size: 1.6rem; font-weight: 700; text-align: center; caret-color: var(--orange); transition: border-color .2s, box-shadow .2s, transform .2s; }
.nl-boxes input:focus { border-color: var(--orange); outline: none; box-shadow: 0 0 0 4px rgba(231, 89, 28, .14); }
.nl-boxes input:not(:placeholder-shown), .nl-boxes input:valid:not([value=""]) { border-color: #D8CCC3; }
.nl-code.is-busy .nl-boxes { opacity: .6; pointer-events: none; }
.nl-code.is-error .nl-boxes input { border-color: var(--ko); animation: nl-shake .35s; }
@keyframes nl-shake { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
@media (prefers-reduced-motion: reduce) { .nl-code.is-error .nl-boxes input { animation: none; } }
.nl-code-msg { min-height: 1.4em; color: var(--ko); font-size: .86rem; font-weight: 600; }
.nl-code-msg.is-ok { color: var(--ok); }
.nl-code .nl-code-help { color: var(--mute); font-size: .82rem; }
.nl-code-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; margin-top: 18px !important; }
.nl-link { display: inline-flex; align-items: center; gap: 6px; padding: 0; border: 0; background: none; color: var(--orange-dark); font: inherit; font-size: .86rem; font-weight: 600; cursor: pointer; }
.nl-link[disabled] { color: var(--mute); cursor: default; }
.nl-link span { font-weight: 500; }

.nl-already { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 16px; margin: 6px 32px 24px; padding: 18px; border-radius: 16px; background: color-mix(in srgb, var(--ok) 6%, #FFF); }
.nl-already-ic { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: color-mix(in srgb, var(--ok) 14%, #FFF); color: var(--ok); }
.nl-already > div { flex: 1; min-width: 220px; }
.nl-already b { color: var(--ink); }
.nl-already p { color: var(--ink-2); font-size: .88rem; }
.nl-already .ct-error { flex-basis: 100%; margin: 0; border-radius: 10px; }
.nl-card .ct-law { padding-top: 14px; background: var(--bg); border-top: 1px solid var(--line); }

/* ---------- rendez-vous ---------- */
.ct-step-title small { color: var(--mute); font-size: .78rem; font-weight: 500; }
.mt-note { margin: -6px 0 14px; color: var(--mute); font-size: .84rem; }
.mt-fixed { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 12px; background: var(--orange-soft); color: var(--orange-dark); font-size: .88rem; font-weight: 600; }
.mt-slots + .mt-slots { margin-top: 8px; }
.mt-slot-sum { margin-left: auto; color: var(--orange-dark) !important; font-size: .82rem !important; font-weight: 600 !important; }
/* jours : petites flèches de part et d'autre quand la ligne dépasse (forms.js) */
.mt-days-box { position: relative; }
.mt-days-go { position: absolute; top: calc(50% - 4px); z-index: 2; display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: var(--bg); box-shadow: 0 4px 12px rgba(27, 30, 35, .14); color: var(--ink); cursor: pointer; transform: translateY(-50%); }
.mt-days-go[hidden] { display: none; }
.mt-days-go.is-prev { left: -6px; }
.mt-days-go.is-next { right: -6px; }
.mt-days-go:hover { border-color: var(--orange); color: var(--orange-dark); }
.mt-days { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 8px; scroll-snap-type: x proximity; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.mt-day { display: flex; flex: none; flex-direction: column; align-items: center; width: 64px; padding: 8px 0; border: 1px solid var(--line); border-radius: 14px; background: var(--bg); color: var(--ink-2); font: inherit; line-height: 1.2; cursor: pointer; scroll-snap-align: start; transition: border-color .2s, background .2s, color .2s, box-shadow .2s; }
.mt-day small { color: var(--mute); font-size: .7rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.mt-day b { margin: 2px 0; color: var(--ink); font-size: 1.2rem; }
.mt-day:hover { border-color: #F2B999; background: #FFF8F4; }
.mt-day[aria-pressed="true"] { border-color: var(--orange); background: var(--orange); box-shadow: 0 8px 18px rgba(231, 89, 28, .25); }
.mt-day[aria-pressed="true"] small, .mt-day[aria-pressed="true"] b { color: #FFF; }
.mt-hours { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 6px; padding: 12px; border-radius: 14px; background: var(--bg-soft); }
.mt-hours-label { flex-basis: 100%; color: var(--mute); font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.mt-hours-label + .mt-hour { margin-left: 0; }
.mt-hours .mt-hour:nth-of-type(6) { }
.mt-hour { height: 36px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg); color: var(--ink-2); font: inherit; font-size: .86rem; font-weight: 600; cursor: pointer; transition: border-color .2s, background .2s, color .2s; }
.mt-hour:hover { border-color: #F2B999; }
.mt-hour[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: #FFF; }
.ct-field.is-error .mt-days .mt-day { border-color: color-mix(in srgb, var(--ko) 45%, #FFF); }

/* ---------- pré-adhésion : simulateur ---------- */
.jn-sim { z-index: 2; margin-bottom: 22px; overflow: visible; }	/* au-dessus de la carte suivante : la petite fenêtre « En savoir plus » déborde dessus */
.jn-sim::before { left: 22px; right: 22px; border-radius: 0 0 4px 4px; }	/* filet : la carte déborde (petite fenêtre), il reste dans les coins arrondis */
.jn-sim-in { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 24px; align-items: stretch; padding: 26px 30px; }
.jn-kicker { display: inline-flex; align-items: center; gap: 6px; color: var(--orange-dark); font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.jn-sim h2 { margin: 6px 0 16px; font-size: 1.3rem; letter-spacing: -0.02em; }
.jn-sim label { display: block; margin-bottom: 6px; color: var(--ink-2); font-size: .82rem; font-weight: 600; }
.jn-salary { display: flex; align-items: center; overflow: hidden; border: 1px solid transparent; border-radius: 14px; background: var(--bg-soft); transition: border-color .2s, box-shadow .2s, background .2s; }
.jn-salary:focus-within { border-color: var(--orange); background: var(--bg); box-shadow: 0 0 0 4px rgba(231, 89, 28, .12); }
.jn-salary input { flex: 1; min-width: 0; height: 54px; padding: 0 16px; border: 0; background: none; color: var(--ink); font: inherit; font-size: 1.35rem; font-weight: 700; outline: none; }
.jn-salary b { padding: 0 16px; color: var(--mute); font-size: .86rem; font-weight: 600; }
.jn-sim-out { display: flex; flex-direction: column; justify-content: center; padding: 20px 22px; border-radius: 18px; background: linear-gradient(135deg, var(--orange), #F08A4B); color: #FFF; box-shadow: 0 14px 30px rgba(231, 89, 28, .28); transition: opacity .25s; }
.jn-sim:not(.is-on) .jn-sim-out { opacity: .55; box-shadow: none; }
.jn-sim-out small { font-size: .78rem; font-weight: 600; opacity: .9; }
.jn-sim-out > b { margin-top: 4px; font-size: 2.3rem; line-height: 1.05; letter-spacing: -0.03em; }
.jn-sim-out > span { font-size: .84rem; opacity: .9; }
.jn-sim-out p { margin-top: 12px; padding-top: 10px; border-top: 1px solid rgba(255, 255, 255, .25); font-size: .78rem; line-height: 1.5; opacity: .92; }
.jn-sim-out p b { font-weight: 700; }
@media (max-width: 760px) { .jn-sim-in { grid-template-columns: minmax(0, 1fr); } }

/* « En savoir plus » : lien, texte dans une petite fenêtre (comme les équipes) */
.jn-about { position: relative; display: inline-block; margin-top: 12px; }
.jn-about[open] { z-index: 40; }
.jn-about summary { display: inline-flex; align-items: center; gap: 6px; color: var(--orange-dark); font-size: .84rem; font-weight: 600; list-style: none; cursor: pointer; }
.jn-about summary::-webkit-details-marker { display: none; }
.jn-about .team-prose { position: absolute; top: calc(100% + 10px); left: -12px; width: min(440px, calc(100vw - 48px)); padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg); box-shadow: 0 16px 40px rgba(27, 30, 35, .16); color: var(--ink-2); font-size: .86rem; line-height: 1.6; }

/* ---------- mobile ---------- */
.mc-main .nl-steps { padding: 2px 18px 0; }
.mc-main .nl-steps li { gap: 6px; font-size: .78rem; white-space: nowrap; }
.mc-main .nl-steps li i { display: none; }
.mc-main .nl-steps li i + i { display: inline; }
.mc-main .nl-code { padding: 24px 16px 20px; }
.mc-main .nl-boxes { gap: 7px; }
.mc-main .nl-boxes input { width: 44px; height: 54px; font-size: 1.4rem; }
.mc-main .nl-already { margin: 4px 18px 20px; }
.mc-main .ct-input select { font-size: 16px; }
.mc-main .ct-input .select-btn { font-size: 16px; }
.mc-main .ct-input .select-list { max-height: min(320px, 50vh); }
.mc-main .mt-day { width: 58px; }
.mc-main .ct-choices.is-segment { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mc-main .mt-slot-sum { flex-basis: 100%; margin-left: 0; }
.mc-main .ct-field label { flex-wrap: wrap; }
.mc-main .jn-sim-in { padding: 20px 18px; gap: 16px; }
.mc-main .jn-salary input { font-size: 1.25rem; }
.mc-main .jn-sim-out > b { font-size: 2rem; }
.mc-main .jn-about .team-prose { left: 0; width: calc(100vw - 72px); }

/* pré-adhésion : « Entreprise » de la même hauteur que les champs voisins */
.jn-card .ct-field > .mt-fixed { display: flex; box-sizing: border-box; width: 100%; min-height: 48px; margin: 0; }
