:root {
    --orange-800: #B8510A;
    --orange-700: #CC5E0A;
    --orange-600: #E8721A;
    --orange-500: #F58420;
    --orange-400: #FF9A35;
    --orange-100: #FDECD5;
    --orange-50:  #FEF6EC;
    --amber-500: #FFC629;
    --amber-400: #FFD35A;
    --amber-100: #FFF3CC;
    --amber-50:  #FFFBF0;
    --magenta-800: #8A0D47;
    --magenta-700: #A50F55;
    --magenta-600: #C21268;
    --magenta-500: #DC1782;
    --magenta-100: #FBDAED;
    --teal-600: #009E9A;
    --teal-100: #CCEFEE;
    --teal-50:  #E8F7F7;
    --text-dark: #1A1F2E;
    --text-body: #374151;
    --text-muted: #6B7280;
    --white: #ffffff;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--amber-50);
    display: flex;
    flex-direction: column;
    font-family: system-ui, -apple-system, sans-serif;
    min-height: 100vh;
}

a{
    cursor: pointer;
    text-decoration: none;
    color: var(--orange-600);
}
a:active, button:active {
    left: 1px;
    position: relative;
    top:1px;
}
p {
    padding: 10px;
}

/* Layout */
.layout {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

.notyf svg{
    vertical-align : middle;
    font-size: 1.4em;
}

/* Sidebar */
.sidebar {
    background: linear-gradient(180deg, var(--amber-500) 0%, var(--orange-500) 45%, var(--orange-700) 100%);
    display: flex;
    height: 100vh;
    flex-direction: column;
    flex-shrink: 0;
    min-height: 100vh;
    overflow-y: auto;
    position: sticky;
    top: 0;
    width: 240px;
}

.sidebar-brand {
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    padding: 28px 20px 24px;
}

.sidebar-brand h2 {
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-align: center;
}

.sidebar-brand h2 img {
    width: 100px;
}

.sidebar-brand p {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.75rem;
    margin-top: 3px;
    text-align: center;
}

.sidebar-nav-main {
    padding: 12px 0;
    flex: 1;
    overflow-y: auto;
    min-height: 240px;
}

.sidebar-nav {
    padding: 12px 0;
}

.nav-item, .contacts {
    align-items: center;
    display: flex;
    gap: 11px;
    padding: 11px 20px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    border-left: 3px solid transparent;
    transition: color 0.15s, background-color 0.15s, border-color 0.15s;
}

.nav-item:hover,
.nav-item.active {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.1);
    border-left-color: var(--amber-400);
}

.nav-item svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* Sidebar mobile controls */
.sidebar-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: var(--text-dark);
    cursor: pointer;
    flex-shrink: 0;
    margin-right: 12px;
    transition: background-color 0.15s;
}

.sidebar-toggle:hover {
    background-color: #f1f5f9;
}

.sidebar-toggle svg {
    width: 22px;
    height: 22px;
}

.sidebar-close {
    display: none;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    cursor: pointer;
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 1;
    transition: background-color 0.15s;
}

.sidebar-close:active {
    position: absolute;
    top: 16px;
    right: 16px;
    left: auto;
}

.sidebar-close:hover {
    background: rgba(255, 255, 255, 0.28);
}

.sidebar-close svg {
    width: 16px;
    height: 16px;
}

.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background-color: rgba(26, 31, 46, 0.5);
    z-index: 45;
}

.sidebar-overlay.is-open {
    display: block;
}

/* Main wrapper */
.main-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: auto;
    min-width: 0;
}

.topbar {
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
    padding: 18px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 10;
}

.topbar h1 {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-dark);
}

.content {
    padding: 32px;
    flex: 1;
}

.content-slider {
    width: 60%;
    margin: 0 auto 60px auto;
    border-radius: 12px;
    height: 320px;
}



.content-slider .swiper, .banner {
    margin-bottom: 40px;
    border-radius: 20px;
}

.content-slider .swiper img, .banner img {
    width: 100%;
    height: 300px;
    object-fit: contain;
    padding: 10px;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.07);
    transition: box-shadow 0.15s, transform 0.15s;
}

