/**
 * Hôtel Ngalanka - Correction des dimensions d'images
 * Ce fichier fixe les dimensions des conteneurs d'images pour éviter les déformations
 */

/* ========================================
   CHAMBRES (ROOMS)
   ======================================== */

/* Cartes de chambres - Liste */
.gt-room-card .gt-room-image,
.gt-room-card .gt-room-image img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    object-position: center;
}

/* Détails de chambre - Image principale */
.gt-room-details-image,
.gt-room-details-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    object-position: center;
}

/* Galerie de chambre - Miniatures */
.gt-room-gallery-thumb,
.gt-room-gallery-thumb img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    object-position: center;
}

/* ========================================
   SERVICES
   ======================================== */

/* Cartes de services */
.gt-service-card .gt-service-image,
.gt-service-card .gt-service-image img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    object-position: center;
}

/* Détails de service */
.gt-service-details-image,
.gt-service-details-image img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    object-position: center;
}

/* ========================================
   ÉQUIPE (TEAM)
   ======================================== */

/* Cartes d'équipe - Grille */
.team-card-item-3 .team-image,
.team-card-item-3 .team-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    object-position: center top;
}

/* Détails membre - Image principale */
.gt-team-details .gt-thumb,
.gt-team-details .gt-thumb img {
    width: 100%;
    height: 600px;
    object-fit: cover;
    object-position: center;
}

/* Autres membres - Cartes */
.card .card-img-top {
    width: 100%;
    height: 300px;
    object-fit: cover;
    object-position: center;
}

/* ========================================
   BLOG / ACTUALITÉS (NEWS)
   ======================================== */

/* Cartes d'articles - Grille */
.gt-news-card .gt-news-image,
.gt-news-card .gt-news-image img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    object-position: center;
}

/* Détails article - Image principale */
.gt-news-details-image,
.gt-news-details-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    object-position: center;
}

/* Articles récents - Sidebar */
.gt-recent-post-item img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    object-position: center;
    flex-shrink: 0;
}

/* ========================================
   RESTAURANT
   ======================================== */

/* Plats du menu */
.gt-menu-item .gt-menu-image,
.gt-menu-item .gt-menu-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    object-position: center;
}

/* Image d'en-tête restaurant */
.gt-restaurant-hero,
.gt-restaurant-hero img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    object-position: center;
}

/* ========================================
   GALERIE
   ======================================== */

/* Images de galerie */
.gt-gallery-item,
.gt-gallery-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    object-position: center;
}

/* Instagram feed */
.gt-instagram-image,
.gt-instagram-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    object-position: center;
}

/* ========================================
   TÉMOIGNAGES (TESTIMONIALS)
   ======================================== */

/* Photos clients */
.gt-testimonial-avatar,
.gt-testimonial-avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
}

/* ========================================
   PAGE D'ACCUEIL
   ======================================== */

/* Section À propos */
.gt-about-image,
.gt-about-image img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    object-position: center;
}

/* Offres spéciales */
.gt-offer-card .gt-offer-image,
.gt-offer-card .gt-offer-image img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    object-position: center;
}

/* ========================================
   BREADCRUMB
   ======================================== */

/* Image de fond breadcrumb */
.gt-breadcrumb-wrapper {
    min-height: 350px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* ========================================
   RESPONSIVE
   ======================================== */

/* Tablettes */
@media (max-width: 991px) {
    .gt-room-card .gt-room-image,
    .gt-room-card .gt-room-image img {
        height: 300px;
    }
    
    .team-card-item-3 .team-image,
    .team-card-item-3 .team-image img {
        height: 350px;
    }
    
    .gt-team-details .gt-thumb,
    .gt-team-details .gt-thumb img {
        height: 500px;
    }
    
    .gt-room-details-image,
    .gt-room-details-image img {
        height: 400px;
    }
}

/* Mobiles */
@media (max-width: 767px) {
    .gt-room-card .gt-room-image,
    .gt-room-card .gt-room-image img {
        height: 250px;
    }
    
    .team-card-item-3 .team-image,
    .team-card-item-3 .team-image img {
        height: 300px;
    }
    
    .gt-team-details .gt-thumb,
    .gt-team-details .gt-thumb img {
        height: 400px;
    }
    
    .gt-room-details-image,
    .gt-room-details-image img {
        height: 300px;
    }
    
    .gt-news-card .gt-news-image,
    .gt-news-card .gt-news-image img {
        height: 220px;
    }
    
    .gt-service-card .gt-service-image,
    .gt-service-card .gt-service-image img {
        height: 220px;
    }
    
    .gt-instagram-image,
    .gt-instagram-image img {
        height: 200px;
    }
}

/* ========================================
   CLASSES UTILITAIRES
   ======================================== */

/* Forcer le ratio d'aspect */
.img-fixed-ratio {
    position: relative;
    overflow: hidden;
}

.img-fixed-ratio img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Ratio 16:9 */
.img-ratio-16-9 {
    padding-bottom: 56.25%;
}

/* Ratio 4:3 */
.img-ratio-4-3 {
    padding-bottom: 75%;
}

/* Ratio 1:1 (carré) */
.img-ratio-1-1 {
    padding-bottom: 100%;
}

/* Ratio 3:2 */
.img-ratio-3-2 {
    padding-bottom: 66.66%;
}


/* ========================================
   NEWS DETAILS - AMÉLIORATIONS
   ======================================== */

/* Image principale de l'article */
.gt-news-items .news-image {
    margin-bottom: 30px;
    border-radius: 8px;
    overflow: hidden;
}

.gt-news-items .news-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    object-position: center;
}

