.burger span {
    display: block;
    height: 4px;
    width: 28px;
    margin: 5px 0;
    border-radius: 2px;
    transition: 0.3s;
}
@media (max-width: 900px) {
    .burger span {
        background: #fff;
        height: 5px;
        width: 30px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    }
    .burger {
        display: flex;
        background: #fff;
        border: 2px solid #1c3b53;
        border-radius: 8px;
        box-shadow: 0 4px 16px rgba(0,0,0,0.18);
        padding: 4px;
    }
    .menu {
        display: none !important;
    }
    .drawer {
        display: flex;
    }
}
@media (min-width: 901px) {
    .burger {
        display: none !important;
    }
    .drawer {
        display: none !important;
    }
    .menu {
        display: flex !important;
        position: static;
        background: none;
        flex-direction: row;
        box-shadow: none;
        border-radius: 0;
        padding: 0;
        min-width: 0;
    }
}
}
.burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: #fff;
    border: 2px solid #1c3b53;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    z-index: 1001;
}
@media (min-width: 901px) {
    .menu {
        display: flex !important;
        position: static;
        background: none;
        flex-direction: row;
        box-shadow: none;
        border-radius: 0;
        padding: 0;
        min-width: 0;
    }
    .drawer {
        display: none !important;
    }
}
/* --- DRAWER MENU BURGER --- */
.navbar-actions {
    display: flex;
    align-items: center;
    margin-left: auto;
}
.search-icon {
    background: none;
    border: none;
    margin-right: 8px;
    cursor: pointer;
    padding: 0;
}
.burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
}
.burger span {
    display: block;
    height: 4px;
    width: 28px;
    background: #fff;
    margin: 5px 0;
    border-radius: 2px;
    transition: 0.3s;
}
.burger.open span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}
.burger.open span:nth-child(2) {
    opacity: 0;
}
.burger.open span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}
.drawer {
    position: fixed;
    top: 0;
    left: 0;
    width: 80vw;
    max-width: 320px;
    height: 100vh;
    background: #fff;
    box-shadow: 2px 0 32px rgba(0,0,0,0.12);
    z-index: 2000;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(.77,0,.18,1);
    display: flex;
    flex-direction: column;
    padding: 1.2rem 1rem;
}
.drawer.open {
    transform: translateX(0);
}
.close-drawer {
    background: none;
    border: none;
    font-size: 2rem;
    color: #1c3b53;
    align-self: flex-end;
    cursor: pointer;
    margin-bottom: 1rem;
}
.drawer-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.drawer-menu-list li {
    margin: 1.2rem 0;
}
.drawer-menu-list a {
    color: #1c3b53;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 600;
    transition: color 0.2s;
}
.drawer-menu-list a:hover {
    color: #e67e22;
}
@media (max-width: 900px) {
    .burger {
        display: flex;
    }
    .menu {
        display: none !important;
    }
    .drawer {
        display: flex;
    }
}
/* --- MENU BURGER --- */
.burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: none;
    border: none;
    cursor: pointer;
    margin-left: auto;
    z-index: 1001;
}
.burger span {
    display: block;
    height: 4px;
    width: 28px;
    background: #1c3b53;
    margin: 5px 0;
    border-radius: 2px;
    transition: 0.3s;
}
.burger.open span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}
.burger.open span:nth-child(2) {
    opacity: 0;
}
.burger.open span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

@media (max-width: 900px) {
    .burger {
        display: flex;
    }
    .menu {
        display: none;
        position: absolute;
        top: 60px;
        right: 10px;
        background: #fff;
        flex-direction: column;
        box-shadow: 0 8px 32px rgba(0,0,0,0.12);
        border-radius: 10px;
        padding: 1rem 1.5rem;
        z-index: 1000;
        min-width: 180px;
    }
    .menu.menu-open {
        display: flex;
    }
    .menu li {
        margin: 0.7rem 0;
    }
}

