﻿/* ===================== */
/* RESET GLOBAL */
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;500;700&family=Merriweather:wght@400;700;900&display=swap');

/* ===================== */
/* On evite les bugs de marges et tailles */
:root {
    --site-font-family: 'Merriweather', Georgia, serif;
    --site-heading-font-family: 'Oswald', Impact, sans-serif;
}

::selection {
    background: rgba(59, 130, 246, 0.28);
    color: #f8fafc;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ===================== */
/* BODY */
/* ===================== */
/* Fond + style general */
body {
    background: linear-gradient(rgba(15,23,42,0.9), rgba(2,6,23,0.98)),
                url("../images/background.jpg");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;

    color: white;
    font-family: var(--site-font-family);

    padding-top: 98px; /* espace pour la navbar */
    text-align: center;
}

body,
body :not(code):not(pre):not(kbd):not(samp) {
    font-family: var(--site-font-family) !important;
}

code,
pre,
kbd,
samp {
    font-family: Consolas, 'Courier New', monospace !important;
}

button,
input,
textarea,
select {
    font: inherit;
}

a,
button,
input,
textarea,
select {
    transition:
        background-color 0.22s ease,
        border-color 0.22s ease,
        box-shadow 0.22s ease,
        transform 0.22s ease,
        color 0.22s ease;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid rgba(125, 211, 252, 0.95);
    outline-offset: 2px;
}

/* ===================== */
/* IMAGES */
/* ===================== */
/* Important : ne plus forcer une taille globale */
img {
    max-width: 100%;
}

/* ===================== */
/* TITRES */
/* ===================== */
h1 {
    margin-bottom: 30px;
    font-size: 40px;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-family: var(--site-heading-font-family) !important;
}

h2,
h3,
h4,
h5,
h6,
.logo-nav {
    font-family: var(--site-heading-font-family) !important;
}

/* ===================== */
/* BOUTONS GENERAUX */
/* ===================== */
/* Pour tes pages (formations, infos etc) */
a:not(.nav-links a):not(.profile-dropdown a):not(.logo-nav):not(.auth-button-link):not(.notification-item):not(.notification-footer-link):not(.nav-icon-shortcut):not(.site-notification-toast-copy):not(.toast-action) {
    color: white;
    text-decoration: none;
    font-size: 18px;

    background: rgba(30, 41, 59, 0.8);
    padding: 12px 25px;
    border-radius: 12px;

    display: inline-block;
    min-width: 220px;

    transition: 0.3s;
}

a:not(.nav-links a):not(.profile-dropdown a):not(.logo-nav):not(.auth-button-link):not(.notification-item):not(.notification-footer-link):not(.nav-icon-shortcut):not(.site-notification-toast-copy):not(.toast-action):hover {
    background: #3b82f6;
    transform: scale(1.05);
}

a.back-link.site-back-link,
a.webmail-back-link.site-back-link,
a.hero-button.site-back-link,
a.hero-action.site-back-link,
a.auth-button-link.site-back-link {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    align-self: flex-start !important;
    width: min(180px, 100%) !important;
    min-width: 0 !important;
    max-width: 100%;
    min-height: 44px !important;
    margin: 0 auto 18px 0 !important;
    padding: 10px 18px !important;
    border-radius: 14px !important;
    border: 1px solid rgba(191, 219, 254, 0.32) !important;
    background:
        linear-gradient(180deg, rgba(73, 121, 215, 0.96), rgba(53, 101, 194, 0.98)) !important;
    color: #f8fafc !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    letter-spacing: 0.08em !important;
    line-height: 1 !important;
    text-transform: uppercase !important;
    text-decoration: none !important;
    text-align: center !important;
    white-space: nowrap;
    box-shadow:
        0 14px 30px rgba(15, 23, 42, 0.26),
        inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    transform: none !important;
}

a.back-link.site-back-link:hover,
a.webmail-back-link.site-back-link:hover,
a.hero-button.site-back-link:hover,
a.hero-action.site-back-link:hover,
a.auth-button-link.site-back-link:hover {
    background:
        linear-gradient(180deg, rgba(90, 141, 239, 0.98), rgba(63, 112, 209, 1)) !important;
    border-color: rgba(219, 234, 254, 0.46) !important;
    color: #ffffff !important;
    transform: translateY(-1px) !important;
    box-shadow:
        0 18px 34px rgba(15, 23, 42, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.14) !important;
}

/* ===================== */
/* NAVBAR */
/* ===================== */
.navbar {
    position: fixed;
    top: 18px;
    left: 0;
    width: 100%;
    padding: 0 18px;
    z-index: 1000;
    pointer-events: none;
}

.navbar-shell {
    width: min(1180px, 100%);
    margin: 0 auto;
    min-height: 68px;
    padding: 8px 8px 8px 14px;
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.14), transparent 34%),
        rgba(8, 15, 31, 0.82);
    backdrop-filter: blur(18px);
    box-shadow:
        0 18px 40px rgba(2, 6, 23, 0.32),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    pointer-events: auto;
    overflow: visible;
    transform: translateX(0);
    opacity: 1;
    transition: transform 0.48s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.28s ease, filter 0.28s ease;
}

