/* AnimyJob — Générateur d'activités V2 */
.ajg {
    --ajg-navy: #103b52;
    --ajg-blue: #1976a3;
    --ajg-blue-2: #2e9bd0;
    --ajg-orange: #f47c1c;
    --ajg-green: #16835d;
    --ajg-red: #b42318;
    --ajg-gold: #bf7b00;
    --ajg-ink: #24343d;
    --ajg-muted: #647782;
    --ajg-line: #d7e4eb;
    --ajg-soft: #f4f9fc;
    --ajg-white: #ffffff;
    clear: both;
    width: 100%;
    color: var(--ajg-ink);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.58;
}

.ajg *,
.ajg *::before,
.ajg *::after {
    box-sizing: border-box;
}

.ajg section,
.ajg article,
.ajg header,
.ajg details,
.ajg summary {
    float: none;
}

.ajg h1,
.ajg h2,
.ajg h3,
.ajg h4,
.ajg h5,
.ajg p {
    text-transform: none;
}

.ajg-wrap {
    width: min(1160px, calc(100% - 30px));
    margin: 0 auto;
}

.ajg-hero {
    overflow: hidden;
    padding: 62px 0 54px;
    background:
        radial-gradient(circle at 90% 20%, rgba(244, 124, 28, .15), transparent 25%),
        radial-gradient(circle at 10% 80%, rgba(46, 155, 208, .18), transparent 30%),
        linear-gradient(135deg, #eef9ff 0%, #ffffff 58%, #fff8ee 100%);
    border-bottom: 1px solid var(--ajg-line);
}

.ajg-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(280px, .75fr);
    gap: 38px;
    align-items: center;
}

.ajg-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 11px;
    padding: 6px 11px;
    border-radius: 999px;
    background: #dff3ff;
    color: var(--ajg-navy);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: .02em;
}

.ajg h1 {
    max-width: 800px;
    margin: 0 0 16px;
    color: var(--ajg-navy);
    font-size: clamp(34px, 5vw, 56px);
    line-height: 1.08;
    letter-spacing: -.025em;
}

.ajg-lead {
    max-width: 790px;
    margin: 0;
    color: #4d626e;
    font-size: 18px;
    line-height: 1.7;
}

.ajg-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 23px;
}

.ajg-trust span {
    padding: 7px 10px;
    border: 1px solid #cfe2ec;
    border-radius: 999px;
    background: rgba(255, 255, 255, .85);
    color: #345668;
    font-size: 12px;
    font-weight: 800;
}

.ajg-hero-proof {
    position: relative;
    overflow: hidden;
    padding: 28px;
    border: 1px solid rgba(25, 118, 163, .25);
    border-radius: 20px;
    background: rgba(255, 255, 255, .88);
    box-shadow: 0 18px 45px rgba(16, 59, 82, .12);
}

.ajg-hero-proof::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 6px;
    background: linear-gradient(var(--ajg-orange), var(--ajg-blue));
}

.ajg-hero-proof strong {
    display: block;
    color: var(--ajg-navy);
    font-size: 25px;
    line-height: 1.2;
}

.ajg-hero-proof > span {
    display: block;
    margin: 8px 0 17px;
    color: var(--ajg-muted);
}

.ajg-hero-proof ul {
    margin: 0;
    padding-left: 20px;
}

.ajg-hero-proof li {
    margin-bottom: 7px;
}

.ajg-generator {
    padding: 46px 0 58px;
    background: #f7fafc;
}

.ajg-form {
    display: grid;
    gap: 22px;
}

.ajg-panel,
.ajg-advanced {
    padding: 28px;
    border: 1px solid var(--ajg-line);
    border-radius: 18px;
    background: var(--ajg-white);
    box-shadow: 0 12px 34px rgba(16, 59, 82, .065);
}

.ajg-panel-heading {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 22px;
}

.ajg-step {
    display: grid;
    place-items: center;
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    color: #fff;
    background: linear-gradient(135deg, var(--ajg-blue), var(--ajg-navy));
    font-weight: 900;
}

.ajg-panel-heading h2 {
    margin: 0 0 3px;
    color: var(--ajg-navy);
    font-size: 25px;
    line-height: 1.25;
}

.ajg-panel-heading p {
    margin: 0;
    color: var(--ajg-muted);
}

.ajg-mode-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.ajg-choice-card {
    position: relative;
    display: block;
    cursor: pointer;
}

