@font-face {
    src: url("/static/assets/fonts/InterVariable.ttf");
    font-family: "Inter";
    font-style: normal;
    font-weight: 1 1000;
}

/* Global variables */

:root {
	--craig-mint: #ADE9E6;
	--craig-primary-light: color-mix(in srgb, var(--primary) 10%, white);
	--craig-font: "Inter", sans-serif;
	--craig-headerHeight: 64px;
}

body {
	font-family: var(--craig-font);
}

::-moz-selection {
	background-color: var(--craig-mint);
}

::selection {
	background-color: var(--craig-mint);
}

img {
	max-width: 100%;
}

/* Link */

a {
	font-weight: 700;
}

.text-white a {
	color: white;
}

a:hover {
	text-decoration-line: underline;
	text-decoration-thickness: 2px;
}

.card a {
    color: inherit;
}

/* Link with icon arrow */

.craig__linkArrow:hover {
	text-decoration: none;
}

.craig__linkArrow svg {
	background-color: var(--primary);
	padding: 2px;
	border-radius: 1em;
	transition: all .3s ease-out;
}

.craig__linkArrow:hover svg {
	transform: translate(5px, 0px);
}

/* Blockquote */

.craig__main blockquote {
    padding: .55em 0 .5em 2em;
    border-left: 5px solid var(--info);
    color: var(--info);
	margin: 2em 0;
}

.craig__main blockquote > p:last-child {
    margin: 0;
}

.craig__main blockquote a {
    color: inherit;
}

/* Code */

.craig__main code {
    display: inline-block;
    background: #f4f4f4;
    outline: solid 1px #e9e9e9;
    padding: 0 .2em;
    color: var(--secondary);
}

.craig__main pre code {
    outline: none;
}

.craig__main .language-plaintext:has(pre code) {
    background: #f4f4f4;
    outline: solid 1px #e9e9e9;
    border-radius: 0.5em;
    padding: 1em;
    box-shadow: 0px 0px 30px 0px rgba(0, 0, 0, 0.05);
    margin: 2em 0px;
}

.craig__main .language-plaintext pre {
    margin: 0;
}

/* Table */

.craig__main table {
    margin: 2em 0;
	width: 100%;
}

.craig__main tbody {
    border-bottom: 1px solid var(--primary);
    border-top: 1px solid var(--primary);
}

.craig__main thead {
    background-color: var(--primary);
    color: white;
}

.craig__main table th, .craig__main table td {
    line-height: 1.2;
    padding: 10px;
}

.craig__main tr:nth-child(even) {
    background-color: #f2f2f2;
}

/* Animation */

.scaleHover:hover {
	transform: scale(1.02);
}

.scaleHover {
	transition: 0.2s;
}

/* Header */
.craig__header {
	position: fixed;
	width: 100%;
	top: 0;
	background-color: white;
	z-index: 20;
	height: var(--craig-headerHeight);
}

/* Main */

.craig__main {
    margin-top: var(--craig-headerHeight);
}

/* Footer */
.footer {
	padding: 1em 2em;
}

.craig__footerContainer {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	margin: 3em 0px;
}

.craig__footerContainer a {
	color: var(--craig-mint);
	text-transform: uppercase;
	margin-right: 1em;
	font-weight: 600;
}

.craig__footerContainer a:hover {
	text-decoration-line: underline;
	text-decoration-thickness: 2px;
}

@media screen and (max-width: 1140px) {
	.footer {
		padding: inherit;
	}

	.craig__footerContainer>div {
		margin-bottom: 2em !important;
	}
}

/* Includes */
#craig__newBanner {
	background-color: var(--primary);
	color: white;
	font-size: small;
	padding: 4px 2em;
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	justify-content: space-between;
	align-items: center;
}

#craig__newBanner a {	
	color: white;
}

.item__news {
	display: none;
}

.item__news.active {
	display: block;
	-webkit-animation: fadeIn 0.5s;
	animation: fadeIn 0.5s;
}

#btn__nextItem {
	background: none;
	fill: white;
	border: none;
}

#btn__nextItem:hover {
	cursor: pointer;
	opacity: 0.9;
}

@-webkit-keyframes fadeIn {
	from {
		opacity: 0;
	}

	to {
		opacity: 1;
	}
}

@keyframes fadeIn {
	from {
		opacity: 0;
	}

	to {
		opacity: 1;
	}
}

