/* ============================================
   PrestaBlog Documentation - Styles globaux
   ============================================ */

/* Reset de base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Scroll offset for anchor links - ensures targets appear below fixed nav */
[id] {
    scroll-margin-top: 100px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #ffffff;
    padding-top: 70px;
    background-image: url('../img/demo/pattern.png');
    background-repeat: repeat;
    background-attachment: fixed;
}
a {text-decoration: none;}
/* ============================================
   Menu horizontal noir (présent partout)
   ============================================ */

.top-nav {
    background-color: #1a1a1a;
    padding: 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 1rem 0;
}

.logo-placeholder {
    width: 50px;
    height: 50px;
    background-color: #f3f8fc;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 20px;
    overflow: hidden;
}

.logo-text {
    color: #ffffff;
    font-size: 1.4rem;
    font-weight: 600;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: #ffffff;
    text-decoration: none;
    padding: 1.5rem 0;
    display: block;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: #25bdeb;
}

/* ============================================
   Page d'accueil documentation - Hero
   ============================================ */

.hero {
    background: linear-gradient(
        135deg,
        rgba(219, 234, 254, 0.6) 0%,
        rgba(240, 249, 255, 0.6) 100%
    );
    padding: 4rem 2rem;
    text-align: center;
}

.hero-container {
    max-width: 1000px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 2.5rem;
    color: #1a1a1a;
    margin-bottom: 1.5rem;
    font-weight: 700;
    line-height: 2.5rem;
}

.hero-description {
    font-size: 1.15rem;
    color: #4b5563;
    line-height: 1.8;
    max-width: 900px;
    margin: 0 auto;
}

/* ============================================
   Points clés (key points)
   ============================================ */

.key-points {
    background-color: #f5f5f5;
    padding: 3rem 2rem;  
    border-bottom: 2px solid #fff;
    box-shadow: 0 0 5px #ccc;
}