/* Category filters */
.filter-bar {
    display: flex;
    gap: 8px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

hr{
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.filter-btn {
    padding: 6px 18px;
    border-radius: 9999px;
    border: 1px solid #cbd5e1;
    background: #fff;
    color: #475569;
    font-size: 0.83rem;
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
    transition: border-color 0.15s, background-color 0.15s, color 0.15s;
}

.filter-btn:hover {
    border-color: var(--magenta-600);
    color: var(--magenta-600);
}

.filter-btn.active {
    background-color: var(--magenta-600);
    border-color: var(--magenta-600);
    color: #fff;
}

/* Quick access to laboratories / months */
#access-laboratory,
#access-month {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 28px;
    font-size: 0.83rem;
    font-weight: 600;
    color: #475569;
}

#access-laboratory a,
#access-month a {
    padding: 6px 18px;
    border-radius: 9999px;
    border: 1px solid #cbd5e1;
    background: #fff;
    color: #475569;
    font-size: 0.83rem;
    font-weight: 500;
    text-decoration: none;
    transition: border-color 0.15s, background-color 0.15s, color 0.15s;
}

#access-laboratory a:hover,
#access-month a:hover {
    border-color: var(--magenta-600);
    color: var(--magenta-600);
}

/* News grid */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}
/*
.news-grid.home{
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
} */

.news-labo-title,
.news-month-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e293b;
    margin: 32px 0 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--orange-100);
}

.news-labo-title:first-of-type,
.news-month-title:first-of-type {
    margin-top: 0;
}

.news-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.07);
    transition: box-shadow 0.15s, transform 0.15s;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.news-card-img {
    width: 100%;
   height: 150px;
    background-color: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;

    color: #94a3b8;
    font-size: 0.8rem;
    flex-shrink: 0;
    overflow: hidden;
}

.news-card-img img {
    width: 50%;
}

.news-card-img.partner{
    background-color: var(--orange-100);
}
.news-card-img.partner img{
    object-fit: contain;
    max-width: 180px;
    max-height: 80%;
}

.news-card-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.news-card-tag {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 9999px;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 10px;
    width: fit-content;
    vertical-align: middle;
}

.tag-communication {
    background: #dbeafe;
    color: #1d4ed8;
}

.tag-partenaires {
    background: #d1fae5;
    color: #065f46;
}

.tag-services {
    background: #ede9fe;
    color: #6d28d9;
}

.news-card-title {
    font-size: 0.93rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 8px;
    line-height: 1.4;
}

.news-card-excerpt, .news-card-excerpt div {
    font-size: 0.82rem;
    color: #64748b;
    line-height: 1.55;
    flex: 1;
    margin-bottom: 14px;
    min-height: 40px;
}

.news-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.77rem;
    color: #94a3b8;
    border-top: 1px solid #f1f5f9;
    padding-top: 10px;
}

.news-card-link {
    color: var(--orange-600);
    font-weight: 600;
    text-decoration: none;
    font-size: 0.82rem;
}

.news-card-link:hover {
    text-decoration: underline;
}

/* News back link */
.news-back-link {
    color: var(--orange-600);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
}

.news-back-link:hover {
    text-decoration: underline;
}

/* News article detail */
.news-article {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.07);
    padding: 32px;
    max-width: 860px;
    margin: 0 auto;
}

.news-article-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.news-article-date {
    font-size: 0.82rem;
    color: #64748b;
    font-weight: 500;
}

.news-article-meta .news-card-tag {
    margin-bottom: 0;
}

.actuality-logo {
    margin: 24px 0;
    text-align: center;
}

.actuality-logo img {
    max-width: 100%;
    max-height: 320px;
    width: auto;
    height: auto;
    border-radius: 8px;
    object-fit: contain;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.news-article-body {
    font-size: 0.95rem;
    color: #334155;
    line-height: 1.75;
    margin-bottom: 20px;
}

.news-article-body:last-of-type {
    margin-bottom: 0;
}

/* Documents section */
.news-article-docs {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #e2e8f0;
}

.intro{
    padding: 20px;
}

.news-article-docs-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 14px;
}

.news-article-docs-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.news-doc-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    background-color: var(--magenta-600);
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    width: fit-content;
    transition: background-color 0.15s;
}

