:root {
    --skew-value: -4deg;
    --section-odd-color: transparent;
    --section-even-color: #F4F4F4;
}

body {
    margin: 0px;
    padding: 0px;
    font-family: 'Montserrat', sans-serif;
    line-height: 30px;
    scroll-behavior: smooth;
}

h1,
h2,
h3,
h4 {
    text-transform: uppercase;
}

p {
    font-size: 20px;
}

ul {
    font-size: 18px;
}

a {
    text-decoration: none;
}

.content-container {
    max-width: 1200px;
    margin: 0 auto;
}

.copyright {
    display: flex;
    justify-content: center;
}

footer {
    color: white;
    background: linear-gradient(to right, #C6421D, #F9B233);
    height: 100%;
    position: relative;
}

footer::before {
    content: "";
    position: absolute;
    top: 0px;
    left: 0;
    width: 100%;
    height: 130px;
    background: var(--section-even-color);
    transform: skewY(-4deg);
    transform-origin: top left;
    z-index: 1;
}

.footer-container {
    padding-top: 200px;
    padding-left: 20px;
    padding-right: 20px;
}

.footer-content-container {
    max-width: 1200px;
    margin-top: 200px;
    margin: 0 auto;
}

.main-right {
    min-width: 250px;
    margin-top: -200px;
    padding: 20px;
}

.main-left {
    padding: 10px;
}


.container.welcome {
    display: flex;
    z-index: 11;
    justify-content: space-between;
}

.container.permis {

    background-color: whitesmoke;
}


.buttons-container {
    /* margin-left: 10%; */
    /* margin-top: 70px; */
    display: flex;
}

.header-top-container {
    max-width: 1200px;
    margin: 0 auto;
    margin-left: 10%;
    position: absolute;
    top: 80px;
    z-index: 11;
}

.header-full-header-image {
    width: 100%;
    ;
}

.header-image {
    width: 100%;
    height: 560px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;

}

.header-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.header-top {
    background: white;
    height: 560px;
    background: linear-gradient(130deg,
            #000000 0%,
            /* Black */
            #2c1b1a 10%,
            /* Very dark brown */
            #c13c22 40%,
            /* Warm red */
            #f89d1e 70%,
            /* Bright orange */
            #ffce30 100%
            /* Yellow */
        );
    color: white;
}

.page-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

header::after {
    content: "";
    position: absolute;
    /* bottom: -19px; */
    left: 0;
    width: 100%;
    height: 130px;
    background: white;
    transform: skewY(-4deg);
    transform-origin: top left;
    z-index: 1;
}

.container-welcome {

    display: flex;
    z-index: 12;
}

.logo-iffli {
    display: block;
    background-image: url(../img/iffli-logo.svg);
    height: 247px;
    width: 480px;
    background-repeat: no-repeat;
}

.header-main-label-container {
    position: absolute;
    font-weight: bold;
    color: black;
    display: flex;
    margin: 0 auto;
}

.header-main-label {
    font-size: 40px;
    background: #ffffffb0;
    padding: 5px;
    line-height: 60px;
    width: 80%;
    text-align: center;
    margin: 0 auto;
}

.header-menu {
    width: 100vw;
    box-sizing: border-box;
    height: 60px;
    background: linear-gradient(130deg,
            #000000 0%,
            /* Black */
            #2c1b1a 10%,
            /* Very dark brown */
            #c13c22 40%,
            /* Warm red */
            #f89d1e 70%,
            /* Bright orange */
            #ffce30 100%
            /* Yellow */
        );
    display: flex;
    position: fixed;
    color: white;
    justify-content: space-between;
    background-repeat: no-repeat;
    background-size: cover;
    top: 0px;
    z-index: 50;
    align-items: center;
    opacity: 1;
    transition: 1s ease all;
}


.header-menu.hidden {

    opacity: 0;
}

.header-logo {
    background-image: urL("../img/header-logo.svg");
    height: 60px;
    width: 400px;
    background-repeat: no-repeat;
    background-size: cover;
    transition: 0.25s ease all;
    scale: 1;
}

.header-logo:hover {
    transition: 0.25s ease all;
    scale: 1.1;
}

.location-container {
    display: flex;
    margin-top: 20px;
}

.locations {

    margin-top: 5px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-content: center;

}

.marker-icon {
    background-image: url("../img/marker.svg");
    width: 80px;
    height: 80px;
    background-repeat: no-repeat;
    background-size: cover;
}


.location-header {
    font-size: 25px;
    font-weight: bold;
    height: 40px;
}

.car-container {
    position: absolute;
    right: 0px;
    height: 300px;
    width: 50%;
}

.car-captur {
    position: absolute;
    height: 550px;
    width: 100%;
    background-size: cover;
    top: 40px;
    background-image: url(../img/voiture.png);
    filter: drop-shadow(0 0 20px white);
}

.logo-slogan {

    font-weight: bold;
}

.button {
    display: flex;
    width: 200px;
    color: white;
    height: 40px;
    border: 1px solid white;
    border-radius: 10px;
    align-content: center;
    align-items: center;
    justify-content: center;
    margin: 10px;
    text-align: center;
    text-transform: uppercase;
    font-weight: bold;
    transition: 0.25s ease all;
    scale: 1;
}

.button:hover {
    scale: 1.1;
    transition: 0.25s ease all;
}

.button.carousel-btn {
    width: 40px;
}

.button.orange {
    background-color: #EA4F0A;
}

.button.black {
    background-color: black;
}

.label-qualite-right {
    height: 250px;
    width: 250px;
    display: block;
    background-repeat: no-repeat;
    background-size: contain;
    background-image: url(../img/logo_ecole_de_conduite_0_0.png);
}

.carousel {
    position: relative;
    max-width: 1200px;
    width: 100%;
    overflow: hidden;
}

.carousel-track-container {
    overflow: hidden;
    width: 100%;
}

.carousel-track {
    display: flex;
    transition: transform 0.4s ease-in-out;
}

.carousel-item {
    position: relative;
    height: 450px;
    color: white;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.carousel-caption {
    position: absolute;
    bottom: 20px;
    left: 30px;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 1rem;
    border-radius: 10px;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    font-size: 2rem;
    padding: 0.5rem 1rem;
    cursor: pointer;
    z-index: 10;
}

.carousel-btn.left {
    left: 10px;
}

.carousel-btn.right {
    right: 10px;
}


.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
}

.carousel-indicators .dot {
    width: 12px;
    height: 12px;
    background-color: #ccc;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s;
}

.carousel-indicators .dot.active {
    background-color: #EA4F0A;
    ;
}

.testimonial-carousel {
    width: 80%;
    margin: auto;
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    background: #f9f9f9;
    padding: 20px;
    z-index: 3;
}

.testimonial-slide {
    display: none;
    text-align: center;
    padding: 20px;
    height: 300px;
}

.testimonial-image {
    width: 120px;
    margin: 0 auto;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    border: 6px solid orange;
}

.testimonial-slide img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
}

