/*
Theme Name: GeneratePress Child
Theme URI: https://fabio-plugins.com
Description: Child theme for GeneratePress – Fabio AI Chatbot
Author: Fabio PLugins
Author URI: https://fabio-plugins.com
Template: generatepress
Version: 1.0.0
*/

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

/* ==================================================
   Typography – Global
   ================================================== */

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont,
                 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

/* ==================================================
   Typography – Headings
   ================================================== */

h1,
h2 {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont,
                 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    font-weight: 600;
    letter-spacing: -0.02em;
}

/* ==================================================
   Fabio AI Chatbot – SaaS Color System
   ================================================== */

:root {
    --fabio-primary: #39D353;
    --fabio-primary-hover: #2BB842;
    --fabio-accent: #F4A261;
    --fabio-text-main: #243447;      /* bleu-gris doux, confiance */
    --fabio-text-secondary: #5B6B7A; /* plus clair, très lisible */
    --fabio-bg-light: #FAFAFA;
    --fabio-border: #E5E7EB;
}

/* ==================================================
   Typography – FORCE headings color (GeneratePress)
   ================================================== */

h1,
h2,
h3,
h4,
.entry-title,
.wp-block-heading,
.site h1,
.site h2,
.site h3,
.inside-article h1,
.inside-article h2,
.inside-article h3,
.entry-content h1,
.entry-content h2,
.entry-content h3 {
    color: var(--fabio-text-main) !important;
}

p,
.entry-content p,
li {
    color: var(--fabio-text-secondary) !important;
}

/* ==================================================
   Global base
   ================================================== */

body {
    color: var(--fabio-text-main);
    background-color: var(--fabio-bg-light);
}

p {
    color: var(--fabio-text-secondary);
}

/* ==================================================
   Gutenberg buttons → align with Fabio CTA
   ================================================== */
.wp-block-button__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    background-color: var(--fabio-primary);
    color: #ffffff !important;

    font-weight: 600;
    font-size: 16px;
    line-height: 1.2;

    padding: 14px 28px;
    border-radius: 12px;

    text-decoration: none;
    cursor: pointer;

    box-shadow: 0 8px 22px rgba(57, 211, 83, 0.35);
    transition: background-color 0.2s ease,
                transform 0.2s ease,
                box-shadow 0.2s ease;
}

.wp-block-button__link:hover {
    background-color: var(--fabio-primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 12px 30px rgba(43, 184, 66, 0.45);
}

/* Outline style */
.wp-block-button.is-style-outline .wp-block-button__link {
    background: transparent;
    color: var(--fabio-primary) !important;
    border: 2px solid var(--fabio-primary);
}

/* ==================================================
   Header layout
   ================================================== */

.inside-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.main-navigation .main-nav ul li a {
    font-weight: 600;
}

/* ==================================================
   Hero Section
   ================================================== */

.fabio-hero {
    padding: 56px 20px;
    background: transparent;
}

.fabio-container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 70px 60px;

    background-color: #ffffff;
    border-radius: 10px;

    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);

    text-align: center;
}

.fabio-hero-title {
    font-size: 42px;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--fabio-text-main);
}

.fabio-hero-text {
    font-size: 18px;
    line-height: 1.6;
    max-width: 760px;
    margin: 0 auto 35px;
    color: var(--fabio-text-secondary);
}

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

.footer-widgets {
    border-top: 1px solid var(--fabio-border);
    padding-top: 30px;
}

.fabio-footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.fabio-footer-links li {
    margin: 8px 0;
}

.fabio-footer-links a {
    color: var(--fabio-text-secondary);
    text-decoration: none;
    font-weight: 600;
}

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

/* ==================================================
   Homepage (Hero full width + cleanup)
   ================================================== */

.page-id-14 .entry-title {
    display: none;
}

.page-id-14 .inside-article,
.page-id-14 .entry-content {
    padding: 0;
}

/* TEST – Force background absolutely everywhere (GeneratePress full coverage) */
html,
body,
.site,
.site-header,
.inside-header,
.main-navigation,
.inside-navigation,
.main-nav,
.menu-bar-items,
.site-content,
.content-area,
.inside-article,
.site-footer,
.inside-footer-widgets,
.footer-widgets,
.site-info,
.inside-site-info,
.footer-bar,
.before-footer,
.after-footer {
    background-color: #e6f2ff !important;
}

/* ==================================================
   Responsive – Mobile fixes
   ================================================== */

