/* ----- RESET ----- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Segoe UI", sans-serif;
}

/* ----- GLOBAL ----- */
body {
    background: linear-gradient(135deg, #0d1117, #1b2330);
    color: #e6e6e6;
}

/* ----- HEADER ----- */
header {
    background: #0f1620;
    padding: 20px 0;
    border-bottom: 1px solid #1f2a38;
}

header h1 {
    text-align: center;
    color: #4ea1ff;
}
/* ----- DROPDOWN ----- */
nav ul li ul {
    display: none;
    position: absolute;
    top: 100%;        /* Le menu apparaît juste sous le parent */
    left: 0;          /* Aligné à gauche du parent */
    background: #0f1620;
    padding: 10px 0;
    border: 1px solid #1f2a38;
    border-radius: 5px;
    min-width: 180px;
    z-index: 9999;    /* Le menu passe AU-DESSUS de tout */
}

/* Le menu reste ouvert tant que la souris est sur le LI */
nav ul li:hover > ul {
    display: block;
}

/* Sous-éléments du menu */
nav ul li ul li {
    padding: 10px 20px;
    white-space: nowrap; /* Empêche le texte de casser */
}

/* ----- NAVBAR ----- */
nav {
    margin-top: 20px;
    display: flex;
    justify-content: center;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 40px;
}

nav ul li {
    position: relative;
    padding-bottom: 10px;
}

nav a {
    color: #e6e6e6;
    text-decoration: none;
    font-size: 1.1rem;
    transition: 0.3s;
}

nav a:hover {
    color: #4ea1ff;
}

/* ----- DROPDOWN ----- */
nav ul li ul {
    display: none;
    position: absolute;
    top: 100%;        /* Le menu apparaît juste sous le parent */
    left: 0;          /* Aligné à gauche du parent */
    background: #0f1620;
    padding: 10px 0;
    border: 1px solid #1f2a38;
    border-radius: 5px;
    min-width: 180px;
    z-index: 9999;    /* Le menu passe AU-DESSUS de tout */
}

/* Le menu reste ouvert tant que la souris est sur le LI */
nav ul li:hover > ul {
    display: block;
}

/* Sous-éléments du menu */
nav ul li ul li {
    padding: 10px 20px;
    white-space: nowrap; /* Empêche le texte de casser */
}


/* ----- CONTAINER ----- */
.container {
    width: 85%;
    margin: 40px auto;
}

.container h2 {
    text-align: center;
    color: #4ea1ff;
    margin-bottom: 30px;
}

/* ----- GRID ----- */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

/* ----- CARD ----- */
.card {
    background: #111a25;
    border: 1px solid #1f2a38;
    border-radius: 10px;
    padding: 20px;
    transition: 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    border-color: #4ea1ff;
}

/* ----- IMAGE BOX ----- */
.image-box {
    width: 100%;
    height: 160px;
    background: #0f1620;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 15px;
    border: 1px solid #1f2a38;
}

.image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ----- TEXT ----- */
.card h3 {
    color: #4ea1ff;
    margin-bottom: 10px;
}

.card p {
    font-size: 0.95rem;
    line-height: 1.4rem;
}

/* ----- FOOTER ----- */
footer {
    text-align: center;
    padding: 20px;
    color: #6f7a89;
}

.doc-preview {
    width: 140px;
    height: auto;
    border-radius: 6px;
    box-shadow: 0 0 10px #00aaff88;
    pointer-events: none; /* impossible à modifier */
}


/* ===== CASE DOCUMENT ===== */
.document-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 20px 25px;
    background: rgba(0,0,0,0.45);
    border: 2px solid #00aaff;
    border-radius: 14px;
    box-shadow:
        0 0 10px #00aaff,
        0 0 25px #00aaff55,
        inset 0 0 10px #00aaff55;
    backdrop-filter: blur(6px);
    transition: 0.3s ease;
}

.document-box:hover {
    transform: scale(1.03);
    box-shadow:
        0 0 20px #00aaff,
        0 0 40px #00aaffaa,
        inset 0 0 20px #00aaff88;
}

.doc-wrapper {
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}
.img-full {
  max-width: 100%;
  max-height: 100%;
}

.pdf-viewer-block {
    margin-top: 1rem;
    border: 1px solid rgba(0,0,0,0.45); 
    border-radius: 0px;
    overflow: hidden; 
}

.pdf-viewer-block embed {
    width: 100%;
    height: 1500px;
    display: block;
}
.download-btn {
  display: inline-block;
  padding: 14px 28px;
  color: #0ff;
  border: 2px solid #0ff;
  text-decoration: none;
  font-size: 18px;
  font-weight: 600;
  border-radius: 6px;
  position: relative;
  overflow: hidden;
  transition: 0.3s ease;
  background: rgba(0, 0, 0, 0.7);
  letter-spacing: 1px;
}

.download-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(0,255,255,0.4), transparent);
  transition: 0.5s;
}

.download-btn:hover::before {
  left: 100%;
}

.download-btn:hover {
  color: #000;
  background: #0ff;
  box-shadow: 0 0 15px #0ff, 0 0 30px #0ff, 0 0 45px #0ff;
}
