/* ==========================================================================
   STYLE DU CENTRE D'AIDE (FAQ)
   ========================================================================== */

body {
    background-color: #060913;
    /* Fond très sombre bleuté */
    background-image: radial-gradient(circle at 20% 30%, rgba(13, 25, 60, 0.5) 0%, transparent 50%);
    color: #ffffff;
    font-family: 'Segoe UI', Roboto, sans-serif;
    margin: 0;
    min-height: 100vh;
}

.faq-container {
    max-width: 800px;
    margin: 80px auto 100px auto;
    padding: 20px;
}

/* Mode large pour la section IA (Prend toute la largeur) */
.faq-container--wide {
    max-width: 95%;
}

/* --- EN-TÊTE --- */
.faq-header {
    text-align: center;
    margin-bottom: 40px;
}

.faq-title {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 10px;
    color: #ffffff;
}

.faq-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.6);
}

/* --- ONGLETS (TABS) --- */
.faq-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.03);
    padding: 10px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    flex-wrap: wrap;

    max-width: 650px;
    margin: 0 auto 40px auto;
}

.tab-btn {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    padding: 14px 32px;
    /* Curseur réadapté */
    border-radius: 50px;
    font-size: 1.1rem;
    /* Curseur réadapté */
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.tab-btn:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
}

.tab-btn.active {
    background: #1d4ed8;
    /* Bleu vif comme sur l'image */
    color: #ffffff;
    box-shadow: 0 0 20px rgba(29, 78, 216, 0.4);
}

/* --- BARRE DE RECHERCHE --- */
.faq-search-wrapper {
    position: relative;
    margin-bottom: 30px;
}

.faq-search-wrapper .search-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.4);
    font-size: 1.1rem;
}

#faq-search {
    width: 100%;
    box-sizing: border-box;
    background: rgba(10, 15, 30, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    padding: 18px 20px 18px 50px;
    border-radius: 12px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

#faq-search:focus {
    outline: none;
    border-color: #1d4ed8;
}

/* --- LISTE DES QUESTIONS (ACCORDÉON) --- */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.faq-item {
    background: rgba(10, 15, 30, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    background: transparent;
    border: none;
    color: #ffffff;
    padding: 20px;
    font-size: 1.1rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s ease;
}

.faq-question:hover {
    background: rgba(255, 255, 255, 0.02);
}

.faq-question .chevron {
    color: #1d4ed8;
    transition: transform 0.3s ease;
}

/* État actif de l'accordéon */
.faq-item.active .faq-question .chevron {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.faq-answer p {
    margin: 0;
    padding: 0 20px 20px 20px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

/* --- CARTE VIDÉO CLIQUABLE --- */
.video-link-card {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 0 20px 20px 20px;
    background: rgba(255, 255, 255, 0.04);
    border: 3px solid transparent;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: #ffffff;
    transition: background 0.3s ease, border-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
}

.video-link-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-4px);
    border-color: transparent;
    border-image: linear-gradient(45deg, #ef4444, #f59e0b, #10b981, #3b82f6, #a855f7) 1;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(239, 68, 68, 0.2), 0 10px 25px rgba(59, 130, 246, 0.2);
}

.thumbnail-wrapper {
    position: relative;
    flex-shrink: 0;
    width: 250px;
    height: 140px;
}

.video-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0);
    transition: background 0.3s ease;
}

.video-link-card:hover .play-overlay {
    background: rgba(0, 0, 0, 0.1);
}

.play-overlay i {
    font-size: 2.2rem;
    color: #ffffff;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.8));
    transition: transform 0.3s ease;
}

.video-link-card:hover .play-overlay i {
    transform: scale(1.15);
}

.video-card-info {
    padding: 12px 16px;
}

.video-card-info--center h3 {
    font-size: 1.35rem;
    transition: transform 0.3s ease, color 0.3s ease;
}

.video-link-card:hover .video-card-info--center h3 {
    transform: scale(1.03);
    color: #ffffff;
}

.video-card-info p {
    margin: 0;
    padding: 0;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.55);
}

/* --- VARIANTE VERTICALE --- */
.video-link-card--vertical {
    flex-direction: column;
    align-items: stretch;
    max-width: 650px;
    margin: 20px auto;
}

.thumbnail-wrapper--full {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
}

.video-card-info--center {
    text-align: center;
    padding: 14px 16px;
}

.youtube-link {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.3s ease;
}

.youtube-link:hover {
    opacity: 0.8;
    cursor: pointer;
}

