/*
 * pages-templates.css
 * Fusionné depuis : faq-styles.css, partenaires-styles.css, espace-presse-styles.css,page-media.css, equipe.css, mansa-blog-styles.css
 * Dernière mise à jour : mai 2026
 */


/* ============================================================
   1. FAQ (faq-styles.css)
   Template : templates/page-faq.php
   ============================================================ */

.faq-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.faq-wrapper {
    background: #fff;
}

.faq-page-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #000;
    text-align: center;
}

.faq-intro {
    margin-bottom: 40px;
    text-align: center;
    color: #000;
    font-size: 16px;
}

.faq-list {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.faq-item.active {
    border-color: #0073aa;
}

.faq-question {
    width: 100%;
    padding: 20px 25px;
    background: #f8f9fa;
    border: none;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s ease;
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
}

.faq-question:hover {
    background: #e9ecef;
}

.faq-item.active .faq-question {
    background: #666;
    color: #fff;
}

.faq-question-text {
    flex: 1;
    padding-right: 20px;
}

.faq-icon {
    font-size: 1.5rem;
    font-weight: bold;
    min-width: 30px;
    text-align: center;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.faq-answer-content {
    padding: 25px;
    background: #fff;
    color: #555;
    line-height: 1.7;
    font-size: 1rem;
}

.faq-answer-content p:last-child {
    margin-bottom: 0;
}

.faq-category-section {
    margin-bottom: 50px;
}

.faq-category-section:last-child {
    margin-bottom: 0;
}

.faq-category-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #000;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 3px solid #000;
}

.faq-category-description {
    color: #666;
    font-size: 1rem;
    margin-bottom: 25px;
    font-style: italic;
}

.faq-category-items {
    margin-top: 20px;
}

@media (max-width: 768px) {
    .faq-page-title { font-size: 2rem; }
    .faq-question { padding: 15px 20px; font-size: 1rem; }
    .faq-answer-content { padding: 20px; font-size: 0.95rem; }
    .faq-icon { font-size: 1.3rem; }
    .faq-category-title { font-size: 1.5rem; }
}


/* ============================================================
   2. PARTENAIRES (partenaires-styles.css)
   Template : templates/page-partenaires.php
   ============================================================ */

.section-partenaires {
    margin-bottom: 50px;
}

.section-partenaires h2 {
    font-size: 28px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #666;
}

.grille-partenaires {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 30px;
    align-items: center;
}

.partenaire-item {
    text-align: center;
}

.partenaire-item a {
    display: block;
    padding: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.partenaire-item a:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.partenaire-item img {
    max-width: 100%;
    height: auto;
    max-height: 100px;
    object-fit: contain;
}

.section-partenaires--full {
    background: #F9F9F9;
    padding: 60px 0;
    margin: 50px 0;
    position: relative;
}

.section-partenaires--full::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    height: 100%;
    background: #F9F9F9;
    z-index: -1;
}

@media (max-width: 768px) {
    .section-partenaires--full {
        padding: 40px 0;
    }
}


/* ============================================================
   3. ESPACE PRESSE (espace-presse-styles.css)
   Template : templates/page-espace-presse.php
   ============================================================ */

.kit-media-section {
    background: #f8f9fa;
    padding: 50px;
    margin-bottom: 60px;
}

.kit-media-section h2 {
    font-size: 32px;
    margin-bottom: 15px;
}

.kit-media-section > p {
    color: #666;
    margin-bottom: 30px;
}

.kit-media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

.kit-item {
    background: white;
    padding: 30px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.kit-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.kit-icon {
    font-size: 48px;
    color: #333;
    margin-bottom: 15px;
}

.kit-icon .dashicons {
    width: 60px;
    height: 60px;
    font-size: 60px;
}

.kit-item h3 {
    font-size: 18px;
    margin-bottom: 20px;
    color: #333;
}

.btn-download {
    display: inline-block;
    padding: 12px 30px;
    background: #333;
    color: white;
    text-decoration: none;
    transition: background 0.3s ease;
}

.btn-download:hover {
    background: #555;
    color: white;
}

.filtres-presse {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 50px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
}

.filtre-btn {
    padding: 10px 25px;
    background: white;
    border: 2px solid #ddd;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
    font-weight: 500;
}

.filtre-btn:hover {
    border-color: #333;
    background: #f8f9fa;
}

.filtre-btn.active {
    background: #333;
    color: white;
    border-color: #333;
}

.communiques-section h2 {
    font-size: 32px;
    margin-bottom: 40px;
    text-align: center;
}

.categorie-presse {
    margin-bottom: 60px;
}

.categorie-titre {
    font-size: 26px;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #333;
}

.communiques-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.communique-card {
    background: white;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.communique-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
}

.communique-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.communique-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.communique-card:hover .communique-image img {
    transform: scale(1.05);
}

.communique-content {
    padding: 25px;
}

.communique-date {
    display: inline-block;
    background: #333;
    color: white;
    padding: 5px 15px;
    font-size: 14px;
    margin-bottom: 15px;
}

.communique-content h4 {
    font-size: 20px;
    margin-bottom: 15px;
    line-height: 1.4;
}

.communique-extrait {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.communique-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.communique-actions a {
    padding: 10px 20px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.btn-lire { background: #333; color: white; }
.btn-lire:hover { background: #555; color: white; }
.btn-pdf { background: #000; color: white; }
.btn-pdf:hover { background: #c0392b; color: white; }
.btn-externe { color: black; border: 1px solid black; }
.btn-externe:hover { color: white; background: black; }

.communique-actions .dashicons {
    width: 18px;
    height: 18px;
    font-size: 18px;
}

.contact-presse-section {
    background: #f8f9fa;
    padding: 50px;
    margin-top: 60px;
    text-align: center;
}

.contact-presse-section h2 {
    font-size: 32px;
    margin-bottom: 30px;
}

.contact-presse-info {
    max-width: 600px;
    margin: 0 auto;
}

.contact-presse-info p {
    font-size: 18px;
    margin-bottom: 15px;
}

.contact-presse-info a {
    color: #333;
    text-decoration: none;
    font-weight: 600;
}

.contact-presse-info a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .kit-media-grid,
    .communiques-grid { grid-template-columns: 1fr; }
    .kit-media-section,
    .contact-presse-section { padding: 30px 20px; }
    .filtres-presse { justify-content: flex-start; }
}


/* ============================================================
   4. PAGE MÉDIA (page-media.css)
   Template : templates/page-media.php
   ============================================================ */

.media-archive-header {
    margin-bottom: 3rem;
}

.media-archive-header h1 {
    font-size: clamp(2rem, 4vw, 2.75rem);
    line-height: 1.2;
    margin-bottom: 1rem;
}

.media-archive-intro {
    max-width: 600px;
    margin: 0 auto;
    font-size: 1rem;
    line-height: 1.6;
    color: #666;
}

.media-grid {
    margin-bottom: 3rem;
}

.media-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.media-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.media-card-thumbnail {
    display: block;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.media-thumbnail-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    background: #f0f0f0;
    overflow: hidden;
}

.media-thumbnail-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.media-card:hover .media-thumbnail-image {
    transform: scale(1.05);
}

.youtube-play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 56px;
    height: 40px;
    background: rgba(255, 0, 0, 0.85);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    pointer-events: none;
    z-index: 2;
}

.media-card:hover .youtube-play-overlay {
    background: rgb(255, 0, 0);
    transform: translate(-50%, -50%) scale(1.1);
}

.media-thumbnail-placeholder {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #ccc;
    text-align: center;
}

.media-card-content {
    padding: 1.25rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.media-card-title {
    font-size: 1.125rem;
    line-height: 1.3;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.media-card-title a {
    color: #000;
    text-decoration: none;
    transition: color 0.3s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.media-card-title a:hover {
    color: var(--color-primary, #000);
}

.media-card-excerpt {
    font-size: 0.9rem;
    line-height: 1.5;
    color: #666;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.media-pagination {
    text-align: center;
}

.media-pagination .page-numbers {
    display: inline-flex;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.media-pagination .page-numbers li {
    display: inline-block;
}

.media-pagination .page-numbers a,
.media-pagination .page-numbers span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 0.75rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 0.95rem;
}

.media-pagination .page-numbers a:hover,
.media-pagination .page-numbers .current {
    background: var(--color-primary, #000);
    color: #fff;
    border-color: var(--color-primary, #000);
}

.media-pagination .page-numbers .prev,
.media-pagination .page-numbers .next {
    font-weight: 600;
    font-size: 1.25rem;
}

.no-results {
    padding: 3rem 0;
}

@media (max-width: 991px) {
    .media-archive-header h1 { font-size: 2.25rem; }
    .media-card-title { font-size: 1.075rem; }
}

@media (max-width: 767px) {
    .media-archive-wrapper { padding-top: 2rem; padding-bottom: 2rem; }
    .media-archive-header { margin-bottom: 2rem; }
    .media-archive-header h1 { font-size: 1.75rem; }
    .media-archive-intro { font-size: 0.95rem; }
    .media-card-content { padding: 1rem; }
    .media-card-title { font-size: 1rem; }
    .media-card-excerpt { font-size: 0.875rem; }
    .media-pagination .page-numbers a,
    .media-pagination .page-numbers span { min-width: 36px; height: 36px; padding: 0 0.5rem; font-size: 0.875rem; }
}

@media (max-width: 575px) {
    .youtube-play-overlay { width: 48px; height: 36px; }
    .youtube-play-overlay svg { width: 16px; height: 16px; }
}


/* ============================================================
   5. ÉQUIPE (equipe.css)
   Template : templates/template-notre-equipe.php
   ============================================================ */

.page-notre-equipe {
    padding: 60px 20px;
}

.page-intro {
    max-width: 800px;
    margin: 0 auto 60px;
    font-size: 1.1rem;
    color: #666;
    line-height: 1.6;
    text-align: center;
}

.pole-section {
    margin-bottom: 80px;
}

.pole-title {
    font-size: 2rem;
    margin-bottom: 40px;
    padding-bottom: 15px;
    border-bottom: 3px solid #333;
    text-align: center;
    color: #333;
}

.membres-grid {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}

.membre-card {
    text-align: center;
    transition: all 0.3s ease;
    flex: 0 0 auto;
    width: 200px;
}

.membre-card:hover {
    transform: translateY(-10px);
}

.membre-photo {
    margin-bottom: 20px;
    overflow: hidden;
    border-radius: 50%;
    width: 200px;
    height: 200px;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.membre-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.membre-info {
    text-align: center;
    padding: 0 10px;
}

.membre-nom {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: #333;
    line-height: 1.3;
}

.membre-titre {
    font-size: 1rem;
    color: #666;
    margin: 0;
    line-height: 1.4;
}

.no-members {
    text-align: center;
    padding: 60px 20px;
    font-size: 1.1rem;
    color: #999;
}

@media (max-width: 900px) {
    .membre-photo { width: 160px; height: 160px; }
    .membre-card { width: 160px; }
    .pole-title { font-size: 1.7rem; }
}

@media (max-width: 600px) {
    .page-notre-equipe { padding: 40px 15px; }
    .membres-grid { gap: 20px; }
    .membre-photo { width: 140px; height: 140px; }
    .membre-card { width: 140px; }
    .membre-nom { font-size: 1.1rem; }
    .membre-titre { font-size: 0.9rem; }
    .pole-title { font-size: 1.5rem; }
}


/* ============================================================
   6. BLOG / CARDS (mansa-blog-styles.css)
   Usage : cards d'articles, vidéos, podcasts
   ============================================================ */

.mansa-card {
    background: #fff;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    position: relative;
}

.mansa-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.mansa-card__image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/10;
    background: #f5f5f5;
}

.mansa-card__image a {
    display: block;
    height: 100%;
}

.mansa-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.mansa-card:hover .mansa-card__image img {
    transform: scale(1.05);
}

.mansa-card__content-type {
    position: absolute;
    bottom: 12px;
    right: 12px;
    z-index: 10;
}

.content-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.75);
    border-radius: 50%;
    color: #fff;
    font-size: 18px;
    backdrop-filter: blur(4px);
    transition: background 0.3s ease;
}

.mansa-card:hover .content-icon {
    background: rgba(0, 0, 0, 0.9);
}

.mansa-card__content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.mansa-card__category {
    margin-bottom: 12px;
}

.category-badge {
    display: inline-block;
    padding: 4px 12px;
    background: #f0f0f0;
    color: #333;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 2px;
}

.mansa-card__category .category-badge.cat-podcast { background: #e8f5e9; color: #2e7d32; }
.mansa-card__category .category-badge.cat-video   { background: #e3f2fd; color: #1565c0; }
.mansa-card__category .category-badge.cat-article { background: #fff3e0; color: #e65100; }

.mansa-card__title {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 12px;
}

.mansa-card__title a {
    color: #000;
    text-decoration: none;
    transition: color 0.3s ease;
}

.mansa-card__title a:hover {
    color: #666;
}

.mansa-card__excerpt {
    font-size: 15px;
    line-height: 1.6;
    color: #555;
    margin: 0 0 16px;
    flex-grow: 1;
}

.mansa-card__meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid #e0e0e0;
    margin-top: auto;
}

.meta-date {
    font-size: 13px;
    color: #888;
    font-weight: 500;
}

.mansa-blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

@media (min-width: 768px) {
    .mansa-blog-grid { grid-template-columns: repeat(2, 1fr); }
    .mansa-card__content { padding: 20px; }
    .mansa-card__title { font-size: 18px; }
    .mansa-card__excerpt { font-size: 14px; }
}

@media (min-width: 1200px) {
    .mansa-blog-grid { grid-template-columns: repeat(3, 1fr); }
}