

/* Style de base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Corps de la page */
body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
	width: 80%;
    margin: 0 auto;
}

/* En-tête */
header {
    background-color: white;
    color: #274e64;
    border: 0px solid #13181d;
    position: relative; /* needed for the decorative underline */
    padding-bottom: 18px; /* create space for the line */
}

    /* Logo left variant (used on pages where logo sits top-left) */
    .logo-left {
        position: absolute;
        left: 130px;
        top: 12px;
        text-align: left;
        max-width: 100px;
    }
	

    /* Small image logo inside .logo-left */
    .logo-left img {
        width: 120px;
        height: auto;
        display: block;
    }


	

/* Decorative line under header (centered, 80% width) */
header::after {
    content: "";
    position: absolute;
    left: 10%;
    right: 10%;
    bottom: 8px; /* sits slightly above the bottom to respect padding */
    height: 3px;
    background: linear-gradient(90deg, #274e64 0%, #c59a66 100%);
    border-radius: 2px;
  
}

.centred {
    text-align: center;
}

.text-align{
	text-align:justify;
}

header h1 {
    margin-bottom: 10px;
    /* Softer, smoother heading */
    font-family: 'Raleway', 'Montserrat', 'Lato', Arial, sans-serif;
    font-weight: 300;               /* lighter weight for a soft look */
    font-size: 2.1rem;              /* slightly smaller for elegance */
    line-height: 1.18;
    letter-spacing: 0.8px;          /* a touch more spacing for airy feel */
    color: #234859;                 /* slightly softer/darker blue */
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: color 0.25s ease, transform 0.25s ease;
}

nav ul {
    list-style-type: none;
}

nav ul li {
    display: inline;
    margin: 0 15px;
    font-style: italic;
}

nav ul li a {
    color: #274e64;
    text-decoration: none;
    font-weight: bold;
    font-style: italic;
    padding: 5px 10px;
    border-radius: 3px;
    transition: all 0.3s ease;
}

nav ul li a:hover {
    background-color: #274e64;
    color: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* Galerie */
main {
    padding: 50px;
}

h2, h4 {
   
    margin-bottom: 10px;
    font-style: italic;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    justify-items: center;
	
	
}


/*rajouté par chat gpt*/
@media (max-width: 768px) {
    .gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .gallery {
        grid-template-columns: repeat(1, 1fr);
    }
}






.image-container {
    overflow: hidden;
    position: relative;
}

.image {
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
    border: 1px solid #000;  /* Fine black border */
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);  /* Subtle shadow */
}

.image-index{
	width: 30%;
    height: auto;
    border: 5px solid #654632;  /* Fine border */
	display: block;
    margin-left: auto;
    margin-right: auto;
}
	
.image-container:hover .image {
    transform: scale(1.2);
}

.image-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 120px;
    margin: 20px 0;
}


.size_logo{
    width: 20%;
    height: 250px;
    object-fit: contain;
}

.small-image {
    width: 20%;
    height: auto;
    object-fit: cover;
	border:3px solid #654632;
}

/* Lightbox styles */
.lightbox {
    position: fixed;
    inset: 0;
    display: none;
    justify-content: center;
    align-items: center;
    background: rgba(0,0,0,0.85);
    z-index: 9999;
    padding: 20px;
}
.lightbox.open { display: flex; }
.lightbox .lb-content {
    position: relative;
    max-width: 1000px;
    width: 90%;
    max-height: 90%;
    text-align: center;
}
.lightbox img {
    max-width: 100%;
    max-height: 80vh;
    display: block;
    margin: 0 auto;
    border-radius: 4px;
}
.lightbox .caption {
    color: #fff;
    margin-top: 8px;
    font-size: 0.95rem;
}
.lightbox .close {
    position: absolute;
    top: -10px;
    right: -10px;
    background: #fff;
    color: #333;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
}
.lightbox .nav {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    pointer-events: none;
}
.lightbox .nav button {
    background: rgba(255,255,255,0.08);
    border: none;
    color: #fff;
    padding: 12px 14px;
    font-size: 20px;
    cursor: pointer;
    border-radius: 4px;
    pointer-events: auto;
}

/* Pied de page */
footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 10px 0;
    position: relative;
    bottom: 0;
    width: 100%;
}