/* ============================================= */
/*       FEUILLE DE STYLE PLYIA v4.0 - Finale      */
/* ============================================= */


/* ============================================= */
/*          1. CONFIGURATION GLOBALE             */
/* ============================================= */

:root {
    /* -- Palette de Couleurs -- */
    --bg-color: #0B0A11;
    --card-bg-color: rgba(22, 21, 34, 0.4);
    --card-border-color: rgba(138, 71, 255, 0.2);
    --card-hover-border-color: rgba(88, 145, 255, 0.6);
    --text-color: #F0F0F5;
    --text-muted-color: #9A99A3;
    --accent-blue: #0c85be;
    --accent-purple: #5b1db3;

    /* -- Couleurs des Verdicts de Test -- */
    --color-success: #57ffab;
    --bg-success: rgba(0, 200, 83, 0.2);
    --color-partial: #ffda8a;
    --bg-partial: rgba(255, 196, 82, 0.2);
    --color-style: #8cb1ff;
    --bg-style: rgba(58, 125, 255, 0.2);

    /* -- Typographie & Dimensions -- */
    --font-family: 'Sora', sans-serif;
    --border-radius: 16px;
    --spacing-unit: 1rem;
}


/* --- Reset & Styles de Base --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    background-image: radial-gradient(circle at 20% 20%, rgba(12, 133, 190, 0.1), transparent 30%),
                      radial-gradient(circle at 80% 80%, rgba(91, 29, 179, 0.1), transparent 30%);
    color: var(--text-color);
    font-family: var(--font-family);
    line-height: 1.7;
    text-align: center;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    position: relative;
}

/* --- Orbes Flottants en Arrière-plan --- */
.blur-orb {
    position: absolute; /* Note: 'fixed' sur .connect-page */
    border-radius: 50%;
    filter: blur(150px);
    z-index: -1;
    pointer-events: none;
}

#orb1 {
    width: 600px;
    height: 600px;
    top: -150px;
    left: -200px;
    background-color: rgba(12, 133, 190, 0.15);
}

#orb2 {
    width: 500px;
    height: 500px;
    bottom: 0;
    right: -150px;
    background-color: rgba(91, 29, 179, 0.15);
}

/* --- Styles des Liens & Focus --- */
a {
    color: var(--accent-blue);
    text-decoration: none;
    transition: color 0.2s ease-out;
}

a:hover {
    color: var(--text-color);
}

:focus-visible {
    outline: 2px solid var(--accent-blue);
    outline-offset: 4px;
    border-radius: 4px;
}


/* ============================================= */
/*          2. TYPOGRAPHIE & COMPOSANTS          */
/* ============================================= */

/* --- Titres (Headings) --- */
h1, h2, h3 {
    font-weight: 700;
    color: var(--text-color);
    letter-spacing: -0.02em;
}

h1 { font-size: calc(var(--spacing-unit) * 2.8); margin-bottom: var(--spacing-unit); }
h2 { font-size: calc(var(--spacing-unit) * 2.5); margin-bottom: calc(var(--spacing-unit) * 3); }
h3 { font-size: calc(var(--spacing-unit) * 1.5); margin-bottom: var(--spacing-unit); }

/* --- Paragraphes --- */
p {
    color: var(--text-muted-color);
    max-width: 65ch;
    margin-left: auto;
    margin-right: auto;
}

/* --- Bouton d'Appel à l'Action (CTA) Principal --- */
.cta-button {
    display: inline-block;
    background-image: linear-gradient(90deg, var(--accent-blue), var(--accent-purple));
    color: white;
    padding: calc(var(--spacing-unit) * 0.9) calc(var(--spacing-unit) * 2.5);
    border-radius: 50px;
    font-weight: 600;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: none;
    box-shadow: 0 5px 20px rgba(91, 29, 179, 0.3);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(12, 133, 190, 0.4);
    color: white; /* Répété pour garantir la couleur au survol */
}