.news-doc-btn:hover {
    background-color: var(--magenta-800);
}

.news-doc-btn svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* Profile / account page */
.account-layout {
    display: flex;
    align-items: flex-start;
    gap: 24px;
}

.profile-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.07);
    padding: 40px;
    max-width: 560px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 9999px;
    background-color: var(--orange-600);
    color: #fff;
    font-size: 1.6rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 0.04em;
    flex-shrink: 0;
}

.profile-info {
    text-align: center;
}

.profile-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 6px;
}

.profile-role {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 9999px;
    background-color: var(--orange-100);
    color: var(--orange-700);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.profile-details {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
}

.profile-detail-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px;
    gap: 16px;
    border-bottom: 1px solid #f1f5f9;
}

.profile-detail-row:last-child {
    border-bottom: none;
}

.profile-detail-row dt {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #64748b;
    white-space: nowrap;
    min-width: 155px;
}

.profile-detail-row dt svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.profile-detail-row dd {
    font-size: 0.875rem;
    color: #1e293b;
    text-align: right;
}

.profile-actions {
    display: flex;
    gap: 12px;
    width: 100%;
    flex-wrap: wrap;
}

.profile-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: background-color 0.15s, border-color 0.15s;
    white-space: nowrap;
}

.profile-btn svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.profile-btn--primary {
    background-color: var(--magenta-600);
    color: #fff;
}

.profile-btn--primary:hover {
    background-color: var(--magenta-800);
}

.profile-btn--secondary {
    background-color: #fff;
    color: var(--magenta-600);
    border: 1px solid var(--magenta-600);
}

.profile-btn--secondary:hover {
    background-color: var(--magenta-100);
}

/* Right column */
.account-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Documents block */
.docs-card {
    flex: 1;
    max-width: 100%;
    align-items: stretch;
}

.docs-item-empty {
    padding: 16px 12px;
    color: #94a3b8;
    font-size: 0.875rem;
    text-align: center;
}

.docs-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding-bottom: 16px;
    border-bottom: 1px solid #e2e8f0;
}

.docs-card-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-dark);
}

.docs-card-title svg {
    width: 18px;
    height: 18px;
    color: var(--orange-600);
}

.docs-count {
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748b;
    background: #f1f5f9;
    padding: 2px 10px;
    border-radius: 9999px;
}

.docs-list {
    list-style: none;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.docs-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 8px;
    transition: background-color 0.15s;
}

.docs-item:hover {
    background-color: #f8fafc;
}

.docs-item-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.docs-item-icon svg {
    width: 18px;
    height: 18px;
}

.docs-item-icon--pdf {
    background-color: #fee2e2;
    color: #dc2626;
}

.docs-item-icon--doc {
    background-color: #dbeafe;
    color: #1d4ed8;
}

.docs-item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.docs-item-name {
    font-size: 0.875rem;
    font-weight: 500;
    color: #1e293b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.docs-item-meta {
    font-size: 0.75rem;
    color: #94a3b8;
}

.docs-item-dl {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    color: #64748b;
    text-decoration: none;
    flex-shrink: 0;
    transition: background-color 0.15s, color 0.15s;
}

.docs-item-dl:hover {
    background-color: var(--orange-100);
    color: var(--orange-600);
}

.docs-item-dl svg {
    width: 16px;
    height: 16px;
}

.docs-upload-btn {
    width: 100%;
    flex: unset;
    margin-top: auto;
}

/* Navigation card */
.account-nav-card {
    padding: 20px 24px;
}

.account-nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
}

.account-nav-text {
    display: flex;
    align-items: center;
    gap: 14px;
}

.account-nav-text svg {
    width: 28px;
    height: 28px;
    color: var(--orange-600);
    flex-shrink: 0;
}

.account-nav-text strong {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 2px;
}

.account-nav-text span {
    font-size: 0.8rem;
    color: #64748b;
}

.account-nav-btn {
    flex: unset;
    white-space: nowrap;
    gap: 6px;
}

.account-nav-btn svg {
    width: 14px;
    height: 14px;
}

