/* =========== GLOBAL =========== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #ffffff;
    color: #222;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: #00bcd4;
}
a:hover {
    color: #58b887;
}

/* =========== HEADER =========== */
header {
    background-color: #f8f8f8;
    border-bottom: 3px solid #58b887;
    padding: 1rem 2rem;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.header-container h1 {
    font-size: 2rem;
    color: #000;
    margin-left: 1rem;
}

.header-container img {
    height: 60px;
    width: auto;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

nav a {
    font-weight: bold;
    font-size: 1rem;
    color: #222;
    transition: color 0.2s ease-in-out;
}

nav a:hover {
    color: #58b887;
}

/* =========== MAIN =========== */
main {
    padding: 0.3rem;
}

/* =========== FOOTER =========== */
footer {
    background-color: #f0f0f0;
    padding: 1.5rem 2rem;
    border-top: 3px solid #00bcd4;
    text-align: center;
    font-size: 0.9rem;
    margin-top: 4rem;
}

.footer-container a {
    color: #00bcd4;
}

.footer-container a:hover {
    color: #58b887;
}

/* =========== EVENT BLOCK =========== */
.event {
    border: 1px solid #e0e0e0;
    padding: 1rem;
    border-left: 5px solid #00bcd4;
    background-color: #fafafa;
    margin-bottom: 1.5rem;
    border-radius: 4px;
}

.event h3 {
    margin-bottom: 0.5rem;
    color: #333;
}

.event p {
    margin: 0.2rem 0;
}
.header-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    text-align: center;
}

.header-container img {
    height: 70px;
    width: auto;
}

.club-name h1 {
    font-size: 2rem;
    color: #000;
    margin: 0;
}

/* Responsive (empile logo + nom club si petit écran) */
@media screen and (max-width: 600px) {
    .header-container {
        flex-direction: column;
        gap: 0.5rem;
    }

    .club-name h1 {
        font-size: 1.5rem;
    }
}
form {
    max-width: 600px;
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
input, textarea {
    padding: 0.6rem;
    border: 1px solid #ccc;
    border-radius: 4px;
}
button {
    padding: 0.7rem;
    background-color: #00bcd4;
    color: white;
    font-weight: bold;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}
button:hover {
    background-color: #58b887;
}
.event img {
    border-radius: 5px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.gallery-item img {
    width: 100%;
    height: auto;
    border-radius: 6px;
    transition: transform 0.2s ease;
    object-fit: cover;
}

.gallery-item img:hover {
    transform: scale(1.05);
}
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.7);
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 80vh;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0,0,0,0.6);
    animation: zoom 0.3s ease-in-out;
}

@keyframes zoom {
    from {transform: scale(0.8);}
    to {transform: scale(1);}
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #ffffff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

.modal-close:hover {
    color: #58b887;
}
.modal-arrow {
    position: absolute;
    top: 50%;
    font-size: 3rem;
    color: white;
    font-weight: bold;
    cursor: pointer;
    user-select: none;
    padding: 0 1rem;
    transform: translateY(-50%);
    transition: color 0.2s ease;
    z-index: 1001;
}

.modal-arrow:hover {
    color: #58b887;
}

.modal-arrow.left {
    left: 10px;
}

.modal-arrow.right {
    right: 10px;
}
.hero {
    background: url('/assets/img/hero.jpg') center/cover no-repeat;
    color: white;
    padding: 6rem 2rem;
    text-align: center;
    position: relative;
}

.hero::after {
    content: "";
    background: rgba(0, 0, 0, 0.4);
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 1;
}

.hero-text {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
}

.btn-hero, .btn-contact {
    background-color: #00bcd4;
    padding: 0.8rem 1.5rem;
    color: white;
    border-radius: 5px;
    font-weight: bold;
    text-decoration: none;
    transition: background 0.3s;
}
.btn-hero:hover, .btn-contact:hover {
    background-color: #58b887;
}

section {
    padding: 2rem 1rem;
    max-width: 1000px;
    margin: auto;
}

section h2 {
    margin-bottom: 1rem;
    color: #222;

}

section ul {
    list-style: none;
    padding-left: 0;
}

section ul li {
    padding: 0.5rem 0;
    font-size: 1.1rem;
}

.cta {
    text-align: center;
    margin-top: 2rem;
}
.btn-login {
    margin-left: 1rem;
    background-color: #ffffff;
    border: 2px solid #00bcd4;
    color: #00bcd4;
    padding: 0.5rem;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
}
.btn-login:hover {
    background-color: #58b887;
    color: white;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0; top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
}

.modal-content-box {
    background: white;
    padding: 2rem;
    max-width: 400px;
    margin: 10% auto;
    border-radius: 8px;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 10px; right: 15px;
    font-size: 2rem;
    cursor: pointer;
    color: #888;
}
.modal-close:hover {
    color: #000;
}
.btn-login {
    background-color: transparent;
    border: 2px solid #00bcd4;
    color: #00bcd4;
    padding: 0.4rem 1rem;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-login:hover {
    background-color: #00bcd4;
    color: white;
}
.dashboard {
    max-width: 800px;
    margin: auto;
    padding: 2rem;
    background: #fdfdfd;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.05);
}

.dashboard h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
	font-size: 1.4rem;
}

.dashboard-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}

.dashboard-links a {
    background: #00bcd4;
    color: white;
    padding: 1rem;
    text-align: center;
    border-radius: 5px;
    font-weight: bold;
    transition: background 0.2s ease;
}

.dashboard-links a:hover {
    background: #58b887;
}