/* --- Sections --- */
section {
    padding: calc(var(--spacing-unit) * 4) calc(var(--spacing-unit) * 2);
}


/* ============================================= */
/*          3. BARRE DE NAVIGATION (NAVBAR)      */
/* ============================================= */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: var(--spacing-unit) calc(var(--spacing-unit) * 2);
    z-index: 1000;
    background-color: rgba(11, 10, 17, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--text-color);
}

.nav-logo img {
    width: 48px;
    height: 48px;
}

.nav-links {
    display: flex;
    gap: calc(var(--spacing-unit) * 2);
    list-style: none;
}

.nav-links a {
    color: var(--text-muted-color);
    font-weight: 600;
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: var(--text-color);
}

/* --- Boutons d'Action de la Navbar --- */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-cta {
    background-color: transparent;
    border: 1px solid var(--accent-blue);
    color: var(--accent-blue);
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 600;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.nav-cta:hover {
    background-color: var(--accent-blue);
    color: white;
}

.nav-cta-special {
    background-image: linear-gradient(90deg, var(--accent-purple), var(--accent-blue));
    color: white;
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 600;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
    overflow: hidden;
}

.nav-cta-special:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(91, 29, 179, 0.4);
    color: white;
}

.nav-cta-special::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.6s ease;
}

.nav-cta-special:hover::before {
    left: 100%;
}

.nav-cta-special.active-link {
    box-shadow: 0 0 15px var(--accent-blue);
    border: 1px solid var(--accent-blue);
}


/* ============================================= */
/*          4. PAGE D'ACCUEIL (INDEX.HTML)       */
/* ============================================= */

/* --- Section Hero --- */
.hero { 
    min-height: 120vh; 
    display: flex; 
    flex-direction: column; 
    justify-content: center; 
    align-items: center; 
    position: relative; 
    padding: calc(var(--spacing-unit) * 2); 
}

.hero-content { 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    padding-top: 35vh; 
}

.hero p { 
    font-size: 1.25rem; 
    margin-bottom: calc(var(--spacing-unit) * 2.5); 
}

/* --- Logo Dynamique --- */
.dynamic-logo { 
    position: absolute; 
    top: 33%; 
    left: 50%; 
    transform: translate(-50%, -50%); 
    width: 90vw; 
    max-width: 450px; 
    aspect-ratio: 1 / 1; 
    display: flex; 
    justify-content: center; 
    align-items: center; 
}

.logo-icon, .logo-text, .logo-outline { 
    position: absolute; 
    transition: transform 0.2s ease-out; 
    height: auto; 
}

.logo-icon { 
    width: 100%; 
    opacity: 0.8; 
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.3)); 
    z-index: 1; 
}

.logo-text {
    width: 88%;
    height: 90%;
    z-index: 2;
    background-image: linear-gradient(90deg, var(--accent-blue), var(--accent-purple), var(--accent-blue));
    background-size: 200% 100%;
    animation: left-right-sweep 15s ease-in-out infinite;
    mask-image: url('../images/PLYIA_TextPart.png');
    mask-size: contain;
    mask-repeat: no-repeat;
    mask-position: center;
    -webkit-mask-image: url('../images/PLYIA_TextPart.png');
    -webkit-mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
    bottom: 40px; 
}

.logo-outline { 
    width: 90%; 
    z-index: 3; 
    bottom: 170px; 
}

@keyframes left-right-sweep { 
    0% { background-position: 200% 0; } 
    100% { background-position: -200% 0; } 
}


/* --- Grilles de la Page d'Accueil --- */
.products-grid,
.philosophy-grid,
.roadmap-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: calc(var(--spacing-unit) * 2);
    max-width: 1200px;
    margin: 0 auto;
}

/* --- Cartes Produits de la Page d'Accueil --- */
.product-card-link {
    text-decoration: none;
    display: block;
}

