/* ===========================================================
   Aratice — Salle de presse
   Mosaïque 3 colonnes. Cards : image / video / text / text_cta.
   Format de chaque card via classe modificateur.
   =========================================================== */

.aratice-presse {
    --ap-bg: #163C79;
    --ap-blue: #163C79;
    --ap-green: #8FB960;
    --ap-radius: 18px;

    position: relative;
    width: 100%;
    background: var(--ap-bg);
    padding: 60px 40px 80px;
    overflow: visible;
    font-family: 'Lexend Deca', 'Lexend', sans-serif;
    color: #fff;
}

.aratice-presse * { box-sizing: border-box; }

.aratice-presse__titre {
    margin: 0 0 32px;
    font-size: clamp(24px, 2.2vw, 32px);
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.5px;
}

/* ===== Grille mosaïque ===== */
.aratice-presse__grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 230px;
    grid-auto-flow: dense;
    gap: 16px;
}

.aratice-presse__card--wide   { grid-column: span 2; grid-row: span 2; }
.aratice-presse__card--tall   { grid-column: span 1; grid-row: span 2; }
.aratice-presse__card--square { grid-column: span 1; grid-row: span 1; }

/* ===== Card de base ===== */
.aratice-presse__card {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: var(--ap-radius);
    text-decoration: none;
    color: inherit;
    transition: transform 0.25s ease;
    isolation: isolate;
    border: 0 !important;
    outline: 0 !important;
    padding: 0 !important;
    box-shadow: none !important;
}
.aratice-presse__card:hover {
    transform: translateY(-4px);
}

/* ===== Card image / video : full-bleed image + overlay ===== */
.aratice-presse__img {
    position: absolute !important;
    inset: 0 !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    object-fit: cover !important;
    display: block !important;
    transition: transform 0.5s ease;
    z-index: 0;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
}
.aratice-presse__card--image:hover .aratice-presse__img,
.aratice-presse__card--video:hover .aratice-presse__img {
    transform: scale(1.04);
}

.aratice-presse__card--image::after,
.aratice-presse__card--video::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0.1) 30%, rgba(0,0,0,0.15) 55%, rgba(0,0,0,0.75) 100%);
    pointer-events: none;
    z-index: 1;
}

.aratice-presse__eyebrow {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--ap-green);
}

.aratice-presse__titre-card {
    margin: 0;
    font-size: clamp(16px, 1.3vw, 20px);
    line-height: 1.25;
    font-weight: 700;
    color: var(--card-color, var(--ap-blue));
}

.aratice-presse__card--image .aratice-presse__titre-card,
.aratice-presse__card--video .aratice-presse__titre-card {
    color: #fff;
}

.aratice-presse__btn-label {
    color: var(--card-color, #fff);
}
.aratice-presse__source-footer {
    color: var(--card-color, var(--ap-blue));
    opacity: 0.85;
}
.aratice-presse__card--image .aratice-presse__source-footer,
.aratice-presse__card--video .aratice-presse__source-footer {
    color: #fff;
    opacity: 0.92;
}
.aratice-presse__card--image .aratice-presse__btn-label,
.aratice-presse__card--video .aratice-presse__btn-label {
    color: #fff;
}

/* ===== Bouton play vidéo ===== */
.aratice-presse__play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #E64A2A;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
    transition: transform 0.2s ease, background 0.2s ease;
}
.aratice-presse__play svg { margin-left: 3px; }
.aratice-presse__card--video:hover .aratice-presse__play {
    transform: translate(-50%, -50%) scale(1.08);
    background: #FF5A3A;
}

/* ===== Card texte / text_cta ===== */
.aratice-presse__card--text,
.aratice-presse__card--text_cta {
    background: var(--card-bg, #fff);
    color: var(--card-color, var(--ap-blue));
}

/* ===== Wrapper de contenu commun à tous les types ===== */
.aratice-presse__txt {
    position: relative;
    z-index: 2;
    padding: 22px 24px;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.aratice-presse__card--image .aratice-presse__txt,
.aratice-presse__card--video .aratice-presse__txt {
    color: #fff;
}

.aratice-presse__card--text_cta .aratice-presse__eyebrow,
.aratice-presse__card--text_cta .aratice-presse__source-footer,
.aratice-presse__card--text_cta .aratice-presse__titre-card {
    color: var(--card-color, #fff);
}

.aratice-presse__txt .aratice-presse__titre-card {
    margin: 0;
}

.aratice-presse__txt-footer {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 13px;
    font-weight: 600;
}

.aratice-presse__date { color: var(--ap-green); font-weight: 600; }

.aratice-presse__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--card-color, #fff);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.2px;
}
.aratice-presse__btn-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.22);
    color: var(--card-color, #fff);
    transition: transform 0.2s ease, background 0.2s ease;
}
.aratice-presse__card--text_cta:hover .aratice-presse__btn-arrow {
    background: rgba(255, 255, 255, 0.38);
    transform: translate(2px, -2px);
}

/* ===== Bouton bas "Salle de presse complète" ===== */
.aratice-presse__bottom {
    position: relative;
    z-index: 2;
    margin-top: 32px;
    display: flex;
    justify-content: center;
}

.aratice-presse__cta-main {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    background: #fff;
    color: var(--ap-blue);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-decoration: none;
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.aratice-presse__cta-main:hover {
    background: var(--ap-green);
    color: #fff;
    transform: translateY(-2px);
}

/* ===== Décor cercles ===== */
.aratice-presse__decor {
    position: absolute;
    z-index: 1;
    pointer-events: none;
}
.aratice-presse__decor--left {
    left: -40px;
    bottom: -40px;
}
.aratice-presse__decor--right {
    right: -60px;
    top: -60px;
}

/* ===========================================================
   RESPONSIVE
   =========================================================== */

@media (max-width: 1024px) {
    .aratice-presse {
        padding: 50px 24px 60px;
    }

    .aratice-presse__grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 200px;
    }

    .aratice-presse__card--wide   { grid-column: span 2; grid-row: span 2; }
    .aratice-presse__card--tall   { grid-column: span 1; grid-row: span 2; }
    .aratice-presse__card--square { grid-column: span 1; grid-row: span 1; }
}

@media (max-width: 600px) {
    .aratice-presse {
        padding: 40px 16px 48px;
    }

    .aratice-presse__grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 220px;
        gap: 14px;
    }

    .aratice-presse__card--wide,
    .aratice-presse__card--tall,
    .aratice-presse__card--square {
        grid-column: span 1;
        grid-row: span 1;
    }

    .aratice-presse__txt { padding: 18px 20px; }

    .aratice-presse__cta-main {
        padding: 14px 24px;
        font-size: 12px;
    }
}
