/* =====================================================================
   SouCorno.com - modal.css (theme sombre)
   Conserve les hooks JS/coreg : .modal .modal-content .testbox .close
   .bot_list input.buttonModal .downloadLink #regForm/#regFormNoProfil
   ===================================================================== */

/* The Modal (background) */
.modal {
    position: fixed;
    z-index: 100000; /* au-dessus du menu mobile */
    padding-top: 0px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0,0,0);
    background-color: rgba(4,4,7,0.86);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}

/* Modal Content */
.modal-content {
    margin: 4vh auto;
    padding: 0px;
    width: 440px;
}

/* Close */
.close {
    color: #9a9aae;
    float: right;
    padding-top: 8px;
    padding-right: 14px;
    font-size: 30px;
    font-weight: bold;
    z-index: 5;
    position: relative;
}
.close:hover, .close:focus {
    color: #fff;
    text-decoration: none;
    cursor: pointer;
}

fieldset, img { border:0 }
ol, ul, li { list-style:none }
:focus { outline:none }

.testbox {
    font-family: 'Inter','Open Sans',sans-serif;
    font-size: 16px;
    color: #ededf2;
    margin: 0 auto;
    width: 440px;
    border-radius: 16px;
    background: #15151d;
    background: linear-gradient(180deg,#191922 0%,#121218 100%);
    box-shadow: 0 30px 70px -20px rgba(0,0,0,.85), 0 0 0 1px rgba(232,57,28,.35), 0 0 60px -8px rgba(232,57,28,.45);
    border: 1px solid #3a2632;
    overflow: hidden;
}

/* Puces avantages */
.bot_list { list-style:none; width:auto; padding:0; margin:0; }
.bot_list li {
    font-size: 13px;
    padding-left: 24px;
    line-height: 20px;
    margin-bottom: 9px;
    color: #d9d9e2;
    text-align: left;
    position: relative;
}
.bot_list li:before {
    content: "\2713";
    position: absolute;
    left: 0; top: 0;
    color: #e0b15e;
    font-weight: bold;
}

/* Bouton principal du modal */
input.buttonModal {
    font-size: 16px;
    font-weight: 700;
    color: #1a1206;
    padding: 14px 20px;
    margin: 10px 0 5px 0;
    display: inline-block;
    text-decoration: none;
    width: 100%;
    background: linear-gradient(180deg,#eec079,#d59f42);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    box-sizing: border-box;
    box-shadow: 0 8px 22px -6px rgba(224,177,94,.55);
    transition: all .12s linear 0s;
}
input.buttonModal:hover { filter:brightness(1.05); transform:translateY(-1px); }

/* Lien de telechargement (etape 2) */
.downloadLink {
    font-size: 16px;
    font-weight: 700;
    color: #1a1206;
    margin: 10px auto;
    padding: 0 20px;
    display: inline-block;
    text-decoration: none;
    width: 90%;
    height: 45px;
    line-height: 45px;
    background: linear-gradient(180deg,#eec079,#d59f42);
    border: 0;
    border-radius: 10px;
    box-shadow: 0 8px 22px -6px rgba(224,177,94,.55);
    transition: all .12s linear 0s;
}
.downloadLink span { color:#1a1206; }
.downloadLink:hover { filter:brightness(1.05); transform:translateY(-1px); }

/* Champs texte du modal */
#regForm input[type=text], #regFormNoProfil input[type=text] {
    padding: 11px 10px !important;
    height: auto !important;
    width: 100% !important;
    border-radius: 8px !important;
    border: 1px solid #33333f !important;
    background: #0f0f15 !important;
    color: #ededf2 !important;
    font-size: 14px !important;
    box-sizing: border-box;
}
#regForm input[type=text]:focus, #regFormNoProfil input[type=text]:focus {
    border-color: #e8391c !important;
}

label.valid { color:#7fe0a6; font-weight:bold; }
label.error { display:block; width:100%; clear:both; font-weight:bold; color:#f2a0ac; padding:2px 0 0; font-size:13px; }

/* ===== Placeholder "photo privee" ===== */
.nophoto {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 200px;
    height: 100%;
    background: linear-gradient(160deg,#221019 0%,#171720 100%);
    color: #c9c9d4;
    text-align: center;
    box-sizing: border-box;
}
.nophoto .np-ico { font-size: 2.2em; line-height:1; margin-bottom:8px; opacity:.9; }
.nophoto .np-txt { font-size:.8em; letter-spacing:.04em; text-transform:uppercase; color:#8f8fa0; }

/* ===== FIX CTA : pas de debordement sur 2 lignes ===== */
input.buttonModal {
    height: auto !important;
    min-height: 45px;
    white-space: normal;
    word-break: break-word;
    line-height: 1.25;
}
.downloadLink {
    height: auto !important;
    min-height: 45px;
    line-height: 1.3 !important;
    white-space: normal;
    word-break: break-word;
    padding-top: 12px;
    padding-bottom: 12px;
    box-sizing: border-box;
}

/* ===== Mobile ===== */
@media (max-width: 480px) {
    .modal-content { width: 94% !important; margin: 3vh auto; }
    .testbox { width: 100% !important; box-sizing: border-box; }
    .bot_list { width: auto !important; }
    input.buttonModal { width: 100% !important; box-sizing: border-box; }
}
