/* Variables CSS */
:root {
    --primary-blue: #1a4b8c;
    --secondary-blue: #2a6fc9;
    --primary-yellow: #f9c80e;
    --secondary-yellow: #fad648;
    --success-green: #2ecc71;
    --error-red: #e74c3c;
    --warning-orange: #f39c12;
    --white: #ffffff;
    --light-gray: #f8f9fa;
    --shadow-light: rgba(0, 0, 0, 0.08);
    --shadow-medium: rgba(0, 0, 0, 0.15);
    --shadow-strong: rgba(0, 0, 0, 0.25);
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset et styles de base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    margin: 0 !important;
    padding: 0 !important;
}

body {
    font-family: 'Poppins', sans-serif;
    background: rgba(255, 255, 255, 0.95);
    background-attachment: fixed;
    color: #333;
    line-height: 1.6;
    padding: 0 !important;
    margin: 0 !important;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Supprimer tout espace au-dessus de la navbar */
body>*:first-child {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

nav.navbar,
.navbar {
    margin-top: 0 !important;
    padding-top: 0 !important;
    top: 0 !important;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    pointer-events: none;
    z-index: 0;
}

body::after {
    content: '✟';
    position: fixed;
    font-size: 800px;
    color: rgba(26, 75, 140, 0.08) !important;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 0;
}

.header {
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    color: white;
    padding: 3.5rem 2rem;
    margin: 10% 1rem 2rem;
    text-align: center;
    border-radius: 20px;
    box-shadow: 0 15px 40px var(--shadow-strong);
    position: relative;
    overflow: hidden;
    animation: fadeInDown 0.8s ease-out;
}

.header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

.header h1 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    margin-bottom: 0.5rem;
    font-size: 2rem;
    position: relative;
    z-index: 1;
    text-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.header h1 i {
    margin-right: 1rem;
    animation: bounce 2s ease-in-out infinite;
}

.header i {
    color: var(--primary-yellow);
    font-size: 50px;
}

.header .lead {
    font-size: 1rem;
    opacity: 0.95;
    position: relative;
    z-index: 1;
    letter-spacing: 0.5px;
}

.container {
    position: relative;
    z-index: 1;
    padding: 0 1rem 2rem;
}

.travaux-section {
    margin-bottom: 2.5rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    box-shadow: 0 10px 30px var(--shadow-medium);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: var(--transition-smooth);
    animation: fadeInUp 0.8s ease-out;
}

.travaux-section:hover {
    box-shadow: 0 15px 45px var(--shadow-strong);
    transform: translateY(-5px);
}

.travaux-title {
    color: var(--primary-blue);
    font-weight: 700;
    margin-bottom: 1.5rem;
    padding-bottom: 0.8rem;
    border-bottom: 3px solid var(--primary-yellow);
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.travaux-title i {
    color: var(--primary-yellow);
    font-size: 1.6rem;
}

.travaux-item {
    margin-bottom: 2rem;
    padding: 2rem;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
    border-radius: 15px;
    box-shadow: 0 5px 20px var(--shadow-light);
    transition: var(--transition-smooth);
    border: 1px solid rgba(26, 75, 140, 0.1);
    position: relative;
    overflow: hidden;
}

.travaux-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary-blue), var(--secondary-blue));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.travaux-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 40px var(--shadow-medium);
}

.travaux-item:hover::before {
    opacity: 1;
}

.travaux-item h3 {
    color: var(--primary-blue);
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.travaux-img {
    width: 100%;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    object-fit: cover;
    height: 250px;
    box-shadow: 0 8px 20px var(--shadow-medium);
    transition: var(--transition-smooth);
}

.travaux-img:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 30px var(--shadow-strong);
}

.status-badge {
    display: inline-block;
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 1rem;
    box-shadow: 0 4px 15px var(--shadow-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition-smooth);
}

.status-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--shadow-medium);
}

