/*
  PMK Pages Responsive CSS
  Amélioration responsive pour toutes les pages du projet
  Date: 26 Octobre 2025
*/

/* ====================================
   PAGE BANNER RESPONSIVE
   ==================================== */

#page-banner {
    min-height: 250px;
}

@media (max-width: 991px) {
    #page-banner {
        padding-top: 80px !important;
        padding-bottom: 80px !important;
        min-height: 200px;
    }

    .page-banner-cont h2 {
        font-size: 32px !important;
    }
}

@media (max-width: 767px) {
    #page-banner {
        padding-top: 60px !important;
        padding-bottom: 60px !important;
        min-height: 180px;
    }

    .page-banner-cont h2 {
        font-size: 28px !important;
    }

    .breadcrumb {
        font-size: 13px;
    }
}

@media (max-width: 575px) {
    #page-banner {
        padding-top: 50px !important;
        padding-bottom: 50px !important;
        min-height: 150px;
    }

    .page-banner-cont h2 {
        font-size: 24px !important;
    }

    .breadcrumb {
        font-size: 12px;
        padding: 8px 12px;
    }
}

/* ====================================
   SECTION TITLE RESPONSIVE
   ==================================== */

@media (max-width: 767px) {
    .section-title h2 {
        font-size: 26px !important;
    }

    .section-title h5 {
        font-size: 14px !important;
    }

    .section-title .divider {
        width: 50px !important;
        margin: 15px auto !important;
    }
}

@media (max-width: 575px) {
    .section-title h2 {
        font-size: 22px !important;
    }

    .section-title h5 {
        font-size: 13px !important;
    }
}

/* ====================================
   ABOUT PAGE RESPONSIVE
   ==================================== */

@media (max-width: 991px) {
    #about-page .about-image {
        margin-bottom: 30px;
    }

    .commander-info {
        position: relative !important;
        bottom: 0 !important;
        left: 0 !important;
        transform: none !important;
        width: 100% !important;
        margin-top: 20px;
    }
}

@media (max-width: 767px) {
    .value-card {
        margin-bottom: 20px;
    }

    .card-number {
        font-size: 2rem !important;
    }

    .value-card h4 {
        font-size: 20px !important;
    }

    .value-card p,
    .value-card ul li {
        font-size: 14px !important;
    }
}

/* ====================================
   CONTACT PAGE RESPONSIVE
   ==================================== */

@media (max-width: 991px) {
    #contact-page .contact-from,
    #contact-page .contact-address {
        margin-bottom: 30px;
    }
}

@media (max-width: 767px) {
    .contact-from {
        padding: 25px 20px;
    }

    .contact-from .section-title h2 {
        font-size: 24px !important;
    }

    .singel-form input,
    .singel-form textarea {
        font-size: 14px;
        padding: 12px 15px;
    }

    .contact-address ul li {
        margin-bottom: 20px;
    }

    .contact-address .icon {
        font-size: 20px !important;
    }
}

@media (max-width: 575px) {
    .contact-from {
        padding: 20px 15px;
    }

    .singel-form input,
    .singel-form textarea {
        font-size: 13px;
        padding: 10px 12px;
    }
}

/* ====================================
   EVENTS PAGE RESPONSIVE
   ==================================== */

@media (max-width: 991px) {
    .singel-event-list {
        flex-direction: column;
    }

    .singel-event-list .event-thum {
        width: 100% !important;
        margin-bottom: 20px;
    }

    .singel-event-list .event-cont {
        width: 100% !important;
        padding-left: 0 !important;
    }
}

@media (max-width: 767px) {
    .singel-event h4 {
        font-size: 18px !important;
    }

    .singel-event span {
        font-size: 13px !important;
    }

    .event-title h3 {
        font-size: 22px !important;
    }
}

@media (max-width: 575px) {
    .singel-event h4 {
        font-size: 16px !important;
    }

    .singel-event span {
        font-size: 12px !important;
        display: block;
        margin-bottom: 5px;
    }
}

/* ====================================
   CARDS & BOXES RESPONSIVE
   ==================================== */

@media (max-width: 991px) {
    .singel-course,
    .singel-blog,
    .singel-teachers {
        margin-bottom: 30px;
    }
}

@media (max-width: 767px) {
    .singel-course .cont h4,
    .singel-blog .blog-cont h3 {
        font-size: 18px !important;
    }

    .singel-course .cont p,
    .singel-blog .blog-cont p {
        font-size: 14px !important;
    }

    .singel-course .thum img,
    .singel-blog .thum img {
        height: 200px !important;
        object-fit: cover;
    }
}

@media (max-width: 575px) {
    .singel-course .cont,
    .singel-blog .blog-cont {
        padding: 15px !important;
    }

    .singel-course .cont h4,
    .singel-blog .blog-cont h3 {
        font-size: 16px !important;
    }
}

/* ====================================
   FORMS RESPONSIVE
   ==================================== */

