/* =========================================================
   APPRÉCIATIONS IA
   ========================================================= */

.appia-page,
.appia-page * {
    box-sizing: border-box;
}

.appia-page {
    --appia-bg: #f4f7fb;
    --appia-card: #ffffff;
    --appia-text: #172033;
    --appia-muted: #68738a;
    --appia-line: #e4e9f2;
    --appia-primary: #5b5ce2;
    --appia-primary-2: #7357e8;
    --appia-soft: #f0efff;
    --appia-success: #18865f;
    --appia-danger: #c33a4d;

    color: var(--appia-text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background:
        radial-gradient(circle at top right, rgba(91, 92, 226, .10), transparent 30rem),
        linear-gradient(180deg, #f8faff 0%, var(--appia-bg) 100%);
    min-height: 100vh;
    padding: 34px 18px 60px;
}

.appia-shell {
    width: min(1220px, 100%);
    margin: 0 auto;
}

.appia-hero {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    padding: 34px;
    border-radius: 26px;
    color: #fff;
    background:
        radial-gradient(circle at 90% 15%, rgba(255,255,255,.16), transparent 20rem),
        linear-gradient(135deg, #3c4bc5, #7254df 65%, #8c55dc);
    box-shadow: 0 20px 50px rgba(58, 66, 155, .22);
}

.appia-hero::after {
    content: "";
    position: absolute;
    inset: auto -80px -120px auto;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    border: 36px solid rgba(255,255,255,.08);
}

.appia-kicker,
.appia-result-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.appia-kicker {
    color: rgba(255,255,255,.88);
}

.appia-hero h1 {
    margin: 8px 0 8px;
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 1;
    letter-spacing: -.045em;
}

.appia-hero p {
    max-width: 760px;
    margin: 0;
    color: rgba(255,255,255,.86);
    font-size: 1.02rem;
    line-height: 1.65;
}

.appia-hero-icon {
    position: relative;
    z-index: 1;
    flex: 0 0 96px;
    width: 96px;
    height: 96px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255,255,255,.25);
    border-radius: 30px;
    background: rgba(255,255,255,.14);
    backdrop-filter: blur(12px);
    font-size: 2.1rem;
    font-weight: 900;
    letter-spacing: -.08em;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.22);
}

.appia-mode-switch {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 22px 0;
    padding: 8px;
    background: rgba(255,255,255,.86);
    border: 1px solid var(--appia-line);
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(35, 47, 84, .07);
}

.appia-mode-btn {
    width: 100%;
    border: 0;
    background: transparent;
    color: var(--appia-text);
    border-radius: 15px;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    text-align: left;
    cursor: pointer;
    transition: .2s ease;
}

.appia-mode-btn:hover {
    background: #f7f8ff;
}

.appia-mode-btn.active {
    color: var(--appia-primary);
    background: var(--appia-soft);
    box-shadow: inset 0 0 0 1px rgba(91,92,226,.14);
}

.appia-mode-btn strong,
.appia-mode-btn small {
    display: block;
}

.appia-mode-btn strong {
    font-size: .98rem;
}

.appia-mode-btn small {
    margin-top: 2px;
    color: var(--appia-muted);
    font-size: .78rem;
}

.appia-mode-icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border-radius: 13px;
    background: #fff;
    font-size: 1.25rem;
    box-shadow: 0 4px 14px rgba(32, 43, 77, .08);
}

.appia-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(320px, .85fr);
    gap: 22px;
    align-items: start;
}

.appia-card {
    background: var(--appia-card);
    border: 1px solid var(--appia-line);
    border-radius: 24px;
    box-shadow: 0 15px 45px rgba(32, 43, 77, .08);
}

.appia-form-card {
    padding: clamp(20px, 3vw, 30px);
}

.appia-result-card {
    padding: 24px;
    position: sticky;
    top: 18px;
}

.appia-section-title {
    display: flex;
    gap: 13px;
    align-items: flex-start;
    margin-bottom: 20px;
}

.appia-section-title.compact {
    margin-top: 2px;
}

.appia-section-title > span {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    border-radius: 11px;
    background: var(--appia-soft);
    color: var(--appia-primary);
    font-size: .9rem;
    font-weight: 900;
}

.appia-section-title h2 {
    margin: 0 0 3px;
    font-size: 1.13rem;
}