@media (max-width: 768px) {

    .fabio-hero {
        padding: 48px 16px;
    }

    .fabio-container {
        width: 100%;
        max-width: 92%;
        padding: 40px 20px;
    }

    .fabio-hero-title {
        font-size: 30px;
        line-height: 1.25;
    }

    .fabio-hero-text {
        font-size: 16px;
        line-height: 1.6;
    }

        .fabio-section {
        padding: 32px 16px;
    }

    .fabio-hero {
        padding: 40px 16px;
    }

    /* =========================================
   Mobile header – Title on top, burger below
   ========================================= */
.inside-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.inside-header {
    padding-left: 16px;
    padding-right: 16px;
}

.site-branding {
    width: 100%;
    white-space: normal;
}

.main-navigation {
    width: 100%;
}

.main-navigation .menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 44px;
    padding: 0;
}

    /* Réduction forte du titre du site sur mobile */
    .site-title {
        font-size: clamp(12px, 3.2vw, 15px);
        line-height: 1.2;
        max-width: 100%;
        overflow-wrap: anywhere;
    }

}

.fabio-trust-cta {
    margin-top: 40px;
    text-align: center;
}

/* Fabio – How it works accordion */
.fabio-accordion details {
  border: 1px solid #eee;
  border-radius: 14px;
  background: #fff;
  margin-bottom: 14px;
  overflow: hidden;
}

.fabio-accordion summary {
  cursor: pointer;
  padding: 18px;
  font-size: 18px;
  font-weight: 600;
  list-style: none;
}

.fabio-accordion summary::-webkit-details-marker {
  display: none;
}

.fabio-accordion-content {
  padding: 0 18px 18px;
  line-height: 1.7;
  color: #333;
}

.fabio-accordion details[open] summary {
  background: #f7f7ff;
}

.fabio-accordion-content {
  animation: fadeIn 0.25s ease-in;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Accordion icon + / - */
.fabio-accordion summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}

/* Remove default marker */
.fabio-accordion summary::-webkit-details-marker {
  display: none;
}

/* Plus icon (closed state) */
.fabio-accordion summary::after {
  content: "+";
  font-size: 22px;
  font-weight: 600;
  color: #4f46e5;
  transition: transform 0.2s ease;
}

/* Minus icon (open state) */
.fabio-accordion details[open] summary::after {
  content: "−";
}

.fabio-accordion details[open] summary::after {
  transform: rotate(180deg);
}

.fabio-accordion details[open] summary {
  background: #f7f7ff;
}
/* =========================================
   Fabio AI Chatbot – Centered layout
   Page: Why Do You Need Fabio AI Chatbot
   ========================================= */

/* Center section headers (titles + intro text) */
#how-it-works-1 header,
#how-it-works-2 header,
#how-it-works-3 header,
#how-it-works-4 header,
#how-it-works-5 header,
#how-it-works-6 header {
    text-align: center;
}

/* Center accordion titles (summary) */
#how-it-works-1 summary,
#how-it-works-2 summary,
#how-it-works-3 summary,
#how-it-works-4 summary,
#how-it-works-5 summary,
#how-it-works-6 summary {
    text-align: center;
}

/* Keep accordion content readable */
#how-it-works-1 .fabio-accordion-content,
#how-it-works-2 .fabio-accordion-content,
#how-it-works-3 .fabio-accordion-content,
#how-it-works-4 .fabio-accordion-content,
#how-it-works-5 .fabio-accordion-content,
#how-it-works-6 .fabio-accordion-content {
    text-align: left;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

/* Center CTA buttons */
.fabio-trust-cta,
.fabio-trust-cta a {
    text-align: center;
}

/* Improve spacing on mobile */
@media (max-width: 768px) {
    #how-it-works-1,
    #how-it-works-2,
    #how-it-works-3,
    #how-it-works-4,
    #how-it-works-5,
    #how-it-works-6 {
        padding-left: 16px;
        padding-right: 16px;
    }
}

/* =========================================
   Fabio – Homepage unified system
   ========================================= */

.fabio-section {
    padding: 40px 20px;
}

@media (max-width: 768px) {
    .fabio-section {
        padding: 40px 16px;
    }
}

.fabio-wrap {
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
}

.fabio-stack > * + * {
    margin-top: 20px;
}

.fabio-title {
    font-size: 32px;
    line-height: 1.25;
    margin-bottom: 12px;
}

.fabio-title--xl {
    font-size: clamp(36px, 5vw, 52px);
    line-height: 1.15;
}

.fabio-text {
    font-size: 16px;
    line-height: 1.7;
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}

.fabio-text--lead {
    font-size: 18px;
}

.fabio-text--small {
    font-size: 14px;
    opacity: 0.85;
}

.fabio-grid {
    display: grid;
    gap: 32px;
    margin-top: 32px;
}

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

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

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

.fabio-grid-span {
    grid-column: 1 / -1;
    text-align: center;
}

.fabio-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
}

.fabio-card-title {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
}

