/* =============================================
   SUB-PAGES STYLES (Fake News, Réseaux Sociaux, IA)
   ============================================= */

/* --- PAGE HERO --- */
.page-hero {
    position: relative;
    min-height: 50vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--navy-900);
}

.page-hero__bg {
    position: absolute;
    inset: 0;
}

.page-hero--fakenews .page-hero__bg {
    background:
        radial-gradient(ellipse at 30% 50%, rgba(220,60,60,0.12) 0%, transparent 60%),
        radial-gradient(ellipse at 70% 30%, rgba(201,168,76,0.08) 0%, transparent 50%);
}

.page-hero--social .page-hero__bg {
    background:
        radial-gradient(ellipse at 20% 60%, rgba(59,130,246,0.12) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 30%, rgba(201,168,76,0.08) 0%, transparent 50%);
}

.page-hero--ai .page-hero__bg {
    background:
        radial-gradient(ellipse at 40% 40%, rgba(139,92,246,0.12) 0%, transparent 60%),
        radial-gradient(ellipse at 70% 70%, rgba(201,168,76,0.08) 0%, transparent 50%);
}

.page-hero__content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 140px 24px 80px;
    margin: 0 auto;
    text-align: center;
}

.page-hero__back {
    display: inline-block;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 24px;
    transition: var(--transition);
}

.page-hero__back:hover {
    color: var(--gold-400);
}

.page-hero__badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--gold-500);
    border: 1px solid rgba(201,168,76,0.3);
    padding: 6px 18px;
    border-radius: 100px;
    margin-bottom: 20px;
}

.page-hero__title {
    font-family: var(--font-heading);
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 700;
    color: var(--white);
    line-height: 1.15;
    margin-bottom: 20px;
}

.page-hero__title--accent {
    color: var(--gold-500);
}

.page-hero__subtitle {
    font-size: clamp(1rem, 1.8vw, 1.2rem);
    color: var(--text-muted);
    line-height: 1.7;
    max-width: 600px;
    margin: 0 auto;
}

/* --- PAGE INTRO --- */
.page-intro {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 60px;
    align-items: start;
}

.page-intro__text h2 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--navy-600);
    margin-bottom: 20px;
}

.page-intro__text p {
    color: var(--grey-700);
    line-height: 1.8;
    margin-bottom: 16px;
}

.page-intro__text strong {
    color: var(--navy-600);
}

.page-intro__stats {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.page-stat {
    padding: 24px;
    background: var(--grey-50);
    border-left: 3px solid var(--gold-500);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.page-stat__number {
    display: block;
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--gold-500);
    line-height: 1.2;
}

.page-stat__label {
    font-size: 0.85rem;
    color: var(--grey-500);
    line-height: 1.5;
}

/* --- PAGE MODULES --- */
.page-modules {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}

.page-module {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    padding: 36px 32px;
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.page-module:hover {
    border-color: var(--gold-500);
    background: rgba(201,168,76,0.04);
}

.page-module__number {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--gold-500);
    opacity: 0.5;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(201,168,76,0.2);
}

.page-module h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 12px;
}

.page-module p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 16px;
}

.page-module strong {
    color: var(--text-light);
}

.page-module ul {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.page-module li {
    font-size: 0.85rem;
    color: var(--text-muted);
    padding-left: 20px;
    position: relative;
}

.page-module li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 7px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--gold-500);
}

/* --- PAGE EXERCISES --- */
.page-exercises {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}

.page-exercise {
    padding: 32px 28px;
    background: var(--grey-50);
    border: 1px solid var(--grey-200);
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.page-exercise:hover {
    border-color: var(--gold-500);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.page-exercise__icon {
    width: 40px;
    height: 40px;
    color: var(--gold-500);
    margin-bottom: 16px;
}

.page-exercise__icon svg {
    width: 100%;
    height: 100%;
}

.page-exercise h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--navy-600);
    margin-bottom: 10px;
}

.page-exercise p {
    font-size: 0.875rem;
    color: var(--grey-500);
    line-height: 1.6;
}

/* --- PAGE AUDIENCES --- */
.page-audiences {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.page-audience {
    text-align: center;
    padding: 36px 28px;
}

.page-audience h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 12px;
}

.page-audience p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.7;
}

/* --- PAGE CTA --- */
.page-cta {
    text-align: center;
    max-width: 650px;
    margin: 0 auto;
    padding: 20px 0;
}

