@import 'style.css';


#pics {
    min-height: 100vh;
    width: 100%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}


.titrebloc {
    display: flex;
    flex-direction: column;
    align-items: start;
    justify-content: center;
    position: absolute;
    left: 30px;
    top: -50px;
    z-index: 3;
}

.titrebloc h2 {
    font-size: 2.5rem;
    color: #fff;
    font-family: var(--font-fam-two);
    font-weight: 100;
    position: relative;
    display: inline-block;
    text-shadow: -8px -2px 16px #000;
}


.cgu-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-family: sans-serif;
    font-size: 14px;
    user-select: none;
    font-family: var(--font-fam-one);
    color: #fff;
}

.cgu-checkbox a {

    color: #fff;
}

.cgu-checkbox input {
    display: none;
}

.cgu-checkbox .checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid #333;
    border-radius: 4px;
    margin-right: 10px;
    position: relative;
}

.cgu-checkbox input:checked+.checkmark::after {
    content: "";
    position: absolute;
    left: 5px;
    top: 1px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    background-color: transparent;
}

.cgu-checkbox input:checked+.checkmark {
        background-color: #4caf50;
    border-color: #4caf50;

}



.coquepics {
    position: absolute;
    top: 40%;
    left: 50%;
    width: auto;
    height: 60vh;
    aspect-ratio: 9 / 19.5;
    /* border: 1px solid #fff; */
    /* format téléphone */
    transform-style: preserve-3d;
    background: linear-gradient(145deg, #111, #222);
    /* matière sombre */
    border-radius: 40px;
    box-sizing: border-box;
    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.5),
        /* ombre portée */
        inset 0 0 10px rgba(255, 255, 255, 0.08),
        /* reflet interne doux */
        inset 0 0 30px rgba(255, 0, 128, 0.05);
    /* glow léger interne */
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    /* padding: 5px; */
}



.coquepics::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 40px;
    /* légèrement plus petit que la coque */
    border: 1px solid #fff;
    box-sizing: border-box;
    pointer-events: none;
    /* ne bloque pas les clics/touch */
    z-index: 2;
}
 
.coquepics img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 32px;
    box-shadow: inset 0 0 6px rgba(255, 255, 255, 0.1);
    filter: contrast(1.1) brightness(1.05);
}




.decoproduct {
    height: 20%;
    width: 300%;

    filter: blur(3px);
    position: absolute;
    transform: translate(-50%, -50%) rotate(49deg);

    left: 50%;
    top: 50%;
    background: radial-gradient(ellipse at 50% 100%, rgb(0 78 255) 0%, rgb(255 0 0) 20%, rgb(0 118 255 / 81%) 35%, rgb(0 0 255) 60%, #ff3b3b 80%);
    background-size: 200% auto;
    animation: gradientMove 10s linear infinite;
    display: flex;
    flex-direction: column;
    justify-content: end;
    align-items: center;
    opacity: 1;
}


.decoproduct::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 100%,
            rgba(255, 255, 255, 0.35) 0%,
            rgba(255, 0, 255, 0.2) 20%,
            transparent 50%);
    filter: blur(60px);
    pointer-events: none;
    z-index: 1;
}

.decoproduct::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 40% 90%, rgba(0, 255, 150, 0.08), transparent 60%),
        radial-gradient(circle at 60% 85%, rgba(255, 255, 0, 0.08), transparent 60%),
        radial-gradient(circle at 50% 100%, rgba(255, 100, 255, 0.07), transparent 50%);
    filter: blur(100px);
    pointer-events: none;
    z-index: 0;
}


.mockuppics {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: absolute;
    top: 0;
    left: 0;
    perspective: 1200px;
    z-index: 2;
}

.mockuppics h2 {
    font-size: 5rem;
    font-family: var(--font-fam-two);
    font-weight: 100;
    letter-spacing: 2px;
    color: #ffffffe7;
    text-shadow: 0px 0px 20px #000;
    width: 100%;
    margin-left: 10%;
    position: absolute;
    left: 0;
    top: 16%;
    z-index: 5;
    opacity: 0;
    transition: all 1s ease-out;
}

.mockuppics h2.active {
    opacity: 1;
}

