/*
 * Responsive layout safeguards.
 * Loaded after site.css so every section stays inside the viewport.
 */

html,
body {
	width: 100%;
	max-width: 100%;
	overflow-x: clip;
}

img,
svg,
video,
iframe {
	display: block;
	height: auto;
	max-width: 100%;
}

.site-header,
.hero-section,
.section,
.benefits-strip,
.pricing-section,
.steps-section,
.site-footer {
	width: 100%;
}

.header-inner,
.hero-content,
.section-heading,
.offer-grid,
.benefits-inner,
.about-section > .wp-block-columns,
.pricing-grid,
.steps-grid,
.contact-panel,
.site-footer > .wp-block-columns {
	width: min(100%, 1240px);
	min-width: 0;
	margin-inline: auto;
}

.header-inner > *,
.hero-section > *,
.offer-grid > *,
.benefits-inner > *,
.pricing-grid > *,
.steps-grid > *,
.contact-details > * {
	min-width: 0;
	max-width: 100%;
}

.header-inner {
	gap: 1rem;
}

.wp-block-navigation {
	min-width: 0;
}

.wp-block-navigation__container {
	column-gap: clamp(0.7rem, 1.5vw, 1.4rem) !important;
}

.brand-lockup {
	flex: 0 0 auto;
	gap: 0;
}

.brand-tagline {
	margin: 0;
	font-size: 0.58rem;
	line-height: 1.2;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	white-space: nowrap;
}

.header-phone {
	flex: 0 0 auto;
	margin-left: 0.75rem;
}

.header-phone .wp-block-button__link {
	padding: 0.72rem 1.1rem;
	color: #fff;
	background: #c81018;
	white-space: nowrap;
}

.hero-section {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
	grid-template-rows: auto;
	gap: clamp(1.5rem, 4vw, 4rem);
	align-items: center;
	min-height: 650px;
	padding: clamp(4rem, 8vw, 7rem) max(1.25rem, calc((100vw - 1240px) / 2));
}

.hero-content {
	grid-column: 1;
	grid-row: 1;
	width: 100%;
	margin: 0;
}

.hero-title {
	max-width: 100%;
	font-size: clamp(2.75rem, 6.5vw, 6.75rem) !important;
	line-height: 0.92;
	letter-spacing: -0.065em;
	white-space: nowrap;
	overflow-wrap: normal;
	word-break: keep-all;
}

.hero-title em {
	display: inline;
}

.hero-copy {
	max-width: 58ch;
	font-size: clamp(1rem, 1.2vw, 1.125rem) !important;
}

.hero-visual {
	grid-column: 2;
	grid-row: 1;
	width: 100%;
	min-width: 0;
	margin: 0;
	position: relative;
	z-index: 3;
}

.hero-visual img {
	display: block;
	width: 100%;
	height: auto;
	max-height: 480px;
	object-fit: contain;
}

.hero-stat {
	display: none;
}

.offer-grid {
	display: grid !important;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 1rem;
}

.offer-grid > .wp-block-column {
	display: flex;
	min-width: 0;
	max-width: 100%;
	flex-basis: auto !important;
	width: auto;
	margin: 0;
}

.vehicle-catalog-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1.25rem;
	width: min(100%, 1240px);
	margin: 0 auto 2rem;
}

.vehicle-catalog-card {
	display: flex;
	min-width: 0;
	overflow: hidden;
	flex-direction: column;
	border: 1px solid #e6e3e3;
	border-radius: 1rem;
	background: #fff;
	box-shadow: 0 12px 35px rgba(13, 20, 26, 0.07);
}

.vehicle-catalog-card > img,
.vehicle-card-placeholder {
	width: 100%;
	height: 230px;
	object-fit: cover;
}

.vehicle-card-placeholder {
	display: grid;
	place-content: center;
	gap: 0.35rem;
	color: #fff;
	background: #0d141a;
	text-align: center;
}

.offer-card .vehicle-card-placeholder {
	width: calc(100% + 3rem);
	max-width: none;
	height: clamp(170px, 15vw, 220px);
	margin: 0 -1.5rem 1.5rem;
	border-radius: 0;
}