/* Page article — interested CTA */
.news-article-interested {
    margin-top: 32px;
    padding-top: 24px;
    display: flex;
    justify-content: center;
}

.news-article-cta {
    display: inline-flex;
    align-items: center;
    border:0;
    gap: 8px;
    cursor: pointer;
    padding: 10px 28px;
    background-color: var(--magenta-600);
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background-color 0.15s;
}

.news-article-cta.register {
    background-color: var(--orange-400);
}
.news-article-cta.register:hover {
    background-color: var(--orange-600);
}

.news-article-cta:hover {
    background-color: var(--magenta-800);
}

.user, .contacts{
    border-top: 1px solid rgba(255, 255, 255, 0.10);
}


/* Partner quick-access filter */
.filter-partner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 24px;
}

.filter-partner label {
    font-size: 0.83rem;
    font-weight: 600;
    color: #475569;
    white-space: nowrap;
}

.filter-partner select {
    padding: 7px 12px;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    background: #fff;
    color: #1e293b;
    font-size: 0.83rem;
    font-weight: 500;
    cursor: pointer;
    transition: border-color 0.15s, box-shadow 0.15s;
    outline: none;
    min-width: 220px;
    height: 40px;
}

.filter-partner select:hover {
    border-color: var(--orange-500);
}

.filter-partner select:focus {
    border-color: var(--orange-500);
    box-shadow: 0 0 0 3px rgba(245, 132, 32, 0.14);
}

/* Partner card actions */
.partner-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: auto;
    padding: 12px 8px 0 8px;
    border-top: 1px solid #f1f5f9;
    min-height:100px

}

.news-card .partner-actions + .news-card-footer {
    border-top: none;
    padding-top: 8px;
}



/* Account update form */
.account-form-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.07);
    padding: 32px 40px;
    max-width: 700px;
    margin: 0 auto;
}

.form-section-title {
    font-size: 0.75rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 28px 0 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid #f1f5f9;
}

.form-section-title:first-of-type {
    margin-top: 0;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 24px;
}

.account-form-card label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: #475569;
    margin-bottom: 5px;
}

.account-form-card input,
.account-form-card select,
.account-form-card textarea {
    width: 100%;
    padding: 9px 13px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 0.875rem;
    color: #1e293b;
    background: #fff;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
    margin-bottom: 16px;
    font-family: inherit;
}

.account-form-card input:focus,
.account-form-card select:focus,
.account-form-card textarea:focus {
    border-color: var(--orange-500);
    box-shadow: 0 0 0 3px rgba(245, 132, 32, 0.14);
}

.account-form-card ul.errors,
.account-form-card .form-error {
    list-style: none;
    font-size: 0.78rem;
    color: #dc2626;
    margin-top: -12px;
    margin-bottom: 10px;
}

.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 8px;
    padding-top: 24px;
    border-top: 1px solid #e2e8f0;
}

.form-actions button {
    cursor: pointer;
    border: none;
    font-family: inherit;
}

/* Change password info banner */
.password-info {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: var(--orange-50);
    border: 1px solid var(--orange-100);
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 24px;
    font-size: 0.85rem;
    color: var(--orange-800);
    line-height: 1.5;
}

.password-info svg {
    width: 20px;
    height: 20px;
    color: var(--orange-600);
    flex-shrink: 0;
    margin-top: 2px;
}

.password-info p {
    margin: 0;
}

/* Version footer */
.version {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 10px 20px;
    border-top: 1px solid #e2e8f0;
    background-color: #fff;
    font-size: 0.68rem;
    color: var(--text-muted);
    letter-spacing: 0.02em;
    flex-shrink: 0;
}

.version p {
    padding: 0;
}

.login-wrapper {

    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
    background-color: var(--amber-50);
}

.login-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    padding: 48px 40px;
    width: 100%;
    max-width: 520px;
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.login-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.login-logo img {
    width: 120px;
}

.login-logo span {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--orange-600);
}

.login-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
}

.login-error {
    width: 100%;
    padding: 12px 16px;
    background-color: #fee2e2;
    color: #b91c1c;
    border-radius: 8px;
    font-size: 0.875rem;
}

