/* =========================================================
   SIMPLY FRANCE TOURS — TOURS ARCHIVE
   ========================================================= */


/* ---------------------------------------------------------
   GENERATEPRESS OVERRIDES
   --------------------------------------------------------- */

body.post-type-archive-tour .site.grid-container {
    max-width: none;
}

body.post-type-archive-tour .site-content {
    display: block;
    padding: 0;
}

body.post-type-archive-tour #primary {
    width: 100%;
    max-width: none;
    padding: 0;
    margin: 0;
}


/* ---------------------------------------------------------
   BASE
   --------------------------------------------------------- */

.sft-tours-archive {
    width: 100%;
    font-family: "Work Sans", sans-serif;
    color: #202020;
    background: #ffffff;
}

.sft-tours-archive *,
.sft-tours-archive *::before,
.sft-tours-archive *::after {
    box-sizing: border-box;
}

.sft-container {
    width: min(1180px, calc(100% - 64px));
    margin-inline: auto;
}


/* =========================================================
   HERO
   ========================================================= */

.sft-tours-hero {
    position: relative;
    width: 100%;
    min-height: 610px;

    display: flex;
    align-items: center;

    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;

    overflow: hidden;
}


/* ---------------------------------------------------------
   HERO OVERLAY
   --------------------------------------------------------- */

.sft-tours-hero__overlay {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(90deg,
            rgba(14, 19, 23, 0.78) 0%,
            rgba(14, 19, 23, 0.67) 30%,
            rgba(14, 19, 23, 0.43) 55%,
            rgba(14, 19, 23, 0.12) 82%,
            rgba(14, 19, 23, 0.04) 100%);
}


/* ---------------------------------------------------------
   HERO CONTENT
   --------------------------------------------------------- */

.sft-tours-hero__inner {
    position: relative;
    z-index: 2;

    padding-top: 88px;
    padding-bottom: 82px;
}


/* Eyebrow */

.sft-tours-hero__eyebrow {
    margin: 0 0 20px;

    color: #ffffff;

    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;

    letter-spacing: 0.18em;
    text-transform: uppercase;
}


/* Title */

.sft-tours-hero__title {
    max-width: 700px;

    margin: 0 0 24px;

    color: #ffffff;

    font-family: "Playfair Display", serif;
    font-size: clamp(54px, 5.3vw, 76px);
    font-weight: 600;

    line-height: 0.98;
    letter-spacing: -0.035em;
}


/* Introduction */

.sft-tours-hero__intro {
    max-width: 650px;

    margin: 0;

    color: rgba(255, 255, 255, 0.95);

    font-size: 19px;
    font-weight: 400;

    line-height: 1.65;
}


/* ---------------------------------------------------------
   HERO REASSURANCE
   --------------------------------------------------------- */

.sft-tours-hero__reassurance {
    display: flex;
    flex-wrap: wrap;

    gap: 14px 30px;

    margin-top: 34px;

    color: #ffffff;

    font-size: 14px;
    font-weight: 500;
}

.sft-tours-hero__reassurance span {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    color: #ffffff;
}

.sft-tours-hero__reassurance i {
    color: #ffffff;
    font-size: 18px;
}


/* =========================================================
   TOUR TYPES
   ========================================================= */

.sft-tour-types {
    padding: 54px 0 50px;
    background: #f6f5f1;
}

.sft-tour-types__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 28px;
}


/* ---------------------------------------------------------
   TOUR TYPE CARD
   --------------------------------------------------------- */

.sft-tour-type-card {
    position: relative;

    display: flex;
    align-items: flex-start;

    gap: 26px;

    min-height: 202px;

    padding: 34px;

    color: #202020;
    background: #ffffff;

    border: 1px solid rgba(25, 31, 35, 0.08);
    border-radius: 4px;

    text-decoration: none;

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}

.sft-tour-type-card:hover {
    color: #202020;

    transform: translateY(-4px);

    border-color: rgba(25, 31, 35, 0.13);

    box-shadow:
        0 18px 40px rgba(22, 27, 30, 0.08);
}


/* Icon */

