/*
 * Bookmarklet « Sources IA Google » — surcouche de consultant-seo-paris.css.
 *
 * DEPEND DE : consultant-seo-paris.css charge AVANT (tokens --cp-* + composants
 * .hero-section, .info-box, .checklist, .services-*, .faq-*, .final-cta,
 * .cta-button, et les 3 breakpoints).
 *
 * INVARIANTS — identiques a coaching-seo.css, toute regle qui les casse touche
 * /consultant-seo-paris et /consultant-seo-yvelines :
 *   1. Tout selecteur contient .bookmarklet-page. Sans exception.
 *   2. Toute SURCHARGE d'une regle de base utilise le compose SANS espace
 *      .consultant-paris-page.bookmarklet-page.
 *   3. Jamais de .consultant-paris-page X nu dans ce fichier.
 *   4. Toute surcharge de grille est repetee dans les media queries.
 *
 * Verification de l'invariant 1 :
 *   grep -nE '^[^@/ ].*\{' app/static/css/bookmarklet-sources-ia.css | grep -v bookmarklet-page
 *   doit ne rien retourner.
 *
 * RECOPIES depuis consultant-seo-paris.css : .process-list, .process-step,
 * .process-index et .final-cta .cta-meta y sont scopes .consultant-yvelines-page
 * et ne sont donc pas herites par cette page.
 */

/* ------------------------------------------------------------------
   HERO — pas de photo : la colonne de droite accueille un apercu du
   panneau de l'outil (.bm-preview), qui doit occuper la meme zone de
   grille que .hero-image-container sur la page de base.
   ------------------------------------------------------------------ */

html.consultant-paris-theme .consultant-paris-page.bookmarklet-page .bm-preview {
    align-self: start;
    background: var(--cp-surface);
    border: 1px solid var(--cp-border);
    border-radius: 12px;
    grid-column: 8 / -1;
    grid-row: 1 / 6;
    /* min-width:0 — sans ca, min-width:auto sur un enfant de grille laisse le
       tableau imposer sa largeur intrinseque et deborder la colonne. Le
       debordement serait invisible (#main-content.main-full est en overflow:clip)
       mais amputerait la colonne « Position » sous 720px. */
    min-width: 0;
    overflow: hidden;
}

html.consultant-paris-theme .consultant-paris-page.bookmarklet-page .bm-preview-head {
    align-items: center;
    background: var(--cp-clay-soft);
    border-bottom: 1px solid var(--cp-border);
    display: flex;
    gap: 10px;
    padding: 11px 14px;
}

html.consultant-paris-theme .consultant-paris-page.bookmarklet-page .bm-preview-head strong {
    color: var(--cp-heading);
    font-family: var(--font-sans-stack);
    font-size: 0.82rem;
}

html.consultant-paris-theme .consultant-paris-page.bookmarklet-page .bm-preview-ctx {
    background: var(--cp-accent-soft);
    border-radius: 99px;
    color: var(--cp-accent);
    font-size: 0.68rem;
    font-weight: 700;
    padding: 2px 10px;
    white-space: nowrap;
}

html.consultant-paris-theme .consultant-paris-page.bookmarklet-page .bm-preview table {
    border-collapse: collapse;
    font-size: 0.78rem;
    /* min-width:0 + table-layout:fixed — une regle globale du site impose
       min-width:600px a tout <table> (tableaux editoriaux). La colonne de droite
       du hero fait ~417px en desktop : sans ca, la colonne « Position » sort du
       cadre et se fait couper par l'overflow:hidden du conteneur. */
    min-width: 0;
    table-layout: fixed;
    width: 100%;
}

