/* Styles généraux */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    margin: 0;
}

/* FONTS */

@font-face {
    font-family: 'circular_stdmedium';
    src: url('../styles/fonts/circularstd-medium-webfont.woff2') format('woff2'),
         url('../styles/fonts/circularstd-medium-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'circular_stdbook';
    src: url('../styles/fonts/circularstd-book-webfont.woff2') format('woff2'),
         url('../styles/fonts/circularstd-book-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'circular_stdbold';
    src: url('../styles/fonts/circularstd-bold-webfont.woff2') format('woff2'),
         url('../styles/fonts/circularstd-bold-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'circular_stdlight';
    src: url('../styles/fonts/circularstd-light-webfont.woff2') format('woff2'),
         url('../styles/fonts/circularstd-light-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'circular_stdblack';
    src: url('../styles/fonts/circularstd-black-webfont.woff2') format('woff2'),
         url('../styles/fonts/circularstd-black-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

h1 {
    margin-bottom: 50px;
    text-align: center;
    font-family: 'circular_stdblack', sans-serif;
    font-size: 2rem;
    color: rgb(30,52,149);
}

h2 {
    margin-bottom: 50px;
    font-family: 'circular_stdmedium', sans-serif;
    color: rgb(30,52,149);
}

h3 {
    margin-bottom: 50px;
    font-family: 'circular_stdbook', sans-serif;
}

h4 {
    font-family: 'circular_stdbook', sans-serif;
}

p, li, a, span {
    font-family: 'circular_stdlight', sans-serif;
}

ul {list-style: none}

li::before {
    content: "•";
    color: #F9AF18;
    display: inline-block;
    width: 1em;
    margin-left: -1em
}

/* Styles du header */
header {
    background-color: rgb(30,52,149);
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    position: fixed;
    top: 0;
    z-index: 1000;
    width: 100%;
    align-items: center;
}

.logo-desktop {
    display: none;
}

.logo-mobile img {
    width: 60px;
}

/* Styles du menu burger */
.menu-burger {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    padding: 5px;
    position: absolute;
    right: 20px;
}

.menu-burger span {
    height: 2px;
    width: 30px;
    background-color: #FFF;
    margin: 5px 0;
    transition: all 0.3s ease;
}

.menu-burger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.menu-burger.active span:nth-child(2) {
    opacity: 0;
}

.menu-burger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(9px, -9px);
}

/* Styles pour le menu mobile */
.menu {
    display: none;
}

.menu.active {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    background-color: rgb(30,52,149);
    position: fixed;
    top: 95px;
    left: 0;
    width: 100%;
    height: 80dvh;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    padding: 10px;
}

.menu a {
    text-decoration: none;
    color: #FFF;
    margin: 20px;
    font-family: 'circular_stdblack', sans-serif;
    transition: .3s;
}

.menu a:hover {
    color: #F9AF18;
}

.solutions-button {
    background-color: #F9AF18;
    color: #000 !important;
    padding: 14px 47px;
    border-radius: 50px;
    text-decoration: none;
    transition: .3s;
}

.solutions-button:hover {
    background-color: #d2951c;
}

/* Styles pour le menu desktop */
@media (min-width: 768px) {
    .menu-burger {
        display: none;
    }
    .menu {
        display: flex;
        align-items: center;
    }
    .menu a {
        margin-left: 20px;
    }

    .logo-desktop {
        display: block;
    }

    .logo-desktop img {
        max-width: 250px;
    }

    .logo-mobile {
        display: none;
    }
}

/* HERO SECTION */

.hero {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #000;
    margin-top: 100px;
    height: 90vh;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.background-image-mobile {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.background-image-desktop {
    display: none;
}

.hero-content {
    text-align: center;
    z-index: 1;
}

@media screen and (min-width: 768px) {
    .hero-content h1 {
        font-size: 4rem;
    }

    .background-image-mobile {
        display: none;
    }

    .background-image-desktop {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }
}


/* Styles du bouton */
.hero .action-button {
    background-color: #F9AF18;
    color: #000;
    padding: 10px 45px;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-family: 'circular_stdmedium', sans-serif;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.hero .action-button:hover {
    background-color: #e09c14;
}

/* CARDS SECTION */

.card-section {
    padding: 150px 20px 50px;
}

.card-section h2 {
    text-align: start;
}

.cards-container {
    display: flex;
    flex-direction: column;
}

.card-plans {
    background-color: #F2F2F2;
    border-radius: 23px;
    margin-bottom: 20px;
    padding: 34px;
}

.card-plans img {
    display: block;
    margin: 20px auto 50px;
    height: 80px;
    border-radius: 5px;
}

.card-plans h3 {
    text-align: start;
    font-weight: bold;
    margin: 20px 0;
}

.card-plans p {
    text-align: start;
    font-family: 'circular_stdmedium', sans-serif;
}

/* Media query pour les écrans plus larges */

@media (min-width: 768px) {
    .card-section {
        width: 90%;
        margin: auto;
    }
    
    .cards-container {
        flex-direction: row;
        justify-content: space-between;
    }

    .card-plans {
        margin-right: 20px;
        width: 33%;
    }

    .card-plans:last-child {
        margin-right: 0;
    }
}

/* TESTIMONIALS SECTION */

.testimonial-section {
    padding: 80px 20px 80px;
}

.testimonial-section h2 {
    text-align: center;
    margin-bottom: 80px;
}

.slick-slide{
    /* Utilisation de !important pour écrire sur le style de base du slider */
    display: flex !important;
    justify-content: center !important;
}

.slick-track {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
}

.my-slider img {
    width: 100px;
}

/* Styles pour le slider sur les écrans plus larges */

@media (min-width: 768px) {
    .slide {
        width: calc((100vw - 40px) / 2); /* Largeur équivalente à la moitié de la largeur de la fenêtre moins les marges */
        margin: 0 10px; /* Ajoute une marge de 10px à gauche et à droite */
    }

    .my-slider img {
        width: 200px;
    }
}

/* KEY NUMBERS SECTION */

.stats-section {
    background-color: rgb(30,52,149);
    color: white;
    padding: 80px 20px 80px;
    text-align: center;
}

.stats-section h2 {
    text-align: start;
    color: #FFF;
}

.stats-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-unit {
    display: flex;
    align-items: baseline;
}

.stat h3 {
    font-size: 5rem;
    margin-bottom: 5px;
}

.stat p {
    font-size: 1rem;
}

/* Media query pour les écrans plus larges */

@media (min-width: 1030px) {
    .stats-section {
        padding: 120px;
    }
    
    .stats-container {
        flex-direction: row;
        justify-content: space-around;
    }

    .stat {
        width: calc(25% - 20px);
        margin-bottom: 0;
    }
}

/* NOUVELLE SECTION PLANS */

.offres-section {
    position: relative;
    text-align: center;
    padding: 100px 20px 100px;
}

.offres-section h2 {
    text-align: start;
    margin-bottom: 80px;
}

.offres-background-mobile {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 50%;
    z-index: -1;
}

.offres-background-desktop {
    display: none;
}

/* Styles pour les cartes */
.cards-container {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    gap: 20px;
    position: relative;
}

.card {
    background-color: rgb(30,52,149);
    color: #FFF;
    padding: 20px;
    border-radius: 23px;
    position: relative;
    z-index: 1;
    text-align: left;
}

.card h3 {
    /*text-transform: uppercase;*/
    text-align: center;
    font-size: 1.3em;
}

.separator {
    border: 1px solid #F9AF18;
    margin: 20px 0;
}

.card h4 {
    color: #F9AF18;
    margin: 30px 0;
}

.card p {
    text-align: start;
    margin-bottom: 20px;
}

.card ul {
    display: flex;
    flex-direction: column;
    align-items: start;
    justify-content: center;
}

.card ul li {
    list-style: none;
    margin-bottom: 10px;
    align-items: start;
}

.card ul li img {
    width: 20px;
    margin-right: 5px;
}

/* Styles pour les appareils de bureau */
@media (min-width: 768px) {
    .offres-section {
        padding: 100px 120px 100px;
    }

    .offres-background-desktop {
        display: block;
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: 50% 50%;
        z-index: -1;
    }
    
    .offres-background-mobile {
        display: none;
    }

    .cards-container {
        flex-direction: row;
    }

    .card {
        flex: 1;
        margin-right: 20px;
        max-width: 25%;
    }

    .card:last-child {
        margin-right: 0;
    }
}


/* RECTA SECTION */

.custom-contact-section {
    background-color: #F2F2F2;
    padding: 120px 20px;
}

.custom-content {
    text-align: center;
}

.custom-section-title {
    font-size: 1.5rem;
    color: rgb(30,52,149);
    margin-bottom: 50px;
    max-width: 80%;
    margin-left: auto;
    margin-right: auto;
    word-wrap:normal;
}

@media screen and (min-width: 768px) {
    .custom-contact-section {
        background-color: #F2F2F2;
        padding: 180px 20px;
    }

    .custom-section-title {
        font-size: 3rem;
    }
}

.custom-contact-button {
    background-color: #F9AF18;
    color: #000;
    padding: 15px 44px;
    border: none;
    border-radius: 50px;
    text-decoration: none;
    font-size: 16px;
    font-family: 'circular_stdblack', sans-serif;
}

/* FAQ SECTION */

.faq {
    max-width: 100%;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    padding: 80px 20px;
}

.faq-question {
    width: 50%;
}

.faq-answer {
    width: 50%;
}

.question {
    cursor: pointer;
    margin: 0px 0px 20px 0px;
    background-color: #F2F2F2;
    border-radius: 10px;
    padding: 10px;
}

.question:last-child {
    margin-bottom: 0px;
}

.question.selected {
    background-color: rgb(30,52,149);
    color:#FFF;
}

.faq-answer-content {
    display: none;
    background-color: #F2F2F2;
    border-radius: 10px;
    padding: 10px;
    margin: 20px 0px 0 0;
}

/* Styles pour desktop */
@media (min-width: 768px) {
    .faq{
        flex-direction: column;
        width: 90%;
        padding: 150px 0;
    }

    .faq-container {
        display: flex;
        flex-direction: row;
    }

    .faq-question {
        width: 50%;
        margin-right: 20px;
    }

    .faq-answer {
        width: 50%;
    }

    .faq-answer-content {
        margin: 0 0 0 20px;
    }
}

/* Styles pour mobile */
@media (max-width: 767px) {
    .faq {
        flex-direction: column;
    }

    .faq-question,
    .faq-answer {
        width: 100%;
    }
}


/* FOOTER SECTION */

.footer {
    background-color:rgb(30,52,149);
    color: white;
    padding: 50px;
    display: flex;
    gap: 50px;
    justify-content: space-between;
    flex-direction: column;
    align-items: center;
}

.left-content{
    display: flex;
    flex-direction: column;
    align-items: center;
}

.left-content img {
    max-width: 100px;
    height: auto;
    margin-bottom: 20px;
}

.contact-links {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contact-links a {
    color:#FFF;
    margin-top: 20px;
    text-decoration: none;
}

.contact-links a img {
    width: 20px;
}

.title-footer {
    font-size: 22px;
}

.menu-footer {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

.menu-footer li {
    display: inline-block;
    margin-right: 20px;
}

.menu-footer li:last-child {
    margin-right: 0;
}

.menu-footer li a {
    color: white;
    text-decoration: none;
}

@media (min-width: 768px) {
    .footer {
        flex-direction: row;
    }

    .left-content{
        flex-direction: row;
    }

    .left-content img {
        margin: 0 20px 0 0;
    }

    .contact-links{
        align-items: start;
    }

    .contact-links a {
        margin: 0 0 20px 0;
    }

    .contact-links a:last-child {
        margin: 0;
    }
   
}