.ajg-choice-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.ajg-choice-content {
    display: block;
    min-height: 110px;
    padding: 19px;
    border: 2px solid var(--ajg-line);
    border-radius: 14px;
    background: #fff;
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.ajg-choice-content strong,
.ajg-choice-content small {
    display: block;
}

.ajg-choice-content strong {
    margin-bottom: 7px;
    color: var(--ajg-navy);
    font-size: 17px;
}

.ajg-choice-content small {
    color: var(--ajg-muted);
    line-height: 1.45;
}

.ajg-choice-card input:checked + .ajg-choice-content {
    border-color: var(--ajg-blue);
    background: #f0f9ff;
    box-shadow: 0 8px 20px rgba(25, 118, 163, .12);
    transform: translateY(-2px);
}

.ajg-choice-card input:focus + .ajg-choice-content {
    outline: 3px solid rgba(25, 118, 163, .18);
}

.ajg-fields {
    display: grid;
    gap: 17px;
}

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

.ajg label {
    display: block;
    color: #314956;
    font-size: 14px;
    font-weight: 800;
}

.ajg select,
.ajg input[type="number"],
.ajg input[type="text"] {
    width: 100%;
    min-height: 47px;
    margin-top: 7px;
    padding: 11px 12px;
    border: 1px solid #b9cbd5;
    border-radius: 10px;
    background: #fff;
    color: #1f3440;
    font: inherit;
    font-weight: 400;
}

.ajg select:focus,
.ajg input:focus {
    outline: 3px solid rgba(25, 118, 163, .14);
    border-color: var(--ajg-blue);
}

.ajg label small {
    display: block;
    margin-top: 5px;
    color: var(--ajg-muted);
    font-size: 11px;
    font-weight: 400;
}

.ajg-field-wide {
    grid-column: span 2;
}

.ajg-presets {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    align-items: center;
    padding: 16px 19px;
    border: 1px dashed #b8d2df;
    border-radius: 14px;
    background: #f2f9fd;
}

.ajg-presets strong {
    color: var(--ajg-navy);
    margin-right: 3px;
}

.ajg-presets button {
    padding: 8px 12px;
    border: 1px solid #c5d9e4;
    border-radius: 999px;
    background: #fff;
    color: #33566a;
    font: inherit;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}

.ajg-presets button:hover {
    border-color: var(--ajg-blue);
    color: var(--ajg-blue);
}

.ajg-advanced {
    padding: 0;
    overflow: hidden;
}

.ajg-advanced > summary {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    align-items: center;
    padding: 21px 25px;
    list-style: none;
    cursor: pointer;
    color: var(--ajg-navy);
    font-weight: 900;
}

.ajg-advanced > summary::-webkit-details-marker {
    display: none;
}

.ajg-advanced > summary::after {
    content: "+";
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    border-radius: 50%;
    background: #e7f4fa;
    color: var(--ajg-blue);
    font-size: 22px;
}

.ajg-advanced[open] > summary::after {
    content: "−";
}

.ajg-advanced > summary span,
.ajg-advanced > summary small {
    display: block;
}

.ajg-advanced > summary small {
    margin-top: 2px;
    color: var(--ajg-muted);
    font-size: 12px;
    font-weight: 400;
}

.ajg-advanced-content {
    padding: 25px;
    border-top: 1px solid var(--ajg-line);
    background: #fbfdfe;
}

.ajg-needs {
    margin-top: 25px;
    padding: 20px;
    border-radius: 13px;
    background: #f0f8fc;
    border: 1px solid #d4e7f1;
}

.ajg-needs h3 {
    margin: 0 0 4px;
    color: var(--ajg-navy);
    font-size: 19px;
}

.ajg-needs p {
    margin: 0 0 15px;
    color: var(--ajg-muted);
    font-size: 13px;
}

.ajg-checkbox-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 9px;
}

.ajg-check {
    display: flex !important;
    align-items: center;
    gap: 9px;
    min-height: 46px;
    padding: 9px 11px;
    border: 1px solid #d3e2ea;
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
}

.ajg-check input {
    width: 17px;
    height: 17px;
    flex: 0 0 17px;
}

.ajg-check span {
    font-size: 12px;
    font-weight: 700;
}

.ajg-switches {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 18px;
}

.ajg-switch {
    display: flex !important;
    align-items: center;
    gap: 10px;
    padding: 11px 14px;
    border: 1px solid var(--ajg-line);
    border-radius: 999px;
    background: #fff;
    cursor: pointer;
}

.ajg-switch input {
    width: 18px;
    height: 18px;
}

