
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background: linear-gradient(to top, #000000, #17216b);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: 'Segoe UI', sans-serif;
    overflow-x: hidden;
}


/* TITRE */

#titreaccueil {
    text-align: center;
    margin-top: clamp(20px, 15vh, 5px);
    margin-bottom: clamp(24px, 4vw, 60px);
    color: white;
    font-size: clamp(18px, 2.5vw, 28px);
    letter-spacing: 2px;
}

/* MENU */

.menu-barre {
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(8px);
    display: flex;
    flex-wrap: wrap;            /* passe à la ligne sur petit écran */
    justify-content: space-between;
    align-items: center;
    padding: clamp(8px, 1.5vw, 15px);
    width: 90%;
    margin: 0 auto clamp(32px, 6vw, 10px);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

.menu-barre a {
    position: relative;
    color: white;
    text-decoration: none;
    font-weight: 600;
    padding: clamp(8px, 1.2vw, 12px) clamp(8px, 1.2vw, 15px);
    border-radius: 8px;
    flex: 1;
    min-width: 100px;           /* évite que les liens deviennent trop étroits */
    text-align: center;
    transition: all 0.3s ease;
    overflow: hidden;
    font-size: clamp(13px, 1.2vw, 16px);
}

/* Soulignement menu */

.menu-barre a::after {
    content: "";
    position: absolute;
    width: 0%;
    height: 3px;
    bottom: 5px;
    left: 50%;
    background: white;
    transition: 0.3s ease;
    transform: translateX(-50%);
}

.menu-barre a:hover::after {
    width: 60%;
}

/* Effet élévation */

.menu-barre a:hover {
    transform: translateY(-5px);
    background: rgba(255,255,255,0.15);
    box-shadow: 0 8px 20px rgba(0,0,0,0.4);
}

/* FOOTER */

footer {
    margin-top: auto;
    padding: clamp(14px, 2vw, 25px);
    font-size: clamp(11px, 1vw, 13px);
    text-align: center;
    color: rgba(255,255,255,0.7);
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* =========================
   SEARCH
========================= */
#contenu {
    width: 90%;
    max-width: 1100px;
    margin: 50px auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
}

/* BULLE NEUTRE */
.bulle {
    width: 320px;
    border-radius: 20px;
    background: #d0d7e2;
    color: #2c2c2c;
    padding: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    transition: 0.3s ease;
    overflow: hidden;
}

.bulle:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.12);
}

/* IMAGE */
.bulle img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 15px;
    margin-bottom: 10px;
}

/* TITRE */
.bulle h2 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #1f2a37;
}

/* TEXTE */
.bulle p {
    font-size: 14px;
    line-height: 1.5;
    color: #4b5563;
}

/* petites variations discrètes par thème */
.localisation {
    border-left: 4px solid #93c5fd;
}

.production {
    border-left: 4px solid #a7f3d0;
}

.reacteur {
    border-left: 4px solid #c7d2fe;
}

.fonctionnement {
    border-left: 4px solid #fde68a;
}

.securite {
    border-left: 4px solid #fecaca;
}

.epr {
    border-left: 4px solid #ddd6fe;
}

.header-cn {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 5px;
    margin-bottom: 20px;
}

#CN {
    max-width: 450px;
    width: 90%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

#map {
    height: 500px;
    width: 90%;
    margin: 30px auto;
    border-radius: 15px;
}