#cara {
    display: flex;
    justify-content: center;
    align-self: flex-start;
    flex-direction: column;
    gap: 25px;
    padding: 0 10px;
    overflow: hidden;
    transition: all 0.3s ease-in-out;
}

#cara li p {
    font-size: 1.2rem;
    font-family: var(--font-fam-one);
    font-weight: 100;
    letter-spacing: 2px;
    color: #ffffffe7;
    position: relative;
    padding-left: 36px;
    /* espace pour l’icône */

}

li p::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 20px;
    height: 20px;
    transform: translateY(-50%);
    background-repeat: no-repeat;
    background-size: contain;
    opacity: 0;
    animation: checkAppear 0.6s ease forwards;
}

li p::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 20px;
    height: 20px;
    transform: translateY(-50%);
    background-repeat: no-repeat;
    background-size: contain;
    opacity: 0;
    animation: checkFade 0.6s ease forwards;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 52 52'><defs><linearGradient id='grad' x1='0%' y1='0%' x2='100%' y2='0%'><stop offset='0%' stop-color='%2300bfff'/><stop offset='30%' stop-color='%238a2be2'/><stop offset='60%' stop-color='%23ff1493'/><stop offset='100%' stop-color='%23ff4500'/></linearGradient></defs><path fill='none' stroke='url(%23grad)' stroke-width='5' stroke-linecap='round' stroke-linejoin='round' stroke-dasharray='48' stroke-dashoffset='48' d='M14 27 l7 7 l17 -17'><animate attributeName='stroke-dashoffset' values='48;0' dur='0.4s' fill='freeze' begin='0.1s'/></path></svg>");
}

@keyframes checkFade {
    to {
        opacity: 1;
    }
}


#paramprod {
    width: 100%;
    padding: 75px 10px;
    border-top-left-radius: 50px;
    border-top-right-radius: 50px;
    background-color: #000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 50px;
    transform: translateY(-15%);
    box-shadow: -10px -20px 20px #ffffff0a;
    border-top: 0.5px solid #ffffff1f;


}





/* form///////////// */

#formcontent {
    width: 100%;
    display: none;
    position: relative;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    overflow: hidden;
}


#stepf1 {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 50px;
    padding: 50px 10px;
    background-color: #000;
}

#stepf2 {
    width: 100%;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 50px;
    padding: 50px 10px;
    background-color: #000;
}

#stepf3 {
    width: 100%;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 50px;
    padding: 50px 10px;
    background-color: #000;
}

#formcontent h2 {
    font-size: 1.8rem;
    font-family: var(--font-fam-one);
    font-weight: 100;
    letter-spacing: 2px;
    color: #ffffffe7;
    text-shadow: 0px 0px 20px #000;
    opacity: 1;
    transition: opacity 0.3s ease;
    text-align: center;
}

.decobloc {
    height: 25%;
    width: 400%;

    position: absolute;
    transform: translate(-50%, -50%) rotate(314deg);

    left: 50%;
    top: 50%;
    background: radial-gradient(ellipse at 50% 100%, rgb(0 78 255) 0%, rgb(255 0 0) 20%, rgb(0 118 255 / 81%) 35%, rgb(0 0 255) 60%, #ff3b3b 80%);
    background-size: 200% auto;
    animation: gradientMove 10s linear infinite;
    display: flex;
    flex-direction: column;
    justify-content: end;
    align-items: center;
    opacity: 1;
}


.decobloc::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 100%,
            rgba(255, 255, 255, 0.35) 0%,
            rgba(255, 0, 255, 0.2) 20%,
            transparent 50%);
    filter: blur(60px);
    pointer-events: none;
    z-index: 1;
}

.decobloc::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 40% 90%, rgba(0, 255, 150, 0.08), transparent 60%),
        radial-gradient(circle at 60% 85%, rgba(255, 255, 0, 0.08), transparent 60%),
        radial-gradient(circle at 50% 100%, rgba(255, 100, 255, 0.07), transparent 50%);
    filter: blur(100px);
    pointer-events: none;
    z-index: 0;
}

