/* =====================================================
   MOROCCO TOURS DESIGNER
   CSS COMPLET CORRIGE - VERSION 1.5.1
   ===================================================== */

.mtd-tour-page {
    --mtd-gold: #bd9456;
    --mtd-gold-dark: #98713c;
    --mtd-dark: #26332e;
    --mtd-text: #333333;
    --mtd-light: #f8f7f4;
}

/* =====================================================
   HERO PLEINE LARGEUR
   ===================================================== */

.mtd-tour-page .mtd-hero {
    position: relative;
    width: 100vw;
    max-width: 100vw;
    min-height: 540px;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    display: flex;
    align-items: center;
    overflow: hidden;
    background-image: var(--mtd-image);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    isolation: isolate;
    box-sizing: border-box;
}

.mtd-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: linear-gradient(
        90deg,
        rgba(12, 18, 17, .78) 0%,
        rgba(12, 18, 17, .55) 48%,
        rgba(12, 18, 17, .68) 100%
    );
}

.mtd-hero-inner {
    position: relative;
    z-index: 1;
    width: min(1200px, calc(100% - 50px));
    margin: 0 auto;
    padding: 75px 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(400px, .95fr);
    align-items: center;
    gap: 55px;
    box-sizing: border-box;
}

/* =====================================================
   TITRE À GAUCHE
   ===================================================== */

.mtd-hero-title {
    max-width: 600px;
}

.mtd-eyebrow {
    display: inline-block;
    margin-bottom: 18px;
    color: #e0bd83;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 3px;
    line-height: 1.6;
    text-transform: uppercase;
}

.mtd-hero-title h1,
.mtd-no-hero h1 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(34px, 4.2vw, 58px);
    font-weight: 700;
    line-height: 1.13;
    letter-spacing: -.8px;
    text-shadow: 0 3px 20px rgba(0, 0, 0, .25);
}

/* =====================================================
   INFORMATIONS À DROITE
   ===================================================== */

.mtd-hero-side {
    width: 100%;
    min-width: 0;
}

.mtd-info-bar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    width: 100%;
    padding: 18px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 15px;
    background: rgba(17, 23, 22, .65);
    box-shadow: 0 15px 45px rgba(0, 0, 0, .16);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-sizing: border-box;
}

.mtd-info-item {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    padding: 13px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, .12);
    box-sizing: border-box;
}

.mtd-info-label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 7px;
    color: rgba(255, 255, 255, .75);
    font-size: 12px;
    font-weight: 500;
    line-height: 1.4;
}

.mtd-info-icon {
    display: inline-block;
    flex: 0 0 19px;
    width: 19px;
    height: 19px;
    color: #d7b477;
}

.mtd-info-item strong {
    display: block;
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

/* =====================================================
   GROUPE + ÉTOILES SUR LA MÊME LIGNE
   ===================================================== */

.mtd-group-rating-row {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
    width: 100%;
    min-width: 0;
}

.mtd-group-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    min-width: 0;
}

.mtd-group-info .mtd-info-label {
    margin-bottom: 0;
}

.mtd-group-info strong {
    display: block;
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.45;
}

.mtd-hero-stars {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    flex-shrink: 0;
    gap: 3px;
    margin: 0;
    padding: 0;
    white-space: nowrap;
}

.mtd-hero-stars span {
    display: inline-block;
    color: #d6ad63;
    font-size: 21px;
    line-height: 1;
    text-shadow: 0 2px 8px rgba(214, 173, 99, .22);
}

/* =====================================================
   HERO SANS IMAGE
   ===================================================== */

.mtd-no-hero {
    width: 100%;
    padding: 85px 0 65px;
    background: #26332e;
}

.mtd-no-hero .mtd-container {
    width: min(1200px, calc(100% - 40px));
    margin: 0 auto;
}

.mtd-no-hero h1 {
    margin-bottom: 30px;
}

.mtd-no-hero .mtd-info-bar {
    max-width: 750px;
}

/* =====================================================
   CONTENU PRINCIPAL
   ===================================================== */

.mtd-container {
    width: min(1200px, calc(100% - 40px));
    margin-left: auto;
    margin-right: auto;
}

.mtd-main-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    align-items: start;
    gap: 45px;
    padding-top: 65px;
    padding-bottom: 55px;
}

.mtd-article {
    min-width: 0;
}

.mtd-content {
    color: var(--mtd-text);
    font-size: 16px;
    line-height: 1.85;
}

.mtd-content p {
    margin: 0 0 20px;
}

.mtd-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

/* =====================================================
   H2 - TITRES PRINCIPAUX
   ===================================================== */

