﻿/* =========================
   Boîte à outils du voyageur (Guides/WhyDutyFree.aspx)
   ========================= */

.tt {
    margin: 1.25rem 0 1.5rem;
    padding: 1.25rem 1rem 1.1rem;
    border: 1px solid rgba(0, 0, 0, 0.07);
    border-radius: 1rem;
    background: linear-gradient(180deg, #f6f8fc 0%, #ffffff 60%);
}

.page--guide .tt h2 {
    margin-top: 0;
}

.tt__lead {
    margin: 0 0 1rem;
    color: #444;
}

/* Choix de la destination */
.tt__tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0 0 1rem;
}

.tt__tab {
    padding: 0.5rem 1rem;
    border: 1px solid #c9ced6;
    border-radius: 999px;
    background: #fff;
    color: #222;
    font: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease;
}

.tt__tab:hover {
    border-color: rgba(212, 31, 38, 0.6);
}

.tt__tab.is-active {
    border-color: #a80e12;
    background: linear-gradient(135deg, #d41f26, #a80e12);
    color: #fff;
}

.tt__tab:focus-visible,
.tt__btn:focus-visible,
.tt__select:focus-visible,
.tt__input:focus-visible,
.tt__check input:focus-visible {
    outline: 3px solid rgba(212, 31, 38, 0.45);
    outline-offset: 2px;
}

/* Cartes */
.tt__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
    margin: 0 0 1rem;
}

@media (min-width: 769px) {
    .tt__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.25rem;
    }
}

.tt__card {
    padding: 1rem;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 0.75rem;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.page--guide .tt__card h3 {
    margin: 0 0 0.6rem;
}

.page--guide .tt__card h4 {
    margin: 0.9rem 0 0.2rem;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #555;
}

.tt__muted {
    margin: 0;
    color: #666;
    font-size: 0.92rem;
}

.tt__src {
    margin: 0.8rem 0 0;
    font-size: 0.8rem;
    line-height: 1.4;
    color: #666;
}

.page--guide .tt__src--top {
    margin: 0 0 0.4rem;
}

.tt__src a {
    color: var(--logoRed, #d41f26);
}

/* Météo */
.tt__now {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0 0 0.9rem;
}

.tt__icon {
    font-size: 2.4rem;
    line-height: 1;
}

.tt__temp {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
}

.tt__desc {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
    font-size: 0.95rem;
}

.tt__days {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.4rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.page--guide .tt__days {
    margin: 0;
}

.page--guide .tt__days li {
    margin: 0;
}

.tt__day {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
    padding: 0.5rem 0.2rem;
    border-radius: 0.6rem;
    background: #f5f7fa;
    text-align: center;
    font-size: 0.85rem;
}

.tt__day-name {
    font-weight: 700;
}

.tt__day-icon {
    font-size: 1.5rem;
    line-height: 1.2;
}

.tt__day-range {
    white-space: nowrap;
}

.tt__day-pop {
    color: #2a6fb0;
    font-size: 0.8rem;
}

/* Mer et soleil */
.tt__facts {
    margin: 0;
}

.tt__facts dt {
    margin: 0.5rem 0 0;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #666;
}

.tt__facts dt:first-child {
    margin-top: 0;
}

.tt__facts dd {
    margin: 0.1rem 0 0;
    line-height: 1.45;
}

/* Conseil lié à la météo */
.page--guide .tt__tip {
    margin: 0 0 1rem;
    padding: 0.7rem 1rem;
    border: 1px solid #f0cf85;
    border-radius: 0.6rem;
    background: #fff6e0;
    color: #5c4300;
}

.tt__tip[hidden] {
    display: none;
}

.tt__tip a {
    color: #a80e12;
    font-weight: 700;
}

/* Convertisseurs */
.tt__label {
    display: block;
    margin: 0.6rem 0 0.25rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: #444;
}

.tt__select,
.tt__input {
    width: 100%;
    box-sizing: border-box;
    padding: 0.55rem 0.7rem;
    border: 1px solid #c9ced6;
    border-radius: 0.5rem;
    background: #fff;
    font: inherit;
}

.tt__input--short {
    max-width: 10rem;
}

.tt__conv-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: end;
    gap: 0.5rem;
}

.tt__eq {
    padding-bottom: 0.55rem;
    font-weight: 700;
    color: #666;
}

#tt-conv-rate-row[hidden] {
    display: none;
}

/* Liste de vérification */
.tt__checks {
    margin: 0;
    padding: 0;
    list-style: none;
}

.page--guide .tt__checks {
    margin: 0;
}

.tt__check {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    padding: 0.3rem 0;
    line-height: 1.4;
    cursor: pointer;
}

.tt__check input {
    flex: 0 0 auto;
    width: 1.1rem;
    height: 1.1rem;
    margin-top: 0.15rem;
    accent-color: #d41f26;
}

.tt__check a {
    color: var(--logoRed, #d41f26);
}

.tt__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6rem;
    margin-top: 1rem;
}

.tt__count {
    margin-right: auto;
    font-size: 0.9rem;
    color: #555;
}

.tt__btn {
    padding: 0.5rem 0.95rem;
    border: 1px solid rgba(212, 31, 38, 0.9);
    border-radius: 999px;
    background: linear-gradient(135deg, #d41f26, #a80e12);
    color: #fff;
    font: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
}

.tt__btn--ghost {
    background: #fff;
    color: #a80e12;
}

.tt__print-title {
    display: none;
}

.tt__sr {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.tt__day {
    position: relative;
}

@media (max-width: 480px) {
    .tt__temp {
        font-size: 1.7rem;
    }

    .tt__days {
        gap: 0.25rem;
    }

    .tt__day {
        padding: 0.4rem 0.1rem;
        font-size: 0.78rem;
    }

    .tt__day-icon {
        font-size: 1.25rem;
    }
}

/* Impression : seulement la liste de vérification */
@media print {
    .tt-printing body * {
        visibility: hidden;
    }

    .tt-printing #liste-verification,
    .tt-printing #liste-verification * {
        visibility: visible;
    }

    .tt-printing #liste-verification {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        border: 0;
        box-shadow: none;
    }

    .tt-printing .tt__actions {
        display: none;
    }

    .tt-printing .tt__print-title {
        display: block;
        margin: 0 0 0.6rem;
        font-size: 1.2rem;
        font-weight: 700;
    }
}

@media (prefers-reduced-motion: reduce) {
    .tt__tab {
        transition: none;
    }
}
