/* === Styles de base === */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    text-align: center;
}
#apms{
  font-size: 65px;  
  text-shadow: 2px 2px 5px white;
}

header {
    background: #004466;
    color: white;
    padding: 15px;
}

nav ul {
    list-style: none;
    padding: 0;
}

nav ul li {
    display: inline;
    margin: 0 15px;
}

nav ul li a {
    color: white;
    text-decoration: none;
}

button {
    background: #ff6600;
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
}

.hero {
    padding: 70px 40px;
    background-image: url('fond.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    font-size: 25px;
}

.texte {
  color: black;
  text-shadow: 2px 2px 5px white;
  font-size: 20px;
}
.hero-content {
    background-color: #b0b0b0;
}

.banner {
    background: #004466;
    color: white;
    padding: 20px;
    font-size: 25px;
}

footer {
    background: #222;
    color: white;
    padding: 10px;
}

.container {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
}

.image-section img {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 10px;
    max-width: 300px;
    height: auto;
}

.text-section {
    background-color: #004466;
    color: white;
    padding: 20px;
    border-radius: 10px;
    width: 40%;
}

#text-accueil {
    padding-top: 45px;
    padding-bottom: 40px;
    line-height: 25px;
}

.btn {
    display: inline-block;
    margin-top: 10px;
    padding: 10px 15px;
    background-color: #5b3a97;
    color: white;
    text-decoration: none;
    border-radius: 5px;
}

.services {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 20px;
}

.service {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.service img {
    width: 100%;
    max-width: 300px;
    border-radius: 10px;
}

button {
    background-color: #5b3a97;
    color: white;
    padding: 10px 15px;
    border: none;
    cursor: pointer;
    margin-top: 10px;
}

#purple {
    color: white;
    background-color: #004466;
    padding: 45px;
}

#info {
    color: white;
    background-color: #004466;
    padding: 20px;
}

#apms {
    height: 50px;
}

/* === Galerie === */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    padding-top: 25px;
}

.gallery img {
    width: 100%;
    cursor: pointer;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.gallery img:hover {
    transform: scale(1.03);
}

.lightbox {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.lightbox-img {
    max-width: 90%;
    max-height: 80vh;
    border-radius: 10px;
}

.lightbox .close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    cursor: pointer;
}

/* === Contact === */
.contact-section {
    max-width: 1000px;
    margin: 0 auto;
    padding: 50px 20px;
    font-family: 'Segoe UI', sans-serif;
    color: #333;
}

.contact-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 40px;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.info-block h3 {
    color: #007BFF;
    margin-bottom: 5px;
}

.info-block a {
    color: #333;
    text-decoration: none;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-form input,
.contact-form textarea {
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1rem;
}

.contact-form button {
    padding: 12px;
    background-color: #007BFF;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

.contact-form button:hover {
    background-color: #0056b3;
}

a {
    color: white;
}

/* === Cookie banner === */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #004466;
    color: white;
    padding: 15px;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    z-index: 9999;
}

.cookie-banner p {
    margin: 0 0 10px 0;
    text-align: center;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
}

button {
    padding: 8px 15px;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    font-weight: bold;
}

.btn-green {
    background-color: #4CAF50;
    color: white;
}

.btn-red {
    background-color: #f44336;
    color: white;
}

/* === Responsive === */
@media (max-width: 768px) {
    /* Conteneur texte + image : passe en colonne */
    .container {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    /* Texte + images prennent toute la largeur */
    .text-section {
        width: 100%;
    }

    .image-section img {
        width: 100%;
        max-width: 100%;
    }

    /* Navigation : menu vertical */
    nav ul li {
        display: block;
        margin: 10px 0;
    }

    /* Services en colonne */
    .services {
        flex-direction: column;
        align-items: center;
    }

    .service {
        width: 100%;
        max-width: 400px;
    }

    /* Galerie : 1 image par ligne sur mobile */
    .gallery {
        grid-template-columns: 1fr;
    }
}
