/* ========== FOND GLOBAL ========== */
body {
    font-family: 'Times New Roman', Times, serif;
    background: linear-gradient(to right, #f0f7ff, #eaf6f6);
    margin: 0;
    padding: 20px;
    color: #333;
    overflow-x: hidden;
}

/* ========== CONTENEUR CENTRAL ========== */
#referentiel {
    background: #ffffffcc; /* semi-transparent blanc */
    backdrop-filter: blur(6px);
    padding: 40px;
    margin: auto;
    max-width: 850px;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0, 112, 192, 0.1);
    animation: fadeSlideIn 1s ease-out forwards;
}

/* ANIMATION D'APPARITION */
@keyframes fadeSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========== PARAGRAPHES ========== */
#referentiel p {
    background: linear-gradient(145deg, #ffffff, #f1f9ff);
    padding: 20px;
    border-left: 5px solid #0070C0;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    font-size: 17px;
    margin-bottom: 25px;
    animation: fadeIn 1s ease-in-out both;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
#referentiel p:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 20px rgba(0,112,192,0.15);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ========== LIENS ET TEXTES IMPORTANTS ========== */
#referentiel a {
    color: black;
    text-decoration: none;
    font-weight: bold;
    position: relative;
    transition: color 0.3s;
    text-decoration: underline;
}
#referentiel a:hover {
    color: #FF6600;
}

#referentiel b {
    color: #0070C0;
}

/* ========== LIEN CENTRAL ========== */
#referentiel .text-center a, #referentiel .title {
    font-size: 17px;
    display: inline-block;
    margin: 10px 0 10px;
    padding: 8px 18px;
    color: white;
    border-radius: 30px;
    box-shadow: 0 5px 10px rgba(0,112,192,0.25);
    transition: all 0.3s ease;
}
#referentiel .text-center a:hover {
    background-color: #0056a4;
    color: white !important;
    transform: scale(1.05);
}

/* ========== IMAGE ========== */
#referentiel img.image {
    border: #0070C0 solid 3px;
    border-radius: 12px;
    padding: 3px;
    max-width: 100%;
    height: auto;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
#referentiel img.image:hover {
    transform: scale(1.04);
    box-shadow: 0 5px 15px rgba(0,112,192,0.2);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    #referentiel {
        padding: 25px;
    }

    #referentiel p {
        font-size: 16px;
        padding: 15px;
    }

    #referentiel .text-center a {
        font-size: 17px;
        padding: 6px 14px;
    }
}

/* ========== CADRES ÉCRAN (conservés du style original) ========== */
.frame {
    position: fixed;
    background: #0070C0;
}
.top { top: 0; left: 0; right: 0; height: 5px; }
.right { top: 0; right: 0; bottom: 0; width: 5px; }
.bottom { bottom: 0; left: 0; right: 0; height: 5px; }
.left { top: 0; left: 0; bottom: 0; width: 5px; }

/* ========== BOUTONS PALETTE (si utilisés ailleurs) ========== */
.button-palette {
    text-align: center;
}
.button-palette button {
    display: inline-block;
    margin: 5px;
    padding: 8px 15px;
    border: none;
    border-radius: 15px;
    color: #333;
    cursor: pointer;
    font-weight: bold;
    font-size: 13px;
    background-color: #e0f0ff;
    transition: background-color 0.3s, transform 0.2s;
}
.button-palette button:hover {
    background-color: #d0eaff;
    transform: translateY(-2px);
}

/* Couleurs spécifiques */
.b1 { background-color: #F2DBDB; }
.b2 { background-color: #DAEEF3; }
.blue { background-color: blue; color: yellow; }
.orange { background-color: orange; }

#contact-info-message a{
    text-decoration: none !important;
}
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    gap: 20px;
    margin: 30px auto;
}

.grid-item {
    background-color: #eaeaea;
    padding: 5px;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.grid-item:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

#contact-info-message #contact-mtn{
    background-color: yellow;
    color: blue;
    font-weight: 900;
}

#contact-info-message #contact-telegram{
    background-color: #229ED9;
    color: white;
    font-weight: 900;
}

#contact-info-message #contact-whatsapp{
    background-color: green;
    color: white;
    font-weight: 900;
}

#contact-info-message #contact-orange{
    background-color: orange;
    color: white;
    font-weight: 900;
}

#contact-info-message #contact-email{
    background-color: gray;
    color: white;
    font-weight: 900;
}

#contact-info-message #contact-faq{
    background-color: rgb(39, 230, 103);
    color: white;
    font-weight: 900;
}

#contact-info-message .label{
    color: white;
}

#contact-info-message .labelMTN{
    color: blue;
}