/* =====================================================
   PAGE 224 — CARTE POSTALE
   VERSION STABLE — FORMULAIRE ENRICHI
===================================================== */

/* =====================================================
   VARIABLES GLOBALES
===================================================== */

body.page-id-224{
    --form-width: clamp(520px, 60vw, 720px);
    --form-margin-top: clamp(80px, 8vh, 120px);

    --font-size-label: clamp(14px, 1.2vw, 16px);
    --font-size-input: clamp(14px, 1.2vw, 15px);
}

/* =====================================================
   FOND DE PAGE
===================================================== */

body.page-id-224{
    background-image: url("https://www.amupcycling.fr/wp-content/uploads/2026/01/fd-correspondance.webp");
    background-position: center top;
    background-size: 100% auto;
    background-repeat: repeat-y;
    background-color: #f6f1e3;
    overflow-x: hidden;
}
/************************************************************
    FONDS DE PAGES (MOBILE)
*************************************************************/

@media (max-width: 768px) {
    body.page-id-224{
        background-image: url("https://www.amupcycling.fr/wp-content/uploads/2026/01/fd-correspondance_mob.webp") !important;
    }
}

/* =====================================================
   HEADER / FOOTER — MASQUÉS
===================================================== */

body.page-id-224 #site-header,
body.page-id-224 #site-header-wrap,
body.page-id-224 #site-header-inner,
body.page-id-224 #site-navigation-wrap,
body.page-id-224 #top-bar-wrap,
body.page-id-224 #top-bar,
body.page-id-224 #site-logo,
body.page-id-224 .site-title,
body.page-id-224 h1,
body.page-id-224 footer,
body.page-id-224 #footer,
body.page-id-224 #copyright,
body.page-id-224 .breadcrumbs,
body.page-id-224 .menu-search-toggle,
body.page-id-224 .search-toggle,
body.page-id-224 .search-toggle-li{
    display: none !important;
}

/* =====================================================
   CONTENEUR PRINCIPAL
===================================================== */

body.page-id-224 #content-wrap{
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    padding: 60px 0 140px;
    background: transparent !important;
}

/* =====================================================
   FORMULAIRE — CARTE PAPIER
===================================================== */

body.page-id-224 form{
    margin: var(--form-margin-top) auto 0 auto;
    width: var(--form-width);
    max-width: 92%;

    position: relative;
    z-index: 10;

    background: rgba(255,255,255,0.25);
    backdrop-filter: blur(6px);

    padding: 32px 36px 40px;
    border-radius: 18px;
}

/* =====================================================
   CHAMPS
===================================================== */

body.page-id-224 form label{
    display: block;
    margin-bottom: 6px;
    font-weight: 700;
    font-size: var(--font-size-label);
    color: #1f3a52;
}

body.page-id-224 form input,
body.page-id-224 form textarea,
body.page-id-224 form select{
    width: 100%;
    background-color: #e9f3fb;
    border: 1px solid #b8d4ec;
    border-radius: 6px;
    padding: 10px 12px;
    font-size: var(--font-size-input);
    box-sizing: border-box;
}

body.page-id-224 form textarea{
    min-height: clamp(200px, 26vh, 300px);
    resize: vertical;

    font-family: Georgia, "Times New Roman", serif;
    font-size: 16px;
    line-height: 1.6;
}

/* =====================================================
   BOUTON STANDARD
===================================================== */

body.page-id-224 form button[type="submit"],
body.page-id-224 form input[type="submit"]{
    display: block !important;

    margin: 42px auto 0 auto;
    padding: 16px 36px;

    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.08em;

    border-radius: 999px;
    border: none;

    background: #aa2828;
    color: #ffffff;

    cursor: pointer;
    text-align: center;

    box-shadow: 0 12px 28px rgba(0,0,0,0.25);
    transition: transform .2s ease, box-shadow .2s ease;
}

body.page-id-224 form button[type="submit"]:hover,
body.page-id-224 form input[type="submit"]:hover{
    transform: translateY(-2px);
    box-shadow: 0 16px 34px rgba(0,0,0,0.3);
}

