@charset "UTF-8";

/*!
 * Version - 1.1.1
 * L’autorisation est accordée à toute personne qui en obtient une copie de ce style.
 * Il est strictement interdit de publier(vendre) sans l'autorisation préalable des auteurs.
 * Des spécialistes sont à l'origine des documents fournis.
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/7.0.1/css/all.min.css');
@import url('../vendor/bootstrap/css/bootstrap.min.css');


/* ==================================================
   VARIABLES
================================================== */

:root {

    /* Brand */
    --primary: #dd1e26;
    --primary-hover: #c11920;
    --primary-light: #fdeced;

    /* Surfaces */
    --background: #f5f5f7;
    --surface: #ffffff;

    /* Text */
    --text-primary: #1d1d1f;
    --text-secondary: #696969;

    /* States */
    --success: #34c759;
    --danger: #ff3b30;
    --warning: #ff9f0a;

    /* Borders */
    --border: #e5e5e7;

    /* Typography */
    --ff-source: "Inter", sans-serif;

    /* Radius */
    --radius-sm: 12px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 30px;

    /* Shadows */
    --shadow-sm: 0 4px 12px rgba(0, 0, 0, .05);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, .08);
    --shadow-lg: 0 20px 50px rgba(0, 0, 0, .12);

    /* Transitions */
    --transition-fast: .2s ease;
    --transition-normal: .3s ease;
}

body {
    background: var(--bg);
    font-family: var(--ff-source);

    color: var(--text);
    padding-bottom: 120px;
}

/* HEADER */

.logo-circle {
    width: 80px;
    height: 80px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: auto;
    font-size: 32px;
    font-weight: 700;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .08);
}

.page-title {
    font-size: 36px;
    font-weight: 700;
}

.page-subtitle {
    color: var(--secondary);
}

.selected {
    border-color: var(--primary);
    background: #f2f8ff;
}

.candidate-check {
    margin-top: 15px;
    color: var(--primary);
    font-weight: 600;
}

/* FOOTER */

.vote-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, .90);
    backdrop-filter: blur(20px);
    padding: 20px;
    border-top: 1px solid #eee;
}

.btn-vote {
    width: 100%;
    border-radius: 14px;
    background: var(--primary);
    color: white;
    padding: 15px;
    font-weight: 600;
    font-size: 17px;
}

.btn-vote:hover {
    background: var(--primary-hover);
    color: white;
}

/* MODAL */
.custom-modal {
    border: none;
    border-radius: 28px;
    overflow: hidden;
}

.selected-user {
    background: #f5f5f7;
    padding: 18px;
    border-radius: 14px;
    font-weight: 600;
    font-size: 20px;
}

/* Modal */
.custom-modal {
    border: none;
    border-radius: 32px;
    overflow: hidden;
    background: #fff;
    box-shadow:
        0 25px 60px rgba(0, 0, 0, .15);
}

.custom-modal .modal-body {
    padding: 40px 35px;
    text-align: center;
}

.custom-modal-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    font-weight: 700;
}

.custom-modal-icon.success {
    background: rgba(52, 199, 89, .12);
    color: #34c759;
}

.custom-modal-icon.error {
    background: rgba(255, 59, 48, .12);
    color: #ff3b30;
}

.custom-modal-title {
    font-size: 28px;
    font-weight: 700;
    color: #1d1d1f;
    margin-bottom: 12px;
}

.custom-modal-text {
    color: #6e6e73;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 30px;
}

.custom-modal-btn {
    width: 100%;
    height: 54px;
    border: none;
    border-radius: 16px;
    background: #dd1e26;
    color: white;
    font-weight: 600;
    transition: .2s;
}

.custom-modal-btn:hover {
    background: #c11920;
    color: white;
}

/* MOBILE */

@media(max-width:768px) {

    .page-title {
        font-size: 28px;
    }

    .candidate-card {
        padding: 20px;
    }

    .candidate-avatar {
        width: 80px;
        height: 80px;
    }

}