/* ========================
   PERSONNALISATIONS MY.JOOMIL.CH
   ======================== */

/* ========================
   TYPOGRAPHIE - CORRECTIFS
   ======================== */

/* Exposants dans texte gras : font-weight normal */
strong sup,
b sup,
.feature-highlight sup {
    font-weight: normal !important;
}

/* ========================
   TITRES PAGES MEMBRE - UNIFORMISATION
   ======================== */

/* Titre H1 standard pour pages membre Classifieds */
.classifieds-page-title {
    font-size: 1.5rem;
    margin: 0 0 0.5rem 0;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-primary);
}

.classifieds-page-title .icon {
    flex-shrink: 0;
}

/* ========================
   BADGE MESSAGES - INLINE DANS QUICK LINKS
   ======================== */

/* Override du positionnement absolu du chat-badge dans les quick-links */
.quick-link-title .chat-badge:not([style*="display:none"]) {
    position: static !important;
    display: inline-flex !important;
    margin-left: 0.5rem;
    vertical-align: middle;
    background: #ef4444 !important; /* Rouge pour cohérence avec non-lu */
    padding: 0 0.375rem !important; /* Padding comme chat-unread-badge */
    min-width: 20px;
    height: 20px;
    border-radius: 10px !important; /* Arrondi comme chat-unread-badge */
    border: none !important; /* Pas de bordure blanche */
    font-size: 0.75rem;
}

/* Respecter le display:none quand count = 0 */
.quick-link-title .chat-badge[style*="display:none"] {
    display: none !important;
}

/* ========================
   DROPDOWN UTILISATEUR - DESKTOP + MOBILE
   ======================== */

/* ⚠️ État par défaut : CACHÉ (desktop + mobile) */
.user-dropdown {
    opacity: 0 !important;
    visibility: hidden !important;
    transform: translateY(-10px) !important;
    pointer-events: none !important;
}

/* ⚠️ Seule la classe .active contrôle l'affichage (desktop + mobile) */
.user-menu.active .user-dropdown {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
    pointer-events: auto !important;
}

/* ✅ Toggle toujours cliquable (même quand dropdown ouvert) */
.user-menu-toggle {
    position: relative;
    z-index: calc(var(--z-dropdown) + 1);
    pointer-events: auto !important;
}

/* État actif pour les liens du dropdown */
.dropdown-item.active {
    background: var(--bg-tertiary);
    font-weight: 600;
    position: relative;
}

.dropdown-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--primary-color);
}

/* Focus différent de l'état actif (outline au lieu de background) */
.dropdown-item:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: -2px;
    background: transparent !important;
}

.dropdown-item.active:focus {
    /* L'état actif garde son background même au focus */
    background: var(--bg-tertiary) !important;
}

/* ✅ Structure dropdown avec triangle de sécurité (Desktop + Mobile) */
/* Le .user-dropdown reste invisible pour maintenir le hover */
.user-dropdown {
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
}

/* Zone invisible pour le triangle de sécurité */
.user-dropdown > div:first-child {
    height: 0.1rem;
}

/* Styles visuels appliqués à la div de contenu */
.user-dropdown .user-dropdown-content {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* Hover sur la section user-info */
.user-dropdown a:hover .user-info {
    background: var(--bg-tertiary);
}

/* Dropdown item avec badge à droite */
.dropdown-item-with-badge {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Le span contient l'icône + texte */
.dropdown-item-with-badge > span {
    display: inline-flex;
    align-items: center;
}

/* Gap entre l'icône et le texte dans le span */
.dropdown-item-with-badge > span svg {
    margin-right: 0.75rem;
}

/* Footer du dropdown : Déconnexion + Thème sur la même ligne */
.dropdown-footer-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.5rem 0;
}

/* Le lien Déconnexion prend toute la place disponible */
.dropdown-footer-actions .dropdown-item {
    flex: 1;
    margin: 0;
}

/* Sélecteur de thème dans le dropdown (compact à droite) */
.dropdown-theme-button {
    width: 44px;
    height: 44px;
    background: transparent;
    border: 1px solid rgba(141, 151, 161, 0.2);
    border-radius: var(--radius-lg);
    margin: 0 1rem 0 0; /* Marge droite pour aligner avec le dropdown */
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease;
    flex-shrink: 0;
}

.dropdown-theme-button:hover {
    background: var(--bg-tertiary);
}

/* Sélecteur de thème dans le menu mobile (centré) */
.mobile-theme-toggle-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 0;
}

.mobile-theme-button {
    width: 44px;
    height: 44px;
    background: transparent;
    border: 1px solid rgba(141, 151, 161, 0.2);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease;
}

.mobile-theme-button:hover {
    background: var(--bg-tertiary);
}

/* ✅ DESKTOP : Hover CSS standard avec protection click */
@media (min-width: 769px) {
    /* Solution : positionner le dropdown sans espace */
    .user-dropdown {
        top: 100%; /* Position normale, sans espace */
        margin-top: 0; /* IMPORTANT: pas de margin qui casse le hover */
        min-width: 300px; /* Plus large pour plus de confort */
        transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
        transition-delay: 0s; /* Ouverture immédiate */
    }
    
    /* Délai avant fermeture pour permettre la navigation */
    .user-menu:not(:hover) .user-dropdown {
        transition-delay: 0.3s; /* Délai de 300ms avant fermeture */
    }
    
    /* Hover normal pour ouvrir le dropdown */
    .user-menu:hover .user-dropdown,
    .user-menu:focus-within .user-dropdown {
        opacity: 1 !important;
        visibility: visible !important;
        transform: translateY(0) !important;
        pointer-events: auto !important;
        transition-delay: 0s; /* Ouverture immédiate */
    }
    
    /* Garder ouvert avec la classe .active (click permanent) */
    .user-menu.active .user-dropdown {
        opacity: 1 !important;
        visibility: visible !important;
        transform: translateY(0) !important;
        pointer-events: auto !important;
    }
    
    /* Bloquer le hover temporairement après fermeture manuelle */
    .user-menu.click-closed:hover .user-dropdown {
        opacity: 0 !important;
        visibility: hidden !important;
        transform: translateY(-10px) !important;
        pointer-events: none !important;
    }
}

/* Liens petites annonces - Style adaptatif desktop/mobile */
/* Desktop : liens inline sans style spécial */
.navbar-links-section {
    display: contents; /* Permet aux enfants de s'afficher normalement */
}

/* Desktop : masquer le titre de section */
.navbar-links-section .nav-section-title {
    display: none;
}