.navbar.is-collapsed .navbar-shell {
    transform: translateX(calc(100% + 40px));
    opacity: 0;
    filter: blur(10px);
    pointer-events: none;
}

.navbar-collapse-toggle,
.navbar-expand-toggle {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    background:
        radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.18), transparent 38%),
        rgba(8, 15, 31, 0.9);
    backdrop-filter: blur(18px);
    box-shadow: 0 12px 24px rgba(2, 6, 23, 0.28);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
    transition: transform 0.3s ease, background 0.25s ease, border-color 0.25s ease;
}

.navbar-collapse-toggle:hover,
.navbar-expand-toggle:hover {
    transform: translateY(-1px);
    background:
        radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.24), transparent 38%),
        rgba(15, 23, 42, 0.95);
}

.navbar-collapse-arrow {
    width: 12px;
    height: 12px;
    border-top: 2px solid #f8fafc;
    border-right: 2px solid #f8fafc;
    transform: rotate(45deg) translate(-1px, 1px);
    transition: transform 0.35s ease;
}

.navbar[data-role="army"] .navbar-shell {
    box-shadow:
        0 18px 40px rgba(2, 6, 23, 0.32),
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        0 0 0 1px rgba(34, 197, 94, 0.08);
}

.navbar[data-role="marshals"] .navbar-shell {
    box-shadow:
        0 18px 40px rgba(2, 6, 23, 0.32),
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        0 0 0 1px rgba(245, 158, 11, 0.08);
}

.logo-nav {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #f8fafc;
    text-decoration: none;
    min-width: 0;
    height: 54px;
    width: 54px;
}

.logo-mark {
    width: 54px;
    height: 54px;
    object-fit: contain;
    filter: drop-shadow(0 12px 20px rgba(2, 6, 23, 0.3));
    transition: transform 0.25s ease, filter 0.25s ease;
}

.logo-nav:hover .logo-mark {
    transform: scale(1.04) rotate(-2deg);
    filter: drop-shadow(0 16px 24px rgba(2, 6, 23, 0.34));
}

/* ===================== */
/* NAV LINKS */
/* ===================== */
.nav-links {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    width: 100%;
    min-width: 0;
    transition: opacity 0.22s ease, transform 0.28s ease;
}

.navbar-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    width: auto;
    max-width: none;
    min-width: 0;
    min-height: 44px;
    margin-left: auto;
    justify-self: end;
}

.navbar-collapsed-panel {
    position: fixed;
    top: 18px;
    right: 18px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    width: auto;
    max-width: none;
    min-width: 104px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 22px;
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.12), transparent 34%),
        rgba(8, 15, 31, 0.88);
    backdrop-filter: blur(18px);
    box-shadow:
        0 18px 34px rgba(2, 6, 23, 0.32),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
    opacity: 0;
    visibility: hidden;
    transform: translateX(26px);
    pointer-events: none;
    z-index: 1200;
    transition: opacity 0.28s ease, transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.28s ease;
}

.navbar-collapsed-panel.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    pointer-events: auto;
}

