/* ================= Global Styles ================= */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: #333;
    background-color: #ffffff;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #0d1b2a;
    color: white;
    padding: 10px 20px;
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .logo img {
    height: 60px;
}

header nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
}

header nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

header nav ul li a:hover {
    text-decoration: underline;
}

section {
    padding: 40px 20px;
}

section h1, section h2, section h3 {
    color: #0d1b2a;
}

ul {
    list-style-type: disc;
    margin-left: 20px;
}

form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

input, textarea {
    padding: 8px;
    font-size: 16px;
    width: 100%;
    max-width: 500px;
    box-sizing: border-box;
}

button {
    width: 150px;
    padding: 10px;
    background-color: #0d1b2a;
    color: white;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}

button:hover {
    background-color: #1b3a57;
    transform: scale(1.05);
}

footer {
    text-align: center;
    padding: 20px;
    background-color: #f2f2f2;
    color: #0d1b2a;
}

@media(max-width:768px){
    header { flex-direction: column; }
    header nav ul { flex-direction: column; gap: 10px; }
}

/* ================= About Section Background + Overlay ================= */
#about {
    position: relative;
    background-image: url('images/Coverpicture.png');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 120px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

#about .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 1;
}

#about .content {
    position: relative;
    z-index: 2;
    max-width: 900px;
}

/* ================= Services ================= */
#services .service {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
}

#services .service img {
    width: 60px;
    height: 60px;
}

#services .service h3 {
    margin: 0 0 5px 0;
}

/* ================= Gallery Slider ================= */
.gallery-slider {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    gap: 20px;
    padding-bottom: 10px;
}

.gallery-slider::-webkit-scrollbar {
    height: 8px;
}

.gallery-slider::-webkit-scrollbar-thumb {
    background: #0d1b2a;
    border-radius: 4px;
}

.gallery-item {
    flex: 0 0 25%;        /* 1/4 de la largeur */
    max-width: 280px;      
    min-width: 200px;      
    background: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin: 0 auto;        
}

.gallery-item img {
    width: auto;          
    max-width: 90%;       /* image nette et centrée */
    height: auto;          
    border-radius: 6px;
    margin: 15px auto;    
    display: block;
    cursor: zoom-in;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.gallery-item h4 {
    color: #0d1b2a;
    margin-bottom: 5px;
}

.gallery-item p {
    font-size: 14px;
    color: #555;
    padding: 0 10px;
}

@media(max-width:768px){
    .gallery-item {
        flex: 0 0 70%;    
        max-width: none;
        min-width: auto;
    }
}

/* ================= Media Links ================= */
.media-links, .media-links-footer {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.media-links a, .media-links-footer a {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #333;
    font-size: 12px;
}

.media-links img, .media-links-footer img {
    width: 32px;   /* taille normale des icônes */
    height: 32px;
    margin-bottom: 5px;
    transition: transform 0.2s;
}

.media-links a:hover img, .media-links-footer a:hover img {
    transform: scale(1.2);
}

/* ================= Publications Slider ================= */
.publication-slider {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 30px 0;
}

.slider-container {
    display: flex;
    overflow: hidden;
    width: 100%;
    max-width: 900px;
}

.publication-card {
    flex: 0 0 100%;
    background: #f9f9f9;
    border-radius: 8px;
    padding: 20px;
    margin: 0 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.publication-card h4 {
    color: #0d1b2a;
    margin-bottom: 10px;
}

.publication-card p {
    color: #333;
    font-size: 14px;
}

.prev-btn, .next-btn {
    background: #0d1b2a;
    color: #fff;
    border: none;
    font-size: 24px;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 5px;
    margin: 0 5px;
    transition: background 0.3s;
}

.prev-btn:hover, .next-btn:hover {
    background: #1b3a57;
}

@media(max-width:768px){
    .publication-card { padding: 15px; margin: 0 5px; }
}
