:root {
    --primary-orange: #ff4b00;
    --pure-white: #ffffff;
    --secondary-purple: #4e006e;
    --black: #000000;
    --light-gray: #f8f9fa;
    --border-gray: #e9ecef;
    --text-muted: #666666;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

body {
    background-color: var(--pure-white);
    color: var(--black);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Navbar (reused from main) */
.navbar {
    background-color: var(--pure-white);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    height: 70px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border-gray);
    transition: background-color 0.3s ease;
}

.nav-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    max-height: 40px;
    width: auto;
}

/* Header Section */
.subpage-header {
    margin-top: 70px;
    padding: 60px 20px 40px;
    background: linear-gradient(160deg, #f3eaf7 0%, var(--light-gray) 60%);
    text-align: center;
    border-bottom: 1px solid var(--border-gray);
}

.header-content {
    max-width: 800px;
    margin: 0 auto;
}

.app-icon-large {
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
    object-fit: contain;
}

.subpage-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--secondary-purple);
    margin-bottom: 10px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    color: var(--primary-orange);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 30px;
    transition: transform 0.2s ease;
}

.back-link:hover {
    transform: translateX(-5px);
}

.back-link svg {
    margin-right: 8px;
    width: 18px;
    height: 18px;
    fill: currentColor;
}

/* FAQ Accordion Section */
.faq-container {
    max-width: 800px;
    margin: 40px auto 80px;
    padding: 0 20px;
    flex: 1;
}

.faq-item {
    margin-bottom: 15px;
    border: 1px solid var(--border-gray);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: var(--primary-orange);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

summary {
    padding: 20px 25px;
    font-weight: 600;
    font-size: 1.05rem;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--pure-white);
    transition: background-color 0.3s ease;
}

summary::-webkit-details-marker {
    display: none;
}

summary::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--primary-orange);
    transition: transform 0.3s ease;
}

details[open] summary::after {
    transform: rotate(45deg);
    color: var(--secondary-purple);
}

details[open] summary {
    background-color: var(--light-gray);
    border-bottom: 1px solid var(--border-gray);
}

.faq-content {
    padding: 20px 25px;
    line-height: 1.6;
    color: var(--text-muted);
    font-size: 0.95rem;
    background-color: var(--pure-white);
}

/* Footer (reused) */
.footer {
    padding: 30px 0;
    text-align: center;
    background-color: var(--light-gray);
    border-top: 1px solid var(--border-gray);
}

.footer p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Search placeholder fix */
.search-container {
    display: flex;
    position: relative;
    max-width: 400px;
    width: 100%;
}

.search-bar {
    width: 100%;
    padding: 12px 100px 12px 20px;
    border: 1px solid var(--border-gray);
    border-radius: 20px;
    font-size: 0.9rem;
    font-family: 'Montserrat', sans-serif;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 255, 255, 0.8);
}

.search-bar:focus {
    outline: none;
    border-color: var(--primary-orange);
    box-shadow: 0 0 0 4px rgba(255, 75, 0, 0.1);
    background: #fff;
}

.voice-search-btn {
    position: absolute;
    right: 48px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--black);
    cursor: pointer;
    padding: 6px;
    border-radius: 50%;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.voice-search-btn:hover {
    color: var(--primary-orange);
    background: rgba(255, 75, 0, 0.05);
}

.voice-search-btn.listening {
    color: #ff0000;
    animation: pulseMic 1.5s infinite;
}

@keyframes pulseMic {
    0% { transform: translateY(-50%) scale(1); box-shadow: 0 0 0 0 rgba(255, 0, 0, 0.4); }
    70% { transform: translateY(-50%) scale(1.1); box-shadow: 0 0 0 8px rgba(255, 0, 0, 0); }
    100% { transform: translateY(-50%) scale(1); box-shadow: 0 0 0 0 rgba(255, 0, 0, 0); }
}

.search-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--primary-orange);
    cursor: pointer;
    padding: 5px;
    transition: transform 0.2s ease;
}

.search-btn:hover {
    transform: translateY(-50%) scale(1.1);
}

.search-btn svg {
    width: 16px;
    height: 16px;
    fill: var(--primary-orange);
}

/* Glassmorphism Pill Button on Nav */
.btn-contact {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: 50px;
    background: rgba(255, 75, 0, 0.08);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 75, 0, 0.2);
    color: var(--primary-orange);
    text-decoration: none;
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 75, 0, 0.05);
}

.btn-contact:hover {
    background: rgba(255, 75, 0, 0.15);
    border-color: rgba(255, 75, 0, 0.3);
    box-shadow: 0 6px 20px rgba(255, 75, 0, 0.12);
    transform: translateY(-2px);
}

.share-btn {
    background: none;
    border: 1px solid var(--border-gray);
    color: var(--text-muted);
    padding: 6px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    transition: all 0.2s ease;
    position: relative;
}