.navbar-expand-arrow {
    width: 12px;
    height: 12px;
    border-top: 2px solid #f8fafc;
    border-right: 2px solid #f8fafc;
    transform: rotate(-135deg) translate(-1px, 1px);
}

.profile-menu-collapsed .profile-dropdown {
    right: 0;
}

.profile-menu-collapsed {
    width: auto;
    display: inline-flex;
    align-items: center;
    position: relative;
    flex: 0 0 auto;
}

.profile-menu-collapsed .profile-trigger {
    width: 44px;
    min-width: 44px;
    height: 44px;
    padding: 0;
    justify-content: center;
    border-radius: 16px;
    display: inline-flex;
    flex: 0 0 44px;
}

.profile-menu-collapsed .profile-pic {
    width: 36px;
    height: 36px;
    display: block;
}

.navbar-collapsed-panel .navbar-expand-toggle {
    flex: 0 0 44px;
}

/* Boutons navbar */
.nav-links a,
.dropbtn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 42px;
    padding: 0 14px;
    border-radius: 999px;
    min-width: 0;
    border: 1px solid transparent;
    background: rgba(148, 163, 184, 0.1);
    color: #e2e8f0;
    text-decoration: none;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    line-height: 1;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease, color 0.2s ease;
    cursor: pointer;
}

.nav-links a:hover,
.dropbtn:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.18);
    color: #ffffff;
    transform: translateY(-1px);
}

.nav-links a.is-active,
.dropbtn.is-active,
.nav-link-utility.is-active {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.24), rgba(239, 68, 68, 0.18));
    border-color: rgba(248, 113, 113, 0.18);
    color: #fff7ed;
}

.navbar[data-role="army"] .nav-links a.is-active,
.navbar[data-role="army"] .dropbtn.is-active,
.navbar[data-role="army"] .nav-link-utility.is-active {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.22), rgba(20, 184, 166, 0.18));
    border-color: rgba(45, 212, 191, 0.18);
    color: #ecfdf5;
}

/* ===================== */
/* DROPDOWN MENU */
/* ===================== */
.dropdown {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.dropbtn {
    margin: 0;
    appearance: none;
    -webkit-appearance: none;
    font-family: inherit !important;
    font-size: 13px;
    font-weight: inherit;
    vertical-align: middle;
}

.dropdown::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 8px;
}

.dropdown-content {
    display: block;
    position: absolute;
    top: calc(100% + 2px);
    left: 0;
    min-width: 180px;
    padding: 8px;
    background: rgba(8, 15, 31, 0.96);
    border-radius: 18px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    box-shadow: 0 18px 36px rgba(2, 6, 23, 0.35);
    z-index: 1200;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
    overflow: hidden;
}

.dropdown-content a {
    display: flex;
    justify-content: flex-start;
    padding: 10px 12px;
    border-radius: 12px;
    min-width: 0;
    background: transparent;
    color: #e2e8f0;
    text-decoration: none;
    font-size: 14px;
    font-family: var(--site-font-family) !important;
    text-transform: none;
    letter-spacing: 0.02em;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.dropdown-content a:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    transform: translateX(2px);
}

.dropdown:hover .dropdown-content,
.dropdown:focus-within .dropdown-content,
.dropdown.is-open .dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

/* ===================== */
/* MENU PROFIL */
/* ===================== */
.profile-menu {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    z-index: 1200;
    min-height: 44px;
}

.notification-menu {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    z-index: 1250;
    min-height: 44px;
}

.notification-menu::after {
    content: "";
    position: absolute;
    top: 100%;
    right: 0;
    width: 44px;
    height: 8px;
}

.notification-trigger {
    position: relative;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    background: rgba(148, 163, 184, 0.12);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.notification-trigger:hover {
    transform: translateY(-1px);
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.12);
}

.notification-icon {
    width: 19px;
    height: 19px;
    object-fit: contain;
}

.nav-trigger-label {
    display: none;
}

.notification-count {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: #ef4444;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 14px rgba(239, 68, 68, 0.35);
}

