@charset "UTF-8";

/*
	CFDT-SG - nouvelle version : le formulaire de contact (www/contacts.php)
	en-tête : pages/infos.css ; encart de droite : pages/teams.css (.tmap-side, .tmap-top, .tmap-list, .tmap-contact)
	grille - carte du formulaire - destinataire (élu) - sujets - champs - vérification - envoi - message envoyé - encart
*/

.ct-grid { display: grid; grid-template-columns: minmax(0, 1fr) var(--aside); gap: 40px; align-items: start; padding-top: 32px; padding-bottom: 88px; }
@media (max-width: 1080px) { .ct-grid { grid-template-columns: minmax(0, 1fr); } }
.ct-main { min-width: 0; }

/* ---------- carte ---------- */
.ct-card { position: relative; overflow: hidden; padding: 0; border: 1px solid var(--line); border-radius: 24px; background: var(--bg); box-shadow: 0 1px 2px rgba(27, 30, 35, .04), 0 18px 48px rgba(27, 30, 35, .08); isolation: isolate; }
.ct-card::before { content: ""; position: absolute; z-index: 2; inset: 0 0 auto; height: 4px; background: linear-gradient(90deg, var(--orange), var(--sand) 60%, #F3C89B); }	/* filet de couleur en haut */

/* en-tête de la carte */
.ct-head { position: relative; display: flex; align-items: center; gap: 16px; padding: 30px 32px 22px; background: linear-gradient(180deg, var(--orange-soft), rgba(253, 240, 233, 0)); }
.ct-head::after { content: ""; position: absolute; z-index: -1; top: -90px; right: -70px; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, rgba(231, 89, 28, .14), rgba(231, 89, 28, 0) 70%); }
.ct-head-ic { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 16px; background: var(--orange); color: #FFF; box-shadow: 0 10px 22px rgba(231, 89, 28, .3); }
.ct-head-ic .ic { width: 24px; height: 24px; }
.ct-head h2 { font-size: 1.35rem; letter-spacing: -0.02em; }
.ct-head p { margin-top: 2px; color: var(--mute); font-size: .88rem; }

/* destinataire : un élu */
.ct-to { display: flex; align-items: center; gap: 14px; margin: 0 32px 6px; padding: 14px 16px; border: 1px solid #F6D3C2; border-radius: 16px; background: #FFF; box-shadow: 0 6px 18px rgba(231, 89, 28, .08); }
.ct-to-photo { position: relative; display: inline-flex; flex: none; width: 56px; height: 56px; overflow: hidden; border-radius: 50%; background: var(--orange-soft); }
.ct-to-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.ct-to-photo .person-ini { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; color: var(--orange-dark); font-weight: 700; }
.ct-to-txt { display: flex; flex: 1; flex-direction: column; min-width: 0; line-height: 1.35; }
.ct-to-txt small { color: var(--orange-dark); font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.ct-to-txt b { color: var(--ink); font-size: 1.05rem; }
.ct-to-txt span { color: var(--ink-2); font-size: .84rem; }
.ct-to-x { display: inline-flex; flex: none; align-items: center; justify-content: center; align-self: flex-start; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 50%; background: var(--bg-soft); color: var(--ink-2); transition: background .2s, color .2s; }
.ct-to-x:hover { background: color-mix(in srgb, var(--ko) 10%, #FFF); color: var(--ko); }

/* étapes 1, 2, 3 */
.ct-step { padding: 22px 32px 6px; }
.ct-step + .ct-step { margin-top: 4px; }
.ct-step-title { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; color: var(--ink); font-size: .98rem; letter-spacing: -0.01em; }
.ct-step-title span { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: #FFF; font-size: .78rem; font-weight: 700; }

/* sujets */
.ct-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ct-chip { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 15px 0 12px; border: 1px solid var(--line); border-radius: 12px; 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, box-shadow .2s, transform .15s; }
.ct-chip .ic { color: var(--orange); transition: color .2s; }
.ct-chip:hover { border-color: #F2B999; background: #FFF8F4; }
.ct-chip:active { transform: scale(.98); }
.ct-chip[aria-pressed="true"] { border-color: var(--orange); background: var(--orange); color: #FFF; box-shadow: 0 8px 18px rgba(231, 89, 28, .25); }
.ct-chip[aria-pressed="true"] .ic { color: #FFF; }

.ct-me { display: flex; align-items: center; gap: 8px; margin: -4px 0 14px; padding: 8px 12px; border-radius: 10px; background: color-mix(in srgb, var(--ok) 7%, #FFF); color: var(--ink-2); font-size: .84rem; }
.ct-me .ic { flex: none; align-self: flex-start; margin-top: 3px; color: var(--ok); }
.ct-me > span { min-width: 0; line-height: 1.45; overflow-wrap: anywhere; }	/* texte d'un seul tenant (sinon chaque morceau devient une colonne) */
.ct-me b { color: var(--ink); }

/* champs */
.ct-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
@media (max-width: 640px) { .ct-fields { grid-template-columns: minmax(0, 1fr); } }
.ct-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ct-field.is-wide { grid-column: 1 / -1; }
.ct-field label { display: flex; align-items: baseline; gap: 8px; color: var(--ink-2); font-size: .8rem; font-weight: 600; }
.ct-field label small { color: var(--mute); font-size: .74rem; font-weight: 500; }
.ct-field .ct-count { margin-left: auto; }
.ct-input { position: relative; display: flex; align-items: center; }
.ct-input > .ic { position: absolute; left: 14px; color: var(--mute); pointer-events: none; transition: color .2s; }
.ct-field input, .ct-field textarea { width: 100%; padding: 12px 14px; border: 1px solid transparent; border-radius: 12px; background: var(--bg-soft); color: var(--ink); font: inherit; font-size: .95rem; line-height: 1.5; transition: border-color .2s, box-shadow .2s, background .2s; }
.ct-input input { padding-left: 40px; }
.ct-field input::placeholder, .ct-field textarea::placeholder { color: #A3A6AC; }
.ct-field textarea { min-height: 160px; resize: none; overflow: hidden; }
.ct-field input:hover, .ct-field textarea:hover { border-color: var(--line); }
.ct-field input:focus, .ct-field textarea:focus { border-color: var(--orange); outline: none; background: var(--bg); box-shadow: 0 0 0 4px rgba(231, 89, 28, .12); }
.ct-input:focus-within > .ic { color: var(--orange); }
.ct-field input[readonly] { border-color: transparent; background: #EFECE8; color: var(--ink-2); box-shadow: none; }
.ct-field.is-error input, .ct-field.is-error textarea { border-color: var(--ko); background: color-mix(in srgb, var(--ko) 4%, #FFF); }
.ct-field-msg { color: var(--ko); font-size: .78rem; }

/* pied : vérification, envoi */
.ct-foot { margin-top: 22px; padding: 20px 32px 24px; border-top: 1px solid var(--line); background: var(--bg-soft); }
.ct-captcha { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.ct-captcha-label { display: inline-flex; align-items: center; gap: 6px; margin-right: 2px; color: var(--ink-2); font-size: .84rem; font-weight: 600; }
.ct-captcha-label .ic { color: var(--orange); }
.ct-captcha-q { padding: 7px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--ink); font-weight: 700; letter-spacing: .04em; }
.ct-captcha-a { width: 90px; height: 38px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--ink); font: inherit; }
.ct-captcha-a:focus { border-color: var(--orange); outline: none; box-shadow: 0 0 0 4px rgba(231, 89, 28, .12); }
.ct-captcha-ok { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px; border: 1px solid var(--ink); border-radius: 999px; background: var(--ink); color: #FFF; font: inherit; font-size: .82rem; font-weight: 600; }
.ct-captcha-new { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: var(--bg); color: var(--mute); }
.ct-captcha-new:hover { color: var(--ink); }
.ct-captcha-msg { flex-basis: 100%; color: var(--ko); font-size: .8rem; }
.ct-captcha-msg:empty { display: none; }
.ct-captcha.is-ok .ct-captcha-a { border-color: var(--ok); color: var(--ok); font-weight: 700; }
.ct-captcha.is-ok .ct-captcha-ok, .ct-captcha.is-ok .ct-captcha-new { display: none; }
.ct-captcha.is-ok .ct-captcha-msg { color: var(--ok); }
.ct-send { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; margin-top: 18px; }
.ct-btn { min-height: 52px; padding: 0 28px; font-size: 1rem; box-shadow: 0 12px 26px rgba(231, 89, 28, .3); }
.ct-btn .ic { transition: transform .25s var(--ease); }
.ct-btn:not([disabled]):hover .ic { transform: translate(3px, -3px); }
.ct-btn[disabled] { box-shadow: none; opacity: .4; cursor: not-allowed; }
.ct-btn.is-busy { opacity: .7; cursor: progress; }
.ct-safe { display: inline-flex; align-items: center; gap: 6px; color: var(--mute); font-size: .82rem; }
.ct-safe .ic { color: var(--ok); }
.ct-error { margin: 0; padding: 12px 32px; background: color-mix(in srgb, var(--ko) 8%, #FFF); color: var(--ko); font-size: .86rem; }
.ct-law { margin: 0; padding: 0 32px 20px; background: var(--bg-soft); color: var(--mute); font-size: .72rem; line-height: 1.55; }	/* dans le prolongement du pied */
.ct-law a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }

/* message envoyé */
.ct-done { padding: 44px 34px; text-align: center; }
.ct-done:focus { outline: none; }
.ct-done-ic { display: inline-flex; align-items: center; justify-content: center; width: 64px; height: 64px; border-radius: 50%; background: color-mix(in srgb, var(--ok) 12%, #FFF); color: var(--ok); }
.ct-done-ic .ic { width: 30px; height: 30px; }
.ct-done h2 { margin-top: 16px; font-size: 1.5rem; }
.ct-done p { max-width: 520px; margin: 10px auto 0; color: var(--ink-2); }
.ct-done-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 22px !important; }

/* colonne de droite : deux encarts, à la hauteur de leur contenu (sans défilement), qui restent visibles ensemble */
.ct-aside { position: sticky; top: calc(var(--header-h) + 24px); display: flex; flex-direction: column; gap: 18px; }
@media (max-width: 1080px) { .ct-aside { position: static; } }
.ct-side { position: static; max-height: none; overflow: visible; }
.ct-side .tmap-top { position: static; }
.ct-side .tmap-top h2 { font-size: 1.05rem; letter-spacing: -0.015em; }
.ct-ways { margin-top: 4px; }
.ct-steps-title { margin-top: 20px; }
.ct-steps { position: relative; display: flex; flex-direction: column; gap: 14px; margin: 6px 0 0; padding: 0; list-style: none; counter-reset: st; }
.ct-steps li { position: relative; display: flex; flex-direction: column; padding-left: 40px; counter-increment: st; line-height: 1.4; }
.ct-steps li::before { content: counter(st); position: absolute; top: 0; left: 0; display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: var(--orange-soft); color: var(--orange-dark); font-size: .8rem; font-weight: 700; }
.ct-steps b { color: var(--ink); font-size: .88rem; }
.ct-steps span { color: var(--mute); font-size: .8rem; }

/* démarches : l'encart orange de l'accueil (pages/home.css, .shortcuts) ; en haut, en blanc : trouver un élu, questions fréquentes ;
   vignettes orange (abonnement, rendez-vous, contact), celle du contact en orange plus pâle (page en cours) */
.ct-quick { overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: var(--bg); box-shadow: var(--shadow); }
.ct-quick-main { display: flex; align-items: center; gap: 14px; padding: 16px 20px; color: var(--ink); transition: background .2s; }
.ct-quick-main + .ct-quick-main { border-top: 1px solid var(--line); }
.ct-quick-main:hover { background: var(--bg-soft); }
.ct-quick-main > span:not(.ct-quick-ic) { flex: 1; min-width: 0; }
.ct-quick-main b { display: block; font-size: .96rem; font-weight: 650; }
.ct-quick-main small { display: block; color: var(--mute); font-size: .78rem; line-height: 1.4; }
.ct-quick-main > .ic { color: var(--mute); transition: transform .25s var(--ease), color .2s; }
.ct-quick-main:hover > .ic { color: var(--orange); transform: translateX(3px); }
.ct-quick-ic { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px; background: var(--orange-soft); color: var(--orange); }
.ct-quick-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); margin: 0; padding: 0; background: var(--orange); color: #FFF; list-style: none; }
.ct-quick-tiles li + li { border-left: 1px solid rgba(255, 255, 255, .2); }
.ct-quick-tiles a { display: flex; flex-direction: column; align-items: center; gap: 8px; height: 100%; padding: 16px 8px; font-size: .78rem; font-weight: 600; text-align: center; transition: background .2s; }
.ct-quick-tiles a:hover { background: rgba(0, 0, 0, .08); }
.ct-quick-tiles .ic { width: 22px; height: 22px; }
.ct-quick-tiles li.is-current a { background: color-mix(in srgb, var(--orange) 72%, #FFF); }	/* page en cours : orange plus pâle */
