/* ============================================================================
   EFASTWORK TRAINING — Refonte « carnet de voyage » (page d'accueil)
   ----------------------------------------------------------------------------
   Portée : `.training-home` uniquement. Aucune autre page Training n'est
   touchée. Ce fichier complète training.css, il ne le remplace pas : les
   composants partagés (alertes, tarifs, catalogue) restent intacts.

   Direction artistique :
   - nuit de départ      #04101d → #0a2b4d
   - or d'embarquement   #f5b544
   - corail de tampon    #ff6f5e
   - menthe de validation #2fd6a8
   Le vocabulaire visuel est celui du voyage : ciel, trajectoire pointillée,
   monuments en silhouette, billet d'embarquement, tampon de passeport.
   ============================================================================ */

.training-home {
    --v-night: #04101d;
    --v-night-2: #061a2f;
    --v-deep: #0a2b4d;
    --v-indigo: #16386b;
    --v-amber: #f5b544;
    --v-amber-soft: #ffd88a;
    --v-coral: #ff6f5e;
    --v-mint: #2fd6a8;
    --v-cream: #fbf8f2;
    --v-ink: #0c1b2a;
    --v-line: rgba(255, 255, 255, .12);
    --v-card: #ffffff;
    --v-ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------------------------------------------------------------------------
   1. HERO — la nuit du départ
   --------------------------------------------------------------------------- */

.th-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    border-radius: 26px;
    background:
        radial-gradient(1200px 520px at 82% -22%, rgba(47, 214, 168, .18), transparent 62%),
        radial-gradient(900px 460px at 8% 122%, rgba(245, 181, 68, .16), transparent 60%),
        linear-gradient(160deg, #04101d 0%, #071f3a 46%, #0a2b4d 100%);
    box-shadow:
        0 40px 90px -40px rgba(4, 16, 29, .85),
        inset 0 1px 0 rgba(255, 255, 255, .07);
    padding: 3rem 2.6rem 2.4rem;
    color: #eaf2fb;
}

/* Aurores : deux halos lents qui donnent la profondeur du ciel. */
.th-aurora {
    position: absolute;
    z-index: 0;
    border-radius: 50%;
    filter: blur(70px);
    pointer-events: none;
    opacity: .55;
}

.th-aurora--1 {
    width: 460px;
    height: 300px;
    top: -90px;
    right: 6%;
    background: radial-gradient(circle, rgba(47, 214, 168, .55), transparent 68%);
    animation: th-drift 18s var(--v-ease) infinite alternate;
}

.th-aurora--2 {
    width: 380px;
    height: 240px;
    bottom: -110px;
    left: -4%;
    background: radial-gradient(circle, rgba(245, 181, 68, .5), transparent 70%);
    animation: th-drift 24s var(--v-ease) infinite alternate-reverse;
}

/* Grille topographique, plus dense en haut à droite. */
.th-grid {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
    background-size: 54px 54px;
    mask-image: radial-gradient(circle at 74% 26%, #000 0%, transparent 74%);
    -webkit-mask-image: radial-gradient(circle at 74% 26%, #000 0%, transparent 74%);
    pointer-events: none;
}

/* Silhouette de monuments, posée au sol du hero. */
.th-skyline {
    position: absolute;
    right: 0;
    bottom: 0;
    z-index: 0;
    width: min(760px, 66%);
    height: 148px;
    overflow: hidden;
    opacity: .42;
    pointer-events: none;
    filter: drop-shadow(0 -12px 34px rgba(4, 16, 29, .8));
    mask-image: linear-gradient(90deg, transparent, #000 16%, #000 84%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 16%, #000 84%, transparent);
}

/* Le ruban défile en continu. Deux copies identiques dans la vue : la
   translation de -50% retombe exactement sur le début, sans saut visible. */
.th-skyline-track {
    position: absolute;
    bottom: 0;
    left: 0;
    display: flex;
    align-items: flex-end;
    gap: 1.6rem;
    width: max-content;
    padding-right: 1.6rem;
    animation: th-pan 78s linear infinite;
}

.th-skyline-item {
    display: block;
    flex: 0 0 auto;
    width: 186px;
}

.th-skyline-item svg { display: block; width: 100%; height: auto; }

/* Trajectoire de vol : pointillés + avion, purement décoratif. */
.th-flight {
    position: absolute;
    z-index: 0;
    top: 16%;
    left: 6%;
    width: 46%;
    height: 2px;
    background-image: linear-gradient(90deg, rgba(255, 255, 255, .5) 0 34%, transparent 34% 100%);
    background-size: 14px 2px;
    transform: rotate(-7deg);
    opacity: .35;
    pointer-events: none;
}

.th-flight::after {
    content: "\f072"; /* avion Font Awesome */
    font-family: "Font Awesome 6 Free", "Font Awesome 5 Free", sans-serif;
    font-weight: 900;
    position: absolute;
    right: -18px;
    top: -13px;
    font-size: 1rem;
    color: #fff;
    transform: rotate(8deg);
    animation: th-float 5s ease-in-out infinite;
}

/* --- contenu du hero --- */

.th-hero-inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
    gap: 2.4rem;
    align-items: center;
}

.th-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .42rem .86rem;
    border-radius: 999px;
    font-size: .74rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #d8f6ea;
    background: rgba(47, 214, 168, .13);
    border: 1px solid rgba(47, 214, 168, .32);
    backdrop-filter: blur(6px);
}

.th-eyebrow i { color: var(--v-mint); font-size: .8rem; }

/* Les titres sont préfixés par body.training-app : training.css impose
   `body.training-app h1..h6 { color: var(--t-navy-deep) }`, de spécificité
   (0,1,2), qui écraserait un simple `.th-hero h1` (0,1,1). Sans ce préfixe,
   le titre du hero s'affiche en bleu foncé sur fond de nuit. */
body.training-app .th-hero h1 {
    margin: 1.1rem 0 .9rem;
    font-family: var(--t-font-heading, "Poppins", sans-serif);
    font-weight: 700;
    font-size: clamp(2rem, 3.6vw, 3.05rem);
    line-height: 1.06;
    letter-spacing: -.025em;
    color: #ffffff;
    text-wrap: balance;
}

/* Le mot d'accroche est souligné d'un trait d'or dessiné. */
body.training-app .th-hero h1 em {
    font-style: normal;
    position: relative;
    color: var(--v-amber-soft);
    white-space: nowrap;
}

body.training-app .th-hero h1 em::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -.12em;
    height: .16em;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--v-amber), var(--v-coral));
    opacity: .85;
    transform: scaleX(0);
    transform-origin: left;
    animation: th-underline .9s var(--v-ease) .35s forwards;
}