.notification-dropdown {
    display: block;
    position: absolute;
    top: calc(100% + 2px);
    right: 0;
    width: min(340px, 80vw);
    padding: 10px;
    background: rgba(8, 15, 31, 0.96);
    border-radius: 18px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    box-shadow: 0 18px 36px rgba(2, 6, 23, 0.35);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
    overflow: hidden;
    z-index: 1200;
}

.notification-menu.is-open .notification-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.notification-dropdown-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 10px 12px 12px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
    margin-bottom: 8px;
}

.notification-dropdown-header strong {
    color: #f8fafc;
    font-size: 14px;
}

.notification-dropdown-header span {
    color: #94a3b8;
    font-size: 12px;
}

.notification-list {
    display: grid;
    gap: 8px;
}

.notification-item {
    display: grid !important;
    grid-template-columns: 28px minmax(0, 1fr) !important;
    gap: 10px !important;
    align-items: flex-start !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: auto !important;
    height: auto !important;
    padding: 12px !important;
    border-radius: 16px !important;
    background: rgba(255, 255, 255, 0.04) !important;
    margin: 0 !important;
    color: #e2e8f0 !important;
    text-decoration: none !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    line-height: normal !important;
    white-space: normal !important;
    word-break: break-word !important;
    transform: none !important;
    transition: background 0.2s ease !important;
}

.notification-item:hover {
    background: rgba(255, 255, 255, 0.08) !important;
    transform: none !important;
}

.notification-item-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
    margin-top: 4px;
    flex: 0 0 auto;
}

.notification-item-copy {
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
    min-width: 0 !important;
}

.notification-item-title {
    display: block;
    margin: 0 !important;
    color: #f8fafc;
    font-family: var(--site-font-family) !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
    letter-spacing: 0.05em !important;
    text-transform: uppercase !important;
    white-space: normal !important;
    overflow-wrap: anywhere;
}

.notification-item-text {
    display: block;
    margin: 0 !important;
    color: #94a3b8;
    font-size: 12px !important;
    line-height: 1.45 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    white-space: normal !important;
    overflow-wrap: anywhere;
}

.notification-empty {
    padding: 12px;
    color: #94a3b8;
    font-size: 13px;
}

.notification-footer-link {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    margin-top: 8px;
    padding: 11px 12px !important;
    border-top: 1px solid rgba(148, 163, 184, 0.12);
    color: #dbeafe !important;
    text-decoration: none !important;
    font-size: 12px !important;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    text-align: center;
}

.notification-footer-link:hover {
    color: #ffffff;
}

.profile-menu::after {
    content: "";
    position: absolute;
    top: 100%;
    right: 0;
    width: 44px;
    height: 8px;
}

.profile-trigger {
    position: relative;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(148, 163, 184, 0.2);
    background: rgba(148, 163, 184, 0.12);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.profile-trigger:hover {
    transform: translateY(-1px);
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.12);
}

.profile-status {
    position: absolute;
    right: 8px;
    bottom: 8px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 3px rgba(8, 15, 31, 0.88);
}

.profile-pic {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: transparent;
}

.profile-dropdown {
    display: block;
    position: absolute;
    top: calc(100% + 2px);
    right: 0;
    background: rgba(8, 15, 31, 0.96);
    border-radius: 18px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    box-shadow: 0 18px 36px rgba(2, 6, 23, 0.35);
    min-width: 190px;
    z-index: 1100;
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
    overflow: hidden;
}

.profile-dropdown a {
    display: block;
    padding: 11px 12px;
    background: transparent;
    color: #e2e8f0;
    text-decoration: none;
    font-size: 14px;
    border-radius: 12px;
    font-family: var(--site-font-family) !important;
    text-transform: none;
    letter-spacing: 0.02em;
    min-width: 0;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.profile-dropdown a:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    transform: translateX(2px);
}

