/* ---------- STYLE GÉNÉRAL ---------- */
body {
    margin: 0;
    padding: 0;
    font-family: "Courier New", monospace;
    background: #1a1a1a;
    color: #f0e6d2;
    line-height: 1.55;
    background-image: url("https://www.transparenttextures.com/patterns/asfalt-dark.png");
}

/* ---------- NAVIGATION ---------- */
.nav {
    background: #3b3b3b;
    border-bottom: 3px solid #c7a45b; /* laiton */
    padding: 12px 25px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.4);
}

.nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 25px;
}

.nav a {
    text-decoration: none;
    color: #f0e6d2;
    font-weight: bold;
    letter-spacing: 1px;
    transition: 0.3s;
}

.nav a:hover {
    color: #c7a45b; /* laiton */
    text-shadow: 0 0 5px rgba(199,164,91,0.6);
}

/* ---------- TITRE PRINCIPAL ---------- */
h1 {
    text-align: center;
    margin-top: 40px;
    font-size: 2.2em;
    font-weight: bold;
    color: #c7a45b;
    letter-spacing: 3px;
    text-transform: uppercase;
    text-shadow: 0 0 8px rgba(0,0,0,0.7);
}

/* --- CONTEXTE + PHOTO À DROITE --- */
.context {
    position: relative;
    max-width: 900px;
    padding: 25px 25px 25px 25px;
    min-height: 350px;
    text-align:justify;
}

.context-wrapper {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    justify-content: center;
    margin-bottom: 40px;
    position: relative;
    background: rgba(87,87,87,0.25);
    border-left: 5px solid #c7a45b;
    border-radius: 5px;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.4);
    max-width: 1200px;
    margin:0 auto;
}


/* Photo alignée à droite du bloc */
.context-photo {
    width: 30%;
    max-width:260px;
    height: auto;
    border: 4px solid #d4b06a;
    filter: sepia(60%);
    margin-top:50px;
    margin-right:50px;
}

/* Ajustement du container suivant pour éviter l’empilement */
.content {
    margin-top: 100px;
}

/* Responsive */
@media (max-width: 1100px) {
    .context-photo {
        position: static;
        display: block;
        margin: 20px auto;
    }

    .context {
        min-height: auto;
    }
}



/* ---------- CONTENU PRINCIPAL ---------- */
.content {
    max-width: 1150px;
    margin: 40px auto;
    padding: 25px;
    background: rgba(60,60,60,0.3);
    border: 1px solid rgba(199,164,91,0.2);
    border-radius: 6px;
    box-shadow: 0 0 20px rgba(0,0,0,0.4);
}

/* ---------- ÉNIGME ---------- */
.enigme {
    font-size: 1.25em;
    background: #2c2c2c;
    padding: 18px;
    border-left: 5px solid #c7a45b;
    border-radius: 4px;
    color: #f0e6d2;
    letter-spacing: 1px;
    box-shadow: inset 0 0 6px rgba(0,0,0,0.6);
}

/* ---------- FORMULAIRE ---------- */
form {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

/* Champs */
input[type="text"],
textarea {
    padding: 12px;
    background: #2b2b2b;
    border: 1px solid #555;
    border-radius: 4px;
    color: #f0e6d2;
    font-family: inherit;
    letter-spacing: 1px;
    box-shadow: inset 0 0 8px rgba(0,0,0,0.4);
}

input:focus,
textarea:focus {
    outline: none;
    border-color: #c7a45b;
    box-shadow: 0 0 8px rgba(199,164,91,0.4);
}

/* Boutons style mécanique */
button,
input[type="submit"] {
    padding: 12px 20px;
    background: linear-gradient(to bottom, #c7a45b, #a3874f);
    color: #1a1a1a;
    border: 2px solid #8a6d3b;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    letter-spacing: 1px;
    transition: 0.2s;
    box-shadow: 0 4px 8px rgba(0,0,0,0.4);
}

button:hover,
input[type="submit"]:hover {
    background: linear-gradient(to bottom, #d9b871, #b69652);
    transform: translateY(-2px);
}

/* ---------- BAS DE PAGE ---------- */
.bottom {
    text-align: center;
    padding: 25px;
    margin-top: 60px;
    font-size: 0.9em;
    color: #c7a45b;
    border-top: 1px solid rgba(199,164,91,0.3);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* ---------- EFFET "DOSSIER SECRET 1940" SUR TOUTE LA PAGE ---------- */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;

    background: repeating-linear-gradient(
        rgba(0, 0, 0, 0.08),
        rgba(0, 0, 0, 0.08) 1px,
        transparent 1px,
        transparent 3px
    );
    opacity: 0.25;
}

/* ---------- OPTION : MICRO VIBRATION ÉLECTROMÉCANIQUE DISCRÈTE ---------- */
@keyframes mechanicalHum {
    0% { opacity: 0.98; }
    50% { opacity: 1; }
    100% { opacity: 0.98; }
}

body {
    animation: mechanicalHum 3s infinite ease-in-out;
}
