/**
 * FICHE-PAIE.FR — Styles spécifiques : Page « Espace presse »
 *
 * Aucune couleur en hexadécimal en dur : uniquement les variables déclarées
 * dans tokens.css et style.css (README_TOKENS.md).
 *
 * @copyright 2025-2026 Purple Telecom EURL
 * @license   Proprietary - All Rights Reserved
 * @author    Fabien HIRIART <contact@polygonlab.ai>
 * @link      https://fiche-paie.fr/espace-presse
 */

/* ====================================
   STRUCTURE COMMUNE
   ==================================== */
.presse-container {
    max-width: var(--container-xl);
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.presse-container-etroit {
    max-width: var(--container-md);
}

.presse-section {
    padding: var(--space-3xl) 0;
}

.presse-section-entete {
    max-width: 760px;
    margin: 0 auto var(--space-2xl);
    text-align: center;
}

.presse-section-entete h2 {
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
    font-size: var(--font-size-3xl);
    color: var(--gp-bleu-marine);
    margin-bottom: var(--space-md);
}

.presse-section-chapo {
    font-size: var(--font-size-lg);
    color: var(--gray-600);
    line-height: 1.65;
    margin: 0;
}

/* Masquage visuel sans retrait de l'arbre d'accessibilité
   (retour du bouton « Copier » annoncé aux lecteurs d'écran) */
.presse-visuellement-masque {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    border: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

/* ====================================
   BLOC 1 — EN-TÊTE DE PAGE
   Version plus basse et plus sobre que la page partenaires
   ==================================== */
.presse-hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--gp-blanc);
    padding: var(--space-2xl) var(--space-lg);
    text-align: center;
}

.presse-hero-inner {
    max-width: 760px;
    margin: 0 auto;
}

.presse-surtitre {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: var(--font-size-sm);
    font-weight: 700;
    letter-spacing: 0.14em;
    color: var(--gp-turquoise);
    margin-bottom: var(--space-sm);
}

.presse-hero-titre {
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
    font-size: clamp(1.7rem, 3.5vw, 2.4rem);
    line-height: 1.2;
    color: var(--gp-blanc);
    margin-bottom: var(--space-md);
}

.presse-hero-chapo {
    font-size: var(--font-size-lg);
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.65;
    margin-bottom: var(--space-lg);
}

.presse-hero-actions {
    display: flex;
    justify-content: center;
}

.presse-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: var(--touch-target-min);
    padding: var(--space-sm) var(--space-xl);
    border-radius: 8px;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: var(--font-size-base);
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.presse-btn-primaire {
    background: var(--gp-turquoise);
    color: var(--gp-blanc);
}

.presse-btn-primaire:hover {
    background: var(--gp-blanc);
    color: var(--primary);
    transform: translateY(-1px);
}

/* ====================================
   BLOC 2 — TEXTES DE REPRISE
   ==================================== */
.presse-reprise {
    background: var(--gp-blanc);
}

.presse-reprise-liste {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
    max-width: var(--container-md);
    margin: 0 auto;
}

.presse-reprise-carte {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    padding: var(--space-xl);
}

.presse-reprise-entete {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
}

.presse-reprise-entete h3 {
    font-size: var(--font-size-lg);
    color: var(--gp-bleu-marine);
    margin: 0;
}

.presse-copier {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    min-height: var(--touch-target-min);
    padding: var(--space-xs) var(--space-md);
    background: var(--gp-blanc);
    color: var(--primary);
    border: 1.5px solid var(--gray-300);
    border-radius: 8px;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: var(--font-size-sm);
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.presse-copier:hover {
    background: var(--gp-gris-clair);
    border-color: var(--primary);
}

.presse-copier:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.presse-copier.est-copie {
    background: var(--gp-success);
    border-color: var(--gp-success);
    color: var(--gp-blanc);
}

.presse-reprise-texte {
    margin: 0;
    padding: 0 0 0 var(--space-lg);
    border-left: 3px solid var(--gp-turquoise);
    color: var(--gray-700);
    font-size: var(--font-size-base);
    line-height: 1.7;
}

/* ====================================
   BLOC 3 — LE SERVICE EN BREF
   ==================================== */
.presse-en-bref {
    background: var(--gray-100);
}

.presse-faits {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
    margin: 0;
}

.presse-fait {
    background: var(--gp-blanc);
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    padding: var(--space-lg) var(--space-xl);
}

.presse-fait dt {
    font-size: var(--font-size-sm);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--gp-turquoise);
    margin-bottom: var(--space-xs);
}

.presse-fait dt a {
    color: var(--gp-turquoise);
    text-decoration: underline;
}

.presse-fait dt a:hover {
    color: var(--gp-bleu-marine);
}

.presse-fait dd {
    margin: 0;
    color: var(--gray-700);
    line-height: 1.65;
}

.presse-fait dd a {
    color: var(--primary);
    text-decoration: underline;
}

.presse-fait dd a:hover {
    color: var(--primary-dark);
}

/* ====================================
   BLOC 4 — SUJETS
   ==================================== */
.presse-sujets {
    background: var(--gp-blanc);
}

