/* Conteneur du bouton */
#news-container {
    text-align: center;
    position: relative;
}

/* Bouton d'ouverture */
.bouton-news {
    display: inline-block;
    background-color: #351C75;
    color: white;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    text-transform: uppercase;
    padding: 15px 25px;
    text-decoration: none;
    border-radius: 15px;
    transition: background 0.3s ease;
    cursor: pointer;
}

.bouton-news:hover {
    background-color: #FF0000;
}

/* Fenêtre popup */
#news-popup {
    position: fixed;
    bottom: -100%;
    left: 50%;
    transform: translateX(-50%);
    width: 95%;
    height: 85%;
    background: white;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.3);
    transition: bottom 0.5s ease-in-out;
    display: none;
    border-radius: 15px 15px 0 0; /* Apply border-radius only on top */
    overflow: hidden; /* Ensure no content exceeds the rounded corners */
    z-index: 9999;
}

/* Header du popup */
#popup-header {
    display: flex;
    justify-content: space-between;
    background: #000000;
    padding: 10px;
    color: white;
    z-index: 9999;
}

.popup-button {
    cursor: pointer;
    font-weight: bold;
    padding: 5px 10px;
    border: none;
    background: none;
    color: white;
    font-size: 16px;
}

/* Iframe contenant la page de news */
#news-iframe {
    width: 100%;
    height: 95%;
    border: none;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 9999;
}

/* Mode plein écran avec effet ralenti */
.fullscreen {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    transform: scale(1) !important;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 9999;
}

/* Personnalisation de la barre de recherche */
.gcse-search-box input[type="text"] {
    padding: 8px;
    font-size: 16px;
    width: 70%;
}

.gcse-search-box input[type="submit"] {
    padding: 8px 12px;
    font-size: 16px;
}

/* Personnalisation des résultats de recherche */
.gcse-searchresults-only {
    margin-top: 20px;
    background-color: #f9f9f9;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}