/* Masquer le menu du footer sur mobile */
@media (max-width: 900px) {
    .footer-links {
        display: none;
    }
}
body{font-family:Arial;margin:0;background:#f4f6f9;}
.navbar{background:#1c3b53;padding:15px;}
.navbar {
    display: flex;
    align-items: center;
    background: #1c3b53;
    padding: 10px 30px;
}
.uckin-logo-block {
    display: flex;
    align-items: center;
    margin-right: 40px;
}
.menu {
    display: flex;
    gap: 25px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.menu a {
    color: white;
    text-decoration: none;
    font-size: 1.05rem;
    font-weight: 500;
}

/* Header UCKIN */
.uckin-header {
    display: flex;
    align-items: center;
    background: #1c3b53;
    padding: 10px 30px;
    justify-content: space-between;
}
.uckin-logo-block {
    display: flex;
    align-items: center;
}
.uckin-logo {
    width: 56px;
    height: 56px;
    object-fit: contain;
    margin-right: 16px;
}
.uckin-title {
    display: flex;
    flex-direction: column;
}
.uckin-name {
    font-size: 1.6rem;
    font-weight: bold;
    color: #fff;
    letter-spacing: 2px;
}
.uckin-subtitle {
    font-size: 0.95rem;
    color: #e0e6ed;
    margin-top: 2px;
}
.uckin-menu {
    flex: 1;
    margin-left: 40px;
}

/* Faculties page modern style */
.faculties-list {
    display: flex;
    flex-wrap: nowrap; /* Affiche sur une seule ligne */
    justify-content: center;
    gap: 2rem;
    overflow-x: auto; /* Permet le scroll horizontal si besoin */
    margin-top: 2rem;
}

.faculty-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    padding: 2rem 1.5rem;
    width: 320px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: box-shadow 0.2s;
    overflow: hidden;
}

/* Articles CMS */
.articles-list {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
    margin-top: 2rem;
}
.article-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    padding: 1.5rem;
    width: 340px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}
.article-img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1rem;
}
.article-info h3 {
    margin: 0 0 0.5rem 0;
}
.article-summary {
    color: #444;
    margin-bottom: 0.7rem;
}
.article-meta {
    font-size: 0.95rem;
    color: #888;
    margin-bottom: 0.7rem;
}
.article-priority.high {
    color: #c0392b;
    font-weight: bold;
}
.article-priority.medium {
    color: #e67e22;
    font-weight: bold;
}
.article-priority.low {
    color: #2980b9;
    font-weight: bold;
}
.btn {
    display: inline-block;
    padding: 0.5rem 1.2rem;
    border-radius: 6px;
    background: #1c3b53;
    color: #fff;
    text-decoration: none;
    margin-top: 0.5rem;
    font-weight: 500;
    transition: background 0.2s;
}
.btn:hover {
    background: #27496d;
}
.btn-danger {
    background: #c0392b;
}
.btn-primary {
    background: #e67e22;
}

.faculty-img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1rem;
    display: block;
}

.faculty-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.faculty-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #2a4d8c;
}

.faculty-card h2 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #2a4d8c;
    text-align: center;
}

.faculty-card p {
    font-size: 1rem;
    color: #444;
    text-align: center;
    margin-bottom: 1.2rem;
}

.btn {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    font-size: 1rem;
    transition: background 0.2s;
    margin-top: 0.5rem;
}

.btn-primary {
    background: #2a4d8c;
    color: #fff;
}
.btn-primary:hover {
    background: #1a3460;
}

.btn-danger {
    background: #b02a37;
    color: #fff;
    font-weight: 700;
    border: none;
}
.btn-danger:hover {
    background: #7a1c25;
}

.btn-warning {
    background: #b88a2a;
    color: #fff;
}
.btn-warning:hover {
    background: #7a5c1c;
}

.btn-brown {
    background: #7a5c2a;
    color: #fff;
}
.btn-brown:hover {
    background: #4a361a;
}

/* Section Hero (home & research) */
.home-hero, .research-hero {
    position: relative;
    background-size: cover;
    background-position: center;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.home-hero, .research-hero {
    display: flex;
    min-height: 500px;
    width: 100%;
    position: relative;
    background: none;
}

.home-hero-left, .research-hero-left {
    flex: 1 1 50%;
    padding: 4rem 3rem 4rem 6vw;
    display: flex;
    flex-direction: column;
    justify-content: center;
    z-index: 2;
}

.home-hero-left h1, .research-hero-left h1 {
    font-size: 2.8rem;
    font-weight: 800;
    color: #222;
    margin-bottom: 1.2rem;
    text-align: left;
}

.home-hero-left p, .research-hero-left p {
    font-size: 1.18rem;
    color: #333;
    margin-bottom: 2rem;
    line-height: 1.6;
    text-align: left;
}

.home-hero-buttons, .research-hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.home-hero-right {
    flex: 1 1 50%;
    background-image: url('/static/images/home_image.png');
    background-size: cover;
    background-position: right center;
    position: relative;
}

.home-hero-right::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 60%;
    height: 100%;
    background: rgba(255,255,255,0.7);
    backdrop-filter: blur(8px);
    z-index: 1;
}

.research-hero-right {
    flex: 1 1 50%;
    background-image: url('/static/images/research_im.png');
    background-size: cover;
    background-position: right center;
    position: relative;
}