@media (max-width: 767px) {
    .main-form .row [class*="col-"] {
        margin-bottom: 15px;
    }

    .main-form input,
    .main-form select,
    .main-form textarea {
        font-size: 14px;
        padding: 12px;
    }

    .main-form button {
        width: 100%;
        padding: 12px;
        font-size: 14px;
    }
}

@media (max-width: 575px) {
    .main-form input,
    .main-form select,
    .main-form textarea {
        font-size: 13px;
        padding: 10px;
    }
}

/* ====================================
   TABLES RESPONSIVE
   ==================================== */

@media (max-width: 991px) {
    .table-responsive {
        display: block;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    table {
        min-width: 600px;
    }
}

@media (max-width: 767px) {
    table {
        font-size: 13px;
    }

    table th,
    table td {
        padding: 8px 5px !important;
        white-space: nowrap;
    }
}

/* ====================================
   MEDIA/GALLERY RESPONSIVE
   ==================================== */

@media (max-width: 991px) {
    .gallery-item,
    .video-item {
        margin-bottom: 20px;
    }
}

@media (max-width: 767px) {
    .gallery-item img {
        height: 200px !important;
        object-fit: cover;
    }
}

@media (max-width: 575px) {
    .gallery-item img {
        height: 150px !important;
    }
}

/* ====================================
   COUNTER/STATISTICS RESPONSIVE
   ==================================== */

@media (max-width: 991px) {
    .singel-counter {
        margin-bottom: 30px;
    }
}

@media (max-width: 767px) {
    .singel-counter span,
    .counter-number {
        font-size: 2.5rem !important;
    }

    .singel-counter p {
        font-size: 15px !important;
    }
}

@media (max-width: 575px) {
    .singel-counter span,
    .counter-number {
        font-size: 2rem !important;
    }

    .singel-counter p {
        font-size: 14px !important;
    }
}

/* ====================================
   ADMISSION/INSCRIPTION RESPONSIVE
   ==================================== */

@media (max-width: 991px) {
    .admission-info,
    .inscription-form {
        margin-bottom: 30px;
    }
}

@media (max-width: 767px) {
    .admission-steps {
        text-align: center;
    }

    .step-number {
        font-size: 2rem !important;
        margin-bottom: 15px;
    }

    .step-content h4 {
        font-size: 18px !important;
    }

    .step-content p {
        font-size: 14px !important;
    }
}

/* ====================================
   PROGRAMMES/FORMATIONS RESPONSIVE
   ==================================== */

@media (max-width: 991px) {
    .program-card,
    .formation-item {
        margin-bottom: 25px;
    }
}

@media (max-width: 767px) {
    .program-card {
        padding: 20px !important;
    }

    .program-card h3 {
        font-size: 20px !important;
    }

    .program-card p,
    .program-card ul li {
        font-size: 14px !important;
    }
}

/* ====================================
   MILITAIRE/DISCIPLINE RESPONSIVE
   ==================================== */

@media (max-width: 991px) {
    .discipline-section,
    .military-section {
        margin-bottom: 40px;
    }
}

@media (max-width: 767px) {
    .discipline-card,
    .military-card {
        padding: 20px !important;
        margin-bottom: 20px;
    }

    .discipline-card h3,
    .military-card h3 {
        font-size: 20px !important;
    }
}

/* ====================================
   SERVICES RESPONSIVE
   ==================================== */

@media (max-width: 991px) {
    .service-item {
        margin-bottom: 30px;
    }
}

@media (max-width: 767px) {
    .service-item {
        text-align: center;
    }

    .service-item .icon {
        font-size: 3rem !important;
        margin-bottom: 15px;
    }

    .service-item h4 {
        font-size: 18px !important;
    }

    .service-item p {
        font-size: 14px !important;
    }
}

/* ====================================
   LISTS RESPONSIVE
   ==================================== */

@media (max-width: 767px) {
    ul.list-unstyled li,
    ol.list-styled li {
        font-size: 14px !important;
        margin-bottom: 10px;
    }

    ul.list-unstyled li i,
    ol.list-styled li i {
        font-size: 12px !important;
    }
}

/* ====================================
   IMAGES RESPONSIVE
   ==================================== */

@media (max-width: 991px) {
    .img-fluid {
        max-width: 100%;
        height: auto;
    }
}

@media (max-width: 767px) {
    .rounded-circle {
        width: 100px !important;
        height: 100px !important;
    }
}

/* ====================================
   BUTTONS RESPONSIVE
   ==================================== */

@media (max-width: 767px) {
    .main-btn,
    .btn {
        padding: 10px 20px !important;
        font-size: 14px !important;
        width: 100%;
        margin-bottom: 10px;
    }

    .btn-group {
        flex-direction: column;
    }

    .btn-group .btn {
        width: 100%;
        margin-bottom: 10px;
    }
}

@media (max-width: 575px) {
    .main-btn,
    .btn {
        padding: 8px 15px !important;
        font-size: 13px !important;
    }
}

/* ====================================
   SPACING RESPONSIVE
   ==================================== */

@media (max-width: 991px) {
    .pt-120, .pt-110, .pt-100, .pt-90 {
        padding-top: 60px !important;
    }

    .pb-120, .pb-110, .pb-100, .pb-90 {
        padding-bottom: 60px !important;
    }

    .mt-50, .mt-60, .mt-70 {
        margin-top: 30px !important;
    }

    .mb-50, .mb-60, .mb-70 {
        margin-bottom: 30px !important;
    }
}

@media (max-width: 767px) {
    .pt-120, .pt-110, .pt-100, .pt-90 {
        padding-top: 40px !important;
    }

    .pb-120, .pb-110, .pb-100, .pb-90 {
        padding-bottom: 40px !important;
    }

    .mt-50, .mt-60, .mt-70 {
        margin-top: 20px !important;
    }

    .mb-50, .mb-60, .mb-70 {
        margin-bottom: 20px !important;
    }
}

@media (max-width: 575px) {
    .pt-120, .pt-110, .pt-100, .pt-90 {
        padding-top: 30px !important;
    }

    .pb-120, .pb-110, .pb-100, .pb-90 {
        padding-bottom: 30px !important;
    }
}

/* ====================================
   TYPOGRAPHY RESPONSIVE
   ==================================== */

@media (max-width: 991px) {
    h1 {
        font-size: 36px !important;
    }

    h2 {
        font-size: 30px !important;
    }

    h3 {
        font-size: 24px !important;
    }

    h4 {
        font-size: 20px !important;
    }
}

@media (max-width: 767px) {
    h1 {
        font-size: 28px !important;
        line-height: 1.3 !important;
    }

    h2 {
        font-size: 24px !important;
        line-height: 1.3 !important;
    }

    h3 {
        font-size: 20px !important;
    }

    h4 {
        font-size: 18px !important;
    }

    h5 {
        font-size: 16px !important;
    }

    p {
        font-size: 14px !important;
        line-height: 1.6 !important;
    }
}

@media (max-width: 575px) {
    h1 {
        font-size: 24px !important;
    }

    h2 {
        font-size: 20px !important;
    }

    h3 {
        font-size: 18px !important;
    }

    h4 {
        font-size: 16px !important;
    }

    p {
        font-size: 13px !important;
    }
}

/* ====================================
   GRID SYSTEM ADJUSTMENTS
   ==================================== */

@media (max-width: 767px) {
    [class*="col-"] {
        padding-left: 10px;
        padding-right: 10px;
    }

    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
}

/* ====================================
   DISPLAY UTILITIES
   ==================================== */

@media (max-width: 991px) {
    .d-lg-none-mobile {
        display: none !important;
    }
}

@media (max-width: 767px) {
    .d-md-none-mobile {
        display: none !important;
    }

    .text-center-mobile {
        text-align: center !important;
    }
}

/* ====================================
   VIDEO/IFRAME RESPONSIVE
   ==================================== */

@media (max-width: 991px) {
    .video-wrapper,
    .iframe-container {
        position: relative;
        padding-bottom: 56.25%;
        height: 0;
        overflow: hidden;
    }

    .video-wrapper iframe,
    .iframe-container iframe {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }
}

/* ====================================
   SHADOW & HOVER EFFECTS
   ==================================== */

@media (max-width: 767px) {
    .shadow-lg {
        box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1) !important;
    }

    .hover-effect:hover {
        transform: none !important;
    }
}

