header {
    width: 100%;
    display: flex;
    justify-content: start;
    background-color: rgb(255, 255, 255);

    margin-bottom: 30px;

    border-bottom: 2px solid rgb(236, 235, 235)
}

.header-logo {
    margin-left: 20px
}

.header-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.header-title {
    font-size: 24px;
    margin: 0
}

.header-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    margin: 0;
}

/* layout */

.main-frame {
    width: 70%;
    margin: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* texte contact */
.contact-frame {
    background: var(--main-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 50px 60px;
    width: 100%;
    max-width: 800px;
    animation: fadeIn 0.7s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.contact-frame h2 {
    color: #667eea;
    font-size: 2.2em;
    margin-bottom: 30px;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

.contact-frame h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 180px;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 2px;
}

.contact-frame p {
    color: #4a5568;
    font-size: 1.05em;
    line-height: 1.8;
    margin-bottom: 25px;
    text-align: justify;
    position: relative;
    padding-left: 20px;
}

.contact-frame p::before {
    content: '';
    position: absolute;
    left: 0;
    top: 12px;
    width: 10px;
    height: 10px;
    background: #667eea;
    border-radius: 50%;
    opacity: 0.7;
}

.contact-frame p:last-of-type {
    margin-bottom: 0;
}

.contact-frame p:hover {
    color: #2d3748;
    transition: color 0.3s ease;
}






/* formulaire */
#contact-form {
    width: 100%;
    max-width: 800px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-large);
    padding: 50px 60px;

    display: flex;
    flex-direction: column;
    justify-content: center;

    background-color: var(--main-bg);
    margin-bottom:50px
}


form {
    margin-top: 30px;
}

label {
    display: block;
    color: #333;
    font-weight: 600;
    margin-bottom: 8px;
    margin-top: 20px;
}

input[type="text"],
input[type="email"],
select,
textarea {
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 16px;
    font-family: inherit;
    transition: border-color 0.3s;
}

input[type="text"]:focus,
input[type="email"]:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #667eea;
}

textarea {
    resize: vertical;
    min-height: 150px;
}

button[type="submit"] {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 14px 32px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 25px;
    transition: transform 0.2s, box-shadow 0.2s;
}

button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

button[type="submit"]:active {
    transform: translateY(0);
}

.required {
    color: #e74c3c;
}

@media(max-width:1024px) {
    .main-frame {
        width: 85%;
    }

    .contact-frame{
        width:100%;
        padding : 30px 
    }
}

@media (max-width: 768px) {
    .main-frame {
        width: 90%;
    }

    .contact-frame h2 {
        font-size: 1.8em;
    }

    .contact-frame, #contact-form {
        padding: 30px 20px
    }

    .contact-frame p {
        font-size: 1em;
        text-align: left;
    }
}

@media (max-width: 600px) {
    .contact-frame{
        padding:10px 20px
    }
    h2{
        font-size:20px;
        margin: 15px 20px
    }

    .title {
        font-size: 24px;
    }
}