/* Inscription and confirmation pages. */
.insc-hero { position: relative; display: flex; align-items: flex-end; min-height: 360px; background: var(--navy); }
.insc-hero__img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: center 30%; }
.insc-hero__panel { --cut: clamp(32px, 6vw, 90px); position: relative; width: min(820px, 90%); padding: 28px calc(var(--cut) + 20px) 30px var(--gutter); background: var(--navy); color: #fff; clip-path: polygon(0 0, 100% 0, calc(100% - var(--cut)) 100%, 0 100%); }
.insc-hero__title { margin: 0 0 8px; font-size: clamp(30px, 4vw, 54px); font-weight: 600; line-height: 1.08; letter-spacing: -.02em; }
.insc-hero__sub { margin: 0; color: var(--yellow); font-size: clamp(16px, 1.6vw, 20px); font-weight: 500; line-height: 1.4; }

.insc-body { padding: 36px var(--gutter) 56px; }
.insc-intro { margin: 14px 0 0; color: #fff; font-size: 15px; font-weight: 400; line-height: 1.55; }
.insc-alert { margin: 0 0 24px; padding: 12px 16px; border-left: 5px solid #b3261e; background: #fdf0ef; font-size: 15px; font-weight: 500; }

.insc-grid { display: grid; gap: 20px 24px; }
.insc-field label { display: block; margin-bottom: 6px; color: var(--navy); font-size: 15px; font-weight: 600; }
.insc-field input, .insc-field select { width: 100%; min-height: 48px; padding: 0 14px; border: 1px solid #8a97a8; border-radius: 4px; background: #fff; color: #000; font: inherit; font-size: 16px; }
.insc-field input:focus-visible, .insc-field select:focus-visible, .insc-consent input:focus-visible { outline: 3px solid var(--navy); outline-offset: 1px; }
.has-error input, .has-error select { border: 2px solid #b3261e; }
.insc-error { margin: 6px 0 0; color: #b3261e; font-size: 14px; font-weight: 500; line-height: 1.4; }
.insc-trap { position: absolute; left: -9999px; }

.insc-consent { margin: 24px 0; font-size: 14px; line-height: 1.55; }
.insc-consent label { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; }
.insc-consent input { flex: none; width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--navy); }
.insc-consent a { color: var(--navy); text-decoration-color: var(--yellow); text-decoration-thickness: 2px; text-underline-offset: 3px; }

.insc-submit, .insc-submit:visited { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 44px 0 30px; border: 0; background: var(--yellow); color: var(--navy); font: inherit; font-size: 16px; font-weight: 600; text-decoration: none; cursor: pointer; clip-path: polygon(0 0, 100% 0, calc(100% - 12px) 100%, 0 100%); transition: background-color .15s, color .15s; }
.insc-submit:hover { background: var(--navy); color: #fff; }
.insc-submit:focus-visible { outline: 3px solid var(--navy); outline-offset: -5px; }
.insc-submit:disabled { opacity: .6; cursor: progress; }

.insc-done { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 28px; min-height: 55vh; padding: 64px var(--gutter); }
.insc-done h1 { margin: 0; color: var(--navy); font-size: clamp(32px, 4.2vw, 58px); font-weight: 600; line-height: 1.08; letter-spacing: -.02em; }

/* Desktop: photo and headings on the left, cut on the logo's slant; the form beside them, visible at once. */
@media (min-width: 1000px) {
	.insc-split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
	.insc-hero { --slant: clamp(50px, 6vw, 90px); min-height: 680px; clip-path: polygon(0 0, 100% 0, calc(100% - var(--slant)) 100%, 0 100%); }
	.insc-hero { flex-direction: column; align-items: stretch; }
	.insc-hero__img { position: static; flex: 1 1 0; min-height: 0; height: auto; object-position: 80% 25%; }
	.insc-hero__panel { width: 100%; padding: 28px calc(var(--slant) + 28px) 36px var(--gutter); clip-path: none; }
	.insc-hero__title { font-size: clamp(32px, 3vw, 44px); }
	.insc-body { align-self: center; width: 100%; max-width: 760px; margin-inline: auto; padding: 40px 72px 40px 32px; }
}
@media (min-width: 700px) {
	.insc-grid { grid-template-columns: 1fr 1fr; }
	.insc-grid__wide { grid-column: 1 / -1; }
}
@media (max-width: 699px) {
	.insc-hero { min-height: 300px; }
	.insc-hero__panel { --cut: 26px; width: 100%; padding-right: 44px; }
	.insc-submit { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .insc-submit { transition: none; } }

/* Formulaire CRM: navy panel cut on the slant beside a compact form. */
.fcrm__double { margin-top: 14px; }
.fcrm__double[hidden] { display: none; }
.fcrm__double select { background: var(--wash); }
.fcrm .insc-consent { font-size: 15px; font-weight: 500; }
.fcrm .insc-consent label { align-items: center; }
.fcrm__done { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; padding-block: 28px; color: var(--navy); }
.fcrm__done p { margin: 0; font-size: clamp(24px, 3vw, 38px); font-weight: 600; line-height: 1.12; letter-spacing: -.01em; }

/* Document forms: /recupaiement/, /dossierdinscription/ */
.docf .insc-hero__title { margin: 0; font-size: clamp(24px, 2.4vw, 34px); line-height: 1.15; }
.docf__intro { margin: 0 0 22px; font-size: 16px; }
.docf__req { color: #b3261e; }
.docf__note { margin: 6px 0 0; font-size: 13px; line-height: 1.45; }
.docf__ok { margin: 0 0 24px; padding: 12px 16px; border-left: 5px solid #1b7a43; background: #eef8f1; font-size: 15px; font-weight: 500; }
.docf__drop { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 22px 16px; border: 2px dashed #8a97a8; border-radius: 4px; color: var(--navy); text-align: center; transition: border-color .15s, background-color .15s; }
.docf__drop:hover, .docf__drop:focus-within { border-color: var(--navy); background: var(--wash); }
.docf__drop p { margin: 0; }
.insc-field .docf__drop input { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; padding: 0; border: 0; opacity: 0; cursor: pointer; }
.docf__drop:focus-within { outline: 3px solid var(--navy); outline-offset: 1px; }
.docf__drop .is-bad { color: #b3261e; font-weight: 600; }
.docf__drop .is-good { color: #1b7a43; font-weight: 600; }
.docf .fcrm__done h3 { margin: 0; font-size: clamp(24px, 3vw, 38px); font-weight: 600; line-height: 1.12; letter-spacing: -.01em; }
.docf .fcrm__done span { color: #000; font-size: 16px; }
@media (prefers-reduced-motion: reduce) { .docf__drop { transition: none; } }
.docf .insc-submit { margin-top: 22px; }
#camp-autres[hidden] { display: none; }
.docf .fcrm__done p { font-size: clamp(24px, 3vw, 38px); }