.ajg-submit-zone {
    text-align: center;
    padding: 9px 0 0;
}

.ajg-primary,
.ajg-secondary,
.ajg-text-button {
    display: inline-block;
    min-height: 46px;
    padding: 12px 19px;
    border-radius: 999px;
    font: inherit;
    font-weight: 900;
    text-align: center;
    text-decoration: none !important;
    cursor: pointer;
    transition: transform .16s ease, box-shadow .16s ease, opacity .16s ease;
}

.ajg-primary {
    border: 0;
    background: linear-gradient(135deg, var(--ajg-blue), var(--ajg-navy));
    color: #fff !important;
    box-shadow: 0 10px 22px rgba(25, 118, 163, .22);
}

.ajg-secondary {
    border: 1px solid #c5d9e4;
    background: #fff;
    color: var(--ajg-navy) !important;
}

.ajg-text-button {
    border: 0;
    background: transparent;
    color: var(--ajg-muted);
}

.ajg-primary:hover,
.ajg-secondary:hover {
    transform: translateY(-2px);
}

.ajg-primary[disabled] {
    opacity: .65;
    cursor: wait;
}

.ajg-submit-zone > button {
    margin: 4px;
}

.ajg-submit-zone > p {
    margin: 11px 0 0;
    color: var(--ajg-muted);
    font-size: 12px;
}

.ajg-alert {
    margin-bottom: 20px;
    padding: 16px 18px;
    border-radius: 12px;
}

.ajg-alert strong {
    display: block;
    margin-bottom: 6px;
}

.ajg-alert ul {
    margin: 0;
    padding-left: 20px;
}

.ajg-alert-error {
    border: 1px solid #efb7b1;
    background: #fff1ef;
    color: #8d2018;
}

.ajg-results {
    padding: 55px 0 65px;
    background: #fff;
}

.ajg-results-header {
    display: flex;
    justify-content: space-between;
    gap: 25px;
    align-items: flex-end;
    margin-bottom: 20px;
}

.ajg-results-header h2,
.ajg-section-title h2 {
    margin: 3px 0 0;
    color: var(--ajg-navy);
    font-size: clamp(28px, 4vw, 39px);
    line-height: 1.18;
}

.ajg-result-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.ajg-criteria-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 28px;
}

.ajg-criteria-summary span,
.ajg-tags span {
    padding: 6px 10px;
    border-radius: 999px;
    background: #edf6fa;
    color: #375c6d;
    font-size: 12px;
    font-weight: 800;
}