.share-btn:hover {
    color: var(--primary-orange);
    border-color: var(--primary-orange);
    background: rgba(255, 75, 0, 0.05);
}

.share-btn svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.share-tooltip {
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(78, 0, 110, 0.08); /* Violet trÃ¨s lÃ©ger translucide */
    color: var(--secondary-purple); /* Violet profond du site */
    padding: 6px 14px;
    border-radius: 50px; /* Forme pilule plus Ã©purÃ©e */
    font-size: 0.8rem;
    font-weight: 700;
    white-space: nowrap;
    opacity: 0;
    display: block;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 100;
    backdrop-filter: blur(8px); /* Effet verre premium */
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(78, 0, 110, 0.1);
}

.share-btn.copied .share-tooltip {
    opacity: 1;
    transform: translateX(-50%) translateY(-8px);
}

/* Breadcrumbs */
.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.breadcrumbs a {
    color: var(--primary-orange);
    text-decoration: none;
    font-weight: 500;
}

.breadcrumbs span {
    color: #999;
}

/* Feedback Section */
.feedback-section {
    padding-top: 20px;
    margin-top: 15px;
    border-top: 1px dashed var(--border-gray);
    display: flex;
    align-items: center;
    gap: 15px;
}

.feedback-section span {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--black);
}

.feedback-btn {
    padding: 6px 15px;
    border-radius: 50px;
    border: 1px solid var(--border-gray);
    background: white;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.feedback-btn:hover {
    border-color: var(--primary-orange);
    color: var(--primary-orange);
}

/* Related Articles */
.related-articles {
    max-width: 850px;
    margin: 40px auto 60px;
    padding: 0 20px;
    border-top: 1px solid var(--border-gray);
    padding-top: 40px;
}

.related-articles h2 {
    font-size: 1.3rem;
    margin-bottom: 25px;
    color: var(--secondary-purple);
}

.articles-links {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.article-chip {
    padding: 10px 20px;
    background: var(--light-gray);
    border-radius: 12px;
    text-decoration: none;
    color: var(--black);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.article-chip:hover {
    background: white;
    border-color: var(--primary-orange);
    color: var(--primary-orange);
    transform: translateY(-2px);
}

/* No Results State (Subpage) */
#noResults {
    display: none;
    margin: 40px 0;
    padding: 30px;
    background: var(--light-gray);
    border-radius: 20px;
    text-align: center;
    border: 1px dashed var(--border-gray);
}

#noResults.visible {
    display: block;
}

#noResults p {
    font-size: 1rem;
    color: var(--text-muted);
}

/* Highlighting */
mark {
    background-color: rgba(255, 75, 0, 0.2);
    color: var(--primary-orange);
    font-weight: 600;
    padding: 0 2px;
    border-radius: 4px;
}

/* Inherit Modal & Back to Top from main for subpages */
/* (Wait, I'll copy the styles to ensure they work on subpages too) */

/* Back to Top Button */
#backToTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-orange);
    color: var(--pure-white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(255, 75, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 2000;
    font-size: 24px;
    line-height: 1;
}

#backToTop.visible {
    opacity: 1;
    visibility: visible;
}

#backToTop:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(255, 75, 0, 0.4);
    background-color: #ff5a1a;
}





/* Search Suggestions Dropdown (Subpages) */
.search-suggestions {
    position: absolute;
    top: 100%;
    left: 20px; right: 20px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    margin-top: 5px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(5px);
    transition: all 0.2s ease;
    z-index: 2000;
    overflow: hidden;
    border: 1px solid var(--border-gray);
}

.search-suggestions.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.suggestion-header {
    padding: 10px 15px 6px;
    font-size: 0.65rem;
    font-weight: 800;
    color: #bbb;
    text-transform: uppercase;
    background: rgba(0,0,0,0.02);
    border-bottom: 1px solid var(--border-gray);
}

.suggestion-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 15px;
    text-decoration: none;
    border-bottom: 1px solid var(--border-gray);
    transition: background 0.2s ease;
    cursor: pointer;
}

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

.suggestion-item:hover {
    background: var(--light-gray);
}

.suggestion-icon {
    font-size: 1rem;
    background: linear-gradient(135deg, var(--primary-orange), var(--secondary-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text; /* standard property for compatibility */
    display: flex;
    align-items: center;
}

.suggestion-text {
    display: flex;
    flex-direction: column;
}

.suggestion-main-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--black);
    line-height: 1.2;
}

.suggestion-main-title.orange {
    color: var(--primary-orange);
}

.suggestion-sub-title {
    font-size: 0.8rem;
    color: #777;
    line-height: 1.4;
    opacity: 0.9;
}