.page-cta h2 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--navy-600);
    margin-bottom: 16px;
}

.page-cta p {
    color: var(--grey-500);
    line-height: 1.7;
    margin-bottom: 32px;
}

.page-cta__actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* --- PAGE FUNDAMENTALS (IA page) --- */
.page-fundamentals {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}

.page-fundamental {
    padding: 32px 28px;
    background: var(--grey-50);
    border: 1px solid var(--grey-200);
    border-radius: var(--radius-md);
    border-left: 3px solid var(--gold-500);
}

.page-fundamental h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--navy-600);
    margin-bottom: 10px;
}

.page-fundamental p {
    font-size: 0.875rem;
    color: var(--grey-500);
    line-height: 1.7;
}

/* --- PAGE TOOLS (IA page) --- */
.page-tools {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.page-tool {
    text-align: center;
    padding: 28px 20px;
    background: var(--white);
    border: 1px solid var(--grey-200);
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.page-tool:hover {
    border-color: var(--gold-500);
    box-shadow: var(--shadow-sm);
    transform: translateY(-2px);
}

.page-tool h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--navy-600);
    margin-bottom: 8px;
}

.page-tool p {
    font-size: 0.8rem;
    color: var(--grey-500);
    line-height: 1.5;
}

/* --- PAGE ETHICS (IA page) --- */
.page-ethics {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}

.page-ethic {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    padding: 32px 28px;
    border-radius: var(--radius-md);
}

.page-ethic h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 10px;
}

.page-ethic p {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.7;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
    .page-modules {
        grid-template-columns: repeat(2, 1fr);
    }

    .page-tools {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .page-intro {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .page-modules {
        grid-template-columns: 1fr;
    }

    .page-exercises {
        grid-template-columns: 1fr;
    }

    .page-audiences {
        grid-template-columns: 1fr;
    }

    .page-fundamentals {
        grid-template-columns: 1fr;
    }

    .page-tools {
        grid-template-columns: repeat(2, 1fr);
    }

    .page-ethics {
        grid-template-columns: 1fr;
    }

    .page-hero__content {
        padding: 120px 24px 60px;
    }
}

@media (max-width: 480px) {
    .page-tools {
        grid-template-columns: 1fr;
    }

    .page-cta__actions {
        flex-direction: column;
        align-items: center;
    }

    .page-cta__actions .btn {
        width: 100%;
        max-width: 300px;
    }
}

/* =============================================
   RESOURCES PAGE
   ============================================= */

/* Hero variant */
.page-hero--resources .page-hero__bg {
    background:
        radial-gradient(ellipse at 50% 40%, rgba(201,168,76,0.15) 0%, transparent 60%),
        radial-gradient(ellipse at 20% 70%, rgba(59,130,246,0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 30%, rgba(139,92,246,0.06) 0%, transparent 50%);
}

/* --- Filter Bar --- */
.res-filters {
    margin-bottom: 40px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 24px;
    background: var(--white);
    border: 1px solid var(--grey-200);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.3s, border-color 0.3s;
    z-index: 10;
}

.res-filters--sticky {
    position: sticky;
    top: 70px;
    box-shadow: var(--shadow-md);
    border-color: var(--gold-500);
}

/* Search */
.res-filters__search {
    position: relative;
}

.res-filters__search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: var(--grey-400);
    pointer-events: none;
}

.res-filters__input {
    width: 100%;
    padding: 12px 16px 12px 42px;
    border: 1px solid var(--grey-200);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-family: var(--font-body);
    color: var(--navy-600);
    background: var(--grey-50);
    transition: var(--transition);
}

.res-filters__input:focus {
    outline: none;
    border-color: var(--gold-500);
    box-shadow: 0 0 0 3px rgba(201,168,76,0.15);
    background: var(--white);
}

.res-filters__input::placeholder {
    color: var(--grey-400);
}

/* Category pills */
.res-filters__cats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.res-cat {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: 1px solid var(--grey-200);
    border-radius: 100px;
    background: var(--white);
    color: var(--grey-600);
    font-size: 0.85rem;
    font-weight: 500;
    font-family: var(--font-body);
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.res-cat:hover {
    border-color: var(--gold-400);
    color: var(--gold-600);
    background: rgba(201,168,76,0.05);
}

.res-cat--active {
    background: var(--navy-600);
    color: var(--white);
    border-color: var(--navy-600);
}

.res-cat--active:hover {
    background: var(--navy-500);
    color: var(--white);
    border-color: var(--navy-500);
}

.res-cat__count {
    font-size: 0.75rem;
    font-weight: 600;
    opacity: 0.7;
}

/* Row: type + count */
.res-filters__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.res-filters__select {
    padding: 8px 32px 8px 12px;
    border: 1px solid var(--grey-200);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-family: var(--font-body);
    color: var(--navy-600);
    background: var(--grey-50);
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    transition: var(--transition);
}

.res-filters__select:focus {
    outline: none;
    border-color: var(--gold-500);
}

.res-filters__count {
    font-size: 0.85rem;
    color: var(--grey-500);
}

.res-filters__count span {
    font-weight: 700;
    color: var(--gold-600);
}

/* --- Resource Grid --- */
.res-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* --- Resource Card --- */
.res-card {
    display: flex;
    flex-direction: column;
    padding: 24px;
    background: var(--white);
    border: 1px solid var(--grey-200);
    border-radius: var(--radius-md);
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.res-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gold-500);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.res-card:hover {
    border-color: var(--gold-400);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.res-card:hover::before {
    transform: scaleX(1);
}

.res-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    gap: 8px;
}

.res-card__cat {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 100px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 1px solid;
    white-space: nowrap;
}

.res-card__type {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    color: var(--grey-500);
    white-space: nowrap;
}

.res-card__type-icon {
    width: 14px;
    height: 14px;
    display: flex;
    flex-shrink: 0;
}

.res-card__type-icon svg {
    width: 100%;
    height: 100%;
}

.res-card__title {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--navy-600);
    line-height: 1.3;
    margin-bottom: 8px;
}

.res-card__desc {
    font-size: 0.82rem;
    color: var(--grey-500);
    line-height: 1.6;
    margin-bottom: 12px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.res-card__author {
    display: block;
    font-size: 0.75rem;
    color: var(--grey-400);
    font-style: italic;
    margin-bottom: 8px;
}

.res-card__sub {
    display: inline-block;
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    font-size: 0.7rem;
    color: var(--grey-500);
    background: var(--grey-50);
    border: 1px solid var(--grey-100);
    margin-bottom: 12px;
    align-self: flex-start;
}

.res-card__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--gold-600);
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid var(--grey-100);
    transition: var(--transition);
}

.res-card:hover .res-card__link {
    color: var(--gold-500);
    gap: 10px;
}

/* --- Empty State --- */
.res-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 24px;
    text-align: center;
    color: var(--grey-400);
}

