@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');

/* Général */

body {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

* {
    -webkit-tap-highlight-color: transparent;
}

#container {
    flex-grow: 1;
    max-width: 400px;
    margin: 0 auto;
    padding: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 1;
    box-sizing: border-box;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.header {
    margin-bottom: 15px;
}

.logo {
    font-size: 40px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.title {
    font-size: 1.4em;
    font-weight: 800;
    margin: 5px 0;
}

.subtitle {
    text-align: left;
    color: rgba(0, 0, 0, 0.8);
    margin-bottom: 30px;
    font-size: 0.8em;
    font-weight: 500;
}

.spinning {
    -webkit-animation: rotate-center 2s ease-in-out infinite both;
    animation: rotate-center 2s ease-in-out infinite both;
}

@-webkit-keyframes rotate-center {
    0% {
        -webkit-transform: rotate(0);
        transform: rotate(0);
    }

    60%,
    100% {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

@keyframes rotate-center {
    0% {
        -webkit-transform: rotate(0);
        transform: rotate(0);
    }

    60%,
    100% {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

.step {
    margin-bottom: 15px;
    text-align: left;
}

.step-title {
    color: rgba(0, 0, 0, 0.8);
    margin-bottom: 2px;
    font-size: 0.8em;
}



/* Inputs */
select {
    box-sizing: border-box;
    width: 100%;
    padding: 12px 16px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23666' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 16px;
    font-size: 1em;
    outline: none;
    color: #000;
    background-color: #fff;
}

.phone-input {
    width: 100%;
    display: flex;
    align-items: center;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.phone-input .prefix {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding-left: 0.5rem;
    min-width: 76px;
}

.phone-input .prefix #flag {
    width: 24px;
    border-radius: 2px;
}

.phone-input .prefix #country-code {
    border: none;
    background: none;
    padding: 0 0 0 10px;
    font-size: 1em;
}

.phone-input,
select#dataType {
    outline: none;
    transition: all 0.3s ease;
}

.phone-input:has(:focus),
select#dataType:focus {
    border-color: #25d366;
    box-shadow: 0 0 0 3px rgba(37, 211, 101, 0.219);
    transform: translateY(-1px);
}

.phone-input input[type="tel"] {
    flex: 1;
    border: none;
    padding: 0.5rem;
    font-size: 1em;
    outline: none;
    border-radius: 5px;
}

.btn {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 5px;
    font-size: 1em;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    display: block;
    box-sizing: border-box;

    -webkit-box-shadow: 0px 2px 14px 1px rgba(0, 0, 0, 0.15);
    box-shadow: 0px 2px 14px 1px rgba(0, 0, 0, 0.15);

    text-decoration: none;
}

.btn:disabled {
    opacity: 0.2;
    pointer-events: none;
}

.btn-primary {
    background: #000;
    color: #fff;
}

.btn-secondary {
    background: none;
    color: #000;
    border: 1px solid rgba(0, 0, 0, 0.6);
}

.btn-primary:hover,
.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    -webkit-box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.btn-primary:active,
.btn-secondary:active {
    transform: translateY(0px);
}

.btn-loading {
    background: none;
    box-shadow: none;
    -webkit-box-shadow: none;
    color: #000;
    cursor: default;
}


/* Aperçu sur la page d'accueil */

.preview {
    padding: 20px 20px 0 20px;
    text-align: left;
    position: relative;
    overflow: hidden;
}

.preview::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40%;
    background-image: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 1));
}

.preview h4 {
    color: rgb(0, 0, 0);
    margin: 15px 0;
    font-weight: 700;
    font-size: 1em;
}

.preview p {
    color: rbga(0, 0, 0, 0.8);
    font-size: 0.8em;
    line-height: 1.3;
    font-weight: 500;
    margin-bottom: 10px;
}

.preview img {
    width: 100%;
    display: block;
    margin: 30px auto 0 auto;
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}


/* Console */

#console-title {
    font-size: 1.2em;
    color: #000;
    margin-bottom: 40px;
    text-align: center;
}

#console {
    text-align: left;
    border-radius: 6px;
    padding: 15px;
    font-family: monospace;
    font-weight: 500;
    color: #000;
    font-size: 0.6em;
    line-height: 1.4;
    height: 200px;
    box-sizing: border-box;
    overflow-y: auto;
}

#console.active {
    display: block;
    animation: slideUp 0.5s ease;
}

.console-line {
    margin-bottom: 4px;
    opacity: 0;
    animation: typeIn 0.8s ease forwards;
}

@keyframes typeIn {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

#page2-icon {
    transition: border-radius 0.5s;
}

#page2-icon.round {
    border-radius: 50%;
}

/* Whatsapp trouvés */
#found-whatsapp-content {
    display: none;
}

.whatsapp-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    width: 100%;
    max-width: 400px;
}

.whatsapp-grid .column {
    flex: 1;
    display: grid;
    gap: 10px;
    grid-auto-rows: min-content;
}

