/** @format */

@import url("https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap");

:root {
    --vert: #635bff;
    /* --vert: #0066ff; */
    --noir2: #2c2c2c;
}

* {
    margin: 0;

    padding: 0;

    font-family: "Inter", sans-serif;

    box-sizing: border-box;
}

html,
body {
    height: 100%;
    width: 100%;
    font-size: 16px;
}

body {
    display: flex;
    overflow: hidden;

    background-color: rgb(255, 255, 255);
}

#alertePersonalise {
    width: 455px;

    position: fixed;

    top: -200px;
    left: calc(50vw - ((130px * 3.5) / 2));
    z-index: 100;

    padding: 12px;

    background-color: #d6d6d677;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.413);
    border-radius: 16px;
    transition: 0.4s;
    backdrop-filter: blur(5px);
}
#alertePersonalise > p {
    font-size: 1.2rem;
    font-weight: bold;
    text-align: left;
    padding-top: 10px;
    padding-bottom: 20px;
}
#alertePersonalise > div {
    position: absolute;
    right: 0;

    bottom: 0;

    padding: 10px 15px;

    font-size: 1.3rem;
    font-weight: bold;
    color: #4136bd;
    cursor: pointer;
}

/*///////////////////*/

.partieCreationParent {
    height: 100%;
    width: 332px;

    position: relative;
    z-index: 2;
    box-shadow: 0 0 10px #00000025;
}
.partieCreation {
    height: 100%;
    width: 100%;

    display: flex;
    flex-direction: column;
    padding: 16px;

    overflow-y: auto !important;

    background-color: rgb(255, 255, 255);

    font-weight: 500;
    scrollbar-width: none;
}
.partieCreation::-webkit-scrollbar {
    display: none; /* Pour les navigateurs basés sur WebKit comme Chrome, Safari */
}

.nombreDeCaractereEtCredit {
    width: 100%;
    font-weight: 700;
    margin-top: 20px;
}

#nombreDeCredit {
    font-size: 2.3rem;
    text-wrap: balance;
}
#nombreDeCredit > span {
    padding: 4px 8px;
    background-color: var(--noir2);
    border-radius: 12px;
    font-weight: 700;
    color: rgb(255, 255, 255);
    transition: 0.2s;
}
#nombreDeCaractere {
    width: 100%;
    font-size: 0.9rem;
    font-weight: 600;
    text-align: right;
    margin-top: 8px;
}

.expediteurContainer {
    width: 100%;

    display: flex;
    flex-direction: column;
    border: solid 1px rgb(219, 219, 219);

    box-shadow: 0 0 10px rgba(11, 11, 11, 0.205);
    border-radius: 20px;
    margin-top: 16px;
}

.choixExpeText {
    width: 100%;
    font-size: 1.5rem;
    font-weight: 800;
    text-align: center;
    margin-top: 16px;
}
.choixExpediteur {
    width: 100%;

    display: flex;
    flex-direction: column;
    justify-content: start;
    align-items: center;
    margin-top: 8px;
}

.boutonsChoixExped {
    height: 50px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}
#boutonPourNom.btnActif {
    font-size: 1rem !important;
}
.boutonsChoixExped > div {
    height: 40px;
    width: 105px;

    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--noir2);
    border-radius: 12px;

    font-family: "Inter";
    font-weight: 500;
    color: #ffffff;
    cursor: pointer;
    transition: 0.2s;
}

.btnActif {
    height: 50px !important;
    width: 120px !important;
    background-color: var(--vert) !important;
    box-shadow: 0px 0px 10px #000000a7;
    font-size: 1.5em;
}

.explicationNomExpediteur {
    width: 100%;
    margin-top: 8px;
    text-wrap: balance;
}

#explicationNumeroEnvoyeur {
    padding: 12px;
    /* display: none; */
    font-size: 1.2rem;
    font-weight: 500;
}
.explicationNomExpediteur > div > span {
    padding: 0px 4px;
    background-color: var(--noir2);
    border-radius: 8px;
    font-weight: 400;
    color: rgb(255, 255, 255);
}

#explicationNomEnvoyeur {
    display: flex;

    display: none;
    flex-direction: column;
    gap: 16px;
    padding: 12px;
    font-size: 1.2rem;
    font-weight: 500;
}
#explicationNomEnvoyeur > div {
    display: flex;
    justify-content: space-between;
    align-items: center;

    font-size: 1.3rem;
    font-weight: 700;
}
#explicationNomEnvoyeur > div > input {
    height: 32px;
    width: 145px;

    background-color: var(--noir2);
    border: none;
    outline: none !important;
    border-radius: 8px;

    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
    outline-color: #ffffff;
    outline-width: 2px;

    padding-left: 6px;
    padding-bottom: 2px;
}
#explicationNomEnvoyeur > div > div {
    font-size: 1rem;
    font-weight: 600;
    text-align: right;
}

#infoSuplementaireSurLesCaracteres {
    width: 100%;
    display: flex;
    /* padding: 0px 16px; */
    justify-content: space-between;
    align-items: center;
    margin-top: 36px;
}

#InfoSuplemntaire {
    font-size: 1.2rem;
    font-weight: 700;
    text-wrap: balance;
}

