/**
 * Phyz App — tunnel.css
 * Styles du tunnel d'inscription. Utilise les mêmes variables que account.css (telepac.css).
 * Ces deux fichiers cohabitent sans conflits.
 */

/* ==========================================================================
   VARIABLES (synchronisées avec account.css)
   ========================================================================== */
:root {
    --phyz-primary:        #53A10F;
    --phyz-primary-dark:   #3d7a0b;
    --phyz-primary-bg:     #EFF7E6;
    --phyz-text:           #242020;
    --phyz-text-secondary: #666561;
    --phyz-bg:             #F0F0F0;
    --phyz-white:          #FFFFFF;
    --phyz-border:         #E5E7EB;
    --phyz-success:        #22c55e;
    --phyz-error:          #ef4444;
    --phyz-shadow:         0 4px 6px -2px rgba(0,0,0,.1), 0 2px 4px -1px rgba(0,0,0,.16);
    --phyz-shadow-lg:      0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -2px rgba(0,0,0,.05);
    --phyz-radius:         12px;
    --phyz-radius-sm:      8px;
    --phyz-transition:     all 0.3s ease;
}

.post-title-wrapper{
    display: none;
}

.page-id-160614 .page-body {
    background-color: #F0F0F0 !important;
}

.logo_tunnel{
    width:180px
}

.page-id-160614 .row-parent{
    padding: 0px 0 !important;
}

input#t-prenom:focus, input#t-prenom:focus-within,
input#t-nom:focus, input#t-nom:focus-within,
input#t-email:focus, input#t-email:focus-within,
input#t-password:focus, input#t-password:focus-within,
input#t-tva:focus, input#t-tva:focus-within,
input#t-address1:focus, input#t-address1:focus-within,
input#t-address2:focus, input#t-address2:focus-within,
input#t-postcode:focus, input#t-postcode:focus-within,
input#t-city:focus, input#t-city:focus-within,
input#t-phone:focus, input#t-phone:focus-within,
input#t-raison-sociale:focus, input#t-raison-sociale:focus-within,
input#t-siret:focus, input#t-siret:focus-within
{
    border:none !important
}

.cgv{
    text-decoration: none !important;
    color: var(--phyz-primary) !important;
}

.page-id-160614 .menu-container{
    display:none !important
}

.page-id-160614 .top-menu{
    display: none !important;
}

.page-id-160614 footer#colophon{
    display: none !important;
}

.first_champs{
    margin-bottom: 24px;
}


#price-annual span {
    color: var(--phyz-text-secondary) !important;
}

.disc_abo{
    font-size: 12px !important;
    margin: 0 24px 24px 24px;
    font-weight: 500 !important;
}

.phyz-coupon-detail {
    background: var(--phyz-white);
    padding: 16px;
    margin-top: 0px;
    font-size: 14px;
    line-height: 1.8;
    margin-bottom:30px;
    position:relative;
    top:-12px;
    border-radius: 4px;
}
.phyz-coupon-detail-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--phyz-text);
    margin-bottom: 8px;
}
.phyz-coupon-detail-header svg { color: var(--phyz-primary); flex-shrink: 0; }
.phyz-coupon-detail p { margin: 0; color: var(--phyz-text-secondary); }
.phyz-coupon-detail p strong { color: var(--phyz-text) !important; font-weight:700 }

span#coupon-title{
    font-size: 18px !important;
}

span#coupon-amount, span#coupon-expires{
    color: var(--phyz-text) !important; font-weight: 500 !important;
}


.phyz-pwd-criteria {
    list-style: none;
    margin: 8px 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0px;
    padding-left: 0 !important;
}
.phyz-pwd-criteria .crit {
    font-size: 10px;
    color: var(--phyz-text-secondary);
    padding-left: 18px;
    position: relative;
    transition: color .2s;
}
.phyz-pwd-criteria .crit::before {
    content: '✕';
    position: absolute;
    left: 0;
    color: #ccc;
    font-size: 11px;
    transition: all .2s;
}
.phyz-pwd-criteria .crit.ok { color: var(--phyz-text); }
.phyz-pwd-criteria .crit.ok::before { content: '✓'; color: var(--phyz-primary); }

