/* --- Fichier: style.css --- */

/* IMPORTATION DES POLICES DE CARACTÈRE */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@700&family=Rajdhani:wght@500;700&family=Roboto+Mono&display=swap');

/* VARIABLES DE COULEURS GLOBALES */
:root {
    --background: #0D0D0D;
    --surface: #1A1A1A;
    --accent: #00FFD1;
    --text: #F5F5F5;
    --text-muted: #888;
}

/* RESET ET STYLES DE BASE */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--background);
    color: var(--text);
    font-family: 'Rajdhani', sans-serif;
    -webkit-font-smoothing: antialiased;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 0;
}

h1, h2, h3 {
    font-family: 'Orbitron', sans-serif;
    color: var(--accent);
    text-transform: uppercase;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.3s ease;
}

/* HEADER ET NAVIGATION */
.header {
    background-color: rgba(13, 13, 13, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--surface);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8em;
    color: var(--accent);
}

/* BOUTONS */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border: 1px solid var(--accent);
    border-radius: 4px;
    background-color: transparent;
    color: var(--accent);
    font-family: 'Orbitron', sans-serif;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.btn:hover {
    background-color: var(--accent);
    color: var(--background);
}

/* SECTION HÉROÏQUE (Bannière) */
.hero {
    text-align: center;
    padding: 100px 0;
}

.hero h1 {
    font-size: 3.5em;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.5em;
    color: var(--text-muted);
    margin-bottom: 40px;
}

/* GRILLE DES PRODUITS (PAGE D'ACCUEIL) */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.product-card {
    background-color: var(--surface);
    border: 1px solid #222;
    border-radius: 5px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.product-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent);
}

.product-card .price {
    font-size: 1.8em;
    font-family: 'Orbitron', sans-serif;
    color: var(--accent);
    margin: auto 0 20px 0; /* Pousse le prix vers le bas */
}

/* PAGE DÉTAIL D'UN PRODUIT */
.product-detail-container {
    max-width: 800px;
    margin: 40px auto;
    background-color: var(--surface);
    padding: 40px;
    border-radius: 5px;
}

.product-detail-container h1 {
    font-family: 'Rajdhani', sans-serif;
    text-transform: none;
    color: var(--text);
    font-size: 2.5em;
}

.product-detail-container .price {
    font-size: 2.5em;
    margin: 20px 0;
}

.product-detail-container .description {
    font-family: 'Roboto Mono', monospace;
    line-height: 1.6;
    color: var(--text-muted);
    margin-bottom: 40px;
}

/* FOOTER */
.footer {
    text-align: center;
    padding: 30px;
    margin-top: 50px;
    border-top: 1px solid var(--surface);
    color: var(--text-muted);
    font-family: 'Roboto Mono', monospace;
}
/* --- AJOUTS À LA FIN DU FICHIER style.css --- */

/* STYLE DU BOUTON SECONDAIRE "VOIR EXEMPLE" */
.btn-secondary {
    background-color: transparent;
    color: var(--text-muted);
    border: 1px solid var(--text-muted);
    padding: 8px 16px;
    font-size: 0.8em;
    margin-top: 10px;
}
.btn-secondary:hover {
    background-color: var(--text-muted);
    color: var(--background);
}

/* STYLE DE LA MODAL (LA POP-UP) */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    display: none; /* Caché par défaut */
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background-color: var(--surface);
    padding: 30px;
    border-radius: 5px;
    max-width: 800px;
    width: 90%;
    position: relative;
    border: 1px solid #333;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    color: var(--text-muted);
    font-size: 1.5em;
    cursor: pointer;
    border: none;
    background: none;
}
.modal-close:hover {
    color: var(--accent);
}

.modal-content pre {
    background-color: var(--background);
    padding: 20px;
    border-radius: 4px;
    font-family: 'Roboto Mono', monospace;
    white-space: pre-wrap; /* Fait le retour à la ligne automatique */
    word-wrap: break-word; /* Casse les mots trop longs */
    color: var(--text);
    max-height: 60vh;
    overflow-y: auto; /* Ajoute une scrollbar si le contenu est trop long */
}