.mtd-content h2 {
    position: relative;
    margin: 48px 0 24px;
    padding: 17px 22px;
    color: #34423b;
    font-size: 27px;
    font-weight: 700;
    line-height: 1.35;
    background: #f5f1e9;
    border-left: 5px solid #bd9456;
    border-bottom: 1px solid #e8dfd0;
    border-radius: 5px;
}

/* =====================================================
   H3 - SOUS-TITRES
   ===================================================== */

.mtd-content h3 {
    margin: 35px 0 18px;
    padding: 12px 17px;
    color: #46564d;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.4;
    background: #f8f7f4;
    border-left: 4px solid #c6a16c;
    border-radius: 4px;
}

/* =====================================================
   H4 - SANS FOND
   ===================================================== */

.mtd-content h4 {
    margin: 27px 0 14px;
    padding: 8px 0 8px 15px;
    color: #70552f;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    background: transparent !important;
    border: none;
 
    border-radius: 0;
}

/* =====================================================
   LISTES DU CONTENU
   ===================================================== */

.mtd-content ul,
.mtd-content ol {
    margin: 15px 0 25px;
    padding-left: 25px;
}

.mtd-content li {
    margin-bottom: 9px;
}

/* =====================================================
   CARTES INCLUDED / EXCLUDED
   ===================================================== */

.mtd-list-card {
    margin: 30px 0;
    padding: 25px 28px;
    border: 1px solid #e9e5dc;
    border-radius: 10px;
    background: #fbfaf7;
    box-sizing: border-box;
}

.mtd-list-card .mtd-list-title {
    margin: 0 0 18px;
    padding: 0 0 13px;
    color: #34423b;
    font-size: 22px;
    font-weight: 700;
    border-bottom: 1px solid #e8dfd0;
}

.mtd-list-card ul {
    margin: 0;
    padding-left: 22px;
}

.mtd-list-card li {
    padding-left: 4px;
    margin-bottom: 10px;
}

/* INCLUDED - VERT */

.mtd-list-card.mtd-included {
    background: #f1f8f1;
    border: 1px solid #d5e8d5;
    border-top: 4px solid #4d995b;
    border-radius: 9px;
}

.mtd-list-card.mtd-included .mtd-list-title {
    color: #347344;
    border-bottom: 1px solid #d5e8d5;
}

.mtd-list-card.mtd-included li::marker {
    color: #4d995b;
}

/* EXCLUDED - ROUGE */

.mtd-list-card.mtd-excluded {
    background: #fff4f3;
    border: 1px solid #f0d8d5;
    border-top: 4px solid #c75b55;
    border-radius: 9px;
}

.mtd-list-card.mtd-excluded .mtd-list-title {
    color: #a8433e;
    border-bottom: 1px solid #f0d8d5;
}

.mtd-list-card.mtd-excluded li::marker {
    color: #c75b55;
}

/* =====================================================
   FAQ ACCORDION
   ===================================================== */

.mtd-content .mtd-faq-heading {
    margin-top: 55px;
    margin-bottom: 25px;
}

.mtd-faq-item {
    margin: 0 0 13px;
    overflow: hidden;
    border: 1px solid #e8e4dc;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 3px 12px rgba(0, 0, 0, .035);
}

.mtd-faq-question {
    position: relative;
    display: block;
    padding: 18px 50px 18px 20px;
    color: #34423b;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.5;
    cursor: pointer;
    list-style: none;
}

.mtd-faq-question::-webkit-details-marker {
    display: none;
}

.mtd-faq-question::after {
    content: "+";
    position: absolute;
    top: 50%;
    right: 20px;
    color: var(--mtd-gold);
    font-size: 25px;
    font-weight: 400;
    transform: translateY(-50%);
}

.mtd-faq-item[open] .mtd-faq-question::after {
    content: "−";
}

.mtd-faq-answer {
    padding: 0 20px 18px;
    color: #555d58;
    font-size: 15px;
    line-height: 1.8;
}

.mtd-faq-answer p:last-child {
    margin-bottom: 0;
}

/* =====================================================
   FORMULAIRE DE CONTACT
   ===================================================== */

.mtd-sidebar {
    min-width: 0;
}

.mtd-contact-box {
    position: sticky;
    top: 30px;
    padding: 27px 23px;
    border: 1px solid #e9e4da;
    border-radius: 10px;
    background: #fbfaf7;
    box-shadow: 0 8px 28px rgba(0, 0, 0, .055);
    box-sizing: border-box;
}

.mtd-contact-box h3 {
    margin: 0 0 22px;
    padding-bottom: 14px;
    color: #34423b;
    font-size: 22px;
    font-weight: 700;
    border-bottom: 2px solid var(--mtd-gold);
}