/* Mobile : appliquer le style de section avec padding */
@media (max-width: 768px) {
    .navbar-links-section {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        width: 100%;
        padding-top: 1rem;
        margin-top: 1rem;
        border-top: 1px solid var(--border-color);
    }
    
    /* Afficher le titre de section sur mobile */
    .navbar-links-section .nav-section-title {
        display: block;
    }
}

/* Fix badge tronqué - z-index et overflow */
.chat-badge-btn {
    position: relative;
    overflow: visible !important; /* S'assurer que le badge n'est pas coupé */
}

.chat-badge-btn .badge {
    z-index: 10; /* S'assurer que le badge est au-dessus */
}

/* Icône message-square plus grande */
.chat-badge-btn svg {
    width: 1.5rem;
    height: 1.5rem;
}

/* Barre de recherche navbar */
.navbar-search {
    display: flex;
    align-items: center;
}

.search-form {
    position: relative;
    display: flex;
    align-items: center;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    transition: all 0.2s ease;
}

.search-form:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* S'assurer que le bouton loupe ne crée pas de conflit visuel */
.search-btn:focus {
    outline: none; /* Pas de outline sur le bouton */
}

.search-input:focus {
    outline: none; /* L'outline est géré par le parent .search-form */
}

.search-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    flex-shrink: 0;
    transition: color 0.2s ease;
    font-size: 0; /* Cache tout texte éventuel */
    line-height: 0; /* Force l'icône uniquement */
}

.search-btn:hover {
    color: var(--primary-color);
}

.search-btn svg {
    width: 24px;
    height: 24px;
    display: block; /* Force l'affichage de l'icône */
}

.search-input {
    flex: 1;
    height: 44px;
    padding: 0 1rem 0 0;
    background: transparent;
    border: none;
    font-size: 0.9375rem;
    color: var(--text-primary);
    outline: none;
}

.search-input::placeholder {
    color: var(--text-secondary);
    opacity: 0.6;
}

/* Desktop : champ visible, largeur limitée */
@media (min-width: 769px) {
    .navbar-search {
        flex: 0 0 auto;
        max-width: 280px;
        margin: 0 1rem;
    }
}

/* Badge messages : visible sur mobile à gauche du hamburger */
@media (max-width: 768px) {
    /* Barre de recherche : juste l'icône sur mobile */
    .navbar-search {
        flex-shrink: 0;
        margin: 0;
    }
    
    .search-form {
        width: 44px;
        height: 44px;
        overflow: hidden;
        border: none;
        background: transparent;
    }
    
    .search-input {
        display: none !important; /* Forcé caché sur mobile */
    }
    
    /* Structure navbar sur mobile */
    .navbar-content {
        justify-content: space-between;
        gap: 0.75rem; /* Réduire l'espace global */
    }
    
    .navbar-content > .navbar-actions {
        display: flex !important; /* Override du CSS core qui cache sur mobile */
        gap: 0.5rem;
        margin-right: 0.5rem; /* Petit espace à droite pour ne pas coller au bord */
        flex-shrink: 0; /* Empêcher le rétrécissement */
    }
    
    /* Sur très petits écrans, réduire encore les gaps */
    @media (max-width: 400px) {
        .navbar-content > .navbar-actions {
            gap: 0.25rem; /* Réduire l'espace entre icônes */
        }
    }
    
    /* Logo avec marge automatique pour pousser les éléments à droite */
    .navbar-brand {
        margin-right: auto; /* Pousse tout le reste à droite */
        flex-shrink: 0;
    }
    
    /* Barre de recherche après le logo, avant les actions */
    .navbar-search {
        order: 1; /* Après le logo (order 0 par défaut) */
    }
    
    /* Actions (chat + avatar) en dernier */
    .navbar-actions {
        order: 2;
    }
    
    /* ⚠️ Avatar visible sur mobile (pattern communautaire - remplace hamburger) */
    .navbar-actions .user-menu {
        display: flex !important; /* Avatar maintenant visible sur mobile */
        position: static; /* Permet au dropdown d'être positionné depuis le body */
    }
    
    /* Dropdown avatar mobile : collé à droite, largeur fixe */
    .navbar-actions .user-dropdown {
        position: fixed !important; /* Fixed pour coller au bord écran */
        top: 72px; /* Juste sous la navbar */
        right: 0; /* Collé au bord droit (0 gap) */
        left: auto;
        width: min(320px, calc(100vw - 1rem)); /* Max 320px, mais responsive */
        margin: 0;
        border-radius: 0; /* Pas de radius côté droit */
        border-top-left-radius: var(--radius-lg);
        border-bottom-left-radius: var(--radius-lg);
        border-right: none; /* Pas de bordure côté écran */
        box-shadow: -4px 4px 20px rgba(0, 0, 0, 0.15); /* Ombre à gauche */
    }
    
    /* ⚠️ Hamburger caché sur my.joomil.ch (pattern communautaire) */
    .navbar-toggle {
        display: none !important; /* Avatar remplace le hamburger */
    }
    
    /* Cacher le theme-toggle de la navbar (visible desktop uniquement) */
    .navbar-actions > .theme-toggle {
        display: none;
    }
    
    /* Badge message reste visible */
    .navbar-actions .chat-badge-btn {
        display: flex;
    }
}

/* ========================
   SYSTÈME DE GRILLE (remplace Bootstrap)
   ======================== */
.row {
    display: flex;
    flex-wrap: wrap;
    margin-left: -0.75rem;
    margin-right: -0.75rem;
}

.g-3 > * {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
    padding-bottom: 1.5rem;
}

/* Colonnes de base */
.col-12 {
    flex: 0 0 100%;
    max-width: 100%;
}

/* Responsive: sm (≥576px) */
@media (min-width: 576px) {
    .col-sm-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

/* Responsive: lg (≥992px) */
@media (min-width: 992px) {
    .col-lg-4 {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }
}

/* ========================
   CARTES D'INFORMATION MEMBRE
   ======================== */
.info-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border: 1px solid #e9ecef;
    border-radius: 12px;
    transition: all 0.3s ease;
    height: 100%;
}

.info-card:hover {
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.1);
    transform: translateY(-2px);
}

.info-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    color: white;
}

.info-icon svg {
    width: 24px;
    height: 24px;
}

.info-content {
    flex: 1;
    min-width: 0;
}

.info-label {
    font-size: 0.75rem;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    margin-bottom: 0.375rem;
}

.info-value {
    font-size: 1.125rem;
    font-weight: 700;
    color: #212529;
    margin-bottom: 0.25rem;
}

.info-subtitle {
    font-size: 0.8125rem;
    color: #6c757d;
    margin-top: 0.25rem;
}

.info-link {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.8125rem;
    color: #667eea;
    text-decoration: none;
    margin-top: 0.5rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.info-link:hover {
    color: #764ba2;
    gap: 0.5rem;
}

.info-link svg {
    width: 14px;
    height: 14px;
}

/* ========================
   CARTES LIENS RAPIDES
   ======================== */
.quick-link-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    height: 100%;
}

