0<?php
/**
 * Plugin Name: Design Archive
 * Description: Design premium des archives de circuits Blocksy.
 * Version: 1.0.0
 * Author: Morocco  Experience
 */

if ( ! defined( 'ABSPATH' ) ) {
	exit;
}


/* =========================================================
   CHARGER STYLE.CSS
========================================================= */

add_action(
	'wp_enqueue_scripts',
	'design_archive_enqueue_styles'
);

function design_archive_enqueue_styles() {

	wp_enqueue_style(
		'design-archive-style',
		plugin_dir_url( __FILE__ ) . 'style.css',
		array(),
		filemtime( plugin_dir_path( __FILE__ ) . 'style.css' )
	);

}


/* ==================================================
   EXCURSION TOUR GRID
   PREMIUM H1 DESIGN
   POLYLANG: FR / EN / ES / IT
   WHITE LUXURY STYLE
================================================== */

/* Conteneur du titre */
.entry-header {
    position: relative;
    display: block;
    width: 100%;
    text-align: center;
    padding: 55px 20px 42px !important;
    margin: 0 auto 35px !important;
    background: #ffffff !important;
    border-bottom: 1px solid #eee9df;
}

/* Surtitre multilingue */
.entry-header::before {
    content: "MOROCCO · PRIVATE TOURS";
    display: block;
    margin-bottom: 18px;
    color: #a58a60;
    font-family: Arial, sans-serif;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 3px;
    line-height: 1.5;
}

/* Français */
html[lang^="fr"] .entry-header::before {
    content: "MAROC · CIRCUITS PRIVÉS";
}

/* Anglais */
html[lang^="en"] .entry-header::before {
    content: "MOROCCO · PRIVATE TOURS";
}

/* Espagnol */
html[lang^="es"] .entry-header::before {
    content: "MARRUECOS · RUTAS PRIVADAS";
}

/* Italien */
html[lang^="it"] .entry-header::before {
    content: "MAROCCO · TOUR PRIVATI";
}

/* H1 principal */
.entry-header h1.page-title {
    display: block;
    margin: 0 !important;
    padding: 0 0 21px !important;
    color: #29251f !important;
    font-family: Georgia, "Times New Roman", serif !important;
    font-size: clamp(35px, 5vw, 56px) !important;
    font-weight: 400 !important;
    line-height: 1.18 !important;
    letter-spacing: -1px;
    text-transform: none !important;
}

/* Décoration dorée */
.entry-header::after {
    content: "";
    display: block;
    width: 68px;
    height: 2px;
    margin: 0 auto;
    background: #c6a875;
}

/* Mobile */
@media (max-width: 767px) {

    .entry-header {
        padding: 40px 16px 32px !important;
        margin-bottom: 25px !important;
    }

    .entry-header::before {
        margin-bottom: 14px;
        font-size: 9px;
        letter-spacing: 2px;
    }

    .entry-header h1.page-title {
        font-size: 34px !important;
        letter-spacing: -.5px;
    }
}

/* =========================================================
   MNE — LUXURY MINIMALIST RELATED TOURS
   Morocco Travel
========================================================= */

.ct-related-posts-container {
    background: #F8F6F1 !important;
    padding: 65px 0 !important;
    margin-top: 55px !important;
}

.ct-related-posts {
    max-width: 1200px;
    margin: auto !important;
}

/* TITLE */

.ct-related-posts .ct-module-title {
    text-align: center !important;
    color: #292820 !important;
    font-size: 29px !important;
    font-weight: 600 !important;
    letter-spacing: .2px !important;
    margin: 0 0 38px !important;
}

.ct-related-posts .ct-module-title:after {
    content: "";
    display: block;
    width: 55px;
    height: 2px;
    background: #B89A66;
    margin: 16px auto 0;
}

/* GRID */

.ct-related-posts-items {
    gap: 25px !important;
}

/* CARD */

.ct-related-posts-items article {
    overflow: hidden !important;
    border-radius: 12px !important;
    background: #fff !important;
    border: 1px solid rgba(184,154,102,.16) !important;
    box-shadow: 0 5px 22px rgba(0,0,0,.045) !important;
    transition: transform .35s ease, box-shadow .35s ease !important;
}

.ct-related-posts-items article:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 32px rgba(0,0,0,.11) !important;
}

/* IMAGE */

.ct-related-posts-items .ct-media-container {
    display: block !important;
    overflow: hidden !important;
}

.ct-related-posts-items .ct-media-container img {
    display: block !important;
    width: 100% !important;
    aspect-ratio: 4 / 3 !important;
    object-fit: cover !important;
    transition: transform .6s ease !important;
}

.ct-related-posts-items article:hover .ct-media-container img {
    transform: scale(1.055);
}

/* TOUR TITLE */

.ct-related-posts-items .related-entry-title {
    padding: 18px 19px 22px !important;
    margin: 0 !important;
    font-size: 17px !important;
    font-weight: 600 !important;
    line-height: 1.5 !important;
    background: #fff !important;
}

.ct-related-posts-items .related-entry-title a {
    color: #302E27 !important;
    text-decoration: none !important;
    transition: color .25s ease;
}

.ct-related-posts-items .related-entry-title a:hover {
    color: #A88750 !important;
}

/* TABLET */

@media (max-width: 991px) {
    .ct-related-posts-container {
        padding: 50px 20px !important;
    }

    .ct-related-posts .ct-module-title {
        font-size: 26px !important;
    }
}

/* MOBILE */

@media (max-width: 767px) {
    .ct-related-posts-container {
        padding: 40px 15px !important;
        margin-top: 35px !important;
    }

    .ct-related-posts .ct-module-title {
        font-size: 24px !important;
        margin-bottom: 26px !important;
    }

    .ct-related-posts-items {
        gap: 18px !important;
    }

    .ct-related-posts-items .related-entry-title {
        padding: 14px 15px 18px !important;
        font-size: 15px !important;
    }
}


