/* =========================================================
   LEARNIVIA — FAQ / HELP CENTER
   VERSION SANS BLUR (sans scale non plus)
========================================================= */


/* =========================
   GENERAL
========================= */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --ease: cubic-bezier(0.16, 1, 0.3, 1);

    --ink: #382727;
    --navy: #17324D;
    --teal: #1F7F7C;
    --muted: #5C6872;
}

body {
    font-family: "Quicksand", Arial, sans-serif;
    background: #FFF9F2;
    color: var(--ink);
    overflow-x: hidden;

    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}


/* =========================
   PROGRESS BAR
========================= */

.progress {
    position: fixed;
    top: 0;
    left: 0;

    width: 100%;
    height: 3px;

    background: var(--teal);

    transform-origin: 0 50%;
    transform: scaleX(0);

    z-index: 10;
}


/* =========================
   FAQ HEADER
========================= */

.faq-header {
    width: 100%;
    min-height: 185px;

    background: var(--navy);
}

.faq-container {
    width: 72%;
    max-width: 1150px;

    margin: 0 auto;
    padding-top: 17px;
}


/* =========================
   LOGO / HEADER TEXT
========================= */

.faq-logo {
    color: white;

    font-size: 18px;
    font-weight: 600;
}

.faq-top {
    display: flex;
    align-items: center;
    margin-bottom: 36px;
}

.faq-back {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: none;
    width: 40px;
    height: 40px;
    margin: -10px 4px -10px -10px;
    color: white;
}

/* sur grand écran, la flèche se place dans la marge, à gauche du logo */
@media (min-width: 900px) {
    .faq-back {
        margin-left: -50px;
        margin-right: 10px;
    }
}

.faq-header h1 {
    color: white;

    font-size: 24px;
    font-weight: 700;

    margin-bottom: 16px;
}


/* =========================
   SEARCH BAR
========================= */

.faq-search {
    width: 100%;
    height: 48px;

    display: flex;
    align-items: center;

    background: rgba(255, 255, 255, 0.22);

    border-radius: 8px;

    padding: 0 15px;
}

.search-icon {
    -webkit-user-select: none;
    user-select: none;
    pointer-events: none;

    color: white;

    font-size: 28px;
    line-height: 1;

    margin-right: 8px;

    transform: rotate(-20deg);
}

.faq-search input {
    width: 100%;
    height: 100%;

    border: none;
    outline: none;

    background: transparent;

    color: white;

    font-size: 14px;

    font-family: inherit;
}

.faq-search input::placeholder {
    color: rgba(255, 255, 255, 0.95);
}


/* =========================
   FAQ CONTENT
========================= */

.faq-content {
    width: 72%;
    max-width: 1150px;

    margin: 28px auto 0;
}


/* =========================
   FAQ CARDS
========================= */

.faq-card {
    width: 1150px;
    height: 125px;

    margin-left: -90px;
    margin-bottom: 25px;

    border: 2.5px solid #dddddd;
    border-radius: 7px;

    display: flex;
    align-items: center;

    padding: 20px 35px;

    background: #ffffff;

    position: relative;

}

.faq-card:hover {
    border-color: var(--teal);
}


/* =========================
   ICON
========================= */

.faq-icon {
    width: 65px;
    min-width: 65px;

    margin-left: -10px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: var(--teal);

    font-size: 29px;
}


/* =========================
   CARD TEXT
========================= */

.faq-card-text {
    padding-left: 25px;
}

.faq-card-text h2 {
    font-size: 16px;
    font-weight: 700;

    color: var(--navy);

    margin-bottom: 7px;
}

.faq-card-text p {
    font-size: 14px;

    color: var(--ink);

    margin-bottom: 11px;
}

.faq-card-text span {
    display: inline-block;

    font-size: 13px;
    font-weight: 550;

    color: var(--muted);
}


/* =========================
   FOOTER
========================= */

.faq-footer {
    width: 100%;

    text-align: center;

    margin-top: 105px;
    padding-bottom: 30px;

    color: var(--muted);
}

.faq-footer p {
    font-size: 14px;

    margin-bottom: 25px;
}

.faq-footer small {
    font-size: 12px;

    color: var(--muted);
}


/* =========================
   TEXT SELECTION
========================= */

::selection {
    background: rgba(31, 127, 124, 0.25);
}


/* =========================
   ACCESSIBILITY
========================= */

a:focus-visible,
button:focus-visible,
.faq-card:focus-visible {

    outline: 3px solid var(--teal);

    outline-offset: 3px;
}


/* =========================
   REDUCED MOTION
========================= */

@media (prefers-reduced-motion: reduce) {

    * {
        animation: none !important;
        transition: none !important;
    }

    .js .faq-card,
    .js .faq-footer {

        opacity: 1;

        transform: none;
    }
}

.faq-card,
.faq-card:hover,
.faq-card h2,
.faq-card p,
.faq-card span {
    text-decoration: none;
}

a:has(.faq-card),
a:has(.faq-card):hover {
    text-decoration: none;
    color: inherit;
}


/* petits écrans : le titre peut passer sur 2 lignes, on garde de l'air sous la barre */
@media (max-width: 768px) {
    .faq-container {
        padding-bottom: 19px;
    }
}

@media (max-width: 1200px) {
    .faq-card {
        width: 100%;
        max-width: 100%;
        margin-left: 0;
        height: auto;
        min-height: 125px;
    }
}