.testimonial-quote {
    font-size: 20px;
    line-height: 40px;
    font-style: italic;
    margin-bottom: 10px;
    color: #333;
    width: 80%;
    margin: 0 auto;
}

.testimonial-name {
    font-weight: bold;
    color: #555;
}

.testimonial-buttons {
    position: relative;
    /* top: 50%; */
    width: 100%;
    display: flex;
    justify-content: space-between;
    /* transform: translateY(-50%); */
    pointer-events: none;
}

.testimonial-buttons button {
    background-color: rgba(0, 0, 0, 0.3);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    pointer-events: all;
}

.testimonial-indicators {
    text-align: center;
    margin-top: 10px;
}

.testimonial-indicators span {
    display: inline-block;
    width: 10px;
    height: 10px;
    background: #ccc;
    border-radius: 50%;
    margin: 0 4px;
    cursor: pointer;
}

.testimonial-indicators .active {
    background: #333;
}

.permis_icon {
    display: flex;
    min-width: 200px;
    min-height: 200px;
    width: 200px;
    height: 200px;
}

.permis-block {
    min-width: 300px;
    height: 550px;
    width: 300px;
    display: flex;
    flex-direction: column;
    padding: 10px;
    align-items: center;
    text-align: center;
    justify-content: space-between;
    background: white;
    margin: 10px;
}

