/* Contact Page */
.contact-page {
    min-height: 100vh;
    background-color: #000;
    padding: 120px 0 80px;
}

/* Animation fade-in */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.fade-in {
    animation: fadeIn 0.4s ease-in-out;
}

/* Animation slide-in from bottom-right */
@keyframes slideInFromBottomRight {
    from {
        opacity: 0;
        transform: translate(50px, 50px);
    }

    to {
        opacity: 1;
        transform: translate(0, 0);
    }
}

.slide-in {
    animation: slideInFromBottomRight 0.4s ease-out;
}

.contact-section {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 200px);
}

.contact-container {
    width: 100%;
    max-width: 1400px;
    padding: 0 20px;
    position: relative;
}

/* Flèche retour */
.contact-back-link {
    position: absolute;
    left: 190px;
    top: 0px;
    display: block;
    width: 40px;
    height: 40px;
    transition: opacity 0.3s ease;
}

.contact-back-link span {
    display: none;
}

.contact-back-link::before {
    content: '';
    display: block;
    width: 30px;
    height: 30px;
    background-image: url('../../assets/img/svg/picto_fleche_back.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.contact-back-link:hover {
    opacity: 0.6;
}

/* Bloc de choix initial (style home) */
.contact-choices {
    display: flex;
    justify-content: center;
    align-items: center;
}

.contact-box {
    background-color: #fff;
    padding: 40px;
    max-width: 900px;
    width: 100%;
}

.contact-title {
    font-family: 'Agrandir Grand', sans-serif;
    font-size: 24px;
    font-weight: 900;
    text-transform: uppercase;
    color: #000;
    margin: 0 0 20px 0;
    line-height: 1;
    letter-spacing: 0;
    text-shadow: 0px 4px 4px rgba(0, 0, 0, 0.1);
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 30px;
    justify-content: center;
    align-items: flex-start;
    margin: 0 0 0 20px;
}

.contact-links ul {
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
}

.contact-links li {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 26px;
    letter-spacing: 0%;
    color: #000;
}

.contact-link-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: 'Agrandir Grand', sans-serif;
    font-size: 14px;
    font-weight: 800;
    font-style: italic;
    color: #000;
    background-color: transparent;
    text-decoration: underline;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0;
    line-height: 1;
}

.contact-link-btn:hover {
    opacity: 0.6;
}

/* Formulaires */
.contact-form-wrapper {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 40px 0;
}

.contact-form-box {
    background-color: #fff;
    padding: 40px;
    max-width: 900px;
    width: 100%;
    position: relative;
}

/* Bouton close */
.contact-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
    transition: opacity 0.3s ease;
}

.contact-close-btn:hover {
    opacity: 0.6;
}

.contact-close-btn img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Header avec flèche retour */
.contact-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
}

.contact-back-header {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: opacity 0.3s ease;
    position: relative;
    padding-left: 40px;
}

.contact-back-header:hover {
    opacity: 0.6;
}

.contact-back-header::before {
    content: '';
    position: absolute;
    left: -50px;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    background-image: url('../img/svg/picto_fleche_back.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.contact-back-header img {
    display: none;
}

.contact-header-title {
    font-family: 'Agrandir Grand', sans-serif;
    font-size: 30px;
    font-weight: 900;
    text-transform: uppercase;
    color: #fff;
    margin: 0;
    line-height: 1;
    letter-spacing: 0;
    text-align: center;
}

.contact-form-title {
    font-family: 'Agrandir Grand', sans-serif;
    font-size: 20px;
    font-weight: 900;
    text-transform: uppercase;
    color: #000;
    margin: 30px 0 50px 0;
    line-height: 1;
    letter-spacing: 0;
    text-align: center;
}

/* Styles spécifiques pour le formulaire de choix artistes (fond noir) */
#form-artistes-choice .contact-form-box {
    background-color: #000;
    color: #fff;
}

#form-artistes-choice .contact-close-btn {
    filter: invert(1);
}

/* Choix artistes */
.artistes-choice-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
    align-items: stretch;
}

.artiste-select-wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.artiste-select {
    width: 100%;
    padding: 15px 40px;
    font-family: 'Agrandir', sans-serif;
    font-weight: 700;
    font-size: 16px;
    line-height: 100%;
    letter-spacing: 0%;
    text-align: center;
    border: 2px solid #fff;
    background: #000;
    color: #fff;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 20px;
}

.artiste-select option {
    background: #000;
    color: #fff;
    text-align: center;
}

.contact-autre-btn {
    background: #000;
    color: #fff;
    font-family: 'Agrandir', sans-serif;
    font-weight: 700;
    font-size: 16px;
    line-height: 100%;
    letter-spacing: 0%;
    padding: 15px 30px;
    border: 2px solid #fff;
    cursor: pointer;
    transition: all 0.3s ease;
}

.contact-autre-btn:hover {
    background: #fff;
    color: #000;
}

/* Styles Contact Form 7 */
.contact-form-wrapper .wpcf7 {
    margin-top: 20px;
}

.contact-form-wrapper .wpcf7-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-form-wrapper .wpcf7 label {
    display: block;
    font-family: 'Agrandir Narrow', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 100%;
    letter-spacing: 0%;
    margin-bottom: 0;
    color: #000;
}

