/* =========================================
   RESET
========================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


/* =========================================
   PAGE
========================================= */

body {
    min-height: 100vh;

    font-family: Arial, Helvetica, sans-serif;

    background: #07090f;

    color: #ffffff;
}


/* =========================================
   CONTENEUR PRINCIPAL
========================================= */

.programs-container {
    width: min(1200px, 92%);

    margin: 0 auto;

    padding: 70px 0;
}


/* =========================================
   HEADER
========================================= */

.programs-header {
    text-align: center;

    margin-bottom: 45px;
}


.header-line {
    display: block;

    width: 60px;
    height: 3px;

    margin: 0 auto 25px;

    background: #4d8dff;

    box-shadow:
        0 0 15px rgba(77, 141, 255, 0.7);
}


.header-small {
    margin-bottom: 12px;

    font-size: 12px;

    letter-spacing: 4px;

    color: #6d9cff;
}


.programs-header h1 {
    font-size: clamp(35px, 6vw, 65px);

    letter-spacing: 3px;

    color: #ffffff;
}


.program-count {
    margin-top: 15px;

    font-size: 11px;

    letter-spacing: 2px;

    color: #68738b;
}


/* =========================================
   RECHERCHE
========================================= */

.search-container {
    display: flex;
    align-items: center;

    width: min(600px, 100%);

    height: 55px;

    margin: 0 auto 55px;

    padding: 0 20px;

    border: 1px solid #252d3e;
    border-radius: 10px;

    background: #0c1019;

    transition: 0.3s ease;
}


.search-container:focus-within {
    border-color: #4d8dff;

    box-shadow:
        0 0 20px rgba(77, 141, 255, 0.15);
}


.search-icon {
    margin-right: 12px;

    font-size: 25px;

    color: #6d9cff;
}


.search-container input {
    width: 100%;

    border: none;
    outline: none;

    background: transparent;

    color: #ffffff;

    font-size: 13px;

    letter-spacing: 1px;
}


.search-container input::placeholder {
    color: #596275;
}


/* =========================================
   GRILLE
========================================= */

.programs-grid {
    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 25px;
}


/* =========================================
   CARTE
========================================= */

.program-card {
    position: relative;

    display: flex;
    flex-direction: column;

    min-height: 270px;

    padding: 30px;

    overflow: hidden;

    text-decoration: none;

    border: 1px solid #202838;
    border-radius: 16px;

    background: #0b0f18;

    transition:
        transform 0.35s ease,
        border-color 0.35s ease,
        box-shadow 0.35s ease,
        background 0.35s ease;
}


.program-card:hover {
    transform: translateY(-7px);

    border-color: #4d8dff;

    background: #0d1422;

    box-shadow:
        0 15px 40px rgba(0, 0, 0, 0.4),
        0 0 25px rgba(77, 141, 255, 0.12);
}


/* =========================================
   NUMÉRO
========================================= */

.program-number {
    position: absolute;

    top: 25px;
    right: 30px;

    font-family: "Courier New", monospace;

    font-size: 13px;

    color: #4c5870;
}


.program-card:hover .program-number {
    color: #6d9cff;
}


/* =========================================
   ICÔNE
========================================= */

.program-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 65px;
    height: 65px;

    margin-bottom: 25px;

    border: 1px solid #293449;
    border-radius: 12px;

    background: #111725;

    font-size: 30px;

    transition: 0.35s ease;
}


.program-card:hover .program-icon {
    border-color: #4d8dff;

    background: #121e35;

    transform: scale(1.05);

    box-shadow:
        0 0 20px rgba(77, 141, 255, 0.15);
}


/* =========================================
   NOM DU PROGRAMME
========================================= */

.program-card h2 {
    margin-bottom: auto;

    font-size: clamp(20px, 3vw, 28px);

    letter-spacing: 1px;

    color: #ffffff;
}


/* =========================================
   BOUTON OUVRIR
========================================= */

.open-program {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-top: 30px;
    padding-top: 18px;

    border-top: 1px solid #1d2533;

    font-family: "Courier New", monospace;

    font-size: 12px;
    letter-spacing: 2px;

    color: #6d9cff;

    transition: 0.3s ease;
}


.open-program span {
    font-size: 20px;

    transition: transform 0.3s ease;
}


.program-card:hover .open-program {
    color: #ffffff;
}


.program-card:hover .open-program span {
    transform: translateX(8px);

    color: #6d9cff;
}


/* =========================================
   AUCUN RÉSULTAT
========================================= */

.no-results {
    display: none;

    margin-top: 40px;

    text-align: center;

    font-size: 14px;

    color: #69758c;
}


/* =========================================
   FOOTER
========================================= */

.programs-footer {
    display: flex;
    justify-content: center;

    margin-top: 60px;
}


.back-button {
    padding: 12px 20px;

    border: 1px solid #252d3e;
    border-radius: 8px;

    color: #78849b;

    font-size: 12px;

    letter-spacing: 1px;

    text-decoration: none;

    transition: 0.3s ease;
}


.back-button:hover {
    border-color: #4d8dff;

    color: #ffffff;

    background: #0d1422;
}


/* =========================================
   TABLETTE
========================================= */

@media (max-width: 750px) {

    .programs-container {
        padding: 45px 0;
    }

    .programs-grid {
        grid-template-columns: 1fr;
    }

}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 450px) {

    .programs-container {
        width: 88%;
    }

    .programs-header h1 {
        font-size: 32px;
    }

    .header-small {
        font-size: 10px;

        letter-spacing: 2px;
    }

    .program-card {
        min-height: 230px;

        padding: 25px;
    }

    .program-icon {
        width: 55px;
        height: 55px;

        font-size: 25px;
    }

}