:root {
    --primary-color: #4293a8;
    --secondary-color: #fde5db;
    --light-color: #fff;
    --dark-color: #333;
    --text-muted: #6c757d;
}

/* Override Bootstrap colors */
.text-primary {
    color: var(--primary-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    background-color: #367489;
    border-color: #367489;
}

.bg-light {
    background-color: var(--secondary-color) !important;
}

/* Fonts */
body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
}

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

/* Navigation - Padding réduit avec dégradé */
.custom-navbar {
    background: linear-gradient(90deg, #ffffff 0%, #4293a8 100%) !important;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
    min-height: 70px;
}

/* Logo optimisé pour la nouvelle hauteur */
.navbar-brand {
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
    display: flex !important;
    align-items: center;
    gap: 1.5rem;
}

.navbar-brand .logo {
    width: auto;
    transition: all 0.3s ease;
}

.navbar-brand .name {
    margin-left: 1rem;
}

/* Responsive du logo et espacement */
@media (max-width: 768px) {
    .navbar-brand {
        gap: 1rem;
    }

    .navbar-brand .logo {
        height: 50px !important;
    }

    .navbar-brand .name {
        height: 30px !important;
    }

    .custom-navbar {
        padding-top: 0.4rem !important;
        padding-bottom: 0.4rem !important;
        min-height: 60px;
    }
}

@media (max-width: 576px) {
    .navbar-brand {
        gap: 0.75rem;
    }

    .navbar-brand .logo {
        height: 40px !important;
    }

    .navbar-brand .name {
        height: 25px !important;
    }

    .custom-navbar {
        padding-top: 0.3rem !important;
        padding-bottom: 0.3rem !important;
        min-height: 55px;
    }

    section[id] {
        scroll-margin-top: 55px; /* 55px navbar */
    }

    section[id]::before {
        height: 55px;
        margin-top: -55px;
    }

    /* Alternative CSS pure avec padding-top pour les navigateurs plus anciens */
    .section-anchor-offset {
        padding-top: 55px;
        margin-top: -55px;
    }

    .hero-section {
        padding-top: 80px;
    }

    .display-4 {
        font-size: 2rem;
    }

    .display-5 {
        font-size: 1.5rem;
    }

    .card-body {
        padding: 1.5rem !important;
    }

    .py-5 {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }

    .badges-container {
        justify-content: center;
    }

    .badges-container .badge {
        font-size: 0.7rem; /* Réduit de 0.8rem à 0.7rem */
        padding: 0.3rem 0.6rem; /* Réduit de 0.4rem 0.8rem à 0.3rem 0.6rem */
        margin-right: 0.25rem; /* Réduit de 0.3rem à 0.25rem */
        margin-bottom: 0.35rem; /* Réduit de 0.4rem à 0.35rem */
    }

    #acupunctureCarousel .carousel-item img {
        height: 200px;
    }

    #acupunctureCarousel .carousel-item {
        padding: 1rem 0;
    }

    #acupunctureCarousel .carousel-item .text-center {
        min-height: 200px;
    }

    .carousel-nav-buttons {
        flex-direction: column;
        align-items: center;
    }

    .carousel-nav-buttons .btn {
        width: 100%;
        max-width: 200px;
    }

    .highlight-header {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }

    .highlight-header i {
        font-size: 1.2rem;
    }

    .highlight-content {
        padding: 0.85rem 1rem;
    }

    .highlight-content p {
        font-size: 0.85rem;
        text-align: center;
    }

    .custom-highlight-inline {
        padding: 0.85rem 1rem;
    }

    .highlight-icon-text {
        font-size: 0.9rem;
    }

    .highlight-icon-text i {
        font-size: 1rem;
    }

    .highlight-text {
        font-size: 0.85rem;
    }
}

/* Ajustement des liens de navigation pour s'adapter au dégradé */
.navbar-nav .nav-link {
    font-weight: 500;
    color: var(--dark-color) !important;
    transition: all 0.3s ease;
    position: relative;
    margin: 0 10px;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0.5rem;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 100%;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color) !important;
    transform: translateY(-1px);
}

