:root {
    --red: #ef233c;
    --darkred: #c00424;
    --platinum: #e5e5e5;
    --black: #2b2d42;
    --white: #fff;
    --thumb: #edf2f4;
    --primary: #3193cc;
    --secondary: #81DD90;
    --success: #28a745;
    --danger: #dc3545;
    --warning: #fd7e14;
    --info: #17a2b8;
    --light: #f8f9fa;
    --dark: #343a40;
} 

@view-transition {
    navigation: auto;
}

::view-transition-group(root) {
    animation-duration: 2s;
}

::view-transition-old(root) {
    animation-name: scale-out;
}

::view-transition-new(root) {
    animation-name: in;
}

@keyframes scale-in {
    from {
        scale: 0;
    }
}

@keyframes scale-out {
    to {
        scale: 0;
    }
}

body {
    font: 14px / 24px "Roboto";
    color: var(--black);
    background: var(--platinum);
    margin: 50px 0;
}

.container {
    min-width: 90%;
    padding: 0 15px;
    margin: 0 auto;
}

.temoignageForm {
    max-width: 600px;
    padding: 0 15px;
    margin: 0 auto;
}

h1 {
  font: 40px "Georgia";
  font-size: 40px;
  margin-bottom: 1em;
}

h2 {
    font-size: 32px;
    margin-bottom: 1em;
}

/* animation.css */
.sliding-blocks {
    overflow: hidden; /* Hide content initially overflowing */
}


.slide-from-left {
    opacity: 0;
    transform: translateX(-100%); /* Start off-screen left */
    transition: opacity 0.5s ease-in-out, transform 1s ease-in-out; /* Smooth transitions */
}

.slide-from-right {
    opacity: 0;
    transform: translateX(100%); /* Start off-screen right */
    transition: opacity 0.5s ease-in-out, transform 1s ease-in-out; /* Smooth transitions */
}

.sliding-blocks:is(.slide-in) .slide-from-left { /*Apply to the children only when .sliding-blocks also has the class .slide-in*/
    opacity: 1;
    transform: translateX(0); /* Final position */
}

.sliding-blocks:is(.slide-in) .slide-from-right {
    opacity: 1;
    transform: translateX(0); /* Final position */
}

a {
    text-decoration: none !important;
}

a, a:visited, a:hover, a:active {
    text-decoration: none;
}

#mots {
	margin:40px 0;
	padding:0 5px;
	text-align:justify;
    text-align: center;
}

#mots a, #mots a:visited, #mots a:hover{
	color:#000000;
	padding:0px 7px;
	text-decoration:none;

}

.google-maps {
    position: relative;
    padding-bottom: 0.23%; 
    height: 0;
    overflow: hidden;
  }
  .google-maps iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
  }

.text-justify {
    text-align: justify;
}

.testimonials {
    display: flex;
    padding: 25px 0px;
    list-style: none;
    overflow-x: scroll;
    -ms-scroll-snap-type: x mandatory;
    scroll-snap-type: x mandatory;
}

.testimony {
    display: flex;
    flex-direction: column;
    flex: 0 0 100%;
    padding: 20px;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 15%);
    scroll-snap-align: start;
    transition: all 0.2s;
}

.testimony:not(:last-child) {
    margin-right: 10px;
}

.testimony:hover {
    color: var(--white);
    background: var(--red);
}

.testimony .testimony-title {
    font-size: 20px;
}

.testimony-date {
    font-size: 10px;
}

.testimony.testimony-content {
    margin: 20px 0;
    max-width: 85%;
}

.testimony .testimony-link-wrapper {
    margin-top: auto;
}

.testimony .testimony-link {
    display: inline-block;
    text-decoration: none;
    color: white;
    background: var(--red);
    padding: 6px 12px;
    border-radius: 8px;
    transition: background 0.2s;
}

.testimony:hover .testimony-link {
    background: var(--darkred);
}

.testimonials::-webkit-scrollbar {
    height: 12px;
}

.testimonials::-webkit-scrollbar-thumb,
.testimonials::-webkit-scrollbar-track {
    border-radius: 92px;
}

.testimonials::-webkit-scrollbar-thumb {
    background: var(--darkred);
}

.testimonials::-webkit-scrollbar-track {
    background: var(--thumb);
}

@media (min-width: 500px) {
    .testimony {
        flex-basis: calc(50% - 10px);
    }

    .testimony:not(:last-child) {
        margin-right: 20px;
    }

    .grid {
        display: grid;
        grid-template-columns: 1fr;
        grid-gap: 0px;
    }
}

@media (min-width: 768px) {
    .testimony {
        flex-basis: calc(calc(100% / 3) - 20px);
    }

    .testimony:not(:last-child) {
        margin-right: 30px;
    }

    .grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        grid-gap: 20px;
    }
}

@media (min-width: 1100px) {
    .testimony {
        flex-basis: calc(25% - 30px);
    }

    .testimony:not(:last-child) {
        margin-right: 40px;
    }

    .grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        grid-gap: 20px;
    }
}

.filter {
    display: block;
    position: sticky;
    top: 20px;
}



*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	color-scheme: dark;
}

body {
	margin: 0;
	padding-block: 0rem;
	font-family: system-ui;
	font-size: 1.125rem;
	line-height: 1.6;
	min-block-size: 100dvh;
	/*display: grid;
	place-items: center;*/
}

