/* ===== LISTE DES NUMÉROS ===== */
.numeros-page-layout {
    display: flex;
    gap: 40px;
    padding: 60px 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.numeros-main-content {
    width: 70%;
    padding: 40px;
}

.numeros-year-heading {
    margin: 40px 0 20px;
    font-size: 24px;
    border-bottom: 2px solid #ccc;
    padding-bottom: 5px;
    color: #333;
}

/* Grille des numéros */
.numeros-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

/* Carte d’un numéro */
.numero-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    transition: 
        box-shadow 0.3s ease,
        border-color 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

/* Au survol, ombre renforcée et bordure colorée */
.numero-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-color: #007bff;
}

/* Image de couverture */
.numero-card img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin-bottom: 10px;
}

/* Titre du numéro */
.numero-card h3 {
    font-size: 18px;
    margin: 10px 0 5px;
    color: #222;
    transition: color 0.3s ease;
}

/* Description courte */
.numero-card p {
    margin: 0;
    color: #555;
    font-size: 14px;
}

/* Style quand la couverture est manquante */
.numero-no-cover {
    height: 200px;
    background-color: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-style: italic;
    color: #777;
    margin-bottom: 10px;
}

/* Lien vers la carte – suppression de tout soulignement */
.numero-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* Au survol du lien, on change uniquement la couleur du titre (et on ne montrer aucun soulignement) */
.numero-card-link:hover .numero-card h3 {
    color: #007bff;
}
.numero-card-link:hover,
.numero-card-link:focus {
    text-decoration: none;
}

/* ===== MESSAGES (succès / erreur) ===== */
.message {
    padding: 12px 16px;
    margin-bottom: 20px;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 500;
    text-align: center;
}
.message.success {
    background-color: #e6ffed;
    border: 1px solid #34a853;
    color: #1e4620;
}
.message.error {
    background-color: #ffe6e6;
    border: 1px solid #d93025;
    color: #8a1f1f;
}

/* ===== FORMULAIRE DE CONTACT ===== */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Labels et légendes */
.contact-form label,
.contact-form legend {
    display: block;
    margin-bottom: 6px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #333;
}

/* Champs de saisie (texte, email, textarea) */
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    background-color: #fbfbfb;
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 10px 12px;
    font-size: 1rem;
    color: #333;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.3);
}
.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

/* ===== GROUPE DE BOUTONS RADIO « Destinataire » ===== */
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 10px 14px;
    border: 1px solid #ccc;
    border-radius: 6px;
    background-color: #fbfbfb;
}
.radio-group legend {
    margin-bottom: 8px;
}

/* Chaque label contient input + span + texte */
.radio-group label {
    position: relative;
    padding-left: 30px; /* espace pour le cercle LTR */
    font-size: 0.95rem;
    color: #333;
    cursor: pointer;
    user-select: none;
}

/* Masquer l’input radio natif */
.radio-group input[type="radio"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

/* Cercle personnalisé */
.radio-group span.custom-radio {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    border: 2px solid #ccc;
    border-radius: 50%;
    background-color: #fff;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

/* Cercle intérieur (invisible par défaut) */
.radio-group span.custom-radio::after {
    content: "";
    position: absolute;
    left: 4px;
    top: 4px;
    width: 8px;
    height: 8px;
    background-color: #fff;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.2s ease;
}

/* Quand l’input est coché */
.radio-group input[type="radio"]:checked + span.custom-radio {
    background-color: #007bff;
    border-color: #007bff;
}
.radio-group input[type="radio"]:checked + span.custom-radio::after {
    opacity: 1;
    background-color: #fff;
}

/* ===== RTL : inverser l’ordre et position des cercles ===== */
[dir="rtl"] .radio-group label {
    padding-left: 0;
    padding-right: 30px; /* espace pour le cercle RTL */
}
[dir="rtl"] .radio-group span.custom-radio {
    left: auto;
    right: 0; /* placer le cercle à droite */
}
[dir="rtl"] .radio-group span.custom-radio::after {
    left: auto;
    right: 4px; /* centrer le point intérieur dans le cercle RTL */
}

/* ===== BOUTON D’ENVOI ===== */
.contact-form button[type="submit"] {
    font-family: 'Noto Kufi Arabic', sans-serif;
    align-self: center;
    background-color: #007bff;
    color: #fff;
    padding: 10px 22px;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}
.contact-form button[type="submit"]:hover {
    background-color: #0056b3;
}

/* ===== POLICE GLOBALE ===== */
body,
input,
textarea {
    font-family: Arial, sans-serif;
}

/* ===== RESPONSIVE (mobiles) ===== */
@media (max-width: 600px) {
    .main-content {
        padding: 20px;
        margin: 20px auto;
    }
    .main-content h1 {
        font-size: 1.6rem;
    }
    .contact-form {
        gap: 12px;
    }
    .radio-group {
        padding: 8px 10px;
    }
    .radio-group label {
        font-size: 0.9rem;
        padding-left: 26px;
    }
    .radio-group span.custom-radio {
        width: 16px;
        height: 16px;
    }
    .radio-group span.custom-radio::after {
        left: 3px;
        top: 3px;
        width: 6px;
        height: 6px;
    }
    .contact-form button[type="submit"] {
        padding: 8px 18px;
        font-size: 0.95rem;
    }
}