.craig__breadcrumbs,
.craig__breadcrumbs a {
	color: #062c4cab;
}

/* Home Page */
#craig__homePage {
	background-color: #062c4c0c;
	display: flex;
}

#homePage__user {
	width: 25%;
	background-color: rgb(255 255 255);
	background-size: 45rem;
	background-position: bottom -5px center;
	background-repeat: no-repeat;
	display: flex;
	flex-direction: column;
	flex-wrap: nowrap;
	align-items: flex-start;
	justify-content: space-between;
}

.home__col {
	padding: 2em 3em;
}

.homeBlock {
	width: 100%;
}

.homeCard__help {
	width: 100%;
	padding: 15px;
	border-radius: 1em;
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	align-items: baseline;
	justify-content: space-between;
	margin-bottom: .5em;
}

a.homeCard__help:hover {
	text-decoration: none;
}

.cardHelp__text {
	font-size: smaller;
	line-height: 1.2;
	font-weight: normal;
}

.cardHelp__title {
	font-weight: 600;
	text-decoration: none;
	line-height: 1.2;
}

.cardHelp__title:has(+ div) {
	margin-bottom: 5px
}

/* Home - Services */

#homePage__services {
	width: 75%;
}

.craig__cardLarge {
	background-color: white;
	padding: 10px;
	border-radius: 1em;
	margin-right: 1em;
	box-shadow: 0px 0px 0px 0px rgba(0, 0, 0, .08);
	width: 13em;
	min-width: 13em;
	height: auto;
	position: relative;
	display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: flex-start;
}

.craig__cardLarge p{
    font-weight: normal;
}

.craig__cardLarge {
    transition: all 0.2s ease;	
	justify-content: flex-start!important;
}

.craig__cardLarge:hover {
    transform: translate(0px, -5px);
    box-shadow: rgba(0, 0, 0, 0.07) 0px 17px 35px 0px;
	cursor: pointer;
	text-decoration: none;
	color:inherit;
}

.craig__cardLarge p,
.craig__cardSmall p {
	font-size: smaller;
	line-height: 1.2;
}

.cardLarge__img {
	aspect-ratio: 1 / 1;
	object-fit: cover;
	border-radius: .7em;
	margin-bottom: 10px;
	width: 100%;
}

.cardLarge__btn {
	background-color: var(--primary);
	font-size: small;
	font-weight: normal;
	padding: 5px 12px;
	border-radius: 1.5em;
	color: white !important;
	transition: .3s;
}

.cardLarge__btn:hover {
	color: white !important;
	opacity: .8;
	text-decoration: none;
}

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

.craig__cardSmall {
	height: 5em;
	display: block;
	display: flex;
	background-color: white;
	padding: 10px;
	flex-direction: row;
	flex-wrap: nowrap;
	align-items: center;
	border-radius: 1em;
	transition: all 0.2s ease;
	box-shadow: 0px 0px 0px 0px rgba(0, 0, 0, .08);
}

a.craig__cardSmall:hover {
	transform: translate(0, -5px);
	text-decoration: none;
	box-shadow: 0px 17px 35px 0px rgba(0, 0, 0, .07);
	color: var(--primary) !important;
}

.cardSmall__img {
	height: 100%;
    border-radius: 1em;
    aspect-ratio: 1 / 1;
    margin-right: 1em;
    background-size: 150%;
    background-position: center;
	background-color: var(--light);
}

.craig__cardSmall h6 {
	margin: 0;
}

.craig__cardSmall p {
	margin-bottom: 0;
	font-weight: normal;
}

/* Data */
.home__block {
	background-color: white;
	padding: 1.5em;
	border-radius: 1em;
	box-shadow: 0px 0px 0px 0px rgba(0, 0, 0, .08);
}

#craigDataList>div {
	padding: 10px 0;
	border-bottom: 1px solid #8080804f;
}

.dataList__item a {
	font-weight: normal;
}

.craig__data {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: space-between;
}

/* Slider apps */

.craig__sliderHeader {
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	align-items: flex-end;
	justify-content: space-between;
}

.craig__sliderCard {
	width: 100%;
	overflow: hidden;
}

.slider__cardContent {
	display: flex;
	align-items: stretch;
	justify-content: flex-start;
	width: 100%;
	overflow: auto;
	scroll-behavior: smooth;
	padding: .5em 0 2em;
}

