:root {
    --bg: #f4f6f8;
    --card: #ffffff;
    --text: #1d2939;
    --muted: #667085;
    --border: #d0d5dd;
    --accent: #0b5cab;
    --accent-dark: #084a8a;
    --danger: #c1121f;
    --success: #146c43;
    --soft: #eef4ff;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
}

.container {
    width: min(1120px, calc(100% - 32px));
    margin: 32px auto;
}

.page-header,
.form-block,
.form-actions {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: 0 10px 25px rgba(16, 24, 40, 0.05);
}

.page-header {
    border-top: 6px solid var(--accent);
}

.eyebrow {
    margin: 0 0 6px;
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.85rem;
}

h1,
h2,
h3 {
    margin-top: 0;
}

h1 {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
}

h2 {
    color: var(--accent);
    border-bottom: 1px solid var(--border);
    padding-bottom: 10px;
    margin-bottom: 18px;
}

h3 {
    margin-top: 22px;
    font-size: 1.1rem;
}

.required,
.minor-required {
    color: var(--danger);
    font-weight: 700;
}

label,
legend {
    font-weight: 700;
}

label {
    display: block;
    margin-bottom: 12px;
}

input,
select,
textarea {
    width: 100%;
    margin-top: 6px;
    padding: 11px 12px;
    border: 1px solid var(--border);
    border-radius: 10px;
    font: inherit;
    background: #fff;
}

input:focus {
    border-color: var(--accent);
    outline: 3px solid rgba(11, 92, 171, 0.18);
}

input[type="checkbox"],
input[type="radio"] {
    width: auto;
    margin: 0 8px 0 0;
    transform: translateY(1px);
}

fieldset {
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 16px;
    margin: 0 0 18px;
}

legend {
    padding: 0 8px;
}

.choices {
    display: grid;
    gap: 8px;
}

.choices.inline {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 24px;
}

