/* 1. Use a more-intuitive box-sizing model */
*, *::before, *::after {
    box-sizing: border-box;
}

/* 2. Remove default margin */
*:not(dialog) {
    margin: 0;
}

body {
    /* 4. Increase line-height */
    line-height: 1.5;
    /* 5. Improve text rendering */
    -webkit-font-smoothing: antialiased;
}

/* 6. Improve media defaults */
img, picture, video, canvas, svg {
    display: block;
    max-width: 100%;
}

/* 7. Inherit fonts for form controls */
input, button, textarea, select {
    font: inherit;
}

/* 8. Avoid text overflows */
p, h1, h2, h3, h4, h5, h6 {
    overflow-wrap: break-word;
}

/* 9. Improve line wrapping */
p {
    text-wrap: pretty;
}
h1, h2, h3, h4, h5, h6 {
    text-wrap: balance;
}

section {
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url("https://plantesetmoi.fr/wp-content/uploads/2026/02/Photo-pepiniere-scaled.jpg");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    font-size: clamp(1rem, calc(0.001852 * (100vw - 22.5rem) + 1rem), 1.125rem);
    height: 100vh;
    font-family: "Montserrat", sans-serif;
    text-align: center;
    color: hsl(120, 38%, 16%);
    padding-block: clamp(1.5625rem, calc(0.009722 * (100vw - 22.5rem) + 1.5625rem), 2.21875rem);
    padding-inline: clamp(1rem, calc(0.003704 * (100vw - 22.5rem) + 1rem), 1.25rem);
}

container {
    display: flex;
    justify-content: center;
    width: 1440px;
}

.content {
    width: 90%;
    max-width: 720px;
    padding-top: 1.875rem;
    background-color: #fff;
    display: flex;
    flex-direction: column;
    row-gap: 0.75rem;
    border-radius: 4px;
    overflow: hidden;
}

h1, h2, h3 { font-family: "Lora", serif; font-weight: 600; }

h3 { font-size: clamp(1.25rem, calc(0.003704 * (100vw - 22.5rem) + 1.25rem), 1.5rem); }
h1 { font-size: clamp(1.956rem, calc(0.010463 * (100vw - 22.5rem) + 1.956rem), 2.663rem); }
h2 { font-size: clamp(1.5625rem, calc(0.006481 * (100vw - 22.5rem) + 1.5625rem), 2rem); }

img { max-width: 200px; margin-bottom: 20px; }

.footer {
    display: flex;
    flex-direction: column;
    row-gap: 0.625rem;
    justify-content: center;
    background-color: #e2e2e2;
    padding: 1.25rem;
    margin-top: 1.875rem;
}

.links {
    display: flex;
    flex-direction: row;  
    justify-content: space-between;
}

@media (width <= 480px) {
    .links {
        flex-direction: column;
        row-gap: .75rem;
    }
}

/* --- Form --- */
.sam-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding-inline: clamp(1rem, 5%, 2.5rem);
    width: 100%;
}

.sam-form input[type="password"] {
    width: 100%;
    max-width: 25rem;
    padding: 0.625rem 0.9375rem;
    border: 1px solid hsl(120, 20%, 60%);
    border-radius: 0.25rem;
}

.sam-form button[type="submit"] {
    width: 100%;
    max-width: 25rem;
    padding: 0.625rem 1.25rem;
    font-weight: 500;
    background-color: hsl(26, 100%, 50%);
    color: #fff;
    border: none;
    border-radius: 0.25rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.sam-form button[type="submit"]:hover {
    background-color: hsl(26, 100%, 44%);
}

.sam-intro { padding-top: 0.625rem; }

.sam-error { color: red; }
