/* Custom styles that can't be done with Tailwind */
.iframe-container {
    position: relative;
    overflow: hidden;
    padding-top: 125%; /* 4:5 Aspect Ratio for mobile */
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

@media (min-width: 768px) {
    .iframe-container {
        padding-top: 56.25%; /* 16:9 Aspect Ratio for desktop/tablet */
    }
}

.responsive-iframe {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Animation for form submission */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.form-message {
    animation: fadeIn 0.5s ease-out;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #4299e1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #3182ce;
}

/* Section titles */
.section-title {
    position: relative;
    display: inline-block;
    margin-bottom: 2rem;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0; /* plus de centrage forcé */
    transform: none; /* supprime le décalage horizontal */
    width: 100%; /* prend toute la largeur du titre */
    height: 4px;
    background: linear-gradient(to right, #2b6cb0, #4299e1);
    border-radius: 2px;
}

/* Card hover effect */
.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

/* Testimonial card */
.testimonial-card {
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: scale(1.02);
}

/* Logo responsive sizing */
.logo-container {
    width: 60px;
    height: auto;
    max-width: 60px;
    flex-shrink: 0;
}

@media (min-width: 640px) {
    .logo-container {
        width: 80px;
        max-width: 80px;
    }
}

@media (min-width: 768px) {
    .logo-container {
        width: 100px;
        max-width: 100px;
    }
}

@media (min-width: 1024px) {
    .logo-container {
        width: 120px;
        max-width: 120px;
    }
}

/* Header responsive improvements */
.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    gap: 0.5rem;
}

.header-logo-section {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    min-width: 0;
    gap: 0.5rem;
}

@media (min-width: 640px) {
    .header-logo-section {
        gap: 1rem;
    }
}

.header-title {
    font-size: 1rem;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

@media (min-width: 640px) {
    .header-title {
        font-size: 1.25rem;
    }
}

@media (min-width: 768px) {
    .header-title {
        font-size: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .header-title {
        font-size: 1.75rem;
    }
}

/* Navigation responsive */
.nav-link {
    font-size: 0.875rem;
    padding: 0.25rem 0.5rem;
    white-space: nowrap;
}

@media (min-width: 1024px) {
    .nav-link {
        font-size: 1rem;
        padding: 0.5rem 1rem;
    }
}

@media (min-width: 1280px) {
    .nav-link {
        padding: 0.5rem 1.5rem;
    }
}

/* Mobile menu improvements */
.mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.mobile-menu.active {
    max-height: 300px;
}

@media (min-width: 768px) {
    .logo-container {
        width: 150px;
    }
}

/* Mobile menu animation */
.mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.mobile-menu.open {
    max-height: 500px;
    transition: max-height 0.5s ease-in;
}

/* Hero section responsive text */
.hero-title {
    font-size: 2rem;
    line-height: 2.5rem;
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 3rem;
        line-height: 3.5rem;
    }
}

/* Button responsive sizing */
.btn-primary {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
}

@media (min-width: 640px) {
    .btn-primary {
        padding: 0.875rem 2rem;
        font-size: 1.125rem;
    }
}

/* Correction pour la navigation par ancres - décalage pour le header fixe */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px; /* adapte la valeur à la hauteur exacte de ton header */
}

/* Décalage pour les ancres afin de compenser le header fixe */
section[id] {
    scroll-margin-top: 80px;
}

/* Style pour les messages de formulaire visibles */
.form-message-container {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    max-width: 90%;
    width: auto;
}


/* Améliorations supplémentaires pour un design plus moderne */

/* Animations subtiles pour les boutons - amélioration */
.btn-primary {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(0);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Amélioration des cartes de service */
.service-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
}

.service-card:hover {
    border-color: rgba(43, 108, 176, 0.2);
    transform: translateY(-8px);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.15);
}

/* Amélioration des images avec effet de zoom subtil */
img {
    transition: transform 0.3s ease;
}

img:hover {
    transform: scale(1.02);
}

/* Amélioration de la navigation avec indicateur actif */
.nav-link {
    position: relative;
    transition: all 0.3s ease;
}

.nav-link:hover::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 2px;
    background: linear-gradient(to right, #2b6cb0, #4299e1);
    border-radius: 1px;
}

/* Amélioration des témoignages */
.testimonial-card {
    border-left: 4px solid #4299e1;
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    border-left-color: #2b6cb0;
    box-shadow: 0 15px 30px -10px rgba(0, 0, 0, 0.1);
}

/* Amélioration du formulaire avec feedback visuel */
input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: #4299e1;
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.1);
    transition: all 0.3s ease;
}

