/* ============================= */
/* THEME FANTASY POUR PAGE ACCUEIL */
/* ============================= */

/* Import police runique */
@import url('https://fonts.googleapis.com/css2?family=Uncial+Antiqua&display=swap');

/* --- Fond général --- */
body {
  min-height: 100%;
  margin: 0;
  font-family: 'Open Sans', sans-serif;
  background: radial-gradient(circle at 20% 20%, #1a1035, #090510 80%);
  background-attachment: fixed;
  color: #e0e0e0;
}

/* --- Titre principal --- */
h3, #captures_index h2 {
  font-family: 'Uncial Antiqua', serif;
  font-size: 6vw;
  text-align: center;
  color: #ffd36b;
  text-shadow: 0 0 8px rgba(210,139,255,0.8),
               0 0 20px rgba(125,227,255,0.5);
  margin-top: 50px;
}

.title_form{
  font-size: 3vw;
}

.form_action
{
  color: #ffd36b;
    background: rgba(0, 0, 0, 0.4);
    border: 2px solid #ffd36b;
    border-radius: 20px;
    max-width: 70%;
    line-height: 1.4em;
    box-shadow: 0 0 20px rgba(210, 139, 255, 0.4), inset 0 0 15px rgba(125, 227, 255, 0.2);
    text-shadow: 0 0 6px rgba(210, 139, 255, 0.8), 0 0 20px rgba(125, 227, 255, 0.5);
    animation: glowText 4s 
ease-in-out infinite alternate;
}

#captures_index h2 {
  font-size : 3.5vw;
}

/* --- Boutons d’accueil --- */
#accueil_link {
    position: absolute;
    bottom: 10%;
    margin-top: 50px;
    text-align: center;
    z-index: 100;
}

.btn-fantasy i , .link_bandeau i{
  margin-right: 10px;
  color: #ffd36b;
  text-shadow: 0 0 6px rgba(210,139,255,0.8),
               0 0 15px rgba(125,227,255,0.7);
  animation: shine 2s infinite alternate;
}

@keyframes shine {
  from { text-shadow: 0 0 6px rgba(210,139,255,0.8), 0 0 15px rgba(125,227,255,0.7); }
  to   { text-shadow: 0 0 12px rgba(255,211,107,0.9), 0 0 25px rgba(210,139,255,1); }
}






#captures_index  p
{   width: 80%;
    position: relative;
    left: 10%;
    text-align: justify;
    font-size: 3vw;
    font-weight: 1000;
  }

#accueil_link a {
font-family: 'Uncial Antiqua', serif;
    font-size: 2.5vh;
    text-align: center;
    margin: 20px;
    padding: 15px 25px;
    color: #ffd36b;
    background: rgb(0 0 0 / 40%);
    border: 2px solid #ffd36b;
    border-radius: 20px;
    /*max-width: 70%;*/
    line-height: 1.4em;
    box-shadow: 0 0 20px rgba(210, 139, 255, 0.4), inset 0 0 15px rgba(125, 227, 255, 0.2);
    text-shadow: 0 0 6px rgba(210, 139, 255, 0.8), 0 0 20px rgba(125, 227, 255, 0.5);
    animation: glowText 4s 
ease-in-out infinite alternate;
margin-right: 10px;
}

/* Style fantasy appliqué aux boutons */
.btn-fantasy {
  display: inline-block;
  padding: 14px 28px;
  margin: 12px 0;
  border-radius: 50px;
  border: 2px solid #ffd36b;
  font-family: "Uncial Antiqua", serif;
  font-size: 22px;
  font-weight: bold;
  color: #fff;
  background: linear-gradient(180deg, #1b1028, #0a0514);
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.7),
               0 0 8px rgba(210, 139, 255, 0.6);
  box-shadow: 0 6px 20px rgba(210, 139, 255, 0.15),
              inset 0 -6px 12px rgba(255, 255, 255, 0.05);
  cursor: pointer;
  transition: all 0.25s ease;
  text-decoration: none;
}

.btn-fantasy:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 12px 32px rgba(210, 139, 255, 0.25),
              0 0 18px rgba(125, 227, 255, 0.4) inset;
  border-color: #7de3ff;
}

.btn-fantasy:active {
  transform: translateY(2px) scale(0.97);
}

/* --- Personnage d’accueil --- */
#accueil_perso {
  height: 75%;
  position: absolute;
  bottom: 0%;
  right: 0%;
  animation: floaty 6s ease-in-out infinite;
  filter: drop-shadow(0 0 12px rgba(210,139,255,0.6));
}

@keyframes floaty {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-12px); }
}

/* --- Footer --- */
#footer_bottom {
  background: linear-gradient(90deg, #0a0514, #1b0a2a);
  border-top: 2px solid #7de3ff;
  text-align: center;
  padding: 20px;
  font-family: 'Uncial Antiqua', serif;
  color: #bbb;
}


/* --- Devise magique --- */
.devise {
  font-family: 'Uncial Antiqua', serif;
  font-size: 3vw;
  text-align: center;
  margin: 40px auto;
  padding: 15px 25px;
  color: #ffd36b;
  background: rgba(0, 0, 0, 0.4);
  border: 2px solid #ffd36b;
  border-radius: 20px;
  max-width: 70%;
  line-height: 1.4em;
  box-shadow: 0 0 20px rgba(210,139,255,0.4), 
              inset 0 0 15px rgba(125,227,255,0.2);
  text-shadow: 0 0 6px rgba(210,139,255,0.8),
               0 0 20px rgba(125,227,255,0.5);
  animation: glowText 4s ease-in-out infinite alternate;
}

