/*
 * Composants communs du site public, relevés dans design/handoff/project/Site public.dc.html.
 * Les styles propres à une page vont dans assets/css/pages/{page}.css.
 */

/* ---------- Mise en page ---------- */
.vs-page {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

.vs-main {
	flex: 1;
	outline: none;
}

.vs-container {
	max-width: 1200px;
	margin: 0 auto;
}

/* ---------- Icônes ---------- */
.vs-icon {
	font-family: 'Material Symbols Rounded';
	font-style: normal;
	font-size: 24px;
	letter-spacing: normal;
	text-transform: none;
	display: inline-block;
	white-space: nowrap;
	word-wrap: normal;
	direction: ltr;
	flex: none;
	-webkit-font-feature-settings: 'liga';
	font-feature-settings: 'liga';
	-webkit-font-smoothing: antialiased;
}

/* ---------- Logo ---------- */
.vs-logo {
	display: inline-flex;
	align-items: baseline;
	font-family: var(--vs-police);
	font-weight: 800;
	letter-spacing: -0.045em;
	color: var(--vs-petrole);
	line-height: 1;
	padding-bottom: 0.18em;
	white-space: nowrap;
}

.vs-logo__oo {
	position: relative;
	display: inline-block;
}

.vs-logo__oo svg {
	position: absolute;
	left: 4%;
	bottom: -0.46em;
	width: 92%;
	height: auto;
	overflow: visible;
	fill: var(--vs-caramel);
	stroke: var(--vs-caramel);
}

.vs-logo__oo svg path:first-child {
	stroke: none;
}

/* ---------- Boutons (pilules du site public) ---------- */
.vs-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	border-radius: var(--vs-rayon-pilule);
	border: none;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
}

.vs-btn:active {
	transform: scale(0.98);
}

.vs-btn--44 {
	height: 44px;
	padding: 0 18px;
	font-size: 15px;
}

.vs-btn--48 {
	height: 48px;
	padding: 0 20px;
	font-size: 15px;
}

.vs-btn--52 {
	height: 52px;
	padding: 0 20px;
	font-size: 16px;
}

.vs-btn--56 {
	height: 56px;
	padding: 0 26px;
	font-size: 17px;
}

.vs-btn--primary {
	background: var(--vs-petrole);
	color: var(--vs-blanc);
}

.vs-btn--primary:hover {
	background: var(--vs-petrole-fonce);
	color: var(--vs-blanc);
}

.vs-btn--secondary {
	background: var(--vs-blanc);
	border: 1.5px solid var(--vs-petrole);
	color: var(--vs-petrole);
}

.vs-btn--secondary:hover {
	background: var(--vs-petrole-teinte);
	color: var(--vs-petrole-fonce);
}

/* Lien en forme de bouton, sans fond (« voir les tarifs », « Nous contacter »). */
.vs-btn--ghost {
	background: none;
	color: var(--vs-petrole);
	padding-left: 20px;
	padding-right: 20px;
}

.vs-btn--ghost:hover {
	color: var(--vs-petrole-fonce);
	text-decoration: underline;
}

/* Bouton blanc sur fond pétrole (appel final). */
.vs-btn--inverse {
	background: var(--vs-blanc);
	color: var(--vs-petrole);
	font-weight: 700;
}

.vs-btn--inverse:hover {
	background: var(--vs-petrole-teinte);
	color: var(--vs-petrole-fonce);
}

.vs-btn .vs-icon {
	font-size: 20px;
}

/* ---------- Lien d'évitement ---------- */
.vs-skip {
	position: absolute;
	left: 16px;
	top: -60px;
	z-index: 100;
	padding: 12px 16px;
	border-radius: var(--vs-rayon);
	background: var(--vs-petrole);
	color: var(--vs-blanc);
	font-weight: 600;
}

.vs-skip:focus {
	top: 12px;
	color: var(--vs-blanc);
}

/* ---------- En-tête ---------- */
.vs-header {
	position: sticky;
	top: 0;
	z-index: 40;
	background: var(--vs-vert-eau);
	border-bottom: 1px solid var(--vs-bord);
}