.fabio-list {
    list-style: none;
    padding: 0;
    margin: 32px auto;
    max-width: 560px;
    text-align: left;
}

.fabio-list li {
    padding-left: 28px;
    margin-bottom: 12px;
    position: relative;
}

.fabio-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--fabio-primary);
    font-weight: 700;
}

/* ================================
   CTA – Bulletproof centered
   ================================ */

.fabio-cta-wrap {
    display: grid;
    place-items: center;

    width: fit-content;
    margin: 10px auto; /* 👈 centre + espace haut/bas */

    background-color: var(--fabio-primary);
    border-radius: 12px;

    height: 52px;
    padding: 0 28px;

    box-shadow: 0 8px 22px rgba(57, 211, 83, 0.35);
    transition: background-color 0.2s ease,
                transform 0.2s ease,
                box-shadow 0.2s ease;
}

.fabio-cta-wrap:hover {
    background-color: var(--fabio-primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 12px 30px rgba(43, 184, 66, 0.45);
}

/* Texte du bouton */
.fabio-cta-wrap .fabio-cta {
    display: block;
    color: #ffffff !important;

    font-size: 16px;
    font-weight: 600;
    line-height: 1;

    text-decoration: none;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .fabio-cta-wrap {
        width: 100%;
        max-width: 320px;
    }

    .fabio-cta-wrap .fabio-cta {
        width: 100%;
        text-align: center;
    }
}

.fabio-title--spaced {
    margin-top: 60px;
}

/* =========================================
   Header – Fix mobile logo + title
   ========================================= */

/* Logo + titre sur une seule ligne */
.site-branding {
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: normal;
}

/* Titre du site responsive */
.site-title {
    font-size: clamp(16px, 4vw, 22px);
    line-height: 1.2;
    margin: 0;
}

/* Logo sécurisé pour mobile */
.site-logo img {
    max-height: 32px;
    width: auto;
}

/* =========================================
   Reduce Gutenberg vertical gaps
   ========================================= */

.wp-block-group,
.wp-block-columns {
    margin-top: 0;
    margin-bottom: 0;
}

.wp-block-group + .wp-block-group,
.wp-block-columns + .wp-block-columns {
    margin-top: 24px;
}

.entry-content h2 {
    margin-top: 0;
}

.entry-content p {
    margin-bottom: 16px;
}

/* ==================================================
   BBPRESS – Fabio Modern Style
   ================================================== */

#bbpress-forums {
    font-family: 'Inter', sans-serif;
    background: transparent;
}

/* Container spacing */
#bbpress-forums ul.bbp-forums,
#bbpress-forums ul.bbp-topics,
#bbpress-forums ul.bbp-replies {
    border: none;
}

/* Forum / Topic rows as cards */
#bbpress-forums li.bbp-body ul.forum,
#bbpress-forums li.bbp-body ul.topic {
    background: #ffffff;
    border-radius: 14px;
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.06);
    border: 1px solid var(--fabio-border);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

#bbpress-forums li.bbp-body ul.forum:hover,
#bbpress-forums li.bbp-body ul.topic:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 40px rgba(0,0,0,0.08);
}

/* Titles */
#bbpress-forums .bbp-forum-title,
#bbpress-forums .bbp-topic-title a {
    color: var(--fabio-text-main);
    font-weight: 600;
    font-size: 18px;
    text-decoration: none;
}

#bbpress-forums .bbp-topic-title a:hover {
    color: var(--fabio-primary);
}

/* Meta text */
#bbpress-forums .bbp-forum-content,
#bbpress-forums .bbp-topic-meta,
#bbpress-forums .bbp-author-name {
    color: var(--fabio-text-secondary);
    font-size: 14px;
}

/* Replies content */
#bbpress-forums .bbp-reply-content {
    background: #ffffff;
    border-radius: 14px;
    padding: 20px;
    border: 1px solid var(--fabio-border);
    box-shadow: 0 8px 22px rgba(0,0,0,0.04);
}

/* Buttons */
#bbpress-forums .button,
#bbpress-forums .bbp-submit-wrapper button {
    background-color: var(--fabio-primary);
    color: #fff;
    border-radius: 10px;
    padding: 10px 20px;
    font-weight: 600;
    border: none;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

#bbpress-forums .button:hover,
#bbpress-forums .bbp-submit-wrapper button:hover {
    background-color: var(--fabio-primary-hover);
    transform: translateY(-1px);
}

/* BBPRESS – padding gauche du contenu */
#bbpress-forums .bbp-reply-content,
#bbpress-forums .bbp-topic-content {
  padding-left: 24px !important;
}

p.fabio-text.fabio-text--lead {
    color: #1E40AF !important;
}