/* ====================================
   SPECIAL CASES
   ==================================== */

/* Fix pour les images de fond */
@media (max-width: 767px) {
    [style*="background-image"] {
        background-size: cover !important;
        background-position: center !important;
    }
}

/* Fix pour les positions absolues */
@media (max-width: 767px) {
    .position-absolute {
        position: relative !important;
    }
}

/* Fix pour le texte justifié sur mobile */
@media (max-width: 575px) {
    p[style*="text-align: justify"],
    .text-justify {
        text-align: left !important;
    }
}

/* ====================================
   ACCESSIBILITY
   ==================================== */

@media (max-width: 767px) {
    /* Zone de clic minimum 44px */
    a, button, input, select {
        min-height: 44px;
        min-width: 44px;
    }

    /* Améliorer la lisibilité */
    body {
        -webkit-text-size-adjust: 100%;
        -moz-text-size-adjust: 100%;
        text-size-adjust: 100%;
    }
}

/* ====================================
   PRINT STYLES
   ==================================== */

@media print {
    .no-print,
    header,
    footer,
    .navbar,
    .btn,
    .navigation,
    #header-part {
        display: none !important;
    }

    body {
        font-size: 12pt;
        color: #000;
    }

    a[href]:after {
        content: " (" attr(href) ")";
    }
}

