/* ==========================================================================
   Qiblatranslog — accueil par pays (accueil.php?pays=)
   ========================================================================== */

.qh-page { --qh-radius: 1.15rem; }

/* ---------- Hero ---------- */
.qh-hero {
    position: relative;
    min-height: clamp(520px, 82vh, 760px);
    display: flex;
    align-items: stretch;
    color: #fff;
    overflow: hidden;
    margin-top: -4.6rem;
    padding-top: 4.6rem;
    background: #0a1628;
}
@media (min-width: 992px) {
    .qh-hero { margin-top: -7.6rem; padding-top: 7.6rem; }
}

.qh-hero__media {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.qh-hero__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 35%;
    transform: scale(1.02);
    filter: saturate(1.08) contrast(1.05);
}
.qh-hero__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(180deg, rgba(10, 22, 40, .55) 0%, rgba(10, 22, 40, .25) 35%, rgba(10, 22, 40, .82) 100%),
        linear-gradient(90deg, rgba(10, 22, 40, .94) 0%, rgba(10, 22, 40, .72) 42%, rgba(10, 22, 40, .15) 72%, transparent 100%);
}
.qh-hero__accent {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: .35rem;
    z-index: 3;
    background: linear-gradient(180deg, var(--country-color, var(--color-secondary)), var(--color-accent));
}

.qh-hero__inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: end;
    padding: 2.5rem 0 3.5rem;
    width: 100%;
}
@media (min-width: 992px) {
    .qh-hero__inner {
        grid-template-columns: 1.15fr .85fr;
        align-items: center;
        padding: 3.5rem 0 4rem;
        min-height: calc(clamp(520px, 82vh, 760px) - 7.6rem);
    }
}

.qh-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    padding: .45rem .9rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .18);
    backdrop-filter: blur(8px);
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    margin-bottom: 1.1rem;
}
.qh-hero__eyebrow .country-flag {
    border-radius: 3px;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, .25);
}

.qh-hero__title {
    color: #fff;
    font-size: clamp(2rem, 4.5vw, 3.35rem);
    line-height: 1.08;
    letter-spacing: -.02em;
    text-transform: none;
    max-width: 14ch;
}
.qh-hero__title em {
    font-style: normal;
    color: var(--color-accent-light);
}
.qh-hero__title .qh-hero__accent-word {
    display: block;
    margin-top: .15rem;
    color: var(--color-accent);
    font-size: .92em;
}

.qh-hero__lead {
    margin: 1rem 0 0;
    max-width: 38rem;
    color: rgba(255, 255, 255, .88);
    font-size: clamp(1rem, 1.6vw, 1.12rem);
    line-height: 1.65;
}

.qh-hero__trust {
    display: flex;
    flex-wrap: wrap;
    gap: .55rem;
    margin-top: 1.35rem;
}
.qh-hero__trust span {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .35rem .75rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .14);
    font-size: .78rem;
    font-weight: 600;
    color: rgba(255, 255, 255, .92);
}
.qh-hero__trust span::before {
    content: "";
    width: .45rem;
    height: .45rem;
    border-radius: 50%;
    background: var(--color-accent);
}

.qh-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: .85rem;
    margin-top: 1.75rem;
}
.qh-hero__actions .btn {
    padding: .95rem 1.6rem;
    font-size: .88rem;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.qh-hero__panel {
    display: none;
}
@media (min-width: 992px) {
    .qh-hero__panel {
        display: block;
        padding: 1.35rem;
        border-radius: var(--qh-radius);
        background: rgba(255, 255, 255, .08);
        border: 1px solid rgba(255, 255, 255, .16);
        backdrop-filter: blur(14px);
        box-shadow: 0 24px 48px rgba(0, 0, 0, .22);
    }
}
.qh-hero__panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-bottom: .85rem;
    border-bottom: 1px solid rgba(255, 255, 255, .12);
}
.qh-hero__panel-head strong {
    display: block;
    font-size: 1rem;
    color: #fff;
}
.qh-hero__panel-head small {
    display: block;
    margin-top: .15rem;
    color: rgba(255, 255, 255, .65);
    font-size: .78rem;
}
.qh-hero__stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: .85rem;
}
.qh-hero__stat {
    padding: .85rem;
    border-radius: .85rem;
    background: rgba(10, 22, 40, .35);
    border: 1px solid rgba(255, 255, 255, .08);
}
.qh-hero__stat strong {
    display: block;
    font-family: var(--font-display);
    font-size: 1.55rem;
    color: var(--color-accent-light);
    line-height: 1.1;
}
.qh-hero__stat span {
    display: block;
    margin-top: .2rem;
    font-size: .75rem;
    color: rgba(255, 255, 255, .72);
    line-height: 1.35;
}

