/* Reset des styles */
body, h1, h2, h3, p, ul, li, a, button {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Corps principal */
body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.8;
    background: linear-gradient(to bottom, #e0f7fa, #ffffff);
    background-image: url('wave-pattern.png'); /* Texture subtile */
    background-repeat: no-repeat;
    background-size: cover;
    color: #333;
    margin: 0;
}

/* Conteneur général */
.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
    padding: 20px;
}

/* En-tête */
header {
    background: linear-gradient(to right, #0077c8, #005f99);
    color: #ffffff;
    height: 100vh; /* 100% de la hauteur de la fenêtre */
    display: flex; /* Pour centrer le contenu */
    flex-direction: column; /* Aligner verticalement */
    justify-content: center; /* Centrer verticalement */
    align-items: center; /* Centrer horizontalement */
}

header h1 {
    font-size: 3.5rem;
    text-transform: uppercase;
    margin-bottom: 10px;
    letter-spacing: 2px;
    text-shadow: 2px 4px 6px rgba(0, 0, 0, 0.4);
}

header p {
    font-size: 1.4rem;
    font-style: italic;
    color: #ffcc00;
    margin-top: 5px;
}

/* Décoration d'en-tête */
header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('plumbing-tools.png') center/contain no-repeat; /* Illustration liée à la plomberie */
    opacity: 0.1;
    z-index: -1;
}
.header-small {
    height: 200px; /* Hauteur ajustable */
    padding: 40px 0; /* Ajuste l'espacement interne */
}

/* Navigation */
nav {
    margin-top: -20px;
}

nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    background: #005f99;
    padding: 15px 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    border-bottom: 3px solid #ffcc00;
}

nav ul li {
    margin: 0 20px;
}

nav ul li a {
    text-decoration: none;
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: bold;
    padding: 10px 15px;
    transition: all 0.3s ease;
}

nav ul li a:hover {
    color: #ffcc00;
    background: #ffffff;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* Section principale */
main {
    background: #ffffff;
    padding: 40px;
    margin: 30px auto;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

main h2 {
    font-size: 2.5rem;
    color: #0077c8;
    margin-bottom: 20px;
    text-transform: uppercase;
    border-bottom: 2px solid #ffcc00;
    display: inline-block;
    padding-bottom: 5px;
}

main p {
    font-size: 1.2rem;
    margin-bottom: 15px;
    line-height: 1.8;
}

/* Boutons */
button, .btn {
    padding: 12px 30px;
    font-size: 1.1rem;
    border: none;
    border-radius: 8px;
    background: linear-gradient(to right, #0077c8, #005f99);
    color: #ffffff;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

button:hover, .btn:hover {
    background: #ffcc00;
    color: #005f99;
    transform: translateY(-3px);
}

/* Pied de page */
footer {
    background: #333333;
    color: #ffffff;
    text-align: center;
    padding: 20px 0;
    border-top: 5px solid #ffcc00;
    position: relative;
}

footer p {
    font-size: 1rem;
}

/* Animation d'ondes en bas */
footer::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 0;
    width: 100%;
    height: 20px;
    background: url('wave-footer.png') repeat-x;
    z-index: 1;
    animation: wave 5s linear infinite;
}

/* Style du conteneur pour la tooltip */
.tooltip-container {
    margin-top: 35px;: ;
    position: relative;
    display: inline-block;
    cursor: pointer;
    font-weight: bold;
    color: #007bff;
}

/* Style de la bulle (tooltip) */
.tooltip-text {
    visibility: hidden;
    opacity: 0;
    width: 250px;
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 10px;
    border-radius: 8px;
    font-size: 14px; /* Taille du texte réduite */
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%) scale(0.8);
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
}


/* Petite flèche sous la bulle */
.tooltip-text::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -10px;
    border-width: 10px;
    border-style: solid;
    border-color: #333 transparent transparent transparent;
}

/* Effet au survol */
.tooltip-container:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
    transform: translateX(-50%) scale(1);
}

.tooltip-container:hover {
color: #ff0000;
}

/* Activation au tap sur mobile */
.tooltip-container:active .tooltip-text {
    visibility: visible;
    opacity: 1;
    transform: translateX(-50%) translateY(-5px);
}

.img-small {
    max-width: 20%;  /* Réduit l’image à 50% du conteneur */
    height: auto;     /* Garde les proportions */
}

.header-bands {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    z-index: 1;
    overflow: hidden;
}

/* Chaque bande occupe 1/3 de la largeur */
.band {
    width: 33.33%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0.8;
}


/* Images de fond pour chaque bande */
.band-left {
    background-image: url('assets/images/IMG_20250206_104911.jpg'); /* Remplace par tes images */
}

.band-center{
    background-image: url('assets/images/IMG_20250206_104913.jpg');
}

.band-right {
    background-image: url('assets/images/IMG_20250206_104926.jpg');
}


@media (max-width: 768px) { /* Version mobile */
    .img-small {
        max-width: 80%; /* Plus petit sur mobile */
    }
}

/* Animation de vagues */
@keyframes wave {
    from {
        background-position: 0 0;
    }
    to {
        background-position: 100% 0;
    }
}
