/* style.css - Style pour Lien Unique */

/* Importation des polices nécessaires */
@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');

:root {
    --main-bg-color: rgba(0, 0, 0, 0.7);
    --panel-bg-color: rgba(20, 20, 20, 0.8);
    --title-color: #00B8FF;
    --text-color: #F0F0F0;
    --accent-color: #00B8FF;
    --border-color: rgba(80, 80, 80, 0.8);
    --error-color: #FF5252;
    --success-color: #00D084;
    --button-bg: #3D4DB7;
    --button-hover-bg: #5567E2;
    --input-bg: rgba(25, 25, 25, 0.9);

    --pixel-font: 'Press Start 2P', cursive;
    --body-font: Arial, Helvetica, sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
}

/* Canvas Matrix en arrière-plan */
#matrixCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-color: #000c1f;
}

body {
    color: var(--text-color);
    font-family: var(--body-font);
    font-size: 16px;
    line-height: 1.6;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    /* Suppression de l'ancien fond animé Matrix SVG */
    background: none;
}

.container {
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
    background-color: var(--panel-bg-color);
    border: 4px solid var(--border-color);
    box-shadow: 0 0 20px rgba(0, 184, 255, 0.5);
    backdrop-filter: blur(5px);
    border-radius: 8px;
    position: relative;
    z-index: 1;
}

/* Logo et titre */
.header {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 4px solid var(--border-color);
}

.logo {
    max-height: 60px;
    margin-right: 20px;
}

h1 {
    font-family: var(--pixel-font);
    color: var(--title-color);
    text-align: center;
    text-shadow: 0 0 10px rgba(0, 184, 255, 0.7);
    letter-spacing: 2px;
    line-height: 1.4;
}

/* Style pour le lien du titre */
.title-link {
    text-decoration: none;
    border-bottom: none;
    color: inherit;
}

.title-link:hover {
    border-bottom: none;
    text-shadow: 0 0 15px rgba(0, 184, 255, 0.8);
}

/* --- Explications --- */
.explanation {
    background-color: rgba(0, 0, 0, 0.4);
    padding: 18px;
    margin-bottom: 25px;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    line-height: 1.7;
}

.explanation p {
    margin-bottom: 10px;
}

.explanation strong {
    color: var(--accent-color);
    font-weight: 600;
}

/* --- Formulaires --- */
form {
    margin-top: 20px;
}

/* Style pour la ligne contenant le bouton et le lien */
.form-actions, .prompt-actions {
    display: table;
    width: 100%;
    margin-top: 15px;
}

.action-cell-left {
    display: table-cell;
    text-align: left;
    vertical-align: middle;
}

.action-cell-right {
    display: table-cell;
    text-align: right;
    vertical-align: middle;
}

/* Style pour le lien Exec */
.exec-link {
    font-family: "Arial Narrow", Arial, sans-serif;
    font-size: 10px;
    font-weight: normal;
    border-bottom: none;
    color: #00B8FF;
    text-transform: none;
    letter-spacing: normal;
}

.exec-link:hover {
    color: #5567E2;
    text-shadow: 0 0 3px rgba(0, 184, 255, 0.3);
    border-bottom: none;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

textarea,
input[type="text"] {
    width: 100%;
    background-color: var(--input-bg);
    color: var(--text-color);
    border: 2px solid var(--border-color);
    padding: 12px;
    font-family: var(--body-font);
    font-size: 16px;
    margin-bottom: 15px;
    box-sizing: border-box;
    border-radius: 4px;
}

textarea {
    min-height: 120px;
    resize: vertical;
    line-height: 1.5;
}

input[type="text"][readonly] {
    background-color: rgba(0, 0, 0, 0.7);
    cursor: default;
}

/* --- Boutons --- */
button, input[type="submit"] {
    background-color: var(--button-bg);
    color: white;
    border: none;
    padding: 10px 20px;
    font-family: var(--pixel-font);
    font-size: 14px;
    cursor: pointer;
    text-transform: uppercase;
    margin: 5px 0;
    box-shadow: 0 0 10px rgba(0, 150, 255, 0.3);
    transition: all 0.2s ease;
    border-radius: 4px;
}

button:hover, input[type="submit"]:hover {
    background-color: var(--button-hover-bg);
    box-shadow: 0 0 15px rgba(0, 150, 255, 0.5);
}

button:active, input[type="submit"]:active {
    transform: translate(2px, 2px);
    box-shadow: 0 0 5px rgba(0, 150, 255, 0.3);
}

/* --- Affichage du Lien Généré --- */
.link-display {
    display: flex;
    margin: 20px 0;
}

.link-display input {
    flex-grow: 1;
    margin-right: 10px;
    margin-bottom: 0;
    font-family: var(--body-font);
}

.link-display button {
    flex-shrink: 0;
}

/* --- Information Révélée --- */
.revealed-secret {
    background-color: var(--input-bg);
    padding: 18px;
    border: 2px solid var(--border-color);
    margin-bottom: 20px;
    white-space: pre-wrap;
    word-break: break-word;
    border-radius: 4px;
}

.revealed-secret pre {
    margin: 0;
    font-family: var(--body-font);
    font-size: 16px;
    line-height: 1.5;
}

/* --- Messages (Erreur, Succès) --- */
.message {
    padding: 12px 16px;
    margin-bottom: 20px;
    border: 2px solid;
    border-radius: 4px;
    font-weight: 600;
}

.error {
    background-color: rgba(255, 82, 82, 0.2);
    border-color: var(--error-color);
    color: var(--error-color);
}

.success {
    background-color: rgba(0, 208, 132, 0.2);
    border-color: var(--success-color);
    color: var(--success-color);
}

/* --- Liens --- */
a {
    color: var(--accent-color);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s;
    font-weight: 600;
}

a:hover {
    border-bottom: 1px solid var(--accent-color);
    text-shadow: 0 0 5px rgba(0, 184, 255, 0.5);
}

/* --- Responsive (simple) --- */
@media (max-width: 600px) {
    .container {
        margin: 10px;
        padding: 15px;
    }
    
    .header {
        flex-direction: column;
    }
    
    .logo {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    h1 {
        font-size: 20px;
    }
    
    button, input[type="submit"] {
        width: 100%;
    }
    
    .link-display {
        flex-direction: column;
    }
    
    .link-display input {
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    /* Garder l'alignement en version mobile */
    .form-actions, .prompt-actions {
        display: table;
        width: 100%;
    }
    
    .action-cell-left, .action-cell-right {
        display: table-cell;
        vertical-align: middle;
    }
    
    .action-cell-left {
        text-align: left;
        width: 70%;
    }
    
    .action-cell-right {
        text-align: right;
        width: 30%;
    }
    
    /* Rendre les mentions légales un peu plus grandes sur mobile pour la lisibilité */
    .legal-mentions {
        font-size: 9px;
    }
}

/* --- Mentions légales --- */
.legal-mentions {
    margin-top: 30px;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
    color: #444444;
    font-size: 8px;
    text-align: center;
    line-height: 1.4;
}

.legal-mentions a {
    color: #444444;
    font-weight: normal;
}

.legal-mentions a:hover {
    color: var(--accent-color);
} 