.product-card {
    background-color: var(--card-bg-color);
    backdrop-filter: blur(15px);
    border-radius: var(--border-radius);
    padding: calc(var(--spacing-unit) * 2);
    border: 1px solid var(--card-border-color);
    height: 100%;
    display: flex;
    flex-direction: column;
    text-align: left;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.product-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.product-card-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.product-card-header h3 {
    margin: 0;
    position: relative;
    z-index: 1;
}

.product-card-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    position: relative;
    z-index: 1;
}

.product-card-content p {
    flex-grow: 1;
}

.product-specs, .details-button {
    position: relative;
    z-index: 1;
}

.product-specs {
    font-size: 0.85rem;
    color: var(--text-muted-color);
    margin-bottom: var(--spacing-unit) !important;
    flex-grow: 0;
}

.details-button {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text-color);
    padding: calc(var(--spacing-unit) * 0.8) calc(var(--spacing-unit) * 1.5);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-weight: 600;
    text-align: center;
    margin-top: auto;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.product-card-link:hover .product-card {
    transform: translateY(-10px);
    border-color: var(--card-hover-border-color);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.product-card-link:hover .details-button {
    background-color: var(--accent-blue);
    color: white;
    border-color: var(--accent-blue);
}

.product-card::before {
    content: '';
    position: absolute;
    top: var(--mouse-y, 50%);
    left: var(--mouse-x, 50%);
    width: 300px;
    height: 300px;
    background-image: radial-gradient(circle, rgba(12, 133, 190, 0.3) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
}

.product-card-link:hover .product-card::before {
    opacity: 1;
}

/* --- Cartes Philosophie de la Page d'Accueil --- */
.philosophy-card {
    background-color: var(--card-bg-color);
    backdrop-filter: blur(15px);
    border-radius: var(--border-radius);
    padding: calc(var(--spacing-unit) * 2);
    border: 1px solid var(--card-border-color);
    height: 100%;
    display: flex;
    flex-direction: column;
    text-align: left;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.philosophy-card:hover {
    transform: translateY(-10px);
    border-color: var(--card-hover-border-color);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

/* --- Cartes Roadmap de la Page d'Accueil --- */
.roadmap-card {
    border-radius: 8px;
    padding: calc(var(--spacing-unit) * 1.5);
    border: 2px dashed rgba(255, 255, 255, 0.1);
    text-align: left;
}

.roadmap-card p,
.roadmap-card strong {
    color: var(--text-muted-color);
}

/* --- Bouton de Suggestion --- */
.suggestion-button {
    margin-top: calc(var(--spacing-unit) * 3);
    background: transparent;
    border: 2px solid var(--accent-purple);
    color: var(--accent-purple);
    box-shadow: none;
}

.suggestion-button:hover {
    background: var(--accent-purple);
    border-color: var(--accent-purple);
    color: white;
    box-shadow: 0 8px 25px rgba(91, 29, 179, 0.3);
}


/* ============================================= */
/*          5. PAGES PRODUITS (LAYOUT)           */
/* ============================================= */

/* --- Conteneur Principal --- */
.product-detail-page {
    padding: 0 var(--spacing-unit) 4rem;
    max-width: 1400px;
    margin: 0 auto;
}

/* --- En-tête de Page Produit --- */
.product-hero-container {
    padding-top: 120px;
    padding-bottom: 2rem;
    text-align: left;
}

.product-hero-container h1 {
    font-size: 3.5rem;
}

.product-title-group {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.product-hero-icon {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
}

.product-hero-container h1 {
    margin: 0;
}

.tagline {
    font-size: 1.2rem;
    color: var(--text-muted-color);
    max-width: 60ch;
    text-align: left;
    margin: 0;
    padding-left: calc(80px + 1.5rem);
}

.back-link {
    font-weight: 600;
    color: var(--text-muted-color);
    display: inline-block;
    margin-bottom: 1rem;
}

/* --- Grille Principale (Carrousel | Infos) --- */
.product-showcase-grid {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 2.5rem;
    align-items: start;
    margin-top: 2rem;
}

.product-info-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* --- Conteneur pour le reste du contenu --- */
.product-details-content {
    max-width: 1200px;
    margin: 4rem auto 0;
}


/* ============================================= */
/*          6. PAGES PRODUITS (COMPOSANTS)       */
/* ============================================= */

/* --- Carrousel d'Images --- */
.product-gallery {
    position: relative;
    border-radius: var(--border-radius);
    border: 1px solid var(--card-border-color);
    overflow: hidden;
}

.slider-wrapper {
    overflow: hidden;
}

.slider-container {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.slide {
    flex: 0 0 100%;
    width: 100%;
}

.slide img {
    width: 100%;
    height: auto;
    display: block;
    cursor: pointer;
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.4);
    color: white;
    border: none;
    font-size: 24px;
    padding: 10px 15px;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.2s ease;
    z-index: 10;
}

.slider-arrow:hover { background-color: rgba(0, 0, 0, 0.7); }
.slider-arrow.prev { left: 15px; }
.slider-arrow.next { right: 15px; }

.slider-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: var(--spacing-unit);
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
}

.slider-nav-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.4);
    margin: 0 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.slider-nav-dot:hover { background-color: rgba(255, 255, 255, 0.7); }
.slider-nav-dot.active { background-color: var(--accent-blue); transform: scale(1.2); }

/* --- Boîtes d'Information (Specs, Achat, Description) --- */
.specs-box,
.buy-box,
.product-description {
    background-color: var(--card-bg-color);
    backdrop-filter: blur(15px);
    border: 1px solid var(--card-border-color);
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: left;
}

.buy-box .price-detail {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    display: block;
}

.buy-box .cta-button {
    display: block;
    text-align: center;
}

.product-description p, 
.product-description ul {
    text-align: left;
    margin: 0;
    max-width: none;
}

.product-description ul {
    list-style: none;
    padding-left: 0;
    margin-top: 1rem;
}

.product-description li {
    margin-bottom: 0.5rem;
}

/* --- Graphique de Performance --- */
.performance-graph-container {
    max-width: 800px;
    margin: 2rem auto;
}

.performance-graph {
    overflow: visible !important;
}

.performance-curve {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: draw-curve 2s ease-out 0.5s forwards;
}

@keyframes draw-curve {
    to { stroke-dashoffset: 0; }
}

.data-point {
    fill: white;
    stroke: var(--accent-blue);
    stroke-width: 2px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.data-point:hover {
    r: 8;
    fill: var(--accent-blue);
}

/* --- Showcase de Tests (Pixel Spark) --- */
.showcase-section {
    padding-top: 2rem;
}

.test-case {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: center;
    text-align: left;
    margin-bottom: 4rem;
}

.test-case:nth-child(even) .test-image {
    order: 2;
}

.test-image img {
    width: 100%;
    border-radius: var(--border-radius);
    border: 1px solid var(--card-border-color);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.test-image img:hover {
    transform: scale(1.03);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

.prompt-text {
    background-color: var(--bg-color);
    padding: 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-family: monospace;
    line-height: 1.4;
    white-space: pre-wrap;
    border: 1px solid var(--card-border-color);
    margin-top: 1rem;
}

.test-verdict {
    padding: 0.8rem 1rem;
    border-radius: 8px;
    font-weight: 700;
    margin-top: 1.5rem;
}

.test-verdict.success { background-color: var(--bg-success); color: var(--color-success); }
.test-verdict.partial { background-color: var(--bg-partial); color: var(--color-partial); }
.test-verdict.style { background-color: var(--bg-style); color: var(--color-style); }

/* --- Encarts d'Information (Conseils, Avertissements) --- */
.usage-tips-box,
.disclaimer-box {
    text-align: left;
    background: linear-gradient(135deg, rgba(12, 133, 190, 0.1), rgba(91, 29, 179, 0.1));
    border: 1px solid var(--accent-blue);
    border-radius: var(--border-radius);
    padding: 2rem;
    max-width: 900px;
    margin: 2rem auto;
}

.usage-tips-box h3,
.disclaimer-box h3 {
    text-align: center;
    margin-bottom: 1rem;
}

/* --- Test de Compatibilité --- */
.compatibility-section {
    background: transparent;
}

#test-box {
    background-color: var(--card-bg-color);
    border: 1px solid var(--card-border-color);
    border-radius: var(--border-radius);
    padding: calc(var(--spacing-unit) * 3);
    max-width: 600px;
    margin: 0 auto;
}

.results-container {
    margin-top: calc(var(--spacing-unit) * 2);
    text-align: left;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: calc(var(--spacing-unit) * 2);
}

.result-line {
    font-size: 1.1rem;
    margin-bottom: var(--spacing-unit);
}

.result-conclusion {
    margin-top: var(--spacing-unit);
    padding: var(--spacing-unit);
    border-radius: 8px;
    font-weight: 700;
    text-align: center;
}

.result-insufficient { background-color: rgba(255, 82, 82, 0.2); color: #ff8a8a; }
.result-sufficient { background-color: var(--bg-partial); color: var(--color-partial); }
.result-optimal { background-color: var(--bg-success); color: var(--color-success); }

/* --- Champs de Saisie Manuels --- */
.manual-input-group {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.8rem;
}

.manual-input-group label {
    text-align: left;
    flex-basis: 50%;
}

.manual-input-group input, 
.manual-input-group select {
    flex-basis: 50%;
    padding: 8px;
    border-radius: 6px;
    border: 1px solid var(--text-muted-color);
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-family);
    font-size: 1rem;
}

#manual-test-link {
    font-size: 0.8rem;
    margin-top: 1rem;
    display: block;
    text-align: center;
    cursor: pointer;
    text-decoration: underline;
}

/* --- Lightbox & Modal --- */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.92);
    justify-content: center;
    align-items: center;
}

.lightbox-content {
    max-width: 90%;
    max-height: 80%;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

.modal-overlay {
    position: fixed;
    z-index: 3000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: var(--card-bg-color);
    border: 1px solid var(--card-border-color);
    border-radius: var(--border-radius);
    padding: calc(var(--spacing-unit) * 2.5);
    width: 90%;
    max-width: 500px;
    text-align: center;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    color: var(--text-muted-color);
    font-size: 2.5rem;
    cursor: pointer;
}

.modal-actions {
    display: flex;
    gap: var(--spacing-unit);
    justify-content: center;
}

.modal-button {
    padding: var(--spacing-unit) calc(var(--spacing-unit) * 1.5);
    font-weight: 700;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

.modal-button.primary {
    background-image: linear-gradient(90deg, var(--accent-blue), var(--accent-purple));
    color: white;
}

.modal-button.secondary {
    background-color: transparent;
    border: 2px solid var(--text-muted-color);
    color: var(--text-muted-color);
}


/* ============================================= */
/*          7. PAGES SPÉCIFIQUES & FOOTER        */
/* ============================================= */

/* --- Bouton Scroll-to-Top --- */
#scrollTopBtn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999;
    background-color: var(--card-bg-color);
    backdrop-filter: blur(10px);
    border: 1px solid var(--card-border-color);
    color: var(--text-muted-color);
    cursor: pointer;
    padding: 12px;
    border-radius: 50%;
    font-size: 20px;
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

#scrollTopBtn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#scrollTopBtn:hover {
    color: var(--text-color);
    border-color: var(--accent-blue);
}

/* --- Page FAQ --- */
.faq-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

.faq-item {
    background-color: var(--card-bg-color);
    backdrop-filter: blur(15px);
    border: 1px solid var(--card-border-color);
    border-radius: var(--border-radius);
    padding: 1rem 2rem;
    text-align: left;
    width: 90%;
    transition: all 0.3s ease;
}

.faq-item:nth-child(odd) { align-self: flex-start; }
.faq-item:nth-child(even) { align-self: flex-end; }

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.2rem;
    font-weight: 600;
    font-family: var(--font-family);
    cursor: pointer;
    padding: 1rem 0;
}

.faq-question::after {
    content: '+';
    font-size: 2rem;
    font-weight: 400;
    color: var(--text-muted-color);
    transition: transform 0.3s ease, color 0.3s ease;
}

.faq-item.active .faq-question::after {
    transform: rotate(45deg);
    color: var(--accent-blue);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding-bottom 0.4s ease-out;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding-bottom: 1rem;
    transition: max-height 0.4s ease-in, padding-bottom 0.4s ease-in;
}

.faq-answer p, .faq-answer ul {
    padding-top: 1rem;
    border-top: 1px solid var(--card-border-color);
}

/* --- Specs Box (Kortex Chat) --- */
.specs-box h3 {
    margin-bottom: 1.5rem;
}

.os-spec-group {
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--card-border-color);
}

.os-spec-group:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.os-icon {
    width: 16px;
    height: 16px;
    vertical-align: middle;
    margin-right: 8px;
    margin-top: -2px;
}

/* --- Page PLYIA Connect --- */
.connect-page .blur-orb {
    position: fixed;
}

.connect-hero {
    display: grid;
    grid-template-columns: 1fr; /* 1 colonne par défaut pour le mobile */
    gap: 3rem;
    max-width: 1200px;
    margin: 120px auto 5rem auto;
    align-items: center;
    padding: 0 var(--spacing-unit);
}

/* On passe à 2 colonnes sur les écrans larges */
@media (min-width: 992px) {
    .connect-hero {
        grid-template-columns: 2fr 1fr; /* Colonne de gauche plus large */
    }
}

/* Conteneur du texte (colonne de gauche) */
.hero-text-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Aligne tout le contenu à gauche */
    text-align: left; /* Aligne le texte à gauche */
    width: 100%; 
}

