/* QFET — Page d'accueil Gutenberg. Tout est limité à .qfet-home. */

.qfet-home {
    --yellow: #f5b810;
    --teal: #01a290;
    --ink: #0b0b0b;
    --cream: #fff8df;
    --white: #fffdf5;
    color: var(--ink);
    font-family: "Work Sans", Arial, sans-serif;
    overflow: hidden;
}

.qfet-home * {
    box-sizing: border-box;
}

.qfet-home a {
    text-decoration: none;
}

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

.qfet-section {
    padding: 96px 0;
    margin: 0 !important;
}

.qfet-home h1,
.qfet-home h2,
.qfet-home h3,
.qfet-home strong {
    font-family: "Heebo", "Arial Narrow", Arial, sans-serif;
}

.qfet-home mark {
    color: var(--yellow);
    background: none;
}

/* ==========================================================
   QFET — HERO
   ========================================================== */

.qfet-hero {
    margin: 0 !important;
    border-bottom: 8px solid var(--yellow);
}

.qfet-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(0, 0, 0, 0.82) 0%,
        rgba(0, 0, 0, 0.55) 55%,
        rgba(0, 0, 0, 0.15) 100%
    );
}

.qfet-hero-content {
    position: relative;
    z-index: 2;
    margin: 0 auto !important;
}

.qfet-kicker,
.qfet-eyebrow {
    display: inline-block;
    margin: 0 0 20px;
    padding: 7px 13px;
    color: #ffffff;
    background: var(--teal);
    border: 2px solid var(--ink);
    box-shadow: 3px 3px 0 var(--ink);
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 0.08em;
}

.qfet-hero-title {
    max-width: 920px;
    margin: 0 0 28px !important;
    color: #ffffff;
    font-size: clamp(54px, 8vw, 104px) !important;
    line-height: 0.87 !important;
    letter-spacing: -0.045em;
    text-shadow: 4px 4px 0 #000000;
}

.qfet-hero-text {
    max-width: 730px;
    color: #ffffff;
    font-size: clamp(18px, 2vw, 23px);
    font-weight: 600;
    line-height: 1.55;
}

.qfet-buttons {
    gap: 14px;
    margin: 30px 0 22px;
}

.qfet-btn .wp-block-button__link {
    padding: 16px 22px !important;
    border: 3px solid var(--ink) !important;
    border-radius: 8px !important;
    box-shadow: 5px 5px 0 var(--ink);
    font-weight: 900;
    letter-spacing: 0.02em;
    transition:
        transform 0.16s,
        box-shadow 0.16s;
}

.qfet-btn .wp-block-button__link:hover {
    box-shadow: 2px 2px 0 var(--ink);
    transform: translate(3px, 3px);
}

.qfet-btn-primary .wp-block-button__link {
    color: var(--ink) !important;
    background: var(--yellow) !important;
}

.qfet-btn-light .wp-block-button__link {
    color: var(--ink) !important;
    background: var(--white) !important;
}

.qfet-btn-dark .wp-block-button__link {
    color: #ffffff !important;
    background: var(--ink) !important;
    border-color: var(--ink) !important;
}

.qfet-proof {
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
}

/* ==========================================================
   QFET — SECTIONS ET CARTES
   ========================================================== */

.qfet-start,
.qfet-prepare {
    background: var(--cream);
}

.qfet-section-title {
    margin: 0 0 18px !important;
    font-size: clamp(42px, 6vw, 72px) !important;
    line-height: 0.96 !important;
    letter-spacing: -0.035em;
}

.qfet-section-intro {
    max-width: 700px;
    margin: 0 0 42px;
    font-size: 19px;
    line-height: 1.6;
}

.qfet-card-grid {
    gap: 24px;
    margin-top: 42px;
}

.qfet-card {
    padding: 30px !important;
    background: #ffffff;
    border: 4px solid var(--ink);
    border-radius: 16px;
    box-shadow: 8px 8px 0 var(--ink);
}

.qfet-card-yellow {
    background: var(--yellow);
}

.qfet-card-teal {
    color: #ffffff;
    background: var(--teal);
}

.qfet-card-number {
    margin: 0 0 24px;
    font-size: 46px;
    font-weight: 900;
    line-height: 1;
}

