/*==============================================================
	SOCLE — remplace Bootstrap 5.1.3 et le thème Titan (supprimés en 2026)

	Ne contient QUE ce que les gabarits utilisent : remise à zéro,
	grille (.container / .row / .col-*), utilitaires d'espacement et
	de typographie, navbar repliable, menu déroulant, champs de
	formulaire et bouton des pages d'erreur. Les valeurs reprennent
	celles de Bootstrap pour que la mise en page reste la même.
	L'apparence propre au site est dans app/pages/common/css/app-common.css.

	Points de rupture (identiques à Bootstrap) :
	sm 576px · md 768px · lg 992px · xl 1200px · xxl 1400px
==============================================================*/


/*--------------------------------------------------------------
	POLICE — Montserrat auto-hébergée (variable 100 à 900, latin)
--------------------------------------------------------------*/
@font-face {
	font-family: 'Montserrat';
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url("../app/fonts/montserrat/montserrat-latin-LaWOCQv.woff2") format('woff2');
}

@font-face {
	font-family: 'Montserrat';
	font-style: italic;
	font-weight: 100 900;
	font-display: swap;
	src: url("../app/fonts/montserrat/montserrat-latin-italic-rZHggJM.woff2") format('woff2');
}


/*--------------------------------------------------------------
	REMISE À ZÉRO (reboot Bootstrap + base Titan)
--------------------------------------------------------------*/
*,
*::before,
*::after {
	box-sizing: border-box;
}

@media (prefers-reduced-motion: no-preference) {
	:root {
		scroll-behavior: smooth;
	}
}

html {
	overflow-y: scroll;
	overflow-x: hidden;
}

body {
	margin: 0;
	font-family: var(--bs-body-font-family);
	font-size: 1rem;
	font-weight: 400;
	line-height: 1.5;
	color: #212529;
	background-color: #fff;
	-webkit-text-size-adjust: 100%;
	-webkit-tap-highlight-color: transparent;
	-webkit-font-smoothing: antialiased;
}

hr {
	margin: 1rem 0;
	color: inherit;
	background-color: currentColor;
	border: 0;
	opacity: .25;
}

hr:not([size]) {
	height: 1px;
}

h1, h2, h3, h4, h5, h6 {
	margin-top: 0;
	margin-bottom: .5rem;
	font-weight: 400;
	line-height: 1.4;
}

h1 { font-size: calc(1.375rem + 1.5vw); }
h2 { font-size: calc(1.325rem + .9vw); }
h3 { font-size: calc(1.3rem + .6vw); }
h4 { font-size: calc(1.275rem + .3vw); }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

@media (min-width: 1200px) {
	h1 { font-size: 2.5rem; }
	h2 { font-size: 2rem; }
	h3 { font-size: 1.75rem; }
	h4 { font-size: 1.5rem; }
}

p,
ol,
ul,
blockquote {
	margin: 0 0 20px;
}

ol,
ul {
	padding-left: 2rem;
}

ol ol,
ul ul,
ol ul,
ul ol {
	margin-bottom: 0;
}

b,
strong {
	font-weight: bolder;
}

small {
	font-size: .875em;
}

a {
	color: #111;
	text-decoration: underline;
	transition: all .125s ease-in-out 0s;
}

a:hover,
a:focus {
	text-decoration: none;
	color: #aaa;
	outline: 0;
}

img,
svg {
	vertical-align: middle;
}

img {
	max-width: 100%;
	height: auto;
}

iframe {
	border: 0;
}

label {
	display: inline-block;
}

button {
	border-radius: 0;
}

input,
button,
select,
textarea {
	margin: 0;
	font-family: inherit;
	font-size: inherit;
	line-height: inherit;
}

button,
[type="button"],
[type="submit"] {
	-webkit-appearance: button;
}

button:not(:disabled),
[type="button"]:not(:disabled),
[type="submit"]:not(:disabled) {
	cursor: pointer;
}

textarea {
	resize: vertical;
}

[hidden] {
	display: none !important;
}

::selection {
	background: #000;
	color: #fff;
}


/*--------------------------------------------------------------
	GRILLE
--------------------------------------------------------------*/
.container {
	width: 100%;
	padding-right: .75rem;
	padding-left: .75rem;
	margin-right: auto;
	margin-left: auto;
}

@media (min-width: 576px)  { .container { max-width: 540px; } }
@media (min-width: 768px)  { .container { max-width: 720px; } }
@media (min-width: 992px)  { .container { max-width: 960px; } }
@media (min-width: 1200px) { .container { max-width: 1140px; } }
@media (min-width: 1400px) { .container { max-width: 1320px; } }

.row {
	display: flex;
	flex-wrap: wrap;
	margin-right: -.75rem;
	margin-left: -.75rem;
}

