/*
Theme Name: Promo Codes Manager
Theme URI: https://example.com
Author: Oska
Author URI: https://example.com
Description: Thème de gestion de codes promo par lots
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: promo-codes-manager
*/

/* Reset de base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;

}

body {
    font-family: "Open Sans", sans-serif;
    font-optical-sizing: auto;
    line-height: 1.6;
    color: #333;
    background-color: #071B07;
    overflow-x: hidden;
}


/* Styles admin pour les meta boxes */
.pcm-meta-box {
    padding: 15px;
}

.pcm-meta-box label {
    display: inline-block;
    font-weight: 600;
    margin-bottom: 5px;
}

.pcm-meta-box input[type="number"],
.pcm-meta-box input[type="text"] {
    padding: 6px 10px;
    border: 1px solid #ddd;
    border-radius: 3px;
}

/* Table des codes */
.wp-list-table.codes-table {
    margin-top: 15px;
}

.wp-list-table.codes-table th {
    background: #f9f9f9;
    font-weight: 600;
}

/* Badges de statut */
.status-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 600;
}

.status-badge.available {
    background: #d4edda;
    color: #155724;
}

.status-badge.used {
    background: #f8d7da;
    color: #721c24;
}

/* Boutons personnalisés */
.pcm-button-group {
    margin-top: 15px;
    display: flex;
    gap: 10px;
}

/* Stats en haut de page */
.pcm-stats {
    background: #f0f0f1;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.pcm-stats-item {
    display: inline-block;
    margin-right: 30px;
}

.pcm-stats-item strong {
    font-size: 24px;
    color: #2271b1;
}

/**  FRONT PAGE */
.hero {
    height: 90vh;
    padding-top: 10vh;
    position: relative;
    overflow: hidden;
}

.hero:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 21%;
    background: radial-gradient(ellipse 60% 100% at 50% 100%, #071B07 40%, transparent 100%);
    pointer-events: none;


}

.hero .container,
.hero .row {
    height: 100%;
}

.hero-inner {
    height: 100%;
    margin: auto;
    position: relative;

}

.background-parallax {
    bottom: -33%;
    left: 50%;
    transform: translateX(-50%);
    position: absolute;
    width: 70%;
    transition: transform 0.3s ease-out;
    /* ajuste la durée */
    pointer-events: none;

}


.logo {
    width: 605px;
    display: flex;
    justify-content: center;
    position: relative;
    margin: auto;
    z-index: 1;
}

.scroll {
    width: 165.09px;
    font-family: 'Open Sans';
    font-style: normal;
    font-weight: 700;
    font-size: 18px;
    line-height: 22px;
    z-index: 1;
    color: #FAF9E5;
    position: absolute;
    bottom: 6vh;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    text-align: center;
    align-items: center;

}

.scroll img {
    width: 30px;
    height: auto;
    animate: opacity;
    position: absolute;
    bottom: -5vh;
    animation: arrow-reveal 2s ease-in-out infinite;

}

