/* ==========================================================================
   pages.css — styles partagés des pages de contenu (consultation, ressources,
   articles IA, à propos). Réutilise les tokens de styles.css (:root global).
   Charte canonique Easyflowy : navy #12335e, bleu #1d5fb4, fond #f4f6f8.
   ========================================================================== */

.subpage {
    padding-top: 90px; /* dégagement sous le header fixe */
}

/* Fil d'Ariane ------------------------------------------------------------ */
.breadcrumb {
    max-width: 1100px;
    margin: 0 auto;
    padding: 18px 24px 0;
    font-size: 0.85rem;
    color: var(--text-secondary);
}
.breadcrumb a { color: var(--text-secondary); text-decoration: none; }
.breadcrumb a:hover { color: var(--primary-color); }
.breadcrumb .sep { margin: 0 8px; opacity: 0.5; }

/* Hero de page ------------------------------------------------------------ */
.page-hero {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 24px 24px;
}
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--secondary-color);
    background: rgba(29, 95, 180, 0.08);
    border: 1px solid rgba(29, 95, 180, 0.18);
    padding: 6px 14px;
    border-radius: 999px;
    margin-bottom: 20px;
}
.page-hero h1 {
    font-size: clamp(2rem, 4.5vw, 3.1rem);
    line-height: 1.1;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    max-width: 20ch;
}
.page-hero h1 .grad {
    background: var(--gradient-main);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.page-hero .lead {
    margin-top: 20px;
    font-size: 1.2rem;
    line-height: 1.6;
    color: var(--text-secondary);
    max-width: 62ch;
}
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 30px;
}

/* Bloc de contenu --------------------------------------------------------- */
.section-block {
    max-width: 1100px;
    margin: 0 auto;
    padding: 44px 24px;
}
.section-block.narrow { max-width: 820px; }
.section-block h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.01em;
    margin-bottom: 12px;
}
.section-block h3 { font-size: 1.15rem; font-weight: 700; color: var(--text-primary); }
.section-block p { color: var(--text-secondary); line-height: 1.75; font-size: 1.05rem; }
.section-block .muted-intro { max-width: 65ch; margin-bottom: 28px; }
.section-block.tinted { background: linear-gradient(160deg, rgba(18,51,94,0.03), rgba(29,95,180,0.02)); }

/* Cartes d'étapes / méthode ---------------------------------------------- */
.step-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 22px;
    margin-top: 12px;
}
.step-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 28px;
    box-shadow: var(--shadow-sm);
    position: relative;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.step-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.step-card .step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px; height: 42px;
    border-radius: 12px;
    background: var(--gradient-main);
    color: #fff;
    font-weight: 800;
    font-size: 1.1rem;
    margin-bottom: 16px;
}
.step-card h3 { margin-bottom: 8px; }
.step-card p { font-size: 0.98rem; }

/* Liste de bénéfices ------------------------------------------------------ */
.check-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 14px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--text-secondary); line-height: 1.6; }
.check-list li i { color: var(--secondary-color); margin-top: 4px; flex-shrink: 0; }
.check-list.two-col { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

/* Bandeau de preuves (projets réels) ------------------------------------- */
.proof-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
    margin-top: 10px;
}
.proof-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: 14px;
    padding: 22px;
    box-shadow: var(--shadow-sm);
}
.proof-card .tag { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--secondary-color); }
.proof-card h3 { margin: 6px 0 8px; font-size: 1.05rem; }
.proof-card p { font-size: 0.92rem; line-height: 1.6; }
.proof-card a { color: var(--primary-color); font-weight: 600; text-decoration: none; font-size: 0.9rem; }
.proof-card a:hover { text-decoration: underline; }

/* Rangée de puces techno (stack) ----------------------------------------- */
.pill-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.pill {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: 999px;
    padding: 9px 16px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
    transition: border-color 0.2s ease, transform 0.2s ease;
}
.pill:hover { border-color: var(--secondary-color); transform: translateY(-2px); }
.pill i { color: var(--secondary-color); }

/* FAQ (accordéon natif) --------------------------------------------------- */
.faq { display: grid; gap: 12px; margin-top: 10px; }
.faq details {
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 4px 22px;
    box-shadow: var(--shadow-sm);
}
.faq summary {
    cursor: pointer;
    list-style: none;
    padding: 18px 0;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: "+";
    font-size: 1.4rem;
    font-weight: 400;
    color: var(--secondary-color);
    transition: transform 0.2s ease;
    flex-shrink: 0;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 20px; margin: 0; font-size: 1rem; }

/* Bandeau d'appel à l'action --------------------------------------------- */
.cta-band {
    background: var(--gradient-main);
    color: #fff;
    text-align: center;
    padding: 56px 24px;
    margin-top: 20px;
}
.cta-band h2 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; margin-bottom: 12px; }
.cta-band p { color: rgba(255,255,255,0.9); max-width: 55ch; margin: 0 auto 26px; line-height: 1.6; }
.cta-band .btn-primary { background: #fff; color: var(--primary-color); }
.cta-band .btn-primary:hover { background: #eef2f7; }
.cta-band .btn-secondary { border-color: rgba(255,255,255,0.6); color: #fff; }
.cta-band .btn-secondary:hover { background: rgba(255,255,255,0.12); }
.cta-band .cta-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* Formulaire simple ------------------------------------------------------- */
.simple-form { max-width: 560px; margin: 0 auto; display: grid; gap: 16px; }
.simple-form .form-group { display: grid; gap: 6px; text-align: left; }
.simple-form label { font-weight: 600; color: var(--text-primary); font-size: 0.9rem; }
.simple-form input, .simple-form textarea {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 12px 14px;
    font: inherit;
    color: var(--text-primary);
}
.simple-form input:focus, .simple-form textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(29,95,180,0.15);
}
.form-status { font-size: 0.95rem; font-weight: 600; min-height: 1.2em; }
.form-status.ok { color: #1e6b3a; }
.form-status.err { color: #a32020; }

/* Boutons — garantir flex + espacement icône/texte sur les pages de contenu.
   styles.css a une 2e définition .btn-primary/.btn-secondary (display:inline-block,
   sans gap) qui écrase le .btn de base et colle l'icône au texte. On rétablit ici
   avec une spécificité supérieure (.subpage .btn), sans toucher l'accueil. */
.subpage .btn,
.cta-band .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    border-radius: 10px;
    line-height: 1;
}
.subpage .btn i,
.cta-band .btn i { font-size: 0.95em; }
.simple-form button[type="submit"] { justify-self: start; }

@media (max-width: 640px) {
    .page-hero h1 { max-width: none; }
    .hero-actions .btn { width: 100%; justify-content: center; }
    .simple-form button[type="submit"] { justify-self: stretch; }
}