body.page-id-224 form button[type="submit"]:active,
body.page-id-224 form input[type="submit"]:active{
    transform: translateY(1px) scale(0.98);
    box-shadow: 0 8px 18px rgba(0,0,0,0.25);
}

/* =====================================================
   MESSAGE DE REMERCIEMENT — CARTE FINALE
===================================================== */

.amup-thankyou{
    margin: 120px auto 0 auto;
    width: var(--form-width);
    max-width: 92%;

    background: rgba(233,243,251,0.96);
    padding: 48px 56px 56px;
    border-radius: 28px;

    box-shadow: 0 24px 60px rgba(0,0,0,0.25);
    color: #1f3a52;
    line-height: 1.75;

    position: relative;
    z-index: 60;
}

.amup-thankyou *{
    color: #1f3a52 !important;
    box-sizing: border-box;
}

/* lignes d'information */
.amup-thankyou-inner > div{
    margin-bottom: 14px;
    font-size: 16px;
}

/* message utilisateur */
.amup-thankyou-inner > div:nth-child(4){
    margin: 28px 0;
    padding: 20px 22px;
    background: rgba(255,255,255,0.65);
    border-radius: 14px;

    font-family: Georgia, "Times New Roman", serif;
    font-size: 17px;
    line-height: 1.65;
}

/* texte de confirmation */
.amup-thankyou-confirm{
    margin-top: 32px;
    font-size: 18px;
    font-weight: 600;
}

/* =====================================================
   BOUTON — NOUVEAU MESSAGE (ROUGE CENTRÉ)
===================================================== */

.amup-new-message{
    display: block;
    margin: 42px auto 0 auto;
    padding: 16px 38px;

    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.08em;

    border-radius: 999px;
    border: none;

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

    cursor: pointer;
    text-align: center;

    box-shadow: 0 12px 28px rgba(0,0,0,0.25);
    transition: transform .2s ease, box-shadow .2s ease;
}

.amup-new-message:hover{
    transform: translateY(-2px);
    box-shadow: 0 18px 36px rgba(0,0,0,0.3);
}

.amup-new-message:active{
    transform: translateY(1px) scale(0.97);
    box-shadow: 0 8px 18px rgba(0,0,0,0.25);
}

/* =====================================================
   TEXTE D’INTENTION — DROITE (DISCRET)
===================================================== */

body.page-id-224::after{
    content: "Une correspondance, un geste, un regard.";
    position: fixed;
    right: 6%;
    top: 45%;
    font-size: clamp(18px, 2vw, 28px);
    color: rgba(31,58,82,0.15);
    font-style: italic;
    pointer-events: none;
}

/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 820px){

    body.page-id-224{
        background-image: url("https://www.amupcycling.fr/wp-content/uploads/2025/12/fd-enveloppe_mobile.jpg");
        background-size: cover;
        background-repeat: no-repeat;
    }

    body.page-id-224 form{
        width: 92%;
        padding: 28px 24px 32px;
        margin: 120px auto 0 auto;
    }

    body.page-id-224::after{
        display: none;
    }
}

/* =====================================================
   CORRECTION — VISIBILITÉ MESSAGE DE REMERCIEMENT
===================================================== */

.amup-thankyou{
    position: relative;
    z-index: 50;
}

/* s’assurer qu’il passe au-dessus du texte décoratif */
body.page-id-224::after{
    z-index: 1;
}

/* =====================================================
   BOUTON — ÉTAT EN COURS D’ENVOI
===================================================== */

body.page-id-224 form button.is-loading{
    pointer-events: none;
    opacity: 0.85;
}

body.page-id-224 form button.is-loading::after{
    content: "";
    display: inline-block;
    width: 18px;
    height: 18px;
    margin-left: 12px;

    border: 2px solid rgba(255,255,255,0.4);
    border-top-color: #ffffff;
    border-radius: 50%;

    animation: amup-spin 0.8s linear infinite;
    vertical-align: middle;
}

@keyframes amup-spin{
    to { transform: rotate(360deg); }
}

@media (max-width: 768px) {
    body.page-id-224{
        background-image: url("https://www.amupcycling.fr/wp-content/uploads/2026/01/fd-correspondance_mob.webp") !important;
    }
}