.codes-inner {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

.codes {
    position: relative;
}

.codes-parralax {
    top: 6rem;
    left: 0;
    position: absolute;
    width: 41%;
    transition: transform 0.3s ease-out;
    pointer-events: none;
}

.codes-inner h2 {

    font-family: 'Open Sans';
    font-style: normal;
    font-weight: 700;
    font-size: 32px;
    line-height: 34px;
    text-align: center;
    color: #195E3A;
}

.codes-inner p {

    font-family: 'Open Sans';
    font-style: normal;
    font-weight: 600;
    font-size: 16px;
    line-height: 22px;
    text-align: center;
    color: #195E3A;
    padding-top: 12px;
    width: 85%;
    text-align: center;
    margin: auto;
    margin-bottom: 8px;
}

.codes-inner .codes-left-wrapper {
    position: relative;
    max-width: 545px;
}

/* Le décalage vert derrière */
.codes-inner .codes-left-wrapper::after {
    content: '';
    clip-path: polygon(7% 0%, 100% 0%, 93% 100%, 0% 100%);
    position: absolute;
    top: 1rem;
    bottom: -1rem;
    left: 1rem;
    right: -1rem;
    background-color: #5FEAA2;
}

/* L'élément principal par-dessus */
.codes-inner .codes-left {
    padding: 2rem 4.5rem;
    background-color: white;
    clip-path: polygon(7% 0%, 100% 0%, 93% 100%, 0% 100%);
    position: relative;
    z-index: 1;
}

.codes-inner .codes-right-wrapper {
    position: relative;

}

.codes-inner .codes-right-wrapper::after {
    content: '';
    clip-path: polygon(7% 0%, 100% 0%, 93% 100%, 0% 100%);
    position: absolute;
    top: 1rem;
    bottom: -1rem;
    left: 1rem;
    right: -1rem;
    background-color: #ffffff;
}


.codes-inner .codes-right {
    clip-path: polygon(10% 0%, 100% 0%, 93% 100%, 0% 100%);
    background-color: #5FEAA2;
    position: relative;
    padding: 0.1rem 2.5rem;
    z-index: 1;
}

.codes-inner .input-shops {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin-top: 20px;
    margin-bottom: 24px;
    width: 100%;
}

.codes-inner select {
    flex-direction: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0px;
    isolation: isolate;
    font-style: normal;
    font-weight: 400;
    font-size: 12px;
    line-height: 140%;
    color: #1D1D1D;

    display: flex;
    /* flex-direction: column; */
    /* align-items: flex-start; */
    padding: 0px;
    isolation: isolate;
    /* width: 192.5px; */
    /* height: 33px; */
    flex: 1;
    order: 0;
    flex-grow: 1;
    padding: 0.8rem 0.5rem;
    font-family: 'Open Sans';

}

.codes-inner select options {
    font-family: 'Open Sans';

    font-style: normal;
    font-weight: 400;
    font-size: 12px;
    line-height: 140%;
    /* identique à la hauteur de la zone de texte, ou 17px */

    color: #1D1D1D;

}

.codes-inner #submit-code,
.codes-inner .btn-retry,
.btn-submit {
    /* BUTTONS */
    cursor: pointer;
    box-sizing: border-box;

    /* Mise en page automatique */
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 16px;
    gap: 8px;
    width: 163px;
    height: 52px;
    background: #5FEAA2;
    border-radius: 0px;
    border: none;
    margin: auto;


    font-family: 'Open Sans';
    font-style: normal;
    font-weight: 700;
    font-size: 14px;
    line-height: 140%;
    /* identique à la hauteur de la zone de texte, ou 20px */
    display: flex;
    align-items: center;
    text-align: center;

    color: #FFFFFF;

}

.draw-info {

    font-family: 'Open Sans';
    font-style: normal;
    font-weight: 400;
    font-size: 14px;
    line-height: 140%;
    /* ou 20px */

    color: #FFFFFF;


    /* À l'intérieur de l'auto layout */
    flex: none;
    order: 1;
    flex-grow: 1;
    width: 100%;
    display: flex;
    gap: 24px;
}

.draw-info img {
    height: 32px;
}

.mentions {

    font-family: 'Open Sans';
    font-style: normal;
    font-weight: 400;
    font-size: 10px;
    line-height: 140%;

    color: #FFFFFF;

}

.btn-submit {
    width: auto;
}

.codes-inner .shop-p,
.codes-inner .success-message,
.codes-inner .error-message {
    width: 100%;
    font-size: 12px;
    font-weight: 400;
}

.codes-inner input {
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 16px;
    gap: 10px;
    width: 100%;
    height: 77px;
    background: rgba(95, 234, 162, 0.2);
    border: 1px solid #5FEAA2;
    font-family: 'Open Sans';
    font-style: normal;
    font-weight: 800;
    font-size: 32px;
    line-height: 140%;
    letter-spacing: -0.03em;
    color: #7A7A7A;
    text-align: center;
}

.codes-inner input:disabled {
    font-size: 22px;
}

.codes-inner img {
    width: 252px;
    padding: 0 0rem;
    padding: 1rem;
}

.partners {
    padding-top: 100px;
}

.partners h2 {

    font-family: 'Open Sans';
    font-style: normal;
    font-weight: 600;
    font-size: 32px;
    line-height: 120%;
    /* ou 38px */
    text-align: center;

    color: #FFFFFF;



}

.partners-slick {
    margin-top: 40px;
}

.partners-slick .partners-slick-inner {
    margin: 0 20px;
    height: 85px;

}

.partners-slick .partners-slick-inner img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

footer {

    display: flex;
    justify-content: space-between;
    padding: 2rem 4rem;


}

footer a {


    font-style: normal;
    font-weight: 300;
    font-size: 16px;
    line-height: 109%;
    /* ou 17px */
    letter-spacing: -0.02em;
    text-decoration: none;
    color: #FFFFFF;



}

footer .links {
    display: flex;
    gap: 30px;

}

footer .links a,
footer .links button {
    text-align: none;
    font-style: normal;
    font-weight: 300;
    font-size: 14px;
    line-height: 109%;
    letter-spacing: -0.02em;
    color: #FFFFFF;
}


.participation-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 32px 32px 32px 35px;
    gap: 16px;
    isolation: isolate;
    width: 654px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 0px;
    margin: auto;
    margin-top: 96px;
}

