* {
    scroll-behavior: smooth;
}

body {
    background-color: #75483D;
}

a:visited {
    color: #FCB0A2;
}

a:hover {
    color: #2aa04d;
}

p#pt {
    background-color: #84BBDB;
    border-radius: 0px 0% / 20px 25em 30px 35em;
    padding: 1%;
    border: 3px dashed #37190e;
    text-align: center;
}

h1 {
    margin-left: 0px;
    text-align: center;
}

pre {
    
}

.register {
    background-color: #3F6157;
    padding-bottom: 20px;
}

.orb {
    background: radial-gradient(circle, #fff, #ccc);
    animation: spin 2s linear infinite;
    width: 300px;
    height: 300px;
    margin: auto;
    margin-top: 30px;
    border-radius: 50%;
    position: relative;
    box-shadow:
    inset 0 0 50px #fff,
    inset 20px 0 60px violet,
    inset -20px 0 60px blue,
    inset 20px 0 300px violet,
    inset -20px 0 300px blue,
    0 0 50px #fff,
    -10px 0 60px violet,
    10px 0 60px blue;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
        top: 20px;
    }
    25% {
        top: 22px;
    }
    50% {
        top: 30px;
    }
    75% {
        top: 27px;
    }
    100% {
        transform:rotate(360deg);
        top: 20px;
    }
}

.login-status {
    padding: 10px 20px;
    width: 350px;
    margin-right: 190px;
    border-radius: 10px;
    background-color: #95DEAB;
    color: #418C57;
    font-family: Arial, sans-serif;
    text-align: right;
}

.igm {
    
}

.login-status a {
    color: #594D3B;
    text-decoration: none;
    font-weight: bold;
    margin-left: 8px;
}

.login-status a:hover {
    text-decoration: underline;
}

.register {
    background-color: #3F6157;
    max-width: 300px;
    min-width: 300px;
    width: 300px;
    padding-bottom: 20px;
    max-height: 300px;
    min-height: 300px;
    height: 300px;
    box-shadow: 0 0 12px rgba(0, 0, 0, 1.5);
}

.register button {
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

.legende {
/*    display: flex;*/
    text-align: center;
/*    justify-content: space-between;*/
/*    align-items: center;*/
/*    gap: 20px;*/
    margin-left: 225px;
    margin-right: 225px;
}

.legende#imh {
    height: 125%;
}

html,
body {
    height: 100%;
}

.flex-sep {
    margin-top: 23px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 23px rgba(0, 0, 0, 1);
    padding: 10px;
    margin-left: 223px;
    margin-right: 223px;
    
/*    background: #8AA3DA;*/
}

.titre {
    margin-top: 25px;
    margin-left: 17.5px;
    margin-right: 17.5px;
    display: flex;
    justify-content: center;
    align-items: center;
}

figcaption {
    color: gray;
}

.xy {
    color: white;
}

abbr {
    color: #95DEBE;
}

table {
    text-align: center;
    border-collapse: collapse;
    font-family: "Nunito", sans-serif;
    font-size: 11px;
    margin: auto;
    margin-top: 15px;
    align-items: center;
}

thead {
    background-color: #467A70;
    color: white;
}

th,
td {
    border: 2px solid #ba502a;
    padding: 4px;
    text-align: center;
    color: #cfc546;
}

tbody tr:nth-child(even) {
    background-color: #594D3B;
}

tbody tr:hover {
    background-color: #8C6D41;
}

form {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

input[type="text"] {
    padding: 4px 6px;
    font-size: 13px;
    border: 2px solid #cc1;
    border-radius: 3px;
}

input[type="submit"] {
    padding: 6px 12px;
    font-size: 13px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

input[type="submit"]:hover {
    background-color: #2980b9;
}

td form + form {
    margin-top: 8px;
}

#Topic1,
#Topic2,
#Topic3 {
    color: #59443F;
    font-family: "Nunito", sans-serif;
    margin-top: 23px;
    background-color: #ffcc5f;
    margin-left: 225px;
    margin-right: 225px;
    box-shadow: 0 0 42px rgba(0, 0, 0, 1);
    padding: 1%;
    align-items: center;
}

@media screen and (max-width: 400px) {
    .topic {
        padding-left: 2%;
        padding-right: 2%;
    }

}

.topcc {
    font-family: "Nunito", sans-serif;
    background: rgba(193, 128, 0, 0.7);
    background: linear-gradient(157deg, rgba(193, 128, 0, 0.7) 10%, #000000 100%);
    border-radius: 0px;
    padding: 20px;
    margin-top: 17px;
    border: 1px solid #bc6e00;
    margin-left: 225px;
    margin-right: 225px;
    min-width: 200px;
}

.isaacvie {
    font-family: "Nunito", sans-serif;
    background: #6A628E;
    border-radius: 10px;
    padding: 20px;
    margin-top: 20px;
    border: 1px solid #bc6e00;
    margin-left: 225px;
    margin-right: 225px;
    min-width: 200px;
}

.isaacvie input hidden {
    padding-box: 12px;
    font-size: 8px;
}

h3,
h4,
h5,
h6 {
    color: #dabb9e;
    text-align: center;
}

input[type="text"]#seed-search {
    width: max(25ch, 100px);
    border-radius: 6px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 5px 5px 10px #ccc;
    transition: transform 3s ease;
    padding-left: 20%;
    padding-right: 20%;
}

input[type="text"]#seed-search:hover {
    transform: translateX(12.5ch);
}
 
