/* ✅ Réinitialisation des styles pour éviter les conflits */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

/* ✅ Style du corps */
body {
    background-color: #f4f4f4;
    color: #333;
}

/* ✅ En-tête compact */
/* ✅ Correction : Uniformisation de l'en-tête */

/* ✅ Header uniformisé pour toutes les pages */
header {
    background-color: #003366;
    padding: 10px 0;
    text-align: center;
    width: 100%;
    position: relative;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 0;
    padding: 0;
}

nav ul li {
    display: inline;
}

nav ul li a {
    text-decoration: none;
    color: white;
    font-weight: bold;
    padding: 10px 15px;
    font-size: 18px;
    transition: color 0.3s ease-in-out;
}

/* ✅ Page active */
nav ul li a.active {
    color: #ffcc00;
    font-weight: bold;
    position: relative;
}

nav ul li a.active::after {
    content: "";
    display: block;
    width: 50%;
    height: 3px;
    background-color: #ffcc00;
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
}

/* ✅ Hover */
nav ul li a:hover {
    color: #ffcc00;
}



/* ✅ Section Héros */
.hero {
    text-align: center;
    padding: 70px 20px; /* Ajustement pour éviter que ça paraisse trop grand */
    background: url('../images/image_realisation_4.jpg') no-repeat center center/cover;
    background-size: cover;
    color: white;
    position: relative;
}

.hero h2 {
    font-size: 2.2em;
    font-weight: bold;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7);
}

.hero button {
    padding: 12px 25px;
    background-color: #ffcc00;
    color: #003366;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
}

.hero button:hover {
    background-color: #ffa500;
}

/* ✅ Section Services */
.services {
    display: flex;
    justify-content: center;
    gap: 30px;
    padding: 40px 20px; /* Légère réduction du padding */
    flex-wrap: wrap;
}

.service {
    width: 30%;
    text-align: center;
    background-color: #fff;
    padding: 15px; /* Réduction pour plus d’harmonie */
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.service:hover {
    transform: scale(1.05);
}

.service img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

/* ✅ Effet d'apparition en douceur */
img.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

img.loaded {
    opacity: 1;
    transform: translateY(0);
}

/* ✅ Section Nos Services */
.hero-services {
    text-align: center;
    padding: 40px 20px;
    background-color: #003366;
    color: white;
}

.hero-services h2 {
    font-size: 34px;
}

.hero-services p {
    font-size: 16px;
    margin-bottom: 20px;
}

/* ✅ Liste des Catégories */
.categories {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 15px;
}

.categories span {
    font-size: 18px;
    font-weight: bold;
    background-color: #ffcc00;
    color: #003366;
    padding: 8px 15px;
    border-radius: 5px;
    text-transform: uppercase;
}

/* ✅ Section Clientèle */
.clientele {
    text-align: center;
    padding: 35px 20px;
}

.clientele h2 {
    font-size: 24px;
    color: #003366;
    margin-bottom: 15px;
}

.clientele-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    font-size: 16px;
}

.clientele-list div {
    background-color: #e6e6e6;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: bold;
}

/* ✅ Effet d'overlay pour les images en plein écran */
.fullscreen-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.fullscreen-overlay img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 30px;
    color: white;
    cursor: pointer;
    font-weight: bold;
}

/* ✅ Bouton Retour en Haut */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #003366;
    color: white;
    border: none;
    padding: 10px 15px;
    font-size: 18px;
    cursor: pointer;
    border-radius: 50%;
    display: none;
    transition: opacity 0.3s ease-in-out;
}

.back-to-top.show {
    display: block;
    opacity: 1;
}

/* ✅ Pied de page */
footer {
    text-align: center;
    padding: 15px;
    background-color: #003366;
    color: white;
    margin-top: 40px;
}

/* ✅ Force un header identique sur toutes les pages */
header {
    background-color: #003366 !important;
    padding: 10px 0 !important; /* Forcer une hauteur réduite */
    text-align: center;
    width: 100%;
    position: relative;
}

/* ✅ Forcer la suppression d'un éventuel style dans accueil.css */
.accueil header {
    padding: 10px 0 !important;
}

header {
    background-color: #003366;
    padding: 10px 0 !important; /* Petite hauteur */
    text-align: center;
    width: 100%;
    position: relative;
}