.choices label,
.checkbox-line,
.don-line {
    font-weight: 400;
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.grid-2,
.grid-3,
.grid-4 {
    display: grid;
    gap: 16px;
}

.grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.address-grid {
    grid-template-columns: 2fr 1fr 1fr;
}

.notice,
.help {
    background: var(--soft);
    border-left: 4px solid var(--accent);
    padding: 12px 14px;
    border-radius: 8px;
    color: #1e3a5f;
}

.help p {
    margin: 4px 0;
}

.hidden {
    display: none !important;
}

.conditional-block {
    border-left: 6px solid var(--accent);
}

.separated {
    margin-top: 34px;
    border-top: 8px solid var(--accent);
}

hr {
    border: 0;
    border-top: 2px dashed var(--border);
    margin: 26px 0;
}

.table-wrapper {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 18px;
}

th,
td {
    border: 1px solid var(--border);
    padding: 12px;
    text-align: left;
}

th {
    background: #f2f4f7;
}

.kit-block {
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 18px;
    margin: 18px 0;
    background: #fcfcfd;
}

.small-input {
    width: 120px;
    display: inline-block;
    margin: 0 8px;
}

.error-message {
    color: var(--danger);
    font-weight: 700;
}

.success {
    border-top: 6px solid var(--success);
}

button {
    border: none;
    background: var(--accent);
    color: #fff;
    padding: 14px 24px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
}

button:hover {
    background: var(--accent-dark);
}

a {
    color: var(--accent);
    font-weight: 700;
}

code {
    background: #f2f4f7;
    border: 1px solid var(--border);
    padding: 2px 6px;
    border-radius: 6px;
}

@media (max-width: 850px) {
    .grid-2,
    .grid-3,
    .grid-4,
    .address-grid {
        grid-template-columns: 1fr;
    }

    .choices.inline {
        flex-direction: column;
        gap: 8px;
    }

    .container {
        width: min(100% - 20px, 1120px);
        margin: 16px auto;
    }

    .page-header,
    .form-block,
    .form-actions {
        padding: 18px;
    }
}


.choice-disabled,
.disabled-line {
    opacity: 0.45;
}

.choice-disabled {
    cursor: not-allowed;
}

.choice-disabled input,
.disabled-line input {
    cursor: not-allowed;
}

.disabled-line legend::after {
    content: " — non disponible pour l’année de naissance indiquée";
    color: var(--danger);
    font-weight: 400;
    font-size: 0.9rem;
}


.total-block {
    border-top: 8px solid var(--success);
}

.total-details {
    display: grid;
    gap: 8px;
}

.total-row {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #fcfcfd;
}

.total-final {
    background: #ecfdf3;
    border-color: var(--success);
    font-size: 1.15rem;
}


.prefill-highlight {
    border: 2px solid var(--accent);
    background: #eef4ff;
    border-radius: 12px;
    padding: 12px;
}

.prefill-note {
    display: block;
    margin-top: 6px;
    color: var(--accent);
    font-weight: 700;
    font-size: 0.92rem;
}


/* Bannière TOS - formulaire public */
.tos-hero {
    background: linear-gradient(135deg, #ffffff 0%, #f7fbff 58%, #eef4ff 100%);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 16px 18px;
    margin-bottom: 20px;
    box-shadow: 0 10px 25px rgba(16, 24, 40, 0.06);
    overflow: hidden;
    position: relative;
}

.tos-hero::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 6px;
    background: linear-gradient(90deg, #0b1b4f 0%, #0b5cab 52%, #f5b301 100%);
}

.tos-hero-main {
    display: flex;
    align-items: center;
    gap: 18px;
    min-height: 92px;
}

.tos-hero-logo-wrap {
    flex: 0 0 auto;
    width: 86px;
    height: 86px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    background: #ffffff;
    border: 1px solid rgba(11, 92, 171, 0.14);
    box-shadow: 0 8px 20px rgba(16, 24, 40, 0.08);
}

.tos-hero-logo {
    max-width: 74px;
    max-height: 74px;
    object-fit: contain;
    display: block;
}

.tos-hero-title {
    min-width: 0;
}

.tos-hero-title h1 {
    margin: 0 0 6px;
    font-size: clamp(1.65rem, 3vw, 2.35rem);
    line-height: 1.1;
}

.tos-hero-title p:last-child {
    margin: 0;
    color: var(--muted);
}

.tos-prefill-callout {
    margin-top: 12px;
    padding: 12px 14px;
    border-radius: 14px;
    background: #0b1b4f;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.tos-prefill-callout strong,
.tos-prefill-callout span {
    display: block;
}

.tos-prefill-callout span {
    opacity: 0.92;
    font-size: 0.95rem;
}

.tos-prefill-button {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    border-radius: 999px;
    background: #f5b301;
    color: #0b1b4f;
    text-decoration: none;
    font-weight: 800;
    box-shadow: 0 6px 16px rgba(245, 179, 1, 0.25);
}

.tos-prefill-button:hover {
    background: #ffd34d;
    color: #0b1b4f;
}

.tos-prefill-callout-inline {
    margin: 14px 0 4px;
    border: 2px solid rgba(245, 179, 1, 0.55);
}

.tos-prefill-callout.prefill-renewal-selected {
    background: #063f88;
    border: 3px solid #f5b301;
    box-shadow: 0 0 0 4px rgba(245, 179, 1, 0.18), 0 14px 28px rgba(11, 27, 79, 0.20);
}

.tos-prefill-callout.prefill-renewal-selected .tos-prefill-button {
    background: #ffd34d;
    transform: scale(1.04);
}

@media (max-width: 650px) {
    .tos-hero {
        padding: 14px;
    }

    .tos-hero-main {
        min-height: auto;
        gap: 14px;
    }

    .tos-hero-logo-wrap {
        width: 68px;
        height: 68px;
        border-radius: 14px;
    }

    .tos-hero-logo {
        max-width: 58px;
        max-height: 58px;
    }

    .tos-prefill-callout {
        align-items: stretch;
        flex-direction: column;
    }

    .tos-prefill-button {
        width: 100%;
    }
}


.prefill-inline-block {
    margin-top: -8px;
    border-top: 6px solid var(--accent);
}

.prefill-inline-form {
    margin-top: 14px;
}

.tos-prefill-callout button.tos-prefill-button {
    border: 0;
    cursor: pointer;
    font: inherit;
    font-weight: 800;
}


/* Créneaux jeunes — phase 1 */
.creneaux-jeunes-block {
    border-left: 5px solid #0b5ed7;
}

.creneaux-availability-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.75rem;
    margin: 1rem 0;
}

.creneau-mini-card {
    border: 1px solid #d9e2f1;
    border-radius: 12px;
    padding: 0.85rem;
    background: #fff;
}

.creneau-mini-card strong {
    display: block;
    margin-bottom: 0.35rem;
}

.creneau-mini-card span {
    display: block;
    font-weight: 700;
}

.creneau-mini-card small {
    display: block;
    margin-top: 0.25rem;
    opacity: 0.75;
}

.creneau-ok {
    border-color: #b8e0c2;
    background: #f4fff6;
}

.creneau-low {
    border-color: #f3cf7a;
    background: #fff9e9;
}

.creneau-full {
    border-color: #e5a0a0;
    background: #fff1f1;
}


/* Bloc 3 compact — choix de licence */
.licence-line {
    padding: 14px 16px;
}

.licence-line legend {
    font-size: 1rem;
}

.licence-line .choices {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 10px 14px;
    align-items: stretch;
}

.licence-line .choices label,
.licence-line > label {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    margin: 0;
    padding: 9px 11px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #ffffff;
    font-weight: 500;
    line-height: 1.25;
}

.licence-line .choices label:hover,
.licence-line > label:hover {
    border-color: var(--accent);
    background: #f7fbff;
}

.licence-line input[type="checkbox"] {
    flex: 0 0 auto;
    margin: 0;
}

.licence-line .help {
    margin-top: 12px;
}

.licence-line + .licence-line {
    margin-top: 10px;
}

@media (min-width: 851px) {
    .licence-line[data-line="decouverte"] .choices,
    .licence-line[data-line="competition_jeunes"] .choices {
        display: flex;
        flex-wrap: wrap;
    }

    .licence-line[data-line="decouverte"] .choices label,
    .licence-line[data-line="competition_jeunes"] .choices label {
        min-width: 180px;
    }
}

@media (max-width: 850px) {
    .licence-line .choices {
        grid-template-columns: 1fr;
    }

    .licence-line .choices label,
    .licence-line > label {
        min-height: 46px;
    }
}


/* Page orientation inscriptions */
.orientation-page {
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(245, 179, 1, 0.12), transparent 34%),
        linear-gradient(180deg, #f4f7fb 0%, #ffffff 60%);
    color: var(--text);
}

.orientation-hero {
    position: relative;
    min-height: 560px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background-image: var(--hero-image);
    background-size: cover;
    background-position: center;
}

.orientation-slider,
.orientation-slide,
.orientation-hero-overlay {
    position: absolute;
    inset: 0;
}

.orientation-slide {
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(1.03);
    transition: opacity 1.2s ease, transform 6s ease;
}

.orientation-slide.active {
    opacity: 1;
    transform: scale(1);
}

.orientation-hero-overlay {
    background:
        linear-gradient(90deg, rgba(4, 18, 55, 0.88) 0%, rgba(4, 18, 55, 0.72) 42%, rgba(4, 18, 55, 0.25) 100%),
        linear-gradient(0deg, rgba(4, 18, 55, 0.20), rgba(4, 18, 55, 0.20));
}

.orientation-hero-content {
    position: relative;
    z-index: 2;
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
    color: #ffffff;
    padding: 56px 0;
}

.orientation-brand {
    display: flex;
    align-items: center;
    gap: 18px;
    max-width: 860px;
}

.orientation-brand img {
    width: 96px;
    height: 96px;
    object-fit: contain;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.94);
    padding: 10px;
    box-shadow: 0 16px 35px rgba(0, 0, 0, 0.20);
}

.orientation-brand .eyebrow {
    color: #f5b301;
}

.orientation-brand h1 {
    margin: 0;
    font-size: clamp(2rem, 5vw, 4.1rem);
    line-height: 1.02;
    color: #ffffff;
}

.orientation-subtitle {
    max-width: 780px;
    margin: 26px 0 0;
    font-size: clamp(1.2rem, 2.5vw, 1.65rem);
    font-weight: 800;
}

.orientation-intro {
    max-width: 760px;
    margin: 14px 0 26px;
    font-size: 1.08rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.92);
}

