/* ============================================================
 * IFLISS GAMES — pages /faq et /a-propos
 * Même thème que l'accueil : ce fichier s'ajoute à accueil.css, qui fournit les couleurs
 * (.acc / .acc-home : blanc cassé, taupe, violet, bordeaux, --strip-blue), .acc-wrap, .acc-mark
 * (trait fait main), les chiffres clés (.acc-stats) et l'appel final (.acc-cta).
 * Classes : in-* communes aux deux pages, fq-* FAQ, ap-* À propos.
 * CSS simple, sans compilation. Icônes : Bootstrap Icons.
 * ============================================================ */

/* .acc coupe ce qui dépasse avec overflow: hidden, ce qui empêche l'encadré de la FAQ de rester collé :
   overflow: clip coupe pareil sans gêner position: sticky. */
.in-page { overflow: clip; }

/* ── Bandeau taupe ── */
.in-hero {
    padding: 22px 0 34px;
    border-bottom: 1px solid #cdbfae;
    background:
        radial-gradient(760px 460px at 82% 45%, rgb(255 250 243 / 0.45), transparent 70%),
        radial-gradient(560px 340px at 0% 100%, rgb(255 250 243 / 0.25), transparent 70%),
        linear-gradient(135deg, #ddd1c3, #cfc0ae 55%, #c3b19d);
}
.in-hero-grille { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: center; }
.in-fil {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 14px;
    color: var(--taupe-ink);
    font-size: 0.8rem;
    font-weight: 600;
}
.in-fil a { color: var(--taupe-ink); text-decoration: none; }
.in-fil a:hover { color: var(--strip-blue-solid); }
.in-fil .bi { font-size: 0.7rem; opacity: 0.7; }
.in-hero h1 {
    position: relative;
    z-index: 0;
    margin: 0 0 12px;
    color: var(--ink);
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 900;
    line-height: 1.12;
    letter-spacing: -0.01em;
}
.in-sous { max-width: 60ch; margin: 0; color: var(--taupe-ink); font-size: 1rem; line-height: 1.7; }

/* Bulle violet clair (comme derrière le couple de l'accueil) avec une grande icône */
.in-bulle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 190px;
    height: 170px;
    margin-right: 20px;
    border-radius: 48% 52% 42% 58% / 55% 45% 55% 45%;
    background: linear-gradient(145deg, #e3d8fd, #b39bf6 60%, #a78bfa);
    box-shadow: 0 26px 40px -26px rgb(74 47 148 / 0.7);
    color: var(--card);
    font-size: 5rem;
    animation: acc-blob 14s ease-in-out infinite alternate;
}
.in-bulle .bi { filter: drop-shadow(0 8px 12px rgb(74 47 148 / 0.35)); }

/* Appel final (accueil.css) : espacement propre à ces pages */
.in-page .acc-cta { padding: 44px 0 64px; }

/* ============================================================
 * FAQ : questions à gauche, encadré contact collé à droite
 * ============================================================ */
.fq-section { padding: 30px 0 0; }
.fq-grille { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
.fq-liste { display: grid; gap: 10px; }

.fq-item {
    overflow: hidden;
    border: 1px solid #dccfbf;
    border-radius: 18px;
    background: var(--card);
    box-shadow: 0 16px 32px -28px rgb(70 50 35 / 0.6);
    transition: border-color 0.18s, box-shadow 0.18s;
}
.fq-item[open] { border-color: var(--violet-200); box-shadow: 0 20px 38px -26px rgb(74 47 148 / 0.45); }
.fq-item summary {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    color: var(--ink);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.4;
    list-style: none;
    cursor: pointer;
    transition: background-color 0.18s;
}
.fq-item summary::-webkit-details-marker { display: none; }
.fq-item summary:hover { background: var(--paper); }
.fq-num {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(145deg, var(--bordeaux), var(--bordeaux-dark));
    box-shadow: inset 0 0 0 3px rgb(251 243 230 / 0.25);
    color: var(--cream);
    font-size: 0.82rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}
.fq-q { flex: 1; min-width: 0; }
.fq-fleche { flex-shrink: 0; color: var(--violet-600); font-size: 0.9rem; transition: transform 0.2s; }
.fq-item[open] .fq-fleche { transform: rotate(180deg); }
.fq-reponse { padding: 0 18px 18px 66px; color: var(--ink-soft); font-size: 0.94rem; line-height: 1.8; }
.fq-reponse a,
.fq-aide p a,
.fq-note a {
    color: var(--violet-800);
    font-weight: 700;
    text-decoration: underline;
    text-decoration-color: rgb(74 47 148 / 0.3);
    text-underline-offset: 3px;
    overflow-wrap: anywhere;
}
.fq-reponse a:hover,
.fq-aide p a:hover,
.fq-note a:hover { color: var(--red); text-decoration-color: currentColor; }

.fq-aside { position: sticky; top: 92px; display: grid; gap: 14px; }
.fq-aide {
    padding: 22px;
    border: 1px solid var(--violet-100);
    border-radius: 20px;
    background: var(--violet-50);
}
.fq-aide > .bi {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--violet-100);
    color: var(--violet-800);
    font-size: 1.2rem;
}
.fq-aide h2 { margin: 14px 0 6px; color: var(--ink); font-size: 1.08rem; font-weight: 800; line-height: 1.3; }
.fq-aide p { margin: 0 0 16px; color: var(--ink-soft); font-size: 0.88rem; line-height: 1.65; }
.fq-aide .acc-btn { width: 100%; }
.fq-note { margin: 0; padding: 0 8px; color: var(--ink-soft); font-size: 0.82rem; line-height: 1.55; text-align: center; }

/* ============================================================
 * À propos
 * ============================================================ */
/* Place pour les chiffres clés qui chevauchent le bas du bandeau */
.ap-hero { padding-bottom: 80px; }

.ap-section { padding: 60px 0; }
.ap-duo { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 40px; align-items: start; }
.ap-titre {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 16px;
    color: var(--ink);
    font-size: clamp(1.5rem, 3vw, 2.1rem);
    font-weight: 900;
    line-height: 1.2;
    letter-spacing: -0.01em;
}
.ap-titre .bi {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: linear-gradient(145deg, var(--bordeaux), var(--bordeaux-dark));
    box-shadow: inset 0 0 0 3px rgb(251 243 230 / 0.25);
    color: var(--cream);
    font-size: 1.15rem;
}
.ap-texte p { max-width: 72ch; margin: 0 0 14px; color: var(--ink-soft); font-size: 1rem; line-height: 1.85; }
.ap-texte p:last-child { margin-bottom: 0; }

/* Valeurs (section taupe) */
.ap-valeurs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 8px; }
.ap-valeur {
    padding: 22px;
    border: 1px solid #cdbfae;
    border-radius: 18px;
    background: var(--card);
    box-shadow: 0 16px 32px -24px rgb(70 50 35 / 0.55);
    transition: transform 0.2s, border-color 0.2s;
}
.ap-valeur:hover { transform: translateY(-3px); border-color: var(--violet-400); }
.ap-valeur > .bi {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    margin-bottom: 14px;
    border-radius: 15px;
    background: var(--violet-200);
    color: var(--violet-800);
    font-size: 1.3rem;
}
.ap-valeur:nth-child(2) > .bi { background: var(--red-50); color: var(--red); }
.ap-valeur:nth-child(3) > .bi { background: var(--taupe-100); color: var(--taupe-700); }
.ap-valeur:nth-child(4) > .bi { background: var(--cream); color: var(--bordeaux); }
.ap-valeur h3 { margin: 0 0 6px; color: var(--ink); font-size: 1.02rem; font-weight: 800; }
.ap-valeur p { margin: 0; color: var(--ink-soft); font-size: 0.88rem; line-height: 1.65; }

