/**
 * Éléments décoratifs — Delta Trailers
 *
 * Bibliothèque de classes CSS réutilisables pour les éléments décoratifs.
 * Nommage : [type]-[couleur]-[forme]-[position]
 *
 * ============================================================
 * BARRES VERTICALES
 * ============================================================
 *
 * bloc-gris-vertical-gauche   → Sur le module Image : barre gris foncé à gauche
 * bloc-gris-vertical-droite   → Sur le module Image : barre gris foncé à droite
 *
 * ============================================================
 * FONDS DÉBORDANTS
 * ============================================================
 *
 * fond-gris-debordant-droite  → Sur la colonne : fond gris jusqu'au bord droit de l'écran
 * fond-gris-debordant-gauche  → Sur la colonne : fond gris jusqu'au bord gauche de l'écran
 *
 * ============================================================
 * BLOCS DÉCORATIFS
 * ============================================================
 *
 * deco-bloc-blanc-droite      → Sur la section : bloc blanc vertical en bas à droite
 * deco-bloc-blanc-gauche      → Sur la section : bloc blanc vertical en bas à gauche
 */


/* ============================================================
   BARRES VERTICALES
   ============================================================ */

.bloc-gris-vertical-gauche,
.bloc-gris-vertical-droite {
	position: relative;
}

.bloc-gris-vertical-gauche::before {
	content: '';
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 70%;
	background-color: var(--dt-gris-moyen);
	z-index: 3;
}

.bloc-gris-vertical-droite::after {
	content: '';
	position: absolute;
	top: 0;
	right: -100%;
	width: 100%;
	height: 70%;
	background-color: var(--dt-gris-moyen);
	z-index: 3;
}


/* ============================================================
   BLOCS ROUGE
   ============================================================ */

.bloc-rouge-vertical-gauche {
	position: relative;
}

.bloc-rouge-vertical-gauche::before {
	content: '';
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background-color: var(--dt-rouge);
	z-index: 1;
}

.bloc-rouge-vertical-gauche-court {
	position: relative;
}

.bloc-rouge-vertical-gauche-court::before {
	content: '';
	position: absolute;
	top: 0;
	left: -55%;
	width: 100%;
	height: 120%;
	background-color: var(--dt-rouge);
	z-index: 1;
}

.bloc-rouge-vertical-droite {
	position: relative;
}

.bloc-rouge-vertical-droite::after {
	content: '';
	position: absolute;
	top: 0;
	right: 0;
	width: 100%;
	height: 100%;
	background-color: var(--dt-rouge);
	z-index: 1;
}

/* ============================================================
   FONDS DÉBORDANTS
   ============================================================ */

.fond-gris-debordant-droite,
.fond-gris-debordant-gauche {
	position: relative;
}

.fond-gris-debordant-droite::before {
	content: '';
	position: absolute;
	top: 0;
	right: -100%;
	width: 100%;
	height: 100%;
	background-color: var(--dt-gris-moyen);
	z-index: -1;
}

.fond-gris-debordant-gauche::before {
	content: '';
	position: absolute;
	top: 0;
	right: 0;
	width: 100vw;
	height: 100%;
	background-color: var(--dt-gris-moyen);
	z-index: -1;
}

/* Fond blanc débordant gauche — version bouton */
.fond-blanc-debordant-gauche-bouton {
	position: relative;
}

.fond-blanc-debordant-gauche-bouton::before {
	content: '';
	position: absolute;
	top: 0;
	right: 0;
	width: 100vw;
	height: 100%;
	background-color: #ffffff;
	z-index: -1;
}


/* ============================================================
   BLOCS DÉCORATIFS
   ============================================================ */

.deco-bloc-blanc-droite,
.deco-bloc-blanc-gauche {
	position: relative;
}

.deco-bloc-blanc-droite::after {
	content: '';
	position: absolute;
	bottom: 0;
	right: 0;
	width: 80px;
	height: 35%;
	background-color: #ffffff;
	z-index: 2;
}

.deco-bloc-blanc-gauche::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	width: 80px;
	height: 45%;
	background-color: #ffffff;
	z-index: 2;
}


/* ============================================================
   BLOC BLANC SOUS IMAGE — sections sticky accueil
   ============================================================ */

.deco-blanc-sous-image {
	position: relative;
}

.deco-blanc-sous-image::after {
	content: '';
	position: absolute;
	bottom: -9.6em;
	left: 0;
	width: 80%;
	height: 9.6em;
	background-color: #ffffff;
	z-index: 2;
}


/* ============================================================
   FOND BLANC DEBORDANT — déborde à gauche ou droite (::before)
   ============================================================ */

.fond-blanc-debordant-gauche,
.fond-blanc-debordant-droite {
	position: relative;
}

.fond-blanc-debordant-gauche::before {
	content: '';
	position: absolute;
	top: -7em;
	left: -80vw;
	width: 100vw;
	height: calc(100% + 7em);
	background-color: #ffffff;
	z-index: -1;
}

.fond-blanc-debordant-droite::before {
	content: '';
	position: absolute;
	top: -7em;
	right: -80vw;
	width: 100vw;
	height: calc(100% + 7em);
	background-color: #ffffff;
	z-index: -1;
}

/* Version étendue — déborde aussi en bas */
.fond-blanc-debordant-droite-large::before {
	content: '';
	position: absolute;
	top: -7em;
	right: -80vw;
	width: 100vw;
	height: calc(100% + 14em);
	background-color: #ffffff;
	z-index: -1;
}

.fond-blanc-debordant-droite-large {
	position: relative;
}


/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 980px) {
	.deco-blanc-sous-image::after {
		display: none;
	}
}

@media (max-width: 768px) {
	.bloc-gris-vertical-gauche::before,
	.bloc-gris-vertical-droite::after {
		width: 30px;
		left: -30px;
	}

	.bloc-gris-vertical-droite::after {
		left: auto;
		right: -30px;
	}

	.fond-gris-debordant-droite::before,
	.fond-gris-debordant-gauche::before {
		display: none;
	}

	.deco-bloc-blanc-droite::after,
	.deco-bloc-blanc-gauche::after {
		display: none;
	}
}