.key-points-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.key-point {
    background-color: white;
    padding: 1.5rem;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.key-point strong {
    color: #25bdeb;
    display: block;
    margin-bottom: 0.5rem;
}


/* ============================================
   Page d'accueil documentation (avec sidebar)
   ============================================ */

.doc-home-content {
    max-width: 100%;
}

.doc-home-content .content h1 {
    margin-bottom: 0.5rem;
}

.doc-home-content .lead {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

/* Grille des cartes documentation */
.doc-home-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.doc-home-card {
    background-color: #f8f9fa;
    border-radius: 10px;
    padding: 1.5rem;
    padding-top: 0;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    overflow: hidden;
}

.doc-home-card:hover {
    background-color: #fff;
    border-color: #25bdeb;
    box-shadow: 0 8px 20px rgba(37, 189, 235, 0.15);
}

/* Header de la carte (lien vers la section principale) */
a.doc-home-card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0 -1.5rem 1rem -1.5rem;
    padding: 1rem 1.5rem;
    padding-left: calc(1.5rem + 1rem);
    border-left: 4px solid #25bdeb;
    text-decoration: none !important;
    color: inherit;
    transition: all 0.3s ease;
}

a.doc-home-card-header:hover {
    background-color: rgba(37, 189, 235, 0.05);
}

a.doc-home-card-header .material-icons {
    font-size: 1.8rem;
    color: #25bdeb;
}

a.doc-home-card-header h2 {
    font-size: 1.25rem;
    margin: 0;
    color: #1a1a1a;
    border: none;
    padding: 0;
    transition: color 0.3s ease;
    background : inherit
}

a.doc-home-card-header:hover h2 {
    color: #25bdeb;
}

/* Liste des sous-sections */
.doc-home-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.doc-home-card li {
    margin: 0;
}

.doc-home-card li a {
    display: block;
    padding: 0.5rem 0.75rem;
    padding-left: 1.5rem;
    color: #666;
    font-size: 0.95rem;
    text-decoration: none;
    position: relative;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.doc-home-card li a::before {
    content: '→';
    position: absolute;
    left: 0.25rem;
    color: #25bdeb;
    opacity: 0;
    transition: all 0.3s ease;
}

.doc-home-card li a:hover {
    background-color: rgba(37, 189, 235, 0.1);
    color: #25bdeb;
    padding-left: 1.75rem;
}

.doc-home-card li a:hover::before {
    opacity: 1;
}

/* CTA dans la page documentation */
.doc-home-cta {
    background-color: #f8f9fa;
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
}

.doc-home-cta h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #1a1a1a;
    border: none;
    padding: 0;
}

.doc-home-cta p {
    color: #666;
    margin-bottom: 1.5rem;
}

.doc-home-cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-secondary-dark {
    background-color: transparent;
    color: #1a1a1a;
    border: 2px solid #1a1a1a;
}

.btn-secondary-dark:hover {
    background-color: #1a1a1a;
    color: white;
}

/* Responsive pour la grille doc-home */
@media (max-width: 900px) {
    .doc-home-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   Footer CTA
   ============================================ */

.footer-cta {
    background-color: #1a1a1a;
    color: white;
    padding: 3rem 2rem;
    text-align: center;
}

.footer-cta h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: white;
}

.footer-cta p {
    margin-bottom: 2rem;
    color: #e0e0e0;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.content .btn, .footer-cta .btn {
    padding: 0.875rem 2rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

.content .btn-primary, .footer-cta .btn {
    background-color: #25bdeb;
    color: white;
}

.content .btn-primary:hover, .footer-cta .btn:hover {
    background-color: #1da5d1;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 189, 235, 0.4);
}

.content .btn-secondary {
    background-color: transparent;
    color: white;
    border: 2px solid white;
}

.content .btn-secondary:hover {
    background-color: white;
    color: #1a1a1a;
}

/* ============================================
   Pages internes - Layout avec sidebar
   ============================================ */

.doc-layout {
    display: flex;
    max-width: 1400px;
    margin: 0 auto;
    min-height: calc(100vh - 70px);
    background-color: #ffffffd6;
    border-right: 1px solid #e5e5e5;
}

/* Sidebar gauche */
.sidebar {
    width: 320px;
    background-color: #f5f5f5;
    padding: 2rem 0;
    border-right: 1px solid #e0e0e0;    
    border-left: 1px solid #e5e5e5;
    position: -webkit-sticky;
    position: sticky;
    top: 70px;
    max-height: calc(100vh - 71px);
    overflow-y: auto;
    
}

/* Header de section (titre + toggle) */
.sidebar-section-header {
    display: flex;
    align-items: center;
}

.sidebar-section-title {
    flex: 1;
    padding: 0.75rem 0.5rem 0.75rem 1.5rem;
    font-weight: 600;
    color: #1a1a1a;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.sidebar-section-title:hover {
    background-color: #e0e0e0;
    color: #25bdeb;
}

.sidebar-section-title.active {
    background-color: #25bdeb;
    color: white;
}

/* Toggle actif quand la section est active */
.sidebar-section-title.active + .sidebar-toggle,
.sidebar-section-header:has(.sidebar-section-title.active) .sidebar-toggle {
    background-color: #25bdeb;
    color: white;
}

.sidebar-section-header:has(.sidebar-section-title.active) .sidebar-toggle:hover {
    background-color: #1da5d1;
    color: white;
}

/* Texte du titre */
.sidebar-section-text {
    flex: 1;
}

/* Lien de section (quand on n'est pas sur la section) */
a.sidebar-section-title {
    text-decoration: none;
}

a.sidebar-section-title:hover .sidebar-section-icon {
    color: #25bdeb;
}

.sidebar-section-icon {
    font-size: 1.4rem;
    font-family: 'Material Icons';
    font-weight: normal;
    font-style: normal;
}

/* Bouton toggle pour déplier/replier */
.sidebar-toggle {
    background: none;
    border: none;
    padding: 0.85rem 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    transition: all 0.3s ease;
}

.sidebar-toggle:hover {
    color: #25bdeb;
    background-color: #e0e0e0;
}

.sidebar-toggle .material-icons {
    font-size: 1.4rem;
    transition: transform 0.3s ease;
}

.sidebar-toggle.open .material-icons {
    transform: rotate(180deg);
}

.sidebar-subsections {
    max-height: 0;
    overflow: hidden;
    background-color: #ffffff;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0;
}

.sidebar-subsections.open {
    max-height: 500px;
    padding: 0.5rem 0;
}

.sidebar-subsections a {
    display: block;
    padding: 0.5rem 1.5rem 0.5rem 3rem;
    color: #666666;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.sidebar-subsections a:hover {
    background-color: #f5f5f5;
    color: #25bdeb;
    padding-left: 3.5rem;
}

.sidebar-subsections a.active {
    color: #25bdeb;
    font-weight: 600;
    border-left: 3px solid #25bdeb;
    background-color: #f6f6f6;
}

/* ============================================
   Contenu principal
   ============================================ */

.main-content {
    flex: 1;
    padding: 2rem 3rem;
    max-width: 100%;
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    gap: 0.5rem;
    color: #666666;
    font-size: 0.9rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.breadcrumb a {
    color: #25bdeb;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb-separator {
    color: #999999;
}

/* Contenu de la documentation */
.content h1 {
    font-size: 2.5rem;
    color: #1a1a1a;
    margin-bottom: 1rem;
    border-bottom: 3px solid #25bdeb;
    padding-bottom: 0.5rem;
}

.content h2 {
    font-size: 1.7rem;
    color: #1a1a1a;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    padding-left: 0.5rem;
    border-left: 4px solid #25bdeb;
    background-color: #ececec;
    padding: 15px;
}
.content .doc-home-cta h2 {
    border-left: 0;
    margin-top: 0;    
    background-color: inherit;
}
.content h3 {
    font-size: 1.4rem;
    color: #333333;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    background-color: #f6f6f6;
    padding: 10px 20px;
    border-left: 2px solid #ccc;
}

.content h4, .content h5, .content h6 {
    font-size: 1.1rem;
    color: #333333;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.content p {
    margin-bottom: 1rem;
    color: #333333;
}

.content ul,
.content ol {
    margin-bottom: 1rem;
    padding-left: 2rem;
}

.content li {
    margin-bottom: 0.5rem;
    color: #333333;
}

.content a {
    color: #25bdeb;
    text-decoration: none;
}

.content a:hover {
    text-decoration: underline;
}

 .content a.doc-inline-anchor {
     display: inline-flex;
     align-items: center;
     justify-content: center;
     width: 26px;
     height: 26px;
     margin-left: 12px;
     border-radius: 3px;
     background-color: rgba(37, 189, 235, 0.12);
     color: #25bdeb;
     text-decoration: none;
     transition: background-color 0.2s ease, transform 0.2s ease;
 }

 .content a.doc-inline-anchor:hover {
     background-color: rgba(37, 189, 235, 0.22);
     text-decoration: none;
 }

 .content a.doc-inline-anchor:focus-visible {
     outline: 2px solid #25bdeb;
     outline-offset: 2px;
 }

 .content a.doc-inline-anchor .material-icons {
     font-size: 18px;
     line-height: 1;
 }

 .content .doc-toc {
     background-color: #f8f9fa;
     border: 1px solid #e0e0e0;
     border-radius: 10px;
     padding: 1rem 1.25rem;
     margin: 1.25rem 0 2rem;
 }

 .content .doc-toc-title {
     display: flex;
     align-items: center;
     gap: 0.5rem;
     font-weight: 700;
     color: #1a1a1a;
     margin-bottom: 0.75rem;
 }

 .content .doc-toc-title .material-icons {
     font-size: 20px;
     color: #25bdeb;
 }

 .content .doc-toc-list {
     list-style: none;
     padding: 0;
     margin: 0;
 }

 .content .doc-toc-list li {
     border-bottom: 1px solid rgba(0, 0, 0, 0.06);
 }

 .content .doc-toc-list li:last-child {
     border-bottom: none;
 }

 .content .doc-toc-list a.doc-toc-link {
     display: flex;
     align-items: center;
     justify-content: space-between;
     gap: 1rem;
     padding: 0.5rem 0.75rem;
     margin: 0 -0.75rem;
     border-radius: 6px;
     color: #333333;
     text-decoration: none;
     transition: background-color 0.2s ease, color 0.2s ease;
 }

 .content .doc-toc-list a.doc-toc-link:hover {
     background-color: rgba(37, 189, 235, 0.1);
     color: #25bdeb;
     text-decoration: none;
 }

 .content .doc-toc-list a.doc-toc-link .material-icons {
     font-size: 18px;
     color: #25bdeb;
     opacity: 0.5;
     transition: opacity 0.2s ease;
 }

 .content .doc-toc-list a.doc-toc-link:hover .material-icons {
     opacity: 1;
 }

/* Sommaire flottant (sticky) - Version avec icône fixe séparée */
.doc-toc-floating-btn {
    position: fixed;
    top: 200px;
    right: 20px;
    z-index: 1000;
    height: 40px;
    padding: 0 16px 0 12px;
    border-radius: 20px;
    background-color: #25bdeb;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    opacity: 0;
    visibility: hidden;
    transform: translateX(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.doc-toc-floating-btn.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.doc-toc-floating-btn .material-icons {
    color: #fff;
    font-size: 20px;
}

.doc-toc-floating-btn span {
    color: #fff;
    font-size: 14px;
    font-weight: 600;
}

.doc-toc-floating-btn:hover {
    background-color: #1da8d4;
    transform: scale(1.02);
}

/* Menu flottant qui apparaît au hover/clic sur le bouton */
.doc-toc-floating-menu {
    position: fixed;
    top: 250px;
    right: 20px;
    z-index: 1001;
    width: auto;
    min-width: 280px;
    max-width: 400px;
    background-color: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 1rem 1.25rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.doc-toc-floating-menu.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.doc-toc-floating-menu .doc-toc-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 0.75rem;
}

.doc-toc-floating-menu .doc-toc-title .material-icons {
    font-size: 20px;
    color: #25bdeb;
}

.doc-toc-floating-menu .doc-toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.doc-toc-floating-menu .doc-toc-list li {
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.doc-toc-floating-menu .doc-toc-list li:last-child {
    border-bottom: none;
}

.doc-toc-floating-menu .doc-toc-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.5rem 0.75rem;
    margin: 0 -0.75rem;
    border-radius: 6px;
    color: #333333;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.doc-toc-floating-menu .doc-toc-list a:hover {
    background-color: rgba(37, 189, 235, 0.1);
    color: #25bdeb;
}

.doc-toc-floating-menu .doc-toc-list a .material-icons {
    font-size: 18px;
    color: #25bdeb;
    opacity: 0.5;
    transition: opacity 0.2s ease;
}

.doc-toc-floating-menu .doc-toc-list a:hover .material-icons {
    opacity: 1;
}

/* Images dans le contenu de la documentation */
.content img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    margin: 1.5rem 0;
}

.content img[data-zoomable] {
    cursor: zoom-in;
}

.doc-figure {
    margin: 1rem 0 2rem;
}

.doc-figure img {
    margin: 0;
}

/* Blocs d'information et d'avertissement */
.info-box {
    background-color: #e0f2fe;
    border-left: 4px solid #25bdeb;
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 0 6px 6px 0;
}

.info-box strong {
    color: #0284c7;
    margin-bottom: 0.5rem;
}

.warning-box {
    background-color: #fef3c7;
    border-left: 4px solid #f59e0b;
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 0 6px 6px 0;
}

.warning-box strong {
    color: #d97706;
    display: block;
    margin-bottom: 0.5rem;
}

/* Bloc de code */
.code-box {
    background-color: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    overflow-x: auto;
}

.code-box code {
    font-family: 'Courier New', monospace;
    color: #1a1a1a;
}

/* Navigation précédent/suivant */
.page-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid #e0e0e0;
    gap: 1rem;
}

.page-nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    background-color: #f5f5f5;
    border-radius: 6px;
    text-decoration: none;
    color: #333333;
    transition: all 0.3s ease;
    flex: 1;
    max-width: 45%;
}

.page-nav-link:hover {
    background-color: #25bdeb;
    color: white;
    transform: translateX(5px);
}

.page-nav-link.prev:hover {
    transform: translateX(-5px);
}

.page-nav-link span {
    font-size: 1.2rem;
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 768px) {
    /* Menu responsive */
    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }

    .logo {
        padding: 0.5rem 0;
    }

    .nav-menu {
        padding-bottom: 1rem;
        gap: 1rem;
        font-size: 0.9rem;
    }

    /* Hero responsive */
    .hero h1 {
        font-size: 1.8rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    /* Cards responsive */
    .sections-grid {
        grid-template-columns: 1fr;
    }

    /* Layout doc responsive */
    .doc-layout {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        position: relative;
        height: auto;
        border-right: none;
        border-bottom: 1px solid #e0e0e0;
        max-height: none;
    }

    .main-content {
        padding: 1.5rem;
    }

    .content h1 {
        font-size: 2rem;
    }

    /* Navigation responsive */
    .page-navigation {
        flex-direction: column;
    }

    .page-nav-link {
        max-width: 100%;
    }
}

/* ============================================
   Sélecteur de langue dans le menu
   ============================================ */

.nav-language {
    position: relative;
    display: flex;
    align-items: center;
}

.nav-language-current {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.nav-language-current:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.nav-language-current img {
    width: 24px;
    height: auto;
    border-radius: 2px;
}

.nav-language-current .material-icons {
    color: #fff;
    font-size: 18px;
    transition: transform 0.3s ease;
}

.nav-language:hover .nav-language-current .material-icons {
    transform: rotate(180deg);
}

.nav-language-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: #1a1a1a;
    border-radius: 6px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    padding: 0.5rem 0;
    min-width: 150px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1001;
}

.nav-language:hover .nav-language-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-language-dropdown a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 1rem;
    color: #fff;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.nav-language-dropdown a:hover {
    background-color: rgba(37, 189, 235, 0.2);
}

.nav-language-dropdown a.active {
    background-color: rgba(37, 189, 235, 0.3);
}

.nav-language-dropdown img {
    width: 20px;
    height: auto;
    border-radius: 2px;
}

/* ============================================
   Page Démo - Styles spécifiques
   ============================================ */
/* Hero section démo */
.demo-hero {
    background: linear-gradient(135deg, rgba(37, 189, 235, 0.1) 0%, rgba(255, 255, 255, 0.95) 100%);
    padding: 3rem 2rem;
    text-align: center;  
    border-bottom: 1px solid #fff;
    box-shadow: 0 0 5px #a4e5ff;
}

.demo-hero h1 {
    font-size: 2rem;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
    line-height: 1.5rem;
}

.demo-hero h1 span {
    display: block;
    font-size: 2.2rem;
    color: #25bdeb;
    margin-top: 0.5rem;
}

/* Grille 3 colonnes pour le hero demo */
.demo-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2rem;
    align-items: center;
    max-width: 1100px;
    margin: 2rem auto 0;
}
.demo-hero-grid .demo-compatibility {
    background-color: #ffffffa3;
    padding: 20px;
    border-radius: 6px;
    box-shadow: 0 0 5px #25bdeb3d;
    border: 1px solid #25BDEB;
    text-align: center;
    margin: 0;
}