.profile-menu.is-open .profile-dropdown,
.profile-dropdown:hover {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.navbar-toggle {
    display: none;
    width: 46px;
    height: 46px;
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    background: rgba(148, 163, 184, 0.1);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    box-sizing: border-box;
}

.navbar-toggle span {
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: #f8fafc;
}

.scroll-top-button {
    position: fixed;
    right: 22px;
    bottom: 22px;
    width: 52px;
    height: 52px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    background:
        radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.18), transparent 38%),
        rgba(8, 15, 31, 0.9);
    backdrop-filter: blur(18px);
    box-shadow: 0 18px 34px rgba(2, 6, 23, 0.28);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    z-index: 1250;
    opacity: 0;
    visibility: hidden;
    transform: translateY(18px);
    pointer-events: none;
    transition: opacity 0.24s ease, transform 0.3s ease, visibility 0.24s ease, background 0.2s ease;
}

.scroll-top-button.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.scroll-top-button:hover {
    background:
        radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.24), transparent 38%),
        rgba(15, 23, 42, 0.95);
}

.scroll-top-arrow {
    width: 12px;
    height: 12px;
    border-top: 2px solid #f8fafc;
    border-left: 2px solid #f8fafc;
    transform: rotate(45deg) translate(1px, 1px);
}

@media (max-width: 980px) {
    body {
        padding-top: 90px;
        background-attachment: scroll !important;
    }

    .navbar {
        top: 12px;
        padding: 0 12px;
    }

    .navbar-collapsed-panel {
        top: 12px;
        right: 12px;
    }

    .navbar-shell {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        padding: 10px;
        gap: 10px;
    }

    .logo-nav {
        order: 1;
    }

    .navbar-actions {
        order: 3;
        width: 100%;
        max-width: none;
        min-width: 0;
        margin-left: 0;
        justify-content: flex-end;
    }

    .navbar-toggle {
        display: inline-flex;
        order: 2;
        margin-left: auto;
    }

    .nav-links {
        order: 4;
        width: 100%;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        margin-top: 8px;
        padding-top: 0;
        border-top: none;
    }

    .nav-links.is-open {
        display: flex;
    }

    .nav-links a,
    .dropbtn,
    .nav-link-utility {
        width: 100%;
        justify-content: flex-start;
    }

    .dropdown,
    .profile-menu,
    .notification-menu {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }

    .navbar-actions {
        display: grid;
        grid-template-columns: 1fr;
        gap: 8px;
        margin-top: 0;
        padding-top: 0;
        border-top: none;
        justify-content: stretch;
    }

    .navbar-actions .profile-menu,
    .navbar-actions .notification-menu {
        width: 100%;
    }

    .navbar-actions .notification-menu {
        display: none;
    }

    .dropdown-content,
    .profile-dropdown,
    .notification-dropdown {
        display: grid;
        gap: 10px;
        position: static;
        margin-top: 6px;
        width: 100%;
        max-height: 0;
        overflow: hidden;
        padding: 0;
        opacity: 1;
        visibility: visible;
        transform: none;
        pointer-events: auto;
        border: none;
        border-radius: 18px;
        background: transparent;
        box-shadow: none;
        transition: max-height 0.28s ease, padding 0.28s ease, margin-top 0.28s ease;
    }

    .dropdown.is-open .dropdown-content,
    .profile-menu.is-open .profile-dropdown {
        max-height: 320px;
        padding: 6px 0 0;
        overflow: auto;
    }

    .notification-menu.is-open .notification-dropdown {
        max-height: 360px;
        padding: 6px 0 0;
        overflow: auto;
    }

    .dropdown.is-open .dropdown-content {
        margin-left: 14px;
        padding: 10px 0 0 12px;
        border-left: 1px solid rgba(148, 163, 184, 0.22);
    }

    .dropdown::after,
    .profile-menu::after,
    .notification-menu::after {
        display: none;
    }

    .dropbtn,
    .profile-trigger,
    .notification-trigger {
        position: relative;
        width: 100%;
        justify-content: flex-start;
        gap: 10px;
        padding: 0 50px 0 14px;
        min-height: 48px;
        border-radius: 18px;
        border: 1px solid transparent;
        background: rgba(148, 163, 184, 0.1);
        box-shadow: none;
    }

    .navbar-actions .profile-trigger,
    .navbar-actions .notification-trigger,
    .dropbtn {
        width: 100%;
        padding: 0 50px 0 14px;
        justify-content: flex-start;
        border-radius: 18px;
    }

    .dropbtn::after,
    .profile-trigger::after,
    .notification-trigger::after {
        content: "";
        position: absolute;
        top: 50%;
        right: 18px;
        width: 9px;
        height: 9px;
        border-right: 2px solid rgba(226, 232, 240, 0.92);
        border-bottom: 2px solid rgba(226, 232, 240, 0.92);
        transform: translateY(-60%) rotate(45deg);
        transition: transform 0.22s ease, opacity 0.22s ease;
        opacity: 0.9;
        pointer-events: none;
    }

    .dropdown.is-open .dropbtn::after,
    .profile-menu.is-open .profile-trigger::after,
    .notification-menu.is-open .notification-trigger::after {
        transform: translateY(-35%) rotate(-135deg);
    }

    .dropdown.is-open .dropbtn,
    .profile-menu.is-open .profile-trigger,
    .notification-menu.is-open .notification-trigger {
        border-color: transparent;
        background: rgba(148, 163, 184, 0.1);
    }

    .nav-trigger-label {
        display: inline-block;
        color: #e2e8f0;
        font-size: 13px;
        font-weight: 700;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        line-height: 1;
    }

    .notification-count {
        top: 8px;
        right: auto;
        left: 28px;
    }

    .profile-status {
        display: none;
    }

    .profile-dropdown {
        min-width: 0;
    }

    .notification-dropdown,
    .profile-dropdown {
        width: 100%;
    }

    .notification-list,
    .dropdown-content,
    .profile-dropdown {
        gap: 10px;
    }

    .notification-footer-link {
        margin-top: 0;
    }

    .dropdown-content a,
    .profile-dropdown a,
    .notification-item,
    .notification-footer-link,
    .notification-dropdown-header,
    .notification-empty {
        border-radius: 16px !important;
    }

    .dropdown-content a,
    .profile-dropdown a,
    .notification-footer-link {
        background: rgba(255, 255, 255, 0.04) !important;
        border: 1px solid rgba(148, 163, 184, 0.1);
        transform: none !important;
    }

    .dropdown-content a {
        min-height: 44px;
        padding-left: 14px;
        font-size: 15px;
        border-color: rgba(125, 211, 252, 0.12);
        background: rgba(255, 255, 255, 0.03) !important;
    }

    .notification-dropdown-header,
    .notification-empty {
        background: rgba(255, 255, 255, 0.04);
        border: 1px solid rgba(148, 163, 184, 0.1);
        margin-bottom: 0;
    }

    .notification-item {
        border: 1px solid rgba(148, 163, 184, 0.08);
    }

    .navbar-collapse-toggle,
    .navbar-collapsed-panel {
        display: none !important;
    }

    .navbar-collapsed-panel .profile-menu,
    .navbar-collapsed-panel .profile-trigger,
    .navbar-collapsed-panel .notification-menu,
    .navbar-collapsed-panel .notification-trigger {
        width: auto;
    }

    .scroll-top-button {
        right: 14px;
        bottom: 14px;
        width: 48px;
        height: 48px;
        border-radius: 16px;
    }
}