/* Groupe Logo + Titre */
.hero-title-group {
    display: flex;
    /* align-items: center;  <-- On commente ou supprime cette ligne */
    align-items: baseline; /* <-- On la remplace par 'baseline' */
    gap: 1rem;
    margin-bottom: 2rem;
}

.connect-logo {
    height: 150px;
    width: auto;
    position: relative;
    top: -5px; /* Déplace le logo de 5px vers le haut. Ajustez cette valeur. */
}

.connect-hero h1 {
    font-size: 3rem;
}

/* Slogans sous le titre */
.connect-hero .tagline {
    font-size: 1.5rem;
    color: var(--text-color);
    margin: 0 0 1rem 0;
    max-width: 50ch; /* Limite la longueur des lignes */
    text-align: left;
}

.connect-hero p {
    max-width: 50ch;
    margin: 0;
    text-align: left;
}

.problem-solution-section h2, .problem-solution-section h3 {
    text-align: center;
}

.problem-solution-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.platform-list {
    list-style: none;
    padding-left: 0;
    margin-top: 1rem;
    text-align: center;
    font-weight: 600;
}

.platform-list li {
    margin-bottom: 0.5rem;
}

.funding-box {
    text-align: center;
    background-color: var(--card-bg-color);
    backdrop-filter: blur(15px);
    border: 1px solid var(--card-border-color);
    border-radius: var(--border-radius);
    padding: 2rem;
}

