* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: white;
    color: black;
    display: flex;
    min-height: 100vh;
}

/* GLOBAL - Sidebar */

.sidebar {
    width: 60px;
    background: #344f78;
    border-right: 1px solid #333;
    color: white;
    position: fixed;
    height: 100vh;
    left: 0;
    top: 0;
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 1000;
    transition: width 0.3s ease;
}

.sidebar:hover {
    width: 250px;
}

.sidebar:hover ~ .main-content {
    margin-left: 250px;
}

.sidebar-header {
    padding: 1rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid #333;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80px;
    transition: padding 0.3s ease;
}

.sidebar:hover .sidebar-header {
    padding: 2rem 1.5rem;
    display: block;
}

.sidebar a {
    color: white;
    text-decoration: none;
}

.sidebar-logo {
    width: 40px;
    height: 40px;
    margin: auto;
    transition: width 0.3s ease, height 0.3s ease;
}

.sidebar:hover .sidebar-logo {
    width: 60px;
    height: 60px;
}

.sidebar-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.sidebar-title {
    opacity: 0;
    height: 0;
    overflow: hidden;
    transition: opacity 0.3s ease;
}

.sidebar:hover .sidebar-title {
    opacity: 1;
    height: auto;
}

.sidebar-header h1 {
    text-align: center;
    padding-top: 1rem;
    font-size: clamp(1rem, 1.3vw + 0.5rem, 1.3rem);
    font-weight: bold;
}

/* GLOBAL - Nav */

.nav ul {
    list-style: none;
    padding-left: 0;
    text-align: center;
}

.sidebar:hover .nav ul {
    padding-left: 1.1rem;
    text-align: left;
}

.nav li {
    margin-bottom: 0.3rem;
}

.nav a {
    text-decoration: none;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    transition: color 0.2s;
    font-size: clamp(0.85rem, 0.9vw + 0.4rem, 1rem);
}

.sidebar:hover .nav a {
    justify-content: flex-start;
    padding: 0.3rem 0.5rem;
}

.nav-dot {
    display: inline;
    font-size: 1.2rem;
}

.sidebar:hover .nav-dot {
    display: none;
}

.nav-text {
    opacity: 0;
    width: 0;
    overflow: hidden;
    transition: opacity 0.3s ease;
}

.sidebar:hover .nav-text {
    opacity: 1;
    width: auto;
}

.nav a.active .nav-dot {
    font-weight: 3000;
    transform: scale(1.3);
}

.sidebar:hover .nav a.active {
    font-weight: bold;
}

.nav a:hover {
    color: #666;
}

/* GLOBAL - Main Content */

.main-content {
    margin-left: 60px;
    flex: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: margin-left 0.3s ease;
    width: calc(100% - 60px);
}

/* GLOBAL - Hero */

.hero-header {
    position: relative;
    height: clamp(250px, 50vh, 650px);
    background-size: cover;
    background-position: center;
    width: 100%;
}