.qfet-card h3 {
    margin: 0 0 14px;
    font-size: 27px;
    line-height: 1.05;
}

.qfet-card p {
    line-height: 1.55;
}

.qfet-card-link {
    margin-top: 24px !important;
}

.qfet-card-link a {
    color: inherit;
    border-bottom: 3px solid currentColor;
    font-weight: 900;
}

/* ==========================================================
   QFET — DESTINATIONS
   ========================================================== */

.qfet-destinations {
    background: var(--ink);
}

.qfet-title-light {
    color: #ffffff;
}

.qfet-eyebrow-dark {
    color: var(--ink);
    background: var(--yellow);
}

.qfet-destination-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin: 32px 0 0;
}

.qfet-destination {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 320px;
    padding: 28px;
    overflow: hidden;
    color: #ffffff !important;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    border: 3px solid #ffffff;
    border-radius: 16px;
    box-shadow: 6px 6px 0 var(--yellow);
    transition: transform 0.2s;
}

/* QFET — Dégradé commun assurant la lisibilité du texte */
.qfet-destination::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.92) 0%,
        rgba(0, 0, 0, 0.5) 42%,
        rgba(0, 0, 0, 0.05) 100%
    );
}

.qfet-destination > * {
    position: relative;
}

.qfet-destination:hover {
    transform: translateY(-5px);
}

.qfet-destination span {
    align-self: flex-start;
    padding: 5px 9px;
    color: var(--ink);
    background: var(--yellow);
    font-size: 12px;
    font-weight: 900;
}

.qfet-destination strong {
    margin: 10px 0 8px;
    font-size: 40px;
    line-height: 1;
}

.qfet-destination small {
    font-size: 15px;
    font-weight: 700;
}

/* QFET — Photo de Bangkok */
.qfet-bangkok {
    background-color: #333333;
    background-image: url("https://www.quefaireenthailande.com/wp-content/uploads/2026/08/bangkok.jpg");
}

/* QFET — Photo de Chiang Mai */
.qfet-north {
    background-color: #176b5b;
    background-image: url("https://www.quefaireenthailande.com/wp-content/uploads/2026/08/chiang-mai-scaled.jpg");
}

/* QFET — Photo de Phuket */
.qfet-phuket {
    background-color: #176b8d;
    background-image: url("https://www.quefaireenthailande.com/wp-content/uploads/2026/08/phuket.jpg");
}

/* QFET — Photo de Krabi */
.qfet-krabi {
    background-color: #654321;
    background-image: url("https://www.quefaireenthailande.com/wp-content/uploads/2026/08/krabi-scaled.jpg");
}

/* QFET — Photo de Koh Samui */
.qfet-samui {
    background-color: #007c78;
    background-image: url("https://www.quefaireenthailande.com/wp-content/uploads/2026/08/koh-samui.jpg");
}

/* QFET — Photo générique des îles avec Koh Lipe */
.qfet-islands {
    background-color: #74528d;
    background-image: url("https://www.quefaireenthailande.com/wp-content/uploads/2026/08/koh-lipe.jpg");
}

.qfet-destination-grid-small .qfet-destination {
    min-height: 230px;
}

.qfet-destination-grid-small .qfet-destination strong {
    font-size: 33px;
}

/* ==========================================================
   QFET — THÉMATIQUES
   ========================================================== */

.qfet-topic-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-top: 38px;
}

.qfet-topic-grid > a {
    display: flex;
    align-items: center;
    gap: 17px;
    padding: 23px;
    color: var(--ink);
    background: #ffffff;
    border: 3px solid var(--ink);
    border-radius: 12px;
    box-shadow: 5px 5px 0 var(--ink);
    transition: 0.15s;
}

.qfet-topic-grid > a:hover {
    background: var(--yellow);
    transform: translateY(-3px);
}

.qfet-topic-grid b {
    font-size: 30px;
}

.qfet-topic-grid span {
    display: flex;
    flex-direction: column;
}

.qfet-topic-grid strong {
    font-size: 18px;
}

.qfet-topic-grid small {
    margin-top: 4px;
    font-size: 13px;
}

/* ==========================================================
   QFET — GUIDES
   ========================================================== */

.qfet-guides {
    background: #ffffff;
}