.presse-sujets-liste {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.presse-sujets-liste li {
    position: relative;
    padding: var(--space-md) var(--space-lg) var(--space-md) var(--space-2xl);
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    color: var(--gray-700);
    line-height: 1.55;
}

.presse-sujets-liste li::before {
    content: "";
    position: absolute;
    left: var(--space-lg);
    top: 1.35em;
    width: 0.6em;
    height: 0.3em;
    border-left: 2px solid var(--gp-turquoise);
    border-bottom: 2px solid var(--gp-turquoise);
    transform: rotate(-45deg);
}

/* ====================================
   BLOC 5 — CONTACT PRESSE
   ==================================== */
.presse-contact {
    background: var(--gray-100);
}

.presse-contact-encadre {
    background: var(--gp-blanc);
    border: 1px solid var(--gray-200);
    border-left: 4px solid var(--gp-turquoise);
    border-radius: 12px;
    padding: var(--space-xl);
    text-align: center;
}

.presse-contact-icone {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: var(--gp-gris-clair);
    color: var(--primary);
    margin-bottom: var(--space-md);
}

.presse-contact-nom {
    color: var(--gray-700);
    font-size: var(--font-size-lg);
    margin-bottom: var(--space-sm);
}

.presse-contact-nom strong {
    color: var(--gp-bleu-marine);
}

.presse-contact-email {
    margin-bottom: var(--space-md);
}

.presse-contact-email a {
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--primary);
    text-decoration: underline;
}

.presse-contact-email a:hover {
    color: var(--primary-dark);
}

.presse-contact-mention {
    color: var(--gray-600);
    font-size: var(--font-size-sm);
    line-height: 1.6;
    margin: 0;
}

/* ====================================
   BLOC 6 — RESSOURCES
   ==================================== */
.presse-ressources {
    background: var(--gp-blanc);
}

.presse-ressources-liste {
    list-style: none;
    margin: 0 0 var(--space-lg);
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.presse-ressources-liste li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    padding: var(--space-sm) var(--space-lg);
}

.presse-ressource-lien {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    min-height: var(--touch-target-min);
    color: var(--primary);
    font-weight: 600;
    text-decoration: underline;
}

.presse-ressource-lien:hover {
    color: var(--primary-dark);
}

.presse-ressource-format {
    flex-shrink: 0;
    background: var(--gp-gris-clair);
    color: var(--gray-700);
    border-radius: 999px;
    padding: var(--space-xs) var(--space-md);
    font-size: var(--font-size-xs);
    font-weight: 700;
    letter-spacing: 0.06em;
}

.presse-ressources-mention {
    color: var(--gray-600);
    font-size: var(--font-size-sm);
    line-height: 1.65;
    margin: 0;
}

.presse-ressources-mention a {
    color: var(--primary);
    text-decoration: underline;
}

.presse-ressources-mention a:hover {
    color: var(--primary-dark);
}

/* ====================================
   BLOC 7 — COMMENT NOUS CITER
   ==================================== */
.presse-citer {
    background: var(--gray-100);
}

.presse-citer-liste {
    list-style: none;
    margin: 0 0 var(--space-xl);
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.presse-citer-liste li {
    position: relative;
    padding: var(--space-md) var(--space-lg) var(--space-md) var(--space-2xl);
    background: var(--gp-blanc);
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    color: var(--gray-700);
    line-height: 1.6;
}

.presse-citer-liste li::before {
    content: "";
    position: absolute;
    left: var(--space-lg);
    top: 1.35em;
    width: 0.6em;
    height: 0.3em;
    border-left: 2px solid var(--gp-turquoise);
    border-bottom: 2px solid var(--gp-turquoise);
    transform: rotate(-45deg);
}

.presse-citer-liste strong {
    color: var(--gp-bleu-marine);
}

.presse-citer-legal {
    color: var(--gray-500);
    font-size: var(--font-size-xs);
    line-height: 1.6;
    text-align: center;
    margin: 0;
}

/* ====================================
   RESPONSIVE — Tablette (< 992px)
   Points de rupture vérifiés : 1440, 1024, 768, 375 px
   ==================================== */
@media (max-width: 991px) {
    .presse-faits {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ====================================
   RESPONSIVE — Mobile (< 768px)
   ==================================== */
@media (max-width: 767px) {
    .presse-section {
        padding: var(--space-2xl) 0;
    }

    .presse-section-entete h2 {
        font-size: var(--font-size-2xl);
    }

    .presse-faits {
        grid-template-columns: 1fr;
    }

    .presse-reprise-entete {
        flex-direction: column;
        align-items: flex-start;
    }

    .presse-ressources-liste li {
        flex-direction: column;
        align-items: flex-start;
        padding: var(--space-md) var(--space-lg);
    }
}

/* ====================================
   RESPONSIVE — Smartphone (< 576px)
   ==================================== */
@media (max-width: 575px) {
    .presse-container {
        padding: 0 var(--space-md);
    }

    .presse-reprise-carte,
    .presse-fait,
    .presse-contact-encadre {
        padding: var(--space-lg);
    }

    .presse-btn {
        width: 100%;
    }
}

/* ====================================
   ACCESSIBILITÉ — Mouvement réduit
   ==================================== */
@media (prefers-reduced-motion: reduce) {
    .presse-btn,
    .presse-copier {
        transition: none;
    }

    .presse-btn:hover {
        transform: none;
    }
}