.row > * {
	flex-shrink: 0;
	width: 100%;
	max-width: 100%;
	padding-right: .75rem;
	padding-left: .75rem;
}

.col-12 {
	flex: 0 0 auto;
	width: 100%;
}

.order-1 { order: 1 !important; }
.order-2 { order: 2 !important; }

@media (min-width: 1200px) {
	.col-xl-5 {
		flex: 0 0 auto;
		width: 41.66666667%;
	}

	.col-xl-7 {
		flex: 0 0 auto;
		width: 58.33333333%;
	}

	.order-xl-1 { order: 1 !important; }
	.order-xl-2 { order: 2 !important; }
}


/*--------------------------------------------------------------
	UTILITAIRES
--------------------------------------------------------------*/
.d-flex { display: flex !important; }
.justify-content-center { justify-content: center !important; }
.align-items-center { align-items: center !important; }

.mt-2 { margin-top: .5rem !important; }
.mt-3 { margin-top: 1rem !important; }
.mt-4 { margin-top: 1.5rem !important; }
.mt-5 { margin-top: 3rem !important; }
.mb-5 { margin-bottom: 3rem !important; }
.my-3 { margin-top: 1rem !important; margin-bottom: 1rem !important; }
.my-5 { margin-top: 3rem !important; margin-bottom: 3rem !important; }
.me-3 { margin-right: 1rem !important; }
.ms-auto { margin-left: auto !important; }

.p-3 { padding: 1rem !important; }
.p-5 { padding: 3rem !important; }
.px-3 { padding-right: 1rem !important; padding-left: 1rem !important; }

@media (min-width: 992px) {
	.align-items-lg-center { align-items: center !important; }
	.my-lg-5 { margin-top: 3rem !important; margin-bottom: 3rem !important; }
	.p-lg-5 { padding: 3rem !important; }
}

@media (min-width: 1200px) {
	.mt-xl-4 { margin-top: 1.5rem !important; }
	.px-xl-5 { padding-right: 3rem !important; padding-left: 3rem !important; }
}

.text-center { text-align: center !important; }
.text-muted { color: #6c757d !important; }

.fs-1 { font-size: calc(1.375rem + 1.5vw) !important; }
.fs-2 { font-size: calc(1.325rem + .9vw) !important; }
.fs-5 { font-size: 1.25rem !important; }
.fs-6 { font-size: 1rem !important; }

.display-1 {
	font-size: calc(1.625rem + 4.5vw);
	font-weight: 300;
	line-height: 1.2;
}

@media (min-width: 1200px) {
	.fs-1 { font-size: 2.5rem !important; }
	.fs-2 { font-size: 2rem !important; }
	.display-1 { font-size: 5rem; }
}

.shadow { box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .15) !important; }
.vh-100 { height: 100vh !important; }

.img-fluid {
	max-width: 100%;
	height: auto;
}

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


/*--------------------------------------------------------------
	NAVBAR (repli piloté par assets/controllers/navbar_controller.js)
--------------------------------------------------------------*/
.navbar {
	position: relative;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	padding-top: .5rem;
	padding-bottom: .5rem;
}

.navbar > .container {
	display: flex;
	flex-wrap: inherit;
	align-items: center;
	justify-content: space-between;
}

.fixed-top {
	position: fixed;
	top: 0;
	right: 0;
	left: 0;
	z-index: 1030;
}

.navbar-brand {
	padding-top: .3125rem;
	padding-bottom: .3125rem;
	margin-right: 1rem;
	white-space: nowrap;
}

.navbar-nav {
	display: flex;
	flex-direction: column;
	padding-left: 0;
	margin-bottom: 0;
	list-style: none;
}

.nav-link {
	display: block;
	padding: .5rem 0;
	text-decoration: none;
}

.navbar-collapse {
	flex-basis: 100%;
	flex-grow: 1;
	align-items: center;
}

.navbar-collapse:not(.show) {
	display: none;
}

.navbar-toggler {
	padding: .25rem .75rem;
	font-size: 1.25rem;
	line-height: 1;
	background-color: transparent;
	border: 1px solid rgba(0, 0, 0, .1);
	border-radius: .25rem;
	transition: box-shadow .15s ease-in-out;
}

.navbar-toggler:focus {
	outline: 0;
	box-shadow: 0 0 0 .25rem rgba(0, 0, 0, .12);
}

.navbar-toggler-icon {
	display: inline-block;
	width: 1.5em;
	height: 1.5em;
	vertical-align: middle;
	background: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%280, 0, 0, 0.55%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") center / 100% no-repeat;
}

@media (min-width: 992px) {
	.navbar-expand-lg {
		flex-wrap: nowrap;
		justify-content: flex-start;
	}

	.navbar-expand-lg .navbar-nav {
		flex-direction: row;
	}

	.navbar-expand-lg .navbar-nav .nav-link {
		padding-right: .5rem;
		padding-left: .5rem;
	}

	.navbar-expand-lg .navbar-collapse {
		display: flex !important;
		flex-basis: auto;
	}

	.navbar-expand-lg .navbar-toggler {
		display: none;
	}
}


