/* Fichier de remplacement de styles par défaut du thème */

/* =====================
   AJUSTEMENTS DU THEME
======================== */

/* Espacements gauche et droite du header */
.site-header {
    padding-left: clamp(1rem, 0.848rem + 0.758vw, 1.5rem);
    padding-right: clamp(1rem, 0.848rem + 0.758vw, 1.5rem);
}

/* Équilibre les titres et les textes avec la classe "balance" comportant un ou plusieurs retour(s) à la ligne */
:is(h1, h2, h3, h4, h5, h6)
{
    text-wrap: balance;
}

:is[class*=style-h]
{
    text-wrap: balance;
}

.balance
{
    text-wrap: balance;
}

/* Évite les orphelins dans les paragraphes et listes */
p,
li {
    text-wrap: pretty;
}

/* Ajuste la marge gauche des listes */
ol, ul {
  margin: 0 0 1.5rem 1rem !important;
}

/* Supprime la marge inférieure du dernier paragraphe d'un bloc */
p:last-child:last-of-type,
h1:last-child:last-of-type,
h2:last-child:last-of-type,
h3:last-child:last-of-type,
h4:last-child:last-of-type,
h5:last-child:last-of-type,
h6:last-child:last-of-type
{
    margin-bottom: 0px;
}

/* ===================================
   ACCESSIBILITE DU MENU DE NAVIGATION
====================================== */

#site-navigation ul.sub-menu {
    display: block;
}

#site-navigation li:hover .gp-icon svg {
    transform: rotate(180deg);
}

#site-navigation li:hover .sub-menu {
    visibility: visible;
}

/* ==========================================
   ACCESSIBILITE DES BLOCS CLIQUABLES (CARDS)
   https://youtu.be/HBriBrnRlQE?si=DLiSXEiBHt6lw91l
=================================================== */

.stretch-link {
    position: relative;
}

.stretch-link a::after {
    content: '';
    position: absolute;
    inset: 0;
}

.stretch-link a:is(:focus-visible)::after {
    outline: 2px solid;
}

.stretch-link a:is(:hover, :focus) {
    outline: none;
}

/* ========================
   LARGEUR MAXIMALE DU SITE
=========================== */

.site-wrapper {
    width: 100%;
    max-width: 1920px;
    margin-left: auto;
	margin-right: auto;
}



/* =========================
   CARROUSEL	
======================== */

/* For 3 cells with 1rem gap */
.carousel-cell {
	width: calc(33.333% - 1rem * 2/3);
	margin-right: 1rem;
}

@media (max-width:1024px) {
	.carousel-cell {
		width: calc(50% - 1rem * 1/2);
		margin-right: 1rem;
	}
}

@media (max-width:767px) {
	.carousel-cell {
		width: 80%;
  		margin-right: 1rem;
	}
}

/* Pagination */

.flickity-viewport {
	transition: height 0.2s;
}

.flickity-page-dots {
    width: 100%;
    bottom:-4rem !important;
    padding: 0;
    margin: 0;    
    display: flex;
    flex-direction: row;
    justify-content: center;
	gap:1rem;
}

.flickity-page-dots .dot {
    width: .5rem !important;
    height: .5rem !important;
    margin: 0 !important;
	border-radius:100px !important;
    background:var(--dark-2);
	transition: width 0.3s !important;
}

.flickity-page-dots .dot.is-selected {
	width:1rem !important;
    margin: 0;
	border-radius:100px;
}

/* Navigation */
.flickity-button{
    height: 2.4rem;
    width: 2rem;
    background: rgba(223, 226, 237, 0.70);
    color: var(--dark-2);
}

@media (max-width:767px) {
	.flickity-button {
	display:none;
}
}

.flickity-button:hover{
    background: var(--dark-1);
}

.flickity-prev-next-button.previous{
    left: 10px;
}

.flickity-prev-next-button.next{
    right: 10;
}