.section {

    display: block;
    padding: 20px;
    margin-top: 90px;
    position: relative;
}

/** Section part */
.section:nth-child(odd) {
    background: var(--section-even-color);
}


.section:nth-child(even) {
    background: var(--section-odd-color);
}

.section:nth-child(odd)::before {
    content: "";
    position: absolute;
    top: 0px;
    left: 0;
    width: 100%;
    height: 120px;
    background: var(--section-even-color);
    transform: skewY(-4deg);
    transform-origin: top left;
    z-index: -1;
}

.section:nth-child(odd)::after {
    content: "";
    position: absolute;
    bottom: -112px;
    left: 0;
    width: 100%;
    height: 120px;
    background: var(--section-even-color);
    transform: skewY(-4deg);
    transform-origin: top left;
    z-index: -1;
}




.permis-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}


.person-container {
    width: 250px;
    display: block;
    height: 250px;
    position: relative;
}

.person-portrait {
    width: 250px;
    height: 250px;
}

.person-label {
    background: #FFCC00;
    position: absolute;
    bottom: 0px;
    width: 100%;
}

.team-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: center;
    padding: 20px;
}


.team-card {
    position: relative;
    width: 250px;
    height: 250px;
    overflow: hidden;
    cursor: pointer;
    background: lightgrey;
}

.profile-pic {
    width: 100%;
    display: block;
    border-radius: 4px;
}

.skew-banner {
    position: absolute;
    bottom: -60px;
    left: 0;
    height: 70px;
    width: 100%;
    background-color: #e65100d6;
    transform: skewY(-5deg);
    transform-origin: top left;
    padding: 10px 0;
    z-index: 10;
}

.team-banner-content {
    display: flex;
    align-items: center;
    padding: 0 10px;
    position: absolute;
    z-index: 10;
    bottom: 0px;
    width: calc(100% - 20px);
    justify-content: space-around;
}

.icons {
    display: flex;
    margin-left: 2px;
    position: absolute;
    bottom: 42px;
    left: 4px;
}

.icon {
    width: 50px;
    left: -10px;
    height: 50px;
    background-color: white;
    /* border: 2px solid grey; */
    margin-right: 5px;
    transform: skewX(-5deg);
}

.icon.voiture {
    background-image: url(../img/permis/permis_b.svg);
}

.icon.moto {
    background-image: url(../img/permis/permis_moto.svg);
}

.icon.pl {
    background-image: url(../img/permis/permis_pl.svg);
}

.icon.simONE {
    background-image: url(../img/permis/simONE.svg);

}

.team-description-container {
    display: flex;
    align-items: center;
    justify-self: center;
    position: absolute;
    top: 0px;
    width: 100%;
    height: 100%;
    padding: 10px;
    opacity: 0;
    transition: 0.25s ease all;
    justify-content: center;
    z-index: 3;

}

.team-description {
    background-color: rgba(255, 255, 255, 0.95);
    top: 0px;
    width: 80%;
    height: 80%;
    padding: 10px;
    font-size: normal;
    line-height: 20px;
}

.team-card:hover {
    .team-description-container {
        opacity: 1;
        transition: 0.25s ease all;
    }
}



.icons img {
    width: 30px;
    height: 30px;
    object-fit: contain;
    background: white;
    border-radius: 4px;
    padding: 2px;
}

.text {
    color: white;
    font-weight: bold;
    margin-left: auto;
    text-align: center;
    bottom: 5px;
    position: absolute;
    z-index: 10;
    width: 100%;
}

.formation-pearl {
    display: flex;
    flex-direction: column;
    min-width: 120px;
}

.formation-container {

    display: flex;
    height: 500px;

}

.formation-items {
    display: flex;
    flex-direction: column;
    padding: 20px;
    background-color: white;
}

.formation-item.p {

    font-size: 13px;

}

.pearl {
    cursor: pointer;
    display: flex;
    color: white;
    font-size: 30px;
    font-weight: bold;
    background-color: orange;
    width: 100px;
    height: 100px;
    scale: 0.75;
    border-radius: 50%;
    transition: 0.25s ease all;
    align-content: center;
    align-items: center;
    justify-content: center;
}