.mtd-contact-box input:not([type="submit"]),
.mtd-contact-box select,
.mtd-contact-box textarea {
    width: 100%;
    max-width: 100%;
    padding: 12px 13px;
    color: #333;
    font-size: 14px;
    border: 1px solid #dedbd4;
    border-radius: 5px;
    background: #ffffff;
    box-sizing: border-box;
}

.mtd-contact-box textarea {
    min-height: 120px;
}

.mtd-contact-box input[type="submit"] {
    width: 100%;
    padding: 14px 20px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    border: 0;
    border-radius: 5px;
    background: var(--mtd-gold);
    cursor: pointer;
    transition: background .2s ease;
}

.mtd-contact-box input[type="submit"]:hover {
    background: #98713c;
}

.mtd-contact-box .wpcf7-spinner {
    display: block;
    margin: 12px auto 0;
}

/* =====================================================
   CIRCUITS ASSOCIÉS
   ===================================================== */

.mtd-related {
    padding: 45px 0 65px;
    border-top: 1px solid #eae7e0;
}

.mtd-related > h2 {
    margin: 0 0 28px;
    padding: 0 0 14px;
    color: #34423b;
    font-size: 28px;
    font-weight: 700;
    background: transparent;
    border: 0;
    border-bottom: 2px solid rgba(189, 148, 86, .35);
    border-radius: 0;
}

.mtd-related-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 25px;
}

.mtd-related-card {
    display: block;
    overflow: hidden;
    color: inherit;
    text-decoration: none;
    border: 1px solid #e9e5dd;
    border-radius: 9px;
    background: #ffffff;
    box-shadow: 0 5px 18px rgba(0, 0, 0, .055);
    transition: transform .25s ease, box-shadow .25s ease;
}

.mtd-related-card:hover {
    color: inherit;
    text-decoration: none;
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, .10);
}

.mtd-related-card img {
    display: block;
    width: 100%;
    height: 210px;
    object-fit: cover;
}

.mtd-related-card-content {
    padding: 20px;
}

.mtd-related-card-content h3 {
    margin: 0 0 10px;
    padding: 0;
    color: #34423b;
    font-size: 18px;
    line-height: 1.4;
    background: transparent;
    border: 0;
}

.mtd-related-card-content span {
    color: #98713c;
    font-size: 14px;
    font-weight: 600;
}

/* =====================================================
   TABLETTE
   ===================================================== */

@media (max-width: 1024px) {

    .mtd-hero {
        min-height: 500px;
    }

    .mtd-hero-inner {
        grid-template-columns: minmax(0, 1fr) minmax(330px, .95fr);
        gap: 30px;
    }

    .mtd-main-layout {
        grid-template-columns: minmax(0, 1fr) 300px;
        gap: 30px;
    }
}

/* =====================================================
   MOBILE
   ===================================================== */

@media (max-width: 767px) {

    .mtd-hero {
        min-height: auto;
        background-position: center;
    }

    .mtd-hero-overlay {
        background: rgba(12, 18, 17, .68);
    }

    .mtd-hero-inner {
        width: calc(100% - 32px);
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 65px 0 45px;
    }

    .mtd-hero-title {
        max-width: 100%;
    }

    .mtd-hero-title h1 {
        font-size: clamp(30px, 8vw, 42px);
    }

    .mtd-eyebrow {
        margin-bottom: 12px;
        font-size: 10px;
        letter-spacing: 2px;
    }

    .mtd-hero-side {
        width: 100%;
    }

    .mtd-info-bar {
        padding: 12px;
        border-radius: 11px;
    }

    .mtd-info-item {
        padding: 12px 9px;
    }

    .mtd-info-label {
        gap: 6px;
        font-size: 11px;
    }

    .mtd-info-icon {
        width: 17px;
        height: 17px;
        flex-basis: 17px;
    }

    .mtd-info-item strong,
    .mtd-group-info strong {
        font-size: 14px;
    }

    .mtd-group-rating-row {
        gap: 8px !important;
    }

    .mtd-hero-stars {
        gap: 2px;
    }

    .mtd-hero-stars span {
        font-size: 18px;
    }

    .mtd-main-layout {
        grid-template-columns: 1fr;
        gap: 30px;
        padding-top: 35px;
        padding-bottom: 35px;
    }

    .mtd-content h2 {
        margin-top: 35px;
        padding: 14px 16px;
        font-size: 23px;
    }

    .mtd-content h3 {
        margin-top: 28px;
        padding: 11px 13px;
        font-size: 20px;
    }

    .mtd-content h4 {
        padding: 8px 0 8px 13px;
        font-size: 17px;
        background: transparent !important;
    }

    .mtd-contact-box {
        position: static;
    }

    .mtd-related-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 15px;
    }

    .mtd-related-card img {
        height: 160px;
    }

    .mtd-related-card-content {
        padding: 14px;
    }

    .mtd-related-card-content h3 {
        font-size: 16px;
    }
}

