/* Police officielle de l'État : Marianne (fichiers dans assets/fonts/) */
@font-face {
    font-family: "Marianne";
    src: url("../fonts/Marianne-Light.woff2") format("woff2");
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Marianne";
    src: url("../fonts/Marianne-Regular.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Marianne";
    src: url("../fonts/Marianne-Medium.woff2") format("woff2");
    font-weight: 500 600;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Marianne";
    src: url("../fonts/Marianne-Bold.woff2") format("woff2");
    font-weight: 700 900;
    font-style: normal;
    font-display: swap;
}

:root {
    --blue: #000091;
    --ink: #161616;
    --muted: #666;
    --line: #ddd;
    --font: "Marianne", Arial, Helvetica, sans-serif;
}

* {
    box-sizing: border-box
}

body {
    margin: 0;
    color: var(--ink);
    font: 16px/1.5 "Marianne", Arial, Helvetica, sans-serif;
    background: #fff
}

button,
input {
    font: inherit
}

a {
    color: var(--blue);
    text-decoration: underline;
    text-underline-offset: 2px
}

header {
    height: 92px;
    border-bottom: 1px solid #e5e5e5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px max(24px, calc((100% - 1060px)/2))
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #222;
    text-decoration: none;
    font-size: 14px;
    letter-spacing: .04em
}

.brand b {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    background: var(--blue);
    color: white
}

.tag {
    border: 1px solid #c8c8f0;
    color: var(--blue);
    font-size: 9px;
    font-weight: bold;
    letter-spacing: .07em;
    padding: 6px 9px
}

main {
    padding: 44px 20px 70px
}

.panel {
    width: min(500px, 100%);
    margin: auto;
    background: #f6f6f6;
    padding: 42px 48px
}

.panel h1 {
    font-size: 21px;
    line-height: 1.3;
    margin: 0 0 12px
}

.intro {
    font-size: 14px;
    color: #555;
    margin-bottom: 25px
}

.notice {
    background: white;
    border-left: 4px solid var(--blue);
    padding: 10px 13px;
    font-size: 12px;
    margin-bottom: 25px
}

.identity {
    border-top: 1px solid var(--line);
    padding-top: 25px
}

.identity h2,
.panel h2 {
    font-size: 19px;
    margin: 0 0 13px
}

.identity p {
    font-size: 13px;
    color: #555
}

.primary,
.outline {
    min-height: 43px;
    padding: 9px 18px;
    border: 1px solid var(--blue);
    cursor: pointer;
    font-weight: 600
}

.primary {
    background: var(--blue);
    color: white
}

.primary:hover {
    background: #00006b
}

.outline {
    background: transparent;
    color: var(--blue)
}

.identity .primary {
    min-width: 175px;
    display: block;
    margin-bottom: 9px
}

.identity>a {
    font-size: 14px
}

.divider {
    display: flex;
    align-items: center;
    gap: 13px;
    margin: 27px 0;
    color: #333;
    font-size: 13px;
    font-weight: bold
}

.divider:before,
.divider:after {
    content: "";
    height: 1px;
    background: var(--line);
    flex: 1
}

.muted {
    color: #777;
    font-size: 13px
}

.panel form h2 {
    margin-bottom: 18px
}

.panel form>.muted {
    margin-bottom: 20px
}

.panel form>label,
.passhead>label:first-child {
    display: block;
    font-size: 14px;
    margin-bottom: 2px
}

.panel form>small {
    display: block;
    color: #777;
    font-size: 11px;
    margin-bottom: 7px
}

.panel input[type=email],
.panel input[type=password],
.panel input[type=text] {
    width: 100%;
    height: 46px;
    border: 0;
    border-bottom: 2px solid #333;
    border-radius: 0;
    background: #eee;
    padding: 9px 11px;
    margin-bottom: 18px;
    outline: none
}

.panel input:focus {
    border-bottom-color: var(--blue)
}

.passhead {
    display: flex;
    align-items: center;
    justify-content: space-between
}

.show {
    font-size: 13px
}

.show input {
    accent-color: var(--blue)
}

.forgot {
    display: block;
    margin: -8px 0 22px;
    font-size: 14px
}

.submit {
    width: 100%
}

.feedback {
    background: white;
    border: 1px solid #ddd;
    padding: 11px;
    font-size: 13px
}

.create {
    border-top: 1px solid var(--line);
    margin-top: 23px;
    padding-top: 21px
}

.create h2 {
    font-size: 18px
}

.create .outline {
    width: 100%
}

.footnote {
    font-size: 11px;
    color: #777;
    margin-top: 22px
}

.history-link {
    display: inline-block;
    margin-top: 15px;
    font-size: 13px
}

footer {
    border-top: 2px solid var(--blue);
    padding: 25px max(24px, calc((100% - 1010px)/2)) 20px;
    color: #555;
    font-size: 12px
}

.foot-top {
    display: flex;
    justify-content: space-between;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--line)
}

