@media all{
  /* home.css - Seksyon Aplikasyon Pratik */

.app {
    padding: 30px 15px;
    background: #ffffff;
    border-radius: 20px 20px 0 0;
    margin-top: -20px; /* Pou l monte sou background home nan yon ti kras */
    position: relative;
    z-index: 10;
}

.app-header {
    text-align: center;
    margin-bottom: 25px;
}

.app-header h2 {
    font-size: 1.8rem;
    color: #0f1419;
    font-weight: 800;
    margin-bottom: 5px;
}

.app-header p {
    font-size: 16px;
    color: #536471;
}

.cardApp {
    display: grid;
    grid-template-columns: repeat(3, 1fr); 
    gap: 12px; 
}

/* Stil pou chak kat aplikasyon */
.app-card {
    background: #f7f9f9;
    border: 1px solid #eff3f4;
    padding: 1px 1px;
    text-align: center;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Efè lè ou klike/touche */
.app-card:active {
    transform: scale(0.92);
    background-color: #e8f5fd;
}

.app-icon-wrapper {
    width: 60px;
    height: 60px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.app-card img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.app-card h3 {
    font-size: 16px;
    font-weight: 700;
    color: #0f1419;
    margin: 5px 0 2px 0;
}

.app-card p {
    font-size: 14px;
    color: #1d9bf0;
    font-weight: 600;
    margin: 0;
    text-transform: lowercase;
}
}

/* home.css - Seksyon Sèvis */
@media all{
.services-section {
    padding: 40px 15px;
    background-color: #f0f2f5; /* Yon ti gri dous pou separe l ak lòt pati yo */
    border-top: 1px solid #e1e8ed;
}

.services-grid {
    display: flex;
    overflow-x: auto;
    gap: 15px;
    margin-top: 20px;
}

.service-card {
  min-width: 300px;
    background: white;
    padding: 20px 15px;
    border-radius: 18px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-bottom: 3px solid transparent;
}

.service-card:hover {
    transform: translateY(-5px);
    border-bottom: 3px solid #1d9bf0;
}

.service-icon {
    width: 50px;
    height: 50px;
    background: #e8f5fd;
    color: #1d9bf0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 15px;
}

/* Koulè espesyal pou WhatsApp */
.service-card:nth-child(2) .service-icon {
    background: #e7fbe2;
    color: #25d366;
}

/* Koulè espesyal pou Kou */
.service-card:nth-child(3) .service-icon {
    background: #fff4e5;
    color: #f39c12;
}

.service-card h3 {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 10px;
    color: #0f1419;
}

.service-card p {
    font-size: 16px;
    color: #536471;
    line-height: 1.4;
    margin-bottom: 15px;
    flex-grow: 1;
}

.service-tag {
    font-size: 10px;
    font-weight: 700;
    background: #f0f2f5;
    padding: 5px 10px;
    border-radius: 12px;
    color: #1d9bf0;
    text-transform: uppercase;
}
}

@media all{
  /* home.css - Dènye Mesaj */

.last-messages-section {
  margin-top: 20px;
    padding: 30px 15px;
    background: white;
}

.last-messages-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 Kolòn sou tablèt/PC */
    gap: 15px;
}

.last-msg-card {
    display: flex;
    background: #f8f9fa;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #eee;
    transition: 0.3s;
}

.last-msg-card:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.msg-img-crop {
    width: 100px;
    min-width: 100px;
    height: auto;
    background: #ddd;
}

.msg-img-crop img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.msg-details {
    padding: 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.msg-badge {
    font-size: 9px;
    background: #1d9bf0;
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    width: fit-content;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.msg-details h4 {
    font-size: 16px;
    margin: 0 0 5px 0;
    color: #0f1419;
    line-height: 1.2;
}

.msg-details p {
    font-size: 14px;
    color: #536471;
    margin: 0 0 10px 0;
}

.msg-link {
    font-size: 14px;
    font-weight: bold;
    color: #1d9bf0;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
}

.btn-see-more {
    background: none;
    border: 2px solid #1d9bf0;
    color: #1d9bf0;
    padding: 10px 25px;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.btn-see-more:hover {
    background: #1d9bf0;
    color: white;
}


}

/* ========== STYLE DE BASE ========== */
@media all{
.home {
    background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('../image/backHome.png');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    text-align: center;
    color: white;
    padding: 40px 20px;
}



/* ========== STYLE PWOFIL ========== */
.profile-card {
    background: white;
    margin: 20px;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    text-align: center;
}

.avatar-big {
    width: 100px;
    height: 100px;
    background: #1d9bf0;
    color: white;
    font-size: 40px;
    border-radius: 50%;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 3px solid #1d9bf0;
}

.avatar-big img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.info-group {
    text-align: left;
    margin-top: 20px;
    border-top: 1px solid #eee;
    padding-top: 10px;
}

.info-item {
    margin-bottom: 10px;
    font-size: 16px;
}

.info-label {
    font-weight: bold;
    color: #555;
}

.edit-input {
    width: 100%;
    padding: 8px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 5px;
    display: none;
}

.editing .edit-input {
    display: block;
}

.editing .info-value {
    display: none;
}

#avatar-selector {
    display: none;
    gap: 10px;
    overflow-x: auto;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    margin-bottom: 15px;
}

.editing #avatar-selector {
    display: flex;
}

.avatar-option {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid transparent;
    flex-shrink: 0;
}

.avatar-option.selected {
    border-color: #1d9bf0;
}

/* Responsive Profile */
@media (max-width: 768px) {
    .profile-card {
        margin: 10px;
        padding: 15px;
    }
    
    .avatar-big {
        width: 80px;
        height: 80px;
        font-size: 32px;
    }
}

@media (max-width: 480px) {
    .profile-card {
        margin: 5px;
        padding: 12px;
    }
    
    .info-item {
        font-size: 14px;
    }
}

/* ========== STYLE KOMINOTE ========== */
#community-section {
    padding: 0;
    background: white;
    min-height: 100vh;
}

.post-input-box {
    background: white;
    padding: 15px;
    border-bottom: 1px solid #eff3f4;
    margin-bottom: 0;
    box-shadow: none;
    display: flex;
    flex-wrap: nowrap;
    border: 1px solid gray;
}

.post-input-box textarea {
    width: 100%;
    border: none;
    outline: none;
    resize: none;
    font-size: 16px;
    margin-bottom: 10px;
    font-family: inherit;
}

#fab-post {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 56px;
    height: 56px;
    background: #1d9bf0;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    cursor: pointer;
    z-index: 100;
    border: none;
}

.post-card {
    background: white;
    padding: 12px 16px;
    border-bottom: 1px solid #eff3f4;
    display: flex;
    gap: 12px;
    box-shadow: none;
    border-radius: 0;
}

.post-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #1d9bf0;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
    overflow: hidden;
}

