/* === Partie Principale === */
html, body
    {
    /* overflow-y: scroll; /* Show vertical scrollbar */
    color: #f3e6d0;
    background-color:#000000;
    font-family: palatino linotype;
    background-image:url(../img/v_fond.png);
    background-repeat:repeat-x;
    background-attachment: fixed;
    margin: 0;
    /* Pour IE : */
    margin:0px auto;
    text-align: center;
	height: 100%;
    }
#pics_bg_barb
    {
    background-image:url(../img/b_fond.png);
    background-repeat:no-repeat;
    background-attachment: fixed;
    background-position:left 417px;
    /*
    min-height: 800px;
    height:auto !important;
    height:800px;*/
    height: 100%;
    }
#pics_bg_civ
    {
    background-image:url(../img/c_fond.png);
    background-repeat:no-repeat;
    background-attachment: fixed;
    background-position:right 349px;
    /*
    min-height: 800px;
    height:auto !important; 
    height:800px;*/
    height: 100%;
    }
#page {  
    width: 900px;
    background-color:#000000;
    background-color:rgba(0, 0, 0, 0.5);
    /* Pour IE : */
    margin:0px auto;
    /* text-align:left; */
    display: flex;
    flex-direction: column;
    height: 100%;
	padding: 10px;
  	box-sizing: border-box; /* le padding compte dans la hauteur */    
}

/* --- Element mis en forme commun a tout le site --- */


/* --- thin scrollbar --- */
* {
    scrollbar-width: thin;
    scrollbar-color: rgba(0,0,0,0.3) transparent; 
}
*::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
*::-webkit-scrollbar-track {
    background: transparent;
}
*::-webkit-scrollbar-thumb {
    background-color: rgba(0,0,0,0.5);
    border-radius: 3px;
    border: 1px solid transparent;
}

body a img {border:  none ; }
h2{ color: #D5B982; text-align:center; }
h3{ color: #D5B982; text-align:center; }
h4{ color: #D5B982; text-align:center; }
a {
  color: #FF914D; /* cuivre clair */
  text-decoration: none;   
}
a:hover, a:focus {
	color: #FFD166;     
	cursor: pointer;
	text-shadow: 0 0 4px #FFB347;
}

/* Pour element type barre de menu, etc. */
.body_item {

    border-top: 4px solid #D5B982;
    border-bottom: 4px solid #D5B982;
    display: flex;
    align-items: center;
    justify-content: space-between; 
    padding: 5px;
    min-height: 1.5em;
    position: relative;


}
div .pg1
    {
    clear:both;
    margin:10px; padding:10px;
    text-align: justify;
    }       
button 
    {
    background-color:#000000;
    border: 1px solid #D5B982;
    color:  #D5B982;
    padding: 12px 12px;
    text-align: center;
    display: inline-block;
    margin: 4px 2px;
    cursor: pointer;
    width:150px;
    font-weight: bold; 
    border-radius: 12px;
    }
button:hover 
    {
    background-color:#D5B982;
    border: 1px solid #000000;
    color:  #000000;
    }    

/* === Partie Header === */
#header
    {
    padding: 10px;
    overflow : hidden;
    flex: 0 0 auto;
    }
#header img.logo /* le logo, flottant dans la gauche du header */
    {
    float:left; 
    height: 70px;
    }   
#title_header       /* un titre, flottant dans la droite du header. */
    {
    font-family: times, Times New Roman, times-roman, georgia, serif;
    font-size: 22px;
    line-height: 22px;
    letter-spacing: -1px;
    font-weight: bold;
    float:right;
    margin-top:50px; margin-right:0px;
    text-align : right;
    }   

#main_menu {
    display: flex;
    gap: 30px;
    margin-inline-start: auto;
    height: 24px;
    align-items: center; /* ← centre verticalement */
}

/* === Partie Footer === */
#footer
    {
    text-align: center;
    font-style:italic;
    overflow : hidden;
	margin-bottom: 20px; /* espace sous le footer */
    border-top: solid 4px #D5B982;
    border-bottom: solid 4px #D5B982;
    padding:5px;
    flex: 0 0 auto; /* prennent leur hauteur naturelle */

        height: 48px;

    }
/* === Drapeaux === */
#language-selector {  
    position: relative;  
    display: inline-block;  
}  
#language-current {  
    display: flex;  
    align-items: center;  
    gap: 5px;  
    cursor: pointer;  
    color: #f3e6d0;  
    font-size: 14px;  
    /* Supprimé : padding, background, border, border-radius */  
}  
  
