isDir()) continue; $filePath = $file->getPathname(); $relativePath = str_replace($root, '', $filePath); $ext = pathinfo($filePath, PATHINFO_EXTENSION); // 1. EXTRACTION DES FICHIERS .css if ($ext === 'css') { $report .= "/* 📄 FICHIER SOURCE : $relativePath */\n"; $report .= file_get_contents($filePath) . "\n"; $report .= str_repeat("-", 40) . "\n\n"; } // 2. EXTRACTION DES BALISES