.login-info {
    width: 100%;
    padding: 12px 16px;
    background-color: var(--amber-100);
    color: var(--orange-700);
    border-radius: 8px;
    font-size: 0.875rem;
}

.login-info a {
    color: var(--orange-700);
    font-weight: 600;
}

.login-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.login-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.login-field label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #475569;
}

.login-field input {
    padding: 10px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 0.9rem;
    color: var(--text-dark);
    background: #f8fafc;
    transition: border-color 0.15s, box-shadow 0.15s;
    outline: none;
    width: 100%;
}

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

.login-field input:focus {
    border-color: var(--orange-500);
    box-shadow: 0 0 0 3px rgba(245, 132, 32, 0.15);
    background: #fff;
}

.login-btn {
    margin-top: 4px;
    padding: 12px;
    background-color: var(--magenta-600);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.15s;
    width: 100%;
}

.login-btn:hover {
    background-color: var(--magenta-800);
}

/* Registration popover */
#registration {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.14);
    border: none;
    padding: 0;
    width: 100%;
    max-width: 520px;
    margin: auto;
    overflow: hidden;
}


#registration::backdrop {
    background-color: rgba(26, 31, 46, 0.5);
    backdrop-filter: blur(2px);
}

.popover-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 28px;
    border-bottom: 1px solid #e2e8f0;
    background: linear-gradient(135deg, var(--magenta-600) 0%, var(--magenta-800) 100%);
}

.popover-title {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
}

.popover-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: none;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    cursor: pointer;
    transition: background-color 0.15s;
    flex-shrink: 0;
}

.popover-close:hover {
    background: rgba(255, 255, 255, 0.28);
}

.popover-close svg {
    width: 18px;
    height: 18px;
}

.popover-body {
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.popover-event-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dark);
    background: var(--amber-50);
    border: 1px solid var(--amber-100);
    border-radius: 8px;
    padding: 10px 16px;
}

.popover-user-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px 16px;
}

.popover-user-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: #475569;
}

.popover-user-row svg {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
    color: var(--orange-500);
}

.popover-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.popover-form-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.popover-form-field label {
    font-size: 0.82rem;
    font-weight: 600;
    color: #475569;
}

.popover-form-field input,
.popover-form-field textarea {
    width: 100%;
    padding: 9px 13px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 0.875rem;
    color: #1e293b;
    background: #fff;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
    font-family: inherit;
    resize: vertical;
}

.popover-form-field input:focus,
.popover-form-field textarea:focus {
    border-color: var(--orange-500);
    box-shadow: 0 0 0 3px rgba(245, 132, 32, 0.14);
}

.popover-form-field ul {
    list-style: none;
    font-size: 0.78rem;
    color: #dc2626;
}

.popover-form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    padding-top: 4px;
}

.popover-btn-cancel {
    padding: 9px 20px;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    background: #fff;
    color: #475569;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
    transition: background-color 0.15s, border-color 0.15s;
}

.popover-btn-cancel:hover {
    background: #f1f5f9;
    border-color: #94a3b8;
}

.popover-btn-submit {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 20px;
    border-radius: 8px;
    border: none;
    background-color: var(--magenta-600);
    color: #fff;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: background-color 0.15s;
}

.popover-btn-submit:hover {
    background-color: var(--magenta-800);
}

.popover-btn-submit svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* Collection membres */
.popover-members {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.popover-members-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.popover-members-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: #475569;
}

.member-add-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 12px;
    border-radius: 6px;
    border: 1px dashed var(--orange-400);
    background: var(--orange-50);
    color: var(--orange-700);
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: background-color 0.15s, border-color 0.15s;
}

.member-add-btn:hover {
    background: var(--orange-100);
    border-color: var(--orange-600);
}

.member-item {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 8px;
    align-items: end;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 10px 12px;
}

.member-item label {
    font-size: 0.78rem;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 4px;
    display: block;
}

.member-item input {
    width: 100%;
    padding: 7px 10px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 0.82rem;
    color: #1e293b;
    background: #fff;
    outline: none;
    transition: border-color 0.15s;
    font-family: inherit;
}

.member-item input:focus {
    border-color: var(--orange-500);
    box-shadow: 0 0 0 2px rgba(245, 132, 32, 0.12);
}