.th-hero-sub {
    max-width: 46ch;
    font-size: 1.02rem;
    line-height: 1.62;
    color: rgba(226, 238, 250, .82);
    margin: 0;
}

.th-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .7rem;
    margin-top: 1.7rem;
}

.th-btn {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    padding: .82rem 1.35rem;
    border-radius: 12px;
    font-size: .94rem;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid transparent;
    transition: transform .22s var(--v-ease), box-shadow .22s var(--v-ease), background .22s var(--v-ease);
    will-change: transform;
}

.th-btn i { font-size: .92rem; }

.th-btn--gold {
    color: #24160a;
    background: linear-gradient(135deg, var(--v-amber-soft), var(--v-amber));
    box-shadow: 0 14px 30px -14px rgba(245, 181, 68, .85), inset 0 1px 0 rgba(255, 255, 255, .55);
}

.th-btn--gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 40px -16px rgba(245, 181, 68, .9), inset 0 1px 0 rgba(255, 255, 255, .7);
    color: #1b1005;
}

.th-btn--glass {
    color: #eaf4ff;
    background: rgba(255, 255, 255, .08);
    border-color: rgba(255, 255, 255, .22);
    backdrop-filter: blur(8px);
}

.th-btn--glass:hover {
    background: rgba(255, 255, 255, .15);
    border-color: rgba(255, 255, 255, .38);
    transform: translateY(-2px);
    color: #fff;
}