.logout-btn {
    background: #e74c3c !important;
}
.logout-btn:hover {
    background: #c0392b !important;
}
.user-role-icon {
    font-size: 1.6rem;
    margin-left: 1rem;
    display: inline-block;
    cursor: default;
}
.user-role-icon:hover {
    opacity: 0.7;
}
.logout-link {
    border: 2px solid #e74c3c;
    color: #e74c3c;
    background: transparent;
    padding: 0.4rem 1rem;
    border-radius: 4px;
    font-weight: bold;
    transition: all 0.3s;
}
.logout-link:hover {
    background: #e74c3c;
    color: #fff;
}
.welcome-user {
    margin-left: 1rem;
    font-weight: bold;
    color: #444;
}
.user-role-icon {
    font-size: 1.6rem;
    margin-left: 1rem;
    align-self: center;
}
.presence-lists {
    margin-top: 1rem;
    background-color: #f4f4f4;
    padding: 1rem;
    border-radius: 6px;
}
.presence-lists ul {
    margin: 0.5rem 0 1rem 1rem;
}
.presence-lists li {
    list-style-type: "👤 ";
    margin: 0.2rem 0;
}
.presence-buttons {
    margin-top: 1rem;
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.presence-btn {
    padding: 0.5rem 1rem;
    border: none;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.presence-btn:hover {
    opacity: 0.85;
}
.presence-btn {
    padding: 0.5rem 1rem;
    font-weight: bold;
    border: 2px solid #ccc;
    background-color: white;
    color: #333;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.presence-btn:hover {
    border-color: #888;
}

.active-present {
    background-color: #00b894 !important;
    color: white !important;
    border-color: #00b894 !important;
}

.active-absent {
    background-color: #d63031 !important;
    color: white !important;
    border-color: #d63031 !important;
}
.btn-ajouter-event {
    display: inline-block;
    background-color: #00bcd4;
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.btn-ajouter-event:hover {
    background-color: #58b887;
}
.event-actions {
    margin-top: 1rem;
    display: flex;
    gap: 1rem;
}

.btn-edit, .btn-delete {
    padding: 0.4rem 0.8rem;
    border-radius: 5px;
    font-weight: bold;
    color: white;
    text-decoration: none;
}

.btn-edit {
    background-color: #3498db;
}

.btn-edit:hover {
    background-color: #2980b9;
}

.btn-delete {
    background-color: #e74c3c;
}

.btn-delete:hover {
    background-color: #c0392b;
}
section ul {
    list-style: none;
    padding-left: 0;
}

section ul li {
    padding: 1rem;
    background-color: #f9f9f9;
    margin-bottom: 1rem;
    border-radius: 6px;
    box-shadow: 0 0 4px rgba(0,0,0,0.05);
}
.btn-ajouter-doc {
    display: inline-block;
    background-color: #00bcd4;
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.btn-ajouter-doc:hover {
    background-color: #58b887;
}
.doc-actions {
    margin-left: 1rem;
    display: inline-block;
}

.doc-actions a {
    margin-left: 0.5rem;
    font-size: 1.2rem;
    text-decoration: none;
    color: #333;
    transition: color 0.2s ease;
}

.doc-actions a:hover {
    color: #d63031;
}
.table-docs {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.table-docs th,
.table-docs td {
    border: 1px solid #ddd;
    padding: 0.6rem;
    text-align: left;
}

.table-docs th {
    background-color: #00bcd4;
    color: white;
}

.table-docs tr:nth-child(even) {
    background-color: #f9f9f9;
}

.table-docs a {
    font-size: 1.2rem;
    margin-right: 0.5rem;
    color: #333;
}

.table-docs a:hover {
    color: #d63031;
}
.admin-links {
    list-style: none;
    margin-top: 1.5rem;
    padding: 0;
}
.admin-links li {
    margin-bottom: 1rem;
}
.admin-links a {
    background-color: #00bcd4;
    color: white;
    padding: 0.8rem 1.2rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
}
.admin-links a:hover {
    background-color: #58b887;
}
.admin-links a {
    background-color: #00bcd4;
    color: white;
    padding: 0.8rem 1.2rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
    margin-bottom: 0.5rem;
}

.admin-links a:hover {
    background-color: #58b887;
}
.comment-thread { margin-top: 1rem; }
.comment { margin-left: 1rem; padding: 0.5rem; border-left: 2px solid #ccc; margin-bottom: 1rem; }
.comment-meta { display: flex; align-items: center; gap: 0.5rem; font-size: 0.9rem; color: #555; }
.reply-form textarea { margin-top: 0.5rem; }
.comment {
    border-left: 2px solid #00bcd4;
    padding-left: 1rem;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.comment-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.3rem;
}

.comment-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 0.5rem;
    border: 2px solid #00bcd4;
    background-color: #fff;
}



.reply-btn {
    font-size: 0.9rem;
    color: #00bcd4;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    margin-top: 0.5rem;
}

.reply-form {
    margin-top: 0.5rem;
    padding-left: 1rem;
    border-left: 1px dashed #ccc;
}
.btn-like {
    background-color: transparent;
    border: 1px solid #e74c3c;
    color: #e74c3c;
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s ease;
}
.btn-like:hover {
    background-color: #e74c3c;
    color: white;
}
.like-count {
    margin-left: 0.5rem;
    font-weight: bold;
    color: #e74c3c;
}
.btn-like.liked {
    
    color: white;
    border-color: #e74c3c;
}


.gallery-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
}

.modal-image-content {
    display: block;
    margin: auto;
    max-width: 90%;
    max-height: 80vh;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0,0,0,0.6);
    animation: zoom 0.3s ease-in-out;
}