input[type="text"]#seed-search:focus {
    outline: none;
    border-color: #5b9dd9;
}

input[type="text"]#seed-search::placeholder {
    color: #888;
    font-style: italic;
}

input[type="text"]#seed-search {
    color: #332E2C !important;
}

label {
    font-size: 13px;
}

a {
    padding: 0%;
}

.newchapter {
    background: linear-gradient(89deg, #00060100 10%, #130a03 100%);
    letter-spacing: .05em;
    font-family: Arial, sans-serif;
    padding-left: 10%;
    padding-right: 10%;
    margin-left: 225px;
    margin-right: 225px;
    padding: 20px;
    margin-top: 20px;
    border: 2px solid #37190e;
    -webkit-box-shadow: inset 0px 0px 15px 0px #444444;
    -moz-box-shadow: inset 0px 0px 15px 0px #444444;
    box-shadow: inset 0px 0px 15px 0px #444444;
    min-width: 200px;
}

.indexhtml {
    text-align: center;
    padding: 89px;
    -webkit-box-shadow: inset 0px 0px 189px 0px #444444;
    -moz-box-shadow: inset 0px 0px 189px 0px #444444;
    box-shadow: inset 0px 0px 189px 0px #444444;
/*    border: 23px solid #cc9;*/
}

@media (min-width: 500px) {
    .indexhtml {
/*        background-image: url("../img/IMG_0085.PNG");*/
        background-repeat: no-repeat;
    }
}

@media (max-width: 400px) {
    .indexhtml {
        background-image: none;
    }
}

.topikeur {
    border-radius: 10px;
    box-shadow: 10px 10px 50px #ccc;
    padding: 1rem 1.25rem;
/*  suppr  color: red;*/
    transition: background 20s ease,
    color 5s ease,
    box-shadow 3s ease,
    transform 3s ease;
}

.topikeur:hover {
    box-shadow: 0 0 0 #999;
    transform: translateY(3px)
}

#cpy {
/*    border:color-mix(in hsl shorter hue, percentage, color percentage); invalide*/
    border-radius: 10px;
    cursor: copy;
    margin-top: 30px;
}

tbody td {
    padding: 7px;
    text-align: center;
    
    color: #00df70;
    font-size: 17px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Pour les longues phrases (commentaires) */
tbody td:last-child {
    text-align: left;
    max-width: 250px;
    word-wrap: break-word;
}

/* Scroll propre si le tableau est trop grand */
.table-container {
    max-height: 400px;
    overflow-y: auto;
    border-radius: 12px;
}

.isaac-warning {
  display: inline;
  background: #1a1a1a;
  color: #e8c547;
  padding: 6px 10px;
  border: 4px solid #3a2a1a;
  box-shadow: 2px 2px 0px #000;
  line-height: 2.3;
  font-family: 'Press Start 2P', monospace;
  font-size: 14px;
}

img#gem {
  display: flex;
  justify-content: center;
  margin: 40px 0;
  text-align: center;
}

img#gem {
    
    max-width: 100%;
    height: auto;
    border-radius: 12px;

    box-shadow:
    0 0 25px rgba(0, 0, 0, 0.8),          /* halo global */
    10px 10px 20px rgba(0, 0, 0, 0.6),    /* bas droite */
    -10px 10px 20px rgba(0, 0, 0, 0.6),   /* bas gauche */
    10px -10px 20px rgba(0, 0, 0, 0.6),   /* haut droite */
    -10px -10px 20px rgba(0, 0, 0, 0.6);  /* haut gauche */

    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

img#gem:hover {
    transform: scale(1.03);
    box-shadow:
    0 0 40px rgba(200, 200, 100, 0.4),   /* glow chaud */
    15px 15px 30px rgba(0, 0, 0, 0.8),
    -15px 15px 30px rgba(0, 0, 0, 0.8),
    15px -15px 30px rgba(0, 0, 0, 0.8),
    -15px -15px 30px rgba(0, 0, 0, 0.8);
}

#gem {
    
}

#is {

}

#radio-form {
    gap: 10px;
}

/* cacher les vrais radio */
#radio-form input[type="radio"] {
    display: none;
}