.th-btn--ghost {
    color: rgba(234, 244, 255, .85);
    background: transparent;
}

.th-btn--ghost:hover { color: #fff; background: rgba(255, 255, 255, .07); }

.th-assurance {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem 1.25rem;
    list-style: none;
    padding: 0;
    margin: 1.5rem 0 0;
    font-size: .82rem;
    color: rgba(210, 228, 246, .75);
}

.th-assurance li { display: inline-flex; align-items: center; gap: .4rem; }
.th-assurance i { color: var(--v-mint); font-size: .78rem; }

/* --- billet d'embarquement --- */

.th-pass {
    position: relative;
    border-radius: 18px;
    background: linear-gradient(155deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, .05));
    border: 1px solid rgba(255, 255, 255, .2);
    backdrop-filter: blur(14px);
    box-shadow: 0 26px 60px -30px rgba(0, 0, 0, .8), inset 0 1px 0 rgba(255, 255, 255, .22);
    overflow: hidden;
    transform: rotate(-.7deg);
    transition: transform .4s var(--v-ease);
}

.th-pass:hover { transform: rotate(0) translateY(-4px); }

.th-pass-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .8rem;
    padding: .85rem 1.1rem;
    background: linear-gradient(100deg, rgba(245, 181, 68, .2), rgba(255, 111, 94, .12));
    border-bottom: 1px dashed rgba(255, 255, 255, .28);
    font-size: .76rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #fff;
}

.th-pass-head strong { color: var(--v-amber-soft); font-weight: 700; }

.th-pass-code {
    font-family: ui-monospace, "SF Mono", Menlo, monospace;
    font-size: .7rem;
    letter-spacing: .08em;
    color: rgba(255, 255, 255, .72);
}

.th-pass-brand {
    font-size: .76rem;
    letter-spacing: .13em;
    font-weight: 500;
}

.th-pass-brand strong { color: var(--v-amber-soft); font-weight: 700; }

.th-pass-name { font-size: .85rem; font-weight: 500; }

.th-pass-body { padding: 1rem 1.1rem .6rem; }

.th-pass-label {
    margin: 0 0 .55rem;
    font-size: .68rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: rgba(226, 238, 250, .6);
}

.th-pass-list { list-style: none; margin: 0; padding: 0; }

.th-pass-list li {
    display: grid;
    grid-template-columns: 2.9rem minmax(0, 1fr) auto;
    align-items: center;
    gap: .6rem;
    padding: .5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, .09);
    font-size: .85rem;
    color: #edf5ff;
}

.th-pass-list li:last-child { border-bottom: 0; }

.th-pass-abbr {
    display: inline-grid;
    place-items: center;
    height: 1.55rem;
    border-radius: 6px;
    font-family: ui-monospace, Menlo, monospace;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .06em;
    color: #04101d;
    background: linear-gradient(135deg, var(--v-mint), #7ef0cd);
}

.th-pass-time {
    font-family: ui-monospace, Menlo, monospace;
    font-size: .76rem;
    color: var(--v-amber-soft);
}

.th-pass-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .8rem;
    padding: .7rem 1.1rem .9rem;
    border-top: 1px dashed rgba(255, 255, 255, .22);
    font-size: .72rem;
    color: rgba(226, 238, 250, .7);
}

.th-pass-stamp {
    flex: 0 0 auto;
    padding: .22rem .6rem;
    border: 1.5px solid rgba(255, 111, 94, .8);
    border-radius: 6px;
    color: #ffb3a9;
    font-family: ui-monospace, Menlo, monospace;
    font-size: .64rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    transform: rotate(-6deg);
    opacity: .9;
}

/* Perforations du billet. */
.th-pass::before,
.th-pass::after {
    content: "";
    position: absolute;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #071f3a;
    top: 50%;
    transform: translateY(-50%);
}

.th-pass::before { left: -11px; }
.th-pass::after { right: -11px; }

/* --- bande de destinations drapeaux --- */