/* =====================================================
   PETITS ÉCRANS
   ===================================================== */

@media (max-width: 480px) {

    .mtd-container {
        width: calc(100% - 30px);
    }

    .mtd-info-bar {
        grid-template-columns: 1fr 1fr;
        padding: 9px;
    }

    .mtd-info-item {
        padding: 11px 7px;
    }

    .mtd-info-item strong,
    .mtd-group-info strong {
        font-size: 13px;
    }

    .mtd-info-label {
        font-size: 10px;
    }

    .mtd-group-rating-row {
        gap: 6px !important;
    }

    .mtd-hero-stars span {
        font-size: 16px;
    }

    .mtd-list-card {
        padding: 19px 17px;
    }

    .mtd-related-grid {
        grid-template-columns: 1fr;
    }

    .mtd-related-card img {
        height: 200px;
    }
}
/* H4 INCLUDED / EXCLUDED : AUCUN FOND */

.mtd-content h4,
.mtd-content h4.mtd-included,
.mtd-content h4.mtd-excluded {
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
}
/* TITRES H4 INCLUS / EXCLUS */
.mtd-content .mtd-list-card h4.mtd-list-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 18px;
    padding: 5px 0 5px 14px;
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
    border: none !important;
   
	
    border-radius: 0 !important;
    font-size: 19px;
    font-weight: 700;
}

/* Icône dorée avant le titre INCLUS */
.mtd-content .mtd-list-card.mtd-included h4.mtd-list-title::before {
    content: "✓";
    color: #bd9456;
    font-size: 20px;
    font-weight: 700;
}

/* Icône dorée avant le titre EXCLUS */
.mtd-content .mtd-list-card.mtd-excluded h4.mtd-list-title::before {
    content: "✕";
    color: #bd9456;
    font-size: 19px;
    font-weight: 700;
}

/* Couleur du texte */
.mtd-content .mtd-list-card.mtd-included h4.mtd-list-title {
    color: #347344;
}

.mtd-content .mtd-list-card.mtd-excluded h4.mtd-list-title {
    color: #a8433e;
}

/* =========================================
   MTD – CONTENU À GAUCHE / FORMULAIRE À DROITE
   ========================================= */

.mtd-tour-page .mtd-container {
    width: 100% !important;
    max-width: 1200px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
    box-sizing: border-box !important;
}

.mtd-tour-page .mtd-main-layout {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 350px !important;
    gap: 35px !important;
    align-items: start !important;
    width: 100% !important;
}

.mtd-tour-page .mtd-article {
    grid-column: 1 !important;
    min-width: 0 !important;
    width: 100% !important;
}

.mtd-tour-page .mtd-sidebar {
    grid-column: 2 !important;
    grid-row: 1 !important;
    width: 100% !important;
    min-width: 0 !important;
    position: sticky !important;
    top: 110px !important;
    align-self: start !important;
    z-index: 5 !important;
}

.mtd-tour-page .mtd-contact-box {
    width: 100% !important;
    background: #ffffff !important;
    border: 1px solid #e8e2d8 !important;
    border-radius: 10px !important;
    padding: 25px !important;
    box-shadow: 0 8px 28px rgba(48, 44, 36, 0.07) !important;
}

.mtd-tour-page .mtd-contact-box h3 {
    color: #302c24 !important;
    font-size: 21px !important;
    margin: 0 0 22px !important;
}

/* Évite les débordements du contenu */
.mtd-tour-page .mtd-content {
    min-width: 0 !important;
    width: 100% !important;
}

/* =========================================
   TABLETTE ET MOBILE
   ========================================= */

@media (max-width: 900px) {

    .mtd-tour-page .mtd-main-layout {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 35px !important;
    }

    .mtd-tour-page .mtd-article {
        grid-column: 1 !important;
        grid-row: 1 !important;
    }

    .mtd-tour-page .mtd-sidebar {
        grid-column: 1 !important;
        grid-row: 2 !important;
        position: static !important;
        width: 100% !important;
    }

    .mtd-tour-page .mtd-contact-box {
        padding: 22px !important;
    }
}

@media (max-width: 600px) {

    .mtd-tour-page .mtd-container {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    .mtd-tour-page .mtd-main-layout {
        gap: 25px !important;
    }

    .mtd-tour-page .mtd-contact-box {
        padding: 18px !important;
    }
}