.demo-hero-grid .demo-hero-awards {
    margin: 0 auto;
    display: block;
}

.demo-hero-grid .demo-mockup {
    margin: 0;
}

@media (max-width: 900px) {
    .demo-hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .demo-hero-grid .demo-compatibility {
        text-align: center;
    }
}

.demo-hero-awards {
    width: 100%;
    max-width: 400px;
    margin: 1.5rem auto;
}

.demo-compatibility {
    font-size: 1.3rem;
    color: #666;
    margin-top: 1.5rem;
}

.demo-compatibility strong {
    color: #1a1a1a;
}

/* Mockup avec badge */
.demo-mockup {
    position: relative;
    max-width: 600px;
    margin: 2rem auto;
}

.demo-mockup img {
    max-width: 100%;
    height: auto;
}

.demo-mockup .demo-badge {
    position: absolute;
    top: 0;
    left: 30px;
    width: 120px;
    transform: rotate(-15deg);
}

/* Section des démos */
.demo-section {
    padding: 3rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.demo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.demo-card {
    background-color: #fff;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.demo-card h2 {
    font-size: 1.4rem;
    color: #1a1a1a;
    margin-bottom: 1.5rem;
    border: none;
    padding: 0;
}

.demo-card h2 strong {
    color: #25bdeb;
}

.demo-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.demo-btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.demo-btn-shop {
    background-color: #002e48;
    color: #fff;
    border-color: #81d0ea;
}

.demo-btn-shop:hover {
    background-color: #fff;
    color: #002e48;
    border-color: #002e48;
}

.demo-btn-admin {
    background-color: #004c77;
    color: #fff;
    border-color: #81d0ea;
}

.demo-btn-admin:hover {
    background-color: #fff;
    color: #004c77;
    border-color: #004c77;
}

/* Credentials info */
.demo-credentials {  
    background-color: #fff;
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    max-width: 600px;
    margin: 0 auto 1rem;
    border: 1px solid #ccc;
}

.demo-credentials p {
    margin: 0;
    color: #666;
}

.demo-credentials strong {
    color: #1a1a1a;
}

.demo-credentials .demo-notice {
    font-size: 0.85rem;
    color: #999;
    margin-top: 0.75rem;
}

/* Section screenshots */
.demo-screenshots {
    padding: 3rem 2rem;
    background-color: #f5f5f5;
    border-top: 1px solid #fff;
    box-shadow: 0 0 5px #ccc;
}

.demo-screenshots-container {
    max-width: 1200px;
    margin: 0 auto;
}

.demo-screenshots h2 {
    text-align: center;
    font-size: 1.8rem;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
}

.demo-screenshots-subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.demo-screenshots-subtitle .material-icons {
    color: #25bdeb;
    font-size: 20px;
}

/* Grille de screenshots */
.demo-screenshots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.demo-screenshot-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: #fff;
}