.partners {
    padding: 18px 0;
    border-bottom: 1px solid var(--line)
}

.partners span {
    display: inline-block;
    border: 1px solid var(--line);
    padding: 8px 14px;
    margin-left: 12px
}

nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 16px 0
}

nav a,
nav button {
    font-size: 11px;
    color: #555;
    text-decoration: none;
    border: 0;
    border-right: 1px solid var(--line);
    padding: 0 10px;
    background: none;
    cursor: pointer
}

.backdrop {
    position: fixed;
    inset: 0;
    z-index: 5;
    background: #0001;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 14px
}

.backdrop[hidden] {
    display: none
}

.cookie {
    width: min(585px, 100%);
    max-height: 82vh;
    overflow: auto;
    background: white;
    padding: 28px 30px;
    box-shadow: 0 4px 22px #0002;
    border: 1px solid #eee
}

.cookie h2 {
    font-size: 23px;
    margin: 0 0 30px
}

.cookie p {
    font-size: 16px;
    line-height: 1.65;
    margin-bottom: 24px
}

.cookie-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px
}

.cookie-actions button {
    min-width: 150px
}

.history {
    max-width: 1120px;
    margin: auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 285px;
    gap: 30px;
    padding: 35px 28px 65px
}

.history h1 {
    font-size: 24px
}

.result {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 22px;
    border: 1px solid var(--line);
    padding: 15px;
    margin: 20px 0
}

.art {
    min-height: 200px;
    background: #e7f0f5;
    display: grid;
    place-items: center
}

.art i {
    font-style: normal;
    font-size: 44px;
    color: #18753c;
    background: white;
    border-radius: 50%;
    width: 75px;
    height: 75px;
    display: grid;
    place-items: center
}

.result small {
    font-size: 11px;
    background: #eee;
    padding: 5px 8px
}

.result h2 {
    font-size: 20px;
    margin: 14px 0 8px
}

.result p {
    font-size: 13px;
    color: #555
}

.result button {
    font-size: 13px
}

.exam {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr auto 18px;
    gap: 10px;
    text-align: left;
    align-items: center;
    padding: 13px 10px;
    background: white;
    border: 0;
    border-top: 1px solid var(--line);
    cursor: pointer;
    font-size: 13px
}

.exam span small {
    display: inline-block;
    margin-left: 18px;
    color: #666
}

.exam em {
    font-style: normal
}

.bad {
    color: #ce0500;
    font-size: 10px
}

.good {
    color: #18753c;
    font-size: 10px
}

.detail {
    display: none;
    grid-column: 1/-1;
    color: #666
}

.exam.open .detail {
    display: block
}

.exam.open em {
    transform: rotate(180deg)
}

aside {
    border: 1px solid var(--line);
    padding: 18px;
    height: max-content
}

aside h2 {
    font-size: 16px
}

dt {
    font-size: 11px;
    color: #666;
    margin-top: 12px
}

dd {
    font-size: 12px;
    margin: 2px 0;
    overflow-wrap: anywhere
}

aside button {
    width: 100%;
    font-size: 12px
}