@keyframes glowText {
  from { text-shadow: 0 0 6px rgba(210,139,255,0.8), 0 0 20px rgba(125,227,255,0.5); }
  to   { text-shadow: 0 0 14px rgba(255,211,107,0.9), 0 0 35px rgba(210,139,255,0.7); }
}

/* --- Boutons artefacts magiques --- */
.btn-fantasy {
  display: inline-block;
  padding: 16px 34px;
  margin: 20px;
  border-radius: 40px;
  border: 3px solid #ffd36b;
  font-family: "Uncial Antiqua", serif;
  font-size: 24px;
  font-weight: bold;
  color: #fff;
  background: radial-gradient(circle at top left, #2b1a40, #0a0514);
  text-shadow: 0 0 6px rgba(0, 0, 0, 0.8),
               0 0 10px rgba(210, 139, 255, 0.7);
  box-shadow: 0 8px 25px rgba(210, 139, 255, 0.3),
              inset 0 -6px 14px rgba(255, 255, 255, 0.05),
              0 0 10px rgba(125, 227, 255, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn-fantasy:hover {
  transform: translateY(-5px) scale(1.05);
  background: radial-gradient(circle at center, #3c235d, #12081e);
  border-color: #7de3ff;
  box-shadow: 0 12px 35px rgba(210, 139, 255, 0.5),
              0 0 22px rgba(125, 227, 255, 0.7),
              inset 0 0 15px rgba(125, 227, 255, 0.3);
}

.btn-fantasy:active {
  transform: translateY(2px) scale(0.95);
}


/* --- Dropdown Élève --- */
.dropdown {
  display: inline-block;
  position: relative;
}

.dropdown-toggle::after {
  /*content: " ▼";*/
  font-size: 14px;
  color: #ffd36b;
}

.dropdown-menu {
  position: absolute;
  top: 110%;
  left: 50%;
  width : 100%;
  transform: translateX(-50%) scaleY(0);
  transform-origin: top center;
  background: rgba(15, 10, 25, 0.95);
 /* border: 2px solid #ffd36b;*/
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(210, 139, 255, 0.4);
  overflow: hidden;
  opacity: 0;
  transition: all 0.35s ease-in-out;
  z-index: 200;
  min-width: 220px;
}

.dropdown-menu .dropdown-item {
  display: block;
  padding: 12px 18px;
  font-family: 'Uncial Antiqua', serif;
  font-size: 18px;
  color: #ffd36b;
  text-decoration: none;
  text-align: center;
  background: transparent;
  transition: background 0.3s ease, color 0.3s ease;
}

.dropdown-menu .dropdown-item:hover {
  background: rgba(210,139,255,0.2);
  color: #7de3ff;
}

/* Animation ouverture */
.dropdown.active .dropdown-menu {
  transform: translateX(-50%) scaleY(1);
  opacity: 1;
}

/* Ajustement pour que le menu s'ouvre vers le haut */
.dropdown-menu {
bottom: 110%;
top: auto;
transform-origin: bottom center;
opacity: 0;
transform: translateX(-50%) scaleY(0.6);
transition: all 0.4s ease-in-out;
filter: drop-shadow(0 0 6px rgba(210,139,255,0.6));
}


.dropdown.active .dropdown-menu {
opacity: 1;
transform: translateX(-50%) scaleY(1);
animation: glowMenu 0.6s ease forwards;
}


@keyframes glowMenu {
0% { box-shadow: 0 0 5px rgba(210,139,255,0.3); }
50% { box-shadow: 0 0 20px rgba(255,211,107,0.8), 0 0 40px rgba(210,139,255,0.6); }
100% { box-shadow: 0 0 10px rgba(210,139,255,0.4); }
}


/* Flèche dans le bouton */
.dropdown-toggle {
display: flex;
align-items: center;
justify-content: center;
}


.dropdown-toggle .arrow {
margin-left: 8px;
font-size: 14px;
color: #ffd36b;
transition: transform 0.3s ease;
}


.dropdown.active .dropdown-toggle .arrow {
transform: rotate(180deg);
}




























/* Boîte principale */
.login-box {
    background: rgba(20, 10, 40, 0.9);
    border: 3px solid gold;
    border-radius: 15px;
    padding: 40px;
    width: 400px;
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.6);
    text-align: center;
}

/* Titre magique */
h1 {
    font-size: 2.5em;
    margin-bottom: 25px;
    color: #ffd700;
    text-shadow: 0 0 10px #ffcc00, 0 0 20px #ff6600, 0 0 30px #ff3300;
}

/* Champs de saisie */
input[type="text"], input[type="password"] {
    width: 90%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid #d4af37;
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 20px;
    color: #f5e6c8;
    font-size: 1.1em;
    text-align: center;
    transition: all 0.3s ease;
}

input[type="text"]:focus, input[type="password"]:focus {
    outline: none;
    border-color: #ffcc00;
    box-shadow: 0 0 15px #ffcc00;
}

/* Checkbox "afficher mot de passe" */
label {
    font-size: 0.9em;
    color: #f5e6c8;
    cursor: pointer;
}

/* Bouton magique */
input[type="submit"] {
    background: linear-gradient(145deg, #d4af37, #a67c00);
    border: none;
    border-radius: 12px;
    padding: 12px 25px;
    color: #fff;
    font-size: 1.2em;
    font-weight: bold;
    text-shadow: 0 0 5px #000;
    cursor: pointer;
    transition: 0.3s;
    margin-top: 10px;
}

input[type="submit"]:hover {
    background: linear-gradient(145deg, #ffcc00, #b8860b);
    box-shadow: 0 0 20px #ffcc00, 0 0 40px #ff6600;
}
