/* ============================= */
/*        STYLE GLOBAL           */
/* ============================= */

body {
    font-family: Arial, sans-serif;
    color: #000;
    margin: 0;
    padding: 0;
    position: relative;
    min-height: 100vh;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(13, 71, 161, 0.6), rgba(13, 71, 161, 0.6)),
        url('images/terrain_fond.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
}

/* ============================= */
/*            HEADER             */
/* ============================= */

header {
    text-align: center;
    padding: 30px 20px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(6px);
    border-radius: 12px;
    margin: 20px auto;
    max-width: 1200px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

header .logo {
    height: 140px;
    width: auto;
    margin-bottom: 15px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    filter: drop-shadow(0 6px 12px rgba(0,0,0,0.3));
}

header h1 {
    margin: 0;
    font-size: 2.2em;
    color: #0D47A1;
    letter-spacing: 1px;
}

header nav {
    margin-top: 15px;
    display: flex;
    justify-content: center;
    gap: 25px;
}

header nav a {
    color: #0D47A1;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05em;
    position: relative;
    transition: 0.3s;
}

header nav a::after {
    content: "";
    position: absolute;
    width: 0%;
    height: 2px;
    background: #D32F2F;
    left: 0;
    bottom: -4px;
    transition: 0.3s;
}

header nav a:hover::after {
    width: 100%;
}

/* ============================= */
/*          SECTIONS             */
/* ============================= */

section, footer {
    background: rgba(255, 255, 255, 0.88);
    padding: 25px;
    border-radius: 12px;
    margin: 20px auto;
    max-width: 1200px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

/* ============================= */
/*         TITRES & TEXTE        */
/* ============================= */

h1, h2, h3 {
    color: #0D47A1;
}

p {
    line-height: 1.6;
}

/* ============================= */
/*           BOUTONS             */
/* ============================= */

a.btn {
    display: inline-block;
    background: linear-gradient(135deg, #D32F2F, #B71C1C);
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 30px;
    font-weight: bold;
    transition: 0.3s;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

a.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.3);
}

/* ============================= */
/*           TABLEAUX            */
/* ============================= */

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

table th, table td {
    border: 1px solid #ccc;
    padding: 10px;
    text-align: left;
}

table th {
    background-color: #0D47A1;
    color: white;
}

/* ============================= */
/*            LISTES             */
/* ============================= */

ul {
    list-style: none;
    padding: 0;
}

ul li {
    margin-bottom: 8px;
}

/* ============================= */
/*            CONTACT            */
/* ============================= */

.contact {
    text-align: left;
}

.contact form input,
.contact form textarea {
    width: 100%;
    padding: 10px;
    margin-top: 8px;
    border-radius: 6px;
    border: 1px solid #ccc;
    box-sizing: border-box;
}

.contact form button {
    margin-top: 12px;
    background: linear-gradient(135deg, #D32F2F, #B71C1C);
    color: white;
    padding: 10px 18px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: 0.3s;
}

.contact form button:hover {
    transform: translateY(-2px);
}

/* ============================= */
/*            FOOTER             */
/* ============================= */

footer {
    text-align: center;
    color: #0D47A1;
    font-weight: bold;
}

/* ============================= */
/*           GALERIE             */
/* ============================= */

.gallery-section {
    text-align: center;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.gallery-item {
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    transition: transform 0.3s ease;
    height: 250px; /* hauteur uniforme pour toutes les images */
    /* Pour carrés parfaits, remplacer par : aspect-ratio: 1 / 1; */
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* recadrage propre */
    transition: transform 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.08);
}

.gallery-item:hover {
    transform: translateY(-5px);
}