.ajg-session-plan {
    margin-bottom: 30px;
    padding: 25px;
    border: 1px solid #cfe4ee;
    border-radius: 17px;
    background: linear-gradient(135deg, #f2faff, #fff);
}

.ajg-section-title > span {
    color: var(--ajg-orange);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.ajg-section-title h3 {
    margin: 2px 0 17px;
    color: var(--ajg-navy);
    font-size: 24px;
}

.ajg-session-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.ajg-session-grid article {
    padding: 17px;
    border: 1px solid #d7e6ed;
    border-radius: 12px;
    background: #fff;
}

.ajg-session-time {
    margin-bottom: 7px;
    color: var(--ajg-orange);
    font-size: 12px;
    font-weight: 900;
}

.ajg-session-grid strong {
    color: var(--ajg-blue);
    font-size: 12px;
    text-transform: uppercase;
}

.ajg-session-grid h4 {
    margin: 5px 0;
    color: var(--ajg-navy);
    font-size: 18px;
}

.ajg-session-grid p {
    margin: 0;
    color: var(--ajg-muted);
    font-size: 13px;
}

.ajg-result-list {
    display: grid;
    gap: 24px;
}

.ajg-result-card {
    overflow: hidden;
    border: 1px solid var(--ajg-line);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 14px 38px rgba(16, 59, 82, .08);
}

.ajg-result-top {
    display: grid;
    grid-template-columns: 50px minmax(0, 1fr) 115px;
    gap: 16px;
    align-items: start;
    padding: 25px;
    background: linear-gradient(135deg, #f2faff, #fff 65%);
    border-bottom: 1px solid var(--ajg-line);
}

.ajg-result-rank {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--ajg-orange), #ef9a45);
    color: #fff;
    font-size: 19px;
    font-weight: 900;
}

.ajg-category,
.ajg-session-role {
    display: inline-block;
    margin: 0 7px 5px 0;
    color: var(--ajg-orange);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.ajg-session-role {
    color: var(--ajg-blue);
}

.ajg-result-title h3 {
    margin: 0 0 12px;
    color: var(--ajg-navy);
    font-size: clamp(23px, 3vw, 30px);
    line-height: 1.18;
}

.ajg-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.ajg-match {
    text-align: right;
}

.ajg-match strong,
.ajg-match span {
    display: block;
}

.ajg-match strong {
    color: var(--ajg-green);
    font-size: 30px;
    line-height: 1;
}

.ajg-match span {
    margin-top: 6px;
    color: var(--ajg-muted);
    font-size: 11px;
    font-weight: 800;
}

.ajg-result-intro {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(310px, .75fr);
    gap: 24px;
    padding: 22px 25px;
}

.ajg-result-intro h4,
.ajg-result-body h4 {
    margin: 0 0 10px;
    color: var(--ajg-navy);
    font-size: 18px;
}

.ajg-result-intro ul,
.ajg-result-body ul {
    margin: 0;
    padding-left: 20px;
}

.ajg-result-intro li,
.ajg-result-body li {
    margin-bottom: 6px;
}

.ajg-practical {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.ajg-practical > div {
    padding: 11px;
    border-radius: 10px;
    background: var(--ajg-soft);
}

.ajg-practical strong,
.ajg-practical span {
    display: block;
}

.ajg-practical strong {
    color: var(--ajg-muted);
    font-size: 10px;
    text-transform: uppercase;
}

.ajg-practical span {
    margin-top: 2px;
    color: var(--ajg-navy);
    font-size: 12px;
    font-weight: 800;
}

.ajg-result-details {
    border-top: 1px solid var(--ajg-line);
}

.ajg-result-details > summary {
    padding: 15px 25px;
    list-style: none;
    cursor: pointer;
    color: var(--ajg-blue);
    background: #fbfdfe;
    font-weight: 900;
}

.ajg-result-details > summary::-webkit-details-marker {
    display: none;
}

.ajg-result-details > summary::after {
    content: " +";
}

.ajg-result-details[open] > summary::after {
    content: " −";
}

.ajg-result-body {
    display: grid;
    gap: 18px;
    padding: 25px;
    border-top: 1px solid var(--ajg-line);
}

.ajg-result-body > section,
.ajg-two-columns > section {
    padding: 19px;
    border: 1px solid #dce8ee;
    border-radius: 13px;
    background: #fff;
}

.ajg-result-body p {
    margin: 0;
}

.ajg-result-body h5 {
    margin: 15px 0 7px;
    color: var(--ajg-navy);
    font-size: 14px;
}

.ajg-script {
    background: linear-gradient(135deg, #eff9ff, #fff) !important;
    border-color: #c5e1ed !important;
}

.ajg-script p {
    color: #254c60;
    font-size: 16px;
    font-weight: 700;
}

.ajg-two-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.ajg-timeline {
    overflow: hidden;
    border: 1px solid var(--ajg-line);
    border-radius: 11px;
}

.ajg-timeline > div {
    display: grid;
    grid-template-columns: 105px minmax(0, 1fr);
    border-bottom: 1px solid var(--ajg-line);
}

.ajg-timeline > div:last-child {
    border-bottom: 0;
}

.ajg-timeline > div > span {
    padding: 12px;
    background: #eaf5fa;
    color: var(--ajg-navy);
    font-size: 12px;
    font-weight: 900;
}

.ajg-timeline > div > div {
    padding: 11px 14px;
}

.ajg-timeline strong {
    display: block;
    color: var(--ajg-navy);
}

.ajg-timeline p {
    margin-top: 2px;
    color: var(--ajg-muted);
    font-size: 13px;
}

.ajg-inclusion {
    background: #effaf6 !important;
    border-color: #c8e8db !important;
}

.ajg-safety {
    background: #fff9ed !important;
    border-color: #eadab2 !important;
}

.ajg-stop {
    background: #fff4f2 !important;
    border-color: #efcbc5 !important;
}

.ajg-plan-b {
    background: #f2f8ff !important;
    border-color: #cddfec !important;
}

.ajg-warnings {
    background: #fff7e7 !important;
    border-color: #e8d2a4 !important;
}

.ajg-professional-note {
    margin-top: 28px;
    padding: 20px 23px;
    border: 1px solid #d7e4eb;
    border-left: 5px solid var(--ajg-orange);
    border-radius: 12px;
    background: #fbfdfe;
}

.ajg-professional-note strong {
    color: var(--ajg-navy);
}

.ajg-professional-note p {
    margin: 5px 0 0;
    color: var(--ajg-muted);
}

.ajg-benefits,
.ajg-faq {
    padding: 58px 0;
    background: #f6fafc;
    border-top: 1px solid var(--ajg-line);
}

.ajg-benefit-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 15px;
    margin-top: 25px;
}

.ajg-benefit-grid article {
    padding: 21px;
    border: 1px solid var(--ajg-line);
    border-radius: 14px;
    background: #fff;
}

.ajg-benefit-grid article > strong {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #e5f4fb;
    color: var(--ajg-blue);
}

.ajg-benefit-grid h3 {
    margin: 13px 0 7px;
    color: var(--ajg-navy);
    font-size: 18px;
}

.ajg-benefit-grid p {
    margin: 0;
    color: var(--ajg-muted);
    font-size: 13px;
}

.ajg-faq {
    background: #fff;
}

.ajg-faq .ajg-section-title {
    margin-bottom: 20px;
}

.ajg-faq details {
    margin-bottom: 10px;
    border: 1px solid var(--ajg-line);
    border-radius: 11px;
    background: #fff;
}

.ajg-faq summary {
    padding: 16px 18px;
    cursor: pointer;
    color: var(--ajg-navy);
    font-weight: 900;
}

.ajg-faq details p {
    margin: 0;
    padding: 0 18px 18px;
    color: var(--ajg-muted);
}

@media (max-width: 960px) {
    .ajg-hero-grid,
    .ajg-result-intro {
        grid-template-columns: 1fr;
    }

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

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

    .ajg-result-top {
        grid-template-columns: 50px minmax(0, 1fr);
    }

    .ajg-match {
        grid-column: 2;
        text-align: left;
        display: flex;
        gap: 8px;
        align-items: baseline;
    }

    .ajg-match strong {
        font-size: 24px;
    }
}

@media (max-width: 720px) {
    .ajg-wrap {
        width: min(100% - 20px, 1160px);
    }

    .ajg-hero {
        padding: 42px 0 38px;
    }

    .ajg h1 {
        font-size: 36px;
    }

    .ajg-lead {
        font-size: 16px;
    }

    .ajg-mode-grid,
    .ajg-fields-3,
    .ajg-checkbox-grid,
    .ajg-session-grid,
    .ajg-two-columns,
    .ajg-benefit-grid {
        grid-template-columns: 1fr;
    }

    .ajg-panel {
        padding: 21px 16px;
    }

    .ajg-advanced-content {
        padding: 20px 15px;
    }

    .ajg-field-wide {
        grid-column: auto;
    }

    .ajg-choice-content {
        min-height: 0;
    }

    .ajg-results-header {
        align-items: stretch;
        flex-direction: column;
    }

    .ajg-result-actions {
        justify-content: stretch;
    }

    .ajg-result-actions button {
        flex: 1 1 100%;
    }

    .ajg-result-top {
        grid-template-columns: 42px minmax(0, 1fr);
        padding: 18px 15px;
    }

    .ajg-result-rank {
        width: 40px;
        height: 40px;
    }

    .ajg-result-intro,
    .ajg-result-body {
        padding: 18px 15px;
    }

    .ajg-practical {
        grid-template-columns: 1fr 1fr;
    }

    .ajg-timeline > div {
        grid-template-columns: 82px minmax(0, 1fr);
    }

    .ajg-submit-zone > button {
        width: 100%;
        margin: 5px 0;
    }
}

@media print {
    body * {
        visibility: hidden !important;
    }

    .ajg-results,
    .ajg-results * {
        visibility: visible !important;
    }

    .ajg-results {
        position: absolute;
        inset: 0;
        width: 100%;
        padding: 0;
        color: #000;
    }

    .ajg-no-print,
    .ajg-result-actions,
    .ajg-criteria-summary {
        display: none !important;
    }

    .ajg-wrap {
        width: 100%;
    }

    .ajg-result-card,
    .ajg-session-plan,
    .ajg-professional-note {
        box-shadow: none;
        break-inside: avoid;
        page-break-inside: avoid;
    }

    .ajg-result-details {
        display: block !important;
    }

    .ajg-result-details > summary {
        display: none !important;
    }

    .ajg-result-details > .ajg-result-body {
        display: grid !important;
    }

    .ajg-two-columns {
        grid-template-columns: 1fr 1fr;
    }

    @page {
        size: A4;
        margin: 10mm;
    }
}