.demo-screenshot-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);  
    border: 3px solid #2fbbe657;
}

.demo-screenshot-item a {
    display: block;
    position: relative;
}

.demo-screenshot-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.demo-screenshot-item:hover img {
    transform: scale(1.02);
}

/* Icône de zoom sur les screenshots */
.demo-screenshot-zoom {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    background-color: rgba(37, 189, 235, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s ease;
}

.demo-screenshot-item:hover .demo-screenshot-zoom {
    opacity: 1;
    transform: scale(1);
}

.demo-screenshot-zoom .material-icons {
    color: #fff;
    font-size: 20px;
}

/* Caption des screenshots */
.demo-screenshot-caption {
    padding: 0.75rem 1rem;
    background-color: #fff;
    font-size: 0.9rem;
    color: #666;
    text-align: center;
    border-top: 1px solid #eee;
}

/* ============================================
   Popup Promotionnelle
   ============================================ */

#promo-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    animation: promoFadeIn 0.3s ease-out;
}

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

#promo-popup .popup-content {
    background: linear-gradient(135deg, #00c3ff, #0081b3);
    color: #fff;
    border-radius: 12px;
    text-align: center;
    padding: 2rem;
    max-width: 420px;
    width: 90%;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    position: relative;
    animation: promoSlideIn 0.4s ease-out;
}

