/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f4f4f4;
    color: #333;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ===== HEADER ===== */
header {
    background: #28495B;
    color: white;
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
}

.logo {
    font-size: 28px;
    font-weight: bold;
    letter-spacing: 2px;
}

.logo span {
    color: #5cb8a5;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

nav a {
    color: white;
    text-decoration: none;
    font-size: 16px;
    padding: 8px 16px;
    border-radius: 4px;
    transition: background 0.3s ease;
}

nav a:hover,
nav a.active {
    background: rgba(255, 255, 255, 0.15);
}

/* ===== MAIN CONTENT ===== */
main {
    flex: 1;
    max-width: 1200px;
    width: 100%;
    margin: 40px auto;
    padding: 0 20px;
}

.page-title {
    color: #28495B;
    margin-bottom: 30px;
    font-size: 32px;
    border-bottom: 3px solid #5cb8a5;
    padding-bottom: 10px;
    display: inline-block;
}

/* ===== REGLEMENT - DEUX COLONNES ===== */
.reglement-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.reglement-column {
    background: white;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border-top: 4px solid #28495B;
}

.reglement-column h2 {
    color: #28495B;
    margin-bottom: 20px;
    font-size: 22px;
}

.article {
    margin-bottom: 25px;
}

.article h3 {
    color: #5cb8a5;
    font-size: 16px;
    margin-bottom: 6px;
    font-weight: 600;
}

.article p {
    color: #555;
    line-height: 1.6;
    font-size: 14px;
}

/* ===== CARDS POUR ACCUEIL, ALBUM, EQUIPE ===== */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.card {
    background: white;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border-top: 4px solid #28495B;
    transition: transform 0.2s ease;
}

.card:hover {
    transform: translateY(-5px);
}

.card h3 {
    color: #28495B;
    margin-bottom: 12px;
}

.card p {
    color: #666;
    line-height: 1.6;
}

/* ===== FOOTER ===== */
footer {
    background: #28495B;
    color: white;
    text-align: center;
    padding: 20px;
    font-size: 14px;
    margin-top: auto;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .reglement-container {
        grid-template-columns: 1fr;
    }
    
    .header-top {
        flex-direction: column;
        gap: 15px;
    }
    
    nav ul {
        gap: 15px;
    }
}