.navbar-nav .nav-item .nav-link:hover {
    color: #ffffff !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Burger menu adapté au dégradé */
.navbar-toggler {
    border: none;
    padding: 0.25rem 0.5rem;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2833, 37, 41, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

@media (min-width: 992px) {
    .navbar-expand-lg .navbar-collapse {
        display: none !important    ;
    }
}

/* Menu mobile avec fond adapté */
@media (max-width: 991px) {

    .navbar-collapse {
        background: rgba(255, 255, 255, 0.95);
        border-radius: 10px;
        margin-top: 0.75rem;
        padding: 0.75rem;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }

    .navbar-nav .nav-item:nth-last-child(-n+3) .nav-link {
        color: var(--dark-color) !important;
        text-shadow: none;
    }

    .navbar-nav .nav-item:nth-last-child(-n+3) .nav-link::after {
        background: var(--primary-color);
    }

    .navbar-nav .nav-link {
        padding-top: 0.5rem;
        padding-bottom: 0.5rem;
        margin: 2px 0;
    }
}

/* Forcer l'affichage du menu de navigation à partir de 1240px */
@media (min-width: 1240px) {
    .navbar-toggler {
        display: none !important;
    }

    .navbar-expand-lg .navbar-collapse {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        height: auto !important;
        overflow: visible !important;
    }

    .navbar-nav {
        flex-direction: row !important;
    }

    .navbar-nav .nav-link {
        padding-top: 0.75rem !important;
        padding-bottom: 0.75rem !important;
        margin: 0 10px !important;
        color: var(--dark-color) !important;
        text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5) !important;
    }
}

/* Menu mobile avec fond adapté - jusqu'à 1239px */
@media (max-width: 1239px) {
    .navbar-toggler {
        display: block !important;
    }

    .navbar-collapse {
        background: rgba(255, 255, 255, 0.95);
        border-radius: 10px;
        margin-top: 0.75rem;
        padding: 0.75rem;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }

    .navbar-nav .nav-item:nth-last-child(-n+3) .nav-link {
        color: var(--dark-color) !important;
        text-shadow: none;
    }

    .navbar-nav .nav-item:nth-last-child(-n+3) .nav-link::after {
        background: var(--primary-color);
    }

    .navbar-nav .nav-link {
        padding-top: 0.5rem;
        padding-bottom: 0.5rem;
        margin: 2px 0;
    }
}

/* Hero Section - Ajustement pour la nouvelle hauteur de navbar */
.hero-section {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #f8f9fa 100%);
    padding-top: 100px;
}

.hero-content h1 {
    color: var(--primary-color);
}

/* Section divider */
.divider {
    width: 80px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

/* Cards */
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* Form styles */
.form-control,
.form-select {
    border: 2px solid #e1e5e9;
    border-radius: 10px;
    padding: 12px 15px;
    transition: border-color 0.3s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(66, 147, 168, 0.25);
}

/* Buttons */
.btn-lg {
    padding: 12px 30px;
    font-weight: 600;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(66, 147, 168, 0.4);
}

/* Images */
.img-fluid {
    border-radius: 15px;
}

/* Carousel customization */
.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-size: 60%;
}

.carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 5px;
}

/* Badges - Styles personnalisés avec taille réduite */
.badges-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.badges-container .badge {
    font-size: 0.75rem; /* Réduit de 0.875rem à 0.75rem */
    font-weight: 500;
    padding: 0.35rem 0.75rem; /* Réduit de 0.5rem 1rem à 0.35rem 0.75rem */
    margin-right: 0.4rem; /* Réduit de 0.5rem à 0.4rem */
    margin-bottom: 0.4rem; /* Réduit de 0.5rem à 0.4rem */
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.badges-container .badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(66, 147, 168, 0.3);
    border-color: rgba(255, 255, 255, 0.3);
}

.badges-container .badge:last-child {
    margin-right: 0;
}