/* ---------- Barre pays ---------- */
.qh-local-wrap {
    position: relative;
    z-index: 5;
    margin-top: -2.75rem;
    margin-bottom: .5rem;
}
.qh-local {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 1.1rem 1.35rem;
    border-radius: var(--qh-radius);
    background: #fff;
    border: 1px solid var(--color-border);
    box-shadow: 0 16px 40px rgba(10, 22, 40, .08);
}
@media (min-width: 768px) {
    .qh-local {
        grid-template-columns: auto 1fr auto;
        align-items: center;
    }
}
.qh-local__brand {
    display: flex;
    align-items: center;
    gap: .75rem;
}
.qh-local__brand .country-flag {
    width: 36px;
    height: 24px;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .12);
}
.qh-local__brand strong {
    display: block;
    font-size: .95rem;
    color: var(--color-primary);
}
.qh-local__brand span {
    display: block;
    font-size: .78rem;
    color: var(--color-muted);
}
.qh-local__meta {
    display: flex;
    flex-wrap: wrap;
    gap: .65rem 1.25rem;
    font-size: .88rem;
    color: var(--color-muted);
}
.qh-local__meta a {
    color: var(--color-primary);
    font-weight: 600;
}
.qh-local__meta a:hover { color: var(--color-secondary); }
.qh-local__cta .btn {
    padding: .65rem 1.1rem;
    font-size: .82rem;
    white-space: nowrap;
}

/* ---------- Sections communes ---------- */
.qh-section { padding: 5rem 0; }
.qh-section--alt { background: var(--color-surface, #f7f8fa); }
.qh-section--dark {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    color: #fff;
}
.qh-head {
    max-width: 42rem;
    margin-bottom: 2.75rem;
}
.qh-head--center {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}
.qh-head .eyebrow { margin-bottom: .65rem; }
.qh-head h2 { font-size: clamp(1.65rem, 2.8vw, 2.35rem); }
.qh-head p {
    margin: .75rem 0 0;
    color: var(--color-muted);
    font-size: 1.02rem;
}

/* ---------- About ---------- */
.qh-about {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
}
@media (min-width: 992px) {
    .qh-about { grid-template-columns: .95fr 1.05fr; gap: 3rem; }
}
.qh-about__visual {
    position: relative;
    border-radius: calc(var(--qh-radius) + .25rem);
    overflow: hidden;
    min-height: 320px;
    box-shadow: var(--shadow-card);
}
.qh-about__visual img {
    width: 100%;
    height: 100%;
    min-height: 320px;
    object-fit: cover;
}
.qh-about__visual::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(10, 22, 40, .55) 100%);
}
.qh-about__badge {
    position: absolute;
    left: 1rem;
    bottom: 1rem;
    z-index: 2;
    padding: .65rem .9rem;
    border-radius: .75rem;
    background: rgba(255, 255, 255, .92);
    font-size: .78rem;
    font-weight: 700;
    color: var(--color-primary);
}
.qh-about__cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: .85rem;
    margin-top: 1.5rem;
}
.qh-about__card {
    padding: 1rem;
    border-radius: .9rem;
    background: #fff;
    border: 1px solid var(--color-border);
    box-shadow: 0 4px 16px rgba(10, 22, 40, .04);
}
.qh-about__card h4 {
    margin: 0 0 .35rem;
    font-size: .82rem;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--country-color, var(--color-secondary));
}
.qh-about__card p {
    margin: 0;
    font-size: .86rem;
    color: var(--color-muted);
    line-height: 1.45;
}

/* ---------- Services ---------- */
.qh-services {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}
@media (max-width: 900px) { .qh-services { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .qh-services { grid-template-columns: 1fr; } }

.qh-svc {
    display: flex;
    flex-direction: column;
    border-radius: var(--qh-radius);
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--color-border);
    box-shadow: 0 8px 24px rgba(10, 22, 40, .05);
    transition: transform .2s ease, box-shadow .2s ease;
    color: inherit;
}
.qh-svc:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 36px rgba(10, 22, 40, .1);
}
.qh-svc__media {
    position: relative;
    height: 148px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
}
.qh-svc__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: .92;
    transition: transform .35s ease;
}
.qh-svc:hover .qh-svc__media img { transform: scale(1.05); }
.qh-svc__media .icon-tile {
    position: absolute;
    right: .85rem;
    bottom: .85rem;
    background: rgba(255, 255, 255, .95);
    box-shadow: 0 8px 20px rgba(0, 0, 0, .15);
}
.qh-svc__body {
    padding: 1.15rem 1.15rem 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.qh-svc__body h3 {
    font-size: 1.02rem;
    margin-bottom: .45rem;
}
.qh-svc__body p {
    margin: 0;
    flex: 1;
    font-size: .88rem;
    color: var(--color-muted);
    line-height: 1.5;
}
.qh-svc__link {
    margin-top: .85rem;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--country-color, var(--color-secondary));
}