.decobloc2 {
    height: 15%;
    width: 400%;

    position: absolute;
    transform: translate(-50%, -50%) rotate(29deg);

    left: 50%;
    top: 55%;
    background: radial-gradient(ellipse at 50% 100%, rgb(0 78 255) 0%, rgb(255 0 0) 20%, rgb(0 118 255 / 81%) 35%, rgb(0 0 255) 60%, #ff3b3b 80%);
    background-size: 200% auto;
    animation: gradientMove 10s linear infinite;
    display: flex;
    flex-direction: column;
    justify-content: end;
    align-items: center;
    opacity: 1;
}


.decobloc2::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 100%,
            rgba(255, 255, 255, 0.35) 0%,
            rgba(255, 0, 255, 0.2) 20%,
            transparent 50%);
    filter: blur(60px);
    pointer-events: none;
    z-index: 1;
}

.decobloc2::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 40% 90%, rgba(0, 255, 150, 0.08), transparent 60%),
        radial-gradient(circle at 60% 85%, rgba(255, 255, 0, 0.08), transparent 60%),
        radial-gradient(circle at 50% 100%, rgba(255, 100, 255, 0.07), transparent 50%);
    filter: blur(100px);
    pointer-events: none;
    z-index: 0;
}


.form,
.form * {
    box-sizing: border-box;
}

.form input,
.form select,
.form button {
    font-family: var(--font-fam-one);
}

.form {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    /* mobile: 6 colonnes */
    gap: 14px;
    width: min(720px, 94vw);
    margin: 20px auto 28px;
    padding: 16px;
    background: #00000000;
    /* sobre / moderne */
    border: 0.5px solid #ffffff1a;
    border-radius: 20px;
    box-shadow: 0px 0px 20px rgb(0 0 0 / 15%);
    color: #f5f6f8;
    font-family: var(--font-fam-one);
    overflow: hidden;
    position: relative;
}

.form::before {
    content: '';
    inset: 0;
    top: 0;
    left: 0;
    backdrop-filter: blur(25px);
    position: absolute;
    background-color: #ffffff03;
}

/* ---- Groupes ---- */
.contentinputoverlay {
    display: grid;
    gap: 8px;
    min-width: 0;
    /* empêche les chevauchements */
    grid-column: span 6;
    z-index: 2;
    /* par défaut: pleine largeur */
}

.contentinputoverlay label {
    font-weight: 600;
    font-size: 13px;
    color: #fff;
    letter-spacing: .2px;
}

/* ---- Champs ---- */
.contentinputoverlay input,
.contentinputoverlay select {
    width: 100%;
    min-height: 46px;
    padding: 12px 14px;
    border-radius: 14px;
    border: none;
    box-shadow: 0px 0px 20px #00000087;
    background: #eee;
    color: #000;
    font-size: 15px;
    outline: none;
    transition: border-color .18s, box-shadow .18s, background .18s;

}

.contentinputoverlay input::placeholder {
    color: #8e94a3;
}

.contentinputoverlay input:focus,
.contentinputoverlay select:focus {

    box-shadow: 0 0 0 2px rgba(0, 7, 185, .35), 0 0 0 4px rgba(255, 0, 67, .22);
}

input[type="password"] {
    letter-spacing: .2px;
}

/* ---- Select (flèche custom discrète) ---- */
.contentinputoverlay select {
    -webkit-appearance: none;
    appearance: none;
    background-image:
        url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23cfd3e1' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 18px 18px;
    padding-right: 40px;
}

/* ---- Bouton ---- */
.form .buttonform {
    width: 100%;
    min-height: 50px;
    padding: 12px 16px;
    border: 0;
    border-radius: 16px;
    font-weight: 100;
    letter-spacing: .3px;
    color: #fff;
    cursor: pointer;
    background: linear-gradient(34deg, rgb(255, 0, 67) 0%, rgb(0, 7, 185) 88%);
    box-shadow: 0 10px 28px rgba(0, 7, 185, .30);
    transition: transform .06s, filter .18s;
}

.form .buttonform:hover {
    filter: brightness(1.06);
}

.form .buttonform:active {
    transform: translateY(1px);
}

/* ====== Utilitaires de grille (pas de nth-child) ====== */
/* Mobile: grille sur 6 colonnes */
.col-6 {
    grid-column: span 6;
}

.col-5 {
    grid-column: span 5;
}

.col-4 {
    grid-column: span 4;
}

.col-3 {
    grid-column: span 3;
}