.phyz-pwd-criteria li{
    list-style: none !important;
}


/* ==========================================================================
   RESET
   ========================================================================== */
.phyz-tunnel-wrap *, .phyz-tunnel-wrap *::before, .phyz-tunnel-wrap *::after {
    box-sizing: border-box;
}
.phyz-tunnel-wrap {
    font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--phyz-text);
    background: var(--phyz-bg);
    padding-top: 28px;
    /*min-height: 100vh;*/
}

/* ==========================================================================
   HEADER TUNNEL
   ========================================================================== */
.phyz-tunnel-header {

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    position: sticky;
    top: 0;
    z-index: 100;
}
.phyz-tunnel-logo { display: flex; align-items: center; }
.phyz-tunnel-tagline {
    font-size: 16px;
    color: var(--phyz-text);
    font-weight: 500;
    margin-top:0
}


/* ==========================================================================
   BODY / CONTENU
   ========================================================================== */
.phyz-tunnel-body {
    max-width: 480px;
    margin: 0 auto;
    padding-top: 0px;
    padding-bottom: 60px;
    min-height: 100vh;
}
.phyz-tunnel-step-content { padding: 24px 20px; }
.phyz-tunnel-h2 { font-size: 24px !important; font-weight: 700; color: white !important; margin: 0 0 4px; }
.phyz-tunnel-sub { font-size: 14px; color: var(--phyz-text-secondary); margin: 0 0 20px; line-height: 1.5; }

/* ==========================================================================
   FORMULAIRES (identiques à account.css / telepac.css)
   ========================================================================== */
.phyz-tunnel-form { margin-bottom: 24px; }
.phyz-form.form_address { padding: 0 !important; background: transparent !important; }

