a {
    color: inherit;
    text-decoration: none;
}

/* liens dans le menu */
.menu-panel a {
    color: #e8eefc;
    text-decoration: none;

    padding: 12px;
    border-radius: 10px;

    background: rgba(255,255,255,0.03);

    transition: 0.2s ease;
    display: block;
}

/* hover premium */
.menu-panel a:hover {
    background: rgba(125, 211, 252, 0.15);
    color: #10CFF1;
    transform: translateX(5px);
}

/* liens dans contenu général */
.container a {
    color: #10CFF1;
    text-decoration: none;
    transition: 0.2s;
}

.container a:hover {
    color: #38bdf8;
    text-decoration: underline;
}

a:visited {
    color: inherit;
}

* {
    box-sizing: border-box;
}


/* Formulaire de recherche */
.search-form {
    max-width: 600px;
    margin: 30px auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.search-form input {
    width: 100%;
    max-width: 600px;
}

.search-form button {
    width: 220px;
    margin-top: 0;
}

.container h1,
.container h2,
.container h3,
.container h4 {
    text-align: center;
}

.menu-panel {
    position: absolute;
    top: 0;
    right: 0;

    width: min(320px, 85vw);
    height: 100vh;

    background: rgba(15, 25, 45, 0.95);
    backdrop-filter: blur(20px);

    border-left: 1px solid rgba(255,255,255,0.08);

    padding: 30px;

    transform: translateX(100%);
    transition: 0.35s ease;

    display: flex;
    flex-direction: column;
    gap: 15px;

    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
}

/* =========================
   BASE
========================= */
body {
    margin: 0;
    font-family: "Segoe UI", Arial, sans-serif;
    background: #0b1220;
    color: #e8eefc;
    padding-top: 80px;
}

/* =========================
   TOPBAR
========================= */
.topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;

    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 16px 22px;

    background: rgba(10, 15, 30, 0.85);
    backdrop-filter: blur(14px);

    border-bottom: 1px solid rgba(255,255,255,0.08);
    box-sizing: border-box;
}

.topbar {
    gap: 10px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;

    font-size: 20px;
    font-weight: 700;
    color: #10CFF1;
}

.logo img {
    width: 50px;
    height: 50px;
    object-fit: contain;

    border-radius: 12px;

    filter: drop-shadow(0 0 12px rgba(125,211,252,.35));
}

.hero-logo {
    text-align: center;
    margin-top: 30px;
    position: relative;
    z-index: 1;
    
}

.hero-logo img {
    width: 250px;
    height: auto;
    object-fit: contain;

    filter: drop-shadow(0 0 25px rgba(125,211,252,.3));
}

/* =========================
   HAMBURGER
========================= */
.hamburger {
    width: 44px;
    height: 44px;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;

    cursor: pointer;

    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;

    transition: 0.25s ease;
}

.hamburger:hover {
    background: rgba(125, 211, 252, 0.12);
}

.hamburger span {
    width: 25px;
    height: 2px;
    background: white;
    transition: 0.3s ease;
}

/* animation X */
.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* =========================
   OVERLAY MENU
========================= */
.menu-overlay {
    position: fixed;
    inset: 0;

    z-index: 9999; /* haut */

    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(10px);

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transition: 0.3s ease;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
}

/* =========================
   PANEL
========================= */
.menu-panel {
    position: absolute;
    top: 0;
    right: 0;

    width: 320px;
    height: 100%;

    background: rgba(15, 25, 45, 0.95);
    backdrop-filter: blur(20px);

    border-left: 1px solid rgba(255,255,255,0.08);

    padding: 30px;

    transform: translateX(100%);
    transition: 0.35s ease;

    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* SLIDE IN */
.menu-overlay.active .menu-panel {
    transform: translateX(0);
}

.menu-panel h2 {
    color: #10CFF1;
    margin-bottom: 10px;
}

.menu-panel a {
    color: #e8eefc;
    text-decoration: none;

    padding: 12px;
    border-radius: 10px;

    background: rgba(255,255,255,0.03);

    transition: 0.2s;
}

.menu-panel a:hover {
    background: rgba(125, 211, 252, 0.15);
    transform: translateX(5px);
}

.menu-footer {
    margin-top: auto;
    font-size: 12px;
    opacity: 0.5;
    text-align: center;
}

/* =========================
   CARDS
========================= */
.card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);

    padding: 20px;
    border-radius: 14px;

    margin: 15px 0;

    transition: 0.2s;
}

.card:hover {
    transform: translateY(-3px);
    border-color: rgba(125, 211, 252, 0.4);
}

/* =========================
   INPUTS / BUTTONS
========================= */
input {
    width: 100%;
    padding: 14px;

    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.1);

    background: #0f1b33;
    color: white;

    outline: none;
}

button {
    margin-top: 10px;
    padding: 12px 18px;
    

    border: none;
    border-radius: 10px;

    background: #10CFF1;
    color: #0b1220;

    font-weight: bold;
    cursor: pointer;

    transition: 0.2s;
}

button:hover {
    background: #38bdf8;
}

/* =========================
   MOBILE
========================= */
@media (max-width: 768px) {

    .menu-panel {
        width: 85%;
    }
    input {
    width: 90%;
    padding: 14px;

    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.1);

    background: #0f1b33;
    color: white;

    outline: none;
}

.hero-logo img {
    width: 200px;
    height: auto;
    object-fit: contain;

    filter: drop-shadow(0 0 25px rgba(125,211,252,.3));
}

}