.sft-tour-type-card__icon {
    flex: 0 0 auto;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 58px;
    height: 58px;

    border-radius: 50%;

    background: #eef1ed;

    color: #34483e;

    font-size: 28px;
}


/* Content */

.sft-tour-type-card__content {
    display: flex;
    flex-direction: column;

    min-height: 132px;
}

.sft-tour-type-card h2 {
    margin: 2px 0 12px;

    color: #202020;

    font-family: "Playfair Display", serif;
    font-size: 34px;
    font-weight: 600;

    line-height: 1.1;
}

.sft-tour-type-card p {
    margin: 0;

    color: #626262;

    font-size: 16px;
    line-height: 1.6;
}


/* CTA */

.sft-tour-type-card__link {
    display: inline-flex;
    align-items: center;

    gap: 8px;

    margin-top: auto;
    padding-top: 20px;

    color: #34483e;

    font-size: 14px;
    font-weight: 600;
}

.sft-tour-type-card__link i {
    font-size: 18px;

    transition: transform 0.2s ease;
}

.sft-tour-type-card:hover .sft-tour-type-card__link i {
    transform: translateX(4px);
}

.sft-tour-types__guides {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
    margin-top: 20px;
}

.sft-tour-types__guides a {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #34483e;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.sft-tour-types__guides i {
    font-size: 18px;
    transition: transform 0.2s ease;
}

.sft-tour-types__guides a:hover i {
    transform: translateX(4px);
}


/* =========================================================
   ALL TOURS
   ========================================================= */

.sft-all-tours {
    padding: 92px 0 110px;
    background: #ffffff;
}


/* ---------------------------------------------------------
   SECTION HEADING
   --------------------------------------------------------- */

.sft-section-heading {
    max-width: 700px;
}

.sft-eyebrow {
    margin: 0 0 14px;

    color: #69756e;

    font-size: 13px;
    font-weight: 600;

    line-height: 1.4;

    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.sft-section-heading h2 {
    margin: 0 0 18px;

    color: #202020;

    font-family: "Playfair Display", serif;
    font-size: clamp(42px, 4vw, 58px);
    font-weight: 600;

    line-height: 1.05;
    letter-spacing: -0.025em;
}

.sft-section-heading__intro {
    margin: 0;

    color: #686868;

    font-size: 18px;
    line-height: 1.65;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 900px) {

    .sft-container {
        width: min(100% - 40px, 1180px);
    }

    .sft-tours-hero {
        min-height: 570px;
    }

    .sft-tours-hero__title {
        max-width: 620px;

        font-size: clamp(50px, 8vw, 68px);
    }

    .sft-tour-types__grid {
        grid-template-columns: 1fr;
    }

    .sft-tour-type-card {
        min-height: 220px;
    }
}


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

@media (max-width: 600px) {
    .sft-tour-types__guides {
        grid-template-columns: 1fr;
        gap: 14px;
    }


    .sft-container {
        width: calc(100% - 32px);
    }


    /* HERO */

    .sft-tours-hero {
        min-height: 570px;

        background-position: 58% center;
    }

    .sft-tours-hero__overlay {
        background:
            linear-gradient(90deg,
                rgba(14, 19, 23, 0.74) 0%,
                rgba(14, 19, 23, 0.62) 65%,
                rgba(14, 19, 23, 0.35) 100%);
    }

    .sft-tours-hero__inner {
        padding-top: 70px;
        padding-bottom: 64px;
    }

    .sft-tours-hero__eyebrow {
        margin-bottom: 16px;

        font-size: 12px;
    }

    .sft-tours-hero__title {
        max-width: 100%;

        margin-bottom: 20px;

        font-size: clamp(44px, 14vw, 58px);

        line-height: 1;
    }

    .sft-tours-hero__intro {
        max-width: 100%;

        font-size: 17px;
        line-height: 1.55;
    }

    .sft-tours-hero__reassurance {
        flex-direction: column;

        gap: 10px;

        margin-top: 28px;
    }


    /* TOUR TYPES */

    .sft-tour-types {
        padding: 48px 0;
    }

    .sft-tour-types__grid {
        gap: 18px;
    }

    .sft-tour-type-card {
        display: block;

        min-height: 0;

        padding: 30px;
    }

    .sft-tour-type-card__icon {
        width: 52px;
        height: 52px;

        margin-bottom: 24px;

        font-size: 25px;
    }

    .sft-tour-type-card__content {
        min-height: 0;
    }

    .sft-tour-type-card h2 {
        font-size: 30px;
    }

    .sft-tour-type-card__link {
        margin-top: 24px;
        padding-top: 0;
    }


    /* ALL TOURS */

    .sft-all-tours {
        padding: 64px 0 80px;
    }

    .sft-section-heading h2 {
        font-size: 42px;
    }

    .sft-section-heading__intro {
        font-size: 17px;
    }

}

/* =========================================================
   ALL TOURS — TOUR CARDS
   ========================================================= */

.sft-all-tours {
    padding: 90px 0 110px;
    background: #ffffff;
}

.sft-all-tours > .sft-container {
    width: min(1180px, calc(100% - 64px));
    max-width: 1180px;
    margin-inline: auto;
}

.sft-section-heading {
    max-width: 680px;
    margin-bottom: 42px;
}

.sft-section-heading .sft-eyebrow {
    margin: 0 0 12px;
    color: #52645b;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.sft-section-heading h2 {
    margin: 0 0 12px;
    font-family: "Playfair Display", serif;
    font-size: clamp(38px, 4vw, 54px);
    font-weight: 600;
    line-height: 1.08;
    letter-spacing: -0.02em;
}

.sft-section-heading__intro {
    margin: 0;
    color: #6b6b6b;
    font-size: 16px;
    line-height: 1.6;
}


/* ---------------------------------------------------------
   GRID
   --------------------------------------------------------- */

.sft-tours-grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px;
    align-items: stretch;
}


