:root {
    --primary-color: #00a1d0;
    --primary-light-color: #0DCAF0;
    --text-color: rgb(44, 91, 168);
    --white: rgb(255, 255, 255);
    --grey: rgb(250, 251, 252);
    --top: rgb(111, 145, 199);
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
}

footer {
    margin-top: auto;
}

/* Styles pour les sections générales et les titres */
section {
    padding: 2rem 0;
}

h2, h3, h4, h5, h6 {
    color: var(--text-color);
    text-align: center;
    margin-bottom: 1rem;
}

h1 {
    font-size: 1.7rem;
}

.top-bar {
    background-color: var(--top);
    color: var(--white) !important;
    padding: 0.5rem 0;
    text-align: center;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.75rem;
}

h4 {
    font-size: 1.5rem;
}

.navbar-collapse {
    padding: 20px;
    background-color: white;
}

.navbar-toggler {
    border: none;
}

.navbar-nav {
    text-align: center;
}

.navbar-nav .nav-item {
    margin: 10px 0;
}

.navbar-nav .nav-link {
    padding: 10px;
    font-size: 1.2rem;
    color: #444;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    background-color: #f1f1f1;
}

.navbar-brand {
    margin: 0 auto 20px auto; /* Centrer le logo et ajouter un espacement en dessous */
    display: flex;
    justify-content: center;
}

.navbar-brand img {
    width: 80px; /* Ajuste la taille de l'image dans le menu mobile */
    height: auto;
    display: block;
}