/* Amélioration des icônes avec animation */
.fas, .far {
    transition: transform 0.2s ease;
}

.service-card:hover .fas {
    transform: scale(1.1);
}

/* Amélioration de l'accessibilité avec focus visible */
*:focus-visible {
    outline: 2px solid #4299e1;
    outline-offset: 2px;
}

/* Amélioration des gradients pour plus de profondeur */
.bg-gradient-to-r {
    background-image: linear-gradient(135deg, #2b6cb0 0%, #4299e1 50%, #3182ce 100%);
}

/* Amélioration de la typographie avec meilleur espacement */
h1, h2, h3, h4, h5, h6 {
    letter-spacing: -0.025em;
}

p {
    line-height: 1.7;
}

/* Amélioration de la responsivité pour les très petits écrans */
@media (max-width: 320px) {
    .hero-title {
        font-size: 1.5rem;
        line-height: 2rem;
    }
    
    .btn-primary {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
}

/* Amélioration du contraste pour l'accessibilité */
.text-gray-600 {
    color: #4a5568;
}

.text-gray-700 {
    color: #2d3748;
}



/* Styles pour les liens de navigation transformés en boutons */
.nav-button {
    display: inline-block;
    padding: 0.75rem 1.25rem;
    border-radius: 9999px; /* Fully rounded corners */
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid transparent;
}

.nav-button-primary {
    background-color: #2b6cb0; /* primary color */
    color: #ffffff;
}

.nav-button-primary:hover {
    background-color: #3182ce; /* accent color */
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.nav-button-secondary {
    background-color: #ffffff;
    color: #2b6cb0; /* primary color */
    border-color: #2b6cb0;
}

.nav-button-secondary:hover {
    background-color: #f0f4f8; /* light gray */
    color: #3182ce; /* accent color */
    border-color: #3182ce;
    transform: translateY(-2px);
}

/* Ajustement pour les liens de navigation existants */
.nav-link {
    /* Conserver les styles existants si nécessaire, ou les remplacer */
    padding: 0.5rem 1rem; /* Ajustement pour un meilleur espacement */
}

/* Media queries pour ajuster la taille des boutons sur mobile */
@media (max-width: 767px) {
    .nav-button {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
        width: 100%; /* Full width on mobile */
    }
}




/* === Styles spécifiques aux pages de kinésithérapie === */

/* Styles spécifiques aux pages de kinésithérapie */

.kine-page {
  padding: 2rem 1rem;
  max-width: 1000px;
  margin: auto;
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
}

.breadcrumb a {
  color: #2b6cb0;
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.hero {
  text-align: center;
  margin-bottom: 2rem;
}

.hero-illustration img {
  max-width: 100%;
  height: auto;
  border-radius: 0.5rem;
  margin: 1rem 0;
}

.kine-list {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}

.cta {
  text-align: center;
  background: #f7fafc;
  padding: 2rem;
  border-radius: 0.5rem;
  margin-top: 2rem;
}

.cta .btn-primary {
  display: inline-block;
  margin-top: 1rem;
}

/* Back to Top Button - Visible sur tous les fonds */
.back-to-top-btn {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 2.5rem;
    height: 2.5rem;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    color: #2563eb;
    border: 2px solid #2563eb;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3), 0 2px 4px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    z-index: 1000;
    font-size: 0.875rem;
}

.back-to-top-btn:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #ffffff;
    border-color: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.4), 0 4px 8px rgba(0, 0, 0, 0.15);
}

.back-to-top-btn.show {
    opacity: 1;
    visibility: visible;
}

@media (min-width: 640px) {
    .back-to-top-btn {
        bottom: 2rem;
        right: 2rem;
        width: 3rem;
        height: 3rem;
        font-size: 1rem;
    }
}

