@media only screen and (min-width:320px) {
    body.en .wysiwyg h1,body.en .wysiwyg h2 {
        font-size: calc(20px + 5*(100vw - 320px)/(1280 - 320))
    }
}

@media only screen and (min-width:1280px) {
    body.en .wysiwyg h1,body.en .wysiwyg h2 {
        font-size: 25px
    }
}

.contact-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 700px;
    margin: 1% auto;
    padding: 2rem;
}

.page-title {
    text-align: center;
    margin-bottom: 0rem !important;
    font-weight: 500;
    font-family: "Poppins",sans-serif;
    letter-spacing: -.02em;
    line-height: 1.35;
    font-size: 50px;
    margin-top: 5%;
}

.form-row {
    display: flex;
    gap: 20px;
    width: 100%;
    flex-wrap: wrap;
}

.form-group {
    display: flex;
    flex-direction: column;
    position: relative;
    margin-bottom: 2.5rem;
}

.full-width {
    width: 100%;
}

.half-width {
    flex: 1;
    min-width: 250px;
}

input,
textarea {
    padding: 1.2rem;
    font-size: 1rem;
    border: none;
    border-radius: 5px;
    background-color: rgba(130, 200, 224, 0.4);
    resize: none;
}

label {
    position: absolute;
    top: 10px;
    left: 15px;
    color: #777;
    font-size: 0.9rem;
    pointer-events: none;
    transition: all 0.2s ease;
}

input:focus + label,
textarea:focus + label,
input:valid + label,
textarea:valid + label {
    top: -0.5px;
    font-size: 0.75rem;
    color: #444;
}

textarea {
    min-height: 180px;
}

.button-container {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: 1rem;
}

.submit-btn {
    padding: 10px 40px;
    border-radius: 30px;
    background-color: rgba(130, 200, 224);
    color: rgb(0, 0, 0, 0.75);
    font-size: 18px;
    border: none;
    cursor: pointer;
    transition: background 0.3s ease;
    margin: 0 5px;
}

.delete {
    background-color: #ff4d4d;
    color: white;
}

.delete:hover {
    background-color: #c34040 !important;
    transform: translateY(1px);
    box-shadow: 0 1px 1px 0 rgba(0,0,0,0.10),
              0 1px 1px 0 rgba(0,0,0,0.09);
}

.publish{
    background-color: #2dc84f;
    color: white;
}

.publish:hover {
    background-color: #23a940 !important;
    transform: translateY(1px);
    box-shadow: 0 1px 1px 0 rgba(0,0,0,0.10),
              0 1px 1px 0 rgba(0,0,0,0.09);
}

.submit-btn:hover {
    background-color: #3a7ae0;
    transform: translateY(1px);
    box-shadow: 0 1px 1px 0 rgba(0,0,0,0.10),
              0 1px 1px 0 rgba(0,0,0,0.09);
}

select {
    padding: 1.2rem;
    font-size: 0.9rem;
    border: none;
    border-radius: 5px;
    background-color: rgba(130, 200, 224, 0.4);
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg fill='%23777' height='20' viewBox='0 0 24 24' width='20' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 1.2rem center;
    background-size: 1rem;
    color: black;
}

select:focus + label,
select:valid + label {
    top: -0.5px;
    font-size: 0.75rem;
    color: #444;
}

/* Styles pour le champ d'upload de fichiers */
.file-upload-wrapper {
    width: 100%;
    position: relative;
}

.file-input {
    display: none;
}

.file-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    border: 2px dashed rgba(130, 200, 224, 0.6);
    border-radius: 5px;
    background-color: rgba(130, 200, 224, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 100px;
    position: static;
    pointer-events: auto;
    color: #666;
    font-size: 1rem;
}

.file-label:hover {
    background-color: rgba(130, 200, 224, 0.2);
    border-color: rgba(130, 200, 224, 0.8);
}

.file-label i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: rgba(130, 200, 224, 0.8);
}

.file-label span {
    text-align: center;
    font-weight: 500;
}

.file-info {
    margin-top: 0.5rem;
    padding: 0.5rem;
    background-color: rgba(46, 200, 79, 0.1);
    border-radius: 3px;
    color: #2dc84f;
    font-size: 0.9rem;
    display: none;
}

.file-info i {
    margin-right: 0.5rem;
}

/* Styles pour l'aperçu des images */
.image-preview-container {    
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
    padding: 1rem;
    background-color: rgba(130, 200, 224, 0.05);
    border-radius: 5px;
    border: 1px solid rgba(130, 200, 224, 0.2);
}

.image-preview-container h3{
    margin :0;
}

#imageUploadPreviewContainer{
    display: none;;
}

.image-preview-item {
    position: relative;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.image-preview-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.image-preview-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
}

.image-info {
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.image-name {
    font-size: 0.85rem;
    font-weight: 500;
    color: #333;
    word-break: break-word;
    line-height: 1.2;
}

.image-size {
    font-size: 0.75rem;
    color: #666;
}

.remove-image {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    width: 24px;
    height: 24px;
    background: rgba(255, 77, 77, 0.9);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    transition: all 0.2s ease;
    opacity: 0.8;
}

.remove-image:hover {
    opacity: 1;
    background: #ff4d4d;
    transform: scale(1.1);
}

.remove-image i {
    margin: 0;
}

/* Responsive pour les aperçus */
@media (max-width: 768px) {
    .image-preview-container {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 0.75rem;
        padding: 0.75rem;
    }
    
    .image-preview-item img {
        height: 120px;
    }
    
    .image-info {
        padding: 0.5rem;
    }
}

h2.response-message {
    margin-bottom: 3rem;
}