.res-empty svg {
    margin-bottom: 16px;
    opacity: 0.5;
}

.res-empty h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--grey-500);
    margin-bottom: 8px;
}

.res-empty p {
    font-size: 0.9rem;
    color: var(--grey-400);
}

/* --- Resources Responsive --- */
@media (max-width: 1024px) {
    .res-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .res-grid {
        grid-template-columns: 1fr;
    }

    .res-filters {
        padding: 16px;
    }

    .res-filters__cats {
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 4px;
    }

    .res-filters__row {
        flex-direction: column;
        align-items: stretch;
    }

    .res-filters__count {
        text-align: center;
    }

    .res-filters--sticky {
        top: 60px;
    }
}

@media (max-width: 480px) {
    .res-card {
        padding: 18px;
    }

    .res-card__title {
        font-size: 0.95rem;
    }
}

/* =============================================
   FAQ SECTION (Schema.org structured)
   ============================================= */
.faq-section {
    padding: 80px 0;
    background: var(--bg-primary);
}

.faq-section .container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 24px;
}

.faq-section .section-title {
    font-family: 'Oswald', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-primary);
    margin-bottom: 40px;
    text-align: center;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px 28px;
    transition: border-color 0.3s;
}

.faq-item:hover {
    border-color: var(--accent);
}

.faq-question {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
    padding-left: 24px;
    position: relative;
}

.faq-question::before {
    content: 'Q';
    position: absolute;
    left: 0;
    top: 0;
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    color: var(--accent);
    font-size: 1.1rem;
}

.faq-answer {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-secondary);
    padding-left: 24px;
}

@media (max-width: 768px) {
    .faq-section {
        padding: 50px 0;
    }

    .faq-item {
        padding: 20px;
    }

    .faq-question {
        font-size: 1rem;
    }
}
