/* Importation des polices depuis le répertoire /fonts */

@font-face {
    font-family: 'Rethink-Sans-Bold';
    src: url('fonts/Rethink_Sans/RethinkSans-Bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: 'Rethink-Sans-BoldItalic';
    src: url('fonts/Rethink_Sans/RethinkSans-BoldItalic.ttf') format('truetype');
    font-weight: bold;
    font-style: italic;
}

@font-face {
    font-family: 'Rethink-Sans-ExtraBold';
    src: url('fonts/Rethink_Sans/RethinkSans-ExtraBold.ttf') format('truetype');
    font-weight: bolder;
    font-style: normal;
}

@font-face {
    font-family: 'Rethink-Sans-ExtraBoldItalic';
    src: url('fonts/Rethink_Sans/RethinkSans-ExtraBoldItalic.ttf') format('truetype');
    font-weight: bolder;
    font-style: italic;
}

@font-face {
    font-family: 'Rethink-Sans-Italic';
    src: url('fonts/Rethink_Sans/RethinkSans-Italic.ttf') format('truetype');
    font-weight: normal;
    font-style: italic;
}

@font-face {
    font-family: 'Rethink-Sans-Medium';
    src: url('fonts/Rethink_Sans/RethinkSans-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'Rethink-Sans-MediumItalic';
    src: url('fonts/Rethink_Sans/RethinkSans-MediumItalic.ttf') format('truetype');
    font-weight: 500;
    font-style: italic;
}

@font-face {
    font-family: 'Rethink-Sans-Regular';
    src: url('fonts/Rethink_Sans/RethinkSans-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Rethink-Sans-SemiBold';
    src: url('fonts/Rethink_Sans/RethinkSans-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
}

@font-face {
    font-family: 'Rethink-Sans-SemiBoldItalic';
    src: url('fonts/Rethink_Sans/RethinkSans-SemiBoldItalic.ttf') format('truetype');
    font-weight: 600;
    font-style: italic;
}

@font-face {
    font-family: 'Rethink-Sans-Italic-VariableFont';
    src: url('fonts/Rethink_Sans/RethinkSans-Italic-VariableFont_wght.ttf') format('truetype');
    font-weight: normal;
    font-style: italic;
}

@font-face {
    font-family: 'Rethink-Sans-VariableFont';
    src: url('fonts/Rethink_Sans/RethinkSans-VariableFont_wght.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

:root {
    --brand: #14B814;
    --brand_secondary: #A2E619;
    --text: #000000;
    --text_secondary: #636966;
    --neutral_light: #F2F3F2;
    --primary: #FFFFFF;
    --border: #E5E6E5;
}

* {
    font-family: 'Rethink-Sans-Regular', serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    width: 100% !important;
    height: 100% !important;
    display: flex;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    width: 100%;
}

.appContainer {
    background: linear-gradient(to bottom, var(--brand_secondary), var(--brand));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    height: 100%;
    width: 100%;

    overflow-x: hidden;
    position: relative;
}

img.texture {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    user-select: none;
    pointer-events: none;
}

.bd {
    border: 1px solid black;
}

.content {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 85%;
    width: 88%;
    background: var(--primary);
    border: 1px solid var(--border);
    border-radius: 16px;
    z-index: 2;
}

.body {
    padding: 32px;
    display: flex;
    flex-direction: row;
    height: inherit;
    flex: 1;
}

.left {
    display: flex;
    flex-direction: column;
    gap: 48px;
    padding: 16px;
    flex: 1;
}

.logo {
    pointer-events: none;
    user-select: none;
}

.text-1 {
    font-family: 'Rethink-Sans-Bold';
    font-size: 36px;
    line-height: 44px;
    color: var(--text);
    letter-spacing: -2%;
}

span.brand-c {
    font-family: 'Rethink-Sans-Bold';
    color: var(--brand);
}

.text-2 {
    font-family: 'Rethink-Sans-Medium';
    font-size: 20px;
    line-height: 28px;
    color: var(--text);
}

.bottom_text {
    flex: 1;
    flex-direction: column;
    align-content: flex-end;
}

.text-3 {
    font-family: 'Rethink-Sans-Regular';
    font-size: 16px;
    line-height: 24px;
    color: var(--text_secondary);
}


.right {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.right .mockupImg {
    z-index: 5;
    border-color: red;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.right img {
    width: 120%;
    height: 120%;
    object-fit: contain;
    background-color: transparent;
}

.right .trocleBG {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 130%;
    height: 130%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
    pointer-events: none;
}

.right .trocleBG img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.footer {
    display: flex;
    align-items: center;
    width: 100%;
    height: 100px;
    padding-inline: 48px;
    gap: 16px;
    user-select: none;
}

a.lien {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    border-radius: 12px;
    text-decoration: none;
    transition: background 0.3s ease;
    position: relative;
    overflow: hidden;
}

a.lien:hover {
    background: var(--neutral_light);
}

a.lien img {
    width: auto;
    height: 32px;
    filter: grayscale(100%);
    transition: filter 0.5s ease;
}

a.lien-mail img {
    transform: scale(1.5);
}

a.lien:hover img {
    filter: grayscale(0%);
}

a.lien p {
    font-family: 'Rethink-Sans-Regular';
    font-size: 16px;
    line-height: 24px;
    color: var(--text_secondary);
    width: 0%;
    overflow: hidden;
    transition: width 0.3s ease, opacity 0.3s ease;
}

a.lien .lien-p-div {
    display: flex;
    white-space: nowrap;
    width: 0;
    transition: all 0.3s ease;
}


/* Media queries */
/* Media queries */
/* Media queries */
/* Media queries */
/* Media queries */
/* Media queries */
/* Media queries */
/* Media queries */
/* Media queries */
/* Media queries */
/* Media queries */
/* Media queries */
/* Media queries */
/* Media queries */

/* Réinitialisation de la mise en page pour les petits écrans */
@media only screen and (max-width: 768px) {

    .appContainer {
        justify-content: flex-start;
    }
    /* Adapter la taille des images et du contenu */
    .content {
        width: 90%;
        height: fit-content;
        margin-block: 16px;
        padding: 0;
        gap: 16px;
    }

    /* Disposition du corps en colonne sur mobile */
    .body {
        flex-direction: column;
        align-items: center;
        padding: 8px;
    }

    /* Left section */
    .left {
        flex: 1;
        padding: 8px;
        gap: 24px;
    }

    .text-1 {
        font-size: 28px;
        line-height: 36px;
    }

    .text-2 {
        font-size: 16px;
        line-height: 24px;
    }
    
    .text-3 {
        font-size: 14px;
        line-height: 20px;
    }

    .bottom_text {
        padding-top: 16px;
    }

    /* Right section */
    .right {
        flex: 1;
        width: 100%; /* Occupe toute la largeur */
        display: flex;
        justify-content: center;
        align-items: center;
        position: relative;
        margin-top: 32px;
    }

    .right .mockupImg img {
        width: 80%;  /* Réduire la taille de l'image sur mobile */
        height: auto;
    }

    .footer {
        gap: 10px;
        padding-inline: 24px;
        padding-block: 16px;
        height: fit-content;
    }

    a.lien img {
        height: 24px;
        width: auto;
    }

    a.lien .lien-p-div {
        display: none;
    }
}

/* Améliorations spécifiques pour les très petits écrans, comme les téléphones plus petits */
@media only screen and (max-width: 480px) {
    .text-1 {
        font-size: 22px;
        line-height: 30px;
    }

    .text-2 {
        line-height: 20px;
    }

    .footer {
        padding-inline: 16px;
        gap: 8px;
    }

    a.lien img {
        height: 20px;
    }

    .right .mockupImg img {
        width: 70%; /* Ajuster la taille de l'image pour les petits écrans */
    }

    /* Adapter le texte dans le footer */
    .footer p {
        font-size: 12px;
    }
}