.qfet-guide-grid {
    gap: 22px;
    margin-top: 40px;
}

.qfet-guide {
    padding: 28px !important;
    background: var(--cream);
    border-top: 8px solid var(--yellow);
}

.qfet-guide:nth-child(2) {
    border-color: var(--teal);
}

.qfet-guide:nth-child(3) {
    border-color: var(--ink);
}

.qfet-guide-tag {
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.08em;
}

.qfet-guide h3 {
    font-size: 26px;
    line-height: 1.15;
}

.qfet-guide h3 a {
    color: var(--ink);
}

.qfet-arrow {
    color: var(--ink);
    border-bottom: 3px solid var(--yellow);
    font-weight: 900;
}

/* ==========================================================
   QFET — À PROPOS
   ========================================================== */

.qfet-about {
    background: var(--yellow);
    border-block: 6px solid var(--ink);
}

.qfet-about-grid {
    gap: 64px;
}

.qfet-flo-photo {
    position: relative;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: var(--teal);
    border: 5px solid var(--ink);
    border-radius: 16px;
    box-shadow: 12px 12px 0 var(--ink);
}

.qfet-flo-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.qfet-flo-photo span {
    position: absolute;
    top: 24px;
    left: 24px;
    z-index: 2;
    padding: 7px 11px;
    color: var(--ink);
    background: var(--yellow);
    border: 2px solid var(--ink);
    font-weight: 900;
    line-height: 1;
}

.qfet-about p:not(.qfet-eyebrow) {
    font-size: 18px;
    line-height: 1.65;
}

/* ==========================================================
   QFET — NEWSLETTER
   ========================================================== */

.qfet-newsletter {
    color: #ffffff;
    text-align: center;
    background: var(--teal);
}

.qfet-newsletter-inner {
    max-width: 800px;
}

.qfet-newsletter-icon {
    margin: 0;
    font-size: 62px;
}

.qfet-newsletter .qfet-section-title {
    color: #ffffff;
    text-shadow: 3px 3px 0 var(--ink);
}

.qfet-newsletter .qfet-section-intro {
    margin-inline: auto;
}

.qfet-newsletter-note {
    font-size: 13px;
    font-weight: 700;
}

/* ==========================================================
   QFET — TABLETTES
   ========================================================== */

@media (max-width: 900px) {
    .qfet-section {
        padding: 70px 0;
    }

    .qfet-card-grid,
    .qfet-guide-grid,
    .qfet-about-grid {
        flex-wrap: wrap !important;
    }

    .qfet-card-grid > .wp-block-column,
    .qfet-guide-grid > .wp-block-column {
        flex-basis: calc(50% - 12px) !important;
    }

    .qfet-destination-grid,
    .qfet-topic-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .qfet-about-grid > .wp-block-column {
        flex-basis: 100% !important;
    }

    .qfet-flo-photo {
        max-width: 480px;
        margin: auto;
        aspect-ratio: 16 / 10;
    }
}

/* ==========================================================
   QFET — TÉLÉPHONES
   ========================================================== */

@media (max-width: 620px) {
    .qfet-container {
        width: min(100% - 26px, 1180px);
    }

    .qfet-section {
        padding: 56px 0;
    }

    .qfet-hero {
        min-height: 650px !important;
    }

    .qfet-hero-title {
        font-size: 50px !important;
    }

    .qfet-buttons {
        display: block !important;
    }

    .qfet-buttons .wp-block-button {
        width: 100%;
        margin-bottom: 14px;
    }

    .qfet-buttons .wp-block-button__link {
        width: 100%;
    }

    .qfet-proof {
        line-height: 1.8;
    }

    .qfet-card-grid > .wp-block-column,
    .qfet-guide-grid > .wp-block-column {
        flex-basis: 100% !important;
    }

    .qfet-destination-grid,
    .qfet-topic-grid {
        grid-template-columns: 1fr;
    }

    .qfet-section-title {
        font-size: 41px !important;
    }

    .qfet-destination {
        min-height: 230px;
    }

    .qfet-about-grid {
        gap: 42px;
    }

    .qfet-flo-photo {
        aspect-ratio: 4 / 3;
    }

    .qfet-newsletter br {
        display: none;
    }
}