/*--------------------------------------------------------------
	MENU DÉROULANT
--------------------------------------------------------------*/
.dropdown {
	position: relative;
}

.dropdown-toggle {
	white-space: nowrap;
}

.dropdown-toggle::after {
	display: inline-block;
	margin-left: .255em;
	vertical-align: .255em;
	content: "";
	border-top: .3em solid;
	border-right: .3em solid transparent;
	border-bottom: 0;
	border-left: .3em solid transparent;
}

.dropdown-menu {
	z-index: 1000;
	display: none;
	min-width: 10rem;
	padding: .5rem 0;
	margin: 0;
	font-size: 1rem;
	color: #212529;
	text-align: left;
	list-style: none;
	background-color: #fff;
	background-clip: padding-box;
	border: 1px solid rgba(0, 0, 0, .15);
	border-radius: .25rem;
}

.dropdown-menu.show {
	display: block;
}

@media (min-width: 992px) {
	.navbar-expand-lg .navbar-nav .dropdown-menu {
		position: absolute;
		top: 100%;
		left: 0;
		margin-top: .125rem;
	}
}

.dropdown-item {
	display: block;
	width: 100%;
	padding: .25rem 1rem;
	clear: both;
	font-weight: 400;
	color: #212529;
	text-align: inherit;
	text-decoration: none;
	white-space: nowrap;
	background-color: transparent;
	border: 0;
}

.dropdown-item:hover,
.dropdown-item:focus {
	background-color: #e9ecef;
}


/*--------------------------------------------------------------
	FORMULAIRES (formulaire de contact)
--------------------------------------------------------------*/
.form-control {
	display: block;
	width: 100%;
	padding: .375rem .75rem;
	font-size: 1rem;
	font-weight: 400;
	line-height: 1.5;
	color: #212529;
	background-color: #fff;
	background-clip: padding-box;
	border: 1px solid #ced4da;
	appearance: none;
	border-radius: .25rem;
	transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}

.form-control:focus {
	outline: 0;
}

.form-control::placeholder {
	color: #6c757d;
	opacity: 1;
}

textarea.form-control {
	min-height: calc(1.5em + .75rem + 2px);
}

.form-floating {
	position: relative;
}

.form-floating > .form-control {
	padding: 1rem .75rem;
}

.form-floating > .form-control::placeholder {
	color: transparent;
}

.form-floating > .form-control:focus,
.form-floating > .form-control:not(:placeholder-shown),
.form-floating > .form-control:-webkit-autofill {
	padding-top: 1.625rem;
	padding-bottom: .625rem;
}

.form-floating > label {
	position: absolute;
	top: 0;
	left: 0;
	height: 100%;
	padding: 1rem .75rem;
	pointer-events: none;
	border: 1px solid transparent;
	transform-origin: 0 0;
	transition: opacity .1s ease-in-out, transform .1s ease-in-out;
}

.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label,
.form-floating > .form-control:-webkit-autofill ~ label {
	opacity: .65;
	transform: scale(.85) translateY(-.5rem) translateX(.15rem);
}

.form-check-input {
	width: 1em;
	height: 1em;
	margin-top: .25em;
	vertical-align: top;
	background-color: #fff;
	background-repeat: no-repeat;
	background-position: center;
	background-size: contain;
	border: 1px solid rgba(0, 0, 0, .25);
	appearance: none;
	print-color-adjust: exact;
}

.form-check-input[type="checkbox"] {
	border-radius: .25em;
}

.form-check-input:focus {
	outline: 0;
}

.form-check-input:checked[type="checkbox"] {
	background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M6 10l3 3l6-6'/%3e%3c/svg%3e");
}

/* Champ piège (honeypot) : hors de l'écran pour un humain, rempli par les robots. */
.form-trap {
	position: absolute;
	left: -10000px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}


/*--------------------------------------------------------------
	BOUTON (pages d'erreur)
--------------------------------------------------------------*/
.btn {
	display: inline-block;
	padding: .375rem .75rem;
	font-size: 1rem;
	font-weight: 400;
	line-height: 1.5;
	color: #212529;
	text-align: center;
	text-decoration: none;
	vertical-align: middle;
	background-color: transparent;
	border: 1px solid transparent;
	border-radius: .25rem;
	transition: all .125s ease-in-out 0s;
}

.btn.btn-round {
	border-radius: 2px;
}

.btn.btn-d {
	background: rgba(17, 17, 17, .8);
	color: #fff;
}

.btn.btn-d:hover,
.btn.btn-d:focus {
	background: #111;
	color: #fff;
}