.col-2 {
    grid-column: span 2;
}

.preview {
    font-size: 0.9rem;
    margin-top: 5px;
    color: #8e94a3;
}

.returnbuttonform {
    width: 100%;
    min-height: 50px;
    padding: 12px 16px;
    border: 0;
    border-radius: 16px;
    font-weight: 800;
    letter-spacing: .3px;
    color: #fff;
    cursor: pointer;
    background: var(--red);
    box-shadow: 0 10px 28px rgba(0, 7, 185, .30);
    transition: transform .06s, filter .18s;
}

#recap {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 50px;
    flex-direction: column;
    background-color: #000;
}

#recap section {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 25px;
    flex-direction: column;
    font-family: var(--font-fam-one);
    color: #fff;
}

#recap section h3 {
    font-weight: 100;
    font-size: 1.5rem;
    color: #fff;
    letter-spacing: .2px;
    width: 100%;
    text-align: start;
    position: relative;
}

#recap section h3::before {
    content: '';
    position: absolute;
    width: 100%;
    background-color: #fff;
    height: 2px;
    left: 0;
    bottom: -5px;
}

#recap section ul {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: start;
    gap: 25px;
    flex-direction: column;
}

#recap section ul li {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: start;
    gap: 5px;
    flex-direction: column;
}

strong {
    background: linear-gradient(to right, #ffffff 0%, #cc95ff 30%, #ff7c9d 60%, #ada9ff 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientMove 5s linear infinite;
}



/* Tablet+ : grille 12 colonnes */
@media (min-width: 720px) {
    .form {
        grid-template-columns: repeat(12, minmax(0, 1fr));
        gap: 16px;
        padding: 18px;
    }

    .md-col-12 {
        grid-column: span 12;
    }

    .md-col-8 {
        grid-column: span 8;
    }

    .md-col-6 {
        grid-column: span 6;
    }

    .md-col-4 {
        grid-column: span 4;
    }

    .md-col-3 {
        grid-column: span 3;
    }

    .md-col-2 {
        grid-column: span 2;
    }
}


@media (min-width: 1024px) {

    .decoproduct {
        left: 50%;
        height: 9%;
    }

    .mockuppics {
        height: 200vh;
    }


    .coquepics {
        width: auto;
        height: 35%;
        /* variables pour le déplacement (px) */
        --slide-x: 0px;
        --slide-y: 0px;

        /* remplace l'ancien transform translate(-50%,-50%) par ceci */
        transform: translate(calc(-50% + var(--slide-x)), calc(-50% + var(--slide-y)));
        will-change: transform;
        /* petite transition optionnelle pour lisser si JS est saccadé */
        transition: transform 80ms linear;
        /* conserve le preserve-3d si tu en as besoin */
        transform-style: preserve-3d;
    }

    #paramprod {
        transform: translateY(0);
    }



    #cara li p {
        padding-left: 56px;
        font-size: 1rem;
    }

    li p::before {
        width: 40px;
        height: 40px;
    }

    #paramprod {
        height: 200vh;
        overflow: visible;
        width: 100%;
        background-color: #00000000;
        position: absolute;
        top: 0;
        left: 0;
        border-radius: 0;
        box-shadow: none;
        z-index: 100000000000000000000000;

    }

    .titrebloc {
        position: absolute;
        left: 70%;
        top: 3%;
        transform: translateX(-100%);
    }

    .titrebloc h2 {
        font-size: 7rem;
    }





    #cara {

        padding-left: 90px;
        width: 50%;
        position: absolute;
        bottom: 5%;
        left: 0;
        gap: 15px;
    }

    #goform {
        position: absolute;
        z-index: 5;
        /* point de référence = centre du bouton */
        transform: translate(-50%, -50%);
    }


    #produit {
        min-height: 200vh;
    }

    .form {
        width: 50%;
        max-width: 500px;
    }

    .decobloc {
        height: 15%;
    }

    #recap {
        width: 50%;
        max-width: 500px;
    }

    .returnbuttonform {
        width: 50%;
    }

}

@media (min-width: 1200px) {
    #cara li p {
        font-size: 1.5rem;
        padding-left: 110px;
    }
}



@media (min-width: 1400px) {
    #cara li p {
        font-size: 1.8rem;
    }
}