/* Style global */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    background: linear-gradient(to bottom, #ffda79, #ff9478, #ff6b6b); /* Fond dégradé vif et joyeux */
    background-size: cover;
    background-attachment: fixed;
    color: #333;
}

/* En-tête */
header {
    background-color: #ff6347; /* Rouge doux pour le header */
    color: white;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

header h1 {
    margin: 0;
    font-size: 3.5rem; /* Taille plus grande pour le titre */
    text-align: center;
    z-index: 1;
    font-family: "Script MT Bold"; /* Style "Script MT Bold" pour le titre */
}

header p {
    font-size: 1.5rem; /* Taille pour le slogan */
    font-style: italic; /* Italique pour le slogan */
    margin: 0;
}

.header-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    z-index: 1;
}

.header-buttons button {
    font-weight: bold; /* Texte en gras */
    background-color: #ffcc33; /* Couleur vive */
    color: #333;
    border: 2px solid #ffcc33;
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
}

.header-buttons button:hover {
    background-color: #ffb400;
    color: white;
}

/* Rond de connexion */
.login-circle {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.login-circle .circle {
    width: 40px;
    height: 40px;
    background-color: #ffcc33;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.login-circle .circle:hover {
    background-color: #ffb400;
}

.login-circle .circle span {
    font-size: 1.2rem;
    color: #333;
}

.login-circle a {
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: bold;
}

.login-circle a:hover {
    text-decoration: underline;
}

/* Section principale */
main {
    padding: 1.5rem;
}

/* Filtres */
.filters {
    background: rgba(255, 255, 255, 0.9);
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.filters h2 {
    margin-top: 0;
}


/* Formulaire */
.form-container {
    background: rgba(255, 255, 255, 0.9);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    margin: 0 auto;
}

.form-container h2 {
    margin-top: 0;
    text-align: center;
    font-size: 2rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.form-group select, .form-group textarea {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
}

.social-login {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.social-login button {
    background-color: #db4437; /* Google Red */
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    border: none;
    transition: background-color 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-group input {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
}

.form-group input[type="submit"] {
    background-color: #ff6347;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0.75rem 1.5rem;
    transition: background-color 0.3s;
}

.form-group input[type="submit"]:hover {
    background-color: #e5533c;
}

.form-group .inline-options {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
    font-style: italic;
    font-size: 0.9rem;
}

.form-group input[type="file"] {
    padding: 0.3rem;
}


.social-login button.facebook {
    background-color: #3b5998; /* Facebook Blue */
}

.social-login button:hover {
    opacity: 0.8;
}

.register-link {
    text-align: center;
    margin-top: 1rem;
}

.register-link a {
    color: #ff6347;
    text-decoration: none;
    font-weight: bold;
}

.register-link a:hover {
    text-decoration: underline;
}

.forgot-password {
    text-align: right;
    margin-top: 0.5rem;
}

.forgot-password a {
    color: #ff6347;
    text-decoration: none;
    font-weight: bold;
}

.forgot-password a:hover {
    text-decoration: underline;
}

button {
    background-color: #ff6347;
    color: white;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
}

button:hover {
    background-color: #e5533c;
}

/* Liste des événements */
.event-list {
    background: rgba(255, 255, 255, 0.9);
    padding: 1rem;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.event {
    border-bottom: 1px solid #ddd;
    padding: 1rem 0;
}

.event:last-child {
    border-bottom: none;
}

.event h3 {
    margin: 0 0 0.5rem;
}

.event p {
    margin: 0.25rem 0;
}

.event-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

.event-buttons button {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

/* Pied de page */
footer {
    text-align: center;
    padding: 1rem;
    background: #ff6347;
    color: white;
    margin-top: 1.5rem;
}

footer p {
    margin: 0;
}

/* Media Queries pour Responsivité */
@media (max-width: 768px) {
    header {
        align-items: center;
    }

    .header-buttons {
        flex-direction: column;
        gap: 0.5rem;
        margin-top: 1rem;
    }

    .form-group label,
    .form-group select {
        font-size: 0.9rem;
    }

    button {
        font-size: 0.9rem;
        padding: 0.4rem 0.8rem;
    }

    .event h3 {
        font-size: 1.2rem;
    }

    .event p {
        font-size: 0.9rem;
    }

    .login-circle {
        top: 0.5rem;
        right: 0.5rem;
    }

    .login-circle .circle {
        width: 30px;
        height: 30px;
    }

    .login-circle .circle span {
        font-size: 1rem;
    }

    .login-circle a {
        font-size: 0.8rem;
    }
}

.blur {
    filter: blur(5px);
}

/* Sections pour choisir le type d'utilisateur */
.user-type {
    display: flex;
    justify-content: space-around;
    background: rgba(255, 255, 255, 0.9);
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.user-type div {
    background-color: #ffcc33;
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
    flex: 1;
    margin: 0 1rem;
    cursor: pointer;
    transition: transform 0.2s;
}

.user-type div:hover {
    transform: scale(1.05);
    background-color: #ffb400;
}

.user-type h2 {
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.user-type p {
    font-size: 1rem;
    margin: 0.5rem 0;
}

.user-type img {
    width: 50px;
    height: 50px;
    margin-bottom: 0.5rem;
}

.center {
    text-align: center;
}

.container {
    background: rgba(255, 255, 255, 0.9);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    text-align: center;
    max-width: 600px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    margin: auto;
}

.container h1 {
    font-size: 2.5rem;
    color: #ff6347;
    margin-bottom: 1rem;
    font-family: "Script MT Bold";
}

.container p {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.container a {
    display: inline-block;
    margin-top: 1.5rem;
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    background-color: #ffcc33;
    color: #333;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
}

.container a:hover {
    background-color: #ffb400;
    color: white;
}

.back-to-login {
    text-align: center;
    margin-top: 1rem;
}

.back-to-login a {
    color: #ff6347;
    text-decoration: none;
    font-weight: bold;
}

.back-to-login a:hover {
    text-decoration: underline;
}

.confirmation-container {
    background: rgba(255, 255, 255, 0.9);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    margin: 2rem auto;
    text-align: center;
}

.confirmation-container h2 {
    margin-top: 0;
    font-size: 2rem;
    color: #4CAF50; /* Couleur verte pour indiquer le succès */
}

.confirmation-container p {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.confirmation-container a {
    background-color: #ff6347;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    text-decoration: none;
    font-size: 1rem;
    transition: background-color 0.3s;
}

.photo {
    width: 100%;
}

#button_remove_photo {
    cursor: pointer;
    background: yellow;
    padding: 3px;
}


.avatar {
    vertical-align: middle;
    width: 100px;
    height: 100px;
    border-radius: 50%;
}

.profile-section {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.profile-photo {
    text-align: center;
    margin-bottom: 2rem;
}

.profile-photo label {
    display: block;
    margin-top: 1rem;
    font-weight: bold;
}

.visibility-options {
    font-style: italic;
    font-size: 0.9rem;
    margin-top: 0.5rem;
    display: flex; /* Alignement horizontal */
    gap: 1rem; /* Espace entre les options */
}

.visibility-options label {
    margin-right: 1rem;
}

.other-profession {
    display: none; /* Masqué par défaut */
    margin-top: 0.5rem;
}


.profile-section h2 {
    color: #ff6347;
}

.profile-section > textarea, .profile-section > input, .profile-section > select {
    width: 100%;
    padding: 0.5rem;
    margin-top: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
}

.confirmation-box {
    background: rgba(255, 255, 255, 0.9);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: block;
    max-width: 600px;
    margin: auto;
    text-align: center;
}

.confirmation-box h2 {
    color: #ff6347;
    margin-bottom: 1rem;
}

.confirmation-box p {
    margin: 1rem 0;
    font-size: 1.1rem;
}

.confirmation-box button {
    font-weight: bold;
    background-color: #ffcc33;
    color: #333;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
}

.confirmation-box button:hover {
    background-color: #ffb400;
    color: white;
}



.contact-info {
    margin-bottom: 1.5rem;
}

.contact-info p {
    font-size: 0.9rem;
    margin: 0.5rem 0;
}

.contact-info strong {
    color: #ff6347;
}

.contact-form {
    text-align: left;
    width: 100%;
}

.contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    font-size: 0.9rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.7rem;
    margin-bottom: 1rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 0.9rem;
}

.contact-form button {
    width: 100%;
    padding: 0.7rem;
    font-size: 1rem;
    background-color: #ffcc33;
    color: #333;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
}

.contact-form button:hover {
    background-color: #ffb400;
    color: white;
}

.reliability-section {
    margin-top: 2rem;
}

.reliability-section h3 {
    color: #ff6347;
    margin-bottom: 1rem;
}

.reliability-status {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.reliability-status span {
    padding: 0.5rem 1rem;
    border-radius: 5px;
    background-color: #ffcc33;
    color: #333;
    font-weight: bold;
}

.upcoming-events {
    margin-top: 2rem;
}

.upcoming-events h3 {
    color: #ff6347;
    margin-bottom: 1rem;
}


.upcoming-events table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
}

.upcoming-events table th, .upcoming-events table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.upcoming-events table th {
    background-color: #ff6347;
    color: white;
}

.upcoming-events table tr:hover {
    background-color: #f5f5f5;
}


/* Détails de l'événement */
.event-details {
    background: rgba(255, 255, 255, 0.9);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    margin: 0 auto;
}

.event-details h2 {
    margin-top: 0;
    text-align: center;
    font-size: 2rem;
    color: #ff6347;
}

.event-details img {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 1.5rem;
}

.event-details p {
    margin: 1rem 0;
    font-size: 1.1rem;
}

.event-details .info-label {
    font-weight: bold;
    color: #ff6347;
}

.event-details .info-value {
    margin-left: 0.5rem;
}

/* Champ organisateur */
.organizer-info {
    background-color: #f0f0f0; /* Gris clair */
    padding: 1rem;
    border-radius: 5px;
    margin-bottom: 1.5rem;
}

.organizer-info p {
    margin: 0;
    font-size: 1rem;
    color: #555; /* Texte gris */
}

.event-details .buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.event-details .buttons button {
    font-weight: bold;
    background-color: #ffcc33;
    color: #333;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
}

.event-details .buttons button:hover {
    background-color: #ffb400;
    color: white;
}

.participants-list {
    background-color: #f0f0f0; /* Gris clair */
    padding: 1rem;
    border-radius: 5px;
    margin-bottom: 1.5rem;
}

.participants-list h3 {
    margin-top: 0;
    font-size: 1.2rem;
    color: #ff6347;
}

.participants-list ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.participants-list ul li {
    margin: 0.5rem 0;
    font-size: 1rem;
    color: #555; /* Texte gris */
}

.error {
    color: red;
}

.pointer {
    cursor: pointer;
}