aside hr {
    border: 0;
    border-top: 1px solid var(--line);
    margin: 20px 0
}

aside a {
    font-size: 12px
}

@media(max-width:760px) {
    header {
        height: 68px;
        padding: 12px 16px
    }

    .tag {
        font-size: 8px
    }

    main {
        padding: 0 0 38px
    }

    .panel {
        padding: 28px 24px
    }

    .cookie {
        padding: 24px 22px
    }

    .cookie-actions button {
        flex: 1 1 calc(50% - 10px);
        min-width: 0
    }

    .cookie-actions button:last-child {
        flex-basis: 100%
    }

    .foot-top {
        display: block
    }

    .foot-top span {
        display: block;
        margin-top: 8px
    }

    .history {
        display: block;
        padding: 25px 16px 45px
    }

    .history h1 {
        font-size: 21px
    }

    .result {
        grid-template-columns: 1fr;
        padding: 10px;
        gap: 14px
    }

    .art {
        min-height: 150px
    }

    .exam {
        grid-template-columns: 1fr auto 15px
    }

    .exam span small {
        display: block;
        margin: 3px 0 0
    }

    aside {
        margin-top: 25px
    }
}

@media(max-width:380px) {
    .panel {
        padding-left: 17px;
        padding-right: 17px
    }

    .cookie-actions button {
        flex-basis: 100%
    }
}

/* Extensions espace connecté — identité visuelle initiale conservée */
.admin-wrap {
    max-width: 1060px;
    margin: 38px auto;
    padding: 0 22px
}

.admin-title {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 22px
}

.admin-title h1 {
    font-size: 23px;
    margin: 0 0 7px
}

.admin-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px
}

.admin-card {
    background: #f6f6f6;
    padding: 24px;
    border: 1px solid #e5e5e5;
    margin-bottom: 20px
}

.admin-card h2 {
    font-size: 19px;
    margin: 0 0 15px
}

.admin-card h3 {
    font-size: 15px;
    margin: 20px 0 8px
}

.admin-card label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin: 12px 0 5px
}

.admin-card input,
.admin-card select,
.admin-card textarea {
    width: 100%;
    padding: 10px 11px;
    border: 1px solid #c9c9c9;
    background: #fff;
    font: 14px Arial, sans-serif;
    border-radius: 0
}

.admin-card textarea {
    min-height: 75px
}

.admin-card .primary,
.admin-card .outline {
    margin-top: 12px
}

.admin-card .grid-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 14px
}

.admin-card .wide {
    grid-column: 1/-1
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    font-size: 13px
}

.admin-table th,
.admin-table td {
    padding: 11px 10px;
    text-align: left;
    border-bottom: 1px solid #ddd;
    vertical-align: top
}

.admin-table th {
    background: #eee;
    font-weight: 600
}

.admin-actions {
    display: flex;
    gap: 7px;
    flex-wrap: wrap
}

.admin-actions form {
    display: inline
}

.btn-small {
    font-size: 11px;
    padding: 6px 9px;
    min-height: 0
}

.flash-success {
    padding: 11px 13px;
    background: #edf7ef;
    border: 1px solid #c9e6d0;
    color: #176b35;
    font-size: 13px;
    margin: 0 0 16px
}

.flash-error {
    padding: 11px 13px;
    background: #fff0ef;
    border: 1px solid #f0c6c3;
    color: #a12620;
    font-size: 13px;
    margin: 0 0 16px
}

.criteria-item {
    display: grid;
    grid-template-columns: 1.1fr 1.5fr 90px 90px 1.5fr 32px;
    gap: 8px;
    align-items: end;
    padding: 9px 0;
    border-bottom: 1px solid #eee
}

.criteria-item label {
    font-size: 11px;
    margin: 0 0 4px
}

.criteria-item input {
    padding: 8px 7px;
    font-size: 12px
}

.remove-criterion {
    border: 0;
    background: #fcebea;
    color: #a12620;
    height: 34px;
    cursor: pointer
}