.mobile-formation-container {
    display: none;
}

.pearl:nth-of-type(1) {
    background-color: #EA4F0A;
}

.pearl:nth-of-type(2) {
    background-color: #EA4F0A;
}

.pearl:nth-of-type(3) {
    background-color: orange;
}

.pearl:nth-of-type(4) {
    background-color: #F9D70D;
}


.pearl:hover {

    scale: 1;
    transition: 0.25s ease all;
}

.pearl.over {

    scale: 1;
    transition: 0.25s ease all;
}

.formation-block-left {
    display: flex;
    max-height: 450px;
    flex-direction: row;
    align-content: stretch;
}

.formation-label {
    cursor: pointer;
    height: 100px;
    display: flex;
    align-content: center;
    align-items: center;
    color: lightgrey;
    transition: 0.75s ease all;
}

.formation-label.over {
    height: 100px;
    display: flex;
    align-content: center;
    align-items: center;
    color: black;
    background: white;
    padding-left: 30px;
}

.formation-labels {
    min-width: 300px;
    display: flex;
    flex-direction: column;
}

.formation-header-picture {

    width: 100%;
    height: auto;
}

.map-container {

    width: 100%;
    height: 200px;
}

#map_canvas_sarralbe {

    width: 100%;
    height: 200px;
}

#map_canvas_insming {

    width: 100%;
    height: 200px;
}

#map_canvas_sarralbe_piste_privee {

    width: 100%;
    height: 200px;
}

.main-hours-container {
    position: relative;
    background: #F4F4F4;
    padding: 10px;
    margin-top: 50px;
}

.main-hours-container::before {

    content: "";
    position: absolute;
    top: 0px;
    left: 0;
    width: 100%;
    height: 65px;
    background: #F4F4F4;
    transform: skewY(-4deg);
    transform-origin: top left;
    z-index: -1;

}

.main-hours-container::after {
    content: "";
    position: absolute;
    bottom: -20px;
    left: 0;
    width: 100%;
    height: 65px;
    background: #F4F4F4;
    transform: skewY(-4deg);
    transform-origin: top left;
    z-index: -1;

}

.office-content-container {
    width: 100%;
    display: flex;
    gap: 20px;
    height: 600px;
}

.office-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.header-menu-content {
    position: fixed;
    top: 60px;
    width: 100%;
    transition: 0.75s ease all;
    z-index: 12;
    transform: scaleY(0);
    transform-origin: 100% 0%;
    background: white;
}

.header-menu-content.visible {
    position: fixed;
    display: block;
    transition: 0.75s ease all;
    background: #fffffff2;
    transform-origin: 100% 0%;
    z-index: 12;
    transform: scaleY(1);
}

.header-menu-content ul {
    margin: 0px;
    padding: 0;
    width: 100%;
    text-align: center;
}

.header-menu-content li {
    font-size: 20px;
    line-height: 40px;
    text-transform: uppercase;
    font-weight: bold;
}

a {
    text-decoration: none;
    color: black;
    cursor: pointer;
}

a.white {
    text-decoration: none;
    color: white;
    cursor: pointer;
}

a:active {
    text-decoration: none;
    color: black;
    cursor: pointer;
}

a:hover {
    text-decoration: none;
    color: black;
    cursor: pointer;
}

.slide-in-right {
    -webkit-animation: slide-in-right 0.5s cubic-bezier(0.250, 0.460, 0.450, 0.940) both;
    animation: slide-in-right 0.5s cubic-bezier(0.250, 0.460, 0.450, 0.940) both;
}

@keyframes slide-in-right {
    0% {
        -webkit-transform: translateX(1000px);
        transform: translateX(1000px);
        opacity: 0;
    }

    100% {
        -webkit-transform: translateX(0);
        transform: translateX(0);
        opacity: 1;
    }
}

.copyright-footer {
    text-align: center;
}

.button.orange.header-menu-button {
    width: 110px;
}

img.img_responsive {
    width: 100%;
    max-width: 100%;
}

.download-button-container {
    display: flex;
    align-items: center;
    justify-content: center;
}