/*
* Vita Mutuelle - Mobile Responsive Stylesheet
* Ce fichier contient toutes les optimisations CSS pour la version mobile du site
*/

/* Optimisations générales pour mobile */
@media (max-width: 767.98px) {
    /* Ajustement de la taille des textes */
    h1 {
        font-size: 2rem !important;
    }
    
    h2 {
        font-size: 1.8rem !important;
    }
    
    h3 {
        font-size: 1.4rem !important;
    }
    
    p, .lead {
        font-size: 1rem !important;
    }
    
    /* Espacements réduits */
    section {
        padding: 3rem 0 !important;
    }
    
    .section-padding {
        padding: 2.5rem 0 !important;
    }
    
    /* Navigation */
    .navbar-brand img {
        max-height: 40px;
    }
    
    .navbar-nav .nav-link {
        padding: 0.8rem 1rem;
    }
    
    /* Boutons plus adaptés */
    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.95rem;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .cta-buttons .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    /* Mise en page principale */
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    /* Hero section */
    .hero {
        padding: 3rem 0 !important;
        text-align: center;
    }
    
    .hero-content {
        margin-bottom: 2rem;
    }
    
    .devis-form-container {
        padding: 1.2rem;
    }
    
    /* Cartes et éléments d'UI */
    .benefit-card, 
    .service-card, 
    .testimonial-card, 
    .value-card,
    .info-card {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    /* Grille des articles de blog */
    .blog-card {
        margin-bottom: 1.5rem;
    }
    
    /* Page de comparateur */
    .comparateur-section .comparateur-card {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    /* Formulaires */
    .form-group {
        margin-bottom: 1rem;
    }
    
    .form-control {
        padding: 0.6rem 0.8rem;
    }
    
    /* Optimisation de la barre supérieure */
    .top-bar {
        font-size: 0.75rem;
    }
    
    .top-bar .container {
        justify-content: center !important;
    }
    
    .top-contact, .top-links {
        display: flex;
        justify-content: center;
        width: 100%;
        text-align: center;
    }
    
    .top-contact span:not(:last-child), 
    .top-links a:not(:last-child) {
        margin-right: 0.5rem;
    }
}

/* Optimisation pour les très petits écrans (en dessous de 575px) */
@media (max-width: 575.98px) {
    /* Header et navigation */
    .header .container {
        padding: 0.5rem;
    }
    
    /* Hero section */
    .hero h1 {
        font-size: 1.8rem !important;
    }
    
    .hero .lead {
        font-size: 0.95rem !important;
    }
    
    /* Profile type buttons */
    .profile-type-buttons {
        flex-direction: column;
    }
    
    .profile-type {
        margin: 0.25rem 0;
    }
    
    /* Ajustement des sections */
    .section-header h2 {
        font-size: 1.6rem !important;
    }
    
    /* Témoignages */
    .testimonial-card {
        padding: 1.2rem;
    }
    
    /* Footer */
    .footer-col {
        margin-bottom: 2rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
    }
    
    /* Blog */
    .blog-meta span {
        display: block;
        margin-bottom: 0.25rem;
    }
    
    /* Pagination */
    .pagination .page-item .page-link {
        padding: 0.25rem 0.5rem;
    }
    
    /* About us section */
    .team-member {
        margin-bottom: 2.5rem;
    }
    
    /* Contact */
    .info-card {
        margin-bottom: 1rem;
    }
    
    /* Formulaire de souscription */
    .subscription-steps .step {
        padding: 0.5rem;
        font-size: 0.8rem;
    }
}

/* Optimisation pour les appareils de taille moyenne (tablettes) */
@media (min-width: 768px) and (max-width: 991.98px) {
    /* Réduire légèrement les espacements */
    section {
        padding: 4rem 0 !important;
    }
    
    /* Hero section */
    .hero {
        padding: 4rem 0 !important;
    }
    
    .hero h1 {
        font-size: 2.4rem !important;
    }
    
    /* Cartes et conteneurs */
    .benefit-card, 
    .service-card, 
    .value-card,
    .info-card {
        padding: 1.8rem;
    }
    
    /* Blog */
    .blog-card {
        height: 100%;
    }
}

/* Optimisations spécifiques pour l'en-tête sur tous les appareils mobiles */
@media (max-width: 991.98px) {
    /* Gestion du menu mobile */
    .navbar-collapse {
        background: white;
        padding: 1rem;
        border-radius: 0 0 10px 10px;
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
    }
    
    /* Sous-menu dans la navigation */
    .dropdown-menu {
        border: none;
        background-color: var(--primary-light);
        padding: 0.5rem;
        margin-left: 1rem;
    }
    
    .dropdown-item {
        padding: 0.5rem 1rem;
        border-radius: 4px;
    }
    
    .dropdown-item:hover {
        background-color: var(--primary-color);
        color: white;
    }
    
    /* Ajustement du toggle button */
    .navbar-toggler {
        border: none;
        padding: 0.5rem;
    }
    
    .navbar-toggler:focus {
        box-shadow: none;
    }
    
    /* Ajustement du bouton CTA dans la navigation */
    .navbar-nav .nav-button {
        margin-top: 0.5rem;
        text-align: center;
    }
}

/* Optimisation des formulaires sur mobile */
@media (max-width: 767.98px) {
    /* Formulaire de demande de devis */
    .devis-header {
        flex-direction: column;
    }
    
    .devis-badge {
        align-self: flex-start;
        margin-top: 1rem;
    }
    
    /* Formulaire de contact */
    .contact-form {
        padding: 1.5rem;
    }
    
    /* Formulaire de newsletter */
    .newsletter-form .input-group {
        flex-direction: column;
    }
    
    .newsletter-form .form-control {
        border-radius: 4px !important;
        margin-bottom: 0.5rem;
    }
    
    .newsletter-form .btn {
        border-radius: 4px !important;
        width: 100%;
    }
}

/* Optimisations spécifiques pour le pied de page */
@media (max-width: 767.98px) {
    .footer {
        text-align: center;
    }
    
    .footer-links {
        justify-content: center;
        margin-bottom: 1.5rem;
    }
    
    .footer-social {
        justify-content: center;
        margin-bottom: 1rem;
    }
    
    .footer .nav-link {
        padding: 0.5rem 0;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-bottom-links {
        margin-top: 1rem;
        justify-content: center;
    }
}

/* Optimisations pour les animations et transitions sur mobile */
@media (max-width: 767.98px) {
    /* Désactiver certaines animations pour améliorer les performances */
    .benefit-card:hover,
    .service-card:hover,
    .info-card:hover,
    .value-card:hover {
        transform: none;
    }
    
    /* Réduire les effets d'ombre */
    .btn:hover {
        transform: translateY(-1px);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    }
}

/* Ajustements pour le blog et les articles */
@media (max-width: 767.98px) {
    .blog-article-content {
        padding: 1rem;
    }
    
    .blog-article-content img {
        margin: 1rem 0;
    }
    
    .article-meta {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .article-meta span {
        margin-bottom: 0.5rem;
    }
    
    .blog-article-header h1 {
        font-size: 1.8rem !important;
    }
    
    .article-cta {
        padding: 1.2rem;
    }
}

/* Optimisation des tableaux pour mobile */
@media (max-width: 767.98px) {
    table {
        display: block;
        width: 100%;
        overflow-x: auto;
    }
    
    .table-container {
        margin: 1rem 0;
        overflow-x: auto;
    }
}