.highlight {
    font-weight: bold;
    text-decoration: underline;
    font-size: 1.15em;
    color: #3b82f6;
}

/* ==========================================================================
   SECTION : L'AVIS DE L'IA
   ========================================================================== */

.ia-section {
    width: 100%;
    padding: 0 0 60px;
}

/* --- EN-TÊTE DE LA SECTION IA --- */
.ia-header {
    text-align: center;
    margin-bottom: 48px;
}

.ia-header .ia-icon-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.3), rgba(109, 40, 217, 0.5));
    border: 1px solid rgba(139, 92, 246, 0.4);
    border-radius: 20px;
    margin-bottom: 20px;
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.25);
}

.ia-header .ia-icon-badge i {
    font-size: 2rem;
    color: #a78bfa;
}

.ia-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 14px;
}

.ia-subtitle {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.6);
    max-width: 650px;
    margin: 0 auto 16px;
    line-height: 1.6;
}

/* --- BLOC PROMPT ET BOUTON COPIER --- */
.prompt-box {
    display: flex;
    flex-direction: column;
    gap: 14px;
    max-width: 680px;
    margin: 16px auto 0;
    background: rgba(15, 17, 26, 0.7);
    border: 1px solid rgba(167, 139, 250, 0.4);
    border-radius: 12px;
    padding: 16px 20px;
    text-align: left;
    backdrop-filter: blur(8px);
    box-shadow: inset 0 0 15px rgba(139, 92, 246, 0.1);
}

.prompt-box code {
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 0.88rem;
    color: #e2e8f0;
    line-height: 1.6;
    display: block;
    word-break: break-word;
}

.copy-prompt-btn {
    align-self: flex-end;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(139, 92, 246, 0.25);
    border: 1px solid rgba(167, 139, 250, 0.5);
    color: #ffffff;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
}

.copy-prompt-btn:hover {
    background: #8b5cf6;
    border-color: #a78bfa;
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.5);
    transform: scale(1.03);
}

.copy-prompt-btn.copied {
    background: #10b981;
    border-color: #34d399;
    color: #ffffff;
}

/* --- GRILLE DE CARTES IA --- */
.ia-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

@media (max-width: 900px) {
    .ia-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 580px) {
    .ia-grid {
        grid-template-columns: 1fr;
    }
}

/* --- CARTE INDIVIDUELLE IA --- */
.ia-card {
    background: rgba(139, 92, 246, 0.07);
    border: 1px solid rgba(139, 92, 246, 0.25);
    border-radius: 18px;
    padding: 40px 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Centrage des éléments pour la grande icône */
    text-align: center;
    /* Centrage du texte */
    gap: 16px;
    transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.ia-card:hover {
    transform: translateY(-5px);
    background: rgba(139, 92, 246, 0.14);
    border-color: rgba(139, 92, 246, 0.6);
    box-shadow: 0 12px 36px rgba(139, 92, 246, 0.25);
}

/* Icône robot GÉANTE en haut de chaque carte */
.ia-card .ia-icon-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 120px;
    /* Beaucoup plus grand */
    height: 120px;
    /* Beaucoup plus grand */
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.35), rgba(109, 40, 217, 0.55));
    border: 1px solid rgba(139, 92, 246, 0.45);
    border-radius: 30px;
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.2);
    flex-shrink: 0;
    margin-bottom: 10px;
    transition: box-shadow 0.25s ease;
}

.ia-card:hover .ia-icon-badge {
    box-shadow: 0 0 40px rgba(139, 92, 246, 0.55);
}

.ia-card .ia-icon-badge i {
    font-size: 4rem;
    /* Beaucoup plus grand */
    color: #a78bfa;
}

.ia-card-header {
    display: flex;
    flex-direction: column;
    /* Empiler le numéro et le titre au centre */
    align-items: center;
    gap: 8px;
}

.ia-number {
    font-size: 0.85rem;
    font-weight: 800;
    color: #a78bfa;
    background: rgba(139, 92, 246, 0.15);
    border: 1px solid rgba(139, 92, 246, 0.35);
    border-radius: 8px;
    padding: 4px 10px;
    flex-shrink: 0;
    letter-spacing: 0.05em;
}

.ia-card-header h3 {
    margin: 0;
    font-size: 1.35rem;
    /* Un peu plus grand pour aller avec l'icône */
    font-weight: 700;
    color: #ffffff;
    line-height: 1.3;
}

.ia-brand {
    display: block;
    font-weight: 400;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.45);
    margin-top: 4px;
}

.ia-card>p {
    margin: 0;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.7;
}