/* --------------------------------------------------
   Star Duo - Fenêtre Contact
-------------------------------------------------- */

#bandeauHautContact {
    direction: ltr;

    position: fixed;
    top: 0;
    left: 0;

    width: 100%;
    height: 68px;

    padding: 8px 14px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    z-index: 500;

    font-family: Arial, sans-serif;
}

body {
    height: 100dvh;
    min-height: 0;
    padding-bottom: 0;
}

/* --------------------------------------------------
   Logo + titre
-------------------------------------------------- */

#marqueContact {
    display: flex;
    align-items: center;
    gap: 10px;
}

#logoContact {
    display: block;

    width: 48px;
    height: 48px;

    object-fit: contain;
}

#titreContactHaut {
    color: white;

    font-size: 24px;
    font-weight: 700;

    line-height: 1;

    white-space: nowrap;

    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.55);

    animation: apparitionStarDuo 0.9s ease-out;
}

/* --------------------------------------------------
   Icône Contact
-------------------------------------------------- */

#imageContact {
    display: block;

    width: 48px;
    height: 48px;

    object-fit: contain;

    flex: 0 0 auto;

    user-select: none;
    -webkit-user-drag: none;
}

/* --------------------------------------------------
   Zone Contact

   On conserve ses dimensions :
   les BN ne bougent pas.
-------------------------------------------------- */

#zoneContact {
    position: relative;

    width: 100%;

    display: flex;
    align-items: flex-start;
    justify-content: center;

    flex: 0 0 auto;
}

/* --------------------------------------------------
   Carte Contact

   IMPORTANT :
   on remonte SEULEMENT la carte.
   Les BN restent à leur position actuelle.
-------------------------------------------------- */

#carteContact {
    position: relative;

    width: 570px;
    max-width: 90vw;

    box-sizing: border-box;

    transform-origin: top center;

    padding: 20px 28px 16px;

    border: 1px solid rgba(255, 255, 255, 0.2);

    border-radius: 18px;

    background: rgba(0, 0, 0, 0.28);

    color: white;

    font-family: Arial, sans-serif;

    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.45);
}

#carteContact a {
    color: white;
}

/* --------------------------------------------------
   Star Duo
-------------------------------------------------- */

#nomJeuContact {
    width: 100%;

    margin: 0 0 14px;

    text-align: center;

    font-size: 25px;

    line-height: 1.2;

    font-weight: 700;
}

/* --------------------------------------------------
   Version
-------------------------------------------------- */

#ligneVersionContact {
    width: 100%;

    margin-bottom: 14px;

    display: flex;

    align-items: baseline;
    justify-content: center;

    flex-wrap: wrap;

    gap: 4px;

    text-align: center;

    font-size: 18px;

    line-height: 1.35;
}

/* --------------------------------------------------
   Développeur
-------------------------------------------------- */

#blocDeveloppeurContact {
    width: 100%;

    margin-top: 2px;

    text-align: center;

    font-size: 18px;

    line-height: 1.35;
}

#labelDeveloppeurContact {
    width: 100%;

    text-align: center;

    white-space: nowrap;
}

#nomDeveloppeurContact {
    width: 100%;

    margin-top: 2px;

    text-align: center;

    font-weight: 700;
}

/* --------------------------------------------------
   Séparateurs
-------------------------------------------------- */

.separateurContact {
    height: 1px;

    margin: 17px 0;

    background: rgba(255, 255, 255, 0.18);
}

/* --------------------------------------------------
   E-mail / Musique
-------------------------------------------------- */

.ligneInfoContact {
    margin: 8px 0;

    font-size: 18px;

    line-height: 1.4;
}

/* --------------------------------------------------
   Formulaire
-------------------------------------------------- */

.formContact label {
    display: block;

    margin: 10px 0 6px;

    font-size: 17px;
}

.formContact input,
.formContact textarea {
    width: 100%;

    box-sizing: border-box;

    border: 1px solid rgba(255, 255, 255, 0.38);

    border-radius: 9px;

    padding: 10px 12px;

    background: rgba(255, 255, 255, 0.1);

    color: white;

    font-family: Arial, sans-serif;

    font-size: 17px;
}

/* --------------------------------------------------
   Message
-------------------------------------------------- */

.formContact textarea {
    min-height: 180px;
    height: 180px;

    resize: vertical;
}

/* --------------------------------------------------
   Bouton
-------------------------------------------------- */

.formContact button {
    display: block;

    margin: 16px auto 0;

    min-width: 116px;

    padding: 10px 26px;

    border: 1px solid rgba(255, 255, 255, 0.38);

    border-radius: 10px;

    background: rgba(255, 255, 255, 0.92);

    color: #10141c;

    font-family: Arial, sans-serif;

    font-size: 17px;

    font-weight: 700;

    cursor: pointer;
}

.formContact button:disabled {
    opacity: 0.6;

    cursor: default;
}

/* --------------------------------------------------
   Erreur formulaire
-------------------------------------------------- */

.formContact input.erreurContact,
.formContact textarea.erreurContact {
    border: 2px solid #ff3030;
}

/* --------------------------------------------------
   Copyright
-------------------------------------------------- */

