/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* PAGE */
body {
    width: 100%;
    height: 100vh;
    font-family: Verdana, Tahoma, sans-serif;
    overflow: hidden;
}

/* ================= TITRE ================= */

/* CONTAINER DU TITRE */
.title-container {
    position: absolute;
    top: 25px;
    width: 100%;
    display: flex;
    justify-content: center;
    z-index: 10;
}

/* CARD DU TITRE */
.title-card {
    background: rgba(255, 255, 255, 0.95);
    padding: 15px 25px; /* réduit le padding */
    border-radius: 12px; /* légèrement plus petit */
    text-align: center;
    max-width: 700px; /* réduit la largeur */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    backdrop-filter: blur(4px);
}

/* TEXTE DU TITRE */
.title-card h1 {
    font-size: 1.9rem; /* réduit la taille */
    font-weight: 600;
    letter-spacing: 0.5px;
    color: #1e1e2f; /* couleur unique pour tout le titre */
}

/* SOUS-TITRE */
.title-card p {
    margin-top: 6px;
    font-size: 1rem;
    opacity: 0.75;
    color: #1e1e2f; /* même couleur que le titre */
}

/* ================= SPLIT ================= */

.split-container {
    display: flex;
    height: 100vh;
}

/* PANNEAUX */
.panel {
    width: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    text-decoration: none;
    transition: width 0.4s ease, background-color 0.4s ease;
}

/* TEXTE PANNEAUX */
.panel h1 {
    font-size: 4rem;
    letter-spacing: 4px;
}

.panel p {
    margin-top: 15px;
    font-size: 1.2rem;
    opacity: 0.85;
}

/* SAUVEUR */
.sauveur {
    background: #f2f0ff;
    color: #2b2b2b;
}

.sauveur:hover {
    background: #dcd7ff;
}

/* FOSSOYEUR */
.fossoyeur {
    background: #fbcbed;
    color: #1e1e2f;
}

.fossoyeur:hover {
    background: #ffa5e4;
}

/* EFFET SPLIT */
.panel:hover {
    width: 55%;
}

.split-container:hover .panel:not(:hover) {
    width: 45%;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 900px) {
    .panel h1 {
        font-size: 3rem;
    }

    .title-card h1 {
        font-size: 1.9rem;
    }
}


.language-selector {
    position: absolute;
    top: 20px;
    right: 30px;
    z-index: 20;
}

.language-selector select {
    padding: 6px 10px;
    border-radius: 5px;
    border: 1px solid #ccc;
    font-size: 0.95rem;
    cursor: pointer;
}

/* Sélecteur de langue avec drapeaux */
.language-selector {
    position: absolute;
    top: 20px;
    right: 30px;
    display: flex;
    gap: 10px;
    z-index: 20;
}

.language-selector img {
    width: 28px;    /* taille du drapeau */
    height: auto;
    cursor: pointer;
    border-radius: 4px;
    transition: transform 0.2s;
}

.language-selector img:hover {
    transform: scale(1.2); /* léger effet au survol */
}
