:root{
    --blue:#073b78;
    --blue2:#075ed1;
    --green:#23a943;
    --green2:#58b735;
    --orange:#ed781b;
    --purple:#792fc1;
    --text:#173052;
    --muted:#5c6c82;
    --line:#e2e8f0;
    --soft:#f6f9fc;
}

*{
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{
    margin:0;
    font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;
    color:var(--text);
    background:#fff;
}

a{
    color:inherit;
}

.container{
    width:min(1440px,92%);
    margin:auto;
}

header{
    background:#fff;
    border-bottom:1px solid var(--line);
    position:sticky;
    top:0;
    z-index:50;
    box-shadow:0 2px 10px rgba(7,59,120,.06);
}

.nav{
    min-height:100px;
    display:flex;
    align-items:center;
    gap:35px;
}

.brand{
    display:flex;
    align-items:center;
    text-decoration:none;
    min-width:390px;
}

.brand img{
    width:75px;
    height:82px;
    margin-right:14px;
}

.brand-name{
    font-size:34px;
    font-weight:800;
    letter-spacing:-1px;
    color:var(--blue);
}

.brand-name span{
    color:var(--green2);
}

.brand-tag{
    font-size:13px;
    color:var(--muted);
    margin-top:3px;
}

.menu{
    display:flex;
    align-items:center;
    gap:30px;
    margin-left:auto;
}

.menu a{
    text-decoration:none;
    font-weight:600;
    font-size:15px;
}

.actions{
    display:flex;
    gap:14px;
}

.btn{
    display:inline-block;
    text-decoration:none;
    border-radius:9px;
    padding:14px 25px;
    font-weight:700;
    border:2px solid transparent;
}

.btn-green{
    background:var(--green);
    color:#fff;
}

.btn-blue-outline{
    border-color:#0873e8;
    color:#075ed1;
    background:#fff;
}

.btn-white{
    background:#fff;
    color:var(--blue2);
}

.hero{
    background:
        linear-gradient(90deg,#f7fbff 0%,#f7fbff 45%,rgba(247,251,255,.10) 67%),
        url("/assets/img/enfants-hero.png") right center/55% 100% no-repeat;
    min-height:465px;
    display:flex;
    align-items:center;
}

.hero-content{
    width:57%;
    padding:55px 0;
}

.hero h1{
    font-size:52px;
    line-height:1.08;
    letter-spacing:-1.5px;
    margin:0 0 8px;
    color:var(--blue);
}

.hero h1 span{
    display:block;
    color:#5b6778;
    font-weight:400;
    font-size:43px;
}

.hero p{
    font-size:19px;
    line-height:1.55;
    color:#435675;
    max-width:680px;
}

.hero-buttons{
    display:flex;
    gap:18px;
    margin-top:28px;
}

.hero-buttons .btn{
    min-width:220px;
    text-align:center;
    font-size:18px;
}

.features{
    padding:28px 0;
}

.feature-grid{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:18px;
}

.card{
    border:1px solid var(--line);
    border-radius:14px;
    background:#fff;
    padding:24px;
    display:flex;
    align-items:center;
    gap:18px;
    box-shadow:0 5px 18px rgba(20,45,80,.06);
}

.icon{
    width:68px;
    height:68px;
    min-width:68px;
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:30px;
    font-weight:800;
}

.blue{background:#dceeff;color:#0873e8}
.green{background:#e0f6e4;color:#15933a}
.orange{background:#ffead7;color:#e36c0a}
.purple{background:#eee0fa;color:#792fc1}

.card h3{
    margin:0 0 5px;
    font-size:19px;
    color:var(--blue);
}

.card p{
    margin:0;
    line-height:1.45;
    color:var(--muted);
}

.regulation{
    padding:0 0 32px;
}

.regulation-box{
    border-radius:12px;
    background:#f1f9f6;
    padding:24px 30px;
    display:flex;
    align-items:center;
    gap:25px;
}

.regulation-box .doc{
    font-size:42px;
    color:var(--green);
}

.regulation-text{
    flex:1;
}

.regulation-text h2{
    font-size:21px;
    margin:0 0 6px;
    color:var(--blue);
}

.regulation-text p{
    margin:0;
    line-height:1.5;
    color:var(--muted);
}

.regulation-box .btn{
    border:1px solid var(--green);
    color:#147c30;
    min-width:285px;
    text-align:center;
}

.content{
    padding:55px 0 70px;
    max-width:950px;
}

.content h1{
    color:var(--blue);
    font-size:40px;
}

.content h2{
    color:var(--blue);
    margin-top:35px;
}

.content p,
.content li{
    line-height:1.7;
    color:#4d5e75;
}

.notice{
    background:#fff8df;
    border:1px solid #f1d878;
    border-radius:10px;
    padding:16px 20px;
    margin:25px 0;
}

footer{
    border-top:1px solid var(--line);
    padding:28px 0;
    background:#fff;
}

.footer{
    display:grid;
    grid-template-columns:1fr 2fr 1fr;
    gap:25px;
    align-items:center;
}

.footer-brand{
    display:flex;
    align-items:center;
}

.footer-brand img{
    width:55px;
    margin-right:10px;
}

.footer-brand strong{
    font-size:24px;
    color:var(--blue);
}

.footer-brand strong span{
    color:var(--green2);
}

.footer-links{
    text-align:center;
    font-size:14px;
}

.footer-links a{
    color:var(--blue);
    text-decoration:none;
    margin:0 8px;
}

.copyright{
    text-align:center;
    color:var(--muted);
    font-size:13px;
    margin-top:12px;
}

.footer-message{
    text-align:right;
    font-size:14px;
    font-weight:700;
    color:var(--blue);
}

@media(max-width:1050px){
    .nav{
        flex-wrap:wrap;
        padding:12px 0;
    }

    .brand{
        min-width:0;
    }

    .menu{
        order:3;
        width:100%;
        justify-content:center;
        padding-bottom:8px;
    }

    .hero{
        background:
            linear-gradient(rgba(247,251,255,.88),rgba(247,251,255,.88)),
            url("/assets/img/enfants-hero.png") center/cover no-repeat;
    }

    .hero-content{
        width:100%;
    }

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

    .footer{
        grid-template-columns:1fr;
        text-align:center;
    }

    .footer-brand{
        justify-content:center;
    }

    .footer-message{
        text-align:center;
    }
}

@media(max-width:650px){
    .brand-name{
        font-size:26px;
    }

    .brand-tag{
        display:none;
    }

    .brand img{
        width:55px;
        height:60px;
    }

    .actions{
        margin-left:auto;
    }

    .actions .btn{
        padding:10px 12px;
        font-size:13px;
    }

    .menu{
        gap:15px;
        overflow:auto;
        justify-content:flex-start;
    }

    .hero{
        min-height:0;
    }

    .hero h1{
        font-size:37px;
    }

    .hero h1 span{
        font-size:29px;
        margin-top:7px;
    }

    .hero-content{
        padding:42px 0;
    }

    .hero-buttons{
        flex-direction:column;
    }

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

    .regulation-box{
        flex-direction:column;
        align-items:flex-start;
    }

    .regulation-box .btn{
        min-width:0;
        width:100%;
    }
}

/* =========================================================
   HONORABILITES.FR — HEADER PAGES INTERIEURES
   ========================================================= */

.inner-header{
    width:100%;
    background:#fff;
    border-bottom:1px solid var(--line);
    box-shadow:0 2px 10px rgba(7,59,120,.06);
    margin:0 0 30px 0;
}

.inner-header-container{
    width:min(1100px,92%);
    min-height:88px;
    margin:0 auto;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:20px;
}

.inner-brand{
    display:flex;
    align-items:center;
    gap:12px;
    text-decoration:none;
}

.inner-brand img{
    display:block;
    width:58px;
    height:64px;
    object-fit:contain;
}

.inner-brand-text{
    display:flex;
    flex-direction:column;
}

.inner-brand-name{
    color:var(--blue);
    font-size:27px;
    font-weight:800;
    line-height:1;
    letter-spacing:-.6px;
}

.inner-brand-name span{
    color:var(--green2);
}

.inner-brand-tag{
    color:var(--muted);
    font-size:12px;
    margin-top:6px;
}

.home-link{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:9px;
    padding:11px 16px;
    border:1px solid #d7e1ec;
    border-radius:9px;
    background:#fff;
    color:var(--blue);
    text-decoration:none;
    font-weight:700;
    white-space:nowrap;
}

.home-link:hover{
    background:#f4f8fc;
    border-color:#aabdd1;
}

.home-icon{
    width:20px;
    height:20px;
    display:block;
}

@media(max-width:650px){

    .inner-header{
        margin-bottom:22px;
    }

    .inner-header-container{
        min-height:72px;
    }

    .inner-brand img{
        width:43px;
        height:48px;
    }

    .inner-brand-name{
        font-size:22px;
    }

    .inner-brand-tag{
        display:none;
    }

    .home-link{
        padding:9px 11px;
    }

    .home-label{
        display:none;
    }
}

/* ==========================================================
   HONORABILITES.FR — ADMINISTRATION
   ========================================================== */

.admin-shell {
    width: min(1180px, calc(100% - 32px));
    margin: 32px auto 70px;
}

.admin-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    padding: 10px;
    margin-bottom: 28px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
}

.admin-nav a,
.admin-nav button {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 9px 14px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: #17324d;
    font: inherit;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.admin-nav a:hover,
.admin-nav button:hover,
.admin-nav a.active {
    background: #eef6f2;
}

.admin-nav a.active {
    color: #176b4d;
}

.admin-nav-logout {
    margin-left: auto;
}

.admin-heading {
    margin: 0 0 28px;
}

.admin-heading h1 {
    margin-bottom: 7px;
}

.admin-eyebrow {
    margin: 0 0 5px;
    color: #176b4d;
    font-size: .82rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.admin-organization,
.admin-muted {
    color: #64748b;
}

.admin-card {
    margin: 0 0 22px;
    padding: 24px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(15, 23, 42, .04);
}

.admin-card h2 {
    margin-top: 0;
}

.admin-section-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 18px;
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
}

.dashboard-stats > div {
    padding: 18px;
    background: #f8fafc;
    border-radius: 12px;
}

.dashboard-stats strong {
    display: block;
    margin-bottom: 4px;
    color: #17324d;
    font-size: 1.8rem;
}

.dashboard-stats span {
    color: #64748b;
    font-size: .9rem;
}

.admin-filter {
    display: flex;
    align-items: end;
    gap: 10px;
    flex-wrap: wrap;
    margin: 0 0 20px;
}

.admin-filter label {
    width: 100%;
    font-weight: 700;
}

.admin-filter select {
    min-width: 240px;
    padding: 10px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #fff;
}

.admin-table-wrap {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th,
.admin-table td {
    padding: 14px 12px;
    border-bottom: 1px solid #e2e8f0;
    text-align: left;
    vertical-align: middle;
}

.admin-table th {
    color: #475569;
    font-size: .82rem;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.status-badge {
    display: inline-block;
    padding: 5px 9px;
    border-radius: 999px;
    background: #eef6f2;
    color: #176b4d;
    font-size: .84rem;
    font-weight: 700;
    white-space: nowrap;
}

.button-primary,
.button-secondary,
.button-small {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    border-radius: 9px;
    font-weight: 700;
    text-decoration: none;
}

.button-primary {
    padding: 11px 17px;
    background: #176b4d;
    color: #fff;
}

.button-secondary {
    padding: 10px 15px;
    border: 1px solid #cbd5e1;
    background: #fff;
    color: #17324d;
}

.button-small {
    padding: 7px 11px;
    background: #17324d;
    color: #fff;
}

.admin-empty {
    padding: 22px;
    background: #f8fafc;
    border-radius: 10px;
    color: #64748b;
    text-align: center;
}

.organization-list {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

@media (max-width: 900px) {
    .dashboard-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .admin-section-heading {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 600px) {
    .admin-shell {
        width: min(100% - 20px, 1180px);
        margin-top: 18px;
    }

    .admin-card {
        padding: 17px;
    }

    .dashboard-stats {
        grid-template-columns: 1fr;
    }

    .admin-nav-logout {
        margin-left: 0;
    }

    .admin-filter select {
        width: 100%;
        min-width: 0;
    }
}

/* ==========================================================
   HONORABILITES.FR — URLS LONGUES
   Empêche les liens publics avec slug de déformer la page.
   ========================================================== */

a {
    overflow-wrap: anywhere;
}

code,
.public-url,
.public-link,
.url-display {
    overflow-wrap: anywhere;
    word-break: break-word;
    max-width: 100%;
}

/*
 * Les éléments flex/grid contenant une URL doivent pouvoir
 * rétrécir au lieu de forcer une colonne très étroite.
 */
.admin-card,
.admin-shell,
main,
section,
article {
    min-width: 0;
}


/* ==========================================================
   HONORABILITES.FR — NORMALISATION ADMIN V2
   ========================================================== */

.admin-shell > .admin-card {
    margin-bottom: 24px;
}

.admin-shell .admin-card {
    display: block;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.admin-shell .admin-card p {
    line-height: 1.55;
}

.admin-shell form {
    max-width: 100%;
}

.admin-shell .field {
    margin-bottom: 18px;
}

.admin-shell .field label {
    display: block;
    margin-bottom: 6px;
    font-weight: 700;
    color: #17324d;
}

.admin-shell .field input,
.admin-shell .field select,
.admin-shell .field textarea {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.public-link-url {
    display: block;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 14px 16px;
    background: #f6f8fa;
    border: 1px solid #e2e8f0;
    border-radius: 9px;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.public-link-url a {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.public-link-qr {
    margin-top: 28px;
}

.public-link-qr img {
    display: block;
    max-width: 100%;
    height: auto;
}

.public-link-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 26px;
}

.public-link-actions form {
    margin: 0;
}


/* ==========================================================
   HONORABILITES.FR — INFORMATION COOKIES NECESSAIRES
   ========================================================== */

.cookie-notice {
    position: fixed;
    left: 18px;
    right: 18px;
    bottom: 18px;
    z-index: 10000;

    max-width: 920px;
    margin: 0 auto;

    background: #ffffff;
    color: #17324d;

    border: 1px solid #d7e1ec;
    border-radius: 12px;

    box-shadow:
        0 8px 30px rgba(15, 35, 55, .16);

    padding: 16px 18px;

    display: flex;
    align-items: center;
    gap: 18px;
}

.cookie-notice-text {
    flex: 1;
    min-width: 0;
    line-height: 1.45;
    font-size: 14px;
}

.cookie-notice-text strong {
    display: block;
    margin-bottom: 3px;
}

.cookie-notice-text a {
    color: #176b4d;
    font-weight: 700;
}

.cookie-notice-close {
    flex: 0 0 auto;

    border: 0;
    border-radius: 8px;

    padding: 10px 15px;

    background: #176b4d;
    color: #fff;

    font: inherit;
    font-weight: 700;

    cursor: pointer;
}

.cookie-notice-close:hover {
    filter: brightness(.95);
}

@media (max-width: 650px) {

    .cookie-notice {
        left: 10px;
        right: 10px;
        bottom: 10px;

        align-items: stretch;
        flex-direction: column;

        gap: 12px;
    }

    .cookie-notice-close {
        width: 100%;
    }

    .public-link-actions {
        flex-direction: column;
    }

    .public-link-actions form,
    .public-link-actions button {
        width: 100%;
    }
}


/* HONORABILITES-DANGER-ZONE */
.danger-zone {
    margin-top: 32px;
    border-color: #b42318;
}

.danger-zone h2 {
    margin-top: 0;
}

.danger-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 18px;
    border: 1px solid #b42318;
    border-radius: 8px;
    background: #fff;
    color: #b42318;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.danger-button:hover,
.danger-button:focus-visible {
    background: #b42318;
    color: #fff;
}

/* HONORABILITES-DEPOSIT-PAGE */

.deposit-page {
    min-height: 100vh;
    background: #f5f7f8;
}

.deposit-shell {
    width: min(720px, calc(100% - 32px));
    margin: 48px auto;
}

.deposit-card {
    display: block;
    padding: 32px;
}

.deposit-card h1 {
    margin: 0 0 16px;
    font-size: clamp(1.65rem, 4vw, 2.15rem);
    line-height: 1.15;
}

.deposit-card > p {
    margin: 0 0 24px;
    line-height: 1.6;
}

.deposit-card form {
    margin-top: 28px;
}

.deposit-card label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
}

.deposit-card input[type="file"] {
    width: 100%;
    padding: 14px;
    border: 1px solid #d6dce1;
    border-radius: 10px;
    background: #fff;
    font: inherit;
}

.deposit-card button[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 11px 20px;
    border: 0;
    border-radius: 9px;
    background: #173f67;
    color: #fff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.deposit-card button[type="submit"]:hover,
.deposit-card button[type="submit"]:focus-visible {
    filter: brightness(.92);
}

@media (max-width: 640px) {
    .deposit-shell {
        margin: 24px auto;
    }

    .deposit-card {
        padding: 22px;
    }

    .deposit-card button[type="submit"] {
        width: 100%;
    }
}

/* HONORABILITES-COLLABORATOR-FILE */

.collaborator-file-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin: 28px 0 24px;
}

.collaborator-file-heading h1 {
    margin: 10px 0 4px;
}

.collaborator-file-name {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
}

.collaborator-file-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.admin-action-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 9px 14px;
    border: 1px solid #d6dce1;
    border-radius: 9px;
    background: #fff;
    color: #173f67;
    font-weight: 700;
    text-decoration: none;
}

.admin-action-link:hover,
.admin-action-link:focus-visible {
    background: #f3f6f8;
}

.admin-action-primary {
    border-color: #173f67;
    background: #173f67;
    color: #fff;
}

.admin-action-primary:hover,
.admin-action-primary:focus-visible {
    background: #102f4e;
    color: #fff;
}

.collaborator-summary {
    margin-bottom: 22px;
}

.collaborator-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.collaborator-summary-grid > div {
    min-width: 0;
}

.summary-label {
    display: block;
    margin-bottom: 5px;
    color: #68737d;
    font-size: .84rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .03em;
}

.collaborator-summary-grid strong {
    overflow-wrap: anywhere;
}

.section-heading-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}

.section-heading-row h2 {
    margin: 0 0 5px;
}

.section-heading-row p {
    margin: 0;
}

.count-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    min-height: 34px;
    padding: 5px 10px;
    border-radius: 999px;
    background: #edf2f5;
    color: #173f67;
    font-weight: 800;
}

.collaborator-documents-table td {
    vertical-align: middle;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 5px 9px;
    border-radius: 999px;
    background: #edf2f5;
    font-size: .86rem;
    font-weight: 800;
    white-space: nowrap;
}

.status-verified {
    background: #e7f6ed;
    color: #17663a;
}

.status-pending,
.status-manual_review {
    background: #fff4d8;
    color: #805c00;
}

.status-invalid {
    background: #fdebea;
    color: #a1261c;
}

.table-action {
    font-weight: 700;
    white-space: nowrap;
}

.empty-state {
    padding: 28px;
    border: 1px dashed #ccd4da;
    border-radius: 10px;
    background: #fafbfc;
    color: #68737d;
    text-align: center;
}

.history-list {
    margin-top: 6px;
}

.history-item {
    position: relative;
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr);
    gap: 12px;
    padding: 0 0 22px;
}

.history-item:not(:last-child)::before {
    content: "";
    position: absolute;
    top: 15px;
    bottom: 0;
    left: 5px;
    width: 2px;
    background: #e1e6ea;
}

.history-marker {
    position: relative;
    z-index: 1;
    width: 12px;
    height: 12px;
    margin-top: 4px;
    border: 3px solid #fff;
    border-radius: 50%;
    background: #39745a;
    box-shadow: 0 0 0 1px #39745a;
}

.history-title {
    font-weight: 800;
}

.history-meta {
    margin-top: 3px;
    color: #68737d;
    font-size: .9rem;
}

@media (max-width: 800px) {
    .collaborator-file-heading {
        align-items: stretch;
        flex-direction: column;
    }

    .collaborator-file-actions {
        justify-content: flex-start;
    }

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

@media (max-width: 520px) {
    .collaborator-summary-grid {
        grid-template-columns: 1fr;
    }

    .collaborator-file-actions {
        flex-direction: column;
    }

    .admin-action-link {
        width: 100%;
    }
}

/* =========================================================
   HONORABILITES-PRIVATE-HEADER-V1
   ========================================================= */

.private-header .inner-header-container{
    width:min(1240px,94%);
}

.private-header-context{
    margin-left:auto;
    display:flex;
    align-items:center;
    justify-content:flex-end;
    gap:22px;
    min-width:0;
}

.private-header-organization{
    display:flex;
    align-items:center;
    gap:10px;
    min-width:0;
}

.organization-logo{
    width:42px;
    height:42px;
    flex:0 0 42px;
    border-radius:9px;
    object-fit:contain;
    background:#fff;
    border:1px solid #e2e8f0;
    padding:3px;
}

.private-header-organization-name{
    color:#17324d;
    font-weight:800;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
    max-width:260px;
}

.private-header-account{
    display:flex;
    align-items:center;
    gap:12px;
    padding-left:20px;
    border-left:1px solid #dce5ee;
}

.private-header-user{
    color:#475569;
    font-size:.92rem;
    font-weight:700;
    white-space:nowrap;
}

.private-header-logout{
    margin:0;
}

.private-header-logout-button{
    appearance:none;
    border:1px solid #d7e1ec;
    border-radius:9px;
    padding:9px 13px;
    background:#fff;
    color:#17324d;
    font:inherit;
    font-size:.88rem;
    font-weight:700;
    cursor:pointer;
}

.private-header-logout-button:hover{
    background:#f4f8fc;
    border-color:#aabdd1;
}

@media(max-width:850px){

    .private-header-context{
        flex-direction:column;
        align-items:flex-end;
        gap:7px;
    }

    .private-header-account{
        padding-left:0;
        border-left:0;
    }

    .private-header-organization-name{
        max-width:190px;
    }
}

@media(max-width:650px){

    .private-header .inner-header-container{
        flex-direction:column;
        align-items:stretch;
    }

    .private-header-context{
        width:100%;
        align-items:stretch;
        padding-top:8px;
        border-top:1px solid #edf2f7;
    }

    .private-header-organization,
    .private-header-account{
        justify-content:space-between;
    }

    .private-header-organization-name{
        max-width:none;
        white-space:normal;
    }
}

/* HONORABILITES-ORGANIZATION-LOGO-V1 */

a.private-header-organization-name{
    text-decoration:none;
}

a.private-header-organization-name:hover{
    text-decoration:underline;
}

.organization-logo-card{
    max-width:850px;
}

.organization-logo-settings{
    display:grid;
    grid-template-columns:180px 1fr;
    gap:32px;
    align-items:start;
}

.organization-logo-preview{
    width:180px;
    height:180px;
    display:flex;
    align-items:center;
    justify-content:center;
    border:1px solid #dce5ee;
    border-radius:18px;
    background:#f8fafc;
    overflow:hidden;
}

.organization-logo-preview img{
    width:100%;
    height:100%;
    padding:18px;
    object-fit:contain;
}

.organization-logo-placeholder{
    width:100px;
    height:100px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:22px;
    background:#e8eef5;
    color:#17324d;
    font-size:2.4rem;
    font-weight:800;
}

.organization-logo-upload{
    display:flex;
    flex-direction:column;
    align-items:flex-start;
    gap:12px;
    margin-top:24px;
}

.organization-logo-upload input[type=file]{
    width:100%;
    max-width:500px;
}

.organization-logo-remove{
    margin-top:18px;
}

.form-success{
    margin-bottom:22px;
    padding:14px 16px;
    border:1px solid #b9dfc6;
    border-radius:10px;
    background:#edf8f1;
    color:#205b35;
    font-weight:700;
}

.form-error{
    margin-bottom:22px;
    padding:14px 16px;
    border:1px solid #efc0c0;
    border-radius:10px;
    background:#fff1f1;
    color:#8c2525;
    font-weight:700;
}

.form-help{
    color:#64748b;
    font-size:.92rem;
}

@media(max-width:650px){
    .organization-logo-settings{
        grid-template-columns:1fr;
    }

    .organization-logo-preview{
        width:140px;
        height:140px;
    }
}


/* =========================================================
   HONORABILITES.FR — LOGIN CENTERED V1
   ========================================================= */

.login-page{
    width:100%;
    min-height:calc(100vh - 119px);

    padding:45px 20px 80px;

    display:flex;
    justify-content:center;
    align-items:flex-start;

    background:#f6f9fc;
}

.login-card{
    width:100%;
    max-width:460px;

    padding:38px 40px 30px;

    background:#fff;

    border:1px solid #e2e8f0;
    border-radius:18px;

    box-shadow:0 12px 35px rgba(15,35,55,.08);
}

.login-heading{
    margin-bottom:30px;
    text-align:center;
}

.login-heading h1{
    margin:0 0 9px;

    color:var(--blue);

    font-size:32px;
    line-height:1.15;
}

.login-heading p{
    margin:0;

    color:var(--muted);

    font-size:15px;
    line-height:1.5;
}

.login-error{
    margin-bottom:24px;
    padding:13px 15px;

    border:1px solid #efc0c0;
    border-radius:9px;

    background:#fff1f1;
    color:#8c2525;

    font-size:14px;
    line-height:1.45;
}

.login-form{
    width:100%;
}

.login-field{
    margin-bottom:22px;
}

.login-field label{
    display:block;

    margin-bottom:7px;

    color:#17324d;

    font-size:14px;
    font-weight:700;
}

.login-field input{
    display:block;

    width:100%;
    min-height:48px;

    padding:11px 13px;

    border:1px solid #cbd5e1;
    border-radius:9px;

    background:#fff;
    color:#17324d;

    font:inherit;

    transition:
        border-color .15s ease,
        box-shadow .15s ease;
}

.login-field input::placeholder{
    color:#94a3b8;
}

.login-field input:focus{
    outline:none;

    border-color:#075ed1;

    box-shadow:0 0 0 3px rgba(7,94,209,.12);
}

.login-password-label{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:15px;
}

.login-password-label label{
    margin-bottom:7px;
}

.login-password-label a{
    margin-bottom:7px;

    color:#075ed1;

    font-size:13px;
    font-weight:600;
    text-decoration:none;
}

.login-password-label a:hover{
    text-decoration:underline;
}

.login-submit{
    width:100%;
    min-height:50px;

    margin-top:3px;

    border:0;
    border-radius:9px;

    background:var(--blue);
    color:#fff;

    font:inherit;
    font-size:16px;
    font-weight:700;

    cursor:pointer;

    transition:
        background .15s ease,
        transform .05s ease;
}

.login-submit:hover{
    background:#052f61;
}

.login-submit:active{
    transform:translateY(1px);
}

.login-security{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:7px;

    margin-top:25px;
    padding-top:21px;

    border-top:1px solid #edf2f7;

    color:#64748b;

    font-size:12px;
}

.login-security svg{
    width:17px;
    height:17px;

    color:#23a943;
}

@media(max-width:650px){

    .login-page{
        min-height:calc(100vh - 94px);
        padding:25px 14px 50px;
    }

    .login-card{
        padding:28px 22px 24px;
        border-radius:14px;
    }

    .login-heading{
        margin-bottom:25px;
    }

    .login-heading h1{
        font-size:28px;
    }

    .login-password-label{
        align-items:flex-start;
    }
}



/* ==========================================================
   Liste des collaborateurs
   ========================================================== */

.collab-toolbar {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.collab-count strong {
    color: #17324d;
}

.collab-filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 0 0 18px;
}

.collab-filters input[type="search"] {
    flex: 1 1 280px;
    padding: 10px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    background: #fff;
    font: inherit;
}

.collab-filters select {
    padding: 10px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    background: #fff;
    font: inherit;
}

.collab-table tbody tr:hover {
    background: #f8fafc;
}

.collab-table tbody tr[hidden] {
    display: none;
}

.collab-name {
    display: block;
    color: #17324d;
}

.collab-email,
.collab-detail {
    display: block;
    font-size: .86rem;
}

.collab-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: .82rem;
    font-weight: 700;
    white-space: nowrap;
    background: #eef2f7;
    color: #475569;
}

.collab-badge.is-ok {
    background: #e6f5ec;
    color: #176b4d;
}

.collab-badge.is-warn {
    background: #fff1e0;
    color: #a65a0a;
}

.collab-badge.is-bad {
    background: #fde8e8;
    color: #a52222;
}

.collab-badge.is-pending {
    background: #e8f0fb;
    color: #1d4f9c;
}

.collab-actions-head {
    text-align: right !important;
}

.collab-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.collab-actions form {
    margin: 0;
}

.button-compact {
    padding: 6px 11px;
    font-size: .92rem;
}

.collab-link {
    padding: 4px 6px;
    border: 0;
    background: none;
    color: #075ed1;
    font: inherit;
    font-size: .92rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}

.collab-link:hover {
    text-decoration: underline;
}

.collab-link-danger {
    color: #a52222;
}

@media (max-width: 760px) {
    .collab-actions {
        justify-content: flex-start;
    }
}

.request-flash.is-ok {
    border-color: #b7e0c8;
    background: #effaf3;
    color: #176b4d;
}

.request-flash.is-error {
    border-color: #f1c0c0;
    background: #fdf0f0;
    color: #a52222;
}

a.private-header-user {
    text-decoration: none;
}

a.private-header-user:hover .private-header-account-link {
    text-decoration: underline;
}

.private-header-account-link {
    margin-left: 6px;
    padding: 2px 8px;
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    color: #075ed1;
    font-size: .78rem;
    font-weight: 600;
}

.account-notice {
    border-color: #bcd3f5;
    background: #f1f7ff;
}

.method-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.method-list li {
    padding: 10px 0;
    border-bottom: 1px solid #e2e8f0;
}

.method-list li:last-child {
    border-bottom: 0;
}

/* Menu déroulant « Mon compte » */
.account-menu {
    position: relative;
}

.account-menu > summary {
    list-style: none;
    cursor: pointer;
}

.account-menu > summary::-webkit-details-marker {
    display: none;
}

.account-menu-panel {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    z-index: 50;
    min-width: 210px;
    padding: 6px;
    background: #fff;
    border: 1px solid #d7e1ec;
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(15, 23, 42, .14);
}

.account-menu-panel a {
    display: block;
    padding: 10px 12px;
    border-radius: 8px;
    color: #17324d;
    font-size: .95rem;
    font-weight: 600;
    text-decoration: none;
}

.account-menu-panel a:hover,
.account-menu-panel a[aria-current="page"] {
    background: #f1f5f9;
}