.exam-accordion {
    border: 1px solid #ddd;
    margin: 13px 0;
    background: #fff
}

.exam-toggle {
    display: grid;
    grid-template-columns: 1fr auto 24px;
    align-items: center;
    gap: 12px;
    width: 100%;
    border: 0;
    text-align: left;
    padding: 12px 14px;
    background: #f0edff;
    cursor: pointer;
    font: 13px Arial, sans-serif
}

.exam-toggle .exam-type {
    font-weight: 600;
    color: #30236d
}

.exam-toggle .exam-date {
    color: #555;
    margin-left: 14px;
    font-size: 12px
}

.result-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    border: 1px solid currentColor;
    background: #fff
}

.result-label:before {
    content: "";
    width: 8px;
    height: 8px;
    background: currentColor;
    display: inline-block
}

.result-label.good {
    color: #18753c
}

.result-label.bad {
    color: #ce0500
}

.result-label.pending {
    color: #000091
}

.exam-arrow {
    font-size: 17px;
    color: #333;
    transition: transform .15s
}

.exam-toggle[aria-expanded="true"] .exam-arrow {
    transform: rotate(180deg)
}

.exam-detail {
    display: none;
    padding: 17px 16px 19px;
    border-top: 1px solid #ddd
}

.exam-detail.open {
    display: block
}

.exam-meta {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding: 12px;
    background: #f7f7f7;
    margin-bottom: 17px
}

.exam-meta div {
    font-size: 12px
}

.exam-meta strong {
    display: block;
    color: #555;
    font-size: 10px;
    text-transform: uppercase;
    margin-bottom: 3px
}

.detail-heading {
    font-size: 16px;
    margin: 18px 0 10px
}

.skill-group {
    margin: 14px 0
}

.skill-group h4 {
    font-size: 13px;
    margin: 0;
    background: #f1f1f1;
    padding: 8px 10px
}

.skill-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px
}

.skill-table th,
.skill-table td {
    padding: 8px 10px;
    border-bottom: 1px solid #e4e4e4;
    text-align: left
}

.skill-table th {
    background: #f8f8f8;
    font-weight: 600
}

.skill-table tr:nth-child(even) td {
    background: #fafafa
}

.exam-final {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 14px;
    margin-top: 17px;
    background: #f9e4e8;
    border: 1px solid #f0c5ce;
    font-size: 13px;
    font-weight: 700
}

.exam-final .good-text {
    color: #18753c
}

.exam-final .bad-text {
    color: #ce0500
}

.observation-box {
    display: flex;
    gap: 10px;
    border: 1px solid #d8c5b9;
    margin-top: 12px;
    padding: 12px;
    background: #fff
}

.observation-icon {
    background: #a83b00;
    color: #fff;
    font-weight: bold;
    padding: 4px 8px;
    height: max-content
}

.observation-box strong {
    font-size: 12px
}

.observation-box p {
    font-size: 12px;
    margin: 4px 0 0;
    color: #555
}

.client-layout {
    max-width: 1120px;
    margin: 0 auto;
    padding: 30px 26px 65px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 285px;
    gap: 28px
}

.client-main h1 {
    font-size: 23px;
    margin: 0 0 20px
}

@media(max-width:760px) {
    .admin-wrap {
        margin: 22px auto;
        padding: 0 15px
    }

    .admin-grid {
        grid-template-columns: 1fr
    }

    .admin-title {
        display: block
    }

    .admin-title .primary {
        margin-top: 12px
    }

    .admin-card {
        padding: 17px;
        overflow-x: auto
    }

    .admin-card .grid-fields {
        grid-template-columns: 1fr
    }

    .criteria-item {
        grid-template-columns: 1fr 1fr
    }

    .criteria-item .remove-criterion {
        grid-column: 1/-1
    }

    .admin-table {
        min-width: 650px
    }

    .exam-meta {
        grid-template-columns: 1fr 1fr
    }

    .client-layout {
        display: block;
        padding: 22px 15px 45px
    }

    .profile-side {
        margin-top: 24px
    }

    .exam-toggle {
        grid-template-columns: 1fr auto 18px;
        gap: 7px
    }

    .exam-toggle .exam-date {
        display: block;
        margin: 3px 0 0
    }
}

