:root {
    --primary-color: #1C4896;
    --bg-color: #f4f7f4;
    --text-color: #0b1d30;
    --secondary-color: #9292fd;
    --background-color: #f7f7fd;
    --text-color: #333;
    --card-bg: #ffffff;
}

body {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--background-color);
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* En-tête et sélecteur de langue */
header {
    display: flex;
    justify-content: flex-end;
    padding: 1rem 2rem;
    background-color: var(--card-bg);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.lang-switch {
    display: flex;
    gap: 10px;
}

.lang-btn {
    text-decoration: none;
    background: none;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s;
}

.lang-btn:hover, .lang-btn.active {
    background-color: var(--primary-color);
    color: white;
}

main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    text-align: center;
}

h1 {
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

p.subtitle {
    font-size: 1.2rem;
    color: #555;
    max-width: 600px;
    margin-bottom: 2rem;
    line-height: 1.5;
}

.links-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
    max-width: 500px;
}

.card-link {
    display: block;
    background-color: var(--card-bg);
    padding: 1.5rem;
    border-radius: 10px;
    text-decoration: none;
    color: var(--text-color);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.2s, box-shadow 0.2s;
    border-left: 5px solid var(--secondary-color);
}

.card-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.card-link.disabled {
    border-left-color: #ccc;
    color: #999;
    cursor: not-allowed;
    pointer-events: none;
}

.card-title {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.card-link.disabled .card-title {
    color: #999;
}

.card-desc {
    font-size: 0.9rem;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
    align-items: center;
}

.contact-link {
    color: var(--primary-color);
    font-size: 0.95rem;
    font-weight: 600;
    overflow-wrap: anywhere;
}
.contact-link-placeholder {
    color: #777;
    font-weight: normal;
}

.badge-container {
    display: flex;
    flex-direction: row;
    gap: 12px;
    margin: 12px;
    align-items: center;
    justify-content: center;
}
/* Switches to stacked layout on mobile screens */
@media (max-width: 500px) {
    .badge-container {
        flex-direction: column;
    }
}

.badge img {
    height: 50px;
    transition: transform 0.2s ease;
}

.badge img:active {
    transform: scale(0.95);
}

footer {
    text-align: center;
    padding: 1.5rem;
    background-color: var(--primary-color);
    color: white;
    font-size: 0.9rem;
}

footer a {
    color: #c8e6c9;
    text-decoration: none;
}