/* Fond général */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    max-width: 100%;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

body {
    background: #CB6BE6;
    font-family: Arial, sans-serif;
    display: flex;
    flex-direction: column;
    position: relative;
}

body.no-scroll {
    overflow: hidden;
}

/* Bandeau supérieur — FIXE */
.top-banner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 140px;
    background: #CB6BE6;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5px 40px;
    box-sizing: border-box;
    z-index: 100;
}

.top-banner h1 {
    color: white;
    font-size: 32px;
    margin: 0;
}

.globe-icon {
    height: 100px;
    cursor: pointer;
}

/* Popup stylisée */
#hover-label {
    position: fixed;
    background: white;
    padding: 12px 16px;
    border-radius: 10px;
    box-shadow: 0 2px 8px #0004;
    display: none;
    z-index: 2000;
    pointer-events: none;
    max-width: 260px;
    font-size: 15px;
}

/* Colonnes FIXES */
.columns-wrapper {
    position: fixed;
    top: 140px; /* sous le header */
    left: 0;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    padding: 20px;
    z-index: 1;
    box-sizing: border-box;
    overflow: hidden;
}

.column {
    position: relative;
    min-height: 1200px;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.flag {
    width: 100%;
    display: block;
    margin-bottom: 20px;
    z-index: 2;
    cursor: pointer;
	position: relative;
}

.column-bg {
    flex: 1;
    background-image: var(--bg);
    background-size: cover;
    background-position: top;
    z-index: 1;
	position: relative;
}

/* Contenu — défile SOUS les drapeaux */
.page-content {
    position: relative;
    z-index: 10;
    background: rgba(255, 255, 255, 0.85);
    padding: 30px;

    /* AUTOMATIQUE : commence sous les drapeaux */
    margin: calc(140px + 20px + 10vw) auto 40px auto;

    max-width: 980px;
    width: 75%;
    border-radius: 12px;
    box-shadow: 0 4px 10px #0003;
    text-align: center;
}

/* Footer */
footer {
    background: #CB6BE6;
    color: white;
    padding: 20px;
    font-weight: bold;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 10;
}

.footer-content {
    width: 75%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-text {
    flex: 1;
    text-align: left;
    font-weight: bold;
    color: white;
    font-size: 16px;
}

.footer-icons {
    display: flex;
    gap: 15px;
}

.footer-icons .icone-mini {
    width: 32px;
    height: 32px;
    cursor: pointer;
    transition: transform 0.2s;
}

.footer-icons .icone-mini:hover {
    transform: scale(1.15);
}

/* Cadre type "menu de restaurant" */
.menu-box {
    max-width: 650px;
    margin: 0 auto 20px auto;
    border: 2px solid #8b4bb0;
    border-radius: 12px;
    background: #fffdf8;
    box-shadow: 0 3px 8px #0002;
    overflow: hidden;
    padding: 10px 20px;
}

.menu-header {
    background: #8b4bb0;
    color: white;
    text-align: center;
    padding: 8px 12px;
    font-weight: bold;
    font-size: 18px;
}

.menu-content {
    padding: 12px 18px;
}

.menu-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.menu-content li {
    margin: 6px 0;
}

/* Tableau des activités */
.activities-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    background: #ffffffcc;
}

.activities-table th,
.activities-table td {
    border: 1px solid #ccc;
    padding: 8px 10px;
    text-align: left;
}

.activities-table th {
    background: #8b4bb0;
    color: white;
}

/* Lien vers le jeu du mot caché */
.jeu-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 20px;
    background: #8b4bb0;
    color: white;
    text-decoration: none;
    font-weight: bold;
    box-shadow: 0 2px 6px #0003;
}

.jeu-link:hover {
    background: #a35fd0;
}

.icon-loupe {
    font-size: 28px;
}

/* Style générique pour les blocs de texte */
.text-bloc {
    line-height: 1.65;
    font-size: 17px;
    text-align: justify;
    margin-bottom: 20px;
}

/* Images */
.menu-image {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 12px;
    box-shadow: 0 2px 6px #0002;
}

.menu-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
}

.menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
    flex: 1;
}

.menu-list li {
    margin: 6px 0;
    font-size: 17px;
}

.menu-image-right {
    width: 200px;
    border-radius: 8px;
    box-shadow: 0 2px 6px #0002;
}

/* --- AFFICHES : VERSION "CLONE ANIMÉ" --- */
.affiche-wrapper {
    position: relative;
    margin-bottom: 30px;
}

.affiche-miniature {
    width: 180px;
    float: left;
    margin: 0 50px 30px 0;
    transform: rotate(-30deg);
    transform-origin: center center;
    cursor: pointer;
    border-radius: 8px;
    box-shadow: 0 4px 10px #0003;
}

.affiche-clone {
    position: fixed;
    top: 0;
    left: 0;
    transform-origin: top left;
    z-index: 9999;
    pointer-events: none;
    border-radius: 8px;
    box-shadow: 0 8px 20px #0006;
    transition: transform 0.6s ease;
}

.affiche-overlay {
    position: fixed;
    inset: 0;
    background: #0008;
    backdrop-filter: blur(2px);
    z-index: 9998;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.titre-jour {
    position: relative;
    text-align: center;
    margin-bottom: 20px;
}

.icone-actions {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    gap: 10px;
}

.icone-mini {
    width: 32px;
    height: 32px;
    cursor: pointer;
    transition: transform 0.2s;
}

.icone-mini:hover {
    transform: scale(1.1);
}
