/* Reset & Base */
body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background-color: #0e274a;
}

/* Section description */
section.flotte-description {
    max-width: 1200px;
    margin: 30px auto;
    padding: 20px;
    background-color: #333;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    color: #fff;
}

section.flotte-description h2 {
    color: #0066cc;
    font-size: 1.8rem;
    margin-bottom: 10px;
}

section.flotte-description p {
    margin-bottom: 15px;
    text-align: justify;
}

/* Boutons */
button {
    background-color: #fff;
    border: 1px solid #222;
    color: #ccc;
    padding: 15px;
    margin: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 300px;
    text-align: center;
}

button:hover {
    border: 2px solid #8a2be2;
    color: white;
}

/* Titres */
h2 {
    color: #007bff;
    font-size: 2rem;
}

h3 {
    color: #007bff;
    font-size: 1.8rem;
    font-weight: normal;
}

p {
    font-size: 1rem;
    margin-bottom: 2em;
    white-space: pre-line;
    color: #ccc;
}

/* Conteneur des images */
.image-container {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* Ratio 16:9 */
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s, box-shadow 0.3s;
}

.image-container:hover {
    transform: scale(1.05);
    box-shadow: 0px 6px 20px 
}

/* Images */
.image-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Texte overlay */
.image-container .text-overlay {
    position: absolute;
    bottom: 10px;
    left: 10px;
    color: white;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 5px 10px;
    border-radius: 5px;
}

/* Grille des images */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: auto;
    padding: 20px;
}

/* Media Queries pour l'adaptabilité */

/* Tablettes (768px - 1024px) */
@media screen and (max-width: 1024px) {
    section.flotte-description {
        max-width: 90%;
        padding: 15px;
    }

    h2 {
        font-size: 1.6rem;
    }

    h3 {
        font-size: 1.4rem;
    }

    .grid-container {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

/* Mobiles (moins de 768px) */
@media screen and (max-width: 768px) {
    body {
        padding: 10px;
    }

    section.flotte-description {
        max-width: 95%;
        padding: 10px;
    }

    h2 {
        font-size: 1.4rem;
    }

    h3 {
        font-size: 1.2rem;
    }

    button {
        width: 100%;
        max-width: 250px;
        padding: 10px;
        font-size: 14px;
    }

    .grid-container {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}
