/* ============================================================================
   FRANCK TEXT EDITOR — CSS Front
   Emplacement : /var/www/maurin.carsens.net/public/maurin/assets/css/franck-text-editor.css
   Préfixe     : fte-
   Tokens      : héritage via --theme-* du thème Maurin (theme-maurin.css)
   ============================================================================ */

/* ---- Reset box-sizing ---- */
.fte-wrapper,
.fte-wrapper * {
    box-sizing: border-box;
}

/* ============================================================================
   WRAPPER — contrôle full vs container
   ============================================================================ */

/* Full width : sort du container parent (aligné sur fbtc) */
.fte-wrapper--full {
    width: 100vw;
    margin-left: calc(50% - 50vw);
}

/* Container : centré avec padding latéral desktop */
.fte-wrapper--container {
    max-width: 1320px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 42px;
    padding-right: 42px;
}

/* ============================================================================
   INNER — density (largeur du contenu dans le wrapper)
   ============================================================================ */

.fte-inner--compact {
    max-width: 72%;
    margin-left: auto;
    margin-right: auto;
}

.fte-inner--normal {
    max-width: 86%;
    margin-left: auto;
    margin-right: auto;
}

.fte-inner--xxl {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}

/* Tokens de thème prioritaires. Les fallbacks (#2a6d47, #3c9a65) sont des couleurs Maurin
   appliquées uniquement si --theme-primary-color / --theme-primary-color-hover ne sont pas définis. */

.fte-content {
    width: 100%;
}

