/* ==========================================================================
   Correct IA — Thème (direction artistique)
   Chargé APRÈS style.css et mainForIndex.css : il ne change que l'apparence
   (couleurs, typographie, formes, ombres), jamais le contenu ni le PHP.
   Pour revenir à l'ancien style : retirer la ligne theme.css dans global/header.php.
   ========================================================================== */

:root {
    /* Couleurs de la marque (inchangées) */
    --brand-50: #f0f9fc;
    --brand-100: #dcf0f6;
    --brand-200: #b6e1ee;
    --brand-500: #0d92ba;
    --brand-600: #0b7da1;
    --brand-700: #086d8c;
    --brand-800: #084c60;
    --brand-900: #062f3b;
    --primary-color: var(--brand-500);

    --ink: #0f2230;          /* titres */
    --text: #3d5063;         /* texte courant */
    --muted: #6b7c8d;        /* texte secondaire */
    --border: #e3ebf0;
    --bg: #ffffff;
    --bg-soft: #f5f9fb;

    --gradient-brand: linear-gradient(195deg, var(--brand-500), var(--brand-800));
    --gradient-deep: radial-gradient(60% 80% at 85% 0%, rgba(13, 146, 186, 0.45) 0%, rgba(13, 146, 186, 0) 60%),
                     linear-gradient(160deg, var(--brand-900) 0%, var(--brand-800) 60%, var(--brand-700) 100%);

    --radius-sm: 10px;
    --radius: 14px;
    --radius-lg: 20px;
    --shadow-sm: 0 1px 2px rgba(15, 34, 48, 0.04), 0 2px 8px rgba(15, 34, 48, 0.04);
    --shadow: 0 2px 6px rgba(15, 34, 48, 0.04), 0 12px 32px -8px rgba(8, 76, 96, 0.14);
    --shadow-brand: 0 10px 24px -8px rgba(13, 146, 186, 0.55);

    --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-display: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* --- Base ---------------------------------------------------------------- */
body, html {
    font-family: var(--font-body);
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
    font-family: var(--font-display);
    color: var(--ink);
    letter-spacing: -0.015em;
}

::selection { background: var(--brand-100); color: var(--ink); }

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
    outline: 3px solid rgba(13, 146, 186, 0.35);
    outline-offset: 2px;
}

/* --- En-tête -------------------------------------------------------------- */
header {
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 14px 0;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid rgba(227, 235, 240, 0.8);
}

.logo {
    font-family: var(--font-display);
    font-size: 21px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--ink);
}

header .logo img {
    width: 34px;
    height: 34px;
}

.nav-links a {
    margin-left: 4px;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 15px;
    font-weight: 500;
    transition: background-color 150ms ease, color 150ms ease;
}

.nav-links a:hover {
    background: var(--brand-50);
    color: var(--brand-700);
}

.nav-links .get-started,
.nav-links .get-started:hover {
    margin-left: 10px;
    padding: 10px 18px;
    background: var(--gradient-brand);
    color: #fff;
    border-radius: 12px;
    font-weight: 600;
    box-shadow: var(--shadow-brand);
}

.menu-toggle span { background: var(--ink); }

/* --- Boutons -------------------------------------------------------------- */
.cta-button,
.button-primary,
.cta-primary,
.alt-cta-button,
.alt-cta-button-large,
.cta-button-large,
.blog-hero-cta {
    background: var(--gradient-brand);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-family: var(--font-body);
    font-weight: 600;
    letter-spacing: -0.005em;
    box-shadow: var(--shadow-brand);
    transition: transform 150ms ease, box-shadow 150ms ease, filter 150ms ease;
}

.cta-button:hover,
.button-primary:hover,
.cta-primary:hover,
.alt-cta-button:hover,
.alt-cta-button-large:hover,
.cta-button-large:hover,
.blog-hero-cta:hover {
    background: var(--gradient-brand);
    color: #fff;
    transform: translateY(-1px);
    filter: brightness(1.06);
    box-shadow: 0 14px 28px -10px rgba(13, 146, 186, 0.6);
}

.button-secondary,
.cta-secondary,
.alt-cta-secondary {
    background: #fff;
    color: var(--ink);
    border: 1px solid var(--border);
    border-radius: 12px;
    font-weight: 600;
    box-shadow: var(--shadow-sm);
    transition: border-color 150ms ease, color 150ms ease, transform 150ms ease;
}

.button-secondary:hover,
.cta-secondary:hover,
.alt-cta-secondary:hover {
    background: #fff;
    color: var(--brand-700);
    border-color: var(--brand-200);
    transform: translateY(-1px);
}

