<?php
// Layout cool_roof_explainer — design CoolRoofExplainerSection : section
// pédagogique (illustration + titre + paragraphe + légende + CTA). Exposé au BO
// (rend le composant bespoke via le registry générique, paramétré par ces champs).

defined('ABSPATH') || exit;

$l = 'cool_roof_explainer';

return cvb_layout($l, 'Explicatif Cool Roof', [
    cvb_field("field_cvb_{$l}_titre", 'titre', 'Titre', 'textarea', [
        'rows'         => 2,
        'instructions' => 'Titre principal de la section pédagogique.',
    ]),
    cvb_field("field_cvb_{$l}_paragraphe", 'paragraphe', 'Paragraphe', 'wysiwyg', [
        'tabs'         => 'visual',
        'media_upload' => 0,
        'instructions' => 'Texte explicatif (gras autorisé pour les chiffres clés).',
    ]),
    cvb_image("field_cvb_{$l}_image", 'image', 'Illustration'),
    cvb_field("field_cvb_{$l}_note", 'note', 'Légende sous l\'image', 'text', [
        'instructions' => 'Ex. « Avec cool roof : réflexion solaire ».',
    ]),
    cvb_clone_cta($l),
]);