.progress-bar-container {
    width: 100%;
    height: 30px;
    background-color: var(--bg-color);
    border-radius: 15px;
    margin-top: 1.5rem;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.progress-bar-fill {
    height: 100%;
    width: 0%;
    background-image: linear-gradient(90deg, var(--accent-blue), var(--accent-purple));
    border-radius: 15px;
    transition: width 1.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.progress-text {
    margin-top: 1rem;
    font-weight: 700;
    font-size: 1.2rem;
}

.tiers-section .price-tag {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--accent-blue);
}

/* --- Accordéon Vision --- */
.vision-accordion {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.vision-card {
    transition: all 0.4s ease-out;
}

.vision-card-toggle {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    text-align: left;
}

.vision-card-toggle::after {
    content: '+';
    font-size: 2.5rem;
    font-weight: 300;
    color: var(--text-muted-color);
    transition: transform 0.3s ease-out;
}

.vision-card.active .vision-card-toggle::after {
    content: '-';
}

.vision-card-content {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.5s ease-in-out, opacity 0.3s ease-in-out, padding-top 0.5s ease-in-out;
}

.vision-card.active {
    border-color: var(--card-hover-border-color) !important;
}

.vision-card.active .vision-card-content {
    max-height: 500px;
    opacity: 1;
    padding-top: 1.5rem;
    border-top: 1px solid var(--card-border-color);
    margin-top: 1rem;
}

.vision-list {
    list-style: none;
    padding-left: 0;
    margin-top: 1.5rem;
}

.vision-list li {
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
}

.vision-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-blue);
    font-weight: 700;
}

