/* --- Variables & reset --- */

:root {
    --bg-main: #020617;
    --bg-elevated: #02081f;
    --bg-elevated-soft: #050b25;
    --border-subtle: rgba(148, 163, 184, 0.2);

    --text-main: #e5e7eb;
    --text-muted: #9ca3af;
    --text-strong: #f9fafb;

    --accent: #0ea5e9;
    --accent-soft: rgba(14, 165, 233, 0.1);
    --accent-strong: #38bdf8;

    --danger: #f97373;

    --radius-lg: 18px;
    --radius-xl: 24px;
    --shadow-soft: 0 24px 60px rgba(15, 23, 42, 0.75);

    --font-main: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

html, body {
    height: 100%;
}

body {
    font-family: var(--font-main);
    background: radial-gradient(circle at top, #02081f, #020617 55%);
    color: var(--text-main);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

/* --- Layout helpers --- */

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.page main {
    padding-bottom: 80px;
}

/* --- Header & navigation --- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: linear-gradient(to bottom, rgba(2,6,23,0.98), rgba(2,6,23,0.92) 60%, transparent);
    backdrop-filter: blur(16px);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 0;
    gap: 32px;
}

/* Logo du header */
.header-logo {
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
    font-weight: 700;
    font-size: 1.4rem;
    letter-spacing: .03em;
    text-decoration: none;
}

/* Contexta en bleu, Lingua en blanc */
.header-logo .contexta {
    color: #3b82f6 !important;  /* bleu */
}

.header-logo .lingua {
    color: #ffffff !important;  /* blanc */
}

.logo-main {
    color: #ffffff;
}

.logo-accent {
    color: var(--accent);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 18px;
    font-size: 0.95rem;
}

.nav-link {
    color: var(--text-muted);
    padding: 8px 0;
    position: relative;
    transition: color .18s ease;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(to right, var(--accent), #6366f1);
    transition: width .18s ease;
}

.nav-link:hover {
    color: var(--text-main);
}

.nav-link.active {
    color: var(--text-strong);
}

.nav-link.active::after {
    width: 24px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* --- Buttons --- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 500;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform .12s ease, box-shadow .12s ease, background .12s ease, border-color .12s ease;
    white-space: nowrap;
}

.btn-primary {
    background-image: linear-gradient(135deg, var(--accent), #6366f1);
    color: #ffffff;
    box-shadow: 0 12px 30px rgba(37, 99, 235, 0.45);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 40px rgba(37, 99, 235, 0.6);
}

.btn-secondary {
    background-color: rgba(15, 23, 42, 0.9);
    color: var(--text-main);
    border-color: rgba(148, 163, 184, 0.35);
}

.btn-secondary:hover {
    border-color: var(--accent-strong);
    background-color: rgba(15, 23, 42, 1);
}

.btn-ghost {
    background: transparent;
    color: var(--text-muted);
    border-color: rgba(148, 163, 184, 0.35);
}

.btn-ghost:hover {
    color: var(--text-main);
    border-color: var(--accent);
}

.btn-large {
    padding: 13px 26px;
    font-size: 1rem;
}

.btn-full {
    width: 100%;
}

/* --- Hero sections --- */

.hero {
    padding: 56px 0 40px;
}

.hero-inner {
    padding-top: 40px;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(280px, 1.4fr);
    gap: 40px;
    align-items: start;
}

.hero-grid-simple {
    grid-template-columns: minmax(0, 1fr);
}

.hero-content h1 {
    font-size: clamp(2.4rem, 3vw, 2.8rem);
    line-height: 1.15;
    color: var(--text-strong);
    margin-bottom: 18px;
}

.hero-subtitle {
    color: var(--text-muted);
    font-size: 1rem;
    max-width: 650px;
}

.hero-actions {
    margin-top: 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.eyebrow {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.17em;
    color: var(--accent-strong);
    margin-bottom: 10px;
}

.eyebrow.light {
    color: rgba(226, 232, 240, 0.85);
}

/* --- Camille card --- */

.camille-card {
    background: radial-gradient(circle at top, #020d33, #020617 45%);
    border-radius: var(--radius-xl);
    padding: 20px 20px 18px;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(148, 163, 184, 0.25);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.camille-photo-wrapper {
    border-radius: 18px;
    overflow: hidden;
    background: #020617;
}

.camille-photo {
    width: 100%;
    height: auto;
}

.camille-text h3 {
    font-size: 1rem;
    color: var(--text-strong);
}

.camille-role {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.camille-quote {
    font-size: 0.9rem;
    color: var(--text-main);
}

.camille-link {
    display: inline-block;
    margin-top: 10px;
    font-size: 0.9rem;
    color: var(--accent-strong);
}

/* --- Sections & cards --- */

.section {
    padding: 40px 0;
}

.section-alt {
    background: radial-gradient(circle at top left, #020b2a, #020617 55%);
}

.section h2 {
    font-size: 1.8rem;
    color: var(--text-strong);
    margin-bottom: 14px;
}

.section-intro {
    color: var(--text-muted);
    max-width: 640px;
    margin-bottom: 26px;
    font-size: 0.98rem;
}

.grid {
    display: grid;
    gap: 20px;
}

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

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

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

.card {
    background: rgba(15, 23, 42, 0.95);
    border-radius: var(--radius-lg);
    padding: 20px 22px;
    border: 1px solid var(--border-subtle);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.7);
}

.feature-card h3 {
    font-size: 1.15rem;
    margin-bottom: 10px;
    color: var(--text-strong);
}

.feature-card p + p {
    margin-top: 8px;
}

/* --- Lists --- */

.list-check {
    list-style: none;
    margin-top: 10px;
}

.list-check li {
    position: relative;
    padding-left: 20px;
    font-size: 0.95rem;
    color: var(--text-main);
    margin-bottom: 4px;
}

.list-check li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--accent-strong);
    font-size: 0.85rem;
}

/* --- Pricing cards --- */

.pricing-grid {
    align-items: stretch;
}

.pricing-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pricing-card h3 {
    font-size: 1.1rem;
    color: var(--text-strong);
}

.pricing-price {
    font-size: 1.5rem;
    font-weight: 600;
    color: #ffffff;
}

.pricing-credits {
    font-size: 0.95rem;
    color: var(--accent-strong);
}

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

.pricing-list {
    margin-top: 8px;
    margin-bottom: 14px;
}

.pricing-list li {
    font-size: 0.9rem;
    color: var(--text-main);
    padding-left: 16px;
    position: relative;
    margin-bottom: 4px;
}

.pricing-list li::before {
    content: "•";
    position: absolute;
    left: 2px;
    color: var(--accent-strong);
}

.pricing-card-highlight {
    background: radial-gradient(circle at top, #020f3d, #020617 55%);
    border-color: rgba(37, 99, 235, 0.6);
}

.badge {
    position: absolute;
    top: 16px;
    right: 18px;
    padding: 3px 8px;
    font-size: 0.75rem;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent-strong);
}

/* --- Langues grid --- */

.lang-grid {
    align-items: start;
}

.lang-card h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.lang-card p {
    font-size: 0.92rem;
}

.lang-card ul {
    margin-top: 10px;
    font-size: 0.9rem;
    color: var(--text-main);
}

.lang-card li + li {
    margin-top: 2px;
}

.lang-note {
    margin-top: 10px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* --- FAQ --- */

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.faq-item {
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-subtle);
    background: rgba(15, 23, 42, 0.96);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.7);
}

.faq-question {
    width: 100%;
    text-align: left;
    background: none;
    border: 0;
    color: var(--text-strong);
    font-size: 0.98rem;
    padding: 14px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.faq-question::after {
    content: "▾";
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-left: 10px;
    transition: transform .15s ease;
}

.faq-question.open::after {
    transform: rotate(-180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 18px;
    transition: max-height .2s ease;
}

.faq-answer p {
    padding-bottom: 14px;
    font-size: 0.92rem;
    color: var(--text-main);
}

/* --- Contact --- */

.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(260px, 1.3fr);
    gap: 24px;
}

.contact-form h2 {
    margin-bottom: 14px;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 12px;
    font-size: 0.9rem;
}

.form-field span {
    color: var(--text-muted);
}

.form-field input,
.form-field textarea {
    background: #020617;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.4);
    padding: 8px 10px;
    color: var(--text-main);
    font: inherit;
}

.form-field input:focus,
.form-field textarea:focus {
    outline: none;
    border-color: var(--accent-strong);
    box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.5);
}

.form-note {
    margin-top: 8px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* --- CTA band --- */

.cta-band {
    padding: 40px 0;
    background: linear-gradient(120deg, #2563eb, #4f46e5);
    margin-top: 40px;
}

.cta-band-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.cta-band h2 {
    color: #ffffff;
    margin-bottom: 6px;
}

.cta-band-text {
    color: rgba(226, 232, 240, 0.9);
}

.cta-band .eyebrow {
    color: rgba(226, 232, 240, 0.7);
}

/* --- Footer --- */

.site-footer {
    border-top: 1px solid rgba(15, 23, 42, 0.9);
    background: #020617;
    padding: 16px 0 20px;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer-nav {
    display: flex;
    gap: 14px;
}

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

/* --- 404 --- */

.hero-404 .hero-content h1 {
    font-size: 2.6rem;
}

/* --- Responsive --- */

@media (max-width: 960px) {
    .header-inner {
        gap: 16px;
    }
    .main-nav {
        display: none; /* simplification mobile, nav burger possible plus tard */
    }
    .hero-grid,
    .contact-grid {
        grid-template-columns: minmax(0, 1fr);
    }
    .hero {
        padding-top: 32px;
    }
    .camille-card {
        max-width: 360px;
        margin: 0 auto;
    }
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: minmax(0, 1fr);
    }
    .cta-band-inner {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 640px) {
    .header-inner {
        padding: 14px 0;
    }
    .header-actions .btn-ghost {
        display: none;
    }
    .hero-content h1 {
        font-size: 2.1rem;
    }
}