.quick-link-card:hover {
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
    transform: translateY(-2px);
    background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
}

.quick-link-icon {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    color: white;
}

.quick-link-icon svg {
    width: 20px;
    height: 20px;
}

.quick-link-content {
    flex: 1;
    min-width: 0;
}

.quick-link-title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #212529;
    margin-bottom: 0.125rem;
}

.quick-link-subtitle {
    font-size: 0.8125rem;
    color: #6c757d;
}

.quick-link-arrow {
    flex-shrink: 0;
    color: #667eea;
    opacity: 0.5;
    transition: all 0.3s ease;
}

.quick-link-card:hover .quick-link-arrow {
    opacity: 1;
    transform: translateX(4px);
}

.quick-link-arrow svg {
    width: 18px;
    height: 18px;
}

/* Responsive mobile */
@media (max-width: 768px) {
    .info-card {
        padding: 1rem;
    }
    
    .info-icon {
        width: 40px;
        height: 40px;
    }
    
    .info-icon svg {
        width: 20px;
        height: 20px;
    }
    
    .quick-link-card {
        padding: 0.875rem 1rem;
    }
    
    .quick-link-icon {
        width: 38px;
        height: 38px;
    }
}

/* ========================
   CARTES D'ACTION (Actions rapides)
   ======================== */
.action-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.5rem 1.25rem;
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 16px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    overflow: hidden;
}

.action-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

/* Badge promo */
.action-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 0.25rem 0.75rem;
    background: #dc2626;
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 20px;
    z-index: 1;
}

/* Icône */
.action-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    transition: all 0.3s ease;
}

.action-icon svg {
    width: 28px;
    height: 28px;
}

/* Contenu */
.action-content {
    flex: 1;
}

.action-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #212529;
    margin-bottom: 0.5rem;
}

.action-description {
    font-size: 0.875rem;
    color: #6c757d;
    line-height: 1.4;
}

.action-amount {
    font-size: 1.75rem;
    font-weight: 800;
    color: #667eea;
    margin-bottom: 0.25rem;
}

.action-price {
    font-size: 1.5rem;
    font-weight: 800;
    color: #212529;
    margin-bottom: 0.25rem;
}

.action-price span {
    font-size: 0.875rem;
    font-weight: 500;
    color: #6c757d;
}

.action-subtitle {
    font-size: 0.8125rem;
    color: #6c757d;
}

/* Call to action */
.action-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 0.5rem;
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
}

.action-btn {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #212529;
}

.action-cta svg {
    width: 20px;
    height: 20px;
    opacity: 0.4;
    transition: all 0.3s ease;
}

.action-card:hover .action-cta svg {
    opacity: 1;
    transform: translateX(4px);
}

/* Variantes de couleur */
.action-card-primary {
    border-color: #667eea;
}