#language-current:hover {  
    color: #FFD166; /* Même couleur que les liens au hover */  
    text-shadow: 0 0 4px #FFB347;  
    /* Supprimé : background */  
}
  
.dropdown-arrow {  
    font-size: 10px;  
    /* transition: transform 0.2s;   */
}  
  
.language-dropdown-menu {  
    position: absolute;  
    top: 100%;  
    left: 0;  
    min-width: 140px;  
    background: rgba(0,0,0,0.9);  
    /* border: 1px solid #D5B982;   */
    border-radius: 4px;  
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    z-index: 1000;  
    margin-top: 2px;  
}  
  
.language-option {  
    display: flex;  
    align-items: center;  
    justify-content: space-between;  
    padding: 10px 12px;  
    color: #f3e6d0;  
    text-decoration: none;  
}  
  
.language-option:last-child {  
    border-bottom: none;  
}  
  
.language-option:hover {  
    background: rgba(213, 185, 130, 0.2);  
}  
  
.language-option.active .checkmark {  
    opacity: 1;  
}  
  
.checkmark {  
    opacity: 0;  
    color: #D5B982;  
    font-weight: bold;  
}
/* === Partie Centrale (Main) === */
#main
    {
    flex: 1 1 auto; /* prend tout l’espace restant */
    display: flex;
    min-height: 0;
	padding: 40px;
  	box-sizing: border-box; /* le padding compte dans la hauteur */
    }

#main_p {
	flex: 1 1 auto;
    box-sizing: border-box;
	position: relative;
  	overflow-y: auto;
	background: rgba(0,0,0,0.5);
	padding: 1em;
	height: 100%;

  /* Masque dégradé seulement en bas */
  -webkit-mask-image: linear-gradient(to bottom,
    rgba(0,0,0,1) 0%,      /* opaque en haut */
    rgba(0,0,0,1) 93%,     /* opaque jusqu’à 95% */
    rgba(0,0,0,0) 100%);   /* fade-out sur les 5% du bas */
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%;
  mask-image: linear-gradient(to bottom,
    rgba(0,0,0,1) 0%,
    rgba(0,0,0,1) 93%,
    rgba(0,0,0,0) 100%);
  mask-repeat: no-repeat;
  mask-size: 100% 100%;
}

/* === Page de presentation === */
.img_float_left { float:left; }
.img_float_right { float:right; }
.img_cadre
    {
    margin:5px;
    padding:5px;
    border:1px solid black;
    background: white;
    color:black;
    }
.img_cadre.i500 { width:500px; }
.img_cadre.i320 { width:320px; }
    
/* === Page de Connection/Compte === */
#main_p form { text-align: center; }

/* === Page de mondes === */

table#wtable {
  width: 100%;
    border: 1px solid;
     border-collapse: collapse;
}
#wtable td, #customers th {
  padding: 8px;
  text-align: center;
}

#wtable tr{
    background:  rgba(180, 180, 180, 0.3);
    border-bottom: 1px solid #444444; 
}

#wtable td.status{
    width: 64px;
    text-align: center;
    margin-left: 24px;
}

#wtable th {
  padding-top: 12px;
  padding-bottom: 12px;
  text-align: left;
  background-color: #444444;
  color: #D5B982;
  text-align: center;
}

img.status 
    {
    width : 16px;
    height : 16px;
    margin-left: 4px;
    margin-right: 4px;
    } 

button.world { width:150px; }

button.disabled {
    opacity: 0.4;
    cursor: not-allowed;
} 

.nbplayer {
    font-size: 0.8em;
}




/* ======================================================== */
/* CREDITS 		*/  
/* ======================================================== */


/* SECTION CREDIT - style générique film avec liens */  
.credits-section {  
    border: 1px solid grey;  
}  
  
.credit-line {  
    display: flex;  
    justify-content: space-between;  
}  
  
