@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;700;900&display=swap');

:root {
    --primary-color: #00b894;
    --background-color: #1a1a2e;
    --card-background: #16213e;
    --text-color: #e0e0e0;
    --text-muted: #a0a0c0;
    --dark-text: #0f3460;
    --white: #ffffff;
    --danger-color: #d63031;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
}

header {
    background-color: rgba(22, 33, 62, 0.8);
    backdrop-filter: blur(10px);
    padding: 1rem 5%;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav .logo {
    font-weight: 900;
    font-size: 1.5rem;
    color: var(--white);
    text-decoration: none;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 700;
    transition: color 0.3s ease;
}

nav a:hover, nav a.cta-nav {
    color: var(--primary-color);
}

section {
    padding: 6rem 5%;
    min-height: 60vh;
}
section:not(.hero) {
    padding-top: 8rem;
}

h1, h2, h3 {
    color: var(--white);
    margin-bottom: 1rem;
    line-height: 1.2;
}

h1 { font-size: 3rem; font-weight: 900; }
h2 { font-size: 2.5rem; text-align: center; margin-bottom: 2rem; }
h3 { font-size: 1.5rem; }

p.subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 800px;
    margin: 0 auto 2rem auto;
    text-align: center;
}

.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 0.8rem 1.8rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 700;
    transition: transform 0.3s ease, background-color 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn:hover {
    transform: translateY(-3px);
    background-color: #00a884;
}

.btn-secondary {
    background: none;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.dark-section {
    background-color: var(--card-background);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    position: relative;
    overflow: hidden;
}
.hero-content { flex: 1; }
.hero-visual { flex: 1; text-align: center; }
.hero-visual img { max-width: 100%; animation: float 6s ease-in-out infinite; }
.hero h1 { text-transform: uppercase; }
.hero p.subtitle { text-align: left; margin: 1rem 0 2rem 0; }

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

.barometer {
    position: absolute;
    bottom: 2rem;
    left: 5%;
    background-color: rgba(0,0,0,0.5);
    padding: 0.5rem 1rem;
    border-radius: 5px;
    font-weight: 700;
}
#dependency-rate {
    color: var(--danger-color);
    font-size: 1.2em;
}

/* Grid Containers */
.grid-container, .testimonials-grid, .resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}
.grid-item, .testimonial-card, .resource-card {
    background-color: var(--card-background);
    padding: 2rem;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}
.visual-container {
    margin-top: 3rem;
    text-align: center;
}
.visual-container img { max-width: 80%; border-radius: 8px; }

.dependency-test-cta {
    margin-top: 4rem;
    padding: 2rem;
    background-color: var(--card-background);
    text-align: center;
    border-radius: 8px;
}

/* Solutions Table */
.solutions-table {
    background-color: var(--background-color);
    border-radius: 8px;
    overflow: hidden;
    max-width: 900px;
    margin: 2rem auto;
}
.table-header, .table-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 1.5rem;
}
.table-header {
    background-color: #0f3460;
    font-weight: 700;
    color: var(--white);
}
.table-row {
    border-bottom: 1px solid var(--card-background);
}
.table-row:last-child {
    border-bottom: none;
}
.table-row div:first-child {
    font-weight: 700;
}

/* Roadmap */
.roadmap-container {
    text-align: center;
    margin-top: 3rem;
}
.roadmap-container img {
    max-width: 100%;
}


/* Testimonials */
#temoignages {
    text-align: center;
}
.testimonial-card {
    border-left: none;
    border-top: 4px solid var(--primary-color);
    text-align: left;
}
.testimonial-card img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
    border: 3px solid var(--primary-color);
}
.testimonial-card blockquote {
    font-style: italic;
    color: var(--text-muted);
    border: none;
    padding: 0;
    margin-bottom: 1rem;
}
.testimonial-card cite {
    font-weight: 700;
    color: var(--white);
}

/* Resources */
.resource-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}
.resource-card {
    text-align: center;
}
.resource-card img {
    height: 150px;
    width: auto;
    margin-bottom: 1rem;
}
.resource-card a {
    margin-top: 1rem;
}

/* Final CTA */
.final-cta {
    text-align: center;
}
.final-cta h2 { font-size: 2.8rem; }
.final-cta p {
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    color: var(--text-muted);
    margin-bottom: 2rem;
}
.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem 5%;
    border-top: 1px solid var(--card-background);
    color: var(--text-muted);
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}
.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}
.modal-content {
    background: var(--card-background);
    padding: 2rem;
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    position: relative;
    transform: translateY(-50px);
    transition: transform 0.3s ease;
}
.modal-overlay.active .modal-content {
    transform: translateY(0);
}
.close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 2rem;
    cursor: pointer;
}

#modal-body h3 {
    text-align: center;
    margin-bottom: 2rem;
}

.quiz-question {
    margin-bottom: 1.5rem;
}

.quiz-options {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.quiz-options label {
    display: block;
    padding: 0.8rem;
    background-color: var(--background-color);
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.quiz-options label:hover {
    background-color: #0f3460;
}

.quiz-options input {
    display: none;
}
.quiz-options input:checked + span {
    font-weight: bold;
    color: var(--primary-color);
}
#quiz-result h4 {
    color: var(--danger-color);
    font-size: 1.8rem;
    text-align: center;
}
#quiz-result p {
    text-align: center;
    margin-bottom: 1.5rem;
}
#quiz-result {
    text-align: center;
}


/* Responsive Design */
@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    
    header { padding: 1rem 3%; }
    nav ul { display: none; } /* Simple menu for mobile */

    .hero { flex-direction: column; text-align: center; padding-top: 6rem; }
    .hero-content { order: 2; }
    .hero-visual { order: 1; }
    .hero p.subtitle { text-align: center; }
    
    .final-cta h2 { font-size: 2.2rem; }
    .cta-buttons { flex-direction: column; }
}

