/* ====== Style général ====== */
body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    color: #333;
    margin: 0;
    padding: 0;
    text-align: center;
    background-image: url(https://www.myasthenie.com/brochures/selfim/canvas.jpg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* ====== Pop-up ====== */
.popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 500px;
    background: white;
    padding: 20px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
    text-align: center;
    border-radius: 10px;
    display: none;
    z-index: 1000;
    font-size: 1rem;
}

.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    z-index: 999;
}

.popup button {
    margin: 10px;
    padding: 12px;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    width: 90%;
    max-width: 300px;
    font-size: 1rem;
}

.popup .btn-primary {
    background: #007bff;
    color: white;
}

.btn-primary {
    font-weight: bold; /* Texte en gras */
    color: white; /* Texte en blanc */
}

.popup .btn-secondary {
    background: #ccc;
}

/* ====== Conteneur principal ====== */
.container {
    width: auto;
    max-width: 1400px;
    margin: auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 20px;
    height: auto;
}

/* ====== Colonnes ====== */
.colonne {
    flex: 1;
    padding: 15px;
    text-align: center;
    border: 1px solid #000;
    box-sizing: border-box;
    background-color: rgba(78, 227, 242, 0.7);
    color: black;
    border-radius: 10px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out;
    min-width: 280px;
}

.colonne:hover {
    transform: scale(1.03);
}

/* ====== Titres ====== */
h2 {
    font-size: 1.3rem;
    color: #007bff;
}

/* ====== Images ====== */
img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    transition: transform 0.3s ease-in-out;
}

img:hover {
    transform: scale(1.05);
}

.imgc, .imgl, .imgr {
    width: 100%;
    height: auto;
    max-width: 400px;
}

/* ====== Liens CTA ====== */
.cta-text {
    font-size: 1rem;
    font-weight: bold;
    color: #007bff;
    margin-top: 8px;
    transition: all 0.3s ease-in-out;
    display: block;
    text-decoration: none;
}

.cta-text:hover {
    color: #0056b3;
    transform: scale(1.05);
    cursor: pointer;
}

.cta-text::before {
    content: "📖 ";
    font-size: 1.1rem;
}

.cta-text.qr::before {
    content: "📝 ";
}

/* ====== Téléchargements ====== */
.download-box {
    margin-top: 10px;
}

.download-box a {
    display: inline-flex;
    align-items: center;
    font-size: 1rem;
    color: #007bff;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease-in-out, transform 0.3s ease-in-out;
}

.download-box a:hover {
    color: #0056b3;
    transform: scale(1.05);
}

.download-box a::before {
    content: "📥 ";
    font-size: 1.2rem;
    margin-right: 5px;
}

/* ====== Zone centrale (SELFIM) ====== */
.central-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    max-width: 700px;
    margin: auto;
}

/* Texte */
.text-content {
    width: 90%;
    text-align: center;
    font-size: 0.95rem;
    font-family: 'Arial', sans-serif;
    line-height: 1.4;
}

/* Titres */
.text-content h3 {
    font-size: 1.15rem;
    color: #007bff;
    margin-top: 12px;
}

/* Paragraphes */
.text-content p {
    font-size: 0.90rem;
    margin-bottom: 8px;
    font-weight: 500;
}

/* Signature */
.signature {
    font-size: 0.8rem;
    font-style: italic;
    margin-top: 12px;
    color: #555;
}

/* ====== Responsive ====== */
@media (max-width: 900px) {
    .container {
        flex-direction: column;
        align-items: center;
    }
    .colonne {
        width: 90%;
        margin-bottom: 20px;
    }
    .central-content {
        padding: 15px;
    }
    .text-content {
        font-size: 0.95rem;
    }
    .text-content h3 {
        font-size: 1.2rem;
    }
}
/* Forcer tout le texte en noir */
body, h1, h2, h3, h4, h5, h6, p, span, div, li, ul, ol, table, tr, td, th, label {
    color: black;
}

/* Liens standards en noir par défaut et blancs au survol */
a, .cta-text, .download-box a {
    color: black;
    text-decoration: none; /* Supprime le soulignement */
    transition: color 0.3s ease-in-out;
}

/* Au survol : texte en blanc */
a:hover, .cta-text:hover, .download-box a:hover {
    color: white;
}
