/* Reset simple */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', Arial, Helvetica, sans-serif;
}

/* Corps de page */
body {
    line-height: 1.6;
    background-color: #f5f7fa;
    color: #333;
    overflow-x: hidden;
    animation: fadeBody 1s ease-in;
}

@keyframes fadeBody {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Header */
header {
    background: linear-gradient(135deg, #0d6efd, #0a58ca);
    color: white;
    text-align: center;
    padding: 50px 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    animation: slideDown 0.8s ease-out;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

@keyframes slideDown {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Navigation */
nav {
    background-color: #111;
}

nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    flex-wrap: wrap;
}

nav li {
    margin: 0;
}

nav a {
    display: block;
    padding: 15px 20px;
    color: white;
    text-decoration: none;
    font-weight: bold;
    position: relative;
    transition: all 0.3s;
}

nav a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 5px;
    width: 0;
    height: 3px;
    background-color: #0d6efd;
    transition: width 0.3s;
}

nav a:hover::after {
    width: 100%;
}

nav a:hover {
    color: #fff;
}

/* Contenu principal */
main {
    max-width: 1100px;
    margin: 40px auto;
    padding: 0 20px;
}

/* Sections */
section {
    margin-bottom: 50px;
}

section h2 {
    color: #0d6efd;
    margin-bottom: 15px;
    border-bottom: 3px solid #0d6efd;
    display: inline-block;
    padding-bottom: 5px;
    animation: fadeIn 1s ease forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px);}
    to { opacity: 1; transform: translateY(0);}
}

section h3 {
    margin-top: 20px;
    color: #222;
}

/* Listes */
ul {
    margin-top: 10px;
    padding-left: 20px;
}

ul li {
    margin-bottom: 8px;
}

/* Horaires */
#horaires p {
    margin: 5px 0;
}

/* Contact */
address {
    font-style: normal;
    line-height: 1.8;
    background-color: #e9f2ff;
    padding: 15px;
    border-left: 5px solid #0d6efd;
}

/* Footer */
footer {
    text-align: center;
    padding: 20px;
    background-color: #111;
    color: white;
    margin-top: 40px;
}

/* Responsive */
@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        text-align: center;
    }

    header h1 {
        font-size: 1.8rem;
    }

    main {
        margin: 20px auto;
    }
}

/* FORMULAIRE CONTACT CENTRÉ & ANIMÉ */
.form-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 75vh;
    padding: 20px;
    background-color: #f5f7fa;
}

.form-wrapper {
    background-color: #ffffff;
    padding: 35px 30px;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    max-width: 500px;
    width: 100%;
    text-align: center;
    transform: scale(0.9);
    opacity: 0;
    animation: fadeScale 0.7s forwards 0.3s;
}

@keyframes fadeScale {
    to { opacity: 1; transform: scale(1);}
}

.form-wrapper h2 {
    color: #0d6efd;
    margin-bottom: 10px;
    font-size: 1.8rem;
}

.form-wrapper p {
    color: #555;
    margin-bottom: 25px;
}

/* FORMULAIRE */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-form label {
    font-weight: bold;
    text-align: left;
    display: block;
    color: #0d6efd;
    transform: translateX(-20px);
    opacity: 0;
    animation: labelAppear 0.5s forwards;
}

@keyframes labelAppear {
    to { transform: translateX(0); opacity: 1;}
}

.contact-form input,
.contact-form textarea {
    padding: 14px;
    border: 1px solid #ccc;
    border-radius: 12px;
    font-size: 1rem;
    width: 100%;
    transition: all 0.4s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 12px rgba(13,110,253,0.3);
    outline: none;
}

.contact-form button {
    background-color: #0d6efd;
    color: white;
    font-weight: bold;
    padding: 16px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-size: 1.15rem;
    transition: all 0.3s ease;
    transform: translateY(0);
}

.contact-form button:hover {
    background-color: #0a58ca;
    transform: translateY(-3px) scale(1.05);
}

/* Responsive Formulaire */
@media (max-width: 600px) {
    .form-wrapper {
        padding: 25px 20px;
    }
}

/* GALERIE D'IMAGES */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.gallery img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.gallery img:hover {
    transform: scale(1.05) rotate(1deg);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}


/* Responsive global */
@media (max-width: 1024px) {
    header h1 {
        font-size: 2rem;
        padding: 40px 15px;
    }

    nav a {
        padding: 12px 15px;
        font-size: 0.95rem;
    }

    main {
        margin: 30px auto;
        padding: 0 15px;
    }

    section h2 {
        font-size: 1.5rem;
    }

    section h3 {
        font-size: 1.2rem;
    }
}

/* Tablette et petits écrans */
@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        text-align: center;
    }

    header h1 {
        font-size: 1.8rem;
    }

    main {
        margin: 20px auto;
        padding: 0 15px;
    }

    .gallery {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 10px;
    }

    .gallery img {
        height: 150px;
    }

    .contact-form input,
    .contact-form textarea {
        padding: 12px;
    }

    .contact-form button {
        padding: 14px;
        font-size: 1rem;
    }
}

/* Mobiles */
@media (max-width: 480px) {
    header h1 {
        font-size: 1.5rem;
        padding: 30px 10px;
    }

    nav a {
        padding: 10px 12px;
        font-size: 0.9rem;
    }

    .gallery {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 8px;
    }

    .gallery img {
        height: 120px;
    }

    .form-wrapper {
        padding: 20px 15px;
    }

    .contact-form input,
    .contact-form textarea {
        font-size: 0.95rem;
    }

    .contact-form button {
        padding: 12px;
        font-size: 1rem;
    }
}

/* Réduire padding sections sur petits écrans */
@media (max-width: 360px) {
    main {
        margin: 15px auto;
        padding: 0 10px;
    }

    section h2 {
        font-size: 1.3rem;
    }

    section p {
        font-size: 0.9rem;
    }
}