.research-hero-right::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 60%;
    height: 100%;
    background: rgba(255,255,255,0.7);
    backdrop-filter: blur(8px);
    z-index: 1;
}

.home-hero-content, .research-hero-content {
    background: rgba(255,255,255,0.92);
    border-radius: 18px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
    padding: 3rem 2.5rem;
    max-width: 650px;
    width: 90%;
    text-align: left;
}

.home-hero-content h1, .research-hero-content h1 {
    font-size: 2.6rem;
    font-weight: 800;
    color: #222;
    margin-bottom: 1.2rem;
    text-align: left;
}

.home-hero-content p, .research-hero-content p {
    font-size: 1.18rem;
    color: #333;
    margin-bottom: 2rem;
    line-height: 1.6;
    text-align: left;
}

.btn-danger {
    background: #b02a37;
    color: #fff;
    font-weight: 700;
    border: none;
}

.btn-secondary {
    background: #f4f6f9;
    color: #222;
    border: 1px solid #bbb;
    font-weight: 700;
}

.btn-danger:hover, .btn-secondary:hover {
    opacity: 0.85;
}

/* Footer */
.site-footer {
    background: #1c3b53;
    color: #fff;
    padding: 1.2rem 0 0.5rem 0;
    text-align: center;
    font-size: 1rem;
    margin-top: 0;
}
.site-footer .footer-links {
    margin-bottom: 1rem;
}
.site-footer .footer-links a {
    color: #fff;
    margin: 0 1rem;
    text-decoration: none;
    font-weight: 600;
}
.site-footer .footer-links a:hover {
    text-decoration: underline;
}
.site-footer .footer-logo {
    margin-bottom: 1rem;
}
.site-footer .footer-contact {
    font-size: 0.95rem;
    color: #cfd8dc;
}

/* Responsive */
@media (max-width: 900px) {
    .faculties-list {
        flex-direction: column;
        align-items: center;
    }
    .faculty-card {
        width: 90%;
        margin-bottom: 1.5rem;
    }
    .home-hero-content, .research-hero-content {
        padding: 2rem 1rem;
        max-width: 98%;
    }
    .home-hero, .research-hero {
        min-height: 350px;
    }
    .site-footer {
            font-size: 0.85rem;
            padding: 0.5rem 0 0.2rem 0;
            margin-top: 0;
        }
        .footer-logo img {
            height: 28px !important;
        }
        .footer-contact {
            font-size: 0.8rem;
            padding: 0.2rem 0;
        }
        .footer-links {
            margin-bottom: 0.3rem;
    }
}

@media (max-width: 600px) {
    .home-hero-content h1, .research-hero-content h1 {
        font-size: 1.5rem;
    }
    .home-hero-content p, .research-hero-content p {
        font-size: 1rem;
    }
    .home-hero-content, .research-hero-content {
        padding: 1rem 0.5rem;
    }
}

@media (max-width: 900px) {
    .home-hero, .research-hero {
        flex-direction: column;
        min-height: 350px;
    }
    .home-hero-left, .home-hero-right, .research-hero-left, .research-hero-right {
        flex: 1 1 100%;
        padding: 2rem 1rem;
        min-width: 0;
    }
    .home-hero-right, .research-hero-right {
        height: 250px;
    }
}

.hero-bg {
    position: relative;
    min-height: 500px;
    width: 100%;
    background: url('/static/images/home_image.png') right center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    overflow: hidden;
    margin-bottom: -30px; /* Réduit l'espace sous l'image */
}

.hero-bg::before {
    content: '';
    position: absolute;
    left: 0; top: 0; width: 100%; height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.7) 40%, rgba(255,255,255,0.1) 80%, rgba(255,255,255,0) 100%);
    z-index: 1;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 4rem 3rem 4rem 6vw;
    max-width: 650px;
    width: 100%;
}

.hero-content h1 {
    font-size: 2.8rem;
    font-weight: 800;
    color: #222;
    margin-bottom: 1.2rem;
    text-align: left;
}

.hero-content p {
    font-size: 1.18rem;
    color: #333;
    margin-bottom: 2rem;
    line-height: 1.6;
    text-align: left;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.research-bg {
    background: url('/static/images/research_im.png') right center/cover no-repeat;
}

@media (max-width: 900px) {
    .hero-bg {
        min-height: 300px;
        background-position: center;
    }
    .hero-content {
        padding: 2rem 1rem;
        max-width: 98%;
    }
}
@media (max-width: 600px) {
    .hero-content h1 {
        font-size: 1.5rem;
    }
    .hero-content p {
        font-size: 1rem;
    }
    .hero-content {
        padding: 1rem 0.5rem;
    }
}