/* Titres */
.fte-content h1,
.fte-content h2,
.fte-content h3,
.fte-content h4,
.fte-content h5,
.fte-content h6 {
    font-family: var(--theme-font-primary, 'Jost', sans-serif);
    color: var(--theme-section-title-color, #0f172a);
    margin-top: 0;
    margin-bottom: 0.5em;
    line-height: 1.2;
}

/* Corps de texte */
.fte-content p,
.fte-content li,
.fte-content td,
.fte-content th {
    font-family: var(--theme-font-secondary, 'Work Sans', sans-serif);
    color: var(--theme-text-color, #374151);
    line-height: 1.6;
}

.fte-content p {
    margin-top: 0;
    margin-bottom: 0.75em;
}

/* Liens */
.fte-content a {
    color: var(--theme-primary-color, #2a6d47);
    text-decoration: underline;
    transition: color 0.2s ease;
}

.fte-content a:hover {
    color: var(--theme-primary-color-hover, #3c9a65);
}

/* Listes */
.fte-content ul,
.fte-content ol {
    padding-left: 1.5em;
    margin-top: 0;
    margin-bottom: 1em;
}

.fte-content li {
    margin-bottom: 0.25em;
}

/* Blockquote */
.fte-content blockquote {
    border-left: 4px solid var(--theme-primary-color, #2a6d47);
    padding-left: 1em;
    margin: 1em 0;
    color: var(--theme-text-muted, #6b7280);
    font-style: italic;
}

/* Images */
.fte-content img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Tableaux */
.fte-content table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1em;
    font-family: var(--theme-font-secondary, 'Work Sans', sans-serif);
}

.fte-content table td,
.fte-content table th {
    padding: 0.5em 0.75em;
    border: 1px solid var(--theme-border-color, #e5e7eb);
    text-align: left;
}

.fte-content table th {
    background: var(--theme-surface-color, #f9fafb);
    font-weight: 600;
}

/* Code */
.fte-content pre,
.fte-content code {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.875em;
    background: #f3f4f6;
    border-radius: 4px;
}

.fte-content code {
    padding: 0.125em 0.375em;
}

.fte-content pre {
    padding: 1em;
    overflow-x: auto;
    margin-bottom: 1em;
}

/* ============================================================================
   RESPONSIVE
   ============================================================================ */

/* Tablette */
@media (max-width: 1024px) {
    .fte-wrapper--container {
        padding-left: 22px;
        padding-right: 22px;
    }

    .fte-inner--compact {
        max-width: 86%;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .fte-wrapper--container {
        padding-left: 18px;
        padding-right: 18px;
    }

    .fte-inner--compact,
    .fte-inner--normal {
        max-width: 100%;
    }
}

/* ============================================================================
   BUILDER PREVIEW — neutralisation du 100vw dans le builder
   Le wrapper scale-inner contient le composant ; le 100vw ne doit pas
   sortir du preview builder.
   ============================================================================ */

.fte-scale-outer .fte-wrapper--full,
.is-builder-preview .fte-wrapper--full {
    width: 100% !important;
    margin-left: 0 !important;
    max-width: 100% !important;
}

.fte-scale-inner {
    box-sizing: border-box;
}

/* ============================================================================
   ENRICHISSEMENT CONTENU STRUCTURÉ (Page Atelier / Prise de RDV SAV)
   ============================================================================ */

.sav-wrapper {
    width: 100%;
    color: var(--theme-text-color, #374151);
    font-family: var(--theme-font-secondary, 'Work Sans', sans-serif);
    padding-top: 10px;
}

.sav-wrapper * {
    box-sizing: border-box;
}

/* En-tête principal */
.sav-hero-header {
    text-align: center;
    max-width: 860px;
    margin: 0 auto 48px auto;
    padding-bottom: 28px;
    border-bottom: 1px solid #edf2f7;
}

.sav-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 120, 56, 0.08);
    color: var(--maurin-green, #007838);
    font-family: var(--theme-font-primary, 'Jost', sans-serif);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 6px 16px;
    border-radius: 999px;
    margin-bottom: 16px;
}

.sav-badge i {
    font-size: 14px;
}

.sav-main-title {
    font-family: var(--theme-font-primary, 'Jost', sans-serif);
    font-size: 32px;
    font-weight: 700;
    color: #111827;
    line-height: 1.25;
    margin-bottom: 14px;
}

.sav-main-subtitle {
    font-size: 16px;
    line-height: 1.6;
    color: #4b5563;
    margin: 0 auto;
}

/* Titres de sections */
.sav-section-heading {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-family: var(--theme-font-primary, 'Jost', sans-serif);
    font-size: 24px;
    font-weight: 600;
    color: #111827;
}

.sav-section-heading::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 24px;
    background: var(--maurin-green, #007838);
    border-radius: 2px;
    flex-shrink: 0;
}

.sav-section-intro {
    font-size: 15px;
    color: #4b5563;
    line-height: 1.6;
    margin-bottom: 24px;
}

/* Blocs & Cartes */
.sav-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 24px;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.sav-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
    border-color: #cbd5e1;
}

/* Avantages */
.sav-benefit-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(0, 120, 56, 0.08);
    color: var(--maurin-green, #007838);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 16px;
    flex-shrink: 0;
}

.sav-card-title {
    font-family: var(--theme-font-primary, 'Jost', sans-serif);
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 8px;
}

.sav-card-text {
    font-size: 14px;
    line-height: 1.55;
    color: #4b5563;
    margin: 0;
}

/* Processus en étapes */
.sav-steps-container {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}

.sav-step-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 20px 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sav-step-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
}

.sav-step-badge {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--maurin-green, #007838);
    color: #ffffff;
    font-family: var(--theme-font-primary, 'Jost', sans-serif);
    font-size: 17px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    box-shadow: 0 3px 8px rgba(0, 120, 56, 0.25);
}

.sav-step-title {
    font-family: var(--theme-font-primary, 'Jost', sans-serif);
    font-size: 14px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 6px;
}

.sav-step-desc {
    font-size: 12.5px;
    line-height: 1.45;
    color: #4b5563;
    margin: 0;
}

/* Callout / Bannière de réassurance */
.sav-callout {
    background: #f0fdf4;
    border-left: 4px solid var(--maurin-green, #007838);
    border-radius: 10px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 16px;
    margin-bottom: 36px;
}

.sav-callout i {
    font-size: 24px;
    color: var(--maurin-green, #007838);
    flex-shrink: 0;
}

.sav-callout-text {
    font-size: 14.5px;
    color: #166534;
    font-weight: 500;
    line-height: 1.5;
    margin: 0;
}

/* Services en atelier */
.sav-service-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 12px;
}

.sav-service-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: rgba(0, 120, 56, 0.08);
    color: var(--maurin-green, #007838);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.sav-service-title {
    font-family: var(--theme-font-primary, 'Jost', sans-serif);
    font-size: 16px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.sav-service-body {
    font-size: 13.5px;
    line-height: 1.6;
    color: #4b5563;
    margin: 0;
}

/* Blocs Garantie & Multimarque */
.sav-highlight-box {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 28px;
    height: 100%;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.sav-highlight-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--maurin-green, #007838);
}

.sav-highlight-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    background: #f3f4f6;
    color: #374151;
    padding: 4px 10px;
    border-radius: 6px;
    margin-bottom: 12px;
}

.sav-highlight-title {
    font-family: var(--theme-font-primary, 'Jost', sans-serif);
    font-size: 20px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sav-highlight-title i {
    color: var(--maurin-green, #007838);
    font-size: 22px;
}

.sav-highlight-text {
    font-size: 14px;
    line-height: 1.6;
    color: #4b5563;
    margin-bottom: 12px;
}

.sav-highlight-text:last-child {
    margin-bottom: 0;
}

/* Checklist & Bons Réflexes */
.sav-checklist-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
}

.sav-checklist-item:last-child {
    margin-bottom: 0;
}

.sav-checklist-item i {
    font-size: 18px;
    color: var(--maurin-green, #007838);
    margin-top: 2px;
    flex-shrink: 0;
}

.sav-checklist-text {
    font-size: 14px;
    line-height: 1.55;
    color: #374151;
    margin: 0;
}

/* Responsive */
@media (max-width: 992px) {
    .sav-steps-container {
        grid-template-columns: repeat(3, 1fr);
    }
    .sav-main-title {
        font-size: 26px;
    }
}

@media (max-width: 600px) {
    .sav-steps-container {
        grid-template-columns: 1fr;
    }
    .sav-hero-header {
        margin-bottom: 30px;
    }
    .sav-main-title {
        font-size: 22px;
    }
    .sav-section-heading {
        font-size: 20px;
    }
    .sav-callout {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