@keyframes promoSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

#promo-popup .popup-close {
    position: absolute;
    top: 12px;
    right: 16px;
    font-size: 24px;
    font-weight: bold;
    color: #fff;
    cursor: pointer;
    transition: transform 0.3s ease;
    line-height: 1;
}

#promo-popup .popup-close:hover {
    transform: scale(1.2);
}

#promo-popup .popup-content p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: #d5f6fd;
    line-height: 1.6;
}

#promo-popup .popup-content p span {
    background-color: #fff;
    padding: 4px 8px;
    color: #043239;
    font-weight: bold;
    border-radius: 4px;
    display: inline-block;
    margin: 0.25rem 0;
}

#promo-code {
    background: #fff;
    color: #333;
    padding: 1rem;
    margin: 1rem 0;
    border: 2px dashed #007bff;
    border-radius: 6px;
    text-align: center;
}

#promo-code span {
    display: block;
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.25rem;
}

#promo-code strong {
    font-size: 1.2rem;
    color: #007bff;
    letter-spacing: 1px;
}

#cta-button {
    display: inline-block;
    background: #ffcc00;
    color: #333;
    padding: 0.875rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-decoration: none;
}

#cta-button:hover {
    background: #e6b800;
    transform: translateY(-2px);
}

#cta-button.copied {
    background: #4caf50;
    color: #fff;
    cursor: default;
}