/* style des "cartes" */
#radio-form label {
    background: linear-gradient(145deg, #2c1b12, #1a0f09);
    border: 1px solid #4a2b18;
    border-radius: 8px;
    padding: 10px 14px;
    color: #c8a040;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: block;
    position: relative;
}

/* effet hover */
#radio-form label:hover {
    border-color: #e8c547;
    color: #e8c547;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.6);
}

/* état sélectionné */
#radio-form input[type="radio"]:checked + label,
#radio-form label:has(input[type="radio"]:checked) {
    background: linear-gradient(145deg, #4a2b18, #2c1b12);
    border-color: #e8c547;
    color: #e8c547;
    box-shadow: 0 0 12px rgba(232,197,71,0.4);
}

/* petit indicateur à gauche */
#radio-form label::before {
    content: "◆";
    position: absolute;
    left: 8px;
    opacity: 0.3;
}

#radio-form label:hover::before {
    opacity: 1;
}

/* espace pour le texte */
#radio-form label {
    padding-left: 24px;
}

/* texte secondaire (span) */
#radio-form label span {
    font-size: 11px;
    color: #7a6a5a;
}

.dis {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 10px;
    margin-top: 10px;
}

.dis label {
    background: linear-gradient(145deg, #2a1b12, #140c08);
    border: 1px solid #3d2808;
    border-radius: 6px;
    padding: 12px 14px;
    cursor: pointer;
    color: #c8a040;
    font-size: 12px;
    line-height: 1.4;

    display: flex;
    align-items: flex-start;
    gap: 8px;

    transition: all 0.2s ease;
    position: relative;
    min-height: 42px;
}

.topic a {
    background-color: #FFEEA7;
    padding: 7px;
/*    color: #ffdf70;*/
/*    -webkit-box-shadow: inset 0px 0px 10px 0px #444444;*/
/*    -moz-box-shadow: inset 0px 0px 10px 0px #444444;*/
/*    box-shadow: inset 0px 0px 10px 0px #444444;*/
    border-style: double;
    border-radius: 7px;
}

.topic {
    font-family: "Nunito", sans-serif;
    background: gray;
    border-radius: 10px;
    padding: 11px;
    
    
    
    color: #ffdf70;
    margin-top: 23px;
    border: 1px solid #bc6e00;
    margin-left: 225px;
    margin-right: 225px;
    -webkit-box-shadow: inset 0px 0px 10px 0px #444444;
    -moz-box-shadow: inset 0px 0px 10px 0px #444444;
    box-shadow: inset 0px 0px 10px 0px #444444;
    display: flex;
    gap: 240px;
    text-align: center;
    justify-content: space-between;
    align-items: center;
}


@media screen and (max-width: 768px) {
    body {
        font-size: 14px;
    }

    .indexhtml {
        padding: 10px;
    }

    .titre {
        margin-top: 10px;
        flex-direction: column;
    }

    .login-status {
        width: 100%;
        margin-right: 0;
        text-align: center;
        padding: 10px;
    }

    .legende,
    .topcc,
    .topic,
    .newchapter,
    #Topic1,
    #Topic2,
    #Topic3 {
        margin-left: 10px !important;
        margin-right: 10px !important;
        padding: 15px;
    }

    table {
        font-size: 9px;
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    th, td {
        padding: 2px;
        font-size: 10px;
    }

    form {
        gap: 8px;
    }

    input[type="text"],
    select {
        width: 100%;
        box-sizing: border-box;
    }

    img {
        max-width: 100%;
        height: auto;
    }

    .flex-sep {
        flex-direction: column;
        gap: 5px;
    }

    .legende {
        flex-direction: column;
        text-align: center;
    }

    .topcc label {
        display: block;
        margin: 5px 0;
    }

    input[type="text"]#seed-search {
        width: 100%;
        padding: 10px;
        margin: 10px 0;
    }

    input[type="text"]#seed-search:hover {
        transform: none;
    }

    .topic a {
        display: block;
        margin: 10px 0;
        padding: 10px;
        background: rgba(255,255,255,0.2);
        border-radius: 5px;
        text-align: center;
    }

    .orb {
        width: 150px;
        height: 150px;
        margin-top: 20px;
    }
}

@media screen and (max-width: 480px) {
    body {
        font-size: 12px;
    }

    h1 {
        font-size: 1.5em;
    }

    h2 {
        font-size: 1.3em;
    }

    h3 {
        font-size: 1.1em;
    }

    .login-status {
        font-size: 0.9em;
    }

    table {
        font-size: 8px;
    }

    th, td {
        padding: 1px;
        font-size: 8px;
    }

    form {
        gap: 6px;
    }

    input[type="text"],
    input[type="submit"],
    select {
        padding: 6px;
        font-size: 12px;
    }
}

@media screen and (max-width: 1024px) {
    .topcc, .topic, .newchapter,
    .legende, .isaacvie,
    #Topic1, #Topic2, #Topic3 {
        margin-left: 10px !important;
        margin-right: 10px !important;
    }
}