.th-flags {
    position: relative;
    z-index: 2;
    margin-top: 2.1rem;
    padding-top: 1.1rem;
    border-top: 1px solid rgba(255, 255, 255, .12);
    display: flex;
    align-items: center;
    gap: .65rem;
    flex-wrap: wrap;
    font-size: .78rem;
    color: rgba(214, 232, 249, .7);
}

.th-flag-chip {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .3rem .7rem .3rem .42rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(255, 255, 255, .14);
    font-weight: 500;
}

.th-flag-chip svg { width: 20px; height: 14px; border-radius: 3px; display: block; }

.th-flags-note {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    letter-spacing: .02em;
}

.th-flags-note i { color: var(--v-amber); }

/* ---------------------------------------------------------------------------
   2. TITRES DE SECTION — plus de présence
   --------------------------------------------------------------------------- */

.training-home .training-section-title {
    position: relative;
    font-size: 1.42rem;
    letter-spacing: -.015em;
    padding-bottom: .55rem;
    margin-bottom: .9rem;
}

.training-home .training-section-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 54px;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--v-amber), var(--v-coral));
}

/* ---------------------------------------------------------------------------
   3. PROJETS — cartes d'aiguillage
   --------------------------------------------------------------------------- */

.th-projects {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
    gap: 1rem;
}

.th-project {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 1.35rem 1.25rem 1.2rem;
    border-radius: 18px;
    background: #fff;
    border: 1px solid #e6edf6;
    box-shadow: 0 2px 4px rgba(12, 27, 42, .04), 0 18px 40px -24px rgba(12, 27, 42, .3);
    overflow: hidden;
    transition: transform .28s var(--v-ease), box-shadow .28s var(--v-ease), border-color .28s var(--v-ease);
}

.th-project::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 4px;
    background: linear-gradient(90deg, var(--v-deep), var(--v-mint));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .35s var(--v-ease);
}

.th-project:hover {
    transform: translateY(-5px);
    border-color: #cfe0f2;
    box-shadow: 0 6px 10px rgba(12, 27, 42, .05), 0 30px 60px -30px rgba(12, 27, 42, .42);
}

.th-project:hover::before { transform: scaleX(1); }