.champ_adresse {
    border-bottom: 2px solid #f4f4f4;
    padding: 14px 16px;
    background: var(--phyz-white);
}
.champ_adresse:first-of-type { border-top-left-radius: 4px; border-top-right-radius: 4px; }
.champ_adresse:last-of-type  { border-bottom: none; border-bottom-left-radius: 4px; border-bottom-right-radius: 4px; }
.champ_adresse label { display: block; font-size: 16px !important; font-weight: 500 !important; color: var(--phyz-text-secondary); margin-bottom: 4px; }
.champ_adresse input {
    display: block; width: 100%; border: none; outline: none;
    box-shadow: none !important; font-family: inherit;
    font-size: 16px !important; font-weight: 500 !important;
    color: var(--phyz-text); padding: 0; background: transparent; margin: 0;
}
.champ_adresse input::placeholder { color: #BFBEBB; font-weight: 400; }

/* Mot de passe */
.phyz-pwd-wrap { display: flex; align-items: center; gap: 8px; }
.phyz-eye-btn { flex-shrink: 0; background: none; border: none; cursor: pointer; color: var(--phyz-text-secondary); padding: 4px; display: flex; align-items: center; transition: color .2s;    position: relative;
    top: -14px;
 }
 .phyz-eye-btn:hover{background-color:transparent !important}
.phyz-eye-btn:hover { color: var(--phyz-primary); }
.phyz-help { font-size: 12px; color: var(--phyz-text-secondary); margin-top: 4px; display: block; }

/* Obligatoire */
.phyz-required { color: var(--phyz-error); margin-left: 2px; }
.phyz-required-note { font-size: 12px; color: var(--phyz-text-secondary); margin: 8px 0 0; }

/* ==========================================================================
   RGPD CHECKBOX
   ========================================================================== */
.phyz-rgpd-wrap { display: flex; align-items: center; gap: 10px; margin: 16px 0 0px; cursor: pointer; }
.phyz-rgpd-wrap input[type="checkbox"] { margin-top: 2px; flex-shrink: 0; width: 24px; height: 24px; accent-color: var(--phyz-primary); cursor: pointer; border: 2px solid var(--phyz-text);background: transparent !important; }
.phyz-rgpd-wrap input[type="checkbox"]:checked {background-color: var(--phyz-primary) !important;border-color:var(--phyz-primary)}

.phyz-rgpd-wrap input[type="checkbox"]:checked:before{
    color:white !important;
    line-height: 1.2em !important;
    font-size: 16px !important;
}
.phyz-rgpd-text { font-size: 12px; color: var(--phyz-text); line-height: 1.5; }


/* ==========================================================================
   CTA PRINCIPAL
   ========================================================================== */
.phyz-btn {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    width: 100%; padding: 16px 24px; border: none;
    font-family: inherit; font-size: 18px; font-weight: 500;
    cursor: pointer; transition: var(--phyz-transition);
    text-decoration: none; margin-top: 8px;
    min-height: 96px;
}
.phyz-tunnel-cta { background: #DADADA; color: var(--phyz-white); }
.phyz-tunnel-cta:not(:disabled),
.phyz-tunnel-cta.phyz-cta-active  { background: var(--phyz-primary); }
.phyz-tunnel-cta:not(:disabled):hover,
.phyz-tunnel-cta.phyz-cta-active:hover { background: var(--phyz-primary-dark); transform: translateY(-1px); box-shadow: var(--phyz-shadow); }
.phyz-tunnel-cta:disabled { cursor: not-allowed; }

/* Loader dans le bouton */
.phyz-btn-loader {
    display: none; width: 18px; height: 18px;
    border: 2px solid rgba(255,255,255,.4); border-top-color: #fff;
    border-radius: 50%; animation: phyz-spin .7s linear infinite; flex-shrink: 0;
}
.phyz-btn.loading .btn-label   { opacity: .7; }
.phyz-btn.loading .phyz-btn-loader { display: inline-block; }
@keyframes phyz-spin { to { transform: rotate(360deg); } }

/* Erreur */
.phyz-tunnel-error { font-size: 13px; font-weight: 500; color: var(--phyz-error); min-height: 20px; margin: 8px 0 0; line-height: 1.4; }

/* Lien connexion */
.phyz-tunnel-login-hint { text-align: center; font-size: 13px; color: var(--phyz-text-secondary); margin: 16px 0 0; }
.phyz-tunnel-login-hint a { color: var(--phyz-primary); font-weight: 600; text-decoration: none; }
.phyz-tunnel-login-hint a:hover { text-decoration: underline; }

/* ==========================================================================
   ÉTAPE 3 — VIDÉO
   ========================================================================== */
.phyz-tunnel-video-wrap {
    position: relative; width: 100%; padding-top: 56.25%;
    overflow: hidden; background: #111; margin-bottom: 20px;
}
.phyz-tunnel-video-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: none; }

/* ==========================================================================
   ÉTAPE 3 — CODE PROMO
   ========================================================================== */
.phyz-promo-block { margin-bottom: 0px; }
.phyz-promo-row {
    display: flex; align-items: stretch;
    background: var(--phyz-white); overflow: hidden; min-height: 84px !important;border-radius: 4px;
    
}
.phyz-promo-row:focus-within { border-color: var(--phyz-primary); }
.phyz-promo-row input[type="text"] {
    flex: 1; border: none; outline: none; padding: 14px 16px;
    font-family: inherit; font-size: 16px; font-weight: 500;
    color: var(--phyz-text); background: transparent; letter-spacing: .05em;
    margin-top: 0 !important;
}
.phyz-promo-row input::placeholder { color: #666561; font-weight: 500; letter-spacing: 0; font-size: 16px; }
.phyz-btn-promo {
    display: flex; align-items: center; gap: 8px; padding: 0 20px;
    background: transparent; color: #B6B6B6; border: none;
    font-family: inherit; font-size: 16px; font-weight: 500; cursor: pointer;
    white-space: nowrap;
}
.phyz-btn-promo:hover { background: transparent; }
.phyz-promo-feedback { font-size: 16px; font-weight: 500; min-height: 18px; line-height: 1.4; position: relative;
    top: -28px;
    left: 14px;}
.phyz-promo-feedback.success { color: white; color:var(--phyz-primary) }
.phyz-promo-feedback.error   { color: #E90B0B; }

.phyz-promo-row.has-error   { border: 1px solid; border-color: var(--phyz-error); background: #FFD5D5; }
.phyz-promo-row.has-success { border-color: var(--phyz-primary); }
.phyz-btn-promo.has-error{border: 1px solid #E90B0B; background: #FFD5D5;}

/* ==========================================================================
   ÉTAPE 3 — CARTE OFFRE
   ========================================================================== */
.phyz-offer-card { background: var(--phyz-white); border-radius: 16px; overflow: hidden; box-shadow: var(--phyz-shadow); margin-bottom: 20px; }
.phyz-offer-top { padding: 20px; }
.phyz-offer-badge {
    display: inline-block; background: rgba(255,255,255,.25); color: #fff;
    font-size: 11px; font-weight: 600; padding: 3px 10px; border-radius: 999px;
    letter-spacing: .05em; text-transform: uppercase; margin-bottom: 8px;
}
.phyz-offer-name { font-size: 24px !important; font-weight: 700; color: #fff; margin: 0; }
.phyz-offer-pricing { display: flex; align-items: baseline; gap: 12px; padding: 0px 20px 0px; }

.phyz-offer-price-main  { display: flex; align-items: flex-start; gap: 0; }
.phyz-price-int         { font-size: 80px; font-weight: 500; color: var(--phyz-text); line-height: 1; }
.phyz-price-right       { display: flex; flex-direction: column; justify-content: flex-start; padding-top: 10px; }
.phyz-price-bottom       { display: flex; flex-direction: row; justify-content: flex-start; padding-top: 10px; }

.phyz-price-top         { display: flex; align-items: baseline; font-size: 24px; font-weight: 500; color: var(--phyz-text); line-height: 1; }
.phyz-price-sep         { font-size: 24px; font-weight: 500; }
.phyz-price-dec         { font-size: 24px; font-weight: 500; }
.phyz-price-cur         { font-size: 24px; font-weight: 500; }
.phyz-price-period      { font-size: 16px; color: var(--phyz-text); font-weight: 500; margin-top: 10px; }

.phyz-offer-price-crossed { font-size: 14px; color: var(--phyz-text-secondary); text-decoration: line-through; font-weight: 500; }
.phyz-offer-annual { font-size: 16px; color: var(--phyz-text-secondary); margin: 0px 0 0; padding: 0 20px; }
.phyz-offer-annual strong { color: var(--phyz-text); }
.phyz-offer-divider { height: 1px; background: var(--phyz-border); margin: 16px 20px 0; }
.phyz-offer-features { list-style: none; margin-top: 24px; padding: 16px 20px 20px; display: flex; flex-direction: column; gap: 10px; }
.phyz-offer-features li { display: flex; align-items: center; gap: 10px; font-size: 16px; color: var(--phyz-text); font-weight: 500; }
.phyz-offer-features li svg { flex-shrink: 0; }

/* ==========================================================================
   ÉTAPE 4 — DROPZONE (même style que account.css / telepac.css)
   ========================================================================== */
.phyz-tunnel-dz-body { padding: 24px 0px; text-align: center; }
.phyz-dropzone-container { max-width: 100%; margin: 0 auto; }
.phyz-upload-header { margin: 0 auto 24px; }
.phyz-upload-icon { margin-bottom: 16px; }
.phyz-upload-header p { font-size: 16px; color: var(--phyz-text-secondary); line-height: 1.2; margin-top: 16px; }
.phyz-upload-header strong { color: var(--phyz-text); }
.dropzone_outer{
    padding-left:28px;
    padding-right:28px;
    margin-bottom:48px
}
.phyz-dropzone-wrapper { margin: 0 auto 0px;}
.dashed_zone{
    border: 2px dashed white;
    padding: 8px;
    border-radius: 8px;
}
.phyz-dropzone {
    border-radius: 8px; padding: 32px 16px;
    background: var(--phyz-white); cursor: pointer; transition: var(--phyz-transition);
    width:100%;
    min-height: 250px;
    display: flex;
    justify-content: center;
}

#dz-state-idle  { display: flex; align-items: center; justify-content: center; }
#dz-state-done  { display: flex; flex-direction: column; align-items: center; gap: 10px; }
#dz-filename    { margin: 0; font-size: 13px; font-weight: 600; color: var(--phyz-text); word-break: break-all; }
.phyz-dz-delete {
    background: none; color: #A90C0C !important;
    font-family: inherit; font-size: 16px !important; font-weight: 600;
    padding: 6px 16px; cursor: pointer;
    text-decoration: underline;
}
.phyz-dz-delete:hover { background: var(--phyz-error); color: #fff; }


.phyz-dropzone:hover, .phyz-dropzone.dz-drag-hover { border-color: var(--phyz-primary); }
.phyz-dropzone .dz-message { display: flex; flex-direction: row-reverse; justify-content: space-between; align-items: center; gap: 12px; padding: 0 8px; }
.phyz-dropzone .dz-message p { margin: 0; font-size: 16px; font-weight: 600; color: var(--phyz-text); text-align: left; }
.phyz-dropzone .dz-message span { display: block; font-size: 13px; color: var(--phyz-text-secondary); margin-top: 4px; }
.phyz-dropzone .dz-preview { display: none !important; }
.phyz-progress { margin: 12px 0; padding: 14px; background: var(--phyz-white); border-radius: var(--phyz-radius-sm); text-align: left; }
.phyz-progress-bar { height: 6px; background: var(--phyz-bg); border-radius: 3px; overflow: hidden; margin-bottom: 8px; }
.phyz-progress-bar::after { content: ''; display: block; width: 30%; height: 100%; background: var(--phyz-primary); border-radius: 3px; animation: phyz-progress-anim 1.4s ease-in-out infinite; }
@keyframes phyz-progress-anim { 0% { transform: translateX(-100%); } 100% { transform: translateX(450%); } }
.phyz-progress-text { font-size: 14px; color: var(--phyz-text-secondary); margin: 0; }
.phyz-status { font-size: 14px; font-weight: 500; min-height: 20px; text-align: center; margin: 8px 0; }
.phyz-status.success { color: var(--phyz-success); }
.phyz-status.error   { color: var(--phyz-error); }
.phyz-tunnel-skip { margin: 16px 0 8px; }
.phyz-btn-link { background: none; border: none; color: var(--phyz-primary); font-family: inherit; font-size: 14px; font-weight: 600; cursor: pointer; text-decoration: none; padding: 0; }
.phyz-btn-link:hover { text-decoration: underline; }
.phyz-help-text { max-width: 480px; margin: 0 auto; padding: 20px; background: var(--phyz-white); border-radius: var(--phyz-radius); text-align: left; }
.phyz-help-text p { margin: 0 0 8px; font-size: 14px; color: var(--phyz-text-secondary); line-height: 1.5; }
.phyz-help-text p:last-child { margin-bottom: 0; }
.phyz-help-text strong { color: var(--phyz-text); }
.phyz-help-text a { color: var(--phyz-primary); text-decoration: underline; }

/* ==========================================================================
   ÉTAPE 5 — LOADER FINAL
   ========================================================================== */
.phyz-step-loader { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 100vh; text-align: center;background:var(--phyz-primary);    position: relative;
    top: -29px;
 }
.phyz-loader-wrap { display: flex; flex-direction: column; align-items: center; gap: 20px; }
.phyz-loader-title {
    color: white !important;
    font-size: 24px !important;
}
.phyz-loader-sub   { text-align: center; max-width: 280px; margin: 0; }
.phyz-loader-dots { display: flex; gap: 8px; }
.phyz-loader-dots span {
    display: block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: white;
    animation: phyz-dot 1.2s ease-in-out infinite;
}
.phyz-loader-dots span:nth-child(1) { animation-delay: 0s; }
.phyz-loader-dots span:nth-child(2) { animation-delay: .2s; }
.phyz-loader-dots span:nth-child(3) { animation-delay: .4s; }
@keyframes phyz-dot { 0%, 80%, 100% { transform: scale(.6); opacity: .4; } 40% { transform: scale(1); opacity: 1; } }

/* ==========================================================================
   HEADER ENDPOINT (réutilisé pour step dropzone)
   ========================================================================== */
.phyz-endpoint-header { display: flex; flex-direction: column; gap: 16px; margin: 0; background-color: var(--phyz-primary); }
.up-phyz-endpoint-header   { display: flex; justify-content: flex-start; padding: 24px 20px 0; }
.down-phyz-endpoint-header { display: flex; justify-content: center; padding: 0 20px 24px; }
.phyz-endpoint-title { margin: 0; font-size: 20px !important; font-weight: 700; color: white !important; text-align: center; }

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */
@keyframes phyz-fade-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.phyz-animate-in { animation: phyz-fade-in .3s ease forwards; }

.phyz-tunnel-toast {
    position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
    padding: 14px 24px; border-radius: var(--phyz-radius-sm); font-size: 14px;
    font-weight: 500; z-index: 99999; box-shadow: var(--phyz-shadow-lg);
    animation: phyz-toast-in .3s ease; white-space: nowrap;
}
.phyz-tunnel-toast.success { background: var(--phyz-success); color: #fff; }
.phyz-tunnel-toast.error   { background: var(--phyz-error);   color: #fff; }
@keyframes phyz-toast-in { from { opacity: 0; transform: translateX(-50%) translateY(16px); } to { opacity: 1; transform: translateX(-50%) translateY(0); } }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 480px) {
    .phyz-tunnel-header { padding: 0px 16px 0; }
    .phyz-tstep-line { width: 32px; }
    .phyz-tunnel-step-content { padding: 20px 16px; }
    .phyz-price-int { font-size: 90px; }
    .phyz-btn { padding: 16px 20px; }
  
    .phyz-price-int  { font-size: 90px; }
.phyz-price-top  { font-size: 28px; }
.phyz-price-dec, .phyz-price-sep { font-size: 28px; }
.phyz-price-right { padding-top: 12px; }
.phyz-price-cur {font-size: 40px;}

.phyz-price-bottom{
    position: relative;
    left: -50px;
}



.dashed_zone, .phyz-dropzone-wrapper, .phyz-dropzone{
    
    margin: auto;
    
}
.phyz-dropzone {
    height:228px
}

}

@media (min-width:768px){
    .phyz-price-bottom{
        position: relative;
        left:-40px
    }

    .phyz-tunnel-body{
        max-width: 100%;
    }
    .phyz-rgpd-wrap {
        max-width: 480px;
        margin: auto;
        padding-top: 28px;
    }
    .phyz-form.form_address{
        max-width: 480px;
        margin: auto;
    }
    .phyz-tunnel-cta {
        background: #DADADA;
        color: var(--phyz-white);
        max-width: 480px;
        margin: auto;
    }
    .phyz-tunnel-video-wrap {
        max-width: 480px;
        margin:auto;
        padding-top: 31%;
    }

    .phyz-promo-block{
        max-width: 480px;
        margin:28px auto 
    }

    .phyz-offer-card {
        width:480px;
        margin: auto;
    }

    .phyz-dropzone-container {
        max-width: 480px;
    }
    .dropzone_outer{
        padding-left:0;
        padding-right: 0;
    }

}

