/*
 * Members Access Control — Styles publics
 * Affichage du bloc de restriction et du formulaire de demande.
 */

/* ------------------------------------------------------------------
   Bloc de contenu restreint
   ------------------------------------------------------------------ */
.mac-restricted-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 2.5rem 2rem;
    margin: 2rem 0;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-left: 4px solid #6c757d;
    border-radius: 6px;
    text-align: center;
    font-size: 1rem;
    color: #343a40;
}

.mac-restricted-content__icon {
    font-size: 2.5rem;
    line-height: 1;
}

.mac-restricted-content__text a {
    color: #0056b3;
    font-weight: 600;
    text-decoration: underline;
}

/* ------------------------------------------------------------------
   Notices d'état
   ------------------------------------------------------------------ */
.mac-notice {
    padding: .85rem 1.2rem;
    border-radius: 5px;
    margin: 1rem 0;
    font-size: .95rem;
}

.mac-notice--success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.mac-notice--pending {
    background: #fff3cd;
    border: 1px solid #ffeeba;
    color: #856404;
}

.mac-notice--rejected {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

/* ------------------------------------------------------------------
   Formulaire de demande
   ------------------------------------------------------------------ */
.mac-form-wrapper {
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem;
    background: #ffffff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .06);
}

.mac-form-wrapper__title {
    margin-top: 0;
    font-size: 1.5rem;
    color: #212529;
}

.mac-form-wrapper__intro {
    color: #6c757d;
    margin-bottom: 1.5rem;
    font-size: .95rem;
}

.mac-form__group {
    margin-bottom: 1.2rem;
    display: flex;
    flex-direction: column;
    gap: .35rem;
}

.mac-form__label {
    font-weight: 600;
    font-size: .9rem;
    color: #343a40;
}

.mac-form__input,
.mac-form__textarea {
    width: 100%;
    padding: .55rem .8rem;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 1rem;
    color: #495057;
    transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
    box-sizing: border-box;
}

.mac-form__input:focus,
.mac-form__textarea:focus {
    border-color: #80bdff;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, .25);
}

/* Honeypot : invisible pour les humains */
.mac-form__honeypot {
    position: absolute;
    left: -9999px;
    top: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
    visibility: hidden;
}

.mac-form__submit {
    display: inline-block;
    padding: .65rem 1.8rem;
    background: #007bff;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s ease;
}

.mac-form__submit:hover,
.mac-form__submit:focus {
    background: #0056b3;
    outline: none;
}