.status-en-cours {
    background: linear-gradient(135deg, #ffeaa7, #fdcb6e);
    color: #d35400;
}

.status-termine {
    background: linear-gradient(135deg, #55efc4, #00b894);
    color: #006266;
}

.status-prevu {
    background: linear-gradient(135deg, #74b9ff, #0984e3);
    color: #192a56;
}

.status-suspendu {
    background: linear-gradient(135deg, #fab1a0, #e17055);
    color: #b71540;
}

.btn-don {
    background: linear-gradient(135deg, #e84393, #fd79a8);
    color: white;
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition-smooth);
    box-shadow: 0 8px 25px rgba(232, 67, 147, 0.4);
    position: relative;
    overflow: hidden;
    letter-spacing: 0.5px;
}

.btn-don::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-don:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(232, 67, 147, 0.5);
    color: white;
}

.btn-don:hover::before {
    width: 300px;
    height: 300px;
}

.btn-don a {
    text-decoration: none;
    color: white;
    position: relative;
    z-index: 1;
}

.progress {
    height: 12px;
    border-radius: 50px;
    margin: 1.5rem 0;
    background: rgba(26, 75, 140, 0.1);
    overflow: hidden;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.1);
}

.progress-bar {
    background: linear-gradient(90deg, var(--warning-orange), var(--primary-yellow));
    border-radius: 50px;
    transition: width 0.8s ease;
    position: relative;
    overflow: hidden;
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.3),
            transparent);
    animation: shimmer 2s infinite;
}

.bg-light {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(248, 249, 255, 0.95)) !important;
    backdrop-filter: blur(10px);
}

.text-muted {
    color: #6c757d !important;
    font-size: 0.9rem;
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

/* Modal */
.modal {
    z-index: 999999;
    padding-top: 0;
}

.modal-dialog {
    margin: 2rem auto;
}

.modal-content {
    overflow: visible;
    border-radius: 20px;
    border: none;
    box-shadow: 0 20px 60px var(--shadow-strong);
}

body.modal-open {
    padding-right: 0 !important;
    overflow: auto;
}

.modal.fade .modal-dialog {
    transform: translate(0, 0);
}

/* Responsive */
@media (max-width: 1199px) {
    .header h1 {
        font-size: 1.8rem;
    }

    .travaux-title {
        font-size: 1.4rem;
    }
}

@media (max-width: 991px) {
    .header {
        padding: 3rem 1.5rem;
        margin-top: 8rem;
        margin-left: 1rem;
        margin-right: 1rem;
        margin-bottom: 2rem;
    }

    .header h1 {
        font-size: 1.7rem;
    }

    .travaux-section {
        padding: 1.5rem;
    }

    .travaux-item {
        padding: 1.5rem;
    }
}

@media (max-width: 768px) {
    .header {
        padding: 2.5rem 1rem;
        margin-top: 7rem;
        margin-left: 0.5rem;
        margin-right: 0.5rem;
        margin-bottom: 1.5rem;
        border-radius: 15px;
    }

    .header h1 {
        font-size: 1.5rem;
    }

    .header .lead {
        font-size: 0.9rem;
    }

    .travaux-section {
        padding: 1.5rem 1rem;
        margin-bottom: 2rem;
        border-radius: 15px;
    }

    .travaux-title {
        font-size: 1.2rem;
    }

    .travaux-item {
        padding: 1.5rem 1rem;
    }

    .travaux-item h3 {
        font-size: 1.15rem;
    }

    .travaux-img {
        height: 200px;
    }

    .btn-don {
        padding: 0.85rem 2rem;
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .header {
        margin-top: 6rem;
        margin-left: 0.5rem;
        margin-right: 0.5rem;
        margin-bottom: 1rem;
        padding: 2rem 1rem;
    }

    .header h1 {
        font-size: 1.3rem;
    }

    .header h1 i {
        font-size: 1.15rem;
    }

    .header .lead {
        font-size: 0.85rem;
    }

    .travaux-section {
        padding: 1rem;
        border-radius: 12px;
    }

    .travaux-title {
        font-size: 1.1rem;
        flex-direction: column;
        gap: 0.5rem;
    }

    .travaux-title i {
        font-size: 1.3rem;
    }

    .travaux-item {
        padding: 1rem;
        margin-bottom: 1.5rem;
    }

    .travaux-item h3 {
        font-size: 1rem;
    }

    .travaux-img {
        height: 180px;
        margin-bottom: 1rem;
    }

    .status-badge {
        padding: 0.4rem 1rem;
        font-size: 0.75rem;
    }

    .btn-don {
        padding: 0.75rem 1.5rem;
        font-size: 0.95rem;
        width: 100%;
    }

    .progress {
        height: 10px;
    }
}

@media (max-width: 375px) {
    .header {
        margin-top: 35%;
        margin-left: 0.5rem;
        margin-right: 0.5rem;
        padding: 1.5rem 0.75rem;
    }

    .header h1 {
        font-size: 1.3rem;
    }

    .travaux-title {
        font-size: 1.1rem;
    }

    .travaux-item h3 {
        font-size: 1rem;
    }
}
