@import url('https://fonts.googleapis.com/css2?family=Garamond&display=swap');

body {
    font-family: 'Garamond', serif;
    background-color: #f9f3e7;
    color: #7b3e00;
    margin: 0;
    padding: 0 20px;
    min-height: 100vh;
    line-height: 1.6;
}

main.container {
    display: flex !important;
    flex-wrap: nowrap;
    max-width: 1100px;
    margin: 40px auto;
    gap: 50px;
}

/* Formulaire */
.form-section {
    flex: 0 1 40%;
    background: #fff8f0;
    padding: 35px 40px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(123, 62, 0, 0.15);
    box-sizing: border-box;
    min-width: 320px;
}

/* Carte PDF */
.card-section {
    flex: 0 1 60%;
    background: #fff8f0;
    padding: 25px 30px 30px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(123, 62, 0, 0.15);
    height: 700px;
    box-sizing: border-box;
    overflow: hidden;
}

h1, h2 {
    margin-top: 0;
    margin-bottom: 25px;
    color: #a05000;
}

h1 {
    font-size: 2.8rem;
    font-weight: normal;
    letter-spacing: 0.05em;
}

h2 {
    font-size: 1.9rem;
    font-weight: normal;
}

label {
    display: block;
    margin-top: 20px;
    font-size: 1.15rem;
    font-weight: 600;
    color: #7b3e00;
}

input[type="text"], select, textarea {
    width: 100%;
    padding: 12px 14px;
    margin-top: 6px;
    font-family: 'Garamond', serif;
    font-size: 1rem;
    color: #4a2b00;
    border: 1.5px solid #d4a55a;
    border-radius: 8px;
    background: #fff9f3;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
    box-sizing: border-box;
}

input[type="text"]:focus, select:focus, textarea:focus {
    border-color: #a96200;
    box-shadow: 0 0 6px rgba(169, 98, 0, 0.5);
    outline: none;
}

textarea {
    min-height: 90px;
    resize: vertical;
    font-style: italic;
    color: #5f3e00;
}

button.btn-submit {
    margin-top: 30px;
    padding: 16px 0;
    width: 100%;
    background: linear-gradient(135deg, #a96200 0%, #c18600 100%);
    color: #fff9f3;
    font-size: 1.3rem;
    font-weight: 700;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    letter-spacing: 0.07em;
    box-shadow: 0 6px 15px rgba(169, 98, 0, 0.5);
    transition: background 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease;
    box-sizing: border-box;
}

button.btn-submit:hover {
    background: linear-gradient(135deg, #c18600 0%, #a96200 100%);
    box-shadow: 0 8px 18px rgba(193, 134, 0, 0.8);
    transform: translateY(-2px);
}

.card-section iframe {
    width: 100%;
    height: 100%;
    border-radius: 8px;
    border: none;
    box-shadow: inset 0 0 14px rgba(196, 155, 72, 0.3);
    box-sizing: border-box;
}

/* Responsive : passage en colonne et ajustements sur petits écrans */
@media (max-width: 900px) {
    main.container {
        flex-direction: column !important;
        flex-wrap: nowrap !important;
        padding: 0 12px;
    }
    .form-section, .card-section {
        flex: 1 1 100% !important;
        max-width: 100% !important;
    }
    .card-section {
        height: 480px;
        margin-top: 28px;
        overflow: hidden;
    }
    .card-section iframe {
        height: 100%;
        width: 100%;
        max-width: 100%;
        border-radius: 8px;
    }
}

/* Ajustements pour très petits écrans */
@media (max-width: 480px) {
    h1 {
        font-size: 2rem;
    }
    h2 {
        font-size: 1.4rem;
    }
    button.btn-submit {
        font-size: 1.15rem;
        padding: 14px 0;
    }
}
