/**************************** PAGE MESSAGES (ID 1923) **************************/

/********************************************************
   1 — FOND DE PAGE (IMMERSIF, COMME GALERIES)
*********************************************************/

body.page-id-1923 {
    background-image: url("https://www.amupcycling.fr/wp-content/uploads/2026/01/fd_publication_messages.webp") !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    background-attachment: fixed !important;
}


https://www.amupcycling.fr/wp-content/uploads/2026/01/fd_publication_messages_mob.webp
/********************************************************
   2 — DÉMASQUAGE TOTAL OCEANWP (CLÉ ABSOLUE)
   → IDENTIQUE AUX PAGES GALERIE
*********************************************************/

body.page-id-1923 #outer-wrap,
body.page-id-1923 #wrap,
body.page-id-1923 #main,
body.page-id-1923 .site-content,
body.page-id-1923 #content-wrap,
body.page-id-1923 #content {
    background: transparent !important;
    max-width: none !important;
    width: 100% !important;
}

/************************************************************
   PAGE 1923 — SUPPRESSION RÉELLE DU HEADER OCEANWP
   (alignement IDENTIQUE home / galeries)
*************************************************************/

body.page-id-1923 {
    margin-top: 0 !important;
}

/* Neutralisation complète du header fantôme */
body.page-id-1923 #site-header,
body.page-id-1923 #site-header-wrap,
body.page-id-1923 .page-header,
body.page-id-1923 .page-header-wrap {
    display: none !important;
    height: 0 !important;
    min-height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* IMPORTANT : forcer le layout plein écran */
body.page-id-1923 {
    padding-top: 0 !important;
}

/* Déverrouillage TOTAL du contenu */
body.page-id-1923 #outer-wrap,
body.page-id-1923 #wrap,
body.page-id-1923 #main,
body.page-id-1923 .site-content,
body.page-id-1923 #content-wrap,
body.page-id-1923 #content {
    margin-top: 0 !important;
    padding-top: 0 !important;
    max-width: none !important;
    width: 100% !important;
    background: transparent !important;
}
/************************************************************
   PAGE MESSAGES (1923) — DÉMASQUAGE OCEANWP (COMME GALERIES)
*************************************************************/

body.page-id-1923 #outer-wrap,
body.page-id-1923 #wrap,
body.page-id-1923 #main,
body.page-id-1923 .site-content,
body.page-id-1923 #content-wrap {
    background: transparent !important;
    max-width: none !important;
    width: 100% !important;
}
/********************************************************
   CORRECTION DÉCALAGE HAUT — HERO GUTENBERG
*********************************************************/

body.page-id-1923 .am-hero-wrap {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

body.page-id-1923 .am-hero-wrap > *:first-child {
    margin-top: 0 !important;
}

/********************************************************
   3 — SUPPRESSION DES ÉLÉMENTS HAUTS OCEANWP
*********************************************************/

body.page-id-1923 .page-header,
body.page-id-1923 .page-header-wrap,
body.page-id-1923 .breadcrumbs,
body.page-id-1923 h1 {
    display: none !important;
}

/********************************************************
   4 — POSITIONNEMENT DU CONTENU
   → même logique visuelle que les galeries
*********************************************************/

body.page-id-1923 #content-wrap {
    padding-top: 0 !important;
    padding-bottom: 80px !important;
}

body.page-id-1923 #content {
    margin: 0 auto !important;
    padding-top: 120px !important;
    max-width: 1400px;
    position: relative;
}

/********************************************************
   5 — ACCORDÉON : VOLET PRINCIPAL (SUJET)
*********************************************************/

.amup-thread {
    margin-bottom: 12px; /* respiration légère entre sujets */
}

/* ===== Volet principal (summary) ===== */
.amup-thread > summary.amup-thread-title {
    position: relative;
    display: block;
    width: 100%;

    /* Fond clair semi-translucide, en harmonie avec le décor */
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);

    color: #1e1e1e;
    padding: 18px 68px 18px 24px;
    border-radius: 18px;

    cursor: pointer;
    font-weight: 700;
    font-size: 15px;

    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    transition: background 0.25s ease, box-shadow 0.25s ease;
}

