/* Styles spécifiques pour la section de la presse */

/* Contenus de sections */
.content-section {
    padding: 40px 0;
    margin: 20px 0;
}

/* Section Autres pages web */
#autres-pages-web {
    background-color: #e5f6fd;
    padding: 30px 0 50px;
}

#autres-pages-web .section-header {
    display: block;
    text-align: center;
    margin-bottom: 30px;
}

#autres-pages-web .section-icon {
    display: inline-block;
    background-color: #4573A7;
    color: white;
    font-size: 24px;
    width: 50px;
    height: 50px;
    line-height: 50px;
    border-radius: 50%;
    margin-bottom: 10px;
}

#autres-pages-web h2 {
    color: #333;
    font-size: 24px;
    margin: 10px 0;
}

#autres-pages-web .section-divider {
    width: 50px;
    margin: 15px auto;
    border-top: 3px solid #4573A7;
}

.page-web-card {
    background-color: #fff;
    border-radius: 5px;
    border: none;
    box-shadow: 0 1px 5px rgba(0,0,0,0.1);
    padding: 25px;
    text-align: center;
    margin-bottom: 30px;
    height: 100%;
}

.page-web-card .page-logo {
    max-width: 160px;
    margin-bottom: 20px;
}

.page-web-card h3 {
    font-size: 16px;
    margin-bottom: 15px;
    color: #333;
}

.page-web-card p {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
}

.btn-success {
    background-color: #8BC34A;
    border-color: #8BC34A;
    color: white;
    padding: 8px 20px;
    font-size: 14px;
}

.content-section:not(:last-child) {
    border-bottom: 1px solid #eee;
}

/* Sommaire en haut de page */
.press-toc {
    padding: 12px 0 4px;
}

.press-toc-card {
    background: #fff;
    border-radius: 24px;
    border: 1px solid rgba(33, 101, 164, 0.12);
    box-shadow: 0 16px 32px rgba(18, 39, 73, 0.08);
    padding: clamp(1.2rem, 2.4vw, 1.8rem);
}

.press-toc-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.press-toc-copy {
    min-width: 0;
}

.press-toc-kicker {
    display: block;
    margin-bottom: 0.2rem;
    color: var(--button);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.press-toc-copy h2 {
    margin: 0;
    padding: 0;
    line-height: 1.2;
    font-size: clamp(1.25rem, 2vw, 1.7rem);
}

.press-toc-copy h2::after {
    display: none;
}

.press-toc-list {
    list-style: none;
    counter-reset: press-toc;
    margin: 0;
    padding: 0;
}

.press-toc-item {
    counter-increment: press-toc;
}

.press-toc-link {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.9rem 0;
    border-bottom: 1px solid rgba(33, 101, 164, 0.12);
    color: var(--dark);
    font-weight: 700;
    text-decoration: none;
    transition: none;
}

.press-toc-item:last-child .press-toc-link {
    border-bottom: 0;
    padding-bottom: 0;
}

.press-toc-link::before {
    content: counter(press-toc) ".";
    flex: 0 0 auto;
    min-width: 2rem;
    color: var(--button);
}

.press-toc-link i {
    flex: 0 0 auto;
    margin-top: 0.18rem;
    color: var(--primary);
}

.press-toc-link span {
    min-width: 0;
    line-height: 1.45;
}

.press-toc-link:hover,
.press-toc-link:focus-visible {
    color: var(--dark);
}

/* Correction des titres de sections */
.section-header {
    display: flex;
    align-items: flex-start;
}

.section-header .section-logo {
    flex: 0 0 45px;
}

.section-header h2 {
    flex: 1;
    margin-top: 0;
    padding-top: 0;
    line-height: 39px;
}

/* Publications */
.publications-list {
    margin-top: 30px;
}

.press-category-section {
    scroll-margin-top: calc(var(--header-height) + 90px);
}

.press-category-section .section-header {
    justify-content: flex-start;
    margin-bottom: 24px;
}

.press-category-section .section-header h2 {
    font-size: clamp(1.45rem, 2vw, 1.9rem);
}

.press-category-section .publications-list {
    margin-top: 18px;
}

.press-section-list {
    display: grid;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.press-category-card {
    background: #fff;
    border-radius: 24px;
    padding: clamp(1.25rem, 2.5vw, 2rem);
    border: 1px solid rgba(33, 101, 164, 0.1);
    box-shadow: 0 16px 32px rgba(18, 39, 73, 0.08);
}

.press-category-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.press-category-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(33, 101, 164, 0.14), rgba(0, 142, 194, 0.18));
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 56px;
    font-size: 1.2rem;
}

.press-category-heading {
    min-width: 0;
}