.credit-name {  
    text-align: end; /* au lieu de right */  
    flex: 1;  
    padding-inline-end: 1em; /* au lieu de padding-right */  
    white-space: nowrap;  
        font-variant: small-caps;
}  
  
.credit-role {  
    text-align: start; /* au lieu de left */  
    flex: 1;  
    padding-inline-start: 1em; /* au lieu de padding-left */  
    white-space: nowrap;  
}  
  
.credit-name,  
.credit-role {  
    line-height: 1.2em;  
    vertical-align: middle;  
}  
  
/* responsive */  
@media (max-width: 600px) {  
    .credit-line {  
        flex-direction: column;  
        align-items: flex-start;  
    }  
    .credit-name, .credit-role {  
        text-align: start; /* au lieu de left */  
        padding: 0;  
    }  
}


/* === TITRE DU PROJET === */

#credits-frame {
padding-top: 700px;
padding-bottom: 700px;
  box-sizing: border-box; /* le padding compte dans la hauteur */
        overflow-y: hidden;       /* on masque le scroll ici */
}
/* optionnel : cacher scrollbar pour Chrome/Safari */
#credit-frame::-webkit-scrollbar {
    display: none;
}
#credits-frame .project-title {
    font-size: 2em;
    text-align: center;
    color: #D5B982;
    margin-bottom: 0.2em;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* === TITRE PRINCIPAL === */
/* H1 : CRÉDITS */
#credits-frame h1 {
    font-size: 1.8em;
    text-align: center;
    color: #D5B982;
    margin-bottom: 1em;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

#credits-frame .copyright {
    font-size: 1em;
    text-align: center;
    color: #f3e6d0;
    margin-bottom: 1em;
    font-style: italic;
    margin-top: 20em;
}

/* === TITRES DE SECTION === */
#credits-frame h2 {
    font-size: 1.5em;
    text-align: center;
    color: #f3e6d0;
    margin: 1.5em 0 0.5em 0;
    /* border-bottom: 1px solid rgba(255,255,255,0.3);*/
    padding-bottom: 0.3em;
    text-transform: uppercase;
}
/* === SOUS-TITRES / RÔLES === */
#credits-frame h3 {
    font-size: 1.2em;
    text-align: center;
    color: #f3e6d0;
    margin: 0.5em 0;
    font-style: italic;
}

/* ======================================================== */
/* Style du bouton Jouez! */  
/* ======================================================== */
/* Conteneur du bouton Jouez */
#play_button_container {
    position: absolute;
    left: 50%;
    bottom: 0; /* bord inférieur de la barre */
    transform: translateX(-50%) translateY(50%); /* chevauchement */
    display: flex;
    justify-content: center;
    overflow: visible; /* le bouton ne sera pas rogné */
}

/* Bouton */
.play-button {
    background: linear-gradient(135deg, #FF914D 0%, #FFD166 50%, #FF914D 100%);
    border: 2px solid #D5B982;
    color: #000000 !important;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(255, 145, 77, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    position: relative;
    padding: 10px 20px;
    font-size: 18px;
    border-radius: 40px;
    cursor: pointer;
    overflow: hidden; /* pour que l'effet shine soit rogné au bouton */
}

/* effet shine */
.play-button::before {  
    content: '';  
    position: absolute;  
    top: 0;  
    left: -100px;                  
    width: 50px;                  
    height: 100%;  
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.6),
        transparent
    );  
    transform: skewX(-25deg);  
    opacity: 0;  
    pointer-events: none;  
    transition: opacity 0.3s;
}

/* état hover */
.play-button:hover {
    background: linear-gradient(135deg, #FFD166 0%, #FF914D 50%, #FFD166 100%);
    box-shadow: 0 6px 20px rgba(255, 145, 77, 0.5),
                inset 0 1px 0 rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
    text-shadow: 0 0 8px rgba(0, 0, 0, 0.3);
}

/* déclenchement shine sur hover */
.play-button:hover::before {
    opacity: 1;
    animation: shine 0.8s forwards;
}

@keyframes shine {
    from { left: -100px; }
    to   { left: calc(100% + 100px); }
}

/* état clic */
.play-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(255, 145, 77, 0.4),
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* responsive */
@media (max-width: 768px) {
    .play-button {
        padding: 12px 25px;
        font-size: 16px;
    }
}