#cta-button.error {
    background: #f44336;
    color: #fff;
}

/* Données cachées pour la popup */
#promo-expiration-date,
#promo-message-content {
    display: none;
}

/* ============================================
   Responsive Démo
   ============================================ */

@media (max-width: 768px) {
    .demo-hero h1 {
        font-size: 1.5rem;
    }

    .demo-hero h1 span {
        font-size: 1.6rem;
    }

    .demo-mockup .demo-badge {
        width: 80px;
        left: 10px;
    }

    .demo-grid {
        grid-template-columns: 1fr;
    }

    .demo-screenshots-grid {
        grid-template-columns: 1fr;
    }

    .nav-language-dropdown {
        right: -50px;
    }
}

/* ============================================
   Page d'accueil - Sections Fonctionnalités
   ============================================ */

/* Section titre avec description */
.features-section {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.features-section-alt {
    background-color: #f8f9fac9;
    border: 1px solid #dbdbdb;  
    box-shadow: 0 0 5px #ddd;
}

.features-section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.features-section-header h2 {
    font-size: 2rem;
    color: #1a1a1a;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.features-section-header h2 .material-icons {
    font-size: 2.2rem;
    color: #25bdeb;
}

.features-section-header p {
    color: #666;
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
}

/* Grille de fonctionnalités */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.features-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.features-grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* Carte de fonctionnalité */
.feature-card {
    background-color: #fff;
    border-radius: 12px;
    padding: 1.75rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    border: 1px solid #eee;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(37, 189, 235, 0.15);
    border-color: #25bdeb;
}

.feature-card-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #25bdeb 0%, #1da5d1 100%);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    margin-right: auto;
    margin-left: auto;
}