.press-category-heading h3 {
    margin: 0;
    color: var(--dark);
    font-size: 1.35rem;
    line-height: 1.25;
}

.press-category-heading p {
    margin: 0.25rem 0 0;
    color: var(--text-light);
    font-size: 0.88rem;
    line-height: 1.5;
}

.press-category-card .publications-list {
    margin-top: 1.25rem;
}

.publication-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: 0;
}

.press-empty-state {
    display: flex;
    justify-content: center;
    margin-top: 1.5rem;
}

.press-empty-card {
    width: min(100%, 640px);
    padding: 1.5rem;
    border-radius: 24px;
    background: #fff;
    border: 1px solid rgba(33, 101, 164, 0.1);
    box-shadow: 0 16px 32px rgba(18, 39, 73, 0.08);
    text-align: center;
}

.press-empty-card h3 {
    margin: 0 0 0.5rem;
    color: var(--dark);
    font-size: 1.05rem;
}

.press-empty-card p {
    margin: 0;
    color: var(--text-light);
    line-height: 1.65;
}

/* Style pour le nom du média */
.publication-media {
    color: #36a269;
    font-weight: 600;
    font-size: 16px;
    margin: 5px 0 8px 0;
    display: block;
}

/* Espacement pour les boutons Lire */
.btn.btn-primary, .btn.btn-success, .press-actions .btn {
    margin-top: 15px;
}

.publication-item {
    display: flex;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #eee;
}

.content-section[hidden],
.publication-item[hidden],
.external-link-card[hidden],
.press-toc-item[hidden],
.press-empty-state[hidden] {
    display: none !important;
}

.publication-date {
    flex: 0 0 120px;
    font-weight: 600;
    color: #008ec2;
    font-size: 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0.1rem;
    line-height: 1.1;
    padding-top: 0.15rem;
}
.publication-date .month {
    display: block;
    font-size: 0.8em;
    font-weight: 500;
    min-height: 1.05em;
    white-space: nowrap;
}

.publication-date .year {
    display: block;
    font-size: 1.05em;
    font-weight: 700;
    white-space: nowrap;
}

.publication-mobile-date {
    display: none;
}

.publication-main {
    flex: 1;
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.publication-image {
    flex: 0 0 150px;
}

.publication-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.publication-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.publication-header {
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
    flex-wrap: nowrap;
    width: 100%;
}

.publication-header-copy {
    min-width: 0;
    flex: 1;
    order: 1;
}

.publication-summary {
    margin: 0.45rem 0 0;
    color: #555;
    line-height: 1.6;
}

.publication-header-actions {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0.45rem;
    white-space: nowrap;
    flex-wrap: nowrap;
    flex: 0 0 auto;
    order: 0;
    padding-top: 0.1rem;
}

.publication-content h3 {
    font-size: 18px;
    margin: 0;
    color: #333;
    line-height: 1.35;
}

.publication-content h3 a {
    color: #333;
    text-decoration: none;
    transition: none;
}

.publication-content h3 a:hover {
    color: #008ec2;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 0.15em;
}

.publication-content p {
    color: #555;
    line-height: 1.6;
}

/* Style pour le nom du média */
.publication-media {
    font-size: 16px;
    font-weight: 600;
    color: #44A02E;
    margin-bottom: 10px;
}

/* Marge pour le bouton Lire */
.btn.btn-primary {
    margin-top: 15px;
}

.publication-content strong {
    color: #008ec2;
}

.press-action-button,
.press-gallery-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: none;
}

.press-action-button {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    background: var(--button);
    color: #fff;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
    flex: 0 0 36px;
}

.press-action-button:hover,
.press-action-button:focus-visible {
    background: #006d95;
    color: #fff;
}

.press-action-button i {
    font-size: 0.95rem;
    line-height: 1;
}

.publication-gallery-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.press-gallery-button {
    min-height: 32px;
    padding: 0 0.8rem;
    border-radius: 999px;
    background: rgba(0, 142, 194, 0.1);
    border: 1px solid rgba(0, 142, 194, 0.18);
    color: var(--button);
    font-weight: 600;
    gap: 0.4rem;
}

.press-gallery-button:hover,
.press-gallery-button:focus-visible {
    background: rgba(0, 142, 194, 0.16);
    color: var(--button);
}

.press-gallery-button i {
    font-size: 0.92rem;
}

.press-gallery-button span {
    line-height: 1;
}

.press-tooltip {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 10px);
    transform: translate(-50%, 8px);
    background-color: var(--dark);
    color: #fff;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 12px;
    line-height: 1.2;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    z-index: 2;
}

.press-tooltip::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -6px;
    transform: translateX(-50%);
    border-width: 6px 6px 0 6px;
    border-style: solid;
    border-color: var(--dark) transparent transparent transparent;
}