/* Hover : léger renforcement */
.amup-thread > summary.amup-thread-title:hover {
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 8px 26px rgba(0, 0, 0, 0.12);
}

/* Ouvert */
.amup-thread[open] > summary.amup-thread-title {
    background: rgba(255, 255, 255, 0.95);
}

/* ===== Compteur de messages ===== */
.amup-message-count {
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);

    background: rgba(0, 0, 0, 0.75);
    color: #ffffff;

    font-size: 13px;
    font-weight: 700;
    padding: 6px 12px;

    border-radius: 999px;
    line-height: 1;
    pointer-events: none;
}
/********************************************************
   7 — BOUTON "RÉPONDRE" DANS LA BARRE DU SUJET
   - centré
   - rouge
   - visible uniquement si l'accordéon est ouvert
*********************************************************/

/* 1) Le summary devient une "zone" de positionnement */
.amup-thread > summary.amup-thread-title{
    position: relative; /* déjà présent chez toi, on confirme */
}

/* 2) Bouton en position ABSOLUE au centre */
.amup-thread > summary.amup-thread-title .amup-reply-btn{
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);

    background: #ff0000;
    color: #ffffff !important;

    padding: 10px 18px;
    border-radius: 999px;

    font-weight: 800;
    text-decoration: none !important;

    display: none; /* caché par défaut */
    z-index: 5;
}

/* 3) Visible seulement quand le thread est ouvert */
.amup-thread[open] > summary.amup-thread-title .amup-reply-btn{
    display: inline-block;
}

/* Hover */
.amup-thread > summary.amup-thread-title .amup-reply-btn:hover{
    background: #c40000;
}

/* 4) Évite que le bouton masque le clic sur le summary en dehors du bouton */
.amup-thread > summary.amup-thread-title .amup-reply-btn{
    pointer-events: auto;
}
/********************************************************
   6 — SOUS-VOLETS (MESSAGES) — VERSION COMPACTE
*********************************************************/

.amup-sub-message {
    margin-left: 28px;               /* décalage à droite conservé */
}

/* Header du message (ligne fine) */
.amup-sub-message > summary.amup-sub-header {
    background: rgba(210, 214, 219, 0.85);
    color: #1e1e1e;

    padding: 6px 14px;               /* ⬅⬅ VRAIMENT plus fin */
    border-radius: 8px;

    margin-top: 6px;
    cursor: pointer;

    font-size: 14px;
    font-weight: 600;
}

/* SUPPRESSION des marges du H3 interne */
.amup-sub-message > summary.amup-sub-header h3 {
    margin: 0;                       /* ⬅ clé absolue */
    padding: 0;
    font-size: 14px;
    font-weight: 600;
}

/* Hover léger */
.amup-sub-message > summary.amup-sub-header:hover {
    background: rgba(200, 205, 211, 0.9);
}

/* État ouvert */
.amup-sub-message[open] > summary.amup-sub-header {
    background: rgba(190, 196, 203, 0.95);
}

/* Contenu du message */
.amup-message-content {
    margin-top: 6px;

    background: rgba(255, 255, 255, 0.72);
    border-radius: 10px;

    padding: 12px 16px;              /* plus compact aussi */
    font-size: 15px;
    line-height: 1.6;
    font-weight: 500;

    color: #1e1e1e;
}
/********************************************************
   6bis — DÉCALAGE VISUEL DES SOUS-ACCORDÉONS
   → hiérarchie claire sans casser l’alignement droit
*********************************************************/

.amup-sub-message {
    margin-left: 18px;                 /* décalage vers la droite */
    width: calc(100% - 18px);          /* compensation exacte */
}
/********************************************************
   7 — BOUTON RÉPONDRE (ROUGE, FORCÉ)
*********************************************************/

.amup-message-actions {
    margin-top: 14px;
}

.amup-message-actions .amup-reply-btn {
    background: #ff0000 !important;
    color: #ffffff !important;
    border-radius: 999px !important;
    padding: 10px 20px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    display: inline-block !important;
}

.amup-message-actions .amup-reply-btn:hover {
    background: #c40000 !important;
}

/********************************************************
   8 — MOBILE
*********************************************************/

@media (max-width: 820px) {

    body.page-id-1923 #content {
        padding-top: 100px !important;
    }
}