.post-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-content {
    flex-grow: 1;
}

.post-user {
    font-weight: bold;
    color: #0f1419;
    font-size: 16px;
    cursor: pointer;
}

.post-time {
    font-size: 16px;
    color: #536471;
}

.post-text {
    font-size: 16px;
    color: #0f1419;
    margin: 4px 0;
    word-break: break-word;
    line-height: 1.3;
}

.post-actions {
    display: flex;
    justify-content: space-between;
    max-width: 300px;
    margin-top: 10px;
}

.action-btn {
    background: none;
    border: none;
    color: #536471;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
}

.liked {
    color: #f91880;
    font-weight: bold;
}

.disliked {
    color: #ff3b30;
    font-weight: bold;
}

.user-scroll-container {
    display: flex;
    overflow-x: auto;
    gap: 15px;
    padding: 15px 10px;
    scrollbar-width: none;
}

.user-card {
    flex: 0 0 80px;
    text-align: center;
    border: 1px solid #eff3f4;
    padding: 10px;
    border-radius: 12px;
}

.avatar-small {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: #1d9bf0;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: bold;
    margin: 0 auto 5px;
    border: 2px solid #1d9bf0;
    overflow: hidden;
}

.avatar-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Responsive Kominote */
@media (max-width: 768px) {
    .post-card {
        padding: 10px 12px;
    }
    
    .post-avatar {
        width: 40px;
        height: 40px;
    }
    
    .post-text {
        font-size: 16px;
    }
    
    .fab-post {
        width: 48px;
        height: 48px;
        bottom: 70px;
        right: 15px;
    }
}

@media (max-width: 480px) {
    .post-card {
        padding: 8px 10px;
    }
    
    .post-user {
        font-size: 16px;
    }
    
    .post-time {
        font-size: 14px;
    }
    
    .post-actions {
        width: 100%;
    }
}

/* ========== STYLE WHATSAPP ========== */
#whatsapp-container {
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.ws-card {
    background: #fff;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    width: 100%;
    box-sizing: border-box;
}

.ws-card h3 {
    margin: 10px 0;
    color: #333;
    font-size: 18px;
}

.ws-card p {
    color: #555;
    font-size: 16px;
    margin: 5px 0;
}

.ws-card a {
    display: inline-block;
    margin-top: 10px;
    color: white;
    background: #25D366;
    padding: 10px 15px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    width: 100%;
    text-align: center;
    box-sizing: border-box;
}

.ws-img-preview {
    width: 100%;
    border-radius: 8px;
    margin-top: 10px;
}

.ws-badge {
    background: #e7f3ff;
    color: #1d9bf0;
    padding: 4px 8px;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
}


/* ========== STYLE KOU, LESON, SÈTIFIKA ========== */
.serie-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    position: relative;
    cursor: pointer;
    border: 1px solid #eff3f4;
    transition: transform 0.2s;
}

.serie-card:active {
    transform: scale(0.98);
}

.status-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 16px;
    font-weight: bold;
    color: white;
    z-index: 2;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.badge-unlocked {
    background: #1d9bf0;
}

.badge-price {
    background: #f39c12;
}

.serie-info {
    padding: 15px;
}

.serie-info h3 {
    margin: 0 0 5px 0;
    font-size: 16px;
    color: #333;
}

.full-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    z-index: 5000;
    display: none;
    flex-direction: column;
    overflow-y: auto;
}

.modal-box {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.3);
    z-index: 6000;
    width: 90%;
    max-width: 400px;
    display: none;
}

.cardApp {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.cardApp > div {
    border: 1px solid #ddd;
    padding: 15px;
    text-align: center;
    border-radius: 15px;
    cursor: pointer;
    transition: transform 0.2s;
}

.cardApp > div:hover {
    transform: scale(1.05);
    background-color: #f9f9f9;
}

.cardApp img {
    width: 100%;
    height: auto;
}

.cardApp h3 {
    font-size: 16px;
}
}




  
      #custom-modal {
    position: fixed; top: 50%; left: 50%; width: 100%; height: 100%;
    transform: translate(-50%,-50%);
    background: rgba(0,0,0,0.5); display: flex; align-items: center; justify-content: center;
    z-index: 1000; visibility: hidden;
}
.modal-content {
    background: white; padding: 20px; border-radius: 8px;
    text-align: center; min-width: 300px; box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}
.modal-hidden { visibility: hidden; opacity: 0; transition: 0.3s; }
.modal-visible { visibility: visible !important; opacity: 1; }