/* ---------- Modes ---------- */
.qh-modes {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}
@media (max-width: 900px) { .qh-modes { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .qh-modes { grid-template-columns: 1fr; } }

.qh-mode {
    padding: 1.35rem 1.15rem;
    border-radius: var(--qh-radius);
    background: #fff;
    border: 1px solid var(--color-border);
    text-align: center;
    transition: border-color .2s ease, transform .2s ease;
    color: inherit;
}
.qh-mode:hover {
    border-color: rgba(var(--country-color-rgb, 196, 92, 38), .35);
    transform: translateY(-3px);
}
.qh-mode .icon-tile { margin: 0 auto .85rem; }
.qh-mode h3 { font-size: .98rem; margin-bottom: .35rem; }
.qh-mode p {
    margin: 0;
    font-size: .84rem;
    color: var(--color-muted);
}

/* ---------- Corridor timeline ---------- */
.qh-corridor {
    position: relative;
    border-radius: calc(var(--qh-radius) + .5rem);
    overflow: hidden;
    padding: 2.5rem 1.5rem;
    color: #fff;
}
.qh-corridor__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.qh-corridor__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.05);
}
.qh-corridor__bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(10, 22, 40, .92) 0%, rgba(10, 22, 40, .78) 100%);
}
.qh-corridor__inner { position: relative; z-index: 1; }
.qh-corridor__head {
    max-width: 36rem;
    margin-bottom: 2rem;
}
.qh-corridor__head h2 { color: #fff; }
.qh-corridor__head p { color: rgba(255, 255, 255, .78); margin: .65rem 0 0; }

.qh-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}
@media (max-width: 900px) { .qh-steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .qh-steps { grid-template-columns: 1fr; } }

.qh-step {
    padding: 1.15rem;
    border-radius: .95rem;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .14);
    backdrop-filter: blur(6px);
}
.qh-step__num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: var(--color-accent);
    color: var(--color-primary);
    font-size: .78rem;
    font-weight: 800;
    margin-bottom: .65rem;
}
.qh-step h3 {
    color: #fff;
    font-size: .98rem;
    margin-bottom: .35rem;
}
.qh-step p {
    margin: 0;
    font-size: .84rem;
    color: rgba(255, 255, 255, .75);
    line-height: 1.45;
}

/* ---------- Stats ---------- */
.qh-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    text-align: center;
}
@media (max-width: 768px) { .qh-stats { grid-template-columns: repeat(2, 1fr); } }
.qh-stat strong {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    color: var(--color-accent-light);
    line-height: 1;
}
.qh-stat span {
    display: block;
    margin-top: .4rem;
    font-size: .88rem;
    opacity: .82;
}

/* ---------- Why us ---------- */
.qh-why {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
}
@media (min-width: 992px) {
    .qh-why { grid-template-columns: .9fr 1.1fr; }
}
.qh-why__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}
@media (max-width: 600px) { .qh-why__grid { grid-template-columns: 1fr; } }
.qh-why__item {
    padding: 1.15rem;
    border-radius: var(--qh-radius);
    background: #fff;
    border: 1px solid var(--color-border);
}
.qh-why__item h3 { font-size: .98rem; margin: .75rem 0 .35rem; }
.qh-why__item p {
    margin: 0;
    font-size: .86rem;
    color: var(--color-muted);
}

/* ---------- FAQ ---------- */
.qh-faq {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}
@media (max-width: 768px) { .qh-faq { grid-template-columns: 1fr; } }
.qh-faq__item {
    padding: 1.25rem;
    border-radius: var(--qh-radius);
    background: #fff;
    border: 1px solid var(--color-border);
    border-left: 3px solid var(--country-color, var(--color-secondary));
}
.qh-faq__item h3 {
    font-size: .98rem;
    margin: 0 0 .5rem;
}
.qh-faq__item p {
    margin: 0;
    font-size: .88rem;
    color: var(--color-muted);
    line-height: 1.55;
}

/* ---------- CTA ---------- */
.qh-cta {
    position: relative;
    overflow: hidden;
    padding: 4.5rem 0;
    text-align: center;
    color: #fff;
    background: #0a1628;
    isolation: isolate;
}

.qh-cta__media {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.qh-cta__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 42%;
    transform: scale(1.04);
    transform-origin: center center;
    filter: saturate(1.1) contrast(1.06);
    animation: qh-cta-zoom 18s ease-in-out infinite alternate;
    will-change: transform;
}

@keyframes qh-cta-zoom {
    0% {
        transform: scale(1.04);
    }
    100% {
        transform: scale(1.16);
    }
}

.qh-cta__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(135deg, rgba(10, 22, 40, .9) 0%, rgba(10, 22, 40, .72) 45%, rgba(21, 34, 56, .88) 100%),
        radial-gradient(circle at 18% 28%, rgba(212, 168, 83, .22), transparent 48%),
        radial-gradient(circle at 82% 72%, rgba(196, 92, 38, .18), transparent 42%);
    pointer-events: none;
}

.qh-cta .container {
    position: relative;
    z-index: 2;
    max-width: 720px;
}
.qh-cta h2 {
    color: #fff;
    font-size: clamp(1.65rem, 3vw, 2.2rem);
}
.qh-cta p {
    margin: .85rem 0 0;
    opacity: .88;
    font-size: 1.02rem;
}
.qh-cta__actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: .85rem;
    margin-top: 1.75rem;
}

@media (prefers-reduced-motion: reduce) {
    .qh-cta__img {
        animation: none;
        transform: scale(1.04);
    }
}