@media (max-width: 640px) {
    body {
        padding-top: 82px;
    }

    .logo-mark {
        width: 46px;
        height: 46px;
    }

    a:not(.nav-links a):not(.profile-dropdown a):not(.logo-nav):not(.auth-button-link):not(.notification-item):not(.notification-footer-link):not(.nav-icon-shortcut):not(.site-notification-toast-copy):not(.toast-action) {
        min-width: 0;
        max-width: 100%;
    }

    a.back-link.site-back-link,
    a.webmail-back-link.site-back-link,
    a.hero-button.site-back-link,
    a.hero-action.site-back-link,
    a.auth-button-link.site-back-link {
        white-space: normal;
    }

}

/* ===================== */
/* PAGE PROFIL */
/* ===================== */
.profile-container {
    max-width: 900px;
    margin: auto;
}

/* separation gauche / droite */
.profile-grid {
    display: flex;
    justify-content: center;
    gap: 60px;
}

/* bloc gauche */
.profile-left {
    width: 300px;
    background: rgba(30, 41, 59, 0.6);
    padding: 20px;
    border-radius: 12px;
    text-align: left;
}

/* champs */
.profile-left input {
    width: 100%;
    padding: 10px;
    margin-top: 10px;
    border-radius: 8px;
    border: none;
}