/* Hybrid AI CTA */
.hybrid-ai-cta {
    margin-top: 20px;
    padding: 20px;
    background: linear-gradient(135deg, #fff, #fff3ee);
    border: 1px dashed var(--primary-orange);
    border-radius: 12px;
    text-align: center;
    animation: slideUp 0.5s ease;
}

.btn-ask-ai {
    margin-top: 15px;
    padding: 10px 20px;
    background: var(--primary-orange);
    color: #fff;
    border: none;
    border-radius: 20px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-ask-ai:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 8px 15px rgba(255, 75, 0, 0.2);
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* TTS Button Style */
.tts-btn {
    position: absolute;
    top: 0;
    right: 0;
    background: none;
    border: none;
    color: #ccc;
    cursor: pointer;
    padding: 4px;
    transition: all 0.2s ease;
    border-radius: 4px;
}

.tts-btn:hover {
    color: var(--secondary-purple);
    background: rgba(78, 0, 110, 0.05);
}

.tts-btn.speaking {
    color: var(--primary-orange);
    animation: pulseScale 1s infinite;
}

@keyframes pulseScale {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* Premium Animations */
.faq-item {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.faq-item:hover {
    transform: translateX(5px);
    box-shadow: -5px 5px 15px rgba(0,0,0,0.05) !important;
}

.article-chip {
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.article-chip:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    background: var(--primary-orange);
    color: #fff;
}

.history-item .suggestion-icon {
    color: #999;
    background: none;
    -webkit-text-fill-color: initial;
}



@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Section Cas Pratiques Premium */
.cas-pratiques-section {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 2px solid #eee;
}

.cas-pratiques-section h2 {
    color: var(--secondary-purple);
    font-size: 1.8rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.cas-pratiques-section h2::before {
    content: 'ðŸ’¡';
    font-size: 1.5rem;
}

.cas-pratiques-section .faq-item {
    background: #fff;
    border-left: 5px solid var(--primary-orange);
}

.cas-pratiques-section summary {
    font-weight: 700;
    color: var(--secondary-purple);
}

.faq-screenshot {
    max-width: 100%;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin: 20px 0;
    border: 1px solid #eee;
    display: block;
}

.screenshot-wrapper {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 16px;
    margin: 15px 0;
}

/* Mobile responsive refinements */
@media (max-width: 850px) {
    .navbar {
        height: auto;
        padding: 15px 0;
    }
    .nav-container {
        flex-wrap: wrap;
        gap: 15px;
        padding: 0 20px;
    }
    .logo-container {
        flex: 1;
        min-width: 40%;
    }
    .contact-container {
        flex: 1;
        min-width: 40%;
        display: flex;
        justify-content: flex-end;
    }
    .btn-contact {
        padding: 10px 18px;
        font-size: 0.85rem;
    }
    .search-container {
        flex: 100%;
        max-width: 100%;
        order: 3;
        margin: 0;
    }
    .subpage-header {
        margin-top: 130px;
    }
}

@media (max-width: 768px) {
    .search-bar {
        font-size: 0.95rem;
        padding: 14px 45px 14px 20px;
    }

    .subpage-title {
        font-size: 1.7rem;
    }

    .faq-container {
        padding: 0 15px;
    }
    
    summary {
        padding: 15px 20px;
        font-size: 1rem;
    }
    
    .faq-content {
        padding: 15px 20px;
    }
}

@media (max-width: 600px) {
    .btn-contact {
        padding: 8px 12px;
        font-size: 0.75rem;
    }
    .logo {
        max-height: 30px;
    }
}
/* Premium Contact Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(78, 0, 110, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeInModal 0.3s forwards;
}

.modal-content {
    background: #fff;
    width: 95%;
    max-width: 1000px;
    height: 90vh;
    border-radius: 28px;
    box-shadow: 0 40px 120px -20px rgba(0, 0, 0, 0.35);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transform: scale(0.96) translateY(20px);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

.modal.active .modal-content {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.close-modal {
    position: absolute;
    right: 25px;
    top: 20px;
    font-size: 32px;
    font-weight: 300;
    color: var(--black);
    cursor: pointer;
    z-index: 10;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
}

.close-modal:hover {
    background: var(--primary-orange);
    color: #fff;
    transform: rotate(90deg);
}

.modal-header {
    padding: 40px 40px 25px;
    background: linear-gradient(135deg, #fff 0%, #fef8ff 100%);
    border-bottom: 1px solid #f1f5f9;
}

.modal-header h2 {
    color: var(--primary-purple);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
}

.modal-header p {
    color: #64748b;
    font-size: 1rem;
    max-width: 600px;
}

.modal-body {
    flex-grow: 1;
    position: relative;
    background: #f8fafc;
    padding: 20px;
    overflow: hidden;
}

#contactIframe {
    width: 100%;
    height: 100%;
    border: none;
    background: transparent;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

@keyframes fadeInModal {
    from { opacity: 0; }
    to { opacity: 1; }
}

@media (max-width: 768px) {
    .modal-content {
        width: 100%;
        height: 100%;
        max-height: 100vh;
        border-radius: 0;
    }
    .modal-header {
        padding: 30px 20px 20px;
    }
    .modal-header h2 {
        font-size: 1.5rem;
    }
}