.orientation-main-button,
.orientation-card-button,
.orientation-secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 800;
}

.orientation-main-button {
    background: #f5b301;
    color: #081b4f;
    padding: 15px 24px;
    box-shadow: 0 12px 28px rgba(245, 179, 1, 0.28);
}

.orientation-section,
.orientation-methods,
.orientation-creneaux {
    width: min(1120px, calc(100% - 32px));
    margin-left: auto;
    margin-right: auto;
}

.orientation-intro-card {
    margin-top: -54px;
    position: relative;
    z-index: 3;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 22px;
    padding: 24px 28px;
    box-shadow: 0 18px 42px rgba(16, 24, 40, 0.12);
}

.orientation-intro-card h2,
.orientation-help h2,
.orientation-creneaux h2 {
    margin-bottom: 10px;
}

.orientation-methods {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin-top: 26px;
}

.orientation-method-card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 22px;
    padding: 24px;
    box-shadow: 0 12px 28px rgba(16, 24, 40, 0.08);
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.orientation-method-card.featured {
    border-top: 7px solid var(--accent);
}

.orientation-method-card.warning-card {
    border-top: 7px solid #f5b301;
}

.orientation-icon {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: #eef4ff;
    font-size: 1.8rem;
    margin-bottom: 12px;
}

