

    /*------------------ PAGE NOUVEL ARTICLE ------------------------ */

    :root {
        --main-color: #f8f9fa;
        --secondary-color: #240046;
        --text-color: #333;
        --tertiere-color: #933de2;

        --primary-color: #3a0ca3;
        --primary-light: #4361ee;
        --accent-color: #f72585;
        --text-color: #333;
        --light-text: #666;
        --very-light-bg: #f8f9fa;
        --border-color: #e0e0e0;
        --success-color: #2ec4b6;
        --warning-color: #ff9f1c;
        --error-color: #e71d36;
        --container-width: 800px;
        --border-radius: 8px;
        --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        --transition: all 0.3s ease;
    }
    
  
    
    body {
        font-family: 'Segoe UI', 'Roboto', sans-serif;
        line-height: 1.6;
        color: var(--text-color);
        background-color: var(--very-light-bg);
        
    }
    
    /* container de formulaire pour ajout nouvel article */
    .container {
        max-width: var(--container-width);
        margin: 0 auto;
        background-color: white;
        border-radius: var(--border-radius);
        box-shadow: var(--box-shadow);
        overflow: hidden;
       
    }
    
    .form-header {
        padding: 2rem;
        border-bottom: solid 1px var(--border-color);
        color: black;
    }
    
    .form-title {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }
    
    .form-description {
        opacity: 0.8;
    }
    
    .form-body {
        padding: 2rem;
    }
    
    .form-section {
        margin-bottom: 2.5rem;
    }
    
    .form-section:last-child {
        margin-bottom: 0;
    }
    
    .section-title {
        font-size: 1.25rem;
        color: var(--primary-color);
        margin-bottom: 1rem;
        padding-bottom: 0.5rem;
        border-bottom: 1px solid var(--border-color);
    }
    
    .form-group {
        margin-bottom: 1.5rem;
    }
    
    .form-label {
        display: block;
        margin-bottom: 0.5rem;
        font-weight: 500;
        color: var(--text-color);
    }
    
    .form-input,
    .form-textarea,
    .form-select {
        width: 100%;
        padding: 0.75rem 1rem;
        border: 1px solid var(--border-color);
        border-radius: var(--border-radius);
        font-family: inherit;
        font-size: 1rem;
        color: var(--text-color);
        background-color: white;
        transition: var(--transition);
    }
    
    .form-input:focus,
    .form-textarea:focus,
    .form-select:focus {
        outline: none;
        border-color: var(--secondary-color);
        box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.1);
    }
    
    .form-textarea {
        min-height: 150px;
        resize: vertical;
    }
    
    .form-select {
        appearance: none;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: right 1rem center;
        background-size: 1em;
    }
    
    .form-hint {
        display: block;
        margin-top: 0.5rem;
        font-size: 0.85rem;
        color: var(--light-text);
    }
    
    .error-message {
        color: var(--error-color);
        font-size: 0.85rem;
        margin-top: 0.5rem;
    }
    
    .form-footer {
        padding: 2rem;
        background-color: var(--very-light-bg);
        display: flex;
        justify-content: flex-end;
        gap: 1rem;
        border-top: 1px solid var(--border-color);
    }
    
    .blog_btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
        padding: 0.75rem 1.5rem;
        border-radius: var(--border-radius);
        font-weight: 600;
        font-size: 1rem;
        cursor: pointer;
        transition: var(--transition);
        border: none;
    }
    
    .btn-primary {
        background-color: var(--primary-color);
        color: white;
    }
    
    .btn-primary:hover {
        background-color: #2a0978;
    }
    
    .btn-outline {
        background-color: transparent;
        border: 1px solid var(--border-color);
        color: var(--text-color);
    }
    
    .btn-outline:hover {
        background-color: rgba(0, 0, 0, 0.05);
    }
    
    .file-upload {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }
    
    .file-upload-area {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        border: 2px dashed var(--border-color);
        border-radius: var(--border-radius);
        padding: 2rem;
        text-align: center;
        cursor: pointer;
        transition: var(--transition);
    }
    
    .file-upload-area:hover {
        border-color: var(--secondary-color);
        background-color: rgba(67, 97, 238, 0.05);
    }
    
    .file-upload-icon {
        width: 48px;
        height: 48px;
        color: var(--secondary-color);
        margin-bottom: 1rem;
    }
    
    .file-upload-text {
        color: var(--light-text);
        margin-bottom: 0.5rem;
    }
    
    .file-upload-button {
        color: var(--secondary-color);
        font-weight: 600;
    }
    
    #file-upload {
        display: none;
    }
    
    .preview-image {
        display: none;
        max-width: 100%;
        height: auto;
        border-radius: var(--border-radius);
        margin-top: 1rem;
    }
    
    .content-blocks {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }
    
    .content-block {
        display: flex;
        gap: 0.5rem;
    }
    
    .content-block .form-textarea {
        flex: 1;
    }
    
    .content-block-actions {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .block-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 36px;
        border-radius: var(--border-radius);
        background-color: var(--very-light-bg);
        border: 1px solid var(--border-color);
        color: var(--light-text);
        cursor: pointer;
        transition: var(--transition);
    }
    
    .block-btn:hover {
        background-color: var(--border-color);
        color: var(--text-color);
    }
    
    .block-btn.delete-block:hover {
        background-color: rgba(231, 29, 54, 0.1);
        color: var(--error-color);
        border-color: var(--error-color);
    }
    
    .add-block-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
        padding: 0.75rem;
        border-radius: var(--border-radius);
        background-color: rgba(67, 97, 238, 0.1);
        color: var(--secondary-color);
        font-weight: 600;
        cursor: pointer;
        border: none;
        margin-top: 1rem;
        transition: var(--transition);
    }
    
    .add-block-btn:hover {
        background-color: rgba(67, 97, 238, 0.2);
    }
    
    .add-block-icon {
        width: 20px;
        height: 20px;
    }
    
    /* Date picker styling */
    input[type="date"] {
        position: relative;
    }
    
    input[type="date"]::-webkit-calendar-picker-indicator {
        position: absolute;
        right: 10px;
        top: 50%;
        transform: translateY(-50%);
        cursor: pointer;
    }

    body{
        background: var(--main-color)
    }
    
    /** ----------------------------------- PAGE LAYOUT ---------------- */
    .app_name{
        font-size: 2rem;
        font-weight: bold;
        color: white ;
        text-align: center;
        padding: 20px 0 20px 0;
        font-family: Verdana;
        letter-spacing: 4px;
        margin-block-start: 2px;
        margin-block-end: 2px;
        padding: 0;
        align-self: center;
        
    }

    .app_name::after{
        content: '';
        display: block;
        width: 70%;
        height: 1px;
        background: white;
        margin-top: 10px;
        margin-left: auto;
        margin-right: auto;
        opacity: 0.5;
    }

    .left_sidebar{
        background:linear-gradient(190deg, #240046 35%, #933de2);
        color:white;
        font-weight: bold;
        line-height: 24px;

    }

    

    /************************ pour grand écran *********************/
    /* barre de recherche de gauche */ 
    .left_sidebar{
        width: 250px;
        height: 100vh;
        position: fixed;
        top: 0;
    }
    /* barre de rechercehe du dessus */
    .topbar{
        width: calc(100% - 250px);
        position: fixed;
        top: 0;
        left: 258px;
        height: 100px;
        border-bottom: solid 1px var(--main-color);
        background:white;
        box-shadow: 2px 5px 5px #f5ecff;
        display: flex;
        justify-content: center;
        z-index:1
        
    }


    /*******************************************************************/


    
    .search_article_container{
        margin: 10px 0px 0 0;
        width: 95%;
        
    }

    .input_search_article{
        width: 300px;
        border: none;
        border-radius: 10px;
        box-shadow: 1px 1px 5px rgba(0, 0, 0, 0.1);
        padding:8px;
    }
    
    .btn_search{
        background: #240046;
        border: none;
        border-radius: 10px;
        box-shadow: 1px 1px 5px rgb(243, 243, 244);
        padding: 8px 15px 8px 15px;
        font-weight: bold;
        color: white;
        cursor: pointer;
    }

    .post_manager_container{
        display: grid;
        width: calc(100% - 250px);
        margin-left: 250px;
        margin-top: 140px;
        z-index: 5;
        gap: 20px;
    
        
    }


    .post_manager_header{
        
        gap: 10px;
        width: 90%;
        margin-left: auto;
        margin-right: auto;
        
    }

    .post_manager_sidebar{
        width:fit-content;
        display:flex;
        gap: 8px
    }

    .post_manager_body{
        background: white;
        border-radius: 0.5rem;
        padding:8px;
        width: 90%;
        margin-left: auto;
        margin-right: auto;
        box-shadow: 2px 5px 10px #f5ecff;

    }

    table{
        width: 100%;
        border-collapse: collapse; 
    }

    tr{
        gap: 15px;
        padding: 8px 16px 8px 16px;
        border-bottom: solid 1px var(--main-color);
        text-align: left;
        font-family: Arial, Helvetica, sans-serif ;
    }

    td{
        font-size: 0.8rem;
        font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    }

    .table_dates_examen{
        border-radius: 24px;
        box-shadow: 2px 4px 8px #b5b5b550;
        text-align: center;
    }


    .table_dates_examen td, .table_dates_examen th{
        padding: 10px;
        border-bottom: solid 1px lightgrey;
        text-align: center;
       
    }
    .table_dates_examen th{
        background: black;
        color: white
    }

    .date_examen_subtitle{
        text-align: center;
        font-size: 1.75rem;
    }

    .post_manager_body tr{
        display: grid;
        grid-template-columns: 0fr repeat(4, 2fr);

    }
    .post_manager_body td{
        display: flex;
        align-items: end;
        
    }

    .btn_action_container{
        width: fit-content;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap:8px;
    }

    .btn_delete_article, .btn_edit_article, .btn_add_article{
        width: 40px;
        height:40px;
        background: white;
        box-shadow: 1px 1px 5px #923de260;
        border-radius: 20px;
        border:none;
        padding: 10px;
        font-weight: bold;
        cursor: pointer;
        transition: all 0.3s ease;
    }

    .btn_edit_article:hover, .btn_add_article:hover{
        color: white;
        background:#933de2;
        transform: translateY(-10px);
        transition: all 0.3s ease;
    }

    .btn_delete_article:hover{
        background: #e71d36;
        font-weight: bold;
        color: white;
        transform: translateY(-10px);
        transition: all 0.3s ease;
        
    }
    
    

    .sidebar_list li{
        list-style: none;
        padding: 4px 0 4px 0;
        
    }

    .sidebar_list a{
    text-decoration: none;
    color: white;
    }

    

/*---------------- Template article blog ---------------------------*/
/* -----------------------------------------------------------------*/




.blog_title{
    font-size: 2.5rem;
    text-align: center;
    line-height: 3.5rem;
    color: #011627
}

article h2{
    font-size: 2rem;
    color: #2e3438;
    line-height: 3rem;
    font-weight: 800;
    text-align: center
}

article .cta_appel a>h2{
    font-size: 1.5rem
}

article p{
    line-height: 1.7rem;
    font-family:  Arial, serif;
    font-size: 1.2rem;
}

.author_container{
    display: flex;
    gap: 8px;
    margin-bottom: 2rem


}

.author_img_container{
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #2ec4b6;
    overflow: hidden
}

.author_img_container::after{
    content: '';
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    background: white;
    
}

.author_img_container::before{
    content: '';
    display: block;
    width: 40%;
    height: 40%;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    background: white;
    margin-top: 5px;
    margin-bottom: 3px;
    margin-right: auto;
    margin-left: auto;
    
}

.author_info_container{
    font-size: 0.8rem;
    text-align: left;
    transform: translateY(5px);

}

.author_info_container span:nth-child(1){
    font-weight: bold;
    
}

.article_img{
    max-width: 100%;
    border-radius: 10px
}

/* ------------------- call to action -----------------------*/
.cta_container{
    margin-block-start: 3rem;
    margin-block-end: 3rem
}

.cta_appel a{
    display: flex;
    align-items: center;
    background: #2ec4b6;
    justify-content: center;
    border-radius: 8px
    
}

.cta_appel img{
    height: 70%;
    
}

.cta_appel a>h2{
    color: white
}

@media (min-width: 768px){
    article{
        width: 50%;
        margin: auto
    }

    
}