.press-action-button:hover .press-tooltip,
.press-action-button:focus-visible .press-tooltip,
.press-gallery-button:hover .press-tooltip,
.press-gallery-button:focus-visible .press-tooltip {
    opacity: 1;
    transform: translate(-50%, 0);
}

.publication-content h3 a {
    color: #333;
    text-decoration: none;
    transition: none;
}

.publication-content h3 a:hover,
.publication-content h3 a:focus-visible {
    color: #008ec2;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 0.15em;
}

/* Liens externes */
.external-links {
    display: flex;
    gap: 30px;
    margin-top: 24px;
}

.external-link-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 30px;
    flex: 1;
    text-align: center;
    transition: transform 0.3s ease;
}

.external-link-card:hover {
    transform: translateY(-5px);
}

.external-link-image {
    width: 100px;
    height: 100px;
    margin: 0 auto 20px;
    overflow: hidden;
    border-radius: 50%;
}

.external-link-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.external-link-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #008ec2;
}

.external-link-card p {
    color: #555;
    margin-bottom: 20px;
}

/* Revue de presse */
.research-content {
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    margin-top: 30px;
}

.highlight {
    font-size: 17px;
    color: #333;
    margin-bottom: 20px;
}

.press-list {
    margin-top: 30px;
}

.press-item {
    display: flex;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #eee;
}

.press-date {
    flex: 0 0 120px;
    font-weight: 600;
    color: #008ec2;
    font-size: 16px;
}

.press-content {
    flex: 1;
}

.press-content h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #333;
}

.press-content h3 a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.press-content h3 a:hover {
    color: #008ec2;
}

.press-content p {
    color: #555;
    line-height: 1.6;
    margin-bottom: 15px;
}

.press-content strong {
    color: #008ec2;
    font-weight: 600;
}

/* Styles pour les liens du media viewer */
.view-article {
    cursor: pointer;
}

.btn-sm {
    padding: 5px 12px;
    font-size: 14px;
}

.btn-lg {
    padding: 12px 30px;
    font-size: 16px;
}

.center-btn {
    text-align: center;
    margin-top: 30px;
}

/* Responsive */
@media (max-width: 992px) {
    .external-links {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .press-toc {
        padding-top: 8px;
    }

    .press-toc-card {
        border-radius: 20px;
        padding: 1rem;
    }

    .press-toc-header {
        align-items: flex-start;
    }

    .press-toc-link {
        gap: 0.6rem;
        padding: 0.78rem 0;
    }

    .press-toc-link::before {
        min-width: 1.7rem;
    }

    .press-category-section .section-header {
        margin-bottom: 18px;
    }

    .press-category-header {
        flex-direction: column;
    }

    .press-category-icon {
        width: 48px;
        height: 48px;
        flex-basis: 48px;
        font-size: 1rem;
    }

    .press-category-heading h3 {
        font-size: 1.2rem;
    }

    .press-category-card {
        padding: 1.05rem 1rem 1.1rem;
    }

    .publication-item {
        display: flex;
        flex-direction: column;
        gap: 0;
    }

    .publication-date {
        display: none;
    }

    .publication-main {
        flex-direction: column;
        gap: 0.85rem;
    }

    .publication-image {
        width: 100%;
        flex: 0 0 auto;
    }

    .publication-content {
        gap: 0.65rem;
    }

    .publication-header {
        flex-wrap: wrap;
        gap: 0.45rem 0.6rem;
        align-items: flex-start;
    }

    .publication-header-actions {
        justify-content: flex-start;
        flex-wrap: wrap;
        padding-top: 0;
        align-self: flex-start;
    }

    .publication-mobile-date {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        flex: 0 0 auto;
        min-width: 56px;
        color: #008ec2;
        font-weight: 600;
        font-size: 16px;
        line-height: 1.05;
        padding-top: 0.1rem;
    }

    .publication-mobile-date .month {
        display: block;
        font-size: 0.74em;
        font-weight: 500;
        min-height: 1.05em;
        white-space: nowrap;
    }

    .publication-mobile-date .year {
        display: block;
        font-size: 1em;
        font-weight: 700;
        white-space: nowrap;
    }

    .publication-header-copy {
        flex-basis: 100%;
        order: 2;
        min-width: 0;
        margin-top: 0.05rem;
    }

    .publication-gallery-actions {
        gap: 0.4rem;
    }

    .press-gallery-button {
        min-height: 30px;
        padding: 0 0.7rem;
        font-size: 0.82rem;
    }

    .press-item {
        flex-direction: column;
    }

    .press-date {
        margin-bottom: 10px;
    }

    .press-empty-card {
        padding: 1.2rem 1rem;
        border-radius: 20px;
    }
}
