/* Reset et police */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Fond animé - Dégradé */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    color: #333;
    background: linear-gradient(-45deg, #3a86ff, #8338ec, #e73c7e, #23a6d5);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    min-height: 100vh;
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Conteneur principal (pour que le contenu reste lisible) */
main {
    background-color: rgba(255, 255, 255, 0.95);
    margin: 1rem auto;
    padding: 1.5rem;
    max-width: 1200px;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0,0,0,0.1);
    min-height: calc(100vh - 120px);
}

/* Ajustement des sections pour plus de clarté */
section {
    background-color: rgba(255, 255, 255, 0.8);
    padding: 1.5rem;
    margin: 1rem 0;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

main {
    position: relative;
    z-index: 1; /* Pour que le contenu reste au-dessus du fond */
    background-color: rgba(249, 249, 249, 0.9); /* Fond semi-transparent pour les sections */
    margin: 0 auto;
    padding: 1rem;
    max-width: 1200px;
    min-height: calc(100vh - 120px);
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
}

/* En-tête */
header {
    background: linear-gradient(135deg, #3a86ff, #8338ec);
    color: white;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

header h1 {
    margin: 0;
    font-size: 1.8rem;
}

/* Navigation */
nav {
    background-color: #f1f1f1;
    padding: 0.8rem;
    text-align: center;
}

nav a {
    color: #3a86ff;
    margin: 0 0.8rem;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

nav a:hover {
    color: #8338ec;
}

/* Contenu principal */
main {
    padding: 1rem;
    max-width: 1200px;
    margin: 0 auto;
    min-height: calc(100vh - 200px);
}

section {
    background-color: white;
    margin: 1rem 0;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Images */
img {
    max-width: 100%;
    height: auto;
    margin: 0 1rem 1rem 0;
    border-radius: 8px;
    border: 3px solid #3a86ff;
}

@media (max-width: 768px) {
    img {
        float: none;
        display: block;
        margin: 0 auto 1rem;
    }
}

/* Pied de page */
footer {
    background: linear-gradient(135deg, #3a86ff, #8338ec);
    color: white;
    text-align: center;
    padding: 1rem;
    width: 100%;
}

/* Titre des sections */
h2 {
    color: #8338ec;
    border-bottom: 2px solid #3a86ff;
    padding-bottom: 0.5rem;
}

/* Paragraphes */
p {
    margin-bottom: 1rem;
}

/* Formulaire de contact */
form {
    max-width: 600px;
    margin: 0 auto;
}

form div {
    margin-bottom: 1rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: #8338ec;
}

input, select, textarea {
    width: 100%;
    padding: 0.7rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
}

textarea {
    resize: vertical;
    min-height: 120px;
}

button {
    background: linear-gradient(135deg, #3a86ff, #8338ec);
    color: white;
    border: none;
    padding: 0.7rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s;
    display: block;
    margin: 0 auto;
}

button:hover {
    background: linear-gradient(135deg, #8338ec, #3a86ff);
}

/* Media Queries pour le responsive */
@media (max-width: 768px) {
    header h1 {
        font-size: 1.4rem;
    }

    nav a {
        display: block;
        margin: 0.5rem 0;
    }

    main {
        padding: 0.5rem;
    }

    section {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.2rem;
    }

    footer p {
        font-size: 0.9rem;
    }
}
a, button {
  transition: transform 0.2s, box-shadow 0.2s;
}
a:hover, button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}
#backToTop {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #3a86ff;
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    cursor: pointer;
    display: none;
}
/* En-tête et pied de page semi-transparents */
header, footer {
    background-color: rgba(58, 134, 255, 0.9) !important;
}

/* Navigation */
nav {
    background-color: rgba(241, 241, 241, 0.95);
}

/* Liens et boutons */
a, button {
    transition: all 0.3s ease;
}

a:hover, button:hover {
    opacity: 0.8;
    transform: translateY(-1px);
}