/********** Template CSS **********/
:root {
    --primary: #9a7540;
    --secondary: #e6ddd4;
    --light: #FFFFFF;
    --dark: #2B2825;
}

.font-secondary {
    font-family: 'Pacifico', cursive;
}

audio {
    width: 260px;
    height: 64px;
}

h1,
h2,
.font-weight-bold {
    font-weight: 700 !important;
}

h3,
h4,
.font-weight-semi-bold {
    font-weight: 600 !important;
}

h5,
h6,
.font-weight-medium {
    font-weight: 500 !important;
}

.btn {
    font-family: 'Oswald', sans-serif;
    font-weight: 600;
    transition: .5s;
}

.btn-primary {
    color: #FFFFFF;
}

.border-inner {
    position: relative;
}

.border-inner * {
    position: relative;
    z-index: 1;
}

.border-inner::before {
    position: absolute;
    content: "";
    top: 10px;
    right: 10px;
    bottom: 10px;
    left: 10px;
    background: none;
    border: 1px solid var(--light);
    z-index: 0;
}

.btn-square {
    width: 40px;
    height: 40px;
}

.btn-sm-square {
    width: 30px;
    height: 30px;
}

.btn-lg-square {
    width: 50px;
    height: 50px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding-left: 0;
    padding-right: 0;
    text-align: center;
}

.back-to-top {
    position: fixed;
    display: none;
    right: 30px;
    bottom: 0;
    border-radius: 0;
    z-index: 99;
}

.navbar-dark .navbar-nav .nav-link {
    font-family: 'Oswald', sans-serif;
    padding: 30px 15px;
    font-size: 18px;
    font-weight: 500;
    text-transform: uppercase;
    color: #fbf3e2; /* couleur personnalisée */
    outline: none;
    transition: .5s;
}

.sticky-top.navbar-dark .navbar-nav .nav-link {
    padding: 20px 15px;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
    color: var(--primary);
}

@media (max-width: 991.98px) {
    .navbar-dark .navbar-nav .nav-link  {
        padding: 12px 0;
    }
}

.hero-header {
    background: url(../img/hero.jpg) top center no-repeat;
    background-size: cover;
}

.hero-header02 {
    background: url(../img/hero02.jpg) top center no-repeat;
    background-size: cover;
}

.hero-header03 {
    background: url(../img/hero03.jpg) top center no-repeat;
    background-size: cover;
}


.hero-header04 {
    background: url(../img/hero04.jpg) top center no-repeat;
    background-size: cover;
}

.hero-header05 {
    background: url(../img/hero05.jpg) top center no-repeat;
    background-size: cover;
}


.btn-play {
    position: relative;
    display: block;
    box-sizing: content-box;
    width: 16px;
    height: 26px;
    border-radius: 100%;
    border: none;
    outline: none !important;
    padding: 18px 20px 20px 28px;
    background: #FFFFFF;
}

.btn-play:before {
    content: "";
    position: absolute;
    z-index: 0;
    left: 50%;
    top: 50%;
    transform: translateX(-50%) translateY(-50%);
    display: block;
    width: 60px;
    height: 60px;
    background: #FFFFFF;
    border-radius: 100%;
    animation: pulse-border 1500ms ease-out infinite;
}

.btn-play:after {
    content: "";
    position: absolute;
    z-index: 1;
    left: 50%;
    top: 50%;
    transform: translateX(-50%) translateY(-50%);
    display: block;
    width: 60px;
    height: 60px;
    background: #FFFFFF;
    border-radius: 100%;
    transition: all 200ms;
}

.btn-play span {
    display: block;
    position: relative;
    z-index: 3;
    width: 0;
    height: 0;
    left: -1px;
    border-left: 16px solid var(--primary);
    border-top: 11px solid transparent;
    border-bottom: 11px solid transparent;
}

@keyframes pulse-border {
    0% {
        transform: translateX(-50%) translateY(-50%) translateZ(0) scale(1);
        opacity: 1;
    }

    100% {
        transform: translateX(-50%) translateY(-50%) translateZ(0) scale(2);
        opacity: 0;
    }
}



