/* ---------------------------------------------------------
   Page contact — page-contact.css
   --------------------------------------------------------- */

.contact-main {
	border-bottom: 4px solid white;
}

/* ── Layout 2 colonnes ─────────────────────────────────── */

.contact-right {
    overflow: hidden;
}

.contact-decoration {
	object-fit: cover;
	width: auto;
	height: 100%;
}

.contact-layout {
	position: relative;
	display: grid;
	grid-template-columns: 1fr 1fr;
	min-height: calc(100vh - var(--header-top-height) - var(--header-nav-height));
	border-right: 4px solid white;
	border-left: 4px solid white;
}

.contact-layout::before {
    content: "";
    position: absolute;
    top: 0;
    left: calc(50% - 2px);
    width: 4px;
    height: 100%;
    background-color: white;
    z-index: 1;
}

/* ── Colonne intro ─────────────────────────────────────── */

.contact-intro {
	padding: 10rem 8rem;
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}

.contact-eyebrow {
    display: inline-block;
    font-size: 1.15rem;
    font-weight: 500;
    letter-spacing: 0.10rem;
    text-transform: uppercase;
    color: var(--blue);
}

.contact-title {
	font-size: clamp(3rem, 7vw, 9rem);
	font-weight: 600;
	line-height: 1.1;
	text-transform: uppercase;
	max-width: 70rem;
	margin-bottom: 2rem;
}

.contact-body p {
	font-size: 1.4rem;
	line-height: 1.7;
	max-width: 60rem;
	margin-bottom: 1.6rem;
	text-transform: uppercase;
	font-weight: 500;
}

.contact-body a {
    color: var(--blue);
}

.contact-body a.link-underline::after {
    bottom: 3px;
}

.contact-body p:last-child {
    margin-bottom: 0;
}

/* ── Colonne formulaire ────────────────────────────────── */

.contact-form-wrap {
	padding: 10rem 8rem;
	display: flex;
	flex-direction: column;
	border-top: 4px solid white;
}

/* ── Feedback ──────────────────────────────────────────── */

.contact-form-title {
    text-transform: uppercase;
    font-size: 4rem;
    margin-bottom: 2rem;
}

.contact-feedback {
    border-radius: 4px;
    font-size: 1.4rem;
    line-height: 1.5;
    display: none;
    padding: 1.6rem 2rem;
}

.contact-feedback.is-success {
    display: block;
    background-color: #edf7ed;
    border: 1.5px solid #4caf50;
    color: #2e7d32;
}

.contact-feedback.is-error {
    display: block;
    background-color: #fdecea;
    border: 1.5px solid var(--terracotta);
    color: var(--terracotta);
}

/* ── Formulaire ────────────────────────────────────────── */

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.contact-field--extra {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    pointer-events: none;
}

.contact-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.contact-field {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    position: relative;
}

.contact-label {
	font-size: 1.1rem;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.05rem;
    position: relative;
    width: fit-content;
}

.contact-required {
	color: var(--terracotta);
	position: absolute;
	top: -3px;
	right: -8px;
}

.contact-input {
	font-family: var(--font-sans);
	font-size: 1.25rem;
	background: white;
	border: 1px solid var(--border);
	padding: 1.4rem 1.6rem;
	width: 100%;
	outline: none;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-input::placeholder {
    color: var(--text-light);
    opacity: 0.6;
}

.contact-input:focus {
    border-color: var(--brown);
}

.contact-input:invalid:not(:placeholder-shown) {
    border-color: var(--terracotta);
}

.contact-textarea {
	resize: none;
	min-height: 14rem;
	line-height: 1.6;
}

.contact-char-count {
	font-size: 1rem;
	color: var(--text-light);
	text-align: right;
}

/* ── Consentement ──────────────────────────────────────── */

.contact-field--consent {
    flex-direction: row;
    align-items: flex-start;
    gap: 1.2rem;
}

.contact-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    cursor: pointer;
}

.contact-checkbox {
    flex-shrink: 0;
    width: 1.8rem;
    height: 1.8rem;
    margin-top: 0.2rem;
    accent-color: var(--blue);
    cursor: pointer;
}

.contact-checkbox-text {
	font-size: 1.15rem;
	line-height: 1.5;
	text-transform: uppercase;
	font-weight: 500;
}

.contact-checkbox-text a {
    color: var(--blue);
}

/* ── Bouton submit ─────────────────────────────────────── */

.contact-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    align-self: flex-start;
    position: relative;
    min-width: 20rem;
    border: none;
    margin-top: 2rem;
}

.contact-submit-label {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
}

.contact-submit-icon {
    width: 1.5rem;
    height: 1.5rem;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.contact-submit:hover .contact-submit-icon {
    transform: translate(2px, -2px);
}

.contact-submit-loader {
    display: none;
    width: 1.6rem;
    height: 1.6rem;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-top-color: white;
    border-radius: 50%;
    animation: contact-spin 0.7s linear infinite;
}

.contact-submit.is-loading .contact-submit-label {
    opacity: 0.6;
}

.contact-submit.is-loading .contact-submit-loader {
    display: block;
}

.contact-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

@keyframes contact-spin {
    to { transform: rotate(360deg); }
}

input[type="checkbox"].contact-checkbox {
	width: 1.5rem;
	height: 1.5rem;
	top: -1.5px;
}