.participation-title {

    font-family: 'Open Sans';
    font-style: normal;
    font-weight: 700;
    font-size: 36px;
    line-height: 38px;
    color: #F5F5F5;

}

.participation-form {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1rem;
}

.participation-form .form-row {
    width: 100%;
    gap: 24px;
    display: flex;
}

.form-group {
    display: flex;
    flex: 1;
    flex-direction: column;

}

.form-group input {
    /* field */

    box-sizing: border-box;

    /* Mise en page automatique */
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 8px;
    gap: 4px;



    background: #FFFFFF;
    border: 1px solid #B2B2B2;

    /* À l'intérieur de l'auto layout */
    flex: none;
    order: 1;
    align-self: stretch;
    flex-grow: 0;

}

.form-group label {

    width: 37px;
    height: 20px;

    font-family: 'Open Sans';
    font-style: normal;
    font-weight: 400;
    font-size: 14px;
    line-height: 140%;
    margin-bottom: 6px;
    color: #FFFFFF;


}

.form-optins {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-optins label {

    font-family: 'Open Sans';
    font-style: normal;
    font-weight: 400;
    font-size: 10px;
    line-height: 140%;
    /* identique à la hauteur de la zone de texte, ou 14px */

    color: #FFFFFF;


}

.form-optins label span {
    font-family: 'Open Sans';
    font-style: normal;
    font-weight: 400;

    line-height: 140%;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    position: relative;
    padding-left: 35px;
    margin-bottom: 15px;
    user-select: none;
}

.checkbox-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

/* Box */
.checkbox-label::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0px;
    width: 18px;
    height: 18px;
    border: 2px solid white;
    border-radius: 4px;
    background: transparent;
    transition: all 0.3s ease;
}

/* SVG Checkmark */
.checkbox-label::after {
    content: '';
    position: absolute;
    left: 0px;
    top: 0px;
    width: 22px;
    height: 22px;
    background-image: url('https://jeudesmarques.ugd.fr/wp-content/themes/ugd-landing-jeu/checkmark.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0;
    transform: scale(0);
    transition: all 0.2s ease;
}

/* Quand coché */
.checkbox-label:has(input:checked)::before {}

.checkbox-label:has(input:checked)::after {
    opacity: 1;
    transform: scale(1);
}

/* Hover */
.checkbox-label:hover::before {
    border-color: rgba(255, 255, 255, 0.8);
}

/* Focus (accessibilité) */
.checkbox-label:has(input:focus)::before {}

.checkbox-label span {
    font-family: 'Open Sans', sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 14px;
    color: white;
    line-height: 1.5;
}

@keyframes arrow-reveal {
    0% {
        clip-path: inset(0 0 100% 0);
        opacity: 0;
        filter: blur(4px);
    }

    60% {
        opacity: 1;
        filter: blur(0px);
    }

    80% {
        clip-path: inset(0 0 0% 0);
        opacity: 1;
        filter: blur(0px);
    }

    100% {
        clip-path: inset(100% 0 0% 0);
        opacity: 0;
        filter: blur(4px);
    }
}


@media screen and (max-width:1400px) {}

@media screen and (max-width:992px) {
    .hero {
        height: 75vh;
    }
}

@media screen and (max-width:768px) {
    .logo {
        width: 100%;
    }

    .participation-section {
        width: 100%;
    }

    .background-parallax {
        bottom: 0;
        width: 80%;
    }

    .codes-inner {
        flex-direction: column-reverse;
    }

    .codes-inner .codes-right-wrapper {
        position: relative;
    }

    .codes-inner .codes-right {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .codes-inner img {
        max-height: 400px;
        width: auto;
    }

    .codes-inner .codes-left-wrapper {
        max-width: 100%;
        margin-top: 2rem;
    }
}

@media screen and (max-width:576px) {
    footer {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 1rem;
    }

    .participation-form .form-row {
        flex-direction: column;
    }
}

@media screen and (max-width:460px) {
    .hero {
        height: 61vh;
    }

    .codes-inner .codes-right-wrapper {
        width: 100%;
    }

    .codes-inner img {
        max-height: 260px;
        width: auto;
    }

    .codes-inner h2 {
        font-size: 24px;
        line-height: 28px;
    }

    .codes-inner .input-shops {
        flex-direction: column;
    }
}

@media screen and (max-width:380px) {
    .codes-inner .codes-left {
        padding: 2rem;
    }
}