.appia-section-title p {
    margin: 0;
    color: var(--appia-muted);
    font-size: .86rem;
    line-height: 1.45;
}

.appia-form-grid {
    display: grid;
    gap: 16px;
}

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

.appia-field {
    min-width: 0;
}

.appia-field label {
    display: block;
    margin-bottom: 7px;
    color: #303a50;
    font-size: .84rem;
    font-weight: 750;
}

.appia-field label span {
    color: var(--appia-muted);
    font-weight: 500;
}

.appia-field input,
.appia-field select,
.appia-field textarea,
.appia-colleague-fields input,
.appia-colleague-fields select,
.appia-colleague-fields textarea {
    width: 100%;
    border: 1px solid #dce2ed;
    border-radius: 12px;
    background: #fbfcfe;
    color: var(--appia-text);
    font: inherit;
    font-size: .92rem;
    outline: none;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.appia-field input,
.appia-field select,
.appia-colleague-fields input,
.appia-colleague-fields select {
    height: 45px;
    padding: 0 13px;
}

.appia-field textarea,
.appia-colleague-fields textarea {
    padding: 11px 13px;
    resize: vertical;
    min-height: 76px;
}

.appia-field input:focus,
.appia-field select:focus,
.appia-field textarea:focus,
.appia-colleague-fields input:focus,
.appia-colleague-fields select:focus,
.appia-colleague-fields textarea:focus {
    border-color: rgba(91,92,226,.65);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(91,92,226,.10);
}

.appia-field small {
    display: block;
    margin-top: 6px;
    color: #818ba0;
    font-size: .74rem;
    line-height: 1.35;
}

.appia-mode-panel {
    display: none;
    margin-top: 28px;
}

.appia-mode-panel.active {
    display: block;
    animation: appiaFade .22s ease;
}

@keyframes appiaFade {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

.appia-separator {
    height: 1px;
    margin: 28px 0;
    background: var(--appia-line);
}

.appia-colleagues {
    display: grid;
    gap: 11px;
    margin-bottom: 14px;
}

.appia-colleague-row {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) 34px;
    gap: 10px;
    align-items: start;
    padding: 12px;
    border: 1px solid var(--appia-line);
    border-radius: 15px;
    background: #fafbfe;
}

.appia-colleague-number {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: var(--appia-soft);
    color: var(--appia-primary);
    font-size: .78rem;
    font-weight: 900;
}

.appia-colleague-fields {
    display: grid;
    grid-template-columns: minmax(150px, .45fr) minmax(0, 1fr);
    gap: 10px;
}

.appia-remove-colleague {
    width: 30px;
    height: 30px;
    border: 0;
    border-radius: 9px;
    background: #fff0f2;
    color: var(--appia-danger);
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
}

.appia-actions,
.appia-result-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.appia-actions {
    margin-top: 22px;
}

.appia-primary-btn,
.appia-secondary-btn,
.appia-ghost-btn {
    border: 0;
    border-radius: 12px;
    min-height: 44px;
    padding: 0 17px;
    font: inherit;
    font-size: .88rem;
    font-weight: 800;
    cursor: pointer;
    transition: transform .16s ease, box-shadow .16s ease, opacity .16s ease;
}

.appia-primary-btn {
    min-width: 210px;
    color: #fff;
    background: linear-gradient(135deg, var(--appia-primary), var(--appia-primary-2));
    box-shadow: 0 9px 20px rgba(91,92,226,.23);
}

.appia-primary-btn:hover:not(:disabled),
.appia-secondary-btn:hover:not(:disabled),
.appia-ghost-btn:hover:not(:disabled) {
    transform: translateY(-1px);
}

.appia-secondary-btn {
    color: var(--appia-primary);
    background: var(--appia-soft);
}

.appia-ghost-btn {
    color: #59647a;
    background: #f3f5f9;
}

.appia-primary-btn:disabled,
.appia-secondary-btn:disabled,
.appia-ghost-btn:disabled {
    opacity: .55;
    cursor: not-allowed;
}

.appia-primary-btn.loading {
    filter: saturate(.7);
}

.appia-message {
    display: none;
    margin-top: 15px;
    padding: 11px 13px;
    border-radius: 11px;
    font-size: .84rem;
}

.appia-message.error,
.appia-message.success,
.appia-message.info {
    display: block;
}

.appia-message.error {
    color: #9f283a;
    background: #fff0f2;
    border: 1px solid #ffd4da;
}

.appia-message.success {
    color: #146b50;
    background: #ecfbf5;
    border: 1px solid #c8f1e2;
}

.appia-message.info {
    color: #3f4a61;
    background: #f3f5f9;
    border: 1px solid #e4e8f0;
}

.appia-result-head {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 15px;
}

.appia-result-kicker {
    color: var(--appia-primary);
}

.appia-result-head h2 {
    margin: 4px 0 0;
    font-size: 1.15rem;
}

.appia-counter {
    white-space: nowrap;
    padding: 6px 9px;
    border-radius: 9px;
    background: #f3f5f9;
    color: var(--appia-muted);
    font-size: .72rem;
    font-weight: 700;
}

.appia-result {
    min-height: 225px;
    padding: 20px;
    border: 1px solid #dfe4ed;
    border-radius: 17px;
    background:
        linear-gradient(rgba(255,255,255,.87), rgba(255,255,255,.87)),
        repeating-linear-gradient(0deg, #eef1f6 0, #eef1f6 1px, transparent 1px, transparent 30px);
}

.appia-result.empty {
    display: grid;
    place-items: center;
}

.appia-result-empty {
    max-width: 260px;
    text-align: center;
    color: var(--appia-muted);
}

.appia-result-empty > span {
    display: block;
    margin-bottom: 8px;
    font-size: 2rem;
}

.appia-result-empty strong {
    display: block;
    color: #475267;
    font-size: .9rem;
}

.appia-result-empty p {
    margin: 5px 0 0;
    font-size: .79rem;
    line-height: 1.45;
}

.appia-result-text {
    margin: 0;
    color: #263148;
    font-size: 1rem;
    line-height: 1.72;
    white-space: pre-wrap;
}

.appia-result-actions {
    margin-top: 12px;
}

.appia-result-actions .appia-secondary-btn {
    flex: 1;
}

.appia-tip {
    margin-top: 18px;
    padding: 14px;
    border-radius: 14px;
    color: #556078;
    background: #f7f8fc;
    border: 1px solid #e9ecf3;
}

.appia-tip strong {
    color: #38435a;
    font-size: .82rem;
}

.appia-tip p {
    margin: 4px 0 0;
    font-size: .76rem;
    line-height: 1.5;
}

.appia-check {
    display: flex !important;
    align-items: center;
    gap: 8px;
    min-height: 45px;
    padding: 0 12px;
    border: 1px solid #dce2ed;
    border-radius: 12px;
    background: #fbfcfe;
}

.appia-check input {
    width: 18px;
    height: 18px;
    margin: 0;
}

@media (max-width: 980px) {
    .appia-grid {
        grid-template-columns: 1fr;
    }

    .appia-result-card {
        position: static;
    }
}

@media (max-width: 720px) {
    .appia-page {
        padding: 16px 10px 40px;
    }

    .appia-hero {
        padding: 24px 20px;
        border-radius: 20px;
    }

    .appia-hero-icon {
        display: none;
    }

    .appia-mode-switch {
        grid-template-columns: 1fr;
    }

    .appia-form-grid-2,
    .appia-colleague-fields {
        grid-template-columns: 1fr;
    }

    .appia-colleague-row {
        grid-template-columns: 30px minmax(0, 1fr) 30px;
    }
}

/* =========================================================
   PUBLICITÉ ADSENSE
   ========================================================= */
.appia-advertisement {
    margin-top: 22px;
    overflow: hidden;
    border: 1px solid var(--appia-line);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 12px 35px rgba(32, 43, 77, .07);
}

.appia-ad-header {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 9px 16px;
    border-bottom: 1px solid #e7ebf2;
    color: #49556c;
    background: #f7f8fc;
    font-size: .82rem;
    font-weight: 800;
}

.appia-ad-content {
    padding: 14px 18px 18px;
    text-align: center;
}

.appia-ad-content > p {
    margin: 0 0 12px;
    color: var(--appia-muted);
    font-size: .78rem;
    line-height: 1.45;
}

.appia-adsense-wrap {
    width: 100%;
    min-height: 90px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.appia-adsense-wrap .adsbygoogle {
    width: 100%;
    min-height: 90px;
}

@media (max-width: 720px) {
    .appia-advertisement {
        margin-top: 16px;
        border-radius: 16px;
    }

    .appia-ad-content {
        padding: 12px;
    }
}



/* =========================================================
   ACCÈS / ABONNEMENT PROF IA
   ========================================================= */
.appia-access-bar {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    margin: 22px 0;
    padding: 15px 17px;
    border: 1px solid #dfe5ef;
    border-radius: 18px;
    background: rgba(255,255,255,.92);
    box-shadow: 0 8px 25px rgba(35,47,84,.06);
}
.appia-access-bar.allowed {
    border-color: rgba(24,134,95,.22);
    background: linear-gradient(135deg, #f3fff9, #ffffff);
}
.appia-access-bar.blocked {
    border-color: rgba(195,58,77,.22);
    background: linear-gradient(135deg, #fff6f7, #ffffff);
}
.appia-access-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    background: #f1f3f8;
    font-size: 1.25rem;
}
.appia-access-copy strong,
.appia-access-copy span { display:block; }
.appia-access-copy strong {
    margin-bottom: 3px;
    color: #263148;
    font-size: .92rem;
}
.appia-access-copy span {
    color: var(--appia-muted);
    font-size: .78rem;
    line-height: 1.45;
}
.appia-access-actions {
    display:flex;
    gap:9px;
    align-items:center;
    flex-wrap:wrap;
    justify-content:flex-end;
}
.appia-trial-counter {
    padding:7px 10px;
    border-radius:999px;
    background:var(--appia-soft);
    color:var(--appia-primary);
    font-size:.75rem;
    font-weight:850;
    white-space:nowrap;
}
.appia-subscribe-btn {
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:39px;
    padding:0 13px;
    border-radius:11px;
    color:#fff;
    background:linear-gradient(135deg,var(--appia-primary),var(--appia-primary-2));
    text-decoration:none;
    font-size:.78rem;
    font-weight:850;
    box-shadow:0 7px 18px rgba(91,92,226,.20);
}
.appia-subscribe-btn:hover { transform:translateY(-1px); }
@media (max-width:720px) {
    .appia-access-bar { grid-template-columns:auto minmax(0,1fr); }
    .appia-access-actions {
        grid-column:1 / -1;
        justify-content:flex-start;
        padding-left:56px;
    }
}


/* =========================================================
   V2 - LISIBILITÉ ET MISE EN PAGE
   ========================================================= */

.appia-page {
    font-size: 17px;
    padding-top: 28px;
}

.appia-shell {
    width: min(1280px, 100%);
}

.appia-hero {
    padding: 36px 38px;
}

.appia-kicker,
.appia-result-kicker {
    font-size: .88rem;
}

.appia-hero p {
    font-size: 1.10rem;
    line-height: 1.65;
}

.appia-mode-btn {
    min-height: 82px;
    padding: 17px 20px;
}

.appia-mode-btn strong {
    font-size: 1.08rem;
}

.appia-mode-btn small {
    margin-top: 4px;
    font-size: .90rem;
    line-height: 1.4;
}

.appia-mode-icon {
    width: 48px;
    height: 48px;
    flex-basis: 48px;
    font-size: 1.4rem;
}

.appia-grid {
    grid-template-columns: minmax(0, 1.5fr) minmax(360px, .95fr);
    gap: 26px;
}

.appia-form-card {
    padding: clamp(26px, 3vw, 36px);
}

.appia-result-card {
    padding: 28px;
}

.appia-section-title {
    gap: 15px;
    margin-bottom: 23px;
}

.appia-section-title > span {
    width: 39px;
    height: 39px;
    flex-basis: 39px;
    font-size: 1rem;
}

.appia-section-title h2 {
    margin-bottom: 5px;
    font-size: 1.30rem;
}

.appia-section-title p {
    font-size: .98rem;
    line-height: 1.5;
}

.appia-context-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.appia-form-grid {
    gap: 18px;
}

.appia-field label {
    margin-bottom: 8px;
    font-size: 1rem;
    font-weight: 750;
}

.appia-field input,
.appia-field select,
.appia-field textarea,
.appia-colleague-fields input,
.appia-colleague-fields select,
.appia-colleague-fields textarea {
    border-radius: 13px;
    font-size: 1rem;
}

.appia-field input,
.appia-field select,
.appia-colleague-fields input,
.appia-colleague-fields select {
    height: 51px;
    padding: 0 15px;
}

.appia-field textarea,
.appia-colleague-fields textarea {
    min-height: 92px;
    padding: 13px 15px;
    line-height: 1.5;
}

.appia-field small {
    margin-top: 7px;
    font-size: .86rem;
    line-height: 1.45;
}

.appia-colleagues {
    gap: 14px;
}

.appia-colleague-row {
    grid-template-columns: 40px minmax(0, 1fr) 38px;
    gap: 12px;
    padding: 15px;
    border-radius: 17px;
}

.appia-colleague-number {
    width: 36px;
    height: 36px;
    font-size: .90rem;
}

.appia-colleague-fields {
    grid-template-columns: minmax(220px, .48fr) minmax(0, 1fr);
    gap: 12px;
}

.appia-remove-colleague {
    width: 36px;
    height: 36px;
}

.appia-primary-btn,
.appia-secondary-btn,
.appia-ghost-btn {
    min-height: 49px;
    padding: 0 20px;
    font-size: 1rem;
}

.appia-primary-btn {
    min-width: 245px;
}

.appia-message {
    padding: 13px 15px;
    font-size: .96rem;
    line-height: 1.45;
}

.appia-result-head h2 {
    font-size: 1.30rem;
}

.appia-counter {
    padding: 7px 10px;
    font-size: .84rem;
}

.appia-result {
    min-height: 260px;
    padding: 24px;
}

.appia-result-empty {
    max-width: 300px;
}

.appia-result-empty strong {
    font-size: 1rem;
}

.appia-result-empty p {
    font-size: .90rem;
}

.appia-result-text {
    font-size: 1.10rem;
    line-height: 1.78;
}

.appia-tip strong {
    font-size: .95rem;
}

.appia-tip p {
    font-size: .90rem;
    line-height: 1.55;
}

.appia-access-bar {
    padding: 17px 19px;
}

.appia-access-copy strong {
    font-size: 1rem;
}

.appia-access-copy span {
    font-size: .90rem;
    line-height: 1.5;
}

.appia-trial-counter {
    font-size: .86rem;
}

.appia-subscribe-btn {
    min-height: 43px;
    padding: 0 15px;
    font-size: .90rem;
}

.appia-ad-header {
    font-size: .92rem;
}

.appia-ad-content > p {
    font-size: .88rem;
}

@media (max-width: 980px) {
    .appia-context-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .appia-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .appia-page {
        font-size: 16px;
    }

    .appia-context-grid,
    .appia-form-grid-2,
    .appia-colleague-fields {
        grid-template-columns: 1fr;
    }

    .appia-colleague-row {
        grid-template-columns: 36px minmax(0, 1fr) 36px;
    }

    .appia-primary-btn,
    .appia-secondary-btn,
    .appia-ghost-btn {
        width: 100%;
    }
}


/* =========================================================
   V2.1.2 - CONTRASTE RENFORCÉ / CONFORT DE LECTURE
   ========================================================= */

.appia-page {
    --appia-bg: #eef2f8;
    --appia-card: #ffffff;
    --appia-text: #111827;
    --appia-muted: #465268;
    --appia-line: #cbd5e1;
    --appia-primary: #4f46d9;
    --appia-primary-2: #6d3fdb;
    --appia-soft: #e8e7ff;

    color: var(--appia-text);
    font-size: 18px;
    background:
        radial-gradient(circle at top right, rgba(79,70,217,.13), transparent 32rem),
        linear-gradient(180deg, #f5f7fb 0%, #edf1f7 100%);
}

/* HERO */
.appia-kicker {
    color: #ffffff;
    font-size: .94rem;
}

.appia-hero h1 {
    font-size: clamp(2.35rem, 4vw, 3.6rem);
    font-weight: 800;
}

.appia-hero p {
    color: #ffffff;
    font-size: 1.14rem;
    font-weight: 500;
    line-height: 1.65;
}

/* BARRE D'ACCÈS */
.appia-access-bar {
    border: 1px solid #b8c4d4;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(30,41,59,.09);
}

.appia-access-bar.allowed {
    border-color: #8fcbb7;
    background: #f5fffb;
}

.appia-access-copy strong {
    color: #111827;
    font-size: 1.06rem;
    font-weight: 800;
}

.appia-access-copy span {
    color: #3f4b5f;
    font-size: .98rem;
    font-weight: 500;
    line-height: 1.55;
}

.appia-subscribe-btn {
    min-height: 48px;
    padding: 0 19px;
    font-size: .98rem;
}

/* ONGLETS */
.appia-mode-switch {
    padding: 10px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    box-shadow: 0 10px 28px rgba(30,41,59,.08);
}

.appia-mode-btn {
    border: 1px solid transparent;
    color: #111827;
}

.appia-mode-btn:hover {
    background: #f1f3ff;
}

.appia-mode-btn.active {
    color: #4038c8;
    background: #e9e8ff;
    border-color: #aaa5ff;
    box-shadow: none;
}

.appia-mode-btn strong {
    font-size: 1.13rem;
    font-weight: 800;
}

.appia-mode-btn small {
    color: #4d5870;
    font-size: .98rem;
    font-weight: 500;
}

.appia-mode-btn.active small {
    color: #4a4596;
}

/* CARTES */
.appia-card {
    border: 1px solid #cbd5e1;
    box-shadow: 0 12px 34px rgba(30,41,59,.10);
}

.appia-section-title h2,
.appia-result-head h2 {
    color: #111827;
    font-weight: 800;
}

.appia-section-title h2 {
    font-size: 1.38rem;
}

.appia-section-title p {
    color: #4b5568;
    font-size: 1.02rem;
    font-weight: 500;
    line-height: 1.55;
}

.appia-section-title > span {
    color: #4338ca;
    background: #e8e7ff;
    border: 1px solid #c5c2ff;
}

/* FORMULAIRES */
.appia-field label {
    color: #172033;
    font-size: 1.06rem;
    font-weight: 800;
}

.appia-field label span {
    color: #566176;
}

.appia-field input,
.appia-field select,
.appia-field textarea,
.appia-colleague-fields input,
.appia-colleague-fields select,
.appia-colleague-fields textarea {
    border: 1.5px solid #aeb9c9;
    background: #ffffff;
    color: #111827;
    font-size: 1.04rem;
    font-weight: 500;
}

.appia-field input,
.appia-field select,
.appia-colleague-fields input,
.appia-colleague-fields select {
    height: 55px;
}

.appia-field textarea,
.appia-colleague-fields textarea {
    min-height: 104px;
    line-height: 1.55;
}

.appia-field input::placeholder,
.appia-field textarea::placeholder,
.appia-colleague-fields input::placeholder,
.appia-colleague-fields textarea::placeholder {
    color: #677386;
    opacity: 1;
}

.appia-field input:focus,
.appia-field select:focus,
.appia-field textarea:focus,
.appia-colleague-fields input:focus,
.appia-colleague-fields select:focus,
.appia-colleague-fields textarea:focus {
    border-color: #5b55df;
    box-shadow: 0 0 0 4px rgba(79,70,217,.16);
}

.appia-field small {
    color: #536075;
    font-size: .92rem;
    font-weight: 500;
}

/* CRITÈRES / COLLÈGUES */
.appia-colleague-row {
    border: 1px solid #cbd5e1;
    background: #f8fafc;
}

.appia-colleague-number {
    color: #4338ca;
    background: #e8e7ff;
    border: 1px solid #c5c2ff;
}

/* BOUTONS */
.appia-primary-btn,
.appia-secondary-btn,
.appia-ghost-btn {
    min-height: 52px;
    font-size: 1.03rem;
    font-weight: 800;
}

.appia-secondary-btn {
    color: #4038c8;
    background: #e7e6ff;
    border: 1px solid #c0bcff;
}

.appia-ghost-btn {
    color: #354156;
    background: #e9edf3;
    border: 1px solid #cbd5e1;
}

/* RÉSULTAT */
.appia-result-kicker {
    color: #4338ca;
    font-size: .96rem;
}

.appia-result-head h2 {
    font-size: 1.42rem;
}

.appia-counter {
    color: #344054;
    background: #e9edf3;
    font-size: .92rem;
    font-weight: 800;
}

.appia-result {
    min-height: 285px;
    border: 1.5px solid #b8c2d1;
    background:
        linear-gradient(rgba(255,255,255,.96), rgba(255,255,255,.96)),
        repeating-linear-gradient(
            0deg,
            #dfe5ed 0,
            #dfe5ed 1px,
            transparent 1px,
            transparent 32px
        );
}

.appia-result-text {
    color: #1e293b;
    font-size: 1.20rem;
    font-weight: 500;
    line-height: 1.78;
}

.appia-result-empty {
    color: #4b5568;
}

.appia-result-empty strong {
    color: #253044;
    font-size: 1.08rem;
}

.appia-result-empty p {
    color: #4b5568;
    font-size: .98rem;
}

/* CONSEIL */
.appia-tip {
    color: #3f4b5f;
    background: #eef2f7;
    border-color: #cbd5e1;
}

.appia-tip strong {
    color: #202b3d;
    font-size: 1rem;
}

.appia-tip p {
    color: #455166;
    font-size: .96rem;
}

/* MESSAGES */
.appia-message {
    font-size: 1rem;
    font-weight: 600;
}

/* PUB */
.appia-ad-header {
    color: #354156;
    background: #eef2f7;
}

.appia-ad-content > p {
    color: #4b5568;
}

/* MOBILE */
@media (max-width: 720px) {
    .appia-page {
        font-size: 17px;
    }

    .appia-hero h1 {
        font-size: 2.15rem;
    }

    .appia-hero p {
        font-size: 1.05rem;
    }

    .appia-result-text {
        font-size: 1.10rem;
    }
}


/* =========================================================
   V2.2 - IMPORT CAPTURE PRONOTE
   ========================================================= */

.appia-pronote-box {
    margin-bottom: 22px;
    padding: 20px;
    border: 1.5px solid #aeb9c9;
    border-radius: 18px;
    background: #f8fafc;
}

.appia-pronote-head {
    margin-bottom: 14px;
}

.appia-pronote-head strong {
    display: block;
    color: #172033;
    font-size: 1.08rem;
    font-weight: 800;
    margin-bottom: 5px;
}

.appia-pronote-head p {
    margin: 0;
    color: #465268;
    font-size: .97rem;
    font-weight: 500;
    line-height: 1.55;
}

.appia-pronote-head kbd {
    display: inline-block;
    padding: 2px 7px;
    border: 1px solid #aeb9c9;
    border-bottom-width: 2px;
    border-radius: 6px;
    background: #ffffff;
    color: #172033;
    font: inherit;
    font-size: .82em;
    font-weight: 800;
}

.appia-pronote-dropzone {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    min-height: 132px;
    padding: 20px;
    border: 2px dashed #7770e7;
    border-radius: 16px;
    background: #eeedff;
    color: #29235f;
    cursor: pointer;
    text-align: left;
    transition: .2s ease;
}

.appia-pronote-dropzone:hover,
.appia-pronote-dropzone:focus {
    border-color: #4338ca;
    background: #e5e3ff;
    outline: none;
    box-shadow: 0 0 0 4px rgba(79,70,217,.12);
}

.appia-pronote-drop-icon {
    flex: 0 0 auto;
    font-size: 2.25rem;
}

.appia-pronote-dropzone strong {
    display: block;
    font-size: 1.06rem;
    font-weight: 800;
}

.appia-pronote-dropzone span {
    display: block;
    margin-top: 4px;
    color: #514b83;
    font-size: .94rem;
    font-weight: 500;
}

.appia-pronote-preview {
    overflow: hidden;
    border: 1.5px solid #aeb9c9;
    border-radius: 16px;
    background: #ffffff;
}

.appia-pronote-preview img {
    display: block;
    width: 100%;
    max-height: 360px;
    object-fit: contain;
    background: #eef2f7;
}

.appia-pronote-preview-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
}

.appia-pronote-preview-actions > span {
    min-width: 0;
    overflow: hidden;
    color: #354156;
    font-size: .90rem;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.appia-pronote-remove {
    flex: 0 0 auto;
    min-height: 40px;
    padding: 0 14px;
    font-size: .90rem;
}

.appia-pronote-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 14px;
}

.appia-pronote-status {
    color: #465268;
    font-size: .94rem;
    font-weight: 650;
}

.appia-pronote-status.success {
    color: #146c43;
}

.appia-pronote-status.error {
    color: #b42318;
}

.appia-pronote-privacy {
    margin-top: 13px;
    padding: 10px 12px;
    border-radius: 11px;
    background: #edf2f7;
    color: #465268;
    font-size: .88rem;
    line-height: 1.45;
}

@media (max-width: 720px) {
    .appia-pronote-dropzone {
        flex-direction: column;
        text-align: center;
    }

    .appia-pronote-actions,
    .appia-pronote-preview-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .appia-pronote-actions .appia-secondary-btn,
    .appia-pronote-remove {
        width: 100%;
    }
}