.content-wrapper{ /* Style pour le nouveau conteneur */
    display: grid;
    place-items: center;
    min-height: calc(100vh - 6rem - 78px); /* Ajustez 78px selon la hauteur de votre navbar */
}

img {
	max-width: 100%;
	display: block;
}

h1 { margin-block-end: 0; }
h1+a { 
    margin-block-end: 1.5rem;
    text-decoration: none;
}

.main-title {
    text-align: center; /* Centrage du texte */
    font-size: 2em; /* Taille de police plus grande */
    font-weight: bold; /* Gras */
    text-transform: uppercase; /* Texte en majuscules */
    color: #f0ad4e;  /* Couleur warning de Bootstrap */
    margin-bottom: 2rem; /* Marge inférieure */
    transition: transform 0.3s ease, opacity 0.3s ease; /* Transition pour transform et opacity */
}

.main-title:hover {
    transform: translateX(10px) translateY(-5px) scale(1.05);/* Agrandissement au survol */
    opacity: 0.8; /* Légère diminution de l'opacité au survol */
    color: #5cb85c; /* Vert succès de bootstrap, changez si besoin */
    cursor: default; /* Curseur par défaut car le titre n'est pas un lien */

}

p > a {
    text-decoration: none;
	color: blue;
}

.phone {
    text-decoration: none;
    color: blue;
}

.mailto {
    text-decoration: none;
    color: blue;
}
.phone:hover, .mailto:hover {
    text-decoration: underline;
    color: red;
}
.phone:visited, .mailto:visited {
    text-decoration: none; 
    color: violet;
}

.link {
    text-decoration: none;
    color: blue;
}
.link:hover {
    text-decoration: underline;
    color: red;
}
ol > li {
   	color : white;
	text-decoration-color: white;
}
.wrapper {
	max-width: 50rem;
	margin: auto;
	padding-inline: 1rem;
}

.accordion {
	
	--_button-size: 3rem;
	--_panel-padding: 0.75rem;
	--_panel-gap: 1rem;

	display: flex;
	flex-direction: column;
	gap: 1rem;

	contain: content;
	/* added padding to prevent issue with outlines */
	padding: 0.5rem;

}

@media (min-width: 45em) {
	.accordion {
		flex-direction: row;
		height: 30rem;
	}
}

.accordion * {
	margin: 0;
}

.accordion-panel {
	position: relative;
	isolation: isolate;
	flex-basis: calc((var(--_panel-padding) * 2) + var(--_button-size));
	overflow: hidden;
	padding: var(--_panel-padding);
	padding-right: calc(var(--_panel-padding) * 4);
	border-radius: calc(((var(--_panel-padding) * 2) + var(--_button-size)) / 2);
}

@media (prefers-reduced-motion: no-preference) {
	.accordion-panel {
		transition: flex-basis 500ms, flex-grow 500ms;
	}
}

.accordion-panel:nth-of-type(1) {
	--_panel-color: hsl(160, 70%, 50%);
}
.accordion-panel:nth-of-type(2) {
	--_panel-color: hsl(184, 70%, 50%);
}
.accordion-panel:nth-of-type(3) {
	--_panel-color: hsl(220, 70%, 50%);
}
.accordion-panel:nth-of-type(4) {
	--_panel-color: hsl(350, 70%, 50%);
}
.accordion-panel:nth-of-type(5) {
	--_panel-color: hsl(20, 70%, 50%);
}

.accordion-panel:has([aria-expanded="true"]) {
	flex-basis: clamp(15rem, 40vh, 20rem);
	flex-grow: 1;
}

.accordion-trigger {
	outline: 0;
}

.accordion-panel:focus-within {
	outline: 3px solid var(--_panel-color);
	outline-offset: 4px;
}

.accordion-content > p {
	transform: translateY(2rem);
	opacity: 0;

	margin-left: calc(var(--_button-size) + var(--_panel-gap));
}

@media (prefers-reduced-motion: no-preference) {
	.accordion-panel:has([aria-expanded="true"]) p {
		transition: transform 500ms 500ms, opacity 500ms 500ms;
	}
}

.accordion-panel:has([aria-expanded="true"]) p {
	transform: translateY(0);
	opacity: 1;
}

.accordion-title {
	font-size: 1.5rem;
	font-weight: 700;

	position: relative;
	isolation: isolate;

	display: grid;
	align-items: center;
}

@media (max-width: 44.999em) {
	.accordion-title::after {
		content: "";
		position: absolute;
		left: calc((var(--_panel-gap) + var(--_button-size)) * -1);
		width: calc(100% + (var(--_button-size) * 2));
		height: var(--_button-size);
		background: hsl(0 0% 0% / 0.5);
		z-index: -1;
		border-radius: 100vw;
	}
}

.accordion-image {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	z-index: -1;

	transition: filter 500ms;
}

.accordion-panel:has([aria-expanded="true"]) .accordion-image {
	filter: brightness(0.5);
}

.accordion-trigger {
	display: flex;
	align-items: center;
	gap: var(--_panel-gap);
	flex-direction: row-reverse;
	background: transparent;
	border: 0;
	padding: 0;
}

.accordion-icon {
	fill: var(--_panel-color);
	background: hsl(0 0% 0% / 0.25);
	width: var(--_button-size);
	aspect-ratio: 1 / 1;
	padding: 0.75rem;
	border-radius: 50%;
	z-index: 10;
}