.vehicle-card-placeholder span { font-size: 1.3rem; font-weight: 800; }
.vehicle-card-placeholder small { color: #c8c8c8; }
.vehicle-catalog-body { display: flex; flex: 1; flex-direction: column; padding: 1.5rem; }
.vehicle-index { color: #c81018; font-size: 0.72rem; font-weight: 800; }
.vehicle-catalog-body h2 { margin: 0.4rem 0 0.8rem; font-size: clamp(1.15rem, 1.5vw, 1.5rem); letter-spacing: -0.035em; white-space: nowrap; word-break: normal; overflow-wrap: normal; hyphens: none; }
.vehicle-catalog-body > p { margin-top: 0; color: #5d5d5d; font-size: 0.9rem; }
.vehicle-rates { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem; margin: auto 0 1.25rem; }
.vehicle-rates div { padding: 0.7rem; border-radius: 0.6rem; background: #f5f5f7; }
.vehicle-rates dt { color: #686868; font-size: 0.68rem; text-transform: uppercase; }
.vehicle-rates dd { margin: 0.15rem 0 0; color: #470608; font-size: 1.05rem; font-weight: 800; }
.vehicle-catalog-body > a { display: block; padding: 0.8rem 1rem; border-radius: 999px; color: #fff; background: #c81018; font-size: 0.78rem; font-weight: 800; text-align: center; }
.vehicle-rate-note { max-width: 760px; margin: 0 auto 2rem; color: #5d5d5d; font-size: 0.86rem; }

.offer-card {
	width: 100%;
	min-height: 430px;
	padding: 0 1.5rem 1.5rem;
	overflow: hidden;
}

.vehicle-card-image {
	display: block;
	width: calc(100% + 3rem);
	max-width: none;
	height: clamp(170px, 15vw, 220px);
	margin: 0 -1.5rem 1.5rem;
	object-fit: cover;
	border-radius: 0;
}

.offer-number {
	margin: 0 0 1rem;
}

.offer-card h3 {
	margin-top: 0;
	font-size: clamp(1.15rem, 1.6vw, 1.5rem);
	letter-spacing: -0.035em;
	white-space: nowrap;
}

.card-link {
	margin-top: auto;
}

.benefits-inner {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: clamp(1.25rem, 3vw, 2rem);
}

.benefits-inner article {
	min-width: 0;
}

.about-section .check-list {
	display: grid;
	grid-template-columns: 1fr;
	gap: 0.75rem;
	margin-top: 1.75rem;
	padding: 0;
	columns: auto;
}

.about-section .check-list li {
	margin: 0;
}

.benefits-inner article > div {
	min-width: 0;
}

.pricing-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.pricing-intro {
	max-width: 720px;
	margin: 0 auto 2.5rem;
}

.rate-table-wrap {
	width: min(100%, 1180px);
	margin: 0 auto;
	overflow-x: auto;
	border-radius: 1rem;
	box-shadow: 0 15px 45px rgba(13, 20, 26, 0.08);
}

.rate-table {
	width: 100%;
	border-collapse: collapse;
	background: #fff;
	text-align: center;
}

.rate-table caption {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.rate-table th,
.rate-table td {
	padding: 1.15rem 1rem;
	border-bottom: 1px solid #e4e4e4;
}

.rate-table thead th {
	color: #fff;
	background: #0d141a;
	font-size: 0.82rem;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.rate-table thead th:first-child {
	text-align: left;
}

.rate-table thead small {
	display: inline-block;
	margin-top: 0.3rem;
	color: #c8c8c8;
	font-size: 0.65rem;
	font-weight: 500;
	line-height: 1.3;
	text-transform: none;
}

.rate-table tbody th {
	text-align: left;
	font-weight: 750;
}

.rate-table tbody td {
	color: #470608;
	font-size: 1.05rem;
	font-weight: 800;
}

.rate-table tbody tr:last-child th,
.rate-table tbody tr:last-child td {
	border-bottom: 0;
}

.rate-table tbody tr:hover {
	background: #faf7f7;
}

.rate-cta {
	display: inline-block;
	margin-top: 1.5rem;
	padding: 0.9rem 1.5rem;
	border-radius: 999px;
	color: #fff;
	background: #c81018;
	font-size: 0.82rem;
	font-weight: 900;
}

.steps-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.contact-details {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.contact-details--simple {
	grid-template-columns: repeat(2, minmax(0, 1fr));
	max-width: 720px;
	margin-inline: auto;
}

.contact-hours {
	display: grid;
	gap: 0.65rem;
	padding: 0;
	list-style: none;
}

.contact-hours li {
	margin: 0;
}

.contact-details strong,
.benefits-inner h3,
.benefits-inner p,
.offer-card p,
.pricing-grid h3,
.pricing-grid strong,
.steps-grid h3,
.steps-grid p,
	.site-footer a {
	overflow-wrap: anywhere;
}

.location-map {
	display: block;
	width: 100%;
	max-width: 100%;
}

/* Ordinateurs portables et grandes tablettes. */
@media (max-width: 1100px) {
	.header-inner {
		flex-wrap: wrap !important;
		row-gap: 0.75rem;
	}

	.wp-block-navigation {
		order: 3;
		flex-basis: 100%;
		width: 100%;
		justify-content: center;
	}

	.hero-section {
		grid-template-columns: minmax(0, 1fr) minmax(280px, 0.8fr);
		min-height: 580px;
	}

	.offer-grid,
	.steps-grid,
	.vehicle-catalog-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.offer-card {
		min-height: 410px;
	}

	.vehicle-card-image {
		height: 240px;
	}

	.benefits-inner {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/* Tablettes portrait. */
@media (max-width: 781px) {
	.site-header {
		padding: 0.85rem 1rem;
	}

	.header-inner {
		flex-wrap: nowrap !important;
	}

	.wp-block-navigation {
		order: initial;
		flex-basis: auto;
		width: auto;
		margin-left: auto;
	}

	.wp-block-navigation__responsive-container-open {
		display: flex;
	}

	.hero-section {
		display: flex;
		flex-direction: column;
		align-items: stretch;
		min-height: 0;
		padding: clamp(3.5rem, 9vw, 5rem) 1.25rem 3rem;
	}

	.hero-content,
	.hero-visual {
		width: min(100%, 680px);
		margin-inline: auto;
	}

	.hero-visual {
		margin-top: 1rem;
		isolation: isolate;
	}

	.hero-visual img {
		max-height: 360px;
	}

	.section-heading {
		display: block;
	}

	.offer-grid,
	.benefits-inner,
	.steps-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.pricing-grid,
	.contact-details {
		grid-template-columns: 1fr;
	}

	.rate-table-wrap {
		overflow: visible;
		border-radius: 0;
		box-shadow: none;
	}

	.rate-table,
	.rate-table tbody,
	.rate-table tr,
	.rate-table th,
	.rate-table td {
		display: block;
		width: 100%;
	}

	.rate-table thead {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0, 0, 0, 0);
	}

	.rate-table tbody {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 1rem;
	}

	.rate-table tbody tr {
		padding: 1.25rem;
		border-radius: 1rem;
		background: #fff;
		box-shadow: 0 10px 30px rgba(13, 20, 26, 0.07);
	}

	.rate-table tbody th {
		padding: 0 0 1rem;
		border-bottom: 2px solid #c81018;
		font-size: 1.15rem;
	}

	.rate-table tbody td {
		display: flex;
		justify-content: space-between;
		gap: 1rem;
		padding: 0.7rem 0;
		border-bottom: 1px solid #ededed;
		text-align: right;
	}

	.rate-table tbody td::before {
		content: attr(data-label);
		color: #555;
		font-size: 0.78rem;
		font-weight: 650;
		text-align: left;
	}

	.about-section .wp-block-columns,
	.site-footer .wp-block-columns {
		flex-wrap: wrap !important;
		gap: 2rem;
	}

	.about-section .wp-block-column,
	.site-footer .wp-block-column {
		flex-basis: 100% !important;
		width: 100%;
	}

	.check-list {
		columns: auto;
	}

	.contact-panel {
		padding-inline: 1.25rem;
	}

	.site-footer {
		padding-bottom: 6.5rem;
	}

	.header-phone {
		position: fixed;
		z-index: 999;
		left: 0.75rem;
		right: 0.75rem;
		bottom: calc(0.75rem + env(safe-area-inset-bottom));
		margin: 0;
	}

	.header-phone .wp-block-button,
	.header-phone .wp-block-button__link {
		width: 100%;
		text-align: center;
	}
}

/* Téléphones. */
@media (max-width: 560px) {
	.site-header {
		padding-inline: 0.9rem;
	}

	.header-inner {
		gap: 0.65rem;
	}

	.brand-lockup {
		max-width: calc(100% - 3.5rem);
	}

	.hero-title {
		font-size: clamp(2.25rem, 11.5vw, 4.25rem) !important;
		line-height: 0.92;
		letter-spacing: -0.07em;
		white-space: nowrap;
	}

	.hero-copy {
		font-size: 1rem !important;
	}

	.hero-content .wp-block-buttons {
		align-items: stretch;
		flex-direction: column;
	}

	.hero-content .wp-block-button,
	.hero-content .wp-block-button__link {
		width: 100%;
		text-align: center;
	}

	.hero-visual img {
		max-height: 270px;
	}

	.hero-badge {
		right: 0;
		bottom: 0;
		max-width: calc(100% - 1rem);
		font-size: 0.62rem;
		white-space: normal;
	}

	.section,
	.benefits-strip,
	.pricing-section,
	.steps-section {
		padding-inline: 1rem;
	}

	.offer-grid,
	.benefits-inner,
	.steps-grid,
	.vehicle-catalog-grid {
		grid-template-columns: 1fr;
	}

	.rate-table tbody {
		grid-template-columns: 1fr;
	}

	.offer-card {
		min-height: 0;
	}

	.vehicle-card-image {
		height: clamp(210px, 62vw, 300px);
	}

	.offer-card .vehicle-card-placeholder {
		height: clamp(210px, 62vw, 300px);
	}

	.pricing-grid article {
		padding: 2rem 1.25rem;
	}

	.pricing-section > h2,
	.steps-section > h2 {
		font-size: clamp(2.3rem, 13vw, 3.6rem);
	}

	.contact-panel {
		padding: 2.5rem 1rem;
		border-radius: 1rem;
	}

	.contact-details > a,
	.contact-details > div {
		align-items: flex-start;
		width: 100%;
	}

	.location-map {
		height: 280px;
	}
}

/* Très petits téléphones. */
@media (max-width: 380px) {
	.brand-tagline {
		display: none;
	}

	.brand {
		font-size: 1.15rem;
	}

	.hero-section {
		padding-inline: 0.9rem;
	}

	.hero-title {
		font-size: clamp(2rem, 11vw, 2.65rem) !important;
	}

	.vehicle-card-image {
		height: 210px;
	}
}