.feedback {
    background: #fff;
    border: 1px solid #ddd;
    padding: 10px 12px;
    font-size: 13px;
    margin: 0 0 14px
}

.cookie[hidden] {
    display: none
}
/* Correction forcée de la taille des logos */
header.portal-header .portal-logos {
    display: flex !important;
    align-items: center !important;
    gap: 15px !important;
}

header.portal-header .portal-logos img {
    width: 150px !important;
    height: 80px !important;
    
    min-width: 0 !important;
    object-fit: contain !important;
    display: block !important;
    flex: 0 0 auto !important;
}

.image-demo-button {
    width: 200px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background:  #01048C;
    border: 2px solid #082D70;
    border-radius: 0px;
    padding: 8px 15px;
    cursor: pointer;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.image-demo-button img {
    max-width: 170%;
    max-height: 170%;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* Seul le bouton bleu brille */
.image-demo-button:hover {
    background: #0000FF;
}

.demo-verification {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-height: 55px;
    padding: 12px;
    margin: 20px 0;
    border: 1px solid #ddd;
    background: #fff;
    font-size: 13px;
}

.demo-spinner {
    width: 20px;
    height: 20px;
    border: 3px dotted #2acf3d;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.demo-verification.success .demo-spinner {
    animation: none;
    border: none;
    width: 22px;
    height: 22px;
    background: #299e59;
    position: relative;
    border-radius: 50%;
}

.demo-verification.success .demo-spinner::after {
    content: "✓";
    color: white;
    position: absolute;
    left: 5px;
    top: 0;
    font-size: 16px;
    font-weight: bold;
}

/* FOOTER GLOBAL */

.site-footer {
    width: 100%;
    margin-top: 45px;
    padding: 25px max(24px, calc((100% - 1010px) / 2)) 20px;
    border-top: 2px solid #000091;
    background: #fff;
    color: #555;
    font-family: "Marianne", Arial, Helvetica, sans-serif;
    font-size: 12px;
    box-sizing: border-box;
}

/* PREMIÈRE LIGNE */

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    padding-bottom: 25px;
    border-bottom: 1px solid #ddd;
}

.footer-brand img {
    width: 110px;
    height: 75px;
    object-fit: contain;
    display: block;
}

.footer-information {
    text-align: right;
}

.footer-information p {
    margin: 0 0 15px;
    font-size: 12px;
}

.footer-official-links {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-official-links a {
    color: #444;
    text-decoration: none;
    font-size: 11px;
}

.footer-official-links a:hover {
    text-decoration: underline;
}

/* PARTENAIRES */

.footer-partners {
    padding: 18px 0;
    border-bottom: 1px solid #ddd;
}

.footer-partners > p {
    margin: 0 0 15px;
}

.partner-logos {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.partner-item {
    width: 115px;
    height: 65px;
    border: 1px solid #ddd;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 8px;
    box-sizing: border-box;
}

.partner-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}


/* NAVIGATION DU BAS */

.footer-bottom {
    padding-top: 15px;
}

.footer-navigation {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    padding: 0 0 15px;
}

.footer-navigation a {
    color: #555;
    text-decoration: none;
    font-size: 11px;
}

.footer-navigation a:hover {
    text-decoration: underline;
}

.footer-copyright {
    margin: 0;
    color: #777;
    font-size: 10px;
}

/* VERSION MOBILE */

@media (max-width: 760px) {

    .site-footer {
        padding: 22px 16px;
    }

    .footer-top {
        display: block;
    }

    .footer-brand {
        margin-bottom: 20px;
    }

    .footer-information {
        text-align: left;
    }

    .footer-official-links {
        justify-content: flex-start;
        gap: 12px;
    }

    .partner-logos {
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .footer-navigation {
        gap: 12px;
    }
}