/* ---------------------------------------------------------
   CARD
   --------------------------------------------------------- */

.sft-tour-card {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    min-width: 0;
    max-width: none;
    background: #ffffff;
    border: 1px solid #e7e7e3;
    border-radius: 4px;
    overflow: hidden;
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.sft-tour-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 35px rgba(20, 28, 24, 0.10);
}


/* ---------------------------------------------------------
   IMAGE
   --------------------------------------------------------- */

.sft-tour-card__image {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #eeeeea;
}

.sft-tour-card__image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.sft-tour-card:hover .sft-tour-card__image img {
    transform: scale(1.025);
}


/* ---------------------------------------------------------
   BADGE
   --------------------------------------------------------- */

.sft-tour-card__badge {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.94);
    color: #25372e;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    border-radius: 2px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}


/* ---------------------------------------------------------
   BODY / CONTENT
   Correspond à .sft-tour-card__body dans archive-tour.php
   --------------------------------------------------------- */

.sft-tour-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 24px;
}

.sft-tour-card__rating {
    margin: 0 0 10px;
    color: #303b35;
    font-size: 13px;
    font-weight: 500;
}

.sft-tour-card__title {
    margin: 0 0 12px;
    font-family: "Playfair Display", serif;
    font-size: 27px;
    font-weight: 600;
    line-height: 1.15;
}

.sft-tour-card__title a {
    color: #202020;
    text-decoration: none;
}

.sft-tour-card__title a:hover {
    color: #42594d;
}

.sft-tour-card__subtitle {
    margin: 0 0 20px;
    color: #606060;
    font-size: 14px;
    line-height: 1.6;
}


/* ---------------------------------------------------------
   META
   --------------------------------------------------------- */

.sft-tour-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 9px 16px;
    margin: 0 0 22px;
    color: #414b46;
    font-size: 13px;
}

.sft-tour-card__meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.sft-tour-card__meta i {
    font-size: 16px;
}


/* ---------------------------------------------------------
   FOOTER / PRICE / BUTTON
   --------------------------------------------------------- */

.sft-tour-card__footer {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-top: auto;
    padding-top: 18px;
    border-top: 1px solid #ecece8;
}

.sft-tour-card__price {
    display: flex;
    flex-direction: column;
    margin: 0;
    color: #606762;
    font-size: 12px;
}

.sft-tour-card__price strong {
    margin-top: 2px;
    color: #202020;
    font-family: "Playfair Display", serif;
    font-size: 23px;
    font-weight: 600;
}