.action-card-primary .action-icon {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.action-card-primary:hover {
    border-color: #667eea;
    background: linear-gradient(135deg, #ffffff 0%, #f0f4ff 100%);
}

.action-card-primary .action-cta svg {
    color: #667eea;
}

.action-card-secondary {
    border-color: #64748b;
}

.action-card-secondary .action-icon {
    background: linear-gradient(135deg, #64748b 0%, #475569 100%);
    color: white;
}

.action-card-secondary:hover {
    border-color: #64748b;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
}

.action-card-secondary .action-cta svg {
    color: #64748b;
}

.action-card-warning {
    border-color: #fbbf24;
    background: linear-gradient(135deg, #fffbeb 0%, #ffffff 100%);
}

.action-card-warning .action-icon {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: white;
}

.action-card-warning:hover {
    border-color: #fbbf24;
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
}

.action-card-warning .action-cta svg {
    color: #fbbf24;
}

.action-card-success {
    border-color: #10b981;
    background: linear-gradient(135deg, #ecfdf5 0%, #ffffff 100%);
}

.action-card-success .action-icon {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.action-card-success:hover {
    border-color: #10b981;
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
}

.action-card-success .action-cta svg {
    color: #10b981;
}

.action-card-success .action-badge {
    background: #10b981;
}

.action-card-success-outline {
    border-color: #10b981;
}

.action-card-success-outline .action-icon {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    color: #10b981;
}

.action-card-success-outline:hover {
    border-color: #10b981;
    background: linear-gradient(135deg, #ffffff 0%, #ecfdf5 100%);
}

.action-card-success-outline .action-cta svg {
    color: #10b981;
}

/* Responsive mobile */
@media (max-width: 768px) {
    .action-card {
        padding: 1.25rem 1rem;
    }
    
    .action-icon {
        width: 48px;
        height: 48px;
    }
    
    .action-icon svg {
        width: 24px;
        height: 24px;
    }
    
    .action-title {
        font-size: 1rem;
    }
    
    .action-amount,
    .action-price {
        font-size: 1.5rem;
    }
}

/* ============================================================================
   VALIDATION MOBILE - Sélecteur pays avec drapeaux
   ============================================================================ */

/* Container flex pour indicatif + numéro */
.phone-input-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap; /* Permet retour à la ligne sur mobile */
}

/* Mobile : bouton "Envoyer" sur nouvelle ligne */
@media (max-width: 576px) {
    .phone-input-group .btn {
        flex: 1 1 100%; /* Prend toute la largeur */
        margin-top: 0.5rem;
    }
}

/* Sélecteur de pays */
.country-select {
    min-width: 95px; /* Réduit car texte court (ex: 🇨🇭 +41) */
    height: 38px;
    padding: 0.375rem 0.5rem;
    font-size: 1rem;
    line-height: 1.5;
    color: #495057;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

/* Mobile : encore plus compact */
@media (max-width: 576px) {
    .country-select {
        min-width: 85px;
        font-size: 0.9rem;
        padding: 0.375rem 0.25rem;
    }
}

.country-select:focus {
    color: #495057;
    background-color: #fff;
    border-color: #80bdff;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Input numéro de téléphone */
.phone-input {
    flex: 1;
}

/* ===== Navigation membre - Titres sections mobile ===== */
.nav-section-title {
    padding: 1rem 1rem 0.5rem 1rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    border-top: 1px solid var(--border-color);
    margin-top: 0.5rem;
}

/* Premier titre de section : pas de bordure (déjà présente sur navbar-actions-mobile) */
.nav-section-title:first-child {
    border-top: none;
    margin-top: 0;
    padding-top: 0.5rem;
}

/* ===== Liens sans icônes - Plus d'espace vertical mobile ===== */
@media (max-width: 768px) {
    .navbar-menu .nav-link:not(:has(.icon)) {
        padding: 1rem 1rem !important;
        min-height: 48px;
        display: flex;
        align-items: center;
    }
}

/* Fix card solde + bouton CTA sur petits écrans */
@media (max-width: 768px) {
    /* Card solde : supprimer min-width sur mobile */
    .card-body > div[style*="min-width: 300px"] {
        min-width: 0 !important;
        width: 100%;
    }
    
    /* Card body : mode colonne sur mobile */
    .card-body[style*="flex-wrap"] {
        flex-direction: column !important;
        align-items: stretch !important;
    }
    
    /* Section bouton : pleine largeur */
    .card-body > div:has(.btn-lg) {
        margin-top: 1rem !important;
        width: 100%;
    }
    
    /* Bouton : pleine largeur sur mobile */
    .btn-lg {
        width: 100%;
        text-align: center;
    }
    
    /* Tableaux : scroll horizontal sur mobile */
    .table-responsive,
    .card:has(table) {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch; /* Smooth scrolling iOS */
    }
    
    /* S'assurer que le tableau ne se compresse pas */
    table {
        min-width: 600px; /* Largeur minimale pour garder la lisibilité */
    }
}

/* Très petits écrans : texte adaptable */
@media (max-width: 400px) {
    .btn-lg {
        padding: 0.75rem 1rem !important;
        font-size: 0.875rem !important;
        white-space: normal !important; /* Permet le retour à la ligne si nécessaire */
    }
    
    /* Réduire la taille du titre sur très petits écrans */
    .card h3 {
        font-size: 1.125rem !important;
    }
    
    /* Forcer le retour à la ligne avant le montant */
    .card h3 strong {
        display: block;
        margin-top: 0.25rem;
        white-space: nowrap; /* Garde "0.00 CHF" ensemble */
    }
}

/* Page compte PRO - Bandeau hover vert (override bleu du framework) */
.pro-page-container .card::before {
    background: linear-gradient(90deg, #10b981, #34d399) !important;
}

/* Page compte PRO - Card verte responsive */
@media (max-width: 768px) {
    /* Grid stats PRO : empile en colonne sur mobile */
    .card-body > div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
        text-align: center;
    }
    
    /* Tableau comparatif : format mobile compact */
    .card-body table {
        font-size: 0.8125rem;
    }
    
    .card-body table th,
    .card-body table td {
        padding: 0.75rem 0.5rem !important;
    }
    
    /* Première colonne (fonctionnalités) */
    .card-body table th:first-child,
    .card-body table td:first-child {
        font-size: 0.75rem;
        padding-left: 0.5rem !important;
    }
    
    /* Colonnes Gratuit/PRO : plus étroites */
    .card-body table th:nth-child(2),
    .card-body table th:nth-child(3),
    .card-body table td:nth-child(2),
    .card-body table td:nth-child(3) {
        width: 60px;
        font-size: 0.6875rem;
        padding-left: 0.25rem !important;
        padding-right: 0.25rem !important;
    }
}

/* Boutons longs responsive sur petits écrans */
@media (max-width: 480px) {
    /* Bouton "Voir la plaquette" : police plus petite */
    .btn:has(svg[class*="external-link"]) {
        font-size: 0.875rem !important;
        padding: 0.75rem 1rem !important;
    }
    
    /* Alternative : permettre le retour à la ligne */
    .btn {
        white-space: normal;
        line-height: 1.4;
    }
}

/* ========================
   MODE SOMBRE - CARTES MEMBRE
   ======================== */
[data-theme="dark"] .info-card {
    background: linear-gradient(135deg, #2a2a2a 0%, #1f1f1f 100%);
    border-color: #3a3a3a;
}

[data-theme="dark"] .info-card:hover {
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

[data-theme="dark"] .info-label {
    color: #9ca3af;
}

[data-theme="dark"] .info-value {
    color: #f3f4f6;
}

[data-theme="dark"] .info-subtitle {
    color: #9ca3af;
}

[data-theme="dark"] .quick-link-card {
    background: #1f1f1f;
    border-color: #3a3a3a;
}

[data-theme="dark"] .quick-link-card:hover {
    background: linear-gradient(135deg, #2a2a2a 0%, #1f1f2f 100%);
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

[data-theme="dark"] .quick-link-title {
    color: #f3f4f6;
}

[data-theme="dark"] .quick-link-subtitle {
    color: #9ca3af;
}

[data-theme="dark"] .action-card {
    background: #1f1f1f;
    border-color: #3a3a3a;
}

[data-theme="dark"] .action-card:hover {
    border-color: #667eea;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.2);
}

[data-theme="dark"] .action-card-primary {
    background: linear-gradient(135deg, #1e40af 0%, #1e3a8a 100%);
    border-color: #1e40af;
}

[data-theme="dark"] .action-card-primary:hover {
    border-color: #3b82f6;
}

[data-theme="dark"] .action-card-secondary {
    background: linear-gradient(135deg, #4b5563 0%, #374151 100%);
    border-color: #4b5563;
}

[data-theme="dark"] .action-card-secondary:hover {
    border-color: #6b7280;
}

[data-theme="dark"] .action-card-warning {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
    border-color: #d97706;
}

[data-theme="dark"] .action-card-warning:hover {
    border-color: #f59e0b;
}

[data-theme="dark"] .action-card-success {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    border-color: #059669;
}

[data-theme="dark"] .action-card-success:hover {
    border-color: #10b981;
}

[data-theme="dark"] .action-card-success-outline {
    background: #1f1f1f;
    border-color: #047857;
}

[data-theme="dark"] .action-card-success-outline:hover {
    background: linear-gradient(135deg, #1f2f26 0%, #1f1f1f 100%);
    border-color: #10b981;
}

[data-theme="dark"] .action-title {
    color: #f3f4f6;
}

[data-theme="dark"] .action-description {
    color: #d1d5db;
}

[data-theme="dark"] .action-subtitle {
    color: #9ca3af;
}

[data-theme="dark"] .action-card-success-outline .action-title,
[data-theme="dark"] .action-card-success-outline .action-description {
    color: #10b981;
}

[data-theme="dark"] .action-badge {
    background: rgba(255, 255, 255, 0.1);
    color: #f3f4f6;
}

/* ========================
   ALERTES VALIDATION (Email/SMS)
   ======================== */
.validation-alert {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 2px solid #0ea5e9;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.validation-alert-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.125rem;
    font-weight: 700;
    color: #0369a1;
    margin-bottom: 0.75rem;
}

.validation-alert-title svg {
    width: 24px;
    height: 24px;
    color: #0ea5e9;
}

.validation-alert-text {
    color: #0c4a6e;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.validation-alert-success {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border: 2px solid #10b981;
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1rem;
    margin-bottom: 1rem;
    color: #065f46;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.validation-alert-success svg {
    color: #10b981;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* Retour à la ligne sur mobile pour email/téléphone */
@media (max-width: 576px) {
    .validation-alert-success {
        display: block; /* Enlève le flex sur mobile */
    }
    
    .validation-alert-success svg {
        display: inline-block;
        vertical-align: middle;
        margin-right: 0.5rem;
    }
    
    .validation-alert-success strong {
        display: block;
        margin-top: 0.25rem;
    }
}

/* Mode sombre */
[data-theme="dark"] .validation-alert {
    background: linear-gradient(135deg, #1e3a4f 0%, #1e293b 100%);
    border-color: #0ea5e9;
}

[data-theme="dark"] .validation-alert-title {
    color: #38bdf8;
}

[data-theme="dark"] .validation-alert-title svg {
    color: #0ea5e9;
}

[data-theme="dark"] .validation-alert-text {
    color: #cbd5e1;
}

[data-theme="dark"] .validation-alert-success {
    background: linear-gradient(135deg, #064e3b 0%, #065f46 100%);
    border-color: #10b981;
    color: #6ee7b7;
}

[data-theme="dark"] .validation-alert-success svg {
    color: #34d399;
}

/* Formulaires dans alertes validation */
.validation-alert .form-label {
    font-weight: 600;
    color: #0c4a6e;
    margin-bottom: 0.5rem;
}

[data-theme="dark"] .validation-alert .form-label {
    color: #cbd5e1;
}

.validation-alert .form-control,
.validation-alert .country-select,
.validation-alert .phone-input {
    background: white;
    border: 2px solid #e0f2fe;
}

[data-theme="dark"] .validation-alert .form-control,
[data-theme="dark"] .validation-alert .country-select,
[data-theme="dark"] .validation-alert .phone-input {
    background: #1e293b;
    border-color: #334155;
    color: #f1f5f9;
}

.validation-alert .form-control:focus,
.validation-alert .country-select:focus,
.validation-alert .phone-input:focus {
    border-color: #0ea5e9;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

.validation-alert .form-text {
    color: #64748b;
    font-size: 0.875rem;
}

[data-theme="dark"] .validation-alert .form-text {
    color: #94a3b8;
}

/* Boutons dans alertes validation */
.validation-alert .btn-primary,
.validation-alert .btn-success {
    padding: 0.5rem 1.5rem !important;
    font-weight: 600;
    box-sizing: border-box !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
}

.validation-alert .btn-primary {
    background: #0ea5e9 !important;
    border-color: #0ea5e9 !important;
    color: white !important;
}

.validation-alert .btn-primary:hover {
    background: #0284c7 !important;
    border-color: #0284c7 !important;
}

.validation-alert .btn-success {
    background: #10b981 !important;
    border-color: #10b981 !important;
    color: white !important;
}

.validation-alert .btn-success:hover {
    background: #059669 !important;
    border-color: #059669 !important;
}

[data-theme="dark"] .validation-alert .btn-primary {
    background: #0ea5e9 !important;
    border-color: #0ea5e9 !important;
}

[data-theme="dark"] .validation-alert .btn-primary:hover {
    background: #38bdf8 !important;
    border-color: #38bdf8 !important;
}

[data-theme="dark"] .validation-alert .btn-success {
    background: #10b981 !important;
    border-color: #10b981 !important;
}

[data-theme="dark"] .validation-alert .btn-success:hover {
    background: #34d399 !important;
    border-color: #34d399 !important;
}

.validation-alert .btn-outline-secondary {
    border-color: #64748b !important;
    color: #64748b !important;
    background: transparent !important;
}

.validation-alert .btn-outline-secondary:hover {
    background: #64748b !important;
    color: white !important;
}

[data-theme="dark"] .validation-alert .btn-outline-secondary {
    border-color: #94a3b8 !important;
    color: #94a3b8 !important;
}

[data-theme="dark"] .validation-alert .btn-outline-secondary:hover {
    background: #94a3b8 !important;
    color: #1e293b !important;
}

.validation-alert .btn-outline-warning {
    border-color: #f59e0b !important;
    color: #f59e0b !important;
    background: transparent !important;
    padding: 0.25rem 0.75rem !important;
    font-size: 0.875rem !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
}

.validation-alert .btn-outline-warning:hover {
    background: #f59e0b !important;
    border-color: #f59e0b !important;
    color: white !important;
}

[data-theme="dark"] .validation-alert .btn-outline-warning {
    border-color: #fbbf24 !important;
    color: #fbbf24 !important;
}

[data-theme="dark"] .validation-alert .btn-outline-warning:hover {
    background: #fbbf24 !important;
    border-color: #fbbf24 !important;
    color: #1e293b !important;
}

/* Liens dans alertes validation */
.validation-alert a {
    color: #0ea5e9;
    text-decoration: underline;
}

.validation-alert a:hover {
    color: #0284c7;
}

[data-theme="dark"] .validation-alert a {
    color: #38bdf8;
}

[data-theme="dark"] .validation-alert a:hover {
    color: #7dd3fc;
}

/* Liens dans cartes action */
.action-card a,
.info-card a,
.quick-link-card a {
    color: #0ea5e9;
    text-decoration: none;
}

.action-card a:hover,
.info-card a:hover,
.quick-link-card a:hover {
    color: #0284c7;
    text-decoration: underline;
}

[data-theme="dark"] .action-card a,
[data-theme="dark"] .info-card a,
[data-theme="dark"] .quick-link-card a {
    color: #38bdf8;
}

[data-theme="dark"] .action-card a:hover,
[data-theme="dark"] .info-card a:hover,
[data-theme="dark"] .quick-link-card a:hover {
    color: #7dd3fc;
}

/* Action buttons et textes dans liens */
.action-card a .action-btn,
.action-card a .action-description,
.action-card a .action-subtitle {
    color: inherit !important; /* Hérite de la couleur du parent <a> */
}

[data-theme="dark"] .action-card a .action-btn,
[data-theme="dark"] .action-card a .action-description,
[data-theme="dark"] .action-card a .action-subtitle {
    color: inherit !important;
}

/* Override direct pour .action-btn en mode sombre */
[data-theme="dark"] .action-btn {
    color: #f3f4f6 !important;
}

[data-theme="dark"] .action-card a .action-btn {
    color: #38bdf8 !important; /* Bleu clair dans les liens */
}

/* ========================
   PAGES CMS JOOMIL.CH - Spécificités projet
   ======================== */

/* --- Couleurs badges annonces Joomil --- */
.cms-tarif-star {
    background: #fef2f2;
    border-color: #FC787D !important;
}

.cms-tarif-star h3,
.cms-tarif-star .cms-price {
    color: #FC787D;
}

.cms-tarif-flash {
    background: #eff6ff;
    border-color: #3b82f6 !important;
}

.cms-tarif-flash h3,
.cms-tarif-flash .cms-price {
    color: #3b82f6;
}

.cms-tarif-smile {
    background: #fefce8;
    border-color: #eab308 !important;
}

.cms-tarif-smile h3,
.cms-tarif-smile .cms-price {
    color: #eab308;
}

/* Liste puces avec croix pour features absentes */
.cms-card ul li.disabled:before {
    content: "\2717";  /* Unicode ballot X (✗) - Plus fiable que UTF-8 */
    color: #dc2626;
}

/* --- Warning érotique (ID 10) --- */
.cms-warning-card {
    border-color: #f97316 !important;
}

.cms-warning-card h3 {
    color: #f97316;
    margin-bottom: 1rem;
}

/* --- Contact (ID 40) --- */
.cms-contact-address {
    background: #f9fafb;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1.5rem 0;
}

.cms-contact-address h3 {
    margin-top: 0;
    color: #1f2937;
}

/* --- Publicité (ID 70) --- */
.cms-pub-box {
    background: #eff6ff;
    padding: 2rem;
    border-radius: 12px;
    border: 2px solid #3b82f6;
    margin: 2rem 0;
}

.cms-pub-price {
    color: #dc2626;
    font-size: 1.75rem;
    font-weight: bold;
}

/* CTA box pour appels à l'action (Passerelle, etc.) */
.cms-cta-box {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2.5rem;
    border-radius: 12px;
    margin: 2rem 0;
    text-align: center;
}

.cms-cta-box h3 {
    color: white;
    margin: 0 0 1rem 0;
    font-size: 1.3rem;
}

.cms-cta-box p {
    color: rgba(255, 255, 255, 0.95);
    margin: 0.5rem 0;
}

.cms-cta-box .btn-primary {
    background: white !important;
    color: #667eea !important;
    border-color: white !important;
}

.cms-cta-box .btn-primary:hover {
    background: rgba(255, 255, 255, 0.9) !important;
    color: #667eea !important;
    transform: translateY(-2px);
}

/* Mode sombre - CMS Joomil */
[data-theme="dark"] .cms-tarif-star {
    background: rgba(252, 120, 125, 0.1);
}

[data-theme="dark"] .cms-tarif-flash {
    background: rgba(59, 130, 246, 0.1);
}

[data-theme="dark"] .cms-tarif-smile {
    background: rgba(234, 179, 8, 0.1);
}

[data-theme="dark"] .cms-warning-card {
    background: rgba(249, 115, 22, 0.1);
}

[data-theme="dark"] .cms-contact-address,
[data-theme="dark"] .cms-pub-box {
    background: var(--gray-800);
    border-color: var(--gray-600);
}

/* ============================================================================
   PAGES LÉGALES (ID 80, 85) - Styles spécifiques Joomil
   ============================================================================ */
/* 
   Note: Les styles de base .legal-content et .legal-toc sont maintenant 
   dans framework/public/assets/css/core.css
   
   Seuls les overrides et features UX spécifiques restent ici.
*/

/* Smooth scroll vers ancres (UX spécifique Joomil) */
html {
    scroll-behavior: smooth;
}

/* Offset pour ancres (compense header sticky ~80px + marge confort) */
.legal-content h3[id],
.legal-content h2[id],
.faq-item h2[id] {
    scroll-margin-top: 6rem; /* Header (80px) + Marge visuelle (32px) = 112px */
}

/* Effet visuel : Highlight temporaire sur ancre ciblée */
.legal-content h3[id]:target,
.legal-content h2[id]:target,
.faq-item h2[id]:target {
    animation: highlight-anchor 2s ease;
}

@keyframes highlight-anchor {
    0% {
        background-color: var(--primary-light, rgba(102, 126, 234, 0.15));
        padding-left: 1rem;
        margin-left: -1rem;
        border-radius: 4px;
    }
    100% {
        background-color: transparent;
    }
}

/* Mode sombre - Pages légales */
[data-theme="dark"] .legal-toc {
    background: var(--gray-800);
    border-left-color: var(--primary);
}

/* ============================================================================
   FAQ (ID 95)
   ============================================================================ */

.faq-content {
    margin-top: 2rem;
}

.faq-item {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color, #e5e7eb);
}

.faq-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.faq-item h2 {
    font-size: 1.3rem;
    margin: 0 0 1rem 0;
    color: var(--text-primary);
    font-weight: 600;
}

.faq-item p {
    margin-bottom: 1rem;
    line-height: 1.7;
}

.faq-item ul {
    margin: 1rem 0 1rem 1.5rem;
}

.faq-item li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

/* Liens modernes dans FAQ et CMS (évite style années 90) */
/* IMPORTANT: Exclure les boutons (.btn) de ces règles */
.faq-content a:not(.btn),
.cms-body a:not(.btn),
.legal-content a:not(.btn) {
    color: var(--primary, #667eea);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all var(--transition-fast, 150ms ease);
    font-weight: 500;
    padding: 0 2px; /* Petite zone cliquable */
    border-radius: 2px;
}

.faq-content a:not(.btn):hover,
.cms-body a:not(.btn):hover,
.legal-content a:not(.btn):hover {
    color: var(--primary-dark, #5a67d8);
    border-bottom-color: var(--primary, #667eea);
    background: rgba(102, 126, 234, 0.05); /* Fond léger au hover */
}

/* CRITIQUE : Garde même couleur après visite (pas de violet) */
.faq-content a:not(.btn):visited,
.cms-body a:not(.btn):visited,
.legal-content a:not(.btn):visited {
    color: var(--primary, #667eea) !important;
}

.faq-content a:not(.btn):visited:hover,
.cms-body a:not(.btn):visited:hover,
.legal-content a:not(.btn):visited:hover {
    color: var(--primary-dark, #5a67d8) !important;
    background: rgba(102, 126, 234, 0.05);
}

/* Mode sombre - FAQ */
[data-theme="dark"] .faq-item {
    border-bottom-color: var(--gray-700);
}

/* ============================================================================
   FOOTER COMPLET - Fat Footer Desktop + Accordéon Mobile
   ============================================================================ */

/* Footer base */
.footer {
    background: var(--bg-primary);
    border-top: 1px solid var(--border-color, #e5e7eb);
    margin-top: 3rem;
    padding: 0;  /* Override core.css padding pour gérer manuellement */
}

.footer .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Desktop : Fat Footer 4 colonnes */
.footer-columns {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
    padding: 2rem 0 0 0;  /* Pas de padding-bottom, margin-top du copyright gère l'espacement */
}

.footer-column {
    min-width: 0;
}

.footer-heading {
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-primary);
    margin: 0 0 1rem 0;
}

.footer-links-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links-list li {
    margin-bottom: 0.75rem;
}

.footer-links-list a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9375rem;
    transition: color 0.2s ease;
}

.footer-links-list a:hover {
    color: var(--primary, #667eea);
}

/* Mobile : Accordéon caché sur desktop */
.footer-accordion {
    display: none;
}

/* Mobile : Accordéon maître et éléments mobiles cachés sur desktop */
.footer-master-accordion,
.footer-mobile-compact,
.footer-mobile-header,
.footer-copyright-inline {
    display: none;
}

/* Copyright bar (toujours visible) */
.footer-copyright {
    text-align: center;
    padding: 1.5rem 0;
    border-top: 1px solid var(--border-color, #e5e7eb);
    margin-top: 1.0rem;
}

.footer-copyright p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* ============================================================================
   FOOTER MOBILE - Accordéon Compact
   ============================================================================ */

@media (max-width: 768px) {
    /* Cacher fat footer desktop */
    .footer-columns {
        display: none;
    }
    
    /* Cacher copyright desktop */
    .footer-copyright-desktop {
        display: none;
    }
    
    /* Afficher footer mobile compact */
    .footer-mobile-compact {
        display: block;
    }
    
    /* Header mobile : Bouton + Copyright inline */
    .footer-mobile-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
        padding: 1rem 0;
        border-bottom: 1px solid var(--border-color, #e5e7eb);
    }
    
    .footer-master-toggle {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        padding: 0;
        background: none;
        border: none;
        cursor: pointer;
        font-size: 0.9375rem;
        font-weight: 600;
        color: var(--text-primary);
        transition: color 0.2s ease;
        flex-shrink: 0;
    }
    
    .footer-master-toggle:hover {
        color: var(--primary, #667eea);
    }
    
    .footer-master-toggle svg {
        width: 18px;
        height: 18px;
        color: var(--text-secondary);
        transition: transform 0.3s ease;
        flex-shrink: 0;
    }
    
    .footer-mobile-compact.active .footer-master-toggle svg {
        transform: rotate(180deg);
    }
    
    /* Copyright inline à droite (visible par défaut) */
    .footer-copyright-inline {
        display: block;
        text-align: right;
        flex-shrink: 1;
        min-width: 0;
    }
    
    .footer-copyright-inline p {
        margin: 0;
        color: var(--text-secondary);
        font-size: 0.75rem;
        line-height: 1.3;
    }
    
    /* Quand master ouvert : cacher copyright inline */
    .footer-mobile-compact.active .footer-copyright-inline {
        display: none;
    }
}

/* ============================================================================
   PAGE HISTORIQUE - Timeline et présentation
   ============================================================================ */

.historique-content {
    max-width: 900px;
    margin: 0 auto;
}

.historique-content .intro-section {
    margin-bottom: 3rem;
    padding: 2rem;
    background: linear-gradient(135deg, var(--primary-light, #f3f4f6) 0%, #ffffff 100%);
    border-radius: 12px;
    border-left: 4px solid var(--primary, #667eea);
}

.historique-content .lead {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-primary);
    margin: 0;
}

/* Timeline verticale */
/* Supprimé : utilisation de la timeline du core framework */

/* Sections valeurs et communauté */
.values-section,
.community-section,
.future-section {
    margin: 3rem 0;
    padding: 2.5rem;
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid var(--border-color, #e5e7eb);
}

.values-section h2,
/* Hiérarchie correcte H1 > H2 */
.cms-content h1 {
    font-size: 2rem !important;
}

.community-section h2 {
    margin: 0 0 2rem 0;
    color: var(--text-primary);
    font-size: 1.5rem;
}

/* Aération entre paragraphes pour meilleure lisibilité */
.community-section p {
    margin-bottom: 1.5rem;
}

.values-section h3,
.community-section h3,
.future-section h3 {
    margin: 0 0 1.5rem 0;
    color: var(--text-primary);
    font-size: 1.5rem;
}

/* Override feature-card du framework pour section valeurs (CMS 110) */
.values-section .feature-card {
    background: linear-gradient(135deg, #f0f3ff 0%, #f5f0ff 100%);
    border: 1px solid #d0d9ff;
}

.values-section .feature-card:hover {
    background: linear-gradient(135deg, #e8edff 0%, #f0e8ff 100%);
    border-color: #a5b4fc;
}

/* Section CTA */
.cta-section {
    margin: 3rem 0;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, var(--primary, #667eea) 0%, var(--secondary, #764ba2) 100%);
    border-radius: 12px;
    text-align: center;
    color: #ffffff;
}

.cta-section h3 {
    margin: 0 0 1rem 0;
    color: #ffffff;
    font-size: 1.75rem;
}

.cta-section p {
    margin: 0 0 2rem 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.125rem;
    line-height: 1.6;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-buttons .btn {
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cta-buttons .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.cta-buttons .btn-primary {
    background: #ffffff;
    color: var(--primary, #667eea);
}

.cta-buttons .btn-secondary {
    background: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
}

/* Responsive */
@media (max-width: 768px) {
    .timeline::before {
        left: 20px;
    }
    
    .timeline-item {
        padding-left: 50px;
    }
    
    .timeline-date {
        position: static;
        width: auto;
        text-align: left;
        padding: 0 0 0.5rem 0;
        font-size: 1rem;
    }
    
    .timeline-date::after {
        left: -30px;
        right: auto;
        top: 2px;
        width: 16px;
        height: 16px;
    }
    
    
    .cta-section {
        padding: 2rem 1rem;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .cta-buttons .btn {
        width: 100%;
    }
}

/* Copyright desktop mobile : caché par défaut */
    .footer-copyright-desktop {
        display: none;
    }
    
    /* Quand master ouvert : afficher copyright en bas */
    .footer-mobile-compact.active ~ .footer-copyright-desktop {
        display: block;
        padding: 0 0 1.25rem 0;
        margin-top: 1rem;
        border-top: none;
    }
    
    .footer-mobile-compact.active ~ .footer-copyright-desktop p {
        font-size: 0.8125rem;
    }
    
    /* Contenu maître caché par défaut */
    .footer-master-content {
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition: all 0.4s ease;
    }
    
    .footer-mobile-compact.active .footer-master-content {
        max-height: 2000px;
        opacity: 1;
    }
    
    /* Afficher accordéon secondaire à l'intérieur */
    .footer-accordion {
        display: block;
        padding: 0;
    }
    
    .footer-section {
        border-bottom: 1px solid var(--border-color, #e5e7eb);
    }
    
    .footer-toggle {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        padding: 1rem 0;
        background: none;
        border: none;
        cursor: pointer;
        font-size: 0.9375rem;
        font-weight: 600;
        color: var(--text-primary);
        text-align: left;
        transition: color 0.2s ease;
    }
    
    .footer-toggle:hover {
        color: var(--primary, #667eea);
    }
    
    .footer-toggle svg {
        width: 20px;
        height: 20px;
        color: var(--text-secondary);
        transition: transform 0.3s ease;
        flex-shrink: 0;
    }
    
    .footer-section.active .footer-toggle svg {
        transform: rotate(180deg);
    }
    
    /* Liste cachée par défaut */
    .footer-section .footer-links-list {
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition: all 0.3s ease;
        padding-left: 0.5rem;
    }
    
    .footer-section.active .footer-links-list {
        max-height: 500px;
        opacity: 1;
        padding-bottom: 1rem;
    }
    
    .footer-section .footer-links-list li {
        margin-bottom: 0.75rem;
    }
    
    .footer-section .footer-links-list a {
        font-size: 0.875rem;
    }
    
    /* Copyright desktop caché sur mobile (inline version utilisée) */
    .footer-copyright-desktop {
        display: none;
    }
    
    /* Breakpoint très petits écrans : stack vertical */
    /* TEMPORAIREMENT DÉSACTIVÉ - Forcer inline sur tous les écrans
    @media (max-width: 360px) {
        .footer-mobile-header {
            flex-direction: column;
            align-items: stretch;
            gap: 0.75rem;
        }
        
        .footer-copyright-inline {
            text-align: center;
        }
        
        .footer-copyright-inline p {
            font-size: 0.7rem;
        }
    }
    */

/* Mode sombre - Footer */
[data-theme="dark"] .footer-columns,
[data-theme="dark"] .footer-accordion,
[data-theme="dark"] .footer-copyright,
[data-theme="dark"] .footer-master-accordion {
    border-color: var(--gray-700);
}

[data-theme="dark"] .footer-heading {
    color: #f3f4f6;
}

[data-theme="dark"] .footer-links-list a {
    color: #d1d5db;
}

[data-theme="dark"] .footer-links-list a:hover {
    color: #667eea;
}

[data-theme="dark"] .footer-toggle,
[data-theme="dark"] .footer-master-toggle {
    color: #f3f4f6;
}

[data-theme="dark"] .footer-toggle:hover,
[data-theme="dark"] .footer-master-toggle:hover {
    color: #667eea;
}

[data-theme="dark"] .footer-copyright p {
    color: #9ca3af;
}

/* ============================================================================
   CMS CONTENT - STYLES CONTENU
   ============================================================================ */

/* Reset padding pour listes dans CMS */
.cms-body ul {
    padding-left: 1rem;
}

/* ============================================================================
   PRICING CARDS JOOMIL - DESIGN CUSTOM
   ============================================================================ */

/* Grille responsive 3 colonnes */
.pricing-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

@media (max-width: 768px) {
    .pricing-cards-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* Base card commune */
.pricing-card-joomil {
    position: relative;
    padding: 2rem;
    border-radius: var(--radius-lg);
    border: 2px solid transparent;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.pricing-card-joomil:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

/* Variantes par type */
.card-smile {
    background: #fefce8;
    border-color: #eab308;
    border-width: 3px;
}

.card-flash {
    background: #eff6ff;
    border-color: #3b82f6;
}

.card-star {
    background: #fef2f2;
    border-color: #FC787D;
    border-width: 3px;
}

/* Badges flottants */
.pricing-badge-joomil {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: white;
}

.badge-smile {
    background: #eab308;
}

.badge-star {
    background: #FC787D;
}

/* Titres avec icônes */
.pricing-title-joomil {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin: 1rem 0 0.5rem;
    font-size: 1.25rem;
}

.card-smile .pricing-title-joomil {
    color: #eab308;
}

.card-flash .pricing-title-joomil {
    color: #3b82f6;
}

.card-star .pricing-title-joomil {
    color: #FC787D;
}

/* Emoji spécial pour SMILE */
.emoji-icon {
    font-size: 1.5rem;
}

/* Sous-titre */
.pricing-subtitle {
    text-align: center;
    color: var(--gray-600);
    margin-bottom: 1.0rem;
}

/* Liste features */
.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
    flex-grow: 1;
}

.pricing-features li {
    padding: 0.25rem 0;
    padding-left: 2rem;
    position: relative;
    display: block;
    line-height: 1.4;
}

/* Spécificité plus forte pour override framework */
.pricing-cards-grid .pricing-features li {
    border-bottom: none;
    border: none;
}

.pricing-features li:last-child {
    padding-bottom: 0;
}

/* Alternative subtile : séparateur uniquement pour les features highlight */
/*
.pricing-features li.feature-highlight + li {
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}
*/

/* Ou espacement plus généreux sans bordures */
/*
.pricing-features li {
    padding: 0.875rem 0;
}
*/

.pricing-features li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.4rem;
    width: 20px;
    height: 20px;
    background-image: url('../images/check-icon.svg');
    background-repeat: no-repeat;
    background-size: contain;
}

.feature-highlight {
    font-weight: 600;
}

/* Prix */
.pricing-price-joomil {
    text-align: center;
    margin: 1.5rem 0;
}

.card-smile .pricing-price-joomil {
    color: #eab308;
}

.card-flash .pricing-price-joomil {
    color: #3b82f6;
}

.card-star .pricing-price-joomil {
    color: #FC787D;
}

.price-text {
    font-size: 2rem;
    font-weight: 700;
}

.currency {
    font-size: 1.25rem;
    font-weight: 500;
    margin-right: 0.25rem;
    color: inherit;
}

.price-amount {
    font-size: 2rem;
    font-weight: 700;
    color: inherit;
}

/* CTA */
.pricing-cta {
    margin-top: auto;
}

.pricing-cta .btn {
    width: 100%;
    font-weight: 600;
}

.btn-smile {
    background: #eab308;
    border-color: #eab308;
    color: white;
}

.btn-smile:hover {
    background: #ca8a04;
    border-color: #ca8a04;
}

.btn-star {
    background: #FC787D;
    border-color: #FC787D;
    color: white;
}

.btn-star:hover {
    background: #e11d48;
    border-color: #e11d48;
}

/* Mode sombre */
[data-theme="dark"] .card-smile {
    background: rgba(234, 179, 8, 0.1);
    border-color: #eab308;
}

[data-theme="dark"] .card-flash {
    background: rgba(59, 130, 246, 0.1);
    border-color: #3b82f6;
}

[data-theme="dark"] .card-star {
    background: rgba(252, 120, 125, 0.1);
    border-color: #FC787D;
}