.contact-form-wrapper .wpcf7 p {
    margin: 0 0 20px 0;
}

.contact-form-wrapper .wpcf7 label br {
    display: block;
    content: "";
}

/* Champs de base */
.contact-form-wrapper .wpcf7 input[type="text"],
.contact-form-wrapper .wpcf7 input[type="email"],
.contact-form-wrapper .wpcf7 input[type="url"],
.contact-form-wrapper .wpcf7 textarea {
    width: 100%;
    padding: 15px;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-size: 14px;
    border: none;
    background: #CCCCCC;
    margin-bottom: 0;
    color: #000;
}

.contact-form-wrapper .wpcf7 textarea {
    min-height: 180px;
    resize: vertical;
}

/* Bouton d'upload de fichier */
.contact-form-wrapper .wpcf7 .file-upload-label {
    display: block;
    background: #000;
    color: #fff;
    font-family: 'Agrandir Narrow';
    font-size: 16px;
    font-weight: 400;
    padding: 20px 30px;
    cursor: pointer;
    transition: opacity 0.3s ease;
    margin-bottom: 15px;
    text-align: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.contact-form-wrapper .wpcf7 .file-upload-label span {
    font-family: 'Agrandir';
    font-size: 16px;
    line-height: 100%;
    letter-spacing: 0%;
    transform: translateY(1.1px);
}

.contact-form-wrapper .wpcf7 .file-upload-label span.bold-label {
    font-weight: 700;
}

.contact-form-wrapper .wpcf7 .file-upload-label::before,
.contact-form-wrapper .wpcf7 .file-upload-label::after {
    content: '';
    display: inline-block;
    width: 24px;
    height: 24px;
    background-image: url('../img/svg/picto_download.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    flex-shrink: 0;
}

.contact-form-wrapper .wpcf7 .file-upload-label::before {
    margin-right: 25px;
}

.contact-form-wrapper .wpcf7 .file-upload-label::after {
    margin-left: 25px;
}

.contact-form-wrapper .wpcf7 .file-upload-label:hover {
    opacity: 0.8;
}

.contact-form-wrapper .wpcf7 .file-upload-label .wpcf7-form-control-wrap {
    display: none;
}

.contact-form-wrapper .wpcf7 input[type="file"] {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

/* Layout en ligne pour nom, email, objet */
.contact-form-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* Bouton submit centré */
.contact-form-wrapper .wpcf7 input[type="submit"] {
    background: #000;
    color: #fff;
    font-family: 'Agrandir', sans-serif;
    font-size: 16px;
    font-weight: 700;
    padding: 10px 30px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    margin: 20px auto 0;
    display: block;
}

.contact-form-wrapper .wpcf7 input[type="submit"]:hover {
    opacity: 0.7;
}

/* Compteur de caractères pour textarea (géré par JS) */
.contact-form-wrapper .character-counter {
    text-align: right;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-size: 12px;
    font-style: italic;
    color: #666;
    margin-top: 5px;
}

/* Messages CF7 */
.contact-form-wrapper .wpcf7-response-output {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-size: 14px;
    margin-top: 20px;
    padding: 15px;
    border: 2px solid #000;
}

.contact-form-wrapper .wpcf7-validation-errors {
    border-color: #f00;
    color: #f00;
}

.contact-form-wrapper .wpcf7-mail-sent-ok {
    border-color: #0f0;
    color: #0f0;
}

/* Styles pour les formulaires artiste et autre demande */
.contact-form-wrapper .wpcf7 .wpcf7-form-control-wrap[data-name="nom-artiste-contact"],
.contact-form-wrapper .wpcf7 .wpcf7-form-control-wrap[data-name="email-artiste-contact"],
.contact-form-wrapper .wpcf7 .wpcf7-form-control-wrap[data-name="objet-artiste"],
.contact-form-wrapper .wpcf7 .wpcf7-form-control-wrap[data-name="nom-autre"],
.contact-form-wrapper .wpcf7 .wpcf7-form-control-wrap[data-name="email-autre"],
.contact-form-wrapper .wpcf7 .wpcf7-form-control-wrap[data-name="objet-autre"] {
    display: block;
}

/* Responsive */
@media (max-width: 1024px) {
    .artistes-back-link {
        left: -60px;
    }
}

/* Responsive */
@media (max-width: 768px) {

    .artistes-back-link {
        position: static;
        margin-bottom: 20px;
    }

    .contact-back-link {
        display: none;
    }

    .contact-box,
    .contact-form-box {
        padding: 30px 20px;
    }

    .contact-title {
        font-size: 28px;
        margin-bottom: 30px;
    }

    .contact-form-title,
    .contact-header-title {
        font-size: 24px;
    }

    .contact-links {
        margin-left: 10px;
    }

    /* Grille à 3 colonnes passe en 1 colonne sur mobile */
    .contact-form-row {
        grid-template-columns: 1fr;
    }

    .contact-form-wrapper .wpcf7 .file-upload-label {
        padding: 15px 20px;
        font-size: 12px;
    }

    .contact-form-wrapper .wpcf7 .file-upload-label::before,
    .contact-form-wrapper .wpcf7 .file-upload-label::after {
        width: 20px;
        height: 20px;
    }
}