/* Footer */
.footer {
    background-color: var(--primary-color) !important;
}

.footer a:hover {
    opacity: 0.8;
    transform: translateY(-2px);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

section {
    transition: all 0.6s ease-out;
}

section.animate-in {
    animation: fadeInUp 0.6s ease-out;
}

/* Social links */
.social-links a {
    transition: all 0.3s ease;
    display: inline-block;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    text-align: center;
    line-height: 45px;
}

.social-links a:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-section {
        padding-top: 85px;
    }

    .display-4 {
        font-size: 2.5rem;
    }

    .display-5 {
        font-size: 2rem;
    }

    .navbar-nav .nav-link {
        margin: 5px 0;
    }

    .hero-content {
        text-align: center;
        margin-bottom: 30px;
    }
}

/* Custom spacing */
.section-padding {
    padding: 100px 0;
}

/* Loading animation for images */
img {
    transition: opacity 0.3s ease;
}

img.lazy {
    opacity: 0;
}

img.lazy.loaded {
    opacity: 1;
}

/* Parallax effect for hero */
.hero-parallax {
    transform: translateY(0);
    transition: transform 0.1s ease-out;
}

/* Stars rating */
.stars i {
    font-size: 1.2rem;
    margin: 0 2px;
}

/* Contact info styling */
.contact-info .d-flex {
    padding: 15px;
    border-radius: 10px;
    transition: background-color 0.3s ease;
}

.contact-info .d-flex:hover {
    background-color: rgba(66, 147, 168, 0.05);
}