.feature-card-icon .material-icons {
    font-size: 26px;
    color: #fff;
}

.feature-card h3 {
    font-size: 1.1rem;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
    font-weight: 600;
    text-align: center;
}

.feature-card p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

/* Feature card avec badge */
.feature-card-badge {
    display: inline-block;
    background-color: #25bdeb;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    margin-left: 0.5rem;
    vertical-align: middle;
    text-transform: uppercase;
}

.feature-card-badge.unique {
    background-color: #f59e0b;
}

.feature-card-badge.new {
    background-color: #10b981;
}

/* Liste de fonctionnalités inline */
.feature-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0 0;
}

.feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.4rem 0;
    font-size: 0.9rem;
    color: #555;
}

.feature-list li .material-icons {
    font-size: 18px;
    color: #25bdeb;
    flex-shrink: 0;
    margin-top: 2px;
}

/* Section highlight (mise en avant) */
.highlight-section {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: #fff;
    padding: 4rem 2rem;  
    box-shadow: 0 0 5px #241515;
}

.highlight-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.highlight-content h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #fff;
}

.highlight-content h2 .material-icons {
    color: #25bdeb;
    vertical-align: middle;
    margin-right: 0.5rem;
}

.highlight-content p {
    color: #ccc;
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.highlight-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.highlight-feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

.highlight-feature .material-icons {
    color: #25bdeb;
    font-size: 22px;
}

.highlight-feature span {
    font-size: 0.95rem;
}

.highlight-visual {
    text-align: center;
}

.highlight-visual img {
    max-width: 100%;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

/* Stats section */
.stats-section {
    background-color: #25bdeb;
    padding: 3rem 2rem;
    border-top: 1px solid #126984;
    border-bottom: 1px solid #126984;
}

.stats-container {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}

.stat-item {
    color: #fff;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    display: block;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.95rem;
    opacity: 0.9;
}

/* Section Awards */
.awards-section {
    background-color: #fff;
    padding: 3rem 2rem;
    text-align: center;
}

.awards-container {
    max-width: 800px;
    margin: 0 auto;
}

.awards-section h2 {
    font-size: 1.5rem;
    color: #1a1a1a;
    margin-bottom: 1.5rem;
}

.awards-badges {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.awards-badges img {
    height: 80px;
    width: auto;
}

/* Responsive fonctionnalités */
@media (max-width: 1024px) {
    .features-grid-3,
    .features-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .highlight-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .highlight-features {
        justify-content: center;
    }

    .stats-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .features-grid,
    .features-grid-3,
    .features-grid-4 {
        grid-template-columns: 1fr;
    }

    .highlight-features {
        grid-template-columns: 1fr;
    }

    .stats-container {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .features-section-header h2 {
        font-size: 1.5rem;
        flex-direction: column;
        gap: 0.5rem;
    }
}