.th-project-icon {
    display: inline-grid;
    place-items: center;
    width: 2.6rem;
    height: 2.6rem;
    border-radius: 13px;
    margin-bottom: .85rem;
    font-size: 1rem;
    color: #fff;
    background: linear-gradient(140deg, var(--v-deep), #1b5b8a);
    box-shadow: 0 10px 22px -12px rgba(10, 43, 77, .8);
}

.th-project:nth-child(2) .th-project-icon { background: linear-gradient(140deg, #7a3fb0, #b06ce0); }
.th-project:nth-child(3) .th-project-icon { background: linear-gradient(140deg, #b5591f, #f0954b); }
.th-project:nth-child(4) .th-project-icon { background: linear-gradient(140deg, #15734c, var(--v-mint)); }

body.training-app .th-project h3 {
    margin: 0 0 .35rem;
    font-size: 1.06rem;
    font-weight: 700;
    color: var(--v-ink);
}

.th-project p {
    margin: 0 0 .8rem;
    font-size: .86rem;
    line-height: 1.55;
    color: #5a6b80;
}

.th-project-countries {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-size: .76rem;
    font-weight: 600;
    color: var(--v-deep);
    margin-bottom: 1rem;
}

.th-project-foot { margin-top: auto; }

.th-link {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    font-size: .85rem;
    font-weight: 600;
    color: var(--v-deep);
    text-decoration: none;
    padding-bottom: 2px;
    border-bottom: 1.5px solid rgba(10, 43, 77, .2);
    transition: border-color .2s, color .2s, gap .2s;
}

.th-link:hover { color: #0b3a63; border-color: var(--v-amber); gap: .7rem; }

.th-project--unknown {
    background: linear-gradient(150deg, #f3f9ff, #e9f3fb);
    border-style: dashed;
    border-color: #bfd8ee;
}

/* ---------------------------------------------------------------------------
   4. HUB — les quatre volets
   --------------------------------------------------------------------------- */

.th-hub {
    margin-top: 1.6rem;
    padding: 1.8rem 1.6rem 1.7rem;
    border-radius: 22px;
    background:
        radial-gradient(700px 300px at 92% -10%, rgba(245, 181, 68, .14), transparent 62%),
        linear-gradient(155deg, #061a2f, #0a2b4d 62%, #123a63);
    box-shadow: 0 34px 70px -38px rgba(6, 26, 47, .8);
    color: #eaf2fb;
    overflow: hidden;
    position: relative;
}

.th-hub::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, .16) 1px, transparent 1px);
    background-size: 22px 22px;
    mask-image: linear-gradient(180deg, #000, transparent 70%);
    -webkit-mask-image: linear-gradient(180deg, #000, transparent 70%);
    opacity: .35;
    pointer-events: none;
}

.th-hub-head { position: relative; z-index: 1; margin-bottom: 1.35rem; }

body.training-app .th-hub-head h3 {
    margin: 0 0 .4rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: -.02em;
}

.th-hub-head p {
    margin: 0;
    max-width: 62ch;
    font-size: .9rem;
    line-height: 1.6;
    color: rgba(219, 235, 250, .78);
}

.th-hub-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .9rem;
}

.th-volet {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 1.15rem 1.05rem 1rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, .055);
    border: 1px solid rgba(255, 255, 255, .13);
    backdrop-filter: blur(10px);
    text-decoration: none;
    color: inherit;
    overflow: hidden;
    transition: transform .3s var(--v-ease), background .3s var(--v-ease), border-color .3s var(--v-ease);
}

.th-volet:hover {
    transform: translateY(-6px);
    background: rgba(255, 255, 255, .1);
    border-color: rgba(245, 181, 68, .5);
    color: inherit;
}

/* Volet pas encore ouvert : aucune affordance de lien, aucune promesse. */
.th-volet--soon { cursor: default; }

.th-volet--soon:hover {
    transform: none;
    background: rgba(255, 255, 255, .055);
    border-color: rgba(255, 255, 255, .13);
}

.th-volet--soon .th-volet-cta { color: rgba(214, 232, 249, .62); }

/* Les volets ne portent plus de numéro : ils ne s'enchaînent pas. Le badge
   repasse donc dans le flux, calé à gauche, et annonce la condition d'accès
   réelle (gratuit / formule requise / bientôt). */
.th-volet .th-badge {
    position: static;
    align-self: flex-start;
    margin-bottom: .6rem;
}

body.training-app .th-volet h4 {
    margin: 0 0 .45rem;
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.25;
}

.th-volet p {
    margin: 0 0 .85rem;
    font-size: .8rem;
    line-height: 1.5;
    color: rgba(214, 232, 249, .75);
}

.th-volet-meta {
    display: flex;
    align-items: center;
    gap: .4rem;
    font-size: .74rem;
    font-weight: 600;
    color: var(--v-amber-soft);
    margin-bottom: 1rem;
}

.th-volet-cta {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-size: .8rem;
    font-weight: 600;
    color: #fff;
    padding-top: .7rem;
    border-top: 1px solid rgba(255, 255, 255, .12);
}

.th-volet:hover .th-volet-cta i { transform: translateX(3px); }
.th-volet-cta i { transition: transform .25s var(--v-ease); }

.th-badge {
    position: absolute;
    top: .8rem;
    right: .8rem;
    padding: .16rem .5rem;
    border-radius: 999px;
    font-size: .62rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.th-badge--free { background: rgba(47, 214, 168, .16); color: #7ef0cd; border: 1px solid rgba(47, 214, 168, .35); }
.th-badge--paid { background: rgba(245, 181, 68, .16); color: var(--v-amber-soft); border: 1px solid rgba(245, 181, 68, .4); }
.th-badge--soon { background: rgba(255, 255, 255, .08); color: rgba(219, 235, 250, .8); border: 1px solid rgba(255, 255, 255, .22); }

.th-hub-note {
    position: relative;
    z-index: 1;
    margin: 1rem 0 0;
    font-size: .74rem;
    color: rgba(214, 232, 249, .55);
}

/* ---------------------------------------------------------------------------
   5. DESTINATIONS — drapeau + monument
   --------------------------------------------------------------------------- */

.th-dest-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 0 !important;
    overflow: hidden;
    border-radius: 18px;
    border: 1px solid #e2ebf5 !important;
    background: #fff;
    box-shadow: 0 2px 4px rgba(12, 27, 42, .04), 0 18px 40px -26px rgba(12, 27, 42, .3);
    transition: transform .28s var(--v-ease), box-shadow .28s var(--v-ease);
}

.th-dest-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 14px rgba(12, 27, 42, .05), 0 34px 64px -32px rgba(12, 27, 42, .45);
}

/* Destination sans aucun test publié : la carte reste visible (elle informe
   d'une destination couverte) mais ne doit pas rivaliser avec une carte qui
   contient du contenu jouable. */
.th-dest-card.is-empty {
    opacity: .78;
}

.th-dest-card.is-empty:hover {
    transform: none;
    box-shadow: 0 2px 4px rgba(12, 27, 42, .04), 0 18px 40px -26px rgba(12, 27, 42, .3);
}

/* Le fond du bandeau est piloté par deux variables : la vue choisit la
   teinte de la destination (nuit pour l'Amérique, indigo pour l'Europe,
   vert pour l'Océanie) sans multiplier les classes. */
.th-dest-visual {
    position: relative;
    height: 96px;
    flex: 0 0 auto;
    overflow: hidden;
    background: linear-gradient(150deg, var(--v-dest-a, #0a2b4d), var(--v-dest-b, #16386b));
}

/* Une teinte par zone géographique : les cartes d'un même continent se
   répondent, sans devenir toutes identiques. */
.th-dest-visual--amerique-nord { --v-dest-a: #0a2b4d; --v-dest-b: #16386b; }
.th-dest-visual--europe { --v-dest-a: #16305c; --v-dest-b: #2a4b86; }
.th-dest-visual--oceanie { --v-dest-a: #123f4a; --v-dest-b: #1f6d63; }
.th-dest-visual--international { --v-dest-a: #1a3f36; --v-dest-b: #2a6e57; }

.th-dest-visual svg.th-monument {
    position: absolute;
    right: -6%;
    bottom: -8px;
    width: 62%;
    height: auto;
    opacity: .55;
}

.th-dest-flag {
    position: absolute;
    top: .7rem;
    left: .8rem;
    width: 30px;
    height: 20px;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .3);
    overflow: hidden;
    z-index: 2;
}

.th-dest-flag svg { display: block; width: 100%; height: 100%; }

.th-dest-label {
    position: absolute;
    left: .8rem;
    bottom: .6rem;
    z-index: 2;
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: -.01em;
    text-shadow: 0 2px 10px rgba(0, 0, 0, .5);
}

/* ---------------------------------------------------------------------------
   6. ÉPREUVES — cartes plus tactiles
   --------------------------------------------------------------------------- */

.th-epreuve-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: .85rem;
}

.th-epreuve {
    display: flex;
    flex-direction: column;
    gap: .3rem;
    padding: 1.1rem 1.05rem;
    border-radius: 16px;
    background: #fff;
    border: 1px solid #e6edf6;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 14px 30px -24px rgba(12, 27, 42, .35);
    transition: transform .25s var(--v-ease), box-shadow .25s var(--v-ease), border-color .25s;
}

.th-epreuve:hover {
    transform: translateY(-4px);
    border-color: #cfe0f2;
    box-shadow: 0 24px 48px -28px rgba(12, 27, 42, .45);
    color: inherit;
}

.th-epreuve-abbr {
    align-self: flex-start;
    padding: .18rem .5rem;
    border-radius: 6px;
    font-family: ui-monospace, Menlo, monospace;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .08em;
    color: #fff;
    background: linear-gradient(135deg, var(--v-deep), #1b5b8a);
}

.th-epreuve-name { font-size: .92rem; font-weight: 600; color: var(--v-ink); margin-top: .3rem; }

.th-epreuve-time {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    font-size: .76rem;
    color: #6a7c91;
}

.th-epreuve-time i { color: var(--v-amber); }

/* ---------------------------------------------------------------------------
   6bis. RESTE DE LA PAGE
   ---------------------------------------------------------------------------
   Portée « toute la page » : les composants partagés (alertes, chiffres,
   épreuves, règles, formules, catalogue) reçoivent une surcouche de relief.
   Aucune règle de training.css n'est modifiée : tout est scopé `.training-home`
   et chargé après, donc gagnant à spécificité équivalente.
   --------------------------------------------------------------------------- */

/* Bandeau de lancement : une note de carnet, pas une alerte système. */
.training-home .training-alert {
    border-radius: 14px;
    border: 1px solid #e8dcc4;
    border-left: 4px solid var(--v-amber);
    background: linear-gradient(120deg, #fffaf0, #fdf4e3);
    color: #4b3a1c;
    box-shadow: 0 10px 24px -20px rgba(75, 58, 28, .5);
}

.training-home .training-alert i { color: #c07f14; }

/* Chiffres de preuve : la valeur devient une étiquette de bagage. */
.training-home .training-stats { gap: 1rem; }

.training-home .training-stat {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    border: 1px solid #e6edf6;
    background: #fff;
    box-shadow: 0 2px 4px rgba(12, 27, 42, .04), 0 16px 34px -26px rgba(12, 27, 42, .35);
    transition: transform .25s var(--v-ease), box-shadow .25s var(--v-ease);
}

.training-home .training-stat::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--v-amber), var(--v-coral));
}

.training-home .training-stat:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 18px rgba(12, 27, 42, .06), 0 26px 48px -28px rgba(12, 27, 42, .4);
}

.training-home .training-stat-value { font-size: 1.9rem; color: var(--v-deep); }
.training-home .training-stat-label i { color: var(--v-coral); }

/* Régions : un intertitre de chapitre. */
.training-home .training-region-title {
    font-size: .78rem;
    letter-spacing: .16em;
    color: #2a4a6b;
}

/* Destinations : le corps respire sous le bandeau visuel pleine largeur. */
.training-home .th-dest-inner {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    padding: 1rem 1.15rem 1rem;
}

.training-home .th-dest-card .training-dest-exam-name { font-weight: 600; }

/* Le bandeau porte déjà le nom du pays : l'en-tête de corps ne garde que
   le compteur de tests, aligné à droite. */
.training-home .th-dest-card .training-dest-head {
    justify-content: flex-end;
    margin-bottom: .45rem;
    padding-bottom: .55rem;
}

/* Le catalogue réel ne contient aujourd'hui qu'une destination (le Canada).
   La grille d'origine, en `auto-fill minmax(260px, 1fr)`, laisserait alors
   une carte de 290 px collée à gauche et trois colonnes vides. Une carte
   unique passe donc en colonne centrée de largeur confortable ; dès deux
   destinations, la grille d'origine reprend la main. */
.training-home .training-dest-grid:has(> :only-child) {
    grid-template-columns: minmax(0, 440px);
    justify-content: center;
}

/* Épreuves : cartes plus tactiles, sans la barre latérale bleue d'origine. */
.training-home .training-epreuve-grid { gap: .85rem; }

.training-home .training-epreuve-card {
    border-radius: 16px;
    border: 1px solid #e6edf6 !important;
    box-shadow: 0 14px 30px -24px rgba(12, 27, 42, .35);
    transition: transform .25s var(--v-ease), box-shadow .25s var(--v-ease), border-color .25s;
}

.training-home .training-epreuve-card:hover {
    transform: translateY(-4px);
    border-color: #cfe0f2 !important;
    box-shadow: 0 24px 48px -28px rgba(12, 27, 42, .45);
}

/* Règles et formules : même famille de carte, mêmes ombres. */
.training-home .training-card {
    border-radius: 18px;
    border: 1px solid #e6edf6;
    box-shadow: 0 2px 4px rgba(12, 27, 42, .04), 0 20px 44px -30px rgba(12, 27, 42, .38);
}

.training-home .training-rule-list li i { color: var(--v-mint); }

.training-home .training-plan-card {
    border-radius: 18px;
    border: 1px solid #e6edf6;
    background: #fff;
    box-shadow: 0 2px 4px rgba(12, 27, 42, .04), 0 20px 44px -30px rgba(12, 27, 42, .38);
    transition: transform .25s var(--v-ease), box-shadow .25s var(--v-ease), border-color .25s;
}

.training-home .training-plan-card:hover {
    transform: translateY(-4px);
    border-color: #e3d3ae;
    box-shadow: 0 26px 52px -30px rgba(12, 27, 42, .45);
}

.training-home .training-plan-price { color: var(--v-deep); }
.training-home .training-plan-price small { color: #b97d16; }

/* Catalogue : chaque test garde sa fiche, avec la même profondeur. */
.training-home .training-exam-card {
    border-radius: 18px;
    border: 1px solid #e6edf6;
    box-shadow: 0 2px 4px rgba(12, 27, 42, .04), 0 20px 44px -30px rgba(12, 27, 42, .38);
}

.training-home .training-exam-head h3 { letter-spacing: -.01em; }

/* Ruban de monuments : translation continue, jamais de saut de boucle. */
@keyframes th-pan {
    from { transform: translate3d(0, 0, 0); }
    to   { transform: translate3d(-50%, 0, 0); }
}

/* ---------------------------------------------------------------------------
   7. ANIMATIONS
   --------------------------------------------------------------------------- */

@keyframes th-drift {
    from { transform: translate3d(0, 0, 0) scale(1); }
    to   { transform: translate3d(-38px, 22px, 0) scale(1.12); }
}

@keyframes th-float {
    0%, 100% { transform: rotate(8deg) translateY(0); }
    50%      { transform: rotate(8deg) translateY(-6px); }
}

@keyframes th-underline {
    to { transform: scaleX(1); }
}

@keyframes th-rise {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}

.th-rise { animation: th-rise .7s var(--v-ease) both; }
.th-rise--1 { animation-delay: .05s; }
.th-rise--2 { animation-delay: .15s; }
.th-rise--3 { animation-delay: .25s; }
.th-rise--4 { animation-delay: .35s; }

/* ---------------------------------------------------------------------------
   8. RESPONSIVE
   --------------------------------------------------------------------------- */

@media (max-width: 991.98px) {
    .th-hero { padding: 2.2rem 1.6rem 1.9rem; }
    .th-hero-inner { grid-template-columns: 1fr; gap: 1.8rem; }
    .th-skyline { width: 96%; height: 112px; opacity: .3; }
    .th-hub-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .th-pass { transform: none; max-width: 460px; }
}

@media (max-width: 575.98px) {
    .th-hero { padding: 1.8rem 1.15rem 1.6rem; border-radius: 20px; }
    .th-hero h1 { font-size: 1.72rem; }
    .th-hero-sub { font-size: .93rem; }
    .th-hero-actions .th-btn { flex: 1 1 100%; justify-content: center; }
    .th-hub { padding: 1.3rem 1.05rem; }
    .th-hub-grid { grid-template-columns: 1fr; }
    .th-projects { grid-template-columns: 1fr; }
    .th-flags { font-size: .72rem; }
    .th-flight { display: none; }
    .th-skyline { height: 86px; opacity: .24; }
    .th-skyline-item { width: 132px; }
    .th-dest-visual { height: 88px; }
}

@media (prefers-reduced-motion: reduce) {
    .th-aurora, .th-flight::after, .th-hero h1 em::after, .th-rise { animation: none !important; }
    .th-skyline-track { animation: none !important; transform: none !important; }
    .th-project, .th-volet, .th-dest-card, .th-epreuve, .th-pass { transition: none; }
    .th-hero h1 em::after { transform: scaleX(1); }
}