.section-title::before {
    position: absolute;
    content: "";
    width: 60px;
    height: 10px;
    left: 50%;
    bottom: 0;
    margin-left: -30px;
    background: var(--primary);
}

.section-title::after {
    position: absolute;
    content: "";
    width: 180px;
    height: 2px;
    left: 50%;
    bottom: 4px;
    margin-left: -90px;
    background: var(--primary);
}

.service::after,
.contact::after {
    position: absolute;
    content: "";
    width: 100%;
    height: calc(100% - 45px);
    top: 135px;
    left: 0;
    background:  url(../img/service.jpg) center center no-repeat;
    background-size: cover;
    z-index: -1;
}

.contact::after {
    background: linear-gradient(rgba(43, 40, 37, .5), rgba(43, 40, 37, .5)), url(../img/bg.jpg) center center no-repeat;
    background-size: cover;
}

.bg-offer {
    background: linear-gradient(rgba(43, 40, 37, .9), rgba(43, 40, 37, .9)), url(../img/offer.jpg) center center no-repeat;
    background-size: cover;
}

.team-item img {
    transition: .5s;
}

.team-item:hover img {
    transform: scale(1.1);
    filter: blur(5px)
}

.team-item .team-overlay {
    transition: .5s;
    opacity: 0;
}

.team-item:hover .team-overlay {
    opacity: 1;
}

.testimonial-carousel .owl-dots {
    height: 45px;
    margin-top: 30px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.testimonial-carousel .owl-dot {
    position: relative;
    display: inline-block;
    margin: 0 2px;
    width: 10px;
    height: 25px;
    background: #DDDDDD;
    transition: .5s;
}

.testimonial-carousel .owl-dot.active {
    height: 45px;
    background: var(--primary);
}

.testimonial-carousel .owl-item .testimonial-item {
    opacity: .1;
    transition: .5s;
}

.testimonial-carousel .owl-item.center .testimonial-item {
    opacity: 1;
}

.bg-img {
    background: linear-gradient(rgba(43, 40, 37, .5), rgba(43, 40, 37, .5)), url(../img/bg.jpg) center center no-repeat;
    background-size: cover;
}


/* Par défaut, afficher l'image pour les ordinateurs */
.desktop-image {
    display: block;
}

.mobile-image {
    display: none;
}

/* Sur les écrans de moins de 768px, afficher l'image pour mobile et la centrer horizontalement et verticalement */
@media (max-width: 768px) {
    .desktop-image {
        display: none;
    }

    .mobile-image {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100vw; /* Assure que le conteneur prend toute la largeur de l'écran */
        height: 100vh; /* Assure que le conteneur prend toute la hauteur de l'écran */
        overflow: hidden; /* Cache les parties de l'image qui pourraient dépasser */
    }

    .mobile-image img {
        width: auto; /* Ajuste la largeur de l'image pour respecter son ratio d'origine */
        height: 100vh; /* Utilise la hauteur complète de l'écran pour bien remplir le conteneur verticalement */
        object-fit: cover; /* Couvre l'écran sans déformer l'image */
        object-position: center center; /* Centre l'image dans le conteneur, horizontalement et verticalement */
    }
}
Explication des modifications
display: flex;, justify-content: center;, et align-items: center; pour .mobile-image : Centre le conteneur de l'image dans les deux axes (horizontal et vertical).
width: auto; et height: 100vh; pour l'image : L'image prend toute la hauteur de l'écran, tandis que sa largeur s'ajuste automatiquement pour respecter ses proportions sans déformation.
object-fit: cover; et object-position: center center; pour l’image : Assure que l'image couvre tout le conteneur et reste centrée dans les deux axes.
Résultat attendu
Avec ce code :

L'image Trio-Lune-Lyon.jpg devrait être centrée à la fois horizontalement et verticalement sur les téléphones, remplissant tout l'écran sans effet de zoom ni déformation.
Sur un ordinateur, l'image groupe-jazz-fourviere.jpg s'affichera normalement sans modification.
Ce code assure un centrage optimal de l'image sur les petits écrans.