/* --- Pastilles ------------------------------------------------------------ */
.extension-badge,
.feature-badge,
.free-offer-badge,
.pricing-badge,
.alt-hero-badge,
.app-badge {
    border-radius: 999px;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.extension-badge {
    background: #fff;
    color: var(--brand-700);
    border: 1px solid var(--brand-100);
    box-shadow: var(--shadow-sm);
}

.feature-badge,
.free-offer-badge {
    background: var(--brand-50);
    color: var(--brand-700);
    border: 1px solid var(--brand-100);
}

.pricing-badge { background: var(--gradient-brand); color: #fff; }

/* --- Titres principaux ---------------------------------------------------- */
.index-title,
.hero h1,
.hero-title,
.alt-hero-title,
.pricing-hero h1,
.blog-hero-title,
.article-title {
    font-family: var(--font-display);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.index-title {
    font-size: clamp(2.1rem, 4.6vw, 3.6rem);
    color: var(--ink);
}

/* Mot-clé mis en valeur dans un titre : <span class="highlight">...</span> */
.highlight {
    background: linear-gradient(120deg, var(--brand-500), var(--brand-800));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-title,
.alt-section-title,
.testimonials-title,
.recent-posts-title,
.pricing-faq h2 {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(1.75rem, 3vw, 2.4rem);
    letter-spacing: -0.025em;
    color: var(--ink);
}

.hero-description-main,
.testimonials-subtitle {
    color: var(--text);
}

/* --- Accueil : hero clair avec halo de marque ----------------------------- */
.hero {
    position: relative;
    background:
        radial-gradient(50% 60% at 85% 10%, rgba(13, 146, 186, 0.14) 0%, rgba(13, 146, 186, 0) 70%),
        radial-gradient(40% 50% at 0% 40%, rgba(8, 76, 96, 0.07) 0%, rgba(8, 76, 96, 0) 70%),
        var(--bg);
}

.hero .video-container {
    padding: 8px;
    background: var(--gradient-brand);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 30px 60px -20px rgba(8, 76, 96, 0.35), 0 0 0 1px rgba(8, 76, 96, 0.06);
}

/* --- Pages intérieures : bandeau aux couleurs de la marque ---------------- */
.hero-section,
.pricing-hero,
.blog-hero-section,
.alt-hero-section,
.article-hero {
    background: var(--gradient-deep);
    color: #fff;
}

.alt-hero-title { color: #fff; }

.alt-hero-badge {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.22);
}

.hero-section .hero-title,
.blog-hero-title {
    color: #fff;
}

.hero-section .hero-description,
.alt-hero-description,
.pricing-hero p,
.blog-hero-description {
    color: rgba(255, 255, 255, 0.78);
}

.pricing-hero h1 {
    background: none;
    -webkit-text-fill-color: #fff;
    color: #fff;
}

.featured-label {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
}

/* --- Sections et fonds alternés ------------------------------------------- */
.features,
.faq,
.demo-section,
.alt-intro-section,
.alt-differences-section {
    background: var(--bg-soft);
}

/* --- Cartes --------------------------------------------------------------- */
.feature-card,
.compatibility-card,
.testimonial-card,
.blog-card,
.alt-intro-card,
.alt-difference-block,
.benefit-card,
.feature {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}

.feature-card:hover,
.compatibility-card:hover,
.testimonial-card:hover,
.blog-card:hover,
.alt-intro-card:hover,
.alt-difference-block:hover,
.benefit-card:hover {
    transform: translateY(-3px);
    border-color: var(--brand-100);
    box-shadow: var(--shadow);
}

.feature-card h3,
.compatibility-card h3,
.alt-intro-card h3,
.benefit-title,
.blog-card-title a {
    font-family: var(--font-display);
    color: var(--ink);
    letter-spacing: -0.02em;
}

.feature-card p,
.compatibility-card p,
.alt-intro-card p,
.benefit-description,
.blog-card-excerpt,
.testimonial-content {
    color: var(--text);
}

.feature-icon,
.benefit-icon,
.alt-intro-icon {
    border-radius: var(--radius);
}

/* Icônes blanches : sur le dégradé de la marque */
.feature-icon {
    background: var(--gradient-brand);
    box-shadow: var(--shadow-brand);
}

.feature-image img {
    border-radius: var(--radius);
}

/* Témoignages */
.testimonial-avatar {
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px var(--border);
}

/* --- Offre gratuite (accueil) --------------------------------------------- */
.free-offer-card {
    border-radius: 24px;
    border: 1px solid var(--brand-100);
    background:
        radial-gradient(60% 80% at 100% 0%, rgba(13, 146, 186, 0.12) 0%, rgba(13, 146, 186, 0) 70%),
        linear-gradient(180deg, #ffffff 0%, var(--brand-50) 100%);
    box-shadow: var(--shadow);
}

.free-offer-stat {
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.free-offer-stat-value { font-family: var(--font-display); letter-spacing: -0.03em; }

/* --- Tarifs --------------------------------------------------------------- */
.pricing-plan {
    border: 1px solid var(--border);
    border-radius: 24px;
    box-shadow: var(--shadow);
}

.pricing-plan.featured {
    border: 2px solid var(--brand-500);
    box-shadow: 0 30px 60px -24px rgba(13, 146, 186, 0.45);
}

.pricing-plan h2,
.pricing-plan .price {
    font-family: var(--font-display);
    letter-spacing: -0.02em;
}

.pricing-plan:first-child .cta-button {
    background: #fff;
    color: var(--brand-700);
    border: 1px solid var(--brand-200);
    box-shadow: none;
}

.pricing-guarantee-inner {
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    background: #fff;
    box-shadow: var(--shadow-sm);
}

/* --- FAQ ------------------------------------------------------------------ */
.faq-item {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.faq-question {
    font-family: var(--font-body);
    font-weight: 600;
    color: var(--ink);
}

.faq-question svg { color: var(--brand-500); }

.faq-item.active { border-color: var(--brand-200); }

.faq-answer { color: var(--text); line-height: 1.7; }

/* --- Bandeaux d'appel à l'action ------------------------------------------ */
.cta,
.final-cta,
.alt-final-cta,
.article-cta {
    background: var(--gradient-deep);
    color: #fff;
}

.cta h2,
.final-cta h2,
.alt-final-cta h2,
.article-cta h2 {
    color: #fff;
    font-family: var(--font-display);
    letter-spacing: -0.02em;
}

.cta p,
.final-cta p,
.alt-final-cta p,
.article-cta p {
    color: rgba(255, 255, 255, 0.8);
}

/* Bouton blanc sur fond de marque */
.cta .button,
.final-cta .cta-button-large,
.alt-final-cta .alt-cta-button-large,
.article-cta .cta-button {
    background: #fff;
    color: var(--brand-800);
    border: none;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.35);
}

.cta .button:hover,
.final-cta .cta-button-large:hover,
.alt-final-cta .alt-cta-button-large:hover,
.article-cta .cta-button:hover {
    background: #fff;
    color: var(--brand-900);
}

.article-cta { border-radius: 24px; }

.cta-logo {
    border-radius: 18px;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.4);
}

/* --- Tableau comparatif (pages « alternative ») --------------------------- */
.alt-comparison-table,
.comparison-table {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

/* --- Article du blog (contenu généré depuis la base) ---------------------- */
.article-content {
    font-size: 18px;
    line-height: 1.75;
    color: var(--text);
}

.article-content h2,
.article-content h3 {
    font-family: var(--font-display);
    color: var(--ink);
    letter-spacing: -0.025em;
    line-height: 1.25;
    margin-top: 2em;
}

.article-hero .article-title { color: #fff; }

.article-content a { color: var(--brand-600); text-decoration-thickness: 1px; text-underline-offset: 3px; }

.article-content blockquote {
    margin: 1.5em 0;
    padding: 0.5em 1.25em;
    border-left: 3px solid var(--brand-500);
    background: var(--brand-50);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.article-content img { max-width: 100%; height: auto; border-radius: var(--radius); }

/* --- Pied de page --------------------------------------------------------- */
footer {
    background:
        radial-gradient(50% 120% at 90% 0%, rgba(13, 146, 186, 0.25) 0%, rgba(13, 146, 186, 0) 60%),
        var(--brand-900);
}

.footer-brand .logo,
.footer-brand .logo span {
    color: #fff;
}

.footer-brand p,
.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
}

.footer-nav h4 {
    font-family: var(--font-display);
    color: #fff;
    letter-spacing: -0.01em;
}

.footer-nav ul li a,
.footer-socials a {
    color: rgba(255, 255, 255, 0.68);
    transition: color 150ms ease;
}

.footer-nav ul li a:hover,
.footer-socials a:hover {
    color: #fff;
}

.footer-bottom { border-top-color: rgba(255, 255, 255, 0.1); }

/* --- Mobile --------------------------------------------------------------- */
/* Même seuil que le menu mobile de style.css */
@media (max-width: 968px) {
    header { padding: 10px 0; }

    /* Menu déroulant accroché juste sous l'en-tête collant */
    .nav-links {
        top: 100%;
        padding: 8px 16px 16px;
        background: #fff;
        border-bottom: 1px solid var(--border);
        box-shadow: 0 16px 32px -16px rgba(15, 34, 48, 0.2);
    }

    .nav-links a { margin: 2px 0; padding: 12px; }

    .nav-links .get-started { margin: 10px 0 0; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; }
}

/* --- Correcteur en ligne (son CSS est chargé après ce thème) -------------- */
html body .correcteur-mini-hero {
    background: var(--gradient-deep);
}

html body .correcteur-mini-hero h1 {
    color: #fff;
    letter-spacing: -0.03em;
}