/* Image overlay */
.image-text-overlay {
    position: relative;
    background-size: cover;
    background-position: top;
    height: 40vh;
    color: black;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.text-block {
    position: absolute;
    width: 100%;
    bottom: 0;
    color: var(--white);
    padding: 1rem;
}

.text-block h2 {
    font-size: 2rem;
}

.text-block p {
    font-size: 1rem;
    color: black;
}

.text-block button {
    margin-top: 1rem;
}

/* Carrousel */
.carousel-inner .carousel-item.active,
.carousel-inner .carousel-item-next,
.carousel-inner .carousel-item-prev {
    display: flex;
}

@media (min-width: 768px) {
    .carousel-inner .carousel-item-end.active,
    .carousel-inner .carousel-item-next {
        transform: translateX(25%);
    }

    .carousel-inner .carousel-item-start.active,
    .carousel-inner .carousel-item-prev {
        transform: translateX(-25%);
    }
}

.carousel-inner .carousel-item-end,
.carousel-inner .carousel-item-start {
    transform: translateX(0);
}

@media (max-width: 767px) {
    .carousel-inner .carousel-item > div {
        display: none;
    }

    .carousel-inner .carousel-item > div:first-child {
        display: block;
    }
}

/* Solutions */
.solution {
    position: relative;
    color: var(--white);
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding-top: 2em;
}

.solution-text, .services {
    color: var(--text-color);
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem 0;
}

.service-icon {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-icon img {
    max-width: 60%;
    max-height: 60%;
    height: auto;
}

.service-description {
    margin-top: 10px;
    text-align: center;
}

/* Secteurs */
#sector {
    background-color: var(--grey);
    padding-bottom: 5rem;
    padding-top: 2rem;
}

.secteur {
    position: relative;
    color: var(--text-color);
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin-top: 2em;
}

.column {
    margin-top: 3rem;
    padding-left: 3rem;
}

.column:hover {
    padding-left: 0;
}

.column:hover .card .txt {
    margin-left: 1rem;
}

.column:hover .card .txt h3,
.column:hover .card .txt p {
    color: rgba(255, 255, 255, 1);
    opacity: 1;
}

.column:hover a {
    color: rgba(255, 255, 255, 1);
}

.column:hover a:after {
    width: 10%;
}

.card {
    height: 200px;
    margin: 0;
    padding: 1.7rem 1.2rem;
    border: none;
    border-radius: 0;
    color: rgba(0, 0, 0, 1);
    letter-spacing: .05rem;
    font-family: 'Oswald', sans-serif;
    box-shadow: 0 0 21px rgba(0, 0, 0, .27);
}

.card.gr-1 {
    background-image: url('image/imagine/03/secteur-tertiaire-685x452.png');
    background-size: cover;
    background-position: center;
    color: white;
    position: relative;
}

.card.gr-2 {
    background-image: url('image/imagine/03/secteur-financier-685x452.jpeg.png');
    background-size: cover;
    background-position: center;
    color: white;
    position: relative;
}

.card.gr-3 {
    background-image: url('image/imagine/03/administrations-collectivites-685x452.jpeg.png');
    background-size: cover;
    background-position: center;
    color: white;
    position: relative;
}

.card.gr-4 {
    background-image: url('image/imagine/03/secteur-des-loisirs-de-la-culture-685x452.jpeg.png');
    background-size: cover;
    background-position: center;
    color: white;
    position: relative;
}

.card.gr-5 {
    background-image: url('image/imagine/03/immoblier-et-residences-685x452.jpeg.png');
    background-size: cover;
    background-position: center;
    color: white;
    position: relative;
}

.card.gr-6 {
    background-image: url('image/imagine/03/secteur-industriel-685x452.jpeg.png');
    background-size: cover;
    background-position: center;
    color: white;
    position: relative;
}

.card.gr-7 {
    background-image: url('image/imagine/03/surfaces-commerciales-685x452.jpeg.png');
    background-size: cover;
    background-position: center;
    color: white;
    position: relative;
}

.card.gr-8 {
    background-image: url('image/imagine/03/ecoles-685x452.jpeg.png');
    background-size: cover;
    background-position: center;
    color: white;
    position: relative;
}

.card .txt {
    margin-left: -3rem;
    z-index: 1;
}

.card .txt h3 {
    font-size: 1.5rem;
    font-weight: 300;
    text-transform: uppercase;
}

.card .txt p {
    font-size: .7rem;
    font-family: 'Open Sans', sans-serif;
    letter-spacing: 0rem;
    margin-top: 33px;
    opacity: 0;
    color: rgba(255, 255, 255, 1);
}

/* Agences */
.agencies-section {
    background-color: var(--primary-color);
    padding: 5rem 1rem;
}

.agencies-content {
    padding: 2rem;
    color: white;
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Contact Form */
#contactUs {
    background-color: var(--grey);
    padding: 2rem 0;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-control {
    border-radius: 0.25rem;
    border: 1px solid #ccc;
}

/* Footer */
/* Footer styles */
footer {
    background-color: #343a40;
    color: white;
    padding: 20px 0;
}

footer h3 {
    color: #17a2b8;
    font-weight: bold;
}

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

footer a:hover {
    text-decoration: underline;
}

footer .phone-button svg {
    margin-right: 10px;
}

footer .list-inline-item a {
    color: white;
}

footer .list-inline-item a:hover {
    text-decoration: underline;
}

footer .text-md-left p {
    margin: 0;
}

footer .text-md-right ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

footer .text-md-right ul li {
    display: inline;
    margin-right: 10px;
}

@media (max-width: 768px) {
    footer h3 {
        font-size: 1rem;
    }

    footer p {
        font-size: 0.8rem;
    }

    footer .phone-button svg {
        width: 1.5rem;
    }
}

.service-card {
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
}

.service-card:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transform: translateY(-5px);
}

.service-icon {
    width: 80px;
    height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1rem;
}

.service-card h4 {
    color: #333;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.service-card ul {
    padding-left: 1rem;
}

.service-card li {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.solution-text p {
    color: #6c757d; /* Gris foncé Bootstrap */
}

.btn-blue {
    background: var(--primary-light-color);
    color: white;
    font-weight: bold;
}

.btn-blue:hover {
    background: var(--primary-color);
    color: white;
    font-weight: bold;
}

.btn-nav {
    background: var(--primary-light-color);
    color: white;
    margin-left: 2px;
    margin-right: 2px;
}

.link-style {
    text-decoration: none;
    transition: color 0.3s ease, text-decoration 0.3s ease;
}

.link-style:hover {
    color: var(--primary-light-color);
    text-decoration: underline;
}

.links-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.links-container a {
    margin: 0 10px;
    position: relative;
}

.links-container a:not(:last-child)::after {
    content: " - ";
    position: absolute;
    right: -15px;
    color: white;
}

@media (max-width: 1200px) {
    h1 {
        font-size: 1.5rem;
    }
}

@media (max-width: 992px) {
    h1 {
        font-size: 1.3rem;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 1.1rem;
    }

    .navbar-toggler {
        padding: 10px;
    }

    .navbar-toggler-icon {
        width: 30px;
        height: 30px;
    }

    .navbar-collapse {
        text-align: center;
    }

    .navbar-collapse a {
        padding: 15px;
        font-size: 1.2rem;
        border-bottom: 1px solid #eee;
    }

    .navbar-collapse .btn {
        margin-top: 20px;
        width: 100%;
    }
}

@media (max-width: 576px) {
    h1 {
        font-size: 0.9rem;
    }

    .btn-nav {
        font-size: 1rem;
        padding: 2px;
        margin-right: 1px;
        margin-left: 1px;
    }
}