.whatsapp-grid .column .item {
    opacity: 0;
    display: flex;
    width: 100%;
    -webkit-box-shadow: 0px 2px 5px 1px rgba(0, 0, 0, 0.15);
    box-shadow: 0px 2px 5px 1px rgba(0, 0, 0, 0.15);
    border-radius: 6px;
    overflow: hidden;
}

.conversation-wrapper {
    position: relative;
}

.conversation-wrapper .conversation-screenshot {
    width: 100%;
}

.conversation-wrapper .conversation-number {
    position: absolute;
    font-size: 8px;
    left: 31.1%;
    top: 1.35%;
    font-weight: 600;
    filter: blur(1.2px);
}

.conversation-wrapper .conversation-profile-picture {
    position: absolute;
    top: 1.1%;
    left: 17.7%;
    width: 11.2%;
    filter: blur(1.2px);
    border-radius: 50%;
}

#profile-picture-item {
    filter: blur(2px);
    width: 100%;
}

.item.more-content {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1em;
    padding: 20px 10px;
    color: #000;
    border-radius: 6px;
    box-sizing: border-box;
    font-weight: 600;
}

@media (max-width: 400px) {
    .conversation-wrapper .conversation-number {
        font-size: 7px;
    }
}

@media (max-width: 350px) {
    .conversation-wrapper .conversation-number {
        font-size: 6px;
    }
}

@media (max-width: 300px) {
    .conversation-wrapper .conversation-number {
        font-size: 5px;
    }
}

.scale-in-center {
    -webkit-animation: scale-in-center 0.5s cubic-bezier(0.250, 0.460, 0.450, 0.940) both;
    animation: scale-in-center 0.5s cubic-bezier(0.250, 0.460, 0.450, 0.940) both;
}

@-webkit-keyframes scale-in-center {
    0% {
        opacity: 0;
        -webkit-transform: scale(0);
        transform: scale(0);
    }

    100% {
        opacity: 1;
        -webkit-transform: scale(1);
        transform: scale(1);
    }
}

@keyframes scale-in-center {
    0% {
        opacity: 0;
        -webkit-transform: scale(0);
        transform: scale(0);
    }

    100% {
        opacity: 1;
        -webkit-transform: scale(1);
        transform: scale(1);
    }
}


/* Offerwall */
#verification {
    display: none;
    padding: 5px;
    border-radius: 6px;
    margin-top: 5px;
    animation: slideUp 0.5s ease;
}

#verification.active {
    display: block;
}

#verification h3 {
    color: #000;
    margin: 0 0 20px 0;
    font-size: 1.2em;
    font-weight: 700;
    text-align: center;
}

#verification p {
    color: rgba(0, 0, 0, 0.8);
    margin-bottom: 25px;
    font-size: 0.8em;
    font-weight: 500;
    text-align: center;
}

#verification>button {
    margin-top: 25px;
}

#offerwall {
    margin: 10px 0;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    gap: 12px;
}

.offer {
    display: grid;
    grid-template-columns: 60px 1fr;
    flex-direction: row;
    min-height: 64px;
    max-height: 80px;
    padding: 0;
    text-decoration: none;
    color: #000;
}

.offer.btn {
    -webkit-box-shadow: 0px 2px 8px 1px rgba(0, 0, 0, 0.1);
    box-shadow: 0px 2px 8px 1px rgba(0, 0, 0, 0.1);
}

.offer .icon-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

.offer .icon-column img {
    border-radius: 50%;
    width: 40px;
}

.offer .icon-column .spinner {
    display: none;
    border: 2px solid transparent;
    border-top-color: #000;
    width: 40px;
    height: 40px;
    position: absolute;
    z-index: -1;
    border-radius: 50%;
    box-sizing: content-box;
}

.offer.loading .icon-column .spinner {
    display: inline;
    -webkit-animation: loading 1.4s linear infinite;
    animation: loading 1.4s linear infinite;
}

@keyframes loading {
    to {
        transform: rotate(360deg);
    }
}

@-webkit-keyframes loading {
    to {
        -webkit-transform: rotate(360deg);
    }
}

.offer.loading .icon-column img {
    opacity: 0.3;
}

.offer .text-column {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: left;
    padding: 4px 8px 4px 0;
}

.offer .text-column span {
    margin: 0;
    font-size: 0.8em;
    font-weight: normal;
    color: #000;
    text-align: left;
}




@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}



@media (max-width: 350px) {
    .container {
        max-width: 95%;
        padding: 8px;
    }

    .main-card {
        padding: 15px 12px;
    }
}


.message-box {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 20px;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    z-index: 10;
    font-size: 0.8em;
    text-align: center;
    max-width: 80%;
    word-wrap: break-word;
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -60%);
    }

    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translate(-50%, -50%);
    }

    to {
        opacity: 0;
        transform: translate(-50%, -60%);
    }
}