/* Histoire : frise verticale */
.ap-frise { position: relative; margin: 0; padding: 0 0 0 34px; list-style: none; }
.ap-frise::before {
    content: "";
    position: absolute;
    top: 10px;
    bottom: 10px;
    left: 11px;
    width: 3px;
    border-radius: 3px;
    background: linear-gradient(to bottom, var(--violet-400), var(--taupe-200));
}
.ap-etape {
    position: relative;
    padding: 18px 20px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--card);
    box-shadow: 0 16px 32px -28px rgb(70 50 35 / 0.6);
}
.ap-etape + .ap-etape { margin-top: 14px; }
.ap-etape::before {
    content: "";
    position: absolute;
    top: 24px;
    left: -30px;
    width: 16px;
    height: 16px;
    border: 3px solid var(--paper);
    border-radius: 50%;
    background: var(--violet-600);
    box-shadow: 0 0 0 2px var(--violet-600);
}
.ap-etape:last-child::before { background: var(--red); box-shadow: 0 0 0 2px var(--red); }
.ap-annee {
    display: inline-block;
    margin-bottom: 8px;
    padding: 3px 10px;
    border-radius: 999px;
    background: var(--violet-100);
    color: var(--violet-800);
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.ap-etape:last-child .ap-annee { background: var(--red-50); color: var(--red); }
.ap-etape h3 { margin: 0 0 4px; color: var(--ink); font-size: 1.02rem; font-weight: 800; }
.ap-etape p { margin: 0; color: var(--ink-soft); font-size: 0.9rem; line-height: 1.7; }

/* Équipe (section claire) */
.ap-equipe {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    padding: 22px;
    border: 1px solid #dccfbf;
    border-radius: 20px;
    background: var(--paper);
}
.ap-avatar {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(145deg, #e3d8fd, #a78bfa);
    box-shadow: 0 14px 24px -16px rgb(74 47 148 / 0.8);
    color: var(--card);
    font-size: 2rem;
}
.ap-equipe h3 { margin: 0 0 2px; color: var(--ink); font-size: 1.05rem; font-weight: 800; }
.ap-role { display: block; margin-bottom: 8px; color: var(--bordeaux); font-size: 0.8rem; font-weight: 700; }
.ap-equipe p { margin: 0; color: var(--ink-soft); font-size: 0.9rem; line-height: 1.7; }

.ap-reseaux { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.ap-reseau {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 42px;
    padding: 8px 16px;
    border: 1px solid #dccfbf;
    border-radius: 999px;
    background: var(--paper);
    color: var(--ink);
    font-size: 0.86rem;
    font-weight: 700;
    text-decoration: none;
    overflow-wrap: anywhere;
    transition: border-color 0.18s, transform 0.18s;
}
.ap-reseau:hover { border-color: var(--strip-blue-solid); transform: translateY(-2px); }
.ap-reseau .bi { color: var(--bordeaux); font-size: 1rem; }

/* ============================================================
 * Écrans étroits
 * ============================================================ */
@media (max-width: 1060px) {
    .ap-valeurs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
    .fq-grille { grid-template-columns: 1fr; }
    .fq-aside { position: static; }
}
@media (max-width: 860px) {
    .ap-duo { grid-template-columns: 1fr; gap: 12px; }
    .in-bulle { width: 140px; height: 126px; margin-right: 0; font-size: 3.6rem; }
}
@media (max-width: 640px) {
    .in-hero { padding: 16px 0 24px; }
    /* Mobile : la bulle décorative laisserait trop peu de place au titre */
    .in-hero-grille { grid-template-columns: 1fr; }
    .in-bulle { display: none; }
    .ap-hero { padding-bottom: 68px; }
    .fq-section { padding-top: 20px; }
    .fq-item summary { gap: 10px; padding: 14px; font-size: 0.94rem; }
    .fq-num { width: 30px; height: 30px; font-size: 0.76rem; }
    .fq-reponse { padding: 0 14px 16px; font-size: 0.92rem; }
    .ap-section { padding: 42px 0; }
    .ap-titre .bi { width: 40px; height: 40px; font-size: 1rem; }
    .ap-valeurs { grid-template-columns: 1fr; }
    .ap-equipe { flex-direction: column; }
    .ap-reseau { flex: 1 1 auto; justify-content: center; }
    .in-page .acc-cta { padding: 32px 0 44px; }
}
@media (prefers-reduced-motion: reduce) {
    .in-bulle { animation: none; }
}