html.consultant-paris-theme .consultant-paris-page.bookmarklet-page .bm-preview th {
    color: var(--cp-muted);
    font-family: var(--font-sans-stack);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

html.consultant-paris-theme .consultant-paris-page.bookmarklet-page .bm-preview th,
html.consultant-paris-theme .consultant-paris-page.bookmarklet-page .bm-preview td {
    border-bottom: 1px solid var(--cp-border);
    padding: 9px 14px;
    text-align: left;
}

html.consultant-paris-theme .consultant-paris-page.bookmarklet-page .bm-preview tr:last-child td {
    border-bottom: 0;
}

html.consultant-paris-theme .consultant-paris-page.bookmarklet-page .bm-preview td:first-child {
    color: var(--cp-heading);
    font-weight: 600;
}

html.consultant-paris-theme .consultant-paris-page.bookmarklet-page .bm-preview-foot {
    border-top: 1px solid var(--cp-border);
    color: var(--cp-soft, var(--cp-muted));
    font-size: 0.7rem;
    padding: 10px 14px;
}

/* ------------------------------------------------------------------
   PASTILLES — reprennent la semantique du panneau de l'outil :
   citee directement / presente via un groupe « +N » / recuperee mais
   non citee.
   ------------------------------------------------------------------ */

html.consultant-paris-theme .consultant-paris-page.bookmarklet-page .bm-pill {
    border-radius: 99px;
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 2px 10px;
    white-space: nowrap;
}

html.consultant-paris-theme .consultant-paris-page.bookmarklet-page .bm-pill--yes {
    background: color-mix(in oklch, #137333 12%, var(--cp-surface));
    color: #137333;
}

html.consultant-paris-theme .consultant-paris-page.bookmarklet-page .bm-pill--group {
    background: color-mix(in oklch, var(--cp-clay) 16%, var(--cp-surface));
    color: var(--cp-clay-dark);
}

html.consultant-paris-theme .consultant-paris-page.bookmarklet-page .bm-pill--no {
    background: color-mix(in oklch, var(--cp-muted) 12%, var(--cp-surface));
    color: var(--cp-muted);
    font-weight: 600;
}

/* ------------------------------------------------------------------
   ZONE D'INSTALLATION — le bouton a glisser vers la barre de favoris.
   ------------------------------------------------------------------ */

html.consultant-paris-theme .consultant-paris-page.bookmarklet-page .bm-dragzone {
    align-items: center;
    background: var(--cp-accent-soft);
    border: 2px dashed var(--cp-accent);
    border-radius: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 26px 0 18px;
    max-width: 920px;
    padding: 24px 26px;
}

html.consultant-paris-theme .consultant-paris-page.bookmarklet-page .bm-button {
    background: var(--cp-accent);
    border: 1px solid var(--cp-accent);
    border-radius: 8px;
    color: var(--cp-surface);
    cursor: grab;
    display: inline-flex;
    font-family: var(--font-sans-stack);
    font-size: 1rem;
    font-weight: 750;
    gap: 9px;
    line-height: 1.2;
    padding: 14px 24px;
    text-decoration: none;
    white-space: nowrap;
}

html.consultant-paris-theme .consultant-paris-page.bookmarklet-page .bm-button:hover {
    background: var(--cp-accent-dark);
    border-color: var(--cp-accent-dark);
    color: var(--cp-surface);
    text-decoration: none;
}

html.consultant-paris-theme .consultant-paris-page.bookmarklet-page .bm-button:active {
    cursor: grabbing;
}

html.consultant-paris-theme .consultant-paris-page.bookmarklet-page .bm-dragnote {
    color: var(--cp-muted);
    flex: 1;
    font-size: 0.9rem;
    line-height: 1.55;
    margin: 0;
    min-width: 240px;
}

html.consultant-paris-theme .consultant-paris-page.bookmarklet-page kbd {
    background: var(--cp-surface);
    border: 1px solid var(--cp-border);
    border-bottom-width: 2px;
    border-radius: 5px;
    font-family: var(--font-sans-stack);
    font-size: 0.82rem;
    padding: 1px 7px;
}

html.consultant-paris-theme .consultant-paris-page.bookmarklet-page .bm-manual {
    margin: 0 0 8px;
    max-width: 920px;
}

html.consultant-paris-theme .consultant-paris-page.bookmarklet-page .bm-manual summary {
    color: var(--cp-accent);
    cursor: pointer;
    font-size: 0.92rem;
    font-weight: 600;
}

html.consultant-paris-theme .consultant-paris-page.bookmarklet-page .bm-manual p {
    color: var(--cp-muted);
    font-size: 0.92rem;
    margin: 12px 0;
}

html.consultant-paris-theme .consultant-paris-page.bookmarklet-page .bm-code {
    background: var(--cp-surface);
    border: 1px solid var(--cp-border);
    border-radius: 8px;
    color: var(--cp-muted);
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: 11px;
    height: 120px;
    line-height: 1.45;
    padding: 12px;
    resize: vertical;
    width: 100%;
}

html.consultant-paris-theme .consultant-paris-page.bookmarklet-page .bm-copy {
    background: var(--cp-surface);
    border: 1px solid var(--cp-border);
    border-radius: 8px;
    color: var(--cp-heading);
    cursor: pointer;
    font-family: var(--font-sans-stack);
    font-size: 0.88rem;
    font-weight: 600;
    margin-top: 10px;
    min-height: 40px;
    padding: 9px 16px;
    transition: background-color 180ms ease, border-color 180ms ease;
}

html.consultant-paris-theme .consultant-paris-page.bookmarklet-page .bm-copy:hover {
    background: var(--cp-clay-soft);
    border-color: var(--cp-clay);
}

html.consultant-paris-theme .consultant-paris-page.bookmarklet-page code {
    background: var(--cp-clay-soft);
    border: 1px solid var(--cp-border);
    border-radius: 5px;
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: 0.86em;
    padding: 1px 6px;
}

/* ------------------------------------------------------------------
   ETAPES NUMEROTEES — recopie de .process-* (scope yvelines dans le
   fichier de base).
   ------------------------------------------------------------------ */

html.consultant-paris-theme .consultant-paris-page.bookmarklet-page .process-list {
    border-bottom: 1px solid var(--cp-border);
    margin: 34px 0 0;
}

html.consultant-paris-theme .consultant-paris-page.bookmarklet-page .process-step {
    border-top: 1px solid var(--cp-border);
    display: grid;
    gap: 20px;
    grid-template-columns: 72px minmax(0, 1fr);
    padding: 28px 0;
}

html.consultant-paris-theme .consultant-paris-page.bookmarklet-page .process-index {
    color: var(--cp-clay-dark);
    font-family: var(--font-serif-stack);
    font-size: 1.55rem;
    font-variant-numeric: tabular-nums;
    line-height: 1.2;
}

html.consultant-paris-theme .consultant-paris-page.bookmarklet-page .process-step h3 {
    font-size: clamp(1.28rem, 2vw, 1.55rem);
    margin-bottom: 8px;
}

html.consultant-paris-theme .consultant-paris-page.bookmarklet-page .process-step p {
    color: var(--cp-muted);
    margin: 0;
    max-width: 72ch;
}

html.consultant-paris-theme .consultant-paris-page.bookmarklet-page .process-step p + p {
    margin-top: 12px;
}

/* Recopie de .final-cta .cta-meta (scope yvelines dans le fichier de base). */
html.consultant-paris-theme .consultant-paris-page.bookmarklet-page .final-cta .cta-meta {
    color: color-mix(in oklch, var(--cp-surface) 62%, transparent);
    font-size: 0.82rem;
    margin: 20px 0 0;
}

html.consultant-paris-theme .consultant-paris-page.bookmarklet-page .final-cta .cta-meta a {
    color: color-mix(in oklch, var(--cp-surface) 82%, transparent);
}

/* ------------------------------------------------------------------
   DIVERS
   ------------------------------------------------------------------ */

html.consultant-paris-theme .consultant-paris-page.bookmarklet-page .service-card .bm-pill {
    margin-right: 6px;
}

html.consultant-paris-theme .consultant-paris-page.bookmarklet-page .bm-exports {
    margin-top: 26px;
}

html.consultant-paris-theme .consultant-paris-page.bookmarklet-page .bm-updated {
    color: var(--cp-muted);
    font-size: 0.86rem;
    margin: 30px 0 0;
}

/* ------------------------------------------------------------------
   BREAKPOINTS — alignes sur le fichier de base (960px / 720px).
   L'invariant 4 impose de repeter ici les surcharges de grille.
   ------------------------------------------------------------------ */

@media (max-width: 960px) {
    html.consultant-paris-theme .consultant-paris-page.bookmarklet-page .bm-preview {
        grid-column: 1 / -1;
        grid-row: auto;
        margin-top: 8px;
    }
}

@media (max-width: 720px) {
    /* Sous 720px le fichier de base bascule .hero-section en flex column avec
       des `order`, et conserve align-items:start : sans align-self + width, un
       item garde sa largeur intrinseque (ici ~602px) et deborde le viewport.
       L'apercu passe apres le CTA, le texte reste prioritaire. */
    html.consultant-paris-theme .consultant-paris-page.bookmarklet-page .bm-preview {
        align-self: stretch;
        order: 6;
        width: 100%;
    }

    html.consultant-paris-theme .consultant-paris-page.bookmarklet-page .bm-dragzone {
        gap: 16px;
        padding: 20px;
    }

    html.consultant-paris-theme .consultant-paris-page.bookmarklet-page .bm-button {
        width: 100%;
    }

    html.consultant-paris-theme .consultant-paris-page.bookmarklet-page .process-step {
        gap: 6px 16px;
        grid-template-columns: 52px minmax(0, 1fr);
        padding: 24px 0;
    }

    html.consultant-paris-theme .consultant-paris-page.bookmarklet-page .bm-preview table {
        font-size: 0.72rem;
        table-layout: fixed;
    }

    html.consultant-paris-theme .consultant-paris-page.bookmarklet-page .bm-preview th,
    html.consultant-paris-theme .consultant-paris-page.bookmarklet-page .bm-preview td {
        overflow-wrap: anywhere;
        padding: 8px 10px;
    }

    html.consultant-paris-theme .consultant-paris-page.bookmarklet-page .bm-pill {
        font-size: 0.66rem;
        padding: 2px 8px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html.consultant-paris-theme .consultant-paris-page.bookmarklet-page .bm-copy {
        transition: none;
    }
}