.slider__cardContent::-webkit-scrollbar {
	height: 0px;
}

.slider__cardControl a {
	border: 2px solid var(--primary);
	border-radius: 4em;
	width: 40px;
	padding: 4px;
	height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
	transition: all .3s ease;
}

.slider__cardControl a:hover {
	background-color: var(--primary);
}

.slider__cardControl a:hover svg {
	fill: white;
}

#craigHomeTitleMobile{
    display: none;
}

@media screen and (max-width: 1140px) {
    #craigHomeTitleMobile{
        display: block;
        width: 100%;
    }

    #craigHomeTitleDesktop{
        display: none;
    }

	#craig__homePage {
        flex-direction: column;
    }

    #homePage__user, #homePage__services {
        width: 100%;
    }

    .home__col {
        padding: 1.5em;
    }

    #homePage__user {
        background-size: cover;
        background-position: bottom -10em center;
    }

    .craig__gridList {
        grid-template-columns: 1fr;
    }

	.mobile__mb4 {
		margin-bottom: 2em;
	}
}

@media screen and (max-width: 1320px) {
	.home__col {
        padding: 1.5em;
    }
}

/* Services grid */
.craig__main:has(#craig__ServicesPage) {
    background-color: #062c4c0c;
}

.craig__servicesGrid {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.craig__servicesGrid > .craig__cardLarge {
    width: 23%!important;
    margin-bottom: 1em;
}

.craig__badgeWhite {
    background-color: white;
}

.craig__cardLarge .badge {
    position: absolute;
    top: 15px;
    right: 15px;
}

@media screen and (max-width: 500px) {
	.craig__servicesGrid > .craig__cardLarge {
		width: 100%!important;
		margin-bottom: 1em;
		transition: all 0.2s ease;
		flex-direction: row;
		flex-wrap: nowrap;
		justify-content: flex-start;
		align-items: center;
	}

	.craig__servicesGrid > .craig__cardLarge > .cardLarge__img {
		width: auto !important;
        height: 5em;
        margin: 0 1em 0 0;		
	}

	.craig__servicesGrid > .craig__cardLarge p{
		margin: 0;
	}

	.craig__cardLarge .badge {
		display: none;
	}
}

/* FAQ */

.craig__main:has(#craig__FaqPage) {
    background-color: #062c4c0c;
}

.accordion-item {
    padding: 1.5em;
    margin: 1em 0;
}

.accordion-header a {
    font-weight: inherit;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.accordion-button h4 {
    margin: 0;
}

.accordion-button:not([aria-expanded="false"]) svg{
    transform: rotate(90deg);
	-webkit-transform: rotate(90deg);
}

.accordion-button svg{
    transition: all .2s ease-out;
}

@media screen and (max-width: 960px) {
	.accordion-header a {
		align-items: flex-start;
		flex-direction: column-reverse;
	}

	.accordion-item {
		padding: 1em;
	}

	.accordion-header .badge {
		margin-bottom: .5em;
	}
}

/* Card contact */

.craig__cardContact {
    padding: .7em;
    background-size: 45rem;
    background-position: bottom -20px right -15px;
    background-repeat: no-repeat;
}

.craig__cardContact .card-body {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

.craig__cardContact .cardContact__btn {
    background-color: white;
    color: var(--primary);
    padding: 12px;
    border-radius: 3em;
}

/* Tutoriels grid */

.craig__main:has(#craig__TutorielsPage) {
    background-color: #062c4c0c;
}

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

.craig__tutorialsGrid > .craig__cardLarge {
    padding: 1.25em;
    width: auto;
	margin: 0;
}

.craig__tutorialsGrid > .craig__cardLarge p {
    margin: 0;
}

.cardLarge__iconType {
    display: inline-block;
    color: white;
    padding: 10px;
    border-radius: .8em;
}

.iconType_video {
    background-color: var(--craig-mint);
}

.iconType_doc {
    background-color: #12273f;
}

.iconType_page {
    background-color: var(--secondary);
}

.iconType_externalPage {
    background-color: var(--info);
}

@media screen and (max-width: 1140px) {
	.craig__tutorialsGrid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media screen and (max-width: 720px) {
	.craig__tutorialsGrid {
		grid-template-columns: repeat(1, 1fr);
	}
}