#boutonPourDeplier {
    height: 38px;
    min-height: 38px;
    width: 38px;
    min-width: 38px;
    display: flex;
    justify-content: center;

    align-items: center;
    background-color: var(--vert);

    border-radius: 20px;
    cursor: pointer;
    transition: 0.3s;
}

#boutonPourDeplier > svg {
    margin-top: 4px;
}

#listeInfoSuplementaireSurCarac {
    height: 0px;
    width: 100%;
    overflow-y: hidden;

    transition: 0.4s;
    transition: 0.3s;
    padding-left: 8px;
    border-top: solid 2px #191919;
}

#listeInfoSuplementaireSurCarac > .texteExplicatif {
    font-size: 1.1rem;
    font-weight: 700;
    margin-top: 16px;
    text-wrap: balance;
}

#listeInfoSuplementaireSurCarac > div {
    font-size: 1.1rem;
    font-weight: 700;
    margin-top: 12px;
}

#listeInfoSuplementaireSurCarac > p {
    width: 80%;
    font-size: 1.2rem;
    font-weight: 700;
    margin-top: 4px;
    padding-left: 4px;
}

#listeInfoSuplementaireSurCarac > p > code {
    display: inline-block;
    background-color: var(--noir2);
    border-radius: 5px;
    font-weight: 500;
    color: #ffffff;
    padding-left: 8px;
    padding-right: 8px;
    padding-top: 1px;
    margin-top: 3px;
}

/**********************/

.partieVisualisation {
    height: 100%;
    width: calc(100% - 332px * 2);

    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgb(243, 243, 243);
}

.imageIphone {
    height: 64vmin;
    position: relative;

    background-image: url(./img/phoneImage.png);
    background-position: center;
    background-size: cover;
    aspect-ratio: 1 / 2.04;
    filter: drop-shadow(8px 8px 20px rgba(0, 0, 0, 0.6));
}

#heureMinute {
    height: 1.44vmin;
    width: 4vmin;

    position: absolute;

    top: 2.4vmin;
    left: 3.2vmin;

    display: flex;
    justify-content: center;
    align-items: center;

    font-family: "Inter";
    font-size: 1.28vmin;
    font-weight: 700;
}

#nomDenvoie {
    height: 1.6vmin;
    width: 100%;

    position: absolute;

    top: 8.56vmin;

    display: flex;
    justify-content: center;
    align-items: center;

    font-family: "Inter";
    font-size: 1.04vmin;
    font-weight: 600;
    text-align: center;
}

#previsuSMS {
    height: 47vmin;
    width: 70%;

    position: absolute;

    top: 12vmin;
    left: 7%;

    display: flex;
    flex-direction: column;
    justify-content: start;
    align-items: start;
}

.imageQueueSMS {
    height: 1.6vmin;
    margin-top: -1.04vmin;
    margin-left: 0.12vmin;
}

.partieMilieuDuMessage {
    min-height: 2.4vmin;
    max-width: 97%;
    min-width: 4vmin;

    position: relative;

    padding: 0.48vmin 0.88vmin;
    overflow-y: auto;

    background-color: #e9e8ee;
    border: none !important;
    outline: none !important;
    border-radius: 1.44vmin;

    font-family: "Inter", sans-serif;
    font-size: 1.68vmin;
    font-weight: 600;
    text-align: left;

    transition: 0.1s;
    margin-left: 3%;

    scrollbar-width: thin; /* Réduit la largeur */
    scrollbar-color: #888 transparent;
}

.partieMilieuDuMessage::-webkit-scrollbar {
    width: 8px; /* Largeur de la scrollbar */
}
.partieMilieuDuMessage::-webkit-scrollbar-button {
    display: none; /* Cache les boutons haut et bas */
}
.partieMilieuDuMessage::-webkit-scrollbar-track {
    background: transparent;
}
.partieMilieuDuMessage::-webkit-scrollbar-thumb {
    background-color: #888; /* Couleur de l'ascenseur */
    border: 2px solid transparent; /* Assure que l'ascenseur ne touche pas les bords */
    border-radius: 10px; /* Pour rendre l'ascenseur bien arrondi */
}
.partieMilieuDuMessage::-webkit-scrollbar-thumb:hover {
    background-color: #555; /* Changement de couleur lors du survol */
}
.partieMilieuDuMessage::-webkit-scrollbar-corner {
    background: transparent;
}

.highlighted-word {
    position: absolute;
    z-index: 300;
    font-family: "Inter", sans-serif;
    font-size: 1.68vmin;
    font-weight: 600;
    color: #291ec5;
    pointer-events: none;
    width: 19.5vmin;
    word-wrap: break-word;
}

/**********************/

.partieLien {
    height: 100%;
    width: 332px;
    z-index: 2;

    display: flex;
    flex-direction: column;
    padding: 16px;

    background-color: rgb(255, 255, 255);
    box-shadow: 0 0 10px #00000025;
}

.partieLien > p {
    width: 100%;
    font-size: 1.5rem;
    font-weight: 800;
    margin-top: 16px;
    text-wrap: pretty;
}

input[type="checkbox"] {
    width: 30px;
    height: 30px;
}

input[type="checkbox"]:checked {
    accent-color: var(--vert);
}

input[type="checkbox"]:checked:hover {
    accent-color: rgb(138, 131, 255);
    display: inline;
}