.vs-header__bar {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 24px;
	height: 72px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
}

.vs-header__logo {
	display: flex;
	align-items: center;
	gap: 10px;
	text-decoration: none;
	color: var(--vs-encre);
	flex: none;
}

.vs-header__nav {
	display: flex;
	align-items: center;
	gap: 4px;
}

.vs-header__link {
	padding: 10px 12px;
	font-size: 15px;
	font-weight: 500;
	color: var(--vs-encre);
	text-decoration: none;
	border-bottom: 2px solid transparent;
}

.vs-header__link:hover {
	color: var(--vs-petrole);
}

.vs-header__link[aria-current='page'] {
	color: var(--vs-petrole);
	border-bottom-color: var(--vs-caramel);
}

.vs-header__actions {
	display: flex;
	align-items: center;
	gap: 8px;
	flex: none;
	white-space: nowrap;
}

.vs-header__login {
	padding: 10px 14px;
	font-size: 15px;
	font-weight: 600;
	color: var(--vs-petrole);
	text-decoration: none;
}

.vs-header__login:hover {
	color: var(--vs-petrole-fonce);
	text-decoration: underline;
}

.vs-header__menu-button {
	display: none;
	height: 44px;
	padding: 0 14px;
	border-radius: var(--vs-rayon-pilule);
	border: 1.5px solid var(--vs-bord-champ);
	background: var(--vs-blanc);
	color: var(--vs-petrole);
	font-size: 15px;
	font-weight: 600;
	align-items: center;
	gap: 8px;
	cursor: pointer;
}

.vs-header__menu-icon {
	font-size: 22px;
}

.vs-mobile-menu {
	border-top: 1px solid var(--vs-bord);
	background: var(--vs-blanc);
	padding: 12px 24px 24px;
	display: flex;
	flex-direction: column;
	gap: 4px;
	max-height: calc(100vh - 72px);
	overflow-y: auto;
}

.vs-mobile-menu__link,
.vs-mobile-menu__login {
	min-height: 52px;
	display: flex;
	align-items: center;
	font-size: 17px;
	font-weight: 600;
	color: var(--vs-encre);
	text-decoration: none;
	border-bottom: 1px solid var(--vs-separateur);
}

.vs-mobile-menu__link[aria-current='page'],
.vs-mobile-menu__login {
	color: var(--vs-petrole);
}

.vs-mobile-menu__login {
	border-bottom: none;
}

.vs-mobile-menu__cta {
	height: 52px;
	margin-top: 8px;
	border-radius: var(--vs-rayon-pilule);
	background: var(--vs-petrole);
	color: var(--vs-blanc);
	font-size: 16px;
	font-weight: 600;
	display: flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
}

.vs-mobile-menu__cta:hover {
	color: var(--vs-blanc);
}

@media (max-width: 1039.98px) {
	.vs-header__nav,
	.vs-header__actions {
		display: none;
	}

	.vs-header__menu-button {
		display: flex;
	}
}

@media (min-width: 1040px) {
	.vs-mobile-menu {
		display: none !important;
	}
}

/* ---------- Pied de page ---------- */
.vs-footer {
	background: var(--vs-blanc);
	border-top: 1px solid var(--vs-bord);
	padding: 56px 24px 32px;
}

.vs-footer__inner {
	max-width: 1200px;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	gap: 40px;
}

.vs-footer__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
	gap: 32px;
}