.sft-tour-card__button {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #30483b;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.sft-tour-card__button i {
    font-size: 17px;
    transition: transform 0.2s ease;
}

.sft-tour-card__button:hover {
    color: #30483b;
    text-decoration: underline;
}

.sft-tour-card__button:hover i {
    transform: translateX(3px);
}


/* =========================================================
   ALL TOURS — RESPONSIVE
   ========================================================= */

@media (max-width: 1024px) {
    .sft-tours-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 680px) {
    .sft-all-tours {
        padding: 65px 0 80px;
    }

    .sft-all-tours > .sft-container {
        width: calc(100% - 32px);
    }

    .sft-section-heading {
        margin-bottom: 30px;
    }

    .sft-tours-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .sft-tour-card__body {
        padding: 20px;
    }

    .sft-tour-card__title {
        font-size: 25px;
    }
}

/* =========================================================
   WHY SIMPLY FRANCE TOURS
   ========================================================= */

.sft-why-us {
    padding: 100px 0 105px;
    background: #f6f5f1;
}

.sft-why-us__heading {
    max-width: 760px;
    margin: 0 auto 58px;
    text-align: center;
}

.sft-why-us__heading .sft-eyebrow {
    margin-bottom: 14px;
}

.sft-why-us__heading h2 {
    margin: 0 0 20px;
    color: #202020;
    font-family: "Playfair Display", serif;
    font-size: clamp(40px, 4vw, 56px);
    font-weight: 600;
    line-height: 1.08;
    letter-spacing: -0.025em;
}

.sft-why-us__intro {
    max-width: 690px;
    margin: 0 auto;
    color: #666b68;
    font-size: 17px;
    line-height: 1.7;
}

.sft-why-us__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    border-top: 1px solid rgba(52, 72, 62, 0.14);
}

.sft-why-us__benefit {
    min-width: 0;
    padding: 38px 30px 0;
    border-left: 1px solid rgba(52, 72, 62, 0.14);
}

.sft-why-us__benefit:first-child {
    border-left: 0;
    padding-left: 0;
}

.sft-why-us__benefit:last-child {
    padding-right: 0;
}

.sft-why-us__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin-bottom: 22px;
    border-radius: 50%;
    background: #e7ece7;
    color: #34483e;
    font-size: 23px;
}

.sft-why-us__benefit h3 {
    margin: 0 0 12px;
    color: #202020;
    font-family: "Playfair Display", serif;
    font-size: 23px;
    font-weight: 600;
    line-height: 1.2;
}

.sft-why-us__benefit p {
    margin: 0;
    color: #626762;
    font-size: 14px;
    line-height: 1.7;
}

@media (max-width: 900px) {
    .sft-why-us__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 36px 0;
    }

    .sft-why-us__benefit,
    .sft-why-us__benefit:first-child,
    .sft-why-us__benefit:last-child {
        padding: 30px 28px 0;
    }

    .sft-why-us__benefit:nth-child(odd) {
        border-left: 0;
        padding-left: 0;
    }
}

@media (max-width: 600px) {
    .sft-why-us {
        padding: 70px 0 76px;
    }

    .sft-why-us__heading {
        margin-bottom: 42px;
        text-align: left;
    }

    .sft-why-us__heading h2 {
        font-size: 40px;
    }

    .sft-why-us__intro {
        font-size: 16px;
    }

    .sft-why-us__grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .sft-why-us__benefit,
    .sft-why-us__benefit:first-child,
    .sft-why-us__benefit:last-child,
    .sft-why-us__benefit:nth-child(odd) {
        padding: 28px 0;
        border-left: 0;
        border-bottom: 1px solid rgba(52, 72, 62, 0.14);
    }

    .sft-why-us__benefit:last-child {
        padding-bottom: 0;
        border-bottom: 0;
    }
}


/* =========================================================
   MORE WAYS TO DISCOVER PARIS
   ========================================================= */

.sft-more-ways {
    position: relative;
    min-height: 620px;
    display: flex;
    align-items: center;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    overflow: hidden;
}

.sft-more-ways__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(17, 23, 20, 0.46) 0%,
        rgba(17, 23, 20, 0.24) 48%,
        rgba(17, 23, 20, 0.08) 100%
    );
}