.profile-icon {
    position: absolute;
    top: 1.5rem;
    right: 2rem;
    cursor: pointer;
    z-index: 3;
    width: clamp(35px, 4vw, 50px);
    height: clamp(35px, 4vw, 50px);
    border-radius: 50%;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.profile-icon:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.profile-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Page Login */
/* LOGIN - Page */

.login-page {
    min-height: 100vh;
    height: 100vh;
    width: 100vw;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #344f78 0%, #2a3f5f 100%);
    padding: 0;
    margin: 0;
    position: fixed;
    top: 0;
    left: 0;
    overflow: auto;
}

.back-arrow {
    position: absolute;
    top: 1rem;
    left: 2rem;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    transition: transform 0.3s ease;
    text-decoration: none;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-arrow:hover {
    transform: translateX(-5px);
}

.login-container {
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    padding: clamp(2rem, 4vw, 3rem);
    max-width: 450px;
    width: 90%;
    margin: 2rem;
}

.login-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.login-logo {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: #344f78;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    box-shadow: 0 8px 20px rgba(52, 79, 120, 0.3);
}

.login-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.login-header h1 {
    color: #344f78;
    font-size: clamp(1.5rem, 2.5vw + 0.5rem, 1.8rem);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.login-header p {
    color: #666;
    font-size: clamp(0.9rem, 1vw + 0.3rem, 1rem);
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    color: #344f78;
    font-weight: 600;
    font-size: clamp(0.9rem, 1vw + 0.2rem, 0.95rem);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-group label::before {
    content: '';
    width: 20px;
    height: 20px;
    display: inline-block;
}

.form-group.badge label::before {
    content: '🎖️';
}

.form-group.password label::before {
    content: '🔒';
}

.form-group input {
    padding: 0.9rem 1.2rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: clamp(0.9rem, 1vw + 0.3rem, 1rem);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.form-group input:focus {
    outline: none;
    border-color: #344f78;
    box-shadow: 0 0 0 3px rgba(52, 79, 120, 0.1);
}

.form-group input::placeholder {
    color: #999;
}

.btn-login {
    background: #344f78;
    color: white;
    padding: 1rem;
    border: none;
    border-radius: 8px;
    font-size: clamp(1rem, 1.2vw + 0.3rem, 1.1rem);
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 12px rgba(52, 79, 120, 0.3);
    margin-top: 0.5rem;
}

.btn-login:hover {
    background: #2a3f5f;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(52, 79, 120, 0.4);
}

.btn-login:active {
    transform: translateY(0);
}

.login-footer {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e0e0e0;
}

.login-footer p {
    color: #666;
    font-size: clamp(0.8rem, 0.9vw + 0.2rem, 0.85rem);
}

/* PAGE INDEX */
/* INDEX - Hero */

.index-bg {
    background-image: url(imgs/HERO_INDEX.png);
}

/* INDEX - Content Card */

.content-card {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: clamp(1.5rem, 3vw, 2.5rem);
    margin: clamp(1rem, 2vw, 2rem);
    margin-left: max(2rem, 2vw);
    margin-right: max(2rem, 2vw);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    flex: 1;
    max-width: 1400px;
    width: calc(100% - 4rem);
    align-self: center;
}

.content-card h2 {
    color: #344f78;
    text-align: center;
    font-size: clamp(1.3rem, 2vw + 0.5rem, 1.8rem);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.content-card p {
    color: #333;
    line-height: 1.7;
    font-size: clamp(0.9rem, 1vw + 0.3rem, 1rem);
    margin-bottom: 1rem;
}

.content-card p:last-child {
    margin-bottom: 0;
}

/* INDEX - Video */

.video-section {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: clamp(1.5rem, 3vw, 2.5rem);
    max-width: 1400px;
    width: calc(100% - 4rem);
    margin: 0 auto clamp(1rem, 2vw, 2rem) auto;
    margin-left: max(2rem, 2vw);
    margin-right: max(2rem, 2vw);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    align-self: center;
}

.video-section h2 {
    color: #344f78;
    font-size: clamp(1.3rem, 2vw + 0.5rem, 1.8rem);
    margin-bottom: 1.5rem;
    font-weight: 600;
    text-align: center;
}

.video-container {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    width: 100%;
    max-width: 100%;
    background: #000;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 8px;
}

/* INDEX - Image Direction */

.image-section {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: clamp(1.5rem, 3vw, 2.5rem);
    max-width: 1400px;
    width: calc(100% - 4rem);
    margin: 0 auto clamp(1rem, 2vw, 2rem) auto;
    margin-left: max(2rem, 2vw);
    margin-right: max(2rem, 2vw);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    align-self: center;
}

.image-section h2 {
    color: #344f78;
    font-size: clamp(1.3rem, 2vw + 0.5rem, 1.8rem);
    margin-bottom: 1.5rem;
    font-weight: 600;
    text-align: center;
}

.image-container {
    width: 100%;
    max-width: 100%;
    background: #000;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

.image-container img {
    width: 100%;
    height: auto;
    display: block;
}

/* Page Bureaux */
/* BUREAUX - Hero */

.bureaux-bg {
    background-image: url(imgs/HERO_BUREAUX.png);
}

/* BUREAUX - Postes */

.poste-section {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: clamp(1.5rem, 3vw, 2.5rem);
    max-width: 1400px;
    width: calc(100% - 4rem);
    margin: clamp(1rem, 2vw, 2rem) auto;
    margin-left: max(2rem, 2vw);
    margin-right: max(2rem, 2vw);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    align-self: center;
}

.poste-section h2 {
    color: #344f78;
    font-size: clamp(1.3rem, 2vw + 0.5rem, 1.8rem);
    margin-bottom: 1.5rem;
    font-weight: 600;
    text-align: center;
}

.poste-content {
    display: flex;
    gap: clamp(1.5rem, 3vw, 2.5rem);
    align-items: flex-start;
}

.poste-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.poste-main-image {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    background: #000;
}

.poste-main-image img {
    width: 100%;
    height: auto;
    display: block;
}

.poste-cards {
    display: flex;
    gap: 1rem;
}

.officer-card {
    flex: 1;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.officer-card-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto 1rem;
    overflow: hidden;
    background: #000;
    border: 3px solid #f59e0b;
}

.officer-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.officer-card h3 {
    color: #344f78;
    font-size: clamp(0.95rem, 1.2vw + 0.3rem, 1.1rem);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.officer-card p {
    color: #f59e0b;
    font-size: clamp(0.9rem, 1vw + 0.3rem, 1rem);
    font-weight: 500;
}

.poste-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.poste-description {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: clamp(1.2rem, 2.5vw, 1.8rem);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.poste-description h3 {
    color: #344f78;
    font-size: clamp(1.1rem, 1.5vw + 0.4rem, 1.4rem);
    margin-bottom: 1rem;
    font-weight: 600;
}

.poste-description p {
    color: #333;
    line-height: 1.7;
    font-size: clamp(0.9rem, 1vw + 0.3rem, 1rem);
    margin-bottom: 0.8rem;
}

.poste-description p:last-child {
    margin-bottom: 0;
}

.poste-location {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    background: #000;
}

.poste-location img {
    width: 100%;
    height: auto;
    display: block;
}

/* Page Plaintes */
/* PLAINTES - Hero */

.plaintes-bg {
    background-image: url(imgs/HERO_PLAINTES.png);
}

/* PLAINTES - Content */

.plaintes-card {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: clamp(1.5rem, 3vw, 2.5rem);
    margin: clamp(1rem, 2vw, 2rem);
    margin-left: max(2rem, 2vw);
    margin-right: max(2rem, 2vw);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    flex: 1;
    max-width: 1400px;
    width: calc(100% - 4rem);
    align-self: center;
}

.plaintes-card h2 {
    color: #344f78;
    text-align: center;
    font-size: clamp(1.3rem, 2vw + 0.5rem, 1.8rem);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.plaintes-content {
    display: flex;
    gap: clamp(1.5rem, 3vw, 2.5rem);
    align-items: center;
}

.plaintes-image {
    flex: 1;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    background: whitesmoke;
}

.plaintes-image img {
    width: 100%;
    height: auto;
    display: block;
}

.plaintes-text-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.plaintes-text-section p {
    color: #333;
    line-height: 1.7;
    font-size: clamp(0.9rem, 1vw + 0.3rem, 1rem);
    margin-bottom: 0.8rem;
}

.plaintes-text-section p:last-of-type {
    margin-bottom: 0;
}

.btn-plainte {
    display: inline-block;
    background: #344f78;
    color: white;
    padding: clamp(0.8rem, 1.5vw, 1rem) clamp(2rem, 3vw, 3rem);
    border-radius: 8px;
    font-size: clamp(0.95rem, 1.2vw + 0.3rem, 1.1rem);
    font-weight: 600;
    text-decoration: none;
    transition: background 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 12px rgba(52, 79, 120, 0.3);
    cursor: pointer;
    border: none;
    align-self: flex-start;
}

.btn-plainte:hover {
    background: #2a3f5f;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(52, 79, 120, 0.4);
}

.btn-plainte:active {
    transform: translateY(0);
}

/* Page Recrutements */
/* RECRUTEMENTS - Hero */

.recrutements-bg {
    background-image: url(imgs/HERO_RECRUTEMENTS.png);
}

/* RECRUTEMENTS - Content */

.recrutement-card {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: clamp(1.5rem, 3vw, 2.5rem);
    margin: clamp(1rem, 2vw, 2rem);
    margin-left: max(2rem, 2vw);
    margin-right: max(2rem, 2vw);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    max-width: 1400px;
    width: calc(100% - 4rem);
    align-self: center;
}

.recrutement-card h2 {
    color: #344f78;
    text-align: center;
    font-size: clamp(1.3rem, 2vw + 0.5rem, 1.8rem);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.recrutement-intro {
    text-align: center;
    margin-bottom: 2rem;
}

.recrutement-intro p {
    color: #333;
    line-height: 1.7;
    font-size: clamp(0.9rem, 1vw + 0.3rem, 1rem);
    margin-bottom: 1.5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.btn-recrutement {
    display: inline-block;
    background: #344f78;
    color: white;
    padding: clamp(0.8rem, 1.5vw, 1rem) clamp(2rem, 3vw, 3rem);
    border-radius: 8px;
    font-size: clamp(0.95rem, 1.2vw + 0.3rem, 1.1rem);
    font-weight: 600;
    text-decoration: none;
    transition: background 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 12px rgba(52, 79, 120, 0.3);
    cursor: pointer;
    border: none;
}

.btn-recrutement:hover {
    background: #2a3f5f;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(52, 79, 120, 0.4);
}

.btn-recrutement:active {
    transform: translateY(0);
}

/* RECRUTEMENTS - Prérequis */

.prerequis-section {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: clamp(1.5rem, 3vw, 2.5rem);
    margin: clamp(1rem, 2vw, 2rem);
    margin-left: max(2rem, 2vw);
    margin-right: max(2rem, 2vw);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    max-width: 1400px;
    width: calc(100% - 4rem);
    align-self: center;
}

.prerequis-section h2 {
    color: #344f78;
    text-align: center;
    font-size: clamp(1.3rem, 2vw + 0.5rem, 1.8rem);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.prerequis-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.prerequis-item {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.prerequis-icon {
    font-size: 1.5rem;
    color: #344f78;
    flex-shrink: 0;
}

.prerequis-content h3 {
    color: #344f78;
    font-size: clamp(1rem, 1.2vw + 0.3rem, 1.15rem);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.prerequis-content p {
    color: #333;
    line-height: 1.6;
    font-size: clamp(0.85rem, 0.95vw + 0.3rem, 0.95rem);
}

/* RECRUTEMENTS - Processus */

.processus-section {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: clamp(1.5rem, 3vw, 2.5rem);
    margin: clamp(1rem, 2vw, 2rem);
    margin-left: max(2rem, 2vw);
    margin-right: max(2rem, 2vw);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    max-width: 1400px;
    width: calc(100% - 4rem);
    align-self: center;
}

.processus-section h2 {
    color: #344f78;
    text-align: center;
    font-size: clamp(1.3rem, 2vw + 0.5rem, 1.8rem);
    margin-bottom: 2rem;
    font-weight: 600;
}

.timeline {
    position: relative;
    padding: 0;
    list-style: none;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: #344f78;
}

.timeline-item {
    position: relative;
    padding-left: 80px;
    margin-bottom: 2.5rem;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-marker {
    position: absolute;
    left: 15px;
    top: 5px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #344f78;
    border: 4px solid #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: clamp(0.85rem, 1vw + 0.2rem, 0.95rem);
    box-shadow: 0 2px 8px rgba(52, 79, 120, 0.3);
}

.timeline-content {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.timeline-content h3 {
    color: #344f78;
    font-size: clamp(1.05rem, 1.3vw + 0.3rem, 1.2rem);
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.timeline-content p {
    color: #333;
    line-height: 1.6;
    font-size: clamp(0.85rem, 0.95vw + 0.3rem, 0.95rem);
    margin: 0;
}

/* Page Médias */
/* MEDIAS - Hero */

.medias-bg {
    background-image: url(imgs/HERO_MEDIAS.png);
}

/* MEDIAS - Content */

.medias-section {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: clamp(1.5rem, 3vw, 2.5rem);
    margin: clamp(1rem, 2vw, 2rem);
    margin-left: max(2rem, 2vw);
    margin-right: max(2rem, 2vw);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    max-width: 1400px;
    width: calc(100% - 4rem);
    align-self: center;
    flex: 1;
}

.medias-section h2 {
    color: #344f78;
    text-align: center;
    font-size: clamp(1.3rem, 2vw + 0.5rem, 1.8rem);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.loading-message {
    text-align: center;
    color: #333;
    font-size: clamp(0.9rem, 1vw + 0.3rem, 1rem);
    padding: 2rem;
}

.error-message {
    text-align: center;
    color: #d32f2f;
    font-size: clamp(0.9rem, 1vw + 0.3rem, 1rem);
    padding: 2rem;
}

.gallery {
    column-count: 4;
    gap: 15px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    break-inside: avoid;
    display: inline-block;
    width: 100%;
    height: auto;
    margin-bottom: 15px;
}

.gallery-item:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
}

/* MEDIAS - Lightbox */

.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    position: relative;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2.5rem;
    color: white;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.5);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
    z-index: 10001;
}

.lightbox-close:hover {
    background: rgba(0, 0, 0, 0.8);
}

/* Footer */

.footer {
    background: #344f78;
    border-top: 1px solid #333;
    padding: 1.5rem 0;
    text-align: center;
    margin-top: auto;
    width: 100%;
}

.footer p {
    color: white;
    font-size: clamp(0.75rem, 0.9vw + 0.3rem, 0.85rem);
}