.member-remove-btn {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    border: 1px solid #fca5a5;
    background: #fef2f2;
    color: #dc2626;
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background-color 0.15s;
    margin-bottom: 1px;
}

.member-remove-btn:hover {
    background: #fee2e2;
}

/* SweetAlert2 */
:root {
    --swal2-backdrop: rgba(26, 31, 46, 0.5);
}

.swal2-popup {
    --swal2-width: 420px;
    --swal2-border-radius: 16px;
    --swal2-padding: 0 0 28px;
    --swal2-title-padding: 24px 28px 0;
    --swal2-html-container-padding: 12px 28px 0;
    --swal2-color: var(--text-dark);
    --swal2-confirm-button-background-color: var(--magenta-600);
    --swal2-confirm-button-border-radius: 8px;
    --swal2-cancel-button-background-color: #fff;
    --swal2-cancel-button-color: #475569;
    --swal2-cancel-button-border-radius: 8px;
    --swal2-actions-margin: 20px 28px 0;
    --swal2-input-border: 1px solid #cbd5e1;
    --swal2-input-border-radius: 8px;
    --swal2-input-box-shadow: none;
    --swal2-input-focus-border: 1px solid var(--orange-500);
    --swal2-input-focus-box-shadow: 0 0 0 3px rgba(245, 132, 32, 0.15);
    --swal2-validation-message-background: #fef2f2;
    --swal2-validation-message-color: #dc2626;
    font-family: inherit;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.14);
}

.swal2-title {
    font-size: 1.05rem;
    font-weight: 700;
}

.swal2-html-container {
    font-size: 0.9rem;
    color: #475569;
}

.swal2-cancel {
    border: 1px solid #cbd5e1 !important;
    font-weight: 500 !important;
}

.swal2-confirm {
    font-weight: 600 !important;
}

.swal2-icon.swal2-warning {
    border-color: var(--orange-400) !important;
    color: var(--orange-500) !important;
}

.swal2-icon.swal2-success [class^='swal2-success-line'] {
    background-color: var(--magenta-600) !important;
}

.swal2-icon.swal2-success .swal2-success-ring {
    border-color: var(--magenta-100) !important;
}

.swal2-timer-progress-bar {
    background: var(--orange-500) !important;
}

/* ==========================================================================
   Mobile / tablet layout (espace pro)
   ========================================================================== */
@media (max-width: 900px) {
    .sidebar-toggle,
    .sidebar-close {
        display: inline-flex;
    }

    .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        z-index: 50;
        width: 100%;
        transform: translateX(-100%);
        box-shadow: 4px 0 24px rgba(0, 0, 0, 0.25);
        transition: transform 0.25s ease;
    }

    .sidebar.is-open {
        transform: translateX(0);
    }

    body.sidebar-locked {
        overflow: hidden;
    }

    .topbar {
        padding: 14px 16px;
    }

    .topbar h1 {
        font-size: 1rem;
    }

    .content {
        padding: 16px;
    }

    .content-slider {
        width: 100%;
    }

    .nav-item, .contacts {
        padding: 16px 24px;
        font-size: 1.05rem;
        gap: 16px;
    }

    .nav-item svg {
        width: 24px;
        height: 24px;
    }

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

    .account-layout {
        flex-direction: column;
    }

    .profile-card {
        max-width: 100%;
        padding: 28px 20px;
    }

    .account-form-card {
        padding: 24px 20px;
    }

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

    .member-item {
        grid-template-columns: 1fr;
    }

    .news-article {
        padding: 20px;
    }

    .filter-partner {
        flex-direction: column;
        align-items: stretch;
    }

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

    .profile-detail-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .profile-detail-row dd {
        text-align: left;
    }

    .account-nav-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .account-nav-btn {
        width: 100%;
        justify-content: center;
    }

    .popover-body {
        padding: 20px;
    }

    .popover-form-actions {
        flex-direction: column-reverse;
    }

    .popover-form-actions button {
        width: 100%;
        justify-content: center;
    }

    .swal2-popup {
        --swal2-width: 92vw;
    }

    .version {
        flex-direction: column;
        gap: 4px;
        padding: 10px;
        text-align: center;
    }
}