.sft-more-ways__inner {
    position: relative;
    z-index: 2;
    width: 100%;
    padding-top: 82px;
    padding-bottom: 82px;
}

.sft-more-ways__panel {
    width: min(560px, 100%);
    padding: 52px 54px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 20px 55px rgba(20, 28, 24, 0.14);
}

.sft-more-ways__eyebrow {
    margin: 0 0 14px;
    color: #52645b;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.sft-more-ways__panel h2 {
    margin: 0 0 20px;
    color: #202020;
    font-family: "Playfair Display", serif;
    font-size: clamp(38px, 4vw, 54px);
    font-weight: 600;
    line-height: 1.06;
    letter-spacing: -0.025em;
}

.sft-more-ways__text {
    margin: 0 0 30px;
    color: #626762;
    font-size: 16px;
    line-height: 1.7;
}

.sft-more-ways__links {
    border-top: 1px solid #dfe3df;
}

.sft-more-ways__link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 62px;
    padding: 14px 0;
    border-bottom: 1px solid #dfe3df;
    color: #2f463a;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
}

.sft-more-ways__link-label {
    display: inline-flex;
    align-items: center;
    gap: 11px;
}

.sft-more-ways__link-label i {
    font-size: 20px;
}

.sft-more-ways__link > .ti-arrow-right {
    flex: 0 0 auto;
    font-size: 18px;
    transition: transform 0.2s ease;
}

a.sft-more-ways__link:hover {
    color: #2f463a;
}

a.sft-more-ways__link:hover > .ti-arrow-right {
    transform: translateX(4px);
}

.sft-more-ways__link--inactive {
    color: #59645e;
    cursor: default;
}

@media (max-width: 900px) {
    .sft-more-ways {
        min-height: 570px;
    }

    .sft-more-ways__panel {
        width: min(520px, 100%);
        padding: 44px;
    }
}

@media (max-width: 600px) {
    .sft-more-ways {
        min-height: 0;
        align-items: flex-end;
        padding-top: 280px;
        background-position: center top;
    }

    .sft-more-ways__overlay {
        background: linear-gradient(
            180deg,
            rgba(17, 23, 20, 0.08) 0%,
            rgba(17, 23, 20, 0.18) 46%,
            rgba(17, 23, 20, 0.42) 100%
        );
    }

    .sft-more-ways__inner {
        width: 100%;
        padding: 0;
    }

    .sft-more-ways__panel {
        width: 100%;
        padding: 38px 32px 42px;
        background: #ffffff;
        box-shadow: none;
    }

    .sft-more-ways__panel h2 {
        font-size: 39px;
    }

    .sft-more-ways__text {
        font-size: 15px;
    }
}

/* =========================================================
   TOUR FILTER
   ========================================================= */

.sft-tour-card[hidden] {
    display: none !important;
}

/* =========================================================
   TOUR FILTERS
   ========================================================= */

.sft-tour-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 28px;
    margin-top: 26px;
}

.sft-tour-filter {
    position: relative;
    padding: 0 0 8px;
    color: #777c78;
    background: transparent;
    border: 0;
    border-radius: 0;
    font-family: "Work Sans", sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    cursor: pointer;
    transition: color 0.2s ease;
}

.sft-tour-filter::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background: #34483e;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.2s ease;
}

.sft-tour-filter:hover,
.sft-tour-filter:focus-visible,
.sft-tour-filter.is-active {
    color: #263b30;
    background: transparent;
}

.sft-tour-filter.is-active {
    font-weight: 600;
}

.sft-tour-filter.is-active::after {
    transform: scaleX(1);
}

.sft-tour-filter:focus-visible {
    outline: 2px solid #34483e;
    outline-offset: 4px;
}

/* Le CSS des cartes utilise display:flex :
   cette règle permet à l'attribut hidden du filtre de fonctionner. */
.sft-tour-card[hidden] {
    display: none !important;
}

@media (max-width: 600px) {
    .sft-tour-filters {
        gap: 18px;
        margin-top: 22px;
    }

    .sft-tour-filter {
        font-size: 13px;
    }
}