/* bouton */
.profile-left button {
    margin-top: 10px;
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    background: #3b82f6;
    border: none;
    color: white;
}

/* bloc droite */
.profile-right {
    text-align: center;
    background: rgba(30, 41, 59, 0.6);
    padding: 20px;
    border-radius: 12px;
}

/* grande photo */
.profile-big {
    width: 100px !important;
    height: 100px !important;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;

    border: 3px solid rgba(255,255,255,0.2);
}

/* bouton upload */
.upload-btn {
    display: inline-block;
    padding: 10px;
    background: #3b82f6;
    border-radius: 8px;
    margin-top: 10px;
    cursor: pointer;
}

/* cache input */
.upload-btn input {
    display: none;
}

/* bouton upload */
.profile-right button {
    margin-top: 10px;
    padding: 8px 15px;
    border-radius: 8px;
    background: #3b82f6;
    border: none;
    color: white;
}

/* espace entre boutons classiques */
a:not(.nav-links a):not(.profile-dropdown a):not(.logo-nav):not(.auth-button-link):not(.nav-icon-shortcut):not(.site-notification-toast-copy):not(.toast-action) {
    margin: 10px; /* espace autour */
}

.profile-right img {
    width: 120px !important;
    height: 120px !important;
}


.success-msg {
    color: #22c55e;
    background: rgba(34, 197, 94, 0.1);
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 15px;
    font-weight: bold;
}

.error-msg {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 15px;
    font-weight: bold;
}

/* LOGO PAGE MANUEL */
.logo-army {
    width: 90px;
    height: auto;
    display: block;
    margin: 10px auto;
}


/* notif */
.toast {
    position: fixed;
    top: 96px;
    right: 18px;
    z-index: 1200;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    min-width: min(420px, calc(100vw - 28px));
    max-width: min(460px, calc(100vw - 28px));
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid rgba(125, 211, 252, 0.18);
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.14), transparent 34%),
        linear-gradient(135deg, rgba(14, 165, 233, 0.24), rgba(30, 64, 175, 0.2));
    color: #d8f4ff;
    line-height: 1.65;
    backdrop-filter: blur(16px);
    box-shadow: 0 18px 36px rgba(2, 6, 23, 0.28);
    animation: slideIn 0.3s ease;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast.is-success {
    border-color: rgba(134, 239, 172, 0.22);
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.14), transparent 34%),
        linear-gradient(135deg, rgba(34, 197, 94, 0.24), rgba(21, 128, 61, 0.2));
    color: #dcfce7;
}

.toast.is-error,
.error-toast {
    border-color: rgba(248, 113, 113, 0.24);
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.14), transparent 34%),
        linear-gradient(135deg, rgba(239, 68, 68, 0.28), rgba(127, 29, 29, 0.26));
    color: #fee2e2;
}

.toast-copy {
    flex: 1 1 auto;
    min-width: 0;
}

.toast-title {
    display: block;
    margin-bottom: 4px;
    color: #f8fbff;
    font-size: 14px;
    font-weight: 800;
}

.toast-text {
    color: inherit;
    font-size: 13px;
}

.toast-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}

.toast-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 14px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.12) !important;
    color: #f8fbff !important;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.toast-action:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.18) !important;
    border-color: rgba(255, 255, 255, 0.28);
}

.toast-close {
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: #f8fbff;
    cursor: pointer;
    line-height: 1;
    font-size: 18px;
    flex: 0 0 auto;
}

.toast.is-hiding {
    opacity: 0;
    transform: translateX(18px);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@media (max-width: 720px) {
    .toast {
        top: 82px;
        right: 10px;
        min-width: min(420px, calc(100vw - 20px));
        max-width: min(420px, calc(100vw - 20px));
    }
}
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;500;700&family=Merriweather:wght@400;700;900&display=swap');