.orientation-method-number {
    margin: 0 0 8px;
    color: var(--accent);
    font-size: 0.82rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.orientation-method-card h2 {
    margin: 0 0 12px;
    font-size: 1.35rem;
    color: #0b1b4f;
    border: 0;
    padding: 0;
}

.orientation-method-card p,
.orientation-method-card li,
.orientation-creneaux p,
.orientation-section p {
    line-height: 1.55;
}

.orientation-method-card ul {
    padding-left: 20px;
    margin: 4px 0 20px;
}

.orientation-card-button {
    margin-top: auto;
    background: var(--accent);
    color: #ffffff;
    padding: 13px 18px;
}

.orientation-card-button:hover {
    background: var(--accent-dark);
    color: #ffffff;
}

.orientation-warning {
    background: #fff7df;
    border: 1px solid rgba(245, 179, 1, 0.45);
    border-left: 6px solid #f5b301;
    border-radius: 14px;
    padding: 13px 14px;
    margin: 8px 0 20px;
    line-height: 1.5;
}


.orientation-permanences {
    margin-top: 28px;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 22px;
    padding: 24px 28px;
    box-shadow: 0 12px 28px rgba(16, 24, 40, 0.08);
}

.orientation-permanences h2 {
    margin-bottom: 12px;
}

.orientation-permanences-subtitle {
    margin: 18px 0 8px;
    color: #0b5cab;
    font-size: 1.1rem;
}

.orientation-permanences-table-wrap {
    overflow-x: auto;
    margin: 10px 0 14px;
}

.orientation-permanences-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.orientation-permanences-table th,
.orientation-permanences-table td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--border);
    text-align: left;
    vertical-align: top;
}

.orientation-permanences-table th {
    background: #eef4ff;
    color: #0b1b4f;
    font-weight: 800;
}

.orientation-permanences-table td:first-child {
    font-weight: 700;
    white-space: nowrap;
}