#copyrightContact {
    width: 100%;

    margin-top: 16px;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    text-align: center;

    font-size: 14px;

    line-height: 1.4;

    opacity: 0.82;
}

#copyrightContactLigne1 {
    width: 100%;

    text-align: center;

    white-space: nowrap;
}

#copyrightContactLigne2 {
    width: 100%;

    margin-top: 2px;

    text-align: center;
}

/* --------------------------------------------------
   Téléphone / tablette étroite
-------------------------------------------------- */

@media (max-width: 620px) {
    #bandeauHautContact {
        height: 62px;

        padding: 7px 10px;
    }

    #logoContact {
        width: 48px;
        height: 48px;
    }

    #titreContactHaut {
        font-size: 28px;
    }

    #imageContact {
        width: 48px;
        height: 48px;
    }
    #carteContact {
        padding: 18px 18px 15px;
    }

    #nomJeuContact {
        font-size: 23px;

        margin-bottom: 12px;
    }

    #ligneVersionContact {
        width: 100%;

        justify-content: center;

        text-align: center;

        font-size: 16px;

        margin-bottom: 12px;
    }

    #blocDeveloppeurContact {
        font-size: 16px;
    }

    #labelDeveloppeurContact {
        font-size: 16px;

        text-align: center;

        white-space: nowrap;
    }

    #nomDeveloppeurContact {
        text-align: center;
    }

    .ligneInfoContact {
        font-size: 16px;
    }

    .separateurContact {
        margin: 14px 0;
    }

    .formContact label {
        margin-top: 9px;

        font-size: 16px;
    }

    .formContact input,
    .formContact textarea {
        font-size: 16px;
    }

    .formContact textarea {
        min-height: 170px;
        height: 170px;
    }

    .formContact button {
        margin-top: 14px;
    }

    #copyrightContact {
        margin-top: 14px;

        font-size: 13px;
    }

    #copyrightContactLigne1,
    #copyrightContactLigne2 {
        width: 100%;

        text-align: center;
    }
}

/* --------------------------------------------------
   Très petits téléphones
-------------------------------------------------- */

@media (max-width: 390px) {
    #carteContact {
        padding-left: 15px;
        padding-right: 15px;
    }

    #ligneVersionContact {
        font-size: 15px;
    }

    #labelDeveloppeurContact {
        font-size: 15px;
    }

    #blocDeveloppeurContact {
        font-size: 15px;
    }

    .ligneInfoContact {
        font-size: 15px;
    }

    .formContact textarea {
        min-height: 155px;
        height: 155px;
    }

    #copyrightContact {
        font-size: 12px;
    }
}

/* --------------------------------------------------
   Position finale de la carte Contact
   Le redimensionnement hauteur/largeur est fait en JS.
-------------------------------------------------- */

#zoneContact {
    margin-top: 6px;
    margin-bottom: 0;
}

@media (max-width: 620px) {
    #zoneContact {
        margin-top: -5px;
    }
}

/* ==========================================
   TABLETTE - CONTACT
   ========================================== */

@media (pointer: coarse) and (min-width: 621px) and (max-width: 1400px) {
    body {
        padding-top: 70px;
        padding-bottom: 12px;
    }

    #zoneContact {
        margin-top: 6px;
    }

    #carteContact {
        width: 570px;
        max-width: calc(100vw - 40px);
        padding: 16px 24px 14px;
    }

    #nomJeuContact {
        font-size: 23px;
        margin-bottom: 10px;
    }

    #ligneVersionContact {
        font-size: 16px;
        margin-bottom: 10px;
    }

    #blocDeveloppeurContact,
    .ligneInfoContact {
        font-size: 16px;
    }

    .separateurContact {
        margin: 12px 0;
    }

    .formContact label {
        font-size: 16px;
        margin: 8px 0 5px;
    }

    .formContact input,
    .formContact textarea {
        font-size: 16px;
        padding: 8px 10px;
    }

    .formContact textarea {
        height: 150px;
        min-height: 150px;
    }

    .formContact button {
        margin-top: 12px;
        padding: 9px 24px;
    }

    #copyrightContact {
        margin-top: 12px;
        font-size: 13px;
    }
}

/* TABLETTE EN PAYSAGE */

@media (pointer: coarse) and (min-width: 621px) and (max-width: 1400px) and (orientation: landscape) {
    body {
        height: auto;
        min-height: 100dvh;
        padding-bottom: 20px;
    }

    #zoneContact {
        margin-top: 4px;
    }

    #carteContact {
        width: 520px;
        max-width: calc(100vw - 40px);
    }

    .formContact textarea {
        height: 130px;
        min-height: 130px;
    }
}

/* CONTACT - MEME PRESENTATION CENTRALE QUE SOLO - AFFICHAGE PC */

@media (min-width: 800px) and (min-height: 600px) and (orientation: landscape) {
    #bandeauHautContact {
        position: fixed;
        box-sizing: border-box;
        top: 0;
        left: 50%;
        width: min(var(--largeur-fond-paysage), 100%);
        transform: translateX(-50%);
        z-index: 500;
    }

    #zoneContact {
        margin-left: auto;
        margin-right: auto;
    }
}