.connect-teaser-merged {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
    text-align: center;
}

.connect-teaser-logo {
    display: flex;
    justify-content: center;
    align-items: center;
}

.connect-teaser-logo img {
    width: 250px;
    height: auto;
    opacity: 0.9;
}

.connect-teaser-text p {
    text-align: inherit;
    margin: 0 0 1.5rem 0;
    max-width: 55ch;
}

/* Accordéon Specs (Kortex) */
.retractable-toggle {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    color: inherit;
}

.retractable-toggle p {
    margin: 0;
}

.toggle-icon {
    font-size: 2rem;
    font-weight: 300;
    color: var(--text-muted-color);
    transition: transform 0.3s ease-out;
}

.retractable-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding-top 0.4s ease-out;
}

.retractable-content p {
    padding-left: 24px;
    font-size: 0.9rem;
    margin-top: 0.8rem;
}

.retractable-content p:first-child {
    margin-top: 1rem;
}

.retractable-spec.active .retractable-content {
    max-height: 200px;
}

.retractable-spec.active .toggle-icon {
    transform: rotate(45deg);
}

/* --- Footer --- */
.footer-socials {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.footer-socials a {
    color: var(--text-muted-color);
    font-size: 24px;
    transition: color 0.2s ease, transform 0.2s ease;
}

.footer-socials a:hover {
    color: var(--text-color);
    transform: scale(1.1);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

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

.footer-links a:hover {
    color: var(--text-color);
}


/* ============================================= */
/*          8. RESPONSIVITÉ FINALE               */
/* ============================================= */

@media (max-width: 992px) {
    /* Styles pour tablettes et grands téléphones */
    .product-showcase-grid, 
    .test-case,
    .connect-hero {
        grid-template-columns: 1fr;
    }

    .test-case:nth-child(even) .test-image {
        order: 0;
    }

    .product-hero-container h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    /* Styles pour mobile */
    .nav-links, .nav-cta, .nav-cta-special {
        display: none;
    }

    .nav-container {
        justify-content: center;
    }

    h1 {
        font-size: calc(var(--spacing-unit) * 2.2);
    }

    .hero p {
        font-size: 1.1rem;
    }

    .hero-content {
        padding-top: 45vh; /* Ajusté pour mobile */
    }

    .products-grid, .philosophy-grid, .problem-solution-content {
        grid-template-columns: 1fr;
    }
    
    .connect-teaser-merged {
        grid-template-columns: 1fr;
    }
    
    .faq-item {
        width: 100%;
        align-self: center !important; /* Pour annuler l'alternance */
    }
}