@font-face {
    font-family: 'DMSerie';
    src: url("../assets/fonts/DMSerie.ttf") format('truetype');
    font-display: swap;
}

@font-face {
    font-family: 'Fjalla One';
    src: url("../assets/fonts/FjallaOne.ttf") format('truetype');
    font-display: swap;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

a {
  text-decoration: none;
  color: inherit;        
}

body {
    font-family: 'Playfair Display', Verdana, serif;
    background: url("/assets/images/contactfond.jpg") center/cover;
    min-height: 100vh;
}

h2 {
    text-align: center;
    font-size: 2.5rem;
    color: rgb(177, 161, 90);
    text-shadow: 2px 4px 6px #00000066;
    font-family: 'Fjalla One', sans-serif;
    margin-bottom: 10px;
}

h3 {
    text-align: center;
    font-size: 1.3rem;
    color: #000;
    text-shadow: 2px 4px 6px #00000066;
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    margin-bottom: 10px;
}

nav {
    height: 60px;
    background-color: rgba(199, 199, 199, 0.664);
    width: 100%;
    margin: 0;
    border-radius: 0 0 30px 30px;
    font-family: 'Fjalla One', sans-serif;
    font-size: larger;
}

.raccourcis {
    display: flex;
    align-items: center;
    height: 100%;
    gap: 30px;
    margin-left: 35px;
}

.absolute-right {
    color: rgb(209, 209, 209);
    margin-left: auto;
    font-size: 20px;
    font-weight: bold;
    padding-right: 25px;
    align-self: center;
}

.btn {
    padding: 10px 10px;
    color: #fff;
    border-radius: 10px;
    font-weight: 600;
    transition: 0.2s;
}

.btn:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(106, 106, 106, 0.5);
}

.box {
    width: min(600px, 90%);
    height: auto;
    background: rgba(255, 255, 255, 0.3);
    box-shadow: 70px 70px 120px 20px rgba(0, 0, 0, 0.95);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 20px;
    padding: 30px;
    box-sizing: border-box;
}

.main-container {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem;
    min-height: 100vh;
    box-sizing: border-box;
}

.form-header {
    margin-bottom: 2rem;
    text-align: center;
}

.form-title {
    font-size: 1.875rem;
    font-weight: 600;
    color: #1f2937;
}

.form-description {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: #4b5563;
    line-height: 1.5;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.4rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #4b5563;
}

.form-input, .form-textarea {
    width: 100%;
    border-radius: 0.2rem;
    border: 1px solid #d1d5db;
    padding: 0.8rem;
    font-size: 0.875rem;
    color: #1f2937;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
    resize: none;
}

.consent-group {
    display: flex;
    align-items: center;
    margin-bottom: 1.3rem;
}

.form-checkbox {
    height: 1rem;
    width: 1rem;
}

.consent-label {
    margin-left: 0.5rem;
    font-size: 0.875rem;
    color: #4b5563;
}

.privacy-links {
    margin-bottom: 1rem;
    text-align: center;
    font-size: 0.875rem;
    color: #000000;
}

.privacy-links a {
    color: #000000;
    text-decoration: none;
}

.privacy-links a:hover {
    text-decoration: underline;
}

.submit-btn {
    width: 100%;
    border-radius: 0.375rem;
    background-color: #b1b1b1;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    color: #fff;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s, box-shadow 0.3s;
}

.submit-btn:hover {
    background-color: #6e6e6e;
}

@media (max-width: 1200px) {
    nav {
        padding: 0 20px;
    }

    .raccourcis {
        flex-wrap: wrap;
        justify-content: flex-start;
        margin-left: 20px;
        gap: 16px;
    }

    .box {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        margin: 3rem auto 2rem;
        width: min(90%, 700px);
        padding: 28px;
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
    }
}

@media (max-width: 768px) {
    .raccourcis {
        justify-content: center;
        margin-left: 0;
        gap: 12px;
    }

    .absolute-right {
        width: 100%;
        text-align: center;
        padding-right: 0;
    }

    .box {
        width: min(95%, 560px);
        padding: 22px;
    }

    h2 {
        font-size: 2rem;
    }

    h3 {
        font-size: 1rem;
    }

    .form-group {
        margin-bottom: 1rem;
    }

    .form-label,
    .consent-label {
        font-size: 0.82rem;
    }

    .form-input,
    .form-textarea {
        font-size: 0.9rem;
    }
}
