/**
 * Travelnet – overrides Helix3
 * Menu CTA : classe tn-menu-cta sur l'item « Parler de mon projet »
 */

/* ── Desktop (megamenu Helix) ── */
.sp-megamenu-parent > li.tn-menu-cta,
.sp-megamenu-parent > li.sp-menu-item.tn-menu-cta {
    margin-left: 0.35rem;
}

.sp-megamenu-parent > li.tn-menu-cta > a,
.sp-megamenu-parent > li.sp-menu-item.tn-menu-cta > a,
.sp-megamenu-parent > li.sp-menu-item > a[href*="parler-de-mon-projet"] {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.55rem 1.15rem !important;
    line-height: 1.2 !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: 0.06em !important;
    text-transform: uppercase !important;
    color: #fff !important;
    background: linear-gradient(135deg, #0b3c6d 0%, #0e5a9e 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 999px !important;
    box-shadow: 0 6px 20px rgba(11, 60, 109, 0.22);
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
    white-space: nowrap;
}

.sp-megamenu-parent > li.tn-menu-cta > a::after,
.sp-megamenu-parent > li.sp-menu-item.tn-menu-cta > a::after,
.sp-megamenu-parent > li.sp-menu-item > a[href*="parler-de-mon-projet"]::after {
    content: "→";
    font-family: inherit;
    font-weight: 700;
    font-size: 12px;
    margin-left: 0.15rem;
    opacity: 0.9;
}

.sp-megamenu-parent > li.tn-menu-cta > a:hover,
.sp-megamenu-parent > li.tn-menu-cta > a:focus,
.sp-megamenu-parent > li.sp-menu-item.tn-menu-cta > a:hover,
.sp-megamenu-parent > li.sp-menu-item.tn-menu-cta > a:focus,
.sp-megamenu-parent > li.sp-menu-item > a[href*="parler-de-mon-projet"]:hover,
.sp-megamenu-parent > li.sp-menu-item > a[href*="parler-de-mon-projet"]:focus {
    color: #fff !important;
    background: linear-gradient(135deg, #0e5a9e 0%, #00a8b8 100%) !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(11, 60, 109, 0.28);
    text-decoration: none !important;
}

.sp-megamenu-parent > li.tn-menu-cta.active > a,
.sp-megamenu-parent > li.tn-menu-cta.current > a,
.sp-megamenu-parent > li.sp-menu-item.tn-menu-cta.active > a,
.sp-megamenu-parent > li.sp-menu-item > a[href*="parler-de-mon-projet"].active {
    color: #fff !important;
    background: linear-gradient(135deg, #0b3c6d 0%, #00c6d5 100%) !important;
}

.sp-megamenu-parent > li.tn-menu-cta::before,
.sp-megamenu-parent > li.sp-menu-item.tn-menu-cta::before {
    content: "";
    display: inline-block;
    width: 1px;
    height: 22px;
    margin-right: 0.65rem;
    background: rgba(11, 60, 109, 0.12);
    vertical-align: middle;
}

.sticky-header .sp-megamenu-parent > li.tn-menu-cta > a,
.sticky-header .sp-megamenu-parent > li.sp-menu-item > a[href*="parler-de-mon-projet"] {
    box-shadow: 0 4px 16px rgba(11, 60, 109, 0.18);
}

/* ── Mobile offcanvas ── */
.offcanvas-inner .sp-module ul li.tn-menu-cta > a,
.offcanvas-inner .sp-module ul li a[href*="parler-de-mon-projet"],
.offcanvas-inner ul.nav li.tn-menu-cta > a,
.offcanvas-inner ul.nav li a[href*="parler-de-mon-projet"] {
    display: block !important;
    margin: 0.75rem 0 0.25rem !important;
    padding: 0.85rem 1rem !important;
    text-align: center;
    font-weight: 700 !important;
    color: #fff !important;
    background: linear-gradient(135deg, #0b3c6d, #0e5a9e) !important;
    border-radius: 999px !important;
    box-shadow: 0 6px 18px rgba(11, 60, 109, 0.2);
}

@media (prefers-reduced-motion: reduce) {
    .sp-megamenu-parent > li.tn-menu-cta > a,
    .sp-megamenu-parent > li.sp-menu-item > a[href*="parler-de-mon-projet"] {
        transition: none;
    }
}

/* ── AI generated badge (article detail image) ── */
.entry-image.full-image {
    position: relative;
}

.entry-image.full-image .tn-ai-badge {
    position: absolute;
    right: 10px;
    bottom: 10px;
    padding: 3px 8px;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.04em;
    line-height: 1.3;
    color: rgba(255, 255, 255, 0.92);
    background: rgba(0, 0, 0, 0.45);
    border-radius: 4px;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    pointer-events: none;
    user-select: none;
}

.tn-ai-disclosure {
    margin: 1.5rem 0 0;
    padding: 0;
    font-size: 0.78rem;
    line-height: 1.45;
    font-weight: 400;
    color: #6b7c8a;
    font-style: italic;
}

.tn-guides-article .tn-ai-disclosure {
    margin-top: 1.75rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 168, 184, 0.1);
}

/* ── Guides & Expertise listing (/guides-expertise) ── */
body.tn-guides .sp-page-title,
.tn-guides .sp-page-title {
    background: linear-gradient(135deg, #0b3c6d 0%, #00a8b8 55%, #00c6d5 100%) !important;
}

body.tn-guides .sp-page-title h1,
body.tn-guides .sp-page-title h2,
body.tn-guides .sp-page-title .sp-page-title-heading,
.tn-guides .sp-page-title h1,
.tn-guides .sp-page-title h2 {
    color: #fff !important;
}

body.tn-guides .sp-page-title .sp-page-title-sub-heading,
.tn-guides .sp-page-title .sp-page-title-sub-heading {
    color: rgba(255, 255, 255, 0.88) !important;
}

.tn-guides-list,
.blog.tn-guides {
    max-width: 820px;
    margin: 0 auto;
    padding: 0.5rem 0 2.5rem;
}

.tn-guides-list .tn-guides-subheading {
    display: none;
}

.tn-guides-articles {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.tn-guides-card {
    margin: 0;
    background: #f7fbfc;
    border: 1px solid rgba(0, 168, 184, 0.14);
    border-radius: 12px;
    border-left: 4px solid #00c6d5;
    box-shadow: 0 8px 24px rgba(11, 60, 109, 0.06);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.tn-guides-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(11, 60, 109, 0.1);
    border-color: rgba(0, 168, 184, 0.28);
}

.tn-guides-card__inner {
    padding: 1.35rem 1.5rem 1.4rem;
}

.tn-guides-card__header .entry-title,
.tn-guides-card__header h2 {
    margin: 0 0 0.75rem;
    font-size: 1.35rem;
    line-height: 1.35;
    font-weight: 700;
    color: #0b3c6d;
}

.tn-guides-card__header .entry-title a,
.tn-guides-card__header h2 a {
    color: inherit;
    text-decoration: none;
}

.tn-guides-card__header .entry-title a:hover,
.tn-guides-card__header h2 a:hover {
    color: #0097a2;
}

.tn-guides-card__excerpt {
    color: #3d4f5c;
    font-size: 1rem;
    line-height: 1.65;
}

.tn-guides-card__excerpt p {
    margin: 0 0 0.65rem;
}

.tn-guides-card__excerpt p:last-child {
    margin-bottom: 0;
}

.tn-guides-card__excerpt h2,
.tn-guides-card__excerpt h3,
.tn-guides-card__excerpt h4,
.tn-guides-card__excerpt ul,
.tn-guides-card__excerpt ol {
    display: none;
}

.tn-guides-card__cta {
    margin: 1.1rem 0 0;
}

.tn-guides-readmore {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.55rem 1.05rem;
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #fff !important;
    background: #00c6d5;
    border: 1px solid #00aab6;
    border-radius: 8px;
    text-decoration: none !important;
    transition: background 0.2s ease, transform 0.2s ease;
}

.tn-guides-readmore:hover,
.tn-guides-readmore:focus {
    color: #fff !important;
    background: #0097a2;
    border-color: #007f89;
    transform: translateY(-1px);
}

@media (max-width: 767px) {
    .tn-guides-card__inner {
        padding: 1.1rem 1.15rem 1.2rem;
    }

    .tn-guides-card__header .entry-title,
    .tn-guides-card__header h2 {
        font-size: 1.15rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .tn-guides-card,
    .tn-guides-readmore {
        transition: none;
    }
}

/* ── Guides & Expertise article detail ── */
body.tn-guides.view-article .icons,
body.tn-guides.view-article .article-footer-wrap {
    display: none !important;
}

.tn-guides-article {
    max-width: 820px;
    margin: 0 auto 2.5rem;
}

.tn-guides-article__shell {
    background: #f7fbfc;
    border: 1px solid rgba(0, 168, 184, 0.14);
    border-radius: 12px;
    border-left: 4px solid #00c6d5;
    box-shadow: 0 8px 28px rgba(11, 60, 109, 0.07);
    padding: 1.75rem 2rem 2rem;
}

.tn-guides-article__back {
    margin: 0 0 1.25rem;
}

.tn-guides-article__back a {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #0097a2 !important;
    text-decoration: none !important;
}

.tn-guides-article__back a:hover,
.tn-guides-article__back a:focus {
    color: #0b3c6d !important;
}

.tn-guides-article__header {
    margin-bottom: 1.5rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid rgba(0, 168, 184, 0.16);
}

.tn-guides-article__title {
    margin: 0;
    font-size: 1.85rem;
    line-height: 1.25;
    font-weight: 700;
    color: #0b3c6d;
}

.tn-guides-article__body {
    color: #3d4f5c;
    font-size: 1.05rem;
    line-height: 1.75;
}

.tn-guides-article__body > p:first-of-type,
.tn-guides-article__body > p:first-of-type + p {
    font-size: 1.08rem;
    color: #2c3e4a;
}

.tn-guides-article__body p {
    margin: 0 0 1.1rem;
}

.tn-guides-article__body h2 {
    margin: 2.1rem 0 0.85rem;
    padding-left: 0.85rem;
    border-left: 3px solid #00c6d5;
    font-size: 1.35rem;
    line-height: 1.35;
    font-weight: 700;
    color: #0b3c6d;
}

.tn-guides-article__body h3 {
    margin: 1.6rem 0 0.55rem;
    font-size: 1.1rem;
    line-height: 1.4;
    font-weight: 700;
    color: #0b3c6d;
}

.tn-guides-article__body ul,
.tn-guides-article__body ol {
    margin: 0 0 1.25rem;
    padding-left: 1.35rem;
}

.tn-guides-article__body li {
    margin-bottom: 0.45rem;
}

.tn-guides-article__body a {
    color: #0097a2;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.tn-guides-article__body a:hover {
    color: #0b3c6d;
}

/* FAQ blocks: H2 FAQ then H3 questions */
.tn-guides-article__body h2 + h3,
.tn-guides-article__body h3 {
    margin-top: 1.35rem;
}

.tn-guides-article__body h3 {
    background: rgba(0, 198, 213, 0.08);
    border-radius: 8px;
    padding: 0.65rem 0.85rem;
}

.tn-guides-article__body h3 + p {
    margin-top: 0.55rem;
    padding-left: 0.15rem;
}

/* “À lire aussi” */
.tn-guides-article__body h2 + ul {
    list-style: none;
    padding-left: 0;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.tn-guides-article__body h2 + ul li {
    margin: 0;
}

.tn-guides-article__body h2 + ul a {
    display: block;
    padding: 0.75rem 1rem;
    background: #fff;
    border: 1px solid rgba(0, 168, 184, 0.18);
    border-radius: 8px;
    border-left: 3px solid #00c6d5;
    color: #0b3c6d !important;
    font-weight: 600;
    text-decoration: none !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.tn-guides-article__body h2 + ul a:hover {
    border-color: rgba(0, 168, 184, 0.35);
    box-shadow: 0 6px 16px rgba(11, 60, 109, 0.08);
}

.tn-guides-article__footer-nav {
    margin: 2rem 0 0;
    padding-top: 1.35rem;
    border-top: 1px solid rgba(0, 168, 184, 0.16);
}

@media (max-width: 767px) {
    .tn-guides-article__shell {
        padding: 1.25rem 1.15rem 1.5rem;
        border-radius: 10px;
    }

    .tn-guides-article__title {
        font-size: 1.4rem;
    }

    .tn-guides-article__body {
        font-size: 1rem;
    }

    .tn-guides-article__body h2 {
        font-size: 1.2rem;
    }
}

/* Related articles by tags (Focus / Actualités) */
.tn-related {
    margin: 2.25rem 0 1.75rem;
    padding-top: 1.75rem;
    border-top: 1px solid rgba(0, 168, 184, 0.16);
}

.tn-related__heading,
.item-page .entry-header h2.tn-article-title,
.item-page .entry-header h2[itemprop="name"] {
    margin: 0 0 1.15rem;
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.3;
    color: #0b3c6d;
}

.tn-related__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.1rem 1.25rem;
}

.tn-related__card {
    display: flex;
    flex-direction: column;
    height: 100%;
    margin: 0;
    overflow: hidden;
    background: #f7fbfc;
    border: 1px solid rgba(0, 168, 184, 0.14);
    border-radius: 12px;
    border-left: 4px solid #00c6d5;
    box-shadow: 0 8px 24px rgba(11, 60, 109, 0.06);
    text-decoration: none !important;
    color: inherit;
    opacity: 0;
    transform: translateY(18px);
    transition:
        opacity 0.45s ease,
        transform 0.45s ease,
        box-shadow 0.22s ease,
        border-color 0.22s ease;
    transition-delay: calc(var(--tn-related-i, 0) * 70ms);
}

.tn-related__card.is-in,
.tn-related--visible .tn-related__card {
    opacity: 1;
    transform: translateY(0);
}

.tn-related__card:hover,
.tn-related__card:focus {
    border-color: rgba(0, 168, 184, 0.28);
    box-shadow: 0 14px 32px rgba(11, 60, 109, 0.1);
    transform: translateY(-3px);
    outline: none;
}

.tn-related__card.is-in:hover,
.tn-related__card.is-in:focus {
    transform: translateY(-3px);
}

.tn-related__media {
    display: block;
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: linear-gradient(135deg, #0b3c6d 0%, #00c6d5 100%);
}

.tn-related__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.tn-related__card:hover .tn-related__media img,
.tn-related__card:focus .tn-related__media img {
    transform: scale(1.04);
}

.tn-related__media--placeholder::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.22), transparent 45%),
        linear-gradient(135deg, #0b3c6d 0%, #00c6d5 100%);
}

.tn-related__title {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    overflow: hidden;
    margin: 0;
    padding: 0.95rem 1.05rem 1.1rem;
    font-size: 1.02rem;
    font-weight: 700;
    line-height: 1.35;
    color: #0b3c6d;
}

.tn-related__card:hover .tn-related__title,
.tn-related__card:focus .tn-related__title {
    color: #0097a2;
}

.tn-related__heading--sub {
    margin-top: 1.75rem;
    font-size: 1.15rem;
}

.tn-related__list {
    list-style: none;
    margin: 0.75rem 0 0;
    padding: 0;
    display: grid;
    gap: 0.55rem;
}

.tn-related__list a {
    color: #0b3c6d;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid rgba(11, 60, 109, 0.2);
}

.tn-related__list a:hover,
.tn-related__list a:focus {
    color: #0097a2;
    border-bottom-color: #0097a2;
}

.tn-related__soft {
    margin: 1.4rem 0 0;
    padding: 0.85rem 1rem;
    background: linear-gradient(90deg, rgba(0, 198, 213, 0.08), rgba(11, 60, 109, 0.04));
    border-left: 3px solid #00c6d5;
    font-size: 0.98rem;
    line-height: 1.45;
    color: #1a2b3c;
}

.tn-related__soft-label {
    font-weight: 700;
    color: #0b3c6d;
    margin-right: 0.25rem;
}

.tn-related__soft a {
    color: #0b3c6d;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.tn-related__lead {
    margin: 0.35rem 0 0.75rem;
    color: #445566;
    font-size: 0.95rem;
}

.tn-related--resources {
    margin: 2rem auto;
    max-width: 920px;
    padding: 0 1rem 1.5rem;
}

.tn-guides-article .tn-related {
    margin-top: 2rem;
    margin-bottom: 1.5rem;
}

@media (max-width: 767px) {
    .tn-related__grid {
        grid-template-columns: 1fr;
        gap: 0.95rem;
    }

    .tn-related__heading,
    .item-page .entry-header h2.tn-article-title,
    .item-page .entry-header h2[itemprop="name"] {
        font-size: 1.2rem;
    }

    .tn-related__title {
        font-size: 0.98rem;
        padding: 0.85rem 0.95rem 1rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .tn-related__card,
    .tn-related__media img {
        transition: none;
        opacity: 1;
        transform: none;
    }
}