/* Contenu de l'article */
.gt-news-content {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
}

.gt-news-content h2 {
    font-size: 32px;
    font-weight: 700;
    color: var(--gt-header);
    margin-bottom: 20px;
    line-height: 1.3;
}

/* Meta informations */
.post-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e5e5e5;
}

.category-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--gt-theme);
    color: #fff;
    padding: 8px 20px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
}

.post-date {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--gt-text);
    font-size: 14px;
}

/* Contenu de l'article */
.article-content {
    font-size: 16px;
    line-height: 1.8;
    color: var(--gt-text);
}

.article-content p {
    margin-bottom: 20px;
}

/* Tags et partage */
.gt-tag-share-wrap {
    padding: 20px 0;
}

.tagcloud {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.tagcloud span {
    font-weight: 600;
    color: var(--gt-header);
}

.tagcloud a {
    display: inline-block;
    padding: 8px 16px;
    background: var(--gt-bg);
    color: var(--gt-text);
    border-radius: 4px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.tagcloud a:hover {
    background: var(--gt-theme);
    color: #fff;
}

/* Partage social */
.social-share {
    display: flex;
    align-items: center;
    gap: 10px;
}

.social-share span {
    font-weight: 600;
    color: var(--gt-header);
}

.social-share a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--gt-bg);
    color: var(--gt-text);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-share a:hover {
    background: var(--gt-theme);
    color: #fff;
    transform: translateY(-3px);
}

/* Formulaire de commentaire */
.gt-comment-form-wrap {
    background: var(--gt-bg);
    padding: 40px;
    border-radius: 8px;
}

.gt-comment-form-wrap h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--gt-header);
    margin-bottom: 10px;
}

.gt-comment-form-wrap p {
    color: var(--gt-text);
    margin-bottom: 30px;
}

.form-clt {
    margin-bottom: 0;
}

.form-clt span {
    display: block;
    font-weight: 600;
    color: var(--gt-header);
    margin-bottom: 10px;
}

.form-clt input,
.form-clt textarea {
    width: 100%;
    padding: 15px 20px;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    font-size: 14px;
    color: var(--gt-text);
    background: #fff;
    transition: all 0.3s ease;
}

.form-clt input:focus,
.form-clt textarea:focus {
    outline: none;
    border-color: var(--gt-theme);
}

.form-clt textarea {
    min-height: 150px;
    resize: vertical;
}

/* Articles récents - Sidebar */
.gt-recent-items {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid #e5e5e5;
}

.gt-recent-items:last-child {
    border-bottom: none;
}

.gt-recent-thumb {
    flex-shrink: 0;
}

.gt-recent-thumb img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
}

.gt-recent-content h5 {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 8px;
}

.gt-recent-content h5 a {
    color: var(--gt-header);
    transition: color 0.3s ease;
}

.gt-recent-content h5 a:hover {
    color: var(--gt-theme);
}

.gt-recent-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.gt-recent-content ul li {
    font-size: 13px;
    color: var(--gt-text);
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Sidebar */
.gt-main-sideber {
    position: sticky;
    top: 100px;
}

.gt-single-sideber-widget {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.gt-widget-title h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--gt-header);
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--gt-theme);
}

/* Responsive */
@media (max-width: 991px) {
    .gt-news-items .news-image img {
        height: 400px;
    }
    
    .gt-news-content {
        padding: 20px;
    }
    
    .gt-news-content h2 {
        font-size: 26px;
    }
    
    .gt-comment-form-wrap {
        padding: 30px 20px;
    }
}

@media (max-width: 767px) {
    .gt-news-items .news-image img {
        height: 300px;
    }
    
    .gt-news-content h2 {
        font-size: 22px;
    }
    
    .post-meta {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .social-share {
        justify-content: flex-start;
    }
    
    .gt-main-sideber {
        position: static;
        margin-top: 40px;
    }
}