.vs-footer__brand {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.vs-footer__brand p {
	margin: 0;
	font-size: 14px;
	line-height: 1.55;
	color: var(--vs-texte-3);
}

.vs-footer__column {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.vs-footer__column strong {
	font-size: 14px;
}

.vs-footer__column a {
	font-size: 14.5px;
	color: var(--vs-texte-2);
	text-decoration: none;
}

.vs-footer__column a:hover {
	color: var(--vs-petrole);
	text-decoration: underline;
}

.vs-footer__cookies {
	padding: 0;
	border: none;
	background: none;
	text-align: left;
	font-size: 14.5px;
	color: var(--vs-petrole);
	text-decoration: underline;
	text-underline-offset: 3px;
	cursor: pointer;
}

.vs-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 12px;
	padding-top: 24px;
	border-top: 1px solid var(--vs-separateur);
	font-size: 14px;
	color: var(--vs-texte-3);
}

/* ---------- Questions dépliables (FAQ) ---------- */
.vs-accordion {
	display: flex;
	flex-direction: column;
	border-top: 1px solid var(--vs-bord);
}

.vs-accordion__item {
	border-bottom: 1px solid var(--vs-bord);
}

.vs-accordion__heading {
	margin: 0;
}

.vs-accordion__button {
	width: 100%;
	min-height: 64px;
	padding: 16px 0;
	background: none;
	border: none;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	text-align: left;
	font-size: 17px;
	font-weight: 600;
	color: var(--vs-encre);
	cursor: pointer;
}

.vs-accordion__icon {
	font-size: 24px;
	color: var(--vs-petrole);
}

.vs-accordion__panel {
	padding: 0 40px 20px 0;
	font-size: 16px;
	line-height: 1.65;
	color: var(--vs-texte-2);
	text-wrap: pretty;
}

.vs-accordion__panel p {
	margin: 0 0 12px;
}

.vs-accordion__panel p:last-child {
	margin-bottom: 0;
}

/* ---------- Bandeau cookies ---------- */
.vs-cookie-banner {
	position: fixed;
	left: 16px;
	right: 16px;
	bottom: 16px;
	z-index: 60;
	display: flex;
	justify-content: center;
}

.vs-cookie-banner__box {
	max-width: 980px;
	width: 100%;
	background: var(--vs-blanc);
	border: 1px solid var(--vs-bord);
	border-radius: var(--vs-rayon);
	box-shadow: 0 16px 40px -12px rgba(14, 26, 25, 0.28);
	padding: 20px 24px;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px 24px;
}

.vs-cookie-banner__text {
	flex: 1 1 360px;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.vs-cookie-banner__text strong {
	font-size: 16px;
}

.vs-cookie-banner__text p {
	margin: 0;
	font-size: 14.5px;
	line-height: 1.55;
	color: var(--vs-texte-2);
}

.vs-cookie-banner__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	flex: 0 1 auto;
}

.vs-cookie-banner__customize {
	height: 44px;
	padding: 0 14px;
	border-radius: var(--vs-rayon-pilule);
	border: none;
	background: none;
	color: var(--vs-petrole);
	font-size: 15px;
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 3px;
	cursor: pointer;
}

.vs-cookie-banner__choice {
	min-width: 136px;
	border: 1.5px solid var(--vs-petrole);
}

.vs-modal__actions .vs-btn--primary {
	border: 1.5px solid var(--vs-petrole);
}

/* ---------- Fenêtre (préférences cookies) ---------- */
.vs-modal {
	position: fixed;
	inset: 0;
	z-index: 80;
	background: rgba(14, 26, 25, 0.5);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
}

.vs-modal__dialog {
	width: 100%;
	max-width: 520px;
	max-height: calc(100vh - 32px);
	overflow-y: auto;
	background: var(--vs-blanc);
	border-radius: var(--vs-rayon);
	padding: 28px;
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.vs-modal__head {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 12px;
}

.vs-modal__title {
	margin: 0;
	font-size: 22px;
	font-weight: 700;
}

.vs-modal__close {
	width: 44px;
	height: 44px;
	margin: -8px -8px 0 0;
	border-radius: var(--vs-rayon);
	border: none;
	background: none;
	cursor: pointer;
	font-family: 'Material Symbols Rounded';
	font-size: 24px;
	color: var(--vs-texte-2);
	font-feature-settings: 'liga';
}

.vs-modal__close:hover {
	background: var(--vs-petrole-teinte);
}

.vs-modal__row {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	padding: 16px 0;
	border-top: 1px solid var(--vs-separateur);
}

.vs-modal__row-text {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.vs-modal__row-text strong,
.vs-modal__row-text label {
	font-size: 16px;
	font-weight: 600;
}

.vs-modal__row-text span {
	font-size: 14.5px;
	line-height: 1.5;
	color: var(--vs-texte-3);
}

.vs-modal__always {
	font-size: 14px;
	font-weight: 600;
	color: var(--vs-succes-texte);
	flex: none;
}

.vs-modal__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: flex-end;
}

.vs-modal__actions .vs-btn {
	flex: 1 1 140px;
}

/* ---------- Interrupteur ---------- */
.vs-switch {
	width: 56px;
	height: 32px;
	flex: none;
	border-radius: var(--vs-rayon-pilule);
	border: none;
	background: var(--vs-gris-eteint);
	position: relative;
	cursor: pointer;
	padding: 0;
}

.vs-switch[aria-checked='true'] {
	background: var(--vs-petrole);
}

.vs-switch__knob {
	position: absolute;
	top: 4px;
	left: 4px;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background: var(--vs-blanc);
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
	transition: left 0.15s ease;
}

.vs-switch[aria-checked='true'] .vs-switch__knob {
	left: 28px;
}

/* ---------- Pages légales ---------- */
.vs-legal {
	padding: clamp(56px, 8vw, 96px) 24px clamp(64px, 8vw, 104px);
}

.vs-legal__inner {
	max-width: 1100px;
	margin: 0 auto;
	display: flex;
	flex-wrap: wrap;
	gap: 48px;
	align-items: flex-start;
}

.vs-legal__toc {
	flex: 1 1 220px;
	max-width: 300px;
	display: flex;
	flex-direction: column;
	gap: 2px;
	position: sticky;
	top: 96px;
}

.vs-legal__toc-title {
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--vs-texte-3);
	padding-bottom: 8px;
}

.vs-legal__toc a {
	padding: 8px 0;
	font-size: 15px;
	color: var(--vs-petrole);
	text-decoration: none;
}

.vs-legal__toc a:hover {
	text-decoration: underline;
}

.vs-legal__article {
	flex: 3 1 420px;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 32px;
}

.vs-legal__head {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.vs-legal__title {
	margin: 0;
	font-size: clamp(32px, 4.6vw, 48px);
	line-height: 1.1;
	font-weight: 700;
	letter-spacing: -0.025em;
	outline: none;
}

.vs-legal__date {
	font-size: 15px;
	color: var(--vs-texte-3);
}

.vs-legal__draft {
	display: flex;
	gap: 10px;
	padding: 12px 14px;
	border-radius: var(--vs-rayon);
	background: var(--vs-attention-teinte);
	border: 1px solid var(--vs-attention-ligne);
	color: var(--vs-attention-texte);
	font-size: 14.5px;
	line-height: 1.5;
}

.vs-legal__draft .vs-icon {
	font-size: 20px;
}

.vs-legal__content {
	display: flex;
	flex-direction: column;
	gap: 32px;
}

.vs-legal__content section {
	display: flex;
	flex-direction: column;
	gap: 10px;
	scroll-margin-top: 96px;
}

.vs-legal__content h2 {
	margin: 0;
	font-size: 22px;
	font-weight: 700;
}

.vs-legal__content h3 {
	margin: 8px 0 0;
	font-size: 17px;
	font-weight: 700;
}

.vs-legal__content p,
.vs-legal__content li {
	margin: 0;
	font-size: 16px;
	line-height: 1.7;
	color: var(--vs-texte-2);
	text-wrap: pretty;
}

.vs-legal__content ul,
.vs-legal__content ol {
	margin: 0;
	padding-left: 1.3em;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.vs-legal__content table {
	width: 100%;
	border-collapse: collapse;
	font-size: 15px;
}

.vs-legal__content th,
.vs-legal__content td {
	text-align: left;
	padding: 10px 12px;
	border-bottom: 1px solid var(--vs-bord);
	vertical-align: top;
}

.vs-legal__cookies {
	align-self: flex-start;
	font-size: 16px;
}

.vs-fallback {
	max-width: 760px;
	margin: 0 auto;
	padding: 96px 24px;
}