/* Utility classes */
.text-shadow {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* ====== CARROUSEL ACUPUNCTURE - VERSION DYNAMIQUE ====== */

/* Cacher les indicateurs Bootstrap par défaut */
.carousel-indicators {
    display: none;
}

.carousel-inner {
    min-height: 590px;
}

.carousel-item {
    /* Pas de min-height fixe */
    padding: 2rem 0; /* Padding uniforme pour toutes les slides */
}

.carousel-item .row {
    /* Pas de min-height fixe */
}

/* Style pour les images du carrousel - taille cohérente */
.carousel-item.definition img {
    height: 520px; /* Hauteur fixe pour toutes les images */
    object-fit: cover;
    width: 100%;
}

.carousel-item img {
    height: 300px; /* Hauteur fixe pour toutes les images */
    object-fit: cover;
    width: 100%;
}

/* Responsive pour les images */
@media (max-width: 768px) {
    .carousel-item img {
        height: 250px;
    }

    .carousel-item {
        padding: 1.5rem 0;
    }
}

/* Styles pour les boutons de navigation personnalisés */
.carousel-nav-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

.carousel-nav-buttons .btn {
    background: rgba(66, 147, 168, 0.1);
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 8px 16px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.carousel-nav-buttons .btn:hover {
    background: rgba(66, 147, 168, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(66, 147, 168, 0.3);
}

.carousel-nav-buttons .btn.active {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(66, 147, 168, 0.4);
}

.carousel-nav-buttons .btn.active:hover {
    background: var(--primary-color);
    color: white;
}

/* Responsive pour les boutons */
@media (max-width: 768px) {
    .carousel-nav-buttons {
        gap: 5px;
    }

    .carousel-nav-buttons .btn {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
}

/* Amélioration des contrôles du carrousel */
.carousel-control-prev,
.carousel-control-next {
    width: 5%;
    opacity: 0.8;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    opacity: 1;
}

/* Transition fluide pour éviter l'effet rebond */
.carousel-item {
    transition: transform 0.6s ease-in-out;
}

/* Assurer que toutes les images ont la même hauteur pour éviter le rebond */
.carousel-item .text-center {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px; /* Hauteur minimale pour le conteneur d'image */
}

@media (max-width: 768px) {
    .carousel-item .text-center {
        min-height: 250px;
    }
}

.custom-highlight-box {
    background: linear-gradient(135deg, var(--secondary-color) 0%, rgba(253, 229, 219, 0.7) 100%);
    border: none;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(66, 147, 168, 0.15);
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.custom-highlight-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color) 0%, #367489 100%);
}

.custom-highlight-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(66, 147, 168, 0.25);
}

.highlight-header {
    background: rgba(66, 147, 168, 0.1);
    padding: 1rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-color);
    border-bottom: 1px solid rgba(66, 147, 168, 0.2);
    display: flex;
    align-items: center;
}

.highlight-header i {
    color: var(--primary-color);
    font-size: 1.1rem;
}

.highlight-content {
    padding: 1.25rem 1.5rem;
    color: var(--dark-color);
    line-height: 1.6;
}

.highlight-content p {
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* Version alternative avec icône en forme de bulles */
.custom-highlight-box.style-bubble {
    background: linear-gradient(135deg, rgba(66, 147, 168, 0.05) 0%, var(--secondary-color) 100%);
    border-left: 5px solid var(--primary-color);
}

.custom-highlight-box.style-bubble .highlight-header {
    background: transparent;
    border-bottom: none;
    padding-bottom: 0.5rem;
}

.custom-highlight-box.style-bubble .highlight-content {
    padding-top: 0.75rem;
}

/* Responsive pour la mise en évidence */
@media (max-width: 768px) {
    .highlight-header {
        padding: 0.85rem 1.25rem;
        font-size: 0.95rem;
    }

    .highlight-content {
        padding: 1rem 1.25rem;
    }

    .highlight-content p {
        font-size: 0.9rem;
    }
}

/* Style pour plusieurs mises en évidence côte à côte */
.highlight-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

@media (max-width: 768px) {
    .highlight-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* Animation d'apparition */
@keyframes highlightFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.custom-highlight-box.animate {
    animation: highlightFadeIn 0.6s ease-out;
}

/* Variantes de couleurs pour différents types de contenu */
.custom-highlight-box.warning {
    background: linear-gradient(135deg, #fff3cd 0%, rgba(255, 243, 205, 0.7) 100%);
}

.custom-highlight-box.warning::before {
    background: linear-gradient(90deg, #ffc107 0%, #e0a800 100%);
}

.custom-highlight-box.warning .highlight-header {
    background: rgba(255, 193, 7, 0.1);
    color: #856404;
    border-bottom-color: rgba(255, 193, 7, 0.2);
}

.custom-highlight-box.success {
    background: linear-gradient(135deg, #d1edff 0%, rgba(209, 237, 255, 0.7) 100%);
}

.custom-highlight-box.success::before {
    background: linear-gradient(90deg, #0dcaf0 0%, #0aa2c0 100%);
}

.custom-highlight-box.success .highlight-header {
    background: rgba(13, 202, 240, 0.1);
    color: #055160;
    border-bottom-color: rgba(13, 202, 240, 0.2);
}
/* ====== MISE EN ÉVIDENCE FLUIDE - MOINS EFFET CARTE ====== */

.custom-highlight-inline {
    background: rgba(66, 147, 168, 0.03);
    border-left: 4px solid var(--primary-color);
    padding: 1.25rem 1.5rem;
    margin: 1rem 0;
    position: relative;
    transition: all 0.3s ease;
}

.custom-highlight-inline::before {
    content: '';
    position: absolute;
    top: 0;
    left: -4px;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--primary-color) 0%, rgba(66, 147, 168, 0.3) 100%);
    transition: all 0.3s ease;
}

.custom-highlight-inline:hover::before {
    width: 6px;
    background: linear-gradient(180deg, var(--primary-color) 0%, #367489 100%);
}

.highlight-icon-text {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    color: var(--primary-color);
    font-size: 1rem;
}

.highlight-icon-text i {
    font-size: 1.1rem;
    opacity: 0.9;
}

.highlight-icon-text strong {
    font-weight: 600;
    color: var(--primary-color);
}

.highlight-text {
    color: var(--dark-color);
    line-height: 1.6;
    font-size: 0.95rem;
    margin: 0;
    padding-left: 0.25rem;
}

/* Version encore plus subtile - style bandeau */
.custom-highlight-band {
    background: linear-gradient(90deg, rgba(66, 147, 168, 0.08) 0%, rgba(66, 147, 168, 0.02) 100%);
    border-top: 2px solid rgba(66, 147, 168, 0.3);
    border-bottom: 2px solid rgba(66, 147, 168, 0.3);
    padding: 1rem 1.25rem;
    margin: 1.5rem 0;
}

.custom-highlight-band .highlight-icon-text {
    margin-bottom: 0.5rem;
}

/* Version inline simple - juste avec couleur */
.custom-highlight-simple {
    padding: 0.75rem 0;
    border-left: 3px solid var(--primary-color);
    padding-left: 1rem;
    background: rgba(66, 147, 168, 0.02);
}

.custom-highlight-simple .highlight-icon-text {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.custom-highlight-simple .highlight-text {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Responsive */
@media (max-width: 768px) {
    .custom-highlight-inline {
        padding: 1rem 1.25rem;
        margin: 0.75rem 0;
    }

    .highlight-icon-text {
        gap: 0.5rem;
        font-size: 0.95rem;
    }

    .highlight-text {
        font-size: 0.9rem;
        padding-left: 0;
    }
}

/* Animation subtile au hover */
.custom-highlight-inline:hover {
    background: rgba(66, 147, 168, 0.05);
    transform: translateX(2px);
}

/* Variante pour texte important sans séparation titre/contenu */
.custom-highlight-unified {
    background: rgba(66, 147, 168, 0.04);
    border-left: 4px solid var(--primary-color);
    padding: 1rem 1.25rem;
    font-style: italic;
    position: relative;
}

.custom-highlight-unified::before {
    content: '"';
    position: absolute;
    left: -2px;
    top: -10px;
    font-size: 3rem;
    color: rgba(66, 147, 168, 0.2);
    font-family: serif;
}

.custom-highlight-unified::after {
    content: '"';
    position: absolute;
    right: 10px;
    bottom: -20px;
    font-size: 3rem;
    color: rgba(66, 147, 168, 0.2);
    font-family: serif;
}
/* ====== CORRECTION ANCRES POUR NAVBAR FIXE ====== */

/* Décalage pour les ancres afin d'éviter que la navbar cache le contenu */
section[id] {
    scroll-margin-top: 70px; /* 70px navbar */
}

/* Méthode alternative avec pseudo-éléments pour plus de compatibilité */
section[id]::before {
    content: '';
    display: block;
    height: 70px; /* Même valeur que scroll-margin-top */
    margin-top: -70px;
    visibility: hidden;
}

/* Ajustement responsive pour les différentes tailles de navbar */
@media (max-width: 768px) {
    section[id] {
        scroll-margin-top: 60px; /* 60px navbar */
    }

    section[id]::before {
        height: 60px;
        margin-top: -60px;
    }

    /* Alternative CSS pure avec padding-top pour les navigateurs plus anciens */
    .section-anchor-offset {
        padding-top: 60px;
        margin-top: -60px;
    }
}

/* ====== BOUTON RETOUR EN HAUT ====== */
/* ====== BOUTON RETOUR EN HAUT - CONTRASTE AMÉLIORÉ ====== */

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 55px;
    height: 55px;
    background: white; /* Fond blanc pour contraster avec le footer */
    color: var(--primary-color); /* Icône en couleur primaire */
    border: 2px solid var(--primary-color); /* Bordure colorée */
    border-radius: 50%;
    cursor: pointer;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(66, 147, 168, 0.3),
    0 0 0 0 rgba(255, 255, 255, 0.8); /* Ombre + halo blanc */
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-to-top:hover {
    background: var(--primary-color); /* Inversion au hover */
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(66, 147, 168, 0.5),
    0 0 0 3px rgba(255, 255, 255, 0.3); /* Ombre + halo plus marqué */
}

.back-to-top:active {
    transform: translateY(0);
    box-shadow: 0 4px 15px rgba(66, 147, 168, 0.4);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top i {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.back-to-top:hover i {
    transform: translateY(-2px);
}

/* Animation de pulsation avec contraste */
@keyframes pulseContrast {
    0% {
        box-shadow: 0 4px 20px rgba(66, 147, 168, 0.3),
        0 0 0 0 rgba(255, 255, 255, 0.8);
    }
    50% {
        box-shadow: 0 6px 25px rgba(66, 147, 168, 0.5),
        0 0 0 5px rgba(255, 255, 255, 0.4);
    }
    100% {
        box-shadow: 0 4px 20px rgba(66, 147, 168, 0.3),
        0 0 0 0 rgba(255, 255, 255, 0.8);
    }
}

.back-to-top.pulse {
    animation: pulseContrast 2s infinite;
}

/* Version alternative avec dégradé */
.back-to-top.gradient {
    background: linear-gradient(135deg, white 0%, #f8f9fa 100%);
    border: 2px solid var(--primary-color);
}

.back-to-top.gradient:hover {
    background: linear-gradient(135deg, var(--primary-color) 0%, #367489 100%);
}

/* Version avec ombre forte pour plus de contraste */
.back-to-top.shadow-strong {
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.2),
    0 0 0 0 rgba(255, 255, 255, 1),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.back-to-top.shadow-strong:hover {
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.3),
    0 0 0 3px rgba(255, 255, 255, 0.5);
}

/* Responsive */
@media (max-width: 768px) {
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        border-width: 2px;
    }

    .back-to-top i {
        font-size: 1.1rem;
    }
}

@media (max-width: 576px) {
    .back-to-top {
        bottom: 15px;
        right: 15px;
        width: 45px;
        height: 45px;
        border-width: 2px;
    }

    .back-to-top i {
        font-size: 1rem;
    }
}

/* Version sombre si le fond n'est pas le footer */
.back-to-top.dark-mode {
    background: var(--primary-color);
    color: white;
    border: 2px solid white;
}

.back-to-top.dark-mode:hover {
    background: white;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Contact Cards Styles */
.contact-card {
    transition: all 0.3s ease;
    border: 1px solid rgba(66, 147, 168, 0.1) !important;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

.contact-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(66, 147, 168, 0.15) !important;
    border: 1px solid rgba(66, 147, 168, 0.2) !important;
}

.contact-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--primary-color), #367489);
    color: white;
    font-size: 2rem;
    box-shadow: 0 10px 30px rgba(66, 147, 168, 0.3);
}

.contact-details p, .schedule-details span, .pricing-details span {
    line-height: 1.6;
}

.schedule-item {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(66, 147, 168, 0.1);
}

.schedule-item:last-child {
    border-bottom: none;
}

.cta-section {
    border: 2px solid rgba(66, 147, 168, 0.1);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.8s ease;
}

.cta-section:hover::before {
    left: 100%;
}

.pricing-item-modern {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem;
    background: white;
    border-radius: 12px;
    margin-bottom: 1rem;
}

.pricing-item-modern:last-child {
    margin-bottom: 0;
}

.service-info {
    flex: 1;
}

.service-name {
    display: flex;
    align-items: center;
    margin-bottom: 0.25rem;
    font-size: 1.1rem;
}

.service-description {
    color: #6c757d;
    font-size: 0.85rem;
    margin-left: 1.75rem;
}

.price-badge {
    background: linear-gradient(135deg, var(--primary-color), #367489);
    color: white;
    padding: 0.5rem 1.25rem;
    border-radius: 25px;
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: 0 3px 10px rgba(66, 147, 168, 0.3);
}
/* Responsive adjustments */
@media (max-width: 768px) {
    .contact-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .cta-section {
        padding: 2rem 1.5rem !important;
    }

    .d-flex.flex-column.flex-sm-row .btn {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .contact-card .card-body {
        padding: 2rem 1.5rem !important;
    }

    .contact-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
}