.orientation-creneaux {
    margin-top: 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 26px;
    background: linear-gradient(135deg, #0b1b4f 0%, #0b5cab 100%);
    color: #ffffff;
    border-radius: 24px;
    padding: 28px;
    box-shadow: 0 18px 42px rgba(11, 27, 79, 0.22);
}

.orientation-creneaux .eyebrow {
    color: #f5b301;
}

.orientation-creneaux h2 {
    color: #ffffff;
    border: 0;
    padding: 0;
}

.orientation-creneaux p {
    color: rgba(255, 255, 255, 0.92);
}

.orientation-secondary-button {
    flex: 0 0 auto;
    background: #ffffff;
    color: #0b1b4f;
    padding: 14px 20px;
}

.orientation-help {
    margin-top: 28px;
    margin-bottom: 42px;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 22px;
    padding: 24px 28px;
}

@media (max-width: 920px) {
    .orientation-methods {
        grid-template-columns: 1fr;
    }

    .orientation-creneaux {
        flex-direction: column;
        align-items: flex-start;
    }

    .orientation-secondary-button {
        width: 100%;
    }
}

@media (max-width: 640px) {
    .orientation-hero {
        min-height: 620px;
    }

    .orientation-brand {
        align-items: flex-start;
        flex-direction: column;
    }

    .orientation-brand img {
        width: 78px;
        height: 78px;
    }

    .orientation-intro-card {
        margin-top: -36px;
    }

    .orientation-main-button,
    .orientation-card-button {
        width: 100%;
    }
}


/* Bannière commune plateforme */
.platform-banner {
    background:
        linear-gradient(135deg, rgba(255,255,255,0.96) 0%, rgba(247,251,255,0.96) 58%, rgba(238,244,255,0.96) 100%);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 16px 18px;
    margin-bottom: 20px;
    box-shadow: 0 12px 28px rgba(16, 24, 40, 0.08);
    overflow: hidden;
    position: relative;
}

.platform-banner::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 6px;
    background: linear-gradient(90deg, #0b1b4f 0%, #0b5cab 52%, #f5b301 100%);
}

.platform-banner-main {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 18px;
    padding-top: 6px;
}

.platform-banner-logo {
    width: 84px;
    height: 84px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    background: #ffffff;
    border: 1px solid rgba(11, 92, 171, 0.14);
    box-shadow: 0 8px 20px rgba(16, 24, 40, 0.08);
}

.platform-banner-logo img {
    max-width: 72px;
    max-height: 72px;
    object-fit: contain;
    display: block;
}

.platform-banner-title h1 {
    margin: 0 0 6px;
    font-size: clamp(1.65rem, 3vw, 2.35rem);
    line-height: 1.1;
}

.platform-banner-title p:last-child {
    margin: 0;
    color: var(--muted);
}

.platform-banner-badge {
    background: #0b1b4f;
    color: #ffffff;
    border-radius: 999px;
    padding: 10px 14px;
    font-weight: 800;
    white-space: nowrap;
}

.platform-banner-actions {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(11, 92, 171, 0.12);
}

.platform-home-link,
.platform-bottom-link a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent);
    font-weight: 800;
    text-decoration: none;
}

.platform-home-link:hover,
.platform-bottom-link a:hover {
    color: var(--accent-dark);
    text-decoration: underline;
}

.platform-prefill-callout {
    margin-bottom: 20px;
}

.platform-bottom-link {
    margin: 22px 0 0;
    text-align: center;
}

.platform-footer {
    margin: 28px auto 10px;
    padding: 14px 20px 0;
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: 0.82rem;
    text-align: center;
}

.platform-footer a {
    color: inherit;
    text-decoration: none;
}

.platform-footer a:hover {
    color: var(--accent-dark);
    text-decoration: underline;
}

.platform-footer span {
    display: inline-block;
    margin: 0 8px;
    opacity: 0.65;
}

@media (max-width: 760px) {
    .platform-banner-main {
        grid-template-columns: 1fr;
        text-align: left;
    }

    .platform-banner-logo {
        width: 76px;
        height: 76px;
    }

    .platform-banner-badge {
        width: fit-content;
    }

    .platform-home-link {
        width: 100%;
    }
}
.tos-security-honeypot {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

.tos-turnstile-block .cf-turnstile {
    margin-top: 12px;
    min-height: 65px;
}
